libfuncs.h (LTI_synchronize): New libfunc_index.
[official-gcc.git] / libobjc / configure
blob37ec7d24d3f84ffb0a5239c04d79967cda114909
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for package-unused version-unused.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
248 case X$lt_ECHO in
249 X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
253 esac
255 ECHO=${lt_ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
258 shift
259 elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
262 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $ECHO works!
265 else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
270 if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
272 shift
273 cat <<_LT_EOF
275 _LT_EOF
276 exit 0
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
280 # if CDPATH is set.
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
283 if test -z "$lt_ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
289 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
290 then
291 break
293 done
296 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
297 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
298 test "X$echo_testing_string" = "X$echo_test_string"; then
300 else
301 # The Solaris, AIX, and Digital Unix default echo programs unquote
302 # backslashes. This makes it impossible to quote backslashes using
303 # echo "$something" | sed 's/\\/\\\\/g'
305 # So, first we look for a working echo in the user's PATH.
307 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
308 for dir in $PATH /usr/ucb; do
309 IFS="$lt_save_ifs"
310 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
311 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313 test "X$echo_testing_string" = "X$echo_test_string"; then
314 ECHO="$dir/echo"
315 break
317 done
318 IFS="$lt_save_ifs"
320 if test "X$ECHO" = Xecho; then
321 # We didn't find a better echo, so look for alternatives.
322 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
323 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
324 test "X$echo_testing_string" = "X$echo_test_string"; then
325 # This shell has a builtin print -r that does the trick.
326 ECHO='print -r'
327 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
328 test "X$CONFIG_SHELL" != X/bin/ksh; then
329 # If we have ksh, try running configure again with it.
330 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
331 export ORIGINAL_CONFIG_SHELL
332 CONFIG_SHELL=/bin/ksh
333 export CONFIG_SHELL
334 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
335 else
336 # Try using printf.
337 ECHO='printf %s\n'
338 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
339 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
340 test "X$echo_testing_string" = "X$echo_test_string"; then
341 # Cool, printf works
343 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344 test "X$echo_testing_string" = 'X\t' &&
345 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346 test "X$echo_testing_string" = "X$echo_test_string"; then
347 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
348 export CONFIG_SHELL
349 SHELL="$CONFIG_SHELL"
350 export SHELL
351 ECHO="$CONFIG_SHELL $0 --fallback-echo"
352 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353 test "X$echo_testing_string" = 'X\t' &&
354 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355 test "X$echo_testing_string" = "X$echo_test_string"; then
356 ECHO="$CONFIG_SHELL $0 --fallback-echo"
357 else
358 # maybe with a smaller string...
359 prev=:
361 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
363 then
364 break
366 prev="$cmd"
367 done
369 if test "$prev" != 'sed 50q "$0"'; then
370 echo_test_string=`eval $prev`
371 export echo_test_string
372 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
373 else
374 # Oops. We lost completely, so just stick with echo.
375 ECHO=echo
383 # Copy echo and quote the copy suitably for passing to libtool from
384 # the Makefile, instead of quoting the original, which is used later.
385 lt_ECHO=$ECHO
386 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
393 # Name of the host.
394 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395 # so uname gets run too.
396 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
398 exec 6>&1
401 # Initializations.
403 ac_default_prefix=/usr/local
404 ac_config_libobj_dir=.
405 cross_compiling=no
406 subdirs=
407 MFLAGS=
408 MAKEFLAGS=
409 SHELL=${CONFIG_SHELL-/bin/sh}
411 # Maximum number of lines to put in a shell here document.
412 # This variable seems obsolete. It should probably be removed, and
413 # only ac_max_sed_lines should be used.
414 : ${ac_max_here_lines=38}
416 # Identity of this package.
417 PACKAGE_NAME='package-unused'
418 PACKAGE_TARNAME='libobjc'
419 PACKAGE_VERSION='version-unused'
420 PACKAGE_STRING='package-unused version-unused'
421 PACKAGE_BUGREPORT=''
423 ac_unique_file="objc/objc.h"
424 # Factoring default headers for most tests.
425 ac_includes_default="\
426 #include <stdio.h>
427 #if HAVE_SYS_TYPES_H
428 # include <sys/types.h>
429 #endif
430 #if HAVE_SYS_STAT_H
431 # include <sys/stat.h>
432 #endif
433 #if STDC_HEADERS
434 # include <stdlib.h>
435 # include <stddef.h>
436 #else
437 # if HAVE_STDLIB_H
438 # include <stdlib.h>
439 # endif
440 #endif
441 #if HAVE_STRING_H
442 # if !STDC_HEADERS && HAVE_MEMORY_H
443 # include <memory.h>
444 # endif
445 # include <string.h>
446 #endif
447 #if HAVE_STRINGS_H
448 # include <strings.h>
449 #endif
450 #if HAVE_INTTYPES_H
451 # include <inttypes.h>
452 #else
453 # if HAVE_STDINT_H
454 # include <stdint.h>
455 # endif
456 #endif
457 #if HAVE_UNISTD_H
458 # include <unistd.h>
459 #endif"
461 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os build_libsubdir build_subdir host_subdir target_subdir VERSION OBJC_BOEHM_GC OBJC_BOEHM_GC_INCLUDES multi_basedir host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical glibcpp_srcdir toolexecdir toolexeclibdir includedirname libsuffix CC ac_ct_CC EXEEXT OBJEXT extra_ldflags_libobjc CFLAGS AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT DLLTOOL ac_ct_DLLTOOL OBJDUMP ac_ct_OBJDUMP LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S STRIP ac_ct_STRIP lt_ECHO CPP CPPFLAGS SET_MAKE LIBOBJS LTLIBOBJS'
462 ac_subst_files=''
463 ac_pwd=`pwd`
465 # Initialize some variables set by options.
466 ac_init_help=
467 ac_init_version=false
468 # The variables have the same names as the options, with
469 # dashes changed to underlines.
470 cache_file=/dev/null
471 exec_prefix=NONE
472 no_create=
473 no_recursion=
474 prefix=NONE
475 program_prefix=NONE
476 program_suffix=NONE
477 program_transform_name=s,x,x,
478 silent=
479 site=
480 srcdir=
481 verbose=
482 x_includes=NONE
483 x_libraries=NONE
485 # Installation directory options.
486 # These are left unexpanded so users can "make install exec_prefix=/foo"
487 # and all the variables that are supposed to be based on exec_prefix
488 # by default will actually change.
489 # Use braces instead of parens because sh, perl, etc. also accept them.
490 bindir='${exec_prefix}/bin'
491 sbindir='${exec_prefix}/sbin'
492 libexecdir='${exec_prefix}/libexec'
493 datadir='${prefix}/share'
494 sysconfdir='${prefix}/etc'
495 sharedstatedir='${prefix}/com'
496 localstatedir='${prefix}/var'
497 libdir='${exec_prefix}/lib'
498 includedir='${prefix}/include'
499 oldincludedir='/usr/include'
500 infodir='${prefix}/info'
501 mandir='${prefix}/man'
503 ac_prev=
504 for ac_option
506 # If the previous option needs an argument, assign it.
507 if test -n "$ac_prev"; then
508 eval "$ac_prev=\$ac_option"
509 ac_prev=
510 continue
513 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
515 # Accept the important Cygnus configure options, so we can diagnose typos.
517 case $ac_option in
519 -bindir | --bindir | --bindi | --bind | --bin | --bi)
520 ac_prev=bindir ;;
521 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
522 bindir=$ac_optarg ;;
524 -build | --build | --buil | --bui | --bu)
525 ac_prev=build_alias ;;
526 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
527 build_alias=$ac_optarg ;;
529 -cache-file | --cache-file | --cache-fil | --cache-fi \
530 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
531 ac_prev=cache_file ;;
532 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
533 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
534 cache_file=$ac_optarg ;;
536 --config-cache | -C)
537 cache_file=config.cache ;;
539 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
540 ac_prev=datadir ;;
541 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
542 | --da=*)
543 datadir=$ac_optarg ;;
545 -disable-* | --disable-*)
546 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
547 # Reject names that are not valid shell variable names.
548 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
549 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
550 { (exit 1); exit 1; }; }
551 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
552 eval "enable_$ac_feature=no" ;;
554 -enable-* | --enable-*)
555 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
556 # Reject names that are not valid shell variable names.
557 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559 { (exit 1); exit 1; }; }
560 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561 case $ac_option in
562 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
563 *) ac_optarg=yes ;;
564 esac
565 eval "enable_$ac_feature='$ac_optarg'" ;;
567 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
568 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
569 | --exec | --exe | --ex)
570 ac_prev=exec_prefix ;;
571 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
572 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
573 | --exec=* | --exe=* | --ex=*)
574 exec_prefix=$ac_optarg ;;
576 -gas | --gas | --ga | --g)
577 # Obsolete; use --with-gas.
578 with_gas=yes ;;
580 -help | --help | --hel | --he | -h)
581 ac_init_help=long ;;
582 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
583 ac_init_help=recursive ;;
584 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
585 ac_init_help=short ;;
587 -host | --host | --hos | --ho)
588 ac_prev=host_alias ;;
589 -host=* | --host=* | --hos=* | --ho=*)
590 host_alias=$ac_optarg ;;
592 -includedir | --includedir | --includedi | --included | --include \
593 | --includ | --inclu | --incl | --inc)
594 ac_prev=includedir ;;
595 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
596 | --includ=* | --inclu=* | --incl=* | --inc=*)
597 includedir=$ac_optarg ;;
599 -infodir | --infodir | --infodi | --infod | --info | --inf)
600 ac_prev=infodir ;;
601 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
602 infodir=$ac_optarg ;;
604 -libdir | --libdir | --libdi | --libd)
605 ac_prev=libdir ;;
606 -libdir=* | --libdir=* | --libdi=* | --libd=*)
607 libdir=$ac_optarg ;;
609 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
610 | --libexe | --libex | --libe)
611 ac_prev=libexecdir ;;
612 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
613 | --libexe=* | --libex=* | --libe=*)
614 libexecdir=$ac_optarg ;;
616 -localstatedir | --localstatedir | --localstatedi | --localstated \
617 | --localstate | --localstat | --localsta | --localst \
618 | --locals | --local | --loca | --loc | --lo)
619 ac_prev=localstatedir ;;
620 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
621 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
622 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
623 localstatedir=$ac_optarg ;;
625 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
626 ac_prev=mandir ;;
627 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
628 mandir=$ac_optarg ;;
630 -nfp | --nfp | --nf)
631 # Obsolete; use --without-fp.
632 with_fp=no ;;
634 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
635 | --no-cr | --no-c | -n)
636 no_create=yes ;;
638 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
639 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
640 no_recursion=yes ;;
642 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
643 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
644 | --oldin | --oldi | --old | --ol | --o)
645 ac_prev=oldincludedir ;;
646 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
647 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
648 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
649 oldincludedir=$ac_optarg ;;
651 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
652 ac_prev=prefix ;;
653 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
654 prefix=$ac_optarg ;;
656 -program-prefix | --program-prefix | --program-prefi | --program-pref \
657 | --program-pre | --program-pr | --program-p)
658 ac_prev=program_prefix ;;
659 -program-prefix=* | --program-prefix=* | --program-prefi=* \
660 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
661 program_prefix=$ac_optarg ;;
663 -program-suffix | --program-suffix | --program-suffi | --program-suff \
664 | --program-suf | --program-su | --program-s)
665 ac_prev=program_suffix ;;
666 -program-suffix=* | --program-suffix=* | --program-suffi=* \
667 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
668 program_suffix=$ac_optarg ;;
670 -program-transform-name | --program-transform-name \
671 | --program-transform-nam | --program-transform-na \
672 | --program-transform-n | --program-transform- \
673 | --program-transform | --program-transfor \
674 | --program-transfo | --program-transf \
675 | --program-trans | --program-tran \
676 | --progr-tra | --program-tr | --program-t)
677 ac_prev=program_transform_name ;;
678 -program-transform-name=* | --program-transform-name=* \
679 | --program-transform-nam=* | --program-transform-na=* \
680 | --program-transform-n=* | --program-transform-=* \
681 | --program-transform=* | --program-transfor=* \
682 | --program-transfo=* | --program-transf=* \
683 | --program-trans=* | --program-tran=* \
684 | --progr-tra=* | --program-tr=* | --program-t=*)
685 program_transform_name=$ac_optarg ;;
687 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
688 | -silent | --silent | --silen | --sile | --sil)
689 silent=yes ;;
691 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
692 ac_prev=sbindir ;;
693 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
694 | --sbi=* | --sb=*)
695 sbindir=$ac_optarg ;;
697 -sharedstatedir | --sharedstatedir | --sharedstatedi \
698 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
699 | --sharedst | --shareds | --shared | --share | --shar \
700 | --sha | --sh)
701 ac_prev=sharedstatedir ;;
702 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
703 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
704 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
705 | --sha=* | --sh=*)
706 sharedstatedir=$ac_optarg ;;
708 -site | --site | --sit)
709 ac_prev=site ;;
710 -site=* | --site=* | --sit=*)
711 site=$ac_optarg ;;
713 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
714 ac_prev=srcdir ;;
715 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
716 srcdir=$ac_optarg ;;
718 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
719 | --syscon | --sysco | --sysc | --sys | --sy)
720 ac_prev=sysconfdir ;;
721 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
722 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
723 sysconfdir=$ac_optarg ;;
725 -target | --target | --targe | --targ | --tar | --ta | --t)
726 ac_prev=target_alias ;;
727 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
728 target_alias=$ac_optarg ;;
730 -v | -verbose | --verbose | --verbos | --verbo | --verb)
731 verbose=yes ;;
733 -version | --version | --versio | --versi | --vers | -V)
734 ac_init_version=: ;;
736 -with-* | --with-*)
737 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
738 # Reject names that are not valid shell variable names.
739 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
740 { echo "$as_me: error: invalid package name: $ac_package" >&2
741 { (exit 1); exit 1; }; }
742 ac_package=`echo $ac_package| sed 's/-/_/g'`
743 case $ac_option in
744 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
745 *) ac_optarg=yes ;;
746 esac
747 eval "with_$ac_package='$ac_optarg'" ;;
749 -without-* | --without-*)
750 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
751 # Reject names that are not valid shell variable names.
752 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753 { echo "$as_me: error: invalid package name: $ac_package" >&2
754 { (exit 1); exit 1; }; }
755 ac_package=`echo $ac_package | sed 's/-/_/g'`
756 eval "with_$ac_package=no" ;;
758 --x)
759 # Obsolete; use --with-x.
760 with_x=yes ;;
762 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
763 | --x-incl | --x-inc | --x-in | --x-i)
764 ac_prev=x_includes ;;
765 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
766 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
767 x_includes=$ac_optarg ;;
769 -x-libraries | --x-libraries | --x-librarie | --x-librari \
770 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
771 ac_prev=x_libraries ;;
772 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
773 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
774 x_libraries=$ac_optarg ;;
776 -*) { echo "$as_me: error: unrecognized option: $ac_option
777 Try \`$0 --help' for more information." >&2
778 { (exit 1); exit 1; }; }
781 *=*)
782 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
783 # Reject names that are not valid shell variable names.
784 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
785 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
786 { (exit 1); exit 1; }; }
787 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
788 eval "$ac_envvar='$ac_optarg'"
789 export $ac_envvar ;;
792 # FIXME: should be removed in autoconf 3.0.
793 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
794 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
795 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
796 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
799 esac
800 done
802 if test -n "$ac_prev"; then
803 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
804 { echo "$as_me: error: missing argument to $ac_option" >&2
805 { (exit 1); exit 1; }; }
808 # Be sure to have absolute paths.
809 for ac_var in exec_prefix prefix
811 eval ac_val=$`echo $ac_var`
812 case $ac_val in
813 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
814 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
815 { (exit 1); exit 1; }; };;
816 esac
817 done
819 # Be sure to have absolute paths.
820 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
821 localstatedir libdir includedir oldincludedir infodir mandir
823 eval ac_val=$`echo $ac_var`
824 case $ac_val in
825 [\\/$]* | ?:[\\/]* ) ;;
826 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
827 { (exit 1); exit 1; }; };;
828 esac
829 done
831 # There might be people who depend on the old broken behavior: `$host'
832 # used to hold the argument of --host etc.
833 # FIXME: To remove some day.
834 build=$build_alias
835 host=$host_alias
836 target=$target_alias
838 # FIXME: To remove some day.
839 if test "x$host_alias" != x; then
840 if test "x$build_alias" = x; then
841 cross_compiling=maybe
842 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
843 If a cross compiler is detected then cross compile mode will be used." >&2
844 elif test "x$build_alias" != "x$host_alias"; then
845 cross_compiling=yes
849 ac_tool_prefix=
850 test -n "$host_alias" && ac_tool_prefix=$host_alias-
852 test "$silent" = yes && exec 6>/dev/null
855 # Find the source files, if location was not specified.
856 if test -z "$srcdir"; then
857 ac_srcdir_defaulted=yes
858 # Try the directory containing this script, then its parent.
859 ac_confdir=`(dirname "$0") 2>/dev/null ||
860 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
861 X"$0" : 'X\(//\)[^/]' \| \
862 X"$0" : 'X\(//\)$' \| \
863 X"$0" : 'X\(/\)' \| \
864 . : '\(.\)' 2>/dev/null ||
865 echo X"$0" |
866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
867 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
868 /^X\(\/\/\)$/{ s//\1/; q; }
869 /^X\(\/\).*/{ s//\1/; q; }
870 s/.*/./; q'`
871 srcdir=$ac_confdir
872 if test ! -r $srcdir/$ac_unique_file; then
873 srcdir=..
875 else
876 ac_srcdir_defaulted=no
878 if test ! -r $srcdir/$ac_unique_file; then
879 if test "$ac_srcdir_defaulted" = yes; then
880 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
881 { (exit 1); exit 1; }; }
882 else
883 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
884 { (exit 1); exit 1; }; }
887 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
888 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
889 { (exit 1); exit 1; }; }
890 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
891 ac_env_build_alias_set=${build_alias+set}
892 ac_env_build_alias_value=$build_alias
893 ac_cv_env_build_alias_set=${build_alias+set}
894 ac_cv_env_build_alias_value=$build_alias
895 ac_env_host_alias_set=${host_alias+set}
896 ac_env_host_alias_value=$host_alias
897 ac_cv_env_host_alias_set=${host_alias+set}
898 ac_cv_env_host_alias_value=$host_alias
899 ac_env_target_alias_set=${target_alias+set}
900 ac_env_target_alias_value=$target_alias
901 ac_cv_env_target_alias_set=${target_alias+set}
902 ac_cv_env_target_alias_value=$target_alias
903 ac_env_CPP_set=${CPP+set}
904 ac_env_CPP_value=$CPP
905 ac_cv_env_CPP_set=${CPP+set}
906 ac_cv_env_CPP_value=$CPP
907 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
908 ac_env_CPPFLAGS_value=$CPPFLAGS
909 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
910 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
913 # Report the --help message.
915 if test "$ac_init_help" = "long"; then
916 # Omit some internal or obsolete options to make the list less imposing.
917 # This message is too long to be a string in the A/UX 3.1 sh.
918 cat <<_ACEOF
919 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
921 Usage: $0 [OPTION]... [VAR=VALUE]...
923 To assign environment variables (e.g., CC, CFLAGS...), specify them as
924 VAR=VALUE. See below for descriptions of some of the useful variables.
926 Defaults for the options are specified in brackets.
928 Configuration:
929 -h, --help display this help and exit
930 --help=short display options specific to this package
931 --help=recursive display the short help of all the included packages
932 -V, --version display version information and exit
933 -q, --quiet, --silent do not print \`checking...' messages
934 --cache-file=FILE cache test results in FILE [disabled]
935 -C, --config-cache alias for \`--cache-file=config.cache'
936 -n, --no-create do not create output files
937 --srcdir=DIR find the sources in DIR [configure dir or \`..']
939 _ACEOF
941 cat <<_ACEOF
942 Installation directories:
943 --prefix=PREFIX install architecture-independent files in PREFIX
944 [$ac_default_prefix]
945 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
946 [PREFIX]
948 By default, \`make install' will install all the files in
949 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
950 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
951 for instance \`--prefix=\$HOME'.
953 For better control, use the options below.
955 Fine tuning of the installation directories:
956 --bindir=DIR user executables [EPREFIX/bin]
957 --sbindir=DIR system admin executables [EPREFIX/sbin]
958 --libexecdir=DIR program executables [EPREFIX/libexec]
959 --datadir=DIR read-only architecture-independent data [PREFIX/share]
960 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
961 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
962 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
963 --libdir=DIR object code libraries [EPREFIX/lib]
964 --includedir=DIR C header files [PREFIX/include]
965 --oldincludedir=DIR C header files for non-gcc [/usr/include]
966 --infodir=DIR info documentation [PREFIX/info]
967 --mandir=DIR man documentation [PREFIX/man]
968 _ACEOF
970 cat <<\_ACEOF
972 System types:
973 --build=BUILD configure for building on BUILD [guessed]
974 --host=HOST cross-compile to build programs to run on HOST [BUILD]
975 --target=TARGET configure for building compilers for TARGET [HOST]
976 _ACEOF
979 if test -n "$ac_init_help"; then
980 case $ac_init_help in
981 short | recursive ) echo "Configuration of package-unused version-unused:";;
982 esac
983 cat <<\_ACEOF
985 Optional Features:
986 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
987 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
988 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
989 --enable-objc-gc enable the use of Boehm's garbage collector with
990 the GNU Objective-C runtime.
991 --enable-multilib build many library versions (default)
992 --enable-maintainer-mode enable make rules and dependencies not useful
993 (and sometimes confusing) to the casual installer
994 --enable-shared[=PKGS]
995 build shared libraries [default=yes]
996 --enable-static[=PKGS]
997 build static libraries [default=yes]
998 --enable-fast-install[=PKGS]
999 optimize for fast installation [default=yes]
1000 --disable-libtool-lock avoid locking (might break parallel builds)
1001 --enable-sjlj-exceptions
1002 force use of builtin_setjmp for exceptions
1004 Optional Packages:
1005 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1006 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1007 --with-build-libsubdir=DIR Directory where to find libraries for build system
1008 --with-target-subdir=SUBDIR
1009 configuring in a subdirectory
1010 --with-cross-host=HOST configuring with a cross compiler
1011 --with-pic try to use only PIC/non-PIC objects [default=use
1012 both]
1013 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1015 Some influential environment variables:
1016 CC C compiler command
1017 CFLAGS C compiler flags
1018 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1019 nonstandard directory <lib dir>
1020 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1021 headers in a nonstandard directory <include dir>
1022 CPP C preprocessor
1024 Use these variables to override the choices made by `configure' or to help
1025 it to find libraries and programs with nonstandard names/locations.
1027 _ACEOF
1030 if test "$ac_init_help" = "recursive"; then
1031 # If there are subdirs, report their specific --help.
1032 ac_popdir=`pwd`
1033 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1034 test -d $ac_dir || continue
1035 ac_builddir=.
1037 if test "$ac_dir" != .; then
1038 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1039 # A "../" for each directory in $ac_dir_suffix.
1040 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1041 else
1042 ac_dir_suffix= ac_top_builddir=
1045 case $srcdir in
1046 .) # No --srcdir option. We are building in place.
1047 ac_srcdir=.
1048 if test -z "$ac_top_builddir"; then
1049 ac_top_srcdir=.
1050 else
1051 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1052 fi ;;
1053 [\\/]* | ?:[\\/]* ) # Absolute path.
1054 ac_srcdir=$srcdir$ac_dir_suffix;
1055 ac_top_srcdir=$srcdir ;;
1056 *) # Relative path.
1057 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1058 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1059 esac
1061 # Do not use `cd foo && pwd` to compute absolute paths, because
1062 # the directories may not exist.
1063 case `pwd` in
1064 .) ac_abs_builddir="$ac_dir";;
1066 case "$ac_dir" in
1067 .) ac_abs_builddir=`pwd`;;
1068 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1069 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1070 esac;;
1071 esac
1072 case $ac_abs_builddir in
1073 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1075 case ${ac_top_builddir}. in
1076 .) ac_abs_top_builddir=$ac_abs_builddir;;
1077 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1078 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1079 esac;;
1080 esac
1081 case $ac_abs_builddir in
1082 .) ac_abs_srcdir=$ac_srcdir;;
1084 case $ac_srcdir in
1085 .) ac_abs_srcdir=$ac_abs_builddir;;
1086 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1087 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1088 esac;;
1089 esac
1090 case $ac_abs_builddir in
1091 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1093 case $ac_top_srcdir in
1094 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1095 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1096 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1097 esac;;
1098 esac
1100 cd $ac_dir
1101 # Check for guested configure; otherwise get Cygnus style configure.
1102 if test -f $ac_srcdir/configure.gnu; then
1103 echo
1104 $SHELL $ac_srcdir/configure.gnu --help=recursive
1105 elif test -f $ac_srcdir/configure; then
1106 echo
1107 $SHELL $ac_srcdir/configure --help=recursive
1108 elif test -f $ac_srcdir/configure.ac ||
1109 test -f $ac_srcdir/configure.in; then
1110 echo
1111 $ac_configure --help
1112 else
1113 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1115 cd $ac_popdir
1116 done
1119 test -n "$ac_init_help" && exit 0
1120 if $ac_init_version; then
1121 cat <<\_ACEOF
1122 package-unused configure version-unused
1123 generated by GNU Autoconf 2.59
1125 Copyright (C) 2003 Free Software Foundation, Inc.
1126 This configure script is free software; the Free Software Foundation
1127 gives unlimited permission to copy, distribute and modify it.
1128 _ACEOF
1129 exit 0
1131 exec 5>config.log
1132 cat >&5 <<_ACEOF
1133 This file contains any messages produced by compilers while
1134 running configure, to aid debugging if configure makes a mistake.
1136 It was created by package-unused $as_me version-unused, which was
1137 generated by GNU Autoconf 2.59. Invocation command line was
1139 $ $0 $@
1141 _ACEOF
1143 cat <<_ASUNAME
1144 ## --------- ##
1145 ## Platform. ##
1146 ## --------- ##
1148 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1149 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1150 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1151 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1152 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1154 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1155 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1157 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1158 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1159 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1160 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1161 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1162 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1163 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1165 _ASUNAME
1167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1168 for as_dir in $PATH
1170 IFS=$as_save_IFS
1171 test -z "$as_dir" && as_dir=.
1172 echo "PATH: $as_dir"
1173 done
1175 } >&5
1177 cat >&5 <<_ACEOF
1180 ## ----------- ##
1181 ## Core tests. ##
1182 ## ----------- ##
1184 _ACEOF
1187 # Keep a trace of the command line.
1188 # Strip out --no-create and --no-recursion so they do not pile up.
1189 # Strip out --silent because we don't want to record it for future runs.
1190 # Also quote any args containing shell meta-characters.
1191 # Make two passes to allow for proper duplicate-argument suppression.
1192 ac_configure_args=
1193 ac_configure_args0=
1194 ac_configure_args1=
1195 ac_sep=
1196 ac_must_keep_next=false
1197 for ac_pass in 1 2
1199 for ac_arg
1201 case $ac_arg in
1202 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1203 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1204 | -silent | --silent | --silen | --sile | --sil)
1205 continue ;;
1206 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1207 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1208 esac
1209 case $ac_pass in
1210 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1212 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1213 if test $ac_must_keep_next = true; then
1214 ac_must_keep_next=false # Got value, back to normal.
1215 else
1216 case $ac_arg in
1217 *=* | --config-cache | -C | -disable-* | --disable-* \
1218 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1219 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1220 | -with-* | --with-* | -without-* | --without-* | --x)
1221 case "$ac_configure_args0 " in
1222 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1223 esac
1225 -* ) ac_must_keep_next=true ;;
1226 esac
1228 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1229 # Get rid of the leading space.
1230 ac_sep=" "
1232 esac
1233 done
1234 done
1235 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1236 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1238 # When interrupted or exit'd, cleanup temporary files, and complete
1239 # config.log. We remove comments because anyway the quotes in there
1240 # would cause problems or look ugly.
1241 # WARNING: Be sure not to use single quotes in there, as some shells,
1242 # such as our DU 5.0 friend, will then `close' the trap.
1243 trap 'exit_status=$?
1244 # Save into config.log some information that might help in debugging.
1246 echo
1248 cat <<\_ASBOX
1249 ## ---------------- ##
1250 ## Cache variables. ##
1251 ## ---------------- ##
1252 _ASBOX
1253 echo
1254 # The following way of writing the cache mishandles newlines in values,
1256 (set) 2>&1 |
1257 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1258 *ac_space=\ *)
1259 sed -n \
1260 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1261 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1264 sed -n \
1265 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1267 esac;
1269 echo
1271 cat <<\_ASBOX
1272 ## ----------------- ##
1273 ## Output variables. ##
1274 ## ----------------- ##
1275 _ASBOX
1276 echo
1277 for ac_var in $ac_subst_vars
1279 eval ac_val=$`echo $ac_var`
1280 echo "$ac_var='"'"'$ac_val'"'"'"
1281 done | sort
1282 echo
1284 if test -n "$ac_subst_files"; then
1285 cat <<\_ASBOX
1286 ## ------------- ##
1287 ## Output files. ##
1288 ## ------------- ##
1289 _ASBOX
1290 echo
1291 for ac_var in $ac_subst_files
1293 eval ac_val=$`echo $ac_var`
1294 echo "$ac_var='"'"'$ac_val'"'"'"
1295 done | sort
1296 echo
1299 if test -s confdefs.h; then
1300 cat <<\_ASBOX
1301 ## ----------- ##
1302 ## confdefs.h. ##
1303 ## ----------- ##
1304 _ASBOX
1305 echo
1306 sed "/^$/d" confdefs.h | sort
1307 echo
1309 test "$ac_signal" != 0 &&
1310 echo "$as_me: caught signal $ac_signal"
1311 echo "$as_me: exit $exit_status"
1312 } >&5
1313 rm -f core *.core &&
1314 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1315 exit $exit_status
1317 for ac_signal in 1 2 13 15; do
1318 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1319 done
1320 ac_signal=0
1322 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1323 rm -rf conftest* confdefs.h
1324 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1325 echo >confdefs.h
1327 # Predefined preprocessor variables.
1329 cat >>confdefs.h <<_ACEOF
1330 #define PACKAGE_NAME "$PACKAGE_NAME"
1331 _ACEOF
1334 cat >>confdefs.h <<_ACEOF
1335 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1336 _ACEOF
1339 cat >>confdefs.h <<_ACEOF
1340 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1341 _ACEOF
1344 cat >>confdefs.h <<_ACEOF
1345 #define PACKAGE_STRING "$PACKAGE_STRING"
1346 _ACEOF
1349 cat >>confdefs.h <<_ACEOF
1350 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1351 _ACEOF
1354 # Let the site file select an alternate cache file if it wants to.
1355 # Prefer explicitly selected file to automatically selected ones.
1356 if test -z "$CONFIG_SITE"; then
1357 if test "x$prefix" != xNONE; then
1358 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1359 else
1360 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1363 for ac_site_file in $CONFIG_SITE; do
1364 if test -r "$ac_site_file"; then
1365 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1366 echo "$as_me: loading site script $ac_site_file" >&6;}
1367 sed 's/^/| /' "$ac_site_file" >&5
1368 . "$ac_site_file"
1370 done
1372 if test -r "$cache_file"; then
1373 # Some versions of bash will fail to source /dev/null (special
1374 # files actually), so we avoid doing that.
1375 if test -f "$cache_file"; then
1376 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1377 echo "$as_me: loading cache $cache_file" >&6;}
1378 case $cache_file in
1379 [\\/]* | ?:[\\/]* ) . $cache_file;;
1380 *) . ./$cache_file;;
1381 esac
1383 else
1384 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1385 echo "$as_me: creating cache $cache_file" >&6;}
1386 >$cache_file
1389 # Check that the precious variables saved in the cache have kept the same
1390 # value.
1391 ac_cache_corrupted=false
1392 for ac_var in `(set) 2>&1 |
1393 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1394 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1395 eval ac_new_set=\$ac_env_${ac_var}_set
1396 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1397 eval ac_new_val="\$ac_env_${ac_var}_value"
1398 case $ac_old_set,$ac_new_set in
1399 set,)
1400 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1401 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1402 ac_cache_corrupted=: ;;
1403 ,set)
1404 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1405 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1406 ac_cache_corrupted=: ;;
1407 ,);;
1409 if test "x$ac_old_val" != "x$ac_new_val"; then
1410 # differences in whitespace do not lead to failure.
1411 ac_old_val_w=`echo x $ac_old_val`
1412 ac_new_val_w=`echo x $ac_new_val`
1413 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1414 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1415 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1416 ac_cache_corrupted=:
1417 else
1418 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1419 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1420 eval $ac_var=\$ac_old_val
1422 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1423 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1424 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1425 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1426 fi;;
1427 esac
1428 # Pass precious variables to config.status.
1429 if test "$ac_new_set" = set; then
1430 case $ac_new_val in
1431 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1432 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1433 *) ac_arg=$ac_var=$ac_new_val ;;
1434 esac
1435 case " $ac_configure_args " in
1436 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1437 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1438 esac
1440 done
1441 if $ac_cache_corrupted; then
1442 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1443 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1444 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1445 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1446 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1447 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1448 { (exit 1); exit 1; }; }
1451 ac_ext=c
1452 ac_cpp='$CPP $CPPFLAGS'
1453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1487 ac_aux_dir=
1488 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1489 if test -f $ac_dir/install-sh; then
1490 ac_aux_dir=$ac_dir
1491 ac_install_sh="$ac_aux_dir/install-sh -c"
1492 break
1493 elif test -f $ac_dir/install.sh; then
1494 ac_aux_dir=$ac_dir
1495 ac_install_sh="$ac_aux_dir/install.sh -c"
1496 break
1497 elif test -f $ac_dir/shtool; then
1498 ac_aux_dir=$ac_dir
1499 ac_install_sh="$ac_aux_dir/shtool install -c"
1500 break
1502 done
1503 if test -z "$ac_aux_dir"; then
1504 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1505 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1506 { (exit 1); exit 1; }; }
1508 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1509 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1510 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1512 # Make sure we can run config.sub.
1513 $ac_config_sub sun4 >/dev/null 2>&1 ||
1514 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1515 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1516 { (exit 1); exit 1; }; }
1518 echo "$as_me:$LINENO: checking build system type" >&5
1519 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1520 if test "${ac_cv_build+set}" = set; then
1521 echo $ECHO_N "(cached) $ECHO_C" >&6
1522 else
1523 ac_cv_build_alias=$build_alias
1524 test -z "$ac_cv_build_alias" &&
1525 ac_cv_build_alias=`$ac_config_guess`
1526 test -z "$ac_cv_build_alias" &&
1527 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1528 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1529 { (exit 1); exit 1; }; }
1530 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1531 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1532 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1533 { (exit 1); exit 1; }; }
1536 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1537 echo "${ECHO_T}$ac_cv_build" >&6
1538 build=$ac_cv_build
1539 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1540 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1541 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1544 case ${build_alias} in
1545 "") build_noncanonical=${build} ;;
1546 *) build_noncanonical=${build_alias} ;;
1547 esac
1549 case ${host_alias} in
1550 "") host_noncanonical=${build_noncanonical} ;;
1551 *) host_noncanonical=${host_alias} ;;
1552 esac
1554 case ${target_alias} in
1555 "") target_noncanonical=${host_noncanonical} ;;
1556 *) target_noncanonical=${target_alias} ;;
1557 esac
1560 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1561 # have matching libraries, they should use host libraries: Makefile.tpl
1562 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1563 # However, they still use the build modules, because the corresponding
1564 # host modules (e.g. bison) are only built for the host when bootstrap
1565 # finishes. So:
1566 # - build_subdir is where we find build modules, and never changes.
1567 # - build_libsubdir is where we find build libraries, and can be overridden.
1569 # Prefix 'build-' so this never conflicts with target_subdir.
1570 build_subdir="build-${build_noncanonical}"
1572 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1573 if test "${with_build_libsubdir+set}" = set; then
1574 withval="$with_build_libsubdir"
1575 build_libsubdir="$withval"
1576 else
1577 build_libsubdir="$build_subdir"
1579 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1580 if ( test $srcdir = . && test -d gcc ) \
1581 || test -d $srcdir/../host-${host_noncanonical}; then
1582 host_subdir="host-${host_noncanonical}"
1583 else
1584 host_subdir=.
1586 # No prefix.
1587 target_subdir=${target_noncanonical}
1590 # We need the following definitions because AC_PROG_LIBTOOL relies on them
1591 PACKAGE=libobjc
1592 # Version is pulled out to make it a bit easier to change using sed.
1593 VERSION=2:0:0
1596 # This works around the fact that libtool configuration may change LD
1597 # for this particular configuration, but some shells, instead of
1598 # keeping the changes in LD private, export them just because LD is
1599 # exported.
1600 ORIGINAL_LD_FOR_MULTILIBS=$LD
1602 # -------
1603 # Options
1604 # -------
1606 # We use these options to decide which functions to include.
1608 # Check whether --with-target-subdir or --without-target-subdir was given.
1609 if test "${with_target_subdir+set}" = set; then
1610 withval="$with_target_subdir"
1614 # Check whether --with-cross-host or --without-cross-host was given.
1615 if test "${with_cross_host+set}" = set; then
1616 withval="$with_cross_host"
1620 echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
1621 echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
1622 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1623 if test "${enable_version_specific_runtime_libs+set}" = set; then
1624 enableval="$enable_version_specific_runtime_libs"
1625 case "$enableval" in
1626 yes) version_specific_libs=yes ;;
1627 no) version_specific_libs=no ;;
1628 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1629 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1630 { (exit 1); exit 1; }; };;
1631 esac
1632 else
1633 version_specific_libs=no
1635 echo "$as_me:$LINENO: result: $version_specific_libs" >&5
1636 echo "${ECHO_T}$version_specific_libs" >&6
1638 # Check whether --enable-objc-gc or --disable-objc-gc was given.
1639 if test "${enable_objc_gc+set}" = set; then
1640 enableval="$enable_objc_gc"
1641 case $enable_objc_gc in
1643 OBJC_BOEHM_GC=''
1644 OBJC_BOEHM_GC_INCLUDES=''
1647 OBJC_BOEHM_GC=libobjc_gc.la
1648 OBJC_BOEHM_GC_INCLUDES='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
1650 esac
1651 else
1652 OBJC_BOEHM_GC=''; OBJC_BOEHM_GC_INCLUDES=''
1657 # -----------
1658 # Directories
1659 # -----------
1661 # Find the rest of the source tree framework.
1662 # Default to --enable-multilib
1663 # Check whether --enable-multilib or --disable-multilib was given.
1664 if test "${enable_multilib+set}" = set; then
1665 enableval="$enable_multilib"
1666 case "$enableval" in
1667 yes) multilib=yes ;;
1668 no) multilib=no ;;
1669 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1670 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1671 { (exit 1); exit 1; }; } ;;
1672 esac
1673 else
1674 multilib=yes
1677 # We may get other options which we leave undocumented:
1678 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1679 # See config-ml.in if you want the gory details.
1681 if test "$srcdir" = "."; then
1682 if test "$with_target_subdir" != "."; then
1683 multi_basedir="$srcdir/$with_multisrctop../.."
1684 else
1685 multi_basedir="$srcdir/$with_multisrctop.."
1687 else
1688 multi_basedir="$srcdir/.."
1692 # Even if the default multilib is not a cross compilation,
1693 # it may be that some of the other multilibs are.
1694 if test $cross_compiling = no && test $multilib = yes \
1695 && test "x${with_multisubdir}" != x ; then
1696 cross_compiling=maybe
1699 ac_config_commands="$ac_config_commands default-1"
1702 echo "$as_me:$LINENO: checking host system type" >&5
1703 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1704 if test "${ac_cv_host+set}" = set; then
1705 echo $ECHO_N "(cached) $ECHO_C" >&6
1706 else
1707 ac_cv_host_alias=$host_alias
1708 test -z "$ac_cv_host_alias" &&
1709 ac_cv_host_alias=$ac_cv_build_alias
1710 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1711 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1712 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1713 { (exit 1); exit 1; }; }
1716 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1717 echo "${ECHO_T}$ac_cv_host" >&6
1718 host=$ac_cv_host
1719 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1720 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1721 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1724 echo "$as_me:$LINENO: checking target system type" >&5
1725 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1726 if test "${ac_cv_target+set}" = set; then
1727 echo $ECHO_N "(cached) $ECHO_C" >&6
1728 else
1729 ac_cv_target_alias=$target_alias
1730 test "x$ac_cv_target_alias" = "x" &&
1731 ac_cv_target_alias=$ac_cv_host_alias
1732 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1733 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1734 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1735 { (exit 1); exit 1; }; }
1738 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1739 echo "${ECHO_T}$ac_cv_target" >&6
1740 target=$ac_cv_target
1741 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1742 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1743 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1746 # The aliases save the names the user supplied, while $host etc.
1747 # will get canonicalized.
1748 test -n "$target_alias" &&
1749 test "$program_prefix$program_suffix$program_transform_name" = \
1750 NONENONEs,x,x, &&
1751 program_prefix=${target_alias}-
1755 # Export source directory.
1756 # These need to be absolute paths, yet at the same time need to
1757 # canonicalize only relative paths, because then amd will not unmount
1758 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
1759 case $srcdir in
1760 \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
1761 *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
1762 esac
1765 # Calculate toolexeclibdir
1766 # Also toolexecdir, though it's only used in toolexeclibdir
1767 case ${version_specific_libs} in
1768 yes)
1769 # Need the gcc compiler version to know where to install libraries
1770 # and header files if --enable-version-specific-runtime-libs option
1771 # is selected.
1772 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
1773 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
1776 if test -n "$with_cross_host" &&
1777 test x"$with_cross_host" != x"no"; then
1778 # Install a library built with a cross compiler in tooldir, not libdir.
1779 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
1780 toolexeclibdir='$(toolexecdir)/lib'
1781 else
1782 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
1783 toolexeclibdir='$(libdir)'
1785 multi_os_directory=`$CC -print-multi-os-directory`
1786 case $multi_os_directory in
1787 .) ;; # Avoid trailing /.
1788 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
1789 esac
1791 esac
1795 # Figure out if we want to name the include directory and the
1796 # library name changes differently.
1797 includedirname=include
1798 libsuffix=
1799 case "${host}" in
1800 *-darwin*)
1801 # Darwin is the only target so far that needs a different include directory.
1802 includedirname=include-gnu-runtime
1803 libsuffix=-gnu
1805 esac
1809 ac_config_headers="$ac_config_headers config.h"
1812 # --------
1813 # Programs
1814 # --------
1818 # We must force CC to /not/ be a precious variable; otherwise
1819 # the wrong, non-multilib-adjusted value will be used in multilibs.
1820 # As a side effect, we have to subst CFLAGS ourselves.
1823 ac_ext=c
1824 ac_cpp='$CPP $CPPFLAGS'
1825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1828 if test -n "$ac_tool_prefix"; then
1829 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1830 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1831 echo "$as_me:$LINENO: checking for $ac_word" >&5
1832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1833 if test "${ac_cv_prog_CC+set}" = set; then
1834 echo $ECHO_N "(cached) $ECHO_C" >&6
1835 else
1836 if test -n "$CC"; then
1837 ac_cv_prog_CC="$CC" # Let the user override the test.
1838 else
1839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1840 for as_dir in $PATH
1842 IFS=$as_save_IFS
1843 test -z "$as_dir" && as_dir=.
1844 for ac_exec_ext in '' $ac_executable_extensions; do
1845 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1846 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1848 break 2
1850 done
1851 done
1855 CC=$ac_cv_prog_CC
1856 if test -n "$CC"; then
1857 echo "$as_me:$LINENO: result: $CC" >&5
1858 echo "${ECHO_T}$CC" >&6
1859 else
1860 echo "$as_me:$LINENO: result: no" >&5
1861 echo "${ECHO_T}no" >&6
1865 if test -z "$ac_cv_prog_CC"; then
1866 ac_ct_CC=$CC
1867 # Extract the first word of "gcc", so it can be a program name with args.
1868 set dummy gcc; ac_word=$2
1869 echo "$as_me:$LINENO: checking for $ac_word" >&5
1870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1871 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1872 echo $ECHO_N "(cached) $ECHO_C" >&6
1873 else
1874 if test -n "$ac_ct_CC"; then
1875 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1876 else
1877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1878 for as_dir in $PATH
1880 IFS=$as_save_IFS
1881 test -z "$as_dir" && as_dir=.
1882 for ac_exec_ext in '' $ac_executable_extensions; do
1883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1884 ac_cv_prog_ac_ct_CC="gcc"
1885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1886 break 2
1888 done
1889 done
1893 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1894 if test -n "$ac_ct_CC"; then
1895 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1896 echo "${ECHO_T}$ac_ct_CC" >&6
1897 else
1898 echo "$as_me:$LINENO: result: no" >&5
1899 echo "${ECHO_T}no" >&6
1902 CC=$ac_ct_CC
1903 else
1904 CC="$ac_cv_prog_CC"
1907 if test -z "$CC"; then
1908 if test -n "$ac_tool_prefix"; then
1909 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1910 set dummy ${ac_tool_prefix}cc; ac_word=$2
1911 echo "$as_me:$LINENO: checking for $ac_word" >&5
1912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1913 if test "${ac_cv_prog_CC+set}" = set; then
1914 echo $ECHO_N "(cached) $ECHO_C" >&6
1915 else
1916 if test -n "$CC"; then
1917 ac_cv_prog_CC="$CC" # Let the user override the test.
1918 else
1919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1920 for as_dir in $PATH
1922 IFS=$as_save_IFS
1923 test -z "$as_dir" && as_dir=.
1924 for ac_exec_ext in '' $ac_executable_extensions; do
1925 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1926 ac_cv_prog_CC="${ac_tool_prefix}cc"
1927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1928 break 2
1930 done
1931 done
1935 CC=$ac_cv_prog_CC
1936 if test -n "$CC"; then
1937 echo "$as_me:$LINENO: result: $CC" >&5
1938 echo "${ECHO_T}$CC" >&6
1939 else
1940 echo "$as_me:$LINENO: result: no" >&5
1941 echo "${ECHO_T}no" >&6
1945 if test -z "$ac_cv_prog_CC"; then
1946 ac_ct_CC=$CC
1947 # Extract the first word of "cc", so it can be a program name with args.
1948 set dummy cc; ac_word=$2
1949 echo "$as_me:$LINENO: checking for $ac_word" >&5
1950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1951 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1952 echo $ECHO_N "(cached) $ECHO_C" >&6
1953 else
1954 if test -n "$ac_ct_CC"; then
1955 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1956 else
1957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1958 for as_dir in $PATH
1960 IFS=$as_save_IFS
1961 test -z "$as_dir" && as_dir=.
1962 for ac_exec_ext in '' $ac_executable_extensions; do
1963 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1964 ac_cv_prog_ac_ct_CC="cc"
1965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1966 break 2
1968 done
1969 done
1973 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1974 if test -n "$ac_ct_CC"; then
1975 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1976 echo "${ECHO_T}$ac_ct_CC" >&6
1977 else
1978 echo "$as_me:$LINENO: result: no" >&5
1979 echo "${ECHO_T}no" >&6
1982 CC=$ac_ct_CC
1983 else
1984 CC="$ac_cv_prog_CC"
1988 if test -z "$CC"; then
1989 # Extract the first word of "cc", so it can be a program name with args.
1990 set dummy cc; ac_word=$2
1991 echo "$as_me:$LINENO: checking for $ac_word" >&5
1992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1993 if test "${ac_cv_prog_CC+set}" = set; then
1994 echo $ECHO_N "(cached) $ECHO_C" >&6
1995 else
1996 if test -n "$CC"; then
1997 ac_cv_prog_CC="$CC" # Let the user override the test.
1998 else
1999 ac_prog_rejected=no
2000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2001 for as_dir in $PATH
2003 IFS=$as_save_IFS
2004 test -z "$as_dir" && as_dir=.
2005 for ac_exec_ext in '' $ac_executable_extensions; do
2006 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2007 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2008 ac_prog_rejected=yes
2009 continue
2011 ac_cv_prog_CC="cc"
2012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2013 break 2
2015 done
2016 done
2018 if test $ac_prog_rejected = yes; then
2019 # We found a bogon in the path, so make sure we never use it.
2020 set dummy $ac_cv_prog_CC
2021 shift
2022 if test $# != 0; then
2023 # We chose a different compiler from the bogus one.
2024 # However, it has the same basename, so the bogon will be chosen
2025 # first if we set CC to just the basename; use the full file name.
2026 shift
2027 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2032 CC=$ac_cv_prog_CC
2033 if test -n "$CC"; then
2034 echo "$as_me:$LINENO: result: $CC" >&5
2035 echo "${ECHO_T}$CC" >&6
2036 else
2037 echo "$as_me:$LINENO: result: no" >&5
2038 echo "${ECHO_T}no" >&6
2042 if test -z "$CC"; then
2043 if test -n "$ac_tool_prefix"; then
2044 for ac_prog in cl
2046 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2047 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2048 echo "$as_me:$LINENO: checking for $ac_word" >&5
2049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2050 if test "${ac_cv_prog_CC+set}" = set; then
2051 echo $ECHO_N "(cached) $ECHO_C" >&6
2052 else
2053 if test -n "$CC"; then
2054 ac_cv_prog_CC="$CC" # Let the user override the test.
2055 else
2056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2057 for as_dir in $PATH
2059 IFS=$as_save_IFS
2060 test -z "$as_dir" && as_dir=.
2061 for ac_exec_ext in '' $ac_executable_extensions; do
2062 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2063 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2065 break 2
2067 done
2068 done
2072 CC=$ac_cv_prog_CC
2073 if test -n "$CC"; then
2074 echo "$as_me:$LINENO: result: $CC" >&5
2075 echo "${ECHO_T}$CC" >&6
2076 else
2077 echo "$as_me:$LINENO: result: no" >&5
2078 echo "${ECHO_T}no" >&6
2081 test -n "$CC" && break
2082 done
2084 if test -z "$CC"; then
2085 ac_ct_CC=$CC
2086 for ac_prog in cl
2088 # Extract the first word of "$ac_prog", so it can be a program name with args.
2089 set dummy $ac_prog; ac_word=$2
2090 echo "$as_me:$LINENO: checking for $ac_word" >&5
2091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2092 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2093 echo $ECHO_N "(cached) $ECHO_C" >&6
2094 else
2095 if test -n "$ac_ct_CC"; then
2096 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2097 else
2098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2099 for as_dir in $PATH
2101 IFS=$as_save_IFS
2102 test -z "$as_dir" && as_dir=.
2103 for ac_exec_ext in '' $ac_executable_extensions; do
2104 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2105 ac_cv_prog_ac_ct_CC="$ac_prog"
2106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2107 break 2
2109 done
2110 done
2114 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2115 if test -n "$ac_ct_CC"; then
2116 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2117 echo "${ECHO_T}$ac_ct_CC" >&6
2118 else
2119 echo "$as_me:$LINENO: result: no" >&5
2120 echo "${ECHO_T}no" >&6
2123 test -n "$ac_ct_CC" && break
2124 done
2126 CC=$ac_ct_CC
2132 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2133 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2134 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2135 See \`config.log' for more details." >&5
2136 echo "$as_me: error: no acceptable C compiler found in \$PATH
2137 See \`config.log' for more details." >&2;}
2138 { (exit 1); exit 1; }; }; }
2140 # Provide some information about the compiler.
2141 echo "$as_me:$LINENO:" \
2142 "checking for C compiler version" >&5
2143 ac_compiler=`set X $ac_compile; echo $2`
2144 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2145 (eval $ac_compiler --version </dev/null >&5) 2>&5
2146 ac_status=$?
2147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148 (exit $ac_status); }
2149 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2150 (eval $ac_compiler -v </dev/null >&5) 2>&5
2151 ac_status=$?
2152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153 (exit $ac_status); }
2154 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2155 (eval $ac_compiler -V </dev/null >&5) 2>&5
2156 ac_status=$?
2157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158 (exit $ac_status); }
2160 cat >conftest.$ac_ext <<_ACEOF
2161 /* confdefs.h. */
2162 _ACEOF
2163 cat confdefs.h >>conftest.$ac_ext
2164 cat >>conftest.$ac_ext <<_ACEOF
2165 /* end confdefs.h. */
2168 main ()
2172 return 0;
2174 _ACEOF
2175 # FIXME: Cleanup?
2176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2177 (eval $ac_link) 2>&5
2178 ac_status=$?
2179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180 (exit $ac_status); }; then
2181 gcc_no_link=no
2182 else
2183 gcc_no_link=yes
2186 if test x$gcc_no_link = xyes; then
2187 # Setting cross_compile will disable run tests; it will
2188 # also disable AC_CHECK_FILE but that's generally
2189 # correct if we can't link.
2190 cross_compiling=yes
2191 EXEEXT=
2192 else
2193 cat >conftest.$ac_ext <<_ACEOF
2194 /* confdefs.h. */
2195 _ACEOF
2196 cat confdefs.h >>conftest.$ac_ext
2197 cat >>conftest.$ac_ext <<_ACEOF
2198 /* end confdefs.h. */
2201 main ()
2205 return 0;
2207 _ACEOF
2208 ac_clean_files_save=$ac_clean_files
2209 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2210 # Try to create an executable without -o first, disregard a.out.
2211 # It will help us diagnose broken compilers, and finding out an intuition
2212 # of exeext.
2213 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2214 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2215 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2216 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2217 (eval $ac_link_default) 2>&5
2218 ac_status=$?
2219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220 (exit $ac_status); }; then
2221 # Find the output, starting from the most likely. This scheme is
2222 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2223 # resort.
2225 # Be careful to initialize this variable, since it used to be cached.
2226 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2227 ac_cv_exeext=
2228 # b.out is created by i960 compilers.
2229 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2231 test -f "$ac_file" || continue
2232 case $ac_file in
2233 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2235 conftest.$ac_ext )
2236 # This is the source file.
2238 [ab].out )
2239 # We found the default executable, but exeext='' is most
2240 # certainly right.
2241 break;;
2242 *.* )
2243 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2244 # FIXME: I believe we export ac_cv_exeext for Libtool,
2245 # but it would be cool to find out if it's true. Does anybody
2246 # maintain Libtool? --akim.
2247 export ac_cv_exeext
2248 break;;
2250 break;;
2251 esac
2252 done
2253 else
2254 echo "$as_me: failed program was:" >&5
2255 sed 's/^/| /' conftest.$ac_ext >&5
2257 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2258 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2259 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2260 See \`config.log' for more details." >&5
2261 echo "$as_me: error: C compiler cannot create executables
2262 See \`config.log' for more details." >&2;}
2263 { (exit 77); exit 77; }; }; }
2266 ac_exeext=$ac_cv_exeext
2267 echo "$as_me:$LINENO: result: $ac_file" >&5
2268 echo "${ECHO_T}$ac_file" >&6
2270 # Check the compiler produces executables we can run. If not, either
2271 # the compiler is broken, or we cross compile.
2272 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2273 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2274 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2275 # If not cross compiling, check that we can run a simple program.
2276 if test "$cross_compiling" != yes; then
2277 if { ac_try='./$ac_file'
2278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2279 (eval $ac_try) 2>&5
2280 ac_status=$?
2281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282 (exit $ac_status); }; }; then
2283 cross_compiling=no
2284 else
2285 if test "$cross_compiling" = maybe; then
2286 cross_compiling=yes
2287 else
2288 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2289 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2290 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2291 If you meant to cross compile, use \`--host'.
2292 See \`config.log' for more details." >&5
2293 echo "$as_me: error: cannot run C compiled programs.
2294 If you meant to cross compile, use \`--host'.
2295 See \`config.log' for more details." >&2;}
2296 { (exit 1); exit 1; }; }; }
2300 echo "$as_me:$LINENO: result: yes" >&5
2301 echo "${ECHO_T}yes" >&6
2303 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2304 ac_clean_files=$ac_clean_files_save
2305 # Check the compiler produces executables we can run. If not, either
2306 # the compiler is broken, or we cross compile.
2307 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2308 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2309 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2310 echo "${ECHO_T}$cross_compiling" >&6
2312 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2313 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2315 (eval $ac_link) 2>&5
2316 ac_status=$?
2317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318 (exit $ac_status); }; then
2319 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2320 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2321 # work properly (i.e., refer to `conftest.exe'), while it won't with
2322 # `rm'.
2323 for ac_file in conftest.exe conftest conftest.*; do
2324 test -f "$ac_file" || continue
2325 case $ac_file in
2326 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2327 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2328 export ac_cv_exeext
2329 break;;
2330 * ) break;;
2331 esac
2332 done
2333 else
2334 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2335 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2336 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2337 See \`config.log' for more details." >&5
2338 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2339 See \`config.log' for more details." >&2;}
2340 { (exit 1); exit 1; }; }; }
2343 rm -f conftest$ac_cv_exeext
2344 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2345 echo "${ECHO_T}$ac_cv_exeext" >&6
2347 rm -f conftest.$ac_ext
2348 EXEEXT=$ac_cv_exeext
2349 ac_exeext=$EXEEXT
2351 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2352 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2353 if test "${ac_cv_objext+set}" = set; then
2354 echo $ECHO_N "(cached) $ECHO_C" >&6
2355 else
2356 cat >conftest.$ac_ext <<_ACEOF
2357 /* confdefs.h. */
2358 _ACEOF
2359 cat confdefs.h >>conftest.$ac_ext
2360 cat >>conftest.$ac_ext <<_ACEOF
2361 /* end confdefs.h. */
2364 main ()
2368 return 0;
2370 _ACEOF
2371 rm -f conftest.o conftest.obj
2372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2373 (eval $ac_compile) 2>&5
2374 ac_status=$?
2375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376 (exit $ac_status); }; then
2377 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2378 case $ac_file in
2379 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2380 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2381 break;;
2382 esac
2383 done
2384 else
2385 echo "$as_me: failed program was:" >&5
2386 sed 's/^/| /' conftest.$ac_ext >&5
2388 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2389 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2390 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2391 See \`config.log' for more details." >&5
2392 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2393 See \`config.log' for more details." >&2;}
2394 { (exit 1); exit 1; }; }; }
2397 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2399 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2400 echo "${ECHO_T}$ac_cv_objext" >&6
2401 OBJEXT=$ac_cv_objext
2402 ac_objext=$OBJEXT
2403 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2404 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2405 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2406 echo $ECHO_N "(cached) $ECHO_C" >&6
2407 else
2408 cat >conftest.$ac_ext <<_ACEOF
2409 /* confdefs.h. */
2410 _ACEOF
2411 cat confdefs.h >>conftest.$ac_ext
2412 cat >>conftest.$ac_ext <<_ACEOF
2413 /* end confdefs.h. */
2416 main ()
2418 #ifndef __GNUC__
2419 choke me
2420 #endif
2423 return 0;
2425 _ACEOF
2426 rm -f conftest.$ac_objext
2427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2428 (eval $ac_compile) 2>conftest.er1
2429 ac_status=$?
2430 grep -v '^ *+' conftest.er1 >conftest.err
2431 rm -f conftest.er1
2432 cat conftest.err >&5
2433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434 (exit $ac_status); } &&
2435 { ac_try='test -z "$ac_c_werror_flag"
2436 || test ! -s conftest.err'
2437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2438 (eval $ac_try) 2>&5
2439 ac_status=$?
2440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441 (exit $ac_status); }; } &&
2442 { ac_try='test -s conftest.$ac_objext'
2443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2444 (eval $ac_try) 2>&5
2445 ac_status=$?
2446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447 (exit $ac_status); }; }; then
2448 ac_compiler_gnu=yes
2449 else
2450 echo "$as_me: failed program was:" >&5
2451 sed 's/^/| /' conftest.$ac_ext >&5
2453 ac_compiler_gnu=no
2455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2456 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2459 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2460 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2461 GCC=`test $ac_compiler_gnu = yes && echo yes`
2462 ac_test_CFLAGS=${CFLAGS+set}
2463 ac_save_CFLAGS=$CFLAGS
2464 CFLAGS="-g"
2465 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2466 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2467 if test "${ac_cv_prog_cc_g+set}" = set; then
2468 echo $ECHO_N "(cached) $ECHO_C" >&6
2469 else
2470 cat >conftest.$ac_ext <<_ACEOF
2471 /* confdefs.h. */
2472 _ACEOF
2473 cat confdefs.h >>conftest.$ac_ext
2474 cat >>conftest.$ac_ext <<_ACEOF
2475 /* end confdefs.h. */
2478 main ()
2482 return 0;
2484 _ACEOF
2485 rm -f conftest.$ac_objext
2486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2487 (eval $ac_compile) 2>conftest.er1
2488 ac_status=$?
2489 grep -v '^ *+' conftest.er1 >conftest.err
2490 rm -f conftest.er1
2491 cat conftest.err >&5
2492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493 (exit $ac_status); } &&
2494 { ac_try='test -z "$ac_c_werror_flag"
2495 || test ! -s conftest.err'
2496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2497 (eval $ac_try) 2>&5
2498 ac_status=$?
2499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500 (exit $ac_status); }; } &&
2501 { ac_try='test -s conftest.$ac_objext'
2502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2503 (eval $ac_try) 2>&5
2504 ac_status=$?
2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506 (exit $ac_status); }; }; then
2507 ac_cv_prog_cc_g=yes
2508 else
2509 echo "$as_me: failed program was:" >&5
2510 sed 's/^/| /' conftest.$ac_ext >&5
2512 ac_cv_prog_cc_g=no
2514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2516 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2517 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2518 if test "$ac_test_CFLAGS" = set; then
2519 CFLAGS=$ac_save_CFLAGS
2520 elif test $ac_cv_prog_cc_g = yes; then
2521 if test "$GCC" = yes; then
2522 CFLAGS="-g -O2"
2523 else
2524 CFLAGS="-g"
2526 else
2527 if test "$GCC" = yes; then
2528 CFLAGS="-O2"
2529 else
2530 CFLAGS=
2533 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2534 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2535 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2536 echo $ECHO_N "(cached) $ECHO_C" >&6
2537 else
2538 ac_cv_prog_cc_stdc=no
2539 ac_save_CC=$CC
2540 cat >conftest.$ac_ext <<_ACEOF
2541 /* confdefs.h. */
2542 _ACEOF
2543 cat confdefs.h >>conftest.$ac_ext
2544 cat >>conftest.$ac_ext <<_ACEOF
2545 /* end confdefs.h. */
2546 #include <stdarg.h>
2547 #include <stdio.h>
2548 #include <sys/types.h>
2549 #include <sys/stat.h>
2550 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2551 struct buf { int x; };
2552 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2553 static char *e (p, i)
2554 char **p;
2555 int i;
2557 return p[i];
2559 static char *f (char * (*g) (char **, int), char **p, ...)
2561 char *s;
2562 va_list v;
2563 va_start (v,p);
2564 s = g (p, va_arg (v,int));
2565 va_end (v);
2566 return s;
2569 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2570 function prototypes and stuff, but not '\xHH' hex character constants.
2571 These don't provoke an error unfortunately, instead are silently treated
2572 as 'x'. The following induces an error, until -std1 is added to get
2573 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2574 array size at least. It's necessary to write '\x00'==0 to get something
2575 that's true only with -std1. */
2576 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2578 int test (int i, double x);
2579 struct s1 {int (*f) (int a);};
2580 struct s2 {int (*f) (double a);};
2581 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2582 int argc;
2583 char **argv;
2585 main ()
2587 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2589 return 0;
2591 _ACEOF
2592 # Don't try gcc -ansi; that turns off useful extensions and
2593 # breaks some systems' header files.
2594 # AIX -qlanglvl=ansi
2595 # Ultrix and OSF/1 -std1
2596 # HP-UX 10.20 and later -Ae
2597 # HP-UX older versions -Aa -D_HPUX_SOURCE
2598 # SVR4 -Xc -D__EXTENSIONS__
2599 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2601 CC="$ac_save_CC $ac_arg"
2602 rm -f conftest.$ac_objext
2603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2604 (eval $ac_compile) 2>conftest.er1
2605 ac_status=$?
2606 grep -v '^ *+' conftest.er1 >conftest.err
2607 rm -f conftest.er1
2608 cat conftest.err >&5
2609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610 (exit $ac_status); } &&
2611 { ac_try='test -z "$ac_c_werror_flag"
2612 || test ! -s conftest.err'
2613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2614 (eval $ac_try) 2>&5
2615 ac_status=$?
2616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617 (exit $ac_status); }; } &&
2618 { ac_try='test -s conftest.$ac_objext'
2619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2620 (eval $ac_try) 2>&5
2621 ac_status=$?
2622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623 (exit $ac_status); }; }; then
2624 ac_cv_prog_cc_stdc=$ac_arg
2625 break
2626 else
2627 echo "$as_me: failed program was:" >&5
2628 sed 's/^/| /' conftest.$ac_ext >&5
2631 rm -f conftest.err conftest.$ac_objext
2632 done
2633 rm -f conftest.$ac_ext conftest.$ac_objext
2634 CC=$ac_save_CC
2638 case "x$ac_cv_prog_cc_stdc" in
2639 x|xno)
2640 echo "$as_me:$LINENO: result: none needed" >&5
2641 echo "${ECHO_T}none needed" >&6 ;;
2643 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2644 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2645 CC="$CC $ac_cv_prog_cc_stdc" ;;
2646 esac
2648 # Some people use a C++ compiler to compile C. Since we use `exit',
2649 # in C++ we need to declare it. In case someone uses the same compiler
2650 # for both compiling C and C++ we need to have the C++ compiler decide
2651 # the declaration of exit, since it's the most demanding environment.
2652 cat >conftest.$ac_ext <<_ACEOF
2653 #ifndef __cplusplus
2654 choke me
2655 #endif
2656 _ACEOF
2657 rm -f conftest.$ac_objext
2658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2659 (eval $ac_compile) 2>conftest.er1
2660 ac_status=$?
2661 grep -v '^ *+' conftest.er1 >conftest.err
2662 rm -f conftest.er1
2663 cat conftest.err >&5
2664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665 (exit $ac_status); } &&
2666 { ac_try='test -z "$ac_c_werror_flag"
2667 || test ! -s conftest.err'
2668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2669 (eval $ac_try) 2>&5
2670 ac_status=$?
2671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672 (exit $ac_status); }; } &&
2673 { ac_try='test -s conftest.$ac_objext'
2674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2675 (eval $ac_try) 2>&5
2676 ac_status=$?
2677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678 (exit $ac_status); }; }; then
2679 for ac_declaration in \
2680 '' \
2681 'extern "C" void std::exit (int) throw (); using std::exit;' \
2682 'extern "C" void std::exit (int); using std::exit;' \
2683 'extern "C" void exit (int) throw ();' \
2684 'extern "C" void exit (int);' \
2685 'void exit (int);'
2687 cat >conftest.$ac_ext <<_ACEOF
2688 /* confdefs.h. */
2689 _ACEOF
2690 cat confdefs.h >>conftest.$ac_ext
2691 cat >>conftest.$ac_ext <<_ACEOF
2692 /* end confdefs.h. */
2693 $ac_declaration
2694 #include <stdlib.h>
2696 main ()
2698 exit (42);
2700 return 0;
2702 _ACEOF
2703 rm -f conftest.$ac_objext
2704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2705 (eval $ac_compile) 2>conftest.er1
2706 ac_status=$?
2707 grep -v '^ *+' conftest.er1 >conftest.err
2708 rm -f conftest.er1
2709 cat conftest.err >&5
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); } &&
2712 { ac_try='test -z "$ac_c_werror_flag"
2713 || test ! -s conftest.err'
2714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2715 (eval $ac_try) 2>&5
2716 ac_status=$?
2717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718 (exit $ac_status); }; } &&
2719 { ac_try='test -s conftest.$ac_objext'
2720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2721 (eval $ac_try) 2>&5
2722 ac_status=$?
2723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724 (exit $ac_status); }; }; then
2726 else
2727 echo "$as_me: failed program was:" >&5
2728 sed 's/^/| /' conftest.$ac_ext >&5
2730 continue
2732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2733 cat >conftest.$ac_ext <<_ACEOF
2734 /* confdefs.h. */
2735 _ACEOF
2736 cat confdefs.h >>conftest.$ac_ext
2737 cat >>conftest.$ac_ext <<_ACEOF
2738 /* end confdefs.h. */
2739 $ac_declaration
2741 main ()
2743 exit (42);
2745 return 0;
2747 _ACEOF
2748 rm -f conftest.$ac_objext
2749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2750 (eval $ac_compile) 2>conftest.er1
2751 ac_status=$?
2752 grep -v '^ *+' conftest.er1 >conftest.err
2753 rm -f conftest.er1
2754 cat conftest.err >&5
2755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756 (exit $ac_status); } &&
2757 { ac_try='test -z "$ac_c_werror_flag"
2758 || test ! -s conftest.err'
2759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2760 (eval $ac_try) 2>&5
2761 ac_status=$?
2762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763 (exit $ac_status); }; } &&
2764 { ac_try='test -s conftest.$ac_objext'
2765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2766 (eval $ac_try) 2>&5
2767 ac_status=$?
2768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769 (exit $ac_status); }; }; then
2770 break
2771 else
2772 echo "$as_me: failed program was:" >&5
2773 sed 's/^/| /' conftest.$ac_ext >&5
2776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2777 done
2778 rm -f conftest*
2779 if test -n "$ac_declaration"; then
2780 echo '#ifdef __cplusplus' >>confdefs.h
2781 echo $ac_declaration >>confdefs.h
2782 echo '#endif' >>confdefs.h
2785 else
2786 echo "$as_me: failed program was:" >&5
2787 sed 's/^/| /' conftest.$ac_ext >&5
2790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2791 ac_ext=c
2792 ac_cpp='$CPP $CPPFLAGS'
2793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2799 # extra LD Flags which are required for targets
2800 case "${host}" in
2801 *-darwin*)
2802 # Darwin needs -single_module when linking libobjc
2803 extra_ldflags_libobjc=-Wl,-single_module
2805 esac
2810 if test -n "$ac_tool_prefix"; then
2811 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2812 set dummy ${ac_tool_prefix}as; ac_word=$2
2813 echo "$as_me:$LINENO: checking for $ac_word" >&5
2814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2815 if test "${ac_cv_prog_AS+set}" = set; then
2816 echo $ECHO_N "(cached) $ECHO_C" >&6
2817 else
2818 if test -n "$AS"; then
2819 ac_cv_prog_AS="$AS" # Let the user override the test.
2820 else
2821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2822 for as_dir in $PATH
2824 IFS=$as_save_IFS
2825 test -z "$as_dir" && as_dir=.
2826 for ac_exec_ext in '' $ac_executable_extensions; do
2827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2828 ac_cv_prog_AS="${ac_tool_prefix}as"
2829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2830 break 2
2832 done
2833 done
2837 AS=$ac_cv_prog_AS
2838 if test -n "$AS"; then
2839 echo "$as_me:$LINENO: result: $AS" >&5
2840 echo "${ECHO_T}$AS" >&6
2841 else
2842 echo "$as_me:$LINENO: result: no" >&5
2843 echo "${ECHO_T}no" >&6
2847 if test -z "$ac_cv_prog_AS"; then
2848 ac_ct_AS=$AS
2849 # Extract the first word of "as", so it can be a program name with args.
2850 set dummy as; ac_word=$2
2851 echo "$as_me:$LINENO: checking for $ac_word" >&5
2852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2853 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
2854 echo $ECHO_N "(cached) $ECHO_C" >&6
2855 else
2856 if test -n "$ac_ct_AS"; then
2857 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
2858 else
2859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2860 for as_dir in $PATH
2862 IFS=$as_save_IFS
2863 test -z "$as_dir" && as_dir=.
2864 for ac_exec_ext in '' $ac_executable_extensions; do
2865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2866 ac_cv_prog_ac_ct_AS="as"
2867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2868 break 2
2870 done
2871 done
2875 ac_ct_AS=$ac_cv_prog_ac_ct_AS
2876 if test -n "$ac_ct_AS"; then
2877 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
2878 echo "${ECHO_T}$ac_ct_AS" >&6
2879 else
2880 echo "$as_me:$LINENO: result: no" >&5
2881 echo "${ECHO_T}no" >&6
2884 AS=$ac_ct_AS
2885 else
2886 AS="$ac_cv_prog_AS"
2889 if test -n "$ac_tool_prefix"; then
2890 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2891 set dummy ${ac_tool_prefix}ar; ac_word=$2
2892 echo "$as_me:$LINENO: checking for $ac_word" >&5
2893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2894 if test "${ac_cv_prog_AR+set}" = set; then
2895 echo $ECHO_N "(cached) $ECHO_C" >&6
2896 else
2897 if test -n "$AR"; then
2898 ac_cv_prog_AR="$AR" # Let the user override the test.
2899 else
2900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2901 for as_dir in $PATH
2903 IFS=$as_save_IFS
2904 test -z "$as_dir" && as_dir=.
2905 for ac_exec_ext in '' $ac_executable_extensions; do
2906 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2907 ac_cv_prog_AR="${ac_tool_prefix}ar"
2908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2909 break 2
2911 done
2912 done
2916 AR=$ac_cv_prog_AR
2917 if test -n "$AR"; then
2918 echo "$as_me:$LINENO: result: $AR" >&5
2919 echo "${ECHO_T}$AR" >&6
2920 else
2921 echo "$as_me:$LINENO: result: no" >&5
2922 echo "${ECHO_T}no" >&6
2926 if test -z "$ac_cv_prog_AR"; then
2927 ac_ct_AR=$AR
2928 # Extract the first word of "ar", so it can be a program name with args.
2929 set dummy ar; ac_word=$2
2930 echo "$as_me:$LINENO: checking for $ac_word" >&5
2931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2932 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
2933 echo $ECHO_N "(cached) $ECHO_C" >&6
2934 else
2935 if test -n "$ac_ct_AR"; then
2936 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2937 else
2938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2939 for as_dir in $PATH
2941 IFS=$as_save_IFS
2942 test -z "$as_dir" && as_dir=.
2943 for ac_exec_ext in '' $ac_executable_extensions; do
2944 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2945 ac_cv_prog_ac_ct_AR="ar"
2946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2947 break 2
2949 done
2950 done
2954 ac_ct_AR=$ac_cv_prog_ac_ct_AR
2955 if test -n "$ac_ct_AR"; then
2956 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
2957 echo "${ECHO_T}$ac_ct_AR" >&6
2958 else
2959 echo "$as_me:$LINENO: result: no" >&5
2960 echo "${ECHO_T}no" >&6
2963 AR=$ac_ct_AR
2964 else
2965 AR="$ac_cv_prog_AR"
2968 if test -n "$ac_tool_prefix"; then
2969 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2970 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2971 echo "$as_me:$LINENO: checking for $ac_word" >&5
2972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2973 if test "${ac_cv_prog_RANLIB+set}" = set; then
2974 echo $ECHO_N "(cached) $ECHO_C" >&6
2975 else
2976 if test -n "$RANLIB"; then
2977 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2978 else
2979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2980 for as_dir in $PATH
2982 IFS=$as_save_IFS
2983 test -z "$as_dir" && as_dir=.
2984 for ac_exec_ext in '' $ac_executable_extensions; do
2985 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2986 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2988 break 2
2990 done
2991 done
2995 RANLIB=$ac_cv_prog_RANLIB
2996 if test -n "$RANLIB"; then
2997 echo "$as_me:$LINENO: result: $RANLIB" >&5
2998 echo "${ECHO_T}$RANLIB" >&6
2999 else
3000 echo "$as_me:$LINENO: result: no" >&5
3001 echo "${ECHO_T}no" >&6
3005 if test -z "$ac_cv_prog_RANLIB"; then
3006 ac_ct_RANLIB=$RANLIB
3007 # Extract the first word of "ranlib", so it can be a program name with args.
3008 set dummy ranlib; ac_word=$2
3009 echo "$as_me:$LINENO: checking for $ac_word" >&5
3010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3011 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3012 echo $ECHO_N "(cached) $ECHO_C" >&6
3013 else
3014 if test -n "$ac_ct_RANLIB"; then
3015 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3016 else
3017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3018 for as_dir in $PATH
3020 IFS=$as_save_IFS
3021 test -z "$as_dir" && as_dir=.
3022 for ac_exec_ext in '' $ac_executable_extensions; do
3023 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3024 ac_cv_prog_ac_ct_RANLIB="ranlib"
3025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3026 break 2
3028 done
3029 done
3031 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3034 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3035 if test -n "$ac_ct_RANLIB"; then
3036 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3037 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3038 else
3039 echo "$as_me:$LINENO: result: no" >&5
3040 echo "${ECHO_T}no" >&6
3043 RANLIB=$ac_ct_RANLIB
3044 else
3045 RANLIB="$ac_cv_prog_RANLIB"
3048 # Find a good install program. We prefer a C program (faster),
3049 # so one script is as good as another. But avoid the broken or
3050 # incompatible versions:
3051 # SysV /etc/install, /usr/sbin/install
3052 # SunOS /usr/etc/install
3053 # IRIX /sbin/install
3054 # AIX /bin/install
3055 # AmigaOS /C/install, which installs bootblocks on floppy discs
3056 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3057 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3058 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3059 # OS/2's system install, which has a completely different semantic
3060 # ./install, which can be erroneously created by make from ./install.sh.
3061 # Reject install programs that cannot install multiple files.
3062 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3063 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3064 if test -z "$INSTALL"; then
3065 if test "${ac_cv_path_install+set}" = set; then
3066 echo $ECHO_N "(cached) $ECHO_C" >&6
3067 else
3068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3069 for as_dir in $PATH
3071 IFS=$as_save_IFS
3072 test -z "$as_dir" && as_dir=.
3073 # Account for people who put trailing slashes in PATH elements.
3074 case $as_dir/ in
3075 ./ | .// | /cC/* | \
3076 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3077 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3078 /usr/ucb/* ) ;;
3080 # OSF1 and SCO ODT 3.0 have their own names for install.
3081 # Don't use installbsd from OSF since it installs stuff as root
3082 # by default.
3083 for ac_prog in ginstall scoinst install; do
3084 for ac_exec_ext in '' $ac_executable_extensions; do
3085 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3086 if test $ac_prog = install &&
3087 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3088 # AIX install. It has an incompatible calling convention.
3090 elif test $ac_prog = install &&
3091 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3092 # program-specific install script used by HP pwplus--don't use.
3094 else
3095 rm -rf conftest.one conftest.two conftest.dir
3096 echo one > conftest.one
3097 echo two > conftest.two
3098 mkdir conftest.dir
3099 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3100 test -s conftest.one && test -s conftest.two &&
3101 test -s conftest.dir/conftest.one &&
3102 test -s conftest.dir/conftest.two
3103 then
3104 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3105 break 3
3109 done
3110 done
3112 esac
3113 done
3115 rm -rf conftest.one conftest.two conftest.dir
3118 if test "${ac_cv_path_install+set}" = set; then
3119 INSTALL=$ac_cv_path_install
3120 else
3121 # As a last resort, use the slow shell script. Don't cache a
3122 # value for INSTALL within a source directory, because that will
3123 # break other packages using the cache if that directory is
3124 # removed, or if the value is a relative name.
3125 INSTALL=$ac_install_sh
3128 echo "$as_me:$LINENO: result: $INSTALL" >&5
3129 echo "${ECHO_T}$INSTALL" >&6
3131 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3132 # It thinks the first close brace ends the variable substitution.
3133 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3135 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3137 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3140 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3141 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3142 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3143 if test "${enable_maintainer_mode+set}" = set; then
3144 enableval="$enable_maintainer_mode"
3145 USE_MAINTAINER_MODE=$enableval
3146 else
3147 USE_MAINTAINER_MODE=no
3149 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3150 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3153 if test $USE_MAINTAINER_MODE = yes; then
3154 MAINTAINER_MODE_TRUE=
3155 MAINTAINER_MODE_FALSE='#'
3156 else
3157 MAINTAINER_MODE_TRUE='#'
3158 MAINTAINER_MODE_FALSE=
3161 MAINT=$MAINTAINER_MODE_TRUE
3165 # Enable Win32 DLL on MS Windows - FIXME
3166 enable_win32_dll=yes
3168 case $host in
3169 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
3170 if test -n "$ac_tool_prefix"; then
3171 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3172 set dummy ${ac_tool_prefix}as; ac_word=$2
3173 echo "$as_me:$LINENO: checking for $ac_word" >&5
3174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3175 if test "${ac_cv_prog_AS+set}" = set; then
3176 echo $ECHO_N "(cached) $ECHO_C" >&6
3177 else
3178 if test -n "$AS"; then
3179 ac_cv_prog_AS="$AS" # Let the user override the test.
3180 else
3181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3182 for as_dir in $PATH
3184 IFS=$as_save_IFS
3185 test -z "$as_dir" && as_dir=.
3186 for ac_exec_ext in '' $ac_executable_extensions; do
3187 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3188 ac_cv_prog_AS="${ac_tool_prefix}as"
3189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3190 break 2
3192 done
3193 done
3197 AS=$ac_cv_prog_AS
3198 if test -n "$AS"; then
3199 echo "$as_me:$LINENO: result: $AS" >&5
3200 echo "${ECHO_T}$AS" >&6
3201 else
3202 echo "$as_me:$LINENO: result: no" >&5
3203 echo "${ECHO_T}no" >&6
3207 if test -z "$ac_cv_prog_AS"; then
3208 ac_ct_AS=$AS
3209 # Extract the first word of "as", so it can be a program name with args.
3210 set dummy as; ac_word=$2
3211 echo "$as_me:$LINENO: checking for $ac_word" >&5
3212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3213 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3214 echo $ECHO_N "(cached) $ECHO_C" >&6
3215 else
3216 if test -n "$ac_ct_AS"; then
3217 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3218 else
3219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3220 for as_dir in $PATH
3222 IFS=$as_save_IFS
3223 test -z "$as_dir" && as_dir=.
3224 for ac_exec_ext in '' $ac_executable_extensions; do
3225 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3226 ac_cv_prog_ac_ct_AS="as"
3227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3228 break 2
3230 done
3231 done
3233 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
3236 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3237 if test -n "$ac_ct_AS"; then
3238 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3239 echo "${ECHO_T}$ac_ct_AS" >&6
3240 else
3241 echo "$as_me:$LINENO: result: no" >&5
3242 echo "${ECHO_T}no" >&6
3245 AS=$ac_ct_AS
3246 else
3247 AS="$ac_cv_prog_AS"
3250 if test -n "$ac_tool_prefix"; then
3251 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3252 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3253 echo "$as_me:$LINENO: checking for $ac_word" >&5
3254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3255 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
3256 echo $ECHO_N "(cached) $ECHO_C" >&6
3257 else
3258 if test -n "$DLLTOOL"; then
3259 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3260 else
3261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3262 for as_dir in $PATH
3264 IFS=$as_save_IFS
3265 test -z "$as_dir" && as_dir=.
3266 for ac_exec_ext in '' $ac_executable_extensions; do
3267 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3268 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3270 break 2
3272 done
3273 done
3277 DLLTOOL=$ac_cv_prog_DLLTOOL
3278 if test -n "$DLLTOOL"; then
3279 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
3280 echo "${ECHO_T}$DLLTOOL" >&6
3281 else
3282 echo "$as_me:$LINENO: result: no" >&5
3283 echo "${ECHO_T}no" >&6
3287 if test -z "$ac_cv_prog_DLLTOOL"; then
3288 ac_ct_DLLTOOL=$DLLTOOL
3289 # Extract the first word of "dlltool", so it can be a program name with args.
3290 set dummy dlltool; ac_word=$2
3291 echo "$as_me:$LINENO: checking for $ac_word" >&5
3292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3293 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
3294 echo $ECHO_N "(cached) $ECHO_C" >&6
3295 else
3296 if test -n "$ac_ct_DLLTOOL"; then
3297 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
3298 else
3299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3300 for as_dir in $PATH
3302 IFS=$as_save_IFS
3303 test -z "$as_dir" && as_dir=.
3304 for ac_exec_ext in '' $ac_executable_extensions; do
3305 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3306 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
3307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3308 break 2
3310 done
3311 done
3313 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
3316 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
3317 if test -n "$ac_ct_DLLTOOL"; then
3318 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
3319 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
3320 else
3321 echo "$as_me:$LINENO: result: no" >&5
3322 echo "${ECHO_T}no" >&6
3325 DLLTOOL=$ac_ct_DLLTOOL
3326 else
3327 DLLTOOL="$ac_cv_prog_DLLTOOL"
3330 if test -n "$ac_tool_prefix"; then
3331 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3332 set dummy ${ac_tool_prefix}objdump; ac_word=$2
3333 echo "$as_me:$LINENO: checking for $ac_word" >&5
3334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3335 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
3336 echo $ECHO_N "(cached) $ECHO_C" >&6
3337 else
3338 if test -n "$OBJDUMP"; then
3339 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3340 else
3341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3342 for as_dir in $PATH
3344 IFS=$as_save_IFS
3345 test -z "$as_dir" && as_dir=.
3346 for ac_exec_ext in '' $ac_executable_extensions; do
3347 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3348 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3349 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3350 break 2
3352 done
3353 done
3357 OBJDUMP=$ac_cv_prog_OBJDUMP
3358 if test -n "$OBJDUMP"; then
3359 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
3360 echo "${ECHO_T}$OBJDUMP" >&6
3361 else
3362 echo "$as_me:$LINENO: result: no" >&5
3363 echo "${ECHO_T}no" >&6
3367 if test -z "$ac_cv_prog_OBJDUMP"; then
3368 ac_ct_OBJDUMP=$OBJDUMP
3369 # Extract the first word of "objdump", so it can be a program name with args.
3370 set dummy objdump; ac_word=$2
3371 echo "$as_me:$LINENO: checking for $ac_word" >&5
3372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3373 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
3374 echo $ECHO_N "(cached) $ECHO_C" >&6
3375 else
3376 if test -n "$ac_ct_OBJDUMP"; then
3377 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
3378 else
3379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3380 for as_dir in $PATH
3382 IFS=$as_save_IFS
3383 test -z "$as_dir" && as_dir=.
3384 for ac_exec_ext in '' $ac_executable_extensions; do
3385 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3386 ac_cv_prog_ac_ct_OBJDUMP="objdump"
3387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3388 break 2
3390 done
3391 done
3393 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
3396 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
3397 if test -n "$ac_ct_OBJDUMP"; then
3398 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
3399 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
3400 else
3401 echo "$as_me:$LINENO: result: no" >&5
3402 echo "${ECHO_T}no" >&6
3405 OBJDUMP=$ac_ct_OBJDUMP
3406 else
3407 OBJDUMP="$ac_cv_prog_OBJDUMP"
3411 esac
3413 test -z "$AS" && AS=as
3419 test -z "$DLLTOOL" && DLLTOOL=dlltool
3425 test -z "$OBJDUMP" && OBJDUMP=objdump
3436 macro_version='2.1a'
3437 macro_revision='1.2435'
3450 ltmain="$ac_aux_dir/ltmain.sh"
3452 # Set options
3454 enable_dlopen=no
3458 # Check whether --enable-shared or --disable-shared was given.
3459 if test "${enable_shared+set}" = set; then
3460 enableval="$enable_shared"
3461 p=${PACKAGE-default}
3462 case $enableval in
3463 yes) enable_shared=yes ;;
3464 no) enable_shared=no ;;
3466 enable_shared=no
3467 # Look at the argument we got. We use all the common list separators.
3468 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3469 for pkg in $enableval; do
3470 IFS="$lt_save_ifs"
3471 if test "X$pkg" = "X$p"; then
3472 enable_shared=yes
3474 done
3475 IFS="$lt_save_ifs"
3477 esac
3478 else
3479 enable_shared=yes
3489 # Check whether --enable-static or --disable-static was given.
3490 if test "${enable_static+set}" = set; then
3491 enableval="$enable_static"
3492 p=${PACKAGE-default}
3493 case $enableval in
3494 yes) enable_static=yes ;;
3495 no) enable_static=no ;;
3497 enable_static=no
3498 # Look at the argument we got. We use all the common list separators.
3499 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3500 for pkg in $enableval; do
3501 IFS="$lt_save_ifs"
3502 if test "X$pkg" = "X$p"; then
3503 enable_static=yes
3505 done
3506 IFS="$lt_save_ifs"
3508 esac
3509 else
3510 enable_static=yes
3521 # Check whether --with-pic or --without-pic was given.
3522 if test "${with_pic+set}" = set; then
3523 withval="$with_pic"
3524 pic_mode="$withval"
3525 else
3526 pic_mode=default
3529 test -z "$pic_mode" && pic_mode=default
3537 # Check whether --enable-fast-install or --disable-fast-install was given.
3538 if test "${enable_fast_install+set}" = set; then
3539 enableval="$enable_fast_install"
3540 p=${PACKAGE-default}
3541 case $enableval in
3542 yes) enable_fast_install=yes ;;
3543 no) enable_fast_install=no ;;
3545 enable_fast_install=no
3546 # Look at the argument we got. We use all the common list separators.
3547 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3548 for pkg in $enableval; do
3549 IFS="$lt_save_ifs"
3550 if test "X$pkg" = "X$p"; then
3551 enable_fast_install=yes
3553 done
3554 IFS="$lt_save_ifs"
3556 esac
3557 else
3558 enable_fast_install=yes
3568 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3569 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3570 if test "${lt_cv_path_SED+set}" = set; then
3571 echo $ECHO_N "(cached) $ECHO_C" >&6
3572 else
3573 # Loop through the user's path and test for sed and gsed.
3574 # Then use that list of sed's as ones to test for truncation.
3575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3576 for as_dir in $PATH
3578 IFS=$as_save_IFS
3579 test -z "$as_dir" && as_dir=.
3580 for lt_ac_prog in sed gsed; do
3581 for ac_exec_ext in '' $ac_executable_extensions; do
3582 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3583 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3585 done
3586 done
3587 done
3588 IFS=$as_save_IFS
3589 lt_ac_max=0
3590 lt_ac_count=0
3591 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3592 # along with /bin/sed that truncates output.
3593 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3594 test ! -f $lt_ac_sed && continue
3595 cat /dev/null > conftest.in
3596 lt_ac_count=0
3597 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3598 # Check for GNU sed and select it if it is found.
3599 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3600 lt_cv_path_SED=$lt_ac_sed
3601 break
3603 while true; do
3604 cat conftest.in conftest.in >conftest.tmp
3605 mv conftest.tmp conftest.in
3606 cp conftest.in conftest.nl
3607 echo >>conftest.nl
3608 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3609 cmp -s conftest.out conftest.nl || break
3610 # 10000 chars as input seems more than enough
3611 test $lt_ac_count -gt 10 && break
3612 lt_ac_count=`expr $lt_ac_count + 1`
3613 if test $lt_ac_count -gt $lt_ac_max; then
3614 lt_ac_max=$lt_ac_count
3615 lt_cv_path_SED=$lt_ac_sed
3617 done
3618 done
3622 SED=$lt_cv_path_SED
3624 echo "$as_me:$LINENO: result: $SED" >&5
3625 echo "${ECHO_T}$SED" >&6
3627 test -z "$SED" && SED=sed
3628 Xsed="$SED -e 1s/^X//"
3640 echo "$as_me:$LINENO: checking for egrep" >&5
3641 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3642 if test "${ac_cv_prog_egrep+set}" = set; then
3643 echo $ECHO_N "(cached) $ECHO_C" >&6
3644 else
3645 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3646 then ac_cv_prog_egrep='grep -E'
3647 else ac_cv_prog_egrep='egrep'
3650 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3651 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3652 EGREP=$ac_cv_prog_egrep
3655 echo "$as_me:$LINENO: checking for fgrep" >&5
3656 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
3657 if test "${ac_cv_prog_fgrep+set}" = set; then
3658 echo $ECHO_N "(cached) $ECHO_C" >&6
3659 else
3660 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
3661 then ac_cv_prog_fgrep='grep -F'
3662 else ac_cv_prog_fgrep='fgrep'
3665 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
3666 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
3667 FGREP=$ac_cv_prog_fgrep
3670 test -z "$GREP" && GREP=grep
3690 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3691 if test "${with_gnu_ld+set}" = set; then
3692 withval="$with_gnu_ld"
3693 test "$withval" = no || with_gnu_ld=yes
3694 else
3695 with_gnu_ld=no
3697 ac_prog=ld
3698 if test "$GCC" = yes; then
3699 # Check if gcc -print-prog-name=ld gives a path.
3700 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3701 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3702 case $host in
3703 *-*-mingw*)
3704 # gcc leaves a trailing carriage return which upsets mingw
3705 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3707 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3708 esac
3709 case $ac_prog in
3710 # Accept absolute paths.
3711 [\\/]* | ?:[\\/]*)
3712 re_direlt='/[^/][^/]*/\.\./'
3713 # Canonicalize the pathname of ld
3714 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3715 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3716 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3717 done
3718 test -z "$LD" && LD="$ac_prog"
3721 # If it fails, then pretend we aren't using GCC.
3722 ac_prog=ld
3725 # If it is relative, then search for the first ld in PATH.
3726 with_gnu_ld=unknown
3728 esac
3729 elif test "$with_gnu_ld" = yes; then
3730 echo "$as_me:$LINENO: checking for GNU ld" >&5
3731 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3732 else
3733 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3734 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3736 if test "${lt_cv_path_LD+set}" = set; then
3737 echo $ECHO_N "(cached) $ECHO_C" >&6
3738 else
3739 if test -z "$LD"; then
3740 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3741 for ac_dir in $PATH; do
3742 IFS="$lt_save_ifs"
3743 test -z "$ac_dir" && ac_dir=.
3744 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3745 lt_cv_path_LD="$ac_dir/$ac_prog"
3746 # Check to see if the program is GNU ld. I'd rather use --version,
3747 # but apparently some variants of GNU ld only accept -v.
3748 # Break only if it was the GNU/non-GNU ld that we prefer.
3749 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3750 *GNU* | *'with BFD'*)
3751 test "$with_gnu_ld" != no && break
3754 test "$with_gnu_ld" != yes && break
3756 esac
3758 done
3759 IFS="$lt_save_ifs"
3760 else
3761 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3765 LD="$lt_cv_path_LD"
3766 if test -n "$LD"; then
3767 echo "$as_me:$LINENO: result: $LD" >&5
3768 echo "${ECHO_T}$LD" >&6
3769 else
3770 echo "$as_me:$LINENO: result: no" >&5
3771 echo "${ECHO_T}no" >&6
3773 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3774 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3775 { (exit 1); exit 1; }; }
3776 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3777 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3778 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3779 echo $ECHO_N "(cached) $ECHO_C" >&6
3780 else
3781 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3782 case `$LD -v 2>&1 </dev/null` in
3783 *GNU* | *'with BFD'*)
3784 lt_cv_prog_gnu_ld=yes
3787 lt_cv_prog_gnu_ld=no
3789 esac
3791 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3792 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3793 with_gnu_ld=$lt_cv_prog_gnu_ld
3804 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
3805 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
3806 if test "${lt_cv_path_NM+set}" = set; then
3807 echo $ECHO_N "(cached) $ECHO_C" >&6
3808 else
3809 if test -n "$NM"; then
3810 # Let the user override the test.
3811 lt_cv_path_NM="$NM"
3812 else
3813 lt_nm_to_check="${ac_tool_prefix}nm"
3814 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3815 lt_nm_to_check="$lt_nm_to_check nm"
3817 for lt_tmp_nm in $lt_nm_to_check; do
3818 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3819 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3820 IFS="$lt_save_ifs"
3821 test -z "$ac_dir" && ac_dir=.
3822 tmp_nm="$ac_dir/$lt_tmp_nm"
3823 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3824 # Check to see if the nm accepts a BSD-compat flag.
3825 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3826 # nm: unknown option "B" ignored
3827 # Tru64's nm complains that /dev/null is an invalid object file
3828 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3829 */dev/null* | *'Invalid file or object type'*)
3830 lt_cv_path_NM="$tmp_nm -B"
3831 break
3834 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3835 */dev/null*)
3836 lt_cv_path_NM="$tmp_nm -p"
3837 break
3840 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3841 continue # so that we can try to find one that supports BSD flags
3843 esac
3845 esac
3847 done
3848 IFS="$lt_save_ifs"
3849 done
3850 : ${lt_cv_path_NM=no}
3853 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3854 echo "${ECHO_T}$lt_cv_path_NM" >&6
3855 if test "$lt_cv_path_NM" != "no"; then
3856 NM="$lt_cv_path_NM"
3857 else
3858 # Didn't find any BSD compatible name lister, look for dumpbin.
3859 if test -n "$ac_tool_prefix"; then
3860 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3862 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3863 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3864 echo "$as_me:$LINENO: checking for $ac_word" >&5
3865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3866 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
3867 echo $ECHO_N "(cached) $ECHO_C" >&6
3868 else
3869 if test -n "$DUMPBIN"; then
3870 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3871 else
3872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3873 for as_dir in $PATH
3875 IFS=$as_save_IFS
3876 test -z "$as_dir" && as_dir=.
3877 for ac_exec_ext in '' $ac_executable_extensions; do
3878 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3879 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3881 break 2
3883 done
3884 done
3888 DUMPBIN=$ac_cv_prog_DUMPBIN
3889 if test -n "$DUMPBIN"; then
3890 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
3891 echo "${ECHO_T}$DUMPBIN" >&6
3892 else
3893 echo "$as_me:$LINENO: result: no" >&5
3894 echo "${ECHO_T}no" >&6
3897 test -n "$DUMPBIN" && break
3898 done
3900 if test -z "$DUMPBIN"; then
3901 ac_ct_DUMPBIN=$DUMPBIN
3902 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3904 # Extract the first word of "$ac_prog", so it can be a program name with args.
3905 set dummy $ac_prog; ac_word=$2
3906 echo "$as_me:$LINENO: checking for $ac_word" >&5
3907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3908 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
3909 echo $ECHO_N "(cached) $ECHO_C" >&6
3910 else
3911 if test -n "$ac_ct_DUMPBIN"; then
3912 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3913 else
3914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3915 for as_dir in $PATH
3917 IFS=$as_save_IFS
3918 test -z "$as_dir" && as_dir=.
3919 for ac_exec_ext in '' $ac_executable_extensions; do
3920 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3921 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3923 break 2
3925 done
3926 done
3930 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3931 if test -n "$ac_ct_DUMPBIN"; then
3932 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
3933 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
3934 else
3935 echo "$as_me:$LINENO: result: no" >&5
3936 echo "${ECHO_T}no" >&6
3939 test -n "$ac_ct_DUMPBIN" && break
3940 done
3941 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
3943 DUMPBIN=$ac_ct_DUMPBIN
3947 if test "$DUMPBIN" != ":"; then
3948 NM="$DUMPBIN"
3951 test -z "$NM" && NM=nm
3958 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
3959 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
3960 if test "${lt_cv_nm_interface+set}" = set; then
3961 echo $ECHO_N "(cached) $ECHO_C" >&6
3962 else
3963 lt_cv_nm_interface="BSD nm"
3964 echo "int some_variable = 0;" > conftest.$ac_ext
3965 (eval echo "\"\$as_me:3965: $ac_compile\"" >&5)
3966 (eval "$ac_compile" 2>conftest.err)
3967 cat conftest.err >&5
3968 (eval echo "\"\$as_me:3968: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3969 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3970 cat conftest.err >&5
3971 (eval echo "\"\$as_me:3971: output\"" >&5)
3972 cat conftest.out >&5
3973 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3974 lt_cv_nm_interface="MS dumpbin"
3976 rm -f conftest*
3978 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
3979 echo "${ECHO_T}$lt_cv_nm_interface" >&6
3981 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3982 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3983 LN_S=$as_ln_s
3984 if test "$LN_S" = "ln -s"; then
3985 echo "$as_me:$LINENO: result: yes" >&5
3986 echo "${ECHO_T}yes" >&6
3987 else
3988 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3989 echo "${ECHO_T}no, using $LN_S" >&6
3992 # find the maximum length of command line arguments
3993 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3994 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3995 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3996 echo $ECHO_N "(cached) $ECHO_C" >&6
3997 else
3999 teststring="ABCD"
4001 case $build_os in
4002 msdosdjgpp*)
4003 # On DJGPP, this test can blow up pretty badly due to problems in libc
4004 # (any single argument exceeding 2000 bytes causes a buffer overrun
4005 # during glob expansion). Even if it were fixed, the result of this
4006 # check would be larger than it should be.
4007 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4010 gnu*)
4011 # Under GNU Hurd, this test is not required because there is
4012 # no limit to the length of command line arguments.
4013 # Libtool will interpret -1 as no limit whatsoever
4014 lt_cv_sys_max_cmd_len=-1;
4017 cygwin* | mingw*)
4018 # On Win9x/ME, this test blows up -- it succeeds, but takes
4019 # about 5 minutes as the teststring grows exponentially.
4020 # Worse, since 9x/ME are not pre-emptively multitasking,
4021 # you end up with a "frozen" computer, even though with patience
4022 # the test eventually succeeds (with a max line length of 256k).
4023 # Instead, let's just punt: use the minimum linelength reported by
4024 # all of the supported platforms: 8192 (on NT/2K/XP).
4025 lt_cv_sys_max_cmd_len=8192;
4028 amigaos*)
4029 # On AmigaOS with pdksh, this test takes hours, literally.
4030 # So we just punt and use a minimum line length of 8192.
4031 lt_cv_sys_max_cmd_len=8192;
4034 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4035 # This has been around since 386BSD, at least. Likely further.
4036 if test -x /sbin/sysctl; then
4037 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4038 elif test -x /usr/sbin/sysctl; then
4039 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4040 else
4041 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4043 # And add a safety zone
4044 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4045 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4048 interix*)
4049 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4050 lt_cv_sys_max_cmd_len=196608
4053 osf*)
4054 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4055 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4056 # nice to cause kernel panics so lets avoid the loop below.
4057 # First set a reasonable default.
4058 lt_cv_sys_max_cmd_len=16384
4060 if test -x /sbin/sysconfig; then
4061 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4062 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4063 esac
4066 sco3.2v5*)
4067 lt_cv_sys_max_cmd_len=102400
4069 sysv5* | sco5v6* | sysv4.2uw2*)
4070 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4071 if test -n "$kargmax"; then
4072 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4073 else
4074 lt_cv_sys_max_cmd_len=32768
4078 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
4079 if test -n $lt_cv_sys_max_cmd_len; then
4080 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4081 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4082 else
4083 # Make teststring a little bigger before we do anything with it.
4084 # a 1K string should be a reasonable start.
4085 for i in 1 2 3 4 5 6 7 8 ; do
4086 teststring=$teststring$teststring
4087 done
4088 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4089 # If test is not a shell built-in, we'll probably end up computing a
4090 # maximum length that is only half of the actual maximum length, but
4091 # we can't tell.
4092 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4093 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4094 test $i != 17 # 1/2 MB should be enough
4096 i=`expr $i + 1`
4097 teststring=$teststring$teststring
4098 done
4099 # Only check the string length outside the loop.
4100 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4101 teststring=
4102 # Add a significant safety factor because C++ compilers can tack on
4103 # massive amounts of additional arguments before passing them to the
4104 # linker. It appears as though 1/2 is a usable value.
4105 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4108 esac
4112 if test -n $lt_cv_sys_max_cmd_len ; then
4113 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4114 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4115 else
4116 echo "$as_me:$LINENO: result: none" >&5
4117 echo "${ECHO_T}none" >&6
4119 max_cmd_len=$lt_cv_sys_max_cmd_len
4127 : ${CP="cp -f"}
4128 : ${MV="mv -f"}
4129 : ${RM="rm -f"}
4131 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4132 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4133 # Try some XSI features
4134 xsi_shell=no
4135 ( _lt_dummy="a/b/c"
4136 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4137 = c,a/b,, ) >/dev/null 2>&1 \
4138 && xsi_shell=yes
4139 echo "$as_me:$LINENO: result: $xsi_shell" >&5
4140 echo "${ECHO_T}$xsi_shell" >&6
4143 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4144 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4145 lt_shell_append=no
4146 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4147 >/dev/null 2>&1 \
4148 && lt_shell_append=yes
4149 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4150 echo "${ECHO_T}$lt_shell_append" >&6
4153 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4154 lt_unset=unset
4155 else
4156 lt_unset=false
4163 # test EBCDIC or ASCII
4164 case `echo X|tr X '\101'` in
4165 A) # ASCII based system
4166 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4167 lt_SP2NL='tr \040 \012'
4168 lt_NL2SP='tr \015\012 \040\040'
4170 *) # EBCDIC based system
4171 lt_SP2NL='tr \100 \n'
4172 lt_NL2SP='tr \r\n \100\100'
4174 esac
4184 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4185 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4186 if test "${lt_cv_ld_reload_flag+set}" = set; then
4187 echo $ECHO_N "(cached) $ECHO_C" >&6
4188 else
4189 lt_cv_ld_reload_flag='-r'
4191 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4192 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4193 reload_flag=$lt_cv_ld_reload_flag
4194 case $reload_flag in
4195 "" | " "*) ;;
4196 *) reload_flag=" $reload_flag" ;;
4197 esac
4198 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4199 case $host_os in
4200 darwin*)
4201 if test "$GCC" = yes; then
4202 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4203 else
4204 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4207 esac
4218 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4219 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4220 if test "${lt_cv_deplibs_check_method+set}" = set; then
4221 echo $ECHO_N "(cached) $ECHO_C" >&6
4222 else
4223 lt_cv_file_magic_cmd='$MAGIC_CMD'
4224 lt_cv_file_magic_test_file=
4225 lt_cv_deplibs_check_method='unknown'
4226 # Need to set the preceding variable on all platforms that support
4227 # interlibrary dependencies.
4228 # 'none' -- dependencies not supported.
4229 # `unknown' -- same as none, but documents that we really don't know.
4230 # 'pass_all' -- all dependencies passed with no checks.
4231 # 'test_compile' -- check by making test program.
4232 # 'file_magic [[regex]]' -- check by looking for files in library path
4233 # which responds to the $file_magic_cmd with a given extended regex.
4234 # If you have `file' or equivalent on your system and you're not sure
4235 # whether `pass_all' will *always* work, you probably want this one.
4237 case $host_os in
4238 aix[4-9]*)
4239 lt_cv_deplibs_check_method=pass_all
4242 beos*)
4243 lt_cv_deplibs_check_method=pass_all
4246 bsdi[45]*)
4247 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4248 lt_cv_file_magic_cmd='/usr/bin/file -L'
4249 lt_cv_file_magic_test_file=/shlib/libc.so
4252 cygwin*)
4253 # func_win32_libid is a shell function defined in ltmain.sh
4254 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4255 lt_cv_file_magic_cmd='func_win32_libid'
4258 mingw* | pw32*)
4259 # Base MSYS/MinGW do not provide the 'file' command needed by
4260 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4261 # unless we find 'file', for example because we are cross-compiling.
4262 if ( file / ) >/dev/null 2>&1; then
4263 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4264 lt_cv_file_magic_cmd='func_win32_libid'
4265 else
4266 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4267 lt_cv_file_magic_cmd='$OBJDUMP -f'
4271 darwin* | rhapsody*)
4272 lt_cv_deplibs_check_method=pass_all
4275 freebsd* | dragonfly*)
4276 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4277 case $host_cpu in
4278 i*86 )
4279 # Not sure whether the presence of OpenBSD here was a mistake.
4280 # Let's accept both of them until this is cleared up.
4281 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4282 lt_cv_file_magic_cmd=/usr/bin/file
4283 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4285 esac
4286 else
4287 lt_cv_deplibs_check_method=pass_all
4291 gnu*)
4292 lt_cv_deplibs_check_method=pass_all
4295 hpux10.20* | hpux11*)
4296 lt_cv_file_magic_cmd=/usr/bin/file
4297 case $host_cpu in
4298 ia64*)
4299 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4300 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4302 hppa*64*)
4303 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]'
4304 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4307 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4308 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4310 esac
4313 interix[3-9]*)
4314 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4315 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4318 irix5* | irix6* | nonstopux*)
4319 case $LD in
4320 *-32|*"-32 ") libmagic=32-bit;;
4321 *-n32|*"-n32 ") libmagic=N32;;
4322 *-64|*"-64 ") libmagic=64-bit;;
4323 *) libmagic=never-match;;
4324 esac
4325 lt_cv_deplibs_check_method=pass_all
4328 # This must be Linux ELF.
4329 linux* | k*bsd*-gnu)
4330 lt_cv_deplibs_check_method=pass_all
4333 netbsd*)
4334 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4335 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4336 else
4337 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4341 newos6*)
4342 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4343 lt_cv_file_magic_cmd=/usr/bin/file
4344 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4347 *nto* | *qnx*)
4348 lt_cv_deplibs_check_method=pass_all
4351 openbsd*)
4352 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4353 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4354 else
4355 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4359 osf3* | osf4* | osf5*)
4360 lt_cv_deplibs_check_method=pass_all
4363 rdos*)
4364 lt_cv_deplibs_check_method=pass_all
4367 solaris*)
4368 lt_cv_deplibs_check_method=pass_all
4371 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4372 lt_cv_deplibs_check_method=pass_all
4375 sysv4 | sysv4.3*)
4376 case $host_vendor in
4377 motorola)
4378 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]'
4379 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4381 ncr)
4382 lt_cv_deplibs_check_method=pass_all
4384 sequent)
4385 lt_cv_file_magic_cmd='/bin/file'
4386 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4388 sni)
4389 lt_cv_file_magic_cmd='/bin/file'
4390 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4391 lt_cv_file_magic_test_file=/lib/libc.so
4393 siemens)
4394 lt_cv_deplibs_check_method=pass_all
4397 lt_cv_deplibs_check_method=pass_all
4399 esac
4402 tpf*)
4403 lt_cv_deplibs_check_method=pass_all
4405 esac
4408 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4409 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4410 file_magic_cmd=$lt_cv_file_magic_cmd
4411 deplibs_check_method=$lt_cv_deplibs_check_method
4412 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4425 if test -n "$ac_tool_prefix"; then
4426 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4427 set dummy ${ac_tool_prefix}ar; ac_word=$2
4428 echo "$as_me:$LINENO: checking for $ac_word" >&5
4429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4430 if test "${ac_cv_prog_AR+set}" = set; then
4431 echo $ECHO_N "(cached) $ECHO_C" >&6
4432 else
4433 if test -n "$AR"; then
4434 ac_cv_prog_AR="$AR" # Let the user override the test.
4435 else
4436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4437 for as_dir in $PATH
4439 IFS=$as_save_IFS
4440 test -z "$as_dir" && as_dir=.
4441 for ac_exec_ext in '' $ac_executable_extensions; do
4442 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4443 ac_cv_prog_AR="${ac_tool_prefix}ar"
4444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4445 break 2
4447 done
4448 done
4452 AR=$ac_cv_prog_AR
4453 if test -n "$AR"; then
4454 echo "$as_me:$LINENO: result: $AR" >&5
4455 echo "${ECHO_T}$AR" >&6
4456 else
4457 echo "$as_me:$LINENO: result: no" >&5
4458 echo "${ECHO_T}no" >&6
4462 if test -z "$ac_cv_prog_AR"; then
4463 ac_ct_AR=$AR
4464 # Extract the first word of "ar", so it can be a program name with args.
4465 set dummy ar; ac_word=$2
4466 echo "$as_me:$LINENO: checking for $ac_word" >&5
4467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4468 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4469 echo $ECHO_N "(cached) $ECHO_C" >&6
4470 else
4471 if test -n "$ac_ct_AR"; then
4472 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4473 else
4474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4475 for as_dir in $PATH
4477 IFS=$as_save_IFS
4478 test -z "$as_dir" && as_dir=.
4479 for ac_exec_ext in '' $ac_executable_extensions; do
4480 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4481 ac_cv_prog_ac_ct_AR="ar"
4482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4483 break 2
4485 done
4486 done
4488 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
4491 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4492 if test -n "$ac_ct_AR"; then
4493 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4494 echo "${ECHO_T}$ac_ct_AR" >&6
4495 else
4496 echo "$as_me:$LINENO: result: no" >&5
4497 echo "${ECHO_T}no" >&6
4500 AR=$ac_ct_AR
4501 else
4502 AR="$ac_cv_prog_AR"
4505 test -z "$AR" && AR=ar
4506 test -z "$AR_FLAGS" && AR_FLAGS=cru
4518 if test -n "$ac_tool_prefix"; then
4519 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4520 set dummy ${ac_tool_prefix}strip; ac_word=$2
4521 echo "$as_me:$LINENO: checking for $ac_word" >&5
4522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4523 if test "${ac_cv_prog_STRIP+set}" = set; then
4524 echo $ECHO_N "(cached) $ECHO_C" >&6
4525 else
4526 if test -n "$STRIP"; then
4527 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4528 else
4529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4530 for as_dir in $PATH
4532 IFS=$as_save_IFS
4533 test -z "$as_dir" && as_dir=.
4534 for ac_exec_ext in '' $ac_executable_extensions; do
4535 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4536 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4538 break 2
4540 done
4541 done
4545 STRIP=$ac_cv_prog_STRIP
4546 if test -n "$STRIP"; then
4547 echo "$as_me:$LINENO: result: $STRIP" >&5
4548 echo "${ECHO_T}$STRIP" >&6
4549 else
4550 echo "$as_me:$LINENO: result: no" >&5
4551 echo "${ECHO_T}no" >&6
4555 if test -z "$ac_cv_prog_STRIP"; then
4556 ac_ct_STRIP=$STRIP
4557 # Extract the first word of "strip", so it can be a program name with args.
4558 set dummy strip; ac_word=$2
4559 echo "$as_me:$LINENO: checking for $ac_word" >&5
4560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4561 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4562 echo $ECHO_N "(cached) $ECHO_C" >&6
4563 else
4564 if test -n "$ac_ct_STRIP"; then
4565 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4566 else
4567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4568 for as_dir in $PATH
4570 IFS=$as_save_IFS
4571 test -z "$as_dir" && as_dir=.
4572 for ac_exec_ext in '' $ac_executable_extensions; do
4573 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4574 ac_cv_prog_ac_ct_STRIP="strip"
4575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4576 break 2
4578 done
4579 done
4581 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4584 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4585 if test -n "$ac_ct_STRIP"; then
4586 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4587 echo "${ECHO_T}$ac_ct_STRIP" >&6
4588 else
4589 echo "$as_me:$LINENO: result: no" >&5
4590 echo "${ECHO_T}no" >&6
4593 STRIP=$ac_ct_STRIP
4594 else
4595 STRIP="$ac_cv_prog_STRIP"
4598 test -z "$STRIP" && STRIP=:
4605 if test -n "$ac_tool_prefix"; then
4606 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4607 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4608 echo "$as_me:$LINENO: checking for $ac_word" >&5
4609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4610 if test "${ac_cv_prog_RANLIB+set}" = set; then
4611 echo $ECHO_N "(cached) $ECHO_C" >&6
4612 else
4613 if test -n "$RANLIB"; then
4614 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4615 else
4616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4617 for as_dir in $PATH
4619 IFS=$as_save_IFS
4620 test -z "$as_dir" && as_dir=.
4621 for ac_exec_ext in '' $ac_executable_extensions; do
4622 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4623 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4625 break 2
4627 done
4628 done
4632 RANLIB=$ac_cv_prog_RANLIB
4633 if test -n "$RANLIB"; then
4634 echo "$as_me:$LINENO: result: $RANLIB" >&5
4635 echo "${ECHO_T}$RANLIB" >&6
4636 else
4637 echo "$as_me:$LINENO: result: no" >&5
4638 echo "${ECHO_T}no" >&6
4642 if test -z "$ac_cv_prog_RANLIB"; then
4643 ac_ct_RANLIB=$RANLIB
4644 # Extract the first word of "ranlib", so it can be a program name with args.
4645 set dummy ranlib; ac_word=$2
4646 echo "$as_me:$LINENO: checking for $ac_word" >&5
4647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4648 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4649 echo $ECHO_N "(cached) $ECHO_C" >&6
4650 else
4651 if test -n "$ac_ct_RANLIB"; then
4652 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4653 else
4654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4655 for as_dir in $PATH
4657 IFS=$as_save_IFS
4658 test -z "$as_dir" && as_dir=.
4659 for ac_exec_ext in '' $ac_executable_extensions; do
4660 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4661 ac_cv_prog_ac_ct_RANLIB="ranlib"
4662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4663 break 2
4665 done
4666 done
4668 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4671 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4672 if test -n "$ac_ct_RANLIB"; then
4673 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4674 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4675 else
4676 echo "$as_me:$LINENO: result: no" >&5
4677 echo "${ECHO_T}no" >&6
4680 RANLIB=$ac_ct_RANLIB
4681 else
4682 RANLIB="$ac_cv_prog_RANLIB"
4685 test -z "$RANLIB" && RANLIB=:
4692 # Determine commands to create old-style static archives.
4693 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4694 old_postinstall_cmds='chmod 644 $oldlib'
4695 old_postuninstall_cmds=
4697 if test -n "$RANLIB"; then
4698 case $host_os in
4699 openbsd*)
4700 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4703 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4705 esac
4706 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4742 # If no C compiler was specified, use CC.
4743 LTCC=${LTCC-"$CC"}
4745 # If no C compiler flags were specified, use CFLAGS.
4746 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4748 # Allow CC to be a program name with arguments.
4749 compiler=$CC
4752 # Check for command to grab the raw symbol name followed by C symbol from nm.
4753 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4754 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
4755 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4756 echo $ECHO_N "(cached) $ECHO_C" >&6
4757 else
4759 # These are sane defaults that work on at least a few old systems.
4760 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4762 # Character class describing NM global symbol codes.
4763 symcode='[BCDEGRST]'
4765 # Regexp to match symbols that can be accessed directly from C.
4766 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4768 # Define system-specific variables.
4769 case $host_os in
4770 aix*)
4771 symcode='[BCDT]'
4773 cygwin* | mingw* | pw32*)
4774 symcode='[ABCDGISTW]'
4776 hpux*)
4777 if test "$host_cpu" = ia64; then
4778 symcode='[ABCDEGRST]'
4781 irix* | nonstopux*)
4782 symcode='[BCDEGRST]'
4784 osf*)
4785 symcode='[BCDEGQRST]'
4787 solaris*)
4788 symcode='[BDRT]'
4790 sco3.2v5*)
4791 symcode='[DT]'
4793 sysv4.2uw2*)
4794 symcode='[DT]'
4796 sysv5* | sco5v6* | unixware* | OpenUNIX*)
4797 symcode='[ABDT]'
4799 sysv4)
4800 symcode='[DFNSTU]'
4802 esac
4804 # If we're using GNU nm, then use its standard symbol codes.
4805 case `$NM -V 2>&1` in
4806 *GNU* | *'with BFD'*)
4807 symcode='[ABCDGIRSTW]' ;;
4808 esac
4810 # Transform an extracted symbol line into a proper C declaration.
4811 # Some systems (esp. on ia64) link data and code symbols differently,
4812 # so use this general approach.
4813 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4815 # Transform an extracted symbol line into symbol name and symbol address
4816 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
4818 # Handle CRLF in mingw tool chain
4819 opt_cr=
4820 case $build_os in
4821 mingw*)
4822 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4824 esac
4826 # Try without a prefix underscore, then with it.
4827 for ac_symprfx in "" "_"; do
4829 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4830 symxfrm="\\1 $ac_symprfx\\2 \\2"
4832 # Write the raw and C identifiers.
4833 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4834 # Fake it for dumpbin and say T for any non-static function
4835 # and D for any global variable.
4836 # Also find C++ and __fastcall symbols from MSVC++,
4837 # which start with @ or ?.
4838 lt_cv_sys_global_symbol_pipe="$AWK '"\
4839 " {last_section=section; section=\$ 3};"\
4840 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4841 " \$ 0!~/External *\|/{next};"\
4842 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4843 " {if(hide[section]) next};"\
4844 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4845 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4846 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
4847 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4848 " ' prfx=^$ac_symprfx"
4849 else
4850 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4853 # Check to see that the pipe works correctly.
4854 pipe_works=no
4856 rm -f conftest*
4857 cat > conftest.$ac_ext <<_LT_EOF
4858 #ifdef __cplusplus
4859 extern "C" {
4860 #endif
4861 char nm_test_var;
4862 void nm_test_func(void);
4863 void nm_test_func(void){}
4864 #ifdef __cplusplus
4866 #endif
4867 int main(){nm_test_var='a';nm_test_func();return(0);}
4868 _LT_EOF
4870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4871 (eval $ac_compile) 2>&5
4872 ac_status=$?
4873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874 (exit $ac_status); }; then
4875 # Now try to grab the symbols.
4876 nlist=conftest.nm
4877 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4878 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4879 ac_status=$?
4880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881 (exit $ac_status); } && test -s "$nlist"; then
4882 # Try sorting and uniquifying the output.
4883 if sort "$nlist" | uniq > "$nlist"T; then
4884 mv -f "$nlist"T "$nlist"
4885 else
4886 rm -f "$nlist"T
4889 # Make sure that we snagged all the symbols we need.
4890 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4891 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4892 cat <<_LT_EOF > conftest.$ac_ext
4893 #ifdef __cplusplus
4894 extern "C" {
4895 #endif
4897 _LT_EOF
4898 # Now generate the symbol file.
4899 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4901 cat <<_LT_EOF >> conftest.$ac_ext
4903 /* The mapping between symbol names and symbols. */
4904 const struct {
4905 const char *name;
4906 void *address;
4908 lt__PROGRAM__LTX_preloaded_symbols[] =
4910 { "@PROGRAM@", (void *) 0 },
4911 _LT_EOF
4912 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4913 cat <<\_LT_EOF >> conftest.$ac_ext
4914 {0, (void *) 0}
4917 /* This works around a problem in FreeBSD linker */
4918 #ifdef FREEBSD_WORKAROUND
4919 static const void *lt_preloaded_setup() {
4920 return lt__PROGRAM__LTX_preloaded_symbols;
4922 #endif
4924 #ifdef __cplusplus
4926 #endif
4927 _LT_EOF
4928 # Now try linking the two files.
4929 mv conftest.$ac_objext conftstm.$ac_objext
4930 lt_save_LIBS="$LIBS"
4931 lt_save_CFLAGS="$CFLAGS"
4932 LIBS="conftstm.$ac_objext"
4933 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4935 (eval $ac_link) 2>&5
4936 ac_status=$?
4937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938 (exit $ac_status); } && test -s conftest${ac_exeext}; then
4939 pipe_works=yes
4941 LIBS="$lt_save_LIBS"
4942 CFLAGS="$lt_save_CFLAGS"
4943 else
4944 echo "cannot find nm_test_func in $nlist" >&5
4946 else
4947 echo "cannot find nm_test_var in $nlist" >&5
4949 else
4950 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4952 else
4953 echo "$progname: failed program was:" >&5
4954 cat conftest.$ac_ext >&5
4956 rm -f conftest* conftst*
4958 # Do not use the global_symbol_pipe unless it works.
4959 if test "$pipe_works" = yes; then
4960 break
4961 else
4962 lt_cv_sys_global_symbol_pipe=
4964 done
4968 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4969 lt_cv_sys_global_symbol_to_cdecl=
4971 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4972 echo "$as_me:$LINENO: result: failed" >&5
4973 echo "${ECHO_T}failed" >&6
4974 else
4975 echo "$as_me:$LINENO: result: ok" >&5
4976 echo "${ECHO_T}ok" >&6
4996 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4997 if test "${enable_libtool_lock+set}" = set; then
4998 enableval="$enable_libtool_lock"
5001 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5003 # Some flags need to be propagated to the compiler or linker for good
5004 # libtool support.
5005 case $host in
5006 ia64-*-hpux*)
5007 # Find out which ABI we are using.
5008 echo 'int i;' > conftest.$ac_ext
5009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5010 (eval $ac_compile) 2>&5
5011 ac_status=$?
5012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013 (exit $ac_status); }; then
5014 case `/usr/bin/file conftest.$ac_objext` in
5015 *ELF-32*)
5016 HPUX_IA64_MODE="32"
5018 *ELF-64*)
5019 HPUX_IA64_MODE="64"
5021 esac
5023 rm -rf conftest*
5025 *-*-irix6*)
5026 # Find out which ABI we are using.
5027 echo '#line 5027 "configure"' > conftest.$ac_ext
5028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5029 (eval $ac_compile) 2>&5
5030 ac_status=$?
5031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5032 (exit $ac_status); }; then
5033 if test "$lt_cv_prog_gnu_ld" = yes; then
5034 case `/usr/bin/file conftest.$ac_objext` in
5035 *32-bit*)
5036 LD="${LD-ld} -melf32bsmip"
5038 *N32*)
5039 LD="${LD-ld} -melf32bmipn32"
5041 *64-bit*)
5042 LD="${LD-ld} -melf64bmip"
5044 esac
5045 else
5046 case `/usr/bin/file conftest.$ac_objext` in
5047 *32-bit*)
5048 LD="${LD-ld} -32"
5050 *N32*)
5051 LD="${LD-ld} -n32"
5053 *64-bit*)
5054 LD="${LD-ld} -64"
5056 esac
5059 rm -rf conftest*
5062 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5063 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5064 # Find out which ABI we are using.
5065 echo 'int i;' > conftest.$ac_ext
5066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5067 (eval $ac_compile) 2>&5
5068 ac_status=$?
5069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5070 (exit $ac_status); }; then
5071 case `/usr/bin/file conftest.o` in
5072 *32-bit*)
5073 case $host in
5074 x86_64-*kfreebsd*-gnu)
5075 LD="${LD-ld} -m elf_i386_fbsd"
5077 x86_64-*linux*)
5078 LD="${LD-ld} -m elf_i386"
5080 ppc64-*linux*|powerpc64-*linux*)
5081 LD="${LD-ld} -m elf32ppclinux"
5083 s390x-*linux*)
5084 LD="${LD-ld} -m elf_s390"
5086 sparc64-*linux*)
5087 LD="${LD-ld} -m elf32_sparc"
5089 esac
5091 *64-bit*)
5092 case $host in
5093 x86_64-*kfreebsd*-gnu)
5094 LD="${LD-ld} -m elf_x86_64_fbsd"
5096 x86_64-*linux*)
5097 LD="${LD-ld} -m elf_x86_64"
5099 ppc*-*linux*|powerpc*-*linux*)
5100 LD="${LD-ld} -m elf64ppc"
5102 s390*-*linux*|s390*-*tpf*)
5103 LD="${LD-ld} -m elf64_s390"
5105 sparc*-*linux*)
5106 LD="${LD-ld} -m elf64_sparc"
5108 esac
5110 esac
5112 rm -rf conftest*
5115 *-*-sco3.2v5*)
5116 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5117 SAVE_CFLAGS="$CFLAGS"
5118 CFLAGS="$CFLAGS -belf"
5119 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5120 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5121 if test "${lt_cv_cc_needs_belf+set}" = set; then
5122 echo $ECHO_N "(cached) $ECHO_C" >&6
5123 else
5124 ac_ext=c
5125 ac_cpp='$CPP $CPPFLAGS'
5126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5130 if test x$gcc_no_link = xyes; then
5131 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5132 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5133 { (exit 1); exit 1; }; }
5135 cat >conftest.$ac_ext <<_ACEOF
5136 /* confdefs.h. */
5137 _ACEOF
5138 cat confdefs.h >>conftest.$ac_ext
5139 cat >>conftest.$ac_ext <<_ACEOF
5140 /* end confdefs.h. */
5143 main ()
5147 return 0;
5149 _ACEOF
5150 rm -f conftest.$ac_objext conftest$ac_exeext
5151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5152 (eval $ac_link) 2>conftest.er1
5153 ac_status=$?
5154 grep -v '^ *+' conftest.er1 >conftest.err
5155 rm -f conftest.er1
5156 cat conftest.err >&5
5157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5158 (exit $ac_status); } &&
5159 { ac_try='test -z "$ac_c_werror_flag"
5160 || test ! -s conftest.err'
5161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5162 (eval $ac_try) 2>&5
5163 ac_status=$?
5164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165 (exit $ac_status); }; } &&
5166 { ac_try='test -s conftest$ac_exeext'
5167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5168 (eval $ac_try) 2>&5
5169 ac_status=$?
5170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171 (exit $ac_status); }; }; then
5172 lt_cv_cc_needs_belf=yes
5173 else
5174 echo "$as_me: failed program was:" >&5
5175 sed 's/^/| /' conftest.$ac_ext >&5
5177 lt_cv_cc_needs_belf=no
5179 rm -f conftest.err conftest.$ac_objext \
5180 conftest$ac_exeext conftest.$ac_ext
5181 ac_ext=c
5182 ac_cpp='$CPP $CPPFLAGS'
5183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5188 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5189 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5190 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5191 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5192 CFLAGS="$SAVE_CFLAGS"
5195 sparc*-*solaris*)
5196 # Find out which ABI we are using.
5197 echo 'int i;' > conftest.$ac_ext
5198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5199 (eval $ac_compile) 2>&5
5200 ac_status=$?
5201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5202 (exit $ac_status); }; then
5203 case `/usr/bin/file conftest.o` in
5204 *64-bit*)
5205 case $lt_cv_prog_gnu_ld in
5206 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5207 *) LD="${LD-ld} -64" ;;
5208 esac
5210 esac
5212 rm -rf conftest*
5214 esac
5216 need_locks="$enable_libtool_lock"
5218 ac_ext=c
5219 ac_cpp='$CPP $CPPFLAGS'
5220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5223 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5224 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5225 # On Suns, sometimes $CPP names a directory.
5226 if test -n "$CPP" && test -d "$CPP"; then
5227 CPP=
5229 if test -z "$CPP"; then
5230 if test "${ac_cv_prog_CPP+set}" = set; then
5231 echo $ECHO_N "(cached) $ECHO_C" >&6
5232 else
5233 # Double quotes because CPP needs to be expanded
5234 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5236 ac_preproc_ok=false
5237 for ac_c_preproc_warn_flag in '' yes
5239 # Use a header file that comes with gcc, so configuring glibc
5240 # with a fresh cross-compiler works.
5241 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5242 # <limits.h> exists even on freestanding compilers.
5243 # On the NeXT, cc -E runs the code through the compiler's parser,
5244 # not just through cpp. "Syntax error" is here to catch this case.
5245 cat >conftest.$ac_ext <<_ACEOF
5246 /* confdefs.h. */
5247 _ACEOF
5248 cat confdefs.h >>conftest.$ac_ext
5249 cat >>conftest.$ac_ext <<_ACEOF
5250 /* end confdefs.h. */
5251 #ifdef __STDC__
5252 # include <limits.h>
5253 #else
5254 # include <assert.h>
5255 #endif
5256 Syntax error
5257 _ACEOF
5258 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5259 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5260 ac_status=$?
5261 grep -v '^ *+' conftest.er1 >conftest.err
5262 rm -f conftest.er1
5263 cat conftest.err >&5
5264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265 (exit $ac_status); } >/dev/null; then
5266 if test -s conftest.err; then
5267 ac_cpp_err=$ac_c_preproc_warn_flag
5268 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5269 else
5270 ac_cpp_err=
5272 else
5273 ac_cpp_err=yes
5275 if test -z "$ac_cpp_err"; then
5277 else
5278 echo "$as_me: failed program was:" >&5
5279 sed 's/^/| /' conftest.$ac_ext >&5
5281 # Broken: fails on valid input.
5282 continue
5284 rm -f conftest.err conftest.$ac_ext
5286 # OK, works on sane cases. Now check whether non-existent headers
5287 # can be detected and how.
5288 cat >conftest.$ac_ext <<_ACEOF
5289 /* confdefs.h. */
5290 _ACEOF
5291 cat confdefs.h >>conftest.$ac_ext
5292 cat >>conftest.$ac_ext <<_ACEOF
5293 /* end confdefs.h. */
5294 #include <ac_nonexistent.h>
5295 _ACEOF
5296 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5297 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5298 ac_status=$?
5299 grep -v '^ *+' conftest.er1 >conftest.err
5300 rm -f conftest.er1
5301 cat conftest.err >&5
5302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303 (exit $ac_status); } >/dev/null; then
5304 if test -s conftest.err; then
5305 ac_cpp_err=$ac_c_preproc_warn_flag
5306 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5307 else
5308 ac_cpp_err=
5310 else
5311 ac_cpp_err=yes
5313 if test -z "$ac_cpp_err"; then
5314 # Broken: success on invalid input.
5315 continue
5316 else
5317 echo "$as_me: failed program was:" >&5
5318 sed 's/^/| /' conftest.$ac_ext >&5
5320 # Passes both tests.
5321 ac_preproc_ok=:
5322 break
5324 rm -f conftest.err conftest.$ac_ext
5326 done
5327 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5328 rm -f conftest.err conftest.$ac_ext
5329 if $ac_preproc_ok; then
5330 break
5333 done
5334 ac_cv_prog_CPP=$CPP
5337 CPP=$ac_cv_prog_CPP
5338 else
5339 ac_cv_prog_CPP=$CPP
5341 echo "$as_me:$LINENO: result: $CPP" >&5
5342 echo "${ECHO_T}$CPP" >&6
5343 ac_preproc_ok=false
5344 for ac_c_preproc_warn_flag in '' yes
5346 # Use a header file that comes with gcc, so configuring glibc
5347 # with a fresh cross-compiler works.
5348 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5349 # <limits.h> exists even on freestanding compilers.
5350 # On the NeXT, cc -E runs the code through the compiler's parser,
5351 # not just through cpp. "Syntax error" is here to catch this case.
5352 cat >conftest.$ac_ext <<_ACEOF
5353 /* confdefs.h. */
5354 _ACEOF
5355 cat confdefs.h >>conftest.$ac_ext
5356 cat >>conftest.$ac_ext <<_ACEOF
5357 /* end confdefs.h. */
5358 #ifdef __STDC__
5359 # include <limits.h>
5360 #else
5361 # include <assert.h>
5362 #endif
5363 Syntax error
5364 _ACEOF
5365 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5366 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5367 ac_status=$?
5368 grep -v '^ *+' conftest.er1 >conftest.err
5369 rm -f conftest.er1
5370 cat conftest.err >&5
5371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372 (exit $ac_status); } >/dev/null; then
5373 if test -s conftest.err; then
5374 ac_cpp_err=$ac_c_preproc_warn_flag
5375 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5376 else
5377 ac_cpp_err=
5379 else
5380 ac_cpp_err=yes
5382 if test -z "$ac_cpp_err"; then
5384 else
5385 echo "$as_me: failed program was:" >&5
5386 sed 's/^/| /' conftest.$ac_ext >&5
5388 # Broken: fails on valid input.
5389 continue
5391 rm -f conftest.err conftest.$ac_ext
5393 # OK, works on sane cases. Now check whether non-existent headers
5394 # can be detected and how.
5395 cat >conftest.$ac_ext <<_ACEOF
5396 /* confdefs.h. */
5397 _ACEOF
5398 cat confdefs.h >>conftest.$ac_ext
5399 cat >>conftest.$ac_ext <<_ACEOF
5400 /* end confdefs.h. */
5401 #include <ac_nonexistent.h>
5402 _ACEOF
5403 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5404 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5405 ac_status=$?
5406 grep -v '^ *+' conftest.er1 >conftest.err
5407 rm -f conftest.er1
5408 cat conftest.err >&5
5409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410 (exit $ac_status); } >/dev/null; then
5411 if test -s conftest.err; then
5412 ac_cpp_err=$ac_c_preproc_warn_flag
5413 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5414 else
5415 ac_cpp_err=
5417 else
5418 ac_cpp_err=yes
5420 if test -z "$ac_cpp_err"; then
5421 # Broken: success on invalid input.
5422 continue
5423 else
5424 echo "$as_me: failed program was:" >&5
5425 sed 's/^/| /' conftest.$ac_ext >&5
5427 # Passes both tests.
5428 ac_preproc_ok=:
5429 break
5431 rm -f conftest.err conftest.$ac_ext
5433 done
5434 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5435 rm -f conftest.err conftest.$ac_ext
5436 if $ac_preproc_ok; then
5438 else
5439 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5440 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5441 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5442 See \`config.log' for more details." >&5
5443 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5444 See \`config.log' for more details." >&2;}
5445 { (exit 1); exit 1; }; }; }
5448 ac_ext=c
5449 ac_cpp='$CPP $CPPFLAGS'
5450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5455 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5456 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5457 if test "${ac_cv_header_stdc+set}" = set; then
5458 echo $ECHO_N "(cached) $ECHO_C" >&6
5459 else
5460 cat >conftest.$ac_ext <<_ACEOF
5461 /* confdefs.h. */
5462 _ACEOF
5463 cat confdefs.h >>conftest.$ac_ext
5464 cat >>conftest.$ac_ext <<_ACEOF
5465 /* end confdefs.h. */
5466 #include <stdlib.h>
5467 #include <stdarg.h>
5468 #include <string.h>
5469 #include <float.h>
5472 main ()
5476 return 0;
5478 _ACEOF
5479 rm -f conftest.$ac_objext
5480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5481 (eval $ac_compile) 2>conftest.er1
5482 ac_status=$?
5483 grep -v '^ *+' conftest.er1 >conftest.err
5484 rm -f conftest.er1
5485 cat conftest.err >&5
5486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5487 (exit $ac_status); } &&
5488 { ac_try='test -z "$ac_c_werror_flag"
5489 || test ! -s conftest.err'
5490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5491 (eval $ac_try) 2>&5
5492 ac_status=$?
5493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494 (exit $ac_status); }; } &&
5495 { ac_try='test -s conftest.$ac_objext'
5496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5497 (eval $ac_try) 2>&5
5498 ac_status=$?
5499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5500 (exit $ac_status); }; }; then
5501 ac_cv_header_stdc=yes
5502 else
5503 echo "$as_me: failed program was:" >&5
5504 sed 's/^/| /' conftest.$ac_ext >&5
5506 ac_cv_header_stdc=no
5508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5510 if test $ac_cv_header_stdc = yes; then
5511 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5512 cat >conftest.$ac_ext <<_ACEOF
5513 /* confdefs.h. */
5514 _ACEOF
5515 cat confdefs.h >>conftest.$ac_ext
5516 cat >>conftest.$ac_ext <<_ACEOF
5517 /* end confdefs.h. */
5518 #include <string.h>
5520 _ACEOF
5521 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5522 $EGREP "memchr" >/dev/null 2>&1; then
5524 else
5525 ac_cv_header_stdc=no
5527 rm -f conftest*
5531 if test $ac_cv_header_stdc = yes; then
5532 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5533 cat >conftest.$ac_ext <<_ACEOF
5534 /* confdefs.h. */
5535 _ACEOF
5536 cat confdefs.h >>conftest.$ac_ext
5537 cat >>conftest.$ac_ext <<_ACEOF
5538 /* end confdefs.h. */
5539 #include <stdlib.h>
5541 _ACEOF
5542 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5543 $EGREP "free" >/dev/null 2>&1; then
5545 else
5546 ac_cv_header_stdc=no
5548 rm -f conftest*
5552 if test $ac_cv_header_stdc = yes; then
5553 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5554 if test "$cross_compiling" = yes; then
5556 else
5557 cat >conftest.$ac_ext <<_ACEOF
5558 /* confdefs.h. */
5559 _ACEOF
5560 cat confdefs.h >>conftest.$ac_ext
5561 cat >>conftest.$ac_ext <<_ACEOF
5562 /* end confdefs.h. */
5563 #include <ctype.h>
5564 #if ((' ' & 0x0FF) == 0x020)
5565 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5566 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5567 #else
5568 # define ISLOWER(c) \
5569 (('a' <= (c) && (c) <= 'i') \
5570 || ('j' <= (c) && (c) <= 'r') \
5571 || ('s' <= (c) && (c) <= 'z'))
5572 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5573 #endif
5575 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5577 main ()
5579 int i;
5580 for (i = 0; i < 256; i++)
5581 if (XOR (islower (i), ISLOWER (i))
5582 || toupper (i) != TOUPPER (i))
5583 exit(2);
5584 exit (0);
5586 _ACEOF
5587 rm -f conftest$ac_exeext
5588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5589 (eval $ac_link) 2>&5
5590 ac_status=$?
5591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5594 (eval $ac_try) 2>&5
5595 ac_status=$?
5596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597 (exit $ac_status); }; }; then
5599 else
5600 echo "$as_me: program exited with status $ac_status" >&5
5601 echo "$as_me: failed program was:" >&5
5602 sed 's/^/| /' conftest.$ac_ext >&5
5604 ( exit $ac_status )
5605 ac_cv_header_stdc=no
5607 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5611 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5612 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5613 if test $ac_cv_header_stdc = yes; then
5615 cat >>confdefs.h <<\_ACEOF
5616 #define STDC_HEADERS 1
5617 _ACEOF
5621 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5631 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5632 inttypes.h stdint.h unistd.h
5634 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5635 echo "$as_me:$LINENO: checking for $ac_header" >&5
5636 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5637 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5638 echo $ECHO_N "(cached) $ECHO_C" >&6
5639 else
5640 cat >conftest.$ac_ext <<_ACEOF
5641 /* confdefs.h. */
5642 _ACEOF
5643 cat confdefs.h >>conftest.$ac_ext
5644 cat >>conftest.$ac_ext <<_ACEOF
5645 /* end confdefs.h. */
5646 $ac_includes_default
5648 #include <$ac_header>
5649 _ACEOF
5650 rm -f conftest.$ac_objext
5651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5652 (eval $ac_compile) 2>conftest.er1
5653 ac_status=$?
5654 grep -v '^ *+' conftest.er1 >conftest.err
5655 rm -f conftest.er1
5656 cat conftest.err >&5
5657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658 (exit $ac_status); } &&
5659 { ac_try='test -z "$ac_c_werror_flag"
5660 || test ! -s conftest.err'
5661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5662 (eval $ac_try) 2>&5
5663 ac_status=$?
5664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665 (exit $ac_status); }; } &&
5666 { ac_try='test -s conftest.$ac_objext'
5667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5668 (eval $ac_try) 2>&5
5669 ac_status=$?
5670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671 (exit $ac_status); }; }; then
5672 eval "$as_ac_Header=yes"
5673 else
5674 echo "$as_me: failed program was:" >&5
5675 sed 's/^/| /' conftest.$ac_ext >&5
5677 eval "$as_ac_Header=no"
5679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5681 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5682 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5683 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5684 cat >>confdefs.h <<_ACEOF
5685 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5686 _ACEOF
5690 done
5694 for ac_header in dlfcn.h
5696 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5697 echo "$as_me:$LINENO: checking for $ac_header" >&5
5698 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5699 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5700 echo $ECHO_N "(cached) $ECHO_C" >&6
5701 else
5702 cat >conftest.$ac_ext <<_ACEOF
5703 /* confdefs.h. */
5704 _ACEOF
5705 cat confdefs.h >>conftest.$ac_ext
5706 cat >>conftest.$ac_ext <<_ACEOF
5707 /* end confdefs.h. */
5708 $ac_includes_default
5710 #include <$ac_header>
5711 _ACEOF
5712 rm -f conftest.$ac_objext
5713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5714 (eval $ac_compile) 2>conftest.er1
5715 ac_status=$?
5716 grep -v '^ *+' conftest.er1 >conftest.err
5717 rm -f conftest.er1
5718 cat conftest.err >&5
5719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720 (exit $ac_status); } &&
5721 { ac_try='test -z "$ac_c_werror_flag"
5722 || test ! -s conftest.err'
5723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5724 (eval $ac_try) 2>&5
5725 ac_status=$?
5726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5727 (exit $ac_status); }; } &&
5728 { ac_try='test -s conftest.$ac_objext'
5729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5730 (eval $ac_try) 2>&5
5731 ac_status=$?
5732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733 (exit $ac_status); }; }; then
5734 eval "$as_ac_Header=yes"
5735 else
5736 echo "$as_me: failed program was:" >&5
5737 sed 's/^/| /' conftest.$ac_ext >&5
5739 eval "$as_ac_Header=no"
5741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5743 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5744 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5745 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5746 cat >>confdefs.h <<_ACEOF
5747 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5748 _ACEOF
5752 done
5756 # This can be used to rebuild libtool when needed
5757 LIBTOOL_DEPS="$ltmain"
5759 # Always use our own libtool.
5760 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5786 test -z "$LN_S" && LN_S="ln -s"
5801 if test -n "${ZSH_VERSION+set}" ; then
5802 setopt NO_GLOB_SUBST
5805 echo "$as_me:$LINENO: checking for objdir" >&5
5806 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5807 if test "${lt_cv_objdir+set}" = set; then
5808 echo $ECHO_N "(cached) $ECHO_C" >&6
5809 else
5810 rm -f .libs 2>/dev/null
5811 mkdir .libs 2>/dev/null
5812 if test -d .libs; then
5813 lt_cv_objdir=.libs
5814 else
5815 # MS-DOS does not allow filenames that begin with a dot.
5816 lt_cv_objdir=_libs
5818 rmdir .libs 2>/dev/null
5820 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5821 echo "${ECHO_T}$lt_cv_objdir" >&6
5822 objdir=$lt_cv_objdir
5828 cat >>confdefs.h <<_ACEOF
5829 #define LT_OBJDIR "$lt_cv_objdir/"
5830 _ACEOF
5848 case $host_os in
5849 aix3*)
5850 # AIX sometimes has problems with the GCC collect2 program. For some
5851 # reason, if we set the COLLECT_NAMES environment variable, the problems
5852 # vanish in a puff of smoke.
5853 if test "X${COLLECT_NAMES+set}" != Xset; then
5854 COLLECT_NAMES=
5855 export COLLECT_NAMES
5858 esac
5860 # Sed substitution that helps us do robust quoting. It backslashifies
5861 # metacharacters that are still active within double-quoted strings.
5862 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5864 # Same as above, but do not quote variable references.
5865 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5867 # Sed substitution to delay expansion of an escaped shell variable in a
5868 # double_quote_subst'ed string.
5869 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5871 # Sed substitution to delay expansion of an escaped single quote.
5872 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5874 # Sed substitution to avoid accidental globbing in evaled expressions
5875 no_glob_subst='s/\*/\\\*/g'
5877 # Global variables:
5878 ofile=libtool
5879 can_build_shared=yes
5881 # All known linkers require a `.a' archive for static linking (except MSVC,
5882 # which needs '.lib').
5883 libext=a
5885 with_gnu_ld="$lt_cv_prog_gnu_ld"
5887 old_CC="$CC"
5888 old_CFLAGS="$CFLAGS"
5890 # Set sane defaults for various variables
5891 test -z "$CC" && CC=cc
5892 test -z "$LTCC" && LTCC=$CC
5893 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
5894 test -z "$LD" && LD=ld
5895 test -z "$ac_objext" && ac_objext=o
5897 for cc_temp in $compiler""; do
5898 case $cc_temp in
5899 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5900 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5901 \-*) ;;
5902 *) break;;
5903 esac
5904 done
5905 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
5908 # Only perform the check for file, if the check method requires it
5909 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5910 case $deplibs_check_method in
5911 file_magic*)
5912 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5913 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5914 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5915 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5916 echo $ECHO_N "(cached) $ECHO_C" >&6
5917 else
5918 case $MAGIC_CMD in
5919 [\\/*] | ?:[\\/]*)
5920 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5923 lt_save_MAGIC_CMD="$MAGIC_CMD"
5924 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5925 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5926 for ac_dir in $ac_dummy; do
5927 IFS="$lt_save_ifs"
5928 test -z "$ac_dir" && ac_dir=.
5929 if test -f $ac_dir/${ac_tool_prefix}file; then
5930 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5931 if test -n "$file_magic_test_file"; then
5932 case $deplibs_check_method in
5933 "file_magic "*)
5934 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5935 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5936 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5937 $EGREP "$file_magic_regex" > /dev/null; then
5939 else
5940 cat <<_LT_EOF 1>&2
5942 *** Warning: the command libtool uses to detect shared libraries,
5943 *** $file_magic_cmd, produces output that libtool cannot recognize.
5944 *** The result is that libtool may fail to recognize shared libraries
5945 *** as such. This will affect the creation of libtool libraries that
5946 *** depend on shared libraries, but programs linked with such libtool
5947 *** libraries will work regardless of this problem. Nevertheless, you
5948 *** may want to report the problem to your system manager and/or to
5949 *** bug-libtool@gnu.org
5951 _LT_EOF
5952 fi ;;
5953 esac
5955 break
5957 done
5958 IFS="$lt_save_ifs"
5959 MAGIC_CMD="$lt_save_MAGIC_CMD"
5961 esac
5964 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5965 if test -n "$MAGIC_CMD"; then
5966 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5967 echo "${ECHO_T}$MAGIC_CMD" >&6
5968 else
5969 echo "$as_me:$LINENO: result: no" >&5
5970 echo "${ECHO_T}no" >&6
5977 if test -z "$lt_cv_path_MAGIC_CMD"; then
5978 if test -n "$ac_tool_prefix"; then
5979 echo "$as_me:$LINENO: checking for file" >&5
5980 echo $ECHO_N "checking for file... $ECHO_C" >&6
5981 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5982 echo $ECHO_N "(cached) $ECHO_C" >&6
5983 else
5984 case $MAGIC_CMD in
5985 [\\/*] | ?:[\\/]*)
5986 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5989 lt_save_MAGIC_CMD="$MAGIC_CMD"
5990 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5991 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5992 for ac_dir in $ac_dummy; do
5993 IFS="$lt_save_ifs"
5994 test -z "$ac_dir" && ac_dir=.
5995 if test -f $ac_dir/file; then
5996 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5997 if test -n "$file_magic_test_file"; then
5998 case $deplibs_check_method in
5999 "file_magic "*)
6000 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6001 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6002 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6003 $EGREP "$file_magic_regex" > /dev/null; then
6005 else
6006 cat <<_LT_EOF 1>&2
6008 *** Warning: the command libtool uses to detect shared libraries,
6009 *** $file_magic_cmd, produces output that libtool cannot recognize.
6010 *** The result is that libtool may fail to recognize shared libraries
6011 *** as such. This will affect the creation of libtool libraries that
6012 *** depend on shared libraries, but programs linked with such libtool
6013 *** libraries will work regardless of this problem. Nevertheless, you
6014 *** may want to report the problem to your system manager and/or to
6015 *** bug-libtool@gnu.org
6017 _LT_EOF
6018 fi ;;
6019 esac
6021 break
6023 done
6024 IFS="$lt_save_ifs"
6025 MAGIC_CMD="$lt_save_MAGIC_CMD"
6027 esac
6030 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6031 if test -n "$MAGIC_CMD"; then
6032 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6033 echo "${ECHO_T}$MAGIC_CMD" >&6
6034 else
6035 echo "$as_me:$LINENO: result: no" >&5
6036 echo "${ECHO_T}no" >&6
6040 else
6041 MAGIC_CMD=:
6047 esac
6049 # Use C for the default configuration in the libtool script
6051 lt_save_CC="$CC"
6052 ac_ext=c
6053 ac_cpp='$CPP $CPPFLAGS'
6054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6059 # Source file extension for C test sources.
6060 ac_ext=c
6062 # Object file extension for compiled C test sources.
6063 objext=o
6064 objext=$objext
6066 # Code to be used in simple compile tests
6067 lt_simple_compile_test_code="int some_variable = 0;"
6069 # Code to be used in simple link tests
6070 lt_simple_link_test_code='int main(){return(0);}'
6078 # If no C compiler was specified, use CC.
6079 LTCC=${LTCC-"$CC"}
6081 # If no C compiler flags were specified, use CFLAGS.
6082 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6084 # Allow CC to be a program name with arguments.
6085 compiler=$CC
6087 # Save the default compiler, since it gets overwritten when the other
6088 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6089 compiler_DEFAULT=$CC
6091 # save warnings/boilerplate of simple test code
6092 ac_outfile=conftest.$ac_objext
6093 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6094 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6095 _lt_compiler_boilerplate=`cat conftest.err`
6096 $RM conftest*
6098 ac_outfile=conftest.$ac_objext
6099 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6100 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6101 _lt_linker_boilerplate=`cat conftest.err`
6102 $RM conftest*
6105 ## CAVEAT EMPTOR:
6106 ## There is no encapsulation within the following macros, do not change
6107 ## the running order or otherwise move them around unless you know exactly
6108 ## what you are doing...
6109 if test -n "$compiler"; then
6111 lt_prog_compiler_no_builtin_flag=
6113 if test "$GCC" = yes; then
6114 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6116 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6117 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6118 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6119 echo $ECHO_N "(cached) $ECHO_C" >&6
6120 else
6121 lt_cv_prog_compiler_rtti_exceptions=no
6122 ac_outfile=conftest.$ac_objext
6123 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6124 lt_compiler_flag="-fno-rtti -fno-exceptions"
6125 # Insert the option either (1) after the last *FLAGS variable, or
6126 # (2) before a word containing "conftest.", or (3) at the end.
6127 # Note that $ac_compile itself does not contain backslashes and begins
6128 # with a dollar sign (not a hyphen), so the echo should work correctly.
6129 # The option is referenced via a variable to avoid confusing sed.
6130 lt_compile=`echo "$ac_compile" | $SED \
6131 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6132 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6133 -e 's:$: $lt_compiler_flag:'`
6134 (eval echo "\"\$as_me:6134: $lt_compile\"" >&5)
6135 (eval "$lt_compile" 2>conftest.err)
6136 ac_status=$?
6137 cat conftest.err >&5
6138 echo "$as_me:6138: \$? = $ac_status" >&5
6139 if (exit $ac_status) && test -s "$ac_outfile"; then
6140 # The compiler can only warn and ignore the option if not recognized
6141 # So say no if there are warnings other than the usual output.
6142 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6143 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6144 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6145 lt_cv_prog_compiler_rtti_exceptions=yes
6148 $RM conftest*
6151 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6152 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6154 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6155 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6156 else
6167 lt_prog_compiler_wl=
6168 lt_prog_compiler_pic=
6169 lt_prog_compiler_static=
6171 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6172 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6174 if test "$GCC" = yes; then
6175 lt_prog_compiler_wl='-Wl,'
6176 lt_prog_compiler_static='-static'
6178 case $host_os in
6179 aix*)
6180 # All AIX code is PIC.
6181 if test "$host_cpu" = ia64; then
6182 # AIX 5 now supports IA64 processor
6183 lt_prog_compiler_static='-Bstatic'
6187 amigaos*)
6188 if test "$host_cpu" = m68k; then
6189 # FIXME: we need at least 68020 code to build shared libraries, but
6190 # adding the `-m68020' flag to GCC prevents building anything better,
6191 # like `-m68040'.
6192 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6196 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6197 # PIC is the default for these OSes.
6200 mingw* | cygwin* | pw32* | os2*)
6201 # This hack is so that the source file can tell whether it is being
6202 # built for inclusion in a dll (and should export symbols for example).
6203 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6204 # (--disable-auto-import) libraries
6205 lt_prog_compiler_pic='-DDLL_EXPORT'
6208 darwin* | rhapsody*)
6209 # PIC is the default on this platform
6210 # Common symbols not allowed in MH_DYLIB files
6211 lt_prog_compiler_pic='-fno-common'
6214 hpux*)
6215 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6216 # not for PA HP-UX.
6217 case $host_cpu in
6218 hppa*64*|ia64*)
6219 # +Z the default
6222 lt_prog_compiler_pic='-fPIC'
6224 esac
6227 interix[3-9]*)
6228 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6229 # Instead, we relocate shared libraries at runtime.
6232 msdosdjgpp*)
6233 # Just because we use GCC doesn't mean we suddenly get shared libraries
6234 # on systems that don't support them.
6235 lt_prog_compiler_can_build_shared=no
6236 enable_shared=no
6239 *nto* | *qnx*)
6240 # QNX uses GNU C++, but need to define -shared option too, otherwise
6241 # it will coredump.
6242 lt_prog_compiler_pic='-fPIC -shared'
6245 sysv4*MP*)
6246 if test -d /usr/nec; then
6247 lt_prog_compiler_pic=-Kconform_pic
6252 lt_prog_compiler_pic='-fPIC'
6254 esac
6255 else
6256 # PORTME Check for flag to pass linker flags through the system compiler.
6257 case $host_os in
6258 aix*)
6259 lt_prog_compiler_wl='-Wl,'
6260 if test "$host_cpu" = ia64; then
6261 # AIX 5 now supports IA64 processor
6262 lt_prog_compiler_static='-Bstatic'
6263 else
6264 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6267 darwin*)
6268 # PIC is the default on this platform
6269 # Common symbols not allowed in MH_DYLIB files
6270 case $cc_basename in
6271 xlc*)
6272 lt_prog_compiler_pic='-qnocommon'
6273 lt_prog_compiler_wl='-Wl,'
6275 esac
6278 mingw* | cygwin* | pw32* | os2*)
6279 # This hack is so that the source file can tell whether it is being
6280 # built for inclusion in a dll (and should export symbols for example).
6281 lt_prog_compiler_pic='-DDLL_EXPORT'
6284 hpux9* | hpux10* | hpux11*)
6285 lt_prog_compiler_wl='-Wl,'
6286 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6287 # not for PA HP-UX.
6288 case $host_cpu in
6289 hppa*64*|ia64*)
6290 # +Z the default
6293 lt_prog_compiler_pic='+Z'
6295 esac
6296 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6297 lt_prog_compiler_static='${wl}-a ${wl}archive'
6300 irix5* | irix6* | nonstopux*)
6301 lt_prog_compiler_wl='-Wl,'
6302 # PIC (with -KPIC) is the default.
6303 lt_prog_compiler_static='-non_shared'
6306 linux* | k*bsd*-gnu)
6307 case $cc_basename in
6308 icc* | ecc*)
6309 lt_prog_compiler_wl='-Wl,'
6310 lt_prog_compiler_pic='-KPIC'
6311 lt_prog_compiler_static='-static'
6313 pgcc* | pgf77* | pgf90* | pgf95*)
6314 # Portland Group compilers (*not* the Pentium gcc compiler,
6315 # which looks to be a dead project)
6316 lt_prog_compiler_wl='-Wl,'
6317 lt_prog_compiler_pic='-fpic'
6318 lt_prog_compiler_static='-Bstatic'
6320 ccc*)
6321 lt_prog_compiler_wl='-Wl,'
6322 # All Alpha code is PIC.
6323 lt_prog_compiler_static='-non_shared'
6326 case `$CC -V 2>&1 | sed 5q` in
6327 *Sun\ C*)
6328 # Sun C 5.9
6329 lt_prog_compiler_pic='-KPIC'
6330 lt_prog_compiler_static='-Bstatic'
6331 lt_prog_compiler_wl='-Wl,'
6333 *Sun\ F*)
6334 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6335 lt_prog_compiler_pic='-KPIC'
6336 lt_prog_compiler_static='-Bstatic'
6337 lt_prog_compiler_wl=''
6339 esac
6341 esac
6344 newsos6)
6345 lt_prog_compiler_pic='-KPIC'
6346 lt_prog_compiler_static='-Bstatic'
6349 *nto* | *qnx*)
6350 # QNX uses GNU C++, but need to define -shared option too, otherwise
6351 # it will coredump.
6352 lt_prog_compiler_pic='-fPIC -shared'
6355 osf3* | osf4* | osf5*)
6356 lt_prog_compiler_wl='-Wl,'
6357 # All OSF/1 code is PIC.
6358 lt_prog_compiler_static='-non_shared'
6361 rdos*)
6362 lt_prog_compiler_static='-non_shared'
6365 solaris*)
6366 lt_prog_compiler_pic='-KPIC'
6367 lt_prog_compiler_static='-Bstatic'
6368 case $cc_basename in
6369 f77* | f90* | f95*)
6370 lt_prog_compiler_wl='-Qoption ld ';;
6372 lt_prog_compiler_wl='-Wl,';;
6373 esac
6376 sunos4*)
6377 lt_prog_compiler_wl='-Qoption ld '
6378 lt_prog_compiler_pic='-PIC'
6379 lt_prog_compiler_static='-Bstatic'
6382 sysv4 | sysv4.2uw2* | sysv4.3*)
6383 lt_prog_compiler_wl='-Wl,'
6384 lt_prog_compiler_pic='-KPIC'
6385 lt_prog_compiler_static='-Bstatic'
6388 sysv4*MP*)
6389 if test -d /usr/nec ;then
6390 lt_prog_compiler_pic='-Kconform_pic'
6391 lt_prog_compiler_static='-Bstatic'
6395 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6396 lt_prog_compiler_wl='-Wl,'
6397 lt_prog_compiler_pic='-KPIC'
6398 lt_prog_compiler_static='-Bstatic'
6401 unicos*)
6402 lt_prog_compiler_wl='-Wl,'
6403 lt_prog_compiler_can_build_shared=no
6406 uts4*)
6407 lt_prog_compiler_pic='-pic'
6408 lt_prog_compiler_static='-Bstatic'
6412 lt_prog_compiler_can_build_shared=no
6414 esac
6417 case $host_os in
6418 # For platforms which do not support PIC, -DPIC is meaningless:
6419 *djgpp*)
6420 lt_prog_compiler_pic=
6423 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6425 esac
6426 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6427 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6435 # Check to make sure the PIC flag actually works.
6437 if test -n "$lt_prog_compiler_pic"; then
6438 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6439 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6440 if test "${lt_prog_compiler_pic_works+set}" = set; then
6441 echo $ECHO_N "(cached) $ECHO_C" >&6
6442 else
6443 lt_prog_compiler_pic_works=no
6444 ac_outfile=conftest.$ac_objext
6445 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6446 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6447 # Insert the option either (1) after the last *FLAGS variable, or
6448 # (2) before a word containing "conftest.", or (3) at the end.
6449 # Note that $ac_compile itself does not contain backslashes and begins
6450 # with a dollar sign (not a hyphen), so the echo should work correctly.
6451 # The option is referenced via a variable to avoid confusing sed.
6452 lt_compile=`echo "$ac_compile" | $SED \
6453 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6454 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6455 -e 's:$: $lt_compiler_flag:'`
6456 (eval echo "\"\$as_me:6456: $lt_compile\"" >&5)
6457 (eval "$lt_compile" 2>conftest.err)
6458 ac_status=$?
6459 cat conftest.err >&5
6460 echo "$as_me:6460: \$? = $ac_status" >&5
6461 if (exit $ac_status) && test -s "$ac_outfile"; then
6462 # The compiler can only warn and ignore the option if not recognized
6463 # So say no if there are warnings other than the usual output.
6464 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6465 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6466 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6467 lt_prog_compiler_pic_works=yes
6470 $RM conftest*
6473 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6474 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6476 if test x"$lt_prog_compiler_pic_works" = xyes; then
6477 case $lt_prog_compiler_pic in
6478 "" | " "*) ;;
6479 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6480 esac
6481 else
6482 lt_prog_compiler_pic=
6483 lt_prog_compiler_can_build_shared=no
6494 # Check to make sure the static flag actually works.
6496 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6497 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6498 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6499 if test "${lt_prog_compiler_static_works+set}" = set; then
6500 echo $ECHO_N "(cached) $ECHO_C" >&6
6501 else
6502 lt_prog_compiler_static_works=no
6503 save_LDFLAGS="$LDFLAGS"
6504 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6505 echo "$lt_simple_link_test_code" > conftest.$ac_ext
6506 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6507 # The linker can only warn and ignore the option if not recognized
6508 # So say no if there are warnings
6509 if test -s conftest.err; then
6510 # Append any errors to the config.log.
6511 cat conftest.err 1>&5
6512 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6513 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6514 if diff conftest.exp conftest.er2 >/dev/null; then
6515 lt_prog_compiler_static_works=yes
6517 else
6518 lt_prog_compiler_static_works=yes
6521 $RM conftest*
6522 LDFLAGS="$save_LDFLAGS"
6525 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6526 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6528 if test x"$lt_prog_compiler_static_works" = xyes; then
6530 else
6531 lt_prog_compiler_static=
6540 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6541 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6542 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6543 echo $ECHO_N "(cached) $ECHO_C" >&6
6544 else
6545 lt_cv_prog_compiler_c_o=no
6546 $RM -r conftest 2>/dev/null
6547 mkdir conftest
6548 cd conftest
6549 mkdir out
6550 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6552 lt_compiler_flag="-o out/conftest2.$ac_objext"
6553 # Insert the option either (1) after the last *FLAGS variable, or
6554 # (2) before a word containing "conftest.", or (3) at the end.
6555 # Note that $ac_compile itself does not contain backslashes and begins
6556 # with a dollar sign (not a hyphen), so the echo should work correctly.
6557 lt_compile=`echo "$ac_compile" | $SED \
6558 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6559 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6560 -e 's:$: $lt_compiler_flag:'`
6561 (eval echo "\"\$as_me:6561: $lt_compile\"" >&5)
6562 (eval "$lt_compile" 2>out/conftest.err)
6563 ac_status=$?
6564 cat out/conftest.err >&5
6565 echo "$as_me:6565: \$? = $ac_status" >&5
6566 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6567 then
6568 # The compiler can only warn and ignore the option if not recognized
6569 # So say no if there are warnings
6570 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6571 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6572 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6573 lt_cv_prog_compiler_c_o=yes
6576 chmod u+w . 2>&5
6577 $RM conftest*
6578 # SGI C++ compiler will create directory out/ii_files/ for
6579 # template instantiation
6580 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6581 $RM out/* && rmdir out
6582 cd ..
6583 $RM -r conftest
6584 $RM conftest*
6587 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6588 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6595 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6596 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6597 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6598 echo $ECHO_N "(cached) $ECHO_C" >&6
6599 else
6600 lt_cv_prog_compiler_c_o=no
6601 $RM -r conftest 2>/dev/null
6602 mkdir conftest
6603 cd conftest
6604 mkdir out
6605 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6607 lt_compiler_flag="-o out/conftest2.$ac_objext"
6608 # Insert the option either (1) after the last *FLAGS variable, or
6609 # (2) before a word containing "conftest.", or (3) at the end.
6610 # Note that $ac_compile itself does not contain backslashes and begins
6611 # with a dollar sign (not a hyphen), so the echo should work correctly.
6612 lt_compile=`echo "$ac_compile" | $SED \
6613 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6614 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6615 -e 's:$: $lt_compiler_flag:'`
6616 (eval echo "\"\$as_me:6616: $lt_compile\"" >&5)
6617 (eval "$lt_compile" 2>out/conftest.err)
6618 ac_status=$?
6619 cat out/conftest.err >&5
6620 echo "$as_me:6620: \$? = $ac_status" >&5
6621 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6622 then
6623 # The compiler can only warn and ignore the option if not recognized
6624 # So say no if there are warnings
6625 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6626 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6627 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6628 lt_cv_prog_compiler_c_o=yes
6631 chmod u+w . 2>&5
6632 $RM conftest*
6633 # SGI C++ compiler will create directory out/ii_files/ for
6634 # template instantiation
6635 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6636 $RM out/* && rmdir out
6637 cd ..
6638 $RM -r conftest
6639 $RM conftest*
6642 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6643 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6648 hard_links="nottested"
6649 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6650 # do not overwrite the value of need_locks provided by the user
6651 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6652 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6653 hard_links=yes
6654 $RM conftest*
6655 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6656 touch conftest.a
6657 ln conftest.a conftest.b 2>&5 || hard_links=no
6658 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6659 echo "$as_me:$LINENO: result: $hard_links" >&5
6660 echo "${ECHO_T}$hard_links" >&6
6661 if test "$hard_links" = no; then
6662 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6663 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6664 need_locks=warn
6666 else
6667 need_locks=no
6675 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6676 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6678 runpath_var=
6679 allow_undefined_flag=
6680 always_export_symbols=no
6681 archive_cmds=
6682 archive_expsym_cmds=
6683 compiler_needs_object=no
6684 enable_shared_with_static_runtimes=no
6685 export_dynamic_flag_spec=
6686 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6687 hardcode_automatic=no
6688 hardcode_direct=no
6689 hardcode_direct_absolute=no
6690 hardcode_libdir_flag_spec=
6691 hardcode_libdir_flag_spec_ld=
6692 hardcode_libdir_separator=
6693 hardcode_minus_L=no
6694 hardcode_shlibpath_var=unsupported
6695 inherit_rpath=no
6696 link_all_deplibs=unknown
6697 module_cmds=
6698 module_expsym_cmds=
6699 old_archive_from_new_cmds=
6700 old_archive_from_expsyms_cmds=
6701 thread_safe_flag_spec=
6702 whole_archive_flag_spec=
6703 # include_expsyms should be a list of space-separated symbols to be *always*
6704 # included in the symbol list
6705 include_expsyms=
6706 # exclude_expsyms can be an extended regexp of symbols to exclude
6707 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6708 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6709 # as well as any symbol that contains `d'.
6710 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6711 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6712 # platforms (ab)use it in PIC code, but their linkers get confused if
6713 # the symbol is explicitly referenced. Since portable code cannot
6714 # rely on this symbol name, it's probably fine to never include it in
6715 # preloaded symbol tables.
6716 extract_expsyms_cmds=
6718 case $host_os in
6719 cygwin* | mingw* | pw32*)
6720 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6721 # When not using gcc, we currently assume that we are using
6722 # Microsoft Visual C++.
6723 if test "$GCC" != yes; then
6724 with_gnu_ld=no
6727 interix*)
6728 # we just hope/assume this is gcc and not c89 (= MSVC++)
6729 with_gnu_ld=yes
6731 openbsd*)
6732 with_gnu_ld=no
6734 esac
6736 ld_shlibs=yes
6737 if test "$with_gnu_ld" = yes; then
6738 # If archive_cmds runs LD, not CC, wlarc should be empty
6739 wlarc='${wl}'
6741 # Set some defaults for GNU ld with shared library support. These
6742 # are reset later if shared libraries are not supported. Putting them
6743 # here allows them to be overridden if necessary.
6744 runpath_var=LD_RUN_PATH
6745 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6746 export_dynamic_flag_spec='${wl}--export-dynamic'
6747 # ancient GNU ld didn't support --whole-archive et. al.
6748 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
6749 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6750 else
6751 whole_archive_flag_spec=
6753 supports_anon_versioning=no
6754 case `$LD -v 2>&1` in
6755 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6756 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6757 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6758 *\ 2.11.*) ;; # other 2.11 versions
6759 *) supports_anon_versioning=yes ;;
6760 esac
6762 # See if GNU ld supports shared libraries.
6763 case $host_os in
6764 aix[3-9]*)
6765 # On AIX/PPC, the GNU linker is very broken
6766 if test "$host_cpu" != ia64; then
6767 ld_shlibs=no
6768 cat <<_LT_EOF 1>&2
6770 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6771 *** to be unable to reliably create shared libraries on AIX.
6772 *** Therefore, libtool is disabling shared libraries support. If you
6773 *** really care for shared libraries, you may want to modify your PATH
6774 *** so that a non-GNU linker is found, and then restart.
6776 _LT_EOF
6780 amigaos*)
6781 if test "$host_cpu" = m68k; then
6782 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)'
6783 hardcode_libdir_flag_spec='-L$libdir'
6784 hardcode_minus_L=yes
6787 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6788 # that the semantics of dynamic libraries on AmigaOS, at least up
6789 # to version 4, is to share data among multiple programs linked
6790 # with the same dynamic library. Since this doesn't match the
6791 # behavior of shared libraries on other platforms, we can't use
6792 # them.
6793 ld_shlibs=no
6796 beos*)
6797 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6798 allow_undefined_flag=unsupported
6799 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6800 # support --undefined. This deserves some investigation. FIXME
6801 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6802 else
6803 ld_shlibs=no
6807 cygwin* | mingw* | pw32*)
6808 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6809 # as there is no search path for DLLs.
6810 hardcode_libdir_flag_spec='-L$libdir'
6811 allow_undefined_flag=unsupported
6812 always_export_symbols=no
6813 enable_shared_with_static_runtimes=yes
6814 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
6816 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6817 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6818 # If the export-symbols file already is a .def file (1st line
6819 # is EXPORTS), use it as is; otherwise, prepend...
6820 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6821 cp $export_symbols $output_objdir/$soname.def;
6822 else
6823 echo EXPORTS > $output_objdir/$soname.def;
6824 cat $export_symbols >> $output_objdir/$soname.def;
6826 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6827 else
6828 ld_shlibs=no
6832 interix[3-9]*)
6833 hardcode_direct=no
6834 hardcode_shlibpath_var=no
6835 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6836 export_dynamic_flag_spec='${wl}-E'
6837 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6838 # Instead, shared libraries are loaded at an image base (0x10000000 by
6839 # default) and relocated if they conflict, which is a slow very memory
6840 # consuming and fragmenting process. To avoid this, we pick a random,
6841 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6842 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6843 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6844 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'
6847 gnu* | linux* | tpf* | k*bsd*-gnu)
6848 tmp_diet=no
6849 if test "$host_os" = linux-dietlibc; then
6850 case $cc_basename in
6851 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
6852 esac
6854 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
6855 && test "$tmp_diet" = no
6856 then
6857 tmp_addflag=
6858 case $cc_basename,$host_cpu in
6859 pgcc*) # Portland Group C compiler
6860 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'
6861 tmp_addflag=' $pic_flag'
6863 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
6864 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'
6865 tmp_addflag=' $pic_flag -Mnomain' ;;
6866 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6867 tmp_addflag=' -i_dynamic' ;;
6868 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6869 tmp_addflag=' -i_dynamic -nofor_main' ;;
6870 ifc* | ifort*) # Intel Fortran compiler
6871 tmp_addflag=' -nofor_main' ;;
6872 esac
6873 case `$CC -V 2>&1 | sed 5q` in
6874 *Sun\ C*) # Sun C 5.9
6875 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'
6876 compiler_needs_object=yes
6877 tmp_sharedflag='-G' ;;
6878 *Sun\ F*) # Sun Fortran 8.3
6879 tmp_sharedflag='-G' ;;
6881 tmp_sharedflag='-shared' ;;
6882 esac
6883 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6885 if test "x$supports_anon_versioning" = xyes; then
6886 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
6887 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6888 echo "local: *; };" >> $output_objdir/$libname.ver~
6889 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6891 else
6892 ld_shlibs=no
6896 netbsd*)
6897 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6898 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6899 wlarc=
6900 else
6901 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6902 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6906 solaris*)
6907 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
6908 ld_shlibs=no
6909 cat <<_LT_EOF 1>&2
6911 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6912 *** create shared libraries on Solaris systems. Therefore, libtool
6913 *** is disabling shared libraries support. We urge you to upgrade GNU
6914 *** binutils to release 2.9.1 or newer. Another option is to modify
6915 *** your PATH or compiler configuration so that the native linker is
6916 *** used, and then restart.
6918 _LT_EOF
6919 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6920 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6921 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6922 else
6923 ld_shlibs=no
6927 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6928 case `$LD -v 2>&1` in
6929 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
6930 ld_shlibs=no
6931 cat <<_LT_EOF 1>&2
6933 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
6934 *** reliably create shared libraries on SCO systems. Therefore, libtool
6935 *** is disabling shared libraries support. We urge you to upgrade GNU
6936 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
6937 *** your PATH or compiler configuration so that the native linker is
6938 *** used, and then restart.
6940 _LT_EOF
6943 # For security reasons, it is highly recommended that you always
6944 # use absolute paths for naming shared libraries, and exclude the
6945 # DT_RUNPATH tag from executables and libraries. But doing so
6946 # requires that you compile everything twice, which is a pain.
6947 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6948 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6949 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6950 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6951 else
6952 ld_shlibs=no
6955 esac
6958 sunos4*)
6959 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6960 wlarc=
6961 hardcode_direct=yes
6962 hardcode_shlibpath_var=no
6966 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6967 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6968 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6969 else
6970 ld_shlibs=no
6973 esac
6975 if test "$ld_shlibs" = no; then
6976 runpath_var=
6977 hardcode_libdir_flag_spec=
6978 export_dynamic_flag_spec=
6979 whole_archive_flag_spec=
6981 else
6982 # PORTME fill in a description of your system's linker (not GNU ld)
6983 case $host_os in
6984 aix3*)
6985 allow_undefined_flag=unsupported
6986 always_export_symbols=yes
6987 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'
6988 # Note: this linker hardcodes the directories in LIBPATH if there
6989 # are no directories specified by -L.
6990 hardcode_minus_L=yes
6991 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
6992 # Neither direct hardcoding nor static linking is supported with a
6993 # broken collect2.
6994 hardcode_direct=unsupported
6998 aix[4-9]*)
6999 if test "$host_cpu" = ia64; then
7000 # On IA64, the linker does run time linking by default, so we don't
7001 # have to do anything special.
7002 aix_use_runtimelinking=no
7003 exp_sym_flag='-Bexport'
7004 no_entry_flag=""
7005 else
7006 # If we're using GNU nm, then we don't want the "-C" option.
7007 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7008 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7009 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'
7010 else
7011 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'
7013 aix_use_runtimelinking=no
7015 # Test if we are trying to use run time linking or normal
7016 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7017 # need to do runtime linking.
7018 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7019 for ld_flag in $LDFLAGS; do
7020 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7021 aix_use_runtimelinking=yes
7022 break
7024 done
7026 esac
7028 exp_sym_flag='-bexport'
7029 no_entry_flag='-bnoentry'
7032 # When large executables or shared objects are built, AIX ld can
7033 # have problems creating the table of contents. If linking a library
7034 # or program results in "error TOC overflow" add -mminimal-toc to
7035 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7036 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7038 archive_cmds=''
7039 hardcode_direct=yes
7040 hardcode_direct_absolute=yes
7041 hardcode_libdir_separator=':'
7042 link_all_deplibs=yes
7043 file_list_spec='${wl}-f,'
7045 if test "$GCC" = yes; then
7046 case $host_os in aix4.[012]|aix4.[012].*)
7047 # We only want to do this on AIX 4.2 and lower, the check
7048 # below for broken collect2 doesn't work under 4.3+
7049 collect2name=`${CC} -print-prog-name=collect2`
7050 if test -f "$collect2name" &&
7051 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7052 then
7053 # We have reworked collect2
7055 else
7056 # We have old collect2
7057 hardcode_direct=unsupported
7058 # It fails to find uninstalled libraries when the uninstalled
7059 # path is not listed in the libpath. Setting hardcode_minus_L
7060 # to unsupported forces relinking
7061 hardcode_minus_L=yes
7062 hardcode_libdir_flag_spec='-L$libdir'
7063 hardcode_libdir_separator=
7066 esac
7067 shared_flag='-shared'
7068 if test "$aix_use_runtimelinking" = yes; then
7069 shared_flag="$shared_flag "'${wl}-G'
7071 else
7072 # not using gcc
7073 if test "$host_cpu" = ia64; then
7074 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7075 # chokes on -Wl,-G. The following line is correct:
7076 shared_flag='-G'
7077 else
7078 if test "$aix_use_runtimelinking" = yes; then
7079 shared_flag='${wl}-G'
7080 else
7081 shared_flag='${wl}-bM:SRE'
7086 # It seems that -bexpall does not export symbols beginning with
7087 # underscore (_), so it is better to generate a list of symbols to export.
7088 always_export_symbols=yes
7089 if test "$aix_use_runtimelinking" = yes; then
7090 # Warning - without using the other runtime loading flags (-brtl),
7091 # -berok will link without error, but may produce a broken library.
7092 allow_undefined_flag='-berok'
7093 # Determine the default libpath from the value encoded in an
7094 # empty executable.
7095 if test x$gcc_no_link = xyes; then
7096 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7097 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7098 { (exit 1); exit 1; }; }
7100 cat >conftest.$ac_ext <<_ACEOF
7101 /* confdefs.h. */
7102 _ACEOF
7103 cat confdefs.h >>conftest.$ac_ext
7104 cat >>conftest.$ac_ext <<_ACEOF
7105 /* end confdefs.h. */
7108 main ()
7112 return 0;
7114 _ACEOF
7115 rm -f conftest.$ac_objext conftest$ac_exeext
7116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7117 (eval $ac_link) 2>conftest.er1
7118 ac_status=$?
7119 grep -v '^ *+' conftest.er1 >conftest.err
7120 rm -f conftest.er1
7121 cat conftest.err >&5
7122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7123 (exit $ac_status); } &&
7124 { ac_try='test -z "$ac_c_werror_flag"
7125 || test ! -s conftest.err'
7126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7127 (eval $ac_try) 2>&5
7128 ac_status=$?
7129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7130 (exit $ac_status); }; } &&
7131 { ac_try='test -s conftest$ac_exeext'
7132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7133 (eval $ac_try) 2>&5
7134 ac_status=$?
7135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7136 (exit $ac_status); }; }; then
7138 lt_aix_libpath_sed='
7139 /Import File Strings/,/^$/ {
7140 /^0/ {
7141 s/^0 *\(.*\)$/\1/
7145 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7146 # Check for a 64-bit object if we didn't find anything.
7147 if test -z "$aix_libpath"; then
7148 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7150 else
7151 echo "$as_me: failed program was:" >&5
7152 sed 's/^/| /' conftest.$ac_ext >&5
7155 rm -f conftest.err conftest.$ac_objext \
7156 conftest$ac_exeext conftest.$ac_ext
7157 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7159 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7160 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"
7161 else
7162 if test "$host_cpu" = ia64; then
7163 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7164 allow_undefined_flag="-z nodefs"
7165 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"
7166 else
7167 # Determine the default libpath from the value encoded in an
7168 # empty executable.
7169 if test x$gcc_no_link = xyes; then
7170 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7171 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7172 { (exit 1); exit 1; }; }
7174 cat >conftest.$ac_ext <<_ACEOF
7175 /* confdefs.h. */
7176 _ACEOF
7177 cat confdefs.h >>conftest.$ac_ext
7178 cat >>conftest.$ac_ext <<_ACEOF
7179 /* end confdefs.h. */
7182 main ()
7186 return 0;
7188 _ACEOF
7189 rm -f conftest.$ac_objext conftest$ac_exeext
7190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7191 (eval $ac_link) 2>conftest.er1
7192 ac_status=$?
7193 grep -v '^ *+' conftest.er1 >conftest.err
7194 rm -f conftest.er1
7195 cat conftest.err >&5
7196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7197 (exit $ac_status); } &&
7198 { ac_try='test -z "$ac_c_werror_flag"
7199 || test ! -s conftest.err'
7200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7201 (eval $ac_try) 2>&5
7202 ac_status=$?
7203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204 (exit $ac_status); }; } &&
7205 { ac_try='test -s conftest$ac_exeext'
7206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7207 (eval $ac_try) 2>&5
7208 ac_status=$?
7209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7210 (exit $ac_status); }; }; then
7212 lt_aix_libpath_sed='
7213 /Import File Strings/,/^$/ {
7214 /^0/ {
7215 s/^0 *\(.*\)$/\1/
7219 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7220 # Check for a 64-bit object if we didn't find anything.
7221 if test -z "$aix_libpath"; then
7222 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7224 else
7225 echo "$as_me: failed program was:" >&5
7226 sed 's/^/| /' conftest.$ac_ext >&5
7229 rm -f conftest.err conftest.$ac_objext \
7230 conftest$ac_exeext conftest.$ac_ext
7231 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7233 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7234 # Warning - without using the other run time loading flags,
7235 # -berok will link without error, but may produce a broken library.
7236 no_undefined_flag=' ${wl}-bernotok'
7237 allow_undefined_flag=' ${wl}-berok'
7238 # Exported symbols can be pulled into shared objects from archives
7239 whole_archive_flag_spec='$convenience'
7240 archive_cmds_need_lc=yes
7241 # This is similar to how AIX traditionally builds its shared libraries.
7242 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'
7247 amigaos*)
7248 if test "$host_cpu" = m68k; then
7249 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)'
7250 hardcode_libdir_flag_spec='-L$libdir'
7251 hardcode_minus_L=yes
7253 # see comment about different semantics on the GNU ld section
7254 ld_shlibs=no
7257 bsdi[45]*)
7258 export_dynamic_flag_spec=-rdynamic
7261 cygwin* | mingw* | pw32*)
7262 # When not using gcc, we currently assume that we are using
7263 # Microsoft Visual C++.
7264 # hardcode_libdir_flag_spec is actually meaningless, as there is
7265 # no search path for DLLs.
7266 hardcode_libdir_flag_spec=' '
7267 allow_undefined_flag=unsupported
7268 # Tell ltmain to make .lib files, not .a files.
7269 libext=lib
7270 # Tell ltmain to make .dll files, not .so files.
7271 shrext_cmds=".dll"
7272 # FIXME: Setting linknames here is a bad hack.
7273 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7274 # The linker will automatically build a .lib file if we build a DLL.
7275 old_archive_from_new_cmds='true'
7276 # FIXME: Should let the user specify the lib program.
7277 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7278 fix_srcfile_path='`cygpath -w "$srcfile"`'
7279 enable_shared_with_static_runtimes=yes
7282 darwin* | rhapsody*)
7283 case $host_os in
7284 rhapsody* | darwin1.[012])
7285 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7287 *) # Darwin 1.3 on
7288 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7289 10.[012])
7290 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7292 10.*)
7293 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7295 esac
7297 esac
7298 archive_cmds_need_lc=no
7299 hardcode_direct=no
7300 hardcode_automatic=yes
7301 hardcode_shlibpath_var=unsupported
7302 whole_archive_flag_spec=''
7303 link_all_deplibs=yes
7304 if test "$GCC" = yes ; then
7305 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7306 echo $ECHO_N "(cached) $ECHO_C" >&6
7307 else
7308 lt_cv_apple_cc_single_mod=no
7309 if test -z "${LT_MULTI_MODULE}"; then
7310 # By default we will add the -single_module flag. You can override
7311 # by either setting the environment variable LT_MULTI_MODULE
7312 # non-empty at configure time, or by adding -multi-module to the
7313 # link flags.
7314 echo "int foo(void){return 1;}" > conftest.c
7315 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7316 -dynamiclib ${wl}-single_module conftest.c
7317 if test -f libconftest.dylib; then
7318 lt_cv_apple_cc_single_mod=yes
7319 rm libconftest.dylib
7321 rm conftest.$ac_ext
7325 output_verbose_link_cmd=echo
7326 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
7327 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7328 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}'
7329 else
7330 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7331 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}'
7333 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7334 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}'
7335 else
7336 case $cc_basename in
7337 xlc*)
7338 output_verbose_link_cmd=echo
7339 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
7340 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7341 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7342 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}'
7343 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}'
7346 ld_shlibs=no
7348 esac
7352 dgux*)
7353 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7354 hardcode_libdir_flag_spec='-L$libdir'
7355 hardcode_shlibpath_var=no
7358 freebsd1*)
7359 ld_shlibs=no
7362 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7363 # support. Future versions do this automatically, but an explicit c++rt0.o
7364 # does not break anything, and helps significantly (at the cost of a little
7365 # extra space).
7366 freebsd2.2*)
7367 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7368 hardcode_libdir_flag_spec='-R$libdir'
7369 hardcode_direct=yes
7370 hardcode_shlibpath_var=no
7373 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7374 freebsd2*)
7375 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7376 hardcode_direct=yes
7377 hardcode_minus_L=yes
7378 hardcode_shlibpath_var=no
7381 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7382 freebsd* | dragonfly*)
7383 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7384 hardcode_libdir_flag_spec='-R$libdir'
7385 hardcode_direct=yes
7386 hardcode_shlibpath_var=no
7389 hpux9*)
7390 if test "$GCC" = yes; then
7391 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'
7392 else
7393 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'
7395 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7396 hardcode_libdir_separator=:
7397 hardcode_direct=yes
7399 # hardcode_minus_L: Not really in the search PATH,
7400 # but as the default location of the library.
7401 hardcode_minus_L=yes
7402 export_dynamic_flag_spec='${wl}-E'
7405 hpux10*)
7406 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7407 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7408 else
7409 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7411 if test "$with_gnu_ld" = no; then
7412 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7413 hardcode_libdir_flag_spec_ld='+b $libdir'
7414 hardcode_libdir_separator=:
7415 hardcode_direct=yes
7416 hardcode_direct_absolute=yes
7417 export_dynamic_flag_spec='${wl}-E'
7418 # hardcode_minus_L: Not really in the search PATH,
7419 # but as the default location of the library.
7420 hardcode_minus_L=yes
7424 hpux11*)
7425 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7426 case $host_cpu in
7427 hppa*64*)
7428 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7430 ia64*)
7431 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7434 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7436 esac
7437 else
7438 case $host_cpu in
7439 hppa*64*)
7440 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7442 ia64*)
7443 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7446 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7448 esac
7450 if test "$with_gnu_ld" = no; then
7451 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7452 hardcode_libdir_separator=:
7454 case $host_cpu in
7455 hppa*64*|ia64*)
7456 hardcode_direct=no
7457 hardcode_shlibpath_var=no
7460 hardcode_direct=yes
7461 hardcode_direct_absolute=yes
7462 export_dynamic_flag_spec='${wl}-E'
7464 # hardcode_minus_L: Not really in the search PATH,
7465 # but as the default location of the library.
7466 hardcode_minus_L=yes
7468 esac
7472 irix5* | irix6* | nonstopux*)
7473 if test "$GCC" = yes; then
7474 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'
7475 # Try to use the -exported_symbol ld option, if it does not
7476 # work, assume that -exports_file does not work either and
7477 # implicitly export all symbols.
7478 save_LDFLAGS="$LDFLAGS"
7479 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
7480 if test x$gcc_no_link = xyes; then
7481 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7482 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7483 { (exit 1); exit 1; }; }
7485 cat >conftest.$ac_ext <<_ACEOF
7486 int foo(void) {}
7487 _ACEOF
7488 rm -f conftest.$ac_objext conftest$ac_exeext
7489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7490 (eval $ac_link) 2>conftest.er1
7491 ac_status=$?
7492 grep -v '^ *+' conftest.er1 >conftest.err
7493 rm -f conftest.er1
7494 cat conftest.err >&5
7495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7496 (exit $ac_status); } &&
7497 { ac_try='test -z "$ac_c_werror_flag"
7498 || test ! -s conftest.err'
7499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7500 (eval $ac_try) 2>&5
7501 ac_status=$?
7502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7503 (exit $ac_status); }; } &&
7504 { ac_try='test -s conftest$ac_exeext'
7505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7506 (eval $ac_try) 2>&5
7507 ac_status=$?
7508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7509 (exit $ac_status); }; }; then
7510 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'
7512 else
7513 echo "$as_me: failed program was:" >&5
7514 sed 's/^/| /' conftest.$ac_ext >&5
7517 rm -f conftest.err conftest.$ac_objext \
7518 conftest$ac_exeext conftest.$ac_ext
7519 LDFLAGS="$save_LDFLAGS"
7520 else
7521 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'
7522 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'
7524 archive_cmds_need_lc='no'
7525 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7526 hardcode_libdir_separator=:
7527 inherit_rpath=yes
7528 link_all_deplibs=yes
7531 netbsd*)
7532 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7533 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7534 else
7535 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7537 hardcode_libdir_flag_spec='-R$libdir'
7538 hardcode_direct=yes
7539 hardcode_shlibpath_var=no
7542 newsos6)
7543 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7544 hardcode_direct=yes
7545 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7546 hardcode_libdir_separator=:
7547 hardcode_shlibpath_var=no
7550 *nto* | *qnx*)
7553 openbsd*)
7554 hardcode_direct=yes
7555 hardcode_shlibpath_var=no
7556 hardcode_direct_absolute=yes
7557 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7558 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7559 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7560 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7561 export_dynamic_flag_spec='${wl}-E'
7562 else
7563 case $host_os in
7564 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7565 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7566 hardcode_libdir_flag_spec='-R$libdir'
7569 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7570 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7572 esac
7576 os2*)
7577 hardcode_libdir_flag_spec='-L$libdir'
7578 hardcode_minus_L=yes
7579 allow_undefined_flag=unsupported
7580 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'
7581 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7584 osf3*)
7585 if test "$GCC" = yes; then
7586 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7587 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'
7588 else
7589 allow_undefined_flag=' -expect_unresolved \*'
7590 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'
7592 archive_cmds_need_lc='no'
7593 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7594 hardcode_libdir_separator=:
7597 osf4* | osf5*) # as osf3* with the addition of -msym flag
7598 if test "$GCC" = yes; then
7599 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7600 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'
7601 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7602 else
7603 allow_undefined_flag=' -expect_unresolved \*'
7604 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'
7605 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~
7606 $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'
7608 # Both c and cxx compiler support -rpath directly
7609 hardcode_libdir_flag_spec='-rpath $libdir'
7611 archive_cmds_need_lc='no'
7612 hardcode_libdir_separator=:
7615 solaris*)
7616 no_undefined_flag=' -z defs'
7617 if test "$GCC" = yes; then
7618 wlarc='${wl}'
7619 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7620 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7621 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7622 else
7623 case `$CC -V 2>&1` in
7624 *"Compilers 5.0"*)
7625 wlarc=''
7626 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7627 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7628 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
7631 wlarc='${wl}'
7632 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
7633 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7634 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7636 esac
7638 hardcode_libdir_flag_spec='-R$libdir'
7639 hardcode_shlibpath_var=no
7640 case $host_os in
7641 solaris2.[0-5] | solaris2.[0-5].*) ;;
7643 # The compiler driver will combine and reorder linker options,
7644 # but understands `-z linker_flag'. GCC discards it without `$wl',
7645 # but is careful enough not to reorder.
7646 # Supported since Solaris 2.6 (maybe 2.5.1?)
7647 if test "$GCC" = yes; then
7648 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7649 else
7650 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
7653 esac
7654 link_all_deplibs=yes
7657 sunos4*)
7658 if test "x$host_vendor" = xsequent; then
7659 # Use $CC to link under sequent, because it throws in some extra .o
7660 # files that make .init and .fini sections work.
7661 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7662 else
7663 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7665 hardcode_libdir_flag_spec='-L$libdir'
7666 hardcode_direct=yes
7667 hardcode_minus_L=yes
7668 hardcode_shlibpath_var=no
7671 sysv4)
7672 case $host_vendor in
7673 sni)
7674 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7675 hardcode_direct=yes # is this really true???
7677 siemens)
7678 ## LD is ld it makes a PLAMLIB
7679 ## CC just makes a GrossModule.
7680 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7681 reload_cmds='$CC -r -o $output$reload_objs'
7682 hardcode_direct=no
7684 motorola)
7685 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7686 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7688 esac
7689 runpath_var='LD_RUN_PATH'
7690 hardcode_shlibpath_var=no
7693 sysv4.3*)
7694 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7695 hardcode_shlibpath_var=no
7696 export_dynamic_flag_spec='-Bexport'
7699 sysv4*MP*)
7700 if test -d /usr/nec; then
7701 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7702 hardcode_shlibpath_var=no
7703 runpath_var=LD_RUN_PATH
7704 hardcode_runpath_var=yes
7705 ld_shlibs=yes
7709 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
7710 no_undefined_flag='${wl}-z,text'
7711 archive_cmds_need_lc=no
7712 hardcode_shlibpath_var=no
7713 runpath_var='LD_RUN_PATH'
7715 if test "$GCC" = yes; then
7716 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7717 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7718 else
7719 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7720 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7724 sysv5* | sco3.2v5* | sco5v6*)
7725 # Note: We can NOT use -z defs as we might desire, because we do not
7726 # link with -lc, and that would cause any symbols used from libc to
7727 # always be unresolved, which means just about no library would
7728 # ever link correctly. If we're not using GNU ld we use -z text
7729 # though, which does catch some bad symbols but isn't as heavy-handed
7730 # as -z defs.
7731 no_undefined_flag='${wl}-z,text'
7732 allow_undefined_flag='${wl}-z,nodefs'
7733 archive_cmds_need_lc=no
7734 hardcode_shlibpath_var=no
7735 hardcode_libdir_flag_spec='${wl}-R,$libdir'
7736 hardcode_libdir_separator=':'
7737 link_all_deplibs=yes
7738 export_dynamic_flag_spec='${wl}-Bexport'
7739 runpath_var='LD_RUN_PATH'
7741 if test "$GCC" = yes; then
7742 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7743 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7744 else
7745 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7746 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7750 uts4*)
7751 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7752 hardcode_libdir_flag_spec='-L$libdir'
7753 hardcode_shlibpath_var=no
7757 ld_shlibs=no
7759 esac
7761 if test x$host_vendor = xsni; then
7762 case $host in
7763 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7764 export_dynamic_flag_spec='${wl}-Blargedynsym'
7766 esac
7770 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7771 echo "${ECHO_T}$ld_shlibs" >&6
7772 test "$ld_shlibs" = no && can_build_shared=no
7774 with_gnu_ld=$with_gnu_ld
7791 # Do we need to explicitly link libc?
7793 case "x$archive_cmds_need_lc" in
7794 x|xyes)
7795 # Assume -lc should be added
7796 archive_cmds_need_lc=yes
7798 if test "$enable_shared" = yes && test "$GCC" = yes; then
7799 case $archive_cmds in
7800 *'~'*)
7801 # FIXME: we may have to deal with multi-command sequences.
7803 '$CC '*)
7804 # Test whether the compiler implicitly links with -lc since on some
7805 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7806 # to ld, don't add -lc before -lgcc.
7807 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7808 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7809 $RM conftest*
7810 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7813 (eval $ac_compile) 2>&5
7814 ac_status=$?
7815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7816 (exit $ac_status); } 2>conftest.err; then
7817 soname=conftest
7818 lib=conftest
7819 libobjs=conftest.$ac_objext
7820 deplibs=
7821 wl=$lt_prog_compiler_wl
7822 pic_flag=$lt_prog_compiler_pic
7823 compiler_flags=-v
7824 linker_flags=-v
7825 verstring=
7826 output_objdir=.
7827 libname=conftest
7828 lt_save_allow_undefined_flag=$allow_undefined_flag
7829 allow_undefined_flag=
7830 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
7831 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
7832 ac_status=$?
7833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7834 (exit $ac_status); }
7835 then
7836 archive_cmds_need_lc=no
7837 else
7838 archive_cmds_need_lc=yes
7840 allow_undefined_flag=$lt_save_allow_undefined_flag
7841 else
7842 cat conftest.err 1>&5
7844 $RM conftest*
7845 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7846 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7848 esac
7851 esac
8009 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8010 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8011 withGCC=$GCC
8012 if test "$withGCC" = yes; then
8013 case $host_os in
8014 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8015 *) lt_awk_arg="/^libraries:/" ;;
8016 esac
8017 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8018 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8019 # if the path contains ";" then we assume it to be the separator
8020 # otherwise default to the standard path separator (i.e. ":") - it is
8021 # assumed that no part of a normal pathname contains ";" but that should
8022 # okay in the real world where ";" in dirpaths is itself problematic.
8023 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8024 else
8025 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8027 # Ok, now we have the path, separated by spaces, we can step through it
8028 # and add multilib dir if necessary.
8029 lt_tmp_lt_search_path_spec=
8030 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8031 for lt_sys_path in $lt_search_path_spec; do
8032 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8033 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8034 else
8035 test -d "$lt_sys_path" && \
8036 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8038 done
8039 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8040 BEGIN {RS=" "; FS="/|\n";} {
8041 lt_foo="";
8042 lt_count=0;
8043 for (lt_i = NF; lt_i > 0; lt_i--) {
8044 if ($lt_i != "" && $lt_i != ".") {
8045 if ($lt_i == "..") {
8046 lt_count++;
8047 } else {
8048 if (lt_count == 0) {
8049 lt_foo="/" $lt_i lt_foo;
8050 } else {
8051 lt_count--;
8056 if (lt_foo != "") { lt_freq[lt_foo]++; }
8057 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8059 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8060 else
8061 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8063 library_names_spec=
8064 libname_spec='lib$name'
8065 soname_spec=
8066 shrext_cmds=".so"
8067 postinstall_cmds=
8068 postuninstall_cmds=
8069 finish_cmds=
8070 finish_eval=
8071 shlibpath_var=
8072 shlibpath_overrides_runpath=unknown
8073 version_type=none
8074 dynamic_linker="$host_os ld.so"
8075 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8076 need_lib_prefix=unknown
8077 hardcode_into_libs=no
8079 # when you set need_version to no, make sure it does not cause -set_version
8080 # flags to be left without arguments
8081 need_version=unknown
8083 case $host_os in
8084 aix3*)
8085 version_type=linux
8086 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8087 shlibpath_var=LIBPATH
8089 # AIX 3 has no versioning support, so we append a major version to the name.
8090 soname_spec='${libname}${release}${shared_ext}$major'
8093 aix[4-9]*)
8094 version_type=linux
8095 need_lib_prefix=no
8096 need_version=no
8097 hardcode_into_libs=yes
8098 if test "$host_cpu" = ia64; then
8099 # AIX 5 supports IA64
8100 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8101 shlibpath_var=LD_LIBRARY_PATH
8102 else
8103 # With GCC up to 2.95.x, collect2 would create an import file
8104 # for dependence libraries. The import file would start with
8105 # the line `#! .'. This would cause the generated library to
8106 # depend on `.', always an invalid library. This was fixed in
8107 # development snapshots of GCC prior to 3.0.
8108 case $host_os in
8109 aix4 | aix4.[01] | aix4.[01].*)
8110 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8111 echo ' yes '
8112 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8114 else
8115 can_build_shared=no
8118 esac
8119 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8120 # soname into executable. Probably we can add versioning support to
8121 # collect2, so additional links can be useful in future.
8122 if test "$aix_use_runtimelinking" = yes; then
8123 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8124 # instead of lib<name>.a to let people know that these are not
8125 # typical AIX shared libraries.
8126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8127 else
8128 # We preserve .a as extension for shared libraries through AIX4.2
8129 # and later when we are not doing run time linking.
8130 library_names_spec='${libname}${release}.a $libname.a'
8131 soname_spec='${libname}${release}${shared_ext}$major'
8133 shlibpath_var=LIBPATH
8137 amigaos*)
8138 if test "$host_cpu" = m68k; then
8139 library_names_spec='$libname.ixlibrary $libname.a'
8140 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8141 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'
8142 else
8143 dynamic_linker=no
8147 beos*)
8148 library_names_spec='${libname}${shared_ext}'
8149 dynamic_linker="$host_os ld.so"
8150 shlibpath_var=LIBRARY_PATH
8153 bsdi[45]*)
8154 version_type=linux
8155 need_version=no
8156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8157 soname_spec='${libname}${release}${shared_ext}$major'
8158 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8159 shlibpath_var=LD_LIBRARY_PATH
8160 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8161 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8162 # the default ld.so.conf also contains /usr/contrib/lib and
8163 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8164 # libtool to hard-code these into programs
8167 cygwin* | mingw* | pw32*)
8168 version_type=windows
8169 shrext_cmds=".dll"
8170 need_version=no
8171 need_lib_prefix=no
8173 case $withGCC,$host_os in
8174 yes,cygwin* | yes,mingw* | yes,pw32*)
8175 library_names_spec='$libname.dll.a'
8176 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8177 postinstall_cmds='base_file=`basename \${file}`~
8178 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8179 dldir=$destdir/`dirname \$dlpath`~
8180 test -d \$dldir || mkdir -p \$dldir~
8181 $install_prog $dir/$dlname \$dldir/$dlname~
8182 chmod a+x \$dldir/$dlname~
8183 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8184 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8186 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8187 dlpath=$dir/\$dldll~
8188 $RM \$dlpath'
8189 shlibpath_overrides_runpath=yes
8191 case $host_os in
8192 cygwin*)
8193 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8194 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8195 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8197 mingw*)
8198 # MinGW DLLs use traditional 'lib' prefix
8199 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8200 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8201 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8202 # It is most probably a Windows format PATH printed by
8203 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8204 # path with ; separators, and with drive letters. We can handle the
8205 # drive letters (cygwin fileutils understands them), so leave them,
8206 # especially as we might pass files found there to a mingw objdump,
8207 # which wouldn't understand a cygwinified path. Ahh.
8208 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8209 else
8210 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8213 pw32*)
8214 # pw32 DLLs use 'pw' prefix rather than 'lib'
8215 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8217 esac
8221 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8223 esac
8224 dynamic_linker='Win32 ld.exe'
8225 # FIXME: first we should search . and the directory the executable is in
8226 shlibpath_var=PATH
8229 darwin* | rhapsody*)
8230 dynamic_linker="$host_os dyld"
8231 version_type=darwin
8232 need_lib_prefix=no
8233 need_version=no
8234 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8235 soname_spec='${libname}${release}${major}$shared_ext'
8236 shlibpath_overrides_runpath=yes
8237 shlibpath_var=DYLD_LIBRARY_PATH
8238 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8240 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8241 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8244 dgux*)
8245 version_type=linux
8246 need_lib_prefix=no
8247 need_version=no
8248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8249 soname_spec='${libname}${release}${shared_ext}$major'
8250 shlibpath_var=LD_LIBRARY_PATH
8253 freebsd1*)
8254 dynamic_linker=no
8257 freebsd* | dragonfly*)
8258 # DragonFly does not have aout. When/if they implement a new
8259 # versioning mechanism, adjust this.
8260 if test -x /usr/bin/objformat; then
8261 objformat=`/usr/bin/objformat`
8262 else
8263 case $host_os in
8264 freebsd[123]*) objformat=aout ;;
8265 *) objformat=elf ;;
8266 esac
8268 version_type=freebsd-$objformat
8269 case $version_type in
8270 freebsd-elf*)
8271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8272 need_version=no
8273 need_lib_prefix=no
8275 freebsd-*)
8276 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8277 need_version=yes
8279 esac
8280 shlibpath_var=LD_LIBRARY_PATH
8281 case $host_os in
8282 freebsd2*)
8283 shlibpath_overrides_runpath=yes
8285 freebsd3.[01]* | freebsdelf3.[01]*)
8286 shlibpath_overrides_runpath=yes
8287 hardcode_into_libs=yes
8289 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8290 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8291 shlibpath_overrides_runpath=no
8292 hardcode_into_libs=yes
8294 *) # from 4.6 on, and DragonFly
8295 shlibpath_overrides_runpath=yes
8296 hardcode_into_libs=yes
8298 esac
8301 gnu*)
8302 version_type=linux
8303 need_lib_prefix=no
8304 need_version=no
8305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8306 soname_spec='${libname}${release}${shared_ext}$major'
8307 shlibpath_var=LD_LIBRARY_PATH
8308 hardcode_into_libs=yes
8311 hpux9* | hpux10* | hpux11*)
8312 # Give a soname corresponding to the major version so that dld.sl refuses to
8313 # link against other versions.
8314 version_type=sunos
8315 need_lib_prefix=no
8316 need_version=no
8317 case $host_cpu in
8318 ia64*)
8319 shrext_cmds='.so'
8320 hardcode_into_libs=yes
8321 dynamic_linker="$host_os dld.so"
8322 shlibpath_var=LD_LIBRARY_PATH
8323 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8325 soname_spec='${libname}${release}${shared_ext}$major'
8326 if test "X$HPUX_IA64_MODE" = X32; then
8327 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8328 else
8329 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8331 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8333 hppa*64*)
8334 shrext_cmds='.sl'
8335 hardcode_into_libs=yes
8336 dynamic_linker="$host_os dld.sl"
8337 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8338 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8340 soname_spec='${libname}${release}${shared_ext}$major'
8341 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8342 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8345 shrext_cmds='.sl'
8346 dynamic_linker="$host_os dld.sl"
8347 shlibpath_var=SHLIB_PATH
8348 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8350 soname_spec='${libname}${release}${shared_ext}$major'
8352 esac
8353 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8354 postinstall_cmds='chmod 555 $lib'
8357 interix[3-9]*)
8358 version_type=linux
8359 need_lib_prefix=no
8360 need_version=no
8361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8362 soname_spec='${libname}${release}${shared_ext}$major'
8363 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8364 shlibpath_var=LD_LIBRARY_PATH
8365 shlibpath_overrides_runpath=no
8366 hardcode_into_libs=yes
8369 irix5* | irix6* | nonstopux*)
8370 case $host_os in
8371 nonstopux*) version_type=nonstopux ;;
8373 if test "$lt_cv_prog_gnu_ld" = yes; then
8374 version_type=linux
8375 else
8376 version_type=irix
8377 fi ;;
8378 esac
8379 need_lib_prefix=no
8380 need_version=no
8381 soname_spec='${libname}${release}${shared_ext}$major'
8382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8383 case $host_os in
8384 irix5* | nonstopux*)
8385 libsuff= shlibsuff=
8388 case $LD in # libtool.m4 will add one of these switches to LD
8389 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8390 libsuff= shlibsuff= libmagic=32-bit;;
8391 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8392 libsuff=32 shlibsuff=N32 libmagic=N32;;
8393 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8394 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8395 *) libsuff= shlibsuff= libmagic=never-match;;
8396 esac
8398 esac
8399 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8400 shlibpath_overrides_runpath=no
8401 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8402 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8403 hardcode_into_libs=yes
8406 # No shared lib support for Linux oldld, aout, or coff.
8407 linux*oldld* | linux*aout* | linux*coff*)
8408 dynamic_linker=no
8411 # This must be Linux ELF.
8412 linux* | k*bsd*-gnu)
8413 version_type=linux
8414 need_lib_prefix=no
8415 need_version=no
8416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8417 soname_spec='${libname}${release}${shared_ext}$major'
8418 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8419 shlibpath_var=LD_LIBRARY_PATH
8420 shlibpath_overrides_runpath=no
8421 # Some binutils ld are patched to set DT_RUNPATH
8422 save_LDFLAGS=$LDFLAGS
8423 save_libdir=$libdir
8424 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8425 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8426 if test x$gcc_no_link = xyes; then
8427 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8428 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8429 { (exit 1); exit 1; }; }
8431 cat >conftest.$ac_ext <<_ACEOF
8432 /* confdefs.h. */
8433 _ACEOF
8434 cat confdefs.h >>conftest.$ac_ext
8435 cat >>conftest.$ac_ext <<_ACEOF
8436 /* end confdefs.h. */
8439 main ()
8443 return 0;
8445 _ACEOF
8446 rm -f conftest.$ac_objext conftest$ac_exeext
8447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8448 (eval $ac_link) 2>conftest.er1
8449 ac_status=$?
8450 grep -v '^ *+' conftest.er1 >conftest.err
8451 rm -f conftest.er1
8452 cat conftest.err >&5
8453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454 (exit $ac_status); } &&
8455 { ac_try='test -z "$ac_c_werror_flag"
8456 || test ! -s conftest.err'
8457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8458 (eval $ac_try) 2>&5
8459 ac_status=$?
8460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461 (exit $ac_status); }; } &&
8462 { ac_try='test -s conftest$ac_exeext'
8463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8464 (eval $ac_try) 2>&5
8465 ac_status=$?
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); }; }; then
8468 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
8469 shlibpath_overrides_runpath=yes
8472 else
8473 echo "$as_me: failed program was:" >&5
8474 sed 's/^/| /' conftest.$ac_ext >&5
8477 rm -f conftest.err conftest.$ac_objext \
8478 conftest$ac_exeext conftest.$ac_ext
8479 LDFLAGS=$save_LDFLAGS
8480 libdir=$save_libdir
8482 # This implies no fast_install, which is unacceptable.
8483 # Some rework will be needed to allow for fast_install
8484 # before this can be enabled.
8485 hardcode_into_libs=yes
8487 # Append ld.so.conf contents to the search path
8488 if test -f /etc/ld.so.conf; then
8489 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' ' '`
8490 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8493 # We used to test for /lib/ld.so.1 and disable shared libraries on
8494 # powerpc, because MkLinux only supported shared libraries with the
8495 # GNU dynamic linker. Since this was broken with cross compilers,
8496 # most powerpc-linux boxes support dynamic linking these days and
8497 # people can always --disable-shared, the test was removed, and we
8498 # assume the GNU/Linux dynamic linker is in use.
8499 dynamic_linker='GNU/Linux ld.so'
8502 netbsd*)
8503 version_type=sunos
8504 need_lib_prefix=no
8505 need_version=no
8506 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8508 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8509 dynamic_linker='NetBSD (a.out) ld.so'
8510 else
8511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8512 soname_spec='${libname}${release}${shared_ext}$major'
8513 dynamic_linker='NetBSD ld.elf_so'
8515 shlibpath_var=LD_LIBRARY_PATH
8516 shlibpath_overrides_runpath=yes
8517 hardcode_into_libs=yes
8520 newsos6)
8521 version_type=linux
8522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8523 shlibpath_var=LD_LIBRARY_PATH
8524 shlibpath_overrides_runpath=yes
8527 *nto* | *qnx*)
8528 version_type=qnx
8529 need_lib_prefix=no
8530 need_version=no
8531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8532 soname_spec='${libname}${release}${shared_ext}$major'
8533 shlibpath_var=LD_LIBRARY_PATH
8534 shlibpath_overrides_runpath=no
8535 hardcode_into_libs=yes
8536 dynamic_linker='ldqnx.so'
8539 openbsd*)
8540 version_type=sunos
8541 sys_lib_dlsearch_path_spec="/usr/lib"
8542 need_lib_prefix=no
8543 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8544 case $host_os in
8545 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8546 *) need_version=no ;;
8547 esac
8548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8549 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8550 shlibpath_var=LD_LIBRARY_PATH
8551 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8552 case $host_os in
8553 openbsd2.[89] | openbsd2.[89].*)
8554 shlibpath_overrides_runpath=no
8557 shlibpath_overrides_runpath=yes
8559 esac
8560 else
8561 shlibpath_overrides_runpath=yes
8565 os2*)
8566 libname_spec='$name'
8567 shrext_cmds=".dll"
8568 need_lib_prefix=no
8569 library_names_spec='$libname${shared_ext} $libname.a'
8570 dynamic_linker='OS/2 ld.exe'
8571 shlibpath_var=LIBPATH
8574 osf3* | osf4* | osf5*)
8575 version_type=osf
8576 need_lib_prefix=no
8577 need_version=no
8578 soname_spec='${libname}${release}${shared_ext}$major'
8579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8580 shlibpath_var=LD_LIBRARY_PATH
8581 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8582 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8585 rdos*)
8586 dynamic_linker=no
8589 solaris*)
8590 version_type=linux
8591 need_lib_prefix=no
8592 need_version=no
8593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8594 soname_spec='${libname}${release}${shared_ext}$major'
8595 shlibpath_var=LD_LIBRARY_PATH
8596 shlibpath_overrides_runpath=yes
8597 hardcode_into_libs=yes
8598 # ldd complains unless libraries are executable
8599 postinstall_cmds='chmod +x $lib'
8602 sunos4*)
8603 version_type=sunos
8604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8605 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8606 shlibpath_var=LD_LIBRARY_PATH
8607 shlibpath_overrides_runpath=yes
8608 if test "$with_gnu_ld" = yes; then
8609 need_lib_prefix=no
8611 need_version=yes
8614 sysv4 | sysv4.3*)
8615 version_type=linux
8616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8617 soname_spec='${libname}${release}${shared_ext}$major'
8618 shlibpath_var=LD_LIBRARY_PATH
8619 case $host_vendor in
8620 sni)
8621 shlibpath_overrides_runpath=no
8622 need_lib_prefix=no
8623 runpath_var=LD_RUN_PATH
8625 siemens)
8626 need_lib_prefix=no
8628 motorola)
8629 need_lib_prefix=no
8630 need_version=no
8631 shlibpath_overrides_runpath=no
8632 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8634 esac
8637 sysv4*MP*)
8638 if test -d /usr/nec ;then
8639 version_type=linux
8640 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8641 soname_spec='$libname${shared_ext}.$major'
8642 shlibpath_var=LD_LIBRARY_PATH
8646 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8647 version_type=freebsd-elf
8648 need_lib_prefix=no
8649 need_version=no
8650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8651 soname_spec='${libname}${release}${shared_ext}$major'
8652 shlibpath_var=LD_LIBRARY_PATH
8653 shlibpath_overrides_runpath=yes
8654 hardcode_into_libs=yes
8655 if test "$with_gnu_ld" = yes; then
8656 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8657 else
8658 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8659 case $host_os in
8660 sco3.2v5*)
8661 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8663 esac
8665 sys_lib_dlsearch_path_spec='/usr/lib'
8668 tpf*)
8669 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
8670 version_type=linux
8671 need_lib_prefix=no
8672 need_version=no
8673 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8674 shlibpath_var=LD_LIBRARY_PATH
8675 shlibpath_overrides_runpath=no
8676 hardcode_into_libs=yes
8679 uts4*)
8680 version_type=linux
8681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8682 soname_spec='${libname}${release}${shared_ext}$major'
8683 shlibpath_var=LD_LIBRARY_PATH
8687 dynamic_linker=no
8689 esac
8690 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8691 echo "${ECHO_T}$dynamic_linker" >&6
8692 test "$dynamic_linker" = no && can_build_shared=no
8694 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8695 if test "$GCC" = yes; then
8696 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8785 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8786 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8787 hardcode_action=
8788 if test -n "$hardcode_libdir_flag_spec" ||
8789 test -n "$runpath_var" ||
8790 test "X$hardcode_automatic" = "Xyes" ; then
8792 # We can hardcode non-existent directories.
8793 if test "$hardcode_direct" != no &&
8794 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8795 # have to relink, otherwise we might link with an installed library
8796 # when we should be linking with a yet-to-be-installed one
8797 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
8798 test "$hardcode_minus_L" != no; then
8799 # Linking always hardcodes the temporary library directory.
8800 hardcode_action=relink
8801 else
8802 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8803 hardcode_action=immediate
8805 else
8806 # We cannot hardcode anything, or else we can only hardcode existing
8807 # directories.
8808 hardcode_action=unsupported
8810 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8811 echo "${ECHO_T}$hardcode_action" >&6
8813 if test "$hardcode_action" = relink ||
8814 test "$inherit_rpath" = yes; then
8815 # Fast installation is not supported
8816 enable_fast_install=no
8817 elif test "$shlibpath_overrides_runpath" = yes ||
8818 test "$enable_shared" = no; then
8819 # Fast installation is not necessary
8820 enable_fast_install=needless
8828 if test "x$enable_dlopen" != xyes; then
8829 enable_dlopen=unknown
8830 enable_dlopen_self=unknown
8831 enable_dlopen_self_static=unknown
8832 else
8833 lt_cv_dlopen=no
8834 lt_cv_dlopen_libs=
8836 case $host_os in
8837 beos*)
8838 lt_cv_dlopen="load_add_on"
8839 lt_cv_dlopen_libs=
8840 lt_cv_dlopen_self=yes
8843 mingw* | pw32*)
8844 lt_cv_dlopen="LoadLibrary"
8845 lt_cv_dlopen_libs=
8848 cygwin*)
8849 lt_cv_dlopen="dlopen"
8850 lt_cv_dlopen_libs=
8853 darwin*)
8854 # if libdl is installed we need to link against it
8855 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8856 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8857 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8858 echo $ECHO_N "(cached) $ECHO_C" >&6
8859 else
8860 ac_check_lib_save_LIBS=$LIBS
8861 LIBS="-ldl $LIBS"
8862 if test x$gcc_no_link = xyes; then
8863 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8864 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8865 { (exit 1); exit 1; }; }
8867 cat >conftest.$ac_ext <<_ACEOF
8868 /* confdefs.h. */
8869 _ACEOF
8870 cat confdefs.h >>conftest.$ac_ext
8871 cat >>conftest.$ac_ext <<_ACEOF
8872 /* end confdefs.h. */
8874 /* Override any gcc2 internal prototype to avoid an error. */
8875 #ifdef __cplusplus
8876 extern "C"
8877 #endif
8878 /* We use char because int might match the return type of a gcc2
8879 builtin and then its argument prototype would still apply. */
8880 char dlopen ();
8882 main ()
8884 dlopen ();
8886 return 0;
8888 _ACEOF
8889 rm -f conftest.$ac_objext conftest$ac_exeext
8890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8891 (eval $ac_link) 2>conftest.er1
8892 ac_status=$?
8893 grep -v '^ *+' conftest.er1 >conftest.err
8894 rm -f conftest.er1
8895 cat conftest.err >&5
8896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897 (exit $ac_status); } &&
8898 { ac_try='test -z "$ac_c_werror_flag"
8899 || test ! -s conftest.err'
8900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8901 (eval $ac_try) 2>&5
8902 ac_status=$?
8903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8904 (exit $ac_status); }; } &&
8905 { ac_try='test -s conftest$ac_exeext'
8906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8907 (eval $ac_try) 2>&5
8908 ac_status=$?
8909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910 (exit $ac_status); }; }; then
8911 ac_cv_lib_dl_dlopen=yes
8912 else
8913 echo "$as_me: failed program was:" >&5
8914 sed 's/^/| /' conftest.$ac_ext >&5
8916 ac_cv_lib_dl_dlopen=no
8918 rm -f conftest.err conftest.$ac_objext \
8919 conftest$ac_exeext conftest.$ac_ext
8920 LIBS=$ac_check_lib_save_LIBS
8922 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8923 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8924 if test $ac_cv_lib_dl_dlopen = yes; then
8925 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8926 else
8928 lt_cv_dlopen="dyld"
8929 lt_cv_dlopen_libs=
8930 lt_cv_dlopen_self=yes
8937 echo "$as_me:$LINENO: checking for shl_load" >&5
8938 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8939 if test "${ac_cv_func_shl_load+set}" = set; then
8940 echo $ECHO_N "(cached) $ECHO_C" >&6
8941 else
8942 if test x$gcc_no_link = xyes; then
8943 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8944 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8945 { (exit 1); exit 1; }; }
8947 cat >conftest.$ac_ext <<_ACEOF
8948 /* confdefs.h. */
8949 _ACEOF
8950 cat confdefs.h >>conftest.$ac_ext
8951 cat >>conftest.$ac_ext <<_ACEOF
8952 /* end confdefs.h. */
8953 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8954 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8955 #define shl_load innocuous_shl_load
8957 /* System header to define __stub macros and hopefully few prototypes,
8958 which can conflict with char shl_load (); below.
8959 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8960 <limits.h> exists even on freestanding compilers. */
8962 #ifdef __STDC__
8963 # include <limits.h>
8964 #else
8965 # include <assert.h>
8966 #endif
8968 #undef shl_load
8970 /* Override any gcc2 internal prototype to avoid an error. */
8971 #ifdef __cplusplus
8972 extern "C"
8974 #endif
8975 /* We use char because int might match the return type of a gcc2
8976 builtin and then its argument prototype would still apply. */
8977 char shl_load ();
8978 /* The GNU C library defines this for functions which it implements
8979 to always fail with ENOSYS. Some functions are actually named
8980 something starting with __ and the normal name is an alias. */
8981 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8982 choke me
8983 #else
8984 char (*f) () = shl_load;
8985 #endif
8986 #ifdef __cplusplus
8988 #endif
8991 main ()
8993 return f != shl_load;
8995 return 0;
8997 _ACEOF
8998 rm -f conftest.$ac_objext conftest$ac_exeext
8999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9000 (eval $ac_link) 2>conftest.er1
9001 ac_status=$?
9002 grep -v '^ *+' conftest.er1 >conftest.err
9003 rm -f conftest.er1
9004 cat conftest.err >&5
9005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9006 (exit $ac_status); } &&
9007 { ac_try='test -z "$ac_c_werror_flag"
9008 || test ! -s conftest.err'
9009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9010 (eval $ac_try) 2>&5
9011 ac_status=$?
9012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9013 (exit $ac_status); }; } &&
9014 { ac_try='test -s conftest$ac_exeext'
9015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9016 (eval $ac_try) 2>&5
9017 ac_status=$?
9018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019 (exit $ac_status); }; }; then
9020 ac_cv_func_shl_load=yes
9021 else
9022 echo "$as_me: failed program was:" >&5
9023 sed 's/^/| /' conftest.$ac_ext >&5
9025 ac_cv_func_shl_load=no
9027 rm -f conftest.err conftest.$ac_objext \
9028 conftest$ac_exeext conftest.$ac_ext
9030 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9031 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9032 if test $ac_cv_func_shl_load = yes; then
9033 lt_cv_dlopen="shl_load"
9034 else
9035 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9036 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9037 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9038 echo $ECHO_N "(cached) $ECHO_C" >&6
9039 else
9040 ac_check_lib_save_LIBS=$LIBS
9041 LIBS="-ldld $LIBS"
9042 if test x$gcc_no_link = xyes; then
9043 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9044 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9045 { (exit 1); exit 1; }; }
9047 cat >conftest.$ac_ext <<_ACEOF
9048 /* confdefs.h. */
9049 _ACEOF
9050 cat confdefs.h >>conftest.$ac_ext
9051 cat >>conftest.$ac_ext <<_ACEOF
9052 /* end confdefs.h. */
9054 /* Override any gcc2 internal prototype to avoid an error. */
9055 #ifdef __cplusplus
9056 extern "C"
9057 #endif
9058 /* We use char because int might match the return type of a gcc2
9059 builtin and then its argument prototype would still apply. */
9060 char shl_load ();
9062 main ()
9064 shl_load ();
9066 return 0;
9068 _ACEOF
9069 rm -f conftest.$ac_objext conftest$ac_exeext
9070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9071 (eval $ac_link) 2>conftest.er1
9072 ac_status=$?
9073 grep -v '^ *+' conftest.er1 >conftest.err
9074 rm -f conftest.er1
9075 cat conftest.err >&5
9076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077 (exit $ac_status); } &&
9078 { ac_try='test -z "$ac_c_werror_flag"
9079 || test ! -s conftest.err'
9080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9081 (eval $ac_try) 2>&5
9082 ac_status=$?
9083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9084 (exit $ac_status); }; } &&
9085 { ac_try='test -s conftest$ac_exeext'
9086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9087 (eval $ac_try) 2>&5
9088 ac_status=$?
9089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9090 (exit $ac_status); }; }; then
9091 ac_cv_lib_dld_shl_load=yes
9092 else
9093 echo "$as_me: failed program was:" >&5
9094 sed 's/^/| /' conftest.$ac_ext >&5
9096 ac_cv_lib_dld_shl_load=no
9098 rm -f conftest.err conftest.$ac_objext \
9099 conftest$ac_exeext conftest.$ac_ext
9100 LIBS=$ac_check_lib_save_LIBS
9102 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9103 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9104 if test $ac_cv_lib_dld_shl_load = yes; then
9105 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9106 else
9107 echo "$as_me:$LINENO: checking for dlopen" >&5
9108 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9109 if test "${ac_cv_func_dlopen+set}" = set; then
9110 echo $ECHO_N "(cached) $ECHO_C" >&6
9111 else
9112 if test x$gcc_no_link = xyes; then
9113 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9114 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9115 { (exit 1); exit 1; }; }
9117 cat >conftest.$ac_ext <<_ACEOF
9118 /* confdefs.h. */
9119 _ACEOF
9120 cat confdefs.h >>conftest.$ac_ext
9121 cat >>conftest.$ac_ext <<_ACEOF
9122 /* end confdefs.h. */
9123 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9124 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9125 #define dlopen innocuous_dlopen
9127 /* System header to define __stub macros and hopefully few prototypes,
9128 which can conflict with char dlopen (); below.
9129 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9130 <limits.h> exists even on freestanding compilers. */
9132 #ifdef __STDC__
9133 # include <limits.h>
9134 #else
9135 # include <assert.h>
9136 #endif
9138 #undef dlopen
9140 /* Override any gcc2 internal prototype to avoid an error. */
9141 #ifdef __cplusplus
9142 extern "C"
9144 #endif
9145 /* We use char because int might match the return type of a gcc2
9146 builtin and then its argument prototype would still apply. */
9147 char dlopen ();
9148 /* The GNU C library defines this for functions which it implements
9149 to always fail with ENOSYS. Some functions are actually named
9150 something starting with __ and the normal name is an alias. */
9151 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9152 choke me
9153 #else
9154 char (*f) () = dlopen;
9155 #endif
9156 #ifdef __cplusplus
9158 #endif
9161 main ()
9163 return f != dlopen;
9165 return 0;
9167 _ACEOF
9168 rm -f conftest.$ac_objext conftest$ac_exeext
9169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9170 (eval $ac_link) 2>conftest.er1
9171 ac_status=$?
9172 grep -v '^ *+' conftest.er1 >conftest.err
9173 rm -f conftest.er1
9174 cat conftest.err >&5
9175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9176 (exit $ac_status); } &&
9177 { ac_try='test -z "$ac_c_werror_flag"
9178 || test ! -s conftest.err'
9179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9180 (eval $ac_try) 2>&5
9181 ac_status=$?
9182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9183 (exit $ac_status); }; } &&
9184 { ac_try='test -s conftest$ac_exeext'
9185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9186 (eval $ac_try) 2>&5
9187 ac_status=$?
9188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9189 (exit $ac_status); }; }; then
9190 ac_cv_func_dlopen=yes
9191 else
9192 echo "$as_me: failed program was:" >&5
9193 sed 's/^/| /' conftest.$ac_ext >&5
9195 ac_cv_func_dlopen=no
9197 rm -f conftest.err conftest.$ac_objext \
9198 conftest$ac_exeext conftest.$ac_ext
9200 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9201 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9202 if test $ac_cv_func_dlopen = yes; then
9203 lt_cv_dlopen="dlopen"
9204 else
9205 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9206 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9207 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9208 echo $ECHO_N "(cached) $ECHO_C" >&6
9209 else
9210 ac_check_lib_save_LIBS=$LIBS
9211 LIBS="-ldl $LIBS"
9212 if test x$gcc_no_link = xyes; then
9213 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9214 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9215 { (exit 1); exit 1; }; }
9217 cat >conftest.$ac_ext <<_ACEOF
9218 /* confdefs.h. */
9219 _ACEOF
9220 cat confdefs.h >>conftest.$ac_ext
9221 cat >>conftest.$ac_ext <<_ACEOF
9222 /* end confdefs.h. */
9224 /* Override any gcc2 internal prototype to avoid an error. */
9225 #ifdef __cplusplus
9226 extern "C"
9227 #endif
9228 /* We use char because int might match the return type of a gcc2
9229 builtin and then its argument prototype would still apply. */
9230 char dlopen ();
9232 main ()
9234 dlopen ();
9236 return 0;
9238 _ACEOF
9239 rm -f conftest.$ac_objext conftest$ac_exeext
9240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9241 (eval $ac_link) 2>conftest.er1
9242 ac_status=$?
9243 grep -v '^ *+' conftest.er1 >conftest.err
9244 rm -f conftest.er1
9245 cat conftest.err >&5
9246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247 (exit $ac_status); } &&
9248 { ac_try='test -z "$ac_c_werror_flag"
9249 || test ! -s conftest.err'
9250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9251 (eval $ac_try) 2>&5
9252 ac_status=$?
9253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254 (exit $ac_status); }; } &&
9255 { ac_try='test -s conftest$ac_exeext'
9256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9257 (eval $ac_try) 2>&5
9258 ac_status=$?
9259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9260 (exit $ac_status); }; }; then
9261 ac_cv_lib_dl_dlopen=yes
9262 else
9263 echo "$as_me: failed program was:" >&5
9264 sed 's/^/| /' conftest.$ac_ext >&5
9266 ac_cv_lib_dl_dlopen=no
9268 rm -f conftest.err conftest.$ac_objext \
9269 conftest$ac_exeext conftest.$ac_ext
9270 LIBS=$ac_check_lib_save_LIBS
9272 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9273 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9274 if test $ac_cv_lib_dl_dlopen = yes; then
9275 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9276 else
9277 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9278 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9279 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9280 echo $ECHO_N "(cached) $ECHO_C" >&6
9281 else
9282 ac_check_lib_save_LIBS=$LIBS
9283 LIBS="-lsvld $LIBS"
9284 if test x$gcc_no_link = xyes; then
9285 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9286 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9287 { (exit 1); exit 1; }; }
9289 cat >conftest.$ac_ext <<_ACEOF
9290 /* confdefs.h. */
9291 _ACEOF
9292 cat confdefs.h >>conftest.$ac_ext
9293 cat >>conftest.$ac_ext <<_ACEOF
9294 /* end confdefs.h. */
9296 /* Override any gcc2 internal prototype to avoid an error. */
9297 #ifdef __cplusplus
9298 extern "C"
9299 #endif
9300 /* We use char because int might match the return type of a gcc2
9301 builtin and then its argument prototype would still apply. */
9302 char dlopen ();
9304 main ()
9306 dlopen ();
9308 return 0;
9310 _ACEOF
9311 rm -f conftest.$ac_objext conftest$ac_exeext
9312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9313 (eval $ac_link) 2>conftest.er1
9314 ac_status=$?
9315 grep -v '^ *+' conftest.er1 >conftest.err
9316 rm -f conftest.er1
9317 cat conftest.err >&5
9318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9319 (exit $ac_status); } &&
9320 { ac_try='test -z "$ac_c_werror_flag"
9321 || test ! -s conftest.err'
9322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9323 (eval $ac_try) 2>&5
9324 ac_status=$?
9325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9326 (exit $ac_status); }; } &&
9327 { ac_try='test -s conftest$ac_exeext'
9328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9329 (eval $ac_try) 2>&5
9330 ac_status=$?
9331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9332 (exit $ac_status); }; }; then
9333 ac_cv_lib_svld_dlopen=yes
9334 else
9335 echo "$as_me: failed program was:" >&5
9336 sed 's/^/| /' conftest.$ac_ext >&5
9338 ac_cv_lib_svld_dlopen=no
9340 rm -f conftest.err conftest.$ac_objext \
9341 conftest$ac_exeext conftest.$ac_ext
9342 LIBS=$ac_check_lib_save_LIBS
9344 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9345 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9346 if test $ac_cv_lib_svld_dlopen = yes; then
9347 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9348 else
9349 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9350 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9351 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9352 echo $ECHO_N "(cached) $ECHO_C" >&6
9353 else
9354 ac_check_lib_save_LIBS=$LIBS
9355 LIBS="-ldld $LIBS"
9356 if test x$gcc_no_link = xyes; then
9357 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9358 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9359 { (exit 1); exit 1; }; }
9361 cat >conftest.$ac_ext <<_ACEOF
9362 /* confdefs.h. */
9363 _ACEOF
9364 cat confdefs.h >>conftest.$ac_ext
9365 cat >>conftest.$ac_ext <<_ACEOF
9366 /* end confdefs.h. */
9368 /* Override any gcc2 internal prototype to avoid an error. */
9369 #ifdef __cplusplus
9370 extern "C"
9371 #endif
9372 /* We use char because int might match the return type of a gcc2
9373 builtin and then its argument prototype would still apply. */
9374 char dld_link ();
9376 main ()
9378 dld_link ();
9380 return 0;
9382 _ACEOF
9383 rm -f conftest.$ac_objext conftest$ac_exeext
9384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9385 (eval $ac_link) 2>conftest.er1
9386 ac_status=$?
9387 grep -v '^ *+' conftest.er1 >conftest.err
9388 rm -f conftest.er1
9389 cat conftest.err >&5
9390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391 (exit $ac_status); } &&
9392 { ac_try='test -z "$ac_c_werror_flag"
9393 || test ! -s conftest.err'
9394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9395 (eval $ac_try) 2>&5
9396 ac_status=$?
9397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9398 (exit $ac_status); }; } &&
9399 { ac_try='test -s conftest$ac_exeext'
9400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9401 (eval $ac_try) 2>&5
9402 ac_status=$?
9403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404 (exit $ac_status); }; }; then
9405 ac_cv_lib_dld_dld_link=yes
9406 else
9407 echo "$as_me: failed program was:" >&5
9408 sed 's/^/| /' conftest.$ac_ext >&5
9410 ac_cv_lib_dld_dld_link=no
9412 rm -f conftest.err conftest.$ac_objext \
9413 conftest$ac_exeext conftest.$ac_ext
9414 LIBS=$ac_check_lib_save_LIBS
9416 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9417 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9418 if test $ac_cv_lib_dld_dld_link = yes; then
9419 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9438 esac
9440 if test "x$lt_cv_dlopen" != xno; then
9441 enable_dlopen=yes
9442 else
9443 enable_dlopen=no
9446 case $lt_cv_dlopen in
9447 dlopen)
9448 save_CPPFLAGS="$CPPFLAGS"
9449 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9451 save_LDFLAGS="$LDFLAGS"
9452 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9454 save_LIBS="$LIBS"
9455 LIBS="$lt_cv_dlopen_libs $LIBS"
9457 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9458 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9459 if test "${lt_cv_dlopen_self+set}" = set; then
9460 echo $ECHO_N "(cached) $ECHO_C" >&6
9461 else
9462 if test "$cross_compiling" = yes; then :
9463 lt_cv_dlopen_self=cross
9464 else
9465 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9466 lt_status=$lt_dlunknown
9467 cat > conftest.$ac_ext <<_LT_EOF
9468 #line 9468 "configure"
9469 #include "confdefs.h"
9471 #if HAVE_DLFCN_H
9472 #include <dlfcn.h>
9473 #endif
9475 #include <stdio.h>
9477 #ifdef RTLD_GLOBAL
9478 # define LT_DLGLOBAL RTLD_GLOBAL
9479 #else
9480 # ifdef DL_GLOBAL
9481 # define LT_DLGLOBAL DL_GLOBAL
9482 # else
9483 # define LT_DLGLOBAL 0
9484 # endif
9485 #endif
9487 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9488 find out it does not work in some platform. */
9489 #ifndef LT_DLLAZY_OR_NOW
9490 # ifdef RTLD_LAZY
9491 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9492 # else
9493 # ifdef DL_LAZY
9494 # define LT_DLLAZY_OR_NOW DL_LAZY
9495 # else
9496 # ifdef RTLD_NOW
9497 # define LT_DLLAZY_OR_NOW RTLD_NOW
9498 # else
9499 # ifdef DL_NOW
9500 # define LT_DLLAZY_OR_NOW DL_NOW
9501 # else
9502 # define LT_DLLAZY_OR_NOW 0
9503 # endif
9504 # endif
9505 # endif
9506 # endif
9507 #endif
9509 #ifdef __cplusplus
9510 extern "C" void exit (int);
9511 #endif
9513 void fnord() { int i=42;}
9514 int main ()
9516 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9517 int status = $lt_dlunknown;
9519 if (self)
9521 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9522 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9523 /* dlclose (self); */
9525 else
9526 puts (dlerror ());
9528 exit (status);
9530 _LT_EOF
9531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9532 (eval $ac_link) 2>&5
9533 ac_status=$?
9534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9535 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9536 (./conftest; exit; ) >&5 2>/dev/null
9537 lt_status=$?
9538 case x$lt_status in
9539 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9540 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9541 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9542 esac
9543 else :
9544 # compilation failed
9545 lt_cv_dlopen_self=no
9548 rm -fr conftest*
9552 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9553 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9555 if test "x$lt_cv_dlopen_self" = xyes; then
9556 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9557 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9558 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9559 if test "${lt_cv_dlopen_self_static+set}" = set; then
9560 echo $ECHO_N "(cached) $ECHO_C" >&6
9561 else
9562 if test "$cross_compiling" = yes; then :
9563 lt_cv_dlopen_self_static=cross
9564 else
9565 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9566 lt_status=$lt_dlunknown
9567 cat > conftest.$ac_ext <<_LT_EOF
9568 #line 9568 "configure"
9569 #include "confdefs.h"
9571 #if HAVE_DLFCN_H
9572 #include <dlfcn.h>
9573 #endif
9575 #include <stdio.h>
9577 #ifdef RTLD_GLOBAL
9578 # define LT_DLGLOBAL RTLD_GLOBAL
9579 #else
9580 # ifdef DL_GLOBAL
9581 # define LT_DLGLOBAL DL_GLOBAL
9582 # else
9583 # define LT_DLGLOBAL 0
9584 # endif
9585 #endif
9587 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9588 find out it does not work in some platform. */
9589 #ifndef LT_DLLAZY_OR_NOW
9590 # ifdef RTLD_LAZY
9591 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9592 # else
9593 # ifdef DL_LAZY
9594 # define LT_DLLAZY_OR_NOW DL_LAZY
9595 # else
9596 # ifdef RTLD_NOW
9597 # define LT_DLLAZY_OR_NOW RTLD_NOW
9598 # else
9599 # ifdef DL_NOW
9600 # define LT_DLLAZY_OR_NOW DL_NOW
9601 # else
9602 # define LT_DLLAZY_OR_NOW 0
9603 # endif
9604 # endif
9605 # endif
9606 # endif
9607 #endif
9609 #ifdef __cplusplus
9610 extern "C" void exit (int);
9611 #endif
9613 void fnord() { int i=42;}
9614 int main ()
9616 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9617 int status = $lt_dlunknown;
9619 if (self)
9621 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9622 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9623 /* dlclose (self); */
9625 else
9626 puts (dlerror ());
9628 exit (status);
9630 _LT_EOF
9631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9632 (eval $ac_link) 2>&5
9633 ac_status=$?
9634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9635 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9636 (./conftest; exit; ) >&5 2>/dev/null
9637 lt_status=$?
9638 case x$lt_status in
9639 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9640 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9641 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9642 esac
9643 else :
9644 # compilation failed
9645 lt_cv_dlopen_self_static=no
9648 rm -fr conftest*
9652 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9653 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9656 CPPFLAGS="$save_CPPFLAGS"
9657 LDFLAGS="$save_LDFLAGS"
9658 LIBS="$save_LIBS"
9660 esac
9662 case $lt_cv_dlopen_self in
9663 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9664 *) enable_dlopen_self=unknown ;;
9665 esac
9667 case $lt_cv_dlopen_self_static in
9668 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9669 *) enable_dlopen_self_static=unknown ;;
9670 esac
9689 striplib=
9690 old_striplib=
9691 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9692 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9693 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9694 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9695 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9696 echo "$as_me:$LINENO: result: yes" >&5
9697 echo "${ECHO_T}yes" >&6
9698 else
9699 # FIXME - insert some real tests, host_os isn't really good enough
9700 case $host_os in
9701 darwin*)
9702 if test -n "$STRIP" ; then
9703 striplib="$STRIP -x"
9704 old_striplib="$STRIP -S"
9705 echo "$as_me:$LINENO: result: yes" >&5
9706 echo "${ECHO_T}yes" >&6
9707 else
9708 echo "$as_me:$LINENO: result: no" >&5
9709 echo "${ECHO_T}no" >&6
9713 echo "$as_me:$LINENO: result: no" >&5
9714 echo "${ECHO_T}no" >&6
9716 esac
9730 # Report which library types will actually be built
9731 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9732 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9733 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9734 echo "${ECHO_T}$can_build_shared" >&6
9736 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9737 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9738 test "$can_build_shared" = "no" && enable_shared=no
9740 # On AIX, shared libraries and static libraries use the same namespace, and
9741 # are all built from PIC.
9742 case $host_os in
9743 aix3*)
9744 test "$enable_shared" = yes && enable_static=no
9745 if test -n "$RANLIB"; then
9746 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9747 postinstall_cmds='$RANLIB $lib'
9751 aix[4-9]*)
9752 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9753 test "$enable_shared" = yes && enable_static=no
9756 esac
9757 echo "$as_me:$LINENO: result: $enable_shared" >&5
9758 echo "${ECHO_T}$enable_shared" >&6
9760 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9761 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9762 # Make sure either enable_shared or enable_static is yes.
9763 test "$enable_shared" = yes || enable_static=yes
9764 echo "$as_me:$LINENO: result: $enable_static" >&5
9765 echo "${ECHO_T}$enable_static" >&6
9771 ac_ext=c
9772 ac_cpp='$CPP $CPPFLAGS'
9773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9777 CC="$lt_save_CC"
9791 ac_config_commands="$ac_config_commands libtool"
9796 # Only expand once:
9800 if test "x$CC" != xcc; then
9801 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
9802 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
9803 else
9804 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
9805 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
9807 set dummy $CC; ac_cc=`echo $2 |
9808 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
9809 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
9810 echo $ECHO_N "(cached) $ECHO_C" >&6
9811 else
9812 cat >conftest.$ac_ext <<_ACEOF
9813 /* confdefs.h. */
9814 _ACEOF
9815 cat confdefs.h >>conftest.$ac_ext
9816 cat >>conftest.$ac_ext <<_ACEOF
9817 /* end confdefs.h. */
9820 main ()
9824 return 0;
9826 _ACEOF
9827 # Make sure it works both with $CC and with simple cc.
9828 # We do the test twice because some compilers refuse to overwrite an
9829 # existing .o file with -o, though they will create one.
9830 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
9831 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9832 (eval $ac_try) 2>&5
9833 ac_status=$?
9834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835 (exit $ac_status); } &&
9836 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9837 (eval $ac_try) 2>&5
9838 ac_status=$?
9839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840 (exit $ac_status); };
9841 then
9842 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
9843 if test "x$CC" != xcc; then
9844 # Test first that cc exists at all.
9845 if { ac_try='cc -c conftest.$ac_ext >&5'
9846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9847 (eval $ac_try) 2>&5
9848 ac_status=$?
9849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9850 (exit $ac_status); }; }; then
9851 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
9852 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9853 (eval $ac_try) 2>&5
9854 ac_status=$?
9855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856 (exit $ac_status); } &&
9857 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9858 (eval $ac_try) 2>&5
9859 ac_status=$?
9860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861 (exit $ac_status); };
9862 then
9863 # cc works too.
9865 else
9866 # cc exists but doesn't like -o.
9867 eval ac_cv_prog_cc_${ac_cc}_c_o=no
9871 else
9872 eval ac_cv_prog_cc_${ac_cc}_c_o=no
9874 rm -f conftest*
9877 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
9878 echo "$as_me:$LINENO: result: yes" >&5
9879 echo "${ECHO_T}yes" >&6
9880 else
9881 echo "$as_me:$LINENO: result: no" >&5
9882 echo "${ECHO_T}no" >&6
9884 cat >>confdefs.h <<\_ACEOF
9885 #define NO_MINUS_C_MINUS_O 1
9886 _ACEOF
9890 # expand $ac_aux_dir to an absolute path
9891 am_aux_dir=`cd $ac_aux_dir && pwd`
9893 # FIXME: we rely on the cache variable name because
9894 # there is no other way.
9895 set dummy $CC
9896 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
9897 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
9898 # Losing compiler, so override with the script.
9899 # FIXME: It is wrong to rewrite CC.
9900 # But if we don't then we get into trouble of one sort or another.
9901 # A longer-term fix would be to have automake use am__CC in this case,
9902 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
9903 CC="$am_aux_dir/compile $CC"
9907 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9908 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
9909 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
9910 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
9911 echo $ECHO_N "(cached) $ECHO_C" >&6
9912 else
9913 cat >conftest.make <<\_ACEOF
9914 all:
9915 @echo 'ac_maketemp="$(MAKE)"'
9916 _ACEOF
9917 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9918 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
9919 if test -n "$ac_maketemp"; then
9920 eval ac_cv_prog_make_${ac_make}_set=yes
9921 else
9922 eval ac_cv_prog_make_${ac_make}_set=no
9924 rm -f conftest.make
9926 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
9927 echo "$as_me:$LINENO: result: yes" >&5
9928 echo "${ECHO_T}yes" >&6
9929 SET_MAKE=
9930 else
9931 echo "$as_me:$LINENO: result: no" >&5
9932 echo "${ECHO_T}no" >&6
9933 SET_MAKE="MAKE=${MAKE-make}"
9937 # -------
9938 # Headers
9939 # -------
9941 # Sanity check for the cross-compilation case:
9942 if test "${ac_cv_header_stdio_h+set}" = set; then
9943 echo "$as_me:$LINENO: checking for stdio.h" >&5
9944 echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6
9945 if test "${ac_cv_header_stdio_h+set}" = set; then
9946 echo $ECHO_N "(cached) $ECHO_C" >&6
9948 echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5
9949 echo "${ECHO_T}$ac_cv_header_stdio_h" >&6
9950 else
9951 # Is the header compilable?
9952 echo "$as_me:$LINENO: checking stdio.h usability" >&5
9953 echo $ECHO_N "checking stdio.h usability... $ECHO_C" >&6
9954 cat >conftest.$ac_ext <<_ACEOF
9955 /* confdefs.h. */
9956 _ACEOF
9957 cat confdefs.h >>conftest.$ac_ext
9958 cat >>conftest.$ac_ext <<_ACEOF
9959 /* end confdefs.h. */
9960 $ac_includes_default
9961 #include <stdio.h>
9962 _ACEOF
9963 rm -f conftest.$ac_objext
9964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9965 (eval $ac_compile) 2>conftest.er1
9966 ac_status=$?
9967 grep -v '^ *+' conftest.er1 >conftest.err
9968 rm -f conftest.er1
9969 cat conftest.err >&5
9970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971 (exit $ac_status); } &&
9972 { ac_try='test -z "$ac_c_werror_flag"
9973 || test ! -s conftest.err'
9974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9975 (eval $ac_try) 2>&5
9976 ac_status=$?
9977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978 (exit $ac_status); }; } &&
9979 { ac_try='test -s conftest.$ac_objext'
9980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9981 (eval $ac_try) 2>&5
9982 ac_status=$?
9983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9984 (exit $ac_status); }; }; then
9985 ac_header_compiler=yes
9986 else
9987 echo "$as_me: failed program was:" >&5
9988 sed 's/^/| /' conftest.$ac_ext >&5
9990 ac_header_compiler=no
9992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9993 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9994 echo "${ECHO_T}$ac_header_compiler" >&6
9996 # Is the header present?
9997 echo "$as_me:$LINENO: checking stdio.h presence" >&5
9998 echo $ECHO_N "checking stdio.h presence... $ECHO_C" >&6
9999 cat >conftest.$ac_ext <<_ACEOF
10000 /* confdefs.h. */
10001 _ACEOF
10002 cat confdefs.h >>conftest.$ac_ext
10003 cat >>conftest.$ac_ext <<_ACEOF
10004 /* end confdefs.h. */
10005 #include <stdio.h>
10006 _ACEOF
10007 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10008 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10009 ac_status=$?
10010 grep -v '^ *+' conftest.er1 >conftest.err
10011 rm -f conftest.er1
10012 cat conftest.err >&5
10013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10014 (exit $ac_status); } >/dev/null; then
10015 if test -s conftest.err; then
10016 ac_cpp_err=$ac_c_preproc_warn_flag
10017 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10018 else
10019 ac_cpp_err=
10021 else
10022 ac_cpp_err=yes
10024 if test -z "$ac_cpp_err"; then
10025 ac_header_preproc=yes
10026 else
10027 echo "$as_me: failed program was:" >&5
10028 sed 's/^/| /' conftest.$ac_ext >&5
10030 ac_header_preproc=no
10032 rm -f conftest.err conftest.$ac_ext
10033 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10034 echo "${ECHO_T}$ac_header_preproc" >&6
10036 # So? What about this header?
10037 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10038 yes:no: )
10039 { echo "$as_me:$LINENO: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&5
10040 echo "$as_me: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10041 { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the compiler's result" >&5
10042 echo "$as_me: WARNING: stdio.h: proceeding with the compiler's result" >&2;}
10043 ac_header_preproc=yes
10045 no:yes:* )
10046 { echo "$as_me:$LINENO: WARNING: stdio.h: present but cannot be compiled" >&5
10047 echo "$as_me: WARNING: stdio.h: present but cannot be compiled" >&2;}
10048 { echo "$as_me:$LINENO: WARNING: stdio.h: check for missing prerequisite headers?" >&5
10049 echo "$as_me: WARNING: stdio.h: check for missing prerequisite headers?" >&2;}
10050 { echo "$as_me:$LINENO: WARNING: stdio.h: see the Autoconf documentation" >&5
10051 echo "$as_me: WARNING: stdio.h: see the Autoconf documentation" >&2;}
10052 { echo "$as_me:$LINENO: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&5
10053 echo "$as_me: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&2;}
10054 { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the preprocessor's result" >&5
10055 echo "$as_me: WARNING: stdio.h: proceeding with the preprocessor's result" >&2;}
10056 { echo "$as_me:$LINENO: WARNING: stdio.h: in the future, the compiler will take precedence" >&5
10057 echo "$as_me: WARNING: stdio.h: in the future, the compiler will take precedence" >&2;}
10059 cat <<\_ASBOX
10060 ## ----------------------------------------- ##
10061 ## Report this to the package-unused lists. ##
10062 ## ----------------------------------------- ##
10063 _ASBOX
10065 sed "s/^/$as_me: WARNING: /" >&2
10067 esac
10068 echo "$as_me:$LINENO: checking for stdio.h" >&5
10069 echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6
10070 if test "${ac_cv_header_stdio_h+set}" = set; then
10071 echo $ECHO_N "(cached) $ECHO_C" >&6
10072 else
10073 ac_cv_header_stdio_h=$ac_header_preproc
10075 echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5
10076 echo "${ECHO_T}$ac_cv_header_stdio_h" >&6
10079 if test $ac_cv_header_stdio_h = yes; then
10081 else
10082 { { echo "$as_me:$LINENO: error: Can't find stdio.h.
10083 You must have a usable C system for the target already installed, at least
10084 including headers and, preferably, the library, before you can configure
10085 the Objective C runtime system. If necessary, install gcc now with
10086 \`LANGUAGES=c', then the target library, then build with \`LANGUAGES=objc'." >&5
10087 echo "$as_me: error: Can't find stdio.h.
10088 You must have a usable C system for the target already installed, at least
10089 including headers and, preferably, the library, before you can configure
10090 the Objective C runtime system. If necessary, install gcc now with
10091 \`LANGUAGES=c', then the target library, then build with \`LANGUAGES=objc'." >&2;}
10092 { (exit 1); exit 1; }; }
10097 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10098 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
10099 if test "${ac_cv_header_stdc+set}" = set; then
10100 echo $ECHO_N "(cached) $ECHO_C" >&6
10101 else
10102 cat >conftest.$ac_ext <<_ACEOF
10103 /* confdefs.h. */
10104 _ACEOF
10105 cat confdefs.h >>conftest.$ac_ext
10106 cat >>conftest.$ac_ext <<_ACEOF
10107 /* end confdefs.h. */
10108 #include <stdlib.h>
10109 #include <stdarg.h>
10110 #include <string.h>
10111 #include <float.h>
10114 main ()
10118 return 0;
10120 _ACEOF
10121 rm -f conftest.$ac_objext
10122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10123 (eval $ac_compile) 2>conftest.er1
10124 ac_status=$?
10125 grep -v '^ *+' conftest.er1 >conftest.err
10126 rm -f conftest.er1
10127 cat conftest.err >&5
10128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129 (exit $ac_status); } &&
10130 { ac_try='test -z "$ac_c_werror_flag"
10131 || test ! -s conftest.err'
10132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10133 (eval $ac_try) 2>&5
10134 ac_status=$?
10135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10136 (exit $ac_status); }; } &&
10137 { ac_try='test -s conftest.$ac_objext'
10138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10139 (eval $ac_try) 2>&5
10140 ac_status=$?
10141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142 (exit $ac_status); }; }; then
10143 ac_cv_header_stdc=yes
10144 else
10145 echo "$as_me: failed program was:" >&5
10146 sed 's/^/| /' conftest.$ac_ext >&5
10148 ac_cv_header_stdc=no
10150 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10152 if test $ac_cv_header_stdc = yes; then
10153 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10154 cat >conftest.$ac_ext <<_ACEOF
10155 /* confdefs.h. */
10156 _ACEOF
10157 cat confdefs.h >>conftest.$ac_ext
10158 cat >>conftest.$ac_ext <<_ACEOF
10159 /* end confdefs.h. */
10160 #include <string.h>
10162 _ACEOF
10163 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10164 $EGREP "memchr" >/dev/null 2>&1; then
10166 else
10167 ac_cv_header_stdc=no
10169 rm -f conftest*
10173 if test $ac_cv_header_stdc = yes; then
10174 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10175 cat >conftest.$ac_ext <<_ACEOF
10176 /* confdefs.h. */
10177 _ACEOF
10178 cat confdefs.h >>conftest.$ac_ext
10179 cat >>conftest.$ac_ext <<_ACEOF
10180 /* end confdefs.h. */
10181 #include <stdlib.h>
10183 _ACEOF
10184 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10185 $EGREP "free" >/dev/null 2>&1; then
10187 else
10188 ac_cv_header_stdc=no
10190 rm -f conftest*
10194 if test $ac_cv_header_stdc = yes; then
10195 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10196 if test "$cross_compiling" = yes; then
10198 else
10199 cat >conftest.$ac_ext <<_ACEOF
10200 /* confdefs.h. */
10201 _ACEOF
10202 cat confdefs.h >>conftest.$ac_ext
10203 cat >>conftest.$ac_ext <<_ACEOF
10204 /* end confdefs.h. */
10205 #include <ctype.h>
10206 #if ((' ' & 0x0FF) == 0x020)
10207 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10208 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10209 #else
10210 # define ISLOWER(c) \
10211 (('a' <= (c) && (c) <= 'i') \
10212 || ('j' <= (c) && (c) <= 'r') \
10213 || ('s' <= (c) && (c) <= 'z'))
10214 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10215 #endif
10217 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10219 main ()
10221 int i;
10222 for (i = 0; i < 256; i++)
10223 if (XOR (islower (i), ISLOWER (i))
10224 || toupper (i) != TOUPPER (i))
10225 exit(2);
10226 exit (0);
10228 _ACEOF
10229 rm -f conftest$ac_exeext
10230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10231 (eval $ac_link) 2>&5
10232 ac_status=$?
10233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10236 (eval $ac_try) 2>&5
10237 ac_status=$?
10238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10239 (exit $ac_status); }; }; then
10241 else
10242 echo "$as_me: program exited with status $ac_status" >&5
10243 echo "$as_me: failed program was:" >&5
10244 sed 's/^/| /' conftest.$ac_ext >&5
10246 ( exit $ac_status )
10247 ac_cv_header_stdc=no
10249 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10253 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10254 echo "${ECHO_T}$ac_cv_header_stdc" >&6
10255 if test $ac_cv_header_stdc = yes; then
10257 cat >>confdefs.h <<\_ACEOF
10258 #define STDC_HEADERS 1
10259 _ACEOF
10265 for ac_header in sched.h
10267 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10268 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10269 echo "$as_me:$LINENO: checking for $ac_header" >&5
10270 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10271 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10272 echo $ECHO_N "(cached) $ECHO_C" >&6
10274 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10275 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10276 else
10277 # Is the header compilable?
10278 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10279 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10280 cat >conftest.$ac_ext <<_ACEOF
10281 /* confdefs.h. */
10282 _ACEOF
10283 cat confdefs.h >>conftest.$ac_ext
10284 cat >>conftest.$ac_ext <<_ACEOF
10285 /* end confdefs.h. */
10286 $ac_includes_default
10287 #include <$ac_header>
10288 _ACEOF
10289 rm -f conftest.$ac_objext
10290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10291 (eval $ac_compile) 2>conftest.er1
10292 ac_status=$?
10293 grep -v '^ *+' conftest.er1 >conftest.err
10294 rm -f conftest.er1
10295 cat conftest.err >&5
10296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10297 (exit $ac_status); } &&
10298 { ac_try='test -z "$ac_c_werror_flag"
10299 || test ! -s conftest.err'
10300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10301 (eval $ac_try) 2>&5
10302 ac_status=$?
10303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304 (exit $ac_status); }; } &&
10305 { ac_try='test -s conftest.$ac_objext'
10306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10307 (eval $ac_try) 2>&5
10308 ac_status=$?
10309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310 (exit $ac_status); }; }; then
10311 ac_header_compiler=yes
10312 else
10313 echo "$as_me: failed program was:" >&5
10314 sed 's/^/| /' conftest.$ac_ext >&5
10316 ac_header_compiler=no
10318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10319 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10320 echo "${ECHO_T}$ac_header_compiler" >&6
10322 # Is the header present?
10323 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10324 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10325 cat >conftest.$ac_ext <<_ACEOF
10326 /* confdefs.h. */
10327 _ACEOF
10328 cat confdefs.h >>conftest.$ac_ext
10329 cat >>conftest.$ac_ext <<_ACEOF
10330 /* end confdefs.h. */
10331 #include <$ac_header>
10332 _ACEOF
10333 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10334 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10335 ac_status=$?
10336 grep -v '^ *+' conftest.er1 >conftest.err
10337 rm -f conftest.er1
10338 cat conftest.err >&5
10339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10340 (exit $ac_status); } >/dev/null; then
10341 if test -s conftest.err; then
10342 ac_cpp_err=$ac_c_preproc_warn_flag
10343 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10344 else
10345 ac_cpp_err=
10347 else
10348 ac_cpp_err=yes
10350 if test -z "$ac_cpp_err"; then
10351 ac_header_preproc=yes
10352 else
10353 echo "$as_me: failed program was:" >&5
10354 sed 's/^/| /' conftest.$ac_ext >&5
10356 ac_header_preproc=no
10358 rm -f conftest.err conftest.$ac_ext
10359 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10360 echo "${ECHO_T}$ac_header_preproc" >&6
10362 # So? What about this header?
10363 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10364 yes:no: )
10365 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10366 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10367 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10368 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10369 ac_header_preproc=yes
10371 no:yes:* )
10372 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10373 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10374 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10375 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10376 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10377 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10378 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10379 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10380 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10381 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10382 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10383 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10385 cat <<\_ASBOX
10386 ## ----------------------------------------- ##
10387 ## Report this to the package-unused lists. ##
10388 ## ----------------------------------------- ##
10389 _ASBOX
10391 sed "s/^/$as_me: WARNING: /" >&2
10393 esac
10394 echo "$as_me:$LINENO: checking for $ac_header" >&5
10395 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10396 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10397 echo $ECHO_N "(cached) $ECHO_C" >&6
10398 else
10399 eval "$as_ac_Header=\$ac_header_preproc"
10401 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10402 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10405 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10406 cat >>confdefs.h <<_ACEOF
10407 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10408 _ACEOF
10412 done
10415 # -----------
10416 # Miscellanea
10417 # -----------
10419 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
10420 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
10421 target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
10422 echo "$as_me:$LINENO: result: $target_thread_file" >&5
10423 echo "${ECHO_T}$target_thread_file" >&6
10425 if test $target_thread_file != single; then
10427 cat >>confdefs.h <<\_ACEOF
10428 #define HAVE_GTHR_DEFAULT 1
10429 _ACEOF
10434 echo "$as_me:$LINENO: checking for exception model to use" >&5
10435 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
10436 ac_ext=c
10437 ac_cpp='$CPP $CPPFLAGS'
10438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10442 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
10443 if test "${enable_sjlj_exceptions+set}" = set; then
10444 enableval="$enable_sjlj_exceptions"
10446 else
10447 cat > conftest.$ac_ext << EOF
10448 #line 10448 "configure"
10449 @interface Frob
10450 @end
10451 @implementation Frob
10452 @end
10453 int proc();
10454 int foo()
10456 @try {
10457 return proc();
10459 @catch (Frob* ex) {
10460 return 0;
10464 old_CFLAGS="$CFLAGS"
10465 CFLAGS="-x objective-c -fgnu-runtime -fobjc-exceptions -S"
10466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10467 (eval $ac_compile) 2>&5
10468 ac_status=$?
10469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10470 (exit $ac_status); }; then
10471 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
10472 enable_sjlj_exceptions=yes
10473 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
10474 enable_sjlj_exceptions=no
10477 CFLAGS="$old_CFLAGS"
10478 rm -f conftest*
10480 if test x$enable_sjlj_exceptions = xyes; then
10482 cat >>confdefs.h <<\_ACEOF
10483 #define SJLJ_EXCEPTIONS 1
10484 _ACEOF
10486 ac_exception_model_name=sjlj
10487 elif test x$enable_sjlj_exceptions = xno; then
10488 ac_exception_model_name="call frame"
10489 else
10490 { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
10491 echo "$as_me: error: unable to detect exception model" >&2;}
10492 { (exit 1); exit 1; }; }
10494 ac_ext=c
10495 ac_cpp='$CPP $CPPFLAGS'
10496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10500 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
10501 echo "${ECHO_T}$ac_exception_model_name" >&6
10503 # ------
10504 # Output
10505 # ------
10507 if test ${multilib} = yes; then
10508 multilib_arg="--enable-multilib"
10509 else
10510 multilib_arg=
10513 ac_config_files="$ac_config_files Makefile"
10515 cat >confcache <<\_ACEOF
10516 # This file is a shell script that caches the results of configure
10517 # tests run on this system so they can be shared between configure
10518 # scripts and configure runs, see configure's option --config-cache.
10519 # It is not useful on other systems. If it contains results you don't
10520 # want to keep, you may remove or edit it.
10522 # config.status only pays attention to the cache file if you give it
10523 # the --recheck option to rerun configure.
10525 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10526 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10527 # following values.
10529 _ACEOF
10531 # The following way of writing the cache mishandles newlines in values,
10532 # but we know of no workaround that is simple, portable, and efficient.
10533 # So, don't put newlines in cache variables' values.
10534 # Ultrix sh set writes to stderr and can't be redirected directly,
10535 # and sets the high bit in the cache file unless we assign to the vars.
10537 (set) 2>&1 |
10538 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10539 *ac_space=\ *)
10540 # `set' does not quote correctly, so add quotes (double-quote
10541 # substitution turns \\\\ into \\, and sed turns \\ into \).
10542 sed -n \
10543 "s/'/'\\\\''/g;
10544 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10547 # `set' quotes correctly as required by POSIX, so do not add quotes.
10548 sed -n \
10549 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10551 esac;
10553 sed '
10554 t clear
10555 : clear
10556 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10557 t end
10558 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10559 : end' >>confcache
10560 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10561 if test -w $cache_file; then
10562 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10563 cat confcache >$cache_file
10564 else
10565 echo "not updating unwritable cache $cache_file"
10568 rm -f confcache
10570 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10571 # Let make expand exec_prefix.
10572 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10574 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10575 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10576 # trailing colons and then remove the whole line if VPATH becomes empty
10577 # (actually we leave an empty line to preserve line numbers).
10578 if test "x$srcdir" = x.; then
10579 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10580 s/:*\$(srcdir):*/:/;
10581 s/:*\${srcdir}:*/:/;
10582 s/:*@srcdir@:*/:/;
10583 s/^\([^=]*=[ ]*\):*/\1/;
10584 s/:*$//;
10585 s/^[^=]*=[ ]*$//;
10589 DEFS=-DHAVE_CONFIG_H
10591 ac_libobjs=
10592 ac_ltlibobjs=
10593 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10594 # 1. Remove the extension, and $U if already installed.
10595 ac_i=`echo "$ac_i" |
10596 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10597 # 2. Add them.
10598 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10599 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10600 done
10601 LIBOBJS=$ac_libobjs
10603 LTLIBOBJS=$ac_ltlibobjs
10606 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10607 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
10608 Usually this means the macro was only invoked conditionally." >&5
10609 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
10610 Usually this means the macro was only invoked conditionally." >&2;}
10611 { (exit 1); exit 1; }; }
10614 : ${CONFIG_STATUS=./config.status}
10615 ac_clean_files_save=$ac_clean_files
10616 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10617 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10618 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10619 cat >$CONFIG_STATUS <<_ACEOF
10620 #! $SHELL
10621 # Generated by $as_me.
10622 # Run this file to recreate the current configuration.
10623 # Compiler output produced by configure, useful for debugging
10624 # configure, is in config.log if it exists.
10626 debug=false
10627 ac_cs_recheck=false
10628 ac_cs_silent=false
10629 SHELL=\${CONFIG_SHELL-$SHELL}
10630 _ACEOF
10632 cat >>$CONFIG_STATUS <<\_ACEOF
10633 ## --------------------- ##
10634 ## M4sh Initialization. ##
10635 ## --------------------- ##
10637 # Be Bourne compatible
10638 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10639 emulate sh
10640 NULLCMD=:
10641 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10642 # is contrary to our usage. Disable this feature.
10643 alias -g '${1+"$@"}'='"$@"'
10644 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10645 set -o posix
10647 DUALCASE=1; export DUALCASE # for MKS sh
10649 # Support unset when possible.
10650 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10651 as_unset=unset
10652 else
10653 as_unset=false
10657 # Work around bugs in pre-3.0 UWIN ksh.
10658 $as_unset ENV MAIL MAILPATH
10659 PS1='$ '
10660 PS2='> '
10661 PS4='+ '
10663 # NLS nuisances.
10664 for as_var in \
10665 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10666 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10667 LC_TELEPHONE LC_TIME
10669 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10670 eval $as_var=C; export $as_var
10671 else
10672 $as_unset $as_var
10674 done
10676 # Required to use basename.
10677 if expr a : '\(a\)' >/dev/null 2>&1; then
10678 as_expr=expr
10679 else
10680 as_expr=false
10683 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10684 as_basename=basename
10685 else
10686 as_basename=false
10690 # Name of the executable.
10691 as_me=`$as_basename "$0" ||
10692 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10693 X"$0" : 'X\(//\)$' \| \
10694 X"$0" : 'X\(/\)$' \| \
10695 . : '\(.\)' 2>/dev/null ||
10696 echo X/"$0" |
10697 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10698 /^X\/\(\/\/\)$/{ s//\1/; q; }
10699 /^X\/\(\/\).*/{ s//\1/; q; }
10700 s/.*/./; q'`
10703 # PATH needs CR, and LINENO needs CR and PATH.
10704 # Avoid depending upon Character Ranges.
10705 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10706 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10707 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10708 as_cr_digits='0123456789'
10709 as_cr_alnum=$as_cr_Letters$as_cr_digits
10711 # The user is always right.
10712 if test "${PATH_SEPARATOR+set}" != set; then
10713 echo "#! /bin/sh" >conf$$.sh
10714 echo "exit 0" >>conf$$.sh
10715 chmod +x conf$$.sh
10716 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10717 PATH_SEPARATOR=';'
10718 else
10719 PATH_SEPARATOR=:
10721 rm -f conf$$.sh
10725 as_lineno_1=$LINENO
10726 as_lineno_2=$LINENO
10727 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10728 test "x$as_lineno_1" != "x$as_lineno_2" &&
10729 test "x$as_lineno_3" = "x$as_lineno_2" || {
10730 # Find who we are. Look in the path if we contain no path at all
10731 # relative or not.
10732 case $0 in
10733 *[\\/]* ) as_myself=$0 ;;
10734 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10735 for as_dir in $PATH
10737 IFS=$as_save_IFS
10738 test -z "$as_dir" && as_dir=.
10739 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10740 done
10743 esac
10744 # We did not find ourselves, most probably we were run as `sh COMMAND'
10745 # in which case we are not to be found in the path.
10746 if test "x$as_myself" = x; then
10747 as_myself=$0
10749 if test ! -f "$as_myself"; then
10750 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10751 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10752 { (exit 1); exit 1; }; }
10754 case $CONFIG_SHELL in
10756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10757 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10759 IFS=$as_save_IFS
10760 test -z "$as_dir" && as_dir=.
10761 for as_base in sh bash ksh sh5; do
10762 case $as_dir in
10764 if ("$as_dir/$as_base" -c '
10765 as_lineno_1=$LINENO
10766 as_lineno_2=$LINENO
10767 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10768 test "x$as_lineno_1" != "x$as_lineno_2" &&
10769 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
10770 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
10771 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
10772 CONFIG_SHELL=$as_dir/$as_base
10773 export CONFIG_SHELL
10774 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10775 fi;;
10776 esac
10777 done
10778 done
10780 esac
10782 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10783 # uniformly replaced by the line number. The first 'sed' inserts a
10784 # line-number line before each line; the second 'sed' does the real
10785 # work. The second script uses 'N' to pair each line-number line
10786 # with the numbered line, and appends trailing '-' during
10787 # substitution so that $LINENO is not a special case at line end.
10788 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10789 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
10790 sed '=' <$as_myself |
10791 sed '
10793 s,$,-,
10794 : loop
10795 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10796 t loop
10797 s,-$,,
10798 s,^['$as_cr_digits']*\n,,
10799 ' >$as_me.lineno &&
10800 chmod +x $as_me.lineno ||
10801 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10802 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10803 { (exit 1); exit 1; }; }
10805 # Don't try to exec as it changes $[0], causing all sort of problems
10806 # (the dirname of $[0] is not the place where we might find the
10807 # original and so on. Autoconf is especially sensible to this).
10808 . ./$as_me.lineno
10809 # Exit status is that of the last command.
10810 exit
10814 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10815 *c*,-n*) ECHO_N= ECHO_C='
10816 ' ECHO_T=' ' ;;
10817 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10818 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
10819 esac
10821 if expr a : '\(a\)' >/dev/null 2>&1; then
10822 as_expr=expr
10823 else
10824 as_expr=false
10827 rm -f conf$$ conf$$.exe conf$$.file
10828 echo >conf$$.file
10829 if ln -s conf$$.file conf$$ 2>/dev/null; then
10830 # We could just check for DJGPP; but this test a) works b) is more generic
10831 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10832 if test -f conf$$.exe; then
10833 # Don't use ln at all; we don't have any links
10834 as_ln_s='cp -p'
10835 else
10836 as_ln_s='ln -s'
10838 elif ln conf$$.file conf$$ 2>/dev/null; then
10839 as_ln_s=ln
10840 else
10841 as_ln_s='cp -p'
10843 rm -f conf$$ conf$$.exe conf$$.file
10845 if mkdir -p . 2>/dev/null; then
10846 as_mkdir_p=:
10847 else
10848 test -d ./-p && rmdir ./-p
10849 as_mkdir_p=false
10852 as_executable_p="test -f"
10854 # Sed expression to map a string onto a valid CPP name.
10855 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10857 # Sed expression to map a string onto a valid variable name.
10858 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10861 # IFS
10862 # We need space, tab and new line, in precisely that order.
10863 as_nl='
10865 IFS=" $as_nl"
10867 # CDPATH.
10868 $as_unset CDPATH
10870 exec 6>&1
10872 # Open the log real soon, to keep \$[0] and so on meaningful, and to
10873 # report actual input values of CONFIG_FILES etc. instead of their
10874 # values after options handling. Logging --version etc. is OK.
10875 exec 5>>config.log
10877 echo
10878 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10879 ## Running $as_me. ##
10880 _ASBOX
10881 } >&5
10882 cat >&5 <<_CSEOF
10884 This file was extended by package-unused $as_me version-unused, which was
10885 generated by GNU Autoconf 2.59. Invocation command line was
10887 CONFIG_FILES = $CONFIG_FILES
10888 CONFIG_HEADERS = $CONFIG_HEADERS
10889 CONFIG_LINKS = $CONFIG_LINKS
10890 CONFIG_COMMANDS = $CONFIG_COMMANDS
10891 $ $0 $@
10893 _CSEOF
10894 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10895 echo >&5
10896 _ACEOF
10898 # Files that config.status was made for.
10899 if test -n "$ac_config_files"; then
10900 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10903 if test -n "$ac_config_headers"; then
10904 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10907 if test -n "$ac_config_links"; then
10908 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10911 if test -n "$ac_config_commands"; then
10912 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10915 cat >>$CONFIG_STATUS <<\_ACEOF
10917 ac_cs_usage="\
10918 \`$as_me' instantiates files from templates according to the
10919 current configuration.
10921 Usage: $0 [OPTIONS] [FILE]...
10923 -h, --help print this help, then exit
10924 -V, --version print version number, then exit
10925 -q, --quiet do not print progress messages
10926 -d, --debug don't remove temporary files
10927 --recheck update $as_me by reconfiguring in the same conditions
10928 --file=FILE[:TEMPLATE]
10929 instantiate the configuration file FILE
10930 --header=FILE[:TEMPLATE]
10931 instantiate the configuration header FILE
10933 Configuration files:
10934 $config_files
10936 Configuration headers:
10937 $config_headers
10939 Configuration commands:
10940 $config_commands
10942 Report bugs to <bug-autoconf@gnu.org>."
10943 _ACEOF
10945 cat >>$CONFIG_STATUS <<_ACEOF
10946 ac_cs_version="\\
10947 package-unused config.status version-unused
10948 configured by $0, generated by GNU Autoconf 2.59,
10949 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10951 Copyright (C) 2003 Free Software Foundation, Inc.
10952 This config.status script is free software; the Free Software Foundation
10953 gives unlimited permission to copy, distribute and modify it."
10954 srcdir=$srcdir
10955 INSTALL="$INSTALL"
10956 _ACEOF
10958 cat >>$CONFIG_STATUS <<\_ACEOF
10959 # If no file are specified by the user, then we need to provide default
10960 # value. By we need to know if files were specified by the user.
10961 ac_need_defaults=:
10962 while test $# != 0
10964 case $1 in
10965 --*=*)
10966 ac_option=`expr "x$1" : 'x\([^=]*\)='`
10967 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10968 ac_shift=:
10971 ac_option=$1
10972 ac_optarg=$2
10973 ac_shift=shift
10975 *) # This is not an option, so the user has probably given explicit
10976 # arguments.
10977 ac_option=$1
10978 ac_need_defaults=false;;
10979 esac
10981 case $ac_option in
10982 # Handling of the options.
10983 _ACEOF
10984 cat >>$CONFIG_STATUS <<\_ACEOF
10985 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10986 ac_cs_recheck=: ;;
10987 --version | --vers* | -V )
10988 echo "$ac_cs_version"; exit 0 ;;
10989 --he | --h)
10990 # Conflict between --help and --header
10991 { { echo "$as_me:$LINENO: error: ambiguous option: $1
10992 Try \`$0 --help' for more information." >&5
10993 echo "$as_me: error: ambiguous option: $1
10994 Try \`$0 --help' for more information." >&2;}
10995 { (exit 1); exit 1; }; };;
10996 --help | --hel | -h )
10997 echo "$ac_cs_usage"; exit 0 ;;
10998 --debug | --d* | -d )
10999 debug=: ;;
11000 --file | --fil | --fi | --f )
11001 $ac_shift
11002 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11003 ac_need_defaults=false;;
11004 --header | --heade | --head | --hea )
11005 $ac_shift
11006 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11007 ac_need_defaults=false;;
11008 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11009 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11010 ac_cs_silent=: ;;
11012 # This is an error.
11013 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11014 Try \`$0 --help' for more information." >&5
11015 echo "$as_me: error: unrecognized option: $1
11016 Try \`$0 --help' for more information." >&2;}
11017 { (exit 1); exit 1; }; } ;;
11019 *) ac_config_targets="$ac_config_targets $1" ;;
11021 esac
11022 shift
11023 done
11025 ac_configure_extra_args=
11027 if $ac_cs_silent; then
11028 exec 6>/dev/null
11029 ac_configure_extra_args="$ac_configure_extra_args --silent"
11032 _ACEOF
11033 cat >>$CONFIG_STATUS <<_ACEOF
11034 if \$ac_cs_recheck; then
11035 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11036 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11039 _ACEOF
11041 cat >>$CONFIG_STATUS <<_ACEOF
11043 # INIT-COMMANDS section.
11047 srcdir="$srcdir"
11048 host="$host"
11049 target="$target"
11050 with_multisubdir="$with_multisubdir"
11051 with_multisrctop="$with_multisrctop"
11052 with_target_subdir="$with_target_subdir"
11053 ac_configure_args="${multilib_arg} ${ac_configure_args}"
11054 multi_basedir="$multi_basedir"
11055 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
11056 CC="$CC"
11059 # The HP-UX ksh and POSIX shell print the target directory to stdout
11060 # if CDPATH is set.
11061 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11063 sed_quote_subst='$sed_quote_subst'
11064 double_quote_subst='$double_quote_subst'
11065 delay_variable_subst='$delay_variable_subst'
11066 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
11067 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
11068 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
11069 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
11070 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
11071 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
11072 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
11073 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
11074 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
11075 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
11076 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
11077 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
11078 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
11079 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
11080 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
11081 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
11082 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
11083 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
11084 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
11085 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
11086 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
11087 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
11088 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
11089 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
11090 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
11091 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
11092 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
11093 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
11094 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
11095 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
11096 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11097 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
11098 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
11099 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
11100 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11101 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
11102 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
11103 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11104 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11105 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11106 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
11107 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11108 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
11109 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
11110 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
11111 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
11112 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"`'
11113 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
11114 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
11115 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
11116 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
11117 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
11118 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
11119 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
11120 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
11121 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
11122 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
11123 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
11124 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11125 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11126 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
11127 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
11128 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11129 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11130 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
11131 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11132 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11133 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11134 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11135 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11136 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11137 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
11138 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11139 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11140 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11141 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
11142 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
11143 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
11144 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
11145 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
11146 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11147 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
11148 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
11149 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
11150 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
11151 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
11152 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11153 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11154 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11155 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11156 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
11157 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
11158 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
11159 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
11160 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
11161 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11162 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11163 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
11164 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11165 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
11166 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11167 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11168 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11169 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11170 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
11171 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
11172 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11173 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11174 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
11175 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
11176 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
11177 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
11178 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
11179 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
11181 LTCC='$LTCC'
11182 LTCFLAGS='$LTCFLAGS'
11183 compiler='$compiler_DEFAULT'
11185 # Quote evaled strings.
11186 for var in SED \
11187 GREP \
11188 EGREP \
11189 FGREP \
11190 LD \
11191 NM \
11192 LN_S \
11193 lt_SP2NL \
11194 lt_NL2SP \
11195 reload_flag \
11196 deplibs_check_method \
11197 file_magic_cmd \
11198 AR \
11199 AR_FLAGS \
11200 STRIP \
11201 RANLIB \
11202 CC \
11203 CFLAGS \
11204 compiler \
11205 lt_cv_sys_global_symbol_pipe \
11206 lt_cv_sys_global_symbol_to_cdecl \
11207 lt_cv_sys_global_symbol_to_c_name_address \
11208 SHELL \
11209 ECHO \
11210 lt_prog_compiler_no_builtin_flag \
11211 lt_prog_compiler_wl \
11212 lt_prog_compiler_pic \
11213 lt_prog_compiler_static \
11214 lt_cv_prog_compiler_c_o \
11215 need_locks \
11216 shrext_cmds \
11217 export_dynamic_flag_spec \
11218 whole_archive_flag_spec \
11219 compiler_needs_object \
11220 with_gnu_ld \
11221 allow_undefined_flag \
11222 no_undefined_flag \
11223 hardcode_libdir_flag_spec \
11224 hardcode_libdir_flag_spec_ld \
11225 hardcode_libdir_separator \
11226 fix_srcfile_path \
11227 exclude_expsyms \
11228 include_expsyms \
11229 file_list_spec \
11230 variables_saved_for_relink \
11231 libname_spec \
11232 library_names_spec \
11233 soname_spec \
11234 finish_eval \
11235 old_striplib \
11236 striplib; do
11237 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
11238 *[\\\\\\\`\\"\\\$]*)
11239 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
11242 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11244 esac
11245 done
11247 # Double-quote double-evaled strings.
11248 for var in reload_cmds \
11249 old_postinstall_cmds \
11250 old_postuninstall_cmds \
11251 old_archive_cmds \
11252 extract_expsyms_cmds \
11253 old_archive_from_new_cmds \
11254 old_archive_from_expsyms_cmds \
11255 archive_cmds \
11256 archive_expsym_cmds \
11257 module_cmds \
11258 module_expsym_cmds \
11259 export_symbols_cmds \
11260 prelink_cmds \
11261 postinstall_cmds \
11262 postuninstall_cmds \
11263 finish_cmds \
11264 sys_lib_search_path_spec \
11265 sys_lib_dlsearch_path_spec; do
11266 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
11267 *[\\\\\\\`\\"\\\$]*)
11268 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
11271 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11273 esac
11274 done
11276 # Fix-up fallback echo if it was mangled by the above quoting rules.
11277 case \$lt_ECHO in
11278 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
11280 esac
11282 ac_aux_dir='$ac_aux_dir'
11283 xsi_shell='$xsi_shell'
11284 lt_shell_append='$lt_shell_append'
11286 # See if we are running on zsh, and set the options which allow our
11287 # commands through without removal of \ escapes INIT.
11288 if test -n "\${ZSH_VERSION+set}" ; then
11289 setopt NO_GLOB_SUBST
11293 PACKAGE='$PACKAGE'
11294 VERSION='$VERSION'
11295 TIMESTAMP='$TIMESTAMP'
11296 RM='$RM'
11297 ofile='$ofile'
11302 _ACEOF
11306 cat >>$CONFIG_STATUS <<\_ACEOF
11307 for ac_config_target in $ac_config_targets
11309 case "$ac_config_target" in
11310 # Handling of arguments.
11311 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11312 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
11313 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
11314 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11315 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11316 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11317 { (exit 1); exit 1; }; };;
11318 esac
11319 done
11321 # If the user did not use the arguments to specify the items to instantiate,
11322 # then the envvar interface is used. Set only those that are not.
11323 # We use the long form for the default assignment because of an extremely
11324 # bizarre bug on SunOS 4.1.3.
11325 if $ac_need_defaults; then
11326 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11327 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11328 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11331 # Have a temporary directory for convenience. Make it in the build tree
11332 # simply because there is no reason to put it here, and in addition,
11333 # creating and moving files from /tmp can sometimes cause problems.
11334 # Create a temporary directory, and hook for its removal unless debugging.
11335 $debug ||
11337 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11338 trap '{ (exit 1); exit 1; }' 1 2 13 15
11341 # Create a (secure) tmp directory for tmp files.
11344 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11345 test -n "$tmp" && test -d "$tmp"
11346 } ||
11348 tmp=./confstat$$-$RANDOM
11349 (umask 077 && mkdir $tmp)
11350 } ||
11352 echo "$me: cannot create a temporary directory in ." >&2
11353 { (exit 1); exit 1; }
11356 _ACEOF
11358 cat >>$CONFIG_STATUS <<_ACEOF
11361 # CONFIG_FILES section.
11364 # No need to generate the scripts if there are no CONFIG_FILES.
11365 # This happens for instance when ./config.status config.h
11366 if test -n "\$CONFIG_FILES"; then
11367 # Protect against being on the right side of a sed subst in config.status.
11368 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11369 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11370 s,@SHELL@,$SHELL,;t t
11371 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11372 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11373 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11374 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11375 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11376 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11377 s,@exec_prefix@,$exec_prefix,;t t
11378 s,@prefix@,$prefix,;t t
11379 s,@program_transform_name@,$program_transform_name,;t t
11380 s,@bindir@,$bindir,;t t
11381 s,@sbindir@,$sbindir,;t t
11382 s,@libexecdir@,$libexecdir,;t t
11383 s,@datadir@,$datadir,;t t
11384 s,@sysconfdir@,$sysconfdir,;t t
11385 s,@sharedstatedir@,$sharedstatedir,;t t
11386 s,@localstatedir@,$localstatedir,;t t
11387 s,@libdir@,$libdir,;t t
11388 s,@includedir@,$includedir,;t t
11389 s,@oldincludedir@,$oldincludedir,;t t
11390 s,@infodir@,$infodir,;t t
11391 s,@mandir@,$mandir,;t t
11392 s,@build_alias@,$build_alias,;t t
11393 s,@host_alias@,$host_alias,;t t
11394 s,@target_alias@,$target_alias,;t t
11395 s,@DEFS@,$DEFS,;t t
11396 s,@ECHO_C@,$ECHO_C,;t t
11397 s,@ECHO_N@,$ECHO_N,;t t
11398 s,@ECHO_T@,$ECHO_T,;t t
11399 s,@LIBS@,$LIBS,;t t
11400 s,@build@,$build,;t t
11401 s,@build_cpu@,$build_cpu,;t t
11402 s,@build_vendor@,$build_vendor,;t t
11403 s,@build_os@,$build_os,;t t
11404 s,@build_libsubdir@,$build_libsubdir,;t t
11405 s,@build_subdir@,$build_subdir,;t t
11406 s,@host_subdir@,$host_subdir,;t t
11407 s,@target_subdir@,$target_subdir,;t t
11408 s,@VERSION@,$VERSION,;t t
11409 s,@OBJC_BOEHM_GC@,$OBJC_BOEHM_GC,;t t
11410 s,@OBJC_BOEHM_GC_INCLUDES@,$OBJC_BOEHM_GC_INCLUDES,;t t
11411 s,@multi_basedir@,$multi_basedir,;t t
11412 s,@host@,$host,;t t
11413 s,@host_cpu@,$host_cpu,;t t
11414 s,@host_vendor@,$host_vendor,;t t
11415 s,@host_os@,$host_os,;t t
11416 s,@target@,$target,;t t
11417 s,@target_cpu@,$target_cpu,;t t
11418 s,@target_vendor@,$target_vendor,;t t
11419 s,@target_os@,$target_os,;t t
11420 s,@target_noncanonical@,$target_noncanonical,;t t
11421 s,@glibcpp_srcdir@,$glibcpp_srcdir,;t t
11422 s,@toolexecdir@,$toolexecdir,;t t
11423 s,@toolexeclibdir@,$toolexeclibdir,;t t
11424 s,@includedirname@,$includedirname,;t t
11425 s,@libsuffix@,$libsuffix,;t t
11426 s,@CC@,$CC,;t t
11427 s,@ac_ct_CC@,$ac_ct_CC,;t t
11428 s,@EXEEXT@,$EXEEXT,;t t
11429 s,@OBJEXT@,$OBJEXT,;t t
11430 s,@extra_ldflags_libobjc@,$extra_ldflags_libobjc,;t t
11431 s,@CFLAGS@,$CFLAGS,;t t
11432 s,@AS@,$AS,;t t
11433 s,@ac_ct_AS@,$ac_ct_AS,;t t
11434 s,@AR@,$AR,;t t
11435 s,@ac_ct_AR@,$ac_ct_AR,;t t
11436 s,@RANLIB@,$RANLIB,;t t
11437 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11438 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11439 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11440 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11441 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
11442 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
11443 s,@MAINT@,$MAINT,;t t
11444 s,@DLLTOOL@,$DLLTOOL,;t t
11445 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
11446 s,@OBJDUMP@,$OBJDUMP,;t t
11447 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
11448 s,@LIBTOOL@,$LIBTOOL,;t t
11449 s,@SED@,$SED,;t t
11450 s,@EGREP@,$EGREP,;t t
11451 s,@FGREP@,$FGREP,;t t
11452 s,@GREP@,$GREP,;t t
11453 s,@LD@,$LD,;t t
11454 s,@DUMPBIN@,$DUMPBIN,;t t
11455 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
11456 s,@NM@,$NM,;t t
11457 s,@LN_S@,$LN_S,;t t
11458 s,@STRIP@,$STRIP,;t t
11459 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11460 s,@lt_ECHO@,$lt_ECHO,;t t
11461 s,@CPP@,$CPP,;t t
11462 s,@CPPFLAGS@,$CPPFLAGS,;t t
11463 s,@SET_MAKE@,$SET_MAKE,;t t
11464 s,@LIBOBJS@,$LIBOBJS,;t t
11465 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11466 CEOF
11468 _ACEOF
11470 cat >>$CONFIG_STATUS <<\_ACEOF
11471 # Split the substitutions into bite-sized pieces for seds with
11472 # small command number limits, like on Digital OSF/1 and HP-UX.
11473 ac_max_sed_lines=48
11474 ac_sed_frag=1 # Number of current file.
11475 ac_beg=1 # First line for current file.
11476 ac_end=$ac_max_sed_lines # Line after last line for current file.
11477 ac_more_lines=:
11478 ac_sed_cmds=
11479 while $ac_more_lines; do
11480 if test $ac_beg -gt 1; then
11481 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11482 else
11483 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11485 if test ! -s $tmp/subs.frag; then
11486 ac_more_lines=false
11487 else
11488 # The purpose of the label and of the branching condition is to
11489 # speed up the sed processing (if there are no `@' at all, there
11490 # is no need to browse any of the substitutions).
11491 # These are the two extra sed commands mentioned above.
11492 (echo ':t
11493 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11494 if test -z "$ac_sed_cmds"; then
11495 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11496 else
11497 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11499 ac_sed_frag=`expr $ac_sed_frag + 1`
11500 ac_beg=$ac_end
11501 ac_end=`expr $ac_end + $ac_max_sed_lines`
11503 done
11504 if test -z "$ac_sed_cmds"; then
11505 ac_sed_cmds=cat
11507 fi # test -n "$CONFIG_FILES"
11509 _ACEOF
11510 cat >>$CONFIG_STATUS <<\_ACEOF
11511 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11512 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11513 case $ac_file in
11514 - | *:- | *:-:* ) # input from stdin
11515 cat >$tmp/stdin
11516 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11517 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11518 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11519 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11520 * ) ac_file_in=$ac_file.in ;;
11521 esac
11523 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11524 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11525 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11526 X"$ac_file" : 'X\(//\)[^/]' \| \
11527 X"$ac_file" : 'X\(//\)$' \| \
11528 X"$ac_file" : 'X\(/\)' \| \
11529 . : '\(.\)' 2>/dev/null ||
11530 echo X"$ac_file" |
11531 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11532 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11533 /^X\(\/\/\)$/{ s//\1/; q; }
11534 /^X\(\/\).*/{ s//\1/; q; }
11535 s/.*/./; q'`
11536 { if $as_mkdir_p; then
11537 mkdir -p "$ac_dir"
11538 else
11539 as_dir="$ac_dir"
11540 as_dirs=
11541 while test ! -d "$as_dir"; do
11542 as_dirs="$as_dir $as_dirs"
11543 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11544 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11545 X"$as_dir" : 'X\(//\)[^/]' \| \
11546 X"$as_dir" : 'X\(//\)$' \| \
11547 X"$as_dir" : 'X\(/\)' \| \
11548 . : '\(.\)' 2>/dev/null ||
11549 echo X"$as_dir" |
11550 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11551 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11552 /^X\(\/\/\)$/{ s//\1/; q; }
11553 /^X\(\/\).*/{ s//\1/; q; }
11554 s/.*/./; q'`
11555 done
11556 test ! -n "$as_dirs" || mkdir $as_dirs
11557 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11558 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11559 { (exit 1); exit 1; }; }; }
11561 ac_builddir=.
11563 if test "$ac_dir" != .; then
11564 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11565 # A "../" for each directory in $ac_dir_suffix.
11566 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11567 else
11568 ac_dir_suffix= ac_top_builddir=
11571 case $srcdir in
11572 .) # No --srcdir option. We are building in place.
11573 ac_srcdir=.
11574 if test -z "$ac_top_builddir"; then
11575 ac_top_srcdir=.
11576 else
11577 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11578 fi ;;
11579 [\\/]* | ?:[\\/]* ) # Absolute path.
11580 ac_srcdir=$srcdir$ac_dir_suffix;
11581 ac_top_srcdir=$srcdir ;;
11582 *) # Relative path.
11583 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11584 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11585 esac
11587 # Do not use `cd foo && pwd` to compute absolute paths, because
11588 # the directories may not exist.
11589 case `pwd` in
11590 .) ac_abs_builddir="$ac_dir";;
11592 case "$ac_dir" in
11593 .) ac_abs_builddir=`pwd`;;
11594 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11595 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11596 esac;;
11597 esac
11598 case $ac_abs_builddir in
11599 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11601 case ${ac_top_builddir}. in
11602 .) ac_abs_top_builddir=$ac_abs_builddir;;
11603 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11604 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11605 esac;;
11606 esac
11607 case $ac_abs_builddir in
11608 .) ac_abs_srcdir=$ac_srcdir;;
11610 case $ac_srcdir in
11611 .) ac_abs_srcdir=$ac_abs_builddir;;
11612 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11613 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11614 esac;;
11615 esac
11616 case $ac_abs_builddir in
11617 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11619 case $ac_top_srcdir in
11620 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11621 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11622 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11623 esac;;
11624 esac
11627 case $INSTALL in
11628 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11629 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11630 esac
11632 if test x"$ac_file" != x-; then
11633 { echo "$as_me:$LINENO: creating $ac_file" >&5
11634 echo "$as_me: creating $ac_file" >&6;}
11635 rm -f "$ac_file"
11637 # Let's still pretend it is `configure' which instantiates (i.e., don't
11638 # use $as_me), people would be surprised to read:
11639 # /* config.h. Generated by config.status. */
11640 if test x"$ac_file" = x-; then
11641 configure_input=
11642 else
11643 configure_input="$ac_file. "
11645 configure_input=$configure_input"Generated from `echo $ac_file_in |
11646 sed 's,.*/,,'` by configure."
11648 # First look for the input files in the build tree, otherwise in the
11649 # src tree.
11650 ac_file_inputs=`IFS=:
11651 for f in $ac_file_in; do
11652 case $f in
11653 -) echo $tmp/stdin ;;
11654 [\\/$]*)
11655 # Absolute (can't be DOS-style, as IFS=:)
11656 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11657 echo "$as_me: error: cannot find input file: $f" >&2;}
11658 { (exit 1); exit 1; }; }
11659 echo "$f";;
11660 *) # Relative
11661 if test -f "$f"; then
11662 # Build tree
11663 echo "$f"
11664 elif test -f "$srcdir/$f"; then
11665 # Source tree
11666 echo "$srcdir/$f"
11667 else
11668 # /dev/null tree
11669 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11670 echo "$as_me: error: cannot find input file: $f" >&2;}
11671 { (exit 1); exit 1; }; }
11672 fi;;
11673 esac
11674 done` || { (exit 1); exit 1; }
11675 _ACEOF
11676 cat >>$CONFIG_STATUS <<_ACEOF
11677 sed "$ac_vpsub
11678 $extrasub
11679 _ACEOF
11680 cat >>$CONFIG_STATUS <<\_ACEOF
11682 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11683 s,@configure_input@,$configure_input,;t t
11684 s,@srcdir@,$ac_srcdir,;t t
11685 s,@abs_srcdir@,$ac_abs_srcdir,;t t
11686 s,@top_srcdir@,$ac_top_srcdir,;t t
11687 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11688 s,@builddir@,$ac_builddir,;t t
11689 s,@abs_builddir@,$ac_abs_builddir,;t t
11690 s,@top_builddir@,$ac_top_builddir,;t t
11691 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11692 s,@INSTALL@,$ac_INSTALL,;t t
11693 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11694 rm -f $tmp/stdin
11695 if test x"$ac_file" != x-; then
11696 mv $tmp/out $ac_file
11697 else
11698 cat $tmp/out
11699 rm -f $tmp/out
11702 done
11703 _ACEOF
11704 cat >>$CONFIG_STATUS <<\_ACEOF
11707 # CONFIG_HEADER section.
11710 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11711 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11713 # ac_d sets the value in "#define NAME VALUE" lines.
11714 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11715 ac_dB='[ ].*$,\1#\2'
11716 ac_dC=' '
11717 ac_dD=',;t'
11718 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11719 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11720 ac_uB='$,\1#\2define\3'
11721 ac_uC=' '
11722 ac_uD=',;t'
11724 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11725 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11726 case $ac_file in
11727 - | *:- | *:-:* ) # input from stdin
11728 cat >$tmp/stdin
11729 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11730 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11731 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11732 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11733 * ) ac_file_in=$ac_file.in ;;
11734 esac
11736 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11737 echo "$as_me: creating $ac_file" >&6;}
11739 # First look for the input files in the build tree, otherwise in the
11740 # src tree.
11741 ac_file_inputs=`IFS=:
11742 for f in $ac_file_in; do
11743 case $f in
11744 -) echo $tmp/stdin ;;
11745 [\\/$]*)
11746 # Absolute (can't be DOS-style, as IFS=:)
11747 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11748 echo "$as_me: error: cannot find input file: $f" >&2;}
11749 { (exit 1); exit 1; }; }
11750 # Do quote $f, to prevent DOS paths from being IFS'd.
11751 echo "$f";;
11752 *) # Relative
11753 if test -f "$f"; then
11754 # Build tree
11755 echo "$f"
11756 elif test -f "$srcdir/$f"; then
11757 # Source tree
11758 echo "$srcdir/$f"
11759 else
11760 # /dev/null tree
11761 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11762 echo "$as_me: error: cannot find input file: $f" >&2;}
11763 { (exit 1); exit 1; }; }
11764 fi;;
11765 esac
11766 done` || { (exit 1); exit 1; }
11767 # Remove the trailing spaces.
11768 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11770 _ACEOF
11772 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11773 # `conftest.undefs', that substitutes the proper values into
11774 # config.h.in to produce config.h. The first handles `#define'
11775 # templates, and the second `#undef' templates.
11776 # And first: Protect against being on the right side of a sed subst in
11777 # config.status. Protect against being in an unquoted here document
11778 # in config.status.
11779 rm -f conftest.defines conftest.undefs
11780 # Using a here document instead of a string reduces the quoting nightmare.
11781 # Putting comments in sed scripts is not portable.
11783 # `end' is used to avoid that the second main sed command (meant for
11784 # 0-ary CPP macros) applies to n-ary macro definitions.
11785 # See the Autoconf documentation for `clear'.
11786 cat >confdef2sed.sed <<\_ACEOF
11787 s/[\\&,]/\\&/g
11788 s,[\\$`],\\&,g
11789 t clear
11790 : clear
11791 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11792 t end
11793 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11794 : end
11795 _ACEOF
11796 # If some macros were called several times there might be several times
11797 # the same #defines, which is useless. Nevertheless, we may not want to
11798 # sort them, since we want the *last* AC-DEFINE to be honored.
11799 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11800 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11801 rm -f confdef2sed.sed
11803 # This sed command replaces #undef with comments. This is necessary, for
11804 # example, in the case of _POSIX_SOURCE, which is predefined and required
11805 # on some systems where configure will not decide to define it.
11806 cat >>conftest.undefs <<\_ACEOF
11807 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11808 _ACEOF
11810 # Break up conftest.defines because some shells have a limit on the size
11811 # of here documents, and old seds have small limits too (100 cmds).
11812 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11813 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11814 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11815 echo ' :' >>$CONFIG_STATUS
11816 rm -f conftest.tail
11817 while grep . conftest.defines >/dev/null
11819 # Write a limited-size here document to $tmp/defines.sed.
11820 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11821 # Speed up: don't consider the non `#define' lines.
11822 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
11823 # Work around the forget-to-reset-the-flag bug.
11824 echo 't clr' >>$CONFIG_STATUS
11825 echo ': clr' >>$CONFIG_STATUS
11826 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11827 echo 'CEOF
11828 sed -f $tmp/defines.sed $tmp/in >$tmp/out
11829 rm -f $tmp/in
11830 mv $tmp/out $tmp/in
11831 ' >>$CONFIG_STATUS
11832 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11833 rm -f conftest.defines
11834 mv conftest.tail conftest.defines
11835 done
11836 rm -f conftest.defines
11837 echo ' fi # grep' >>$CONFIG_STATUS
11838 echo >>$CONFIG_STATUS
11840 # Break up conftest.undefs because some shells have a limit on the size
11841 # of here documents, and old seds have small limits too (100 cmds).
11842 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
11843 rm -f conftest.tail
11844 while grep . conftest.undefs >/dev/null
11846 # Write a limited-size here document to $tmp/undefs.sed.
11847 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11848 # Speed up: don't consider the non `#undef'
11849 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
11850 # Work around the forget-to-reset-the-flag bug.
11851 echo 't clr' >>$CONFIG_STATUS
11852 echo ': clr' >>$CONFIG_STATUS
11853 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11854 echo 'CEOF
11855 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11856 rm -f $tmp/in
11857 mv $tmp/out $tmp/in
11858 ' >>$CONFIG_STATUS
11859 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11860 rm -f conftest.undefs
11861 mv conftest.tail conftest.undefs
11862 done
11863 rm -f conftest.undefs
11865 cat >>$CONFIG_STATUS <<\_ACEOF
11866 # Let's still pretend it is `configure' which instantiates (i.e., don't
11867 # use $as_me), people would be surprised to read:
11868 # /* config.h. Generated by config.status. */
11869 if test x"$ac_file" = x-; then
11870 echo "/* Generated by configure. */" >$tmp/config.h
11871 else
11872 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
11874 cat $tmp/in >>$tmp/config.h
11875 rm -f $tmp/in
11876 if test x"$ac_file" != x-; then
11877 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11878 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11879 echo "$as_me: $ac_file is unchanged" >&6;}
11880 else
11881 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11882 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11883 X"$ac_file" : 'X\(//\)[^/]' \| \
11884 X"$ac_file" : 'X\(//\)$' \| \
11885 X"$ac_file" : 'X\(/\)' \| \
11886 . : '\(.\)' 2>/dev/null ||
11887 echo X"$ac_file" |
11888 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11889 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11890 /^X\(\/\/\)$/{ s//\1/; q; }
11891 /^X\(\/\).*/{ s//\1/; q; }
11892 s/.*/./; q'`
11893 { if $as_mkdir_p; then
11894 mkdir -p "$ac_dir"
11895 else
11896 as_dir="$ac_dir"
11897 as_dirs=
11898 while test ! -d "$as_dir"; do
11899 as_dirs="$as_dir $as_dirs"
11900 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11901 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11902 X"$as_dir" : 'X\(//\)[^/]' \| \
11903 X"$as_dir" : 'X\(//\)$' \| \
11904 X"$as_dir" : 'X\(/\)' \| \
11905 . : '\(.\)' 2>/dev/null ||
11906 echo X"$as_dir" |
11907 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11908 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11909 /^X\(\/\/\)$/{ s//\1/; q; }
11910 /^X\(\/\).*/{ s//\1/; q; }
11911 s/.*/./; q'`
11912 done
11913 test ! -n "$as_dirs" || mkdir $as_dirs
11914 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11915 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11916 { (exit 1); exit 1; }; }; }
11918 rm -f $ac_file
11919 mv $tmp/config.h $ac_file
11921 else
11922 cat $tmp/config.h
11923 rm -f $tmp/config.h
11925 done
11926 _ACEOF
11927 cat >>$CONFIG_STATUS <<\_ACEOF
11930 # CONFIG_COMMANDS section.
11932 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
11933 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
11934 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
11935 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
11936 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11937 X"$ac_dest" : 'X\(//\)[^/]' \| \
11938 X"$ac_dest" : 'X\(//\)$' \| \
11939 X"$ac_dest" : 'X\(/\)' \| \
11940 . : '\(.\)' 2>/dev/null ||
11941 echo X"$ac_dest" |
11942 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11943 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11944 /^X\(\/\/\)$/{ s//\1/; q; }
11945 /^X\(\/\).*/{ s//\1/; q; }
11946 s/.*/./; q'`
11947 { if $as_mkdir_p; then
11948 mkdir -p "$ac_dir"
11949 else
11950 as_dir="$ac_dir"
11951 as_dirs=
11952 while test ! -d "$as_dir"; do
11953 as_dirs="$as_dir $as_dirs"
11954 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11955 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11956 X"$as_dir" : 'X\(//\)[^/]' \| \
11957 X"$as_dir" : 'X\(//\)$' \| \
11958 X"$as_dir" : 'X\(/\)' \| \
11959 . : '\(.\)' 2>/dev/null ||
11960 echo X"$as_dir" |
11961 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11962 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11963 /^X\(\/\/\)$/{ s//\1/; q; }
11964 /^X\(\/\).*/{ s//\1/; q; }
11965 s/.*/./; q'`
11966 done
11967 test ! -n "$as_dirs" || mkdir $as_dirs
11968 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11969 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11970 { (exit 1); exit 1; }; }; }
11972 ac_builddir=.
11974 if test "$ac_dir" != .; then
11975 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11976 # A "../" for each directory in $ac_dir_suffix.
11977 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11978 else
11979 ac_dir_suffix= ac_top_builddir=
11982 case $srcdir in
11983 .) # No --srcdir option. We are building in place.
11984 ac_srcdir=.
11985 if test -z "$ac_top_builddir"; then
11986 ac_top_srcdir=.
11987 else
11988 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11989 fi ;;
11990 [\\/]* | ?:[\\/]* ) # Absolute path.
11991 ac_srcdir=$srcdir$ac_dir_suffix;
11992 ac_top_srcdir=$srcdir ;;
11993 *) # Relative path.
11994 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11995 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11996 esac
11998 # Do not use `cd foo && pwd` to compute absolute paths, because
11999 # the directories may not exist.
12000 case `pwd` in
12001 .) ac_abs_builddir="$ac_dir";;
12003 case "$ac_dir" in
12004 .) ac_abs_builddir=`pwd`;;
12005 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12006 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12007 esac;;
12008 esac
12009 case $ac_abs_builddir in
12010 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12012 case ${ac_top_builddir}. in
12013 .) ac_abs_top_builddir=$ac_abs_builddir;;
12014 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12015 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12016 esac;;
12017 esac
12018 case $ac_abs_builddir in
12019 .) ac_abs_srcdir=$ac_srcdir;;
12021 case $ac_srcdir in
12022 .) ac_abs_srcdir=$ac_abs_builddir;;
12023 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12024 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12025 esac;;
12026 esac
12027 case $ac_abs_builddir in
12028 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12030 case $ac_top_srcdir in
12031 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12032 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12033 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12034 esac;;
12035 esac
12038 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12039 echo "$as_me: executing $ac_dest commands" >&6;}
12040 case $ac_dest in
12041 default-1 )
12042 # Only add multilib support code if we just rebuilt the top-level
12043 # Makefile.
12044 case " $CONFIG_FILES " in
12045 *" Makefile "*)
12046 ac_file=Makefile . ${multi_basedir}/config-ml.in
12048 esac ;;
12049 libtool )
12051 # See if we are running on zsh, and set the options which allow our
12052 # commands through without removal of \ escapes.
12053 if test -n "${ZSH_VERSION+set}" ; then
12054 setopt NO_GLOB_SUBST
12057 cfgfile="${ofile}T"
12058 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12059 $RM "$cfgfile"
12061 cat <<_LT_EOF >> "$cfgfile"
12062 #! $SHELL
12064 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12065 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
12066 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12067 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12069 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12070 # 2006, 2007 Free Software Foundation, Inc.
12072 # This file is part of GNU Libtool:
12073 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
12075 # This program is free software; you can redistribute it and/or modify
12076 # it under the terms of the GNU General Public License as published by
12077 # the Free Software Foundation; either version 2 of the License, or
12078 # (at your option) any later version.
12080 # This program is distributed in the hope that it will be useful, but
12081 # WITHOUT ANY WARRANTY; without even the implied warranty of
12082 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12083 # General Public License for more details.
12085 # You should have received a copy of the GNU General Public License
12086 # along with this program; if not, a copy can be downloaded from
12087 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
12088 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
12089 # MA 02110-1301, USA.
12091 # As a special exception to the GNU General Public License, if you
12092 # distribute this file as part of a program that contains a
12093 # configuration script generated by Autoconf, you may include it under
12094 # the same distribution terms that you use for the rest of that program.
12097 # The names of the tagged configurations supported by this script.
12098 available_tags=""
12100 # ### BEGIN LIBTOOL CONFIG
12102 # Assembler program.
12103 AS=$AS
12105 # DLL creation program.
12106 DLLTOOL=$DLLTOOL
12108 # Object dumper program.
12109 OBJDUMP=$OBJDUMP
12111 # Which release of libtool.m4 was used?
12112 macro_version=$macro_version
12113 macro_revision=$macro_revision
12115 # Whether or not to build shared libraries.
12116 build_libtool_libs=$enable_shared
12118 # Whether or not to build static libraries.
12119 build_old_libs=$enable_static
12121 # What type of objects to build.
12122 pic_mode=$pic_mode
12124 # Whether or not to optimize for fast installation.
12125 fast_install=$enable_fast_install
12127 # The host system.
12128 host_alias=$host_alias
12129 host=$host
12130 host_os=$host_os
12132 # The build system.
12133 build_alias=$build_alias
12134 build=$build
12135 build_os=$build_os
12137 # A sed program that does not truncate output.
12138 SED=$lt_SED
12140 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12141 Xsed="\$SED -e 1s/^X//"
12143 # A grep program that handles long lines.
12144 GREP=$lt_GREP
12146 # An ERE matcher.
12147 EGREP=$lt_EGREP
12149 # A literal string matcher.
12150 FGREP=$lt_FGREP
12152 # A BSD- or MS-compatible name lister.
12153 NM=$lt_NM
12155 # Whether we need soft or hard links.
12156 LN_S=$lt_LN_S
12158 # What is the maximum length of a command?
12159 max_cmd_len=$max_cmd_len
12161 # Object file suffix (normally "o").
12162 objext=$ac_objext
12164 # Executable file suffix (normally "").
12165 exeext=$exeext
12167 # whether the shell understands "unset".
12168 lt_unset=$lt_unset
12170 # turn spaces into newlines.
12171 SP2NL=$lt_lt_SP2NL
12173 # turn newlines into spaces.
12174 NL2SP=$lt_lt_NL2SP
12176 # How to create reloadable object files.
12177 reload_flag=$lt_reload_flag
12178 reload_cmds=$lt_reload_cmds
12180 # Method to check whether dependent libraries are shared objects.
12181 deplibs_check_method=$lt_deplibs_check_method
12183 # Command to use when deplibs_check_method == "file_magic".
12184 file_magic_cmd=$lt_file_magic_cmd
12186 # The archiver.
12187 AR=$lt_AR
12188 AR_FLAGS=$lt_AR_FLAGS
12190 # A symbol stripping program.
12191 STRIP=$lt_STRIP
12193 # Commands used to install an old-style archive.
12194 RANLIB=$lt_RANLIB
12195 old_postinstall_cmds=$lt_old_postinstall_cmds
12196 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12198 # A C compiler.
12199 LTCC=$lt_CC
12201 # LTCC compiler flags.
12202 LTCFLAGS=$lt_CFLAGS
12204 # Take the output of nm and produce a listing of raw symbols and C names.
12205 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12207 # Transform the output of nm in a proper C declaration.
12208 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12210 # Transform the output of nm in a C name address pair.
12211 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12213 # The name of the directory that contains temporary libtool files.
12214 objdir=$objdir
12216 # Shell to use when invoking shell scripts.
12217 SHELL=$lt_SHELL
12219 # An echo program that does not interpret backslashes.
12220 ECHO=$lt_ECHO
12222 # Used to examine libraries when file_magic_cmd begins with "file".
12223 MAGIC_CMD=$MAGIC_CMD
12225 # Must we lock files when doing compilation?
12226 need_locks=$lt_need_locks
12228 # Old archive suffix (normally "a").
12229 libext=$libext
12231 # Shared library suffix (normally ".so").
12232 shrext_cmds=$lt_shrext_cmds
12234 # The commands to extract the exported symbol list from a shared archive.
12235 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12237 # Variables whose values should be saved in libtool wrapper scripts and
12238 # restored at link time.
12239 variables_saved_for_relink=$lt_variables_saved_for_relink
12241 # Do we need the "lib" prefix for modules?
12242 need_lib_prefix=$need_lib_prefix
12244 # Do we need a version for libraries?
12245 need_version=$need_version
12247 # Library versioning type.
12248 version_type=$version_type
12250 # Shared library runtime path variable.
12251 runpath_var=$runpath_var
12253 # Shared library path variable.
12254 shlibpath_var=$shlibpath_var
12256 # Is shlibpath searched before the hard-coded library search path?
12257 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12259 # Format of library name prefix.
12260 libname_spec=$lt_libname_spec
12262 # List of archive names. First name is the real one, the rest are links.
12263 # The last name is the one that the linker finds with -lNAME
12264 library_names_spec=$lt_library_names_spec
12266 # The coded name of the library, if different from the real name.
12267 soname_spec=$lt_soname_spec
12269 # Command to use after installation of a shared archive.
12270 postinstall_cmds=$lt_postinstall_cmds
12272 # Command to use after uninstallation of a shared archive.
12273 postuninstall_cmds=$lt_postuninstall_cmds
12275 # Commands used to finish a libtool library installation in a directory.
12276 finish_cmds=$lt_finish_cmds
12278 # As "finish_cmds", except a single script fragment to be evaled but
12279 # not shown.
12280 finish_eval=$lt_finish_eval
12282 # Whether we should hardcode library paths into libraries.
12283 hardcode_into_libs=$hardcode_into_libs
12285 # Compile-time system search path for libraries.
12286 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12288 # Run-time system search path for libraries.
12289 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12291 # Whether dlopen is supported.
12292 dlopen_support=$enable_dlopen
12294 # Whether dlopen of programs is supported.
12295 dlopen_self=$enable_dlopen_self
12297 # Whether dlopen of statically linked programs is supported.
12298 dlopen_self_static=$enable_dlopen_self_static
12300 # Commands to strip libraries.
12301 old_striplib=$lt_old_striplib
12302 striplib=$lt_striplib
12305 # The linker used to build libraries.
12306 LD=$lt_LD
12308 # Commands used to build an old-style archive.
12309 old_archive_cmds=$lt_old_archive_cmds
12311 # A language specific compiler.
12312 CC=$lt_compiler
12314 # Is the compiler the GNU compiler?
12315 with_gcc=$GCC
12317 # Compiler flag to turn off builtin functions.
12318 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12320 # How to pass a linker flag through the compiler.
12321 wl=$lt_lt_prog_compiler_wl
12323 # Additional compiler flags for building library objects.
12324 pic_flag=$lt_lt_prog_compiler_pic
12326 # Compiler flag to prevent dynamic linking.
12327 link_static_flag=$lt_lt_prog_compiler_static
12329 # Does compiler simultaneously support -c and -o options?
12330 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12332 # Whether or not to add -lc for building shared libraries.
12333 build_libtool_need_lc=$archive_cmds_need_lc
12335 # Whether or not to disallow shared libs when runtime libs are static.
12336 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12338 # Compiler flag to allow reflexive dlopens.
12339 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12341 # Compiler flag to generate shared objects directly from archives.
12342 whole_archive_flag_spec=$lt_whole_archive_flag_spec
12344 # Whether the compiler copes with passing no objects directly.
12345 compiler_needs_object=$lt_compiler_needs_object
12347 # Create an old-style archive from a shared archive.
12348 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12350 # Create a temporary old-style archive to link instead of a shared archive.
12351 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12353 # Commands used to build a shared archive.
12354 archive_cmds=$lt_archive_cmds
12355 archive_expsym_cmds=$lt_archive_expsym_cmds
12357 # Commands used to build a loadable module if different from building
12358 # a shared archive.
12359 module_cmds=$lt_module_cmds
12360 module_expsym_cmds=$lt_module_expsym_cmds
12362 # Whether we are building with GNU ld or not.
12363 with_gnu_ld=$lt_with_gnu_ld
12365 # Flag that allows shared libraries with undefined symbols to be built.
12366 allow_undefined_flag=$lt_allow_undefined_flag
12368 # Flag that enforces no undefined symbols.
12369 no_undefined_flag=$lt_no_undefined_flag
12371 # Flag to hardcode \$libdir into a binary during linking.
12372 # This must work even if \$libdir does not exist
12373 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12375 # If ld is used when linking, flag to hardcode \$libdir into a binary
12376 # during linking. This must work even if \$libdir does not exist.
12377 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12379 # Whether we need a single "-rpath" flag with a separated argument.
12380 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12382 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12383 # DIR into the resulting binary.
12384 hardcode_direct=$hardcode_direct
12386 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12387 # DIR into the resulting binary and the resulting library dependency is
12388 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
12389 # library is relocated.
12390 hardcode_direct_absolute=$hardcode_direct_absolute
12392 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
12393 # into the resulting binary.
12394 hardcode_minus_L=$hardcode_minus_L
12396 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
12397 # into the resulting binary.
12398 hardcode_shlibpath_var=$hardcode_shlibpath_var
12400 # Set to "yes" if building a shared library automatically hardcodes DIR
12401 # into the library and all subsequent libraries and executables linked
12402 # against it.
12403 hardcode_automatic=$hardcode_automatic
12405 # Set to yes if linker adds runtime paths of dependent libraries
12406 # to runtime path list.
12407 inherit_rpath=$inherit_rpath
12409 # Whether libtool must link a program against all its dependency libraries.
12410 link_all_deplibs=$link_all_deplibs
12412 # Fix the shell variable \$srcfile for the compiler.
12413 fix_srcfile_path=$lt_fix_srcfile_path
12415 # Set to "yes" if exported symbols are required.
12416 always_export_symbols=$always_export_symbols
12418 # The commands to list exported symbols.
12419 export_symbols_cmds=$lt_export_symbols_cmds
12421 # Symbols that should not be listed in the preloaded symbols.
12422 exclude_expsyms=$lt_exclude_expsyms
12424 # Symbols that must always be exported.
12425 include_expsyms=$lt_include_expsyms
12427 # Commands necessary for linking programs (against libraries) with templates.
12428 prelink_cmds=$lt_prelink_cmds
12430 # Specify filename containing input files.
12431 file_list_spec=$lt_file_list_spec
12433 # How to hardcode a shared library path into an executable.
12434 hardcode_action=$hardcode_action
12436 # ### END LIBTOOL CONFIG
12438 _LT_EOF
12440 case $host_os in
12441 aix3*)
12442 cat <<\_LT_EOF >> "$cfgfile"
12443 # AIX sometimes has problems with the GCC collect2 program. For some
12444 # reason, if we set the COLLECT_NAMES environment variable, the problems
12445 # vanish in a puff of smoke.
12446 if test "X${COLLECT_NAMES+set}" != Xset; then
12447 COLLECT_NAMES=
12448 export COLLECT_NAMES
12450 _LT_EOF
12452 esac
12455 ltmain="$ac_aux_dir/ltmain.sh"
12458 # We use sed instead of cat because bash on DJGPP gets confused if
12459 # if finds mixed CR/LF and LF-only lines. Since sed operates in
12460 # text mode, it properly converts lines to CR/LF. This bash problem
12461 # is reportedly fixed, but why not run on old versions too?
12462 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
12463 || (rm -f "$cfgfile"; exit 1)
12465 case $xsi_shell in
12466 yes)
12467 cat << \_LT_EOF >> "$cfgfile"
12468 # func_dirname file append nondir_replacement
12469 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
12470 # otherwise set result to NONDIR_REPLACEMENT.
12471 func_dirname ()
12473 case ${1} in
12474 */*) func_dirname_result="${1%/*}${2}" ;;
12475 * ) func_dirname_result="${3}" ;;
12476 esac
12479 # func_basename file
12480 func_basename ()
12482 func_basename_result="${1##*/}"
12485 # func_stripname prefix suffix name
12486 # strip PREFIX and SUFFIX off of NAME.
12487 # PREFIX and SUFFIX must not contain globbing or regex special
12488 # characters, hashes, percent signs, but SUFFIX may contain a leading
12489 # dot (in which case that matches only a dot).
12490 func_stripname ()
12492 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
12493 # positional parameters, so assign one to ordinary parameter first.
12494 func_stripname_result=${3}
12495 func_stripname_result=${func_stripname_result#"${1}"}
12496 func_stripname_result=${func_stripname_result%"${2}"}
12499 # func_opt_split
12500 func_opt_split ()
12502 func_opt_split_opt=${1%%=*}
12503 func_opt_split_arg=${1#*=}
12506 # func_lo2o object
12507 func_lo2o ()
12509 case ${1} in
12510 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
12511 *) func_lo2o_result=${1} ;;
12512 esac
12514 _LT_EOF
12516 *) # Bourne compatible functions.
12517 cat << \_LT_EOF >> "$cfgfile"
12518 # func_dirname file append nondir_replacement
12519 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
12520 # otherwise set result to NONDIR_REPLACEMENT.
12521 func_dirname ()
12523 # Extract subdirectory from the argument.
12524 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
12525 if test "X$func_dirname_result" = "X${1}"; then
12526 func_dirname_result="${3}"
12527 else
12528 func_dirname_result="$func_dirname_result${2}"
12532 # func_basename file
12533 func_basename ()
12535 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
12538 # func_stripname prefix suffix name
12539 # strip PREFIX and SUFFIX off of NAME.
12540 # PREFIX and SUFFIX must not contain globbing or regex special
12541 # characters, hashes, percent signs, but SUFFIX may contain a leading
12542 # dot (in which case that matches only a dot).
12543 # func_strip_suffix prefix name
12544 func_stripname ()
12546 case ${2} in
12547 .*) func_stripname_result=`$ECHO "X${3}" \
12548 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
12549 *) func_stripname_result=`$ECHO "X${3}" \
12550 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
12551 esac
12554 # sed scripts:
12555 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
12556 my_sed_long_arg='1s/^-[^=]*=//'
12558 # func_opt_split
12559 func_opt_split ()
12561 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
12562 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
12565 # func_lo2o object
12566 func_lo2o ()
12568 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
12570 _LT_EOF
12571 esac
12573 case $lt_shell_append in
12574 yes)
12575 cat << \_LT_EOF >> "$cfgfile"
12577 # func_append var value
12578 # Append VALUE to the end of shell variable VAR.
12579 func_append ()
12581 eval "$1+=\$2"
12583 _LT_EOF
12586 cat << \_LT_EOF >> "$cfgfile"
12588 # func_append var value
12589 # Append VALUE to the end of shell variable VAR.
12590 func_append ()
12592 eval "$1=\$$1\$2"
12594 _LT_EOF
12596 esac
12599 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
12600 || (rm -f "$cfgfile"; exit 1)
12602 mv -f "$cfgfile" "$ofile" ||
12603 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12604 chmod +x "$ofile"
12607 esac
12608 done
12609 _ACEOF
12611 cat >>$CONFIG_STATUS <<\_ACEOF
12613 { (exit 0); exit 0; }
12614 _ACEOF
12615 chmod +x $CONFIG_STATUS
12616 ac_clean_files=$ac_clean_files_save
12619 # configure is writing to config.log, and then calls config.status.
12620 # config.status does its own redirection, appending to config.log.
12621 # Unfortunately, on DOS this fails, as config.log is still kept open
12622 # by configure, so config.status won't be able to write to it; its
12623 # output is simply discarded. So we exec the FD to /dev/null,
12624 # effectively closing config.log, so it can be properly (re)opened and
12625 # appended to by config.status. When coming back to configure, we
12626 # need to make the FD available again.
12627 if test "$no_create" != yes; then
12628 ac_cs_success=:
12629 ac_config_status_args=
12630 test "$silent" = yes &&
12631 ac_config_status_args="$ac_config_status_args --quiet"
12632 exec 5>/dev/null
12633 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12634 exec 5>>config.log
12635 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12636 # would make configure fail if this is the last instruction.
12637 $ac_cs_success || { (exit 1); exit 1; }