Enable trampoline code for nx-protected stack Windows.
[official-gcc.git] / zlib / configure
blob127b0e119fc7c41613fae528d0040bf01fc8861b
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
248 case X$lt_ECHO in
249 X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
253 esac
255 ECHO=${lt_ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
258 shift
259 elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
262 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $ECHO works!
265 else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
270 if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
272 shift
273 cat <<_LT_EOF
275 _LT_EOF
276 exit 0
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
280 # if CDPATH is set.
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
283 if test -z "$lt_ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
289 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
290 then
291 break
293 done
296 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
297 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
298 test "X$echo_testing_string" = "X$echo_test_string"; then
300 else
301 # The Solaris, AIX, and Digital Unix default echo programs unquote
302 # backslashes. This makes it impossible to quote backslashes using
303 # echo "$something" | sed 's/\\/\\\\/g'
305 # So, first we look for a working echo in the user's PATH.
307 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
308 for dir in $PATH /usr/ucb; do
309 IFS="$lt_save_ifs"
310 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
311 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313 test "X$echo_testing_string" = "X$echo_test_string"; then
314 ECHO="$dir/echo"
315 break
317 done
318 IFS="$lt_save_ifs"
320 if test "X$ECHO" = Xecho; then
321 # We didn't find a better echo, so look for alternatives.
322 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
323 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
324 test "X$echo_testing_string" = "X$echo_test_string"; then
325 # This shell has a builtin print -r that does the trick.
326 ECHO='print -r'
327 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
328 test "X$CONFIG_SHELL" != X/bin/ksh; then
329 # If we have ksh, try running configure again with it.
330 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
331 export ORIGINAL_CONFIG_SHELL
332 CONFIG_SHELL=/bin/ksh
333 export CONFIG_SHELL
334 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
335 else
336 # Try using printf.
337 ECHO='printf %s\n'
338 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
339 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
340 test "X$echo_testing_string" = "X$echo_test_string"; then
341 # Cool, printf works
343 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344 test "X$echo_testing_string" = 'X\t' &&
345 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346 test "X$echo_testing_string" = "X$echo_test_string"; then
347 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
348 export CONFIG_SHELL
349 SHELL="$CONFIG_SHELL"
350 export SHELL
351 ECHO="$CONFIG_SHELL $0 --fallback-echo"
352 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353 test "X$echo_testing_string" = 'X\t' &&
354 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355 test "X$echo_testing_string" = "X$echo_test_string"; then
356 ECHO="$CONFIG_SHELL $0 --fallback-echo"
357 else
358 # maybe with a smaller string...
359 prev=:
361 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
363 then
364 break
366 prev="$cmd"
367 done
369 if test "$prev" != 'sed 50q "$0"'; then
370 echo_test_string=`eval $prev`
371 export echo_test_string
372 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
373 else
374 # Oops. We lost completely, so just stick with echo.
375 ECHO=echo
383 # Copy echo and quote the copy suitably for passing to libtool from
384 # the Makefile, instead of quoting the original, which is used later.
385 lt_ECHO=$ECHO
386 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
393 # Name of the host.
394 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395 # so uname gets run too.
396 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
398 exec 6>&1
401 # Initializations.
403 ac_default_prefix=/usr/local
404 ac_config_libobj_dir=.
405 cross_compiling=no
406 subdirs=
407 MFLAGS=
408 MAKEFLAGS=
409 SHELL=${CONFIG_SHELL-/bin/sh}
411 # Maximum number of lines to put in a shell here document.
412 # This variable seems obsolete. It should probably be removed, and
413 # only ac_max_sed_lines should be used.
414 : ${ac_max_here_lines=38}
416 # Identity of this package.
417 PACKAGE_NAME=
418 PACKAGE_TARNAME=
419 PACKAGE_VERSION=
420 PACKAGE_STRING=
421 PACKAGE_BUGREPORT=
423 ac_unique_file="zlib.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 multi_basedir build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os mkinstalldirs INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT COMPPATH CC ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CFLAGS LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO CPP CPPFLAGS target_all toolexecdir toolexeclibdir TARGET_LIBRARY_TRUE TARGET_LIBRARY_FALSE LIBOBJS LTLIBOBJS'
462 ac_subst_files=''
464 # Initialize some variables set by options.
465 ac_init_help=
466 ac_init_version=false
467 # The variables have the same names as the options, with
468 # dashes changed to underlines.
469 cache_file=/dev/null
470 exec_prefix=NONE
471 no_create=
472 no_recursion=
473 prefix=NONE
474 program_prefix=NONE
475 program_suffix=NONE
476 program_transform_name=s,x,x,
477 silent=
478 site=
479 srcdir=
480 verbose=
481 x_includes=NONE
482 x_libraries=NONE
484 # Installation directory options.
485 # These are left unexpanded so users can "make install exec_prefix=/foo"
486 # and all the variables that are supposed to be based on exec_prefix
487 # by default will actually change.
488 # Use braces instead of parens because sh, perl, etc. also accept them.
489 bindir='${exec_prefix}/bin'
490 sbindir='${exec_prefix}/sbin'
491 libexecdir='${exec_prefix}/libexec'
492 datadir='${prefix}/share'
493 sysconfdir='${prefix}/etc'
494 sharedstatedir='${prefix}/com'
495 localstatedir='${prefix}/var'
496 libdir='${exec_prefix}/lib'
497 includedir='${prefix}/include'
498 oldincludedir='/usr/include'
499 infodir='${prefix}/info'
500 mandir='${prefix}/man'
502 ac_prev=
503 for ac_option
505 # If the previous option needs an argument, assign it.
506 if test -n "$ac_prev"; then
507 eval "$ac_prev=\$ac_option"
508 ac_prev=
509 continue
512 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
514 # Accept the important Cygnus configure options, so we can diagnose typos.
516 case $ac_option in
518 -bindir | --bindir | --bindi | --bind | --bin | --bi)
519 ac_prev=bindir ;;
520 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
521 bindir=$ac_optarg ;;
523 -build | --build | --buil | --bui | --bu)
524 ac_prev=build_alias ;;
525 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
526 build_alias=$ac_optarg ;;
528 -cache-file | --cache-file | --cache-fil | --cache-fi \
529 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
530 ac_prev=cache_file ;;
531 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
532 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
533 cache_file=$ac_optarg ;;
535 --config-cache | -C)
536 cache_file=config.cache ;;
538 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
539 ac_prev=datadir ;;
540 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
541 | --da=*)
542 datadir=$ac_optarg ;;
544 -disable-* | --disable-*)
545 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
546 # Reject names that are not valid shell variable names.
547 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
548 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
549 { (exit 1); exit 1; }; }
550 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
551 eval "enable_$ac_feature=no" ;;
553 -enable-* | --enable-*)
554 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
555 # Reject names that are not valid shell variable names.
556 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558 { (exit 1); exit 1; }; }
559 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560 case $ac_option in
561 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
562 *) ac_optarg=yes ;;
563 esac
564 eval "enable_$ac_feature='$ac_optarg'" ;;
566 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
567 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
568 | --exec | --exe | --ex)
569 ac_prev=exec_prefix ;;
570 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
571 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
572 | --exec=* | --exe=* | --ex=*)
573 exec_prefix=$ac_optarg ;;
575 -gas | --gas | --ga | --g)
576 # Obsolete; use --with-gas.
577 with_gas=yes ;;
579 -help | --help | --hel | --he | -h)
580 ac_init_help=long ;;
581 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
582 ac_init_help=recursive ;;
583 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
584 ac_init_help=short ;;
586 -host | --host | --hos | --ho)
587 ac_prev=host_alias ;;
588 -host=* | --host=* | --hos=* | --ho=*)
589 host_alias=$ac_optarg ;;
591 -includedir | --includedir | --includedi | --included | --include \
592 | --includ | --inclu | --incl | --inc)
593 ac_prev=includedir ;;
594 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
595 | --includ=* | --inclu=* | --incl=* | --inc=*)
596 includedir=$ac_optarg ;;
598 -infodir | --infodir | --infodi | --infod | --info | --inf)
599 ac_prev=infodir ;;
600 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
601 infodir=$ac_optarg ;;
603 -libdir | --libdir | --libdi | --libd)
604 ac_prev=libdir ;;
605 -libdir=* | --libdir=* | --libdi=* | --libd=*)
606 libdir=$ac_optarg ;;
608 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
609 | --libexe | --libex | --libe)
610 ac_prev=libexecdir ;;
611 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
612 | --libexe=* | --libex=* | --libe=*)
613 libexecdir=$ac_optarg ;;
615 -localstatedir | --localstatedir | --localstatedi | --localstated \
616 | --localstate | --localstat | --localsta | --localst \
617 | --locals | --local | --loca | --loc | --lo)
618 ac_prev=localstatedir ;;
619 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
620 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
621 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
622 localstatedir=$ac_optarg ;;
624 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
625 ac_prev=mandir ;;
626 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
627 mandir=$ac_optarg ;;
629 -nfp | --nfp | --nf)
630 # Obsolete; use --without-fp.
631 with_fp=no ;;
633 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
634 | --no-cr | --no-c | -n)
635 no_create=yes ;;
637 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
638 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
639 no_recursion=yes ;;
641 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
642 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
643 | --oldin | --oldi | --old | --ol | --o)
644 ac_prev=oldincludedir ;;
645 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
646 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
647 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
648 oldincludedir=$ac_optarg ;;
650 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
651 ac_prev=prefix ;;
652 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
653 prefix=$ac_optarg ;;
655 -program-prefix | --program-prefix | --program-prefi | --program-pref \
656 | --program-pre | --program-pr | --program-p)
657 ac_prev=program_prefix ;;
658 -program-prefix=* | --program-prefix=* | --program-prefi=* \
659 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
660 program_prefix=$ac_optarg ;;
662 -program-suffix | --program-suffix | --program-suffi | --program-suff \
663 | --program-suf | --program-su | --program-s)
664 ac_prev=program_suffix ;;
665 -program-suffix=* | --program-suffix=* | --program-suffi=* \
666 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
667 program_suffix=$ac_optarg ;;
669 -program-transform-name | --program-transform-name \
670 | --program-transform-nam | --program-transform-na \
671 | --program-transform-n | --program-transform- \
672 | --program-transform | --program-transfor \
673 | --program-transfo | --program-transf \
674 | --program-trans | --program-tran \
675 | --progr-tra | --program-tr | --program-t)
676 ac_prev=program_transform_name ;;
677 -program-transform-name=* | --program-transform-name=* \
678 | --program-transform-nam=* | --program-transform-na=* \
679 | --program-transform-n=* | --program-transform-=* \
680 | --program-transform=* | --program-transfor=* \
681 | --program-transfo=* | --program-transf=* \
682 | --program-trans=* | --program-tran=* \
683 | --progr-tra=* | --program-tr=* | --program-t=*)
684 program_transform_name=$ac_optarg ;;
686 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
687 | -silent | --silent | --silen | --sile | --sil)
688 silent=yes ;;
690 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
691 ac_prev=sbindir ;;
692 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
693 | --sbi=* | --sb=*)
694 sbindir=$ac_optarg ;;
696 -sharedstatedir | --sharedstatedir | --sharedstatedi \
697 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
698 | --sharedst | --shareds | --shared | --share | --shar \
699 | --sha | --sh)
700 ac_prev=sharedstatedir ;;
701 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
702 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
703 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
704 | --sha=* | --sh=*)
705 sharedstatedir=$ac_optarg ;;
707 -site | --site | --sit)
708 ac_prev=site ;;
709 -site=* | --site=* | --sit=*)
710 site=$ac_optarg ;;
712 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
713 ac_prev=srcdir ;;
714 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
715 srcdir=$ac_optarg ;;
717 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
718 | --syscon | --sysco | --sysc | --sys | --sy)
719 ac_prev=sysconfdir ;;
720 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
721 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
722 sysconfdir=$ac_optarg ;;
724 -target | --target | --targe | --targ | --tar | --ta | --t)
725 ac_prev=target_alias ;;
726 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
727 target_alias=$ac_optarg ;;
729 -v | -verbose | --verbose | --verbos | --verbo | --verb)
730 verbose=yes ;;
732 -version | --version | --versio | --versi | --vers | -V)
733 ac_init_version=: ;;
735 -with-* | --with-*)
736 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
737 # Reject names that are not valid shell variable names.
738 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
739 { echo "$as_me: error: invalid package name: $ac_package" >&2
740 { (exit 1); exit 1; }; }
741 ac_package=`echo $ac_package| sed 's/-/_/g'`
742 case $ac_option in
743 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
744 *) ac_optarg=yes ;;
745 esac
746 eval "with_$ac_package='$ac_optarg'" ;;
748 -without-* | --without-*)
749 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
750 # Reject names that are not valid shell variable names.
751 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
752 { echo "$as_me: error: invalid package name: $ac_package" >&2
753 { (exit 1); exit 1; }; }
754 ac_package=`echo $ac_package | sed 's/-/_/g'`
755 eval "with_$ac_package=no" ;;
757 --x)
758 # Obsolete; use --with-x.
759 with_x=yes ;;
761 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
762 | --x-incl | --x-inc | --x-in | --x-i)
763 ac_prev=x_includes ;;
764 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
765 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
766 x_includes=$ac_optarg ;;
768 -x-libraries | --x-libraries | --x-librarie | --x-librari \
769 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
770 ac_prev=x_libraries ;;
771 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
772 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
773 x_libraries=$ac_optarg ;;
775 -*) { echo "$as_me: error: unrecognized option: $ac_option
776 Try \`$0 --help' for more information." >&2
777 { (exit 1); exit 1; }; }
780 *=*)
781 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
782 # Reject names that are not valid shell variable names.
783 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
784 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
785 { (exit 1); exit 1; }; }
786 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
787 eval "$ac_envvar='$ac_optarg'"
788 export $ac_envvar ;;
791 # FIXME: should be removed in autoconf 3.0.
792 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
793 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
794 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
795 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
798 esac
799 done
801 if test -n "$ac_prev"; then
802 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
803 { echo "$as_me: error: missing argument to $ac_option" >&2
804 { (exit 1); exit 1; }; }
807 # Be sure to have absolute paths.
808 for ac_var in exec_prefix prefix
810 eval ac_val=$`echo $ac_var`
811 case $ac_val in
812 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
813 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
814 { (exit 1); exit 1; }; };;
815 esac
816 done
818 # Be sure to have absolute paths.
819 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
820 localstatedir libdir includedir oldincludedir infodir mandir
822 eval ac_val=$`echo $ac_var`
823 case $ac_val in
824 [\\/$]* | ?:[\\/]* ) ;;
825 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
826 { (exit 1); exit 1; }; };;
827 esac
828 done
830 # There might be people who depend on the old broken behavior: `$host'
831 # used to hold the argument of --host etc.
832 # FIXME: To remove some day.
833 build=$build_alias
834 host=$host_alias
835 target=$target_alias
837 # FIXME: To remove some day.
838 if test "x$host_alias" != x; then
839 if test "x$build_alias" = x; then
840 cross_compiling=maybe
841 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
842 If a cross compiler is detected then cross compile mode will be used." >&2
843 elif test "x$build_alias" != "x$host_alias"; then
844 cross_compiling=yes
848 ac_tool_prefix=
849 test -n "$host_alias" && ac_tool_prefix=$host_alias-
851 test "$silent" = yes && exec 6>/dev/null
854 # Find the source files, if location was not specified.
855 if test -z "$srcdir"; then
856 ac_srcdir_defaulted=yes
857 # Try the directory containing this script, then its parent.
858 ac_confdir=`(dirname "$0") 2>/dev/null ||
859 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
860 X"$0" : 'X\(//\)[^/]' \| \
861 X"$0" : 'X\(//\)$' \| \
862 X"$0" : 'X\(/\)' \| \
863 . : '\(.\)' 2>/dev/null ||
864 echo X"$0" |
865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
866 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
867 /^X\(\/\/\)$/{ s//\1/; q; }
868 /^X\(\/\).*/{ s//\1/; q; }
869 s/.*/./; q'`
870 srcdir=$ac_confdir
871 if test ! -r $srcdir/$ac_unique_file; then
872 srcdir=..
874 else
875 ac_srcdir_defaulted=no
877 if test ! -r $srcdir/$ac_unique_file; then
878 if test "$ac_srcdir_defaulted" = yes; then
879 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
880 { (exit 1); exit 1; }; }
881 else
882 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
883 { (exit 1); exit 1; }; }
886 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
887 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
888 { (exit 1); exit 1; }; }
889 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
890 ac_env_build_alias_set=${build_alias+set}
891 ac_env_build_alias_value=$build_alias
892 ac_cv_env_build_alias_set=${build_alias+set}
893 ac_cv_env_build_alias_value=$build_alias
894 ac_env_host_alias_set=${host_alias+set}
895 ac_env_host_alias_value=$host_alias
896 ac_cv_env_host_alias_set=${host_alias+set}
897 ac_cv_env_host_alias_value=$host_alias
898 ac_env_target_alias_set=${target_alias+set}
899 ac_env_target_alias_value=$target_alias
900 ac_cv_env_target_alias_set=${target_alias+set}
901 ac_cv_env_target_alias_value=$target_alias
902 ac_env_CPP_set=${CPP+set}
903 ac_env_CPP_value=$CPP
904 ac_cv_env_CPP_set=${CPP+set}
905 ac_cv_env_CPP_value=$CPP
906 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
907 ac_env_CPPFLAGS_value=$CPPFLAGS
908 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
909 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
912 # Report the --help message.
914 if test "$ac_init_help" = "long"; then
915 # Omit some internal or obsolete options to make the list less imposing.
916 # This message is too long to be a string in the A/UX 3.1 sh.
917 cat <<_ACEOF
918 \`configure' configures this package to adapt to many kinds of systems.
920 Usage: $0 [OPTION]... [VAR=VALUE]...
922 To assign environment variables (e.g., CC, CFLAGS...), specify them as
923 VAR=VALUE. See below for descriptions of some of the useful variables.
925 Defaults for the options are specified in brackets.
927 Configuration:
928 -h, --help display this help and exit
929 --help=short display options specific to this package
930 --help=recursive display the short help of all the included packages
931 -V, --version display version information and exit
932 -q, --quiet, --silent do not print \`checking...' messages
933 --cache-file=FILE cache test results in FILE [disabled]
934 -C, --config-cache alias for \`--cache-file=config.cache'
935 -n, --no-create do not create output files
936 --srcdir=DIR find the sources in DIR [configure dir or \`..']
938 _ACEOF
940 cat <<_ACEOF
941 Installation directories:
942 --prefix=PREFIX install architecture-independent files in PREFIX
943 [$ac_default_prefix]
944 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
945 [PREFIX]
947 By default, \`make install' will install all the files in
948 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
949 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
950 for instance \`--prefix=\$HOME'.
952 For better control, use the options below.
954 Fine tuning of the installation directories:
955 --bindir=DIR user executables [EPREFIX/bin]
956 --sbindir=DIR system admin executables [EPREFIX/sbin]
957 --libexecdir=DIR program executables [EPREFIX/libexec]
958 --datadir=DIR read-only architecture-independent data [PREFIX/share]
959 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
960 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
961 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
962 --libdir=DIR object code libraries [EPREFIX/lib]
963 --includedir=DIR C header files [PREFIX/include]
964 --oldincludedir=DIR C header files for non-gcc [/usr/include]
965 --infodir=DIR info documentation [PREFIX/info]
966 --mandir=DIR man documentation [PREFIX/man]
967 _ACEOF
969 cat <<\_ACEOF
971 Program names:
972 --program-prefix=PREFIX prepend PREFIX to installed program names
973 --program-suffix=SUFFIX append SUFFIX to installed program names
974 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
976 System types:
977 --build=BUILD configure for building on BUILD [guessed]
978 --host=HOST cross-compile to build programs to run on HOST [BUILD]
979 --target=TARGET configure for building compilers for TARGET [HOST]
980 _ACEOF
983 if test -n "$ac_init_help"; then
985 cat <<\_ACEOF
987 Optional Features:
988 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
989 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
990 --enable-multilib build many library versions (default)
991 --enable-maintainer-mode enable make rules and dependencies not useful
992 (and sometimes confusing) to the casual installer
993 --disable-dependency-tracking speeds up one-time build
994 --enable-dependency-tracking do not reject slow dependency extractors
995 --enable-shared[=PKGS]
996 build shared libraries [default=yes]
997 --enable-static[=PKGS]
998 build static libraries [default=yes]
999 --enable-fast-install[=PKGS]
1000 optimize for fast installation [default=yes]
1001 --disable-libtool-lock avoid locking (might break parallel builds)
1003 Optional Packages:
1004 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1005 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1006 --with-target-subdir=SUBDIR
1007 configuring in a subdirectory
1008 --with-cross-host=HOST configuring with a cross compiler
1009 --with-system-zlib use installed libz
1010 --with-pic try to use only PIC/non-PIC objects [default=use
1011 both]
1012 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1014 Some influential environment variables:
1015 CC C compiler command
1016 CFLAGS C compiler flags
1017 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1018 nonstandard directory <lib dir>
1019 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1020 headers in a nonstandard directory <include dir>
1021 CPP C preprocessor
1023 Use these variables to override the choices made by `configure' or to help
1024 it to find libraries and programs with nonstandard names/locations.
1026 _ACEOF
1029 if test "$ac_init_help" = "recursive"; then
1030 # If there are subdirs, report their specific --help.
1031 ac_popdir=`pwd`
1032 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1033 test -d $ac_dir || continue
1034 ac_builddir=.
1036 if test "$ac_dir" != .; then
1037 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1038 # A "../" for each directory in $ac_dir_suffix.
1039 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1040 else
1041 ac_dir_suffix= ac_top_builddir=
1044 case $srcdir in
1045 .) # No --srcdir option. We are building in place.
1046 ac_srcdir=.
1047 if test -z "$ac_top_builddir"; then
1048 ac_top_srcdir=.
1049 else
1050 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1051 fi ;;
1052 [\\/]* | ?:[\\/]* ) # Absolute path.
1053 ac_srcdir=$srcdir$ac_dir_suffix;
1054 ac_top_srcdir=$srcdir ;;
1055 *) # Relative path.
1056 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1057 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1058 esac
1060 # Do not use `cd foo && pwd` to compute absolute paths, because
1061 # the directories may not exist.
1062 case `pwd` in
1063 .) ac_abs_builddir="$ac_dir";;
1065 case "$ac_dir" in
1066 .) ac_abs_builddir=`pwd`;;
1067 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1068 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1069 esac;;
1070 esac
1071 case $ac_abs_builddir in
1072 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1074 case ${ac_top_builddir}. in
1075 .) ac_abs_top_builddir=$ac_abs_builddir;;
1076 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1077 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1078 esac;;
1079 esac
1080 case $ac_abs_builddir in
1081 .) ac_abs_srcdir=$ac_srcdir;;
1083 case $ac_srcdir in
1084 .) ac_abs_srcdir=$ac_abs_builddir;;
1085 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1086 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1087 esac;;
1088 esac
1089 case $ac_abs_builddir in
1090 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1092 case $ac_top_srcdir in
1093 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1094 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1095 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1096 esac;;
1097 esac
1099 cd $ac_dir
1100 # Check for guested configure; otherwise get Cygnus style configure.
1101 if test -f $ac_srcdir/configure.gnu; then
1102 echo
1103 $SHELL $ac_srcdir/configure.gnu --help=recursive
1104 elif test -f $ac_srcdir/configure; then
1105 echo
1106 $SHELL $ac_srcdir/configure --help=recursive
1107 elif test -f $ac_srcdir/configure.ac ||
1108 test -f $ac_srcdir/configure.in; then
1109 echo
1110 $ac_configure --help
1111 else
1112 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1114 cd $ac_popdir
1115 done
1118 test -n "$ac_init_help" && exit 0
1119 if $ac_init_version; then
1120 cat <<\_ACEOF
1122 Copyright (C) 2003 Free Software Foundation, Inc.
1123 This configure script is free software; the Free Software Foundation
1124 gives unlimited permission to copy, distribute and modify it.
1125 _ACEOF
1126 exit 0
1128 exec 5>config.log
1129 cat >&5 <<_ACEOF
1130 This file contains any messages produced by compilers while
1131 running configure, to aid debugging if configure makes a mistake.
1133 It was created by $as_me, which was
1134 generated by GNU Autoconf 2.59. Invocation command line was
1136 $ $0 $@
1138 _ACEOF
1140 cat <<_ASUNAME
1141 ## --------- ##
1142 ## Platform. ##
1143 ## --------- ##
1145 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1146 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1147 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1148 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1149 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1151 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1152 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1154 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1155 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1156 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1157 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1158 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1159 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1160 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1162 _ASUNAME
1164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1165 for as_dir in $PATH
1167 IFS=$as_save_IFS
1168 test -z "$as_dir" && as_dir=.
1169 echo "PATH: $as_dir"
1170 done
1172 } >&5
1174 cat >&5 <<_ACEOF
1177 ## ----------- ##
1178 ## Core tests. ##
1179 ## ----------- ##
1181 _ACEOF
1184 # Keep a trace of the command line.
1185 # Strip out --no-create and --no-recursion so they do not pile up.
1186 # Strip out --silent because we don't want to record it for future runs.
1187 # Also quote any args containing shell meta-characters.
1188 # Make two passes to allow for proper duplicate-argument suppression.
1189 ac_configure_args=
1190 ac_configure_args0=
1191 ac_configure_args1=
1192 ac_sep=
1193 ac_must_keep_next=false
1194 for ac_pass in 1 2
1196 for ac_arg
1198 case $ac_arg in
1199 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1200 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1201 | -silent | --silent | --silen | --sile | --sil)
1202 continue ;;
1203 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1204 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1205 esac
1206 case $ac_pass in
1207 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1209 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1210 if test $ac_must_keep_next = true; then
1211 ac_must_keep_next=false # Got value, back to normal.
1212 else
1213 case $ac_arg in
1214 *=* | --config-cache | -C | -disable-* | --disable-* \
1215 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1216 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1217 | -with-* | --with-* | -without-* | --without-* | --x)
1218 case "$ac_configure_args0 " in
1219 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1220 esac
1222 -* ) ac_must_keep_next=true ;;
1223 esac
1225 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1226 # Get rid of the leading space.
1227 ac_sep=" "
1229 esac
1230 done
1231 done
1232 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1233 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1235 # When interrupted or exit'd, cleanup temporary files, and complete
1236 # config.log. We remove comments because anyway the quotes in there
1237 # would cause problems or look ugly.
1238 # WARNING: Be sure not to use single quotes in there, as some shells,
1239 # such as our DU 5.0 friend, will then `close' the trap.
1240 trap 'exit_status=$?
1241 # Save into config.log some information that might help in debugging.
1243 echo
1245 cat <<\_ASBOX
1246 ## ---------------- ##
1247 ## Cache variables. ##
1248 ## ---------------- ##
1249 _ASBOX
1250 echo
1251 # The following way of writing the cache mishandles newlines in values,
1253 (set) 2>&1 |
1254 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1255 *ac_space=\ *)
1256 sed -n \
1257 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1258 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1261 sed -n \
1262 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1264 esac;
1266 echo
1268 cat <<\_ASBOX
1269 ## ----------------- ##
1270 ## Output variables. ##
1271 ## ----------------- ##
1272 _ASBOX
1273 echo
1274 for ac_var in $ac_subst_vars
1276 eval ac_val=$`echo $ac_var`
1277 echo "$ac_var='"'"'$ac_val'"'"'"
1278 done | sort
1279 echo
1281 if test -n "$ac_subst_files"; then
1282 cat <<\_ASBOX
1283 ## ------------- ##
1284 ## Output files. ##
1285 ## ------------- ##
1286 _ASBOX
1287 echo
1288 for ac_var in $ac_subst_files
1290 eval ac_val=$`echo $ac_var`
1291 echo "$ac_var='"'"'$ac_val'"'"'"
1292 done | sort
1293 echo
1296 if test -s confdefs.h; then
1297 cat <<\_ASBOX
1298 ## ----------- ##
1299 ## confdefs.h. ##
1300 ## ----------- ##
1301 _ASBOX
1302 echo
1303 sed "/^$/d" confdefs.h | sort
1304 echo
1306 test "$ac_signal" != 0 &&
1307 echo "$as_me: caught signal $ac_signal"
1308 echo "$as_me: exit $exit_status"
1309 } >&5
1310 rm -f core *.core &&
1311 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1312 exit $exit_status
1314 for ac_signal in 1 2 13 15; do
1315 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1316 done
1317 ac_signal=0
1319 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1320 rm -rf conftest* confdefs.h
1321 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1322 echo >confdefs.h
1324 # Predefined preprocessor variables.
1326 cat >>confdefs.h <<_ACEOF
1327 #define PACKAGE_NAME "$PACKAGE_NAME"
1328 _ACEOF
1331 cat >>confdefs.h <<_ACEOF
1332 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1333 _ACEOF
1336 cat >>confdefs.h <<_ACEOF
1337 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1338 _ACEOF
1341 cat >>confdefs.h <<_ACEOF
1342 #define PACKAGE_STRING "$PACKAGE_STRING"
1343 _ACEOF
1346 cat >>confdefs.h <<_ACEOF
1347 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1348 _ACEOF
1351 # Let the site file select an alternate cache file if it wants to.
1352 # Prefer explicitly selected file to automatically selected ones.
1353 if test -z "$CONFIG_SITE"; then
1354 if test "x$prefix" != xNONE; then
1355 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1356 else
1357 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1360 for ac_site_file in $CONFIG_SITE; do
1361 if test -r "$ac_site_file"; then
1362 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1363 echo "$as_me: loading site script $ac_site_file" >&6;}
1364 sed 's/^/| /' "$ac_site_file" >&5
1365 . "$ac_site_file"
1367 done
1369 if test -r "$cache_file"; then
1370 # Some versions of bash will fail to source /dev/null (special
1371 # files actually), so we avoid doing that.
1372 if test -f "$cache_file"; then
1373 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1374 echo "$as_me: loading cache $cache_file" >&6;}
1375 case $cache_file in
1376 [\\/]* | ?:[\\/]* ) . $cache_file;;
1377 *) . ./$cache_file;;
1378 esac
1380 else
1381 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1382 echo "$as_me: creating cache $cache_file" >&6;}
1383 >$cache_file
1386 # Check that the precious variables saved in the cache have kept the same
1387 # value.
1388 ac_cache_corrupted=false
1389 for ac_var in `(set) 2>&1 |
1390 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1391 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1392 eval ac_new_set=\$ac_env_${ac_var}_set
1393 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1394 eval ac_new_val="\$ac_env_${ac_var}_value"
1395 case $ac_old_set,$ac_new_set in
1396 set,)
1397 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1398 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1399 ac_cache_corrupted=: ;;
1400 ,set)
1401 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1402 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1403 ac_cache_corrupted=: ;;
1404 ,);;
1406 if test "x$ac_old_val" != "x$ac_new_val"; then
1407 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1408 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1409 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1410 echo "$as_me: former value: $ac_old_val" >&2;}
1411 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1412 echo "$as_me: current value: $ac_new_val" >&2;}
1413 ac_cache_corrupted=:
1414 fi;;
1415 esac
1416 # Pass precious variables to config.status.
1417 if test "$ac_new_set" = set; then
1418 case $ac_new_val in
1419 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1420 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1421 *) ac_arg=$ac_var=$ac_new_val ;;
1422 esac
1423 case " $ac_configure_args " in
1424 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1425 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1426 esac
1428 done
1429 if $ac_cache_corrupted; then
1430 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1431 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1432 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1433 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1434 { (exit 1); exit 1; }; }
1437 ac_ext=c
1438 ac_cpp='$CPP $CPPFLAGS'
1439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1463 # Default to --enable-multilib
1464 # Check whether --enable-multilib or --disable-multilib was given.
1465 if test "${enable_multilib+set}" = set; then
1466 enableval="$enable_multilib"
1467 case "$enableval" in
1468 yes) multilib=yes ;;
1469 no) multilib=no ;;
1470 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1471 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1472 { (exit 1); exit 1; }; } ;;
1473 esac
1474 else
1475 multilib=yes
1478 # We may get other options which we leave undocumented:
1479 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1480 # See config-ml.in if you want the gory details.
1482 if test "$srcdir" = "."; then
1483 if test "$with_target_subdir" != "."; then
1484 multi_basedir="$srcdir/$with_multisrctop../.."
1485 else
1486 multi_basedir="$srcdir/$with_multisrctop.."
1488 else
1489 multi_basedir="$srcdir/.."
1493 # Even if the default multilib is not a cross compilation,
1494 # it may be that some of the other multilibs are.
1495 if test $cross_compiling = no && test $multilib = yes \
1496 && test "x${with_multisubdir}" != x ; then
1497 cross_compiling=maybe
1500 ac_config_commands="$ac_config_commands default-1"
1503 ac_aux_dir=
1504 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1505 if test -f $ac_dir/install-sh; then
1506 ac_aux_dir=$ac_dir
1507 ac_install_sh="$ac_aux_dir/install-sh -c"
1508 break
1509 elif test -f $ac_dir/install.sh; then
1510 ac_aux_dir=$ac_dir
1511 ac_install_sh="$ac_aux_dir/install.sh -c"
1512 break
1513 elif test -f $ac_dir/shtool; then
1514 ac_aux_dir=$ac_dir
1515 ac_install_sh="$ac_aux_dir/shtool install -c"
1516 break
1518 done
1519 if test -z "$ac_aux_dir"; then
1520 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1521 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1522 { (exit 1); exit 1; }; }
1524 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1525 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1526 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1528 # Make sure we can run config.sub.
1529 $ac_config_sub sun4 >/dev/null 2>&1 ||
1530 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1531 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1532 { (exit 1); exit 1; }; }
1534 echo "$as_me:$LINENO: checking build system type" >&5
1535 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1536 if test "${ac_cv_build+set}" = set; then
1537 echo $ECHO_N "(cached) $ECHO_C" >&6
1538 else
1539 ac_cv_build_alias=$build_alias
1540 test -z "$ac_cv_build_alias" &&
1541 ac_cv_build_alias=`$ac_config_guess`
1542 test -z "$ac_cv_build_alias" &&
1543 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1544 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1545 { (exit 1); exit 1; }; }
1546 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1547 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1548 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1549 { (exit 1); exit 1; }; }
1552 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1553 echo "${ECHO_T}$ac_cv_build" >&6
1554 build=$ac_cv_build
1555 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1556 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1557 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1560 echo "$as_me:$LINENO: checking host system type" >&5
1561 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1562 if test "${ac_cv_host+set}" = set; then
1563 echo $ECHO_N "(cached) $ECHO_C" >&6
1564 else
1565 ac_cv_host_alias=$host_alias
1566 test -z "$ac_cv_host_alias" &&
1567 ac_cv_host_alias=$ac_cv_build_alias
1568 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1569 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1570 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1571 { (exit 1); exit 1; }; }
1574 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1575 echo "${ECHO_T}$ac_cv_host" >&6
1576 host=$ac_cv_host
1577 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1578 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1579 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1582 echo "$as_me:$LINENO: checking target system type" >&5
1583 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1584 if test "${ac_cv_target+set}" = set; then
1585 echo $ECHO_N "(cached) $ECHO_C" >&6
1586 else
1587 ac_cv_target_alias=$target_alias
1588 test "x$ac_cv_target_alias" = "x" &&
1589 ac_cv_target_alias=$ac_cv_host_alias
1590 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1591 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1592 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1593 { (exit 1); exit 1; }; }
1596 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1597 echo "${ECHO_T}$ac_cv_target" >&6
1598 target=$ac_cv_target
1599 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1600 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1601 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1604 # The aliases save the names the user supplied, while $host etc.
1605 # will get canonicalized.
1606 test -n "$target_alias" &&
1607 test "$program_prefix$program_suffix$program_transform_name" = \
1608 NONENONEs,x,x, &&
1609 program_prefix=${target_alias}-
1611 # This works around an automake problem.
1612 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1615 am__api_version="1.9"
1616 # Find a good install program. We prefer a C program (faster),
1617 # so one script is as good as another. But avoid the broken or
1618 # incompatible versions:
1619 # SysV /etc/install, /usr/sbin/install
1620 # SunOS /usr/etc/install
1621 # IRIX /sbin/install
1622 # AIX /bin/install
1623 # AmigaOS /C/install, which installs bootblocks on floppy discs
1624 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1625 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1626 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1627 # OS/2's system install, which has a completely different semantic
1628 # ./install, which can be erroneously created by make from ./install.sh.
1629 # Reject install programs that cannot install multiple files.
1630 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1631 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1632 if test -z "$INSTALL"; then
1633 if test "${ac_cv_path_install+set}" = set; then
1634 echo $ECHO_N "(cached) $ECHO_C" >&6
1635 else
1636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1637 for as_dir in $PATH
1639 IFS=$as_save_IFS
1640 test -z "$as_dir" && as_dir=.
1641 # Account for people who put trailing slashes in PATH elements.
1642 case $as_dir/ in
1643 ./ | .// | /cC/* | \
1644 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1645 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1646 /usr/ucb/* ) ;;
1648 # OSF1 and SCO ODT 3.0 have their own names for install.
1649 # Don't use installbsd from OSF since it installs stuff as root
1650 # by default.
1651 for ac_prog in ginstall scoinst install; do
1652 for ac_exec_ext in '' $ac_executable_extensions; do
1653 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1654 if test $ac_prog = install &&
1655 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1656 # AIX install. It has an incompatible calling convention.
1658 elif test $ac_prog = install &&
1659 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1660 # program-specific install script used by HP pwplus--don't use.
1662 else
1663 rm -rf conftest.one conftest.two conftest.dir
1664 echo one > conftest.one
1665 echo two > conftest.two
1666 mkdir conftest.dir
1667 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1668 test -s conftest.one && test -s conftest.two &&
1669 test -s conftest.dir/conftest.one &&
1670 test -s conftest.dir/conftest.two
1671 then
1672 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1673 break 3
1677 done
1678 done
1680 esac
1681 done
1683 rm -rf conftest.one conftest.two conftest.dir
1686 if test "${ac_cv_path_install+set}" = set; then
1687 INSTALL=$ac_cv_path_install
1688 else
1689 # As a last resort, use the slow shell script. Don't cache a
1690 # value for INSTALL within a source directory, because that will
1691 # break other packages using the cache if that directory is
1692 # removed, or if the value is a relative name.
1693 INSTALL=$ac_install_sh
1696 echo "$as_me:$LINENO: result: $INSTALL" >&5
1697 echo "${ECHO_T}$INSTALL" >&6
1699 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1700 # It thinks the first close brace ends the variable substitution.
1701 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1703 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1705 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1707 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1708 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1709 # Just in case
1710 sleep 1
1711 echo timestamp > conftest.file
1712 # Do `set' in a subshell so we don't clobber the current shell's
1713 # arguments. Must try -L first in case configure is actually a
1714 # symlink; some systems play weird games with the mod time of symlinks
1715 # (eg FreeBSD returns the mod time of the symlink's containing
1716 # directory).
1717 if (
1718 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1719 if test "$*" = "X"; then
1720 # -L didn't work.
1721 set X `ls -t $srcdir/configure conftest.file`
1723 rm -f conftest.file
1724 if test "$*" != "X $srcdir/configure conftest.file" \
1725 && test "$*" != "X conftest.file $srcdir/configure"; then
1727 # If neither matched, then we have a broken ls. This can happen
1728 # if, for instance, CONFIG_SHELL is bash and it inherits a
1729 # broken ls alias from the environment. This has actually
1730 # happened. Such a system could not be considered "sane".
1731 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1732 alias in your environment" >&5
1733 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1734 alias in your environment" >&2;}
1735 { (exit 1); exit 1; }; }
1738 test "$2" = conftest.file
1740 then
1741 # Ok.
1743 else
1744 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1745 Check your system clock" >&5
1746 echo "$as_me: error: newly created file is older than distributed files!
1747 Check your system clock" >&2;}
1748 { (exit 1); exit 1; }; }
1750 echo "$as_me:$LINENO: result: yes" >&5
1751 echo "${ECHO_T}yes" >&6
1752 test "$program_prefix" != NONE &&
1753 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1754 # Use a double $ so make ignores it.
1755 test "$program_suffix" != NONE &&
1756 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1757 # Double any \ or $. echo might interpret backslashes.
1758 # By default was `s,x,x', remove it if useless.
1759 cat <<\_ACEOF >conftest.sed
1760 s/[\\$]/&&/g;s/;s,x,x,$//
1761 _ACEOF
1762 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1763 rm conftest.sed
1765 # expand $ac_aux_dir to an absolute path
1766 am_aux_dir=`cd $ac_aux_dir && pwd`
1768 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1769 # Use eval to expand $SHELL
1770 if eval "$MISSING --run true"; then
1771 am_missing_run="$MISSING --run "
1772 else
1773 am_missing_run=
1774 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1775 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1778 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1779 # We used to keeping the `.' as first argument, in order to
1780 # allow $(mkdir_p) to be used without argument. As in
1781 # $(mkdir_p) $(somedir)
1782 # where $(somedir) is conditionally defined. However this is wrong
1783 # for two reasons:
1784 # 1. if the package is installed by a user who cannot write `.'
1785 # make install will fail,
1786 # 2. the above comment should most certainly read
1787 # $(mkdir_p) $(DESTDIR)$(somedir)
1788 # so it does not work when $(somedir) is undefined and
1789 # $(DESTDIR) is not.
1790 # To support the latter case, we have to write
1791 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1792 # so the `.' trick is pointless.
1793 mkdir_p='mkdir -p --'
1794 else
1795 # On NextStep and OpenStep, the `mkdir' command does not
1796 # recognize any option. It will interpret all options as
1797 # directories to create, and then abort because `.' already
1798 # exists.
1799 for d in ./-p ./--version;
1801 test -d $d && rmdir $d
1802 done
1803 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1804 if test -f "$ac_aux_dir/mkinstalldirs"; then
1805 mkdir_p='$(mkinstalldirs)'
1806 else
1807 mkdir_p='$(install_sh) -d'
1811 for ac_prog in gawk mawk nawk awk
1813 # Extract the first word of "$ac_prog", so it can be a program name with args.
1814 set dummy $ac_prog; ac_word=$2
1815 echo "$as_me:$LINENO: checking for $ac_word" >&5
1816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1817 if test "${ac_cv_prog_AWK+set}" = set; then
1818 echo $ECHO_N "(cached) $ECHO_C" >&6
1819 else
1820 if test -n "$AWK"; then
1821 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1822 else
1823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1824 for as_dir in $PATH
1826 IFS=$as_save_IFS
1827 test -z "$as_dir" && as_dir=.
1828 for ac_exec_ext in '' $ac_executable_extensions; do
1829 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1830 ac_cv_prog_AWK="$ac_prog"
1831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1832 break 2
1834 done
1835 done
1839 AWK=$ac_cv_prog_AWK
1840 if test -n "$AWK"; then
1841 echo "$as_me:$LINENO: result: $AWK" >&5
1842 echo "${ECHO_T}$AWK" >&6
1843 else
1844 echo "$as_me:$LINENO: result: no" >&5
1845 echo "${ECHO_T}no" >&6
1848 test -n "$AWK" && break
1849 done
1851 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1852 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1853 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1854 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1855 echo $ECHO_N "(cached) $ECHO_C" >&6
1856 else
1857 cat >conftest.make <<\_ACEOF
1858 all:
1859 @echo 'ac_maketemp="$(MAKE)"'
1860 _ACEOF
1861 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1862 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1863 if test -n "$ac_maketemp"; then
1864 eval ac_cv_prog_make_${ac_make}_set=yes
1865 else
1866 eval ac_cv_prog_make_${ac_make}_set=no
1868 rm -f conftest.make
1870 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1871 echo "$as_me:$LINENO: result: yes" >&5
1872 echo "${ECHO_T}yes" >&6
1873 SET_MAKE=
1874 else
1875 echo "$as_me:$LINENO: result: no" >&5
1876 echo "${ECHO_T}no" >&6
1877 SET_MAKE="MAKE=${MAKE-make}"
1880 rm -rf .tst 2>/dev/null
1881 mkdir .tst 2>/dev/null
1882 if test -d .tst; then
1883 am__leading_dot=.
1884 else
1885 am__leading_dot=_
1887 rmdir .tst 2>/dev/null
1889 # test to see if srcdir already configured
1890 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1891 test -f $srcdir/config.status; then
1892 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1893 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1894 { (exit 1); exit 1; }; }
1897 # test whether we have cygpath
1898 if test -z "$CYGPATH_W"; then
1899 if (cygpath --version) >/dev/null 2>/dev/null; then
1900 CYGPATH_W='cygpath -w'
1901 else
1902 CYGPATH_W=echo
1907 # Define the identity of the package.
1908 PACKAGE=zlib
1909 VERSION=1.1.4
1912 cat >>confdefs.h <<_ACEOF
1913 #define PACKAGE "$PACKAGE"
1914 _ACEOF
1917 cat >>confdefs.h <<_ACEOF
1918 #define VERSION "$VERSION"
1919 _ACEOF
1921 # Some tools Automake needs.
1923 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1926 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1929 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1932 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1935 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1937 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1939 # Installed binaries are usually stripped using `strip' when the user
1940 # run `make install-strip'. However `strip' might not be the right
1941 # tool to use in cross-compilation environments, therefore Automake
1942 # will honor the `STRIP' environment variable to overrule this program.
1943 if test "$cross_compiling" != no; then
1944 if test -n "$ac_tool_prefix"; then
1945 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1946 set dummy ${ac_tool_prefix}strip; ac_word=$2
1947 echo "$as_me:$LINENO: checking for $ac_word" >&5
1948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1949 if test "${ac_cv_prog_STRIP+set}" = set; then
1950 echo $ECHO_N "(cached) $ECHO_C" >&6
1951 else
1952 if test -n "$STRIP"; then
1953 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1954 else
1955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1956 for as_dir in $PATH
1958 IFS=$as_save_IFS
1959 test -z "$as_dir" && as_dir=.
1960 for ac_exec_ext in '' $ac_executable_extensions; do
1961 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1962 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1964 break 2
1966 done
1967 done
1971 STRIP=$ac_cv_prog_STRIP
1972 if test -n "$STRIP"; then
1973 echo "$as_me:$LINENO: result: $STRIP" >&5
1974 echo "${ECHO_T}$STRIP" >&6
1975 else
1976 echo "$as_me:$LINENO: result: no" >&5
1977 echo "${ECHO_T}no" >&6
1981 if test -z "$ac_cv_prog_STRIP"; then
1982 ac_ct_STRIP=$STRIP
1983 # Extract the first word of "strip", so it can be a program name with args.
1984 set dummy strip; ac_word=$2
1985 echo "$as_me:$LINENO: checking for $ac_word" >&5
1986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1987 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1988 echo $ECHO_N "(cached) $ECHO_C" >&6
1989 else
1990 if test -n "$ac_ct_STRIP"; then
1991 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1992 else
1993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1994 for as_dir in $PATH
1996 IFS=$as_save_IFS
1997 test -z "$as_dir" && as_dir=.
1998 for ac_exec_ext in '' $ac_executable_extensions; do
1999 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2000 ac_cv_prog_ac_ct_STRIP="strip"
2001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2002 break 2
2004 done
2005 done
2007 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2010 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2011 if test -n "$ac_ct_STRIP"; then
2012 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2013 echo "${ECHO_T}$ac_ct_STRIP" >&6
2014 else
2015 echo "$as_me:$LINENO: result: no" >&5
2016 echo "${ECHO_T}no" >&6
2019 STRIP=$ac_ct_STRIP
2020 else
2021 STRIP="$ac_cv_prog_STRIP"
2025 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2027 # We need awk for the "check" target. The system "awk" is bad on
2028 # some platforms.
2029 # Always define AMTAR for backward compatibility.
2031 AMTAR=${AMTAR-"${am_missing_run}tar"}
2033 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2040 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2041 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
2042 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2043 if test "${enable_maintainer_mode+set}" = set; then
2044 enableval="$enable_maintainer_mode"
2045 USE_MAINTAINER_MODE=$enableval
2046 else
2047 USE_MAINTAINER_MODE=no
2049 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2050 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2053 if test $USE_MAINTAINER_MODE = yes; then
2054 MAINTAINER_MODE_TRUE=
2055 MAINTAINER_MODE_FALSE='#'
2056 else
2057 MAINTAINER_MODE_TRUE='#'
2058 MAINTAINER_MODE_FALSE=
2061 MAINT=$MAINTAINER_MODE_TRUE
2066 # Check whether --with-target-subdir or --without-target-subdir was given.
2067 if test "${with_target_subdir+set}" = set; then
2068 withval="$with_target_subdir"
2072 if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
2073 COMPPATH=.
2074 else
2075 COMPPATH=..
2080 # Check whether --with-cross-host or --without-cross-host was given.
2081 if test "${with_cross_host+set}" = set; then
2082 withval="$with_cross_host"
2086 # Check whether --enable-multilib or --disable-multilib was given.
2087 if test "${enable_multilib+set}" = set; then
2088 enableval="$enable_multilib"
2089 case "${enableval}" in
2090 yes) multilib=yes ;;
2091 no) multilib=no ;;
2092 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
2093 echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
2094 { (exit 1); exit 1; }; } ;;
2095 esac
2096 else
2097 test -z "$with_target_subdir" && multilib=no || multilib=yes
2100 # Check whether --with-system-zlib or --without-system-zlib was given.
2101 if test "${with_system_zlib+set}" = set; then
2102 withval="$with_system_zlib"
2106 # Make sure we don't test executables when making cross-tools.
2109 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
2110 # We must force CC to /not/ be precious variables; otherwise
2111 # the wrong, non-multilib-adjusted value will be used in multilibs.
2112 # As a side effect, we have to subst CFLAGS ourselves.
2116 ac_ext=c
2117 ac_cpp='$CPP $CPPFLAGS'
2118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2121 if test -n "$ac_tool_prefix"; then
2122 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2123 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2124 echo "$as_me:$LINENO: checking for $ac_word" >&5
2125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2126 if test "${ac_cv_prog_CC+set}" = set; then
2127 echo $ECHO_N "(cached) $ECHO_C" >&6
2128 else
2129 if test -n "$CC"; then
2130 ac_cv_prog_CC="$CC" # Let the user override the test.
2131 else
2132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2133 for as_dir in $PATH
2135 IFS=$as_save_IFS
2136 test -z "$as_dir" && as_dir=.
2137 for ac_exec_ext in '' $ac_executable_extensions; do
2138 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2139 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2141 break 2
2143 done
2144 done
2148 CC=$ac_cv_prog_CC
2149 if test -n "$CC"; then
2150 echo "$as_me:$LINENO: result: $CC" >&5
2151 echo "${ECHO_T}$CC" >&6
2152 else
2153 echo "$as_me:$LINENO: result: no" >&5
2154 echo "${ECHO_T}no" >&6
2158 if test -z "$ac_cv_prog_CC"; then
2159 ac_ct_CC=$CC
2160 # Extract the first word of "gcc", so it can be a program name with args.
2161 set dummy gcc; ac_word=$2
2162 echo "$as_me:$LINENO: checking for $ac_word" >&5
2163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2164 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2165 echo $ECHO_N "(cached) $ECHO_C" >&6
2166 else
2167 if test -n "$ac_ct_CC"; then
2168 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2169 else
2170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2171 for as_dir in $PATH
2173 IFS=$as_save_IFS
2174 test -z "$as_dir" && as_dir=.
2175 for ac_exec_ext in '' $ac_executable_extensions; do
2176 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2177 ac_cv_prog_ac_ct_CC="gcc"
2178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2179 break 2
2181 done
2182 done
2186 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2187 if test -n "$ac_ct_CC"; then
2188 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2189 echo "${ECHO_T}$ac_ct_CC" >&6
2190 else
2191 echo "$as_me:$LINENO: result: no" >&5
2192 echo "${ECHO_T}no" >&6
2195 CC=$ac_ct_CC
2196 else
2197 CC="$ac_cv_prog_CC"
2200 if test -z "$CC"; then
2201 if test -n "$ac_tool_prefix"; then
2202 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2203 set dummy ${ac_tool_prefix}cc; ac_word=$2
2204 echo "$as_me:$LINENO: checking for $ac_word" >&5
2205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2206 if test "${ac_cv_prog_CC+set}" = set; then
2207 echo $ECHO_N "(cached) $ECHO_C" >&6
2208 else
2209 if test -n "$CC"; then
2210 ac_cv_prog_CC="$CC" # Let the user override the test.
2211 else
2212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2213 for as_dir in $PATH
2215 IFS=$as_save_IFS
2216 test -z "$as_dir" && as_dir=.
2217 for ac_exec_ext in '' $ac_executable_extensions; do
2218 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2219 ac_cv_prog_CC="${ac_tool_prefix}cc"
2220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2221 break 2
2223 done
2224 done
2228 CC=$ac_cv_prog_CC
2229 if test -n "$CC"; then
2230 echo "$as_me:$LINENO: result: $CC" >&5
2231 echo "${ECHO_T}$CC" >&6
2232 else
2233 echo "$as_me:$LINENO: result: no" >&5
2234 echo "${ECHO_T}no" >&6
2238 if test -z "$ac_cv_prog_CC"; then
2239 ac_ct_CC=$CC
2240 # Extract the first word of "cc", so it can be a program name with args.
2241 set dummy cc; ac_word=$2
2242 echo "$as_me:$LINENO: checking for $ac_word" >&5
2243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2244 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2245 echo $ECHO_N "(cached) $ECHO_C" >&6
2246 else
2247 if test -n "$ac_ct_CC"; then
2248 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2249 else
2250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2251 for as_dir in $PATH
2253 IFS=$as_save_IFS
2254 test -z "$as_dir" && as_dir=.
2255 for ac_exec_ext in '' $ac_executable_extensions; do
2256 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2257 ac_cv_prog_ac_ct_CC="cc"
2258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2259 break 2
2261 done
2262 done
2266 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2267 if test -n "$ac_ct_CC"; then
2268 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2269 echo "${ECHO_T}$ac_ct_CC" >&6
2270 else
2271 echo "$as_me:$LINENO: result: no" >&5
2272 echo "${ECHO_T}no" >&6
2275 CC=$ac_ct_CC
2276 else
2277 CC="$ac_cv_prog_CC"
2281 if test -z "$CC"; then
2282 # Extract the first word of "cc", so it can be a program name with args.
2283 set dummy cc; ac_word=$2
2284 echo "$as_me:$LINENO: checking for $ac_word" >&5
2285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2286 if test "${ac_cv_prog_CC+set}" = set; then
2287 echo $ECHO_N "(cached) $ECHO_C" >&6
2288 else
2289 if test -n "$CC"; then
2290 ac_cv_prog_CC="$CC" # Let the user override the test.
2291 else
2292 ac_prog_rejected=no
2293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2294 for as_dir in $PATH
2296 IFS=$as_save_IFS
2297 test -z "$as_dir" && as_dir=.
2298 for ac_exec_ext in '' $ac_executable_extensions; do
2299 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2300 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2301 ac_prog_rejected=yes
2302 continue
2304 ac_cv_prog_CC="cc"
2305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2306 break 2
2308 done
2309 done
2311 if test $ac_prog_rejected = yes; then
2312 # We found a bogon in the path, so make sure we never use it.
2313 set dummy $ac_cv_prog_CC
2314 shift
2315 if test $# != 0; then
2316 # We chose a different compiler from the bogus one.
2317 # However, it has the same basename, so the bogon will be chosen
2318 # first if we set CC to just the basename; use the full file name.
2319 shift
2320 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2325 CC=$ac_cv_prog_CC
2326 if test -n "$CC"; then
2327 echo "$as_me:$LINENO: result: $CC" >&5
2328 echo "${ECHO_T}$CC" >&6
2329 else
2330 echo "$as_me:$LINENO: result: no" >&5
2331 echo "${ECHO_T}no" >&6
2335 if test -z "$CC"; then
2336 if test -n "$ac_tool_prefix"; then
2337 for ac_prog in cl
2339 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2340 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2341 echo "$as_me:$LINENO: checking for $ac_word" >&5
2342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2343 if test "${ac_cv_prog_CC+set}" = set; then
2344 echo $ECHO_N "(cached) $ECHO_C" >&6
2345 else
2346 if test -n "$CC"; then
2347 ac_cv_prog_CC="$CC" # Let the user override the test.
2348 else
2349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2350 for as_dir in $PATH
2352 IFS=$as_save_IFS
2353 test -z "$as_dir" && as_dir=.
2354 for ac_exec_ext in '' $ac_executable_extensions; do
2355 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2356 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2358 break 2
2360 done
2361 done
2365 CC=$ac_cv_prog_CC
2366 if test -n "$CC"; then
2367 echo "$as_me:$LINENO: result: $CC" >&5
2368 echo "${ECHO_T}$CC" >&6
2369 else
2370 echo "$as_me:$LINENO: result: no" >&5
2371 echo "${ECHO_T}no" >&6
2374 test -n "$CC" && break
2375 done
2377 if test -z "$CC"; then
2378 ac_ct_CC=$CC
2379 for ac_prog in cl
2381 # Extract the first word of "$ac_prog", so it can be a program name with args.
2382 set dummy $ac_prog; ac_word=$2
2383 echo "$as_me:$LINENO: checking for $ac_word" >&5
2384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2385 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2386 echo $ECHO_N "(cached) $ECHO_C" >&6
2387 else
2388 if test -n "$ac_ct_CC"; then
2389 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2390 else
2391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2392 for as_dir in $PATH
2394 IFS=$as_save_IFS
2395 test -z "$as_dir" && as_dir=.
2396 for ac_exec_ext in '' $ac_executable_extensions; do
2397 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2398 ac_cv_prog_ac_ct_CC="$ac_prog"
2399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2400 break 2
2402 done
2403 done
2407 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2408 if test -n "$ac_ct_CC"; then
2409 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2410 echo "${ECHO_T}$ac_ct_CC" >&6
2411 else
2412 echo "$as_me:$LINENO: result: no" >&5
2413 echo "${ECHO_T}no" >&6
2416 test -n "$ac_ct_CC" && break
2417 done
2419 CC=$ac_ct_CC
2425 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2426 See \`config.log' for more details." >&5
2427 echo "$as_me: error: no acceptable C compiler found in \$PATH
2428 See \`config.log' for more details." >&2;}
2429 { (exit 1); exit 1; }; }
2431 # Provide some information about the compiler.
2432 echo "$as_me:$LINENO:" \
2433 "checking for C compiler version" >&5
2434 ac_compiler=`set X $ac_compile; echo $2`
2435 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2436 (eval $ac_compiler --version </dev/null >&5) 2>&5
2437 ac_status=$?
2438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439 (exit $ac_status); }
2440 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2441 (eval $ac_compiler -v </dev/null >&5) 2>&5
2442 ac_status=$?
2443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444 (exit $ac_status); }
2445 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2446 (eval $ac_compiler -V </dev/null >&5) 2>&5
2447 ac_status=$?
2448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449 (exit $ac_status); }
2451 cat >conftest.$ac_ext <<_ACEOF
2452 /* confdefs.h. */
2453 _ACEOF
2454 cat confdefs.h >>conftest.$ac_ext
2455 cat >>conftest.$ac_ext <<_ACEOF
2456 /* end confdefs.h. */
2459 main ()
2463 return 0;
2465 _ACEOF
2466 # FIXME: Cleanup?
2467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2468 (eval $ac_link) 2>&5
2469 ac_status=$?
2470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471 (exit $ac_status); }; then
2472 gcc_no_link=no
2473 else
2474 gcc_no_link=yes
2477 if test x$gcc_no_link = xyes; then
2478 # Setting cross_compile will disable run tests; it will
2479 # also disable AC_CHECK_FILE but that's generally
2480 # correct if we can't link.
2481 cross_compiling=yes
2482 EXEEXT=
2483 else
2484 cat >conftest.$ac_ext <<_ACEOF
2485 /* confdefs.h. */
2486 _ACEOF
2487 cat confdefs.h >>conftest.$ac_ext
2488 cat >>conftest.$ac_ext <<_ACEOF
2489 /* end confdefs.h. */
2492 main ()
2496 return 0;
2498 _ACEOF
2499 ac_clean_files_save=$ac_clean_files
2500 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2501 # Try to create an executable without -o first, disregard a.out.
2502 # It will help us diagnose broken compilers, and finding out an intuition
2503 # of exeext.
2504 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2505 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2506 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2507 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2508 (eval $ac_link_default) 2>&5
2509 ac_status=$?
2510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511 (exit $ac_status); }; then
2512 # Find the output, starting from the most likely. This scheme is
2513 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2514 # resort.
2516 # Be careful to initialize this variable, since it used to be cached.
2517 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2518 ac_cv_exeext=
2519 # b.out is created by i960 compilers.
2520 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2522 test -f "$ac_file" || continue
2523 case $ac_file in
2524 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2526 conftest.$ac_ext )
2527 # This is the source file.
2529 [ab].out )
2530 # We found the default executable, but exeext='' is most
2531 # certainly right.
2532 break;;
2533 *.* )
2534 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2535 # FIXME: I believe we export ac_cv_exeext for Libtool,
2536 # but it would be cool to find out if it's true. Does anybody
2537 # maintain Libtool? --akim.
2538 export ac_cv_exeext
2539 break;;
2541 break;;
2542 esac
2543 done
2544 else
2545 echo "$as_me: failed program was:" >&5
2546 sed 's/^/| /' conftest.$ac_ext >&5
2548 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2549 See \`config.log' for more details." >&5
2550 echo "$as_me: error: C compiler cannot create executables
2551 See \`config.log' for more details." >&2;}
2552 { (exit 77); exit 77; }; }
2555 ac_exeext=$ac_cv_exeext
2556 echo "$as_me:$LINENO: result: $ac_file" >&5
2557 echo "${ECHO_T}$ac_file" >&6
2559 # Check the compiler produces executables we can run. If not, either
2560 # the compiler is broken, or we cross compile.
2561 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2562 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2563 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2564 # If not cross compiling, check that we can run a simple program.
2565 if test "$cross_compiling" != yes; then
2566 if { ac_try='./$ac_file'
2567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2568 (eval $ac_try) 2>&5
2569 ac_status=$?
2570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571 (exit $ac_status); }; }; then
2572 cross_compiling=no
2573 else
2574 if test "$cross_compiling" = maybe; then
2575 cross_compiling=yes
2576 else
2577 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2578 If you meant to cross compile, use \`--host'.
2579 See \`config.log' for more details." >&5
2580 echo "$as_me: error: cannot run C compiled programs.
2581 If you meant to cross compile, use \`--host'.
2582 See \`config.log' for more details." >&2;}
2583 { (exit 1); exit 1; }; }
2587 echo "$as_me:$LINENO: result: yes" >&5
2588 echo "${ECHO_T}yes" >&6
2590 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2591 ac_clean_files=$ac_clean_files_save
2592 # Check the compiler produces executables we can run. If not, either
2593 # the compiler is broken, or we cross compile.
2594 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2595 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2596 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2597 echo "${ECHO_T}$cross_compiling" >&6
2599 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2600 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2602 (eval $ac_link) 2>&5
2603 ac_status=$?
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); }; then
2606 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2607 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2608 # work properly (i.e., refer to `conftest.exe'), while it won't with
2609 # `rm'.
2610 for ac_file in conftest.exe conftest conftest.*; do
2611 test -f "$ac_file" || continue
2612 case $ac_file in
2613 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2614 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2615 export ac_cv_exeext
2616 break;;
2617 * ) break;;
2618 esac
2619 done
2620 else
2621 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2622 See \`config.log' for more details." >&5
2623 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2624 See \`config.log' for more details." >&2;}
2625 { (exit 1); exit 1; }; }
2628 rm -f conftest$ac_cv_exeext
2629 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2630 echo "${ECHO_T}$ac_cv_exeext" >&6
2632 rm -f conftest.$ac_ext
2633 EXEEXT=$ac_cv_exeext
2634 ac_exeext=$EXEEXT
2636 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2637 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2638 if test "${ac_cv_objext+set}" = set; then
2639 echo $ECHO_N "(cached) $ECHO_C" >&6
2640 else
2641 cat >conftest.$ac_ext <<_ACEOF
2642 /* confdefs.h. */
2643 _ACEOF
2644 cat confdefs.h >>conftest.$ac_ext
2645 cat >>conftest.$ac_ext <<_ACEOF
2646 /* end confdefs.h. */
2649 main ()
2653 return 0;
2655 _ACEOF
2656 rm -f conftest.o conftest.obj
2657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2658 (eval $ac_compile) 2>&5
2659 ac_status=$?
2660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661 (exit $ac_status); }; then
2662 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2663 case $ac_file in
2664 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2665 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2666 break;;
2667 esac
2668 done
2669 else
2670 echo "$as_me: failed program was:" >&5
2671 sed 's/^/| /' conftest.$ac_ext >&5
2673 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2674 See \`config.log' for more details." >&5
2675 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2676 See \`config.log' for more details." >&2;}
2677 { (exit 1); exit 1; }; }
2680 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2682 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2683 echo "${ECHO_T}$ac_cv_objext" >&6
2684 OBJEXT=$ac_cv_objext
2685 ac_objext=$OBJEXT
2686 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2687 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2688 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2689 echo $ECHO_N "(cached) $ECHO_C" >&6
2690 else
2691 cat >conftest.$ac_ext <<_ACEOF
2692 /* confdefs.h. */
2693 _ACEOF
2694 cat confdefs.h >>conftest.$ac_ext
2695 cat >>conftest.$ac_ext <<_ACEOF
2696 /* end confdefs.h. */
2699 main ()
2701 #ifndef __GNUC__
2702 choke me
2703 #endif
2706 return 0;
2708 _ACEOF
2709 rm -f conftest.$ac_objext
2710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2711 (eval $ac_compile) 2>conftest.er1
2712 ac_status=$?
2713 grep -v '^ *+' conftest.er1 >conftest.err
2714 rm -f conftest.er1
2715 cat conftest.err >&5
2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 (exit $ac_status); } &&
2718 { ac_try='test -z "$ac_c_werror_flag"
2719 || test ! -s conftest.err'
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); }; } &&
2725 { ac_try='test -s conftest.$ac_objext'
2726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2727 (eval $ac_try) 2>&5
2728 ac_status=$?
2729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730 (exit $ac_status); }; }; then
2731 ac_compiler_gnu=yes
2732 else
2733 echo "$as_me: failed program was:" >&5
2734 sed 's/^/| /' conftest.$ac_ext >&5
2736 ac_compiler_gnu=no
2738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2739 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2742 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2743 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2744 GCC=`test $ac_compiler_gnu = yes && echo yes`
2745 ac_test_CFLAGS=${CFLAGS+set}
2746 ac_save_CFLAGS=$CFLAGS
2747 CFLAGS="-g"
2748 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2749 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2750 if test "${ac_cv_prog_cc_g+set}" = set; then
2751 echo $ECHO_N "(cached) $ECHO_C" >&6
2752 else
2753 cat >conftest.$ac_ext <<_ACEOF
2754 /* confdefs.h. */
2755 _ACEOF
2756 cat confdefs.h >>conftest.$ac_ext
2757 cat >>conftest.$ac_ext <<_ACEOF
2758 /* end confdefs.h. */
2761 main ()
2765 return 0;
2767 _ACEOF
2768 rm -f conftest.$ac_objext
2769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2770 (eval $ac_compile) 2>conftest.er1
2771 ac_status=$?
2772 grep -v '^ *+' conftest.er1 >conftest.err
2773 rm -f conftest.er1
2774 cat conftest.err >&5
2775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776 (exit $ac_status); } &&
2777 { ac_try='test -z "$ac_c_werror_flag"
2778 || test ! -s conftest.err'
2779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2780 (eval $ac_try) 2>&5
2781 ac_status=$?
2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); }; } &&
2784 { ac_try='test -s conftest.$ac_objext'
2785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2786 (eval $ac_try) 2>&5
2787 ac_status=$?
2788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789 (exit $ac_status); }; }; then
2790 ac_cv_prog_cc_g=yes
2791 else
2792 echo "$as_me: failed program was:" >&5
2793 sed 's/^/| /' conftest.$ac_ext >&5
2795 ac_cv_prog_cc_g=no
2797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2799 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2800 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2801 if test "$ac_test_CFLAGS" = set; then
2802 CFLAGS=$ac_save_CFLAGS
2803 elif test $ac_cv_prog_cc_g = yes; then
2804 if test "$GCC" = yes; then
2805 CFLAGS="-g -O2"
2806 else
2807 CFLAGS="-g"
2809 else
2810 if test "$GCC" = yes; then
2811 CFLAGS="-O2"
2812 else
2813 CFLAGS=
2816 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2817 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2818 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2819 echo $ECHO_N "(cached) $ECHO_C" >&6
2820 else
2821 ac_cv_prog_cc_stdc=no
2822 ac_save_CC=$CC
2823 cat >conftest.$ac_ext <<_ACEOF
2824 /* confdefs.h. */
2825 _ACEOF
2826 cat confdefs.h >>conftest.$ac_ext
2827 cat >>conftest.$ac_ext <<_ACEOF
2828 /* end confdefs.h. */
2829 #include <stdarg.h>
2830 #include <stdio.h>
2831 #include <sys/types.h>
2832 #include <sys/stat.h>
2833 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2834 struct buf { int x; };
2835 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2836 static char *e (p, i)
2837 char **p;
2838 int i;
2840 return p[i];
2842 static char *f (char * (*g) (char **, int), char **p, ...)
2844 char *s;
2845 va_list v;
2846 va_start (v,p);
2847 s = g (p, va_arg (v,int));
2848 va_end (v);
2849 return s;
2852 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2853 function prototypes and stuff, but not '\xHH' hex character constants.
2854 These don't provoke an error unfortunately, instead are silently treated
2855 as 'x'. The following induces an error, until -std1 is added to get
2856 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2857 array size at least. It's necessary to write '\x00'==0 to get something
2858 that's true only with -std1. */
2859 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2861 int test (int i, double x);
2862 struct s1 {int (*f) (int a);};
2863 struct s2 {int (*f) (double a);};
2864 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2865 int argc;
2866 char **argv;
2868 main ()
2870 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2872 return 0;
2874 _ACEOF
2875 # Don't try gcc -ansi; that turns off useful extensions and
2876 # breaks some systems' header files.
2877 # AIX -qlanglvl=ansi
2878 # Ultrix and OSF/1 -std1
2879 # HP-UX 10.20 and later -Ae
2880 # HP-UX older versions -Aa -D_HPUX_SOURCE
2881 # SVR4 -Xc -D__EXTENSIONS__
2882 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2884 CC="$ac_save_CC $ac_arg"
2885 rm -f conftest.$ac_objext
2886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2887 (eval $ac_compile) 2>conftest.er1
2888 ac_status=$?
2889 grep -v '^ *+' conftest.er1 >conftest.err
2890 rm -f conftest.er1
2891 cat conftest.err >&5
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); } &&
2894 { ac_try='test -z "$ac_c_werror_flag"
2895 || test ! -s conftest.err'
2896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2897 (eval $ac_try) 2>&5
2898 ac_status=$?
2899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900 (exit $ac_status); }; } &&
2901 { ac_try='test -s conftest.$ac_objext'
2902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2903 (eval $ac_try) 2>&5
2904 ac_status=$?
2905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906 (exit $ac_status); }; }; then
2907 ac_cv_prog_cc_stdc=$ac_arg
2908 break
2909 else
2910 echo "$as_me: failed program was:" >&5
2911 sed 's/^/| /' conftest.$ac_ext >&5
2914 rm -f conftest.err conftest.$ac_objext
2915 done
2916 rm -f conftest.$ac_ext conftest.$ac_objext
2917 CC=$ac_save_CC
2921 case "x$ac_cv_prog_cc_stdc" in
2922 x|xno)
2923 echo "$as_me:$LINENO: result: none needed" >&5
2924 echo "${ECHO_T}none needed" >&6 ;;
2926 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2927 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2928 CC="$CC $ac_cv_prog_cc_stdc" ;;
2929 esac
2931 # Some people use a C++ compiler to compile C. Since we use `exit',
2932 # in C++ we need to declare it. In case someone uses the same compiler
2933 # for both compiling C and C++ we need to have the C++ compiler decide
2934 # the declaration of exit, since it's the most demanding environment.
2935 cat >conftest.$ac_ext <<_ACEOF
2936 #ifndef __cplusplus
2937 choke me
2938 #endif
2939 _ACEOF
2940 rm -f conftest.$ac_objext
2941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2942 (eval $ac_compile) 2>conftest.er1
2943 ac_status=$?
2944 grep -v '^ *+' conftest.er1 >conftest.err
2945 rm -f conftest.er1
2946 cat conftest.err >&5
2947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948 (exit $ac_status); } &&
2949 { ac_try='test -z "$ac_c_werror_flag"
2950 || test ! -s conftest.err'
2951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2952 (eval $ac_try) 2>&5
2953 ac_status=$?
2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955 (exit $ac_status); }; } &&
2956 { ac_try='test -s conftest.$ac_objext'
2957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2958 (eval $ac_try) 2>&5
2959 ac_status=$?
2960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961 (exit $ac_status); }; }; then
2962 for ac_declaration in \
2963 '' \
2964 'extern "C" void std::exit (int) throw (); using std::exit;' \
2965 'extern "C" void std::exit (int); using std::exit;' \
2966 'extern "C" void exit (int) throw ();' \
2967 'extern "C" void exit (int);' \
2968 'void exit (int);'
2970 cat >conftest.$ac_ext <<_ACEOF
2971 /* confdefs.h. */
2972 _ACEOF
2973 cat confdefs.h >>conftest.$ac_ext
2974 cat >>conftest.$ac_ext <<_ACEOF
2975 /* end confdefs.h. */
2976 $ac_declaration
2977 #include <stdlib.h>
2979 main ()
2981 exit (42);
2983 return 0;
2985 _ACEOF
2986 rm -f conftest.$ac_objext
2987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2988 (eval $ac_compile) 2>conftest.er1
2989 ac_status=$?
2990 grep -v '^ *+' conftest.er1 >conftest.err
2991 rm -f conftest.er1
2992 cat conftest.err >&5
2993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994 (exit $ac_status); } &&
2995 { ac_try='test -z "$ac_c_werror_flag"
2996 || test ! -s conftest.err'
2997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2998 (eval $ac_try) 2>&5
2999 ac_status=$?
3000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001 (exit $ac_status); }; } &&
3002 { ac_try='test -s conftest.$ac_objext'
3003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3004 (eval $ac_try) 2>&5
3005 ac_status=$?
3006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3007 (exit $ac_status); }; }; then
3009 else
3010 echo "$as_me: failed program was:" >&5
3011 sed 's/^/| /' conftest.$ac_ext >&5
3013 continue
3015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3016 cat >conftest.$ac_ext <<_ACEOF
3017 /* confdefs.h. */
3018 _ACEOF
3019 cat confdefs.h >>conftest.$ac_ext
3020 cat >>conftest.$ac_ext <<_ACEOF
3021 /* end confdefs.h. */
3022 $ac_declaration
3024 main ()
3026 exit (42);
3028 return 0;
3030 _ACEOF
3031 rm -f conftest.$ac_objext
3032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3033 (eval $ac_compile) 2>conftest.er1
3034 ac_status=$?
3035 grep -v '^ *+' conftest.er1 >conftest.err
3036 rm -f conftest.er1
3037 cat conftest.err >&5
3038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039 (exit $ac_status); } &&
3040 { ac_try='test -z "$ac_c_werror_flag"
3041 || test ! -s conftest.err'
3042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3043 (eval $ac_try) 2>&5
3044 ac_status=$?
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); }; } &&
3047 { ac_try='test -s conftest.$ac_objext'
3048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3049 (eval $ac_try) 2>&5
3050 ac_status=$?
3051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052 (exit $ac_status); }; }; then
3053 break
3054 else
3055 echo "$as_me: failed program was:" >&5
3056 sed 's/^/| /' conftest.$ac_ext >&5
3059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3060 done
3061 rm -f conftest*
3062 if test -n "$ac_declaration"; then
3063 echo '#ifdef __cplusplus' >>confdefs.h
3064 echo $ac_declaration >>confdefs.h
3065 echo '#endif' >>confdefs.h
3068 else
3069 echo "$as_me: failed program was:" >&5
3070 sed 's/^/| /' conftest.$ac_ext >&5
3073 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3074 ac_ext=c
3075 ac_cpp='$CPP $CPPFLAGS'
3076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3079 DEPDIR="${am__leading_dot}deps"
3081 ac_config_commands="$ac_config_commands depfiles"
3084 am_make=${MAKE-make}
3085 cat > confinc << 'END'
3086 am__doit:
3087 @echo done
3088 .PHONY: am__doit
3090 # If we don't find an include directive, just comment out the code.
3091 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3092 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3093 am__include="#"
3094 am__quote=
3095 _am_result=none
3096 # First try GNU make style include.
3097 echo "include confinc" > confmf
3098 # We grep out `Entering directory' and `Leaving directory'
3099 # messages which can occur if `w' ends up in MAKEFLAGS.
3100 # In particular we don't look at `^make:' because GNU make might
3101 # be invoked under some other name (usually "gmake"), in which
3102 # case it prints its new name instead of `make'.
3103 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3104 am__include=include
3105 am__quote=
3106 _am_result=GNU
3108 # Now try BSD make style include.
3109 if test "$am__include" = "#"; then
3110 echo '.include "confinc"' > confmf
3111 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3112 am__include=.include
3113 am__quote="\""
3114 _am_result=BSD
3119 echo "$as_me:$LINENO: result: $_am_result" >&5
3120 echo "${ECHO_T}$_am_result" >&6
3121 rm -f confinc confmf
3123 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3124 if test "${enable_dependency_tracking+set}" = set; then
3125 enableval="$enable_dependency_tracking"
3128 if test "x$enable_dependency_tracking" != xno; then
3129 am_depcomp="$ac_aux_dir/depcomp"
3130 AMDEPBACKSLASH='\'
3134 if test "x$enable_dependency_tracking" != xno; then
3135 AMDEP_TRUE=
3136 AMDEP_FALSE='#'
3137 else
3138 AMDEP_TRUE='#'
3139 AMDEP_FALSE=
3145 depcc="$CC" am_compiler_list=
3147 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3148 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3149 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3150 echo $ECHO_N "(cached) $ECHO_C" >&6
3151 else
3152 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3153 # We make a subdir and do the tests there. Otherwise we can end up
3154 # making bogus files that we don't know about and never remove. For
3155 # instance it was reported that on HP-UX the gcc test will end up
3156 # making a dummy file named `D' -- because `-MD' means `put the output
3157 # in D'.
3158 mkdir conftest.dir
3159 # Copy depcomp to subdir because otherwise we won't find it if we're
3160 # using a relative directory.
3161 cp "$am_depcomp" conftest.dir
3162 cd conftest.dir
3163 # We will build objects and dependencies in a subdirectory because
3164 # it helps to detect inapplicable dependency modes. For instance
3165 # both Tru64's cc and ICC support -MD to output dependencies as a
3166 # side effect of compilation, but ICC will put the dependencies in
3167 # the current directory while Tru64 will put them in the object
3168 # directory.
3169 mkdir sub
3171 am_cv_CC_dependencies_compiler_type=none
3172 if test "$am_compiler_list" = ""; then
3173 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3175 for depmode in $am_compiler_list; do
3176 # Setup a source with many dependencies, because some compilers
3177 # like to wrap large dependency lists on column 80 (with \), and
3178 # we should not choose a depcomp mode which is confused by this.
3180 # We need to recreate these files for each test, as the compiler may
3181 # overwrite some of them when testing with obscure command lines.
3182 # This happens at least with the AIX C compiler.
3183 : > sub/conftest.c
3184 for i in 1 2 3 4 5 6; do
3185 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3186 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3187 # Solaris 8's {/usr,}/bin/sh.
3188 touch sub/conftst$i.h
3189 done
3190 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3192 case $depmode in
3193 nosideeffect)
3194 # after this tag, mechanisms are not by side-effect, so they'll
3195 # only be used when explicitly requested
3196 if test "x$enable_dependency_tracking" = xyes; then
3197 continue
3198 else
3199 break
3202 none) break ;;
3203 esac
3204 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3205 # mode. It turns out that the SunPro C++ compiler does not properly
3206 # handle `-M -o', and we need to detect this.
3207 if depmode=$depmode \
3208 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3209 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3210 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3211 >/dev/null 2>conftest.err &&
3212 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3213 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3214 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3215 # icc doesn't choke on unknown options, it will just issue warnings
3216 # or remarks (even with -Werror). So we grep stderr for any message
3217 # that says an option was ignored or not supported.
3218 # When given -MP, icc 7.0 and 7.1 complain thusly:
3219 # icc: Command line warning: ignoring option '-M'; no argument required
3220 # The diagnosis changed in icc 8.0:
3221 # icc: Command line remark: option '-MP' not supported
3222 if (grep 'ignoring option' conftest.err ||
3223 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3224 am_cv_CC_dependencies_compiler_type=$depmode
3225 break
3228 done
3230 cd ..
3231 rm -rf conftest.dir
3232 else
3233 am_cv_CC_dependencies_compiler_type=none
3237 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3238 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3239 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3244 test "x$enable_dependency_tracking" != xno \
3245 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3246 am__fastdepCC_TRUE=
3247 am__fastdepCC_FALSE='#'
3248 else
3249 am__fastdepCC_TRUE='#'
3250 am__fastdepCC_FALSE=
3260 macro_version='2.1a'
3261 macro_revision='1.2435'
3274 ltmain="$ac_aux_dir/ltmain.sh"
3276 # Set options
3278 enable_dlopen=no
3281 enable_win32_dll=no
3284 # Check whether --enable-shared or --disable-shared was given.
3285 if test "${enable_shared+set}" = set; then
3286 enableval="$enable_shared"
3287 p=${PACKAGE-default}
3288 case $enableval in
3289 yes) enable_shared=yes ;;
3290 no) enable_shared=no ;;
3292 enable_shared=no
3293 # Look at the argument we got. We use all the common list separators.
3294 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3295 for pkg in $enableval; do
3296 IFS="$lt_save_ifs"
3297 if test "X$pkg" = "X$p"; then
3298 enable_shared=yes
3300 done
3301 IFS="$lt_save_ifs"
3303 esac
3304 else
3305 enable_shared=yes
3315 # Check whether --enable-static or --disable-static was given.
3316 if test "${enable_static+set}" = set; then
3317 enableval="$enable_static"
3318 p=${PACKAGE-default}
3319 case $enableval in
3320 yes) enable_static=yes ;;
3321 no) enable_static=no ;;
3323 enable_static=no
3324 # Look at the argument we got. We use all the common list separators.
3325 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3326 for pkg in $enableval; do
3327 IFS="$lt_save_ifs"
3328 if test "X$pkg" = "X$p"; then
3329 enable_static=yes
3331 done
3332 IFS="$lt_save_ifs"
3334 esac
3335 else
3336 enable_static=yes
3347 # Check whether --with-pic or --without-pic was given.
3348 if test "${with_pic+set}" = set; then
3349 withval="$with_pic"
3350 pic_mode="$withval"
3351 else
3352 pic_mode=default
3355 test -z "$pic_mode" && pic_mode=default
3363 # Check whether --enable-fast-install or --disable-fast-install was given.
3364 if test "${enable_fast_install+set}" = set; then
3365 enableval="$enable_fast_install"
3366 p=${PACKAGE-default}
3367 case $enableval in
3368 yes) enable_fast_install=yes ;;
3369 no) enable_fast_install=no ;;
3371 enable_fast_install=no
3372 # Look at the argument we got. We use all the common list separators.
3373 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3374 for pkg in $enableval; do
3375 IFS="$lt_save_ifs"
3376 if test "X$pkg" = "X$p"; then
3377 enable_fast_install=yes
3379 done
3380 IFS="$lt_save_ifs"
3382 esac
3383 else
3384 enable_fast_install=yes
3394 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3395 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3396 if test "${lt_cv_path_SED+set}" = set; then
3397 echo $ECHO_N "(cached) $ECHO_C" >&6
3398 else
3399 # Loop through the user's path and test for sed and gsed.
3400 # Then use that list of sed's as ones to test for truncation.
3401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3402 for as_dir in $PATH
3404 IFS=$as_save_IFS
3405 test -z "$as_dir" && as_dir=.
3406 for lt_ac_prog in sed gsed; do
3407 for ac_exec_ext in '' $ac_executable_extensions; do
3408 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3409 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3411 done
3412 done
3413 done
3414 IFS=$as_save_IFS
3415 lt_ac_max=0
3416 lt_ac_count=0
3417 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3418 # along with /bin/sed that truncates output.
3419 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3420 test ! -f $lt_ac_sed && continue
3421 cat /dev/null > conftest.in
3422 lt_ac_count=0
3423 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3424 # Check for GNU sed and select it if it is found.
3425 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3426 lt_cv_path_SED=$lt_ac_sed
3427 break
3429 while true; do
3430 cat conftest.in conftest.in >conftest.tmp
3431 mv conftest.tmp conftest.in
3432 cp conftest.in conftest.nl
3433 echo >>conftest.nl
3434 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3435 cmp -s conftest.out conftest.nl || break
3436 # 10000 chars as input seems more than enough
3437 test $lt_ac_count -gt 10 && break
3438 lt_ac_count=`expr $lt_ac_count + 1`
3439 if test $lt_ac_count -gt $lt_ac_max; then
3440 lt_ac_max=$lt_ac_count
3441 lt_cv_path_SED=$lt_ac_sed
3443 done
3444 done
3448 SED=$lt_cv_path_SED
3450 echo "$as_me:$LINENO: result: $SED" >&5
3451 echo "${ECHO_T}$SED" >&6
3453 test -z "$SED" && SED=sed
3454 Xsed="$SED -e 1s/^X//"
3466 echo "$as_me:$LINENO: checking for egrep" >&5
3467 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3468 if test "${ac_cv_prog_egrep+set}" = set; then
3469 echo $ECHO_N "(cached) $ECHO_C" >&6
3470 else
3471 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3472 then ac_cv_prog_egrep='grep -E'
3473 else ac_cv_prog_egrep='egrep'
3476 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3477 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3478 EGREP=$ac_cv_prog_egrep
3481 echo "$as_me:$LINENO: checking for fgrep" >&5
3482 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
3483 if test "${ac_cv_prog_fgrep+set}" = set; then
3484 echo $ECHO_N "(cached) $ECHO_C" >&6
3485 else
3486 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
3487 then ac_cv_prog_fgrep='grep -F'
3488 else ac_cv_prog_fgrep='fgrep'
3491 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
3492 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
3493 FGREP=$ac_cv_prog_fgrep
3496 test -z "$GREP" && GREP=grep
3516 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3517 if test "${with_gnu_ld+set}" = set; then
3518 withval="$with_gnu_ld"
3519 test "$withval" = no || with_gnu_ld=yes
3520 else
3521 with_gnu_ld=no
3523 ac_prog=ld
3524 if test "$GCC" = yes; then
3525 # Check if gcc -print-prog-name=ld gives a path.
3526 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3527 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3528 case $host in
3529 *-*-mingw*)
3530 # gcc leaves a trailing carriage return which upsets mingw
3531 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3533 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3534 esac
3535 case $ac_prog in
3536 # Accept absolute paths.
3537 [\\/]* | ?:[\\/]*)
3538 re_direlt='/[^/][^/]*/\.\./'
3539 # Canonicalize the pathname of ld
3540 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3541 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3542 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3543 done
3544 test -z "$LD" && LD="$ac_prog"
3547 # If it fails, then pretend we aren't using GCC.
3548 ac_prog=ld
3551 # If it is relative, then search for the first ld in PATH.
3552 with_gnu_ld=unknown
3554 esac
3555 elif test "$with_gnu_ld" = yes; then
3556 echo "$as_me:$LINENO: checking for GNU ld" >&5
3557 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3558 else
3559 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3560 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3562 if test "${lt_cv_path_LD+set}" = set; then
3563 echo $ECHO_N "(cached) $ECHO_C" >&6
3564 else
3565 if test -z "$LD"; then
3566 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3567 for ac_dir in $PATH; do
3568 IFS="$lt_save_ifs"
3569 test -z "$ac_dir" && ac_dir=.
3570 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3571 lt_cv_path_LD="$ac_dir/$ac_prog"
3572 # Check to see if the program is GNU ld. I'd rather use --version,
3573 # but apparently some variants of GNU ld only accept -v.
3574 # Break only if it was the GNU/non-GNU ld that we prefer.
3575 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3576 *GNU* | *'with BFD'*)
3577 test "$with_gnu_ld" != no && break
3580 test "$with_gnu_ld" != yes && break
3582 esac
3584 done
3585 IFS="$lt_save_ifs"
3586 else
3587 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3591 LD="$lt_cv_path_LD"
3592 if test -n "$LD"; then
3593 echo "$as_me:$LINENO: result: $LD" >&5
3594 echo "${ECHO_T}$LD" >&6
3595 else
3596 echo "$as_me:$LINENO: result: no" >&5
3597 echo "${ECHO_T}no" >&6
3599 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3600 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3601 { (exit 1); exit 1; }; }
3602 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3603 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3604 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3605 echo $ECHO_N "(cached) $ECHO_C" >&6
3606 else
3607 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3608 case `$LD -v 2>&1 </dev/null` in
3609 *GNU* | *'with BFD'*)
3610 lt_cv_prog_gnu_ld=yes
3613 lt_cv_prog_gnu_ld=no
3615 esac
3617 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3618 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3619 with_gnu_ld=$lt_cv_prog_gnu_ld
3630 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
3631 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
3632 if test "${lt_cv_path_NM+set}" = set; then
3633 echo $ECHO_N "(cached) $ECHO_C" >&6
3634 else
3635 if test -n "$NM"; then
3636 # Let the user override the test.
3637 lt_cv_path_NM="$NM"
3638 else
3639 lt_nm_to_check="${ac_tool_prefix}nm"
3640 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3641 lt_nm_to_check="$lt_nm_to_check nm"
3643 for lt_tmp_nm in $lt_nm_to_check; do
3644 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3645 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3646 IFS="$lt_save_ifs"
3647 test -z "$ac_dir" && ac_dir=.
3648 tmp_nm="$ac_dir/$lt_tmp_nm"
3649 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3650 # Check to see if the nm accepts a BSD-compat flag.
3651 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3652 # nm: unknown option "B" ignored
3653 # Tru64's nm complains that /dev/null is an invalid object file
3654 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3655 */dev/null* | *'Invalid file or object type'*)
3656 lt_cv_path_NM="$tmp_nm -B"
3657 break
3660 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3661 */dev/null*)
3662 lt_cv_path_NM="$tmp_nm -p"
3663 break
3666 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3667 continue # so that we can try to find one that supports BSD flags
3669 esac
3671 esac
3673 done
3674 IFS="$lt_save_ifs"
3675 done
3676 : ${lt_cv_path_NM=no}
3679 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3680 echo "${ECHO_T}$lt_cv_path_NM" >&6
3681 if test "$lt_cv_path_NM" != "no"; then
3682 NM="$lt_cv_path_NM"
3683 else
3684 # Didn't find any BSD compatible name lister, look for dumpbin.
3685 if test -n "$ac_tool_prefix"; then
3686 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3688 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3689 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3690 echo "$as_me:$LINENO: checking for $ac_word" >&5
3691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3692 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
3693 echo $ECHO_N "(cached) $ECHO_C" >&6
3694 else
3695 if test -n "$DUMPBIN"; then
3696 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3697 else
3698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3699 for as_dir in $PATH
3701 IFS=$as_save_IFS
3702 test -z "$as_dir" && as_dir=.
3703 for ac_exec_ext in '' $ac_executable_extensions; do
3704 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3705 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3707 break 2
3709 done
3710 done
3714 DUMPBIN=$ac_cv_prog_DUMPBIN
3715 if test -n "$DUMPBIN"; then
3716 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
3717 echo "${ECHO_T}$DUMPBIN" >&6
3718 else
3719 echo "$as_me:$LINENO: result: no" >&5
3720 echo "${ECHO_T}no" >&6
3723 test -n "$DUMPBIN" && break
3724 done
3726 if test -z "$DUMPBIN"; then
3727 ac_ct_DUMPBIN=$DUMPBIN
3728 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3730 # Extract the first word of "$ac_prog", so it can be a program name with args.
3731 set dummy $ac_prog; ac_word=$2
3732 echo "$as_me:$LINENO: checking for $ac_word" >&5
3733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3734 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
3735 echo $ECHO_N "(cached) $ECHO_C" >&6
3736 else
3737 if test -n "$ac_ct_DUMPBIN"; then
3738 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3739 else
3740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3741 for as_dir in $PATH
3743 IFS=$as_save_IFS
3744 test -z "$as_dir" && as_dir=.
3745 for ac_exec_ext in '' $ac_executable_extensions; do
3746 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3747 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3749 break 2
3751 done
3752 done
3756 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3757 if test -n "$ac_ct_DUMPBIN"; then
3758 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
3759 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
3760 else
3761 echo "$as_me:$LINENO: result: no" >&5
3762 echo "${ECHO_T}no" >&6
3765 test -n "$ac_ct_DUMPBIN" && break
3766 done
3767 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
3769 DUMPBIN=$ac_ct_DUMPBIN
3773 if test "$DUMPBIN" != ":"; then
3774 NM="$DUMPBIN"
3777 test -z "$NM" && NM=nm
3784 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
3785 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
3786 if test "${lt_cv_nm_interface+set}" = set; then
3787 echo $ECHO_N "(cached) $ECHO_C" >&6
3788 else
3789 lt_cv_nm_interface="BSD nm"
3790 echo "int some_variable = 0;" > conftest.$ac_ext
3791 (eval echo "\"\$as_me:3791: $ac_compile\"" >&5)
3792 (eval "$ac_compile" 2>conftest.err)
3793 cat conftest.err >&5
3794 (eval echo "\"\$as_me:3794: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3795 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3796 cat conftest.err >&5
3797 (eval echo "\"\$as_me:3797: output\"" >&5)
3798 cat conftest.out >&5
3799 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3800 lt_cv_nm_interface="MS dumpbin"
3802 rm -f conftest*
3804 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
3805 echo "${ECHO_T}$lt_cv_nm_interface" >&6
3807 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3808 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3809 LN_S=$as_ln_s
3810 if test "$LN_S" = "ln -s"; then
3811 echo "$as_me:$LINENO: result: yes" >&5
3812 echo "${ECHO_T}yes" >&6
3813 else
3814 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3815 echo "${ECHO_T}no, using $LN_S" >&6
3818 # find the maximum length of command line arguments
3819 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3820 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3821 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3822 echo $ECHO_N "(cached) $ECHO_C" >&6
3823 else
3825 teststring="ABCD"
3827 case $build_os in
3828 msdosdjgpp*)
3829 # On DJGPP, this test can blow up pretty badly due to problems in libc
3830 # (any single argument exceeding 2000 bytes causes a buffer overrun
3831 # during glob expansion). Even if it were fixed, the result of this
3832 # check would be larger than it should be.
3833 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3836 gnu*)
3837 # Under GNU Hurd, this test is not required because there is
3838 # no limit to the length of command line arguments.
3839 # Libtool will interpret -1 as no limit whatsoever
3840 lt_cv_sys_max_cmd_len=-1;
3843 cygwin* | mingw*)
3844 # On Win9x/ME, this test blows up -- it succeeds, but takes
3845 # about 5 minutes as the teststring grows exponentially.
3846 # Worse, since 9x/ME are not pre-emptively multitasking,
3847 # you end up with a "frozen" computer, even though with patience
3848 # the test eventually succeeds (with a max line length of 256k).
3849 # Instead, let's just punt: use the minimum linelength reported by
3850 # all of the supported platforms: 8192 (on NT/2K/XP).
3851 lt_cv_sys_max_cmd_len=8192;
3854 amigaos*)
3855 # On AmigaOS with pdksh, this test takes hours, literally.
3856 # So we just punt and use a minimum line length of 8192.
3857 lt_cv_sys_max_cmd_len=8192;
3860 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3861 # This has been around since 386BSD, at least. Likely further.
3862 if test -x /sbin/sysctl; then
3863 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3864 elif test -x /usr/sbin/sysctl; then
3865 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3866 else
3867 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
3869 # And add a safety zone
3870 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3871 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3874 interix*)
3875 # We know the value 262144 and hardcode it with a safety zone (like BSD)
3876 lt_cv_sys_max_cmd_len=196608
3879 osf*)
3880 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3881 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3882 # nice to cause kernel panics so lets avoid the loop below.
3883 # First set a reasonable default.
3884 lt_cv_sys_max_cmd_len=16384
3886 if test -x /sbin/sysconfig; then
3887 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
3888 *1*) lt_cv_sys_max_cmd_len=-1 ;;
3889 esac
3892 sco3.2v5*)
3893 lt_cv_sys_max_cmd_len=102400
3895 sysv5* | sco5v6* | sysv4.2uw2*)
3896 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
3897 if test -n "$kargmax"; then
3898 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
3899 else
3900 lt_cv_sys_max_cmd_len=32768
3904 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
3905 if test -n $lt_cv_sys_max_cmd_len; then
3906 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3907 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3908 else
3909 # Make teststring a little bigger before we do anything with it.
3910 # a 1K string should be a reasonable start.
3911 for i in 1 2 3 4 5 6 7 8 ; do
3912 teststring=$teststring$teststring
3913 done
3914 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
3915 # If test is not a shell built-in, we'll probably end up computing a
3916 # maximum length that is only half of the actual maximum length, but
3917 # we can't tell.
3918 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
3919 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
3920 test $i != 17 # 1/2 MB should be enough
3922 i=`expr $i + 1`
3923 teststring=$teststring$teststring
3924 done
3925 # Only check the string length outside the loop.
3926 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
3927 teststring=
3928 # Add a significant safety factor because C++ compilers can tack on
3929 # massive amounts of additional arguments before passing them to the
3930 # linker. It appears as though 1/2 is a usable value.
3931 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
3934 esac
3938 if test -n $lt_cv_sys_max_cmd_len ; then
3939 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3940 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3941 else
3942 echo "$as_me:$LINENO: result: none" >&5
3943 echo "${ECHO_T}none" >&6
3945 max_cmd_len=$lt_cv_sys_max_cmd_len
3953 : ${CP="cp -f"}
3954 : ${MV="mv -f"}
3955 : ${RM="rm -f"}
3957 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
3958 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
3959 # Try some XSI features
3960 xsi_shell=no
3961 ( _lt_dummy="a/b/c"
3962 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
3963 = c,a/b,, ) >/dev/null 2>&1 \
3964 && xsi_shell=yes
3965 echo "$as_me:$LINENO: result: $xsi_shell" >&5
3966 echo "${ECHO_T}$xsi_shell" >&6
3969 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
3970 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
3971 lt_shell_append=no
3972 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
3973 >/dev/null 2>&1 \
3974 && lt_shell_append=yes
3975 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
3976 echo "${ECHO_T}$lt_shell_append" >&6
3979 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3980 lt_unset=unset
3981 else
3982 lt_unset=false
3989 # test EBCDIC or ASCII
3990 case `echo X|tr X '\101'` in
3991 A) # ASCII based system
3992 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
3993 lt_SP2NL='tr \040 \012'
3994 lt_NL2SP='tr \015\012 \040\040'
3996 *) # EBCDIC based system
3997 lt_SP2NL='tr \100 \n'
3998 lt_NL2SP='tr \r\n \100\100'
4000 esac
4010 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4011 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4012 if test "${lt_cv_ld_reload_flag+set}" = set; then
4013 echo $ECHO_N "(cached) $ECHO_C" >&6
4014 else
4015 lt_cv_ld_reload_flag='-r'
4017 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4018 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4019 reload_flag=$lt_cv_ld_reload_flag
4020 case $reload_flag in
4021 "" | " "*) ;;
4022 *) reload_flag=" $reload_flag" ;;
4023 esac
4024 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4025 case $host_os in
4026 darwin*)
4027 if test "$GCC" = yes; then
4028 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4029 else
4030 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4033 esac
4044 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4045 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4046 if test "${lt_cv_deplibs_check_method+set}" = set; then
4047 echo $ECHO_N "(cached) $ECHO_C" >&6
4048 else
4049 lt_cv_file_magic_cmd='$MAGIC_CMD'
4050 lt_cv_file_magic_test_file=
4051 lt_cv_deplibs_check_method='unknown'
4052 # Need to set the preceding variable on all platforms that support
4053 # interlibrary dependencies.
4054 # 'none' -- dependencies not supported.
4055 # `unknown' -- same as none, but documents that we really don't know.
4056 # 'pass_all' -- all dependencies passed with no checks.
4057 # 'test_compile' -- check by making test program.
4058 # 'file_magic [[regex]]' -- check by looking for files in library path
4059 # which responds to the $file_magic_cmd with a given extended regex.
4060 # If you have `file' or equivalent on your system and you're not sure
4061 # whether `pass_all' will *always* work, you probably want this one.
4063 case $host_os in
4064 aix[4-9]*)
4065 lt_cv_deplibs_check_method=pass_all
4068 beos*)
4069 lt_cv_deplibs_check_method=pass_all
4072 bsdi[45]*)
4073 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4074 lt_cv_file_magic_cmd='/usr/bin/file -L'
4075 lt_cv_file_magic_test_file=/shlib/libc.so
4078 cygwin*)
4079 # func_win32_libid is a shell function defined in ltmain.sh
4080 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4081 lt_cv_file_magic_cmd='func_win32_libid'
4084 mingw* | pw32*)
4085 # Base MSYS/MinGW do not provide the 'file' command needed by
4086 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4087 # unless we find 'file', for example because we are cross-compiling.
4088 if ( file / ) >/dev/null 2>&1; then
4089 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4090 lt_cv_file_magic_cmd='func_win32_libid'
4091 else
4092 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4093 lt_cv_file_magic_cmd='$OBJDUMP -f'
4097 darwin* | rhapsody*)
4098 lt_cv_deplibs_check_method=pass_all
4101 freebsd* | dragonfly*)
4102 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4103 case $host_cpu in
4104 i*86 )
4105 # Not sure whether the presence of OpenBSD here was a mistake.
4106 # Let's accept both of them until this is cleared up.
4107 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4108 lt_cv_file_magic_cmd=/usr/bin/file
4109 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4111 esac
4112 else
4113 lt_cv_deplibs_check_method=pass_all
4117 gnu*)
4118 lt_cv_deplibs_check_method=pass_all
4121 hpux10.20* | hpux11*)
4122 lt_cv_file_magic_cmd=/usr/bin/file
4123 case $host_cpu in
4124 ia64*)
4125 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4126 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4128 hppa*64*)
4129 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]'
4130 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4133 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4134 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4136 esac
4139 interix[3-9]*)
4140 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4141 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4144 irix5* | irix6* | nonstopux*)
4145 case $LD in
4146 *-32|*"-32 ") libmagic=32-bit;;
4147 *-n32|*"-n32 ") libmagic=N32;;
4148 *-64|*"-64 ") libmagic=64-bit;;
4149 *) libmagic=never-match;;
4150 esac
4151 lt_cv_deplibs_check_method=pass_all
4154 # This must be Linux ELF.
4155 linux* | k*bsd*-gnu)
4156 lt_cv_deplibs_check_method=pass_all
4159 netbsd*)
4160 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4161 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4162 else
4163 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4167 newos6*)
4168 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4169 lt_cv_file_magic_cmd=/usr/bin/file
4170 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4173 *nto* | *qnx*)
4174 lt_cv_deplibs_check_method=pass_all
4177 openbsd*)
4178 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4179 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4180 else
4181 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4185 osf3* | osf4* | osf5*)
4186 lt_cv_deplibs_check_method=pass_all
4189 rdos*)
4190 lt_cv_deplibs_check_method=pass_all
4193 solaris*)
4194 lt_cv_deplibs_check_method=pass_all
4197 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4198 lt_cv_deplibs_check_method=pass_all
4201 sysv4 | sysv4.3*)
4202 case $host_vendor in
4203 motorola)
4204 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]'
4205 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4207 ncr)
4208 lt_cv_deplibs_check_method=pass_all
4210 sequent)
4211 lt_cv_file_magic_cmd='/bin/file'
4212 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4214 sni)
4215 lt_cv_file_magic_cmd='/bin/file'
4216 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4217 lt_cv_file_magic_test_file=/lib/libc.so
4219 siemens)
4220 lt_cv_deplibs_check_method=pass_all
4223 lt_cv_deplibs_check_method=pass_all
4225 esac
4228 tpf*)
4229 lt_cv_deplibs_check_method=pass_all
4231 esac
4234 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4235 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4236 file_magic_cmd=$lt_cv_file_magic_cmd
4237 deplibs_check_method=$lt_cv_deplibs_check_method
4238 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4251 if test -n "$ac_tool_prefix"; then
4252 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4253 set dummy ${ac_tool_prefix}ar; ac_word=$2
4254 echo "$as_me:$LINENO: checking for $ac_word" >&5
4255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4256 if test "${ac_cv_prog_AR+set}" = set; then
4257 echo $ECHO_N "(cached) $ECHO_C" >&6
4258 else
4259 if test -n "$AR"; then
4260 ac_cv_prog_AR="$AR" # Let the user override the test.
4261 else
4262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4263 for as_dir in $PATH
4265 IFS=$as_save_IFS
4266 test -z "$as_dir" && as_dir=.
4267 for ac_exec_ext in '' $ac_executable_extensions; do
4268 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4269 ac_cv_prog_AR="${ac_tool_prefix}ar"
4270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4271 break 2
4273 done
4274 done
4278 AR=$ac_cv_prog_AR
4279 if test -n "$AR"; then
4280 echo "$as_me:$LINENO: result: $AR" >&5
4281 echo "${ECHO_T}$AR" >&6
4282 else
4283 echo "$as_me:$LINENO: result: no" >&5
4284 echo "${ECHO_T}no" >&6
4288 if test -z "$ac_cv_prog_AR"; then
4289 ac_ct_AR=$AR
4290 # Extract the first word of "ar", so it can be a program name with args.
4291 set dummy ar; ac_word=$2
4292 echo "$as_me:$LINENO: checking for $ac_word" >&5
4293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4294 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4295 echo $ECHO_N "(cached) $ECHO_C" >&6
4296 else
4297 if test -n "$ac_ct_AR"; then
4298 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4299 else
4300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4301 for as_dir in $PATH
4303 IFS=$as_save_IFS
4304 test -z "$as_dir" && as_dir=.
4305 for ac_exec_ext in '' $ac_executable_extensions; do
4306 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4307 ac_cv_prog_ac_ct_AR="ar"
4308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4309 break 2
4311 done
4312 done
4314 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
4317 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4318 if test -n "$ac_ct_AR"; then
4319 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4320 echo "${ECHO_T}$ac_ct_AR" >&6
4321 else
4322 echo "$as_me:$LINENO: result: no" >&5
4323 echo "${ECHO_T}no" >&6
4326 AR=$ac_ct_AR
4327 else
4328 AR="$ac_cv_prog_AR"
4331 test -z "$AR" && AR=ar
4332 test -z "$AR_FLAGS" && AR_FLAGS=cru
4344 if test -n "$ac_tool_prefix"; then
4345 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4346 set dummy ${ac_tool_prefix}strip; ac_word=$2
4347 echo "$as_me:$LINENO: checking for $ac_word" >&5
4348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4349 if test "${ac_cv_prog_STRIP+set}" = set; then
4350 echo $ECHO_N "(cached) $ECHO_C" >&6
4351 else
4352 if test -n "$STRIP"; then
4353 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4354 else
4355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4356 for as_dir in $PATH
4358 IFS=$as_save_IFS
4359 test -z "$as_dir" && as_dir=.
4360 for ac_exec_ext in '' $ac_executable_extensions; do
4361 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4362 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4364 break 2
4366 done
4367 done
4371 STRIP=$ac_cv_prog_STRIP
4372 if test -n "$STRIP"; then
4373 echo "$as_me:$LINENO: result: $STRIP" >&5
4374 echo "${ECHO_T}$STRIP" >&6
4375 else
4376 echo "$as_me:$LINENO: result: no" >&5
4377 echo "${ECHO_T}no" >&6
4381 if test -z "$ac_cv_prog_STRIP"; then
4382 ac_ct_STRIP=$STRIP
4383 # Extract the first word of "strip", so it can be a program name with args.
4384 set dummy strip; ac_word=$2
4385 echo "$as_me:$LINENO: checking for $ac_word" >&5
4386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4387 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4388 echo $ECHO_N "(cached) $ECHO_C" >&6
4389 else
4390 if test -n "$ac_ct_STRIP"; then
4391 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4392 else
4393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4394 for as_dir in $PATH
4396 IFS=$as_save_IFS
4397 test -z "$as_dir" && as_dir=.
4398 for ac_exec_ext in '' $ac_executable_extensions; do
4399 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4400 ac_cv_prog_ac_ct_STRIP="strip"
4401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4402 break 2
4404 done
4405 done
4407 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4410 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4411 if test -n "$ac_ct_STRIP"; then
4412 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4413 echo "${ECHO_T}$ac_ct_STRIP" >&6
4414 else
4415 echo "$as_me:$LINENO: result: no" >&5
4416 echo "${ECHO_T}no" >&6
4419 STRIP=$ac_ct_STRIP
4420 else
4421 STRIP="$ac_cv_prog_STRIP"
4424 test -z "$STRIP" && STRIP=:
4431 if test -n "$ac_tool_prefix"; then
4432 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4433 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4434 echo "$as_me:$LINENO: checking for $ac_word" >&5
4435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4436 if test "${ac_cv_prog_RANLIB+set}" = set; then
4437 echo $ECHO_N "(cached) $ECHO_C" >&6
4438 else
4439 if test -n "$RANLIB"; then
4440 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4441 else
4442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4443 for as_dir in $PATH
4445 IFS=$as_save_IFS
4446 test -z "$as_dir" && as_dir=.
4447 for ac_exec_ext in '' $ac_executable_extensions; do
4448 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4449 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4451 break 2
4453 done
4454 done
4458 RANLIB=$ac_cv_prog_RANLIB
4459 if test -n "$RANLIB"; then
4460 echo "$as_me:$LINENO: result: $RANLIB" >&5
4461 echo "${ECHO_T}$RANLIB" >&6
4462 else
4463 echo "$as_me:$LINENO: result: no" >&5
4464 echo "${ECHO_T}no" >&6
4468 if test -z "$ac_cv_prog_RANLIB"; then
4469 ac_ct_RANLIB=$RANLIB
4470 # Extract the first word of "ranlib", so it can be a program name with args.
4471 set dummy ranlib; ac_word=$2
4472 echo "$as_me:$LINENO: checking for $ac_word" >&5
4473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4474 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4475 echo $ECHO_N "(cached) $ECHO_C" >&6
4476 else
4477 if test -n "$ac_ct_RANLIB"; then
4478 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4479 else
4480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4481 for as_dir in $PATH
4483 IFS=$as_save_IFS
4484 test -z "$as_dir" && as_dir=.
4485 for ac_exec_ext in '' $ac_executable_extensions; do
4486 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4487 ac_cv_prog_ac_ct_RANLIB="ranlib"
4488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4489 break 2
4491 done
4492 done
4494 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4497 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4498 if test -n "$ac_ct_RANLIB"; then
4499 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4500 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4501 else
4502 echo "$as_me:$LINENO: result: no" >&5
4503 echo "${ECHO_T}no" >&6
4506 RANLIB=$ac_ct_RANLIB
4507 else
4508 RANLIB="$ac_cv_prog_RANLIB"
4511 test -z "$RANLIB" && RANLIB=:
4518 # Determine commands to create old-style static archives.
4519 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4520 old_postinstall_cmds='chmod 644 $oldlib'
4521 old_postuninstall_cmds=
4523 if test -n "$RANLIB"; then
4524 case $host_os in
4525 openbsd*)
4526 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4529 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4531 esac
4532 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4568 # If no C compiler was specified, use CC.
4569 LTCC=${LTCC-"$CC"}
4571 # If no C compiler flags were specified, use CFLAGS.
4572 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4574 # Allow CC to be a program name with arguments.
4575 compiler=$CC
4578 # Check for command to grab the raw symbol name followed by C symbol from nm.
4579 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4580 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
4581 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4582 echo $ECHO_N "(cached) $ECHO_C" >&6
4583 else
4585 # These are sane defaults that work on at least a few old systems.
4586 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4588 # Character class describing NM global symbol codes.
4589 symcode='[BCDEGRST]'
4591 # Regexp to match symbols that can be accessed directly from C.
4592 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4594 # Define system-specific variables.
4595 case $host_os in
4596 aix*)
4597 symcode='[BCDT]'
4599 cygwin* | mingw* | pw32*)
4600 symcode='[ABCDGISTW]'
4602 hpux*)
4603 if test "$host_cpu" = ia64; then
4604 symcode='[ABCDEGRST]'
4607 irix* | nonstopux*)
4608 symcode='[BCDEGRST]'
4610 osf*)
4611 symcode='[BCDEGQRST]'
4613 solaris*)
4614 symcode='[BDRT]'
4616 sco3.2v5*)
4617 symcode='[DT]'
4619 sysv4.2uw2*)
4620 symcode='[DT]'
4622 sysv5* | sco5v6* | unixware* | OpenUNIX*)
4623 symcode='[ABDT]'
4625 sysv4)
4626 symcode='[DFNSTU]'
4628 esac
4630 # If we're using GNU nm, then use its standard symbol codes.
4631 case `$NM -V 2>&1` in
4632 *GNU* | *'with BFD'*)
4633 symcode='[ABCDGIRSTW]' ;;
4634 esac
4636 # Transform an extracted symbol line into a proper C declaration.
4637 # Some systems (esp. on ia64) link data and code symbols differently,
4638 # so use this general approach.
4639 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4641 # Transform an extracted symbol line into symbol name and symbol address
4642 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
4644 # Handle CRLF in mingw tool chain
4645 opt_cr=
4646 case $build_os in
4647 mingw*)
4648 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4650 esac
4652 # Try without a prefix underscore, then with it.
4653 for ac_symprfx in "" "_"; do
4655 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4656 symxfrm="\\1 $ac_symprfx\\2 \\2"
4658 # Write the raw and C identifiers.
4659 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4660 # Fake it for dumpbin and say T for any non-static function
4661 # and D for any global variable.
4662 # Also find C++ and __fastcall symbols from MSVC++,
4663 # which start with @ or ?.
4664 lt_cv_sys_global_symbol_pipe="$AWK '"\
4665 " {last_section=section; section=\$ 3};"\
4666 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4667 " \$ 0!~/External *\|/{next};"\
4668 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4669 " {if(hide[section]) next};"\
4670 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4671 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4672 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
4673 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4674 " ' prfx=^$ac_symprfx"
4675 else
4676 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4679 # Check to see that the pipe works correctly.
4680 pipe_works=no
4682 rm -f conftest*
4683 cat > conftest.$ac_ext <<_LT_EOF
4684 #ifdef __cplusplus
4685 extern "C" {
4686 #endif
4687 char nm_test_var;
4688 void nm_test_func(void);
4689 void nm_test_func(void){}
4690 #ifdef __cplusplus
4692 #endif
4693 int main(){nm_test_var='a';nm_test_func();return(0);}
4694 _LT_EOF
4696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4697 (eval $ac_compile) 2>&5
4698 ac_status=$?
4699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700 (exit $ac_status); }; then
4701 # Now try to grab the symbols.
4702 nlist=conftest.nm
4703 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4704 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4705 ac_status=$?
4706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); } && test -s "$nlist"; then
4708 # Try sorting and uniquifying the output.
4709 if sort "$nlist" | uniq > "$nlist"T; then
4710 mv -f "$nlist"T "$nlist"
4711 else
4712 rm -f "$nlist"T
4715 # Make sure that we snagged all the symbols we need.
4716 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4717 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4718 cat <<_LT_EOF > conftest.$ac_ext
4719 #ifdef __cplusplus
4720 extern "C" {
4721 #endif
4723 _LT_EOF
4724 # Now generate the symbol file.
4725 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4727 cat <<_LT_EOF >> conftest.$ac_ext
4729 /* The mapping between symbol names and symbols. */
4730 const struct {
4731 const char *name;
4732 void *address;
4734 lt__PROGRAM__LTX_preloaded_symbols[] =
4736 { "@PROGRAM@", (void *) 0 },
4737 _LT_EOF
4738 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4739 cat <<\_LT_EOF >> conftest.$ac_ext
4740 {0, (void *) 0}
4743 /* This works around a problem in FreeBSD linker */
4744 #ifdef FREEBSD_WORKAROUND
4745 static const void *lt_preloaded_setup() {
4746 return lt__PROGRAM__LTX_preloaded_symbols;
4748 #endif
4750 #ifdef __cplusplus
4752 #endif
4753 _LT_EOF
4754 # Now try linking the two files.
4755 mv conftest.$ac_objext conftstm.$ac_objext
4756 lt_save_LIBS="$LIBS"
4757 lt_save_CFLAGS="$CFLAGS"
4758 LIBS="conftstm.$ac_objext"
4759 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4761 (eval $ac_link) 2>&5
4762 ac_status=$?
4763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4764 (exit $ac_status); } && test -s conftest${ac_exeext}; then
4765 pipe_works=yes
4767 LIBS="$lt_save_LIBS"
4768 CFLAGS="$lt_save_CFLAGS"
4769 else
4770 echo "cannot find nm_test_func in $nlist" >&5
4772 else
4773 echo "cannot find nm_test_var in $nlist" >&5
4775 else
4776 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4778 else
4779 echo "$progname: failed program was:" >&5
4780 cat conftest.$ac_ext >&5
4782 rm -f conftest* conftst*
4784 # Do not use the global_symbol_pipe unless it works.
4785 if test "$pipe_works" = yes; then
4786 break
4787 else
4788 lt_cv_sys_global_symbol_pipe=
4790 done
4794 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4795 lt_cv_sys_global_symbol_to_cdecl=
4797 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4798 echo "$as_me:$LINENO: result: failed" >&5
4799 echo "${ECHO_T}failed" >&6
4800 else
4801 echo "$as_me:$LINENO: result: ok" >&5
4802 echo "${ECHO_T}ok" >&6
4822 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4823 if test "${enable_libtool_lock+set}" = set; then
4824 enableval="$enable_libtool_lock"
4827 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4829 # Some flags need to be propagated to the compiler or linker for good
4830 # libtool support.
4831 case $host in
4832 ia64-*-hpux*)
4833 # Find out which ABI we are using.
4834 echo 'int i;' > conftest.$ac_ext
4835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4836 (eval $ac_compile) 2>&5
4837 ac_status=$?
4838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839 (exit $ac_status); }; then
4840 case `/usr/bin/file conftest.$ac_objext` in
4841 *ELF-32*)
4842 HPUX_IA64_MODE="32"
4844 *ELF-64*)
4845 HPUX_IA64_MODE="64"
4847 esac
4849 rm -rf conftest*
4851 *-*-irix6*)
4852 # Find out which ABI we are using.
4853 echo '#line 4853 "configure"' > conftest.$ac_ext
4854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4855 (eval $ac_compile) 2>&5
4856 ac_status=$?
4857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4858 (exit $ac_status); }; then
4859 if test "$lt_cv_prog_gnu_ld" = yes; then
4860 case `/usr/bin/file conftest.$ac_objext` in
4861 *32-bit*)
4862 LD="${LD-ld} -melf32bsmip"
4864 *N32*)
4865 LD="${LD-ld} -melf32bmipn32"
4867 *64-bit*)
4868 LD="${LD-ld} -melf64bmip"
4870 esac
4871 else
4872 case `/usr/bin/file conftest.$ac_objext` in
4873 *32-bit*)
4874 LD="${LD-ld} -32"
4876 *N32*)
4877 LD="${LD-ld} -n32"
4879 *64-bit*)
4880 LD="${LD-ld} -64"
4882 esac
4885 rm -rf conftest*
4888 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4889 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
4890 # Find out which ABI we are using.
4891 echo 'int i;' > conftest.$ac_ext
4892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4893 (eval $ac_compile) 2>&5
4894 ac_status=$?
4895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); }; then
4897 case `/usr/bin/file conftest.o` in
4898 *32-bit*)
4899 case $host in
4900 x86_64-*kfreebsd*-gnu)
4901 LD="${LD-ld} -m elf_i386_fbsd"
4903 x86_64-*linux*)
4904 LD="${LD-ld} -m elf_i386"
4906 ppc64-*linux*|powerpc64-*linux*)
4907 LD="${LD-ld} -m elf32ppclinux"
4909 s390x-*linux*)
4910 LD="${LD-ld} -m elf_s390"
4912 sparc64-*linux*)
4913 LD="${LD-ld} -m elf32_sparc"
4915 esac
4917 *64-bit*)
4918 case $host in
4919 x86_64-*kfreebsd*-gnu)
4920 LD="${LD-ld} -m elf_x86_64_fbsd"
4922 x86_64-*linux*)
4923 LD="${LD-ld} -m elf_x86_64"
4925 ppc*-*linux*|powerpc*-*linux*)
4926 LD="${LD-ld} -m elf64ppc"
4928 s390*-*linux*|s390*-*tpf*)
4929 LD="${LD-ld} -m elf64_s390"
4931 sparc*-*linux*)
4932 LD="${LD-ld} -m elf64_sparc"
4934 esac
4936 esac
4938 rm -rf conftest*
4941 *-*-sco3.2v5*)
4942 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4943 SAVE_CFLAGS="$CFLAGS"
4944 CFLAGS="$CFLAGS -belf"
4945 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4946 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4947 if test "${lt_cv_cc_needs_belf+set}" = set; then
4948 echo $ECHO_N "(cached) $ECHO_C" >&6
4949 else
4950 ac_ext=c
4951 ac_cpp='$CPP $CPPFLAGS'
4952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4956 if test x$gcc_no_link = xyes; then
4957 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4958 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4959 { (exit 1); exit 1; }; }
4961 cat >conftest.$ac_ext <<_ACEOF
4962 /* confdefs.h. */
4963 _ACEOF
4964 cat confdefs.h >>conftest.$ac_ext
4965 cat >>conftest.$ac_ext <<_ACEOF
4966 /* end confdefs.h. */
4969 main ()
4973 return 0;
4975 _ACEOF
4976 rm -f conftest.$ac_objext conftest$ac_exeext
4977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4978 (eval $ac_link) 2>conftest.er1
4979 ac_status=$?
4980 grep -v '^ *+' conftest.er1 >conftest.err
4981 rm -f conftest.er1
4982 cat conftest.err >&5
4983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984 (exit $ac_status); } &&
4985 { ac_try='test -z "$ac_c_werror_flag"
4986 || test ! -s conftest.err'
4987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4988 (eval $ac_try) 2>&5
4989 ac_status=$?
4990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991 (exit $ac_status); }; } &&
4992 { ac_try='test -s conftest$ac_exeext'
4993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4994 (eval $ac_try) 2>&5
4995 ac_status=$?
4996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997 (exit $ac_status); }; }; then
4998 lt_cv_cc_needs_belf=yes
4999 else
5000 echo "$as_me: failed program was:" >&5
5001 sed 's/^/| /' conftest.$ac_ext >&5
5003 lt_cv_cc_needs_belf=no
5005 rm -f conftest.err conftest.$ac_objext \
5006 conftest$ac_exeext conftest.$ac_ext
5007 ac_ext=c
5008 ac_cpp='$CPP $CPPFLAGS'
5009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5014 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5015 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5016 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5017 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5018 CFLAGS="$SAVE_CFLAGS"
5021 sparc*-*solaris*)
5022 # Find out which ABI we are using.
5023 echo 'int i;' > conftest.$ac_ext
5024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5025 (eval $ac_compile) 2>&5
5026 ac_status=$?
5027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028 (exit $ac_status); }; then
5029 case `/usr/bin/file conftest.o` in
5030 *64-bit*)
5031 case $lt_cv_prog_gnu_ld in
5032 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5033 *) LD="${LD-ld} -64" ;;
5034 esac
5036 esac
5038 rm -rf conftest*
5040 esac
5042 need_locks="$enable_libtool_lock"
5044 ac_ext=c
5045 ac_cpp='$CPP $CPPFLAGS'
5046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5049 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5050 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5051 # On Suns, sometimes $CPP names a directory.
5052 if test -n "$CPP" && test -d "$CPP"; then
5053 CPP=
5055 if test -z "$CPP"; then
5056 if test "${ac_cv_prog_CPP+set}" = set; then
5057 echo $ECHO_N "(cached) $ECHO_C" >&6
5058 else
5059 # Double quotes because CPP needs to be expanded
5060 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5062 ac_preproc_ok=false
5063 for ac_c_preproc_warn_flag in '' yes
5065 # Use a header file that comes with gcc, so configuring glibc
5066 # with a fresh cross-compiler works.
5067 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5068 # <limits.h> exists even on freestanding compilers.
5069 # On the NeXT, cc -E runs the code through the compiler's parser,
5070 # not just through cpp. "Syntax error" is here to catch this case.
5071 cat >conftest.$ac_ext <<_ACEOF
5072 /* confdefs.h. */
5073 _ACEOF
5074 cat confdefs.h >>conftest.$ac_ext
5075 cat >>conftest.$ac_ext <<_ACEOF
5076 /* end confdefs.h. */
5077 #ifdef __STDC__
5078 # include <limits.h>
5079 #else
5080 # include <assert.h>
5081 #endif
5082 Syntax error
5083 _ACEOF
5084 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5085 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5086 ac_status=$?
5087 grep -v '^ *+' conftest.er1 >conftest.err
5088 rm -f conftest.er1
5089 cat conftest.err >&5
5090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091 (exit $ac_status); } >/dev/null; then
5092 if test -s conftest.err; then
5093 ac_cpp_err=$ac_c_preproc_warn_flag
5094 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5095 else
5096 ac_cpp_err=
5098 else
5099 ac_cpp_err=yes
5101 if test -z "$ac_cpp_err"; then
5103 else
5104 echo "$as_me: failed program was:" >&5
5105 sed 's/^/| /' conftest.$ac_ext >&5
5107 # Broken: fails on valid input.
5108 continue
5110 rm -f conftest.err conftest.$ac_ext
5112 # OK, works on sane cases. Now check whether non-existent headers
5113 # can be detected and how.
5114 cat >conftest.$ac_ext <<_ACEOF
5115 /* confdefs.h. */
5116 _ACEOF
5117 cat confdefs.h >>conftest.$ac_ext
5118 cat >>conftest.$ac_ext <<_ACEOF
5119 /* end confdefs.h. */
5120 #include <ac_nonexistent.h>
5121 _ACEOF
5122 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5123 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5124 ac_status=$?
5125 grep -v '^ *+' conftest.er1 >conftest.err
5126 rm -f conftest.er1
5127 cat conftest.err >&5
5128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129 (exit $ac_status); } >/dev/null; then
5130 if test -s conftest.err; then
5131 ac_cpp_err=$ac_c_preproc_warn_flag
5132 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5133 else
5134 ac_cpp_err=
5136 else
5137 ac_cpp_err=yes
5139 if test -z "$ac_cpp_err"; then
5140 # Broken: success on invalid input.
5141 continue
5142 else
5143 echo "$as_me: failed program was:" >&5
5144 sed 's/^/| /' conftest.$ac_ext >&5
5146 # Passes both tests.
5147 ac_preproc_ok=:
5148 break
5150 rm -f conftest.err conftest.$ac_ext
5152 done
5153 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5154 rm -f conftest.err conftest.$ac_ext
5155 if $ac_preproc_ok; then
5156 break
5159 done
5160 ac_cv_prog_CPP=$CPP
5163 CPP=$ac_cv_prog_CPP
5164 else
5165 ac_cv_prog_CPP=$CPP
5167 echo "$as_me:$LINENO: result: $CPP" >&5
5168 echo "${ECHO_T}$CPP" >&6
5169 ac_preproc_ok=false
5170 for ac_c_preproc_warn_flag in '' yes
5172 # Use a header file that comes with gcc, so configuring glibc
5173 # with a fresh cross-compiler works.
5174 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5175 # <limits.h> exists even on freestanding compilers.
5176 # On the NeXT, cc -E runs the code through the compiler's parser,
5177 # not just through cpp. "Syntax error" is here to catch this case.
5178 cat >conftest.$ac_ext <<_ACEOF
5179 /* confdefs.h. */
5180 _ACEOF
5181 cat confdefs.h >>conftest.$ac_ext
5182 cat >>conftest.$ac_ext <<_ACEOF
5183 /* end confdefs.h. */
5184 #ifdef __STDC__
5185 # include <limits.h>
5186 #else
5187 # include <assert.h>
5188 #endif
5189 Syntax error
5190 _ACEOF
5191 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5192 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5193 ac_status=$?
5194 grep -v '^ *+' conftest.er1 >conftest.err
5195 rm -f conftest.er1
5196 cat conftest.err >&5
5197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198 (exit $ac_status); } >/dev/null; then
5199 if test -s conftest.err; then
5200 ac_cpp_err=$ac_c_preproc_warn_flag
5201 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5202 else
5203 ac_cpp_err=
5205 else
5206 ac_cpp_err=yes
5208 if test -z "$ac_cpp_err"; then
5210 else
5211 echo "$as_me: failed program was:" >&5
5212 sed 's/^/| /' conftest.$ac_ext >&5
5214 # Broken: fails on valid input.
5215 continue
5217 rm -f conftest.err conftest.$ac_ext
5219 # OK, works on sane cases. Now check whether non-existent headers
5220 # can be detected and how.
5221 cat >conftest.$ac_ext <<_ACEOF
5222 /* confdefs.h. */
5223 _ACEOF
5224 cat confdefs.h >>conftest.$ac_ext
5225 cat >>conftest.$ac_ext <<_ACEOF
5226 /* end confdefs.h. */
5227 #include <ac_nonexistent.h>
5228 _ACEOF
5229 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5230 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5231 ac_status=$?
5232 grep -v '^ *+' conftest.er1 >conftest.err
5233 rm -f conftest.er1
5234 cat conftest.err >&5
5235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236 (exit $ac_status); } >/dev/null; then
5237 if test -s conftest.err; then
5238 ac_cpp_err=$ac_c_preproc_warn_flag
5239 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5240 else
5241 ac_cpp_err=
5243 else
5244 ac_cpp_err=yes
5246 if test -z "$ac_cpp_err"; then
5247 # Broken: success on invalid input.
5248 continue
5249 else
5250 echo "$as_me: failed program was:" >&5
5251 sed 's/^/| /' conftest.$ac_ext >&5
5253 # Passes both tests.
5254 ac_preproc_ok=:
5255 break
5257 rm -f conftest.err conftest.$ac_ext
5259 done
5260 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5261 rm -f conftest.err conftest.$ac_ext
5262 if $ac_preproc_ok; then
5264 else
5265 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5266 See \`config.log' for more details." >&5
5267 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5268 See \`config.log' for more details." >&2;}
5269 { (exit 1); exit 1; }; }
5272 ac_ext=c
5273 ac_cpp='$CPP $CPPFLAGS'
5274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5279 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5280 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5281 if test "${ac_cv_header_stdc+set}" = set; then
5282 echo $ECHO_N "(cached) $ECHO_C" >&6
5283 else
5284 cat >conftest.$ac_ext <<_ACEOF
5285 /* confdefs.h. */
5286 _ACEOF
5287 cat confdefs.h >>conftest.$ac_ext
5288 cat >>conftest.$ac_ext <<_ACEOF
5289 /* end confdefs.h. */
5290 #include <stdlib.h>
5291 #include <stdarg.h>
5292 #include <string.h>
5293 #include <float.h>
5296 main ()
5300 return 0;
5302 _ACEOF
5303 rm -f conftest.$ac_objext
5304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5305 (eval $ac_compile) 2>conftest.er1
5306 ac_status=$?
5307 grep -v '^ *+' conftest.er1 >conftest.err
5308 rm -f conftest.er1
5309 cat conftest.err >&5
5310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311 (exit $ac_status); } &&
5312 { ac_try='test -z "$ac_c_werror_flag"
5313 || test ! -s conftest.err'
5314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5315 (eval $ac_try) 2>&5
5316 ac_status=$?
5317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318 (exit $ac_status); }; } &&
5319 { ac_try='test -s conftest.$ac_objext'
5320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5321 (eval $ac_try) 2>&5
5322 ac_status=$?
5323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324 (exit $ac_status); }; }; then
5325 ac_cv_header_stdc=yes
5326 else
5327 echo "$as_me: failed program was:" >&5
5328 sed 's/^/| /' conftest.$ac_ext >&5
5330 ac_cv_header_stdc=no
5332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5334 if test $ac_cv_header_stdc = yes; then
5335 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5336 cat >conftest.$ac_ext <<_ACEOF
5337 /* confdefs.h. */
5338 _ACEOF
5339 cat confdefs.h >>conftest.$ac_ext
5340 cat >>conftest.$ac_ext <<_ACEOF
5341 /* end confdefs.h. */
5342 #include <string.h>
5344 _ACEOF
5345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5346 $EGREP "memchr" >/dev/null 2>&1; then
5348 else
5349 ac_cv_header_stdc=no
5351 rm -f conftest*
5355 if test $ac_cv_header_stdc = yes; then
5356 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5357 cat >conftest.$ac_ext <<_ACEOF
5358 /* confdefs.h. */
5359 _ACEOF
5360 cat confdefs.h >>conftest.$ac_ext
5361 cat >>conftest.$ac_ext <<_ACEOF
5362 /* end confdefs.h. */
5363 #include <stdlib.h>
5365 _ACEOF
5366 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5367 $EGREP "free" >/dev/null 2>&1; then
5369 else
5370 ac_cv_header_stdc=no
5372 rm -f conftest*
5376 if test $ac_cv_header_stdc = yes; then
5377 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5378 if test "$cross_compiling" = yes; then
5380 else
5381 cat >conftest.$ac_ext <<_ACEOF
5382 /* confdefs.h. */
5383 _ACEOF
5384 cat confdefs.h >>conftest.$ac_ext
5385 cat >>conftest.$ac_ext <<_ACEOF
5386 /* end confdefs.h. */
5387 #include <ctype.h>
5388 #if ((' ' & 0x0FF) == 0x020)
5389 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5390 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5391 #else
5392 # define ISLOWER(c) \
5393 (('a' <= (c) && (c) <= 'i') \
5394 || ('j' <= (c) && (c) <= 'r') \
5395 || ('s' <= (c) && (c) <= 'z'))
5396 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5397 #endif
5399 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5401 main ()
5403 int i;
5404 for (i = 0; i < 256; i++)
5405 if (XOR (islower (i), ISLOWER (i))
5406 || toupper (i) != TOUPPER (i))
5407 exit(2);
5408 exit (0);
5410 _ACEOF
5411 rm -f conftest$ac_exeext
5412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5413 (eval $ac_link) 2>&5
5414 ac_status=$?
5415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5418 (eval $ac_try) 2>&5
5419 ac_status=$?
5420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5421 (exit $ac_status); }; }; then
5423 else
5424 echo "$as_me: program exited with status $ac_status" >&5
5425 echo "$as_me: failed program was:" >&5
5426 sed 's/^/| /' conftest.$ac_ext >&5
5428 ( exit $ac_status )
5429 ac_cv_header_stdc=no
5431 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5435 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5436 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5437 if test $ac_cv_header_stdc = yes; then
5439 cat >>confdefs.h <<\_ACEOF
5440 #define STDC_HEADERS 1
5441 _ACEOF
5445 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5455 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5456 inttypes.h stdint.h unistd.h
5458 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5459 echo "$as_me:$LINENO: checking for $ac_header" >&5
5460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5462 echo $ECHO_N "(cached) $ECHO_C" >&6
5463 else
5464 cat >conftest.$ac_ext <<_ACEOF
5465 /* confdefs.h. */
5466 _ACEOF
5467 cat confdefs.h >>conftest.$ac_ext
5468 cat >>conftest.$ac_ext <<_ACEOF
5469 /* end confdefs.h. */
5470 $ac_includes_default
5472 #include <$ac_header>
5473 _ACEOF
5474 rm -f conftest.$ac_objext
5475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5476 (eval $ac_compile) 2>conftest.er1
5477 ac_status=$?
5478 grep -v '^ *+' conftest.er1 >conftest.err
5479 rm -f conftest.er1
5480 cat conftest.err >&5
5481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482 (exit $ac_status); } &&
5483 { ac_try='test -z "$ac_c_werror_flag"
5484 || test ! -s conftest.err'
5485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5486 (eval $ac_try) 2>&5
5487 ac_status=$?
5488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489 (exit $ac_status); }; } &&
5490 { ac_try='test -s conftest.$ac_objext'
5491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5492 (eval $ac_try) 2>&5
5493 ac_status=$?
5494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495 (exit $ac_status); }; }; then
5496 eval "$as_ac_Header=yes"
5497 else
5498 echo "$as_me: failed program was:" >&5
5499 sed 's/^/| /' conftest.$ac_ext >&5
5501 eval "$as_ac_Header=no"
5503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5505 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5506 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5507 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5508 cat >>confdefs.h <<_ACEOF
5509 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5510 _ACEOF
5514 done
5518 for ac_header in dlfcn.h
5520 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5521 echo "$as_me:$LINENO: checking for $ac_header" >&5
5522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5523 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5524 echo $ECHO_N "(cached) $ECHO_C" >&6
5525 else
5526 cat >conftest.$ac_ext <<_ACEOF
5527 /* confdefs.h. */
5528 _ACEOF
5529 cat confdefs.h >>conftest.$ac_ext
5530 cat >>conftest.$ac_ext <<_ACEOF
5531 /* end confdefs.h. */
5532 $ac_includes_default
5534 #include <$ac_header>
5535 _ACEOF
5536 rm -f conftest.$ac_objext
5537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5538 (eval $ac_compile) 2>conftest.er1
5539 ac_status=$?
5540 grep -v '^ *+' conftest.er1 >conftest.err
5541 rm -f conftest.er1
5542 cat conftest.err >&5
5543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544 (exit $ac_status); } &&
5545 { ac_try='test -z "$ac_c_werror_flag"
5546 || test ! -s conftest.err'
5547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5548 (eval $ac_try) 2>&5
5549 ac_status=$?
5550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551 (exit $ac_status); }; } &&
5552 { ac_try='test -s conftest.$ac_objext'
5553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5554 (eval $ac_try) 2>&5
5555 ac_status=$?
5556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5557 (exit $ac_status); }; }; then
5558 eval "$as_ac_Header=yes"
5559 else
5560 echo "$as_me: failed program was:" >&5
5561 sed 's/^/| /' conftest.$ac_ext >&5
5563 eval "$as_ac_Header=no"
5565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5567 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5568 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5569 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5570 cat >>confdefs.h <<_ACEOF
5571 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5572 _ACEOF
5576 done
5580 # This can be used to rebuild libtool when needed
5581 LIBTOOL_DEPS="$ltmain"
5583 # Always use our own libtool.
5584 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5610 test -z "$LN_S" && LN_S="ln -s"
5625 if test -n "${ZSH_VERSION+set}" ; then
5626 setopt NO_GLOB_SUBST
5629 echo "$as_me:$LINENO: checking for objdir" >&5
5630 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5631 if test "${lt_cv_objdir+set}" = set; then
5632 echo $ECHO_N "(cached) $ECHO_C" >&6
5633 else
5634 rm -f .libs 2>/dev/null
5635 mkdir .libs 2>/dev/null
5636 if test -d .libs; then
5637 lt_cv_objdir=.libs
5638 else
5639 # MS-DOS does not allow filenames that begin with a dot.
5640 lt_cv_objdir=_libs
5642 rmdir .libs 2>/dev/null
5644 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5645 echo "${ECHO_T}$lt_cv_objdir" >&6
5646 objdir=$lt_cv_objdir
5652 cat >>confdefs.h <<_ACEOF
5653 #define LT_OBJDIR "$lt_cv_objdir/"
5654 _ACEOF
5672 case $host_os in
5673 aix3*)
5674 # AIX sometimes has problems with the GCC collect2 program. For some
5675 # reason, if we set the COLLECT_NAMES environment variable, the problems
5676 # vanish in a puff of smoke.
5677 if test "X${COLLECT_NAMES+set}" != Xset; then
5678 COLLECT_NAMES=
5679 export COLLECT_NAMES
5682 esac
5684 # Sed substitution that helps us do robust quoting. It backslashifies
5685 # metacharacters that are still active within double-quoted strings.
5686 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5688 # Same as above, but do not quote variable references.
5689 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5691 # Sed substitution to delay expansion of an escaped shell variable in a
5692 # double_quote_subst'ed string.
5693 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5695 # Sed substitution to delay expansion of an escaped single quote.
5696 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5698 # Sed substitution to avoid accidental globbing in evaled expressions
5699 no_glob_subst='s/\*/\\\*/g'
5701 # Global variables:
5702 ofile=libtool
5703 can_build_shared=yes
5705 # All known linkers require a `.a' archive for static linking (except MSVC,
5706 # which needs '.lib').
5707 libext=a
5709 with_gnu_ld="$lt_cv_prog_gnu_ld"
5711 old_CC="$CC"
5712 old_CFLAGS="$CFLAGS"
5714 # Set sane defaults for various variables
5715 test -z "$CC" && CC=cc
5716 test -z "$LTCC" && LTCC=$CC
5717 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
5718 test -z "$LD" && LD=ld
5719 test -z "$ac_objext" && ac_objext=o
5721 for cc_temp in $compiler""; do
5722 case $cc_temp in
5723 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5724 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5725 \-*) ;;
5726 *) break;;
5727 esac
5728 done
5729 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
5732 # Only perform the check for file, if the check method requires it
5733 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5734 case $deplibs_check_method in
5735 file_magic*)
5736 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5737 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5738 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5739 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5740 echo $ECHO_N "(cached) $ECHO_C" >&6
5741 else
5742 case $MAGIC_CMD in
5743 [\\/*] | ?:[\\/]*)
5744 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5747 lt_save_MAGIC_CMD="$MAGIC_CMD"
5748 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5749 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5750 for ac_dir in $ac_dummy; do
5751 IFS="$lt_save_ifs"
5752 test -z "$ac_dir" && ac_dir=.
5753 if test -f $ac_dir/${ac_tool_prefix}file; then
5754 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5755 if test -n "$file_magic_test_file"; then
5756 case $deplibs_check_method in
5757 "file_magic "*)
5758 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5759 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5760 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5761 $EGREP "$file_magic_regex" > /dev/null; then
5763 else
5764 cat <<_LT_EOF 1>&2
5766 *** Warning: the command libtool uses to detect shared libraries,
5767 *** $file_magic_cmd, produces output that libtool cannot recognize.
5768 *** The result is that libtool may fail to recognize shared libraries
5769 *** as such. This will affect the creation of libtool libraries that
5770 *** depend on shared libraries, but programs linked with such libtool
5771 *** libraries will work regardless of this problem. Nevertheless, you
5772 *** may want to report the problem to your system manager and/or to
5773 *** bug-libtool@gnu.org
5775 _LT_EOF
5776 fi ;;
5777 esac
5779 break
5781 done
5782 IFS="$lt_save_ifs"
5783 MAGIC_CMD="$lt_save_MAGIC_CMD"
5785 esac
5788 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5789 if test -n "$MAGIC_CMD"; then
5790 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5791 echo "${ECHO_T}$MAGIC_CMD" >&6
5792 else
5793 echo "$as_me:$LINENO: result: no" >&5
5794 echo "${ECHO_T}no" >&6
5801 if test -z "$lt_cv_path_MAGIC_CMD"; then
5802 if test -n "$ac_tool_prefix"; then
5803 echo "$as_me:$LINENO: checking for file" >&5
5804 echo $ECHO_N "checking for file... $ECHO_C" >&6
5805 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5806 echo $ECHO_N "(cached) $ECHO_C" >&6
5807 else
5808 case $MAGIC_CMD in
5809 [\\/*] | ?:[\\/]*)
5810 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5813 lt_save_MAGIC_CMD="$MAGIC_CMD"
5814 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5815 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5816 for ac_dir in $ac_dummy; do
5817 IFS="$lt_save_ifs"
5818 test -z "$ac_dir" && ac_dir=.
5819 if test -f $ac_dir/file; then
5820 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5821 if test -n "$file_magic_test_file"; then
5822 case $deplibs_check_method in
5823 "file_magic "*)
5824 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5825 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5826 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5827 $EGREP "$file_magic_regex" > /dev/null; then
5829 else
5830 cat <<_LT_EOF 1>&2
5832 *** Warning: the command libtool uses to detect shared libraries,
5833 *** $file_magic_cmd, produces output that libtool cannot recognize.
5834 *** The result is that libtool may fail to recognize shared libraries
5835 *** as such. This will affect the creation of libtool libraries that
5836 *** depend on shared libraries, but programs linked with such libtool
5837 *** libraries will work regardless of this problem. Nevertheless, you
5838 *** may want to report the problem to your system manager and/or to
5839 *** bug-libtool@gnu.org
5841 _LT_EOF
5842 fi ;;
5843 esac
5845 break
5847 done
5848 IFS="$lt_save_ifs"
5849 MAGIC_CMD="$lt_save_MAGIC_CMD"
5851 esac
5854 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5855 if test -n "$MAGIC_CMD"; then
5856 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5857 echo "${ECHO_T}$MAGIC_CMD" >&6
5858 else
5859 echo "$as_me:$LINENO: result: no" >&5
5860 echo "${ECHO_T}no" >&6
5864 else
5865 MAGIC_CMD=:
5871 esac
5873 # Use C for the default configuration in the libtool script
5875 lt_save_CC="$CC"
5876 ac_ext=c
5877 ac_cpp='$CPP $CPPFLAGS'
5878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5883 # Source file extension for C test sources.
5884 ac_ext=c
5886 # Object file extension for compiled C test sources.
5887 objext=o
5888 objext=$objext
5890 # Code to be used in simple compile tests
5891 lt_simple_compile_test_code="int some_variable = 0;"
5893 # Code to be used in simple link tests
5894 lt_simple_link_test_code='int main(){return(0);}'
5902 # If no C compiler was specified, use CC.
5903 LTCC=${LTCC-"$CC"}
5905 # If no C compiler flags were specified, use CFLAGS.
5906 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5908 # Allow CC to be a program name with arguments.
5909 compiler=$CC
5911 # Save the default compiler, since it gets overwritten when the other
5912 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
5913 compiler_DEFAULT=$CC
5915 # save warnings/boilerplate of simple test code
5916 ac_outfile=conftest.$ac_objext
5917 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
5918 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
5919 _lt_compiler_boilerplate=`cat conftest.err`
5920 $RM conftest*
5922 ac_outfile=conftest.$ac_objext
5923 echo "$lt_simple_link_test_code" >conftest.$ac_ext
5924 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
5925 _lt_linker_boilerplate=`cat conftest.err`
5926 $RM conftest*
5929 ## CAVEAT EMPTOR:
5930 ## There is no encapsulation within the following macros, do not change
5931 ## the running order or otherwise move them around unless you know exactly
5932 ## what you are doing...
5933 if test -n "$compiler"; then
5935 lt_prog_compiler_no_builtin_flag=
5937 if test "$GCC" = yes; then
5938 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5940 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5941 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5942 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5943 echo $ECHO_N "(cached) $ECHO_C" >&6
5944 else
5945 lt_cv_prog_compiler_rtti_exceptions=no
5946 ac_outfile=conftest.$ac_objext
5947 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5948 lt_compiler_flag="-fno-rtti -fno-exceptions"
5949 # Insert the option either (1) after the last *FLAGS variable, or
5950 # (2) before a word containing "conftest.", or (3) at the end.
5951 # Note that $ac_compile itself does not contain backslashes and begins
5952 # with a dollar sign (not a hyphen), so the echo should work correctly.
5953 # The option is referenced via a variable to avoid confusing sed.
5954 lt_compile=`echo "$ac_compile" | $SED \
5955 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
5956 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5957 -e 's:$: $lt_compiler_flag:'`
5958 (eval echo "\"\$as_me:5958: $lt_compile\"" >&5)
5959 (eval "$lt_compile" 2>conftest.err)
5960 ac_status=$?
5961 cat conftest.err >&5
5962 echo "$as_me:5962: \$? = $ac_status" >&5
5963 if (exit $ac_status) && test -s "$ac_outfile"; then
5964 # The compiler can only warn and ignore the option if not recognized
5965 # So say no if there are warnings other than the usual output.
5966 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
5967 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
5968 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
5969 lt_cv_prog_compiler_rtti_exceptions=yes
5972 $RM conftest*
5975 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5976 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5978 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5979 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5980 else
5991 lt_prog_compiler_wl=
5992 lt_prog_compiler_pic=
5993 lt_prog_compiler_static=
5995 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5996 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5998 if test "$GCC" = yes; then
5999 lt_prog_compiler_wl='-Wl,'
6000 lt_prog_compiler_static='-static'
6002 case $host_os in
6003 aix*)
6004 # All AIX code is PIC.
6005 if test "$host_cpu" = ia64; then
6006 # AIX 5 now supports IA64 processor
6007 lt_prog_compiler_static='-Bstatic'
6011 amigaos*)
6012 if test "$host_cpu" = m68k; then
6013 # FIXME: we need at least 68020 code to build shared libraries, but
6014 # adding the `-m68020' flag to GCC prevents building anything better,
6015 # like `-m68040'.
6016 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6020 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6021 # PIC is the default for these OSes.
6024 mingw* | cygwin* | pw32* | os2*)
6025 # This hack is so that the source file can tell whether it is being
6026 # built for inclusion in a dll (and should export symbols for example).
6027 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6028 # (--disable-auto-import) libraries
6029 lt_prog_compiler_pic='-DDLL_EXPORT'
6032 darwin* | rhapsody*)
6033 # PIC is the default on this platform
6034 # Common symbols not allowed in MH_DYLIB files
6035 lt_prog_compiler_pic='-fno-common'
6038 hpux*)
6039 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6040 # not for PA HP-UX.
6041 case $host_cpu in
6042 hppa*64*|ia64*)
6043 # +Z the default
6046 lt_prog_compiler_pic='-fPIC'
6048 esac
6051 interix[3-9]*)
6052 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6053 # Instead, we relocate shared libraries at runtime.
6056 msdosdjgpp*)
6057 # Just because we use GCC doesn't mean we suddenly get shared libraries
6058 # on systems that don't support them.
6059 lt_prog_compiler_can_build_shared=no
6060 enable_shared=no
6063 *nto* | *qnx*)
6064 # QNX uses GNU C++, but need to define -shared option too, otherwise
6065 # it will coredump.
6066 lt_prog_compiler_pic='-fPIC -shared'
6069 sysv4*MP*)
6070 if test -d /usr/nec; then
6071 lt_prog_compiler_pic=-Kconform_pic
6076 lt_prog_compiler_pic='-fPIC'
6078 esac
6079 else
6080 # PORTME Check for flag to pass linker flags through the system compiler.
6081 case $host_os in
6082 aix*)
6083 lt_prog_compiler_wl='-Wl,'
6084 if test "$host_cpu" = ia64; then
6085 # AIX 5 now supports IA64 processor
6086 lt_prog_compiler_static='-Bstatic'
6087 else
6088 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6091 darwin*)
6092 # PIC is the default on this platform
6093 # Common symbols not allowed in MH_DYLIB files
6094 case $cc_basename in
6095 xlc*)
6096 lt_prog_compiler_pic='-qnocommon'
6097 lt_prog_compiler_wl='-Wl,'
6099 esac
6102 mingw* | cygwin* | pw32* | os2*)
6103 # This hack is so that the source file can tell whether it is being
6104 # built for inclusion in a dll (and should export symbols for example).
6105 lt_prog_compiler_pic='-DDLL_EXPORT'
6108 hpux9* | hpux10* | hpux11*)
6109 lt_prog_compiler_wl='-Wl,'
6110 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6111 # not for PA HP-UX.
6112 case $host_cpu in
6113 hppa*64*|ia64*)
6114 # +Z the default
6117 lt_prog_compiler_pic='+Z'
6119 esac
6120 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6121 lt_prog_compiler_static='${wl}-a ${wl}archive'
6124 irix5* | irix6* | nonstopux*)
6125 lt_prog_compiler_wl='-Wl,'
6126 # PIC (with -KPIC) is the default.
6127 lt_prog_compiler_static='-non_shared'
6130 linux* | k*bsd*-gnu)
6131 case $cc_basename in
6132 icc* | ecc*)
6133 lt_prog_compiler_wl='-Wl,'
6134 lt_prog_compiler_pic='-KPIC'
6135 lt_prog_compiler_static='-static'
6137 pgcc* | pgf77* | pgf90* | pgf95*)
6138 # Portland Group compilers (*not* the Pentium gcc compiler,
6139 # which looks to be a dead project)
6140 lt_prog_compiler_wl='-Wl,'
6141 lt_prog_compiler_pic='-fpic'
6142 lt_prog_compiler_static='-Bstatic'
6144 ccc*)
6145 lt_prog_compiler_wl='-Wl,'
6146 # All Alpha code is PIC.
6147 lt_prog_compiler_static='-non_shared'
6150 case `$CC -V 2>&1 | sed 5q` in
6151 *Sun\ C*)
6152 # Sun C 5.9
6153 lt_prog_compiler_pic='-KPIC'
6154 lt_prog_compiler_static='-Bstatic'
6155 lt_prog_compiler_wl='-Wl,'
6157 *Sun\ F*)
6158 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6159 lt_prog_compiler_pic='-KPIC'
6160 lt_prog_compiler_static='-Bstatic'
6161 lt_prog_compiler_wl=''
6163 esac
6165 esac
6168 newsos6)
6169 lt_prog_compiler_pic='-KPIC'
6170 lt_prog_compiler_static='-Bstatic'
6173 *nto* | *qnx*)
6174 # QNX uses GNU C++, but need to define -shared option too, otherwise
6175 # it will coredump.
6176 lt_prog_compiler_pic='-fPIC -shared'
6179 osf3* | osf4* | osf5*)
6180 lt_prog_compiler_wl='-Wl,'
6181 # All OSF/1 code is PIC.
6182 lt_prog_compiler_static='-non_shared'
6185 rdos*)
6186 lt_prog_compiler_static='-non_shared'
6189 solaris*)
6190 lt_prog_compiler_pic='-KPIC'
6191 lt_prog_compiler_static='-Bstatic'
6192 case $cc_basename in
6193 f77* | f90* | f95*)
6194 lt_prog_compiler_wl='-Qoption ld ';;
6196 lt_prog_compiler_wl='-Wl,';;
6197 esac
6200 sunos4*)
6201 lt_prog_compiler_wl='-Qoption ld '
6202 lt_prog_compiler_pic='-PIC'
6203 lt_prog_compiler_static='-Bstatic'
6206 sysv4 | sysv4.2uw2* | sysv4.3*)
6207 lt_prog_compiler_wl='-Wl,'
6208 lt_prog_compiler_pic='-KPIC'
6209 lt_prog_compiler_static='-Bstatic'
6212 sysv4*MP*)
6213 if test -d /usr/nec ;then
6214 lt_prog_compiler_pic='-Kconform_pic'
6215 lt_prog_compiler_static='-Bstatic'
6219 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6220 lt_prog_compiler_wl='-Wl,'
6221 lt_prog_compiler_pic='-KPIC'
6222 lt_prog_compiler_static='-Bstatic'
6225 unicos*)
6226 lt_prog_compiler_wl='-Wl,'
6227 lt_prog_compiler_can_build_shared=no
6230 uts4*)
6231 lt_prog_compiler_pic='-pic'
6232 lt_prog_compiler_static='-Bstatic'
6236 lt_prog_compiler_can_build_shared=no
6238 esac
6241 case $host_os in
6242 # For platforms which do not support PIC, -DPIC is meaningless:
6243 *djgpp*)
6244 lt_prog_compiler_pic=
6247 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6249 esac
6250 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6251 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6259 # Check to make sure the PIC flag actually works.
6261 if test -n "$lt_prog_compiler_pic"; then
6262 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6263 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6264 if test "${lt_prog_compiler_pic_works+set}" = set; then
6265 echo $ECHO_N "(cached) $ECHO_C" >&6
6266 else
6267 lt_prog_compiler_pic_works=no
6268 ac_outfile=conftest.$ac_objext
6269 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6270 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6271 # Insert the option either (1) after the last *FLAGS variable, or
6272 # (2) before a word containing "conftest.", or (3) at the end.
6273 # Note that $ac_compile itself does not contain backslashes and begins
6274 # with a dollar sign (not a hyphen), so the echo should work correctly.
6275 # The option is referenced via a variable to avoid confusing sed.
6276 lt_compile=`echo "$ac_compile" | $SED \
6277 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6278 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6279 -e 's:$: $lt_compiler_flag:'`
6280 (eval echo "\"\$as_me:6280: $lt_compile\"" >&5)
6281 (eval "$lt_compile" 2>conftest.err)
6282 ac_status=$?
6283 cat conftest.err >&5
6284 echo "$as_me:6284: \$? = $ac_status" >&5
6285 if (exit $ac_status) && test -s "$ac_outfile"; then
6286 # The compiler can only warn and ignore the option if not recognized
6287 # So say no if there are warnings other than the usual output.
6288 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6289 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6290 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6291 lt_prog_compiler_pic_works=yes
6294 $RM conftest*
6297 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6298 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6300 if test x"$lt_prog_compiler_pic_works" = xyes; then
6301 case $lt_prog_compiler_pic in
6302 "" | " "*) ;;
6303 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6304 esac
6305 else
6306 lt_prog_compiler_pic=
6307 lt_prog_compiler_can_build_shared=no
6318 # Check to make sure the static flag actually works.
6320 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6321 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6322 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6323 if test "${lt_prog_compiler_static_works+set}" = set; then
6324 echo $ECHO_N "(cached) $ECHO_C" >&6
6325 else
6326 lt_prog_compiler_static_works=no
6327 save_LDFLAGS="$LDFLAGS"
6328 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6329 echo "$lt_simple_link_test_code" > conftest.$ac_ext
6330 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6331 # The linker can only warn and ignore the option if not recognized
6332 # So say no if there are warnings
6333 if test -s conftest.err; then
6334 # Append any errors to the config.log.
6335 cat conftest.err 1>&5
6336 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6337 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6338 if diff conftest.exp conftest.er2 >/dev/null; then
6339 lt_prog_compiler_static_works=yes
6341 else
6342 lt_prog_compiler_static_works=yes
6345 $RM conftest*
6346 LDFLAGS="$save_LDFLAGS"
6349 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6350 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6352 if test x"$lt_prog_compiler_static_works" = xyes; then
6354 else
6355 lt_prog_compiler_static=
6364 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6365 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6366 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6367 echo $ECHO_N "(cached) $ECHO_C" >&6
6368 else
6369 lt_cv_prog_compiler_c_o=no
6370 $RM -r conftest 2>/dev/null
6371 mkdir conftest
6372 cd conftest
6373 mkdir out
6374 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6376 lt_compiler_flag="-o out/conftest2.$ac_objext"
6377 # Insert the option either (1) after the last *FLAGS variable, or
6378 # (2) before a word containing "conftest.", or (3) at the end.
6379 # Note that $ac_compile itself does not contain backslashes and begins
6380 # with a dollar sign (not a hyphen), so the echo should work correctly.
6381 lt_compile=`echo "$ac_compile" | $SED \
6382 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6383 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6384 -e 's:$: $lt_compiler_flag:'`
6385 (eval echo "\"\$as_me:6385: $lt_compile\"" >&5)
6386 (eval "$lt_compile" 2>out/conftest.err)
6387 ac_status=$?
6388 cat out/conftest.err >&5
6389 echo "$as_me:6389: \$? = $ac_status" >&5
6390 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6391 then
6392 # The compiler can only warn and ignore the option if not recognized
6393 # So say no if there are warnings
6394 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6395 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6396 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6397 lt_cv_prog_compiler_c_o=yes
6400 chmod u+w . 2>&5
6401 $RM conftest*
6402 # SGI C++ compiler will create directory out/ii_files/ for
6403 # template instantiation
6404 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6405 $RM out/* && rmdir out
6406 cd ..
6407 $RM -r conftest
6408 $RM conftest*
6411 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6412 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6419 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6420 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6421 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6422 echo $ECHO_N "(cached) $ECHO_C" >&6
6423 else
6424 lt_cv_prog_compiler_c_o=no
6425 $RM -r conftest 2>/dev/null
6426 mkdir conftest
6427 cd conftest
6428 mkdir out
6429 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6431 lt_compiler_flag="-o out/conftest2.$ac_objext"
6432 # Insert the option either (1) after the last *FLAGS variable, or
6433 # (2) before a word containing "conftest.", or (3) at the end.
6434 # Note that $ac_compile itself does not contain backslashes and begins
6435 # with a dollar sign (not a hyphen), so the echo should work correctly.
6436 lt_compile=`echo "$ac_compile" | $SED \
6437 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6438 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6439 -e 's:$: $lt_compiler_flag:'`
6440 (eval echo "\"\$as_me:6440: $lt_compile\"" >&5)
6441 (eval "$lt_compile" 2>out/conftest.err)
6442 ac_status=$?
6443 cat out/conftest.err >&5
6444 echo "$as_me:6444: \$? = $ac_status" >&5
6445 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6446 then
6447 # The compiler can only warn and ignore the option if not recognized
6448 # So say no if there are warnings
6449 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6450 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6451 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6452 lt_cv_prog_compiler_c_o=yes
6455 chmod u+w . 2>&5
6456 $RM conftest*
6457 # SGI C++ compiler will create directory out/ii_files/ for
6458 # template instantiation
6459 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6460 $RM out/* && rmdir out
6461 cd ..
6462 $RM -r conftest
6463 $RM conftest*
6466 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6467 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6472 hard_links="nottested"
6473 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6474 # do not overwrite the value of need_locks provided by the user
6475 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6476 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6477 hard_links=yes
6478 $RM conftest*
6479 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6480 touch conftest.a
6481 ln conftest.a conftest.b 2>&5 || hard_links=no
6482 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6483 echo "$as_me:$LINENO: result: $hard_links" >&5
6484 echo "${ECHO_T}$hard_links" >&6
6485 if test "$hard_links" = no; then
6486 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6487 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6488 need_locks=warn
6490 else
6491 need_locks=no
6499 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6500 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6502 runpath_var=
6503 allow_undefined_flag=
6504 always_export_symbols=no
6505 archive_cmds=
6506 archive_expsym_cmds=
6507 compiler_needs_object=no
6508 enable_shared_with_static_runtimes=no
6509 export_dynamic_flag_spec=
6510 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6511 hardcode_automatic=no
6512 hardcode_direct=no
6513 hardcode_direct_absolute=no
6514 hardcode_libdir_flag_spec=
6515 hardcode_libdir_flag_spec_ld=
6516 hardcode_libdir_separator=
6517 hardcode_minus_L=no
6518 hardcode_shlibpath_var=unsupported
6519 inherit_rpath=no
6520 link_all_deplibs=unknown
6521 module_cmds=
6522 module_expsym_cmds=
6523 old_archive_from_new_cmds=
6524 old_archive_from_expsyms_cmds=
6525 thread_safe_flag_spec=
6526 whole_archive_flag_spec=
6527 # include_expsyms should be a list of space-separated symbols to be *always*
6528 # included in the symbol list
6529 include_expsyms=
6530 # exclude_expsyms can be an extended regexp of symbols to exclude
6531 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6532 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6533 # as well as any symbol that contains `d'.
6534 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6535 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6536 # platforms (ab)use it in PIC code, but their linkers get confused if
6537 # the symbol is explicitly referenced. Since portable code cannot
6538 # rely on this symbol name, it's probably fine to never include it in
6539 # preloaded symbol tables.
6540 extract_expsyms_cmds=
6542 case $host_os in
6543 cygwin* | mingw* | pw32*)
6544 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6545 # When not using gcc, we currently assume that we are using
6546 # Microsoft Visual C++.
6547 if test "$GCC" != yes; then
6548 with_gnu_ld=no
6551 interix*)
6552 # we just hope/assume this is gcc and not c89 (= MSVC++)
6553 with_gnu_ld=yes
6555 openbsd*)
6556 with_gnu_ld=no
6558 esac
6560 ld_shlibs=yes
6561 if test "$with_gnu_ld" = yes; then
6562 # If archive_cmds runs LD, not CC, wlarc should be empty
6563 wlarc='${wl}'
6565 # Set some defaults for GNU ld with shared library support. These
6566 # are reset later if shared libraries are not supported. Putting them
6567 # here allows them to be overridden if necessary.
6568 runpath_var=LD_RUN_PATH
6569 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6570 export_dynamic_flag_spec='${wl}--export-dynamic'
6571 # ancient GNU ld didn't support --whole-archive et. al.
6572 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
6573 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6574 else
6575 whole_archive_flag_spec=
6577 supports_anon_versioning=no
6578 case `$LD -v 2>&1` in
6579 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6580 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6581 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6582 *\ 2.11.*) ;; # other 2.11 versions
6583 *) supports_anon_versioning=yes ;;
6584 esac
6586 # See if GNU ld supports shared libraries.
6587 case $host_os in
6588 aix[3-9]*)
6589 # On AIX/PPC, the GNU linker is very broken
6590 if test "$host_cpu" != ia64; then
6591 ld_shlibs=no
6592 cat <<_LT_EOF 1>&2
6594 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6595 *** to be unable to reliably create shared libraries on AIX.
6596 *** Therefore, libtool is disabling shared libraries support. If you
6597 *** really care for shared libraries, you may want to modify your PATH
6598 *** so that a non-GNU linker is found, and then restart.
6600 _LT_EOF
6604 amigaos*)
6605 if test "$host_cpu" = m68k; then
6606 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)'
6607 hardcode_libdir_flag_spec='-L$libdir'
6608 hardcode_minus_L=yes
6611 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6612 # that the semantics of dynamic libraries on AmigaOS, at least up
6613 # to version 4, is to share data among multiple programs linked
6614 # with the same dynamic library. Since this doesn't match the
6615 # behavior of shared libraries on other platforms, we can't use
6616 # them.
6617 ld_shlibs=no
6620 beos*)
6621 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6622 allow_undefined_flag=unsupported
6623 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6624 # support --undefined. This deserves some investigation. FIXME
6625 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6626 else
6627 ld_shlibs=no
6631 cygwin* | mingw* | pw32*)
6632 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6633 # as there is no search path for DLLs.
6634 hardcode_libdir_flag_spec='-L$libdir'
6635 allow_undefined_flag=unsupported
6636 always_export_symbols=no
6637 enable_shared_with_static_runtimes=yes
6638 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
6640 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6641 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6642 # If the export-symbols file already is a .def file (1st line
6643 # is EXPORTS), use it as is; otherwise, prepend...
6644 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6645 cp $export_symbols $output_objdir/$soname.def;
6646 else
6647 echo EXPORTS > $output_objdir/$soname.def;
6648 cat $export_symbols >> $output_objdir/$soname.def;
6650 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6651 else
6652 ld_shlibs=no
6656 interix[3-9]*)
6657 hardcode_direct=no
6658 hardcode_shlibpath_var=no
6659 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6660 export_dynamic_flag_spec='${wl}-E'
6661 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6662 # Instead, shared libraries are loaded at an image base (0x10000000 by
6663 # default) and relocated if they conflict, which is a slow very memory
6664 # consuming and fragmenting process. To avoid this, we pick a random,
6665 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6666 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6667 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6668 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'
6671 gnu* | linux* | tpf* | k*bsd*-gnu)
6672 tmp_diet=no
6673 if test "$host_os" = linux-dietlibc; then
6674 case $cc_basename in
6675 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
6676 esac
6678 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
6679 && test "$tmp_diet" = no
6680 then
6681 tmp_addflag=
6682 case $cc_basename,$host_cpu in
6683 pgcc*) # Portland Group C compiler
6684 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'
6685 tmp_addflag=' $pic_flag'
6687 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
6688 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'
6689 tmp_addflag=' $pic_flag -Mnomain' ;;
6690 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6691 tmp_addflag=' -i_dynamic' ;;
6692 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6693 tmp_addflag=' -i_dynamic -nofor_main' ;;
6694 ifc* | ifort*) # Intel Fortran compiler
6695 tmp_addflag=' -nofor_main' ;;
6696 esac
6697 case `$CC -V 2>&1 | sed 5q` in
6698 *Sun\ C*) # Sun C 5.9
6699 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'
6700 compiler_needs_object=yes
6701 tmp_sharedflag='-G' ;;
6702 *Sun\ F*) # Sun Fortran 8.3
6703 tmp_sharedflag='-G' ;;
6705 tmp_sharedflag='-shared' ;;
6706 esac
6707 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6709 if test "x$supports_anon_versioning" = xyes; then
6710 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
6711 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6712 echo "local: *; };" >> $output_objdir/$libname.ver~
6713 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6715 else
6716 ld_shlibs=no
6720 netbsd*)
6721 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6722 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6723 wlarc=
6724 else
6725 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6726 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6730 solaris*)
6731 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
6732 ld_shlibs=no
6733 cat <<_LT_EOF 1>&2
6735 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6736 *** create shared libraries on Solaris systems. Therefore, libtool
6737 *** is disabling shared libraries support. We urge you to upgrade GNU
6738 *** binutils to release 2.9.1 or newer. Another option is to modify
6739 *** your PATH or compiler configuration so that the native linker is
6740 *** used, and then restart.
6742 _LT_EOF
6743 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6744 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6745 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6746 else
6747 ld_shlibs=no
6751 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6752 case `$LD -v 2>&1` in
6753 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
6754 ld_shlibs=no
6755 cat <<_LT_EOF 1>&2
6757 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
6758 *** reliably create shared libraries on SCO systems. Therefore, libtool
6759 *** is disabling shared libraries support. We urge you to upgrade GNU
6760 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
6761 *** your PATH or compiler configuration so that the native linker is
6762 *** used, and then restart.
6764 _LT_EOF
6767 # For security reasons, it is highly recommended that you always
6768 # use absolute paths for naming shared libraries, and exclude the
6769 # DT_RUNPATH tag from executables and libraries. But doing so
6770 # requires that you compile everything twice, which is a pain.
6771 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6772 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6773 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6774 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6775 else
6776 ld_shlibs=no
6779 esac
6782 sunos4*)
6783 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6784 wlarc=
6785 hardcode_direct=yes
6786 hardcode_shlibpath_var=no
6790 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6791 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6792 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6793 else
6794 ld_shlibs=no
6797 esac
6799 if test "$ld_shlibs" = no; then
6800 runpath_var=
6801 hardcode_libdir_flag_spec=
6802 export_dynamic_flag_spec=
6803 whole_archive_flag_spec=
6805 else
6806 # PORTME fill in a description of your system's linker (not GNU ld)
6807 case $host_os in
6808 aix3*)
6809 allow_undefined_flag=unsupported
6810 always_export_symbols=yes
6811 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'
6812 # Note: this linker hardcodes the directories in LIBPATH if there
6813 # are no directories specified by -L.
6814 hardcode_minus_L=yes
6815 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
6816 # Neither direct hardcoding nor static linking is supported with a
6817 # broken collect2.
6818 hardcode_direct=unsupported
6822 aix[4-9]*)
6823 if test "$host_cpu" = ia64; then
6824 # On IA64, the linker does run time linking by default, so we don't
6825 # have to do anything special.
6826 aix_use_runtimelinking=no
6827 exp_sym_flag='-Bexport'
6828 no_entry_flag=""
6829 else
6830 # If we're using GNU nm, then we don't want the "-C" option.
6831 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6832 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
6833 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'
6834 else
6835 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'
6837 aix_use_runtimelinking=no
6839 # Test if we are trying to use run time linking or normal
6840 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6841 # need to do runtime linking.
6842 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
6843 for ld_flag in $LDFLAGS; do
6844 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6845 aix_use_runtimelinking=yes
6846 break
6848 done
6850 esac
6852 exp_sym_flag='-bexport'
6853 no_entry_flag='-bnoentry'
6856 # When large executables or shared objects are built, AIX ld can
6857 # have problems creating the table of contents. If linking a library
6858 # or program results in "error TOC overflow" add -mminimal-toc to
6859 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6860 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6862 archive_cmds=''
6863 hardcode_direct=yes
6864 hardcode_direct_absolute=yes
6865 hardcode_libdir_separator=':'
6866 link_all_deplibs=yes
6867 file_list_spec='${wl}-f,'
6869 if test "$GCC" = yes; then
6870 case $host_os in aix4.[012]|aix4.[012].*)
6871 # We only want to do this on AIX 4.2 and lower, the check
6872 # below for broken collect2 doesn't work under 4.3+
6873 collect2name=`${CC} -print-prog-name=collect2`
6874 if test -f "$collect2name" &&
6875 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
6876 then
6877 # We have reworked collect2
6879 else
6880 # We have old collect2
6881 hardcode_direct=unsupported
6882 # It fails to find uninstalled libraries when the uninstalled
6883 # path is not listed in the libpath. Setting hardcode_minus_L
6884 # to unsupported forces relinking
6885 hardcode_minus_L=yes
6886 hardcode_libdir_flag_spec='-L$libdir'
6887 hardcode_libdir_separator=
6890 esac
6891 shared_flag='-shared'
6892 if test "$aix_use_runtimelinking" = yes; then
6893 shared_flag="$shared_flag "'${wl}-G'
6895 else
6896 # not using gcc
6897 if test "$host_cpu" = ia64; then
6898 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6899 # chokes on -Wl,-G. The following line is correct:
6900 shared_flag='-G'
6901 else
6902 if test "$aix_use_runtimelinking" = yes; then
6903 shared_flag='${wl}-G'
6904 else
6905 shared_flag='${wl}-bM:SRE'
6910 # It seems that -bexpall does not export symbols beginning with
6911 # underscore (_), so it is better to generate a list of symbols to export.
6912 always_export_symbols=yes
6913 if test "$aix_use_runtimelinking" = yes; then
6914 # Warning - without using the other runtime loading flags (-brtl),
6915 # -berok will link without error, but may produce a broken library.
6916 allow_undefined_flag='-berok'
6917 # Determine the default libpath from the value encoded in an
6918 # empty executable.
6919 if test x$gcc_no_link = xyes; then
6920 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6921 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6922 { (exit 1); exit 1; }; }
6924 cat >conftest.$ac_ext <<_ACEOF
6925 /* confdefs.h. */
6926 _ACEOF
6927 cat confdefs.h >>conftest.$ac_ext
6928 cat >>conftest.$ac_ext <<_ACEOF
6929 /* end confdefs.h. */
6932 main ()
6936 return 0;
6938 _ACEOF
6939 rm -f conftest.$ac_objext conftest$ac_exeext
6940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6941 (eval $ac_link) 2>conftest.er1
6942 ac_status=$?
6943 grep -v '^ *+' conftest.er1 >conftest.err
6944 rm -f conftest.er1
6945 cat conftest.err >&5
6946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947 (exit $ac_status); } &&
6948 { ac_try='test -z "$ac_c_werror_flag"
6949 || test ! -s conftest.err'
6950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6951 (eval $ac_try) 2>&5
6952 ac_status=$?
6953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954 (exit $ac_status); }; } &&
6955 { ac_try='test -s conftest$ac_exeext'
6956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6957 (eval $ac_try) 2>&5
6958 ac_status=$?
6959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6960 (exit $ac_status); }; }; then
6962 lt_aix_libpath_sed='
6963 /Import File Strings/,/^$/ {
6964 /^0/ {
6965 s/^0 *\(.*\)$/\1/
6969 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
6970 # Check for a 64-bit object if we didn't find anything.
6971 if test -z "$aix_libpath"; then
6972 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
6974 else
6975 echo "$as_me: failed program was:" >&5
6976 sed 's/^/| /' conftest.$ac_ext >&5
6979 rm -f conftest.err conftest.$ac_objext \
6980 conftest$ac_exeext conftest.$ac_ext
6981 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6983 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6984 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"
6985 else
6986 if test "$host_cpu" = ia64; then
6987 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6988 allow_undefined_flag="-z nodefs"
6989 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"
6990 else
6991 # Determine the default libpath from the value encoded in an
6992 # empty executable.
6993 if test x$gcc_no_link = xyes; then
6994 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6995 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6996 { (exit 1); exit 1; }; }
6998 cat >conftest.$ac_ext <<_ACEOF
6999 /* confdefs.h. */
7000 _ACEOF
7001 cat confdefs.h >>conftest.$ac_ext
7002 cat >>conftest.$ac_ext <<_ACEOF
7003 /* end confdefs.h. */
7006 main ()
7010 return 0;
7012 _ACEOF
7013 rm -f conftest.$ac_objext conftest$ac_exeext
7014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7015 (eval $ac_link) 2>conftest.er1
7016 ac_status=$?
7017 grep -v '^ *+' conftest.er1 >conftest.err
7018 rm -f conftest.er1
7019 cat conftest.err >&5
7020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021 (exit $ac_status); } &&
7022 { ac_try='test -z "$ac_c_werror_flag"
7023 || test ! -s conftest.err'
7024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7025 (eval $ac_try) 2>&5
7026 ac_status=$?
7027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028 (exit $ac_status); }; } &&
7029 { ac_try='test -s conftest$ac_exeext'
7030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7031 (eval $ac_try) 2>&5
7032 ac_status=$?
7033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7034 (exit $ac_status); }; }; then
7036 lt_aix_libpath_sed='
7037 /Import File Strings/,/^$/ {
7038 /^0/ {
7039 s/^0 *\(.*\)$/\1/
7043 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7044 # Check for a 64-bit object if we didn't find anything.
7045 if test -z "$aix_libpath"; then
7046 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7048 else
7049 echo "$as_me: failed program was:" >&5
7050 sed 's/^/| /' conftest.$ac_ext >&5
7053 rm -f conftest.err conftest.$ac_objext \
7054 conftest$ac_exeext conftest.$ac_ext
7055 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7057 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7058 # Warning - without using the other run time loading flags,
7059 # -berok will link without error, but may produce a broken library.
7060 no_undefined_flag=' ${wl}-bernotok'
7061 allow_undefined_flag=' ${wl}-berok'
7062 # Exported symbols can be pulled into shared objects from archives
7063 whole_archive_flag_spec='$convenience'
7064 archive_cmds_need_lc=yes
7065 # This is similar to how AIX traditionally builds its shared libraries.
7066 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'
7071 amigaos*)
7072 if test "$host_cpu" = m68k; then
7073 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)'
7074 hardcode_libdir_flag_spec='-L$libdir'
7075 hardcode_minus_L=yes
7077 # see comment about different semantics on the GNU ld section
7078 ld_shlibs=no
7081 bsdi[45]*)
7082 export_dynamic_flag_spec=-rdynamic
7085 cygwin* | mingw* | pw32*)
7086 # When not using gcc, we currently assume that we are using
7087 # Microsoft Visual C++.
7088 # hardcode_libdir_flag_spec is actually meaningless, as there is
7089 # no search path for DLLs.
7090 hardcode_libdir_flag_spec=' '
7091 allow_undefined_flag=unsupported
7092 # Tell ltmain to make .lib files, not .a files.
7093 libext=lib
7094 # Tell ltmain to make .dll files, not .so files.
7095 shrext_cmds=".dll"
7096 # FIXME: Setting linknames here is a bad hack.
7097 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7098 # The linker will automatically build a .lib file if we build a DLL.
7099 old_archive_from_new_cmds='true'
7100 # FIXME: Should let the user specify the lib program.
7101 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7102 fix_srcfile_path='`cygpath -w "$srcfile"`'
7103 enable_shared_with_static_runtimes=yes
7106 darwin* | rhapsody*)
7107 case $host_os in
7108 rhapsody* | darwin1.[012])
7109 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7111 *) # Darwin 1.3 on
7112 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7113 10.[012])
7114 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7116 10.*)
7117 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7119 esac
7121 esac
7122 archive_cmds_need_lc=no
7123 hardcode_direct=no
7124 hardcode_automatic=yes
7125 hardcode_shlibpath_var=unsupported
7126 whole_archive_flag_spec=''
7127 link_all_deplibs=yes
7128 if test "$GCC" = yes ; then
7129 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7130 echo $ECHO_N "(cached) $ECHO_C" >&6
7131 else
7132 lt_cv_apple_cc_single_mod=no
7133 if test -z "${LT_MULTI_MODULE}"; then
7134 # By default we will add the -single_module flag. You can override
7135 # by either setting the environment variable LT_MULTI_MODULE
7136 # non-empty at configure time, or by adding -multi-module to the
7137 # link flags.
7138 echo "int foo(void){return 1;}" > conftest.c
7139 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7140 -dynamiclib ${wl}-single_module conftest.c
7141 if test -f libconftest.dylib; then
7142 lt_cv_apple_cc_single_mod=yes
7143 rm libconftest.dylib
7145 rm conftest.$ac_ext
7149 output_verbose_link_cmd=echo
7150 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
7151 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7152 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}'
7153 else
7154 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7155 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}'
7157 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7158 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}'
7159 else
7160 case $cc_basename in
7161 xlc*)
7162 output_verbose_link_cmd=echo
7163 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
7164 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7165 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7166 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}'
7167 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}'
7170 ld_shlibs=no
7172 esac
7176 dgux*)
7177 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7178 hardcode_libdir_flag_spec='-L$libdir'
7179 hardcode_shlibpath_var=no
7182 freebsd1*)
7183 ld_shlibs=no
7186 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7187 # support. Future versions do this automatically, but an explicit c++rt0.o
7188 # does not break anything, and helps significantly (at the cost of a little
7189 # extra space).
7190 freebsd2.2*)
7191 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7192 hardcode_libdir_flag_spec='-R$libdir'
7193 hardcode_direct=yes
7194 hardcode_shlibpath_var=no
7197 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7198 freebsd2*)
7199 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7200 hardcode_direct=yes
7201 hardcode_minus_L=yes
7202 hardcode_shlibpath_var=no
7205 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7206 freebsd* | dragonfly*)
7207 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7208 hardcode_libdir_flag_spec='-R$libdir'
7209 hardcode_direct=yes
7210 hardcode_shlibpath_var=no
7213 hpux9*)
7214 if test "$GCC" = yes; then
7215 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'
7216 else
7217 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'
7219 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7220 hardcode_libdir_separator=:
7221 hardcode_direct=yes
7223 # hardcode_minus_L: Not really in the search PATH,
7224 # but as the default location of the library.
7225 hardcode_minus_L=yes
7226 export_dynamic_flag_spec='${wl}-E'
7229 hpux10*)
7230 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7231 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7232 else
7233 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7235 if test "$with_gnu_ld" = no; then
7236 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7237 hardcode_libdir_flag_spec_ld='+b $libdir'
7238 hardcode_libdir_separator=:
7239 hardcode_direct=yes
7240 hardcode_direct_absolute=yes
7241 export_dynamic_flag_spec='${wl}-E'
7242 # hardcode_minus_L: Not really in the search PATH,
7243 # but as the default location of the library.
7244 hardcode_minus_L=yes
7248 hpux11*)
7249 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7250 case $host_cpu in
7251 hppa*64*)
7252 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7254 ia64*)
7255 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7258 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7260 esac
7261 else
7262 case $host_cpu in
7263 hppa*64*)
7264 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7266 ia64*)
7267 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7270 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7272 esac
7274 if test "$with_gnu_ld" = no; then
7275 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7276 hardcode_libdir_separator=:
7278 case $host_cpu in
7279 hppa*64*|ia64*)
7280 hardcode_direct=no
7281 hardcode_shlibpath_var=no
7284 hardcode_direct=yes
7285 hardcode_direct_absolute=yes
7286 export_dynamic_flag_spec='${wl}-E'
7288 # hardcode_minus_L: Not really in the search PATH,
7289 # but as the default location of the library.
7290 hardcode_minus_L=yes
7292 esac
7296 irix5* | irix6* | nonstopux*)
7297 if test "$GCC" = yes; then
7298 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'
7299 # Try to use the -exported_symbol ld option, if it does not
7300 # work, assume that -exports_file does not work either and
7301 # implicitly export all symbols.
7302 save_LDFLAGS="$LDFLAGS"
7303 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
7304 if test x$gcc_no_link = xyes; then
7305 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7306 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7307 { (exit 1); exit 1; }; }
7309 cat >conftest.$ac_ext <<_ACEOF
7310 int foo(void) {}
7311 _ACEOF
7312 rm -f conftest.$ac_objext conftest$ac_exeext
7313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7314 (eval $ac_link) 2>conftest.er1
7315 ac_status=$?
7316 grep -v '^ *+' conftest.er1 >conftest.err
7317 rm -f conftest.er1
7318 cat conftest.err >&5
7319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7320 (exit $ac_status); } &&
7321 { ac_try='test -z "$ac_c_werror_flag"
7322 || test ! -s conftest.err'
7323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7324 (eval $ac_try) 2>&5
7325 ac_status=$?
7326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7327 (exit $ac_status); }; } &&
7328 { ac_try='test -s conftest$ac_exeext'
7329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7330 (eval $ac_try) 2>&5
7331 ac_status=$?
7332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7333 (exit $ac_status); }; }; then
7334 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'
7336 else
7337 echo "$as_me: failed program was:" >&5
7338 sed 's/^/| /' conftest.$ac_ext >&5
7341 rm -f conftest.err conftest.$ac_objext \
7342 conftest$ac_exeext conftest.$ac_ext
7343 LDFLAGS="$save_LDFLAGS"
7344 else
7345 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'
7346 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'
7348 archive_cmds_need_lc='no'
7349 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7350 hardcode_libdir_separator=:
7351 inherit_rpath=yes
7352 link_all_deplibs=yes
7355 netbsd*)
7356 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7357 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7358 else
7359 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7361 hardcode_libdir_flag_spec='-R$libdir'
7362 hardcode_direct=yes
7363 hardcode_shlibpath_var=no
7366 newsos6)
7367 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7368 hardcode_direct=yes
7369 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7370 hardcode_libdir_separator=:
7371 hardcode_shlibpath_var=no
7374 *nto* | *qnx*)
7377 openbsd*)
7378 hardcode_direct=yes
7379 hardcode_shlibpath_var=no
7380 hardcode_direct_absolute=yes
7381 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7382 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7383 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7384 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7385 export_dynamic_flag_spec='${wl}-E'
7386 else
7387 case $host_os in
7388 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7389 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7390 hardcode_libdir_flag_spec='-R$libdir'
7393 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7394 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7396 esac
7400 os2*)
7401 hardcode_libdir_flag_spec='-L$libdir'
7402 hardcode_minus_L=yes
7403 allow_undefined_flag=unsupported
7404 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'
7405 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7408 osf3*)
7409 if test "$GCC" = yes; then
7410 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7411 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'
7412 else
7413 allow_undefined_flag=' -expect_unresolved \*'
7414 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'
7416 archive_cmds_need_lc='no'
7417 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7418 hardcode_libdir_separator=:
7421 osf4* | osf5*) # as osf3* with the addition of -msym flag
7422 if test "$GCC" = yes; then
7423 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7424 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'
7425 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7426 else
7427 allow_undefined_flag=' -expect_unresolved \*'
7428 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'
7429 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~
7430 $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'
7432 # Both c and cxx compiler support -rpath directly
7433 hardcode_libdir_flag_spec='-rpath $libdir'
7435 archive_cmds_need_lc='no'
7436 hardcode_libdir_separator=:
7439 solaris*)
7440 no_undefined_flag=' -z defs'
7441 if test "$GCC" = yes; then
7442 wlarc='${wl}'
7443 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7444 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7445 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7446 else
7447 case `$CC -V 2>&1` in
7448 *"Compilers 5.0"*)
7449 wlarc=''
7450 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7451 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7452 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
7455 wlarc='${wl}'
7456 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
7457 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7458 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7460 esac
7462 hardcode_libdir_flag_spec='-R$libdir'
7463 hardcode_shlibpath_var=no
7464 case $host_os in
7465 solaris2.[0-5] | solaris2.[0-5].*) ;;
7467 # The compiler driver will combine and reorder linker options,
7468 # but understands `-z linker_flag'. GCC discards it without `$wl',
7469 # but is careful enough not to reorder.
7470 # Supported since Solaris 2.6 (maybe 2.5.1?)
7471 if test "$GCC" = yes; then
7472 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7473 else
7474 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
7477 esac
7478 link_all_deplibs=yes
7481 sunos4*)
7482 if test "x$host_vendor" = xsequent; then
7483 # Use $CC to link under sequent, because it throws in some extra .o
7484 # files that make .init and .fini sections work.
7485 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7486 else
7487 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7489 hardcode_libdir_flag_spec='-L$libdir'
7490 hardcode_direct=yes
7491 hardcode_minus_L=yes
7492 hardcode_shlibpath_var=no
7495 sysv4)
7496 case $host_vendor in
7497 sni)
7498 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7499 hardcode_direct=yes # is this really true???
7501 siemens)
7502 ## LD is ld it makes a PLAMLIB
7503 ## CC just makes a GrossModule.
7504 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7505 reload_cmds='$CC -r -o $output$reload_objs'
7506 hardcode_direct=no
7508 motorola)
7509 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7510 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7512 esac
7513 runpath_var='LD_RUN_PATH'
7514 hardcode_shlibpath_var=no
7517 sysv4.3*)
7518 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7519 hardcode_shlibpath_var=no
7520 export_dynamic_flag_spec='-Bexport'
7523 sysv4*MP*)
7524 if test -d /usr/nec; then
7525 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7526 hardcode_shlibpath_var=no
7527 runpath_var=LD_RUN_PATH
7528 hardcode_runpath_var=yes
7529 ld_shlibs=yes
7533 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
7534 no_undefined_flag='${wl}-z,text'
7535 archive_cmds_need_lc=no
7536 hardcode_shlibpath_var=no
7537 runpath_var='LD_RUN_PATH'
7539 if test "$GCC" = yes; then
7540 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7541 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7542 else
7543 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7544 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7548 sysv5* | sco3.2v5* | sco5v6*)
7549 # Note: We can NOT use -z defs as we might desire, because we do not
7550 # link with -lc, and that would cause any symbols used from libc to
7551 # always be unresolved, which means just about no library would
7552 # ever link correctly. If we're not using GNU ld we use -z text
7553 # though, which does catch some bad symbols but isn't as heavy-handed
7554 # as -z defs.
7555 no_undefined_flag='${wl}-z,text'
7556 allow_undefined_flag='${wl}-z,nodefs'
7557 archive_cmds_need_lc=no
7558 hardcode_shlibpath_var=no
7559 hardcode_libdir_flag_spec='${wl}-R,$libdir'
7560 hardcode_libdir_separator=':'
7561 link_all_deplibs=yes
7562 export_dynamic_flag_spec='${wl}-Bexport'
7563 runpath_var='LD_RUN_PATH'
7565 if test "$GCC" = yes; then
7566 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7567 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7568 else
7569 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7570 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7574 uts4*)
7575 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7576 hardcode_libdir_flag_spec='-L$libdir'
7577 hardcode_shlibpath_var=no
7581 ld_shlibs=no
7583 esac
7585 if test x$host_vendor = xsni; then
7586 case $host in
7587 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7588 export_dynamic_flag_spec='${wl}-Blargedynsym'
7590 esac
7594 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7595 echo "${ECHO_T}$ld_shlibs" >&6
7596 test "$ld_shlibs" = no && can_build_shared=no
7598 with_gnu_ld=$with_gnu_ld
7615 # Do we need to explicitly link libc?
7617 case "x$archive_cmds_need_lc" in
7618 x|xyes)
7619 # Assume -lc should be added
7620 archive_cmds_need_lc=yes
7622 if test "$enable_shared" = yes && test "$GCC" = yes; then
7623 case $archive_cmds in
7624 *'~'*)
7625 # FIXME: we may have to deal with multi-command sequences.
7627 '$CC '*)
7628 # Test whether the compiler implicitly links with -lc since on some
7629 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7630 # to ld, don't add -lc before -lgcc.
7631 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7632 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7633 $RM conftest*
7634 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7637 (eval $ac_compile) 2>&5
7638 ac_status=$?
7639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7640 (exit $ac_status); } 2>conftest.err; then
7641 soname=conftest
7642 lib=conftest
7643 libobjs=conftest.$ac_objext
7644 deplibs=
7645 wl=$lt_prog_compiler_wl
7646 pic_flag=$lt_prog_compiler_pic
7647 compiler_flags=-v
7648 linker_flags=-v
7649 verstring=
7650 output_objdir=.
7651 libname=conftest
7652 lt_save_allow_undefined_flag=$allow_undefined_flag
7653 allow_undefined_flag=
7654 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
7655 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
7656 ac_status=$?
7657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7658 (exit $ac_status); }
7659 then
7660 archive_cmds_need_lc=no
7661 else
7662 archive_cmds_need_lc=yes
7664 allow_undefined_flag=$lt_save_allow_undefined_flag
7665 else
7666 cat conftest.err 1>&5
7668 $RM conftest*
7669 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7670 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7672 esac
7675 esac
7833 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7834 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7835 withGCC=$GCC
7836 if test "$withGCC" = yes; then
7837 case $host_os in
7838 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
7839 *) lt_awk_arg="/^libraries:/" ;;
7840 esac
7841 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7842 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
7843 # if the path contains ";" then we assume it to be the separator
7844 # otherwise default to the standard path separator (i.e. ":") - it is
7845 # assumed that no part of a normal pathname contains ";" but that should
7846 # okay in the real world where ";" in dirpaths is itself problematic.
7847 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
7848 else
7849 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7851 # Ok, now we have the path, separated by spaces, we can step through it
7852 # and add multilib dir if necessary.
7853 lt_tmp_lt_search_path_spec=
7854 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
7855 for lt_sys_path in $lt_search_path_spec; do
7856 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
7857 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
7858 else
7859 test -d "$lt_sys_path" && \
7860 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
7862 done
7863 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
7864 BEGIN {RS=" "; FS="/|\n";} {
7865 lt_foo="";
7866 lt_count=0;
7867 for (lt_i = NF; lt_i > 0; lt_i--) {
7868 if ($lt_i != "" && $lt_i != ".") {
7869 if ($lt_i == "..") {
7870 lt_count++;
7871 } else {
7872 if (lt_count == 0) {
7873 lt_foo="/" $lt_i lt_foo;
7874 } else {
7875 lt_count--;
7880 if (lt_foo != "") { lt_freq[lt_foo]++; }
7881 if (lt_freq[lt_foo] == 1) { print lt_foo; }
7883 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
7884 else
7885 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7887 library_names_spec=
7888 libname_spec='lib$name'
7889 soname_spec=
7890 shrext_cmds=".so"
7891 postinstall_cmds=
7892 postuninstall_cmds=
7893 finish_cmds=
7894 finish_eval=
7895 shlibpath_var=
7896 shlibpath_overrides_runpath=unknown
7897 version_type=none
7898 dynamic_linker="$host_os ld.so"
7899 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7900 need_lib_prefix=unknown
7901 hardcode_into_libs=no
7903 # when you set need_version to no, make sure it does not cause -set_version
7904 # flags to be left without arguments
7905 need_version=unknown
7907 case $host_os in
7908 aix3*)
7909 version_type=linux
7910 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7911 shlibpath_var=LIBPATH
7913 # AIX 3 has no versioning support, so we append a major version to the name.
7914 soname_spec='${libname}${release}${shared_ext}$major'
7917 aix[4-9]*)
7918 version_type=linux
7919 need_lib_prefix=no
7920 need_version=no
7921 hardcode_into_libs=yes
7922 if test "$host_cpu" = ia64; then
7923 # AIX 5 supports IA64
7924 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7925 shlibpath_var=LD_LIBRARY_PATH
7926 else
7927 # With GCC up to 2.95.x, collect2 would create an import file
7928 # for dependence libraries. The import file would start with
7929 # the line `#! .'. This would cause the generated library to
7930 # depend on `.', always an invalid library. This was fixed in
7931 # development snapshots of GCC prior to 3.0.
7932 case $host_os in
7933 aix4 | aix4.[01] | aix4.[01].*)
7934 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7935 echo ' yes '
7936 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
7938 else
7939 can_build_shared=no
7942 esac
7943 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7944 # soname into executable. Probably we can add versioning support to
7945 # collect2, so additional links can be useful in future.
7946 if test "$aix_use_runtimelinking" = yes; then
7947 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7948 # instead of lib<name>.a to let people know that these are not
7949 # typical AIX shared libraries.
7950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7951 else
7952 # We preserve .a as extension for shared libraries through AIX4.2
7953 # and later when we are not doing run time linking.
7954 library_names_spec='${libname}${release}.a $libname.a'
7955 soname_spec='${libname}${release}${shared_ext}$major'
7957 shlibpath_var=LIBPATH
7961 amigaos*)
7962 if test "$host_cpu" = m68k; then
7963 library_names_spec='$libname.ixlibrary $libname.a'
7964 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7965 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'
7966 else
7967 dynamic_linker=no
7971 beos*)
7972 library_names_spec='${libname}${shared_ext}'
7973 dynamic_linker="$host_os ld.so"
7974 shlibpath_var=LIBRARY_PATH
7977 bsdi[45]*)
7978 version_type=linux
7979 need_version=no
7980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7981 soname_spec='${libname}${release}${shared_ext}$major'
7982 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7983 shlibpath_var=LD_LIBRARY_PATH
7984 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7985 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7986 # the default ld.so.conf also contains /usr/contrib/lib and
7987 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7988 # libtool to hard-code these into programs
7991 cygwin* | mingw* | pw32*)
7992 version_type=windows
7993 shrext_cmds=".dll"
7994 need_version=no
7995 need_lib_prefix=no
7997 case $withGCC,$host_os in
7998 yes,cygwin* | yes,mingw* | yes,pw32*)
7999 library_names_spec='$libname.dll.a'
8000 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8001 postinstall_cmds='base_file=`basename \${file}`~
8002 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8003 dldir=$destdir/`dirname \$dlpath`~
8004 test -d \$dldir || mkdir -p \$dldir~
8005 $install_prog $dir/$dlname \$dldir/$dlname~
8006 chmod a+x \$dldir/$dlname~
8007 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8008 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8010 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8011 dlpath=$dir/\$dldll~
8012 $RM \$dlpath'
8013 shlibpath_overrides_runpath=yes
8015 case $host_os in
8016 cygwin*)
8017 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8018 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8019 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8021 mingw*)
8022 # MinGW DLLs use traditional 'lib' prefix
8023 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8024 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8025 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8026 # It is most probably a Windows format PATH printed by
8027 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8028 # path with ; separators, and with drive letters. We can handle the
8029 # drive letters (cygwin fileutils understands them), so leave them,
8030 # especially as we might pass files found there to a mingw objdump,
8031 # which wouldn't understand a cygwinified path. Ahh.
8032 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8033 else
8034 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8037 pw32*)
8038 # pw32 DLLs use 'pw' prefix rather than 'lib'
8039 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8041 esac
8045 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8047 esac
8048 dynamic_linker='Win32 ld.exe'
8049 # FIXME: first we should search . and the directory the executable is in
8050 shlibpath_var=PATH
8053 darwin* | rhapsody*)
8054 dynamic_linker="$host_os dyld"
8055 version_type=darwin
8056 need_lib_prefix=no
8057 need_version=no
8058 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8059 soname_spec='${libname}${release}${major}$shared_ext'
8060 shlibpath_overrides_runpath=yes
8061 shlibpath_var=DYLD_LIBRARY_PATH
8062 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8064 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8065 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8068 dgux*)
8069 version_type=linux
8070 need_lib_prefix=no
8071 need_version=no
8072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8073 soname_spec='${libname}${release}${shared_ext}$major'
8074 shlibpath_var=LD_LIBRARY_PATH
8077 freebsd1*)
8078 dynamic_linker=no
8081 freebsd* | dragonfly*)
8082 # DragonFly does not have aout. When/if they implement a new
8083 # versioning mechanism, adjust this.
8084 if test -x /usr/bin/objformat; then
8085 objformat=`/usr/bin/objformat`
8086 else
8087 case $host_os in
8088 freebsd[123]*) objformat=aout ;;
8089 *) objformat=elf ;;
8090 esac
8092 version_type=freebsd-$objformat
8093 case $version_type in
8094 freebsd-elf*)
8095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8096 need_version=no
8097 need_lib_prefix=no
8099 freebsd-*)
8100 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8101 need_version=yes
8103 esac
8104 shlibpath_var=LD_LIBRARY_PATH
8105 case $host_os in
8106 freebsd2*)
8107 shlibpath_overrides_runpath=yes
8109 freebsd3.[01]* | freebsdelf3.[01]*)
8110 shlibpath_overrides_runpath=yes
8111 hardcode_into_libs=yes
8113 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8114 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8115 shlibpath_overrides_runpath=no
8116 hardcode_into_libs=yes
8118 *) # from 4.6 on, and DragonFly
8119 shlibpath_overrides_runpath=yes
8120 hardcode_into_libs=yes
8122 esac
8125 gnu*)
8126 version_type=linux
8127 need_lib_prefix=no
8128 need_version=no
8129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8130 soname_spec='${libname}${release}${shared_ext}$major'
8131 shlibpath_var=LD_LIBRARY_PATH
8132 hardcode_into_libs=yes
8135 hpux9* | hpux10* | hpux11*)
8136 # Give a soname corresponding to the major version so that dld.sl refuses to
8137 # link against other versions.
8138 version_type=sunos
8139 need_lib_prefix=no
8140 need_version=no
8141 case $host_cpu in
8142 ia64*)
8143 shrext_cmds='.so'
8144 hardcode_into_libs=yes
8145 dynamic_linker="$host_os dld.so"
8146 shlibpath_var=LD_LIBRARY_PATH
8147 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8149 soname_spec='${libname}${release}${shared_ext}$major'
8150 if test "X$HPUX_IA64_MODE" = X32; then
8151 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8152 else
8153 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8155 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8157 hppa*64*)
8158 shrext_cmds='.sl'
8159 hardcode_into_libs=yes
8160 dynamic_linker="$host_os dld.sl"
8161 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8162 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8164 soname_spec='${libname}${release}${shared_ext}$major'
8165 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8166 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8169 shrext_cmds='.sl'
8170 dynamic_linker="$host_os dld.sl"
8171 shlibpath_var=SHLIB_PATH
8172 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8174 soname_spec='${libname}${release}${shared_ext}$major'
8176 esac
8177 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8178 postinstall_cmds='chmod 555 $lib'
8181 interix[3-9]*)
8182 version_type=linux
8183 need_lib_prefix=no
8184 need_version=no
8185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8186 soname_spec='${libname}${release}${shared_ext}$major'
8187 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8188 shlibpath_var=LD_LIBRARY_PATH
8189 shlibpath_overrides_runpath=no
8190 hardcode_into_libs=yes
8193 irix5* | irix6* | nonstopux*)
8194 case $host_os in
8195 nonstopux*) version_type=nonstopux ;;
8197 if test "$lt_cv_prog_gnu_ld" = yes; then
8198 version_type=linux
8199 else
8200 version_type=irix
8201 fi ;;
8202 esac
8203 need_lib_prefix=no
8204 need_version=no
8205 soname_spec='${libname}${release}${shared_ext}$major'
8206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8207 case $host_os in
8208 irix5* | nonstopux*)
8209 libsuff= shlibsuff=
8212 case $LD in # libtool.m4 will add one of these switches to LD
8213 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8214 libsuff= shlibsuff= libmagic=32-bit;;
8215 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8216 libsuff=32 shlibsuff=N32 libmagic=N32;;
8217 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8218 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8219 *) libsuff= shlibsuff= libmagic=never-match;;
8220 esac
8222 esac
8223 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8224 shlibpath_overrides_runpath=no
8225 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8226 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8227 hardcode_into_libs=yes
8230 # No shared lib support for Linux oldld, aout, or coff.
8231 linux*oldld* | linux*aout* | linux*coff*)
8232 dynamic_linker=no
8235 # This must be Linux ELF.
8236 linux* | k*bsd*-gnu)
8237 version_type=linux
8238 need_lib_prefix=no
8239 need_version=no
8240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8241 soname_spec='${libname}${release}${shared_ext}$major'
8242 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8243 shlibpath_var=LD_LIBRARY_PATH
8244 shlibpath_overrides_runpath=no
8245 # Some binutils ld are patched to set DT_RUNPATH
8246 save_LDFLAGS=$LDFLAGS
8247 save_libdir=$libdir
8248 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8249 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8250 if test x$gcc_no_link = xyes; then
8251 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8252 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8253 { (exit 1); exit 1; }; }
8255 cat >conftest.$ac_ext <<_ACEOF
8256 /* confdefs.h. */
8257 _ACEOF
8258 cat confdefs.h >>conftest.$ac_ext
8259 cat >>conftest.$ac_ext <<_ACEOF
8260 /* end confdefs.h. */
8263 main ()
8267 return 0;
8269 _ACEOF
8270 rm -f conftest.$ac_objext conftest$ac_exeext
8271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8272 (eval $ac_link) 2>conftest.er1
8273 ac_status=$?
8274 grep -v '^ *+' conftest.er1 >conftest.err
8275 rm -f conftest.er1
8276 cat conftest.err >&5
8277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8278 (exit $ac_status); } &&
8279 { ac_try='test -z "$ac_c_werror_flag"
8280 || test ! -s conftest.err'
8281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8282 (eval $ac_try) 2>&5
8283 ac_status=$?
8284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285 (exit $ac_status); }; } &&
8286 { ac_try='test -s conftest$ac_exeext'
8287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8288 (eval $ac_try) 2>&5
8289 ac_status=$?
8290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291 (exit $ac_status); }; }; then
8292 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
8293 shlibpath_overrides_runpath=yes
8296 else
8297 echo "$as_me: failed program was:" >&5
8298 sed 's/^/| /' conftest.$ac_ext >&5
8301 rm -f conftest.err conftest.$ac_objext \
8302 conftest$ac_exeext conftest.$ac_ext
8303 LDFLAGS=$save_LDFLAGS
8304 libdir=$save_libdir
8306 # This implies no fast_install, which is unacceptable.
8307 # Some rework will be needed to allow for fast_install
8308 # before this can be enabled.
8309 hardcode_into_libs=yes
8311 # Append ld.so.conf contents to the search path
8312 if test -f /etc/ld.so.conf; then
8313 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' ' '`
8314 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8317 # We used to test for /lib/ld.so.1 and disable shared libraries on
8318 # powerpc, because MkLinux only supported shared libraries with the
8319 # GNU dynamic linker. Since this was broken with cross compilers,
8320 # most powerpc-linux boxes support dynamic linking these days and
8321 # people can always --disable-shared, the test was removed, and we
8322 # assume the GNU/Linux dynamic linker is in use.
8323 dynamic_linker='GNU/Linux ld.so'
8326 netbsd*)
8327 version_type=sunos
8328 need_lib_prefix=no
8329 need_version=no
8330 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8332 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8333 dynamic_linker='NetBSD (a.out) ld.so'
8334 else
8335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8336 soname_spec='${libname}${release}${shared_ext}$major'
8337 dynamic_linker='NetBSD ld.elf_so'
8339 shlibpath_var=LD_LIBRARY_PATH
8340 shlibpath_overrides_runpath=yes
8341 hardcode_into_libs=yes
8344 newsos6)
8345 version_type=linux
8346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8347 shlibpath_var=LD_LIBRARY_PATH
8348 shlibpath_overrides_runpath=yes
8351 *nto* | *qnx*)
8352 version_type=qnx
8353 need_lib_prefix=no
8354 need_version=no
8355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8356 soname_spec='${libname}${release}${shared_ext}$major'
8357 shlibpath_var=LD_LIBRARY_PATH
8358 shlibpath_overrides_runpath=no
8359 hardcode_into_libs=yes
8360 dynamic_linker='ldqnx.so'
8363 openbsd*)
8364 version_type=sunos
8365 sys_lib_dlsearch_path_spec="/usr/lib"
8366 need_lib_prefix=no
8367 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8368 case $host_os in
8369 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8370 *) need_version=no ;;
8371 esac
8372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8373 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8374 shlibpath_var=LD_LIBRARY_PATH
8375 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8376 case $host_os in
8377 openbsd2.[89] | openbsd2.[89].*)
8378 shlibpath_overrides_runpath=no
8381 shlibpath_overrides_runpath=yes
8383 esac
8384 else
8385 shlibpath_overrides_runpath=yes
8389 os2*)
8390 libname_spec='$name'
8391 shrext_cmds=".dll"
8392 need_lib_prefix=no
8393 library_names_spec='$libname${shared_ext} $libname.a'
8394 dynamic_linker='OS/2 ld.exe'
8395 shlibpath_var=LIBPATH
8398 osf3* | osf4* | osf5*)
8399 version_type=osf
8400 need_lib_prefix=no
8401 need_version=no
8402 soname_spec='${libname}${release}${shared_ext}$major'
8403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8404 shlibpath_var=LD_LIBRARY_PATH
8405 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8406 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8409 rdos*)
8410 dynamic_linker=no
8413 solaris*)
8414 version_type=linux
8415 need_lib_prefix=no
8416 need_version=no
8417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8418 soname_spec='${libname}${release}${shared_ext}$major'
8419 shlibpath_var=LD_LIBRARY_PATH
8420 shlibpath_overrides_runpath=yes
8421 hardcode_into_libs=yes
8422 # ldd complains unless libraries are executable
8423 postinstall_cmds='chmod +x $lib'
8426 sunos4*)
8427 version_type=sunos
8428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8429 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8430 shlibpath_var=LD_LIBRARY_PATH
8431 shlibpath_overrides_runpath=yes
8432 if test "$with_gnu_ld" = yes; then
8433 need_lib_prefix=no
8435 need_version=yes
8438 sysv4 | sysv4.3*)
8439 version_type=linux
8440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8441 soname_spec='${libname}${release}${shared_ext}$major'
8442 shlibpath_var=LD_LIBRARY_PATH
8443 case $host_vendor in
8444 sni)
8445 shlibpath_overrides_runpath=no
8446 need_lib_prefix=no
8447 runpath_var=LD_RUN_PATH
8449 siemens)
8450 need_lib_prefix=no
8452 motorola)
8453 need_lib_prefix=no
8454 need_version=no
8455 shlibpath_overrides_runpath=no
8456 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8458 esac
8461 sysv4*MP*)
8462 if test -d /usr/nec ;then
8463 version_type=linux
8464 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8465 soname_spec='$libname${shared_ext}.$major'
8466 shlibpath_var=LD_LIBRARY_PATH
8470 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8471 version_type=freebsd-elf
8472 need_lib_prefix=no
8473 need_version=no
8474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8475 soname_spec='${libname}${release}${shared_ext}$major'
8476 shlibpath_var=LD_LIBRARY_PATH
8477 shlibpath_overrides_runpath=yes
8478 hardcode_into_libs=yes
8479 if test "$with_gnu_ld" = yes; then
8480 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8481 else
8482 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8483 case $host_os in
8484 sco3.2v5*)
8485 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8487 esac
8489 sys_lib_dlsearch_path_spec='/usr/lib'
8492 tpf*)
8493 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
8494 version_type=linux
8495 need_lib_prefix=no
8496 need_version=no
8497 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8498 shlibpath_var=LD_LIBRARY_PATH
8499 shlibpath_overrides_runpath=no
8500 hardcode_into_libs=yes
8503 uts4*)
8504 version_type=linux
8505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8506 soname_spec='${libname}${release}${shared_ext}$major'
8507 shlibpath_var=LD_LIBRARY_PATH
8511 dynamic_linker=no
8513 esac
8514 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8515 echo "${ECHO_T}$dynamic_linker" >&6
8516 test "$dynamic_linker" = no && can_build_shared=no
8518 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8519 if test "$GCC" = yes; then
8520 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8609 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8610 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8611 hardcode_action=
8612 if test -n "$hardcode_libdir_flag_spec" ||
8613 test -n "$runpath_var" ||
8614 test "X$hardcode_automatic" = "Xyes" ; then
8616 # We can hardcode non-existent directories.
8617 if test "$hardcode_direct" != no &&
8618 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8619 # have to relink, otherwise we might link with an installed library
8620 # when we should be linking with a yet-to-be-installed one
8621 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
8622 test "$hardcode_minus_L" != no; then
8623 # Linking always hardcodes the temporary library directory.
8624 hardcode_action=relink
8625 else
8626 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8627 hardcode_action=immediate
8629 else
8630 # We cannot hardcode anything, or else we can only hardcode existing
8631 # directories.
8632 hardcode_action=unsupported
8634 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8635 echo "${ECHO_T}$hardcode_action" >&6
8637 if test "$hardcode_action" = relink ||
8638 test "$inherit_rpath" = yes; then
8639 # Fast installation is not supported
8640 enable_fast_install=no
8641 elif test "$shlibpath_overrides_runpath" = yes ||
8642 test "$enable_shared" = no; then
8643 # Fast installation is not necessary
8644 enable_fast_install=needless
8652 if test "x$enable_dlopen" != xyes; then
8653 enable_dlopen=unknown
8654 enable_dlopen_self=unknown
8655 enable_dlopen_self_static=unknown
8656 else
8657 lt_cv_dlopen=no
8658 lt_cv_dlopen_libs=
8660 case $host_os in
8661 beos*)
8662 lt_cv_dlopen="load_add_on"
8663 lt_cv_dlopen_libs=
8664 lt_cv_dlopen_self=yes
8667 mingw* | pw32*)
8668 lt_cv_dlopen="LoadLibrary"
8669 lt_cv_dlopen_libs=
8672 cygwin*)
8673 lt_cv_dlopen="dlopen"
8674 lt_cv_dlopen_libs=
8677 darwin*)
8678 # if libdl is installed we need to link against it
8679 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8680 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8681 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8682 echo $ECHO_N "(cached) $ECHO_C" >&6
8683 else
8684 ac_check_lib_save_LIBS=$LIBS
8685 LIBS="-ldl $LIBS"
8686 if test x$gcc_no_link = xyes; then
8687 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8688 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8689 { (exit 1); exit 1; }; }
8691 cat >conftest.$ac_ext <<_ACEOF
8692 /* confdefs.h. */
8693 _ACEOF
8694 cat confdefs.h >>conftest.$ac_ext
8695 cat >>conftest.$ac_ext <<_ACEOF
8696 /* end confdefs.h. */
8698 /* Override any gcc2 internal prototype to avoid an error. */
8699 #ifdef __cplusplus
8700 extern "C"
8701 #endif
8702 /* We use char because int might match the return type of a gcc2
8703 builtin and then its argument prototype would still apply. */
8704 char dlopen ();
8706 main ()
8708 dlopen ();
8710 return 0;
8712 _ACEOF
8713 rm -f conftest.$ac_objext conftest$ac_exeext
8714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8715 (eval $ac_link) 2>conftest.er1
8716 ac_status=$?
8717 grep -v '^ *+' conftest.er1 >conftest.err
8718 rm -f conftest.er1
8719 cat conftest.err >&5
8720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721 (exit $ac_status); } &&
8722 { ac_try='test -z "$ac_c_werror_flag"
8723 || test ! -s conftest.err'
8724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8725 (eval $ac_try) 2>&5
8726 ac_status=$?
8727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728 (exit $ac_status); }; } &&
8729 { ac_try='test -s conftest$ac_exeext'
8730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8731 (eval $ac_try) 2>&5
8732 ac_status=$?
8733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8734 (exit $ac_status); }; }; then
8735 ac_cv_lib_dl_dlopen=yes
8736 else
8737 echo "$as_me: failed program was:" >&5
8738 sed 's/^/| /' conftest.$ac_ext >&5
8740 ac_cv_lib_dl_dlopen=no
8742 rm -f conftest.err conftest.$ac_objext \
8743 conftest$ac_exeext conftest.$ac_ext
8744 LIBS=$ac_check_lib_save_LIBS
8746 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8747 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8748 if test $ac_cv_lib_dl_dlopen = yes; then
8749 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8750 else
8752 lt_cv_dlopen="dyld"
8753 lt_cv_dlopen_libs=
8754 lt_cv_dlopen_self=yes
8761 echo "$as_me:$LINENO: checking for shl_load" >&5
8762 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8763 if test "${ac_cv_func_shl_load+set}" = set; then
8764 echo $ECHO_N "(cached) $ECHO_C" >&6
8765 else
8766 if test x$gcc_no_link = xyes; then
8767 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8768 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8769 { (exit 1); exit 1; }; }
8771 cat >conftest.$ac_ext <<_ACEOF
8772 /* confdefs.h. */
8773 _ACEOF
8774 cat confdefs.h >>conftest.$ac_ext
8775 cat >>conftest.$ac_ext <<_ACEOF
8776 /* end confdefs.h. */
8777 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8778 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8779 #define shl_load innocuous_shl_load
8781 /* System header to define __stub macros and hopefully few prototypes,
8782 which can conflict with char shl_load (); below.
8783 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8784 <limits.h> exists even on freestanding compilers. */
8786 #ifdef __STDC__
8787 # include <limits.h>
8788 #else
8789 # include <assert.h>
8790 #endif
8792 #undef shl_load
8794 /* Override any gcc2 internal prototype to avoid an error. */
8795 #ifdef __cplusplus
8796 extern "C"
8798 #endif
8799 /* We use char because int might match the return type of a gcc2
8800 builtin and then its argument prototype would still apply. */
8801 char shl_load ();
8802 /* The GNU C library defines this for functions which it implements
8803 to always fail with ENOSYS. Some functions are actually named
8804 something starting with __ and the normal name is an alias. */
8805 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8806 choke me
8807 #else
8808 char (*f) () = shl_load;
8809 #endif
8810 #ifdef __cplusplus
8812 #endif
8815 main ()
8817 return f != shl_load;
8819 return 0;
8821 _ACEOF
8822 rm -f conftest.$ac_objext conftest$ac_exeext
8823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8824 (eval $ac_link) 2>conftest.er1
8825 ac_status=$?
8826 grep -v '^ *+' conftest.er1 >conftest.err
8827 rm -f conftest.er1
8828 cat conftest.err >&5
8829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830 (exit $ac_status); } &&
8831 { ac_try='test -z "$ac_c_werror_flag"
8832 || test ! -s conftest.err'
8833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8834 (eval $ac_try) 2>&5
8835 ac_status=$?
8836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837 (exit $ac_status); }; } &&
8838 { ac_try='test -s conftest$ac_exeext'
8839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8840 (eval $ac_try) 2>&5
8841 ac_status=$?
8842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843 (exit $ac_status); }; }; then
8844 ac_cv_func_shl_load=yes
8845 else
8846 echo "$as_me: failed program was:" >&5
8847 sed 's/^/| /' conftest.$ac_ext >&5
8849 ac_cv_func_shl_load=no
8851 rm -f conftest.err conftest.$ac_objext \
8852 conftest$ac_exeext conftest.$ac_ext
8854 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8855 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8856 if test $ac_cv_func_shl_load = yes; then
8857 lt_cv_dlopen="shl_load"
8858 else
8859 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8860 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8861 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8862 echo $ECHO_N "(cached) $ECHO_C" >&6
8863 else
8864 ac_check_lib_save_LIBS=$LIBS
8865 LIBS="-ldld $LIBS"
8866 if test x$gcc_no_link = xyes; then
8867 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8868 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8869 { (exit 1); exit 1; }; }
8871 cat >conftest.$ac_ext <<_ACEOF
8872 /* confdefs.h. */
8873 _ACEOF
8874 cat confdefs.h >>conftest.$ac_ext
8875 cat >>conftest.$ac_ext <<_ACEOF
8876 /* end confdefs.h. */
8878 /* Override any gcc2 internal prototype to avoid an error. */
8879 #ifdef __cplusplus
8880 extern "C"
8881 #endif
8882 /* We use char because int might match the return type of a gcc2
8883 builtin and then its argument prototype would still apply. */
8884 char shl_load ();
8886 main ()
8888 shl_load ();
8890 return 0;
8892 _ACEOF
8893 rm -f conftest.$ac_objext conftest$ac_exeext
8894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8895 (eval $ac_link) 2>conftest.er1
8896 ac_status=$?
8897 grep -v '^ *+' conftest.er1 >conftest.err
8898 rm -f conftest.er1
8899 cat conftest.err >&5
8900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901 (exit $ac_status); } &&
8902 { ac_try='test -z "$ac_c_werror_flag"
8903 || test ! -s conftest.err'
8904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8905 (eval $ac_try) 2>&5
8906 ac_status=$?
8907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8908 (exit $ac_status); }; } &&
8909 { ac_try='test -s conftest$ac_exeext'
8910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8911 (eval $ac_try) 2>&5
8912 ac_status=$?
8913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8914 (exit $ac_status); }; }; then
8915 ac_cv_lib_dld_shl_load=yes
8916 else
8917 echo "$as_me: failed program was:" >&5
8918 sed 's/^/| /' conftest.$ac_ext >&5
8920 ac_cv_lib_dld_shl_load=no
8922 rm -f conftest.err conftest.$ac_objext \
8923 conftest$ac_exeext conftest.$ac_ext
8924 LIBS=$ac_check_lib_save_LIBS
8926 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8927 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8928 if test $ac_cv_lib_dld_shl_load = yes; then
8929 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8930 else
8931 echo "$as_me:$LINENO: checking for dlopen" >&5
8932 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8933 if test "${ac_cv_func_dlopen+set}" = set; then
8934 echo $ECHO_N "(cached) $ECHO_C" >&6
8935 else
8936 if test x$gcc_no_link = xyes; then
8937 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8938 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8939 { (exit 1); exit 1; }; }
8941 cat >conftest.$ac_ext <<_ACEOF
8942 /* confdefs.h. */
8943 _ACEOF
8944 cat confdefs.h >>conftest.$ac_ext
8945 cat >>conftest.$ac_ext <<_ACEOF
8946 /* end confdefs.h. */
8947 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8948 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8949 #define dlopen innocuous_dlopen
8951 /* System header to define __stub macros and hopefully few prototypes,
8952 which can conflict with char dlopen (); below.
8953 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8954 <limits.h> exists even on freestanding compilers. */
8956 #ifdef __STDC__
8957 # include <limits.h>
8958 #else
8959 # include <assert.h>
8960 #endif
8962 #undef dlopen
8964 /* Override any gcc2 internal prototype to avoid an error. */
8965 #ifdef __cplusplus
8966 extern "C"
8968 #endif
8969 /* We use char because int might match the return type of a gcc2
8970 builtin and then its argument prototype would still apply. */
8971 char dlopen ();
8972 /* The GNU C library defines this for functions which it implements
8973 to always fail with ENOSYS. Some functions are actually named
8974 something starting with __ and the normal name is an alias. */
8975 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8976 choke me
8977 #else
8978 char (*f) () = dlopen;
8979 #endif
8980 #ifdef __cplusplus
8982 #endif
8985 main ()
8987 return f != dlopen;
8989 return 0;
8991 _ACEOF
8992 rm -f conftest.$ac_objext conftest$ac_exeext
8993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8994 (eval $ac_link) 2>conftest.er1
8995 ac_status=$?
8996 grep -v '^ *+' conftest.er1 >conftest.err
8997 rm -f conftest.er1
8998 cat conftest.err >&5
8999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000 (exit $ac_status); } &&
9001 { ac_try='test -z "$ac_c_werror_flag"
9002 || test ! -s conftest.err'
9003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9004 (eval $ac_try) 2>&5
9005 ac_status=$?
9006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007 (exit $ac_status); }; } &&
9008 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
9014 ac_cv_func_dlopen=yes
9015 else
9016 echo "$as_me: failed program was:" >&5
9017 sed 's/^/| /' conftest.$ac_ext >&5
9019 ac_cv_func_dlopen=no
9021 rm -f conftest.err conftest.$ac_objext \
9022 conftest$ac_exeext conftest.$ac_ext
9024 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9025 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9026 if test $ac_cv_func_dlopen = yes; then
9027 lt_cv_dlopen="dlopen"
9028 else
9029 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9030 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9031 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9032 echo $ECHO_N "(cached) $ECHO_C" >&6
9033 else
9034 ac_check_lib_save_LIBS=$LIBS
9035 LIBS="-ldl $LIBS"
9036 if test x$gcc_no_link = xyes; then
9037 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9038 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9039 { (exit 1); exit 1; }; }
9041 cat >conftest.$ac_ext <<_ACEOF
9042 /* confdefs.h. */
9043 _ACEOF
9044 cat confdefs.h >>conftest.$ac_ext
9045 cat >>conftest.$ac_ext <<_ACEOF
9046 /* end confdefs.h. */
9048 /* Override any gcc2 internal prototype to avoid an error. */
9049 #ifdef __cplusplus
9050 extern "C"
9051 #endif
9052 /* We use char because int might match the return type of a gcc2
9053 builtin and then its argument prototype would still apply. */
9054 char dlopen ();
9056 main ()
9058 dlopen ();
9060 return 0;
9062 _ACEOF
9063 rm -f conftest.$ac_objext conftest$ac_exeext
9064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9065 (eval $ac_link) 2>conftest.er1
9066 ac_status=$?
9067 grep -v '^ *+' conftest.er1 >conftest.err
9068 rm -f conftest.er1
9069 cat conftest.err >&5
9070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071 (exit $ac_status); } &&
9072 { ac_try='test -z "$ac_c_werror_flag"
9073 || test ! -s conftest.err'
9074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9075 (eval $ac_try) 2>&5
9076 ac_status=$?
9077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078 (exit $ac_status); }; } &&
9079 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
9085 ac_cv_lib_dl_dlopen=yes
9086 else
9087 echo "$as_me: failed program was:" >&5
9088 sed 's/^/| /' conftest.$ac_ext >&5
9090 ac_cv_lib_dl_dlopen=no
9092 rm -f conftest.err conftest.$ac_objext \
9093 conftest$ac_exeext conftest.$ac_ext
9094 LIBS=$ac_check_lib_save_LIBS
9096 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9097 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9098 if test $ac_cv_lib_dl_dlopen = yes; then
9099 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9100 else
9101 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9102 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9103 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9104 echo $ECHO_N "(cached) $ECHO_C" >&6
9105 else
9106 ac_check_lib_save_LIBS=$LIBS
9107 LIBS="-lsvld $LIBS"
9108 if test x$gcc_no_link = xyes; then
9109 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9110 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9111 { (exit 1); exit 1; }; }
9113 cat >conftest.$ac_ext <<_ACEOF
9114 /* confdefs.h. */
9115 _ACEOF
9116 cat confdefs.h >>conftest.$ac_ext
9117 cat >>conftest.$ac_ext <<_ACEOF
9118 /* end confdefs.h. */
9120 /* Override any gcc2 internal prototype to avoid an error. */
9121 #ifdef __cplusplus
9122 extern "C"
9123 #endif
9124 /* We use char because int might match the return type of a gcc2
9125 builtin and then its argument prototype would still apply. */
9126 char dlopen ();
9128 main ()
9130 dlopen ();
9132 return 0;
9134 _ACEOF
9135 rm -f conftest.$ac_objext conftest$ac_exeext
9136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9137 (eval $ac_link) 2>conftest.er1
9138 ac_status=$?
9139 grep -v '^ *+' conftest.er1 >conftest.err
9140 rm -f conftest.er1
9141 cat conftest.err >&5
9142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9143 (exit $ac_status); } &&
9144 { ac_try='test -z "$ac_c_werror_flag"
9145 || test ! -s conftest.err'
9146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9147 (eval $ac_try) 2>&5
9148 ac_status=$?
9149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9150 (exit $ac_status); }; } &&
9151 { ac_try='test -s conftest$ac_exeext'
9152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9153 (eval $ac_try) 2>&5
9154 ac_status=$?
9155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9156 (exit $ac_status); }; }; then
9157 ac_cv_lib_svld_dlopen=yes
9158 else
9159 echo "$as_me: failed program was:" >&5
9160 sed 's/^/| /' conftest.$ac_ext >&5
9162 ac_cv_lib_svld_dlopen=no
9164 rm -f conftest.err conftest.$ac_objext \
9165 conftest$ac_exeext conftest.$ac_ext
9166 LIBS=$ac_check_lib_save_LIBS
9168 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9169 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9170 if test $ac_cv_lib_svld_dlopen = yes; then
9171 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9172 else
9173 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9174 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9175 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9176 echo $ECHO_N "(cached) $ECHO_C" >&6
9177 else
9178 ac_check_lib_save_LIBS=$LIBS
9179 LIBS="-ldld $LIBS"
9180 if test x$gcc_no_link = xyes; then
9181 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9182 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9183 { (exit 1); exit 1; }; }
9185 cat >conftest.$ac_ext <<_ACEOF
9186 /* confdefs.h. */
9187 _ACEOF
9188 cat confdefs.h >>conftest.$ac_ext
9189 cat >>conftest.$ac_ext <<_ACEOF
9190 /* end confdefs.h. */
9192 /* Override any gcc2 internal prototype to avoid an error. */
9193 #ifdef __cplusplus
9194 extern "C"
9195 #endif
9196 /* We use char because int might match the return type of a gcc2
9197 builtin and then its argument prototype would still apply. */
9198 char dld_link ();
9200 main ()
9202 dld_link ();
9204 return 0;
9206 _ACEOF
9207 rm -f conftest.$ac_objext conftest$ac_exeext
9208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9209 (eval $ac_link) 2>conftest.er1
9210 ac_status=$?
9211 grep -v '^ *+' conftest.er1 >conftest.err
9212 rm -f conftest.er1
9213 cat conftest.err >&5
9214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9215 (exit $ac_status); } &&
9216 { ac_try='test -z "$ac_c_werror_flag"
9217 || test ! -s conftest.err'
9218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9219 (eval $ac_try) 2>&5
9220 ac_status=$?
9221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9222 (exit $ac_status); }; } &&
9223 { ac_try='test -s conftest$ac_exeext'
9224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9225 (eval $ac_try) 2>&5
9226 ac_status=$?
9227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9228 (exit $ac_status); }; }; then
9229 ac_cv_lib_dld_dld_link=yes
9230 else
9231 echo "$as_me: failed program was:" >&5
9232 sed 's/^/| /' conftest.$ac_ext >&5
9234 ac_cv_lib_dld_dld_link=no
9236 rm -f conftest.err conftest.$ac_objext \
9237 conftest$ac_exeext conftest.$ac_ext
9238 LIBS=$ac_check_lib_save_LIBS
9240 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9241 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9242 if test $ac_cv_lib_dld_dld_link = yes; then
9243 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9262 esac
9264 if test "x$lt_cv_dlopen" != xno; then
9265 enable_dlopen=yes
9266 else
9267 enable_dlopen=no
9270 case $lt_cv_dlopen in
9271 dlopen)
9272 save_CPPFLAGS="$CPPFLAGS"
9273 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9275 save_LDFLAGS="$LDFLAGS"
9276 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9278 save_LIBS="$LIBS"
9279 LIBS="$lt_cv_dlopen_libs $LIBS"
9281 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9282 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9283 if test "${lt_cv_dlopen_self+set}" = set; then
9284 echo $ECHO_N "(cached) $ECHO_C" >&6
9285 else
9286 if test "$cross_compiling" = yes; then :
9287 lt_cv_dlopen_self=cross
9288 else
9289 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9290 lt_status=$lt_dlunknown
9291 cat > conftest.$ac_ext <<_LT_EOF
9292 #line 9292 "configure"
9293 #include "confdefs.h"
9295 #if HAVE_DLFCN_H
9296 #include <dlfcn.h>
9297 #endif
9299 #include <stdio.h>
9301 #ifdef RTLD_GLOBAL
9302 # define LT_DLGLOBAL RTLD_GLOBAL
9303 #else
9304 # ifdef DL_GLOBAL
9305 # define LT_DLGLOBAL DL_GLOBAL
9306 # else
9307 # define LT_DLGLOBAL 0
9308 # endif
9309 #endif
9311 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9312 find out it does not work in some platform. */
9313 #ifndef LT_DLLAZY_OR_NOW
9314 # ifdef RTLD_LAZY
9315 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9316 # else
9317 # ifdef DL_LAZY
9318 # define LT_DLLAZY_OR_NOW DL_LAZY
9319 # else
9320 # ifdef RTLD_NOW
9321 # define LT_DLLAZY_OR_NOW RTLD_NOW
9322 # else
9323 # ifdef DL_NOW
9324 # define LT_DLLAZY_OR_NOW DL_NOW
9325 # else
9326 # define LT_DLLAZY_OR_NOW 0
9327 # endif
9328 # endif
9329 # endif
9330 # endif
9331 #endif
9333 #ifdef __cplusplus
9334 extern "C" void exit (int);
9335 #endif
9337 void fnord() { int i=42;}
9338 int main ()
9340 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9341 int status = $lt_dlunknown;
9343 if (self)
9345 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9346 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9347 /* dlclose (self); */
9349 else
9350 puts (dlerror ());
9352 exit (status);
9354 _LT_EOF
9355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9356 (eval $ac_link) 2>&5
9357 ac_status=$?
9358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9359 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9360 (./conftest; exit; ) >&5 2>/dev/null
9361 lt_status=$?
9362 case x$lt_status in
9363 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9364 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9365 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9366 esac
9367 else :
9368 # compilation failed
9369 lt_cv_dlopen_self=no
9372 rm -fr conftest*
9376 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9377 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9379 if test "x$lt_cv_dlopen_self" = xyes; then
9380 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9381 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9382 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9383 if test "${lt_cv_dlopen_self_static+set}" = set; then
9384 echo $ECHO_N "(cached) $ECHO_C" >&6
9385 else
9386 if test "$cross_compiling" = yes; then :
9387 lt_cv_dlopen_self_static=cross
9388 else
9389 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9390 lt_status=$lt_dlunknown
9391 cat > conftest.$ac_ext <<_LT_EOF
9392 #line 9392 "configure"
9393 #include "confdefs.h"
9395 #if HAVE_DLFCN_H
9396 #include <dlfcn.h>
9397 #endif
9399 #include <stdio.h>
9401 #ifdef RTLD_GLOBAL
9402 # define LT_DLGLOBAL RTLD_GLOBAL
9403 #else
9404 # ifdef DL_GLOBAL
9405 # define LT_DLGLOBAL DL_GLOBAL
9406 # else
9407 # define LT_DLGLOBAL 0
9408 # endif
9409 #endif
9411 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9412 find out it does not work in some platform. */
9413 #ifndef LT_DLLAZY_OR_NOW
9414 # ifdef RTLD_LAZY
9415 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9416 # else
9417 # ifdef DL_LAZY
9418 # define LT_DLLAZY_OR_NOW DL_LAZY
9419 # else
9420 # ifdef RTLD_NOW
9421 # define LT_DLLAZY_OR_NOW RTLD_NOW
9422 # else
9423 # ifdef DL_NOW
9424 # define LT_DLLAZY_OR_NOW DL_NOW
9425 # else
9426 # define LT_DLLAZY_OR_NOW 0
9427 # endif
9428 # endif
9429 # endif
9430 # endif
9431 #endif
9433 #ifdef __cplusplus
9434 extern "C" void exit (int);
9435 #endif
9437 void fnord() { int i=42;}
9438 int main ()
9440 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9441 int status = $lt_dlunknown;
9443 if (self)
9445 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9446 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9447 /* dlclose (self); */
9449 else
9450 puts (dlerror ());
9452 exit (status);
9454 _LT_EOF
9455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9456 (eval $ac_link) 2>&5
9457 ac_status=$?
9458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9460 (./conftest; exit; ) >&5 2>/dev/null
9461 lt_status=$?
9462 case x$lt_status in
9463 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9464 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9465 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9466 esac
9467 else :
9468 # compilation failed
9469 lt_cv_dlopen_self_static=no
9472 rm -fr conftest*
9476 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9477 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9480 CPPFLAGS="$save_CPPFLAGS"
9481 LDFLAGS="$save_LDFLAGS"
9482 LIBS="$save_LIBS"
9484 esac
9486 case $lt_cv_dlopen_self in
9487 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9488 *) enable_dlopen_self=unknown ;;
9489 esac
9491 case $lt_cv_dlopen_self_static in
9492 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9493 *) enable_dlopen_self_static=unknown ;;
9494 esac
9513 striplib=
9514 old_striplib=
9515 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9516 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9517 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9518 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9519 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9520 echo "$as_me:$LINENO: result: yes" >&5
9521 echo "${ECHO_T}yes" >&6
9522 else
9523 # FIXME - insert some real tests, host_os isn't really good enough
9524 case $host_os in
9525 darwin*)
9526 if test -n "$STRIP" ; then
9527 striplib="$STRIP -x"
9528 old_striplib="$STRIP -S"
9529 echo "$as_me:$LINENO: result: yes" >&5
9530 echo "${ECHO_T}yes" >&6
9531 else
9532 echo "$as_me:$LINENO: result: no" >&5
9533 echo "${ECHO_T}no" >&6
9537 echo "$as_me:$LINENO: result: no" >&5
9538 echo "${ECHO_T}no" >&6
9540 esac
9554 # Report which library types will actually be built
9555 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9556 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9557 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9558 echo "${ECHO_T}$can_build_shared" >&6
9560 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9561 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9562 test "$can_build_shared" = "no" && enable_shared=no
9564 # On AIX, shared libraries and static libraries use the same namespace, and
9565 # are all built from PIC.
9566 case $host_os in
9567 aix3*)
9568 test "$enable_shared" = yes && enable_static=no
9569 if test -n "$RANLIB"; then
9570 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9571 postinstall_cmds='$RANLIB $lib'
9575 aix[4-9]*)
9576 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9577 test "$enable_shared" = yes && enable_static=no
9580 esac
9581 echo "$as_me:$LINENO: result: $enable_shared" >&5
9582 echo "${ECHO_T}$enable_shared" >&6
9584 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9585 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9586 # Make sure either enable_shared or enable_static is yes.
9587 test "$enable_shared" = yes || enable_static=yes
9588 echo "$as_me:$LINENO: result: $enable_static" >&5
9589 echo "${ECHO_T}$enable_static" >&6
9595 ac_ext=c
9596 ac_cpp='$CPP $CPPFLAGS'
9597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9601 CC="$lt_save_CC"
9615 ac_config_commands="$ac_config_commands libtool"
9620 # Only expand once:
9624 # Find CPP now so that any conditional tests below won't do it and
9625 # thereby make the resulting definitions conditional.
9626 ac_ext=c
9627 ac_cpp='$CPP $CPPFLAGS'
9628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9631 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
9632 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
9633 # On Suns, sometimes $CPP names a directory.
9634 if test -n "$CPP" && test -d "$CPP"; then
9635 CPP=
9637 if test -z "$CPP"; then
9638 if test "${ac_cv_prog_CPP+set}" = set; then
9639 echo $ECHO_N "(cached) $ECHO_C" >&6
9640 else
9641 # Double quotes because CPP needs to be expanded
9642 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
9644 ac_preproc_ok=false
9645 for ac_c_preproc_warn_flag in '' yes
9647 # Use a header file that comes with gcc, so configuring glibc
9648 # with a fresh cross-compiler works.
9649 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9650 # <limits.h> exists even on freestanding compilers.
9651 # On the NeXT, cc -E runs the code through the compiler's parser,
9652 # not just through cpp. "Syntax error" is here to catch this case.
9653 cat >conftest.$ac_ext <<_ACEOF
9654 /* confdefs.h. */
9655 _ACEOF
9656 cat confdefs.h >>conftest.$ac_ext
9657 cat >>conftest.$ac_ext <<_ACEOF
9658 /* end confdefs.h. */
9659 #ifdef __STDC__
9660 # include <limits.h>
9661 #else
9662 # include <assert.h>
9663 #endif
9664 Syntax error
9665 _ACEOF
9666 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9667 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9668 ac_status=$?
9669 grep -v '^ *+' conftest.er1 >conftest.err
9670 rm -f conftest.er1
9671 cat conftest.err >&5
9672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673 (exit $ac_status); } >/dev/null; then
9674 if test -s conftest.err; then
9675 ac_cpp_err=$ac_c_preproc_warn_flag
9676 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9677 else
9678 ac_cpp_err=
9680 else
9681 ac_cpp_err=yes
9683 if test -z "$ac_cpp_err"; then
9685 else
9686 echo "$as_me: failed program was:" >&5
9687 sed 's/^/| /' conftest.$ac_ext >&5
9689 # Broken: fails on valid input.
9690 continue
9692 rm -f conftest.err conftest.$ac_ext
9694 # OK, works on sane cases. Now check whether non-existent headers
9695 # can be detected and how.
9696 cat >conftest.$ac_ext <<_ACEOF
9697 /* confdefs.h. */
9698 _ACEOF
9699 cat confdefs.h >>conftest.$ac_ext
9700 cat >>conftest.$ac_ext <<_ACEOF
9701 /* end confdefs.h. */
9702 #include <ac_nonexistent.h>
9703 _ACEOF
9704 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9705 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9706 ac_status=$?
9707 grep -v '^ *+' conftest.er1 >conftest.err
9708 rm -f conftest.er1
9709 cat conftest.err >&5
9710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711 (exit $ac_status); } >/dev/null; then
9712 if test -s conftest.err; then
9713 ac_cpp_err=$ac_c_preproc_warn_flag
9714 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9715 else
9716 ac_cpp_err=
9718 else
9719 ac_cpp_err=yes
9721 if test -z "$ac_cpp_err"; then
9722 # Broken: success on invalid input.
9723 continue
9724 else
9725 echo "$as_me: failed program was:" >&5
9726 sed 's/^/| /' conftest.$ac_ext >&5
9728 # Passes both tests.
9729 ac_preproc_ok=:
9730 break
9732 rm -f conftest.err conftest.$ac_ext
9734 done
9735 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9736 rm -f conftest.err conftest.$ac_ext
9737 if $ac_preproc_ok; then
9738 break
9741 done
9742 ac_cv_prog_CPP=$CPP
9745 CPP=$ac_cv_prog_CPP
9746 else
9747 ac_cv_prog_CPP=$CPP
9749 echo "$as_me:$LINENO: result: $CPP" >&5
9750 echo "${ECHO_T}$CPP" >&6
9751 ac_preproc_ok=false
9752 for ac_c_preproc_warn_flag in '' yes
9754 # Use a header file that comes with gcc, so configuring glibc
9755 # with a fresh cross-compiler works.
9756 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9757 # <limits.h> exists even on freestanding compilers.
9758 # On the NeXT, cc -E runs the code through the compiler's parser,
9759 # not just through cpp. "Syntax error" is here to catch this case.
9760 cat >conftest.$ac_ext <<_ACEOF
9761 /* confdefs.h. */
9762 _ACEOF
9763 cat confdefs.h >>conftest.$ac_ext
9764 cat >>conftest.$ac_ext <<_ACEOF
9765 /* end confdefs.h. */
9766 #ifdef __STDC__
9767 # include <limits.h>
9768 #else
9769 # include <assert.h>
9770 #endif
9771 Syntax error
9772 _ACEOF
9773 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9774 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9775 ac_status=$?
9776 grep -v '^ *+' conftest.er1 >conftest.err
9777 rm -f conftest.er1
9778 cat conftest.err >&5
9779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780 (exit $ac_status); } >/dev/null; then
9781 if test -s conftest.err; then
9782 ac_cpp_err=$ac_c_preproc_warn_flag
9783 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9784 else
9785 ac_cpp_err=
9787 else
9788 ac_cpp_err=yes
9790 if test -z "$ac_cpp_err"; then
9792 else
9793 echo "$as_me: failed program was:" >&5
9794 sed 's/^/| /' conftest.$ac_ext >&5
9796 # Broken: fails on valid input.
9797 continue
9799 rm -f conftest.err conftest.$ac_ext
9801 # OK, works on sane cases. Now check whether non-existent headers
9802 # can be detected and how.
9803 cat >conftest.$ac_ext <<_ACEOF
9804 /* confdefs.h. */
9805 _ACEOF
9806 cat confdefs.h >>conftest.$ac_ext
9807 cat >>conftest.$ac_ext <<_ACEOF
9808 /* end confdefs.h. */
9809 #include <ac_nonexistent.h>
9810 _ACEOF
9811 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9812 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9813 ac_status=$?
9814 grep -v '^ *+' conftest.er1 >conftest.err
9815 rm -f conftest.er1
9816 cat conftest.err >&5
9817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818 (exit $ac_status); } >/dev/null; then
9819 if test -s conftest.err; then
9820 ac_cpp_err=$ac_c_preproc_warn_flag
9821 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9822 else
9823 ac_cpp_err=
9825 else
9826 ac_cpp_err=yes
9828 if test -z "$ac_cpp_err"; then
9829 # Broken: success on invalid input.
9830 continue
9831 else
9832 echo "$as_me: failed program was:" >&5
9833 sed 's/^/| /' conftest.$ac_ext >&5
9835 # Passes both tests.
9836 ac_preproc_ok=:
9837 break
9839 rm -f conftest.err conftest.$ac_ext
9841 done
9842 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9843 rm -f conftest.err conftest.$ac_ext
9844 if $ac_preproc_ok; then
9846 else
9847 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
9848 See \`config.log' for more details." >&5
9849 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
9850 See \`config.log' for more details." >&2;}
9851 { (exit 1); exit 1; }; }
9854 ac_ext=c
9855 ac_cpp='$CPP $CPPFLAGS'
9856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9861 if test -n "$with_cross_host"; then
9862 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
9863 # may not work correctly, because the compiler may not be able to
9864 # link executables.
9866 # We assume newlib. This lets us hard-code the functions we know
9867 # we'll have.
9868 cat >>confdefs.h <<\_ACEOF
9869 #define HAVE_MEMCPY 1
9870 _ACEOF
9872 cat >>confdefs.h <<\_ACEOF
9873 #define HAVE_STRERROR 1
9874 _ACEOF
9877 # We ignore --with-system-zlib in this case.
9878 target_all=libzgcj.la
9879 else
9880 if test x$gcc_no_link = xyes; then
9881 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
9882 ac_cv_func_mmap_fixed_mapped=no
9885 if test "x${ac_cv_func_mmap_fixed_mapped}" != xno; then
9888 for ac_header in stdlib.h unistd.h
9890 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9891 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9892 echo "$as_me:$LINENO: checking for $ac_header" >&5
9893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9894 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9895 echo $ECHO_N "(cached) $ECHO_C" >&6
9897 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9898 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9899 else
9900 # Is the header compilable?
9901 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9902 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9903 cat >conftest.$ac_ext <<_ACEOF
9904 /* confdefs.h. */
9905 _ACEOF
9906 cat confdefs.h >>conftest.$ac_ext
9907 cat >>conftest.$ac_ext <<_ACEOF
9908 /* end confdefs.h. */
9909 $ac_includes_default
9910 #include <$ac_header>
9911 _ACEOF
9912 rm -f conftest.$ac_objext
9913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9914 (eval $ac_compile) 2>conftest.er1
9915 ac_status=$?
9916 grep -v '^ *+' conftest.er1 >conftest.err
9917 rm -f conftest.er1
9918 cat conftest.err >&5
9919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920 (exit $ac_status); } &&
9921 { ac_try='test -z "$ac_c_werror_flag"
9922 || test ! -s conftest.err'
9923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9924 (eval $ac_try) 2>&5
9925 ac_status=$?
9926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927 (exit $ac_status); }; } &&
9928 { ac_try='test -s conftest.$ac_objext'
9929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9930 (eval $ac_try) 2>&5
9931 ac_status=$?
9932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933 (exit $ac_status); }; }; then
9934 ac_header_compiler=yes
9935 else
9936 echo "$as_me: failed program was:" >&5
9937 sed 's/^/| /' conftest.$ac_ext >&5
9939 ac_header_compiler=no
9941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9942 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9943 echo "${ECHO_T}$ac_header_compiler" >&6
9945 # Is the header present?
9946 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9947 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9948 cat >conftest.$ac_ext <<_ACEOF
9949 /* confdefs.h. */
9950 _ACEOF
9951 cat confdefs.h >>conftest.$ac_ext
9952 cat >>conftest.$ac_ext <<_ACEOF
9953 /* end confdefs.h. */
9954 #include <$ac_header>
9955 _ACEOF
9956 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9957 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9958 ac_status=$?
9959 grep -v '^ *+' conftest.er1 >conftest.err
9960 rm -f conftest.er1
9961 cat conftest.err >&5
9962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9963 (exit $ac_status); } >/dev/null; then
9964 if test -s conftest.err; then
9965 ac_cpp_err=$ac_c_preproc_warn_flag
9966 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9967 else
9968 ac_cpp_err=
9970 else
9971 ac_cpp_err=yes
9973 if test -z "$ac_cpp_err"; then
9974 ac_header_preproc=yes
9975 else
9976 echo "$as_me: failed program was:" >&5
9977 sed 's/^/| /' conftest.$ac_ext >&5
9979 ac_header_preproc=no
9981 rm -f conftest.err conftest.$ac_ext
9982 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9983 echo "${ECHO_T}$ac_header_preproc" >&6
9985 # So? What about this header?
9986 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9987 yes:no: )
9988 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9989 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9990 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9991 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9992 ac_header_preproc=yes
9994 no:yes:* )
9995 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9996 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9997 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9998 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9999 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10000 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10001 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10002 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10003 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10004 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10005 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10006 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10008 cat <<\_ASBOX
10009 ## ------------------------------------------ ##
10010 ## Report this to the AC_PACKAGE_NAME lists. ##
10011 ## ------------------------------------------ ##
10012 _ASBOX
10014 sed "s/^/$as_me: WARNING: /" >&2
10016 esac
10017 echo "$as_me:$LINENO: checking for $ac_header" >&5
10018 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10019 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10020 echo $ECHO_N "(cached) $ECHO_C" >&6
10021 else
10022 eval "$as_ac_Header=\$ac_header_preproc"
10024 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10025 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10028 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10029 cat >>confdefs.h <<_ACEOF
10030 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10031 _ACEOF
10035 done
10038 for ac_func in getpagesize
10040 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10041 echo "$as_me:$LINENO: checking for $ac_func" >&5
10042 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10043 if eval "test \"\${$as_ac_var+set}\" = set"; then
10044 echo $ECHO_N "(cached) $ECHO_C" >&6
10045 else
10046 if test x$gcc_no_link = xyes; then
10047 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10048 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10049 { (exit 1); exit 1; }; }
10051 cat >conftest.$ac_ext <<_ACEOF
10052 /* confdefs.h. */
10053 _ACEOF
10054 cat confdefs.h >>conftest.$ac_ext
10055 cat >>conftest.$ac_ext <<_ACEOF
10056 /* end confdefs.h. */
10057 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10059 #define $ac_func innocuous_$ac_func
10061 /* System header to define __stub macros and hopefully few prototypes,
10062 which can conflict with char $ac_func (); below.
10063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10064 <limits.h> exists even on freestanding compilers. */
10066 #ifdef __STDC__
10067 # include <limits.h>
10068 #else
10069 # include <assert.h>
10070 #endif
10072 #undef $ac_func
10074 /* Override any gcc2 internal prototype to avoid an error. */
10075 #ifdef __cplusplus
10076 extern "C"
10078 #endif
10079 /* We use char because int might match the return type of a gcc2
10080 builtin and then its argument prototype would still apply. */
10081 char $ac_func ();
10082 /* The GNU C library defines this for functions which it implements
10083 to always fail with ENOSYS. Some functions are actually named
10084 something starting with __ and the normal name is an alias. */
10085 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10086 choke me
10087 #else
10088 char (*f) () = $ac_func;
10089 #endif
10090 #ifdef __cplusplus
10092 #endif
10095 main ()
10097 return f != $ac_func;
10099 return 0;
10101 _ACEOF
10102 rm -f conftest.$ac_objext conftest$ac_exeext
10103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10104 (eval $ac_link) 2>conftest.er1
10105 ac_status=$?
10106 grep -v '^ *+' conftest.er1 >conftest.err
10107 rm -f conftest.er1
10108 cat conftest.err >&5
10109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10110 (exit $ac_status); } &&
10111 { ac_try='test -z "$ac_c_werror_flag"
10112 || test ! -s conftest.err'
10113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10114 (eval $ac_try) 2>&5
10115 ac_status=$?
10116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10117 (exit $ac_status); }; } &&
10118 { ac_try='test -s conftest$ac_exeext'
10119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10120 (eval $ac_try) 2>&5
10121 ac_status=$?
10122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10123 (exit $ac_status); }; }; then
10124 eval "$as_ac_var=yes"
10125 else
10126 echo "$as_me: failed program was:" >&5
10127 sed 's/^/| /' conftest.$ac_ext >&5
10129 eval "$as_ac_var=no"
10131 rm -f conftest.err conftest.$ac_objext \
10132 conftest$ac_exeext conftest.$ac_ext
10134 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10135 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10136 if test `eval echo '${'$as_ac_var'}'` = yes; then
10137 cat >>confdefs.h <<_ACEOF
10138 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10139 _ACEOF
10142 done
10144 echo "$as_me:$LINENO: checking for working mmap" >&5
10145 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
10146 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10147 echo $ECHO_N "(cached) $ECHO_C" >&6
10148 else
10149 if test "$cross_compiling" = yes; then
10150 ac_cv_func_mmap_fixed_mapped=no
10151 else
10152 cat >conftest.$ac_ext <<_ACEOF
10153 /* confdefs.h. */
10154 _ACEOF
10155 cat confdefs.h >>conftest.$ac_ext
10156 cat >>conftest.$ac_ext <<_ACEOF
10157 /* end confdefs.h. */
10158 $ac_includes_default
10159 /* malloc might have been renamed as rpl_malloc. */
10160 #undef malloc
10162 /* Thanks to Mike Haertel and Jim Avera for this test.
10163 Here is a matrix of mmap possibilities:
10164 mmap private not fixed
10165 mmap private fixed at somewhere currently unmapped
10166 mmap private fixed at somewhere already mapped
10167 mmap shared not fixed
10168 mmap shared fixed at somewhere currently unmapped
10169 mmap shared fixed at somewhere already mapped
10170 For private mappings, we should verify that changes cannot be read()
10171 back from the file, nor mmap's back from the file at a different
10172 address. (There have been systems where private was not correctly
10173 implemented like the infamous i386 svr4.0, and systems where the
10174 VM page cache was not coherent with the file system buffer cache
10175 like early versions of FreeBSD and possibly contemporary NetBSD.)
10176 For shared mappings, we should conversely verify that changes get
10177 propagated back to all the places they're supposed to be.
10179 Grep wants private fixed already mapped.
10180 The main things grep needs to know about mmap are:
10181 * does it exist and is it safe to write into the mmap'd area
10182 * how to use it (BSD variants) */
10184 #include <fcntl.h>
10185 #include <sys/mman.h>
10187 #if !STDC_HEADERS && !HAVE_STDLIB_H
10188 char *malloc ();
10189 #endif
10191 /* This mess was copied from the GNU getpagesize.h. */
10192 #if !HAVE_GETPAGESIZE
10193 /* Assume that all systems that can run configure have sys/param.h. */
10194 # if !HAVE_SYS_PARAM_H
10195 # define HAVE_SYS_PARAM_H 1
10196 # endif
10198 # ifdef _SC_PAGESIZE
10199 # define getpagesize() sysconf(_SC_PAGESIZE)
10200 # else /* no _SC_PAGESIZE */
10201 # if HAVE_SYS_PARAM_H
10202 # include <sys/param.h>
10203 # ifdef EXEC_PAGESIZE
10204 # define getpagesize() EXEC_PAGESIZE
10205 # else /* no EXEC_PAGESIZE */
10206 # ifdef NBPG
10207 # define getpagesize() NBPG * CLSIZE
10208 # ifndef CLSIZE
10209 # define CLSIZE 1
10210 # endif /* no CLSIZE */
10211 # else /* no NBPG */
10212 # ifdef NBPC
10213 # define getpagesize() NBPC
10214 # else /* no NBPC */
10215 # ifdef PAGESIZE
10216 # define getpagesize() PAGESIZE
10217 # endif /* PAGESIZE */
10218 # endif /* no NBPC */
10219 # endif /* no NBPG */
10220 # endif /* no EXEC_PAGESIZE */
10221 # else /* no HAVE_SYS_PARAM_H */
10222 # define getpagesize() 8192 /* punt totally */
10223 # endif /* no HAVE_SYS_PARAM_H */
10224 # endif /* no _SC_PAGESIZE */
10226 #endif /* no HAVE_GETPAGESIZE */
10229 main ()
10231 char *data, *data2, *data3;
10232 int i, pagesize;
10233 int fd;
10235 pagesize = getpagesize ();
10237 /* First, make a file with some known garbage in it. */
10238 data = (char *) malloc (pagesize);
10239 if (!data)
10240 exit (1);
10241 for (i = 0; i < pagesize; ++i)
10242 *(data + i) = rand ();
10243 umask (0);
10244 fd = creat ("conftest.mmap", 0600);
10245 if (fd < 0)
10246 exit (1);
10247 if (write (fd, data, pagesize) != pagesize)
10248 exit (1);
10249 close (fd);
10251 /* Next, try to mmap the file at a fixed address which already has
10252 something else allocated at it. If we can, also make sure that
10253 we see the same garbage. */
10254 fd = open ("conftest.mmap", O_RDWR);
10255 if (fd < 0)
10256 exit (1);
10257 data2 = (char *) malloc (2 * pagesize);
10258 if (!data2)
10259 exit (1);
10260 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
10261 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10262 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10263 exit (1);
10264 for (i = 0; i < pagesize; ++i)
10265 if (*(data + i) != *(data2 + i))
10266 exit (1);
10268 /* Finally, make sure that changes to the mapped area do not
10269 percolate back to the file as seen by read(). (This is a bug on
10270 some variants of i386 svr4.0.) */
10271 for (i = 0; i < pagesize; ++i)
10272 *(data2 + i) = *(data2 + i) + 1;
10273 data3 = (char *) malloc (pagesize);
10274 if (!data3)
10275 exit (1);
10276 if (read (fd, data3, pagesize) != pagesize)
10277 exit (1);
10278 for (i = 0; i < pagesize; ++i)
10279 if (*(data + i) != *(data3 + i))
10280 exit (1);
10281 close (fd);
10282 exit (0);
10284 _ACEOF
10285 rm -f conftest$ac_exeext
10286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10287 (eval $ac_link) 2>&5
10288 ac_status=$?
10289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10290 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10292 (eval $ac_try) 2>&5
10293 ac_status=$?
10294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295 (exit $ac_status); }; }; then
10296 ac_cv_func_mmap_fixed_mapped=yes
10297 else
10298 echo "$as_me: program exited with status $ac_status" >&5
10299 echo "$as_me: failed program was:" >&5
10300 sed 's/^/| /' conftest.$ac_ext >&5
10302 ( exit $ac_status )
10303 ac_cv_func_mmap_fixed_mapped=no
10305 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10308 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10309 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
10310 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10312 cat >>confdefs.h <<\_ACEOF
10313 #define HAVE_MMAP 1
10314 _ACEOF
10317 rm -f conftest.mmap
10322 for ac_func in memcpy strerror
10324 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10325 echo "$as_me:$LINENO: checking for $ac_func" >&5
10326 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10327 if eval "test \"\${$as_ac_var+set}\" = set"; then
10328 echo $ECHO_N "(cached) $ECHO_C" >&6
10329 else
10330 if test x$gcc_no_link = xyes; then
10331 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10332 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10333 { (exit 1); exit 1; }; }
10335 cat >conftest.$ac_ext <<_ACEOF
10336 /* confdefs.h. */
10337 _ACEOF
10338 cat confdefs.h >>conftest.$ac_ext
10339 cat >>conftest.$ac_ext <<_ACEOF
10340 /* end confdefs.h. */
10341 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10342 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10343 #define $ac_func innocuous_$ac_func
10345 /* System header to define __stub macros and hopefully few prototypes,
10346 which can conflict with char $ac_func (); below.
10347 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10348 <limits.h> exists even on freestanding compilers. */
10350 #ifdef __STDC__
10351 # include <limits.h>
10352 #else
10353 # include <assert.h>
10354 #endif
10356 #undef $ac_func
10358 /* Override any gcc2 internal prototype to avoid an error. */
10359 #ifdef __cplusplus
10360 extern "C"
10362 #endif
10363 /* We use char because int might match the return type of a gcc2
10364 builtin and then its argument prototype would still apply. */
10365 char $ac_func ();
10366 /* The GNU C library defines this for functions which it implements
10367 to always fail with ENOSYS. Some functions are actually named
10368 something starting with __ and the normal name is an alias. */
10369 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10370 choke me
10371 #else
10372 char (*f) () = $ac_func;
10373 #endif
10374 #ifdef __cplusplus
10376 #endif
10379 main ()
10381 return f != $ac_func;
10383 return 0;
10385 _ACEOF
10386 rm -f conftest.$ac_objext conftest$ac_exeext
10387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10388 (eval $ac_link) 2>conftest.er1
10389 ac_status=$?
10390 grep -v '^ *+' conftest.er1 >conftest.err
10391 rm -f conftest.er1
10392 cat conftest.err >&5
10393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394 (exit $ac_status); } &&
10395 { ac_try='test -z "$ac_c_werror_flag"
10396 || test ! -s conftest.err'
10397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10398 (eval $ac_try) 2>&5
10399 ac_status=$?
10400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10401 (exit $ac_status); }; } &&
10402 { ac_try='test -s conftest$ac_exeext'
10403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10404 (eval $ac_try) 2>&5
10405 ac_status=$?
10406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10407 (exit $ac_status); }; }; then
10408 eval "$as_ac_var=yes"
10409 else
10410 echo "$as_me: failed program was:" >&5
10411 sed 's/^/| /' conftest.$ac_ext >&5
10413 eval "$as_ac_var=no"
10415 rm -f conftest.err conftest.$ac_objext \
10416 conftest$ac_exeext conftest.$ac_ext
10418 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10419 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10420 if test `eval echo '${'$as_ac_var'}'` = yes; then
10421 cat >>confdefs.h <<_ACEOF
10422 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10423 _ACEOF
10426 done
10429 if test "$with_system_zlib" = yes; then
10430 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
10431 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
10432 if test "${ac_cv_lib_z_deflate+set}" = set; then
10433 echo $ECHO_N "(cached) $ECHO_C" >&6
10434 else
10435 ac_check_lib_save_LIBS=$LIBS
10436 LIBS="-lz $LIBS"
10437 if test x$gcc_no_link = xyes; then
10438 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10439 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10440 { (exit 1); exit 1; }; }
10442 cat >conftest.$ac_ext <<_ACEOF
10443 /* confdefs.h. */
10444 _ACEOF
10445 cat confdefs.h >>conftest.$ac_ext
10446 cat >>conftest.$ac_ext <<_ACEOF
10447 /* end confdefs.h. */
10449 /* Override any gcc2 internal prototype to avoid an error. */
10450 #ifdef __cplusplus
10451 extern "C"
10452 #endif
10453 /* We use char because int might match the return type of a gcc2
10454 builtin and then its argument prototype would still apply. */
10455 char deflate ();
10457 main ()
10459 deflate ();
10461 return 0;
10463 _ACEOF
10464 rm -f conftest.$ac_objext conftest$ac_exeext
10465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10466 (eval $ac_link) 2>conftest.er1
10467 ac_status=$?
10468 grep -v '^ *+' conftest.er1 >conftest.err
10469 rm -f conftest.er1
10470 cat conftest.err >&5
10471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10472 (exit $ac_status); } &&
10473 { ac_try='test -z "$ac_c_werror_flag"
10474 || test ! -s conftest.err'
10475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10476 (eval $ac_try) 2>&5
10477 ac_status=$?
10478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10479 (exit $ac_status); }; } &&
10480 { ac_try='test -s conftest$ac_exeext'
10481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10482 (eval $ac_try) 2>&5
10483 ac_status=$?
10484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485 (exit $ac_status); }; }; then
10486 ac_cv_lib_z_deflate=yes
10487 else
10488 echo "$as_me: failed program was:" >&5
10489 sed 's/^/| /' conftest.$ac_ext >&5
10491 ac_cv_lib_z_deflate=no
10493 rm -f conftest.err conftest.$ac_objext \
10494 conftest$ac_exeext conftest.$ac_ext
10495 LIBS=$ac_check_lib_save_LIBS
10497 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
10498 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
10499 if test $ac_cv_lib_z_deflate = yes; then
10500 target_all=
10501 else
10502 target_all=libzgcj.la
10505 else
10506 target_all=libzgcj.la
10513 for ac_header in unistd.h
10515 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10516 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10517 echo "$as_me:$LINENO: checking for $ac_header" >&5
10518 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10519 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10520 echo $ECHO_N "(cached) $ECHO_C" >&6
10522 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10523 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10524 else
10525 # Is the header compilable?
10526 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10527 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10528 cat >conftest.$ac_ext <<_ACEOF
10529 /* confdefs.h. */
10530 _ACEOF
10531 cat confdefs.h >>conftest.$ac_ext
10532 cat >>conftest.$ac_ext <<_ACEOF
10533 /* end confdefs.h. */
10534 $ac_includes_default
10535 #include <$ac_header>
10536 _ACEOF
10537 rm -f conftest.$ac_objext
10538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10539 (eval $ac_compile) 2>conftest.er1
10540 ac_status=$?
10541 grep -v '^ *+' conftest.er1 >conftest.err
10542 rm -f conftest.er1
10543 cat conftest.err >&5
10544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545 (exit $ac_status); } &&
10546 { ac_try='test -z "$ac_c_werror_flag"
10547 || test ! -s conftest.err'
10548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10549 (eval $ac_try) 2>&5
10550 ac_status=$?
10551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552 (exit $ac_status); }; } &&
10553 { ac_try='test -s conftest.$ac_objext'
10554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10555 (eval $ac_try) 2>&5
10556 ac_status=$?
10557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558 (exit $ac_status); }; }; then
10559 ac_header_compiler=yes
10560 else
10561 echo "$as_me: failed program was:" >&5
10562 sed 's/^/| /' conftest.$ac_ext >&5
10564 ac_header_compiler=no
10566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10567 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10568 echo "${ECHO_T}$ac_header_compiler" >&6
10570 # Is the header present?
10571 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10572 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10573 cat >conftest.$ac_ext <<_ACEOF
10574 /* confdefs.h. */
10575 _ACEOF
10576 cat confdefs.h >>conftest.$ac_ext
10577 cat >>conftest.$ac_ext <<_ACEOF
10578 /* end confdefs.h. */
10579 #include <$ac_header>
10580 _ACEOF
10581 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10582 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10583 ac_status=$?
10584 grep -v '^ *+' conftest.er1 >conftest.err
10585 rm -f conftest.er1
10586 cat conftest.err >&5
10587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10588 (exit $ac_status); } >/dev/null; then
10589 if test -s conftest.err; then
10590 ac_cpp_err=$ac_c_preproc_warn_flag
10591 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10592 else
10593 ac_cpp_err=
10595 else
10596 ac_cpp_err=yes
10598 if test -z "$ac_cpp_err"; then
10599 ac_header_preproc=yes
10600 else
10601 echo "$as_me: failed program was:" >&5
10602 sed 's/^/| /' conftest.$ac_ext >&5
10604 ac_header_preproc=no
10606 rm -f conftest.err conftest.$ac_ext
10607 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10608 echo "${ECHO_T}$ac_header_preproc" >&6
10610 # So? What about this header?
10611 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10612 yes:no: )
10613 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10614 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10615 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10616 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10617 ac_header_preproc=yes
10619 no:yes:* )
10620 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10621 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10622 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10623 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10624 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10625 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10626 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10627 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10628 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10629 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10630 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10631 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10633 cat <<\_ASBOX
10634 ## ------------------------------------------ ##
10635 ## Report this to the AC_PACKAGE_NAME lists. ##
10636 ## ------------------------------------------ ##
10637 _ASBOX
10639 sed "s/^/$as_me: WARNING: /" >&2
10641 esac
10642 echo "$as_me:$LINENO: checking for $ac_header" >&5
10643 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10644 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10645 echo $ECHO_N "(cached) $ECHO_C" >&6
10646 else
10647 eval "$as_ac_Header=\$ac_header_preproc"
10649 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10650 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10653 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10654 cat >>confdefs.h <<_ACEOF
10655 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10656 _ACEOF
10660 done
10663 if test -n "$with_cross_host" &&
10664 test x"$with_cross_host" != x"no"; then
10665 toolexecdir='$(exec_prefix)/$(target_alias)'
10666 toolexeclibdir='$(toolexecdir)/lib'
10667 else
10668 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
10669 toolexeclibdir='$(libdir)'
10671 if test "$GCC" = yes && $CC -print-multi-os-directory > /dev/null 2>&1; then
10672 multiosdir=/`$CC -print-multi-os-directory`
10673 case $multiosdir in
10674 /.) multiosdir= ;; # Avoid trailing /.
10675 esac
10676 else
10677 multiosdir=
10679 toolexeclibdir=${toolexeclibdir}${multiosdir}
10685 if test -n "$with_target_subdir"; then
10686 TARGET_LIBRARY_TRUE=
10687 TARGET_LIBRARY_FALSE='#'
10688 else
10689 TARGET_LIBRARY_TRUE='#'
10690 TARGET_LIBRARY_FALSE=
10694 if test "${multilib}" = "yes"; then
10695 multilib_arg="--enable-multilib"
10696 else
10697 multilib_arg=
10700 ac_config_files="$ac_config_files Makefile"
10702 cat >confcache <<\_ACEOF
10703 # This file is a shell script that caches the results of configure
10704 # tests run on this system so they can be shared between configure
10705 # scripts and configure runs, see configure's option --config-cache.
10706 # It is not useful on other systems. If it contains results you don't
10707 # want to keep, you may remove or edit it.
10709 # config.status only pays attention to the cache file if you give it
10710 # the --recheck option to rerun configure.
10712 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10713 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10714 # following values.
10716 _ACEOF
10718 # The following way of writing the cache mishandles newlines in values,
10719 # but we know of no workaround that is simple, portable, and efficient.
10720 # So, don't put newlines in cache variables' values.
10721 # Ultrix sh set writes to stderr and can't be redirected directly,
10722 # and sets the high bit in the cache file unless we assign to the vars.
10724 (set) 2>&1 |
10725 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10726 *ac_space=\ *)
10727 # `set' does not quote correctly, so add quotes (double-quote
10728 # substitution turns \\\\ into \\, and sed turns \\ into \).
10729 sed -n \
10730 "s/'/'\\\\''/g;
10731 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10734 # `set' quotes correctly as required by POSIX, so do not add quotes.
10735 sed -n \
10736 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10738 esac;
10740 sed '
10741 t clear
10742 : clear
10743 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10744 t end
10745 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10746 : end' >>confcache
10747 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10748 if test -w $cache_file; then
10749 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10750 cat confcache >$cache_file
10751 else
10752 echo "not updating unwritable cache $cache_file"
10755 rm -f confcache
10757 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10758 # Let make expand exec_prefix.
10759 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10761 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10762 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10763 # trailing colons and then remove the whole line if VPATH becomes empty
10764 # (actually we leave an empty line to preserve line numbers).
10765 if test "x$srcdir" = x.; then
10766 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10767 s/:*\$(srcdir):*/:/;
10768 s/:*\${srcdir}:*/:/;
10769 s/:*@srcdir@:*/:/;
10770 s/^\([^=]*=[ ]*\):*/\1/;
10771 s/:*$//;
10772 s/^[^=]*=[ ]*$//;
10776 # Transform confdefs.h into DEFS.
10777 # Protect against shell expansion while executing Makefile rules.
10778 # Protect against Makefile macro expansion.
10780 # If the first sed substitution is executed (which looks for macros that
10781 # take arguments), then we branch to the quote section. Otherwise,
10782 # look for a macro that doesn't take arguments.
10783 cat >confdef2opt.sed <<\_ACEOF
10784 t clear
10785 : clear
10786 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
10787 t quote
10788 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
10789 t quote
10791 : quote
10792 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
10793 s,\[,\\&,g
10794 s,\],\\&,g
10795 s,\$,$$,g
10797 _ACEOF
10798 # We use echo to avoid assuming a particular line-breaking character.
10799 # The extra dot is to prevent the shell from consuming trailing
10800 # line-breaks from the sub-command output. A line-break within
10801 # single-quotes doesn't work because, if this script is created in a
10802 # platform that uses two characters for line-breaks (e.g., DOS), tr
10803 # would break.
10804 ac_LF_and_DOT=`echo; echo .`
10805 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
10806 rm -f confdef2opt.sed
10809 ac_libobjs=
10810 ac_ltlibobjs=
10811 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10812 # 1. Remove the extension, and $U if already installed.
10813 ac_i=`echo "$ac_i" |
10814 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10815 # 2. Add them.
10816 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10817 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10818 done
10819 LIBOBJS=$ac_libobjs
10821 LTLIBOBJS=$ac_ltlibobjs
10824 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10825 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
10826 Usually this means the macro was only invoked conditionally." >&5
10827 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
10828 Usually this means the macro was only invoked conditionally." >&2;}
10829 { (exit 1); exit 1; }; }
10831 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10832 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10833 Usually this means the macro was only invoked conditionally." >&5
10834 echo "$as_me: error: conditional \"AMDEP\" was never defined.
10835 Usually this means the macro was only invoked conditionally." >&2;}
10836 { (exit 1); exit 1; }; }
10838 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10839 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10840 Usually this means the macro was only invoked conditionally." >&5
10841 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10842 Usually this means the macro was only invoked conditionally." >&2;}
10843 { (exit 1); exit 1; }; }
10845 if test -z "${TARGET_LIBRARY_TRUE}" && test -z "${TARGET_LIBRARY_FALSE}"; then
10846 { { echo "$as_me:$LINENO: error: conditional \"TARGET_LIBRARY\" was never defined.
10847 Usually this means the macro was only invoked conditionally." >&5
10848 echo "$as_me: error: conditional \"TARGET_LIBRARY\" was never defined.
10849 Usually this means the macro was only invoked conditionally." >&2;}
10850 { (exit 1); exit 1; }; }
10853 : ${CONFIG_STATUS=./config.status}
10854 ac_clean_files_save=$ac_clean_files
10855 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10856 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10857 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10858 cat >$CONFIG_STATUS <<_ACEOF
10859 #! $SHELL
10860 # Generated by $as_me.
10861 # Run this file to recreate the current configuration.
10862 # Compiler output produced by configure, useful for debugging
10863 # configure, is in config.log if it exists.
10865 debug=false
10866 ac_cs_recheck=false
10867 ac_cs_silent=false
10868 SHELL=\${CONFIG_SHELL-$SHELL}
10869 _ACEOF
10871 cat >>$CONFIG_STATUS <<\_ACEOF
10872 ## --------------------- ##
10873 ## M4sh Initialization. ##
10874 ## --------------------- ##
10876 # Be Bourne compatible
10877 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10878 emulate sh
10879 NULLCMD=:
10880 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10881 # is contrary to our usage. Disable this feature.
10882 alias -g '${1+"$@"}'='"$@"'
10883 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10884 set -o posix
10886 DUALCASE=1; export DUALCASE # for MKS sh
10888 # Support unset when possible.
10889 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10890 as_unset=unset
10891 else
10892 as_unset=false
10896 # Work around bugs in pre-3.0 UWIN ksh.
10897 $as_unset ENV MAIL MAILPATH
10898 PS1='$ '
10899 PS2='> '
10900 PS4='+ '
10902 # NLS nuisances.
10903 for as_var in \
10904 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10905 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10906 LC_TELEPHONE LC_TIME
10908 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10909 eval $as_var=C; export $as_var
10910 else
10911 $as_unset $as_var
10913 done
10915 # Required to use basename.
10916 if expr a : '\(a\)' >/dev/null 2>&1; then
10917 as_expr=expr
10918 else
10919 as_expr=false
10922 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10923 as_basename=basename
10924 else
10925 as_basename=false
10929 # Name of the executable.
10930 as_me=`$as_basename "$0" ||
10931 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10932 X"$0" : 'X\(//\)$' \| \
10933 X"$0" : 'X\(/\)$' \| \
10934 . : '\(.\)' 2>/dev/null ||
10935 echo X/"$0" |
10936 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10937 /^X\/\(\/\/\)$/{ s//\1/; q; }
10938 /^X\/\(\/\).*/{ s//\1/; q; }
10939 s/.*/./; q'`
10942 # PATH needs CR, and LINENO needs CR and PATH.
10943 # Avoid depending upon Character Ranges.
10944 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10945 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10946 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10947 as_cr_digits='0123456789'
10948 as_cr_alnum=$as_cr_Letters$as_cr_digits
10950 # The user is always right.
10951 if test "${PATH_SEPARATOR+set}" != set; then
10952 echo "#! /bin/sh" >conf$$.sh
10953 echo "exit 0" >>conf$$.sh
10954 chmod +x conf$$.sh
10955 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10956 PATH_SEPARATOR=';'
10957 else
10958 PATH_SEPARATOR=:
10960 rm -f conf$$.sh
10964 as_lineno_1=$LINENO
10965 as_lineno_2=$LINENO
10966 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10967 test "x$as_lineno_1" != "x$as_lineno_2" &&
10968 test "x$as_lineno_3" = "x$as_lineno_2" || {
10969 # Find who we are. Look in the path if we contain no path at all
10970 # relative or not.
10971 case $0 in
10972 *[\\/]* ) as_myself=$0 ;;
10973 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10974 for as_dir in $PATH
10976 IFS=$as_save_IFS
10977 test -z "$as_dir" && as_dir=.
10978 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10979 done
10982 esac
10983 # We did not find ourselves, most probably we were run as `sh COMMAND'
10984 # in which case we are not to be found in the path.
10985 if test "x$as_myself" = x; then
10986 as_myself=$0
10988 if test ! -f "$as_myself"; then
10989 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10990 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10991 { (exit 1); exit 1; }; }
10993 case $CONFIG_SHELL in
10995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10996 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10998 IFS=$as_save_IFS
10999 test -z "$as_dir" && as_dir=.
11000 for as_base in sh bash ksh sh5; do
11001 case $as_dir in
11003 if ("$as_dir/$as_base" -c '
11004 as_lineno_1=$LINENO
11005 as_lineno_2=$LINENO
11006 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11007 test "x$as_lineno_1" != "x$as_lineno_2" &&
11008 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11009 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11010 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11011 CONFIG_SHELL=$as_dir/$as_base
11012 export CONFIG_SHELL
11013 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11014 fi;;
11015 esac
11016 done
11017 done
11019 esac
11021 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11022 # uniformly replaced by the line number. The first 'sed' inserts a
11023 # line-number line before each line; the second 'sed' does the real
11024 # work. The second script uses 'N' to pair each line-number line
11025 # with the numbered line, and appends trailing '-' during
11026 # substitution so that $LINENO is not a special case at line end.
11027 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11028 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11029 sed '=' <$as_myself |
11030 sed '
11032 s,$,-,
11033 : loop
11034 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11035 t loop
11036 s,-$,,
11037 s,^['$as_cr_digits']*\n,,
11038 ' >$as_me.lineno &&
11039 chmod +x $as_me.lineno ||
11040 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11041 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11042 { (exit 1); exit 1; }; }
11044 # Don't try to exec as it changes $[0], causing all sort of problems
11045 # (the dirname of $[0] is not the place where we might find the
11046 # original and so on. Autoconf is especially sensible to this).
11047 . ./$as_me.lineno
11048 # Exit status is that of the last command.
11049 exit
11053 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11054 *c*,-n*) ECHO_N= ECHO_C='
11055 ' ECHO_T=' ' ;;
11056 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11057 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11058 esac
11060 if expr a : '\(a\)' >/dev/null 2>&1; then
11061 as_expr=expr
11062 else
11063 as_expr=false
11066 rm -f conf$$ conf$$.exe conf$$.file
11067 echo >conf$$.file
11068 if ln -s conf$$.file conf$$ 2>/dev/null; then
11069 # We could just check for DJGPP; but this test a) works b) is more generic
11070 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11071 if test -f conf$$.exe; then
11072 # Don't use ln at all; we don't have any links
11073 as_ln_s='cp -p'
11074 else
11075 as_ln_s='ln -s'
11077 elif ln conf$$.file conf$$ 2>/dev/null; then
11078 as_ln_s=ln
11079 else
11080 as_ln_s='cp -p'
11082 rm -f conf$$ conf$$.exe conf$$.file
11084 if mkdir -p . 2>/dev/null; then
11085 as_mkdir_p=:
11086 else
11087 test -d ./-p && rmdir ./-p
11088 as_mkdir_p=false
11091 as_executable_p="test -f"
11093 # Sed expression to map a string onto a valid CPP name.
11094 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11096 # Sed expression to map a string onto a valid variable name.
11097 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11100 # IFS
11101 # We need space, tab and new line, in precisely that order.
11102 as_nl='
11104 IFS=" $as_nl"
11106 # CDPATH.
11107 $as_unset CDPATH
11109 exec 6>&1
11111 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11112 # report actual input values of CONFIG_FILES etc. instead of their
11113 # values after options handling. Logging --version etc. is OK.
11114 exec 5>>config.log
11116 echo
11117 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11118 ## Running $as_me. ##
11119 _ASBOX
11120 } >&5
11121 cat >&5 <<_CSEOF
11123 This file was extended by $as_me, which was
11124 generated by GNU Autoconf 2.59. Invocation command line was
11126 CONFIG_FILES = $CONFIG_FILES
11127 CONFIG_HEADERS = $CONFIG_HEADERS
11128 CONFIG_LINKS = $CONFIG_LINKS
11129 CONFIG_COMMANDS = $CONFIG_COMMANDS
11130 $ $0 $@
11132 _CSEOF
11133 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11134 echo >&5
11135 _ACEOF
11137 # Files that config.status was made for.
11138 if test -n "$ac_config_files"; then
11139 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11142 if test -n "$ac_config_headers"; then
11143 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11146 if test -n "$ac_config_links"; then
11147 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11150 if test -n "$ac_config_commands"; then
11151 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11154 cat >>$CONFIG_STATUS <<\_ACEOF
11156 ac_cs_usage="\
11157 \`$as_me' instantiates files from templates according to the
11158 current configuration.
11160 Usage: $0 [OPTIONS] [FILE]...
11162 -h, --help print this help, then exit
11163 -V, --version print version number, then exit
11164 -q, --quiet do not print progress messages
11165 -d, --debug don't remove temporary files
11166 --recheck update $as_me by reconfiguring in the same conditions
11167 --file=FILE[:TEMPLATE]
11168 instantiate the configuration file FILE
11170 Configuration files:
11171 $config_files
11173 Configuration commands:
11174 $config_commands
11176 Report bugs to <bug-autoconf@gnu.org>."
11177 _ACEOF
11179 cat >>$CONFIG_STATUS <<_ACEOF
11180 ac_cs_version="\\
11181 config.status
11182 configured by $0, generated by GNU Autoconf 2.59,
11183 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11185 Copyright (C) 2003 Free Software Foundation, Inc.
11186 This config.status script is free software; the Free Software Foundation
11187 gives unlimited permission to copy, distribute and modify it."
11188 srcdir=$srcdir
11189 INSTALL="$INSTALL"
11190 _ACEOF
11192 cat >>$CONFIG_STATUS <<\_ACEOF
11193 # If no file are specified by the user, then we need to provide default
11194 # value. By we need to know if files were specified by the user.
11195 ac_need_defaults=:
11196 while test $# != 0
11198 case $1 in
11199 --*=*)
11200 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11201 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11202 ac_shift=:
11205 ac_option=$1
11206 ac_optarg=$2
11207 ac_shift=shift
11209 *) # This is not an option, so the user has probably given explicit
11210 # arguments.
11211 ac_option=$1
11212 ac_need_defaults=false;;
11213 esac
11215 case $ac_option in
11216 # Handling of the options.
11217 _ACEOF
11218 cat >>$CONFIG_STATUS <<\_ACEOF
11219 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11220 ac_cs_recheck=: ;;
11221 --version | --vers* | -V )
11222 echo "$ac_cs_version"; exit 0 ;;
11223 --he | --h)
11224 # Conflict between --help and --header
11225 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11226 Try \`$0 --help' for more information." >&5
11227 echo "$as_me: error: ambiguous option: $1
11228 Try \`$0 --help' for more information." >&2;}
11229 { (exit 1); exit 1; }; };;
11230 --help | --hel | -h )
11231 echo "$ac_cs_usage"; exit 0 ;;
11232 --debug | --d* | -d )
11233 debug=: ;;
11234 --file | --fil | --fi | --f )
11235 $ac_shift
11236 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11237 ac_need_defaults=false;;
11238 --header | --heade | --head | --hea )
11239 $ac_shift
11240 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11241 ac_need_defaults=false;;
11242 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11243 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11244 ac_cs_silent=: ;;
11246 # This is an error.
11247 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11248 Try \`$0 --help' for more information." >&5
11249 echo "$as_me: error: unrecognized option: $1
11250 Try \`$0 --help' for more information." >&2;}
11251 { (exit 1); exit 1; }; } ;;
11253 *) ac_config_targets="$ac_config_targets $1" ;;
11255 esac
11256 shift
11257 done
11259 ac_configure_extra_args=
11261 if $ac_cs_silent; then
11262 exec 6>/dev/null
11263 ac_configure_extra_args="$ac_configure_extra_args --silent"
11266 _ACEOF
11267 cat >>$CONFIG_STATUS <<_ACEOF
11268 if \$ac_cs_recheck; then
11269 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11270 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11273 _ACEOF
11275 cat >>$CONFIG_STATUS <<_ACEOF
11277 # INIT-COMMANDS section.
11281 srcdir="$srcdir"
11282 host="$host"
11283 target="$target"
11284 with_multisubdir="$with_multisubdir"
11285 with_multisrctop="$with_multisrctop"
11286 with_target_subdir="$with_target_subdir"
11287 ac_configure_args="${multilib_arg} ${ac_configure_args}"
11288 multi_basedir="$multi_basedir"
11289 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
11290 CC="$CC"
11291 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11294 # The HP-UX ksh and POSIX shell print the target directory to stdout
11295 # if CDPATH is set.
11296 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11298 sed_quote_subst='$sed_quote_subst'
11299 double_quote_subst='$double_quote_subst'
11300 delay_variable_subst='$delay_variable_subst'
11301 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
11302 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
11303 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
11304 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
11305 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
11306 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
11307 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
11308 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
11309 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
11310 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
11311 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
11312 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
11313 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
11314 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
11315 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
11316 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
11317 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
11318 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
11319 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
11320 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
11321 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
11322 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
11323 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
11324 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
11325 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
11326 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
11327 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
11328 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11329 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
11330 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
11331 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
11332 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11333 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
11334 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
11335 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11336 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11337 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11338 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
11339 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11340 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
11341 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
11342 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
11343 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
11344 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"`'
11345 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
11346 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
11347 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
11348 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
11349 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
11350 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
11351 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
11352 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
11353 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
11354 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
11355 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
11356 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11357 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11358 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
11359 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
11360 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11361 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11362 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
11363 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11364 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11365 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11366 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11367 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11368 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11369 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
11370 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11371 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11372 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11373 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
11374 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
11375 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
11376 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
11377 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
11378 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11379 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
11380 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
11381 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
11382 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
11383 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
11384 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11385 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11386 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11387 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11388 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
11389 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
11390 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
11391 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
11392 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
11393 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11394 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11395 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
11396 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11397 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
11398 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11399 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11400 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11401 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11402 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
11403 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
11404 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11405 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11406 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
11407 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
11408 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
11409 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
11410 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
11411 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
11413 LTCC='$LTCC'
11414 LTCFLAGS='$LTCFLAGS'
11415 compiler='$compiler_DEFAULT'
11417 # Quote evaled strings.
11418 for var in SED \
11419 GREP \
11420 EGREP \
11421 FGREP \
11422 LD \
11423 NM \
11424 LN_S \
11425 lt_SP2NL \
11426 lt_NL2SP \
11427 reload_flag \
11428 deplibs_check_method \
11429 file_magic_cmd \
11430 AR \
11431 AR_FLAGS \
11432 STRIP \
11433 RANLIB \
11434 CC \
11435 CFLAGS \
11436 compiler \
11437 lt_cv_sys_global_symbol_pipe \
11438 lt_cv_sys_global_symbol_to_cdecl \
11439 lt_cv_sys_global_symbol_to_c_name_address \
11440 SHELL \
11441 ECHO \
11442 lt_prog_compiler_no_builtin_flag \
11443 lt_prog_compiler_wl \
11444 lt_prog_compiler_pic \
11445 lt_prog_compiler_static \
11446 lt_cv_prog_compiler_c_o \
11447 need_locks \
11448 shrext_cmds \
11449 export_dynamic_flag_spec \
11450 whole_archive_flag_spec \
11451 compiler_needs_object \
11452 with_gnu_ld \
11453 allow_undefined_flag \
11454 no_undefined_flag \
11455 hardcode_libdir_flag_spec \
11456 hardcode_libdir_flag_spec_ld \
11457 hardcode_libdir_separator \
11458 fix_srcfile_path \
11459 exclude_expsyms \
11460 include_expsyms \
11461 file_list_spec \
11462 variables_saved_for_relink \
11463 libname_spec \
11464 library_names_spec \
11465 soname_spec \
11466 finish_eval \
11467 old_striplib \
11468 striplib; do
11469 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
11470 *[\\\\\\\`\\"\\\$]*)
11471 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
11474 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11476 esac
11477 done
11479 # Double-quote double-evaled strings.
11480 for var in reload_cmds \
11481 old_postinstall_cmds \
11482 old_postuninstall_cmds \
11483 old_archive_cmds \
11484 extract_expsyms_cmds \
11485 old_archive_from_new_cmds \
11486 old_archive_from_expsyms_cmds \
11487 archive_cmds \
11488 archive_expsym_cmds \
11489 module_cmds \
11490 module_expsym_cmds \
11491 export_symbols_cmds \
11492 prelink_cmds \
11493 postinstall_cmds \
11494 postuninstall_cmds \
11495 finish_cmds \
11496 sys_lib_search_path_spec \
11497 sys_lib_dlsearch_path_spec; do
11498 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
11499 *[\\\\\\\`\\"\\\$]*)
11500 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
11503 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11505 esac
11506 done
11508 # Fix-up fallback echo if it was mangled by the above quoting rules.
11509 case \$lt_ECHO in
11510 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
11512 esac
11514 ac_aux_dir='$ac_aux_dir'
11515 xsi_shell='$xsi_shell'
11516 lt_shell_append='$lt_shell_append'
11518 # See if we are running on zsh, and set the options which allow our
11519 # commands through without removal of \ escapes INIT.
11520 if test -n "\${ZSH_VERSION+set}" ; then
11521 setopt NO_GLOB_SUBST
11525 PACKAGE='$PACKAGE'
11526 VERSION='$VERSION'
11527 TIMESTAMP='$TIMESTAMP'
11528 RM='$RM'
11529 ofile='$ofile'
11534 _ACEOF
11538 cat >>$CONFIG_STATUS <<\_ACEOF
11539 for ac_config_target in $ac_config_targets
11541 case "$ac_config_target" in
11542 # Handling of arguments.
11543 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11544 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
11545 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11546 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
11547 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11548 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11549 { (exit 1); exit 1; }; };;
11550 esac
11551 done
11553 # If the user did not use the arguments to specify the items to instantiate,
11554 # then the envvar interface is used. Set only those that are not.
11555 # We use the long form for the default assignment because of an extremely
11556 # bizarre bug on SunOS 4.1.3.
11557 if $ac_need_defaults; then
11558 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11559 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11562 # Have a temporary directory for convenience. Make it in the build tree
11563 # simply because there is no reason to put it here, and in addition,
11564 # creating and moving files from /tmp can sometimes cause problems.
11565 # Create a temporary directory, and hook for its removal unless debugging.
11566 $debug ||
11568 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11569 trap '{ (exit 1); exit 1; }' 1 2 13 15
11572 # Create a (secure) tmp directory for tmp files.
11575 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11576 test -n "$tmp" && test -d "$tmp"
11577 } ||
11579 tmp=./confstat$$-$RANDOM
11580 (umask 077 && mkdir $tmp)
11581 } ||
11583 echo "$me: cannot create a temporary directory in ." >&2
11584 { (exit 1); exit 1; }
11587 _ACEOF
11589 cat >>$CONFIG_STATUS <<_ACEOF
11592 # CONFIG_FILES section.
11595 # No need to generate the scripts if there are no CONFIG_FILES.
11596 # This happens for instance when ./config.status config.h
11597 if test -n "\$CONFIG_FILES"; then
11598 # Protect against being on the right side of a sed subst in config.status.
11599 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11600 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11601 s,@SHELL@,$SHELL,;t t
11602 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11603 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11604 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11605 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11606 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11607 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11608 s,@exec_prefix@,$exec_prefix,;t t
11609 s,@prefix@,$prefix,;t t
11610 s,@program_transform_name@,$program_transform_name,;t t
11611 s,@bindir@,$bindir,;t t
11612 s,@sbindir@,$sbindir,;t t
11613 s,@libexecdir@,$libexecdir,;t t
11614 s,@datadir@,$datadir,;t t
11615 s,@sysconfdir@,$sysconfdir,;t t
11616 s,@sharedstatedir@,$sharedstatedir,;t t
11617 s,@localstatedir@,$localstatedir,;t t
11618 s,@libdir@,$libdir,;t t
11619 s,@includedir@,$includedir,;t t
11620 s,@oldincludedir@,$oldincludedir,;t t
11621 s,@infodir@,$infodir,;t t
11622 s,@mandir@,$mandir,;t t
11623 s,@build_alias@,$build_alias,;t t
11624 s,@host_alias@,$host_alias,;t t
11625 s,@target_alias@,$target_alias,;t t
11626 s,@DEFS@,$DEFS,;t t
11627 s,@ECHO_C@,$ECHO_C,;t t
11628 s,@ECHO_N@,$ECHO_N,;t t
11629 s,@ECHO_T@,$ECHO_T,;t t
11630 s,@LIBS@,$LIBS,;t t
11631 s,@multi_basedir@,$multi_basedir,;t t
11632 s,@build@,$build,;t t
11633 s,@build_cpu@,$build_cpu,;t t
11634 s,@build_vendor@,$build_vendor,;t t
11635 s,@build_os@,$build_os,;t t
11636 s,@host@,$host,;t t
11637 s,@host_cpu@,$host_cpu,;t t
11638 s,@host_vendor@,$host_vendor,;t t
11639 s,@host_os@,$host_os,;t t
11640 s,@target@,$target,;t t
11641 s,@target_cpu@,$target_cpu,;t t
11642 s,@target_vendor@,$target_vendor,;t t
11643 s,@target_os@,$target_os,;t t
11644 s,@mkinstalldirs@,$mkinstalldirs,;t t
11645 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11646 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11647 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11648 s,@CYGPATH_W@,$CYGPATH_W,;t t
11649 s,@PACKAGE@,$PACKAGE,;t t
11650 s,@VERSION@,$VERSION,;t t
11651 s,@ACLOCAL@,$ACLOCAL,;t t
11652 s,@AUTOCONF@,$AUTOCONF,;t t
11653 s,@AUTOMAKE@,$AUTOMAKE,;t t
11654 s,@AUTOHEADER@,$AUTOHEADER,;t t
11655 s,@MAKEINFO@,$MAKEINFO,;t t
11656 s,@install_sh@,$install_sh,;t t
11657 s,@STRIP@,$STRIP,;t t
11658 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11659 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
11660 s,@mkdir_p@,$mkdir_p,;t t
11661 s,@AWK@,$AWK,;t t
11662 s,@SET_MAKE@,$SET_MAKE,;t t
11663 s,@am__leading_dot@,$am__leading_dot,;t t
11664 s,@AMTAR@,$AMTAR,;t t
11665 s,@am__tar@,$am__tar,;t t
11666 s,@am__untar@,$am__untar,;t t
11667 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
11668 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
11669 s,@MAINT@,$MAINT,;t t
11670 s,@COMPPATH@,$COMPPATH,;t t
11671 s,@CC@,$CC,;t t
11672 s,@ac_ct_CC@,$ac_ct_CC,;t t
11673 s,@EXEEXT@,$EXEEXT,;t t
11674 s,@OBJEXT@,$OBJEXT,;t t
11675 s,@DEPDIR@,$DEPDIR,;t t
11676 s,@am__include@,$am__include,;t t
11677 s,@am__quote@,$am__quote,;t t
11678 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
11679 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
11680 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
11681 s,@CCDEPMODE@,$CCDEPMODE,;t t
11682 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
11683 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
11684 s,@CFLAGS@,$CFLAGS,;t t
11685 s,@LIBTOOL@,$LIBTOOL,;t t
11686 s,@SED@,$SED,;t t
11687 s,@EGREP@,$EGREP,;t t
11688 s,@FGREP@,$FGREP,;t t
11689 s,@GREP@,$GREP,;t t
11690 s,@LD@,$LD,;t t
11691 s,@DUMPBIN@,$DUMPBIN,;t t
11692 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
11693 s,@NM@,$NM,;t t
11694 s,@LN_S@,$LN_S,;t t
11695 s,@AR@,$AR,;t t
11696 s,@ac_ct_AR@,$ac_ct_AR,;t t
11697 s,@RANLIB@,$RANLIB,;t t
11698 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11699 s,@lt_ECHO@,$lt_ECHO,;t t
11700 s,@CPP@,$CPP,;t t
11701 s,@CPPFLAGS@,$CPPFLAGS,;t t
11702 s,@target_all@,$target_all,;t t
11703 s,@toolexecdir@,$toolexecdir,;t t
11704 s,@toolexeclibdir@,$toolexeclibdir,;t t
11705 s,@TARGET_LIBRARY_TRUE@,$TARGET_LIBRARY_TRUE,;t t
11706 s,@TARGET_LIBRARY_FALSE@,$TARGET_LIBRARY_FALSE,;t t
11707 s,@LIBOBJS@,$LIBOBJS,;t t
11708 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11709 CEOF
11711 _ACEOF
11713 cat >>$CONFIG_STATUS <<\_ACEOF
11714 # Split the substitutions into bite-sized pieces for seds with
11715 # small command number limits, like on Digital OSF/1 and HP-UX.
11716 ac_max_sed_lines=48
11717 ac_sed_frag=1 # Number of current file.
11718 ac_beg=1 # First line for current file.
11719 ac_end=$ac_max_sed_lines # Line after last line for current file.
11720 ac_more_lines=:
11721 ac_sed_cmds=
11722 while $ac_more_lines; do
11723 if test $ac_beg -gt 1; then
11724 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11725 else
11726 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11728 if test ! -s $tmp/subs.frag; then
11729 ac_more_lines=false
11730 else
11731 # The purpose of the label and of the branching condition is to
11732 # speed up the sed processing (if there are no `@' at all, there
11733 # is no need to browse any of the substitutions).
11734 # These are the two extra sed commands mentioned above.
11735 (echo ':t
11736 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11737 if test -z "$ac_sed_cmds"; then
11738 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11739 else
11740 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11742 ac_sed_frag=`expr $ac_sed_frag + 1`
11743 ac_beg=$ac_end
11744 ac_end=`expr $ac_end + $ac_max_sed_lines`
11746 done
11747 if test -z "$ac_sed_cmds"; then
11748 ac_sed_cmds=cat
11750 fi # test -n "$CONFIG_FILES"
11752 _ACEOF
11753 cat >>$CONFIG_STATUS <<\_ACEOF
11754 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11755 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11756 case $ac_file in
11757 - | *:- | *:-:* ) # input from stdin
11758 cat >$tmp/stdin
11759 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11760 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11761 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11762 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11763 * ) ac_file_in=$ac_file.in ;;
11764 esac
11766 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11767 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11768 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11769 X"$ac_file" : 'X\(//\)[^/]' \| \
11770 X"$ac_file" : 'X\(//\)$' \| \
11771 X"$ac_file" : 'X\(/\)' \| \
11772 . : '\(.\)' 2>/dev/null ||
11773 echo X"$ac_file" |
11774 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11775 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11776 /^X\(\/\/\)$/{ s//\1/; q; }
11777 /^X\(\/\).*/{ s//\1/; q; }
11778 s/.*/./; q'`
11779 { if $as_mkdir_p; then
11780 mkdir -p "$ac_dir"
11781 else
11782 as_dir="$ac_dir"
11783 as_dirs=
11784 while test ! -d "$as_dir"; do
11785 as_dirs="$as_dir $as_dirs"
11786 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11787 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11788 X"$as_dir" : 'X\(//\)[^/]' \| \
11789 X"$as_dir" : 'X\(//\)$' \| \
11790 X"$as_dir" : 'X\(/\)' \| \
11791 . : '\(.\)' 2>/dev/null ||
11792 echo X"$as_dir" |
11793 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11794 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11795 /^X\(\/\/\)$/{ s//\1/; q; }
11796 /^X\(\/\).*/{ s//\1/; q; }
11797 s/.*/./; q'`
11798 done
11799 test ! -n "$as_dirs" || mkdir $as_dirs
11800 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11801 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11802 { (exit 1); exit 1; }; }; }
11804 ac_builddir=.
11806 if test "$ac_dir" != .; then
11807 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11808 # A "../" for each directory in $ac_dir_suffix.
11809 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11810 else
11811 ac_dir_suffix= ac_top_builddir=
11814 case $srcdir in
11815 .) # No --srcdir option. We are building in place.
11816 ac_srcdir=.
11817 if test -z "$ac_top_builddir"; then
11818 ac_top_srcdir=.
11819 else
11820 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11821 fi ;;
11822 [\\/]* | ?:[\\/]* ) # Absolute path.
11823 ac_srcdir=$srcdir$ac_dir_suffix;
11824 ac_top_srcdir=$srcdir ;;
11825 *) # Relative path.
11826 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11827 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11828 esac
11830 # Do not use `cd foo && pwd` to compute absolute paths, because
11831 # the directories may not exist.
11832 case `pwd` in
11833 .) ac_abs_builddir="$ac_dir";;
11835 case "$ac_dir" in
11836 .) ac_abs_builddir=`pwd`;;
11837 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11838 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11839 esac;;
11840 esac
11841 case $ac_abs_builddir in
11842 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11844 case ${ac_top_builddir}. in
11845 .) ac_abs_top_builddir=$ac_abs_builddir;;
11846 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11847 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11848 esac;;
11849 esac
11850 case $ac_abs_builddir in
11851 .) ac_abs_srcdir=$ac_srcdir;;
11853 case $ac_srcdir in
11854 .) ac_abs_srcdir=$ac_abs_builddir;;
11855 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11856 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11857 esac;;
11858 esac
11859 case $ac_abs_builddir in
11860 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11862 case $ac_top_srcdir in
11863 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11864 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11865 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11866 esac;;
11867 esac
11870 case $INSTALL in
11871 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11872 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11873 esac
11875 if test x"$ac_file" != x-; then
11876 { echo "$as_me:$LINENO: creating $ac_file" >&5
11877 echo "$as_me: creating $ac_file" >&6;}
11878 rm -f "$ac_file"
11880 # Let's still pretend it is `configure' which instantiates (i.e., don't
11881 # use $as_me), people would be surprised to read:
11882 # /* config.h. Generated by config.status. */
11883 if test x"$ac_file" = x-; then
11884 configure_input=
11885 else
11886 configure_input="$ac_file. "
11888 configure_input=$configure_input"Generated from `echo $ac_file_in |
11889 sed 's,.*/,,'` by configure."
11891 # First look for the input files in the build tree, otherwise in the
11892 # src tree.
11893 ac_file_inputs=`IFS=:
11894 for f in $ac_file_in; do
11895 case $f in
11896 -) echo $tmp/stdin ;;
11897 [\\/$]*)
11898 # Absolute (can't be DOS-style, as IFS=:)
11899 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11900 echo "$as_me: error: cannot find input file: $f" >&2;}
11901 { (exit 1); exit 1; }; }
11902 echo "$f";;
11903 *) # Relative
11904 if test -f "$f"; then
11905 # Build tree
11906 echo "$f"
11907 elif test -f "$srcdir/$f"; then
11908 # Source tree
11909 echo "$srcdir/$f"
11910 else
11911 # /dev/null tree
11912 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11913 echo "$as_me: error: cannot find input file: $f" >&2;}
11914 { (exit 1); exit 1; }; }
11915 fi;;
11916 esac
11917 done` || { (exit 1); exit 1; }
11918 _ACEOF
11919 cat >>$CONFIG_STATUS <<_ACEOF
11920 sed "$ac_vpsub
11921 $extrasub
11922 _ACEOF
11923 cat >>$CONFIG_STATUS <<\_ACEOF
11925 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11926 s,@configure_input@,$configure_input,;t t
11927 s,@srcdir@,$ac_srcdir,;t t
11928 s,@abs_srcdir@,$ac_abs_srcdir,;t t
11929 s,@top_srcdir@,$ac_top_srcdir,;t t
11930 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11931 s,@builddir@,$ac_builddir,;t t
11932 s,@abs_builddir@,$ac_abs_builddir,;t t
11933 s,@top_builddir@,$ac_top_builddir,;t t
11934 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11935 s,@INSTALL@,$ac_INSTALL,;t t
11936 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11937 rm -f $tmp/stdin
11938 if test x"$ac_file" != x-; then
11939 mv $tmp/out $ac_file
11940 else
11941 cat $tmp/out
11942 rm -f $tmp/out
11945 done
11946 _ACEOF
11947 cat >>$CONFIG_STATUS <<\_ACEOF
11950 # CONFIG_COMMANDS section.
11952 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
11953 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
11954 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
11955 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
11956 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11957 X"$ac_dest" : 'X\(//\)[^/]' \| \
11958 X"$ac_dest" : 'X\(//\)$' \| \
11959 X"$ac_dest" : 'X\(/\)' \| \
11960 . : '\(.\)' 2>/dev/null ||
11961 echo X"$ac_dest" |
11962 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11963 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11964 /^X\(\/\/\)$/{ s//\1/; q; }
11965 /^X\(\/\).*/{ s//\1/; q; }
11966 s/.*/./; q'`
11967 { if $as_mkdir_p; then
11968 mkdir -p "$ac_dir"
11969 else
11970 as_dir="$ac_dir"
11971 as_dirs=
11972 while test ! -d "$as_dir"; do
11973 as_dirs="$as_dir $as_dirs"
11974 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11975 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11976 X"$as_dir" : 'X\(//\)[^/]' \| \
11977 X"$as_dir" : 'X\(//\)$' \| \
11978 X"$as_dir" : 'X\(/\)' \| \
11979 . : '\(.\)' 2>/dev/null ||
11980 echo X"$as_dir" |
11981 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11982 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11983 /^X\(\/\/\)$/{ s//\1/; q; }
11984 /^X\(\/\).*/{ s//\1/; q; }
11985 s/.*/./; q'`
11986 done
11987 test ! -n "$as_dirs" || mkdir $as_dirs
11988 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11989 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11990 { (exit 1); exit 1; }; }; }
11992 ac_builddir=.
11994 if test "$ac_dir" != .; then
11995 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11996 # A "../" for each directory in $ac_dir_suffix.
11997 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11998 else
11999 ac_dir_suffix= ac_top_builddir=
12002 case $srcdir in
12003 .) # No --srcdir option. We are building in place.
12004 ac_srcdir=.
12005 if test -z "$ac_top_builddir"; then
12006 ac_top_srcdir=.
12007 else
12008 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12009 fi ;;
12010 [\\/]* | ?:[\\/]* ) # Absolute path.
12011 ac_srcdir=$srcdir$ac_dir_suffix;
12012 ac_top_srcdir=$srcdir ;;
12013 *) # Relative path.
12014 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12015 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12016 esac
12018 # Do not use `cd foo && pwd` to compute absolute paths, because
12019 # the directories may not exist.
12020 case `pwd` in
12021 .) ac_abs_builddir="$ac_dir";;
12023 case "$ac_dir" in
12024 .) ac_abs_builddir=`pwd`;;
12025 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12026 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12027 esac;;
12028 esac
12029 case $ac_abs_builddir in
12030 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12032 case ${ac_top_builddir}. in
12033 .) ac_abs_top_builddir=$ac_abs_builddir;;
12034 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12035 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12036 esac;;
12037 esac
12038 case $ac_abs_builddir in
12039 .) ac_abs_srcdir=$ac_srcdir;;
12041 case $ac_srcdir in
12042 .) ac_abs_srcdir=$ac_abs_builddir;;
12043 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12044 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12045 esac;;
12046 esac
12047 case $ac_abs_builddir in
12048 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12050 case $ac_top_srcdir in
12051 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12052 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12053 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12054 esac;;
12055 esac
12058 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12059 echo "$as_me: executing $ac_dest commands" >&6;}
12060 case $ac_dest in
12061 default-1 )
12062 # Only add multilib support code if we just rebuilt the top-level
12063 # Makefile.
12064 case " $CONFIG_FILES " in
12065 *" Makefile "*)
12066 ac_file=Makefile . ${multi_basedir}/config-ml.in
12068 esac ;;
12069 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12070 # Strip MF so we end up with the name of the file.
12071 mf=`echo "$mf" | sed -e 's/:.*$//'`
12072 # Check whether this is an Automake generated Makefile or not.
12073 # We used to match only the files named `Makefile.in', but
12074 # some people rename them; so instead we look at the file content.
12075 # Grep'ing the first line is not enough: some people post-process
12076 # each Makefile.in and add a new line on top of each file to say so.
12077 # So let's grep whole file.
12078 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12079 dirpart=`(dirname "$mf") 2>/dev/null ||
12080 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12081 X"$mf" : 'X\(//\)[^/]' \| \
12082 X"$mf" : 'X\(//\)$' \| \
12083 X"$mf" : 'X\(/\)' \| \
12084 . : '\(.\)' 2>/dev/null ||
12085 echo X"$mf" |
12086 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12087 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12088 /^X\(\/\/\)$/{ s//\1/; q; }
12089 /^X\(\/\).*/{ s//\1/; q; }
12090 s/.*/./; q'`
12091 else
12092 continue
12094 # Extract the definition of DEPDIR, am__include, and am__quote
12095 # from the Makefile without running `make'.
12096 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12097 test -z "$DEPDIR" && continue
12098 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12099 test -z "am__include" && continue
12100 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12101 # When using ansi2knr, U may be empty or an underscore; expand it
12102 U=`sed -n 's/^U = //p' < "$mf"`
12103 # Find all dependency output files, they are included files with
12104 # $(DEPDIR) in their names. We invoke sed twice because it is the
12105 # simplest approach to changing $(DEPDIR) to its actual value in the
12106 # expansion.
12107 for file in `sed -n "
12108 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12109 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12110 # Make sure the directory exists.
12111 test -f "$dirpart/$file" && continue
12112 fdir=`(dirname "$file") 2>/dev/null ||
12113 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12114 X"$file" : 'X\(//\)[^/]' \| \
12115 X"$file" : 'X\(//\)$' \| \
12116 X"$file" : 'X\(/\)' \| \
12117 . : '\(.\)' 2>/dev/null ||
12118 echo X"$file" |
12119 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12120 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12121 /^X\(\/\/\)$/{ s//\1/; q; }
12122 /^X\(\/\).*/{ s//\1/; q; }
12123 s/.*/./; q'`
12124 { if $as_mkdir_p; then
12125 mkdir -p $dirpart/$fdir
12126 else
12127 as_dir=$dirpart/$fdir
12128 as_dirs=
12129 while test ! -d "$as_dir"; do
12130 as_dirs="$as_dir $as_dirs"
12131 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12132 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12133 X"$as_dir" : 'X\(//\)[^/]' \| \
12134 X"$as_dir" : 'X\(//\)$' \| \
12135 X"$as_dir" : 'X\(/\)' \| \
12136 . : '\(.\)' 2>/dev/null ||
12137 echo X"$as_dir" |
12138 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12139 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12140 /^X\(\/\/\)$/{ s//\1/; q; }
12141 /^X\(\/\).*/{ s//\1/; q; }
12142 s/.*/./; q'`
12143 done
12144 test ! -n "$as_dirs" || mkdir $as_dirs
12145 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
12146 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
12147 { (exit 1); exit 1; }; }; }
12149 # echo "creating $dirpart/$file"
12150 echo '# dummy' > "$dirpart/$file"
12151 done
12152 done
12154 libtool )
12156 # See if we are running on zsh, and set the options which allow our
12157 # commands through without removal of \ escapes.
12158 if test -n "${ZSH_VERSION+set}" ; then
12159 setopt NO_GLOB_SUBST
12162 cfgfile="${ofile}T"
12163 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12164 $RM "$cfgfile"
12166 cat <<_LT_EOF >> "$cfgfile"
12167 #! $SHELL
12169 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12170 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
12171 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12172 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12174 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12175 # 2006, 2007 Free Software Foundation, Inc.
12177 # This file is part of GNU Libtool:
12178 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
12180 # This program is free software; you can redistribute it and/or modify
12181 # it under the terms of the GNU General Public License as published by
12182 # the Free Software Foundation; either version 2 of the License, or
12183 # (at your option) any later version.
12185 # This program is distributed in the hope that it will be useful, but
12186 # WITHOUT ANY WARRANTY; without even the implied warranty of
12187 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12188 # General Public License for more details.
12190 # You should have received a copy of the GNU General Public License
12191 # along with this program; if not, a copy can be downloaded from
12192 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
12193 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
12194 # MA 02110-1301, USA.
12196 # As a special exception to the GNU General Public License, if you
12197 # distribute this file as part of a program that contains a
12198 # configuration script generated by Autoconf, you may include it under
12199 # the same distribution terms that you use for the rest of that program.
12202 # The names of the tagged configurations supported by this script.
12203 available_tags=""
12205 # ### BEGIN LIBTOOL CONFIG
12207 # Which release of libtool.m4 was used?
12208 macro_version=$macro_version
12209 macro_revision=$macro_revision
12211 # Whether or not to build shared libraries.
12212 build_libtool_libs=$enable_shared
12214 # Whether or not to build static libraries.
12215 build_old_libs=$enable_static
12217 # What type of objects to build.
12218 pic_mode=$pic_mode
12220 # Whether or not to optimize for fast installation.
12221 fast_install=$enable_fast_install
12223 # The host system.
12224 host_alias=$host_alias
12225 host=$host
12226 host_os=$host_os
12228 # The build system.
12229 build_alias=$build_alias
12230 build=$build
12231 build_os=$build_os
12233 # A sed program that does not truncate output.
12234 SED=$lt_SED
12236 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12237 Xsed="\$SED -e 1s/^X//"
12239 # A grep program that handles long lines.
12240 GREP=$lt_GREP
12242 # An ERE matcher.
12243 EGREP=$lt_EGREP
12245 # A literal string matcher.
12246 FGREP=$lt_FGREP
12248 # A BSD- or MS-compatible name lister.
12249 NM=$lt_NM
12251 # Whether we need soft or hard links.
12252 LN_S=$lt_LN_S
12254 # What is the maximum length of a command?
12255 max_cmd_len=$max_cmd_len
12257 # Object file suffix (normally "o").
12258 objext=$ac_objext
12260 # Executable file suffix (normally "").
12261 exeext=$exeext
12263 # whether the shell understands "unset".
12264 lt_unset=$lt_unset
12266 # turn spaces into newlines.
12267 SP2NL=$lt_lt_SP2NL
12269 # turn newlines into spaces.
12270 NL2SP=$lt_lt_NL2SP
12272 # How to create reloadable object files.
12273 reload_flag=$lt_reload_flag
12274 reload_cmds=$lt_reload_cmds
12276 # Method to check whether dependent libraries are shared objects.
12277 deplibs_check_method=$lt_deplibs_check_method
12279 # Command to use when deplibs_check_method == "file_magic".
12280 file_magic_cmd=$lt_file_magic_cmd
12282 # The archiver.
12283 AR=$lt_AR
12284 AR_FLAGS=$lt_AR_FLAGS
12286 # A symbol stripping program.
12287 STRIP=$lt_STRIP
12289 # Commands used to install an old-style archive.
12290 RANLIB=$lt_RANLIB
12291 old_postinstall_cmds=$lt_old_postinstall_cmds
12292 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12294 # A C compiler.
12295 LTCC=$lt_CC
12297 # LTCC compiler flags.
12298 LTCFLAGS=$lt_CFLAGS
12300 # Take the output of nm and produce a listing of raw symbols and C names.
12301 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12303 # Transform the output of nm in a proper C declaration.
12304 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12306 # Transform the output of nm in a C name address pair.
12307 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12309 # The name of the directory that contains temporary libtool files.
12310 objdir=$objdir
12312 # Shell to use when invoking shell scripts.
12313 SHELL=$lt_SHELL
12315 # An echo program that does not interpret backslashes.
12316 ECHO=$lt_ECHO
12318 # Used to examine libraries when file_magic_cmd begins with "file".
12319 MAGIC_CMD=$MAGIC_CMD
12321 # Must we lock files when doing compilation?
12322 need_locks=$lt_need_locks
12324 # Old archive suffix (normally "a").
12325 libext=$libext
12327 # Shared library suffix (normally ".so").
12328 shrext_cmds=$lt_shrext_cmds
12330 # The commands to extract the exported symbol list from a shared archive.
12331 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12333 # Variables whose values should be saved in libtool wrapper scripts and
12334 # restored at link time.
12335 variables_saved_for_relink=$lt_variables_saved_for_relink
12337 # Do we need the "lib" prefix for modules?
12338 need_lib_prefix=$need_lib_prefix
12340 # Do we need a version for libraries?
12341 need_version=$need_version
12343 # Library versioning type.
12344 version_type=$version_type
12346 # Shared library runtime path variable.
12347 runpath_var=$runpath_var
12349 # Shared library path variable.
12350 shlibpath_var=$shlibpath_var
12352 # Is shlibpath searched before the hard-coded library search path?
12353 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12355 # Format of library name prefix.
12356 libname_spec=$lt_libname_spec
12358 # List of archive names. First name is the real one, the rest are links.
12359 # The last name is the one that the linker finds with -lNAME
12360 library_names_spec=$lt_library_names_spec
12362 # The coded name of the library, if different from the real name.
12363 soname_spec=$lt_soname_spec
12365 # Command to use after installation of a shared archive.
12366 postinstall_cmds=$lt_postinstall_cmds
12368 # Command to use after uninstallation of a shared archive.
12369 postuninstall_cmds=$lt_postuninstall_cmds
12371 # Commands used to finish a libtool library installation in a directory.
12372 finish_cmds=$lt_finish_cmds
12374 # As "finish_cmds", except a single script fragment to be evaled but
12375 # not shown.
12376 finish_eval=$lt_finish_eval
12378 # Whether we should hardcode library paths into libraries.
12379 hardcode_into_libs=$hardcode_into_libs
12381 # Compile-time system search path for libraries.
12382 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12384 # Run-time system search path for libraries.
12385 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12387 # Whether dlopen is supported.
12388 dlopen_support=$enable_dlopen
12390 # Whether dlopen of programs is supported.
12391 dlopen_self=$enable_dlopen_self
12393 # Whether dlopen of statically linked programs is supported.
12394 dlopen_self_static=$enable_dlopen_self_static
12396 # Commands to strip libraries.
12397 old_striplib=$lt_old_striplib
12398 striplib=$lt_striplib
12401 # The linker used to build libraries.
12402 LD=$lt_LD
12404 # Commands used to build an old-style archive.
12405 old_archive_cmds=$lt_old_archive_cmds
12407 # A language specific compiler.
12408 CC=$lt_compiler
12410 # Is the compiler the GNU compiler?
12411 with_gcc=$GCC
12413 # Compiler flag to turn off builtin functions.
12414 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12416 # How to pass a linker flag through the compiler.
12417 wl=$lt_lt_prog_compiler_wl
12419 # Additional compiler flags for building library objects.
12420 pic_flag=$lt_lt_prog_compiler_pic
12422 # Compiler flag to prevent dynamic linking.
12423 link_static_flag=$lt_lt_prog_compiler_static
12425 # Does compiler simultaneously support -c and -o options?
12426 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12428 # Whether or not to add -lc for building shared libraries.
12429 build_libtool_need_lc=$archive_cmds_need_lc
12431 # Whether or not to disallow shared libs when runtime libs are static.
12432 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12434 # Compiler flag to allow reflexive dlopens.
12435 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12437 # Compiler flag to generate shared objects directly from archives.
12438 whole_archive_flag_spec=$lt_whole_archive_flag_spec
12440 # Whether the compiler copes with passing no objects directly.
12441 compiler_needs_object=$lt_compiler_needs_object
12443 # Create an old-style archive from a shared archive.
12444 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12446 # Create a temporary old-style archive to link instead of a shared archive.
12447 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12449 # Commands used to build a shared archive.
12450 archive_cmds=$lt_archive_cmds
12451 archive_expsym_cmds=$lt_archive_expsym_cmds
12453 # Commands used to build a loadable module if different from building
12454 # a shared archive.
12455 module_cmds=$lt_module_cmds
12456 module_expsym_cmds=$lt_module_expsym_cmds
12458 # Whether we are building with GNU ld or not.
12459 with_gnu_ld=$lt_with_gnu_ld
12461 # Flag that allows shared libraries with undefined symbols to be built.
12462 allow_undefined_flag=$lt_allow_undefined_flag
12464 # Flag that enforces no undefined symbols.
12465 no_undefined_flag=$lt_no_undefined_flag
12467 # Flag to hardcode \$libdir into a binary during linking.
12468 # This must work even if \$libdir does not exist
12469 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12471 # If ld is used when linking, flag to hardcode \$libdir into a binary
12472 # during linking. This must work even if \$libdir does not exist.
12473 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12475 # Whether we need a single "-rpath" flag with a separated argument.
12476 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12478 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12479 # DIR into the resulting binary.
12480 hardcode_direct=$hardcode_direct
12482 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12483 # DIR into the resulting binary and the resulting library dependency is
12484 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
12485 # library is relocated.
12486 hardcode_direct_absolute=$hardcode_direct_absolute
12488 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
12489 # into the resulting binary.
12490 hardcode_minus_L=$hardcode_minus_L
12492 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
12493 # into the resulting binary.
12494 hardcode_shlibpath_var=$hardcode_shlibpath_var
12496 # Set to "yes" if building a shared library automatically hardcodes DIR
12497 # into the library and all subsequent libraries and executables linked
12498 # against it.
12499 hardcode_automatic=$hardcode_automatic
12501 # Set to yes if linker adds runtime paths of dependent libraries
12502 # to runtime path list.
12503 inherit_rpath=$inherit_rpath
12505 # Whether libtool must link a program against all its dependency libraries.
12506 link_all_deplibs=$link_all_deplibs
12508 # Fix the shell variable \$srcfile for the compiler.
12509 fix_srcfile_path=$lt_fix_srcfile_path
12511 # Set to "yes" if exported symbols are required.
12512 always_export_symbols=$always_export_symbols
12514 # The commands to list exported symbols.
12515 export_symbols_cmds=$lt_export_symbols_cmds
12517 # Symbols that should not be listed in the preloaded symbols.
12518 exclude_expsyms=$lt_exclude_expsyms
12520 # Symbols that must always be exported.
12521 include_expsyms=$lt_include_expsyms
12523 # Commands necessary for linking programs (against libraries) with templates.
12524 prelink_cmds=$lt_prelink_cmds
12526 # Specify filename containing input files.
12527 file_list_spec=$lt_file_list_spec
12529 # How to hardcode a shared library path into an executable.
12530 hardcode_action=$hardcode_action
12532 # ### END LIBTOOL CONFIG
12534 _LT_EOF
12536 case $host_os in
12537 aix3*)
12538 cat <<\_LT_EOF >> "$cfgfile"
12539 # AIX sometimes has problems with the GCC collect2 program. For some
12540 # reason, if we set the COLLECT_NAMES environment variable, the problems
12541 # vanish in a puff of smoke.
12542 if test "X${COLLECT_NAMES+set}" != Xset; then
12543 COLLECT_NAMES=
12544 export COLLECT_NAMES
12546 _LT_EOF
12548 esac
12551 ltmain="$ac_aux_dir/ltmain.sh"
12554 # We use sed instead of cat because bash on DJGPP gets confused if
12555 # if finds mixed CR/LF and LF-only lines. Since sed operates in
12556 # text mode, it properly converts lines to CR/LF. This bash problem
12557 # is reportedly fixed, but why not run on old versions too?
12558 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
12559 || (rm -f "$cfgfile"; exit 1)
12561 case $xsi_shell in
12562 yes)
12563 cat << \_LT_EOF >> "$cfgfile"
12564 # func_dirname file append nondir_replacement
12565 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
12566 # otherwise set result to NONDIR_REPLACEMENT.
12567 func_dirname ()
12569 case ${1} in
12570 */*) func_dirname_result="${1%/*}${2}" ;;
12571 * ) func_dirname_result="${3}" ;;
12572 esac
12575 # func_basename file
12576 func_basename ()
12578 func_basename_result="${1##*/}"
12581 # func_stripname prefix suffix name
12582 # strip PREFIX and SUFFIX off of NAME.
12583 # PREFIX and SUFFIX must not contain globbing or regex special
12584 # characters, hashes, percent signs, but SUFFIX may contain a leading
12585 # dot (in which case that matches only a dot).
12586 func_stripname ()
12588 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
12589 # positional parameters, so assign one to ordinary parameter first.
12590 func_stripname_result=${3}
12591 func_stripname_result=${func_stripname_result#"${1}"}
12592 func_stripname_result=${func_stripname_result%"${2}"}
12595 # func_opt_split
12596 func_opt_split ()
12598 func_opt_split_opt=${1%%=*}
12599 func_opt_split_arg=${1#*=}
12602 # func_lo2o object
12603 func_lo2o ()
12605 case ${1} in
12606 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
12607 *) func_lo2o_result=${1} ;;
12608 esac
12610 _LT_EOF
12612 *) # Bourne compatible functions.
12613 cat << \_LT_EOF >> "$cfgfile"
12614 # func_dirname file append nondir_replacement
12615 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
12616 # otherwise set result to NONDIR_REPLACEMENT.
12617 func_dirname ()
12619 # Extract subdirectory from the argument.
12620 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
12621 if test "X$func_dirname_result" = "X${1}"; then
12622 func_dirname_result="${3}"
12623 else
12624 func_dirname_result="$func_dirname_result${2}"
12628 # func_basename file
12629 func_basename ()
12631 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
12634 # func_stripname prefix suffix name
12635 # strip PREFIX and SUFFIX off of NAME.
12636 # PREFIX and SUFFIX must not contain globbing or regex special
12637 # characters, hashes, percent signs, but SUFFIX may contain a leading
12638 # dot (in which case that matches only a dot).
12639 # func_strip_suffix prefix name
12640 func_stripname ()
12642 case ${2} in
12643 .*) func_stripname_result=`$ECHO "X${3}" \
12644 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
12645 *) func_stripname_result=`$ECHO "X${3}" \
12646 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
12647 esac
12650 # sed scripts:
12651 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
12652 my_sed_long_arg='1s/^-[^=]*=//'
12654 # func_opt_split
12655 func_opt_split ()
12657 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
12658 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
12661 # func_lo2o object
12662 func_lo2o ()
12664 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
12666 _LT_EOF
12667 esac
12669 case $lt_shell_append in
12670 yes)
12671 cat << \_LT_EOF >> "$cfgfile"
12673 # func_append var value
12674 # Append VALUE to the end of shell variable VAR.
12675 func_append ()
12677 eval "$1+=\$2"
12679 _LT_EOF
12682 cat << \_LT_EOF >> "$cfgfile"
12684 # func_append var value
12685 # Append VALUE to the end of shell variable VAR.
12686 func_append ()
12688 eval "$1=\$$1\$2"
12690 _LT_EOF
12692 esac
12695 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
12696 || (rm -f "$cfgfile"; exit 1)
12698 mv -f "$cfgfile" "$ofile" ||
12699 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12700 chmod +x "$ofile"
12703 esac
12704 done
12705 _ACEOF
12707 cat >>$CONFIG_STATUS <<\_ACEOF
12709 { (exit 0); exit 0; }
12710 _ACEOF
12711 chmod +x $CONFIG_STATUS
12712 ac_clean_files=$ac_clean_files_save
12715 # configure is writing to config.log, and then calls config.status.
12716 # config.status does its own redirection, appending to config.log.
12717 # Unfortunately, on DOS this fails, as config.log is still kept open
12718 # by configure, so config.status won't be able to write to it; its
12719 # output is simply discarded. So we exec the FD to /dev/null,
12720 # effectively closing config.log, so it can be properly (re)opened and
12721 # appended to by config.status. When coming back to configure, we
12722 # need to make the FD available again.
12723 if test "$no_create" != yes; then
12724 ac_cs_success=:
12725 ac_config_status_args=
12726 test "$silent" = yes &&
12727 ac_config_status_args="$ac_config_status_args --quiet"
12728 exec 5>/dev/null
12729 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12730 exec 5>>config.log
12731 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12732 # would make configure fail if this is the last instruction.
12733 $ac_cs_success || { (exit 1); exit 1; }