]> git.ipfire.org Git - thirdparty/gcc.git/blob - boehm-gc/configure
Makefile.tpl ($(srcdir)/configure): Update dependencies.
[thirdparty/gcc.git] / boehm-gc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43 do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97 fi
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
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
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
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
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
152 done
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
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
247
248 case X$lt_ECHO in
249 X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
252 ;;
253 esac
254
255 ECHO=${lt_ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
258 shift
259 elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
261 :
262 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $ECHO works!
264 :
265 else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
268 fi
269
270 if 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
277 fi
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
283 if test -z "$lt_ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
289 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
290 then
291 break
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
381 fi
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.
385 lt_ECHO=$ECHO
386 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
388 fi
389
390
391
392
393 # Name of the host.
394 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395 # so uname gets run too.
396 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
397
398 exec 6>&1
399
400 #
401 # Initializations.
402 #
403 ac_default_prefix=/usr/local
404 ac_config_libobj_dir=.
405 cross_compiling=no
406 subdirs=
407 MFLAGS=
408 MAKEFLAGS=
409 SHELL=${CONFIG_SHELL-/bin/sh}
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.
417 PACKAGE_NAME=
418 PACKAGE_TARNAME=
419 PACKAGE_VERSION=
420 PACKAGE_STRING=
421 PACKAGE_BUGREPORT=
422
423 ac_unique_file="gcj_mlc.c"
424 # Factoring default headers for most tests.
425 ac_includes_default="\
426 #include <stdio.h>
427 #if HAVE_SYS_TYPES_H
428 # include <sys/types.h>
429 #endif
430 #if HAVE_SYS_STAT_H
431 # include <sys/stat.h>
432 #endif
433 #if STDC_HEADERS
434 # include <stdlib.h>
435 # include <stddef.h>
436 #else
437 # if HAVE_STDLIB_H
438 # include <stdlib.h>
439 # endif
440 #endif
441 #if HAVE_STRING_H
442 # if !STDC_HEADERS && HAVE_MEMORY_H
443 # include <memory.h>
444 # endif
445 # include <string.h>
446 #endif
447 #if HAVE_STRINGS_H
448 # include <strings.h>
449 #endif
450 #if HAVE_INTTYPES_H
451 # include <inttypes.h>
452 #else
453 # if HAVE_STDINT_H
454 # include <stdint.h>
455 # endif
456 #endif
457 #if HAVE_UNISTD_H
458 # include <unistd.h>
459 #endif"
460
461 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS multi_basedir build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical mkinstalldirs INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXX ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CFLAGS CXXFLAGS CCAS CCASFLAGS AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GC_CFLAGS LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S lt_ECHO CPP CPPFLAGS LDFLAGS CXXCPP THREADLIBS POWERPC_DARWIN_TRUE POWERPC_DARWIN_FALSE extra_ldflags_libgc EXTRA_TEST_LIBS target_all CPLUSPLUS_TRUE CPLUSPLUS_FALSE AM_CPPFLAGS addobjs addincludes addlibs addtests MY_CFLAGS toolexecdir toolexeclibdir LIBOBJS LTLIBOBJS'
462 ac_subst_files=''
463 ac_pwd=`pwd`
464
465 # Initialize some variables set by options.
466 ac_init_help=
467 ac_init_version=false
468 # The variables have the same names as the options, with
469 # dashes changed to underlines.
470 cache_file=/dev/null
471 exec_prefix=NONE
472 no_create=
473 no_recursion=
474 prefix=NONE
475 program_prefix=NONE
476 program_suffix=NONE
477 program_transform_name=s,x,x,
478 silent=
479 site=
480 srcdir=
481 verbose=
482 x_includes=NONE
483 x_libraries=NONE
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.
490 bindir='${exec_prefix}/bin'
491 sbindir='${exec_prefix}/sbin'
492 libexecdir='${exec_prefix}/libexec'
493 datadir='${prefix}/share'
494 sysconfdir='${prefix}/etc'
495 sharedstatedir='${prefix}/com'
496 localstatedir='${prefix}/var'
497 libdir='${exec_prefix}/lib'
498 includedir='${prefix}/include'
499 oldincludedir='/usr/include'
500 infodir='${prefix}/info'
501 mandir='${prefix}/man'
502
503 ac_prev=
504 for ac_option
505 do
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
513 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
514
515 # Accept the important Cygnus configure options, so we can diagnose typos.
516
517 case $ac_option in
518
519 -bindir | --bindir | --bindi | --bind | --bin | --bi)
520 ac_prev=bindir ;;
521 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
522 bindir=$ac_optarg ;;
523
524 -build | --build | --buil | --bui | --bu)
525 ac_prev=build_alias ;;
526 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
527 build_alias=$ac_optarg ;;
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=*)
534 cache_file=$ac_optarg ;;
535
536 --config-cache | -C)
537 cache_file=config.cache ;;
538
539 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
540 ac_prev=datadir ;;
541 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
542 | --da=*)
543 datadir=$ac_optarg ;;
544
545 -disable-* | --disable-*)
546 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
547 # Reject names that are not valid shell variable names.
548 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
549 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
550 { (exit 1); exit 1; }; }
551 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
552 eval "enable_$ac_feature=no" ;;
553
554 -enable-* | --enable-*)
555 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
556 # Reject names that are not valid shell variable names.
557 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559 { (exit 1); exit 1; }; }
560 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561 case $ac_option in
562 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
563 *) ac_optarg=yes ;;
564 esac
565 eval "enable_$ac_feature='$ac_optarg'" ;;
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=*)
574 exec_prefix=$ac_optarg ;;
575
576 -gas | --gas | --ga | --g)
577 # Obsolete; use --with-gas.
578 with_gas=yes ;;
579
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 ;;
586
587 -host | --host | --hos | --ho)
588 ac_prev=host_alias ;;
589 -host=* | --host=* | --hos=* | --ho=*)
590 host_alias=$ac_optarg ;;
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=*)
597 includedir=$ac_optarg ;;
598
599 -infodir | --infodir | --infodi | --infod | --info | --inf)
600 ac_prev=infodir ;;
601 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
602 infodir=$ac_optarg ;;
603
604 -libdir | --libdir | --libdi | --libd)
605 ac_prev=libdir ;;
606 -libdir=* | --libdir=* | --libdi=* | --libd=*)
607 libdir=$ac_optarg ;;
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=*)
614 libexecdir=$ac_optarg ;;
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=*)
623 localstatedir=$ac_optarg ;;
624
625 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
626 ac_prev=mandir ;;
627 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
628 mandir=$ac_optarg ;;
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 \
635 | --no-cr | --no-c | -n)
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=*)
649 oldincludedir=$ac_optarg ;;
650
651 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
652 ac_prev=prefix ;;
653 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
654 prefix=$ac_optarg ;;
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=*)
661 program_prefix=$ac_optarg ;;
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=*)
668 program_suffix=$ac_optarg ;;
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=*)
685 program_transform_name=$ac_optarg ;;
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=*)
695 sbindir=$ac_optarg ;;
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=*)
706 sharedstatedir=$ac_optarg ;;
707
708 -site | --site | --sit)
709 ac_prev=site ;;
710 -site=* | --site=* | --sit=*)
711 site=$ac_optarg ;;
712
713 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
714 ac_prev=srcdir ;;
715 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
716 srcdir=$ac_optarg ;;
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=*)
723 sysconfdir=$ac_optarg ;;
724
725 -target | --target | --targe | --targ | --tar | --ta | --t)
726 ac_prev=target_alias ;;
727 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
728 target_alias=$ac_optarg ;;
729
730 -v | -verbose | --verbose | --verbos | --verbo | --verb)
731 verbose=yes ;;
732
733 -version | --version | --versio | --versi | --vers | -V)
734 ac_init_version=: ;;
735
736 -with-* | --with-*)
737 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
738 # Reject names that are not valid shell variable names.
739 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
740 { echo "$as_me: error: invalid package name: $ac_package" >&2
741 { (exit 1); exit 1; }; }
742 ac_package=`echo $ac_package| sed 's/-/_/g'`
743 case $ac_option in
744 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
745 *) ac_optarg=yes ;;
746 esac
747 eval "with_$ac_package='$ac_optarg'" ;;
748
749 -without-* | --without-*)
750 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
751 # Reject names that are not valid shell variable names.
752 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753 { echo "$as_me: error: invalid package name: $ac_package" >&2
754 { (exit 1); exit 1; }; }
755 ac_package=`echo $ac_package | sed 's/-/_/g'`
756 eval "with_$ac_package=no" ;;
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=*)
767 x_includes=$ac_optarg ;;
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=*)
774 x_libraries=$ac_optarg ;;
775
776 -*) { echo "$as_me: error: unrecognized option: $ac_option
777 Try \`$0 --help' for more information." >&2
778 { (exit 1); exit 1; }; }
779 ;;
780
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
791 *)
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}
797 ;;
798
799 esac
800 done
801
802 if test -n "$ac_prev"; then
803 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
804 { echo "$as_me: error: missing argument to $ac_option" >&2
805 { (exit 1); exit 1; }; }
806 fi
807
808 # Be sure to have absolute paths.
809 for ac_var in exec_prefix prefix
810 do
811 eval ac_val=$`echo $ac_var`
812 case $ac_val in
813 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
814 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
815 { (exit 1); exit 1; }; };;
816 esac
817 done
818
819 # Be sure to have absolute paths.
820 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
821 localstatedir libdir includedir oldincludedir infodir mandir
822 do
823 eval ac_val=$`echo $ac_var`
824 case $ac_val in
825 [\\/$]* | ?:[\\/]* ) ;;
826 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
827 { (exit 1); exit 1; }; };;
828 esac
829 done
830
831 # There might be people who depend on the old broken behavior: `$host'
832 # used to hold the argument of --host etc.
833 # FIXME: To remove some day.
834 build=$build_alias
835 host=$host_alias
836 target=$target_alias
837
838 # FIXME: To remove some day.
839 if test "x$host_alias" != x; then
840 if test "x$build_alias" = x; then
841 cross_compiling=maybe
842 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
843 If a cross compiler is detected then cross compile mode will be used." >&2
844 elif test "x$build_alias" != "x$host_alias"; then
845 cross_compiling=yes
846 fi
847 fi
848
849 ac_tool_prefix=
850 test -n "$host_alias" && ac_tool_prefix=$host_alias-
851
852 test "$silent" = yes && exec 6>/dev/null
853
854
855 # Find the source files, if location was not specified.
856 if test -z "$srcdir"; then
857 ac_srcdir_defaulted=yes
858 # Try the directory containing this script, then its parent.
859 ac_confdir=`(dirname "$0") 2>/dev/null ||
860 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
861 X"$0" : 'X\(//\)[^/]' \| \
862 X"$0" : 'X\(//\)$' \| \
863 X"$0" : 'X\(/\)' \| \
864 . : '\(.\)' 2>/dev/null ||
865 echo X"$0" |
866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
867 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
868 /^X\(\/\/\)$/{ s//\1/; q; }
869 /^X\(\/\).*/{ s//\1/; q; }
870 s/.*/./; q'`
871 srcdir=$ac_confdir
872 if test ! -r $srcdir/$ac_unique_file; then
873 srcdir=..
874 fi
875 else
876 ac_srcdir_defaulted=no
877 fi
878 if test ! -r $srcdir/$ac_unique_file; then
879 if test "$ac_srcdir_defaulted" = yes; then
880 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
881 { (exit 1); exit 1; }; }
882 else
883 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
884 { (exit 1); exit 1; }; }
885 fi
886 fi
887 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
888 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
889 { (exit 1); exit 1; }; }
890 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
891 ac_env_build_alias_set=${build_alias+set}
892 ac_env_build_alias_value=$build_alias
893 ac_cv_env_build_alias_set=${build_alias+set}
894 ac_cv_env_build_alias_value=$build_alias
895 ac_env_host_alias_set=${host_alias+set}
896 ac_env_host_alias_value=$host_alias
897 ac_cv_env_host_alias_set=${host_alias+set}
898 ac_cv_env_host_alias_value=$host_alias
899 ac_env_target_alias_set=${target_alias+set}
900 ac_env_target_alias_value=$target_alias
901 ac_cv_env_target_alias_set=${target_alias+set}
902 ac_cv_env_target_alias_value=$target_alias
903 ac_env_CPP_set=${CPP+set}
904 ac_env_CPP_value=$CPP
905 ac_cv_env_CPP_set=${CPP+set}
906 ac_cv_env_CPP_value=$CPP
907 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
908 ac_env_CPPFLAGS_value=$CPPFLAGS
909 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
910 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
911 ac_env_CXX_set=${CXX+set}
912 ac_env_CXX_value=$CXX
913 ac_cv_env_CXX_set=${CXX+set}
914 ac_cv_env_CXX_value=$CXX
915 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
916 ac_env_CXXFLAGS_value=$CXXFLAGS
917 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
918 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
919 ac_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_env_LDFLAGS_value=$LDFLAGS
921 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
922 ac_cv_env_LDFLAGS_value=$LDFLAGS
923 ac_env_CXXCPP_set=${CXXCPP+set}
924 ac_env_CXXCPP_value=$CXXCPP
925 ac_cv_env_CXXCPP_set=${CXXCPP+set}
926 ac_cv_env_CXXCPP_value=$CXXCPP
927
928 #
929 # Report the --help message.
930 #
931 if test "$ac_init_help" = "long"; then
932 # Omit some internal or obsolete options to make the list less imposing.
933 # This message is too long to be a string in the A/UX 3.1 sh.
934 cat <<_ACEOF
935 \`configure' configures this package to adapt to many kinds of systems.
936
937 Usage: $0 [OPTION]... [VAR=VALUE]...
938
939 To assign environment variables (e.g., CC, CFLAGS...), specify them as
940 VAR=VALUE. See below for descriptions of some of the useful variables.
941
942 Defaults for the options are specified in brackets.
943
944 Configuration:
945 -h, --help display this help and exit
946 --help=short display options specific to this package
947 --help=recursive display the short help of all the included packages
948 -V, --version display version information and exit
949 -q, --quiet, --silent do not print \`checking...' messages
950 --cache-file=FILE cache test results in FILE [disabled]
951 -C, --config-cache alias for \`--cache-file=config.cache'
952 -n, --no-create do not create output files
953 --srcdir=DIR find the sources in DIR [configure dir or \`..']
954
955 _ACEOF
956
957 cat <<_ACEOF
958 Installation directories:
959 --prefix=PREFIX install architecture-independent files in PREFIX
960 [$ac_default_prefix]
961 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
962 [PREFIX]
963
964 By default, \`make install' will install all the files in
965 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
966 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
967 for instance \`--prefix=\$HOME'.
968
969 For better control, use the options below.
970
971 Fine tuning of the installation directories:
972 --bindir=DIR user executables [EPREFIX/bin]
973 --sbindir=DIR system admin executables [EPREFIX/sbin]
974 --libexecdir=DIR program executables [EPREFIX/libexec]
975 --datadir=DIR read-only architecture-independent data [PREFIX/share]
976 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
977 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
978 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
979 --libdir=DIR object code libraries [EPREFIX/lib]
980 --includedir=DIR C header files [PREFIX/include]
981 --oldincludedir=DIR C header files for non-gcc [/usr/include]
982 --infodir=DIR info documentation [PREFIX/info]
983 --mandir=DIR man documentation [PREFIX/man]
984 _ACEOF
985
986 cat <<\_ACEOF
987
988 Program names:
989 --program-prefix=PREFIX prepend PREFIX to installed program names
990 --program-suffix=SUFFIX append SUFFIX to installed program names
991 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
992
993 System types:
994 --build=BUILD configure for building on BUILD [guessed]
995 --host=HOST cross-compile to build programs to run on HOST [BUILD]
996 --target=TARGET configure for building compilers for TARGET [HOST]
997 _ACEOF
998 fi
999
1000 if test -n "$ac_init_help"; then
1001
1002 cat <<\_ACEOF
1003
1004 Optional Features:
1005 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1006 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1007 --enable-multilib build many library versions (default)
1008 --disable-dependency-tracking speeds up one-time build
1009 --enable-dependency-tracking do not reject slow dependency extractors
1010 --enable-maintainer-mode enable make rules and dependencies not useful
1011 (and sometimes confusing) to the casual installer
1012 --enable-shared[=PKGS]
1013 build shared libraries [default=yes]
1014 --enable-static[=PKGS]
1015 build static libraries [default=yes]
1016 --enable-fast-install[=PKGS]
1017 optimize for fast installation [default=yes]
1018 --disable-libtool-lock avoid locking (might break parallel builds)
1019 --enable-parallel-mark parallelize marking and free list construction
1020 --enable-gc-debug include full support for pointer backtracing etc.
1021
1022 Optional Packages:
1023 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1024 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1025 --with-pic try to use only PIC/non-PIC objects [default=use
1026 both]
1027 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1028 --with-target-subdir=SUBDIR
1029 configuring with a cross compiler
1030 --with-cross-host=HOST configuring with a cross compiler
1031 --with-ecos enable runtime eCos target support
1032
1033 Some influential environment variables:
1034 CC C compiler command
1035 CFLAGS C compiler flags
1036 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1037 nonstandard directory <lib dir>
1038 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1039 headers in a nonstandard directory <include dir>
1040 CXX C++ compiler command
1041 CXXFLAGS C++ compiler flags
1042 CPP C preprocessor
1043 CXXCPP C++ preprocessor
1044
1045 Use these variables to override the choices made by `configure' or to help
1046 it to find libraries and programs with nonstandard names/locations.
1047
1048 _ACEOF
1049 fi
1050
1051 if test "$ac_init_help" = "recursive"; then
1052 # If there are subdirs, report their specific --help.
1053 ac_popdir=`pwd`
1054 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1055 test -d $ac_dir || continue
1056 ac_builddir=.
1057
1058 if test "$ac_dir" != .; then
1059 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1060 # A "../" for each directory in $ac_dir_suffix.
1061 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1062 else
1063 ac_dir_suffix= ac_top_builddir=
1064 fi
1065
1066 case $srcdir in
1067 .) # No --srcdir option. We are building in place.
1068 ac_srcdir=.
1069 if test -z "$ac_top_builddir"; then
1070 ac_top_srcdir=.
1071 else
1072 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1073 fi ;;
1074 [\\/]* | ?:[\\/]* ) # Absolute path.
1075 ac_srcdir=$srcdir$ac_dir_suffix;
1076 ac_top_srcdir=$srcdir ;;
1077 *) # Relative path.
1078 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1079 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1080 esac
1081
1082 # Do not use `cd foo && pwd` to compute absolute paths, because
1083 # the directories may not exist.
1084 case `pwd` in
1085 .) ac_abs_builddir="$ac_dir";;
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;;
1092 esac
1093 case $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;;
1101 esac
1102 case $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;;
1110 esac
1111 case $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;;
1119 esac
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 ||
1130 test -f $ac_srcdir/configure.in; then
1131 echo
1132 $ac_configure --help
1133 else
1134 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1135 fi
1136 cd $ac_popdir
1137 done
1138 fi
1139
1140 test -n "$ac_init_help" && exit 0
1141 if $ac_init_version; then
1142 cat <<\_ACEOF
1143
1144 Copyright (C) 2003 Free Software Foundation, Inc.
1145 This configure script is free software; the Free Software Foundation
1146 gives unlimited permission to copy, distribute and modify it.
1147 _ACEOF
1148 exit 0
1149 fi
1150 exec 5>config.log
1151 cat >&5 <<_ACEOF
1152 This file contains any messages produced by compilers while
1153 running configure, to aid debugging if configure makes a mistake.
1154
1155 It was created by $as_me, which was
1156 generated by GNU Autoconf 2.59. Invocation command line was
1157
1158 $ $0 $@
1159
1160 _ACEOF
1161 {
1162 cat <<_ASUNAME
1163 ## --------- ##
1164 ## Platform. ##
1165 ## --------- ##
1166
1167 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1168 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1169 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1170 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1171 uname -v = `(uname -v) 2>/dev/null || echo unknown`
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`
1179 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1180 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1181 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1182 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1183
1184 _ASUNAME
1185
1186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1187 for as_dir in $PATH
1188 do
1189 IFS=$as_save_IFS
1190 test -z "$as_dir" && as_dir=.
1191 echo "PATH: $as_dir"
1192 done
1193
1194 } >&5
1195
1196 cat >&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.
1211 ac_configure_args=
1212 ac_configure_args0=
1213 ac_configure_args1=
1214 ac_sep=
1215 ac_must_keep_next=false
1216 for ac_pass in 1 2
1217 do
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
1233 ac_must_keep_next=false # Got value, back to normal.
1234 else
1235 case $ac_arg in
1236 *=* | --config-cache | -C | -disable-* | --disable-* \
1237 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1238 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1239 | -with-* | --with-* | -without-* | --without-* | --x)
1240 case "$ac_configure_args0 " in
1241 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1242 esac
1243 ;;
1244 -* ) ac_must_keep_next=true ;;
1245 esac
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
1253 done
1254 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1255 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
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.
1262 trap '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 \
1279 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1280 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1281 ;;
1282 *)
1283 sed -n \
1284 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
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`
1313 echo "$ac_var='"'"'$ac_val'"'"'"
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
1336 for ac_signal in 1 2 13 15; do
1337 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1338 done
1339 ac_signal=0
1340
1341 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1342 rm -rf conftest* confdefs.h
1343 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1344 echo >confdefs.h
1345
1346 # Predefined preprocessor variables.
1347
1348 cat >>confdefs.h <<_ACEOF
1349 #define PACKAGE_NAME "$PACKAGE_NAME"
1350 _ACEOF
1351
1352
1353 cat >>confdefs.h <<_ACEOF
1354 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1355 _ACEOF
1356
1357
1358 cat >>confdefs.h <<_ACEOF
1359 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1360 _ACEOF
1361
1362
1363 cat >>confdefs.h <<_ACEOF
1364 #define PACKAGE_STRING "$PACKAGE_STRING"
1365 _ACEOF
1366
1367
1368 cat >>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.
1374 # Prefer explicitly selected file to automatically selected ones.
1375 if test -z "$CONFIG_SITE"; then
1376 if test "x$prefix" != xNONE; then
1377 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1378 else
1379 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1380 fi
1381 fi
1382 for ac_site_file in $CONFIG_SITE; do
1383 if test -r "$ac_site_file"; then
1384 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1385 echo "$as_me: loading site script $ac_site_file" >&6;}
1386 sed 's/^/| /' "$ac_site_file" >&5
1387 . "$ac_site_file"
1388 fi
1389 done
1390
1391 if test -r "$cache_file"; then
1392 # Some versions of bash will fail to source /dev/null (special
1393 # files actually), so we avoid doing that.
1394 if test -f "$cache_file"; then
1395 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1396 echo "$as_me: loading cache $cache_file" >&6;}
1397 case $cache_file in
1398 [\\/]* | ?:[\\/]* ) . $cache_file;;
1399 *) . ./$cache_file;;
1400 esac
1401 fi
1402 else
1403 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1404 echo "$as_me: creating cache $cache_file" >&6;}
1405 >$cache_file
1406 fi
1407
1408 # Check that the precious variables saved in the cache have kept the same
1409 # value.
1410 ac_cache_corrupted=false
1411 for ac_var in `(set) 2>&1 |
1412 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1413 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1414 eval ac_new_set=\$ac_env_${ac_var}_set
1415 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1416 eval ac_new_val="\$ac_env_${ac_var}_value"
1417 case $ac_old_set,$ac_new_set in
1418 set,)
1419 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1420 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1421 ac_cache_corrupted=: ;;
1422 ,set)
1423 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1424 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1425 ac_cache_corrupted=: ;;
1426 ,);;
1427 *)
1428 if test "x$ac_old_val" != "x$ac_new_val"; then
1429 # differences in whitespace do not lead to failure.
1430 ac_old_val_w=`echo x $ac_old_val`
1431 ac_new_val_w=`echo x $ac_new_val`
1432 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1433 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1434 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1435 ac_cache_corrupted=:
1436 else
1437 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1438 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1439 eval $ac_var=\$ac_old_val
1440 fi
1441 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1442 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1443 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1444 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1445 fi;;
1446 esac
1447 # Pass precious variables to config.status.
1448 if test "$ac_new_set" = set; then
1449 case $ac_new_val in
1450 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1451 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1452 *) ac_arg=$ac_var=$ac_new_val ;;
1453 esac
1454 case " $ac_configure_args " in
1455 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1456 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1457 esac
1458 fi
1459 done
1460 if $ac_cache_corrupted; then
1461 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1462 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1463 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1464 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1465 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1466 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1467 { (exit 1); exit 1; }; }
1468 fi
1469
1470 ac_ext=c
1471 ac_cpp='$CPP $CPPFLAGS'
1472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498 # This works around the fact that libtool configuration may change LD
1499 # for this particular configuration, but some shells, instead of
1500 # keeping the changes in LD private, export them just because LD is
1501 # exported.
1502 ORIGINAL_LD_FOR_MULTILIBS=$LD
1503
1504 # Default to --enable-multilib
1505 # Check whether --enable-multilib or --disable-multilib was given.
1506 if test "${enable_multilib+set}" = set; then
1507 enableval="$enable_multilib"
1508 case "$enableval" in
1509 yes) multilib=yes ;;
1510 no) multilib=no ;;
1511 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1512 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1513 { (exit 1); exit 1; }; } ;;
1514 esac
1515 else
1516 multilib=yes
1517 fi;
1518
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
1523 if test "$srcdir" = "."; then
1524 if test "$with_target_subdir" != "."; then
1525 multi_basedir="$srcdir/$with_multisrctop../.."
1526 else
1527 multi_basedir="$srcdir/$with_multisrctop.."
1528 fi
1529 else
1530 multi_basedir="$srcdir/.."
1531 fi
1532
1533
1534 # Even if the default multilib is not a cross compilation,
1535 # it may be that some of the other multilibs are.
1536 if test $cross_compiling = no && test $multilib = yes \
1537 && test "x${with_multisubdir}" != x ; then
1538 cross_compiling=maybe
1539 fi
1540
1541 ac_config_commands="$ac_config_commands default-1"
1542
1543
1544 ac_aux_dir=
1545 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1546 if test -f $ac_dir/install-sh; then
1547 ac_aux_dir=$ac_dir
1548 ac_install_sh="$ac_aux_dir/install-sh -c"
1549 break
1550 elif test -f $ac_dir/install.sh; then
1551 ac_aux_dir=$ac_dir
1552 ac_install_sh="$ac_aux_dir/install.sh -c"
1553 break
1554 elif test -f $ac_dir/shtool; then
1555 ac_aux_dir=$ac_dir
1556 ac_install_sh="$ac_aux_dir/shtool install -c"
1557 break
1558 fi
1559 done
1560 if test -z "$ac_aux_dir"; then
1561 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1562 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1563 { (exit 1); exit 1; }; }
1564 fi
1565 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1566 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1567 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1568
1569 # Make sure we can run config.sub.
1570 $ac_config_sub sun4 >/dev/null 2>&1 ||
1571 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1572 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1573 { (exit 1); exit 1; }; }
1574
1575 echo "$as_me:$LINENO: checking build system type" >&5
1576 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1577 if test "${ac_cv_build+set}" = set; then
1578 echo $ECHO_N "(cached) $ECHO_C" >&6
1579 else
1580 ac_cv_build_alias=$build_alias
1581 test -z "$ac_cv_build_alias" &&
1582 ac_cv_build_alias=`$ac_config_guess`
1583 test -z "$ac_cv_build_alias" &&
1584 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1585 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1586 { (exit 1); exit 1; }; }
1587 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1588 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1589 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1590 { (exit 1); exit 1; }; }
1591
1592 fi
1593 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1594 echo "${ECHO_T}$ac_cv_build" >&6
1595 build=$ac_cv_build
1596 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1597 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1598 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1599
1600
1601 echo "$as_me:$LINENO: checking host system type" >&5
1602 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1603 if test "${ac_cv_host+set}" = set; then
1604 echo $ECHO_N "(cached) $ECHO_C" >&6
1605 else
1606 ac_cv_host_alias=$host_alias
1607 test -z "$ac_cv_host_alias" &&
1608 ac_cv_host_alias=$ac_cv_build_alias
1609 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1610 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1611 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1612 { (exit 1); exit 1; }; }
1613
1614 fi
1615 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1616 echo "${ECHO_T}$ac_cv_host" >&6
1617 host=$ac_cv_host
1618 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1619 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1620 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1621
1622
1623 echo "$as_me:$LINENO: checking target system type" >&5
1624 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1625 if test "${ac_cv_target+set}" = set; then
1626 echo $ECHO_N "(cached) $ECHO_C" >&6
1627 else
1628 ac_cv_target_alias=$target_alias
1629 test "x$ac_cv_target_alias" = "x" &&
1630 ac_cv_target_alias=$ac_cv_host_alias
1631 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1632 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1633 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1634 { (exit 1); exit 1; }; }
1635
1636 fi
1637 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1638 echo "${ECHO_T}$ac_cv_target" >&6
1639 target=$ac_cv_target
1640 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1641 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1642 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1643
1644
1645 # The aliases save the names the user supplied, while $host etc.
1646 # will get canonicalized.
1647 test -n "$target_alias" &&
1648 test "$program_prefix$program_suffix$program_transform_name" = \
1649 NONENONEs,x,x, &&
1650 program_prefix=${target_alias}-
1651
1652 # Get the 'noncanonical' system names.
1653 case ${build_alias} in
1654 "") build_noncanonical=${build} ;;
1655 *) build_noncanonical=${build_alias} ;;
1656 esac
1657
1658 case ${host_alias} in
1659 "") host_noncanonical=${build_noncanonical} ;;
1660 *) host_noncanonical=${host_alias} ;;
1661 esac
1662
1663 case ${target_alias} in
1664 "") target_noncanonical=${host_noncanonical} ;;
1665 *) target_noncanonical=${target_alias} ;;
1666 esac
1667
1668
1669
1670
1671 # This works around an automake problem.
1672 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1673
1674
1675 am__api_version="1.9"
1676 # Find a good install program. We prefer a C program (faster),
1677 # so one script is as good as another. But avoid the broken or
1678 # incompatible versions:
1679 # SysV /etc/install, /usr/sbin/install
1680 # SunOS /usr/etc/install
1681 # IRIX /sbin/install
1682 # AIX /bin/install
1683 # AmigaOS /C/install, which installs bootblocks on floppy discs
1684 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1685 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1686 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1687 # OS/2's system install, which has a completely different semantic
1688 # ./install, which can be erroneously created by make from ./install.sh.
1689 # Reject install programs that cannot install multiple files.
1690 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1691 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1692 if test -z "$INSTALL"; then
1693 if test "${ac_cv_path_install+set}" = set; then
1694 echo $ECHO_N "(cached) $ECHO_C" >&6
1695 else
1696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1697 for as_dir in $PATH
1698 do
1699 IFS=$as_save_IFS
1700 test -z "$as_dir" && as_dir=.
1701 # Account for people who put trailing slashes in PATH elements.
1702 case $as_dir/ in
1703 ./ | .// | /cC/* | \
1704 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1705 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1706 /usr/ucb/* ) ;;
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
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
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
1735 fi
1736 fi
1737 done
1738 done
1739 ;;
1740 esac
1741 done
1742
1743 rm -rf conftest.one conftest.two conftest.dir
1744
1745 fi
1746 if test "${ac_cv_path_install+set}" = set; then
1747 INSTALL=$ac_cv_path_install
1748 else
1749 # As a last resort, use the slow shell script. Don't cache a
1750 # value for INSTALL within a source directory, because that will
1751 # break other packages using the cache if that directory is
1752 # removed, or if the value is a relative name.
1753 INSTALL=$ac_install_sh
1754 fi
1755 fi
1756 echo "$as_me:$LINENO: result: $INSTALL" >&5
1757 echo "${ECHO_T}$INSTALL" >&6
1758
1759 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1760 # It thinks the first close brace ends the variable substitution.
1761 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1762
1763 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1764
1765 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1766
1767 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1768 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1769 # Just in case
1770 sleep 1
1771 echo timestamp > conftest.file
1772 # Do `set' in a subshell so we don't clobber the current shell's
1773 # arguments. Must try -L first in case configure is actually a
1774 # symlink; some systems play weird games with the mod time of symlinks
1775 # (eg FreeBSD returns the mod time of the symlink's containing
1776 # directory).
1777 if (
1778 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1779 if test "$*" = "X"; then
1780 # -L didn't work.
1781 set X `ls -t $srcdir/configure conftest.file`
1782 fi
1783 rm -f conftest.file
1784 if test "$*" != "X $srcdir/configure conftest.file" \
1785 && test "$*" != "X conftest.file $srcdir/configure"; then
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".
1791 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1792 alias in your environment" >&5
1793 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1794 alias in your environment" >&2;}
1795 { (exit 1); exit 1; }; }
1796 fi
1797
1798 test "$2" = conftest.file
1799 )
1800 then
1801 # Ok.
1802 :
1803 else
1804 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1805 Check your system clock" >&5
1806 echo "$as_me: error: newly created file is older than distributed files!
1807 Check your system clock" >&2;}
1808 { (exit 1); exit 1; }; }
1809 fi
1810 echo "$as_me:$LINENO: result: yes" >&5
1811 echo "${ECHO_T}yes" >&6
1812 test "$program_prefix" != NONE &&
1813 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1814 # Use a double $ so make ignores it.
1815 test "$program_suffix" != NONE &&
1816 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1817 # Double any \ or $. echo might interpret backslashes.
1818 # By default was `s,x,x', remove it if useless.
1819 cat <<\_ACEOF >conftest.sed
1820 s/[\\$]/&&/g;s/;s,x,x,$//
1821 _ACEOF
1822 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1823 rm conftest.sed
1824
1825 # expand $ac_aux_dir to an absolute path
1826 am_aux_dir=`cd $ac_aux_dir && pwd`
1827
1828 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1829 # Use eval to expand $SHELL
1830 if eval "$MISSING --run true"; then
1831 am_missing_run="$MISSING --run "
1832 else
1833 am_missing_run=
1834 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1835 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1836 fi
1837
1838 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1839 # We used to keeping the `.' as first argument, in order to
1840 # allow $(mkdir_p) to be used without argument. As in
1841 # $(mkdir_p) $(somedir)
1842 # where $(somedir) is conditionally defined. However this is wrong
1843 # for two reasons:
1844 # 1. if the package is installed by a user who cannot write `.'
1845 # make install will fail,
1846 # 2. the above comment should most certainly read
1847 # $(mkdir_p) $(DESTDIR)$(somedir)
1848 # so it does not work when $(somedir) is undefined and
1849 # $(DESTDIR) is not.
1850 # To support the latter case, we have to write
1851 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1852 # so the `.' trick is pointless.
1853 mkdir_p='mkdir -p --'
1854 else
1855 # On NextStep and OpenStep, the `mkdir' command does not
1856 # recognize any option. It will interpret all options as
1857 # directories to create, and then abort because `.' already
1858 # exists.
1859 for d in ./-p ./--version;
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
1869 fi
1870
1871 for ac_prog in gawk mawk nawk awk
1872 do
1873 # Extract the first word of "$ac_prog", so it can be a program name with args.
1874 set dummy $ac_prog; ac_word=$2
1875 echo "$as_me:$LINENO: checking for $ac_word" >&5
1876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1877 if test "${ac_cv_prog_AWK+set}" = set; then
1878 echo $ECHO_N "(cached) $ECHO_C" >&6
1879 else
1880 if test -n "$AWK"; then
1881 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1882 else
1883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1884 for as_dir in $PATH
1885 do
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
1894 done
1895 done
1896
1897 fi
1898 fi
1899 AWK=$ac_cv_prog_AWK
1900 if test -n "$AWK"; then
1901 echo "$as_me:$LINENO: result: $AWK" >&5
1902 echo "${ECHO_T}$AWK" >&6
1903 else
1904 echo "$as_me:$LINENO: result: no" >&5
1905 echo "${ECHO_T}no" >&6
1906 fi
1907
1908 test -n "$AWK" && break
1909 done
1910
1911 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1912 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1913 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1914 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1915 echo $ECHO_N "(cached) $ECHO_C" >&6
1916 else
1917 cat >conftest.make <<\_ACEOF
1918 all:
1919 @echo 'ac_maketemp="$(MAKE)"'
1920 _ACEOF
1921 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1922 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1923 if test -n "$ac_maketemp"; then
1924 eval ac_cv_prog_make_${ac_make}_set=yes
1925 else
1926 eval ac_cv_prog_make_${ac_make}_set=no
1927 fi
1928 rm -f conftest.make
1929 fi
1930 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1931 echo "$as_me:$LINENO: result: yes" >&5
1932 echo "${ECHO_T}yes" >&6
1933 SET_MAKE=
1934 else
1935 echo "$as_me:$LINENO: result: no" >&5
1936 echo "${ECHO_T}no" >&6
1937 SET_MAKE="MAKE=${MAKE-make}"
1938 fi
1939
1940 rm -rf .tst 2>/dev/null
1941 mkdir .tst 2>/dev/null
1942 if test -d .tst; then
1943 am__leading_dot=.
1944 else
1945 am__leading_dot=_
1946 fi
1947 rmdir .tst 2>/dev/null
1948
1949 # test to see if srcdir already configured
1950 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1951 test -f $srcdir/config.status; then
1952 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1953 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1954 { (exit 1); exit 1; }; }
1955 fi
1956
1957 # test whether we have cygpath
1958 if test -z "$CYGPATH_W"; then
1959 if (cygpath --version) >/dev/null 2>/dev/null; then
1960 CYGPATH_W='cygpath -w'
1961 else
1962 CYGPATH_W=echo
1963 fi
1964 fi
1965
1966
1967 # Define the identity of the package.
1968 PACKAGE=gc
1969 VERSION=6.6
1970
1971
1972 # Some tools Automake needs.
1973
1974 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1975
1976
1977 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1978
1979
1980 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1981
1982
1983 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1984
1985
1986 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1987
1988 install_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.
1994 if test "$cross_compiling" != no; then
1995 if test -n "$ac_tool_prefix"; then
1996 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1997 set dummy ${ac_tool_prefix}strip; ac_word=$2
1998 echo "$as_me:$LINENO: checking for $ac_word" >&5
1999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2000 if test "${ac_cv_prog_STRIP+set}" = set; then
2001 echo $ECHO_N "(cached) $ECHO_C" >&6
2002 else
2003 if test -n "$STRIP"; then
2004 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2005 else
2006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2007 for as_dir in $PATH
2008 do
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
2017 done
2018 done
2019
2020 fi
2021 fi
2022 STRIP=$ac_cv_prog_STRIP
2023 if test -n "$STRIP"; then
2024 echo "$as_me:$LINENO: result: $STRIP" >&5
2025 echo "${ECHO_T}$STRIP" >&6
2026 else
2027 echo "$as_me:$LINENO: result: no" >&5
2028 echo "${ECHO_T}no" >&6
2029 fi
2030
2031 fi
2032 if test -z "$ac_cv_prog_STRIP"; then
2033 ac_ct_STRIP=$STRIP
2034 # Extract the first word of "strip", so it can be a program name with args.
2035 set dummy strip; ac_word=$2
2036 echo "$as_me:$LINENO: checking for $ac_word" >&5
2037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2038 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2039 echo $ECHO_N "(cached) $ECHO_C" >&6
2040 else
2041 if test -n "$ac_ct_STRIP"; then
2042 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2043 else
2044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2045 for as_dir in $PATH
2046 do
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
2055 done
2056 done
2057
2058 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2059 fi
2060 fi
2061 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2062 if test -n "$ac_ct_STRIP"; then
2063 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2064 echo "${ECHO_T}$ac_ct_STRIP" >&6
2065 else
2066 echo "$as_me:$LINENO: result: no" >&5
2067 echo "${ECHO_T}no" >&6
2068 fi
2069
2070 STRIP=$ac_ct_STRIP
2071 else
2072 STRIP="$ac_cv_prog_STRIP"
2073 fi
2074
2075 fi
2076 INSTALL_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.
2080 # Always define AMTAR for backward compatibility.
2081
2082 AMTAR=${AMTAR-"${am_missing_run}tar"}
2083
2084 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2085
2086
2087
2088
2089
2090
2091 # The autoconf 2.5x version of the no-executables hack.
2092
2093
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
2100 ac_ext=c
2101 ac_cpp='$CPP $CPPFLAGS'
2102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2105 if test -n "$ac_tool_prefix"; then
2106 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2107 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2108 echo "$as_me:$LINENO: checking for $ac_word" >&5
2109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2110 if test "${ac_cv_prog_CC+set}" = set; then
2111 echo $ECHO_N "(cached) $ECHO_C" >&6
2112 else
2113 if test -n "$CC"; then
2114 ac_cv_prog_CC="$CC" # Let the user override the test.
2115 else
2116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2117 for as_dir in $PATH
2118 do
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
2127 done
2128 done
2129
2130 fi
2131 fi
2132 CC=$ac_cv_prog_CC
2133 if test -n "$CC"; then
2134 echo "$as_me:$LINENO: result: $CC" >&5
2135 echo "${ECHO_T}$CC" >&6
2136 else
2137 echo "$as_me:$LINENO: result: no" >&5
2138 echo "${ECHO_T}no" >&6
2139 fi
2140
2141 fi
2142 if test -z "$ac_cv_prog_CC"; then
2143 ac_ct_CC=$CC
2144 # Extract the first word of "gcc", so it can be a program name with args.
2145 set dummy gcc; ac_word=$2
2146 echo "$as_me:$LINENO: checking for $ac_word" >&5
2147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2148 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2149 echo $ECHO_N "(cached) $ECHO_C" >&6
2150 else
2151 if test -n "$ac_ct_CC"; then
2152 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2153 else
2154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2155 for as_dir in $PATH
2156 do
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
2165 done
2166 done
2167
2168 fi
2169 fi
2170 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2171 if test -n "$ac_ct_CC"; then
2172 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2173 echo "${ECHO_T}$ac_ct_CC" >&6
2174 else
2175 echo "$as_me:$LINENO: result: no" >&5
2176 echo "${ECHO_T}no" >&6
2177 fi
2178
2179 CC=$ac_ct_CC
2180 else
2181 CC="$ac_cv_prog_CC"
2182 fi
2183
2184 if test -z "$CC"; then
2185 if test -n "$ac_tool_prefix"; then
2186 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2187 set dummy ${ac_tool_prefix}cc; ac_word=$2
2188 echo "$as_me:$LINENO: checking for $ac_word" >&5
2189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2190 if test "${ac_cv_prog_CC+set}" = set; then
2191 echo $ECHO_N "(cached) $ECHO_C" >&6
2192 else
2193 if test -n "$CC"; then
2194 ac_cv_prog_CC="$CC" # Let the user override the test.
2195 else
2196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2197 for as_dir in $PATH
2198 do
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
2207 done
2208 done
2209
2210 fi
2211 fi
2212 CC=$ac_cv_prog_CC
2213 if test -n "$CC"; then
2214 echo "$as_me:$LINENO: result: $CC" >&5
2215 echo "${ECHO_T}$CC" >&6
2216 else
2217 echo "$as_me:$LINENO: result: no" >&5
2218 echo "${ECHO_T}no" >&6
2219 fi
2220
2221 fi
2222 if test -z "$ac_cv_prog_CC"; then
2223 ac_ct_CC=$CC
2224 # Extract the first word of "cc", so it can be a program name with args.
2225 set dummy cc; ac_word=$2
2226 echo "$as_me:$LINENO: checking for $ac_word" >&5
2227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2228 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2229 echo $ECHO_N "(cached) $ECHO_C" >&6
2230 else
2231 if test -n "$ac_ct_CC"; then
2232 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2233 else
2234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2235 for as_dir in $PATH
2236 do
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
2245 done
2246 done
2247
2248 fi
2249 fi
2250 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2251 if test -n "$ac_ct_CC"; then
2252 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2253 echo "${ECHO_T}$ac_ct_CC" >&6
2254 else
2255 echo "$as_me:$LINENO: result: no" >&5
2256 echo "${ECHO_T}no" >&6
2257 fi
2258
2259 CC=$ac_ct_CC
2260 else
2261 CC="$ac_cv_prog_CC"
2262 fi
2263
2264 fi
2265 if test -z "$CC"; then
2266 # Extract the first word of "cc", so it can be a program name with args.
2267 set dummy cc; ac_word=$2
2268 echo "$as_me:$LINENO: checking for $ac_word" >&5
2269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2270 if test "${ac_cv_prog_CC+set}" = set; then
2271 echo $ECHO_N "(cached) $ECHO_C" >&6
2272 else
2273 if test -n "$CC"; then
2274 ac_cv_prog_CC="$CC" # Let the user override the test.
2275 else
2276 ac_prog_rejected=no
2277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2278 for as_dir in $PATH
2279 do
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
2292 done
2293 done
2294
2295 if test $ac_prog_rejected = yes; then
2296 # We found a bogon in the path, so make sure we never use it.
2297 set dummy $ac_cv_prog_CC
2298 shift
2299 if test $# != 0; then
2300 # We chose a different compiler from the bogus one.
2301 # However, it has the same basename, so the bogon will be chosen
2302 # first if we set CC to just the basename; use the full file name.
2303 shift
2304 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2305 fi
2306 fi
2307 fi
2308 fi
2309 CC=$ac_cv_prog_CC
2310 if test -n "$CC"; then
2311 echo "$as_me:$LINENO: result: $CC" >&5
2312 echo "${ECHO_T}$CC" >&6
2313 else
2314 echo "$as_me:$LINENO: result: no" >&5
2315 echo "${ECHO_T}no" >&6
2316 fi
2317
2318 fi
2319 if 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.
2324 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2325 echo "$as_me:$LINENO: checking for $ac_word" >&5
2326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2327 if test "${ac_cv_prog_CC+set}" = set; then
2328 echo $ECHO_N "(cached) $ECHO_C" >&6
2329 else
2330 if test -n "$CC"; then
2331 ac_cv_prog_CC="$CC" # Let the user override the test.
2332 else
2333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2334 for as_dir in $PATH
2335 do
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
2344 done
2345 done
2346
2347 fi
2348 fi
2349 CC=$ac_cv_prog_CC
2350 if test -n "$CC"; then
2351 echo "$as_me:$LINENO: result: $CC" >&5
2352 echo "${ECHO_T}$CC" >&6
2353 else
2354 echo "$as_me:$LINENO: result: no" >&5
2355 echo "${ECHO_T}no" >&6
2356 fi
2357
2358 test -n "$CC" && break
2359 done
2360 fi
2361 if test -z "$CC"; then
2362 ac_ct_CC=$CC
2363 for ac_prog in cl
2364 do
2365 # Extract the first word of "$ac_prog", so it can be a program name with args.
2366 set dummy $ac_prog; ac_word=$2
2367 echo "$as_me:$LINENO: checking for $ac_word" >&5
2368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2369 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2370 echo $ECHO_N "(cached) $ECHO_C" >&6
2371 else
2372 if test -n "$ac_ct_CC"; then
2373 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2374 else
2375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2376 for as_dir in $PATH
2377 do
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
2386 done
2387 done
2388
2389 fi
2390 fi
2391 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2392 if test -n "$ac_ct_CC"; then
2393 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2394 echo "${ECHO_T}$ac_ct_CC" >&6
2395 else
2396 echo "$as_me:$LINENO: result: no" >&5
2397 echo "${ECHO_T}no" >&6
2398 fi
2399
2400 test -n "$ac_ct_CC" && break
2401 done
2402
2403 CC=$ac_ct_CC
2404 fi
2405
2406 fi
2407
2408
2409 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2410 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2411 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2412 See \`config.log' for more details." >&5
2413 echo "$as_me: error: no acceptable C compiler found in \$PATH
2414 See \`config.log' for more details." >&2;}
2415 { (exit 1); exit 1; }; }; }
2416
2417 # Provide some information about the compiler.
2418 echo "$as_me:$LINENO:" \
2419 "checking for C compiler version" >&5
2420 ac_compiler=`set X $ac_compile; echo $2`
2421 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2422 (eval $ac_compiler --version </dev/null >&5) 2>&5
2423 ac_status=$?
2424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425 (exit $ac_status); }
2426 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2427 (eval $ac_compiler -v </dev/null >&5) 2>&5
2428 ac_status=$?
2429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430 (exit $ac_status); }
2431 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2432 (eval $ac_compiler -V </dev/null >&5) 2>&5
2433 ac_status=$?
2434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435 (exit $ac_status); }
2436
2437 cat >conftest.$ac_ext <<_ACEOF
2438 /* confdefs.h. */
2439 _ACEOF
2440 cat confdefs.h >>conftest.$ac_ext
2441 cat >>conftest.$ac_ext <<_ACEOF
2442 /* end confdefs.h. */
2443
2444 int
2445 main ()
2446 {
2447
2448 ;
2449 return 0;
2450 }
2451 _ACEOF
2452 # FIXME: Cleanup?
2453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2454 (eval $ac_link) 2>&5
2455 ac_status=$?
2456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457 (exit $ac_status); }; then
2458 gcc_no_link=no
2459 else
2460 gcc_no_link=yes
2461 fi
2462
2463 if test x$gcc_no_link = xyes; then
2464 # Setting cross_compile will disable run tests; it will
2465 # also disable AC_CHECK_FILE but that's generally
2466 # correct if we can't link.
2467 cross_compiling=yes
2468 EXEEXT=
2469 else
2470 cat >conftest.$ac_ext <<_ACEOF
2471 /* confdefs.h. */
2472 _ACEOF
2473 cat confdefs.h >>conftest.$ac_ext
2474 cat >>conftest.$ac_ext <<_ACEOF
2475 /* end confdefs.h. */
2476
2477 int
2478 main ()
2479 {
2480
2481 ;
2482 return 0;
2483 }
2484 _ACEOF
2485 ac_clean_files_save=$ac_clean_files
2486 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2487 # Try to create an executable without -o first, disregard a.out.
2488 # It will help us diagnose broken compilers, and finding out an intuition
2489 # of exeext.
2490 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2491 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2492 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2493 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2494 (eval $ac_link_default) 2>&5
2495 ac_status=$?
2496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497 (exit $ac_status); }; then
2498 # Find the output, starting from the most likely. This scheme is
2499 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2500 # resort.
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.
2504 ac_cv_exeext=
2505 # b.out is created by i960 compilers.
2506 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2507 do
2508 test -f "$ac_file" || continue
2509 case $ac_file in
2510 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2511 ;;
2512 conftest.$ac_ext )
2513 # This is the source file.
2514 ;;
2515 [ab].out )
2516 # We found the default executable, but exeext='' is most
2517 # certainly right.
2518 break;;
2519 *.* )
2520 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2521 # FIXME: I believe we export ac_cv_exeext for Libtool,
2522 # but it would be cool to find out if it's true. Does anybody
2523 # maintain Libtool? --akim.
2524 export ac_cv_exeext
2525 break;;
2526 * )
2527 break;;
2528 esac
2529 done
2530 else
2531 echo "$as_me: failed program was:" >&5
2532 sed 's/^/| /' conftest.$ac_ext >&5
2533
2534 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2535 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2536 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2537 See \`config.log' for more details." >&5
2538 echo "$as_me: error: C compiler cannot create executables
2539 See \`config.log' for more details." >&2;}
2540 { (exit 77); exit 77; }; }; }
2541 fi
2542
2543 ac_exeext=$ac_cv_exeext
2544 echo "$as_me:$LINENO: result: $ac_file" >&5
2545 echo "${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.
2549 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2550 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2551 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2552 # If not cross compiling, check that we can run a simple program.
2553 if test "$cross_compiling" != yes; then
2554 if { ac_try='./$ac_file'
2555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2556 (eval $ac_try) 2>&5
2557 ac_status=$?
2558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559 (exit $ac_status); }; }; then
2560 cross_compiling=no
2561 else
2562 if test "$cross_compiling" = maybe; then
2563 cross_compiling=yes
2564 else
2565 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2566 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2567 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2568 If you meant to cross compile, use \`--host'.
2569 See \`config.log' for more details." >&5
2570 echo "$as_me: error: cannot run C compiled programs.
2571 If you meant to cross compile, use \`--host'.
2572 See \`config.log' for more details." >&2;}
2573 { (exit 1); exit 1; }; }; }
2574 fi
2575 fi
2576 fi
2577 echo "$as_me:$LINENO: result: yes" >&5
2578 echo "${ECHO_T}yes" >&6
2579
2580 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2581 ac_clean_files=$ac_clean_files_save
2582 # Check the compiler produces executables we can run. If not, either
2583 # the compiler is broken, or we cross compile.
2584 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2585 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2586 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2587 echo "${ECHO_T}$cross_compiling" >&6
2588
2589 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2590 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2592 (eval $ac_link) 2>&5
2593 ac_status=$?
2594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595 (exit $ac_status); }; then
2596 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2597 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2598 # work properly (i.e., refer to `conftest.exe'), while it won't with
2599 # `rm'.
2600 for ac_file in conftest.exe conftest conftest.*; do
2601 test -f "$ac_file" || continue
2602 case $ac_file in
2603 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2604 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2605 export ac_cv_exeext
2606 break;;
2607 * ) break;;
2608 esac
2609 done
2610 else
2611 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2612 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2613 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2614 See \`config.log' for more details." >&5
2615 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2616 See \`config.log' for more details." >&2;}
2617 { (exit 1); exit 1; }; }; }
2618 fi
2619
2620 rm -f conftest$ac_cv_exeext
2621 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2622 echo "${ECHO_T}$ac_cv_exeext" >&6
2623
2624 rm -f conftest.$ac_ext
2625 EXEEXT=$ac_cv_exeext
2626 ac_exeext=$EXEEXT
2627 fi
2628 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2629 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2630 if test "${ac_cv_objext+set}" = set; then
2631 echo $ECHO_N "(cached) $ECHO_C" >&6
2632 else
2633 cat >conftest.$ac_ext <<_ACEOF
2634 /* confdefs.h. */
2635 _ACEOF
2636 cat confdefs.h >>conftest.$ac_ext
2637 cat >>conftest.$ac_ext <<_ACEOF
2638 /* end confdefs.h. */
2639
2640 int
2641 main ()
2642 {
2643
2644 ;
2645 return 0;
2646 }
2647 _ACEOF
2648 rm -f conftest.o conftest.obj
2649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2650 (eval $ac_compile) 2>&5
2651 ac_status=$?
2652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653 (exit $ac_status); }; then
2654 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2655 case $ac_file in
2656 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2657 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2658 break;;
2659 esac
2660 done
2661 else
2662 echo "$as_me: failed program was:" >&5
2663 sed 's/^/| /' conftest.$ac_ext >&5
2664
2665 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2666 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2667 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2668 See \`config.log' for more details." >&5
2669 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2670 See \`config.log' for more details." >&2;}
2671 { (exit 1); exit 1; }; }; }
2672 fi
2673
2674 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2675 fi
2676 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2677 echo "${ECHO_T}$ac_cv_objext" >&6
2678 OBJEXT=$ac_cv_objext
2679 ac_objext=$OBJEXT
2680 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2681 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2682 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2683 echo $ECHO_N "(cached) $ECHO_C" >&6
2684 else
2685 cat >conftest.$ac_ext <<_ACEOF
2686 /* confdefs.h. */
2687 _ACEOF
2688 cat confdefs.h >>conftest.$ac_ext
2689 cat >>conftest.$ac_ext <<_ACEOF
2690 /* end confdefs.h. */
2691
2692 int
2693 main ()
2694 {
2695 #ifndef __GNUC__
2696 choke me
2697 #endif
2698
2699 ;
2700 return 0;
2701 }
2702 _ACEOF
2703 rm -f conftest.$ac_objext
2704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2705 (eval $ac_compile) 2>conftest.er1
2706 ac_status=$?
2707 grep -v '^ *+' conftest.er1 >conftest.err
2708 rm -f conftest.er1
2709 cat conftest.err >&5
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); } &&
2712 { ac_try='test -z "$ac_c_werror_flag"
2713 || test ! -s conftest.err'
2714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2715 (eval $ac_try) 2>&5
2716 ac_status=$?
2717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718 (exit $ac_status); }; } &&
2719 { ac_try='test -s conftest.$ac_objext'
2720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2721 (eval $ac_try) 2>&5
2722 ac_status=$?
2723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724 (exit $ac_status); }; }; then
2725 ac_compiler_gnu=yes
2726 else
2727 echo "$as_me: failed program was:" >&5
2728 sed 's/^/| /' conftest.$ac_ext >&5
2729
2730 ac_compiler_gnu=no
2731 fi
2732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2733 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2734
2735 fi
2736 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2737 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2738 GCC=`test $ac_compiler_gnu = yes && echo yes`
2739 ac_test_CFLAGS=${CFLAGS+set}
2740 ac_save_CFLAGS=$CFLAGS
2741 CFLAGS="-g"
2742 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2743 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2744 if test "${ac_cv_prog_cc_g+set}" = set; then
2745 echo $ECHO_N "(cached) $ECHO_C" >&6
2746 else
2747 cat >conftest.$ac_ext <<_ACEOF
2748 /* confdefs.h. */
2749 _ACEOF
2750 cat confdefs.h >>conftest.$ac_ext
2751 cat >>conftest.$ac_ext <<_ACEOF
2752 /* end confdefs.h. */
2753
2754 int
2755 main ()
2756 {
2757
2758 ;
2759 return 0;
2760 }
2761 _ACEOF
2762 rm -f conftest.$ac_objext
2763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2764 (eval $ac_compile) 2>conftest.er1
2765 ac_status=$?
2766 grep -v '^ *+' conftest.er1 >conftest.err
2767 rm -f conftest.er1
2768 cat conftest.err >&5
2769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770 (exit $ac_status); } &&
2771 { ac_try='test -z "$ac_c_werror_flag"
2772 || test ! -s conftest.err'
2773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2774 (eval $ac_try) 2>&5
2775 ac_status=$?
2776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777 (exit $ac_status); }; } &&
2778 { ac_try='test -s conftest.$ac_objext'
2779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2780 (eval $ac_try) 2>&5
2781 ac_status=$?
2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); }; }; then
2784 ac_cv_prog_cc_g=yes
2785 else
2786 echo "$as_me: failed program was:" >&5
2787 sed 's/^/| /' conftest.$ac_ext >&5
2788
2789 ac_cv_prog_cc_g=no
2790 fi
2791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2792 fi
2793 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2794 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2795 if test "$ac_test_CFLAGS" = set; then
2796 CFLAGS=$ac_save_CFLAGS
2797 elif test $ac_cv_prog_cc_g = yes; then
2798 if test "$GCC" = yes; then
2799 CFLAGS="-g -O2"
2800 else
2801 CFLAGS="-g"
2802 fi
2803 else
2804 if test "$GCC" = yes; then
2805 CFLAGS="-O2"
2806 else
2807 CFLAGS=
2808 fi
2809 fi
2810 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2811 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2812 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2813 echo $ECHO_N "(cached) $ECHO_C" >&6
2814 else
2815 ac_cv_prog_cc_stdc=no
2816 ac_save_CC=$CC
2817 cat >conftest.$ac_ext <<_ACEOF
2818 /* confdefs.h. */
2819 _ACEOF
2820 cat confdefs.h >>conftest.$ac_ext
2821 cat >>conftest.$ac_ext <<_ACEOF
2822 /* end confdefs.h. */
2823 #include <stdarg.h>
2824 #include <stdio.h>
2825 #include <sys/types.h>
2826 #include <sys/stat.h>
2827 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2828 struct buf { int x; };
2829 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2830 static char *e (p, i)
2831 char **p;
2832 int i;
2833 {
2834 return p[i];
2835 }
2836 static 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 }
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. */
2853 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2854
2855 int test (int i, double x);
2856 struct s1 {int (*f) (int a);};
2857 struct s2 {int (*f) (double a);};
2858 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2859 int argc;
2860 char **argv;
2861 int
2862 main ()
2863 {
2864 return 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__
2876 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2877 do
2878 CC="$ac_save_CC $ac_arg"
2879 rm -f conftest.$ac_objext
2880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2881 (eval $ac_compile) 2>conftest.er1
2882 ac_status=$?
2883 grep -v '^ *+' conftest.er1 >conftest.err
2884 rm -f conftest.er1
2885 cat conftest.err >&5
2886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); } &&
2888 { ac_try='test -z "$ac_c_werror_flag"
2889 || test ! -s conftest.err'
2890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2891 (eval $ac_try) 2>&5
2892 ac_status=$?
2893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894 (exit $ac_status); }; } &&
2895 { ac_try='test -s conftest.$ac_objext'
2896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2897 (eval $ac_try) 2>&5
2898 ac_status=$?
2899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900 (exit $ac_status); }; }; then
2901 ac_cv_prog_cc_stdc=$ac_arg
2902 break
2903 else
2904 echo "$as_me: failed program was:" >&5
2905 sed 's/^/| /' conftest.$ac_ext >&5
2906
2907 fi
2908 rm -f conftest.err conftest.$ac_objext
2909 done
2910 rm -f conftest.$ac_ext conftest.$ac_objext
2911 CC=$ac_save_CC
2912
2913 fi
2914
2915 case "x$ac_cv_prog_cc_stdc" in
2916 x|xno)
2917 echo "$as_me:$LINENO: result: none needed" >&5
2918 echo "${ECHO_T}none needed" >&6 ;;
2919 *)
2920 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2921 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2922 CC="$CC $ac_cv_prog_cc_stdc" ;;
2923 esac
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.
2929 cat >conftest.$ac_ext <<_ACEOF
2930 #ifndef __cplusplus
2931 choke me
2932 #endif
2933 _ACEOF
2934 rm -f conftest.$ac_objext
2935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2936 (eval $ac_compile) 2>conftest.er1
2937 ac_status=$?
2938 grep -v '^ *+' conftest.er1 >conftest.err
2939 rm -f conftest.er1
2940 cat conftest.err >&5
2941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942 (exit $ac_status); } &&
2943 { ac_try='test -z "$ac_c_werror_flag"
2944 || test ! -s conftest.err'
2945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2946 (eval $ac_try) 2>&5
2947 ac_status=$?
2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949 (exit $ac_status); }; } &&
2950 { ac_try='test -s conftest.$ac_objext'
2951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2952 (eval $ac_try) 2>&5
2953 ac_status=$?
2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955 (exit $ac_status); }; }; then
2956 for ac_declaration in \
2957 '' \
2958 'extern "C" void std::exit (int) throw (); using std::exit;' \
2959 'extern "C" void std::exit (int); using std::exit;' \
2960 'extern "C" void exit (int) throw ();' \
2961 'extern "C" void exit (int);' \
2962 'void exit (int);'
2963 do
2964 cat >conftest.$ac_ext <<_ACEOF
2965 /* confdefs.h. */
2966 _ACEOF
2967 cat confdefs.h >>conftest.$ac_ext
2968 cat >>conftest.$ac_ext <<_ACEOF
2969 /* end confdefs.h. */
2970 $ac_declaration
2971 #include <stdlib.h>
2972 int
2973 main ()
2974 {
2975 exit (42);
2976 ;
2977 return 0;
2978 }
2979 _ACEOF
2980 rm -f conftest.$ac_objext
2981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2982 (eval $ac_compile) 2>conftest.er1
2983 ac_status=$?
2984 grep -v '^ *+' conftest.er1 >conftest.err
2985 rm -f conftest.er1
2986 cat conftest.err >&5
2987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988 (exit $ac_status); } &&
2989 { ac_try='test -z "$ac_c_werror_flag"
2990 || test ! -s conftest.err'
2991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2992 (eval $ac_try) 2>&5
2993 ac_status=$?
2994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995 (exit $ac_status); }; } &&
2996 { ac_try='test -s conftest.$ac_objext'
2997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2998 (eval $ac_try) 2>&5
2999 ac_status=$?
3000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001 (exit $ac_status); }; }; then
3002 :
3003 else
3004 echo "$as_me: failed program was:" >&5
3005 sed 's/^/| /' conftest.$ac_ext >&5
3006
3007 continue
3008 fi
3009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3010 cat >conftest.$ac_ext <<_ACEOF
3011 /* confdefs.h. */
3012 _ACEOF
3013 cat confdefs.h >>conftest.$ac_ext
3014 cat >>conftest.$ac_ext <<_ACEOF
3015 /* end confdefs.h. */
3016 $ac_declaration
3017 int
3018 main ()
3019 {
3020 exit (42);
3021 ;
3022 return 0;
3023 }
3024 _ACEOF
3025 rm -f conftest.$ac_objext
3026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3027 (eval $ac_compile) 2>conftest.er1
3028 ac_status=$?
3029 grep -v '^ *+' conftest.er1 >conftest.err
3030 rm -f conftest.er1
3031 cat conftest.err >&5
3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033 (exit $ac_status); } &&
3034 { ac_try='test -z "$ac_c_werror_flag"
3035 || test ! -s conftest.err'
3036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3037 (eval $ac_try) 2>&5
3038 ac_status=$?
3039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040 (exit $ac_status); }; } &&
3041 { ac_try='test -s conftest.$ac_objext'
3042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3043 (eval $ac_try) 2>&5
3044 ac_status=$?
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); }; }; then
3047 break
3048 else
3049 echo "$as_me: failed program was:" >&5
3050 sed 's/^/| /' conftest.$ac_ext >&5
3051
3052 fi
3053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3054 done
3055 rm -f conftest*
3056 if test -n "$ac_declaration"; then
3057 echo '#ifdef __cplusplus' >>confdefs.h
3058 echo $ac_declaration >>confdefs.h
3059 echo '#endif' >>confdefs.h
3060 fi
3061
3062 else
3063 echo "$as_me: failed program was:" >&5
3064 sed 's/^/| /' conftest.$ac_ext >&5
3065
3066 fi
3067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3068 ac_ext=c
3069 ac_cpp='$CPP $CPPFLAGS'
3070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3073 DEPDIR="${am__leading_dot}deps"
3074
3075 ac_config_commands="$ac_config_commands depfiles"
3076
3077
3078 am_make=${MAKE-make}
3079 cat > confinc << 'END'
3080 am__doit:
3081 @echo done
3082 .PHONY: am__doit
3083 END
3084 # If we don't find an include directive, just comment out the code.
3085 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3086 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3087 am__include="#"
3088 am__quote=
3089 _am_result=none
3090 # First try GNU make style include.
3091 echo "include confinc" > confmf
3092 # We grep out `Entering directory' and `Leaving directory'
3093 # messages which can occur if `w' ends up in MAKEFLAGS.
3094 # In particular we don't look at `^make:' because GNU make might
3095 # be invoked under some other name (usually "gmake"), in which
3096 # case it prints its new name instead of `make'.
3097 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3098 am__include=include
3099 am__quote=
3100 _am_result=GNU
3101 fi
3102 # Now try BSD make style include.
3103 if test "$am__include" = "#"; then
3104 echo '.include "confinc"' > confmf
3105 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3106 am__include=.include
3107 am__quote="\""
3108 _am_result=BSD
3109 fi
3110 fi
3111
3112
3113 echo "$as_me:$LINENO: result: $_am_result" >&5
3114 echo "${ECHO_T}$_am_result" >&6
3115 rm -f confinc confmf
3116
3117 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3118 if test "${enable_dependency_tracking+set}" = set; then
3119 enableval="$enable_dependency_tracking"
3120
3121 fi;
3122 if test "x$enable_dependency_tracking" != xno; then
3123 am_depcomp="$ac_aux_dir/depcomp"
3124 AMDEPBACKSLASH='\'
3125 fi
3126
3127
3128 if test "x$enable_dependency_tracking" != xno; then
3129 AMDEP_TRUE=
3130 AMDEP_FALSE='#'
3131 else
3132 AMDEP_TRUE='#'
3133 AMDEP_FALSE=
3134 fi
3135
3136
3137
3138
3139 depcc="$CC" am_compiler_list=
3140
3141 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3142 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3143 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3144 echo $ECHO_N "(cached) $ECHO_C" >&6
3145 else
3146 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3147 # We make a subdir and do the tests there. Otherwise we can end up
3148 # making bogus files that we don't know about and never remove. For
3149 # instance it was reported that on HP-UX the gcc test will end up
3150 # making a dummy file named `D' -- because `-MD' means `put the output
3151 # in D'.
3152 mkdir conftest.dir
3153 # Copy depcomp to subdir because otherwise we won't find it if we're
3154 # using a relative directory.
3155 cp "$am_depcomp" conftest.dir
3156 cd conftest.dir
3157 # We will build objects and dependencies in a subdirectory because
3158 # it helps to detect inapplicable dependency modes. For instance
3159 # both Tru64's cc and ICC support -MD to output dependencies as a
3160 # side effect of compilation, but ICC will put the dependencies in
3161 # the current directory while Tru64 will put them in the object
3162 # directory.
3163 mkdir sub
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
3226 else
3227 am_cv_CC_dependencies_compiler_type=none
3228 fi
3229
3230 fi
3231 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3232 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3233 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3234
3235
3236
3237 if
3238 test "x$enable_dependency_tracking" != xno \
3239 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3240 am__fastdepCC_TRUE=
3241 am__fastdepCC_FALSE='#'
3242 else
3243 am__fastdepCC_TRUE='#'
3244 am__fastdepCC_FALSE=
3245 fi
3246
3247
3248 ac_ext=cc
3249 ac_cpp='$CXXCPP $CPPFLAGS'
3250 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3251 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3252 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3253 if test -n "$ac_tool_prefix"; then
3254 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3255 do
3256 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3257 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3258 echo "$as_me:$LINENO: checking for $ac_word" >&5
3259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3260 if test "${ac_cv_prog_CXX+set}" = set; then
3261 echo $ECHO_N "(cached) $ECHO_C" >&6
3262 else
3263 if test -n "$CXX"; then
3264 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3265 else
3266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3267 for as_dir in $PATH
3268 do
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
3277 done
3278 done
3279
3280 fi
3281 fi
3282 CXX=$ac_cv_prog_CXX
3283 if test -n "$CXX"; then
3284 echo "$as_me:$LINENO: result: $CXX" >&5
3285 echo "${ECHO_T}$CXX" >&6
3286 else
3287 echo "$as_me:$LINENO: result: no" >&5
3288 echo "${ECHO_T}no" >&6
3289 fi
3290
3291 test -n "$CXX" && break
3292 done
3293 fi
3294 if test -z "$CXX"; then
3295 ac_ct_CXX=$CXX
3296 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3297 do
3298 # Extract the first word of "$ac_prog", so it can be a program name with args.
3299 set dummy $ac_prog; ac_word=$2
3300 echo "$as_me:$LINENO: checking for $ac_word" >&5
3301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3302 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3303 echo $ECHO_N "(cached) $ECHO_C" >&6
3304 else
3305 if test -n "$ac_ct_CXX"; then
3306 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3307 else
3308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3309 for as_dir in $PATH
3310 do
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
3319 done
3320 done
3321
3322 fi
3323 fi
3324 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3325 if test -n "$ac_ct_CXX"; then
3326 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3327 echo "${ECHO_T}$ac_ct_CXX" >&6
3328 else
3329 echo "$as_me:$LINENO: result: no" >&5
3330 echo "${ECHO_T}no" >&6
3331 fi
3332
3333 test -n "$ac_ct_CXX" && break
3334 done
3335 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3336
3337 CXX=$ac_ct_CXX
3338 fi
3339
3340
3341 # Provide some information about the compiler.
3342 echo "$as_me:$LINENO:" \
3343 "checking for C++ compiler version" >&5
3344 ac_compiler=`set X $ac_compile; echo $2`
3345 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3346 (eval $ac_compiler --version </dev/null >&5) 2>&5
3347 ac_status=$?
3348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349 (exit $ac_status); }
3350 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3351 (eval $ac_compiler -v </dev/null >&5) 2>&5
3352 ac_status=$?
3353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354 (exit $ac_status); }
3355 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3356 (eval $ac_compiler -V </dev/null >&5) 2>&5
3357 ac_status=$?
3358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359 (exit $ac_status); }
3360
3361 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3362 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3363 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3364 echo $ECHO_N "(cached) $ECHO_C" >&6
3365 else
3366 cat >conftest.$ac_ext <<_ACEOF
3367 /* confdefs.h. */
3368 _ACEOF
3369 cat confdefs.h >>conftest.$ac_ext
3370 cat >>conftest.$ac_ext <<_ACEOF
3371 /* end confdefs.h. */
3372
3373 int
3374 main ()
3375 {
3376 #ifndef __GNUC__
3377 choke me
3378 #endif
3379
3380 ;
3381 return 0;
3382 }
3383 _ACEOF
3384 rm -f conftest.$ac_objext
3385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3386 (eval $ac_compile) 2>conftest.er1
3387 ac_status=$?
3388 grep -v '^ *+' conftest.er1 >conftest.err
3389 rm -f conftest.er1
3390 cat conftest.err >&5
3391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392 (exit $ac_status); } &&
3393 { ac_try='test -z "$ac_cxx_werror_flag"
3394 || test ! -s conftest.err'
3395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3396 (eval $ac_try) 2>&5
3397 ac_status=$?
3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); }; } &&
3400 { ac_try='test -s conftest.$ac_objext'
3401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3402 (eval $ac_try) 2>&5
3403 ac_status=$?
3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); }; }; then
3406 ac_compiler_gnu=yes
3407 else
3408 echo "$as_me: failed program was:" >&5
3409 sed 's/^/| /' conftest.$ac_ext >&5
3410
3411 ac_compiler_gnu=no
3412 fi
3413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3414 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3415
3416 fi
3417 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3418 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3419 GXX=`test $ac_compiler_gnu = yes && echo yes`
3420 ac_test_CXXFLAGS=${CXXFLAGS+set}
3421 ac_save_CXXFLAGS=$CXXFLAGS
3422 CXXFLAGS="-g"
3423 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3424 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3425 if test "${ac_cv_prog_cxx_g+set}" = set; then
3426 echo $ECHO_N "(cached) $ECHO_C" >&6
3427 else
3428 cat >conftest.$ac_ext <<_ACEOF
3429 /* confdefs.h. */
3430 _ACEOF
3431 cat confdefs.h >>conftest.$ac_ext
3432 cat >>conftest.$ac_ext <<_ACEOF
3433 /* end confdefs.h. */
3434
3435 int
3436 main ()
3437 {
3438
3439 ;
3440 return 0;
3441 }
3442 _ACEOF
3443 rm -f conftest.$ac_objext
3444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3445 (eval $ac_compile) 2>conftest.er1
3446 ac_status=$?
3447 grep -v '^ *+' conftest.er1 >conftest.err
3448 rm -f conftest.er1
3449 cat conftest.err >&5
3450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451 (exit $ac_status); } &&
3452 { ac_try='test -z "$ac_cxx_werror_flag"
3453 || test ! -s conftest.err'
3454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3455 (eval $ac_try) 2>&5
3456 ac_status=$?
3457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458 (exit $ac_status); }; } &&
3459 { ac_try='test -s conftest.$ac_objext'
3460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3461 (eval $ac_try) 2>&5
3462 ac_status=$?
3463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464 (exit $ac_status); }; }; then
3465 ac_cv_prog_cxx_g=yes
3466 else
3467 echo "$as_me: failed program was:" >&5
3468 sed 's/^/| /' conftest.$ac_ext >&5
3469
3470 ac_cv_prog_cxx_g=no
3471 fi
3472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3473 fi
3474 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3475 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3476 if test "$ac_test_CXXFLAGS" = set; then
3477 CXXFLAGS=$ac_save_CXXFLAGS
3478 elif test $ac_cv_prog_cxx_g = yes; then
3479 if test "$GXX" = yes; then
3480 CXXFLAGS="-g -O2"
3481 else
3482 CXXFLAGS="-g"
3483 fi
3484 else
3485 if test "$GXX" = yes; then
3486 CXXFLAGS="-O2"
3487 else
3488 CXXFLAGS=
3489 fi
3490 fi
3491 for ac_declaration in \
3492 '' \
3493 'extern "C" void std::exit (int) throw (); using std::exit;' \
3494 'extern "C" void std::exit (int); using std::exit;' \
3495 'extern "C" void exit (int) throw ();' \
3496 'extern "C" void exit (int);' \
3497 'void exit (int);'
3498 do
3499 cat >conftest.$ac_ext <<_ACEOF
3500 /* confdefs.h. */
3501 _ACEOF
3502 cat confdefs.h >>conftest.$ac_ext
3503 cat >>conftest.$ac_ext <<_ACEOF
3504 /* end confdefs.h. */
3505 $ac_declaration
3506 #include <stdlib.h>
3507 int
3508 main ()
3509 {
3510 exit (42);
3511 ;
3512 return 0;
3513 }
3514 _ACEOF
3515 rm -f conftest.$ac_objext
3516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3517 (eval $ac_compile) 2>conftest.er1
3518 ac_status=$?
3519 grep -v '^ *+' conftest.er1 >conftest.err
3520 rm -f conftest.er1
3521 cat conftest.err >&5
3522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523 (exit $ac_status); } &&
3524 { ac_try='test -z "$ac_cxx_werror_flag"
3525 || test ! -s conftest.err'
3526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3527 (eval $ac_try) 2>&5
3528 ac_status=$?
3529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530 (exit $ac_status); }; } &&
3531 { ac_try='test -s conftest.$ac_objext'
3532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3533 (eval $ac_try) 2>&5
3534 ac_status=$?
3535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536 (exit $ac_status); }; }; then
3537 :
3538 else
3539 echo "$as_me: failed program was:" >&5
3540 sed 's/^/| /' conftest.$ac_ext >&5
3541
3542 continue
3543 fi
3544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3545 cat >conftest.$ac_ext <<_ACEOF
3546 /* confdefs.h. */
3547 _ACEOF
3548 cat confdefs.h >>conftest.$ac_ext
3549 cat >>conftest.$ac_ext <<_ACEOF
3550 /* end confdefs.h. */
3551 $ac_declaration
3552 int
3553 main ()
3554 {
3555 exit (42);
3556 ;
3557 return 0;
3558 }
3559 _ACEOF
3560 rm -f conftest.$ac_objext
3561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3562 (eval $ac_compile) 2>conftest.er1
3563 ac_status=$?
3564 grep -v '^ *+' conftest.er1 >conftest.err
3565 rm -f conftest.er1
3566 cat conftest.err >&5
3567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568 (exit $ac_status); } &&
3569 { ac_try='test -z "$ac_cxx_werror_flag"
3570 || test ! -s conftest.err'
3571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3572 (eval $ac_try) 2>&5
3573 ac_status=$?
3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575 (exit $ac_status); }; } &&
3576 { ac_try='test -s conftest.$ac_objext'
3577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3578 (eval $ac_try) 2>&5
3579 ac_status=$?
3580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581 (exit $ac_status); }; }; then
3582 break
3583 else
3584 echo "$as_me: failed program was:" >&5
3585 sed 's/^/| /' conftest.$ac_ext >&5
3586
3587 fi
3588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3589 done
3590 rm -f conftest*
3591 if test -n "$ac_declaration"; then
3592 echo '#ifdef __cplusplus' >>confdefs.h
3593 echo $ac_declaration >>confdefs.h
3594 echo '#endif' >>confdefs.h
3595 fi
3596
3597 ac_ext=c
3598 ac_cpp='$CPP $CPPFLAGS'
3599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3602
3603 depcc="$CXX" am_compiler_list=
3604
3605 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3606 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3607 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3608 echo $ECHO_N "(cached) $ECHO_C" >&6
3609 else
3610 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3611 # We make a subdir and do the tests there. Otherwise we can end up
3612 # making bogus files that we don't know about and never remove. For
3613 # instance it was reported that on HP-UX the gcc test will end up
3614 # making a dummy file named `D' -- because `-MD' means `put the output
3615 # in D'.
3616 mkdir conftest.dir
3617 # Copy depcomp to subdir because otherwise we won't find it if we're
3618 # using a relative directory.
3619 cp "$am_depcomp" conftest.dir
3620 cd conftest.dir
3621 # We will build objects and dependencies in a subdirectory because
3622 # it helps to detect inapplicable dependency modes. For instance
3623 # both Tru64's cc and ICC support -MD to output dependencies as a
3624 # side effect of compilation, but ICC will put the dependencies in
3625 # the current directory while Tru64 will put them in the object
3626 # directory.
3627 mkdir sub
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
3690 else
3691 am_cv_CXX_dependencies_compiler_type=none
3692 fi
3693
3694 fi
3695 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3696 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3697 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3698
3699
3700
3701 if
3702 test "x$enable_dependency_tracking" != xno \
3703 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3704 am__fastdepCXX_TRUE=
3705 am__fastdepCXX_FALSE='#'
3706 else
3707 am__fastdepCXX_TRUE='#'
3708 am__fastdepCXX_FALSE=
3709 fi
3710
3711
3712
3713
3714 if test "x$CC" != xcc; then
3715 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3716 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
3717 else
3718 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3719 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
3720 fi
3721 set dummy $CC; ac_cc=`echo $2 |
3722 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3723 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
3724 echo $ECHO_N "(cached) $ECHO_C" >&6
3725 else
3726 cat >conftest.$ac_ext <<_ACEOF
3727 /* confdefs.h. */
3728 _ACEOF
3729 cat confdefs.h >>conftest.$ac_ext
3730 cat >>conftest.$ac_ext <<_ACEOF
3731 /* end confdefs.h. */
3732
3733 int
3734 main ()
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.
3744 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3745 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3746 (eval $ac_try) 2>&5
3747 ac_status=$?
3748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3749 (exit $ac_status); } &&
3750 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3751 (eval $ac_try) 2>&5
3752 ac_status=$?
3753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3754 (exit $ac_status); };
3755 then
3756 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3757 if test "x$CC" != xcc; then
3758 # Test first that cc exists at all.
3759 if { ac_try='cc -c conftest.$ac_ext >&5'
3760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3761 (eval $ac_try) 2>&5
3762 ac_status=$?
3763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3764 (exit $ac_status); }; }; then
3765 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3766 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3767 (eval $ac_try) 2>&5
3768 ac_status=$?
3769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3770 (exit $ac_status); } &&
3771 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3772 (eval $ac_try) 2>&5
3773 ac_status=$?
3774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3775 (exit $ac_status); };
3776 then
3777 # cc works too.
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
3785 else
3786 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3787 fi
3788 rm -f conftest*
3789
3790 fi
3791 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3792 echo "$as_me:$LINENO: result: yes" >&5
3793 echo "${ECHO_T}yes" >&6
3794 else
3795 echo "$as_me:$LINENO: result: no" >&5
3796 echo "${ECHO_T}no" >&6
3797
3798 cat >>confdefs.h <<\_ACEOF
3799 #define NO_MINUS_C_MINUS_O 1
3800 _ACEOF
3801
3802 fi
3803
3804 # FIXME: we rely on the cache variable name because
3805 # there is no other way.
3806 set dummy $CC
3807 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3808 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3809 # Losing compiler, so override with the script.
3810 # FIXME: It is wrong to rewrite CC.
3811 # But if we don't then we get into trouble of one sort or another.
3812 # A longer-term fix would be to have automake use am__CC in this case,
3813 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3814 CC="$am_aux_dir/compile $CC"
3815 fi
3816
3817
3818
3819
3820
3821 # Newer automakes demand CCAS and CCASFLAGS.
3822 : ${CCAS='$(CC)'}
3823 : ${CCASFLAGS='$(CFLAGS)'}
3824
3825
3826
3827 if test -n "$ac_tool_prefix"; then
3828 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3829 set dummy ${ac_tool_prefix}as; ac_word=$2
3830 echo "$as_me:$LINENO: checking for $ac_word" >&5
3831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3832 if test "${ac_cv_prog_AS+set}" = set; then
3833 echo $ECHO_N "(cached) $ECHO_C" >&6
3834 else
3835 if test -n "$AS"; then
3836 ac_cv_prog_AS="$AS" # Let the user override the test.
3837 else
3838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3839 for as_dir in $PATH
3840 do
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
3849 done
3850 done
3851
3852 fi
3853 fi
3854 AS=$ac_cv_prog_AS
3855 if test -n "$AS"; then
3856 echo "$as_me:$LINENO: result: $AS" >&5
3857 echo "${ECHO_T}$AS" >&6
3858 else
3859 echo "$as_me:$LINENO: result: no" >&5
3860 echo "${ECHO_T}no" >&6
3861 fi
3862
3863 fi
3864 if test -z "$ac_cv_prog_AS"; then
3865 ac_ct_AS=$AS
3866 # Extract the first word of "as", so it can be a program name with args.
3867 set dummy as; ac_word=$2
3868 echo "$as_me:$LINENO: checking for $ac_word" >&5
3869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3870 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3871 echo $ECHO_N "(cached) $ECHO_C" >&6
3872 else
3873 if test -n "$ac_ct_AS"; then
3874 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3875 else
3876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3877 for as_dir in $PATH
3878 do
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
3887 done
3888 done
3889
3890 fi
3891 fi
3892 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3893 if test -n "$ac_ct_AS"; then
3894 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3895 echo "${ECHO_T}$ac_ct_AS" >&6
3896 else
3897 echo "$as_me:$LINENO: result: no" >&5
3898 echo "${ECHO_T}no" >&6
3899 fi
3900
3901 AS=$ac_ct_AS
3902 else
3903 AS="$ac_cv_prog_AS"
3904 fi
3905
3906 if test -n "$ac_tool_prefix"; then
3907 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3908 set dummy ${ac_tool_prefix}ar; ac_word=$2
3909 echo "$as_me:$LINENO: checking for $ac_word" >&5
3910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3911 if test "${ac_cv_prog_AR+set}" = set; then
3912 echo $ECHO_N "(cached) $ECHO_C" >&6
3913 else
3914 if test -n "$AR"; then
3915 ac_cv_prog_AR="$AR" # Let the user override the test.
3916 else
3917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3918 for as_dir in $PATH
3919 do
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
3928 done
3929 done
3930
3931 fi
3932 fi
3933 AR=$ac_cv_prog_AR
3934 if test -n "$AR"; then
3935 echo "$as_me:$LINENO: result: $AR" >&5
3936 echo "${ECHO_T}$AR" >&6
3937 else
3938 echo "$as_me:$LINENO: result: no" >&5
3939 echo "${ECHO_T}no" >&6
3940 fi
3941
3942 fi
3943 if test -z "$ac_cv_prog_AR"; then
3944 ac_ct_AR=$AR
3945 # Extract the first word of "ar", so it can be a program name with args.
3946 set dummy ar; ac_word=$2
3947 echo "$as_me:$LINENO: checking for $ac_word" >&5
3948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3949 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3950 echo $ECHO_N "(cached) $ECHO_C" >&6
3951 else
3952 if test -n "$ac_ct_AR"; then
3953 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3954 else
3955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3956 for as_dir in $PATH
3957 do
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
3966 done
3967 done
3968
3969 fi
3970 fi
3971 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3972 if test -n "$ac_ct_AR"; then
3973 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3974 echo "${ECHO_T}$ac_ct_AR" >&6
3975 else
3976 echo "$as_me:$LINENO: result: no" >&5
3977 echo "${ECHO_T}no" >&6
3978 fi
3979
3980 AR=$ac_ct_AR
3981 else
3982 AR="$ac_cv_prog_AR"
3983 fi
3984
3985 if test -n "$ac_tool_prefix"; then
3986 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3987 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3988 echo "$as_me:$LINENO: checking for $ac_word" >&5
3989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3990 if test "${ac_cv_prog_RANLIB+set}" = set; then
3991 echo $ECHO_N "(cached) $ECHO_C" >&6
3992 else
3993 if test -n "$RANLIB"; then
3994 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3995 else
3996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3997 for as_dir in $PATH
3998 do
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
4007 done
4008 done
4009
4010 fi
4011 fi
4012 RANLIB=$ac_cv_prog_RANLIB
4013 if test -n "$RANLIB"; then
4014 echo "$as_me:$LINENO: result: $RANLIB" >&5
4015 echo "${ECHO_T}$RANLIB" >&6
4016 else
4017 echo "$as_me:$LINENO: result: no" >&5
4018 echo "${ECHO_T}no" >&6
4019 fi
4020
4021 fi
4022 if test -z "$ac_cv_prog_RANLIB"; then
4023 ac_ct_RANLIB=$RANLIB
4024 # Extract the first word of "ranlib", so it can be a program name with args.
4025 set dummy ranlib; ac_word=$2
4026 echo "$as_me:$LINENO: checking for $ac_word" >&5
4027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4028 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4029 echo $ECHO_N "(cached) $ECHO_C" >&6
4030 else
4031 if test -n "$ac_ct_RANLIB"; then
4032 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4033 else
4034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4035 for as_dir in $PATH
4036 do
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
4045 done
4046 done
4047
4048 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4049 fi
4050 fi
4051 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4052 if test -n "$ac_ct_RANLIB"; then
4053 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4054 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4055 else
4056 echo "$as_me:$LINENO: result: no" >&5
4057 echo "${ECHO_T}no" >&6
4058 fi
4059
4060 RANLIB=$ac_ct_RANLIB
4061 else
4062 RANLIB="$ac_cv_prog_RANLIB"
4063 fi
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
4073 # AmigaOS /C/install, which installs bootblocks on floppy discs
4074 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4075 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4076 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4077 # OS/2's system install, which has a completely different semantic
4078 # ./install, which can be erroneously created by make from ./install.sh.
4079 # Reject install programs that cannot install multiple files.
4080 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4081 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4082 if test -z "$INSTALL"; then
4083 if test "${ac_cv_path_install+set}" = set; then
4084 echo $ECHO_N "(cached) $ECHO_C" >&6
4085 else
4086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4087 for as_dir in $PATH
4088 do
4089 IFS=$as_save_IFS
4090 test -z "$as_dir" && as_dir=.
4091 # Account for people who put trailing slashes in PATH elements.
4092 case $as_dir/ in
4093 ./ | .// | /cC/* | \
4094 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4095 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4096 /usr/ucb/* ) ;;
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
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
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
4125 fi
4126 fi
4127 done
4128 done
4129 ;;
4130 esac
4131 done
4132
4133 rm -rf conftest.one conftest.two conftest.dir
4134
4135 fi
4136 if test "${ac_cv_path_install+set}" = set; then
4137 INSTALL=$ac_cv_path_install
4138 else
4139 # As a last resort, use the slow shell script. Don't cache a
4140 # value for INSTALL within a source directory, because that will
4141 # break other packages using the cache if that directory is
4142 # removed, or if the value is a relative name.
4143 INSTALL=$ac_install_sh
4144 fi
4145 fi
4146 echo "$as_me:$LINENO: result: $INSTALL" >&5
4147 echo "${ECHO_T}$INSTALL" >&6
4148
4149 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4150 # It thinks the first close brace ends the variable substitution.
4151 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4152
4153 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4154
4155 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4156
4157
4158 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4159 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4160 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4161 if test "${enable_maintainer_mode+set}" = set; then
4162 enableval="$enable_maintainer_mode"
4163 USE_MAINTAINER_MODE=$enableval
4164 else
4165 USE_MAINTAINER_MODE=no
4166 fi;
4167 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4168 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4169
4170
4171 if test $USE_MAINTAINER_MODE = yes; then
4172 MAINTAINER_MODE_TRUE=
4173 MAINTAINER_MODE_FALSE='#'
4174 else
4175 MAINTAINER_MODE_TRUE='#'
4176 MAINTAINER_MODE_FALSE=
4177 fi
4178
4179 MAINT=$MAINTAINER_MODE_TRUE
4180
4181
4182
4183 . ${srcdir}/configure.host
4184
4185 case ${gc_basedir} in
4186 /* | A-Za-z:/\\*) gc_flagbasedir=${gc_basedir} ;;
4187 *) gc_flagbasedir='$(top_builddir)/'${gc_basedir} ;;
4188 esac
4189
4190 gc_cflags="${gc_cflags} -Iinclude -I"'$(top_builddir)'"/./targ-include -I${gc_flagbasedir}/libc/include"
4191 case "${host}" in
4192 *-*-cygwin32*)
4193 gc_cflags="${gc_cflags} -I${gc_flagbasedir}/../winsup/include"
4194 ;;
4195 esac
4196
4197
4198 GC_CFLAGS=${gc_cflags}
4199
4200
4201
4202
4203 macro_version='2.1a'
4204 macro_revision='1.2435'
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217 ltmain="$ac_aux_dir/ltmain.sh"
4218
4219 # Set options
4220
4221 enable_dlopen=no
4222
4223
4224 enable_win32_dll=no
4225
4226
4227 # Check whether --enable-shared or --disable-shared was given.
4228 if test "${enable_shared+set}" = set; then
4229 enableval="$enable_shared"
4230 p=${PACKAGE-default}
4231 case $enableval in
4232 yes) enable_shared=yes ;;
4233 no) enable_shared=no ;;
4234 *)
4235 enable_shared=no
4236 # Look at the argument we got. We use all the common list separators.
4237 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4238 for pkg in $enableval; do
4239 IFS="$lt_save_ifs"
4240 if test "X$pkg" = "X$p"; then
4241 enable_shared=yes
4242 fi
4243 done
4244 IFS="$lt_save_ifs"
4245 ;;
4246 esac
4247 else
4248 enable_shared=yes
4249 fi;
4250
4251
4252
4253
4254
4255
4256
4257
4258 # Check whether --enable-static or --disable-static was given.
4259 if test "${enable_static+set}" = set; then
4260 enableval="$enable_static"
4261 p=${PACKAGE-default}
4262 case $enableval in
4263 yes) enable_static=yes ;;
4264 no) enable_static=no ;;
4265 *)
4266 enable_static=no
4267 # Look at the argument we got. We use all the common list separators.
4268 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4269 for pkg in $enableval; do
4270 IFS="$lt_save_ifs"
4271 if test "X$pkg" = "X$p"; then
4272 enable_static=yes
4273 fi
4274 done
4275 IFS="$lt_save_ifs"
4276 ;;
4277 esac
4278 else
4279 enable_static=yes
4280 fi;
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290 # Check whether --with-pic or --without-pic was given.
4291 if test "${with_pic+set}" = set; then
4292 withval="$with_pic"
4293 pic_mode="$withval"
4294 else
4295 pic_mode=default
4296 fi;
4297
4298 test -z "$pic_mode" && pic_mode=default
4299
4300
4301
4302
4303
4304
4305
4306 # Check whether --enable-fast-install or --disable-fast-install was given.
4307 if test "${enable_fast_install+set}" = set; then
4308 enableval="$enable_fast_install"
4309 p=${PACKAGE-default}
4310 case $enableval in
4311 yes) enable_fast_install=yes ;;
4312 no) enable_fast_install=no ;;
4313 *)
4314 enable_fast_install=no
4315 # Look at the argument we got. We use all the common list separators.
4316 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4317 for pkg in $enableval; do
4318 IFS="$lt_save_ifs"
4319 if test "X$pkg" = "X$p"; then
4320 enable_fast_install=yes
4321 fi
4322 done
4323 IFS="$lt_save_ifs"
4324 ;;
4325 esac
4326 else
4327 enable_fast_install=yes
4328 fi;
4329
4330
4331
4332
4333
4334
4335
4336
4337 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4338 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4339 if test "${lt_cv_path_SED+set}" = set; then
4340 echo $ECHO_N "(cached) $ECHO_C" >&6
4341 else
4342 # Loop through the user's path and test for sed and gsed.
4343 # Then use that list of sed's as ones to test for truncation.
4344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4345 for as_dir in $PATH
4346 do
4347 IFS=$as_save_IFS
4348 test -z "$as_dir" && as_dir=.
4349 for lt_ac_prog in sed gsed; do
4350 for ac_exec_ext in '' $ac_executable_extensions; do
4351 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4352 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4353 fi
4354 done
4355 done
4356 done
4357 IFS=$as_save_IFS
4358 lt_ac_max=0
4359 lt_ac_count=0
4360 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4361 # along with /bin/sed that truncates output.
4362 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4363 test ! -f $lt_ac_sed && continue
4364 cat /dev/null > conftest.in
4365 lt_ac_count=0
4366 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4367 # Check for GNU sed and select it if it is found.
4368 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4369 lt_cv_path_SED=$lt_ac_sed
4370 break
4371 fi
4372 while true; do
4373 cat conftest.in conftest.in >conftest.tmp
4374 mv conftest.tmp conftest.in
4375 cp conftest.in conftest.nl
4376 echo >>conftest.nl
4377 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4378 cmp -s conftest.out conftest.nl || break
4379 # 10000 chars as input seems more than enough
4380 test $lt_ac_count -gt 10 && break
4381 lt_ac_count=`expr $lt_ac_count + 1`
4382 if test $lt_ac_count -gt $lt_ac_max; then
4383 lt_ac_max=$lt_ac_count
4384 lt_cv_path_SED=$lt_ac_sed
4385 fi
4386 done
4387 done
4388
4389 fi
4390
4391 SED=$lt_cv_path_SED
4392
4393 echo "$as_me:$LINENO: result: $SED" >&5
4394 echo "${ECHO_T}$SED" >&6
4395
4396 test -z "$SED" && SED=sed
4397 Xsed="$SED -e 1s/^X//"
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409 echo "$as_me:$LINENO: checking for egrep" >&5
4410 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4411 if test "${ac_cv_prog_egrep+set}" = set; then
4412 echo $ECHO_N "(cached) $ECHO_C" >&6
4413 else
4414 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4415 then ac_cv_prog_egrep='grep -E'
4416 else ac_cv_prog_egrep='egrep'
4417 fi
4418 fi
4419 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4420 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4421 EGREP=$ac_cv_prog_egrep
4422
4423
4424 echo "$as_me:$LINENO: checking for fgrep" >&5
4425 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4426 if test "${ac_cv_prog_fgrep+set}" = set; then
4427 echo $ECHO_N "(cached) $ECHO_C" >&6
4428 else
4429 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4430 then ac_cv_prog_fgrep='grep -F'
4431 else ac_cv_prog_fgrep='fgrep'
4432 fi
4433 fi
4434 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4435 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4436 FGREP=$ac_cv_prog_fgrep
4437
4438
4439 test -z "$GREP" && GREP=grep
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4460 if test "${with_gnu_ld+set}" = set; then
4461 withval="$with_gnu_ld"
4462 test "$withval" = no || with_gnu_ld=yes
4463 else
4464 with_gnu_ld=no
4465 fi;
4466 ac_prog=ld
4467 if test "$GCC" = yes; then
4468 # Check if gcc -print-prog-name=ld gives a path.
4469 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4470 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4471 case $host in
4472 *-*-mingw*)
4473 # gcc leaves a trailing carriage return which upsets mingw
4474 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4475 *)
4476 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4477 esac
4478 case $ac_prog in
4479 # Accept absolute paths.
4480 [\\/]* | ?:[\\/]*)
4481 re_direlt='/[^/][^/]*/\.\./'
4482 # Canonicalize the pathname of ld
4483 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4484 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4485 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4486 done
4487 test -z "$LD" && LD="$ac_prog"
4488 ;;
4489 "")
4490 # If it fails, then pretend we aren't using GCC.
4491 ac_prog=ld
4492 ;;
4493 *)
4494 # If it is relative, then search for the first ld in PATH.
4495 with_gnu_ld=unknown
4496 ;;
4497 esac
4498 elif test "$with_gnu_ld" = yes; then
4499 echo "$as_me:$LINENO: checking for GNU ld" >&5
4500 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4501 else
4502 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4503 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4504 fi
4505 if test "${lt_cv_path_LD+set}" = set; then
4506 echo $ECHO_N "(cached) $ECHO_C" >&6
4507 else
4508 if test -z "$LD"; then
4509 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4510 for ac_dir in $PATH; do
4511 IFS="$lt_save_ifs"
4512 test -z "$ac_dir" && ac_dir=.
4513 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4514 lt_cv_path_LD="$ac_dir/$ac_prog"
4515 # Check to see if the program is GNU ld. I'd rather use --version,
4516 # but apparently some variants of GNU ld only accept -v.
4517 # Break only if it was the GNU/non-GNU ld that we prefer.
4518 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4519 *GNU* | *'with BFD'*)
4520 test "$with_gnu_ld" != no && break
4521 ;;
4522 *)
4523 test "$with_gnu_ld" != yes && break
4524 ;;
4525 esac
4526 fi
4527 done
4528 IFS="$lt_save_ifs"
4529 else
4530 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4531 fi
4532 fi
4533
4534 LD="$lt_cv_path_LD"
4535 if test -n "$LD"; then
4536 echo "$as_me:$LINENO: result: $LD" >&5
4537 echo "${ECHO_T}$LD" >&6
4538 else
4539 echo "$as_me:$LINENO: result: no" >&5
4540 echo "${ECHO_T}no" >&6
4541 fi
4542 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4543 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4544 { (exit 1); exit 1; }; }
4545 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4546 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4547 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4548 echo $ECHO_N "(cached) $ECHO_C" >&6
4549 else
4550 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4551 case `$LD -v 2>&1 </dev/null` in
4552 *GNU* | *'with BFD'*)
4553 lt_cv_prog_gnu_ld=yes
4554 ;;
4555 *)
4556 lt_cv_prog_gnu_ld=no
4557 ;;
4558 esac
4559 fi
4560 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4561 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4562 with_gnu_ld=$lt_cv_prog_gnu_ld
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4574 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
4575 if test "${lt_cv_path_NM+set}" = set; then
4576 echo $ECHO_N "(cached) $ECHO_C" >&6
4577 else
4578 if test -n "$NM"; then
4579 # Let the user override the test.
4580 lt_cv_path_NM="$NM"
4581 else
4582 lt_nm_to_check="${ac_tool_prefix}nm"
4583 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4584 lt_nm_to_check="$lt_nm_to_check nm"
4585 fi
4586 for lt_tmp_nm in $lt_nm_to_check; do
4587 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4588 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4589 IFS="$lt_save_ifs"
4590 test -z "$ac_dir" && ac_dir=.
4591 tmp_nm="$ac_dir/$lt_tmp_nm"
4592 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4593 # Check to see if the nm accepts a BSD-compat flag.
4594 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4595 # nm: unknown option "B" ignored
4596 # Tru64's nm complains that /dev/null is an invalid object file
4597 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4598 */dev/null* | *'Invalid file or object type'*)
4599 lt_cv_path_NM="$tmp_nm -B"
4600 break
4601 ;;
4602 *)
4603 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4604 */dev/null*)
4605 lt_cv_path_NM="$tmp_nm -p"
4606 break
4607 ;;
4608 *)
4609 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4610 continue # so that we can try to find one that supports BSD flags
4611 ;;
4612 esac
4613 ;;
4614 esac
4615 fi
4616 done
4617 IFS="$lt_save_ifs"
4618 done
4619 : ${lt_cv_path_NM=no}
4620 fi
4621 fi
4622 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4623 echo "${ECHO_T}$lt_cv_path_NM" >&6
4624 if test "$lt_cv_path_NM" != "no"; then
4625 NM="$lt_cv_path_NM"
4626 else
4627 # Didn't find any BSD compatible name lister, look for dumpbin.
4628 if test -n "$ac_tool_prefix"; then
4629 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4630 do
4631 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4632 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4633 echo "$as_me:$LINENO: checking for $ac_word" >&5
4634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4635 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4636 echo $ECHO_N "(cached) $ECHO_C" >&6
4637 else
4638 if test -n "$DUMPBIN"; then
4639 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4640 else
4641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4642 for as_dir in $PATH
4643 do
4644 IFS=$as_save_IFS
4645 test -z "$as_dir" && as_dir=.
4646 for ac_exec_ext in '' $ac_executable_extensions; do
4647 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4648 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4650 break 2
4651 fi
4652 done
4653 done
4654
4655 fi
4656 fi
4657 DUMPBIN=$ac_cv_prog_DUMPBIN
4658 if test -n "$DUMPBIN"; then
4659 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4660 echo "${ECHO_T}$DUMPBIN" >&6
4661 else
4662 echo "$as_me:$LINENO: result: no" >&5
4663 echo "${ECHO_T}no" >&6
4664 fi
4665
4666 test -n "$DUMPBIN" && break
4667 done
4668 fi
4669 if test -z "$DUMPBIN"; then
4670 ac_ct_DUMPBIN=$DUMPBIN
4671 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4672 do
4673 # Extract the first word of "$ac_prog", so it can be a program name with args.
4674 set dummy $ac_prog; ac_word=$2
4675 echo "$as_me:$LINENO: checking for $ac_word" >&5
4676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4677 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4678 echo $ECHO_N "(cached) $ECHO_C" >&6
4679 else
4680 if test -n "$ac_ct_DUMPBIN"; then
4681 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4682 else
4683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4684 for as_dir in $PATH
4685 do
4686 IFS=$as_save_IFS
4687 test -z "$as_dir" && as_dir=.
4688 for ac_exec_ext in '' $ac_executable_extensions; do
4689 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4690 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4692 break 2
4693 fi
4694 done
4695 done
4696
4697 fi
4698 fi
4699 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4700 if test -n "$ac_ct_DUMPBIN"; then
4701 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4702 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4703 else
4704 echo "$as_me:$LINENO: result: no" >&5
4705 echo "${ECHO_T}no" >&6
4706 fi
4707
4708 test -n "$ac_ct_DUMPBIN" && break
4709 done
4710 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
4711
4712 DUMPBIN=$ac_ct_DUMPBIN
4713 fi
4714
4715
4716 if test "$DUMPBIN" != ":"; then
4717 NM="$DUMPBIN"
4718 fi
4719 fi
4720 test -z "$NM" && NM=nm
4721
4722
4723
4724
4725
4726
4727 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4728 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4729 if test "${lt_cv_nm_interface+set}" = set; then
4730 echo $ECHO_N "(cached) $ECHO_C" >&6
4731 else
4732 lt_cv_nm_interface="BSD nm"
4733 echo "int some_variable = 0;" > conftest.$ac_ext
4734 (eval echo "\"\$as_me:4734: $ac_compile\"" >&5)
4735 (eval "$ac_compile" 2>conftest.err)
4736 cat conftest.err >&5
4737 (eval echo "\"\$as_me:4737: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4738 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4739 cat conftest.err >&5
4740 (eval echo "\"\$as_me:4740: output\"" >&5)
4741 cat conftest.out >&5
4742 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4743 lt_cv_nm_interface="MS dumpbin"
4744 fi
4745 rm -f conftest*
4746 fi
4747 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4748 echo "${ECHO_T}$lt_cv_nm_interface" >&6
4749
4750 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4751 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4752 LN_S=$as_ln_s
4753 if test "$LN_S" = "ln -s"; then
4754 echo "$as_me:$LINENO: result: yes" >&5
4755 echo "${ECHO_T}yes" >&6
4756 else
4757 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4758 echo "${ECHO_T}no, using $LN_S" >&6
4759 fi
4760
4761 # find the maximum length of command line arguments
4762 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4763 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4764 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4765 echo $ECHO_N "(cached) $ECHO_C" >&6
4766 else
4767 i=0
4768 teststring="ABCD"
4769
4770 case $build_os in
4771 msdosdjgpp*)
4772 # On DJGPP, this test can blow up pretty badly due to problems in libc
4773 # (any single argument exceeding 2000 bytes causes a buffer overrun
4774 # during glob expansion). Even if it were fixed, the result of this
4775 # check would be larger than it should be.
4776 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4777 ;;
4778
4779 gnu*)
4780 # Under GNU Hurd, this test is not required because there is
4781 # no limit to the length of command line arguments.
4782 # Libtool will interpret -1 as no limit whatsoever
4783 lt_cv_sys_max_cmd_len=-1;
4784 ;;
4785
4786 cygwin* | mingw*)
4787 # On Win9x/ME, this test blows up -- it succeeds, but takes
4788 # about 5 minutes as the teststring grows exponentially.
4789 # Worse, since 9x/ME are not pre-emptively multitasking,
4790 # you end up with a "frozen" computer, even though with patience
4791 # the test eventually succeeds (with a max line length of 256k).
4792 # Instead, let's just punt: use the minimum linelength reported by
4793 # all of the supported platforms: 8192 (on NT/2K/XP).
4794 lt_cv_sys_max_cmd_len=8192;
4795 ;;
4796
4797 amigaos*)
4798 # On AmigaOS with pdksh, this test takes hours, literally.
4799 # So we just punt and use a minimum line length of 8192.
4800 lt_cv_sys_max_cmd_len=8192;
4801 ;;
4802
4803 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4804 # This has been around since 386BSD, at least. Likely further.
4805 if test -x /sbin/sysctl; then
4806 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4807 elif test -x /usr/sbin/sysctl; then
4808 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4809 else
4810 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4811 fi
4812 # And add a safety zone
4813 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4814 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4815 ;;
4816
4817 interix*)
4818 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4819 lt_cv_sys_max_cmd_len=196608
4820 ;;
4821
4822 osf*)
4823 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4824 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4825 # nice to cause kernel panics so lets avoid the loop below.
4826 # First set a reasonable default.
4827 lt_cv_sys_max_cmd_len=16384
4828 #
4829 if test -x /sbin/sysconfig; then
4830 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4831 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4832 esac
4833 fi
4834 ;;
4835 sco3.2v5*)
4836 lt_cv_sys_max_cmd_len=102400
4837 ;;
4838 sysv5* | sco5v6* | sysv4.2uw2*)
4839 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4840 if test -n "$kargmax"; then
4841 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4842 else
4843 lt_cv_sys_max_cmd_len=32768
4844 fi
4845 ;;
4846 *)
4847 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
4848 if test -n $lt_cv_sys_max_cmd_len; then
4849 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4850 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4851 else
4852 # Make teststring a little bigger before we do anything with it.
4853 # a 1K string should be a reasonable start.
4854 for i in 1 2 3 4 5 6 7 8 ; do
4855 teststring=$teststring$teststring
4856 done
4857 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4858 # If test is not a shell built-in, we'll probably end up computing a
4859 # maximum length that is only half of the actual maximum length, but
4860 # we can't tell.
4861 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4862 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4863 test $i != 17 # 1/2 MB should be enough
4864 do
4865 i=`expr $i + 1`
4866 teststring=$teststring$teststring
4867 done
4868 # Only check the string length outside the loop.
4869 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4870 teststring=
4871 # Add a significant safety factor because C++ compilers can tack on
4872 # massive amounts of additional arguments before passing them to the
4873 # linker. It appears as though 1/2 is a usable value.
4874 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4875 fi
4876 ;;
4877 esac
4878
4879 fi
4880
4881 if test -n $lt_cv_sys_max_cmd_len ; then
4882 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4883 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4884 else
4885 echo "$as_me:$LINENO: result: none" >&5
4886 echo "${ECHO_T}none" >&6
4887 fi
4888 max_cmd_len=$lt_cv_sys_max_cmd_len
4889
4890
4891
4892
4893
4894
4895
4896 : ${CP="cp -f"}
4897 : ${MV="mv -f"}
4898 : ${RM="rm -f"}
4899
4900 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4901 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4902 # Try some XSI features
4903 xsi_shell=no
4904 ( _lt_dummy="a/b/c"
4905 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4906 = c,a/b,, ) >/dev/null 2>&1 \
4907 && xsi_shell=yes
4908 echo "$as_me:$LINENO: result: $xsi_shell" >&5
4909 echo "${ECHO_T}$xsi_shell" >&6
4910
4911
4912 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4913 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4914 lt_shell_append=no
4915 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4916 >/dev/null 2>&1 \
4917 && lt_shell_append=yes
4918 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4919 echo "${ECHO_T}$lt_shell_append" >&6
4920
4921
4922 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4923 lt_unset=unset
4924 else
4925 lt_unset=false
4926 fi
4927
4928
4929
4930
4931
4932 # test EBCDIC or ASCII
4933 case `echo X|tr X '\101'` in
4934 A) # ASCII based system
4935 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4936 lt_SP2NL='tr \040 \012'
4937 lt_NL2SP='tr \015\012 \040\040'
4938 ;;
4939 *) # EBCDIC based system
4940 lt_SP2NL='tr \100 \n'
4941 lt_NL2SP='tr \r\n \100\100'
4942 ;;
4943 esac
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4954 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4955 if test "${lt_cv_ld_reload_flag+set}" = set; then
4956 echo $ECHO_N "(cached) $ECHO_C" >&6
4957 else
4958 lt_cv_ld_reload_flag='-r'
4959 fi
4960 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4961 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4962 reload_flag=$lt_cv_ld_reload_flag
4963 case $reload_flag in
4964 "" | " "*) ;;
4965 *) reload_flag=" $reload_flag" ;;
4966 esac
4967 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4968 case $host_os in
4969 darwin*)
4970 if test "$GCC" = yes; then
4971 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4972 else
4973 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4974 fi
4975 ;;
4976 esac
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4988 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4989 if test "${lt_cv_deplibs_check_method+set}" = set; then
4990 echo $ECHO_N "(cached) $ECHO_C" >&6
4991 else
4992 lt_cv_file_magic_cmd='$MAGIC_CMD'
4993 lt_cv_file_magic_test_file=
4994 lt_cv_deplibs_check_method='unknown'
4995 # Need to set the preceding variable on all platforms that support
4996 # interlibrary dependencies.
4997 # 'none' -- dependencies not supported.
4998 # `unknown' -- same as none, but documents that we really don't know.
4999 # 'pass_all' -- all dependencies passed with no checks.
5000 # 'test_compile' -- check by making test program.
5001 # 'file_magic [[regex]]' -- check by looking for files in library path
5002 # which responds to the $file_magic_cmd with a given extended regex.
5003 # If you have `file' or equivalent on your system and you're not sure
5004 # whether `pass_all' will *always* work, you probably want this one.
5005
5006 case $host_os in
5007 aix[4-9]*)
5008 lt_cv_deplibs_check_method=pass_all
5009 ;;
5010
5011 beos*)
5012 lt_cv_deplibs_check_method=pass_all
5013 ;;
5014
5015 bsdi[45]*)
5016 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5017 lt_cv_file_magic_cmd='/usr/bin/file -L'
5018 lt_cv_file_magic_test_file=/shlib/libc.so
5019 ;;
5020
5021 cygwin*)
5022 # func_win32_libid is a shell function defined in ltmain.sh
5023 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5024 lt_cv_file_magic_cmd='func_win32_libid'
5025 ;;
5026
5027 mingw* | pw32*)
5028 # Base MSYS/MinGW do not provide the 'file' command needed by
5029 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5030 # unless we find 'file', for example because we are cross-compiling.
5031 if ( file / ) >/dev/null 2>&1; then
5032 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5033 lt_cv_file_magic_cmd='func_win32_libid'
5034 else
5035 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5036 lt_cv_file_magic_cmd='$OBJDUMP -f'
5037 fi
5038 ;;
5039
5040 darwin* | rhapsody*)
5041 lt_cv_deplibs_check_method=pass_all
5042 ;;
5043
5044 freebsd* | dragonfly*)
5045 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5046 case $host_cpu in
5047 i*86 )
5048 # Not sure whether the presence of OpenBSD here was a mistake.
5049 # Let's accept both of them until this is cleared up.
5050 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5051 lt_cv_file_magic_cmd=/usr/bin/file
5052 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5053 ;;
5054 esac
5055 else
5056 lt_cv_deplibs_check_method=pass_all
5057 fi
5058 ;;
5059
5060 gnu*)
5061 lt_cv_deplibs_check_method=pass_all
5062 ;;
5063
5064 hpux10.20* | hpux11*)
5065 lt_cv_file_magic_cmd=/usr/bin/file
5066 case $host_cpu in
5067 ia64*)
5068 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5069 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5070 ;;
5071 hppa*64*)
5072 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]'
5073 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5074 ;;
5075 *)
5076 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5077 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5078 ;;
5079 esac
5080 ;;
5081
5082 interix[3-9]*)
5083 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5084 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5085 ;;
5086
5087 irix5* | irix6* | nonstopux*)
5088 case $LD in
5089 *-32|*"-32 ") libmagic=32-bit;;
5090 *-n32|*"-n32 ") libmagic=N32;;
5091 *-64|*"-64 ") libmagic=64-bit;;
5092 *) libmagic=never-match;;
5093 esac
5094 lt_cv_deplibs_check_method=pass_all
5095 ;;
5096
5097 # This must be Linux ELF.
5098 linux* | k*bsd*-gnu)
5099 lt_cv_deplibs_check_method=pass_all
5100 ;;
5101
5102 netbsd*)
5103 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5104 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5105 else
5106 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5107 fi
5108 ;;
5109
5110 newos6*)
5111 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5112 lt_cv_file_magic_cmd=/usr/bin/file
5113 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5114 ;;
5115
5116 *nto* | *qnx*)
5117 lt_cv_deplibs_check_method=pass_all
5118 ;;
5119
5120 openbsd*)
5121 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5122 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5123 else
5124 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5125 fi
5126 ;;
5127
5128 osf3* | osf4* | osf5*)
5129 lt_cv_deplibs_check_method=pass_all
5130 ;;
5131
5132 rdos*)
5133 lt_cv_deplibs_check_method=pass_all
5134 ;;
5135
5136 solaris*)
5137 lt_cv_deplibs_check_method=pass_all
5138 ;;
5139
5140 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5141 lt_cv_deplibs_check_method=pass_all
5142 ;;
5143
5144 sysv4 | sysv4.3*)
5145 case $host_vendor in
5146 motorola)
5147 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]'
5148 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5149 ;;
5150 ncr)
5151 lt_cv_deplibs_check_method=pass_all
5152 ;;
5153 sequent)
5154 lt_cv_file_magic_cmd='/bin/file'
5155 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5156 ;;
5157 sni)
5158 lt_cv_file_magic_cmd='/bin/file'
5159 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5160 lt_cv_file_magic_test_file=/lib/libc.so
5161 ;;
5162 siemens)
5163 lt_cv_deplibs_check_method=pass_all
5164 ;;
5165 pc)
5166 lt_cv_deplibs_check_method=pass_all
5167 ;;
5168 esac
5169 ;;
5170
5171 tpf*)
5172 lt_cv_deplibs_check_method=pass_all
5173 ;;
5174 esac
5175
5176 fi
5177 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5178 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5179 file_magic_cmd=$lt_cv_file_magic_cmd
5180 deplibs_check_method=$lt_cv_deplibs_check_method
5181 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194 if test -n "$ac_tool_prefix"; then
5195 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5196 set dummy ${ac_tool_prefix}ar; ac_word=$2
5197 echo "$as_me:$LINENO: checking for $ac_word" >&5
5198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5199 if test "${ac_cv_prog_AR+set}" = set; then
5200 echo $ECHO_N "(cached) $ECHO_C" >&6
5201 else
5202 if test -n "$AR"; then
5203 ac_cv_prog_AR="$AR" # Let the user override the test.
5204 else
5205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5206 for as_dir in $PATH
5207 do
5208 IFS=$as_save_IFS
5209 test -z "$as_dir" && as_dir=.
5210 for ac_exec_ext in '' $ac_executable_extensions; do
5211 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5212 ac_cv_prog_AR="${ac_tool_prefix}ar"
5213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5214 break 2
5215 fi
5216 done
5217 done
5218
5219 fi
5220 fi
5221 AR=$ac_cv_prog_AR
5222 if test -n "$AR"; then
5223 echo "$as_me:$LINENO: result: $AR" >&5
5224 echo "${ECHO_T}$AR" >&6
5225 else
5226 echo "$as_me:$LINENO: result: no" >&5
5227 echo "${ECHO_T}no" >&6
5228 fi
5229
5230 fi
5231 if test -z "$ac_cv_prog_AR"; then
5232 ac_ct_AR=$AR
5233 # Extract the first word of "ar", so it can be a program name with args.
5234 set dummy ar; ac_word=$2
5235 echo "$as_me:$LINENO: checking for $ac_word" >&5
5236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5237 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5238 echo $ECHO_N "(cached) $ECHO_C" >&6
5239 else
5240 if test -n "$ac_ct_AR"; then
5241 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5242 else
5243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5244 for as_dir in $PATH
5245 do
5246 IFS=$as_save_IFS
5247 test -z "$as_dir" && as_dir=.
5248 for ac_exec_ext in '' $ac_executable_extensions; do
5249 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5250 ac_cv_prog_ac_ct_AR="ar"
5251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5252 break 2
5253 fi
5254 done
5255 done
5256
5257 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5258 fi
5259 fi
5260 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5261 if test -n "$ac_ct_AR"; then
5262 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5263 echo "${ECHO_T}$ac_ct_AR" >&6
5264 else
5265 echo "$as_me:$LINENO: result: no" >&5
5266 echo "${ECHO_T}no" >&6
5267 fi
5268
5269 AR=$ac_ct_AR
5270 else
5271 AR="$ac_cv_prog_AR"
5272 fi
5273
5274 test -z "$AR" && AR=ar
5275 test -z "$AR_FLAGS" && AR_FLAGS=cru
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287 if test -n "$ac_tool_prefix"; then
5288 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5289 set dummy ${ac_tool_prefix}strip; ac_word=$2
5290 echo "$as_me:$LINENO: checking for $ac_word" >&5
5291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5292 if test "${ac_cv_prog_STRIP+set}" = set; then
5293 echo $ECHO_N "(cached) $ECHO_C" >&6
5294 else
5295 if test -n "$STRIP"; then
5296 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5297 else
5298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5299 for as_dir in $PATH
5300 do
5301 IFS=$as_save_IFS
5302 test -z "$as_dir" && as_dir=.
5303 for ac_exec_ext in '' $ac_executable_extensions; do
5304 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5305 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5307 break 2
5308 fi
5309 done
5310 done
5311
5312 fi
5313 fi
5314 STRIP=$ac_cv_prog_STRIP
5315 if test -n "$STRIP"; then
5316 echo "$as_me:$LINENO: result: $STRIP" >&5
5317 echo "${ECHO_T}$STRIP" >&6
5318 else
5319 echo "$as_me:$LINENO: result: no" >&5
5320 echo "${ECHO_T}no" >&6
5321 fi
5322
5323 fi
5324 if test -z "$ac_cv_prog_STRIP"; then
5325 ac_ct_STRIP=$STRIP
5326 # Extract the first word of "strip", so it can be a program name with args.
5327 set dummy strip; ac_word=$2
5328 echo "$as_me:$LINENO: checking for $ac_word" >&5
5329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5330 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5331 echo $ECHO_N "(cached) $ECHO_C" >&6
5332 else
5333 if test -n "$ac_ct_STRIP"; then
5334 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5335 else
5336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5337 for as_dir in $PATH
5338 do
5339 IFS=$as_save_IFS
5340 test -z "$as_dir" && as_dir=.
5341 for ac_exec_ext in '' $ac_executable_extensions; do
5342 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5343 ac_cv_prog_ac_ct_STRIP="strip"
5344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5345 break 2
5346 fi
5347 done
5348 done
5349
5350 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5351 fi
5352 fi
5353 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5354 if test -n "$ac_ct_STRIP"; then
5355 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5356 echo "${ECHO_T}$ac_ct_STRIP" >&6
5357 else
5358 echo "$as_me:$LINENO: result: no" >&5
5359 echo "${ECHO_T}no" >&6
5360 fi
5361
5362 STRIP=$ac_ct_STRIP
5363 else
5364 STRIP="$ac_cv_prog_STRIP"
5365 fi
5366
5367 test -z "$STRIP" && STRIP=:
5368
5369
5370
5371
5372
5373
5374 if test -n "$ac_tool_prefix"; then
5375 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5376 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5377 echo "$as_me:$LINENO: checking for $ac_word" >&5
5378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5379 if test "${ac_cv_prog_RANLIB+set}" = set; then
5380 echo $ECHO_N "(cached) $ECHO_C" >&6
5381 else
5382 if test -n "$RANLIB"; then
5383 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5384 else
5385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5386 for as_dir in $PATH
5387 do
5388 IFS=$as_save_IFS
5389 test -z "$as_dir" && as_dir=.
5390 for ac_exec_ext in '' $ac_executable_extensions; do
5391 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5392 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5394 break 2
5395 fi
5396 done
5397 done
5398
5399 fi
5400 fi
5401 RANLIB=$ac_cv_prog_RANLIB
5402 if test -n "$RANLIB"; then
5403 echo "$as_me:$LINENO: result: $RANLIB" >&5
5404 echo "${ECHO_T}$RANLIB" >&6
5405 else
5406 echo "$as_me:$LINENO: result: no" >&5
5407 echo "${ECHO_T}no" >&6
5408 fi
5409
5410 fi
5411 if test -z "$ac_cv_prog_RANLIB"; then
5412 ac_ct_RANLIB=$RANLIB
5413 # Extract the first word of "ranlib", so it can be a program name with args.
5414 set dummy ranlib; ac_word=$2
5415 echo "$as_me:$LINENO: checking for $ac_word" >&5
5416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5417 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5418 echo $ECHO_N "(cached) $ECHO_C" >&6
5419 else
5420 if test -n "$ac_ct_RANLIB"; then
5421 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5422 else
5423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5424 for as_dir in $PATH
5425 do
5426 IFS=$as_save_IFS
5427 test -z "$as_dir" && as_dir=.
5428 for ac_exec_ext in '' $ac_executable_extensions; do
5429 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5430 ac_cv_prog_ac_ct_RANLIB="ranlib"
5431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5432 break 2
5433 fi
5434 done
5435 done
5436
5437 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5438 fi
5439 fi
5440 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5441 if test -n "$ac_ct_RANLIB"; then
5442 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5443 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5444 else
5445 echo "$as_me:$LINENO: result: no" >&5
5446 echo "${ECHO_T}no" >&6
5447 fi
5448
5449 RANLIB=$ac_ct_RANLIB
5450 else
5451 RANLIB="$ac_cv_prog_RANLIB"
5452 fi
5453
5454 test -z "$RANLIB" && RANLIB=:
5455
5456
5457
5458
5459
5460
5461 # Determine commands to create old-style static archives.
5462 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5463 old_postinstall_cmds='chmod 644 $oldlib'
5464 old_postuninstall_cmds=
5465
5466 if test -n "$RANLIB"; then
5467 case $host_os in
5468 openbsd*)
5469 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5470 ;;
5471 *)
5472 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5473 ;;
5474 esac
5475 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5476 fi
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511 # If no C compiler was specified, use CC.
5512 LTCC=${LTCC-"$CC"}
5513
5514 # If no C compiler flags were specified, use CFLAGS.
5515 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5516
5517 # Allow CC to be a program name with arguments.
5518 compiler=$CC
5519
5520
5521 # Check for command to grab the raw symbol name followed by C symbol from nm.
5522 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5523 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5524 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5525 echo $ECHO_N "(cached) $ECHO_C" >&6
5526 else
5527
5528 # These are sane defaults that work on at least a few old systems.
5529 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5530
5531 # Character class describing NM global symbol codes.
5532 symcode='[BCDEGRST]'
5533
5534 # Regexp to match symbols that can be accessed directly from C.
5535 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5536
5537 # Define system-specific variables.
5538 case $host_os in
5539 aix*)
5540 symcode='[BCDT]'
5541 ;;
5542 cygwin* | mingw* | pw32*)
5543 symcode='[ABCDGISTW]'
5544 ;;
5545 hpux*)
5546 if test "$host_cpu" = ia64; then
5547 symcode='[ABCDEGRST]'
5548 fi
5549 ;;
5550 irix* | nonstopux*)
5551 symcode='[BCDEGRST]'
5552 ;;
5553 osf*)
5554 symcode='[BCDEGQRST]'
5555 ;;
5556 solaris*)
5557 symcode='[BDRT]'
5558 ;;
5559 sco3.2v5*)
5560 symcode='[DT]'
5561 ;;
5562 sysv4.2uw2*)
5563 symcode='[DT]'
5564 ;;
5565 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5566 symcode='[ABDT]'
5567 ;;
5568 sysv4)
5569 symcode='[DFNSTU]'
5570 ;;
5571 esac
5572
5573 # If we're using GNU nm, then use its standard symbol codes.
5574 case `$NM -V 2>&1` in
5575 *GNU* | *'with BFD'*)
5576 symcode='[ABCDGIRSTW]' ;;
5577 esac
5578
5579 # Transform an extracted symbol line into a proper C declaration.
5580 # Some systems (esp. on ia64) link data and code symbols differently,
5581 # so use this general approach.
5582 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5583
5584 # Transform an extracted symbol line into symbol name and symbol address
5585 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5586
5587 # Handle CRLF in mingw tool chain
5588 opt_cr=
5589 case $build_os in
5590 mingw*)
5591 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5592 ;;
5593 esac
5594
5595 # Try without a prefix underscore, then with it.
5596 for ac_symprfx in "" "_"; do
5597
5598 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5599 symxfrm="\\1 $ac_symprfx\\2 \\2"
5600
5601 # Write the raw and C identifiers.
5602 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5603 # Fake it for dumpbin and say T for any non-static function
5604 # and D for any global variable.
5605 # Also find C++ and __fastcall symbols from MSVC++,
5606 # which start with @ or ?.
5607 lt_cv_sys_global_symbol_pipe="$AWK '"\
5608 " {last_section=section; section=\$ 3};"\
5609 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5610 " \$ 0!~/External *\|/{next};"\
5611 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5612 " {if(hide[section]) next};"\
5613 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5614 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5615 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5616 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5617 " ' prfx=^$ac_symprfx"
5618 else
5619 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5620 fi
5621
5622 # Check to see that the pipe works correctly.
5623 pipe_works=no
5624
5625 rm -f conftest*
5626 cat > conftest.$ac_ext <<_LT_EOF
5627 #ifdef __cplusplus
5628 extern "C" {
5629 #endif
5630 char nm_test_var;
5631 void nm_test_func(void);
5632 void nm_test_func(void){}
5633 #ifdef __cplusplus
5634 }
5635 #endif
5636 int main(){nm_test_var='a';nm_test_func();return(0);}
5637 _LT_EOF
5638
5639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5640 (eval $ac_compile) 2>&5
5641 ac_status=$?
5642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643 (exit $ac_status); }; then
5644 # Now try to grab the symbols.
5645 nlist=conftest.nm
5646 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5647 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5648 ac_status=$?
5649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5650 (exit $ac_status); } && test -s "$nlist"; then
5651 # Try sorting and uniquifying the output.
5652 if sort "$nlist" | uniq > "$nlist"T; then
5653 mv -f "$nlist"T "$nlist"
5654 else
5655 rm -f "$nlist"T
5656 fi
5657
5658 # Make sure that we snagged all the symbols we need.
5659 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5660 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5661 cat <<_LT_EOF > conftest.$ac_ext
5662 #ifdef __cplusplus
5663 extern "C" {
5664 #endif
5665
5666 _LT_EOF
5667 # Now generate the symbol file.
5668 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5669
5670 cat <<_LT_EOF >> conftest.$ac_ext
5671
5672 /* The mapping between symbol names and symbols. */
5673 const struct {
5674 const char *name;
5675 void *address;
5676 }
5677 lt__PROGRAM__LTX_preloaded_symbols[] =
5678 {
5679 { "@PROGRAM@", (void *) 0 },
5680 _LT_EOF
5681 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5682 cat <<\_LT_EOF >> conftest.$ac_ext
5683 {0, (void *) 0}
5684 };
5685
5686 /* This works around a problem in FreeBSD linker */
5687 #ifdef FREEBSD_WORKAROUND
5688 static const void *lt_preloaded_setup() {
5689 return lt__PROGRAM__LTX_preloaded_symbols;
5690 }
5691 #endif
5692
5693 #ifdef __cplusplus
5694 }
5695 #endif
5696 _LT_EOF
5697 # Now try linking the two files.
5698 mv conftest.$ac_objext conftstm.$ac_objext
5699 lt_save_LIBS="$LIBS"
5700 lt_save_CFLAGS="$CFLAGS"
5701 LIBS="conftstm.$ac_objext"
5702 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5704 (eval $ac_link) 2>&5
5705 ac_status=$?
5706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5708 pipe_works=yes
5709 fi
5710 LIBS="$lt_save_LIBS"
5711 CFLAGS="$lt_save_CFLAGS"
5712 else
5713 echo "cannot find nm_test_func in $nlist" >&5
5714 fi
5715 else
5716 echo "cannot find nm_test_var in $nlist" >&5
5717 fi
5718 else
5719 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5720 fi
5721 else
5722 echo "$progname: failed program was:" >&5
5723 cat conftest.$ac_ext >&5
5724 fi
5725 rm -f conftest* conftst*
5726
5727 # Do not use the global_symbol_pipe unless it works.
5728 if test "$pipe_works" = yes; then
5729 break
5730 else
5731 lt_cv_sys_global_symbol_pipe=
5732 fi
5733 done
5734
5735 fi
5736
5737 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5738 lt_cv_sys_global_symbol_to_cdecl=
5739 fi
5740 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5741 echo "$as_me:$LINENO: result: failed" >&5
5742 echo "${ECHO_T}failed" >&6
5743 else
5744 echo "$as_me:$LINENO: result: ok" >&5
5745 echo "${ECHO_T}ok" >&6
5746 fi
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5766 if test "${enable_libtool_lock+set}" = set; then
5767 enableval="$enable_libtool_lock"
5768
5769 fi;
5770 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5771
5772 # Some flags need to be propagated to the compiler or linker for good
5773 # libtool support.
5774 case $host in
5775 ia64-*-hpux*)
5776 # Find out which ABI we are using.
5777 echo 'int i;' > conftest.$ac_ext
5778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5779 (eval $ac_compile) 2>&5
5780 ac_status=$?
5781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782 (exit $ac_status); }; then
5783 case `/usr/bin/file conftest.$ac_objext` in
5784 *ELF-32*)
5785 HPUX_IA64_MODE="32"
5786 ;;
5787 *ELF-64*)
5788 HPUX_IA64_MODE="64"
5789 ;;
5790 esac
5791 fi
5792 rm -rf conftest*
5793 ;;
5794 *-*-irix6*)
5795 # Find out which ABI we are using.
5796 echo '#line 5796 "configure"' > conftest.$ac_ext
5797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5798 (eval $ac_compile) 2>&5
5799 ac_status=$?
5800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801 (exit $ac_status); }; then
5802 if test "$lt_cv_prog_gnu_ld" = yes; then
5803 case `/usr/bin/file conftest.$ac_objext` in
5804 *32-bit*)
5805 LD="${LD-ld} -melf32bsmip"
5806 ;;
5807 *N32*)
5808 LD="${LD-ld} -melf32bmipn32"
5809 ;;
5810 *64-bit*)
5811 LD="${LD-ld} -melf64bmip"
5812 ;;
5813 esac
5814 else
5815 case `/usr/bin/file conftest.$ac_objext` in
5816 *32-bit*)
5817 LD="${LD-ld} -32"
5818 ;;
5819 *N32*)
5820 LD="${LD-ld} -n32"
5821 ;;
5822 *64-bit*)
5823 LD="${LD-ld} -64"
5824 ;;
5825 esac
5826 fi
5827 fi
5828 rm -rf conftest*
5829 ;;
5830
5831 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5832 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5833 # Find out which ABI we are using.
5834 echo 'int i;' > conftest.$ac_ext
5835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5836 (eval $ac_compile) 2>&5
5837 ac_status=$?
5838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839 (exit $ac_status); }; then
5840 case `/usr/bin/file conftest.o` in
5841 *32-bit*)
5842 case $host in
5843 x86_64-*kfreebsd*-gnu)
5844 LD="${LD-ld} -m elf_i386_fbsd"
5845 ;;
5846 x86_64-*linux*)
5847 LD="${LD-ld} -m elf_i386"
5848 ;;
5849 ppc64-*linux*|powerpc64-*linux*)
5850 LD="${LD-ld} -m elf32ppclinux"
5851 ;;
5852 s390x-*linux*)
5853 LD="${LD-ld} -m elf_s390"
5854 ;;
5855 sparc64-*linux*)
5856 LD="${LD-ld} -m elf32_sparc"
5857 ;;
5858 esac
5859 ;;
5860 *64-bit*)
5861 case $host in
5862 x86_64-*kfreebsd*-gnu)
5863 LD="${LD-ld} -m elf_x86_64_fbsd"
5864 ;;
5865 x86_64-*linux*)
5866 LD="${LD-ld} -m elf_x86_64"
5867 ;;
5868 ppc*-*linux*|powerpc*-*linux*)
5869 LD="${LD-ld} -m elf64ppc"
5870 ;;
5871 s390*-*linux*|s390*-*tpf*)
5872 LD="${LD-ld} -m elf64_s390"
5873 ;;
5874 sparc*-*linux*)
5875 LD="${LD-ld} -m elf64_sparc"
5876 ;;
5877 esac
5878 ;;
5879 esac
5880 fi
5881 rm -rf conftest*
5882 ;;
5883
5884 *-*-sco3.2v5*)
5885 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5886 SAVE_CFLAGS="$CFLAGS"
5887 CFLAGS="$CFLAGS -belf"
5888 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5889 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5890 if test "${lt_cv_cc_needs_belf+set}" = set; then
5891 echo $ECHO_N "(cached) $ECHO_C" >&6
5892 else
5893 ac_ext=c
5894 ac_cpp='$CPP $CPPFLAGS'
5895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5898
5899 if test x$gcc_no_link = xyes; then
5900 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5901 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5902 { (exit 1); exit 1; }; }
5903 fi
5904 cat >conftest.$ac_ext <<_ACEOF
5905 /* confdefs.h. */
5906 _ACEOF
5907 cat confdefs.h >>conftest.$ac_ext
5908 cat >>conftest.$ac_ext <<_ACEOF
5909 /* end confdefs.h. */
5910
5911 int
5912 main ()
5913 {
5914
5915 ;
5916 return 0;
5917 }
5918 _ACEOF
5919 rm -f conftest.$ac_objext conftest$ac_exeext
5920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5921 (eval $ac_link) 2>conftest.er1
5922 ac_status=$?
5923 grep -v '^ *+' conftest.er1 >conftest.err
5924 rm -f conftest.er1
5925 cat conftest.err >&5
5926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927 (exit $ac_status); } &&
5928 { ac_try='test -z "$ac_c_werror_flag"
5929 || test ! -s conftest.err'
5930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5931 (eval $ac_try) 2>&5
5932 ac_status=$?
5933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934 (exit $ac_status); }; } &&
5935 { ac_try='test -s conftest$ac_exeext'
5936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5937 (eval $ac_try) 2>&5
5938 ac_status=$?
5939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940 (exit $ac_status); }; }; then
5941 lt_cv_cc_needs_belf=yes
5942 else
5943 echo "$as_me: failed program was:" >&5
5944 sed 's/^/| /' conftest.$ac_ext >&5
5945
5946 lt_cv_cc_needs_belf=no
5947 fi
5948 rm -f conftest.err conftest.$ac_objext \
5949 conftest$ac_exeext conftest.$ac_ext
5950 ac_ext=c
5951 ac_cpp='$CPP $CPPFLAGS'
5952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5955
5956 fi
5957 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5958 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5959 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5960 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5961 CFLAGS="$SAVE_CFLAGS"
5962 fi
5963 ;;
5964 sparc*-*solaris*)
5965 # Find out which ABI we are using.
5966 echo 'int i;' > conftest.$ac_ext
5967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5968 (eval $ac_compile) 2>&5
5969 ac_status=$?
5970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971 (exit $ac_status); }; then
5972 case `/usr/bin/file conftest.o` in
5973 *64-bit*)
5974 case $lt_cv_prog_gnu_ld in
5975 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5976 *) LD="${LD-ld} -64" ;;
5977 esac
5978 ;;
5979 esac
5980 fi
5981 rm -rf conftest*
5982 ;;
5983 esac
5984
5985 need_locks="$enable_libtool_lock"
5986
5987 ac_ext=c
5988 ac_cpp='$CPP $CPPFLAGS'
5989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5992 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5993 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5994 # On Suns, sometimes $CPP names a directory.
5995 if test -n "$CPP" && test -d "$CPP"; then
5996 CPP=
5997 fi
5998 if test -z "$CPP"; then
5999 if test "${ac_cv_prog_CPP+set}" = set; then
6000 echo $ECHO_N "(cached) $ECHO_C" >&6
6001 else
6002 # Double quotes because CPP needs to be expanded
6003 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6004 do
6005 ac_preproc_ok=false
6006 for ac_c_preproc_warn_flag in '' yes
6007 do
6008 # Use a header file that comes with gcc, so configuring glibc
6009 # with a fresh cross-compiler works.
6010 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6011 # <limits.h> exists even on freestanding compilers.
6012 # On the NeXT, cc -E runs the code through the compiler's parser,
6013 # not just through cpp. "Syntax error" is here to catch this case.
6014 cat >conftest.$ac_ext <<_ACEOF
6015 /* confdefs.h. */
6016 _ACEOF
6017 cat confdefs.h >>conftest.$ac_ext
6018 cat >>conftest.$ac_ext <<_ACEOF
6019 /* end confdefs.h. */
6020 #ifdef __STDC__
6021 # include <limits.h>
6022 #else
6023 # include <assert.h>
6024 #endif
6025 Syntax error
6026 _ACEOF
6027 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6028 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6029 ac_status=$?
6030 grep -v '^ *+' conftest.er1 >conftest.err
6031 rm -f conftest.er1
6032 cat conftest.err >&5
6033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034 (exit $ac_status); } >/dev/null; then
6035 if test -s conftest.err; then
6036 ac_cpp_err=$ac_c_preproc_warn_flag
6037 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6038 else
6039 ac_cpp_err=
6040 fi
6041 else
6042 ac_cpp_err=yes
6043 fi
6044 if test -z "$ac_cpp_err"; then
6045 :
6046 else
6047 echo "$as_me: failed program was:" >&5
6048 sed 's/^/| /' conftest.$ac_ext >&5
6049
6050 # Broken: fails on valid input.
6051 continue
6052 fi
6053 rm -f conftest.err conftest.$ac_ext
6054
6055 # OK, works on sane cases. Now check whether non-existent headers
6056 # can be detected and how.
6057 cat >conftest.$ac_ext <<_ACEOF
6058 /* confdefs.h. */
6059 _ACEOF
6060 cat confdefs.h >>conftest.$ac_ext
6061 cat >>conftest.$ac_ext <<_ACEOF
6062 /* end confdefs.h. */
6063 #include <ac_nonexistent.h>
6064 _ACEOF
6065 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6066 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6067 ac_status=$?
6068 grep -v '^ *+' conftest.er1 >conftest.err
6069 rm -f conftest.er1
6070 cat conftest.err >&5
6071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072 (exit $ac_status); } >/dev/null; then
6073 if test -s conftest.err; then
6074 ac_cpp_err=$ac_c_preproc_warn_flag
6075 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6076 else
6077 ac_cpp_err=
6078 fi
6079 else
6080 ac_cpp_err=yes
6081 fi
6082 if test -z "$ac_cpp_err"; then
6083 # Broken: success on invalid input.
6084 continue
6085 else
6086 echo "$as_me: failed program was:" >&5
6087 sed 's/^/| /' conftest.$ac_ext >&5
6088
6089 # Passes both tests.
6090 ac_preproc_ok=:
6091 break
6092 fi
6093 rm -f conftest.err conftest.$ac_ext
6094
6095 done
6096 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6097 rm -f conftest.err conftest.$ac_ext
6098 if $ac_preproc_ok; then
6099 break
6100 fi
6101
6102 done
6103 ac_cv_prog_CPP=$CPP
6104
6105 fi
6106 CPP=$ac_cv_prog_CPP
6107 else
6108 ac_cv_prog_CPP=$CPP
6109 fi
6110 echo "$as_me:$LINENO: result: $CPP" >&5
6111 echo "${ECHO_T}$CPP" >&6
6112 ac_preproc_ok=false
6113 for ac_c_preproc_warn_flag in '' yes
6114 do
6115 # Use a header file that comes with gcc, so configuring glibc
6116 # with a fresh cross-compiler works.
6117 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6118 # <limits.h> exists even on freestanding compilers.
6119 # On the NeXT, cc -E runs the code through the compiler's parser,
6120 # not just through cpp. "Syntax error" is here to catch this case.
6121 cat >conftest.$ac_ext <<_ACEOF
6122 /* confdefs.h. */
6123 _ACEOF
6124 cat confdefs.h >>conftest.$ac_ext
6125 cat >>conftest.$ac_ext <<_ACEOF
6126 /* end confdefs.h. */
6127 #ifdef __STDC__
6128 # include <limits.h>
6129 #else
6130 # include <assert.h>
6131 #endif
6132 Syntax error
6133 _ACEOF
6134 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6135 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6136 ac_status=$?
6137 grep -v '^ *+' conftest.er1 >conftest.err
6138 rm -f conftest.er1
6139 cat conftest.err >&5
6140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141 (exit $ac_status); } >/dev/null; then
6142 if test -s conftest.err; then
6143 ac_cpp_err=$ac_c_preproc_warn_flag
6144 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6145 else
6146 ac_cpp_err=
6147 fi
6148 else
6149 ac_cpp_err=yes
6150 fi
6151 if test -z "$ac_cpp_err"; then
6152 :
6153 else
6154 echo "$as_me: failed program was:" >&5
6155 sed 's/^/| /' conftest.$ac_ext >&5
6156
6157 # Broken: fails on valid input.
6158 continue
6159 fi
6160 rm -f conftest.err conftest.$ac_ext
6161
6162 # OK, works on sane cases. Now check whether non-existent headers
6163 # can be detected and how.
6164 cat >conftest.$ac_ext <<_ACEOF
6165 /* confdefs.h. */
6166 _ACEOF
6167 cat confdefs.h >>conftest.$ac_ext
6168 cat >>conftest.$ac_ext <<_ACEOF
6169 /* end confdefs.h. */
6170 #include <ac_nonexistent.h>
6171 _ACEOF
6172 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6173 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6174 ac_status=$?
6175 grep -v '^ *+' conftest.er1 >conftest.err
6176 rm -f conftest.er1
6177 cat conftest.err >&5
6178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6179 (exit $ac_status); } >/dev/null; then
6180 if test -s conftest.err; then
6181 ac_cpp_err=$ac_c_preproc_warn_flag
6182 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6183 else
6184 ac_cpp_err=
6185 fi
6186 else
6187 ac_cpp_err=yes
6188 fi
6189 if test -z "$ac_cpp_err"; then
6190 # Broken: success on invalid input.
6191 continue
6192 else
6193 echo "$as_me: failed program was:" >&5
6194 sed 's/^/| /' conftest.$ac_ext >&5
6195
6196 # Passes both tests.
6197 ac_preproc_ok=:
6198 break
6199 fi
6200 rm -f conftest.err conftest.$ac_ext
6201
6202 done
6203 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6204 rm -f conftest.err conftest.$ac_ext
6205 if $ac_preproc_ok; then
6206 :
6207 else
6208 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6209 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6210 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6211 See \`config.log' for more details." >&5
6212 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6213 See \`config.log' for more details." >&2;}
6214 { (exit 1); exit 1; }; }; }
6215 fi
6216
6217 ac_ext=c
6218 ac_cpp='$CPP $CPPFLAGS'
6219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6222
6223
6224 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6225 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6226 if test "${ac_cv_header_stdc+set}" = set; then
6227 echo $ECHO_N "(cached) $ECHO_C" >&6
6228 else
6229 cat >conftest.$ac_ext <<_ACEOF
6230 /* confdefs.h. */
6231 _ACEOF
6232 cat confdefs.h >>conftest.$ac_ext
6233 cat >>conftest.$ac_ext <<_ACEOF
6234 /* end confdefs.h. */
6235 #include <stdlib.h>
6236 #include <stdarg.h>
6237 #include <string.h>
6238 #include <float.h>
6239
6240 int
6241 main ()
6242 {
6243
6244 ;
6245 return 0;
6246 }
6247 _ACEOF
6248 rm -f conftest.$ac_objext
6249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6250 (eval $ac_compile) 2>conftest.er1
6251 ac_status=$?
6252 grep -v '^ *+' conftest.er1 >conftest.err
6253 rm -f conftest.er1
6254 cat conftest.err >&5
6255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256 (exit $ac_status); } &&
6257 { ac_try='test -z "$ac_c_werror_flag"
6258 || test ! -s conftest.err'
6259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6260 (eval $ac_try) 2>&5
6261 ac_status=$?
6262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263 (exit $ac_status); }; } &&
6264 { ac_try='test -s conftest.$ac_objext'
6265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6266 (eval $ac_try) 2>&5
6267 ac_status=$?
6268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269 (exit $ac_status); }; }; then
6270 ac_cv_header_stdc=yes
6271 else
6272 echo "$as_me: failed program was:" >&5
6273 sed 's/^/| /' conftest.$ac_ext >&5
6274
6275 ac_cv_header_stdc=no
6276 fi
6277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6278
6279 if test $ac_cv_header_stdc = yes; then
6280 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6281 cat >conftest.$ac_ext <<_ACEOF
6282 /* confdefs.h. */
6283 _ACEOF
6284 cat confdefs.h >>conftest.$ac_ext
6285 cat >>conftest.$ac_ext <<_ACEOF
6286 /* end confdefs.h. */
6287 #include <string.h>
6288
6289 _ACEOF
6290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6291 $EGREP "memchr" >/dev/null 2>&1; then
6292 :
6293 else
6294 ac_cv_header_stdc=no
6295 fi
6296 rm -f conftest*
6297
6298 fi
6299
6300 if test $ac_cv_header_stdc = yes; then
6301 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6302 cat >conftest.$ac_ext <<_ACEOF
6303 /* confdefs.h. */
6304 _ACEOF
6305 cat confdefs.h >>conftest.$ac_ext
6306 cat >>conftest.$ac_ext <<_ACEOF
6307 /* end confdefs.h. */
6308 #include <stdlib.h>
6309
6310 _ACEOF
6311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6312 $EGREP "free" >/dev/null 2>&1; then
6313 :
6314 else
6315 ac_cv_header_stdc=no
6316 fi
6317 rm -f conftest*
6318
6319 fi
6320
6321 if test $ac_cv_header_stdc = yes; then
6322 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6323 if test "$cross_compiling" = yes; then
6324 :
6325 else
6326 cat >conftest.$ac_ext <<_ACEOF
6327 /* confdefs.h. */
6328 _ACEOF
6329 cat confdefs.h >>conftest.$ac_ext
6330 cat >>conftest.$ac_ext <<_ACEOF
6331 /* end confdefs.h. */
6332 #include <ctype.h>
6333 #if ((' ' & 0x0FF) == 0x020)
6334 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6335 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6336 #else
6337 # define ISLOWER(c) \
6338 (('a' <= (c) && (c) <= 'i') \
6339 || ('j' <= (c) && (c) <= 'r') \
6340 || ('s' <= (c) && (c) <= 'z'))
6341 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6342 #endif
6343
6344 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6345 int
6346 main ()
6347 {
6348 int i;
6349 for (i = 0; i < 256; i++)
6350 if (XOR (islower (i), ISLOWER (i))
6351 || toupper (i) != TOUPPER (i))
6352 exit(2);
6353 exit (0);
6354 }
6355 _ACEOF
6356 rm -f conftest$ac_exeext
6357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6358 (eval $ac_link) 2>&5
6359 ac_status=$?
6360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6363 (eval $ac_try) 2>&5
6364 ac_status=$?
6365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366 (exit $ac_status); }; }; then
6367 :
6368 else
6369 echo "$as_me: program exited with status $ac_status" >&5
6370 echo "$as_me: failed program was:" >&5
6371 sed 's/^/| /' conftest.$ac_ext >&5
6372
6373 ( exit $ac_status )
6374 ac_cv_header_stdc=no
6375 fi
6376 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6377 fi
6378 fi
6379 fi
6380 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6381 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6382 if test $ac_cv_header_stdc = yes; then
6383
6384 cat >>confdefs.h <<\_ACEOF
6385 #define STDC_HEADERS 1
6386 _ACEOF
6387
6388 fi
6389
6390 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6401 inttypes.h stdint.h unistd.h
6402 do
6403 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6404 echo "$as_me:$LINENO: checking for $ac_header" >&5
6405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6406 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6407 echo $ECHO_N "(cached) $ECHO_C" >&6
6408 else
6409 cat >conftest.$ac_ext <<_ACEOF
6410 /* confdefs.h. */
6411 _ACEOF
6412 cat confdefs.h >>conftest.$ac_ext
6413 cat >>conftest.$ac_ext <<_ACEOF
6414 /* end confdefs.h. */
6415 $ac_includes_default
6416
6417 #include <$ac_header>
6418 _ACEOF
6419 rm -f conftest.$ac_objext
6420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6421 (eval $ac_compile) 2>conftest.er1
6422 ac_status=$?
6423 grep -v '^ *+' conftest.er1 >conftest.err
6424 rm -f conftest.er1
6425 cat conftest.err >&5
6426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427 (exit $ac_status); } &&
6428 { ac_try='test -z "$ac_c_werror_flag"
6429 || test ! -s conftest.err'
6430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6431 (eval $ac_try) 2>&5
6432 ac_status=$?
6433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434 (exit $ac_status); }; } &&
6435 { ac_try='test -s conftest.$ac_objext'
6436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6437 (eval $ac_try) 2>&5
6438 ac_status=$?
6439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440 (exit $ac_status); }; }; then
6441 eval "$as_ac_Header=yes"
6442 else
6443 echo "$as_me: failed program was:" >&5
6444 sed 's/^/| /' conftest.$ac_ext >&5
6445
6446 eval "$as_ac_Header=no"
6447 fi
6448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6449 fi
6450 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6451 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6452 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6453 cat >>confdefs.h <<_ACEOF
6454 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6455 _ACEOF
6456
6457 fi
6458
6459 done
6460
6461
6462
6463 for ac_header in dlfcn.h
6464 do
6465 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6466 echo "$as_me:$LINENO: checking for $ac_header" >&5
6467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6468 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6469 echo $ECHO_N "(cached) $ECHO_C" >&6
6470 else
6471 cat >conftest.$ac_ext <<_ACEOF
6472 /* confdefs.h. */
6473 _ACEOF
6474 cat confdefs.h >>conftest.$ac_ext
6475 cat >>conftest.$ac_ext <<_ACEOF
6476 /* end confdefs.h. */
6477 $ac_includes_default
6478
6479 #include <$ac_header>
6480 _ACEOF
6481 rm -f conftest.$ac_objext
6482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6483 (eval $ac_compile) 2>conftest.er1
6484 ac_status=$?
6485 grep -v '^ *+' conftest.er1 >conftest.err
6486 rm -f conftest.er1
6487 cat conftest.err >&5
6488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489 (exit $ac_status); } &&
6490 { ac_try='test -z "$ac_c_werror_flag"
6491 || test ! -s conftest.err'
6492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6493 (eval $ac_try) 2>&5
6494 ac_status=$?
6495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496 (exit $ac_status); }; } &&
6497 { ac_try='test -s conftest.$ac_objext'
6498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6499 (eval $ac_try) 2>&5
6500 ac_status=$?
6501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502 (exit $ac_status); }; }; then
6503 eval "$as_ac_Header=yes"
6504 else
6505 echo "$as_me: failed program was:" >&5
6506 sed 's/^/| /' conftest.$ac_ext >&5
6507
6508 eval "$as_ac_Header=no"
6509 fi
6510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6511 fi
6512 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6513 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6514 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6515 cat >>confdefs.h <<_ACEOF
6516 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6517 _ACEOF
6518
6519 fi
6520
6521 done
6522
6523
6524
6525 ac_ext=cc
6526 ac_cpp='$CXXCPP $CPPFLAGS'
6527 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6528 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6529 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6530 if test -n "$ac_tool_prefix"; then
6531 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6532 do
6533 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6534 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6535 echo "$as_me:$LINENO: checking for $ac_word" >&5
6536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6537 if test "${ac_cv_prog_CXX+set}" = set; then
6538 echo $ECHO_N "(cached) $ECHO_C" >&6
6539 else
6540 if test -n "$CXX"; then
6541 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6542 else
6543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6544 for as_dir in $PATH
6545 do
6546 IFS=$as_save_IFS
6547 test -z "$as_dir" && as_dir=.
6548 for ac_exec_ext in '' $ac_executable_extensions; do
6549 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6550 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6552 break 2
6553 fi
6554 done
6555 done
6556
6557 fi
6558 fi
6559 CXX=$ac_cv_prog_CXX
6560 if test -n "$CXX"; then
6561 echo "$as_me:$LINENO: result: $CXX" >&5
6562 echo "${ECHO_T}$CXX" >&6
6563 else
6564 echo "$as_me:$LINENO: result: no" >&5
6565 echo "${ECHO_T}no" >&6
6566 fi
6567
6568 test -n "$CXX" && break
6569 done
6570 fi
6571 if test -z "$CXX"; then
6572 ac_ct_CXX=$CXX
6573 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6574 do
6575 # Extract the first word of "$ac_prog", so it can be a program name with args.
6576 set dummy $ac_prog; ac_word=$2
6577 echo "$as_me:$LINENO: checking for $ac_word" >&5
6578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6579 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6580 echo $ECHO_N "(cached) $ECHO_C" >&6
6581 else
6582 if test -n "$ac_ct_CXX"; then
6583 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6584 else
6585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6586 for as_dir in $PATH
6587 do
6588 IFS=$as_save_IFS
6589 test -z "$as_dir" && as_dir=.
6590 for ac_exec_ext in '' $ac_executable_extensions; do
6591 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6592 ac_cv_prog_ac_ct_CXX="$ac_prog"
6593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6594 break 2
6595 fi
6596 done
6597 done
6598
6599 fi
6600 fi
6601 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6602 if test -n "$ac_ct_CXX"; then
6603 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6604 echo "${ECHO_T}$ac_ct_CXX" >&6
6605 else
6606 echo "$as_me:$LINENO: result: no" >&5
6607 echo "${ECHO_T}no" >&6
6608 fi
6609
6610 test -n "$ac_ct_CXX" && break
6611 done
6612 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
6613
6614 CXX=$ac_ct_CXX
6615 fi
6616
6617
6618 # Provide some information about the compiler.
6619 echo "$as_me:$LINENO:" \
6620 "checking for C++ compiler version" >&5
6621 ac_compiler=`set X $ac_compile; echo $2`
6622 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6623 (eval $ac_compiler --version </dev/null >&5) 2>&5
6624 ac_status=$?
6625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6626 (exit $ac_status); }
6627 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6628 (eval $ac_compiler -v </dev/null >&5) 2>&5
6629 ac_status=$?
6630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6631 (exit $ac_status); }
6632 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6633 (eval $ac_compiler -V </dev/null >&5) 2>&5
6634 ac_status=$?
6635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636 (exit $ac_status); }
6637
6638 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6639 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
6640 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6641 echo $ECHO_N "(cached) $ECHO_C" >&6
6642 else
6643 cat >conftest.$ac_ext <<_ACEOF
6644 /* confdefs.h. */
6645 _ACEOF
6646 cat confdefs.h >>conftest.$ac_ext
6647 cat >>conftest.$ac_ext <<_ACEOF
6648 /* end confdefs.h. */
6649
6650 int
6651 main ()
6652 {
6653 #ifndef __GNUC__
6654 choke me
6655 #endif
6656
6657 ;
6658 return 0;
6659 }
6660 _ACEOF
6661 rm -f conftest.$ac_objext
6662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6663 (eval $ac_compile) 2>conftest.er1
6664 ac_status=$?
6665 grep -v '^ *+' conftest.er1 >conftest.err
6666 rm -f conftest.er1
6667 cat conftest.err >&5
6668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6669 (exit $ac_status); } &&
6670 { ac_try='test -z "$ac_cxx_werror_flag"
6671 || test ! -s conftest.err'
6672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6673 (eval $ac_try) 2>&5
6674 ac_status=$?
6675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676 (exit $ac_status); }; } &&
6677 { ac_try='test -s conftest.$ac_objext'
6678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6679 (eval $ac_try) 2>&5
6680 ac_status=$?
6681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6682 (exit $ac_status); }; }; then
6683 ac_compiler_gnu=yes
6684 else
6685 echo "$as_me: failed program was:" >&5
6686 sed 's/^/| /' conftest.$ac_ext >&5
6687
6688 ac_compiler_gnu=no
6689 fi
6690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6691 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6692
6693 fi
6694 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6695 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
6696 GXX=`test $ac_compiler_gnu = yes && echo yes`
6697 ac_test_CXXFLAGS=${CXXFLAGS+set}
6698 ac_save_CXXFLAGS=$CXXFLAGS
6699 CXXFLAGS="-g"
6700 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6701 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
6702 if test "${ac_cv_prog_cxx_g+set}" = set; then
6703 echo $ECHO_N "(cached) $ECHO_C" >&6
6704 else
6705 cat >conftest.$ac_ext <<_ACEOF
6706 /* confdefs.h. */
6707 _ACEOF
6708 cat confdefs.h >>conftest.$ac_ext
6709 cat >>conftest.$ac_ext <<_ACEOF
6710 /* end confdefs.h. */
6711
6712 int
6713 main ()
6714 {
6715
6716 ;
6717 return 0;
6718 }
6719 _ACEOF
6720 rm -f conftest.$ac_objext
6721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6722 (eval $ac_compile) 2>conftest.er1
6723 ac_status=$?
6724 grep -v '^ *+' conftest.er1 >conftest.err
6725 rm -f conftest.er1
6726 cat conftest.err >&5
6727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6728 (exit $ac_status); } &&
6729 { ac_try='test -z "$ac_cxx_werror_flag"
6730 || test ! -s conftest.err'
6731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6732 (eval $ac_try) 2>&5
6733 ac_status=$?
6734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6735 (exit $ac_status); }; } &&
6736 { ac_try='test -s conftest.$ac_objext'
6737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6738 (eval $ac_try) 2>&5
6739 ac_status=$?
6740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6741 (exit $ac_status); }; }; then
6742 ac_cv_prog_cxx_g=yes
6743 else
6744 echo "$as_me: failed program was:" >&5
6745 sed 's/^/| /' conftest.$ac_ext >&5
6746
6747 ac_cv_prog_cxx_g=no
6748 fi
6749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6750 fi
6751 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6752 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
6753 if test "$ac_test_CXXFLAGS" = set; then
6754 CXXFLAGS=$ac_save_CXXFLAGS
6755 elif test $ac_cv_prog_cxx_g = yes; then
6756 if test "$GXX" = yes; then
6757 CXXFLAGS="-g -O2"
6758 else
6759 CXXFLAGS="-g"
6760 fi
6761 else
6762 if test "$GXX" = yes; then
6763 CXXFLAGS="-O2"
6764 else
6765 CXXFLAGS=
6766 fi
6767 fi
6768 for ac_declaration in \
6769 '' \
6770 'extern "C" void std::exit (int) throw (); using std::exit;' \
6771 'extern "C" void std::exit (int); using std::exit;' \
6772 'extern "C" void exit (int) throw ();' \
6773 'extern "C" void exit (int);' \
6774 'void exit (int);'
6775 do
6776 cat >conftest.$ac_ext <<_ACEOF
6777 /* confdefs.h. */
6778 _ACEOF
6779 cat confdefs.h >>conftest.$ac_ext
6780 cat >>conftest.$ac_ext <<_ACEOF
6781 /* end confdefs.h. */
6782 $ac_declaration
6783 #include <stdlib.h>
6784 int
6785 main ()
6786 {
6787 exit (42);
6788 ;
6789 return 0;
6790 }
6791 _ACEOF
6792 rm -f conftest.$ac_objext
6793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6794 (eval $ac_compile) 2>conftest.er1
6795 ac_status=$?
6796 grep -v '^ *+' conftest.er1 >conftest.err
6797 rm -f conftest.er1
6798 cat conftest.err >&5
6799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6800 (exit $ac_status); } &&
6801 { ac_try='test -z "$ac_cxx_werror_flag"
6802 || test ! -s conftest.err'
6803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6804 (eval $ac_try) 2>&5
6805 ac_status=$?
6806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6807 (exit $ac_status); }; } &&
6808 { ac_try='test -s conftest.$ac_objext'
6809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6810 (eval $ac_try) 2>&5
6811 ac_status=$?
6812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6813 (exit $ac_status); }; }; then
6814 :
6815 else
6816 echo "$as_me: failed program was:" >&5
6817 sed 's/^/| /' conftest.$ac_ext >&5
6818
6819 continue
6820 fi
6821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6822 cat >conftest.$ac_ext <<_ACEOF
6823 /* confdefs.h. */
6824 _ACEOF
6825 cat confdefs.h >>conftest.$ac_ext
6826 cat >>conftest.$ac_ext <<_ACEOF
6827 /* end confdefs.h. */
6828 $ac_declaration
6829 int
6830 main ()
6831 {
6832 exit (42);
6833 ;
6834 return 0;
6835 }
6836 _ACEOF
6837 rm -f conftest.$ac_objext
6838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6839 (eval $ac_compile) 2>conftest.er1
6840 ac_status=$?
6841 grep -v '^ *+' conftest.er1 >conftest.err
6842 rm -f conftest.er1
6843 cat conftest.err >&5
6844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6845 (exit $ac_status); } &&
6846 { ac_try='test -z "$ac_cxx_werror_flag"
6847 || test ! -s conftest.err'
6848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6849 (eval $ac_try) 2>&5
6850 ac_status=$?
6851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6852 (exit $ac_status); }; } &&
6853 { ac_try='test -s conftest.$ac_objext'
6854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6855 (eval $ac_try) 2>&5
6856 ac_status=$?
6857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6858 (exit $ac_status); }; }; then
6859 break
6860 else
6861 echo "$as_me: failed program was:" >&5
6862 sed 's/^/| /' conftest.$ac_ext >&5
6863
6864 fi
6865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6866 done
6867 rm -f conftest*
6868 if test -n "$ac_declaration"; then
6869 echo '#ifdef __cplusplus' >>confdefs.h
6870 echo $ac_declaration >>confdefs.h
6871 echo '#endif' >>confdefs.h
6872 fi
6873
6874 ac_ext=c
6875 ac_cpp='$CPP $CPPFLAGS'
6876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6879
6880 depcc="$CXX" am_compiler_list=
6881
6882 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6883 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6884 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6885 echo $ECHO_N "(cached) $ECHO_C" >&6
6886 else
6887 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6888 # We make a subdir and do the tests there. Otherwise we can end up
6889 # making bogus files that we don't know about and never remove. For
6890 # instance it was reported that on HP-UX the gcc test will end up
6891 # making a dummy file named `D' -- because `-MD' means `put the output
6892 # in D'.
6893 mkdir conftest.dir
6894 # Copy depcomp to subdir because otherwise we won't find it if we're
6895 # using a relative directory.
6896 cp "$am_depcomp" conftest.dir
6897 cd conftest.dir
6898 # We will build objects and dependencies in a subdirectory because
6899 # it helps to detect inapplicable dependency modes. For instance
6900 # both Tru64's cc and ICC support -MD to output dependencies as a
6901 # side effect of compilation, but ICC will put the dependencies in
6902 # the current directory while Tru64 will put them in the object
6903 # directory.
6904 mkdir sub
6905
6906 am_cv_CXX_dependencies_compiler_type=none
6907 if test "$am_compiler_list" = ""; then
6908 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6909 fi
6910 for depmode in $am_compiler_list; do
6911 # Setup a source with many dependencies, because some compilers
6912 # like to wrap large dependency lists on column 80 (with \), and
6913 # we should not choose a depcomp mode which is confused by this.
6914 #
6915 # We need to recreate these files for each test, as the compiler may
6916 # overwrite some of them when testing with obscure command lines.
6917 # This happens at least with the AIX C compiler.
6918 : > sub/conftest.c
6919 for i in 1 2 3 4 5 6; do
6920 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6921 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6922 # Solaris 8's {/usr,}/bin/sh.
6923 touch sub/conftst$i.h
6924 done
6925 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6926
6927 case $depmode in
6928 nosideeffect)
6929 # after this tag, mechanisms are not by side-effect, so they'll
6930 # only be used when explicitly requested
6931 if test "x$enable_dependency_tracking" = xyes; then
6932 continue
6933 else
6934 break
6935 fi
6936 ;;
6937 none) break ;;
6938 esac
6939 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6940 # mode. It turns out that the SunPro C++ compiler does not properly
6941 # handle `-M -o', and we need to detect this.
6942 if depmode=$depmode \
6943 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6944 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6945 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6946 >/dev/null 2>conftest.err &&
6947 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6948 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6949 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6950 # icc doesn't choke on unknown options, it will just issue warnings
6951 # or remarks (even with -Werror). So we grep stderr for any message
6952 # that says an option was ignored or not supported.
6953 # When given -MP, icc 7.0 and 7.1 complain thusly:
6954 # icc: Command line warning: ignoring option '-M'; no argument required
6955 # The diagnosis changed in icc 8.0:
6956 # icc: Command line remark: option '-MP' not supported
6957 if (grep 'ignoring option' conftest.err ||
6958 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6959 am_cv_CXX_dependencies_compiler_type=$depmode
6960 break
6961 fi
6962 fi
6963 done
6964
6965 cd ..
6966 rm -rf conftest.dir
6967 else
6968 am_cv_CXX_dependencies_compiler_type=none
6969 fi
6970
6971 fi
6972 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6973 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
6974 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6975
6976
6977
6978 if
6979 test "x$enable_dependency_tracking" != xno \
6980 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6981 am__fastdepCXX_TRUE=
6982 am__fastdepCXX_FALSE='#'
6983 else
6984 am__fastdepCXX_TRUE='#'
6985 am__fastdepCXX_FALSE=
6986 fi
6987
6988
6989 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6990 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6991 (test "X$CXX" != "Xg++"))) ; then
6992 ac_ext=cc
6993 ac_cpp='$CXXCPP $CPPFLAGS'
6994 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6995 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6996 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6997 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6998 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6999 if test -z "$CXXCPP"; then
7000 if test "${ac_cv_prog_CXXCPP+set}" = set; then
7001 echo $ECHO_N "(cached) $ECHO_C" >&6
7002 else
7003 # Double quotes because CXXCPP needs to be expanded
7004 for CXXCPP in "$CXX -E" "/lib/cpp"
7005 do
7006 ac_preproc_ok=false
7007 for ac_cxx_preproc_warn_flag in '' yes
7008 do
7009 # Use a header file that comes with gcc, so configuring glibc
7010 # with a fresh cross-compiler works.
7011 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7012 # <limits.h> exists even on freestanding compilers.
7013 # On the NeXT, cc -E runs the code through the compiler's parser,
7014 # not just through cpp. "Syntax error" is here to catch this case.
7015 cat >conftest.$ac_ext <<_ACEOF
7016 /* confdefs.h. */
7017 _ACEOF
7018 cat confdefs.h >>conftest.$ac_ext
7019 cat >>conftest.$ac_ext <<_ACEOF
7020 /* end confdefs.h. */
7021 #ifdef __STDC__
7022 # include <limits.h>
7023 #else
7024 # include <assert.h>
7025 #endif
7026 Syntax error
7027 _ACEOF
7028 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7029 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7030 ac_status=$?
7031 grep -v '^ *+' conftest.er1 >conftest.err
7032 rm -f conftest.er1
7033 cat conftest.err >&5
7034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7035 (exit $ac_status); } >/dev/null; then
7036 if test -s conftest.err; then
7037 ac_cpp_err=$ac_cxx_preproc_warn_flag
7038 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7039 else
7040 ac_cpp_err=
7041 fi
7042 else
7043 ac_cpp_err=yes
7044 fi
7045 if test -z "$ac_cpp_err"; then
7046 :
7047 else
7048 echo "$as_me: failed program was:" >&5
7049 sed 's/^/| /' conftest.$ac_ext >&5
7050
7051 # Broken: fails on valid input.
7052 continue
7053 fi
7054 rm -f conftest.err conftest.$ac_ext
7055
7056 # OK, works on sane cases. Now check whether non-existent headers
7057 # can be detected and how.
7058 cat >conftest.$ac_ext <<_ACEOF
7059 /* confdefs.h. */
7060 _ACEOF
7061 cat confdefs.h >>conftest.$ac_ext
7062 cat >>conftest.$ac_ext <<_ACEOF
7063 /* end confdefs.h. */
7064 #include <ac_nonexistent.h>
7065 _ACEOF
7066 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7067 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7068 ac_status=$?
7069 grep -v '^ *+' conftest.er1 >conftest.err
7070 rm -f conftest.er1
7071 cat conftest.err >&5
7072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073 (exit $ac_status); } >/dev/null; then
7074 if test -s conftest.err; then
7075 ac_cpp_err=$ac_cxx_preproc_warn_flag
7076 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7077 else
7078 ac_cpp_err=
7079 fi
7080 else
7081 ac_cpp_err=yes
7082 fi
7083 if test -z "$ac_cpp_err"; then
7084 # Broken: success on invalid input.
7085 continue
7086 else
7087 echo "$as_me: failed program was:" >&5
7088 sed 's/^/| /' conftest.$ac_ext >&5
7089
7090 # Passes both tests.
7091 ac_preproc_ok=:
7092 break
7093 fi
7094 rm -f conftest.err conftest.$ac_ext
7095
7096 done
7097 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7098 rm -f conftest.err conftest.$ac_ext
7099 if $ac_preproc_ok; then
7100 break
7101 fi
7102
7103 done
7104 ac_cv_prog_CXXCPP=$CXXCPP
7105
7106 fi
7107 CXXCPP=$ac_cv_prog_CXXCPP
7108 else
7109 ac_cv_prog_CXXCPP=$CXXCPP
7110 fi
7111 echo "$as_me:$LINENO: result: $CXXCPP" >&5
7112 echo "${ECHO_T}$CXXCPP" >&6
7113 ac_preproc_ok=false
7114 for ac_cxx_preproc_warn_flag in '' yes
7115 do
7116 # Use a header file that comes with gcc, so configuring glibc
7117 # with a fresh cross-compiler works.
7118 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7119 # <limits.h> exists even on freestanding compilers.
7120 # On the NeXT, cc -E runs the code through the compiler's parser,
7121 # not just through cpp. "Syntax error" is here to catch this case.
7122 cat >conftest.$ac_ext <<_ACEOF
7123 /* confdefs.h. */
7124 _ACEOF
7125 cat confdefs.h >>conftest.$ac_ext
7126 cat >>conftest.$ac_ext <<_ACEOF
7127 /* end confdefs.h. */
7128 #ifdef __STDC__
7129 # include <limits.h>
7130 #else
7131 # include <assert.h>
7132 #endif
7133 Syntax error
7134 _ACEOF
7135 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7136 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7137 ac_status=$?
7138 grep -v '^ *+' conftest.er1 >conftest.err
7139 rm -f conftest.er1
7140 cat conftest.err >&5
7141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7142 (exit $ac_status); } >/dev/null; then
7143 if test -s conftest.err; then
7144 ac_cpp_err=$ac_cxx_preproc_warn_flag
7145 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7146 else
7147 ac_cpp_err=
7148 fi
7149 else
7150 ac_cpp_err=yes
7151 fi
7152 if test -z "$ac_cpp_err"; then
7153 :
7154 else
7155 echo "$as_me: failed program was:" >&5
7156 sed 's/^/| /' conftest.$ac_ext >&5
7157
7158 # Broken: fails on valid input.
7159 continue
7160 fi
7161 rm -f conftest.err conftest.$ac_ext
7162
7163 # OK, works on sane cases. Now check whether non-existent headers
7164 # can be detected and how.
7165 cat >conftest.$ac_ext <<_ACEOF
7166 /* confdefs.h. */
7167 _ACEOF
7168 cat confdefs.h >>conftest.$ac_ext
7169 cat >>conftest.$ac_ext <<_ACEOF
7170 /* end confdefs.h. */
7171 #include <ac_nonexistent.h>
7172 _ACEOF
7173 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7174 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7175 ac_status=$?
7176 grep -v '^ *+' conftest.er1 >conftest.err
7177 rm -f conftest.er1
7178 cat conftest.err >&5
7179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7180 (exit $ac_status); } >/dev/null; then
7181 if test -s conftest.err; then
7182 ac_cpp_err=$ac_cxx_preproc_warn_flag
7183 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7184 else
7185 ac_cpp_err=
7186 fi
7187 else
7188 ac_cpp_err=yes
7189 fi
7190 if test -z "$ac_cpp_err"; then
7191 # Broken: success on invalid input.
7192 continue
7193 else
7194 echo "$as_me: failed program was:" >&5
7195 sed 's/^/| /' conftest.$ac_ext >&5
7196
7197 # Passes both tests.
7198 ac_preproc_ok=:
7199 break
7200 fi
7201 rm -f conftest.err conftest.$ac_ext
7202
7203 done
7204 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7205 rm -f conftest.err conftest.$ac_ext
7206 if $ac_preproc_ok; then
7207 :
7208 else
7209 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7210 echo "$as_me: error: in \`$ac_pwd':" >&2;}
7211 _lt_caught_CXX_error=yes; }
7212 fi
7213
7214 ac_ext=c
7215 ac_cpp='$CPP $CPPFLAGS'
7216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7219
7220 else
7221 _lt_caught_CXX_error=yes
7222 fi
7223
7224
7225
7226
7227
7228 # This can be used to rebuild libtool when needed
7229 LIBTOOL_DEPS="$ltmain"
7230
7231 # Always use our own libtool.
7232 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258 test -z "$LN_S" && LN_S="ln -s"
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273 if test -n "${ZSH_VERSION+set}" ; then
7274 setopt NO_GLOB_SUBST
7275 fi
7276
7277 echo "$as_me:$LINENO: checking for objdir" >&5
7278 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7279 if test "${lt_cv_objdir+set}" = set; then
7280 echo $ECHO_N "(cached) $ECHO_C" >&6
7281 else
7282 rm -f .libs 2>/dev/null
7283 mkdir .libs 2>/dev/null
7284 if test -d .libs; then
7285 lt_cv_objdir=.libs
7286 else
7287 # MS-DOS does not allow filenames that begin with a dot.
7288 lt_cv_objdir=_libs
7289 fi
7290 rmdir .libs 2>/dev/null
7291 fi
7292 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7293 echo "${ECHO_T}$lt_cv_objdir" >&6
7294 objdir=$lt_cv_objdir
7295
7296
7297
7298
7299
7300 cat >>confdefs.h <<_ACEOF
7301 #define LT_OBJDIR "$lt_cv_objdir/"
7302 _ACEOF
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320 case $host_os in
7321 aix3*)
7322 # AIX sometimes has problems with the GCC collect2 program. For some
7323 # reason, if we set the COLLECT_NAMES environment variable, the problems
7324 # vanish in a puff of smoke.
7325 if test "X${COLLECT_NAMES+set}" != Xset; then
7326 COLLECT_NAMES=
7327 export COLLECT_NAMES
7328 fi
7329 ;;
7330 esac
7331
7332 # Sed substitution that helps us do robust quoting. It backslashifies
7333 # metacharacters that are still active within double-quoted strings.
7334 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7335
7336 # Same as above, but do not quote variable references.
7337 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7338
7339 # Sed substitution to delay expansion of an escaped shell variable in a
7340 # double_quote_subst'ed string.
7341 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7342
7343 # Sed substitution to delay expansion of an escaped single quote.
7344 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7345
7346 # Sed substitution to avoid accidental globbing in evaled expressions
7347 no_glob_subst='s/\*/\\\*/g'
7348
7349 # Global variables:
7350 ofile=libtool
7351 can_build_shared=yes
7352
7353 # All known linkers require a `.a' archive for static linking (except MSVC,
7354 # which needs '.lib').
7355 libext=a
7356
7357 with_gnu_ld="$lt_cv_prog_gnu_ld"
7358
7359 old_CC="$CC"
7360 old_CFLAGS="$CFLAGS"
7361
7362 # Set sane defaults for various variables
7363 test -z "$CC" && CC=cc
7364 test -z "$LTCC" && LTCC=$CC
7365 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7366 test -z "$LD" && LD=ld
7367 test -z "$ac_objext" && ac_objext=o
7368
7369 for cc_temp in $compiler""; do
7370 case $cc_temp in
7371 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7372 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7373 \-*) ;;
7374 *) break;;
7375 esac
7376 done
7377 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7378
7379
7380 # Only perform the check for file, if the check method requires it
7381 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7382 case $deplibs_check_method in
7383 file_magic*)
7384 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7385 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7386 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7387 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7388 echo $ECHO_N "(cached) $ECHO_C" >&6
7389 else
7390 case $MAGIC_CMD in
7391 [\\/*] | ?:[\\/]*)
7392 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7393 ;;
7394 *)
7395 lt_save_MAGIC_CMD="$MAGIC_CMD"
7396 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7397 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7398 for ac_dir in $ac_dummy; do
7399 IFS="$lt_save_ifs"
7400 test -z "$ac_dir" && ac_dir=.
7401 if test -f $ac_dir/${ac_tool_prefix}file; then
7402 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7403 if test -n "$file_magic_test_file"; then
7404 case $deplibs_check_method in
7405 "file_magic "*)
7406 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7407 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7408 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7409 $EGREP "$file_magic_regex" > /dev/null; then
7410 :
7411 else
7412 cat <<_LT_EOF 1>&2
7413
7414 *** Warning: the command libtool uses to detect shared libraries,
7415 *** $file_magic_cmd, produces output that libtool cannot recognize.
7416 *** The result is that libtool may fail to recognize shared libraries
7417 *** as such. This will affect the creation of libtool libraries that
7418 *** depend on shared libraries, but programs linked with such libtool
7419 *** libraries will work regardless of this problem. Nevertheless, you
7420 *** may want to report the problem to your system manager and/or to
7421 *** bug-libtool@gnu.org
7422
7423 _LT_EOF
7424 fi ;;
7425 esac
7426 fi
7427 break
7428 fi
7429 done
7430 IFS="$lt_save_ifs"
7431 MAGIC_CMD="$lt_save_MAGIC_CMD"
7432 ;;
7433 esac
7434 fi
7435
7436 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7437 if test -n "$MAGIC_CMD"; then
7438 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7439 echo "${ECHO_T}$MAGIC_CMD" >&6
7440 else
7441 echo "$as_me:$LINENO: result: no" >&5
7442 echo "${ECHO_T}no" >&6
7443 fi
7444
7445
7446
7447
7448
7449 if test -z "$lt_cv_path_MAGIC_CMD"; then
7450 if test -n "$ac_tool_prefix"; then
7451 echo "$as_me:$LINENO: checking for file" >&5
7452 echo $ECHO_N "checking for file... $ECHO_C" >&6
7453 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7454 echo $ECHO_N "(cached) $ECHO_C" >&6
7455 else
7456 case $MAGIC_CMD in
7457 [\\/*] | ?:[\\/]*)
7458 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7459 ;;
7460 *)
7461 lt_save_MAGIC_CMD="$MAGIC_CMD"
7462 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7463 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7464 for ac_dir in $ac_dummy; do
7465 IFS="$lt_save_ifs"
7466 test -z "$ac_dir" && ac_dir=.
7467 if test -f $ac_dir/file; then
7468 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7469 if test -n "$file_magic_test_file"; then
7470 case $deplibs_check_method in
7471 "file_magic "*)
7472 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7473 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7474 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7475 $EGREP "$file_magic_regex" > /dev/null; then
7476 :
7477 else
7478 cat <<_LT_EOF 1>&2
7479
7480 *** Warning: the command libtool uses to detect shared libraries,
7481 *** $file_magic_cmd, produces output that libtool cannot recognize.
7482 *** The result is that libtool may fail to recognize shared libraries
7483 *** as such. This will affect the creation of libtool libraries that
7484 *** depend on shared libraries, but programs linked with such libtool
7485 *** libraries will work regardless of this problem. Nevertheless, you
7486 *** may want to report the problem to your system manager and/or to
7487 *** bug-libtool@gnu.org
7488
7489 _LT_EOF
7490 fi ;;
7491 esac
7492 fi
7493 break
7494 fi
7495 done
7496 IFS="$lt_save_ifs"
7497 MAGIC_CMD="$lt_save_MAGIC_CMD"
7498 ;;
7499 esac
7500 fi
7501
7502 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7503 if test -n "$MAGIC_CMD"; then
7504 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7505 echo "${ECHO_T}$MAGIC_CMD" >&6
7506 else
7507 echo "$as_me:$LINENO: result: no" >&5
7508 echo "${ECHO_T}no" >&6
7509 fi
7510
7511
7512 else
7513 MAGIC_CMD=:
7514 fi
7515 fi
7516
7517 fi
7518 ;;
7519 esac
7520
7521 # Use C for the default configuration in the libtool script
7522
7523 lt_save_CC="$CC"
7524 ac_ext=c
7525 ac_cpp='$CPP $CPPFLAGS'
7526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7529
7530
7531 # Source file extension for C test sources.
7532 ac_ext=c
7533
7534 # Object file extension for compiled C test sources.
7535 objext=o
7536 objext=$objext
7537
7538 # Code to be used in simple compile tests
7539 lt_simple_compile_test_code="int some_variable = 0;"
7540
7541 # Code to be used in simple link tests
7542 lt_simple_link_test_code='int main(){return(0);}'
7543
7544
7545
7546
7547
7548
7549
7550 # If no C compiler was specified, use CC.
7551 LTCC=${LTCC-"$CC"}
7552
7553 # If no C compiler flags were specified, use CFLAGS.
7554 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7555
7556 # Allow CC to be a program name with arguments.
7557 compiler=$CC
7558
7559 # Save the default compiler, since it gets overwritten when the other
7560 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7561 compiler_DEFAULT=$CC
7562
7563 # save warnings/boilerplate of simple test code
7564 ac_outfile=conftest.$ac_objext
7565 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7566 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7567 _lt_compiler_boilerplate=`cat conftest.err`
7568 $RM conftest*
7569
7570 ac_outfile=conftest.$ac_objext
7571 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7572 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7573 _lt_linker_boilerplate=`cat conftest.err`
7574 $RM conftest*
7575
7576
7577 ## CAVEAT EMPTOR:
7578 ## There is no encapsulation within the following macros, do not change
7579 ## the running order or otherwise move them around unless you know exactly
7580 ## what you are doing...
7581 if test -n "$compiler"; then
7582
7583 lt_prog_compiler_no_builtin_flag=
7584
7585 if test "$GCC" = yes; then
7586 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7587
7588 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7589 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7590 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7591 echo $ECHO_N "(cached) $ECHO_C" >&6
7592 else
7593 lt_cv_prog_compiler_rtti_exceptions=no
7594 ac_outfile=conftest.$ac_objext
7595 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7596 lt_compiler_flag="-fno-rtti -fno-exceptions"
7597 # Insert the option either (1) after the last *FLAGS variable, or
7598 # (2) before a word containing "conftest.", or (3) at the end.
7599 # Note that $ac_compile itself does not contain backslashes and begins
7600 # with a dollar sign (not a hyphen), so the echo should work correctly.
7601 # The option is referenced via a variable to avoid confusing sed.
7602 lt_compile=`echo "$ac_compile" | $SED \
7603 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7604 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7605 -e 's:$: $lt_compiler_flag:'`
7606 (eval echo "\"\$as_me:7606: $lt_compile\"" >&5)
7607 (eval "$lt_compile" 2>conftest.err)
7608 ac_status=$?
7609 cat conftest.err >&5
7610 echo "$as_me:7610: \$? = $ac_status" >&5
7611 if (exit $ac_status) && test -s "$ac_outfile"; then
7612 # The compiler can only warn and ignore the option if not recognized
7613 # So say no if there are warnings other than the usual output.
7614 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7615 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7616 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7617 lt_cv_prog_compiler_rtti_exceptions=yes
7618 fi
7619 fi
7620 $RM conftest*
7621
7622 fi
7623 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7624 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7625
7626 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7627 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7628 else
7629 :
7630 fi
7631
7632 fi
7633
7634
7635
7636
7637
7638
7639 lt_prog_compiler_wl=
7640 lt_prog_compiler_pic=
7641 lt_prog_compiler_static=
7642
7643 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7644 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7645
7646 if test "$GCC" = yes; then
7647 lt_prog_compiler_wl='-Wl,'
7648 lt_prog_compiler_static='-static'
7649
7650 case $host_os in
7651 aix*)
7652 # All AIX code is PIC.
7653 if test "$host_cpu" = ia64; then
7654 # AIX 5 now supports IA64 processor
7655 lt_prog_compiler_static='-Bstatic'
7656 fi
7657 ;;
7658
7659 amigaos*)
7660 if test "$host_cpu" = m68k; then
7661 # FIXME: we need at least 68020 code to build shared libraries, but
7662 # adding the `-m68020' flag to GCC prevents building anything better,
7663 # like `-m68040'.
7664 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7665 fi
7666 ;;
7667
7668 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7669 # PIC is the default for these OSes.
7670 ;;
7671
7672 mingw* | cygwin* | pw32* | os2*)
7673 # This hack is so that the source file can tell whether it is being
7674 # built for inclusion in a dll (and should export symbols for example).
7675 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7676 # (--disable-auto-import) libraries
7677 lt_prog_compiler_pic='-DDLL_EXPORT'
7678 ;;
7679
7680 darwin* | rhapsody*)
7681 # PIC is the default on this platform
7682 # Common symbols not allowed in MH_DYLIB files
7683 lt_prog_compiler_pic='-fno-common'
7684 ;;
7685
7686 hpux*)
7687 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7688 # not for PA HP-UX.
7689 case $host_cpu in
7690 hppa*64*|ia64*)
7691 # +Z the default
7692 ;;
7693 *)
7694 lt_prog_compiler_pic='-fPIC'
7695 ;;
7696 esac
7697 ;;
7698
7699 interix[3-9]*)
7700 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7701 # Instead, we relocate shared libraries at runtime.
7702 ;;
7703
7704 msdosdjgpp*)
7705 # Just because we use GCC doesn't mean we suddenly get shared libraries
7706 # on systems that don't support them.
7707 lt_prog_compiler_can_build_shared=no
7708 enable_shared=no
7709 ;;
7710
7711 *nto* | *qnx*)
7712 # QNX uses GNU C++, but need to define -shared option too, otherwise
7713 # it will coredump.
7714 lt_prog_compiler_pic='-fPIC -shared'
7715 ;;
7716
7717 sysv4*MP*)
7718 if test -d /usr/nec; then
7719 lt_prog_compiler_pic=-Kconform_pic
7720 fi
7721 ;;
7722
7723 *)
7724 lt_prog_compiler_pic='-fPIC'
7725 ;;
7726 esac
7727 else
7728 # PORTME Check for flag to pass linker flags through the system compiler.
7729 case $host_os in
7730 aix*)
7731 lt_prog_compiler_wl='-Wl,'
7732 if test "$host_cpu" = ia64; then
7733 # AIX 5 now supports IA64 processor
7734 lt_prog_compiler_static='-Bstatic'
7735 else
7736 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7737 fi
7738 ;;
7739 darwin*)
7740 # PIC is the default on this platform
7741 # Common symbols not allowed in MH_DYLIB files
7742 case $cc_basename in
7743 xlc*)
7744 lt_prog_compiler_pic='-qnocommon'
7745 lt_prog_compiler_wl='-Wl,'
7746 ;;
7747 esac
7748 ;;
7749
7750 mingw* | cygwin* | pw32* | os2*)
7751 # This hack is so that the source file can tell whether it is being
7752 # built for inclusion in a dll (and should export symbols for example).
7753 lt_prog_compiler_pic='-DDLL_EXPORT'
7754 ;;
7755
7756 hpux9* | hpux10* | hpux11*)
7757 lt_prog_compiler_wl='-Wl,'
7758 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7759 # not for PA HP-UX.
7760 case $host_cpu in
7761 hppa*64*|ia64*)
7762 # +Z the default
7763 ;;
7764 *)
7765 lt_prog_compiler_pic='+Z'
7766 ;;
7767 esac
7768 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7769 lt_prog_compiler_static='${wl}-a ${wl}archive'
7770 ;;
7771
7772 irix5* | irix6* | nonstopux*)
7773 lt_prog_compiler_wl='-Wl,'
7774 # PIC (with -KPIC) is the default.
7775 lt_prog_compiler_static='-non_shared'
7776 ;;
7777
7778 linux* | k*bsd*-gnu)
7779 case $cc_basename in
7780 icc* | ecc*)
7781 lt_prog_compiler_wl='-Wl,'
7782 lt_prog_compiler_pic='-KPIC'
7783 lt_prog_compiler_static='-static'
7784 ;;
7785 pgcc* | pgf77* | pgf90* | pgf95*)
7786 # Portland Group compilers (*not* the Pentium gcc compiler,
7787 # which looks to be a dead project)
7788 lt_prog_compiler_wl='-Wl,'
7789 lt_prog_compiler_pic='-fpic'
7790 lt_prog_compiler_static='-Bstatic'
7791 ;;
7792 ccc*)
7793 lt_prog_compiler_wl='-Wl,'
7794 # All Alpha code is PIC.
7795 lt_prog_compiler_static='-non_shared'
7796 ;;
7797 *)
7798 case `$CC -V 2>&1 | sed 5q` in
7799 *Sun\ C*)
7800 # Sun C 5.9
7801 lt_prog_compiler_pic='-KPIC'
7802 lt_prog_compiler_static='-Bstatic'
7803 lt_prog_compiler_wl='-Wl,'
7804 ;;
7805 *Sun\ F*)
7806 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7807 lt_prog_compiler_pic='-KPIC'
7808 lt_prog_compiler_static='-Bstatic'
7809 lt_prog_compiler_wl=''
7810 ;;
7811 esac
7812 ;;
7813 esac
7814 ;;
7815
7816 newsos6)
7817 lt_prog_compiler_pic='-KPIC'
7818 lt_prog_compiler_static='-Bstatic'
7819 ;;
7820
7821 *nto* | *qnx*)
7822 # QNX uses GNU C++, but need to define -shared option too, otherwise
7823 # it will coredump.
7824 lt_prog_compiler_pic='-fPIC -shared'
7825 ;;
7826
7827 osf3* | osf4* | osf5*)
7828 lt_prog_compiler_wl='-Wl,'
7829 # All OSF/1 code is PIC.
7830 lt_prog_compiler_static='-non_shared'
7831 ;;
7832
7833 rdos*)
7834 lt_prog_compiler_static='-non_shared'
7835 ;;
7836
7837 solaris*)
7838 lt_prog_compiler_pic='-KPIC'
7839 lt_prog_compiler_static='-Bstatic'
7840 case $cc_basename in
7841 f77* | f90* | f95*)
7842 lt_prog_compiler_wl='-Qoption ld ';;
7843 *)
7844 lt_prog_compiler_wl='-Wl,';;
7845 esac
7846 ;;
7847
7848 sunos4*)
7849 lt_prog_compiler_wl='-Qoption ld '
7850 lt_prog_compiler_pic='-PIC'
7851 lt_prog_compiler_static='-Bstatic'
7852 ;;
7853
7854 sysv4 | sysv4.2uw2* | sysv4.3*)
7855 lt_prog_compiler_wl='-Wl,'
7856 lt_prog_compiler_pic='-KPIC'
7857 lt_prog_compiler_static='-Bstatic'
7858 ;;
7859
7860 sysv4*MP*)
7861 if test -d /usr/nec ;then
7862 lt_prog_compiler_pic='-Kconform_pic'
7863 lt_prog_compiler_static='-Bstatic'
7864 fi
7865 ;;
7866
7867 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7868 lt_prog_compiler_wl='-Wl,'
7869 lt_prog_compiler_pic='-KPIC'
7870 lt_prog_compiler_static='-Bstatic'
7871 ;;
7872
7873 unicos*)
7874 lt_prog_compiler_wl='-Wl,'
7875 lt_prog_compiler_can_build_shared=no
7876 ;;
7877
7878 uts4*)
7879 lt_prog_compiler_pic='-pic'
7880 lt_prog_compiler_static='-Bstatic'
7881 ;;
7882
7883 *)
7884 lt_prog_compiler_can_build_shared=no
7885 ;;
7886 esac
7887 fi
7888
7889 case $host_os in
7890 # For platforms which do not support PIC, -DPIC is meaningless:
7891 *djgpp*)
7892 lt_prog_compiler_pic=
7893 ;;
7894 *)
7895 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7896 ;;
7897 esac
7898 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7899 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7900
7901
7902
7903
7904
7905
7906 #
7907 # Check to make sure the PIC flag actually works.
7908 #
7909 if test -n "$lt_prog_compiler_pic"; then
7910 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7911 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7912 if test "${lt_prog_compiler_pic_works+set}" = set; then
7913 echo $ECHO_N "(cached) $ECHO_C" >&6
7914 else
7915 lt_prog_compiler_pic_works=no
7916 ac_outfile=conftest.$ac_objext
7917 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7918 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7919 # Insert the option either (1) after the last *FLAGS variable, or
7920 # (2) before a word containing "conftest.", or (3) at the end.
7921 # Note that $ac_compile itself does not contain backslashes and begins
7922 # with a dollar sign (not a hyphen), so the echo should work correctly.
7923 # The option is referenced via a variable to avoid confusing sed.
7924 lt_compile=`echo "$ac_compile" | $SED \
7925 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7926 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7927 -e 's:$: $lt_compiler_flag:'`
7928 (eval echo "\"\$as_me:7928: $lt_compile\"" >&5)
7929 (eval "$lt_compile" 2>conftest.err)
7930 ac_status=$?
7931 cat conftest.err >&5
7932 echo "$as_me:7932: \$? = $ac_status" >&5
7933 if (exit $ac_status) && test -s "$ac_outfile"; then
7934 # The compiler can only warn and ignore the option if not recognized
7935 # So say no if there are warnings other than the usual output.
7936 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7937 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7938 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7939 lt_prog_compiler_pic_works=yes
7940 fi
7941 fi
7942 $RM conftest*
7943
7944 fi
7945 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7946 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7947
7948 if test x"$lt_prog_compiler_pic_works" = xyes; then
7949 case $lt_prog_compiler_pic in
7950 "" | " "*) ;;
7951 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7952 esac
7953 else
7954 lt_prog_compiler_pic=
7955 lt_prog_compiler_can_build_shared=no
7956 fi
7957
7958 fi
7959
7960
7961
7962
7963
7964
7965 #
7966 # Check to make sure the static flag actually works.
7967 #
7968 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7969 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7970 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7971 if test "${lt_prog_compiler_static_works+set}" = set; then
7972 echo $ECHO_N "(cached) $ECHO_C" >&6
7973 else
7974 lt_prog_compiler_static_works=no
7975 save_LDFLAGS="$LDFLAGS"
7976 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7977 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7978 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7979 # The linker can only warn and ignore the option if not recognized
7980 # So say no if there are warnings
7981 if test -s conftest.err; then
7982 # Append any errors to the config.log.
7983 cat conftest.err 1>&5
7984 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7985 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7986 if diff conftest.exp conftest.er2 >/dev/null; then
7987 lt_prog_compiler_static_works=yes
7988 fi
7989 else
7990 lt_prog_compiler_static_works=yes
7991 fi
7992 fi
7993 $RM conftest*
7994 LDFLAGS="$save_LDFLAGS"
7995
7996 fi
7997 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7998 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7999
8000 if test x"$lt_prog_compiler_static_works" = xyes; then
8001 :
8002 else
8003 lt_prog_compiler_static=
8004 fi
8005
8006
8007
8008
8009
8010
8011
8012 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8013 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8014 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8015 echo $ECHO_N "(cached) $ECHO_C" >&6
8016 else
8017 lt_cv_prog_compiler_c_o=no
8018 $RM -r conftest 2>/dev/null
8019 mkdir conftest
8020 cd conftest
8021 mkdir out
8022 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8023
8024 lt_compiler_flag="-o out/conftest2.$ac_objext"
8025 # Insert the option either (1) after the last *FLAGS variable, or
8026 # (2) before a word containing "conftest.", or (3) at the end.
8027 # Note that $ac_compile itself does not contain backslashes and begins
8028 # with a dollar sign (not a hyphen), so the echo should work correctly.
8029 lt_compile=`echo "$ac_compile" | $SED \
8030 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8031 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8032 -e 's:$: $lt_compiler_flag:'`
8033 (eval echo "\"\$as_me:8033: $lt_compile\"" >&5)
8034 (eval "$lt_compile" 2>out/conftest.err)
8035 ac_status=$?
8036 cat out/conftest.err >&5
8037 echo "$as_me:8037: \$? = $ac_status" >&5
8038 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8039 then
8040 # The compiler can only warn and ignore the option if not recognized
8041 # So say no if there are warnings
8042 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8043 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8044 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8045 lt_cv_prog_compiler_c_o=yes
8046 fi
8047 fi
8048 chmod u+w . 2>&5
8049 $RM conftest*
8050 # SGI C++ compiler will create directory out/ii_files/ for
8051 # template instantiation
8052 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8053 $RM out/* && rmdir out
8054 cd ..
8055 $RM -r conftest
8056 $RM conftest*
8057
8058 fi
8059 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8060 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8061
8062
8063
8064
8065
8066
8067 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8068 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8069 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8070 echo $ECHO_N "(cached) $ECHO_C" >&6
8071 else
8072 lt_cv_prog_compiler_c_o=no
8073 $RM -r conftest 2>/dev/null
8074 mkdir conftest
8075 cd conftest
8076 mkdir out
8077 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8078
8079 lt_compiler_flag="-o out/conftest2.$ac_objext"
8080 # Insert the option either (1) after the last *FLAGS variable, or
8081 # (2) before a word containing "conftest.", or (3) at the end.
8082 # Note that $ac_compile itself does not contain backslashes and begins
8083 # with a dollar sign (not a hyphen), so the echo should work correctly.
8084 lt_compile=`echo "$ac_compile" | $SED \
8085 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8086 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8087 -e 's:$: $lt_compiler_flag:'`
8088 (eval echo "\"\$as_me:8088: $lt_compile\"" >&5)
8089 (eval "$lt_compile" 2>out/conftest.err)
8090 ac_status=$?
8091 cat out/conftest.err >&5
8092 echo "$as_me:8092: \$? = $ac_status" >&5
8093 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8094 then
8095 # The compiler can only warn and ignore the option if not recognized
8096 # So say no if there are warnings
8097 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8098 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8099 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8100 lt_cv_prog_compiler_c_o=yes
8101 fi
8102 fi
8103 chmod u+w . 2>&5
8104 $RM conftest*
8105 # SGI C++ compiler will create directory out/ii_files/ for
8106 # template instantiation
8107 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8108 $RM out/* && rmdir out
8109 cd ..
8110 $RM -r conftest
8111 $RM conftest*
8112
8113 fi
8114 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8115 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8116
8117
8118
8119
8120 hard_links="nottested"
8121 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8122 # do not overwrite the value of need_locks provided by the user
8123 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8124 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8125 hard_links=yes
8126 $RM conftest*
8127 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8128 touch conftest.a
8129 ln conftest.a conftest.b 2>&5 || hard_links=no
8130 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8131 echo "$as_me:$LINENO: result: $hard_links" >&5
8132 echo "${ECHO_T}$hard_links" >&6
8133 if test "$hard_links" = no; then
8134 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8135 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8136 need_locks=warn
8137 fi
8138 else
8139 need_locks=no
8140 fi
8141
8142
8143
8144
8145
8146
8147 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8148 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8149
8150 runpath_var=
8151 allow_undefined_flag=
8152 always_export_symbols=no
8153 archive_cmds=
8154 archive_expsym_cmds=
8155 compiler_needs_object=no
8156 enable_shared_with_static_runtimes=no
8157 export_dynamic_flag_spec=
8158 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8159 hardcode_automatic=no
8160 hardcode_direct=no
8161 hardcode_direct_absolute=no
8162 hardcode_libdir_flag_spec=
8163 hardcode_libdir_flag_spec_ld=
8164 hardcode_libdir_separator=
8165 hardcode_minus_L=no
8166 hardcode_shlibpath_var=unsupported
8167 inherit_rpath=no
8168 link_all_deplibs=unknown
8169 module_cmds=
8170 module_expsym_cmds=
8171 old_archive_from_new_cmds=
8172 old_archive_from_expsyms_cmds=
8173 thread_safe_flag_spec=
8174 whole_archive_flag_spec=
8175 # include_expsyms should be a list of space-separated symbols to be *always*
8176 # included in the symbol list
8177 include_expsyms=
8178 # exclude_expsyms can be an extended regexp of symbols to exclude
8179 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8180 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8181 # as well as any symbol that contains `d'.
8182 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8183 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8184 # platforms (ab)use it in PIC code, but their linkers get confused if
8185 # the symbol is explicitly referenced. Since portable code cannot
8186 # rely on this symbol name, it's probably fine to never include it in
8187 # preloaded symbol tables.
8188 extract_expsyms_cmds=
8189
8190 case $host_os in
8191 cygwin* | mingw* | pw32*)
8192 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8193 # When not using gcc, we currently assume that we are using
8194 # Microsoft Visual C++.
8195 if test "$GCC" != yes; then
8196 with_gnu_ld=no
8197 fi
8198 ;;
8199 interix*)
8200 # we just hope/assume this is gcc and not c89 (= MSVC++)
8201 with_gnu_ld=yes
8202 ;;
8203 openbsd*)
8204 with_gnu_ld=no
8205 ;;
8206 esac
8207
8208 ld_shlibs=yes
8209 if test "$with_gnu_ld" = yes; then
8210 # If archive_cmds runs LD, not CC, wlarc should be empty
8211 wlarc='${wl}'
8212
8213 # Set some defaults for GNU ld with shared library support. These
8214 # are reset later if shared libraries are not supported. Putting them
8215 # here allows them to be overridden if necessary.
8216 runpath_var=LD_RUN_PATH
8217 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8218 export_dynamic_flag_spec='${wl}--export-dynamic'
8219 # ancient GNU ld didn't support --whole-archive et. al.
8220 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8221 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8222 else
8223 whole_archive_flag_spec=
8224 fi
8225 supports_anon_versioning=no
8226 case `$LD -v 2>&1` in
8227 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8228 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8229 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8230 *\ 2.11.*) ;; # other 2.11 versions
8231 *) supports_anon_versioning=yes ;;
8232 esac
8233
8234 # See if GNU ld supports shared libraries.
8235 case $host_os in
8236 aix[3-9]*)
8237 # On AIX/PPC, the GNU linker is very broken
8238 if test "$host_cpu" != ia64; then
8239 ld_shlibs=no
8240 cat <<_LT_EOF 1>&2
8241
8242 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8243 *** to be unable to reliably create shared libraries on AIX.
8244 *** Therefore, libtool is disabling shared libraries support. If you
8245 *** really care for shared libraries, you may want to modify your PATH
8246 *** so that a non-GNU linker is found, and then restart.
8247
8248 _LT_EOF
8249 fi
8250 ;;
8251
8252 amigaos*)
8253 if test "$host_cpu" = m68k; then
8254 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)'
8255 hardcode_libdir_flag_spec='-L$libdir'
8256 hardcode_minus_L=yes
8257 fi
8258
8259 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8260 # that the semantics of dynamic libraries on AmigaOS, at least up
8261 # to version 4, is to share data among multiple programs linked
8262 # with the same dynamic library. Since this doesn't match the
8263 # behavior of shared libraries on other platforms, we can't use
8264 # them.
8265 ld_shlibs=no
8266 ;;
8267
8268 beos*)
8269 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8270 allow_undefined_flag=unsupported
8271 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8272 # support --undefined. This deserves some investigation. FIXME
8273 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8274 else
8275 ld_shlibs=no
8276 fi
8277 ;;
8278
8279 cygwin* | mingw* | pw32*)
8280 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8281 # as there is no search path for DLLs.
8282 hardcode_libdir_flag_spec='-L$libdir'
8283 allow_undefined_flag=unsupported
8284 always_export_symbols=no
8285 enable_shared_with_static_runtimes=yes
8286 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8287
8288 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8289 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8290 # If the export-symbols file already is a .def file (1st line
8291 # is EXPORTS), use it as is; otherwise, prepend...
8292 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8293 cp $export_symbols $output_objdir/$soname.def;
8294 else
8295 echo EXPORTS > $output_objdir/$soname.def;
8296 cat $export_symbols >> $output_objdir/$soname.def;
8297 fi~
8298 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8299 else
8300 ld_shlibs=no
8301 fi
8302 ;;
8303
8304 interix[3-9]*)
8305 hardcode_direct=no
8306 hardcode_shlibpath_var=no
8307 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8308 export_dynamic_flag_spec='${wl}-E'
8309 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8310 # Instead, shared libraries are loaded at an image base (0x10000000 by
8311 # default) and relocated if they conflict, which is a slow very memory
8312 # consuming and fragmenting process. To avoid this, we pick a random,
8313 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8314 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8315 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8316 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'
8317 ;;
8318
8319 gnu* | linux* | tpf* | k*bsd*-gnu)
8320 tmp_diet=no
8321 if test "$host_os" = linux-dietlibc; then
8322 case $cc_basename in
8323 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8324 esac
8325 fi
8326 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8327 && test "$tmp_diet" = no
8328 then
8329 tmp_addflag=
8330 case $cc_basename,$host_cpu in
8331 pgcc*) # Portland Group C compiler
8332 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'
8333 tmp_addflag=' $pic_flag'
8334 ;;
8335 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8336 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'
8337 tmp_addflag=' $pic_flag -Mnomain' ;;
8338 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8339 tmp_addflag=' -i_dynamic' ;;
8340 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8341 tmp_addflag=' -i_dynamic -nofor_main' ;;
8342 ifc* | ifort*) # Intel Fortran compiler
8343 tmp_addflag=' -nofor_main' ;;
8344 esac
8345 case `$CC -V 2>&1 | sed 5q` in
8346 *Sun\ C*) # Sun C 5.9
8347 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'
8348 compiler_needs_object=yes
8349 tmp_sharedflag='-G' ;;
8350 *Sun\ F*) # Sun Fortran 8.3
8351 tmp_sharedflag='-G' ;;
8352 *)
8353 tmp_sharedflag='-shared' ;;
8354 esac
8355 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8356
8357 if test "x$supports_anon_versioning" = xyes; then
8358 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8359 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8360 echo "local: *; };" >> $output_objdir/$libname.ver~
8361 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8362 fi
8363 else
8364 ld_shlibs=no
8365 fi
8366 ;;
8367
8368 netbsd*)
8369 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8370 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8371 wlarc=
8372 else
8373 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8374 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8375 fi
8376 ;;
8377
8378 solaris*)
8379 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8380 ld_shlibs=no
8381 cat <<_LT_EOF 1>&2
8382
8383 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8384 *** create shared libraries on Solaris systems. Therefore, libtool
8385 *** is disabling shared libraries support. We urge you to upgrade GNU
8386 *** binutils to release 2.9.1 or newer. Another option is to modify
8387 *** your PATH or compiler configuration so that the native linker is
8388 *** used, and then restart.
8389
8390 _LT_EOF
8391 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8392 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8393 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8394 else
8395 ld_shlibs=no
8396 fi
8397 ;;
8398
8399 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8400 case `$LD -v 2>&1` in
8401 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8402 ld_shlibs=no
8403 cat <<_LT_EOF 1>&2
8404
8405 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8406 *** reliably create shared libraries on SCO systems. Therefore, libtool
8407 *** is disabling shared libraries support. We urge you to upgrade GNU
8408 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8409 *** your PATH or compiler configuration so that the native linker is
8410 *** used, and then restart.
8411
8412 _LT_EOF
8413 ;;
8414 *)
8415 # For security reasons, it is highly recommended that you always
8416 # use absolute paths for naming shared libraries, and exclude the
8417 # DT_RUNPATH tag from executables and libraries. But doing so
8418 # requires that you compile everything twice, which is a pain.
8419 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8420 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8421 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8422 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8423 else
8424 ld_shlibs=no
8425 fi
8426 ;;
8427 esac
8428 ;;
8429
8430 sunos4*)
8431 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8432 wlarc=
8433 hardcode_direct=yes
8434 hardcode_shlibpath_var=no
8435 ;;
8436
8437 *)
8438 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8439 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8440 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8441 else
8442 ld_shlibs=no
8443 fi
8444 ;;
8445 esac
8446
8447 if test "$ld_shlibs" = no; then
8448 runpath_var=
8449 hardcode_libdir_flag_spec=
8450 export_dynamic_flag_spec=
8451 whole_archive_flag_spec=
8452 fi
8453 else
8454 # PORTME fill in a description of your system's linker (not GNU ld)
8455 case $host_os in
8456 aix3*)
8457 allow_undefined_flag=unsupported
8458 always_export_symbols=yes
8459 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'
8460 # Note: this linker hardcodes the directories in LIBPATH if there
8461 # are no directories specified by -L.
8462 hardcode_minus_L=yes
8463 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8464 # Neither direct hardcoding nor static linking is supported with a
8465 # broken collect2.
8466 hardcode_direct=unsupported
8467 fi
8468 ;;
8469
8470 aix[4-9]*)
8471 if test "$host_cpu" = ia64; then
8472 # On IA64, the linker does run time linking by default, so we don't
8473 # have to do anything special.
8474 aix_use_runtimelinking=no
8475 exp_sym_flag='-Bexport'
8476 no_entry_flag=""
8477 else
8478 # If we're using GNU nm, then we don't want the "-C" option.
8479 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8480 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8481 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'
8482 else
8483 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'
8484 fi
8485 aix_use_runtimelinking=no
8486
8487 # Test if we are trying to use run time linking or normal
8488 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8489 # need to do runtime linking.
8490 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8491 for ld_flag in $LDFLAGS; do
8492 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8493 aix_use_runtimelinking=yes
8494 break
8495 fi
8496 done
8497 ;;
8498 esac
8499
8500 exp_sym_flag='-bexport'
8501 no_entry_flag='-bnoentry'
8502 fi
8503
8504 # When large executables or shared objects are built, AIX ld can
8505 # have problems creating the table of contents. If linking a library
8506 # or program results in "error TOC overflow" add -mminimal-toc to
8507 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8508 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8509
8510 archive_cmds=''
8511 hardcode_direct=yes
8512 hardcode_direct_absolute=yes
8513 hardcode_libdir_separator=':'
8514 link_all_deplibs=yes
8515 file_list_spec='${wl}-f,'
8516
8517 if test "$GCC" = yes; then
8518 case $host_os in aix4.[012]|aix4.[012].*)
8519 # We only want to do this on AIX 4.2 and lower, the check
8520 # below for broken collect2 doesn't work under 4.3+
8521 collect2name=`${CC} -print-prog-name=collect2`
8522 if test -f "$collect2name" &&
8523 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8524 then
8525 # We have reworked collect2
8526 :
8527 else
8528 # We have old collect2
8529 hardcode_direct=unsupported
8530 # It fails to find uninstalled libraries when the uninstalled
8531 # path is not listed in the libpath. Setting hardcode_minus_L
8532 # to unsupported forces relinking
8533 hardcode_minus_L=yes
8534 hardcode_libdir_flag_spec='-L$libdir'
8535 hardcode_libdir_separator=
8536 fi
8537 ;;
8538 esac
8539 shared_flag='-shared'
8540 if test "$aix_use_runtimelinking" = yes; then
8541 shared_flag="$shared_flag "'${wl}-G'
8542 fi
8543 else
8544 # not using gcc
8545 if test "$host_cpu" = ia64; then
8546 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8547 # chokes on -Wl,-G. The following line is correct:
8548 shared_flag='-G'
8549 else
8550 if test "$aix_use_runtimelinking" = yes; then
8551 shared_flag='${wl}-G'
8552 else
8553 shared_flag='${wl}-bM:SRE'
8554 fi
8555 fi
8556 fi
8557
8558 # It seems that -bexpall does not export symbols beginning with
8559 # underscore (_), so it is better to generate a list of symbols to export.
8560 always_export_symbols=yes
8561 if test "$aix_use_runtimelinking" = yes; then
8562 # Warning - without using the other runtime loading flags (-brtl),
8563 # -berok will link without error, but may produce a broken library.
8564 allow_undefined_flag='-berok'
8565 # Determine the default libpath from the value encoded in an
8566 # empty executable.
8567 if test x$gcc_no_link = xyes; then
8568 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8569 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8570 { (exit 1); exit 1; }; }
8571 fi
8572 cat >conftest.$ac_ext <<_ACEOF
8573 /* confdefs.h. */
8574 _ACEOF
8575 cat confdefs.h >>conftest.$ac_ext
8576 cat >>conftest.$ac_ext <<_ACEOF
8577 /* end confdefs.h. */
8578
8579 int
8580 main ()
8581 {
8582
8583 ;
8584 return 0;
8585 }
8586 _ACEOF
8587 rm -f conftest.$ac_objext conftest$ac_exeext
8588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8589 (eval $ac_link) 2>conftest.er1
8590 ac_status=$?
8591 grep -v '^ *+' conftest.er1 >conftest.err
8592 rm -f conftest.er1
8593 cat conftest.err >&5
8594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8595 (exit $ac_status); } &&
8596 { ac_try='test -z "$ac_c_werror_flag"
8597 || test ! -s conftest.err'
8598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8599 (eval $ac_try) 2>&5
8600 ac_status=$?
8601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602 (exit $ac_status); }; } &&
8603 { ac_try='test -s conftest$ac_exeext'
8604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8605 (eval $ac_try) 2>&5
8606 ac_status=$?
8607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608 (exit $ac_status); }; }; then
8609
8610 lt_aix_libpath_sed='
8611 /Import File Strings/,/^$/ {
8612 /^0/ {
8613 s/^0 *\(.*\)$/\1/
8614 p
8615 }
8616 }'
8617 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8618 # Check for a 64-bit object if we didn't find anything.
8619 if test -z "$aix_libpath"; then
8620 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8621 fi
8622 else
8623 echo "$as_me: failed program was:" >&5
8624 sed 's/^/| /' conftest.$ac_ext >&5
8625
8626 fi
8627 rm -f conftest.err conftest.$ac_objext \
8628 conftest$ac_exeext conftest.$ac_ext
8629 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8630
8631 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8632 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"
8633 else
8634 if test "$host_cpu" = ia64; then
8635 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8636 allow_undefined_flag="-z nodefs"
8637 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"
8638 else
8639 # Determine the default libpath from the value encoded in an
8640 # empty executable.
8641 if test x$gcc_no_link = xyes; then
8642 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8643 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8644 { (exit 1); exit 1; }; }
8645 fi
8646 cat >conftest.$ac_ext <<_ACEOF
8647 /* confdefs.h. */
8648 _ACEOF
8649 cat confdefs.h >>conftest.$ac_ext
8650 cat >>conftest.$ac_ext <<_ACEOF
8651 /* end confdefs.h. */
8652
8653 int
8654 main ()
8655 {
8656
8657 ;
8658 return 0;
8659 }
8660 _ACEOF
8661 rm -f conftest.$ac_objext conftest$ac_exeext
8662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8663 (eval $ac_link) 2>conftest.er1
8664 ac_status=$?
8665 grep -v '^ *+' conftest.er1 >conftest.err
8666 rm -f conftest.er1
8667 cat conftest.err >&5
8668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669 (exit $ac_status); } &&
8670 { ac_try='test -z "$ac_c_werror_flag"
8671 || test ! -s conftest.err'
8672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8673 (eval $ac_try) 2>&5
8674 ac_status=$?
8675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676 (exit $ac_status); }; } &&
8677 { ac_try='test -s conftest$ac_exeext'
8678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8679 (eval $ac_try) 2>&5
8680 ac_status=$?
8681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682 (exit $ac_status); }; }; then
8683
8684 lt_aix_libpath_sed='
8685 /Import File Strings/,/^$/ {
8686 /^0/ {
8687 s/^0 *\(.*\)$/\1/
8688 p
8689 }
8690 }'
8691 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8692 # Check for a 64-bit object if we didn't find anything.
8693 if test -z "$aix_libpath"; then
8694 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8695 fi
8696 else
8697 echo "$as_me: failed program was:" >&5
8698 sed 's/^/| /' conftest.$ac_ext >&5
8699
8700 fi
8701 rm -f conftest.err conftest.$ac_objext \
8702 conftest$ac_exeext conftest.$ac_ext
8703 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8704
8705 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8706 # Warning - without using the other run time loading flags,
8707 # -berok will link without error, but may produce a broken library.
8708 no_undefined_flag=' ${wl}-bernotok'
8709 allow_undefined_flag=' ${wl}-berok'
8710 # Exported symbols can be pulled into shared objects from archives
8711 whole_archive_flag_spec='$convenience'
8712 archive_cmds_need_lc=yes
8713 # This is similar to how AIX traditionally builds its shared libraries.
8714 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'
8715 fi
8716 fi
8717 ;;
8718
8719 amigaos*)
8720 if test "$host_cpu" = m68k; then
8721 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)'
8722 hardcode_libdir_flag_spec='-L$libdir'
8723 hardcode_minus_L=yes
8724 fi
8725 # see comment about different semantics on the GNU ld section
8726 ld_shlibs=no
8727 ;;
8728
8729 bsdi[45]*)
8730 export_dynamic_flag_spec=-rdynamic
8731 ;;
8732
8733 cygwin* | mingw* | pw32*)
8734 # When not using gcc, we currently assume that we are using
8735 # Microsoft Visual C++.
8736 # hardcode_libdir_flag_spec is actually meaningless, as there is
8737 # no search path for DLLs.
8738 hardcode_libdir_flag_spec=' '
8739 allow_undefined_flag=unsupported
8740 # Tell ltmain to make .lib files, not .a files.
8741 libext=lib
8742 # Tell ltmain to make .dll files, not .so files.
8743 shrext_cmds=".dll"
8744 # FIXME: Setting linknames here is a bad hack.
8745 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8746 # The linker will automatically build a .lib file if we build a DLL.
8747 old_archive_from_new_cmds='true'
8748 # FIXME: Should let the user specify the lib program.
8749 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8750 fix_srcfile_path='`cygpath -w "$srcfile"`'
8751 enable_shared_with_static_runtimes=yes
8752 ;;
8753
8754 darwin* | rhapsody*)
8755 case $host_os in
8756 rhapsody* | darwin1.[012])
8757 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8758 ;;
8759 *) # Darwin 1.3 on
8760 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
8761 10.[012])
8762 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8763 ;;
8764 10.*)
8765 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8766 ;;
8767 esac
8768 ;;
8769 esac
8770 archive_cmds_need_lc=no
8771 hardcode_direct=no
8772 hardcode_automatic=yes
8773 hardcode_shlibpath_var=unsupported
8774 whole_archive_flag_spec=''
8775 link_all_deplibs=yes
8776 if test "$GCC" = yes ; then
8777 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8778 echo $ECHO_N "(cached) $ECHO_C" >&6
8779 else
8780 lt_cv_apple_cc_single_mod=no
8781 if test -z "${LT_MULTI_MODULE}"; then
8782 # By default we will add the -single_module flag. You can override
8783 # by either setting the environment variable LT_MULTI_MODULE
8784 # non-empty at configure time, or by adding -multi-module to the
8785 # link flags.
8786 echo "int foo(void){return 1;}" > conftest.c
8787 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8788 -dynamiclib ${wl}-single_module conftest.c
8789 if test -f libconftest.dylib; then
8790 lt_cv_apple_cc_single_mod=yes
8791 rm libconftest.dylib
8792 fi
8793 rm conftest.$ac_ext
8794 fi
8795 fi
8796
8797 output_verbose_link_cmd=echo
8798 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
8799 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8800 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8801 else
8802 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8803 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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8804 fi
8805 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8806 module_expsym_cmds='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8807 else
8808 case $cc_basename in
8809 xlc*)
8810 output_verbose_link_cmd=echo
8811 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
8812 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8813 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8814 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8815 module_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8816 ;;
8817 *)
8818 ld_shlibs=no
8819 ;;
8820 esac
8821 fi
8822 ;;
8823
8824 dgux*)
8825 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8826 hardcode_libdir_flag_spec='-L$libdir'
8827 hardcode_shlibpath_var=no
8828 ;;
8829
8830 freebsd1*)
8831 ld_shlibs=no
8832 ;;
8833
8834 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8835 # support. Future versions do this automatically, but an explicit c++rt0.o
8836 # does not break anything, and helps significantly (at the cost of a little
8837 # extra space).
8838 freebsd2.2*)
8839 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8840 hardcode_libdir_flag_spec='-R$libdir'
8841 hardcode_direct=yes
8842 hardcode_shlibpath_var=no
8843 ;;
8844
8845 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8846 freebsd2*)
8847 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8848 hardcode_direct=yes
8849 hardcode_minus_L=yes
8850 hardcode_shlibpath_var=no
8851 ;;
8852
8853 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8854 freebsd* | dragonfly*)
8855 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8856 hardcode_libdir_flag_spec='-R$libdir'
8857 hardcode_direct=yes
8858 hardcode_shlibpath_var=no
8859 ;;
8860
8861 hpux9*)
8862 if test "$GCC" = yes; then
8863 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'
8864 else
8865 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'
8866 fi
8867 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8868 hardcode_libdir_separator=:
8869 hardcode_direct=yes
8870
8871 # hardcode_minus_L: Not really in the search PATH,
8872 # but as the default location of the library.
8873 hardcode_minus_L=yes
8874 export_dynamic_flag_spec='${wl}-E'
8875 ;;
8876
8877 hpux10*)
8878 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8879 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8880 else
8881 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8882 fi
8883 if test "$with_gnu_ld" = no; then
8884 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8885 hardcode_libdir_flag_spec_ld='+b $libdir'
8886 hardcode_libdir_separator=:
8887 hardcode_direct=yes
8888 hardcode_direct_absolute=yes
8889 export_dynamic_flag_spec='${wl}-E'
8890 # hardcode_minus_L: Not really in the search PATH,
8891 # but as the default location of the library.
8892 hardcode_minus_L=yes
8893 fi
8894 ;;
8895
8896 hpux11*)
8897 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8898 case $host_cpu in
8899 hppa*64*)
8900 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8901 ;;
8902 ia64*)
8903 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8904 ;;
8905 *)
8906 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8907 ;;
8908 esac
8909 else
8910 case $host_cpu in
8911 hppa*64*)
8912 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8913 ;;
8914 ia64*)
8915 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8916 ;;
8917 *)
8918 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8919 ;;
8920 esac
8921 fi
8922 if test "$with_gnu_ld" = no; then
8923 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8924 hardcode_libdir_separator=:
8925
8926 case $host_cpu in
8927 hppa*64*|ia64*)
8928 hardcode_direct=no
8929 hardcode_shlibpath_var=no
8930 ;;
8931 *)
8932 hardcode_direct=yes
8933 hardcode_direct_absolute=yes
8934 export_dynamic_flag_spec='${wl}-E'
8935
8936 # hardcode_minus_L: Not really in the search PATH,
8937 # but as the default location of the library.
8938 hardcode_minus_L=yes
8939 ;;
8940 esac
8941 fi
8942 ;;
8943
8944 irix5* | irix6* | nonstopux*)
8945 if test "$GCC" = yes; then
8946 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'
8947 # Try to use the -exported_symbol ld option, if it does not
8948 # work, assume that -exports_file does not work either and
8949 # implicitly export all symbols.
8950 save_LDFLAGS="$LDFLAGS"
8951 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8952 if test x$gcc_no_link = xyes; then
8953 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8954 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8955 { (exit 1); exit 1; }; }
8956 fi
8957 cat >conftest.$ac_ext <<_ACEOF
8958 int foo(void) {}
8959 _ACEOF
8960 rm -f conftest.$ac_objext conftest$ac_exeext
8961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8962 (eval $ac_link) 2>conftest.er1
8963 ac_status=$?
8964 grep -v '^ *+' conftest.er1 >conftest.err
8965 rm -f conftest.er1
8966 cat conftest.err >&5
8967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968 (exit $ac_status); } &&
8969 { ac_try='test -z "$ac_c_werror_flag"
8970 || test ! -s conftest.err'
8971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8972 (eval $ac_try) 2>&5
8973 ac_status=$?
8974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975 (exit $ac_status); }; } &&
8976 { ac_try='test -s conftest$ac_exeext'
8977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8978 (eval $ac_try) 2>&5
8979 ac_status=$?
8980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981 (exit $ac_status); }; }; then
8982 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'
8983
8984 else
8985 echo "$as_me: failed program was:" >&5
8986 sed 's/^/| /' conftest.$ac_ext >&5
8987
8988 fi
8989 rm -f conftest.err conftest.$ac_objext \
8990 conftest$ac_exeext conftest.$ac_ext
8991 LDFLAGS="$save_LDFLAGS"
8992 else
8993 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'
8994 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'
8995 fi
8996 archive_cmds_need_lc='no'
8997 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8998 hardcode_libdir_separator=:
8999 inherit_rpath=yes
9000 link_all_deplibs=yes
9001 ;;
9002
9003 netbsd*)
9004 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9005 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9006 else
9007 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9008 fi
9009 hardcode_libdir_flag_spec='-R$libdir'
9010 hardcode_direct=yes
9011 hardcode_shlibpath_var=no
9012 ;;
9013
9014 newsos6)
9015 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9016 hardcode_direct=yes
9017 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9018 hardcode_libdir_separator=:
9019 hardcode_shlibpath_var=no
9020 ;;
9021
9022 *nto* | *qnx*)
9023 ;;
9024
9025 openbsd*)
9026 hardcode_direct=yes
9027 hardcode_shlibpath_var=no
9028 hardcode_direct_absolute=yes
9029 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9030 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9031 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9032 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9033 export_dynamic_flag_spec='${wl}-E'
9034 else
9035 case $host_os in
9036 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9037 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9038 hardcode_libdir_flag_spec='-R$libdir'
9039 ;;
9040 *)
9041 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9042 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9043 ;;
9044 esac
9045 fi
9046 ;;
9047
9048 os2*)
9049 hardcode_libdir_flag_spec='-L$libdir'
9050 hardcode_minus_L=yes
9051 allow_undefined_flag=unsupported
9052 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'
9053 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9054 ;;
9055
9056 osf3*)
9057 if test "$GCC" = yes; then
9058 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9059 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'
9060 else
9061 allow_undefined_flag=' -expect_unresolved \*'
9062 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'
9063 fi
9064 archive_cmds_need_lc='no'
9065 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9066 hardcode_libdir_separator=:
9067 ;;
9068
9069 osf4* | osf5*) # as osf3* with the addition of -msym flag
9070 if test "$GCC" = yes; then
9071 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9072 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'
9073 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9074 else
9075 allow_undefined_flag=' -expect_unresolved \*'
9076 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'
9077 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~
9078 $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'
9079
9080 # Both c and cxx compiler support -rpath directly
9081 hardcode_libdir_flag_spec='-rpath $libdir'
9082 fi
9083 archive_cmds_need_lc='no'
9084 hardcode_libdir_separator=:
9085 ;;
9086
9087 solaris*)
9088 no_undefined_flag=' -z defs'
9089 if test "$GCC" = yes; then
9090 wlarc='${wl}'
9091 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9092 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9093 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9094 else
9095 case `$CC -V 2>&1` in
9096 *"Compilers 5.0"*)
9097 wlarc=''
9098 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9099 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9100 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9101 ;;
9102 *)
9103 wlarc='${wl}'
9104 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9105 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9106 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9107 ;;
9108 esac
9109 fi
9110 hardcode_libdir_flag_spec='-R$libdir'
9111 hardcode_shlibpath_var=no
9112 case $host_os in
9113 solaris2.[0-5] | solaris2.[0-5].*) ;;
9114 *)
9115 # The compiler driver will combine and reorder linker options,
9116 # but understands `-z linker_flag'. GCC discards it without `$wl',
9117 # but is careful enough not to reorder.
9118 # Supported since Solaris 2.6 (maybe 2.5.1?)
9119 if test "$GCC" = yes; then
9120 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9121 else
9122 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9123 fi
9124 ;;
9125 esac
9126 link_all_deplibs=yes
9127 ;;
9128
9129 sunos4*)
9130 if test "x$host_vendor" = xsequent; then
9131 # Use $CC to link under sequent, because it throws in some extra .o
9132 # files that make .init and .fini sections work.
9133 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9134 else
9135 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9136 fi
9137 hardcode_libdir_flag_spec='-L$libdir'
9138 hardcode_direct=yes
9139 hardcode_minus_L=yes
9140 hardcode_shlibpath_var=no
9141 ;;
9142
9143 sysv4)
9144 case $host_vendor in
9145 sni)
9146 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9147 hardcode_direct=yes # is this really true???
9148 ;;
9149 siemens)
9150 ## LD is ld it makes a PLAMLIB
9151 ## CC just makes a GrossModule.
9152 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9153 reload_cmds='$CC -r -o $output$reload_objs'
9154 hardcode_direct=no
9155 ;;
9156 motorola)
9157 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9158 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9159 ;;
9160 esac
9161 runpath_var='LD_RUN_PATH'
9162 hardcode_shlibpath_var=no
9163 ;;
9164
9165 sysv4.3*)
9166 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9167 hardcode_shlibpath_var=no
9168 export_dynamic_flag_spec='-Bexport'
9169 ;;
9170
9171 sysv4*MP*)
9172 if test -d /usr/nec; then
9173 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9174 hardcode_shlibpath_var=no
9175 runpath_var=LD_RUN_PATH
9176 hardcode_runpath_var=yes
9177 ld_shlibs=yes
9178 fi
9179 ;;
9180
9181 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9182 no_undefined_flag='${wl}-z,text'
9183 archive_cmds_need_lc=no
9184 hardcode_shlibpath_var=no
9185 runpath_var='LD_RUN_PATH'
9186
9187 if test "$GCC" = yes; then
9188 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9189 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9190 else
9191 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9192 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9193 fi
9194 ;;
9195
9196 sysv5* | sco3.2v5* | sco5v6*)
9197 # Note: We can NOT use -z defs as we might desire, because we do not
9198 # link with -lc, and that would cause any symbols used from libc to
9199 # always be unresolved, which means just about no library would
9200 # ever link correctly. If we're not using GNU ld we use -z text
9201 # though, which does catch some bad symbols but isn't as heavy-handed
9202 # as -z defs.
9203 no_undefined_flag='${wl}-z,text'
9204 allow_undefined_flag='${wl}-z,nodefs'
9205 archive_cmds_need_lc=no
9206 hardcode_shlibpath_var=no
9207 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9208 hardcode_libdir_separator=':'
9209 link_all_deplibs=yes
9210 export_dynamic_flag_spec='${wl}-Bexport'
9211 runpath_var='LD_RUN_PATH'
9212
9213 if test "$GCC" = yes; then
9214 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9215 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9216 else
9217 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9218 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9219 fi
9220 ;;
9221
9222 uts4*)
9223 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9224 hardcode_libdir_flag_spec='-L$libdir'
9225 hardcode_shlibpath_var=no
9226 ;;
9227
9228 *)
9229 ld_shlibs=no
9230 ;;
9231 esac
9232
9233 if test x$host_vendor = xsni; then
9234 case $host in
9235 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9236 export_dynamic_flag_spec='${wl}-Blargedynsym'
9237 ;;
9238 esac
9239 fi
9240 fi
9241
9242 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9243 echo "${ECHO_T}$ld_shlibs" >&6
9244 test "$ld_shlibs" = no && can_build_shared=no
9245
9246 with_gnu_ld=$with_gnu_ld
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262 #
9263 # Do we need to explicitly link libc?
9264 #
9265 case "x$archive_cmds_need_lc" in
9266 x|xyes)
9267 # Assume -lc should be added
9268 archive_cmds_need_lc=yes
9269
9270 if test "$enable_shared" = yes && test "$GCC" = yes; then
9271 case $archive_cmds in
9272 *'~'*)
9273 # FIXME: we may have to deal with multi-command sequences.
9274 ;;
9275 '$CC '*)
9276 # Test whether the compiler implicitly links with -lc since on some
9277 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9278 # to ld, don't add -lc before -lgcc.
9279 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9280 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9281 $RM conftest*
9282 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9283
9284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9285 (eval $ac_compile) 2>&5
9286 ac_status=$?
9287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9288 (exit $ac_status); } 2>conftest.err; then
9289 soname=conftest
9290 lib=conftest
9291 libobjs=conftest.$ac_objext
9292 deplibs=
9293 wl=$lt_prog_compiler_wl
9294 pic_flag=$lt_prog_compiler_pic
9295 compiler_flags=-v
9296 linker_flags=-v
9297 verstring=
9298 output_objdir=.
9299 libname=conftest
9300 lt_save_allow_undefined_flag=$allow_undefined_flag
9301 allow_undefined_flag=
9302 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9303 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9304 ac_status=$?
9305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9306 (exit $ac_status); }
9307 then
9308 archive_cmds_need_lc=no
9309 else
9310 archive_cmds_need_lc=yes
9311 fi
9312 allow_undefined_flag=$lt_save_allow_undefined_flag
9313 else
9314 cat conftest.err 1>&5
9315 fi
9316 $RM conftest*
9317 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9318 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9319 ;;
9320 esac
9321 fi
9322 ;;
9323 esac
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9482 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9483 withGCC=$GCC
9484 if test "$withGCC" = yes; then
9485 case $host_os in
9486 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9487 *) lt_awk_arg="/^libraries:/" ;;
9488 esac
9489 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9490 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9491 # if the path contains ";" then we assume it to be the separator
9492 # otherwise default to the standard path separator (i.e. ":") - it is
9493 # assumed that no part of a normal pathname contains ";" but that should
9494 # okay in the real world where ";" in dirpaths is itself problematic.
9495 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9496 else
9497 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9498 fi
9499 # Ok, now we have the path, separated by spaces, we can step through it
9500 # and add multilib dir if necessary.
9501 lt_tmp_lt_search_path_spec=
9502 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9503 for lt_sys_path in $lt_search_path_spec; do
9504 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9505 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9506 else
9507 test -d "$lt_sys_path" && \
9508 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9509 fi
9510 done
9511 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9512 BEGIN {RS=" "; FS="/|\n";} {
9513 lt_foo="";
9514 lt_count=0;
9515 for (lt_i = NF; lt_i > 0; lt_i--) {
9516 if ($lt_i != "" && $lt_i != ".") {
9517 if ($lt_i == "..") {
9518 lt_count++;
9519 } else {
9520 if (lt_count == 0) {
9521 lt_foo="/" $lt_i lt_foo;
9522 } else {
9523 lt_count--;
9524 }
9525 }
9526 }
9527 }
9528 if (lt_foo != "") { lt_freq[lt_foo]++; }
9529 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9530 }'`
9531 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9532 else
9533 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9534 fi
9535 library_names_spec=
9536 libname_spec='lib$name'
9537 soname_spec=
9538 shrext_cmds=".so"
9539 postinstall_cmds=
9540 postuninstall_cmds=
9541 finish_cmds=
9542 finish_eval=
9543 shlibpath_var=
9544 shlibpath_overrides_runpath=unknown
9545 version_type=none
9546 dynamic_linker="$host_os ld.so"
9547 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9548 need_lib_prefix=unknown
9549 hardcode_into_libs=no
9550
9551 # when you set need_version to no, make sure it does not cause -set_version
9552 # flags to be left without arguments
9553 need_version=unknown
9554
9555 case $host_os in
9556 aix3*)
9557 version_type=linux
9558 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9559 shlibpath_var=LIBPATH
9560
9561 # AIX 3 has no versioning support, so we append a major version to the name.
9562 soname_spec='${libname}${release}${shared_ext}$major'
9563 ;;
9564
9565 aix[4-9]*)
9566 version_type=linux
9567 need_lib_prefix=no
9568 need_version=no
9569 hardcode_into_libs=yes
9570 if test "$host_cpu" = ia64; then
9571 # AIX 5 supports IA64
9572 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9573 shlibpath_var=LD_LIBRARY_PATH
9574 else
9575 # With GCC up to 2.95.x, collect2 would create an import file
9576 # for dependence libraries. The import file would start with
9577 # the line `#! .'. This would cause the generated library to
9578 # depend on `.', always an invalid library. This was fixed in
9579 # development snapshots of GCC prior to 3.0.
9580 case $host_os in
9581 aix4 | aix4.[01] | aix4.[01].*)
9582 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9583 echo ' yes '
9584 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9585 :
9586 else
9587 can_build_shared=no
9588 fi
9589 ;;
9590 esac
9591 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9592 # soname into executable. Probably we can add versioning support to
9593 # collect2, so additional links can be useful in future.
9594 if test "$aix_use_runtimelinking" = yes; then
9595 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9596 # instead of lib<name>.a to let people know that these are not
9597 # typical AIX shared libraries.
9598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9599 else
9600 # We preserve .a as extension for shared libraries through AIX4.2
9601 # and later when we are not doing run time linking.
9602 library_names_spec='${libname}${release}.a $libname.a'
9603 soname_spec='${libname}${release}${shared_ext}$major'
9604 fi
9605 shlibpath_var=LIBPATH
9606 fi
9607 ;;
9608
9609 amigaos*)
9610 if test "$host_cpu" = m68k; then
9611 library_names_spec='$libname.ixlibrary $libname.a'
9612 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9613 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'
9614 else
9615 dynamic_linker=no
9616 fi
9617 ;;
9618
9619 beos*)
9620 library_names_spec='${libname}${shared_ext}'
9621 dynamic_linker="$host_os ld.so"
9622 shlibpath_var=LIBRARY_PATH
9623 ;;
9624
9625 bsdi[45]*)
9626 version_type=linux
9627 need_version=no
9628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9629 soname_spec='${libname}${release}${shared_ext}$major'
9630 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9631 shlibpath_var=LD_LIBRARY_PATH
9632 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9633 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9634 # the default ld.so.conf also contains /usr/contrib/lib and
9635 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9636 # libtool to hard-code these into programs
9637 ;;
9638
9639 cygwin* | mingw* | pw32*)
9640 version_type=windows
9641 shrext_cmds=".dll"
9642 need_version=no
9643 need_lib_prefix=no
9644
9645 case $withGCC,$host_os in
9646 yes,cygwin* | yes,mingw* | yes,pw32*)
9647 library_names_spec='$libname.dll.a'
9648 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9649 postinstall_cmds='base_file=`basename \${file}`~
9650 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9651 dldir=$destdir/`dirname \$dlpath`~
9652 test -d \$dldir || mkdir -p \$dldir~
9653 $install_prog $dir/$dlname \$dldir/$dlname~
9654 chmod a+x \$dldir/$dlname~
9655 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9656 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9657 fi'
9658 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9659 dlpath=$dir/\$dldll~
9660 $RM \$dlpath'
9661 shlibpath_overrides_runpath=yes
9662
9663 case $host_os in
9664 cygwin*)
9665 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9666 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9667 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9668 ;;
9669 mingw*)
9670 # MinGW DLLs use traditional 'lib' prefix
9671 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9672 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9673 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9674 # It is most probably a Windows format PATH printed by
9675 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9676 # path with ; separators, and with drive letters. We can handle the
9677 # drive letters (cygwin fileutils understands them), so leave them,
9678 # especially as we might pass files found there to a mingw objdump,
9679 # which wouldn't understand a cygwinified path. Ahh.
9680 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9681 else
9682 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9683 fi
9684 ;;
9685 pw32*)
9686 # pw32 DLLs use 'pw' prefix rather than 'lib'
9687 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9688 ;;
9689 esac
9690 ;;
9691
9692 *)
9693 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9694 ;;
9695 esac
9696 dynamic_linker='Win32 ld.exe'
9697 # FIXME: first we should search . and the directory the executable is in
9698 shlibpath_var=PATH
9699 ;;
9700
9701 darwin* | rhapsody*)
9702 dynamic_linker="$host_os dyld"
9703 version_type=darwin
9704 need_lib_prefix=no
9705 need_version=no
9706 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9707 soname_spec='${libname}${release}${major}$shared_ext'
9708 shlibpath_overrides_runpath=yes
9709 shlibpath_var=DYLD_LIBRARY_PATH
9710 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9711
9712 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9713 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9714 ;;
9715
9716 dgux*)
9717 version_type=linux
9718 need_lib_prefix=no
9719 need_version=no
9720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9721 soname_spec='${libname}${release}${shared_ext}$major'
9722 shlibpath_var=LD_LIBRARY_PATH
9723 ;;
9724
9725 freebsd1*)
9726 dynamic_linker=no
9727 ;;
9728
9729 freebsd* | dragonfly*)
9730 # DragonFly does not have aout. When/if they implement a new
9731 # versioning mechanism, adjust this.
9732 if test -x /usr/bin/objformat; then
9733 objformat=`/usr/bin/objformat`
9734 else
9735 case $host_os in
9736 freebsd[123]*) objformat=aout ;;
9737 *) objformat=elf ;;
9738 esac
9739 fi
9740 version_type=freebsd-$objformat
9741 case $version_type in
9742 freebsd-elf*)
9743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9744 need_version=no
9745 need_lib_prefix=no
9746 ;;
9747 freebsd-*)
9748 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9749 need_version=yes
9750 ;;
9751 esac
9752 shlibpath_var=LD_LIBRARY_PATH
9753 case $host_os in
9754 freebsd2*)
9755 shlibpath_overrides_runpath=yes
9756 ;;
9757 freebsd3.[01]* | freebsdelf3.[01]*)
9758 shlibpath_overrides_runpath=yes
9759 hardcode_into_libs=yes
9760 ;;
9761 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9762 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9763 shlibpath_overrides_runpath=no
9764 hardcode_into_libs=yes
9765 ;;
9766 *) # from 4.6 on, and DragonFly
9767 shlibpath_overrides_runpath=yes
9768 hardcode_into_libs=yes
9769 ;;
9770 esac
9771 ;;
9772
9773 gnu*)
9774 version_type=linux
9775 need_lib_prefix=no
9776 need_version=no
9777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9778 soname_spec='${libname}${release}${shared_ext}$major'
9779 shlibpath_var=LD_LIBRARY_PATH
9780 hardcode_into_libs=yes
9781 ;;
9782
9783 hpux9* | hpux10* | hpux11*)
9784 # Give a soname corresponding to the major version so that dld.sl refuses to
9785 # link against other versions.
9786 version_type=sunos
9787 need_lib_prefix=no
9788 need_version=no
9789 case $host_cpu in
9790 ia64*)
9791 shrext_cmds='.so'
9792 hardcode_into_libs=yes
9793 dynamic_linker="$host_os dld.so"
9794 shlibpath_var=LD_LIBRARY_PATH
9795 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9797 soname_spec='${libname}${release}${shared_ext}$major'
9798 if test "X$HPUX_IA64_MODE" = X32; then
9799 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9800 else
9801 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9802 fi
9803 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9804 ;;
9805 hppa*64*)
9806 shrext_cmds='.sl'
9807 hardcode_into_libs=yes
9808 dynamic_linker="$host_os dld.sl"
9809 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9810 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9812 soname_spec='${libname}${release}${shared_ext}$major'
9813 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9814 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9815 ;;
9816 *)
9817 shrext_cmds='.sl'
9818 dynamic_linker="$host_os dld.sl"
9819 shlibpath_var=SHLIB_PATH
9820 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9822 soname_spec='${libname}${release}${shared_ext}$major'
9823 ;;
9824 esac
9825 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9826 postinstall_cmds='chmod 555 $lib'
9827 ;;
9828
9829 interix[3-9]*)
9830 version_type=linux
9831 need_lib_prefix=no
9832 need_version=no
9833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9834 soname_spec='${libname}${release}${shared_ext}$major'
9835 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9836 shlibpath_var=LD_LIBRARY_PATH
9837 shlibpath_overrides_runpath=no
9838 hardcode_into_libs=yes
9839 ;;
9840
9841 irix5* | irix6* | nonstopux*)
9842 case $host_os in
9843 nonstopux*) version_type=nonstopux ;;
9844 *)
9845 if test "$lt_cv_prog_gnu_ld" = yes; then
9846 version_type=linux
9847 else
9848 version_type=irix
9849 fi ;;
9850 esac
9851 need_lib_prefix=no
9852 need_version=no
9853 soname_spec='${libname}${release}${shared_ext}$major'
9854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9855 case $host_os in
9856 irix5* | nonstopux*)
9857 libsuff= shlibsuff=
9858 ;;
9859 *)
9860 case $LD in # libtool.m4 will add one of these switches to LD
9861 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9862 libsuff= shlibsuff= libmagic=32-bit;;
9863 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9864 libsuff=32 shlibsuff=N32 libmagic=N32;;
9865 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9866 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9867 *) libsuff= shlibsuff= libmagic=never-match;;
9868 esac
9869 ;;
9870 esac
9871 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9872 shlibpath_overrides_runpath=no
9873 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9874 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9875 hardcode_into_libs=yes
9876 ;;
9877
9878 # No shared lib support for Linux oldld, aout, or coff.
9879 linux*oldld* | linux*aout* | linux*coff*)
9880 dynamic_linker=no
9881 ;;
9882
9883 # This must be Linux ELF.
9884 linux* | k*bsd*-gnu)
9885 version_type=linux
9886 need_lib_prefix=no
9887 need_version=no
9888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9889 soname_spec='${libname}${release}${shared_ext}$major'
9890 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9891 shlibpath_var=LD_LIBRARY_PATH
9892 shlibpath_overrides_runpath=no
9893 # Some binutils ld are patched to set DT_RUNPATH
9894 save_LDFLAGS=$LDFLAGS
9895 save_libdir=$libdir
9896 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9897 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9898 if test x$gcc_no_link = xyes; then
9899 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9900 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9901 { (exit 1); exit 1; }; }
9902 fi
9903 cat >conftest.$ac_ext <<_ACEOF
9904 /* confdefs.h. */
9905 _ACEOF
9906 cat confdefs.h >>conftest.$ac_ext
9907 cat >>conftest.$ac_ext <<_ACEOF
9908 /* end confdefs.h. */
9909
9910 int
9911 main ()
9912 {
9913
9914 ;
9915 return 0;
9916 }
9917 _ACEOF
9918 rm -f conftest.$ac_objext conftest$ac_exeext
9919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9920 (eval $ac_link) 2>conftest.er1
9921 ac_status=$?
9922 grep -v '^ *+' conftest.er1 >conftest.err
9923 rm -f conftest.er1
9924 cat conftest.err >&5
9925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926 (exit $ac_status); } &&
9927 { ac_try='test -z "$ac_c_werror_flag"
9928 || test ! -s conftest.err'
9929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9930 (eval $ac_try) 2>&5
9931 ac_status=$?
9932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933 (exit $ac_status); }; } &&
9934 { ac_try='test -s conftest$ac_exeext'
9935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9936 (eval $ac_try) 2>&5
9937 ac_status=$?
9938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939 (exit $ac_status); }; }; then
9940 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
9941 shlibpath_overrides_runpath=yes
9942 fi
9943
9944 else
9945 echo "$as_me: failed program was:" >&5
9946 sed 's/^/| /' conftest.$ac_ext >&5
9947
9948 fi
9949 rm -f conftest.err conftest.$ac_objext \
9950 conftest$ac_exeext conftest.$ac_ext
9951 LDFLAGS=$save_LDFLAGS
9952 libdir=$save_libdir
9953
9954 # This implies no fast_install, which is unacceptable.
9955 # Some rework will be needed to allow for fast_install
9956 # before this can be enabled.
9957 hardcode_into_libs=yes
9958
9959 # Append ld.so.conf contents to the search path
9960 if test -f /etc/ld.so.conf; then
9961 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/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9962 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9963 fi
9964
9965 # We used to test for /lib/ld.so.1 and disable shared libraries on
9966 # powerpc, because MkLinux only supported shared libraries with the
9967 # GNU dynamic linker. Since this was broken with cross compilers,
9968 # most powerpc-linux boxes support dynamic linking these days and
9969 # people can always --disable-shared, the test was removed, and we
9970 # assume the GNU/Linux dynamic linker is in use.
9971 dynamic_linker='GNU/Linux ld.so'
9972 ;;
9973
9974 netbsd*)
9975 version_type=sunos
9976 need_lib_prefix=no
9977 need_version=no
9978 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9980 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9981 dynamic_linker='NetBSD (a.out) ld.so'
9982 else
9983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9984 soname_spec='${libname}${release}${shared_ext}$major'
9985 dynamic_linker='NetBSD ld.elf_so'
9986 fi
9987 shlibpath_var=LD_LIBRARY_PATH
9988 shlibpath_overrides_runpath=yes
9989 hardcode_into_libs=yes
9990 ;;
9991
9992 newsos6)
9993 version_type=linux
9994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9995 shlibpath_var=LD_LIBRARY_PATH
9996 shlibpath_overrides_runpath=yes
9997 ;;
9998
9999 *nto* | *qnx*)
10000 version_type=qnx
10001 need_lib_prefix=no
10002 need_version=no
10003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10004 soname_spec='${libname}${release}${shared_ext}$major'
10005 shlibpath_var=LD_LIBRARY_PATH
10006 shlibpath_overrides_runpath=no
10007 hardcode_into_libs=yes
10008 dynamic_linker='ldqnx.so'
10009 ;;
10010
10011 openbsd*)
10012 version_type=sunos
10013 sys_lib_dlsearch_path_spec="/usr/lib"
10014 need_lib_prefix=no
10015 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10016 case $host_os in
10017 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10018 *) need_version=no ;;
10019 esac
10020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10021 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10022 shlibpath_var=LD_LIBRARY_PATH
10023 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10024 case $host_os in
10025 openbsd2.[89] | openbsd2.[89].*)
10026 shlibpath_overrides_runpath=no
10027 ;;
10028 *)
10029 shlibpath_overrides_runpath=yes
10030 ;;
10031 esac
10032 else
10033 shlibpath_overrides_runpath=yes
10034 fi
10035 ;;
10036
10037 os2*)
10038 libname_spec='$name'
10039 shrext_cmds=".dll"
10040 need_lib_prefix=no
10041 library_names_spec='$libname${shared_ext} $libname.a'
10042 dynamic_linker='OS/2 ld.exe'
10043 shlibpath_var=LIBPATH
10044 ;;
10045
10046 osf3* | osf4* | osf5*)
10047 version_type=osf
10048 need_lib_prefix=no
10049 need_version=no
10050 soname_spec='${libname}${release}${shared_ext}$major'
10051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10052 shlibpath_var=LD_LIBRARY_PATH
10053 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10054 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10055 ;;
10056
10057 rdos*)
10058 dynamic_linker=no
10059 ;;
10060
10061 solaris*)
10062 version_type=linux
10063 need_lib_prefix=no
10064 need_version=no
10065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10066 soname_spec='${libname}${release}${shared_ext}$major'
10067 shlibpath_var=LD_LIBRARY_PATH
10068 shlibpath_overrides_runpath=yes
10069 hardcode_into_libs=yes
10070 # ldd complains unless libraries are executable
10071 postinstall_cmds='chmod +x $lib'
10072 ;;
10073
10074 sunos4*)
10075 version_type=sunos
10076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10077 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10078 shlibpath_var=LD_LIBRARY_PATH
10079 shlibpath_overrides_runpath=yes
10080 if test "$with_gnu_ld" = yes; then
10081 need_lib_prefix=no
10082 fi
10083 need_version=yes
10084 ;;
10085
10086 sysv4 | sysv4.3*)
10087 version_type=linux
10088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10089 soname_spec='${libname}${release}${shared_ext}$major'
10090 shlibpath_var=LD_LIBRARY_PATH
10091 case $host_vendor in
10092 sni)
10093 shlibpath_overrides_runpath=no
10094 need_lib_prefix=no
10095 runpath_var=LD_RUN_PATH
10096 ;;
10097 siemens)
10098 need_lib_prefix=no
10099 ;;
10100 motorola)
10101 need_lib_prefix=no
10102 need_version=no
10103 shlibpath_overrides_runpath=no
10104 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10105 ;;
10106 esac
10107 ;;
10108
10109 sysv4*MP*)
10110 if test -d /usr/nec ;then
10111 version_type=linux
10112 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10113 soname_spec='$libname${shared_ext}.$major'
10114 shlibpath_var=LD_LIBRARY_PATH
10115 fi
10116 ;;
10117
10118 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10119 version_type=freebsd-elf
10120 need_lib_prefix=no
10121 need_version=no
10122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10123 soname_spec='${libname}${release}${shared_ext}$major'
10124 shlibpath_var=LD_LIBRARY_PATH
10125 shlibpath_overrides_runpath=yes
10126 hardcode_into_libs=yes
10127 if test "$with_gnu_ld" = yes; then
10128 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10129 else
10130 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10131 case $host_os in
10132 sco3.2v5*)
10133 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10134 ;;
10135 esac
10136 fi
10137 sys_lib_dlsearch_path_spec='/usr/lib'
10138 ;;
10139
10140 tpf*)
10141 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10142 version_type=linux
10143 need_lib_prefix=no
10144 need_version=no
10145 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10146 shlibpath_var=LD_LIBRARY_PATH
10147 shlibpath_overrides_runpath=no
10148 hardcode_into_libs=yes
10149 ;;
10150
10151 uts4*)
10152 version_type=linux
10153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10154 soname_spec='${libname}${release}${shared_ext}$major'
10155 shlibpath_var=LD_LIBRARY_PATH
10156 ;;
10157
10158 *)
10159 dynamic_linker=no
10160 ;;
10161 esac
10162 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10163 echo "${ECHO_T}$dynamic_linker" >&6
10164 test "$dynamic_linker" = no && can_build_shared=no
10165
10166 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10167 if test "$GCC" = yes; then
10168 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10169 fi
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10258 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10259 hardcode_action=
10260 if test -n "$hardcode_libdir_flag_spec" ||
10261 test -n "$runpath_var" ||
10262 test "X$hardcode_automatic" = "Xyes" ; then
10263
10264 # We can hardcode non-existent directories.
10265 if test "$hardcode_direct" != no &&
10266 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10267 # have to relink, otherwise we might link with an installed library
10268 # when we should be linking with a yet-to-be-installed one
10269 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10270 test "$hardcode_minus_L" != no; then
10271 # Linking always hardcodes the temporary library directory.
10272 hardcode_action=relink
10273 else
10274 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10275 hardcode_action=immediate
10276 fi
10277 else
10278 # We cannot hardcode anything, or else we can only hardcode existing
10279 # directories.
10280 hardcode_action=unsupported
10281 fi
10282 echo "$as_me:$LINENO: result: $hardcode_action" >&5
10283 echo "${ECHO_T}$hardcode_action" >&6
10284
10285 if test "$hardcode_action" = relink ||
10286 test "$inherit_rpath" = yes; then
10287 # Fast installation is not supported
10288 enable_fast_install=no
10289 elif test "$shlibpath_overrides_runpath" = yes ||
10290 test "$enable_shared" = no; then
10291 # Fast installation is not necessary
10292 enable_fast_install=needless
10293 fi
10294
10295
10296
10297
10298
10299
10300 if test "x$enable_dlopen" != xyes; then
10301 enable_dlopen=unknown
10302 enable_dlopen_self=unknown
10303 enable_dlopen_self_static=unknown
10304 else
10305 lt_cv_dlopen=no
10306 lt_cv_dlopen_libs=
10307
10308 case $host_os in
10309 beos*)
10310 lt_cv_dlopen="load_add_on"
10311 lt_cv_dlopen_libs=
10312 lt_cv_dlopen_self=yes
10313 ;;
10314
10315 mingw* | pw32*)
10316 lt_cv_dlopen="LoadLibrary"
10317 lt_cv_dlopen_libs=
10318 ;;
10319
10320 cygwin*)
10321 lt_cv_dlopen="dlopen"
10322 lt_cv_dlopen_libs=
10323 ;;
10324
10325 darwin*)
10326 # if libdl is installed we need to link against it
10327 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10328 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10329 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10330 echo $ECHO_N "(cached) $ECHO_C" >&6
10331 else
10332 ac_check_lib_save_LIBS=$LIBS
10333 LIBS="-ldl $LIBS"
10334 if test x$gcc_no_link = xyes; then
10335 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10336 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10337 { (exit 1); exit 1; }; }
10338 fi
10339 cat >conftest.$ac_ext <<_ACEOF
10340 /* confdefs.h. */
10341 _ACEOF
10342 cat confdefs.h >>conftest.$ac_ext
10343 cat >>conftest.$ac_ext <<_ACEOF
10344 /* end confdefs.h. */
10345
10346 /* Override any gcc2 internal prototype to avoid an error. */
10347 #ifdef __cplusplus
10348 extern "C"
10349 #endif
10350 /* We use char because int might match the return type of a gcc2
10351 builtin and then its argument prototype would still apply. */
10352 char dlopen ();
10353 int
10354 main ()
10355 {
10356 dlopen ();
10357 ;
10358 return 0;
10359 }
10360 _ACEOF
10361 rm -f conftest.$ac_objext conftest$ac_exeext
10362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10363 (eval $ac_link) 2>conftest.er1
10364 ac_status=$?
10365 grep -v '^ *+' conftest.er1 >conftest.err
10366 rm -f conftest.er1
10367 cat conftest.err >&5
10368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10369 (exit $ac_status); } &&
10370 { ac_try='test -z "$ac_c_werror_flag"
10371 || test ! -s conftest.err'
10372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10373 (eval $ac_try) 2>&5
10374 ac_status=$?
10375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10376 (exit $ac_status); }; } &&
10377 { ac_try='test -s conftest$ac_exeext'
10378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10379 (eval $ac_try) 2>&5
10380 ac_status=$?
10381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382 (exit $ac_status); }; }; then
10383 ac_cv_lib_dl_dlopen=yes
10384 else
10385 echo "$as_me: failed program was:" >&5
10386 sed 's/^/| /' conftest.$ac_ext >&5
10387
10388 ac_cv_lib_dl_dlopen=no
10389 fi
10390 rm -f conftest.err conftest.$ac_objext \
10391 conftest$ac_exeext conftest.$ac_ext
10392 LIBS=$ac_check_lib_save_LIBS
10393 fi
10394 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10395 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10396 if test $ac_cv_lib_dl_dlopen = yes; then
10397 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10398 else
10399
10400 lt_cv_dlopen="dyld"
10401 lt_cv_dlopen_libs=
10402 lt_cv_dlopen_self=yes
10403
10404 fi
10405
10406 ;;
10407
10408 *)
10409 echo "$as_me:$LINENO: checking for shl_load" >&5
10410 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10411 if test "${ac_cv_func_shl_load+set}" = set; then
10412 echo $ECHO_N "(cached) $ECHO_C" >&6
10413 else
10414 if test x$gcc_no_link = xyes; then
10415 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10416 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10417 { (exit 1); exit 1; }; }
10418 fi
10419 cat >conftest.$ac_ext <<_ACEOF
10420 /* confdefs.h. */
10421 _ACEOF
10422 cat confdefs.h >>conftest.$ac_ext
10423 cat >>conftest.$ac_ext <<_ACEOF
10424 /* end confdefs.h. */
10425 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10426 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10427 #define shl_load innocuous_shl_load
10428
10429 /* System header to define __stub macros and hopefully few prototypes,
10430 which can conflict with char shl_load (); below.
10431 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10432 <limits.h> exists even on freestanding compilers. */
10433
10434 #ifdef __STDC__
10435 # include <limits.h>
10436 #else
10437 # include <assert.h>
10438 #endif
10439
10440 #undef shl_load
10441
10442 /* Override any gcc2 internal prototype to avoid an error. */
10443 #ifdef __cplusplus
10444 extern "C"
10445 {
10446 #endif
10447 /* We use char because int might match the return type of a gcc2
10448 builtin and then its argument prototype would still apply. */
10449 char shl_load ();
10450 /* The GNU C library defines this for functions which it implements
10451 to always fail with ENOSYS. Some functions are actually named
10452 something starting with __ and the normal name is an alias. */
10453 #if defined (__stub_shl_load) || defined (__stub___shl_load)
10454 choke me
10455 #else
10456 char (*f) () = shl_load;
10457 #endif
10458 #ifdef __cplusplus
10459 }
10460 #endif
10461
10462 int
10463 main ()
10464 {
10465 return f != shl_load;
10466 ;
10467 return 0;
10468 }
10469 _ACEOF
10470 rm -f conftest.$ac_objext conftest$ac_exeext
10471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10472 (eval $ac_link) 2>conftest.er1
10473 ac_status=$?
10474 grep -v '^ *+' conftest.er1 >conftest.err
10475 rm -f conftest.er1
10476 cat conftest.err >&5
10477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10478 (exit $ac_status); } &&
10479 { ac_try='test -z "$ac_c_werror_flag"
10480 || test ! -s conftest.err'
10481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10482 (eval $ac_try) 2>&5
10483 ac_status=$?
10484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485 (exit $ac_status); }; } &&
10486 { ac_try='test -s conftest$ac_exeext'
10487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10488 (eval $ac_try) 2>&5
10489 ac_status=$?
10490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10491 (exit $ac_status); }; }; then
10492 ac_cv_func_shl_load=yes
10493 else
10494 echo "$as_me: failed program was:" >&5
10495 sed 's/^/| /' conftest.$ac_ext >&5
10496
10497 ac_cv_func_shl_load=no
10498 fi
10499 rm -f conftest.err conftest.$ac_objext \
10500 conftest$ac_exeext conftest.$ac_ext
10501 fi
10502 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10503 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10504 if test $ac_cv_func_shl_load = yes; then
10505 lt_cv_dlopen="shl_load"
10506 else
10507 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10508 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10509 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10510 echo $ECHO_N "(cached) $ECHO_C" >&6
10511 else
10512 ac_check_lib_save_LIBS=$LIBS
10513 LIBS="-ldld $LIBS"
10514 if test x$gcc_no_link = xyes; then
10515 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10516 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10517 { (exit 1); exit 1; }; }
10518 fi
10519 cat >conftest.$ac_ext <<_ACEOF
10520 /* confdefs.h. */
10521 _ACEOF
10522 cat confdefs.h >>conftest.$ac_ext
10523 cat >>conftest.$ac_ext <<_ACEOF
10524 /* end confdefs.h. */
10525
10526 /* Override any gcc2 internal prototype to avoid an error. */
10527 #ifdef __cplusplus
10528 extern "C"
10529 #endif
10530 /* We use char because int might match the return type of a gcc2
10531 builtin and then its argument prototype would still apply. */
10532 char shl_load ();
10533 int
10534 main ()
10535 {
10536 shl_load ();
10537 ;
10538 return 0;
10539 }
10540 _ACEOF
10541 rm -f conftest.$ac_objext conftest$ac_exeext
10542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10543 (eval $ac_link) 2>conftest.er1
10544 ac_status=$?
10545 grep -v '^ *+' conftest.er1 >conftest.err
10546 rm -f conftest.er1
10547 cat conftest.err >&5
10548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549 (exit $ac_status); } &&
10550 { ac_try='test -z "$ac_c_werror_flag"
10551 || test ! -s conftest.err'
10552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10553 (eval $ac_try) 2>&5
10554 ac_status=$?
10555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556 (exit $ac_status); }; } &&
10557 { ac_try='test -s conftest$ac_exeext'
10558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10559 (eval $ac_try) 2>&5
10560 ac_status=$?
10561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562 (exit $ac_status); }; }; then
10563 ac_cv_lib_dld_shl_load=yes
10564 else
10565 echo "$as_me: failed program was:" >&5
10566 sed 's/^/| /' conftest.$ac_ext >&5
10567
10568 ac_cv_lib_dld_shl_load=no
10569 fi
10570 rm -f conftest.err conftest.$ac_objext \
10571 conftest$ac_exeext conftest.$ac_ext
10572 LIBS=$ac_check_lib_save_LIBS
10573 fi
10574 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10575 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10576 if test $ac_cv_lib_dld_shl_load = yes; then
10577 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10578 else
10579 echo "$as_me:$LINENO: checking for dlopen" >&5
10580 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10581 if test "${ac_cv_func_dlopen+set}" = set; then
10582 echo $ECHO_N "(cached) $ECHO_C" >&6
10583 else
10584 if test x$gcc_no_link = xyes; then
10585 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10586 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10587 { (exit 1); exit 1; }; }
10588 fi
10589 cat >conftest.$ac_ext <<_ACEOF
10590 /* confdefs.h. */
10591 _ACEOF
10592 cat confdefs.h >>conftest.$ac_ext
10593 cat >>conftest.$ac_ext <<_ACEOF
10594 /* end confdefs.h. */
10595 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10596 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10597 #define dlopen innocuous_dlopen
10598
10599 /* System header to define __stub macros and hopefully few prototypes,
10600 which can conflict with char dlopen (); below.
10601 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10602 <limits.h> exists even on freestanding compilers. */
10603
10604 #ifdef __STDC__
10605 # include <limits.h>
10606 #else
10607 # include <assert.h>
10608 #endif
10609
10610 #undef dlopen
10611
10612 /* Override any gcc2 internal prototype to avoid an error. */
10613 #ifdef __cplusplus
10614 extern "C"
10615 {
10616 #endif
10617 /* We use char because int might match the return type of a gcc2
10618 builtin and then its argument prototype would still apply. */
10619 char dlopen ();
10620 /* The GNU C library defines this for functions which it implements
10621 to always fail with ENOSYS. Some functions are actually named
10622 something starting with __ and the normal name is an alias. */
10623 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10624 choke me
10625 #else
10626 char (*f) () = dlopen;
10627 #endif
10628 #ifdef __cplusplus
10629 }
10630 #endif
10631
10632 int
10633 main ()
10634 {
10635 return f != dlopen;
10636 ;
10637 return 0;
10638 }
10639 _ACEOF
10640 rm -f conftest.$ac_objext conftest$ac_exeext
10641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10642 (eval $ac_link) 2>conftest.er1
10643 ac_status=$?
10644 grep -v '^ *+' conftest.er1 >conftest.err
10645 rm -f conftest.er1
10646 cat conftest.err >&5
10647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10648 (exit $ac_status); } &&
10649 { ac_try='test -z "$ac_c_werror_flag"
10650 || test ! -s conftest.err'
10651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10652 (eval $ac_try) 2>&5
10653 ac_status=$?
10654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10655 (exit $ac_status); }; } &&
10656 { ac_try='test -s conftest$ac_exeext'
10657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10658 (eval $ac_try) 2>&5
10659 ac_status=$?
10660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661 (exit $ac_status); }; }; then
10662 ac_cv_func_dlopen=yes
10663 else
10664 echo "$as_me: failed program was:" >&5
10665 sed 's/^/| /' conftest.$ac_ext >&5
10666
10667 ac_cv_func_dlopen=no
10668 fi
10669 rm -f conftest.err conftest.$ac_objext \
10670 conftest$ac_exeext conftest.$ac_ext
10671 fi
10672 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10673 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10674 if test $ac_cv_func_dlopen = yes; then
10675 lt_cv_dlopen="dlopen"
10676 else
10677 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10678 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10679 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10680 echo $ECHO_N "(cached) $ECHO_C" >&6
10681 else
10682 ac_check_lib_save_LIBS=$LIBS
10683 LIBS="-ldl $LIBS"
10684 if test x$gcc_no_link = xyes; then
10685 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10686 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10687 { (exit 1); exit 1; }; }
10688 fi
10689 cat >conftest.$ac_ext <<_ACEOF
10690 /* confdefs.h. */
10691 _ACEOF
10692 cat confdefs.h >>conftest.$ac_ext
10693 cat >>conftest.$ac_ext <<_ACEOF
10694 /* end confdefs.h. */
10695
10696 /* Override any gcc2 internal prototype to avoid an error. */
10697 #ifdef __cplusplus
10698 extern "C"
10699 #endif
10700 /* We use char because int might match the return type of a gcc2
10701 builtin and then its argument prototype would still apply. */
10702 char dlopen ();
10703 int
10704 main ()
10705 {
10706 dlopen ();
10707 ;
10708 return 0;
10709 }
10710 _ACEOF
10711 rm -f conftest.$ac_objext conftest$ac_exeext
10712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10713 (eval $ac_link) 2>conftest.er1
10714 ac_status=$?
10715 grep -v '^ *+' conftest.er1 >conftest.err
10716 rm -f conftest.er1
10717 cat conftest.err >&5
10718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10719 (exit $ac_status); } &&
10720 { ac_try='test -z "$ac_c_werror_flag"
10721 || test ! -s conftest.err'
10722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10723 (eval $ac_try) 2>&5
10724 ac_status=$?
10725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10726 (exit $ac_status); }; } &&
10727 { ac_try='test -s conftest$ac_exeext'
10728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10729 (eval $ac_try) 2>&5
10730 ac_status=$?
10731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10732 (exit $ac_status); }; }; then
10733 ac_cv_lib_dl_dlopen=yes
10734 else
10735 echo "$as_me: failed program was:" >&5
10736 sed 's/^/| /' conftest.$ac_ext >&5
10737
10738 ac_cv_lib_dl_dlopen=no
10739 fi
10740 rm -f conftest.err conftest.$ac_objext \
10741 conftest$ac_exeext conftest.$ac_ext
10742 LIBS=$ac_check_lib_save_LIBS
10743 fi
10744 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10745 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10746 if test $ac_cv_lib_dl_dlopen = yes; then
10747 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10748 else
10749 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10750 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10751 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10752 echo $ECHO_N "(cached) $ECHO_C" >&6
10753 else
10754 ac_check_lib_save_LIBS=$LIBS
10755 LIBS="-lsvld $LIBS"
10756 if test x$gcc_no_link = xyes; then
10757 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10758 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10759 { (exit 1); exit 1; }; }
10760 fi
10761 cat >conftest.$ac_ext <<_ACEOF
10762 /* confdefs.h. */
10763 _ACEOF
10764 cat confdefs.h >>conftest.$ac_ext
10765 cat >>conftest.$ac_ext <<_ACEOF
10766 /* end confdefs.h. */
10767
10768 /* Override any gcc2 internal prototype to avoid an error. */
10769 #ifdef __cplusplus
10770 extern "C"
10771 #endif
10772 /* We use char because int might match the return type of a gcc2
10773 builtin and then its argument prototype would still apply. */
10774 char dlopen ();
10775 int
10776 main ()
10777 {
10778 dlopen ();
10779 ;
10780 return 0;
10781 }
10782 _ACEOF
10783 rm -f conftest.$ac_objext conftest$ac_exeext
10784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10785 (eval $ac_link) 2>conftest.er1
10786 ac_status=$?
10787 grep -v '^ *+' conftest.er1 >conftest.err
10788 rm -f conftest.er1
10789 cat conftest.err >&5
10790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10791 (exit $ac_status); } &&
10792 { ac_try='test -z "$ac_c_werror_flag"
10793 || test ! -s conftest.err'
10794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10795 (eval $ac_try) 2>&5
10796 ac_status=$?
10797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10798 (exit $ac_status); }; } &&
10799 { ac_try='test -s conftest$ac_exeext'
10800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10801 (eval $ac_try) 2>&5
10802 ac_status=$?
10803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10804 (exit $ac_status); }; }; then
10805 ac_cv_lib_svld_dlopen=yes
10806 else
10807 echo "$as_me: failed program was:" >&5
10808 sed 's/^/| /' conftest.$ac_ext >&5
10809
10810 ac_cv_lib_svld_dlopen=no
10811 fi
10812 rm -f conftest.err conftest.$ac_objext \
10813 conftest$ac_exeext conftest.$ac_ext
10814 LIBS=$ac_check_lib_save_LIBS
10815 fi
10816 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10817 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10818 if test $ac_cv_lib_svld_dlopen = yes; then
10819 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10820 else
10821 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10822 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10823 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10824 echo $ECHO_N "(cached) $ECHO_C" >&6
10825 else
10826 ac_check_lib_save_LIBS=$LIBS
10827 LIBS="-ldld $LIBS"
10828 if test x$gcc_no_link = xyes; then
10829 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10830 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10831 { (exit 1); exit 1; }; }
10832 fi
10833 cat >conftest.$ac_ext <<_ACEOF
10834 /* confdefs.h. */
10835 _ACEOF
10836 cat confdefs.h >>conftest.$ac_ext
10837 cat >>conftest.$ac_ext <<_ACEOF
10838 /* end confdefs.h. */
10839
10840 /* Override any gcc2 internal prototype to avoid an error. */
10841 #ifdef __cplusplus
10842 extern "C"
10843 #endif
10844 /* We use char because int might match the return type of a gcc2
10845 builtin and then its argument prototype would still apply. */
10846 char dld_link ();
10847 int
10848 main ()
10849 {
10850 dld_link ();
10851 ;
10852 return 0;
10853 }
10854 _ACEOF
10855 rm -f conftest.$ac_objext conftest$ac_exeext
10856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10857 (eval $ac_link) 2>conftest.er1
10858 ac_status=$?
10859 grep -v '^ *+' conftest.er1 >conftest.err
10860 rm -f conftest.er1
10861 cat conftest.err >&5
10862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863 (exit $ac_status); } &&
10864 { ac_try='test -z "$ac_c_werror_flag"
10865 || test ! -s conftest.err'
10866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10867 (eval $ac_try) 2>&5
10868 ac_status=$?
10869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10870 (exit $ac_status); }; } &&
10871 { ac_try='test -s conftest$ac_exeext'
10872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10873 (eval $ac_try) 2>&5
10874 ac_status=$?
10875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10876 (exit $ac_status); }; }; then
10877 ac_cv_lib_dld_dld_link=yes
10878 else
10879 echo "$as_me: failed program was:" >&5
10880 sed 's/^/| /' conftest.$ac_ext >&5
10881
10882 ac_cv_lib_dld_dld_link=no
10883 fi
10884 rm -f conftest.err conftest.$ac_objext \
10885 conftest$ac_exeext conftest.$ac_ext
10886 LIBS=$ac_check_lib_save_LIBS
10887 fi
10888 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10889 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10890 if test $ac_cv_lib_dld_dld_link = yes; then
10891 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10892 fi
10893
10894
10895 fi
10896
10897
10898 fi
10899
10900
10901 fi
10902
10903
10904 fi
10905
10906
10907 fi
10908
10909 ;;
10910 esac
10911
10912 if test "x$lt_cv_dlopen" != xno; then
10913 enable_dlopen=yes
10914 else
10915 enable_dlopen=no
10916 fi
10917
10918 case $lt_cv_dlopen in
10919 dlopen)
10920 save_CPPFLAGS="$CPPFLAGS"
10921 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10922
10923 save_LDFLAGS="$LDFLAGS"
10924 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10925
10926 save_LIBS="$LIBS"
10927 LIBS="$lt_cv_dlopen_libs $LIBS"
10928
10929 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10930 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10931 if test "${lt_cv_dlopen_self+set}" = set; then
10932 echo $ECHO_N "(cached) $ECHO_C" >&6
10933 else
10934 if test "$cross_compiling" = yes; then :
10935 lt_cv_dlopen_self=cross
10936 else
10937 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10938 lt_status=$lt_dlunknown
10939 cat > conftest.$ac_ext <<_LT_EOF
10940 #line 10940 "configure"
10941 #include "confdefs.h"
10942
10943 #if HAVE_DLFCN_H
10944 #include <dlfcn.h>
10945 #endif
10946
10947 #include <stdio.h>
10948
10949 #ifdef RTLD_GLOBAL
10950 # define LT_DLGLOBAL RTLD_GLOBAL
10951 #else
10952 # ifdef DL_GLOBAL
10953 # define LT_DLGLOBAL DL_GLOBAL
10954 # else
10955 # define LT_DLGLOBAL 0
10956 # endif
10957 #endif
10958
10959 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10960 find out it does not work in some platform. */
10961 #ifndef LT_DLLAZY_OR_NOW
10962 # ifdef RTLD_LAZY
10963 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10964 # else
10965 # ifdef DL_LAZY
10966 # define LT_DLLAZY_OR_NOW DL_LAZY
10967 # else
10968 # ifdef RTLD_NOW
10969 # define LT_DLLAZY_OR_NOW RTLD_NOW
10970 # else
10971 # ifdef DL_NOW
10972 # define LT_DLLAZY_OR_NOW DL_NOW
10973 # else
10974 # define LT_DLLAZY_OR_NOW 0
10975 # endif
10976 # endif
10977 # endif
10978 # endif
10979 #endif
10980
10981 #ifdef __cplusplus
10982 extern "C" void exit (int);
10983 #endif
10984
10985 void fnord() { int i=42;}
10986 int main ()
10987 {
10988 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10989 int status = $lt_dlunknown;
10990
10991 if (self)
10992 {
10993 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10994 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10995 /* dlclose (self); */
10996 }
10997 else
10998 puts (dlerror ());
10999
11000 exit (status);
11001 }
11002 _LT_EOF
11003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11004 (eval $ac_link) 2>&5
11005 ac_status=$?
11006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11008 (./conftest; exit; ) >&5 2>/dev/null
11009 lt_status=$?
11010 case x$lt_status in
11011 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11012 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11013 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11014 esac
11015 else :
11016 # compilation failed
11017 lt_cv_dlopen_self=no
11018 fi
11019 fi
11020 rm -fr conftest*
11021
11022
11023 fi
11024 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11025 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11026
11027 if test "x$lt_cv_dlopen_self" = xyes; then
11028 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11029 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11030 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11031 if test "${lt_cv_dlopen_self_static+set}" = set; then
11032 echo $ECHO_N "(cached) $ECHO_C" >&6
11033 else
11034 if test "$cross_compiling" = yes; then :
11035 lt_cv_dlopen_self_static=cross
11036 else
11037 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11038 lt_status=$lt_dlunknown
11039 cat > conftest.$ac_ext <<_LT_EOF
11040 #line 11040 "configure"
11041 #include "confdefs.h"
11042
11043 #if HAVE_DLFCN_H
11044 #include <dlfcn.h>
11045 #endif
11046
11047 #include <stdio.h>
11048
11049 #ifdef RTLD_GLOBAL
11050 # define LT_DLGLOBAL RTLD_GLOBAL
11051 #else
11052 # ifdef DL_GLOBAL
11053 # define LT_DLGLOBAL DL_GLOBAL
11054 # else
11055 # define LT_DLGLOBAL 0
11056 # endif
11057 #endif
11058
11059 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11060 find out it does not work in some platform. */
11061 #ifndef LT_DLLAZY_OR_NOW
11062 # ifdef RTLD_LAZY
11063 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11064 # else
11065 # ifdef DL_LAZY
11066 # define LT_DLLAZY_OR_NOW DL_LAZY
11067 # else
11068 # ifdef RTLD_NOW
11069 # define LT_DLLAZY_OR_NOW RTLD_NOW
11070 # else
11071 # ifdef DL_NOW
11072 # define LT_DLLAZY_OR_NOW DL_NOW
11073 # else
11074 # define LT_DLLAZY_OR_NOW 0
11075 # endif
11076 # endif
11077 # endif
11078 # endif
11079 #endif
11080
11081 #ifdef __cplusplus
11082 extern "C" void exit (int);
11083 #endif
11084
11085 void fnord() { int i=42;}
11086 int main ()
11087 {
11088 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11089 int status = $lt_dlunknown;
11090
11091 if (self)
11092 {
11093 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11094 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11095 /* dlclose (self); */
11096 }
11097 else
11098 puts (dlerror ());
11099
11100 exit (status);
11101 }
11102 _LT_EOF
11103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11104 (eval $ac_link) 2>&5
11105 ac_status=$?
11106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11107 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11108 (./conftest; exit; ) >&5 2>/dev/null
11109 lt_status=$?
11110 case x$lt_status in
11111 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11112 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11113 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11114 esac
11115 else :
11116 # compilation failed
11117 lt_cv_dlopen_self_static=no
11118 fi
11119 fi
11120 rm -fr conftest*
11121
11122
11123 fi
11124 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11125 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11126 fi
11127
11128 CPPFLAGS="$save_CPPFLAGS"
11129 LDFLAGS="$save_LDFLAGS"
11130 LIBS="$save_LIBS"
11131 ;;
11132 esac
11133
11134 case $lt_cv_dlopen_self in
11135 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11136 *) enable_dlopen_self=unknown ;;
11137 esac
11138
11139 case $lt_cv_dlopen_self_static in
11140 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11141 *) enable_dlopen_self_static=unknown ;;
11142 esac
11143 fi
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161 striplib=
11162 old_striplib=
11163 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11164 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11165 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11166 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11167 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11168 echo "$as_me:$LINENO: result: yes" >&5
11169 echo "${ECHO_T}yes" >&6
11170 else
11171 # FIXME - insert some real tests, host_os isn't really good enough
11172 case $host_os in
11173 darwin*)
11174 if test -n "$STRIP" ; then
11175 striplib="$STRIP -x"
11176 old_striplib="$STRIP -S"
11177 echo "$as_me:$LINENO: result: yes" >&5
11178 echo "${ECHO_T}yes" >&6
11179 else
11180 echo "$as_me:$LINENO: result: no" >&5
11181 echo "${ECHO_T}no" >&6
11182 fi
11183 ;;
11184 *)
11185 echo "$as_me:$LINENO: result: no" >&5
11186 echo "${ECHO_T}no" >&6
11187 ;;
11188 esac
11189 fi
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202 # Report which library types will actually be built
11203 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11204 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11205 echo "$as_me:$LINENO: result: $can_build_shared" >&5
11206 echo "${ECHO_T}$can_build_shared" >&6
11207
11208 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11209 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11210 test "$can_build_shared" = "no" && enable_shared=no
11211
11212 # On AIX, shared libraries and static libraries use the same namespace, and
11213 # are all built from PIC.
11214 case $host_os in
11215 aix3*)
11216 test "$enable_shared" = yes && enable_static=no
11217 if test -n "$RANLIB"; then
11218 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11219 postinstall_cmds='$RANLIB $lib'
11220 fi
11221 ;;
11222
11223 aix[4-9]*)
11224 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11225 test "$enable_shared" = yes && enable_static=no
11226 fi
11227 ;;
11228 esac
11229 echo "$as_me:$LINENO: result: $enable_shared" >&5
11230 echo "${ECHO_T}$enable_shared" >&6
11231
11232 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11233 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11234 # Make sure either enable_shared or enable_static is yes.
11235 test "$enable_shared" = yes || enable_static=yes
11236 echo "$as_me:$LINENO: result: $enable_static" >&5
11237 echo "${ECHO_T}$enable_static" >&6
11238
11239
11240
11241
11242 fi
11243 ac_ext=c
11244 ac_cpp='$CPP $CPPFLAGS'
11245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11248
11249 CC="$lt_save_CC"
11250
11251
11252 ac_ext=cc
11253 ac_cpp='$CXXCPP $CPPFLAGS'
11254 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11255 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11256 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11257
11258 archive_cmds_need_lc_CXX=no
11259 allow_undefined_flag_CXX=
11260 always_export_symbols_CXX=no
11261 archive_expsym_cmds_CXX=
11262 compiler_needs_object_CXX=no
11263 export_dynamic_flag_spec_CXX=
11264 hardcode_direct_CXX=no
11265 hardcode_direct_absolute_CXX=no
11266 hardcode_libdir_flag_spec_CXX=
11267 hardcode_libdir_flag_spec_ld_CXX=
11268 hardcode_libdir_separator_CXX=
11269 hardcode_minus_L_CXX=no
11270 hardcode_shlibpath_var_CXX=unsupported
11271 hardcode_automatic_CXX=no
11272 inherit_rpath_CXX=no
11273 module_cmds_CXX=
11274 module_expsym_cmds_CXX=
11275 link_all_deplibs_CXX=unknown
11276 old_archive_cmds_CXX=$old_archive_cmds
11277 no_undefined_flag_CXX=
11278 whole_archive_flag_spec_CXX=
11279 enable_shared_with_static_runtimes_CXX=no
11280
11281 # Source file extension for C++ test sources.
11282 ac_ext=cpp
11283
11284 # Object file extension for compiled C++ test sources.
11285 objext=o
11286 objext_CXX=$objext
11287
11288 # No sense in running all these tests if we already determined that
11289 # the CXX compiler isn't working. Some variables (like enable_shared)
11290 # are currently assumed to apply to all compilers on this platform,
11291 # and will be corrupted by setting them based on a non-working compiler.
11292 if test "$_lt_caught_CXX_error" != yes; then
11293 # Code to be used in simple compile tests
11294 lt_simple_compile_test_code="int some_variable = 0;"
11295
11296 # Code to be used in simple link tests
11297 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11298
11299 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11300
11301
11302
11303
11304
11305
11306 # If no C compiler was specified, use CC.
11307 LTCC=${LTCC-"$CC"}
11308
11309 # If no C compiler flags were specified, use CFLAGS.
11310 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11311
11312 # Allow CC to be a program name with arguments.
11313 compiler=$CC
11314
11315
11316 # save warnings/boilerplate of simple test code
11317 ac_outfile=conftest.$ac_objext
11318 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11319 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11320 _lt_compiler_boilerplate=`cat conftest.err`
11321 $RM conftest*
11322
11323 ac_outfile=conftest.$ac_objext
11324 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11325 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11326 _lt_linker_boilerplate=`cat conftest.err`
11327 $RM conftest*
11328
11329
11330 # Allow CC to be a program name with arguments.
11331 lt_save_CC=$CC
11332 lt_save_LD=$LD
11333 lt_save_GCC=$GCC
11334 GCC=$GXX
11335 lt_save_with_gnu_ld=$with_gnu_ld
11336 lt_save_path_LD=$lt_cv_path_LD
11337 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11338 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11339 else
11340 $as_unset lt_cv_prog_gnu_ld
11341 fi
11342 if test -n "${lt_cv_path_LDCXX+set}"; then
11343 lt_cv_path_LD=$lt_cv_path_LDCXX
11344 else
11345 $as_unset lt_cv_path_LD
11346 fi
11347 test -z "${LDCXX+set}" || LD=$LDCXX
11348 CC=${CXX-"c++"}
11349 compiler=$CC
11350 compiler_CXX=$CC
11351 for cc_temp in $compiler""; do
11352 case $cc_temp in
11353 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11354 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11355 \-*) ;;
11356 *) break;;
11357 esac
11358 done
11359 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11360
11361
11362 if test -n "$compiler"; then
11363 # We don't want -fno-exception when compiling C++ code, so set the
11364 # no_builtin_flag separately
11365 if test "$GXX" = yes; then
11366 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11367 else
11368 lt_prog_compiler_no_builtin_flag_CXX=
11369 fi
11370
11371 if test "$GXX" = yes; then
11372 # Set up default GNU C++ configuration
11373
11374
11375
11376 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11377 if test "${with_gnu_ld+set}" = set; then
11378 withval="$with_gnu_ld"
11379 test "$withval" = no || with_gnu_ld=yes
11380 else
11381 with_gnu_ld=no
11382 fi;
11383 ac_prog=ld
11384 if test "$GCC" = yes; then
11385 # Check if gcc -print-prog-name=ld gives a path.
11386 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11387 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11388 case $host in
11389 *-*-mingw*)
11390 # gcc leaves a trailing carriage return which upsets mingw
11391 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11392 *)
11393 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11394 esac
11395 case $ac_prog in
11396 # Accept absolute paths.
11397 [\\/]* | ?:[\\/]*)
11398 re_direlt='/[^/][^/]*/\.\./'
11399 # Canonicalize the pathname of ld
11400 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11401 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11402 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11403 done
11404 test -z "$LD" && LD="$ac_prog"
11405 ;;
11406 "")
11407 # If it fails, then pretend we aren't using GCC.
11408 ac_prog=ld
11409 ;;
11410 *)
11411 # If it is relative, then search for the first ld in PATH.
11412 with_gnu_ld=unknown
11413 ;;
11414 esac
11415 elif test "$with_gnu_ld" = yes; then
11416 echo "$as_me:$LINENO: checking for GNU ld" >&5
11417 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11418 else
11419 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11420 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11421 fi
11422 if test "${lt_cv_path_LD+set}" = set; then
11423 echo $ECHO_N "(cached) $ECHO_C" >&6
11424 else
11425 if test -z "$LD"; then
11426 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11427 for ac_dir in $PATH; do
11428 IFS="$lt_save_ifs"
11429 test -z "$ac_dir" && ac_dir=.
11430 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11431 lt_cv_path_LD="$ac_dir/$ac_prog"
11432 # Check to see if the program is GNU ld. I'd rather use --version,
11433 # but apparently some variants of GNU ld only accept -v.
11434 # Break only if it was the GNU/non-GNU ld that we prefer.
11435 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11436 *GNU* | *'with BFD'*)
11437 test "$with_gnu_ld" != no && break
11438 ;;
11439 *)
11440 test "$with_gnu_ld" != yes && break
11441 ;;
11442 esac
11443 fi
11444 done
11445 IFS="$lt_save_ifs"
11446 else
11447 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11448 fi
11449 fi
11450
11451 LD="$lt_cv_path_LD"
11452 if test -n "$LD"; then
11453 echo "$as_me:$LINENO: result: $LD" >&5
11454 echo "${ECHO_T}$LD" >&6
11455 else
11456 echo "$as_me:$LINENO: result: no" >&5
11457 echo "${ECHO_T}no" >&6
11458 fi
11459 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11460 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11461 { (exit 1); exit 1; }; }
11462 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11463 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11464 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11465 echo $ECHO_N "(cached) $ECHO_C" >&6
11466 else
11467 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11468 case `$LD -v 2>&1 </dev/null` in
11469 *GNU* | *'with BFD'*)
11470 lt_cv_prog_gnu_ld=yes
11471 ;;
11472 *)
11473 lt_cv_prog_gnu_ld=no
11474 ;;
11475 esac
11476 fi
11477 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11478 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
11479 with_gnu_ld=$lt_cv_prog_gnu_ld
11480
11481
11482
11483
11484
11485
11486
11487 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11488 # archiving commands below assume that GNU ld is being used.
11489 if test "$with_gnu_ld" = yes; then
11490 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11491 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'
11492
11493 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11494 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11495
11496 # If archive_cmds runs LD, not CC, wlarc should be empty
11497 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11498 # investigate it a little bit more. (MM)
11499 wlarc='${wl}'
11500
11501 # ancient GNU ld didn't support --whole-archive et. al.
11502 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11503 $GREP 'no-whole-archive' > /dev/null; then
11504 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11505 else
11506 whole_archive_flag_spec_CXX=
11507 fi
11508 else
11509 with_gnu_ld=no
11510 wlarc=
11511
11512 # A generic and very simple default shared library creation
11513 # command for GNU C++ for the case where it uses the native
11514 # linker, instead of GNU ld. If possible, this setting should
11515 # overridden to take advantage of the native linker features on
11516 # the platform it is being used on.
11517 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11518 fi
11519
11520 # Commands to make compiler produce verbose output that lists
11521 # what "hidden" libraries, object files and flags are used when
11522 # linking a shared library.
11523 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
11524
11525 else
11526 GXX=no
11527 with_gnu_ld=no
11528 wlarc=
11529 fi
11530
11531 # PORTME: fill in a description of your system's C++ link characteristics
11532 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11533 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11534 ld_shlibs_CXX=yes
11535 case $host_os in
11536 aix3*)
11537 # FIXME: insert proper C++ library support
11538 ld_shlibs_CXX=no
11539 ;;
11540 aix[4-9]*)
11541 if test "$host_cpu" = ia64; then
11542 # On IA64, the linker does run time linking by default, so we don't
11543 # have to do anything special.
11544 aix_use_runtimelinking=no
11545 exp_sym_flag='-Bexport'
11546 no_entry_flag=""
11547 else
11548 aix_use_runtimelinking=no
11549
11550 # Test if we are trying to use run time linking or normal
11551 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11552 # need to do runtime linking.
11553 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11554 for ld_flag in $LDFLAGS; do
11555 case $ld_flag in
11556 *-brtl*)
11557 aix_use_runtimelinking=yes
11558 break
11559 ;;
11560 esac
11561 done
11562 ;;
11563 esac
11564
11565 exp_sym_flag='-bexport'
11566 no_entry_flag='-bnoentry'
11567 fi
11568
11569 # When large executables or shared objects are built, AIX ld can
11570 # have problems creating the table of contents. If linking a library
11571 # or program results in "error TOC overflow" add -mminimal-toc to
11572 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11573 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11574
11575 archive_cmds_CXX=''
11576 hardcode_direct_CXX=yes
11577 hardcode_direct_absolute_CXX=yes
11578 hardcode_libdir_separator_CXX=':'
11579 link_all_deplibs_CXX=yes
11580 file_list_spec_CXX='${wl}-f,'
11581
11582 if test "$GXX" = yes; then
11583 case $host_os in aix4.[012]|aix4.[012].*)
11584 # We only want to do this on AIX 4.2 and lower, the check
11585 # below for broken collect2 doesn't work under 4.3+
11586 collect2name=`${CC} -print-prog-name=collect2`
11587 if test -f "$collect2name" &&
11588 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11589 then
11590 # We have reworked collect2
11591 :
11592 else
11593 # We have old collect2
11594 hardcode_direct_CXX=unsupported
11595 # It fails to find uninstalled libraries when the uninstalled
11596 # path is not listed in the libpath. Setting hardcode_minus_L
11597 # to unsupported forces relinking
11598 hardcode_minus_L_CXX=yes
11599 hardcode_libdir_flag_spec_CXX='-L$libdir'
11600 hardcode_libdir_separator_CXX=
11601 fi
11602 esac
11603 shared_flag='-shared'
11604 if test "$aix_use_runtimelinking" = yes; then
11605 shared_flag="$shared_flag "'${wl}-G'
11606 fi
11607 else
11608 # not using gcc
11609 if test "$host_cpu" = ia64; then
11610 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11611 # chokes on -Wl,-G. The following line is correct:
11612 shared_flag='-G'
11613 else
11614 if test "$aix_use_runtimelinking" = yes; then
11615 shared_flag='${wl}-G'
11616 else
11617 shared_flag='${wl}-bM:SRE'
11618 fi
11619 fi
11620 fi
11621
11622 # It seems that -bexpall does not export symbols beginning with
11623 # underscore (_), so it is better to generate a list of symbols to
11624 # export.
11625 always_export_symbols_CXX=yes
11626 if test "$aix_use_runtimelinking" = yes; then
11627 # Warning - without using the other runtime loading flags (-brtl),
11628 # -berok will link without error, but may produce a broken library.
11629 allow_undefined_flag_CXX='-berok'
11630 # Determine the default libpath from the value encoded in an empty
11631 # executable.
11632 if test x$gcc_no_link = xyes; then
11633 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11634 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11635 { (exit 1); exit 1; }; }
11636 fi
11637 cat >conftest.$ac_ext <<_ACEOF
11638 /* confdefs.h. */
11639 _ACEOF
11640 cat confdefs.h >>conftest.$ac_ext
11641 cat >>conftest.$ac_ext <<_ACEOF
11642 /* end confdefs.h. */
11643
11644 int
11645 main ()
11646 {
11647
11648 ;
11649 return 0;
11650 }
11651 _ACEOF
11652 rm -f conftest.$ac_objext conftest$ac_exeext
11653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11654 (eval $ac_link) 2>conftest.er1
11655 ac_status=$?
11656 grep -v '^ *+' conftest.er1 >conftest.err
11657 rm -f conftest.er1
11658 cat conftest.err >&5
11659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660 (exit $ac_status); } &&
11661 { ac_try='test -z "$ac_cxx_werror_flag"
11662 || test ! -s conftest.err'
11663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11664 (eval $ac_try) 2>&5
11665 ac_status=$?
11666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11667 (exit $ac_status); }; } &&
11668 { ac_try='test -s conftest$ac_exeext'
11669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11670 (eval $ac_try) 2>&5
11671 ac_status=$?
11672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11673 (exit $ac_status); }; }; then
11674
11675 lt_aix_libpath_sed='
11676 /Import File Strings/,/^$/ {
11677 /^0/ {
11678 s/^0 *\(.*\)$/\1/
11679 p
11680 }
11681 }'
11682 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11683 # Check for a 64-bit object if we didn't find anything.
11684 if test -z "$aix_libpath"; then
11685 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11686 fi
11687 else
11688 echo "$as_me: failed program was:" >&5
11689 sed 's/^/| /' conftest.$ac_ext >&5
11690
11691 fi
11692 rm -f conftest.err conftest.$ac_objext \
11693 conftest$ac_exeext conftest.$ac_ext
11694 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11695
11696 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11697
11698 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"
11699 else
11700 if test "$host_cpu" = ia64; then
11701 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11702 allow_undefined_flag_CXX="-z nodefs"
11703 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"
11704 else
11705 # Determine the default libpath from the value encoded in an
11706 # empty executable.
11707 if test x$gcc_no_link = xyes; then
11708 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11709 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11710 { (exit 1); exit 1; }; }
11711 fi
11712 cat >conftest.$ac_ext <<_ACEOF
11713 /* confdefs.h. */
11714 _ACEOF
11715 cat confdefs.h >>conftest.$ac_ext
11716 cat >>conftest.$ac_ext <<_ACEOF
11717 /* end confdefs.h. */
11718
11719 int
11720 main ()
11721 {
11722
11723 ;
11724 return 0;
11725 }
11726 _ACEOF
11727 rm -f conftest.$ac_objext conftest$ac_exeext
11728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11729 (eval $ac_link) 2>conftest.er1
11730 ac_status=$?
11731 grep -v '^ *+' conftest.er1 >conftest.err
11732 rm -f conftest.er1
11733 cat conftest.err >&5
11734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735 (exit $ac_status); } &&
11736 { ac_try='test -z "$ac_cxx_werror_flag"
11737 || test ! -s conftest.err'
11738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11739 (eval $ac_try) 2>&5
11740 ac_status=$?
11741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11742 (exit $ac_status); }; } &&
11743 { ac_try='test -s conftest$ac_exeext'
11744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11745 (eval $ac_try) 2>&5
11746 ac_status=$?
11747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748 (exit $ac_status); }; }; then
11749
11750 lt_aix_libpath_sed='
11751 /Import File Strings/,/^$/ {
11752 /^0/ {
11753 s/^0 *\(.*\)$/\1/
11754 p
11755 }
11756 }'
11757 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11758 # Check for a 64-bit object if we didn't find anything.
11759 if test -z "$aix_libpath"; then
11760 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11761 fi
11762 else
11763 echo "$as_me: failed program was:" >&5
11764 sed 's/^/| /' conftest.$ac_ext >&5
11765
11766 fi
11767 rm -f conftest.err conftest.$ac_objext \
11768 conftest$ac_exeext conftest.$ac_ext
11769 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11770
11771 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11772 # Warning - without using the other run time loading flags,
11773 # -berok will link without error, but may produce a broken library.
11774 no_undefined_flag_CXX=' ${wl}-bernotok'
11775 allow_undefined_flag_CXX=' ${wl}-berok'
11776 # Exported symbols can be pulled into shared objects from archives
11777 whole_archive_flag_spec_CXX='$convenience'
11778 archive_cmds_need_lc_CXX=yes
11779 # This is similar to how AIX traditionally builds its shared
11780 # libraries.
11781 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'
11782 fi
11783 fi
11784 ;;
11785
11786 beos*)
11787 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11788 allow_undefined_flag_CXX=unsupported
11789 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11790 # support --undefined. This deserves some investigation. FIXME
11791 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11792 else
11793 ld_shlibs_CXX=no
11794 fi
11795 ;;
11796
11797 chorus*)
11798 case $cc_basename in
11799 *)
11800 # FIXME: insert proper C++ library support
11801 ld_shlibs_CXX=no
11802 ;;
11803 esac
11804 ;;
11805
11806 cygwin* | mingw* | pw32*)
11807 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11808 # as there is no search path for DLLs.
11809 hardcode_libdir_flag_spec_CXX='-L$libdir'
11810 allow_undefined_flag_CXX=unsupported
11811 always_export_symbols_CXX=no
11812 enable_shared_with_static_runtimes_CXX=yes
11813
11814 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11815 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'
11816 # If the export-symbols file already is a .def file (1st line
11817 # is EXPORTS), use it as is; otherwise, prepend...
11818 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11819 cp $export_symbols $output_objdir/$soname.def;
11820 else
11821 echo EXPORTS > $output_objdir/$soname.def;
11822 cat $export_symbols >> $output_objdir/$soname.def;
11823 fi~
11824 $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'
11825 else
11826 ld_shlibs_CXX=no
11827 fi
11828 ;;
11829 darwin* | rhapsody*)
11830 case $host_os in
11831 rhapsody* | darwin1.[012])
11832 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11833 ;;
11834 *) # Darwin 1.3 on
11835 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
11836 10.[012])
11837 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11838 ;;
11839 10.*)
11840 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11841 ;;
11842 esac
11843 ;;
11844 esac
11845 archive_cmds_need_lc_CXX=no
11846 hardcode_direct_CXX=no
11847 hardcode_automatic_CXX=yes
11848 hardcode_shlibpath_var_CXX=unsupported
11849 whole_archive_flag_spec_CXX=''
11850 link_all_deplibs_CXX=yes
11851
11852 if test "$GXX" = yes ; then
11853 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
11854 echo $ECHO_N "(cached) $ECHO_C" >&6
11855 else
11856 lt_cv_apple_cc_single_mod=no
11857 if test -z "${LT_MULTI_MODULE}"; then
11858 # By default we will add the -single_module flag. You can override
11859 # by either setting the environment variable LT_MULTI_MODULE
11860 # non-empty at configure time, or by adding -multi-module to the
11861 # link flags.
11862 echo "int foo(void){return 1;}" > conftest.c
11863 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11864 -dynamiclib ${wl}-single_module conftest.c
11865 if test -f libconftest.dylib; then
11866 lt_cv_apple_cc_single_mod=yes
11867 rm libconftest.dylib
11868 fi
11869 rm conftest.$ac_ext
11870 fi
11871 fi
11872
11873 output_verbose_link_cmd=echo
11874 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
11875 archive_cmds_CXX='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11876 archive_expsym_cmds_CXX='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11877 else
11878 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'
11879 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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11880 fi
11881 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11882 module_expsym_cmds_CXX='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11883 else
11884 case $cc_basename in
11885 xlc*)
11886 output_verbose_link_cmd=echo
11887 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO "$rpath/$soname"` $verstring'
11888 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11889 # Don't fix this by using the ld -exported_symbols_list flag,
11890 # it doesn't exist in older darwin lds
11891 archive_expsym_cmds_CXX='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11892 module_expsym_cmds_CXX='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11893 ;;
11894 *)
11895 ld_shlibs_CXX=no
11896 ;;
11897 esac
11898 fi
11899 ;;
11900
11901 dgux*)
11902 case $cc_basename in
11903 ec++*)
11904 # FIXME: insert proper C++ library support
11905 ld_shlibs_CXX=no
11906 ;;
11907 ghcx*)
11908 # Green Hills C++ Compiler
11909 # FIXME: insert proper C++ library support
11910 ld_shlibs_CXX=no
11911 ;;
11912 *)
11913 # FIXME: insert proper C++ library support
11914 ld_shlibs_CXX=no
11915 ;;
11916 esac
11917 ;;
11918
11919 freebsd[12]*)
11920 # C++ shared libraries reported to be fairly broken before
11921 # switch to ELF
11922 ld_shlibs_CXX=no
11923 ;;
11924
11925 freebsd-elf*)
11926 archive_cmds_need_lc_CXX=no
11927 ;;
11928
11929 freebsd* | dragonfly*)
11930 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11931 # conventions
11932 ld_shlibs_CXX=yes
11933 ;;
11934
11935 gnu*)
11936 ;;
11937
11938 hpux9*)
11939 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11940 hardcode_libdir_separator_CXX=:
11941 export_dynamic_flag_spec_CXX='${wl}-E'
11942 hardcode_direct_CXX=yes
11943 hardcode_minus_L_CXX=yes # Not in the search PATH,
11944 # but as the default
11945 # location of the library.
11946
11947 case $cc_basename in
11948 CC*)
11949 # FIXME: insert proper C++ library support
11950 ld_shlibs_CXX=no
11951 ;;
11952 aCC*)
11953 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'
11954 # Commands to make compiler produce verbose output that lists
11955 # what "hidden" libraries, object files and flags are used when
11956 # linking a shared library.
11957 #
11958 # There doesn't appear to be a way to prevent this compiler from
11959 # explicitly linking system object files so we need to strip them
11960 # from the output so that they don't get included in the library
11961 # dependencies.
11962 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'
11963 ;;
11964 *)
11965 if test "$GXX" = yes; then
11966 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'
11967 else
11968 # FIXME: insert proper C++ library support
11969 ld_shlibs_CXX=no
11970 fi
11971 ;;
11972 esac
11973 ;;
11974
11975 hpux10*|hpux11*)
11976 if test $with_gnu_ld = no; then
11977 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11978 hardcode_libdir_separator_CXX=:
11979
11980 case $host_cpu in
11981 hppa*64*|ia64*)
11982 ;;
11983 *)
11984 export_dynamic_flag_spec_CXX='${wl}-E'
11985 ;;
11986 esac
11987 fi
11988 case $host_cpu in
11989 hppa*64*|ia64*)
11990 hardcode_direct_CXX=no
11991 hardcode_shlibpath_var_CXX=no
11992 ;;
11993 *)
11994 hardcode_direct_CXX=yes
11995 hardcode_direct_absolute_CXX=yes
11996 hardcode_minus_L_CXX=yes # Not in the search PATH,
11997 # but as the default
11998 # location of the library.
11999 ;;
12000 esac
12001
12002 case $cc_basename in
12003 CC*)
12004 # FIXME: insert proper C++ library support
12005 ld_shlibs_CXX=no
12006 ;;
12007 aCC*)
12008 case $host_cpu in
12009 hppa*64*)
12010 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12011 ;;
12012 ia64*)
12013 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12014 ;;
12015 *)
12016 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12017 ;;
12018 esac
12019 # Commands to make compiler produce verbose output that lists
12020 # what "hidden" libraries, object files and flags are used when
12021 # linking a shared library.
12022 #
12023 # There doesn't appear to be a way to prevent this compiler from
12024 # explicitly linking system object files so we need to strip them
12025 # from the output so that they don't get included in the library
12026 # dependencies.
12027 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'
12028 ;;
12029 *)
12030 if test "$GXX" = yes; then
12031 if test $with_gnu_ld = no; then
12032 case $host_cpu in
12033 hppa*64*)
12034 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12035 ;;
12036 ia64*)
12037 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12038 ;;
12039 *)
12040 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'
12041 ;;
12042 esac
12043 fi
12044 else
12045 # FIXME: insert proper C++ library support
12046 ld_shlibs_CXX=no
12047 fi
12048 ;;
12049 esac
12050 ;;
12051
12052 interix[3-9]*)
12053 hardcode_direct_CXX=no
12054 hardcode_shlibpath_var_CXX=no
12055 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12056 export_dynamic_flag_spec_CXX='${wl}-E'
12057 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12058 # Instead, shared libraries are loaded at an image base (0x10000000 by
12059 # default) and relocated if they conflict, which is a slow very memory
12060 # consuming and fragmenting process. To avoid this, we pick a random,
12061 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12062 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12063 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'
12064 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'
12065 ;;
12066 irix5* | irix6*)
12067 case $cc_basename in
12068 CC*)
12069 # SGI C++
12070 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'
12071
12072 # Archives containing C++ object files must be created using
12073 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12074 # necessary to make sure instantiated templates are included
12075 # in the archive.
12076 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12077 ;;
12078 *)
12079 if test "$GXX" = yes; then
12080 if test "$with_gnu_ld" = no; then
12081 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'
12082 else
12083 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'
12084 fi
12085 fi
12086 link_all_deplibs_CXX=yes
12087 ;;
12088 esac
12089 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12090 hardcode_libdir_separator_CXX=:
12091 inherit_rpath_CXX=yes
12092 ;;
12093
12094 linux* | k*bsd*-gnu)
12095 case $cc_basename in
12096 KCC*)
12097 # Kuck and Associates, Inc. (KAI) C++ Compiler
12098
12099 # KCC will only create a shared library if the output file
12100 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12101 # to its proper name (with version) after linking.
12102 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'
12103 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'
12104 # Commands to make compiler produce verbose output that lists
12105 # what "hidden" libraries, object files and flags are used when
12106 # linking a shared library.
12107 #
12108 # There doesn't appear to be a way to prevent this compiler from
12109 # explicitly linking system object files so we need to strip them
12110 # from the output so that they don't get included in the library
12111 # dependencies.
12112 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'
12113
12114 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12115 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12116
12117 # Archives containing C++ object files must be created using
12118 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12119 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12120 ;;
12121 icpc* | ecpc* )
12122 # Intel C++
12123 with_gnu_ld=yes
12124 # version 8.0 and above of icpc choke on multiply defined symbols
12125 # if we add $predep_objects and $postdep_objects, however 7.1 and
12126 # earlier do not add the objects themselves.
12127 case `$CC -V 2>&1` in
12128 *"Version 7."*)
12129 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12130 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'
12131 ;;
12132 *) # Version 8.0 or newer
12133 tmp_idyn=
12134 case $host_cpu in
12135 ia64*) tmp_idyn=' -i_dynamic';;
12136 esac
12137 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12138 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'
12139 ;;
12140 esac
12141 archive_cmds_need_lc_CXX=no
12142 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12143 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12144 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12145 ;;
12146 pgCC*)
12147 # Portland Group C++ compiler
12148 case `$CC -V` in
12149 *pgCC\ [1-5]*)
12150 prelink_cmds_CXX='tpldir=Template.dir~
12151 rm -rf $tpldir~
12152 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12153 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12154 old_archive_cmds_CXX='tpldir=Template.dir~
12155 rm -rf $tpldir~
12156 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12157 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12158 $RANLIB $oldlib'
12159 archive_cmds_CXX='tpldir=Template.dir~
12160 rm -rf $tpldir~
12161 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12162 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12163 archive_expsym_cmds_CXX='tpldir=Template.dir~
12164 rm -rf $tpldir~
12165 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12166 $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'
12167 ;;
12168 *) # Version 6 will use weak symbols
12169 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12170 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'
12171 ;;
12172 esac
12173
12174 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12175 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12176 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'
12177 ;;
12178 cxx*)
12179 # Compaq C++
12180 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12181 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'
12182
12183 runpath_var=LD_RUN_PATH
12184 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12185 hardcode_libdir_separator_CXX=:
12186
12187 # Commands to make compiler produce verbose output that lists
12188 # what "hidden" libraries, object files and flags are used when
12189 # linking a shared library.
12190 #
12191 # There doesn't appear to be a way to prevent this compiler from
12192 # explicitly linking system object files so we need to strip them
12193 # from the output so that they don't get included in the library
12194 # dependencies.
12195 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'
12196 ;;
12197 *)
12198 case `$CC -V 2>&1 | sed 5q` in
12199 *Sun\ C*)
12200 # Sun C++ 5.9
12201 no_undefined_flag_CXX=' -zdefs'
12202 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12203 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'
12204 hardcode_libdir_flag_spec_CXX='-R$libdir'
12205 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'
12206 compiler_needs_object_CXX=yes
12207
12208 # Not sure whether something based on
12209 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12210 # would be better.
12211 output_verbose_link_cmd='echo'
12212
12213 # Archives containing C++ object files must be created using
12214 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12215 # necessary to make sure instantiated templates are included
12216 # in the archive.
12217 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12218 ;;
12219 esac
12220 ;;
12221 esac
12222 ;;
12223
12224 lynxos*)
12225 # FIXME: insert proper C++ library support
12226 ld_shlibs_CXX=no
12227 ;;
12228
12229 m88k*)
12230 # FIXME: insert proper C++ library support
12231 ld_shlibs_CXX=no
12232 ;;
12233
12234 mvs*)
12235 case $cc_basename in
12236 cxx*)
12237 # FIXME: insert proper C++ library support
12238 ld_shlibs_CXX=no
12239 ;;
12240 *)
12241 # FIXME: insert proper C++ library support
12242 ld_shlibs_CXX=no
12243 ;;
12244 esac
12245 ;;
12246
12247 netbsd*)
12248 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12249 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12250 wlarc=
12251 hardcode_libdir_flag_spec_CXX='-R$libdir'
12252 hardcode_direct_CXX=yes
12253 hardcode_shlibpath_var_CXX=no
12254 fi
12255 # Workaround some broken pre-1.5 toolchains
12256 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12257 ;;
12258
12259 *nto* | *qnx*)
12260 ld_shlibs_CXX=yes
12261 ;;
12262
12263 openbsd2*)
12264 # C++ shared libraries are fairly broken
12265 ld_shlibs_CXX=no
12266 ;;
12267
12268 openbsd*)
12269 hardcode_direct_CXX=yes
12270 hardcode_shlibpath_var_CXX=no
12271 hardcode_direct_absolute_CXX=yes
12272 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12273 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12274 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12275 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12276 export_dynamic_flag_spec_CXX='${wl}-E'
12277 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12278 fi
12279 output_verbose_link_cmd=echo
12280 ;;
12281
12282 osf3* | osf4* | osf5*)
12283 case $cc_basename in
12284 KCC*)
12285 # Kuck and Associates, Inc. (KAI) C++ Compiler
12286
12287 # KCC will only create a shared library if the output file
12288 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12289 # to its proper name (with version) after linking.
12290 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'
12291
12292 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12293 hardcode_libdir_separator_CXX=:
12294
12295 # Archives containing C++ object files must be created using
12296 # the KAI C++ compiler.
12297 case $host in
12298 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12299 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12300 esac
12301 ;;
12302 RCC*)
12303 # Rational C++ 2.4.1
12304 # FIXME: insert proper C++ library support
12305 ld_shlibs_CXX=no
12306 ;;
12307 cxx*)
12308 case $host in
12309 osf3*)
12310 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12311 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'
12312 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12313 ;;
12314 *)
12315 allow_undefined_flag_CXX=' -expect_unresolved \*'
12316 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'
12317 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12318 echo "-hidden">> $lib.exp~
12319 $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~
12320 $RM $lib.exp'
12321 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12322 ;;
12323 esac
12324
12325 hardcode_libdir_separator_CXX=:
12326
12327 # Commands to make compiler produce verbose output that lists
12328 # what "hidden" libraries, object files and flags are used when
12329 # linking a shared library.
12330 #
12331 # There doesn't appear to be a way to prevent this compiler from
12332 # explicitly linking system object files so we need to strip them
12333 # from the output so that they don't get included in the library
12334 # dependencies.
12335 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'
12336 ;;
12337 *)
12338 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12339 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12340 case $host in
12341 osf3*)
12342 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'
12343 ;;
12344 *)
12345 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'
12346 ;;
12347 esac
12348
12349 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12350 hardcode_libdir_separator_CXX=:
12351
12352 # Commands to make compiler produce verbose output that lists
12353 # what "hidden" libraries, object files and flags are used when
12354 # linking a shared library.
12355 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12356
12357 else
12358 # FIXME: insert proper C++ library support
12359 ld_shlibs_CXX=no
12360 fi
12361 ;;
12362 esac
12363 ;;
12364
12365 psos*)
12366 # FIXME: insert proper C++ library support
12367 ld_shlibs_CXX=no
12368 ;;
12369
12370 sunos4*)
12371 case $cc_basename in
12372 CC*)
12373 # Sun C++ 4.x
12374 # FIXME: insert proper C++ library support
12375 ld_shlibs_CXX=no
12376 ;;
12377 lcc*)
12378 # Lucid
12379 # FIXME: insert proper C++ library support
12380 ld_shlibs_CXX=no
12381 ;;
12382 *)
12383 # FIXME: insert proper C++ library support
12384 ld_shlibs_CXX=no
12385 ;;
12386 esac
12387 ;;
12388
12389 solaris*)
12390 case $cc_basename in
12391 CC*)
12392 # Sun C++ 4.2, 5.x and Centerline C++
12393 archive_cmds_need_lc_CXX=yes
12394 no_undefined_flag_CXX=' -zdefs'
12395 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12396 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12397 $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'
12398
12399 hardcode_libdir_flag_spec_CXX='-R$libdir'
12400 hardcode_shlibpath_var_CXX=no
12401 case $host_os in
12402 solaris2.[0-5] | solaris2.[0-5].*) ;;
12403 *)
12404 # The compiler driver will combine and reorder linker options,
12405 # but understands `-z linker_flag'.
12406 # Supported since Solaris 2.6 (maybe 2.5.1?)
12407 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12408 ;;
12409 esac
12410 link_all_deplibs_CXX=yes
12411
12412 output_verbose_link_cmd='echo'
12413
12414 # Archives containing C++ object files must be created using
12415 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12416 # necessary to make sure instantiated templates are included
12417 # in the archive.
12418 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12419 ;;
12420 gcx*)
12421 # Green Hills C++ Compiler
12422 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12423
12424 # The C++ compiler must be used to create the archive.
12425 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12426 ;;
12427 *)
12428 # GNU C++ compiler with Solaris linker
12429 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12430 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12431 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12432 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12433 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12434 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12435
12436 # Commands to make compiler produce verbose output that lists
12437 # what "hidden" libraries, object files and flags are used when
12438 # linking a shared library.
12439 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12440 else
12441 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12442 # platform.
12443 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12444 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12445 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12446
12447 # Commands to make compiler produce verbose output that lists
12448 # what "hidden" libraries, object files and flags are used when
12449 # linking a shared library.
12450 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12451 fi
12452
12453 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12454 case $host_os in
12455 solaris2.[0-5] | solaris2.[0-5].*) ;;
12456 *)
12457 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12458 ;;
12459 esac
12460 fi
12461 ;;
12462 esac
12463 ;;
12464
12465 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12466 no_undefined_flag_CXX='${wl}-z,text'
12467 archive_cmds_need_lc_CXX=no
12468 hardcode_shlibpath_var_CXX=no
12469 runpath_var='LD_RUN_PATH'
12470
12471 case $cc_basename in
12472 CC*)
12473 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12474 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12475 ;;
12476 *)
12477 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12478 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12479 ;;
12480 esac
12481 ;;
12482
12483 sysv5* | sco3.2v5* | sco5v6*)
12484 # Note: We can NOT use -z defs as we might desire, because we do not
12485 # link with -lc, and that would cause any symbols used from libc to
12486 # always be unresolved, which means just about no library would
12487 # ever link correctly. If we're not using GNU ld we use -z text
12488 # though, which does catch some bad symbols but isn't as heavy-handed
12489 # as -z defs.
12490 no_undefined_flag_CXX='${wl}-z,text'
12491 allow_undefined_flag_CXX='${wl}-z,nodefs'
12492 archive_cmds_need_lc_CXX=no
12493 hardcode_shlibpath_var_CXX=no
12494 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12495 hardcode_libdir_separator_CXX=':'
12496 link_all_deplibs_CXX=yes
12497 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12498 runpath_var='LD_RUN_PATH'
12499
12500 case $cc_basename in
12501 CC*)
12502 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12503 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12504 ;;
12505 *)
12506 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12507 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12508 ;;
12509 esac
12510 ;;
12511
12512 tandem*)
12513 case $cc_basename in
12514 NCC*)
12515 # NonStop-UX NCC 3.20
12516 # FIXME: insert proper C++ library support
12517 ld_shlibs_CXX=no
12518 ;;
12519 *)
12520 # FIXME: insert proper C++ library support
12521 ld_shlibs_CXX=no
12522 ;;
12523 esac
12524 ;;
12525
12526 vxworks*)
12527 # FIXME: insert proper C++ library support
12528 ld_shlibs_CXX=no
12529 ;;
12530
12531 *)
12532 # FIXME: insert proper C++ library support
12533 ld_shlibs_CXX=no
12534 ;;
12535 esac
12536
12537 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12538 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12539 test "$ld_shlibs_CXX" = no && can_build_shared=no
12540
12541 GCC_CXX="$GXX"
12542 LD_CXX="$LD"
12543
12544 ## CAVEAT EMPTOR:
12545 ## There is no encapsulation within the following macros, do not change
12546 ## the running order or otherwise move them around unless you know exactly
12547 ## what you are doing...
12548 # Dependencies to place before and after the object being linked:
12549 predep_objects_CXX=
12550 postdep_objects_CXX=
12551 predeps_CXX=
12552 postdeps_CXX=
12553 compiler_lib_search_path_CXX=
12554
12555 cat > conftest.$ac_ext <<_LT_EOF
12556 class Foo
12557 {
12558 public:
12559 Foo (void) { a = 0; }
12560 private:
12561 int a;
12562 };
12563 _LT_EOF
12564
12565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12566 (eval $ac_compile) 2>&5
12567 ac_status=$?
12568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12569 (exit $ac_status); }; then
12570 # Parse the compiler output and extract the necessary
12571 # objects, libraries and library flags.
12572
12573 # Sentinel used to keep track of whether or not we are before
12574 # the conftest object file.
12575 pre_test_object_deps_done=no
12576
12577 # The `*' in the case matches for architectures that use `case' in
12578 # $output_verbose_cmd can trigger glob expansion during the loop
12579 # eval without this substitution.
12580 output_verbose_link_cmd=`$ECHO "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12581
12582 for p in `eval $output_verbose_link_cmd`; do
12583 case $p in
12584
12585 -L* | -R* | -l*)
12586 # Some compilers place space between "-{L,R}" and the path.
12587 # Remove the space.
12588 if test $p = "-L" ||
12589 test $p = "-R"; then
12590 prev=$p
12591 continue
12592 else
12593 prev=
12594 fi
12595
12596 if test "$pre_test_object_deps_done" = no; then
12597 case $p in
12598 -L* | -R*)
12599 # Internal compiler library paths should come after those
12600 # provided the user. The postdeps already come after the
12601 # user supplied libs so there is no need to process them.
12602 if test -z "$compiler_lib_search_path_CXX"; then
12603 compiler_lib_search_path_CXX="${prev}${p}"
12604 else
12605 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12606 fi
12607 ;;
12608 # The "-l" case would never come before the object being
12609 # linked, so don't bother handling this case.
12610 esac
12611 else
12612 if test -z "$postdeps_CXX"; then
12613 postdeps_CXX="${prev}${p}"
12614 else
12615 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12616 fi
12617 fi
12618 ;;
12619
12620 *.$objext)
12621 # This assumes that the test object file only shows up
12622 # once in the compiler output.
12623 if test "$p" = "conftest.$objext"; then
12624 pre_test_object_deps_done=yes
12625 continue
12626 fi
12627
12628 if test "$pre_test_object_deps_done" = no; then
12629 if test -z "$predep_objects_CXX"; then
12630 predep_objects_CXX="$p"
12631 else
12632 predep_objects_CXX="$predep_objects_CXX $p"
12633 fi
12634 else
12635 if test -z "$postdep_objects_CXX"; then
12636 postdep_objects_CXX="$p"
12637 else
12638 postdep_objects_CXX="$postdep_objects_CXX $p"
12639 fi
12640 fi
12641 ;;
12642
12643 *) ;; # Ignore the rest.
12644
12645 esac
12646 done
12647
12648 # Clean up.
12649 rm -f a.out a.exe
12650 else
12651 echo "libtool.m4: error: problem compiling CXX test program"
12652 fi
12653
12654 $RM -f confest.$objext
12655
12656 # PORTME: override above test on systems where it is broken
12657 case $host_os in
12658 interix[3-9]*)
12659 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12660 # hack all around it, let's just trust "g++" to DTRT.
12661 predep_objects_CXX=
12662 postdep_objects_CXX=
12663 postdeps_CXX=
12664 ;;
12665
12666 linux*)
12667 case `$CC -V 2>&1 | sed 5q` in
12668 *Sun\ C*)
12669 # Sun C++ 5.9
12670
12671 # The more standards-conforming stlport4 library is
12672 # incompatible with the Cstd library. Avoid specifying
12673 # it if it's in CXXFLAGS. Ignore libCrun as
12674 # -library=stlport4 depends on it.
12675 case " $CXX $CXXFLAGS " in
12676 *" -library=stlport4 "*)
12677 solaris_use_stlport4=yes
12678 ;;
12679 esac
12680
12681 if test "$solaris_use_stlport4" != yes; then
12682 postdeps_CXX='-library=Cstd -library=Crun'
12683 fi
12684 ;;
12685 esac
12686 ;;
12687
12688 solaris*)
12689 case $cc_basename in
12690 CC*)
12691 # The more standards-conforming stlport4 library is
12692 # incompatible with the Cstd library. Avoid specifying
12693 # it if it's in CXXFLAGS. Ignore libCrun as
12694 # -library=stlport4 depends on it.
12695 case " $CXX $CXXFLAGS " in
12696 *" -library=stlport4 "*)
12697 solaris_use_stlport4=yes
12698 ;;
12699 esac
12700
12701 # Adding this requires a known-good setup of shared libraries for
12702 # Sun compiler versions before 5.6, else PIC objects from an old
12703 # archive will be linked into the output, leading to subtle bugs.
12704 if test "$solaris_use_stlport4" != yes; then
12705 postdeps_CXX='-library=Cstd -library=Crun'
12706 fi
12707 ;;
12708 esac
12709 ;;
12710 esac
12711
12712
12713 case " $postdeps_CXX " in
12714 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12715 esac
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742 lt_prog_compiler_wl_CXX=
12743 lt_prog_compiler_pic_CXX=
12744 lt_prog_compiler_static_CXX=
12745
12746 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12747 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12748
12749 # C++ specific cases for pic, static, wl, etc.
12750 if test "$GXX" = yes; then
12751 lt_prog_compiler_wl_CXX='-Wl,'
12752 lt_prog_compiler_static_CXX='-static'
12753
12754 case $host_os in
12755 aix*)
12756 # All AIX code is PIC.
12757 if test "$host_cpu" = ia64; then
12758 # AIX 5 now supports IA64 processor
12759 lt_prog_compiler_static_CXX='-Bstatic'
12760 fi
12761 ;;
12762 amigaos*)
12763 if test "$host_cpu" = m68k; then
12764 # FIXME: we need at least 68020 code to build shared libraries, but
12765 # adding the `-m68020' flag to GCC prevents building anything better,
12766 # like `-m68040'.
12767 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12768 fi
12769 ;;
12770 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12771 # PIC is the default for these OSes.
12772 ;;
12773 mingw* | cygwin* | os2* | pw32*)
12774 # This hack is so that the source file can tell whether it is being
12775 # built for inclusion in a dll (and should export symbols for example).
12776 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12777 # (--disable-auto-import) libraries
12778 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12779 ;;
12780 darwin* | rhapsody*)
12781 # PIC is the default on this platform
12782 # Common symbols not allowed in MH_DYLIB files
12783 lt_prog_compiler_pic_CXX='-fno-common'
12784 ;;
12785 *djgpp*)
12786 # DJGPP does not support shared libraries at all
12787 lt_prog_compiler_pic_CXX=
12788 ;;
12789 interix[3-9]*)
12790 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12791 # Instead, we relocate shared libraries at runtime.
12792 ;;
12793 sysv4*MP*)
12794 if test -d /usr/nec; then
12795 lt_prog_compiler_pic_CXX=-Kconform_pic
12796 fi
12797 ;;
12798 hpux*)
12799 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12800 # not for PA HP-UX.
12801 case $host_cpu in
12802 hppa*64*|ia64*)
12803 ;;
12804 *)
12805 lt_prog_compiler_pic_CXX='-fPIC'
12806 ;;
12807 esac
12808 ;;
12809 *qnx* | *nto*)
12810 # QNX uses GNU C++, but need to define -shared option too, otherwise
12811 # it will coredump.
12812 lt_prog_compiler_pic_CXX='-fPIC -shared'
12813 ;;
12814 *)
12815 lt_prog_compiler_pic_CXX='-fPIC'
12816 ;;
12817 esac
12818 else
12819 case $host_os in
12820 aix[4-9]*)
12821 # All AIX code is PIC.
12822 if test "$host_cpu" = ia64; then
12823 # AIX 5 now supports IA64 processor
12824 lt_prog_compiler_static_CXX='-Bstatic'
12825 else
12826 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12827 fi
12828 ;;
12829 chorus*)
12830 case $cc_basename in
12831 cxch68*)
12832 # Green Hills C++ Compiler
12833 # _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"
12834 ;;
12835 esac
12836 ;;
12837 darwin*)
12838 # PIC is the default on this platform
12839 # Common symbols not allowed in MH_DYLIB files
12840 case $cc_basename in
12841 xlc*)
12842 lt_prog_compiler_pic_CXX='-qnocommon'
12843 lt_prog_compiler_wl_CXX='-Wl,'
12844 ;;
12845 esac
12846 ;;
12847 dgux*)
12848 case $cc_basename in
12849 ec++*)
12850 lt_prog_compiler_pic_CXX='-KPIC'
12851 ;;
12852 ghcx*)
12853 # Green Hills C++ Compiler
12854 lt_prog_compiler_pic_CXX='-pic'
12855 ;;
12856 *)
12857 ;;
12858 esac
12859 ;;
12860 freebsd* | dragonfly*)
12861 # FreeBSD uses GNU C++
12862 ;;
12863 hpux9* | hpux10* | hpux11*)
12864 case $cc_basename in
12865 CC*)
12866 lt_prog_compiler_wl_CXX='-Wl,'
12867 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12868 if test "$host_cpu" != ia64; then
12869 lt_prog_compiler_pic_CXX='+Z'
12870 fi
12871 ;;
12872 aCC*)
12873 lt_prog_compiler_wl_CXX='-Wl,'
12874 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12875 case $host_cpu in
12876 hppa*64*|ia64*)
12877 # +Z the default
12878 ;;
12879 *)
12880 lt_prog_compiler_pic_CXX='+Z'
12881 ;;
12882 esac
12883 ;;
12884 *)
12885 ;;
12886 esac
12887 ;;
12888 interix*)
12889 # This is c89, which is MS Visual C++ (no shared libs)
12890 # Anyone wants to do a port?
12891 ;;
12892 irix5* | irix6* | nonstopux*)
12893 case $cc_basename in
12894 CC*)
12895 lt_prog_compiler_wl_CXX='-Wl,'
12896 lt_prog_compiler_static_CXX='-non_shared'
12897 # CC pic flag -KPIC is the default.
12898 ;;
12899 *)
12900 ;;
12901 esac
12902 ;;
12903 linux* | k*bsd*-gnu)
12904 case $cc_basename in
12905 KCC*)
12906 # KAI C++ Compiler
12907 lt_prog_compiler_wl_CXX='--backend -Wl,'
12908 lt_prog_compiler_pic_CXX='-fPIC'
12909 ;;
12910 icpc* | ecpc* )
12911 # Intel C++
12912 lt_prog_compiler_wl_CXX='-Wl,'
12913 lt_prog_compiler_pic_CXX='-KPIC'
12914 lt_prog_compiler_static_CXX='-static'
12915 ;;
12916 pgCC*)
12917 # Portland Group C++ compiler
12918 lt_prog_compiler_wl_CXX='-Wl,'
12919 lt_prog_compiler_pic_CXX='-fpic'
12920 lt_prog_compiler_static_CXX='-Bstatic'
12921 ;;
12922 cxx*)
12923 # Compaq C++
12924 # Make sure the PIC flag is empty. It appears that all Alpha
12925 # Linux and Compaq Tru64 Unix objects are PIC.
12926 lt_prog_compiler_pic_CXX=
12927 lt_prog_compiler_static_CXX='-non_shared'
12928 ;;
12929 *)
12930 case `$CC -V 2>&1 | sed 5q` in
12931 *Sun\ C*)
12932 # Sun C++ 5.9
12933 lt_prog_compiler_pic_CXX='-KPIC'
12934 lt_prog_compiler_static_CXX='-Bstatic'
12935 lt_prog_compiler_wl_CXX='-Qoption ld '
12936 ;;
12937 esac
12938 ;;
12939 esac
12940 ;;
12941 lynxos*)
12942 ;;
12943 m88k*)
12944 ;;
12945 mvs*)
12946 case $cc_basename in
12947 cxx*)
12948 lt_prog_compiler_pic_CXX='-W c,exportall'
12949 ;;
12950 *)
12951 ;;
12952 esac
12953 ;;
12954 netbsd*)
12955 ;;
12956 *qnx* | *nto*)
12957 # QNX uses GNU C++, but need to define -shared option too, otherwise
12958 # it will coredump.
12959 lt_prog_compiler_pic_CXX='-fPIC -shared'
12960 ;;
12961 osf3* | osf4* | osf5*)
12962 case $cc_basename in
12963 KCC*)
12964 lt_prog_compiler_wl_CXX='--backend -Wl,'
12965 ;;
12966 RCC*)
12967 # Rational C++ 2.4.1
12968 lt_prog_compiler_pic_CXX='-pic'
12969 ;;
12970 cxx*)
12971 # Digital/Compaq C++
12972 lt_prog_compiler_wl_CXX='-Wl,'
12973 # Make sure the PIC flag is empty. It appears that all Alpha
12974 # Linux and Compaq Tru64 Unix objects are PIC.
12975 lt_prog_compiler_pic_CXX=
12976 lt_prog_compiler_static_CXX='-non_shared'
12977 ;;
12978 *)
12979 ;;
12980 esac
12981 ;;
12982 psos*)
12983 ;;
12984 solaris*)
12985 case $cc_basename in
12986 CC*)
12987 # Sun C++ 4.2, 5.x and Centerline C++
12988 lt_prog_compiler_pic_CXX='-KPIC'
12989 lt_prog_compiler_static_CXX='-Bstatic'
12990 lt_prog_compiler_wl_CXX='-Qoption ld '
12991 ;;
12992 gcx*)
12993 # Green Hills C++ Compiler
12994 lt_prog_compiler_pic_CXX='-PIC'
12995 ;;
12996 *)
12997 ;;
12998 esac
12999 ;;
13000 sunos4*)
13001 case $cc_basename in
13002 CC*)
13003 # Sun C++ 4.x
13004 lt_prog_compiler_pic_CXX='-pic'
13005 lt_prog_compiler_static_CXX='-Bstatic'
13006 ;;
13007 lcc*)
13008 # Lucid
13009 lt_prog_compiler_pic_CXX='-pic'
13010 ;;
13011 *)
13012 ;;
13013 esac
13014 ;;
13015 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13016 case $cc_basename in
13017 CC*)
13018 lt_prog_compiler_wl_CXX='-Wl,'
13019 lt_prog_compiler_pic_CXX='-KPIC'
13020 lt_prog_compiler_static_CXX='-Bstatic'
13021 ;;
13022 esac
13023 ;;
13024 tandem*)
13025 case $cc_basename in
13026 NCC*)
13027 # NonStop-UX NCC 3.20
13028 lt_prog_compiler_pic_CXX='-KPIC'
13029 ;;
13030 *)
13031 ;;
13032 esac
13033 ;;
13034 vxworks*)
13035 ;;
13036 *)
13037 lt_prog_compiler_can_build_shared_CXX=no
13038 ;;
13039 esac
13040 fi
13041
13042 case $host_os in
13043 # For platforms which do not support PIC, -DPIC is meaningless:
13044 *djgpp*)
13045 lt_prog_compiler_pic_CXX=
13046 ;;
13047 *)
13048 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13049 ;;
13050 esac
13051 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13052 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
13053
13054
13055
13056 #
13057 # Check to make sure the PIC flag actually works.
13058 #
13059 if test -n "$lt_prog_compiler_pic_CXX"; then
13060 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13061 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
13062 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13063 echo $ECHO_N "(cached) $ECHO_C" >&6
13064 else
13065 lt_prog_compiler_pic_works_CXX=no
13066 ac_outfile=conftest.$ac_objext
13067 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13068 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13069 # Insert the option either (1) after the last *FLAGS variable, or
13070 # (2) before a word containing "conftest.", or (3) at the end.
13071 # Note that $ac_compile itself does not contain backslashes and begins
13072 # with a dollar sign (not a hyphen), so the echo should work correctly.
13073 # The option is referenced via a variable to avoid confusing sed.
13074 lt_compile=`echo "$ac_compile" | $SED \
13075 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13076 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13077 -e 's:$: $lt_compiler_flag:'`
13078 (eval echo "\"\$as_me:13078: $lt_compile\"" >&5)
13079 (eval "$lt_compile" 2>conftest.err)
13080 ac_status=$?
13081 cat conftest.err >&5
13082 echo "$as_me:13082: \$? = $ac_status" >&5
13083 if (exit $ac_status) && test -s "$ac_outfile"; then
13084 # The compiler can only warn and ignore the option if not recognized
13085 # So say no if there are warnings other than the usual output.
13086 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13087 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13088 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13089 lt_prog_compiler_pic_works_CXX=yes
13090 fi
13091 fi
13092 $RM conftest*
13093
13094 fi
13095 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13096 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
13097
13098 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13099 case $lt_prog_compiler_pic_CXX in
13100 "" | " "*) ;;
13101 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13102 esac
13103 else
13104 lt_prog_compiler_pic_CXX=
13105 lt_prog_compiler_can_build_shared_CXX=no
13106 fi
13107
13108 fi
13109
13110
13111
13112 #
13113 # Check to make sure the static flag actually works.
13114 #
13115 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13116 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13117 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13118 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13119 echo $ECHO_N "(cached) $ECHO_C" >&6
13120 else
13121 lt_prog_compiler_static_works_CXX=no
13122 save_LDFLAGS="$LDFLAGS"
13123 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13124 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13125 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13126 # The linker can only warn and ignore the option if not recognized
13127 # So say no if there are warnings
13128 if test -s conftest.err; then
13129 # Append any errors to the config.log.
13130 cat conftest.err 1>&5
13131 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13132 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13133 if diff conftest.exp conftest.er2 >/dev/null; then
13134 lt_prog_compiler_static_works_CXX=yes
13135 fi
13136 else
13137 lt_prog_compiler_static_works_CXX=yes
13138 fi
13139 fi
13140 $RM conftest*
13141 LDFLAGS="$save_LDFLAGS"
13142
13143 fi
13144 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13145 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
13146
13147 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13148 :
13149 else
13150 lt_prog_compiler_static_CXX=
13151 fi
13152
13153
13154
13155
13156 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13157 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13158 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13159 echo $ECHO_N "(cached) $ECHO_C" >&6
13160 else
13161 lt_cv_prog_compiler_c_o_CXX=no
13162 $RM -r conftest 2>/dev/null
13163 mkdir conftest
13164 cd conftest
13165 mkdir out
13166 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13167
13168 lt_compiler_flag="-o out/conftest2.$ac_objext"
13169 # Insert the option either (1) after the last *FLAGS variable, or
13170 # (2) before a word containing "conftest.", or (3) at the end.
13171 # Note that $ac_compile itself does not contain backslashes and begins
13172 # with a dollar sign (not a hyphen), so the echo should work correctly.
13173 lt_compile=`echo "$ac_compile" | $SED \
13174 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13175 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13176 -e 's:$: $lt_compiler_flag:'`
13177 (eval echo "\"\$as_me:13177: $lt_compile\"" >&5)
13178 (eval "$lt_compile" 2>out/conftest.err)
13179 ac_status=$?
13180 cat out/conftest.err >&5
13181 echo "$as_me:13181: \$? = $ac_status" >&5
13182 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13183 then
13184 # The compiler can only warn and ignore the option if not recognized
13185 # So say no if there are warnings
13186 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13187 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13188 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13189 lt_cv_prog_compiler_c_o_CXX=yes
13190 fi
13191 fi
13192 chmod u+w . 2>&5
13193 $RM conftest*
13194 # SGI C++ compiler will create directory out/ii_files/ for
13195 # template instantiation
13196 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13197 $RM out/* && rmdir out
13198 cd ..
13199 $RM -r conftest
13200 $RM conftest*
13201
13202 fi
13203 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13204 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
13205
13206
13207
13208 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13209 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13210 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13211 echo $ECHO_N "(cached) $ECHO_C" >&6
13212 else
13213 lt_cv_prog_compiler_c_o_CXX=no
13214 $RM -r conftest 2>/dev/null
13215 mkdir conftest
13216 cd conftest
13217 mkdir out
13218 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13219
13220 lt_compiler_flag="-o out/conftest2.$ac_objext"
13221 # Insert the option either (1) after the last *FLAGS variable, or
13222 # (2) before a word containing "conftest.", or (3) at the end.
13223 # Note that $ac_compile itself does not contain backslashes and begins
13224 # with a dollar sign (not a hyphen), so the echo should work correctly.
13225 lt_compile=`echo "$ac_compile" | $SED \
13226 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13227 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13228 -e 's:$: $lt_compiler_flag:'`
13229 (eval echo "\"\$as_me:13229: $lt_compile\"" >&5)
13230 (eval "$lt_compile" 2>out/conftest.err)
13231 ac_status=$?
13232 cat out/conftest.err >&5
13233 echo "$as_me:13233: \$? = $ac_status" >&5
13234 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13235 then
13236 # The compiler can only warn and ignore the option if not recognized
13237 # So say no if there are warnings
13238 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13239 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13240 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13241 lt_cv_prog_compiler_c_o_CXX=yes
13242 fi
13243 fi
13244 chmod u+w . 2>&5
13245 $RM conftest*
13246 # SGI C++ compiler will create directory out/ii_files/ for
13247 # template instantiation
13248 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13249 $RM out/* && rmdir out
13250 cd ..
13251 $RM -r conftest
13252 $RM conftest*
13253
13254 fi
13255 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13256 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
13257
13258
13259
13260
13261 hard_links="nottested"
13262 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13263 # do not overwrite the value of need_locks provided by the user
13264 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13265 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13266 hard_links=yes
13267 $RM conftest*
13268 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13269 touch conftest.a
13270 ln conftest.a conftest.b 2>&5 || hard_links=no
13271 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13272 echo "$as_me:$LINENO: result: $hard_links" >&5
13273 echo "${ECHO_T}$hard_links" >&6
13274 if test "$hard_links" = no; then
13275 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13276 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13277 need_locks=warn
13278 fi
13279 else
13280 need_locks=no
13281 fi
13282
13283
13284
13285 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13286 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13287
13288 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13289 case $host_os in
13290 aix[4-9]*)
13291 # If we're using GNU nm, then we don't want the "-C" option.
13292 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13293 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13294 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'
13295 else
13296 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'
13297 fi
13298 ;;
13299 pw32*)
13300 export_symbols_cmds_CXX="$ltdll_cmds"
13301 ;;
13302 cygwin* | mingw*)
13303 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'
13304 ;;
13305 *)
13306 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13307 ;;
13308 esac
13309
13310 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13311 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13312 test "$ld_shlibs_CXX" = no && can_build_shared=no
13313
13314 with_gnu_ld_CXX=$with_gnu_ld
13315
13316
13317
13318
13319
13320
13321 #
13322 # Do we need to explicitly link libc?
13323 #
13324 case "x$archive_cmds_need_lc_CXX" in
13325 x|xyes)
13326 # Assume -lc should be added
13327 archive_cmds_need_lc_CXX=yes
13328
13329 if test "$enable_shared" = yes && test "$GCC" = yes; then
13330 case $archive_cmds_CXX in
13331 *'~'*)
13332 # FIXME: we may have to deal with multi-command sequences.
13333 ;;
13334 '$CC '*)
13335 # Test whether the compiler implicitly links with -lc since on some
13336 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13337 # to ld, don't add -lc before -lgcc.
13338 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13339 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13340 $RM conftest*
13341 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13342
13343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13344 (eval $ac_compile) 2>&5
13345 ac_status=$?
13346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13347 (exit $ac_status); } 2>conftest.err; then
13348 soname=conftest
13349 lib=conftest
13350 libobjs=conftest.$ac_objext
13351 deplibs=
13352 wl=$lt_prog_compiler_wl_CXX
13353 pic_flag=$lt_prog_compiler_pic_CXX
13354 compiler_flags=-v
13355 linker_flags=-v
13356 verstring=
13357 output_objdir=.
13358 libname=conftest
13359 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13360 allow_undefined_flag_CXX=
13361 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
13362 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13363 ac_status=$?
13364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13365 (exit $ac_status); }
13366 then
13367 archive_cmds_need_lc_CXX=no
13368 else
13369 archive_cmds_need_lc_CXX=yes
13370 fi
13371 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13372 else
13373 cat conftest.err 1>&5
13374 fi
13375 $RM conftest*
13376 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13377 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
13378 ;;
13379 esac
13380 fi
13381 ;;
13382 esac
13383
13384
13385
13386
13387
13388
13389
13390
13391
13392
13393
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
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431
13432
13433
13434
13435
13436
13437
13438
13439
13440
13441
13442
13443
13444
13445
13446
13447 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13448 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13449 withGCC=$GXX
13450 library_names_spec=
13451 libname_spec='lib$name'
13452 soname_spec=
13453 shrext_cmds=".so"
13454 postinstall_cmds=
13455 postuninstall_cmds=
13456 finish_cmds=
13457 finish_eval=
13458 shlibpath_var=
13459 shlibpath_overrides_runpath=unknown
13460 version_type=none
13461 dynamic_linker="$host_os ld.so"
13462 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13463 need_lib_prefix=unknown
13464 hardcode_into_libs=no
13465
13466 # when you set need_version to no, make sure it does not cause -set_version
13467 # flags to be left without arguments
13468 need_version=unknown
13469
13470 case $host_os in
13471 aix3*)
13472 version_type=linux
13473 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13474 shlibpath_var=LIBPATH
13475
13476 # AIX 3 has no versioning support, so we append a major version to the name.
13477 soname_spec='${libname}${release}${shared_ext}$major'
13478 ;;
13479
13480 aix[4-9]*)
13481 version_type=linux
13482 need_lib_prefix=no
13483 need_version=no
13484 hardcode_into_libs=yes
13485 if test "$host_cpu" = ia64; then
13486 # AIX 5 supports IA64
13487 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13488 shlibpath_var=LD_LIBRARY_PATH
13489 else
13490 # With GCC up to 2.95.x, collect2 would create an import file
13491 # for dependence libraries. The import file would start with
13492 # the line `#! .'. This would cause the generated library to
13493 # depend on `.', always an invalid library. This was fixed in
13494 # development snapshots of GCC prior to 3.0.
13495 case $host_os in
13496 aix4 | aix4.[01] | aix4.[01].*)
13497 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13498 echo ' yes '
13499 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13500 :
13501 else
13502 can_build_shared=no
13503 fi
13504 ;;
13505 esac
13506 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13507 # soname into executable. Probably we can add versioning support to
13508 # collect2, so additional links can be useful in future.
13509 if test "$aix_use_runtimelinking" = yes; then
13510 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13511 # instead of lib<name>.a to let people know that these are not
13512 # typical AIX shared libraries.
13513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13514 else
13515 # We preserve .a as extension for shared libraries through AIX4.2
13516 # and later when we are not doing run time linking.
13517 library_names_spec='${libname}${release}.a $libname.a'
13518 soname_spec='${libname}${release}${shared_ext}$major'
13519 fi
13520 shlibpath_var=LIBPATH
13521 fi
13522 ;;
13523
13524 amigaos*)
13525 if test "$host_cpu" = m68k; then
13526 library_names_spec='$libname.ixlibrary $libname.a'
13527 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13528 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'
13529 else
13530 dynamic_linker=no
13531 fi
13532 ;;
13533
13534 beos*)
13535 library_names_spec='${libname}${shared_ext}'
13536 dynamic_linker="$host_os ld.so"
13537 shlibpath_var=LIBRARY_PATH
13538 ;;
13539
13540 bsdi[45]*)
13541 version_type=linux
13542 need_version=no
13543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13544 soname_spec='${libname}${release}${shared_ext}$major'
13545 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13546 shlibpath_var=LD_LIBRARY_PATH
13547 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13548 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13549 # the default ld.so.conf also contains /usr/contrib/lib and
13550 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13551 # libtool to hard-code these into programs
13552 ;;
13553
13554 cygwin* | mingw* | pw32*)
13555 version_type=windows
13556 shrext_cmds=".dll"
13557 need_version=no
13558 need_lib_prefix=no
13559
13560 case $withGCC,$host_os in
13561 yes,cygwin* | yes,mingw* | yes,pw32*)
13562 library_names_spec='$libname.dll.a'
13563 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13564 postinstall_cmds='base_file=`basename \${file}`~
13565 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13566 dldir=$destdir/`dirname \$dlpath`~
13567 test -d \$dldir || mkdir -p \$dldir~
13568 $install_prog $dir/$dlname \$dldir/$dlname~
13569 chmod a+x \$dldir/$dlname~
13570 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13571 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13572 fi'
13573 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13574 dlpath=$dir/\$dldll~
13575 $RM \$dlpath'
13576 shlibpath_overrides_runpath=yes
13577
13578 case $host_os in
13579 cygwin*)
13580 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13581 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13582 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13583 ;;
13584 mingw*)
13585 # MinGW DLLs use traditional 'lib' prefix
13586 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13587 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13588 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13589 # It is most probably a Windows format PATH printed by
13590 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13591 # path with ; separators, and with drive letters. We can handle the
13592 # drive letters (cygwin fileutils understands them), so leave them,
13593 # especially as we might pass files found there to a mingw objdump,
13594 # which wouldn't understand a cygwinified path. Ahh.
13595 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13596 else
13597 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13598 fi
13599 ;;
13600 pw32*)
13601 # pw32 DLLs use 'pw' prefix rather than 'lib'
13602 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13603 ;;
13604 esac
13605 ;;
13606
13607 *)
13608 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13609 ;;
13610 esac
13611 dynamic_linker='Win32 ld.exe'
13612 # FIXME: first we should search . and the directory the executable is in
13613 shlibpath_var=PATH
13614 ;;
13615
13616 darwin* | rhapsody*)
13617 dynamic_linker="$host_os dyld"
13618 version_type=darwin
13619 need_lib_prefix=no
13620 need_version=no
13621 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13622 soname_spec='${libname}${release}${major}$shared_ext'
13623 shlibpath_overrides_runpath=yes
13624 shlibpath_var=DYLD_LIBRARY_PATH
13625 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13626
13627 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13628 ;;
13629
13630 dgux*)
13631 version_type=linux
13632 need_lib_prefix=no
13633 need_version=no
13634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13635 soname_spec='${libname}${release}${shared_ext}$major'
13636 shlibpath_var=LD_LIBRARY_PATH
13637 ;;
13638
13639 freebsd1*)
13640 dynamic_linker=no
13641 ;;
13642
13643 freebsd* | dragonfly*)
13644 # DragonFly does not have aout. When/if they implement a new
13645 # versioning mechanism, adjust this.
13646 if test -x /usr/bin/objformat; then
13647 objformat=`/usr/bin/objformat`
13648 else
13649 case $host_os in
13650 freebsd[123]*) objformat=aout ;;
13651 *) objformat=elf ;;
13652 esac
13653 fi
13654 version_type=freebsd-$objformat
13655 case $version_type in
13656 freebsd-elf*)
13657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13658 need_version=no
13659 need_lib_prefix=no
13660 ;;
13661 freebsd-*)
13662 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13663 need_version=yes
13664 ;;
13665 esac
13666 shlibpath_var=LD_LIBRARY_PATH
13667 case $host_os in
13668 freebsd2*)
13669 shlibpath_overrides_runpath=yes
13670 ;;
13671 freebsd3.[01]* | freebsdelf3.[01]*)
13672 shlibpath_overrides_runpath=yes
13673 hardcode_into_libs=yes
13674 ;;
13675 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13676 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13677 shlibpath_overrides_runpath=no
13678 hardcode_into_libs=yes
13679 ;;
13680 *) # from 4.6 on, and DragonFly
13681 shlibpath_overrides_runpath=yes
13682 hardcode_into_libs=yes
13683 ;;
13684 esac
13685 ;;
13686
13687 gnu*)
13688 version_type=linux
13689 need_lib_prefix=no
13690 need_version=no
13691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13692 soname_spec='${libname}${release}${shared_ext}$major'
13693 shlibpath_var=LD_LIBRARY_PATH
13694 hardcode_into_libs=yes
13695 ;;
13696
13697 hpux9* | hpux10* | hpux11*)
13698 # Give a soname corresponding to the major version so that dld.sl refuses to
13699 # link against other versions.
13700 version_type=sunos
13701 need_lib_prefix=no
13702 need_version=no
13703 case $host_cpu in
13704 ia64*)
13705 shrext_cmds='.so'
13706 hardcode_into_libs=yes
13707 dynamic_linker="$host_os dld.so"
13708 shlibpath_var=LD_LIBRARY_PATH
13709 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13711 soname_spec='${libname}${release}${shared_ext}$major'
13712 if test "X$HPUX_IA64_MODE" = X32; then
13713 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13714 else
13715 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13716 fi
13717 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13718 ;;
13719 hppa*64*)
13720 shrext_cmds='.sl'
13721 hardcode_into_libs=yes
13722 dynamic_linker="$host_os dld.sl"
13723 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13724 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13726 soname_spec='${libname}${release}${shared_ext}$major'
13727 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13728 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13729 ;;
13730 *)
13731 shrext_cmds='.sl'
13732 dynamic_linker="$host_os dld.sl"
13733 shlibpath_var=SHLIB_PATH
13734 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13736 soname_spec='${libname}${release}${shared_ext}$major'
13737 ;;
13738 esac
13739 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13740 postinstall_cmds='chmod 555 $lib'
13741 ;;
13742
13743 interix[3-9]*)
13744 version_type=linux
13745 need_lib_prefix=no
13746 need_version=no
13747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13748 soname_spec='${libname}${release}${shared_ext}$major'
13749 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13750 shlibpath_var=LD_LIBRARY_PATH
13751 shlibpath_overrides_runpath=no
13752 hardcode_into_libs=yes
13753 ;;
13754
13755 irix5* | irix6* | nonstopux*)
13756 case $host_os in
13757 nonstopux*) version_type=nonstopux ;;
13758 *)
13759 if test "$lt_cv_prog_gnu_ld" = yes; then
13760 version_type=linux
13761 else
13762 version_type=irix
13763 fi ;;
13764 esac
13765 need_lib_prefix=no
13766 need_version=no
13767 soname_spec='${libname}${release}${shared_ext}$major'
13768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13769 case $host_os in
13770 irix5* | nonstopux*)
13771 libsuff= shlibsuff=
13772 ;;
13773 *)
13774 case $LD in # libtool.m4 will add one of these switches to LD
13775 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13776 libsuff= shlibsuff= libmagic=32-bit;;
13777 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13778 libsuff=32 shlibsuff=N32 libmagic=N32;;
13779 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13780 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13781 *) libsuff= shlibsuff= libmagic=never-match;;
13782 esac
13783 ;;
13784 esac
13785 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13786 shlibpath_overrides_runpath=no
13787 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13788 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13789 hardcode_into_libs=yes
13790 ;;
13791
13792 # No shared lib support for Linux oldld, aout, or coff.
13793 linux*oldld* | linux*aout* | linux*coff*)
13794 dynamic_linker=no
13795 ;;
13796
13797 # This must be Linux ELF.
13798 linux* | k*bsd*-gnu)
13799 version_type=linux
13800 need_lib_prefix=no
13801 need_version=no
13802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13803 soname_spec='${libname}${release}${shared_ext}$major'
13804 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13805 shlibpath_var=LD_LIBRARY_PATH
13806 shlibpath_overrides_runpath=no
13807 # Some binutils ld are patched to set DT_RUNPATH
13808 save_LDFLAGS=$LDFLAGS
13809 save_libdir=$libdir
13810 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
13811 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
13812 if test x$gcc_no_link = xyes; then
13813 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13814 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13815 { (exit 1); exit 1; }; }
13816 fi
13817 cat >conftest.$ac_ext <<_ACEOF
13818 /* confdefs.h. */
13819 _ACEOF
13820 cat confdefs.h >>conftest.$ac_ext
13821 cat >>conftest.$ac_ext <<_ACEOF
13822 /* end confdefs.h. */
13823
13824 int
13825 main ()
13826 {
13827
13828 ;
13829 return 0;
13830 }
13831 _ACEOF
13832 rm -f conftest.$ac_objext conftest$ac_exeext
13833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13834 (eval $ac_link) 2>conftest.er1
13835 ac_status=$?
13836 grep -v '^ *+' conftest.er1 >conftest.err
13837 rm -f conftest.er1
13838 cat conftest.err >&5
13839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13840 (exit $ac_status); } &&
13841 { ac_try='test -z "$ac_cxx_werror_flag"
13842 || test ! -s conftest.err'
13843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13844 (eval $ac_try) 2>&5
13845 ac_status=$?
13846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13847 (exit $ac_status); }; } &&
13848 { ac_try='test -s conftest$ac_exeext'
13849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13850 (eval $ac_try) 2>&5
13851 ac_status=$?
13852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853 (exit $ac_status); }; }; then
13854 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
13855 shlibpath_overrides_runpath=yes
13856 fi
13857
13858 else
13859 echo "$as_me: failed program was:" >&5
13860 sed 's/^/| /' conftest.$ac_ext >&5
13861
13862 fi
13863 rm -f conftest.err conftest.$ac_objext \
13864 conftest$ac_exeext conftest.$ac_ext
13865 LDFLAGS=$save_LDFLAGS
13866 libdir=$save_libdir
13867
13868 # This implies no fast_install, which is unacceptable.
13869 # Some rework will be needed to allow for fast_install
13870 # before this can be enabled.
13871 hardcode_into_libs=yes
13872
13873 # Append ld.so.conf contents to the search path
13874 if test -f /etc/ld.so.conf; then
13875 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/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13876 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13877 fi
13878
13879 # We used to test for /lib/ld.so.1 and disable shared libraries on
13880 # powerpc, because MkLinux only supported shared libraries with the
13881 # GNU dynamic linker. Since this was broken with cross compilers,
13882 # most powerpc-linux boxes support dynamic linking these days and
13883 # people can always --disable-shared, the test was removed, and we
13884 # assume the GNU/Linux dynamic linker is in use.
13885 dynamic_linker='GNU/Linux ld.so'
13886 ;;
13887
13888 netbsd*)
13889 version_type=sunos
13890 need_lib_prefix=no
13891 need_version=no
13892 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13894 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13895 dynamic_linker='NetBSD (a.out) ld.so'
13896 else
13897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13898 soname_spec='${libname}${release}${shared_ext}$major'
13899 dynamic_linker='NetBSD ld.elf_so'
13900 fi
13901 shlibpath_var=LD_LIBRARY_PATH
13902 shlibpath_overrides_runpath=yes
13903 hardcode_into_libs=yes
13904 ;;
13905
13906 newsos6)
13907 version_type=linux
13908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13909 shlibpath_var=LD_LIBRARY_PATH
13910 shlibpath_overrides_runpath=yes
13911 ;;
13912
13913 *nto* | *qnx*)
13914 version_type=qnx
13915 need_lib_prefix=no
13916 need_version=no
13917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13918 soname_spec='${libname}${release}${shared_ext}$major'
13919 shlibpath_var=LD_LIBRARY_PATH
13920 shlibpath_overrides_runpath=no
13921 hardcode_into_libs=yes
13922 dynamic_linker='ldqnx.so'
13923 ;;
13924
13925 openbsd*)
13926 version_type=sunos
13927 sys_lib_dlsearch_path_spec="/usr/lib"
13928 need_lib_prefix=no
13929 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13930 case $host_os in
13931 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13932 *) need_version=no ;;
13933 esac
13934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13935 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13936 shlibpath_var=LD_LIBRARY_PATH
13937 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13938 case $host_os in
13939 openbsd2.[89] | openbsd2.[89].*)
13940 shlibpath_overrides_runpath=no
13941 ;;
13942 *)
13943 shlibpath_overrides_runpath=yes
13944 ;;
13945 esac
13946 else
13947 shlibpath_overrides_runpath=yes
13948 fi
13949 ;;
13950
13951 os2*)
13952 libname_spec='$name'
13953 shrext_cmds=".dll"
13954 need_lib_prefix=no
13955 library_names_spec='$libname${shared_ext} $libname.a'
13956 dynamic_linker='OS/2 ld.exe'
13957 shlibpath_var=LIBPATH
13958 ;;
13959
13960 osf3* | osf4* | osf5*)
13961 version_type=osf
13962 need_lib_prefix=no
13963 need_version=no
13964 soname_spec='${libname}${release}${shared_ext}$major'
13965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13966 shlibpath_var=LD_LIBRARY_PATH
13967 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13968 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13969 ;;
13970
13971 rdos*)
13972 dynamic_linker=no
13973 ;;
13974
13975 solaris*)
13976 version_type=linux
13977 need_lib_prefix=no
13978 need_version=no
13979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13980 soname_spec='${libname}${release}${shared_ext}$major'
13981 shlibpath_var=LD_LIBRARY_PATH
13982 shlibpath_overrides_runpath=yes
13983 hardcode_into_libs=yes
13984 # ldd complains unless libraries are executable
13985 postinstall_cmds='chmod +x $lib'
13986 ;;
13987
13988 sunos4*)
13989 version_type=sunos
13990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13991 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13992 shlibpath_var=LD_LIBRARY_PATH
13993 shlibpath_overrides_runpath=yes
13994 if test "$with_gnu_ld" = yes; then
13995 need_lib_prefix=no
13996 fi
13997 need_version=yes
13998 ;;
13999
14000 sysv4 | sysv4.3*)
14001 version_type=linux
14002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14003 soname_spec='${libname}${release}${shared_ext}$major'
14004 shlibpath_var=LD_LIBRARY_PATH
14005 case $host_vendor in
14006 sni)
14007 shlibpath_overrides_runpath=no
14008 need_lib_prefix=no
14009 runpath_var=LD_RUN_PATH
14010 ;;
14011 siemens)
14012 need_lib_prefix=no
14013 ;;
14014 motorola)
14015 need_lib_prefix=no
14016 need_version=no
14017 shlibpath_overrides_runpath=no
14018 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14019 ;;
14020 esac
14021 ;;
14022
14023 sysv4*MP*)
14024 if test -d /usr/nec ;then
14025 version_type=linux
14026 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14027 soname_spec='$libname${shared_ext}.$major'
14028 shlibpath_var=LD_LIBRARY_PATH
14029 fi
14030 ;;
14031
14032 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14033 version_type=freebsd-elf
14034 need_lib_prefix=no
14035 need_version=no
14036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14037 soname_spec='${libname}${release}${shared_ext}$major'
14038 shlibpath_var=LD_LIBRARY_PATH
14039 shlibpath_overrides_runpath=yes
14040 hardcode_into_libs=yes
14041 if test "$with_gnu_ld" = yes; then
14042 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14043 else
14044 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14045 case $host_os in
14046 sco3.2v5*)
14047 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14048 ;;
14049 esac
14050 fi
14051 sys_lib_dlsearch_path_spec='/usr/lib'
14052 ;;
14053
14054 tpf*)
14055 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14056 version_type=linux
14057 need_lib_prefix=no
14058 need_version=no
14059 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14060 shlibpath_var=LD_LIBRARY_PATH
14061 shlibpath_overrides_runpath=no
14062 hardcode_into_libs=yes
14063 ;;
14064
14065 uts4*)
14066 version_type=linux
14067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14068 soname_spec='${libname}${release}${shared_ext}$major'
14069 shlibpath_var=LD_LIBRARY_PATH
14070 ;;
14071
14072 *)
14073 dynamic_linker=no
14074 ;;
14075 esac
14076 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14077 echo "${ECHO_T}$dynamic_linker" >&6
14078 test "$dynamic_linker" = no && can_build_shared=no
14079
14080 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14081 if test "$GCC" = yes; then
14082 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14083 fi
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
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 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14121 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14122 hardcode_action_CXX=
14123 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14124 test -n "$runpath_var_CXX" ||
14125 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14126
14127 # We can hardcode non-existent directories.
14128 if test "$hardcode_direct_CXX" != no &&
14129 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14130 # have to relink, otherwise we might link with an installed library
14131 # when we should be linking with a yet-to-be-installed one
14132 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14133 test "$hardcode_minus_L_CXX" != no; then
14134 # Linking always hardcodes the temporary library directory.
14135 hardcode_action_CXX=relink
14136 else
14137 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14138 hardcode_action_CXX=immediate
14139 fi
14140 else
14141 # We cannot hardcode anything, or else we can only hardcode existing
14142 # directories.
14143 hardcode_action_CXX=unsupported
14144 fi
14145 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14146 echo "${ECHO_T}$hardcode_action_CXX" >&6
14147
14148 if test "$hardcode_action_CXX" = relink ||
14149 test "$inherit_rpath_CXX" = yes; then
14150 # Fast installation is not supported
14151 enable_fast_install=no
14152 elif test "$shlibpath_overrides_runpath" = yes ||
14153 test "$enable_shared" = no; then
14154 # Fast installation is not necessary
14155 enable_fast_install=needless
14156 fi
14157
14158
14159
14160
14161
14162
14163
14164 fi # test -n "$compiler"
14165
14166 CC=$lt_save_CC
14167 LDCXX=$LD
14168 LD=$lt_save_LD
14169 GCC=$lt_save_GCC
14170 with_gnu_ld=$lt_save_with_gnu_ld
14171 lt_cv_path_LDCXX=$lt_cv_path_LD
14172 lt_cv_path_LD=$lt_save_path_LD
14173 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14174 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14175 fi # test "$_lt_caught_CXX_error" != yes
14176
14177 ac_ext=c
14178 ac_cpp='$CPP $CPPFLAGS'
14179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195 ac_config_commands="$ac_config_commands libtool"
14196
14197
14198
14199
14200 # Only expand once:
14201
14202
14203
14204
14205 # Check whether --with-target-subdir or --without-target-subdir was given.
14206 if test "${with_target_subdir+set}" = set; then
14207 withval="$with_target_subdir"
14208
14209 fi;
14210
14211 # Check whether --with-cross-host or --without-cross-host was given.
14212 if test "${with_cross_host+set}" = set; then
14213 withval="$with_cross_host"
14214
14215 fi;
14216
14217 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
14218 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
14219 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
14220 if test -z "$THREADS"; then
14221 THREADS=no
14222 fi
14223 echo "$as_me:$LINENO: result: $THREADS" >&5
14224 echo "${ECHO_T}$THREADS" >&6
14225
14226 # Check whether --enable-parallel-mark or --disable-parallel-mark was given.
14227 if test "${enable_parallel_mark+set}" = set; then
14228 enableval="$enable_parallel_mark"
14229 case "$THREADS" in
14230 no | none | single)
14231 { { echo "$as_me:$LINENO: error: Parallel mark requires --enable-threads=x spec" >&5
14232 echo "$as_me: error: Parallel mark requires --enable-threads=x spec" >&2;}
14233 { (exit 1); exit 1; }; }
14234 ;;
14235 esac
14236
14237 fi;
14238
14239 AM_CPPFLAGS="-I`cd $srcdir && ${PWDCMD-pwd}`/include"
14240 THREADLIBS=
14241 case "$THREADS" in
14242 no | none | single)
14243 THREADS=none
14244 ;;
14245 posix | posix95 | pthreads)
14246 THREADS=posix
14247 THREADLIBS=-lpthread
14248 case "$host" in
14249 x86-*-linux* | ia64-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* | alpha-*-linux*)
14250
14251 cat >>confdefs.h <<\_ACEOF
14252 #define GC_LINUX_THREADS 1
14253 _ACEOF
14254
14255
14256 cat >>confdefs.h <<\_ACEOF
14257 #define _REENTRANT 1
14258 _ACEOF
14259
14260 if test "${enable_parallel_mark}" = yes; then
14261
14262 cat >>confdefs.h <<\_ACEOF
14263 #define PARALLEL_MARK 1
14264 _ACEOF
14265
14266 fi
14267
14268 cat >>confdefs.h <<\_ACEOF
14269 #define THREAD_LOCAL_ALLOC 1
14270 _ACEOF
14271
14272 ;;
14273 *-*-linux*)
14274 cat >>confdefs.h <<\_ACEOF
14275 #define GC_LINUX_THREADS 1
14276 _ACEOF
14277
14278 cat >>confdefs.h <<\_ACEOF
14279 #define _REENTRANT 1
14280 _ACEOF
14281
14282 ;;
14283 *-*-aix*)
14284
14285 cat >>confdefs.h <<\_ACEOF
14286 #define GC_AIX_THREADS 1
14287 _ACEOF
14288
14289 cat >>confdefs.h <<\_ACEOF
14290 #define _REENTRANT 1
14291 _ACEOF
14292
14293 ;;
14294 *-*-hpux11*)
14295 { echo "$as_me:$LINENO: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&5
14296 echo "$as_me: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&2;}
14297
14298 cat >>confdefs.h <<\_ACEOF
14299 #define GC_HPUX_THREADS 1
14300 _ACEOF
14301
14302
14303 cat >>confdefs.h <<\_ACEOF
14304 #define _POSIX_C_SOURCE 199506L
14305 _ACEOF
14306
14307 if test "${enable_parallel_mark}" = yes; then
14308 cat >>confdefs.h <<\_ACEOF
14309 #define PARALLEL_MARK 1
14310 _ACEOF
14311
14312 fi
14313 cat >>confdefs.h <<\_ACEOF
14314 #define THREAD_LOCAL_ALLOC 1
14315 _ACEOF
14316
14317 THREADLIBS="-lpthread -lrt"
14318 # HPUX needs REENTRANT for the _r calls.
14319
14320 cat >>confdefs.h <<\_ACEOF
14321 #define _REENTRANT 1
14322 _ACEOF
14323
14324 ;;
14325 *-*-hpux10*)
14326 { echo "$as_me:$LINENO: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&5
14327 echo "$as_me: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&2;}
14328 ;;
14329 *-*-kfreebsd*-gnu)
14330 cat >>confdefs.h <<\_ACEOF
14331 #define GC_FREEBSD_THREADS 1
14332 _ACEOF
14333
14334 INCLUDES="$INCLUDES -pthread"
14335 THREADDLLIBS=-pthread
14336 cat >>confdefs.h <<\_ACEOF
14337 #define _REENTRANT 1
14338 _ACEOF
14339
14340 if test "${enable_parallel_mark}" = yes; then
14341 cat >>confdefs.h <<\_ACEOF
14342 #define PARALLEL_MARK 1
14343 _ACEOF
14344
14345 fi
14346 cat >>confdefs.h <<\_ACEOF
14347 #define THREAD_LOCAL_ALLOC 1
14348 _ACEOF
14349
14350
14351 cat >>confdefs.h <<\_ACEOF
14352 #define USE_COMPILER_TLS 1
14353 _ACEOF
14354
14355 ;;
14356 *-*-freebsd*)
14357 { echo "$as_me:$LINENO: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&5
14358 echo "$as_me: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&2;}
14359
14360 cat >>confdefs.h <<\_ACEOF
14361 #define GC_FREEBSD_THREADS 1
14362 _ACEOF
14363
14364 AM_CPPFLAGS="$AM_CPPFLAGS -pthread"
14365 THREADLIBS=-pthread
14366 ;;
14367 *-*-solaris*)
14368
14369 cat >>confdefs.h <<\_ACEOF
14370 #define GC_SOLARIS_PTHREADS 1
14371 _ACEOF
14372
14373 # Need to use alternate thread library, otherwise gctest hangs
14374 # on Solaris 8.
14375 multi_os_directory=`$CC -print-multi-os-directory`
14376 THREADLIBS="-L/usr/lib/lwp/$multi_os_directory \
14377 -R/usr/lib/lwp/$multi_os_directory -lpthread -lthread -lrt"
14378 ;;
14379 *-*-irix*)
14380
14381 cat >>confdefs.h <<\_ACEOF
14382 #define GC_IRIX_THREADS 1
14383 _ACEOF
14384
14385 ;;
14386 *-*-cygwin*)
14387
14388 cat >>confdefs.h <<\_ACEOF
14389 #define GC_WIN32_THREADS 1
14390 _ACEOF
14391
14392 ;;
14393 *-*-darwin*)
14394
14395 cat >>confdefs.h <<\_ACEOF
14396 #define GC_DARWIN_THREADS 1
14397 _ACEOF
14398
14399 cat >>confdefs.h <<\_ACEOF
14400 #define THREAD_LOCAL_ALLOC 1
14401 _ACEOF
14402
14403 if test "${enable_parallel_mark}" = yes; then
14404 cat >>confdefs.h <<\_ACEOF
14405 #define PARALLEL_MARK 1
14406 _ACEOF
14407
14408 fi
14409 ;;
14410 *-*-osf*)
14411
14412 cat >>confdefs.h <<\_ACEOF
14413 #define GC_OSF1_THREADS 1
14414 _ACEOF
14415
14416 if test "${enable_parallel_mark}" = yes; then
14417 cat >>confdefs.h <<\_ACEOF
14418 #define PARALLEL_MARK 1
14419 _ACEOF
14420
14421 cat >>confdefs.h <<\_ACEOF
14422 #define THREAD_LOCAL_ALLOC 1
14423 _ACEOF
14424
14425 # May want to enable it in other cases, too.
14426 # Measurements havent yet been done.
14427 fi
14428 AM_CPPFLAGS="$AM_CPPFLAGS -pthread"
14429 THREADLIBS="-lpthread -lrt"
14430 ;;
14431 esac
14432 ;;
14433 win32)
14434 cat >>confdefs.h <<\_ACEOF
14435 #define GC_WIN32_THREADS 1
14436 _ACEOF
14437
14438 ;;
14439 dgux386)
14440 THREADS=dgux386
14441 echo "$as_me:$LINENO: result: $THREADLIBS" >&5
14442 echo "${ECHO_T}$THREADLIBS" >&6
14443 # Use pthread GCC switch
14444 THREADLIBS=-pthread
14445 if test "${enable_parallel_mark}" = yes; then
14446 cat >>confdefs.h <<\_ACEOF
14447 #define PARALLEL_MARK 1
14448 _ACEOF
14449
14450 fi
14451 cat >>confdefs.h <<\_ACEOF
14452 #define THREAD_LOCAL_ALLOC 1
14453 _ACEOF
14454
14455
14456 cat >>confdefs.h <<\_ACEOF
14457 #define GC_DGUX386_THREADS 1
14458 _ACEOF
14459
14460
14461 cat >>confdefs.h <<\_ACEOF
14462 #define DGUX_THREADS 1
14463 _ACEOF
14464
14465 # Enable _POSIX4A_DRAFT10_SOURCE with flag -pthread
14466 AM_CPPFLAGS="-pthread $AM_CPPFLAGS"
14467 ;;
14468 aix)
14469 THREADS=posix
14470 THREADLIBS=-lpthread
14471 cat >>confdefs.h <<\_ACEOF
14472 #define GC_AIX_THREADS 1
14473 _ACEOF
14474
14475 cat >>confdefs.h <<\_ACEOF
14476 #define _REENTRANT 1
14477 _ACEOF
14478
14479 ;;
14480 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
14481 { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
14482 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
14483 { (exit 1); exit 1; }; }
14484 ;;
14485 *)
14486 { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
14487 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
14488 { (exit 1); exit 1; }; }
14489 ;;
14490 esac
14491
14492
14493 case "$host" in
14494 powerpc-*-darwin*)
14495 powerpc_darwin=true
14496 ;;
14497 esac
14498
14499
14500 if test x$powerpc_darwin = xtrue; then
14501 POWERPC_DARWIN_TRUE=
14502 POWERPC_DARWIN_FALSE='#'
14503 else
14504 POWERPC_DARWIN_TRUE='#'
14505 POWERPC_DARWIN_FALSE=
14506 fi
14507
14508
14509 # Darwin needs a few extra special tests to deal with variation in the
14510 # system headers.
14511 case "$host" in
14512 powerpc*-*-darwin*)
14513 echo "$as_me:$LINENO: checking for ppc_thread_state_t.r0" >&5
14514 echo $ECHO_N "checking for ppc_thread_state_t.r0... $ECHO_C" >&6
14515 if test "${ac_cv_member_ppc_thread_state_t_r0+set}" = set; then
14516 echo $ECHO_N "(cached) $ECHO_C" >&6
14517 else
14518 cat >conftest.$ac_ext <<_ACEOF
14519 /* confdefs.h. */
14520 _ACEOF
14521 cat confdefs.h >>conftest.$ac_ext
14522 cat >>conftest.$ac_ext <<_ACEOF
14523 /* end confdefs.h. */
14524 #include <mach/thread_status.h>
14525
14526 int
14527 main ()
14528 {
14529 static ppc_thread_state_t ac_aggr;
14530 if (ac_aggr.r0)
14531 return 0;
14532 ;
14533 return 0;
14534 }
14535 _ACEOF
14536 rm -f conftest.$ac_objext
14537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14538 (eval $ac_compile) 2>conftest.er1
14539 ac_status=$?
14540 grep -v '^ *+' conftest.er1 >conftest.err
14541 rm -f conftest.er1
14542 cat conftest.err >&5
14543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14544 (exit $ac_status); } &&
14545 { ac_try='test -z "$ac_c_werror_flag"
14546 || test ! -s conftest.err'
14547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14548 (eval $ac_try) 2>&5
14549 ac_status=$?
14550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14551 (exit $ac_status); }; } &&
14552 { ac_try='test -s conftest.$ac_objext'
14553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14554 (eval $ac_try) 2>&5
14555 ac_status=$?
14556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14557 (exit $ac_status); }; }; then
14558 ac_cv_member_ppc_thread_state_t_r0=yes
14559 else
14560 echo "$as_me: failed program was:" >&5
14561 sed 's/^/| /' conftest.$ac_ext >&5
14562
14563 cat >conftest.$ac_ext <<_ACEOF
14564 /* confdefs.h. */
14565 _ACEOF
14566 cat confdefs.h >>conftest.$ac_ext
14567 cat >>conftest.$ac_ext <<_ACEOF
14568 /* end confdefs.h. */
14569 #include <mach/thread_status.h>
14570
14571 int
14572 main ()
14573 {
14574 static ppc_thread_state_t ac_aggr;
14575 if (sizeof ac_aggr.r0)
14576 return 0;
14577 ;
14578 return 0;
14579 }
14580 _ACEOF
14581 rm -f conftest.$ac_objext
14582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14583 (eval $ac_compile) 2>conftest.er1
14584 ac_status=$?
14585 grep -v '^ *+' conftest.er1 >conftest.err
14586 rm -f conftest.er1
14587 cat conftest.err >&5
14588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14589 (exit $ac_status); } &&
14590 { ac_try='test -z "$ac_c_werror_flag"
14591 || test ! -s conftest.err'
14592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14593 (eval $ac_try) 2>&5
14594 ac_status=$?
14595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14596 (exit $ac_status); }; } &&
14597 { ac_try='test -s conftest.$ac_objext'
14598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14599 (eval $ac_try) 2>&5
14600 ac_status=$?
14601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14602 (exit $ac_status); }; }; then
14603 ac_cv_member_ppc_thread_state_t_r0=yes
14604 else
14605 echo "$as_me: failed program was:" >&5
14606 sed 's/^/| /' conftest.$ac_ext >&5
14607
14608 ac_cv_member_ppc_thread_state_t_r0=no
14609 fi
14610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14611 fi
14612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14613 fi
14614 echo "$as_me:$LINENO: result: $ac_cv_member_ppc_thread_state_t_r0" >&5
14615 echo "${ECHO_T}$ac_cv_member_ppc_thread_state_t_r0" >&6
14616 if test $ac_cv_member_ppc_thread_state_t_r0 = yes; then
14617
14618 cat >>confdefs.h <<\_ACEOF
14619 #define HAS_PPC_THREAD_STATE_R0 1
14620 _ACEOF
14621
14622 fi
14623
14624 echo "$as_me:$LINENO: checking for ppc_thread_state_t.__r0" >&5
14625 echo $ECHO_N "checking for ppc_thread_state_t.__r0... $ECHO_C" >&6
14626 if test "${ac_cv_member_ppc_thread_state_t___r0+set}" = set; then
14627 echo $ECHO_N "(cached) $ECHO_C" >&6
14628 else
14629 cat >conftest.$ac_ext <<_ACEOF
14630 /* confdefs.h. */
14631 _ACEOF
14632 cat confdefs.h >>conftest.$ac_ext
14633 cat >>conftest.$ac_ext <<_ACEOF
14634 /* end confdefs.h. */
14635 #include <mach/thread_status.h>
14636
14637 int
14638 main ()
14639 {
14640 static ppc_thread_state_t ac_aggr;
14641 if (ac_aggr.__r0)
14642 return 0;
14643 ;
14644 return 0;
14645 }
14646 _ACEOF
14647 rm -f conftest.$ac_objext
14648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14649 (eval $ac_compile) 2>conftest.er1
14650 ac_status=$?
14651 grep -v '^ *+' conftest.er1 >conftest.err
14652 rm -f conftest.er1
14653 cat conftest.err >&5
14654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14655 (exit $ac_status); } &&
14656 { ac_try='test -z "$ac_c_werror_flag"
14657 || test ! -s conftest.err'
14658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14659 (eval $ac_try) 2>&5
14660 ac_status=$?
14661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14662 (exit $ac_status); }; } &&
14663 { ac_try='test -s conftest.$ac_objext'
14664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14665 (eval $ac_try) 2>&5
14666 ac_status=$?
14667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14668 (exit $ac_status); }; }; then
14669 ac_cv_member_ppc_thread_state_t___r0=yes
14670 else
14671 echo "$as_me: failed program was:" >&5
14672 sed 's/^/| /' conftest.$ac_ext >&5
14673
14674 cat >conftest.$ac_ext <<_ACEOF
14675 /* confdefs.h. */
14676 _ACEOF
14677 cat confdefs.h >>conftest.$ac_ext
14678 cat >>conftest.$ac_ext <<_ACEOF
14679 /* end confdefs.h. */
14680 #include <mach/thread_status.h>
14681
14682 int
14683 main ()
14684 {
14685 static ppc_thread_state_t ac_aggr;
14686 if (sizeof ac_aggr.__r0)
14687 return 0;
14688 ;
14689 return 0;
14690 }
14691 _ACEOF
14692 rm -f conftest.$ac_objext
14693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14694 (eval $ac_compile) 2>conftest.er1
14695 ac_status=$?
14696 grep -v '^ *+' conftest.er1 >conftest.err
14697 rm -f conftest.er1
14698 cat conftest.err >&5
14699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14700 (exit $ac_status); } &&
14701 { ac_try='test -z "$ac_c_werror_flag"
14702 || test ! -s conftest.err'
14703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14704 (eval $ac_try) 2>&5
14705 ac_status=$?
14706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14707 (exit $ac_status); }; } &&
14708 { ac_try='test -s conftest.$ac_objext'
14709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14710 (eval $ac_try) 2>&5
14711 ac_status=$?
14712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14713 (exit $ac_status); }; }; then
14714 ac_cv_member_ppc_thread_state_t___r0=yes
14715 else
14716 echo "$as_me: failed program was:" >&5
14717 sed 's/^/| /' conftest.$ac_ext >&5
14718
14719 ac_cv_member_ppc_thread_state_t___r0=no
14720 fi
14721 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14722 fi
14723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14724 fi
14725 echo "$as_me:$LINENO: result: $ac_cv_member_ppc_thread_state_t___r0" >&5
14726 echo "${ECHO_T}$ac_cv_member_ppc_thread_state_t___r0" >&6
14727 if test $ac_cv_member_ppc_thread_state_t___r0 = yes; then
14728
14729 cat >>confdefs.h <<\_ACEOF
14730 #define HAS_PPC_THREAD_STATE___R0 1
14731 _ACEOF
14732
14733 fi
14734
14735 echo "$as_me:$LINENO: checking for ppc_thread_state64_t.r0" >&5
14736 echo $ECHO_N "checking for ppc_thread_state64_t.r0... $ECHO_C" >&6
14737 if test "${ac_cv_member_ppc_thread_state64_t_r0+set}" = set; then
14738 echo $ECHO_N "(cached) $ECHO_C" >&6
14739 else
14740 cat >conftest.$ac_ext <<_ACEOF
14741 /* confdefs.h. */
14742 _ACEOF
14743 cat confdefs.h >>conftest.$ac_ext
14744 cat >>conftest.$ac_ext <<_ACEOF
14745 /* end confdefs.h. */
14746 #include <mach/thread_status.h>
14747
14748 int
14749 main ()
14750 {
14751 static ppc_thread_state64_t ac_aggr;
14752 if (ac_aggr.r0)
14753 return 0;
14754 ;
14755 return 0;
14756 }
14757 _ACEOF
14758 rm -f conftest.$ac_objext
14759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14760 (eval $ac_compile) 2>conftest.er1
14761 ac_status=$?
14762 grep -v '^ *+' conftest.er1 >conftest.err
14763 rm -f conftest.er1
14764 cat conftest.err >&5
14765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14766 (exit $ac_status); } &&
14767 { ac_try='test -z "$ac_c_werror_flag"
14768 || test ! -s conftest.err'
14769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14770 (eval $ac_try) 2>&5
14771 ac_status=$?
14772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14773 (exit $ac_status); }; } &&
14774 { ac_try='test -s conftest.$ac_objext'
14775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14776 (eval $ac_try) 2>&5
14777 ac_status=$?
14778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14779 (exit $ac_status); }; }; then
14780 ac_cv_member_ppc_thread_state64_t_r0=yes
14781 else
14782 echo "$as_me: failed program was:" >&5
14783 sed 's/^/| /' conftest.$ac_ext >&5
14784
14785 cat >conftest.$ac_ext <<_ACEOF
14786 /* confdefs.h. */
14787 _ACEOF
14788 cat confdefs.h >>conftest.$ac_ext
14789 cat >>conftest.$ac_ext <<_ACEOF
14790 /* end confdefs.h. */
14791 #include <mach/thread_status.h>
14792
14793 int
14794 main ()
14795 {
14796 static ppc_thread_state64_t ac_aggr;
14797 if (sizeof ac_aggr.r0)
14798 return 0;
14799 ;
14800 return 0;
14801 }
14802 _ACEOF
14803 rm -f conftest.$ac_objext
14804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14805 (eval $ac_compile) 2>conftest.er1
14806 ac_status=$?
14807 grep -v '^ *+' conftest.er1 >conftest.err
14808 rm -f conftest.er1
14809 cat conftest.err >&5
14810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14811 (exit $ac_status); } &&
14812 { ac_try='test -z "$ac_c_werror_flag"
14813 || test ! -s conftest.err'
14814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14815 (eval $ac_try) 2>&5
14816 ac_status=$?
14817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14818 (exit $ac_status); }; } &&
14819 { ac_try='test -s conftest.$ac_objext'
14820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14821 (eval $ac_try) 2>&5
14822 ac_status=$?
14823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14824 (exit $ac_status); }; }; then
14825 ac_cv_member_ppc_thread_state64_t_r0=yes
14826 else
14827 echo "$as_me: failed program was:" >&5
14828 sed 's/^/| /' conftest.$ac_ext >&5
14829
14830 ac_cv_member_ppc_thread_state64_t_r0=no
14831 fi
14832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14833 fi
14834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14835 fi
14836 echo "$as_me:$LINENO: result: $ac_cv_member_ppc_thread_state64_t_r0" >&5
14837 echo "${ECHO_T}$ac_cv_member_ppc_thread_state64_t_r0" >&6
14838 if test $ac_cv_member_ppc_thread_state64_t_r0 = yes; then
14839
14840 cat >>confdefs.h <<\_ACEOF
14841 #define HAS_PPC_THREAD_STATE64_R0 1
14842 _ACEOF
14843
14844 fi
14845
14846 echo "$as_me:$LINENO: checking for ppc_thread_state64_t.__r0" >&5
14847 echo $ECHO_N "checking for ppc_thread_state64_t.__r0... $ECHO_C" >&6
14848 if test "${ac_cv_member_ppc_thread_state64_t___r0+set}" = set; then
14849 echo $ECHO_N "(cached) $ECHO_C" >&6
14850 else
14851 cat >conftest.$ac_ext <<_ACEOF
14852 /* confdefs.h. */
14853 _ACEOF
14854 cat confdefs.h >>conftest.$ac_ext
14855 cat >>conftest.$ac_ext <<_ACEOF
14856 /* end confdefs.h. */
14857 #include <mach/thread_status.h>
14858
14859 int
14860 main ()
14861 {
14862 static ppc_thread_state64_t ac_aggr;
14863 if (ac_aggr.__r0)
14864 return 0;
14865 ;
14866 return 0;
14867 }
14868 _ACEOF
14869 rm -f conftest.$ac_objext
14870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14871 (eval $ac_compile) 2>conftest.er1
14872 ac_status=$?
14873 grep -v '^ *+' conftest.er1 >conftest.err
14874 rm -f conftest.er1
14875 cat conftest.err >&5
14876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14877 (exit $ac_status); } &&
14878 { ac_try='test -z "$ac_c_werror_flag"
14879 || test ! -s conftest.err'
14880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14881 (eval $ac_try) 2>&5
14882 ac_status=$?
14883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14884 (exit $ac_status); }; } &&
14885 { ac_try='test -s conftest.$ac_objext'
14886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14887 (eval $ac_try) 2>&5
14888 ac_status=$?
14889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14890 (exit $ac_status); }; }; then
14891 ac_cv_member_ppc_thread_state64_t___r0=yes
14892 else
14893 echo "$as_me: failed program was:" >&5
14894 sed 's/^/| /' conftest.$ac_ext >&5
14895
14896 cat >conftest.$ac_ext <<_ACEOF
14897 /* confdefs.h. */
14898 _ACEOF
14899 cat confdefs.h >>conftest.$ac_ext
14900 cat >>conftest.$ac_ext <<_ACEOF
14901 /* end confdefs.h. */
14902 #include <mach/thread_status.h>
14903
14904 int
14905 main ()
14906 {
14907 static ppc_thread_state64_t ac_aggr;
14908 if (sizeof ac_aggr.__r0)
14909 return 0;
14910 ;
14911 return 0;
14912 }
14913 _ACEOF
14914 rm -f conftest.$ac_objext
14915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14916 (eval $ac_compile) 2>conftest.er1
14917 ac_status=$?
14918 grep -v '^ *+' conftest.er1 >conftest.err
14919 rm -f conftest.er1
14920 cat conftest.err >&5
14921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14922 (exit $ac_status); } &&
14923 { ac_try='test -z "$ac_c_werror_flag"
14924 || test ! -s conftest.err'
14925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14926 (eval $ac_try) 2>&5
14927 ac_status=$?
14928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14929 (exit $ac_status); }; } &&
14930 { ac_try='test -s conftest.$ac_objext'
14931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14932 (eval $ac_try) 2>&5
14933 ac_status=$?
14934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14935 (exit $ac_status); }; }; then
14936 ac_cv_member_ppc_thread_state64_t___r0=yes
14937 else
14938 echo "$as_me: failed program was:" >&5
14939 sed 's/^/| /' conftest.$ac_ext >&5
14940
14941 ac_cv_member_ppc_thread_state64_t___r0=no
14942 fi
14943 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14944 fi
14945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14946 fi
14947 echo "$as_me:$LINENO: result: $ac_cv_member_ppc_thread_state64_t___r0" >&5
14948 echo "${ECHO_T}$ac_cv_member_ppc_thread_state64_t___r0" >&6
14949 if test $ac_cv_member_ppc_thread_state64_t___r0 = yes; then
14950
14951 cat >>confdefs.h <<\_ACEOF
14952 #define HAS_PPC_THREAD_STATE64___R0 1
14953 _ACEOF
14954
14955 fi
14956
14957 ;;
14958 i?86*-*-darwin*)
14959 echo "$as_me:$LINENO: checking for x86_thread_state32_t.eax" >&5
14960 echo $ECHO_N "checking for x86_thread_state32_t.eax... $ECHO_C" >&6
14961 if test "${ac_cv_member_x86_thread_state32_t_eax+set}" = set; then
14962 echo $ECHO_N "(cached) $ECHO_C" >&6
14963 else
14964 cat >conftest.$ac_ext <<_ACEOF
14965 /* confdefs.h. */
14966 _ACEOF
14967 cat confdefs.h >>conftest.$ac_ext
14968 cat >>conftest.$ac_ext <<_ACEOF
14969 /* end confdefs.h. */
14970 #include <sys/cdefs.h>
14971 #include <mach/thread_status.h>
14972
14973 int
14974 main ()
14975 {
14976 static x86_thread_state32_t ac_aggr;
14977 if (ac_aggr.eax)
14978 return 0;
14979 ;
14980 return 0;
14981 }
14982 _ACEOF
14983 rm -f conftest.$ac_objext
14984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14985 (eval $ac_compile) 2>conftest.er1
14986 ac_status=$?
14987 grep -v '^ *+' conftest.er1 >conftest.err
14988 rm -f conftest.er1
14989 cat conftest.err >&5
14990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991 (exit $ac_status); } &&
14992 { ac_try='test -z "$ac_c_werror_flag"
14993 || test ! -s conftest.err'
14994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14995 (eval $ac_try) 2>&5
14996 ac_status=$?
14997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14998 (exit $ac_status); }; } &&
14999 { ac_try='test -s conftest.$ac_objext'
15000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15001 (eval $ac_try) 2>&5
15002 ac_status=$?
15003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15004 (exit $ac_status); }; }; then
15005 ac_cv_member_x86_thread_state32_t_eax=yes
15006 else
15007 echo "$as_me: failed program was:" >&5
15008 sed 's/^/| /' conftest.$ac_ext >&5
15009
15010 cat >conftest.$ac_ext <<_ACEOF
15011 /* confdefs.h. */
15012 _ACEOF
15013 cat confdefs.h >>conftest.$ac_ext
15014 cat >>conftest.$ac_ext <<_ACEOF
15015 /* end confdefs.h. */
15016 #include <sys/cdefs.h>
15017 #include <mach/thread_status.h>
15018
15019 int
15020 main ()
15021 {
15022 static x86_thread_state32_t ac_aggr;
15023 if (sizeof ac_aggr.eax)
15024 return 0;
15025 ;
15026 return 0;
15027 }
15028 _ACEOF
15029 rm -f conftest.$ac_objext
15030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15031 (eval $ac_compile) 2>conftest.er1
15032 ac_status=$?
15033 grep -v '^ *+' conftest.er1 >conftest.err
15034 rm -f conftest.er1
15035 cat conftest.err >&5
15036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037 (exit $ac_status); } &&
15038 { ac_try='test -z "$ac_c_werror_flag"
15039 || test ! -s conftest.err'
15040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15041 (eval $ac_try) 2>&5
15042 ac_status=$?
15043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15044 (exit $ac_status); }; } &&
15045 { ac_try='test -s conftest.$ac_objext'
15046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15047 (eval $ac_try) 2>&5
15048 ac_status=$?
15049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15050 (exit $ac_status); }; }; then
15051 ac_cv_member_x86_thread_state32_t_eax=yes
15052 else
15053 echo "$as_me: failed program was:" >&5
15054 sed 's/^/| /' conftest.$ac_ext >&5
15055
15056 ac_cv_member_x86_thread_state32_t_eax=no
15057 fi
15058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15059 fi
15060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15061 fi
15062 echo "$as_me:$LINENO: result: $ac_cv_member_x86_thread_state32_t_eax" >&5
15063 echo "${ECHO_T}$ac_cv_member_x86_thread_state32_t_eax" >&6
15064 if test $ac_cv_member_x86_thread_state32_t_eax = yes; then
15065
15066 cat >>confdefs.h <<\_ACEOF
15067 #define HAS_X86_THREAD_STATE32_EAX 1
15068 _ACEOF
15069
15070 fi
15071
15072 echo "$as_me:$LINENO: checking for x86_thread_state32_t.__eax" >&5
15073 echo $ECHO_N "checking for x86_thread_state32_t.__eax... $ECHO_C" >&6
15074 if test "${ac_cv_member_x86_thread_state32_t___eax+set}" = set; then
15075 echo $ECHO_N "(cached) $ECHO_C" >&6
15076 else
15077 cat >conftest.$ac_ext <<_ACEOF
15078 /* confdefs.h. */
15079 _ACEOF
15080 cat confdefs.h >>conftest.$ac_ext
15081 cat >>conftest.$ac_ext <<_ACEOF
15082 /* end confdefs.h. */
15083 #include <sys/cdefs.h>
15084 #include <mach/thread_status.h>
15085
15086 int
15087 main ()
15088 {
15089 static x86_thread_state32_t ac_aggr;
15090 if (ac_aggr.__eax)
15091 return 0;
15092 ;
15093 return 0;
15094 }
15095 _ACEOF
15096 rm -f conftest.$ac_objext
15097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15098 (eval $ac_compile) 2>conftest.er1
15099 ac_status=$?
15100 grep -v '^ *+' conftest.er1 >conftest.err
15101 rm -f conftest.er1
15102 cat conftest.err >&5
15103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15104 (exit $ac_status); } &&
15105 { ac_try='test -z "$ac_c_werror_flag"
15106 || test ! -s conftest.err'
15107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15108 (eval $ac_try) 2>&5
15109 ac_status=$?
15110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111 (exit $ac_status); }; } &&
15112 { ac_try='test -s conftest.$ac_objext'
15113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15114 (eval $ac_try) 2>&5
15115 ac_status=$?
15116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15117 (exit $ac_status); }; }; then
15118 ac_cv_member_x86_thread_state32_t___eax=yes
15119 else
15120 echo "$as_me: failed program was:" >&5
15121 sed 's/^/| /' conftest.$ac_ext >&5
15122
15123 cat >conftest.$ac_ext <<_ACEOF
15124 /* confdefs.h. */
15125 _ACEOF
15126 cat confdefs.h >>conftest.$ac_ext
15127 cat >>conftest.$ac_ext <<_ACEOF
15128 /* end confdefs.h. */
15129 #include <sys/cdefs.h>
15130 #include <mach/thread_status.h>
15131
15132 int
15133 main ()
15134 {
15135 static x86_thread_state32_t ac_aggr;
15136 if (sizeof ac_aggr.__eax)
15137 return 0;
15138 ;
15139 return 0;
15140 }
15141 _ACEOF
15142 rm -f conftest.$ac_objext
15143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15144 (eval $ac_compile) 2>conftest.er1
15145 ac_status=$?
15146 grep -v '^ *+' conftest.er1 >conftest.err
15147 rm -f conftest.er1
15148 cat conftest.err >&5
15149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15150 (exit $ac_status); } &&
15151 { ac_try='test -z "$ac_c_werror_flag"
15152 || test ! -s conftest.err'
15153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15154 (eval $ac_try) 2>&5
15155 ac_status=$?
15156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15157 (exit $ac_status); }; } &&
15158 { ac_try='test -s conftest.$ac_objext'
15159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15160 (eval $ac_try) 2>&5
15161 ac_status=$?
15162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163 (exit $ac_status); }; }; then
15164 ac_cv_member_x86_thread_state32_t___eax=yes
15165 else
15166 echo "$as_me: failed program was:" >&5
15167 sed 's/^/| /' conftest.$ac_ext >&5
15168
15169 ac_cv_member_x86_thread_state32_t___eax=no
15170 fi
15171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15172 fi
15173 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15174 fi
15175 echo "$as_me:$LINENO: result: $ac_cv_member_x86_thread_state32_t___eax" >&5
15176 echo "${ECHO_T}$ac_cv_member_x86_thread_state32_t___eax" >&6
15177 if test $ac_cv_member_x86_thread_state32_t___eax = yes; then
15178
15179 cat >>confdefs.h <<\_ACEOF
15180 #define HAS_X86_THREAD_STATE32___EAX 1
15181 _ACEOF
15182
15183 fi
15184
15185 ;;
15186 x86_64-*-darwin*)
15187 echo "$as_me:$LINENO: checking for x86_thread_state64_t.rax" >&5
15188 echo $ECHO_N "checking for x86_thread_state64_t.rax... $ECHO_C" >&6
15189 if test "${ac_cv_member_x86_thread_state64_t_rax+set}" = set; then
15190 echo $ECHO_N "(cached) $ECHO_C" >&6
15191 else
15192 cat >conftest.$ac_ext <<_ACEOF
15193 /* confdefs.h. */
15194 _ACEOF
15195 cat confdefs.h >>conftest.$ac_ext
15196 cat >>conftest.$ac_ext <<_ACEOF
15197 /* end confdefs.h. */
15198 #include <sys/cdefs.h>
15199 #include <mach/thread_status.h>
15200
15201 int
15202 main ()
15203 {
15204 static x86_thread_state64_t ac_aggr;
15205 if (ac_aggr.rax)
15206 return 0;
15207 ;
15208 return 0;
15209 }
15210 _ACEOF
15211 rm -f conftest.$ac_objext
15212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15213 (eval $ac_compile) 2>conftest.er1
15214 ac_status=$?
15215 grep -v '^ *+' conftest.er1 >conftest.err
15216 rm -f conftest.er1
15217 cat conftest.err >&5
15218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15219 (exit $ac_status); } &&
15220 { ac_try='test -z "$ac_c_werror_flag"
15221 || test ! -s conftest.err'
15222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15223 (eval $ac_try) 2>&5
15224 ac_status=$?
15225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15226 (exit $ac_status); }; } &&
15227 { ac_try='test -s conftest.$ac_objext'
15228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15229 (eval $ac_try) 2>&5
15230 ac_status=$?
15231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15232 (exit $ac_status); }; }; then
15233 ac_cv_member_x86_thread_state64_t_rax=yes
15234 else
15235 echo "$as_me: failed program was:" >&5
15236 sed 's/^/| /' conftest.$ac_ext >&5
15237
15238 cat >conftest.$ac_ext <<_ACEOF
15239 /* confdefs.h. */
15240 _ACEOF
15241 cat confdefs.h >>conftest.$ac_ext
15242 cat >>conftest.$ac_ext <<_ACEOF
15243 /* end confdefs.h. */
15244 #include <sys/cdefs.h>
15245 #include <mach/thread_status.h>
15246
15247 int
15248 main ()
15249 {
15250 static x86_thread_state64_t ac_aggr;
15251 if (sizeof ac_aggr.rax)
15252 return 0;
15253 ;
15254 return 0;
15255 }
15256 _ACEOF
15257 rm -f conftest.$ac_objext
15258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15259 (eval $ac_compile) 2>conftest.er1
15260 ac_status=$?
15261 grep -v '^ *+' conftest.er1 >conftest.err
15262 rm -f conftest.er1
15263 cat conftest.err >&5
15264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15265 (exit $ac_status); } &&
15266 { ac_try='test -z "$ac_c_werror_flag"
15267 || test ! -s conftest.err'
15268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15269 (eval $ac_try) 2>&5
15270 ac_status=$?
15271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15272 (exit $ac_status); }; } &&
15273 { ac_try='test -s conftest.$ac_objext'
15274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15275 (eval $ac_try) 2>&5
15276 ac_status=$?
15277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15278 (exit $ac_status); }; }; then
15279 ac_cv_member_x86_thread_state64_t_rax=yes
15280 else
15281 echo "$as_me: failed program was:" >&5
15282 sed 's/^/| /' conftest.$ac_ext >&5
15283
15284 ac_cv_member_x86_thread_state64_t_rax=no
15285 fi
15286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15287 fi
15288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15289 fi
15290 echo "$as_me:$LINENO: result: $ac_cv_member_x86_thread_state64_t_rax" >&5
15291 echo "${ECHO_T}$ac_cv_member_x86_thread_state64_t_rax" >&6
15292 if test $ac_cv_member_x86_thread_state64_t_rax = yes; then
15293
15294 cat >>confdefs.h <<\_ACEOF
15295 #define HAS_X86_THREAD_STATE64_RAX 1
15296 _ACEOF
15297
15298 fi
15299
15300 echo "$as_me:$LINENO: checking for x86_thread_state64_t.__rax" >&5
15301 echo $ECHO_N "checking for x86_thread_state64_t.__rax... $ECHO_C" >&6
15302 if test "${ac_cv_member_x86_thread_state64_t___rax+set}" = set; then
15303 echo $ECHO_N "(cached) $ECHO_C" >&6
15304 else
15305 cat >conftest.$ac_ext <<_ACEOF
15306 /* confdefs.h. */
15307 _ACEOF
15308 cat confdefs.h >>conftest.$ac_ext
15309 cat >>conftest.$ac_ext <<_ACEOF
15310 /* end confdefs.h. */
15311 #include <sys/cdefs.h>
15312 #include <mach/thread_status.h>
15313
15314 int
15315 main ()
15316 {
15317 static x86_thread_state64_t ac_aggr;
15318 if (ac_aggr.__rax)
15319 return 0;
15320 ;
15321 return 0;
15322 }
15323 _ACEOF
15324 rm -f conftest.$ac_objext
15325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15326 (eval $ac_compile) 2>conftest.er1
15327 ac_status=$?
15328 grep -v '^ *+' conftest.er1 >conftest.err
15329 rm -f conftest.er1
15330 cat conftest.err >&5
15331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15332 (exit $ac_status); } &&
15333 { ac_try='test -z "$ac_c_werror_flag"
15334 || test ! -s conftest.err'
15335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15336 (eval $ac_try) 2>&5
15337 ac_status=$?
15338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15339 (exit $ac_status); }; } &&
15340 { ac_try='test -s conftest.$ac_objext'
15341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15342 (eval $ac_try) 2>&5
15343 ac_status=$?
15344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15345 (exit $ac_status); }; }; then
15346 ac_cv_member_x86_thread_state64_t___rax=yes
15347 else
15348 echo "$as_me: failed program was:" >&5
15349 sed 's/^/| /' conftest.$ac_ext >&5
15350
15351 cat >conftest.$ac_ext <<_ACEOF
15352 /* confdefs.h. */
15353 _ACEOF
15354 cat confdefs.h >>conftest.$ac_ext
15355 cat >>conftest.$ac_ext <<_ACEOF
15356 /* end confdefs.h. */
15357 #include <sys/cdefs.h>
15358 #include <mach/thread_status.h>
15359
15360 int
15361 main ()
15362 {
15363 static x86_thread_state64_t ac_aggr;
15364 if (sizeof ac_aggr.__rax)
15365 return 0;
15366 ;
15367 return 0;
15368 }
15369 _ACEOF
15370 rm -f conftest.$ac_objext
15371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15372 (eval $ac_compile) 2>conftest.er1
15373 ac_status=$?
15374 grep -v '^ *+' conftest.er1 >conftest.err
15375 rm -f conftest.er1
15376 cat conftest.err >&5
15377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15378 (exit $ac_status); } &&
15379 { ac_try='test -z "$ac_c_werror_flag"
15380 || test ! -s conftest.err'
15381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15382 (eval $ac_try) 2>&5
15383 ac_status=$?
15384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15385 (exit $ac_status); }; } &&
15386 { ac_try='test -s conftest.$ac_objext'
15387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15388 (eval $ac_try) 2>&5
15389 ac_status=$?
15390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391 (exit $ac_status); }; }; then
15392 ac_cv_member_x86_thread_state64_t___rax=yes
15393 else
15394 echo "$as_me: failed program was:" >&5
15395 sed 's/^/| /' conftest.$ac_ext >&5
15396
15397 ac_cv_member_x86_thread_state64_t___rax=no
15398 fi
15399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15400 fi
15401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15402 fi
15403 echo "$as_me:$LINENO: result: $ac_cv_member_x86_thread_state64_t___rax" >&5
15404 echo "${ECHO_T}$ac_cv_member_x86_thread_state64_t___rax" >&6
15405 if test $ac_cv_member_x86_thread_state64_t___rax = yes; then
15406
15407 cat >>confdefs.h <<\_ACEOF
15408 #define HAS_X86_THREAD_STATE64___RAX 1
15409 _ACEOF
15410
15411 fi
15412
15413 ;;
15414 *) ;;
15415 esac
15416
15417 # We never want libdl on darwin. It is a fake libdl that just ends up making
15418 # dyld calls anyway
15419 case "$host" in
15420 *-*-darwin*) ;;
15421 *)
15422 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15423 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
15424 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15425 echo $ECHO_N "(cached) $ECHO_C" >&6
15426 else
15427 ac_check_lib_save_LIBS=$LIBS
15428 LIBS="-ldl $LIBS"
15429 if test x$gcc_no_link = xyes; then
15430 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15431 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15432 { (exit 1); exit 1; }; }
15433 fi
15434 cat >conftest.$ac_ext <<_ACEOF
15435 /* confdefs.h. */
15436 _ACEOF
15437 cat confdefs.h >>conftest.$ac_ext
15438 cat >>conftest.$ac_ext <<_ACEOF
15439 /* end confdefs.h. */
15440
15441 /* Override any gcc2 internal prototype to avoid an error. */
15442 #ifdef __cplusplus
15443 extern "C"
15444 #endif
15445 /* We use char because int might match the return type of a gcc2
15446 builtin and then its argument prototype would still apply. */
15447 char dlopen ();
15448 int
15449 main ()
15450 {
15451 dlopen ();
15452 ;
15453 return 0;
15454 }
15455 _ACEOF
15456 rm -f conftest.$ac_objext conftest$ac_exeext
15457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15458 (eval $ac_link) 2>conftest.er1
15459 ac_status=$?
15460 grep -v '^ *+' conftest.er1 >conftest.err
15461 rm -f conftest.er1
15462 cat conftest.err >&5
15463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15464 (exit $ac_status); } &&
15465 { ac_try='test -z "$ac_c_werror_flag"
15466 || test ! -s conftest.err'
15467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15468 (eval $ac_try) 2>&5
15469 ac_status=$?
15470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15471 (exit $ac_status); }; } &&
15472 { ac_try='test -s conftest$ac_exeext'
15473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15474 (eval $ac_try) 2>&5
15475 ac_status=$?
15476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15477 (exit $ac_status); }; }; then
15478 ac_cv_lib_dl_dlopen=yes
15479 else
15480 echo "$as_me: failed program was:" >&5
15481 sed 's/^/| /' conftest.$ac_ext >&5
15482
15483 ac_cv_lib_dl_dlopen=no
15484 fi
15485 rm -f conftest.err conftest.$ac_objext \
15486 conftest$ac_exeext conftest.$ac_ext
15487 LIBS=$ac_check_lib_save_LIBS
15488 fi
15489 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15490 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
15491 if test $ac_cv_lib_dl_dlopen = yes; then
15492 EXTRA_TEST_LIBS="$EXTRA_TEST_LIBS -ldl"
15493 fi
15494
15495 ;;
15496 esac
15497
15498 # extra LD Flags which are required for targets
15499 case "${host}" in
15500 *-*-darwin*)
15501 extra_ldflags_libgc=-Wl,-single_module
15502 ;;
15503 esac
15504
15505
15506
15507
15508 target_all=libgcjgc.la
15509
15510
15511 TARGET_ECOS="no"
15512
15513 # Check whether --with-ecos or --without-ecos was given.
15514 if test "${with_ecos+set}" = set; then
15515 withval="$with_ecos"
15516 TARGET_ECOS="$with_ecos"
15517
15518 fi;
15519
15520 addobjs=
15521 addlibs=
15522 addincludes=
15523 addtests=
15524 case "$TARGET_ECOS" in
15525 no)
15526 ;;
15527 *)
15528
15529 cat >>confdefs.h <<\_ACEOF
15530 #define ECOS 1
15531 _ACEOF
15532
15533 AM_CPPFLAGS="${AM_CPPFLAGS} -I${TARGET_ECOS}/include"
15534 addobjs="$addobjs ecos.lo"
15535 ;;
15536 esac
15537
15538 if test "${enable_cplusplus}" = yes; then
15539 addincludes="$addincludes include/gc_cpp.h include/gc_allocator.h"
15540 addtests="$addtests test_cpp"
15541 fi
15542
15543
15544
15545 if test "${enable_cplusplus}" = yes; then
15546 CPLUSPLUS_TRUE=
15547 CPLUSPLUS_FALSE='#'
15548 else
15549 CPLUSPLUS_TRUE='#'
15550 CPLUSPLUS_FALSE=
15551 fi
15552
15553
15554
15555
15556
15557
15558 # Configuration of shared libraries
15559 #
15560 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15561 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
15562 # Check whether --enable-shared or --disable-shared was given.
15563 if test "${enable_shared+set}" = set; then
15564 enableval="$enable_shared"
15565 p=${PACKAGE-default}
15566 case $enableval in
15567 yes) enable_shared=yes ;;
15568 no) enable_shared=no ;;
15569 *)
15570 enable_shared=no
15571 # Look at the argument we got. We use all the common list separators.
15572 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15573 for pkg in $enableval; do
15574 IFS="$lt_save_ifs"
15575 if test "X$pkg" = "X$p"; then
15576 enable_shared=yes
15577 fi
15578 done
15579 IFS="$lt_save_ifs"
15580 ;;
15581 esac
15582 else
15583 enable_shared=yes
15584 fi;
15585
15586
15587
15588
15589
15590
15591 case "$host" in
15592 alpha-*-openbsd*)
15593 enable_shared=no
15594 echo "$as_me:$LINENO: result: no" >&5
15595 echo "${ECHO_T}no" >&6
15596 ;;
15597 *)
15598 echo "$as_me:$LINENO: result: yes" >&5
15599 echo "${ECHO_T}yes" >&6
15600 ;;
15601 esac
15602
15603 # Checks for pthreads functions
15604 #
15605 oldLIBS="$LIBS"
15606 LIBS="$LIBS $THREADLIBS"
15607
15608 for ac_func in pthread_getattr_np
15609 do
15610 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15611 echo "$as_me:$LINENO: checking for $ac_func" >&5
15612 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15613 if eval "test \"\${$as_ac_var+set}\" = set"; then
15614 echo $ECHO_N "(cached) $ECHO_C" >&6
15615 else
15616 if test x$gcc_no_link = xyes; then
15617 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15618 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15619 { (exit 1); exit 1; }; }
15620 fi
15621 cat >conftest.$ac_ext <<_ACEOF
15622 /* confdefs.h. */
15623 _ACEOF
15624 cat confdefs.h >>conftest.$ac_ext
15625 cat >>conftest.$ac_ext <<_ACEOF
15626 /* end confdefs.h. */
15627 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15628 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15629 #define $ac_func innocuous_$ac_func
15630
15631 /* System header to define __stub macros and hopefully few prototypes,
15632 which can conflict with char $ac_func (); below.
15633 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15634 <limits.h> exists even on freestanding compilers. */
15635
15636 #ifdef __STDC__
15637 # include <limits.h>
15638 #else
15639 # include <assert.h>
15640 #endif
15641
15642 #undef $ac_func
15643
15644 /* Override any gcc2 internal prototype to avoid an error. */
15645 #ifdef __cplusplus
15646 extern "C"
15647 {
15648 #endif
15649 /* We use char because int might match the return type of a gcc2
15650 builtin and then its argument prototype would still apply. */
15651 char $ac_func ();
15652 /* The GNU C library defines this for functions which it implements
15653 to always fail with ENOSYS. Some functions are actually named
15654 something starting with __ and the normal name is an alias. */
15655 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15656 choke me
15657 #else
15658 char (*f) () = $ac_func;
15659 #endif
15660 #ifdef __cplusplus
15661 }
15662 #endif
15663
15664 int
15665 main ()
15666 {
15667 return f != $ac_func;
15668 ;
15669 return 0;
15670 }
15671 _ACEOF
15672 rm -f conftest.$ac_objext conftest$ac_exeext
15673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15674 (eval $ac_link) 2>conftest.er1
15675 ac_status=$?
15676 grep -v '^ *+' conftest.er1 >conftest.err
15677 rm -f conftest.er1
15678 cat conftest.err >&5
15679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15680 (exit $ac_status); } &&
15681 { ac_try='test -z "$ac_c_werror_flag"
15682 || test ! -s conftest.err'
15683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15684 (eval $ac_try) 2>&5
15685 ac_status=$?
15686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15687 (exit $ac_status); }; } &&
15688 { ac_try='test -s conftest$ac_exeext'
15689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15690 (eval $ac_try) 2>&5
15691 ac_status=$?
15692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15693 (exit $ac_status); }; }; then
15694 eval "$as_ac_var=yes"
15695 else
15696 echo "$as_me: failed program was:" >&5
15697 sed 's/^/| /' conftest.$ac_ext >&5
15698
15699 eval "$as_ac_var=no"
15700 fi
15701 rm -f conftest.err conftest.$ac_objext \
15702 conftest$ac_exeext conftest.$ac_ext
15703 fi
15704 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15705 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15706 if test `eval echo '${'$as_ac_var'}'` = yes; then
15707 cat >>confdefs.h <<_ACEOF
15708 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15709 _ACEOF
15710
15711 fi
15712 done
15713
15714 LIBS="$oldLIBS"
15715
15716 # Configuration of machine-dependent code
15717 #
15718 # Set NO_EXECUTE_PERMISSION by default because gcj already uses
15719 # ffi_closure_{alloc,free} which takes care of allocating trampolines
15720 # in executable memory.
15721 #
15722 echo "$as_me:$LINENO: checking which machine-dependent code should be used" >&5
15723 echo $ECHO_N "checking which machine-dependent code should be used... $ECHO_C" >&6
15724 machdep=
15725 case "$host" in
15726 alpha*-*-openbsd*)
15727 machdep="alpha_mach_dep.lo"
15728 if test x"${ac_cv_lib_dl_dlopen}" != xyes ; then
15729 { echo "$as_me:$LINENO: WARNING: OpenBSD/Alpha without dlopen(). Shared library support is disabled" >&5
15730 echo "$as_me: WARNING: OpenBSD/Alpha without dlopen(). Shared library support is disabled" >&2;}
15731 fi
15732 ;;
15733 alpha*-*-linux*)
15734 machdep="alpha_mach_dep.lo"
15735 ;;
15736 i?86-*-solaris2.[89] | i?86-*-solaris2.1?)
15737
15738 cat >>confdefs.h <<\_ACEOF
15739 #define SOLARIS25_PROC_VDB_BUG_FIXED 1
15740 _ACEOF
15741
15742 ;;
15743 mipstx39-*-elf*)
15744 machdep="mips_ultrix_mach_dep.lo"
15745
15746 cat >>confdefs.h <<\_ACEOF
15747 #define STACKBASE __stackbase
15748 _ACEOF
15749
15750
15751 cat >>confdefs.h <<\_ACEOF
15752 #define DATASTART_IS_ETEXT 1
15753 _ACEOF
15754
15755 ;;
15756 mips-dec-ultrix*)
15757 machdep="mips_ultrix_mach-dep.lo"
15758 ;;
15759 mips-nec-sysv*|mips-unknown-sysv*)
15760 ;;
15761 mips*-*-linux*)
15762 ;;
15763 mips-*-*)
15764 machdep="mips_sgi_mach_dep.lo"
15765 ;;
15766 sparc-*-netbsd*)
15767 machdep="sparc_netbsd_mach_dep.lo"
15768 ;;
15769 sparc-sun-solaris2.3)
15770 machdep="sparc_mach_dep.lo"
15771
15772 cat >>confdefs.h <<\_ACEOF
15773 #define SUNOS53_SHARED_LIB 1
15774 _ACEOF
15775
15776 ;;
15777 sparc*-sun-solaris2.*)
15778 machdep="sparc_mach_dep.lo"
15779 ;;
15780 ia64-*-*)
15781 machdep="mach_dep.lo ia64_save_regs_in_stack.lo"
15782 ;;
15783 esac
15784
15785 cat >>confdefs.h <<\_ACEOF
15786 #define NO_EXECUTE_PERMISSION 1
15787 _ACEOF
15788
15789 if test x"$machdep" = x; then
15790 echo "$as_me:$LINENO: result: $machdep" >&5
15791 echo "${ECHO_T}$machdep" >&6
15792 machdep="mach_dep.lo"
15793 fi
15794 addobjs="$addobjs $machdep"
15795
15796
15797
15798
15799
15800 #
15801 # Check for AViiON Machines running DGUX
15802 #
15803 echo "$as_me:$LINENO: checking if host is AViiON running DGUX" >&5
15804 echo $ECHO_N "checking if host is AViiON running DGUX... $ECHO_C" >&6
15805 ac_is_dgux=no
15806 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15807 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15808 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15809 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15810 echo $ECHO_N "(cached) $ECHO_C" >&6
15811 fi
15812 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15813 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15814 else
15815 # Is the header compilable?
15816 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
15817 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
15818 cat >conftest.$ac_ext <<_ACEOF
15819 /* confdefs.h. */
15820 _ACEOF
15821 cat confdefs.h >>conftest.$ac_ext
15822 cat >>conftest.$ac_ext <<_ACEOF
15823 /* end confdefs.h. */
15824 $ac_includes_default
15825 #include <sys/dg_sys_info.h>
15826 _ACEOF
15827 rm -f conftest.$ac_objext
15828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15829 (eval $ac_compile) 2>conftest.er1
15830 ac_status=$?
15831 grep -v '^ *+' conftest.er1 >conftest.err
15832 rm -f conftest.er1
15833 cat conftest.err >&5
15834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15835 (exit $ac_status); } &&
15836 { ac_try='test -z "$ac_c_werror_flag"
15837 || test ! -s conftest.err'
15838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15839 (eval $ac_try) 2>&5
15840 ac_status=$?
15841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15842 (exit $ac_status); }; } &&
15843 { ac_try='test -s conftest.$ac_objext'
15844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15845 (eval $ac_try) 2>&5
15846 ac_status=$?
15847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848 (exit $ac_status); }; }; then
15849 ac_header_compiler=yes
15850 else
15851 echo "$as_me: failed program was:" >&5
15852 sed 's/^/| /' conftest.$ac_ext >&5
15853
15854 ac_header_compiler=no
15855 fi
15856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15857 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15858 echo "${ECHO_T}$ac_header_compiler" >&6
15859
15860 # Is the header present?
15861 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
15862 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
15863 cat >conftest.$ac_ext <<_ACEOF
15864 /* confdefs.h. */
15865 _ACEOF
15866 cat confdefs.h >>conftest.$ac_ext
15867 cat >>conftest.$ac_ext <<_ACEOF
15868 /* end confdefs.h. */
15869 #include <sys/dg_sys_info.h>
15870 _ACEOF
15871 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15872 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15873 ac_status=$?
15874 grep -v '^ *+' conftest.er1 >conftest.err
15875 rm -f conftest.er1
15876 cat conftest.err >&5
15877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15878 (exit $ac_status); } >/dev/null; then
15879 if test -s conftest.err; then
15880 ac_cpp_err=$ac_c_preproc_warn_flag
15881 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15882 else
15883 ac_cpp_err=
15884 fi
15885 else
15886 ac_cpp_err=yes
15887 fi
15888 if test -z "$ac_cpp_err"; then
15889 ac_header_preproc=yes
15890 else
15891 echo "$as_me: failed program was:" >&5
15892 sed 's/^/| /' conftest.$ac_ext >&5
15893
15894 ac_header_preproc=no
15895 fi
15896 rm -f conftest.err conftest.$ac_ext
15897 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15898 echo "${ECHO_T}$ac_header_preproc" >&6
15899
15900 # So? What about this header?
15901 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15902 yes:no: )
15903 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
15904 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15905 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
15906 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
15907 ac_header_preproc=yes
15908 ;;
15909 no:yes:* )
15910 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
15911 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
15912 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
15913 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
15914 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
15915 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
15916 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
15917 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
15918 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
15919 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
15920 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
15921 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
15922 (
15923 cat <<\_ASBOX
15924 ## ------------------------------------------ ##
15925 ## Report this to the AC_PACKAGE_NAME lists. ##
15926 ## ------------------------------------------ ##
15927 _ASBOX
15928 ) |
15929 sed "s/^/$as_me: WARNING: /" >&2
15930 ;;
15931 esac
15932 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15933 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15934 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15935 echo $ECHO_N "(cached) $ECHO_C" >&6
15936 else
15937 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
15938 fi
15939 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15940 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15941
15942 fi
15943 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
15944 ac_is_dgux=yes;
15945 fi
15946
15947
15948
15949 echo "$as_me:$LINENO: result: $ac_is_dgux" >&5
15950 echo "${ECHO_T}$ac_is_dgux" >&6
15951 ## :GOTCHA: we do not check anything but sys/dg_sys_info.h
15952 if test $ac_is_dgux = yes; then
15953 if test "$enable_full_debug" = "yes"; then
15954 CFLAGS="-g -mstandard -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
15955 CXXFLAGS="-g -mstandard -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
15956 else
15957 CFLAGS="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
15958 CXXFLAGS="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
15959 fi
15960
15961
15962 fi
15963
15964 echo "$as_me:$LINENO: checking whether Solaris gcc optimization fix is necessary" >&5
15965 echo $ECHO_N "checking whether Solaris gcc optimization fix is necessary... $ECHO_C" >&6
15966 case "$host" in
15967 *aix*)
15968 if test "$GCC" = yes; then
15969 echo "$as_me:$LINENO: result: yes" >&5
15970 echo "${ECHO_T}yes" >&6
15971 new_CFLAGS=
15972 for i in $CFLAGS; do
15973 case "$i" in
15974 -O*)
15975 ;;
15976 *)
15977 new_CFLAGS="$new_CFLAGS $i"
15978 ;;
15979 esac
15980 done
15981 CFLAGS="$new_CFLAGS"
15982 else
15983 echo "$as_me:$LINENO: result: no" >&5
15984 echo "${ECHO_T}no" >&6
15985 fi
15986 ;;
15987 *) echo "$as_me:$LINENO: result: no" >&5
15988 echo "${ECHO_T}no" >&6 ;;
15989 esac
15990
15991 MY_CFLAGS="$CFLAGS"
15992
15993
15994
15995 cat >>confdefs.h <<\_ACEOF
15996 #define SILENT 1
15997 _ACEOF
15998
15999
16000 cat >>confdefs.h <<\_ACEOF
16001 #define NO_SIGNALS 1
16002 _ACEOF
16003
16004
16005 cat >>confdefs.h <<\_ACEOF
16006 #define ALL_INTERIOR_POINTERS 1
16007 _ACEOF
16008
16009
16010
16011 cat >>confdefs.h <<\_ACEOF
16012 #define JAVA_FINALIZATION 1
16013 _ACEOF
16014
16015
16016 cat >>confdefs.h <<\_ACEOF
16017 #define GC_GCJ_SUPPORT 1
16018 _ACEOF
16019
16020
16021 cat >>confdefs.h <<\_ACEOF
16022 #define ATOMIC_UNCOLLECTABLE 1
16023 _ACEOF
16024
16025
16026 # Check whether --enable-gc-debug or --disable-gc-debug was given.
16027 if test "${enable_gc_debug+set}" = set; then
16028 enableval="$enable_gc_debug"
16029 if test "$enable_gc_debug" = "yes"; then
16030 { echo "$as_me:$LINENO: WARNING: \"Must define GC_DEBUG and use debug alloc. in clients.\"" >&5
16031 echo "$as_me: WARNING: \"Must define GC_DEBUG and use debug alloc. in clients.\"" >&2;}
16032
16033 cat >>confdefs.h <<\_ACEOF
16034 #define KEEP_BACK_PTRS 1
16035 _ACEOF
16036
16037
16038 cat >>confdefs.h <<\_ACEOF
16039 #define DBG_HDRS_ALL 1
16040 _ACEOF
16041
16042 case $host in
16043 ia64-*-linux* )
16044
16045 cat >>confdefs.h <<\_ACEOF
16046 #define MAKE_BACK_GRAPH 1
16047 _ACEOF
16048
16049 ;;
16050 x86-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* )
16051 cat >>confdefs.h <<\_ACEOF
16052 #define MAKE_BACK_GRAPH 1
16053 _ACEOF
16054
16055 { echo "$as_me:$LINENO: WARNING: \"Client must not use -fomit-frame-pointer.\"" >&5
16056 echo "$as_me: WARNING: \"Client must not use -fomit-frame-pointer.\"" >&2;}
16057
16058 cat >>confdefs.h <<\_ACEOF
16059 #define SAVE_CALL_COUNT 8
16060 _ACEOF
16061
16062 ;;
16063 i345686-*-dgux*)
16064 cat >>confdefs.h <<\_ACEOF
16065 #define MAKE_BACK_GRAPH 1
16066 _ACEOF
16067
16068 ;;
16069 esac
16070 fi
16071 fi;
16072
16073 if test "${gc_use_mmap}" = "yes"; then
16074
16075 cat >>confdefs.h <<\_ACEOF
16076 #define USE_MMAP 1
16077 _ACEOF
16078
16079 fi
16080
16081 if test -n "$with_cross_host" &&
16082 test x"$with_cross_host" != x"no"; then
16083 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
16084 toolexeclibdir='$(toolexecdir)/lib'
16085 else
16086 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
16087 toolexeclibdir='$(libdir)'
16088 fi
16089 multi_os_directory=`$CC -print-multi-os-directory`
16090 case $multi_os_directory in
16091 .) ;; # Avoid trailing /.
16092 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
16093 esac
16094
16095
16096
16097 if test "${multilib}" = "yes"; then
16098 multilib_arg="--enable-multilib"
16099 else
16100 multilib_arg=
16101 fi
16102
16103 ac_config_headers="$ac_config_headers include/gc_config.h include/gc_ext_config.h"
16104
16105
16106 ac_config_files="$ac_config_files Makefile include/Makefile"
16107
16108 cat >confcache <<\_ACEOF
16109 # This file is a shell script that caches the results of configure
16110 # tests run on this system so they can be shared between configure
16111 # scripts and configure runs, see configure's option --config-cache.
16112 # It is not useful on other systems. If it contains results you don't
16113 # want to keep, you may remove or edit it.
16114 #
16115 # config.status only pays attention to the cache file if you give it
16116 # the --recheck option to rerun configure.
16117 #
16118 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16119 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16120 # following values.
16121
16122 _ACEOF
16123
16124 # The following way of writing the cache mishandles newlines in values,
16125 # but we know of no workaround that is simple, portable, and efficient.
16126 # So, don't put newlines in cache variables' values.
16127 # Ultrix sh set writes to stderr and can't be redirected directly,
16128 # and sets the high bit in the cache file unless we assign to the vars.
16129 {
16130 (set) 2>&1 |
16131 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16132 *ac_space=\ *)
16133 # `set' does not quote correctly, so add quotes (double-quote
16134 # substitution turns \\\\ into \\, and sed turns \\ into \).
16135 sed -n \
16136 "s/'/'\\\\''/g;
16137 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16138 ;;
16139 *)
16140 # `set' quotes correctly as required by POSIX, so do not add quotes.
16141 sed -n \
16142 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16143 ;;
16144 esac;
16145 } |
16146 sed '
16147 t clear
16148 : clear
16149 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16150 t end
16151 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16152 : end' >>confcache
16153 if diff $cache_file confcache >/dev/null 2>&1; then :; else
16154 if test -w $cache_file; then
16155 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16156 cat confcache >$cache_file
16157 else
16158 echo "not updating unwritable cache $cache_file"
16159 fi
16160 fi
16161 rm -f confcache
16162
16163 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16164 # Let make expand exec_prefix.
16165 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16166
16167 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16168 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16169 # trailing colons and then remove the whole line if VPATH becomes empty
16170 # (actually we leave an empty line to preserve line numbers).
16171 if test "x$srcdir" = x.; then
16172 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16173 s/:*\$(srcdir):*/:/;
16174 s/:*\${srcdir}:*/:/;
16175 s/:*@srcdir@:*/:/;
16176 s/^\([^=]*=[ ]*\):*/\1/;
16177 s/:*$//;
16178 s/^[^=]*=[ ]*$//;
16179 }'
16180 fi
16181
16182 DEFS=-DHAVE_CONFIG_H
16183
16184 ac_libobjs=
16185 ac_ltlibobjs=
16186 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16187 # 1. Remove the extension, and $U if already installed.
16188 ac_i=`echo "$ac_i" |
16189 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16190 # 2. Add them.
16191 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16192 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16193 done
16194 LIBOBJS=$ac_libobjs
16195
16196 LTLIBOBJS=$ac_ltlibobjs
16197
16198
16199 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16200 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
16201 Usually this means the macro was only invoked conditionally." >&5
16202 echo "$as_me: error: conditional \"AMDEP\" was never defined.
16203 Usually this means the macro was only invoked conditionally." >&2;}
16204 { (exit 1); exit 1; }; }
16205 fi
16206 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16207 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16208 Usually this means the macro was only invoked conditionally." >&5
16209 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16210 Usually this means the macro was only invoked conditionally." >&2;}
16211 { (exit 1); exit 1; }; }
16212 fi
16213 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16214 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
16215 Usually this means the macro was only invoked conditionally." >&5
16216 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
16217 Usually this means the macro was only invoked conditionally." >&2;}
16218 { (exit 1); exit 1; }; }
16219 fi
16220 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16221 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
16222 Usually this means the macro was only invoked conditionally." >&5
16223 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
16224 Usually this means the macro was only invoked conditionally." >&2;}
16225 { (exit 1); exit 1; }; }
16226 fi
16227 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16228 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
16229 Usually this means the macro was only invoked conditionally." >&5
16230 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
16231 Usually this means the macro was only invoked conditionally." >&2;}
16232 { (exit 1); exit 1; }; }
16233 fi
16234 if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
16235 { { echo "$as_me:$LINENO: error: conditional \"POWERPC_DARWIN\" was never defined.
16236 Usually this means the macro was only invoked conditionally." >&5
16237 echo "$as_me: error: conditional \"POWERPC_DARWIN\" was never defined.
16238 Usually this means the macro was only invoked conditionally." >&2;}
16239 { (exit 1); exit 1; }; }
16240 fi
16241 if test -z "${CPLUSPLUS_TRUE}" && test -z "${CPLUSPLUS_FALSE}"; then
16242 { { echo "$as_me:$LINENO: error: conditional \"CPLUSPLUS\" was never defined.
16243 Usually this means the macro was only invoked conditionally." >&5
16244 echo "$as_me: error: conditional \"CPLUSPLUS\" was never defined.
16245 Usually this means the macro was only invoked conditionally." >&2;}
16246 { (exit 1); exit 1; }; }
16247 fi
16248
16249 : ${CONFIG_STATUS=./config.status}
16250 ac_clean_files_save=$ac_clean_files
16251 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16252 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16253 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16254 cat >$CONFIG_STATUS <<_ACEOF
16255 #! $SHELL
16256 # Generated by $as_me.
16257 # Run this file to recreate the current configuration.
16258 # Compiler output produced by configure, useful for debugging
16259 # configure, is in config.log if it exists.
16260
16261 debug=false
16262 ac_cs_recheck=false
16263 ac_cs_silent=false
16264 SHELL=\${CONFIG_SHELL-$SHELL}
16265 _ACEOF
16266
16267 cat >>$CONFIG_STATUS <<\_ACEOF
16268 ## --------------------- ##
16269 ## M4sh Initialization. ##
16270 ## --------------------- ##
16271
16272 # Be Bourne compatible
16273 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16274 emulate sh
16275 NULLCMD=:
16276 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16277 # is contrary to our usage. Disable this feature.
16278 alias -g '${1+"$@"}'='"$@"'
16279 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16280 set -o posix
16281 fi
16282 DUALCASE=1; export DUALCASE # for MKS sh
16283
16284 # Support unset when possible.
16285 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16286 as_unset=unset
16287 else
16288 as_unset=false
16289 fi
16290
16291
16292 # Work around bugs in pre-3.0 UWIN ksh.
16293 $as_unset ENV MAIL MAILPATH
16294 PS1='$ '
16295 PS2='> '
16296 PS4='+ '
16297
16298 # NLS nuisances.
16299 for as_var in \
16300 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16301 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16302 LC_TELEPHONE LC_TIME
16303 do
16304 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16305 eval $as_var=C; export $as_var
16306 else
16307 $as_unset $as_var
16308 fi
16309 done
16310
16311 # Required to use basename.
16312 if expr a : '\(a\)' >/dev/null 2>&1; then
16313 as_expr=expr
16314 else
16315 as_expr=false
16316 fi
16317
16318 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16319 as_basename=basename
16320 else
16321 as_basename=false
16322 fi
16323
16324
16325 # Name of the executable.
16326 as_me=`$as_basename "$0" ||
16327 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16328 X"$0" : 'X\(//\)$' \| \
16329 X"$0" : 'X\(/\)$' \| \
16330 . : '\(.\)' 2>/dev/null ||
16331 echo X/"$0" |
16332 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16333 /^X\/\(\/\/\)$/{ s//\1/; q; }
16334 /^X\/\(\/\).*/{ s//\1/; q; }
16335 s/.*/./; q'`
16336
16337
16338 # PATH needs CR, and LINENO needs CR and PATH.
16339 # Avoid depending upon Character Ranges.
16340 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16341 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16342 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16343 as_cr_digits='0123456789'
16344 as_cr_alnum=$as_cr_Letters$as_cr_digits
16345
16346 # The user is always right.
16347 if test "${PATH_SEPARATOR+set}" != set; then
16348 echo "#! /bin/sh" >conf$$.sh
16349 echo "exit 0" >>conf$$.sh
16350 chmod +x conf$$.sh
16351 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16352 PATH_SEPARATOR=';'
16353 else
16354 PATH_SEPARATOR=:
16355 fi
16356 rm -f conf$$.sh
16357 fi
16358
16359
16360 as_lineno_1=$LINENO
16361 as_lineno_2=$LINENO
16362 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16363 test "x$as_lineno_1" != "x$as_lineno_2" &&
16364 test "x$as_lineno_3" = "x$as_lineno_2" || {
16365 # Find who we are. Look in the path if we contain no path at all
16366 # relative or not.
16367 case $0 in
16368 *[\\/]* ) as_myself=$0 ;;
16369 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16370 for as_dir in $PATH
16371 do
16372 IFS=$as_save_IFS
16373 test -z "$as_dir" && as_dir=.
16374 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16375 done
16376
16377 ;;
16378 esac
16379 # We did not find ourselves, most probably we were run as `sh COMMAND'
16380 # in which case we are not to be found in the path.
16381 if test "x$as_myself" = x; then
16382 as_myself=$0
16383 fi
16384 if test ! -f "$as_myself"; then
16385 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16386 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16387 { (exit 1); exit 1; }; }
16388 fi
16389 case $CONFIG_SHELL in
16390 '')
16391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16392 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16393 do
16394 IFS=$as_save_IFS
16395 test -z "$as_dir" && as_dir=.
16396 for as_base in sh bash ksh sh5; do
16397 case $as_dir in
16398 /*)
16399 if ("$as_dir/$as_base" -c '
16400 as_lineno_1=$LINENO
16401 as_lineno_2=$LINENO
16402 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16403 test "x$as_lineno_1" != "x$as_lineno_2" &&
16404 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
16405 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
16406 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
16407 CONFIG_SHELL=$as_dir/$as_base
16408 export CONFIG_SHELL
16409 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16410 fi;;
16411 esac
16412 done
16413 done
16414 ;;
16415 esac
16416
16417 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16418 # uniformly replaced by the line number. The first 'sed' inserts a
16419 # line-number line before each line; the second 'sed' does the real
16420 # work. The second script uses 'N' to pair each line-number line
16421 # with the numbered line, and appends trailing '-' during
16422 # substitution so that $LINENO is not a special case at line end.
16423 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16424 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16425 sed '=' <$as_myself |
16426 sed '
16427 N
16428 s,$,-,
16429 : loop
16430 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16431 t loop
16432 s,-$,,
16433 s,^['$as_cr_digits']*\n,,
16434 ' >$as_me.lineno &&
16435 chmod +x $as_me.lineno ||
16436 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16437 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16438 { (exit 1); exit 1; }; }
16439
16440 # Don't try to exec as it changes $[0], causing all sort of problems
16441 # (the dirname of $[0] is not the place where we might find the
16442 # original and so on. Autoconf is especially sensible to this).
16443 . ./$as_me.lineno
16444 # Exit status is that of the last command.
16445 exit
16446 }
16447
16448
16449 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16450 *c*,-n*) ECHO_N= ECHO_C='
16451 ' ECHO_T=' ' ;;
16452 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16453 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
16454 esac
16455
16456 if expr a : '\(a\)' >/dev/null 2>&1; then
16457 as_expr=expr
16458 else
16459 as_expr=false
16460 fi
16461
16462 rm -f conf$$ conf$$.exe conf$$.file
16463 echo >conf$$.file
16464 if ln -s conf$$.file conf$$ 2>/dev/null; then
16465 # We could just check for DJGPP; but this test a) works b) is more generic
16466 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16467 if test -f conf$$.exe; then
16468 # Don't use ln at all; we don't have any links
16469 as_ln_s='cp -p'
16470 else
16471 as_ln_s='ln -s'
16472 fi
16473 elif ln conf$$.file conf$$ 2>/dev/null; then
16474 as_ln_s=ln
16475 else
16476 as_ln_s='cp -p'
16477 fi
16478 rm -f conf$$ conf$$.exe conf$$.file
16479
16480 if mkdir -p . 2>/dev/null; then
16481 as_mkdir_p=:
16482 else
16483 test -d ./-p && rmdir ./-p
16484 as_mkdir_p=false
16485 fi
16486
16487 as_executable_p="test -f"
16488
16489 # Sed expression to map a string onto a valid CPP name.
16490 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16491
16492 # Sed expression to map a string onto a valid variable name.
16493 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16494
16495
16496 # IFS
16497 # We need space, tab and new line, in precisely that order.
16498 as_nl='
16499 '
16500 IFS=" $as_nl"
16501
16502 # CDPATH.
16503 $as_unset CDPATH
16504
16505 exec 6>&1
16506
16507 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16508 # report actual input values of CONFIG_FILES etc. instead of their
16509 # values after options handling. Logging --version etc. is OK.
16510 exec 5>>config.log
16511 {
16512 echo
16513 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16514 ## Running $as_me. ##
16515 _ASBOX
16516 } >&5
16517 cat >&5 <<_CSEOF
16518
16519 This file was extended by $as_me, which was
16520 generated by GNU Autoconf 2.59. Invocation command line was
16521
16522 CONFIG_FILES = $CONFIG_FILES
16523 CONFIG_HEADERS = $CONFIG_HEADERS
16524 CONFIG_LINKS = $CONFIG_LINKS
16525 CONFIG_COMMANDS = $CONFIG_COMMANDS
16526 $ $0 $@
16527
16528 _CSEOF
16529 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16530 echo >&5
16531 _ACEOF
16532
16533 # Files that config.status was made for.
16534 if test -n "$ac_config_files"; then
16535 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16536 fi
16537
16538 if test -n "$ac_config_headers"; then
16539 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16540 fi
16541
16542 if test -n "$ac_config_links"; then
16543 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16544 fi
16545
16546 if test -n "$ac_config_commands"; then
16547 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16548 fi
16549
16550 cat >>$CONFIG_STATUS <<\_ACEOF
16551
16552 ac_cs_usage="\
16553 \`$as_me' instantiates files from templates according to the
16554 current configuration.
16555
16556 Usage: $0 [OPTIONS] [FILE]...
16557
16558 -h, --help print this help, then exit
16559 -V, --version print version number, then exit
16560 -q, --quiet do not print progress messages
16561 -d, --debug don't remove temporary files
16562 --recheck update $as_me by reconfiguring in the same conditions
16563 --file=FILE[:TEMPLATE]
16564 instantiate the configuration file FILE
16565 --header=FILE[:TEMPLATE]
16566 instantiate the configuration header FILE
16567
16568 Configuration files:
16569 $config_files
16570
16571 Configuration headers:
16572 $config_headers
16573
16574 Configuration commands:
16575 $config_commands
16576
16577 Report bugs to <bug-autoconf@gnu.org>."
16578 _ACEOF
16579
16580 cat >>$CONFIG_STATUS <<_ACEOF
16581 ac_cs_version="\\
16582 config.status
16583 configured by $0, generated by GNU Autoconf 2.59,
16584 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16585
16586 Copyright (C) 2003 Free Software Foundation, Inc.
16587 This config.status script is free software; the Free Software Foundation
16588 gives unlimited permission to copy, distribute and modify it."
16589 srcdir=$srcdir
16590 INSTALL="$INSTALL"
16591 _ACEOF
16592
16593 cat >>$CONFIG_STATUS <<\_ACEOF
16594 # If no file are specified by the user, then we need to provide default
16595 # value. By we need to know if files were specified by the user.
16596 ac_need_defaults=:
16597 while test $# != 0
16598 do
16599 case $1 in
16600 --*=*)
16601 ac_option=`expr "x$1" : 'x\([^=]*\)='`
16602 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16603 ac_shift=:
16604 ;;
16605 -*)
16606 ac_option=$1
16607 ac_optarg=$2
16608 ac_shift=shift
16609 ;;
16610 *) # This is not an option, so the user has probably given explicit
16611 # arguments.
16612 ac_option=$1
16613 ac_need_defaults=false;;
16614 esac
16615
16616 case $ac_option in
16617 # Handling of the options.
16618 _ACEOF
16619 cat >>$CONFIG_STATUS <<\_ACEOF
16620 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16621 ac_cs_recheck=: ;;
16622 --version | --vers* | -V )
16623 echo "$ac_cs_version"; exit 0 ;;
16624 --he | --h)
16625 # Conflict between --help and --header
16626 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16627 Try \`$0 --help' for more information." >&5
16628 echo "$as_me: error: ambiguous option: $1
16629 Try \`$0 --help' for more information." >&2;}
16630 { (exit 1); exit 1; }; };;
16631 --help | --hel | -h )
16632 echo "$ac_cs_usage"; exit 0 ;;
16633 --debug | --d* | -d )
16634 debug=: ;;
16635 --file | --fil | --fi | --f )
16636 $ac_shift
16637 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16638 ac_need_defaults=false;;
16639 --header | --heade | --head | --hea )
16640 $ac_shift
16641 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16642 ac_need_defaults=false;;
16643 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16644 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16645 ac_cs_silent=: ;;
16646
16647 # This is an error.
16648 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16649 Try \`$0 --help' for more information." >&5
16650 echo "$as_me: error: unrecognized option: $1
16651 Try \`$0 --help' for more information." >&2;}
16652 { (exit 1); exit 1; }; } ;;
16653
16654 *) ac_config_targets="$ac_config_targets $1" ;;
16655
16656 esac
16657 shift
16658 done
16659
16660 ac_configure_extra_args=
16661
16662 if $ac_cs_silent; then
16663 exec 6>/dev/null
16664 ac_configure_extra_args="$ac_configure_extra_args --silent"
16665 fi
16666
16667 _ACEOF
16668 cat >>$CONFIG_STATUS <<_ACEOF
16669 if \$ac_cs_recheck; then
16670 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16671 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16672 fi
16673
16674 _ACEOF
16675
16676 cat >>$CONFIG_STATUS <<_ACEOF
16677 #
16678 # INIT-COMMANDS section.
16679 #
16680
16681
16682 srcdir="$srcdir"
16683 host="$host"
16684 target="$target"
16685 with_multisubdir="$with_multisubdir"
16686 with_multisrctop="$with_multisrctop"
16687 with_target_subdir="$with_target_subdir"
16688 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16689 multi_basedir="$multi_basedir"
16690 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16691 CC="$CC"
16692 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16693
16694
16695 # The HP-UX ksh and POSIX shell print the target directory to stdout
16696 # if CDPATH is set.
16697 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16698
16699 sed_quote_subst='$sed_quote_subst'
16700 double_quote_subst='$double_quote_subst'
16701 delay_variable_subst='$delay_variable_subst'
16702 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
16703 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
16704 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
16705 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
16706 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
16707 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
16708 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
16709 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
16710 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
16711 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
16712 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
16713 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
16714 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
16715 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
16716 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
16717 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
16718 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
16719 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
16720 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
16721 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
16722 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
16723 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
16724 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
16725 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
16726 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
16727 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
16728 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
16729 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16730 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
16731 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
16732 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
16733 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16734 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
16735 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
16736 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16737 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16738 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16739 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
16740 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16741 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
16742 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
16743 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
16744 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
16745 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
16746 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
16747 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
16748 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
16749 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
16750 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
16751 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
16752 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
16753 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
16754 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
16755 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
16756 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
16757 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16758 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16759 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
16760 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
16761 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16762 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16763 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
16764 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16765 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16766 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16767 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16768 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16769 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16770 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
16771 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16772 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16773 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16774 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
16775 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
16776 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
16777 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
16778 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
16779 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16780 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
16781 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
16782 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
16783 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
16784 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
16785 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16786 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16787 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16788 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16789 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
16790 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
16791 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16792 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
16793 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
16794 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16795 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16796 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
16797 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16798 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
16799 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16800 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16801 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16802 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16803 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
16804 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
16805 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16806 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16807 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
16808 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
16809 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
16810 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
16811 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
16812 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
16813 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
16814 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
16815 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
16816 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
16817 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
16818 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16819 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16820 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16821 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16822 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16823 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16824 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16825 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16826 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16827 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16828 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16829 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16830 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16831 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16832 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16833 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16834 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16835 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16836 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16837 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16838 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16839 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16840 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16841 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16842 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16843 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16844 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16845 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16846 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16847 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16848 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16849 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16850 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16851 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16852 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16853 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16854 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16855 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16856 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16857 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16858 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16859 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16860 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16861 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16862 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16863 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16864
16865 LTCC='$LTCC'
16866 LTCFLAGS='$LTCFLAGS'
16867 compiler='$compiler_DEFAULT'
16868
16869 # Quote evaled strings.
16870 for var in SED \
16871 GREP \
16872 EGREP \
16873 FGREP \
16874 LD \
16875 NM \
16876 LN_S \
16877 lt_SP2NL \
16878 lt_NL2SP \
16879 reload_flag \
16880 deplibs_check_method \
16881 file_magic_cmd \
16882 AR \
16883 AR_FLAGS \
16884 STRIP \
16885 RANLIB \
16886 CC \
16887 CFLAGS \
16888 compiler \
16889 lt_cv_sys_global_symbol_pipe \
16890 lt_cv_sys_global_symbol_to_cdecl \
16891 lt_cv_sys_global_symbol_to_c_name_address \
16892 SHELL \
16893 ECHO \
16894 lt_prog_compiler_no_builtin_flag \
16895 lt_prog_compiler_wl \
16896 lt_prog_compiler_pic \
16897 lt_prog_compiler_static \
16898 lt_cv_prog_compiler_c_o \
16899 need_locks \
16900 shrext_cmds \
16901 export_dynamic_flag_spec \
16902 whole_archive_flag_spec \
16903 compiler_needs_object \
16904 with_gnu_ld \
16905 allow_undefined_flag \
16906 no_undefined_flag \
16907 hardcode_libdir_flag_spec \
16908 hardcode_libdir_flag_spec_ld \
16909 hardcode_libdir_separator \
16910 fix_srcfile_path \
16911 exclude_expsyms \
16912 include_expsyms \
16913 file_list_spec \
16914 variables_saved_for_relink \
16915 libname_spec \
16916 library_names_spec \
16917 soname_spec \
16918 finish_eval \
16919 old_striplib \
16920 striplib \
16921 predep_objects \
16922 postdep_objects \
16923 predeps \
16924 postdeps \
16925 compiler_lib_search_path \
16926 LD_CXX \
16927 compiler_CXX \
16928 lt_prog_compiler_no_builtin_flag_CXX \
16929 lt_prog_compiler_wl_CXX \
16930 lt_prog_compiler_pic_CXX \
16931 lt_prog_compiler_static_CXX \
16932 lt_cv_prog_compiler_c_o_CXX \
16933 export_dynamic_flag_spec_CXX \
16934 whole_archive_flag_spec_CXX \
16935 compiler_needs_object_CXX \
16936 with_gnu_ld_CXX \
16937 allow_undefined_flag_CXX \
16938 no_undefined_flag_CXX \
16939 hardcode_libdir_flag_spec_CXX \
16940 hardcode_libdir_flag_spec_ld_CXX \
16941 hardcode_libdir_separator_CXX \
16942 fix_srcfile_path_CXX \
16943 exclude_expsyms_CXX \
16944 include_expsyms_CXX \
16945 file_list_spec_CXX \
16946 predep_objects_CXX \
16947 postdep_objects_CXX \
16948 predeps_CXX \
16949 postdeps_CXX \
16950 compiler_lib_search_path_CXX; do
16951 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16952 *[\\\\\\\`\\"\\\$]*)
16953 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16954 ;;
16955 *)
16956 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16957 ;;
16958 esac
16959 done
16960
16961 # Double-quote double-evaled strings.
16962 for var in reload_cmds \
16963 old_postinstall_cmds \
16964 old_postuninstall_cmds \
16965 old_archive_cmds \
16966 extract_expsyms_cmds \
16967 old_archive_from_new_cmds \
16968 old_archive_from_expsyms_cmds \
16969 archive_cmds \
16970 archive_expsym_cmds \
16971 module_cmds \
16972 module_expsym_cmds \
16973 export_symbols_cmds \
16974 prelink_cmds \
16975 postinstall_cmds \
16976 postuninstall_cmds \
16977 finish_cmds \
16978 sys_lib_search_path_spec \
16979 sys_lib_dlsearch_path_spec \
16980 old_archive_cmds_CXX \
16981 old_archive_from_new_cmds_CXX \
16982 old_archive_from_expsyms_cmds_CXX \
16983 archive_cmds_CXX \
16984 archive_expsym_cmds_CXX \
16985 module_cmds_CXX \
16986 module_expsym_cmds_CXX \
16987 export_symbols_cmds_CXX \
16988 prelink_cmds_CXX; do
16989 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16990 *[\\\\\\\`\\"\\\$]*)
16991 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16992 ;;
16993 *)
16994 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16995 ;;
16996 esac
16997 done
16998
16999 # Fix-up fallback echo if it was mangled by the above quoting rules.
17000 case \$lt_ECHO in
17001 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
17002 ;;
17003 esac
17004
17005 ac_aux_dir='$ac_aux_dir'
17006 xsi_shell='$xsi_shell'
17007 lt_shell_append='$lt_shell_append'
17008
17009 # See if we are running on zsh, and set the options which allow our
17010 # commands through without removal of \ escapes INIT.
17011 if test -n "\${ZSH_VERSION+set}" ; then
17012 setopt NO_GLOB_SUBST
17013 fi
17014
17015
17016 PACKAGE='$PACKAGE'
17017 VERSION='$VERSION'
17018 TIMESTAMP='$TIMESTAMP'
17019 RM='$RM'
17020 ofile='$ofile'
17021
17022
17023
17024
17025
17026
17027 _ACEOF
17028
17029
17030
17031 cat >>$CONFIG_STATUS <<\_ACEOF
17032 for ac_config_target in $ac_config_targets
17033 do
17034 case "$ac_config_target" in
17035 # Handling of arguments.
17036 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17037 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17038 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17039 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17040 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17041 "include/gc_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/gc_config.h" ;;
17042 "include/gc_ext_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/gc_ext_config.h" ;;
17043 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17044 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17045 { (exit 1); exit 1; }; };;
17046 esac
17047 done
17048
17049 # If the user did not use the arguments to specify the items to instantiate,
17050 # then the envvar interface is used. Set only those that are not.
17051 # We use the long form for the default assignment because of an extremely
17052 # bizarre bug on SunOS 4.1.3.
17053 if $ac_need_defaults; then
17054 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17055 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17056 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17057 fi
17058
17059 # Have a temporary directory for convenience. Make it in the build tree
17060 # simply because there is no reason to put it here, and in addition,
17061 # creating and moving files from /tmp can sometimes cause problems.
17062 # Create a temporary directory, and hook for its removal unless debugging.
17063 $debug ||
17064 {
17065 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17066 trap '{ (exit 1); exit 1; }' 1 2 13 15
17067 }
17068
17069 # Create a (secure) tmp directory for tmp files.
17070
17071 {
17072 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17073 test -n "$tmp" && test -d "$tmp"
17074 } ||
17075 {
17076 tmp=./confstat$$-$RANDOM
17077 (umask 077 && mkdir $tmp)
17078 } ||
17079 {
17080 echo "$me: cannot create a temporary directory in ." >&2
17081 { (exit 1); exit 1; }
17082 }
17083
17084 _ACEOF
17085
17086 cat >>$CONFIG_STATUS <<_ACEOF
17087
17088 #
17089 # CONFIG_FILES section.
17090 #
17091
17092 # No need to generate the scripts if there are no CONFIG_FILES.
17093 # This happens for instance when ./config.status config.h
17094 if test -n "\$CONFIG_FILES"; then
17095 # Protect against being on the right side of a sed subst in config.status.
17096 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17097 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17098 s,@SHELL@,$SHELL,;t t
17099 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17100 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17101 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17102 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17103 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17104 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17105 s,@exec_prefix@,$exec_prefix,;t t
17106 s,@prefix@,$prefix,;t t
17107 s,@program_transform_name@,$program_transform_name,;t t
17108 s,@bindir@,$bindir,;t t
17109 s,@sbindir@,$sbindir,;t t
17110 s,@libexecdir@,$libexecdir,;t t
17111 s,@datadir@,$datadir,;t t
17112 s,@sysconfdir@,$sysconfdir,;t t
17113 s,@sharedstatedir@,$sharedstatedir,;t t
17114 s,@localstatedir@,$localstatedir,;t t
17115 s,@libdir@,$libdir,;t t
17116 s,@includedir@,$includedir,;t t
17117 s,@oldincludedir@,$oldincludedir,;t t
17118 s,@infodir@,$infodir,;t t
17119 s,@mandir@,$mandir,;t t
17120 s,@build_alias@,$build_alias,;t t
17121 s,@host_alias@,$host_alias,;t t
17122 s,@target_alias@,$target_alias,;t t
17123 s,@DEFS@,$DEFS,;t t
17124 s,@ECHO_C@,$ECHO_C,;t t
17125 s,@ECHO_N@,$ECHO_N,;t t
17126 s,@ECHO_T@,$ECHO_T,;t t
17127 s,@LIBS@,$LIBS,;t t
17128 s,@multi_basedir@,$multi_basedir,;t t
17129 s,@build@,$build,;t t
17130 s,@build_cpu@,$build_cpu,;t t
17131 s,@build_vendor@,$build_vendor,;t t
17132 s,@build_os@,$build_os,;t t
17133 s,@host@,$host,;t t
17134 s,@host_cpu@,$host_cpu,;t t
17135 s,@host_vendor@,$host_vendor,;t t
17136 s,@host_os@,$host_os,;t t
17137 s,@target@,$target,;t t
17138 s,@target_cpu@,$target_cpu,;t t
17139 s,@target_vendor@,$target_vendor,;t t
17140 s,@target_os@,$target_os,;t t
17141 s,@target_noncanonical@,$target_noncanonical,;t t
17142 s,@mkinstalldirs@,$mkinstalldirs,;t t
17143 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17144 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17145 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17146 s,@CYGPATH_W@,$CYGPATH_W,;t t
17147 s,@PACKAGE@,$PACKAGE,;t t
17148 s,@VERSION@,$VERSION,;t t
17149 s,@ACLOCAL@,$ACLOCAL,;t t
17150 s,@AUTOCONF@,$AUTOCONF,;t t
17151 s,@AUTOMAKE@,$AUTOMAKE,;t t
17152 s,@AUTOHEADER@,$AUTOHEADER,;t t
17153 s,@MAKEINFO@,$MAKEINFO,;t t
17154 s,@install_sh@,$install_sh,;t t
17155 s,@STRIP@,$STRIP,;t t
17156 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17157 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
17158 s,@mkdir_p@,$mkdir_p,;t t
17159 s,@AWK@,$AWK,;t t
17160 s,@SET_MAKE@,$SET_MAKE,;t t
17161 s,@am__leading_dot@,$am__leading_dot,;t t
17162 s,@AMTAR@,$AMTAR,;t t
17163 s,@am__tar@,$am__tar,;t t
17164 s,@am__untar@,$am__untar,;t t
17165 s,@CC@,$CC,;t t
17166 s,@ac_ct_CC@,$ac_ct_CC,;t t
17167 s,@EXEEXT@,$EXEEXT,;t t
17168 s,@OBJEXT@,$OBJEXT,;t t
17169 s,@DEPDIR@,$DEPDIR,;t t
17170 s,@am__include@,$am__include,;t t
17171 s,@am__quote@,$am__quote,;t t
17172 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
17173 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
17174 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
17175 s,@CCDEPMODE@,$CCDEPMODE,;t t
17176 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
17177 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
17178 s,@CXX@,$CXX,;t t
17179 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17180 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
17181 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
17182 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
17183 s,@CFLAGS@,$CFLAGS,;t t
17184 s,@CXXFLAGS@,$CXXFLAGS,;t t
17185 s,@CCAS@,$CCAS,;t t
17186 s,@CCASFLAGS@,$CCASFLAGS,;t t
17187 s,@AS@,$AS,;t t
17188 s,@ac_ct_AS@,$ac_ct_AS,;t t
17189 s,@AR@,$AR,;t t
17190 s,@ac_ct_AR@,$ac_ct_AR,;t t
17191 s,@RANLIB@,$RANLIB,;t t
17192 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17193 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
17194 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
17195 s,@MAINT@,$MAINT,;t t
17196 s,@GC_CFLAGS@,$GC_CFLAGS,;t t
17197 s,@LIBTOOL@,$LIBTOOL,;t t
17198 s,@SED@,$SED,;t t
17199 s,@EGREP@,$EGREP,;t t
17200 s,@FGREP@,$FGREP,;t t
17201 s,@GREP@,$GREP,;t t
17202 s,@LD@,$LD,;t t
17203 s,@DUMPBIN@,$DUMPBIN,;t t
17204 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
17205 s,@NM@,$NM,;t t
17206 s,@LN_S@,$LN_S,;t t
17207 s,@lt_ECHO@,$lt_ECHO,;t t
17208 s,@CPP@,$CPP,;t t
17209 s,@CPPFLAGS@,$CPPFLAGS,;t t
17210 s,@LDFLAGS@,$LDFLAGS,;t t
17211 s,@CXXCPP@,$CXXCPP,;t t
17212 s,@THREADLIBS@,$THREADLIBS,;t t
17213 s,@POWERPC_DARWIN_TRUE@,$POWERPC_DARWIN_TRUE,;t t
17214 s,@POWERPC_DARWIN_FALSE@,$POWERPC_DARWIN_FALSE,;t t
17215 s,@extra_ldflags_libgc@,$extra_ldflags_libgc,;t t
17216 s,@EXTRA_TEST_LIBS@,$EXTRA_TEST_LIBS,;t t
17217 s,@target_all@,$target_all,;t t
17218 s,@CPLUSPLUS_TRUE@,$CPLUSPLUS_TRUE,;t t
17219 s,@CPLUSPLUS_FALSE@,$CPLUSPLUS_FALSE,;t t
17220 s,@AM_CPPFLAGS@,$AM_CPPFLAGS,;t t
17221 s,@addobjs@,$addobjs,;t t
17222 s,@addincludes@,$addincludes,;t t
17223 s,@addlibs@,$addlibs,;t t
17224 s,@addtests@,$addtests,;t t
17225 s,@MY_CFLAGS@,$MY_CFLAGS,;t t
17226 s,@toolexecdir@,$toolexecdir,;t t
17227 s,@toolexeclibdir@,$toolexeclibdir,;t t
17228 s,@LIBOBJS@,$LIBOBJS,;t t
17229 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17230 CEOF
17231
17232 _ACEOF
17233
17234 cat >>$CONFIG_STATUS <<\_ACEOF
17235 # Split the substitutions into bite-sized pieces for seds with
17236 # small command number limits, like on Digital OSF/1 and HP-UX.
17237 ac_max_sed_lines=48
17238 ac_sed_frag=1 # Number of current file.
17239 ac_beg=1 # First line for current file.
17240 ac_end=$ac_max_sed_lines # Line after last line for current file.
17241 ac_more_lines=:
17242 ac_sed_cmds=
17243 while $ac_more_lines; do
17244 if test $ac_beg -gt 1; then
17245 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17246 else
17247 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17248 fi
17249 if test ! -s $tmp/subs.frag; then
17250 ac_more_lines=false
17251 else
17252 # The purpose of the label and of the branching condition is to
17253 # speed up the sed processing (if there are no `@' at all, there
17254 # is no need to browse any of the substitutions).
17255 # These are the two extra sed commands mentioned above.
17256 (echo ':t
17257 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17258 if test -z "$ac_sed_cmds"; then
17259 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17260 else
17261 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17262 fi
17263 ac_sed_frag=`expr $ac_sed_frag + 1`
17264 ac_beg=$ac_end
17265 ac_end=`expr $ac_end + $ac_max_sed_lines`
17266 fi
17267 done
17268 if test -z "$ac_sed_cmds"; then
17269 ac_sed_cmds=cat
17270 fi
17271 fi # test -n "$CONFIG_FILES"
17272
17273 _ACEOF
17274 cat >>$CONFIG_STATUS <<\_ACEOF
17275 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17276 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17277 case $ac_file in
17278 - | *:- | *:-:* ) # input from stdin
17279 cat >$tmp/stdin
17280 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17281 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17282 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17283 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17284 * ) ac_file_in=$ac_file.in ;;
17285 esac
17286
17287 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17288 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17289 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17290 X"$ac_file" : 'X\(//\)[^/]' \| \
17291 X"$ac_file" : 'X\(//\)$' \| \
17292 X"$ac_file" : 'X\(/\)' \| \
17293 . : '\(.\)' 2>/dev/null ||
17294 echo X"$ac_file" |
17295 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17296 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17297 /^X\(\/\/\)$/{ s//\1/; q; }
17298 /^X\(\/\).*/{ s//\1/; q; }
17299 s/.*/./; q'`
17300 { if $as_mkdir_p; then
17301 mkdir -p "$ac_dir"
17302 else
17303 as_dir="$ac_dir"
17304 as_dirs=
17305 while test ! -d "$as_dir"; do
17306 as_dirs="$as_dir $as_dirs"
17307 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17308 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17309 X"$as_dir" : 'X\(//\)[^/]' \| \
17310 X"$as_dir" : 'X\(//\)$' \| \
17311 X"$as_dir" : 'X\(/\)' \| \
17312 . : '\(.\)' 2>/dev/null ||
17313 echo X"$as_dir" |
17314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17315 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17316 /^X\(\/\/\)$/{ s//\1/; q; }
17317 /^X\(\/\).*/{ s//\1/; q; }
17318 s/.*/./; q'`
17319 done
17320 test ! -n "$as_dirs" || mkdir $as_dirs
17321 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17322 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17323 { (exit 1); exit 1; }; }; }
17324
17325 ac_builddir=.
17326
17327 if test "$ac_dir" != .; then
17328 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17329 # A "../" for each directory in $ac_dir_suffix.
17330 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17331 else
17332 ac_dir_suffix= ac_top_builddir=
17333 fi
17334
17335 case $srcdir in
17336 .) # No --srcdir option. We are building in place.
17337 ac_srcdir=.
17338 if test -z "$ac_top_builddir"; then
17339 ac_top_srcdir=.
17340 else
17341 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17342 fi ;;
17343 [\\/]* | ?:[\\/]* ) # Absolute path.
17344 ac_srcdir=$srcdir$ac_dir_suffix;
17345 ac_top_srcdir=$srcdir ;;
17346 *) # Relative path.
17347 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17348 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17349 esac
17350
17351 # Do not use `cd foo && pwd` to compute absolute paths, because
17352 # the directories may not exist.
17353 case `pwd` in
17354 .) ac_abs_builddir="$ac_dir";;
17355 *)
17356 case "$ac_dir" in
17357 .) ac_abs_builddir=`pwd`;;
17358 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17359 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17360 esac;;
17361 esac
17362 case $ac_abs_builddir in
17363 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17364 *)
17365 case ${ac_top_builddir}. in
17366 .) ac_abs_top_builddir=$ac_abs_builddir;;
17367 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17368 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17369 esac;;
17370 esac
17371 case $ac_abs_builddir in
17372 .) ac_abs_srcdir=$ac_srcdir;;
17373 *)
17374 case $ac_srcdir in
17375 .) ac_abs_srcdir=$ac_abs_builddir;;
17376 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17377 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17378 esac;;
17379 esac
17380 case $ac_abs_builddir in
17381 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17382 *)
17383 case $ac_top_srcdir in
17384 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17385 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17386 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17387 esac;;
17388 esac
17389
17390
17391 case $INSTALL in
17392 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17393 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17394 esac
17395
17396 if test x"$ac_file" != x-; then
17397 { echo "$as_me:$LINENO: creating $ac_file" >&5
17398 echo "$as_me: creating $ac_file" >&6;}
17399 rm -f "$ac_file"
17400 fi
17401 # Let's still pretend it is `configure' which instantiates (i.e., don't
17402 # use $as_me), people would be surprised to read:
17403 # /* config.h. Generated by config.status. */
17404 if test x"$ac_file" = x-; then
17405 configure_input=
17406 else
17407 configure_input="$ac_file. "
17408 fi
17409 configure_input=$configure_input"Generated from `echo $ac_file_in |
17410 sed 's,.*/,,'` by configure."
17411
17412 # First look for the input files in the build tree, otherwise in the
17413 # src tree.
17414 ac_file_inputs=`IFS=:
17415 for f in $ac_file_in; do
17416 case $f in
17417 -) echo $tmp/stdin ;;
17418 [\\/$]*)
17419 # Absolute (can't be DOS-style, as IFS=:)
17420 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17421 echo "$as_me: error: cannot find input file: $f" >&2;}
17422 { (exit 1); exit 1; }; }
17423 echo "$f";;
17424 *) # Relative
17425 if test -f "$f"; then
17426 # Build tree
17427 echo "$f"
17428 elif test -f "$srcdir/$f"; then
17429 # Source tree
17430 echo "$srcdir/$f"
17431 else
17432 # /dev/null tree
17433 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17434 echo "$as_me: error: cannot find input file: $f" >&2;}
17435 { (exit 1); exit 1; }; }
17436 fi;;
17437 esac
17438 done` || { (exit 1); exit 1; }
17439 _ACEOF
17440 cat >>$CONFIG_STATUS <<_ACEOF
17441 sed "$ac_vpsub
17442 $extrasub
17443 _ACEOF
17444 cat >>$CONFIG_STATUS <<\_ACEOF
17445 :t
17446 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17447 s,@configure_input@,$configure_input,;t t
17448 s,@srcdir@,$ac_srcdir,;t t
17449 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17450 s,@top_srcdir@,$ac_top_srcdir,;t t
17451 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17452 s,@builddir@,$ac_builddir,;t t
17453 s,@abs_builddir@,$ac_abs_builddir,;t t
17454 s,@top_builddir@,$ac_top_builddir,;t t
17455 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17456 s,@INSTALL@,$ac_INSTALL,;t t
17457 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17458 rm -f $tmp/stdin
17459 if test x"$ac_file" != x-; then
17460 mv $tmp/out $ac_file
17461 else
17462 cat $tmp/out
17463 rm -f $tmp/out
17464 fi
17465
17466 done
17467 _ACEOF
17468 cat >>$CONFIG_STATUS <<\_ACEOF
17469
17470 #
17471 # CONFIG_HEADER section.
17472 #
17473
17474 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17475 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17476 #
17477 # ac_d sets the value in "#define NAME VALUE" lines.
17478 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17479 ac_dB='[ ].*$,\1#\2'
17480 ac_dC=' '
17481 ac_dD=',;t'
17482 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17483 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17484 ac_uB='$,\1#\2define\3'
17485 ac_uC=' '
17486 ac_uD=',;t'
17487
17488 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17489 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17490 case $ac_file in
17491 - | *:- | *:-:* ) # input from stdin
17492 cat >$tmp/stdin
17493 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17494 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17495 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17496 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17497 * ) ac_file_in=$ac_file.in ;;
17498 esac
17499
17500 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17501 echo "$as_me: creating $ac_file" >&6;}
17502
17503 # First look for the input files in the build tree, otherwise in the
17504 # src tree.
17505 ac_file_inputs=`IFS=:
17506 for f in $ac_file_in; do
17507 case $f in
17508 -) echo $tmp/stdin ;;
17509 [\\/$]*)
17510 # Absolute (can't be DOS-style, as IFS=:)
17511 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17512 echo "$as_me: error: cannot find input file: $f" >&2;}
17513 { (exit 1); exit 1; }; }
17514 # Do quote $f, to prevent DOS paths from being IFS'd.
17515 echo "$f";;
17516 *) # Relative
17517 if test -f "$f"; then
17518 # Build tree
17519 echo "$f"
17520 elif test -f "$srcdir/$f"; then
17521 # Source tree
17522 echo "$srcdir/$f"
17523 else
17524 # /dev/null tree
17525 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17526 echo "$as_me: error: cannot find input file: $f" >&2;}
17527 { (exit 1); exit 1; }; }
17528 fi;;
17529 esac
17530 done` || { (exit 1); exit 1; }
17531 # Remove the trailing spaces.
17532 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17533
17534 _ACEOF
17535
17536 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17537 # `conftest.undefs', that substitutes the proper values into
17538 # config.h.in to produce config.h. The first handles `#define'
17539 # templates, and the second `#undef' templates.
17540 # And first: Protect against being on the right side of a sed subst in
17541 # config.status. Protect against being in an unquoted here document
17542 # in config.status.
17543 rm -f conftest.defines conftest.undefs
17544 # Using a here document instead of a string reduces the quoting nightmare.
17545 # Putting comments in sed scripts is not portable.
17546 #
17547 # `end' is used to avoid that the second main sed command (meant for
17548 # 0-ary CPP macros) applies to n-ary macro definitions.
17549 # See the Autoconf documentation for `clear'.
17550 cat >confdef2sed.sed <<\_ACEOF
17551 s/[\\&,]/\\&/g
17552 s,[\\$`],\\&,g
17553 t clear
17554 : clear
17555 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17556 t end
17557 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17558 : end
17559 _ACEOF
17560 # If some macros were called several times there might be several times
17561 # the same #defines, which is useless. Nevertheless, we may not want to
17562 # sort them, since we want the *last* AC-DEFINE to be honored.
17563 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17564 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17565 rm -f confdef2sed.sed
17566
17567 # This sed command replaces #undef with comments. This is necessary, for
17568 # example, in the case of _POSIX_SOURCE, which is predefined and required
17569 # on some systems where configure will not decide to define it.
17570 cat >>conftest.undefs <<\_ACEOF
17571 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17572 _ACEOF
17573
17574 # Break up conftest.defines because some shells have a limit on the size
17575 # of here documents, and old seds have small limits too (100 cmds).
17576 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17577 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17578 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17579 echo ' :' >>$CONFIG_STATUS
17580 rm -f conftest.tail
17581 while grep . conftest.defines >/dev/null
17582 do
17583 # Write a limited-size here document to $tmp/defines.sed.
17584 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17585 # Speed up: don't consider the non `#define' lines.
17586 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17587 # Work around the forget-to-reset-the-flag bug.
17588 echo 't clr' >>$CONFIG_STATUS
17589 echo ': clr' >>$CONFIG_STATUS
17590 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17591 echo 'CEOF
17592 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17593 rm -f $tmp/in
17594 mv $tmp/out $tmp/in
17595 ' >>$CONFIG_STATUS
17596 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17597 rm -f conftest.defines
17598 mv conftest.tail conftest.defines
17599 done
17600 rm -f conftest.defines
17601 echo ' fi # grep' >>$CONFIG_STATUS
17602 echo >>$CONFIG_STATUS
17603
17604 # Break up conftest.undefs because some shells have a limit on the size
17605 # of here documents, and old seds have small limits too (100 cmds).
17606 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17607 rm -f conftest.tail
17608 while grep . conftest.undefs >/dev/null
17609 do
17610 # Write a limited-size here document to $tmp/undefs.sed.
17611 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17612 # Speed up: don't consider the non `#undef'
17613 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17614 # Work around the forget-to-reset-the-flag bug.
17615 echo 't clr' >>$CONFIG_STATUS
17616 echo ': clr' >>$CONFIG_STATUS
17617 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17618 echo 'CEOF
17619 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17620 rm -f $tmp/in
17621 mv $tmp/out $tmp/in
17622 ' >>$CONFIG_STATUS
17623 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17624 rm -f conftest.undefs
17625 mv conftest.tail conftest.undefs
17626 done
17627 rm -f conftest.undefs
17628
17629 cat >>$CONFIG_STATUS <<\_ACEOF
17630 # Let's still pretend it is `configure' which instantiates (i.e., don't
17631 # use $as_me), people would be surprised to read:
17632 # /* config.h. Generated by config.status. */
17633 if test x"$ac_file" = x-; then
17634 echo "/* Generated by configure. */" >$tmp/config.h
17635 else
17636 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
17637 fi
17638 cat $tmp/in >>$tmp/config.h
17639 rm -f $tmp/in
17640 if test x"$ac_file" != x-; then
17641 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
17642 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17643 echo "$as_me: $ac_file is unchanged" >&6;}
17644 else
17645 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17646 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17647 X"$ac_file" : 'X\(//\)[^/]' \| \
17648 X"$ac_file" : 'X\(//\)$' \| \
17649 X"$ac_file" : 'X\(/\)' \| \
17650 . : '\(.\)' 2>/dev/null ||
17651 echo X"$ac_file" |
17652 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17653 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17654 /^X\(\/\/\)$/{ s//\1/; q; }
17655 /^X\(\/\).*/{ s//\1/; q; }
17656 s/.*/./; q'`
17657 { if $as_mkdir_p; then
17658 mkdir -p "$ac_dir"
17659 else
17660 as_dir="$ac_dir"
17661 as_dirs=
17662 while test ! -d "$as_dir"; do
17663 as_dirs="$as_dir $as_dirs"
17664 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17665 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17666 X"$as_dir" : 'X\(//\)[^/]' \| \
17667 X"$as_dir" : 'X\(//\)$' \| \
17668 X"$as_dir" : 'X\(/\)' \| \
17669 . : '\(.\)' 2>/dev/null ||
17670 echo X"$as_dir" |
17671 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17672 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17673 /^X\(\/\/\)$/{ s//\1/; q; }
17674 /^X\(\/\).*/{ s//\1/; q; }
17675 s/.*/./; q'`
17676 done
17677 test ! -n "$as_dirs" || mkdir $as_dirs
17678 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17679 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17680 { (exit 1); exit 1; }; }; }
17681
17682 rm -f $ac_file
17683 mv $tmp/config.h $ac_file
17684 fi
17685 else
17686 cat $tmp/config.h
17687 rm -f $tmp/config.h
17688 fi
17689 # Compute $ac_file's index in $config_headers.
17690 _am_stamp_count=1
17691 for _am_header in $config_headers :; do
17692 case $_am_header in
17693 $ac_file | $ac_file:* )
17694 break ;;
17695 * )
17696 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17697 esac
17698 done
17699 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
17700 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17701 X$ac_file : 'X\(//\)[^/]' \| \
17702 X$ac_file : 'X\(//\)$' \| \
17703 X$ac_file : 'X\(/\)' \| \
17704 . : '\(.\)' 2>/dev/null ||
17705 echo X$ac_file |
17706 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17707 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17708 /^X\(\/\/\)$/{ s//\1/; q; }
17709 /^X\(\/\).*/{ s//\1/; q; }
17710 s/.*/./; q'`/stamp-h$_am_stamp_count
17711 done
17712 _ACEOF
17713 cat >>$CONFIG_STATUS <<\_ACEOF
17714
17715 #
17716 # CONFIG_COMMANDS section.
17717 #
17718 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17719 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17720 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17721 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
17722 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17723 X"$ac_dest" : 'X\(//\)[^/]' \| \
17724 X"$ac_dest" : 'X\(//\)$' \| \
17725 X"$ac_dest" : 'X\(/\)' \| \
17726 . : '\(.\)' 2>/dev/null ||
17727 echo X"$ac_dest" |
17728 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17729 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17730 /^X\(\/\/\)$/{ s//\1/; q; }
17731 /^X\(\/\).*/{ s//\1/; q; }
17732 s/.*/./; q'`
17733 { if $as_mkdir_p; then
17734 mkdir -p "$ac_dir"
17735 else
17736 as_dir="$ac_dir"
17737 as_dirs=
17738 while test ! -d "$as_dir"; do
17739 as_dirs="$as_dir $as_dirs"
17740 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17741 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17742 X"$as_dir" : 'X\(//\)[^/]' \| \
17743 X"$as_dir" : 'X\(//\)$' \| \
17744 X"$as_dir" : 'X\(/\)' \| \
17745 . : '\(.\)' 2>/dev/null ||
17746 echo X"$as_dir" |
17747 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17748 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17749 /^X\(\/\/\)$/{ s//\1/; q; }
17750 /^X\(\/\).*/{ s//\1/; q; }
17751 s/.*/./; q'`
17752 done
17753 test ! -n "$as_dirs" || mkdir $as_dirs
17754 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17755 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17756 { (exit 1); exit 1; }; }; }
17757
17758 ac_builddir=.
17759
17760 if test "$ac_dir" != .; then
17761 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17762 # A "../" for each directory in $ac_dir_suffix.
17763 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17764 else
17765 ac_dir_suffix= ac_top_builddir=
17766 fi
17767
17768 case $srcdir in
17769 .) # No --srcdir option. We are building in place.
17770 ac_srcdir=.
17771 if test -z "$ac_top_builddir"; then
17772 ac_top_srcdir=.
17773 else
17774 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17775 fi ;;
17776 [\\/]* | ?:[\\/]* ) # Absolute path.
17777 ac_srcdir=$srcdir$ac_dir_suffix;
17778 ac_top_srcdir=$srcdir ;;
17779 *) # Relative path.
17780 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17781 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17782 esac
17783
17784 # Do not use `cd foo && pwd` to compute absolute paths, because
17785 # the directories may not exist.
17786 case `pwd` in
17787 .) ac_abs_builddir="$ac_dir";;
17788 *)
17789 case "$ac_dir" in
17790 .) ac_abs_builddir=`pwd`;;
17791 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17792 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17793 esac;;
17794 esac
17795 case $ac_abs_builddir in
17796 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17797 *)
17798 case ${ac_top_builddir}. in
17799 .) ac_abs_top_builddir=$ac_abs_builddir;;
17800 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17801 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17802 esac;;
17803 esac
17804 case $ac_abs_builddir in
17805 .) ac_abs_srcdir=$ac_srcdir;;
17806 *)
17807 case $ac_srcdir in
17808 .) ac_abs_srcdir=$ac_abs_builddir;;
17809 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17810 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17811 esac;;
17812 esac
17813 case $ac_abs_builddir in
17814 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17815 *)
17816 case $ac_top_srcdir in
17817 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17818 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17819 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17820 esac;;
17821 esac
17822
17823
17824 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17825 echo "$as_me: executing $ac_dest commands" >&6;}
17826 case $ac_dest in
17827 default-1 )
17828 # Only add multilib support code if we just rebuilt the top-level
17829 # Makefile.
17830 case " $CONFIG_FILES " in
17831 *" Makefile "*)
17832 ac_file=Makefile . ${multi_basedir}/config-ml.in
17833 ;;
17834 esac ;;
17835 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
17836 # Strip MF so we end up with the name of the file.
17837 mf=`echo "$mf" | sed -e 's/:.*$//'`
17838 # Check whether this is an Automake generated Makefile or not.
17839 # We used to match only the files named `Makefile.in', but
17840 # some people rename them; so instead we look at the file content.
17841 # Grep'ing the first line is not enough: some people post-process
17842 # each Makefile.in and add a new line on top of each file to say so.
17843 # So let's grep whole file.
17844 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
17845 dirpart=`(dirname "$mf") 2>/dev/null ||
17846 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17847 X"$mf" : 'X\(//\)[^/]' \| \
17848 X"$mf" : 'X\(//\)$' \| \
17849 X"$mf" : 'X\(/\)' \| \
17850 . : '\(.\)' 2>/dev/null ||
17851 echo X"$mf" |
17852 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17853 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17854 /^X\(\/\/\)$/{ s//\1/; q; }
17855 /^X\(\/\).*/{ s//\1/; q; }
17856 s/.*/./; q'`
17857 else
17858 continue
17859 fi
17860 # Extract the definition of DEPDIR, am__include, and am__quote
17861 # from the Makefile without running `make'.
17862 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17863 test -z "$DEPDIR" && continue
17864 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17865 test -z "am__include" && continue
17866 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17867 # When using ansi2knr, U may be empty or an underscore; expand it
17868 U=`sed -n 's/^U = //p' < "$mf"`
17869 # Find all dependency output files, they are included files with
17870 # $(DEPDIR) in their names. We invoke sed twice because it is the
17871 # simplest approach to changing $(DEPDIR) to its actual value in the
17872 # expansion.
17873 for file in `sed -n "
17874 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17875 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17876 # Make sure the directory exists.
17877 test -f "$dirpart/$file" && continue
17878 fdir=`(dirname "$file") 2>/dev/null ||
17879 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17880 X"$file" : 'X\(//\)[^/]' \| \
17881 X"$file" : 'X\(//\)$' \| \
17882 X"$file" : 'X\(/\)' \| \
17883 . : '\(.\)' 2>/dev/null ||
17884 echo X"$file" |
17885 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17886 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17887 /^X\(\/\/\)$/{ s//\1/; q; }
17888 /^X\(\/\).*/{ s//\1/; q; }
17889 s/.*/./; q'`
17890 { if $as_mkdir_p; then
17891 mkdir -p $dirpart/$fdir
17892 else
17893 as_dir=$dirpart/$fdir
17894 as_dirs=
17895 while test ! -d "$as_dir"; do
17896 as_dirs="$as_dir $as_dirs"
17897 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17898 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17899 X"$as_dir" : 'X\(//\)[^/]' \| \
17900 X"$as_dir" : 'X\(//\)$' \| \
17901 X"$as_dir" : 'X\(/\)' \| \
17902 . : '\(.\)' 2>/dev/null ||
17903 echo X"$as_dir" |
17904 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17905 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17906 /^X\(\/\/\)$/{ s//\1/; q; }
17907 /^X\(\/\).*/{ s//\1/; q; }
17908 s/.*/./; q'`
17909 done
17910 test ! -n "$as_dirs" || mkdir $as_dirs
17911 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
17912 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
17913 { (exit 1); exit 1; }; }; }
17914
17915 # echo "creating $dirpart/$file"
17916 echo '# dummy' > "$dirpart/$file"
17917 done
17918 done
17919 ;;
17920 libtool )
17921
17922 # See if we are running on zsh, and set the options which allow our
17923 # commands through without removal of \ escapes.
17924 if test -n "${ZSH_VERSION+set}" ; then
17925 setopt NO_GLOB_SUBST
17926 fi
17927
17928 cfgfile="${ofile}T"
17929 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17930 $RM "$cfgfile"
17931
17932 cat <<_LT_EOF >> "$cfgfile"
17933 #! $SHELL
17934
17935 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17936 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
17937 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17938 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17939 #
17940 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17941 # 2006, 2007 Free Software Foundation, Inc.
17942 #
17943 # This file is part of GNU Libtool:
17944 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17945 #
17946 # This program is free software; you can redistribute it and/or modify
17947 # it under the terms of the GNU General Public License as published by
17948 # the Free Software Foundation; either version 2 of the License, or
17949 # (at your option) any later version.
17950 #
17951 # This program is distributed in the hope that it will be useful, but
17952 # WITHOUT ANY WARRANTY; without even the implied warranty of
17953 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17954 # General Public License for more details.
17955 #
17956 # You should have received a copy of the GNU General Public License
17957 # along with this program; if not, a copy can be downloaded from
17958 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
17959 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
17960 # MA 02110-1301, USA.
17961 #
17962 # As a special exception to the GNU General Public License, if you
17963 # distribute this file as part of a program that contains a
17964 # configuration script generated by Autoconf, you may include it under
17965 # the same distribution terms that you use for the rest of that program.
17966
17967
17968 # The names of the tagged configurations supported by this script.
17969 available_tags="CXX "
17970
17971 # ### BEGIN LIBTOOL CONFIG
17972
17973 # Which release of libtool.m4 was used?
17974 macro_version=$macro_version
17975 macro_revision=$macro_revision
17976
17977 # Whether or not to build shared libraries.
17978 build_libtool_libs=$enable_shared
17979
17980 # Whether or not to build static libraries.
17981 build_old_libs=$enable_static
17982
17983 # What type of objects to build.
17984 pic_mode=$pic_mode
17985
17986 # Whether or not to optimize for fast installation.
17987 fast_install=$enable_fast_install
17988
17989 # The host system.
17990 host_alias=$host_alias
17991 host=$host
17992 host_os=$host_os
17993
17994 # The build system.
17995 build_alias=$build_alias
17996 build=$build
17997 build_os=$build_os
17998
17999 # A sed program that does not truncate output.
18000 SED=$lt_SED
18001
18002 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18003 Xsed="\$SED -e 1s/^X//"
18004
18005 # A grep program that handles long lines.
18006 GREP=$lt_GREP
18007
18008 # An ERE matcher.
18009 EGREP=$lt_EGREP
18010
18011 # A literal string matcher.
18012 FGREP=$lt_FGREP
18013
18014 # A BSD- or MS-compatible name lister.
18015 NM=$lt_NM
18016
18017 # Whether we need soft or hard links.
18018 LN_S=$lt_LN_S
18019
18020 # What is the maximum length of a command?
18021 max_cmd_len=$max_cmd_len
18022
18023 # Object file suffix (normally "o").
18024 objext=$ac_objext
18025
18026 # Executable file suffix (normally "").
18027 exeext=$exeext
18028
18029 # whether the shell understands "unset".
18030 lt_unset=$lt_unset
18031
18032 # turn spaces into newlines.
18033 SP2NL=$lt_lt_SP2NL
18034
18035 # turn newlines into spaces.
18036 NL2SP=$lt_lt_NL2SP
18037
18038 # How to create reloadable object files.
18039 reload_flag=$lt_reload_flag
18040 reload_cmds=$lt_reload_cmds
18041
18042 # Method to check whether dependent libraries are shared objects.
18043 deplibs_check_method=$lt_deplibs_check_method
18044
18045 # Command to use when deplibs_check_method == "file_magic".
18046 file_magic_cmd=$lt_file_magic_cmd
18047
18048 # The archiver.
18049 AR=$lt_AR
18050 AR_FLAGS=$lt_AR_FLAGS
18051
18052 # A symbol stripping program.
18053 STRIP=$lt_STRIP
18054
18055 # Commands used to install an old-style archive.
18056 RANLIB=$lt_RANLIB
18057 old_postinstall_cmds=$lt_old_postinstall_cmds
18058 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18059
18060 # A C compiler.
18061 LTCC=$lt_CC
18062
18063 # LTCC compiler flags.
18064 LTCFLAGS=$lt_CFLAGS
18065
18066 # Take the output of nm and produce a listing of raw symbols and C names.
18067 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18068
18069 # Transform the output of nm in a proper C declaration.
18070 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18071
18072 # Transform the output of nm in a C name address pair.
18073 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18074
18075 # The name of the directory that contains temporary libtool files.
18076 objdir=$objdir
18077
18078 # Shell to use when invoking shell scripts.
18079 SHELL=$lt_SHELL
18080
18081 # An echo program that does not interpret backslashes.
18082 ECHO=$lt_ECHO
18083
18084 # Used to examine libraries when file_magic_cmd begins with "file".
18085 MAGIC_CMD=$MAGIC_CMD
18086
18087 # Must we lock files when doing compilation?
18088 need_locks=$lt_need_locks
18089
18090 # Old archive suffix (normally "a").
18091 libext=$libext
18092
18093 # Shared library suffix (normally ".so").
18094 shrext_cmds=$lt_shrext_cmds
18095
18096 # The commands to extract the exported symbol list from a shared archive.
18097 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18098
18099 # Variables whose values should be saved in libtool wrapper scripts and
18100 # restored at link time.
18101 variables_saved_for_relink=$lt_variables_saved_for_relink
18102
18103 # Do we need the "lib" prefix for modules?
18104 need_lib_prefix=$need_lib_prefix
18105
18106 # Do we need a version for libraries?
18107 need_version=$need_version
18108
18109 # Library versioning type.
18110 version_type=$version_type
18111
18112 # Shared library runtime path variable.
18113 runpath_var=$runpath_var
18114
18115 # Shared library path variable.
18116 shlibpath_var=$shlibpath_var
18117
18118 # Is shlibpath searched before the hard-coded library search path?
18119 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18120
18121 # Format of library name prefix.
18122 libname_spec=$lt_libname_spec
18123
18124 # List of archive names. First name is the real one, the rest are links.
18125 # The last name is the one that the linker finds with -lNAME
18126 library_names_spec=$lt_library_names_spec
18127
18128 # The coded name of the library, if different from the real name.
18129 soname_spec=$lt_soname_spec
18130
18131 # Command to use after installation of a shared archive.
18132 postinstall_cmds=$lt_postinstall_cmds
18133
18134 # Command to use after uninstallation of a shared archive.
18135 postuninstall_cmds=$lt_postuninstall_cmds
18136
18137 # Commands used to finish a libtool library installation in a directory.
18138 finish_cmds=$lt_finish_cmds
18139
18140 # As "finish_cmds", except a single script fragment to be evaled but
18141 # not shown.
18142 finish_eval=$lt_finish_eval
18143
18144 # Whether we should hardcode library paths into libraries.
18145 hardcode_into_libs=$hardcode_into_libs
18146
18147 # Compile-time system search path for libraries.
18148 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18149
18150 # Run-time system search path for libraries.
18151 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18152
18153 # Whether dlopen is supported.
18154 dlopen_support=$enable_dlopen
18155
18156 # Whether dlopen of programs is supported.
18157 dlopen_self=$enable_dlopen_self
18158
18159 # Whether dlopen of statically linked programs is supported.
18160 dlopen_self_static=$enable_dlopen_self_static
18161
18162 # Commands to strip libraries.
18163 old_striplib=$lt_old_striplib
18164 striplib=$lt_striplib
18165
18166
18167 # The linker used to build libraries.
18168 LD=$lt_LD
18169
18170 # Commands used to build an old-style archive.
18171 old_archive_cmds=$lt_old_archive_cmds
18172
18173 # A language specific compiler.
18174 CC=$lt_compiler
18175
18176 # Is the compiler the GNU compiler?
18177 with_gcc=$GCC
18178
18179 # Compiler flag to turn off builtin functions.
18180 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18181
18182 # How to pass a linker flag through the compiler.
18183 wl=$lt_lt_prog_compiler_wl
18184
18185 # Additional compiler flags for building library objects.
18186 pic_flag=$lt_lt_prog_compiler_pic
18187
18188 # Compiler flag to prevent dynamic linking.
18189 link_static_flag=$lt_lt_prog_compiler_static
18190
18191 # Does compiler simultaneously support -c and -o options?
18192 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18193
18194 # Whether or not to add -lc for building shared libraries.
18195 build_libtool_need_lc=$archive_cmds_need_lc
18196
18197 # Whether or not to disallow shared libs when runtime libs are static.
18198 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18199
18200 # Compiler flag to allow reflexive dlopens.
18201 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18202
18203 # Compiler flag to generate shared objects directly from archives.
18204 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18205
18206 # Whether the compiler copes with passing no objects directly.
18207 compiler_needs_object=$lt_compiler_needs_object
18208
18209 # Create an old-style archive from a shared archive.
18210 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18211
18212 # Create a temporary old-style archive to link instead of a shared archive.
18213 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18214
18215 # Commands used to build a shared archive.
18216 archive_cmds=$lt_archive_cmds
18217 archive_expsym_cmds=$lt_archive_expsym_cmds
18218
18219 # Commands used to build a loadable module if different from building
18220 # a shared archive.
18221 module_cmds=$lt_module_cmds
18222 module_expsym_cmds=$lt_module_expsym_cmds
18223
18224 # Whether we are building with GNU ld or not.
18225 with_gnu_ld=$lt_with_gnu_ld
18226
18227 # Flag that allows shared libraries with undefined symbols to be built.
18228 allow_undefined_flag=$lt_allow_undefined_flag
18229
18230 # Flag that enforces no undefined symbols.
18231 no_undefined_flag=$lt_no_undefined_flag
18232
18233 # Flag to hardcode \$libdir into a binary during linking.
18234 # This must work even if \$libdir does not exist
18235 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18236
18237 # If ld is used when linking, flag to hardcode \$libdir into a binary
18238 # during linking. This must work even if \$libdir does not exist.
18239 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18240
18241 # Whether we need a single "-rpath" flag with a separated argument.
18242 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18243
18244 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18245 # DIR into the resulting binary.
18246 hardcode_direct=$hardcode_direct
18247
18248 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18249 # DIR into the resulting binary and the resulting library dependency is
18250 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18251 # library is relocated.
18252 hardcode_direct_absolute=$hardcode_direct_absolute
18253
18254 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18255 # into the resulting binary.
18256 hardcode_minus_L=$hardcode_minus_L
18257
18258 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18259 # into the resulting binary.
18260 hardcode_shlibpath_var=$hardcode_shlibpath_var
18261
18262 # Set to "yes" if building a shared library automatically hardcodes DIR
18263 # into the library and all subsequent libraries and executables linked
18264 # against it.
18265 hardcode_automatic=$hardcode_automatic
18266
18267 # Set to yes if linker adds runtime paths of dependent libraries
18268 # to runtime path list.
18269 inherit_rpath=$inherit_rpath
18270
18271 # Whether libtool must link a program against all its dependency libraries.
18272 link_all_deplibs=$link_all_deplibs
18273
18274 # Fix the shell variable \$srcfile for the compiler.
18275 fix_srcfile_path=$lt_fix_srcfile_path
18276
18277 # Set to "yes" if exported symbols are required.
18278 always_export_symbols=$always_export_symbols
18279
18280 # The commands to list exported symbols.
18281 export_symbols_cmds=$lt_export_symbols_cmds
18282
18283 # Symbols that should not be listed in the preloaded symbols.
18284 exclude_expsyms=$lt_exclude_expsyms
18285
18286 # Symbols that must always be exported.
18287 include_expsyms=$lt_include_expsyms
18288
18289 # Commands necessary for linking programs (against libraries) with templates.
18290 prelink_cmds=$lt_prelink_cmds
18291
18292 # Specify filename containing input files.
18293 file_list_spec=$lt_file_list_spec
18294
18295 # How to hardcode a shared library path into an executable.
18296 hardcode_action=$hardcode_action
18297
18298 # Dependencies to place before and after the objects being linked to
18299 # create a shared library.
18300 predep_objects=$lt_predep_objects
18301 postdep_objects=$lt_postdep_objects
18302 predeps=$lt_predeps
18303 postdeps=$lt_postdeps
18304
18305 # The library search path used internally by the compiler when linking
18306 # a shared library.
18307 compiler_lib_search_path=$lt_compiler_lib_search_path
18308
18309 # ### END LIBTOOL CONFIG
18310
18311 _LT_EOF
18312
18313 case $host_os in
18314 aix3*)
18315 cat <<\_LT_EOF >> "$cfgfile"
18316 # AIX sometimes has problems with the GCC collect2 program. For some
18317 # reason, if we set the COLLECT_NAMES environment variable, the problems
18318 # vanish in a puff of smoke.
18319 if test "X${COLLECT_NAMES+set}" != Xset; then
18320 COLLECT_NAMES=
18321 export COLLECT_NAMES
18322 fi
18323 _LT_EOF
18324 ;;
18325 esac
18326
18327
18328 ltmain="$ac_aux_dir/ltmain.sh"
18329
18330
18331 # We use sed instead of cat because bash on DJGPP gets confused if
18332 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18333 # text mode, it properly converts lines to CR/LF. This bash problem
18334 # is reportedly fixed, but why not run on old versions too?
18335 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18336 || (rm -f "$cfgfile"; exit 1)
18337
18338 case $xsi_shell in
18339 yes)
18340 cat << \_LT_EOF >> "$cfgfile"
18341 # func_dirname file append nondir_replacement
18342 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18343 # otherwise set result to NONDIR_REPLACEMENT.
18344 func_dirname ()
18345 {
18346 case ${1} in
18347 */*) func_dirname_result="${1%/*}${2}" ;;
18348 * ) func_dirname_result="${3}" ;;
18349 esac
18350 }
18351
18352 # func_basename file
18353 func_basename ()
18354 {
18355 func_basename_result="${1##*/}"
18356 }
18357
18358 # func_stripname prefix suffix name
18359 # strip PREFIX and SUFFIX off of NAME.
18360 # PREFIX and SUFFIX must not contain globbing or regex special
18361 # characters, hashes, percent signs, but SUFFIX may contain a leading
18362 # dot (in which case that matches only a dot).
18363 func_stripname ()
18364 {
18365 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18366 # positional parameters, so assign one to ordinary parameter first.
18367 func_stripname_result=${3}
18368 func_stripname_result=${func_stripname_result#"${1}"}
18369 func_stripname_result=${func_stripname_result%"${2}"}
18370 }
18371
18372 # func_opt_split
18373 func_opt_split ()
18374 {
18375 func_opt_split_opt=${1%%=*}
18376 func_opt_split_arg=${1#*=}
18377 }
18378
18379 # func_lo2o object
18380 func_lo2o ()
18381 {
18382 case ${1} in
18383 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18384 *) func_lo2o_result=${1} ;;
18385 esac
18386 }
18387 _LT_EOF
18388 ;;
18389 *) # Bourne compatible functions.
18390 cat << \_LT_EOF >> "$cfgfile"
18391 # func_dirname file append nondir_replacement
18392 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18393 # otherwise set result to NONDIR_REPLACEMENT.
18394 func_dirname ()
18395 {
18396 # Extract subdirectory from the argument.
18397 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
18398 if test "X$func_dirname_result" = "X${1}"; then
18399 func_dirname_result="${3}"
18400 else
18401 func_dirname_result="$func_dirname_result${2}"
18402 fi
18403 }
18404
18405 # func_basename file
18406 func_basename ()
18407 {
18408 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
18409 }
18410
18411 # func_stripname prefix suffix name
18412 # strip PREFIX and SUFFIX off of NAME.
18413 # PREFIX and SUFFIX must not contain globbing or regex special
18414 # characters, hashes, percent signs, but SUFFIX may contain a leading
18415 # dot (in which case that matches only a dot).
18416 # func_strip_suffix prefix name
18417 func_stripname ()
18418 {
18419 case ${2} in
18420 .*) func_stripname_result=`$ECHO "X${3}" \
18421 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
18422 *) func_stripname_result=`$ECHO "X${3}" \
18423 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
18424 esac
18425 }
18426
18427 # sed scripts:
18428 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18429 my_sed_long_arg='1s/^-[^=]*=//'
18430
18431 # func_opt_split
18432 func_opt_split ()
18433 {
18434 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
18435 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
18436 }
18437
18438 # func_lo2o object
18439 func_lo2o ()
18440 {
18441 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
18442 }
18443 _LT_EOF
18444 esac
18445
18446 case $lt_shell_append in
18447 yes)
18448 cat << \_LT_EOF >> "$cfgfile"
18449
18450 # func_append var value
18451 # Append VALUE to the end of shell variable VAR.
18452 func_append ()
18453 {
18454 eval "$1+=\$2"
18455 }
18456 _LT_EOF
18457 ;;
18458 *)
18459 cat << \_LT_EOF >> "$cfgfile"
18460
18461 # func_append var value
18462 # Append VALUE to the end of shell variable VAR.
18463 func_append ()
18464 {
18465 eval "$1=\$$1\$2"
18466 }
18467 _LT_EOF
18468 ;;
18469 esac
18470
18471
18472 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18473 || (rm -f "$cfgfile"; exit 1)
18474
18475 mv -f "$cfgfile" "$ofile" ||
18476 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18477 chmod +x "$ofile"
18478
18479
18480 cat <<_LT_EOF >> "$ofile"
18481
18482 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18483
18484 # The linker used to build libraries.
18485 LD=$lt_LD_CXX
18486
18487 # Commands used to build an old-style archive.
18488 old_archive_cmds=$lt_old_archive_cmds_CXX
18489
18490 # A language specific compiler.
18491 CC=$lt_compiler_CXX
18492
18493 # Is the compiler the GNU compiler?
18494 with_gcc=$GCC_CXX
18495
18496 # Compiler flag to turn off builtin functions.
18497 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18498
18499 # How to pass a linker flag through the compiler.
18500 wl=$lt_lt_prog_compiler_wl_CXX
18501
18502 # Additional compiler flags for building library objects.
18503 pic_flag=$lt_lt_prog_compiler_pic_CXX
18504
18505 # Compiler flag to prevent dynamic linking.
18506 link_static_flag=$lt_lt_prog_compiler_static_CXX
18507
18508 # Does compiler simultaneously support -c and -o options?
18509 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18510
18511 # Whether or not to add -lc for building shared libraries.
18512 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18513
18514 # Whether or not to disallow shared libs when runtime libs are static.
18515 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18516
18517 # Compiler flag to allow reflexive dlopens.
18518 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18519
18520 # Compiler flag to generate shared objects directly from archives.
18521 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18522
18523 # Whether the compiler copes with passing no objects directly.
18524 compiler_needs_object=$lt_compiler_needs_object_CXX
18525
18526 # Create an old-style archive from a shared archive.
18527 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18528
18529 # Create a temporary old-style archive to link instead of a shared archive.
18530 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18531
18532 # Commands used to build a shared archive.
18533 archive_cmds=$lt_archive_cmds_CXX
18534 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18535
18536 # Commands used to build a loadable module if different from building
18537 # a shared archive.
18538 module_cmds=$lt_module_cmds_CXX
18539 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18540
18541 # Whether we are building with GNU ld or not.
18542 with_gnu_ld=$lt_with_gnu_ld_CXX
18543
18544 # Flag that allows shared libraries with undefined symbols to be built.
18545 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18546
18547 # Flag that enforces no undefined symbols.
18548 no_undefined_flag=$lt_no_undefined_flag_CXX
18549
18550 # Flag to hardcode \$libdir into a binary during linking.
18551 # This must work even if \$libdir does not exist
18552 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18553
18554 # If ld is used when linking, flag to hardcode \$libdir into a binary
18555 # during linking. This must work even if \$libdir does not exist.
18556 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18557
18558 # Whether we need a single "-rpath" flag with a separated argument.
18559 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18560
18561 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18562 # DIR into the resulting binary.
18563 hardcode_direct=$hardcode_direct_CXX
18564
18565 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18566 # DIR into the resulting binary and the resulting library dependency is
18567 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18568 # library is relocated.
18569 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18570
18571 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18572 # into the resulting binary.
18573 hardcode_minus_L=$hardcode_minus_L_CXX
18574
18575 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18576 # into the resulting binary.
18577 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18578
18579 # Set to "yes" if building a shared library automatically hardcodes DIR
18580 # into the library and all subsequent libraries and executables linked
18581 # against it.
18582 hardcode_automatic=$hardcode_automatic_CXX
18583
18584 # Set to yes if linker adds runtime paths of dependent libraries
18585 # to runtime path list.
18586 inherit_rpath=$inherit_rpath_CXX
18587
18588 # Whether libtool must link a program against all its dependency libraries.
18589 link_all_deplibs=$link_all_deplibs_CXX
18590
18591 # Fix the shell variable \$srcfile for the compiler.
18592 fix_srcfile_path=$lt_fix_srcfile_path_CXX
18593
18594 # Set to "yes" if exported symbols are required.
18595 always_export_symbols=$always_export_symbols_CXX
18596
18597 # The commands to list exported symbols.
18598 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18599
18600 # Symbols that should not be listed in the preloaded symbols.
18601 exclude_expsyms=$lt_exclude_expsyms_CXX
18602
18603 # Symbols that must always be exported.
18604 include_expsyms=$lt_include_expsyms_CXX
18605
18606 # Commands necessary for linking programs (against libraries) with templates.
18607 prelink_cmds=$lt_prelink_cmds_CXX
18608
18609 # Specify filename containing input files.
18610 file_list_spec=$lt_file_list_spec_CXX
18611
18612 # How to hardcode a shared library path into an executable.
18613 hardcode_action=$hardcode_action_CXX
18614
18615 # Dependencies to place before and after the objects being linked to
18616 # create a shared library.
18617 predep_objects=$lt_predep_objects_CXX
18618 postdep_objects=$lt_postdep_objects_CXX
18619 predeps=$lt_predeps_CXX
18620 postdeps=$lt_postdeps_CXX
18621
18622 # The library search path used internally by the compiler when linking
18623 # a shared library.
18624 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18625
18626 # ### END LIBTOOL TAG CONFIG: CXX
18627 _LT_EOF
18628
18629 ;;
18630 esac
18631 done
18632 _ACEOF
18633
18634 cat >>$CONFIG_STATUS <<\_ACEOF
18635
18636 { (exit 0); exit 0; }
18637 _ACEOF
18638 chmod +x $CONFIG_STATUS
18639 ac_clean_files=$ac_clean_files_save
18640
18641
18642 # configure is writing to config.log, and then calls config.status.
18643 # config.status does its own redirection, appending to config.log.
18644 # Unfortunately, on DOS this fails, as config.log is still kept open
18645 # by configure, so config.status won't be able to write to it; its
18646 # output is simply discarded. So we exec the FD to /dev/null,
18647 # effectively closing config.log, so it can be properly (re)opened and
18648 # appended to by config.status. When coming back to configure, we
18649 # need to make the FD available again.
18650 if test "$no_create" != yes; then
18651 ac_cs_success=:
18652 ac_config_status_args=
18653 test "$silent" = yes &&
18654 ac_config_status_args="$ac_config_status_args --quiet"
18655 exec 5>/dev/null
18656 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18657 exec 5>>config.log
18658 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18659 # would make configure fail if this is the last instruction.
18660 $ac_cs_success || { (exit 1); exit 1; }
18661 fi
18662