* mn10300.h (R_MN10300_ALIGN): Define.
[deliverable/binutils-gdb.git] / ld / configure
... / ...
CommitLineData
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59.
4#
5# Copyright (C) 2003 Free Software Foundation, Inc.
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if 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+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for 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
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `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= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244
245# Check that we are running under the correct shell.
246SHELL=${CONFIG_SHELL-/bin/sh}
247
248case X$lt_ECHO in
249X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
252 ;;
253esac
254
255ECHO=${lt_ECHO-echo}
256if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
258 shift
259elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
261 :
262elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $ECHO works!
264 :
265else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
268fi
269
270if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
272 shift
273 cat <<_LT_EOF
274$*
275_LT_EOF
276 exit 0
277fi
278
279# The HP-UX ksh and POSIX shell print the target directory to stdout
280# if CDPATH is set.
281(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
282
283if test -z "$lt_ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
289 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
290 then
291 break
292 fi
293 done
294 fi
295
296 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
297 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
298 test "X$echo_testing_string" = "X$echo_test_string"; then
299 :
300 else
301 # The Solaris, AIX, and Digital Unix default echo programs unquote
302 # backslashes. This makes it impossible to quote backslashes using
303 # echo "$something" | sed 's/\\/\\\\/g'
304 #
305 # So, first we look for a working echo in the user's PATH.
306
307 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
308 for dir in $PATH /usr/ucb; do
309 IFS="$lt_save_ifs"
310 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
311 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313 test "X$echo_testing_string" = "X$echo_test_string"; then
314 ECHO="$dir/echo"
315 break
316 fi
317 done
318 IFS="$lt_save_ifs"
319
320 if test "X$ECHO" = Xecho; then
321 # We didn't find a better echo, so look for alternatives.
322 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
323 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
324 test "X$echo_testing_string" = "X$echo_test_string"; then
325 # This shell has a builtin print -r that does the trick.
326 ECHO='print -r'
327 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
328 test "X$CONFIG_SHELL" != X/bin/ksh; then
329 # If we have ksh, try running configure again with it.
330 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
331 export ORIGINAL_CONFIG_SHELL
332 CONFIG_SHELL=/bin/ksh
333 export CONFIG_SHELL
334 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
335 else
336 # Try using printf.
337 ECHO='printf %s\n'
338 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
339 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
340 test "X$echo_testing_string" = "X$echo_test_string"; then
341 # Cool, printf works
342 :
343 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344 test "X$echo_testing_string" = 'X\t' &&
345 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346 test "X$echo_testing_string" = "X$echo_test_string"; then
347 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
348 export CONFIG_SHELL
349 SHELL="$CONFIG_SHELL"
350 export SHELL
351 ECHO="$CONFIG_SHELL $0 --fallback-echo"
352 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353 test "X$echo_testing_string" = 'X\t' &&
354 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355 test "X$echo_testing_string" = "X$echo_test_string"; then
356 ECHO="$CONFIG_SHELL $0 --fallback-echo"
357 else
358 # maybe with a smaller string...
359 prev=:
360
361 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
363 then
364 break
365 fi
366 prev="$cmd"
367 done
368
369 if test "$prev" != 'sed 50q "$0"'; then
370 echo_test_string=`eval $prev`
371 export echo_test_string
372 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
373 else
374 # Oops. We lost completely, so just stick with echo.
375 ECHO=echo
376 fi
377 fi
378 fi
379 fi
380 fi
381fi
382
383# Copy echo and quote the copy suitably for passing to libtool from
384# the Makefile, instead of quoting the original, which is used later.
385lt_ECHO=$ECHO
386if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
388fi
389
390
391
392
393# Name of the host.
394# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395# so uname gets run too.
396ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
397
398exec 6>&1
399
400#
401# Initializations.
402#
403ac_default_prefix=/usr/local
404ac_config_libobj_dir=.
405cross_compiling=no
406subdirs=
407MFLAGS=
408MAKEFLAGS=
409SHELL=${CONFIG_SHELL-/bin/sh}
410
411# Maximum number of lines to put in a shell here document.
412# This variable seems obsolete. It should probably be removed, and
413# only ac_max_sed_lines should be used.
414: ${ac_max_here_lines=38}
415
416# Identity of this package.
417PACKAGE_NAME=
418PACKAGE_TARNAME=
419PACKAGE_VERSION=
420PACKAGE_STRING=
421PACKAGE_BUGREPORT=
422
423ac_unique_file="ldmain.c"
424# Factoring default headers for most tests.
425ac_includes_default="\
426#include <stdio.h>
427#if HAVE_SYS_TYPES_H
428# include <sys/types.h>
429#endif
430#if HAVE_SYS_STAT_H
431# include <sys/stat.h>
432#endif
433#if STDC_HEADERS
434# include <stdlib.h>
435# include <stddef.h>
436#else
437# if HAVE_STDLIB_H
438# include <stdlib.h>
439# endif
440#endif
441#if HAVE_STRING_H
442# if !STDC_HEADERS && HAVE_MEMORY_H
443# include <memory.h>
444# endif
445# include <string.h>
446#endif
447#if HAVE_STRINGS_H
448# include <strings.h>
449#endif
450#if HAVE_INTTYPES_H
451# include <inttypes.h>
452#else
453# if HAVE_STDINT_H
454# include <stdint.h>
455# endif
456#endif
457#if HAVE_UNISTD_H
458# include <unistd.h>
459#endif"
460
461ac_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 use_sysroot TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE WARN_CFLAGS NO_WERROR LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO CPP USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE YACC LEX LEXLIB LEX_OUTPUT_ROOT MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GENINSRC_NEVER_TRUE GENINSRC_NEVER_FALSE HDEFINES HOSTING_CRT0 HOSTING_LIBS NATIVE_LIB_DIRS STRINGIFY EMUL EMULATION_OFILES EMUL_EXTRA_OFILES LIB_PATH EMULATION_LIBPATH TESTBFDLIB datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
462ac_subst_files='TDIRS'
463
464# Initialize some variables set by options.
465ac_init_help=
466ac_init_version=false
467# The variables have the same names as the options, with
468# dashes changed to underlines.
469cache_file=/dev/null
470exec_prefix=NONE
471no_create=
472no_recursion=
473prefix=NONE
474program_prefix=NONE
475program_suffix=NONE
476program_transform_name=s,x,x,
477silent=
478site=
479srcdir=
480verbose=
481x_includes=NONE
482x_libraries=NONE
483
484# Installation directory options.
485# These are left unexpanded so users can "make install exec_prefix=/foo"
486# and all the variables that are supposed to be based on exec_prefix
487# by default will actually change.
488# Use braces instead of parens because sh, perl, etc. also accept them.
489bindir='${exec_prefix}/bin'
490sbindir='${exec_prefix}/sbin'
491libexecdir='${exec_prefix}/libexec'
492datadir='${prefix}/share'
493sysconfdir='${prefix}/etc'
494sharedstatedir='${prefix}/com'
495localstatedir='${prefix}/var'
496libdir='${exec_prefix}/lib'
497includedir='${prefix}/include'
498oldincludedir='/usr/include'
499infodir='${prefix}/info'
500mandir='${prefix}/man'
501
502ac_prev=
503for ac_option
504do
505 # If the previous option needs an argument, assign it.
506 if test -n "$ac_prev"; then
507 eval "$ac_prev=\$ac_option"
508 ac_prev=
509 continue
510 fi
511
512 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
513
514 # Accept the important Cygnus configure options, so we can diagnose typos.
515
516 case $ac_option in
517
518 -bindir | --bindir | --bindi | --bind | --bin | --bi)
519 ac_prev=bindir ;;
520 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
521 bindir=$ac_optarg ;;
522
523 -build | --build | --buil | --bui | --bu)
524 ac_prev=build_alias ;;
525 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
526 build_alias=$ac_optarg ;;
527
528 -cache-file | --cache-file | --cache-fil | --cache-fi \
529 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
530 ac_prev=cache_file ;;
531 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
532 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
533 cache_file=$ac_optarg ;;
534
535 --config-cache | -C)
536 cache_file=config.cache ;;
537
538 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
539 ac_prev=datadir ;;
540 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
541 | --da=*)
542 datadir=$ac_optarg ;;
543
544 -disable-* | --disable-*)
545 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
546 # Reject names that are not valid shell variable names.
547 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
548 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
549 { (exit 1); exit 1; }; }
550 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
551 eval "enable_$ac_feature=no" ;;
552
553 -enable-* | --enable-*)
554 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
555 # Reject names that are not valid shell variable names.
556 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558 { (exit 1); exit 1; }; }
559 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560 case $ac_option in
561 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
562 *) ac_optarg=yes ;;
563 esac
564 eval "enable_$ac_feature='$ac_optarg'" ;;
565
566 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
567 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
568 | --exec | --exe | --ex)
569 ac_prev=exec_prefix ;;
570 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
571 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
572 | --exec=* | --exe=* | --ex=*)
573 exec_prefix=$ac_optarg ;;
574
575 -gas | --gas | --ga | --g)
576 # Obsolete; use --with-gas.
577 with_gas=yes ;;
578
579 -help | --help | --hel | --he | -h)
580 ac_init_help=long ;;
581 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
582 ac_init_help=recursive ;;
583 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
584 ac_init_help=short ;;
585
586 -host | --host | --hos | --ho)
587 ac_prev=host_alias ;;
588 -host=* | --host=* | --hos=* | --ho=*)
589 host_alias=$ac_optarg ;;
590
591 -includedir | --includedir | --includedi | --included | --include \
592 | --includ | --inclu | --incl | --inc)
593 ac_prev=includedir ;;
594 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
595 | --includ=* | --inclu=* | --incl=* | --inc=*)
596 includedir=$ac_optarg ;;
597
598 -infodir | --infodir | --infodi | --infod | --info | --inf)
599 ac_prev=infodir ;;
600 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
601 infodir=$ac_optarg ;;
602
603 -libdir | --libdir | --libdi | --libd)
604 ac_prev=libdir ;;
605 -libdir=* | --libdir=* | --libdi=* | --libd=*)
606 libdir=$ac_optarg ;;
607
608 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
609 | --libexe | --libex | --libe)
610 ac_prev=libexecdir ;;
611 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
612 | --libexe=* | --libex=* | --libe=*)
613 libexecdir=$ac_optarg ;;
614
615 -localstatedir | --localstatedir | --localstatedi | --localstated \
616 | --localstate | --localstat | --localsta | --localst \
617 | --locals | --local | --loca | --loc | --lo)
618 ac_prev=localstatedir ;;
619 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
620 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
621 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
622 localstatedir=$ac_optarg ;;
623
624 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
625 ac_prev=mandir ;;
626 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
627 mandir=$ac_optarg ;;
628
629 -nfp | --nfp | --nf)
630 # Obsolete; use --without-fp.
631 with_fp=no ;;
632
633 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
634 | --no-cr | --no-c | -n)
635 no_create=yes ;;
636
637 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
638 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
639 no_recursion=yes ;;
640
641 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
642 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
643 | --oldin | --oldi | --old | --ol | --o)
644 ac_prev=oldincludedir ;;
645 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
646 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
647 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
648 oldincludedir=$ac_optarg ;;
649
650 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
651 ac_prev=prefix ;;
652 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
653 prefix=$ac_optarg ;;
654
655 -program-prefix | --program-prefix | --program-prefi | --program-pref \
656 | --program-pre | --program-pr | --program-p)
657 ac_prev=program_prefix ;;
658 -program-prefix=* | --program-prefix=* | --program-prefi=* \
659 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
660 program_prefix=$ac_optarg ;;
661
662 -program-suffix | --program-suffix | --program-suffi | --program-suff \
663 | --program-suf | --program-su | --program-s)
664 ac_prev=program_suffix ;;
665 -program-suffix=* | --program-suffix=* | --program-suffi=* \
666 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
667 program_suffix=$ac_optarg ;;
668
669 -program-transform-name | --program-transform-name \
670 | --program-transform-nam | --program-transform-na \
671 | --program-transform-n | --program-transform- \
672 | --program-transform | --program-transfor \
673 | --program-transfo | --program-transf \
674 | --program-trans | --program-tran \
675 | --progr-tra | --program-tr | --program-t)
676 ac_prev=program_transform_name ;;
677 -program-transform-name=* | --program-transform-name=* \
678 | --program-transform-nam=* | --program-transform-na=* \
679 | --program-transform-n=* | --program-transform-=* \
680 | --program-transform=* | --program-transfor=* \
681 | --program-transfo=* | --program-transf=* \
682 | --program-trans=* | --program-tran=* \
683 | --progr-tra=* | --program-tr=* | --program-t=*)
684 program_transform_name=$ac_optarg ;;
685
686 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
687 | -silent | --silent | --silen | --sile | --sil)
688 silent=yes ;;
689
690 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
691 ac_prev=sbindir ;;
692 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
693 | --sbi=* | --sb=*)
694 sbindir=$ac_optarg ;;
695
696 -sharedstatedir | --sharedstatedir | --sharedstatedi \
697 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
698 | --sharedst | --shareds | --shared | --share | --shar \
699 | --sha | --sh)
700 ac_prev=sharedstatedir ;;
701 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
702 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
703 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
704 | --sha=* | --sh=*)
705 sharedstatedir=$ac_optarg ;;
706
707 -site | --site | --sit)
708 ac_prev=site ;;
709 -site=* | --site=* | --sit=*)
710 site=$ac_optarg ;;
711
712 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
713 ac_prev=srcdir ;;
714 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
715 srcdir=$ac_optarg ;;
716
717 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
718 | --syscon | --sysco | --sysc | --sys | --sy)
719 ac_prev=sysconfdir ;;
720 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
721 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
722 sysconfdir=$ac_optarg ;;
723
724 -target | --target | --targe | --targ | --tar | --ta | --t)
725 ac_prev=target_alias ;;
726 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
727 target_alias=$ac_optarg ;;
728
729 -v | -verbose | --verbose | --verbos | --verbo | --verb)
730 verbose=yes ;;
731
732 -version | --version | --versio | --versi | --vers | -V)
733 ac_init_version=: ;;
734
735 -with-* | --with-*)
736 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
737 # Reject names that are not valid shell variable names.
738 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
739 { echo "$as_me: error: invalid package name: $ac_package" >&2
740 { (exit 1); exit 1; }; }
741 ac_package=`echo $ac_package| sed 's/-/_/g'`
742 case $ac_option in
743 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
744 *) ac_optarg=yes ;;
745 esac
746 eval "with_$ac_package='$ac_optarg'" ;;
747
748 -without-* | --without-*)
749 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
750 # Reject names that are not valid shell variable names.
751 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
752 { echo "$as_me: error: invalid package name: $ac_package" >&2
753 { (exit 1); exit 1; }; }
754 ac_package=`echo $ac_package | sed 's/-/_/g'`
755 eval "with_$ac_package=no" ;;
756
757 --x)
758 # Obsolete; use --with-x.
759 with_x=yes ;;
760
761 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
762 | --x-incl | --x-inc | --x-in | --x-i)
763 ac_prev=x_includes ;;
764 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
765 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
766 x_includes=$ac_optarg ;;
767
768 -x-libraries | --x-libraries | --x-librarie | --x-librari \
769 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
770 ac_prev=x_libraries ;;
771 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
772 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
773 x_libraries=$ac_optarg ;;
774
775 -*) { echo "$as_me: error: unrecognized option: $ac_option
776Try \`$0 --help' for more information." >&2
777 { (exit 1); exit 1; }; }
778 ;;
779
780 *=*)
781 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
782 # Reject names that are not valid shell variable names.
783 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
784 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
785 { (exit 1); exit 1; }; }
786 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
787 eval "$ac_envvar='$ac_optarg'"
788 export $ac_envvar ;;
789
790 *)
791 # FIXME: should be removed in autoconf 3.0.
792 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
793 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
794 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
795 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
796 ;;
797
798 esac
799done
800
801if test -n "$ac_prev"; then
802 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
803 { echo "$as_me: error: missing argument to $ac_option" >&2
804 { (exit 1); exit 1; }; }
805fi
806
807# Be sure to have absolute paths.
808for ac_var in exec_prefix prefix
809do
810 eval ac_val=$`echo $ac_var`
811 case $ac_val in
812 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
813 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
814 { (exit 1); exit 1; }; };;
815 esac
816done
817
818# Be sure to have absolute paths.
819for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
820 localstatedir libdir includedir oldincludedir infodir mandir
821do
822 eval ac_val=$`echo $ac_var`
823 case $ac_val in
824 [\\/$]* | ?:[\\/]* ) ;;
825 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
826 { (exit 1); exit 1; }; };;
827 esac
828done
829
830# There might be people who depend on the old broken behavior: `$host'
831# used to hold the argument of --host etc.
832# FIXME: To remove some day.
833build=$build_alias
834host=$host_alias
835target=$target_alias
836
837# FIXME: To remove some day.
838if test "x$host_alias" != x; then
839 if test "x$build_alias" = x; then
840 cross_compiling=maybe
841 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
842 If a cross compiler is detected then cross compile mode will be used." >&2
843 elif test "x$build_alias" != "x$host_alias"; then
844 cross_compiling=yes
845 fi
846fi
847
848ac_tool_prefix=
849test -n "$host_alias" && ac_tool_prefix=$host_alias-
850
851test "$silent" = yes && exec 6>/dev/null
852
853
854# Find the source files, if location was not specified.
855if test -z "$srcdir"; then
856 ac_srcdir_defaulted=yes
857 # Try the directory containing this script, then its parent.
858 ac_confdir=`(dirname "$0") 2>/dev/null ||
859$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
860 X"$0" : 'X\(//\)[^/]' \| \
861 X"$0" : 'X\(//\)$' \| \
862 X"$0" : 'X\(/\)' \| \
863 . : '\(.\)' 2>/dev/null ||
864echo X"$0" |
865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
866 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
867 /^X\(\/\/\)$/{ s//\1/; q; }
868 /^X\(\/\).*/{ s//\1/; q; }
869 s/.*/./; q'`
870 srcdir=$ac_confdir
871 if test ! -r $srcdir/$ac_unique_file; then
872 srcdir=..
873 fi
874else
875 ac_srcdir_defaulted=no
876fi
877if test ! -r $srcdir/$ac_unique_file; then
878 if test "$ac_srcdir_defaulted" = yes; then
879 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
880 { (exit 1); exit 1; }; }
881 else
882 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
883 { (exit 1); exit 1; }; }
884 fi
885fi
886(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
887 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
888 { (exit 1); exit 1; }; }
889srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
890ac_env_build_alias_set=${build_alias+set}
891ac_env_build_alias_value=$build_alias
892ac_cv_env_build_alias_set=${build_alias+set}
893ac_cv_env_build_alias_value=$build_alias
894ac_env_host_alias_set=${host_alias+set}
895ac_env_host_alias_value=$host_alias
896ac_cv_env_host_alias_set=${host_alias+set}
897ac_cv_env_host_alias_value=$host_alias
898ac_env_target_alias_set=${target_alias+set}
899ac_env_target_alias_value=$target_alias
900ac_cv_env_target_alias_set=${target_alias+set}
901ac_cv_env_target_alias_value=$target_alias
902ac_env_CC_set=${CC+set}
903ac_env_CC_value=$CC
904ac_cv_env_CC_set=${CC+set}
905ac_cv_env_CC_value=$CC
906ac_env_CFLAGS_set=${CFLAGS+set}
907ac_env_CFLAGS_value=$CFLAGS
908ac_cv_env_CFLAGS_set=${CFLAGS+set}
909ac_cv_env_CFLAGS_value=$CFLAGS
910ac_env_LDFLAGS_set=${LDFLAGS+set}
911ac_env_LDFLAGS_value=$LDFLAGS
912ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
913ac_cv_env_LDFLAGS_value=$LDFLAGS
914ac_env_CPPFLAGS_set=${CPPFLAGS+set}
915ac_env_CPPFLAGS_value=$CPPFLAGS
916ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
917ac_cv_env_CPPFLAGS_value=$CPPFLAGS
918ac_env_CPP_set=${CPP+set}
919ac_env_CPP_value=$CPP
920ac_cv_env_CPP_set=${CPP+set}
921ac_cv_env_CPP_value=$CPP
922
923#
924# Report the --help message.
925#
926if test "$ac_init_help" = "long"; then
927 # Omit some internal or obsolete options to make the list less imposing.
928 # This message is too long to be a string in the A/UX 3.1 sh.
929 cat <<_ACEOF
930\`configure' configures this package to adapt to many kinds of systems.
931
932Usage: $0 [OPTION]... [VAR=VALUE]...
933
934To assign environment variables (e.g., CC, CFLAGS...), specify them as
935VAR=VALUE. See below for descriptions of some of the useful variables.
936
937Defaults for the options are specified in brackets.
938
939Configuration:
940 -h, --help display this help and exit
941 --help=short display options specific to this package
942 --help=recursive display the short help of all the included packages
943 -V, --version display version information and exit
944 -q, --quiet, --silent do not print \`checking...' messages
945 --cache-file=FILE cache test results in FILE [disabled]
946 -C, --config-cache alias for \`--cache-file=config.cache'
947 -n, --no-create do not create output files
948 --srcdir=DIR find the sources in DIR [configure dir or \`..']
949
950_ACEOF
951
952 cat <<_ACEOF
953Installation directories:
954 --prefix=PREFIX install architecture-independent files in PREFIX
955 [$ac_default_prefix]
956 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
957 [PREFIX]
958
959By default, \`make install' will install all the files in
960\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
961an installation prefix other than \`$ac_default_prefix' using \`--prefix',
962for instance \`--prefix=\$HOME'.
963
964For better control, use the options below.
965
966Fine tuning of the installation directories:
967 --bindir=DIR user executables [EPREFIX/bin]
968 --sbindir=DIR system admin executables [EPREFIX/sbin]
969 --libexecdir=DIR program executables [EPREFIX/libexec]
970 --datadir=DIR read-only architecture-independent data [PREFIX/share]
971 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
972 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
973 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
974 --libdir=DIR object code libraries [EPREFIX/lib]
975 --includedir=DIR C header files [PREFIX/include]
976 --oldincludedir=DIR C header files for non-gcc [/usr/include]
977 --infodir=DIR info documentation [PREFIX/info]
978 --mandir=DIR man documentation [PREFIX/man]
979_ACEOF
980
981 cat <<\_ACEOF
982
983Program names:
984 --program-prefix=PREFIX prepend PREFIX to installed program names
985 --program-suffix=SUFFIX append SUFFIX to installed program names
986 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
987
988System types:
989 --build=BUILD configure for building on BUILD [guessed]
990 --host=HOST cross-compile to build programs to run on HOST [BUILD]
991 --target=TARGET configure for building compilers for TARGET [HOST]
992_ACEOF
993fi
994
995if test -n "$ac_init_help"; then
996
997 cat <<\_ACEOF
998
999Optional Features:
1000 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1001 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1002 --disable-dependency-tracking speeds up one-time build
1003 --enable-dependency-tracking do not reject slow dependency extractors
1004 --enable-targets alternative target configurations
1005 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1006 --enable-werror treat compile warnings as errors
1007 --enable-build-warnings enable build-time compiler warnings
1008 --enable-shared[=PKGS]
1009 build shared libraries [default=yes]
1010 --enable-static[=PKGS]
1011 build static libraries [default=yes]
1012 --enable-fast-install[=PKGS]
1013 optimize for fast installation [default=yes]
1014 --disable-libtool-lock avoid locking (might break parallel builds)
1015 --disable-nls do not use Native Language Support
1016 --enable-maintainer-mode enable make rules and dependencies not useful
1017 (and sometimes confusing) to the casual installer
1018
1019Optional Packages:
1020 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1021 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1022 --with-lib-path=dir1:dir2... set default LIB_PATH
1023 --with-sysroot=DIR Search for usr/lib et al within DIR.
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]
1027
1028Some 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
1036
1037Use these variables to override the choices made by `configure' or to help
1038it to find libraries and programs with nonstandard names/locations.
1039
1040_ACEOF
1041fi
1042
1043if 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=.
1049
1050if 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'`
1054else
1055 ac_dir_suffix= ac_top_builddir=
1056fi
1057
1058case $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 ;;
1072esac
1073
1074# Do not use `cd foo && pwd` to compute absolute paths, because
1075# the directories may not exist.
1076case `pwd` in
1077.) ac_abs_builddir="$ac_dir";;
1078*)
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;;
1084esac
1085case $ac_abs_builddir in
1086.) ac_abs_top_builddir=${ac_top_builddir}.;;
1087*)
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;;
1093esac
1094case $ac_abs_builddir in
1095.) ac_abs_srcdir=$ac_srcdir;;
1096*)
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;;
1102esac
1103case $ac_abs_builddir in
1104.) ac_abs_top_srcdir=$ac_top_srcdir;;
1105*)
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;;
1111esac
1112
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
1127 fi
1128 cd $ac_popdir
1129 done
1130fi
1131
1132test -n "$ac_init_help" && exit 0
1133if $ac_init_version; then
1134 cat <<\_ACEOF
1135
1136Copyright (C) 2003 Free Software Foundation, Inc.
1137This configure script is free software; the Free Software Foundation
1138gives unlimited permission to copy, distribute and modify it.
1139_ACEOF
1140 exit 0
1141fi
1142exec 5>config.log
1143cat >&5 <<_ACEOF
1144This file contains any messages produced by compilers while
1145running configure, to aid debugging if configure makes a mistake.
1146
1147It was created by $as_me, which was
1148generated by GNU Autoconf 2.59. Invocation command line was
1149
1150 $ $0 $@
1151
1152_ACEOF
1153{
1154cat <<_ASUNAME
1155## --------- ##
1156## Platform. ##
1157## --------- ##
1158
1159hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1160uname -m = `(uname -m) 2>/dev/null || echo unknown`
1161uname -r = `(uname -r) 2>/dev/null || echo unknown`
1162uname -s = `(uname -s) 2>/dev/null || echo unknown`
1163uname -v = `(uname -v) 2>/dev/null || echo unknown`
1164
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`
1167
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`
1171hostinfo = `(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`
1175
1176_ASUNAME
1177
1178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1179for as_dir in $PATH
1180do
1181 IFS=$as_save_IFS
1182 test -z "$as_dir" && as_dir=.
1183 echo "PATH: $as_dir"
1184done
1185
1186} >&5
1187
1188cat >&5 <<_ACEOF
1189
1190
1191## ----------- ##
1192## Core tests. ##
1193## ----------- ##
1194
1195_ACEOF
1196
1197
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.
1203ac_configure_args=
1204ac_configure_args0=
1205ac_configure_args1=
1206ac_sep=
1207ac_must_keep_next=false
1208for ac_pass in 1 2
1209do
1210 for ac_arg
1211 do
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'" ;;
1222 2)
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
1235 ;;
1236 -* ) ac_must_keep_next=true ;;
1237 esac
1238 fi
1239 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1240 # Get rid of the leading space.
1241 ac_sep=" "
1242 ;;
1243 esac
1244 done
1245done
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; }
1248
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.
1254trap 'exit_status=$?
1255 # Save into config.log some information that might help in debugging.
1256 {
1257 echo
1258
1259 cat <<\_ASBOX
1260## ---------------- ##
1261## Cache variables. ##
1262## ---------------- ##
1263_ASBOX
1264 echo
1265 # The following way of writing the cache mishandles newlines in values,
1266{
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"
1273 ;;
1274 *)
1275 sed -n \
1276 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1277 ;;
1278 esac;
1279}
1280 echo
1281
1282 cat <<\_ASBOX
1283## ----------------- ##
1284## Output variables. ##
1285## ----------------- ##
1286_ASBOX
1287 echo
1288 for ac_var in $ac_subst_vars
1289 do
1290 eval ac_val=$`echo $ac_var`
1291 echo "$ac_var='"'"'$ac_val'"'"'"
1292 done | sort
1293 echo
1294
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
1303 do
1304 eval ac_val=$`echo $ac_var`
1305 echo "$ac_var='"'"'$ac_val'"'"'"
1306 done | sort
1307 echo
1308 fi
1309
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
1319 fi
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
1327 ' 0
1328for ac_signal in 1 2 13 15; do
1329 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1330done
1331ac_signal=0
1332
1333# confdefs.h avoids OS command line length limits that DEFS can exceed.
1334rm -rf conftest* confdefs.h
1335# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1336echo >confdefs.h
1337
1338# Predefined preprocessor variables.
1339
1340cat >>confdefs.h <<_ACEOF
1341#define PACKAGE_NAME "$PACKAGE_NAME"
1342_ACEOF
1343
1344
1345cat >>confdefs.h <<_ACEOF
1346#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1347_ACEOF
1348
1349
1350cat >>confdefs.h <<_ACEOF
1351#define PACKAGE_VERSION "$PACKAGE_VERSION"
1352_ACEOF
1353
1354
1355cat >>confdefs.h <<_ACEOF
1356#define PACKAGE_STRING "$PACKAGE_STRING"
1357_ACEOF
1358
1359
1360cat >>confdefs.h <<_ACEOF
1361#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1362_ACEOF
1363
1364
1365# Let the site file select an alternate cache file if it wants to.
1366# Prefer explicitly selected file to automatically selected ones.
1367if 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"
1372 fi
1373fi
1374for 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
1377echo "$as_me: loading site script $ac_site_file" >&6;}
1378 sed 's/^/| /' "$ac_site_file" >&5
1379 . "$ac_site_file"
1380 fi
1381done
1382
1383if 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
1388echo "$as_me: loading cache $cache_file" >&6;}
1389 case $cache_file in
1390 [\\/]* | ?:[\\/]* ) . $cache_file;;
1391 *) . ./$cache_file;;
1392 esac
1393 fi
1394else
1395 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1396echo "$as_me: creating cache $cache_file" >&6;}
1397 >$cache_file
1398fi
1399
1400# Check that the precious variables saved in the cache have kept the same
1401# value.
1402ac_cache_corrupted=false
1403for 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
1412echo "$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
1416echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1417 ac_cache_corrupted=: ;;
1418 ,);;
1419 *)
1420 if test "x$ac_old_val" != "x$ac_new_val"; then
1421 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1422echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1423 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1424echo "$as_me: former value: $ac_old_val" >&2;}
1425 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1426echo "$as_me: current value: $ac_new_val" >&2;}
1427 ac_cache_corrupted=:
1428 fi;;
1429 esac
1430 # Pass precious variables to config.status.
1431 if test "$ac_new_set" = set; then
1432 case $ac_new_val in
1433 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1434 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1435 *) ac_arg=$ac_var=$ac_new_val ;;
1436 esac
1437 case " $ac_configure_args " in
1438 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1439 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1440 esac
1441 fi
1442done
1443if $ac_cache_corrupted; then
1444 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1445echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1446 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1447echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1448 { (exit 1); exit 1; }; }
1449fi
1450
1451ac_ext=c
1452ac_cpp='$CPP $CPPFLAGS'
1453ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1454ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1455ac_compiler_gnu=$ac_cv_c_compiler_gnu
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476ac_aux_dir=
1477for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1478 if test -f $ac_dir/install-sh; then
1479 ac_aux_dir=$ac_dir
1480 ac_install_sh="$ac_aux_dir/install-sh -c"
1481 break
1482 elif test -f $ac_dir/install.sh; then
1483 ac_aux_dir=$ac_dir
1484 ac_install_sh="$ac_aux_dir/install.sh -c"
1485 break
1486 elif test -f $ac_dir/shtool; then
1487 ac_aux_dir=$ac_dir
1488 ac_install_sh="$ac_aux_dir/shtool install -c"
1489 break
1490 fi
1491done
1492if test -z "$ac_aux_dir"; then
1493 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1494echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1495 { (exit 1); exit 1; }; }
1496fi
1497ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1498ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1499ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1500
1501# Make sure we can run config.sub.
1502$ac_config_sub sun4 >/dev/null 2>&1 ||
1503 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1504echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1505 { (exit 1); exit 1; }; }
1506
1507echo "$as_me:$LINENO: checking build system type" >&5
1508echo $ECHO_N "checking build system type... $ECHO_C" >&6
1509if test "${ac_cv_build+set}" = set; then
1510 echo $ECHO_N "(cached) $ECHO_C" >&6
1511else
1512 ac_cv_build_alias=$build_alias
1513test -z "$ac_cv_build_alias" &&
1514 ac_cv_build_alias=`$ac_config_guess`
1515test -z "$ac_cv_build_alias" &&
1516 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1517echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1518 { (exit 1); exit 1; }; }
1519ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1520 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1521echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1522 { (exit 1); exit 1; }; }
1523
1524fi
1525echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1526echo "${ECHO_T}$ac_cv_build" >&6
1527build=$ac_cv_build
1528build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1529build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1530build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1531
1532
1533echo "$as_me:$LINENO: checking host system type" >&5
1534echo $ECHO_N "checking host system type... $ECHO_C" >&6
1535if test "${ac_cv_host+set}" = set; then
1536 echo $ECHO_N "(cached) $ECHO_C" >&6
1537else
1538 ac_cv_host_alias=$host_alias
1539test -z "$ac_cv_host_alias" &&
1540 ac_cv_host_alias=$ac_cv_build_alias
1541ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1542 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1543echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1544 { (exit 1); exit 1; }; }
1545
1546fi
1547echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1548echo "${ECHO_T}$ac_cv_host" >&6
1549host=$ac_cv_host
1550host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1551host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1552host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1553
1554
1555echo "$as_me:$LINENO: checking target system type" >&5
1556echo $ECHO_N "checking target system type... $ECHO_C" >&6
1557if test "${ac_cv_target+set}" = set; then
1558 echo $ECHO_N "(cached) $ECHO_C" >&6
1559else
1560 ac_cv_target_alias=$target_alias
1561test "x$ac_cv_target_alias" = "x" &&
1562 ac_cv_target_alias=$ac_cv_host_alias
1563ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1564 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1565echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1566 { (exit 1); exit 1; }; }
1567
1568fi
1569echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1570echo "${ECHO_T}$ac_cv_target" >&6
1571target=$ac_cv_target
1572target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1573target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1574target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1575
1576
1577# The aliases save the names the user supplied, while $host etc.
1578# will get canonicalized.
1579test -n "$target_alias" &&
1580 test "$program_prefix$program_suffix$program_transform_name" = \
1581 NONENONEs,x,x, &&
1582 program_prefix=${target_alias}-
1583ac_ext=c
1584ac_cpp='$CPP $CPPFLAGS'
1585ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1586ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1587ac_compiler_gnu=$ac_cv_c_compiler_gnu
1588if test -n "$ac_tool_prefix"; then
1589 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1590set dummy ${ac_tool_prefix}gcc; ac_word=$2
1591echo "$as_me:$LINENO: checking for $ac_word" >&5
1592echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1593if test "${ac_cv_prog_CC+set}" = set; then
1594 echo $ECHO_N "(cached) $ECHO_C" >&6
1595else
1596 if test -n "$CC"; then
1597 ac_cv_prog_CC="$CC" # Let the user override the test.
1598else
1599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1600for as_dir in $PATH
1601do
1602 IFS=$as_save_IFS
1603 test -z "$as_dir" && as_dir=.
1604 for ac_exec_ext in '' $ac_executable_extensions; do
1605 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1606 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1608 break 2
1609 fi
1610done
1611done
1612
1613fi
1614fi
1615CC=$ac_cv_prog_CC
1616if test -n "$CC"; then
1617 echo "$as_me:$LINENO: result: $CC" >&5
1618echo "${ECHO_T}$CC" >&6
1619else
1620 echo "$as_me:$LINENO: result: no" >&5
1621echo "${ECHO_T}no" >&6
1622fi
1623
1624fi
1625if test -z "$ac_cv_prog_CC"; then
1626 ac_ct_CC=$CC
1627 # Extract the first word of "gcc", so it can be a program name with args.
1628set dummy gcc; ac_word=$2
1629echo "$as_me:$LINENO: checking for $ac_word" >&5
1630echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1631if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1632 echo $ECHO_N "(cached) $ECHO_C" >&6
1633else
1634 if test -n "$ac_ct_CC"; then
1635 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1636else
1637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1638for as_dir in $PATH
1639do
1640 IFS=$as_save_IFS
1641 test -z "$as_dir" && as_dir=.
1642 for ac_exec_ext in '' $ac_executable_extensions; do
1643 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1644 ac_cv_prog_ac_ct_CC="gcc"
1645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1646 break 2
1647 fi
1648done
1649done
1650
1651fi
1652fi
1653ac_ct_CC=$ac_cv_prog_ac_ct_CC
1654if test -n "$ac_ct_CC"; then
1655 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1656echo "${ECHO_T}$ac_ct_CC" >&6
1657else
1658 echo "$as_me:$LINENO: result: no" >&5
1659echo "${ECHO_T}no" >&6
1660fi
1661
1662 CC=$ac_ct_CC
1663else
1664 CC="$ac_cv_prog_CC"
1665fi
1666
1667if test -z "$CC"; then
1668 if test -n "$ac_tool_prefix"; then
1669 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1670set dummy ${ac_tool_prefix}cc; ac_word=$2
1671echo "$as_me:$LINENO: checking for $ac_word" >&5
1672echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1673if test "${ac_cv_prog_CC+set}" = set; then
1674 echo $ECHO_N "(cached) $ECHO_C" >&6
1675else
1676 if test -n "$CC"; then
1677 ac_cv_prog_CC="$CC" # Let the user override the test.
1678else
1679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1680for as_dir in $PATH
1681do
1682 IFS=$as_save_IFS
1683 test -z "$as_dir" && as_dir=.
1684 for ac_exec_ext in '' $ac_executable_extensions; do
1685 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1686 ac_cv_prog_CC="${ac_tool_prefix}cc"
1687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1688 break 2
1689 fi
1690done
1691done
1692
1693fi
1694fi
1695CC=$ac_cv_prog_CC
1696if test -n "$CC"; then
1697 echo "$as_me:$LINENO: result: $CC" >&5
1698echo "${ECHO_T}$CC" >&6
1699else
1700 echo "$as_me:$LINENO: result: no" >&5
1701echo "${ECHO_T}no" >&6
1702fi
1703
1704fi
1705if test -z "$ac_cv_prog_CC"; then
1706 ac_ct_CC=$CC
1707 # Extract the first word of "cc", so it can be a program name with args.
1708set dummy cc; ac_word=$2
1709echo "$as_me:$LINENO: checking for $ac_word" >&5
1710echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1711if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1712 echo $ECHO_N "(cached) $ECHO_C" >&6
1713else
1714 if test -n "$ac_ct_CC"; then
1715 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1716else
1717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1718for as_dir in $PATH
1719do
1720 IFS=$as_save_IFS
1721 test -z "$as_dir" && as_dir=.
1722 for ac_exec_ext in '' $ac_executable_extensions; do
1723 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1724 ac_cv_prog_ac_ct_CC="cc"
1725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1726 break 2
1727 fi
1728done
1729done
1730
1731fi
1732fi
1733ac_ct_CC=$ac_cv_prog_ac_ct_CC
1734if test -n "$ac_ct_CC"; then
1735 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1736echo "${ECHO_T}$ac_ct_CC" >&6
1737else
1738 echo "$as_me:$LINENO: result: no" >&5
1739echo "${ECHO_T}no" >&6
1740fi
1741
1742 CC=$ac_ct_CC
1743else
1744 CC="$ac_cv_prog_CC"
1745fi
1746
1747fi
1748if test -z "$CC"; then
1749 # Extract the first word of "cc", so it can be a program name with args.
1750set dummy cc; ac_word=$2
1751echo "$as_me:$LINENO: checking for $ac_word" >&5
1752echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1753if test "${ac_cv_prog_CC+set}" = set; then
1754 echo $ECHO_N "(cached) $ECHO_C" >&6
1755else
1756 if test -n "$CC"; then
1757 ac_cv_prog_CC="$CC" # Let the user override the test.
1758else
1759 ac_prog_rejected=no
1760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1761for as_dir in $PATH
1762do
1763 IFS=$as_save_IFS
1764 test -z "$as_dir" && as_dir=.
1765 for ac_exec_ext in '' $ac_executable_extensions; do
1766 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1767 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1768 ac_prog_rejected=yes
1769 continue
1770 fi
1771 ac_cv_prog_CC="cc"
1772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1773 break 2
1774 fi
1775done
1776done
1777
1778if test $ac_prog_rejected = yes; then
1779 # We found a bogon in the path, so make sure we never use it.
1780 set dummy $ac_cv_prog_CC
1781 shift
1782 if test $# != 0; then
1783 # We chose a different compiler from the bogus one.
1784 # However, it has the same basename, so the bogon will be chosen
1785 # first if we set CC to just the basename; use the full file name.
1786 shift
1787 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1788 fi
1789fi
1790fi
1791fi
1792CC=$ac_cv_prog_CC
1793if test -n "$CC"; then
1794 echo "$as_me:$LINENO: result: $CC" >&5
1795echo "${ECHO_T}$CC" >&6
1796else
1797 echo "$as_me:$LINENO: result: no" >&5
1798echo "${ECHO_T}no" >&6
1799fi
1800
1801fi
1802if test -z "$CC"; then
1803 if test -n "$ac_tool_prefix"; then
1804 for ac_prog in cl
1805 do
1806 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1807set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1808echo "$as_me:$LINENO: checking for $ac_word" >&5
1809echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1810if test "${ac_cv_prog_CC+set}" = set; then
1811 echo $ECHO_N "(cached) $ECHO_C" >&6
1812else
1813 if test -n "$CC"; then
1814 ac_cv_prog_CC="$CC" # Let the user override the test.
1815else
1816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1817for as_dir in $PATH
1818do
1819 IFS=$as_save_IFS
1820 test -z "$as_dir" && as_dir=.
1821 for ac_exec_ext in '' $ac_executable_extensions; do
1822 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1823 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1825 break 2
1826 fi
1827done
1828done
1829
1830fi
1831fi
1832CC=$ac_cv_prog_CC
1833if test -n "$CC"; then
1834 echo "$as_me:$LINENO: result: $CC" >&5
1835echo "${ECHO_T}$CC" >&6
1836else
1837 echo "$as_me:$LINENO: result: no" >&5
1838echo "${ECHO_T}no" >&6
1839fi
1840
1841 test -n "$CC" && break
1842 done
1843fi
1844if test -z "$CC"; then
1845 ac_ct_CC=$CC
1846 for ac_prog in cl
1847do
1848 # Extract the first word of "$ac_prog", so it can be a program name with args.
1849set dummy $ac_prog; ac_word=$2
1850echo "$as_me:$LINENO: checking for $ac_word" >&5
1851echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1852if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1853 echo $ECHO_N "(cached) $ECHO_C" >&6
1854else
1855 if test -n "$ac_ct_CC"; then
1856 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1857else
1858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1859for as_dir in $PATH
1860do
1861 IFS=$as_save_IFS
1862 test -z "$as_dir" && as_dir=.
1863 for ac_exec_ext in '' $ac_executable_extensions; do
1864 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1865 ac_cv_prog_ac_ct_CC="$ac_prog"
1866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1867 break 2
1868 fi
1869done
1870done
1871
1872fi
1873fi
1874ac_ct_CC=$ac_cv_prog_ac_ct_CC
1875if test -n "$ac_ct_CC"; then
1876 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1877echo "${ECHO_T}$ac_ct_CC" >&6
1878else
1879 echo "$as_me:$LINENO: result: no" >&5
1880echo "${ECHO_T}no" >&6
1881fi
1882
1883 test -n "$ac_ct_CC" && break
1884done
1885
1886 CC=$ac_ct_CC
1887fi
1888
1889fi
1890
1891
1892test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1893See \`config.log' for more details." >&5
1894echo "$as_me: error: no acceptable C compiler found in \$PATH
1895See \`config.log' for more details." >&2;}
1896 { (exit 1); exit 1; }; }
1897
1898# Provide some information about the compiler.
1899echo "$as_me:$LINENO:" \
1900 "checking for C compiler version" >&5
1901ac_compiler=`set X $ac_compile; echo $2`
1902{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1903 (eval $ac_compiler --version </dev/null >&5) 2>&5
1904 ac_status=$?
1905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1906 (exit $ac_status); }
1907{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1908 (eval $ac_compiler -v </dev/null >&5) 2>&5
1909 ac_status=$?
1910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1911 (exit $ac_status); }
1912{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1913 (eval $ac_compiler -V </dev/null >&5) 2>&5
1914 ac_status=$?
1915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1916 (exit $ac_status); }
1917
1918cat >conftest.$ac_ext <<_ACEOF
1919/* confdefs.h. */
1920_ACEOF
1921cat confdefs.h >>conftest.$ac_ext
1922cat >>conftest.$ac_ext <<_ACEOF
1923/* end confdefs.h. */
1924
1925int
1926main ()
1927{
1928
1929 ;
1930 return 0;
1931}
1932_ACEOF
1933ac_clean_files_save=$ac_clean_files
1934ac_clean_files="$ac_clean_files a.out a.exe b.out"
1935# Try to create an executable without -o first, disregard a.out.
1936# It will help us diagnose broken compilers, and finding out an intuition
1937# of exeext.
1938echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1939echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1940ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1941if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1942 (eval $ac_link_default) 2>&5
1943 ac_status=$?
1944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1945 (exit $ac_status); }; then
1946 # Find the output, starting from the most likely. This scheme is
1947# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1948# resort.
1949
1950# Be careful to initialize this variable, since it used to be cached.
1951# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1952ac_cv_exeext=
1953# b.out is created by i960 compilers.
1954for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1955do
1956 test -f "$ac_file" || continue
1957 case $ac_file in
1958 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1959 ;;
1960 conftest.$ac_ext )
1961 # This is the source file.
1962 ;;
1963 [ab].out )
1964 # We found the default executable, but exeext='' is most
1965 # certainly right.
1966 break;;
1967 *.* )
1968 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1969 # FIXME: I believe we export ac_cv_exeext for Libtool,
1970 # but it would be cool to find out if it's true. Does anybody
1971 # maintain Libtool? --akim.
1972 export ac_cv_exeext
1973 break;;
1974 * )
1975 break;;
1976 esac
1977done
1978else
1979 echo "$as_me: failed program was:" >&5
1980sed 's/^/| /' conftest.$ac_ext >&5
1981
1982{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1983See \`config.log' for more details." >&5
1984echo "$as_me: error: C compiler cannot create executables
1985See \`config.log' for more details." >&2;}
1986 { (exit 77); exit 77; }; }
1987fi
1988
1989ac_exeext=$ac_cv_exeext
1990echo "$as_me:$LINENO: result: $ac_file" >&5
1991echo "${ECHO_T}$ac_file" >&6
1992
1993# Check the compiler produces executables we can run. If not, either
1994# the compiler is broken, or we cross compile.
1995echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1996echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1997# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1998# If not cross compiling, check that we can run a simple program.
1999if test "$cross_compiling" != yes; then
2000 if { ac_try='./$ac_file'
2001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2002 (eval $ac_try) 2>&5
2003 ac_status=$?
2004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2005 (exit $ac_status); }; }; then
2006 cross_compiling=no
2007 else
2008 if test "$cross_compiling" = maybe; then
2009 cross_compiling=yes
2010 else
2011 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2012If you meant to cross compile, use \`--host'.
2013See \`config.log' for more details." >&5
2014echo "$as_me: error: cannot run C compiled programs.
2015If you meant to cross compile, use \`--host'.
2016See \`config.log' for more details." >&2;}
2017 { (exit 1); exit 1; }; }
2018 fi
2019 fi
2020fi
2021echo "$as_me:$LINENO: result: yes" >&5
2022echo "${ECHO_T}yes" >&6
2023
2024rm -f a.out a.exe conftest$ac_cv_exeext b.out
2025ac_clean_files=$ac_clean_files_save
2026# Check the compiler produces executables we can run. If not, either
2027# the compiler is broken, or we cross compile.
2028echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2029echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2030echo "$as_me:$LINENO: result: $cross_compiling" >&5
2031echo "${ECHO_T}$cross_compiling" >&6
2032
2033echo "$as_me:$LINENO: checking for suffix of executables" >&5
2034echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2035if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2036 (eval $ac_link) 2>&5
2037 ac_status=$?
2038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2039 (exit $ac_status); }; then
2040 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2041# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2042# work properly (i.e., refer to `conftest.exe'), while it won't with
2043# `rm'.
2044for ac_file in conftest.exe conftest conftest.*; do
2045 test -f "$ac_file" || continue
2046 case $ac_file in
2047 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2048 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2049 export ac_cv_exeext
2050 break;;
2051 * ) break;;
2052 esac
2053done
2054else
2055 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2056See \`config.log' for more details." >&5
2057echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2058See \`config.log' for more details." >&2;}
2059 { (exit 1); exit 1; }; }
2060fi
2061
2062rm -f conftest$ac_cv_exeext
2063echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2064echo "${ECHO_T}$ac_cv_exeext" >&6
2065
2066rm -f conftest.$ac_ext
2067EXEEXT=$ac_cv_exeext
2068ac_exeext=$EXEEXT
2069echo "$as_me:$LINENO: checking for suffix of object files" >&5
2070echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2071if test "${ac_cv_objext+set}" = set; then
2072 echo $ECHO_N "(cached) $ECHO_C" >&6
2073else
2074 cat >conftest.$ac_ext <<_ACEOF
2075/* confdefs.h. */
2076_ACEOF
2077cat confdefs.h >>conftest.$ac_ext
2078cat >>conftest.$ac_ext <<_ACEOF
2079/* end confdefs.h. */
2080
2081int
2082main ()
2083{
2084
2085 ;
2086 return 0;
2087}
2088_ACEOF
2089rm -f conftest.o conftest.obj
2090if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2091 (eval $ac_compile) 2>&5
2092 ac_status=$?
2093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2094 (exit $ac_status); }; then
2095 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2096 case $ac_file in
2097 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2098 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2099 break;;
2100 esac
2101done
2102else
2103 echo "$as_me: failed program was:" >&5
2104sed 's/^/| /' conftest.$ac_ext >&5
2105
2106{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2107See \`config.log' for more details." >&5
2108echo "$as_me: error: cannot compute suffix of object files: cannot compile
2109See \`config.log' for more details." >&2;}
2110 { (exit 1); exit 1; }; }
2111fi
2112
2113rm -f conftest.$ac_cv_objext conftest.$ac_ext
2114fi
2115echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2116echo "${ECHO_T}$ac_cv_objext" >&6
2117OBJEXT=$ac_cv_objext
2118ac_objext=$OBJEXT
2119echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2120echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2121if test "${ac_cv_c_compiler_gnu+set}" = set; then
2122 echo $ECHO_N "(cached) $ECHO_C" >&6
2123else
2124 cat >conftest.$ac_ext <<_ACEOF
2125/* confdefs.h. */
2126_ACEOF
2127cat confdefs.h >>conftest.$ac_ext
2128cat >>conftest.$ac_ext <<_ACEOF
2129/* end confdefs.h. */
2130
2131int
2132main ()
2133{
2134#ifndef __GNUC__
2135 choke me
2136#endif
2137
2138 ;
2139 return 0;
2140}
2141_ACEOF
2142rm -f conftest.$ac_objext
2143if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2144 (eval $ac_compile) 2>conftest.er1
2145 ac_status=$?
2146 grep -v '^ *+' conftest.er1 >conftest.err
2147 rm -f conftest.er1
2148 cat conftest.err >&5
2149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150 (exit $ac_status); } &&
2151 { ac_try='test -z "$ac_c_werror_flag"
2152 || test ! -s conftest.err'
2153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2154 (eval $ac_try) 2>&5
2155 ac_status=$?
2156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157 (exit $ac_status); }; } &&
2158 { ac_try='test -s conftest.$ac_objext'
2159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2160 (eval $ac_try) 2>&5
2161 ac_status=$?
2162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163 (exit $ac_status); }; }; then
2164 ac_compiler_gnu=yes
2165else
2166 echo "$as_me: failed program was:" >&5
2167sed 's/^/| /' conftest.$ac_ext >&5
2168
2169ac_compiler_gnu=no
2170fi
2171rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2172ac_cv_c_compiler_gnu=$ac_compiler_gnu
2173
2174fi
2175echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2176echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2177GCC=`test $ac_compiler_gnu = yes && echo yes`
2178ac_test_CFLAGS=${CFLAGS+set}
2179ac_save_CFLAGS=$CFLAGS
2180CFLAGS="-g"
2181echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2182echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2183if test "${ac_cv_prog_cc_g+set}" = set; then
2184 echo $ECHO_N "(cached) $ECHO_C" >&6
2185else
2186 cat >conftest.$ac_ext <<_ACEOF
2187/* confdefs.h. */
2188_ACEOF
2189cat confdefs.h >>conftest.$ac_ext
2190cat >>conftest.$ac_ext <<_ACEOF
2191/* end confdefs.h. */
2192
2193int
2194main ()
2195{
2196
2197 ;
2198 return 0;
2199}
2200_ACEOF
2201rm -f conftest.$ac_objext
2202if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2203 (eval $ac_compile) 2>conftest.er1
2204 ac_status=$?
2205 grep -v '^ *+' conftest.er1 >conftest.err
2206 rm -f conftest.er1
2207 cat conftest.err >&5
2208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209 (exit $ac_status); } &&
2210 { ac_try='test -z "$ac_c_werror_flag"
2211 || test ! -s conftest.err'
2212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2213 (eval $ac_try) 2>&5
2214 ac_status=$?
2215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216 (exit $ac_status); }; } &&
2217 { ac_try='test -s conftest.$ac_objext'
2218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2219 (eval $ac_try) 2>&5
2220 ac_status=$?
2221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2222 (exit $ac_status); }; }; then
2223 ac_cv_prog_cc_g=yes
2224else
2225 echo "$as_me: failed program was:" >&5
2226sed 's/^/| /' conftest.$ac_ext >&5
2227
2228ac_cv_prog_cc_g=no
2229fi
2230rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2231fi
2232echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2233echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2234if test "$ac_test_CFLAGS" = set; then
2235 CFLAGS=$ac_save_CFLAGS
2236elif test $ac_cv_prog_cc_g = yes; then
2237 if test "$GCC" = yes; then
2238 CFLAGS="-g -O2"
2239 else
2240 CFLAGS="-g"
2241 fi
2242else
2243 if test "$GCC" = yes; then
2244 CFLAGS="-O2"
2245 else
2246 CFLAGS=
2247 fi
2248fi
2249echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2250echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2251if test "${ac_cv_prog_cc_stdc+set}" = set; then
2252 echo $ECHO_N "(cached) $ECHO_C" >&6
2253else
2254 ac_cv_prog_cc_stdc=no
2255ac_save_CC=$CC
2256cat >conftest.$ac_ext <<_ACEOF
2257/* confdefs.h. */
2258_ACEOF
2259cat confdefs.h >>conftest.$ac_ext
2260cat >>conftest.$ac_ext <<_ACEOF
2261/* end confdefs.h. */
2262#include <stdarg.h>
2263#include <stdio.h>
2264#include <sys/types.h>
2265#include <sys/stat.h>
2266/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2267struct buf { int x; };
2268FILE * (*rcsopen) (struct buf *, struct stat *, int);
2269static char *e (p, i)
2270 char **p;
2271 int i;
2272{
2273 return p[i];
2274}
2275static char *f (char * (*g) (char **, int), char **p, ...)
2276{
2277 char *s;
2278 va_list v;
2279 va_start (v,p);
2280 s = g (p, va_arg (v,int));
2281 va_end (v);
2282 return s;
2283}
2284
2285/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2286 function prototypes and stuff, but not '\xHH' hex character constants.
2287 These don't provoke an error unfortunately, instead are silently treated
2288 as 'x'. The following induces an error, until -std1 is added to get
2289 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2290 array size at least. It's necessary to write '\x00'==0 to get something
2291 that's true only with -std1. */
2292int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2293
2294int test (int i, double x);
2295struct s1 {int (*f) (int a);};
2296struct s2 {int (*f) (double a);};
2297int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2298int argc;
2299char **argv;
2300int
2301main ()
2302{
2303return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2304 ;
2305 return 0;
2306}
2307_ACEOF
2308# Don't try gcc -ansi; that turns off useful extensions and
2309# breaks some systems' header files.
2310# AIX -qlanglvl=ansi
2311# Ultrix and OSF/1 -std1
2312# HP-UX 10.20 and later -Ae
2313# HP-UX older versions -Aa -D_HPUX_SOURCE
2314# SVR4 -Xc -D__EXTENSIONS__
2315for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2316do
2317 CC="$ac_save_CC $ac_arg"
2318 rm -f conftest.$ac_objext
2319if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2320 (eval $ac_compile) 2>conftest.er1
2321 ac_status=$?
2322 grep -v '^ *+' conftest.er1 >conftest.err
2323 rm -f conftest.er1
2324 cat conftest.err >&5
2325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326 (exit $ac_status); } &&
2327 { ac_try='test -z "$ac_c_werror_flag"
2328 || test ! -s conftest.err'
2329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2330 (eval $ac_try) 2>&5
2331 ac_status=$?
2332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333 (exit $ac_status); }; } &&
2334 { ac_try='test -s conftest.$ac_objext'
2335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2336 (eval $ac_try) 2>&5
2337 ac_status=$?
2338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339 (exit $ac_status); }; }; then
2340 ac_cv_prog_cc_stdc=$ac_arg
2341break
2342else
2343 echo "$as_me: failed program was:" >&5
2344sed 's/^/| /' conftest.$ac_ext >&5
2345
2346fi
2347rm -f conftest.err conftest.$ac_objext
2348done
2349rm -f conftest.$ac_ext conftest.$ac_objext
2350CC=$ac_save_CC
2351
2352fi
2353
2354case "x$ac_cv_prog_cc_stdc" in
2355 x|xno)
2356 echo "$as_me:$LINENO: result: none needed" >&5
2357echo "${ECHO_T}none needed" >&6 ;;
2358 *)
2359 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2360echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2361 CC="$CC $ac_cv_prog_cc_stdc" ;;
2362esac
2363
2364# Some people use a C++ compiler to compile C. Since we use `exit',
2365# in C++ we need to declare it. In case someone uses the same compiler
2366# for both compiling C and C++ we need to have the C++ compiler decide
2367# the declaration of exit, since it's the most demanding environment.
2368cat >conftest.$ac_ext <<_ACEOF
2369#ifndef __cplusplus
2370 choke me
2371#endif
2372_ACEOF
2373rm -f conftest.$ac_objext
2374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2375 (eval $ac_compile) 2>conftest.er1
2376 ac_status=$?
2377 grep -v '^ *+' conftest.er1 >conftest.err
2378 rm -f conftest.er1
2379 cat conftest.err >&5
2380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381 (exit $ac_status); } &&
2382 { ac_try='test -z "$ac_c_werror_flag"
2383 || test ! -s conftest.err'
2384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2385 (eval $ac_try) 2>&5
2386 ac_status=$?
2387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388 (exit $ac_status); }; } &&
2389 { ac_try='test -s conftest.$ac_objext'
2390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2391 (eval $ac_try) 2>&5
2392 ac_status=$?
2393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394 (exit $ac_status); }; }; then
2395 for ac_declaration in \
2396 '' \
2397 'extern "C" void std::exit (int) throw (); using std::exit;' \
2398 'extern "C" void std::exit (int); using std::exit;' \
2399 'extern "C" void exit (int) throw ();' \
2400 'extern "C" void exit (int);' \
2401 'void exit (int);'
2402do
2403 cat >conftest.$ac_ext <<_ACEOF
2404/* confdefs.h. */
2405_ACEOF
2406cat confdefs.h >>conftest.$ac_ext
2407cat >>conftest.$ac_ext <<_ACEOF
2408/* end confdefs.h. */
2409$ac_declaration
2410#include <stdlib.h>
2411int
2412main ()
2413{
2414exit (42);
2415 ;
2416 return 0;
2417}
2418_ACEOF
2419rm -f conftest.$ac_objext
2420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2421 (eval $ac_compile) 2>conftest.er1
2422 ac_status=$?
2423 grep -v '^ *+' conftest.er1 >conftest.err
2424 rm -f conftest.er1
2425 cat conftest.err >&5
2426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427 (exit $ac_status); } &&
2428 { ac_try='test -z "$ac_c_werror_flag"
2429 || test ! -s conftest.err'
2430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2431 (eval $ac_try) 2>&5
2432 ac_status=$?
2433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434 (exit $ac_status); }; } &&
2435 { ac_try='test -s conftest.$ac_objext'
2436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2437 (eval $ac_try) 2>&5
2438 ac_status=$?
2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440 (exit $ac_status); }; }; then
2441 :
2442else
2443 echo "$as_me: failed program was:" >&5
2444sed 's/^/| /' conftest.$ac_ext >&5
2445
2446continue
2447fi
2448rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2449 cat >conftest.$ac_ext <<_ACEOF
2450/* confdefs.h. */
2451_ACEOF
2452cat confdefs.h >>conftest.$ac_ext
2453cat >>conftest.$ac_ext <<_ACEOF
2454/* end confdefs.h. */
2455$ac_declaration
2456int
2457main ()
2458{
2459exit (42);
2460 ;
2461 return 0;
2462}
2463_ACEOF
2464rm -f conftest.$ac_objext
2465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2466 (eval $ac_compile) 2>conftest.er1
2467 ac_status=$?
2468 grep -v '^ *+' conftest.er1 >conftest.err
2469 rm -f conftest.er1
2470 cat conftest.err >&5
2471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472 (exit $ac_status); } &&
2473 { ac_try='test -z "$ac_c_werror_flag"
2474 || test ! -s conftest.err'
2475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2476 (eval $ac_try) 2>&5
2477 ac_status=$?
2478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479 (exit $ac_status); }; } &&
2480 { ac_try='test -s conftest.$ac_objext'
2481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2482 (eval $ac_try) 2>&5
2483 ac_status=$?
2484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485 (exit $ac_status); }; }; then
2486 break
2487else
2488 echo "$as_me: failed program was:" >&5
2489sed 's/^/| /' conftest.$ac_ext >&5
2490
2491fi
2492rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2493done
2494rm -f conftest*
2495if test -n "$ac_declaration"; then
2496 echo '#ifdef __cplusplus' >>confdefs.h
2497 echo $ac_declaration >>confdefs.h
2498 echo '#endif' >>confdefs.h
2499fi
2500
2501else
2502 echo "$as_me: failed program was:" >&5
2503sed 's/^/| /' conftest.$ac_ext >&5
2504
2505fi
2506rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2507ac_ext=c
2508ac_cpp='$CPP $CPPFLAGS'
2509ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2510ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2511ac_compiler_gnu=$ac_cv_c_compiler_gnu
2512
2513
2514echo "$as_me:$LINENO: checking for library containing strerror" >&5
2515echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2516if test "${ac_cv_search_strerror+set}" = set; then
2517 echo $ECHO_N "(cached) $ECHO_C" >&6
2518else
2519 ac_func_search_save_LIBS=$LIBS
2520ac_cv_search_strerror=no
2521cat >conftest.$ac_ext <<_ACEOF
2522/* confdefs.h. */
2523_ACEOF
2524cat confdefs.h >>conftest.$ac_ext
2525cat >>conftest.$ac_ext <<_ACEOF
2526/* end confdefs.h. */
2527
2528/* Override any gcc2 internal prototype to avoid an error. */
2529#ifdef __cplusplus
2530extern "C"
2531#endif
2532/* We use char because int might match the return type of a gcc2
2533 builtin and then its argument prototype would still apply. */
2534char strerror ();
2535int
2536main ()
2537{
2538strerror ();
2539 ;
2540 return 0;
2541}
2542_ACEOF
2543rm -f conftest.$ac_objext conftest$ac_exeext
2544if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2545 (eval $ac_link) 2>conftest.er1
2546 ac_status=$?
2547 grep -v '^ *+' conftest.er1 >conftest.err
2548 rm -f conftest.er1
2549 cat conftest.err >&5
2550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551 (exit $ac_status); } &&
2552 { ac_try='test -z "$ac_c_werror_flag"
2553 || test ! -s conftest.err'
2554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2555 (eval $ac_try) 2>&5
2556 ac_status=$?
2557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558 (exit $ac_status); }; } &&
2559 { ac_try='test -s conftest$ac_exeext'
2560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2561 (eval $ac_try) 2>&5
2562 ac_status=$?
2563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564 (exit $ac_status); }; }; then
2565 ac_cv_search_strerror="none required"
2566else
2567 echo "$as_me: failed program was:" >&5
2568sed 's/^/| /' conftest.$ac_ext >&5
2569
2570fi
2571rm -f conftest.err conftest.$ac_objext \
2572 conftest$ac_exeext conftest.$ac_ext
2573if test "$ac_cv_search_strerror" = no; then
2574 for ac_lib in cposix; do
2575 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2576 cat >conftest.$ac_ext <<_ACEOF
2577/* confdefs.h. */
2578_ACEOF
2579cat confdefs.h >>conftest.$ac_ext
2580cat >>conftest.$ac_ext <<_ACEOF
2581/* end confdefs.h. */
2582
2583/* Override any gcc2 internal prototype to avoid an error. */
2584#ifdef __cplusplus
2585extern "C"
2586#endif
2587/* We use char because int might match the return type of a gcc2
2588 builtin and then its argument prototype would still apply. */
2589char strerror ();
2590int
2591main ()
2592{
2593strerror ();
2594 ;
2595 return 0;
2596}
2597_ACEOF
2598rm -f conftest.$ac_objext conftest$ac_exeext
2599if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2600 (eval $ac_link) 2>conftest.er1
2601 ac_status=$?
2602 grep -v '^ *+' conftest.er1 >conftest.err
2603 rm -f conftest.er1
2604 cat conftest.err >&5
2605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606 (exit $ac_status); } &&
2607 { ac_try='test -z "$ac_c_werror_flag"
2608 || test ! -s conftest.err'
2609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2610 (eval $ac_try) 2>&5
2611 ac_status=$?
2612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613 (exit $ac_status); }; } &&
2614 { ac_try='test -s conftest$ac_exeext'
2615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2616 (eval $ac_try) 2>&5
2617 ac_status=$?
2618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619 (exit $ac_status); }; }; then
2620 ac_cv_search_strerror="-l$ac_lib"
2621break
2622else
2623 echo "$as_me: failed program was:" >&5
2624sed 's/^/| /' conftest.$ac_ext >&5
2625
2626fi
2627rm -f conftest.err conftest.$ac_objext \
2628 conftest$ac_exeext conftest.$ac_ext
2629 done
2630fi
2631LIBS=$ac_func_search_save_LIBS
2632fi
2633echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2634echo "${ECHO_T}$ac_cv_search_strerror" >&6
2635if test "$ac_cv_search_strerror" != no; then
2636 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2637
2638fi
2639
2640
2641BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2642am__api_version="1.9"
2643# Find a good install program. We prefer a C program (faster),
2644# so one script is as good as another. But avoid the broken or
2645# incompatible versions:
2646# SysV /etc/install, /usr/sbin/install
2647# SunOS /usr/etc/install
2648# IRIX /sbin/install
2649# AIX /bin/install
2650# AmigaOS /C/install, which installs bootblocks on floppy discs
2651# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2652# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2653# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2654# OS/2's system install, which has a completely different semantic
2655# ./install, which can be erroneously created by make from ./install.sh.
2656echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2657echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2658if test -z "$INSTALL"; then
2659if test "${ac_cv_path_install+set}" = set; then
2660 echo $ECHO_N "(cached) $ECHO_C" >&6
2661else
2662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2663for as_dir in $PATH
2664do
2665 IFS=$as_save_IFS
2666 test -z "$as_dir" && as_dir=.
2667 # Account for people who put trailing slashes in PATH elements.
2668case $as_dir/ in
2669 ./ | .// | /cC/* | \
2670 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2671 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2672 /usr/ucb/* ) ;;
2673 *)
2674 # OSF1 and SCO ODT 3.0 have their own names for install.
2675 # Don't use installbsd from OSF since it installs stuff as root
2676 # by default.
2677 for ac_prog in ginstall scoinst install; do
2678 for ac_exec_ext in '' $ac_executable_extensions; do
2679 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2680 if test $ac_prog = install &&
2681 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2682 # AIX install. It has an incompatible calling convention.
2683 :
2684 elif test $ac_prog = install &&
2685 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2686 # program-specific install script used by HP pwplus--don't use.
2687 :
2688 else
2689 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2690 break 3
2691 fi
2692 fi
2693 done
2694 done
2695 ;;
2696esac
2697done
2698
2699
2700fi
2701 if test "${ac_cv_path_install+set}" = set; then
2702 INSTALL=$ac_cv_path_install
2703 else
2704 # As a last resort, use the slow shell script. We don't cache a
2705 # path for INSTALL within a source directory, because that will
2706 # break other packages using the cache if that directory is
2707 # removed, or if the path is relative.
2708 INSTALL=$ac_install_sh
2709 fi
2710fi
2711echo "$as_me:$LINENO: result: $INSTALL" >&5
2712echo "${ECHO_T}$INSTALL" >&6
2713
2714# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2715# It thinks the first close brace ends the variable substitution.
2716test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2717
2718test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2719
2720test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2721
2722echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2723echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2724# Just in case
2725sleep 1
2726echo timestamp > conftest.file
2727# Do `set' in a subshell so we don't clobber the current shell's
2728# arguments. Must try -L first in case configure is actually a
2729# symlink; some systems play weird games with the mod time of symlinks
2730# (eg FreeBSD returns the mod time of the symlink's containing
2731# directory).
2732if (
2733 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2734 if test "$*" = "X"; then
2735 # -L didn't work.
2736 set X `ls -t $srcdir/configure conftest.file`
2737 fi
2738 rm -f conftest.file
2739 if test "$*" != "X $srcdir/configure conftest.file" \
2740 && test "$*" != "X conftest.file $srcdir/configure"; then
2741
2742 # If neither matched, then we have a broken ls. This can happen
2743 # if, for instance, CONFIG_SHELL is bash and it inherits a
2744 # broken ls alias from the environment. This has actually
2745 # happened. Such a system could not be considered "sane".
2746 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2747alias in your environment" >&5
2748echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2749alias in your environment" >&2;}
2750 { (exit 1); exit 1; }; }
2751 fi
2752
2753 test "$2" = conftest.file
2754 )
2755then
2756 # Ok.
2757 :
2758else
2759 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2760Check your system clock" >&5
2761echo "$as_me: error: newly created file is older than distributed files!
2762Check your system clock" >&2;}
2763 { (exit 1); exit 1; }; }
2764fi
2765echo "$as_me:$LINENO: result: yes" >&5
2766echo "${ECHO_T}yes" >&6
2767test "$program_prefix" != NONE &&
2768 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2769# Use a double $ so make ignores it.
2770test "$program_suffix" != NONE &&
2771 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2772# Double any \ or $. echo might interpret backslashes.
2773# By default was `s,x,x', remove it if useless.
2774cat <<\_ACEOF >conftest.sed
2775s/[\\$]/&&/g;s/;s,x,x,$//
2776_ACEOF
2777program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2778rm conftest.sed
2779
2780# expand $ac_aux_dir to an absolute path
2781am_aux_dir=`cd $ac_aux_dir && pwd`
2782
2783test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2784# Use eval to expand $SHELL
2785if eval "$MISSING --run true"; then
2786 am_missing_run="$MISSING --run "
2787else
2788 am_missing_run=
2789 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2790echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2791fi
2792
2793if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2794 # We used to keeping the `.' as first argument, in order to
2795 # allow $(mkdir_p) to be used without argument. As in
2796 # $(mkdir_p) $(somedir)
2797 # where $(somedir) is conditionally defined. However this is wrong
2798 # for two reasons:
2799 # 1. if the package is installed by a user who cannot write `.'
2800 # make install will fail,
2801 # 2. the above comment should most certainly read
2802 # $(mkdir_p) $(DESTDIR)$(somedir)
2803 # so it does not work when $(somedir) is undefined and
2804 # $(DESTDIR) is not.
2805 # To support the latter case, we have to write
2806 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2807 # so the `.' trick is pointless.
2808 mkdir_p='mkdir -p --'
2809else
2810 # On NextStep and OpenStep, the `mkdir' command does not
2811 # recognize any option. It will interpret all options as
2812 # directories to create, and then abort because `.' already
2813 # exists.
2814 for d in ./-p ./--version;
2815 do
2816 test -d $d && rmdir $d
2817 done
2818 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2819 if test -f "$ac_aux_dir/mkinstalldirs"; then
2820 mkdir_p='$(mkinstalldirs)'
2821 else
2822 mkdir_p='$(install_sh) -d'
2823 fi
2824fi
2825
2826for ac_prog in gawk mawk nawk awk
2827do
2828 # Extract the first word of "$ac_prog", so it can be a program name with args.
2829set dummy $ac_prog; ac_word=$2
2830echo "$as_me:$LINENO: checking for $ac_word" >&5
2831echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2832if test "${ac_cv_prog_AWK+set}" = set; then
2833 echo $ECHO_N "(cached) $ECHO_C" >&6
2834else
2835 if test -n "$AWK"; then
2836 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2837else
2838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2839for as_dir in $PATH
2840do
2841 IFS=$as_save_IFS
2842 test -z "$as_dir" && as_dir=.
2843 for ac_exec_ext in '' $ac_executable_extensions; do
2844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2845 ac_cv_prog_AWK="$ac_prog"
2846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2847 break 2
2848 fi
2849done
2850done
2851
2852fi
2853fi
2854AWK=$ac_cv_prog_AWK
2855if test -n "$AWK"; then
2856 echo "$as_me:$LINENO: result: $AWK" >&5
2857echo "${ECHO_T}$AWK" >&6
2858else
2859 echo "$as_me:$LINENO: result: no" >&5
2860echo "${ECHO_T}no" >&6
2861fi
2862
2863 test -n "$AWK" && break
2864done
2865
2866echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2867echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2868set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2869if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2870 echo $ECHO_N "(cached) $ECHO_C" >&6
2871else
2872 cat >conftest.make <<\_ACEOF
2873all:
2874 @echo 'ac_maketemp="$(MAKE)"'
2875_ACEOF
2876# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2877eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2878if test -n "$ac_maketemp"; then
2879 eval ac_cv_prog_make_${ac_make}_set=yes
2880else
2881 eval ac_cv_prog_make_${ac_make}_set=no
2882fi
2883rm -f conftest.make
2884fi
2885if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2886 echo "$as_me:$LINENO: result: yes" >&5
2887echo "${ECHO_T}yes" >&6
2888 SET_MAKE=
2889else
2890 echo "$as_me:$LINENO: result: no" >&5
2891echo "${ECHO_T}no" >&6
2892 SET_MAKE="MAKE=${MAKE-make}"
2893fi
2894
2895rm -rf .tst 2>/dev/null
2896mkdir .tst 2>/dev/null
2897if test -d .tst; then
2898 am__leading_dot=.
2899else
2900 am__leading_dot=_
2901fi
2902rmdir .tst 2>/dev/null
2903
2904DEPDIR="${am__leading_dot}deps"
2905
2906 ac_config_commands="$ac_config_commands depfiles"
2907
2908
2909am_make=${MAKE-make}
2910cat > confinc << 'END'
2911am__doit:
2912 @echo done
2913.PHONY: am__doit
2914END
2915# If we don't find an include directive, just comment out the code.
2916echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2917echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2918am__include="#"
2919am__quote=
2920_am_result=none
2921# First try GNU make style include.
2922echo "include confinc" > confmf
2923# We grep out `Entering directory' and `Leaving directory'
2924# messages which can occur if `w' ends up in MAKEFLAGS.
2925# In particular we don't look at `^make:' because GNU make might
2926# be invoked under some other name (usually "gmake"), in which
2927# case it prints its new name instead of `make'.
2928if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2929 am__include=include
2930 am__quote=
2931 _am_result=GNU
2932fi
2933# Now try BSD make style include.
2934if test "$am__include" = "#"; then
2935 echo '.include "confinc"' > confmf
2936 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2937 am__include=.include
2938 am__quote="\""
2939 _am_result=BSD
2940 fi
2941fi
2942
2943
2944echo "$as_me:$LINENO: result: $_am_result" >&5
2945echo "${ECHO_T}$_am_result" >&6
2946rm -f confinc confmf
2947
2948# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2949if test "${enable_dependency_tracking+set}" = set; then
2950 enableval="$enable_dependency_tracking"
2951
2952fi;
2953if test "x$enable_dependency_tracking" != xno; then
2954 am_depcomp="$ac_aux_dir/depcomp"
2955 AMDEPBACKSLASH='\'
2956fi
2957
2958
2959if test "x$enable_dependency_tracking" != xno; then
2960 AMDEP_TRUE=
2961 AMDEP_FALSE='#'
2962else
2963 AMDEP_TRUE='#'
2964 AMDEP_FALSE=
2965fi
2966
2967
2968
2969# test to see if srcdir already configured
2970if test "`cd $srcdir && pwd`" != "`pwd`" &&
2971 test -f $srcdir/config.status; then
2972 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2973echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2974 { (exit 1); exit 1; }; }
2975fi
2976
2977# test whether we have cygpath
2978if test -z "$CYGPATH_W"; then
2979 if (cygpath --version) >/dev/null 2>/dev/null; then
2980 CYGPATH_W='cygpath -w'
2981 else
2982 CYGPATH_W=echo
2983 fi
2984fi
2985
2986
2987# Define the identity of the package.
2988 PACKAGE=ld
2989 VERSION=${BFD_VERSION}
2990
2991
2992cat >>confdefs.h <<_ACEOF
2993#define PACKAGE "$PACKAGE"
2994_ACEOF
2995
2996
2997cat >>confdefs.h <<_ACEOF
2998#define VERSION "$VERSION"
2999_ACEOF
3000
3001# Some tools Automake needs.
3002
3003ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3004
3005
3006AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3007
3008
3009AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3010
3011
3012AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3013
3014
3015MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3016
3017install_sh=${install_sh-"$am_aux_dir/install-sh"}
3018
3019# Installed binaries are usually stripped using `strip' when the user
3020# run `make install-strip'. However `strip' might not be the right
3021# tool to use in cross-compilation environments, therefore Automake
3022# will honor the `STRIP' environment variable to overrule this program.
3023if test "$cross_compiling" != no; then
3024 if test -n "$ac_tool_prefix"; then
3025 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3026set dummy ${ac_tool_prefix}strip; ac_word=$2
3027echo "$as_me:$LINENO: checking for $ac_word" >&5
3028echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3029if test "${ac_cv_prog_STRIP+set}" = set; then
3030 echo $ECHO_N "(cached) $ECHO_C" >&6
3031else
3032 if test -n "$STRIP"; then
3033 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3034else
3035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3036for as_dir in $PATH
3037do
3038 IFS=$as_save_IFS
3039 test -z "$as_dir" && as_dir=.
3040 for ac_exec_ext in '' $ac_executable_extensions; do
3041 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3042 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3044 break 2
3045 fi
3046done
3047done
3048
3049fi
3050fi
3051STRIP=$ac_cv_prog_STRIP
3052if test -n "$STRIP"; then
3053 echo "$as_me:$LINENO: result: $STRIP" >&5
3054echo "${ECHO_T}$STRIP" >&6
3055else
3056 echo "$as_me:$LINENO: result: no" >&5
3057echo "${ECHO_T}no" >&6
3058fi
3059
3060fi
3061if test -z "$ac_cv_prog_STRIP"; then
3062 ac_ct_STRIP=$STRIP
3063 # Extract the first word of "strip", so it can be a program name with args.
3064set dummy strip; ac_word=$2
3065echo "$as_me:$LINENO: checking for $ac_word" >&5
3066echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3067if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3068 echo $ECHO_N "(cached) $ECHO_C" >&6
3069else
3070 if test -n "$ac_ct_STRIP"; then
3071 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3072else
3073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3074for as_dir in $PATH
3075do
3076 IFS=$as_save_IFS
3077 test -z "$as_dir" && as_dir=.
3078 for ac_exec_ext in '' $ac_executable_extensions; do
3079 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3080 ac_cv_prog_ac_ct_STRIP="strip"
3081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3082 break 2
3083 fi
3084done
3085done
3086
3087 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3088fi
3089fi
3090ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3091if test -n "$ac_ct_STRIP"; then
3092 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3093echo "${ECHO_T}$ac_ct_STRIP" >&6
3094else
3095 echo "$as_me:$LINENO: result: no" >&5
3096echo "${ECHO_T}no" >&6
3097fi
3098
3099 STRIP=$ac_ct_STRIP
3100else
3101 STRIP="$ac_cv_prog_STRIP"
3102fi
3103
3104fi
3105INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3106
3107# We need awk for the "check" target. The system "awk" is bad on
3108# some platforms.
3109# Always define AMTAR for backward compatibility.
3110
3111AMTAR=${AMTAR-"${am_missing_run}tar"}
3112
3113am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3114
3115
3116
3117
3118depcc="$CC" am_compiler_list=
3119
3120echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3121echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3122if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3123 echo $ECHO_N "(cached) $ECHO_C" >&6
3124else
3125 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3126 # We make a subdir and do the tests there. Otherwise we can end up
3127 # making bogus files that we don't know about and never remove. For
3128 # instance it was reported that on HP-UX the gcc test will end up
3129 # making a dummy file named `D' -- because `-MD' means `put the output
3130 # in D'.
3131 mkdir conftest.dir
3132 # Copy depcomp to subdir because otherwise we won't find it if we're
3133 # using a relative directory.
3134 cp "$am_depcomp" conftest.dir
3135 cd conftest.dir
3136 # We will build objects and dependencies in a subdirectory because
3137 # it helps to detect inapplicable dependency modes. For instance
3138 # both Tru64's cc and ICC support -MD to output dependencies as a
3139 # side effect of compilation, but ICC will put the dependencies in
3140 # the current directory while Tru64 will put them in the object
3141 # directory.
3142 mkdir sub
3143
3144 am_cv_CC_dependencies_compiler_type=none
3145 if test "$am_compiler_list" = ""; then
3146 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3147 fi
3148 for depmode in $am_compiler_list; do
3149 # Setup a source with many dependencies, because some compilers
3150 # like to wrap large dependency lists on column 80 (with \), and
3151 # we should not choose a depcomp mode which is confused by this.
3152 #
3153 # We need to recreate these files for each test, as the compiler may
3154 # overwrite some of them when testing with obscure command lines.
3155 # This happens at least with the AIX C compiler.
3156 : > sub/conftest.c
3157 for i in 1 2 3 4 5 6; do
3158 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3159 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3160 # Solaris 8's {/usr,}/bin/sh.
3161 touch sub/conftst$i.h
3162 done
3163 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3164
3165 case $depmode in
3166 nosideeffect)
3167 # after this tag, mechanisms are not by side-effect, so they'll
3168 # only be used when explicitly requested
3169 if test "x$enable_dependency_tracking" = xyes; then
3170 continue
3171 else
3172 break
3173 fi
3174 ;;
3175 none) break ;;
3176 esac
3177 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3178 # mode. It turns out that the SunPro C++ compiler does not properly
3179 # handle `-M -o', and we need to detect this.
3180 if depmode=$depmode \
3181 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3182 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3183 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3184 >/dev/null 2>conftest.err &&
3185 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3186 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3187 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3188 # icc doesn't choke on unknown options, it will just issue warnings
3189 # or remarks (even with -Werror). So we grep stderr for any message
3190 # that says an option was ignored or not supported.
3191 # When given -MP, icc 7.0 and 7.1 complain thusly:
3192 # icc: Command line warning: ignoring option '-M'; no argument required
3193 # The diagnosis changed in icc 8.0:
3194 # icc: Command line remark: option '-MP' not supported
3195 if (grep 'ignoring option' conftest.err ||
3196 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3197 am_cv_CC_dependencies_compiler_type=$depmode
3198 break
3199 fi
3200 fi
3201 done
3202
3203 cd ..
3204 rm -rf conftest.dir
3205else
3206 am_cv_CC_dependencies_compiler_type=none
3207fi
3208
3209fi
3210echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3211echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3212CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3213
3214
3215
3216if
3217 test "x$enable_dependency_tracking" != xno \
3218 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3219 am__fastdepCC_TRUE=
3220 am__fastdepCC_FALSE='#'
3221else
3222 am__fastdepCC_TRUE='#'
3223 am__fastdepCC_FALSE=
3224fi
3225
3226
3227
3228
3229
3230# Check whether --with-lib-path or --without-lib-path was given.
3231if test "${with_lib_path+set}" = set; then
3232 withval="$with_lib_path"
3233 LIB_PATH=$withval
3234fi;
3235# Check whether --enable-targets or --disable-targets was given.
3236if test "${enable_targets+set}" = set; then
3237 enableval="$enable_targets"
3238 case "${enableval}" in
3239 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
3240echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
3241 { (exit 1); exit 1; }; }
3242 ;;
3243 no) enable_targets= ;;
3244 *) enable_targets=$enableval ;;
3245esac
3246fi; # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
3247if test "${enable_64_bit_bfd+set}" = set; then
3248 enableval="$enable_64_bit_bfd"
3249 case "${enableval}" in
3250 yes) want64=true ;;
3251 no) want64=false ;;
3252 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
3253echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
3254 { (exit 1); exit 1; }; } ;;
3255esac
3256else
3257 want64=false
3258fi;
3259
3260# Check whether --with-sysroot or --without-sysroot was given.
3261if test "${with_sysroot+set}" = set; then
3262 withval="$with_sysroot"
3263
3264 case ${with_sysroot} in
3265 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
3266 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3267 esac
3268
3269 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3270 use_sysroot=yes
3271
3272 if test "x$prefix" = xNONE; then
3273 test_prefix=/usr/local
3274 else
3275 test_prefix=$prefix
3276 fi
3277 if test "x$exec_prefix" = xNONE; then
3278 test_exec_prefix=$test_prefix
3279 else
3280 test_exec_prefix=$exec_prefix
3281 fi
3282 case ${TARGET_SYSTEM_ROOT} in
3283 "${test_prefix}"|"${test_prefix}/"*|\
3284 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3285 '${prefix}'|'${prefix}/'*|\
3286 '${exec_prefix}'|'${exec_prefix}/'*)
3287 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3288 TARGET_SYSTEM_ROOT_DEFINE="$t"
3289 ;;
3290 esac
3291
3292else
3293
3294 use_sysroot=no
3295 TARGET_SYSTEM_ROOT=
3296 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
3297
3298fi;
3299
3300
3301
3302
3303
3304GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
3305
3306# Check whether --enable-werror or --disable-werror was given.
3307if test "${enable_werror+set}" = set; then
3308 enableval="$enable_werror"
3309 case "${enableval}" in
3310 yes | y) ERROR_ON_WARNING="yes" ;;
3311 no | n) ERROR_ON_WARNING="no" ;;
3312 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
3313echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
3314 { (exit 1); exit 1; }; } ;;
3315 esac
3316fi;
3317
3318# Enable -Werror by default when using gcc
3319if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
3320 ERROR_ON_WARNING=yes
3321fi
3322
3323NO_WERROR=
3324if test "${ERROR_ON_WARNING}" = yes ; then
3325 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
3326 NO_WERROR="-Wno-error"
3327fi
3328
3329if test "${GCC}" = yes ; then
3330 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
3331fi
3332
3333# Check whether --enable-build-warnings or --disable-build-warnings was given.
3334if test "${enable_build_warnings+set}" = set; then
3335 enableval="$enable_build_warnings"
3336 case "${enableval}" in
3337 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
3338 no) if test "${GCC}" = yes ; then
3339 WARN_CFLAGS="-w"
3340 fi;;
3341 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
3342 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
3343 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
3344 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
3345 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3346esac
3347fi;
3348
3349if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
3350 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
3351fi
3352
3353
3354
3355
3356
3357 ac_config_headers="$ac_config_headers config.h:config.in"
3358
3359
3360if test -z "$target" ; then
3361 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
3362echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
3363 { (exit 1); exit 1; }; }
3364fi
3365if test -z "$host" ; then
3366 { { echo "$as_me:$LINENO: error: Unrecognized host system type; please check config.sub." >&5
3367echo "$as_me: error: Unrecognized host system type; please check config.sub." >&2;}
3368 { (exit 1); exit 1; }; }
3369fi
3370
3371# host-specific stuff:
3372
3373ac_ext=c
3374ac_cpp='$CPP $CPPFLAGS'
3375ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3376ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3377ac_compiler_gnu=$ac_cv_c_compiler_gnu
3378if test -n "$ac_tool_prefix"; then
3379 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3380set dummy ${ac_tool_prefix}gcc; ac_word=$2
3381echo "$as_me:$LINENO: checking for $ac_word" >&5
3382echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3383if test "${ac_cv_prog_CC+set}" = set; then
3384 echo $ECHO_N "(cached) $ECHO_C" >&6
3385else
3386 if test -n "$CC"; then
3387 ac_cv_prog_CC="$CC" # Let the user override the test.
3388else
3389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3390for as_dir in $PATH
3391do
3392 IFS=$as_save_IFS
3393 test -z "$as_dir" && as_dir=.
3394 for ac_exec_ext in '' $ac_executable_extensions; do
3395 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3396 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3398 break 2
3399 fi
3400done
3401done
3402
3403fi
3404fi
3405CC=$ac_cv_prog_CC
3406if test -n "$CC"; then
3407 echo "$as_me:$LINENO: result: $CC" >&5
3408echo "${ECHO_T}$CC" >&6
3409else
3410 echo "$as_me:$LINENO: result: no" >&5
3411echo "${ECHO_T}no" >&6
3412fi
3413
3414fi
3415if test -z "$ac_cv_prog_CC"; then
3416 ac_ct_CC=$CC
3417 # Extract the first word of "gcc", so it can be a program name with args.
3418set dummy gcc; ac_word=$2
3419echo "$as_me:$LINENO: checking for $ac_word" >&5
3420echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3421if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3422 echo $ECHO_N "(cached) $ECHO_C" >&6
3423else
3424 if test -n "$ac_ct_CC"; then
3425 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3426else
3427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3428for as_dir in $PATH
3429do
3430 IFS=$as_save_IFS
3431 test -z "$as_dir" && as_dir=.
3432 for ac_exec_ext in '' $ac_executable_extensions; do
3433 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3434 ac_cv_prog_ac_ct_CC="gcc"
3435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3436 break 2
3437 fi
3438done
3439done
3440
3441fi
3442fi
3443ac_ct_CC=$ac_cv_prog_ac_ct_CC
3444if test -n "$ac_ct_CC"; then
3445 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3446echo "${ECHO_T}$ac_ct_CC" >&6
3447else
3448 echo "$as_me:$LINENO: result: no" >&5
3449echo "${ECHO_T}no" >&6
3450fi
3451
3452 CC=$ac_ct_CC
3453else
3454 CC="$ac_cv_prog_CC"
3455fi
3456
3457if test -z "$CC"; then
3458 if test -n "$ac_tool_prefix"; then
3459 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3460set dummy ${ac_tool_prefix}cc; ac_word=$2
3461echo "$as_me:$LINENO: checking for $ac_word" >&5
3462echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3463if test "${ac_cv_prog_CC+set}" = set; then
3464 echo $ECHO_N "(cached) $ECHO_C" >&6
3465else
3466 if test -n "$CC"; then
3467 ac_cv_prog_CC="$CC" # Let the user override the test.
3468else
3469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3470for as_dir in $PATH
3471do
3472 IFS=$as_save_IFS
3473 test -z "$as_dir" && as_dir=.
3474 for ac_exec_ext in '' $ac_executable_extensions; do
3475 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3476 ac_cv_prog_CC="${ac_tool_prefix}cc"
3477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3478 break 2
3479 fi
3480done
3481done
3482
3483fi
3484fi
3485CC=$ac_cv_prog_CC
3486if test -n "$CC"; then
3487 echo "$as_me:$LINENO: result: $CC" >&5
3488echo "${ECHO_T}$CC" >&6
3489else
3490 echo "$as_me:$LINENO: result: no" >&5
3491echo "${ECHO_T}no" >&6
3492fi
3493
3494fi
3495if test -z "$ac_cv_prog_CC"; then
3496 ac_ct_CC=$CC
3497 # Extract the first word of "cc", so it can be a program name with args.
3498set dummy cc; ac_word=$2
3499echo "$as_me:$LINENO: checking for $ac_word" >&5
3500echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3501if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3502 echo $ECHO_N "(cached) $ECHO_C" >&6
3503else
3504 if test -n "$ac_ct_CC"; then
3505 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3506else
3507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3508for as_dir in $PATH
3509do
3510 IFS=$as_save_IFS
3511 test -z "$as_dir" && as_dir=.
3512 for ac_exec_ext in '' $ac_executable_extensions; do
3513 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3514 ac_cv_prog_ac_ct_CC="cc"
3515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3516 break 2
3517 fi
3518done
3519done
3520
3521fi
3522fi
3523ac_ct_CC=$ac_cv_prog_ac_ct_CC
3524if test -n "$ac_ct_CC"; then
3525 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3526echo "${ECHO_T}$ac_ct_CC" >&6
3527else
3528 echo "$as_me:$LINENO: result: no" >&5
3529echo "${ECHO_T}no" >&6
3530fi
3531
3532 CC=$ac_ct_CC
3533else
3534 CC="$ac_cv_prog_CC"
3535fi
3536
3537fi
3538if test -z "$CC"; then
3539 # Extract the first word of "cc", so it can be a program name with args.
3540set dummy cc; ac_word=$2
3541echo "$as_me:$LINENO: checking for $ac_word" >&5
3542echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3543if test "${ac_cv_prog_CC+set}" = set; then
3544 echo $ECHO_N "(cached) $ECHO_C" >&6
3545else
3546 if test -n "$CC"; then
3547 ac_cv_prog_CC="$CC" # Let the user override the test.
3548else
3549 ac_prog_rejected=no
3550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3551for as_dir in $PATH
3552do
3553 IFS=$as_save_IFS
3554 test -z "$as_dir" && as_dir=.
3555 for ac_exec_ext in '' $ac_executable_extensions; do
3556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3557 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3558 ac_prog_rejected=yes
3559 continue
3560 fi
3561 ac_cv_prog_CC="cc"
3562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3563 break 2
3564 fi
3565done
3566done
3567
3568if test $ac_prog_rejected = yes; then
3569 # We found a bogon in the path, so make sure we never use it.
3570 set dummy $ac_cv_prog_CC
3571 shift
3572 if test $# != 0; then
3573 # We chose a different compiler from the bogus one.
3574 # However, it has the same basename, so the bogon will be chosen
3575 # first if we set CC to just the basename; use the full file name.
3576 shift
3577 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3578 fi
3579fi
3580fi
3581fi
3582CC=$ac_cv_prog_CC
3583if test -n "$CC"; then
3584 echo "$as_me:$LINENO: result: $CC" >&5
3585echo "${ECHO_T}$CC" >&6
3586else
3587 echo "$as_me:$LINENO: result: no" >&5
3588echo "${ECHO_T}no" >&6
3589fi
3590
3591fi
3592if test -z "$CC"; then
3593 if test -n "$ac_tool_prefix"; then
3594 for ac_prog in cl
3595 do
3596 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3597set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3598echo "$as_me:$LINENO: checking for $ac_word" >&5
3599echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3600if test "${ac_cv_prog_CC+set}" = set; then
3601 echo $ECHO_N "(cached) $ECHO_C" >&6
3602else
3603 if test -n "$CC"; then
3604 ac_cv_prog_CC="$CC" # Let the user override the test.
3605else
3606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3607for as_dir in $PATH
3608do
3609 IFS=$as_save_IFS
3610 test -z "$as_dir" && as_dir=.
3611 for ac_exec_ext in '' $ac_executable_extensions; do
3612 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3613 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3615 break 2
3616 fi
3617done
3618done
3619
3620fi
3621fi
3622CC=$ac_cv_prog_CC
3623if test -n "$CC"; then
3624 echo "$as_me:$LINENO: result: $CC" >&5
3625echo "${ECHO_T}$CC" >&6
3626else
3627 echo "$as_me:$LINENO: result: no" >&5
3628echo "${ECHO_T}no" >&6
3629fi
3630
3631 test -n "$CC" && break
3632 done
3633fi
3634if test -z "$CC"; then
3635 ac_ct_CC=$CC
3636 for ac_prog in cl
3637do
3638 # Extract the first word of "$ac_prog", so it can be a program name with args.
3639set dummy $ac_prog; ac_word=$2
3640echo "$as_me:$LINENO: checking for $ac_word" >&5
3641echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3642if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3643 echo $ECHO_N "(cached) $ECHO_C" >&6
3644else
3645 if test -n "$ac_ct_CC"; then
3646 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3647else
3648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3649for as_dir in $PATH
3650do
3651 IFS=$as_save_IFS
3652 test -z "$as_dir" && as_dir=.
3653 for ac_exec_ext in '' $ac_executable_extensions; do
3654 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3655 ac_cv_prog_ac_ct_CC="$ac_prog"
3656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3657 break 2
3658 fi
3659done
3660done
3661
3662fi
3663fi
3664ac_ct_CC=$ac_cv_prog_ac_ct_CC
3665if test -n "$ac_ct_CC"; then
3666 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3667echo "${ECHO_T}$ac_ct_CC" >&6
3668else
3669 echo "$as_me:$LINENO: result: no" >&5
3670echo "${ECHO_T}no" >&6
3671fi
3672
3673 test -n "$ac_ct_CC" && break
3674done
3675
3676 CC=$ac_ct_CC
3677fi
3678
3679fi
3680
3681
3682test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3683See \`config.log' for more details." >&5
3684echo "$as_me: error: no acceptable C compiler found in \$PATH
3685See \`config.log' for more details." >&2;}
3686 { (exit 1); exit 1; }; }
3687
3688# Provide some information about the compiler.
3689echo "$as_me:$LINENO:" \
3690 "checking for C compiler version" >&5
3691ac_compiler=`set X $ac_compile; echo $2`
3692{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3693 (eval $ac_compiler --version </dev/null >&5) 2>&5
3694 ac_status=$?
3695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696 (exit $ac_status); }
3697{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3698 (eval $ac_compiler -v </dev/null >&5) 2>&5
3699 ac_status=$?
3700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3701 (exit $ac_status); }
3702{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3703 (eval $ac_compiler -V </dev/null >&5) 2>&5
3704 ac_status=$?
3705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706 (exit $ac_status); }
3707
3708echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3709echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3710if test "${ac_cv_c_compiler_gnu+set}" = set; then
3711 echo $ECHO_N "(cached) $ECHO_C" >&6
3712else
3713 cat >conftest.$ac_ext <<_ACEOF
3714/* confdefs.h. */
3715_ACEOF
3716cat confdefs.h >>conftest.$ac_ext
3717cat >>conftest.$ac_ext <<_ACEOF
3718/* end confdefs.h. */
3719
3720int
3721main ()
3722{
3723#ifndef __GNUC__
3724 choke me
3725#endif
3726
3727 ;
3728 return 0;
3729}
3730_ACEOF
3731rm -f conftest.$ac_objext
3732if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3733 (eval $ac_compile) 2>conftest.er1
3734 ac_status=$?
3735 grep -v '^ *+' conftest.er1 >conftest.err
3736 rm -f conftest.er1
3737 cat conftest.err >&5
3738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739 (exit $ac_status); } &&
3740 { ac_try='test -z "$ac_c_werror_flag"
3741 || test ! -s conftest.err'
3742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3743 (eval $ac_try) 2>&5
3744 ac_status=$?
3745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3746 (exit $ac_status); }; } &&
3747 { ac_try='test -s conftest.$ac_objext'
3748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3749 (eval $ac_try) 2>&5
3750 ac_status=$?
3751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752 (exit $ac_status); }; }; then
3753 ac_compiler_gnu=yes
3754else
3755 echo "$as_me: failed program was:" >&5
3756sed 's/^/| /' conftest.$ac_ext >&5
3757
3758ac_compiler_gnu=no
3759fi
3760rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3761ac_cv_c_compiler_gnu=$ac_compiler_gnu
3762
3763fi
3764echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3765echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3766GCC=`test $ac_compiler_gnu = yes && echo yes`
3767ac_test_CFLAGS=${CFLAGS+set}
3768ac_save_CFLAGS=$CFLAGS
3769CFLAGS="-g"
3770echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3771echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3772if test "${ac_cv_prog_cc_g+set}" = set; then
3773 echo $ECHO_N "(cached) $ECHO_C" >&6
3774else
3775 cat >conftest.$ac_ext <<_ACEOF
3776/* confdefs.h. */
3777_ACEOF
3778cat confdefs.h >>conftest.$ac_ext
3779cat >>conftest.$ac_ext <<_ACEOF
3780/* end confdefs.h. */
3781
3782int
3783main ()
3784{
3785
3786 ;
3787 return 0;
3788}
3789_ACEOF
3790rm -f conftest.$ac_objext
3791if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3792 (eval $ac_compile) 2>conftest.er1
3793 ac_status=$?
3794 grep -v '^ *+' conftest.er1 >conftest.err
3795 rm -f conftest.er1
3796 cat conftest.err >&5
3797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798 (exit $ac_status); } &&
3799 { ac_try='test -z "$ac_c_werror_flag"
3800 || test ! -s conftest.err'
3801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3802 (eval $ac_try) 2>&5
3803 ac_status=$?
3804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805 (exit $ac_status); }; } &&
3806 { ac_try='test -s conftest.$ac_objext'
3807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3808 (eval $ac_try) 2>&5
3809 ac_status=$?
3810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3811 (exit $ac_status); }; }; then
3812 ac_cv_prog_cc_g=yes
3813else
3814 echo "$as_me: failed program was:" >&5
3815sed 's/^/| /' conftest.$ac_ext >&5
3816
3817ac_cv_prog_cc_g=no
3818fi
3819rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3820fi
3821echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3822echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3823if test "$ac_test_CFLAGS" = set; then
3824 CFLAGS=$ac_save_CFLAGS
3825elif test $ac_cv_prog_cc_g = yes; then
3826 if test "$GCC" = yes; then
3827 CFLAGS="-g -O2"
3828 else
3829 CFLAGS="-g"
3830 fi
3831else
3832 if test "$GCC" = yes; then
3833 CFLAGS="-O2"
3834 else
3835 CFLAGS=
3836 fi
3837fi
3838echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3839echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3840if test "${ac_cv_prog_cc_stdc+set}" = set; then
3841 echo $ECHO_N "(cached) $ECHO_C" >&6
3842else
3843 ac_cv_prog_cc_stdc=no
3844ac_save_CC=$CC
3845cat >conftest.$ac_ext <<_ACEOF
3846/* confdefs.h. */
3847_ACEOF
3848cat confdefs.h >>conftest.$ac_ext
3849cat >>conftest.$ac_ext <<_ACEOF
3850/* end confdefs.h. */
3851#include <stdarg.h>
3852#include <stdio.h>
3853#include <sys/types.h>
3854#include <sys/stat.h>
3855/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3856struct buf { int x; };
3857FILE * (*rcsopen) (struct buf *, struct stat *, int);
3858static char *e (p, i)
3859 char **p;
3860 int i;
3861{
3862 return p[i];
3863}
3864static char *f (char * (*g) (char **, int), char **p, ...)
3865{
3866 char *s;
3867 va_list v;
3868 va_start (v,p);
3869 s = g (p, va_arg (v,int));
3870 va_end (v);
3871 return s;
3872}
3873
3874/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3875 function prototypes and stuff, but not '\xHH' hex character constants.
3876 These don't provoke an error unfortunately, instead are silently treated
3877 as 'x'. The following induces an error, until -std1 is added to get
3878 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3879 array size at least. It's necessary to write '\x00'==0 to get something
3880 that's true only with -std1. */
3881int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3882
3883int test (int i, double x);
3884struct s1 {int (*f) (int a);};
3885struct s2 {int (*f) (double a);};
3886int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3887int argc;
3888char **argv;
3889int
3890main ()
3891{
3892return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3893 ;
3894 return 0;
3895}
3896_ACEOF
3897# Don't try gcc -ansi; that turns off useful extensions and
3898# breaks some systems' header files.
3899# AIX -qlanglvl=ansi
3900# Ultrix and OSF/1 -std1
3901# HP-UX 10.20 and later -Ae
3902# HP-UX older versions -Aa -D_HPUX_SOURCE
3903# SVR4 -Xc -D__EXTENSIONS__
3904for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3905do
3906 CC="$ac_save_CC $ac_arg"
3907 rm -f conftest.$ac_objext
3908if { (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
3929 ac_cv_prog_cc_stdc=$ac_arg
3930break
3931else
3932 echo "$as_me: failed program was:" >&5
3933sed 's/^/| /' conftest.$ac_ext >&5
3934
3935fi
3936rm -f conftest.err conftest.$ac_objext
3937done
3938rm -f conftest.$ac_ext conftest.$ac_objext
3939CC=$ac_save_CC
3940
3941fi
3942
3943case "x$ac_cv_prog_cc_stdc" in
3944 x|xno)
3945 echo "$as_me:$LINENO: result: none needed" >&5
3946echo "${ECHO_T}none needed" >&6 ;;
3947 *)
3948 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3949echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3950 CC="$CC $ac_cv_prog_cc_stdc" ;;
3951esac
3952
3953# Some people use a C++ compiler to compile C. Since we use `exit',
3954# in C++ we need to declare it. In case someone uses the same compiler
3955# for both compiling C and C++ we need to have the C++ compiler decide
3956# the declaration of exit, since it's the most demanding environment.
3957cat >conftest.$ac_ext <<_ACEOF
3958#ifndef __cplusplus
3959 choke me
3960#endif
3961_ACEOF
3962rm -f conftest.$ac_objext
3963if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3964 (eval $ac_compile) 2>conftest.er1
3965 ac_status=$?
3966 grep -v '^ *+' conftest.er1 >conftest.err
3967 rm -f conftest.er1
3968 cat conftest.err >&5
3969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970 (exit $ac_status); } &&
3971 { ac_try='test -z "$ac_c_werror_flag"
3972 || test ! -s conftest.err'
3973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3974 (eval $ac_try) 2>&5
3975 ac_status=$?
3976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977 (exit $ac_status); }; } &&
3978 { ac_try='test -s conftest.$ac_objext'
3979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3980 (eval $ac_try) 2>&5
3981 ac_status=$?
3982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983 (exit $ac_status); }; }; then
3984 for ac_declaration in \
3985 '' \
3986 'extern "C" void std::exit (int) throw (); using std::exit;' \
3987 'extern "C" void std::exit (int); using std::exit;' \
3988 'extern "C" void exit (int) throw ();' \
3989 'extern "C" void exit (int);' \
3990 'void exit (int);'
3991do
3992 cat >conftest.$ac_ext <<_ACEOF
3993/* confdefs.h. */
3994_ACEOF
3995cat confdefs.h >>conftest.$ac_ext
3996cat >>conftest.$ac_ext <<_ACEOF
3997/* end confdefs.h. */
3998$ac_declaration
3999#include <stdlib.h>
4000int
4001main ()
4002{
4003exit (42);
4004 ;
4005 return 0;
4006}
4007_ACEOF
4008rm -f conftest.$ac_objext
4009if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4010 (eval $ac_compile) 2>conftest.er1
4011 ac_status=$?
4012 grep -v '^ *+' conftest.er1 >conftest.err
4013 rm -f conftest.er1
4014 cat conftest.err >&5
4015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016 (exit $ac_status); } &&
4017 { ac_try='test -z "$ac_c_werror_flag"
4018 || test ! -s conftest.err'
4019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4020 (eval $ac_try) 2>&5
4021 ac_status=$?
4022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4023 (exit $ac_status); }; } &&
4024 { ac_try='test -s conftest.$ac_objext'
4025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4026 (eval $ac_try) 2>&5
4027 ac_status=$?
4028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029 (exit $ac_status); }; }; then
4030 :
4031else
4032 echo "$as_me: failed program was:" >&5
4033sed 's/^/| /' conftest.$ac_ext >&5
4034
4035continue
4036fi
4037rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4038 cat >conftest.$ac_ext <<_ACEOF
4039/* confdefs.h. */
4040_ACEOF
4041cat confdefs.h >>conftest.$ac_ext
4042cat >>conftest.$ac_ext <<_ACEOF
4043/* end confdefs.h. */
4044$ac_declaration
4045int
4046main ()
4047{
4048exit (42);
4049 ;
4050 return 0;
4051}
4052_ACEOF
4053rm -f conftest.$ac_objext
4054if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4055 (eval $ac_compile) 2>conftest.er1
4056 ac_status=$?
4057 grep -v '^ *+' conftest.er1 >conftest.err
4058 rm -f conftest.er1
4059 cat conftest.err >&5
4060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061 (exit $ac_status); } &&
4062 { ac_try='test -z "$ac_c_werror_flag"
4063 || test ! -s conftest.err'
4064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4065 (eval $ac_try) 2>&5
4066 ac_status=$?
4067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068 (exit $ac_status); }; } &&
4069 { ac_try='test -s conftest.$ac_objext'
4070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4071 (eval $ac_try) 2>&5
4072 ac_status=$?
4073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074 (exit $ac_status); }; }; then
4075 break
4076else
4077 echo "$as_me: failed program was:" >&5
4078sed 's/^/| /' conftest.$ac_ext >&5
4079
4080fi
4081rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4082done
4083rm -f conftest*
4084if test -n "$ac_declaration"; then
4085 echo '#ifdef __cplusplus' >>confdefs.h
4086 echo $ac_declaration >>confdefs.h
4087 echo '#endif' >>confdefs.h
4088fi
4089
4090else
4091 echo "$as_me: failed program was:" >&5
4092sed 's/^/| /' conftest.$ac_ext >&5
4093
4094fi
4095rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4096ac_ext=c
4097ac_cpp='$CPP $CPPFLAGS'
4098ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4099ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4100ac_compiler_gnu=$ac_cv_c_compiler_gnu
4101
4102
4103cat >>confdefs.h <<\_ACEOF
4104#define _GNU_SOURCE 1
4105_ACEOF
4106
4107
4108# Find a good install program. We prefer a C program (faster),
4109# so one script is as good as another. But avoid the broken or
4110# incompatible versions:
4111# SysV /etc/install, /usr/sbin/install
4112# SunOS /usr/etc/install
4113# IRIX /sbin/install
4114# AIX /bin/install
4115# AmigaOS /C/install, which installs bootblocks on floppy discs
4116# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4117# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4118# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4119# OS/2's system install, which has a completely different semantic
4120# ./install, which can be erroneously created by make from ./install.sh.
4121echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4122echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4123if test -z "$INSTALL"; then
4124if test "${ac_cv_path_install+set}" = set; then
4125 echo $ECHO_N "(cached) $ECHO_C" >&6
4126else
4127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4128for as_dir in $PATH
4129do
4130 IFS=$as_save_IFS
4131 test -z "$as_dir" && as_dir=.
4132 # Account for people who put trailing slashes in PATH elements.
4133case $as_dir/ in
4134 ./ | .// | /cC/* | \
4135 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4136 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4137 /usr/ucb/* ) ;;
4138 *)
4139 # OSF1 and SCO ODT 3.0 have their own names for install.
4140 # Don't use installbsd from OSF since it installs stuff as root
4141 # by default.
4142 for ac_prog in ginstall scoinst install; do
4143 for ac_exec_ext in '' $ac_executable_extensions; do
4144 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4145 if test $ac_prog = install &&
4146 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4147 # AIX install. It has an incompatible calling convention.
4148 :
4149 elif test $ac_prog = install &&
4150 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4151 # program-specific install script used by HP pwplus--don't use.
4152 :
4153 else
4154 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4155 break 3
4156 fi
4157 fi
4158 done
4159 done
4160 ;;
4161esac
4162done
4163
4164
4165fi
4166 if test "${ac_cv_path_install+set}" = set; then
4167 INSTALL=$ac_cv_path_install
4168 else
4169 # As a last resort, use the slow shell script. We don't cache a
4170 # path for INSTALL within a source directory, because that will
4171 # break other packages using the cache if that directory is
4172 # removed, or if the path is relative.
4173 INSTALL=$ac_install_sh
4174 fi
4175fi
4176echo "$as_me:$LINENO: result: $INSTALL" >&5
4177echo "${ECHO_T}$INSTALL" >&6
4178
4179# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4180# It thinks the first close brace ends the variable substitution.
4181test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4182
4183test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4184
4185test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4186
4187
4188
4189
4190macro_version='2.1a'
4191macro_revision='1.2435'
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204ltmain="$ac_aux_dir/ltmain.sh"
4205
4206# Set options
4207
4208enable_dlopen=no
4209
4210
4211enable_win32_dll=no
4212
4213
4214# Check whether --enable-shared or --disable-shared was given.
4215if test "${enable_shared+set}" = set; then
4216 enableval="$enable_shared"
4217 p=${PACKAGE-default}
4218 case $enableval in
4219 yes) enable_shared=yes ;;
4220 no) enable_shared=no ;;
4221 *)
4222 enable_shared=no
4223 # Look at the argument we got. We use all the common list separators.
4224 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4225 for pkg in $enableval; do
4226 IFS="$lt_save_ifs"
4227 if test "X$pkg" = "X$p"; then
4228 enable_shared=yes
4229 fi
4230 done
4231 IFS="$lt_save_ifs"
4232 ;;
4233 esac
4234else
4235 enable_shared=yes
4236fi;
4237
4238
4239
4240
4241
4242
4243
4244
4245# Check whether --enable-static or --disable-static was given.
4246if test "${enable_static+set}" = set; then
4247 enableval="$enable_static"
4248 p=${PACKAGE-default}
4249 case $enableval in
4250 yes) enable_static=yes ;;
4251 no) enable_static=no ;;
4252 *)
4253 enable_static=no
4254 # Look at the argument we got. We use all the common list separators.
4255 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4256 for pkg in $enableval; do
4257 IFS="$lt_save_ifs"
4258 if test "X$pkg" = "X$p"; then
4259 enable_static=yes
4260 fi
4261 done
4262 IFS="$lt_save_ifs"
4263 ;;
4264 esac
4265else
4266 enable_static=yes
4267fi;
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277# Check whether --with-pic or --without-pic was given.
4278if test "${with_pic+set}" = set; then
4279 withval="$with_pic"
4280 pic_mode="$withval"
4281else
4282 pic_mode=default
4283fi;
4284
4285test -z "$pic_mode" && pic_mode=default
4286
4287
4288
4289
4290
4291
4292
4293# Check whether --enable-fast-install or --disable-fast-install was given.
4294if test "${enable_fast_install+set}" = set; then
4295 enableval="$enable_fast_install"
4296 p=${PACKAGE-default}
4297 case $enableval in
4298 yes) enable_fast_install=yes ;;
4299 no) enable_fast_install=no ;;
4300 *)
4301 enable_fast_install=no
4302 # Look at the argument we got. We use all the common list separators.
4303 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4304 for pkg in $enableval; do
4305 IFS="$lt_save_ifs"
4306 if test "X$pkg" = "X$p"; then
4307 enable_fast_install=yes
4308 fi
4309 done
4310 IFS="$lt_save_ifs"
4311 ;;
4312 esac
4313else
4314 enable_fast_install=yes
4315fi;
4316
4317
4318
4319
4320
4321
4322
4323
4324echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4325echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4326if test "${lt_cv_path_SED+set}" = set; then
4327 echo $ECHO_N "(cached) $ECHO_C" >&6
4328else
4329 # Loop through the user's path and test for sed and gsed.
4330# Then use that list of sed's as ones to test for truncation.
4331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4332for as_dir in $PATH
4333do
4334 IFS=$as_save_IFS
4335 test -z "$as_dir" && as_dir=.
4336 for lt_ac_prog in sed gsed; do
4337 for ac_exec_ext in '' $ac_executable_extensions; do
4338 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4339 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4340 fi
4341 done
4342 done
4343done
4344IFS=$as_save_IFS
4345lt_ac_max=0
4346lt_ac_count=0
4347# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4348# along with /bin/sed that truncates output.
4349for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4350 test ! -f $lt_ac_sed && continue
4351 cat /dev/null > conftest.in
4352 lt_ac_count=0
4353 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4354 # Check for GNU sed and select it if it is found.
4355 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4356 lt_cv_path_SED=$lt_ac_sed
4357 break
4358 fi
4359 while true; do
4360 cat conftest.in conftest.in >conftest.tmp
4361 mv conftest.tmp conftest.in
4362 cp conftest.in conftest.nl
4363 echo >>conftest.nl
4364 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4365 cmp -s conftest.out conftest.nl || break
4366 # 10000 chars as input seems more than enough
4367 test $lt_ac_count -gt 10 && break
4368 lt_ac_count=`expr $lt_ac_count + 1`
4369 if test $lt_ac_count -gt $lt_ac_max; then
4370 lt_ac_max=$lt_ac_count
4371 lt_cv_path_SED=$lt_ac_sed
4372 fi
4373 done
4374done
4375
4376fi
4377
4378SED=$lt_cv_path_SED
4379
4380echo "$as_me:$LINENO: result: $SED" >&5
4381echo "${ECHO_T}$SED" >&6
4382
4383test -z "$SED" && SED=sed
4384Xsed="$SED -e 1s/^X//"
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396echo "$as_me:$LINENO: checking for egrep" >&5
4397echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4398if test "${ac_cv_prog_egrep+set}" = set; then
4399 echo $ECHO_N "(cached) $ECHO_C" >&6
4400else
4401 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4402 then ac_cv_prog_egrep='grep -E'
4403 else ac_cv_prog_egrep='egrep'
4404 fi
4405fi
4406echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4407echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4408 EGREP=$ac_cv_prog_egrep
4409
4410
4411echo "$as_me:$LINENO: checking for fgrep" >&5
4412echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4413if test "${ac_cv_prog_fgrep+set}" = set; then
4414 echo $ECHO_N "(cached) $ECHO_C" >&6
4415else
4416 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4417 then ac_cv_prog_fgrep='grep -F'
4418 else ac_cv_prog_fgrep='fgrep'
4419 fi
4420fi
4421echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4422echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4423 FGREP=$ac_cv_prog_fgrep
4424
4425
4426test -z "$GREP" && GREP=grep
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446# Check whether --with-gnu-ld or --without-gnu-ld was given.
4447if test "${with_gnu_ld+set}" = set; then
4448 withval="$with_gnu_ld"
4449 test "$withval" = no || with_gnu_ld=yes
4450else
4451 with_gnu_ld=no
4452fi;
4453ac_prog=ld
4454if test "$GCC" = yes; then
4455 # Check if gcc -print-prog-name=ld gives a path.
4456 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4457echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4458 case $host in
4459 *-*-mingw*)
4460 # gcc leaves a trailing carriage return which upsets mingw
4461 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4462 *)
4463 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4464 esac
4465 case $ac_prog in
4466 # Accept absolute paths.
4467 [\\/]* | ?:[\\/]*)
4468 re_direlt='/[^/][^/]*/\.\./'
4469 # Canonicalize the pathname of ld
4470 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4471 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4472 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4473 done
4474 test -z "$LD" && LD="$ac_prog"
4475 ;;
4476 "")
4477 # If it fails, then pretend we aren't using GCC.
4478 ac_prog=ld
4479 ;;
4480 *)
4481 # If it is relative, then search for the first ld in PATH.
4482 with_gnu_ld=unknown
4483 ;;
4484 esac
4485elif test "$with_gnu_ld" = yes; then
4486 echo "$as_me:$LINENO: checking for GNU ld" >&5
4487echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4488else
4489 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4490echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4491fi
4492if test "${lt_cv_path_LD+set}" = set; then
4493 echo $ECHO_N "(cached) $ECHO_C" >&6
4494else
4495 if test -z "$LD"; then
4496 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4497 for ac_dir in $PATH; do
4498 IFS="$lt_save_ifs"
4499 test -z "$ac_dir" && ac_dir=.
4500 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4501 lt_cv_path_LD="$ac_dir/$ac_prog"
4502 # Check to see if the program is GNU ld. I'd rather use --version,
4503 # but apparently some variants of GNU ld only accept -v.
4504 # Break only if it was the GNU/non-GNU ld that we prefer.
4505 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4506 *GNU* | *'with BFD'*)
4507 test "$with_gnu_ld" != no && break
4508 ;;
4509 *)
4510 test "$with_gnu_ld" != yes && break
4511 ;;
4512 esac
4513 fi
4514 done
4515 IFS="$lt_save_ifs"
4516else
4517 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4518fi
4519fi
4520
4521LD="$lt_cv_path_LD"
4522if test -n "$LD"; then
4523 echo "$as_me:$LINENO: result: $LD" >&5
4524echo "${ECHO_T}$LD" >&6
4525else
4526 echo "$as_me:$LINENO: result: no" >&5
4527echo "${ECHO_T}no" >&6
4528fi
4529test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4530echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4531 { (exit 1); exit 1; }; }
4532echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4533echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4534if test "${lt_cv_prog_gnu_ld+set}" = set; then
4535 echo $ECHO_N "(cached) $ECHO_C" >&6
4536else
4537 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4538case `$LD -v 2>&1 </dev/null` in
4539*GNU* | *'with BFD'*)
4540 lt_cv_prog_gnu_ld=yes
4541 ;;
4542*)
4543 lt_cv_prog_gnu_ld=no
4544 ;;
4545esac
4546fi
4547echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4548echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4549with_gnu_ld=$lt_cv_prog_gnu_ld
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4561echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
4562if test "${lt_cv_path_NM+set}" = set; then
4563 echo $ECHO_N "(cached) $ECHO_C" >&6
4564else
4565 if test -n "$NM"; then
4566 # Let the user override the test.
4567 lt_cv_path_NM="$NM"
4568else
4569 lt_nm_to_check="${ac_tool_prefix}nm"
4570 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4571 lt_nm_to_check="$lt_nm_to_check nm"
4572 fi
4573 for lt_tmp_nm in $lt_nm_to_check; do
4574 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4575 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4576 IFS="$lt_save_ifs"
4577 test -z "$ac_dir" && ac_dir=.
4578 tmp_nm="$ac_dir/$lt_tmp_nm"
4579 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4580 # Check to see if the nm accepts a BSD-compat flag.
4581 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4582 # nm: unknown option "B" ignored
4583 # Tru64's nm complains that /dev/null is an invalid object file
4584 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4585 */dev/null* | *'Invalid file or object type'*)
4586 lt_cv_path_NM="$tmp_nm -B"
4587 break
4588 ;;
4589 *)
4590 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4591 */dev/null*)
4592 lt_cv_path_NM="$tmp_nm -p"
4593 break
4594 ;;
4595 *)
4596 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4597 continue # so that we can try to find one that supports BSD flags
4598 ;;
4599 esac
4600 ;;
4601 esac
4602 fi
4603 done
4604 IFS="$lt_save_ifs"
4605 done
4606 : ${lt_cv_path_NM=no}
4607fi
4608fi
4609echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4610echo "${ECHO_T}$lt_cv_path_NM" >&6
4611if test "$lt_cv_path_NM" != "no"; then
4612 NM="$lt_cv_path_NM"
4613else
4614 # Didn't find any BSD compatible name lister, look for dumpbin.
4615 if test -n "$ac_tool_prefix"; then
4616 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4617 do
4618 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4619set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4620echo "$as_me:$LINENO: checking for $ac_word" >&5
4621echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4622if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4623 echo $ECHO_N "(cached) $ECHO_C" >&6
4624else
4625 if test -n "$DUMPBIN"; then
4626 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4627else
4628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4629for as_dir in $PATH
4630do
4631 IFS=$as_save_IFS
4632 test -z "$as_dir" && as_dir=.
4633 for ac_exec_ext in '' $ac_executable_extensions; do
4634 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4635 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4637 break 2
4638 fi
4639done
4640done
4641
4642fi
4643fi
4644DUMPBIN=$ac_cv_prog_DUMPBIN
4645if test -n "$DUMPBIN"; then
4646 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4647echo "${ECHO_T}$DUMPBIN" >&6
4648else
4649 echo "$as_me:$LINENO: result: no" >&5
4650echo "${ECHO_T}no" >&6
4651fi
4652
4653 test -n "$DUMPBIN" && break
4654 done
4655fi
4656if test -z "$DUMPBIN"; then
4657 ac_ct_DUMPBIN=$DUMPBIN
4658 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4659do
4660 # Extract the first word of "$ac_prog", so it can be a program name with args.
4661set dummy $ac_prog; ac_word=$2
4662echo "$as_me:$LINENO: checking for $ac_word" >&5
4663echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4664if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4665 echo $ECHO_N "(cached) $ECHO_C" >&6
4666else
4667 if test -n "$ac_ct_DUMPBIN"; then
4668 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4669else
4670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4671for as_dir in $PATH
4672do
4673 IFS=$as_save_IFS
4674 test -z "$as_dir" && as_dir=.
4675 for ac_exec_ext in '' $ac_executable_extensions; do
4676 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4677 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4679 break 2
4680 fi
4681done
4682done
4683
4684fi
4685fi
4686ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4687if test -n "$ac_ct_DUMPBIN"; then
4688 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4689echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4690else
4691 echo "$as_me:$LINENO: result: no" >&5
4692echo "${ECHO_T}no" >&6
4693fi
4694
4695 test -n "$ac_ct_DUMPBIN" && break
4696done
4697test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
4698
4699 DUMPBIN=$ac_ct_DUMPBIN
4700fi
4701
4702
4703 if test "$DUMPBIN" != ":"; then
4704 NM="$DUMPBIN"
4705 fi
4706fi
4707test -z "$NM" && NM=nm
4708
4709
4710
4711
4712
4713
4714echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4715echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4716if test "${lt_cv_nm_interface+set}" = set; then
4717 echo $ECHO_N "(cached) $ECHO_C" >&6
4718else
4719 lt_cv_nm_interface="BSD nm"
4720 echo "int some_variable = 0;" > conftest.$ac_ext
4721 (eval echo "\"\$as_me:4721: $ac_compile\"" >&5)
4722 (eval "$ac_compile" 2>conftest.err)
4723 cat conftest.err >&5
4724 (eval echo "\"\$as_me:4724: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4725 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4726 cat conftest.err >&5
4727 (eval echo "\"\$as_me:4727: output\"" >&5)
4728 cat conftest.out >&5
4729 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4730 lt_cv_nm_interface="MS dumpbin"
4731 fi
4732 rm -f conftest*
4733fi
4734echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4735echo "${ECHO_T}$lt_cv_nm_interface" >&6
4736
4737echo "$as_me:$LINENO: checking whether ln -s works" >&5
4738echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4739LN_S=$as_ln_s
4740if test "$LN_S" = "ln -s"; then
4741 echo "$as_me:$LINENO: result: yes" >&5
4742echo "${ECHO_T}yes" >&6
4743else
4744 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4745echo "${ECHO_T}no, using $LN_S" >&6
4746fi
4747
4748# find the maximum length of command line arguments
4749echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4750echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4751if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4752 echo $ECHO_N "(cached) $ECHO_C" >&6
4753else
4754 i=0
4755 teststring="ABCD"
4756
4757 case $build_os in
4758 msdosdjgpp*)
4759 # On DJGPP, this test can blow up pretty badly due to problems in libc
4760 # (any single argument exceeding 2000 bytes causes a buffer overrun
4761 # during glob expansion). Even if it were fixed, the result of this
4762 # check would be larger than it should be.
4763 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4764 ;;
4765
4766 gnu*)
4767 # Under GNU Hurd, this test is not required because there is
4768 # no limit to the length of command line arguments.
4769 # Libtool will interpret -1 as no limit whatsoever
4770 lt_cv_sys_max_cmd_len=-1;
4771 ;;
4772
4773 cygwin* | mingw*)
4774 # On Win9x/ME, this test blows up -- it succeeds, but takes
4775 # about 5 minutes as the teststring grows exponentially.
4776 # Worse, since 9x/ME are not pre-emptively multitasking,
4777 # you end up with a "frozen" computer, even though with patience
4778 # the test eventually succeeds (with a max line length of 256k).
4779 # Instead, let's just punt: use the minimum linelength reported by
4780 # all of the supported platforms: 8192 (on NT/2K/XP).
4781 lt_cv_sys_max_cmd_len=8192;
4782 ;;
4783
4784 amigaos*)
4785 # On AmigaOS with pdksh, this test takes hours, literally.
4786 # So we just punt and use a minimum line length of 8192.
4787 lt_cv_sys_max_cmd_len=8192;
4788 ;;
4789
4790 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4791 # This has been around since 386BSD, at least. Likely further.
4792 if test -x /sbin/sysctl; then
4793 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4794 elif test -x /usr/sbin/sysctl; then
4795 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4796 else
4797 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4798 fi
4799 # And add a safety zone
4800 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4801 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4802 ;;
4803
4804 interix*)
4805 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4806 lt_cv_sys_max_cmd_len=196608
4807 ;;
4808
4809 osf*)
4810 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4811 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4812 # nice to cause kernel panics so lets avoid the loop below.
4813 # First set a reasonable default.
4814 lt_cv_sys_max_cmd_len=16384
4815 #
4816 if test -x /sbin/sysconfig; then
4817 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4818 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4819 esac
4820 fi
4821 ;;
4822 sco3.2v5*)
4823 lt_cv_sys_max_cmd_len=102400
4824 ;;
4825 sysv5* | sco5v6* | sysv4.2uw2*)
4826 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4827 if test -n "$kargmax"; then
4828 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4829 else
4830 lt_cv_sys_max_cmd_len=32768
4831 fi
4832 ;;
4833 *)
4834 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
4835 if test -n $lt_cv_sys_max_cmd_len; then
4836 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4837 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4838 else
4839 # Make teststring a little bigger before we do anything with it.
4840 # a 1K string should be a reasonable start.
4841 for i in 1 2 3 4 5 6 7 8 ; do
4842 teststring=$teststring$teststring
4843 done
4844 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4845 # If test is not a shell built-in, we'll probably end up computing a
4846 # maximum length that is only half of the actual maximum length, but
4847 # we can't tell.
4848 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4849 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4850 test $i != 17 # 1/2 MB should be enough
4851 do
4852 i=`expr $i + 1`
4853 teststring=$teststring$teststring
4854 done
4855 # Only check the string length outside the loop.
4856 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4857 teststring=
4858 # Add a significant safety factor because C++ compilers can tack on
4859 # massive amounts of additional arguments before passing them to the
4860 # linker. It appears as though 1/2 is a usable value.
4861 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4862 fi
4863 ;;
4864 esac
4865
4866fi
4867
4868if test -n $lt_cv_sys_max_cmd_len ; then
4869 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4870echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4871else
4872 echo "$as_me:$LINENO: result: none" >&5
4873echo "${ECHO_T}none" >&6
4874fi
4875max_cmd_len=$lt_cv_sys_max_cmd_len
4876
4877
4878
4879
4880
4881
4882
4883: ${CP="cp -f"}
4884: ${MV="mv -f"}
4885: ${RM="rm -f"}
4886
4887echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4888echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4889# Try some XSI features
4890xsi_shell=no
4891( _lt_dummy="a/b/c"
4892 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4893 = c,a/b,, ) >/dev/null 2>&1 \
4894 && xsi_shell=yes
4895echo "$as_me:$LINENO: result: $xsi_shell" >&5
4896echo "${ECHO_T}$xsi_shell" >&6
4897
4898
4899echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4900echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4901lt_shell_append=no
4902( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4903 >/dev/null 2>&1 \
4904 && lt_shell_append=yes
4905echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4906echo "${ECHO_T}$lt_shell_append" >&6
4907
4908
4909if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4910 lt_unset=unset
4911else
4912 lt_unset=false
4913fi
4914
4915
4916
4917
4918
4919# test EBCDIC or ASCII
4920case `echo X|tr X '\101'` in
4921 A) # ASCII based system
4922 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4923 lt_SP2NL='tr \040 \012'
4924 lt_NL2SP='tr \015\012 \040\040'
4925 ;;
4926 *) # EBCDIC based system
4927 lt_SP2NL='tr \100 \n'
4928 lt_NL2SP='tr \r\n \100\100'
4929 ;;
4930esac
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4941echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4942if test "${lt_cv_ld_reload_flag+set}" = set; then
4943 echo $ECHO_N "(cached) $ECHO_C" >&6
4944else
4945 lt_cv_ld_reload_flag='-r'
4946fi
4947echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4948echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4949reload_flag=$lt_cv_ld_reload_flag
4950case $reload_flag in
4951"" | " "*) ;;
4952*) reload_flag=" $reload_flag" ;;
4953esac
4954reload_cmds='$LD$reload_flag -o $output$reload_objs'
4955case $host_os in
4956 darwin*)
4957 if test "$GCC" = yes; then
4958 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4959 else
4960 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4961 fi
4962 ;;
4963esac
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4975echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4976if test "${lt_cv_deplibs_check_method+set}" = set; then
4977 echo $ECHO_N "(cached) $ECHO_C" >&6
4978else
4979 lt_cv_file_magic_cmd='$MAGIC_CMD'
4980lt_cv_file_magic_test_file=
4981lt_cv_deplibs_check_method='unknown'
4982# Need to set the preceding variable on all platforms that support
4983# interlibrary dependencies.
4984# 'none' -- dependencies not supported.
4985# `unknown' -- same as none, but documents that we really don't know.
4986# 'pass_all' -- all dependencies passed with no checks.
4987# 'test_compile' -- check by making test program.
4988# 'file_magic [[regex]]' -- check by looking for files in library path
4989# which responds to the $file_magic_cmd with a given extended regex.
4990# If you have `file' or equivalent on your system and you're not sure
4991# whether `pass_all' will *always* work, you probably want this one.
4992
4993case $host_os in
4994aix4* | aix5*)
4995 lt_cv_deplibs_check_method=pass_all
4996 ;;
4997
4998beos*)
4999 lt_cv_deplibs_check_method=pass_all
5000 ;;
5001
5002bsdi[45]*)
5003 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5004 lt_cv_file_magic_cmd='/usr/bin/file -L'
5005 lt_cv_file_magic_test_file=/shlib/libc.so
5006 ;;
5007
5008cygwin*)
5009 # func_win32_libid is a shell function defined in ltmain.sh
5010 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5011 lt_cv_file_magic_cmd='func_win32_libid'
5012 ;;
5013
5014mingw* | pw32*)
5015 # Base MSYS/MinGW do not provide the 'file' command needed by
5016 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5017 # unless we find 'file', for example because we are cross-compiling.
5018 if ( file / ) >/dev/null 2>&1; then
5019 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5020 lt_cv_file_magic_cmd='func_win32_libid'
5021 else
5022 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5023 lt_cv_file_magic_cmd='$OBJDUMP -f'
5024 fi
5025 ;;
5026
5027darwin* | rhapsody*)
5028 lt_cv_deplibs_check_method=pass_all
5029 ;;
5030
5031freebsd* | dragonfly*)
5032 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5033 case $host_cpu in
5034 i*86 )
5035 # Not sure whether the presence of OpenBSD here was a mistake.
5036 # Let's accept both of them until this is cleared up.
5037 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5038 lt_cv_file_magic_cmd=/usr/bin/file
5039 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5040 ;;
5041 esac
5042 else
5043 lt_cv_deplibs_check_method=pass_all
5044 fi
5045 ;;
5046
5047gnu*)
5048 lt_cv_deplibs_check_method=pass_all
5049 ;;
5050
5051hpux10.20* | hpux11*)
5052 lt_cv_file_magic_cmd=/usr/bin/file
5053 case $host_cpu in
5054 ia64*)
5055 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5056 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5057 ;;
5058 hppa*64*)
5059 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]'
5060 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5061 ;;
5062 *)
5063 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5064 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5065 ;;
5066 esac
5067 ;;
5068
5069interix[3-9]*)
5070 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5071 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5072 ;;
5073
5074irix5* | irix6* | nonstopux*)
5075 case $LD in
5076 *-32|*"-32 ") libmagic=32-bit;;
5077 *-n32|*"-n32 ") libmagic=N32;;
5078 *-64|*"-64 ") libmagic=64-bit;;
5079 *) libmagic=never-match;;
5080 esac
5081 lt_cv_deplibs_check_method=pass_all
5082 ;;
5083
5084# This must be Linux ELF.
5085linux* | k*bsd*-gnu)
5086 lt_cv_deplibs_check_method=pass_all
5087 ;;
5088
5089netbsd*)
5090 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5091 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5092 else
5093 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5094 fi
5095 ;;
5096
5097newos6*)
5098 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5099 lt_cv_file_magic_cmd=/usr/bin/file
5100 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5101 ;;
5102
5103*nto* | *qnx*)
5104 lt_cv_deplibs_check_method=pass_all
5105 ;;
5106
5107openbsd*)
5108 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5109 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5110 else
5111 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5112 fi
5113 ;;
5114
5115osf3* | osf4* | osf5*)
5116 lt_cv_deplibs_check_method=pass_all
5117 ;;
5118
5119rdos*)
5120 lt_cv_deplibs_check_method=pass_all
5121 ;;
5122
5123solaris*)
5124 lt_cv_deplibs_check_method=pass_all
5125 ;;
5126
5127sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5128 lt_cv_deplibs_check_method=pass_all
5129 ;;
5130
5131sysv4 | sysv4.3*)
5132 case $host_vendor in
5133 motorola)
5134 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]'
5135 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5136 ;;
5137 ncr)
5138 lt_cv_deplibs_check_method=pass_all
5139 ;;
5140 sequent)
5141 lt_cv_file_magic_cmd='/bin/file'
5142 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5143 ;;
5144 sni)
5145 lt_cv_file_magic_cmd='/bin/file'
5146 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5147 lt_cv_file_magic_test_file=/lib/libc.so
5148 ;;
5149 siemens)
5150 lt_cv_deplibs_check_method=pass_all
5151 ;;
5152 pc)
5153 lt_cv_deplibs_check_method=pass_all
5154 ;;
5155 esac
5156 ;;
5157
5158tpf*)
5159 lt_cv_deplibs_check_method=pass_all
5160 ;;
5161esac
5162
5163fi
5164echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5165echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5166file_magic_cmd=$lt_cv_file_magic_cmd
5167deplibs_check_method=$lt_cv_deplibs_check_method
5168test -z "$deplibs_check_method" && deplibs_check_method=unknown
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181if test -n "$ac_tool_prefix"; then
5182 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5183set dummy ${ac_tool_prefix}ar; ac_word=$2
5184echo "$as_me:$LINENO: checking for $ac_word" >&5
5185echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5186if test "${ac_cv_prog_AR+set}" = set; then
5187 echo $ECHO_N "(cached) $ECHO_C" >&6
5188else
5189 if test -n "$AR"; then
5190 ac_cv_prog_AR="$AR" # Let the user override the test.
5191else
5192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5193for as_dir in $PATH
5194do
5195 IFS=$as_save_IFS
5196 test -z "$as_dir" && as_dir=.
5197 for ac_exec_ext in '' $ac_executable_extensions; do
5198 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5199 ac_cv_prog_AR="${ac_tool_prefix}ar"
5200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5201 break 2
5202 fi
5203done
5204done
5205
5206fi
5207fi
5208AR=$ac_cv_prog_AR
5209if test -n "$AR"; then
5210 echo "$as_me:$LINENO: result: $AR" >&5
5211echo "${ECHO_T}$AR" >&6
5212else
5213 echo "$as_me:$LINENO: result: no" >&5
5214echo "${ECHO_T}no" >&6
5215fi
5216
5217fi
5218if test -z "$ac_cv_prog_AR"; then
5219 ac_ct_AR=$AR
5220 # Extract the first word of "ar", so it can be a program name with args.
5221set dummy ar; ac_word=$2
5222echo "$as_me:$LINENO: checking for $ac_word" >&5
5223echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5224if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5225 echo $ECHO_N "(cached) $ECHO_C" >&6
5226else
5227 if test -n "$ac_ct_AR"; then
5228 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5229else
5230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5231for as_dir in $PATH
5232do
5233 IFS=$as_save_IFS
5234 test -z "$as_dir" && as_dir=.
5235 for ac_exec_ext in '' $ac_executable_extensions; do
5236 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5237 ac_cv_prog_ac_ct_AR="ar"
5238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5239 break 2
5240 fi
5241done
5242done
5243
5244 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5245fi
5246fi
5247ac_ct_AR=$ac_cv_prog_ac_ct_AR
5248if test -n "$ac_ct_AR"; then
5249 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5250echo "${ECHO_T}$ac_ct_AR" >&6
5251else
5252 echo "$as_me:$LINENO: result: no" >&5
5253echo "${ECHO_T}no" >&6
5254fi
5255
5256 AR=$ac_ct_AR
5257else
5258 AR="$ac_cv_prog_AR"
5259fi
5260
5261test -z "$AR" && AR=ar
5262test -z "$AR_FLAGS" && AR_FLAGS=cru
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274if test -n "$ac_tool_prefix"; then
5275 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5276set dummy ${ac_tool_prefix}strip; ac_word=$2
5277echo "$as_me:$LINENO: checking for $ac_word" >&5
5278echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5279if test "${ac_cv_prog_STRIP+set}" = set; then
5280 echo $ECHO_N "(cached) $ECHO_C" >&6
5281else
5282 if test -n "$STRIP"; then
5283 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5284else
5285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5286for as_dir in $PATH
5287do
5288 IFS=$as_save_IFS
5289 test -z "$as_dir" && as_dir=.
5290 for ac_exec_ext in '' $ac_executable_extensions; do
5291 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5292 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5294 break 2
5295 fi
5296done
5297done
5298
5299fi
5300fi
5301STRIP=$ac_cv_prog_STRIP
5302if test -n "$STRIP"; then
5303 echo "$as_me:$LINENO: result: $STRIP" >&5
5304echo "${ECHO_T}$STRIP" >&6
5305else
5306 echo "$as_me:$LINENO: result: no" >&5
5307echo "${ECHO_T}no" >&6
5308fi
5309
5310fi
5311if test -z "$ac_cv_prog_STRIP"; then
5312 ac_ct_STRIP=$STRIP
5313 # Extract the first word of "strip", so it can be a program name with args.
5314set dummy strip; ac_word=$2
5315echo "$as_me:$LINENO: checking for $ac_word" >&5
5316echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5317if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5318 echo $ECHO_N "(cached) $ECHO_C" >&6
5319else
5320 if test -n "$ac_ct_STRIP"; then
5321 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5322else
5323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5324for as_dir in $PATH
5325do
5326 IFS=$as_save_IFS
5327 test -z "$as_dir" && as_dir=.
5328 for ac_exec_ext in '' $ac_executable_extensions; do
5329 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5330 ac_cv_prog_ac_ct_STRIP="strip"
5331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5332 break 2
5333 fi
5334done
5335done
5336
5337 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5338fi
5339fi
5340ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5341if test -n "$ac_ct_STRIP"; then
5342 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5343echo "${ECHO_T}$ac_ct_STRIP" >&6
5344else
5345 echo "$as_me:$LINENO: result: no" >&5
5346echo "${ECHO_T}no" >&6
5347fi
5348
5349 STRIP=$ac_ct_STRIP
5350else
5351 STRIP="$ac_cv_prog_STRIP"
5352fi
5353
5354test -z "$STRIP" && STRIP=:
5355
5356
5357
5358
5359
5360
5361if test -n "$ac_tool_prefix"; then
5362 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5363set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5364echo "$as_me:$LINENO: checking for $ac_word" >&5
5365echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5366if test "${ac_cv_prog_RANLIB+set}" = set; then
5367 echo $ECHO_N "(cached) $ECHO_C" >&6
5368else
5369 if test -n "$RANLIB"; then
5370 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5371else
5372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5373for as_dir in $PATH
5374do
5375 IFS=$as_save_IFS
5376 test -z "$as_dir" && as_dir=.
5377 for ac_exec_ext in '' $ac_executable_extensions; do
5378 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5379 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5381 break 2
5382 fi
5383done
5384done
5385
5386fi
5387fi
5388RANLIB=$ac_cv_prog_RANLIB
5389if test -n "$RANLIB"; then
5390 echo "$as_me:$LINENO: result: $RANLIB" >&5
5391echo "${ECHO_T}$RANLIB" >&6
5392else
5393 echo "$as_me:$LINENO: result: no" >&5
5394echo "${ECHO_T}no" >&6
5395fi
5396
5397fi
5398if test -z "$ac_cv_prog_RANLIB"; then
5399 ac_ct_RANLIB=$RANLIB
5400 # Extract the first word of "ranlib", so it can be a program name with args.
5401set dummy ranlib; ac_word=$2
5402echo "$as_me:$LINENO: checking for $ac_word" >&5
5403echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5404if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5405 echo $ECHO_N "(cached) $ECHO_C" >&6
5406else
5407 if test -n "$ac_ct_RANLIB"; then
5408 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5409else
5410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5411for as_dir in $PATH
5412do
5413 IFS=$as_save_IFS
5414 test -z "$as_dir" && as_dir=.
5415 for ac_exec_ext in '' $ac_executable_extensions; do
5416 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5417 ac_cv_prog_ac_ct_RANLIB="ranlib"
5418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5419 break 2
5420 fi
5421done
5422done
5423
5424 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5425fi
5426fi
5427ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5428if test -n "$ac_ct_RANLIB"; then
5429 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5430echo "${ECHO_T}$ac_ct_RANLIB" >&6
5431else
5432 echo "$as_me:$LINENO: result: no" >&5
5433echo "${ECHO_T}no" >&6
5434fi
5435
5436 RANLIB=$ac_ct_RANLIB
5437else
5438 RANLIB="$ac_cv_prog_RANLIB"
5439fi
5440
5441test -z "$RANLIB" && RANLIB=:
5442
5443
5444
5445
5446
5447
5448# Determine commands to create old-style static archives.
5449old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5450old_postinstall_cmds='chmod 644 $oldlib'
5451old_postuninstall_cmds=
5452
5453if test -n "$RANLIB"; then
5454 case $host_os in
5455 openbsd*)
5456 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5457 ;;
5458 *)
5459 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5460 ;;
5461 esac
5462 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5463fi
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498# If no C compiler was specified, use CC.
5499LTCC=${LTCC-"$CC"}
5500
5501# If no C compiler flags were specified, use CFLAGS.
5502LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5503
5504# Allow CC to be a program name with arguments.
5505compiler=$CC
5506
5507
5508# Check for command to grab the raw symbol name followed by C symbol from nm.
5509echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5510echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5511if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5512 echo $ECHO_N "(cached) $ECHO_C" >&6
5513else
5514
5515# These are sane defaults that work on at least a few old systems.
5516# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5517
5518# Character class describing NM global symbol codes.
5519symcode='[BCDEGRST]'
5520
5521# Regexp to match symbols that can be accessed directly from C.
5522sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5523
5524# Define system-specific variables.
5525case $host_os in
5526aix*)
5527 symcode='[BCDT]'
5528 ;;
5529cygwin* | mingw* | pw32*)
5530 symcode='[ABCDGISTW]'
5531 ;;
5532hpux*)
5533 if test "$host_cpu" = ia64; then
5534 symcode='[ABCDEGRST]'
5535 fi
5536 ;;
5537irix* | nonstopux*)
5538 symcode='[BCDEGRST]'
5539 ;;
5540osf*)
5541 symcode='[BCDEGQRST]'
5542 ;;
5543solaris*)
5544 symcode='[BDRT]'
5545 ;;
5546sco3.2v5*)
5547 symcode='[DT]'
5548 ;;
5549sysv4.2uw2*)
5550 symcode='[DT]'
5551 ;;
5552sysv5* | sco5v6* | unixware* | OpenUNIX*)
5553 symcode='[ABDT]'
5554 ;;
5555sysv4)
5556 symcode='[DFNSTU]'
5557 ;;
5558esac
5559
5560# If we're using GNU nm, then use its standard symbol codes.
5561case `$NM -V 2>&1` in
5562*GNU* | *'with BFD'*)
5563 symcode='[ABCDGIRSTW]' ;;
5564esac
5565
5566# Transform an extracted symbol line into a proper C declaration.
5567# Some systems (esp. on ia64) link data and code symbols differently,
5568# so use this general approach.
5569lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5570
5571# Transform an extracted symbol line into symbol name and symbol address
5572lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5573
5574# Handle CRLF in mingw tool chain
5575opt_cr=
5576case $build_os in
5577mingw*)
5578 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5579 ;;
5580esac
5581
5582# Try without a prefix underscore, then with it.
5583for ac_symprfx in "" "_"; do
5584
5585 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5586 symxfrm="\\1 $ac_symprfx\\2 \\2"
5587
5588 # Write the raw and C identifiers.
5589 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5590 # Fake it for dumpbin and say T for any non-static function
5591 # and D for any global variable.
5592 # Also find C++ and __fastcall symbols from MSVC++,
5593 # which start with @ or ?.
5594 lt_cv_sys_global_symbol_pipe="$AWK '"\
5595" {last_section=section; section=\$ 3};"\
5596" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5597" \$ 0!~/External *\|/{next};"\
5598" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5599" {if(hide[section]) next};"\
5600" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5601" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5602" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5603" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5604" ' prfx=^$ac_symprfx"
5605 else
5606 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5607 fi
5608
5609 # Check to see that the pipe works correctly.
5610 pipe_works=no
5611
5612 rm -f conftest*
5613 cat > conftest.$ac_ext <<_LT_EOF
5614#ifdef __cplusplus
5615extern "C" {
5616#endif
5617char nm_test_var;
5618void nm_test_func(void);
5619void nm_test_func(void){}
5620#ifdef __cplusplus
5621}
5622#endif
5623int main(){nm_test_var='a';nm_test_func();return(0);}
5624_LT_EOF
5625
5626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5627 (eval $ac_compile) 2>&5
5628 ac_status=$?
5629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5630 (exit $ac_status); }; then
5631 # Now try to grab the symbols.
5632 nlist=conftest.nm
5633 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5634 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5635 ac_status=$?
5636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5637 (exit $ac_status); } && test -s "$nlist"; then
5638 # Try sorting and uniquifying the output.
5639 if sort "$nlist" | uniq > "$nlist"T; then
5640 mv -f "$nlist"T "$nlist"
5641 else
5642 rm -f "$nlist"T
5643 fi
5644
5645 # Make sure that we snagged all the symbols we need.
5646 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5647 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5648 cat <<_LT_EOF > conftest.$ac_ext
5649#ifdef __cplusplus
5650extern "C" {
5651#endif
5652
5653_LT_EOF
5654 # Now generate the symbol file.
5655 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5656
5657 cat <<_LT_EOF >> conftest.$ac_ext
5658
5659/* The mapping between symbol names and symbols. */
5660const struct {
5661 const char *name;
5662 void *address;
5663}
5664lt__PROGRAM__LTX_preloaded_symbols[] =
5665{
5666 { "@PROGRAM@", (void *) 0 },
5667_LT_EOF
5668 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5669 cat <<\_LT_EOF >> conftest.$ac_ext
5670 {0, (void *) 0}
5671};
5672
5673/* This works around a problem in FreeBSD linker */
5674#ifdef FREEBSD_WORKAROUND
5675static const void *lt_preloaded_setup() {
5676 return lt__PROGRAM__LTX_preloaded_symbols;
5677}
5678#endif
5679
5680#ifdef __cplusplus
5681}
5682#endif
5683_LT_EOF
5684 # Now try linking the two files.
5685 mv conftest.$ac_objext conftstm.$ac_objext
5686 lt_save_LIBS="$LIBS"
5687 lt_save_CFLAGS="$CFLAGS"
5688 LIBS="conftstm.$ac_objext"
5689 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5691 (eval $ac_link) 2>&5
5692 ac_status=$?
5693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5695 pipe_works=yes
5696 fi
5697 LIBS="$lt_save_LIBS"
5698 CFLAGS="$lt_save_CFLAGS"
5699 else
5700 echo "cannot find nm_test_func in $nlist" >&5
5701 fi
5702 else
5703 echo "cannot find nm_test_var in $nlist" >&5
5704 fi
5705 else
5706 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5707 fi
5708 else
5709 echo "$progname: failed program was:" >&5
5710 cat conftest.$ac_ext >&5
5711 fi
5712 rm -f conftest* conftst*
5713
5714 # Do not use the global_symbol_pipe unless it works.
5715 if test "$pipe_works" = yes; then
5716 break
5717 else
5718 lt_cv_sys_global_symbol_pipe=
5719 fi
5720done
5721
5722fi
5723
5724if test -z "$lt_cv_sys_global_symbol_pipe"; then
5725 lt_cv_sys_global_symbol_to_cdecl=
5726fi
5727if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5728 echo "$as_me:$LINENO: result: failed" >&5
5729echo "${ECHO_T}failed" >&6
5730else
5731 echo "$as_me:$LINENO: result: ok" >&5
5732echo "${ECHO_T}ok" >&6
5733fi
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5752if test "${enable_libtool_lock+set}" = set; then
5753 enableval="$enable_libtool_lock"
5754
5755fi;
5756test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5757
5758# Some flags need to be propagated to the compiler or linker for good
5759# libtool support.
5760case $host in
5761ia64-*-hpux*)
5762 # Find out which ABI we are using.
5763 echo 'int i;' > conftest.$ac_ext
5764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5765 (eval $ac_compile) 2>&5
5766 ac_status=$?
5767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768 (exit $ac_status); }; then
5769 case `/usr/bin/file conftest.$ac_objext` in
5770 *ELF-32*)
5771 HPUX_IA64_MODE="32"
5772 ;;
5773 *ELF-64*)
5774 HPUX_IA64_MODE="64"
5775 ;;
5776 esac
5777 fi
5778 rm -rf conftest*
5779 ;;
5780*-*-irix6*)
5781 # Find out which ABI we are using.
5782 echo '#line 5782 "configure"' > conftest.$ac_ext
5783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5784 (eval $ac_compile) 2>&5
5785 ac_status=$?
5786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787 (exit $ac_status); }; then
5788 if test "$lt_cv_prog_gnu_ld" = yes; then
5789 case `/usr/bin/file conftest.$ac_objext` in
5790 *32-bit*)
5791 LD="${LD-ld} -melf32bsmip"
5792 ;;
5793 *N32*)
5794 LD="${LD-ld} -melf32bmipn32"
5795 ;;
5796 *64-bit*)
5797 LD="${LD-ld} -melf64bmip"
5798 ;;
5799 esac
5800 else
5801 case `/usr/bin/file conftest.$ac_objext` in
5802 *32-bit*)
5803 LD="${LD-ld} -32"
5804 ;;
5805 *N32*)
5806 LD="${LD-ld} -n32"
5807 ;;
5808 *64-bit*)
5809 LD="${LD-ld} -64"
5810 ;;
5811 esac
5812 fi
5813 fi
5814 rm -rf conftest*
5815 ;;
5816
5817x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5818s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5819 # Find out which ABI we are using.
5820 echo 'int i;' > conftest.$ac_ext
5821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5822 (eval $ac_compile) 2>&5
5823 ac_status=$?
5824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825 (exit $ac_status); }; then
5826 case `/usr/bin/file conftest.o` in
5827 *32-bit*)
5828 case $host in
5829 x86_64-*kfreebsd*-gnu)
5830 LD="${LD-ld} -m elf_i386_fbsd"
5831 ;;
5832 x86_64-*linux*)
5833 LD="${LD-ld} -m elf_i386"
5834 ;;
5835 ppc64-*linux*|powerpc64-*linux*)
5836 LD="${LD-ld} -m elf32ppclinux"
5837 ;;
5838 s390x-*linux*)
5839 LD="${LD-ld} -m elf_s390"
5840 ;;
5841 sparc64-*linux*)
5842 LD="${LD-ld} -m elf32_sparc"
5843 ;;
5844 esac
5845 ;;
5846 *64-bit*)
5847 case $host in
5848 x86_64-*kfreebsd*-gnu)
5849 LD="${LD-ld} -m elf_x86_64_fbsd"
5850 ;;
5851 x86_64-*linux*)
5852 LD="${LD-ld} -m elf_x86_64"
5853 ;;
5854 ppc*-*linux*|powerpc*-*linux*)
5855 LD="${LD-ld} -m elf64ppc"
5856 ;;
5857 s390*-*linux*|s390*-*tpf*)
5858 LD="${LD-ld} -m elf64_s390"
5859 ;;
5860 sparc*-*linux*)
5861 LD="${LD-ld} -m elf64_sparc"
5862 ;;
5863 esac
5864 ;;
5865 esac
5866 fi
5867 rm -rf conftest*
5868 ;;
5869
5870*-*-sco3.2v5*)
5871 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5872 SAVE_CFLAGS="$CFLAGS"
5873 CFLAGS="$CFLAGS -belf"
5874 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5875echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5876if test "${lt_cv_cc_needs_belf+set}" = set; then
5877 echo $ECHO_N "(cached) $ECHO_C" >&6
5878else
5879 ac_ext=c
5880ac_cpp='$CPP $CPPFLAGS'
5881ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5882ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5883ac_compiler_gnu=$ac_cv_c_compiler_gnu
5884
5885 cat >conftest.$ac_ext <<_ACEOF
5886/* confdefs.h. */
5887_ACEOF
5888cat confdefs.h >>conftest.$ac_ext
5889cat >>conftest.$ac_ext <<_ACEOF
5890/* end confdefs.h. */
5891
5892int
5893main ()
5894{
5895
5896 ;
5897 return 0;
5898}
5899_ACEOF
5900rm -f conftest.$ac_objext conftest$ac_exeext
5901if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5902 (eval $ac_link) 2>conftest.er1
5903 ac_status=$?
5904 grep -v '^ *+' conftest.er1 >conftest.err
5905 rm -f conftest.er1
5906 cat conftest.err >&5
5907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908 (exit $ac_status); } &&
5909 { ac_try='test -z "$ac_c_werror_flag"
5910 || test ! -s conftest.err'
5911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5912 (eval $ac_try) 2>&5
5913 ac_status=$?
5914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915 (exit $ac_status); }; } &&
5916 { ac_try='test -s conftest$ac_exeext'
5917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5918 (eval $ac_try) 2>&5
5919 ac_status=$?
5920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921 (exit $ac_status); }; }; then
5922 lt_cv_cc_needs_belf=yes
5923else
5924 echo "$as_me: failed program was:" >&5
5925sed 's/^/| /' conftest.$ac_ext >&5
5926
5927lt_cv_cc_needs_belf=no
5928fi
5929rm -f conftest.err conftest.$ac_objext \
5930 conftest$ac_exeext conftest.$ac_ext
5931 ac_ext=c
5932ac_cpp='$CPP $CPPFLAGS'
5933ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5934ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5935ac_compiler_gnu=$ac_cv_c_compiler_gnu
5936
5937fi
5938echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5939echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5940 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5941 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5942 CFLAGS="$SAVE_CFLAGS"
5943 fi
5944 ;;
5945sparc*-*solaris*)
5946 # Find out which ABI we are using.
5947 echo 'int i;' > conftest.$ac_ext
5948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5949 (eval $ac_compile) 2>&5
5950 ac_status=$?
5951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952 (exit $ac_status); }; then
5953 case `/usr/bin/file conftest.o` in
5954 *64-bit*)
5955 case $lt_cv_prog_gnu_ld in
5956 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5957 *) LD="${LD-ld} -64" ;;
5958 esac
5959 ;;
5960 esac
5961 fi
5962 rm -rf conftest*
5963 ;;
5964esac
5965
5966need_locks="$enable_libtool_lock"
5967
5968ac_ext=c
5969ac_cpp='$CPP $CPPFLAGS'
5970ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5971ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5972ac_compiler_gnu=$ac_cv_c_compiler_gnu
5973echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5974echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5975# On Suns, sometimes $CPP names a directory.
5976if test -n "$CPP" && test -d "$CPP"; then
5977 CPP=
5978fi
5979if test -z "$CPP"; then
5980 if test "${ac_cv_prog_CPP+set}" = set; then
5981 echo $ECHO_N "(cached) $ECHO_C" >&6
5982else
5983 # Double quotes because CPP needs to be expanded
5984 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5985 do
5986 ac_preproc_ok=false
5987for ac_c_preproc_warn_flag in '' yes
5988do
5989 # Use a header file that comes with gcc, so configuring glibc
5990 # with a fresh cross-compiler works.
5991 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5992 # <limits.h> exists even on freestanding compilers.
5993 # On the NeXT, cc -E runs the code through the compiler's parser,
5994 # not just through cpp. "Syntax error" is here to catch this case.
5995 cat >conftest.$ac_ext <<_ACEOF
5996/* confdefs.h. */
5997_ACEOF
5998cat confdefs.h >>conftest.$ac_ext
5999cat >>conftest.$ac_ext <<_ACEOF
6000/* end confdefs.h. */
6001#ifdef __STDC__
6002# include <limits.h>
6003#else
6004# include <assert.h>
6005#endif
6006 Syntax error
6007_ACEOF
6008if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6009 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6010 ac_status=$?
6011 grep -v '^ *+' conftest.er1 >conftest.err
6012 rm -f conftest.er1
6013 cat conftest.err >&5
6014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); } >/dev/null; then
6016 if test -s conftest.err; then
6017 ac_cpp_err=$ac_c_preproc_warn_flag
6018 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6019 else
6020 ac_cpp_err=
6021 fi
6022else
6023 ac_cpp_err=yes
6024fi
6025if test -z "$ac_cpp_err"; then
6026 :
6027else
6028 echo "$as_me: failed program was:" >&5
6029sed 's/^/| /' conftest.$ac_ext >&5
6030
6031 # Broken: fails on valid input.
6032continue
6033fi
6034rm -f conftest.err conftest.$ac_ext
6035
6036 # OK, works on sane cases. Now check whether non-existent headers
6037 # can be detected and how.
6038 cat >conftest.$ac_ext <<_ACEOF
6039/* confdefs.h. */
6040_ACEOF
6041cat confdefs.h >>conftest.$ac_ext
6042cat >>conftest.$ac_ext <<_ACEOF
6043/* end confdefs.h. */
6044#include <ac_nonexistent.h>
6045_ACEOF
6046if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6047 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6048 ac_status=$?
6049 grep -v '^ *+' conftest.er1 >conftest.err
6050 rm -f conftest.er1
6051 cat conftest.err >&5
6052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053 (exit $ac_status); } >/dev/null; then
6054 if test -s conftest.err; then
6055 ac_cpp_err=$ac_c_preproc_warn_flag
6056 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6057 else
6058 ac_cpp_err=
6059 fi
6060else
6061 ac_cpp_err=yes
6062fi
6063if test -z "$ac_cpp_err"; then
6064 # Broken: success on invalid input.
6065continue
6066else
6067 echo "$as_me: failed program was:" >&5
6068sed 's/^/| /' conftest.$ac_ext >&5
6069
6070 # Passes both tests.
6071ac_preproc_ok=:
6072break
6073fi
6074rm -f conftest.err conftest.$ac_ext
6075
6076done
6077# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6078rm -f conftest.err conftest.$ac_ext
6079if $ac_preproc_ok; then
6080 break
6081fi
6082
6083 done
6084 ac_cv_prog_CPP=$CPP
6085
6086fi
6087 CPP=$ac_cv_prog_CPP
6088else
6089 ac_cv_prog_CPP=$CPP
6090fi
6091echo "$as_me:$LINENO: result: $CPP" >&5
6092echo "${ECHO_T}$CPP" >&6
6093ac_preproc_ok=false
6094for ac_c_preproc_warn_flag in '' yes
6095do
6096 # Use a header file that comes with gcc, so configuring glibc
6097 # with a fresh cross-compiler works.
6098 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6099 # <limits.h> exists even on freestanding compilers.
6100 # On the NeXT, cc -E runs the code through the compiler's parser,
6101 # not just through cpp. "Syntax error" is here to catch this case.
6102 cat >conftest.$ac_ext <<_ACEOF
6103/* confdefs.h. */
6104_ACEOF
6105cat confdefs.h >>conftest.$ac_ext
6106cat >>conftest.$ac_ext <<_ACEOF
6107/* end confdefs.h. */
6108#ifdef __STDC__
6109# include <limits.h>
6110#else
6111# include <assert.h>
6112#endif
6113 Syntax error
6114_ACEOF
6115if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6116 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6117 ac_status=$?
6118 grep -v '^ *+' conftest.er1 >conftest.err
6119 rm -f conftest.er1
6120 cat conftest.err >&5
6121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122 (exit $ac_status); } >/dev/null; then
6123 if test -s conftest.err; then
6124 ac_cpp_err=$ac_c_preproc_warn_flag
6125 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6126 else
6127 ac_cpp_err=
6128 fi
6129else
6130 ac_cpp_err=yes
6131fi
6132if test -z "$ac_cpp_err"; then
6133 :
6134else
6135 echo "$as_me: failed program was:" >&5
6136sed 's/^/| /' conftest.$ac_ext >&5
6137
6138 # Broken: fails on valid input.
6139continue
6140fi
6141rm -f conftest.err conftest.$ac_ext
6142
6143 # OK, works on sane cases. Now check whether non-existent headers
6144 # can be detected and how.
6145 cat >conftest.$ac_ext <<_ACEOF
6146/* confdefs.h. */
6147_ACEOF
6148cat confdefs.h >>conftest.$ac_ext
6149cat >>conftest.$ac_ext <<_ACEOF
6150/* end confdefs.h. */
6151#include <ac_nonexistent.h>
6152_ACEOF
6153if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6154 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6155 ac_status=$?
6156 grep -v '^ *+' conftest.er1 >conftest.err
6157 rm -f conftest.er1
6158 cat conftest.err >&5
6159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160 (exit $ac_status); } >/dev/null; then
6161 if test -s conftest.err; then
6162 ac_cpp_err=$ac_c_preproc_warn_flag
6163 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6164 else
6165 ac_cpp_err=
6166 fi
6167else
6168 ac_cpp_err=yes
6169fi
6170if test -z "$ac_cpp_err"; then
6171 # Broken: success on invalid input.
6172continue
6173else
6174 echo "$as_me: failed program was:" >&5
6175sed 's/^/| /' conftest.$ac_ext >&5
6176
6177 # Passes both tests.
6178ac_preproc_ok=:
6179break
6180fi
6181rm -f conftest.err conftest.$ac_ext
6182
6183done
6184# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6185rm -f conftest.err conftest.$ac_ext
6186if $ac_preproc_ok; then
6187 :
6188else
6189 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6190See \`config.log' for more details." >&5
6191echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6192See \`config.log' for more details." >&2;}
6193 { (exit 1); exit 1; }; }
6194fi
6195
6196ac_ext=c
6197ac_cpp='$CPP $CPPFLAGS'
6198ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6199ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6200ac_compiler_gnu=$ac_cv_c_compiler_gnu
6201
6202
6203echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6204echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6205if test "${ac_cv_header_stdc+set}" = set; then
6206 echo $ECHO_N "(cached) $ECHO_C" >&6
6207else
6208 cat >conftest.$ac_ext <<_ACEOF
6209/* confdefs.h. */
6210_ACEOF
6211cat confdefs.h >>conftest.$ac_ext
6212cat >>conftest.$ac_ext <<_ACEOF
6213/* end confdefs.h. */
6214#include <stdlib.h>
6215#include <stdarg.h>
6216#include <string.h>
6217#include <float.h>
6218
6219int
6220main ()
6221{
6222
6223 ;
6224 return 0;
6225}
6226_ACEOF
6227rm -f conftest.$ac_objext
6228if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6229 (eval $ac_compile) 2>conftest.er1
6230 ac_status=$?
6231 grep -v '^ *+' conftest.er1 >conftest.err
6232 rm -f conftest.er1
6233 cat conftest.err >&5
6234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6235 (exit $ac_status); } &&
6236 { ac_try='test -z "$ac_c_werror_flag"
6237 || test ! -s conftest.err'
6238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6239 (eval $ac_try) 2>&5
6240 ac_status=$?
6241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242 (exit $ac_status); }; } &&
6243 { ac_try='test -s conftest.$ac_objext'
6244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6245 (eval $ac_try) 2>&5
6246 ac_status=$?
6247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6248 (exit $ac_status); }; }; then
6249 ac_cv_header_stdc=yes
6250else
6251 echo "$as_me: failed program was:" >&5
6252sed 's/^/| /' conftest.$ac_ext >&5
6253
6254ac_cv_header_stdc=no
6255fi
6256rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6257
6258if test $ac_cv_header_stdc = yes; then
6259 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6260 cat >conftest.$ac_ext <<_ACEOF
6261/* confdefs.h. */
6262_ACEOF
6263cat confdefs.h >>conftest.$ac_ext
6264cat >>conftest.$ac_ext <<_ACEOF
6265/* end confdefs.h. */
6266#include <string.h>
6267
6268_ACEOF
6269if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6270 $EGREP "memchr" >/dev/null 2>&1; then
6271 :
6272else
6273 ac_cv_header_stdc=no
6274fi
6275rm -f conftest*
6276
6277fi
6278
6279if test $ac_cv_header_stdc = yes; then
6280 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6281 cat >conftest.$ac_ext <<_ACEOF
6282/* confdefs.h. */
6283_ACEOF
6284cat confdefs.h >>conftest.$ac_ext
6285cat >>conftest.$ac_ext <<_ACEOF
6286/* end confdefs.h. */
6287#include <stdlib.h>
6288
6289_ACEOF
6290if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6291 $EGREP "free" >/dev/null 2>&1; then
6292 :
6293else
6294 ac_cv_header_stdc=no
6295fi
6296rm -f conftest*
6297
6298fi
6299
6300if test $ac_cv_header_stdc = yes; then
6301 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6302 if test "$cross_compiling" = yes; then
6303 :
6304else
6305 cat >conftest.$ac_ext <<_ACEOF
6306/* confdefs.h. */
6307_ACEOF
6308cat confdefs.h >>conftest.$ac_ext
6309cat >>conftest.$ac_ext <<_ACEOF
6310/* end confdefs.h. */
6311#include <ctype.h>
6312#if ((' ' & 0x0FF) == 0x020)
6313# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6314# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6315#else
6316# define ISLOWER(c) \
6317 (('a' <= (c) && (c) <= 'i') \
6318 || ('j' <= (c) && (c) <= 'r') \
6319 || ('s' <= (c) && (c) <= 'z'))
6320# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6321#endif
6322
6323#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6324int
6325main ()
6326{
6327 int i;
6328 for (i = 0; i < 256; i++)
6329 if (XOR (islower (i), ISLOWER (i))
6330 || toupper (i) != TOUPPER (i))
6331 exit(2);
6332 exit (0);
6333}
6334_ACEOF
6335rm -f conftest$ac_exeext
6336if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6337 (eval $ac_link) 2>&5
6338 ac_status=$?
6339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6342 (eval $ac_try) 2>&5
6343 ac_status=$?
6344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6345 (exit $ac_status); }; }; then
6346 :
6347else
6348 echo "$as_me: program exited with status $ac_status" >&5
6349echo "$as_me: failed program was:" >&5
6350sed 's/^/| /' conftest.$ac_ext >&5
6351
6352( exit $ac_status )
6353ac_cv_header_stdc=no
6354fi
6355rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6356fi
6357fi
6358fi
6359echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6360echo "${ECHO_T}$ac_cv_header_stdc" >&6
6361if test $ac_cv_header_stdc = yes; then
6362
6363cat >>confdefs.h <<\_ACEOF
6364#define STDC_HEADERS 1
6365_ACEOF
6366
6367fi
6368
6369# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6380 inttypes.h stdint.h unistd.h
6381do
6382as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6383echo "$as_me:$LINENO: checking for $ac_header" >&5
6384echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6385if eval "test \"\${$as_ac_Header+set}\" = set"; then
6386 echo $ECHO_N "(cached) $ECHO_C" >&6
6387else
6388 cat >conftest.$ac_ext <<_ACEOF
6389/* confdefs.h. */
6390_ACEOF
6391cat confdefs.h >>conftest.$ac_ext
6392cat >>conftest.$ac_ext <<_ACEOF
6393/* end confdefs.h. */
6394$ac_includes_default
6395
6396#include <$ac_header>
6397_ACEOF
6398rm -f conftest.$ac_objext
6399if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6400 (eval $ac_compile) 2>conftest.er1
6401 ac_status=$?
6402 grep -v '^ *+' conftest.er1 >conftest.err
6403 rm -f conftest.er1
6404 cat conftest.err >&5
6405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6406 (exit $ac_status); } &&
6407 { ac_try='test -z "$ac_c_werror_flag"
6408 || test ! -s conftest.err'
6409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6410 (eval $ac_try) 2>&5
6411 ac_status=$?
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); }; } &&
6414 { ac_try='test -s conftest.$ac_objext'
6415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6416 (eval $ac_try) 2>&5
6417 ac_status=$?
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); }; }; then
6420 eval "$as_ac_Header=yes"
6421else
6422 echo "$as_me: failed program was:" >&5
6423sed 's/^/| /' conftest.$ac_ext >&5
6424
6425eval "$as_ac_Header=no"
6426fi
6427rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6428fi
6429echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6430echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6431if test `eval echo '${'$as_ac_Header'}'` = yes; then
6432 cat >>confdefs.h <<_ACEOF
6433#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6434_ACEOF
6435
6436fi
6437
6438done
6439
6440
6441
6442for ac_header in dlfcn.h
6443do
6444as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6445echo "$as_me:$LINENO: checking for $ac_header" >&5
6446echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6447if eval "test \"\${$as_ac_Header+set}\" = set"; then
6448 echo $ECHO_N "(cached) $ECHO_C" >&6
6449else
6450 cat >conftest.$ac_ext <<_ACEOF
6451/* confdefs.h. */
6452_ACEOF
6453cat confdefs.h >>conftest.$ac_ext
6454cat >>conftest.$ac_ext <<_ACEOF
6455/* end confdefs.h. */
6456$ac_includes_default
6457
6458#include <$ac_header>
6459_ACEOF
6460rm -f conftest.$ac_objext
6461if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6462 (eval $ac_compile) 2>conftest.er1
6463 ac_status=$?
6464 grep -v '^ *+' conftest.er1 >conftest.err
6465 rm -f conftest.er1
6466 cat conftest.err >&5
6467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6468 (exit $ac_status); } &&
6469 { ac_try='test -z "$ac_c_werror_flag"
6470 || test ! -s conftest.err'
6471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6472 (eval $ac_try) 2>&5
6473 ac_status=$?
6474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6475 (exit $ac_status); }; } &&
6476 { ac_try='test -s conftest.$ac_objext'
6477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6478 (eval $ac_try) 2>&5
6479 ac_status=$?
6480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481 (exit $ac_status); }; }; then
6482 eval "$as_ac_Header=yes"
6483else
6484 echo "$as_me: failed program was:" >&5
6485sed 's/^/| /' conftest.$ac_ext >&5
6486
6487eval "$as_ac_Header=no"
6488fi
6489rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6490fi
6491echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6492echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6493if test `eval echo '${'$as_ac_Header'}'` = yes; then
6494 cat >>confdefs.h <<_ACEOF
6495#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6496_ACEOF
6497
6498fi
6499
6500done
6501
6502
6503
6504# This can be used to rebuild libtool when needed
6505LIBTOOL_DEPS="$ltmain"
6506
6507# Always use our own libtool.
6508LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534test -z "$LN_S" && LN_S="ln -s"
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549if test -n "${ZSH_VERSION+set}" ; then
6550 setopt NO_GLOB_SUBST
6551fi
6552
6553echo "$as_me:$LINENO: checking for objdir" >&5
6554echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6555if test "${lt_cv_objdir+set}" = set; then
6556 echo $ECHO_N "(cached) $ECHO_C" >&6
6557else
6558 rm -f .libs 2>/dev/null
6559mkdir .libs 2>/dev/null
6560if test -d .libs; then
6561 lt_cv_objdir=.libs
6562else
6563 # MS-DOS does not allow filenames that begin with a dot.
6564 lt_cv_objdir=_libs
6565fi
6566rmdir .libs 2>/dev/null
6567fi
6568echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6569echo "${ECHO_T}$lt_cv_objdir" >&6
6570objdir=$lt_cv_objdir
6571
6572
6573
6574
6575
6576cat >>confdefs.h <<_ACEOF
6577#define LT_OBJDIR "$lt_cv_objdir/"
6578_ACEOF
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596case $host_os in
6597aix3*)
6598 # AIX sometimes has problems with the GCC collect2 program. For some
6599 # reason, if we set the COLLECT_NAMES environment variable, the problems
6600 # vanish in a puff of smoke.
6601 if test "X${COLLECT_NAMES+set}" != Xset; then
6602 COLLECT_NAMES=
6603 export COLLECT_NAMES
6604 fi
6605 ;;
6606esac
6607
6608# Sed substitution that helps us do robust quoting. It backslashifies
6609# metacharacters that are still active within double-quoted strings.
6610sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6611
6612# Same as above, but do not quote variable references.
6613double_quote_subst='s/\(["`\\]\)/\\\1/g'
6614
6615# Sed substitution to delay expansion of an escaped shell variable in a
6616# double_quote_subst'ed string.
6617delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6618
6619# Sed substitution to delay expansion of an escaped single quote.
6620delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6621
6622# Sed substitution to avoid accidental globbing in evaled expressions
6623no_glob_subst='s/\*/\\\*/g'
6624
6625# Global variables:
6626ofile=libtool
6627can_build_shared=yes
6628
6629# All known linkers require a `.a' archive for static linking (except MSVC,
6630# which needs '.lib').
6631libext=a
6632
6633with_gnu_ld="$lt_cv_prog_gnu_ld"
6634
6635old_CC="$CC"
6636old_CFLAGS="$CFLAGS"
6637
6638# Set sane defaults for various variables
6639test -z "$CC" && CC=cc
6640test -z "$LTCC" && LTCC=$CC
6641test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6642test -z "$LD" && LD=ld
6643test -z "$ac_objext" && ac_objext=o
6644
6645for cc_temp in $compiler""; do
6646 case $cc_temp in
6647 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6648 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6649 \-*) ;;
6650 *) break;;
6651 esac
6652done
6653cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6654
6655
6656# Only perform the check for file, if the check method requires it
6657test -z "$MAGIC_CMD" && MAGIC_CMD=file
6658case $deplibs_check_method in
6659file_magic*)
6660 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6661 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6662echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6663if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6664 echo $ECHO_N "(cached) $ECHO_C" >&6
6665else
6666 case $MAGIC_CMD in
6667[\\/*] | ?:[\\/]*)
6668 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6669 ;;
6670*)
6671 lt_save_MAGIC_CMD="$MAGIC_CMD"
6672 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6673 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6674 for ac_dir in $ac_dummy; do
6675 IFS="$lt_save_ifs"
6676 test -z "$ac_dir" && ac_dir=.
6677 if test -f $ac_dir/${ac_tool_prefix}file; then
6678 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6679 if test -n "$file_magic_test_file"; then
6680 case $deplibs_check_method in
6681 "file_magic "*)
6682 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6683 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6684 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6685 $EGREP "$file_magic_regex" > /dev/null; then
6686 :
6687 else
6688 cat <<_LT_EOF 1>&2
6689
6690*** Warning: the command libtool uses to detect shared libraries,
6691*** $file_magic_cmd, produces output that libtool cannot recognize.
6692*** The result is that libtool may fail to recognize shared libraries
6693*** as such. This will affect the creation of libtool libraries that
6694*** depend on shared libraries, but programs linked with such libtool
6695*** libraries will work regardless of this problem. Nevertheless, you
6696*** may want to report the problem to your system manager and/or to
6697*** bug-libtool@gnu.org
6698
6699_LT_EOF
6700 fi ;;
6701 esac
6702 fi
6703 break
6704 fi
6705 done
6706 IFS="$lt_save_ifs"
6707 MAGIC_CMD="$lt_save_MAGIC_CMD"
6708 ;;
6709esac
6710fi
6711
6712MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6713if test -n "$MAGIC_CMD"; then
6714 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6715echo "${ECHO_T}$MAGIC_CMD" >&6
6716else
6717 echo "$as_me:$LINENO: result: no" >&5
6718echo "${ECHO_T}no" >&6
6719fi
6720
6721
6722
6723
6724
6725if test -z "$lt_cv_path_MAGIC_CMD"; then
6726 if test -n "$ac_tool_prefix"; then
6727 echo "$as_me:$LINENO: checking for file" >&5
6728echo $ECHO_N "checking for file... $ECHO_C" >&6
6729if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6730 echo $ECHO_N "(cached) $ECHO_C" >&6
6731else
6732 case $MAGIC_CMD in
6733[\\/*] | ?:[\\/]*)
6734 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6735 ;;
6736*)
6737 lt_save_MAGIC_CMD="$MAGIC_CMD"
6738 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6739 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6740 for ac_dir in $ac_dummy; do
6741 IFS="$lt_save_ifs"
6742 test -z "$ac_dir" && ac_dir=.
6743 if test -f $ac_dir/file; then
6744 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6745 if test -n "$file_magic_test_file"; then
6746 case $deplibs_check_method in
6747 "file_magic "*)
6748 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6749 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6750 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6751 $EGREP "$file_magic_regex" > /dev/null; then
6752 :
6753 else
6754 cat <<_LT_EOF 1>&2
6755
6756*** Warning: the command libtool uses to detect shared libraries,
6757*** $file_magic_cmd, produces output that libtool cannot recognize.
6758*** The result is that libtool may fail to recognize shared libraries
6759*** as such. This will affect the creation of libtool libraries that
6760*** depend on shared libraries, but programs linked with such libtool
6761*** libraries will work regardless of this problem. Nevertheless, you
6762*** may want to report the problem to your system manager and/or to
6763*** bug-libtool@gnu.org
6764
6765_LT_EOF
6766 fi ;;
6767 esac
6768 fi
6769 break
6770 fi
6771 done
6772 IFS="$lt_save_ifs"
6773 MAGIC_CMD="$lt_save_MAGIC_CMD"
6774 ;;
6775esac
6776fi
6777
6778MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6779if test -n "$MAGIC_CMD"; then
6780 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6781echo "${ECHO_T}$MAGIC_CMD" >&6
6782else
6783 echo "$as_me:$LINENO: result: no" >&5
6784echo "${ECHO_T}no" >&6
6785fi
6786
6787
6788 else
6789 MAGIC_CMD=:
6790 fi
6791fi
6792
6793 fi
6794 ;;
6795esac
6796
6797# Use C for the default configuration in the libtool script
6798
6799lt_save_CC="$CC"
6800ac_ext=c
6801ac_cpp='$CPP $CPPFLAGS'
6802ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6803ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6804ac_compiler_gnu=$ac_cv_c_compiler_gnu
6805
6806
6807# Source file extension for C test sources.
6808ac_ext=c
6809
6810# Object file extension for compiled C test sources.
6811objext=o
6812objext=$objext
6813
6814# Code to be used in simple compile tests
6815lt_simple_compile_test_code="int some_variable = 0;"
6816
6817# Code to be used in simple link tests
6818lt_simple_link_test_code='int main(){return(0);}'
6819
6820
6821
6822
6823
6824
6825
6826# If no C compiler was specified, use CC.
6827LTCC=${LTCC-"$CC"}
6828
6829# If no C compiler flags were specified, use CFLAGS.
6830LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6831
6832# Allow CC to be a program name with arguments.
6833compiler=$CC
6834
6835# Save the default compiler, since it gets overwritten when the other
6836# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6837compiler_DEFAULT=$CC
6838
6839# save warnings/boilerplate of simple test code
6840ac_outfile=conftest.$ac_objext
6841echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6842eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6843_lt_compiler_boilerplate=`cat conftest.err`
6844$RM conftest*
6845
6846ac_outfile=conftest.$ac_objext
6847echo "$lt_simple_link_test_code" >conftest.$ac_ext
6848eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6849_lt_linker_boilerplate=`cat conftest.err`
6850$RM conftest*
6851
6852
6853## CAVEAT EMPTOR:
6854## There is no encapsulation within the following macros, do not change
6855## the running order or otherwise move them around unless you know exactly
6856## what you are doing...
6857if test -n "$compiler"; then
6858
6859lt_prog_compiler_no_builtin_flag=
6860
6861if test "$GCC" = yes; then
6862 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6863
6864 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6865echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6866if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6867 echo $ECHO_N "(cached) $ECHO_C" >&6
6868else
6869 lt_cv_prog_compiler_rtti_exceptions=no
6870 ac_outfile=conftest.$ac_objext
6871 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6872 lt_compiler_flag="-fno-rtti -fno-exceptions"
6873 # Insert the option either (1) after the last *FLAGS variable, or
6874 # (2) before a word containing "conftest.", or (3) at the end.
6875 # Note that $ac_compile itself does not contain backslashes and begins
6876 # with a dollar sign (not a hyphen), so the echo should work correctly.
6877 # The option is referenced via a variable to avoid confusing sed.
6878 lt_compile=`echo "$ac_compile" | $SED \
6879 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6880 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6881 -e 's:$: $lt_compiler_flag:'`
6882 (eval echo "\"\$as_me:6882: $lt_compile\"" >&5)
6883 (eval "$lt_compile" 2>conftest.err)
6884 ac_status=$?
6885 cat conftest.err >&5
6886 echo "$as_me:6886: \$? = $ac_status" >&5
6887 if (exit $ac_status) && test -s "$ac_outfile"; then
6888 # The compiler can only warn and ignore the option if not recognized
6889 # So say no if there are warnings other than the usual output.
6890 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6891 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6892 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6893 lt_cv_prog_compiler_rtti_exceptions=yes
6894 fi
6895 fi
6896 $RM conftest*
6897
6898fi
6899echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6900echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6901
6902if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6903 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6904else
6905 :
6906fi
6907
6908fi
6909
6910
6911
6912
6913
6914
6915 lt_prog_compiler_wl=
6916lt_prog_compiler_pic=
6917lt_prog_compiler_static=
6918
6919echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6920echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6921
6922 if test "$GCC" = yes; then
6923 lt_prog_compiler_wl='-Wl,'
6924 lt_prog_compiler_static='-static'
6925
6926 case $host_os in
6927 aix*)
6928 # All AIX code is PIC.
6929 if test "$host_cpu" = ia64; then
6930 # AIX 5 now supports IA64 processor
6931 lt_prog_compiler_static='-Bstatic'
6932 fi
6933 ;;
6934
6935 amigaos*)
6936 if test "$host_cpu" = m68k; then
6937 # FIXME: we need at least 68020 code to build shared libraries, but
6938 # adding the `-m68020' flag to GCC prevents building anything better,
6939 # like `-m68040'.
6940 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6941 fi
6942 ;;
6943
6944 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6945 # PIC is the default for these OSes.
6946 ;;
6947
6948 mingw* | cygwin* | pw32* | os2*)
6949 # This hack is so that the source file can tell whether it is being
6950 # built for inclusion in a dll (and should export symbols for example).
6951 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6952 # (--disable-auto-import) libraries
6953 lt_prog_compiler_pic='-DDLL_EXPORT'
6954 ;;
6955
6956 darwin* | rhapsody*)
6957 # PIC is the default on this platform
6958 # Common symbols not allowed in MH_DYLIB files
6959 lt_prog_compiler_pic='-fno-common'
6960 ;;
6961
6962 hpux*)
6963 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6964 # not for PA HP-UX.
6965 case $host_cpu in
6966 hppa*64*|ia64*)
6967 # +Z the default
6968 ;;
6969 *)
6970 lt_prog_compiler_pic='-fPIC'
6971 ;;
6972 esac
6973 ;;
6974
6975 interix[3-9]*)
6976 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6977 # Instead, we relocate shared libraries at runtime.
6978 ;;
6979
6980 msdosdjgpp*)
6981 # Just because we use GCC doesn't mean we suddenly get shared libraries
6982 # on systems that don't support them.
6983 lt_prog_compiler_can_build_shared=no
6984 enable_shared=no
6985 ;;
6986
6987 *nto* | *qnx*)
6988 # QNX uses GNU C++, but need to define -shared option too, otherwise
6989 # it will coredump.
6990 lt_prog_compiler_pic='-fPIC -shared'
6991 ;;
6992
6993 sysv4*MP*)
6994 if test -d /usr/nec; then
6995 lt_prog_compiler_pic=-Kconform_pic
6996 fi
6997 ;;
6998
6999 *)
7000 lt_prog_compiler_pic='-fPIC'
7001 ;;
7002 esac
7003 else
7004 # PORTME Check for flag to pass linker flags through the system compiler.
7005 case $host_os in
7006 aix*)
7007 lt_prog_compiler_wl='-Wl,'
7008 if test "$host_cpu" = ia64; then
7009 # AIX 5 now supports IA64 processor
7010 lt_prog_compiler_static='-Bstatic'
7011 else
7012 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7013 fi
7014 ;;
7015 darwin*)
7016 # PIC is the default on this platform
7017 # Common symbols not allowed in MH_DYLIB files
7018 case $cc_basename in
7019 xlc*)
7020 lt_prog_compiler_pic='-qnocommon'
7021 lt_prog_compiler_wl='-Wl,'
7022 ;;
7023 esac
7024 ;;
7025
7026 mingw* | cygwin* | pw32* | os2*)
7027 # This hack is so that the source file can tell whether it is being
7028 # built for inclusion in a dll (and should export symbols for example).
7029 lt_prog_compiler_pic='-DDLL_EXPORT'
7030 ;;
7031
7032 hpux9* | hpux10* | hpux11*)
7033 lt_prog_compiler_wl='-Wl,'
7034 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7035 # not for PA HP-UX.
7036 case $host_cpu in
7037 hppa*64*|ia64*)
7038 # +Z the default
7039 ;;
7040 *)
7041 lt_prog_compiler_pic='+Z'
7042 ;;
7043 esac
7044 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7045 lt_prog_compiler_static='${wl}-a ${wl}archive'
7046 ;;
7047
7048 irix5* | irix6* | nonstopux*)
7049 lt_prog_compiler_wl='-Wl,'
7050 # PIC (with -KPIC) is the default.
7051 lt_prog_compiler_static='-non_shared'
7052 ;;
7053
7054 linux* | k*bsd*-gnu)
7055 case $cc_basename in
7056 icc* | ecc*)
7057 lt_prog_compiler_wl='-Wl,'
7058 lt_prog_compiler_pic='-KPIC'
7059 lt_prog_compiler_static='-static'
7060 ;;
7061 pgcc* | pgf77* | pgf90* | pgf95*)
7062 # Portland Group compilers (*not* the Pentium gcc compiler,
7063 # which looks to be a dead project)
7064 lt_prog_compiler_wl='-Wl,'
7065 lt_prog_compiler_pic='-fpic'
7066 lt_prog_compiler_static='-Bstatic'
7067 ;;
7068 ccc*)
7069 lt_prog_compiler_wl='-Wl,'
7070 # All Alpha code is PIC.
7071 lt_prog_compiler_static='-non_shared'
7072 ;;
7073 *)
7074 case `$CC -V 2>&1 | sed 5q` in
7075 *Sun\ C*)
7076 # Sun C 5.9
7077 lt_prog_compiler_pic='-KPIC'
7078 lt_prog_compiler_static='-Bstatic'
7079 lt_prog_compiler_wl='-Wl,'
7080 ;;
7081 *Sun\ F*)
7082 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7083 lt_prog_compiler_pic='-KPIC'
7084 lt_prog_compiler_static='-Bstatic'
7085 lt_prog_compiler_wl=''
7086 ;;
7087 esac
7088 ;;
7089 esac
7090 ;;
7091
7092 newsos6)
7093 lt_prog_compiler_pic='-KPIC'
7094 lt_prog_compiler_static='-Bstatic'
7095 ;;
7096
7097 *nto* | *qnx*)
7098 # QNX uses GNU C++, but need to define -shared option too, otherwise
7099 # it will coredump.
7100 lt_prog_compiler_pic='-fPIC -shared'
7101 ;;
7102
7103 osf3* | osf4* | osf5*)
7104 lt_prog_compiler_wl='-Wl,'
7105 # All OSF/1 code is PIC.
7106 lt_prog_compiler_static='-non_shared'
7107 ;;
7108
7109 rdos*)
7110 lt_prog_compiler_static='-non_shared'
7111 ;;
7112
7113 solaris*)
7114 lt_prog_compiler_pic='-KPIC'
7115 lt_prog_compiler_static='-Bstatic'
7116 case $cc_basename in
7117 f77* | f90* | f95*)
7118 lt_prog_compiler_wl='-Qoption ld ';;
7119 *)
7120 lt_prog_compiler_wl='-Wl,';;
7121 esac
7122 ;;
7123
7124 sunos4*)
7125 lt_prog_compiler_wl='-Qoption ld '
7126 lt_prog_compiler_pic='-PIC'
7127 lt_prog_compiler_static='-Bstatic'
7128 ;;
7129
7130 sysv4 | sysv4.2uw2* | sysv4.3*)
7131 lt_prog_compiler_wl='-Wl,'
7132 lt_prog_compiler_pic='-KPIC'
7133 lt_prog_compiler_static='-Bstatic'
7134 ;;
7135
7136 sysv4*MP*)
7137 if test -d /usr/nec ;then
7138 lt_prog_compiler_pic='-Kconform_pic'
7139 lt_prog_compiler_static='-Bstatic'
7140 fi
7141 ;;
7142
7143 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7144 lt_prog_compiler_wl='-Wl,'
7145 lt_prog_compiler_pic='-KPIC'
7146 lt_prog_compiler_static='-Bstatic'
7147 ;;
7148
7149 unicos*)
7150 lt_prog_compiler_wl='-Wl,'
7151 lt_prog_compiler_can_build_shared=no
7152 ;;
7153
7154 uts4*)
7155 lt_prog_compiler_pic='-pic'
7156 lt_prog_compiler_static='-Bstatic'
7157 ;;
7158
7159 *)
7160 lt_prog_compiler_can_build_shared=no
7161 ;;
7162 esac
7163 fi
7164
7165case $host_os in
7166 # For platforms which do not support PIC, -DPIC is meaningless:
7167 *djgpp*)
7168 lt_prog_compiler_pic=
7169 ;;
7170 *)
7171 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7172 ;;
7173esac
7174echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7175echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7176
7177
7178
7179
7180
7181
7182#
7183# Check to make sure the PIC flag actually works.
7184#
7185if test -n "$lt_prog_compiler_pic"; then
7186 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7187echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7188if test "${lt_prog_compiler_pic_works+set}" = set; then
7189 echo $ECHO_N "(cached) $ECHO_C" >&6
7190else
7191 lt_prog_compiler_pic_works=no
7192 ac_outfile=conftest.$ac_objext
7193 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7194 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7195 # Insert the option either (1) after the last *FLAGS variable, or
7196 # (2) before a word containing "conftest.", or (3) at the end.
7197 # Note that $ac_compile itself does not contain backslashes and begins
7198 # with a dollar sign (not a hyphen), so the echo should work correctly.
7199 # The option is referenced via a variable to avoid confusing sed.
7200 lt_compile=`echo "$ac_compile" | $SED \
7201 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7202 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7203 -e 's:$: $lt_compiler_flag:'`
7204 (eval echo "\"\$as_me:7204: $lt_compile\"" >&5)
7205 (eval "$lt_compile" 2>conftest.err)
7206 ac_status=$?
7207 cat conftest.err >&5
7208 echo "$as_me:7208: \$? = $ac_status" >&5
7209 if (exit $ac_status) && test -s "$ac_outfile"; then
7210 # The compiler can only warn and ignore the option if not recognized
7211 # So say no if there are warnings other than the usual output.
7212 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7213 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7214 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7215 lt_prog_compiler_pic_works=yes
7216 fi
7217 fi
7218 $RM conftest*
7219
7220fi
7221echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7222echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7223
7224if test x"$lt_prog_compiler_pic_works" = xyes; then
7225 case $lt_prog_compiler_pic in
7226 "" | " "*) ;;
7227 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7228 esac
7229else
7230 lt_prog_compiler_pic=
7231 lt_prog_compiler_can_build_shared=no
7232fi
7233
7234fi
7235
7236
7237
7238
7239
7240
7241#
7242# Check to make sure the static flag actually works.
7243#
7244wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7245echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7246echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7247if test "${lt_prog_compiler_static_works+set}" = set; then
7248 echo $ECHO_N "(cached) $ECHO_C" >&6
7249else
7250 lt_prog_compiler_static_works=no
7251 save_LDFLAGS="$LDFLAGS"
7252 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7253 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7254 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7255 # The linker can only warn and ignore the option if not recognized
7256 # So say no if there are warnings
7257 if test -s conftest.err; then
7258 # Append any errors to the config.log.
7259 cat conftest.err 1>&5
7260 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7261 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7262 if diff conftest.exp conftest.er2 >/dev/null; then
7263 lt_prog_compiler_static_works=yes
7264 fi
7265 else
7266 lt_prog_compiler_static_works=yes
7267 fi
7268 fi
7269 $RM conftest*
7270 LDFLAGS="$save_LDFLAGS"
7271
7272fi
7273echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7274echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7275
7276if test x"$lt_prog_compiler_static_works" = xyes; then
7277 :
7278else
7279 lt_prog_compiler_static=
7280fi
7281
7282
7283
7284
7285
7286
7287
7288 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7289echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7290if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7291 echo $ECHO_N "(cached) $ECHO_C" >&6
7292else
7293 lt_cv_prog_compiler_c_o=no
7294 $RM -r conftest 2>/dev/null
7295 mkdir conftest
7296 cd conftest
7297 mkdir out
7298 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7299
7300 lt_compiler_flag="-o out/conftest2.$ac_objext"
7301 # Insert the option either (1) after the last *FLAGS variable, or
7302 # (2) before a word containing "conftest.", or (3) at the end.
7303 # Note that $ac_compile itself does not contain backslashes and begins
7304 # with a dollar sign (not a hyphen), so the echo should work correctly.
7305 lt_compile=`echo "$ac_compile" | $SED \
7306 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7307 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7308 -e 's:$: $lt_compiler_flag:'`
7309 (eval echo "\"\$as_me:7309: $lt_compile\"" >&5)
7310 (eval "$lt_compile" 2>out/conftest.err)
7311 ac_status=$?
7312 cat out/conftest.err >&5
7313 echo "$as_me:7313: \$? = $ac_status" >&5
7314 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7315 then
7316 # The compiler can only warn and ignore the option if not recognized
7317 # So say no if there are warnings
7318 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7319 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7320 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7321 lt_cv_prog_compiler_c_o=yes
7322 fi
7323 fi
7324 chmod u+w . 2>&5
7325 $RM conftest*
7326 # SGI C++ compiler will create directory out/ii_files/ for
7327 # template instantiation
7328 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7329 $RM out/* && rmdir out
7330 cd ..
7331 $RM -r conftest
7332 $RM conftest*
7333
7334fi
7335echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7336echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7337
7338
7339
7340
7341
7342
7343 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7344echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7345if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7346 echo $ECHO_N "(cached) $ECHO_C" >&6
7347else
7348 lt_cv_prog_compiler_c_o=no
7349 $RM -r conftest 2>/dev/null
7350 mkdir conftest
7351 cd conftest
7352 mkdir out
7353 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7354
7355 lt_compiler_flag="-o out/conftest2.$ac_objext"
7356 # Insert the option either (1) after the last *FLAGS variable, or
7357 # (2) before a word containing "conftest.", or (3) at the end.
7358 # Note that $ac_compile itself does not contain backslashes and begins
7359 # with a dollar sign (not a hyphen), so the echo should work correctly.
7360 lt_compile=`echo "$ac_compile" | $SED \
7361 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7362 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7363 -e 's:$: $lt_compiler_flag:'`
7364 (eval echo "\"\$as_me:7364: $lt_compile\"" >&5)
7365 (eval "$lt_compile" 2>out/conftest.err)
7366 ac_status=$?
7367 cat out/conftest.err >&5
7368 echo "$as_me:7368: \$? = $ac_status" >&5
7369 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7370 then
7371 # The compiler can only warn and ignore the option if not recognized
7372 # So say no if there are warnings
7373 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7374 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7375 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7376 lt_cv_prog_compiler_c_o=yes
7377 fi
7378 fi
7379 chmod u+w . 2>&5
7380 $RM conftest*
7381 # SGI C++ compiler will create directory out/ii_files/ for
7382 # template instantiation
7383 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7384 $RM out/* && rmdir out
7385 cd ..
7386 $RM -r conftest
7387 $RM conftest*
7388
7389fi
7390echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7391echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7392
7393
7394
7395
7396hard_links="nottested"
7397if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7398 # do not overwrite the value of need_locks provided by the user
7399 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7400echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7401 hard_links=yes
7402 $RM conftest*
7403 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7404 touch conftest.a
7405 ln conftest.a conftest.b 2>&5 || hard_links=no
7406 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7407 echo "$as_me:$LINENO: result: $hard_links" >&5
7408echo "${ECHO_T}$hard_links" >&6
7409 if test "$hard_links" = no; then
7410 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7411echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7412 need_locks=warn
7413 fi
7414else
7415 need_locks=no
7416fi
7417
7418
7419
7420
7421
7422
7423 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7424echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7425
7426 runpath_var=
7427 allow_undefined_flag=
7428 always_export_symbols=no
7429 archive_cmds=
7430 archive_expsym_cmds=
7431 compiler_needs_object=no
7432 enable_shared_with_static_runtimes=no
7433 export_dynamic_flag_spec=
7434 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7435 hardcode_automatic=no
7436 hardcode_direct=no
7437 hardcode_direct_absolute=no
7438 hardcode_libdir_flag_spec=
7439 hardcode_libdir_flag_spec_ld=
7440 hardcode_libdir_separator=
7441 hardcode_minus_L=no
7442 hardcode_shlibpath_var=unsupported
7443 inherit_rpath=no
7444 link_all_deplibs=unknown
7445 module_cmds=
7446 module_expsym_cmds=
7447 old_archive_from_new_cmds=
7448 old_archive_from_expsyms_cmds=
7449 thread_safe_flag_spec=
7450 whole_archive_flag_spec=
7451 # include_expsyms should be a list of space-separated symbols to be *always*
7452 # included in the symbol list
7453 include_expsyms=
7454 # exclude_expsyms can be an extended regexp of symbols to exclude
7455 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7456 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7457 # as well as any symbol that contains `d'.
7458 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7459 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7460 # platforms (ab)use it in PIC code, but their linkers get confused if
7461 # the symbol is explicitly referenced. Since portable code cannot
7462 # rely on this symbol name, it's probably fine to never include it in
7463 # preloaded symbol tables.
7464 extract_expsyms_cmds=
7465
7466 case $host_os in
7467 cygwin* | mingw* | pw32*)
7468 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7469 # When not using gcc, we currently assume that we are using
7470 # Microsoft Visual C++.
7471 if test "$GCC" != yes; then
7472 with_gnu_ld=no
7473 fi
7474 ;;
7475 interix*)
7476 # we just hope/assume this is gcc and not c89 (= MSVC++)
7477 with_gnu_ld=yes
7478 ;;
7479 openbsd*)
7480 with_gnu_ld=no
7481 ;;
7482 esac
7483
7484 ld_shlibs=yes
7485 if test "$with_gnu_ld" = yes; then
7486 # If archive_cmds runs LD, not CC, wlarc should be empty
7487 wlarc='${wl}'
7488
7489 # Set some defaults for GNU ld with shared library support. These
7490 # are reset later if shared libraries are not supported. Putting them
7491 # here allows them to be overridden if necessary.
7492 runpath_var=LD_RUN_PATH
7493 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7494 export_dynamic_flag_spec='${wl}--export-dynamic'
7495 # ancient GNU ld didn't support --whole-archive et. al.
7496 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7497 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7498 else
7499 whole_archive_flag_spec=
7500 fi
7501 supports_anon_versioning=no
7502 case `$LD -v 2>&1` in
7503 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7504 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7505 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7506 *\ 2.11.*) ;; # other 2.11 versions
7507 *) supports_anon_versioning=yes ;;
7508 esac
7509
7510 # See if GNU ld supports shared libraries.
7511 case $host_os in
7512 aix3* | aix4* | aix5*)
7513 # On AIX/PPC, the GNU linker is very broken
7514 if test "$host_cpu" != ia64; then
7515 ld_shlibs=no
7516 cat <<_LT_EOF 1>&2
7517
7518*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7519*** to be unable to reliably create shared libraries on AIX.
7520*** Therefore, libtool is disabling shared libraries support. If you
7521*** really care for shared libraries, you may want to modify your PATH
7522*** so that a non-GNU linker is found, and then restart.
7523
7524_LT_EOF
7525 fi
7526 ;;
7527
7528 amigaos*)
7529 if test "$host_cpu" = m68k; then
7530 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)'
7531 hardcode_libdir_flag_spec='-L$libdir'
7532 hardcode_minus_L=yes
7533 fi
7534
7535 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7536 # that the semantics of dynamic libraries on AmigaOS, at least up
7537 # to version 4, is to share data among multiple programs linked
7538 # with the same dynamic library. Since this doesn't match the
7539 # behavior of shared libraries on other platforms, we can't use
7540 # them.
7541 ld_shlibs=no
7542 ;;
7543
7544 beos*)
7545 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7546 allow_undefined_flag=unsupported
7547 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7548 # support --undefined. This deserves some investigation. FIXME
7549 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7550 else
7551 ld_shlibs=no
7552 fi
7553 ;;
7554
7555 cygwin* | mingw* | pw32*)
7556 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7557 # as there is no search path for DLLs.
7558 hardcode_libdir_flag_spec='-L$libdir'
7559 allow_undefined_flag=unsupported
7560 always_export_symbols=no
7561 enable_shared_with_static_runtimes=yes
7562 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7563
7564 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7565 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7566 # If the export-symbols file already is a .def file (1st line
7567 # is EXPORTS), use it as is; otherwise, prepend...
7568 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7569 cp $export_symbols $output_objdir/$soname.def;
7570 else
7571 echo EXPORTS > $output_objdir/$soname.def;
7572 cat $export_symbols >> $output_objdir/$soname.def;
7573 fi~
7574 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7575 else
7576 ld_shlibs=no
7577 fi
7578 ;;
7579
7580 interix[3-9]*)
7581 hardcode_direct=no
7582 hardcode_shlibpath_var=no
7583 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7584 export_dynamic_flag_spec='${wl}-E'
7585 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7586 # Instead, shared libraries are loaded at an image base (0x10000000 by
7587 # default) and relocated if they conflict, which is a slow very memory
7588 # consuming and fragmenting process. To avoid this, we pick a random,
7589 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7590 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7591 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7592 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'
7593 ;;
7594
7595 gnu* | linux* | tpf* | k*bsd*-gnu)
7596 tmp_diet=no
7597 if test "$host_os" = linux-dietlibc; then
7598 case $cc_basename in
7599 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7600 esac
7601 fi
7602 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7603 && test "$tmp_diet" = no
7604 then
7605 tmp_addflag=
7606 case $cc_basename,$host_cpu in
7607 pgcc*) # Portland Group C compiler
7608 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'
7609 tmp_addflag=' $pic_flag'
7610 ;;
7611 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7612 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'
7613 tmp_addflag=' $pic_flag -Mnomain' ;;
7614 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7615 tmp_addflag=' -i_dynamic' ;;
7616 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7617 tmp_addflag=' -i_dynamic -nofor_main' ;;
7618 ifc* | ifort*) # Intel Fortran compiler
7619 tmp_addflag=' -nofor_main' ;;
7620 esac
7621 case `$CC -V 2>&1 | sed 5q` in
7622 *Sun\ C*) # Sun C 5.9
7623 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'
7624 compiler_needs_object=yes
7625 tmp_sharedflag='-G' ;;
7626 *Sun\ F*) # Sun Fortran 8.3
7627 tmp_sharedflag='-G' ;;
7628 *)
7629 tmp_sharedflag='-shared' ;;
7630 esac
7631 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7632
7633 if test "x$supports_anon_versioning" = xyes; then
7634 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7635 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7636 echo "local: *; };" >> $output_objdir/$libname.ver~
7637 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7638 fi
7639 else
7640 ld_shlibs=no
7641 fi
7642 ;;
7643
7644 netbsd*)
7645 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7646 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7647 wlarc=
7648 else
7649 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7650 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7651 fi
7652 ;;
7653
7654 solaris*)
7655 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7656 ld_shlibs=no
7657 cat <<_LT_EOF 1>&2
7658
7659*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7660*** create shared libraries on Solaris systems. Therefore, libtool
7661*** is disabling shared libraries support. We urge you to upgrade GNU
7662*** binutils to release 2.9.1 or newer. Another option is to modify
7663*** your PATH or compiler configuration so that the native linker is
7664*** used, and then restart.
7665
7666_LT_EOF
7667 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7668 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7669 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7670 else
7671 ld_shlibs=no
7672 fi
7673 ;;
7674
7675 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7676 case `$LD -v 2>&1` in
7677 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7678 ld_shlibs=no
7679 cat <<_LT_EOF 1>&2
7680
7681*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7682*** reliably create shared libraries on SCO systems. Therefore, libtool
7683*** is disabling shared libraries support. We urge you to upgrade GNU
7684*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7685*** your PATH or compiler configuration so that the native linker is
7686*** used, and then restart.
7687
7688_LT_EOF
7689 ;;
7690 *)
7691 # For security reasons, it is highly recommended that you always
7692 # use absolute paths for naming shared libraries, and exclude the
7693 # DT_RUNPATH tag from executables and libraries. But doing so
7694 # requires that you compile everything twice, which is a pain.
7695 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7696 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7697 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7698 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7699 else
7700 ld_shlibs=no
7701 fi
7702 ;;
7703 esac
7704 ;;
7705
7706 sunos4*)
7707 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7708 wlarc=
7709 hardcode_direct=yes
7710 hardcode_shlibpath_var=no
7711 ;;
7712
7713 *)
7714 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7715 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7716 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7717 else
7718 ld_shlibs=no
7719 fi
7720 ;;
7721 esac
7722
7723 if test "$ld_shlibs" = no; then
7724 runpath_var=
7725 hardcode_libdir_flag_spec=
7726 export_dynamic_flag_spec=
7727 whole_archive_flag_spec=
7728 fi
7729 else
7730 # PORTME fill in a description of your system's linker (not GNU ld)
7731 case $host_os in
7732 aix3*)
7733 allow_undefined_flag=unsupported
7734 always_export_symbols=yes
7735 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'
7736 # Note: this linker hardcodes the directories in LIBPATH if there
7737 # are no directories specified by -L.
7738 hardcode_minus_L=yes
7739 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7740 # Neither direct hardcoding nor static linking is supported with a
7741 # broken collect2.
7742 hardcode_direct=unsupported
7743 fi
7744 ;;
7745
7746 aix4* | aix5*)
7747 if test "$host_cpu" = ia64; then
7748 # On IA64, the linker does run time linking by default, so we don't
7749 # have to do anything special.
7750 aix_use_runtimelinking=no
7751 exp_sym_flag='-Bexport'
7752 no_entry_flag=""
7753 else
7754 # If we're using GNU nm, then we don't want the "-C" option.
7755 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7756 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7757 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'
7758 else
7759 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'
7760 fi
7761 aix_use_runtimelinking=no
7762
7763 # Test if we are trying to use run time linking or normal
7764 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7765 # need to do runtime linking.
7766 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7767 for ld_flag in $LDFLAGS; do
7768 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7769 aix_use_runtimelinking=yes
7770 break
7771 fi
7772 done
7773 ;;
7774 esac
7775
7776 exp_sym_flag='-bexport'
7777 no_entry_flag='-bnoentry'
7778 fi
7779
7780 # When large executables or shared objects are built, AIX ld can
7781 # have problems creating the table of contents. If linking a library
7782 # or program results in "error TOC overflow" add -mminimal-toc to
7783 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7784 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7785
7786 archive_cmds=''
7787 hardcode_direct=yes
7788 hardcode_direct_absolute=yes
7789 hardcode_libdir_separator=':'
7790 link_all_deplibs=yes
7791 file_list_spec='${wl}-f,'
7792
7793 if test "$GCC" = yes; then
7794 case $host_os in aix4.[012]|aix4.[012].*)
7795 # We only want to do this on AIX 4.2 and lower, the check
7796 # below for broken collect2 doesn't work under 4.3+
7797 collect2name=`${CC} -print-prog-name=collect2`
7798 if test -f "$collect2name" &&
7799 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7800 then
7801 # We have reworked collect2
7802 :
7803 else
7804 # We have old collect2
7805 hardcode_direct=unsupported
7806 # It fails to find uninstalled libraries when the uninstalled
7807 # path is not listed in the libpath. Setting hardcode_minus_L
7808 # to unsupported forces relinking
7809 hardcode_minus_L=yes
7810 hardcode_libdir_flag_spec='-L$libdir'
7811 hardcode_libdir_separator=
7812 fi
7813 ;;
7814 esac
7815 shared_flag='-shared'
7816 if test "$aix_use_runtimelinking" = yes; then
7817 shared_flag="$shared_flag "'${wl}-G'
7818 fi
7819 else
7820 # not using gcc
7821 if test "$host_cpu" = ia64; then
7822 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7823 # chokes on -Wl,-G. The following line is correct:
7824 shared_flag='-G'
7825 else
7826 if test "$aix_use_runtimelinking" = yes; then
7827 shared_flag='${wl}-G'
7828 else
7829 shared_flag='${wl}-bM:SRE'
7830 fi
7831 fi
7832 fi
7833
7834 # It seems that -bexpall does not export symbols beginning with
7835 # underscore (_), so it is better to generate a list of symbols to export.
7836 always_export_symbols=yes
7837 if test "$aix_use_runtimelinking" = yes; then
7838 # Warning - without using the other runtime loading flags (-brtl),
7839 # -berok will link without error, but may produce a broken library.
7840 allow_undefined_flag='-berok'
7841 # Determine the default libpath from the value encoded in an
7842 # empty executable.
7843 cat >conftest.$ac_ext <<_ACEOF
7844/* confdefs.h. */
7845_ACEOF
7846cat confdefs.h >>conftest.$ac_ext
7847cat >>conftest.$ac_ext <<_ACEOF
7848/* end confdefs.h. */
7849
7850int
7851main ()
7852{
7853
7854 ;
7855 return 0;
7856}
7857_ACEOF
7858rm -f conftest.$ac_objext conftest$ac_exeext
7859if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7860 (eval $ac_link) 2>conftest.er1
7861 ac_status=$?
7862 grep -v '^ *+' conftest.er1 >conftest.err
7863 rm -f conftest.er1
7864 cat conftest.err >&5
7865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7866 (exit $ac_status); } &&
7867 { ac_try='test -z "$ac_c_werror_flag"
7868 || test ! -s conftest.err'
7869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7870 (eval $ac_try) 2>&5
7871 ac_status=$?
7872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873 (exit $ac_status); }; } &&
7874 { ac_try='test -s conftest$ac_exeext'
7875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7876 (eval $ac_try) 2>&5
7877 ac_status=$?
7878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879 (exit $ac_status); }; }; then
7880
7881lt_aix_libpath_sed='
7882 /Import File Strings/,/^$/ {
7883 /^0/ {
7884 s/^0 *\(.*\)$/\1/
7885 p
7886 }
7887 }'
7888aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7889# Check for a 64-bit object if we didn't find anything.
7890if test -z "$aix_libpath"; then
7891 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7892fi
7893else
7894 echo "$as_me: failed program was:" >&5
7895sed 's/^/| /' conftest.$ac_ext >&5
7896
7897fi
7898rm -f conftest.err conftest.$ac_objext \
7899 conftest$ac_exeext conftest.$ac_ext
7900if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7901
7902 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7903 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"
7904 else
7905 if test "$host_cpu" = ia64; then
7906 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7907 allow_undefined_flag="-z nodefs"
7908 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"
7909 else
7910 # Determine the default libpath from the value encoded in an
7911 # empty executable.
7912 cat >conftest.$ac_ext <<_ACEOF
7913/* confdefs.h. */
7914_ACEOF
7915cat confdefs.h >>conftest.$ac_ext
7916cat >>conftest.$ac_ext <<_ACEOF
7917/* end confdefs.h. */
7918
7919int
7920main ()
7921{
7922
7923 ;
7924 return 0;
7925}
7926_ACEOF
7927rm -f conftest.$ac_objext conftest$ac_exeext
7928if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7929 (eval $ac_link) 2>conftest.er1
7930 ac_status=$?
7931 grep -v '^ *+' conftest.er1 >conftest.err
7932 rm -f conftest.er1
7933 cat conftest.err >&5
7934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7935 (exit $ac_status); } &&
7936 { ac_try='test -z "$ac_c_werror_flag"
7937 || test ! -s conftest.err'
7938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7939 (eval $ac_try) 2>&5
7940 ac_status=$?
7941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7942 (exit $ac_status); }; } &&
7943 { ac_try='test -s conftest$ac_exeext'
7944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7945 (eval $ac_try) 2>&5
7946 ac_status=$?
7947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7948 (exit $ac_status); }; }; then
7949
7950lt_aix_libpath_sed='
7951 /Import File Strings/,/^$/ {
7952 /^0/ {
7953 s/^0 *\(.*\)$/\1/
7954 p
7955 }
7956 }'
7957aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7958# Check for a 64-bit object if we didn't find anything.
7959if test -z "$aix_libpath"; then
7960 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7961fi
7962else
7963 echo "$as_me: failed program was:" >&5
7964sed 's/^/| /' conftest.$ac_ext >&5
7965
7966fi
7967rm -f conftest.err conftest.$ac_objext \
7968 conftest$ac_exeext conftest.$ac_ext
7969if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7970
7971 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7972 # Warning - without using the other run time loading flags,
7973 # -berok will link without error, but may produce a broken library.
7974 no_undefined_flag=' ${wl}-bernotok'
7975 allow_undefined_flag=' ${wl}-berok'
7976 # Exported symbols can be pulled into shared objects from archives
7977 whole_archive_flag_spec='$convenience'
7978 archive_cmds_need_lc=yes
7979 # This is similar to how AIX traditionally builds its shared libraries.
7980 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'
7981 fi
7982 fi
7983 ;;
7984
7985 amigaos*)
7986 if test "$host_cpu" = m68k; then
7987 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)'
7988 hardcode_libdir_flag_spec='-L$libdir'
7989 hardcode_minus_L=yes
7990 fi
7991 # see comment about different semantics on the GNU ld section
7992 ld_shlibs=no
7993 ;;
7994
7995 bsdi[45]*)
7996 export_dynamic_flag_spec=-rdynamic
7997 ;;
7998
7999 cygwin* | mingw* | pw32*)
8000 # When not using gcc, we currently assume that we are using
8001 # Microsoft Visual C++.
8002 # hardcode_libdir_flag_spec is actually meaningless, as there is
8003 # no search path for DLLs.
8004 hardcode_libdir_flag_spec=' '
8005 allow_undefined_flag=unsupported
8006 # Tell ltmain to make .lib files, not .a files.
8007 libext=lib
8008 # Tell ltmain to make .dll files, not .so files.
8009 shrext_cmds=".dll"
8010 # FIXME: Setting linknames here is a bad hack.
8011 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8012 # The linker will automatically build a .lib file if we build a DLL.
8013 old_archive_from_new_cmds='true'
8014 # FIXME: Should let the user specify the lib program.
8015 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8016 fix_srcfile_path='`cygpath -w "$srcfile"`'
8017 enable_shared_with_static_runtimes=yes
8018 ;;
8019
8020 darwin* | rhapsody*)
8021 case $host_os in
8022 rhapsody* | darwin1.[012])
8023 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8024 ;;
8025 *) # Darwin 1.3 on
8026 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
8027 10.[012])
8028 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8029 ;;
8030 10.*)
8031 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8032 ;;
8033 esac
8034 ;;
8035 esac
8036 archive_cmds_need_lc=no
8037 hardcode_direct=no
8038 hardcode_automatic=yes
8039 hardcode_shlibpath_var=unsupported
8040 whole_archive_flag_spec=''
8041 link_all_deplibs=yes
8042 if test "$GCC" = yes ; then
8043 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8044 echo $ECHO_N "(cached) $ECHO_C" >&6
8045else
8046 lt_cv_apple_cc_single_mod=no
8047 if test -z "${LT_MULTI_MODULE}"; then
8048 # By default we will add the -single_module flag. You can override
8049 # by either setting the environment variable LT_MULTI_MODULE
8050 # non-empty at configure time, or by adding -multi-module to the
8051 # link flags.
8052 echo "int foo(void){return 1;}" > conftest.c
8053 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8054 -dynamiclib ${wl}-single_module conftest.c
8055 if test -f libconftest.dylib; then
8056 lt_cv_apple_cc_single_mod=yes
8057 rm libconftest.dylib
8058 fi
8059 rm conftest.$ac_ext
8060 fi
8061fi
8062
8063 output_verbose_link_cmd=echo
8064 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
8065 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8066 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8067 else
8068 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8069 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8070 fi
8071 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8072 module_expsym_cmds='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8073 else
8074 case $cc_basename in
8075 xlc*)
8076 output_verbose_link_cmd=echo
8077 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
8078 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8079 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8080 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8081 module_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8082 ;;
8083 *)
8084 ld_shlibs=no
8085 ;;
8086 esac
8087 fi
8088 ;;
8089
8090 dgux*)
8091 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8092 hardcode_libdir_flag_spec='-L$libdir'
8093 hardcode_shlibpath_var=no
8094 ;;
8095
8096 freebsd1*)
8097 ld_shlibs=no
8098 ;;
8099
8100 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8101 # support. Future versions do this automatically, but an explicit c++rt0.o
8102 # does not break anything, and helps significantly (at the cost of a little
8103 # extra space).
8104 freebsd2.2*)
8105 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8106 hardcode_libdir_flag_spec='-R$libdir'
8107 hardcode_direct=yes
8108 hardcode_shlibpath_var=no
8109 ;;
8110
8111 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8112 freebsd2*)
8113 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8114 hardcode_direct=yes
8115 hardcode_minus_L=yes
8116 hardcode_shlibpath_var=no
8117 ;;
8118
8119 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8120 freebsd* | dragonfly*)
8121 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8122 hardcode_libdir_flag_spec='-R$libdir'
8123 hardcode_direct=yes
8124 hardcode_shlibpath_var=no
8125 ;;
8126
8127 hpux9*)
8128 if test "$GCC" = yes; then
8129 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'
8130 else
8131 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'
8132 fi
8133 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8134 hardcode_libdir_separator=:
8135 hardcode_direct=yes
8136
8137 # hardcode_minus_L: Not really in the search PATH,
8138 # but as the default location of the library.
8139 hardcode_minus_L=yes
8140 export_dynamic_flag_spec='${wl}-E'
8141 ;;
8142
8143 hpux10*)
8144 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8145 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8146 else
8147 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8148 fi
8149 if test "$with_gnu_ld" = no; then
8150 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8151 hardcode_libdir_flag_spec_ld='+b $libdir'
8152 hardcode_libdir_separator=:
8153 hardcode_direct=yes
8154 hardcode_direct_absolute=yes
8155 export_dynamic_flag_spec='${wl}-E'
8156 # hardcode_minus_L: Not really in the search PATH,
8157 # but as the default location of the library.
8158 hardcode_minus_L=yes
8159 fi
8160 ;;
8161
8162 hpux11*)
8163 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8164 case $host_cpu in
8165 hppa*64*)
8166 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8167 ;;
8168 ia64*)
8169 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8170 ;;
8171 *)
8172 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8173 ;;
8174 esac
8175 else
8176 case $host_cpu in
8177 hppa*64*)
8178 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8179 ;;
8180 ia64*)
8181 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8182 ;;
8183 *)
8184 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8185 ;;
8186 esac
8187 fi
8188 if test "$with_gnu_ld" = no; then
8189 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8190 hardcode_libdir_separator=:
8191
8192 case $host_cpu in
8193 hppa*64*|ia64*)
8194 hardcode_direct=no
8195 hardcode_shlibpath_var=no
8196 ;;
8197 *)
8198 hardcode_direct=yes
8199 hardcode_direct_absolute=yes
8200 export_dynamic_flag_spec='${wl}-E'
8201
8202 # hardcode_minus_L: Not really in the search PATH,
8203 # but as the default location of the library.
8204 hardcode_minus_L=yes
8205 ;;
8206 esac
8207 fi
8208 ;;
8209
8210 irix5* | irix6* | nonstopux*)
8211 if test "$GCC" = yes; then
8212 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'
8213 # Try to use the -exported_symbol ld option, if it does not
8214 # work, assume that -exports_file does not work either and
8215 # implicitly export all symbols.
8216 save_LDFLAGS="$LDFLAGS"
8217 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8218 cat >conftest.$ac_ext <<_ACEOF
8219int foo(void) {}
8220_ACEOF
8221rm -f conftest.$ac_objext conftest$ac_exeext
8222if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8223 (eval $ac_link) 2>conftest.er1
8224 ac_status=$?
8225 grep -v '^ *+' conftest.er1 >conftest.err
8226 rm -f conftest.er1
8227 cat conftest.err >&5
8228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229 (exit $ac_status); } &&
8230 { ac_try='test -z "$ac_c_werror_flag"
8231 || test ! -s conftest.err'
8232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8233 (eval $ac_try) 2>&5
8234 ac_status=$?
8235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236 (exit $ac_status); }; } &&
8237 { ac_try='test -s conftest$ac_exeext'
8238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8239 (eval $ac_try) 2>&5
8240 ac_status=$?
8241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242 (exit $ac_status); }; }; then
8243 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'
8244
8245else
8246 echo "$as_me: failed program was:" >&5
8247sed 's/^/| /' conftest.$ac_ext >&5
8248
8249fi
8250rm -f conftest.err conftest.$ac_objext \
8251 conftest$ac_exeext conftest.$ac_ext
8252 LDFLAGS="$save_LDFLAGS"
8253 else
8254 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'
8255 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'
8256 fi
8257 archive_cmds_need_lc='no'
8258 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8259 hardcode_libdir_separator=:
8260 inherit_rpath=yes
8261 link_all_deplibs=yes
8262 ;;
8263
8264 netbsd*)
8265 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8266 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8267 else
8268 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8269 fi
8270 hardcode_libdir_flag_spec='-R$libdir'
8271 hardcode_direct=yes
8272 hardcode_shlibpath_var=no
8273 ;;
8274
8275 newsos6)
8276 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8277 hardcode_direct=yes
8278 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8279 hardcode_libdir_separator=:
8280 hardcode_shlibpath_var=no
8281 ;;
8282
8283 *nto* | *qnx*)
8284 ;;
8285
8286 openbsd*)
8287 hardcode_direct=yes
8288 hardcode_shlibpath_var=no
8289 hardcode_direct_absolute=yes
8290 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8291 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8292 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8293 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8294 export_dynamic_flag_spec='${wl}-E'
8295 else
8296 case $host_os in
8297 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8298 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8299 hardcode_libdir_flag_spec='-R$libdir'
8300 ;;
8301 *)
8302 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8303 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8304 ;;
8305 esac
8306 fi
8307 ;;
8308
8309 os2*)
8310 hardcode_libdir_flag_spec='-L$libdir'
8311 hardcode_minus_L=yes
8312 allow_undefined_flag=unsupported
8313 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'
8314 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8315 ;;
8316
8317 osf3*)
8318 if test "$GCC" = yes; then
8319 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8320 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'
8321 else
8322 allow_undefined_flag=' -expect_unresolved \*'
8323 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'
8324 fi
8325 archive_cmds_need_lc='no'
8326 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8327 hardcode_libdir_separator=:
8328 ;;
8329
8330 osf4* | osf5*) # as osf3* with the addition of -msym flag
8331 if test "$GCC" = yes; then
8332 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8333 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'
8334 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8335 else
8336 allow_undefined_flag=' -expect_unresolved \*'
8337 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'
8338 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~
8339 $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'
8340
8341 # Both c and cxx compiler support -rpath directly
8342 hardcode_libdir_flag_spec='-rpath $libdir'
8343 fi
8344 archive_cmds_need_lc='no'
8345 hardcode_libdir_separator=:
8346 ;;
8347
8348 solaris*)
8349 no_undefined_flag=' -z defs'
8350 if test "$GCC" = yes; then
8351 wlarc='${wl}'
8352 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8353 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8354 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8355 else
8356 case `$CC -V 2>&1` in
8357 *"Compilers 5.0"*)
8358 wlarc=''
8359 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8360 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8361 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8362 ;;
8363 *)
8364 wlarc='${wl}'
8365 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8366 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8367 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8368 ;;
8369 esac
8370 fi
8371 hardcode_libdir_flag_spec='-R$libdir'
8372 hardcode_shlibpath_var=no
8373 case $host_os in
8374 solaris2.[0-5] | solaris2.[0-5].*) ;;
8375 *)
8376 # The compiler driver will combine and reorder linker options,
8377 # but understands `-z linker_flag'. GCC discards it without `$wl',
8378 # but is careful enough not to reorder.
8379 # Supported since Solaris 2.6 (maybe 2.5.1?)
8380 if test "$GCC" = yes; then
8381 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8382 else
8383 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8384 fi
8385 ;;
8386 esac
8387 link_all_deplibs=yes
8388 ;;
8389
8390 sunos4*)
8391 if test "x$host_vendor" = xsequent; then
8392 # Use $CC to link under sequent, because it throws in some extra .o
8393 # files that make .init and .fini sections work.
8394 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8395 else
8396 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8397 fi
8398 hardcode_libdir_flag_spec='-L$libdir'
8399 hardcode_direct=yes
8400 hardcode_minus_L=yes
8401 hardcode_shlibpath_var=no
8402 ;;
8403
8404 sysv4)
8405 case $host_vendor in
8406 sni)
8407 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8408 hardcode_direct=yes # is this really true???
8409 ;;
8410 siemens)
8411 ## LD is ld it makes a PLAMLIB
8412 ## CC just makes a GrossModule.
8413 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8414 reload_cmds='$CC -r -o $output$reload_objs'
8415 hardcode_direct=no
8416 ;;
8417 motorola)
8418 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8419 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8420 ;;
8421 esac
8422 runpath_var='LD_RUN_PATH'
8423 hardcode_shlibpath_var=no
8424 ;;
8425
8426 sysv4.3*)
8427 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8428 hardcode_shlibpath_var=no
8429 export_dynamic_flag_spec='-Bexport'
8430 ;;
8431
8432 sysv4*MP*)
8433 if test -d /usr/nec; then
8434 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8435 hardcode_shlibpath_var=no
8436 runpath_var=LD_RUN_PATH
8437 hardcode_runpath_var=yes
8438 ld_shlibs=yes
8439 fi
8440 ;;
8441
8442 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8443 no_undefined_flag='${wl}-z,text'
8444 archive_cmds_need_lc=no
8445 hardcode_shlibpath_var=no
8446 runpath_var='LD_RUN_PATH'
8447
8448 if test "$GCC" = yes; then
8449 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8450 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8451 else
8452 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8453 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8454 fi
8455 ;;
8456
8457 sysv5* | sco3.2v5* | sco5v6*)
8458 # Note: We can NOT use -z defs as we might desire, because we do not
8459 # link with -lc, and that would cause any symbols used from libc to
8460 # always be unresolved, which means just about no library would
8461 # ever link correctly. If we're not using GNU ld we use -z text
8462 # though, which does catch some bad symbols but isn't as heavy-handed
8463 # as -z defs.
8464 no_undefined_flag='${wl}-z,text'
8465 allow_undefined_flag='${wl}-z,nodefs'
8466 archive_cmds_need_lc=no
8467 hardcode_shlibpath_var=no
8468 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8469 hardcode_libdir_separator=':'
8470 link_all_deplibs=yes
8471 export_dynamic_flag_spec='${wl}-Bexport'
8472 runpath_var='LD_RUN_PATH'
8473
8474 if test "$GCC" = yes; then
8475 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8476 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8477 else
8478 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8479 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8480 fi
8481 ;;
8482
8483 uts4*)
8484 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8485 hardcode_libdir_flag_spec='-L$libdir'
8486 hardcode_shlibpath_var=no
8487 ;;
8488
8489 *)
8490 ld_shlibs=no
8491 ;;
8492 esac
8493
8494 if test x$host_vendor = xsni; then
8495 case $host in
8496 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8497 export_dynamic_flag_spec='${wl}-Blargedynsym'
8498 ;;
8499 esac
8500 fi
8501 fi
8502
8503echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8504echo "${ECHO_T}$ld_shlibs" >&6
8505test "$ld_shlibs" = no && can_build_shared=no
8506
8507with_gnu_ld=$with_gnu_ld
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523#
8524# Do we need to explicitly link libc?
8525#
8526case "x$archive_cmds_need_lc" in
8527x|xyes)
8528 # Assume -lc should be added
8529 archive_cmds_need_lc=yes
8530
8531 if test "$enable_shared" = yes && test "$GCC" = yes; then
8532 case $archive_cmds in
8533 *'~'*)
8534 # FIXME: we may have to deal with multi-command sequences.
8535 ;;
8536 '$CC '*)
8537 # Test whether the compiler implicitly links with -lc since on some
8538 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8539 # to ld, don't add -lc before -lgcc.
8540 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8541echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8542 $RM conftest*
8543 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8544
8545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8546 (eval $ac_compile) 2>&5
8547 ac_status=$?
8548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8549 (exit $ac_status); } 2>conftest.err; then
8550 soname=conftest
8551 lib=conftest
8552 libobjs=conftest.$ac_objext
8553 deplibs=
8554 wl=$lt_prog_compiler_wl
8555 pic_flag=$lt_prog_compiler_pic
8556 compiler_flags=-v
8557 linker_flags=-v
8558 verstring=
8559 output_objdir=.
8560 libname=conftest
8561 lt_save_allow_undefined_flag=$allow_undefined_flag
8562 allow_undefined_flag=
8563 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8564 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8565 ac_status=$?
8566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8567 (exit $ac_status); }
8568 then
8569 archive_cmds_need_lc=no
8570 else
8571 archive_cmds_need_lc=yes
8572 fi
8573 allow_undefined_flag=$lt_save_allow_undefined_flag
8574 else
8575 cat conftest.err 1>&5
8576 fi
8577 $RM conftest*
8578 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8579echo "${ECHO_T}$archive_cmds_need_lc" >&6
8580 ;;
8581 esac
8582 fi
8583 ;;
8584esac
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8743echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8744withGCC=$GCC
8745if test "$withGCC" = yes; then
8746 case $host_os in
8747 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8748 *) lt_awk_arg="/^libraries:/" ;;
8749 esac
8750 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8751 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8752 # if the path contains ";" then we assume it to be the separator
8753 # otherwise default to the standard path separator (i.e. ":") - it is
8754 # assumed that no part of a normal pathname contains ";" but that should
8755 # okay in the real world where ";" in dirpaths is itself problematic.
8756 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8757 else
8758 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8759 fi
8760 # Ok, now we have the path, separated by spaces, we can step through it
8761 # and add multilib dir if necessary.
8762 lt_tmp_lt_search_path_spec=
8763 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8764 for lt_sys_path in $lt_search_path_spec; do
8765 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8766 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8767 else
8768 test -d "$lt_sys_path" && \
8769 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8770 fi
8771 done
8772 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8773BEGIN {RS=" "; FS="/|\n";} {
8774 lt_foo="";
8775 lt_count=0;
8776 for (lt_i = NF; lt_i > 0; lt_i--) {
8777 if ($lt_i != "" && $lt_i != ".") {
8778 if ($lt_i == "..") {
8779 lt_count++;
8780 } else {
8781 if (lt_count == 0) {
8782 lt_foo="/" $lt_i lt_foo;
8783 } else {
8784 lt_count--;
8785 }
8786 }
8787 }
8788 }
8789 if (lt_foo != "") { lt_freq[lt_foo]++; }
8790 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8791}'`
8792 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8793else
8794 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8795fi
8796library_names_spec=
8797libname_spec='lib$name'
8798soname_spec=
8799shrext_cmds=".so"
8800postinstall_cmds=
8801postuninstall_cmds=
8802finish_cmds=
8803finish_eval=
8804shlibpath_var=
8805shlibpath_overrides_runpath=unknown
8806version_type=none
8807dynamic_linker="$host_os ld.so"
8808sys_lib_dlsearch_path_spec="/lib /usr/lib"
8809need_lib_prefix=unknown
8810hardcode_into_libs=no
8811
8812# when you set need_version to no, make sure it does not cause -set_version
8813# flags to be left without arguments
8814need_version=unknown
8815
8816case $host_os in
8817aix3*)
8818 version_type=linux
8819 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8820 shlibpath_var=LIBPATH
8821
8822 # AIX 3 has no versioning support, so we append a major version to the name.
8823 soname_spec='${libname}${release}${shared_ext}$major'
8824 ;;
8825
8826aix4* | aix5*)
8827 version_type=linux
8828 need_lib_prefix=no
8829 need_version=no
8830 hardcode_into_libs=yes
8831 if test "$host_cpu" = ia64; then
8832 # AIX 5 supports IA64
8833 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8834 shlibpath_var=LD_LIBRARY_PATH
8835 else
8836 # With GCC up to 2.95.x, collect2 would create an import file
8837 # for dependence libraries. The import file would start with
8838 # the line `#! .'. This would cause the generated library to
8839 # depend on `.', always an invalid library. This was fixed in
8840 # development snapshots of GCC prior to 3.0.
8841 case $host_os in
8842 aix4 | aix4.[01] | aix4.[01].*)
8843 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8844 echo ' yes '
8845 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8846 :
8847 else
8848 can_build_shared=no
8849 fi
8850 ;;
8851 esac
8852 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8853 # soname into executable. Probably we can add versioning support to
8854 # collect2, so additional links can be useful in future.
8855 if test "$aix_use_runtimelinking" = yes; then
8856 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8857 # instead of lib<name>.a to let people know that these are not
8858 # typical AIX shared libraries.
8859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8860 else
8861 # We preserve .a as extension for shared libraries through AIX4.2
8862 # and later when we are not doing run time linking.
8863 library_names_spec='${libname}${release}.a $libname.a'
8864 soname_spec='${libname}${release}${shared_ext}$major'
8865 fi
8866 shlibpath_var=LIBPATH
8867 fi
8868 ;;
8869
8870amigaos*)
8871 if test "$host_cpu" = m68k; then
8872 library_names_spec='$libname.ixlibrary $libname.a'
8873 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8874 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'
8875 else
8876 dynamic_linker=no
8877 fi
8878 ;;
8879
8880beos*)
8881 library_names_spec='${libname}${shared_ext}'
8882 dynamic_linker="$host_os ld.so"
8883 shlibpath_var=LIBRARY_PATH
8884 ;;
8885
8886bsdi[45]*)
8887 version_type=linux
8888 need_version=no
8889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8890 soname_spec='${libname}${release}${shared_ext}$major'
8891 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8892 shlibpath_var=LD_LIBRARY_PATH
8893 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8894 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8895 # the default ld.so.conf also contains /usr/contrib/lib and
8896 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8897 # libtool to hard-code these into programs
8898 ;;
8899
8900cygwin* | mingw* | pw32*)
8901 version_type=windows
8902 shrext_cmds=".dll"
8903 need_version=no
8904 need_lib_prefix=no
8905
8906 case $withGCC,$host_os in
8907 yes,cygwin* | yes,mingw* | yes,pw32*)
8908 library_names_spec='$libname.dll.a'
8909 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8910 postinstall_cmds='base_file=`basename \${file}`~
8911 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8912 dldir=$destdir/`dirname \$dlpath`~
8913 test -d \$dldir || mkdir -p \$dldir~
8914 $install_prog $dir/$dlname \$dldir/$dlname~
8915 chmod a+x \$dldir/$dlname~
8916 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8917 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8918 fi'
8919 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8920 dlpath=$dir/\$dldll~
8921 $RM \$dlpath'
8922 shlibpath_overrides_runpath=yes
8923
8924 case $host_os in
8925 cygwin*)
8926 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8927 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8928 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8929 ;;
8930 mingw*)
8931 # MinGW DLLs use traditional 'lib' prefix
8932 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8933 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8934 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8935 # It is most probably a Windows format PATH printed by
8936 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8937 # path with ; separators, and with drive letters. We can handle the
8938 # drive letters (cygwin fileutils understands them), so leave them,
8939 # especially as we might pass files found there to a mingw objdump,
8940 # which wouldn't understand a cygwinified path. Ahh.
8941 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8942 else
8943 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8944 fi
8945 ;;
8946 pw32*)
8947 # pw32 DLLs use 'pw' prefix rather than 'lib'
8948 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8949 ;;
8950 esac
8951 ;;
8952
8953 *)
8954 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8955 ;;
8956 esac
8957 dynamic_linker='Win32 ld.exe'
8958 # FIXME: first we should search . and the directory the executable is in
8959 shlibpath_var=PATH
8960 ;;
8961
8962darwin* | rhapsody*)
8963 dynamic_linker="$host_os dyld"
8964 version_type=darwin
8965 need_lib_prefix=no
8966 need_version=no
8967 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8968 soname_spec='${libname}${release}${major}$shared_ext'
8969 shlibpath_overrides_runpath=yes
8970 shlibpath_var=DYLD_LIBRARY_PATH
8971 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8972
8973 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8974 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8975 ;;
8976
8977dgux*)
8978 version_type=linux
8979 need_lib_prefix=no
8980 need_version=no
8981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8982 soname_spec='${libname}${release}${shared_ext}$major'
8983 shlibpath_var=LD_LIBRARY_PATH
8984 ;;
8985
8986freebsd1*)
8987 dynamic_linker=no
8988 ;;
8989
8990freebsd* | dragonfly*)
8991 # DragonFly does not have aout. When/if they implement a new
8992 # versioning mechanism, adjust this.
8993 if test -x /usr/bin/objformat; then
8994 objformat=`/usr/bin/objformat`
8995 else
8996 case $host_os in
8997 freebsd[123]*) objformat=aout ;;
8998 *) objformat=elf ;;
8999 esac
9000 fi
9001 version_type=freebsd-$objformat
9002 case $version_type in
9003 freebsd-elf*)
9004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9005 need_version=no
9006 need_lib_prefix=no
9007 ;;
9008 freebsd-*)
9009 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9010 need_version=yes
9011 ;;
9012 esac
9013 shlibpath_var=LD_LIBRARY_PATH
9014 case $host_os in
9015 freebsd2*)
9016 shlibpath_overrides_runpath=yes
9017 ;;
9018 freebsd3.[01]* | freebsdelf3.[01]*)
9019 shlibpath_overrides_runpath=yes
9020 hardcode_into_libs=yes
9021 ;;
9022 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9023 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9024 shlibpath_overrides_runpath=no
9025 hardcode_into_libs=yes
9026 ;;
9027 *) # from 4.6 on, and DragonFly
9028 shlibpath_overrides_runpath=yes
9029 hardcode_into_libs=yes
9030 ;;
9031 esac
9032 ;;
9033
9034gnu*)
9035 version_type=linux
9036 need_lib_prefix=no
9037 need_version=no
9038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9039 soname_spec='${libname}${release}${shared_ext}$major'
9040 shlibpath_var=LD_LIBRARY_PATH
9041 hardcode_into_libs=yes
9042 ;;
9043
9044hpux9* | hpux10* | hpux11*)
9045 # Give a soname corresponding to the major version so that dld.sl refuses to
9046 # link against other versions.
9047 version_type=sunos
9048 need_lib_prefix=no
9049 need_version=no
9050 case $host_cpu in
9051 ia64*)
9052 shrext_cmds='.so'
9053 hardcode_into_libs=yes
9054 dynamic_linker="$host_os dld.so"
9055 shlibpath_var=LD_LIBRARY_PATH
9056 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9058 soname_spec='${libname}${release}${shared_ext}$major'
9059 if test "X$HPUX_IA64_MODE" = X32; then
9060 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9061 else
9062 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9063 fi
9064 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9065 ;;
9066 hppa*64*)
9067 shrext_cmds='.sl'
9068 hardcode_into_libs=yes
9069 dynamic_linker="$host_os dld.sl"
9070 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9071 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9073 soname_spec='${libname}${release}${shared_ext}$major'
9074 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9075 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9076 ;;
9077 *)
9078 shrext_cmds='.sl'
9079 dynamic_linker="$host_os dld.sl"
9080 shlibpath_var=SHLIB_PATH
9081 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9083 soname_spec='${libname}${release}${shared_ext}$major'
9084 ;;
9085 esac
9086 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9087 postinstall_cmds='chmod 555 $lib'
9088 ;;
9089
9090interix[3-9]*)
9091 version_type=linux
9092 need_lib_prefix=no
9093 need_version=no
9094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9095 soname_spec='${libname}${release}${shared_ext}$major'
9096 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9097 shlibpath_var=LD_LIBRARY_PATH
9098 shlibpath_overrides_runpath=no
9099 hardcode_into_libs=yes
9100 ;;
9101
9102irix5* | irix6* | nonstopux*)
9103 case $host_os in
9104 nonstopux*) version_type=nonstopux ;;
9105 *)
9106 if test "$lt_cv_prog_gnu_ld" = yes; then
9107 version_type=linux
9108 else
9109 version_type=irix
9110 fi ;;
9111 esac
9112 need_lib_prefix=no
9113 need_version=no
9114 soname_spec='${libname}${release}${shared_ext}$major'
9115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9116 case $host_os in
9117 irix5* | nonstopux*)
9118 libsuff= shlibsuff=
9119 ;;
9120 *)
9121 case $LD in # libtool.m4 will add one of these switches to LD
9122 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9123 libsuff= shlibsuff= libmagic=32-bit;;
9124 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9125 libsuff=32 shlibsuff=N32 libmagic=N32;;
9126 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9127 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9128 *) libsuff= shlibsuff= libmagic=never-match;;
9129 esac
9130 ;;
9131 esac
9132 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9133 shlibpath_overrides_runpath=no
9134 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9135 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9136 hardcode_into_libs=yes
9137 ;;
9138
9139# No shared lib support for Linux oldld, aout, or coff.
9140linux*oldld* | linux*aout* | linux*coff*)
9141 dynamic_linker=no
9142 ;;
9143
9144# This must be Linux ELF.
9145linux* | k*bsd*-gnu)
9146 version_type=linux
9147 need_lib_prefix=no
9148 need_version=no
9149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9150 soname_spec='${libname}${release}${shared_ext}$major'
9151 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9152 shlibpath_var=LD_LIBRARY_PATH
9153 shlibpath_overrides_runpath=no
9154 # Some binutils ld are patched to set DT_RUNPATH
9155 save_LDFLAGS=$LDFLAGS
9156 save_libdir=$libdir
9157 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9158 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9159 cat >conftest.$ac_ext <<_ACEOF
9160/* confdefs.h. */
9161_ACEOF
9162cat confdefs.h >>conftest.$ac_ext
9163cat >>conftest.$ac_ext <<_ACEOF
9164/* end confdefs.h. */
9165
9166int
9167main ()
9168{
9169
9170 ;
9171 return 0;
9172}
9173_ACEOF
9174rm -f conftest.$ac_objext conftest$ac_exeext
9175if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9176 (eval $ac_link) 2>conftest.er1
9177 ac_status=$?
9178 grep -v '^ *+' conftest.er1 >conftest.err
9179 rm -f conftest.er1
9180 cat conftest.err >&5
9181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9182 (exit $ac_status); } &&
9183 { ac_try='test -z "$ac_c_werror_flag"
9184 || test ! -s conftest.err'
9185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9186 (eval $ac_try) 2>&5
9187 ac_status=$?
9188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9189 (exit $ac_status); }; } &&
9190 { ac_try='test -s conftest$ac_exeext'
9191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9192 (eval $ac_try) 2>&5
9193 ac_status=$?
9194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9195 (exit $ac_status); }; }; then
9196 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
9197 shlibpath_overrides_runpath=yes
9198fi
9199
9200else
9201 echo "$as_me: failed program was:" >&5
9202sed 's/^/| /' conftest.$ac_ext >&5
9203
9204fi
9205rm -f conftest.err conftest.$ac_objext \
9206 conftest$ac_exeext conftest.$ac_ext
9207 LDFLAGS=$save_LDFLAGS
9208 libdir=$save_libdir
9209
9210 # This implies no fast_install, which is unacceptable.
9211 # Some rework will be needed to allow for fast_install
9212 # before this can be enabled.
9213 hardcode_into_libs=yes
9214
9215 # Append ld.so.conf contents to the search path
9216 if test -f /etc/ld.so.conf; then
9217 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9218 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9219 fi
9220
9221 # We used to test for /lib/ld.so.1 and disable shared libraries on
9222 # powerpc, because MkLinux only supported shared libraries with the
9223 # GNU dynamic linker. Since this was broken with cross compilers,
9224 # most powerpc-linux boxes support dynamic linking these days and
9225 # people can always --disable-shared, the test was removed, and we
9226 # assume the GNU/Linux dynamic linker is in use.
9227 dynamic_linker='GNU/Linux ld.so'
9228 ;;
9229
9230netbsd*)
9231 version_type=sunos
9232 need_lib_prefix=no
9233 need_version=no
9234 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9236 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9237 dynamic_linker='NetBSD (a.out) ld.so'
9238 else
9239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9240 soname_spec='${libname}${release}${shared_ext}$major'
9241 dynamic_linker='NetBSD ld.elf_so'
9242 fi
9243 shlibpath_var=LD_LIBRARY_PATH
9244 shlibpath_overrides_runpath=yes
9245 hardcode_into_libs=yes
9246 ;;
9247
9248newsos6)
9249 version_type=linux
9250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9251 shlibpath_var=LD_LIBRARY_PATH
9252 shlibpath_overrides_runpath=yes
9253 ;;
9254
9255*nto* | *qnx*)
9256 version_type=qnx
9257 need_lib_prefix=no
9258 need_version=no
9259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9260 soname_spec='${libname}${release}${shared_ext}$major'
9261 shlibpath_var=LD_LIBRARY_PATH
9262 shlibpath_overrides_runpath=no
9263 hardcode_into_libs=yes
9264 dynamic_linker='ldqnx.so'
9265 ;;
9266
9267openbsd*)
9268 version_type=sunos
9269 sys_lib_dlsearch_path_spec="/usr/lib"
9270 need_lib_prefix=no
9271 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9272 case $host_os in
9273 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9274 *) need_version=no ;;
9275 esac
9276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9277 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9278 shlibpath_var=LD_LIBRARY_PATH
9279 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9280 case $host_os in
9281 openbsd2.[89] | openbsd2.[89].*)
9282 shlibpath_overrides_runpath=no
9283 ;;
9284 *)
9285 shlibpath_overrides_runpath=yes
9286 ;;
9287 esac
9288 else
9289 shlibpath_overrides_runpath=yes
9290 fi
9291 ;;
9292
9293os2*)
9294 libname_spec='$name'
9295 shrext_cmds=".dll"
9296 need_lib_prefix=no
9297 library_names_spec='$libname${shared_ext} $libname.a'
9298 dynamic_linker='OS/2 ld.exe'
9299 shlibpath_var=LIBPATH
9300 ;;
9301
9302osf3* | osf4* | osf5*)
9303 version_type=osf
9304 need_lib_prefix=no
9305 need_version=no
9306 soname_spec='${libname}${release}${shared_ext}$major'
9307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9308 shlibpath_var=LD_LIBRARY_PATH
9309 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9310 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9311 ;;
9312
9313rdos*)
9314 dynamic_linker=no
9315 ;;
9316
9317solaris*)
9318 version_type=linux
9319 need_lib_prefix=no
9320 need_version=no
9321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9322 soname_spec='${libname}${release}${shared_ext}$major'
9323 shlibpath_var=LD_LIBRARY_PATH
9324 shlibpath_overrides_runpath=yes
9325 hardcode_into_libs=yes
9326 # ldd complains unless libraries are executable
9327 postinstall_cmds='chmod +x $lib'
9328 ;;
9329
9330sunos4*)
9331 version_type=sunos
9332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9333 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9334 shlibpath_var=LD_LIBRARY_PATH
9335 shlibpath_overrides_runpath=yes
9336 if test "$with_gnu_ld" = yes; then
9337 need_lib_prefix=no
9338 fi
9339 need_version=yes
9340 ;;
9341
9342sysv4 | sysv4.3*)
9343 version_type=linux
9344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9345 soname_spec='${libname}${release}${shared_ext}$major'
9346 shlibpath_var=LD_LIBRARY_PATH
9347 case $host_vendor in
9348 sni)
9349 shlibpath_overrides_runpath=no
9350 need_lib_prefix=no
9351 runpath_var=LD_RUN_PATH
9352 ;;
9353 siemens)
9354 need_lib_prefix=no
9355 ;;
9356 motorola)
9357 need_lib_prefix=no
9358 need_version=no
9359 shlibpath_overrides_runpath=no
9360 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9361 ;;
9362 esac
9363 ;;
9364
9365sysv4*MP*)
9366 if test -d /usr/nec ;then
9367 version_type=linux
9368 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9369 soname_spec='$libname${shared_ext}.$major'
9370 shlibpath_var=LD_LIBRARY_PATH
9371 fi
9372 ;;
9373
9374sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9375 version_type=freebsd-elf
9376 need_lib_prefix=no
9377 need_version=no
9378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9379 soname_spec='${libname}${release}${shared_ext}$major'
9380 shlibpath_var=LD_LIBRARY_PATH
9381 shlibpath_overrides_runpath=yes
9382 hardcode_into_libs=yes
9383 if test "$with_gnu_ld" = yes; then
9384 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9385 else
9386 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9387 case $host_os in
9388 sco3.2v5*)
9389 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9390 ;;
9391 esac
9392 fi
9393 sys_lib_dlsearch_path_spec='/usr/lib'
9394 ;;
9395
9396tpf*)
9397 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9398 version_type=linux
9399 need_lib_prefix=no
9400 need_version=no
9401 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9402 shlibpath_var=LD_LIBRARY_PATH
9403 shlibpath_overrides_runpath=no
9404 hardcode_into_libs=yes
9405 ;;
9406
9407uts4*)
9408 version_type=linux
9409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9410 soname_spec='${libname}${release}${shared_ext}$major'
9411 shlibpath_var=LD_LIBRARY_PATH
9412 ;;
9413
9414*)
9415 dynamic_linker=no
9416 ;;
9417esac
9418echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9419echo "${ECHO_T}$dynamic_linker" >&6
9420test "$dynamic_linker" = no && can_build_shared=no
9421
9422variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9423if test "$GCC" = yes; then
9424 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9425fi
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9514echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9515hardcode_action=
9516if test -n "$hardcode_libdir_flag_spec" ||
9517 test -n "$runpath_var" ||
9518 test "X$hardcode_automatic" = "Xyes" ; then
9519
9520 # We can hardcode non-existent directories.
9521 if test "$hardcode_direct" != no &&
9522 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9523 # have to relink, otherwise we might link with an installed library
9524 # when we should be linking with a yet-to-be-installed one
9525 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9526 test "$hardcode_minus_L" != no; then
9527 # Linking always hardcodes the temporary library directory.
9528 hardcode_action=relink
9529 else
9530 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9531 hardcode_action=immediate
9532 fi
9533else
9534 # We cannot hardcode anything, or else we can only hardcode existing
9535 # directories.
9536 hardcode_action=unsupported
9537fi
9538echo "$as_me:$LINENO: result: $hardcode_action" >&5
9539echo "${ECHO_T}$hardcode_action" >&6
9540
9541if test "$hardcode_action" = relink ||
9542 test "$inherit_rpath" = yes; then
9543 # Fast installation is not supported
9544 enable_fast_install=no
9545elif test "$shlibpath_overrides_runpath" = yes ||
9546 test "$enable_shared" = no; then
9547 # Fast installation is not necessary
9548 enable_fast_install=needless
9549fi
9550
9551
9552
9553
9554
9555
9556 if test "x$enable_dlopen" != xyes; then
9557 enable_dlopen=unknown
9558 enable_dlopen_self=unknown
9559 enable_dlopen_self_static=unknown
9560else
9561 lt_cv_dlopen=no
9562 lt_cv_dlopen_libs=
9563
9564 case $host_os in
9565 beos*)
9566 lt_cv_dlopen="load_add_on"
9567 lt_cv_dlopen_libs=
9568 lt_cv_dlopen_self=yes
9569 ;;
9570
9571 mingw* | pw32*)
9572 lt_cv_dlopen="LoadLibrary"
9573 lt_cv_dlopen_libs=
9574 ;;
9575
9576 cygwin*)
9577 lt_cv_dlopen="dlopen"
9578 lt_cv_dlopen_libs=
9579 ;;
9580
9581 darwin*)
9582 # if libdl is installed we need to link against it
9583 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9584echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9585if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9586 echo $ECHO_N "(cached) $ECHO_C" >&6
9587else
9588 ac_check_lib_save_LIBS=$LIBS
9589LIBS="-ldl $LIBS"
9590cat >conftest.$ac_ext <<_ACEOF
9591/* confdefs.h. */
9592_ACEOF
9593cat confdefs.h >>conftest.$ac_ext
9594cat >>conftest.$ac_ext <<_ACEOF
9595/* end confdefs.h. */
9596
9597/* Override any gcc2 internal prototype to avoid an error. */
9598#ifdef __cplusplus
9599extern "C"
9600#endif
9601/* We use char because int might match the return type of a gcc2
9602 builtin and then its argument prototype would still apply. */
9603char dlopen ();
9604int
9605main ()
9606{
9607dlopen ();
9608 ;
9609 return 0;
9610}
9611_ACEOF
9612rm -f conftest.$ac_objext conftest$ac_exeext
9613if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9614 (eval $ac_link) 2>conftest.er1
9615 ac_status=$?
9616 grep -v '^ *+' conftest.er1 >conftest.err
9617 rm -f conftest.er1
9618 cat conftest.err >&5
9619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9620 (exit $ac_status); } &&
9621 { ac_try='test -z "$ac_c_werror_flag"
9622 || test ! -s conftest.err'
9623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9624 (eval $ac_try) 2>&5
9625 ac_status=$?
9626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9627 (exit $ac_status); }; } &&
9628 { ac_try='test -s conftest$ac_exeext'
9629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9630 (eval $ac_try) 2>&5
9631 ac_status=$?
9632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633 (exit $ac_status); }; }; then
9634 ac_cv_lib_dl_dlopen=yes
9635else
9636 echo "$as_me: failed program was:" >&5
9637sed 's/^/| /' conftest.$ac_ext >&5
9638
9639ac_cv_lib_dl_dlopen=no
9640fi
9641rm -f conftest.err conftest.$ac_objext \
9642 conftest$ac_exeext conftest.$ac_ext
9643LIBS=$ac_check_lib_save_LIBS
9644fi
9645echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9646echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9647if test $ac_cv_lib_dl_dlopen = yes; then
9648 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9649else
9650
9651 lt_cv_dlopen="dyld"
9652 lt_cv_dlopen_libs=
9653 lt_cv_dlopen_self=yes
9654
9655fi
9656
9657 ;;
9658
9659 *)
9660 echo "$as_me:$LINENO: checking for shl_load" >&5
9661echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9662if test "${ac_cv_func_shl_load+set}" = set; then
9663 echo $ECHO_N "(cached) $ECHO_C" >&6
9664else
9665 cat >conftest.$ac_ext <<_ACEOF
9666/* confdefs.h. */
9667_ACEOF
9668cat confdefs.h >>conftest.$ac_ext
9669cat >>conftest.$ac_ext <<_ACEOF
9670/* end confdefs.h. */
9671/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9672 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9673#define shl_load innocuous_shl_load
9674
9675/* System header to define __stub macros and hopefully few prototypes,
9676 which can conflict with char shl_load (); below.
9677 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9678 <limits.h> exists even on freestanding compilers. */
9679
9680#ifdef __STDC__
9681# include <limits.h>
9682#else
9683# include <assert.h>
9684#endif
9685
9686#undef shl_load
9687
9688/* Override any gcc2 internal prototype to avoid an error. */
9689#ifdef __cplusplus
9690extern "C"
9691{
9692#endif
9693/* We use char because int might match the return type of a gcc2
9694 builtin and then its argument prototype would still apply. */
9695char shl_load ();
9696/* The GNU C library defines this for functions which it implements
9697 to always fail with ENOSYS. Some functions are actually named
9698 something starting with __ and the normal name is an alias. */
9699#if defined (__stub_shl_load) || defined (__stub___shl_load)
9700choke me
9701#else
9702char (*f) () = shl_load;
9703#endif
9704#ifdef __cplusplus
9705}
9706#endif
9707
9708int
9709main ()
9710{
9711return f != shl_load;
9712 ;
9713 return 0;
9714}
9715_ACEOF
9716rm -f conftest.$ac_objext conftest$ac_exeext
9717if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9718 (eval $ac_link) 2>conftest.er1
9719 ac_status=$?
9720 grep -v '^ *+' conftest.er1 >conftest.err
9721 rm -f conftest.er1
9722 cat conftest.err >&5
9723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9724 (exit $ac_status); } &&
9725 { ac_try='test -z "$ac_c_werror_flag"
9726 || test ! -s conftest.err'
9727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9728 (eval $ac_try) 2>&5
9729 ac_status=$?
9730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731 (exit $ac_status); }; } &&
9732 { ac_try='test -s conftest$ac_exeext'
9733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9734 (eval $ac_try) 2>&5
9735 ac_status=$?
9736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9737 (exit $ac_status); }; }; then
9738 ac_cv_func_shl_load=yes
9739else
9740 echo "$as_me: failed program was:" >&5
9741sed 's/^/| /' conftest.$ac_ext >&5
9742
9743ac_cv_func_shl_load=no
9744fi
9745rm -f conftest.err conftest.$ac_objext \
9746 conftest$ac_exeext conftest.$ac_ext
9747fi
9748echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9749echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9750if test $ac_cv_func_shl_load = yes; then
9751 lt_cv_dlopen="shl_load"
9752else
9753 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9754echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9755if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9756 echo $ECHO_N "(cached) $ECHO_C" >&6
9757else
9758 ac_check_lib_save_LIBS=$LIBS
9759LIBS="-ldld $LIBS"
9760cat >conftest.$ac_ext <<_ACEOF
9761/* confdefs.h. */
9762_ACEOF
9763cat confdefs.h >>conftest.$ac_ext
9764cat >>conftest.$ac_ext <<_ACEOF
9765/* end confdefs.h. */
9766
9767/* Override any gcc2 internal prototype to avoid an error. */
9768#ifdef __cplusplus
9769extern "C"
9770#endif
9771/* We use char because int might match the return type of a gcc2
9772 builtin and then its argument prototype would still apply. */
9773char shl_load ();
9774int
9775main ()
9776{
9777shl_load ();
9778 ;
9779 return 0;
9780}
9781_ACEOF
9782rm -f conftest.$ac_objext conftest$ac_exeext
9783if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9784 (eval $ac_link) 2>conftest.er1
9785 ac_status=$?
9786 grep -v '^ *+' conftest.er1 >conftest.err
9787 rm -f conftest.er1
9788 cat conftest.err >&5
9789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9790 (exit $ac_status); } &&
9791 { ac_try='test -z "$ac_c_werror_flag"
9792 || test ! -s conftest.err'
9793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9794 (eval $ac_try) 2>&5
9795 ac_status=$?
9796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797 (exit $ac_status); }; } &&
9798 { ac_try='test -s conftest$ac_exeext'
9799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9800 (eval $ac_try) 2>&5
9801 ac_status=$?
9802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9803 (exit $ac_status); }; }; then
9804 ac_cv_lib_dld_shl_load=yes
9805else
9806 echo "$as_me: failed program was:" >&5
9807sed 's/^/| /' conftest.$ac_ext >&5
9808
9809ac_cv_lib_dld_shl_load=no
9810fi
9811rm -f conftest.err conftest.$ac_objext \
9812 conftest$ac_exeext conftest.$ac_ext
9813LIBS=$ac_check_lib_save_LIBS
9814fi
9815echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9816echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9817if test $ac_cv_lib_dld_shl_load = yes; then
9818 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9819else
9820 echo "$as_me:$LINENO: checking for dlopen" >&5
9821echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9822if test "${ac_cv_func_dlopen+set}" = set; then
9823 echo $ECHO_N "(cached) $ECHO_C" >&6
9824else
9825 cat >conftest.$ac_ext <<_ACEOF
9826/* confdefs.h. */
9827_ACEOF
9828cat confdefs.h >>conftest.$ac_ext
9829cat >>conftest.$ac_ext <<_ACEOF
9830/* end confdefs.h. */
9831/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9832 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9833#define dlopen innocuous_dlopen
9834
9835/* System header to define __stub macros and hopefully few prototypes,
9836 which can conflict with char dlopen (); below.
9837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9838 <limits.h> exists even on freestanding compilers. */
9839
9840#ifdef __STDC__
9841# include <limits.h>
9842#else
9843# include <assert.h>
9844#endif
9845
9846#undef dlopen
9847
9848/* Override any gcc2 internal prototype to avoid an error. */
9849#ifdef __cplusplus
9850extern "C"
9851{
9852#endif
9853/* We use char because int might match the return type of a gcc2
9854 builtin and then its argument prototype would still apply. */
9855char dlopen ();
9856/* The GNU C library defines this for functions which it implements
9857 to always fail with ENOSYS. Some functions are actually named
9858 something starting with __ and the normal name is an alias. */
9859#if defined (__stub_dlopen) || defined (__stub___dlopen)
9860choke me
9861#else
9862char (*f) () = dlopen;
9863#endif
9864#ifdef __cplusplus
9865}
9866#endif
9867
9868int
9869main ()
9870{
9871return f != dlopen;
9872 ;
9873 return 0;
9874}
9875_ACEOF
9876rm -f conftest.$ac_objext conftest$ac_exeext
9877if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9878 (eval $ac_link) 2>conftest.er1
9879 ac_status=$?
9880 grep -v '^ *+' conftest.er1 >conftest.err
9881 rm -f conftest.er1
9882 cat conftest.err >&5
9883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884 (exit $ac_status); } &&
9885 { ac_try='test -z "$ac_c_werror_flag"
9886 || test ! -s conftest.err'
9887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9888 (eval $ac_try) 2>&5
9889 ac_status=$?
9890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9891 (exit $ac_status); }; } &&
9892 { ac_try='test -s conftest$ac_exeext'
9893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9894 (eval $ac_try) 2>&5
9895 ac_status=$?
9896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897 (exit $ac_status); }; }; then
9898 ac_cv_func_dlopen=yes
9899else
9900 echo "$as_me: failed program was:" >&5
9901sed 's/^/| /' conftest.$ac_ext >&5
9902
9903ac_cv_func_dlopen=no
9904fi
9905rm -f conftest.err conftest.$ac_objext \
9906 conftest$ac_exeext conftest.$ac_ext
9907fi
9908echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9909echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9910if test $ac_cv_func_dlopen = yes; then
9911 lt_cv_dlopen="dlopen"
9912else
9913 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9914echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9915if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9916 echo $ECHO_N "(cached) $ECHO_C" >&6
9917else
9918 ac_check_lib_save_LIBS=$LIBS
9919LIBS="-ldl $LIBS"
9920cat >conftest.$ac_ext <<_ACEOF
9921/* confdefs.h. */
9922_ACEOF
9923cat confdefs.h >>conftest.$ac_ext
9924cat >>conftest.$ac_ext <<_ACEOF
9925/* end confdefs.h. */
9926
9927/* Override any gcc2 internal prototype to avoid an error. */
9928#ifdef __cplusplus
9929extern "C"
9930#endif
9931/* We use char because int might match the return type of a gcc2
9932 builtin and then its argument prototype would still apply. */
9933char dlopen ();
9934int
9935main ()
9936{
9937dlopen ();
9938 ;
9939 return 0;
9940}
9941_ACEOF
9942rm -f conftest.$ac_objext conftest$ac_exeext
9943if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9944 (eval $ac_link) 2>conftest.er1
9945 ac_status=$?
9946 grep -v '^ *+' conftest.er1 >conftest.err
9947 rm -f conftest.er1
9948 cat conftest.err >&5
9949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9950 (exit $ac_status); } &&
9951 { ac_try='test -z "$ac_c_werror_flag"
9952 || test ! -s conftest.err'
9953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9954 (eval $ac_try) 2>&5
9955 ac_status=$?
9956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957 (exit $ac_status); }; } &&
9958 { ac_try='test -s conftest$ac_exeext'
9959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9960 (eval $ac_try) 2>&5
9961 ac_status=$?
9962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9963 (exit $ac_status); }; }; then
9964 ac_cv_lib_dl_dlopen=yes
9965else
9966 echo "$as_me: failed program was:" >&5
9967sed 's/^/| /' conftest.$ac_ext >&5
9968
9969ac_cv_lib_dl_dlopen=no
9970fi
9971rm -f conftest.err conftest.$ac_objext \
9972 conftest$ac_exeext conftest.$ac_ext
9973LIBS=$ac_check_lib_save_LIBS
9974fi
9975echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9976echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9977if test $ac_cv_lib_dl_dlopen = yes; then
9978 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9979else
9980 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9981echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9982if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9983 echo $ECHO_N "(cached) $ECHO_C" >&6
9984else
9985 ac_check_lib_save_LIBS=$LIBS
9986LIBS="-lsvld $LIBS"
9987cat >conftest.$ac_ext <<_ACEOF
9988/* confdefs.h. */
9989_ACEOF
9990cat confdefs.h >>conftest.$ac_ext
9991cat >>conftest.$ac_ext <<_ACEOF
9992/* end confdefs.h. */
9993
9994/* Override any gcc2 internal prototype to avoid an error. */
9995#ifdef __cplusplus
9996extern "C"
9997#endif
9998/* We use char because int might match the return type of a gcc2
9999 builtin and then its argument prototype would still apply. */
10000char dlopen ();
10001int
10002main ()
10003{
10004dlopen ();
10005 ;
10006 return 0;
10007}
10008_ACEOF
10009rm -f conftest.$ac_objext conftest$ac_exeext
10010if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10011 (eval $ac_link) 2>conftest.er1
10012 ac_status=$?
10013 grep -v '^ *+' conftest.er1 >conftest.err
10014 rm -f conftest.er1
10015 cat conftest.err >&5
10016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10017 (exit $ac_status); } &&
10018 { ac_try='test -z "$ac_c_werror_flag"
10019 || test ! -s conftest.err'
10020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10021 (eval $ac_try) 2>&5
10022 ac_status=$?
10023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024 (exit $ac_status); }; } &&
10025 { ac_try='test -s conftest$ac_exeext'
10026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10027 (eval $ac_try) 2>&5
10028 ac_status=$?
10029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030 (exit $ac_status); }; }; then
10031 ac_cv_lib_svld_dlopen=yes
10032else
10033 echo "$as_me: failed program was:" >&5
10034sed 's/^/| /' conftest.$ac_ext >&5
10035
10036ac_cv_lib_svld_dlopen=no
10037fi
10038rm -f conftest.err conftest.$ac_objext \
10039 conftest$ac_exeext conftest.$ac_ext
10040LIBS=$ac_check_lib_save_LIBS
10041fi
10042echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10043echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10044if test $ac_cv_lib_svld_dlopen = yes; then
10045 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10046else
10047 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10048echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10049if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10050 echo $ECHO_N "(cached) $ECHO_C" >&6
10051else
10052 ac_check_lib_save_LIBS=$LIBS
10053LIBS="-ldld $LIBS"
10054cat >conftest.$ac_ext <<_ACEOF
10055/* confdefs.h. */
10056_ACEOF
10057cat confdefs.h >>conftest.$ac_ext
10058cat >>conftest.$ac_ext <<_ACEOF
10059/* end confdefs.h. */
10060
10061/* Override any gcc2 internal prototype to avoid an error. */
10062#ifdef __cplusplus
10063extern "C"
10064#endif
10065/* We use char because int might match the return type of a gcc2
10066 builtin and then its argument prototype would still apply. */
10067char dld_link ();
10068int
10069main ()
10070{
10071dld_link ();
10072 ;
10073 return 0;
10074}
10075_ACEOF
10076rm -f conftest.$ac_objext conftest$ac_exeext
10077if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10078 (eval $ac_link) 2>conftest.er1
10079 ac_status=$?
10080 grep -v '^ *+' conftest.er1 >conftest.err
10081 rm -f conftest.er1
10082 cat conftest.err >&5
10083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084 (exit $ac_status); } &&
10085 { ac_try='test -z "$ac_c_werror_flag"
10086 || test ! -s conftest.err'
10087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10088 (eval $ac_try) 2>&5
10089 ac_status=$?
10090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10091 (exit $ac_status); }; } &&
10092 { ac_try='test -s conftest$ac_exeext'
10093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10094 (eval $ac_try) 2>&5
10095 ac_status=$?
10096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10097 (exit $ac_status); }; }; then
10098 ac_cv_lib_dld_dld_link=yes
10099else
10100 echo "$as_me: failed program was:" >&5
10101sed 's/^/| /' conftest.$ac_ext >&5
10102
10103ac_cv_lib_dld_dld_link=no
10104fi
10105rm -f conftest.err conftest.$ac_objext \
10106 conftest$ac_exeext conftest.$ac_ext
10107LIBS=$ac_check_lib_save_LIBS
10108fi
10109echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10110echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10111if test $ac_cv_lib_dld_dld_link = yes; then
10112 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10113fi
10114
10115
10116fi
10117
10118
10119fi
10120
10121
10122fi
10123
10124
10125fi
10126
10127
10128fi
10129
10130 ;;
10131 esac
10132
10133 if test "x$lt_cv_dlopen" != xno; then
10134 enable_dlopen=yes
10135 else
10136 enable_dlopen=no
10137 fi
10138
10139 case $lt_cv_dlopen in
10140 dlopen)
10141 save_CPPFLAGS="$CPPFLAGS"
10142 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10143
10144 save_LDFLAGS="$LDFLAGS"
10145 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10146
10147 save_LIBS="$LIBS"
10148 LIBS="$lt_cv_dlopen_libs $LIBS"
10149
10150 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10151echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10152if test "${lt_cv_dlopen_self+set}" = set; then
10153 echo $ECHO_N "(cached) $ECHO_C" >&6
10154else
10155 if test "$cross_compiling" = yes; then :
10156 lt_cv_dlopen_self=cross
10157else
10158 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10159 lt_status=$lt_dlunknown
10160 cat > conftest.$ac_ext <<_LT_EOF
10161#line 10161 "configure"
10162#include "confdefs.h"
10163
10164#if HAVE_DLFCN_H
10165#include <dlfcn.h>
10166#endif
10167
10168#include <stdio.h>
10169
10170#ifdef RTLD_GLOBAL
10171# define LT_DLGLOBAL RTLD_GLOBAL
10172#else
10173# ifdef DL_GLOBAL
10174# define LT_DLGLOBAL DL_GLOBAL
10175# else
10176# define LT_DLGLOBAL 0
10177# endif
10178#endif
10179
10180/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10181 find out it does not work in some platform. */
10182#ifndef LT_DLLAZY_OR_NOW
10183# ifdef RTLD_LAZY
10184# define LT_DLLAZY_OR_NOW RTLD_LAZY
10185# else
10186# ifdef DL_LAZY
10187# define LT_DLLAZY_OR_NOW DL_LAZY
10188# else
10189# ifdef RTLD_NOW
10190# define LT_DLLAZY_OR_NOW RTLD_NOW
10191# else
10192# ifdef DL_NOW
10193# define LT_DLLAZY_OR_NOW DL_NOW
10194# else
10195# define LT_DLLAZY_OR_NOW 0
10196# endif
10197# endif
10198# endif
10199# endif
10200#endif
10201
10202#ifdef __cplusplus
10203extern "C" void exit (int);
10204#endif
10205
10206void fnord() { int i=42;}
10207int main ()
10208{
10209 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10210 int status = $lt_dlunknown;
10211
10212 if (self)
10213 {
10214 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10215 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10216 /* dlclose (self); */
10217 }
10218 else
10219 puts (dlerror ());
10220
10221 exit (status);
10222}
10223_LT_EOF
10224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10225 (eval $ac_link) 2>&5
10226 ac_status=$?
10227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10228 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10229 (./conftest; exit; ) >&5 2>/dev/null
10230 lt_status=$?
10231 case x$lt_status in
10232 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10233 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10234 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10235 esac
10236 else :
10237 # compilation failed
10238 lt_cv_dlopen_self=no
10239 fi
10240fi
10241rm -fr conftest*
10242
10243
10244fi
10245echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10246echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10247
10248 if test "x$lt_cv_dlopen_self" = xyes; then
10249 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10250 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10251echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10252if test "${lt_cv_dlopen_self_static+set}" = set; then
10253 echo $ECHO_N "(cached) $ECHO_C" >&6
10254else
10255 if test "$cross_compiling" = yes; then :
10256 lt_cv_dlopen_self_static=cross
10257else
10258 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10259 lt_status=$lt_dlunknown
10260 cat > conftest.$ac_ext <<_LT_EOF
10261#line 10261 "configure"
10262#include "confdefs.h"
10263
10264#if HAVE_DLFCN_H
10265#include <dlfcn.h>
10266#endif
10267
10268#include <stdio.h>
10269
10270#ifdef RTLD_GLOBAL
10271# define LT_DLGLOBAL RTLD_GLOBAL
10272#else
10273# ifdef DL_GLOBAL
10274# define LT_DLGLOBAL DL_GLOBAL
10275# else
10276# define LT_DLGLOBAL 0
10277# endif
10278#endif
10279
10280/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10281 find out it does not work in some platform. */
10282#ifndef LT_DLLAZY_OR_NOW
10283# ifdef RTLD_LAZY
10284# define LT_DLLAZY_OR_NOW RTLD_LAZY
10285# else
10286# ifdef DL_LAZY
10287# define LT_DLLAZY_OR_NOW DL_LAZY
10288# else
10289# ifdef RTLD_NOW
10290# define LT_DLLAZY_OR_NOW RTLD_NOW
10291# else
10292# ifdef DL_NOW
10293# define LT_DLLAZY_OR_NOW DL_NOW
10294# else
10295# define LT_DLLAZY_OR_NOW 0
10296# endif
10297# endif
10298# endif
10299# endif
10300#endif
10301
10302#ifdef __cplusplus
10303extern "C" void exit (int);
10304#endif
10305
10306void fnord() { int i=42;}
10307int main ()
10308{
10309 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10310 int status = $lt_dlunknown;
10311
10312 if (self)
10313 {
10314 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10315 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10316 /* dlclose (self); */
10317 }
10318 else
10319 puts (dlerror ());
10320
10321 exit (status);
10322}
10323_LT_EOF
10324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10325 (eval $ac_link) 2>&5
10326 ac_status=$?
10327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10329 (./conftest; exit; ) >&5 2>/dev/null
10330 lt_status=$?
10331 case x$lt_status in
10332 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10333 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10334 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10335 esac
10336 else :
10337 # compilation failed
10338 lt_cv_dlopen_self_static=no
10339 fi
10340fi
10341rm -fr conftest*
10342
10343
10344fi
10345echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10346echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10347 fi
10348
10349 CPPFLAGS="$save_CPPFLAGS"
10350 LDFLAGS="$save_LDFLAGS"
10351 LIBS="$save_LIBS"
10352 ;;
10353 esac
10354
10355 case $lt_cv_dlopen_self in
10356 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10357 *) enable_dlopen_self=unknown ;;
10358 esac
10359
10360 case $lt_cv_dlopen_self_static in
10361 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10362 *) enable_dlopen_self_static=unknown ;;
10363 esac
10364fi
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382striplib=
10383old_striplib=
10384echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10385echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10386if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10387 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10388 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10389 echo "$as_me:$LINENO: result: yes" >&5
10390echo "${ECHO_T}yes" >&6
10391else
10392# FIXME - insert some real tests, host_os isn't really good enough
10393 case $host_os in
10394 darwin*)
10395 if test -n "$STRIP" ; then
10396 striplib="$STRIP -x"
10397 old_striplib="$STRIP -S"
10398 echo "$as_me:$LINENO: result: yes" >&5
10399echo "${ECHO_T}yes" >&6
10400 else
10401 echo "$as_me:$LINENO: result: no" >&5
10402echo "${ECHO_T}no" >&6
10403 fi
10404 ;;
10405 *)
10406 echo "$as_me:$LINENO: result: no" >&5
10407echo "${ECHO_T}no" >&6
10408 ;;
10409 esac
10410fi
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423 # Report which library types will actually be built
10424 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10425echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10426 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10427echo "${ECHO_T}$can_build_shared" >&6
10428
10429 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10430echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10431 test "$can_build_shared" = "no" && enable_shared=no
10432
10433 # On AIX, shared libraries and static libraries use the same namespace, and
10434 # are all built from PIC.
10435 case $host_os in
10436 aix3*)
10437 test "$enable_shared" = yes && enable_static=no
10438 if test -n "$RANLIB"; then
10439 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10440 postinstall_cmds='$RANLIB $lib'
10441 fi
10442 ;;
10443
10444 aix4* | aix5*)
10445 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10446 test "$enable_shared" = yes && enable_static=no
10447 fi
10448 ;;
10449 esac
10450 echo "$as_me:$LINENO: result: $enable_shared" >&5
10451echo "${ECHO_T}$enable_shared" >&6
10452
10453 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10454echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10455 # Make sure either enable_shared or enable_static is yes.
10456 test "$enable_shared" = yes || enable_static=yes
10457 echo "$as_me:$LINENO: result: $enable_static" >&5
10458echo "${ECHO_T}$enable_static" >&6
10459
10460
10461
10462
10463fi
10464ac_ext=c
10465ac_cpp='$CPP $CPPFLAGS'
10466ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10467ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10468ac_compiler_gnu=$ac_cv_c_compiler_gnu
10469
10470CC="$lt_save_CC"
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484 ac_config_commands="$ac_config_commands libtool"
10485
10486
10487
10488
10489# Only expand once:
10490
10491
10492
10493ALL_LINGUAS="fr sv tr es da vi zh_CN zh_TW ga fi"
10494# If we haven't got the data from the intl directory,
10495# assume NLS is disabled.
10496USE_NLS=no
10497LIBINTL=
10498LIBINTL_DEP=
10499INCINTL=
10500XGETTEXT=
10501GMSGFMT=
10502POSUB=
10503
10504if test -f ../intl/config.intl; then
10505 . ../intl/config.intl
10506fi
10507echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10508echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10509if test x"$USE_NLS" != xyes; then
10510 echo "$as_me:$LINENO: result: no" >&5
10511echo "${ECHO_T}no" >&6
10512else
10513 echo "$as_me:$LINENO: result: yes" >&5
10514echo "${ECHO_T}yes" >&6
10515
10516cat >>confdefs.h <<\_ACEOF
10517#define ENABLE_NLS 1
10518_ACEOF
10519
10520
10521 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
10522echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
10523 # Look for .po and .gmo files in the source directory.
10524 CATALOGS=
10525 XLINGUAS=
10526 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
10527 # If there aren't any .gmo files the shell will give us the
10528 # literal string "../path/to/srcdir/po/*.gmo" which has to be
10529 # weeded out.
10530 case "$cat" in *\**)
10531 continue;;
10532 esac
10533 # The quadruple backslash is collapsed to a double backslash
10534 # by the backticks, then collapsed again by the double quotes,
10535 # leaving us with one backslash in the sed expression (right
10536 # before the dot that mustn't act as a wildcard).
10537 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10538 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
10539 # The user is allowed to set LINGUAS to a list of languages to
10540 # install catalogs for. If it's empty that means "all of them."
10541 if test "x$LINGUAS" = x; then
10542 CATALOGS="$CATALOGS $cat"
10543 XLINGUAS="$XLINGUAS $lang"
10544 else
10545 case "$LINGUAS" in *$lang*)
10546 CATALOGS="$CATALOGS $cat"
10547 XLINGUAS="$XLINGUAS $lang"
10548 ;;
10549 esac
10550 fi
10551 done
10552 LINGUAS="$XLINGUAS"
10553 echo "$as_me:$LINENO: result: $LINGUAS" >&5
10554echo "${ECHO_T}$LINGUAS" >&6
10555
10556
10557 DATADIRNAME=share
10558
10559 INSTOBJEXT=.mo
10560
10561 GENCAT=gencat
10562
10563 CATOBJEXT=.gmo
10564
10565fi
10566
10567 MKINSTALLDIRS=
10568 if test -n "$ac_aux_dir"; then
10569 case "$ac_aux_dir" in
10570 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
10571 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
10572 esac
10573 fi
10574 if test -z "$MKINSTALLDIRS"; then
10575 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
10576 fi
10577
10578
10579
10580 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10581echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10582 # Check whether --enable-nls or --disable-nls was given.
10583if test "${enable_nls+set}" = set; then
10584 enableval="$enable_nls"
10585 USE_NLS=$enableval
10586else
10587 USE_NLS=yes
10588fi;
10589 echo "$as_me:$LINENO: result: $USE_NLS" >&5
10590echo "${ECHO_T}$USE_NLS" >&6
10591
10592
10593
10594
10595
10596
10597# Prepare PATH_SEPARATOR.
10598# The user is always right.
10599if test "${PATH_SEPARATOR+set}" != set; then
10600 echo "#! /bin/sh" >conf$$.sh
10601 echo "exit 0" >>conf$$.sh
10602 chmod +x conf$$.sh
10603 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10604 PATH_SEPARATOR=';'
10605 else
10606 PATH_SEPARATOR=:
10607 fi
10608 rm -f conf$$.sh
10609fi
10610
10611# Find out how to test for executable files. Don't use a zero-byte file,
10612# as systems may use methods other than mode bits to determine executability.
10613cat >conf$$.file <<_ASEOF
10614#! /bin/sh
10615exit 0
10616_ASEOF
10617chmod +x conf$$.file
10618if test -x conf$$.file >/dev/null 2>&1; then
10619 ac_executable_p="test -x"
10620else
10621 ac_executable_p="test -f"
10622fi
10623rm -f conf$$.file
10624
10625# Extract the first word of "msgfmt", so it can be a program name with args.
10626set dummy msgfmt; ac_word=$2
10627echo "$as_me:$LINENO: checking for $ac_word" >&5
10628echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10629if test "${ac_cv_path_MSGFMT+set}" = set; then
10630 echo $ECHO_N "(cached) $ECHO_C" >&6
10631else
10632 case "$MSGFMT" in
10633 [\\/]* | ?:[\\/]*)
10634 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10635 ;;
10636 *)
10637 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10638 for ac_dir in $PATH; do
10639 IFS="$ac_save_IFS"
10640 test -z "$ac_dir" && ac_dir=.
10641 for ac_exec_ext in '' $ac_executable_extensions; do
10642 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10643 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
10644 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10645 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
10646 break 2
10647 fi
10648 fi
10649 done
10650 done
10651 IFS="$ac_save_IFS"
10652 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
10653 ;;
10654esac
10655fi
10656MSGFMT="$ac_cv_path_MSGFMT"
10657if test "$MSGFMT" != ":"; then
10658 echo "$as_me:$LINENO: result: $MSGFMT" >&5
10659echo "${ECHO_T}$MSGFMT" >&6
10660else
10661 echo "$as_me:$LINENO: result: no" >&5
10662echo "${ECHO_T}no" >&6
10663fi
10664
10665 # Extract the first word of "gmsgfmt", so it can be a program name with args.
10666set dummy gmsgfmt; ac_word=$2
10667echo "$as_me:$LINENO: checking for $ac_word" >&5
10668echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10669if test "${ac_cv_path_GMSGFMT+set}" = set; then
10670 echo $ECHO_N "(cached) $ECHO_C" >&6
10671else
10672 case $GMSGFMT in
10673 [\\/]* | ?:[\\/]*)
10674 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
10675 ;;
10676 *)
10677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10678for as_dir in $PATH
10679do
10680 IFS=$as_save_IFS
10681 test -z "$as_dir" && as_dir=.
10682 for ac_exec_ext in '' $ac_executable_extensions; do
10683 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10684 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
10685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10686 break 2
10687 fi
10688done
10689done
10690
10691 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
10692 ;;
10693esac
10694fi
10695GMSGFMT=$ac_cv_path_GMSGFMT
10696
10697if test -n "$GMSGFMT"; then
10698 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
10699echo "${ECHO_T}$GMSGFMT" >&6
10700else
10701 echo "$as_me:$LINENO: result: no" >&5
10702echo "${ECHO_T}no" >&6
10703fi
10704
10705
10706
10707# Prepare PATH_SEPARATOR.
10708# The user is always right.
10709if test "${PATH_SEPARATOR+set}" != set; then
10710 echo "#! /bin/sh" >conf$$.sh
10711 echo "exit 0" >>conf$$.sh
10712 chmod +x conf$$.sh
10713 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10714 PATH_SEPARATOR=';'
10715 else
10716 PATH_SEPARATOR=:
10717 fi
10718 rm -f conf$$.sh
10719fi
10720
10721# Find out how to test for executable files. Don't use a zero-byte file,
10722# as systems may use methods other than mode bits to determine executability.
10723cat >conf$$.file <<_ASEOF
10724#! /bin/sh
10725exit 0
10726_ASEOF
10727chmod +x conf$$.file
10728if test -x conf$$.file >/dev/null 2>&1; then
10729 ac_executable_p="test -x"
10730else
10731 ac_executable_p="test -f"
10732fi
10733rm -f conf$$.file
10734
10735# Extract the first word of "xgettext", so it can be a program name with args.
10736set dummy xgettext; ac_word=$2
10737echo "$as_me:$LINENO: checking for $ac_word" >&5
10738echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10739if test "${ac_cv_path_XGETTEXT+set}" = set; then
10740 echo $ECHO_N "(cached) $ECHO_C" >&6
10741else
10742 case "$XGETTEXT" in
10743 [\\/]* | ?:[\\/]*)
10744 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
10745 ;;
10746 *)
10747 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10748 for ac_dir in $PATH; do
10749 IFS="$ac_save_IFS"
10750 test -z "$ac_dir" && ac_dir=.
10751 for ac_exec_ext in '' $ac_executable_extensions; do
10752 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10753 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
10754 (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
10755 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
10756 break 2
10757 fi
10758 fi
10759 done
10760 done
10761 IFS="$ac_save_IFS"
10762 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
10763 ;;
10764esac
10765fi
10766XGETTEXT="$ac_cv_path_XGETTEXT"
10767if test "$XGETTEXT" != ":"; then
10768 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
10769echo "${ECHO_T}$XGETTEXT" >&6
10770else
10771 echo "$as_me:$LINENO: result: no" >&5
10772echo "${ECHO_T}no" >&6
10773fi
10774
10775 rm -f messages.po
10776
10777
10778# Prepare PATH_SEPARATOR.
10779# The user is always right.
10780if test "${PATH_SEPARATOR+set}" != set; then
10781 echo "#! /bin/sh" >conf$$.sh
10782 echo "exit 0" >>conf$$.sh
10783 chmod +x conf$$.sh
10784 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10785 PATH_SEPARATOR=';'
10786 else
10787 PATH_SEPARATOR=:
10788 fi
10789 rm -f conf$$.sh
10790fi
10791
10792# Find out how to test for executable files. Don't use a zero-byte file,
10793# as systems may use methods other than mode bits to determine executability.
10794cat >conf$$.file <<_ASEOF
10795#! /bin/sh
10796exit 0
10797_ASEOF
10798chmod +x conf$$.file
10799if test -x conf$$.file >/dev/null 2>&1; then
10800 ac_executable_p="test -x"
10801else
10802 ac_executable_p="test -f"
10803fi
10804rm -f conf$$.file
10805
10806# Extract the first word of "msgmerge", so it can be a program name with args.
10807set dummy msgmerge; ac_word=$2
10808echo "$as_me:$LINENO: checking for $ac_word" >&5
10809echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10810if test "${ac_cv_path_MSGMERGE+set}" = set; then
10811 echo $ECHO_N "(cached) $ECHO_C" >&6
10812else
10813 case "$MSGMERGE" in
10814 [\\/]* | ?:[\\/]*)
10815 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
10816 ;;
10817 *)
10818 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10819 for ac_dir in $PATH; do
10820 IFS="$ac_save_IFS"
10821 test -z "$ac_dir" && ac_dir=.
10822 for ac_exec_ext in '' $ac_executable_extensions; do
10823 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10824 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
10825 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
10826 break 2
10827 fi
10828 fi
10829 done
10830 done
10831 IFS="$ac_save_IFS"
10832 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
10833 ;;
10834esac
10835fi
10836MSGMERGE="$ac_cv_path_MSGMERGE"
10837if test "$MSGMERGE" != ":"; then
10838 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
10839echo "${ECHO_T}$MSGMERGE" >&6
10840else
10841 echo "$as_me:$LINENO: result: no" >&5
10842echo "${ECHO_T}no" >&6
10843fi
10844
10845
10846 if test "$GMSGFMT" != ":"; then
10847 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
10848 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10849 : ;
10850 else
10851 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
10852 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
10853echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
10854 GMSGFMT=":"
10855 fi
10856 fi
10857
10858 if test "$XGETTEXT" != ":"; then
10859 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
10860 (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
10861 : ;
10862 else
10863 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
10864echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
10865 XGETTEXT=":"
10866 fi
10867 rm -f messages.po
10868 fi
10869
10870 ac_config_commands="$ac_config_commands default-1"
10871
10872
10873
10874
10875
10876for ac_prog in 'bison -y' byacc
10877do
10878 # Extract the first word of "$ac_prog", so it can be a program name with args.
10879set dummy $ac_prog; ac_word=$2
10880echo "$as_me:$LINENO: checking for $ac_word" >&5
10881echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10882if test "${ac_cv_prog_YACC+set}" = set; then
10883 echo $ECHO_N "(cached) $ECHO_C" >&6
10884else
10885 if test -n "$YACC"; then
10886 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10887else
10888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10889for as_dir in $PATH
10890do
10891 IFS=$as_save_IFS
10892 test -z "$as_dir" && as_dir=.
10893 for ac_exec_ext in '' $ac_executable_extensions; do
10894 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10895 ac_cv_prog_YACC="$ac_prog"
10896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10897 break 2
10898 fi
10899done
10900done
10901
10902fi
10903fi
10904YACC=$ac_cv_prog_YACC
10905if test -n "$YACC"; then
10906 echo "$as_me:$LINENO: result: $YACC" >&5
10907echo "${ECHO_T}$YACC" >&6
10908else
10909 echo "$as_me:$LINENO: result: no" >&5
10910echo "${ECHO_T}no" >&6
10911fi
10912
10913 test -n "$YACC" && break
10914done
10915test -n "$YACC" || YACC="yacc"
10916
10917for ac_prog in flex lex
10918do
10919 # Extract the first word of "$ac_prog", so it can be a program name with args.
10920set dummy $ac_prog; ac_word=$2
10921echo "$as_me:$LINENO: checking for $ac_word" >&5
10922echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10923if test "${ac_cv_prog_LEX+set}" = set; then
10924 echo $ECHO_N "(cached) $ECHO_C" >&6
10925else
10926 if test -n "$LEX"; then
10927 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10928else
10929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10930for as_dir in $PATH
10931do
10932 IFS=$as_save_IFS
10933 test -z "$as_dir" && as_dir=.
10934 for ac_exec_ext in '' $ac_executable_extensions; do
10935 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10936 ac_cv_prog_LEX="$ac_prog"
10937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10938 break 2
10939 fi
10940done
10941done
10942
10943fi
10944fi
10945LEX=$ac_cv_prog_LEX
10946if test -n "$LEX"; then
10947 echo "$as_me:$LINENO: result: $LEX" >&5
10948echo "${ECHO_T}$LEX" >&6
10949else
10950 echo "$as_me:$LINENO: result: no" >&5
10951echo "${ECHO_T}no" >&6
10952fi
10953
10954 test -n "$LEX" && break
10955done
10956test -n "$LEX" || LEX=":"
10957
10958if test -z "$LEXLIB"
10959then
10960 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
10961echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
10962if test "${ac_cv_lib_fl_yywrap+set}" = set; then
10963 echo $ECHO_N "(cached) $ECHO_C" >&6
10964else
10965 ac_check_lib_save_LIBS=$LIBS
10966LIBS="-lfl $LIBS"
10967cat >conftest.$ac_ext <<_ACEOF
10968/* confdefs.h. */
10969_ACEOF
10970cat confdefs.h >>conftest.$ac_ext
10971cat >>conftest.$ac_ext <<_ACEOF
10972/* end confdefs.h. */
10973
10974/* Override any gcc2 internal prototype to avoid an error. */
10975#ifdef __cplusplus
10976extern "C"
10977#endif
10978/* We use char because int might match the return type of a gcc2
10979 builtin and then its argument prototype would still apply. */
10980char yywrap ();
10981int
10982main ()
10983{
10984yywrap ();
10985 ;
10986 return 0;
10987}
10988_ACEOF
10989rm -f conftest.$ac_objext conftest$ac_exeext
10990if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10991 (eval $ac_link) 2>conftest.er1
10992 ac_status=$?
10993 grep -v '^ *+' conftest.er1 >conftest.err
10994 rm -f conftest.er1
10995 cat conftest.err >&5
10996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997 (exit $ac_status); } &&
10998 { ac_try='test -z "$ac_c_werror_flag"
10999 || test ! -s conftest.err'
11000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11001 (eval $ac_try) 2>&5
11002 ac_status=$?
11003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004 (exit $ac_status); }; } &&
11005 { ac_try='test -s conftest$ac_exeext'
11006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11007 (eval $ac_try) 2>&5
11008 ac_status=$?
11009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11010 (exit $ac_status); }; }; then
11011 ac_cv_lib_fl_yywrap=yes
11012else
11013 echo "$as_me: failed program was:" >&5
11014sed 's/^/| /' conftest.$ac_ext >&5
11015
11016ac_cv_lib_fl_yywrap=no
11017fi
11018rm -f conftest.err conftest.$ac_objext \
11019 conftest$ac_exeext conftest.$ac_ext
11020LIBS=$ac_check_lib_save_LIBS
11021fi
11022echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
11023echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
11024if test $ac_cv_lib_fl_yywrap = yes; then
11025 LEXLIB="-lfl"
11026else
11027 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
11028echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
11029if test "${ac_cv_lib_l_yywrap+set}" = set; then
11030 echo $ECHO_N "(cached) $ECHO_C" >&6
11031else
11032 ac_check_lib_save_LIBS=$LIBS
11033LIBS="-ll $LIBS"
11034cat >conftest.$ac_ext <<_ACEOF
11035/* confdefs.h. */
11036_ACEOF
11037cat confdefs.h >>conftest.$ac_ext
11038cat >>conftest.$ac_ext <<_ACEOF
11039/* end confdefs.h. */
11040
11041/* Override any gcc2 internal prototype to avoid an error. */
11042#ifdef __cplusplus
11043extern "C"
11044#endif
11045/* We use char because int might match the return type of a gcc2
11046 builtin and then its argument prototype would still apply. */
11047char yywrap ();
11048int
11049main ()
11050{
11051yywrap ();
11052 ;
11053 return 0;
11054}
11055_ACEOF
11056rm -f conftest.$ac_objext conftest$ac_exeext
11057if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11058 (eval $ac_link) 2>conftest.er1
11059 ac_status=$?
11060 grep -v '^ *+' conftest.er1 >conftest.err
11061 rm -f conftest.er1
11062 cat conftest.err >&5
11063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064 (exit $ac_status); } &&
11065 { ac_try='test -z "$ac_c_werror_flag"
11066 || test ! -s conftest.err'
11067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11068 (eval $ac_try) 2>&5
11069 ac_status=$?
11070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11071 (exit $ac_status); }; } &&
11072 { ac_try='test -s conftest$ac_exeext'
11073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11074 (eval $ac_try) 2>&5
11075 ac_status=$?
11076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11077 (exit $ac_status); }; }; then
11078 ac_cv_lib_l_yywrap=yes
11079else
11080 echo "$as_me: failed program was:" >&5
11081sed 's/^/| /' conftest.$ac_ext >&5
11082
11083ac_cv_lib_l_yywrap=no
11084fi
11085rm -f conftest.err conftest.$ac_objext \
11086 conftest$ac_exeext conftest.$ac_ext
11087LIBS=$ac_check_lib_save_LIBS
11088fi
11089echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
11090echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
11091if test $ac_cv_lib_l_yywrap = yes; then
11092 LEXLIB="-ll"
11093fi
11094
11095fi
11096
11097fi
11098
11099if test "x$LEX" != "x:"; then
11100 echo "$as_me:$LINENO: checking lex output file root" >&5
11101echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
11102if test "${ac_cv_prog_lex_root+set}" = set; then
11103 echo $ECHO_N "(cached) $ECHO_C" >&6
11104else
11105 # The minimal lex program is just a single line: %%. But some broken lexes
11106# (Solaris, I think it was) want two %% lines, so accommodate them.
11107cat >conftest.l <<_ACEOF
11108%%
11109%%
11110_ACEOF
11111{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
11112 (eval $LEX conftest.l) 2>&5
11113 ac_status=$?
11114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11115 (exit $ac_status); }
11116if test -f lex.yy.c; then
11117 ac_cv_prog_lex_root=lex.yy
11118elif test -f lexyy.c; then
11119 ac_cv_prog_lex_root=lexyy
11120else
11121 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
11122echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
11123 { (exit 1); exit 1; }; }
11124fi
11125fi
11126echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
11127echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
11128rm -f conftest.l
11129LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
11130
11131echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
11132echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
11133if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
11134 echo $ECHO_N "(cached) $ECHO_C" >&6
11135else
11136 # POSIX says lex can declare yytext either as a pointer or an array; the
11137# default is implementation-dependent. Figure out which it is, since
11138# not all implementations provide the %pointer and %array declarations.
11139ac_cv_prog_lex_yytext_pointer=no
11140echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
11141ac_save_LIBS=$LIBS
11142LIBS="$LIBS $LEXLIB"
11143cat >conftest.$ac_ext <<_ACEOF
11144`cat $LEX_OUTPUT_ROOT.c`
11145_ACEOF
11146rm -f conftest.$ac_objext conftest$ac_exeext
11147if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11148 (eval $ac_link) 2>conftest.er1
11149 ac_status=$?
11150 grep -v '^ *+' conftest.er1 >conftest.err
11151 rm -f conftest.er1
11152 cat conftest.err >&5
11153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11154 (exit $ac_status); } &&
11155 { ac_try='test -z "$ac_c_werror_flag"
11156 || test ! -s conftest.err'
11157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11158 (eval $ac_try) 2>&5
11159 ac_status=$?
11160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11161 (exit $ac_status); }; } &&
11162 { ac_try='test -s conftest$ac_exeext'
11163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11164 (eval $ac_try) 2>&5
11165 ac_status=$?
11166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11167 (exit $ac_status); }; }; then
11168 ac_cv_prog_lex_yytext_pointer=yes
11169else
11170 echo "$as_me: failed program was:" >&5
11171sed 's/^/| /' conftest.$ac_ext >&5
11172
11173fi
11174rm -f conftest.err conftest.$ac_objext \
11175 conftest$ac_exeext conftest.$ac_ext
11176LIBS=$ac_save_LIBS
11177rm -f "${LEX_OUTPUT_ROOT}.c"
11178
11179fi
11180echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
11181echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
11182if test $ac_cv_prog_lex_yytext_pointer = yes; then
11183
11184cat >>confdefs.h <<\_ACEOF
11185#define YYTEXT_POINTER 1
11186_ACEOF
11187
11188fi
11189
11190fi
11191if test "$LEX" = :; then
11192 LEX=${am_missing_run}flex
11193fi
11194
11195echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11196echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11197 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11198if test "${enable_maintainer_mode+set}" = set; then
11199 enableval="$enable_maintainer_mode"
11200 USE_MAINTAINER_MODE=$enableval
11201else
11202 USE_MAINTAINER_MODE=no
11203fi;
11204 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
11205echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
11206
11207
11208if test $USE_MAINTAINER_MODE = yes; then
11209 MAINTAINER_MODE_TRUE=
11210 MAINTAINER_MODE_FALSE='#'
11211else
11212 MAINTAINER_MODE_TRUE='#'
11213 MAINTAINER_MODE_FALSE=
11214fi
11215
11216 MAINT=$MAINTAINER_MODE_TRUE
11217
11218
11219
11220
11221if false; then
11222 GENINSRC_NEVER_TRUE=
11223 GENINSRC_NEVER_FALSE='#'
11224else
11225 GENINSRC_NEVER_TRUE='#'
11226 GENINSRC_NEVER_FALSE=
11227fi
11228
11229
11230. ${srcdir}/configure.host
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244for ac_header in string.h strings.h stdlib.h unistd.h elf-hints.h limits.h sys/param.h
11245do
11246as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11247if eval "test \"\${$as_ac_Header+set}\" = set"; then
11248 echo "$as_me:$LINENO: checking for $ac_header" >&5
11249echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11250if eval "test \"\${$as_ac_Header+set}\" = set"; then
11251 echo $ECHO_N "(cached) $ECHO_C" >&6
11252fi
11253echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11254echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11255else
11256 # Is the header compilable?
11257echo "$as_me:$LINENO: checking $ac_header usability" >&5
11258echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11259cat >conftest.$ac_ext <<_ACEOF
11260/* confdefs.h. */
11261_ACEOF
11262cat confdefs.h >>conftest.$ac_ext
11263cat >>conftest.$ac_ext <<_ACEOF
11264/* end confdefs.h. */
11265$ac_includes_default
11266#include <$ac_header>
11267_ACEOF
11268rm -f conftest.$ac_objext
11269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11270 (eval $ac_compile) 2>conftest.er1
11271 ac_status=$?
11272 grep -v '^ *+' conftest.er1 >conftest.err
11273 rm -f conftest.er1
11274 cat conftest.err >&5
11275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11276 (exit $ac_status); } &&
11277 { ac_try='test -z "$ac_c_werror_flag"
11278 || test ! -s conftest.err'
11279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11280 (eval $ac_try) 2>&5
11281 ac_status=$?
11282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11283 (exit $ac_status); }; } &&
11284 { ac_try='test -s conftest.$ac_objext'
11285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11286 (eval $ac_try) 2>&5
11287 ac_status=$?
11288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289 (exit $ac_status); }; }; then
11290 ac_header_compiler=yes
11291else
11292 echo "$as_me: failed program was:" >&5
11293sed 's/^/| /' conftest.$ac_ext >&5
11294
11295ac_header_compiler=no
11296fi
11297rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11298echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11299echo "${ECHO_T}$ac_header_compiler" >&6
11300
11301# Is the header present?
11302echo "$as_me:$LINENO: checking $ac_header presence" >&5
11303echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11304cat >conftest.$ac_ext <<_ACEOF
11305/* confdefs.h. */
11306_ACEOF
11307cat confdefs.h >>conftest.$ac_ext
11308cat >>conftest.$ac_ext <<_ACEOF
11309/* end confdefs.h. */
11310#include <$ac_header>
11311_ACEOF
11312if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11313 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11314 ac_status=$?
11315 grep -v '^ *+' conftest.er1 >conftest.err
11316 rm -f conftest.er1
11317 cat conftest.err >&5
11318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11319 (exit $ac_status); } >/dev/null; then
11320 if test -s conftest.err; then
11321 ac_cpp_err=$ac_c_preproc_warn_flag
11322 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11323 else
11324 ac_cpp_err=
11325 fi
11326else
11327 ac_cpp_err=yes
11328fi
11329if test -z "$ac_cpp_err"; then
11330 ac_header_preproc=yes
11331else
11332 echo "$as_me: failed program was:" >&5
11333sed 's/^/| /' conftest.$ac_ext >&5
11334
11335 ac_header_preproc=no
11336fi
11337rm -f conftest.err conftest.$ac_ext
11338echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11339echo "${ECHO_T}$ac_header_preproc" >&6
11340
11341# So? What about this header?
11342case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11343 yes:no: )
11344 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11345echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11346 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11347echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11348 ac_header_preproc=yes
11349 ;;
11350 no:yes:* )
11351 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11352echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11353 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11354echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11355 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11356echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11357 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11358echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11359 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11360echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11361 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11362echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11363 (
11364 cat <<\_ASBOX
11365## ------------------------------------------ ##
11366## Report this to the AC_PACKAGE_NAME lists. ##
11367## ------------------------------------------ ##
11368_ASBOX
11369 ) |
11370 sed "s/^/$as_me: WARNING: /" >&2
11371 ;;
11372esac
11373echo "$as_me:$LINENO: checking for $ac_header" >&5
11374echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11375if eval "test \"\${$as_ac_Header+set}\" = set"; then
11376 echo $ECHO_N "(cached) $ECHO_C" >&6
11377else
11378 eval "$as_ac_Header=\$ac_header_preproc"
11379fi
11380echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11381echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11382
11383fi
11384if test `eval echo '${'$as_ac_Header'}'` = yes; then
11385 cat >>confdefs.h <<_ACEOF
11386#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11387_ACEOF
11388
11389fi
11390
11391done
11392
11393
11394
11395
11396
11397
11398for ac_func in glob mkstemp realpath sbrk waitpid
11399do
11400as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11401echo "$as_me:$LINENO: checking for $ac_func" >&5
11402echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11403if eval "test \"\${$as_ac_var+set}\" = set"; then
11404 echo $ECHO_N "(cached) $ECHO_C" >&6
11405else
11406 cat >conftest.$ac_ext <<_ACEOF
11407/* confdefs.h. */
11408_ACEOF
11409cat confdefs.h >>conftest.$ac_ext
11410cat >>conftest.$ac_ext <<_ACEOF
11411/* end confdefs.h. */
11412/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11413 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11414#define $ac_func innocuous_$ac_func
11415
11416/* System header to define __stub macros and hopefully few prototypes,
11417 which can conflict with char $ac_func (); below.
11418 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11419 <limits.h> exists even on freestanding compilers. */
11420
11421#ifdef __STDC__
11422# include <limits.h>
11423#else
11424# include <assert.h>
11425#endif
11426
11427#undef $ac_func
11428
11429/* Override any gcc2 internal prototype to avoid an error. */
11430#ifdef __cplusplus
11431extern "C"
11432{
11433#endif
11434/* We use char because int might match the return type of a gcc2
11435 builtin and then its argument prototype would still apply. */
11436char $ac_func ();
11437/* The GNU C library defines this for functions which it implements
11438 to always fail with ENOSYS. Some functions are actually named
11439 something starting with __ and the normal name is an alias. */
11440#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11441choke me
11442#else
11443char (*f) () = $ac_func;
11444#endif
11445#ifdef __cplusplus
11446}
11447#endif
11448
11449int
11450main ()
11451{
11452return f != $ac_func;
11453 ;
11454 return 0;
11455}
11456_ACEOF
11457rm -f conftest.$ac_objext conftest$ac_exeext
11458if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11459 (eval $ac_link) 2>conftest.er1
11460 ac_status=$?
11461 grep -v '^ *+' conftest.er1 >conftest.err
11462 rm -f conftest.er1
11463 cat conftest.err >&5
11464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465 (exit $ac_status); } &&
11466 { ac_try='test -z "$ac_c_werror_flag"
11467 || test ! -s conftest.err'
11468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11469 (eval $ac_try) 2>&5
11470 ac_status=$?
11471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11472 (exit $ac_status); }; } &&
11473 { ac_try='test -s conftest$ac_exeext'
11474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11475 (eval $ac_try) 2>&5
11476 ac_status=$?
11477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11478 (exit $ac_status); }; }; then
11479 eval "$as_ac_var=yes"
11480else
11481 echo "$as_me: failed program was:" >&5
11482sed 's/^/| /' conftest.$ac_ext >&5
11483
11484eval "$as_ac_var=no"
11485fi
11486rm -f conftest.err conftest.$ac_objext \
11487 conftest$ac_exeext conftest.$ac_ext
11488fi
11489echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11490echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11491if test `eval echo '${'$as_ac_var'}'` = yes; then
11492 cat >>confdefs.h <<_ACEOF
11493#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11494_ACEOF
11495
11496fi
11497done
11498
11499
11500
11501
11502
11503
11504ac_header_dirent=no
11505for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11506 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11507echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
11508echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
11509if eval "test \"\${$as_ac_Header+set}\" = set"; then
11510 echo $ECHO_N "(cached) $ECHO_C" >&6
11511else
11512 cat >conftest.$ac_ext <<_ACEOF
11513/* confdefs.h. */
11514_ACEOF
11515cat confdefs.h >>conftest.$ac_ext
11516cat >>conftest.$ac_ext <<_ACEOF
11517/* end confdefs.h. */
11518#include <sys/types.h>
11519#include <$ac_hdr>
11520
11521int
11522main ()
11523{
11524if ((DIR *) 0)
11525return 0;
11526 ;
11527 return 0;
11528}
11529_ACEOF
11530rm -f conftest.$ac_objext
11531if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11532 (eval $ac_compile) 2>conftest.er1
11533 ac_status=$?
11534 grep -v '^ *+' conftest.er1 >conftest.err
11535 rm -f conftest.er1
11536 cat conftest.err >&5
11537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11538 (exit $ac_status); } &&
11539 { ac_try='test -z "$ac_c_werror_flag"
11540 || test ! -s conftest.err'
11541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11542 (eval $ac_try) 2>&5
11543 ac_status=$?
11544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11545 (exit $ac_status); }; } &&
11546 { ac_try='test -s conftest.$ac_objext'
11547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11548 (eval $ac_try) 2>&5
11549 ac_status=$?
11550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551 (exit $ac_status); }; }; then
11552 eval "$as_ac_Header=yes"
11553else
11554 echo "$as_me: failed program was:" >&5
11555sed 's/^/| /' conftest.$ac_ext >&5
11556
11557eval "$as_ac_Header=no"
11558fi
11559rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11560fi
11561echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11562echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11563if test `eval echo '${'$as_ac_Header'}'` = yes; then
11564 cat >>confdefs.h <<_ACEOF
11565#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11566_ACEOF
11567
11568ac_header_dirent=$ac_hdr; break
11569fi
11570
11571done
11572# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11573if test $ac_header_dirent = dirent.h; then
11574 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11575echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11576if test "${ac_cv_search_opendir+set}" = set; then
11577 echo $ECHO_N "(cached) $ECHO_C" >&6
11578else
11579 ac_func_search_save_LIBS=$LIBS
11580ac_cv_search_opendir=no
11581cat >conftest.$ac_ext <<_ACEOF
11582/* confdefs.h. */
11583_ACEOF
11584cat confdefs.h >>conftest.$ac_ext
11585cat >>conftest.$ac_ext <<_ACEOF
11586/* end confdefs.h. */
11587
11588/* Override any gcc2 internal prototype to avoid an error. */
11589#ifdef __cplusplus
11590extern "C"
11591#endif
11592/* We use char because int might match the return type of a gcc2
11593 builtin and then its argument prototype would still apply. */
11594char opendir ();
11595int
11596main ()
11597{
11598opendir ();
11599 ;
11600 return 0;
11601}
11602_ACEOF
11603rm -f conftest.$ac_objext conftest$ac_exeext
11604if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11605 (eval $ac_link) 2>conftest.er1
11606 ac_status=$?
11607 grep -v '^ *+' conftest.er1 >conftest.err
11608 rm -f conftest.er1
11609 cat conftest.err >&5
11610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11611 (exit $ac_status); } &&
11612 { ac_try='test -z "$ac_c_werror_flag"
11613 || test ! -s conftest.err'
11614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11615 (eval $ac_try) 2>&5
11616 ac_status=$?
11617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618 (exit $ac_status); }; } &&
11619 { ac_try='test -s conftest$ac_exeext'
11620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11621 (eval $ac_try) 2>&5
11622 ac_status=$?
11623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624 (exit $ac_status); }; }; then
11625 ac_cv_search_opendir="none required"
11626else
11627 echo "$as_me: failed program was:" >&5
11628sed 's/^/| /' conftest.$ac_ext >&5
11629
11630fi
11631rm -f conftest.err conftest.$ac_objext \
11632 conftest$ac_exeext conftest.$ac_ext
11633if test "$ac_cv_search_opendir" = no; then
11634 for ac_lib in dir; do
11635 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11636 cat >conftest.$ac_ext <<_ACEOF
11637/* confdefs.h. */
11638_ACEOF
11639cat confdefs.h >>conftest.$ac_ext
11640cat >>conftest.$ac_ext <<_ACEOF
11641/* end confdefs.h. */
11642
11643/* Override any gcc2 internal prototype to avoid an error. */
11644#ifdef __cplusplus
11645extern "C"
11646#endif
11647/* We use char because int might match the return type of a gcc2
11648 builtin and then its argument prototype would still apply. */
11649char opendir ();
11650int
11651main ()
11652{
11653opendir ();
11654 ;
11655 return 0;
11656}
11657_ACEOF
11658rm -f conftest.$ac_objext conftest$ac_exeext
11659if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11660 (eval $ac_link) 2>conftest.er1
11661 ac_status=$?
11662 grep -v '^ *+' conftest.er1 >conftest.err
11663 rm -f conftest.er1
11664 cat conftest.err >&5
11665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666 (exit $ac_status); } &&
11667 { ac_try='test -z "$ac_c_werror_flag"
11668 || test ! -s conftest.err'
11669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11670 (eval $ac_try) 2>&5
11671 ac_status=$?
11672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11673 (exit $ac_status); }; } &&
11674 { ac_try='test -s conftest$ac_exeext'
11675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11676 (eval $ac_try) 2>&5
11677 ac_status=$?
11678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11679 (exit $ac_status); }; }; then
11680 ac_cv_search_opendir="-l$ac_lib"
11681break
11682else
11683 echo "$as_me: failed program was:" >&5
11684sed 's/^/| /' conftest.$ac_ext >&5
11685
11686fi
11687rm -f conftest.err conftest.$ac_objext \
11688 conftest$ac_exeext conftest.$ac_ext
11689 done
11690fi
11691LIBS=$ac_func_search_save_LIBS
11692fi
11693echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11694echo "${ECHO_T}$ac_cv_search_opendir" >&6
11695if test "$ac_cv_search_opendir" != no; then
11696 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11697
11698fi
11699
11700else
11701 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11702echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11703if test "${ac_cv_search_opendir+set}" = set; then
11704 echo $ECHO_N "(cached) $ECHO_C" >&6
11705else
11706 ac_func_search_save_LIBS=$LIBS
11707ac_cv_search_opendir=no
11708cat >conftest.$ac_ext <<_ACEOF
11709/* confdefs.h. */
11710_ACEOF
11711cat confdefs.h >>conftest.$ac_ext
11712cat >>conftest.$ac_ext <<_ACEOF
11713/* end confdefs.h. */
11714
11715/* Override any gcc2 internal prototype to avoid an error. */
11716#ifdef __cplusplus
11717extern "C"
11718#endif
11719/* We use char because int might match the return type of a gcc2
11720 builtin and then its argument prototype would still apply. */
11721char opendir ();
11722int
11723main ()
11724{
11725opendir ();
11726 ;
11727 return 0;
11728}
11729_ACEOF
11730rm -f conftest.$ac_objext conftest$ac_exeext
11731if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11732 (eval $ac_link) 2>conftest.er1
11733 ac_status=$?
11734 grep -v '^ *+' conftest.er1 >conftest.err
11735 rm -f conftest.er1
11736 cat conftest.err >&5
11737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11738 (exit $ac_status); } &&
11739 { ac_try='test -z "$ac_c_werror_flag"
11740 || test ! -s conftest.err'
11741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11742 (eval $ac_try) 2>&5
11743 ac_status=$?
11744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11745 (exit $ac_status); }; } &&
11746 { ac_try='test -s conftest$ac_exeext'
11747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11748 (eval $ac_try) 2>&5
11749 ac_status=$?
11750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11751 (exit $ac_status); }; }; then
11752 ac_cv_search_opendir="none required"
11753else
11754 echo "$as_me: failed program was:" >&5
11755sed 's/^/| /' conftest.$ac_ext >&5
11756
11757fi
11758rm -f conftest.err conftest.$ac_objext \
11759 conftest$ac_exeext conftest.$ac_ext
11760if test "$ac_cv_search_opendir" = no; then
11761 for ac_lib in x; do
11762 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11763 cat >conftest.$ac_ext <<_ACEOF
11764/* confdefs.h. */
11765_ACEOF
11766cat confdefs.h >>conftest.$ac_ext
11767cat >>conftest.$ac_ext <<_ACEOF
11768/* end confdefs.h. */
11769
11770/* Override any gcc2 internal prototype to avoid an error. */
11771#ifdef __cplusplus
11772extern "C"
11773#endif
11774/* We use char because int might match the return type of a gcc2
11775 builtin and then its argument prototype would still apply. */
11776char opendir ();
11777int
11778main ()
11779{
11780opendir ();
11781 ;
11782 return 0;
11783}
11784_ACEOF
11785rm -f conftest.$ac_objext conftest$ac_exeext
11786if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11787 (eval $ac_link) 2>conftest.er1
11788 ac_status=$?
11789 grep -v '^ *+' conftest.er1 >conftest.err
11790 rm -f conftest.er1
11791 cat conftest.err >&5
11792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793 (exit $ac_status); } &&
11794 { ac_try='test -z "$ac_c_werror_flag"
11795 || test ! -s conftest.err'
11796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11797 (eval $ac_try) 2>&5
11798 ac_status=$?
11799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11800 (exit $ac_status); }; } &&
11801 { ac_try='test -s conftest$ac_exeext'
11802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11803 (eval $ac_try) 2>&5
11804 ac_status=$?
11805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806 (exit $ac_status); }; }; then
11807 ac_cv_search_opendir="-l$ac_lib"
11808break
11809else
11810 echo "$as_me: failed program was:" >&5
11811sed 's/^/| /' conftest.$ac_ext >&5
11812
11813fi
11814rm -f conftest.err conftest.$ac_objext \
11815 conftest$ac_exeext conftest.$ac_ext
11816 done
11817fi
11818LIBS=$ac_func_search_save_LIBS
11819fi
11820echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11821echo "${ECHO_T}$ac_cv_search_opendir" >&6
11822if test "$ac_cv_search_opendir" != no; then
11823 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11824
11825fi
11826
11827fi
11828
11829
11830echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
11831echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
11832if test "${ld_cv_decl_getopt_unistd_h+set}" = set; then
11833 echo $ECHO_N "(cached) $ECHO_C" >&6
11834else
11835 cat >conftest.$ac_ext <<_ACEOF
11836/* confdefs.h. */
11837_ACEOF
11838cat confdefs.h >>conftest.$ac_ext
11839cat >>conftest.$ac_ext <<_ACEOF
11840/* end confdefs.h. */
11841#include <unistd.h>
11842int
11843main ()
11844{
11845extern int getopt (int, char *const*, const char *);
11846 ;
11847 return 0;
11848}
11849_ACEOF
11850rm -f conftest.$ac_objext
11851if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11852 (eval $ac_compile) 2>conftest.er1
11853 ac_status=$?
11854 grep -v '^ *+' conftest.er1 >conftest.err
11855 rm -f conftest.er1
11856 cat conftest.err >&5
11857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11858 (exit $ac_status); } &&
11859 { ac_try='test -z "$ac_c_werror_flag"
11860 || test ! -s conftest.err'
11861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11862 (eval $ac_try) 2>&5
11863 ac_status=$?
11864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11865 (exit $ac_status); }; } &&
11866 { ac_try='test -s conftest.$ac_objext'
11867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11868 (eval $ac_try) 2>&5
11869 ac_status=$?
11870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11871 (exit $ac_status); }; }; then
11872 ld_cv_decl_getopt_unistd_h=yes
11873else
11874 echo "$as_me: failed program was:" >&5
11875sed 's/^/| /' conftest.$ac_ext >&5
11876
11877ld_cv_decl_getopt_unistd_h=no
11878fi
11879rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11880fi
11881
11882echo "$as_me:$LINENO: result: $ld_cv_decl_getopt_unistd_h" >&5
11883echo "${ECHO_T}$ld_cv_decl_getopt_unistd_h" >&6
11884if test $ld_cv_decl_getopt_unistd_h = yes; then
11885
11886cat >>confdefs.h <<\_ACEOF
11887#define HAVE_DECL_GETOPT 1
11888_ACEOF
11889
11890fi
11891
11892
11893case "${host}" in
11894*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
11895
11896cat >>confdefs.h <<\_ACEOF
11897#define USE_BINARY_FOPEN 1
11898_ACEOF
11899 ;;
11900esac
11901
11902echo "$as_me:$LINENO: checking whether strstr is declared" >&5
11903echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
11904if test "${ac_cv_have_decl_strstr+set}" = set; then
11905 echo $ECHO_N "(cached) $ECHO_C" >&6
11906else
11907 cat >conftest.$ac_ext <<_ACEOF
11908/* confdefs.h. */
11909_ACEOF
11910cat confdefs.h >>conftest.$ac_ext
11911cat >>conftest.$ac_ext <<_ACEOF
11912/* end confdefs.h. */
11913$ac_includes_default
11914int
11915main ()
11916{
11917#ifndef strstr
11918 char *p = (char *) strstr;
11919#endif
11920
11921 ;
11922 return 0;
11923}
11924_ACEOF
11925rm -f conftest.$ac_objext
11926if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11927 (eval $ac_compile) 2>conftest.er1
11928 ac_status=$?
11929 grep -v '^ *+' conftest.er1 >conftest.err
11930 rm -f conftest.er1
11931 cat conftest.err >&5
11932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11933 (exit $ac_status); } &&
11934 { ac_try='test -z "$ac_c_werror_flag"
11935 || test ! -s conftest.err'
11936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11937 (eval $ac_try) 2>&5
11938 ac_status=$?
11939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940 (exit $ac_status); }; } &&
11941 { ac_try='test -s conftest.$ac_objext'
11942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11943 (eval $ac_try) 2>&5
11944 ac_status=$?
11945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946 (exit $ac_status); }; }; then
11947 ac_cv_have_decl_strstr=yes
11948else
11949 echo "$as_me: failed program was:" >&5
11950sed 's/^/| /' conftest.$ac_ext >&5
11951
11952ac_cv_have_decl_strstr=no
11953fi
11954rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11955fi
11956echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
11957echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
11958if test $ac_cv_have_decl_strstr = yes; then
11959
11960cat >>confdefs.h <<_ACEOF
11961#define HAVE_DECL_STRSTR 1
11962_ACEOF
11963
11964
11965else
11966 cat >>confdefs.h <<_ACEOF
11967#define HAVE_DECL_STRSTR 0
11968_ACEOF
11969
11970
11971fi
11972echo "$as_me:$LINENO: checking whether free is declared" >&5
11973echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
11974if test "${ac_cv_have_decl_free+set}" = set; then
11975 echo $ECHO_N "(cached) $ECHO_C" >&6
11976else
11977 cat >conftest.$ac_ext <<_ACEOF
11978/* confdefs.h. */
11979_ACEOF
11980cat confdefs.h >>conftest.$ac_ext
11981cat >>conftest.$ac_ext <<_ACEOF
11982/* end confdefs.h. */
11983$ac_includes_default
11984int
11985main ()
11986{
11987#ifndef free
11988 char *p = (char *) free;
11989#endif
11990
11991 ;
11992 return 0;
11993}
11994_ACEOF
11995rm -f conftest.$ac_objext
11996if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11997 (eval $ac_compile) 2>conftest.er1
11998 ac_status=$?
11999 grep -v '^ *+' conftest.er1 >conftest.err
12000 rm -f conftest.er1
12001 cat conftest.err >&5
12002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12003 (exit $ac_status); } &&
12004 { ac_try='test -z "$ac_c_werror_flag"
12005 || test ! -s conftest.err'
12006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12007 (eval $ac_try) 2>&5
12008 ac_status=$?
12009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010 (exit $ac_status); }; } &&
12011 { ac_try='test -s conftest.$ac_objext'
12012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12013 (eval $ac_try) 2>&5
12014 ac_status=$?
12015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12016 (exit $ac_status); }; }; then
12017 ac_cv_have_decl_free=yes
12018else
12019 echo "$as_me: failed program was:" >&5
12020sed 's/^/| /' conftest.$ac_ext >&5
12021
12022ac_cv_have_decl_free=no
12023fi
12024rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12025fi
12026echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
12027echo "${ECHO_T}$ac_cv_have_decl_free" >&6
12028if test $ac_cv_have_decl_free = yes; then
12029
12030cat >>confdefs.h <<_ACEOF
12031#define HAVE_DECL_FREE 1
12032_ACEOF
12033
12034
12035else
12036 cat >>confdefs.h <<_ACEOF
12037#define HAVE_DECL_FREE 0
12038_ACEOF
12039
12040
12041fi
12042echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
12043echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
12044if test "${ac_cv_have_decl_sbrk+set}" = set; then
12045 echo $ECHO_N "(cached) $ECHO_C" >&6
12046else
12047 cat >conftest.$ac_ext <<_ACEOF
12048/* confdefs.h. */
12049_ACEOF
12050cat confdefs.h >>conftest.$ac_ext
12051cat >>conftest.$ac_ext <<_ACEOF
12052/* end confdefs.h. */
12053$ac_includes_default
12054int
12055main ()
12056{
12057#ifndef sbrk
12058 char *p = (char *) sbrk;
12059#endif
12060
12061 ;
12062 return 0;
12063}
12064_ACEOF
12065rm -f conftest.$ac_objext
12066if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12067 (eval $ac_compile) 2>conftest.er1
12068 ac_status=$?
12069 grep -v '^ *+' conftest.er1 >conftest.err
12070 rm -f conftest.er1
12071 cat conftest.err >&5
12072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12073 (exit $ac_status); } &&
12074 { ac_try='test -z "$ac_c_werror_flag"
12075 || test ! -s conftest.err'
12076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12077 (eval $ac_try) 2>&5
12078 ac_status=$?
12079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12080 (exit $ac_status); }; } &&
12081 { ac_try='test -s conftest.$ac_objext'
12082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12083 (eval $ac_try) 2>&5
12084 ac_status=$?
12085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12086 (exit $ac_status); }; }; then
12087 ac_cv_have_decl_sbrk=yes
12088else
12089 echo "$as_me: failed program was:" >&5
12090sed 's/^/| /' conftest.$ac_ext >&5
12091
12092ac_cv_have_decl_sbrk=no
12093fi
12094rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12095fi
12096echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
12097echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
12098if test $ac_cv_have_decl_sbrk = yes; then
12099
12100cat >>confdefs.h <<_ACEOF
12101#define HAVE_DECL_SBRK 1
12102_ACEOF
12103
12104
12105else
12106 cat >>confdefs.h <<_ACEOF
12107#define HAVE_DECL_SBRK 0
12108_ACEOF
12109
12110
12111fi
12112echo "$as_me:$LINENO: checking whether getenv is declared" >&5
12113echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
12114if test "${ac_cv_have_decl_getenv+set}" = set; then
12115 echo $ECHO_N "(cached) $ECHO_C" >&6
12116else
12117 cat >conftest.$ac_ext <<_ACEOF
12118/* confdefs.h. */
12119_ACEOF
12120cat confdefs.h >>conftest.$ac_ext
12121cat >>conftest.$ac_ext <<_ACEOF
12122/* end confdefs.h. */
12123$ac_includes_default
12124int
12125main ()
12126{
12127#ifndef getenv
12128 char *p = (char *) getenv;
12129#endif
12130
12131 ;
12132 return 0;
12133}
12134_ACEOF
12135rm -f conftest.$ac_objext
12136if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12137 (eval $ac_compile) 2>conftest.er1
12138 ac_status=$?
12139 grep -v '^ *+' conftest.er1 >conftest.err
12140 rm -f conftest.er1
12141 cat conftest.err >&5
12142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12143 (exit $ac_status); } &&
12144 { ac_try='test -z "$ac_c_werror_flag"
12145 || test ! -s conftest.err'
12146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12147 (eval $ac_try) 2>&5
12148 ac_status=$?
12149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12150 (exit $ac_status); }; } &&
12151 { ac_try='test -s conftest.$ac_objext'
12152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12153 (eval $ac_try) 2>&5
12154 ac_status=$?
12155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12156 (exit $ac_status); }; }; then
12157 ac_cv_have_decl_getenv=yes
12158else
12159 echo "$as_me: failed program was:" >&5
12160sed 's/^/| /' conftest.$ac_ext >&5
12161
12162ac_cv_have_decl_getenv=no
12163fi
12164rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12165fi
12166echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
12167echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
12168if test $ac_cv_have_decl_getenv = yes; then
12169
12170cat >>confdefs.h <<_ACEOF
12171#define HAVE_DECL_GETENV 1
12172_ACEOF
12173
12174
12175else
12176 cat >>confdefs.h <<_ACEOF
12177#define HAVE_DECL_GETENV 0
12178_ACEOF
12179
12180
12181fi
12182echo "$as_me:$LINENO: checking whether environ is declared" >&5
12183echo $ECHO_N "checking whether environ is declared... $ECHO_C" >&6
12184if test "${ac_cv_have_decl_environ+set}" = set; then
12185 echo $ECHO_N "(cached) $ECHO_C" >&6
12186else
12187 cat >conftest.$ac_ext <<_ACEOF
12188/* confdefs.h. */
12189_ACEOF
12190cat confdefs.h >>conftest.$ac_ext
12191cat >>conftest.$ac_ext <<_ACEOF
12192/* end confdefs.h. */
12193$ac_includes_default
12194int
12195main ()
12196{
12197#ifndef environ
12198 char *p = (char *) environ;
12199#endif
12200
12201 ;
12202 return 0;
12203}
12204_ACEOF
12205rm -f conftest.$ac_objext
12206if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12207 (eval $ac_compile) 2>conftest.er1
12208 ac_status=$?
12209 grep -v '^ *+' conftest.er1 >conftest.err
12210 rm -f conftest.er1
12211 cat conftest.err >&5
12212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213 (exit $ac_status); } &&
12214 { ac_try='test -z "$ac_c_werror_flag"
12215 || test ! -s conftest.err'
12216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12217 (eval $ac_try) 2>&5
12218 ac_status=$?
12219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220 (exit $ac_status); }; } &&
12221 { ac_try='test -s conftest.$ac_objext'
12222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12223 (eval $ac_try) 2>&5
12224 ac_status=$?
12225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12226 (exit $ac_status); }; }; then
12227 ac_cv_have_decl_environ=yes
12228else
12229 echo "$as_me: failed program was:" >&5
12230sed 's/^/| /' conftest.$ac_ext >&5
12231
12232ac_cv_have_decl_environ=no
12233fi
12234rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12235fi
12236echo "$as_me:$LINENO: result: $ac_cv_have_decl_environ" >&5
12237echo "${ECHO_T}$ac_cv_have_decl_environ" >&6
12238if test $ac_cv_have_decl_environ = yes; then
12239
12240cat >>confdefs.h <<_ACEOF
12241#define HAVE_DECL_ENVIRON 1
12242_ACEOF
12243
12244
12245else
12246 cat >>confdefs.h <<_ACEOF
12247#define HAVE_DECL_ENVIRON 0
12248_ACEOF
12249
12250
12251fi
12252
12253
12254
12255# When converting linker scripts into strings for use in emulation
12256# files, use astring.sed if the compiler supports ANSI string
12257# concatenation, or ostring.sed otherwise. This is to support the
12258# broken Microsoft MSVC compiler, which limits the length of string
12259# constants, while still supporting pre-ANSI compilers which do not
12260# support string concatenation.
12261echo "$as_me:$LINENO: checking whether ANSI C string concatenation works" >&5
12262echo $ECHO_N "checking whether ANSI C string concatenation works... $ECHO_C" >&6
12263if test "${ld_cv_string_concatenation+set}" = set; then
12264 echo $ECHO_N "(cached) $ECHO_C" >&6
12265else
12266 cat >conftest.$ac_ext <<_ACEOF
12267/* confdefs.h. */
12268_ACEOF
12269cat confdefs.h >>conftest.$ac_ext
12270cat >>conftest.$ac_ext <<_ACEOF
12271/* end confdefs.h. */
12272
12273int
12274main ()
12275{
12276char *a = "a" "a";
12277 ;
12278 return 0;
12279}
12280_ACEOF
12281rm -f conftest.$ac_objext
12282if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12283 (eval $ac_compile) 2>conftest.er1
12284 ac_status=$?
12285 grep -v '^ *+' conftest.er1 >conftest.err
12286 rm -f conftest.er1
12287 cat conftest.err >&5
12288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289 (exit $ac_status); } &&
12290 { ac_try='test -z "$ac_c_werror_flag"
12291 || test ! -s conftest.err'
12292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12293 (eval $ac_try) 2>&5
12294 ac_status=$?
12295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296 (exit $ac_status); }; } &&
12297 { ac_try='test -s conftest.$ac_objext'
12298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12299 (eval $ac_try) 2>&5
12300 ac_status=$?
12301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302 (exit $ac_status); }; }; then
12303 ld_cv_string_concatenation=yes
12304else
12305 echo "$as_me: failed program was:" >&5
12306sed 's/^/| /' conftest.$ac_ext >&5
12307
12308ld_cv_string_concatenation=no
12309fi
12310rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12311fi
12312
12313echo "$as_me:$LINENO: result: $ld_cv_string_concatenation" >&5
12314echo "${ECHO_T}$ld_cv_string_concatenation" >&6
12315if test "$ld_cv_string_concatenation" = "yes"; then
12316 STRINGIFY=astring.sed
12317else
12318 STRINGIFY=ostring.sed
12319fi
12320
12321
12322# target-specific stuff:
12323
12324all_targets=
12325EMUL=
12326all_emuls=
12327all_emul_extras=
12328all_libpath=
12329
12330rm -f tdirs
12331
12332for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
12333do
12334 if test "$targ_alias" = "all"; then
12335 all_targets=true
12336 else
12337 # Canonicalize the secondary target names.
12338 result=`$ac_config_sub $targ_alias 2>/dev/null`
12339 if test -n "$result"; then
12340 targ=$result
12341 else
12342 targ=$targ_alias
12343 fi
12344
12345 . ${srcdir}/configure.tgt
12346
12347 if test "$targ" = "$target"; then
12348 EMUL=$targ_emul
12349 fi
12350
12351 if test x${want64} = xfalse; then
12352 . ${srcdir}/../bfd/config.bfd
12353 fi
12354
12355 if test x${want64} = xtrue; then
12356 targ_extra_emuls="$targ_extra_emuls $targ64_extra_emuls"
12357 targ_extra_libpath="$targ_extra_libpath $targ64_extra_libpath"
12358 fi
12359
12360 for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
12361 case " $all_emuls " in
12362 *" e${i}.o "*) ;;
12363 *)
12364 all_emuls="$all_emuls e${i}.o"
12365 eval result=\$tdir_$i
12366 test -z "$result" && result=$targ_alias
12367 echo tdir_$i=$result >> tdirs
12368 ;;
12369 esac
12370 done
12371
12372 for i in $targ_emul $targ_extra_libpath; do
12373 case " $all_libpath " in
12374 *" ${i} "*) ;;
12375 *)
12376 if test -z "$all_libpath"; then
12377 all_libpath=${i}
12378 else
12379 all_libpath="$all_libpath ${i}"
12380 fi
12381 ;;
12382 esac
12383 done
12384
12385 for i in $targ_extra_ofiles; do
12386 case " $all_emul_extras " in
12387 *" ${i} "*) ;;
12388 *)
12389 all_emul_extras="$all_emul_extras ${i}"
12390 ;;
12391 esac
12392 done
12393 fi
12394done
12395
12396
12397
12398TDIRS=tdirs
12399
12400
12401if test x${all_targets} = xtrue; then
12402 if test x${want64} = xfalse; then
12403 echo "$as_me:$LINENO: checking for long" >&5
12404echo $ECHO_N "checking for long... $ECHO_C" >&6
12405if test "${ac_cv_type_long+set}" = set; then
12406 echo $ECHO_N "(cached) $ECHO_C" >&6
12407else
12408 cat >conftest.$ac_ext <<_ACEOF
12409/* confdefs.h. */
12410_ACEOF
12411cat confdefs.h >>conftest.$ac_ext
12412cat >>conftest.$ac_ext <<_ACEOF
12413/* end confdefs.h. */
12414$ac_includes_default
12415int
12416main ()
12417{
12418if ((long *) 0)
12419 return 0;
12420if (sizeof (long))
12421 return 0;
12422 ;
12423 return 0;
12424}
12425_ACEOF
12426rm -f conftest.$ac_objext
12427if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12428 (eval $ac_compile) 2>conftest.er1
12429 ac_status=$?
12430 grep -v '^ *+' conftest.er1 >conftest.err
12431 rm -f conftest.er1
12432 cat conftest.err >&5
12433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434 (exit $ac_status); } &&
12435 { ac_try='test -z "$ac_c_werror_flag"
12436 || test ! -s conftest.err'
12437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12438 (eval $ac_try) 2>&5
12439 ac_status=$?
12440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12441 (exit $ac_status); }; } &&
12442 { ac_try='test -s conftest.$ac_objext'
12443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12444 (eval $ac_try) 2>&5
12445 ac_status=$?
12446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447 (exit $ac_status); }; }; then
12448 ac_cv_type_long=yes
12449else
12450 echo "$as_me: failed program was:" >&5
12451sed 's/^/| /' conftest.$ac_ext >&5
12452
12453ac_cv_type_long=no
12454fi
12455rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12456fi
12457echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12458echo "${ECHO_T}$ac_cv_type_long" >&6
12459
12460echo "$as_me:$LINENO: checking size of long" >&5
12461echo $ECHO_N "checking size of long... $ECHO_C" >&6
12462if test "${ac_cv_sizeof_long+set}" = set; then
12463 echo $ECHO_N "(cached) $ECHO_C" >&6
12464else
12465 if test "$ac_cv_type_long" = yes; then
12466 # The cast to unsigned long works around a bug in the HP C Compiler
12467 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12468 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12469 # This bug is HP SR number 8606223364.
12470 if test "$cross_compiling" = yes; then
12471 # Depending upon the size, compute the lo and hi bounds.
12472cat >conftest.$ac_ext <<_ACEOF
12473/* confdefs.h. */
12474_ACEOF
12475cat confdefs.h >>conftest.$ac_ext
12476cat >>conftest.$ac_ext <<_ACEOF
12477/* end confdefs.h. */
12478$ac_includes_default
12479int
12480main ()
12481{
12482static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
12483test_array [0] = 0
12484
12485 ;
12486 return 0;
12487}
12488_ACEOF
12489rm -f conftest.$ac_objext
12490if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12491 (eval $ac_compile) 2>conftest.er1
12492 ac_status=$?
12493 grep -v '^ *+' conftest.er1 >conftest.err
12494 rm -f conftest.er1
12495 cat conftest.err >&5
12496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12497 (exit $ac_status); } &&
12498 { ac_try='test -z "$ac_c_werror_flag"
12499 || test ! -s conftest.err'
12500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12501 (eval $ac_try) 2>&5
12502 ac_status=$?
12503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12504 (exit $ac_status); }; } &&
12505 { ac_try='test -s conftest.$ac_objext'
12506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12507 (eval $ac_try) 2>&5
12508 ac_status=$?
12509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12510 (exit $ac_status); }; }; then
12511 ac_lo=0 ac_mid=0
12512 while :; do
12513 cat >conftest.$ac_ext <<_ACEOF
12514/* confdefs.h. */
12515_ACEOF
12516cat confdefs.h >>conftest.$ac_ext
12517cat >>conftest.$ac_ext <<_ACEOF
12518/* end confdefs.h. */
12519$ac_includes_default
12520int
12521main ()
12522{
12523static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12524test_array [0] = 0
12525
12526 ;
12527 return 0;
12528}
12529_ACEOF
12530rm -f conftest.$ac_objext
12531if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12532 (eval $ac_compile) 2>conftest.er1
12533 ac_status=$?
12534 grep -v '^ *+' conftest.er1 >conftest.err
12535 rm -f conftest.er1
12536 cat conftest.err >&5
12537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538 (exit $ac_status); } &&
12539 { ac_try='test -z "$ac_c_werror_flag"
12540 || test ! -s conftest.err'
12541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12542 (eval $ac_try) 2>&5
12543 ac_status=$?
12544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545 (exit $ac_status); }; } &&
12546 { ac_try='test -s conftest.$ac_objext'
12547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12548 (eval $ac_try) 2>&5
12549 ac_status=$?
12550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551 (exit $ac_status); }; }; then
12552 ac_hi=$ac_mid; break
12553else
12554 echo "$as_me: failed program was:" >&5
12555sed 's/^/| /' conftest.$ac_ext >&5
12556
12557ac_lo=`expr $ac_mid + 1`
12558 if test $ac_lo -le $ac_mid; then
12559 ac_lo= ac_hi=
12560 break
12561 fi
12562 ac_mid=`expr 2 '*' $ac_mid + 1`
12563fi
12564rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12565 done
12566else
12567 echo "$as_me: failed program was:" >&5
12568sed 's/^/| /' conftest.$ac_ext >&5
12569
12570cat >conftest.$ac_ext <<_ACEOF
12571/* confdefs.h. */
12572_ACEOF
12573cat confdefs.h >>conftest.$ac_ext
12574cat >>conftest.$ac_ext <<_ACEOF
12575/* end confdefs.h. */
12576$ac_includes_default
12577int
12578main ()
12579{
12580static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
12581test_array [0] = 0
12582
12583 ;
12584 return 0;
12585}
12586_ACEOF
12587rm -f conftest.$ac_objext
12588if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12589 (eval $ac_compile) 2>conftest.er1
12590 ac_status=$?
12591 grep -v '^ *+' conftest.er1 >conftest.err
12592 rm -f conftest.er1
12593 cat conftest.err >&5
12594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12595 (exit $ac_status); } &&
12596 { ac_try='test -z "$ac_c_werror_flag"
12597 || test ! -s conftest.err'
12598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12599 (eval $ac_try) 2>&5
12600 ac_status=$?
12601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602 (exit $ac_status); }; } &&
12603 { ac_try='test -s conftest.$ac_objext'
12604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12605 (eval $ac_try) 2>&5
12606 ac_status=$?
12607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608 (exit $ac_status); }; }; then
12609 ac_hi=-1 ac_mid=-1
12610 while :; do
12611 cat >conftest.$ac_ext <<_ACEOF
12612/* confdefs.h. */
12613_ACEOF
12614cat confdefs.h >>conftest.$ac_ext
12615cat >>conftest.$ac_ext <<_ACEOF
12616/* end confdefs.h. */
12617$ac_includes_default
12618int
12619main ()
12620{
12621static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
12622test_array [0] = 0
12623
12624 ;
12625 return 0;
12626}
12627_ACEOF
12628rm -f conftest.$ac_objext
12629if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12630 (eval $ac_compile) 2>conftest.er1
12631 ac_status=$?
12632 grep -v '^ *+' conftest.er1 >conftest.err
12633 rm -f conftest.er1
12634 cat conftest.err >&5
12635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636 (exit $ac_status); } &&
12637 { ac_try='test -z "$ac_c_werror_flag"
12638 || test ! -s conftest.err'
12639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12640 (eval $ac_try) 2>&5
12641 ac_status=$?
12642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643 (exit $ac_status); }; } &&
12644 { ac_try='test -s conftest.$ac_objext'
12645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12646 (eval $ac_try) 2>&5
12647 ac_status=$?
12648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12649 (exit $ac_status); }; }; then
12650 ac_lo=$ac_mid; break
12651else
12652 echo "$as_me: failed program was:" >&5
12653sed 's/^/| /' conftest.$ac_ext >&5
12654
12655ac_hi=`expr '(' $ac_mid ')' - 1`
12656 if test $ac_mid -le $ac_hi; then
12657 ac_lo= ac_hi=
12658 break
12659 fi
12660 ac_mid=`expr 2 '*' $ac_mid`
12661fi
12662rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12663 done
12664else
12665 echo "$as_me: failed program was:" >&5
12666sed 's/^/| /' conftest.$ac_ext >&5
12667
12668ac_lo= ac_hi=
12669fi
12670rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12671fi
12672rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12673# Binary search between lo and hi bounds.
12674while test "x$ac_lo" != "x$ac_hi"; do
12675 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12676 cat >conftest.$ac_ext <<_ACEOF
12677/* confdefs.h. */
12678_ACEOF
12679cat confdefs.h >>conftest.$ac_ext
12680cat >>conftest.$ac_ext <<_ACEOF
12681/* end confdefs.h. */
12682$ac_includes_default
12683int
12684main ()
12685{
12686static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12687test_array [0] = 0
12688
12689 ;
12690 return 0;
12691}
12692_ACEOF
12693rm -f conftest.$ac_objext
12694if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12695 (eval $ac_compile) 2>conftest.er1
12696 ac_status=$?
12697 grep -v '^ *+' conftest.er1 >conftest.err
12698 rm -f conftest.er1
12699 cat conftest.err >&5
12700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12701 (exit $ac_status); } &&
12702 { ac_try='test -z "$ac_c_werror_flag"
12703 || test ! -s conftest.err'
12704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12705 (eval $ac_try) 2>&5
12706 ac_status=$?
12707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12708 (exit $ac_status); }; } &&
12709 { ac_try='test -s conftest.$ac_objext'
12710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12711 (eval $ac_try) 2>&5
12712 ac_status=$?
12713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12714 (exit $ac_status); }; }; then
12715 ac_hi=$ac_mid
12716else
12717 echo "$as_me: failed program was:" >&5
12718sed 's/^/| /' conftest.$ac_ext >&5
12719
12720ac_lo=`expr '(' $ac_mid ')' + 1`
12721fi
12722rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12723done
12724case $ac_lo in
12725?*) ac_cv_sizeof_long=$ac_lo;;
12726'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12727See \`config.log' for more details." >&5
12728echo "$as_me: error: cannot compute sizeof (long), 77
12729See \`config.log' for more details." >&2;}
12730 { (exit 1); exit 1; }; } ;;
12731esac
12732else
12733 if test "$cross_compiling" = yes; then
12734 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12735See \`config.log' for more details." >&5
12736echo "$as_me: error: cannot run test program while cross compiling
12737See \`config.log' for more details." >&2;}
12738 { (exit 1); exit 1; }; }
12739else
12740 cat >conftest.$ac_ext <<_ACEOF
12741/* confdefs.h. */
12742_ACEOF
12743cat confdefs.h >>conftest.$ac_ext
12744cat >>conftest.$ac_ext <<_ACEOF
12745/* end confdefs.h. */
12746$ac_includes_default
12747long longval () { return (long) (sizeof (long)); }
12748unsigned long ulongval () { return (long) (sizeof (long)); }
12749#include <stdio.h>
12750#include <stdlib.h>
12751int
12752main ()
12753{
12754
12755 FILE *f = fopen ("conftest.val", "w");
12756 if (! f)
12757 exit (1);
12758 if (((long) (sizeof (long))) < 0)
12759 {
12760 long i = longval ();
12761 if (i != ((long) (sizeof (long))))
12762 exit (1);
12763 fprintf (f, "%ld\n", i);
12764 }
12765 else
12766 {
12767 unsigned long i = ulongval ();
12768 if (i != ((long) (sizeof (long))))
12769 exit (1);
12770 fprintf (f, "%lu\n", i);
12771 }
12772 exit (ferror (f) || fclose (f) != 0);
12773
12774 ;
12775 return 0;
12776}
12777_ACEOF
12778rm -f conftest$ac_exeext
12779if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12780 (eval $ac_link) 2>&5
12781 ac_status=$?
12782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12785 (eval $ac_try) 2>&5
12786 ac_status=$?
12787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12788 (exit $ac_status); }; }; then
12789 ac_cv_sizeof_long=`cat conftest.val`
12790else
12791 echo "$as_me: program exited with status $ac_status" >&5
12792echo "$as_me: failed program was:" >&5
12793sed 's/^/| /' conftest.$ac_ext >&5
12794
12795( exit $ac_status )
12796{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12797See \`config.log' for more details." >&5
12798echo "$as_me: error: cannot compute sizeof (long), 77
12799See \`config.log' for more details." >&2;}
12800 { (exit 1); exit 1; }; }
12801fi
12802rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12803fi
12804fi
12805rm -f conftest.val
12806else
12807 ac_cv_sizeof_long=0
12808fi
12809fi
12810echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
12811echo "${ECHO_T}$ac_cv_sizeof_long" >&6
12812cat >>confdefs.h <<_ACEOF
12813#define SIZEOF_LONG $ac_cv_sizeof_long
12814_ACEOF
12815
12816
12817 if test "x${ac_cv_sizeof_long}" = "x8"; then
12818 want64=true
12819 fi
12820 fi
12821 if test x${want64} = xtrue; then
12822 EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
12823 else
12824 EMULATION_OFILES='$(ALL_EMULATIONS)'
12825 fi
12826 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)'
12827else
12828 EMULATION_OFILES=$all_emuls
12829 EMUL_EXTRA_OFILES=$all_emul_extras
12830fi
12831
12832
12833
12834
12835EMULATION_LIBPATH=$all_libpath
12836
12837
12838if test x${enable_static} = xno; then
12839 TESTBFDLIB="--rpath ../bfd/.libs ../bfd/.libs/libbfd.so"
12840else
12841 TESTBFDLIB="../bfd/.libs/libbfd.a"
12842fi
12843
12844
12845target_vendor=${target_vendor=$host_vendor}
12846case "$target_vendor" in
12847 hp) EXTRA_SHLIB_EXTENSION=".sl" ;;
12848 *) EXTRA_SHLIB_EXTENSION= ;;
12849esac
12850
12851case "$target_os" in
12852 lynxos) EXTRA_SHLIB_EXTENSION=".a" ;;
12853esac
12854
12855if test x${EXTRA_SHLIB_EXTENSION} != x ; then
12856
12857cat >>confdefs.h <<_ACEOF
12858#define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
12859_ACEOF
12860
12861fi
12862
12863
12864
12865
12866
12867 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
12868cat >confcache <<\_ACEOF
12869# This file is a shell script that caches the results of configure
12870# tests run on this system so they can be shared between configure
12871# scripts and configure runs, see configure's option --config-cache.
12872# It is not useful on other systems. If it contains results you don't
12873# want to keep, you may remove or edit it.
12874#
12875# config.status only pays attention to the cache file if you give it
12876# the --recheck option to rerun configure.
12877#
12878# `ac_cv_env_foo' variables (set or unset) will be overridden when
12879# loading this file, other *unset* `ac_cv_foo' will be assigned the
12880# following values.
12881
12882_ACEOF
12883
12884# The following way of writing the cache mishandles newlines in values,
12885# but we know of no workaround that is simple, portable, and efficient.
12886# So, don't put newlines in cache variables' values.
12887# Ultrix sh set writes to stderr and can't be redirected directly,
12888# and sets the high bit in the cache file unless we assign to the vars.
12889{
12890 (set) 2>&1 |
12891 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12892 *ac_space=\ *)
12893 # `set' does not quote correctly, so add quotes (double-quote
12894 # substitution turns \\\\ into \\, and sed turns \\ into \).
12895 sed -n \
12896 "s/'/'\\\\''/g;
12897 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12898 ;;
12899 *)
12900 # `set' quotes correctly as required by POSIX, so do not add quotes.
12901 sed -n \
12902 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12903 ;;
12904 esac;
12905} |
12906 sed '
12907 t clear
12908 : clear
12909 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12910 t end
12911 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12912 : end' >>confcache
12913if diff $cache_file confcache >/dev/null 2>&1; then :; else
12914 if test -w $cache_file; then
12915 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12916 cat confcache >$cache_file
12917 else
12918 echo "not updating unwritable cache $cache_file"
12919 fi
12920fi
12921rm -f confcache
12922
12923test "x$prefix" = xNONE && prefix=$ac_default_prefix
12924# Let make expand exec_prefix.
12925test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12926
12927# VPATH may cause trouble with some makes, so we remove $(srcdir),
12928# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12929# trailing colons and then remove the whole line if VPATH becomes empty
12930# (actually we leave an empty line to preserve line numbers).
12931if test "x$srcdir" = x.; then
12932 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12933s/:*\$(srcdir):*/:/;
12934s/:*\${srcdir}:*/:/;
12935s/:*@srcdir@:*/:/;
12936s/^\([^=]*=[ ]*\):*/\1/;
12937s/:*$//;
12938s/^[^=]*=[ ]*$//;
12939}'
12940fi
12941
12942DEFS=-DHAVE_CONFIG_H
12943
12944ac_libobjs=
12945ac_ltlibobjs=
12946for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12947 # 1. Remove the extension, and $U if already installed.
12948 ac_i=`echo "$ac_i" |
12949 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12950 # 2. Add them.
12951 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12952 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12953done
12954LIBOBJS=$ac_libobjs
12955
12956LTLIBOBJS=$ac_ltlibobjs
12957
12958
12959if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12960 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12961Usually this means the macro was only invoked conditionally." >&5
12962echo "$as_me: error: conditional \"AMDEP\" was never defined.
12963Usually this means the macro was only invoked conditionally." >&2;}
12964 { (exit 1); exit 1; }; }
12965fi
12966if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12967 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12968Usually this means the macro was only invoked conditionally." >&5
12969echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12970Usually this means the macro was only invoked conditionally." >&2;}
12971 { (exit 1); exit 1; }; }
12972fi
12973if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12974 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
12975Usually this means the macro was only invoked conditionally." >&5
12976echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
12977Usually this means the macro was only invoked conditionally." >&2;}
12978 { (exit 1); exit 1; }; }
12979fi
12980if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
12981 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
12982Usually this means the macro was only invoked conditionally." >&5
12983echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
12984Usually this means the macro was only invoked conditionally." >&2;}
12985 { (exit 1); exit 1; }; }
12986fi
12987
12988: ${CONFIG_STATUS=./config.status}
12989ac_clean_files_save=$ac_clean_files
12990ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12991{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12992echo "$as_me: creating $CONFIG_STATUS" >&6;}
12993cat >$CONFIG_STATUS <<_ACEOF
12994#! $SHELL
12995# Generated by $as_me.
12996# Run this file to recreate the current configuration.
12997# Compiler output produced by configure, useful for debugging
12998# configure, is in config.log if it exists.
12999
13000debug=false
13001ac_cs_recheck=false
13002ac_cs_silent=false
13003SHELL=\${CONFIG_SHELL-$SHELL}
13004_ACEOF
13005
13006cat >>$CONFIG_STATUS <<\_ACEOF
13007## --------------------- ##
13008## M4sh Initialization. ##
13009## --------------------- ##
13010
13011# Be Bourne compatible
13012if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13013 emulate sh
13014 NULLCMD=:
13015 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13016 # is contrary to our usage. Disable this feature.
13017 alias -g '${1+"$@"}'='"$@"'
13018elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13019 set -o posix
13020fi
13021DUALCASE=1; export DUALCASE # for MKS sh
13022
13023# Support unset when possible.
13024if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13025 as_unset=unset
13026else
13027 as_unset=false
13028fi
13029
13030
13031# Work around bugs in pre-3.0 UWIN ksh.
13032$as_unset ENV MAIL MAILPATH
13033PS1='$ '
13034PS2='> '
13035PS4='+ '
13036
13037# NLS nuisances.
13038for as_var in \
13039 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13040 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13041 LC_TELEPHONE LC_TIME
13042do
13043 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13044 eval $as_var=C; export $as_var
13045 else
13046 $as_unset $as_var
13047 fi
13048done
13049
13050# Required to use basename.
13051if expr a : '\(a\)' >/dev/null 2>&1; then
13052 as_expr=expr
13053else
13054 as_expr=false
13055fi
13056
13057if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
13058 as_basename=basename
13059else
13060 as_basename=false
13061fi
13062
13063
13064# Name of the executable.
13065as_me=`$as_basename "$0" ||
13066$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13067 X"$0" : 'X\(//\)$' \| \
13068 X"$0" : 'X\(/\)$' \| \
13069 . : '\(.\)' 2>/dev/null ||
13070echo X/"$0" |
13071 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13072 /^X\/\(\/\/\)$/{ s//\1/; q; }
13073 /^X\/\(\/\).*/{ s//\1/; q; }
13074 s/.*/./; q'`
13075
13076
13077# PATH needs CR, and LINENO needs CR and PATH.
13078# Avoid depending upon Character Ranges.
13079as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13080as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13081as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13082as_cr_digits='0123456789'
13083as_cr_alnum=$as_cr_Letters$as_cr_digits
13084
13085# The user is always right.
13086if test "${PATH_SEPARATOR+set}" != set; then
13087 echo "#! /bin/sh" >conf$$.sh
13088 echo "exit 0" >>conf$$.sh
13089 chmod +x conf$$.sh
13090 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13091 PATH_SEPARATOR=';'
13092 else
13093 PATH_SEPARATOR=:
13094 fi
13095 rm -f conf$$.sh
13096fi
13097
13098
13099 as_lineno_1=$LINENO
13100 as_lineno_2=$LINENO
13101 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13102 test "x$as_lineno_1" != "x$as_lineno_2" &&
13103 test "x$as_lineno_3" = "x$as_lineno_2" || {
13104 # Find who we are. Look in the path if we contain no path at all
13105 # relative or not.
13106 case $0 in
13107 *[\\/]* ) as_myself=$0 ;;
13108 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13109for as_dir in $PATH
13110do
13111 IFS=$as_save_IFS
13112 test -z "$as_dir" && as_dir=.
13113 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13114done
13115
13116 ;;
13117 esac
13118 # We did not find ourselves, most probably we were run as `sh COMMAND'
13119 # in which case we are not to be found in the path.
13120 if test "x$as_myself" = x; then
13121 as_myself=$0
13122 fi
13123 if test ! -f "$as_myself"; then
13124 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13125echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13126 { (exit 1); exit 1; }; }
13127 fi
13128 case $CONFIG_SHELL in
13129 '')
13130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13132do
13133 IFS=$as_save_IFS
13134 test -z "$as_dir" && as_dir=.
13135 for as_base in sh bash ksh sh5; do
13136 case $as_dir in
13137 /*)
13138 if ("$as_dir/$as_base" -c '
13139 as_lineno_1=$LINENO
13140 as_lineno_2=$LINENO
13141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13142 test "x$as_lineno_1" != "x$as_lineno_2" &&
13143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
13144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
13145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
13146 CONFIG_SHELL=$as_dir/$as_base
13147 export CONFIG_SHELL
13148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
13149 fi;;
13150 esac
13151 done
13152done
13153;;
13154 esac
13155
13156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13157 # uniformly replaced by the line number. The first 'sed' inserts a
13158 # line-number line before each line; the second 'sed' does the real
13159 # work. The second script uses 'N' to pair each line-number line
13160 # with the numbered line, and appends trailing '-' during
13161 # substitution so that $LINENO is not a special case at line end.
13162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
13164 sed '=' <$as_myself |
13165 sed '
13166 N
13167 s,$,-,
13168 : loop
13169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
13170 t loop
13171 s,-$,,
13172 s,^['$as_cr_digits']*\n,,
13173 ' >$as_me.lineno &&
13174 chmod +x $as_me.lineno ||
13175 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13176echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
13177 { (exit 1); exit 1; }; }
13178
13179 # Don't try to exec as it changes $[0], causing all sort of problems
13180 # (the dirname of $[0] is not the place where we might find the
13181 # original and so on. Autoconf is especially sensible to this).
13182 . ./$as_me.lineno
13183 # Exit status is that of the last command.
13184 exit
13185}
13186
13187
13188case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13189 *c*,-n*) ECHO_N= ECHO_C='
13190' ECHO_T=' ' ;;
13191 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
13192 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
13193esac
13194
13195if expr a : '\(a\)' >/dev/null 2>&1; then
13196 as_expr=expr
13197else
13198 as_expr=false
13199fi
13200
13201rm -f conf$$ conf$$.exe conf$$.file
13202echo >conf$$.file
13203if ln -s conf$$.file conf$$ 2>/dev/null; then
13204 # We could just check for DJGPP; but this test a) works b) is more generic
13205 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13206 if test -f conf$$.exe; then
13207 # Don't use ln at all; we don't have any links
13208 as_ln_s='cp -p'
13209 else
13210 as_ln_s='ln -s'
13211 fi
13212elif ln conf$$.file conf$$ 2>/dev/null; then
13213 as_ln_s=ln
13214else
13215 as_ln_s='cp -p'
13216fi
13217rm -f conf$$ conf$$.exe conf$$.file
13218
13219if mkdir -p . 2>/dev/null; then
13220 as_mkdir_p=:
13221else
13222 test -d ./-p && rmdir ./-p
13223 as_mkdir_p=false
13224fi
13225
13226as_executable_p="test -f"
13227
13228# Sed expression to map a string onto a valid CPP name.
13229as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13230
13231# Sed expression to map a string onto a valid variable name.
13232as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13233
13234
13235# IFS
13236# We need space, tab and new line, in precisely that order.
13237as_nl='
13238'
13239IFS=" $as_nl"
13240
13241# CDPATH.
13242$as_unset CDPATH
13243
13244exec 6>&1
13245
13246# Open the log real soon, to keep \$[0] and so on meaningful, and to
13247# report actual input values of CONFIG_FILES etc. instead of their
13248# values after options handling. Logging --version etc. is OK.
13249exec 5>>config.log
13250{
13251 echo
13252 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13253## Running $as_me. ##
13254_ASBOX
13255} >&5
13256cat >&5 <<_CSEOF
13257
13258This file was extended by $as_me, which was
13259generated by GNU Autoconf 2.59. Invocation command line was
13260
13261 CONFIG_FILES = $CONFIG_FILES
13262 CONFIG_HEADERS = $CONFIG_HEADERS
13263 CONFIG_LINKS = $CONFIG_LINKS
13264 CONFIG_COMMANDS = $CONFIG_COMMANDS
13265 $ $0 $@
13266
13267_CSEOF
13268echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
13269echo >&5
13270_ACEOF
13271
13272# Files that config.status was made for.
13273if test -n "$ac_config_files"; then
13274 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
13275fi
13276
13277if test -n "$ac_config_headers"; then
13278 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13279fi
13280
13281if test -n "$ac_config_links"; then
13282 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13283fi
13284
13285if test -n "$ac_config_commands"; then
13286 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13287fi
13288
13289cat >>$CONFIG_STATUS <<\_ACEOF
13290
13291ac_cs_usage="\
13292\`$as_me' instantiates files from templates according to the
13293current configuration.
13294
13295Usage: $0 [OPTIONS] [FILE]...
13296
13297 -h, --help print this help, then exit
13298 -V, --version print version number, then exit
13299 -q, --quiet do not print progress messages
13300 -d, --debug don't remove temporary files
13301 --recheck update $as_me by reconfiguring in the same conditions
13302 --file=FILE[:TEMPLATE]
13303 instantiate the configuration file FILE
13304 --header=FILE[:TEMPLATE]
13305 instantiate the configuration header FILE
13306
13307Configuration files:
13308$config_files
13309
13310Configuration headers:
13311$config_headers
13312
13313Configuration commands:
13314$config_commands
13315
13316Report bugs to <bug-autoconf@gnu.org>."
13317_ACEOF
13318
13319cat >>$CONFIG_STATUS <<_ACEOF
13320ac_cs_version="\\
13321config.status
13322configured by $0, generated by GNU Autoconf 2.59,
13323 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13324
13325Copyright (C) 2003 Free Software Foundation, Inc.
13326This config.status script is free software; the Free Software Foundation
13327gives unlimited permission to copy, distribute and modify it."
13328srcdir=$srcdir
13329INSTALL="$INSTALL"
13330_ACEOF
13331
13332cat >>$CONFIG_STATUS <<\_ACEOF
13333# If no file are specified by the user, then we need to provide default
13334# value. By we need to know if files were specified by the user.
13335ac_need_defaults=:
13336while test $# != 0
13337do
13338 case $1 in
13339 --*=*)
13340 ac_option=`expr "x$1" : 'x\([^=]*\)='`
13341 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13342 ac_shift=:
13343 ;;
13344 -*)
13345 ac_option=$1
13346 ac_optarg=$2
13347 ac_shift=shift
13348 ;;
13349 *) # This is not an option, so the user has probably given explicit
13350 # arguments.
13351 ac_option=$1
13352 ac_need_defaults=false;;
13353 esac
13354
13355 case $ac_option in
13356 # Handling of the options.
13357_ACEOF
13358cat >>$CONFIG_STATUS <<\_ACEOF
13359 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13360 ac_cs_recheck=: ;;
13361 --version | --vers* | -V )
13362 echo "$ac_cs_version"; exit 0 ;;
13363 --he | --h)
13364 # Conflict between --help and --header
13365 { { echo "$as_me:$LINENO: error: ambiguous option: $1
13366Try \`$0 --help' for more information." >&5
13367echo "$as_me: error: ambiguous option: $1
13368Try \`$0 --help' for more information." >&2;}
13369 { (exit 1); exit 1; }; };;
13370 --help | --hel | -h )
13371 echo "$ac_cs_usage"; exit 0 ;;
13372 --debug | --d* | -d )
13373 debug=: ;;
13374 --file | --fil | --fi | --f )
13375 $ac_shift
13376 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13377 ac_need_defaults=false;;
13378 --header | --heade | --head | --hea )
13379 $ac_shift
13380 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13381 ac_need_defaults=false;;
13382 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13383 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13384 ac_cs_silent=: ;;
13385
13386 # This is an error.
13387 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13388Try \`$0 --help' for more information." >&5
13389echo "$as_me: error: unrecognized option: $1
13390Try \`$0 --help' for more information." >&2;}
13391 { (exit 1); exit 1; }; } ;;
13392
13393 *) ac_config_targets="$ac_config_targets $1" ;;
13394
13395 esac
13396 shift
13397done
13398
13399ac_configure_extra_args=
13400
13401if $ac_cs_silent; then
13402 exec 6>/dev/null
13403 ac_configure_extra_args="$ac_configure_extra_args --silent"
13404fi
13405
13406_ACEOF
13407cat >>$CONFIG_STATUS <<_ACEOF
13408if \$ac_cs_recheck; then
13409 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13410 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13411fi
13412
13413_ACEOF
13414
13415cat >>$CONFIG_STATUS <<_ACEOF
13416#
13417# INIT-COMMANDS section.
13418#
13419
13420AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13421
13422
13423# The HP-UX ksh and POSIX shell print the target directory to stdout
13424# if CDPATH is set.
13425(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13426
13427sed_quote_subst='$sed_quote_subst'
13428double_quote_subst='$double_quote_subst'
13429delay_variable_subst='$delay_variable_subst'
13430macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13431macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13432enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13433enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13434pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13435enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13436host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13437host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13438host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13439build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13440build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13441build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13442SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13443Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13444GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13445EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13446FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13447LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13448NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13449LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13450max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13451ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13452exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13453lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13454lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13455lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13456reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13457reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13458deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13459file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13460AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13461AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13462STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13463RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13464old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13465old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13466old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13467CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13468CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13469compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13470GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13471lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13472lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13473lt_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"`'
13474objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13475SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13476ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13477MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13478lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13479lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13480lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13481lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13482lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13483need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13484libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13485shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13486extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13487archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13488enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13489export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13490whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13491compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13492old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13493old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13494archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13495archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13496module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13497module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13498with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13499allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13500no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13501hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13502hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13503hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13504hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13505hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13506hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13507hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13508hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13509inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13510link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13511fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13512always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13513export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13514exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13515include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13516prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13517file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13518variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13519need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13520need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13521version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13522runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13523shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13524shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13525libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13526library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13527soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13528postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13529postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13530finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13531finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13532hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13533sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13534sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13535hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13536enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13537enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13538enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13539old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13540striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13541
13542LTCC='$LTCC'
13543LTCFLAGS='$LTCFLAGS'
13544compiler='$compiler_DEFAULT'
13545
13546# Quote evaled strings.
13547for var in SED \
13548GREP \
13549EGREP \
13550FGREP \
13551LD \
13552NM \
13553LN_S \
13554lt_SP2NL \
13555lt_NL2SP \
13556reload_flag \
13557deplibs_check_method \
13558file_magic_cmd \
13559AR \
13560AR_FLAGS \
13561STRIP \
13562RANLIB \
13563CC \
13564CFLAGS \
13565compiler \
13566lt_cv_sys_global_symbol_pipe \
13567lt_cv_sys_global_symbol_to_cdecl \
13568lt_cv_sys_global_symbol_to_c_name_address \
13569SHELL \
13570ECHO \
13571lt_prog_compiler_no_builtin_flag \
13572lt_prog_compiler_wl \
13573lt_prog_compiler_pic \
13574lt_prog_compiler_static \
13575lt_cv_prog_compiler_c_o \
13576need_locks \
13577shrext_cmds \
13578export_dynamic_flag_spec \
13579whole_archive_flag_spec \
13580compiler_needs_object \
13581with_gnu_ld \
13582allow_undefined_flag \
13583no_undefined_flag \
13584hardcode_libdir_flag_spec \
13585hardcode_libdir_flag_spec_ld \
13586hardcode_libdir_separator \
13587fix_srcfile_path \
13588exclude_expsyms \
13589include_expsyms \
13590file_list_spec \
13591variables_saved_for_relink \
13592libname_spec \
13593library_names_spec \
13594soname_spec \
13595finish_eval \
13596old_striplib \
13597striplib; do
13598 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13599 *[\\\\\\\`\\"\\\$]*)
13600 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13601 ;;
13602 *)
13603 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13604 ;;
13605 esac
13606done
13607
13608# Double-quote double-evaled strings.
13609for var in reload_cmds \
13610old_postinstall_cmds \
13611old_postuninstall_cmds \
13612old_archive_cmds \
13613extract_expsyms_cmds \
13614old_archive_from_new_cmds \
13615old_archive_from_expsyms_cmds \
13616archive_cmds \
13617archive_expsym_cmds \
13618module_cmds \
13619module_expsym_cmds \
13620export_symbols_cmds \
13621prelink_cmds \
13622postinstall_cmds \
13623postuninstall_cmds \
13624finish_cmds \
13625sys_lib_search_path_spec \
13626sys_lib_dlsearch_path_spec; do
13627 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13628 *[\\\\\\\`\\"\\\$]*)
13629 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13630 ;;
13631 *)
13632 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13633 ;;
13634 esac
13635done
13636
13637# Fix-up fallback echo if it was mangled by the above quoting rules.
13638case \$lt_ECHO in
13639*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13640 ;;
13641esac
13642
13643ac_aux_dir='$ac_aux_dir'
13644xsi_shell='$xsi_shell'
13645lt_shell_append='$lt_shell_append'
13646
13647# See if we are running on zsh, and set the options which allow our
13648# commands through without removal of \ escapes INIT.
13649if test -n "\${ZSH_VERSION+set}" ; then
13650 setopt NO_GLOB_SUBST
13651fi
13652
13653
13654 PACKAGE='$PACKAGE'
13655 VERSION='$VERSION'
13656 TIMESTAMP='$TIMESTAMP'
13657 RM='$RM'
13658 ofile='$ofile'
13659
13660
13661
13662# Capture the value of obsolete ALL_LINGUAS because we need it to compute
13663 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
13664 # from automake.
13665 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
13666 # Capture the value of LINGUAS because we need it to compute CATALOGS.
13667 LINGUAS="${LINGUAS-%UNSET%}"
13668
13669
13670_ACEOF
13671
13672
13673
13674cat >>$CONFIG_STATUS <<\_ACEOF
13675for ac_config_target in $ac_config_targets
13676do
13677 case "$ac_config_target" in
13678 # Handling of arguments.
13679 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13680 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
13681 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13682 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13683 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13684 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
13685 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13686echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13687 { (exit 1); exit 1; }; };;
13688 esac
13689done
13690
13691# If the user did not use the arguments to specify the items to instantiate,
13692# then the envvar interface is used. Set only those that are not.
13693# We use the long form for the default assignment because of an extremely
13694# bizarre bug on SunOS 4.1.3.
13695if $ac_need_defaults; then
13696 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13697 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13698 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13699fi
13700
13701# Have a temporary directory for convenience. Make it in the build tree
13702# simply because there is no reason to put it here, and in addition,
13703# creating and moving files from /tmp can sometimes cause problems.
13704# Create a temporary directory, and hook for its removal unless debugging.
13705$debug ||
13706{
13707 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13708 trap '{ (exit 1); exit 1; }' 1 2 13 15
13709}
13710
13711# Create a (secure) tmp directory for tmp files.
13712
13713{
13714 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13715 test -n "$tmp" && test -d "$tmp"
13716} ||
13717{
13718 tmp=./confstat$$-$RANDOM
13719 (umask 077 && mkdir $tmp)
13720} ||
13721{
13722 echo "$me: cannot create a temporary directory in ." >&2
13723 { (exit 1); exit 1; }
13724}
13725
13726_ACEOF
13727
13728cat >>$CONFIG_STATUS <<_ACEOF
13729
13730#
13731# CONFIG_FILES section.
13732#
13733
13734# No need to generate the scripts if there are no CONFIG_FILES.
13735# This happens for instance when ./config.status config.h
13736if test -n "\$CONFIG_FILES"; then
13737 # Protect against being on the right side of a sed subst in config.status.
13738 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13739 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13740s,@SHELL@,$SHELL,;t t
13741s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13742s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13743s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13744s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13745s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13746s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13747s,@exec_prefix@,$exec_prefix,;t t
13748s,@prefix@,$prefix,;t t
13749s,@program_transform_name@,$program_transform_name,;t t
13750s,@bindir@,$bindir,;t t
13751s,@sbindir@,$sbindir,;t t
13752s,@libexecdir@,$libexecdir,;t t
13753s,@datadir@,$datadir,;t t
13754s,@sysconfdir@,$sysconfdir,;t t
13755s,@sharedstatedir@,$sharedstatedir,;t t
13756s,@localstatedir@,$localstatedir,;t t
13757s,@libdir@,$libdir,;t t
13758s,@includedir@,$includedir,;t t
13759s,@oldincludedir@,$oldincludedir,;t t
13760s,@infodir@,$infodir,;t t
13761s,@mandir@,$mandir,;t t
13762s,@build_alias@,$build_alias,;t t
13763s,@host_alias@,$host_alias,;t t
13764s,@target_alias@,$target_alias,;t t
13765s,@DEFS@,$DEFS,;t t
13766s,@ECHO_C@,$ECHO_C,;t t
13767s,@ECHO_N@,$ECHO_N,;t t
13768s,@ECHO_T@,$ECHO_T,;t t
13769s,@LIBS@,$LIBS,;t t
13770s,@build@,$build,;t t
13771s,@build_cpu@,$build_cpu,;t t
13772s,@build_vendor@,$build_vendor,;t t
13773s,@build_os@,$build_os,;t t
13774s,@host@,$host,;t t
13775s,@host_cpu@,$host_cpu,;t t
13776s,@host_vendor@,$host_vendor,;t t
13777s,@host_os@,$host_os,;t t
13778s,@target@,$target,;t t
13779s,@target_cpu@,$target_cpu,;t t
13780s,@target_vendor@,$target_vendor,;t t
13781s,@target_os@,$target_os,;t t
13782s,@CC@,$CC,;t t
13783s,@CFLAGS@,$CFLAGS,;t t
13784s,@LDFLAGS@,$LDFLAGS,;t t
13785s,@CPPFLAGS@,$CPPFLAGS,;t t
13786s,@ac_ct_CC@,$ac_ct_CC,;t t
13787s,@EXEEXT@,$EXEEXT,;t t
13788s,@OBJEXT@,$OBJEXT,;t t
13789s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13790s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13791s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13792s,@CYGPATH_W@,$CYGPATH_W,;t t
13793s,@PACKAGE@,$PACKAGE,;t t
13794s,@VERSION@,$VERSION,;t t
13795s,@ACLOCAL@,$ACLOCAL,;t t
13796s,@AUTOCONF@,$AUTOCONF,;t t
13797s,@AUTOMAKE@,$AUTOMAKE,;t t
13798s,@AUTOHEADER@,$AUTOHEADER,;t t
13799s,@MAKEINFO@,$MAKEINFO,;t t
13800s,@install_sh@,$install_sh,;t t
13801s,@STRIP@,$STRIP,;t t
13802s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
13803s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
13804s,@mkdir_p@,$mkdir_p,;t t
13805s,@AWK@,$AWK,;t t
13806s,@SET_MAKE@,$SET_MAKE,;t t
13807s,@am__leading_dot@,$am__leading_dot,;t t
13808s,@AMTAR@,$AMTAR,;t t
13809s,@am__tar@,$am__tar,;t t
13810s,@am__untar@,$am__untar,;t t
13811s,@DEPDIR@,$DEPDIR,;t t
13812s,@am__include@,$am__include,;t t
13813s,@am__quote@,$am__quote,;t t
13814s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
13815s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
13816s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
13817s,@CCDEPMODE@,$CCDEPMODE,;t t
13818s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
13819s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
13820s,@use_sysroot@,$use_sysroot,;t t
13821s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
13822s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
13823s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
13824s,@NO_WERROR@,$NO_WERROR,;t t
13825s,@LIBTOOL@,$LIBTOOL,;t t
13826s,@SED@,$SED,;t t
13827s,@EGREP@,$EGREP,;t t
13828s,@FGREP@,$FGREP,;t t
13829s,@GREP@,$GREP,;t t
13830s,@LD@,$LD,;t t
13831s,@DUMPBIN@,$DUMPBIN,;t t
13832s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
13833s,@NM@,$NM,;t t
13834s,@LN_S@,$LN_S,;t t
13835s,@AR@,$AR,;t t
13836s,@ac_ct_AR@,$ac_ct_AR,;t t
13837s,@RANLIB@,$RANLIB,;t t
13838s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13839s,@lt_ECHO@,$lt_ECHO,;t t
13840s,@CPP@,$CPP,;t t
13841s,@USE_NLS@,$USE_NLS,;t t
13842s,@LIBINTL@,$LIBINTL,;t t
13843s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
13844s,@INCINTL@,$INCINTL,;t t
13845s,@XGETTEXT@,$XGETTEXT,;t t
13846s,@GMSGFMT@,$GMSGFMT,;t t
13847s,@POSUB@,$POSUB,;t t
13848s,@CATALOGS@,$CATALOGS,;t t
13849s,@DATADIRNAME@,$DATADIRNAME,;t t
13850s,@INSTOBJEXT@,$INSTOBJEXT,;t t
13851s,@GENCAT@,$GENCAT,;t t
13852s,@CATOBJEXT@,$CATOBJEXT,;t t
13853s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
13854s,@MSGFMT@,$MSGFMT,;t t
13855s,@MSGMERGE@,$MSGMERGE,;t t
13856s,@YACC@,$YACC,;t t
13857s,@LEX@,$LEX,;t t
13858s,@LEXLIB@,$LEXLIB,;t t
13859s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
13860s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13861s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13862s,@MAINT@,$MAINT,;t t
13863s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
13864s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
13865s,@HDEFINES@,$HDEFINES,;t t
13866s,@HOSTING_CRT0@,$HOSTING_CRT0,;t t
13867s,@HOSTING_LIBS@,$HOSTING_LIBS,;t t
13868s,@NATIVE_LIB_DIRS@,$NATIVE_LIB_DIRS,;t t
13869s,@STRINGIFY@,$STRINGIFY,;t t
13870s,@EMUL@,$EMUL,;t t
13871s,@EMULATION_OFILES@,$EMULATION_OFILES,;t t
13872s,@EMUL_EXTRA_OFILES@,$EMUL_EXTRA_OFILES,;t t
13873s,@LIB_PATH@,$LIB_PATH,;t t
13874s,@EMULATION_LIBPATH@,$EMULATION_LIBPATH,;t t
13875s,@TESTBFDLIB@,$TESTBFDLIB,;t t
13876s,@datarootdir@,$datarootdir,;t t
13877s,@docdir@,$docdir,;t t
13878s,@htmldir@,$htmldir,;t t
13879s,@LIBOBJS@,$LIBOBJS,;t t
13880s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13881/@TDIRS@/r $TDIRS
13882s,@TDIRS@,,;t t
13883CEOF
13884
13885_ACEOF
13886
13887 cat >>$CONFIG_STATUS <<\_ACEOF
13888 # Split the substitutions into bite-sized pieces for seds with
13889 # small command number limits, like on Digital OSF/1 and HP-UX.
13890 ac_max_sed_lines=48
13891 ac_sed_frag=1 # Number of current file.
13892 ac_beg=1 # First line for current file.
13893 ac_end=$ac_max_sed_lines # Line after last line for current file.
13894 ac_more_lines=:
13895 ac_sed_cmds=
13896 while $ac_more_lines; do
13897 if test $ac_beg -gt 1; then
13898 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13899 else
13900 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13901 fi
13902 if test ! -s $tmp/subs.frag; then
13903 ac_more_lines=false
13904 else
13905 # The purpose of the label and of the branching condition is to
13906 # speed up the sed processing (if there are no `@' at all, there
13907 # is no need to browse any of the substitutions).
13908 # These are the two extra sed commands mentioned above.
13909 (echo ':t
13910 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13911 if test -z "$ac_sed_cmds"; then
13912 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13913 else
13914 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13915 fi
13916 ac_sed_frag=`expr $ac_sed_frag + 1`
13917 ac_beg=$ac_end
13918 ac_end=`expr $ac_end + $ac_max_sed_lines`
13919 fi
13920 done
13921 if test -z "$ac_sed_cmds"; then
13922 ac_sed_cmds=cat
13923 fi
13924fi # test -n "$CONFIG_FILES"
13925
13926_ACEOF
13927cat >>$CONFIG_STATUS <<\_ACEOF
13928for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13929 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13930 case $ac_file in
13931 - | *:- | *:-:* ) # input from stdin
13932 cat >$tmp/stdin
13933 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13934 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13935 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13936 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13937 * ) ac_file_in=$ac_file.in ;;
13938 esac
13939
13940 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13941 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13942$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13943 X"$ac_file" : 'X\(//\)[^/]' \| \
13944 X"$ac_file" : 'X\(//\)$' \| \
13945 X"$ac_file" : 'X\(/\)' \| \
13946 . : '\(.\)' 2>/dev/null ||
13947echo X"$ac_file" |
13948 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13949 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13950 /^X\(\/\/\)$/{ s//\1/; q; }
13951 /^X\(\/\).*/{ s//\1/; q; }
13952 s/.*/./; q'`
13953 { if $as_mkdir_p; then
13954 mkdir -p "$ac_dir"
13955 else
13956 as_dir="$ac_dir"
13957 as_dirs=
13958 while test ! -d "$as_dir"; do
13959 as_dirs="$as_dir $as_dirs"
13960 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13961$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13962 X"$as_dir" : 'X\(//\)[^/]' \| \
13963 X"$as_dir" : 'X\(//\)$' \| \
13964 X"$as_dir" : 'X\(/\)' \| \
13965 . : '\(.\)' 2>/dev/null ||
13966echo X"$as_dir" |
13967 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13968 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13969 /^X\(\/\/\)$/{ s//\1/; q; }
13970 /^X\(\/\).*/{ s//\1/; q; }
13971 s/.*/./; q'`
13972 done
13973 test ! -n "$as_dirs" || mkdir $as_dirs
13974 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13975echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13976 { (exit 1); exit 1; }; }; }
13977
13978 ac_builddir=.
13979
13980if test "$ac_dir" != .; then
13981 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13982 # A "../" for each directory in $ac_dir_suffix.
13983 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13984else
13985 ac_dir_suffix= ac_top_builddir=
13986fi
13987
13988case $srcdir in
13989 .) # No --srcdir option. We are building in place.
13990 ac_srcdir=.
13991 if test -z "$ac_top_builddir"; then
13992 ac_top_srcdir=.
13993 else
13994 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13995 fi ;;
13996 [\\/]* | ?:[\\/]* ) # Absolute path.
13997 ac_srcdir=$srcdir$ac_dir_suffix;
13998 ac_top_srcdir=$srcdir ;;
13999 *) # Relative path.
14000 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14001 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14002esac
14003
14004# Do not use `cd foo && pwd` to compute absolute paths, because
14005# the directories may not exist.
14006case `pwd` in
14007.) ac_abs_builddir="$ac_dir";;
14008*)
14009 case "$ac_dir" in
14010 .) ac_abs_builddir=`pwd`;;
14011 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14012 *) ac_abs_builddir=`pwd`/"$ac_dir";;
14013 esac;;
14014esac
14015case $ac_abs_builddir in
14016.) ac_abs_top_builddir=${ac_top_builddir}.;;
14017*)
14018 case ${ac_top_builddir}. in
14019 .) ac_abs_top_builddir=$ac_abs_builddir;;
14020 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14021 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14022 esac;;
14023esac
14024case $ac_abs_builddir in
14025.) ac_abs_srcdir=$ac_srcdir;;
14026*)
14027 case $ac_srcdir in
14028 .) ac_abs_srcdir=$ac_abs_builddir;;
14029 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14030 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14031 esac;;
14032esac
14033case $ac_abs_builddir in
14034.) ac_abs_top_srcdir=$ac_top_srcdir;;
14035*)
14036 case $ac_top_srcdir in
14037 .) ac_abs_top_srcdir=$ac_abs_builddir;;
14038 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14039 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14040 esac;;
14041esac
14042
14043
14044 case $INSTALL in
14045 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14046 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
14047 esac
14048
14049 if test x"$ac_file" != x-; then
14050 { echo "$as_me:$LINENO: creating $ac_file" >&5
14051echo "$as_me: creating $ac_file" >&6;}
14052 rm -f "$ac_file"
14053 fi
14054 # Let's still pretend it is `configure' which instantiates (i.e., don't
14055 # use $as_me), people would be surprised to read:
14056 # /* config.h. Generated by config.status. */
14057 if test x"$ac_file" = x-; then
14058 configure_input=
14059 else
14060 configure_input="$ac_file. "
14061 fi
14062 configure_input=$configure_input"Generated from `echo $ac_file_in |
14063 sed 's,.*/,,'` by configure."
14064
14065 # First look for the input files in the build tree, otherwise in the
14066 # src tree.
14067 ac_file_inputs=`IFS=:
14068 for f in $ac_file_in; do
14069 case $f in
14070 -) echo $tmp/stdin ;;
14071 [\\/$]*)
14072 # Absolute (can't be DOS-style, as IFS=:)
14073 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14074echo "$as_me: error: cannot find input file: $f" >&2;}
14075 { (exit 1); exit 1; }; }
14076 echo "$f";;
14077 *) # Relative
14078 if test -f "$f"; then
14079 # Build tree
14080 echo "$f"
14081 elif test -f "$srcdir/$f"; then
14082 # Source tree
14083 echo "$srcdir/$f"
14084 else
14085 # /dev/null tree
14086 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14087echo "$as_me: error: cannot find input file: $f" >&2;}
14088 { (exit 1); exit 1; }; }
14089 fi;;
14090 esac
14091 done` || { (exit 1); exit 1; }
14092_ACEOF
14093cat >>$CONFIG_STATUS <<_ACEOF
14094 sed "$ac_vpsub
14095$extrasub
14096_ACEOF
14097cat >>$CONFIG_STATUS <<\_ACEOF
14098:t
14099/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14100s,@configure_input@,$configure_input,;t t
14101s,@srcdir@,$ac_srcdir,;t t
14102s,@abs_srcdir@,$ac_abs_srcdir,;t t
14103s,@top_srcdir@,$ac_top_srcdir,;t t
14104s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
14105s,@builddir@,$ac_builddir,;t t
14106s,@abs_builddir@,$ac_abs_builddir,;t t
14107s,@top_builddir@,$ac_top_builddir,;t t
14108s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
14109s,@INSTALL@,$ac_INSTALL,;t t
14110" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
14111 rm -f $tmp/stdin
14112 if test x"$ac_file" != x-; then
14113 mv $tmp/out $ac_file
14114 else
14115 cat $tmp/out
14116 rm -f $tmp/out
14117 fi
14118
14119done
14120_ACEOF
14121cat >>$CONFIG_STATUS <<\_ACEOF
14122
14123#
14124# CONFIG_HEADER section.
14125#
14126
14127# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14128# NAME is the cpp macro being defined and VALUE is the value it is being given.
14129#
14130# ac_d sets the value in "#define NAME VALUE" lines.
14131ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14132ac_dB='[ ].*$,\1#\2'
14133ac_dC=' '
14134ac_dD=',;t'
14135# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14136ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14137ac_uB='$,\1#\2define\3'
14138ac_uC=' '
14139ac_uD=',;t'
14140
14141for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
14142 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14143 case $ac_file in
14144 - | *:- | *:-:* ) # input from stdin
14145 cat >$tmp/stdin
14146 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14147 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14148 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14149 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14150 * ) ac_file_in=$ac_file.in ;;
14151 esac
14152
14153 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
14154echo "$as_me: creating $ac_file" >&6;}
14155
14156 # First look for the input files in the build tree, otherwise in the
14157 # src tree.
14158 ac_file_inputs=`IFS=:
14159 for f in $ac_file_in; do
14160 case $f in
14161 -) echo $tmp/stdin ;;
14162 [\\/$]*)
14163 # Absolute (can't be DOS-style, as IFS=:)
14164 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14165echo "$as_me: error: cannot find input file: $f" >&2;}
14166 { (exit 1); exit 1; }; }
14167 # Do quote $f, to prevent DOS paths from being IFS'd.
14168 echo "$f";;
14169 *) # Relative
14170 if test -f "$f"; then
14171 # Build tree
14172 echo "$f"
14173 elif test -f "$srcdir/$f"; then
14174 # Source tree
14175 echo "$srcdir/$f"
14176 else
14177 # /dev/null tree
14178 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14179echo "$as_me: error: cannot find input file: $f" >&2;}
14180 { (exit 1); exit 1; }; }
14181 fi;;
14182 esac
14183 done` || { (exit 1); exit 1; }
14184 # Remove the trailing spaces.
14185 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
14186
14187_ACEOF
14188
14189# Transform confdefs.h into two sed scripts, `conftest.defines' and
14190# `conftest.undefs', that substitutes the proper values into
14191# config.h.in to produce config.h. The first handles `#define'
14192# templates, and the second `#undef' templates.
14193# And first: Protect against being on the right side of a sed subst in
14194# config.status. Protect against being in an unquoted here document
14195# in config.status.
14196rm -f conftest.defines conftest.undefs
14197# Using a here document instead of a string reduces the quoting nightmare.
14198# Putting comments in sed scripts is not portable.
14199#
14200# `end' is used to avoid that the second main sed command (meant for
14201# 0-ary CPP macros) applies to n-ary macro definitions.
14202# See the Autoconf documentation for `clear'.
14203cat >confdef2sed.sed <<\_ACEOF
14204s/[\\&,]/\\&/g
14205s,[\\$`],\\&,g
14206t clear
14207: clear
14208s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
14209t end
14210s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
14211: end
14212_ACEOF
14213# If some macros were called several times there might be several times
14214# the same #defines, which is useless. Nevertheless, we may not want to
14215# sort them, since we want the *last* AC-DEFINE to be honored.
14216uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
14217sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
14218rm -f confdef2sed.sed
14219
14220# This sed command replaces #undef with comments. This is necessary, for
14221# example, in the case of _POSIX_SOURCE, which is predefined and required
14222# on some systems where configure will not decide to define it.
14223cat >>conftest.undefs <<\_ACEOF
14224s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
14225_ACEOF
14226
14227# Break up conftest.defines because some shells have a limit on the size
14228# of here documents, and old seds have small limits too (100 cmds).
14229echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
14230echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
14231echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
14232echo ' :' >>$CONFIG_STATUS
14233rm -f conftest.tail
14234while grep . conftest.defines >/dev/null
14235do
14236 # Write a limited-size here document to $tmp/defines.sed.
14237 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
14238 # Speed up: don't consider the non `#define' lines.
14239 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
14240 # Work around the forget-to-reset-the-flag bug.
14241 echo 't clr' >>$CONFIG_STATUS
14242 echo ': clr' >>$CONFIG_STATUS
14243 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
14244 echo 'CEOF
14245 sed -f $tmp/defines.sed $tmp/in >$tmp/out
14246 rm -f $tmp/in
14247 mv $tmp/out $tmp/in
14248' >>$CONFIG_STATUS
14249 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
14250 rm -f conftest.defines
14251 mv conftest.tail conftest.defines
14252done
14253rm -f conftest.defines
14254echo ' fi # grep' >>$CONFIG_STATUS
14255echo >>$CONFIG_STATUS
14256
14257# Break up conftest.undefs because some shells have a limit on the size
14258# of here documents, and old seds have small limits too (100 cmds).
14259echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
14260rm -f conftest.tail
14261while grep . conftest.undefs >/dev/null
14262do
14263 # Write a limited-size here document to $tmp/undefs.sed.
14264 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
14265 # Speed up: don't consider the non `#undef'
14266 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
14267 # Work around the forget-to-reset-the-flag bug.
14268 echo 't clr' >>$CONFIG_STATUS
14269 echo ': clr' >>$CONFIG_STATUS
14270 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
14271 echo 'CEOF
14272 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
14273 rm -f $tmp/in
14274 mv $tmp/out $tmp/in
14275' >>$CONFIG_STATUS
14276 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
14277 rm -f conftest.undefs
14278 mv conftest.tail conftest.undefs
14279done
14280rm -f conftest.undefs
14281
14282cat >>$CONFIG_STATUS <<\_ACEOF
14283 # Let's still pretend it is `configure' which instantiates (i.e., don't
14284 # use $as_me), people would be surprised to read:
14285 # /* config.h. Generated by config.status. */
14286 if test x"$ac_file" = x-; then
14287 echo "/* Generated by configure. */" >$tmp/config.h
14288 else
14289 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
14290 fi
14291 cat $tmp/in >>$tmp/config.h
14292 rm -f $tmp/in
14293 if test x"$ac_file" != x-; then
14294 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
14295 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14296echo "$as_me: $ac_file is unchanged" >&6;}
14297 else
14298 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14299$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14300 X"$ac_file" : 'X\(//\)[^/]' \| \
14301 X"$ac_file" : 'X\(//\)$' \| \
14302 X"$ac_file" : 'X\(/\)' \| \
14303 . : '\(.\)' 2>/dev/null ||
14304echo X"$ac_file" |
14305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14306 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14307 /^X\(\/\/\)$/{ s//\1/; q; }
14308 /^X\(\/\).*/{ s//\1/; q; }
14309 s/.*/./; q'`
14310 { if $as_mkdir_p; then
14311 mkdir -p "$ac_dir"
14312 else
14313 as_dir="$ac_dir"
14314 as_dirs=
14315 while test ! -d "$as_dir"; do
14316 as_dirs="$as_dir $as_dirs"
14317 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14318$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14319 X"$as_dir" : 'X\(//\)[^/]' \| \
14320 X"$as_dir" : 'X\(//\)$' \| \
14321 X"$as_dir" : 'X\(/\)' \| \
14322 . : '\(.\)' 2>/dev/null ||
14323echo X"$as_dir" |
14324 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14325 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14326 /^X\(\/\/\)$/{ s//\1/; q; }
14327 /^X\(\/\).*/{ s//\1/; q; }
14328 s/.*/./; q'`
14329 done
14330 test ! -n "$as_dirs" || mkdir $as_dirs
14331 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14332echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14333 { (exit 1); exit 1; }; }; }
14334
14335 rm -f $ac_file
14336 mv $tmp/config.h $ac_file
14337 fi
14338 else
14339 cat $tmp/config.h
14340 rm -f $tmp/config.h
14341 fi
14342# Compute $ac_file's index in $config_headers.
14343_am_stamp_count=1
14344for _am_header in $config_headers :; do
14345 case $_am_header in
14346 $ac_file | $ac_file:* )
14347 break ;;
14348 * )
14349 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14350 esac
14351done
14352echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
14353$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14354 X$ac_file : 'X\(//\)[^/]' \| \
14355 X$ac_file : 'X\(//\)$' \| \
14356 X$ac_file : 'X\(/\)' \| \
14357 . : '\(.\)' 2>/dev/null ||
14358echo X$ac_file |
14359 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14360 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14361 /^X\(\/\/\)$/{ s//\1/; q; }
14362 /^X\(\/\).*/{ s//\1/; q; }
14363 s/.*/./; q'`/stamp-h$_am_stamp_count
14364done
14365_ACEOF
14366cat >>$CONFIG_STATUS <<\_ACEOF
14367
14368#
14369# CONFIG_COMMANDS section.
14370#
14371for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
14372 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
14373 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
14374 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
14375$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14376 X"$ac_dest" : 'X\(//\)[^/]' \| \
14377 X"$ac_dest" : 'X\(//\)$' \| \
14378 X"$ac_dest" : 'X\(/\)' \| \
14379 . : '\(.\)' 2>/dev/null ||
14380echo X"$ac_dest" |
14381 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14382 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14383 /^X\(\/\/\)$/{ s//\1/; q; }
14384 /^X\(\/\).*/{ s//\1/; q; }
14385 s/.*/./; q'`
14386 { if $as_mkdir_p; then
14387 mkdir -p "$ac_dir"
14388 else
14389 as_dir="$ac_dir"
14390 as_dirs=
14391 while test ! -d "$as_dir"; do
14392 as_dirs="$as_dir $as_dirs"
14393 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14394$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14395 X"$as_dir" : 'X\(//\)[^/]' \| \
14396 X"$as_dir" : 'X\(//\)$' \| \
14397 X"$as_dir" : 'X\(/\)' \| \
14398 . : '\(.\)' 2>/dev/null ||
14399echo X"$as_dir" |
14400 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14401 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14402 /^X\(\/\/\)$/{ s//\1/; q; }
14403 /^X\(\/\).*/{ s//\1/; q; }
14404 s/.*/./; q'`
14405 done
14406 test ! -n "$as_dirs" || mkdir $as_dirs
14407 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14408echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14409 { (exit 1); exit 1; }; }; }
14410
14411 ac_builddir=.
14412
14413if test "$ac_dir" != .; then
14414 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14415 # A "../" for each directory in $ac_dir_suffix.
14416 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14417else
14418 ac_dir_suffix= ac_top_builddir=
14419fi
14420
14421case $srcdir in
14422 .) # No --srcdir option. We are building in place.
14423 ac_srcdir=.
14424 if test -z "$ac_top_builddir"; then
14425 ac_top_srcdir=.
14426 else
14427 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14428 fi ;;
14429 [\\/]* | ?:[\\/]* ) # Absolute path.
14430 ac_srcdir=$srcdir$ac_dir_suffix;
14431 ac_top_srcdir=$srcdir ;;
14432 *) # Relative path.
14433 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14434 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14435esac
14436
14437# Do not use `cd foo && pwd` to compute absolute paths, because
14438# the directories may not exist.
14439case `pwd` in
14440.) ac_abs_builddir="$ac_dir";;
14441*)
14442 case "$ac_dir" in
14443 .) ac_abs_builddir=`pwd`;;
14444 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14445 *) ac_abs_builddir=`pwd`/"$ac_dir";;
14446 esac;;
14447esac
14448case $ac_abs_builddir in
14449.) ac_abs_top_builddir=${ac_top_builddir}.;;
14450*)
14451 case ${ac_top_builddir}. in
14452 .) ac_abs_top_builddir=$ac_abs_builddir;;
14453 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14454 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14455 esac;;
14456esac
14457case $ac_abs_builddir in
14458.) ac_abs_srcdir=$ac_srcdir;;
14459*)
14460 case $ac_srcdir in
14461 .) ac_abs_srcdir=$ac_abs_builddir;;
14462 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14463 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14464 esac;;
14465esac
14466case $ac_abs_builddir in
14467.) ac_abs_top_srcdir=$ac_top_srcdir;;
14468*)
14469 case $ac_top_srcdir in
14470 .) ac_abs_top_srcdir=$ac_abs_builddir;;
14471 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14472 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14473 esac;;
14474esac
14475
14476
14477 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
14478echo "$as_me: executing $ac_dest commands" >&6;}
14479 case $ac_dest in
14480 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
14481 # Strip MF so we end up with the name of the file.
14482 mf=`echo "$mf" | sed -e 's/:.*$//'`
14483 # Check whether this is an Automake generated Makefile or not.
14484 # We used to match only the files named `Makefile.in', but
14485 # some people rename them; so instead we look at the file content.
14486 # Grep'ing the first line is not enough: some people post-process
14487 # each Makefile.in and add a new line on top of each file to say so.
14488 # So let's grep whole file.
14489 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
14490 dirpart=`(dirname "$mf") 2>/dev/null ||
14491$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14492 X"$mf" : 'X\(//\)[^/]' \| \
14493 X"$mf" : 'X\(//\)$' \| \
14494 X"$mf" : 'X\(/\)' \| \
14495 . : '\(.\)' 2>/dev/null ||
14496echo X"$mf" |
14497 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14498 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14499 /^X\(\/\/\)$/{ s//\1/; q; }
14500 /^X\(\/\).*/{ s//\1/; q; }
14501 s/.*/./; q'`
14502 else
14503 continue
14504 fi
14505 # Extract the definition of DEPDIR, am__include, and am__quote
14506 # from the Makefile without running `make'.
14507 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14508 test -z "$DEPDIR" && continue
14509 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14510 test -z "am__include" && continue
14511 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14512 # When using ansi2knr, U may be empty or an underscore; expand it
14513 U=`sed -n 's/^U = //p' < "$mf"`
14514 # Find all dependency output files, they are included files with
14515 # $(DEPDIR) in their names. We invoke sed twice because it is the
14516 # simplest approach to changing $(DEPDIR) to its actual value in the
14517 # expansion.
14518 for file in `sed -n "
14519 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14520 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14521 # Make sure the directory exists.
14522 test -f "$dirpart/$file" && continue
14523 fdir=`(dirname "$file") 2>/dev/null ||
14524$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14525 X"$file" : 'X\(//\)[^/]' \| \
14526 X"$file" : 'X\(//\)$' \| \
14527 X"$file" : 'X\(/\)' \| \
14528 . : '\(.\)' 2>/dev/null ||
14529echo X"$file" |
14530 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14531 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14532 /^X\(\/\/\)$/{ s//\1/; q; }
14533 /^X\(\/\).*/{ s//\1/; q; }
14534 s/.*/./; q'`
14535 { if $as_mkdir_p; then
14536 mkdir -p $dirpart/$fdir
14537 else
14538 as_dir=$dirpart/$fdir
14539 as_dirs=
14540 while test ! -d "$as_dir"; do
14541 as_dirs="$as_dir $as_dirs"
14542 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14543$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14544 X"$as_dir" : 'X\(//\)[^/]' \| \
14545 X"$as_dir" : 'X\(//\)$' \| \
14546 X"$as_dir" : 'X\(/\)' \| \
14547 . : '\(.\)' 2>/dev/null ||
14548echo X"$as_dir" |
14549 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14550 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14551 /^X\(\/\/\)$/{ s//\1/; q; }
14552 /^X\(\/\).*/{ s//\1/; q; }
14553 s/.*/./; q'`
14554 done
14555 test ! -n "$as_dirs" || mkdir $as_dirs
14556 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
14557echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
14558 { (exit 1); exit 1; }; }; }
14559
14560 # echo "creating $dirpart/$file"
14561 echo '# dummy' > "$dirpart/$file"
14562 done
14563done
14564 ;;
14565 libtool )
14566
14567 # See if we are running on zsh, and set the options which allow our
14568 # commands through without removal of \ escapes.
14569 if test -n "${ZSH_VERSION+set}" ; then
14570 setopt NO_GLOB_SUBST
14571 fi
14572
14573 cfgfile="${ofile}T"
14574 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14575 $RM "$cfgfile"
14576
14577 cat <<_LT_EOF >> "$cfgfile"
14578#! $SHELL
14579
14580# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14581# Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
14582# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14583# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14584#
14585# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14586# 2006, 2007 Free Software Foundation, Inc.
14587#
14588# This file is part of GNU Libtool:
14589# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14590#
14591# This program is free software; you can redistribute it and/or modify
14592# it under the terms of the GNU General Public License as published by
14593# the Free Software Foundation; either version 2 of the License, or
14594# (at your option) any later version.
14595#
14596# This program is distributed in the hope that it will be useful, but
14597# WITHOUT ANY WARRANTY; without even the implied warranty of
14598# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14599# General Public License for more details.
14600#
14601# You should have received a copy of the GNU General Public License
14602# along with this program; if not, a copy can be downloaded from
14603# http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
14604# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
14605# MA 02110-1301, USA.
14606#
14607# As a special exception to the GNU General Public License, if you
14608# distribute this file as part of a program that contains a
14609# configuration script generated by Autoconf, you may include it under
14610# the same distribution terms that you use for the rest of that program.
14611
14612
14613# The names of the tagged configurations supported by this script.
14614available_tags=""
14615
14616# ### BEGIN LIBTOOL CONFIG
14617
14618# Which release of libtool.m4 was used?
14619macro_version=$macro_version
14620macro_revision=$macro_revision
14621
14622# Whether or not to build shared libraries.
14623build_libtool_libs=$enable_shared
14624
14625# Whether or not to build static libraries.
14626build_old_libs=$enable_static
14627
14628# What type of objects to build.
14629pic_mode=$pic_mode
14630
14631# Whether or not to optimize for fast installation.
14632fast_install=$enable_fast_install
14633
14634# The host system.
14635host_alias=$host_alias
14636host=$host
14637host_os=$host_os
14638
14639# The build system.
14640build_alias=$build_alias
14641build=$build
14642build_os=$build_os
14643
14644# A sed program that does not truncate output.
14645SED=$lt_SED
14646
14647# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14648Xsed="\$SED -e 1s/^X//"
14649
14650# A grep program that handles long lines.
14651GREP=$lt_GREP
14652
14653# An ERE matcher.
14654EGREP=$lt_EGREP
14655
14656# A literal string matcher.
14657FGREP=$lt_FGREP
14658
14659# A BSD- or MS-compatible name lister.
14660NM=$lt_NM
14661
14662# Whether we need soft or hard links.
14663LN_S=$lt_LN_S
14664
14665# What is the maximum length of a command?
14666max_cmd_len=$max_cmd_len
14667
14668# Object file suffix (normally "o").
14669objext=$ac_objext
14670
14671# Executable file suffix (normally "").
14672exeext=$exeext
14673
14674# whether the shell understands "unset".
14675lt_unset=$lt_unset
14676
14677# turn spaces into newlines.
14678SP2NL=$lt_lt_SP2NL
14679
14680# turn newlines into spaces.
14681NL2SP=$lt_lt_NL2SP
14682
14683# How to create reloadable object files.
14684reload_flag=$lt_reload_flag
14685reload_cmds=$lt_reload_cmds
14686
14687# Method to check whether dependent libraries are shared objects.
14688deplibs_check_method=$lt_deplibs_check_method
14689
14690# Command to use when deplibs_check_method == "file_magic".
14691file_magic_cmd=$lt_file_magic_cmd
14692
14693# The archiver.
14694AR=$lt_AR
14695AR_FLAGS=$lt_AR_FLAGS
14696
14697# A symbol stripping program.
14698STRIP=$lt_STRIP
14699
14700# Commands used to install an old-style archive.
14701RANLIB=$lt_RANLIB
14702old_postinstall_cmds=$lt_old_postinstall_cmds
14703old_postuninstall_cmds=$lt_old_postuninstall_cmds
14704
14705# A C compiler.
14706LTCC=$lt_CC
14707
14708# LTCC compiler flags.
14709LTCFLAGS=$lt_CFLAGS
14710
14711# Take the output of nm and produce a listing of raw symbols and C names.
14712global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14713
14714# Transform the output of nm in a proper C declaration.
14715global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14716
14717# Transform the output of nm in a C name address pair.
14718global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14719
14720# The name of the directory that contains temporary libtool files.
14721objdir=$objdir
14722
14723# Shell to use when invoking shell scripts.
14724SHELL=$lt_SHELL
14725
14726# An echo program that does not interpret backslashes.
14727ECHO=$lt_ECHO
14728
14729# Used to examine libraries when file_magic_cmd begins with "file".
14730MAGIC_CMD=$MAGIC_CMD
14731
14732# Must we lock files when doing compilation?
14733need_locks=$lt_need_locks
14734
14735# Old archive suffix (normally "a").
14736libext=$libext
14737
14738# Shared library suffix (normally ".so").
14739shrext_cmds=$lt_shrext_cmds
14740
14741# The commands to extract the exported symbol list from a shared archive.
14742extract_expsyms_cmds=$lt_extract_expsyms_cmds
14743
14744# Variables whose values should be saved in libtool wrapper scripts and
14745# restored at link time.
14746variables_saved_for_relink=$lt_variables_saved_for_relink
14747
14748# Do we need the "lib" prefix for modules?
14749need_lib_prefix=$need_lib_prefix
14750
14751# Do we need a version for libraries?
14752need_version=$need_version
14753
14754# Library versioning type.
14755version_type=$version_type
14756
14757# Shared library runtime path variable.
14758runpath_var=$runpath_var
14759
14760# Shared library path variable.
14761shlibpath_var=$shlibpath_var
14762
14763# Is shlibpath searched before the hard-coded library search path?
14764shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14765
14766# Format of library name prefix.
14767libname_spec=$lt_libname_spec
14768
14769# List of archive names. First name is the real one, the rest are links.
14770# The last name is the one that the linker finds with -lNAME
14771library_names_spec=$lt_library_names_spec
14772
14773# The coded name of the library, if different from the real name.
14774soname_spec=$lt_soname_spec
14775
14776# Command to use after installation of a shared archive.
14777postinstall_cmds=$lt_postinstall_cmds
14778
14779# Command to use after uninstallation of a shared archive.
14780postuninstall_cmds=$lt_postuninstall_cmds
14781
14782# Commands used to finish a libtool library installation in a directory.
14783finish_cmds=$lt_finish_cmds
14784
14785# As "finish_cmds", except a single script fragment to be evaled but
14786# not shown.
14787finish_eval=$lt_finish_eval
14788
14789# Whether we should hardcode library paths into libraries.
14790hardcode_into_libs=$hardcode_into_libs
14791
14792# Compile-time system search path for libraries.
14793sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14794
14795# Run-time system search path for libraries.
14796sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14797
14798# Whether dlopen is supported.
14799dlopen_support=$enable_dlopen
14800
14801# Whether dlopen of programs is supported.
14802dlopen_self=$enable_dlopen_self
14803
14804# Whether dlopen of statically linked programs is supported.
14805dlopen_self_static=$enable_dlopen_self_static
14806
14807# Commands to strip libraries.
14808old_striplib=$lt_old_striplib
14809striplib=$lt_striplib
14810
14811
14812# The linker used to build libraries.
14813LD=$lt_LD
14814
14815# Commands used to build an old-style archive.
14816old_archive_cmds=$lt_old_archive_cmds
14817
14818# A language specific compiler.
14819CC=$lt_compiler
14820
14821# Is the compiler the GNU compiler?
14822with_gcc=$GCC
14823
14824# Compiler flag to turn off builtin functions.
14825no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14826
14827# How to pass a linker flag through the compiler.
14828wl=$lt_lt_prog_compiler_wl
14829
14830# Additional compiler flags for building library objects.
14831pic_flag=$lt_lt_prog_compiler_pic
14832
14833# Compiler flag to prevent dynamic linking.
14834link_static_flag=$lt_lt_prog_compiler_static
14835
14836# Does compiler simultaneously support -c and -o options?
14837compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14838
14839# Whether or not to add -lc for building shared libraries.
14840build_libtool_need_lc=$archive_cmds_need_lc
14841
14842# Whether or not to disallow shared libs when runtime libs are static.
14843allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14844
14845# Compiler flag to allow reflexive dlopens.
14846export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14847
14848# Compiler flag to generate shared objects directly from archives.
14849whole_archive_flag_spec=$lt_whole_archive_flag_spec
14850
14851# Whether the compiler copes with passing no objects directly.
14852compiler_needs_object=$lt_compiler_needs_object
14853
14854# Create an old-style archive from a shared archive.
14855old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14856
14857# Create a temporary old-style archive to link instead of a shared archive.
14858old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14859
14860# Commands used to build a shared archive.
14861archive_cmds=$lt_archive_cmds
14862archive_expsym_cmds=$lt_archive_expsym_cmds
14863
14864# Commands used to build a loadable module if different from building
14865# a shared archive.
14866module_cmds=$lt_module_cmds
14867module_expsym_cmds=$lt_module_expsym_cmds
14868
14869# Whether we are building with GNU ld or not.
14870with_gnu_ld=$lt_with_gnu_ld
14871
14872# Flag that allows shared libraries with undefined symbols to be built.
14873allow_undefined_flag=$lt_allow_undefined_flag
14874
14875# Flag that enforces no undefined symbols.
14876no_undefined_flag=$lt_no_undefined_flag
14877
14878# Flag to hardcode \$libdir into a binary during linking.
14879# This must work even if \$libdir does not exist
14880hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14881
14882# If ld is used when linking, flag to hardcode \$libdir into a binary
14883# during linking. This must work even if \$libdir does not exist.
14884hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14885
14886# Whether we need a single "-rpath" flag with a separated argument.
14887hardcode_libdir_separator=$lt_hardcode_libdir_separator
14888
14889# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14890# DIR into the resulting binary.
14891hardcode_direct=$hardcode_direct
14892
14893# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14894# DIR into the resulting binary and the resulting library dependency is
14895# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14896# library is relocated.
14897hardcode_direct_absolute=$hardcode_direct_absolute
14898
14899# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14900# into the resulting binary.
14901hardcode_minus_L=$hardcode_minus_L
14902
14903# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14904# into the resulting binary.
14905hardcode_shlibpath_var=$hardcode_shlibpath_var
14906
14907# Set to "yes" if building a shared library automatically hardcodes DIR
14908# into the library and all subsequent libraries and executables linked
14909# against it.
14910hardcode_automatic=$hardcode_automatic
14911
14912# Set to yes if linker adds runtime paths of dependent libraries
14913# to runtime path list.
14914inherit_rpath=$inherit_rpath
14915
14916# Whether libtool must link a program against all its dependency libraries.
14917link_all_deplibs=$link_all_deplibs
14918
14919# Fix the shell variable \$srcfile for the compiler.
14920fix_srcfile_path=$lt_fix_srcfile_path
14921
14922# Set to "yes" if exported symbols are required.
14923always_export_symbols=$always_export_symbols
14924
14925# The commands to list exported symbols.
14926export_symbols_cmds=$lt_export_symbols_cmds
14927
14928# Symbols that should not be listed in the preloaded symbols.
14929exclude_expsyms=$lt_exclude_expsyms
14930
14931# Symbols that must always be exported.
14932include_expsyms=$lt_include_expsyms
14933
14934# Commands necessary for linking programs (against libraries) with templates.
14935prelink_cmds=$lt_prelink_cmds
14936
14937# Specify filename containing input files.
14938file_list_spec=$lt_file_list_spec
14939
14940# How to hardcode a shared library path into an executable.
14941hardcode_action=$hardcode_action
14942
14943# ### END LIBTOOL CONFIG
14944
14945_LT_EOF
14946
14947 case $host_os in
14948 aix3*)
14949 cat <<\_LT_EOF >> "$cfgfile"
14950# AIX sometimes has problems with the GCC collect2 program. For some
14951# reason, if we set the COLLECT_NAMES environment variable, the problems
14952# vanish in a puff of smoke.
14953if test "X${COLLECT_NAMES+set}" != Xset; then
14954 COLLECT_NAMES=
14955 export COLLECT_NAMES
14956fi
14957_LT_EOF
14958 ;;
14959 esac
14960
14961
14962ltmain="$ac_aux_dir/ltmain.sh"
14963
14964
14965 # We use sed instead of cat because bash on DJGPP gets confused if
14966 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14967 # text mode, it properly converts lines to CR/LF. This bash problem
14968 # is reportedly fixed, but why not run on old versions too?
14969 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14970 || (rm -f "$cfgfile"; exit 1)
14971
14972 case $xsi_shell in
14973 yes)
14974 cat << \_LT_EOF >> "$cfgfile"
14975# func_dirname file append nondir_replacement
14976# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14977# otherwise set result to NONDIR_REPLACEMENT.
14978func_dirname ()
14979{
14980 case ${1} in
14981 */*) func_dirname_result="${1%/*}${2}" ;;
14982 * ) func_dirname_result="${3}" ;;
14983 esac
14984}
14985
14986# func_basename file
14987func_basename ()
14988{
14989 func_basename_result="${1##*/}"
14990}
14991
14992# func_stripname prefix suffix name
14993# strip PREFIX and SUFFIX off of NAME.
14994# PREFIX and SUFFIX must not contain globbing or regex special
14995# characters, hashes, percent signs, but SUFFIX may contain a leading
14996# dot (in which case that matches only a dot).
14997func_stripname ()
14998{
14999 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15000 # positional parameters, so assign one to ordinary parameter first.
15001 func_stripname_result=${3}
15002 func_stripname_result=${func_stripname_result#"${1}"}
15003 func_stripname_result=${func_stripname_result%"${2}"}
15004}
15005
15006# func_opt_split
15007func_opt_split ()
15008{
15009 func_opt_split_opt=${1%%=*}
15010 func_opt_split_arg=${1#*=}
15011}
15012
15013# func_lo2o object
15014func_lo2o ()
15015{
15016 case ${1} in
15017 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15018 *) func_lo2o_result=${1} ;;
15019 esac
15020}
15021_LT_EOF
15022 ;;
15023 *) # Bourne compatible functions.
15024 cat << \_LT_EOF >> "$cfgfile"
15025# func_dirname file append nondir_replacement
15026# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15027# otherwise set result to NONDIR_REPLACEMENT.
15028func_dirname ()
15029{
15030 # Extract subdirectory from the argument.
15031 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15032 if test "X$func_dirname_result" = "X${1}"; then
15033 func_dirname_result="${3}"
15034 else
15035 func_dirname_result="$func_dirname_result${2}"
15036 fi
15037}
15038
15039# func_basename file
15040func_basename ()
15041{
15042 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15043}
15044
15045# func_stripname prefix suffix name
15046# strip PREFIX and SUFFIX off of NAME.
15047# PREFIX and SUFFIX must not contain globbing or regex special
15048# characters, hashes, percent signs, but SUFFIX may contain a leading
15049# dot (in which case that matches only a dot).
15050# func_strip_suffix prefix name
15051func_stripname ()
15052{
15053 case ${2} in
15054 .*) func_stripname_result=`$ECHO "X${3}" \
15055 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15056 *) func_stripname_result=`$ECHO "X${3}" \
15057 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15058 esac
15059}
15060
15061# sed scripts:
15062my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15063my_sed_long_arg='1s/^-[^=]*=//'
15064
15065# func_opt_split
15066func_opt_split ()
15067{
15068 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15069 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15070}
15071
15072# func_lo2o object
15073func_lo2o ()
15074{
15075 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15076}
15077_LT_EOF
15078esac
15079
15080case $lt_shell_append in
15081 yes)
15082 cat << \_LT_EOF >> "$cfgfile"
15083
15084# func_append var value
15085# Append VALUE to the end of shell variable VAR.
15086func_append ()
15087{
15088 eval "$1+=\$2"
15089}
15090_LT_EOF
15091 ;;
15092 *)
15093 cat << \_LT_EOF >> "$cfgfile"
15094
15095# func_append var value
15096# Append VALUE to the end of shell variable VAR.
15097func_append ()
15098{
15099 eval "$1=\$$1\$2"
15100}
15101_LT_EOF
15102 ;;
15103 esac
15104
15105
15106 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15107 || (rm -f "$cfgfile"; exit 1)
15108
15109 mv -f "$cfgfile" "$ofile" ||
15110 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15111 chmod +x "$ofile"
15112
15113 ;;
15114 default-1 )
15115 for ac_file in $CONFIG_FILES; do
15116 # Support "outfile[:infile[:infile...]]"
15117 case "$ac_file" in
15118 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15119 esac
15120 # PO directories have a Makefile.in generated from Makefile.in.in.
15121 case "$ac_file" in */Makefile.in)
15122 # Adjust a relative srcdir.
15123 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15124 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
15125 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15126 # In autoconf-2.13 it is called $ac_given_srcdir.
15127 # In autoconf-2.50 it is called $srcdir.
15128 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15129 case "$ac_given_srcdir" in
15130 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15131 /*) top_srcdir="$ac_given_srcdir" ;;
15132 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
15133 esac
15134 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15135 rm -f "$ac_dir/POTFILES"
15136 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15137 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
15138 POMAKEFILEDEPS="POTFILES.in"
15139 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
15140 # on $ac_dir but don't depend on user-specified configuration
15141 # parameters.
15142 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15143 # The LINGUAS file contains the set of available languages.
15144 if test -n "$OBSOLETE_ALL_LINGUAS"; then
15145 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15146 fi
15147 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15148 # Hide the ALL_LINGUAS assigment from automake.
15149 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15150 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15151 else
15152 # The set of available languages was given in configure.in.
15153 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15154 fi
15155 case "$ac_given_srcdir" in
15156 .) srcdirpre= ;;
15157 *) srcdirpre='$(srcdir)/' ;;
15158 esac
15159 POFILES=
15160 GMOFILES=
15161 UPDATEPOFILES=
15162 DUMMYPOFILES=
15163 for lang in $ALL_LINGUAS; do
15164 POFILES="$POFILES $srcdirpre$lang.po"
15165 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
15166 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15167 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
15168 done
15169 # CATALOGS depends on both $ac_dir and the user's LINGUAS
15170 # environment variable.
15171 INST_LINGUAS=
15172 if test -n "$ALL_LINGUAS"; then
15173 for presentlang in $ALL_LINGUAS; do
15174 useit=no
15175 if test "%UNSET%" != "$LINGUAS"; then
15176 desiredlanguages="$LINGUAS"
15177 else
15178 desiredlanguages="$ALL_LINGUAS"
15179 fi
15180 for desiredlang in $desiredlanguages; do
15181 # Use the presentlang catalog if desiredlang is
15182 # a. equal to presentlang, or
15183 # b. a variant of presentlang (because in this case,
15184 # presentlang can be used as a fallback for messages
15185 # which are not translated in the desiredlang catalog).
15186 case "$desiredlang" in
15187 "$presentlang"*) useit=yes;;
15188 esac
15189 done
15190 if test $useit = yes; then
15191 INST_LINGUAS="$INST_LINGUAS $presentlang"
15192 fi
15193 done
15194 fi
15195 CATALOGS=
15196 if test -n "$INST_LINGUAS"; then
15197 for lang in $INST_LINGUAS; do
15198 CATALOGS="$CATALOGS $lang.gmo"
15199 done
15200 fi
15201 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
15202 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"
15203 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15204 if test -f "$f"; then
15205 case "$f" in
15206 *.orig | *.bak | *~) ;;
15207 *) cat "$f" >> "$ac_dir/Makefile" ;;
15208 esac
15209 fi
15210 done
15211 fi
15212 ;;
15213 esac
15214 done ;;
15215 esac
15216done
15217_ACEOF
15218
15219cat >>$CONFIG_STATUS <<\_ACEOF
15220
15221{ (exit 0); exit 0; }
15222_ACEOF
15223chmod +x $CONFIG_STATUS
15224ac_clean_files=$ac_clean_files_save
15225
15226
15227# configure is writing to config.log, and then calls config.status.
15228# config.status does its own redirection, appending to config.log.
15229# Unfortunately, on DOS this fails, as config.log is still kept open
15230# by configure, so config.status won't be able to write to it; its
15231# output is simply discarded. So we exec the FD to /dev/null,
15232# effectively closing config.log, so it can be properly (re)opened and
15233# appended to by config.status. When coming back to configure, we
15234# need to make the FD available again.
15235if test "$no_create" != yes; then
15236 ac_cs_success=:
15237 ac_config_status_args=
15238 test "$silent" = yes &&
15239 ac_config_status_args="$ac_config_status_args --quiet"
15240 exec 5>/dev/null
15241 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15242 exec 5>>config.log
15243 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15244 # would make configure fail if this is the last instruction.
15245 $ac_cs_success || { (exit 1); exit 1; }
15246fi
15247
This page took 0.073877 seconds and 4 git commands to generate.