Fix ChangeLog entry date.
[official-gcc.git] / zlib / configure
blobac43a9212e0a563f1fc75ba93d373954c8127af6
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 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1630 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1631 if test -z "$INSTALL"; then
1632 if test "${ac_cv_path_install+set}" = set; then
1633 echo $ECHO_N "(cached) $ECHO_C" >&6
1634 else
1635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1636 for as_dir in $PATH
1638 IFS=$as_save_IFS
1639 test -z "$as_dir" && as_dir=.
1640 # Account for people who put trailing slashes in PATH elements.
1641 case $as_dir/ in
1642 ./ | .// | /cC/* | \
1643 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1644 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1645 /usr/ucb/* ) ;;
1647 # OSF1 and SCO ODT 3.0 have their own names for install.
1648 # Don't use installbsd from OSF since it installs stuff as root
1649 # by default.
1650 for ac_prog in ginstall scoinst install; do
1651 for ac_exec_ext in '' $ac_executable_extensions; do
1652 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1653 if test $ac_prog = install &&
1654 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1655 # AIX install. It has an incompatible calling convention.
1657 elif test $ac_prog = install &&
1658 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1659 # program-specific install script used by HP pwplus--don't use.
1661 else
1662 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1663 break 3
1666 done
1667 done
1669 esac
1670 done
1674 if test "${ac_cv_path_install+set}" = set; then
1675 INSTALL=$ac_cv_path_install
1676 else
1677 # As a last resort, use the slow shell script. We don't cache a
1678 # path for INSTALL within a source directory, because that will
1679 # break other packages using the cache if that directory is
1680 # removed, or if the path is relative.
1681 INSTALL=$ac_install_sh
1684 echo "$as_me:$LINENO: result: $INSTALL" >&5
1685 echo "${ECHO_T}$INSTALL" >&6
1687 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1688 # It thinks the first close brace ends the variable substitution.
1689 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1691 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1693 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1695 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1696 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1697 # Just in case
1698 sleep 1
1699 echo timestamp > conftest.file
1700 # Do `set' in a subshell so we don't clobber the current shell's
1701 # arguments. Must try -L first in case configure is actually a
1702 # symlink; some systems play weird games with the mod time of symlinks
1703 # (eg FreeBSD returns the mod time of the symlink's containing
1704 # directory).
1705 if (
1706 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1707 if test "$*" = "X"; then
1708 # -L didn't work.
1709 set X `ls -t $srcdir/configure conftest.file`
1711 rm -f conftest.file
1712 if test "$*" != "X $srcdir/configure conftest.file" \
1713 && test "$*" != "X conftest.file $srcdir/configure"; then
1715 # If neither matched, then we have a broken ls. This can happen
1716 # if, for instance, CONFIG_SHELL is bash and it inherits a
1717 # broken ls alias from the environment. This has actually
1718 # happened. Such a system could not be considered "sane".
1719 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1720 alias in your environment" >&5
1721 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1722 alias in your environment" >&2;}
1723 { (exit 1); exit 1; }; }
1726 test "$2" = conftest.file
1728 then
1729 # Ok.
1731 else
1732 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1733 Check your system clock" >&5
1734 echo "$as_me: error: newly created file is older than distributed files!
1735 Check your system clock" >&2;}
1736 { (exit 1); exit 1; }; }
1738 echo "$as_me:$LINENO: result: yes" >&5
1739 echo "${ECHO_T}yes" >&6
1740 test "$program_prefix" != NONE &&
1741 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1742 # Use a double $ so make ignores it.
1743 test "$program_suffix" != NONE &&
1744 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1745 # Double any \ or $. echo might interpret backslashes.
1746 # By default was `s,x,x', remove it if useless.
1747 cat <<\_ACEOF >conftest.sed
1748 s/[\\$]/&&/g;s/;s,x,x,$//
1749 _ACEOF
1750 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1751 rm conftest.sed
1753 # expand $ac_aux_dir to an absolute path
1754 am_aux_dir=`cd $ac_aux_dir && pwd`
1756 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1757 # Use eval to expand $SHELL
1758 if eval "$MISSING --run true"; then
1759 am_missing_run="$MISSING --run "
1760 else
1761 am_missing_run=
1762 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1763 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1766 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1767 # We used to keeping the `.' as first argument, in order to
1768 # allow $(mkdir_p) to be used without argument. As in
1769 # $(mkdir_p) $(somedir)
1770 # where $(somedir) is conditionally defined. However this is wrong
1771 # for two reasons:
1772 # 1. if the package is installed by a user who cannot write `.'
1773 # make install will fail,
1774 # 2. the above comment should most certainly read
1775 # $(mkdir_p) $(DESTDIR)$(somedir)
1776 # so it does not work when $(somedir) is undefined and
1777 # $(DESTDIR) is not.
1778 # To support the latter case, we have to write
1779 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1780 # so the `.' trick is pointless.
1781 mkdir_p='mkdir -p --'
1782 else
1783 # On NextStep and OpenStep, the `mkdir' command does not
1784 # recognize any option. It will interpret all options as
1785 # directories to create, and then abort because `.' already
1786 # exists.
1787 for d in ./-p ./--version;
1789 test -d $d && rmdir $d
1790 done
1791 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1792 if test -f "$ac_aux_dir/mkinstalldirs"; then
1793 mkdir_p='$(mkinstalldirs)'
1794 else
1795 mkdir_p='$(install_sh) -d'
1799 for ac_prog in gawk mawk nawk awk
1801 # Extract the first word of "$ac_prog", so it can be a program name with args.
1802 set dummy $ac_prog; ac_word=$2
1803 echo "$as_me:$LINENO: checking for $ac_word" >&5
1804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1805 if test "${ac_cv_prog_AWK+set}" = set; then
1806 echo $ECHO_N "(cached) $ECHO_C" >&6
1807 else
1808 if test -n "$AWK"; then
1809 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1810 else
1811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1812 for as_dir in $PATH
1814 IFS=$as_save_IFS
1815 test -z "$as_dir" && as_dir=.
1816 for ac_exec_ext in '' $ac_executable_extensions; do
1817 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1818 ac_cv_prog_AWK="$ac_prog"
1819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1820 break 2
1822 done
1823 done
1827 AWK=$ac_cv_prog_AWK
1828 if test -n "$AWK"; then
1829 echo "$as_me:$LINENO: result: $AWK" >&5
1830 echo "${ECHO_T}$AWK" >&6
1831 else
1832 echo "$as_me:$LINENO: result: no" >&5
1833 echo "${ECHO_T}no" >&6
1836 test -n "$AWK" && break
1837 done
1839 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1840 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1841 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1842 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1843 echo $ECHO_N "(cached) $ECHO_C" >&6
1844 else
1845 cat >conftest.make <<\_ACEOF
1846 all:
1847 @echo 'ac_maketemp="$(MAKE)"'
1848 _ACEOF
1849 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1850 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1851 if test -n "$ac_maketemp"; then
1852 eval ac_cv_prog_make_${ac_make}_set=yes
1853 else
1854 eval ac_cv_prog_make_${ac_make}_set=no
1856 rm -f conftest.make
1858 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1859 echo "$as_me:$LINENO: result: yes" >&5
1860 echo "${ECHO_T}yes" >&6
1861 SET_MAKE=
1862 else
1863 echo "$as_me:$LINENO: result: no" >&5
1864 echo "${ECHO_T}no" >&6
1865 SET_MAKE="MAKE=${MAKE-make}"
1868 rm -rf .tst 2>/dev/null
1869 mkdir .tst 2>/dev/null
1870 if test -d .tst; then
1871 am__leading_dot=.
1872 else
1873 am__leading_dot=_
1875 rmdir .tst 2>/dev/null
1877 # test to see if srcdir already configured
1878 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1879 test -f $srcdir/config.status; then
1880 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1881 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1882 { (exit 1); exit 1; }; }
1885 # test whether we have cygpath
1886 if test -z "$CYGPATH_W"; then
1887 if (cygpath --version) >/dev/null 2>/dev/null; then
1888 CYGPATH_W='cygpath -w'
1889 else
1890 CYGPATH_W=echo
1895 # Define the identity of the package.
1896 PACKAGE=zlib
1897 VERSION=1.1.4
1900 cat >>confdefs.h <<_ACEOF
1901 #define PACKAGE "$PACKAGE"
1902 _ACEOF
1905 cat >>confdefs.h <<_ACEOF
1906 #define VERSION "$VERSION"
1907 _ACEOF
1909 # Some tools Automake needs.
1911 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1914 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1917 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1920 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1923 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1925 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1927 # Installed binaries are usually stripped using `strip' when the user
1928 # run `make install-strip'. However `strip' might not be the right
1929 # tool to use in cross-compilation environments, therefore Automake
1930 # will honor the `STRIP' environment variable to overrule this program.
1931 if test "$cross_compiling" != no; then
1932 if test -n "$ac_tool_prefix"; then
1933 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1934 set dummy ${ac_tool_prefix}strip; ac_word=$2
1935 echo "$as_me:$LINENO: checking for $ac_word" >&5
1936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1937 if test "${ac_cv_prog_STRIP+set}" = set; then
1938 echo $ECHO_N "(cached) $ECHO_C" >&6
1939 else
1940 if test -n "$STRIP"; then
1941 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1942 else
1943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1944 for as_dir in $PATH
1946 IFS=$as_save_IFS
1947 test -z "$as_dir" && as_dir=.
1948 for ac_exec_ext in '' $ac_executable_extensions; do
1949 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1950 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1952 break 2
1954 done
1955 done
1959 STRIP=$ac_cv_prog_STRIP
1960 if test -n "$STRIP"; then
1961 echo "$as_me:$LINENO: result: $STRIP" >&5
1962 echo "${ECHO_T}$STRIP" >&6
1963 else
1964 echo "$as_me:$LINENO: result: no" >&5
1965 echo "${ECHO_T}no" >&6
1969 if test -z "$ac_cv_prog_STRIP"; then
1970 ac_ct_STRIP=$STRIP
1971 # Extract the first word of "strip", so it can be a program name with args.
1972 set dummy strip; ac_word=$2
1973 echo "$as_me:$LINENO: checking for $ac_word" >&5
1974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1975 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1976 echo $ECHO_N "(cached) $ECHO_C" >&6
1977 else
1978 if test -n "$ac_ct_STRIP"; then
1979 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1980 else
1981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1982 for as_dir in $PATH
1984 IFS=$as_save_IFS
1985 test -z "$as_dir" && as_dir=.
1986 for ac_exec_ext in '' $ac_executable_extensions; do
1987 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1988 ac_cv_prog_ac_ct_STRIP="strip"
1989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1990 break 2
1992 done
1993 done
1995 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1998 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1999 if test -n "$ac_ct_STRIP"; then
2000 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2001 echo "${ECHO_T}$ac_ct_STRIP" >&6
2002 else
2003 echo "$as_me:$LINENO: result: no" >&5
2004 echo "${ECHO_T}no" >&6
2007 STRIP=$ac_ct_STRIP
2008 else
2009 STRIP="$ac_cv_prog_STRIP"
2013 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2015 # We need awk for the "check" target. The system "awk" is bad on
2016 # some platforms.
2017 # Always define AMTAR for backward compatibility.
2019 AMTAR=${AMTAR-"${am_missing_run}tar"}
2021 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2028 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2029 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
2030 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2031 if test "${enable_maintainer_mode+set}" = set; then
2032 enableval="$enable_maintainer_mode"
2033 USE_MAINTAINER_MODE=$enableval
2034 else
2035 USE_MAINTAINER_MODE=no
2037 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2038 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2041 if test $USE_MAINTAINER_MODE = yes; then
2042 MAINTAINER_MODE_TRUE=
2043 MAINTAINER_MODE_FALSE='#'
2044 else
2045 MAINTAINER_MODE_TRUE='#'
2046 MAINTAINER_MODE_FALSE=
2049 MAINT=$MAINTAINER_MODE_TRUE
2054 # Check whether --with-target-subdir or --without-target-subdir was given.
2055 if test "${with_target_subdir+set}" = set; then
2056 withval="$with_target_subdir"
2060 if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
2061 COMPPATH=.
2062 else
2063 COMPPATH=..
2068 # Check whether --with-cross-host or --without-cross-host was given.
2069 if test "${with_cross_host+set}" = set; then
2070 withval="$with_cross_host"
2074 # Check whether --enable-multilib or --disable-multilib was given.
2075 if test "${enable_multilib+set}" = set; then
2076 enableval="$enable_multilib"
2077 case "${enableval}" in
2078 yes) multilib=yes ;;
2079 no) multilib=no ;;
2080 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
2081 echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
2082 { (exit 1); exit 1; }; } ;;
2083 esac
2084 else
2085 test -z "$with_target_subdir" && multilib=no || multilib=yes
2088 # Check whether --with-system-zlib or --without-system-zlib was given.
2089 if test "${with_system_zlib+set}" = set; then
2090 withval="$with_system_zlib"
2094 # Make sure we don't test executables when making cross-tools.
2097 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
2098 # We must force CC to /not/ be precious variables; otherwise
2099 # the wrong, non-multilib-adjusted value will be used in multilibs.
2100 # As a side effect, we have to subst CFLAGS ourselves.
2104 ac_ext=c
2105 ac_cpp='$CPP $CPPFLAGS'
2106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2109 if test -n "$ac_tool_prefix"; then
2110 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2111 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2112 echo "$as_me:$LINENO: checking for $ac_word" >&5
2113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2114 if test "${ac_cv_prog_CC+set}" = set; then
2115 echo $ECHO_N "(cached) $ECHO_C" >&6
2116 else
2117 if test -n "$CC"; then
2118 ac_cv_prog_CC="$CC" # Let the user override the test.
2119 else
2120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2121 for as_dir in $PATH
2123 IFS=$as_save_IFS
2124 test -z "$as_dir" && as_dir=.
2125 for ac_exec_ext in '' $ac_executable_extensions; do
2126 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2127 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2129 break 2
2131 done
2132 done
2136 CC=$ac_cv_prog_CC
2137 if test -n "$CC"; then
2138 echo "$as_me:$LINENO: result: $CC" >&5
2139 echo "${ECHO_T}$CC" >&6
2140 else
2141 echo "$as_me:$LINENO: result: no" >&5
2142 echo "${ECHO_T}no" >&6
2146 if test -z "$ac_cv_prog_CC"; then
2147 ac_ct_CC=$CC
2148 # Extract the first word of "gcc", so it can be a program name with args.
2149 set dummy gcc; ac_word=$2
2150 echo "$as_me:$LINENO: checking for $ac_word" >&5
2151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2152 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2153 echo $ECHO_N "(cached) $ECHO_C" >&6
2154 else
2155 if test -n "$ac_ct_CC"; then
2156 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2157 else
2158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2159 for as_dir in $PATH
2161 IFS=$as_save_IFS
2162 test -z "$as_dir" && as_dir=.
2163 for ac_exec_ext in '' $ac_executable_extensions; do
2164 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2165 ac_cv_prog_ac_ct_CC="gcc"
2166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2167 break 2
2169 done
2170 done
2174 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2175 if test -n "$ac_ct_CC"; then
2176 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2177 echo "${ECHO_T}$ac_ct_CC" >&6
2178 else
2179 echo "$as_me:$LINENO: result: no" >&5
2180 echo "${ECHO_T}no" >&6
2183 CC=$ac_ct_CC
2184 else
2185 CC="$ac_cv_prog_CC"
2188 if test -z "$CC"; then
2189 if test -n "$ac_tool_prefix"; then
2190 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2191 set dummy ${ac_tool_prefix}cc; ac_word=$2
2192 echo "$as_me:$LINENO: checking for $ac_word" >&5
2193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2194 if test "${ac_cv_prog_CC+set}" = set; then
2195 echo $ECHO_N "(cached) $ECHO_C" >&6
2196 else
2197 if test -n "$CC"; then
2198 ac_cv_prog_CC="$CC" # Let the user override the test.
2199 else
2200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2201 for as_dir in $PATH
2203 IFS=$as_save_IFS
2204 test -z "$as_dir" && as_dir=.
2205 for ac_exec_ext in '' $ac_executable_extensions; do
2206 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2207 ac_cv_prog_CC="${ac_tool_prefix}cc"
2208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2209 break 2
2211 done
2212 done
2216 CC=$ac_cv_prog_CC
2217 if test -n "$CC"; then
2218 echo "$as_me:$LINENO: result: $CC" >&5
2219 echo "${ECHO_T}$CC" >&6
2220 else
2221 echo "$as_me:$LINENO: result: no" >&5
2222 echo "${ECHO_T}no" >&6
2226 if test -z "$ac_cv_prog_CC"; then
2227 ac_ct_CC=$CC
2228 # Extract the first word of "cc", so it can be a program name with args.
2229 set dummy cc; ac_word=$2
2230 echo "$as_me:$LINENO: checking for $ac_word" >&5
2231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2232 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2233 echo $ECHO_N "(cached) $ECHO_C" >&6
2234 else
2235 if test -n "$ac_ct_CC"; then
2236 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2237 else
2238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2239 for as_dir in $PATH
2241 IFS=$as_save_IFS
2242 test -z "$as_dir" && as_dir=.
2243 for ac_exec_ext in '' $ac_executable_extensions; do
2244 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2245 ac_cv_prog_ac_ct_CC="cc"
2246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2247 break 2
2249 done
2250 done
2254 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2255 if test -n "$ac_ct_CC"; then
2256 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2257 echo "${ECHO_T}$ac_ct_CC" >&6
2258 else
2259 echo "$as_me:$LINENO: result: no" >&5
2260 echo "${ECHO_T}no" >&6
2263 CC=$ac_ct_CC
2264 else
2265 CC="$ac_cv_prog_CC"
2269 if test -z "$CC"; then
2270 # Extract the first word of "cc", so it can be a program name with args.
2271 set dummy cc; ac_word=$2
2272 echo "$as_me:$LINENO: checking for $ac_word" >&5
2273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2274 if test "${ac_cv_prog_CC+set}" = set; then
2275 echo $ECHO_N "(cached) $ECHO_C" >&6
2276 else
2277 if test -n "$CC"; then
2278 ac_cv_prog_CC="$CC" # Let the user override the test.
2279 else
2280 ac_prog_rejected=no
2281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2282 for as_dir in $PATH
2284 IFS=$as_save_IFS
2285 test -z "$as_dir" && as_dir=.
2286 for ac_exec_ext in '' $ac_executable_extensions; do
2287 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2288 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2289 ac_prog_rejected=yes
2290 continue
2292 ac_cv_prog_CC="cc"
2293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2294 break 2
2296 done
2297 done
2299 if test $ac_prog_rejected = yes; then
2300 # We found a bogon in the path, so make sure we never use it.
2301 set dummy $ac_cv_prog_CC
2302 shift
2303 if test $# != 0; then
2304 # We chose a different compiler from the bogus one.
2305 # However, it has the same basename, so the bogon will be chosen
2306 # first if we set CC to just the basename; use the full file name.
2307 shift
2308 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2313 CC=$ac_cv_prog_CC
2314 if test -n "$CC"; then
2315 echo "$as_me:$LINENO: result: $CC" >&5
2316 echo "${ECHO_T}$CC" >&6
2317 else
2318 echo "$as_me:$LINENO: result: no" >&5
2319 echo "${ECHO_T}no" >&6
2323 if test -z "$CC"; then
2324 if test -n "$ac_tool_prefix"; then
2325 for ac_prog in cl
2327 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2328 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2329 echo "$as_me:$LINENO: checking for $ac_word" >&5
2330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2331 if test "${ac_cv_prog_CC+set}" = set; then
2332 echo $ECHO_N "(cached) $ECHO_C" >&6
2333 else
2334 if test -n "$CC"; then
2335 ac_cv_prog_CC="$CC" # Let the user override the test.
2336 else
2337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2338 for as_dir in $PATH
2340 IFS=$as_save_IFS
2341 test -z "$as_dir" && as_dir=.
2342 for ac_exec_ext in '' $ac_executable_extensions; do
2343 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2344 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2346 break 2
2348 done
2349 done
2353 CC=$ac_cv_prog_CC
2354 if test -n "$CC"; then
2355 echo "$as_me:$LINENO: result: $CC" >&5
2356 echo "${ECHO_T}$CC" >&6
2357 else
2358 echo "$as_me:$LINENO: result: no" >&5
2359 echo "${ECHO_T}no" >&6
2362 test -n "$CC" && break
2363 done
2365 if test -z "$CC"; then
2366 ac_ct_CC=$CC
2367 for ac_prog in cl
2369 # Extract the first word of "$ac_prog", so it can be a program name with args.
2370 set dummy $ac_prog; ac_word=$2
2371 echo "$as_me:$LINENO: checking for $ac_word" >&5
2372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2373 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2374 echo $ECHO_N "(cached) $ECHO_C" >&6
2375 else
2376 if test -n "$ac_ct_CC"; then
2377 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2378 else
2379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2380 for as_dir in $PATH
2382 IFS=$as_save_IFS
2383 test -z "$as_dir" && as_dir=.
2384 for ac_exec_ext in '' $ac_executable_extensions; do
2385 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2386 ac_cv_prog_ac_ct_CC="$ac_prog"
2387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2388 break 2
2390 done
2391 done
2395 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2396 if test -n "$ac_ct_CC"; then
2397 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2398 echo "${ECHO_T}$ac_ct_CC" >&6
2399 else
2400 echo "$as_me:$LINENO: result: no" >&5
2401 echo "${ECHO_T}no" >&6
2404 test -n "$ac_ct_CC" && break
2405 done
2407 CC=$ac_ct_CC
2413 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2414 See \`config.log' for more details." >&5
2415 echo "$as_me: error: no acceptable C compiler found in \$PATH
2416 See \`config.log' for more details." >&2;}
2417 { (exit 1); exit 1; }; }
2419 # Provide some information about the compiler.
2420 echo "$as_me:$LINENO:" \
2421 "checking for C compiler version" >&5
2422 ac_compiler=`set X $ac_compile; echo $2`
2423 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2424 (eval $ac_compiler --version </dev/null >&5) 2>&5
2425 ac_status=$?
2426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427 (exit $ac_status); }
2428 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2429 (eval $ac_compiler -v </dev/null >&5) 2>&5
2430 ac_status=$?
2431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432 (exit $ac_status); }
2433 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2434 (eval $ac_compiler -V </dev/null >&5) 2>&5
2435 ac_status=$?
2436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437 (exit $ac_status); }
2439 cat >conftest.$ac_ext <<_ACEOF
2440 /* confdefs.h. */
2441 _ACEOF
2442 cat confdefs.h >>conftest.$ac_ext
2443 cat >>conftest.$ac_ext <<_ACEOF
2444 /* end confdefs.h. */
2447 main ()
2451 return 0;
2453 _ACEOF
2454 # FIXME: Cleanup?
2455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2456 (eval $ac_link) 2>&5
2457 ac_status=$?
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); }; then
2460 gcc_no_link=no
2461 else
2462 gcc_no_link=yes
2465 if test x$gcc_no_link = xyes; then
2466 # Setting cross_compile will disable run tests; it will
2467 # also disable AC_CHECK_FILE but that's generally
2468 # correct if we can't link.
2469 cross_compiling=yes
2470 EXEEXT=
2471 else
2472 cat >conftest.$ac_ext <<_ACEOF
2473 /* confdefs.h. */
2474 _ACEOF
2475 cat confdefs.h >>conftest.$ac_ext
2476 cat >>conftest.$ac_ext <<_ACEOF
2477 /* end confdefs.h. */
2480 main ()
2484 return 0;
2486 _ACEOF
2487 ac_clean_files_save=$ac_clean_files
2488 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2489 # Try to create an executable without -o first, disregard a.out.
2490 # It will help us diagnose broken compilers, and finding out an intuition
2491 # of exeext.
2492 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2493 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2494 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2495 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2496 (eval $ac_link_default) 2>&5
2497 ac_status=$?
2498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499 (exit $ac_status); }; then
2500 # Find the output, starting from the most likely. This scheme is
2501 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2502 # resort.
2504 # Be careful to initialize this variable, since it used to be cached.
2505 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2506 ac_cv_exeext=
2507 # b.out is created by i960 compilers.
2508 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2510 test -f "$ac_file" || continue
2511 case $ac_file in
2512 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2514 conftest.$ac_ext )
2515 # This is the source file.
2517 [ab].out )
2518 # We found the default executable, but exeext='' is most
2519 # certainly right.
2520 break;;
2521 *.* )
2522 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2523 # FIXME: I believe we export ac_cv_exeext for Libtool,
2524 # but it would be cool to find out if it's true. Does anybody
2525 # maintain Libtool? --akim.
2526 export ac_cv_exeext
2527 break;;
2529 break;;
2530 esac
2531 done
2532 else
2533 echo "$as_me: failed program was:" >&5
2534 sed 's/^/| /' conftest.$ac_ext >&5
2536 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2537 See \`config.log' for more details." >&5
2538 echo "$as_me: error: C compiler cannot create executables
2539 See \`config.log' for more details." >&2;}
2540 { (exit 77); exit 77; }; }
2543 ac_exeext=$ac_cv_exeext
2544 echo "$as_me:$LINENO: result: $ac_file" >&5
2545 echo "${ECHO_T}$ac_file" >&6
2547 # Check the compiler produces executables we can run. If not, either
2548 # the compiler is broken, or we cross compile.
2549 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2550 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2551 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2552 # If not cross compiling, check that we can run a simple program.
2553 if test "$cross_compiling" != yes; then
2554 if { ac_try='./$ac_file'
2555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2556 (eval $ac_try) 2>&5
2557 ac_status=$?
2558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559 (exit $ac_status); }; }; then
2560 cross_compiling=no
2561 else
2562 if test "$cross_compiling" = maybe; then
2563 cross_compiling=yes
2564 else
2565 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2566 If you meant to cross compile, use \`--host'.
2567 See \`config.log' for more details." >&5
2568 echo "$as_me: error: cannot run C compiled programs.
2569 If you meant to cross compile, use \`--host'.
2570 See \`config.log' for more details." >&2;}
2571 { (exit 1); exit 1; }; }
2575 echo "$as_me:$LINENO: result: yes" >&5
2576 echo "${ECHO_T}yes" >&6
2578 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2579 ac_clean_files=$ac_clean_files_save
2580 # Check the compiler produces executables we can run. If not, either
2581 # the compiler is broken, or we cross compile.
2582 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2583 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2584 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2585 echo "${ECHO_T}$cross_compiling" >&6
2587 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2588 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2590 (eval $ac_link) 2>&5
2591 ac_status=$?
2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593 (exit $ac_status); }; then
2594 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2595 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2596 # work properly (i.e., refer to `conftest.exe'), while it won't with
2597 # `rm'.
2598 for ac_file in conftest.exe conftest conftest.*; do
2599 test -f "$ac_file" || continue
2600 case $ac_file in
2601 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2602 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2603 export ac_cv_exeext
2604 break;;
2605 * ) break;;
2606 esac
2607 done
2608 else
2609 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2610 See \`config.log' for more details." >&5
2611 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2612 See \`config.log' for more details." >&2;}
2613 { (exit 1); exit 1; }; }
2616 rm -f conftest$ac_cv_exeext
2617 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2618 echo "${ECHO_T}$ac_cv_exeext" >&6
2620 rm -f conftest.$ac_ext
2621 EXEEXT=$ac_cv_exeext
2622 ac_exeext=$EXEEXT
2624 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2625 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2626 if test "${ac_cv_objext+set}" = set; then
2627 echo $ECHO_N "(cached) $ECHO_C" >&6
2628 else
2629 cat >conftest.$ac_ext <<_ACEOF
2630 /* confdefs.h. */
2631 _ACEOF
2632 cat confdefs.h >>conftest.$ac_ext
2633 cat >>conftest.$ac_ext <<_ACEOF
2634 /* end confdefs.h. */
2637 main ()
2641 return 0;
2643 _ACEOF
2644 rm -f conftest.o conftest.obj
2645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2646 (eval $ac_compile) 2>&5
2647 ac_status=$?
2648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649 (exit $ac_status); }; then
2650 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2651 case $ac_file in
2652 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2653 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2654 break;;
2655 esac
2656 done
2657 else
2658 echo "$as_me: failed program was:" >&5
2659 sed 's/^/| /' conftest.$ac_ext >&5
2661 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2662 See \`config.log' for more details." >&5
2663 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2664 See \`config.log' for more details." >&2;}
2665 { (exit 1); exit 1; }; }
2668 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2670 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2671 echo "${ECHO_T}$ac_cv_objext" >&6
2672 OBJEXT=$ac_cv_objext
2673 ac_objext=$OBJEXT
2674 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2675 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2676 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2677 echo $ECHO_N "(cached) $ECHO_C" >&6
2678 else
2679 cat >conftest.$ac_ext <<_ACEOF
2680 /* confdefs.h. */
2681 _ACEOF
2682 cat confdefs.h >>conftest.$ac_ext
2683 cat >>conftest.$ac_ext <<_ACEOF
2684 /* end confdefs.h. */
2687 main ()
2689 #ifndef __GNUC__
2690 choke me
2691 #endif
2694 return 0;
2696 _ACEOF
2697 rm -f conftest.$ac_objext
2698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2699 (eval $ac_compile) 2>conftest.er1
2700 ac_status=$?
2701 grep -v '^ *+' conftest.er1 >conftest.err
2702 rm -f conftest.er1
2703 cat conftest.err >&5
2704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705 (exit $ac_status); } &&
2706 { ac_try='test -z "$ac_c_werror_flag"
2707 || test ! -s conftest.err'
2708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2709 (eval $ac_try) 2>&5
2710 ac_status=$?
2711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712 (exit $ac_status); }; } &&
2713 { ac_try='test -s conftest.$ac_objext'
2714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2715 (eval $ac_try) 2>&5
2716 ac_status=$?
2717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718 (exit $ac_status); }; }; then
2719 ac_compiler_gnu=yes
2720 else
2721 echo "$as_me: failed program was:" >&5
2722 sed 's/^/| /' conftest.$ac_ext >&5
2724 ac_compiler_gnu=no
2726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2727 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2730 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2731 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2732 GCC=`test $ac_compiler_gnu = yes && echo yes`
2733 ac_test_CFLAGS=${CFLAGS+set}
2734 ac_save_CFLAGS=$CFLAGS
2735 CFLAGS="-g"
2736 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2737 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2738 if test "${ac_cv_prog_cc_g+set}" = set; then
2739 echo $ECHO_N "(cached) $ECHO_C" >&6
2740 else
2741 cat >conftest.$ac_ext <<_ACEOF
2742 /* confdefs.h. */
2743 _ACEOF
2744 cat confdefs.h >>conftest.$ac_ext
2745 cat >>conftest.$ac_ext <<_ACEOF
2746 /* end confdefs.h. */
2749 main ()
2753 return 0;
2755 _ACEOF
2756 rm -f conftest.$ac_objext
2757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2758 (eval $ac_compile) 2>conftest.er1
2759 ac_status=$?
2760 grep -v '^ *+' conftest.er1 >conftest.err
2761 rm -f conftest.er1
2762 cat conftest.err >&5
2763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764 (exit $ac_status); } &&
2765 { ac_try='test -z "$ac_c_werror_flag"
2766 || test ! -s conftest.err'
2767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2768 (eval $ac_try) 2>&5
2769 ac_status=$?
2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); }; } &&
2772 { ac_try='test -s conftest.$ac_objext'
2773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2774 (eval $ac_try) 2>&5
2775 ac_status=$?
2776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777 (exit $ac_status); }; }; then
2778 ac_cv_prog_cc_g=yes
2779 else
2780 echo "$as_me: failed program was:" >&5
2781 sed 's/^/| /' conftest.$ac_ext >&5
2783 ac_cv_prog_cc_g=no
2785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2787 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2788 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2789 if test "$ac_test_CFLAGS" = set; then
2790 CFLAGS=$ac_save_CFLAGS
2791 elif test $ac_cv_prog_cc_g = yes; then
2792 if test "$GCC" = yes; then
2793 CFLAGS="-g -O2"
2794 else
2795 CFLAGS="-g"
2797 else
2798 if test "$GCC" = yes; then
2799 CFLAGS="-O2"
2800 else
2801 CFLAGS=
2804 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2805 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2806 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2807 echo $ECHO_N "(cached) $ECHO_C" >&6
2808 else
2809 ac_cv_prog_cc_stdc=no
2810 ac_save_CC=$CC
2811 cat >conftest.$ac_ext <<_ACEOF
2812 /* confdefs.h. */
2813 _ACEOF
2814 cat confdefs.h >>conftest.$ac_ext
2815 cat >>conftest.$ac_ext <<_ACEOF
2816 /* end confdefs.h. */
2817 #include <stdarg.h>
2818 #include <stdio.h>
2819 #include <sys/types.h>
2820 #include <sys/stat.h>
2821 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2822 struct buf { int x; };
2823 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2824 static char *e (p, i)
2825 char **p;
2826 int i;
2828 return p[i];
2830 static char *f (char * (*g) (char **, int), char **p, ...)
2832 char *s;
2833 va_list v;
2834 va_start (v,p);
2835 s = g (p, va_arg (v,int));
2836 va_end (v);
2837 return s;
2840 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2841 function prototypes and stuff, but not '\xHH' hex character constants.
2842 These don't provoke an error unfortunately, instead are silently treated
2843 as 'x'. The following induces an error, until -std1 is added to get
2844 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2845 array size at least. It's necessary to write '\x00'==0 to get something
2846 that's true only with -std1. */
2847 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2849 int test (int i, double x);
2850 struct s1 {int (*f) (int a);};
2851 struct s2 {int (*f) (double a);};
2852 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2853 int argc;
2854 char **argv;
2856 main ()
2858 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2860 return 0;
2862 _ACEOF
2863 # Don't try gcc -ansi; that turns off useful extensions and
2864 # breaks some systems' header files.
2865 # AIX -qlanglvl=ansi
2866 # Ultrix and OSF/1 -std1
2867 # HP-UX 10.20 and later -Ae
2868 # HP-UX older versions -Aa -D_HPUX_SOURCE
2869 # SVR4 -Xc -D__EXTENSIONS__
2870 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2872 CC="$ac_save_CC $ac_arg"
2873 rm -f conftest.$ac_objext
2874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2875 (eval $ac_compile) 2>conftest.er1
2876 ac_status=$?
2877 grep -v '^ *+' conftest.er1 >conftest.err
2878 rm -f conftest.er1
2879 cat conftest.err >&5
2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881 (exit $ac_status); } &&
2882 { ac_try='test -z "$ac_c_werror_flag"
2883 || test ! -s conftest.err'
2884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2885 (eval $ac_try) 2>&5
2886 ac_status=$?
2887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888 (exit $ac_status); }; } &&
2889 { ac_try='test -s conftest.$ac_objext'
2890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2891 (eval $ac_try) 2>&5
2892 ac_status=$?
2893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894 (exit $ac_status); }; }; then
2895 ac_cv_prog_cc_stdc=$ac_arg
2896 break
2897 else
2898 echo "$as_me: failed program was:" >&5
2899 sed 's/^/| /' conftest.$ac_ext >&5
2902 rm -f conftest.err conftest.$ac_objext
2903 done
2904 rm -f conftest.$ac_ext conftest.$ac_objext
2905 CC=$ac_save_CC
2909 case "x$ac_cv_prog_cc_stdc" in
2910 x|xno)
2911 echo "$as_me:$LINENO: result: none needed" >&5
2912 echo "${ECHO_T}none needed" >&6 ;;
2914 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2915 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2916 CC="$CC $ac_cv_prog_cc_stdc" ;;
2917 esac
2919 # Some people use a C++ compiler to compile C. Since we use `exit',
2920 # in C++ we need to declare it. In case someone uses the same compiler
2921 # for both compiling C and C++ we need to have the C++ compiler decide
2922 # the declaration of exit, since it's the most demanding environment.
2923 cat >conftest.$ac_ext <<_ACEOF
2924 #ifndef __cplusplus
2925 choke me
2926 #endif
2927 _ACEOF
2928 rm -f conftest.$ac_objext
2929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2930 (eval $ac_compile) 2>conftest.er1
2931 ac_status=$?
2932 grep -v '^ *+' conftest.er1 >conftest.err
2933 rm -f conftest.er1
2934 cat conftest.err >&5
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); } &&
2937 { ac_try='test -z "$ac_c_werror_flag"
2938 || test ! -s conftest.err'
2939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2940 (eval $ac_try) 2>&5
2941 ac_status=$?
2942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943 (exit $ac_status); }; } &&
2944 { ac_try='test -s conftest.$ac_objext'
2945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2946 (eval $ac_try) 2>&5
2947 ac_status=$?
2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949 (exit $ac_status); }; }; then
2950 for ac_declaration in \
2951 '' \
2952 'extern "C" void std::exit (int) throw (); using std::exit;' \
2953 'extern "C" void std::exit (int); using std::exit;' \
2954 'extern "C" void exit (int) throw ();' \
2955 'extern "C" void exit (int);' \
2956 'void exit (int);'
2958 cat >conftest.$ac_ext <<_ACEOF
2959 /* confdefs.h. */
2960 _ACEOF
2961 cat confdefs.h >>conftest.$ac_ext
2962 cat >>conftest.$ac_ext <<_ACEOF
2963 /* end confdefs.h. */
2964 $ac_declaration
2965 #include <stdlib.h>
2967 main ()
2969 exit (42);
2971 return 0;
2973 _ACEOF
2974 rm -f conftest.$ac_objext
2975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2976 (eval $ac_compile) 2>conftest.er1
2977 ac_status=$?
2978 grep -v '^ *+' conftest.er1 >conftest.err
2979 rm -f conftest.er1
2980 cat conftest.err >&5
2981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982 (exit $ac_status); } &&
2983 { ac_try='test -z "$ac_c_werror_flag"
2984 || test ! -s conftest.err'
2985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2986 (eval $ac_try) 2>&5
2987 ac_status=$?
2988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989 (exit $ac_status); }; } &&
2990 { ac_try='test -s conftest.$ac_objext'
2991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2992 (eval $ac_try) 2>&5
2993 ac_status=$?
2994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995 (exit $ac_status); }; }; then
2997 else
2998 echo "$as_me: failed program was:" >&5
2999 sed 's/^/| /' conftest.$ac_ext >&5
3001 continue
3003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3004 cat >conftest.$ac_ext <<_ACEOF
3005 /* confdefs.h. */
3006 _ACEOF
3007 cat confdefs.h >>conftest.$ac_ext
3008 cat >>conftest.$ac_ext <<_ACEOF
3009 /* end confdefs.h. */
3010 $ac_declaration
3012 main ()
3014 exit (42);
3016 return 0;
3018 _ACEOF
3019 rm -f conftest.$ac_objext
3020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3021 (eval $ac_compile) 2>conftest.er1
3022 ac_status=$?
3023 grep -v '^ *+' conftest.er1 >conftest.err
3024 rm -f conftest.er1
3025 cat conftest.err >&5
3026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027 (exit $ac_status); } &&
3028 { ac_try='test -z "$ac_c_werror_flag"
3029 || test ! -s conftest.err'
3030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3031 (eval $ac_try) 2>&5
3032 ac_status=$?
3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); }; } &&
3035 { ac_try='test -s conftest.$ac_objext'
3036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3037 (eval $ac_try) 2>&5
3038 ac_status=$?
3039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040 (exit $ac_status); }; }; then
3041 break
3042 else
3043 echo "$as_me: failed program was:" >&5
3044 sed 's/^/| /' conftest.$ac_ext >&5
3047 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3048 done
3049 rm -f conftest*
3050 if test -n "$ac_declaration"; then
3051 echo '#ifdef __cplusplus' >>confdefs.h
3052 echo $ac_declaration >>confdefs.h
3053 echo '#endif' >>confdefs.h
3056 else
3057 echo "$as_me: failed program was:" >&5
3058 sed 's/^/| /' conftest.$ac_ext >&5
3061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3062 ac_ext=c
3063 ac_cpp='$CPP $CPPFLAGS'
3064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3067 DEPDIR="${am__leading_dot}deps"
3069 ac_config_commands="$ac_config_commands depfiles"
3072 am_make=${MAKE-make}
3073 cat > confinc << 'END'
3074 am__doit:
3075 @echo done
3076 .PHONY: am__doit
3078 # If we don't find an include directive, just comment out the code.
3079 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3080 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3081 am__include="#"
3082 am__quote=
3083 _am_result=none
3084 # First try GNU make style include.
3085 echo "include confinc" > confmf
3086 # We grep out `Entering directory' and `Leaving directory'
3087 # messages which can occur if `w' ends up in MAKEFLAGS.
3088 # In particular we don't look at `^make:' because GNU make might
3089 # be invoked under some other name (usually "gmake"), in which
3090 # case it prints its new name instead of `make'.
3091 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3092 am__include=include
3093 am__quote=
3094 _am_result=GNU
3096 # Now try BSD make style include.
3097 if test "$am__include" = "#"; then
3098 echo '.include "confinc"' > confmf
3099 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3100 am__include=.include
3101 am__quote="\""
3102 _am_result=BSD
3107 echo "$as_me:$LINENO: result: $_am_result" >&5
3108 echo "${ECHO_T}$_am_result" >&6
3109 rm -f confinc confmf
3111 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3112 if test "${enable_dependency_tracking+set}" = set; then
3113 enableval="$enable_dependency_tracking"
3116 if test "x$enable_dependency_tracking" != xno; then
3117 am_depcomp="$ac_aux_dir/depcomp"
3118 AMDEPBACKSLASH='\'
3122 if test "x$enable_dependency_tracking" != xno; then
3123 AMDEP_TRUE=
3124 AMDEP_FALSE='#'
3125 else
3126 AMDEP_TRUE='#'
3127 AMDEP_FALSE=
3133 depcc="$CC" am_compiler_list=
3135 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3136 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3137 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3138 echo $ECHO_N "(cached) $ECHO_C" >&6
3139 else
3140 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3141 # We make a subdir and do the tests there. Otherwise we can end up
3142 # making bogus files that we don't know about and never remove. For
3143 # instance it was reported that on HP-UX the gcc test will end up
3144 # making a dummy file named `D' -- because `-MD' means `put the output
3145 # in D'.
3146 mkdir conftest.dir
3147 # Copy depcomp to subdir because otherwise we won't find it if we're
3148 # using a relative directory.
3149 cp "$am_depcomp" conftest.dir
3150 cd conftest.dir
3151 # We will build objects and dependencies in a subdirectory because
3152 # it helps to detect inapplicable dependency modes. For instance
3153 # both Tru64's cc and ICC support -MD to output dependencies as a
3154 # side effect of compilation, but ICC will put the dependencies in
3155 # the current directory while Tru64 will put them in the object
3156 # directory.
3157 mkdir sub
3159 am_cv_CC_dependencies_compiler_type=none
3160 if test "$am_compiler_list" = ""; then
3161 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3163 for depmode in $am_compiler_list; do
3164 # Setup a source with many dependencies, because some compilers
3165 # like to wrap large dependency lists on column 80 (with \), and
3166 # we should not choose a depcomp mode which is confused by this.
3168 # We need to recreate these files for each test, as the compiler may
3169 # overwrite some of them when testing with obscure command lines.
3170 # This happens at least with the AIX C compiler.
3171 : > sub/conftest.c
3172 for i in 1 2 3 4 5 6; do
3173 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3174 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3175 # Solaris 8's {/usr,}/bin/sh.
3176 touch sub/conftst$i.h
3177 done
3178 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3180 case $depmode in
3181 nosideeffect)
3182 # after this tag, mechanisms are not by side-effect, so they'll
3183 # only be used when explicitly requested
3184 if test "x$enable_dependency_tracking" = xyes; then
3185 continue
3186 else
3187 break
3190 none) break ;;
3191 esac
3192 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3193 # mode. It turns out that the SunPro C++ compiler does not properly
3194 # handle `-M -o', and we need to detect this.
3195 if depmode=$depmode \
3196 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3197 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3198 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3199 >/dev/null 2>conftest.err &&
3200 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3201 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3202 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3203 # icc doesn't choke on unknown options, it will just issue warnings
3204 # or remarks (even with -Werror). So we grep stderr for any message
3205 # that says an option was ignored or not supported.
3206 # When given -MP, icc 7.0 and 7.1 complain thusly:
3207 # icc: Command line warning: ignoring option '-M'; no argument required
3208 # The diagnosis changed in icc 8.0:
3209 # icc: Command line remark: option '-MP' not supported
3210 if (grep 'ignoring option' conftest.err ||
3211 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3212 am_cv_CC_dependencies_compiler_type=$depmode
3213 break
3216 done
3218 cd ..
3219 rm -rf conftest.dir
3220 else
3221 am_cv_CC_dependencies_compiler_type=none
3225 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3226 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3227 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3232 test "x$enable_dependency_tracking" != xno \
3233 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3234 am__fastdepCC_TRUE=
3235 am__fastdepCC_FALSE='#'
3236 else
3237 am__fastdepCC_TRUE='#'
3238 am__fastdepCC_FALSE=
3248 macro_version='2.1a'
3249 macro_revision='1.2435'
3262 ltmain="$ac_aux_dir/ltmain.sh"
3264 # Set options
3266 enable_dlopen=no
3269 enable_win32_dll=no
3272 # Check whether --enable-shared or --disable-shared was given.
3273 if test "${enable_shared+set}" = set; then
3274 enableval="$enable_shared"
3275 p=${PACKAGE-default}
3276 case $enableval in
3277 yes) enable_shared=yes ;;
3278 no) enable_shared=no ;;
3280 enable_shared=no
3281 # Look at the argument we got. We use all the common list separators.
3282 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3283 for pkg in $enableval; do
3284 IFS="$lt_save_ifs"
3285 if test "X$pkg" = "X$p"; then
3286 enable_shared=yes
3288 done
3289 IFS="$lt_save_ifs"
3291 esac
3292 else
3293 enable_shared=yes
3303 # Check whether --enable-static or --disable-static was given.
3304 if test "${enable_static+set}" = set; then
3305 enableval="$enable_static"
3306 p=${PACKAGE-default}
3307 case $enableval in
3308 yes) enable_static=yes ;;
3309 no) enable_static=no ;;
3311 enable_static=no
3312 # Look at the argument we got. We use all the common list separators.
3313 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3314 for pkg in $enableval; do
3315 IFS="$lt_save_ifs"
3316 if test "X$pkg" = "X$p"; then
3317 enable_static=yes
3319 done
3320 IFS="$lt_save_ifs"
3322 esac
3323 else
3324 enable_static=yes
3335 # Check whether --with-pic or --without-pic was given.
3336 if test "${with_pic+set}" = set; then
3337 withval="$with_pic"
3338 pic_mode="$withval"
3339 else
3340 pic_mode=default
3343 test -z "$pic_mode" && pic_mode=default
3351 # Check whether --enable-fast-install or --disable-fast-install was given.
3352 if test "${enable_fast_install+set}" = set; then
3353 enableval="$enable_fast_install"
3354 p=${PACKAGE-default}
3355 case $enableval in
3356 yes) enable_fast_install=yes ;;
3357 no) enable_fast_install=no ;;
3359 enable_fast_install=no
3360 # Look at the argument we got. We use all the common list separators.
3361 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3362 for pkg in $enableval; do
3363 IFS="$lt_save_ifs"
3364 if test "X$pkg" = "X$p"; then
3365 enable_fast_install=yes
3367 done
3368 IFS="$lt_save_ifs"
3370 esac
3371 else
3372 enable_fast_install=yes
3382 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3383 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3384 if test "${lt_cv_path_SED+set}" = set; then
3385 echo $ECHO_N "(cached) $ECHO_C" >&6
3386 else
3387 # Loop through the user's path and test for sed and gsed.
3388 # Then use that list of sed's as ones to test for truncation.
3389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3390 for as_dir in $PATH
3392 IFS=$as_save_IFS
3393 test -z "$as_dir" && as_dir=.
3394 for lt_ac_prog in sed gsed; do
3395 for ac_exec_ext in '' $ac_executable_extensions; do
3396 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3397 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3399 done
3400 done
3401 done
3402 IFS=$as_save_IFS
3403 lt_ac_max=0
3404 lt_ac_count=0
3405 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3406 # along with /bin/sed that truncates output.
3407 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3408 test ! -f $lt_ac_sed && continue
3409 cat /dev/null > conftest.in
3410 lt_ac_count=0
3411 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3412 # Check for GNU sed and select it if it is found.
3413 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3414 lt_cv_path_SED=$lt_ac_sed
3415 break
3417 while true; do
3418 cat conftest.in conftest.in >conftest.tmp
3419 mv conftest.tmp conftest.in
3420 cp conftest.in conftest.nl
3421 echo >>conftest.nl
3422 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3423 cmp -s conftest.out conftest.nl || break
3424 # 10000 chars as input seems more than enough
3425 test $lt_ac_count -gt 10 && break
3426 lt_ac_count=`expr $lt_ac_count + 1`
3427 if test $lt_ac_count -gt $lt_ac_max; then
3428 lt_ac_max=$lt_ac_count
3429 lt_cv_path_SED=$lt_ac_sed
3431 done
3432 done
3436 SED=$lt_cv_path_SED
3438 echo "$as_me:$LINENO: result: $SED" >&5
3439 echo "${ECHO_T}$SED" >&6
3441 test -z "$SED" && SED=sed
3442 Xsed="$SED -e 1s/^X//"
3454 echo "$as_me:$LINENO: checking for egrep" >&5
3455 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3456 if test "${ac_cv_prog_egrep+set}" = set; then
3457 echo $ECHO_N "(cached) $ECHO_C" >&6
3458 else
3459 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3460 then ac_cv_prog_egrep='grep -E'
3461 else ac_cv_prog_egrep='egrep'
3464 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3465 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3466 EGREP=$ac_cv_prog_egrep
3469 echo "$as_me:$LINENO: checking for fgrep" >&5
3470 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
3471 if test "${ac_cv_prog_fgrep+set}" = set; then
3472 echo $ECHO_N "(cached) $ECHO_C" >&6
3473 else
3474 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
3475 then ac_cv_prog_fgrep='grep -F'
3476 else ac_cv_prog_fgrep='fgrep'
3479 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
3480 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
3481 FGREP=$ac_cv_prog_fgrep
3484 test -z "$GREP" && GREP=grep
3504 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3505 if test "${with_gnu_ld+set}" = set; then
3506 withval="$with_gnu_ld"
3507 test "$withval" = no || with_gnu_ld=yes
3508 else
3509 with_gnu_ld=no
3511 ac_prog=ld
3512 if test "$GCC" = yes; then
3513 # Check if gcc -print-prog-name=ld gives a path.
3514 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3515 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3516 case $host in
3517 *-*-mingw*)
3518 # gcc leaves a trailing carriage return which upsets mingw
3519 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3521 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3522 esac
3523 case $ac_prog in
3524 # Accept absolute paths.
3525 [\\/]* | ?:[\\/]*)
3526 re_direlt='/[^/][^/]*/\.\./'
3527 # Canonicalize the pathname of ld
3528 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3529 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3530 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3531 done
3532 test -z "$LD" && LD="$ac_prog"
3535 # If it fails, then pretend we aren't using GCC.
3536 ac_prog=ld
3539 # If it is relative, then search for the first ld in PATH.
3540 with_gnu_ld=unknown
3542 esac
3543 elif test "$with_gnu_ld" = yes; then
3544 echo "$as_me:$LINENO: checking for GNU ld" >&5
3545 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3546 else
3547 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3548 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3550 if test "${lt_cv_path_LD+set}" = set; then
3551 echo $ECHO_N "(cached) $ECHO_C" >&6
3552 else
3553 if test -z "$LD"; then
3554 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3555 for ac_dir in $PATH; do
3556 IFS="$lt_save_ifs"
3557 test -z "$ac_dir" && ac_dir=.
3558 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3559 lt_cv_path_LD="$ac_dir/$ac_prog"
3560 # Check to see if the program is GNU ld. I'd rather use --version,
3561 # but apparently some variants of GNU ld only accept -v.
3562 # Break only if it was the GNU/non-GNU ld that we prefer.
3563 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3564 *GNU* | *'with BFD'*)
3565 test "$with_gnu_ld" != no && break
3568 test "$with_gnu_ld" != yes && break
3570 esac
3572 done
3573 IFS="$lt_save_ifs"
3574 else
3575 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3579 LD="$lt_cv_path_LD"
3580 if test -n "$LD"; then
3581 echo "$as_me:$LINENO: result: $LD" >&5
3582 echo "${ECHO_T}$LD" >&6
3583 else
3584 echo "$as_me:$LINENO: result: no" >&5
3585 echo "${ECHO_T}no" >&6
3587 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3588 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3589 { (exit 1); exit 1; }; }
3590 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3591 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3592 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3593 echo $ECHO_N "(cached) $ECHO_C" >&6
3594 else
3595 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3596 case `$LD -v 2>&1 </dev/null` in
3597 *GNU* | *'with BFD'*)
3598 lt_cv_prog_gnu_ld=yes
3601 lt_cv_prog_gnu_ld=no
3603 esac
3605 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3606 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3607 with_gnu_ld=$lt_cv_prog_gnu_ld
3618 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
3619 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
3620 if test "${lt_cv_path_NM+set}" = set; then
3621 echo $ECHO_N "(cached) $ECHO_C" >&6
3622 else
3623 if test -n "$NM"; then
3624 # Let the user override the test.
3625 lt_cv_path_NM="$NM"
3626 else
3627 lt_nm_to_check="${ac_tool_prefix}nm"
3628 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3629 lt_nm_to_check="$lt_nm_to_check nm"
3631 for lt_tmp_nm in $lt_nm_to_check; do
3632 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3633 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3634 IFS="$lt_save_ifs"
3635 test -z "$ac_dir" && ac_dir=.
3636 tmp_nm="$ac_dir/$lt_tmp_nm"
3637 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3638 # Check to see if the nm accepts a BSD-compat flag.
3639 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3640 # nm: unknown option "B" ignored
3641 # Tru64's nm complains that /dev/null is an invalid object file
3642 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3643 */dev/null* | *'Invalid file or object type'*)
3644 lt_cv_path_NM="$tmp_nm -B"
3645 break
3648 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3649 */dev/null*)
3650 lt_cv_path_NM="$tmp_nm -p"
3651 break
3654 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3655 continue # so that we can try to find one that supports BSD flags
3657 esac
3659 esac
3661 done
3662 IFS="$lt_save_ifs"
3663 done
3664 : ${lt_cv_path_NM=no}
3667 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3668 echo "${ECHO_T}$lt_cv_path_NM" >&6
3669 if test "$lt_cv_path_NM" != "no"; then
3670 NM="$lt_cv_path_NM"
3671 else
3672 # Didn't find any BSD compatible name lister, look for dumpbin.
3673 if test -n "$ac_tool_prefix"; then
3674 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3676 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3677 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3678 echo "$as_me:$LINENO: checking for $ac_word" >&5
3679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3680 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
3681 echo $ECHO_N "(cached) $ECHO_C" >&6
3682 else
3683 if test -n "$DUMPBIN"; then
3684 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3685 else
3686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3687 for as_dir in $PATH
3689 IFS=$as_save_IFS
3690 test -z "$as_dir" && as_dir=.
3691 for ac_exec_ext in '' $ac_executable_extensions; do
3692 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3693 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3695 break 2
3697 done
3698 done
3702 DUMPBIN=$ac_cv_prog_DUMPBIN
3703 if test -n "$DUMPBIN"; then
3704 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
3705 echo "${ECHO_T}$DUMPBIN" >&6
3706 else
3707 echo "$as_me:$LINENO: result: no" >&5
3708 echo "${ECHO_T}no" >&6
3711 test -n "$DUMPBIN" && break
3712 done
3714 if test -z "$DUMPBIN"; then
3715 ac_ct_DUMPBIN=$DUMPBIN
3716 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3718 # Extract the first word of "$ac_prog", so it can be a program name with args.
3719 set dummy $ac_prog; ac_word=$2
3720 echo "$as_me:$LINENO: checking for $ac_word" >&5
3721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3722 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
3723 echo $ECHO_N "(cached) $ECHO_C" >&6
3724 else
3725 if test -n "$ac_ct_DUMPBIN"; then
3726 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3727 else
3728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3729 for as_dir in $PATH
3731 IFS=$as_save_IFS
3732 test -z "$as_dir" && as_dir=.
3733 for ac_exec_ext in '' $ac_executable_extensions; do
3734 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3735 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3737 break 2
3739 done
3740 done
3744 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3745 if test -n "$ac_ct_DUMPBIN"; then
3746 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
3747 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
3748 else
3749 echo "$as_me:$LINENO: result: no" >&5
3750 echo "${ECHO_T}no" >&6
3753 test -n "$ac_ct_DUMPBIN" && break
3754 done
3755 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
3757 DUMPBIN=$ac_ct_DUMPBIN
3761 if test "$DUMPBIN" != ":"; then
3762 NM="$DUMPBIN"
3765 test -z "$NM" && NM=nm
3772 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
3773 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
3774 if test "${lt_cv_nm_interface+set}" = set; then
3775 echo $ECHO_N "(cached) $ECHO_C" >&6
3776 else
3777 lt_cv_nm_interface="BSD nm"
3778 echo "int some_variable = 0;" > conftest.$ac_ext
3779 (eval echo "\"\$as_me:3779: $ac_compile\"" >&5)
3780 (eval "$ac_compile" 2>conftest.err)
3781 cat conftest.err >&5
3782 (eval echo "\"\$as_me:3782: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3783 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3784 cat conftest.err >&5
3785 (eval echo "\"\$as_me:3785: output\"" >&5)
3786 cat conftest.out >&5
3787 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3788 lt_cv_nm_interface="MS dumpbin"
3790 rm -f conftest*
3792 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
3793 echo "${ECHO_T}$lt_cv_nm_interface" >&6
3795 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3796 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3797 LN_S=$as_ln_s
3798 if test "$LN_S" = "ln -s"; then
3799 echo "$as_me:$LINENO: result: yes" >&5
3800 echo "${ECHO_T}yes" >&6
3801 else
3802 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3803 echo "${ECHO_T}no, using $LN_S" >&6
3806 # find the maximum length of command line arguments
3807 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3808 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3809 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3810 echo $ECHO_N "(cached) $ECHO_C" >&6
3811 else
3813 teststring="ABCD"
3815 case $build_os in
3816 msdosdjgpp*)
3817 # On DJGPP, this test can blow up pretty badly due to problems in libc
3818 # (any single argument exceeding 2000 bytes causes a buffer overrun
3819 # during glob expansion). Even if it were fixed, the result of this
3820 # check would be larger than it should be.
3821 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3824 gnu*)
3825 # Under GNU Hurd, this test is not required because there is
3826 # no limit to the length of command line arguments.
3827 # Libtool will interpret -1 as no limit whatsoever
3828 lt_cv_sys_max_cmd_len=-1;
3831 cygwin* | mingw*)
3832 # On Win9x/ME, this test blows up -- it succeeds, but takes
3833 # about 5 minutes as the teststring grows exponentially.
3834 # Worse, since 9x/ME are not pre-emptively multitasking,
3835 # you end up with a "frozen" computer, even though with patience
3836 # the test eventually succeeds (with a max line length of 256k).
3837 # Instead, let's just punt: use the minimum linelength reported by
3838 # all of the supported platforms: 8192 (on NT/2K/XP).
3839 lt_cv_sys_max_cmd_len=8192;
3842 amigaos*)
3843 # On AmigaOS with pdksh, this test takes hours, literally.
3844 # So we just punt and use a minimum line length of 8192.
3845 lt_cv_sys_max_cmd_len=8192;
3848 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3849 # This has been around since 386BSD, at least. Likely further.
3850 if test -x /sbin/sysctl; then
3851 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3852 elif test -x /usr/sbin/sysctl; then
3853 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3854 else
3855 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
3857 # And add a safety zone
3858 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3859 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3862 interix*)
3863 # We know the value 262144 and hardcode it with a safety zone (like BSD)
3864 lt_cv_sys_max_cmd_len=196608
3867 osf*)
3868 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3869 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3870 # nice to cause kernel panics so lets avoid the loop below.
3871 # First set a reasonable default.
3872 lt_cv_sys_max_cmd_len=16384
3874 if test -x /sbin/sysconfig; then
3875 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
3876 *1*) lt_cv_sys_max_cmd_len=-1 ;;
3877 esac
3880 sco3.2v5*)
3881 lt_cv_sys_max_cmd_len=102400
3883 sysv5* | sco5v6* | sysv4.2uw2*)
3884 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
3885 if test -n "$kargmax"; then
3886 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
3887 else
3888 lt_cv_sys_max_cmd_len=32768
3892 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
3893 if test -n $lt_cv_sys_max_cmd_len; then
3894 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3895 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3896 else
3897 # Make teststring a little bigger before we do anything with it.
3898 # a 1K string should be a reasonable start.
3899 for i in 1 2 3 4 5 6 7 8 ; do
3900 teststring=$teststring$teststring
3901 done
3902 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
3903 # If test is not a shell built-in, we'll probably end up computing a
3904 # maximum length that is only half of the actual maximum length, but
3905 # we can't tell.
3906 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
3907 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
3908 test $i != 17 # 1/2 MB should be enough
3910 i=`expr $i + 1`
3911 teststring=$teststring$teststring
3912 done
3913 # Only check the string length outside the loop.
3914 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
3915 teststring=
3916 # Add a significant safety factor because C++ compilers can tack on
3917 # massive amounts of additional arguments before passing them to the
3918 # linker. It appears as though 1/2 is a usable value.
3919 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
3922 esac
3926 if test -n $lt_cv_sys_max_cmd_len ; then
3927 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3928 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3929 else
3930 echo "$as_me:$LINENO: result: none" >&5
3931 echo "${ECHO_T}none" >&6
3933 max_cmd_len=$lt_cv_sys_max_cmd_len
3941 : ${CP="cp -f"}
3942 : ${MV="mv -f"}
3943 : ${RM="rm -f"}
3945 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
3946 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
3947 # Try some XSI features
3948 xsi_shell=no
3949 ( _lt_dummy="a/b/c"
3950 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
3951 = c,a/b,, ) >/dev/null 2>&1 \
3952 && xsi_shell=yes
3953 echo "$as_me:$LINENO: result: $xsi_shell" >&5
3954 echo "${ECHO_T}$xsi_shell" >&6
3957 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
3958 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
3959 lt_shell_append=no
3960 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
3961 >/dev/null 2>&1 \
3962 && lt_shell_append=yes
3963 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
3964 echo "${ECHO_T}$lt_shell_append" >&6
3967 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3968 lt_unset=unset
3969 else
3970 lt_unset=false
3977 # test EBCDIC or ASCII
3978 case `echo X|tr X '\101'` in
3979 A) # ASCII based system
3980 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
3981 lt_SP2NL='tr \040 \012'
3982 lt_NL2SP='tr \015\012 \040\040'
3984 *) # EBCDIC based system
3985 lt_SP2NL='tr \100 \n'
3986 lt_NL2SP='tr \r\n \100\100'
3988 esac
3998 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3999 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4000 if test "${lt_cv_ld_reload_flag+set}" = set; then
4001 echo $ECHO_N "(cached) $ECHO_C" >&6
4002 else
4003 lt_cv_ld_reload_flag='-r'
4005 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4006 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4007 reload_flag=$lt_cv_ld_reload_flag
4008 case $reload_flag in
4009 "" | " "*) ;;
4010 *) reload_flag=" $reload_flag" ;;
4011 esac
4012 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4013 case $host_os in
4014 darwin*)
4015 if test "$GCC" = yes; then
4016 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4017 else
4018 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4021 esac
4032 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4033 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4034 if test "${lt_cv_deplibs_check_method+set}" = set; then
4035 echo $ECHO_N "(cached) $ECHO_C" >&6
4036 else
4037 lt_cv_file_magic_cmd='$MAGIC_CMD'
4038 lt_cv_file_magic_test_file=
4039 lt_cv_deplibs_check_method='unknown'
4040 # Need to set the preceding variable on all platforms that support
4041 # interlibrary dependencies.
4042 # 'none' -- dependencies not supported.
4043 # `unknown' -- same as none, but documents that we really don't know.
4044 # 'pass_all' -- all dependencies passed with no checks.
4045 # 'test_compile' -- check by making test program.
4046 # 'file_magic [[regex]]' -- check by looking for files in library path
4047 # which responds to the $file_magic_cmd with a given extended regex.
4048 # If you have `file' or equivalent on your system and you're not sure
4049 # whether `pass_all' will *always* work, you probably want this one.
4051 case $host_os in
4052 aix[4-9]*)
4053 lt_cv_deplibs_check_method=pass_all
4056 beos*)
4057 lt_cv_deplibs_check_method=pass_all
4060 bsdi[45]*)
4061 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4062 lt_cv_file_magic_cmd='/usr/bin/file -L'
4063 lt_cv_file_magic_test_file=/shlib/libc.so
4066 cygwin*)
4067 # func_win32_libid is a shell function defined in ltmain.sh
4068 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4069 lt_cv_file_magic_cmd='func_win32_libid'
4072 mingw* | pw32*)
4073 # Base MSYS/MinGW do not provide the 'file' command needed by
4074 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4075 # unless we find 'file', for example because we are cross-compiling.
4076 if ( file / ) >/dev/null 2>&1; then
4077 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4078 lt_cv_file_magic_cmd='func_win32_libid'
4079 else
4080 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4081 lt_cv_file_magic_cmd='$OBJDUMP -f'
4085 darwin* | rhapsody*)
4086 lt_cv_deplibs_check_method=pass_all
4089 freebsd* | dragonfly*)
4090 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4091 case $host_cpu in
4092 i*86 )
4093 # Not sure whether the presence of OpenBSD here was a mistake.
4094 # Let's accept both of them until this is cleared up.
4095 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4096 lt_cv_file_magic_cmd=/usr/bin/file
4097 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4099 esac
4100 else
4101 lt_cv_deplibs_check_method=pass_all
4105 gnu*)
4106 lt_cv_deplibs_check_method=pass_all
4109 hpux10.20* | hpux11*)
4110 lt_cv_file_magic_cmd=/usr/bin/file
4111 case $host_cpu in
4112 ia64*)
4113 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4114 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4116 hppa*64*)
4117 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]'
4118 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4121 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4122 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4124 esac
4127 interix[3-9]*)
4128 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4129 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4132 irix5* | irix6* | nonstopux*)
4133 case $LD in
4134 *-32|*"-32 ") libmagic=32-bit;;
4135 *-n32|*"-n32 ") libmagic=N32;;
4136 *-64|*"-64 ") libmagic=64-bit;;
4137 *) libmagic=never-match;;
4138 esac
4139 lt_cv_deplibs_check_method=pass_all
4142 # This must be Linux ELF.
4143 linux* | k*bsd*-gnu)
4144 lt_cv_deplibs_check_method=pass_all
4147 netbsd*)
4148 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4149 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4150 else
4151 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4155 newos6*)
4156 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4157 lt_cv_file_magic_cmd=/usr/bin/file
4158 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4161 *nto* | *qnx*)
4162 lt_cv_deplibs_check_method=pass_all
4165 openbsd*)
4166 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4167 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4168 else
4169 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4173 osf3* | osf4* | osf5*)
4174 lt_cv_deplibs_check_method=pass_all
4177 rdos*)
4178 lt_cv_deplibs_check_method=pass_all
4181 solaris*)
4182 lt_cv_deplibs_check_method=pass_all
4185 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4186 lt_cv_deplibs_check_method=pass_all
4189 sysv4 | sysv4.3*)
4190 case $host_vendor in
4191 motorola)
4192 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]'
4193 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4195 ncr)
4196 lt_cv_deplibs_check_method=pass_all
4198 sequent)
4199 lt_cv_file_magic_cmd='/bin/file'
4200 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4202 sni)
4203 lt_cv_file_magic_cmd='/bin/file'
4204 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4205 lt_cv_file_magic_test_file=/lib/libc.so
4207 siemens)
4208 lt_cv_deplibs_check_method=pass_all
4211 lt_cv_deplibs_check_method=pass_all
4213 esac
4216 tpf*)
4217 lt_cv_deplibs_check_method=pass_all
4219 esac
4222 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4223 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4224 file_magic_cmd=$lt_cv_file_magic_cmd
4225 deplibs_check_method=$lt_cv_deplibs_check_method
4226 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4239 if test -n "$ac_tool_prefix"; then
4240 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4241 set dummy ${ac_tool_prefix}ar; ac_word=$2
4242 echo "$as_me:$LINENO: checking for $ac_word" >&5
4243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4244 if test "${ac_cv_prog_AR+set}" = set; then
4245 echo $ECHO_N "(cached) $ECHO_C" >&6
4246 else
4247 if test -n "$AR"; then
4248 ac_cv_prog_AR="$AR" # Let the user override the test.
4249 else
4250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4251 for as_dir in $PATH
4253 IFS=$as_save_IFS
4254 test -z "$as_dir" && as_dir=.
4255 for ac_exec_ext in '' $ac_executable_extensions; do
4256 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4257 ac_cv_prog_AR="${ac_tool_prefix}ar"
4258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4259 break 2
4261 done
4262 done
4266 AR=$ac_cv_prog_AR
4267 if test -n "$AR"; then
4268 echo "$as_me:$LINENO: result: $AR" >&5
4269 echo "${ECHO_T}$AR" >&6
4270 else
4271 echo "$as_me:$LINENO: result: no" >&5
4272 echo "${ECHO_T}no" >&6
4276 if test -z "$ac_cv_prog_AR"; then
4277 ac_ct_AR=$AR
4278 # Extract the first word of "ar", so it can be a program name with args.
4279 set dummy ar; ac_word=$2
4280 echo "$as_me:$LINENO: checking for $ac_word" >&5
4281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4282 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4283 echo $ECHO_N "(cached) $ECHO_C" >&6
4284 else
4285 if test -n "$ac_ct_AR"; then
4286 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4287 else
4288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4289 for as_dir in $PATH
4291 IFS=$as_save_IFS
4292 test -z "$as_dir" && as_dir=.
4293 for ac_exec_ext in '' $ac_executable_extensions; do
4294 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4295 ac_cv_prog_ac_ct_AR="ar"
4296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4297 break 2
4299 done
4300 done
4302 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
4305 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4306 if test -n "$ac_ct_AR"; then
4307 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4308 echo "${ECHO_T}$ac_ct_AR" >&6
4309 else
4310 echo "$as_me:$LINENO: result: no" >&5
4311 echo "${ECHO_T}no" >&6
4314 AR=$ac_ct_AR
4315 else
4316 AR="$ac_cv_prog_AR"
4319 test -z "$AR" && AR=ar
4320 test -z "$AR_FLAGS" && AR_FLAGS=cru
4332 if test -n "$ac_tool_prefix"; then
4333 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4334 set dummy ${ac_tool_prefix}strip; ac_word=$2
4335 echo "$as_me:$LINENO: checking for $ac_word" >&5
4336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4337 if test "${ac_cv_prog_STRIP+set}" = set; then
4338 echo $ECHO_N "(cached) $ECHO_C" >&6
4339 else
4340 if test -n "$STRIP"; then
4341 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4342 else
4343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4344 for as_dir in $PATH
4346 IFS=$as_save_IFS
4347 test -z "$as_dir" && as_dir=.
4348 for ac_exec_ext in '' $ac_executable_extensions; do
4349 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4350 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4352 break 2
4354 done
4355 done
4359 STRIP=$ac_cv_prog_STRIP
4360 if test -n "$STRIP"; then
4361 echo "$as_me:$LINENO: result: $STRIP" >&5
4362 echo "${ECHO_T}$STRIP" >&6
4363 else
4364 echo "$as_me:$LINENO: result: no" >&5
4365 echo "${ECHO_T}no" >&6
4369 if test -z "$ac_cv_prog_STRIP"; then
4370 ac_ct_STRIP=$STRIP
4371 # Extract the first word of "strip", so it can be a program name with args.
4372 set dummy strip; ac_word=$2
4373 echo "$as_me:$LINENO: checking for $ac_word" >&5
4374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4375 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4376 echo $ECHO_N "(cached) $ECHO_C" >&6
4377 else
4378 if test -n "$ac_ct_STRIP"; then
4379 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4380 else
4381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4382 for as_dir in $PATH
4384 IFS=$as_save_IFS
4385 test -z "$as_dir" && as_dir=.
4386 for ac_exec_ext in '' $ac_executable_extensions; do
4387 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4388 ac_cv_prog_ac_ct_STRIP="strip"
4389 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4390 break 2
4392 done
4393 done
4395 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4398 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4399 if test -n "$ac_ct_STRIP"; then
4400 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4401 echo "${ECHO_T}$ac_ct_STRIP" >&6
4402 else
4403 echo "$as_me:$LINENO: result: no" >&5
4404 echo "${ECHO_T}no" >&6
4407 STRIP=$ac_ct_STRIP
4408 else
4409 STRIP="$ac_cv_prog_STRIP"
4412 test -z "$STRIP" && STRIP=:
4419 if test -n "$ac_tool_prefix"; then
4420 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4421 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4422 echo "$as_me:$LINENO: checking for $ac_word" >&5
4423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4424 if test "${ac_cv_prog_RANLIB+set}" = set; then
4425 echo $ECHO_N "(cached) $ECHO_C" >&6
4426 else
4427 if test -n "$RANLIB"; then
4428 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4429 else
4430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4431 for as_dir in $PATH
4433 IFS=$as_save_IFS
4434 test -z "$as_dir" && as_dir=.
4435 for ac_exec_ext in '' $ac_executable_extensions; do
4436 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4437 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4439 break 2
4441 done
4442 done
4446 RANLIB=$ac_cv_prog_RANLIB
4447 if test -n "$RANLIB"; then
4448 echo "$as_me:$LINENO: result: $RANLIB" >&5
4449 echo "${ECHO_T}$RANLIB" >&6
4450 else
4451 echo "$as_me:$LINENO: result: no" >&5
4452 echo "${ECHO_T}no" >&6
4456 if test -z "$ac_cv_prog_RANLIB"; then
4457 ac_ct_RANLIB=$RANLIB
4458 # Extract the first word of "ranlib", so it can be a program name with args.
4459 set dummy ranlib; ac_word=$2
4460 echo "$as_me:$LINENO: checking for $ac_word" >&5
4461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4462 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4463 echo $ECHO_N "(cached) $ECHO_C" >&6
4464 else
4465 if test -n "$ac_ct_RANLIB"; then
4466 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4467 else
4468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4469 for as_dir in $PATH
4471 IFS=$as_save_IFS
4472 test -z "$as_dir" && as_dir=.
4473 for ac_exec_ext in '' $ac_executable_extensions; do
4474 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4475 ac_cv_prog_ac_ct_RANLIB="ranlib"
4476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4477 break 2
4479 done
4480 done
4482 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4485 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4486 if test -n "$ac_ct_RANLIB"; then
4487 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4488 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4489 else
4490 echo "$as_me:$LINENO: result: no" >&5
4491 echo "${ECHO_T}no" >&6
4494 RANLIB=$ac_ct_RANLIB
4495 else
4496 RANLIB="$ac_cv_prog_RANLIB"
4499 test -z "$RANLIB" && RANLIB=:
4506 # Determine commands to create old-style static archives.
4507 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4508 old_postinstall_cmds='chmod 644 $oldlib'
4509 old_postuninstall_cmds=
4511 if test -n "$RANLIB"; then
4512 case $host_os in
4513 openbsd*)
4514 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4517 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4519 esac
4520 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4556 # If no C compiler was specified, use CC.
4557 LTCC=${LTCC-"$CC"}
4559 # If no C compiler flags were specified, use CFLAGS.
4560 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4562 # Allow CC to be a program name with arguments.
4563 compiler=$CC
4566 # Check for command to grab the raw symbol name followed by C symbol from nm.
4567 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4568 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
4569 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4570 echo $ECHO_N "(cached) $ECHO_C" >&6
4571 else
4573 # These are sane defaults that work on at least a few old systems.
4574 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4576 # Character class describing NM global symbol codes.
4577 symcode='[BCDEGRST]'
4579 # Regexp to match symbols that can be accessed directly from C.
4580 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4582 # Define system-specific variables.
4583 case $host_os in
4584 aix*)
4585 symcode='[BCDT]'
4587 cygwin* | mingw* | pw32*)
4588 symcode='[ABCDGISTW]'
4590 hpux*)
4591 if test "$host_cpu" = ia64; then
4592 symcode='[ABCDEGRST]'
4595 irix* | nonstopux*)
4596 symcode='[BCDEGRST]'
4598 osf*)
4599 symcode='[BCDEGQRST]'
4601 solaris*)
4602 symcode='[BDRT]'
4604 sco3.2v5*)
4605 symcode='[DT]'
4607 sysv4.2uw2*)
4608 symcode='[DT]'
4610 sysv5* | sco5v6* | unixware* | OpenUNIX*)
4611 symcode='[ABDT]'
4613 sysv4)
4614 symcode='[DFNSTU]'
4616 esac
4618 # If we're using GNU nm, then use its standard symbol codes.
4619 case `$NM -V 2>&1` in
4620 *GNU* | *'with BFD'*)
4621 symcode='[ABCDGIRSTW]' ;;
4622 esac
4624 # Transform an extracted symbol line into a proper C declaration.
4625 # Some systems (esp. on ia64) link data and code symbols differently,
4626 # so use this general approach.
4627 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4629 # Transform an extracted symbol line into symbol name and symbol address
4630 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
4632 # Handle CRLF in mingw tool chain
4633 opt_cr=
4634 case $build_os in
4635 mingw*)
4636 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4638 esac
4640 # Try without a prefix underscore, then with it.
4641 for ac_symprfx in "" "_"; do
4643 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4644 symxfrm="\\1 $ac_symprfx\\2 \\2"
4646 # Write the raw and C identifiers.
4647 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4648 # Fake it for dumpbin and say T for any non-static function
4649 # and D for any global variable.
4650 # Also find C++ and __fastcall symbols from MSVC++,
4651 # which start with @ or ?.
4652 lt_cv_sys_global_symbol_pipe="$AWK '"\
4653 " {last_section=section; section=\$ 3};"\
4654 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4655 " \$ 0!~/External *\|/{next};"\
4656 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4657 " {if(hide[section]) next};"\
4658 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4659 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4660 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
4661 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4662 " ' prfx=^$ac_symprfx"
4663 else
4664 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4667 # Check to see that the pipe works correctly.
4668 pipe_works=no
4670 rm -f conftest*
4671 cat > conftest.$ac_ext <<_LT_EOF
4672 #ifdef __cplusplus
4673 extern "C" {
4674 #endif
4675 char nm_test_var;
4676 void nm_test_func(void);
4677 void nm_test_func(void){}
4678 #ifdef __cplusplus
4680 #endif
4681 int main(){nm_test_var='a';nm_test_func();return(0);}
4682 _LT_EOF
4684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4685 (eval $ac_compile) 2>&5
4686 ac_status=$?
4687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688 (exit $ac_status); }; then
4689 # Now try to grab the symbols.
4690 nlist=conftest.nm
4691 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4692 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4693 ac_status=$?
4694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695 (exit $ac_status); } && test -s "$nlist"; then
4696 # Try sorting and uniquifying the output.
4697 if sort "$nlist" | uniq > "$nlist"T; then
4698 mv -f "$nlist"T "$nlist"
4699 else
4700 rm -f "$nlist"T
4703 # Make sure that we snagged all the symbols we need.
4704 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4705 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4706 cat <<_LT_EOF > conftest.$ac_ext
4707 #ifdef __cplusplus
4708 extern "C" {
4709 #endif
4711 _LT_EOF
4712 # Now generate the symbol file.
4713 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4715 cat <<_LT_EOF >> conftest.$ac_ext
4717 /* The mapping between symbol names and symbols. */
4718 const struct {
4719 const char *name;
4720 void *address;
4722 lt__PROGRAM__LTX_preloaded_symbols[] =
4724 { "@PROGRAM@", (void *) 0 },
4725 _LT_EOF
4726 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4727 cat <<\_LT_EOF >> conftest.$ac_ext
4728 {0, (void *) 0}
4731 /* This works around a problem in FreeBSD linker */
4732 #ifdef FREEBSD_WORKAROUND
4733 static const void *lt_preloaded_setup() {
4734 return lt__PROGRAM__LTX_preloaded_symbols;
4736 #endif
4738 #ifdef __cplusplus
4740 #endif
4741 _LT_EOF
4742 # Now try linking the two files.
4743 mv conftest.$ac_objext conftstm.$ac_objext
4744 lt_save_LIBS="$LIBS"
4745 lt_save_CFLAGS="$CFLAGS"
4746 LIBS="conftstm.$ac_objext"
4747 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4749 (eval $ac_link) 2>&5
4750 ac_status=$?
4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752 (exit $ac_status); } && test -s conftest${ac_exeext}; then
4753 pipe_works=yes
4755 LIBS="$lt_save_LIBS"
4756 CFLAGS="$lt_save_CFLAGS"
4757 else
4758 echo "cannot find nm_test_func in $nlist" >&5
4760 else
4761 echo "cannot find nm_test_var in $nlist" >&5
4763 else
4764 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4766 else
4767 echo "$progname: failed program was:" >&5
4768 cat conftest.$ac_ext >&5
4770 rm -f conftest* conftst*
4772 # Do not use the global_symbol_pipe unless it works.
4773 if test "$pipe_works" = yes; then
4774 break
4775 else
4776 lt_cv_sys_global_symbol_pipe=
4778 done
4782 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4783 lt_cv_sys_global_symbol_to_cdecl=
4785 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4786 echo "$as_me:$LINENO: result: failed" >&5
4787 echo "${ECHO_T}failed" >&6
4788 else
4789 echo "$as_me:$LINENO: result: ok" >&5
4790 echo "${ECHO_T}ok" >&6
4810 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4811 if test "${enable_libtool_lock+set}" = set; then
4812 enableval="$enable_libtool_lock"
4815 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4817 # Some flags need to be propagated to the compiler or linker for good
4818 # libtool support.
4819 case $host in
4820 ia64-*-hpux*)
4821 # Find out which ABI we are using.
4822 echo 'int i;' > conftest.$ac_ext
4823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4824 (eval $ac_compile) 2>&5
4825 ac_status=$?
4826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827 (exit $ac_status); }; then
4828 case `/usr/bin/file conftest.$ac_objext` in
4829 *ELF-32*)
4830 HPUX_IA64_MODE="32"
4832 *ELF-64*)
4833 HPUX_IA64_MODE="64"
4835 esac
4837 rm -rf conftest*
4839 *-*-irix6*)
4840 # Find out which ABI we are using.
4841 echo '#line 4841 "configure"' > conftest.$ac_ext
4842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4843 (eval $ac_compile) 2>&5
4844 ac_status=$?
4845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846 (exit $ac_status); }; then
4847 if test "$lt_cv_prog_gnu_ld" = yes; then
4848 case `/usr/bin/file conftest.$ac_objext` in
4849 *32-bit*)
4850 LD="${LD-ld} -melf32bsmip"
4852 *N32*)
4853 LD="${LD-ld} -melf32bmipn32"
4855 *64-bit*)
4856 LD="${LD-ld} -melf64bmip"
4858 esac
4859 else
4860 case `/usr/bin/file conftest.$ac_objext` in
4861 *32-bit*)
4862 LD="${LD-ld} -32"
4864 *N32*)
4865 LD="${LD-ld} -n32"
4867 *64-bit*)
4868 LD="${LD-ld} -64"
4870 esac
4873 rm -rf conftest*
4876 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4877 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
4878 # Find out which ABI we are using.
4879 echo 'int i;' > conftest.$ac_ext
4880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4881 (eval $ac_compile) 2>&5
4882 ac_status=$?
4883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884 (exit $ac_status); }; then
4885 case `/usr/bin/file conftest.o` in
4886 *32-bit*)
4887 case $host in
4888 x86_64-*kfreebsd*-gnu)
4889 LD="${LD-ld} -m elf_i386_fbsd"
4891 x86_64-*linux*)
4892 LD="${LD-ld} -m elf_i386"
4894 ppc64-*linux*|powerpc64-*linux*)
4895 LD="${LD-ld} -m elf32ppclinux"
4897 s390x-*linux*)
4898 LD="${LD-ld} -m elf_s390"
4900 sparc64-*linux*)
4901 LD="${LD-ld} -m elf32_sparc"
4903 esac
4905 *64-bit*)
4906 case $host in
4907 x86_64-*kfreebsd*-gnu)
4908 LD="${LD-ld} -m elf_x86_64_fbsd"
4910 x86_64-*linux*)
4911 LD="${LD-ld} -m elf_x86_64"
4913 ppc*-*linux*|powerpc*-*linux*)
4914 LD="${LD-ld} -m elf64ppc"
4916 s390*-*linux*|s390*-*tpf*)
4917 LD="${LD-ld} -m elf64_s390"
4919 sparc*-*linux*)
4920 LD="${LD-ld} -m elf64_sparc"
4922 esac
4924 esac
4926 rm -rf conftest*
4929 *-*-sco3.2v5*)
4930 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4931 SAVE_CFLAGS="$CFLAGS"
4932 CFLAGS="$CFLAGS -belf"
4933 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4934 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4935 if test "${lt_cv_cc_needs_belf+set}" = set; then
4936 echo $ECHO_N "(cached) $ECHO_C" >&6
4937 else
4938 ac_ext=c
4939 ac_cpp='$CPP $CPPFLAGS'
4940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4944 if test x$gcc_no_link = xyes; then
4945 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4946 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4947 { (exit 1); exit 1; }; }
4949 cat >conftest.$ac_ext <<_ACEOF
4950 /* confdefs.h. */
4951 _ACEOF
4952 cat confdefs.h >>conftest.$ac_ext
4953 cat >>conftest.$ac_ext <<_ACEOF
4954 /* end confdefs.h. */
4957 main ()
4961 return 0;
4963 _ACEOF
4964 rm -f conftest.$ac_objext conftest$ac_exeext
4965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4966 (eval $ac_link) 2>conftest.er1
4967 ac_status=$?
4968 grep -v '^ *+' conftest.er1 >conftest.err
4969 rm -f conftest.er1
4970 cat conftest.err >&5
4971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4972 (exit $ac_status); } &&
4973 { ac_try='test -z "$ac_c_werror_flag"
4974 || test ! -s conftest.err'
4975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4976 (eval $ac_try) 2>&5
4977 ac_status=$?
4978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979 (exit $ac_status); }; } &&
4980 { ac_try='test -s conftest$ac_exeext'
4981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4982 (eval $ac_try) 2>&5
4983 ac_status=$?
4984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); }; }; then
4986 lt_cv_cc_needs_belf=yes
4987 else
4988 echo "$as_me: failed program was:" >&5
4989 sed 's/^/| /' conftest.$ac_ext >&5
4991 lt_cv_cc_needs_belf=no
4993 rm -f conftest.err conftest.$ac_objext \
4994 conftest$ac_exeext conftest.$ac_ext
4995 ac_ext=c
4996 ac_cpp='$CPP $CPPFLAGS'
4997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5002 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5003 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5004 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5005 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5006 CFLAGS="$SAVE_CFLAGS"
5009 sparc*-*solaris*)
5010 # Find out which ABI we are using.
5011 echo 'int i;' > conftest.$ac_ext
5012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5013 (eval $ac_compile) 2>&5
5014 ac_status=$?
5015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016 (exit $ac_status); }; then
5017 case `/usr/bin/file conftest.o` in
5018 *64-bit*)
5019 case $lt_cv_prog_gnu_ld in
5020 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5021 *) LD="${LD-ld} -64" ;;
5022 esac
5024 esac
5026 rm -rf conftest*
5028 esac
5030 need_locks="$enable_libtool_lock"
5032 ac_ext=c
5033 ac_cpp='$CPP $CPPFLAGS'
5034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5037 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5038 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5039 # On Suns, sometimes $CPP names a directory.
5040 if test -n "$CPP" && test -d "$CPP"; then
5041 CPP=
5043 if test -z "$CPP"; then
5044 if test "${ac_cv_prog_CPP+set}" = set; then
5045 echo $ECHO_N "(cached) $ECHO_C" >&6
5046 else
5047 # Double quotes because CPP needs to be expanded
5048 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5050 ac_preproc_ok=false
5051 for ac_c_preproc_warn_flag in '' yes
5053 # Use a header file that comes with gcc, so configuring glibc
5054 # with a fresh cross-compiler works.
5055 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5056 # <limits.h> exists even on freestanding compilers.
5057 # On the NeXT, cc -E runs the code through the compiler's parser,
5058 # not just through cpp. "Syntax error" is here to catch this case.
5059 cat >conftest.$ac_ext <<_ACEOF
5060 /* confdefs.h. */
5061 _ACEOF
5062 cat confdefs.h >>conftest.$ac_ext
5063 cat >>conftest.$ac_ext <<_ACEOF
5064 /* end confdefs.h. */
5065 #ifdef __STDC__
5066 # include <limits.h>
5067 #else
5068 # include <assert.h>
5069 #endif
5070 Syntax error
5071 _ACEOF
5072 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5073 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5074 ac_status=$?
5075 grep -v '^ *+' conftest.er1 >conftest.err
5076 rm -f conftest.er1
5077 cat conftest.err >&5
5078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079 (exit $ac_status); } >/dev/null; then
5080 if test -s conftest.err; then
5081 ac_cpp_err=$ac_c_preproc_warn_flag
5082 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5083 else
5084 ac_cpp_err=
5086 else
5087 ac_cpp_err=yes
5089 if test -z "$ac_cpp_err"; then
5091 else
5092 echo "$as_me: failed program was:" >&5
5093 sed 's/^/| /' conftest.$ac_ext >&5
5095 # Broken: fails on valid input.
5096 continue
5098 rm -f conftest.err conftest.$ac_ext
5100 # OK, works on sane cases. Now check whether non-existent headers
5101 # can be detected and how.
5102 cat >conftest.$ac_ext <<_ACEOF
5103 /* confdefs.h. */
5104 _ACEOF
5105 cat confdefs.h >>conftest.$ac_ext
5106 cat >>conftest.$ac_ext <<_ACEOF
5107 /* end confdefs.h. */
5108 #include <ac_nonexistent.h>
5109 _ACEOF
5110 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5111 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5112 ac_status=$?
5113 grep -v '^ *+' conftest.er1 >conftest.err
5114 rm -f conftest.er1
5115 cat conftest.err >&5
5116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117 (exit $ac_status); } >/dev/null; then
5118 if test -s conftest.err; then
5119 ac_cpp_err=$ac_c_preproc_warn_flag
5120 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5121 else
5122 ac_cpp_err=
5124 else
5125 ac_cpp_err=yes
5127 if test -z "$ac_cpp_err"; then
5128 # Broken: success on invalid input.
5129 continue
5130 else
5131 echo "$as_me: failed program was:" >&5
5132 sed 's/^/| /' conftest.$ac_ext >&5
5134 # Passes both tests.
5135 ac_preproc_ok=:
5136 break
5138 rm -f conftest.err conftest.$ac_ext
5140 done
5141 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5142 rm -f conftest.err conftest.$ac_ext
5143 if $ac_preproc_ok; then
5144 break
5147 done
5148 ac_cv_prog_CPP=$CPP
5151 CPP=$ac_cv_prog_CPP
5152 else
5153 ac_cv_prog_CPP=$CPP
5155 echo "$as_me:$LINENO: result: $CPP" >&5
5156 echo "${ECHO_T}$CPP" >&6
5157 ac_preproc_ok=false
5158 for ac_c_preproc_warn_flag in '' yes
5160 # Use a header file that comes with gcc, so configuring glibc
5161 # with a fresh cross-compiler works.
5162 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5163 # <limits.h> exists even on freestanding compilers.
5164 # On the NeXT, cc -E runs the code through the compiler's parser,
5165 # not just through cpp. "Syntax error" is here to catch this case.
5166 cat >conftest.$ac_ext <<_ACEOF
5167 /* confdefs.h. */
5168 _ACEOF
5169 cat confdefs.h >>conftest.$ac_ext
5170 cat >>conftest.$ac_ext <<_ACEOF
5171 /* end confdefs.h. */
5172 #ifdef __STDC__
5173 # include <limits.h>
5174 #else
5175 # include <assert.h>
5176 #endif
5177 Syntax error
5178 _ACEOF
5179 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5180 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5181 ac_status=$?
5182 grep -v '^ *+' conftest.er1 >conftest.err
5183 rm -f conftest.er1
5184 cat conftest.err >&5
5185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5186 (exit $ac_status); } >/dev/null; then
5187 if test -s conftest.err; then
5188 ac_cpp_err=$ac_c_preproc_warn_flag
5189 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5190 else
5191 ac_cpp_err=
5193 else
5194 ac_cpp_err=yes
5196 if test -z "$ac_cpp_err"; then
5198 else
5199 echo "$as_me: failed program was:" >&5
5200 sed 's/^/| /' conftest.$ac_ext >&5
5202 # Broken: fails on valid input.
5203 continue
5205 rm -f conftest.err conftest.$ac_ext
5207 # OK, works on sane cases. Now check whether non-existent headers
5208 # can be detected and how.
5209 cat >conftest.$ac_ext <<_ACEOF
5210 /* confdefs.h. */
5211 _ACEOF
5212 cat confdefs.h >>conftest.$ac_ext
5213 cat >>conftest.$ac_ext <<_ACEOF
5214 /* end confdefs.h. */
5215 #include <ac_nonexistent.h>
5216 _ACEOF
5217 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5218 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5219 ac_status=$?
5220 grep -v '^ *+' conftest.er1 >conftest.err
5221 rm -f conftest.er1
5222 cat conftest.err >&5
5223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224 (exit $ac_status); } >/dev/null; then
5225 if test -s conftest.err; then
5226 ac_cpp_err=$ac_c_preproc_warn_flag
5227 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5228 else
5229 ac_cpp_err=
5231 else
5232 ac_cpp_err=yes
5234 if test -z "$ac_cpp_err"; then
5235 # Broken: success on invalid input.
5236 continue
5237 else
5238 echo "$as_me: failed program was:" >&5
5239 sed 's/^/| /' conftest.$ac_ext >&5
5241 # Passes both tests.
5242 ac_preproc_ok=:
5243 break
5245 rm -f conftest.err conftest.$ac_ext
5247 done
5248 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5249 rm -f conftest.err conftest.$ac_ext
5250 if $ac_preproc_ok; then
5252 else
5253 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5254 See \`config.log' for more details." >&5
5255 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5256 See \`config.log' for more details." >&2;}
5257 { (exit 1); exit 1; }; }
5260 ac_ext=c
5261 ac_cpp='$CPP $CPPFLAGS'
5262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5267 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5268 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5269 if test "${ac_cv_header_stdc+set}" = set; then
5270 echo $ECHO_N "(cached) $ECHO_C" >&6
5271 else
5272 cat >conftest.$ac_ext <<_ACEOF
5273 /* confdefs.h. */
5274 _ACEOF
5275 cat confdefs.h >>conftest.$ac_ext
5276 cat >>conftest.$ac_ext <<_ACEOF
5277 /* end confdefs.h. */
5278 #include <stdlib.h>
5279 #include <stdarg.h>
5280 #include <string.h>
5281 #include <float.h>
5284 main ()
5288 return 0;
5290 _ACEOF
5291 rm -f conftest.$ac_objext
5292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5293 (eval $ac_compile) 2>conftest.er1
5294 ac_status=$?
5295 grep -v '^ *+' conftest.er1 >conftest.err
5296 rm -f conftest.er1
5297 cat conftest.err >&5
5298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299 (exit $ac_status); } &&
5300 { ac_try='test -z "$ac_c_werror_flag"
5301 || test ! -s conftest.err'
5302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5303 (eval $ac_try) 2>&5
5304 ac_status=$?
5305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306 (exit $ac_status); }; } &&
5307 { ac_try='test -s conftest.$ac_objext'
5308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5309 (eval $ac_try) 2>&5
5310 ac_status=$?
5311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312 (exit $ac_status); }; }; then
5313 ac_cv_header_stdc=yes
5314 else
5315 echo "$as_me: failed program was:" >&5
5316 sed 's/^/| /' conftest.$ac_ext >&5
5318 ac_cv_header_stdc=no
5320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5322 if test $ac_cv_header_stdc = yes; then
5323 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5324 cat >conftest.$ac_ext <<_ACEOF
5325 /* confdefs.h. */
5326 _ACEOF
5327 cat confdefs.h >>conftest.$ac_ext
5328 cat >>conftest.$ac_ext <<_ACEOF
5329 /* end confdefs.h. */
5330 #include <string.h>
5332 _ACEOF
5333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5334 $EGREP "memchr" >/dev/null 2>&1; then
5336 else
5337 ac_cv_header_stdc=no
5339 rm -f conftest*
5343 if test $ac_cv_header_stdc = yes; then
5344 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5345 cat >conftest.$ac_ext <<_ACEOF
5346 /* confdefs.h. */
5347 _ACEOF
5348 cat confdefs.h >>conftest.$ac_ext
5349 cat >>conftest.$ac_ext <<_ACEOF
5350 /* end confdefs.h. */
5351 #include <stdlib.h>
5353 _ACEOF
5354 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5355 $EGREP "free" >/dev/null 2>&1; then
5357 else
5358 ac_cv_header_stdc=no
5360 rm -f conftest*
5364 if test $ac_cv_header_stdc = yes; then
5365 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5366 if test "$cross_compiling" = yes; then
5368 else
5369 cat >conftest.$ac_ext <<_ACEOF
5370 /* confdefs.h. */
5371 _ACEOF
5372 cat confdefs.h >>conftest.$ac_ext
5373 cat >>conftest.$ac_ext <<_ACEOF
5374 /* end confdefs.h. */
5375 #include <ctype.h>
5376 #if ((' ' & 0x0FF) == 0x020)
5377 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5378 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5379 #else
5380 # define ISLOWER(c) \
5381 (('a' <= (c) && (c) <= 'i') \
5382 || ('j' <= (c) && (c) <= 'r') \
5383 || ('s' <= (c) && (c) <= 'z'))
5384 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5385 #endif
5387 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5389 main ()
5391 int i;
5392 for (i = 0; i < 256; i++)
5393 if (XOR (islower (i), ISLOWER (i))
5394 || toupper (i) != TOUPPER (i))
5395 exit(2);
5396 exit (0);
5398 _ACEOF
5399 rm -f conftest$ac_exeext
5400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5401 (eval $ac_link) 2>&5
5402 ac_status=$?
5403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5406 (eval $ac_try) 2>&5
5407 ac_status=$?
5408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409 (exit $ac_status); }; }; then
5411 else
5412 echo "$as_me: program exited with status $ac_status" >&5
5413 echo "$as_me: failed program was:" >&5
5414 sed 's/^/| /' conftest.$ac_ext >&5
5416 ( exit $ac_status )
5417 ac_cv_header_stdc=no
5419 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5423 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5424 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5425 if test $ac_cv_header_stdc = yes; then
5427 cat >>confdefs.h <<\_ACEOF
5428 #define STDC_HEADERS 1
5429 _ACEOF
5433 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5443 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5444 inttypes.h stdint.h unistd.h
5446 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5447 echo "$as_me:$LINENO: checking for $ac_header" >&5
5448 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5449 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5450 echo $ECHO_N "(cached) $ECHO_C" >&6
5451 else
5452 cat >conftest.$ac_ext <<_ACEOF
5453 /* confdefs.h. */
5454 _ACEOF
5455 cat confdefs.h >>conftest.$ac_ext
5456 cat >>conftest.$ac_ext <<_ACEOF
5457 /* end confdefs.h. */
5458 $ac_includes_default
5460 #include <$ac_header>
5461 _ACEOF
5462 rm -f conftest.$ac_objext
5463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5464 (eval $ac_compile) 2>conftest.er1
5465 ac_status=$?
5466 grep -v '^ *+' conftest.er1 >conftest.err
5467 rm -f conftest.er1
5468 cat conftest.err >&5
5469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470 (exit $ac_status); } &&
5471 { ac_try='test -z "$ac_c_werror_flag"
5472 || test ! -s conftest.err'
5473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5474 (eval $ac_try) 2>&5
5475 ac_status=$?
5476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477 (exit $ac_status); }; } &&
5478 { ac_try='test -s conftest.$ac_objext'
5479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5480 (eval $ac_try) 2>&5
5481 ac_status=$?
5482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5483 (exit $ac_status); }; }; then
5484 eval "$as_ac_Header=yes"
5485 else
5486 echo "$as_me: failed program was:" >&5
5487 sed 's/^/| /' conftest.$ac_ext >&5
5489 eval "$as_ac_Header=no"
5491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5493 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5494 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5495 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5496 cat >>confdefs.h <<_ACEOF
5497 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5498 _ACEOF
5502 done
5506 for ac_header in dlfcn.h
5508 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5509 echo "$as_me:$LINENO: checking for $ac_header" >&5
5510 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5511 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5512 echo $ECHO_N "(cached) $ECHO_C" >&6
5513 else
5514 cat >conftest.$ac_ext <<_ACEOF
5515 /* confdefs.h. */
5516 _ACEOF
5517 cat confdefs.h >>conftest.$ac_ext
5518 cat >>conftest.$ac_ext <<_ACEOF
5519 /* end confdefs.h. */
5520 $ac_includes_default
5522 #include <$ac_header>
5523 _ACEOF
5524 rm -f conftest.$ac_objext
5525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5526 (eval $ac_compile) 2>conftest.er1
5527 ac_status=$?
5528 grep -v '^ *+' conftest.er1 >conftest.err
5529 rm -f conftest.er1
5530 cat conftest.err >&5
5531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532 (exit $ac_status); } &&
5533 { ac_try='test -z "$ac_c_werror_flag"
5534 || test ! -s conftest.err'
5535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5536 (eval $ac_try) 2>&5
5537 ac_status=$?
5538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539 (exit $ac_status); }; } &&
5540 { ac_try='test -s conftest.$ac_objext'
5541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5542 (eval $ac_try) 2>&5
5543 ac_status=$?
5544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545 (exit $ac_status); }; }; then
5546 eval "$as_ac_Header=yes"
5547 else
5548 echo "$as_me: failed program was:" >&5
5549 sed 's/^/| /' conftest.$ac_ext >&5
5551 eval "$as_ac_Header=no"
5553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5555 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5556 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5557 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5558 cat >>confdefs.h <<_ACEOF
5559 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5560 _ACEOF
5564 done
5568 # This can be used to rebuild libtool when needed
5569 LIBTOOL_DEPS="$ltmain"
5571 # Always use our own libtool.
5572 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5598 test -z "$LN_S" && LN_S="ln -s"
5613 if test -n "${ZSH_VERSION+set}" ; then
5614 setopt NO_GLOB_SUBST
5617 echo "$as_me:$LINENO: checking for objdir" >&5
5618 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5619 if test "${lt_cv_objdir+set}" = set; then
5620 echo $ECHO_N "(cached) $ECHO_C" >&6
5621 else
5622 rm -f .libs 2>/dev/null
5623 mkdir .libs 2>/dev/null
5624 if test -d .libs; then
5625 lt_cv_objdir=.libs
5626 else
5627 # MS-DOS does not allow filenames that begin with a dot.
5628 lt_cv_objdir=_libs
5630 rmdir .libs 2>/dev/null
5632 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5633 echo "${ECHO_T}$lt_cv_objdir" >&6
5634 objdir=$lt_cv_objdir
5640 cat >>confdefs.h <<_ACEOF
5641 #define LT_OBJDIR "$lt_cv_objdir/"
5642 _ACEOF
5660 case $host_os in
5661 aix3*)
5662 # AIX sometimes has problems with the GCC collect2 program. For some
5663 # reason, if we set the COLLECT_NAMES environment variable, the problems
5664 # vanish in a puff of smoke.
5665 if test "X${COLLECT_NAMES+set}" != Xset; then
5666 COLLECT_NAMES=
5667 export COLLECT_NAMES
5670 esac
5672 # Sed substitution that helps us do robust quoting. It backslashifies
5673 # metacharacters that are still active within double-quoted strings.
5674 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5676 # Same as above, but do not quote variable references.
5677 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5679 # Sed substitution to delay expansion of an escaped shell variable in a
5680 # double_quote_subst'ed string.
5681 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5683 # Sed substitution to delay expansion of an escaped single quote.
5684 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5686 # Sed substitution to avoid accidental globbing in evaled expressions
5687 no_glob_subst='s/\*/\\\*/g'
5689 # Global variables:
5690 ofile=libtool
5691 can_build_shared=yes
5693 # All known linkers require a `.a' archive for static linking (except MSVC,
5694 # which needs '.lib').
5695 libext=a
5697 with_gnu_ld="$lt_cv_prog_gnu_ld"
5699 old_CC="$CC"
5700 old_CFLAGS="$CFLAGS"
5702 # Set sane defaults for various variables
5703 test -z "$CC" && CC=cc
5704 test -z "$LTCC" && LTCC=$CC
5705 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
5706 test -z "$LD" && LD=ld
5707 test -z "$ac_objext" && ac_objext=o
5709 for cc_temp in $compiler""; do
5710 case $cc_temp in
5711 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5712 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5713 \-*) ;;
5714 *) break;;
5715 esac
5716 done
5717 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
5720 # Only perform the check for file, if the check method requires it
5721 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5722 case $deplibs_check_method in
5723 file_magic*)
5724 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5725 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5726 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5727 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5728 echo $ECHO_N "(cached) $ECHO_C" >&6
5729 else
5730 case $MAGIC_CMD in
5731 [\\/*] | ?:[\\/]*)
5732 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5735 lt_save_MAGIC_CMD="$MAGIC_CMD"
5736 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5737 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5738 for ac_dir in $ac_dummy; do
5739 IFS="$lt_save_ifs"
5740 test -z "$ac_dir" && ac_dir=.
5741 if test -f $ac_dir/${ac_tool_prefix}file; then
5742 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5743 if test -n "$file_magic_test_file"; then
5744 case $deplibs_check_method in
5745 "file_magic "*)
5746 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5747 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5748 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5749 $EGREP "$file_magic_regex" > /dev/null; then
5751 else
5752 cat <<_LT_EOF 1>&2
5754 *** Warning: the command libtool uses to detect shared libraries,
5755 *** $file_magic_cmd, produces output that libtool cannot recognize.
5756 *** The result is that libtool may fail to recognize shared libraries
5757 *** as such. This will affect the creation of libtool libraries that
5758 *** depend on shared libraries, but programs linked with such libtool
5759 *** libraries will work regardless of this problem. Nevertheless, you
5760 *** may want to report the problem to your system manager and/or to
5761 *** bug-libtool@gnu.org
5763 _LT_EOF
5764 fi ;;
5765 esac
5767 break
5769 done
5770 IFS="$lt_save_ifs"
5771 MAGIC_CMD="$lt_save_MAGIC_CMD"
5773 esac
5776 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5777 if test -n "$MAGIC_CMD"; then
5778 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5779 echo "${ECHO_T}$MAGIC_CMD" >&6
5780 else
5781 echo "$as_me:$LINENO: result: no" >&5
5782 echo "${ECHO_T}no" >&6
5789 if test -z "$lt_cv_path_MAGIC_CMD"; then
5790 if test -n "$ac_tool_prefix"; then
5791 echo "$as_me:$LINENO: checking for file" >&5
5792 echo $ECHO_N "checking for file... $ECHO_C" >&6
5793 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5794 echo $ECHO_N "(cached) $ECHO_C" >&6
5795 else
5796 case $MAGIC_CMD in
5797 [\\/*] | ?:[\\/]*)
5798 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5801 lt_save_MAGIC_CMD="$MAGIC_CMD"
5802 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5803 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5804 for ac_dir in $ac_dummy; do
5805 IFS="$lt_save_ifs"
5806 test -z "$ac_dir" && ac_dir=.
5807 if test -f $ac_dir/file; then
5808 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5809 if test -n "$file_magic_test_file"; then
5810 case $deplibs_check_method in
5811 "file_magic "*)
5812 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5813 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5814 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5815 $EGREP "$file_magic_regex" > /dev/null; then
5817 else
5818 cat <<_LT_EOF 1>&2
5820 *** Warning: the command libtool uses to detect shared libraries,
5821 *** $file_magic_cmd, produces output that libtool cannot recognize.
5822 *** The result is that libtool may fail to recognize shared libraries
5823 *** as such. This will affect the creation of libtool libraries that
5824 *** depend on shared libraries, but programs linked with such libtool
5825 *** libraries will work regardless of this problem. Nevertheless, you
5826 *** may want to report the problem to your system manager and/or to
5827 *** bug-libtool@gnu.org
5829 _LT_EOF
5830 fi ;;
5831 esac
5833 break
5835 done
5836 IFS="$lt_save_ifs"
5837 MAGIC_CMD="$lt_save_MAGIC_CMD"
5839 esac
5842 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5843 if test -n "$MAGIC_CMD"; then
5844 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5845 echo "${ECHO_T}$MAGIC_CMD" >&6
5846 else
5847 echo "$as_me:$LINENO: result: no" >&5
5848 echo "${ECHO_T}no" >&6
5852 else
5853 MAGIC_CMD=:
5859 esac
5861 # Use C for the default configuration in the libtool script
5863 lt_save_CC="$CC"
5864 ac_ext=c
5865 ac_cpp='$CPP $CPPFLAGS'
5866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5871 # Source file extension for C test sources.
5872 ac_ext=c
5874 # Object file extension for compiled C test sources.
5875 objext=o
5876 objext=$objext
5878 # Code to be used in simple compile tests
5879 lt_simple_compile_test_code="int some_variable = 0;"
5881 # Code to be used in simple link tests
5882 lt_simple_link_test_code='int main(){return(0);}'
5890 # If no C compiler was specified, use CC.
5891 LTCC=${LTCC-"$CC"}
5893 # If no C compiler flags were specified, use CFLAGS.
5894 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5896 # Allow CC to be a program name with arguments.
5897 compiler=$CC
5899 # Save the default compiler, since it gets overwritten when the other
5900 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
5901 compiler_DEFAULT=$CC
5903 # save warnings/boilerplate of simple test code
5904 ac_outfile=conftest.$ac_objext
5905 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
5906 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
5907 _lt_compiler_boilerplate=`cat conftest.err`
5908 $RM conftest*
5910 ac_outfile=conftest.$ac_objext
5911 echo "$lt_simple_link_test_code" >conftest.$ac_ext
5912 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
5913 _lt_linker_boilerplate=`cat conftest.err`
5914 $RM conftest*
5917 ## CAVEAT EMPTOR:
5918 ## There is no encapsulation within the following macros, do not change
5919 ## the running order or otherwise move them around unless you know exactly
5920 ## what you are doing...
5921 if test -n "$compiler"; then
5923 lt_prog_compiler_no_builtin_flag=
5925 if test "$GCC" = yes; then
5926 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5928 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5929 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5930 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5931 echo $ECHO_N "(cached) $ECHO_C" >&6
5932 else
5933 lt_cv_prog_compiler_rtti_exceptions=no
5934 ac_outfile=conftest.$ac_objext
5935 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5936 lt_compiler_flag="-fno-rtti -fno-exceptions"
5937 # Insert the option either (1) after the last *FLAGS variable, or
5938 # (2) before a word containing "conftest.", or (3) at the end.
5939 # Note that $ac_compile itself does not contain backslashes and begins
5940 # with a dollar sign (not a hyphen), so the echo should work correctly.
5941 # The option is referenced via a variable to avoid confusing sed.
5942 lt_compile=`echo "$ac_compile" | $SED \
5943 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
5944 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5945 -e 's:$: $lt_compiler_flag:'`
5946 (eval echo "\"\$as_me:5946: $lt_compile\"" >&5)
5947 (eval "$lt_compile" 2>conftest.err)
5948 ac_status=$?
5949 cat conftest.err >&5
5950 echo "$as_me:5950: \$? = $ac_status" >&5
5951 if (exit $ac_status) && test -s "$ac_outfile"; then
5952 # The compiler can only warn and ignore the option if not recognized
5953 # So say no if there are warnings other than the usual output.
5954 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
5955 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
5956 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
5957 lt_cv_prog_compiler_rtti_exceptions=yes
5960 $RM conftest*
5963 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5964 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5966 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5967 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5968 else
5979 lt_prog_compiler_wl=
5980 lt_prog_compiler_pic=
5981 lt_prog_compiler_static=
5983 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5984 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5986 if test "$GCC" = yes; then
5987 lt_prog_compiler_wl='-Wl,'
5988 lt_prog_compiler_static='-static'
5990 case $host_os in
5991 aix*)
5992 # All AIX code is PIC.
5993 if test "$host_cpu" = ia64; then
5994 # AIX 5 now supports IA64 processor
5995 lt_prog_compiler_static='-Bstatic'
5999 amigaos*)
6000 if test "$host_cpu" = m68k; then
6001 # FIXME: we need at least 68020 code to build shared libraries, but
6002 # adding the `-m68020' flag to GCC prevents building anything better,
6003 # like `-m68040'.
6004 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6008 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6009 # PIC is the default for these OSes.
6012 mingw* | cygwin* | pw32* | os2*)
6013 # This hack is so that the source file can tell whether it is being
6014 # built for inclusion in a dll (and should export symbols for example).
6015 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6016 # (--disable-auto-import) libraries
6017 lt_prog_compiler_pic='-DDLL_EXPORT'
6020 darwin* | rhapsody*)
6021 # PIC is the default on this platform
6022 # Common symbols not allowed in MH_DYLIB files
6023 lt_prog_compiler_pic='-fno-common'
6026 hpux*)
6027 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6028 # not for PA HP-UX.
6029 case $host_cpu in
6030 hppa*64*|ia64*)
6031 # +Z the default
6034 lt_prog_compiler_pic='-fPIC'
6036 esac
6039 interix[3-9]*)
6040 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6041 # Instead, we relocate shared libraries at runtime.
6044 msdosdjgpp*)
6045 # Just because we use GCC doesn't mean we suddenly get shared libraries
6046 # on systems that don't support them.
6047 lt_prog_compiler_can_build_shared=no
6048 enable_shared=no
6051 *nto* | *qnx*)
6052 # QNX uses GNU C++, but need to define -shared option too, otherwise
6053 # it will coredump.
6054 lt_prog_compiler_pic='-fPIC -shared'
6057 sysv4*MP*)
6058 if test -d /usr/nec; then
6059 lt_prog_compiler_pic=-Kconform_pic
6064 lt_prog_compiler_pic='-fPIC'
6066 esac
6067 else
6068 # PORTME Check for flag to pass linker flags through the system compiler.
6069 case $host_os in
6070 aix*)
6071 lt_prog_compiler_wl='-Wl,'
6072 if test "$host_cpu" = ia64; then
6073 # AIX 5 now supports IA64 processor
6074 lt_prog_compiler_static='-Bstatic'
6075 else
6076 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6079 darwin*)
6080 # PIC is the default on this platform
6081 # Common symbols not allowed in MH_DYLIB files
6082 case $cc_basename in
6083 xlc*)
6084 lt_prog_compiler_pic='-qnocommon'
6085 lt_prog_compiler_wl='-Wl,'
6087 esac
6090 mingw* | cygwin* | pw32* | os2*)
6091 # This hack is so that the source file can tell whether it is being
6092 # built for inclusion in a dll (and should export symbols for example).
6093 lt_prog_compiler_pic='-DDLL_EXPORT'
6096 hpux9* | hpux10* | hpux11*)
6097 lt_prog_compiler_wl='-Wl,'
6098 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6099 # not for PA HP-UX.
6100 case $host_cpu in
6101 hppa*64*|ia64*)
6102 # +Z the default
6105 lt_prog_compiler_pic='+Z'
6107 esac
6108 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6109 lt_prog_compiler_static='${wl}-a ${wl}archive'
6112 irix5* | irix6* | nonstopux*)
6113 lt_prog_compiler_wl='-Wl,'
6114 # PIC (with -KPIC) is the default.
6115 lt_prog_compiler_static='-non_shared'
6118 linux* | k*bsd*-gnu)
6119 case $cc_basename in
6120 icc* | ecc*)
6121 lt_prog_compiler_wl='-Wl,'
6122 lt_prog_compiler_pic='-KPIC'
6123 lt_prog_compiler_static='-static'
6125 pgcc* | pgf77* | pgf90* | pgf95*)
6126 # Portland Group compilers (*not* the Pentium gcc compiler,
6127 # which looks to be a dead project)
6128 lt_prog_compiler_wl='-Wl,'
6129 lt_prog_compiler_pic='-fpic'
6130 lt_prog_compiler_static='-Bstatic'
6132 ccc*)
6133 lt_prog_compiler_wl='-Wl,'
6134 # All Alpha code is PIC.
6135 lt_prog_compiler_static='-non_shared'
6138 case `$CC -V 2>&1 | sed 5q` in
6139 *Sun\ C*)
6140 # Sun C 5.9
6141 lt_prog_compiler_pic='-KPIC'
6142 lt_prog_compiler_static='-Bstatic'
6143 lt_prog_compiler_wl='-Wl,'
6145 *Sun\ F*)
6146 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6147 lt_prog_compiler_pic='-KPIC'
6148 lt_prog_compiler_static='-Bstatic'
6149 lt_prog_compiler_wl=''
6151 esac
6153 esac
6156 newsos6)
6157 lt_prog_compiler_pic='-KPIC'
6158 lt_prog_compiler_static='-Bstatic'
6161 *nto* | *qnx*)
6162 # QNX uses GNU C++, but need to define -shared option too, otherwise
6163 # it will coredump.
6164 lt_prog_compiler_pic='-fPIC -shared'
6167 osf3* | osf4* | osf5*)
6168 lt_prog_compiler_wl='-Wl,'
6169 # All OSF/1 code is PIC.
6170 lt_prog_compiler_static='-non_shared'
6173 rdos*)
6174 lt_prog_compiler_static='-non_shared'
6177 solaris*)
6178 lt_prog_compiler_pic='-KPIC'
6179 lt_prog_compiler_static='-Bstatic'
6180 case $cc_basename in
6181 f77* | f90* | f95*)
6182 lt_prog_compiler_wl='-Qoption ld ';;
6184 lt_prog_compiler_wl='-Wl,';;
6185 esac
6188 sunos4*)
6189 lt_prog_compiler_wl='-Qoption ld '
6190 lt_prog_compiler_pic='-PIC'
6191 lt_prog_compiler_static='-Bstatic'
6194 sysv4 | sysv4.2uw2* | sysv4.3*)
6195 lt_prog_compiler_wl='-Wl,'
6196 lt_prog_compiler_pic='-KPIC'
6197 lt_prog_compiler_static='-Bstatic'
6200 sysv4*MP*)
6201 if test -d /usr/nec ;then
6202 lt_prog_compiler_pic='-Kconform_pic'
6203 lt_prog_compiler_static='-Bstatic'
6207 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6208 lt_prog_compiler_wl='-Wl,'
6209 lt_prog_compiler_pic='-KPIC'
6210 lt_prog_compiler_static='-Bstatic'
6213 unicos*)
6214 lt_prog_compiler_wl='-Wl,'
6215 lt_prog_compiler_can_build_shared=no
6218 uts4*)
6219 lt_prog_compiler_pic='-pic'
6220 lt_prog_compiler_static='-Bstatic'
6224 lt_prog_compiler_can_build_shared=no
6226 esac
6229 case $host_os in
6230 # For platforms which do not support PIC, -DPIC is meaningless:
6231 *djgpp*)
6232 lt_prog_compiler_pic=
6235 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6237 esac
6238 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6239 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6247 # Check to make sure the PIC flag actually works.
6249 if test -n "$lt_prog_compiler_pic"; then
6250 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6251 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6252 if test "${lt_prog_compiler_pic_works+set}" = set; then
6253 echo $ECHO_N "(cached) $ECHO_C" >&6
6254 else
6255 lt_prog_compiler_pic_works=no
6256 ac_outfile=conftest.$ac_objext
6257 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6258 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6259 # Insert the option either (1) after the last *FLAGS variable, or
6260 # (2) before a word containing "conftest.", or (3) at the end.
6261 # Note that $ac_compile itself does not contain backslashes and begins
6262 # with a dollar sign (not a hyphen), so the echo should work correctly.
6263 # The option is referenced via a variable to avoid confusing sed.
6264 lt_compile=`echo "$ac_compile" | $SED \
6265 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6266 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6267 -e 's:$: $lt_compiler_flag:'`
6268 (eval echo "\"\$as_me:6268: $lt_compile\"" >&5)
6269 (eval "$lt_compile" 2>conftest.err)
6270 ac_status=$?
6271 cat conftest.err >&5
6272 echo "$as_me:6272: \$? = $ac_status" >&5
6273 if (exit $ac_status) && test -s "$ac_outfile"; then
6274 # The compiler can only warn and ignore the option if not recognized
6275 # So say no if there are warnings other than the usual output.
6276 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6277 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6278 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6279 lt_prog_compiler_pic_works=yes
6282 $RM conftest*
6285 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6286 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6288 if test x"$lt_prog_compiler_pic_works" = xyes; then
6289 case $lt_prog_compiler_pic in
6290 "" | " "*) ;;
6291 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6292 esac
6293 else
6294 lt_prog_compiler_pic=
6295 lt_prog_compiler_can_build_shared=no
6306 # Check to make sure the static flag actually works.
6308 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6309 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6310 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6311 if test "${lt_prog_compiler_static_works+set}" = set; then
6312 echo $ECHO_N "(cached) $ECHO_C" >&6
6313 else
6314 lt_prog_compiler_static_works=no
6315 save_LDFLAGS="$LDFLAGS"
6316 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6317 echo "$lt_simple_link_test_code" > conftest.$ac_ext
6318 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6319 # The linker can only warn and ignore the option if not recognized
6320 # So say no if there are warnings
6321 if test -s conftest.err; then
6322 # Append any errors to the config.log.
6323 cat conftest.err 1>&5
6324 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6325 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6326 if diff conftest.exp conftest.er2 >/dev/null; then
6327 lt_prog_compiler_static_works=yes
6329 else
6330 lt_prog_compiler_static_works=yes
6333 $RM conftest*
6334 LDFLAGS="$save_LDFLAGS"
6337 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6338 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6340 if test x"$lt_prog_compiler_static_works" = xyes; then
6342 else
6343 lt_prog_compiler_static=
6352 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6353 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6354 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6355 echo $ECHO_N "(cached) $ECHO_C" >&6
6356 else
6357 lt_cv_prog_compiler_c_o=no
6358 $RM -r conftest 2>/dev/null
6359 mkdir conftest
6360 cd conftest
6361 mkdir out
6362 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6364 lt_compiler_flag="-o out/conftest2.$ac_objext"
6365 # Insert the option either (1) after the last *FLAGS variable, or
6366 # (2) before a word containing "conftest.", or (3) at the end.
6367 # Note that $ac_compile itself does not contain backslashes and begins
6368 # with a dollar sign (not a hyphen), so the echo should work correctly.
6369 lt_compile=`echo "$ac_compile" | $SED \
6370 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6371 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6372 -e 's:$: $lt_compiler_flag:'`
6373 (eval echo "\"\$as_me:6373: $lt_compile\"" >&5)
6374 (eval "$lt_compile" 2>out/conftest.err)
6375 ac_status=$?
6376 cat out/conftest.err >&5
6377 echo "$as_me:6377: \$? = $ac_status" >&5
6378 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6379 then
6380 # The compiler can only warn and ignore the option if not recognized
6381 # So say no if there are warnings
6382 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6383 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6384 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6385 lt_cv_prog_compiler_c_o=yes
6388 chmod u+w . 2>&5
6389 $RM conftest*
6390 # SGI C++ compiler will create directory out/ii_files/ for
6391 # template instantiation
6392 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6393 $RM out/* && rmdir out
6394 cd ..
6395 $RM -r conftest
6396 $RM conftest*
6399 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6400 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6407 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6408 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6409 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6410 echo $ECHO_N "(cached) $ECHO_C" >&6
6411 else
6412 lt_cv_prog_compiler_c_o=no
6413 $RM -r conftest 2>/dev/null
6414 mkdir conftest
6415 cd conftest
6416 mkdir out
6417 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6419 lt_compiler_flag="-o out/conftest2.$ac_objext"
6420 # Insert the option either (1) after the last *FLAGS variable, or
6421 # (2) before a word containing "conftest.", or (3) at the end.
6422 # Note that $ac_compile itself does not contain backslashes and begins
6423 # with a dollar sign (not a hyphen), so the echo should work correctly.
6424 lt_compile=`echo "$ac_compile" | $SED \
6425 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6426 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6427 -e 's:$: $lt_compiler_flag:'`
6428 (eval echo "\"\$as_me:6428: $lt_compile\"" >&5)
6429 (eval "$lt_compile" 2>out/conftest.err)
6430 ac_status=$?
6431 cat out/conftest.err >&5
6432 echo "$as_me:6432: \$? = $ac_status" >&5
6433 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6434 then
6435 # The compiler can only warn and ignore the option if not recognized
6436 # So say no if there are warnings
6437 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6438 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6439 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6440 lt_cv_prog_compiler_c_o=yes
6443 chmod u+w . 2>&5
6444 $RM conftest*
6445 # SGI C++ compiler will create directory out/ii_files/ for
6446 # template instantiation
6447 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6448 $RM out/* && rmdir out
6449 cd ..
6450 $RM -r conftest
6451 $RM conftest*
6454 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6455 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6460 hard_links="nottested"
6461 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6462 # do not overwrite the value of need_locks provided by the user
6463 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6464 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6465 hard_links=yes
6466 $RM conftest*
6467 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6468 touch conftest.a
6469 ln conftest.a conftest.b 2>&5 || hard_links=no
6470 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6471 echo "$as_me:$LINENO: result: $hard_links" >&5
6472 echo "${ECHO_T}$hard_links" >&6
6473 if test "$hard_links" = no; then
6474 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6475 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6476 need_locks=warn
6478 else
6479 need_locks=no
6487 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6488 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6490 runpath_var=
6491 allow_undefined_flag=
6492 always_export_symbols=no
6493 archive_cmds=
6494 archive_expsym_cmds=
6495 compiler_needs_object=no
6496 enable_shared_with_static_runtimes=no
6497 export_dynamic_flag_spec=
6498 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6499 hardcode_automatic=no
6500 hardcode_direct=no
6501 hardcode_direct_absolute=no
6502 hardcode_libdir_flag_spec=
6503 hardcode_libdir_flag_spec_ld=
6504 hardcode_libdir_separator=
6505 hardcode_minus_L=no
6506 hardcode_shlibpath_var=unsupported
6507 inherit_rpath=no
6508 link_all_deplibs=unknown
6509 module_cmds=
6510 module_expsym_cmds=
6511 old_archive_from_new_cmds=
6512 old_archive_from_expsyms_cmds=
6513 thread_safe_flag_spec=
6514 whole_archive_flag_spec=
6515 # include_expsyms should be a list of space-separated symbols to be *always*
6516 # included in the symbol list
6517 include_expsyms=
6518 # exclude_expsyms can be an extended regexp of symbols to exclude
6519 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6520 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6521 # as well as any symbol that contains `d'.
6522 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6523 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6524 # platforms (ab)use it in PIC code, but their linkers get confused if
6525 # the symbol is explicitly referenced. Since portable code cannot
6526 # rely on this symbol name, it's probably fine to never include it in
6527 # preloaded symbol tables.
6528 extract_expsyms_cmds=
6530 case $host_os in
6531 cygwin* | mingw* | pw32*)
6532 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6533 # When not using gcc, we currently assume that we are using
6534 # Microsoft Visual C++.
6535 if test "$GCC" != yes; then
6536 with_gnu_ld=no
6539 interix*)
6540 # we just hope/assume this is gcc and not c89 (= MSVC++)
6541 with_gnu_ld=yes
6543 openbsd*)
6544 with_gnu_ld=no
6546 esac
6548 ld_shlibs=yes
6549 if test "$with_gnu_ld" = yes; then
6550 # If archive_cmds runs LD, not CC, wlarc should be empty
6551 wlarc='${wl}'
6553 # Set some defaults for GNU ld with shared library support. These
6554 # are reset later if shared libraries are not supported. Putting them
6555 # here allows them to be overridden if necessary.
6556 runpath_var=LD_RUN_PATH
6557 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6558 export_dynamic_flag_spec='${wl}--export-dynamic'
6559 # ancient GNU ld didn't support --whole-archive et. al.
6560 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
6561 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6562 else
6563 whole_archive_flag_spec=
6565 supports_anon_versioning=no
6566 case `$LD -v 2>&1` in
6567 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6568 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6569 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6570 *\ 2.11.*) ;; # other 2.11 versions
6571 *) supports_anon_versioning=yes ;;
6572 esac
6574 # See if GNU ld supports shared libraries.
6575 case $host_os in
6576 aix[3-9]*)
6577 # On AIX/PPC, the GNU linker is very broken
6578 if test "$host_cpu" != ia64; then
6579 ld_shlibs=no
6580 cat <<_LT_EOF 1>&2
6582 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6583 *** to be unable to reliably create shared libraries on AIX.
6584 *** Therefore, libtool is disabling shared libraries support. If you
6585 *** really care for shared libraries, you may want to modify your PATH
6586 *** so that a non-GNU linker is found, and then restart.
6588 _LT_EOF
6592 amigaos*)
6593 if test "$host_cpu" = m68k; then
6594 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)'
6595 hardcode_libdir_flag_spec='-L$libdir'
6596 hardcode_minus_L=yes
6599 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6600 # that the semantics of dynamic libraries on AmigaOS, at least up
6601 # to version 4, is to share data among multiple programs linked
6602 # with the same dynamic library. Since this doesn't match the
6603 # behavior of shared libraries on other platforms, we can't use
6604 # them.
6605 ld_shlibs=no
6608 beos*)
6609 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6610 allow_undefined_flag=unsupported
6611 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6612 # support --undefined. This deserves some investigation. FIXME
6613 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6614 else
6615 ld_shlibs=no
6619 cygwin* | mingw* | pw32*)
6620 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6621 # as there is no search path for DLLs.
6622 hardcode_libdir_flag_spec='-L$libdir'
6623 allow_undefined_flag=unsupported
6624 always_export_symbols=no
6625 enable_shared_with_static_runtimes=yes
6626 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
6628 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6629 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6630 # If the export-symbols file already is a .def file (1st line
6631 # is EXPORTS), use it as is; otherwise, prepend...
6632 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6633 cp $export_symbols $output_objdir/$soname.def;
6634 else
6635 echo EXPORTS > $output_objdir/$soname.def;
6636 cat $export_symbols >> $output_objdir/$soname.def;
6638 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6639 else
6640 ld_shlibs=no
6644 interix[3-9]*)
6645 hardcode_direct=no
6646 hardcode_shlibpath_var=no
6647 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6648 export_dynamic_flag_spec='${wl}-E'
6649 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6650 # Instead, shared libraries are loaded at an image base (0x10000000 by
6651 # default) and relocated if they conflict, which is a slow very memory
6652 # consuming and fragmenting process. To avoid this, we pick a random,
6653 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6654 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6655 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6656 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'
6659 gnu* | linux* | tpf* | k*bsd*-gnu)
6660 tmp_diet=no
6661 if test "$host_os" = linux-dietlibc; then
6662 case $cc_basename in
6663 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
6664 esac
6666 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
6667 && test "$tmp_diet" = no
6668 then
6669 tmp_addflag=
6670 case $cc_basename,$host_cpu in
6671 pgcc*) # Portland Group C compiler
6672 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'
6673 tmp_addflag=' $pic_flag'
6675 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
6676 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'
6677 tmp_addflag=' $pic_flag -Mnomain' ;;
6678 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6679 tmp_addflag=' -i_dynamic' ;;
6680 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6681 tmp_addflag=' -i_dynamic -nofor_main' ;;
6682 ifc* | ifort*) # Intel Fortran compiler
6683 tmp_addflag=' -nofor_main' ;;
6684 esac
6685 case `$CC -V 2>&1 | sed 5q` in
6686 *Sun\ C*) # Sun C 5.9
6687 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'
6688 compiler_needs_object=yes
6689 tmp_sharedflag='-G' ;;
6690 *Sun\ F*) # Sun Fortran 8.3
6691 tmp_sharedflag='-G' ;;
6693 tmp_sharedflag='-shared' ;;
6694 esac
6695 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6697 if test "x$supports_anon_versioning" = xyes; then
6698 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
6699 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6700 echo "local: *; };" >> $output_objdir/$libname.ver~
6701 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6703 else
6704 ld_shlibs=no
6708 netbsd*)
6709 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6710 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6711 wlarc=
6712 else
6713 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6714 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6718 solaris*)
6719 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
6720 ld_shlibs=no
6721 cat <<_LT_EOF 1>&2
6723 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6724 *** create shared libraries on Solaris systems. Therefore, libtool
6725 *** is disabling shared libraries support. We urge you to upgrade GNU
6726 *** binutils to release 2.9.1 or newer. Another option is to modify
6727 *** your PATH or compiler configuration so that the native linker is
6728 *** used, and then restart.
6730 _LT_EOF
6731 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6732 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6733 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6734 else
6735 ld_shlibs=no
6739 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6740 case `$LD -v 2>&1` in
6741 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
6742 ld_shlibs=no
6743 cat <<_LT_EOF 1>&2
6745 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
6746 *** reliably create shared libraries on SCO systems. Therefore, libtool
6747 *** is disabling shared libraries support. We urge you to upgrade GNU
6748 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
6749 *** your PATH or compiler configuration so that the native linker is
6750 *** used, and then restart.
6752 _LT_EOF
6755 # For security reasons, it is highly recommended that you always
6756 # use absolute paths for naming shared libraries, and exclude the
6757 # DT_RUNPATH tag from executables and libraries. But doing so
6758 # requires that you compile everything twice, which is a pain.
6759 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6760 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6761 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6762 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6763 else
6764 ld_shlibs=no
6767 esac
6770 sunos4*)
6771 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6772 wlarc=
6773 hardcode_direct=yes
6774 hardcode_shlibpath_var=no
6778 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6779 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6780 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6781 else
6782 ld_shlibs=no
6785 esac
6787 if test "$ld_shlibs" = no; then
6788 runpath_var=
6789 hardcode_libdir_flag_spec=
6790 export_dynamic_flag_spec=
6791 whole_archive_flag_spec=
6793 else
6794 # PORTME fill in a description of your system's linker (not GNU ld)
6795 case $host_os in
6796 aix3*)
6797 allow_undefined_flag=unsupported
6798 always_export_symbols=yes
6799 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'
6800 # Note: this linker hardcodes the directories in LIBPATH if there
6801 # are no directories specified by -L.
6802 hardcode_minus_L=yes
6803 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
6804 # Neither direct hardcoding nor static linking is supported with a
6805 # broken collect2.
6806 hardcode_direct=unsupported
6810 aix[4-9]*)
6811 if test "$host_cpu" = ia64; then
6812 # On IA64, the linker does run time linking by default, so we don't
6813 # have to do anything special.
6814 aix_use_runtimelinking=no
6815 exp_sym_flag='-Bexport'
6816 no_entry_flag=""
6817 else
6818 # If we're using GNU nm, then we don't want the "-C" option.
6819 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6820 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
6821 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'
6822 else
6823 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'
6825 aix_use_runtimelinking=no
6827 # Test if we are trying to use run time linking or normal
6828 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6829 # need to do runtime linking.
6830 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
6831 for ld_flag in $LDFLAGS; do
6832 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6833 aix_use_runtimelinking=yes
6834 break
6836 done
6838 esac
6840 exp_sym_flag='-bexport'
6841 no_entry_flag='-bnoentry'
6844 # When large executables or shared objects are built, AIX ld can
6845 # have problems creating the table of contents. If linking a library
6846 # or program results in "error TOC overflow" add -mminimal-toc to
6847 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6848 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6850 archive_cmds=''
6851 hardcode_direct=yes
6852 hardcode_direct_absolute=yes
6853 hardcode_libdir_separator=':'
6854 link_all_deplibs=yes
6855 file_list_spec='${wl}-f,'
6857 if test "$GCC" = yes; then
6858 case $host_os in aix4.[012]|aix4.[012].*)
6859 # We only want to do this on AIX 4.2 and lower, the check
6860 # below for broken collect2 doesn't work under 4.3+
6861 collect2name=`${CC} -print-prog-name=collect2`
6862 if test -f "$collect2name" &&
6863 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
6864 then
6865 # We have reworked collect2
6867 else
6868 # We have old collect2
6869 hardcode_direct=unsupported
6870 # It fails to find uninstalled libraries when the uninstalled
6871 # path is not listed in the libpath. Setting hardcode_minus_L
6872 # to unsupported forces relinking
6873 hardcode_minus_L=yes
6874 hardcode_libdir_flag_spec='-L$libdir'
6875 hardcode_libdir_separator=
6878 esac
6879 shared_flag='-shared'
6880 if test "$aix_use_runtimelinking" = yes; then
6881 shared_flag="$shared_flag "'${wl}-G'
6883 else
6884 # not using gcc
6885 if test "$host_cpu" = ia64; then
6886 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6887 # chokes on -Wl,-G. The following line is correct:
6888 shared_flag='-G'
6889 else
6890 if test "$aix_use_runtimelinking" = yes; then
6891 shared_flag='${wl}-G'
6892 else
6893 shared_flag='${wl}-bM:SRE'
6898 # It seems that -bexpall does not export symbols beginning with
6899 # underscore (_), so it is better to generate a list of symbols to export.
6900 always_export_symbols=yes
6901 if test "$aix_use_runtimelinking" = yes; then
6902 # Warning - without using the other runtime loading flags (-brtl),
6903 # -berok will link without error, but may produce a broken library.
6904 allow_undefined_flag='-berok'
6905 # Determine the default libpath from the value encoded in an
6906 # empty executable.
6907 if test x$gcc_no_link = xyes; then
6908 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6909 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6910 { (exit 1); exit 1; }; }
6912 cat >conftest.$ac_ext <<_ACEOF
6913 /* confdefs.h. */
6914 _ACEOF
6915 cat confdefs.h >>conftest.$ac_ext
6916 cat >>conftest.$ac_ext <<_ACEOF
6917 /* end confdefs.h. */
6920 main ()
6924 return 0;
6926 _ACEOF
6927 rm -f conftest.$ac_objext conftest$ac_exeext
6928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6929 (eval $ac_link) 2>conftest.er1
6930 ac_status=$?
6931 grep -v '^ *+' conftest.er1 >conftest.err
6932 rm -f conftest.er1
6933 cat conftest.err >&5
6934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6935 (exit $ac_status); } &&
6936 { ac_try='test -z "$ac_c_werror_flag"
6937 || test ! -s conftest.err'
6938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6939 (eval $ac_try) 2>&5
6940 ac_status=$?
6941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6942 (exit $ac_status); }; } &&
6943 { ac_try='test -s conftest$ac_exeext'
6944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6945 (eval $ac_try) 2>&5
6946 ac_status=$?
6947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6948 (exit $ac_status); }; }; then
6950 lt_aix_libpath_sed='
6951 /Import File Strings/,/^$/ {
6952 /^0/ {
6953 s/^0 *\(.*\)$/\1/
6957 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
6958 # Check for a 64-bit object if we didn't find anything.
6959 if test -z "$aix_libpath"; then
6960 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
6962 else
6963 echo "$as_me: failed program was:" >&5
6964 sed 's/^/| /' conftest.$ac_ext >&5
6967 rm -f conftest.err conftest.$ac_objext \
6968 conftest$ac_exeext conftest.$ac_ext
6969 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6971 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6972 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"
6973 else
6974 if test "$host_cpu" = ia64; then
6975 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6976 allow_undefined_flag="-z nodefs"
6977 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"
6978 else
6979 # Determine the default libpath from the value encoded in an
6980 # empty executable.
6981 if test x$gcc_no_link = xyes; then
6982 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6983 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6984 { (exit 1); exit 1; }; }
6986 cat >conftest.$ac_ext <<_ACEOF
6987 /* confdefs.h. */
6988 _ACEOF
6989 cat confdefs.h >>conftest.$ac_ext
6990 cat >>conftest.$ac_ext <<_ACEOF
6991 /* end confdefs.h. */
6994 main ()
6998 return 0;
7000 _ACEOF
7001 rm -f conftest.$ac_objext conftest$ac_exeext
7002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7003 (eval $ac_link) 2>conftest.er1
7004 ac_status=$?
7005 grep -v '^ *+' conftest.er1 >conftest.err
7006 rm -f conftest.er1
7007 cat conftest.err >&5
7008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009 (exit $ac_status); } &&
7010 { ac_try='test -z "$ac_c_werror_flag"
7011 || test ! -s conftest.err'
7012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7013 (eval $ac_try) 2>&5
7014 ac_status=$?
7015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016 (exit $ac_status); }; } &&
7017 { ac_try='test -s conftest$ac_exeext'
7018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7019 (eval $ac_try) 2>&5
7020 ac_status=$?
7021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7022 (exit $ac_status); }; }; then
7024 lt_aix_libpath_sed='
7025 /Import File Strings/,/^$/ {
7026 /^0/ {
7027 s/^0 *\(.*\)$/\1/
7031 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7032 # Check for a 64-bit object if we didn't find anything.
7033 if test -z "$aix_libpath"; then
7034 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7036 else
7037 echo "$as_me: failed program was:" >&5
7038 sed 's/^/| /' conftest.$ac_ext >&5
7041 rm -f conftest.err conftest.$ac_objext \
7042 conftest$ac_exeext conftest.$ac_ext
7043 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7045 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7046 # Warning - without using the other run time loading flags,
7047 # -berok will link without error, but may produce a broken library.
7048 no_undefined_flag=' ${wl}-bernotok'
7049 allow_undefined_flag=' ${wl}-berok'
7050 # Exported symbols can be pulled into shared objects from archives
7051 whole_archive_flag_spec='$convenience'
7052 archive_cmds_need_lc=yes
7053 # This is similar to how AIX traditionally builds its shared libraries.
7054 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'
7059 amigaos*)
7060 if test "$host_cpu" = m68k; then
7061 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)'
7062 hardcode_libdir_flag_spec='-L$libdir'
7063 hardcode_minus_L=yes
7065 # see comment about different semantics on the GNU ld section
7066 ld_shlibs=no
7069 bsdi[45]*)
7070 export_dynamic_flag_spec=-rdynamic
7073 cygwin* | mingw* | pw32*)
7074 # When not using gcc, we currently assume that we are using
7075 # Microsoft Visual C++.
7076 # hardcode_libdir_flag_spec is actually meaningless, as there is
7077 # no search path for DLLs.
7078 hardcode_libdir_flag_spec=' '
7079 allow_undefined_flag=unsupported
7080 # Tell ltmain to make .lib files, not .a files.
7081 libext=lib
7082 # Tell ltmain to make .dll files, not .so files.
7083 shrext_cmds=".dll"
7084 # FIXME: Setting linknames here is a bad hack.
7085 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7086 # The linker will automatically build a .lib file if we build a DLL.
7087 old_archive_from_new_cmds='true'
7088 # FIXME: Should let the user specify the lib program.
7089 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7090 fix_srcfile_path='`cygpath -w "$srcfile"`'
7091 enable_shared_with_static_runtimes=yes
7094 darwin* | rhapsody*)
7095 case $host_os in
7096 rhapsody* | darwin1.[012])
7097 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7099 *) # Darwin 1.3 on
7100 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7101 10.[012])
7102 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7104 10.*)
7105 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7107 esac
7109 esac
7110 archive_cmds_need_lc=no
7111 hardcode_direct=no
7112 hardcode_automatic=yes
7113 hardcode_shlibpath_var=unsupported
7114 whole_archive_flag_spec=''
7115 link_all_deplibs=yes
7116 if test "$GCC" = yes ; then
7117 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7118 echo $ECHO_N "(cached) $ECHO_C" >&6
7119 else
7120 lt_cv_apple_cc_single_mod=no
7121 if test -z "${LT_MULTI_MODULE}"; then
7122 # By default we will add the -single_module flag. You can override
7123 # by either setting the environment variable LT_MULTI_MODULE
7124 # non-empty at configure time, or by adding -multi-module to the
7125 # link flags.
7126 echo "int foo(void){return 1;}" > conftest.c
7127 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7128 -dynamiclib ${wl}-single_module conftest.c
7129 if test -f libconftest.dylib; then
7130 lt_cv_apple_cc_single_mod=yes
7131 rm libconftest.dylib
7133 rm conftest.$ac_ext
7137 output_verbose_link_cmd=echo
7138 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
7139 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7140 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}'
7141 else
7142 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7143 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}'
7145 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7146 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}'
7147 else
7148 case $cc_basename in
7149 xlc*)
7150 output_verbose_link_cmd=echo
7151 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
7152 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7153 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7154 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}'
7155 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}'
7158 ld_shlibs=no
7160 esac
7164 dgux*)
7165 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7166 hardcode_libdir_flag_spec='-L$libdir'
7167 hardcode_shlibpath_var=no
7170 freebsd1*)
7171 ld_shlibs=no
7174 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7175 # support. Future versions do this automatically, but an explicit c++rt0.o
7176 # does not break anything, and helps significantly (at the cost of a little
7177 # extra space).
7178 freebsd2.2*)
7179 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7180 hardcode_libdir_flag_spec='-R$libdir'
7181 hardcode_direct=yes
7182 hardcode_shlibpath_var=no
7185 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7186 freebsd2*)
7187 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7188 hardcode_direct=yes
7189 hardcode_minus_L=yes
7190 hardcode_shlibpath_var=no
7193 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7194 freebsd* | dragonfly*)
7195 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7196 hardcode_libdir_flag_spec='-R$libdir'
7197 hardcode_direct=yes
7198 hardcode_shlibpath_var=no
7201 hpux9*)
7202 if test "$GCC" = yes; then
7203 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'
7204 else
7205 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'
7207 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7208 hardcode_libdir_separator=:
7209 hardcode_direct=yes
7211 # hardcode_minus_L: Not really in the search PATH,
7212 # but as the default location of the library.
7213 hardcode_minus_L=yes
7214 export_dynamic_flag_spec='${wl}-E'
7217 hpux10*)
7218 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7219 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7220 else
7221 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7223 if test "$with_gnu_ld" = no; then
7224 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7225 hardcode_libdir_flag_spec_ld='+b $libdir'
7226 hardcode_libdir_separator=:
7227 hardcode_direct=yes
7228 hardcode_direct_absolute=yes
7229 export_dynamic_flag_spec='${wl}-E'
7230 # hardcode_minus_L: Not really in the search PATH,
7231 # but as the default location of the library.
7232 hardcode_minus_L=yes
7236 hpux11*)
7237 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7238 case $host_cpu in
7239 hppa*64*)
7240 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7242 ia64*)
7243 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7246 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7248 esac
7249 else
7250 case $host_cpu in
7251 hppa*64*)
7252 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7254 ia64*)
7255 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7258 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7260 esac
7262 if test "$with_gnu_ld" = no; then
7263 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7264 hardcode_libdir_separator=:
7266 case $host_cpu in
7267 hppa*64*|ia64*)
7268 hardcode_direct=no
7269 hardcode_shlibpath_var=no
7272 hardcode_direct=yes
7273 hardcode_direct_absolute=yes
7274 export_dynamic_flag_spec='${wl}-E'
7276 # hardcode_minus_L: Not really in the search PATH,
7277 # but as the default location of the library.
7278 hardcode_minus_L=yes
7280 esac
7284 irix5* | irix6* | nonstopux*)
7285 if test "$GCC" = yes; then
7286 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'
7287 # Try to use the -exported_symbol ld option, if it does not
7288 # work, assume that -exports_file does not work either and
7289 # implicitly export all symbols.
7290 save_LDFLAGS="$LDFLAGS"
7291 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
7292 if test x$gcc_no_link = xyes; then
7293 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7294 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7295 { (exit 1); exit 1; }; }
7297 cat >conftest.$ac_ext <<_ACEOF
7298 int foo(void) {}
7299 _ACEOF
7300 rm -f conftest.$ac_objext conftest$ac_exeext
7301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7302 (eval $ac_link) 2>conftest.er1
7303 ac_status=$?
7304 grep -v '^ *+' conftest.er1 >conftest.err
7305 rm -f conftest.er1
7306 cat conftest.err >&5
7307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7308 (exit $ac_status); } &&
7309 { ac_try='test -z "$ac_c_werror_flag"
7310 || test ! -s conftest.err'
7311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7312 (eval $ac_try) 2>&5
7313 ac_status=$?
7314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7315 (exit $ac_status); }; } &&
7316 { ac_try='test -s conftest$ac_exeext'
7317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7318 (eval $ac_try) 2>&5
7319 ac_status=$?
7320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7321 (exit $ac_status); }; }; then
7322 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'
7324 else
7325 echo "$as_me: failed program was:" >&5
7326 sed 's/^/| /' conftest.$ac_ext >&5
7329 rm -f conftest.err conftest.$ac_objext \
7330 conftest$ac_exeext conftest.$ac_ext
7331 LDFLAGS="$save_LDFLAGS"
7332 else
7333 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'
7334 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'
7336 archive_cmds_need_lc='no'
7337 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7338 hardcode_libdir_separator=:
7339 inherit_rpath=yes
7340 link_all_deplibs=yes
7343 netbsd*)
7344 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7345 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7346 else
7347 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7349 hardcode_libdir_flag_spec='-R$libdir'
7350 hardcode_direct=yes
7351 hardcode_shlibpath_var=no
7354 newsos6)
7355 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7356 hardcode_direct=yes
7357 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7358 hardcode_libdir_separator=:
7359 hardcode_shlibpath_var=no
7362 *nto* | *qnx*)
7365 openbsd*)
7366 hardcode_direct=yes
7367 hardcode_shlibpath_var=no
7368 hardcode_direct_absolute=yes
7369 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7370 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7371 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7372 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7373 export_dynamic_flag_spec='${wl}-E'
7374 else
7375 case $host_os in
7376 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7377 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7378 hardcode_libdir_flag_spec='-R$libdir'
7381 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7382 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7384 esac
7388 os2*)
7389 hardcode_libdir_flag_spec='-L$libdir'
7390 hardcode_minus_L=yes
7391 allow_undefined_flag=unsupported
7392 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'
7393 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7396 osf3*)
7397 if test "$GCC" = yes; then
7398 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7399 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'
7400 else
7401 allow_undefined_flag=' -expect_unresolved \*'
7402 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'
7404 archive_cmds_need_lc='no'
7405 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7406 hardcode_libdir_separator=:
7409 osf4* | osf5*) # as osf3* with the addition of -msym flag
7410 if test "$GCC" = yes; then
7411 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7412 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'
7413 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7414 else
7415 allow_undefined_flag=' -expect_unresolved \*'
7416 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'
7417 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~
7418 $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'
7420 # Both c and cxx compiler support -rpath directly
7421 hardcode_libdir_flag_spec='-rpath $libdir'
7423 archive_cmds_need_lc='no'
7424 hardcode_libdir_separator=:
7427 solaris*)
7428 no_undefined_flag=' -z defs'
7429 if test "$GCC" = yes; then
7430 wlarc='${wl}'
7431 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7432 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7433 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7434 else
7435 case `$CC -V 2>&1` in
7436 *"Compilers 5.0"*)
7437 wlarc=''
7438 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7439 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7440 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
7443 wlarc='${wl}'
7444 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
7445 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7446 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7448 esac
7450 hardcode_libdir_flag_spec='-R$libdir'
7451 hardcode_shlibpath_var=no
7452 case $host_os in
7453 solaris2.[0-5] | solaris2.[0-5].*) ;;
7455 # The compiler driver will combine and reorder linker options,
7456 # but understands `-z linker_flag'. GCC discards it without `$wl',
7457 # but is careful enough not to reorder.
7458 # Supported since Solaris 2.6 (maybe 2.5.1?)
7459 if test "$GCC" = yes; then
7460 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7461 else
7462 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
7465 esac
7466 link_all_deplibs=yes
7469 sunos4*)
7470 if test "x$host_vendor" = xsequent; then
7471 # Use $CC to link under sequent, because it throws in some extra .o
7472 # files that make .init and .fini sections work.
7473 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7474 else
7475 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7477 hardcode_libdir_flag_spec='-L$libdir'
7478 hardcode_direct=yes
7479 hardcode_minus_L=yes
7480 hardcode_shlibpath_var=no
7483 sysv4)
7484 case $host_vendor in
7485 sni)
7486 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7487 hardcode_direct=yes # is this really true???
7489 siemens)
7490 ## LD is ld it makes a PLAMLIB
7491 ## CC just makes a GrossModule.
7492 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7493 reload_cmds='$CC -r -o $output$reload_objs'
7494 hardcode_direct=no
7496 motorola)
7497 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7498 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7500 esac
7501 runpath_var='LD_RUN_PATH'
7502 hardcode_shlibpath_var=no
7505 sysv4.3*)
7506 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7507 hardcode_shlibpath_var=no
7508 export_dynamic_flag_spec='-Bexport'
7511 sysv4*MP*)
7512 if test -d /usr/nec; then
7513 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7514 hardcode_shlibpath_var=no
7515 runpath_var=LD_RUN_PATH
7516 hardcode_runpath_var=yes
7517 ld_shlibs=yes
7521 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
7522 no_undefined_flag='${wl}-z,text'
7523 archive_cmds_need_lc=no
7524 hardcode_shlibpath_var=no
7525 runpath_var='LD_RUN_PATH'
7527 if test "$GCC" = yes; then
7528 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7529 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7530 else
7531 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7532 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7536 sysv5* | sco3.2v5* | sco5v6*)
7537 # Note: We can NOT use -z defs as we might desire, because we do not
7538 # link with -lc, and that would cause any symbols used from libc to
7539 # always be unresolved, which means just about no library would
7540 # ever link correctly. If we're not using GNU ld we use -z text
7541 # though, which does catch some bad symbols but isn't as heavy-handed
7542 # as -z defs.
7543 no_undefined_flag='${wl}-z,text'
7544 allow_undefined_flag='${wl}-z,nodefs'
7545 archive_cmds_need_lc=no
7546 hardcode_shlibpath_var=no
7547 hardcode_libdir_flag_spec='${wl}-R,$libdir'
7548 hardcode_libdir_separator=':'
7549 link_all_deplibs=yes
7550 export_dynamic_flag_spec='${wl}-Bexport'
7551 runpath_var='LD_RUN_PATH'
7553 if test "$GCC" = yes; then
7554 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7555 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7556 else
7557 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7558 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7562 uts4*)
7563 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7564 hardcode_libdir_flag_spec='-L$libdir'
7565 hardcode_shlibpath_var=no
7569 ld_shlibs=no
7571 esac
7573 if test x$host_vendor = xsni; then
7574 case $host in
7575 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7576 export_dynamic_flag_spec='${wl}-Blargedynsym'
7578 esac
7582 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7583 echo "${ECHO_T}$ld_shlibs" >&6
7584 test "$ld_shlibs" = no && can_build_shared=no
7586 with_gnu_ld=$with_gnu_ld
7603 # Do we need to explicitly link libc?
7605 case "x$archive_cmds_need_lc" in
7606 x|xyes)
7607 # Assume -lc should be added
7608 archive_cmds_need_lc=yes
7610 if test "$enable_shared" = yes && test "$GCC" = yes; then
7611 case $archive_cmds in
7612 *'~'*)
7613 # FIXME: we may have to deal with multi-command sequences.
7615 '$CC '*)
7616 # Test whether the compiler implicitly links with -lc since on some
7617 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7618 # to ld, don't add -lc before -lgcc.
7619 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7620 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7621 $RM conftest*
7622 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7625 (eval $ac_compile) 2>&5
7626 ac_status=$?
7627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7628 (exit $ac_status); } 2>conftest.err; then
7629 soname=conftest
7630 lib=conftest
7631 libobjs=conftest.$ac_objext
7632 deplibs=
7633 wl=$lt_prog_compiler_wl
7634 pic_flag=$lt_prog_compiler_pic
7635 compiler_flags=-v
7636 linker_flags=-v
7637 verstring=
7638 output_objdir=.
7639 libname=conftest
7640 lt_save_allow_undefined_flag=$allow_undefined_flag
7641 allow_undefined_flag=
7642 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
7643 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
7644 ac_status=$?
7645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7646 (exit $ac_status); }
7647 then
7648 archive_cmds_need_lc=no
7649 else
7650 archive_cmds_need_lc=yes
7652 allow_undefined_flag=$lt_save_allow_undefined_flag
7653 else
7654 cat conftest.err 1>&5
7656 $RM conftest*
7657 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7658 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7660 esac
7663 esac
7821 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7822 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7823 withGCC=$GCC
7824 if test "$withGCC" = yes; then
7825 case $host_os in
7826 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
7827 *) lt_awk_arg="/^libraries:/" ;;
7828 esac
7829 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7830 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
7831 # if the path contains ";" then we assume it to be the separator
7832 # otherwise default to the standard path separator (i.e. ":") - it is
7833 # assumed that no part of a normal pathname contains ";" but that should
7834 # okay in the real world where ";" in dirpaths is itself problematic.
7835 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
7836 else
7837 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7839 # Ok, now we have the path, separated by spaces, we can step through it
7840 # and add multilib dir if necessary.
7841 lt_tmp_lt_search_path_spec=
7842 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
7843 for lt_sys_path in $lt_search_path_spec; do
7844 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
7845 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
7846 else
7847 test -d "$lt_sys_path" && \
7848 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
7850 done
7851 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
7852 BEGIN {RS=" "; FS="/|\n";} {
7853 lt_foo="";
7854 lt_count=0;
7855 for (lt_i = NF; lt_i > 0; lt_i--) {
7856 if ($lt_i != "" && $lt_i != ".") {
7857 if ($lt_i == "..") {
7858 lt_count++;
7859 } else {
7860 if (lt_count == 0) {
7861 lt_foo="/" $lt_i lt_foo;
7862 } else {
7863 lt_count--;
7868 if (lt_foo != "") { lt_freq[lt_foo]++; }
7869 if (lt_freq[lt_foo] == 1) { print lt_foo; }
7871 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
7872 else
7873 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7875 library_names_spec=
7876 libname_spec='lib$name'
7877 soname_spec=
7878 shrext_cmds=".so"
7879 postinstall_cmds=
7880 postuninstall_cmds=
7881 finish_cmds=
7882 finish_eval=
7883 shlibpath_var=
7884 shlibpath_overrides_runpath=unknown
7885 version_type=none
7886 dynamic_linker="$host_os ld.so"
7887 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7888 need_lib_prefix=unknown
7889 hardcode_into_libs=no
7891 # when you set need_version to no, make sure it does not cause -set_version
7892 # flags to be left without arguments
7893 need_version=unknown
7895 case $host_os in
7896 aix3*)
7897 version_type=linux
7898 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7899 shlibpath_var=LIBPATH
7901 # AIX 3 has no versioning support, so we append a major version to the name.
7902 soname_spec='${libname}${release}${shared_ext}$major'
7905 aix[4-9]*)
7906 version_type=linux
7907 need_lib_prefix=no
7908 need_version=no
7909 hardcode_into_libs=yes
7910 if test "$host_cpu" = ia64; then
7911 # AIX 5 supports IA64
7912 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7913 shlibpath_var=LD_LIBRARY_PATH
7914 else
7915 # With GCC up to 2.95.x, collect2 would create an import file
7916 # for dependence libraries. The import file would start with
7917 # the line `#! .'. This would cause the generated library to
7918 # depend on `.', always an invalid library. This was fixed in
7919 # development snapshots of GCC prior to 3.0.
7920 case $host_os in
7921 aix4 | aix4.[01] | aix4.[01].*)
7922 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7923 echo ' yes '
7924 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
7926 else
7927 can_build_shared=no
7930 esac
7931 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7932 # soname into executable. Probably we can add versioning support to
7933 # collect2, so additional links can be useful in future.
7934 if test "$aix_use_runtimelinking" = yes; then
7935 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7936 # instead of lib<name>.a to let people know that these are not
7937 # typical AIX shared libraries.
7938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7939 else
7940 # We preserve .a as extension for shared libraries through AIX4.2
7941 # and later when we are not doing run time linking.
7942 library_names_spec='${libname}${release}.a $libname.a'
7943 soname_spec='${libname}${release}${shared_ext}$major'
7945 shlibpath_var=LIBPATH
7949 amigaos*)
7950 if test "$host_cpu" = m68k; then
7951 library_names_spec='$libname.ixlibrary $libname.a'
7952 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7953 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'
7954 else
7955 dynamic_linker=no
7959 beos*)
7960 library_names_spec='${libname}${shared_ext}'
7961 dynamic_linker="$host_os ld.so"
7962 shlibpath_var=LIBRARY_PATH
7965 bsdi[45]*)
7966 version_type=linux
7967 need_version=no
7968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7969 soname_spec='${libname}${release}${shared_ext}$major'
7970 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7971 shlibpath_var=LD_LIBRARY_PATH
7972 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7973 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7974 # the default ld.so.conf also contains /usr/contrib/lib and
7975 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7976 # libtool to hard-code these into programs
7979 cygwin* | mingw* | pw32*)
7980 version_type=windows
7981 shrext_cmds=".dll"
7982 need_version=no
7983 need_lib_prefix=no
7985 case $withGCC,$host_os in
7986 yes,cygwin* | yes,mingw* | yes,pw32*)
7987 library_names_spec='$libname.dll.a'
7988 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7989 postinstall_cmds='base_file=`basename \${file}`~
7990 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
7991 dldir=$destdir/`dirname \$dlpath`~
7992 test -d \$dldir || mkdir -p \$dldir~
7993 $install_prog $dir/$dlname \$dldir/$dlname~
7994 chmod a+x \$dldir/$dlname~
7995 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
7996 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
7998 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7999 dlpath=$dir/\$dldll~
8000 $RM \$dlpath'
8001 shlibpath_overrides_runpath=yes
8003 case $host_os in
8004 cygwin*)
8005 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8006 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8007 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8009 mingw*)
8010 # MinGW DLLs use traditional 'lib' prefix
8011 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8012 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8013 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8014 # It is most probably a Windows format PATH printed by
8015 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8016 # path with ; separators, and with drive letters. We can handle the
8017 # drive letters (cygwin fileutils understands them), so leave them,
8018 # especially as we might pass files found there to a mingw objdump,
8019 # which wouldn't understand a cygwinified path. Ahh.
8020 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8021 else
8022 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8025 pw32*)
8026 # pw32 DLLs use 'pw' prefix rather than 'lib'
8027 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8029 esac
8033 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8035 esac
8036 dynamic_linker='Win32 ld.exe'
8037 # FIXME: first we should search . and the directory the executable is in
8038 shlibpath_var=PATH
8041 darwin* | rhapsody*)
8042 dynamic_linker="$host_os dyld"
8043 version_type=darwin
8044 need_lib_prefix=no
8045 need_version=no
8046 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8047 soname_spec='${libname}${release}${major}$shared_ext'
8048 shlibpath_overrides_runpath=yes
8049 shlibpath_var=DYLD_LIBRARY_PATH
8050 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8052 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8053 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8056 dgux*)
8057 version_type=linux
8058 need_lib_prefix=no
8059 need_version=no
8060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8061 soname_spec='${libname}${release}${shared_ext}$major'
8062 shlibpath_var=LD_LIBRARY_PATH
8065 freebsd1*)
8066 dynamic_linker=no
8069 freebsd* | dragonfly*)
8070 # DragonFly does not have aout. When/if they implement a new
8071 # versioning mechanism, adjust this.
8072 if test -x /usr/bin/objformat; then
8073 objformat=`/usr/bin/objformat`
8074 else
8075 case $host_os in
8076 freebsd[123]*) objformat=aout ;;
8077 *) objformat=elf ;;
8078 esac
8080 version_type=freebsd-$objformat
8081 case $version_type in
8082 freebsd-elf*)
8083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8084 need_version=no
8085 need_lib_prefix=no
8087 freebsd-*)
8088 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8089 need_version=yes
8091 esac
8092 shlibpath_var=LD_LIBRARY_PATH
8093 case $host_os in
8094 freebsd2*)
8095 shlibpath_overrides_runpath=yes
8097 freebsd3.[01]* | freebsdelf3.[01]*)
8098 shlibpath_overrides_runpath=yes
8099 hardcode_into_libs=yes
8101 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8102 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8103 shlibpath_overrides_runpath=no
8104 hardcode_into_libs=yes
8106 *) # from 4.6 on, and DragonFly
8107 shlibpath_overrides_runpath=yes
8108 hardcode_into_libs=yes
8110 esac
8113 gnu*)
8114 version_type=linux
8115 need_lib_prefix=no
8116 need_version=no
8117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8118 soname_spec='${libname}${release}${shared_ext}$major'
8119 shlibpath_var=LD_LIBRARY_PATH
8120 hardcode_into_libs=yes
8123 hpux9* | hpux10* | hpux11*)
8124 # Give a soname corresponding to the major version so that dld.sl refuses to
8125 # link against other versions.
8126 version_type=sunos
8127 need_lib_prefix=no
8128 need_version=no
8129 case $host_cpu in
8130 ia64*)
8131 shrext_cmds='.so'
8132 hardcode_into_libs=yes
8133 dynamic_linker="$host_os dld.so"
8134 shlibpath_var=LD_LIBRARY_PATH
8135 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8137 soname_spec='${libname}${release}${shared_ext}$major'
8138 if test "X$HPUX_IA64_MODE" = X32; then
8139 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8140 else
8141 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8143 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8145 hppa*64*)
8146 shrext_cmds='.sl'
8147 hardcode_into_libs=yes
8148 dynamic_linker="$host_os dld.sl"
8149 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8150 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8152 soname_spec='${libname}${release}${shared_ext}$major'
8153 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8154 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8157 shrext_cmds='.sl'
8158 dynamic_linker="$host_os dld.sl"
8159 shlibpath_var=SHLIB_PATH
8160 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8162 soname_spec='${libname}${release}${shared_ext}$major'
8164 esac
8165 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8166 postinstall_cmds='chmod 555 $lib'
8169 interix[3-9]*)
8170 version_type=linux
8171 need_lib_prefix=no
8172 need_version=no
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'
8175 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8176 shlibpath_var=LD_LIBRARY_PATH
8177 shlibpath_overrides_runpath=no
8178 hardcode_into_libs=yes
8181 irix5* | irix6* | nonstopux*)
8182 case $host_os in
8183 nonstopux*) version_type=nonstopux ;;
8185 if test "$lt_cv_prog_gnu_ld" = yes; then
8186 version_type=linux
8187 else
8188 version_type=irix
8189 fi ;;
8190 esac
8191 need_lib_prefix=no
8192 need_version=no
8193 soname_spec='${libname}${release}${shared_ext}$major'
8194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8195 case $host_os in
8196 irix5* | nonstopux*)
8197 libsuff= shlibsuff=
8200 case $LD in # libtool.m4 will add one of these switches to LD
8201 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8202 libsuff= shlibsuff= libmagic=32-bit;;
8203 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8204 libsuff=32 shlibsuff=N32 libmagic=N32;;
8205 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8206 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8207 *) libsuff= shlibsuff= libmagic=never-match;;
8208 esac
8210 esac
8211 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8212 shlibpath_overrides_runpath=no
8213 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8214 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8215 hardcode_into_libs=yes
8218 # No shared lib support for Linux oldld, aout, or coff.
8219 linux*oldld* | linux*aout* | linux*coff*)
8220 dynamic_linker=no
8223 # This must be Linux ELF.
8224 linux* | k*bsd*-gnu)
8225 version_type=linux
8226 need_lib_prefix=no
8227 need_version=no
8228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8229 soname_spec='${libname}${release}${shared_ext}$major'
8230 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8231 shlibpath_var=LD_LIBRARY_PATH
8232 shlibpath_overrides_runpath=no
8233 # Some binutils ld are patched to set DT_RUNPATH
8234 save_LDFLAGS=$LDFLAGS
8235 save_libdir=$libdir
8236 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8237 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8238 if test x$gcc_no_link = xyes; then
8239 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8240 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8241 { (exit 1); exit 1; }; }
8243 cat >conftest.$ac_ext <<_ACEOF
8244 /* confdefs.h. */
8245 _ACEOF
8246 cat confdefs.h >>conftest.$ac_ext
8247 cat >>conftest.$ac_ext <<_ACEOF
8248 /* end confdefs.h. */
8251 main ()
8255 return 0;
8257 _ACEOF
8258 rm -f conftest.$ac_objext conftest$ac_exeext
8259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8260 (eval $ac_link) 2>conftest.er1
8261 ac_status=$?
8262 grep -v '^ *+' conftest.er1 >conftest.err
8263 rm -f conftest.er1
8264 cat conftest.err >&5
8265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266 (exit $ac_status); } &&
8267 { ac_try='test -z "$ac_c_werror_flag"
8268 || test ! -s conftest.err'
8269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8270 (eval $ac_try) 2>&5
8271 ac_status=$?
8272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8273 (exit $ac_status); }; } &&
8274 { ac_try='test -s conftest$ac_exeext'
8275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8276 (eval $ac_try) 2>&5
8277 ac_status=$?
8278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8279 (exit $ac_status); }; }; then
8280 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
8281 shlibpath_overrides_runpath=yes
8284 else
8285 echo "$as_me: failed program was:" >&5
8286 sed 's/^/| /' conftest.$ac_ext >&5
8289 rm -f conftest.err conftest.$ac_objext \
8290 conftest$ac_exeext conftest.$ac_ext
8291 LDFLAGS=$save_LDFLAGS
8292 libdir=$save_libdir
8294 # This implies no fast_install, which is unacceptable.
8295 # Some rework will be needed to allow for fast_install
8296 # before this can be enabled.
8297 hardcode_into_libs=yes
8299 # Append ld.so.conf contents to the search path
8300 if test -f /etc/ld.so.conf; then
8301 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' ' '`
8302 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8305 # We used to test for /lib/ld.so.1 and disable shared libraries on
8306 # powerpc, because MkLinux only supported shared libraries with the
8307 # GNU dynamic linker. Since this was broken with cross compilers,
8308 # most powerpc-linux boxes support dynamic linking these days and
8309 # people can always --disable-shared, the test was removed, and we
8310 # assume the GNU/Linux dynamic linker is in use.
8311 dynamic_linker='GNU/Linux ld.so'
8314 netbsd*)
8315 version_type=sunos
8316 need_lib_prefix=no
8317 need_version=no
8318 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8320 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8321 dynamic_linker='NetBSD (a.out) ld.so'
8322 else
8323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8324 soname_spec='${libname}${release}${shared_ext}$major'
8325 dynamic_linker='NetBSD ld.elf_so'
8327 shlibpath_var=LD_LIBRARY_PATH
8328 shlibpath_overrides_runpath=yes
8329 hardcode_into_libs=yes
8332 newsos6)
8333 version_type=linux
8334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8335 shlibpath_var=LD_LIBRARY_PATH
8336 shlibpath_overrides_runpath=yes
8339 *nto* | *qnx*)
8340 version_type=qnx
8341 need_lib_prefix=no
8342 need_version=no
8343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8344 soname_spec='${libname}${release}${shared_ext}$major'
8345 shlibpath_var=LD_LIBRARY_PATH
8346 shlibpath_overrides_runpath=no
8347 hardcode_into_libs=yes
8348 dynamic_linker='ldqnx.so'
8351 openbsd*)
8352 version_type=sunos
8353 sys_lib_dlsearch_path_spec="/usr/lib"
8354 need_lib_prefix=no
8355 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8356 case $host_os in
8357 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8358 *) need_version=no ;;
8359 esac
8360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8361 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8362 shlibpath_var=LD_LIBRARY_PATH
8363 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8364 case $host_os in
8365 openbsd2.[89] | openbsd2.[89].*)
8366 shlibpath_overrides_runpath=no
8369 shlibpath_overrides_runpath=yes
8371 esac
8372 else
8373 shlibpath_overrides_runpath=yes
8377 os2*)
8378 libname_spec='$name'
8379 shrext_cmds=".dll"
8380 need_lib_prefix=no
8381 library_names_spec='$libname${shared_ext} $libname.a'
8382 dynamic_linker='OS/2 ld.exe'
8383 shlibpath_var=LIBPATH
8386 osf3* | osf4* | osf5*)
8387 version_type=osf
8388 need_lib_prefix=no
8389 need_version=no
8390 soname_spec='${libname}${release}${shared_ext}$major'
8391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8392 shlibpath_var=LD_LIBRARY_PATH
8393 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8394 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8397 rdos*)
8398 dynamic_linker=no
8401 solaris*)
8402 version_type=linux
8403 need_lib_prefix=no
8404 need_version=no
8405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8406 soname_spec='${libname}${release}${shared_ext}$major'
8407 shlibpath_var=LD_LIBRARY_PATH
8408 shlibpath_overrides_runpath=yes
8409 hardcode_into_libs=yes
8410 # ldd complains unless libraries are executable
8411 postinstall_cmds='chmod +x $lib'
8414 sunos4*)
8415 version_type=sunos
8416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8417 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8418 shlibpath_var=LD_LIBRARY_PATH
8419 shlibpath_overrides_runpath=yes
8420 if test "$with_gnu_ld" = yes; then
8421 need_lib_prefix=no
8423 need_version=yes
8426 sysv4 | sysv4.3*)
8427 version_type=linux
8428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8429 soname_spec='${libname}${release}${shared_ext}$major'
8430 shlibpath_var=LD_LIBRARY_PATH
8431 case $host_vendor in
8432 sni)
8433 shlibpath_overrides_runpath=no
8434 need_lib_prefix=no
8435 runpath_var=LD_RUN_PATH
8437 siemens)
8438 need_lib_prefix=no
8440 motorola)
8441 need_lib_prefix=no
8442 need_version=no
8443 shlibpath_overrides_runpath=no
8444 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8446 esac
8449 sysv4*MP*)
8450 if test -d /usr/nec ;then
8451 version_type=linux
8452 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8453 soname_spec='$libname${shared_ext}.$major'
8454 shlibpath_var=LD_LIBRARY_PATH
8458 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8459 version_type=freebsd-elf
8460 need_lib_prefix=no
8461 need_version=no
8462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8463 soname_spec='${libname}${release}${shared_ext}$major'
8464 shlibpath_var=LD_LIBRARY_PATH
8465 shlibpath_overrides_runpath=yes
8466 hardcode_into_libs=yes
8467 if test "$with_gnu_ld" = yes; then
8468 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8469 else
8470 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8471 case $host_os in
8472 sco3.2v5*)
8473 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8475 esac
8477 sys_lib_dlsearch_path_spec='/usr/lib'
8480 tpf*)
8481 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
8482 version_type=linux
8483 need_lib_prefix=no
8484 need_version=no
8485 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8486 shlibpath_var=LD_LIBRARY_PATH
8487 shlibpath_overrides_runpath=no
8488 hardcode_into_libs=yes
8491 uts4*)
8492 version_type=linux
8493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8494 soname_spec='${libname}${release}${shared_ext}$major'
8495 shlibpath_var=LD_LIBRARY_PATH
8499 dynamic_linker=no
8501 esac
8502 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8503 echo "${ECHO_T}$dynamic_linker" >&6
8504 test "$dynamic_linker" = no && can_build_shared=no
8506 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8507 if test "$GCC" = yes; then
8508 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8597 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8598 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8599 hardcode_action=
8600 if test -n "$hardcode_libdir_flag_spec" ||
8601 test -n "$runpath_var" ||
8602 test "X$hardcode_automatic" = "Xyes" ; then
8604 # We can hardcode non-existent directories.
8605 if test "$hardcode_direct" != no &&
8606 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8607 # have to relink, otherwise we might link with an installed library
8608 # when we should be linking with a yet-to-be-installed one
8609 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
8610 test "$hardcode_minus_L" != no; then
8611 # Linking always hardcodes the temporary library directory.
8612 hardcode_action=relink
8613 else
8614 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8615 hardcode_action=immediate
8617 else
8618 # We cannot hardcode anything, or else we can only hardcode existing
8619 # directories.
8620 hardcode_action=unsupported
8622 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8623 echo "${ECHO_T}$hardcode_action" >&6
8625 if test "$hardcode_action" = relink ||
8626 test "$inherit_rpath" = yes; then
8627 # Fast installation is not supported
8628 enable_fast_install=no
8629 elif test "$shlibpath_overrides_runpath" = yes ||
8630 test "$enable_shared" = no; then
8631 # Fast installation is not necessary
8632 enable_fast_install=needless
8640 if test "x$enable_dlopen" != xyes; then
8641 enable_dlopen=unknown
8642 enable_dlopen_self=unknown
8643 enable_dlopen_self_static=unknown
8644 else
8645 lt_cv_dlopen=no
8646 lt_cv_dlopen_libs=
8648 case $host_os in
8649 beos*)
8650 lt_cv_dlopen="load_add_on"
8651 lt_cv_dlopen_libs=
8652 lt_cv_dlopen_self=yes
8655 mingw* | pw32*)
8656 lt_cv_dlopen="LoadLibrary"
8657 lt_cv_dlopen_libs=
8660 cygwin*)
8661 lt_cv_dlopen="dlopen"
8662 lt_cv_dlopen_libs=
8665 darwin*)
8666 # if libdl is installed we need to link against it
8667 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8668 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8669 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8670 echo $ECHO_N "(cached) $ECHO_C" >&6
8671 else
8672 ac_check_lib_save_LIBS=$LIBS
8673 LIBS="-ldl $LIBS"
8674 if test x$gcc_no_link = xyes; then
8675 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8676 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8677 { (exit 1); exit 1; }; }
8679 cat >conftest.$ac_ext <<_ACEOF
8680 /* confdefs.h. */
8681 _ACEOF
8682 cat confdefs.h >>conftest.$ac_ext
8683 cat >>conftest.$ac_ext <<_ACEOF
8684 /* end confdefs.h. */
8686 /* Override any gcc2 internal prototype to avoid an error. */
8687 #ifdef __cplusplus
8688 extern "C"
8689 #endif
8690 /* We use char because int might match the return type of a gcc2
8691 builtin and then its argument prototype would still apply. */
8692 char dlopen ();
8694 main ()
8696 dlopen ();
8698 return 0;
8700 _ACEOF
8701 rm -f conftest.$ac_objext conftest$ac_exeext
8702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8703 (eval $ac_link) 2>conftest.er1
8704 ac_status=$?
8705 grep -v '^ *+' conftest.er1 >conftest.err
8706 rm -f conftest.er1
8707 cat conftest.err >&5
8708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8709 (exit $ac_status); } &&
8710 { ac_try='test -z "$ac_c_werror_flag"
8711 || test ! -s conftest.err'
8712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8713 (eval $ac_try) 2>&5
8714 ac_status=$?
8715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716 (exit $ac_status); }; } &&
8717 { ac_try='test -s conftest$ac_exeext'
8718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8719 (eval $ac_try) 2>&5
8720 ac_status=$?
8721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722 (exit $ac_status); }; }; then
8723 ac_cv_lib_dl_dlopen=yes
8724 else
8725 echo "$as_me: failed program was:" >&5
8726 sed 's/^/| /' conftest.$ac_ext >&5
8728 ac_cv_lib_dl_dlopen=no
8730 rm -f conftest.err conftest.$ac_objext \
8731 conftest$ac_exeext conftest.$ac_ext
8732 LIBS=$ac_check_lib_save_LIBS
8734 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8735 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8736 if test $ac_cv_lib_dl_dlopen = yes; then
8737 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8738 else
8740 lt_cv_dlopen="dyld"
8741 lt_cv_dlopen_libs=
8742 lt_cv_dlopen_self=yes
8749 echo "$as_me:$LINENO: checking for shl_load" >&5
8750 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8751 if test "${ac_cv_func_shl_load+set}" = set; then
8752 echo $ECHO_N "(cached) $ECHO_C" >&6
8753 else
8754 if test x$gcc_no_link = xyes; then
8755 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8756 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8757 { (exit 1); exit 1; }; }
8759 cat >conftest.$ac_ext <<_ACEOF
8760 /* confdefs.h. */
8761 _ACEOF
8762 cat confdefs.h >>conftest.$ac_ext
8763 cat >>conftest.$ac_ext <<_ACEOF
8764 /* end confdefs.h. */
8765 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8766 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8767 #define shl_load innocuous_shl_load
8769 /* System header to define __stub macros and hopefully few prototypes,
8770 which can conflict with char shl_load (); below.
8771 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8772 <limits.h> exists even on freestanding compilers. */
8774 #ifdef __STDC__
8775 # include <limits.h>
8776 #else
8777 # include <assert.h>
8778 #endif
8780 #undef shl_load
8782 /* Override any gcc2 internal prototype to avoid an error. */
8783 #ifdef __cplusplus
8784 extern "C"
8786 #endif
8787 /* We use char because int might match the return type of a gcc2
8788 builtin and then its argument prototype would still apply. */
8789 char shl_load ();
8790 /* The GNU C library defines this for functions which it implements
8791 to always fail with ENOSYS. Some functions are actually named
8792 something starting with __ and the normal name is an alias. */
8793 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8794 choke me
8795 #else
8796 char (*f) () = shl_load;
8797 #endif
8798 #ifdef __cplusplus
8800 #endif
8803 main ()
8805 return f != shl_load;
8807 return 0;
8809 _ACEOF
8810 rm -f conftest.$ac_objext conftest$ac_exeext
8811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8812 (eval $ac_link) 2>conftest.er1
8813 ac_status=$?
8814 grep -v '^ *+' conftest.er1 >conftest.err
8815 rm -f conftest.er1
8816 cat conftest.err >&5
8817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8818 (exit $ac_status); } &&
8819 { ac_try='test -z "$ac_c_werror_flag"
8820 || test ! -s conftest.err'
8821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8822 (eval $ac_try) 2>&5
8823 ac_status=$?
8824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825 (exit $ac_status); }; } &&
8826 { ac_try='test -s conftest$ac_exeext'
8827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8828 (eval $ac_try) 2>&5
8829 ac_status=$?
8830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831 (exit $ac_status); }; }; then
8832 ac_cv_func_shl_load=yes
8833 else
8834 echo "$as_me: failed program was:" >&5
8835 sed 's/^/| /' conftest.$ac_ext >&5
8837 ac_cv_func_shl_load=no
8839 rm -f conftest.err conftest.$ac_objext \
8840 conftest$ac_exeext conftest.$ac_ext
8842 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8843 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8844 if test $ac_cv_func_shl_load = yes; then
8845 lt_cv_dlopen="shl_load"
8846 else
8847 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8848 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8849 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8850 echo $ECHO_N "(cached) $ECHO_C" >&6
8851 else
8852 ac_check_lib_save_LIBS=$LIBS
8853 LIBS="-ldld $LIBS"
8854 if test x$gcc_no_link = xyes; then
8855 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8856 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8857 { (exit 1); exit 1; }; }
8859 cat >conftest.$ac_ext <<_ACEOF
8860 /* confdefs.h. */
8861 _ACEOF
8862 cat confdefs.h >>conftest.$ac_ext
8863 cat >>conftest.$ac_ext <<_ACEOF
8864 /* end confdefs.h. */
8866 /* Override any gcc2 internal prototype to avoid an error. */
8867 #ifdef __cplusplus
8868 extern "C"
8869 #endif
8870 /* We use char because int might match the return type of a gcc2
8871 builtin and then its argument prototype would still apply. */
8872 char shl_load ();
8874 main ()
8876 shl_load ();
8878 return 0;
8880 _ACEOF
8881 rm -f conftest.$ac_objext conftest$ac_exeext
8882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8883 (eval $ac_link) 2>conftest.er1
8884 ac_status=$?
8885 grep -v '^ *+' conftest.er1 >conftest.err
8886 rm -f conftest.er1
8887 cat conftest.err >&5
8888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8889 (exit $ac_status); } &&
8890 { ac_try='test -z "$ac_c_werror_flag"
8891 || test ! -s conftest.err'
8892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8893 (eval $ac_try) 2>&5
8894 ac_status=$?
8895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8896 (exit $ac_status); }; } &&
8897 { ac_try='test -s conftest$ac_exeext'
8898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8899 (eval $ac_try) 2>&5
8900 ac_status=$?
8901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8902 (exit $ac_status); }; }; then
8903 ac_cv_lib_dld_shl_load=yes
8904 else
8905 echo "$as_me: failed program was:" >&5
8906 sed 's/^/| /' conftest.$ac_ext >&5
8908 ac_cv_lib_dld_shl_load=no
8910 rm -f conftest.err conftest.$ac_objext \
8911 conftest$ac_exeext conftest.$ac_ext
8912 LIBS=$ac_check_lib_save_LIBS
8914 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8915 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8916 if test $ac_cv_lib_dld_shl_load = yes; then
8917 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8918 else
8919 echo "$as_me:$LINENO: checking for dlopen" >&5
8920 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8921 if test "${ac_cv_func_dlopen+set}" = set; then
8922 echo $ECHO_N "(cached) $ECHO_C" >&6
8923 else
8924 if test x$gcc_no_link = xyes; then
8925 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8926 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8927 { (exit 1); exit 1; }; }
8929 cat >conftest.$ac_ext <<_ACEOF
8930 /* confdefs.h. */
8931 _ACEOF
8932 cat confdefs.h >>conftest.$ac_ext
8933 cat >>conftest.$ac_ext <<_ACEOF
8934 /* end confdefs.h. */
8935 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8936 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8937 #define dlopen innocuous_dlopen
8939 /* System header to define __stub macros and hopefully few prototypes,
8940 which can conflict with char dlopen (); below.
8941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8942 <limits.h> exists even on freestanding compilers. */
8944 #ifdef __STDC__
8945 # include <limits.h>
8946 #else
8947 # include <assert.h>
8948 #endif
8950 #undef dlopen
8952 /* Override any gcc2 internal prototype to avoid an error. */
8953 #ifdef __cplusplus
8954 extern "C"
8956 #endif
8957 /* We use char because int might match the return type of a gcc2
8958 builtin and then its argument prototype would still apply. */
8959 char dlopen ();
8960 /* The GNU C library defines this for functions which it implements
8961 to always fail with ENOSYS. Some functions are actually named
8962 something starting with __ and the normal name is an alias. */
8963 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8964 choke me
8965 #else
8966 char (*f) () = dlopen;
8967 #endif
8968 #ifdef __cplusplus
8970 #endif
8973 main ()
8975 return f != dlopen;
8977 return 0;
8979 _ACEOF
8980 rm -f conftest.$ac_objext conftest$ac_exeext
8981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8982 (eval $ac_link) 2>conftest.er1
8983 ac_status=$?
8984 grep -v '^ *+' conftest.er1 >conftest.err
8985 rm -f conftest.er1
8986 cat conftest.err >&5
8987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988 (exit $ac_status); } &&
8989 { ac_try='test -z "$ac_c_werror_flag"
8990 || test ! -s conftest.err'
8991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8992 (eval $ac_try) 2>&5
8993 ac_status=$?
8994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995 (exit $ac_status); }; } &&
8996 { ac_try='test -s conftest$ac_exeext'
8997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8998 (eval $ac_try) 2>&5
8999 ac_status=$?
9000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001 (exit $ac_status); }; }; then
9002 ac_cv_func_dlopen=yes
9003 else
9004 echo "$as_me: failed program was:" >&5
9005 sed 's/^/| /' conftest.$ac_ext >&5
9007 ac_cv_func_dlopen=no
9009 rm -f conftest.err conftest.$ac_objext \
9010 conftest$ac_exeext conftest.$ac_ext
9012 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9013 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9014 if test $ac_cv_func_dlopen = yes; then
9015 lt_cv_dlopen="dlopen"
9016 else
9017 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9018 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9019 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9020 echo $ECHO_N "(cached) $ECHO_C" >&6
9021 else
9022 ac_check_lib_save_LIBS=$LIBS
9023 LIBS="-ldl $LIBS"
9024 if test x$gcc_no_link = xyes; then
9025 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9026 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9027 { (exit 1); exit 1; }; }
9029 cat >conftest.$ac_ext <<_ACEOF
9030 /* confdefs.h. */
9031 _ACEOF
9032 cat confdefs.h >>conftest.$ac_ext
9033 cat >>conftest.$ac_ext <<_ACEOF
9034 /* end confdefs.h. */
9036 /* Override any gcc2 internal prototype to avoid an error. */
9037 #ifdef __cplusplus
9038 extern "C"
9039 #endif
9040 /* We use char because int might match the return type of a gcc2
9041 builtin and then its argument prototype would still apply. */
9042 char dlopen ();
9044 main ()
9046 dlopen ();
9048 return 0;
9050 _ACEOF
9051 rm -f conftest.$ac_objext conftest$ac_exeext
9052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9053 (eval $ac_link) 2>conftest.er1
9054 ac_status=$?
9055 grep -v '^ *+' conftest.er1 >conftest.err
9056 rm -f conftest.er1
9057 cat conftest.err >&5
9058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059 (exit $ac_status); } &&
9060 { ac_try='test -z "$ac_c_werror_flag"
9061 || test ! -s conftest.err'
9062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9063 (eval $ac_try) 2>&5
9064 ac_status=$?
9065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9066 (exit $ac_status); }; } &&
9067 { ac_try='test -s conftest$ac_exeext'
9068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9069 (eval $ac_try) 2>&5
9070 ac_status=$?
9071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9072 (exit $ac_status); }; }; then
9073 ac_cv_lib_dl_dlopen=yes
9074 else
9075 echo "$as_me: failed program was:" >&5
9076 sed 's/^/| /' conftest.$ac_ext >&5
9078 ac_cv_lib_dl_dlopen=no
9080 rm -f conftest.err conftest.$ac_objext \
9081 conftest$ac_exeext conftest.$ac_ext
9082 LIBS=$ac_check_lib_save_LIBS
9084 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9085 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9086 if test $ac_cv_lib_dl_dlopen = yes; then
9087 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9088 else
9089 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9090 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9091 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9092 echo $ECHO_N "(cached) $ECHO_C" >&6
9093 else
9094 ac_check_lib_save_LIBS=$LIBS
9095 LIBS="-lsvld $LIBS"
9096 if test x$gcc_no_link = xyes; then
9097 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9098 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9099 { (exit 1); exit 1; }; }
9101 cat >conftest.$ac_ext <<_ACEOF
9102 /* confdefs.h. */
9103 _ACEOF
9104 cat confdefs.h >>conftest.$ac_ext
9105 cat >>conftest.$ac_ext <<_ACEOF
9106 /* end confdefs.h. */
9108 /* Override any gcc2 internal prototype to avoid an error. */
9109 #ifdef __cplusplus
9110 extern "C"
9111 #endif
9112 /* We use char because int might match the return type of a gcc2
9113 builtin and then its argument prototype would still apply. */
9114 char dlopen ();
9116 main ()
9118 dlopen ();
9120 return 0;
9122 _ACEOF
9123 rm -f conftest.$ac_objext conftest$ac_exeext
9124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9125 (eval $ac_link) 2>conftest.er1
9126 ac_status=$?
9127 grep -v '^ *+' conftest.er1 >conftest.err
9128 rm -f conftest.er1
9129 cat conftest.err >&5
9130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131 (exit $ac_status); } &&
9132 { ac_try='test -z "$ac_c_werror_flag"
9133 || test ! -s conftest.err'
9134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9135 (eval $ac_try) 2>&5
9136 ac_status=$?
9137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9138 (exit $ac_status); }; } &&
9139 { ac_try='test -s conftest$ac_exeext'
9140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9141 (eval $ac_try) 2>&5
9142 ac_status=$?
9143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9144 (exit $ac_status); }; }; then
9145 ac_cv_lib_svld_dlopen=yes
9146 else
9147 echo "$as_me: failed program was:" >&5
9148 sed 's/^/| /' conftest.$ac_ext >&5
9150 ac_cv_lib_svld_dlopen=no
9152 rm -f conftest.err conftest.$ac_objext \
9153 conftest$ac_exeext conftest.$ac_ext
9154 LIBS=$ac_check_lib_save_LIBS
9156 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9157 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9158 if test $ac_cv_lib_svld_dlopen = yes; then
9159 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9160 else
9161 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9162 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9163 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9164 echo $ECHO_N "(cached) $ECHO_C" >&6
9165 else
9166 ac_check_lib_save_LIBS=$LIBS
9167 LIBS="-ldld $LIBS"
9168 if test x$gcc_no_link = xyes; then
9169 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9170 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9171 { (exit 1); exit 1; }; }
9173 cat >conftest.$ac_ext <<_ACEOF
9174 /* confdefs.h. */
9175 _ACEOF
9176 cat confdefs.h >>conftest.$ac_ext
9177 cat >>conftest.$ac_ext <<_ACEOF
9178 /* end confdefs.h. */
9180 /* Override any gcc2 internal prototype to avoid an error. */
9181 #ifdef __cplusplus
9182 extern "C"
9183 #endif
9184 /* We use char because int might match the return type of a gcc2
9185 builtin and then its argument prototype would still apply. */
9186 char dld_link ();
9188 main ()
9190 dld_link ();
9192 return 0;
9194 _ACEOF
9195 rm -f conftest.$ac_objext conftest$ac_exeext
9196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9197 (eval $ac_link) 2>conftest.er1
9198 ac_status=$?
9199 grep -v '^ *+' conftest.er1 >conftest.err
9200 rm -f conftest.er1
9201 cat conftest.err >&5
9202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9203 (exit $ac_status); } &&
9204 { ac_try='test -z "$ac_c_werror_flag"
9205 || test ! -s conftest.err'
9206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9207 (eval $ac_try) 2>&5
9208 ac_status=$?
9209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9210 (exit $ac_status); }; } &&
9211 { ac_try='test -s conftest$ac_exeext'
9212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9213 (eval $ac_try) 2>&5
9214 ac_status=$?
9215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9216 (exit $ac_status); }; }; then
9217 ac_cv_lib_dld_dld_link=yes
9218 else
9219 echo "$as_me: failed program was:" >&5
9220 sed 's/^/| /' conftest.$ac_ext >&5
9222 ac_cv_lib_dld_dld_link=no
9224 rm -f conftest.err conftest.$ac_objext \
9225 conftest$ac_exeext conftest.$ac_ext
9226 LIBS=$ac_check_lib_save_LIBS
9228 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9229 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9230 if test $ac_cv_lib_dld_dld_link = yes; then
9231 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9250 esac
9252 if test "x$lt_cv_dlopen" != xno; then
9253 enable_dlopen=yes
9254 else
9255 enable_dlopen=no
9258 case $lt_cv_dlopen in
9259 dlopen)
9260 save_CPPFLAGS="$CPPFLAGS"
9261 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9263 save_LDFLAGS="$LDFLAGS"
9264 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9266 save_LIBS="$LIBS"
9267 LIBS="$lt_cv_dlopen_libs $LIBS"
9269 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9270 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9271 if test "${lt_cv_dlopen_self+set}" = set; then
9272 echo $ECHO_N "(cached) $ECHO_C" >&6
9273 else
9274 if test "$cross_compiling" = yes; then :
9275 lt_cv_dlopen_self=cross
9276 else
9277 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9278 lt_status=$lt_dlunknown
9279 cat > conftest.$ac_ext <<_LT_EOF
9280 #line 9280 "configure"
9281 #include "confdefs.h"
9283 #if HAVE_DLFCN_H
9284 #include <dlfcn.h>
9285 #endif
9287 #include <stdio.h>
9289 #ifdef RTLD_GLOBAL
9290 # define LT_DLGLOBAL RTLD_GLOBAL
9291 #else
9292 # ifdef DL_GLOBAL
9293 # define LT_DLGLOBAL DL_GLOBAL
9294 # else
9295 # define LT_DLGLOBAL 0
9296 # endif
9297 #endif
9299 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9300 find out it does not work in some platform. */
9301 #ifndef LT_DLLAZY_OR_NOW
9302 # ifdef RTLD_LAZY
9303 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9304 # else
9305 # ifdef DL_LAZY
9306 # define LT_DLLAZY_OR_NOW DL_LAZY
9307 # else
9308 # ifdef RTLD_NOW
9309 # define LT_DLLAZY_OR_NOW RTLD_NOW
9310 # else
9311 # ifdef DL_NOW
9312 # define LT_DLLAZY_OR_NOW DL_NOW
9313 # else
9314 # define LT_DLLAZY_OR_NOW 0
9315 # endif
9316 # endif
9317 # endif
9318 # endif
9319 #endif
9321 #ifdef __cplusplus
9322 extern "C" void exit (int);
9323 #endif
9325 void fnord() { int i=42;}
9326 int main ()
9328 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9329 int status = $lt_dlunknown;
9331 if (self)
9333 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9334 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9335 /* dlclose (self); */
9337 else
9338 puts (dlerror ());
9340 exit (status);
9342 _LT_EOF
9343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9344 (eval $ac_link) 2>&5
9345 ac_status=$?
9346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9348 (./conftest; exit; ) >&5 2>/dev/null
9349 lt_status=$?
9350 case x$lt_status in
9351 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9352 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9353 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9354 esac
9355 else :
9356 # compilation failed
9357 lt_cv_dlopen_self=no
9360 rm -fr conftest*
9364 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9365 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9367 if test "x$lt_cv_dlopen_self" = xyes; then
9368 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9369 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9370 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9371 if test "${lt_cv_dlopen_self_static+set}" = set; then
9372 echo $ECHO_N "(cached) $ECHO_C" >&6
9373 else
9374 if test "$cross_compiling" = yes; then :
9375 lt_cv_dlopen_self_static=cross
9376 else
9377 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9378 lt_status=$lt_dlunknown
9379 cat > conftest.$ac_ext <<_LT_EOF
9380 #line 9380 "configure"
9381 #include "confdefs.h"
9383 #if HAVE_DLFCN_H
9384 #include <dlfcn.h>
9385 #endif
9387 #include <stdio.h>
9389 #ifdef RTLD_GLOBAL
9390 # define LT_DLGLOBAL RTLD_GLOBAL
9391 #else
9392 # ifdef DL_GLOBAL
9393 # define LT_DLGLOBAL DL_GLOBAL
9394 # else
9395 # define LT_DLGLOBAL 0
9396 # endif
9397 #endif
9399 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9400 find out it does not work in some platform. */
9401 #ifndef LT_DLLAZY_OR_NOW
9402 # ifdef RTLD_LAZY
9403 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9404 # else
9405 # ifdef DL_LAZY
9406 # define LT_DLLAZY_OR_NOW DL_LAZY
9407 # else
9408 # ifdef RTLD_NOW
9409 # define LT_DLLAZY_OR_NOW RTLD_NOW
9410 # else
9411 # ifdef DL_NOW
9412 # define LT_DLLAZY_OR_NOW DL_NOW
9413 # else
9414 # define LT_DLLAZY_OR_NOW 0
9415 # endif
9416 # endif
9417 # endif
9418 # endif
9419 #endif
9421 #ifdef __cplusplus
9422 extern "C" void exit (int);
9423 #endif
9425 void fnord() { int i=42;}
9426 int main ()
9428 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9429 int status = $lt_dlunknown;
9431 if (self)
9433 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9434 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9435 /* dlclose (self); */
9437 else
9438 puts (dlerror ());
9440 exit (status);
9442 _LT_EOF
9443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9444 (eval $ac_link) 2>&5
9445 ac_status=$?
9446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9447 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9448 (./conftest; exit; ) >&5 2>/dev/null
9449 lt_status=$?
9450 case x$lt_status in
9451 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9452 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9453 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9454 esac
9455 else :
9456 # compilation failed
9457 lt_cv_dlopen_self_static=no
9460 rm -fr conftest*
9464 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9465 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9468 CPPFLAGS="$save_CPPFLAGS"
9469 LDFLAGS="$save_LDFLAGS"
9470 LIBS="$save_LIBS"
9472 esac
9474 case $lt_cv_dlopen_self in
9475 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9476 *) enable_dlopen_self=unknown ;;
9477 esac
9479 case $lt_cv_dlopen_self_static in
9480 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9481 *) enable_dlopen_self_static=unknown ;;
9482 esac
9501 striplib=
9502 old_striplib=
9503 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9504 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9505 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9506 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9507 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9508 echo "$as_me:$LINENO: result: yes" >&5
9509 echo "${ECHO_T}yes" >&6
9510 else
9511 # FIXME - insert some real tests, host_os isn't really good enough
9512 case $host_os in
9513 darwin*)
9514 if test -n "$STRIP" ; then
9515 striplib="$STRIP -x"
9516 old_striplib="$STRIP -S"
9517 echo "$as_me:$LINENO: result: yes" >&5
9518 echo "${ECHO_T}yes" >&6
9519 else
9520 echo "$as_me:$LINENO: result: no" >&5
9521 echo "${ECHO_T}no" >&6
9525 echo "$as_me:$LINENO: result: no" >&5
9526 echo "${ECHO_T}no" >&6
9528 esac
9542 # Report which library types will actually be built
9543 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9544 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9545 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9546 echo "${ECHO_T}$can_build_shared" >&6
9548 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9549 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9550 test "$can_build_shared" = "no" && enable_shared=no
9552 # On AIX, shared libraries and static libraries use the same namespace, and
9553 # are all built from PIC.
9554 case $host_os in
9555 aix3*)
9556 test "$enable_shared" = yes && enable_static=no
9557 if test -n "$RANLIB"; then
9558 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9559 postinstall_cmds='$RANLIB $lib'
9563 aix[4-9]*)
9564 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9565 test "$enable_shared" = yes && enable_static=no
9568 esac
9569 echo "$as_me:$LINENO: result: $enable_shared" >&5
9570 echo "${ECHO_T}$enable_shared" >&6
9572 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9573 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9574 # Make sure either enable_shared or enable_static is yes.
9575 test "$enable_shared" = yes || enable_static=yes
9576 echo "$as_me:$LINENO: result: $enable_static" >&5
9577 echo "${ECHO_T}$enable_static" >&6
9583 ac_ext=c
9584 ac_cpp='$CPP $CPPFLAGS'
9585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9589 CC="$lt_save_CC"
9603 ac_config_commands="$ac_config_commands libtool"
9608 # Only expand once:
9612 # Find CPP now so that any conditional tests below won't do it and
9613 # thereby make the resulting definitions conditional.
9614 ac_ext=c
9615 ac_cpp='$CPP $CPPFLAGS'
9616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9619 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
9620 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
9621 # On Suns, sometimes $CPP names a directory.
9622 if test -n "$CPP" && test -d "$CPP"; then
9623 CPP=
9625 if test -z "$CPP"; then
9626 if test "${ac_cv_prog_CPP+set}" = set; then
9627 echo $ECHO_N "(cached) $ECHO_C" >&6
9628 else
9629 # Double quotes because CPP needs to be expanded
9630 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
9632 ac_preproc_ok=false
9633 for ac_c_preproc_warn_flag in '' yes
9635 # Use a header file that comes with gcc, so configuring glibc
9636 # with a fresh cross-compiler works.
9637 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9638 # <limits.h> exists even on freestanding compilers.
9639 # On the NeXT, cc -E runs the code through the compiler's parser,
9640 # not just through cpp. "Syntax error" is here to catch this case.
9641 cat >conftest.$ac_ext <<_ACEOF
9642 /* confdefs.h. */
9643 _ACEOF
9644 cat confdefs.h >>conftest.$ac_ext
9645 cat >>conftest.$ac_ext <<_ACEOF
9646 /* end confdefs.h. */
9647 #ifdef __STDC__
9648 # include <limits.h>
9649 #else
9650 # include <assert.h>
9651 #endif
9652 Syntax error
9653 _ACEOF
9654 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9655 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9656 ac_status=$?
9657 grep -v '^ *+' conftest.er1 >conftest.err
9658 rm -f conftest.er1
9659 cat conftest.err >&5
9660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9661 (exit $ac_status); } >/dev/null; then
9662 if test -s conftest.err; then
9663 ac_cpp_err=$ac_c_preproc_warn_flag
9664 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9665 else
9666 ac_cpp_err=
9668 else
9669 ac_cpp_err=yes
9671 if test -z "$ac_cpp_err"; then
9673 else
9674 echo "$as_me: failed program was:" >&5
9675 sed 's/^/| /' conftest.$ac_ext >&5
9677 # Broken: fails on valid input.
9678 continue
9680 rm -f conftest.err conftest.$ac_ext
9682 # OK, works on sane cases. Now check whether non-existent headers
9683 # can be detected and how.
9684 cat >conftest.$ac_ext <<_ACEOF
9685 /* confdefs.h. */
9686 _ACEOF
9687 cat confdefs.h >>conftest.$ac_ext
9688 cat >>conftest.$ac_ext <<_ACEOF
9689 /* end confdefs.h. */
9690 #include <ac_nonexistent.h>
9691 _ACEOF
9692 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9693 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9694 ac_status=$?
9695 grep -v '^ *+' conftest.er1 >conftest.err
9696 rm -f conftest.er1
9697 cat conftest.err >&5
9698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9699 (exit $ac_status); } >/dev/null; then
9700 if test -s conftest.err; then
9701 ac_cpp_err=$ac_c_preproc_warn_flag
9702 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9703 else
9704 ac_cpp_err=
9706 else
9707 ac_cpp_err=yes
9709 if test -z "$ac_cpp_err"; then
9710 # Broken: success on invalid input.
9711 continue
9712 else
9713 echo "$as_me: failed program was:" >&5
9714 sed 's/^/| /' conftest.$ac_ext >&5
9716 # Passes both tests.
9717 ac_preproc_ok=:
9718 break
9720 rm -f conftest.err conftest.$ac_ext
9722 done
9723 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9724 rm -f conftest.err conftest.$ac_ext
9725 if $ac_preproc_ok; then
9726 break
9729 done
9730 ac_cv_prog_CPP=$CPP
9733 CPP=$ac_cv_prog_CPP
9734 else
9735 ac_cv_prog_CPP=$CPP
9737 echo "$as_me:$LINENO: result: $CPP" >&5
9738 echo "${ECHO_T}$CPP" >&6
9739 ac_preproc_ok=false
9740 for ac_c_preproc_warn_flag in '' yes
9742 # Use a header file that comes with gcc, so configuring glibc
9743 # with a fresh cross-compiler works.
9744 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9745 # <limits.h> exists even on freestanding compilers.
9746 # On the NeXT, cc -E runs the code through the compiler's parser,
9747 # not just through cpp. "Syntax error" is here to catch this case.
9748 cat >conftest.$ac_ext <<_ACEOF
9749 /* confdefs.h. */
9750 _ACEOF
9751 cat confdefs.h >>conftest.$ac_ext
9752 cat >>conftest.$ac_ext <<_ACEOF
9753 /* end confdefs.h. */
9754 #ifdef __STDC__
9755 # include <limits.h>
9756 #else
9757 # include <assert.h>
9758 #endif
9759 Syntax error
9760 _ACEOF
9761 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9762 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9763 ac_status=$?
9764 grep -v '^ *+' conftest.er1 >conftest.err
9765 rm -f conftest.er1
9766 cat conftest.err >&5
9767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9768 (exit $ac_status); } >/dev/null; then
9769 if test -s conftest.err; then
9770 ac_cpp_err=$ac_c_preproc_warn_flag
9771 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9772 else
9773 ac_cpp_err=
9775 else
9776 ac_cpp_err=yes
9778 if test -z "$ac_cpp_err"; then
9780 else
9781 echo "$as_me: failed program was:" >&5
9782 sed 's/^/| /' conftest.$ac_ext >&5
9784 # Broken: fails on valid input.
9785 continue
9787 rm -f conftest.err conftest.$ac_ext
9789 # OK, works on sane cases. Now check whether non-existent headers
9790 # can be detected and how.
9791 cat >conftest.$ac_ext <<_ACEOF
9792 /* confdefs.h. */
9793 _ACEOF
9794 cat confdefs.h >>conftest.$ac_ext
9795 cat >>conftest.$ac_ext <<_ACEOF
9796 /* end confdefs.h. */
9797 #include <ac_nonexistent.h>
9798 _ACEOF
9799 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9800 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9801 ac_status=$?
9802 grep -v '^ *+' conftest.er1 >conftest.err
9803 rm -f conftest.er1
9804 cat conftest.err >&5
9805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9806 (exit $ac_status); } >/dev/null; then
9807 if test -s conftest.err; then
9808 ac_cpp_err=$ac_c_preproc_warn_flag
9809 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9810 else
9811 ac_cpp_err=
9813 else
9814 ac_cpp_err=yes
9816 if test -z "$ac_cpp_err"; then
9817 # Broken: success on invalid input.
9818 continue
9819 else
9820 echo "$as_me: failed program was:" >&5
9821 sed 's/^/| /' conftest.$ac_ext >&5
9823 # Passes both tests.
9824 ac_preproc_ok=:
9825 break
9827 rm -f conftest.err conftest.$ac_ext
9829 done
9830 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9831 rm -f conftest.err conftest.$ac_ext
9832 if $ac_preproc_ok; then
9834 else
9835 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
9836 See \`config.log' for more details." >&5
9837 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
9838 See \`config.log' for more details." >&2;}
9839 { (exit 1); exit 1; }; }
9842 ac_ext=c
9843 ac_cpp='$CPP $CPPFLAGS'
9844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9849 if test -n "$with_cross_host"; then
9850 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
9851 # may not work correctly, because the compiler may not be able to
9852 # link executables.
9854 # We assume newlib. This lets us hard-code the functions we know
9855 # we'll have.
9856 cat >>confdefs.h <<\_ACEOF
9857 #define HAVE_MEMCPY 1
9858 _ACEOF
9860 cat >>confdefs.h <<\_ACEOF
9861 #define HAVE_STRERROR 1
9862 _ACEOF
9865 # We ignore --with-system-zlib in this case.
9866 target_all=libzgcj.la
9867 else
9868 if test x$gcc_no_link = xyes; then
9869 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
9870 ac_cv_func_mmap_fixed_mapped=no
9873 if test "x${ac_cv_func_mmap_fixed_mapped}" != xno; then
9876 for ac_header in stdlib.h unistd.h
9878 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9879 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9880 echo "$as_me:$LINENO: checking for $ac_header" >&5
9881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9882 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9883 echo $ECHO_N "(cached) $ECHO_C" >&6
9885 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9886 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9887 else
9888 # Is the header compilable?
9889 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9890 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9891 cat >conftest.$ac_ext <<_ACEOF
9892 /* confdefs.h. */
9893 _ACEOF
9894 cat confdefs.h >>conftest.$ac_ext
9895 cat >>conftest.$ac_ext <<_ACEOF
9896 /* end confdefs.h. */
9897 $ac_includes_default
9898 #include <$ac_header>
9899 _ACEOF
9900 rm -f conftest.$ac_objext
9901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9902 (eval $ac_compile) 2>conftest.er1
9903 ac_status=$?
9904 grep -v '^ *+' conftest.er1 >conftest.err
9905 rm -f conftest.er1
9906 cat conftest.err >&5
9907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908 (exit $ac_status); } &&
9909 { ac_try='test -z "$ac_c_werror_flag"
9910 || test ! -s conftest.err'
9911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9912 (eval $ac_try) 2>&5
9913 ac_status=$?
9914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915 (exit $ac_status); }; } &&
9916 { ac_try='test -s conftest.$ac_objext'
9917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9918 (eval $ac_try) 2>&5
9919 ac_status=$?
9920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9921 (exit $ac_status); }; }; then
9922 ac_header_compiler=yes
9923 else
9924 echo "$as_me: failed program was:" >&5
9925 sed 's/^/| /' conftest.$ac_ext >&5
9927 ac_header_compiler=no
9929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9930 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9931 echo "${ECHO_T}$ac_header_compiler" >&6
9933 # Is the header present?
9934 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9935 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9936 cat >conftest.$ac_ext <<_ACEOF
9937 /* confdefs.h. */
9938 _ACEOF
9939 cat confdefs.h >>conftest.$ac_ext
9940 cat >>conftest.$ac_ext <<_ACEOF
9941 /* end confdefs.h. */
9942 #include <$ac_header>
9943 _ACEOF
9944 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9945 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9946 ac_status=$?
9947 grep -v '^ *+' conftest.er1 >conftest.err
9948 rm -f conftest.er1
9949 cat conftest.err >&5
9950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951 (exit $ac_status); } >/dev/null; then
9952 if test -s conftest.err; then
9953 ac_cpp_err=$ac_c_preproc_warn_flag
9954 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9955 else
9956 ac_cpp_err=
9958 else
9959 ac_cpp_err=yes
9961 if test -z "$ac_cpp_err"; then
9962 ac_header_preproc=yes
9963 else
9964 echo "$as_me: failed program was:" >&5
9965 sed 's/^/| /' conftest.$ac_ext >&5
9967 ac_header_preproc=no
9969 rm -f conftest.err conftest.$ac_ext
9970 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9971 echo "${ECHO_T}$ac_header_preproc" >&6
9973 # So? What about this header?
9974 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9975 yes:no: )
9976 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9977 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9978 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9979 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9980 ac_header_preproc=yes
9982 no:yes:* )
9983 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9984 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9985 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9986 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9987 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9988 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9989 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9990 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9991 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9992 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9993 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9994 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9996 cat <<\_ASBOX
9997 ## ------------------------------------------ ##
9998 ## Report this to the AC_PACKAGE_NAME lists. ##
9999 ## ------------------------------------------ ##
10000 _ASBOX
10002 sed "s/^/$as_me: WARNING: /" >&2
10004 esac
10005 echo "$as_me:$LINENO: checking for $ac_header" >&5
10006 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10007 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10008 echo $ECHO_N "(cached) $ECHO_C" >&6
10009 else
10010 eval "$as_ac_Header=\$ac_header_preproc"
10012 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10013 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10016 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10017 cat >>confdefs.h <<_ACEOF
10018 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10019 _ACEOF
10023 done
10026 for ac_func in getpagesize
10028 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10029 echo "$as_me:$LINENO: checking for $ac_func" >&5
10030 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10031 if eval "test \"\${$as_ac_var+set}\" = set"; then
10032 echo $ECHO_N "(cached) $ECHO_C" >&6
10033 else
10034 if test x$gcc_no_link = xyes; then
10035 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10036 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10037 { (exit 1); exit 1; }; }
10039 cat >conftest.$ac_ext <<_ACEOF
10040 /* confdefs.h. */
10041 _ACEOF
10042 cat confdefs.h >>conftest.$ac_ext
10043 cat >>conftest.$ac_ext <<_ACEOF
10044 /* end confdefs.h. */
10045 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10046 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10047 #define $ac_func innocuous_$ac_func
10049 /* System header to define __stub macros and hopefully few prototypes,
10050 which can conflict with char $ac_func (); below.
10051 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10052 <limits.h> exists even on freestanding compilers. */
10054 #ifdef __STDC__
10055 # include <limits.h>
10056 #else
10057 # include <assert.h>
10058 #endif
10060 #undef $ac_func
10062 /* Override any gcc2 internal prototype to avoid an error. */
10063 #ifdef __cplusplus
10064 extern "C"
10066 #endif
10067 /* We use char because int might match the return type of a gcc2
10068 builtin and then its argument prototype would still apply. */
10069 char $ac_func ();
10070 /* The GNU C library defines this for functions which it implements
10071 to always fail with ENOSYS. Some functions are actually named
10072 something starting with __ and the normal name is an alias. */
10073 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10074 choke me
10075 #else
10076 char (*f) () = $ac_func;
10077 #endif
10078 #ifdef __cplusplus
10080 #endif
10083 main ()
10085 return f != $ac_func;
10087 return 0;
10089 _ACEOF
10090 rm -f conftest.$ac_objext conftest$ac_exeext
10091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10092 (eval $ac_link) 2>conftest.er1
10093 ac_status=$?
10094 grep -v '^ *+' conftest.er1 >conftest.err
10095 rm -f conftest.er1
10096 cat conftest.err >&5
10097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098 (exit $ac_status); } &&
10099 { ac_try='test -z "$ac_c_werror_flag"
10100 || test ! -s conftest.err'
10101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10102 (eval $ac_try) 2>&5
10103 ac_status=$?
10104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105 (exit $ac_status); }; } &&
10106 { ac_try='test -s conftest$ac_exeext'
10107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10108 (eval $ac_try) 2>&5
10109 ac_status=$?
10110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111 (exit $ac_status); }; }; then
10112 eval "$as_ac_var=yes"
10113 else
10114 echo "$as_me: failed program was:" >&5
10115 sed 's/^/| /' conftest.$ac_ext >&5
10117 eval "$as_ac_var=no"
10119 rm -f conftest.err conftest.$ac_objext \
10120 conftest$ac_exeext conftest.$ac_ext
10122 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10123 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10124 if test `eval echo '${'$as_ac_var'}'` = yes; then
10125 cat >>confdefs.h <<_ACEOF
10126 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10127 _ACEOF
10130 done
10132 echo "$as_me:$LINENO: checking for working mmap" >&5
10133 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
10134 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10135 echo $ECHO_N "(cached) $ECHO_C" >&6
10136 else
10137 if test "$cross_compiling" = yes; then
10138 ac_cv_func_mmap_fixed_mapped=no
10139 else
10140 cat >conftest.$ac_ext <<_ACEOF
10141 /* confdefs.h. */
10142 _ACEOF
10143 cat confdefs.h >>conftest.$ac_ext
10144 cat >>conftest.$ac_ext <<_ACEOF
10145 /* end confdefs.h. */
10146 $ac_includes_default
10147 /* malloc might have been renamed as rpl_malloc. */
10148 #undef malloc
10150 /* Thanks to Mike Haertel and Jim Avera for this test.
10151 Here is a matrix of mmap possibilities:
10152 mmap private not fixed
10153 mmap private fixed at somewhere currently unmapped
10154 mmap private fixed at somewhere already mapped
10155 mmap shared not fixed
10156 mmap shared fixed at somewhere currently unmapped
10157 mmap shared fixed at somewhere already mapped
10158 For private mappings, we should verify that changes cannot be read()
10159 back from the file, nor mmap's back from the file at a different
10160 address. (There have been systems where private was not correctly
10161 implemented like the infamous i386 svr4.0, and systems where the
10162 VM page cache was not coherent with the file system buffer cache
10163 like early versions of FreeBSD and possibly contemporary NetBSD.)
10164 For shared mappings, we should conversely verify that changes get
10165 propagated back to all the places they're supposed to be.
10167 Grep wants private fixed already mapped.
10168 The main things grep needs to know about mmap are:
10169 * does it exist and is it safe to write into the mmap'd area
10170 * how to use it (BSD variants) */
10172 #include <fcntl.h>
10173 #include <sys/mman.h>
10175 #if !STDC_HEADERS && !HAVE_STDLIB_H
10176 char *malloc ();
10177 #endif
10179 /* This mess was copied from the GNU getpagesize.h. */
10180 #if !HAVE_GETPAGESIZE
10181 /* Assume that all systems that can run configure have sys/param.h. */
10182 # if !HAVE_SYS_PARAM_H
10183 # define HAVE_SYS_PARAM_H 1
10184 # endif
10186 # ifdef _SC_PAGESIZE
10187 # define getpagesize() sysconf(_SC_PAGESIZE)
10188 # else /* no _SC_PAGESIZE */
10189 # if HAVE_SYS_PARAM_H
10190 # include <sys/param.h>
10191 # ifdef EXEC_PAGESIZE
10192 # define getpagesize() EXEC_PAGESIZE
10193 # else /* no EXEC_PAGESIZE */
10194 # ifdef NBPG
10195 # define getpagesize() NBPG * CLSIZE
10196 # ifndef CLSIZE
10197 # define CLSIZE 1
10198 # endif /* no CLSIZE */
10199 # else /* no NBPG */
10200 # ifdef NBPC
10201 # define getpagesize() NBPC
10202 # else /* no NBPC */
10203 # ifdef PAGESIZE
10204 # define getpagesize() PAGESIZE
10205 # endif /* PAGESIZE */
10206 # endif /* no NBPC */
10207 # endif /* no NBPG */
10208 # endif /* no EXEC_PAGESIZE */
10209 # else /* no HAVE_SYS_PARAM_H */
10210 # define getpagesize() 8192 /* punt totally */
10211 # endif /* no HAVE_SYS_PARAM_H */
10212 # endif /* no _SC_PAGESIZE */
10214 #endif /* no HAVE_GETPAGESIZE */
10217 main ()
10219 char *data, *data2, *data3;
10220 int i, pagesize;
10221 int fd;
10223 pagesize = getpagesize ();
10225 /* First, make a file with some known garbage in it. */
10226 data = (char *) malloc (pagesize);
10227 if (!data)
10228 exit (1);
10229 for (i = 0; i < pagesize; ++i)
10230 *(data + i) = rand ();
10231 umask (0);
10232 fd = creat ("conftest.mmap", 0600);
10233 if (fd < 0)
10234 exit (1);
10235 if (write (fd, data, pagesize) != pagesize)
10236 exit (1);
10237 close (fd);
10239 /* Next, try to mmap the file at a fixed address which already has
10240 something else allocated at it. If we can, also make sure that
10241 we see the same garbage. */
10242 fd = open ("conftest.mmap", O_RDWR);
10243 if (fd < 0)
10244 exit (1);
10245 data2 = (char *) malloc (2 * pagesize);
10246 if (!data2)
10247 exit (1);
10248 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
10249 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10250 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10251 exit (1);
10252 for (i = 0; i < pagesize; ++i)
10253 if (*(data + i) != *(data2 + i))
10254 exit (1);
10256 /* Finally, make sure that changes to the mapped area do not
10257 percolate back to the file as seen by read(). (This is a bug on
10258 some variants of i386 svr4.0.) */
10259 for (i = 0; i < pagesize; ++i)
10260 *(data2 + i) = *(data2 + i) + 1;
10261 data3 = (char *) malloc (pagesize);
10262 if (!data3)
10263 exit (1);
10264 if (read (fd, data3, pagesize) != pagesize)
10265 exit (1);
10266 for (i = 0; i < pagesize; ++i)
10267 if (*(data + i) != *(data3 + i))
10268 exit (1);
10269 close (fd);
10270 exit (0);
10272 _ACEOF
10273 rm -f conftest$ac_exeext
10274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10275 (eval $ac_link) 2>&5
10276 ac_status=$?
10277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10280 (eval $ac_try) 2>&5
10281 ac_status=$?
10282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10283 (exit $ac_status); }; }; then
10284 ac_cv_func_mmap_fixed_mapped=yes
10285 else
10286 echo "$as_me: program exited with status $ac_status" >&5
10287 echo "$as_me: failed program was:" >&5
10288 sed 's/^/| /' conftest.$ac_ext >&5
10290 ( exit $ac_status )
10291 ac_cv_func_mmap_fixed_mapped=no
10293 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10296 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10297 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
10298 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10300 cat >>confdefs.h <<\_ACEOF
10301 #define HAVE_MMAP 1
10302 _ACEOF
10305 rm -f conftest.mmap
10310 for ac_func in memcpy strerror
10312 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10313 echo "$as_me:$LINENO: checking for $ac_func" >&5
10314 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10315 if eval "test \"\${$as_ac_var+set}\" = set"; then
10316 echo $ECHO_N "(cached) $ECHO_C" >&6
10317 else
10318 if test x$gcc_no_link = xyes; then
10319 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10320 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10321 { (exit 1); exit 1; }; }
10323 cat >conftest.$ac_ext <<_ACEOF
10324 /* confdefs.h. */
10325 _ACEOF
10326 cat confdefs.h >>conftest.$ac_ext
10327 cat >>conftest.$ac_ext <<_ACEOF
10328 /* end confdefs.h. */
10329 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10330 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10331 #define $ac_func innocuous_$ac_func
10333 /* System header to define __stub macros and hopefully few prototypes,
10334 which can conflict with char $ac_func (); below.
10335 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10336 <limits.h> exists even on freestanding compilers. */
10338 #ifdef __STDC__
10339 # include <limits.h>
10340 #else
10341 # include <assert.h>
10342 #endif
10344 #undef $ac_func
10346 /* Override any gcc2 internal prototype to avoid an error. */
10347 #ifdef __cplusplus
10348 extern "C"
10350 #endif
10351 /* We use char because int might match the return type of a gcc2
10352 builtin and then its argument prototype would still apply. */
10353 char $ac_func ();
10354 /* The GNU C library defines this for functions which it implements
10355 to always fail with ENOSYS. Some functions are actually named
10356 something starting with __ and the normal name is an alias. */
10357 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10358 choke me
10359 #else
10360 char (*f) () = $ac_func;
10361 #endif
10362 #ifdef __cplusplus
10364 #endif
10367 main ()
10369 return f != $ac_func;
10371 return 0;
10373 _ACEOF
10374 rm -f conftest.$ac_objext conftest$ac_exeext
10375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10376 (eval $ac_link) 2>conftest.er1
10377 ac_status=$?
10378 grep -v '^ *+' conftest.er1 >conftest.err
10379 rm -f conftest.er1
10380 cat conftest.err >&5
10381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382 (exit $ac_status); } &&
10383 { ac_try='test -z "$ac_c_werror_flag"
10384 || test ! -s conftest.err'
10385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10386 (eval $ac_try) 2>&5
10387 ac_status=$?
10388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10389 (exit $ac_status); }; } &&
10390 { ac_try='test -s conftest$ac_exeext'
10391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10392 (eval $ac_try) 2>&5
10393 ac_status=$?
10394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10395 (exit $ac_status); }; }; then
10396 eval "$as_ac_var=yes"
10397 else
10398 echo "$as_me: failed program was:" >&5
10399 sed 's/^/| /' conftest.$ac_ext >&5
10401 eval "$as_ac_var=no"
10403 rm -f conftest.err conftest.$ac_objext \
10404 conftest$ac_exeext conftest.$ac_ext
10406 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10407 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10408 if test `eval echo '${'$as_ac_var'}'` = yes; then
10409 cat >>confdefs.h <<_ACEOF
10410 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10411 _ACEOF
10414 done
10417 if test "$with_system_zlib" = yes; then
10418 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
10419 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
10420 if test "${ac_cv_lib_z_deflate+set}" = set; then
10421 echo $ECHO_N "(cached) $ECHO_C" >&6
10422 else
10423 ac_check_lib_save_LIBS=$LIBS
10424 LIBS="-lz $LIBS"
10425 if test x$gcc_no_link = xyes; then
10426 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10427 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10428 { (exit 1); exit 1; }; }
10430 cat >conftest.$ac_ext <<_ACEOF
10431 /* confdefs.h. */
10432 _ACEOF
10433 cat confdefs.h >>conftest.$ac_ext
10434 cat >>conftest.$ac_ext <<_ACEOF
10435 /* end confdefs.h. */
10437 /* Override any gcc2 internal prototype to avoid an error. */
10438 #ifdef __cplusplus
10439 extern "C"
10440 #endif
10441 /* We use char because int might match the return type of a gcc2
10442 builtin and then its argument prototype would still apply. */
10443 char deflate ();
10445 main ()
10447 deflate ();
10449 return 0;
10451 _ACEOF
10452 rm -f conftest.$ac_objext conftest$ac_exeext
10453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10454 (eval $ac_link) 2>conftest.er1
10455 ac_status=$?
10456 grep -v '^ *+' conftest.er1 >conftest.err
10457 rm -f conftest.er1
10458 cat conftest.err >&5
10459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10460 (exit $ac_status); } &&
10461 { ac_try='test -z "$ac_c_werror_flag"
10462 || test ! -s conftest.err'
10463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10464 (eval $ac_try) 2>&5
10465 ac_status=$?
10466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10467 (exit $ac_status); }; } &&
10468 { ac_try='test -s conftest$ac_exeext'
10469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10470 (eval $ac_try) 2>&5
10471 ac_status=$?
10472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473 (exit $ac_status); }; }; then
10474 ac_cv_lib_z_deflate=yes
10475 else
10476 echo "$as_me: failed program was:" >&5
10477 sed 's/^/| /' conftest.$ac_ext >&5
10479 ac_cv_lib_z_deflate=no
10481 rm -f conftest.err conftest.$ac_objext \
10482 conftest$ac_exeext conftest.$ac_ext
10483 LIBS=$ac_check_lib_save_LIBS
10485 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
10486 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
10487 if test $ac_cv_lib_z_deflate = yes; then
10488 target_all=
10489 else
10490 target_all=libzgcj.la
10493 else
10494 target_all=libzgcj.la
10501 for ac_header in unistd.h
10503 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10504 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10505 echo "$as_me:$LINENO: checking for $ac_header" >&5
10506 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10507 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10508 echo $ECHO_N "(cached) $ECHO_C" >&6
10510 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10511 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10512 else
10513 # Is the header compilable?
10514 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10515 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10516 cat >conftest.$ac_ext <<_ACEOF
10517 /* confdefs.h. */
10518 _ACEOF
10519 cat confdefs.h >>conftest.$ac_ext
10520 cat >>conftest.$ac_ext <<_ACEOF
10521 /* end confdefs.h. */
10522 $ac_includes_default
10523 #include <$ac_header>
10524 _ACEOF
10525 rm -f conftest.$ac_objext
10526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10527 (eval $ac_compile) 2>conftest.er1
10528 ac_status=$?
10529 grep -v '^ *+' conftest.er1 >conftest.err
10530 rm -f conftest.er1
10531 cat conftest.err >&5
10532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533 (exit $ac_status); } &&
10534 { ac_try='test -z "$ac_c_werror_flag"
10535 || test ! -s conftest.err'
10536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10537 (eval $ac_try) 2>&5
10538 ac_status=$?
10539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540 (exit $ac_status); }; } &&
10541 { ac_try='test -s conftest.$ac_objext'
10542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10543 (eval $ac_try) 2>&5
10544 ac_status=$?
10545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546 (exit $ac_status); }; }; then
10547 ac_header_compiler=yes
10548 else
10549 echo "$as_me: failed program was:" >&5
10550 sed 's/^/| /' conftest.$ac_ext >&5
10552 ac_header_compiler=no
10554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10555 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10556 echo "${ECHO_T}$ac_header_compiler" >&6
10558 # Is the header present?
10559 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10560 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10561 cat >conftest.$ac_ext <<_ACEOF
10562 /* confdefs.h. */
10563 _ACEOF
10564 cat confdefs.h >>conftest.$ac_ext
10565 cat >>conftest.$ac_ext <<_ACEOF
10566 /* end confdefs.h. */
10567 #include <$ac_header>
10568 _ACEOF
10569 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10570 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10571 ac_status=$?
10572 grep -v '^ *+' conftest.er1 >conftest.err
10573 rm -f conftest.er1
10574 cat conftest.err >&5
10575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10576 (exit $ac_status); } >/dev/null; then
10577 if test -s conftest.err; then
10578 ac_cpp_err=$ac_c_preproc_warn_flag
10579 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10580 else
10581 ac_cpp_err=
10583 else
10584 ac_cpp_err=yes
10586 if test -z "$ac_cpp_err"; then
10587 ac_header_preproc=yes
10588 else
10589 echo "$as_me: failed program was:" >&5
10590 sed 's/^/| /' conftest.$ac_ext >&5
10592 ac_header_preproc=no
10594 rm -f conftest.err conftest.$ac_ext
10595 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10596 echo "${ECHO_T}$ac_header_preproc" >&6
10598 # So? What about this header?
10599 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10600 yes:no: )
10601 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10602 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10603 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10604 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10605 ac_header_preproc=yes
10607 no:yes:* )
10608 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10609 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10610 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10611 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10612 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10613 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10614 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10615 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10616 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10617 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10618 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10619 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10621 cat <<\_ASBOX
10622 ## ------------------------------------------ ##
10623 ## Report this to the AC_PACKAGE_NAME lists. ##
10624 ## ------------------------------------------ ##
10625 _ASBOX
10627 sed "s/^/$as_me: WARNING: /" >&2
10629 esac
10630 echo "$as_me:$LINENO: checking for $ac_header" >&5
10631 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10632 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10633 echo $ECHO_N "(cached) $ECHO_C" >&6
10634 else
10635 eval "$as_ac_Header=\$ac_header_preproc"
10637 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10638 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10641 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10642 cat >>confdefs.h <<_ACEOF
10643 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10644 _ACEOF
10648 done
10651 if test -n "$with_cross_host" &&
10652 test x"$with_cross_host" != x"no"; then
10653 toolexecdir='$(exec_prefix)/$(target_alias)'
10654 toolexeclibdir='$(toolexecdir)/lib'
10655 else
10656 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
10657 toolexeclibdir='$(libdir)'
10659 if test "$GCC" = yes && $CC -print-multi-os-directory > /dev/null 2>&1; then
10660 multiosdir=/`$CC -print-multi-os-directory`
10661 case $multiosdir in
10662 /.) multiosdir= ;; # Avoid trailing /.
10663 esac
10664 else
10665 multiosdir=
10667 toolexeclibdir=${toolexeclibdir}${multiosdir}
10673 if test -n "$with_target_subdir"; then
10674 TARGET_LIBRARY_TRUE=
10675 TARGET_LIBRARY_FALSE='#'
10676 else
10677 TARGET_LIBRARY_TRUE='#'
10678 TARGET_LIBRARY_FALSE=
10682 if test "${multilib}" = "yes"; then
10683 multilib_arg="--enable-multilib"
10684 else
10685 multilib_arg=
10688 ac_config_files="$ac_config_files Makefile"
10690 cat >confcache <<\_ACEOF
10691 # This file is a shell script that caches the results of configure
10692 # tests run on this system so they can be shared between configure
10693 # scripts and configure runs, see configure's option --config-cache.
10694 # It is not useful on other systems. If it contains results you don't
10695 # want to keep, you may remove or edit it.
10697 # config.status only pays attention to the cache file if you give it
10698 # the --recheck option to rerun configure.
10700 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10701 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10702 # following values.
10704 _ACEOF
10706 # The following way of writing the cache mishandles newlines in values,
10707 # but we know of no workaround that is simple, portable, and efficient.
10708 # So, don't put newlines in cache variables' values.
10709 # Ultrix sh set writes to stderr and can't be redirected directly,
10710 # and sets the high bit in the cache file unless we assign to the vars.
10712 (set) 2>&1 |
10713 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10714 *ac_space=\ *)
10715 # `set' does not quote correctly, so add quotes (double-quote
10716 # substitution turns \\\\ into \\, and sed turns \\ into \).
10717 sed -n \
10718 "s/'/'\\\\''/g;
10719 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10722 # `set' quotes correctly as required by POSIX, so do not add quotes.
10723 sed -n \
10724 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10726 esac;
10728 sed '
10729 t clear
10730 : clear
10731 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10732 t end
10733 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10734 : end' >>confcache
10735 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10736 if test -w $cache_file; then
10737 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10738 cat confcache >$cache_file
10739 else
10740 echo "not updating unwritable cache $cache_file"
10743 rm -f confcache
10745 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10746 # Let make expand exec_prefix.
10747 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10749 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10750 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10751 # trailing colons and then remove the whole line if VPATH becomes empty
10752 # (actually we leave an empty line to preserve line numbers).
10753 if test "x$srcdir" = x.; then
10754 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10755 s/:*\$(srcdir):*/:/;
10756 s/:*\${srcdir}:*/:/;
10757 s/:*@srcdir@:*/:/;
10758 s/^\([^=]*=[ ]*\):*/\1/;
10759 s/:*$//;
10760 s/^[^=]*=[ ]*$//;
10764 # Transform confdefs.h into DEFS.
10765 # Protect against shell expansion while executing Makefile rules.
10766 # Protect against Makefile macro expansion.
10768 # If the first sed substitution is executed (which looks for macros that
10769 # take arguments), then we branch to the quote section. Otherwise,
10770 # look for a macro that doesn't take arguments.
10771 cat >confdef2opt.sed <<\_ACEOF
10772 t clear
10773 : clear
10774 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
10775 t quote
10776 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
10777 t quote
10779 : quote
10780 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
10781 s,\[,\\&,g
10782 s,\],\\&,g
10783 s,\$,$$,g
10785 _ACEOF
10786 # We use echo to avoid assuming a particular line-breaking character.
10787 # The extra dot is to prevent the shell from consuming trailing
10788 # line-breaks from the sub-command output. A line-break within
10789 # single-quotes doesn't work because, if this script is created in a
10790 # platform that uses two characters for line-breaks (e.g., DOS), tr
10791 # would break.
10792 ac_LF_and_DOT=`echo; echo .`
10793 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
10794 rm -f confdef2opt.sed
10797 ac_libobjs=
10798 ac_ltlibobjs=
10799 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10800 # 1. Remove the extension, and $U if already installed.
10801 ac_i=`echo "$ac_i" |
10802 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10803 # 2. Add them.
10804 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10805 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10806 done
10807 LIBOBJS=$ac_libobjs
10809 LTLIBOBJS=$ac_ltlibobjs
10812 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10813 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
10814 Usually this means the macro was only invoked conditionally." >&5
10815 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
10816 Usually this means the macro was only invoked conditionally." >&2;}
10817 { (exit 1); exit 1; }; }
10819 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10820 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10821 Usually this means the macro was only invoked conditionally." >&5
10822 echo "$as_me: error: conditional \"AMDEP\" was never defined.
10823 Usually this means the macro was only invoked conditionally." >&2;}
10824 { (exit 1); exit 1; }; }
10826 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10827 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10828 Usually this means the macro was only invoked conditionally." >&5
10829 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10830 Usually this means the macro was only invoked conditionally." >&2;}
10831 { (exit 1); exit 1; }; }
10833 if test -z "${TARGET_LIBRARY_TRUE}" && test -z "${TARGET_LIBRARY_FALSE}"; then
10834 { { echo "$as_me:$LINENO: error: conditional \"TARGET_LIBRARY\" was never defined.
10835 Usually this means the macro was only invoked conditionally." >&5
10836 echo "$as_me: error: conditional \"TARGET_LIBRARY\" was never defined.
10837 Usually this means the macro was only invoked conditionally." >&2;}
10838 { (exit 1); exit 1; }; }
10841 : ${CONFIG_STATUS=./config.status}
10842 ac_clean_files_save=$ac_clean_files
10843 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10844 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10845 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10846 cat >$CONFIG_STATUS <<_ACEOF
10847 #! $SHELL
10848 # Generated by $as_me.
10849 # Run this file to recreate the current configuration.
10850 # Compiler output produced by configure, useful for debugging
10851 # configure, is in config.log if it exists.
10853 debug=false
10854 ac_cs_recheck=false
10855 ac_cs_silent=false
10856 SHELL=\${CONFIG_SHELL-$SHELL}
10857 _ACEOF
10859 cat >>$CONFIG_STATUS <<\_ACEOF
10860 ## --------------------- ##
10861 ## M4sh Initialization. ##
10862 ## --------------------- ##
10864 # Be Bourne compatible
10865 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10866 emulate sh
10867 NULLCMD=:
10868 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10869 # is contrary to our usage. Disable this feature.
10870 alias -g '${1+"$@"}'='"$@"'
10871 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10872 set -o posix
10874 DUALCASE=1; export DUALCASE # for MKS sh
10876 # Support unset when possible.
10877 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10878 as_unset=unset
10879 else
10880 as_unset=false
10884 # Work around bugs in pre-3.0 UWIN ksh.
10885 $as_unset ENV MAIL MAILPATH
10886 PS1='$ '
10887 PS2='> '
10888 PS4='+ '
10890 # NLS nuisances.
10891 for as_var in \
10892 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10893 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10894 LC_TELEPHONE LC_TIME
10896 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10897 eval $as_var=C; export $as_var
10898 else
10899 $as_unset $as_var
10901 done
10903 # Required to use basename.
10904 if expr a : '\(a\)' >/dev/null 2>&1; then
10905 as_expr=expr
10906 else
10907 as_expr=false
10910 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10911 as_basename=basename
10912 else
10913 as_basename=false
10917 # Name of the executable.
10918 as_me=`$as_basename "$0" ||
10919 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10920 X"$0" : 'X\(//\)$' \| \
10921 X"$0" : 'X\(/\)$' \| \
10922 . : '\(.\)' 2>/dev/null ||
10923 echo X/"$0" |
10924 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10925 /^X\/\(\/\/\)$/{ s//\1/; q; }
10926 /^X\/\(\/\).*/{ s//\1/; q; }
10927 s/.*/./; q'`
10930 # PATH needs CR, and LINENO needs CR and PATH.
10931 # Avoid depending upon Character Ranges.
10932 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10933 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10934 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10935 as_cr_digits='0123456789'
10936 as_cr_alnum=$as_cr_Letters$as_cr_digits
10938 # The user is always right.
10939 if test "${PATH_SEPARATOR+set}" != set; then
10940 echo "#! /bin/sh" >conf$$.sh
10941 echo "exit 0" >>conf$$.sh
10942 chmod +x conf$$.sh
10943 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10944 PATH_SEPARATOR=';'
10945 else
10946 PATH_SEPARATOR=:
10948 rm -f conf$$.sh
10952 as_lineno_1=$LINENO
10953 as_lineno_2=$LINENO
10954 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10955 test "x$as_lineno_1" != "x$as_lineno_2" &&
10956 test "x$as_lineno_3" = "x$as_lineno_2" || {
10957 # Find who we are. Look in the path if we contain no path at all
10958 # relative or not.
10959 case $0 in
10960 *[\\/]* ) as_myself=$0 ;;
10961 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10962 for as_dir in $PATH
10964 IFS=$as_save_IFS
10965 test -z "$as_dir" && as_dir=.
10966 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10967 done
10970 esac
10971 # We did not find ourselves, most probably we were run as `sh COMMAND'
10972 # in which case we are not to be found in the path.
10973 if test "x$as_myself" = x; then
10974 as_myself=$0
10976 if test ! -f "$as_myself"; then
10977 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10978 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10979 { (exit 1); exit 1; }; }
10981 case $CONFIG_SHELL in
10983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10984 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10986 IFS=$as_save_IFS
10987 test -z "$as_dir" && as_dir=.
10988 for as_base in sh bash ksh sh5; do
10989 case $as_dir in
10991 if ("$as_dir/$as_base" -c '
10992 as_lineno_1=$LINENO
10993 as_lineno_2=$LINENO
10994 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10995 test "x$as_lineno_1" != "x$as_lineno_2" &&
10996 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
10997 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
10998 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
10999 CONFIG_SHELL=$as_dir/$as_base
11000 export CONFIG_SHELL
11001 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11002 fi;;
11003 esac
11004 done
11005 done
11007 esac
11009 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11010 # uniformly replaced by the line number. The first 'sed' inserts a
11011 # line-number line before each line; the second 'sed' does the real
11012 # work. The second script uses 'N' to pair each line-number line
11013 # with the numbered line, and appends trailing '-' during
11014 # substitution so that $LINENO is not a special case at line end.
11015 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11016 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11017 sed '=' <$as_myself |
11018 sed '
11020 s,$,-,
11021 : loop
11022 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11023 t loop
11024 s,-$,,
11025 s,^['$as_cr_digits']*\n,,
11026 ' >$as_me.lineno &&
11027 chmod +x $as_me.lineno ||
11028 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11029 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11030 { (exit 1); exit 1; }; }
11032 # Don't try to exec as it changes $[0], causing all sort of problems
11033 # (the dirname of $[0] is not the place where we might find the
11034 # original and so on. Autoconf is especially sensible to this).
11035 . ./$as_me.lineno
11036 # Exit status is that of the last command.
11037 exit
11041 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11042 *c*,-n*) ECHO_N= ECHO_C='
11043 ' ECHO_T=' ' ;;
11044 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11045 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11046 esac
11048 if expr a : '\(a\)' >/dev/null 2>&1; then
11049 as_expr=expr
11050 else
11051 as_expr=false
11054 rm -f conf$$ conf$$.exe conf$$.file
11055 echo >conf$$.file
11056 if ln -s conf$$.file conf$$ 2>/dev/null; then
11057 # We could just check for DJGPP; but this test a) works b) is more generic
11058 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11059 if test -f conf$$.exe; then
11060 # Don't use ln at all; we don't have any links
11061 as_ln_s='cp -p'
11062 else
11063 as_ln_s='ln -s'
11065 elif ln conf$$.file conf$$ 2>/dev/null; then
11066 as_ln_s=ln
11067 else
11068 as_ln_s='cp -p'
11070 rm -f conf$$ conf$$.exe conf$$.file
11072 if mkdir -p . 2>/dev/null; then
11073 as_mkdir_p=:
11074 else
11075 test -d ./-p && rmdir ./-p
11076 as_mkdir_p=false
11079 as_executable_p="test -f"
11081 # Sed expression to map a string onto a valid CPP name.
11082 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11084 # Sed expression to map a string onto a valid variable name.
11085 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11088 # IFS
11089 # We need space, tab and new line, in precisely that order.
11090 as_nl='
11092 IFS=" $as_nl"
11094 # CDPATH.
11095 $as_unset CDPATH
11097 exec 6>&1
11099 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11100 # report actual input values of CONFIG_FILES etc. instead of their
11101 # values after options handling. Logging --version etc. is OK.
11102 exec 5>>config.log
11104 echo
11105 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11106 ## Running $as_me. ##
11107 _ASBOX
11108 } >&5
11109 cat >&5 <<_CSEOF
11111 This file was extended by $as_me, which was
11112 generated by GNU Autoconf 2.59. Invocation command line was
11114 CONFIG_FILES = $CONFIG_FILES
11115 CONFIG_HEADERS = $CONFIG_HEADERS
11116 CONFIG_LINKS = $CONFIG_LINKS
11117 CONFIG_COMMANDS = $CONFIG_COMMANDS
11118 $ $0 $@
11120 _CSEOF
11121 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11122 echo >&5
11123 _ACEOF
11125 # Files that config.status was made for.
11126 if test -n "$ac_config_files"; then
11127 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11130 if test -n "$ac_config_headers"; then
11131 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11134 if test -n "$ac_config_links"; then
11135 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11138 if test -n "$ac_config_commands"; then
11139 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11142 cat >>$CONFIG_STATUS <<\_ACEOF
11144 ac_cs_usage="\
11145 \`$as_me' instantiates files from templates according to the
11146 current configuration.
11148 Usage: $0 [OPTIONS] [FILE]...
11150 -h, --help print this help, then exit
11151 -V, --version print version number, then exit
11152 -q, --quiet do not print progress messages
11153 -d, --debug don't remove temporary files
11154 --recheck update $as_me by reconfiguring in the same conditions
11155 --file=FILE[:TEMPLATE]
11156 instantiate the configuration file FILE
11158 Configuration files:
11159 $config_files
11161 Configuration commands:
11162 $config_commands
11164 Report bugs to <bug-autoconf@gnu.org>."
11165 _ACEOF
11167 cat >>$CONFIG_STATUS <<_ACEOF
11168 ac_cs_version="\\
11169 config.status
11170 configured by $0, generated by GNU Autoconf 2.59,
11171 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11173 Copyright (C) 2003 Free Software Foundation, Inc.
11174 This config.status script is free software; the Free Software Foundation
11175 gives unlimited permission to copy, distribute and modify it."
11176 srcdir=$srcdir
11177 INSTALL="$INSTALL"
11178 _ACEOF
11180 cat >>$CONFIG_STATUS <<\_ACEOF
11181 # If no file are specified by the user, then we need to provide default
11182 # value. By we need to know if files were specified by the user.
11183 ac_need_defaults=:
11184 while test $# != 0
11186 case $1 in
11187 --*=*)
11188 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11189 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11190 ac_shift=:
11193 ac_option=$1
11194 ac_optarg=$2
11195 ac_shift=shift
11197 *) # This is not an option, so the user has probably given explicit
11198 # arguments.
11199 ac_option=$1
11200 ac_need_defaults=false;;
11201 esac
11203 case $ac_option in
11204 # Handling of the options.
11205 _ACEOF
11206 cat >>$CONFIG_STATUS <<\_ACEOF
11207 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11208 ac_cs_recheck=: ;;
11209 --version | --vers* | -V )
11210 echo "$ac_cs_version"; exit 0 ;;
11211 --he | --h)
11212 # Conflict between --help and --header
11213 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11214 Try \`$0 --help' for more information." >&5
11215 echo "$as_me: error: ambiguous option: $1
11216 Try \`$0 --help' for more information." >&2;}
11217 { (exit 1); exit 1; }; };;
11218 --help | --hel | -h )
11219 echo "$ac_cs_usage"; exit 0 ;;
11220 --debug | --d* | -d )
11221 debug=: ;;
11222 --file | --fil | --fi | --f )
11223 $ac_shift
11224 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11225 ac_need_defaults=false;;
11226 --header | --heade | --head | --hea )
11227 $ac_shift
11228 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11229 ac_need_defaults=false;;
11230 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11231 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11232 ac_cs_silent=: ;;
11234 # This is an error.
11235 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11236 Try \`$0 --help' for more information." >&5
11237 echo "$as_me: error: unrecognized option: $1
11238 Try \`$0 --help' for more information." >&2;}
11239 { (exit 1); exit 1; }; } ;;
11241 *) ac_config_targets="$ac_config_targets $1" ;;
11243 esac
11244 shift
11245 done
11247 ac_configure_extra_args=
11249 if $ac_cs_silent; then
11250 exec 6>/dev/null
11251 ac_configure_extra_args="$ac_configure_extra_args --silent"
11254 _ACEOF
11255 cat >>$CONFIG_STATUS <<_ACEOF
11256 if \$ac_cs_recheck; then
11257 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11258 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11261 _ACEOF
11263 cat >>$CONFIG_STATUS <<_ACEOF
11265 # INIT-COMMANDS section.
11269 srcdir="$srcdir"
11270 host="$host"
11271 target="$target"
11272 with_multisubdir="$with_multisubdir"
11273 with_multisrctop="$with_multisrctop"
11274 with_target_subdir="$with_target_subdir"
11275 ac_configure_args="${multilib_arg} ${ac_configure_args}"
11276 multi_basedir="$multi_basedir"
11277 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
11278 CC="$CC"
11279 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11282 # The HP-UX ksh and POSIX shell print the target directory to stdout
11283 # if CDPATH is set.
11284 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11286 sed_quote_subst='$sed_quote_subst'
11287 double_quote_subst='$double_quote_subst'
11288 delay_variable_subst='$delay_variable_subst'
11289 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
11290 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
11291 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
11292 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
11293 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
11294 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
11295 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
11296 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
11297 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
11298 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
11299 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
11300 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
11301 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
11302 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
11303 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
11304 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
11305 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
11306 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
11307 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
11308 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
11309 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
11310 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
11311 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
11312 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
11313 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
11314 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
11315 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
11316 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11317 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
11318 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
11319 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
11320 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11321 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
11322 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
11323 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11324 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11325 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11326 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
11327 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11328 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
11329 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
11330 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
11331 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
11332 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"`'
11333 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
11334 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
11335 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
11336 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
11337 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
11338 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
11339 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
11340 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
11341 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
11342 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
11343 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
11344 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11345 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11346 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
11347 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
11348 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11349 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11350 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
11351 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11352 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11353 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11354 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11355 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11356 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11357 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
11358 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11359 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11360 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11361 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
11362 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
11363 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
11364 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
11365 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
11366 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11367 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
11368 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
11369 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
11370 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
11371 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
11372 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11373 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11374 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11375 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11376 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
11377 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
11378 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
11379 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
11380 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
11381 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11382 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11383 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
11384 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11385 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
11386 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11387 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11388 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11389 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11390 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
11391 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
11392 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11393 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11394 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
11395 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
11396 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
11397 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
11398 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
11399 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
11401 LTCC='$LTCC'
11402 LTCFLAGS='$LTCFLAGS'
11403 compiler='$compiler_DEFAULT'
11405 # Quote evaled strings.
11406 for var in SED \
11407 GREP \
11408 EGREP \
11409 FGREP \
11410 LD \
11411 NM \
11412 LN_S \
11413 lt_SP2NL \
11414 lt_NL2SP \
11415 reload_flag \
11416 deplibs_check_method \
11417 file_magic_cmd \
11418 AR \
11419 AR_FLAGS \
11420 STRIP \
11421 RANLIB \
11422 CC \
11423 CFLAGS \
11424 compiler \
11425 lt_cv_sys_global_symbol_pipe \
11426 lt_cv_sys_global_symbol_to_cdecl \
11427 lt_cv_sys_global_symbol_to_c_name_address \
11428 SHELL \
11429 ECHO \
11430 lt_prog_compiler_no_builtin_flag \
11431 lt_prog_compiler_wl \
11432 lt_prog_compiler_pic \
11433 lt_prog_compiler_static \
11434 lt_cv_prog_compiler_c_o \
11435 need_locks \
11436 shrext_cmds \
11437 export_dynamic_flag_spec \
11438 whole_archive_flag_spec \
11439 compiler_needs_object \
11440 with_gnu_ld \
11441 allow_undefined_flag \
11442 no_undefined_flag \
11443 hardcode_libdir_flag_spec \
11444 hardcode_libdir_flag_spec_ld \
11445 hardcode_libdir_separator \
11446 fix_srcfile_path \
11447 exclude_expsyms \
11448 include_expsyms \
11449 file_list_spec \
11450 variables_saved_for_relink \
11451 libname_spec \
11452 library_names_spec \
11453 soname_spec \
11454 finish_eval \
11455 old_striplib \
11456 striplib; do
11457 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
11458 *[\\\\\\\`\\"\\\$]*)
11459 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
11462 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11464 esac
11465 done
11467 # Double-quote double-evaled strings.
11468 for var in reload_cmds \
11469 old_postinstall_cmds \
11470 old_postuninstall_cmds \
11471 old_archive_cmds \
11472 extract_expsyms_cmds \
11473 old_archive_from_new_cmds \
11474 old_archive_from_expsyms_cmds \
11475 archive_cmds \
11476 archive_expsym_cmds \
11477 module_cmds \
11478 module_expsym_cmds \
11479 export_symbols_cmds \
11480 prelink_cmds \
11481 postinstall_cmds \
11482 postuninstall_cmds \
11483 finish_cmds \
11484 sys_lib_search_path_spec \
11485 sys_lib_dlsearch_path_spec; do
11486 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
11487 *[\\\\\\\`\\"\\\$]*)
11488 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
11491 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11493 esac
11494 done
11496 # Fix-up fallback echo if it was mangled by the above quoting rules.
11497 case \$lt_ECHO in
11498 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
11500 esac
11502 ac_aux_dir='$ac_aux_dir'
11503 xsi_shell='$xsi_shell'
11504 lt_shell_append='$lt_shell_append'
11506 # See if we are running on zsh, and set the options which allow our
11507 # commands through without removal of \ escapes INIT.
11508 if test -n "\${ZSH_VERSION+set}" ; then
11509 setopt NO_GLOB_SUBST
11513 PACKAGE='$PACKAGE'
11514 VERSION='$VERSION'
11515 TIMESTAMP='$TIMESTAMP'
11516 RM='$RM'
11517 ofile='$ofile'
11522 _ACEOF
11526 cat >>$CONFIG_STATUS <<\_ACEOF
11527 for ac_config_target in $ac_config_targets
11529 case "$ac_config_target" in
11530 # Handling of arguments.
11531 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11532 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
11533 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11534 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
11535 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11536 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11537 { (exit 1); exit 1; }; };;
11538 esac
11539 done
11541 # If the user did not use the arguments to specify the items to instantiate,
11542 # then the envvar interface is used. Set only those that are not.
11543 # We use the long form for the default assignment because of an extremely
11544 # bizarre bug on SunOS 4.1.3.
11545 if $ac_need_defaults; then
11546 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11547 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11550 # Have a temporary directory for convenience. Make it in the build tree
11551 # simply because there is no reason to put it here, and in addition,
11552 # creating and moving files from /tmp can sometimes cause problems.
11553 # Create a temporary directory, and hook for its removal unless debugging.
11554 $debug ||
11556 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11557 trap '{ (exit 1); exit 1; }' 1 2 13 15
11560 # Create a (secure) tmp directory for tmp files.
11563 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11564 test -n "$tmp" && test -d "$tmp"
11565 } ||
11567 tmp=./confstat$$-$RANDOM
11568 (umask 077 && mkdir $tmp)
11569 } ||
11571 echo "$me: cannot create a temporary directory in ." >&2
11572 { (exit 1); exit 1; }
11575 _ACEOF
11577 cat >>$CONFIG_STATUS <<_ACEOF
11580 # CONFIG_FILES section.
11583 # No need to generate the scripts if there are no CONFIG_FILES.
11584 # This happens for instance when ./config.status config.h
11585 if test -n "\$CONFIG_FILES"; then
11586 # Protect against being on the right side of a sed subst in config.status.
11587 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11588 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11589 s,@SHELL@,$SHELL,;t t
11590 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11591 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11592 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11593 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11594 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11595 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11596 s,@exec_prefix@,$exec_prefix,;t t
11597 s,@prefix@,$prefix,;t t
11598 s,@program_transform_name@,$program_transform_name,;t t
11599 s,@bindir@,$bindir,;t t
11600 s,@sbindir@,$sbindir,;t t
11601 s,@libexecdir@,$libexecdir,;t t
11602 s,@datadir@,$datadir,;t t
11603 s,@sysconfdir@,$sysconfdir,;t t
11604 s,@sharedstatedir@,$sharedstatedir,;t t
11605 s,@localstatedir@,$localstatedir,;t t
11606 s,@libdir@,$libdir,;t t
11607 s,@includedir@,$includedir,;t t
11608 s,@oldincludedir@,$oldincludedir,;t t
11609 s,@infodir@,$infodir,;t t
11610 s,@mandir@,$mandir,;t t
11611 s,@build_alias@,$build_alias,;t t
11612 s,@host_alias@,$host_alias,;t t
11613 s,@target_alias@,$target_alias,;t t
11614 s,@DEFS@,$DEFS,;t t
11615 s,@ECHO_C@,$ECHO_C,;t t
11616 s,@ECHO_N@,$ECHO_N,;t t
11617 s,@ECHO_T@,$ECHO_T,;t t
11618 s,@LIBS@,$LIBS,;t t
11619 s,@multi_basedir@,$multi_basedir,;t t
11620 s,@build@,$build,;t t
11621 s,@build_cpu@,$build_cpu,;t t
11622 s,@build_vendor@,$build_vendor,;t t
11623 s,@build_os@,$build_os,;t t
11624 s,@host@,$host,;t t
11625 s,@host_cpu@,$host_cpu,;t t
11626 s,@host_vendor@,$host_vendor,;t t
11627 s,@host_os@,$host_os,;t t
11628 s,@target@,$target,;t t
11629 s,@target_cpu@,$target_cpu,;t t
11630 s,@target_vendor@,$target_vendor,;t t
11631 s,@target_os@,$target_os,;t t
11632 s,@mkinstalldirs@,$mkinstalldirs,;t t
11633 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11634 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11635 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11636 s,@CYGPATH_W@,$CYGPATH_W,;t t
11637 s,@PACKAGE@,$PACKAGE,;t t
11638 s,@VERSION@,$VERSION,;t t
11639 s,@ACLOCAL@,$ACLOCAL,;t t
11640 s,@AUTOCONF@,$AUTOCONF,;t t
11641 s,@AUTOMAKE@,$AUTOMAKE,;t t
11642 s,@AUTOHEADER@,$AUTOHEADER,;t t
11643 s,@MAKEINFO@,$MAKEINFO,;t t
11644 s,@install_sh@,$install_sh,;t t
11645 s,@STRIP@,$STRIP,;t t
11646 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11647 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
11648 s,@mkdir_p@,$mkdir_p,;t t
11649 s,@AWK@,$AWK,;t t
11650 s,@SET_MAKE@,$SET_MAKE,;t t
11651 s,@am__leading_dot@,$am__leading_dot,;t t
11652 s,@AMTAR@,$AMTAR,;t t
11653 s,@am__tar@,$am__tar,;t t
11654 s,@am__untar@,$am__untar,;t t
11655 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
11656 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
11657 s,@MAINT@,$MAINT,;t t
11658 s,@COMPPATH@,$COMPPATH,;t t
11659 s,@CC@,$CC,;t t
11660 s,@ac_ct_CC@,$ac_ct_CC,;t t
11661 s,@EXEEXT@,$EXEEXT,;t t
11662 s,@OBJEXT@,$OBJEXT,;t t
11663 s,@DEPDIR@,$DEPDIR,;t t
11664 s,@am__include@,$am__include,;t t
11665 s,@am__quote@,$am__quote,;t t
11666 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
11667 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
11668 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
11669 s,@CCDEPMODE@,$CCDEPMODE,;t t
11670 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
11671 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
11672 s,@CFLAGS@,$CFLAGS,;t t
11673 s,@LIBTOOL@,$LIBTOOL,;t t
11674 s,@SED@,$SED,;t t
11675 s,@EGREP@,$EGREP,;t t
11676 s,@FGREP@,$FGREP,;t t
11677 s,@GREP@,$GREP,;t t
11678 s,@LD@,$LD,;t t
11679 s,@DUMPBIN@,$DUMPBIN,;t t
11680 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
11681 s,@NM@,$NM,;t t
11682 s,@LN_S@,$LN_S,;t t
11683 s,@AR@,$AR,;t t
11684 s,@ac_ct_AR@,$ac_ct_AR,;t t
11685 s,@RANLIB@,$RANLIB,;t t
11686 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11687 s,@lt_ECHO@,$lt_ECHO,;t t
11688 s,@CPP@,$CPP,;t t
11689 s,@CPPFLAGS@,$CPPFLAGS,;t t
11690 s,@target_all@,$target_all,;t t
11691 s,@toolexecdir@,$toolexecdir,;t t
11692 s,@toolexeclibdir@,$toolexeclibdir,;t t
11693 s,@TARGET_LIBRARY_TRUE@,$TARGET_LIBRARY_TRUE,;t t
11694 s,@TARGET_LIBRARY_FALSE@,$TARGET_LIBRARY_FALSE,;t t
11695 s,@LIBOBJS@,$LIBOBJS,;t t
11696 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11697 CEOF
11699 _ACEOF
11701 cat >>$CONFIG_STATUS <<\_ACEOF
11702 # Split the substitutions into bite-sized pieces for seds with
11703 # small command number limits, like on Digital OSF/1 and HP-UX.
11704 ac_max_sed_lines=48
11705 ac_sed_frag=1 # Number of current file.
11706 ac_beg=1 # First line for current file.
11707 ac_end=$ac_max_sed_lines # Line after last line for current file.
11708 ac_more_lines=:
11709 ac_sed_cmds=
11710 while $ac_more_lines; do
11711 if test $ac_beg -gt 1; then
11712 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11713 else
11714 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11716 if test ! -s $tmp/subs.frag; then
11717 ac_more_lines=false
11718 else
11719 # The purpose of the label and of the branching condition is to
11720 # speed up the sed processing (if there are no `@' at all, there
11721 # is no need to browse any of the substitutions).
11722 # These are the two extra sed commands mentioned above.
11723 (echo ':t
11724 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11725 if test -z "$ac_sed_cmds"; then
11726 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11727 else
11728 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11730 ac_sed_frag=`expr $ac_sed_frag + 1`
11731 ac_beg=$ac_end
11732 ac_end=`expr $ac_end + $ac_max_sed_lines`
11734 done
11735 if test -z "$ac_sed_cmds"; then
11736 ac_sed_cmds=cat
11738 fi # test -n "$CONFIG_FILES"
11740 _ACEOF
11741 cat >>$CONFIG_STATUS <<\_ACEOF
11742 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11743 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11744 case $ac_file in
11745 - | *:- | *:-:* ) # input from stdin
11746 cat >$tmp/stdin
11747 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11748 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11749 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11750 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11751 * ) ac_file_in=$ac_file.in ;;
11752 esac
11754 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11755 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11756 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11757 X"$ac_file" : 'X\(//\)[^/]' \| \
11758 X"$ac_file" : 'X\(//\)$' \| \
11759 X"$ac_file" : 'X\(/\)' \| \
11760 . : '\(.\)' 2>/dev/null ||
11761 echo X"$ac_file" |
11762 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11763 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11764 /^X\(\/\/\)$/{ s//\1/; q; }
11765 /^X\(\/\).*/{ s//\1/; q; }
11766 s/.*/./; q'`
11767 { if $as_mkdir_p; then
11768 mkdir -p "$ac_dir"
11769 else
11770 as_dir="$ac_dir"
11771 as_dirs=
11772 while test ! -d "$as_dir"; do
11773 as_dirs="$as_dir $as_dirs"
11774 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11775 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11776 X"$as_dir" : 'X\(//\)[^/]' \| \
11777 X"$as_dir" : 'X\(//\)$' \| \
11778 X"$as_dir" : 'X\(/\)' \| \
11779 . : '\(.\)' 2>/dev/null ||
11780 echo X"$as_dir" |
11781 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11782 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11783 /^X\(\/\/\)$/{ s//\1/; q; }
11784 /^X\(\/\).*/{ s//\1/; q; }
11785 s/.*/./; q'`
11786 done
11787 test ! -n "$as_dirs" || mkdir $as_dirs
11788 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11789 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11790 { (exit 1); exit 1; }; }; }
11792 ac_builddir=.
11794 if test "$ac_dir" != .; then
11795 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11796 # A "../" for each directory in $ac_dir_suffix.
11797 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11798 else
11799 ac_dir_suffix= ac_top_builddir=
11802 case $srcdir in
11803 .) # No --srcdir option. We are building in place.
11804 ac_srcdir=.
11805 if test -z "$ac_top_builddir"; then
11806 ac_top_srcdir=.
11807 else
11808 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11809 fi ;;
11810 [\\/]* | ?:[\\/]* ) # Absolute path.
11811 ac_srcdir=$srcdir$ac_dir_suffix;
11812 ac_top_srcdir=$srcdir ;;
11813 *) # Relative path.
11814 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11815 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11816 esac
11818 # Do not use `cd foo && pwd` to compute absolute paths, because
11819 # the directories may not exist.
11820 case `pwd` in
11821 .) ac_abs_builddir="$ac_dir";;
11823 case "$ac_dir" in
11824 .) ac_abs_builddir=`pwd`;;
11825 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11826 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11827 esac;;
11828 esac
11829 case $ac_abs_builddir in
11830 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11832 case ${ac_top_builddir}. in
11833 .) ac_abs_top_builddir=$ac_abs_builddir;;
11834 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11835 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11836 esac;;
11837 esac
11838 case $ac_abs_builddir in
11839 .) ac_abs_srcdir=$ac_srcdir;;
11841 case $ac_srcdir in
11842 .) ac_abs_srcdir=$ac_abs_builddir;;
11843 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11844 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11845 esac;;
11846 esac
11847 case $ac_abs_builddir in
11848 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11850 case $ac_top_srcdir in
11851 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11852 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11853 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11854 esac;;
11855 esac
11858 case $INSTALL in
11859 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11860 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11861 esac
11863 if test x"$ac_file" != x-; then
11864 { echo "$as_me:$LINENO: creating $ac_file" >&5
11865 echo "$as_me: creating $ac_file" >&6;}
11866 rm -f "$ac_file"
11868 # Let's still pretend it is `configure' which instantiates (i.e., don't
11869 # use $as_me), people would be surprised to read:
11870 # /* config.h. Generated by config.status. */
11871 if test x"$ac_file" = x-; then
11872 configure_input=
11873 else
11874 configure_input="$ac_file. "
11876 configure_input=$configure_input"Generated from `echo $ac_file_in |
11877 sed 's,.*/,,'` by configure."
11879 # First look for the input files in the build tree, otherwise in the
11880 # src tree.
11881 ac_file_inputs=`IFS=:
11882 for f in $ac_file_in; do
11883 case $f in
11884 -) echo $tmp/stdin ;;
11885 [\\/$]*)
11886 # Absolute (can't be DOS-style, as IFS=:)
11887 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11888 echo "$as_me: error: cannot find input file: $f" >&2;}
11889 { (exit 1); exit 1; }; }
11890 echo "$f";;
11891 *) # Relative
11892 if test -f "$f"; then
11893 # Build tree
11894 echo "$f"
11895 elif test -f "$srcdir/$f"; then
11896 # Source tree
11897 echo "$srcdir/$f"
11898 else
11899 # /dev/null tree
11900 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11901 echo "$as_me: error: cannot find input file: $f" >&2;}
11902 { (exit 1); exit 1; }; }
11903 fi;;
11904 esac
11905 done` || { (exit 1); exit 1; }
11906 _ACEOF
11907 cat >>$CONFIG_STATUS <<_ACEOF
11908 sed "$ac_vpsub
11909 $extrasub
11910 _ACEOF
11911 cat >>$CONFIG_STATUS <<\_ACEOF
11913 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11914 s,@configure_input@,$configure_input,;t t
11915 s,@srcdir@,$ac_srcdir,;t t
11916 s,@abs_srcdir@,$ac_abs_srcdir,;t t
11917 s,@top_srcdir@,$ac_top_srcdir,;t t
11918 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11919 s,@builddir@,$ac_builddir,;t t
11920 s,@abs_builddir@,$ac_abs_builddir,;t t
11921 s,@top_builddir@,$ac_top_builddir,;t t
11922 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11923 s,@INSTALL@,$ac_INSTALL,;t t
11924 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11925 rm -f $tmp/stdin
11926 if test x"$ac_file" != x-; then
11927 mv $tmp/out $ac_file
11928 else
11929 cat $tmp/out
11930 rm -f $tmp/out
11933 done
11934 _ACEOF
11935 cat >>$CONFIG_STATUS <<\_ACEOF
11938 # CONFIG_COMMANDS section.
11940 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
11941 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
11942 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
11943 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
11944 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11945 X"$ac_dest" : 'X\(//\)[^/]' \| \
11946 X"$ac_dest" : 'X\(//\)$' \| \
11947 X"$ac_dest" : 'X\(/\)' \| \
11948 . : '\(.\)' 2>/dev/null ||
11949 echo X"$ac_dest" |
11950 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11951 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11952 /^X\(\/\/\)$/{ s//\1/; q; }
11953 /^X\(\/\).*/{ s//\1/; q; }
11954 s/.*/./; q'`
11955 { if $as_mkdir_p; then
11956 mkdir -p "$ac_dir"
11957 else
11958 as_dir="$ac_dir"
11959 as_dirs=
11960 while test ! -d "$as_dir"; do
11961 as_dirs="$as_dir $as_dirs"
11962 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11963 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11964 X"$as_dir" : 'X\(//\)[^/]' \| \
11965 X"$as_dir" : 'X\(//\)$' \| \
11966 X"$as_dir" : 'X\(/\)' \| \
11967 . : '\(.\)' 2>/dev/null ||
11968 echo X"$as_dir" |
11969 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11970 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11971 /^X\(\/\/\)$/{ s//\1/; q; }
11972 /^X\(\/\).*/{ s//\1/; q; }
11973 s/.*/./; q'`
11974 done
11975 test ! -n "$as_dirs" || mkdir $as_dirs
11976 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11977 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11978 { (exit 1); exit 1; }; }; }
11980 ac_builddir=.
11982 if test "$ac_dir" != .; then
11983 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11984 # A "../" for each directory in $ac_dir_suffix.
11985 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11986 else
11987 ac_dir_suffix= ac_top_builddir=
11990 case $srcdir in
11991 .) # No --srcdir option. We are building in place.
11992 ac_srcdir=.
11993 if test -z "$ac_top_builddir"; then
11994 ac_top_srcdir=.
11995 else
11996 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11997 fi ;;
11998 [\\/]* | ?:[\\/]* ) # Absolute path.
11999 ac_srcdir=$srcdir$ac_dir_suffix;
12000 ac_top_srcdir=$srcdir ;;
12001 *) # Relative path.
12002 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12003 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12004 esac
12006 # Do not use `cd foo && pwd` to compute absolute paths, because
12007 # the directories may not exist.
12008 case `pwd` in
12009 .) ac_abs_builddir="$ac_dir";;
12011 case "$ac_dir" in
12012 .) ac_abs_builddir=`pwd`;;
12013 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12014 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12015 esac;;
12016 esac
12017 case $ac_abs_builddir in
12018 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12020 case ${ac_top_builddir}. in
12021 .) ac_abs_top_builddir=$ac_abs_builddir;;
12022 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12023 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12024 esac;;
12025 esac
12026 case $ac_abs_builddir in
12027 .) ac_abs_srcdir=$ac_srcdir;;
12029 case $ac_srcdir in
12030 .) ac_abs_srcdir=$ac_abs_builddir;;
12031 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12032 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12033 esac;;
12034 esac
12035 case $ac_abs_builddir in
12036 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12038 case $ac_top_srcdir in
12039 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12040 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12041 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12042 esac;;
12043 esac
12046 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12047 echo "$as_me: executing $ac_dest commands" >&6;}
12048 case $ac_dest in
12049 default-1 )
12050 # Only add multilib support code if we just rebuilt the top-level
12051 # Makefile.
12052 case " $CONFIG_FILES " in
12053 *" Makefile "*)
12054 ac_file=Makefile . ${multi_basedir}/config-ml.in
12056 esac ;;
12057 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12058 # Strip MF so we end up with the name of the file.
12059 mf=`echo "$mf" | sed -e 's/:.*$//'`
12060 # Check whether this is an Automake generated Makefile or not.
12061 # We used to match only the files named `Makefile.in', but
12062 # some people rename them; so instead we look at the file content.
12063 # Grep'ing the first line is not enough: some people post-process
12064 # each Makefile.in and add a new line on top of each file to say so.
12065 # So let's grep whole file.
12066 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12067 dirpart=`(dirname "$mf") 2>/dev/null ||
12068 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12069 X"$mf" : 'X\(//\)[^/]' \| \
12070 X"$mf" : 'X\(//\)$' \| \
12071 X"$mf" : 'X\(/\)' \| \
12072 . : '\(.\)' 2>/dev/null ||
12073 echo X"$mf" |
12074 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12075 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12076 /^X\(\/\/\)$/{ s//\1/; q; }
12077 /^X\(\/\).*/{ s//\1/; q; }
12078 s/.*/./; q'`
12079 else
12080 continue
12082 # Extract the definition of DEPDIR, am__include, and am__quote
12083 # from the Makefile without running `make'.
12084 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12085 test -z "$DEPDIR" && continue
12086 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12087 test -z "am__include" && continue
12088 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12089 # When using ansi2knr, U may be empty or an underscore; expand it
12090 U=`sed -n 's/^U = //p' < "$mf"`
12091 # Find all dependency output files, they are included files with
12092 # $(DEPDIR) in their names. We invoke sed twice because it is the
12093 # simplest approach to changing $(DEPDIR) to its actual value in the
12094 # expansion.
12095 for file in `sed -n "
12096 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12097 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12098 # Make sure the directory exists.
12099 test -f "$dirpart/$file" && continue
12100 fdir=`(dirname "$file") 2>/dev/null ||
12101 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12102 X"$file" : 'X\(//\)[^/]' \| \
12103 X"$file" : 'X\(//\)$' \| \
12104 X"$file" : 'X\(/\)' \| \
12105 . : '\(.\)' 2>/dev/null ||
12106 echo X"$file" |
12107 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12108 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12109 /^X\(\/\/\)$/{ s//\1/; q; }
12110 /^X\(\/\).*/{ s//\1/; q; }
12111 s/.*/./; q'`
12112 { if $as_mkdir_p; then
12113 mkdir -p $dirpart/$fdir
12114 else
12115 as_dir=$dirpart/$fdir
12116 as_dirs=
12117 while test ! -d "$as_dir"; do
12118 as_dirs="$as_dir $as_dirs"
12119 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12120 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12121 X"$as_dir" : 'X\(//\)[^/]' \| \
12122 X"$as_dir" : 'X\(//\)$' \| \
12123 X"$as_dir" : 'X\(/\)' \| \
12124 . : '\(.\)' 2>/dev/null ||
12125 echo X"$as_dir" |
12126 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12127 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12128 /^X\(\/\/\)$/{ s//\1/; q; }
12129 /^X\(\/\).*/{ s//\1/; q; }
12130 s/.*/./; q'`
12131 done
12132 test ! -n "$as_dirs" || mkdir $as_dirs
12133 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
12134 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
12135 { (exit 1); exit 1; }; }; }
12137 # echo "creating $dirpart/$file"
12138 echo '# dummy' > "$dirpart/$file"
12139 done
12140 done
12142 libtool )
12144 # See if we are running on zsh, and set the options which allow our
12145 # commands through without removal of \ escapes.
12146 if test -n "${ZSH_VERSION+set}" ; then
12147 setopt NO_GLOB_SUBST
12150 cfgfile="${ofile}T"
12151 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12152 $RM "$cfgfile"
12154 cat <<_LT_EOF >> "$cfgfile"
12155 #! $SHELL
12157 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12158 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
12159 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12160 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12162 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12163 # 2006, 2007 Free Software Foundation, Inc.
12165 # This file is part of GNU Libtool:
12166 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
12168 # This program is free software; you can redistribute it and/or modify
12169 # it under the terms of the GNU General Public License as published by
12170 # the Free Software Foundation; either version 2 of the License, or
12171 # (at your option) any later version.
12173 # This program is distributed in the hope that it will be useful, but
12174 # WITHOUT ANY WARRANTY; without even the implied warranty of
12175 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12176 # General Public License for more details.
12178 # You should have received a copy of the GNU General Public License
12179 # along with this program; if not, a copy can be downloaded from
12180 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
12181 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
12182 # MA 02110-1301, USA.
12184 # As a special exception to the GNU General Public License, if you
12185 # distribute this file as part of a program that contains a
12186 # configuration script generated by Autoconf, you may include it under
12187 # the same distribution terms that you use for the rest of that program.
12190 # The names of the tagged configurations supported by this script.
12191 available_tags=""
12193 # ### BEGIN LIBTOOL CONFIG
12195 # Which release of libtool.m4 was used?
12196 macro_version=$macro_version
12197 macro_revision=$macro_revision
12199 # Whether or not to build shared libraries.
12200 build_libtool_libs=$enable_shared
12202 # Whether or not to build static libraries.
12203 build_old_libs=$enable_static
12205 # What type of objects to build.
12206 pic_mode=$pic_mode
12208 # Whether or not to optimize for fast installation.
12209 fast_install=$enable_fast_install
12211 # The host system.
12212 host_alias=$host_alias
12213 host=$host
12214 host_os=$host_os
12216 # The build system.
12217 build_alias=$build_alias
12218 build=$build
12219 build_os=$build_os
12221 # A sed program that does not truncate output.
12222 SED=$lt_SED
12224 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12225 Xsed="\$SED -e 1s/^X//"
12227 # A grep program that handles long lines.
12228 GREP=$lt_GREP
12230 # An ERE matcher.
12231 EGREP=$lt_EGREP
12233 # A literal string matcher.
12234 FGREP=$lt_FGREP
12236 # A BSD- or MS-compatible name lister.
12237 NM=$lt_NM
12239 # Whether we need soft or hard links.
12240 LN_S=$lt_LN_S
12242 # What is the maximum length of a command?
12243 max_cmd_len=$max_cmd_len
12245 # Object file suffix (normally "o").
12246 objext=$ac_objext
12248 # Executable file suffix (normally "").
12249 exeext=$exeext
12251 # whether the shell understands "unset".
12252 lt_unset=$lt_unset
12254 # turn spaces into newlines.
12255 SP2NL=$lt_lt_SP2NL
12257 # turn newlines into spaces.
12258 NL2SP=$lt_lt_NL2SP
12260 # How to create reloadable object files.
12261 reload_flag=$lt_reload_flag
12262 reload_cmds=$lt_reload_cmds
12264 # Method to check whether dependent libraries are shared objects.
12265 deplibs_check_method=$lt_deplibs_check_method
12267 # Command to use when deplibs_check_method == "file_magic".
12268 file_magic_cmd=$lt_file_magic_cmd
12270 # The archiver.
12271 AR=$lt_AR
12272 AR_FLAGS=$lt_AR_FLAGS
12274 # A symbol stripping program.
12275 STRIP=$lt_STRIP
12277 # Commands used to install an old-style archive.
12278 RANLIB=$lt_RANLIB
12279 old_postinstall_cmds=$lt_old_postinstall_cmds
12280 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12282 # A C compiler.
12283 LTCC=$lt_CC
12285 # LTCC compiler flags.
12286 LTCFLAGS=$lt_CFLAGS
12288 # Take the output of nm and produce a listing of raw symbols and C names.
12289 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12291 # Transform the output of nm in a proper C declaration.
12292 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12294 # Transform the output of nm in a C name address pair.
12295 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12297 # The name of the directory that contains temporary libtool files.
12298 objdir=$objdir
12300 # Shell to use when invoking shell scripts.
12301 SHELL=$lt_SHELL
12303 # An echo program that does not interpret backslashes.
12304 ECHO=$lt_ECHO
12306 # Used to examine libraries when file_magic_cmd begins with "file".
12307 MAGIC_CMD=$MAGIC_CMD
12309 # Must we lock files when doing compilation?
12310 need_locks=$lt_need_locks
12312 # Old archive suffix (normally "a").
12313 libext=$libext
12315 # Shared library suffix (normally ".so").
12316 shrext_cmds=$lt_shrext_cmds
12318 # The commands to extract the exported symbol list from a shared archive.
12319 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12321 # Variables whose values should be saved in libtool wrapper scripts and
12322 # restored at link time.
12323 variables_saved_for_relink=$lt_variables_saved_for_relink
12325 # Do we need the "lib" prefix for modules?
12326 need_lib_prefix=$need_lib_prefix
12328 # Do we need a version for libraries?
12329 need_version=$need_version
12331 # Library versioning type.
12332 version_type=$version_type
12334 # Shared library runtime path variable.
12335 runpath_var=$runpath_var
12337 # Shared library path variable.
12338 shlibpath_var=$shlibpath_var
12340 # Is shlibpath searched before the hard-coded library search path?
12341 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12343 # Format of library name prefix.
12344 libname_spec=$lt_libname_spec
12346 # List of archive names. First name is the real one, the rest are links.
12347 # The last name is the one that the linker finds with -lNAME
12348 library_names_spec=$lt_library_names_spec
12350 # The coded name of the library, if different from the real name.
12351 soname_spec=$lt_soname_spec
12353 # Command to use after installation of a shared archive.
12354 postinstall_cmds=$lt_postinstall_cmds
12356 # Command to use after uninstallation of a shared archive.
12357 postuninstall_cmds=$lt_postuninstall_cmds
12359 # Commands used to finish a libtool library installation in a directory.
12360 finish_cmds=$lt_finish_cmds
12362 # As "finish_cmds", except a single script fragment to be evaled but
12363 # not shown.
12364 finish_eval=$lt_finish_eval
12366 # Whether we should hardcode library paths into libraries.
12367 hardcode_into_libs=$hardcode_into_libs
12369 # Compile-time system search path for libraries.
12370 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12372 # Run-time system search path for libraries.
12373 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12375 # Whether dlopen is supported.
12376 dlopen_support=$enable_dlopen
12378 # Whether dlopen of programs is supported.
12379 dlopen_self=$enable_dlopen_self
12381 # Whether dlopen of statically linked programs is supported.
12382 dlopen_self_static=$enable_dlopen_self_static
12384 # Commands to strip libraries.
12385 old_striplib=$lt_old_striplib
12386 striplib=$lt_striplib
12389 # The linker used to build libraries.
12390 LD=$lt_LD
12392 # Commands used to build an old-style archive.
12393 old_archive_cmds=$lt_old_archive_cmds
12395 # A language specific compiler.
12396 CC=$lt_compiler
12398 # Is the compiler the GNU compiler?
12399 with_gcc=$GCC
12401 # Compiler flag to turn off builtin functions.
12402 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12404 # How to pass a linker flag through the compiler.
12405 wl=$lt_lt_prog_compiler_wl
12407 # Additional compiler flags for building library objects.
12408 pic_flag=$lt_lt_prog_compiler_pic
12410 # Compiler flag to prevent dynamic linking.
12411 link_static_flag=$lt_lt_prog_compiler_static
12413 # Does compiler simultaneously support -c and -o options?
12414 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12416 # Whether or not to add -lc for building shared libraries.
12417 build_libtool_need_lc=$archive_cmds_need_lc
12419 # Whether or not to disallow shared libs when runtime libs are static.
12420 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12422 # Compiler flag to allow reflexive dlopens.
12423 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12425 # Compiler flag to generate shared objects directly from archives.
12426 whole_archive_flag_spec=$lt_whole_archive_flag_spec
12428 # Whether the compiler copes with passing no objects directly.
12429 compiler_needs_object=$lt_compiler_needs_object
12431 # Create an old-style archive from a shared archive.
12432 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12434 # Create a temporary old-style archive to link instead of a shared archive.
12435 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12437 # Commands used to build a shared archive.
12438 archive_cmds=$lt_archive_cmds
12439 archive_expsym_cmds=$lt_archive_expsym_cmds
12441 # Commands used to build a loadable module if different from building
12442 # a shared archive.
12443 module_cmds=$lt_module_cmds
12444 module_expsym_cmds=$lt_module_expsym_cmds
12446 # Whether we are building with GNU ld or not.
12447 with_gnu_ld=$lt_with_gnu_ld
12449 # Flag that allows shared libraries with undefined symbols to be built.
12450 allow_undefined_flag=$lt_allow_undefined_flag
12452 # Flag that enforces no undefined symbols.
12453 no_undefined_flag=$lt_no_undefined_flag
12455 # Flag to hardcode \$libdir into a binary during linking.
12456 # This must work even if \$libdir does not exist
12457 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12459 # If ld is used when linking, flag to hardcode \$libdir into a binary
12460 # during linking. This must work even if \$libdir does not exist.
12461 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12463 # Whether we need a single "-rpath" flag with a separated argument.
12464 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12466 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12467 # DIR into the resulting binary.
12468 hardcode_direct=$hardcode_direct
12470 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12471 # DIR into the resulting binary and the resulting library dependency is
12472 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
12473 # library is relocated.
12474 hardcode_direct_absolute=$hardcode_direct_absolute
12476 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
12477 # into the resulting binary.
12478 hardcode_minus_L=$hardcode_minus_L
12480 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
12481 # into the resulting binary.
12482 hardcode_shlibpath_var=$hardcode_shlibpath_var
12484 # Set to "yes" if building a shared library automatically hardcodes DIR
12485 # into the library and all subsequent libraries and executables linked
12486 # against it.
12487 hardcode_automatic=$hardcode_automatic
12489 # Set to yes if linker adds runtime paths of dependent libraries
12490 # to runtime path list.
12491 inherit_rpath=$inherit_rpath
12493 # Whether libtool must link a program against all its dependency libraries.
12494 link_all_deplibs=$link_all_deplibs
12496 # Fix the shell variable \$srcfile for the compiler.
12497 fix_srcfile_path=$lt_fix_srcfile_path
12499 # Set to "yes" if exported symbols are required.
12500 always_export_symbols=$always_export_symbols
12502 # The commands to list exported symbols.
12503 export_symbols_cmds=$lt_export_symbols_cmds
12505 # Symbols that should not be listed in the preloaded symbols.
12506 exclude_expsyms=$lt_exclude_expsyms
12508 # Symbols that must always be exported.
12509 include_expsyms=$lt_include_expsyms
12511 # Commands necessary for linking programs (against libraries) with templates.
12512 prelink_cmds=$lt_prelink_cmds
12514 # Specify filename containing input files.
12515 file_list_spec=$lt_file_list_spec
12517 # How to hardcode a shared library path into an executable.
12518 hardcode_action=$hardcode_action
12520 # ### END LIBTOOL CONFIG
12522 _LT_EOF
12524 case $host_os in
12525 aix3*)
12526 cat <<\_LT_EOF >> "$cfgfile"
12527 # AIX sometimes has problems with the GCC collect2 program. For some
12528 # reason, if we set the COLLECT_NAMES environment variable, the problems
12529 # vanish in a puff of smoke.
12530 if test "X${COLLECT_NAMES+set}" != Xset; then
12531 COLLECT_NAMES=
12532 export COLLECT_NAMES
12534 _LT_EOF
12536 esac
12539 ltmain="$ac_aux_dir/ltmain.sh"
12542 # We use sed instead of cat because bash on DJGPP gets confused if
12543 # if finds mixed CR/LF and LF-only lines. Since sed operates in
12544 # text mode, it properly converts lines to CR/LF. This bash problem
12545 # is reportedly fixed, but why not run on old versions too?
12546 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
12547 || (rm -f "$cfgfile"; exit 1)
12549 case $xsi_shell in
12550 yes)
12551 cat << \_LT_EOF >> "$cfgfile"
12552 # func_dirname file append nondir_replacement
12553 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
12554 # otherwise set result to NONDIR_REPLACEMENT.
12555 func_dirname ()
12557 case ${1} in
12558 */*) func_dirname_result="${1%/*}${2}" ;;
12559 * ) func_dirname_result="${3}" ;;
12560 esac
12563 # func_basename file
12564 func_basename ()
12566 func_basename_result="${1##*/}"
12569 # func_stripname prefix suffix name
12570 # strip PREFIX and SUFFIX off of NAME.
12571 # PREFIX and SUFFIX must not contain globbing or regex special
12572 # characters, hashes, percent signs, but SUFFIX may contain a leading
12573 # dot (in which case that matches only a dot).
12574 func_stripname ()
12576 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
12577 # positional parameters, so assign one to ordinary parameter first.
12578 func_stripname_result=${3}
12579 func_stripname_result=${func_stripname_result#"${1}"}
12580 func_stripname_result=${func_stripname_result%"${2}"}
12583 # func_opt_split
12584 func_opt_split ()
12586 func_opt_split_opt=${1%%=*}
12587 func_opt_split_arg=${1#*=}
12590 # func_lo2o object
12591 func_lo2o ()
12593 case ${1} in
12594 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
12595 *) func_lo2o_result=${1} ;;
12596 esac
12598 _LT_EOF
12600 *) # Bourne compatible functions.
12601 cat << \_LT_EOF >> "$cfgfile"
12602 # func_dirname file append nondir_replacement
12603 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
12604 # otherwise set result to NONDIR_REPLACEMENT.
12605 func_dirname ()
12607 # Extract subdirectory from the argument.
12608 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
12609 if test "X$func_dirname_result" = "X${1}"; then
12610 func_dirname_result="${3}"
12611 else
12612 func_dirname_result="$func_dirname_result${2}"
12616 # func_basename file
12617 func_basename ()
12619 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
12622 # func_stripname prefix suffix name
12623 # strip PREFIX and SUFFIX off of NAME.
12624 # PREFIX and SUFFIX must not contain globbing or regex special
12625 # characters, hashes, percent signs, but SUFFIX may contain a leading
12626 # dot (in which case that matches only a dot).
12627 # func_strip_suffix prefix name
12628 func_stripname ()
12630 case ${2} in
12631 .*) func_stripname_result=`$ECHO "X${3}" \
12632 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
12633 *) func_stripname_result=`$ECHO "X${3}" \
12634 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
12635 esac
12638 # sed scripts:
12639 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
12640 my_sed_long_arg='1s/^-[^=]*=//'
12642 # func_opt_split
12643 func_opt_split ()
12645 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
12646 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
12649 # func_lo2o object
12650 func_lo2o ()
12652 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
12654 _LT_EOF
12655 esac
12657 case $lt_shell_append in
12658 yes)
12659 cat << \_LT_EOF >> "$cfgfile"
12661 # func_append var value
12662 # Append VALUE to the end of shell variable VAR.
12663 func_append ()
12665 eval "$1+=\$2"
12667 _LT_EOF
12670 cat << \_LT_EOF >> "$cfgfile"
12672 # func_append var value
12673 # Append VALUE to the end of shell variable VAR.
12674 func_append ()
12676 eval "$1=\$$1\$2"
12678 _LT_EOF
12680 esac
12683 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
12684 || (rm -f "$cfgfile"; exit 1)
12686 mv -f "$cfgfile" "$ofile" ||
12687 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12688 chmod +x "$ofile"
12691 esac
12692 done
12693 _ACEOF
12695 cat >>$CONFIG_STATUS <<\_ACEOF
12697 { (exit 0); exit 0; }
12698 _ACEOF
12699 chmod +x $CONFIG_STATUS
12700 ac_clean_files=$ac_clean_files_save
12703 # configure is writing to config.log, and then calls config.status.
12704 # config.status does its own redirection, appending to config.log.
12705 # Unfortunately, on DOS this fails, as config.log is still kept open
12706 # by configure, so config.status won't be able to write to it; its
12707 # output is simply discarded. So we exec the FD to /dev/null,
12708 # effectively closing config.log, so it can be properly (re)opened and
12709 # appended to by config.status. When coming back to configure, we
12710 # need to make the FD available again.
12711 if test "$no_create" != yes; then
12712 ac_cs_success=:
12713 ac_config_status_args=
12714 test "$silent" = yes &&
12715 ac_config_status_args="$ac_config_status_args --quiet"
12716 exec 5>/dev/null
12717 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12718 exec 5>>config.log
12719 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12720 # would make configure fail if this is the last instruction.
12721 $ac_cs_success || { (exit 1); exit 1; }