opcodes/
[binutils-gdb.git] / opcodes / configure
blobe4377619437bf5bc83b94a4976866c442ae3f834
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="z8k-dis.c"
424 # Factoring default headers for most tests.
425 ac_includes_default="\
426 #include <stdio.h>
427 #if HAVE_SYS_TYPES_H
428 # include <sys/types.h>
429 #endif
430 #if HAVE_SYS_STAT_H
431 # include <sys/stat.h>
432 #endif
433 #if STDC_HEADERS
434 # include <stdlib.h>
435 # include <stddef.h>
436 #else
437 # if HAVE_STDLIB_H
438 # include <stdlib.h>
439 # endif
440 #endif
441 #if HAVE_STRING_H
442 # if !STDC_HEADERS && HAVE_MEMORY_H
443 # include <memory.h>
444 # endif
445 # include <string.h>
446 #endif
447 #if HAVE_STRINGS_H
448 # include <strings.h>
449 #endif
450 #if HAVE_INTTYPES_H
451 # include <inttypes.h>
452 #else
453 # if HAVE_STDINT_H
454 # include <stdint.h>
455 # endif
456 #endif
457 #if HAVE_UNISTD_H
458 # include <unistd.h>
459 #endif"
461 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT 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 DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP AR ac_ct_AR RANLIB ac_ct_RANLIB LIBTOOL SED FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S OBJDUMP ac_ct_OBJDUMP lt_ECHO DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT LIPO ac_ct_LIPO OTOOL ac_ct_OTOOL OTOOL64 ac_ct_OTOOL64 WARN_CFLAGS NO_WERROR MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT INSTALL_LIBBFD_TRUE INSTALL_LIBBFD_FALSE host_noncanonical target_noncanonical bfdlibdir bfdincludedir USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE CC_FOR_BUILD EXEEXT_FOR_BUILD HDEFINES CGEN_MAINT_TRUE CGEN_MAINT_FALSE cgendir LIBM SHARED_LDFLAGS SHARED_LIBADD SHARED_DEPENDENCIES archdefs BFD_MACHINES LIBOBJS LTLIBOBJS'
462 ac_subst_files=''
463 ac_pwd=`pwd`
465 # Initialize some variables set by options.
466 ac_init_help=
467 ac_init_version=false
468 # The variables have the same names as the options, with
469 # dashes changed to underlines.
470 cache_file=/dev/null
471 exec_prefix=NONE
472 no_create=
473 no_recursion=
474 prefix=NONE
475 program_prefix=NONE
476 program_suffix=NONE
477 program_transform_name=s,x,x,
478 silent=
479 site=
480 srcdir=
481 verbose=
482 x_includes=NONE
483 x_libraries=NONE
485 # Installation directory options.
486 # These are left unexpanded so users can "make install exec_prefix=/foo"
487 # and all the variables that are supposed to be based on exec_prefix
488 # by default will actually change.
489 # Use braces instead of parens because sh, perl, etc. also accept them.
490 bindir='${exec_prefix}/bin'
491 sbindir='${exec_prefix}/sbin'
492 libexecdir='${exec_prefix}/libexec'
493 datadir='${prefix}/share'
494 sysconfdir='${prefix}/etc'
495 sharedstatedir='${prefix}/com'
496 localstatedir='${prefix}/var'
497 libdir='${exec_prefix}/lib'
498 includedir='${prefix}/include'
499 oldincludedir='/usr/include'
500 infodir='${prefix}/info'
501 mandir='${prefix}/man'
503 ac_prev=
504 for ac_option
506 # If the previous option needs an argument, assign it.
507 if test -n "$ac_prev"; then
508 eval "$ac_prev=\$ac_option"
509 ac_prev=
510 continue
513 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
515 # Accept the important Cygnus configure options, so we can diagnose typos.
517 case $ac_option in
519 -bindir | --bindir | --bindi | --bind | --bin | --bi)
520 ac_prev=bindir ;;
521 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
522 bindir=$ac_optarg ;;
524 -build | --build | --buil | --bui | --bu)
525 ac_prev=build_alias ;;
526 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
527 build_alias=$ac_optarg ;;
529 -cache-file | --cache-file | --cache-fil | --cache-fi \
530 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
531 ac_prev=cache_file ;;
532 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
533 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
534 cache_file=$ac_optarg ;;
536 --config-cache | -C)
537 cache_file=config.cache ;;
539 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
540 ac_prev=datadir ;;
541 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
542 | --da=*)
543 datadir=$ac_optarg ;;
545 -disable-* | --disable-*)
546 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
547 # Reject names that are not valid shell variable names.
548 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
549 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
550 { (exit 1); exit 1; }; }
551 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
552 eval "enable_$ac_feature=no" ;;
554 -enable-* | --enable-*)
555 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
556 # Reject names that are not valid shell variable names.
557 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559 { (exit 1); exit 1; }; }
560 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561 case $ac_option in
562 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
563 *) ac_optarg=yes ;;
564 esac
565 eval "enable_$ac_feature='$ac_optarg'" ;;
567 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
568 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
569 | --exec | --exe | --ex)
570 ac_prev=exec_prefix ;;
571 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
572 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
573 | --exec=* | --exe=* | --ex=*)
574 exec_prefix=$ac_optarg ;;
576 -gas | --gas | --ga | --g)
577 # Obsolete; use --with-gas.
578 with_gas=yes ;;
580 -help | --help | --hel | --he | -h)
581 ac_init_help=long ;;
582 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
583 ac_init_help=recursive ;;
584 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
585 ac_init_help=short ;;
587 -host | --host | --hos | --ho)
588 ac_prev=host_alias ;;
589 -host=* | --host=* | --hos=* | --ho=*)
590 host_alias=$ac_optarg ;;
592 -includedir | --includedir | --includedi | --included | --include \
593 | --includ | --inclu | --incl | --inc)
594 ac_prev=includedir ;;
595 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
596 | --includ=* | --inclu=* | --incl=* | --inc=*)
597 includedir=$ac_optarg ;;
599 -infodir | --infodir | --infodi | --infod | --info | --inf)
600 ac_prev=infodir ;;
601 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
602 infodir=$ac_optarg ;;
604 -libdir | --libdir | --libdi | --libd)
605 ac_prev=libdir ;;
606 -libdir=* | --libdir=* | --libdi=* | --libd=*)
607 libdir=$ac_optarg ;;
609 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
610 | --libexe | --libex | --libe)
611 ac_prev=libexecdir ;;
612 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
613 | --libexe=* | --libex=* | --libe=*)
614 libexecdir=$ac_optarg ;;
616 -localstatedir | --localstatedir | --localstatedi | --localstated \
617 | --localstate | --localstat | --localsta | --localst \
618 | --locals | --local | --loca | --loc | --lo)
619 ac_prev=localstatedir ;;
620 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
621 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
622 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
623 localstatedir=$ac_optarg ;;
625 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
626 ac_prev=mandir ;;
627 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
628 mandir=$ac_optarg ;;
630 -nfp | --nfp | --nf)
631 # Obsolete; use --without-fp.
632 with_fp=no ;;
634 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
635 | --no-cr | --no-c | -n)
636 no_create=yes ;;
638 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
639 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
640 no_recursion=yes ;;
642 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
643 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
644 | --oldin | --oldi | --old | --ol | --o)
645 ac_prev=oldincludedir ;;
646 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
647 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
648 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
649 oldincludedir=$ac_optarg ;;
651 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
652 ac_prev=prefix ;;
653 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
654 prefix=$ac_optarg ;;
656 -program-prefix | --program-prefix | --program-prefi | --program-pref \
657 | --program-pre | --program-pr | --program-p)
658 ac_prev=program_prefix ;;
659 -program-prefix=* | --program-prefix=* | --program-prefi=* \
660 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
661 program_prefix=$ac_optarg ;;
663 -program-suffix | --program-suffix | --program-suffi | --program-suff \
664 | --program-suf | --program-su | --program-s)
665 ac_prev=program_suffix ;;
666 -program-suffix=* | --program-suffix=* | --program-suffi=* \
667 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
668 program_suffix=$ac_optarg ;;
670 -program-transform-name | --program-transform-name \
671 | --program-transform-nam | --program-transform-na \
672 | --program-transform-n | --program-transform- \
673 | --program-transform | --program-transfor \
674 | --program-transfo | --program-transf \
675 | --program-trans | --program-tran \
676 | --progr-tra | --program-tr | --program-t)
677 ac_prev=program_transform_name ;;
678 -program-transform-name=* | --program-transform-name=* \
679 | --program-transform-nam=* | --program-transform-na=* \
680 | --program-transform-n=* | --program-transform-=* \
681 | --program-transform=* | --program-transfor=* \
682 | --program-transfo=* | --program-transf=* \
683 | --program-trans=* | --program-tran=* \
684 | --progr-tra=* | --program-tr=* | --program-t=*)
685 program_transform_name=$ac_optarg ;;
687 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
688 | -silent | --silent | --silen | --sile | --sil)
689 silent=yes ;;
691 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
692 ac_prev=sbindir ;;
693 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
694 | --sbi=* | --sb=*)
695 sbindir=$ac_optarg ;;
697 -sharedstatedir | --sharedstatedir | --sharedstatedi \
698 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
699 | --sharedst | --shareds | --shared | --share | --shar \
700 | --sha | --sh)
701 ac_prev=sharedstatedir ;;
702 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
703 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
704 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
705 | --sha=* | --sh=*)
706 sharedstatedir=$ac_optarg ;;
708 -site | --site | --sit)
709 ac_prev=site ;;
710 -site=* | --site=* | --sit=*)
711 site=$ac_optarg ;;
713 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
714 ac_prev=srcdir ;;
715 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
716 srcdir=$ac_optarg ;;
718 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
719 | --syscon | --sysco | --sysc | --sys | --sy)
720 ac_prev=sysconfdir ;;
721 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
722 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
723 sysconfdir=$ac_optarg ;;
725 -target | --target | --targe | --targ | --tar | --ta | --t)
726 ac_prev=target_alias ;;
727 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
728 target_alias=$ac_optarg ;;
730 -v | -verbose | --verbose | --verbos | --verbo | --verb)
731 verbose=yes ;;
733 -version | --version | --versio | --versi | --vers | -V)
734 ac_init_version=: ;;
736 -with-* | --with-*)
737 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
738 # Reject names that are not valid shell variable names.
739 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
740 { echo "$as_me: error: invalid package name: $ac_package" >&2
741 { (exit 1); exit 1; }; }
742 ac_package=`echo $ac_package| sed 's/-/_/g'`
743 case $ac_option in
744 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
745 *) ac_optarg=yes ;;
746 esac
747 eval "with_$ac_package='$ac_optarg'" ;;
749 -without-* | --without-*)
750 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
751 # Reject names that are not valid shell variable names.
752 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753 { echo "$as_me: error: invalid package name: $ac_package" >&2
754 { (exit 1); exit 1; }; }
755 ac_package=`echo $ac_package | sed 's/-/_/g'`
756 eval "with_$ac_package=no" ;;
758 --x)
759 # Obsolete; use --with-x.
760 with_x=yes ;;
762 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
763 | --x-incl | --x-inc | --x-in | --x-i)
764 ac_prev=x_includes ;;
765 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
766 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
767 x_includes=$ac_optarg ;;
769 -x-libraries | --x-libraries | --x-librarie | --x-librari \
770 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
771 ac_prev=x_libraries ;;
772 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
773 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
774 x_libraries=$ac_optarg ;;
776 -*) { echo "$as_me: error: unrecognized option: $ac_option
777 Try \`$0 --help' for more information." >&2
778 { (exit 1); exit 1; }; }
781 *=*)
782 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
783 # Reject names that are not valid shell variable names.
784 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
785 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
786 { (exit 1); exit 1; }; }
787 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
788 eval "$ac_envvar='$ac_optarg'"
789 export $ac_envvar ;;
792 # FIXME: should be removed in autoconf 3.0.
793 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
794 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
795 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
796 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
799 esac
800 done
802 if test -n "$ac_prev"; then
803 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
804 { echo "$as_me: error: missing argument to $ac_option" >&2
805 { (exit 1); exit 1; }; }
808 # Be sure to have absolute paths.
809 for ac_var in exec_prefix prefix
811 eval ac_val=$`echo $ac_var`
812 case $ac_val in
813 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
814 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
815 { (exit 1); exit 1; }; };;
816 esac
817 done
819 # Be sure to have absolute paths.
820 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
821 localstatedir libdir includedir oldincludedir infodir mandir
823 eval ac_val=$`echo $ac_var`
824 case $ac_val in
825 [\\/$]* | ?:[\\/]* ) ;;
826 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
827 { (exit 1); exit 1; }; };;
828 esac
829 done
831 # There might be people who depend on the old broken behavior: `$host'
832 # used to hold the argument of --host etc.
833 # FIXME: To remove some day.
834 build=$build_alias
835 host=$host_alias
836 target=$target_alias
838 # FIXME: To remove some day.
839 if test "x$host_alias" != x; then
840 if test "x$build_alias" = x; then
841 cross_compiling=maybe
842 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
843 If a cross compiler is detected then cross compile mode will be used." >&2
844 elif test "x$build_alias" != "x$host_alias"; then
845 cross_compiling=yes
849 ac_tool_prefix=
850 test -n "$host_alias" && ac_tool_prefix=$host_alias-
852 test "$silent" = yes && exec 6>/dev/null
855 # Find the source files, if location was not specified.
856 if test -z "$srcdir"; then
857 ac_srcdir_defaulted=yes
858 # Try the directory containing this script, then its parent.
859 ac_confdir=`(dirname "$0") 2>/dev/null ||
860 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
861 X"$0" : 'X\(//\)[^/]' \| \
862 X"$0" : 'X\(//\)$' \| \
863 X"$0" : 'X\(/\)' \| \
864 . : '\(.\)' 2>/dev/null ||
865 echo X"$0" |
866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
867 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
868 /^X\(\/\/\)$/{ s//\1/; q; }
869 /^X\(\/\).*/{ s//\1/; q; }
870 s/.*/./; q'`
871 srcdir=$ac_confdir
872 if test ! -r $srcdir/$ac_unique_file; then
873 srcdir=..
875 else
876 ac_srcdir_defaulted=no
878 if test ! -r $srcdir/$ac_unique_file; then
879 if test "$ac_srcdir_defaulted" = yes; then
880 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
881 { (exit 1); exit 1; }; }
882 else
883 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
884 { (exit 1); exit 1; }; }
887 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
888 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
889 { (exit 1); exit 1; }; }
890 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
891 ac_env_build_alias_set=${build_alias+set}
892 ac_env_build_alias_value=$build_alias
893 ac_cv_env_build_alias_set=${build_alias+set}
894 ac_cv_env_build_alias_value=$build_alias
895 ac_env_host_alias_set=${host_alias+set}
896 ac_env_host_alias_value=$host_alias
897 ac_cv_env_host_alias_set=${host_alias+set}
898 ac_cv_env_host_alias_value=$host_alias
899 ac_env_target_alias_set=${target_alias+set}
900 ac_env_target_alias_value=$target_alias
901 ac_cv_env_target_alias_set=${target_alias+set}
902 ac_cv_env_target_alias_value=$target_alias
903 ac_env_CC_set=${CC+set}
904 ac_env_CC_value=$CC
905 ac_cv_env_CC_set=${CC+set}
906 ac_cv_env_CC_value=$CC
907 ac_env_CFLAGS_set=${CFLAGS+set}
908 ac_env_CFLAGS_value=$CFLAGS
909 ac_cv_env_CFLAGS_set=${CFLAGS+set}
910 ac_cv_env_CFLAGS_value=$CFLAGS
911 ac_env_LDFLAGS_set=${LDFLAGS+set}
912 ac_env_LDFLAGS_value=$LDFLAGS
913 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
914 ac_cv_env_LDFLAGS_value=$LDFLAGS
915 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
916 ac_env_CPPFLAGS_value=$CPPFLAGS
917 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
918 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
919 ac_env_CPP_set=${CPP+set}
920 ac_env_CPP_value=$CPP
921 ac_cv_env_CPP_set=${CPP+set}
922 ac_cv_env_CPP_value=$CPP
925 # Report the --help message.
927 if test "$ac_init_help" = "long"; then
928 # Omit some internal or obsolete options to make the list less imposing.
929 # This message is too long to be a string in the A/UX 3.1 sh.
930 cat <<_ACEOF
931 \`configure' configures this package to adapt to many kinds of systems.
933 Usage: $0 [OPTION]... [VAR=VALUE]...
935 To assign environment variables (e.g., CC, CFLAGS...), specify them as
936 VAR=VALUE. See below for descriptions of some of the useful variables.
938 Defaults for the options are specified in brackets.
940 Configuration:
941 -h, --help display this help and exit
942 --help=short display options specific to this package
943 --help=recursive display the short help of all the included packages
944 -V, --version display version information and exit
945 -q, --quiet, --silent do not print \`checking...' messages
946 --cache-file=FILE cache test results in FILE [disabled]
947 -C, --config-cache alias for \`--cache-file=config.cache'
948 -n, --no-create do not create output files
949 --srcdir=DIR find the sources in DIR [configure dir or \`..']
951 _ACEOF
953 cat <<_ACEOF
954 Installation directories:
955 --prefix=PREFIX install architecture-independent files in PREFIX
956 [$ac_default_prefix]
957 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
958 [PREFIX]
960 By default, \`make install' will install all the files in
961 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
962 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
963 for instance \`--prefix=\$HOME'.
965 For better control, use the options below.
967 Fine tuning of the installation directories:
968 --bindir=DIR user executables [EPREFIX/bin]
969 --sbindir=DIR system admin executables [EPREFIX/sbin]
970 --libexecdir=DIR program executables [EPREFIX/libexec]
971 --datadir=DIR read-only architecture-independent data [PREFIX/share]
972 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
973 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
974 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
975 --libdir=DIR object code libraries [EPREFIX/lib]
976 --includedir=DIR C header files [PREFIX/include]
977 --oldincludedir=DIR C header files for non-gcc [/usr/include]
978 --infodir=DIR info documentation [PREFIX/info]
979 --mandir=DIR man documentation [PREFIX/man]
980 _ACEOF
982 cat <<\_ACEOF
984 Program names:
985 --program-prefix=PREFIX prepend PREFIX to installed program names
986 --program-suffix=SUFFIX append SUFFIX to installed program names
987 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
989 System types:
990 --build=BUILD configure for building on BUILD [guessed]
991 --host=HOST cross-compile to build programs to run on HOST [BUILD]
992 --target=TARGET configure for building compilers for TARGET [HOST]
993 _ACEOF
996 if test -n "$ac_init_help"; then
998 cat <<\_ACEOF
1000 Optional Features:
1001 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1002 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1003 --disable-dependency-tracking speeds up one-time build
1004 --enable-dependency-tracking do not reject slow dependency extractors
1005 --enable-shared[=PKGS]
1006 build shared libraries [default=no]
1007 --enable-static[=PKGS]
1008 build static libraries [default=yes]
1009 --enable-fast-install[=PKGS]
1010 optimize for fast installation [default=yes]
1011 --disable-libtool-lock avoid locking (might break parallel builds)
1012 --enable-targets alternative target configurations
1013 --enable-werror treat compile warnings as errors
1014 --enable-build-warnings enable build-time compiler warnings
1015 --enable-maintainer-mode enable make rules and dependencies not useful
1016 (and sometimes confusing) to the casual installer
1017 --enable-install-libbfd controls installation of libbfd and related headers
1018 --disable-nls do not use Native Language Support
1019 --enable-cgen-maint=dir build cgen generated files
1021 Optional Packages:
1022 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1023 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1024 --with-pic try to use only PIC/non-PIC objects [default=use
1025 both]
1026 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1028 Some influential environment variables:
1029 CC C compiler command
1030 CFLAGS C compiler flags
1031 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1032 nonstandard directory <lib dir>
1033 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1034 headers in a nonstandard directory <include dir>
1035 CPP C preprocessor
1037 Use these variables to override the choices made by `configure' or to help
1038 it to find libraries and programs with nonstandard names/locations.
1040 _ACEOF
1043 if test "$ac_init_help" = "recursive"; then
1044 # If there are subdirs, report their specific --help.
1045 ac_popdir=`pwd`
1046 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1047 test -d $ac_dir || continue
1048 ac_builddir=.
1050 if test "$ac_dir" != .; then
1051 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1052 # A "../" for each directory in $ac_dir_suffix.
1053 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1054 else
1055 ac_dir_suffix= ac_top_builddir=
1058 case $srcdir in
1059 .) # No --srcdir option. We are building in place.
1060 ac_srcdir=.
1061 if test -z "$ac_top_builddir"; then
1062 ac_top_srcdir=.
1063 else
1064 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1065 fi ;;
1066 [\\/]* | ?:[\\/]* ) # Absolute path.
1067 ac_srcdir=$srcdir$ac_dir_suffix;
1068 ac_top_srcdir=$srcdir ;;
1069 *) # Relative path.
1070 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1071 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1072 esac
1074 # Do not use `cd foo && pwd` to compute absolute paths, because
1075 # the directories may not exist.
1076 case `pwd` in
1077 .) ac_abs_builddir="$ac_dir";;
1079 case "$ac_dir" in
1080 .) ac_abs_builddir=`pwd`;;
1081 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1082 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1083 esac;;
1084 esac
1085 case $ac_abs_builddir in
1086 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1088 case ${ac_top_builddir}. in
1089 .) ac_abs_top_builddir=$ac_abs_builddir;;
1090 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1091 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1092 esac;;
1093 esac
1094 case $ac_abs_builddir in
1095 .) ac_abs_srcdir=$ac_srcdir;;
1097 case $ac_srcdir in
1098 .) ac_abs_srcdir=$ac_abs_builddir;;
1099 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1100 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1101 esac;;
1102 esac
1103 case $ac_abs_builddir in
1104 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1106 case $ac_top_srcdir in
1107 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1108 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1109 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1110 esac;;
1111 esac
1113 cd $ac_dir
1114 # Check for guested configure; otherwise get Cygnus style configure.
1115 if test -f $ac_srcdir/configure.gnu; then
1116 echo
1117 $SHELL $ac_srcdir/configure.gnu --help=recursive
1118 elif test -f $ac_srcdir/configure; then
1119 echo
1120 $SHELL $ac_srcdir/configure --help=recursive
1121 elif test -f $ac_srcdir/configure.ac ||
1122 test -f $ac_srcdir/configure.in; then
1123 echo
1124 $ac_configure --help
1125 else
1126 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1128 cd $ac_popdir
1129 done
1132 test -n "$ac_init_help" && exit 0
1133 if $ac_init_version; then
1134 cat <<\_ACEOF
1136 Copyright (C) 2003 Free Software Foundation, Inc.
1137 This configure script is free software; the Free Software Foundation
1138 gives unlimited permission to copy, distribute and modify it.
1139 _ACEOF
1140 exit 0
1142 exec 5>config.log
1143 cat >&5 <<_ACEOF
1144 This file contains any messages produced by compilers while
1145 running configure, to aid debugging if configure makes a mistake.
1147 It was created by $as_me, which was
1148 generated by GNU Autoconf 2.59. Invocation command line was
1150 $ $0 $@
1152 _ACEOF
1154 cat <<_ASUNAME
1155 ## --------- ##
1156 ## Platform. ##
1157 ## --------- ##
1159 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1160 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1161 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1162 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1163 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1165 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1166 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1168 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1169 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1170 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1171 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1172 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1173 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1174 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1176 _ASUNAME
1178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1179 for as_dir in $PATH
1181 IFS=$as_save_IFS
1182 test -z "$as_dir" && as_dir=.
1183 echo "PATH: $as_dir"
1184 done
1186 } >&5
1188 cat >&5 <<_ACEOF
1191 ## ----------- ##
1192 ## Core tests. ##
1193 ## ----------- ##
1195 _ACEOF
1198 # Keep a trace of the command line.
1199 # Strip out --no-create and --no-recursion so they do not pile up.
1200 # Strip out --silent because we don't want to record it for future runs.
1201 # Also quote any args containing shell meta-characters.
1202 # Make two passes to allow for proper duplicate-argument suppression.
1203 ac_configure_args=
1204 ac_configure_args0=
1205 ac_configure_args1=
1206 ac_sep=
1207 ac_must_keep_next=false
1208 for ac_pass in 1 2
1210 for ac_arg
1212 case $ac_arg in
1213 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1214 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1215 | -silent | --silent | --silen | --sile | --sil)
1216 continue ;;
1217 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1218 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1219 esac
1220 case $ac_pass in
1221 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1223 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1224 if test $ac_must_keep_next = true; then
1225 ac_must_keep_next=false # Got value, back to normal.
1226 else
1227 case $ac_arg in
1228 *=* | --config-cache | -C | -disable-* | --disable-* \
1229 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1230 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1231 | -with-* | --with-* | -without-* | --without-* | --x)
1232 case "$ac_configure_args0 " in
1233 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1234 esac
1236 -* ) ac_must_keep_next=true ;;
1237 esac
1239 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1240 # Get rid of the leading space.
1241 ac_sep=" "
1243 esac
1244 done
1245 done
1246 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1247 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1249 # When interrupted or exit'd, cleanup temporary files, and complete
1250 # config.log. We remove comments because anyway the quotes in there
1251 # would cause problems or look ugly.
1252 # WARNING: Be sure not to use single quotes in there, as some shells,
1253 # such as our DU 5.0 friend, will then `close' the trap.
1254 trap 'exit_status=$?
1255 # Save into config.log some information that might help in debugging.
1257 echo
1259 cat <<\_ASBOX
1260 ## ---------------- ##
1261 ## Cache variables. ##
1262 ## ---------------- ##
1263 _ASBOX
1264 echo
1265 # The following way of writing the cache mishandles newlines in values,
1267 (set) 2>&1 |
1268 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1269 *ac_space=\ *)
1270 sed -n \
1271 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1272 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1275 sed -n \
1276 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1278 esac;
1280 echo
1282 cat <<\_ASBOX
1283 ## ----------------- ##
1284 ## Output variables. ##
1285 ## ----------------- ##
1286 _ASBOX
1287 echo
1288 for ac_var in $ac_subst_vars
1290 eval ac_val=$`echo $ac_var`
1291 echo "$ac_var='"'"'$ac_val'"'"'"
1292 done | sort
1293 echo
1295 if test -n "$ac_subst_files"; then
1296 cat <<\_ASBOX
1297 ## ------------- ##
1298 ## Output files. ##
1299 ## ------------- ##
1300 _ASBOX
1301 echo
1302 for ac_var in $ac_subst_files
1304 eval ac_val=$`echo $ac_var`
1305 echo "$ac_var='"'"'$ac_val'"'"'"
1306 done | sort
1307 echo
1310 if test -s confdefs.h; then
1311 cat <<\_ASBOX
1312 ## ----------- ##
1313 ## confdefs.h. ##
1314 ## ----------- ##
1315 _ASBOX
1316 echo
1317 sed "/^$/d" confdefs.h | sort
1318 echo
1320 test "$ac_signal" != 0 &&
1321 echo "$as_me: caught signal $ac_signal"
1322 echo "$as_me: exit $exit_status"
1323 } >&5
1324 rm -f core *.core &&
1325 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1326 exit $exit_status
1328 for ac_signal in 1 2 13 15; do
1329 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1330 done
1331 ac_signal=0
1333 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1334 rm -rf conftest* confdefs.h
1335 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1336 echo >confdefs.h
1338 # Predefined preprocessor variables.
1340 cat >>confdefs.h <<_ACEOF
1341 #define PACKAGE_NAME "$PACKAGE_NAME"
1342 _ACEOF
1345 cat >>confdefs.h <<_ACEOF
1346 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1347 _ACEOF
1350 cat >>confdefs.h <<_ACEOF
1351 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1352 _ACEOF
1355 cat >>confdefs.h <<_ACEOF
1356 #define PACKAGE_STRING "$PACKAGE_STRING"
1357 _ACEOF
1360 cat >>confdefs.h <<_ACEOF
1361 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1362 _ACEOF
1365 # Let the site file select an alternate cache file if it wants to.
1366 # Prefer explicitly selected file to automatically selected ones.
1367 if test -z "$CONFIG_SITE"; then
1368 if test "x$prefix" != xNONE; then
1369 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1370 else
1371 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1374 for ac_site_file in $CONFIG_SITE; do
1375 if test -r "$ac_site_file"; then
1376 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1377 echo "$as_me: loading site script $ac_site_file" >&6;}
1378 sed 's/^/| /' "$ac_site_file" >&5
1379 . "$ac_site_file"
1381 done
1383 if test -r "$cache_file"; then
1384 # Some versions of bash will fail to source /dev/null (special
1385 # files actually), so we avoid doing that.
1386 if test -f "$cache_file"; then
1387 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1388 echo "$as_me: loading cache $cache_file" >&6;}
1389 case $cache_file in
1390 [\\/]* | ?:[\\/]* ) . $cache_file;;
1391 *) . ./$cache_file;;
1392 esac
1394 else
1395 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1396 echo "$as_me: creating cache $cache_file" >&6;}
1397 >$cache_file
1400 # Check that the precious variables saved in the cache have kept the same
1401 # value.
1402 ac_cache_corrupted=false
1403 for ac_var in `(set) 2>&1 |
1404 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1405 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1406 eval ac_new_set=\$ac_env_${ac_var}_set
1407 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1408 eval ac_new_val="\$ac_env_${ac_var}_value"
1409 case $ac_old_set,$ac_new_set in
1410 set,)
1411 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1412 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1413 ac_cache_corrupted=: ;;
1414 ,set)
1415 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1416 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1417 ac_cache_corrupted=: ;;
1418 ,);;
1420 if test "x$ac_old_val" != "x$ac_new_val"; then
1421 # differences in whitespace do not lead to failure.
1422 ac_old_val_w=`echo x $ac_old_val`
1423 ac_new_val_w=`echo x $ac_new_val`
1424 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1425 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1426 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1427 ac_cache_corrupted=:
1428 else
1429 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1430 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1431 eval $ac_var=\$ac_old_val
1433 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1434 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1435 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1436 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1437 fi;;
1438 esac
1439 # Pass precious variables to config.status.
1440 if test "$ac_new_set" = set; then
1441 case $ac_new_val in
1442 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1443 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1444 *) ac_arg=$ac_var=$ac_new_val ;;
1445 esac
1446 case " $ac_configure_args " in
1447 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1448 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1449 esac
1451 done
1452 if $ac_cache_corrupted; then
1453 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1454 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1455 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1456 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1457 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1458 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1459 { (exit 1); exit 1; }; }
1462 ac_ext=c
1463 ac_cpp='$CPP $CPPFLAGS'
1464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1491 ac_aux_dir=
1492 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1493 if test -f $ac_dir/install-sh; then
1494 ac_aux_dir=$ac_dir
1495 ac_install_sh="$ac_aux_dir/install-sh -c"
1496 break
1497 elif test -f $ac_dir/install.sh; then
1498 ac_aux_dir=$ac_dir
1499 ac_install_sh="$ac_aux_dir/install.sh -c"
1500 break
1501 elif test -f $ac_dir/shtool; then
1502 ac_aux_dir=$ac_dir
1503 ac_install_sh="$ac_aux_dir/shtool install -c"
1504 break
1506 done
1507 if test -z "$ac_aux_dir"; then
1508 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1509 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1510 { (exit 1); exit 1; }; }
1512 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1513 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1514 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1516 # Make sure we can run config.sub.
1517 $ac_config_sub sun4 >/dev/null 2>&1 ||
1518 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1519 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1520 { (exit 1); exit 1; }; }
1522 echo "$as_me:$LINENO: checking build system type" >&5
1523 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1524 if test "${ac_cv_build+set}" = set; then
1525 echo $ECHO_N "(cached) $ECHO_C" >&6
1526 else
1527 ac_cv_build_alias=$build_alias
1528 test -z "$ac_cv_build_alias" &&
1529 ac_cv_build_alias=`$ac_config_guess`
1530 test -z "$ac_cv_build_alias" &&
1531 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1532 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1533 { (exit 1); exit 1; }; }
1534 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1535 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1536 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1537 { (exit 1); exit 1; }; }
1540 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1541 echo "${ECHO_T}$ac_cv_build" >&6
1542 build=$ac_cv_build
1543 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1544 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1545 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1548 echo "$as_me:$LINENO: checking host system type" >&5
1549 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1550 if test "${ac_cv_host+set}" = set; then
1551 echo $ECHO_N "(cached) $ECHO_C" >&6
1552 else
1553 ac_cv_host_alias=$host_alias
1554 test -z "$ac_cv_host_alias" &&
1555 ac_cv_host_alias=$ac_cv_build_alias
1556 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1557 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1558 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1559 { (exit 1); exit 1; }; }
1562 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1563 echo "${ECHO_T}$ac_cv_host" >&6
1564 host=$ac_cv_host
1565 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1566 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1567 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1570 echo "$as_me:$LINENO: checking target system type" >&5
1571 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1572 if test "${ac_cv_target+set}" = set; then
1573 echo $ECHO_N "(cached) $ECHO_C" >&6
1574 else
1575 ac_cv_target_alias=$target_alias
1576 test "x$ac_cv_target_alias" = "x" &&
1577 ac_cv_target_alias=$ac_cv_host_alias
1578 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1579 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1580 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1581 { (exit 1); exit 1; }; }
1584 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1585 echo "${ECHO_T}$ac_cv_target" >&6
1586 target=$ac_cv_target
1587 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1588 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1589 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1592 # The aliases save the names the user supplied, while $host etc.
1593 # will get canonicalized.
1594 test -n "$target_alias" &&
1595 test "$program_prefix$program_suffix$program_transform_name" = \
1596 NONENONEs,x,x, &&
1597 program_prefix=${target_alias}-
1598 ac_ext=c
1599 ac_cpp='$CPP $CPPFLAGS'
1600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1603 if test -n "$ac_tool_prefix"; then
1604 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1605 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1606 echo "$as_me:$LINENO: checking for $ac_word" >&5
1607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1608 if test "${ac_cv_prog_CC+set}" = set; then
1609 echo $ECHO_N "(cached) $ECHO_C" >&6
1610 else
1611 if test -n "$CC"; then
1612 ac_cv_prog_CC="$CC" # Let the user override the test.
1613 else
1614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1615 for as_dir in $PATH
1617 IFS=$as_save_IFS
1618 test -z "$as_dir" && as_dir=.
1619 for ac_exec_ext in '' $ac_executable_extensions; do
1620 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1621 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1623 break 2
1625 done
1626 done
1630 CC=$ac_cv_prog_CC
1631 if test -n "$CC"; then
1632 echo "$as_me:$LINENO: result: $CC" >&5
1633 echo "${ECHO_T}$CC" >&6
1634 else
1635 echo "$as_me:$LINENO: result: no" >&5
1636 echo "${ECHO_T}no" >&6
1640 if test -z "$ac_cv_prog_CC"; then
1641 ac_ct_CC=$CC
1642 # Extract the first word of "gcc", so it can be a program name with args.
1643 set dummy gcc; ac_word=$2
1644 echo "$as_me:$LINENO: checking for $ac_word" >&5
1645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1646 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1647 echo $ECHO_N "(cached) $ECHO_C" >&6
1648 else
1649 if test -n "$ac_ct_CC"; then
1650 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1651 else
1652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1653 for as_dir in $PATH
1655 IFS=$as_save_IFS
1656 test -z "$as_dir" && as_dir=.
1657 for ac_exec_ext in '' $ac_executable_extensions; do
1658 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1659 ac_cv_prog_ac_ct_CC="gcc"
1660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1661 break 2
1663 done
1664 done
1668 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1669 if test -n "$ac_ct_CC"; then
1670 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1671 echo "${ECHO_T}$ac_ct_CC" >&6
1672 else
1673 echo "$as_me:$LINENO: result: no" >&5
1674 echo "${ECHO_T}no" >&6
1677 CC=$ac_ct_CC
1678 else
1679 CC="$ac_cv_prog_CC"
1682 if test -z "$CC"; then
1683 if test -n "$ac_tool_prefix"; then
1684 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1685 set dummy ${ac_tool_prefix}cc; ac_word=$2
1686 echo "$as_me:$LINENO: checking for $ac_word" >&5
1687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1688 if test "${ac_cv_prog_CC+set}" = set; then
1689 echo $ECHO_N "(cached) $ECHO_C" >&6
1690 else
1691 if test -n "$CC"; then
1692 ac_cv_prog_CC="$CC" # Let the user override the test.
1693 else
1694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1695 for as_dir in $PATH
1697 IFS=$as_save_IFS
1698 test -z "$as_dir" && as_dir=.
1699 for ac_exec_ext in '' $ac_executable_extensions; do
1700 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1701 ac_cv_prog_CC="${ac_tool_prefix}cc"
1702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1703 break 2
1705 done
1706 done
1710 CC=$ac_cv_prog_CC
1711 if test -n "$CC"; then
1712 echo "$as_me:$LINENO: result: $CC" >&5
1713 echo "${ECHO_T}$CC" >&6
1714 else
1715 echo "$as_me:$LINENO: result: no" >&5
1716 echo "${ECHO_T}no" >&6
1720 if test -z "$ac_cv_prog_CC"; then
1721 ac_ct_CC=$CC
1722 # Extract the first word of "cc", so it can be a program name with args.
1723 set dummy cc; ac_word=$2
1724 echo "$as_me:$LINENO: checking for $ac_word" >&5
1725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1726 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1727 echo $ECHO_N "(cached) $ECHO_C" >&6
1728 else
1729 if test -n "$ac_ct_CC"; then
1730 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1731 else
1732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1733 for as_dir in $PATH
1735 IFS=$as_save_IFS
1736 test -z "$as_dir" && as_dir=.
1737 for ac_exec_ext in '' $ac_executable_extensions; do
1738 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1739 ac_cv_prog_ac_ct_CC="cc"
1740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1741 break 2
1743 done
1744 done
1748 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1749 if test -n "$ac_ct_CC"; then
1750 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1751 echo "${ECHO_T}$ac_ct_CC" >&6
1752 else
1753 echo "$as_me:$LINENO: result: no" >&5
1754 echo "${ECHO_T}no" >&6
1757 CC=$ac_ct_CC
1758 else
1759 CC="$ac_cv_prog_CC"
1763 if test -z "$CC"; then
1764 # Extract the first word of "cc", so it can be a program name with args.
1765 set dummy cc; ac_word=$2
1766 echo "$as_me:$LINENO: checking for $ac_word" >&5
1767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1768 if test "${ac_cv_prog_CC+set}" = set; then
1769 echo $ECHO_N "(cached) $ECHO_C" >&6
1770 else
1771 if test -n "$CC"; then
1772 ac_cv_prog_CC="$CC" # Let the user override the test.
1773 else
1774 ac_prog_rejected=no
1775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1776 for as_dir in $PATH
1778 IFS=$as_save_IFS
1779 test -z "$as_dir" && as_dir=.
1780 for ac_exec_ext in '' $ac_executable_extensions; do
1781 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1782 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1783 ac_prog_rejected=yes
1784 continue
1786 ac_cv_prog_CC="cc"
1787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1788 break 2
1790 done
1791 done
1793 if test $ac_prog_rejected = yes; then
1794 # We found a bogon in the path, so make sure we never use it.
1795 set dummy $ac_cv_prog_CC
1796 shift
1797 if test $# != 0; then
1798 # We chose a different compiler from the bogus one.
1799 # However, it has the same basename, so the bogon will be chosen
1800 # first if we set CC to just the basename; use the full file name.
1801 shift
1802 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1807 CC=$ac_cv_prog_CC
1808 if test -n "$CC"; then
1809 echo "$as_me:$LINENO: result: $CC" >&5
1810 echo "${ECHO_T}$CC" >&6
1811 else
1812 echo "$as_me:$LINENO: result: no" >&5
1813 echo "${ECHO_T}no" >&6
1817 if test -z "$CC"; then
1818 if test -n "$ac_tool_prefix"; then
1819 for ac_prog in cl
1821 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1822 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1823 echo "$as_me:$LINENO: checking for $ac_word" >&5
1824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1825 if test "${ac_cv_prog_CC+set}" = set; then
1826 echo $ECHO_N "(cached) $ECHO_C" >&6
1827 else
1828 if test -n "$CC"; then
1829 ac_cv_prog_CC="$CC" # Let the user override the test.
1830 else
1831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1832 for as_dir in $PATH
1834 IFS=$as_save_IFS
1835 test -z "$as_dir" && as_dir=.
1836 for ac_exec_ext in '' $ac_executable_extensions; do
1837 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1838 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1840 break 2
1842 done
1843 done
1847 CC=$ac_cv_prog_CC
1848 if test -n "$CC"; then
1849 echo "$as_me:$LINENO: result: $CC" >&5
1850 echo "${ECHO_T}$CC" >&6
1851 else
1852 echo "$as_me:$LINENO: result: no" >&5
1853 echo "${ECHO_T}no" >&6
1856 test -n "$CC" && break
1857 done
1859 if test -z "$CC"; then
1860 ac_ct_CC=$CC
1861 for ac_prog in cl
1863 # Extract the first word of "$ac_prog", so it can be a program name with args.
1864 set dummy $ac_prog; ac_word=$2
1865 echo "$as_me:$LINENO: checking for $ac_word" >&5
1866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1867 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1868 echo $ECHO_N "(cached) $ECHO_C" >&6
1869 else
1870 if test -n "$ac_ct_CC"; then
1871 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1872 else
1873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1874 for as_dir in $PATH
1876 IFS=$as_save_IFS
1877 test -z "$as_dir" && as_dir=.
1878 for ac_exec_ext in '' $ac_executable_extensions; do
1879 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1880 ac_cv_prog_ac_ct_CC="$ac_prog"
1881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1882 break 2
1884 done
1885 done
1889 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1890 if test -n "$ac_ct_CC"; then
1891 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1892 echo "${ECHO_T}$ac_ct_CC" >&6
1893 else
1894 echo "$as_me:$LINENO: result: no" >&5
1895 echo "${ECHO_T}no" >&6
1898 test -n "$ac_ct_CC" && break
1899 done
1901 CC=$ac_ct_CC
1907 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1908 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1909 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1910 See \`config.log' for more details." >&5
1911 echo "$as_me: error: no acceptable C compiler found in \$PATH
1912 See \`config.log' for more details." >&2;}
1913 { (exit 1); exit 1; }; }; }
1915 # Provide some information about the compiler.
1916 echo "$as_me:$LINENO:" \
1917 "checking for C compiler version" >&5
1918 ac_compiler=`set X $ac_compile; echo $2`
1919 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1920 (eval $ac_compiler --version </dev/null >&5) 2>&5
1921 ac_status=$?
1922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1923 (exit $ac_status); }
1924 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1925 (eval $ac_compiler -v </dev/null >&5) 2>&5
1926 ac_status=$?
1927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1928 (exit $ac_status); }
1929 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1930 (eval $ac_compiler -V </dev/null >&5) 2>&5
1931 ac_status=$?
1932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1933 (exit $ac_status); }
1935 cat >conftest.$ac_ext <<_ACEOF
1936 /* confdefs.h. */
1937 _ACEOF
1938 cat confdefs.h >>conftest.$ac_ext
1939 cat >>conftest.$ac_ext <<_ACEOF
1940 /* end confdefs.h. */
1943 main ()
1947 return 0;
1949 _ACEOF
1950 ac_clean_files_save=$ac_clean_files
1951 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1952 # Try to create an executable without -o first, disregard a.out.
1953 # It will help us diagnose broken compilers, and finding out an intuition
1954 # of exeext.
1955 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1956 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1957 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1958 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1959 (eval $ac_link_default) 2>&5
1960 ac_status=$?
1961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1962 (exit $ac_status); }; then
1963 # Find the output, starting from the most likely. This scheme is
1964 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1965 # resort.
1967 # Be careful to initialize this variable, since it used to be cached.
1968 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1969 ac_cv_exeext=
1970 # b.out is created by i960 compilers.
1971 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1973 test -f "$ac_file" || continue
1974 case $ac_file in
1975 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1977 conftest.$ac_ext )
1978 # This is the source file.
1980 [ab].out )
1981 # We found the default executable, but exeext='' is most
1982 # certainly right.
1983 break;;
1984 *.* )
1985 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1986 # FIXME: I believe we export ac_cv_exeext for Libtool,
1987 # but it would be cool to find out if it's true. Does anybody
1988 # maintain Libtool? --akim.
1989 export ac_cv_exeext
1990 break;;
1992 break;;
1993 esac
1994 done
1995 else
1996 echo "$as_me: failed program was:" >&5
1997 sed 's/^/| /' conftest.$ac_ext >&5
1999 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2000 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2001 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2002 See \`config.log' for more details." >&5
2003 echo "$as_me: error: C compiler cannot create executables
2004 See \`config.log' for more details." >&2;}
2005 { (exit 77); exit 77; }; }; }
2008 ac_exeext=$ac_cv_exeext
2009 echo "$as_me:$LINENO: result: $ac_file" >&5
2010 echo "${ECHO_T}$ac_file" >&6
2012 # Check the compiler produces executables we can run. If not, either
2013 # the compiler is broken, or we cross compile.
2014 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2015 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2016 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2017 # If not cross compiling, check that we can run a simple program.
2018 if test "$cross_compiling" != yes; then
2019 if { ac_try='./$ac_file'
2020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2021 (eval $ac_try) 2>&5
2022 ac_status=$?
2023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2024 (exit $ac_status); }; }; then
2025 cross_compiling=no
2026 else
2027 if test "$cross_compiling" = maybe; then
2028 cross_compiling=yes
2029 else
2030 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2031 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2032 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2033 If you meant to cross compile, use \`--host'.
2034 See \`config.log' for more details." >&5
2035 echo "$as_me: error: cannot run C compiled programs.
2036 If you meant to cross compile, use \`--host'.
2037 See \`config.log' for more details." >&2;}
2038 { (exit 1); exit 1; }; }; }
2042 echo "$as_me:$LINENO: result: yes" >&5
2043 echo "${ECHO_T}yes" >&6
2045 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2046 ac_clean_files=$ac_clean_files_save
2047 # Check the compiler produces executables we can run. If not, either
2048 # the compiler is broken, or we cross compile.
2049 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2050 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2051 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2052 echo "${ECHO_T}$cross_compiling" >&6
2054 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2055 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2057 (eval $ac_link) 2>&5
2058 ac_status=$?
2059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2060 (exit $ac_status); }; then
2061 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2062 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2063 # work properly (i.e., refer to `conftest.exe'), while it won't with
2064 # `rm'.
2065 for ac_file in conftest.exe conftest conftest.*; do
2066 test -f "$ac_file" || continue
2067 case $ac_file in
2068 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2069 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2070 export ac_cv_exeext
2071 break;;
2072 * ) break;;
2073 esac
2074 done
2075 else
2076 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2077 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2078 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2079 See \`config.log' for more details." >&5
2080 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2081 See \`config.log' for more details." >&2;}
2082 { (exit 1); exit 1; }; }; }
2085 rm -f conftest$ac_cv_exeext
2086 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2087 echo "${ECHO_T}$ac_cv_exeext" >&6
2089 rm -f conftest.$ac_ext
2090 EXEEXT=$ac_cv_exeext
2091 ac_exeext=$EXEEXT
2092 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2093 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2094 if test "${ac_cv_objext+set}" = set; then
2095 echo $ECHO_N "(cached) $ECHO_C" >&6
2096 else
2097 cat >conftest.$ac_ext <<_ACEOF
2098 /* confdefs.h. */
2099 _ACEOF
2100 cat confdefs.h >>conftest.$ac_ext
2101 cat >>conftest.$ac_ext <<_ACEOF
2102 /* end confdefs.h. */
2105 main ()
2109 return 0;
2111 _ACEOF
2112 rm -f conftest.o conftest.obj
2113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2114 (eval $ac_compile) 2>&5
2115 ac_status=$?
2116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2117 (exit $ac_status); }; then
2118 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2119 case $ac_file in
2120 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2121 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2122 break;;
2123 esac
2124 done
2125 else
2126 echo "$as_me: failed program was:" >&5
2127 sed 's/^/| /' conftest.$ac_ext >&5
2129 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2130 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2131 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2132 See \`config.log' for more details." >&5
2133 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2134 See \`config.log' for more details." >&2;}
2135 { (exit 1); exit 1; }; }; }
2138 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2140 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2141 echo "${ECHO_T}$ac_cv_objext" >&6
2142 OBJEXT=$ac_cv_objext
2143 ac_objext=$OBJEXT
2144 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2145 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2146 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2147 echo $ECHO_N "(cached) $ECHO_C" >&6
2148 else
2149 cat >conftest.$ac_ext <<_ACEOF
2150 /* confdefs.h. */
2151 _ACEOF
2152 cat confdefs.h >>conftest.$ac_ext
2153 cat >>conftest.$ac_ext <<_ACEOF
2154 /* end confdefs.h. */
2157 main ()
2159 #ifndef __GNUC__
2160 choke me
2161 #endif
2164 return 0;
2166 _ACEOF
2167 rm -f conftest.$ac_objext
2168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2169 (eval $ac_compile) 2>conftest.er1
2170 ac_status=$?
2171 grep -v '^ *+' conftest.er1 >conftest.err
2172 rm -f conftest.er1
2173 cat conftest.err >&5
2174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175 (exit $ac_status); } &&
2176 { ac_try='test -z "$ac_c_werror_flag"
2177 || test ! -s conftest.err'
2178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2179 (eval $ac_try) 2>&5
2180 ac_status=$?
2181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182 (exit $ac_status); }; } &&
2183 { ac_try='test -s conftest.$ac_objext'
2184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2185 (eval $ac_try) 2>&5
2186 ac_status=$?
2187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2188 (exit $ac_status); }; }; then
2189 ac_compiler_gnu=yes
2190 else
2191 echo "$as_me: failed program was:" >&5
2192 sed 's/^/| /' conftest.$ac_ext >&5
2194 ac_compiler_gnu=no
2196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2197 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2200 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2201 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2202 GCC=`test $ac_compiler_gnu = yes && echo yes`
2203 ac_test_CFLAGS=${CFLAGS+set}
2204 ac_save_CFLAGS=$CFLAGS
2205 CFLAGS="-g"
2206 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2207 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2208 if test "${ac_cv_prog_cc_g+set}" = set; then
2209 echo $ECHO_N "(cached) $ECHO_C" >&6
2210 else
2211 cat >conftest.$ac_ext <<_ACEOF
2212 /* confdefs.h. */
2213 _ACEOF
2214 cat confdefs.h >>conftest.$ac_ext
2215 cat >>conftest.$ac_ext <<_ACEOF
2216 /* end confdefs.h. */
2219 main ()
2223 return 0;
2225 _ACEOF
2226 rm -f conftest.$ac_objext
2227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2228 (eval $ac_compile) 2>conftest.er1
2229 ac_status=$?
2230 grep -v '^ *+' conftest.er1 >conftest.err
2231 rm -f conftest.er1
2232 cat conftest.err >&5
2233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234 (exit $ac_status); } &&
2235 { ac_try='test -z "$ac_c_werror_flag"
2236 || test ! -s conftest.err'
2237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2238 (eval $ac_try) 2>&5
2239 ac_status=$?
2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 (exit $ac_status); }; } &&
2242 { ac_try='test -s conftest.$ac_objext'
2243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2244 (eval $ac_try) 2>&5
2245 ac_status=$?
2246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247 (exit $ac_status); }; }; then
2248 ac_cv_prog_cc_g=yes
2249 else
2250 echo "$as_me: failed program was:" >&5
2251 sed 's/^/| /' conftest.$ac_ext >&5
2253 ac_cv_prog_cc_g=no
2255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2257 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2258 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2259 if test "$ac_test_CFLAGS" = set; then
2260 CFLAGS=$ac_save_CFLAGS
2261 elif test $ac_cv_prog_cc_g = yes; then
2262 if test "$GCC" = yes; then
2263 CFLAGS="-g -O2"
2264 else
2265 CFLAGS="-g"
2267 else
2268 if test "$GCC" = yes; then
2269 CFLAGS="-O2"
2270 else
2271 CFLAGS=
2274 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2275 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2276 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2277 echo $ECHO_N "(cached) $ECHO_C" >&6
2278 else
2279 ac_cv_prog_cc_stdc=no
2280 ac_save_CC=$CC
2281 cat >conftest.$ac_ext <<_ACEOF
2282 /* confdefs.h. */
2283 _ACEOF
2284 cat confdefs.h >>conftest.$ac_ext
2285 cat >>conftest.$ac_ext <<_ACEOF
2286 /* end confdefs.h. */
2287 #include <stdarg.h>
2288 #include <stdio.h>
2289 #include <sys/types.h>
2290 #include <sys/stat.h>
2291 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2292 struct buf { int x; };
2293 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2294 static char *e (p, i)
2295 char **p;
2296 int i;
2298 return p[i];
2300 static char *f (char * (*g) (char **, int), char **p, ...)
2302 char *s;
2303 va_list v;
2304 va_start (v,p);
2305 s = g (p, va_arg (v,int));
2306 va_end (v);
2307 return s;
2310 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2311 function prototypes and stuff, but not '\xHH' hex character constants.
2312 These don't provoke an error unfortunately, instead are silently treated
2313 as 'x'. The following induces an error, until -std1 is added to get
2314 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2315 array size at least. It's necessary to write '\x00'==0 to get something
2316 that's true only with -std1. */
2317 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2319 int test (int i, double x);
2320 struct s1 {int (*f) (int a);};
2321 struct s2 {int (*f) (double a);};
2322 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2323 int argc;
2324 char **argv;
2326 main ()
2328 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2330 return 0;
2332 _ACEOF
2333 # Don't try gcc -ansi; that turns off useful extensions and
2334 # breaks some systems' header files.
2335 # AIX -qlanglvl=ansi
2336 # Ultrix and OSF/1 -std1
2337 # HP-UX 10.20 and later -Ae
2338 # HP-UX older versions -Aa -D_HPUX_SOURCE
2339 # SVR4 -Xc -D__EXTENSIONS__
2340 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2342 CC="$ac_save_CC $ac_arg"
2343 rm -f conftest.$ac_objext
2344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2345 (eval $ac_compile) 2>conftest.er1
2346 ac_status=$?
2347 grep -v '^ *+' conftest.er1 >conftest.err
2348 rm -f conftest.er1
2349 cat conftest.err >&5
2350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351 (exit $ac_status); } &&
2352 { ac_try='test -z "$ac_c_werror_flag"
2353 || test ! -s conftest.err'
2354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2355 (eval $ac_try) 2>&5
2356 ac_status=$?
2357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358 (exit $ac_status); }; } &&
2359 { ac_try='test -s conftest.$ac_objext'
2360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2361 (eval $ac_try) 2>&5
2362 ac_status=$?
2363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2364 (exit $ac_status); }; }; then
2365 ac_cv_prog_cc_stdc=$ac_arg
2366 break
2367 else
2368 echo "$as_me: failed program was:" >&5
2369 sed 's/^/| /' conftest.$ac_ext >&5
2372 rm -f conftest.err conftest.$ac_objext
2373 done
2374 rm -f conftest.$ac_ext conftest.$ac_objext
2375 CC=$ac_save_CC
2379 case "x$ac_cv_prog_cc_stdc" in
2380 x|xno)
2381 echo "$as_me:$LINENO: result: none needed" >&5
2382 echo "${ECHO_T}none needed" >&6 ;;
2384 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2385 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2386 CC="$CC $ac_cv_prog_cc_stdc" ;;
2387 esac
2389 # Some people use a C++ compiler to compile C. Since we use `exit',
2390 # in C++ we need to declare it. In case someone uses the same compiler
2391 # for both compiling C and C++ we need to have the C++ compiler decide
2392 # the declaration of exit, since it's the most demanding environment.
2393 cat >conftest.$ac_ext <<_ACEOF
2394 #ifndef __cplusplus
2395 choke me
2396 #endif
2397 _ACEOF
2398 rm -f conftest.$ac_objext
2399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2400 (eval $ac_compile) 2>conftest.er1
2401 ac_status=$?
2402 grep -v '^ *+' conftest.er1 >conftest.err
2403 rm -f conftest.er1
2404 cat conftest.err >&5
2405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406 (exit $ac_status); } &&
2407 { ac_try='test -z "$ac_c_werror_flag"
2408 || test ! -s conftest.err'
2409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2410 (eval $ac_try) 2>&5
2411 ac_status=$?
2412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413 (exit $ac_status); }; } &&
2414 { ac_try='test -s conftest.$ac_objext'
2415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2416 (eval $ac_try) 2>&5
2417 ac_status=$?
2418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419 (exit $ac_status); }; }; then
2420 for ac_declaration in \
2421 '' \
2422 'extern "C" void std::exit (int) throw (); using std::exit;' \
2423 'extern "C" void std::exit (int); using std::exit;' \
2424 'extern "C" void exit (int) throw ();' \
2425 'extern "C" void exit (int);' \
2426 'void exit (int);'
2428 cat >conftest.$ac_ext <<_ACEOF
2429 /* confdefs.h. */
2430 _ACEOF
2431 cat confdefs.h >>conftest.$ac_ext
2432 cat >>conftest.$ac_ext <<_ACEOF
2433 /* end confdefs.h. */
2434 $ac_declaration
2435 #include <stdlib.h>
2437 main ()
2439 exit (42);
2441 return 0;
2443 _ACEOF
2444 rm -f conftest.$ac_objext
2445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2446 (eval $ac_compile) 2>conftest.er1
2447 ac_status=$?
2448 grep -v '^ *+' conftest.er1 >conftest.err
2449 rm -f conftest.er1
2450 cat conftest.err >&5
2451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452 (exit $ac_status); } &&
2453 { ac_try='test -z "$ac_c_werror_flag"
2454 || test ! -s conftest.err'
2455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2456 (eval $ac_try) 2>&5
2457 ac_status=$?
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); }; } &&
2460 { ac_try='test -s conftest.$ac_objext'
2461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2462 (eval $ac_try) 2>&5
2463 ac_status=$?
2464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465 (exit $ac_status); }; }; then
2467 else
2468 echo "$as_me: failed program was:" >&5
2469 sed 's/^/| /' conftest.$ac_ext >&5
2471 continue
2473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2474 cat >conftest.$ac_ext <<_ACEOF
2475 /* confdefs.h. */
2476 _ACEOF
2477 cat confdefs.h >>conftest.$ac_ext
2478 cat >>conftest.$ac_ext <<_ACEOF
2479 /* end confdefs.h. */
2480 $ac_declaration
2482 main ()
2484 exit (42);
2486 return 0;
2488 _ACEOF
2489 rm -f conftest.$ac_objext
2490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2491 (eval $ac_compile) 2>conftest.er1
2492 ac_status=$?
2493 grep -v '^ *+' conftest.er1 >conftest.err
2494 rm -f conftest.er1
2495 cat conftest.err >&5
2496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497 (exit $ac_status); } &&
2498 { ac_try='test -z "$ac_c_werror_flag"
2499 || test ! -s conftest.err'
2500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2501 (eval $ac_try) 2>&5
2502 ac_status=$?
2503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504 (exit $ac_status); }; } &&
2505 { ac_try='test -s conftest.$ac_objext'
2506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2507 (eval $ac_try) 2>&5
2508 ac_status=$?
2509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510 (exit $ac_status); }; }; then
2511 break
2512 else
2513 echo "$as_me: failed program was:" >&5
2514 sed 's/^/| /' conftest.$ac_ext >&5
2517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2518 done
2519 rm -f conftest*
2520 if test -n "$ac_declaration"; then
2521 echo '#ifdef __cplusplus' >>confdefs.h
2522 echo $ac_declaration >>confdefs.h
2523 echo '#endif' >>confdefs.h
2526 else
2527 echo "$as_me: failed program was:" >&5
2528 sed 's/^/| /' conftest.$ac_ext >&5
2531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2532 ac_ext=c
2533 ac_cpp='$CPP $CPPFLAGS'
2534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2539 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2540 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2541 if test "${ac_cv_search_strerror+set}" = set; then
2542 echo $ECHO_N "(cached) $ECHO_C" >&6
2543 else
2544 ac_func_search_save_LIBS=$LIBS
2545 ac_cv_search_strerror=no
2546 cat >conftest.$ac_ext <<_ACEOF
2547 /* confdefs.h. */
2548 _ACEOF
2549 cat confdefs.h >>conftest.$ac_ext
2550 cat >>conftest.$ac_ext <<_ACEOF
2551 /* end confdefs.h. */
2553 /* Override any gcc2 internal prototype to avoid an error. */
2554 #ifdef __cplusplus
2555 extern "C"
2556 #endif
2557 /* We use char because int might match the return type of a gcc2
2558 builtin and then its argument prototype would still apply. */
2559 char strerror ();
2561 main ()
2563 strerror ();
2565 return 0;
2567 _ACEOF
2568 rm -f conftest.$ac_objext conftest$ac_exeext
2569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2570 (eval $ac_link) 2>conftest.er1
2571 ac_status=$?
2572 grep -v '^ *+' conftest.er1 >conftest.err
2573 rm -f conftest.er1
2574 cat conftest.err >&5
2575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576 (exit $ac_status); } &&
2577 { ac_try='test -z "$ac_c_werror_flag"
2578 || test ! -s conftest.err'
2579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2580 (eval $ac_try) 2>&5
2581 ac_status=$?
2582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583 (exit $ac_status); }; } &&
2584 { ac_try='test -s conftest$ac_exeext'
2585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2586 (eval $ac_try) 2>&5
2587 ac_status=$?
2588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589 (exit $ac_status); }; }; then
2590 ac_cv_search_strerror="none required"
2591 else
2592 echo "$as_me: failed program was:" >&5
2593 sed 's/^/| /' conftest.$ac_ext >&5
2596 rm -f conftest.err conftest.$ac_objext \
2597 conftest$ac_exeext conftest.$ac_ext
2598 if test "$ac_cv_search_strerror" = no; then
2599 for ac_lib in cposix; do
2600 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2601 cat >conftest.$ac_ext <<_ACEOF
2602 /* confdefs.h. */
2603 _ACEOF
2604 cat confdefs.h >>conftest.$ac_ext
2605 cat >>conftest.$ac_ext <<_ACEOF
2606 /* end confdefs.h. */
2608 /* Override any gcc2 internal prototype to avoid an error. */
2609 #ifdef __cplusplus
2610 extern "C"
2611 #endif
2612 /* We use char because int might match the return type of a gcc2
2613 builtin and then its argument prototype would still apply. */
2614 char strerror ();
2616 main ()
2618 strerror ();
2620 return 0;
2622 _ACEOF
2623 rm -f conftest.$ac_objext conftest$ac_exeext
2624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2625 (eval $ac_link) 2>conftest.er1
2626 ac_status=$?
2627 grep -v '^ *+' conftest.er1 >conftest.err
2628 rm -f conftest.er1
2629 cat conftest.err >&5
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); } &&
2632 { ac_try='test -z "$ac_c_werror_flag"
2633 || test ! -s conftest.err'
2634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2635 (eval $ac_try) 2>&5
2636 ac_status=$?
2637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638 (exit $ac_status); }; } &&
2639 { ac_try='test -s conftest$ac_exeext'
2640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2641 (eval $ac_try) 2>&5
2642 ac_status=$?
2643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644 (exit $ac_status); }; }; then
2645 ac_cv_search_strerror="-l$ac_lib"
2646 break
2647 else
2648 echo "$as_me: failed program was:" >&5
2649 sed 's/^/| /' conftest.$ac_ext >&5
2652 rm -f conftest.err conftest.$ac_objext \
2653 conftest$ac_exeext conftest.$ac_ext
2654 done
2656 LIBS=$ac_func_search_save_LIBS
2658 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2659 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2660 if test "$ac_cv_search_strerror" != no; then
2661 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2666 # We currently only use the version number for the name of any shared
2667 # library. For user convenience, we always use the same version
2668 # number that BFD is using.
2669 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2671 am__api_version="1.9"
2672 # Find a good install program. We prefer a C program (faster),
2673 # so one script is as good as another. But avoid the broken or
2674 # incompatible versions:
2675 # SysV /etc/install, /usr/sbin/install
2676 # SunOS /usr/etc/install
2677 # IRIX /sbin/install
2678 # AIX /bin/install
2679 # AmigaOS /C/install, which installs bootblocks on floppy discs
2680 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2681 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2682 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2683 # OS/2's system install, which has a completely different semantic
2684 # ./install, which can be erroneously created by make from ./install.sh.
2685 # Reject install programs that cannot install multiple files.
2686 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2687 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2688 if test -z "$INSTALL"; then
2689 if test "${ac_cv_path_install+set}" = set; then
2690 echo $ECHO_N "(cached) $ECHO_C" >&6
2691 else
2692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2693 for as_dir in $PATH
2695 IFS=$as_save_IFS
2696 test -z "$as_dir" && as_dir=.
2697 # Account for people who put trailing slashes in PATH elements.
2698 case $as_dir/ in
2699 ./ | .// | /cC/* | \
2700 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2701 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2702 /usr/ucb/* ) ;;
2704 # OSF1 and SCO ODT 3.0 have their own names for install.
2705 # Don't use installbsd from OSF since it installs stuff as root
2706 # by default.
2707 for ac_prog in ginstall scoinst install; do
2708 for ac_exec_ext in '' $ac_executable_extensions; do
2709 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2710 if test $ac_prog = install &&
2711 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2712 # AIX install. It has an incompatible calling convention.
2714 elif test $ac_prog = install &&
2715 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2716 # program-specific install script used by HP pwplus--don't use.
2718 else
2719 rm -rf conftest.one conftest.two conftest.dir
2720 echo one > conftest.one
2721 echo two > conftest.two
2722 mkdir conftest.dir
2723 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2724 test -s conftest.one && test -s conftest.two &&
2725 test -s conftest.dir/conftest.one &&
2726 test -s conftest.dir/conftest.two
2727 then
2728 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2729 break 3
2733 done
2734 done
2736 esac
2737 done
2739 rm -rf conftest.one conftest.two conftest.dir
2742 if test "${ac_cv_path_install+set}" = set; then
2743 INSTALL=$ac_cv_path_install
2744 else
2745 # As a last resort, use the slow shell script. Don't cache a
2746 # value for INSTALL within a source directory, because that will
2747 # break other packages using the cache if that directory is
2748 # removed, or if the value is a relative name.
2749 INSTALL=$ac_install_sh
2752 echo "$as_me:$LINENO: result: $INSTALL" >&5
2753 echo "${ECHO_T}$INSTALL" >&6
2755 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2756 # It thinks the first close brace ends the variable substitution.
2757 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2759 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2761 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2763 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2764 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2765 # Just in case
2766 sleep 1
2767 echo timestamp > conftest.file
2768 # Do `set' in a subshell so we don't clobber the current shell's
2769 # arguments. Must try -L first in case configure is actually a
2770 # symlink; some systems play weird games with the mod time of symlinks
2771 # (eg FreeBSD returns the mod time of the symlink's containing
2772 # directory).
2773 if (
2774 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2775 if test "$*" = "X"; then
2776 # -L didn't work.
2777 set X `ls -t $srcdir/configure conftest.file`
2779 rm -f conftest.file
2780 if test "$*" != "X $srcdir/configure conftest.file" \
2781 && test "$*" != "X conftest.file $srcdir/configure"; then
2783 # If neither matched, then we have a broken ls. This can happen
2784 # if, for instance, CONFIG_SHELL is bash and it inherits a
2785 # broken ls alias from the environment. This has actually
2786 # happened. Such a system could not be considered "sane".
2787 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2788 alias in your environment" >&5
2789 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2790 alias in your environment" >&2;}
2791 { (exit 1); exit 1; }; }
2794 test "$2" = conftest.file
2796 then
2797 # Ok.
2799 else
2800 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2801 Check your system clock" >&5
2802 echo "$as_me: error: newly created file is older than distributed files!
2803 Check your system clock" >&2;}
2804 { (exit 1); exit 1; }; }
2806 echo "$as_me:$LINENO: result: yes" >&5
2807 echo "${ECHO_T}yes" >&6
2808 test "$program_prefix" != NONE &&
2809 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2810 # Use a double $ so make ignores it.
2811 test "$program_suffix" != NONE &&
2812 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2813 # Double any \ or $. echo might interpret backslashes.
2814 # By default was `s,x,x', remove it if useless.
2815 cat <<\_ACEOF >conftest.sed
2816 s/[\\$]/&&/g;s/;s,x,x,$//
2817 _ACEOF
2818 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2819 rm conftest.sed
2821 # expand $ac_aux_dir to an absolute path
2822 am_aux_dir=`cd $ac_aux_dir && pwd`
2824 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2825 # Use eval to expand $SHELL
2826 if eval "$MISSING --run true"; then
2827 am_missing_run="$MISSING --run "
2828 else
2829 am_missing_run=
2830 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2831 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2834 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2835 # We used to keeping the `.' as first argument, in order to
2836 # allow $(mkdir_p) to be used without argument. As in
2837 # $(mkdir_p) $(somedir)
2838 # where $(somedir) is conditionally defined. However this is wrong
2839 # for two reasons:
2840 # 1. if the package is installed by a user who cannot write `.'
2841 # make install will fail,
2842 # 2. the above comment should most certainly read
2843 # $(mkdir_p) $(DESTDIR)$(somedir)
2844 # so it does not work when $(somedir) is undefined and
2845 # $(DESTDIR) is not.
2846 # To support the latter case, we have to write
2847 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2848 # so the `.' trick is pointless.
2849 mkdir_p='mkdir -p --'
2850 else
2851 # On NextStep and OpenStep, the `mkdir' command does not
2852 # recognize any option. It will interpret all options as
2853 # directories to create, and then abort because `.' already
2854 # exists.
2855 for d in ./-p ./--version;
2857 test -d $d && rmdir $d
2858 done
2859 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2860 if test -f "$ac_aux_dir/mkinstalldirs"; then
2861 mkdir_p='$(mkinstalldirs)'
2862 else
2863 mkdir_p='$(install_sh) -d'
2867 for ac_prog in gawk mawk nawk awk
2869 # Extract the first word of "$ac_prog", so it can be a program name with args.
2870 set dummy $ac_prog; ac_word=$2
2871 echo "$as_me:$LINENO: checking for $ac_word" >&5
2872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2873 if test "${ac_cv_prog_AWK+set}" = set; then
2874 echo $ECHO_N "(cached) $ECHO_C" >&6
2875 else
2876 if test -n "$AWK"; then
2877 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2878 else
2879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2880 for as_dir in $PATH
2882 IFS=$as_save_IFS
2883 test -z "$as_dir" && as_dir=.
2884 for ac_exec_ext in '' $ac_executable_extensions; do
2885 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2886 ac_cv_prog_AWK="$ac_prog"
2887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2888 break 2
2890 done
2891 done
2895 AWK=$ac_cv_prog_AWK
2896 if test -n "$AWK"; then
2897 echo "$as_me:$LINENO: result: $AWK" >&5
2898 echo "${ECHO_T}$AWK" >&6
2899 else
2900 echo "$as_me:$LINENO: result: no" >&5
2901 echo "${ECHO_T}no" >&6
2904 test -n "$AWK" && break
2905 done
2907 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2908 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2909 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2910 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2911 echo $ECHO_N "(cached) $ECHO_C" >&6
2912 else
2913 cat >conftest.make <<\_ACEOF
2914 all:
2915 @echo 'ac_maketemp="$(MAKE)"'
2916 _ACEOF
2917 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2918 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2919 if test -n "$ac_maketemp"; then
2920 eval ac_cv_prog_make_${ac_make}_set=yes
2921 else
2922 eval ac_cv_prog_make_${ac_make}_set=no
2924 rm -f conftest.make
2926 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2927 echo "$as_me:$LINENO: result: yes" >&5
2928 echo "${ECHO_T}yes" >&6
2929 SET_MAKE=
2930 else
2931 echo "$as_me:$LINENO: result: no" >&5
2932 echo "${ECHO_T}no" >&6
2933 SET_MAKE="MAKE=${MAKE-make}"
2936 rm -rf .tst 2>/dev/null
2937 mkdir .tst 2>/dev/null
2938 if test -d .tst; then
2939 am__leading_dot=.
2940 else
2941 am__leading_dot=_
2943 rmdir .tst 2>/dev/null
2945 DEPDIR="${am__leading_dot}deps"
2947 ac_config_commands="$ac_config_commands depfiles"
2950 am_make=${MAKE-make}
2951 cat > confinc << 'END'
2952 am__doit:
2953 @echo done
2954 .PHONY: am__doit
2956 # If we don't find an include directive, just comment out the code.
2957 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2958 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2959 am__include="#"
2960 am__quote=
2961 _am_result=none
2962 # First try GNU make style include.
2963 echo "include confinc" > confmf
2964 # We grep out `Entering directory' and `Leaving directory'
2965 # messages which can occur if `w' ends up in MAKEFLAGS.
2966 # In particular we don't look at `^make:' because GNU make might
2967 # be invoked under some other name (usually "gmake"), in which
2968 # case it prints its new name instead of `make'.
2969 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2970 am__include=include
2971 am__quote=
2972 _am_result=GNU
2974 # Now try BSD make style include.
2975 if test "$am__include" = "#"; then
2976 echo '.include "confinc"' > confmf
2977 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2978 am__include=.include
2979 am__quote="\""
2980 _am_result=BSD
2985 echo "$as_me:$LINENO: result: $_am_result" >&5
2986 echo "${ECHO_T}$_am_result" >&6
2987 rm -f confinc confmf
2989 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2990 if test "${enable_dependency_tracking+set}" = set; then
2991 enableval="$enable_dependency_tracking"
2994 if test "x$enable_dependency_tracking" != xno; then
2995 am_depcomp="$ac_aux_dir/depcomp"
2996 AMDEPBACKSLASH='\'
3000 if test "x$enable_dependency_tracking" != xno; then
3001 AMDEP_TRUE=
3002 AMDEP_FALSE='#'
3003 else
3004 AMDEP_TRUE='#'
3005 AMDEP_FALSE=
3010 # test to see if srcdir already configured
3011 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3012 test -f $srcdir/config.status; then
3013 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3014 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3015 { (exit 1); exit 1; }; }
3018 # test whether we have cygpath
3019 if test -z "$CYGPATH_W"; then
3020 if (cygpath --version) >/dev/null 2>/dev/null; then
3021 CYGPATH_W='cygpath -w'
3022 else
3023 CYGPATH_W=echo
3028 # Define the identity of the package.
3029 PACKAGE=opcodes
3030 VERSION=${BFD_VERSION}
3033 cat >>confdefs.h <<_ACEOF
3034 #define PACKAGE "$PACKAGE"
3035 _ACEOF
3038 cat >>confdefs.h <<_ACEOF
3039 #define VERSION "$VERSION"
3040 _ACEOF
3042 # Some tools Automake needs.
3044 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3047 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3050 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3053 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3056 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3058 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3060 # Installed binaries are usually stripped using `strip' when the user
3061 # run `make install-strip'. However `strip' might not be the right
3062 # tool to use in cross-compilation environments, therefore Automake
3063 # will honor the `STRIP' environment variable to overrule this program.
3064 if test "$cross_compiling" != no; then
3065 if test -n "$ac_tool_prefix"; then
3066 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3067 set dummy ${ac_tool_prefix}strip; ac_word=$2
3068 echo "$as_me:$LINENO: checking for $ac_word" >&5
3069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3070 if test "${ac_cv_prog_STRIP+set}" = set; then
3071 echo $ECHO_N "(cached) $ECHO_C" >&6
3072 else
3073 if test -n "$STRIP"; then
3074 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3075 else
3076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3077 for as_dir in $PATH
3079 IFS=$as_save_IFS
3080 test -z "$as_dir" && as_dir=.
3081 for ac_exec_ext in '' $ac_executable_extensions; do
3082 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3083 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3085 break 2
3087 done
3088 done
3092 STRIP=$ac_cv_prog_STRIP
3093 if test -n "$STRIP"; then
3094 echo "$as_me:$LINENO: result: $STRIP" >&5
3095 echo "${ECHO_T}$STRIP" >&6
3096 else
3097 echo "$as_me:$LINENO: result: no" >&5
3098 echo "${ECHO_T}no" >&6
3102 if test -z "$ac_cv_prog_STRIP"; then
3103 ac_ct_STRIP=$STRIP
3104 # Extract the first word of "strip", so it can be a program name with args.
3105 set dummy strip; ac_word=$2
3106 echo "$as_me:$LINENO: checking for $ac_word" >&5
3107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3108 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3109 echo $ECHO_N "(cached) $ECHO_C" >&6
3110 else
3111 if test -n "$ac_ct_STRIP"; then
3112 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3113 else
3114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3115 for as_dir in $PATH
3117 IFS=$as_save_IFS
3118 test -z "$as_dir" && as_dir=.
3119 for ac_exec_ext in '' $ac_executable_extensions; do
3120 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3121 ac_cv_prog_ac_ct_STRIP="strip"
3122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3123 break 2
3125 done
3126 done
3128 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3131 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3132 if test -n "$ac_ct_STRIP"; then
3133 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3134 echo "${ECHO_T}$ac_ct_STRIP" >&6
3135 else
3136 echo "$as_me:$LINENO: result: no" >&5
3137 echo "${ECHO_T}no" >&6
3140 STRIP=$ac_ct_STRIP
3141 else
3142 STRIP="$ac_cv_prog_STRIP"
3146 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3148 # We need awk for the "check" target. The system "awk" is bad on
3149 # some platforms.
3150 # Always define AMTAR for backward compatibility.
3152 AMTAR=${AMTAR-"${am_missing_run}tar"}
3154 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3159 depcc="$CC" am_compiler_list=
3161 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3162 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3163 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3164 echo $ECHO_N "(cached) $ECHO_C" >&6
3165 else
3166 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3167 # We make a subdir and do the tests there. Otherwise we can end up
3168 # making bogus files that we don't know about and never remove. For
3169 # instance it was reported that on HP-UX the gcc test will end up
3170 # making a dummy file named `D' -- because `-MD' means `put the output
3171 # in D'.
3172 mkdir conftest.dir
3173 # Copy depcomp to subdir because otherwise we won't find it if we're
3174 # using a relative directory.
3175 cp "$am_depcomp" conftest.dir
3176 cd conftest.dir
3177 # We will build objects and dependencies in a subdirectory because
3178 # it helps to detect inapplicable dependency modes. For instance
3179 # both Tru64's cc and ICC support -MD to output dependencies as a
3180 # side effect of compilation, but ICC will put the dependencies in
3181 # the current directory while Tru64 will put them in the object
3182 # directory.
3183 mkdir sub
3185 am_cv_CC_dependencies_compiler_type=none
3186 if test "$am_compiler_list" = ""; then
3187 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3189 for depmode in $am_compiler_list; do
3190 # Setup a source with many dependencies, because some compilers
3191 # like to wrap large dependency lists on column 80 (with \), and
3192 # we should not choose a depcomp mode which is confused by this.
3194 # We need to recreate these files for each test, as the compiler may
3195 # overwrite some of them when testing with obscure command lines.
3196 # This happens at least with the AIX C compiler.
3197 : > sub/conftest.c
3198 for i in 1 2 3 4 5 6; do
3199 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3200 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3201 # Solaris 8's {/usr,}/bin/sh.
3202 touch sub/conftst$i.h
3203 done
3204 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3206 case $depmode in
3207 nosideeffect)
3208 # after this tag, mechanisms are not by side-effect, so they'll
3209 # only be used when explicitly requested
3210 if test "x$enable_dependency_tracking" = xyes; then
3211 continue
3212 else
3213 break
3216 none) break ;;
3217 esac
3218 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3219 # mode. It turns out that the SunPro C++ compiler does not properly
3220 # handle `-M -o', and we need to detect this.
3221 if depmode=$depmode \
3222 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3223 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3224 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3225 >/dev/null 2>conftest.err &&
3226 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3227 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3228 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3229 # icc doesn't choke on unknown options, it will just issue warnings
3230 # or remarks (even with -Werror). So we grep stderr for any message
3231 # that says an option was ignored or not supported.
3232 # When given -MP, icc 7.0 and 7.1 complain thusly:
3233 # icc: Command line warning: ignoring option '-M'; no argument required
3234 # The diagnosis changed in icc 8.0:
3235 # icc: Command line remark: option '-MP' not supported
3236 if (grep 'ignoring option' conftest.err ||
3237 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3238 am_cv_CC_dependencies_compiler_type=$depmode
3239 break
3242 done
3244 cd ..
3245 rm -rf conftest.dir
3246 else
3247 am_cv_CC_dependencies_compiler_type=none
3251 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3252 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3253 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3258 test "x$enable_dependency_tracking" != xno \
3259 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3260 am__fastdepCC_TRUE=
3261 am__fastdepCC_FALSE='#'
3262 else
3263 am__fastdepCC_TRUE='#'
3264 am__fastdepCC_FALSE=
3270 ac_ext=c
3271 ac_cpp='$CPP $CPPFLAGS'
3272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3275 if test -n "$ac_tool_prefix"; then
3276 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3277 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3278 echo "$as_me:$LINENO: checking for $ac_word" >&5
3279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3280 if test "${ac_cv_prog_CC+set}" = set; then
3281 echo $ECHO_N "(cached) $ECHO_C" >&6
3282 else
3283 if test -n "$CC"; then
3284 ac_cv_prog_CC="$CC" # Let the user override the test.
3285 else
3286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3287 for as_dir in $PATH
3289 IFS=$as_save_IFS
3290 test -z "$as_dir" && as_dir=.
3291 for ac_exec_ext in '' $ac_executable_extensions; do
3292 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3293 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3295 break 2
3297 done
3298 done
3302 CC=$ac_cv_prog_CC
3303 if test -n "$CC"; then
3304 echo "$as_me:$LINENO: result: $CC" >&5
3305 echo "${ECHO_T}$CC" >&6
3306 else
3307 echo "$as_me:$LINENO: result: no" >&5
3308 echo "${ECHO_T}no" >&6
3312 if test -z "$ac_cv_prog_CC"; then
3313 ac_ct_CC=$CC
3314 # Extract the first word of "gcc", so it can be a program name with args.
3315 set dummy gcc; ac_word=$2
3316 echo "$as_me:$LINENO: checking for $ac_word" >&5
3317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3318 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3319 echo $ECHO_N "(cached) $ECHO_C" >&6
3320 else
3321 if test -n "$ac_ct_CC"; then
3322 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3323 else
3324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3325 for as_dir in $PATH
3327 IFS=$as_save_IFS
3328 test -z "$as_dir" && as_dir=.
3329 for ac_exec_ext in '' $ac_executable_extensions; do
3330 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3331 ac_cv_prog_ac_ct_CC="gcc"
3332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3333 break 2
3335 done
3336 done
3340 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3341 if test -n "$ac_ct_CC"; then
3342 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3343 echo "${ECHO_T}$ac_ct_CC" >&6
3344 else
3345 echo "$as_me:$LINENO: result: no" >&5
3346 echo "${ECHO_T}no" >&6
3349 CC=$ac_ct_CC
3350 else
3351 CC="$ac_cv_prog_CC"
3354 if test -z "$CC"; then
3355 if test -n "$ac_tool_prefix"; then
3356 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3357 set dummy ${ac_tool_prefix}cc; ac_word=$2
3358 echo "$as_me:$LINENO: checking for $ac_word" >&5
3359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3360 if test "${ac_cv_prog_CC+set}" = set; then
3361 echo $ECHO_N "(cached) $ECHO_C" >&6
3362 else
3363 if test -n "$CC"; then
3364 ac_cv_prog_CC="$CC" # Let the user override the test.
3365 else
3366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3367 for as_dir in $PATH
3369 IFS=$as_save_IFS
3370 test -z "$as_dir" && as_dir=.
3371 for ac_exec_ext in '' $ac_executable_extensions; do
3372 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3373 ac_cv_prog_CC="${ac_tool_prefix}cc"
3374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3375 break 2
3377 done
3378 done
3382 CC=$ac_cv_prog_CC
3383 if test -n "$CC"; then
3384 echo "$as_me:$LINENO: result: $CC" >&5
3385 echo "${ECHO_T}$CC" >&6
3386 else
3387 echo "$as_me:$LINENO: result: no" >&5
3388 echo "${ECHO_T}no" >&6
3392 if test -z "$ac_cv_prog_CC"; then
3393 ac_ct_CC=$CC
3394 # Extract the first word of "cc", so it can be a program name with args.
3395 set dummy cc; ac_word=$2
3396 echo "$as_me:$LINENO: checking for $ac_word" >&5
3397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3398 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3399 echo $ECHO_N "(cached) $ECHO_C" >&6
3400 else
3401 if test -n "$ac_ct_CC"; then
3402 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3403 else
3404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3405 for as_dir in $PATH
3407 IFS=$as_save_IFS
3408 test -z "$as_dir" && as_dir=.
3409 for ac_exec_ext in '' $ac_executable_extensions; do
3410 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3411 ac_cv_prog_ac_ct_CC="cc"
3412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3413 break 2
3415 done
3416 done
3420 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3421 if test -n "$ac_ct_CC"; then
3422 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3423 echo "${ECHO_T}$ac_ct_CC" >&6
3424 else
3425 echo "$as_me:$LINENO: result: no" >&5
3426 echo "${ECHO_T}no" >&6
3429 CC=$ac_ct_CC
3430 else
3431 CC="$ac_cv_prog_CC"
3435 if test -z "$CC"; then
3436 # Extract the first word of "cc", so it can be a program name with args.
3437 set dummy cc; ac_word=$2
3438 echo "$as_me:$LINENO: checking for $ac_word" >&5
3439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3440 if test "${ac_cv_prog_CC+set}" = set; then
3441 echo $ECHO_N "(cached) $ECHO_C" >&6
3442 else
3443 if test -n "$CC"; then
3444 ac_cv_prog_CC="$CC" # Let the user override the test.
3445 else
3446 ac_prog_rejected=no
3447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3448 for as_dir in $PATH
3450 IFS=$as_save_IFS
3451 test -z "$as_dir" && as_dir=.
3452 for ac_exec_ext in '' $ac_executable_extensions; do
3453 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3454 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3455 ac_prog_rejected=yes
3456 continue
3458 ac_cv_prog_CC="cc"
3459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3460 break 2
3462 done
3463 done
3465 if test $ac_prog_rejected = yes; then
3466 # We found a bogon in the path, so make sure we never use it.
3467 set dummy $ac_cv_prog_CC
3468 shift
3469 if test $# != 0; then
3470 # We chose a different compiler from the bogus one.
3471 # However, it has the same basename, so the bogon will be chosen
3472 # first if we set CC to just the basename; use the full file name.
3473 shift
3474 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3479 CC=$ac_cv_prog_CC
3480 if test -n "$CC"; then
3481 echo "$as_me:$LINENO: result: $CC" >&5
3482 echo "${ECHO_T}$CC" >&6
3483 else
3484 echo "$as_me:$LINENO: result: no" >&5
3485 echo "${ECHO_T}no" >&6
3489 if test -z "$CC"; then
3490 if test -n "$ac_tool_prefix"; then
3491 for ac_prog in cl
3493 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3494 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3495 echo "$as_me:$LINENO: checking for $ac_word" >&5
3496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3497 if test "${ac_cv_prog_CC+set}" = set; then
3498 echo $ECHO_N "(cached) $ECHO_C" >&6
3499 else
3500 if test -n "$CC"; then
3501 ac_cv_prog_CC="$CC" # Let the user override the test.
3502 else
3503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3504 for as_dir in $PATH
3506 IFS=$as_save_IFS
3507 test -z "$as_dir" && as_dir=.
3508 for ac_exec_ext in '' $ac_executable_extensions; do
3509 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3510 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3512 break 2
3514 done
3515 done
3519 CC=$ac_cv_prog_CC
3520 if test -n "$CC"; then
3521 echo "$as_me:$LINENO: result: $CC" >&5
3522 echo "${ECHO_T}$CC" >&6
3523 else
3524 echo "$as_me:$LINENO: result: no" >&5
3525 echo "${ECHO_T}no" >&6
3528 test -n "$CC" && break
3529 done
3531 if test -z "$CC"; then
3532 ac_ct_CC=$CC
3533 for ac_prog in cl
3535 # Extract the first word of "$ac_prog", so it can be a program name with args.
3536 set dummy $ac_prog; ac_word=$2
3537 echo "$as_me:$LINENO: checking for $ac_word" >&5
3538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3539 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3540 echo $ECHO_N "(cached) $ECHO_C" >&6
3541 else
3542 if test -n "$ac_ct_CC"; then
3543 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3544 else
3545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3546 for as_dir in $PATH
3548 IFS=$as_save_IFS
3549 test -z "$as_dir" && as_dir=.
3550 for ac_exec_ext in '' $ac_executable_extensions; do
3551 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3552 ac_cv_prog_ac_ct_CC="$ac_prog"
3553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3554 break 2
3556 done
3557 done
3561 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3562 if test -n "$ac_ct_CC"; then
3563 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3564 echo "${ECHO_T}$ac_ct_CC" >&6
3565 else
3566 echo "$as_me:$LINENO: result: no" >&5
3567 echo "${ECHO_T}no" >&6
3570 test -n "$ac_ct_CC" && break
3571 done
3573 CC=$ac_ct_CC
3579 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3580 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3581 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3582 See \`config.log' for more details." >&5
3583 echo "$as_me: error: no acceptable C compiler found in \$PATH
3584 See \`config.log' for more details." >&2;}
3585 { (exit 1); exit 1; }; }; }
3587 # Provide some information about the compiler.
3588 echo "$as_me:$LINENO:" \
3589 "checking for C compiler version" >&5
3590 ac_compiler=`set X $ac_compile; echo $2`
3591 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3592 (eval $ac_compiler --version </dev/null >&5) 2>&5
3593 ac_status=$?
3594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595 (exit $ac_status); }
3596 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3597 (eval $ac_compiler -v </dev/null >&5) 2>&5
3598 ac_status=$?
3599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600 (exit $ac_status); }
3601 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3602 (eval $ac_compiler -V </dev/null >&5) 2>&5
3603 ac_status=$?
3604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605 (exit $ac_status); }
3607 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3608 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3609 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3610 echo $ECHO_N "(cached) $ECHO_C" >&6
3611 else
3612 cat >conftest.$ac_ext <<_ACEOF
3613 /* confdefs.h. */
3614 _ACEOF
3615 cat confdefs.h >>conftest.$ac_ext
3616 cat >>conftest.$ac_ext <<_ACEOF
3617 /* end confdefs.h. */
3620 main ()
3622 #ifndef __GNUC__
3623 choke me
3624 #endif
3627 return 0;
3629 _ACEOF
3630 rm -f conftest.$ac_objext
3631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3632 (eval $ac_compile) 2>conftest.er1
3633 ac_status=$?
3634 grep -v '^ *+' conftest.er1 >conftest.err
3635 rm -f conftest.er1
3636 cat conftest.err >&5
3637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3638 (exit $ac_status); } &&
3639 { ac_try='test -z "$ac_c_werror_flag"
3640 || test ! -s conftest.err'
3641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3642 (eval $ac_try) 2>&5
3643 ac_status=$?
3644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645 (exit $ac_status); }; } &&
3646 { ac_try='test -s conftest.$ac_objext'
3647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3648 (eval $ac_try) 2>&5
3649 ac_status=$?
3650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3651 (exit $ac_status); }; }; then
3652 ac_compiler_gnu=yes
3653 else
3654 echo "$as_me: failed program was:" >&5
3655 sed 's/^/| /' conftest.$ac_ext >&5
3657 ac_compiler_gnu=no
3659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3660 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3663 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3664 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3665 GCC=`test $ac_compiler_gnu = yes && echo yes`
3666 ac_test_CFLAGS=${CFLAGS+set}
3667 ac_save_CFLAGS=$CFLAGS
3668 CFLAGS="-g"
3669 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3670 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3671 if test "${ac_cv_prog_cc_g+set}" = set; then
3672 echo $ECHO_N "(cached) $ECHO_C" >&6
3673 else
3674 cat >conftest.$ac_ext <<_ACEOF
3675 /* confdefs.h. */
3676 _ACEOF
3677 cat confdefs.h >>conftest.$ac_ext
3678 cat >>conftest.$ac_ext <<_ACEOF
3679 /* end confdefs.h. */
3682 main ()
3686 return 0;
3688 _ACEOF
3689 rm -f conftest.$ac_objext
3690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3691 (eval $ac_compile) 2>conftest.er1
3692 ac_status=$?
3693 grep -v '^ *+' conftest.er1 >conftest.err
3694 rm -f conftest.er1
3695 cat conftest.err >&5
3696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697 (exit $ac_status); } &&
3698 { ac_try='test -z "$ac_c_werror_flag"
3699 || test ! -s conftest.err'
3700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3701 (eval $ac_try) 2>&5
3702 ac_status=$?
3703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704 (exit $ac_status); }; } &&
3705 { ac_try='test -s conftest.$ac_objext'
3706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3707 (eval $ac_try) 2>&5
3708 ac_status=$?
3709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710 (exit $ac_status); }; }; then
3711 ac_cv_prog_cc_g=yes
3712 else
3713 echo "$as_me: failed program was:" >&5
3714 sed 's/^/| /' conftest.$ac_ext >&5
3716 ac_cv_prog_cc_g=no
3718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3720 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3721 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3722 if test "$ac_test_CFLAGS" = set; then
3723 CFLAGS=$ac_save_CFLAGS
3724 elif test $ac_cv_prog_cc_g = yes; then
3725 if test "$GCC" = yes; then
3726 CFLAGS="-g -O2"
3727 else
3728 CFLAGS="-g"
3730 else
3731 if test "$GCC" = yes; then
3732 CFLAGS="-O2"
3733 else
3734 CFLAGS=
3737 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3738 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3739 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3740 echo $ECHO_N "(cached) $ECHO_C" >&6
3741 else
3742 ac_cv_prog_cc_stdc=no
3743 ac_save_CC=$CC
3744 cat >conftest.$ac_ext <<_ACEOF
3745 /* confdefs.h. */
3746 _ACEOF
3747 cat confdefs.h >>conftest.$ac_ext
3748 cat >>conftest.$ac_ext <<_ACEOF
3749 /* end confdefs.h. */
3750 #include <stdarg.h>
3751 #include <stdio.h>
3752 #include <sys/types.h>
3753 #include <sys/stat.h>
3754 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3755 struct buf { int x; };
3756 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3757 static char *e (p, i)
3758 char **p;
3759 int i;
3761 return p[i];
3763 static char *f (char * (*g) (char **, int), char **p, ...)
3765 char *s;
3766 va_list v;
3767 va_start (v,p);
3768 s = g (p, va_arg (v,int));
3769 va_end (v);
3770 return s;
3773 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3774 function prototypes and stuff, but not '\xHH' hex character constants.
3775 These don't provoke an error unfortunately, instead are silently treated
3776 as 'x'. The following induces an error, until -std1 is added to get
3777 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3778 array size at least. It's necessary to write '\x00'==0 to get something
3779 that's true only with -std1. */
3780 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3782 int test (int i, double x);
3783 struct s1 {int (*f) (int a);};
3784 struct s2 {int (*f) (double a);};
3785 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3786 int argc;
3787 char **argv;
3789 main ()
3791 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3793 return 0;
3795 _ACEOF
3796 # Don't try gcc -ansi; that turns off useful extensions and
3797 # breaks some systems' header files.
3798 # AIX -qlanglvl=ansi
3799 # Ultrix and OSF/1 -std1
3800 # HP-UX 10.20 and later -Ae
3801 # HP-UX older versions -Aa -D_HPUX_SOURCE
3802 # SVR4 -Xc -D__EXTENSIONS__
3803 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3805 CC="$ac_save_CC $ac_arg"
3806 rm -f conftest.$ac_objext
3807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3808 (eval $ac_compile) 2>conftest.er1
3809 ac_status=$?
3810 grep -v '^ *+' conftest.er1 >conftest.err
3811 rm -f conftest.er1
3812 cat conftest.err >&5
3813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814 (exit $ac_status); } &&
3815 { ac_try='test -z "$ac_c_werror_flag"
3816 || test ! -s conftest.err'
3817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3818 (eval $ac_try) 2>&5
3819 ac_status=$?
3820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821 (exit $ac_status); }; } &&
3822 { ac_try='test -s conftest.$ac_objext'
3823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3824 (eval $ac_try) 2>&5
3825 ac_status=$?
3826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827 (exit $ac_status); }; }; then
3828 ac_cv_prog_cc_stdc=$ac_arg
3829 break
3830 else
3831 echo "$as_me: failed program was:" >&5
3832 sed 's/^/| /' conftest.$ac_ext >&5
3835 rm -f conftest.err conftest.$ac_objext
3836 done
3837 rm -f conftest.$ac_ext conftest.$ac_objext
3838 CC=$ac_save_CC
3842 case "x$ac_cv_prog_cc_stdc" in
3843 x|xno)
3844 echo "$as_me:$LINENO: result: none needed" >&5
3845 echo "${ECHO_T}none needed" >&6 ;;
3847 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3848 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3849 CC="$CC $ac_cv_prog_cc_stdc" ;;
3850 esac
3852 # Some people use a C++ compiler to compile C. Since we use `exit',
3853 # in C++ we need to declare it. In case someone uses the same compiler
3854 # for both compiling C and C++ we need to have the C++ compiler decide
3855 # the declaration of exit, since it's the most demanding environment.
3856 cat >conftest.$ac_ext <<_ACEOF
3857 #ifndef __cplusplus
3858 choke me
3859 #endif
3860 _ACEOF
3861 rm -f conftest.$ac_objext
3862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3863 (eval $ac_compile) 2>conftest.er1
3864 ac_status=$?
3865 grep -v '^ *+' conftest.er1 >conftest.err
3866 rm -f conftest.er1
3867 cat conftest.err >&5
3868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869 (exit $ac_status); } &&
3870 { ac_try='test -z "$ac_c_werror_flag"
3871 || test ! -s conftest.err'
3872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3873 (eval $ac_try) 2>&5
3874 ac_status=$?
3875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876 (exit $ac_status); }; } &&
3877 { ac_try='test -s conftest.$ac_objext'
3878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3879 (eval $ac_try) 2>&5
3880 ac_status=$?
3881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3882 (exit $ac_status); }; }; then
3883 for ac_declaration in \
3884 '' \
3885 'extern "C" void std::exit (int) throw (); using std::exit;' \
3886 'extern "C" void std::exit (int); using std::exit;' \
3887 'extern "C" void exit (int) throw ();' \
3888 'extern "C" void exit (int);' \
3889 'void exit (int);'
3891 cat >conftest.$ac_ext <<_ACEOF
3892 /* confdefs.h. */
3893 _ACEOF
3894 cat confdefs.h >>conftest.$ac_ext
3895 cat >>conftest.$ac_ext <<_ACEOF
3896 /* end confdefs.h. */
3897 $ac_declaration
3898 #include <stdlib.h>
3900 main ()
3902 exit (42);
3904 return 0;
3906 _ACEOF
3907 rm -f conftest.$ac_objext
3908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3909 (eval $ac_compile) 2>conftest.er1
3910 ac_status=$?
3911 grep -v '^ *+' conftest.er1 >conftest.err
3912 rm -f conftest.er1
3913 cat conftest.err >&5
3914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915 (exit $ac_status); } &&
3916 { ac_try='test -z "$ac_c_werror_flag"
3917 || test ! -s conftest.err'
3918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3919 (eval $ac_try) 2>&5
3920 ac_status=$?
3921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922 (exit $ac_status); }; } &&
3923 { ac_try='test -s conftest.$ac_objext'
3924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3925 (eval $ac_try) 2>&5
3926 ac_status=$?
3927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3928 (exit $ac_status); }; }; then
3930 else
3931 echo "$as_me: failed program was:" >&5
3932 sed 's/^/| /' conftest.$ac_ext >&5
3934 continue
3936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3937 cat >conftest.$ac_ext <<_ACEOF
3938 /* confdefs.h. */
3939 _ACEOF
3940 cat confdefs.h >>conftest.$ac_ext
3941 cat >>conftest.$ac_ext <<_ACEOF
3942 /* end confdefs.h. */
3943 $ac_declaration
3945 main ()
3947 exit (42);
3949 return 0;
3951 _ACEOF
3952 rm -f conftest.$ac_objext
3953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3954 (eval $ac_compile) 2>conftest.er1
3955 ac_status=$?
3956 grep -v '^ *+' conftest.er1 >conftest.err
3957 rm -f conftest.er1
3958 cat conftest.err >&5
3959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960 (exit $ac_status); } &&
3961 { ac_try='test -z "$ac_c_werror_flag"
3962 || test ! -s conftest.err'
3963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3964 (eval $ac_try) 2>&5
3965 ac_status=$?
3966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967 (exit $ac_status); }; } &&
3968 { ac_try='test -s conftest.$ac_objext'
3969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3970 (eval $ac_try) 2>&5
3971 ac_status=$?
3972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973 (exit $ac_status); }; }; then
3974 break
3975 else
3976 echo "$as_me: failed program was:" >&5
3977 sed 's/^/| /' conftest.$ac_ext >&5
3980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3981 done
3982 rm -f conftest*
3983 if test -n "$ac_declaration"; then
3984 echo '#ifdef __cplusplus' >>confdefs.h
3985 echo $ac_declaration >>confdefs.h
3986 echo '#endif' >>confdefs.h
3989 else
3990 echo "$as_me: failed program was:" >&5
3991 sed 's/^/| /' conftest.$ac_ext >&5
3994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3995 ac_ext=c
3996 ac_cpp='$CPP $CPPFLAGS'
3997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4002 cat >>confdefs.h <<\_ACEOF
4003 #define _GNU_SOURCE 1
4004 _ACEOF
4007 ac_ext=c
4008 ac_cpp='$CPP $CPPFLAGS'
4009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4012 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4013 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4014 # On Suns, sometimes $CPP names a directory.
4015 if test -n "$CPP" && test -d "$CPP"; then
4016 CPP=
4018 if test -z "$CPP"; then
4019 if test "${ac_cv_prog_CPP+set}" = set; then
4020 echo $ECHO_N "(cached) $ECHO_C" >&6
4021 else
4022 # Double quotes because CPP needs to be expanded
4023 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4025 ac_preproc_ok=false
4026 for ac_c_preproc_warn_flag in '' yes
4028 # Use a header file that comes with gcc, so configuring glibc
4029 # with a fresh cross-compiler works.
4030 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4031 # <limits.h> exists even on freestanding compilers.
4032 # On the NeXT, cc -E runs the code through the compiler's parser,
4033 # not just through cpp. "Syntax error" is here to catch this case.
4034 cat >conftest.$ac_ext <<_ACEOF
4035 /* confdefs.h. */
4036 _ACEOF
4037 cat confdefs.h >>conftest.$ac_ext
4038 cat >>conftest.$ac_ext <<_ACEOF
4039 /* end confdefs.h. */
4040 #ifdef __STDC__
4041 # include <limits.h>
4042 #else
4043 # include <assert.h>
4044 #endif
4045 Syntax error
4046 _ACEOF
4047 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4048 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4049 ac_status=$?
4050 grep -v '^ *+' conftest.er1 >conftest.err
4051 rm -f conftest.er1
4052 cat conftest.err >&5
4053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054 (exit $ac_status); } >/dev/null; then
4055 if test -s conftest.err; then
4056 ac_cpp_err=$ac_c_preproc_warn_flag
4057 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4058 else
4059 ac_cpp_err=
4061 else
4062 ac_cpp_err=yes
4064 if test -z "$ac_cpp_err"; then
4066 else
4067 echo "$as_me: failed program was:" >&5
4068 sed 's/^/| /' conftest.$ac_ext >&5
4070 # Broken: fails on valid input.
4071 continue
4073 rm -f conftest.err conftest.$ac_ext
4075 # OK, works on sane cases. Now check whether non-existent headers
4076 # can be detected and how.
4077 cat >conftest.$ac_ext <<_ACEOF
4078 /* confdefs.h. */
4079 _ACEOF
4080 cat confdefs.h >>conftest.$ac_ext
4081 cat >>conftest.$ac_ext <<_ACEOF
4082 /* end confdefs.h. */
4083 #include <ac_nonexistent.h>
4084 _ACEOF
4085 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4086 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4087 ac_status=$?
4088 grep -v '^ *+' conftest.er1 >conftest.err
4089 rm -f conftest.er1
4090 cat conftest.err >&5
4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092 (exit $ac_status); } >/dev/null; then
4093 if test -s conftest.err; then
4094 ac_cpp_err=$ac_c_preproc_warn_flag
4095 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4096 else
4097 ac_cpp_err=
4099 else
4100 ac_cpp_err=yes
4102 if test -z "$ac_cpp_err"; then
4103 # Broken: success on invalid input.
4104 continue
4105 else
4106 echo "$as_me: failed program was:" >&5
4107 sed 's/^/| /' conftest.$ac_ext >&5
4109 # Passes both tests.
4110 ac_preproc_ok=:
4111 break
4113 rm -f conftest.err conftest.$ac_ext
4115 done
4116 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4117 rm -f conftest.err conftest.$ac_ext
4118 if $ac_preproc_ok; then
4119 break
4122 done
4123 ac_cv_prog_CPP=$CPP
4126 CPP=$ac_cv_prog_CPP
4127 else
4128 ac_cv_prog_CPP=$CPP
4130 echo "$as_me:$LINENO: result: $CPP" >&5
4131 echo "${ECHO_T}$CPP" >&6
4132 ac_preproc_ok=false
4133 for ac_c_preproc_warn_flag in '' yes
4135 # Use a header file that comes with gcc, so configuring glibc
4136 # with a fresh cross-compiler works.
4137 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4138 # <limits.h> exists even on freestanding compilers.
4139 # On the NeXT, cc -E runs the code through the compiler's parser,
4140 # not just through cpp. "Syntax error" is here to catch this case.
4141 cat >conftest.$ac_ext <<_ACEOF
4142 /* confdefs.h. */
4143 _ACEOF
4144 cat confdefs.h >>conftest.$ac_ext
4145 cat >>conftest.$ac_ext <<_ACEOF
4146 /* end confdefs.h. */
4147 #ifdef __STDC__
4148 # include <limits.h>
4149 #else
4150 # include <assert.h>
4151 #endif
4152 Syntax error
4153 _ACEOF
4154 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4155 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4156 ac_status=$?
4157 grep -v '^ *+' conftest.er1 >conftest.err
4158 rm -f conftest.er1
4159 cat conftest.err >&5
4160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161 (exit $ac_status); } >/dev/null; then
4162 if test -s conftest.err; then
4163 ac_cpp_err=$ac_c_preproc_warn_flag
4164 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4165 else
4166 ac_cpp_err=
4168 else
4169 ac_cpp_err=yes
4171 if test -z "$ac_cpp_err"; then
4173 else
4174 echo "$as_me: failed program was:" >&5
4175 sed 's/^/| /' conftest.$ac_ext >&5
4177 # Broken: fails on valid input.
4178 continue
4180 rm -f conftest.err conftest.$ac_ext
4182 # OK, works on sane cases. Now check whether non-existent headers
4183 # can be detected and how.
4184 cat >conftest.$ac_ext <<_ACEOF
4185 /* confdefs.h. */
4186 _ACEOF
4187 cat confdefs.h >>conftest.$ac_ext
4188 cat >>conftest.$ac_ext <<_ACEOF
4189 /* end confdefs.h. */
4190 #include <ac_nonexistent.h>
4191 _ACEOF
4192 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4193 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4194 ac_status=$?
4195 grep -v '^ *+' conftest.er1 >conftest.err
4196 rm -f conftest.er1
4197 cat conftest.err >&5
4198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199 (exit $ac_status); } >/dev/null; then
4200 if test -s conftest.err; then
4201 ac_cpp_err=$ac_c_preproc_warn_flag
4202 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4203 else
4204 ac_cpp_err=
4206 else
4207 ac_cpp_err=yes
4209 if test -z "$ac_cpp_err"; then
4210 # Broken: success on invalid input.
4211 continue
4212 else
4213 echo "$as_me: failed program was:" >&5
4214 sed 's/^/| /' conftest.$ac_ext >&5
4216 # Passes both tests.
4217 ac_preproc_ok=:
4218 break
4220 rm -f conftest.err conftest.$ac_ext
4222 done
4223 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4224 rm -f conftest.err conftest.$ac_ext
4225 if $ac_preproc_ok; then
4227 else
4228 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4229 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4230 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4231 See \`config.log' for more details." >&5
4232 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4233 See \`config.log' for more details." >&2;}
4234 { (exit 1); exit 1; }; }; }
4237 ac_ext=c
4238 ac_cpp='$CPP $CPPFLAGS'
4239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4244 echo "$as_me:$LINENO: checking for egrep" >&5
4245 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4246 if test "${ac_cv_prog_egrep+set}" = set; then
4247 echo $ECHO_N "(cached) $ECHO_C" >&6
4248 else
4249 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4250 then ac_cv_prog_egrep='grep -E'
4251 else ac_cv_prog_egrep='egrep'
4254 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4255 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4256 EGREP=$ac_cv_prog_egrep
4259 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4260 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4261 if test "${ac_cv_header_stdc+set}" = set; then
4262 echo $ECHO_N "(cached) $ECHO_C" >&6
4263 else
4264 cat >conftest.$ac_ext <<_ACEOF
4265 /* confdefs.h. */
4266 _ACEOF
4267 cat confdefs.h >>conftest.$ac_ext
4268 cat >>conftest.$ac_ext <<_ACEOF
4269 /* end confdefs.h. */
4270 #include <stdlib.h>
4271 #include <stdarg.h>
4272 #include <string.h>
4273 #include <float.h>
4276 main ()
4280 return 0;
4282 _ACEOF
4283 rm -f conftest.$ac_objext
4284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4285 (eval $ac_compile) 2>conftest.er1
4286 ac_status=$?
4287 grep -v '^ *+' conftest.er1 >conftest.err
4288 rm -f conftest.er1
4289 cat conftest.err >&5
4290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291 (exit $ac_status); } &&
4292 { ac_try='test -z "$ac_c_werror_flag"
4293 || test ! -s conftest.err'
4294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4295 (eval $ac_try) 2>&5
4296 ac_status=$?
4297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298 (exit $ac_status); }; } &&
4299 { ac_try='test -s conftest.$ac_objext'
4300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4301 (eval $ac_try) 2>&5
4302 ac_status=$?
4303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304 (exit $ac_status); }; }; then
4305 ac_cv_header_stdc=yes
4306 else
4307 echo "$as_me: failed program was:" >&5
4308 sed 's/^/| /' conftest.$ac_ext >&5
4310 ac_cv_header_stdc=no
4312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4314 if test $ac_cv_header_stdc = yes; then
4315 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4316 cat >conftest.$ac_ext <<_ACEOF
4317 /* confdefs.h. */
4318 _ACEOF
4319 cat confdefs.h >>conftest.$ac_ext
4320 cat >>conftest.$ac_ext <<_ACEOF
4321 /* end confdefs.h. */
4322 #include <string.h>
4324 _ACEOF
4325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4326 $EGREP "memchr" >/dev/null 2>&1; then
4328 else
4329 ac_cv_header_stdc=no
4331 rm -f conftest*
4335 if test $ac_cv_header_stdc = yes; then
4336 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4337 cat >conftest.$ac_ext <<_ACEOF
4338 /* confdefs.h. */
4339 _ACEOF
4340 cat confdefs.h >>conftest.$ac_ext
4341 cat >>conftest.$ac_ext <<_ACEOF
4342 /* end confdefs.h. */
4343 #include <stdlib.h>
4345 _ACEOF
4346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4347 $EGREP "free" >/dev/null 2>&1; then
4349 else
4350 ac_cv_header_stdc=no
4352 rm -f conftest*
4356 if test $ac_cv_header_stdc = yes; then
4357 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4358 if test "$cross_compiling" = yes; then
4360 else
4361 cat >conftest.$ac_ext <<_ACEOF
4362 /* confdefs.h. */
4363 _ACEOF
4364 cat confdefs.h >>conftest.$ac_ext
4365 cat >>conftest.$ac_ext <<_ACEOF
4366 /* end confdefs.h. */
4367 #include <ctype.h>
4368 #if ((' ' & 0x0FF) == 0x020)
4369 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4370 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4371 #else
4372 # define ISLOWER(c) \
4373 (('a' <= (c) && (c) <= 'i') \
4374 || ('j' <= (c) && (c) <= 'r') \
4375 || ('s' <= (c) && (c) <= 'z'))
4376 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4377 #endif
4379 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4381 main ()
4383 int i;
4384 for (i = 0; i < 256; i++)
4385 if (XOR (islower (i), ISLOWER (i))
4386 || toupper (i) != TOUPPER (i))
4387 exit(2);
4388 exit (0);
4390 _ACEOF
4391 rm -f conftest$ac_exeext
4392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4393 (eval $ac_link) 2>&5
4394 ac_status=$?
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4398 (eval $ac_try) 2>&5
4399 ac_status=$?
4400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401 (exit $ac_status); }; }; then
4403 else
4404 echo "$as_me: program exited with status $ac_status" >&5
4405 echo "$as_me: failed program was:" >&5
4406 sed 's/^/| /' conftest.$ac_ext >&5
4408 ( exit $ac_status )
4409 ac_cv_header_stdc=no
4411 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4415 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4416 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4417 if test $ac_cv_header_stdc = yes; then
4419 cat >>confdefs.h <<\_ACEOF
4420 #define STDC_HEADERS 1
4421 _ACEOF
4425 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4435 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4436 inttypes.h stdint.h unistd.h
4438 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4439 echo "$as_me:$LINENO: checking for $ac_header" >&5
4440 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4441 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4442 echo $ECHO_N "(cached) $ECHO_C" >&6
4443 else
4444 cat >conftest.$ac_ext <<_ACEOF
4445 /* confdefs.h. */
4446 _ACEOF
4447 cat confdefs.h >>conftest.$ac_ext
4448 cat >>conftest.$ac_ext <<_ACEOF
4449 /* end confdefs.h. */
4450 $ac_includes_default
4452 #include <$ac_header>
4453 _ACEOF
4454 rm -f conftest.$ac_objext
4455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4456 (eval $ac_compile) 2>conftest.er1
4457 ac_status=$?
4458 grep -v '^ *+' conftest.er1 >conftest.err
4459 rm -f conftest.er1
4460 cat conftest.err >&5
4461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462 (exit $ac_status); } &&
4463 { ac_try='test -z "$ac_c_werror_flag"
4464 || test ! -s conftest.err'
4465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4466 (eval $ac_try) 2>&5
4467 ac_status=$?
4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469 (exit $ac_status); }; } &&
4470 { ac_try='test -s conftest.$ac_objext'
4471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4472 (eval $ac_try) 2>&5
4473 ac_status=$?
4474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475 (exit $ac_status); }; }; then
4476 eval "$as_ac_Header=yes"
4477 else
4478 echo "$as_me: failed program was:" >&5
4479 sed 's/^/| /' conftest.$ac_ext >&5
4481 eval "$as_ac_Header=no"
4483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4486 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4487 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4488 cat >>confdefs.h <<_ACEOF
4489 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4490 _ACEOF
4494 done
4498 if test "${ac_cv_header_minix_config_h+set}" = set; then
4499 echo "$as_me:$LINENO: checking for minix/config.h" >&5
4500 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4501 if test "${ac_cv_header_minix_config_h+set}" = set; then
4502 echo $ECHO_N "(cached) $ECHO_C" >&6
4504 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4505 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4506 else
4507 # Is the header compilable?
4508 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4509 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
4510 cat >conftest.$ac_ext <<_ACEOF
4511 /* confdefs.h. */
4512 _ACEOF
4513 cat confdefs.h >>conftest.$ac_ext
4514 cat >>conftest.$ac_ext <<_ACEOF
4515 /* end confdefs.h. */
4516 $ac_includes_default
4517 #include <minix/config.h>
4518 _ACEOF
4519 rm -f conftest.$ac_objext
4520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4521 (eval $ac_compile) 2>conftest.er1
4522 ac_status=$?
4523 grep -v '^ *+' conftest.er1 >conftest.err
4524 rm -f conftest.er1
4525 cat conftest.err >&5
4526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527 (exit $ac_status); } &&
4528 { ac_try='test -z "$ac_c_werror_flag"
4529 || test ! -s conftest.err'
4530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4531 (eval $ac_try) 2>&5
4532 ac_status=$?
4533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534 (exit $ac_status); }; } &&
4535 { ac_try='test -s conftest.$ac_objext'
4536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4537 (eval $ac_try) 2>&5
4538 ac_status=$?
4539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540 (exit $ac_status); }; }; then
4541 ac_header_compiler=yes
4542 else
4543 echo "$as_me: failed program was:" >&5
4544 sed 's/^/| /' conftest.$ac_ext >&5
4546 ac_header_compiler=no
4548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4549 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4550 echo "${ECHO_T}$ac_header_compiler" >&6
4552 # Is the header present?
4553 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4554 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
4555 cat >conftest.$ac_ext <<_ACEOF
4556 /* confdefs.h. */
4557 _ACEOF
4558 cat confdefs.h >>conftest.$ac_ext
4559 cat >>conftest.$ac_ext <<_ACEOF
4560 /* end confdefs.h. */
4561 #include <minix/config.h>
4562 _ACEOF
4563 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4564 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4565 ac_status=$?
4566 grep -v '^ *+' conftest.er1 >conftest.err
4567 rm -f conftest.er1
4568 cat conftest.err >&5
4569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570 (exit $ac_status); } >/dev/null; then
4571 if test -s conftest.err; then
4572 ac_cpp_err=$ac_c_preproc_warn_flag
4573 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4574 else
4575 ac_cpp_err=
4577 else
4578 ac_cpp_err=yes
4580 if test -z "$ac_cpp_err"; then
4581 ac_header_preproc=yes
4582 else
4583 echo "$as_me: failed program was:" >&5
4584 sed 's/^/| /' conftest.$ac_ext >&5
4586 ac_header_preproc=no
4588 rm -f conftest.err conftest.$ac_ext
4589 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4590 echo "${ECHO_T}$ac_header_preproc" >&6
4592 # So? What about this header?
4593 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4594 yes:no: )
4595 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4596 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4597 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4598 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4599 ac_header_preproc=yes
4601 no:yes:* )
4602 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4603 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4604 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4605 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4606 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4607 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4608 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4609 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4610 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4611 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4612 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4613 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4615 cat <<\_ASBOX
4616 ## ------------------------------------------ ##
4617 ## Report this to the AC_PACKAGE_NAME lists. ##
4618 ## ------------------------------------------ ##
4619 _ASBOX
4621 sed "s/^/$as_me: WARNING: /" >&2
4623 esac
4624 echo "$as_me:$LINENO: checking for minix/config.h" >&5
4625 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4626 if test "${ac_cv_header_minix_config_h+set}" = set; then
4627 echo $ECHO_N "(cached) $ECHO_C" >&6
4628 else
4629 ac_cv_header_minix_config_h=$ac_header_preproc
4631 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4632 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4635 if test $ac_cv_header_minix_config_h = yes; then
4636 MINIX=yes
4637 else
4638 MINIX=
4642 if test "$MINIX" = yes; then
4644 cat >>confdefs.h <<\_ACEOF
4645 #define _POSIX_SOURCE 1
4646 _ACEOF
4649 cat >>confdefs.h <<\_ACEOF
4650 #define _POSIX_1_SOURCE 2
4651 _ACEOF
4654 cat >>confdefs.h <<\_ACEOF
4655 #define _MINIX 1
4656 _ACEOF
4662 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4663 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
4664 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4665 echo $ECHO_N "(cached) $ECHO_C" >&6
4666 else
4667 cat >conftest.$ac_ext <<_ACEOF
4668 /* confdefs.h. */
4669 _ACEOF
4670 cat confdefs.h >>conftest.$ac_ext
4671 cat >>conftest.$ac_ext <<_ACEOF
4672 /* end confdefs.h. */
4674 # define __EXTENSIONS__ 1
4675 $ac_includes_default
4677 main ()
4681 return 0;
4683 _ACEOF
4684 rm -f conftest.$ac_objext
4685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4686 (eval $ac_compile) 2>conftest.er1
4687 ac_status=$?
4688 grep -v '^ *+' conftest.er1 >conftest.err
4689 rm -f conftest.er1
4690 cat conftest.err >&5
4691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692 (exit $ac_status); } &&
4693 { ac_try='test -z "$ac_c_werror_flag"
4694 || test ! -s conftest.err'
4695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4696 (eval $ac_try) 2>&5
4697 ac_status=$?
4698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699 (exit $ac_status); }; } &&
4700 { ac_try='test -s conftest.$ac_objext'
4701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4702 (eval $ac_try) 2>&5
4703 ac_status=$?
4704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705 (exit $ac_status); }; }; then
4706 ac_cv_safe_to_define___extensions__=yes
4707 else
4708 echo "$as_me: failed program was:" >&5
4709 sed 's/^/| /' conftest.$ac_ext >&5
4711 ac_cv_safe_to_define___extensions__=no
4713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4715 echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4716 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
4717 test $ac_cv_safe_to_define___extensions__ = yes &&
4718 cat >>confdefs.h <<\_ACEOF
4719 #define __EXTENSIONS__ 1
4720 _ACEOF
4722 cat >>confdefs.h <<\_ACEOF
4723 #define _ALL_SOURCE 1
4724 _ACEOF
4726 cat >>confdefs.h <<\_ACEOF
4727 #define _GNU_SOURCE 1
4728 _ACEOF
4730 cat >>confdefs.h <<\_ACEOF
4731 #define _POSIX_PTHREAD_SEMANTICS 1
4732 _ACEOF
4734 cat >>confdefs.h <<\_ACEOF
4735 #define _TANDEM_SOURCE 1
4736 _ACEOF
4740 if test -n "$ac_tool_prefix"; then
4741 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4742 set dummy ${ac_tool_prefix}ar; ac_word=$2
4743 echo "$as_me:$LINENO: checking for $ac_word" >&5
4744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4745 if test "${ac_cv_prog_AR+set}" = set; then
4746 echo $ECHO_N "(cached) $ECHO_C" >&6
4747 else
4748 if test -n "$AR"; then
4749 ac_cv_prog_AR="$AR" # Let the user override the test.
4750 else
4751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4752 for as_dir in $PATH
4754 IFS=$as_save_IFS
4755 test -z "$as_dir" && as_dir=.
4756 for ac_exec_ext in '' $ac_executable_extensions; do
4757 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4758 ac_cv_prog_AR="${ac_tool_prefix}ar"
4759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4760 break 2
4762 done
4763 done
4767 AR=$ac_cv_prog_AR
4768 if test -n "$AR"; then
4769 echo "$as_me:$LINENO: result: $AR" >&5
4770 echo "${ECHO_T}$AR" >&6
4771 else
4772 echo "$as_me:$LINENO: result: no" >&5
4773 echo "${ECHO_T}no" >&6
4777 if test -z "$ac_cv_prog_AR"; then
4778 ac_ct_AR=$AR
4779 # Extract the first word of "ar", so it can be a program name with args.
4780 set dummy ar; ac_word=$2
4781 echo "$as_me:$LINENO: checking for $ac_word" >&5
4782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4783 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4784 echo $ECHO_N "(cached) $ECHO_C" >&6
4785 else
4786 if test -n "$ac_ct_AR"; then
4787 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4788 else
4789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4790 for as_dir in $PATH
4792 IFS=$as_save_IFS
4793 test -z "$as_dir" && as_dir=.
4794 for ac_exec_ext in '' $ac_executable_extensions; do
4795 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4796 ac_cv_prog_ac_ct_AR="ar"
4797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4798 break 2
4800 done
4801 done
4805 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4806 if test -n "$ac_ct_AR"; then
4807 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4808 echo "${ECHO_T}$ac_ct_AR" >&6
4809 else
4810 echo "$as_me:$LINENO: result: no" >&5
4811 echo "${ECHO_T}no" >&6
4814 AR=$ac_ct_AR
4815 else
4816 AR="$ac_cv_prog_AR"
4819 if test -n "$ac_tool_prefix"; then
4820 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4821 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4822 echo "$as_me:$LINENO: checking for $ac_word" >&5
4823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4824 if test "${ac_cv_prog_RANLIB+set}" = set; then
4825 echo $ECHO_N "(cached) $ECHO_C" >&6
4826 else
4827 if test -n "$RANLIB"; then
4828 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4829 else
4830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4831 for as_dir in $PATH
4833 IFS=$as_save_IFS
4834 test -z "$as_dir" && as_dir=.
4835 for ac_exec_ext in '' $ac_executable_extensions; do
4836 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4837 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4839 break 2
4841 done
4842 done
4846 RANLIB=$ac_cv_prog_RANLIB
4847 if test -n "$RANLIB"; then
4848 echo "$as_me:$LINENO: result: $RANLIB" >&5
4849 echo "${ECHO_T}$RANLIB" >&6
4850 else
4851 echo "$as_me:$LINENO: result: no" >&5
4852 echo "${ECHO_T}no" >&6
4856 if test -z "$ac_cv_prog_RANLIB"; then
4857 ac_ct_RANLIB=$RANLIB
4858 # Extract the first word of "ranlib", so it can be a program name with args.
4859 set dummy ranlib; ac_word=$2
4860 echo "$as_me:$LINENO: checking for $ac_word" >&5
4861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4862 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4863 echo $ECHO_N "(cached) $ECHO_C" >&6
4864 else
4865 if test -n "$ac_ct_RANLIB"; then
4866 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4867 else
4868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4869 for as_dir in $PATH
4871 IFS=$as_save_IFS
4872 test -z "$as_dir" && as_dir=.
4873 for ac_exec_ext in '' $ac_executable_extensions; do
4874 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4875 ac_cv_prog_ac_ct_RANLIB="ranlib"
4876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4877 break 2
4879 done
4880 done
4882 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4885 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4886 if test -n "$ac_ct_RANLIB"; then
4887 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4888 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4889 else
4890 echo "$as_me:$LINENO: result: no" >&5
4891 echo "${ECHO_T}no" >&6
4894 RANLIB=$ac_ct_RANLIB
4895 else
4896 RANLIB="$ac_cv_prog_RANLIB"
4900 # Check whether --enable-shared or --disable-shared was given.
4901 if test "${enable_shared+set}" = set; then
4902 enableval="$enable_shared"
4903 p=${PACKAGE-default}
4904 case $enableval in
4905 yes) enable_shared=yes ;;
4906 no) enable_shared=no ;;
4908 enable_shared=no
4909 # Look at the argument we got. We use all the common list separators.
4910 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4911 for pkg in $enableval; do
4912 IFS="$lt_save_ifs"
4913 if test "X$pkg" = "X$p"; then
4914 enable_shared=yes
4916 done
4917 IFS="$lt_save_ifs"
4919 esac
4920 else
4921 enable_shared=no
4932 case `pwd` in
4933 *\ * | *\ *)
4934 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4935 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4936 esac
4940 macro_version='2.2.6'
4941 macro_revision='1.3012'
4955 ltmain="$ac_aux_dir/ltmain.sh"
4957 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4958 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4959 if test "${lt_cv_path_SED+set}" = set; then
4960 echo $ECHO_N "(cached) $ECHO_C" >&6
4961 else
4962 # Loop through the user's path and test for sed and gsed.
4963 # Then use that list of sed's as ones to test for truncation.
4964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4965 for as_dir in $PATH
4967 IFS=$as_save_IFS
4968 test -z "$as_dir" && as_dir=.
4969 for lt_ac_prog in sed gsed; do
4970 for ac_exec_ext in '' $ac_executable_extensions; do
4971 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4972 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4974 done
4975 done
4976 done
4977 IFS=$as_save_IFS
4978 lt_ac_max=0
4979 lt_ac_count=0
4980 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4981 # along with /bin/sed that truncates output.
4982 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4983 test ! -f $lt_ac_sed && continue
4984 cat /dev/null > conftest.in
4985 lt_ac_count=0
4986 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4987 # Check for GNU sed and select it if it is found.
4988 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4989 lt_cv_path_SED=$lt_ac_sed
4990 break
4992 while true; do
4993 cat conftest.in conftest.in >conftest.tmp
4994 mv conftest.tmp conftest.in
4995 cp conftest.in conftest.nl
4996 echo >>conftest.nl
4997 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4998 cmp -s conftest.out conftest.nl || break
4999 # 10000 chars as input seems more than enough
5000 test $lt_ac_count -gt 10 && break
5001 lt_ac_count=`expr $lt_ac_count + 1`
5002 if test $lt_ac_count -gt $lt_ac_max; then
5003 lt_ac_max=$lt_ac_count
5004 lt_cv_path_SED=$lt_ac_sed
5006 done
5007 done
5011 SED=$lt_cv_path_SED
5013 echo "$as_me:$LINENO: result: $SED" >&5
5014 echo "${ECHO_T}$SED" >&6
5016 test -z "$SED" && SED=sed
5017 Xsed="$SED -e 1s/^X//"
5029 echo "$as_me:$LINENO: checking for fgrep" >&5
5030 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
5031 if test "${ac_cv_prog_fgrep+set}" = set; then
5032 echo $ECHO_N "(cached) $ECHO_C" >&6
5033 else
5034 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
5035 then ac_cv_prog_fgrep='grep -F'
5036 else ac_cv_prog_fgrep='fgrep'
5039 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
5040 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
5041 FGREP=$ac_cv_prog_fgrep
5044 test -z "$GREP" && GREP=grep
5064 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5065 if test "${with_gnu_ld+set}" = set; then
5066 withval="$with_gnu_ld"
5067 test "$withval" = no || with_gnu_ld=yes
5068 else
5069 with_gnu_ld=no
5071 ac_prog=ld
5072 if test "$GCC" = yes; then
5073 # Check if gcc -print-prog-name=ld gives a path.
5074 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5075 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5076 case $host in
5077 *-*-mingw*)
5078 # gcc leaves a trailing carriage return which upsets mingw
5079 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5081 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5082 esac
5083 case $ac_prog in
5084 # Accept absolute paths.
5085 [\\/]* | ?:[\\/]*)
5086 re_direlt='/[^/][^/]*/\.\./'
5087 # Canonicalize the pathname of ld
5088 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5089 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5090 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5091 done
5092 test -z "$LD" && LD="$ac_prog"
5095 # If it fails, then pretend we aren't using GCC.
5096 ac_prog=ld
5099 # If it is relative, then search for the first ld in PATH.
5100 with_gnu_ld=unknown
5102 esac
5103 elif test "$with_gnu_ld" = yes; then
5104 echo "$as_me:$LINENO: checking for GNU ld" >&5
5105 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5106 else
5107 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5108 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5110 if test "${lt_cv_path_LD+set}" = set; then
5111 echo $ECHO_N "(cached) $ECHO_C" >&6
5112 else
5113 if test -z "$LD"; then
5114 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5115 for ac_dir in $PATH; do
5116 IFS="$lt_save_ifs"
5117 test -z "$ac_dir" && ac_dir=.
5118 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5119 lt_cv_path_LD="$ac_dir/$ac_prog"
5120 # Check to see if the program is GNU ld. I'd rather use --version,
5121 # but apparently some variants of GNU ld only accept -v.
5122 # Break only if it was the GNU/non-GNU ld that we prefer.
5123 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5124 *GNU* | *'with BFD'*)
5125 test "$with_gnu_ld" != no && break
5128 test "$with_gnu_ld" != yes && break
5130 esac
5132 done
5133 IFS="$lt_save_ifs"
5134 else
5135 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5139 LD="$lt_cv_path_LD"
5140 if test -n "$LD"; then
5141 echo "$as_me:$LINENO: result: $LD" >&5
5142 echo "${ECHO_T}$LD" >&6
5143 else
5144 echo "$as_me:$LINENO: result: no" >&5
5145 echo "${ECHO_T}no" >&6
5147 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5148 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5149 { (exit 1); exit 1; }; }
5150 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5151 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5152 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5153 echo $ECHO_N "(cached) $ECHO_C" >&6
5154 else
5155 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5156 case `$LD -v 2>&1 </dev/null` in
5157 *GNU* | *'with BFD'*)
5158 lt_cv_prog_gnu_ld=yes
5161 lt_cv_prog_gnu_ld=no
5163 esac
5165 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5166 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5167 with_gnu_ld=$lt_cv_prog_gnu_ld
5177 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5178 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
5179 if test "${lt_cv_path_NM+set}" = set; then
5180 echo $ECHO_N "(cached) $ECHO_C" >&6
5181 else
5182 if test -n "$NM"; then
5183 # Let the user override the test.
5184 lt_cv_path_NM="$NM"
5185 else
5186 lt_nm_to_check="${ac_tool_prefix}nm"
5187 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5188 lt_nm_to_check="$lt_nm_to_check nm"
5190 for lt_tmp_nm in $lt_nm_to_check; do
5191 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5192 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5193 IFS="$lt_save_ifs"
5194 test -z "$ac_dir" && ac_dir=.
5195 tmp_nm="$ac_dir/$lt_tmp_nm"
5196 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5197 # Check to see if the nm accepts a BSD-compat flag.
5198 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5199 # nm: unknown option "B" ignored
5200 # Tru64's nm complains that /dev/null is an invalid object file
5201 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5202 */dev/null* | *'Invalid file or object type'*)
5203 lt_cv_path_NM="$tmp_nm -B"
5204 break
5207 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5208 */dev/null*)
5209 lt_cv_path_NM="$tmp_nm -p"
5210 break
5213 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5214 continue # so that we can try to find one that supports BSD flags
5216 esac
5218 esac
5220 done
5221 IFS="$lt_save_ifs"
5222 done
5223 : ${lt_cv_path_NM=no}
5226 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5227 echo "${ECHO_T}$lt_cv_path_NM" >&6
5228 if test "$lt_cv_path_NM" != "no"; then
5229 NM="$lt_cv_path_NM"
5230 else
5231 # Didn't find any BSD compatible name lister, look for dumpbin.
5232 if test -n "$ac_tool_prefix"; then
5233 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5235 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5236 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5237 echo "$as_me:$LINENO: checking for $ac_word" >&5
5238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5239 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5240 echo $ECHO_N "(cached) $ECHO_C" >&6
5241 else
5242 if test -n "$DUMPBIN"; then
5243 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5244 else
5245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5246 for as_dir in $PATH
5248 IFS=$as_save_IFS
5249 test -z "$as_dir" && as_dir=.
5250 for ac_exec_ext in '' $ac_executable_extensions; do
5251 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5252 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5254 break 2
5256 done
5257 done
5261 DUMPBIN=$ac_cv_prog_DUMPBIN
5262 if test -n "$DUMPBIN"; then
5263 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5264 echo "${ECHO_T}$DUMPBIN" >&6
5265 else
5266 echo "$as_me:$LINENO: result: no" >&5
5267 echo "${ECHO_T}no" >&6
5270 test -n "$DUMPBIN" && break
5271 done
5273 if test -z "$DUMPBIN"; then
5274 ac_ct_DUMPBIN=$DUMPBIN
5275 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5277 # Extract the first word of "$ac_prog", so it can be a program name with args.
5278 set dummy $ac_prog; ac_word=$2
5279 echo "$as_me:$LINENO: checking for $ac_word" >&5
5280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5281 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5282 echo $ECHO_N "(cached) $ECHO_C" >&6
5283 else
5284 if test -n "$ac_ct_DUMPBIN"; then
5285 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5286 else
5287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5288 for as_dir in $PATH
5290 IFS=$as_save_IFS
5291 test -z "$as_dir" && as_dir=.
5292 for ac_exec_ext in '' $ac_executable_extensions; do
5293 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5294 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5296 break 2
5298 done
5299 done
5303 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5304 if test -n "$ac_ct_DUMPBIN"; then
5305 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5306 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
5307 else
5308 echo "$as_me:$LINENO: result: no" >&5
5309 echo "${ECHO_T}no" >&6
5312 test -n "$ac_ct_DUMPBIN" && break
5313 done
5314 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
5316 DUMPBIN=$ac_ct_DUMPBIN
5320 if test "$DUMPBIN" != ":"; then
5321 NM="$DUMPBIN"
5324 test -z "$NM" && NM=nm
5331 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5332 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
5333 if test "${lt_cv_nm_interface+set}" = set; then
5334 echo $ECHO_N "(cached) $ECHO_C" >&6
5335 else
5336 lt_cv_nm_interface="BSD nm"
5337 echo "int some_variable = 0;" > conftest.$ac_ext
5338 (eval echo "\"\$as_me:5338: $ac_compile\"" >&5)
5339 (eval "$ac_compile" 2>conftest.err)
5340 cat conftest.err >&5
5341 (eval echo "\"\$as_me:5341: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5342 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5343 cat conftest.err >&5
5344 (eval echo "\"\$as_me:5344: output\"" >&5)
5345 cat conftest.out >&5
5346 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5347 lt_cv_nm_interface="MS dumpbin"
5349 rm -f conftest*
5351 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5352 echo "${ECHO_T}$lt_cv_nm_interface" >&6
5354 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5355 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5356 LN_S=$as_ln_s
5357 if test "$LN_S" = "ln -s"; then
5358 echo "$as_me:$LINENO: result: yes" >&5
5359 echo "${ECHO_T}yes" >&6
5360 else
5361 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5362 echo "${ECHO_T}no, using $LN_S" >&6
5365 # find the maximum length of command line arguments
5366 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5367 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5368 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5369 echo $ECHO_N "(cached) $ECHO_C" >&6
5370 else
5372 teststring="ABCD"
5374 case $build_os in
5375 msdosdjgpp*)
5376 # On DJGPP, this test can blow up pretty badly due to problems in libc
5377 # (any single argument exceeding 2000 bytes causes a buffer overrun
5378 # during glob expansion). Even if it were fixed, the result of this
5379 # check would be larger than it should be.
5380 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5383 gnu*)
5384 # Under GNU Hurd, this test is not required because there is
5385 # no limit to the length of command line arguments.
5386 # Libtool will interpret -1 as no limit whatsoever
5387 lt_cv_sys_max_cmd_len=-1;
5390 cygwin* | mingw* | cegcc*)
5391 # On Win9x/ME, this test blows up -- it succeeds, but takes
5392 # about 5 minutes as the teststring grows exponentially.
5393 # Worse, since 9x/ME are not pre-emptively multitasking,
5394 # you end up with a "frozen" computer, even though with patience
5395 # the test eventually succeeds (with a max line length of 256k).
5396 # Instead, let's just punt: use the minimum linelength reported by
5397 # all of the supported platforms: 8192 (on NT/2K/XP).
5398 lt_cv_sys_max_cmd_len=8192;
5401 amigaos*)
5402 # On AmigaOS with pdksh, this test takes hours, literally.
5403 # So we just punt and use a minimum line length of 8192.
5404 lt_cv_sys_max_cmd_len=8192;
5407 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5408 # This has been around since 386BSD, at least. Likely further.
5409 if test -x /sbin/sysctl; then
5410 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5411 elif test -x /usr/sbin/sysctl; then
5412 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5413 else
5414 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5416 # And add a safety zone
5417 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5418 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5421 interix*)
5422 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5423 lt_cv_sys_max_cmd_len=196608
5426 osf*)
5427 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5428 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5429 # nice to cause kernel panics so lets avoid the loop below.
5430 # First set a reasonable default.
5431 lt_cv_sys_max_cmd_len=16384
5433 if test -x /sbin/sysconfig; then
5434 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5435 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5436 esac
5439 sco3.2v5*)
5440 lt_cv_sys_max_cmd_len=102400
5442 sysv5* | sco5v6* | sysv4.2uw2*)
5443 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5444 if test -n "$kargmax"; then
5445 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5446 else
5447 lt_cv_sys_max_cmd_len=32768
5451 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5452 if test -n "$lt_cv_sys_max_cmd_len"; then
5453 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5454 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5455 else
5456 # Make teststring a little bigger before we do anything with it.
5457 # a 1K string should be a reasonable start.
5458 for i in 1 2 3 4 5 6 7 8 ; do
5459 teststring=$teststring$teststring
5460 done
5461 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5462 # If test is not a shell built-in, we'll probably end up computing a
5463 # maximum length that is only half of the actual maximum length, but
5464 # we can't tell.
5465 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5466 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5467 test $i != 17 # 1/2 MB should be enough
5469 i=`expr $i + 1`
5470 teststring=$teststring$teststring
5471 done
5472 # Only check the string length outside the loop.
5473 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5474 teststring=
5475 # Add a significant safety factor because C++ compilers can tack on
5476 # massive amounts of additional arguments before passing them to the
5477 # linker. It appears as though 1/2 is a usable value.
5478 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5481 esac
5485 if test -n $lt_cv_sys_max_cmd_len ; then
5486 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5487 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5488 else
5489 echo "$as_me:$LINENO: result: none" >&5
5490 echo "${ECHO_T}none" >&6
5492 max_cmd_len=$lt_cv_sys_max_cmd_len
5499 : ${CP="cp -f"}
5500 : ${MV="mv -f"}
5501 : ${RM="rm -f"}
5503 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5504 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
5505 # Try some XSI features
5506 xsi_shell=no
5507 ( _lt_dummy="a/b/c"
5508 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5509 = c,a/b,, \
5510 && eval 'test $(( 1 + 1 )) -eq 2 \
5511 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5512 && xsi_shell=yes
5513 echo "$as_me:$LINENO: result: $xsi_shell" >&5
5514 echo "${ECHO_T}$xsi_shell" >&6
5517 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5518 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
5519 lt_shell_append=no
5520 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5521 >/dev/null 2>&1 \
5522 && lt_shell_append=yes
5523 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5524 echo "${ECHO_T}$lt_shell_append" >&6
5527 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5528 lt_unset=unset
5529 else
5530 lt_unset=false
5537 # test EBCDIC or ASCII
5538 case `echo X|tr X '\101'` in
5539 A) # ASCII based system
5540 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5541 lt_SP2NL='tr \040 \012'
5542 lt_NL2SP='tr \015\012 \040\040'
5544 *) # EBCDIC based system
5545 lt_SP2NL='tr \100 \n'
5546 lt_NL2SP='tr \r\n \100\100'
5548 esac
5558 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5559 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5560 if test "${lt_cv_ld_reload_flag+set}" = set; then
5561 echo $ECHO_N "(cached) $ECHO_C" >&6
5562 else
5563 lt_cv_ld_reload_flag='-r'
5565 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5566 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5567 reload_flag=$lt_cv_ld_reload_flag
5568 case $reload_flag in
5569 "" | " "*) ;;
5570 *) reload_flag=" $reload_flag" ;;
5571 esac
5572 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5573 case $host_os in
5574 darwin*)
5575 if test "$GCC" = yes; then
5576 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5577 else
5578 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5581 esac
5591 if test -n "$ac_tool_prefix"; then
5592 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5593 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5594 echo "$as_me:$LINENO: checking for $ac_word" >&5
5595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5596 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5597 echo $ECHO_N "(cached) $ECHO_C" >&6
5598 else
5599 if test -n "$OBJDUMP"; then
5600 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5601 else
5602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5603 for as_dir in $PATH
5605 IFS=$as_save_IFS
5606 test -z "$as_dir" && as_dir=.
5607 for ac_exec_ext in '' $ac_executable_extensions; do
5608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5609 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5611 break 2
5613 done
5614 done
5618 OBJDUMP=$ac_cv_prog_OBJDUMP
5619 if test -n "$OBJDUMP"; then
5620 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5621 echo "${ECHO_T}$OBJDUMP" >&6
5622 else
5623 echo "$as_me:$LINENO: result: no" >&5
5624 echo "${ECHO_T}no" >&6
5628 if test -z "$ac_cv_prog_OBJDUMP"; then
5629 ac_ct_OBJDUMP=$OBJDUMP
5630 # Extract the first word of "objdump", so it can be a program name with args.
5631 set dummy objdump; ac_word=$2
5632 echo "$as_me:$LINENO: checking for $ac_word" >&5
5633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5634 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5635 echo $ECHO_N "(cached) $ECHO_C" >&6
5636 else
5637 if test -n "$ac_ct_OBJDUMP"; then
5638 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5639 else
5640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5641 for as_dir in $PATH
5643 IFS=$as_save_IFS
5644 test -z "$as_dir" && as_dir=.
5645 for ac_exec_ext in '' $ac_executable_extensions; do
5646 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5647 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5649 break 2
5651 done
5652 done
5654 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
5657 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5658 if test -n "$ac_ct_OBJDUMP"; then
5659 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5660 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
5661 else
5662 echo "$as_me:$LINENO: result: no" >&5
5663 echo "${ECHO_T}no" >&6
5666 OBJDUMP=$ac_ct_OBJDUMP
5667 else
5668 OBJDUMP="$ac_cv_prog_OBJDUMP"
5671 test -z "$OBJDUMP" && OBJDUMP=objdump
5681 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5682 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
5683 if test "${lt_cv_deplibs_check_method+set}" = set; then
5684 echo $ECHO_N "(cached) $ECHO_C" >&6
5685 else
5686 lt_cv_file_magic_cmd='$MAGIC_CMD'
5687 lt_cv_file_magic_test_file=
5688 lt_cv_deplibs_check_method='unknown'
5689 # Need to set the preceding variable on all platforms that support
5690 # interlibrary dependencies.
5691 # 'none' -- dependencies not supported.
5692 # `unknown' -- same as none, but documents that we really don't know.
5693 # 'pass_all' -- all dependencies passed with no checks.
5694 # 'test_compile' -- check by making test program.
5695 # 'file_magic [[regex]]' -- check by looking for files in library path
5696 # which responds to the $file_magic_cmd with a given extended regex.
5697 # If you have `file' or equivalent on your system and you're not sure
5698 # whether `pass_all' will *always* work, you probably want this one.
5700 case $host_os in
5701 aix[4-9]*)
5702 lt_cv_deplibs_check_method=pass_all
5705 beos*)
5706 lt_cv_deplibs_check_method=pass_all
5709 bsdi[45]*)
5710 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5711 lt_cv_file_magic_cmd='/usr/bin/file -L'
5712 lt_cv_file_magic_test_file=/shlib/libc.so
5715 cygwin*)
5716 # func_win32_libid is a shell function defined in ltmain.sh
5717 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5718 lt_cv_file_magic_cmd='func_win32_libid'
5721 mingw* | pw32*)
5722 # Base MSYS/MinGW do not provide the 'file' command needed by
5723 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5724 # unless we find 'file', for example because we are cross-compiling.
5725 if ( file / ) >/dev/null 2>&1; then
5726 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5727 lt_cv_file_magic_cmd='func_win32_libid'
5728 else
5729 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5730 lt_cv_file_magic_cmd='$OBJDUMP -f'
5734 cegcc)
5735 # use the weaker test based on 'objdump'. See mingw*.
5736 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5737 lt_cv_file_magic_cmd='$OBJDUMP -f'
5740 darwin* | rhapsody*)
5741 lt_cv_deplibs_check_method=pass_all
5744 freebsd* | dragonfly*)
5745 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5746 case $host_cpu in
5747 i*86 )
5748 # Not sure whether the presence of OpenBSD here was a mistake.
5749 # Let's accept both of them until this is cleared up.
5750 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5751 lt_cv_file_magic_cmd=/usr/bin/file
5752 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5754 esac
5755 else
5756 lt_cv_deplibs_check_method=pass_all
5760 gnu*)
5761 lt_cv_deplibs_check_method=pass_all
5764 hpux10.20* | hpux11*)
5765 lt_cv_file_magic_cmd=/usr/bin/file
5766 case $host_cpu in
5767 ia64*)
5768 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5769 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5771 hppa*64*)
5772 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]'
5773 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5776 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5777 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5779 esac
5782 interix[3-9]*)
5783 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5784 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5787 irix5* | irix6* | nonstopux*)
5788 case $LD in
5789 *-32|*"-32 ") libmagic=32-bit;;
5790 *-n32|*"-n32 ") libmagic=N32;;
5791 *-64|*"-64 ") libmagic=64-bit;;
5792 *) libmagic=never-match;;
5793 esac
5794 lt_cv_deplibs_check_method=pass_all
5797 # This must be Linux ELF.
5798 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5799 lt_cv_deplibs_check_method=pass_all
5802 netbsd*)
5803 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5804 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5805 else
5806 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5810 newos6*)
5811 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5812 lt_cv_file_magic_cmd=/usr/bin/file
5813 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5816 *nto* | *qnx*)
5817 lt_cv_deplibs_check_method=pass_all
5820 openbsd*)
5821 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5822 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5823 else
5824 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5828 osf3* | osf4* | osf5*)
5829 lt_cv_deplibs_check_method=pass_all
5832 rdos*)
5833 lt_cv_deplibs_check_method=pass_all
5836 solaris*)
5837 lt_cv_deplibs_check_method=pass_all
5840 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5841 lt_cv_deplibs_check_method=pass_all
5844 sysv4 | sysv4.3*)
5845 case $host_vendor in
5846 motorola)
5847 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]'
5848 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5850 ncr)
5851 lt_cv_deplibs_check_method=pass_all
5853 sequent)
5854 lt_cv_file_magic_cmd='/bin/file'
5855 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5857 sni)
5858 lt_cv_file_magic_cmd='/bin/file'
5859 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5860 lt_cv_file_magic_test_file=/lib/libc.so
5862 siemens)
5863 lt_cv_deplibs_check_method=pass_all
5866 lt_cv_deplibs_check_method=pass_all
5868 esac
5871 tpf*)
5872 lt_cv_deplibs_check_method=pass_all
5874 esac
5877 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5878 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5879 file_magic_cmd=$lt_cv_file_magic_cmd
5880 deplibs_check_method=$lt_cv_deplibs_check_method
5881 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5894 if test -n "$ac_tool_prefix"; then
5895 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5896 set dummy ${ac_tool_prefix}ar; ac_word=$2
5897 echo "$as_me:$LINENO: checking for $ac_word" >&5
5898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5899 if test "${ac_cv_prog_AR+set}" = set; then
5900 echo $ECHO_N "(cached) $ECHO_C" >&6
5901 else
5902 if test -n "$AR"; then
5903 ac_cv_prog_AR="$AR" # Let the user override the test.
5904 else
5905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5906 for as_dir in $PATH
5908 IFS=$as_save_IFS
5909 test -z "$as_dir" && as_dir=.
5910 for ac_exec_ext in '' $ac_executable_extensions; do
5911 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5912 ac_cv_prog_AR="${ac_tool_prefix}ar"
5913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5914 break 2
5916 done
5917 done
5921 AR=$ac_cv_prog_AR
5922 if test -n "$AR"; then
5923 echo "$as_me:$LINENO: result: $AR" >&5
5924 echo "${ECHO_T}$AR" >&6
5925 else
5926 echo "$as_me:$LINENO: result: no" >&5
5927 echo "${ECHO_T}no" >&6
5931 if test -z "$ac_cv_prog_AR"; then
5932 ac_ct_AR=$AR
5933 # Extract the first word of "ar", so it can be a program name with args.
5934 set dummy ar; ac_word=$2
5935 echo "$as_me:$LINENO: checking for $ac_word" >&5
5936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5937 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5938 echo $ECHO_N "(cached) $ECHO_C" >&6
5939 else
5940 if test -n "$ac_ct_AR"; then
5941 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5942 else
5943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5944 for as_dir in $PATH
5946 IFS=$as_save_IFS
5947 test -z "$as_dir" && as_dir=.
5948 for ac_exec_ext in '' $ac_executable_extensions; do
5949 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5950 ac_cv_prog_ac_ct_AR="ar"
5951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5952 break 2
5954 done
5955 done
5957 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5960 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5961 if test -n "$ac_ct_AR"; then
5962 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5963 echo "${ECHO_T}$ac_ct_AR" >&6
5964 else
5965 echo "$as_me:$LINENO: result: no" >&5
5966 echo "${ECHO_T}no" >&6
5969 AR=$ac_ct_AR
5970 else
5971 AR="$ac_cv_prog_AR"
5974 test -z "$AR" && AR=ar
5975 test -z "$AR_FLAGS" && AR_FLAGS=cru
5987 if test -n "$ac_tool_prefix"; then
5988 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5989 set dummy ${ac_tool_prefix}strip; ac_word=$2
5990 echo "$as_me:$LINENO: checking for $ac_word" >&5
5991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5992 if test "${ac_cv_prog_STRIP+set}" = set; then
5993 echo $ECHO_N "(cached) $ECHO_C" >&6
5994 else
5995 if test -n "$STRIP"; then
5996 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5997 else
5998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5999 for as_dir in $PATH
6001 IFS=$as_save_IFS
6002 test -z "$as_dir" && as_dir=.
6003 for ac_exec_ext in '' $ac_executable_extensions; do
6004 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6005 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6007 break 2
6009 done
6010 done
6014 STRIP=$ac_cv_prog_STRIP
6015 if test -n "$STRIP"; then
6016 echo "$as_me:$LINENO: result: $STRIP" >&5
6017 echo "${ECHO_T}$STRIP" >&6
6018 else
6019 echo "$as_me:$LINENO: result: no" >&5
6020 echo "${ECHO_T}no" >&6
6024 if test -z "$ac_cv_prog_STRIP"; then
6025 ac_ct_STRIP=$STRIP
6026 # Extract the first word of "strip", so it can be a program name with args.
6027 set dummy strip; ac_word=$2
6028 echo "$as_me:$LINENO: checking for $ac_word" >&5
6029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6030 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6031 echo $ECHO_N "(cached) $ECHO_C" >&6
6032 else
6033 if test -n "$ac_ct_STRIP"; then
6034 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6035 else
6036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6037 for as_dir in $PATH
6039 IFS=$as_save_IFS
6040 test -z "$as_dir" && as_dir=.
6041 for ac_exec_ext in '' $ac_executable_extensions; do
6042 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6043 ac_cv_prog_ac_ct_STRIP="strip"
6044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6045 break 2
6047 done
6048 done
6050 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6053 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6054 if test -n "$ac_ct_STRIP"; then
6055 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6056 echo "${ECHO_T}$ac_ct_STRIP" >&6
6057 else
6058 echo "$as_me:$LINENO: result: no" >&5
6059 echo "${ECHO_T}no" >&6
6062 STRIP=$ac_ct_STRIP
6063 else
6064 STRIP="$ac_cv_prog_STRIP"
6067 test -z "$STRIP" && STRIP=:
6074 if test -n "$ac_tool_prefix"; then
6075 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6076 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6077 echo "$as_me:$LINENO: checking for $ac_word" >&5
6078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6079 if test "${ac_cv_prog_RANLIB+set}" = set; then
6080 echo $ECHO_N "(cached) $ECHO_C" >&6
6081 else
6082 if test -n "$RANLIB"; then
6083 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6084 else
6085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6086 for as_dir in $PATH
6088 IFS=$as_save_IFS
6089 test -z "$as_dir" && as_dir=.
6090 for ac_exec_ext in '' $ac_executable_extensions; do
6091 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6092 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6094 break 2
6096 done
6097 done
6101 RANLIB=$ac_cv_prog_RANLIB
6102 if test -n "$RANLIB"; then
6103 echo "$as_me:$LINENO: result: $RANLIB" >&5
6104 echo "${ECHO_T}$RANLIB" >&6
6105 else
6106 echo "$as_me:$LINENO: result: no" >&5
6107 echo "${ECHO_T}no" >&6
6111 if test -z "$ac_cv_prog_RANLIB"; then
6112 ac_ct_RANLIB=$RANLIB
6113 # Extract the first word of "ranlib", so it can be a program name with args.
6114 set dummy ranlib; ac_word=$2
6115 echo "$as_me:$LINENO: checking for $ac_word" >&5
6116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6117 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6118 echo $ECHO_N "(cached) $ECHO_C" >&6
6119 else
6120 if test -n "$ac_ct_RANLIB"; then
6121 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6122 else
6123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6124 for as_dir in $PATH
6126 IFS=$as_save_IFS
6127 test -z "$as_dir" && as_dir=.
6128 for ac_exec_ext in '' $ac_executable_extensions; do
6129 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6130 ac_cv_prog_ac_ct_RANLIB="ranlib"
6131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6132 break 2
6134 done
6135 done
6137 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6140 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6141 if test -n "$ac_ct_RANLIB"; then
6142 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6143 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6144 else
6145 echo "$as_me:$LINENO: result: no" >&5
6146 echo "${ECHO_T}no" >&6
6149 RANLIB=$ac_ct_RANLIB
6150 else
6151 RANLIB="$ac_cv_prog_RANLIB"
6154 test -z "$RANLIB" && RANLIB=:
6161 # Determine commands to create old-style static archives.
6162 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6163 old_postinstall_cmds='chmod 644 $oldlib'
6164 old_postuninstall_cmds=
6166 if test -n "$RANLIB"; then
6167 case $host_os in
6168 openbsd*)
6169 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6172 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6174 esac
6175 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6211 # If no C compiler was specified, use CC.
6212 LTCC=${LTCC-"$CC"}
6214 # If no C compiler flags were specified, use CFLAGS.
6215 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6217 # Allow CC to be a program name with arguments.
6218 compiler=$CC
6221 # Check for command to grab the raw symbol name followed by C symbol from nm.
6222 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6223 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6224 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6225 echo $ECHO_N "(cached) $ECHO_C" >&6
6226 else
6228 # These are sane defaults that work on at least a few old systems.
6229 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6231 # Character class describing NM global symbol codes.
6232 symcode='[BCDEGRST]'
6234 # Regexp to match symbols that can be accessed directly from C.
6235 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6237 # Define system-specific variables.
6238 case $host_os in
6239 aix*)
6240 symcode='[BCDT]'
6242 cygwin* | mingw* | pw32* | cegcc*)
6243 symcode='[ABCDGISTW]'
6245 hpux*)
6246 if test "$host_cpu" = ia64; then
6247 symcode='[ABCDEGRST]'
6250 irix* | nonstopux*)
6251 symcode='[BCDEGRST]'
6253 osf*)
6254 symcode='[BCDEGQRST]'
6256 solaris*)
6257 symcode='[BDRT]'
6259 sco3.2v5*)
6260 symcode='[DT]'
6262 sysv4.2uw2*)
6263 symcode='[DT]'
6265 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6266 symcode='[ABDT]'
6268 sysv4)
6269 symcode='[DFNSTU]'
6271 esac
6273 # If we're using GNU nm, then use its standard symbol codes.
6274 case `$NM -V 2>&1` in
6275 *GNU* | *'with BFD'*)
6276 symcode='[ABCDGIRSTW]' ;;
6277 esac
6279 # Transform an extracted symbol line into a proper C declaration.
6280 # Some systems (esp. on ia64) link data and code symbols differently,
6281 # so use this general approach.
6282 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6284 # Transform an extracted symbol line into symbol name and symbol address
6285 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6286 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6288 # Handle CRLF in mingw tool chain
6289 opt_cr=
6290 case $build_os in
6291 mingw*)
6292 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6294 esac
6296 # Try without a prefix underscore, then with it.
6297 for ac_symprfx in "" "_"; do
6299 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6300 symxfrm="\\1 $ac_symprfx\\2 \\2"
6302 # Write the raw and C identifiers.
6303 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6304 # Fake it for dumpbin and say T for any non-static function
6305 # and D for any global variable.
6306 # Also find C++ and __fastcall symbols from MSVC++,
6307 # which start with @ or ?.
6308 lt_cv_sys_global_symbol_pipe="$AWK '"\
6309 " {last_section=section; section=\$ 3};"\
6310 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6311 " \$ 0!~/External *\|/{next};"\
6312 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6313 " {if(hide[section]) next};"\
6314 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6315 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6316 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6317 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6318 " ' prfx=^$ac_symprfx"
6319 else
6320 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6323 # Check to see that the pipe works correctly.
6324 pipe_works=no
6326 rm -f conftest*
6327 cat > conftest.$ac_ext <<_LT_EOF
6328 #ifdef __cplusplus
6329 extern "C" {
6330 #endif
6331 char nm_test_var;
6332 void nm_test_func(void);
6333 void nm_test_func(void){}
6334 #ifdef __cplusplus
6336 #endif
6337 int main(){nm_test_var='a';nm_test_func();return(0);}
6338 _LT_EOF
6340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6341 (eval $ac_compile) 2>&5
6342 ac_status=$?
6343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6344 (exit $ac_status); }; then
6345 # Now try to grab the symbols.
6346 nlist=conftest.nm
6347 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6348 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6349 ac_status=$?
6350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351 (exit $ac_status); } && test -s "$nlist"; then
6352 # Try sorting and uniquifying the output.
6353 if sort "$nlist" | uniq > "$nlist"T; then
6354 mv -f "$nlist"T "$nlist"
6355 else
6356 rm -f "$nlist"T
6359 # Make sure that we snagged all the symbols we need.
6360 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6361 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6362 cat <<_LT_EOF > conftest.$ac_ext
6363 #ifdef __cplusplus
6364 extern "C" {
6365 #endif
6367 _LT_EOF
6368 # Now generate the symbol file.
6369 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6371 cat <<_LT_EOF >> conftest.$ac_ext
6373 /* The mapping between symbol names and symbols. */
6374 const struct {
6375 const char *name;
6376 void *address;
6378 lt__PROGRAM__LTX_preloaded_symbols[] =
6380 { "@PROGRAM@", (void *) 0 },
6381 _LT_EOF
6382 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6383 cat <<\_LT_EOF >> conftest.$ac_ext
6384 {0, (void *) 0}
6387 /* This works around a problem in FreeBSD linker */
6388 #ifdef FREEBSD_WORKAROUND
6389 static const void *lt_preloaded_setup() {
6390 return lt__PROGRAM__LTX_preloaded_symbols;
6392 #endif
6394 #ifdef __cplusplus
6396 #endif
6397 _LT_EOF
6398 # Now try linking the two files.
6399 mv conftest.$ac_objext conftstm.$ac_objext
6400 lt_save_LIBS="$LIBS"
6401 lt_save_CFLAGS="$CFLAGS"
6402 LIBS="conftstm.$ac_objext"
6403 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6405 (eval $ac_link) 2>&5
6406 ac_status=$?
6407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6409 pipe_works=yes
6411 LIBS="$lt_save_LIBS"
6412 CFLAGS="$lt_save_CFLAGS"
6413 else
6414 echo "cannot find nm_test_func in $nlist" >&5
6416 else
6417 echo "cannot find nm_test_var in $nlist" >&5
6419 else
6420 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6422 else
6423 echo "$progname: failed program was:" >&5
6424 cat conftest.$ac_ext >&5
6426 rm -rf conftest* conftst*
6428 # Do not use the global_symbol_pipe unless it works.
6429 if test "$pipe_works" = yes; then
6430 break
6431 else
6432 lt_cv_sys_global_symbol_pipe=
6434 done
6438 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6439 lt_cv_sys_global_symbol_to_cdecl=
6441 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6442 echo "$as_me:$LINENO: result: failed" >&5
6443 echo "${ECHO_T}failed" >&6
6444 else
6445 echo "$as_me:$LINENO: result: ok" >&5
6446 echo "${ECHO_T}ok" >&6
6470 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6471 if test "${enable_libtool_lock+set}" = set; then
6472 enableval="$enable_libtool_lock"
6475 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6477 # Some flags need to be propagated to the compiler or linker for good
6478 # libtool support.
6479 case $host in
6480 ia64-*-hpux*)
6481 # Find out which ABI we are using.
6482 echo 'int i;' > conftest.$ac_ext
6483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6484 (eval $ac_compile) 2>&5
6485 ac_status=$?
6486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487 (exit $ac_status); }; then
6488 case `/usr/bin/file conftest.$ac_objext` in
6489 *ELF-32*)
6490 HPUX_IA64_MODE="32"
6492 *ELF-64*)
6493 HPUX_IA64_MODE="64"
6495 esac
6497 rm -rf conftest*
6499 *-*-irix6*)
6500 # Find out which ABI we are using.
6501 echo '#line 6501 "configure"' > conftest.$ac_ext
6502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6503 (eval $ac_compile) 2>&5
6504 ac_status=$?
6505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6506 (exit $ac_status); }; then
6507 if test "$lt_cv_prog_gnu_ld" = yes; then
6508 case `/usr/bin/file conftest.$ac_objext` in
6509 *32-bit*)
6510 LD="${LD-ld} -melf32bsmip"
6512 *N32*)
6513 LD="${LD-ld} -melf32bmipn32"
6515 *64-bit*)
6516 LD="${LD-ld} -melf64bmip"
6518 esac
6519 else
6520 case `/usr/bin/file conftest.$ac_objext` in
6521 *32-bit*)
6522 LD="${LD-ld} -32"
6524 *N32*)
6525 LD="${LD-ld} -n32"
6527 *64-bit*)
6528 LD="${LD-ld} -64"
6530 esac
6533 rm -rf conftest*
6536 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6537 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6538 # Find out which ABI we are using.
6539 echo 'int i;' > conftest.$ac_ext
6540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6541 (eval $ac_compile) 2>&5
6542 ac_status=$?
6543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544 (exit $ac_status); }; then
6545 case `/usr/bin/file conftest.o` in
6546 *32-bit*)
6547 case $host in
6548 x86_64-*kfreebsd*-gnu)
6549 LD="${LD-ld} -m elf_i386_fbsd"
6551 x86_64-*linux*)
6552 LD="${LD-ld} -m elf_i386"
6554 ppc64-*linux*|powerpc64-*linux*)
6555 LD="${LD-ld} -m elf32ppclinux"
6557 s390x-*linux*)
6558 LD="${LD-ld} -m elf_s390"
6560 sparc64-*linux*)
6561 LD="${LD-ld} -m elf32_sparc"
6563 esac
6565 *64-bit*)
6566 case $host in
6567 x86_64-*kfreebsd*-gnu)
6568 LD="${LD-ld} -m elf_x86_64_fbsd"
6570 x86_64-*linux*)
6571 LD="${LD-ld} -m elf_x86_64"
6573 ppc*-*linux*|powerpc*-*linux*)
6574 LD="${LD-ld} -m elf64ppc"
6576 s390*-*linux*|s390*-*tpf*)
6577 LD="${LD-ld} -m elf64_s390"
6579 sparc*-*linux*)
6580 LD="${LD-ld} -m elf64_sparc"
6582 esac
6584 esac
6586 rm -rf conftest*
6589 *-*-sco3.2v5*)
6590 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6591 SAVE_CFLAGS="$CFLAGS"
6592 CFLAGS="$CFLAGS -belf"
6593 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6594 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6595 if test "${lt_cv_cc_needs_belf+set}" = set; then
6596 echo $ECHO_N "(cached) $ECHO_C" >&6
6597 else
6598 ac_ext=c
6599 ac_cpp='$CPP $CPPFLAGS'
6600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6604 cat >conftest.$ac_ext <<_ACEOF
6605 /* confdefs.h. */
6606 _ACEOF
6607 cat confdefs.h >>conftest.$ac_ext
6608 cat >>conftest.$ac_ext <<_ACEOF
6609 /* end confdefs.h. */
6612 main ()
6616 return 0;
6618 _ACEOF
6619 rm -f conftest.$ac_objext conftest$ac_exeext
6620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6621 (eval $ac_link) 2>conftest.er1
6622 ac_status=$?
6623 grep -v '^ *+' conftest.er1 >conftest.err
6624 rm -f conftest.er1
6625 cat conftest.err >&5
6626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627 (exit $ac_status); } &&
6628 { ac_try='test -z "$ac_c_werror_flag"
6629 || test ! -s conftest.err'
6630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6631 (eval $ac_try) 2>&5
6632 ac_status=$?
6633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634 (exit $ac_status); }; } &&
6635 { ac_try='test -s conftest$ac_exeext'
6636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6637 (eval $ac_try) 2>&5
6638 ac_status=$?
6639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640 (exit $ac_status); }; }; then
6641 lt_cv_cc_needs_belf=yes
6642 else
6643 echo "$as_me: failed program was:" >&5
6644 sed 's/^/| /' conftest.$ac_ext >&5
6646 lt_cv_cc_needs_belf=no
6648 rm -f conftest.err conftest.$ac_objext \
6649 conftest$ac_exeext conftest.$ac_ext
6650 ac_ext=c
6651 ac_cpp='$CPP $CPPFLAGS'
6652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6657 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6658 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6659 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6660 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6661 CFLAGS="$SAVE_CFLAGS"
6664 sparc*-*solaris*)
6665 # Find out which ABI we are using.
6666 echo 'int i;' > conftest.$ac_ext
6667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6668 (eval $ac_compile) 2>&5
6669 ac_status=$?
6670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6671 (exit $ac_status); }; then
6672 case `/usr/bin/file conftest.o` in
6673 *64-bit*)
6674 case $lt_cv_prog_gnu_ld in
6675 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6677 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6678 LD="${LD-ld} -64"
6681 esac
6683 esac
6685 rm -rf conftest*
6687 esac
6689 need_locks="$enable_libtool_lock"
6692 case $host_os in
6693 rhapsody* | darwin*)
6694 if test -n "$ac_tool_prefix"; then
6695 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6696 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6697 echo "$as_me:$LINENO: checking for $ac_word" >&5
6698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6699 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6700 echo $ECHO_N "(cached) $ECHO_C" >&6
6701 else
6702 if test -n "$DSYMUTIL"; then
6703 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6704 else
6705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6706 for as_dir in $PATH
6708 IFS=$as_save_IFS
6709 test -z "$as_dir" && as_dir=.
6710 for ac_exec_ext in '' $ac_executable_extensions; do
6711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6712 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6714 break 2
6716 done
6717 done
6721 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6722 if test -n "$DSYMUTIL"; then
6723 echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6724 echo "${ECHO_T}$DSYMUTIL" >&6
6725 else
6726 echo "$as_me:$LINENO: result: no" >&5
6727 echo "${ECHO_T}no" >&6
6731 if test -z "$ac_cv_prog_DSYMUTIL"; then
6732 ac_ct_DSYMUTIL=$DSYMUTIL
6733 # Extract the first word of "dsymutil", so it can be a program name with args.
6734 set dummy dsymutil; ac_word=$2
6735 echo "$as_me:$LINENO: checking for $ac_word" >&5
6736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6737 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6738 echo $ECHO_N "(cached) $ECHO_C" >&6
6739 else
6740 if test -n "$ac_ct_DSYMUTIL"; then
6741 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6742 else
6743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6744 for as_dir in $PATH
6746 IFS=$as_save_IFS
6747 test -z "$as_dir" && as_dir=.
6748 for ac_exec_ext in '' $ac_executable_extensions; do
6749 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6750 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6752 break 2
6754 done
6755 done
6757 test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
6760 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6761 if test -n "$ac_ct_DSYMUTIL"; then
6762 echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6763 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
6764 else
6765 echo "$as_me:$LINENO: result: no" >&5
6766 echo "${ECHO_T}no" >&6
6769 DSYMUTIL=$ac_ct_DSYMUTIL
6770 else
6771 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6774 if test -n "$ac_tool_prefix"; then
6775 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6776 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6777 echo "$as_me:$LINENO: checking for $ac_word" >&5
6778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6779 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6780 echo $ECHO_N "(cached) $ECHO_C" >&6
6781 else
6782 if test -n "$NMEDIT"; then
6783 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6784 else
6785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6786 for as_dir in $PATH
6788 IFS=$as_save_IFS
6789 test -z "$as_dir" && as_dir=.
6790 for ac_exec_ext in '' $ac_executable_extensions; do
6791 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6792 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6794 break 2
6796 done
6797 done
6801 NMEDIT=$ac_cv_prog_NMEDIT
6802 if test -n "$NMEDIT"; then
6803 echo "$as_me:$LINENO: result: $NMEDIT" >&5
6804 echo "${ECHO_T}$NMEDIT" >&6
6805 else
6806 echo "$as_me:$LINENO: result: no" >&5
6807 echo "${ECHO_T}no" >&6
6811 if test -z "$ac_cv_prog_NMEDIT"; then
6812 ac_ct_NMEDIT=$NMEDIT
6813 # Extract the first word of "nmedit", so it can be a program name with args.
6814 set dummy nmedit; ac_word=$2
6815 echo "$as_me:$LINENO: checking for $ac_word" >&5
6816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6817 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6818 echo $ECHO_N "(cached) $ECHO_C" >&6
6819 else
6820 if test -n "$ac_ct_NMEDIT"; then
6821 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6822 else
6823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6824 for as_dir in $PATH
6826 IFS=$as_save_IFS
6827 test -z "$as_dir" && as_dir=.
6828 for ac_exec_ext in '' $ac_executable_extensions; do
6829 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6830 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6832 break 2
6834 done
6835 done
6837 test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
6840 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6841 if test -n "$ac_ct_NMEDIT"; then
6842 echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6843 echo "${ECHO_T}$ac_ct_NMEDIT" >&6
6844 else
6845 echo "$as_me:$LINENO: result: no" >&5
6846 echo "${ECHO_T}no" >&6
6849 NMEDIT=$ac_ct_NMEDIT
6850 else
6851 NMEDIT="$ac_cv_prog_NMEDIT"
6854 if test -n "$ac_tool_prefix"; then
6855 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6856 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6857 echo "$as_me:$LINENO: checking for $ac_word" >&5
6858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6859 if test "${ac_cv_prog_LIPO+set}" = set; then
6860 echo $ECHO_N "(cached) $ECHO_C" >&6
6861 else
6862 if test -n "$LIPO"; then
6863 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6864 else
6865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6866 for as_dir in $PATH
6868 IFS=$as_save_IFS
6869 test -z "$as_dir" && as_dir=.
6870 for ac_exec_ext in '' $ac_executable_extensions; do
6871 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6872 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6874 break 2
6876 done
6877 done
6881 LIPO=$ac_cv_prog_LIPO
6882 if test -n "$LIPO"; then
6883 echo "$as_me:$LINENO: result: $LIPO" >&5
6884 echo "${ECHO_T}$LIPO" >&6
6885 else
6886 echo "$as_me:$LINENO: result: no" >&5
6887 echo "${ECHO_T}no" >&6
6891 if test -z "$ac_cv_prog_LIPO"; then
6892 ac_ct_LIPO=$LIPO
6893 # Extract the first word of "lipo", so it can be a program name with args.
6894 set dummy lipo; ac_word=$2
6895 echo "$as_me:$LINENO: checking for $ac_word" >&5
6896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6897 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6898 echo $ECHO_N "(cached) $ECHO_C" >&6
6899 else
6900 if test -n "$ac_ct_LIPO"; then
6901 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6902 else
6903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6904 for as_dir in $PATH
6906 IFS=$as_save_IFS
6907 test -z "$as_dir" && as_dir=.
6908 for ac_exec_ext in '' $ac_executable_extensions; do
6909 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6910 ac_cv_prog_ac_ct_LIPO="lipo"
6911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6912 break 2
6914 done
6915 done
6917 test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
6920 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6921 if test -n "$ac_ct_LIPO"; then
6922 echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6923 echo "${ECHO_T}$ac_ct_LIPO" >&6
6924 else
6925 echo "$as_me:$LINENO: result: no" >&5
6926 echo "${ECHO_T}no" >&6
6929 LIPO=$ac_ct_LIPO
6930 else
6931 LIPO="$ac_cv_prog_LIPO"
6934 if test -n "$ac_tool_prefix"; then
6935 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6936 set dummy ${ac_tool_prefix}otool; ac_word=$2
6937 echo "$as_me:$LINENO: checking for $ac_word" >&5
6938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6939 if test "${ac_cv_prog_OTOOL+set}" = set; then
6940 echo $ECHO_N "(cached) $ECHO_C" >&6
6941 else
6942 if test -n "$OTOOL"; then
6943 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6944 else
6945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6946 for as_dir in $PATH
6948 IFS=$as_save_IFS
6949 test -z "$as_dir" && as_dir=.
6950 for ac_exec_ext in '' $ac_executable_extensions; do
6951 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6952 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6954 break 2
6956 done
6957 done
6961 OTOOL=$ac_cv_prog_OTOOL
6962 if test -n "$OTOOL"; then
6963 echo "$as_me:$LINENO: result: $OTOOL" >&5
6964 echo "${ECHO_T}$OTOOL" >&6
6965 else
6966 echo "$as_me:$LINENO: result: no" >&5
6967 echo "${ECHO_T}no" >&6
6971 if test -z "$ac_cv_prog_OTOOL"; then
6972 ac_ct_OTOOL=$OTOOL
6973 # Extract the first word of "otool", so it can be a program name with args.
6974 set dummy otool; ac_word=$2
6975 echo "$as_me:$LINENO: checking for $ac_word" >&5
6976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6977 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6978 echo $ECHO_N "(cached) $ECHO_C" >&6
6979 else
6980 if test -n "$ac_ct_OTOOL"; then
6981 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6982 else
6983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6984 for as_dir in $PATH
6986 IFS=$as_save_IFS
6987 test -z "$as_dir" && as_dir=.
6988 for ac_exec_ext in '' $ac_executable_extensions; do
6989 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6990 ac_cv_prog_ac_ct_OTOOL="otool"
6991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6992 break 2
6994 done
6995 done
6997 test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
7000 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7001 if test -n "$ac_ct_OTOOL"; then
7002 echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7003 echo "${ECHO_T}$ac_ct_OTOOL" >&6
7004 else
7005 echo "$as_me:$LINENO: result: no" >&5
7006 echo "${ECHO_T}no" >&6
7009 OTOOL=$ac_ct_OTOOL
7010 else
7011 OTOOL="$ac_cv_prog_OTOOL"
7014 if test -n "$ac_tool_prefix"; then
7015 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7016 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7017 echo "$as_me:$LINENO: checking for $ac_word" >&5
7018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7019 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7020 echo $ECHO_N "(cached) $ECHO_C" >&6
7021 else
7022 if test -n "$OTOOL64"; then
7023 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7024 else
7025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7026 for as_dir in $PATH
7028 IFS=$as_save_IFS
7029 test -z "$as_dir" && as_dir=.
7030 for ac_exec_ext in '' $ac_executable_extensions; do
7031 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7032 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7034 break 2
7036 done
7037 done
7041 OTOOL64=$ac_cv_prog_OTOOL64
7042 if test -n "$OTOOL64"; then
7043 echo "$as_me:$LINENO: result: $OTOOL64" >&5
7044 echo "${ECHO_T}$OTOOL64" >&6
7045 else
7046 echo "$as_me:$LINENO: result: no" >&5
7047 echo "${ECHO_T}no" >&6
7051 if test -z "$ac_cv_prog_OTOOL64"; then
7052 ac_ct_OTOOL64=$OTOOL64
7053 # Extract the first word of "otool64", so it can be a program name with args.
7054 set dummy otool64; ac_word=$2
7055 echo "$as_me:$LINENO: checking for $ac_word" >&5
7056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7057 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7058 echo $ECHO_N "(cached) $ECHO_C" >&6
7059 else
7060 if test -n "$ac_ct_OTOOL64"; then
7061 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7062 else
7063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7064 for as_dir in $PATH
7066 IFS=$as_save_IFS
7067 test -z "$as_dir" && as_dir=.
7068 for ac_exec_ext in '' $ac_executable_extensions; do
7069 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7070 ac_cv_prog_ac_ct_OTOOL64="otool64"
7071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7072 break 2
7074 done
7075 done
7077 test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
7080 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7081 if test -n "$ac_ct_OTOOL64"; then
7082 echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7083 echo "${ECHO_T}$ac_ct_OTOOL64" >&6
7084 else
7085 echo "$as_me:$LINENO: result: no" >&5
7086 echo "${ECHO_T}no" >&6
7089 OTOOL64=$ac_ct_OTOOL64
7090 else
7091 OTOOL64="$ac_cv_prog_OTOOL64"
7120 echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7121 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
7122 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7123 echo $ECHO_N "(cached) $ECHO_C" >&6
7124 else
7125 lt_cv_apple_cc_single_mod=no
7126 if test -z "${LT_MULTI_MODULE}"; then
7127 # By default we will add the -single_module flag. You can override
7128 # by either setting the environment variable LT_MULTI_MODULE
7129 # non-empty at configure time, or by adding -multi_module to the
7130 # link flags.
7131 rm -rf libconftest.dylib*
7132 echo "int foo(void){return 1;}" > conftest.c
7133 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7134 -dynamiclib -Wl,-single_module conftest.c" >&5
7135 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7136 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7137 _lt_result=$?
7138 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7139 lt_cv_apple_cc_single_mod=yes
7140 else
7141 cat conftest.err >&5
7143 rm -rf libconftest.dylib*
7144 rm -f conftest.*
7147 echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7148 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
7149 echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7150 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
7151 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7152 echo $ECHO_N "(cached) $ECHO_C" >&6
7153 else
7154 lt_cv_ld_exported_symbols_list=no
7155 save_LDFLAGS=$LDFLAGS
7156 echo "_main" > conftest.sym
7157 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7158 cat >conftest.$ac_ext <<_ACEOF
7159 /* confdefs.h. */
7160 _ACEOF
7161 cat confdefs.h >>conftest.$ac_ext
7162 cat >>conftest.$ac_ext <<_ACEOF
7163 /* end confdefs.h. */
7166 main ()
7170 return 0;
7172 _ACEOF
7173 rm -f conftest.$ac_objext conftest$ac_exeext
7174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7175 (eval $ac_link) 2>conftest.er1
7176 ac_status=$?
7177 grep -v '^ *+' conftest.er1 >conftest.err
7178 rm -f conftest.er1
7179 cat conftest.err >&5
7180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7181 (exit $ac_status); } &&
7182 { ac_try='test -z "$ac_c_werror_flag"
7183 || test ! -s conftest.err'
7184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7185 (eval $ac_try) 2>&5
7186 ac_status=$?
7187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7188 (exit $ac_status); }; } &&
7189 { ac_try='test -s conftest$ac_exeext'
7190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7191 (eval $ac_try) 2>&5
7192 ac_status=$?
7193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194 (exit $ac_status); }; }; then
7195 lt_cv_ld_exported_symbols_list=yes
7196 else
7197 echo "$as_me: failed program was:" >&5
7198 sed 's/^/| /' conftest.$ac_ext >&5
7200 lt_cv_ld_exported_symbols_list=no
7202 rm -f conftest.err conftest.$ac_objext \
7203 conftest$ac_exeext conftest.$ac_ext
7204 LDFLAGS="$save_LDFLAGS"
7207 echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7208 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
7209 case $host_os in
7210 rhapsody* | darwin1.[012])
7211 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7212 darwin1.*)
7213 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7214 darwin*) # darwin 5.x on
7215 # if running on 10.5 or later, the deployment target defaults
7216 # to the OS version, if on x86, and 10.4, the deployment
7217 # target defaults to 10.4. Don't you love it?
7218 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7219 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7220 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7221 10.[012]*)
7222 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7223 10.*)
7224 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7225 esac
7227 esac
7228 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7229 _lt_dar_single_mod='$single_module'
7231 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7232 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7233 else
7234 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7236 if test "$DSYMUTIL" != ":"; then
7237 _lt_dsymutil='~$DSYMUTIL $lib || :'
7238 else
7239 _lt_dsymutil=
7242 esac
7245 for ac_header in dlfcn.h
7247 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7248 echo "$as_me:$LINENO: checking for $ac_header" >&5
7249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7250 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7251 echo $ECHO_N "(cached) $ECHO_C" >&6
7252 else
7253 cat >conftest.$ac_ext <<_ACEOF
7254 /* confdefs.h. */
7255 _ACEOF
7256 cat confdefs.h >>conftest.$ac_ext
7257 cat >>conftest.$ac_ext <<_ACEOF
7258 /* end confdefs.h. */
7259 $ac_includes_default
7261 #include <$ac_header>
7262 _ACEOF
7263 rm -f conftest.$ac_objext
7264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7265 (eval $ac_compile) 2>conftest.er1
7266 ac_status=$?
7267 grep -v '^ *+' conftest.er1 >conftest.err
7268 rm -f conftest.er1
7269 cat conftest.err >&5
7270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271 (exit $ac_status); } &&
7272 { ac_try='test -z "$ac_c_werror_flag"
7273 || test ! -s conftest.err'
7274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7275 (eval $ac_try) 2>&5
7276 ac_status=$?
7277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278 (exit $ac_status); }; } &&
7279 { ac_try='test -s conftest.$ac_objext'
7280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7281 (eval $ac_try) 2>&5
7282 ac_status=$?
7283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7284 (exit $ac_status); }; }; then
7285 eval "$as_ac_Header=yes"
7286 else
7287 echo "$as_me: failed program was:" >&5
7288 sed 's/^/| /' conftest.$ac_ext >&5
7290 eval "$as_ac_Header=no"
7292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7294 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7295 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7296 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7297 cat >>confdefs.h <<_ACEOF
7298 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7299 _ACEOF
7303 done
7307 # Set options
7311 enable_dlopen=no
7314 enable_win32_dll=no
7318 # Check whether --enable-static or --disable-static was given.
7319 if test "${enable_static+set}" = set; then
7320 enableval="$enable_static"
7321 p=${PACKAGE-default}
7322 case $enableval in
7323 yes) enable_static=yes ;;
7324 no) enable_static=no ;;
7326 enable_static=no
7327 # Look at the argument we got. We use all the common list separators.
7328 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7329 for pkg in $enableval; do
7330 IFS="$lt_save_ifs"
7331 if test "X$pkg" = "X$p"; then
7332 enable_static=yes
7334 done
7335 IFS="$lt_save_ifs"
7337 esac
7338 else
7339 enable_static=yes
7350 # Check whether --with-pic or --without-pic was given.
7351 if test "${with_pic+set}" = set; then
7352 withval="$with_pic"
7353 pic_mode="$withval"
7354 else
7355 pic_mode=default
7358 test -z "$pic_mode" && pic_mode=default
7366 # Check whether --enable-fast-install or --disable-fast-install was given.
7367 if test "${enable_fast_install+set}" = set; then
7368 enableval="$enable_fast_install"
7369 p=${PACKAGE-default}
7370 case $enableval in
7371 yes) enable_fast_install=yes ;;
7372 no) enable_fast_install=no ;;
7374 enable_fast_install=no
7375 # Look at the argument we got. We use all the common list separators.
7376 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7377 for pkg in $enableval; do
7378 IFS="$lt_save_ifs"
7379 if test "X$pkg" = "X$p"; then
7380 enable_fast_install=yes
7382 done
7383 IFS="$lt_save_ifs"
7385 esac
7386 else
7387 enable_fast_install=yes
7399 # This can be used to rebuild libtool when needed
7400 LIBTOOL_DEPS="$ltmain"
7402 # Always use our own libtool.
7403 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7429 test -z "$LN_S" && LN_S="ln -s"
7444 if test -n "${ZSH_VERSION+set}" ; then
7445 setopt NO_GLOB_SUBST
7448 echo "$as_me:$LINENO: checking for objdir" >&5
7449 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7450 if test "${lt_cv_objdir+set}" = set; then
7451 echo $ECHO_N "(cached) $ECHO_C" >&6
7452 else
7453 rm -f .libs 2>/dev/null
7454 mkdir .libs 2>/dev/null
7455 if test -d .libs; then
7456 lt_cv_objdir=.libs
7457 else
7458 # MS-DOS does not allow filenames that begin with a dot.
7459 lt_cv_objdir=_libs
7461 rmdir .libs 2>/dev/null
7463 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7464 echo "${ECHO_T}$lt_cv_objdir" >&6
7465 objdir=$lt_cv_objdir
7471 cat >>confdefs.h <<_ACEOF
7472 #define LT_OBJDIR "$lt_cv_objdir/"
7473 _ACEOF
7491 case $host_os in
7492 aix3*)
7493 # AIX sometimes has problems with the GCC collect2 program. For some
7494 # reason, if we set the COLLECT_NAMES environment variable, the problems
7495 # vanish in a puff of smoke.
7496 if test "X${COLLECT_NAMES+set}" != Xset; then
7497 COLLECT_NAMES=
7498 export COLLECT_NAMES
7501 esac
7503 # Sed substitution that helps us do robust quoting. It backslashifies
7504 # metacharacters that are still active within double-quoted strings.
7505 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7507 # Same as above, but do not quote variable references.
7508 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7510 # Sed substitution to delay expansion of an escaped shell variable in a
7511 # double_quote_subst'ed string.
7512 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7514 # Sed substitution to delay expansion of an escaped single quote.
7515 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7517 # Sed substitution to avoid accidental globbing in evaled expressions
7518 no_glob_subst='s/\*/\\\*/g'
7520 # Global variables:
7521 ofile=libtool
7522 can_build_shared=yes
7524 # All known linkers require a `.a' archive for static linking (except MSVC,
7525 # which needs '.lib').
7526 libext=a
7528 with_gnu_ld="$lt_cv_prog_gnu_ld"
7530 old_CC="$CC"
7531 old_CFLAGS="$CFLAGS"
7533 # Set sane defaults for various variables
7534 test -z "$CC" && CC=cc
7535 test -z "$LTCC" && LTCC=$CC
7536 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7537 test -z "$LD" && LD=ld
7538 test -z "$ac_objext" && ac_objext=o
7540 for cc_temp in $compiler""; do
7541 case $cc_temp in
7542 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7543 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7544 \-*) ;;
7545 *) break;;
7546 esac
7547 done
7548 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7551 # Only perform the check for file, if the check method requires it
7552 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7553 case $deplibs_check_method in
7554 file_magic*)
7555 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7556 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7557 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7558 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7559 echo $ECHO_N "(cached) $ECHO_C" >&6
7560 else
7561 case $MAGIC_CMD in
7562 [\\/*] | ?:[\\/]*)
7563 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7566 lt_save_MAGIC_CMD="$MAGIC_CMD"
7567 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7568 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7569 for ac_dir in $ac_dummy; do
7570 IFS="$lt_save_ifs"
7571 test -z "$ac_dir" && ac_dir=.
7572 if test -f $ac_dir/${ac_tool_prefix}file; then
7573 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7574 if test -n "$file_magic_test_file"; then
7575 case $deplibs_check_method in
7576 "file_magic "*)
7577 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7578 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7579 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7580 $EGREP "$file_magic_regex" > /dev/null; then
7582 else
7583 cat <<_LT_EOF 1>&2
7585 *** Warning: the command libtool uses to detect shared libraries,
7586 *** $file_magic_cmd, produces output that libtool cannot recognize.
7587 *** The result is that libtool may fail to recognize shared libraries
7588 *** as such. This will affect the creation of libtool libraries that
7589 *** depend on shared libraries, but programs linked with such libtool
7590 *** libraries will work regardless of this problem. Nevertheless, you
7591 *** may want to report the problem to your system manager and/or to
7592 *** bug-libtool@gnu.org
7594 _LT_EOF
7595 fi ;;
7596 esac
7598 break
7600 done
7601 IFS="$lt_save_ifs"
7602 MAGIC_CMD="$lt_save_MAGIC_CMD"
7604 esac
7607 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7608 if test -n "$MAGIC_CMD"; then
7609 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7610 echo "${ECHO_T}$MAGIC_CMD" >&6
7611 else
7612 echo "$as_me:$LINENO: result: no" >&5
7613 echo "${ECHO_T}no" >&6
7620 if test -z "$lt_cv_path_MAGIC_CMD"; then
7621 if test -n "$ac_tool_prefix"; then
7622 echo "$as_me:$LINENO: checking for file" >&5
7623 echo $ECHO_N "checking for file... $ECHO_C" >&6
7624 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7625 echo $ECHO_N "(cached) $ECHO_C" >&6
7626 else
7627 case $MAGIC_CMD in
7628 [\\/*] | ?:[\\/]*)
7629 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7632 lt_save_MAGIC_CMD="$MAGIC_CMD"
7633 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7634 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7635 for ac_dir in $ac_dummy; do
7636 IFS="$lt_save_ifs"
7637 test -z "$ac_dir" && ac_dir=.
7638 if test -f $ac_dir/file; then
7639 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7640 if test -n "$file_magic_test_file"; then
7641 case $deplibs_check_method in
7642 "file_magic "*)
7643 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7644 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7645 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7646 $EGREP "$file_magic_regex" > /dev/null; then
7648 else
7649 cat <<_LT_EOF 1>&2
7651 *** Warning: the command libtool uses to detect shared libraries,
7652 *** $file_magic_cmd, produces output that libtool cannot recognize.
7653 *** The result is that libtool may fail to recognize shared libraries
7654 *** as such. This will affect the creation of libtool libraries that
7655 *** depend on shared libraries, but programs linked with such libtool
7656 *** libraries will work regardless of this problem. Nevertheless, you
7657 *** may want to report the problem to your system manager and/or to
7658 *** bug-libtool@gnu.org
7660 _LT_EOF
7661 fi ;;
7662 esac
7664 break
7666 done
7667 IFS="$lt_save_ifs"
7668 MAGIC_CMD="$lt_save_MAGIC_CMD"
7670 esac
7673 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7674 if test -n "$MAGIC_CMD"; then
7675 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7676 echo "${ECHO_T}$MAGIC_CMD" >&6
7677 else
7678 echo "$as_me:$LINENO: result: no" >&5
7679 echo "${ECHO_T}no" >&6
7683 else
7684 MAGIC_CMD=:
7690 esac
7692 # Use C for the default configuration in the libtool script
7694 lt_save_CC="$CC"
7695 ac_ext=c
7696 ac_cpp='$CPP $CPPFLAGS'
7697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7702 # Source file extension for C test sources.
7703 ac_ext=c
7705 # Object file extension for compiled C test sources.
7706 objext=o
7707 objext=$objext
7709 # Code to be used in simple compile tests
7710 lt_simple_compile_test_code="int some_variable = 0;"
7712 # Code to be used in simple link tests
7713 lt_simple_link_test_code='int main(){return(0);}'
7721 # If no C compiler was specified, use CC.
7722 LTCC=${LTCC-"$CC"}
7724 # If no C compiler flags were specified, use CFLAGS.
7725 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7727 # Allow CC to be a program name with arguments.
7728 compiler=$CC
7730 # Save the default compiler, since it gets overwritten when the other
7731 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7732 compiler_DEFAULT=$CC
7734 # save warnings/boilerplate of simple test code
7735 ac_outfile=conftest.$ac_objext
7736 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7737 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7738 _lt_compiler_boilerplate=`cat conftest.err`
7739 $RM conftest*
7741 ac_outfile=conftest.$ac_objext
7742 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7743 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7744 _lt_linker_boilerplate=`cat conftest.err`
7745 $RM -r conftest*
7748 ## CAVEAT EMPTOR:
7749 ## There is no encapsulation within the following macros, do not change
7750 ## the running order or otherwise move them around unless you know exactly
7751 ## what you are doing...
7752 if test -n "$compiler"; then
7754 lt_prog_compiler_no_builtin_flag=
7756 if test "$GCC" = yes; then
7757 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7759 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7760 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7761 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7762 echo $ECHO_N "(cached) $ECHO_C" >&6
7763 else
7764 lt_cv_prog_compiler_rtti_exceptions=no
7765 ac_outfile=conftest.$ac_objext
7766 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7767 lt_compiler_flag="-fno-rtti -fno-exceptions"
7768 # Insert the option either (1) after the last *FLAGS variable, or
7769 # (2) before a word containing "conftest.", or (3) at the end.
7770 # Note that $ac_compile itself does not contain backslashes and begins
7771 # with a dollar sign (not a hyphen), so the echo should work correctly.
7772 # The option is referenced via a variable to avoid confusing sed.
7773 lt_compile=`echo "$ac_compile" | $SED \
7774 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7775 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7776 -e 's:$: $lt_compiler_flag:'`
7777 (eval echo "\"\$as_me:7777: $lt_compile\"" >&5)
7778 (eval "$lt_compile" 2>conftest.err)
7779 ac_status=$?
7780 cat conftest.err >&5
7781 echo "$as_me:7781: \$? = $ac_status" >&5
7782 if (exit $ac_status) && test -s "$ac_outfile"; then
7783 # The compiler can only warn and ignore the option if not recognized
7784 # So say no if there are warnings other than the usual output.
7785 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7786 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7787 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7788 lt_cv_prog_compiler_rtti_exceptions=yes
7791 $RM conftest*
7794 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7795 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7797 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7798 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7799 else
7810 lt_prog_compiler_wl=
7811 lt_prog_compiler_pic=
7812 lt_prog_compiler_static=
7814 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7815 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7817 if test "$GCC" = yes; then
7818 lt_prog_compiler_wl='-Wl,'
7819 lt_prog_compiler_static='-static'
7821 case $host_os in
7822 aix*)
7823 # All AIX code is PIC.
7824 if test "$host_cpu" = ia64; then
7825 # AIX 5 now supports IA64 processor
7826 lt_prog_compiler_static='-Bstatic'
7830 amigaos*)
7831 case $host_cpu in
7832 powerpc)
7833 # see comment about AmigaOS4 .so support
7834 lt_prog_compiler_pic='-fPIC'
7836 m68k)
7837 # FIXME: we need at least 68020 code to build shared libraries, but
7838 # adding the `-m68020' flag to GCC prevents building anything better,
7839 # like `-m68040'.
7840 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7842 esac
7845 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7846 # PIC is the default for these OSes.
7849 mingw* | cygwin* | pw32* | os2* | cegcc*)
7850 # This hack is so that the source file can tell whether it is being
7851 # built for inclusion in a dll (and should export symbols for example).
7852 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7853 # (--disable-auto-import) libraries
7854 lt_prog_compiler_pic='-DDLL_EXPORT'
7857 darwin* | rhapsody*)
7858 # PIC is the default on this platform
7859 # Common symbols not allowed in MH_DYLIB files
7860 lt_prog_compiler_pic='-fno-common'
7863 hpux*)
7864 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7865 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7866 # sets the default TLS model and affects inlining.
7867 case $host_cpu in
7868 hppa*64*)
7869 # +Z the default
7872 lt_prog_compiler_pic='-fPIC'
7874 esac
7877 interix[3-9]*)
7878 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7879 # Instead, we relocate shared libraries at runtime.
7882 msdosdjgpp*)
7883 # Just because we use GCC doesn't mean we suddenly get shared libraries
7884 # on systems that don't support them.
7885 lt_prog_compiler_can_build_shared=no
7886 enable_shared=no
7889 *nto* | *qnx*)
7890 # QNX uses GNU C++, but need to define -shared option too, otherwise
7891 # it will coredump.
7892 lt_prog_compiler_pic='-fPIC -shared'
7895 sysv4*MP*)
7896 if test -d /usr/nec; then
7897 lt_prog_compiler_pic=-Kconform_pic
7902 lt_prog_compiler_pic='-fPIC'
7904 esac
7905 else
7906 # PORTME Check for flag to pass linker flags through the system compiler.
7907 case $host_os in
7908 aix*)
7909 lt_prog_compiler_wl='-Wl,'
7910 if test "$host_cpu" = ia64; then
7911 # AIX 5 now supports IA64 processor
7912 lt_prog_compiler_static='-Bstatic'
7913 else
7914 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7918 mingw* | cygwin* | pw32* | os2* | cegcc*)
7919 # This hack is so that the source file can tell whether it is being
7920 # built for inclusion in a dll (and should export symbols for example).
7921 lt_prog_compiler_pic='-DDLL_EXPORT'
7924 hpux9* | hpux10* | hpux11*)
7925 lt_prog_compiler_wl='-Wl,'
7926 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7927 # not for PA HP-UX.
7928 case $host_cpu in
7929 hppa*64*|ia64*)
7930 # +Z the default
7933 lt_prog_compiler_pic='+Z'
7935 esac
7936 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7937 lt_prog_compiler_static='${wl}-a ${wl}archive'
7940 irix5* | irix6* | nonstopux*)
7941 lt_prog_compiler_wl='-Wl,'
7942 # PIC (with -KPIC) is the default.
7943 lt_prog_compiler_static='-non_shared'
7946 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7947 case $cc_basename in
7948 # old Intel for x86_64 which still supported -KPIC.
7949 ecc*)
7950 lt_prog_compiler_wl='-Wl,'
7951 lt_prog_compiler_pic='-KPIC'
7952 lt_prog_compiler_static='-static'
7954 # icc used to be incompatible with GCC.
7955 # ICC 10 doesn't accept -KPIC any more.
7956 icc* | ifort*)
7957 lt_prog_compiler_wl='-Wl,'
7958 lt_prog_compiler_pic='-fPIC'
7959 lt_prog_compiler_static='-static'
7961 # Lahey Fortran 8.1.
7962 lf95*)
7963 lt_prog_compiler_wl='-Wl,'
7964 lt_prog_compiler_pic='--shared'
7965 lt_prog_compiler_static='--static'
7967 pgcc* | pgf77* | pgf90* | pgf95*)
7968 # Portland Group compilers (*not* the Pentium gcc compiler,
7969 # which looks to be a dead project)
7970 lt_prog_compiler_wl='-Wl,'
7971 lt_prog_compiler_pic='-fpic'
7972 lt_prog_compiler_static='-Bstatic'
7974 ccc*)
7975 lt_prog_compiler_wl='-Wl,'
7976 # All Alpha code is PIC.
7977 lt_prog_compiler_static='-non_shared'
7979 xl*)
7980 # IBM XL C 8.0/Fortran 10.1 on PPC
7981 lt_prog_compiler_wl='-Wl,'
7982 lt_prog_compiler_pic='-qpic'
7983 lt_prog_compiler_static='-qstaticlink'
7986 case `$CC -V 2>&1 | sed 5q` in
7987 *Sun\ C*)
7988 # Sun C 5.9
7989 lt_prog_compiler_pic='-KPIC'
7990 lt_prog_compiler_static='-Bstatic'
7991 lt_prog_compiler_wl='-Wl,'
7993 *Sun\ F*)
7994 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7995 lt_prog_compiler_pic='-KPIC'
7996 lt_prog_compiler_static='-Bstatic'
7997 lt_prog_compiler_wl=''
7999 esac
8001 esac
8004 newsos6)
8005 lt_prog_compiler_pic='-KPIC'
8006 lt_prog_compiler_static='-Bstatic'
8009 *nto* | *qnx*)
8010 # QNX uses GNU C++, but need to define -shared option too, otherwise
8011 # it will coredump.
8012 lt_prog_compiler_pic='-fPIC -shared'
8015 osf3* | osf4* | osf5*)
8016 lt_prog_compiler_wl='-Wl,'
8017 # All OSF/1 code is PIC.
8018 lt_prog_compiler_static='-non_shared'
8021 rdos*)
8022 lt_prog_compiler_static='-non_shared'
8025 solaris*)
8026 lt_prog_compiler_pic='-KPIC'
8027 lt_prog_compiler_static='-Bstatic'
8028 case $cc_basename in
8029 f77* | f90* | f95*)
8030 lt_prog_compiler_wl='-Qoption ld ';;
8032 lt_prog_compiler_wl='-Wl,';;
8033 esac
8036 sunos4*)
8037 lt_prog_compiler_wl='-Qoption ld '
8038 lt_prog_compiler_pic='-PIC'
8039 lt_prog_compiler_static='-Bstatic'
8042 sysv4 | sysv4.2uw2* | sysv4.3*)
8043 lt_prog_compiler_wl='-Wl,'
8044 lt_prog_compiler_pic='-KPIC'
8045 lt_prog_compiler_static='-Bstatic'
8048 sysv4*MP*)
8049 if test -d /usr/nec ;then
8050 lt_prog_compiler_pic='-Kconform_pic'
8051 lt_prog_compiler_static='-Bstatic'
8055 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8056 lt_prog_compiler_wl='-Wl,'
8057 lt_prog_compiler_pic='-KPIC'
8058 lt_prog_compiler_static='-Bstatic'
8061 unicos*)
8062 lt_prog_compiler_wl='-Wl,'
8063 lt_prog_compiler_can_build_shared=no
8066 uts4*)
8067 lt_prog_compiler_pic='-pic'
8068 lt_prog_compiler_static='-Bstatic'
8072 lt_prog_compiler_can_build_shared=no
8074 esac
8077 case $host_os in
8078 # For platforms which do not support PIC, -DPIC is meaningless:
8079 *djgpp*)
8080 lt_prog_compiler_pic=
8083 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8085 esac
8086 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8087 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8095 # Check to make sure the PIC flag actually works.
8097 if test -n "$lt_prog_compiler_pic"; then
8098 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8099 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8100 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8101 echo $ECHO_N "(cached) $ECHO_C" >&6
8102 else
8103 lt_cv_prog_compiler_pic_works=no
8104 ac_outfile=conftest.$ac_objext
8105 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8106 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8107 # Insert the option either (1) after the last *FLAGS variable, or
8108 # (2) before a word containing "conftest.", or (3) at the end.
8109 # Note that $ac_compile itself does not contain backslashes and begins
8110 # with a dollar sign (not a hyphen), so the echo should work correctly.
8111 # The option is referenced via a variable to avoid confusing sed.
8112 lt_compile=`echo "$ac_compile" | $SED \
8113 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8114 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8115 -e 's:$: $lt_compiler_flag:'`
8116 (eval echo "\"\$as_me:8116: $lt_compile\"" >&5)
8117 (eval "$lt_compile" 2>conftest.err)
8118 ac_status=$?
8119 cat conftest.err >&5
8120 echo "$as_me:8120: \$? = $ac_status" >&5
8121 if (exit $ac_status) && test -s "$ac_outfile"; then
8122 # The compiler can only warn and ignore the option if not recognized
8123 # So say no if there are warnings other than the usual output.
8124 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8125 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8126 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8127 lt_cv_prog_compiler_pic_works=yes
8130 $RM conftest*
8133 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8134 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
8136 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8137 case $lt_prog_compiler_pic in
8138 "" | " "*) ;;
8139 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8140 esac
8141 else
8142 lt_prog_compiler_pic=
8143 lt_prog_compiler_can_build_shared=no
8154 # Check to make sure the static flag actually works.
8156 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8157 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8158 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8159 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8160 echo $ECHO_N "(cached) $ECHO_C" >&6
8161 else
8162 lt_cv_prog_compiler_static_works=no
8163 save_LDFLAGS="$LDFLAGS"
8164 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8165 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8166 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8167 # The linker can only warn and ignore the option if not recognized
8168 # So say no if there are warnings
8169 if test -s conftest.err; then
8170 # Append any errors to the config.log.
8171 cat conftest.err 1>&5
8172 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8173 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8174 if diff conftest.exp conftest.er2 >/dev/null; then
8175 lt_cv_prog_compiler_static_works=yes
8177 else
8178 lt_cv_prog_compiler_static_works=yes
8181 $RM -r conftest*
8182 LDFLAGS="$save_LDFLAGS"
8185 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8186 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
8188 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8190 else
8191 lt_prog_compiler_static=
8200 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8201 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8202 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8203 echo $ECHO_N "(cached) $ECHO_C" >&6
8204 else
8205 lt_cv_prog_compiler_c_o=no
8206 $RM -r conftest 2>/dev/null
8207 mkdir conftest
8208 cd conftest
8209 mkdir out
8210 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8212 lt_compiler_flag="-o out/conftest2.$ac_objext"
8213 # Insert the option either (1) after the last *FLAGS variable, or
8214 # (2) before a word containing "conftest.", or (3) at the end.
8215 # Note that $ac_compile itself does not contain backslashes and begins
8216 # with a dollar sign (not a hyphen), so the echo should work correctly.
8217 lt_compile=`echo "$ac_compile" | $SED \
8218 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8219 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8220 -e 's:$: $lt_compiler_flag:'`
8221 (eval echo "\"\$as_me:8221: $lt_compile\"" >&5)
8222 (eval "$lt_compile" 2>out/conftest.err)
8223 ac_status=$?
8224 cat out/conftest.err >&5
8225 echo "$as_me:8225: \$? = $ac_status" >&5
8226 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8227 then
8228 # The compiler can only warn and ignore the option if not recognized
8229 # So say no if there are warnings
8230 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8231 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8232 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8233 lt_cv_prog_compiler_c_o=yes
8236 chmod u+w . 2>&5
8237 $RM conftest*
8238 # SGI C++ compiler will create directory out/ii_files/ for
8239 # template instantiation
8240 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8241 $RM out/* && rmdir out
8242 cd ..
8243 $RM -r conftest
8244 $RM conftest*
8247 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8248 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8255 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8256 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8257 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8258 echo $ECHO_N "(cached) $ECHO_C" >&6
8259 else
8260 lt_cv_prog_compiler_c_o=no
8261 $RM -r conftest 2>/dev/null
8262 mkdir conftest
8263 cd conftest
8264 mkdir out
8265 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8267 lt_compiler_flag="-o out/conftest2.$ac_objext"
8268 # Insert the option either (1) after the last *FLAGS variable, or
8269 # (2) before a word containing "conftest.", or (3) at the end.
8270 # Note that $ac_compile itself does not contain backslashes and begins
8271 # with a dollar sign (not a hyphen), so the echo should work correctly.
8272 lt_compile=`echo "$ac_compile" | $SED \
8273 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8274 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8275 -e 's:$: $lt_compiler_flag:'`
8276 (eval echo "\"\$as_me:8276: $lt_compile\"" >&5)
8277 (eval "$lt_compile" 2>out/conftest.err)
8278 ac_status=$?
8279 cat out/conftest.err >&5
8280 echo "$as_me:8280: \$? = $ac_status" >&5
8281 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8282 then
8283 # The compiler can only warn and ignore the option if not recognized
8284 # So say no if there are warnings
8285 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8286 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8287 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8288 lt_cv_prog_compiler_c_o=yes
8291 chmod u+w . 2>&5
8292 $RM conftest*
8293 # SGI C++ compiler will create directory out/ii_files/ for
8294 # template instantiation
8295 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8296 $RM out/* && rmdir out
8297 cd ..
8298 $RM -r conftest
8299 $RM conftest*
8302 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8303 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8308 hard_links="nottested"
8309 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8310 # do not overwrite the value of need_locks provided by the user
8311 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8312 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8313 hard_links=yes
8314 $RM conftest*
8315 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8316 touch conftest.a
8317 ln conftest.a conftest.b 2>&5 || hard_links=no
8318 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8319 echo "$as_me:$LINENO: result: $hard_links" >&5
8320 echo "${ECHO_T}$hard_links" >&6
8321 if test "$hard_links" = no; then
8322 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8323 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8324 need_locks=warn
8326 else
8327 need_locks=no
8335 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8336 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8338 runpath_var=
8339 allow_undefined_flag=
8340 always_export_symbols=no
8341 archive_cmds=
8342 archive_expsym_cmds=
8343 compiler_needs_object=no
8344 enable_shared_with_static_runtimes=no
8345 export_dynamic_flag_spec=
8346 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8347 hardcode_automatic=no
8348 hardcode_direct=no
8349 hardcode_direct_absolute=no
8350 hardcode_libdir_flag_spec=
8351 hardcode_libdir_flag_spec_ld=
8352 hardcode_libdir_separator=
8353 hardcode_minus_L=no
8354 hardcode_shlibpath_var=unsupported
8355 inherit_rpath=no
8356 link_all_deplibs=unknown
8357 module_cmds=
8358 module_expsym_cmds=
8359 old_archive_from_new_cmds=
8360 old_archive_from_expsyms_cmds=
8361 thread_safe_flag_spec=
8362 whole_archive_flag_spec=
8363 # include_expsyms should be a list of space-separated symbols to be *always*
8364 # included in the symbol list
8365 include_expsyms=
8366 # exclude_expsyms can be an extended regexp of symbols to exclude
8367 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8368 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8369 # as well as any symbol that contains `d'.
8370 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8371 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8372 # platforms (ab)use it in PIC code, but their linkers get confused if
8373 # the symbol is explicitly referenced. Since portable code cannot
8374 # rely on this symbol name, it's probably fine to never include it in
8375 # preloaded symbol tables.
8376 # Exclude shared library initialization/finalization symbols.
8377 extract_expsyms_cmds=
8379 case $host_os in
8380 cygwin* | mingw* | pw32* | cegcc*)
8381 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8382 # When not using gcc, we currently assume that we are using
8383 # Microsoft Visual C++.
8384 if test "$GCC" != yes; then
8385 with_gnu_ld=no
8388 interix*)
8389 # we just hope/assume this is gcc and not c89 (= MSVC++)
8390 with_gnu_ld=yes
8392 openbsd*)
8393 with_gnu_ld=no
8395 esac
8397 ld_shlibs=yes
8398 if test "$with_gnu_ld" = yes; then
8399 # If archive_cmds runs LD, not CC, wlarc should be empty
8400 wlarc='${wl}'
8402 # Set some defaults for GNU ld with shared library support. These
8403 # are reset later if shared libraries are not supported. Putting them
8404 # here allows them to be overridden if necessary.
8405 runpath_var=LD_RUN_PATH
8406 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8407 export_dynamic_flag_spec='${wl}--export-dynamic'
8408 # ancient GNU ld didn't support --whole-archive et. al.
8409 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8410 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8411 else
8412 whole_archive_flag_spec=
8414 supports_anon_versioning=no
8415 case `$LD -v 2>&1` in
8416 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8417 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8418 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8419 *\ 2.11.*) ;; # other 2.11 versions
8420 *) supports_anon_versioning=yes ;;
8421 esac
8423 # See if GNU ld supports shared libraries.
8424 case $host_os in
8425 aix[3-9]*)
8426 # On AIX/PPC, the GNU linker is very broken
8427 if test "$host_cpu" != ia64; then
8428 ld_shlibs=no
8429 cat <<_LT_EOF 1>&2
8431 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8432 *** to be unable to reliably create shared libraries on AIX.
8433 *** Therefore, libtool is disabling shared libraries support. If you
8434 *** really care for shared libraries, you may want to modify your PATH
8435 *** so that a non-GNU linker is found, and then restart.
8437 _LT_EOF
8441 amigaos*)
8442 case $host_cpu in
8443 powerpc)
8444 # see comment about AmigaOS4 .so support
8445 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8446 archive_expsym_cmds=''
8448 m68k)
8449 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)'
8450 hardcode_libdir_flag_spec='-L$libdir'
8451 hardcode_minus_L=yes
8453 esac
8456 beos*)
8457 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8458 allow_undefined_flag=unsupported
8459 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8460 # support --undefined. This deserves some investigation. FIXME
8461 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8462 else
8463 ld_shlibs=no
8467 cygwin* | mingw* | pw32* | cegcc*)
8468 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8469 # as there is no search path for DLLs.
8470 hardcode_libdir_flag_spec='-L$libdir'
8471 allow_undefined_flag=unsupported
8472 always_export_symbols=no
8473 enable_shared_with_static_runtimes=yes
8474 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8476 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8477 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8478 # If the export-symbols file already is a .def file (1st line
8479 # is EXPORTS), use it as is; otherwise, prepend...
8480 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8481 cp $export_symbols $output_objdir/$soname.def;
8482 else
8483 echo EXPORTS > $output_objdir/$soname.def;
8484 cat $export_symbols >> $output_objdir/$soname.def;
8486 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8487 else
8488 ld_shlibs=no
8492 interix[3-9]*)
8493 hardcode_direct=no
8494 hardcode_shlibpath_var=no
8495 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8496 export_dynamic_flag_spec='${wl}-E'
8497 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8498 # Instead, shared libraries are loaded at an image base (0x10000000 by
8499 # default) and relocated if they conflict, which is a slow very memory
8500 # consuming and fragmenting process. To avoid this, we pick a random,
8501 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8502 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8503 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8504 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'
8507 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8508 tmp_diet=no
8509 if test "$host_os" = linux-dietlibc; then
8510 case $cc_basename in
8511 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8512 esac
8514 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8515 && test "$tmp_diet" = no
8516 then
8517 tmp_addflag=
8518 tmp_sharedflag='-shared'
8519 case $cc_basename,$host_cpu in
8520 pgcc*) # Portland Group C compiler
8521 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'
8522 tmp_addflag=' $pic_flag'
8524 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8525 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'
8526 tmp_addflag=' $pic_flag -Mnomain' ;;
8527 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8528 tmp_addflag=' -i_dynamic' ;;
8529 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8530 tmp_addflag=' -i_dynamic -nofor_main' ;;
8531 ifc* | ifort*) # Intel Fortran compiler
8532 tmp_addflag=' -nofor_main' ;;
8533 lf95*) # Lahey Fortran 8.1
8534 whole_archive_flag_spec=
8535 tmp_sharedflag='--shared' ;;
8536 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8537 tmp_sharedflag='-qmkshrobj'
8538 tmp_addflag= ;;
8539 esac
8540 case `$CC -V 2>&1 | sed 5q` in
8541 *Sun\ C*) # Sun C 5.9
8542 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'
8543 compiler_needs_object=yes
8544 tmp_sharedflag='-G' ;;
8545 *Sun\ F*) # Sun Fortran 8.3
8546 tmp_sharedflag='-G' ;;
8547 esac
8548 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8550 if test "x$supports_anon_versioning" = xyes; then
8551 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8552 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8553 echo "local: *; };" >> $output_objdir/$libname.ver~
8554 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8557 case $cc_basename in
8558 xlf*)
8559 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8560 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8561 hardcode_libdir_flag_spec=
8562 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8563 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8564 if test "x$supports_anon_versioning" = xyes; then
8565 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8566 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8567 echo "local: *; };" >> $output_objdir/$libname.ver~
8568 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8571 esac
8572 else
8573 ld_shlibs=no
8577 netbsd*)
8578 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8579 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8580 wlarc=
8581 else
8582 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8583 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8587 solaris*)
8588 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8589 ld_shlibs=no
8590 cat <<_LT_EOF 1>&2
8592 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8593 *** create shared libraries on Solaris systems. Therefore, libtool
8594 *** is disabling shared libraries support. We urge you to upgrade GNU
8595 *** binutils to release 2.9.1 or newer. Another option is to modify
8596 *** your PATH or compiler configuration so that the native linker is
8597 *** used, and then restart.
8599 _LT_EOF
8600 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8601 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8602 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8603 else
8604 ld_shlibs=no
8608 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8609 case `$LD -v 2>&1` in
8610 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8611 ld_shlibs=no
8612 cat <<_LT_EOF 1>&2
8614 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8615 *** reliably create shared libraries on SCO systems. Therefore, libtool
8616 *** is disabling shared libraries support. We urge you to upgrade GNU
8617 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8618 *** your PATH or compiler configuration so that the native linker is
8619 *** used, and then restart.
8621 _LT_EOF
8624 # For security reasons, it is highly recommended that you always
8625 # use absolute paths for naming shared libraries, and exclude the
8626 # DT_RUNPATH tag from executables and libraries. But doing so
8627 # requires that you compile everything twice, which is a pain.
8628 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8629 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8630 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8631 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8632 else
8633 ld_shlibs=no
8636 esac
8639 sunos4*)
8640 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8641 wlarc=
8642 hardcode_direct=yes
8643 hardcode_shlibpath_var=no
8647 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8648 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8649 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8650 else
8651 ld_shlibs=no
8654 esac
8656 if test "$ld_shlibs" = no; then
8657 runpath_var=
8658 hardcode_libdir_flag_spec=
8659 export_dynamic_flag_spec=
8660 whole_archive_flag_spec=
8662 else
8663 # PORTME fill in a description of your system's linker (not GNU ld)
8664 case $host_os in
8665 aix3*)
8666 allow_undefined_flag=unsupported
8667 always_export_symbols=yes
8668 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'
8669 # Note: this linker hardcodes the directories in LIBPATH if there
8670 # are no directories specified by -L.
8671 hardcode_minus_L=yes
8672 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8673 # Neither direct hardcoding nor static linking is supported with a
8674 # broken collect2.
8675 hardcode_direct=unsupported
8679 aix[4-9]*)
8680 if test "$host_cpu" = ia64; then
8681 # On IA64, the linker does run time linking by default, so we don't
8682 # have to do anything special.
8683 aix_use_runtimelinking=no
8684 exp_sym_flag='-Bexport'
8685 no_entry_flag=""
8686 else
8687 # If we're using GNU nm, then we don't want the "-C" option.
8688 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8689 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8690 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'
8691 else
8692 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'
8694 aix_use_runtimelinking=no
8696 # Test if we are trying to use run time linking or normal
8697 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8698 # need to do runtime linking.
8699 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8700 for ld_flag in $LDFLAGS; do
8701 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8702 aix_use_runtimelinking=yes
8703 break
8705 done
8707 esac
8709 exp_sym_flag='-bexport'
8710 no_entry_flag='-bnoentry'
8713 # When large executables or shared objects are built, AIX ld can
8714 # have problems creating the table of contents. If linking a library
8715 # or program results in "error TOC overflow" add -mminimal-toc to
8716 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8717 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8719 archive_cmds=''
8720 hardcode_direct=yes
8721 hardcode_direct_absolute=yes
8722 hardcode_libdir_separator=':'
8723 link_all_deplibs=yes
8724 file_list_spec='${wl}-f,'
8726 if test "$GCC" = yes; then
8727 case $host_os in aix4.[012]|aix4.[012].*)
8728 # We only want to do this on AIX 4.2 and lower, the check
8729 # below for broken collect2 doesn't work under 4.3+
8730 collect2name=`${CC} -print-prog-name=collect2`
8731 if test -f "$collect2name" &&
8732 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8733 then
8734 # We have reworked collect2
8736 else
8737 # We have old collect2
8738 hardcode_direct=unsupported
8739 # It fails to find uninstalled libraries when the uninstalled
8740 # path is not listed in the libpath. Setting hardcode_minus_L
8741 # to unsupported forces relinking
8742 hardcode_minus_L=yes
8743 hardcode_libdir_flag_spec='-L$libdir'
8744 hardcode_libdir_separator=
8747 esac
8748 shared_flag='-shared'
8749 if test "$aix_use_runtimelinking" = yes; then
8750 shared_flag="$shared_flag "'${wl}-G'
8752 else
8753 # not using gcc
8754 if test "$host_cpu" = ia64; then
8755 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8756 # chokes on -Wl,-G. The following line is correct:
8757 shared_flag='-G'
8758 else
8759 if test "$aix_use_runtimelinking" = yes; then
8760 shared_flag='${wl}-G'
8761 else
8762 shared_flag='${wl}-bM:SRE'
8767 export_dynamic_flag_spec='${wl}-bexpall'
8768 # It seems that -bexpall does not export symbols beginning with
8769 # underscore (_), so it is better to generate a list of symbols to export.
8770 always_export_symbols=yes
8771 if test "$aix_use_runtimelinking" = yes; then
8772 # Warning - without using the other runtime loading flags (-brtl),
8773 # -berok will link without error, but may produce a broken library.
8774 allow_undefined_flag='-berok'
8775 # Determine the default libpath from the value encoded in an
8776 # empty executable.
8777 cat >conftest.$ac_ext <<_ACEOF
8778 /* confdefs.h. */
8779 _ACEOF
8780 cat confdefs.h >>conftest.$ac_ext
8781 cat >>conftest.$ac_ext <<_ACEOF
8782 /* end confdefs.h. */
8785 main ()
8789 return 0;
8791 _ACEOF
8792 rm -f conftest.$ac_objext conftest$ac_exeext
8793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8794 (eval $ac_link) 2>conftest.er1
8795 ac_status=$?
8796 grep -v '^ *+' conftest.er1 >conftest.err
8797 rm -f conftest.er1
8798 cat conftest.err >&5
8799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8800 (exit $ac_status); } &&
8801 { ac_try='test -z "$ac_c_werror_flag"
8802 || test ! -s conftest.err'
8803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8804 (eval $ac_try) 2>&5
8805 ac_status=$?
8806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807 (exit $ac_status); }; } &&
8808 { ac_try='test -s conftest$ac_exeext'
8809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8810 (eval $ac_try) 2>&5
8811 ac_status=$?
8812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8813 (exit $ac_status); }; }; then
8815 lt_aix_libpath_sed='
8816 /Import File Strings/,/^$/ {
8817 /^0/ {
8818 s/^0 *\(.*\)$/\1/
8822 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8823 # Check for a 64-bit object if we didn't find anything.
8824 if test -z "$aix_libpath"; then
8825 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8827 else
8828 echo "$as_me: failed program was:" >&5
8829 sed 's/^/| /' conftest.$ac_ext >&5
8832 rm -f conftest.err conftest.$ac_objext \
8833 conftest$ac_exeext conftest.$ac_ext
8834 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8836 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8837 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"
8838 else
8839 if test "$host_cpu" = ia64; then
8840 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8841 allow_undefined_flag="-z nodefs"
8842 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"
8843 else
8844 # Determine the default libpath from the value encoded in an
8845 # empty executable.
8846 cat >conftest.$ac_ext <<_ACEOF
8847 /* confdefs.h. */
8848 _ACEOF
8849 cat confdefs.h >>conftest.$ac_ext
8850 cat >>conftest.$ac_ext <<_ACEOF
8851 /* end confdefs.h. */
8854 main ()
8858 return 0;
8860 _ACEOF
8861 rm -f conftest.$ac_objext conftest$ac_exeext
8862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8863 (eval $ac_link) 2>conftest.er1
8864 ac_status=$?
8865 grep -v '^ *+' conftest.er1 >conftest.err
8866 rm -f conftest.er1
8867 cat conftest.err >&5
8868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869 (exit $ac_status); } &&
8870 { ac_try='test -z "$ac_c_werror_flag"
8871 || test ! -s conftest.err'
8872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8873 (eval $ac_try) 2>&5
8874 ac_status=$?
8875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8876 (exit $ac_status); }; } &&
8877 { ac_try='test -s conftest$ac_exeext'
8878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8879 (eval $ac_try) 2>&5
8880 ac_status=$?
8881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8882 (exit $ac_status); }; }; then
8884 lt_aix_libpath_sed='
8885 /Import File Strings/,/^$/ {
8886 /^0/ {
8887 s/^0 *\(.*\)$/\1/
8891 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8892 # Check for a 64-bit object if we didn't find anything.
8893 if test -z "$aix_libpath"; then
8894 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8896 else
8897 echo "$as_me: failed program was:" >&5
8898 sed 's/^/| /' conftest.$ac_ext >&5
8901 rm -f conftest.err conftest.$ac_objext \
8902 conftest$ac_exeext conftest.$ac_ext
8903 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8905 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8906 # Warning - without using the other run time loading flags,
8907 # -berok will link without error, but may produce a broken library.
8908 no_undefined_flag=' ${wl}-bernotok'
8909 allow_undefined_flag=' ${wl}-berok'
8910 # Exported symbols can be pulled into shared objects from archives
8911 whole_archive_flag_spec='$convenience'
8912 archive_cmds_need_lc=yes
8913 # This is similar to how AIX traditionally builds its shared libraries.
8914 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'
8919 amigaos*)
8920 case $host_cpu in
8921 powerpc)
8922 # see comment about AmigaOS4 .so support
8923 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8924 archive_expsym_cmds=''
8926 m68k)
8927 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)'
8928 hardcode_libdir_flag_spec='-L$libdir'
8929 hardcode_minus_L=yes
8931 esac
8934 bsdi[45]*)
8935 export_dynamic_flag_spec=-rdynamic
8938 cygwin* | mingw* | pw32* | cegcc*)
8939 # When not using gcc, we currently assume that we are using
8940 # Microsoft Visual C++.
8941 # hardcode_libdir_flag_spec is actually meaningless, as there is
8942 # no search path for DLLs.
8943 hardcode_libdir_flag_spec=' '
8944 allow_undefined_flag=unsupported
8945 # Tell ltmain to make .lib files, not .a files.
8946 libext=lib
8947 # Tell ltmain to make .dll files, not .so files.
8948 shrext_cmds=".dll"
8949 # FIXME: Setting linknames here is a bad hack.
8950 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8951 # The linker will automatically build a .lib file if we build a DLL.
8952 old_archive_from_new_cmds='true'
8953 # FIXME: Should let the user specify the lib program.
8954 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8955 fix_srcfile_path='`cygpath -w "$srcfile"`'
8956 enable_shared_with_static_runtimes=yes
8959 darwin* | rhapsody*)
8962 archive_cmds_need_lc=no
8963 hardcode_direct=no
8964 hardcode_automatic=yes
8965 hardcode_shlibpath_var=unsupported
8966 whole_archive_flag_spec=''
8967 link_all_deplibs=yes
8968 allow_undefined_flag="$_lt_dar_allow_undefined"
8969 case $cc_basename in
8970 ifort*) _lt_dar_can_shared=yes ;;
8971 *) _lt_dar_can_shared=$GCC ;;
8972 esac
8973 if test "$_lt_dar_can_shared" = "yes"; then
8974 output_verbose_link_cmd=echo
8975 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8976 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8977 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8978 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8980 else
8981 ld_shlibs=no
8986 dgux*)
8987 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8988 hardcode_libdir_flag_spec='-L$libdir'
8989 hardcode_shlibpath_var=no
8992 freebsd1*)
8993 ld_shlibs=no
8996 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8997 # support. Future versions do this automatically, but an explicit c++rt0.o
8998 # does not break anything, and helps significantly (at the cost of a little
8999 # extra space).
9000 freebsd2.2*)
9001 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9002 hardcode_libdir_flag_spec='-R$libdir'
9003 hardcode_direct=yes
9004 hardcode_shlibpath_var=no
9007 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9008 freebsd2*)
9009 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9010 hardcode_direct=yes
9011 hardcode_minus_L=yes
9012 hardcode_shlibpath_var=no
9015 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9016 freebsd* | dragonfly*)
9017 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9018 hardcode_libdir_flag_spec='-R$libdir'
9019 hardcode_direct=yes
9020 hardcode_shlibpath_var=no
9023 hpux9*)
9024 if test "$GCC" = yes; then
9025 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'
9026 else
9027 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'
9029 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9030 hardcode_libdir_separator=:
9031 hardcode_direct=yes
9033 # hardcode_minus_L: Not really in the search PATH,
9034 # but as the default location of the library.
9035 hardcode_minus_L=yes
9036 export_dynamic_flag_spec='${wl}-E'
9039 hpux10*)
9040 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9041 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9042 else
9043 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9045 if test "$with_gnu_ld" = no; then
9046 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9047 hardcode_libdir_flag_spec_ld='+b $libdir'
9048 hardcode_libdir_separator=:
9049 hardcode_direct=yes
9050 hardcode_direct_absolute=yes
9051 export_dynamic_flag_spec='${wl}-E'
9052 # hardcode_minus_L: Not really in the search PATH,
9053 # but as the default location of the library.
9054 hardcode_minus_L=yes
9058 hpux11*)
9059 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9060 case $host_cpu in
9061 hppa*64*)
9062 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9064 ia64*)
9065 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9068 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9070 esac
9071 else
9072 case $host_cpu in
9073 hppa*64*)
9074 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9076 ia64*)
9077 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9080 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9082 esac
9084 if test "$with_gnu_ld" = no; then
9085 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9086 hardcode_libdir_separator=:
9088 case $host_cpu in
9089 hppa*64*|ia64*)
9090 hardcode_direct=no
9091 hardcode_shlibpath_var=no
9094 hardcode_direct=yes
9095 hardcode_direct_absolute=yes
9096 export_dynamic_flag_spec='${wl}-E'
9098 # hardcode_minus_L: Not really in the search PATH,
9099 # but as the default location of the library.
9100 hardcode_minus_L=yes
9102 esac
9106 irix5* | irix6* | nonstopux*)
9107 if test "$GCC" = yes; then
9108 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'
9109 # Try to use the -exported_symbol ld option, if it does not
9110 # work, assume that -exports_file does not work either and
9111 # implicitly export all symbols.
9112 save_LDFLAGS="$LDFLAGS"
9113 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9114 cat >conftest.$ac_ext <<_ACEOF
9115 int foo(void) {}
9116 _ACEOF
9117 rm -f conftest.$ac_objext conftest$ac_exeext
9118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9119 (eval $ac_link) 2>conftest.er1
9120 ac_status=$?
9121 grep -v '^ *+' conftest.er1 >conftest.err
9122 rm -f conftest.er1
9123 cat conftest.err >&5
9124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9125 (exit $ac_status); } &&
9126 { ac_try='test -z "$ac_c_werror_flag"
9127 || test ! -s conftest.err'
9128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9129 (eval $ac_try) 2>&5
9130 ac_status=$?
9131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132 (exit $ac_status); }; } &&
9133 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
9139 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'
9141 else
9142 echo "$as_me: failed program was:" >&5
9143 sed 's/^/| /' conftest.$ac_ext >&5
9146 rm -f conftest.err conftest.$ac_objext \
9147 conftest$ac_exeext conftest.$ac_ext
9148 LDFLAGS="$save_LDFLAGS"
9149 else
9150 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'
9151 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'
9153 archive_cmds_need_lc='no'
9154 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9155 hardcode_libdir_separator=:
9156 inherit_rpath=yes
9157 link_all_deplibs=yes
9160 netbsd*)
9161 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9162 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9163 else
9164 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9166 hardcode_libdir_flag_spec='-R$libdir'
9167 hardcode_direct=yes
9168 hardcode_shlibpath_var=no
9171 newsos6)
9172 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9173 hardcode_direct=yes
9174 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9175 hardcode_libdir_separator=:
9176 hardcode_shlibpath_var=no
9179 *nto* | *qnx*)
9182 openbsd*)
9183 if test -f /usr/libexec/ld.so; then
9184 hardcode_direct=yes
9185 hardcode_shlibpath_var=no
9186 hardcode_direct_absolute=yes
9187 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9188 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9189 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9190 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9191 export_dynamic_flag_spec='${wl}-E'
9192 else
9193 case $host_os in
9194 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9195 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9196 hardcode_libdir_flag_spec='-R$libdir'
9199 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9200 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9202 esac
9204 else
9205 ld_shlibs=no
9209 os2*)
9210 hardcode_libdir_flag_spec='-L$libdir'
9211 hardcode_minus_L=yes
9212 allow_undefined_flag=unsupported
9213 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'
9214 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9217 osf3*)
9218 if test "$GCC" = yes; then
9219 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9220 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'
9221 else
9222 allow_undefined_flag=' -expect_unresolved \*'
9223 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'
9225 archive_cmds_need_lc='no'
9226 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9227 hardcode_libdir_separator=:
9230 osf4* | osf5*) # as osf3* with the addition of -msym flag
9231 if test "$GCC" = yes; then
9232 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9233 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'
9234 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9235 else
9236 allow_undefined_flag=' -expect_unresolved \*'
9237 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'
9238 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~
9239 $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'
9241 # Both c and cxx compiler support -rpath directly
9242 hardcode_libdir_flag_spec='-rpath $libdir'
9244 archive_cmds_need_lc='no'
9245 hardcode_libdir_separator=:
9248 solaris*)
9249 no_undefined_flag=' -z defs'
9250 if test "$GCC" = yes; then
9251 wlarc='${wl}'
9252 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9253 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9254 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9255 else
9256 case `$CC -V 2>&1` in
9257 *"Compilers 5.0"*)
9258 wlarc=''
9259 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9260 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9261 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9264 wlarc='${wl}'
9265 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9266 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9267 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9269 esac
9271 hardcode_libdir_flag_spec='-R$libdir'
9272 hardcode_shlibpath_var=no
9273 case $host_os in
9274 solaris2.[0-5] | solaris2.[0-5].*) ;;
9276 # The compiler driver will combine and reorder linker options,
9277 # but understands `-z linker_flag'. GCC discards it without `$wl',
9278 # but is careful enough not to reorder.
9279 # Supported since Solaris 2.6 (maybe 2.5.1?)
9280 if test "$GCC" = yes; then
9281 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9282 else
9283 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9286 esac
9287 link_all_deplibs=yes
9290 sunos4*)
9291 if test "x$host_vendor" = xsequent; then
9292 # Use $CC to link under sequent, because it throws in some extra .o
9293 # files that make .init and .fini sections work.
9294 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9295 else
9296 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9298 hardcode_libdir_flag_spec='-L$libdir'
9299 hardcode_direct=yes
9300 hardcode_minus_L=yes
9301 hardcode_shlibpath_var=no
9304 sysv4)
9305 case $host_vendor in
9306 sni)
9307 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9308 hardcode_direct=yes # is this really true???
9310 siemens)
9311 ## LD is ld it makes a PLAMLIB
9312 ## CC just makes a GrossModule.
9313 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9314 reload_cmds='$CC -r -o $output$reload_objs'
9315 hardcode_direct=no
9317 motorola)
9318 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9319 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9321 esac
9322 runpath_var='LD_RUN_PATH'
9323 hardcode_shlibpath_var=no
9326 sysv4.3*)
9327 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9328 hardcode_shlibpath_var=no
9329 export_dynamic_flag_spec='-Bexport'
9332 sysv4*MP*)
9333 if test -d /usr/nec; then
9334 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9335 hardcode_shlibpath_var=no
9336 runpath_var=LD_RUN_PATH
9337 hardcode_runpath_var=yes
9338 ld_shlibs=yes
9342 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9343 no_undefined_flag='${wl}-z,text'
9344 archive_cmds_need_lc=no
9345 hardcode_shlibpath_var=no
9346 runpath_var='LD_RUN_PATH'
9348 if test "$GCC" = yes; then
9349 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9350 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9351 else
9352 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9353 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9357 sysv5* | sco3.2v5* | sco5v6*)
9358 # Note: We can NOT use -z defs as we might desire, because we do not
9359 # link with -lc, and that would cause any symbols used from libc to
9360 # always be unresolved, which means just about no library would
9361 # ever link correctly. If we're not using GNU ld we use -z text
9362 # though, which does catch some bad symbols but isn't as heavy-handed
9363 # as -z defs.
9364 no_undefined_flag='${wl}-z,text'
9365 allow_undefined_flag='${wl}-z,nodefs'
9366 archive_cmds_need_lc=no
9367 hardcode_shlibpath_var=no
9368 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9369 hardcode_libdir_separator=':'
9370 link_all_deplibs=yes
9371 export_dynamic_flag_spec='${wl}-Bexport'
9372 runpath_var='LD_RUN_PATH'
9374 if test "$GCC" = yes; then
9375 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9376 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9377 else
9378 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9379 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9383 uts4*)
9384 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9385 hardcode_libdir_flag_spec='-L$libdir'
9386 hardcode_shlibpath_var=no
9390 ld_shlibs=no
9392 esac
9394 if test x$host_vendor = xsni; then
9395 case $host in
9396 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9397 export_dynamic_flag_spec='${wl}-Blargedynsym'
9399 esac
9403 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9404 echo "${ECHO_T}$ld_shlibs" >&6
9405 test "$ld_shlibs" = no && can_build_shared=no
9407 with_gnu_ld=$with_gnu_ld
9424 # Do we need to explicitly link libc?
9426 case "x$archive_cmds_need_lc" in
9427 x|xyes)
9428 # Assume -lc should be added
9429 archive_cmds_need_lc=yes
9431 if test "$enable_shared" = yes && test "$GCC" = yes; then
9432 case $archive_cmds in
9433 *'~'*)
9434 # FIXME: we may have to deal with multi-command sequences.
9436 '$CC '*)
9437 # Test whether the compiler implicitly links with -lc since on some
9438 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9439 # to ld, don't add -lc before -lgcc.
9440 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9441 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9442 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
9443 echo $ECHO_N "(cached) $ECHO_C" >&6
9444 else
9445 $RM conftest*
9446 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9449 (eval $ac_compile) 2>&5
9450 ac_status=$?
9451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452 (exit $ac_status); } 2>conftest.err; then
9453 soname=conftest
9454 lib=conftest
9455 libobjs=conftest.$ac_objext
9456 deplibs=
9457 wl=$lt_prog_compiler_wl
9458 pic_flag=$lt_prog_compiler_pic
9459 compiler_flags=-v
9460 linker_flags=-v
9461 verstring=
9462 output_objdir=.
9463 libname=conftest
9464 lt_save_allow_undefined_flag=$allow_undefined_flag
9465 allow_undefined_flag=
9466 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9467 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9468 ac_status=$?
9469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470 (exit $ac_status); }
9471 then
9472 lt_cv_archive_cmds_need_lc=no
9473 else
9474 lt_cv_archive_cmds_need_lc=yes
9476 allow_undefined_flag=$lt_save_allow_undefined_flag
9477 else
9478 cat conftest.err 1>&5
9480 $RM conftest*
9483 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
9484 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
9485 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9487 esac
9490 esac
9648 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9649 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9651 if test "$GCC" = yes; then
9652 case $host_os in
9653 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9654 *) lt_awk_arg="/^libraries:/" ;;
9655 esac
9656 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9657 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9658 # if the path contains ";" then we assume it to be the separator
9659 # otherwise default to the standard path separator (i.e. ":") - it is
9660 # assumed that no part of a normal pathname contains ";" but that should
9661 # okay in the real world where ";" in dirpaths is itself problematic.
9662 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9663 else
9664 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9666 # Ok, now we have the path, separated by spaces, we can step through it
9667 # and add multilib dir if necessary.
9668 lt_tmp_lt_search_path_spec=
9669 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9670 for lt_sys_path in $lt_search_path_spec; do
9671 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9672 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9673 else
9674 test -d "$lt_sys_path" && \
9675 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9677 done
9678 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9679 BEGIN {RS=" "; FS="/|\n";} {
9680 lt_foo="";
9681 lt_count=0;
9682 for (lt_i = NF; lt_i > 0; lt_i--) {
9683 if ($lt_i != "" && $lt_i != ".") {
9684 if ($lt_i == "..") {
9685 lt_count++;
9686 } else {
9687 if (lt_count == 0) {
9688 lt_foo="/" $lt_i lt_foo;
9689 } else {
9690 lt_count--;
9695 if (lt_foo != "") { lt_freq[lt_foo]++; }
9696 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9698 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9699 else
9700 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9702 library_names_spec=
9703 libname_spec='lib$name'
9704 soname_spec=
9705 shrext_cmds=".so"
9706 postinstall_cmds=
9707 postuninstall_cmds=
9708 finish_cmds=
9709 finish_eval=
9710 shlibpath_var=
9711 shlibpath_overrides_runpath=unknown
9712 version_type=none
9713 dynamic_linker="$host_os ld.so"
9714 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9715 need_lib_prefix=unknown
9716 hardcode_into_libs=no
9718 # when you set need_version to no, make sure it does not cause -set_version
9719 # flags to be left without arguments
9720 need_version=unknown
9722 case $host_os in
9723 aix3*)
9724 version_type=linux
9725 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9726 shlibpath_var=LIBPATH
9728 # AIX 3 has no versioning support, so we append a major version to the name.
9729 soname_spec='${libname}${release}${shared_ext}$major'
9732 aix[4-9]*)
9733 version_type=linux
9734 need_lib_prefix=no
9735 need_version=no
9736 hardcode_into_libs=yes
9737 if test "$host_cpu" = ia64; then
9738 # AIX 5 supports IA64
9739 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9740 shlibpath_var=LD_LIBRARY_PATH
9741 else
9742 # With GCC up to 2.95.x, collect2 would create an import file
9743 # for dependence libraries. The import file would start with
9744 # the line `#! .'. This would cause the generated library to
9745 # depend on `.', always an invalid library. This was fixed in
9746 # development snapshots of GCC prior to 3.0.
9747 case $host_os in
9748 aix4 | aix4.[01] | aix4.[01].*)
9749 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9750 echo ' yes '
9751 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9753 else
9754 can_build_shared=no
9757 esac
9758 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9759 # soname into executable. Probably we can add versioning support to
9760 # collect2, so additional links can be useful in future.
9761 if test "$aix_use_runtimelinking" = yes; then
9762 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9763 # instead of lib<name>.a to let people know that these are not
9764 # typical AIX shared libraries.
9765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9766 else
9767 # We preserve .a as extension for shared libraries through AIX4.2
9768 # and later when we are not doing run time linking.
9769 library_names_spec='${libname}${release}.a $libname.a'
9770 soname_spec='${libname}${release}${shared_ext}$major'
9772 shlibpath_var=LIBPATH
9776 amigaos*)
9777 case $host_cpu in
9778 powerpc)
9779 # Since July 2007 AmigaOS4 officially supports .so libraries.
9780 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9783 m68k)
9784 library_names_spec='$libname.ixlibrary $libname.a'
9785 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9786 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'
9788 esac
9791 beos*)
9792 library_names_spec='${libname}${shared_ext}'
9793 dynamic_linker="$host_os ld.so"
9794 shlibpath_var=LIBRARY_PATH
9797 bsdi[45]*)
9798 version_type=linux
9799 need_version=no
9800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9801 soname_spec='${libname}${release}${shared_ext}$major'
9802 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9803 shlibpath_var=LD_LIBRARY_PATH
9804 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9805 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9806 # the default ld.so.conf also contains /usr/contrib/lib and
9807 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9808 # libtool to hard-code these into programs
9811 cygwin* | mingw* | pw32* | cegcc*)
9812 version_type=windows
9813 shrext_cmds=".dll"
9814 need_version=no
9815 need_lib_prefix=no
9817 case $GCC,$host_os in
9818 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9819 library_names_spec='$libname.dll.a'
9820 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9821 postinstall_cmds='base_file=`basename \${file}`~
9822 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9823 dldir=$destdir/`dirname \$dlpath`~
9824 test -d \$dldir || mkdir -p \$dldir~
9825 $install_prog $dir/$dlname \$dldir/$dlname~
9826 chmod a+x \$dldir/$dlname~
9827 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9828 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9830 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9831 dlpath=$dir/\$dldll~
9832 $RM \$dlpath'
9833 shlibpath_overrides_runpath=yes
9835 case $host_os in
9836 cygwin*)
9837 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9838 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9839 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9841 mingw* | cegcc*)
9842 # MinGW DLLs use traditional 'lib' prefix
9843 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9844 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9845 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9846 # It is most probably a Windows format PATH printed by
9847 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9848 # path with ; separators, and with drive letters. We can handle the
9849 # drive letters (cygwin fileutils understands them), so leave them,
9850 # especially as we might pass files found there to a mingw objdump,
9851 # which wouldn't understand a cygwinified path. Ahh.
9852 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9853 else
9854 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9857 pw32*)
9858 # pw32 DLLs use 'pw' prefix rather than 'lib'
9859 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9861 esac
9865 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9867 esac
9868 dynamic_linker='Win32 ld.exe'
9869 # FIXME: first we should search . and the directory the executable is in
9870 shlibpath_var=PATH
9873 darwin* | rhapsody*)
9874 dynamic_linker="$host_os dyld"
9875 version_type=darwin
9876 need_lib_prefix=no
9877 need_version=no
9878 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9879 soname_spec='${libname}${release}${major}$shared_ext'
9880 shlibpath_overrides_runpath=yes
9881 shlibpath_var=DYLD_LIBRARY_PATH
9882 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9884 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9885 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9888 dgux*)
9889 version_type=linux
9890 need_lib_prefix=no
9891 need_version=no
9892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9893 soname_spec='${libname}${release}${shared_ext}$major'
9894 shlibpath_var=LD_LIBRARY_PATH
9897 freebsd1*)
9898 dynamic_linker=no
9901 freebsd* | dragonfly*)
9902 # DragonFly does not have aout. When/if they implement a new
9903 # versioning mechanism, adjust this.
9904 if test -x /usr/bin/objformat; then
9905 objformat=`/usr/bin/objformat`
9906 else
9907 case $host_os in
9908 freebsd[123]*) objformat=aout ;;
9909 *) objformat=elf ;;
9910 esac
9912 version_type=freebsd-$objformat
9913 case $version_type in
9914 freebsd-elf*)
9915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9916 need_version=no
9917 need_lib_prefix=no
9919 freebsd-*)
9920 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9921 need_version=yes
9923 esac
9924 shlibpath_var=LD_LIBRARY_PATH
9925 case $host_os in
9926 freebsd2*)
9927 shlibpath_overrides_runpath=yes
9929 freebsd3.[01]* | freebsdelf3.[01]*)
9930 shlibpath_overrides_runpath=yes
9931 hardcode_into_libs=yes
9933 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9934 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9935 shlibpath_overrides_runpath=no
9936 hardcode_into_libs=yes
9938 *) # from 4.6 on, and DragonFly
9939 shlibpath_overrides_runpath=yes
9940 hardcode_into_libs=yes
9942 esac
9945 gnu*)
9946 version_type=linux
9947 need_lib_prefix=no
9948 need_version=no
9949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9950 soname_spec='${libname}${release}${shared_ext}$major'
9951 shlibpath_var=LD_LIBRARY_PATH
9952 hardcode_into_libs=yes
9955 hpux9* | hpux10* | hpux11*)
9956 # Give a soname corresponding to the major version so that dld.sl refuses to
9957 # link against other versions.
9958 version_type=sunos
9959 need_lib_prefix=no
9960 need_version=no
9961 case $host_cpu in
9962 ia64*)
9963 shrext_cmds='.so'
9964 hardcode_into_libs=yes
9965 dynamic_linker="$host_os dld.so"
9966 shlibpath_var=LD_LIBRARY_PATH
9967 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9969 soname_spec='${libname}${release}${shared_ext}$major'
9970 if test "X$HPUX_IA64_MODE" = X32; then
9971 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9972 else
9973 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9975 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9977 hppa*64*)
9978 shrext_cmds='.sl'
9979 hardcode_into_libs=yes
9980 dynamic_linker="$host_os dld.sl"
9981 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9982 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9984 soname_spec='${libname}${release}${shared_ext}$major'
9985 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9986 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9989 shrext_cmds='.sl'
9990 dynamic_linker="$host_os dld.sl"
9991 shlibpath_var=SHLIB_PATH
9992 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9994 soname_spec='${libname}${release}${shared_ext}$major'
9996 esac
9997 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9998 postinstall_cmds='chmod 555 $lib'
10001 interix[3-9]*)
10002 version_type=linux
10003 need_lib_prefix=no
10004 need_version=no
10005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10006 soname_spec='${libname}${release}${shared_ext}$major'
10007 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10008 shlibpath_var=LD_LIBRARY_PATH
10009 shlibpath_overrides_runpath=no
10010 hardcode_into_libs=yes
10013 irix5* | irix6* | nonstopux*)
10014 case $host_os in
10015 nonstopux*) version_type=nonstopux ;;
10017 if test "$lt_cv_prog_gnu_ld" = yes; then
10018 version_type=linux
10019 else
10020 version_type=irix
10021 fi ;;
10022 esac
10023 need_lib_prefix=no
10024 need_version=no
10025 soname_spec='${libname}${release}${shared_ext}$major'
10026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10027 case $host_os in
10028 irix5* | nonstopux*)
10029 libsuff= shlibsuff=
10032 case $LD in # libtool.m4 will add one of these switches to LD
10033 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10034 libsuff= shlibsuff= libmagic=32-bit;;
10035 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10036 libsuff=32 shlibsuff=N32 libmagic=N32;;
10037 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10038 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10039 *) libsuff= shlibsuff= libmagic=never-match;;
10040 esac
10042 esac
10043 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10044 shlibpath_overrides_runpath=no
10045 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10046 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10047 hardcode_into_libs=yes
10050 # No shared lib support for Linux oldld, aout, or coff.
10051 linux*oldld* | linux*aout* | linux*coff*)
10052 dynamic_linker=no
10055 # This must be Linux ELF.
10056 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10057 version_type=linux
10058 need_lib_prefix=no
10059 need_version=no
10060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10061 soname_spec='${libname}${release}${shared_ext}$major'
10062 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10063 shlibpath_var=LD_LIBRARY_PATH
10064 shlibpath_overrides_runpath=no
10066 # Some binutils ld are patched to set DT_RUNPATH
10067 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
10068 echo $ECHO_N "(cached) $ECHO_C" >&6
10069 else
10070 lt_cv_shlibpath_overrides_runpath=no
10071 save_LDFLAGS=$LDFLAGS
10072 save_libdir=$libdir
10073 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10074 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10075 cat >conftest.$ac_ext <<_ACEOF
10076 /* confdefs.h. */
10077 _ACEOF
10078 cat confdefs.h >>conftest.$ac_ext
10079 cat >>conftest.$ac_ext <<_ACEOF
10080 /* end confdefs.h. */
10083 main ()
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 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10113 lt_cv_shlibpath_overrides_runpath=yes
10116 else
10117 echo "$as_me: failed program was:" >&5
10118 sed 's/^/| /' conftest.$ac_ext >&5
10121 rm -f conftest.err conftest.$ac_objext \
10122 conftest$ac_exeext conftest.$ac_ext
10123 LDFLAGS=$save_LDFLAGS
10124 libdir=$save_libdir
10128 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10130 # This implies no fast_install, which is unacceptable.
10131 # Some rework will be needed to allow for fast_install
10132 # before this can be enabled.
10133 hardcode_into_libs=yes
10135 # Append ld.so.conf contents to the search path
10136 if test -f /etc/ld.so.conf; then
10137 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10138 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10141 # We used to test for /lib/ld.so.1 and disable shared libraries on
10142 # powerpc, because MkLinux only supported shared libraries with the
10143 # GNU dynamic linker. Since this was broken with cross compilers,
10144 # most powerpc-linux boxes support dynamic linking these days and
10145 # people can always --disable-shared, the test was removed, and we
10146 # assume the GNU/Linux dynamic linker is in use.
10147 dynamic_linker='GNU/Linux ld.so'
10150 netbsd*)
10151 version_type=sunos
10152 need_lib_prefix=no
10153 need_version=no
10154 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10156 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10157 dynamic_linker='NetBSD (a.out) ld.so'
10158 else
10159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10160 soname_spec='${libname}${release}${shared_ext}$major'
10161 dynamic_linker='NetBSD ld.elf_so'
10163 shlibpath_var=LD_LIBRARY_PATH
10164 shlibpath_overrides_runpath=yes
10165 hardcode_into_libs=yes
10168 newsos6)
10169 version_type=linux
10170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10171 shlibpath_var=LD_LIBRARY_PATH
10172 shlibpath_overrides_runpath=yes
10175 *nto* | *qnx*)
10176 version_type=qnx
10177 need_lib_prefix=no
10178 need_version=no
10179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10180 soname_spec='${libname}${release}${shared_ext}$major'
10181 shlibpath_var=LD_LIBRARY_PATH
10182 shlibpath_overrides_runpath=no
10183 hardcode_into_libs=yes
10184 dynamic_linker='ldqnx.so'
10187 openbsd*)
10188 version_type=sunos
10189 sys_lib_dlsearch_path_spec="/usr/lib"
10190 need_lib_prefix=no
10191 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10192 case $host_os in
10193 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10194 *) need_version=no ;;
10195 esac
10196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10197 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10198 shlibpath_var=LD_LIBRARY_PATH
10199 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10200 case $host_os in
10201 openbsd2.[89] | openbsd2.[89].*)
10202 shlibpath_overrides_runpath=no
10205 shlibpath_overrides_runpath=yes
10207 esac
10208 else
10209 shlibpath_overrides_runpath=yes
10213 os2*)
10214 libname_spec='$name'
10215 shrext_cmds=".dll"
10216 need_lib_prefix=no
10217 library_names_spec='$libname${shared_ext} $libname.a'
10218 dynamic_linker='OS/2 ld.exe'
10219 shlibpath_var=LIBPATH
10222 osf3* | osf4* | osf5*)
10223 version_type=osf
10224 need_lib_prefix=no
10225 need_version=no
10226 soname_spec='${libname}${release}${shared_ext}$major'
10227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10228 shlibpath_var=LD_LIBRARY_PATH
10229 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10230 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10233 rdos*)
10234 dynamic_linker=no
10237 solaris*)
10238 version_type=linux
10239 need_lib_prefix=no
10240 need_version=no
10241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10242 soname_spec='${libname}${release}${shared_ext}$major'
10243 shlibpath_var=LD_LIBRARY_PATH
10244 shlibpath_overrides_runpath=yes
10245 hardcode_into_libs=yes
10246 # ldd complains unless libraries are executable
10247 postinstall_cmds='chmod +x $lib'
10250 sunos4*)
10251 version_type=sunos
10252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10253 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10254 shlibpath_var=LD_LIBRARY_PATH
10255 shlibpath_overrides_runpath=yes
10256 if test "$with_gnu_ld" = yes; then
10257 need_lib_prefix=no
10259 need_version=yes
10262 sysv4 | sysv4.3*)
10263 version_type=linux
10264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10265 soname_spec='${libname}${release}${shared_ext}$major'
10266 shlibpath_var=LD_LIBRARY_PATH
10267 case $host_vendor in
10268 sni)
10269 shlibpath_overrides_runpath=no
10270 need_lib_prefix=no
10271 runpath_var=LD_RUN_PATH
10273 siemens)
10274 need_lib_prefix=no
10276 motorola)
10277 need_lib_prefix=no
10278 need_version=no
10279 shlibpath_overrides_runpath=no
10280 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10282 esac
10285 sysv4*MP*)
10286 if test -d /usr/nec ;then
10287 version_type=linux
10288 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10289 soname_spec='$libname${shared_ext}.$major'
10290 shlibpath_var=LD_LIBRARY_PATH
10294 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10295 version_type=freebsd-elf
10296 need_lib_prefix=no
10297 need_version=no
10298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10299 soname_spec='${libname}${release}${shared_ext}$major'
10300 shlibpath_var=LD_LIBRARY_PATH
10301 shlibpath_overrides_runpath=yes
10302 hardcode_into_libs=yes
10303 if test "$with_gnu_ld" = yes; then
10304 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10305 else
10306 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10307 case $host_os in
10308 sco3.2v5*)
10309 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10311 esac
10313 sys_lib_dlsearch_path_spec='/usr/lib'
10316 tpf*)
10317 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10318 version_type=linux
10319 need_lib_prefix=no
10320 need_version=no
10321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10322 shlibpath_var=LD_LIBRARY_PATH
10323 shlibpath_overrides_runpath=no
10324 hardcode_into_libs=yes
10327 uts4*)
10328 version_type=linux
10329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10330 soname_spec='${libname}${release}${shared_ext}$major'
10331 shlibpath_var=LD_LIBRARY_PATH
10335 dynamic_linker=no
10337 esac
10338 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10339 echo "${ECHO_T}$dynamic_linker" >&6
10340 test "$dynamic_linker" = no && can_build_shared=no
10342 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10343 if test "$GCC" = yes; then
10344 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10347 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10348 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10350 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10351 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10440 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10441 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10442 hardcode_action=
10443 if test -n "$hardcode_libdir_flag_spec" ||
10444 test -n "$runpath_var" ||
10445 test "X$hardcode_automatic" = "Xyes" ; then
10447 # We can hardcode non-existent directories.
10448 if test "$hardcode_direct" != no &&
10449 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10450 # have to relink, otherwise we might link with an installed library
10451 # when we should be linking with a yet-to-be-installed one
10452 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10453 test "$hardcode_minus_L" != no; then
10454 # Linking always hardcodes the temporary library directory.
10455 hardcode_action=relink
10456 else
10457 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10458 hardcode_action=immediate
10460 else
10461 # We cannot hardcode anything, or else we can only hardcode existing
10462 # directories.
10463 hardcode_action=unsupported
10465 echo "$as_me:$LINENO: result: $hardcode_action" >&5
10466 echo "${ECHO_T}$hardcode_action" >&6
10468 if test "$hardcode_action" = relink ||
10469 test "$inherit_rpath" = yes; then
10470 # Fast installation is not supported
10471 enable_fast_install=no
10472 elif test "$shlibpath_overrides_runpath" = yes ||
10473 test "$enable_shared" = no; then
10474 # Fast installation is not necessary
10475 enable_fast_install=needless
10483 if test "x$enable_dlopen" != xyes; then
10484 enable_dlopen=unknown
10485 enable_dlopen_self=unknown
10486 enable_dlopen_self_static=unknown
10487 else
10488 lt_cv_dlopen=no
10489 lt_cv_dlopen_libs=
10491 case $host_os in
10492 beos*)
10493 lt_cv_dlopen="load_add_on"
10494 lt_cv_dlopen_libs=
10495 lt_cv_dlopen_self=yes
10498 mingw* | pw32* | cegcc*)
10499 lt_cv_dlopen="LoadLibrary"
10500 lt_cv_dlopen_libs=
10503 cygwin*)
10504 lt_cv_dlopen="dlopen"
10505 lt_cv_dlopen_libs=
10508 darwin*)
10509 # if libdl is installed we need to link against it
10510 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10511 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10512 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10513 echo $ECHO_N "(cached) $ECHO_C" >&6
10514 else
10515 ac_check_lib_save_LIBS=$LIBS
10516 LIBS="-ldl $LIBS"
10517 cat >conftest.$ac_ext <<_ACEOF
10518 /* confdefs.h. */
10519 _ACEOF
10520 cat confdefs.h >>conftest.$ac_ext
10521 cat >>conftest.$ac_ext <<_ACEOF
10522 /* end confdefs.h. */
10524 /* Override any gcc2 internal prototype to avoid an error. */
10525 #ifdef __cplusplus
10526 extern "C"
10527 #endif
10528 /* We use char because int might match the return type of a gcc2
10529 builtin and then its argument prototype would still apply. */
10530 char dlopen ();
10532 main ()
10534 dlopen ();
10536 return 0;
10538 _ACEOF
10539 rm -f conftest.$ac_objext conftest$ac_exeext
10540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10541 (eval $ac_link) 2>conftest.er1
10542 ac_status=$?
10543 grep -v '^ *+' conftest.er1 >conftest.err
10544 rm -f conftest.er1
10545 cat conftest.err >&5
10546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547 (exit $ac_status); } &&
10548 { ac_try='test -z "$ac_c_werror_flag"
10549 || test ! -s conftest.err'
10550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10551 (eval $ac_try) 2>&5
10552 ac_status=$?
10553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10554 (exit $ac_status); }; } &&
10555 { ac_try='test -s conftest$ac_exeext'
10556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10557 (eval $ac_try) 2>&5
10558 ac_status=$?
10559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10560 (exit $ac_status); }; }; then
10561 ac_cv_lib_dl_dlopen=yes
10562 else
10563 echo "$as_me: failed program was:" >&5
10564 sed 's/^/| /' conftest.$ac_ext >&5
10566 ac_cv_lib_dl_dlopen=no
10568 rm -f conftest.err conftest.$ac_objext \
10569 conftest$ac_exeext conftest.$ac_ext
10570 LIBS=$ac_check_lib_save_LIBS
10572 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10573 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10574 if test $ac_cv_lib_dl_dlopen = yes; then
10575 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10576 else
10578 lt_cv_dlopen="dyld"
10579 lt_cv_dlopen_libs=
10580 lt_cv_dlopen_self=yes
10587 echo "$as_me:$LINENO: checking for shl_load" >&5
10588 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10589 if test "${ac_cv_func_shl_load+set}" = set; then
10590 echo $ECHO_N "(cached) $ECHO_C" >&6
10591 else
10592 cat >conftest.$ac_ext <<_ACEOF
10593 /* confdefs.h. */
10594 _ACEOF
10595 cat confdefs.h >>conftest.$ac_ext
10596 cat >>conftest.$ac_ext <<_ACEOF
10597 /* end confdefs.h. */
10598 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10599 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10600 #define shl_load innocuous_shl_load
10602 /* System header to define __stub macros and hopefully few prototypes,
10603 which can conflict with char shl_load (); below.
10604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10605 <limits.h> exists even on freestanding compilers. */
10607 #ifdef __STDC__
10608 # include <limits.h>
10609 #else
10610 # include <assert.h>
10611 #endif
10613 #undef shl_load
10615 /* Override any gcc2 internal prototype to avoid an error. */
10616 #ifdef __cplusplus
10617 extern "C"
10619 #endif
10620 /* We use char because int might match the return type of a gcc2
10621 builtin and then its argument prototype would still apply. */
10622 char shl_load ();
10623 /* The GNU C library defines this for functions which it implements
10624 to always fail with ENOSYS. Some functions are actually named
10625 something starting with __ and the normal name is an alias. */
10626 #if defined (__stub_shl_load) || defined (__stub___shl_load)
10627 choke me
10628 #else
10629 char (*f) () = shl_load;
10630 #endif
10631 #ifdef __cplusplus
10633 #endif
10636 main ()
10638 return f != shl_load;
10640 return 0;
10642 _ACEOF
10643 rm -f conftest.$ac_objext conftest$ac_exeext
10644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10645 (eval $ac_link) 2>conftest.er1
10646 ac_status=$?
10647 grep -v '^ *+' conftest.er1 >conftest.err
10648 rm -f conftest.er1
10649 cat conftest.err >&5
10650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651 (exit $ac_status); } &&
10652 { ac_try='test -z "$ac_c_werror_flag"
10653 || test ! -s conftest.err'
10654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10655 (eval $ac_try) 2>&5
10656 ac_status=$?
10657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10658 (exit $ac_status); }; } &&
10659 { ac_try='test -s conftest$ac_exeext'
10660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10661 (eval $ac_try) 2>&5
10662 ac_status=$?
10663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10664 (exit $ac_status); }; }; then
10665 ac_cv_func_shl_load=yes
10666 else
10667 echo "$as_me: failed program was:" >&5
10668 sed 's/^/| /' conftest.$ac_ext >&5
10670 ac_cv_func_shl_load=no
10672 rm -f conftest.err conftest.$ac_objext \
10673 conftest$ac_exeext conftest.$ac_ext
10675 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10676 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10677 if test $ac_cv_func_shl_load = yes; then
10678 lt_cv_dlopen="shl_load"
10679 else
10680 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10681 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10682 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10683 echo $ECHO_N "(cached) $ECHO_C" >&6
10684 else
10685 ac_check_lib_save_LIBS=$LIBS
10686 LIBS="-ldld $LIBS"
10687 cat >conftest.$ac_ext <<_ACEOF
10688 /* confdefs.h. */
10689 _ACEOF
10690 cat confdefs.h >>conftest.$ac_ext
10691 cat >>conftest.$ac_ext <<_ACEOF
10692 /* end confdefs.h. */
10694 /* Override any gcc2 internal prototype to avoid an error. */
10695 #ifdef __cplusplus
10696 extern "C"
10697 #endif
10698 /* We use char because int might match the return type of a gcc2
10699 builtin and then its argument prototype would still apply. */
10700 char shl_load ();
10702 main ()
10704 shl_load ();
10706 return 0;
10708 _ACEOF
10709 rm -f conftest.$ac_objext conftest$ac_exeext
10710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10711 (eval $ac_link) 2>conftest.er1
10712 ac_status=$?
10713 grep -v '^ *+' conftest.er1 >conftest.err
10714 rm -f conftest.er1
10715 cat conftest.err >&5
10716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717 (exit $ac_status); } &&
10718 { ac_try='test -z "$ac_c_werror_flag"
10719 || test ! -s conftest.err'
10720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10721 (eval $ac_try) 2>&5
10722 ac_status=$?
10723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724 (exit $ac_status); }; } &&
10725 { ac_try='test -s conftest$ac_exeext'
10726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10727 (eval $ac_try) 2>&5
10728 ac_status=$?
10729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10730 (exit $ac_status); }; }; then
10731 ac_cv_lib_dld_shl_load=yes
10732 else
10733 echo "$as_me: failed program was:" >&5
10734 sed 's/^/| /' conftest.$ac_ext >&5
10736 ac_cv_lib_dld_shl_load=no
10738 rm -f conftest.err conftest.$ac_objext \
10739 conftest$ac_exeext conftest.$ac_ext
10740 LIBS=$ac_check_lib_save_LIBS
10742 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10743 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10744 if test $ac_cv_lib_dld_shl_load = yes; then
10745 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10746 else
10747 echo "$as_me:$LINENO: checking for dlopen" >&5
10748 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10749 if test "${ac_cv_func_dlopen+set}" = set; then
10750 echo $ECHO_N "(cached) $ECHO_C" >&6
10751 else
10752 cat >conftest.$ac_ext <<_ACEOF
10753 /* confdefs.h. */
10754 _ACEOF
10755 cat confdefs.h >>conftest.$ac_ext
10756 cat >>conftest.$ac_ext <<_ACEOF
10757 /* end confdefs.h. */
10758 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10760 #define dlopen innocuous_dlopen
10762 /* System header to define __stub macros and hopefully few prototypes,
10763 which can conflict with char dlopen (); below.
10764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10765 <limits.h> exists even on freestanding compilers. */
10767 #ifdef __STDC__
10768 # include <limits.h>
10769 #else
10770 # include <assert.h>
10771 #endif
10773 #undef dlopen
10775 /* Override any gcc2 internal prototype to avoid an error. */
10776 #ifdef __cplusplus
10777 extern "C"
10779 #endif
10780 /* We use char because int might match the return type of a gcc2
10781 builtin and then its argument prototype would still apply. */
10782 char dlopen ();
10783 /* The GNU C library defines this for functions which it implements
10784 to always fail with ENOSYS. Some functions are actually named
10785 something starting with __ and the normal name is an alias. */
10786 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10787 choke me
10788 #else
10789 char (*f) () = dlopen;
10790 #endif
10791 #ifdef __cplusplus
10793 #endif
10796 main ()
10798 return f != dlopen;
10800 return 0;
10802 _ACEOF
10803 rm -f conftest.$ac_objext conftest$ac_exeext
10804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10805 (eval $ac_link) 2>conftest.er1
10806 ac_status=$?
10807 grep -v '^ *+' conftest.er1 >conftest.err
10808 rm -f conftest.er1
10809 cat conftest.err >&5
10810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10811 (exit $ac_status); } &&
10812 { ac_try='test -z "$ac_c_werror_flag"
10813 || test ! -s conftest.err'
10814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10815 (eval $ac_try) 2>&5
10816 ac_status=$?
10817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10818 (exit $ac_status); }; } &&
10819 { ac_try='test -s conftest$ac_exeext'
10820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10821 (eval $ac_try) 2>&5
10822 ac_status=$?
10823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824 (exit $ac_status); }; }; then
10825 ac_cv_func_dlopen=yes
10826 else
10827 echo "$as_me: failed program was:" >&5
10828 sed 's/^/| /' conftest.$ac_ext >&5
10830 ac_cv_func_dlopen=no
10832 rm -f conftest.err conftest.$ac_objext \
10833 conftest$ac_exeext conftest.$ac_ext
10835 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10836 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10837 if test $ac_cv_func_dlopen = yes; then
10838 lt_cv_dlopen="dlopen"
10839 else
10840 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10841 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10842 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10843 echo $ECHO_N "(cached) $ECHO_C" >&6
10844 else
10845 ac_check_lib_save_LIBS=$LIBS
10846 LIBS="-ldl $LIBS"
10847 cat >conftest.$ac_ext <<_ACEOF
10848 /* confdefs.h. */
10849 _ACEOF
10850 cat confdefs.h >>conftest.$ac_ext
10851 cat >>conftest.$ac_ext <<_ACEOF
10852 /* end confdefs.h. */
10854 /* Override any gcc2 internal prototype to avoid an error. */
10855 #ifdef __cplusplus
10856 extern "C"
10857 #endif
10858 /* We use char because int might match the return type of a gcc2
10859 builtin and then its argument prototype would still apply. */
10860 char dlopen ();
10862 main ()
10864 dlopen ();
10866 return 0;
10868 _ACEOF
10869 rm -f conftest.$ac_objext conftest$ac_exeext
10870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10871 (eval $ac_link) 2>conftest.er1
10872 ac_status=$?
10873 grep -v '^ *+' conftest.er1 >conftest.err
10874 rm -f conftest.er1
10875 cat conftest.err >&5
10876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877 (exit $ac_status); } &&
10878 { ac_try='test -z "$ac_c_werror_flag"
10879 || test ! -s conftest.err'
10880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10881 (eval $ac_try) 2>&5
10882 ac_status=$?
10883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10884 (exit $ac_status); }; } &&
10885 { ac_try='test -s conftest$ac_exeext'
10886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10887 (eval $ac_try) 2>&5
10888 ac_status=$?
10889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890 (exit $ac_status); }; }; then
10891 ac_cv_lib_dl_dlopen=yes
10892 else
10893 echo "$as_me: failed program was:" >&5
10894 sed 's/^/| /' conftest.$ac_ext >&5
10896 ac_cv_lib_dl_dlopen=no
10898 rm -f conftest.err conftest.$ac_objext \
10899 conftest$ac_exeext conftest.$ac_ext
10900 LIBS=$ac_check_lib_save_LIBS
10902 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10903 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10904 if test $ac_cv_lib_dl_dlopen = yes; then
10905 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10906 else
10907 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10908 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10909 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10910 echo $ECHO_N "(cached) $ECHO_C" >&6
10911 else
10912 ac_check_lib_save_LIBS=$LIBS
10913 LIBS="-lsvld $LIBS"
10914 cat >conftest.$ac_ext <<_ACEOF
10915 /* confdefs.h. */
10916 _ACEOF
10917 cat confdefs.h >>conftest.$ac_ext
10918 cat >>conftest.$ac_ext <<_ACEOF
10919 /* end confdefs.h. */
10921 /* Override any gcc2 internal prototype to avoid an error. */
10922 #ifdef __cplusplus
10923 extern "C"
10924 #endif
10925 /* We use char because int might match the return type of a gcc2
10926 builtin and then its argument prototype would still apply. */
10927 char dlopen ();
10929 main ()
10931 dlopen ();
10933 return 0;
10935 _ACEOF
10936 rm -f conftest.$ac_objext conftest$ac_exeext
10937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10938 (eval $ac_link) 2>conftest.er1
10939 ac_status=$?
10940 grep -v '^ *+' conftest.er1 >conftest.err
10941 rm -f conftest.er1
10942 cat conftest.err >&5
10943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10944 (exit $ac_status); } &&
10945 { ac_try='test -z "$ac_c_werror_flag"
10946 || test ! -s conftest.err'
10947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10948 (eval $ac_try) 2>&5
10949 ac_status=$?
10950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951 (exit $ac_status); }; } &&
10952 { ac_try='test -s conftest$ac_exeext'
10953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10954 (eval $ac_try) 2>&5
10955 ac_status=$?
10956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10957 (exit $ac_status); }; }; then
10958 ac_cv_lib_svld_dlopen=yes
10959 else
10960 echo "$as_me: failed program was:" >&5
10961 sed 's/^/| /' conftest.$ac_ext >&5
10963 ac_cv_lib_svld_dlopen=no
10965 rm -f conftest.err conftest.$ac_objext \
10966 conftest$ac_exeext conftest.$ac_ext
10967 LIBS=$ac_check_lib_save_LIBS
10969 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10970 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10971 if test $ac_cv_lib_svld_dlopen = yes; then
10972 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10973 else
10974 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10975 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10976 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10977 echo $ECHO_N "(cached) $ECHO_C" >&6
10978 else
10979 ac_check_lib_save_LIBS=$LIBS
10980 LIBS="-ldld $LIBS"
10981 cat >conftest.$ac_ext <<_ACEOF
10982 /* confdefs.h. */
10983 _ACEOF
10984 cat confdefs.h >>conftest.$ac_ext
10985 cat >>conftest.$ac_ext <<_ACEOF
10986 /* end confdefs.h. */
10988 /* Override any gcc2 internal prototype to avoid an error. */
10989 #ifdef __cplusplus
10990 extern "C"
10991 #endif
10992 /* We use char because int might match the return type of a gcc2
10993 builtin and then its argument prototype would still apply. */
10994 char dld_link ();
10996 main ()
10998 dld_link ();
11000 return 0;
11002 _ACEOF
11003 rm -f conftest.$ac_objext conftest$ac_exeext
11004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11005 (eval $ac_link) 2>conftest.er1
11006 ac_status=$?
11007 grep -v '^ *+' conftest.er1 >conftest.err
11008 rm -f conftest.er1
11009 cat conftest.err >&5
11010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11011 (exit $ac_status); } &&
11012 { ac_try='test -z "$ac_c_werror_flag"
11013 || test ! -s conftest.err'
11014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11015 (eval $ac_try) 2>&5
11016 ac_status=$?
11017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018 (exit $ac_status); }; } &&
11019 { ac_try='test -s conftest$ac_exeext'
11020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11021 (eval $ac_try) 2>&5
11022 ac_status=$?
11023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024 (exit $ac_status); }; }; then
11025 ac_cv_lib_dld_dld_link=yes
11026 else
11027 echo "$as_me: failed program was:" >&5
11028 sed 's/^/| /' conftest.$ac_ext >&5
11030 ac_cv_lib_dld_dld_link=no
11032 rm -f conftest.err conftest.$ac_objext \
11033 conftest$ac_exeext conftest.$ac_ext
11034 LIBS=$ac_check_lib_save_LIBS
11036 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11037 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11038 if test $ac_cv_lib_dld_dld_link = yes; then
11039 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11058 esac
11060 if test "x$lt_cv_dlopen" != xno; then
11061 enable_dlopen=yes
11062 else
11063 enable_dlopen=no
11066 case $lt_cv_dlopen in
11067 dlopen)
11068 save_CPPFLAGS="$CPPFLAGS"
11069 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11071 save_LDFLAGS="$LDFLAGS"
11072 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11074 save_LIBS="$LIBS"
11075 LIBS="$lt_cv_dlopen_libs $LIBS"
11077 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11078 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11079 if test "${lt_cv_dlopen_self+set}" = set; then
11080 echo $ECHO_N "(cached) $ECHO_C" >&6
11081 else
11082 if test "$cross_compiling" = yes; then :
11083 lt_cv_dlopen_self=cross
11084 else
11085 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11086 lt_status=$lt_dlunknown
11087 cat > conftest.$ac_ext <<_LT_EOF
11088 #line 11088 "configure"
11089 #include "confdefs.h"
11091 #if HAVE_DLFCN_H
11092 #include <dlfcn.h>
11093 #endif
11095 #include <stdio.h>
11097 #ifdef RTLD_GLOBAL
11098 # define LT_DLGLOBAL RTLD_GLOBAL
11099 #else
11100 # ifdef DL_GLOBAL
11101 # define LT_DLGLOBAL DL_GLOBAL
11102 # else
11103 # define LT_DLGLOBAL 0
11104 # endif
11105 #endif
11107 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11108 find out it does not work in some platform. */
11109 #ifndef LT_DLLAZY_OR_NOW
11110 # ifdef RTLD_LAZY
11111 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11112 # else
11113 # ifdef DL_LAZY
11114 # define LT_DLLAZY_OR_NOW DL_LAZY
11115 # else
11116 # ifdef RTLD_NOW
11117 # define LT_DLLAZY_OR_NOW RTLD_NOW
11118 # else
11119 # ifdef DL_NOW
11120 # define LT_DLLAZY_OR_NOW DL_NOW
11121 # else
11122 # define LT_DLLAZY_OR_NOW 0
11123 # endif
11124 # endif
11125 # endif
11126 # endif
11127 #endif
11129 void fnord() { int i=42;}
11130 int main ()
11132 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11133 int status = $lt_dlunknown;
11135 if (self)
11137 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11138 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11139 /* dlclose (self); */
11141 else
11142 puts (dlerror ());
11144 return status;
11146 _LT_EOF
11147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11148 (eval $ac_link) 2>&5
11149 ac_status=$?
11150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11152 (./conftest; exit; ) >&5 2>/dev/null
11153 lt_status=$?
11154 case x$lt_status in
11155 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11156 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11157 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11158 esac
11159 else :
11160 # compilation failed
11161 lt_cv_dlopen_self=no
11164 rm -fr conftest*
11168 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11169 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11171 if test "x$lt_cv_dlopen_self" = xyes; then
11172 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11173 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11174 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11175 if test "${lt_cv_dlopen_self_static+set}" = set; then
11176 echo $ECHO_N "(cached) $ECHO_C" >&6
11177 else
11178 if test "$cross_compiling" = yes; then :
11179 lt_cv_dlopen_self_static=cross
11180 else
11181 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11182 lt_status=$lt_dlunknown
11183 cat > conftest.$ac_ext <<_LT_EOF
11184 #line 11184 "configure"
11185 #include "confdefs.h"
11187 #if HAVE_DLFCN_H
11188 #include <dlfcn.h>
11189 #endif
11191 #include <stdio.h>
11193 #ifdef RTLD_GLOBAL
11194 # define LT_DLGLOBAL RTLD_GLOBAL
11195 #else
11196 # ifdef DL_GLOBAL
11197 # define LT_DLGLOBAL DL_GLOBAL
11198 # else
11199 # define LT_DLGLOBAL 0
11200 # endif
11201 #endif
11203 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11204 find out it does not work in some platform. */
11205 #ifndef LT_DLLAZY_OR_NOW
11206 # ifdef RTLD_LAZY
11207 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11208 # else
11209 # ifdef DL_LAZY
11210 # define LT_DLLAZY_OR_NOW DL_LAZY
11211 # else
11212 # ifdef RTLD_NOW
11213 # define LT_DLLAZY_OR_NOW RTLD_NOW
11214 # else
11215 # ifdef DL_NOW
11216 # define LT_DLLAZY_OR_NOW DL_NOW
11217 # else
11218 # define LT_DLLAZY_OR_NOW 0
11219 # endif
11220 # endif
11221 # endif
11222 # endif
11223 #endif
11225 void fnord() { int i=42;}
11226 int main ()
11228 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11229 int status = $lt_dlunknown;
11231 if (self)
11233 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11234 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11235 /* dlclose (self); */
11237 else
11238 puts (dlerror ());
11240 return status;
11242 _LT_EOF
11243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11244 (eval $ac_link) 2>&5
11245 ac_status=$?
11246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11247 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11248 (./conftest; exit; ) >&5 2>/dev/null
11249 lt_status=$?
11250 case x$lt_status in
11251 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11252 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11253 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11254 esac
11255 else :
11256 # compilation failed
11257 lt_cv_dlopen_self_static=no
11260 rm -fr conftest*
11264 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11265 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11268 CPPFLAGS="$save_CPPFLAGS"
11269 LDFLAGS="$save_LDFLAGS"
11270 LIBS="$save_LIBS"
11272 esac
11274 case $lt_cv_dlopen_self in
11275 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11276 *) enable_dlopen_self=unknown ;;
11277 esac
11279 case $lt_cv_dlopen_self_static in
11280 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11281 *) enable_dlopen_self_static=unknown ;;
11282 esac
11301 striplib=
11302 old_striplib=
11303 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11304 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11305 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11306 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11307 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11308 echo "$as_me:$LINENO: result: yes" >&5
11309 echo "${ECHO_T}yes" >&6
11310 else
11311 # FIXME - insert some real tests, host_os isn't really good enough
11312 case $host_os in
11313 darwin*)
11314 if test -n "$STRIP" ; then
11315 striplib="$STRIP -x"
11316 old_striplib="$STRIP -S"
11317 echo "$as_me:$LINENO: result: yes" >&5
11318 echo "${ECHO_T}yes" >&6
11319 else
11320 echo "$as_me:$LINENO: result: no" >&5
11321 echo "${ECHO_T}no" >&6
11325 echo "$as_me:$LINENO: result: no" >&5
11326 echo "${ECHO_T}no" >&6
11328 esac
11342 # Report which library types will actually be built
11343 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11344 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11345 echo "$as_me:$LINENO: result: $can_build_shared" >&5
11346 echo "${ECHO_T}$can_build_shared" >&6
11348 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11349 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11350 test "$can_build_shared" = "no" && enable_shared=no
11352 # On AIX, shared libraries and static libraries use the same namespace, and
11353 # are all built from PIC.
11354 case $host_os in
11355 aix3*)
11356 test "$enable_shared" = yes && enable_static=no
11357 if test -n "$RANLIB"; then
11358 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11359 postinstall_cmds='$RANLIB $lib'
11363 aix[4-9]*)
11364 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11365 test "$enable_shared" = yes && enable_static=no
11368 esac
11369 echo "$as_me:$LINENO: result: $enable_shared" >&5
11370 echo "${ECHO_T}$enable_shared" >&6
11372 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11373 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11374 # Make sure either enable_shared or enable_static is yes.
11375 test "$enable_shared" = yes || enable_static=yes
11376 echo "$as_me:$LINENO: result: $enable_static" >&5
11377 echo "${ECHO_T}$enable_static" >&6
11383 ac_ext=c
11384 ac_cpp='$CPP $CPPFLAGS'
11385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11389 CC="$lt_save_CC"
11403 ac_config_commands="$ac_config_commands libtool"
11408 # Only expand once:
11412 # Check whether --enable-targets or --disable-targets was given.
11413 if test "${enable_targets+set}" = set; then
11414 enableval="$enable_targets"
11415 case "${enableval}" in
11416 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
11417 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
11418 { (exit 1); exit 1; }; }
11420 no) enable_targets= ;;
11421 *) enable_targets=$enableval ;;
11422 esac
11425 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
11427 # Check whether --enable-werror or --disable-werror was given.
11428 if test "${enable_werror+set}" = set; then
11429 enableval="$enable_werror"
11430 case "${enableval}" in
11431 yes | y) ERROR_ON_WARNING="yes" ;;
11432 no | n) ERROR_ON_WARNING="no" ;;
11433 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
11434 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
11435 { (exit 1); exit 1; }; } ;;
11436 esac
11439 # Enable -Wno-format by default when using gcc on mingw
11440 case "${host}" in
11441 *-*-mingw32*)
11442 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11443 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
11446 *) ;;
11447 esac
11449 # Enable -Werror by default when using gcc
11450 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11451 ERROR_ON_WARNING=yes
11454 NO_WERROR=
11455 if test "${ERROR_ON_WARNING}" = yes ; then
11456 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
11457 NO_WERROR="-Wno-error"
11460 if test "${GCC}" = yes ; then
11461 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
11464 # Check whether --enable-build-warnings or --disable-build-warnings was given.
11465 if test "${enable_build_warnings+set}" = set; then
11466 enableval="$enable_build_warnings"
11467 case "${enableval}" in
11468 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
11469 no) if test "${GCC}" = yes ; then
11470 WARN_CFLAGS="-w"
11471 fi;;
11472 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11473 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
11474 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11475 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
11476 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
11477 esac
11480 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
11481 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
11488 ac_config_headers="$ac_config_headers config.h:config.in"
11491 if test -z "$target" ; then
11492 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
11493 echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
11494 { (exit 1); exit 1; }; }
11497 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11498 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11499 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11500 if test "${enable_maintainer_mode+set}" = set; then
11501 enableval="$enable_maintainer_mode"
11502 USE_MAINTAINER_MODE=$enableval
11503 else
11504 USE_MAINTAINER_MODE=no
11506 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
11507 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
11510 if test $USE_MAINTAINER_MODE = yes; then
11511 MAINTAINER_MODE_TRUE=
11512 MAINTAINER_MODE_FALSE='#'
11513 else
11514 MAINTAINER_MODE_TRUE='#'
11515 MAINTAINER_MODE_FALSE=
11518 MAINT=$MAINTAINER_MODE_TRUE
11521 case ${build_alias} in
11522 "") build_noncanonical=${build} ;;
11523 *) build_noncanonical=${build_alias} ;;
11524 esac
11526 case ${host_alias} in
11527 "") host_noncanonical=${build_noncanonical} ;;
11528 *) host_noncanonical=${host_alias} ;;
11529 esac
11531 case ${target_alias} in
11532 "") target_noncanonical=${host_noncanonical} ;;
11533 *) target_noncanonical=${target_alias} ;;
11534 esac
11536 echo "$as_me:$LINENO: checking whether to install libbfd" >&5
11537 echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
11538 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
11539 if test "${enable_install_libbfd+set}" = set; then
11540 enableval="$enable_install_libbfd"
11541 install_libbfd_p=$enableval
11542 else
11543 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
11544 install_libbfd_p=yes
11545 else
11546 install_libbfd_p=no
11549 echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
11550 echo "${ECHO_T}$install_libbfd_p" >&6
11553 if test $install_libbfd_p = yes; then
11554 INSTALL_LIBBFD_TRUE=
11555 INSTALL_LIBBFD_FALSE='#'
11556 else
11557 INSTALL_LIBBFD_TRUE='#'
11558 INSTALL_LIBBFD_FALSE=
11561 # Need _noncanonical variables for this.
11566 # libbfd.a is a host library containing target dependent code
11567 bfdlibdir='$(libdir)'
11568 bfdincludedir='$(includedir)'
11569 if test "${host}" != "${target}"; then
11570 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
11571 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
11579 # host-specific stuff:
11581 ALL_LINGUAS="fr sv tr es da de id pt_BR ro nl fi vi ga zh_CN"
11582 # If we haven't got the data from the intl directory,
11583 # assume NLS is disabled.
11584 USE_NLS=no
11585 LIBINTL=
11586 LIBINTL_DEP=
11587 INCINTL=
11588 XGETTEXT=
11589 GMSGFMT=
11590 POSUB=
11592 if test -f ../intl/config.intl; then
11593 . ../intl/config.intl
11595 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11596 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
11597 if test x"$USE_NLS" != xyes; then
11598 echo "$as_me:$LINENO: result: no" >&5
11599 echo "${ECHO_T}no" >&6
11600 else
11601 echo "$as_me:$LINENO: result: yes" >&5
11602 echo "${ECHO_T}yes" >&6
11604 cat >>confdefs.h <<\_ACEOF
11605 #define ENABLE_NLS 1
11606 _ACEOF
11609 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
11610 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
11611 # Look for .po and .gmo files in the source directory.
11612 CATALOGS=
11613 XLINGUAS=
11614 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11615 # If there aren't any .gmo files the shell will give us the
11616 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11617 # weeded out.
11618 case "$cat" in *\**)
11619 continue;;
11620 esac
11621 # The quadruple backslash is collapsed to a double backslash
11622 # by the backticks, then collapsed again by the double quotes,
11623 # leaving us with one backslash in the sed expression (right
11624 # before the dot that mustn't act as a wildcard).
11625 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11626 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11627 # The user is allowed to set LINGUAS to a list of languages to
11628 # install catalogs for. If it's empty that means "all of them."
11629 if test "x$LINGUAS" = x; then
11630 CATALOGS="$CATALOGS $cat"
11631 XLINGUAS="$XLINGUAS $lang"
11632 else
11633 case "$LINGUAS" in *$lang*)
11634 CATALOGS="$CATALOGS $cat"
11635 XLINGUAS="$XLINGUAS $lang"
11637 esac
11639 done
11640 LINGUAS="$XLINGUAS"
11641 echo "$as_me:$LINENO: result: $LINGUAS" >&5
11642 echo "${ECHO_T}$LINGUAS" >&6
11645 DATADIRNAME=share
11647 INSTOBJEXT=.mo
11649 GENCAT=gencat
11651 CATOBJEXT=.gmo
11655 MKINSTALLDIRS=
11656 if test -n "$ac_aux_dir"; then
11657 case "$ac_aux_dir" in
11658 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
11659 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
11660 esac
11662 if test -z "$MKINSTALLDIRS"; then
11663 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
11668 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11669 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
11670 # Check whether --enable-nls or --disable-nls was given.
11671 if test "${enable_nls+set}" = set; then
11672 enableval="$enable_nls"
11673 USE_NLS=$enableval
11674 else
11675 USE_NLS=yes
11677 echo "$as_me:$LINENO: result: $USE_NLS" >&5
11678 echo "${ECHO_T}$USE_NLS" >&6
11685 # Prepare PATH_SEPARATOR.
11686 # The user is always right.
11687 if test "${PATH_SEPARATOR+set}" != set; then
11688 echo "#! /bin/sh" >conf$$.sh
11689 echo "exit 0" >>conf$$.sh
11690 chmod +x conf$$.sh
11691 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11692 PATH_SEPARATOR=';'
11693 else
11694 PATH_SEPARATOR=:
11696 rm -f conf$$.sh
11699 # Find out how to test for executable files. Don't use a zero-byte file,
11700 # as systems may use methods other than mode bits to determine executability.
11701 cat >conf$$.file <<_ASEOF
11702 #! /bin/sh
11703 exit 0
11704 _ASEOF
11705 chmod +x conf$$.file
11706 if test -x conf$$.file >/dev/null 2>&1; then
11707 ac_executable_p="test -x"
11708 else
11709 ac_executable_p="test -f"
11711 rm -f conf$$.file
11713 # Extract the first word of "msgfmt", so it can be a program name with args.
11714 set dummy msgfmt; ac_word=$2
11715 echo "$as_me:$LINENO: checking for $ac_word" >&5
11716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11717 if test "${ac_cv_path_MSGFMT+set}" = set; then
11718 echo $ECHO_N "(cached) $ECHO_C" >&6
11719 else
11720 case "$MSGFMT" in
11721 [\\/]* | ?:[\\/]*)
11722 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11725 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11726 for ac_dir in $PATH; do
11727 IFS="$ac_save_IFS"
11728 test -z "$ac_dir" && ac_dir=.
11729 for ac_exec_ext in '' $ac_executable_extensions; do
11730 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11731 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
11732 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11733 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
11734 break 2
11737 done
11738 done
11739 IFS="$ac_save_IFS"
11740 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11742 esac
11744 MSGFMT="$ac_cv_path_MSGFMT"
11745 if test "$MSGFMT" != ":"; then
11746 echo "$as_me:$LINENO: result: $MSGFMT" >&5
11747 echo "${ECHO_T}$MSGFMT" >&6
11748 else
11749 echo "$as_me:$LINENO: result: no" >&5
11750 echo "${ECHO_T}no" >&6
11753 # Extract the first word of "gmsgfmt", so it can be a program name with args.
11754 set dummy gmsgfmt; ac_word=$2
11755 echo "$as_me:$LINENO: checking for $ac_word" >&5
11756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11757 if test "${ac_cv_path_GMSGFMT+set}" = set; then
11758 echo $ECHO_N "(cached) $ECHO_C" >&6
11759 else
11760 case $GMSGFMT in
11761 [\\/]* | ?:[\\/]*)
11762 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11766 for as_dir in $PATH
11768 IFS=$as_save_IFS
11769 test -z "$as_dir" && as_dir=.
11770 for ac_exec_ext in '' $ac_executable_extensions; do
11771 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11772 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
11773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11774 break 2
11776 done
11777 done
11779 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11781 esac
11783 GMSGFMT=$ac_cv_path_GMSGFMT
11785 if test -n "$GMSGFMT"; then
11786 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
11787 echo "${ECHO_T}$GMSGFMT" >&6
11788 else
11789 echo "$as_me:$LINENO: result: no" >&5
11790 echo "${ECHO_T}no" >&6
11795 # Prepare PATH_SEPARATOR.
11796 # The user is always right.
11797 if test "${PATH_SEPARATOR+set}" != set; then
11798 echo "#! /bin/sh" >conf$$.sh
11799 echo "exit 0" >>conf$$.sh
11800 chmod +x conf$$.sh
11801 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11802 PATH_SEPARATOR=';'
11803 else
11804 PATH_SEPARATOR=:
11806 rm -f conf$$.sh
11809 # Find out how to test for executable files. Don't use a zero-byte file,
11810 # as systems may use methods other than mode bits to determine executability.
11811 cat >conf$$.file <<_ASEOF
11812 #! /bin/sh
11813 exit 0
11814 _ASEOF
11815 chmod +x conf$$.file
11816 if test -x conf$$.file >/dev/null 2>&1; then
11817 ac_executable_p="test -x"
11818 else
11819 ac_executable_p="test -f"
11821 rm -f conf$$.file
11823 # Extract the first word of "xgettext", so it can be a program name with args.
11824 set dummy xgettext; ac_word=$2
11825 echo "$as_me:$LINENO: checking for $ac_word" >&5
11826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11827 if test "${ac_cv_path_XGETTEXT+set}" = set; then
11828 echo $ECHO_N "(cached) $ECHO_C" >&6
11829 else
11830 case "$XGETTEXT" in
11831 [\\/]* | ?:[\\/]*)
11832 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11835 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11836 for ac_dir in $PATH; do
11837 IFS="$ac_save_IFS"
11838 test -z "$ac_dir" && ac_dir=.
11839 for ac_exec_ext in '' $ac_executable_extensions; do
11840 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11841 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11842 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11843 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
11844 break 2
11847 done
11848 done
11849 IFS="$ac_save_IFS"
11850 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11852 esac
11854 XGETTEXT="$ac_cv_path_XGETTEXT"
11855 if test "$XGETTEXT" != ":"; then
11856 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
11857 echo "${ECHO_T}$XGETTEXT" >&6
11858 else
11859 echo "$as_me:$LINENO: result: no" >&5
11860 echo "${ECHO_T}no" >&6
11863 rm -f messages.po
11866 # Prepare PATH_SEPARATOR.
11867 # The user is always right.
11868 if test "${PATH_SEPARATOR+set}" != set; then
11869 echo "#! /bin/sh" >conf$$.sh
11870 echo "exit 0" >>conf$$.sh
11871 chmod +x conf$$.sh
11872 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11873 PATH_SEPARATOR=';'
11874 else
11875 PATH_SEPARATOR=:
11877 rm -f conf$$.sh
11880 # Find out how to test for executable files. Don't use a zero-byte file,
11881 # as systems may use methods other than mode bits to determine executability.
11882 cat >conf$$.file <<_ASEOF
11883 #! /bin/sh
11884 exit 0
11885 _ASEOF
11886 chmod +x conf$$.file
11887 if test -x conf$$.file >/dev/null 2>&1; then
11888 ac_executable_p="test -x"
11889 else
11890 ac_executable_p="test -f"
11892 rm -f conf$$.file
11894 # Extract the first word of "msgmerge", so it can be a program name with args.
11895 set dummy msgmerge; ac_word=$2
11896 echo "$as_me:$LINENO: checking for $ac_word" >&5
11897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11898 if test "${ac_cv_path_MSGMERGE+set}" = set; then
11899 echo $ECHO_N "(cached) $ECHO_C" >&6
11900 else
11901 case "$MSGMERGE" in
11902 [\\/]* | ?:[\\/]*)
11903 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11906 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11907 for ac_dir in $PATH; do
11908 IFS="$ac_save_IFS"
11909 test -z "$ac_dir" && ac_dir=.
11910 for ac_exec_ext in '' $ac_executable_extensions; do
11911 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11912 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
11913 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11914 break 2
11917 done
11918 done
11919 IFS="$ac_save_IFS"
11920 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11922 esac
11924 MSGMERGE="$ac_cv_path_MSGMERGE"
11925 if test "$MSGMERGE" != ":"; then
11926 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
11927 echo "${ECHO_T}$MSGMERGE" >&6
11928 else
11929 echo "$as_me:$LINENO: result: no" >&5
11930 echo "${ECHO_T}no" >&6
11934 if test "$GMSGFMT" != ":"; then
11935 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
11936 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11938 else
11939 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
11940 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
11941 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
11942 GMSGFMT=":"
11946 if test "$XGETTEXT" != ":"; then
11947 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11948 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11950 else
11951 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
11952 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
11953 XGETTEXT=":"
11955 rm -f messages.po
11958 ac_config_commands="$ac_config_commands default-1"
11962 . ${srcdir}/../bfd/configure.host
11964 # Put a plausible default for CC_FOR_BUILD in Makefile.
11965 if test -z "$CC_FOR_BUILD"; then
11966 if test "x$cross_compiling" = "xno"; then
11967 CC_FOR_BUILD='$(CC)'
11968 else
11969 CC_FOR_BUILD=gcc
11973 # Also set EXEEXT_FOR_BUILD.
11974 if test "x$cross_compiling" = "xno"; then
11975 EXEEXT_FOR_BUILD='$(EXEEXT)'
11976 else
11977 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
11978 echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
11979 if test "${bfd_cv_build_exeext+set}" = set; then
11980 echo $ECHO_N "(cached) $ECHO_C" >&6
11981 else
11982 rm -f conftest*
11983 echo 'int main () { return 0; }' > conftest.c
11984 bfd_cv_build_exeext=
11985 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
11986 for file in conftest.*; do
11987 case $file in
11988 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
11989 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
11990 esac
11991 done
11992 rm -f conftest*
11993 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
11995 echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
11996 echo "${ECHO_T}$bfd_cv_build_exeext" >&6
11997 EXEEXT_FOR_BUILD=""
11998 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
12003 # Find a good install program. We prefer a C program (faster),
12004 # so one script is as good as another. But avoid the broken or
12005 # incompatible versions:
12006 # SysV /etc/install, /usr/sbin/install
12007 # SunOS /usr/etc/install
12008 # IRIX /sbin/install
12009 # AIX /bin/install
12010 # AmigaOS /C/install, which installs bootblocks on floppy discs
12011 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12012 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
12013 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
12014 # OS/2's system install, which has a completely different semantic
12015 # ./install, which can be erroneously created by make from ./install.sh.
12016 # Reject install programs that cannot install multiple files.
12017 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12018 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
12019 if test -z "$INSTALL"; then
12020 if test "${ac_cv_path_install+set}" = set; then
12021 echo $ECHO_N "(cached) $ECHO_C" >&6
12022 else
12023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12024 for as_dir in $PATH
12026 IFS=$as_save_IFS
12027 test -z "$as_dir" && as_dir=.
12028 # Account for people who put trailing slashes in PATH elements.
12029 case $as_dir/ in
12030 ./ | .// | /cC/* | \
12031 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
12032 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
12033 /usr/ucb/* ) ;;
12035 # OSF1 and SCO ODT 3.0 have their own names for install.
12036 # Don't use installbsd from OSF since it installs stuff as root
12037 # by default.
12038 for ac_prog in ginstall scoinst install; do
12039 for ac_exec_ext in '' $ac_executable_extensions; do
12040 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
12041 if test $ac_prog = install &&
12042 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12043 # AIX install. It has an incompatible calling convention.
12045 elif test $ac_prog = install &&
12046 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12047 # program-specific install script used by HP pwplus--don't use.
12049 else
12050 rm -rf conftest.one conftest.two conftest.dir
12051 echo one > conftest.one
12052 echo two > conftest.two
12053 mkdir conftest.dir
12054 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
12055 test -s conftest.one && test -s conftest.two &&
12056 test -s conftest.dir/conftest.one &&
12057 test -s conftest.dir/conftest.two
12058 then
12059 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12060 break 3
12064 done
12065 done
12067 esac
12068 done
12070 rm -rf conftest.one conftest.two conftest.dir
12073 if test "${ac_cv_path_install+set}" = set; then
12074 INSTALL=$ac_cv_path_install
12075 else
12076 # As a last resort, use the slow shell script. Don't cache a
12077 # value for INSTALL within a source directory, because that will
12078 # break other packages using the cache if that directory is
12079 # removed, or if the value is a relative name.
12080 INSTALL=$ac_install_sh
12083 echo "$as_me:$LINENO: result: $INSTALL" >&5
12084 echo "${ECHO_T}$INSTALL" >&6
12086 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12087 # It thinks the first close brace ends the variable substitution.
12088 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12090 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12092 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12099 for ac_header in string.h strings.h stdlib.h limits.h
12101 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12102 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12103 echo "$as_me:$LINENO: checking for $ac_header" >&5
12104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12105 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12106 echo $ECHO_N "(cached) $ECHO_C" >&6
12108 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12109 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12110 else
12111 # Is the header compilable?
12112 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12113 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12114 cat >conftest.$ac_ext <<_ACEOF
12115 /* confdefs.h. */
12116 _ACEOF
12117 cat confdefs.h >>conftest.$ac_ext
12118 cat >>conftest.$ac_ext <<_ACEOF
12119 /* end confdefs.h. */
12120 $ac_includes_default
12121 #include <$ac_header>
12122 _ACEOF
12123 rm -f conftest.$ac_objext
12124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12125 (eval $ac_compile) 2>conftest.er1
12126 ac_status=$?
12127 grep -v '^ *+' conftest.er1 >conftest.err
12128 rm -f conftest.er1
12129 cat conftest.err >&5
12130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131 (exit $ac_status); } &&
12132 { ac_try='test -z "$ac_c_werror_flag"
12133 || test ! -s conftest.err'
12134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12135 (eval $ac_try) 2>&5
12136 ac_status=$?
12137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12138 (exit $ac_status); }; } &&
12139 { ac_try='test -s conftest.$ac_objext'
12140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12141 (eval $ac_try) 2>&5
12142 ac_status=$?
12143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12144 (exit $ac_status); }; }; then
12145 ac_header_compiler=yes
12146 else
12147 echo "$as_me: failed program was:" >&5
12148 sed 's/^/| /' conftest.$ac_ext >&5
12150 ac_header_compiler=no
12152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12153 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12154 echo "${ECHO_T}$ac_header_compiler" >&6
12156 # Is the header present?
12157 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12158 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12159 cat >conftest.$ac_ext <<_ACEOF
12160 /* confdefs.h. */
12161 _ACEOF
12162 cat confdefs.h >>conftest.$ac_ext
12163 cat >>conftest.$ac_ext <<_ACEOF
12164 /* end confdefs.h. */
12165 #include <$ac_header>
12166 _ACEOF
12167 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12168 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12169 ac_status=$?
12170 grep -v '^ *+' conftest.er1 >conftest.err
12171 rm -f conftest.er1
12172 cat conftest.err >&5
12173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12174 (exit $ac_status); } >/dev/null; then
12175 if test -s conftest.err; then
12176 ac_cpp_err=$ac_c_preproc_warn_flag
12177 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12178 else
12179 ac_cpp_err=
12181 else
12182 ac_cpp_err=yes
12184 if test -z "$ac_cpp_err"; then
12185 ac_header_preproc=yes
12186 else
12187 echo "$as_me: failed program was:" >&5
12188 sed 's/^/| /' conftest.$ac_ext >&5
12190 ac_header_preproc=no
12192 rm -f conftest.err conftest.$ac_ext
12193 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12194 echo "${ECHO_T}$ac_header_preproc" >&6
12196 # So? What about this header?
12197 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12198 yes:no: )
12199 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12200 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12201 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12202 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12203 ac_header_preproc=yes
12205 no:yes:* )
12206 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12207 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12208 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12209 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12210 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12211 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12212 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12213 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12214 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12215 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12216 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12217 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12219 cat <<\_ASBOX
12220 ## ------------------------------------------ ##
12221 ## Report this to the AC_PACKAGE_NAME lists. ##
12222 ## ------------------------------------------ ##
12223 _ASBOX
12225 sed "s/^/$as_me: WARNING: /" >&2
12227 esac
12228 echo "$as_me:$LINENO: checking for $ac_header" >&5
12229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12230 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12231 echo $ECHO_N "(cached) $ECHO_C" >&6
12232 else
12233 eval "$as_ac_Header=\$ac_header_preproc"
12235 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12236 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12239 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12240 cat >>confdefs.h <<_ACEOF
12241 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12242 _ACEOF
12246 done
12249 echo "$as_me:$LINENO: checking whether basename is declared" >&5
12250 echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
12251 if test "${ac_cv_have_decl_basename+set}" = set; then
12252 echo $ECHO_N "(cached) $ECHO_C" >&6
12253 else
12254 cat >conftest.$ac_ext <<_ACEOF
12255 /* confdefs.h. */
12256 _ACEOF
12257 cat confdefs.h >>conftest.$ac_ext
12258 cat >>conftest.$ac_ext <<_ACEOF
12259 /* end confdefs.h. */
12260 $ac_includes_default
12262 main ()
12264 #ifndef basename
12265 char *p = (char *) basename;
12266 #endif
12269 return 0;
12271 _ACEOF
12272 rm -f conftest.$ac_objext
12273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12274 (eval $ac_compile) 2>conftest.er1
12275 ac_status=$?
12276 grep -v '^ *+' conftest.er1 >conftest.err
12277 rm -f conftest.er1
12278 cat conftest.err >&5
12279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12280 (exit $ac_status); } &&
12281 { ac_try='test -z "$ac_c_werror_flag"
12282 || test ! -s conftest.err'
12283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12284 (eval $ac_try) 2>&5
12285 ac_status=$?
12286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287 (exit $ac_status); }; } &&
12288 { ac_try='test -s conftest.$ac_objext'
12289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12290 (eval $ac_try) 2>&5
12291 ac_status=$?
12292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293 (exit $ac_status); }; }; then
12294 ac_cv_have_decl_basename=yes
12295 else
12296 echo "$as_me: failed program was:" >&5
12297 sed 's/^/| /' conftest.$ac_ext >&5
12299 ac_cv_have_decl_basename=no
12301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12303 echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
12304 echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
12305 if test $ac_cv_have_decl_basename = yes; then
12307 cat >>confdefs.h <<_ACEOF
12308 #define HAVE_DECL_BASENAME 1
12309 _ACEOF
12312 else
12313 cat >>confdefs.h <<_ACEOF
12314 #define HAVE_DECL_BASENAME 0
12315 _ACEOF
12319 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
12320 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
12321 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
12322 echo $ECHO_N "(cached) $ECHO_C" >&6
12323 else
12324 cat >conftest.$ac_ext <<_ACEOF
12325 /* confdefs.h. */
12326 _ACEOF
12327 cat confdefs.h >>conftest.$ac_ext
12328 cat >>conftest.$ac_ext <<_ACEOF
12329 /* end confdefs.h. */
12330 $ac_includes_default
12332 main ()
12334 #ifndef stpcpy
12335 char *p = (char *) stpcpy;
12336 #endif
12339 return 0;
12341 _ACEOF
12342 rm -f conftest.$ac_objext
12343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12344 (eval $ac_compile) 2>conftest.er1
12345 ac_status=$?
12346 grep -v '^ *+' conftest.er1 >conftest.err
12347 rm -f conftest.er1
12348 cat conftest.err >&5
12349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350 (exit $ac_status); } &&
12351 { ac_try='test -z "$ac_c_werror_flag"
12352 || test ! -s conftest.err'
12353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12354 (eval $ac_try) 2>&5
12355 ac_status=$?
12356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357 (exit $ac_status); }; } &&
12358 { ac_try='test -s conftest.$ac_objext'
12359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12360 (eval $ac_try) 2>&5
12361 ac_status=$?
12362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363 (exit $ac_status); }; }; then
12364 ac_cv_have_decl_stpcpy=yes
12365 else
12366 echo "$as_me: failed program was:" >&5
12367 sed 's/^/| /' conftest.$ac_ext >&5
12369 ac_cv_have_decl_stpcpy=no
12371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12373 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
12374 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
12375 if test $ac_cv_have_decl_stpcpy = yes; then
12377 cat >>confdefs.h <<_ACEOF
12378 #define HAVE_DECL_STPCPY 1
12379 _ACEOF
12382 else
12383 cat >>confdefs.h <<_ACEOF
12384 #define HAVE_DECL_STPCPY 0
12385 _ACEOF
12392 cgen_maint=no
12393 cgendir='$(srcdir)/../cgen'
12395 # Check whether --enable-cgen-maint or --disable-cgen-maint was given.
12396 if test "${enable_cgen_maint+set}" = set; then
12397 enableval="$enable_cgen_maint"
12398 case "${enableval}" in
12399 yes) cgen_maint=yes ;;
12400 no) cgen_maint=no ;;
12402 # argument is cgen install directory (not implemented yet).
12403 # Having a `share' directory might be more appropriate for the .scm,
12404 # .cpu, etc. files.
12405 cgen_maint=yes
12406 cgendir=${cgen_maint}/lib/cgen
12408 esac
12411 if test x${cgen_maint} = xyes; then
12412 CGEN_MAINT_TRUE=
12413 CGEN_MAINT_FALSE='#'
12414 else
12415 CGEN_MAINT_TRUE='#'
12416 CGEN_MAINT_FALSE=
12421 using_cgen=no
12423 # Check if linker supports --as-needed and --no-as-needed options
12424 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
12425 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
12426 if test "${bfd_cv_ld_as_needed+set}" = set; then
12427 echo $ECHO_N "(cached) $ECHO_C" >&6
12428 else
12429 bfd_cv_ld_as_needed=no
12430 if $LD --help 2>/dev/null | grep as-needed > /dev/null; then
12431 bfd_cv_ld_as_needed=yes
12435 echo "$as_me:$LINENO: result: $bfd_cv_ld_as_needed" >&5
12436 echo "${ECHO_T}$bfd_cv_ld_as_needed" >&6
12438 LIBM=
12439 case $host in
12440 *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
12441 # These system don't have libm, or don't need it
12443 *-ncr-sysv4.3*)
12444 echo "$as_me:$LINENO: checking for _mwvalidcheckl in -lmw" >&5
12445 echo $ECHO_N "checking for _mwvalidcheckl in -lmw... $ECHO_C" >&6
12446 if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then
12447 echo $ECHO_N "(cached) $ECHO_C" >&6
12448 else
12449 ac_check_lib_save_LIBS=$LIBS
12450 LIBS="-lmw $LIBS"
12451 cat >conftest.$ac_ext <<_ACEOF
12452 /* confdefs.h. */
12453 _ACEOF
12454 cat confdefs.h >>conftest.$ac_ext
12455 cat >>conftest.$ac_ext <<_ACEOF
12456 /* end confdefs.h. */
12458 /* Override any gcc2 internal prototype to avoid an error. */
12459 #ifdef __cplusplus
12460 extern "C"
12461 #endif
12462 /* We use char because int might match the return type of a gcc2
12463 builtin and then its argument prototype would still apply. */
12464 char _mwvalidcheckl ();
12466 main ()
12468 _mwvalidcheckl ();
12470 return 0;
12472 _ACEOF
12473 rm -f conftest.$ac_objext conftest$ac_exeext
12474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12475 (eval $ac_link) 2>conftest.er1
12476 ac_status=$?
12477 grep -v '^ *+' conftest.er1 >conftest.err
12478 rm -f conftest.er1
12479 cat conftest.err >&5
12480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481 (exit $ac_status); } &&
12482 { ac_try='test -z "$ac_c_werror_flag"
12483 || test ! -s conftest.err'
12484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12485 (eval $ac_try) 2>&5
12486 ac_status=$?
12487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488 (exit $ac_status); }; } &&
12489 { ac_try='test -s conftest$ac_exeext'
12490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12491 (eval $ac_try) 2>&5
12492 ac_status=$?
12493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12494 (exit $ac_status); }; }; then
12495 ac_cv_lib_mw__mwvalidcheckl=yes
12496 else
12497 echo "$as_me: failed program was:" >&5
12498 sed 's/^/| /' conftest.$ac_ext >&5
12500 ac_cv_lib_mw__mwvalidcheckl=no
12502 rm -f conftest.err conftest.$ac_objext \
12503 conftest$ac_exeext conftest.$ac_ext
12504 LIBS=$ac_check_lib_save_LIBS
12506 echo "$as_me:$LINENO: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
12507 echo "${ECHO_T}$ac_cv_lib_mw__mwvalidcheckl" >&6
12508 if test $ac_cv_lib_mw__mwvalidcheckl = yes; then
12509 LIBM="-lmw"
12512 echo "$as_me:$LINENO: checking for cos in -lm" >&5
12513 echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6
12514 if test "${ac_cv_lib_m_cos+set}" = set; then
12515 echo $ECHO_N "(cached) $ECHO_C" >&6
12516 else
12517 ac_check_lib_save_LIBS=$LIBS
12518 LIBS="-lm $LIBS"
12519 cat >conftest.$ac_ext <<_ACEOF
12520 /* confdefs.h. */
12521 _ACEOF
12522 cat confdefs.h >>conftest.$ac_ext
12523 cat >>conftest.$ac_ext <<_ACEOF
12524 /* end confdefs.h. */
12526 /* Override any gcc2 internal prototype to avoid an error. */
12527 #ifdef __cplusplus
12528 extern "C"
12529 #endif
12530 /* We use char because int might match the return type of a gcc2
12531 builtin and then its argument prototype would still apply. */
12532 char cos ();
12534 main ()
12536 cos ();
12538 return 0;
12540 _ACEOF
12541 rm -f conftest.$ac_objext conftest$ac_exeext
12542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12543 (eval $ac_link) 2>conftest.er1
12544 ac_status=$?
12545 grep -v '^ *+' conftest.er1 >conftest.err
12546 rm -f conftest.er1
12547 cat conftest.err >&5
12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549 (exit $ac_status); } &&
12550 { ac_try='test -z "$ac_c_werror_flag"
12551 || test ! -s conftest.err'
12552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12553 (eval $ac_try) 2>&5
12554 ac_status=$?
12555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556 (exit $ac_status); }; } &&
12557 { ac_try='test -s conftest$ac_exeext'
12558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12559 (eval $ac_try) 2>&5
12560 ac_status=$?
12561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 (exit $ac_status); }; }; then
12563 ac_cv_lib_m_cos=yes
12564 else
12565 echo "$as_me: failed program was:" >&5
12566 sed 's/^/| /' conftest.$ac_ext >&5
12568 ac_cv_lib_m_cos=no
12570 rm -f conftest.err conftest.$ac_objext \
12571 conftest$ac_exeext conftest.$ac_ext
12572 LIBS=$ac_check_lib_save_LIBS
12574 echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
12575 echo "${ECHO_T}$ac_cv_lib_m_cos" >&6
12576 if test $ac_cv_lib_m_cos = yes; then
12577 LIBM="$LIBM -lm"
12582 echo "$as_me:$LINENO: checking for cos in -lm" >&5
12583 echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6
12584 if test "${ac_cv_lib_m_cos+set}" = set; then
12585 echo $ECHO_N "(cached) $ECHO_C" >&6
12586 else
12587 ac_check_lib_save_LIBS=$LIBS
12588 LIBS="-lm $LIBS"
12589 cat >conftest.$ac_ext <<_ACEOF
12590 /* confdefs.h. */
12591 _ACEOF
12592 cat confdefs.h >>conftest.$ac_ext
12593 cat >>conftest.$ac_ext <<_ACEOF
12594 /* end confdefs.h. */
12596 /* Override any gcc2 internal prototype to avoid an error. */
12597 #ifdef __cplusplus
12598 extern "C"
12599 #endif
12600 /* We use char because int might match the return type of a gcc2
12601 builtin and then its argument prototype would still apply. */
12602 char cos ();
12604 main ()
12606 cos ();
12608 return 0;
12610 _ACEOF
12611 rm -f conftest.$ac_objext conftest$ac_exeext
12612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12613 (eval $ac_link) 2>conftest.er1
12614 ac_status=$?
12615 grep -v '^ *+' conftest.er1 >conftest.err
12616 rm -f conftest.er1
12617 cat conftest.err >&5
12618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619 (exit $ac_status); } &&
12620 { ac_try='test -z "$ac_c_werror_flag"
12621 || test ! -s conftest.err'
12622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12623 (eval $ac_try) 2>&5
12624 ac_status=$?
12625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626 (exit $ac_status); }; } &&
12627 { ac_try='test -s conftest$ac_exeext'
12628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12629 (eval $ac_try) 2>&5
12630 ac_status=$?
12631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12632 (exit $ac_status); }; }; then
12633 ac_cv_lib_m_cos=yes
12634 else
12635 echo "$as_me: failed program was:" >&5
12636 sed 's/^/| /' conftest.$ac_ext >&5
12638 ac_cv_lib_m_cos=no
12640 rm -f conftest.err conftest.$ac_objext \
12641 conftest$ac_exeext conftest.$ac_ext
12642 LIBS=$ac_check_lib_save_LIBS
12644 echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
12645 echo "${ECHO_T}$ac_cv_lib_m_cos" >&6
12646 if test $ac_cv_lib_m_cos = yes; then
12647 LIBM="-lm"
12651 esac
12655 # Horrible hacks to build DLLs on Windows and a shared library elsewhere.
12656 SHARED_LDFLAGS=
12657 SHARED_LIBADD=
12658 SHARED_DEPENDENCIES=
12659 if test "$enable_shared" = "yes"; then
12660 # When building a shared libopcodes, link against the pic version of libiberty
12661 # so that apps that use libopcodes won't need libiberty just to satisfy any
12662 # libopcodes references.
12663 # We can't do that if a pic libiberty is unavailable since including non-pic
12664 # code would insert text relocations into libopcodes.
12665 # Note that linking against libbfd as we do here, which is itself linked
12666 # against libiberty, may not satisfy all the libopcodes libiberty references
12667 # since libbfd may not pull in the entirety of libiberty.
12668 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
12669 if test -n "$x"; then
12670 SHARED_LIBADD="-L`pwd`/../libiberty/pic -liberty"
12673 case "${host}" in
12674 *-*-cygwin*)
12675 SHARED_LDFLAGS="-no-undefined"
12676 SHARED_LIBADD="-L`pwd`/../bfd -lbfd -L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin"
12678 *-*-darwin*)
12679 SHARED_LIBADD="-Wl,`pwd`/../bfd/.libs/libbfd.dylib ${SHARED_LIBADD}"
12680 SHARED_DEPENDENCIES="../bfd/libbfd.la"
12683 case "$host_vendor" in
12685 SHARED_LIBADD="-Wl,`pwd`/../bfd/.libs/libbfd.sl ${SHARED_LIBADD}"
12688 SHARED_LIBADD="-Wl,`pwd`/../bfd/.libs/libbfd.so ${SHARED_LIBADD}"
12690 esac
12691 SHARED_DEPENDENCIES="../bfd/libbfd.la"
12693 esac
12695 if test -n "$SHARED_LIBADD"; then
12696 if test -n "$LIBM"; then
12697 if test x"$bfd_cv_ld_as_needed" = xyes; then
12698 # Link against libm only when needed. Put -lc, -lm inside -Wl
12699 # to stop libtool reordering these options.
12700 SHARED_LIBADD="$SHARED_LIBADD -Wl,-lc,--as-needed,`echo $LIBM | sed 's/ /,/g'`,--no-as-needed"
12701 else
12702 SHARED_LIBADD="$SHARED_LIBADD $LIBM"
12711 # target-specific stuff:
12713 # Canonicalize the secondary target names.
12714 if test -n "$enable_targets" ; then
12715 for targ in `echo $enable_targets | sed 's/,/ /g'`
12717 result=`$ac_config_sub $targ 2>/dev/null`
12718 if test -n "$result" ; then
12719 canon_targets="$canon_targets $result"
12720 else
12721 # Allow targets that config.sub doesn't recognize, like "all".
12722 canon_targets="$canon_targets $targ"
12724 done
12727 all_targets=false
12728 selarchs=
12729 for targ in $target $canon_targets
12731 if test "x$targ" = "xall" ; then
12732 all_targets=true
12733 else
12734 . $srcdir/../bfd/config.bfd
12735 selarchs="$selarchs $targ_archs"
12737 done
12739 # Utility var, documents generic cgen support files.
12741 cgen_files="cgen-opc.lo cgen-asm.lo cgen-dis.lo cgen-bitset.lo"
12743 # We don't do any links based on the target system, just makefile config.
12745 if test x${all_targets} = xfalse ; then
12747 # Target architecture .o files.
12750 for arch in $selarchs
12752 ad=`echo $arch | sed -e s/bfd_//g -e s/_arch//g`
12753 archdefs="$archdefs -DARCH_$ad"
12754 case "$arch" in
12755 bfd_alpha_arch) ta="$ta alpha-dis.lo alpha-opc.lo" ;;
12756 bfd_arc_arch) ta="$ta arc-dis.lo arc-opc.lo arc-ext.lo" ;;
12757 bfd_arm_arch) ta="$ta arm-dis.lo" ;;
12758 bfd_avr_arch) ta="$ta avr-dis.lo" ;;
12759 bfd_bfin_arch) ta="$ta bfin-dis.lo" ;;
12760 bfd_cr16_arch) ta="$ta cr16-dis.lo cr16-opc.lo" ;;
12761 bfd_cris_arch) ta="$ta cris-dis.lo cris-opc.lo cgen-bitset.lo" ;;
12762 bfd_crx_arch) ta="$ta crx-dis.lo crx-opc.lo" ;;
12763 bfd_d10v_arch) ta="$ta d10v-dis.lo d10v-opc.lo" ;;
12764 bfd_d30v_arch) ta="$ta d30v-dis.lo d30v-opc.lo" ;;
12765 bfd_dlx_arch) ta="$ta dlx-dis.lo" ;;
12766 bfd_fr30_arch) ta="$ta fr30-asm.lo fr30-desc.lo fr30-dis.lo fr30-ibld.lo fr30-opc.lo" using_cgen=yes ;;
12767 bfd_frv_arch) ta="$ta frv-asm.lo frv-desc.lo frv-dis.lo frv-ibld.lo frv-opc.lo" using_cgen=yes ;;
12768 bfd_h8300_arch) ta="$ta h8300-dis.lo" ;;
12769 bfd_h8500_arch) ta="$ta h8500-dis.lo" ;;
12770 bfd_hppa_arch) ta="$ta hppa-dis.lo" ;;
12771 bfd_i370_arch) ta="$ta i370-dis.lo i370-opc.lo" ;;
12772 bfd_i386_arch) ta="$ta i386-dis.lo i386-opc.lo" ;;
12773 bfd_i860_arch) ta="$ta i860-dis.lo" ;;
12774 bfd_i960_arch) ta="$ta i960-dis.lo" ;;
12775 bfd_ia64_arch) ta="$ta ia64-dis.lo ia64-opc.lo" ;;
12776 bfd_ip2k_arch) ta="$ta ip2k-asm.lo ip2k-desc.lo ip2k-dis.lo ip2k-ibld.lo ip2k-opc.lo" using_cgen=yes ;;
12777 bfd_iq2000_arch) ta="$ta iq2000-asm.lo iq2000-desc.lo iq2000-dis.lo iq2000-ibld.lo iq2000-opc.lo" using_cgen=yes ;;
12778 bfd_lm32_arch) ta="$ta lm32-asm.lo lm32-desc.lo lm32-dis.lo lm32-ibld.lo lm32-opc.lo lm32-opinst.lo" using_cgen=yes ;;
12779 bfd_m32c_arch) ta="$ta m32c-asm.lo m32c-desc.lo m32c-dis.lo m32c-ibld.lo m32c-opc.lo" using_cgen=yes ;;
12780 bfd_m32r_arch) ta="$ta m32r-asm.lo m32r-desc.lo m32r-dis.lo m32r-ibld.lo m32r-opc.lo m32r-opinst.lo" using_cgen=yes ;;
12781 bfd_m68hc11_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
12782 bfd_m68hc12_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
12783 bfd_m68k_arch) ta="$ta m68k-dis.lo m68k-opc.lo" ;;
12784 bfd_m88k_arch) ta="$ta m88k-dis.lo" ;;
12785 bfd_maxq_arch) ta="$ta maxq-dis.lo" ;;
12786 bfd_mcore_arch) ta="$ta mcore-dis.lo" ;;
12787 bfd_mep_arch) ta="$ta mep-asm.lo mep-desc.lo mep-dis.lo mep-ibld.lo mep-opc.lo" using_cgen=yes ;;
12788 bfd_mips_arch) ta="$ta mips-dis.lo mips-opc.lo mips16-opc.lo" ;;
12789 bfd_mmix_arch) ta="$ta mmix-dis.lo mmix-opc.lo" ;;
12790 bfd_mn10200_arch) ta="$ta m10200-dis.lo m10200-opc.lo" ;;
12791 bfd_mn10300_arch) ta="$ta m10300-dis.lo m10300-opc.lo" ;;
12792 bfd_mt_arch) ta="$ta mt-asm.lo mt-desc.lo mt-dis.lo mt-ibld.lo mt-opc.lo" using_cgen=yes ;;
12793 bfd_msp430_arch) ta="$ta msp430-dis.lo" ;;
12794 bfd_ns32k_arch) ta="$ta ns32k-dis.lo" ;;
12795 bfd_openrisc_arch) ta="$ta openrisc-asm.lo openrisc-desc.lo openrisc-dis.lo openrisc-ibld.lo openrisc-opc.lo" using_cgen=yes ;;
12796 bfd_or32_arch) ta="$ta or32-dis.lo or32-opc.lo" using_cgen=yes ;;
12797 bfd_pdp11_arch) ta="$ta pdp11-dis.lo pdp11-opc.lo" ;;
12798 bfd_pj_arch) ta="$ta pj-dis.lo pj-opc.lo" ;;
12799 bfd_powerpc_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
12800 bfd_powerpc_64_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
12801 bfd_pyramid_arch) ;;
12802 bfd_romp_arch) ;;
12803 bfd_rs6000_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
12804 bfd_s390_arch) ta="$ta s390-dis.lo s390-opc.lo" ;;
12805 bfd_score_arch) ta="$ta score-dis.lo score7-dis.lo" ;;
12806 bfd_sh_arch)
12807 # We can't decide what we want just from the CPU family.
12808 # We want SH5 support unless a specific version of sh is
12809 # specified, as in sh3-elf, sh3b-linux-gnu, etc.
12810 # Include it just for ELF targets, since the SH5 bfd:s are ELF only.
12811 for t in $target $canon_targets; do
12812 case $t in
12813 all | sh5*-* | sh64*-* | sh-*-*elf* | shl*-*-*elf* | \
12814 sh-*-linux* | shl-*-linux*)
12815 ta="$ta sh64-dis.lo sh64-opc.lo"
12816 archdefs="$archdefs -DINCLUDE_SHMEDIA"
12817 break;;
12818 esac;
12819 done
12820 ta="$ta sh-dis.lo cgen-bitset.lo" ;;
12821 bfd_sparc_arch) ta="$ta sparc-dis.lo sparc-opc.lo" ;;
12822 bfd_spu_arch) ta="$ta spu-dis.lo spu-opc.lo" ;;
12823 bfd_tahoe_arch) ;;
12824 bfd_tic30_arch) ta="$ta tic30-dis.lo" ;;
12825 bfd_tic4x_arch) ta="$ta tic4x-dis.lo" ;;
12826 bfd_tic54x_arch) ta="$ta tic54x-dis.lo tic54x-opc.lo" ;;
12827 bfd_tic80_arch) ta="$ta tic80-dis.lo tic80-opc.lo" ;;
12828 bfd_v850_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
12829 bfd_v850e_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
12830 bfd_v850ea_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
12831 bfd_vax_arch) ta="$ta vax-dis.lo" ;;
12832 bfd_w65_arch) ta="$ta w65-dis.lo" ;;
12833 bfd_we32k_arch) ;;
12834 bfd_xc16x_arch) ta="$ta xc16x-asm.lo xc16x-desc.lo xc16x-dis.lo xc16x-ibld.lo xc16x-opc.lo" using_cgen=yes ;;
12835 bfd_xstormy16_arch) ta="$ta xstormy16-asm.lo xstormy16-desc.lo xstormy16-dis.lo xstormy16-ibld.lo xstormy16-opc.lo" using_cgen=yes ;;
12836 bfd_xtensa_arch) ta="$ta xtensa-dis.lo" ;;
12837 bfd_z80_arch) ta="$ta z80-dis.lo" ;;
12838 bfd_z8k_arch) ta="$ta z8k-dis.lo" ;;
12840 "") ;;
12841 *) { { echo "$as_me:$LINENO: error: *** unknown target architecture $arch" >&5
12842 echo "$as_me: error: *** unknown target architecture $arch" >&2;}
12843 { (exit 1); exit 1; }; } ;;
12844 esac
12845 done
12847 if test $using_cgen = yes ; then
12848 ta="$ta $cgen_files"
12851 # Weed out duplicate .o files.
12852 f=""
12853 for i in $ta ; do
12854 case " $f " in
12855 *" $i "*) ;;
12856 *) f="$f $i" ;;
12857 esac
12858 done
12859 ta="$f"
12861 # And duplicate -D flags.
12862 f=""
12863 for i in $archdefs ; do
12864 case " $f " in
12865 *" $i "*) ;;
12866 *) f="$f $i" ;;
12867 esac
12868 done
12869 archdefs="$f"
12871 BFD_MACHINES="$ta"
12873 else # all_targets is true
12874 archdefs=-DARCH_all
12875 BFD_MACHINES='$(ALL_MACHINES)'
12881 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
12883 cat >confcache <<\_ACEOF
12884 # This file is a shell script that caches the results of configure
12885 # tests run on this system so they can be shared between configure
12886 # scripts and configure runs, see configure's option --config-cache.
12887 # It is not useful on other systems. If it contains results you don't
12888 # want to keep, you may remove or edit it.
12890 # config.status only pays attention to the cache file if you give it
12891 # the --recheck option to rerun configure.
12893 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12894 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12895 # following values.
12897 _ACEOF
12899 # The following way of writing the cache mishandles newlines in values,
12900 # but we know of no workaround that is simple, portable, and efficient.
12901 # So, don't put newlines in cache variables' values.
12902 # Ultrix sh set writes to stderr and can't be redirected directly,
12903 # and sets the high bit in the cache file unless we assign to the vars.
12905 (set) 2>&1 |
12906 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12907 *ac_space=\ *)
12908 # `set' does not quote correctly, so add quotes (double-quote
12909 # substitution turns \\\\ into \\, and sed turns \\ into \).
12910 sed -n \
12911 "s/'/'\\\\''/g;
12912 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12915 # `set' quotes correctly as required by POSIX, so do not add quotes.
12916 sed -n \
12917 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12919 esac;
12921 sed '
12922 t clear
12923 : clear
12924 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12925 t end
12926 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12927 : end' >>confcache
12928 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12929 if test -w $cache_file; then
12930 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12931 cat confcache >$cache_file
12932 else
12933 echo "not updating unwritable cache $cache_file"
12936 rm -f confcache
12938 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12939 # Let make expand exec_prefix.
12940 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12942 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12943 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12944 # trailing colons and then remove the whole line if VPATH becomes empty
12945 # (actually we leave an empty line to preserve line numbers).
12946 if test "x$srcdir" = x.; then
12947 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12948 s/:*\$(srcdir):*/:/;
12949 s/:*\${srcdir}:*/:/;
12950 s/:*@srcdir@:*/:/;
12951 s/^\([^=]*=[ ]*\):*/\1/;
12952 s/:*$//;
12953 s/^[^=]*=[ ]*$//;
12957 DEFS=-DHAVE_CONFIG_H
12959 ac_libobjs=
12960 ac_ltlibobjs=
12961 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12962 # 1. Remove the extension, and $U if already installed.
12963 ac_i=`echo "$ac_i" |
12964 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12965 # 2. Add them.
12966 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12967 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12968 done
12969 LIBOBJS=$ac_libobjs
12971 LTLIBOBJS=$ac_ltlibobjs
12974 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12975 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12976 Usually this means the macro was only invoked conditionally." >&5
12977 echo "$as_me: error: conditional \"AMDEP\" was never defined.
12978 Usually this means the macro was only invoked conditionally." >&2;}
12979 { (exit 1); exit 1; }; }
12981 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12982 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12983 Usually this means the macro was only invoked conditionally." >&5
12984 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12985 Usually this means the macro was only invoked conditionally." >&2;}
12986 { (exit 1); exit 1; }; }
12988 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12989 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
12990 Usually this means the macro was only invoked conditionally." >&5
12991 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
12992 Usually this means the macro was only invoked conditionally." >&2;}
12993 { (exit 1); exit 1; }; }
12995 if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
12996 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
12997 Usually this means the macro was only invoked conditionally." >&5
12998 echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
12999 Usually this means the macro was only invoked conditionally." >&2;}
13000 { (exit 1); exit 1; }; }
13002 if test -z "${CGEN_MAINT_TRUE}" && test -z "${CGEN_MAINT_FALSE}"; then
13003 { { echo "$as_me:$LINENO: error: conditional \"CGEN_MAINT\" was never defined.
13004 Usually this means the macro was only invoked conditionally." >&5
13005 echo "$as_me: error: conditional \"CGEN_MAINT\" was never defined.
13006 Usually this means the macro was only invoked conditionally." >&2;}
13007 { (exit 1); exit 1; }; }
13010 : ${CONFIG_STATUS=./config.status}
13011 ac_clean_files_save=$ac_clean_files
13012 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13013 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13014 echo "$as_me: creating $CONFIG_STATUS" >&6;}
13015 cat >$CONFIG_STATUS <<_ACEOF
13016 #! $SHELL
13017 # Generated by $as_me.
13018 # Run this file to recreate the current configuration.
13019 # Compiler output produced by configure, useful for debugging
13020 # configure, is in config.log if it exists.
13022 debug=false
13023 ac_cs_recheck=false
13024 ac_cs_silent=false
13025 SHELL=\${CONFIG_SHELL-$SHELL}
13026 _ACEOF
13028 cat >>$CONFIG_STATUS <<\_ACEOF
13029 ## --------------------- ##
13030 ## M4sh Initialization. ##
13031 ## --------------------- ##
13033 # Be Bourne compatible
13034 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13035 emulate sh
13036 NULLCMD=:
13037 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13038 # is contrary to our usage. Disable this feature.
13039 alias -g '${1+"$@"}'='"$@"'
13040 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13041 set -o posix
13043 DUALCASE=1; export DUALCASE # for MKS sh
13045 # Support unset when possible.
13046 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13047 as_unset=unset
13048 else
13049 as_unset=false
13053 # Work around bugs in pre-3.0 UWIN ksh.
13054 $as_unset ENV MAIL MAILPATH
13055 PS1='$ '
13056 PS2='> '
13057 PS4='+ '
13059 # NLS nuisances.
13060 for as_var in \
13061 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13062 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13063 LC_TELEPHONE LC_TIME
13065 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13066 eval $as_var=C; export $as_var
13067 else
13068 $as_unset $as_var
13070 done
13072 # Required to use basename.
13073 if expr a : '\(a\)' >/dev/null 2>&1; then
13074 as_expr=expr
13075 else
13076 as_expr=false
13079 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
13080 as_basename=basename
13081 else
13082 as_basename=false
13086 # Name of the executable.
13087 as_me=`$as_basename "$0" ||
13088 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13089 X"$0" : 'X\(//\)$' \| \
13090 X"$0" : 'X\(/\)$' \| \
13091 . : '\(.\)' 2>/dev/null ||
13092 echo X/"$0" |
13093 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13094 /^X\/\(\/\/\)$/{ s//\1/; q; }
13095 /^X\/\(\/\).*/{ s//\1/; q; }
13096 s/.*/./; q'`
13099 # PATH needs CR, and LINENO needs CR and PATH.
13100 # Avoid depending upon Character Ranges.
13101 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13102 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13103 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13104 as_cr_digits='0123456789'
13105 as_cr_alnum=$as_cr_Letters$as_cr_digits
13107 # The user is always right.
13108 if test "${PATH_SEPARATOR+set}" != set; then
13109 echo "#! /bin/sh" >conf$$.sh
13110 echo "exit 0" >>conf$$.sh
13111 chmod +x conf$$.sh
13112 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13113 PATH_SEPARATOR=';'
13114 else
13115 PATH_SEPARATOR=:
13117 rm -f conf$$.sh
13121 as_lineno_1=$LINENO
13122 as_lineno_2=$LINENO
13123 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13124 test "x$as_lineno_1" != "x$as_lineno_2" &&
13125 test "x$as_lineno_3" = "x$as_lineno_2" || {
13126 # Find who we are. Look in the path if we contain no path at all
13127 # relative or not.
13128 case $0 in
13129 *[\\/]* ) as_myself=$0 ;;
13130 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13131 for as_dir in $PATH
13133 IFS=$as_save_IFS
13134 test -z "$as_dir" && as_dir=.
13135 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13136 done
13139 esac
13140 # We did not find ourselves, most probably we were run as `sh COMMAND'
13141 # in which case we are not to be found in the path.
13142 if test "x$as_myself" = x; then
13143 as_myself=$0
13145 if test ! -f "$as_myself"; then
13146 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13147 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13148 { (exit 1); exit 1; }; }
13150 case $CONFIG_SHELL in
13152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13153 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13155 IFS=$as_save_IFS
13156 test -z "$as_dir" && as_dir=.
13157 for as_base in sh bash ksh sh5; do
13158 case $as_dir in
13160 if ("$as_dir/$as_base" -c '
13161 as_lineno_1=$LINENO
13162 as_lineno_2=$LINENO
13163 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13164 test "x$as_lineno_1" != "x$as_lineno_2" &&
13165 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
13166 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
13167 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
13168 CONFIG_SHELL=$as_dir/$as_base
13169 export CONFIG_SHELL
13170 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
13171 fi;;
13172 esac
13173 done
13174 done
13176 esac
13178 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13179 # uniformly replaced by the line number. The first 'sed' inserts a
13180 # line-number line before each line; the second 'sed' does the real
13181 # work. The second script uses 'N' to pair each line-number line
13182 # with the numbered line, and appends trailing '-' during
13183 # substitution so that $LINENO is not a special case at line end.
13184 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13185 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
13186 sed '=' <$as_myself |
13187 sed '
13189 s,$,-,
13190 : loop
13191 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
13192 t loop
13193 s,-$,,
13194 s,^['$as_cr_digits']*\n,,
13195 ' >$as_me.lineno &&
13196 chmod +x $as_me.lineno ||
13197 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13198 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
13199 { (exit 1); exit 1; }; }
13201 # Don't try to exec as it changes $[0], causing all sort of problems
13202 # (the dirname of $[0] is not the place where we might find the
13203 # original and so on. Autoconf is especially sensible to this).
13204 . ./$as_me.lineno
13205 # Exit status is that of the last command.
13206 exit
13210 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13211 *c*,-n*) ECHO_N= ECHO_C='
13212 ' ECHO_T=' ' ;;
13213 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
13214 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
13215 esac
13217 if expr a : '\(a\)' >/dev/null 2>&1; then
13218 as_expr=expr
13219 else
13220 as_expr=false
13223 rm -f conf$$ conf$$.exe conf$$.file
13224 echo >conf$$.file
13225 if ln -s conf$$.file conf$$ 2>/dev/null; then
13226 # We could just check for DJGPP; but this test a) works b) is more generic
13227 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13228 if test -f conf$$.exe; then
13229 # Don't use ln at all; we don't have any links
13230 as_ln_s='cp -p'
13231 else
13232 as_ln_s='ln -s'
13234 elif ln conf$$.file conf$$ 2>/dev/null; then
13235 as_ln_s=ln
13236 else
13237 as_ln_s='cp -p'
13239 rm -f conf$$ conf$$.exe conf$$.file
13241 if mkdir -p . 2>/dev/null; then
13242 as_mkdir_p=:
13243 else
13244 test -d ./-p && rmdir ./-p
13245 as_mkdir_p=false
13248 as_executable_p="test -f"
13250 # Sed expression to map a string onto a valid CPP name.
13251 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13253 # Sed expression to map a string onto a valid variable name.
13254 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13257 # IFS
13258 # We need space, tab and new line, in precisely that order.
13259 as_nl='
13261 IFS=" $as_nl"
13263 # CDPATH.
13264 $as_unset CDPATH
13266 exec 6>&1
13268 # Open the log real soon, to keep \$[0] and so on meaningful, and to
13269 # report actual input values of CONFIG_FILES etc. instead of their
13270 # values after options handling. Logging --version etc. is OK.
13271 exec 5>>config.log
13273 echo
13274 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13275 ## Running $as_me. ##
13276 _ASBOX
13277 } >&5
13278 cat >&5 <<_CSEOF
13280 This file was extended by $as_me, which was
13281 generated by GNU Autoconf 2.59. Invocation command line was
13283 CONFIG_FILES = $CONFIG_FILES
13284 CONFIG_HEADERS = $CONFIG_HEADERS
13285 CONFIG_LINKS = $CONFIG_LINKS
13286 CONFIG_COMMANDS = $CONFIG_COMMANDS
13287 $ $0 $@
13289 _CSEOF
13290 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
13291 echo >&5
13292 _ACEOF
13294 # Files that config.status was made for.
13295 if test -n "$ac_config_files"; then
13296 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
13299 if test -n "$ac_config_headers"; then
13300 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13303 if test -n "$ac_config_links"; then
13304 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13307 if test -n "$ac_config_commands"; then
13308 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13311 cat >>$CONFIG_STATUS <<\_ACEOF
13313 ac_cs_usage="\
13314 \`$as_me' instantiates files from templates according to the
13315 current configuration.
13317 Usage: $0 [OPTIONS] [FILE]...
13319 -h, --help print this help, then exit
13320 -V, --version print version number, then exit
13321 -q, --quiet do not print progress messages
13322 -d, --debug don't remove temporary files
13323 --recheck update $as_me by reconfiguring in the same conditions
13324 --file=FILE[:TEMPLATE]
13325 instantiate the configuration file FILE
13326 --header=FILE[:TEMPLATE]
13327 instantiate the configuration header FILE
13329 Configuration files:
13330 $config_files
13332 Configuration headers:
13333 $config_headers
13335 Configuration commands:
13336 $config_commands
13338 Report bugs to <bug-autoconf@gnu.org>."
13339 _ACEOF
13341 cat >>$CONFIG_STATUS <<_ACEOF
13342 ac_cs_version="\\
13343 config.status
13344 configured by $0, generated by GNU Autoconf 2.59,
13345 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13347 Copyright (C) 2003 Free Software Foundation, Inc.
13348 This config.status script is free software; the Free Software Foundation
13349 gives unlimited permission to copy, distribute and modify it."
13350 srcdir=$srcdir
13351 INSTALL="$INSTALL"
13352 _ACEOF
13354 cat >>$CONFIG_STATUS <<\_ACEOF
13355 # If no file are specified by the user, then we need to provide default
13356 # value. By we need to know if files were specified by the user.
13357 ac_need_defaults=:
13358 while test $# != 0
13360 case $1 in
13361 --*=*)
13362 ac_option=`expr "x$1" : 'x\([^=]*\)='`
13363 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13364 ac_shift=:
13367 ac_option=$1
13368 ac_optarg=$2
13369 ac_shift=shift
13371 *) # This is not an option, so the user has probably given explicit
13372 # arguments.
13373 ac_option=$1
13374 ac_need_defaults=false;;
13375 esac
13377 case $ac_option in
13378 # Handling of the options.
13379 _ACEOF
13380 cat >>$CONFIG_STATUS <<\_ACEOF
13381 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13382 ac_cs_recheck=: ;;
13383 --version | --vers* | -V )
13384 echo "$ac_cs_version"; exit 0 ;;
13385 --he | --h)
13386 # Conflict between --help and --header
13387 { { echo "$as_me:$LINENO: error: ambiguous option: $1
13388 Try \`$0 --help' for more information." >&5
13389 echo "$as_me: error: ambiguous option: $1
13390 Try \`$0 --help' for more information." >&2;}
13391 { (exit 1); exit 1; }; };;
13392 --help | --hel | -h )
13393 echo "$ac_cs_usage"; exit 0 ;;
13394 --debug | --d* | -d )
13395 debug=: ;;
13396 --file | --fil | --fi | --f )
13397 $ac_shift
13398 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13399 ac_need_defaults=false;;
13400 --header | --heade | --head | --hea )
13401 $ac_shift
13402 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13403 ac_need_defaults=false;;
13404 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13405 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13406 ac_cs_silent=: ;;
13408 # This is an error.
13409 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13410 Try \`$0 --help' for more information." >&5
13411 echo "$as_me: error: unrecognized option: $1
13412 Try \`$0 --help' for more information." >&2;}
13413 { (exit 1); exit 1; }; } ;;
13415 *) ac_config_targets="$ac_config_targets $1" ;;
13417 esac
13418 shift
13419 done
13421 ac_configure_extra_args=
13423 if $ac_cs_silent; then
13424 exec 6>/dev/null
13425 ac_configure_extra_args="$ac_configure_extra_args --silent"
13428 _ACEOF
13429 cat >>$CONFIG_STATUS <<_ACEOF
13430 if \$ac_cs_recheck; then
13431 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13432 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13435 _ACEOF
13437 cat >>$CONFIG_STATUS <<_ACEOF
13439 # INIT-COMMANDS section.
13442 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13445 # The HP-UX ksh and POSIX shell print the target directory to stdout
13446 # if CDPATH is set.
13447 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13449 sed_quote_subst='$sed_quote_subst'
13450 double_quote_subst='$double_quote_subst'
13451 delay_variable_subst='$delay_variable_subst'
13452 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13453 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13454 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13455 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13456 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13457 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13458 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13459 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13460 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13461 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13462 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13463 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13464 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13465 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13466 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13467 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13468 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13469 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13470 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13471 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13472 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13473 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13474 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13475 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13476 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13477 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13478 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13479 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13480 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13481 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13482 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13483 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13484 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13485 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13486 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13487 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13488 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13489 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13490 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13491 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13492 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13493 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13494 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13495 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13496 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"`'
13497 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13498 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13499 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13500 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13501 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13502 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13503 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13504 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13505 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13506 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13507 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13508 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13509 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13510 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13511 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13512 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13513 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13514 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13515 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13516 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13517 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13518 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13519 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13520 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13521 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13522 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13523 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13524 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13525 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13526 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13527 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13528 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13529 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13530 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13531 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13532 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13533 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13534 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13535 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13536 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13537 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13538 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13539 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13540 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13541 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13542 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13543 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13544 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13545 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13546 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13547 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13548 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13549 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13550 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13551 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13552 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13553 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13554 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13555 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13556 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13557 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13558 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13559 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13560 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13561 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13562 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13563 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13564 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13565 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13566 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13567 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13568 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13569 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13571 LTCC='$LTCC'
13572 LTCFLAGS='$LTCFLAGS'
13573 compiler='$compiler_DEFAULT'
13575 # Quote evaled strings.
13576 for var in SED \
13577 GREP \
13578 EGREP \
13579 FGREP \
13580 LD \
13581 NM \
13582 LN_S \
13583 lt_SP2NL \
13584 lt_NL2SP \
13585 reload_flag \
13586 OBJDUMP \
13587 deplibs_check_method \
13588 file_magic_cmd \
13589 AR \
13590 AR_FLAGS \
13591 STRIP \
13592 RANLIB \
13593 CC \
13594 CFLAGS \
13595 compiler \
13596 lt_cv_sys_global_symbol_pipe \
13597 lt_cv_sys_global_symbol_to_cdecl \
13598 lt_cv_sys_global_symbol_to_c_name_address \
13599 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13600 SHELL \
13601 ECHO \
13602 lt_prog_compiler_no_builtin_flag \
13603 lt_prog_compiler_wl \
13604 lt_prog_compiler_pic \
13605 lt_prog_compiler_static \
13606 lt_cv_prog_compiler_c_o \
13607 need_locks \
13608 DSYMUTIL \
13609 NMEDIT \
13610 LIPO \
13611 OTOOL \
13612 OTOOL64 \
13613 shrext_cmds \
13614 export_dynamic_flag_spec \
13615 whole_archive_flag_spec \
13616 compiler_needs_object \
13617 with_gnu_ld \
13618 allow_undefined_flag \
13619 no_undefined_flag \
13620 hardcode_libdir_flag_spec \
13621 hardcode_libdir_flag_spec_ld \
13622 hardcode_libdir_separator \
13623 fix_srcfile_path \
13624 exclude_expsyms \
13625 include_expsyms \
13626 file_list_spec \
13627 variables_saved_for_relink \
13628 libname_spec \
13629 library_names_spec \
13630 soname_spec \
13631 finish_eval \
13632 old_striplib \
13633 striplib; do
13634 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13635 *[\\\\\\\`\\"\\\$]*)
13636 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13639 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13641 esac
13642 done
13644 # Double-quote double-evaled strings.
13645 for var in reload_cmds \
13646 old_postinstall_cmds \
13647 old_postuninstall_cmds \
13648 old_archive_cmds \
13649 extract_expsyms_cmds \
13650 old_archive_from_new_cmds \
13651 old_archive_from_expsyms_cmds \
13652 archive_cmds \
13653 archive_expsym_cmds \
13654 module_cmds \
13655 module_expsym_cmds \
13656 export_symbols_cmds \
13657 prelink_cmds \
13658 postinstall_cmds \
13659 postuninstall_cmds \
13660 finish_cmds \
13661 sys_lib_search_path_spec \
13662 sys_lib_dlsearch_path_spec; do
13663 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13664 *[\\\\\\\`\\"\\\$]*)
13665 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13668 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13670 esac
13671 done
13673 # Fix-up fallback echo if it was mangled by the above quoting rules.
13674 case \$lt_ECHO in
13675 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13677 esac
13679 ac_aux_dir='$ac_aux_dir'
13680 xsi_shell='$xsi_shell'
13681 lt_shell_append='$lt_shell_append'
13683 # See if we are running on zsh, and set the options which allow our
13684 # commands through without removal of \ escapes INIT.
13685 if test -n "\${ZSH_VERSION+set}" ; then
13686 setopt NO_GLOB_SUBST
13690 PACKAGE='$PACKAGE'
13691 VERSION='$VERSION'
13692 TIMESTAMP='$TIMESTAMP'
13693 RM='$RM'
13694 ofile='$ofile'
13698 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
13699 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
13700 # from automake.
13701 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
13702 # Capture the value of LINGUAS because we need it to compute CATALOGS.
13703 LINGUAS="${LINGUAS-%UNSET%}"
13706 _ACEOF
13710 cat >>$CONFIG_STATUS <<\_ACEOF
13711 for ac_config_target in $ac_config_targets
13713 case "$ac_config_target" in
13714 # Handling of arguments.
13715 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13716 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
13717 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13718 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13719 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13720 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
13721 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13722 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13723 { (exit 1); exit 1; }; };;
13724 esac
13725 done
13727 # If the user did not use the arguments to specify the items to instantiate,
13728 # then the envvar interface is used. Set only those that are not.
13729 # We use the long form for the default assignment because of an extremely
13730 # bizarre bug on SunOS 4.1.3.
13731 if $ac_need_defaults; then
13732 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13733 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13734 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13737 # Have a temporary directory for convenience. Make it in the build tree
13738 # simply because there is no reason to put it here, and in addition,
13739 # creating and moving files from /tmp can sometimes cause problems.
13740 # Create a temporary directory, and hook for its removal unless debugging.
13741 $debug ||
13743 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13744 trap '{ (exit 1); exit 1; }' 1 2 13 15
13747 # Create a (secure) tmp directory for tmp files.
13750 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13751 test -n "$tmp" && test -d "$tmp"
13752 } ||
13754 tmp=./confstat$$-$RANDOM
13755 (umask 077 && mkdir $tmp)
13756 } ||
13758 echo "$me: cannot create a temporary directory in ." >&2
13759 { (exit 1); exit 1; }
13762 _ACEOF
13764 cat >>$CONFIG_STATUS <<_ACEOF
13767 # CONFIG_FILES section.
13770 # No need to generate the scripts if there are no CONFIG_FILES.
13771 # This happens for instance when ./config.status config.h
13772 if test -n "\$CONFIG_FILES"; then
13773 # Protect against being on the right side of a sed subst in config.status.
13774 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13775 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13776 s,@SHELL@,$SHELL,;t t
13777 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13778 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13779 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13780 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13781 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13782 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13783 s,@exec_prefix@,$exec_prefix,;t t
13784 s,@prefix@,$prefix,;t t
13785 s,@program_transform_name@,$program_transform_name,;t t
13786 s,@bindir@,$bindir,;t t
13787 s,@sbindir@,$sbindir,;t t
13788 s,@libexecdir@,$libexecdir,;t t
13789 s,@datadir@,$datadir,;t t
13790 s,@sysconfdir@,$sysconfdir,;t t
13791 s,@sharedstatedir@,$sharedstatedir,;t t
13792 s,@localstatedir@,$localstatedir,;t t
13793 s,@libdir@,$libdir,;t t
13794 s,@includedir@,$includedir,;t t
13795 s,@oldincludedir@,$oldincludedir,;t t
13796 s,@infodir@,$infodir,;t t
13797 s,@mandir@,$mandir,;t t
13798 s,@build_alias@,$build_alias,;t t
13799 s,@host_alias@,$host_alias,;t t
13800 s,@target_alias@,$target_alias,;t t
13801 s,@DEFS@,$DEFS,;t t
13802 s,@ECHO_C@,$ECHO_C,;t t
13803 s,@ECHO_N@,$ECHO_N,;t t
13804 s,@ECHO_T@,$ECHO_T,;t t
13805 s,@LIBS@,$LIBS,;t t
13806 s,@build@,$build,;t t
13807 s,@build_cpu@,$build_cpu,;t t
13808 s,@build_vendor@,$build_vendor,;t t
13809 s,@build_os@,$build_os,;t t
13810 s,@host@,$host,;t t
13811 s,@host_cpu@,$host_cpu,;t t
13812 s,@host_vendor@,$host_vendor,;t t
13813 s,@host_os@,$host_os,;t t
13814 s,@target@,$target,;t t
13815 s,@target_cpu@,$target_cpu,;t t
13816 s,@target_vendor@,$target_vendor,;t t
13817 s,@target_os@,$target_os,;t t
13818 s,@CC@,$CC,;t t
13819 s,@CFLAGS@,$CFLAGS,;t t
13820 s,@LDFLAGS@,$LDFLAGS,;t t
13821 s,@CPPFLAGS@,$CPPFLAGS,;t t
13822 s,@ac_ct_CC@,$ac_ct_CC,;t t
13823 s,@EXEEXT@,$EXEEXT,;t t
13824 s,@OBJEXT@,$OBJEXT,;t t
13825 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13826 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13827 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13828 s,@CYGPATH_W@,$CYGPATH_W,;t t
13829 s,@PACKAGE@,$PACKAGE,;t t
13830 s,@VERSION@,$VERSION,;t t
13831 s,@ACLOCAL@,$ACLOCAL,;t t
13832 s,@AUTOCONF@,$AUTOCONF,;t t
13833 s,@AUTOMAKE@,$AUTOMAKE,;t t
13834 s,@AUTOHEADER@,$AUTOHEADER,;t t
13835 s,@MAKEINFO@,$MAKEINFO,;t t
13836 s,@install_sh@,$install_sh,;t t
13837 s,@STRIP@,$STRIP,;t t
13838 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
13839 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
13840 s,@mkdir_p@,$mkdir_p,;t t
13841 s,@AWK@,$AWK,;t t
13842 s,@SET_MAKE@,$SET_MAKE,;t t
13843 s,@am__leading_dot@,$am__leading_dot,;t t
13844 s,@AMTAR@,$AMTAR,;t t
13845 s,@am__tar@,$am__tar,;t t
13846 s,@am__untar@,$am__untar,;t t
13847 s,@DEPDIR@,$DEPDIR,;t t
13848 s,@am__include@,$am__include,;t t
13849 s,@am__quote@,$am__quote,;t t
13850 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
13851 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
13852 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
13853 s,@CCDEPMODE@,$CCDEPMODE,;t t
13854 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
13855 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
13856 s,@CPP@,$CPP,;t t
13857 s,@EGREP@,$EGREP,;t t
13858 s,@AR@,$AR,;t t
13859 s,@ac_ct_AR@,$ac_ct_AR,;t t
13860 s,@RANLIB@,$RANLIB,;t t
13861 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13862 s,@LIBTOOL@,$LIBTOOL,;t t
13863 s,@SED@,$SED,;t t
13864 s,@FGREP@,$FGREP,;t t
13865 s,@GREP@,$GREP,;t t
13866 s,@LD@,$LD,;t t
13867 s,@DUMPBIN@,$DUMPBIN,;t t
13868 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
13869 s,@NM@,$NM,;t t
13870 s,@LN_S@,$LN_S,;t t
13871 s,@OBJDUMP@,$OBJDUMP,;t t
13872 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
13873 s,@lt_ECHO@,$lt_ECHO,;t t
13874 s,@DSYMUTIL@,$DSYMUTIL,;t t
13875 s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
13876 s,@NMEDIT@,$NMEDIT,;t t
13877 s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
13878 s,@LIPO@,$LIPO,;t t
13879 s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
13880 s,@OTOOL@,$OTOOL,;t t
13881 s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
13882 s,@OTOOL64@,$OTOOL64,;t t
13883 s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
13884 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
13885 s,@NO_WERROR@,$NO_WERROR,;t t
13886 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13887 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13888 s,@MAINT@,$MAINT,;t t
13889 s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
13890 s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
13891 s,@host_noncanonical@,$host_noncanonical,;t t
13892 s,@target_noncanonical@,$target_noncanonical,;t t
13893 s,@bfdlibdir@,$bfdlibdir,;t t
13894 s,@bfdincludedir@,$bfdincludedir,;t t
13895 s,@USE_NLS@,$USE_NLS,;t t
13896 s,@LIBINTL@,$LIBINTL,;t t
13897 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
13898 s,@INCINTL@,$INCINTL,;t t
13899 s,@XGETTEXT@,$XGETTEXT,;t t
13900 s,@GMSGFMT@,$GMSGFMT,;t t
13901 s,@POSUB@,$POSUB,;t t
13902 s,@CATALOGS@,$CATALOGS,;t t
13903 s,@DATADIRNAME@,$DATADIRNAME,;t t
13904 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
13905 s,@GENCAT@,$GENCAT,;t t
13906 s,@CATOBJEXT@,$CATOBJEXT,;t t
13907 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
13908 s,@MSGFMT@,$MSGFMT,;t t
13909 s,@MSGMERGE@,$MSGMERGE,;t t
13910 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
13911 s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
13912 s,@HDEFINES@,$HDEFINES,;t t
13913 s,@CGEN_MAINT_TRUE@,$CGEN_MAINT_TRUE,;t t
13914 s,@CGEN_MAINT_FALSE@,$CGEN_MAINT_FALSE,;t t
13915 s,@cgendir@,$cgendir,;t t
13916 s,@LIBM@,$LIBM,;t t
13917 s,@SHARED_LDFLAGS@,$SHARED_LDFLAGS,;t t
13918 s,@SHARED_LIBADD@,$SHARED_LIBADD,;t t
13919 s,@SHARED_DEPENDENCIES@,$SHARED_DEPENDENCIES,;t t
13920 s,@archdefs@,$archdefs,;t t
13921 s,@BFD_MACHINES@,$BFD_MACHINES,;t t
13922 s,@LIBOBJS@,$LIBOBJS,;t t
13923 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13924 CEOF
13926 _ACEOF
13928 cat >>$CONFIG_STATUS <<\_ACEOF
13929 # Split the substitutions into bite-sized pieces for seds with
13930 # small command number limits, like on Digital OSF/1 and HP-UX.
13931 ac_max_sed_lines=48
13932 ac_sed_frag=1 # Number of current file.
13933 ac_beg=1 # First line for current file.
13934 ac_end=$ac_max_sed_lines # Line after last line for current file.
13935 ac_more_lines=:
13936 ac_sed_cmds=
13937 while $ac_more_lines; do
13938 if test $ac_beg -gt 1; then
13939 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13940 else
13941 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13943 if test ! -s $tmp/subs.frag; then
13944 ac_more_lines=false
13945 else
13946 # The purpose of the label and of the branching condition is to
13947 # speed up the sed processing (if there are no `@' at all, there
13948 # is no need to browse any of the substitutions).
13949 # These are the two extra sed commands mentioned above.
13950 (echo ':t
13951 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13952 if test -z "$ac_sed_cmds"; then
13953 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13954 else
13955 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13957 ac_sed_frag=`expr $ac_sed_frag + 1`
13958 ac_beg=$ac_end
13959 ac_end=`expr $ac_end + $ac_max_sed_lines`
13961 done
13962 if test -z "$ac_sed_cmds"; then
13963 ac_sed_cmds=cat
13965 fi # test -n "$CONFIG_FILES"
13967 _ACEOF
13968 cat >>$CONFIG_STATUS <<\_ACEOF
13969 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13970 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13971 case $ac_file in
13972 - | *:- | *:-:* ) # input from stdin
13973 cat >$tmp/stdin
13974 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13975 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13976 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13977 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13978 * ) ac_file_in=$ac_file.in ;;
13979 esac
13981 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13982 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13983 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13984 X"$ac_file" : 'X\(//\)[^/]' \| \
13985 X"$ac_file" : 'X\(//\)$' \| \
13986 X"$ac_file" : 'X\(/\)' \| \
13987 . : '\(.\)' 2>/dev/null ||
13988 echo X"$ac_file" |
13989 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13990 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13991 /^X\(\/\/\)$/{ s//\1/; q; }
13992 /^X\(\/\).*/{ s//\1/; q; }
13993 s/.*/./; q'`
13994 { if $as_mkdir_p; then
13995 mkdir -p "$ac_dir"
13996 else
13997 as_dir="$ac_dir"
13998 as_dirs=
13999 while test ! -d "$as_dir"; do
14000 as_dirs="$as_dir $as_dirs"
14001 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14002 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14003 X"$as_dir" : 'X\(//\)[^/]' \| \
14004 X"$as_dir" : 'X\(//\)$' \| \
14005 X"$as_dir" : 'X\(/\)' \| \
14006 . : '\(.\)' 2>/dev/null ||
14007 echo X"$as_dir" |
14008 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14009 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14010 /^X\(\/\/\)$/{ s//\1/; q; }
14011 /^X\(\/\).*/{ s//\1/; q; }
14012 s/.*/./; q'`
14013 done
14014 test ! -n "$as_dirs" || mkdir $as_dirs
14015 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14016 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14017 { (exit 1); exit 1; }; }; }
14019 ac_builddir=.
14021 if test "$ac_dir" != .; then
14022 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14023 # A "../" for each directory in $ac_dir_suffix.
14024 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14025 else
14026 ac_dir_suffix= ac_top_builddir=
14029 case $srcdir in
14030 .) # No --srcdir option. We are building in place.
14031 ac_srcdir=.
14032 if test -z "$ac_top_builddir"; then
14033 ac_top_srcdir=.
14034 else
14035 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14036 fi ;;
14037 [\\/]* | ?:[\\/]* ) # Absolute path.
14038 ac_srcdir=$srcdir$ac_dir_suffix;
14039 ac_top_srcdir=$srcdir ;;
14040 *) # Relative path.
14041 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14042 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14043 esac
14045 # Do not use `cd foo && pwd` to compute absolute paths, because
14046 # the directories may not exist.
14047 case `pwd` in
14048 .) ac_abs_builddir="$ac_dir";;
14050 case "$ac_dir" in
14051 .) ac_abs_builddir=`pwd`;;
14052 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14053 *) ac_abs_builddir=`pwd`/"$ac_dir";;
14054 esac;;
14055 esac
14056 case $ac_abs_builddir in
14057 .) ac_abs_top_builddir=${ac_top_builddir}.;;
14059 case ${ac_top_builddir}. in
14060 .) ac_abs_top_builddir=$ac_abs_builddir;;
14061 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14062 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14063 esac;;
14064 esac
14065 case $ac_abs_builddir in
14066 .) ac_abs_srcdir=$ac_srcdir;;
14068 case $ac_srcdir in
14069 .) ac_abs_srcdir=$ac_abs_builddir;;
14070 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14071 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14072 esac;;
14073 esac
14074 case $ac_abs_builddir in
14075 .) ac_abs_top_srcdir=$ac_top_srcdir;;
14077 case $ac_top_srcdir in
14078 .) ac_abs_top_srcdir=$ac_abs_builddir;;
14079 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14080 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14081 esac;;
14082 esac
14085 case $INSTALL in
14086 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14087 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
14088 esac
14090 if test x"$ac_file" != x-; then
14091 { echo "$as_me:$LINENO: creating $ac_file" >&5
14092 echo "$as_me: creating $ac_file" >&6;}
14093 rm -f "$ac_file"
14095 # Let's still pretend it is `configure' which instantiates (i.e., don't
14096 # use $as_me), people would be surprised to read:
14097 # /* config.h. Generated by config.status. */
14098 if test x"$ac_file" = x-; then
14099 configure_input=
14100 else
14101 configure_input="$ac_file. "
14103 configure_input=$configure_input"Generated from `echo $ac_file_in |
14104 sed 's,.*/,,'` by configure."
14106 # First look for the input files in the build tree, otherwise in the
14107 # src tree.
14108 ac_file_inputs=`IFS=:
14109 for f in $ac_file_in; do
14110 case $f in
14111 -) echo $tmp/stdin ;;
14112 [\\/$]*)
14113 # Absolute (can't be DOS-style, as IFS=:)
14114 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14115 echo "$as_me: error: cannot find input file: $f" >&2;}
14116 { (exit 1); exit 1; }; }
14117 echo "$f";;
14118 *) # Relative
14119 if test -f "$f"; then
14120 # Build tree
14121 echo "$f"
14122 elif test -f "$srcdir/$f"; then
14123 # Source tree
14124 echo "$srcdir/$f"
14125 else
14126 # /dev/null tree
14127 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14128 echo "$as_me: error: cannot find input file: $f" >&2;}
14129 { (exit 1); exit 1; }; }
14130 fi;;
14131 esac
14132 done` || { (exit 1); exit 1; }
14133 _ACEOF
14134 cat >>$CONFIG_STATUS <<_ACEOF
14135 sed "$ac_vpsub
14136 $extrasub
14137 _ACEOF
14138 cat >>$CONFIG_STATUS <<\_ACEOF
14140 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14141 s,@configure_input@,$configure_input,;t t
14142 s,@srcdir@,$ac_srcdir,;t t
14143 s,@abs_srcdir@,$ac_abs_srcdir,;t t
14144 s,@top_srcdir@,$ac_top_srcdir,;t t
14145 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
14146 s,@builddir@,$ac_builddir,;t t
14147 s,@abs_builddir@,$ac_abs_builddir,;t t
14148 s,@top_builddir@,$ac_top_builddir,;t t
14149 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
14150 s,@INSTALL@,$ac_INSTALL,;t t
14151 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
14152 rm -f $tmp/stdin
14153 if test x"$ac_file" != x-; then
14154 mv $tmp/out $ac_file
14155 else
14156 cat $tmp/out
14157 rm -f $tmp/out
14160 done
14161 _ACEOF
14162 cat >>$CONFIG_STATUS <<\_ACEOF
14165 # CONFIG_HEADER section.
14168 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14169 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14171 # ac_d sets the value in "#define NAME VALUE" lines.
14172 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14173 ac_dB='[ ].*$,\1#\2'
14174 ac_dC=' '
14175 ac_dD=',;t'
14176 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14177 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14178 ac_uB='$,\1#\2define\3'
14179 ac_uC=' '
14180 ac_uD=',;t'
14182 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
14183 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14184 case $ac_file in
14185 - | *:- | *:-:* ) # input from stdin
14186 cat >$tmp/stdin
14187 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14188 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14189 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14190 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14191 * ) ac_file_in=$ac_file.in ;;
14192 esac
14194 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
14195 echo "$as_me: creating $ac_file" >&6;}
14197 # First look for the input files in the build tree, otherwise in the
14198 # src tree.
14199 ac_file_inputs=`IFS=:
14200 for f in $ac_file_in; do
14201 case $f in
14202 -) echo $tmp/stdin ;;
14203 [\\/$]*)
14204 # Absolute (can't be DOS-style, as IFS=:)
14205 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14206 echo "$as_me: error: cannot find input file: $f" >&2;}
14207 { (exit 1); exit 1; }; }
14208 # Do quote $f, to prevent DOS paths from being IFS'd.
14209 echo "$f";;
14210 *) # Relative
14211 if test -f "$f"; then
14212 # Build tree
14213 echo "$f"
14214 elif test -f "$srcdir/$f"; then
14215 # Source tree
14216 echo "$srcdir/$f"
14217 else
14218 # /dev/null tree
14219 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14220 echo "$as_me: error: cannot find input file: $f" >&2;}
14221 { (exit 1); exit 1; }; }
14222 fi;;
14223 esac
14224 done` || { (exit 1); exit 1; }
14225 # Remove the trailing spaces.
14226 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
14228 _ACEOF
14230 # Transform confdefs.h into two sed scripts, `conftest.defines' and
14231 # `conftest.undefs', that substitutes the proper values into
14232 # config.h.in to produce config.h. The first handles `#define'
14233 # templates, and the second `#undef' templates.
14234 # And first: Protect against being on the right side of a sed subst in
14235 # config.status. Protect against being in an unquoted here document
14236 # in config.status.
14237 rm -f conftest.defines conftest.undefs
14238 # Using a here document instead of a string reduces the quoting nightmare.
14239 # Putting comments in sed scripts is not portable.
14241 # `end' is used to avoid that the second main sed command (meant for
14242 # 0-ary CPP macros) applies to n-ary macro definitions.
14243 # See the Autoconf documentation for `clear'.
14244 cat >confdef2sed.sed <<\_ACEOF
14245 s/[\\&,]/\\&/g
14246 s,[\\$`],\\&,g
14247 t clear
14248 : clear
14249 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
14250 t end
14251 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
14252 : end
14253 _ACEOF
14254 # If some macros were called several times there might be several times
14255 # the same #defines, which is useless. Nevertheless, we may not want to
14256 # sort them, since we want the *last* AC-DEFINE to be honored.
14257 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
14258 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
14259 rm -f confdef2sed.sed
14261 # This sed command replaces #undef with comments. This is necessary, for
14262 # example, in the case of _POSIX_SOURCE, which is predefined and required
14263 # on some systems where configure will not decide to define it.
14264 cat >>conftest.undefs <<\_ACEOF
14265 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
14266 _ACEOF
14268 # Break up conftest.defines because some shells have a limit on the size
14269 # of here documents, and old seds have small limits too (100 cmds).
14270 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
14271 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
14272 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
14273 echo ' :' >>$CONFIG_STATUS
14274 rm -f conftest.tail
14275 while grep . conftest.defines >/dev/null
14277 # Write a limited-size here document to $tmp/defines.sed.
14278 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
14279 # Speed up: don't consider the non `#define' lines.
14280 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
14281 # Work around the forget-to-reset-the-flag bug.
14282 echo 't clr' >>$CONFIG_STATUS
14283 echo ': clr' >>$CONFIG_STATUS
14284 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
14285 echo 'CEOF
14286 sed -f $tmp/defines.sed $tmp/in >$tmp/out
14287 rm -f $tmp/in
14288 mv $tmp/out $tmp/in
14289 ' >>$CONFIG_STATUS
14290 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
14291 rm -f conftest.defines
14292 mv conftest.tail conftest.defines
14293 done
14294 rm -f conftest.defines
14295 echo ' fi # grep' >>$CONFIG_STATUS
14296 echo >>$CONFIG_STATUS
14298 # Break up conftest.undefs because some shells have a limit on the size
14299 # of here documents, and old seds have small limits too (100 cmds).
14300 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
14301 rm -f conftest.tail
14302 while grep . conftest.undefs >/dev/null
14304 # Write a limited-size here document to $tmp/undefs.sed.
14305 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
14306 # Speed up: don't consider the non `#undef'
14307 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
14308 # Work around the forget-to-reset-the-flag bug.
14309 echo 't clr' >>$CONFIG_STATUS
14310 echo ': clr' >>$CONFIG_STATUS
14311 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
14312 echo 'CEOF
14313 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
14314 rm -f $tmp/in
14315 mv $tmp/out $tmp/in
14316 ' >>$CONFIG_STATUS
14317 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
14318 rm -f conftest.undefs
14319 mv conftest.tail conftest.undefs
14320 done
14321 rm -f conftest.undefs
14323 cat >>$CONFIG_STATUS <<\_ACEOF
14324 # Let's still pretend it is `configure' which instantiates (i.e., don't
14325 # use $as_me), people would be surprised to read:
14326 # /* config.h. Generated by config.status. */
14327 if test x"$ac_file" = x-; then
14328 echo "/* Generated by configure. */" >$tmp/config.h
14329 else
14330 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
14332 cat $tmp/in >>$tmp/config.h
14333 rm -f $tmp/in
14334 if test x"$ac_file" != x-; then
14335 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
14336 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14337 echo "$as_me: $ac_file is unchanged" >&6;}
14338 else
14339 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14340 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14341 X"$ac_file" : 'X\(//\)[^/]' \| \
14342 X"$ac_file" : 'X\(//\)$' \| \
14343 X"$ac_file" : 'X\(/\)' \| \
14344 . : '\(.\)' 2>/dev/null ||
14345 echo X"$ac_file" |
14346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14347 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14348 /^X\(\/\/\)$/{ s//\1/; q; }
14349 /^X\(\/\).*/{ s//\1/; q; }
14350 s/.*/./; q'`
14351 { if $as_mkdir_p; then
14352 mkdir -p "$ac_dir"
14353 else
14354 as_dir="$ac_dir"
14355 as_dirs=
14356 while test ! -d "$as_dir"; do
14357 as_dirs="$as_dir $as_dirs"
14358 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14359 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14360 X"$as_dir" : 'X\(//\)[^/]' \| \
14361 X"$as_dir" : 'X\(//\)$' \| \
14362 X"$as_dir" : 'X\(/\)' \| \
14363 . : '\(.\)' 2>/dev/null ||
14364 echo X"$as_dir" |
14365 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14366 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14367 /^X\(\/\/\)$/{ s//\1/; q; }
14368 /^X\(\/\).*/{ s//\1/; q; }
14369 s/.*/./; q'`
14370 done
14371 test ! -n "$as_dirs" || mkdir $as_dirs
14372 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14373 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14374 { (exit 1); exit 1; }; }; }
14376 rm -f $ac_file
14377 mv $tmp/config.h $ac_file
14379 else
14380 cat $tmp/config.h
14381 rm -f $tmp/config.h
14383 # Compute $ac_file's index in $config_headers.
14384 _am_stamp_count=1
14385 for _am_header in $config_headers :; do
14386 case $_am_header in
14387 $ac_file | $ac_file:* )
14388 break ;;
14390 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14391 esac
14392 done
14393 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
14394 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14395 X$ac_file : 'X\(//\)[^/]' \| \
14396 X$ac_file : 'X\(//\)$' \| \
14397 X$ac_file : 'X\(/\)' \| \
14398 . : '\(.\)' 2>/dev/null ||
14399 echo X$ac_file |
14400 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14401 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14402 /^X\(\/\/\)$/{ s//\1/; q; }
14403 /^X\(\/\).*/{ s//\1/; q; }
14404 s/.*/./; q'`/stamp-h$_am_stamp_count
14405 done
14406 _ACEOF
14407 cat >>$CONFIG_STATUS <<\_ACEOF
14410 # CONFIG_COMMANDS section.
14412 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
14413 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
14414 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
14415 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
14416 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14417 X"$ac_dest" : 'X\(//\)[^/]' \| \
14418 X"$ac_dest" : 'X\(//\)$' \| \
14419 X"$ac_dest" : 'X\(/\)' \| \
14420 . : '\(.\)' 2>/dev/null ||
14421 echo X"$ac_dest" |
14422 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14423 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14424 /^X\(\/\/\)$/{ s//\1/; q; }
14425 /^X\(\/\).*/{ s//\1/; q; }
14426 s/.*/./; q'`
14427 { if $as_mkdir_p; then
14428 mkdir -p "$ac_dir"
14429 else
14430 as_dir="$ac_dir"
14431 as_dirs=
14432 while test ! -d "$as_dir"; do
14433 as_dirs="$as_dir $as_dirs"
14434 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14435 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14436 X"$as_dir" : 'X\(//\)[^/]' \| \
14437 X"$as_dir" : 'X\(//\)$' \| \
14438 X"$as_dir" : 'X\(/\)' \| \
14439 . : '\(.\)' 2>/dev/null ||
14440 echo X"$as_dir" |
14441 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14442 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14443 /^X\(\/\/\)$/{ s//\1/; q; }
14444 /^X\(\/\).*/{ s//\1/; q; }
14445 s/.*/./; q'`
14446 done
14447 test ! -n "$as_dirs" || mkdir $as_dirs
14448 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14449 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14450 { (exit 1); exit 1; }; }; }
14452 ac_builddir=.
14454 if test "$ac_dir" != .; then
14455 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14456 # A "../" for each directory in $ac_dir_suffix.
14457 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14458 else
14459 ac_dir_suffix= ac_top_builddir=
14462 case $srcdir in
14463 .) # No --srcdir option. We are building in place.
14464 ac_srcdir=.
14465 if test -z "$ac_top_builddir"; then
14466 ac_top_srcdir=.
14467 else
14468 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14469 fi ;;
14470 [\\/]* | ?:[\\/]* ) # Absolute path.
14471 ac_srcdir=$srcdir$ac_dir_suffix;
14472 ac_top_srcdir=$srcdir ;;
14473 *) # Relative path.
14474 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14475 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14476 esac
14478 # Do not use `cd foo && pwd` to compute absolute paths, because
14479 # the directories may not exist.
14480 case `pwd` in
14481 .) ac_abs_builddir="$ac_dir";;
14483 case "$ac_dir" in
14484 .) ac_abs_builddir=`pwd`;;
14485 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14486 *) ac_abs_builddir=`pwd`/"$ac_dir";;
14487 esac;;
14488 esac
14489 case $ac_abs_builddir in
14490 .) ac_abs_top_builddir=${ac_top_builddir}.;;
14492 case ${ac_top_builddir}. in
14493 .) ac_abs_top_builddir=$ac_abs_builddir;;
14494 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14495 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14496 esac;;
14497 esac
14498 case $ac_abs_builddir in
14499 .) ac_abs_srcdir=$ac_srcdir;;
14501 case $ac_srcdir in
14502 .) ac_abs_srcdir=$ac_abs_builddir;;
14503 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14504 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14505 esac;;
14506 esac
14507 case $ac_abs_builddir in
14508 .) ac_abs_top_srcdir=$ac_top_srcdir;;
14510 case $ac_top_srcdir in
14511 .) ac_abs_top_srcdir=$ac_abs_builddir;;
14512 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14513 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14514 esac;;
14515 esac
14518 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
14519 echo "$as_me: executing $ac_dest commands" >&6;}
14520 case $ac_dest in
14521 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
14522 # Strip MF so we end up with the name of the file.
14523 mf=`echo "$mf" | sed -e 's/:.*$//'`
14524 # Check whether this is an Automake generated Makefile or not.
14525 # We used to match only the files named `Makefile.in', but
14526 # some people rename them; so instead we look at the file content.
14527 # Grep'ing the first line is not enough: some people post-process
14528 # each Makefile.in and add a new line on top of each file to say so.
14529 # So let's grep whole file.
14530 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
14531 dirpart=`(dirname "$mf") 2>/dev/null ||
14532 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14533 X"$mf" : 'X\(//\)[^/]' \| \
14534 X"$mf" : 'X\(//\)$' \| \
14535 X"$mf" : 'X\(/\)' \| \
14536 . : '\(.\)' 2>/dev/null ||
14537 echo X"$mf" |
14538 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14539 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14540 /^X\(\/\/\)$/{ s//\1/; q; }
14541 /^X\(\/\).*/{ s//\1/; q; }
14542 s/.*/./; q'`
14543 else
14544 continue
14546 # Extract the definition of DEPDIR, am__include, and am__quote
14547 # from the Makefile without running `make'.
14548 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14549 test -z "$DEPDIR" && continue
14550 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14551 test -z "am__include" && continue
14552 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14553 # When using ansi2knr, U may be empty or an underscore; expand it
14554 U=`sed -n 's/^U = //p' < "$mf"`
14555 # Find all dependency output files, they are included files with
14556 # $(DEPDIR) in their names. We invoke sed twice because it is the
14557 # simplest approach to changing $(DEPDIR) to its actual value in the
14558 # expansion.
14559 for file in `sed -n "
14560 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14561 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14562 # Make sure the directory exists.
14563 test -f "$dirpart/$file" && continue
14564 fdir=`(dirname "$file") 2>/dev/null ||
14565 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14566 X"$file" : 'X\(//\)[^/]' \| \
14567 X"$file" : 'X\(//\)$' \| \
14568 X"$file" : 'X\(/\)' \| \
14569 . : '\(.\)' 2>/dev/null ||
14570 echo X"$file" |
14571 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14572 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14573 /^X\(\/\/\)$/{ s//\1/; q; }
14574 /^X\(\/\).*/{ s//\1/; q; }
14575 s/.*/./; q'`
14576 { if $as_mkdir_p; then
14577 mkdir -p $dirpart/$fdir
14578 else
14579 as_dir=$dirpart/$fdir
14580 as_dirs=
14581 while test ! -d "$as_dir"; do
14582 as_dirs="$as_dir $as_dirs"
14583 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14584 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14585 X"$as_dir" : 'X\(//\)[^/]' \| \
14586 X"$as_dir" : 'X\(//\)$' \| \
14587 X"$as_dir" : 'X\(/\)' \| \
14588 . : '\(.\)' 2>/dev/null ||
14589 echo X"$as_dir" |
14590 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14591 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14592 /^X\(\/\/\)$/{ s//\1/; q; }
14593 /^X\(\/\).*/{ s//\1/; q; }
14594 s/.*/./; q'`
14595 done
14596 test ! -n "$as_dirs" || mkdir $as_dirs
14597 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
14598 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
14599 { (exit 1); exit 1; }; }; }
14601 # echo "creating $dirpart/$file"
14602 echo '# dummy' > "$dirpart/$file"
14603 done
14604 done
14606 libtool )
14608 # See if we are running on zsh, and set the options which allow our
14609 # commands through without removal of \ escapes.
14610 if test -n "${ZSH_VERSION+set}" ; then
14611 setopt NO_GLOB_SUBST
14614 cfgfile="${ofile}T"
14615 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14616 $RM "$cfgfile"
14618 cat <<_LT_EOF >> "$cfgfile"
14619 #! $SHELL
14621 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14622 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14623 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14624 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14626 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14627 # 2006, 2007, 2008 Free Software Foundation, Inc.
14628 # Written by Gordon Matzigkeit, 1996
14630 # This file is part of GNU Libtool.
14632 # GNU Libtool is free software; you can redistribute it and/or
14633 # modify it under the terms of the GNU General Public License as
14634 # published by the Free Software Foundation; either version 2 of
14635 # the License, or (at your option) any later version.
14637 # As a special exception to the GNU General Public License,
14638 # if you distribute this file as part of a program or library that
14639 # is built using GNU Libtool, you may include this file under the
14640 # same distribution terms that you use for the rest of that program.
14642 # GNU Libtool is distributed in the hope that it will be useful,
14643 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14644 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14645 # GNU General Public License for more details.
14647 # You should have received a copy of the GNU General Public License
14648 # along with GNU Libtool; see the file COPYING. If not, a copy
14649 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14650 # obtained by writing to the Free Software Foundation, Inc.,
14651 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14654 # The names of the tagged configurations supported by this script.
14655 available_tags=""
14657 # ### BEGIN LIBTOOL CONFIG
14659 # Whether or not to build shared libraries.
14660 build_libtool_libs=$enable_shared
14662 # Which release of libtool.m4 was used?
14663 macro_version=$macro_version
14664 macro_revision=$macro_revision
14666 # Whether or not to build static libraries.
14667 build_old_libs=$enable_static
14669 # What type of objects to build.
14670 pic_mode=$pic_mode
14672 # Whether or not to optimize for fast installation.
14673 fast_install=$enable_fast_install
14675 # The host system.
14676 host_alias=$host_alias
14677 host=$host
14678 host_os=$host_os
14680 # The build system.
14681 build_alias=$build_alias
14682 build=$build
14683 build_os=$build_os
14685 # A sed program that does not truncate output.
14686 SED=$lt_SED
14688 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14689 Xsed="\$SED -e 1s/^X//"
14691 # A grep program that handles long lines.
14692 GREP=$lt_GREP
14694 # An ERE matcher.
14695 EGREP=$lt_EGREP
14697 # A literal string matcher.
14698 FGREP=$lt_FGREP
14700 # A BSD- or MS-compatible name lister.
14701 NM=$lt_NM
14703 # Whether we need soft or hard links.
14704 LN_S=$lt_LN_S
14706 # What is the maximum length of a command?
14707 max_cmd_len=$max_cmd_len
14709 # Object file suffix (normally "o").
14710 objext=$ac_objext
14712 # Executable file suffix (normally "").
14713 exeext=$exeext
14715 # whether the shell understands "unset".
14716 lt_unset=$lt_unset
14718 # turn spaces into newlines.
14719 SP2NL=$lt_lt_SP2NL
14721 # turn newlines into spaces.
14722 NL2SP=$lt_lt_NL2SP
14724 # How to create reloadable object files.
14725 reload_flag=$lt_reload_flag
14726 reload_cmds=$lt_reload_cmds
14728 # An object symbol dumper.
14729 OBJDUMP=$lt_OBJDUMP
14731 # Method to check whether dependent libraries are shared objects.
14732 deplibs_check_method=$lt_deplibs_check_method
14734 # Command to use when deplibs_check_method == "file_magic".
14735 file_magic_cmd=$lt_file_magic_cmd
14737 # The archiver.
14738 AR=$lt_AR
14739 AR_FLAGS=$lt_AR_FLAGS
14741 # A symbol stripping program.
14742 STRIP=$lt_STRIP
14744 # Commands used to install an old-style archive.
14745 RANLIB=$lt_RANLIB
14746 old_postinstall_cmds=$lt_old_postinstall_cmds
14747 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14749 # A C compiler.
14750 LTCC=$lt_CC
14752 # LTCC compiler flags.
14753 LTCFLAGS=$lt_CFLAGS
14755 # Take the output of nm and produce a listing of raw symbols and C names.
14756 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14758 # Transform the output of nm in a proper C declaration.
14759 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14761 # Transform the output of nm in a C name address pair.
14762 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14764 # Transform the output of nm in a C name address pair when lib prefix is needed.
14765 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14767 # The name of the directory that contains temporary libtool files.
14768 objdir=$objdir
14770 # Shell to use when invoking shell scripts.
14771 SHELL=$lt_SHELL
14773 # An echo program that does not interpret backslashes.
14774 ECHO=$lt_ECHO
14776 # Used to examine libraries when file_magic_cmd begins with "file".
14777 MAGIC_CMD=$MAGIC_CMD
14779 # Must we lock files when doing compilation?
14780 need_locks=$lt_need_locks
14782 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14783 DSYMUTIL=$lt_DSYMUTIL
14785 # Tool to change global to local symbols on Mac OS X.
14786 NMEDIT=$lt_NMEDIT
14788 # Tool to manipulate fat objects and archives on Mac OS X.
14789 LIPO=$lt_LIPO
14791 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14792 OTOOL=$lt_OTOOL
14794 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14795 OTOOL64=$lt_OTOOL64
14797 # Old archive suffix (normally "a").
14798 libext=$libext
14800 # Shared library suffix (normally ".so").
14801 shrext_cmds=$lt_shrext_cmds
14803 # The commands to extract the exported symbol list from a shared archive.
14804 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14806 # Variables whose values should be saved in libtool wrapper scripts and
14807 # restored at link time.
14808 variables_saved_for_relink=$lt_variables_saved_for_relink
14810 # Do we need the "lib" prefix for modules?
14811 need_lib_prefix=$need_lib_prefix
14813 # Do we need a version for libraries?
14814 need_version=$need_version
14816 # Library versioning type.
14817 version_type=$version_type
14819 # Shared library runtime path variable.
14820 runpath_var=$runpath_var
14822 # Shared library path variable.
14823 shlibpath_var=$shlibpath_var
14825 # Is shlibpath searched before the hard-coded library search path?
14826 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14828 # Format of library name prefix.
14829 libname_spec=$lt_libname_spec
14831 # List of archive names. First name is the real one, the rest are links.
14832 # The last name is the one that the linker finds with -lNAME
14833 library_names_spec=$lt_library_names_spec
14835 # The coded name of the library, if different from the real name.
14836 soname_spec=$lt_soname_spec
14838 # Command to use after installation of a shared archive.
14839 postinstall_cmds=$lt_postinstall_cmds
14841 # Command to use after uninstallation of a shared archive.
14842 postuninstall_cmds=$lt_postuninstall_cmds
14844 # Commands used to finish a libtool library installation in a directory.
14845 finish_cmds=$lt_finish_cmds
14847 # As "finish_cmds", except a single script fragment to be evaled but
14848 # not shown.
14849 finish_eval=$lt_finish_eval
14851 # Whether we should hardcode library paths into libraries.
14852 hardcode_into_libs=$hardcode_into_libs
14854 # Compile-time system search path for libraries.
14855 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14857 # Run-time system search path for libraries.
14858 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14860 # Whether dlopen is supported.
14861 dlopen_support=$enable_dlopen
14863 # Whether dlopen of programs is supported.
14864 dlopen_self=$enable_dlopen_self
14866 # Whether dlopen of statically linked programs is supported.
14867 dlopen_self_static=$enable_dlopen_self_static
14869 # Commands to strip libraries.
14870 old_striplib=$lt_old_striplib
14871 striplib=$lt_striplib
14874 # The linker used to build libraries.
14875 LD=$lt_LD
14877 # Commands used to build an old-style archive.
14878 old_archive_cmds=$lt_old_archive_cmds
14880 # A language specific compiler.
14881 CC=$lt_compiler
14883 # Is the compiler the GNU compiler?
14884 with_gcc=$GCC
14886 # Compiler flag to turn off builtin functions.
14887 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14889 # How to pass a linker flag through the compiler.
14890 wl=$lt_lt_prog_compiler_wl
14892 # Additional compiler flags for building library objects.
14893 pic_flag=$lt_lt_prog_compiler_pic
14895 # Compiler flag to prevent dynamic linking.
14896 link_static_flag=$lt_lt_prog_compiler_static
14898 # Does compiler simultaneously support -c and -o options?
14899 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14901 # Whether or not to add -lc for building shared libraries.
14902 build_libtool_need_lc=$archive_cmds_need_lc
14904 # Whether or not to disallow shared libs when runtime libs are static.
14905 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14907 # Compiler flag to allow reflexive dlopens.
14908 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14910 # Compiler flag to generate shared objects directly from archives.
14911 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14913 # Whether the compiler copes with passing no objects directly.
14914 compiler_needs_object=$lt_compiler_needs_object
14916 # Create an old-style archive from a shared archive.
14917 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14919 # Create a temporary old-style archive to link instead of a shared archive.
14920 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14922 # Commands used to build a shared archive.
14923 archive_cmds=$lt_archive_cmds
14924 archive_expsym_cmds=$lt_archive_expsym_cmds
14926 # Commands used to build a loadable module if different from building
14927 # a shared archive.
14928 module_cmds=$lt_module_cmds
14929 module_expsym_cmds=$lt_module_expsym_cmds
14931 # Whether we are building with GNU ld or not.
14932 with_gnu_ld=$lt_with_gnu_ld
14934 # Flag that allows shared libraries with undefined symbols to be built.
14935 allow_undefined_flag=$lt_allow_undefined_flag
14937 # Flag that enforces no undefined symbols.
14938 no_undefined_flag=$lt_no_undefined_flag
14940 # Flag to hardcode \$libdir into a binary during linking.
14941 # This must work even if \$libdir does not exist
14942 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14944 # If ld is used when linking, flag to hardcode \$libdir into a binary
14945 # during linking. This must work even if \$libdir does not exist.
14946 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14948 # Whether we need a single "-rpath" flag with a separated argument.
14949 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14951 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14952 # DIR into the resulting binary.
14953 hardcode_direct=$hardcode_direct
14955 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14956 # DIR into the resulting binary and the resulting library dependency is
14957 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14958 # library is relocated.
14959 hardcode_direct_absolute=$hardcode_direct_absolute
14961 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14962 # into the resulting binary.
14963 hardcode_minus_L=$hardcode_minus_L
14965 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14966 # into the resulting binary.
14967 hardcode_shlibpath_var=$hardcode_shlibpath_var
14969 # Set to "yes" if building a shared library automatically hardcodes DIR
14970 # into the library and all subsequent libraries and executables linked
14971 # against it.
14972 hardcode_automatic=$hardcode_automatic
14974 # Set to yes if linker adds runtime paths of dependent libraries
14975 # to runtime path list.
14976 inherit_rpath=$inherit_rpath
14978 # Whether libtool must link a program against all its dependency libraries.
14979 link_all_deplibs=$link_all_deplibs
14981 # Fix the shell variable \$srcfile for the compiler.
14982 fix_srcfile_path=$lt_fix_srcfile_path
14984 # Set to "yes" if exported symbols are required.
14985 always_export_symbols=$always_export_symbols
14987 # The commands to list exported symbols.
14988 export_symbols_cmds=$lt_export_symbols_cmds
14990 # Symbols that should not be listed in the preloaded symbols.
14991 exclude_expsyms=$lt_exclude_expsyms
14993 # Symbols that must always be exported.
14994 include_expsyms=$lt_include_expsyms
14996 # Commands necessary for linking programs (against libraries) with templates.
14997 prelink_cmds=$lt_prelink_cmds
14999 # Specify filename containing input files.
15000 file_list_spec=$lt_file_list_spec
15002 # How to hardcode a shared library path into an executable.
15003 hardcode_action=$hardcode_action
15005 # ### END LIBTOOL CONFIG
15007 _LT_EOF
15009 case $host_os in
15010 aix3*)
15011 cat <<\_LT_EOF >> "$cfgfile"
15012 # AIX sometimes has problems with the GCC collect2 program. For some
15013 # reason, if we set the COLLECT_NAMES environment variable, the problems
15014 # vanish in a puff of smoke.
15015 if test "X${COLLECT_NAMES+set}" != Xset; then
15016 COLLECT_NAMES=
15017 export COLLECT_NAMES
15019 _LT_EOF
15021 esac
15024 ltmain="$ac_aux_dir/ltmain.sh"
15027 # We use sed instead of cat because bash on DJGPP gets confused if
15028 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15029 # text mode, it properly converts lines to CR/LF. This bash problem
15030 # is reportedly fixed, but why not run on old versions too?
15031 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15032 || (rm -f "$cfgfile"; exit 1)
15034 case $xsi_shell in
15035 yes)
15036 cat << \_LT_EOF >> "$cfgfile"
15038 # func_dirname file append nondir_replacement
15039 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15040 # otherwise set result to NONDIR_REPLACEMENT.
15041 func_dirname ()
15043 case ${1} in
15044 */*) func_dirname_result="${1%/*}${2}" ;;
15045 * ) func_dirname_result="${3}" ;;
15046 esac
15049 # func_basename file
15050 func_basename ()
15052 func_basename_result="${1##*/}"
15055 # func_dirname_and_basename file append nondir_replacement
15056 # perform func_basename and func_dirname in a single function
15057 # call:
15058 # dirname: Compute the dirname of FILE. If nonempty,
15059 # add APPEND to the result, otherwise set result
15060 # to NONDIR_REPLACEMENT.
15061 # value returned in "$func_dirname_result"
15062 # basename: Compute filename of FILE.
15063 # value retuned in "$func_basename_result"
15064 # Implementation must be kept synchronized with func_dirname
15065 # and func_basename. For efficiency, we do not delegate to
15066 # those functions but instead duplicate the functionality here.
15067 func_dirname_and_basename ()
15069 case ${1} in
15070 */*) func_dirname_result="${1%/*}${2}" ;;
15071 * ) func_dirname_result="${3}" ;;
15072 esac
15073 func_basename_result="${1##*/}"
15076 # func_stripname prefix suffix name
15077 # strip PREFIX and SUFFIX off of NAME.
15078 # PREFIX and SUFFIX must not contain globbing or regex special
15079 # characters, hashes, percent signs, but SUFFIX may contain a leading
15080 # dot (in which case that matches only a dot).
15081 func_stripname ()
15083 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15084 # positional parameters, so assign one to ordinary parameter first.
15085 func_stripname_result=${3}
15086 func_stripname_result=${func_stripname_result#"${1}"}
15087 func_stripname_result=${func_stripname_result%"${2}"}
15090 # func_opt_split
15091 func_opt_split ()
15093 func_opt_split_opt=${1%%=*}
15094 func_opt_split_arg=${1#*=}
15097 # func_lo2o object
15098 func_lo2o ()
15100 case ${1} in
15101 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15102 *) func_lo2o_result=${1} ;;
15103 esac
15106 # func_xform libobj-or-source
15107 func_xform ()
15109 func_xform_result=${1%.*}.lo
15112 # func_arith arithmetic-term...
15113 func_arith ()
15115 func_arith_result=$(( $* ))
15118 # func_len string
15119 # STRING may not start with a hyphen.
15120 func_len ()
15122 func_len_result=${#1}
15125 _LT_EOF
15127 *) # Bourne compatible functions.
15128 cat << \_LT_EOF >> "$cfgfile"
15130 # func_dirname file append nondir_replacement
15131 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15132 # otherwise set result to NONDIR_REPLACEMENT.
15133 func_dirname ()
15135 # Extract subdirectory from the argument.
15136 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15137 if test "X$func_dirname_result" = "X${1}"; then
15138 func_dirname_result="${3}"
15139 else
15140 func_dirname_result="$func_dirname_result${2}"
15144 # func_basename file
15145 func_basename ()
15147 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15151 # func_stripname prefix suffix name
15152 # strip PREFIX and SUFFIX off of NAME.
15153 # PREFIX and SUFFIX must not contain globbing or regex special
15154 # characters, hashes, percent signs, but SUFFIX may contain a leading
15155 # dot (in which case that matches only a dot).
15156 # func_strip_suffix prefix name
15157 func_stripname ()
15159 case ${2} in
15160 .*) func_stripname_result=`$ECHO "X${3}" \
15161 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15162 *) func_stripname_result=`$ECHO "X${3}" \
15163 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15164 esac
15167 # sed scripts:
15168 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15169 my_sed_long_arg='1s/^-[^=]*=//'
15171 # func_opt_split
15172 func_opt_split ()
15174 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15175 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15178 # func_lo2o object
15179 func_lo2o ()
15181 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15184 # func_xform libobj-or-source
15185 func_xform ()
15187 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15190 # func_arith arithmetic-term...
15191 func_arith ()
15193 func_arith_result=`expr "$@"`
15196 # func_len string
15197 # STRING may not start with a hyphen.
15198 func_len ()
15200 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15203 _LT_EOF
15204 esac
15206 case $lt_shell_append in
15207 yes)
15208 cat << \_LT_EOF >> "$cfgfile"
15210 # func_append var value
15211 # Append VALUE to the end of shell variable VAR.
15212 func_append ()
15214 eval "$1+=\$2"
15216 _LT_EOF
15219 cat << \_LT_EOF >> "$cfgfile"
15221 # func_append var value
15222 # Append VALUE to the end of shell variable VAR.
15223 func_append ()
15225 eval "$1=\$$1\$2"
15228 _LT_EOF
15230 esac
15233 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15234 || (rm -f "$cfgfile"; exit 1)
15236 mv -f "$cfgfile" "$ofile" ||
15237 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15238 chmod +x "$ofile"
15241 default-1 )
15242 for ac_file in $CONFIG_FILES; do
15243 # Support "outfile[:infile[:infile...]]"
15244 case "$ac_file" in
15245 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15246 esac
15247 # PO directories have a Makefile.in generated from Makefile.in.in.
15248 case "$ac_file" in */Makefile.in)
15249 # Adjust a relative srcdir.
15250 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15251 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
15252 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15253 # In autoconf-2.13 it is called $ac_given_srcdir.
15254 # In autoconf-2.50 it is called $srcdir.
15255 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15256 case "$ac_given_srcdir" in
15257 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15258 /*) top_srcdir="$ac_given_srcdir" ;;
15259 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
15260 esac
15261 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15262 rm -f "$ac_dir/POTFILES"
15263 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15264 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
15265 POMAKEFILEDEPS="POTFILES.in"
15266 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
15267 # on $ac_dir but don't depend on user-specified configuration
15268 # parameters.
15269 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15270 # The LINGUAS file contains the set of available languages.
15271 if test -n "$OBSOLETE_ALL_LINGUAS"; then
15272 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15274 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15275 # Hide the ALL_LINGUAS assigment from automake.
15276 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15277 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15278 else
15279 # The set of available languages was given in configure.in.
15280 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15282 case "$ac_given_srcdir" in
15283 .) srcdirpre= ;;
15284 *) srcdirpre='$(srcdir)/' ;;
15285 esac
15286 POFILES=
15287 GMOFILES=
15288 UPDATEPOFILES=
15289 DUMMYPOFILES=
15290 for lang in $ALL_LINGUAS; do
15291 POFILES="$POFILES $srcdirpre$lang.po"
15292 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
15293 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15294 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
15295 done
15296 # CATALOGS depends on both $ac_dir and the user's LINGUAS
15297 # environment variable.
15298 INST_LINGUAS=
15299 if test -n "$ALL_LINGUAS"; then
15300 for presentlang in $ALL_LINGUAS; do
15301 useit=no
15302 if test "%UNSET%" != "$LINGUAS"; then
15303 desiredlanguages="$LINGUAS"
15304 else
15305 desiredlanguages="$ALL_LINGUAS"
15307 for desiredlang in $desiredlanguages; do
15308 # Use the presentlang catalog if desiredlang is
15309 # a. equal to presentlang, or
15310 # b. a variant of presentlang (because in this case,
15311 # presentlang can be used as a fallback for messages
15312 # which are not translated in the desiredlang catalog).
15313 case "$desiredlang" in
15314 "$presentlang"*) useit=yes;;
15315 esac
15316 done
15317 if test $useit = yes; then
15318 INST_LINGUAS="$INST_LINGUAS $presentlang"
15320 done
15322 CATALOGS=
15323 if test -n "$INST_LINGUAS"; then
15324 for lang in $INST_LINGUAS; do
15325 CATALOGS="$CATALOGS $lang.gmo"
15326 done
15328 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
15329 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
15330 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15331 if test -f "$f"; then
15332 case "$f" in
15333 *.orig | *.bak | *~) ;;
15334 *) cat "$f" >> "$ac_dir/Makefile" ;;
15335 esac
15337 done
15340 esac
15341 done ;;
15342 esac
15343 done
15344 _ACEOF
15346 cat >>$CONFIG_STATUS <<\_ACEOF
15348 { (exit 0); exit 0; }
15349 _ACEOF
15350 chmod +x $CONFIG_STATUS
15351 ac_clean_files=$ac_clean_files_save
15354 # configure is writing to config.log, and then calls config.status.
15355 # config.status does its own redirection, appending to config.log.
15356 # Unfortunately, on DOS this fails, as config.log is still kept open
15357 # by configure, so config.status won't be able to write to it; its
15358 # output is simply discarded. So we exec the FD to /dev/null,
15359 # effectively closing config.log, so it can be properly (re)opened and
15360 # appended to by config.status. When coming back to configure, we
15361 # need to make the FD available again.
15362 if test "$no_create" != yes; then
15363 ac_cs_success=:
15364 ac_config_status_args=
15365 test "$silent" = yes &&
15366 ac_config_status_args="$ac_config_status_args --quiet"
15367 exec 5>/dev/null
15368 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15369 exec 5>>config.log
15370 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15371 # would make configure fail if this is the last instruction.
15372 $ac_cs_success || { (exit 1); exit 1; }