* sh.h (EF_SH_BFD_TABLE): Set bfd_mach_sh for EF_SH_UNKNOWN.
[deliverable/binutils-gdb.git] / ld / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
42ecbf5e 3# Generated by GNU Autoconf 2.59.
252b5132 4#
42ecbf5e 5# Copyright (C) 2003 Free Software Foundation, Inc.
252b5132
RH
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
42ecbf5e
DJ
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
d7040cdb
SE
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
42ecbf5e
DJ
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`
252b5132 397
42ecbf5e
DJ
398exec 6>&1
399
400#
401# Initializations.
402#
252b5132 403ac_default_prefix=/usr/local
42ecbf5e
DJ
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
ce2cded5 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'
42ecbf5e 462ac_subst_files='TDIRS'
252b5132
RH
463
464# Initialize some variables set by options.
42ecbf5e
DJ
465ac_init_help=
466ac_init_version=false
252b5132
RH
467# The variables have the same names as the options, with
468# dashes changed to underlines.
42ecbf5e 469cache_file=/dev/null
252b5132 470exec_prefix=NONE
252b5132 471no_create=
252b5132
RH
472no_recursion=
473prefix=NONE
474program_prefix=NONE
475program_suffix=NONE
476program_transform_name=s,x,x,
477silent=
478site=
479srcdir=
252b5132
RH
480verbose=
481x_includes=NONE
482x_libraries=NONE
42ecbf5e
DJ
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.
252b5132
RH
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
252b5132
RH
502ac_prev=
503for ac_option
504do
252b5132
RH
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
42ecbf5e 512 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
252b5132
RH
513
514 # Accept the important Cygnus configure options, so we can diagnose typos.
515
42ecbf5e 516 case $ac_option in
252b5132
RH
517
518 -bindir | --bindir | --bindi | --bind | --bin | --bi)
519 ac_prev=bindir ;;
520 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
42ecbf5e 521 bindir=$ac_optarg ;;
252b5132
RH
522
523 -build | --build | --buil | --bui | --bu)
42ecbf5e 524 ac_prev=build_alias ;;
252b5132 525 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
42ecbf5e 526 build_alias=$ac_optarg ;;
252b5132
RH
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=*)
42ecbf5e
DJ
533 cache_file=$ac_optarg ;;
534
535 --config-cache | -C)
536 cache_file=config.cache ;;
252b5132
RH
537
538 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
539 ac_prev=datadir ;;
540 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
541 | --da=*)
42ecbf5e 542 datadir=$ac_optarg ;;
252b5132
RH
543
544 -disable-* | --disable-*)
42ecbf5e 545 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 546 # Reject names that are not valid shell variable names.
42ecbf5e
DJ
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" ;;
252b5132
RH
552
553 -enable-* | --enable-*)
42ecbf5e 554 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 555 # Reject names that are not valid shell variable names.
42ecbf5e
DJ
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"`;;
252b5132
RH
562 *) ac_optarg=yes ;;
563 esac
42ecbf5e 564 eval "enable_$ac_feature='$ac_optarg'" ;;
252b5132
RH
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=*)
42ecbf5e 573 exec_prefix=$ac_optarg ;;
252b5132
RH
574
575 -gas | --gas | --ga | --g)
576 # Obsolete; use --with-gas.
577 with_gas=yes ;;
578
42ecbf5e
DJ
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 ;;
252b5132
RH
585
586 -host | --host | --hos | --ho)
42ecbf5e 587 ac_prev=host_alias ;;
252b5132 588 -host=* | --host=* | --hos=* | --ho=*)
42ecbf5e 589 host_alias=$ac_optarg ;;
252b5132
RH
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=*)
42ecbf5e 596 includedir=$ac_optarg ;;
252b5132
RH
597
598 -infodir | --infodir | --infodi | --infod | --info | --inf)
599 ac_prev=infodir ;;
600 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
42ecbf5e 601 infodir=$ac_optarg ;;
252b5132
RH
602
603 -libdir | --libdir | --libdi | --libd)
604 ac_prev=libdir ;;
605 -libdir=* | --libdir=* | --libdi=* | --libd=*)
42ecbf5e 606 libdir=$ac_optarg ;;
252b5132
RH
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=*)
42ecbf5e 613 libexecdir=$ac_optarg ;;
252b5132
RH
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=*)
42ecbf5e 622 localstatedir=$ac_optarg ;;
252b5132
RH
623
624 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
625 ac_prev=mandir ;;
626 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
42ecbf5e 627 mandir=$ac_optarg ;;
252b5132
RH
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 \
42ecbf5e 634 | --no-cr | --no-c | -n)
252b5132
RH
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=*)
42ecbf5e 648 oldincludedir=$ac_optarg ;;
252b5132
RH
649
650 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
651 ac_prev=prefix ;;
652 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
42ecbf5e 653 prefix=$ac_optarg ;;
252b5132
RH
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=*)
42ecbf5e 660 program_prefix=$ac_optarg ;;
252b5132
RH
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=*)
42ecbf5e 667 program_suffix=$ac_optarg ;;
252b5132
RH
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=*)
42ecbf5e 684 program_transform_name=$ac_optarg ;;
252b5132
RH
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=*)
42ecbf5e 694 sbindir=$ac_optarg ;;
252b5132
RH
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=*)
42ecbf5e 705 sharedstatedir=$ac_optarg ;;
252b5132
RH
706
707 -site | --site | --sit)
708 ac_prev=site ;;
709 -site=* | --site=* | --sit=*)
42ecbf5e 710 site=$ac_optarg ;;
85fbca6a 711
252b5132
RH
712 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
713 ac_prev=srcdir ;;
714 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
42ecbf5e 715 srcdir=$ac_optarg ;;
252b5132
RH
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=*)
42ecbf5e 722 sysconfdir=$ac_optarg ;;
252b5132
RH
723
724 -target | --target | --targe | --targ | --tar | --ta | --t)
42ecbf5e 725 ac_prev=target_alias ;;
252b5132 726 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
42ecbf5e 727 target_alias=$ac_optarg ;;
252b5132
RH
728
729 -v | -verbose | --verbose | --verbos | --verbo | --verb)
730 verbose=yes ;;
731
42ecbf5e
DJ
732 -version | --version | --versio | --versi | --vers | -V)
733 ac_init_version=: ;;
252b5132
RH
734
735 -with-* | --with-*)
42ecbf5e 736 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 737 # Reject names that are not valid shell variable names.
42ecbf5e
DJ
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; }; }
252b5132 741 ac_package=`echo $ac_package| sed 's/-/_/g'`
42ecbf5e
DJ
742 case $ac_option in
743 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252b5132
RH
744 *) ac_optarg=yes ;;
745 esac
42ecbf5e 746 eval "with_$ac_package='$ac_optarg'" ;;
252b5132
RH
747
748 -without-* | --without-*)
42ecbf5e 749 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 750 # Reject names that are not valid shell variable names.
42ecbf5e
DJ
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" ;;
252b5132
RH
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=*)
42ecbf5e 766 x_includes=$ac_optarg ;;
252b5132
RH
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=*)
42ecbf5e 773 x_libraries=$ac_optarg ;;
252b5132 774
42ecbf5e
DJ
775 -*) { echo "$as_me: error: unrecognized option: $ac_option
776Try \`$0 --help' for more information." >&2
777 { (exit 1); exit 1; }; }
252b5132
RH
778 ;;
779
42ecbf5e
DJ
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
252b5132 790 *)
42ecbf5e
DJ
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}
252b5132
RH
796 ;;
797
798 esac
799done
800
801if test -n "$ac_prev"; then
42ecbf5e
DJ
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; }; }
252b5132 805fi
252b5132 806
42ecbf5e
DJ
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
252b5132 817
42ecbf5e
DJ
818# Be sure to have absolute paths.
819for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
820 localstatedir libdir includedir oldincludedir infodir mandir
252b5132 821do
42ecbf5e
DJ
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; }; };;
252b5132
RH
827 esac
828done
829
42ecbf5e
DJ
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
e5a52504 847
42ecbf5e
DJ
848ac_tool_prefix=
849test -n "$host_alias" && ac_tool_prefix=$host_alias-
850
851test "$silent" = yes && exec 6>/dev/null
252b5132 852
252b5132
RH
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.
42ecbf5e
DJ
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'`
252b5132
RH
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
42ecbf5e
DJ
879 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
880 { (exit 1); exit 1; }; }
252b5132 881 else
42ecbf5e
DJ
882 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
883 { (exit 1); exit 1; }; }
252b5132
RH
884 fi
885fi
42ecbf5e
DJ
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
252b5132 922
42ecbf5e
DJ
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.
252b5132 931
42ecbf5e 932Usage: $0 [OPTION]... [VAR=VALUE]...
252b5132 933
42ecbf5e
DJ
934To assign environment variables (e.g., CC, CFLAGS...), specify them as
935VAR=VALUE. See below for descriptions of some of the useful variables.
252b5132 936
42ecbf5e 937Defaults for the options are specified in brackets.
ac48eca1 938
42ecbf5e
DJ
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]
ac48eca1 958
42ecbf5e
DJ
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'.
ac48eca1 963
42ecbf5e 964For better control, use the options below.
ac48eca1 965
42ecbf5e
DJ
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
ac48eca1 980
42ecbf5e 981 cat <<\_ACEOF
252b5132 982
42ecbf5e
DJ
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
252b5132 987
42ecbf5e
DJ
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
252b5132 993fi
252b5132 994
42ecbf5e 995if test -n "$ac_init_help"; then
252b5132 996
42ecbf5e 997 cat <<\_ACEOF
e5a52504 998
42ecbf5e
DJ
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
ce2cded5
L
1004 --enable-targets alternative target configurations
1005 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
7fb9f789
NC
1006 --enable-got=<type> GOT handling scheme (target, single, negative,
1007 multigot)
ce2cded5
L
1008 --enable-werror treat compile warnings as errors
1009 --enable-build-warnings enable build-time compiler warnings
d7040cdb
SE
1010 --enable-shared[=PKGS]
1011 build shared libraries [default=yes]
1012 --enable-static[=PKGS]
1013 build static libraries [default=yes]
1014 --enable-fast-install[=PKGS]
1015 optimize for fast installation [default=yes]
42ecbf5e 1016 --disable-libtool-lock avoid locking (might break parallel builds)
42ecbf5e
DJ
1017 --disable-nls do not use Native Language Support
1018 --enable-maintainer-mode enable make rules and dependencies not useful
1019 (and sometimes confusing) to the casual installer
1020
1021Optional Packages:
1022 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1023 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
ce2cded5
L
1024 --with-lib-path=dir1:dir2... set default LIB_PATH
1025 --with-sysroot=DIR Search for usr/lib et al within DIR.
d7040cdb
SE
1026 --with-pic try to use only PIC/non-PIC objects [default=use
1027 both]
1028 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
42ecbf5e
DJ
1029
1030Some influential environment variables:
1031 CC C compiler command
1032 CFLAGS C compiler flags
1033 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1034 nonstandard directory <lib dir>
1035 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1036 headers in a nonstandard directory <include dir>
1037 CPP C preprocessor
1038
1039Use these variables to override the choices made by `configure' or to help
1040it to find libraries and programs with nonstandard names/locations.
1041
1042_ACEOF
1043fi
1044
1045if test "$ac_init_help" = "recursive"; then
1046 # If there are subdirs, report their specific --help.
1047 ac_popdir=`pwd`
1048 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1049 test -d $ac_dir || continue
1050 ac_builddir=.
1051
1052if test "$ac_dir" != .; then
1053 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1054 # A "../" for each directory in $ac_dir_suffix.
1055 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1056else
1057 ac_dir_suffix= ac_top_builddir=
1058fi
1059
1060case $srcdir in
1061 .) # No --srcdir option. We are building in place.
1062 ac_srcdir=.
1063 if test -z "$ac_top_builddir"; then
1064 ac_top_srcdir=.
1065 else
1066 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1067 fi ;;
1068 [\\/]* | ?:[\\/]* ) # Absolute path.
1069 ac_srcdir=$srcdir$ac_dir_suffix;
1070 ac_top_srcdir=$srcdir ;;
1071 *) # Relative path.
1072 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1073 ac_top_srcdir=$ac_top_builddir$srcdir ;;
252b5132
RH
1074esac
1075
42ecbf5e
DJ
1076# Do not use `cd foo && pwd` to compute absolute paths, because
1077# the directories may not exist.
1078case `pwd` in
1079.) ac_abs_builddir="$ac_dir";;
1080*)
1081 case "$ac_dir" in
1082 .) ac_abs_builddir=`pwd`;;
1083 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1084 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1085 esac;;
1086esac
1087case $ac_abs_builddir in
1088.) ac_abs_top_builddir=${ac_top_builddir}.;;
1089*)
1090 case ${ac_top_builddir}. in
1091 .) ac_abs_top_builddir=$ac_abs_builddir;;
1092 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1093 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1094 esac;;
1095esac
1096case $ac_abs_builddir in
1097.) ac_abs_srcdir=$ac_srcdir;;
1098*)
1099 case $ac_srcdir in
1100 .) ac_abs_srcdir=$ac_abs_builddir;;
1101 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1102 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1103 esac;;
1104esac
1105case $ac_abs_builddir in
1106.) ac_abs_top_srcdir=$ac_top_srcdir;;
1107*)
1108 case $ac_top_srcdir in
1109 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1110 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1111 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1112 esac;;
1113esac
a2d91340 1114
42ecbf5e
DJ
1115 cd $ac_dir
1116 # Check for guested configure; otherwise get Cygnus style configure.
1117 if test -f $ac_srcdir/configure.gnu; then
1118 echo
1119 $SHELL $ac_srcdir/configure.gnu --help=recursive
1120 elif test -f $ac_srcdir/configure; then
1121 echo
1122 $SHELL $ac_srcdir/configure --help=recursive
1123 elif test -f $ac_srcdir/configure.ac ||
1124 test -f $ac_srcdir/configure.in; then
1125 echo
1126 $ac_configure --help
1127 else
1128 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1129 fi
502bdb00 1130 cd $ac_popdir
42ecbf5e 1131 done
a2d91340
AC
1132fi
1133
42ecbf5e
DJ
1134test -n "$ac_init_help" && exit 0
1135if $ac_init_version; then
1136 cat <<\_ACEOF
a2d91340 1137
42ecbf5e
DJ
1138Copyright (C) 2003 Free Software Foundation, Inc.
1139This configure script is free software; the Free Software Foundation
1140gives unlimited permission to copy, distribute and modify it.
1141_ACEOF
1142 exit 0
1143fi
1144exec 5>config.log
1145cat >&5 <<_ACEOF
1146This file contains any messages produced by compilers while
1147running configure, to aid debugging if configure makes a mistake.
a2d91340 1148
42ecbf5e
DJ
1149It was created by $as_me, which was
1150generated by GNU Autoconf 2.59. Invocation command line was
a2d91340 1151
42ecbf5e 1152 $ $0 $@
a2d91340 1153
42ecbf5e
DJ
1154_ACEOF
1155{
1156cat <<_ASUNAME
1157## --------- ##
1158## Platform. ##
1159## --------- ##
1160
1161hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1162uname -m = `(uname -m) 2>/dev/null || echo unknown`
1163uname -r = `(uname -r) 2>/dev/null || echo unknown`
1164uname -s = `(uname -s) 2>/dev/null || echo unknown`
1165uname -v = `(uname -v) 2>/dev/null || echo unknown`
1166
1167/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1168/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1169
1170/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1171/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1172/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1173hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1174/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1175/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1176/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1177
1178_ASUNAME
1179
1180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1181for as_dir in $PATH
1182do
1183 IFS=$as_save_IFS
1184 test -z "$as_dir" && as_dir=.
1185 echo "PATH: $as_dir"
1186done
252b5132 1187
42ecbf5e 1188} >&5
5d64ca4e 1189
42ecbf5e 1190cat >&5 <<_ACEOF
5d64ca4e 1191
5d64ca4e 1192
42ecbf5e
DJ
1193## ----------- ##
1194## Core tests. ##
1195## ----------- ##
5d64ca4e 1196
42ecbf5e 1197_ACEOF
2469cfa2 1198
42ecbf5e
DJ
1199
1200# Keep a trace of the command line.
1201# Strip out --no-create and --no-recursion so they do not pile up.
1202# Strip out --silent because we don't want to record it for future runs.
1203# Also quote any args containing shell meta-characters.
1204# Make two passes to allow for proper duplicate-argument suppression.
1205ac_configure_args=
1206ac_configure_args0=
1207ac_configure_args1=
1208ac_sep=
1209ac_must_keep_next=false
1210for ac_pass in 1 2
1211do
1212 for ac_arg
1213 do
1214 case $ac_arg in
1215 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1216 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1217 | -silent | --silent | --silen | --sile | --sil)
1218 continue ;;
1219 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1220 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1221 esac
1222 case $ac_pass in
1223 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1224 2)
1225 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1226 if test $ac_must_keep_next = true; then
1227 ac_must_keep_next=false # Got value, back to normal.
1228 else
1229 case $ac_arg in
1230 *=* | --config-cache | -C | -disable-* | --disable-* \
1231 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1232 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1233 | -with-* | --with-* | -without-* | --without-* | --x)
1234 case "$ac_configure_args0 " in
1235 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1236 esac
1237 ;;
1238 -* ) ac_must_keep_next=true ;;
1239 esac
1240 fi
1241 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1242 # Get rid of the leading space.
1243 ac_sep=" "
1244 ;;
1245 esac
1246 done
1247done
1248$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1249$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1250
1251# When interrupted or exit'd, cleanup temporary files, and complete
1252# config.log. We remove comments because anyway the quotes in there
1253# would cause problems or look ugly.
1254# WARNING: Be sure not to use single quotes in there, as some shells,
1255# such as our DU 5.0 friend, will then `close' the trap.
1256trap 'exit_status=$?
1257 # Save into config.log some information that might help in debugging.
1258 {
1259 echo
1260
1261 cat <<\_ASBOX
1262## ---------------- ##
1263## Cache variables. ##
1264## ---------------- ##
1265_ASBOX
1266 echo
1267 # The following way of writing the cache mishandles newlines in values,
1268{
1269 (set) 2>&1 |
1270 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1271 *ac_space=\ *)
1272 sed -n \
1273 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1274 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1275 ;;
1276 *)
1277 sed -n \
1278 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1279 ;;
1280 esac;
1281}
1282 echo
1283
1284 cat <<\_ASBOX
1285## ----------------- ##
1286## Output variables. ##
1287## ----------------- ##
1288_ASBOX
1289 echo
1290 for ac_var in $ac_subst_vars
1291 do
1292 eval ac_val=$`echo $ac_var`
1293 echo "$ac_var='"'"'$ac_val'"'"'"
1294 done | sort
1295 echo
1296
1297 if test -n "$ac_subst_files"; then
1298 cat <<\_ASBOX
1299## ------------- ##
1300## Output files. ##
1301## ------------- ##
1302_ASBOX
1303 echo
1304 for ac_var in $ac_subst_files
1305 do
1306 eval ac_val=$`echo $ac_var`
1307 echo "$ac_var='"'"'$ac_val'"'"'"
1308 done | sort
1309 echo
1310 fi
1311
1312 if test -s confdefs.h; then
1313 cat <<\_ASBOX
1314## ----------- ##
1315## confdefs.h. ##
1316## ----------- ##
1317_ASBOX
1318 echo
1319 sed "/^$/d" confdefs.h | sort
1320 echo
1321 fi
1322 test "$ac_signal" != 0 &&
1323 echo "$as_me: caught signal $ac_signal"
1324 echo "$as_me: exit $exit_status"
1325 } >&5
1326 rm -f core *.core &&
1327 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1328 exit $exit_status
1329 ' 0
1330for ac_signal in 1 2 13 15; do
1331 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1332done
1333ac_signal=0
1334
1335# confdefs.h avoids OS command line length limits that DEFS can exceed.
1336rm -rf conftest* confdefs.h
1337# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1338echo >confdefs.h
1339
1340# Predefined preprocessor variables.
1341
1342cat >>confdefs.h <<_ACEOF
1343#define PACKAGE_NAME "$PACKAGE_NAME"
1344_ACEOF
1345
1346
1347cat >>confdefs.h <<_ACEOF
1348#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1349_ACEOF
1350
1351
1352cat >>confdefs.h <<_ACEOF
1353#define PACKAGE_VERSION "$PACKAGE_VERSION"
1354_ACEOF
1355
1356
1357cat >>confdefs.h <<_ACEOF
1358#define PACKAGE_STRING "$PACKAGE_STRING"
1359_ACEOF
1360
1361
1362cat >>confdefs.h <<_ACEOF
1363#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1364_ACEOF
1365
1366
1367# Let the site file select an alternate cache file if it wants to.
1368# Prefer explicitly selected file to automatically selected ones.
1369if test -z "$CONFIG_SITE"; then
1370 if test "x$prefix" != xNONE; then
1371 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1372 else
1373 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1374 fi
1375fi
1376for ac_site_file in $CONFIG_SITE; do
1377 if test -r "$ac_site_file"; then
1378 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1379echo "$as_me: loading site script $ac_site_file" >&6;}
1380 sed 's/^/| /' "$ac_site_file" >&5
1381 . "$ac_site_file"
1382 fi
1383done
1384
1385if test -r "$cache_file"; then
1386 # Some versions of bash will fail to source /dev/null (special
1387 # files actually), so we avoid doing that.
1388 if test -f "$cache_file"; then
1389 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1390echo "$as_me: loading cache $cache_file" >&6;}
1391 case $cache_file in
1392 [\\/]* | ?:[\\/]* ) . $cache_file;;
1393 *) . ./$cache_file;;
1394 esac
1395 fi
1396else
1397 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1398echo "$as_me: creating cache $cache_file" >&6;}
1399 >$cache_file
1400fi
1401
1402# Check that the precious variables saved in the cache have kept the same
1403# value.
1404ac_cache_corrupted=false
1405for ac_var in `(set) 2>&1 |
1406 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1407 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1408 eval ac_new_set=\$ac_env_${ac_var}_set
1409 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1410 eval ac_new_val="\$ac_env_${ac_var}_value"
1411 case $ac_old_set,$ac_new_set in
1412 set,)
1413 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1414echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1415 ac_cache_corrupted=: ;;
1416 ,set)
1417 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1418echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1419 ac_cache_corrupted=: ;;
1420 ,);;
1421 *)
1422 if test "x$ac_old_val" != "x$ac_new_val"; then
6194aaab
L
1423 # differences in whitespace do not lead to failure.
1424 ac_old_val_w=`echo x $ac_old_val`
1425 ac_new_val_w=`echo x $ac_new_val`
1426 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1427 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
42ecbf5e 1428echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
6194aaab
L
1429 ac_cache_corrupted=:
1430 else
1431 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1432echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1433 eval $ac_var=\$ac_old_val
1434 fi
1435 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1436echo "$as_me: former value: \`$ac_old_val'" >&2;}
1437 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1438echo "$as_me: current value: \`$ac_new_val'" >&2;}
42ecbf5e
DJ
1439 fi;;
1440 esac
1441 # Pass precious variables to config.status.
1442 if test "$ac_new_set" = set; then
1443 case $ac_new_val in
1444 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1445 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1446 *) ac_arg=$ac_var=$ac_new_val ;;
1447 esac
1448 case " $ac_configure_args " in
1449 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1450 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1451 esac
1452 fi
1453done
1454if $ac_cache_corrupted; then
1455 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1456echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1457 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1458echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1459 { (exit 1); exit 1; }; }
1460fi
1461
1462ac_ext=c
1463ac_cpp='$CPP $CPPFLAGS'
1464ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1465ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1466ac_compiler_gnu=$ac_cv_c_compiler_gnu
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487ac_aux_dir=
1488for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1489 if test -f $ac_dir/install-sh; then
1490 ac_aux_dir=$ac_dir
1491 ac_install_sh="$ac_aux_dir/install-sh -c"
1492 break
1493 elif test -f $ac_dir/install.sh; then
1494 ac_aux_dir=$ac_dir
1495 ac_install_sh="$ac_aux_dir/install.sh -c"
1496 break
1497 elif test -f $ac_dir/shtool; then
1498 ac_aux_dir=$ac_dir
1499 ac_install_sh="$ac_aux_dir/shtool install -c"
1500 break
1501 fi
1502done
1503if test -z "$ac_aux_dir"; then
1504 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1505echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1506 { (exit 1); exit 1; }; }
1507fi
1508ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1509ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1510ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1511
1512# Make sure we can run config.sub.
1513$ac_config_sub sun4 >/dev/null 2>&1 ||
1514 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1515echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1516 { (exit 1); exit 1; }; }
1517
1518echo "$as_me:$LINENO: checking build system type" >&5
1519echo $ECHO_N "checking build system type... $ECHO_C" >&6
1520if test "${ac_cv_build+set}" = set; then
1521 echo $ECHO_N "(cached) $ECHO_C" >&6
1522else
1523 ac_cv_build_alias=$build_alias
1524test -z "$ac_cv_build_alias" &&
1525 ac_cv_build_alias=`$ac_config_guess`
1526test -z "$ac_cv_build_alias" &&
1527 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1528echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1529 { (exit 1); exit 1; }; }
1530ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1531 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1532echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1533 { (exit 1); exit 1; }; }
1534
1535fi
1536echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1537echo "${ECHO_T}$ac_cv_build" >&6
1538build=$ac_cv_build
1539build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1540build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1541build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1542
1543
1544echo "$as_me:$LINENO: checking host system type" >&5
1545echo $ECHO_N "checking host system type... $ECHO_C" >&6
1546if test "${ac_cv_host+set}" = set; then
1547 echo $ECHO_N "(cached) $ECHO_C" >&6
1548else
1549 ac_cv_host_alias=$host_alias
1550test -z "$ac_cv_host_alias" &&
1551 ac_cv_host_alias=$ac_cv_build_alias
1552ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1553 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1554echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1555 { (exit 1); exit 1; }; }
1556
1557fi
1558echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1559echo "${ECHO_T}$ac_cv_host" >&6
1560host=$ac_cv_host
1561host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1562host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1563host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1564
1565
1566echo "$as_me:$LINENO: checking target system type" >&5
1567echo $ECHO_N "checking target system type... $ECHO_C" >&6
1568if test "${ac_cv_target+set}" = set; then
1569 echo $ECHO_N "(cached) $ECHO_C" >&6
1570else
1571 ac_cv_target_alias=$target_alias
1572test "x$ac_cv_target_alias" = "x" &&
1573 ac_cv_target_alias=$ac_cv_host_alias
1574ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1575 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1576echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1577 { (exit 1); exit 1; }; }
1578
1579fi
1580echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1581echo "${ECHO_T}$ac_cv_target" >&6
1582target=$ac_cv_target
1583target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1584target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1585target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1586
1587
1588# The aliases save the names the user supplied, while $host etc.
1589# will get canonicalized.
1590test -n "$target_alias" &&
1591 test "$program_prefix$program_suffix$program_transform_name" = \
1592 NONENONEs,x,x, &&
1593 program_prefix=${target_alias}-
1594ac_ext=c
1595ac_cpp='$CPP $CPPFLAGS'
1596ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1597ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1598ac_compiler_gnu=$ac_cv_c_compiler_gnu
1599if test -n "$ac_tool_prefix"; then
1600 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1601set dummy ${ac_tool_prefix}gcc; ac_word=$2
1602echo "$as_me:$LINENO: checking for $ac_word" >&5
1603echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1604if test "${ac_cv_prog_CC+set}" = set; then
1605 echo $ECHO_N "(cached) $ECHO_C" >&6
1606else
1607 if test -n "$CC"; then
1608 ac_cv_prog_CC="$CC" # Let the user override the test.
1609else
1610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1611for as_dir in $PATH
1612do
1613 IFS=$as_save_IFS
1614 test -z "$as_dir" && as_dir=.
1615 for ac_exec_ext in '' $ac_executable_extensions; do
1616 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1617 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1619 break 2
1620 fi
1621done
1622done
1623
1624fi
1625fi
1626CC=$ac_cv_prog_CC
1627if test -n "$CC"; then
1628 echo "$as_me:$LINENO: result: $CC" >&5
1629echo "${ECHO_T}$CC" >&6
1630else
1631 echo "$as_me:$LINENO: result: no" >&5
1632echo "${ECHO_T}no" >&6
1633fi
1634
1635fi
1636if test -z "$ac_cv_prog_CC"; then
1637 ac_ct_CC=$CC
1638 # Extract the first word of "gcc", so it can be a program name with args.
1639set dummy gcc; ac_word=$2
1640echo "$as_me:$LINENO: checking for $ac_word" >&5
1641echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1642if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1643 echo $ECHO_N "(cached) $ECHO_C" >&6
1644else
1645 if test -n "$ac_ct_CC"; then
1646 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1647else
1648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1649for as_dir in $PATH
1650do
1651 IFS=$as_save_IFS
1652 test -z "$as_dir" && as_dir=.
1653 for ac_exec_ext in '' $ac_executable_extensions; do
1654 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1655 ac_cv_prog_ac_ct_CC="gcc"
1656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1657 break 2
1658 fi
1659done
1660done
1661
1662fi
1663fi
1664ac_ct_CC=$ac_cv_prog_ac_ct_CC
1665if test -n "$ac_ct_CC"; then
1666 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1667echo "${ECHO_T}$ac_ct_CC" >&6
1668else
1669 echo "$as_me:$LINENO: result: no" >&5
1670echo "${ECHO_T}no" >&6
1671fi
1672
1673 CC=$ac_ct_CC
1674else
1675 CC="$ac_cv_prog_CC"
1676fi
1677
1678if test -z "$CC"; then
1679 if test -n "$ac_tool_prefix"; then
1680 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1681set dummy ${ac_tool_prefix}cc; ac_word=$2
1682echo "$as_me:$LINENO: checking for $ac_word" >&5
1683echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1684if test "${ac_cv_prog_CC+set}" = set; then
1685 echo $ECHO_N "(cached) $ECHO_C" >&6
1686else
1687 if test -n "$CC"; then
1688 ac_cv_prog_CC="$CC" # Let the user override the test.
1689else
1690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1691for as_dir in $PATH
1692do
1693 IFS=$as_save_IFS
1694 test -z "$as_dir" && as_dir=.
1695 for ac_exec_ext in '' $ac_executable_extensions; do
1696 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1697 ac_cv_prog_CC="${ac_tool_prefix}cc"
1698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1699 break 2
1700 fi
1701done
1702done
1703
1704fi
1705fi
1706CC=$ac_cv_prog_CC
1707if test -n "$CC"; then
1708 echo "$as_me:$LINENO: result: $CC" >&5
1709echo "${ECHO_T}$CC" >&6
1710else
1711 echo "$as_me:$LINENO: result: no" >&5
1712echo "${ECHO_T}no" >&6
1713fi
1714
1715fi
1716if test -z "$ac_cv_prog_CC"; then
1717 ac_ct_CC=$CC
1718 # Extract the first word of "cc", so it can be a program name with args.
1719set dummy cc; ac_word=$2
1720echo "$as_me:$LINENO: checking for $ac_word" >&5
1721echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1722if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1723 echo $ECHO_N "(cached) $ECHO_C" >&6
1724else
1725 if test -n "$ac_ct_CC"; then
1726 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1727else
1728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1729for as_dir in $PATH
1730do
1731 IFS=$as_save_IFS
1732 test -z "$as_dir" && as_dir=.
1733 for ac_exec_ext in '' $ac_executable_extensions; do
1734 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1735 ac_cv_prog_ac_ct_CC="cc"
1736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1737 break 2
1738 fi
1739done
1740done
1741
1742fi
1743fi
1744ac_ct_CC=$ac_cv_prog_ac_ct_CC
1745if test -n "$ac_ct_CC"; then
1746 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1747echo "${ECHO_T}$ac_ct_CC" >&6
1748else
1749 echo "$as_me:$LINENO: result: no" >&5
1750echo "${ECHO_T}no" >&6
1751fi
1752
1753 CC=$ac_ct_CC
1754else
1755 CC="$ac_cv_prog_CC"
1756fi
1757
1758fi
1759if test -z "$CC"; then
1760 # Extract the first word of "cc", so it can be a program name with args.
1761set dummy cc; ac_word=$2
1762echo "$as_me:$LINENO: checking for $ac_word" >&5
1763echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1764if test "${ac_cv_prog_CC+set}" = set; then
1765 echo $ECHO_N "(cached) $ECHO_C" >&6
1766else
1767 if test -n "$CC"; then
1768 ac_cv_prog_CC="$CC" # Let the user override the test.
1769else
1770 ac_prog_rejected=no
1771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1772for as_dir in $PATH
1773do
1774 IFS=$as_save_IFS
1775 test -z "$as_dir" && as_dir=.
1776 for ac_exec_ext in '' $ac_executable_extensions; do
1777 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1778 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1779 ac_prog_rejected=yes
1780 continue
1781 fi
1782 ac_cv_prog_CC="cc"
1783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1784 break 2
1785 fi
1786done
1787done
1788
1789if test $ac_prog_rejected = yes; then
1790 # We found a bogon in the path, so make sure we never use it.
1791 set dummy $ac_cv_prog_CC
1792 shift
1793 if test $# != 0; then
1794 # We chose a different compiler from the bogus one.
1795 # However, it has the same basename, so the bogon will be chosen
1796 # first if we set CC to just the basename; use the full file name.
1797 shift
1798 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1799 fi
1800fi
1801fi
1802fi
1803CC=$ac_cv_prog_CC
1804if test -n "$CC"; then
1805 echo "$as_me:$LINENO: result: $CC" >&5
1806echo "${ECHO_T}$CC" >&6
1807else
1808 echo "$as_me:$LINENO: result: no" >&5
1809echo "${ECHO_T}no" >&6
1810fi
1811
1812fi
1813if test -z "$CC"; then
1814 if test -n "$ac_tool_prefix"; then
1815 for ac_prog in cl
1816 do
1817 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1818set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1819echo "$as_me:$LINENO: checking for $ac_word" >&5
1820echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1821if test "${ac_cv_prog_CC+set}" = set; then
1822 echo $ECHO_N "(cached) $ECHO_C" >&6
1823else
1824 if test -n "$CC"; then
1825 ac_cv_prog_CC="$CC" # Let the user override the test.
1826else
1827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1828for as_dir in $PATH
1829do
1830 IFS=$as_save_IFS
1831 test -z "$as_dir" && as_dir=.
1832 for ac_exec_ext in '' $ac_executable_extensions; do
1833 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1834 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1836 break 2
1837 fi
1838done
1839done
1840
1841fi
1842fi
1843CC=$ac_cv_prog_CC
1844if test -n "$CC"; then
1845 echo "$as_me:$LINENO: result: $CC" >&5
1846echo "${ECHO_T}$CC" >&6
1847else
1848 echo "$as_me:$LINENO: result: no" >&5
1849echo "${ECHO_T}no" >&6
1850fi
1851
1852 test -n "$CC" && break
1853 done
1854fi
1855if test -z "$CC"; then
1856 ac_ct_CC=$CC
1857 for ac_prog in cl
1858do
1859 # Extract the first word of "$ac_prog", so it can be a program name with args.
1860set dummy $ac_prog; ac_word=$2
1861echo "$as_me:$LINENO: checking for $ac_word" >&5
1862echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1863if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1864 echo $ECHO_N "(cached) $ECHO_C" >&6
1865else
1866 if test -n "$ac_ct_CC"; then
1867 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1868else
1869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1870for as_dir in $PATH
1871do
1872 IFS=$as_save_IFS
1873 test -z "$as_dir" && as_dir=.
1874 for ac_exec_ext in '' $ac_executable_extensions; do
1875 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1876 ac_cv_prog_ac_ct_CC="$ac_prog"
1877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1878 break 2
1879 fi
1880done
1881done
1882
1883fi
1884fi
1885ac_ct_CC=$ac_cv_prog_ac_ct_CC
1886if test -n "$ac_ct_CC"; then
1887 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1888echo "${ECHO_T}$ac_ct_CC" >&6
1889else
1890 echo "$as_me:$LINENO: result: no" >&5
1891echo "${ECHO_T}no" >&6
1892fi
1893
1894 test -n "$ac_ct_CC" && break
1895done
1896
1897 CC=$ac_ct_CC
1898fi
1899
1900fi
1901
1902
1903test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1904See \`config.log' for more details." >&5
1905echo "$as_me: error: no acceptable C compiler found in \$PATH
1906See \`config.log' for more details." >&2;}
1907 { (exit 1); exit 1; }; }
1908
1909# Provide some information about the compiler.
1910echo "$as_me:$LINENO:" \
1911 "checking for C compiler version" >&5
1912ac_compiler=`set X $ac_compile; echo $2`
1913{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1914 (eval $ac_compiler --version </dev/null >&5) 2>&5
1915 ac_status=$?
1916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1917 (exit $ac_status); }
1918{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1919 (eval $ac_compiler -v </dev/null >&5) 2>&5
1920 ac_status=$?
1921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1922 (exit $ac_status); }
1923{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1924 (eval $ac_compiler -V </dev/null >&5) 2>&5
1925 ac_status=$?
1926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1927 (exit $ac_status); }
1928
1929cat >conftest.$ac_ext <<_ACEOF
1930/* confdefs.h. */
1931_ACEOF
1932cat confdefs.h >>conftest.$ac_ext
1933cat >>conftest.$ac_ext <<_ACEOF
1934/* end confdefs.h. */
1935
1936int
1937main ()
1938{
1939
1940 ;
1941 return 0;
1942}
1943_ACEOF
1944ac_clean_files_save=$ac_clean_files
1945ac_clean_files="$ac_clean_files a.out a.exe b.out"
1946# Try to create an executable without -o first, disregard a.out.
1947# It will help us diagnose broken compilers, and finding out an intuition
1948# of exeext.
1949echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1950echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1951ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1952if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1953 (eval $ac_link_default) 2>&5
1954 ac_status=$?
1955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1956 (exit $ac_status); }; then
1957 # Find the output, starting from the most likely. This scheme is
1958# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1959# resort.
1960
1961# Be careful to initialize this variable, since it used to be cached.
1962# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1963ac_cv_exeext=
1964# b.out is created by i960 compilers.
1965for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1966do
1967 test -f "$ac_file" || continue
1968 case $ac_file in
1969 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1970 ;;
1971 conftest.$ac_ext )
1972 # This is the source file.
1973 ;;
1974 [ab].out )
1975 # We found the default executable, but exeext='' is most
1976 # certainly right.
1977 break;;
1978 *.* )
1979 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1980 # FIXME: I believe we export ac_cv_exeext for Libtool,
1981 # but it would be cool to find out if it's true. Does anybody
1982 # maintain Libtool? --akim.
1983 export ac_cv_exeext
1984 break;;
1985 * )
1986 break;;
1987 esac
1988done
1989else
1990 echo "$as_me: failed program was:" >&5
1991sed 's/^/| /' conftest.$ac_ext >&5
1992
1993{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1994See \`config.log' for more details." >&5
1995echo "$as_me: error: C compiler cannot create executables
1996See \`config.log' for more details." >&2;}
1997 { (exit 77); exit 77; }; }
1998fi
1999
2000ac_exeext=$ac_cv_exeext
2001echo "$as_me:$LINENO: result: $ac_file" >&5
2002echo "${ECHO_T}$ac_file" >&6
2003
2004# Check the compiler produces executables we can run. If not, either
2005# the compiler is broken, or we cross compile.
2006echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2007echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2008# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2009# If not cross compiling, check that we can run a simple program.
2010if test "$cross_compiling" != yes; then
2011 if { ac_try='./$ac_file'
2012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2013 (eval $ac_try) 2>&5
2014 ac_status=$?
2015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2016 (exit $ac_status); }; }; then
2017 cross_compiling=no
2018 else
2019 if test "$cross_compiling" = maybe; then
2020 cross_compiling=yes
2021 else
2022 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2023If you meant to cross compile, use \`--host'.
2024See \`config.log' for more details." >&5
2025echo "$as_me: error: cannot run C compiled programs.
2026If you meant to cross compile, use \`--host'.
2027See \`config.log' for more details." >&2;}
2028 { (exit 1); exit 1; }; }
2029 fi
2030 fi
2031fi
2032echo "$as_me:$LINENO: result: yes" >&5
2033echo "${ECHO_T}yes" >&6
2034
2035rm -f a.out a.exe conftest$ac_cv_exeext b.out
2036ac_clean_files=$ac_clean_files_save
2037# Check the compiler produces executables we can run. If not, either
2038# the compiler is broken, or we cross compile.
2039echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2040echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2041echo "$as_me:$LINENO: result: $cross_compiling" >&5
2042echo "${ECHO_T}$cross_compiling" >&6
2043
2044echo "$as_me:$LINENO: checking for suffix of executables" >&5
2045echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2046if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2047 (eval $ac_link) 2>&5
2048 ac_status=$?
2049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2050 (exit $ac_status); }; then
2051 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2052# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2053# work properly (i.e., refer to `conftest.exe'), while it won't with
2054# `rm'.
2055for ac_file in conftest.exe conftest conftest.*; do
2056 test -f "$ac_file" || continue
2057 case $ac_file in
2058 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2059 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2060 export ac_cv_exeext
2061 break;;
2062 * ) break;;
2063 esac
2064done
2065else
2066 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2067See \`config.log' for more details." >&5
2068echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2069See \`config.log' for more details." >&2;}
2070 { (exit 1); exit 1; }; }
2071fi
2072
2073rm -f conftest$ac_cv_exeext
2074echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2075echo "${ECHO_T}$ac_cv_exeext" >&6
2076
2077rm -f conftest.$ac_ext
2078EXEEXT=$ac_cv_exeext
2079ac_exeext=$EXEEXT
2080echo "$as_me:$LINENO: checking for suffix of object files" >&5
2081echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2082if test "${ac_cv_objext+set}" = set; then
2083 echo $ECHO_N "(cached) $ECHO_C" >&6
2084else
2085 cat >conftest.$ac_ext <<_ACEOF
2086/* confdefs.h. */
2087_ACEOF
2088cat confdefs.h >>conftest.$ac_ext
2089cat >>conftest.$ac_ext <<_ACEOF
2090/* end confdefs.h. */
2091
2092int
2093main ()
2094{
2095
2096 ;
2097 return 0;
2098}
2099_ACEOF
2100rm -f conftest.o conftest.obj
2101if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2102 (eval $ac_compile) 2>&5
2103 ac_status=$?
2104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2105 (exit $ac_status); }; then
2106 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2107 case $ac_file in
2108 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2109 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2110 break;;
2111 esac
2112done
2113else
2114 echo "$as_me: failed program was:" >&5
2115sed 's/^/| /' conftest.$ac_ext >&5
2116
2117{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2118See \`config.log' for more details." >&5
2119echo "$as_me: error: cannot compute suffix of object files: cannot compile
2120See \`config.log' for more details." >&2;}
2121 { (exit 1); exit 1; }; }
2122fi
2123
2124rm -f conftest.$ac_cv_objext conftest.$ac_ext
2125fi
2126echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2127echo "${ECHO_T}$ac_cv_objext" >&6
2128OBJEXT=$ac_cv_objext
2129ac_objext=$OBJEXT
2130echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2131echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2132if test "${ac_cv_c_compiler_gnu+set}" = set; then
2133 echo $ECHO_N "(cached) $ECHO_C" >&6
2134else
2135 cat >conftest.$ac_ext <<_ACEOF
2136/* confdefs.h. */
2137_ACEOF
2138cat confdefs.h >>conftest.$ac_ext
2139cat >>conftest.$ac_ext <<_ACEOF
2140/* end confdefs.h. */
2141
2142int
2143main ()
2144{
2145#ifndef __GNUC__
2146 choke me
2147#endif
2148
2149 ;
2150 return 0;
2151}
2152_ACEOF
2153rm -f conftest.$ac_objext
2154if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2155 (eval $ac_compile) 2>conftest.er1
2156 ac_status=$?
2157 grep -v '^ *+' conftest.er1 >conftest.err
2158 rm -f conftest.er1
2159 cat conftest.err >&5
2160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2161 (exit $ac_status); } &&
502bdb00
JW
2162 { ac_try='test -z "$ac_c_werror_flag"
2163 || test ! -s conftest.err'
42ecbf5e
DJ
2164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2165 (eval $ac_try) 2>&5
2166 ac_status=$?
2167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2168 (exit $ac_status); }; } &&
2169 { ac_try='test -s conftest.$ac_objext'
2170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2171 (eval $ac_try) 2>&5
2172 ac_status=$?
2173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174 (exit $ac_status); }; }; then
2175 ac_compiler_gnu=yes
2176else
2177 echo "$as_me: failed program was:" >&5
2178sed 's/^/| /' conftest.$ac_ext >&5
2179
2180ac_compiler_gnu=no
2181fi
2182rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2183ac_cv_c_compiler_gnu=$ac_compiler_gnu
2184
2185fi
2186echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2187echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2188GCC=`test $ac_compiler_gnu = yes && echo yes`
2189ac_test_CFLAGS=${CFLAGS+set}
2190ac_save_CFLAGS=$CFLAGS
2191CFLAGS="-g"
2192echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2193echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2194if test "${ac_cv_prog_cc_g+set}" = set; then
2195 echo $ECHO_N "(cached) $ECHO_C" >&6
2196else
2197 cat >conftest.$ac_ext <<_ACEOF
2198/* confdefs.h. */
2199_ACEOF
2200cat confdefs.h >>conftest.$ac_ext
2201cat >>conftest.$ac_ext <<_ACEOF
2202/* end confdefs.h. */
2203
2204int
2205main ()
2206{
2207
2208 ;
2209 return 0;
2210}
2211_ACEOF
2212rm -f conftest.$ac_objext
2213if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2214 (eval $ac_compile) 2>conftest.er1
2215 ac_status=$?
2216 grep -v '^ *+' conftest.er1 >conftest.err
2217 rm -f conftest.er1
2218 cat conftest.err >&5
2219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220 (exit $ac_status); } &&
502bdb00
JW
2221 { ac_try='test -z "$ac_c_werror_flag"
2222 || test ! -s conftest.err'
42ecbf5e
DJ
2223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2224 (eval $ac_try) 2>&5
2225 ac_status=$?
2226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227 (exit $ac_status); }; } &&
2228 { ac_try='test -s conftest.$ac_objext'
2229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2230 (eval $ac_try) 2>&5
2231 ac_status=$?
2232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233 (exit $ac_status); }; }; then
2234 ac_cv_prog_cc_g=yes
2235else
2236 echo "$as_me: failed program was:" >&5
2237sed 's/^/| /' conftest.$ac_ext >&5
2238
2239ac_cv_prog_cc_g=no
2240fi
2241rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2242fi
2243echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2244echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2245if test "$ac_test_CFLAGS" = set; then
2246 CFLAGS=$ac_save_CFLAGS
2247elif test $ac_cv_prog_cc_g = yes; then
2248 if test "$GCC" = yes; then
2249 CFLAGS="-g -O2"
2250 else
2251 CFLAGS="-g"
2252 fi
2253else
2254 if test "$GCC" = yes; then
2255 CFLAGS="-O2"
2256 else
2257 CFLAGS=
2258 fi
2259fi
2260echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2261echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2262if test "${ac_cv_prog_cc_stdc+set}" = set; then
2263 echo $ECHO_N "(cached) $ECHO_C" >&6
2264else
2265 ac_cv_prog_cc_stdc=no
2266ac_save_CC=$CC
2267cat >conftest.$ac_ext <<_ACEOF
2268/* confdefs.h. */
2269_ACEOF
2270cat confdefs.h >>conftest.$ac_ext
2271cat >>conftest.$ac_ext <<_ACEOF
2272/* end confdefs.h. */
2273#include <stdarg.h>
2274#include <stdio.h>
2275#include <sys/types.h>
2276#include <sys/stat.h>
2277/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2278struct buf { int x; };
2279FILE * (*rcsopen) (struct buf *, struct stat *, int);
2280static char *e (p, i)
2281 char **p;
2282 int i;
2283{
2284 return p[i];
2285}
2286static char *f (char * (*g) (char **, int), char **p, ...)
2287{
2288 char *s;
2289 va_list v;
2290 va_start (v,p);
2291 s = g (p, va_arg (v,int));
2292 va_end (v);
2293 return s;
2294}
2295
2296/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2297 function prototypes and stuff, but not '\xHH' hex character constants.
2298 These don't provoke an error unfortunately, instead are silently treated
2299 as 'x'. The following induces an error, until -std1 is added to get
2300 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2301 array size at least. It's necessary to write '\x00'==0 to get something
2302 that's true only with -std1. */
2303int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2304
2305int test (int i, double x);
2306struct s1 {int (*f) (int a);};
2307struct s2 {int (*f) (double a);};
2308int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2309int argc;
2310char **argv;
2311int
2312main ()
2313{
2314return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2315 ;
2316 return 0;
2317}
2318_ACEOF
2319# Don't try gcc -ansi; that turns off useful extensions and
2320# breaks some systems' header files.
2321# AIX -qlanglvl=ansi
2322# Ultrix and OSF/1 -std1
2323# HP-UX 10.20 and later -Ae
2324# HP-UX older versions -Aa -D_HPUX_SOURCE
2325# SVR4 -Xc -D__EXTENSIONS__
2326for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2327do
2328 CC="$ac_save_CC $ac_arg"
2329 rm -f conftest.$ac_objext
2330if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2331 (eval $ac_compile) 2>conftest.er1
2332 ac_status=$?
2333 grep -v '^ *+' conftest.er1 >conftest.err
2334 rm -f conftest.er1
2335 cat conftest.err >&5
2336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337 (exit $ac_status); } &&
502bdb00
JW
2338 { ac_try='test -z "$ac_c_werror_flag"
2339 || test ! -s conftest.err'
42ecbf5e
DJ
2340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2341 (eval $ac_try) 2>&5
2342 ac_status=$?
2343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344 (exit $ac_status); }; } &&
2345 { ac_try='test -s conftest.$ac_objext'
2346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2347 (eval $ac_try) 2>&5
2348 ac_status=$?
2349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350 (exit $ac_status); }; }; then
2351 ac_cv_prog_cc_stdc=$ac_arg
2352break
2353else
2354 echo "$as_me: failed program was:" >&5
2355sed 's/^/| /' conftest.$ac_ext >&5
2356
2357fi
2358rm -f conftest.err conftest.$ac_objext
2359done
2360rm -f conftest.$ac_ext conftest.$ac_objext
2361CC=$ac_save_CC
2362
2363fi
2364
2365case "x$ac_cv_prog_cc_stdc" in
2366 x|xno)
2367 echo "$as_me:$LINENO: result: none needed" >&5
2368echo "${ECHO_T}none needed" >&6 ;;
2369 *)
2370 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2371echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2372 CC="$CC $ac_cv_prog_cc_stdc" ;;
2373esac
2374
2375# Some people use a C++ compiler to compile C. Since we use `exit',
2376# in C++ we need to declare it. In case someone uses the same compiler
2377# for both compiling C and C++ we need to have the C++ compiler decide
2378# the declaration of exit, since it's the most demanding environment.
2379cat >conftest.$ac_ext <<_ACEOF
2380#ifndef __cplusplus
2381 choke me
2382#endif
2383_ACEOF
2384rm -f conftest.$ac_objext
2385if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2386 (eval $ac_compile) 2>conftest.er1
2387 ac_status=$?
2388 grep -v '^ *+' conftest.er1 >conftest.err
2389 rm -f conftest.er1
2390 cat conftest.err >&5
2391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392 (exit $ac_status); } &&
502bdb00
JW
2393 { ac_try='test -z "$ac_c_werror_flag"
2394 || test ! -s conftest.err'
42ecbf5e
DJ
2395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2396 (eval $ac_try) 2>&5
2397 ac_status=$?
2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); }; } &&
2400 { ac_try='test -s conftest.$ac_objext'
2401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2402 (eval $ac_try) 2>&5
2403 ac_status=$?
2404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405 (exit $ac_status); }; }; then
2406 for ac_declaration in \
2407 '' \
2408 'extern "C" void std::exit (int) throw (); using std::exit;' \
2409 'extern "C" void std::exit (int); using std::exit;' \
2410 'extern "C" void exit (int) throw ();' \
2411 'extern "C" void exit (int);' \
2412 'void exit (int);'
2413do
2414 cat >conftest.$ac_ext <<_ACEOF
2415/* confdefs.h. */
2416_ACEOF
2417cat confdefs.h >>conftest.$ac_ext
2418cat >>conftest.$ac_ext <<_ACEOF
2419/* end confdefs.h. */
2420$ac_declaration
2421#include <stdlib.h>
2422int
2423main ()
2424{
2425exit (42);
2426 ;
2427 return 0;
2428}
2429_ACEOF
2430rm -f conftest.$ac_objext
2431if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2432 (eval $ac_compile) 2>conftest.er1
2433 ac_status=$?
2434 grep -v '^ *+' conftest.er1 >conftest.err
2435 rm -f conftest.er1
2436 cat conftest.err >&5
2437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438 (exit $ac_status); } &&
502bdb00
JW
2439 { ac_try='test -z "$ac_c_werror_flag"
2440 || test ! -s conftest.err'
42ecbf5e
DJ
2441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2442 (eval $ac_try) 2>&5
2443 ac_status=$?
2444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445 (exit $ac_status); }; } &&
2446 { ac_try='test -s conftest.$ac_objext'
2447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2448 (eval $ac_try) 2>&5
2449 ac_status=$?
2450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451 (exit $ac_status); }; }; then
2452 :
2453else
2454 echo "$as_me: failed program was:" >&5
2455sed 's/^/| /' conftest.$ac_ext >&5
2456
2457continue
2458fi
2459rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2460 cat >conftest.$ac_ext <<_ACEOF
2461/* confdefs.h. */
2462_ACEOF
2463cat confdefs.h >>conftest.$ac_ext
2464cat >>conftest.$ac_ext <<_ACEOF
2465/* end confdefs.h. */
2466$ac_declaration
2467int
2468main ()
2469{
2470exit (42);
2471 ;
2472 return 0;
2473}
2474_ACEOF
2475rm -f conftest.$ac_objext
2476if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2477 (eval $ac_compile) 2>conftest.er1
2478 ac_status=$?
2479 grep -v '^ *+' conftest.er1 >conftest.err
2480 rm -f conftest.er1
2481 cat conftest.err >&5
2482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483 (exit $ac_status); } &&
502bdb00
JW
2484 { ac_try='test -z "$ac_c_werror_flag"
2485 || test ! -s conftest.err'
42ecbf5e
DJ
2486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2487 (eval $ac_try) 2>&5
2488 ac_status=$?
2489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490 (exit $ac_status); }; } &&
2491 { ac_try='test -s conftest.$ac_objext'
2492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2493 (eval $ac_try) 2>&5
2494 ac_status=$?
2495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496 (exit $ac_status); }; }; then
2497 break
2498else
2499 echo "$as_me: failed program was:" >&5
2500sed 's/^/| /' conftest.$ac_ext >&5
2501
2502fi
2503rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2504done
2505rm -f conftest*
2506if test -n "$ac_declaration"; then
2507 echo '#ifdef __cplusplus' >>confdefs.h
2508 echo $ac_declaration >>confdefs.h
2509 echo '#endif' >>confdefs.h
2510fi
2511
2512else
2513 echo "$as_me: failed program was:" >&5
2514sed 's/^/| /' conftest.$ac_ext >&5
2515
2516fi
2517rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2518ac_ext=c
2519ac_cpp='$CPP $CPPFLAGS'
2520ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2521ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2522ac_compiler_gnu=$ac_cv_c_compiler_gnu
2523
2524
2525echo "$as_me:$LINENO: checking for library containing strerror" >&5
2526echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2527if test "${ac_cv_search_strerror+set}" = set; then
2528 echo $ECHO_N "(cached) $ECHO_C" >&6
2529else
2530 ac_func_search_save_LIBS=$LIBS
2531ac_cv_search_strerror=no
2532cat >conftest.$ac_ext <<_ACEOF
2533/* confdefs.h. */
2534_ACEOF
2535cat confdefs.h >>conftest.$ac_ext
2536cat >>conftest.$ac_ext <<_ACEOF
2537/* end confdefs.h. */
2538
2539/* Override any gcc2 internal prototype to avoid an error. */
2540#ifdef __cplusplus
2541extern "C"
2542#endif
2543/* We use char because int might match the return type of a gcc2
2544 builtin and then its argument prototype would still apply. */
2545char strerror ();
2546int
2547main ()
2548{
2549strerror ();
2550 ;
2551 return 0;
2552}
2553_ACEOF
2554rm -f conftest.$ac_objext conftest$ac_exeext
2555if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2556 (eval $ac_link) 2>conftest.er1
2557 ac_status=$?
2558 grep -v '^ *+' conftest.er1 >conftest.err
2559 rm -f conftest.er1
2560 cat conftest.err >&5
2561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562 (exit $ac_status); } &&
502bdb00
JW
2563 { ac_try='test -z "$ac_c_werror_flag"
2564 || test ! -s conftest.err'
42ecbf5e
DJ
2565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2566 (eval $ac_try) 2>&5
2567 ac_status=$?
2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 (exit $ac_status); }; } &&
2570 { ac_try='test -s conftest$ac_exeext'
2571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2572 (eval $ac_try) 2>&5
2573 ac_status=$?
2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575 (exit $ac_status); }; }; then
2576 ac_cv_search_strerror="none required"
2577else
2578 echo "$as_me: failed program was:" >&5
2579sed 's/^/| /' conftest.$ac_ext >&5
2580
2581fi
2582rm -f conftest.err conftest.$ac_objext \
2583 conftest$ac_exeext conftest.$ac_ext
2584if test "$ac_cv_search_strerror" = no; then
2585 for ac_lib in cposix; do
2586 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2587 cat >conftest.$ac_ext <<_ACEOF
2588/* confdefs.h. */
2589_ACEOF
2590cat confdefs.h >>conftest.$ac_ext
2591cat >>conftest.$ac_ext <<_ACEOF
2592/* end confdefs.h. */
2593
2594/* Override any gcc2 internal prototype to avoid an error. */
2595#ifdef __cplusplus
2596extern "C"
2597#endif
2598/* We use char because int might match the return type of a gcc2
2599 builtin and then its argument prototype would still apply. */
2600char strerror ();
2601int
2602main ()
2603{
2604strerror ();
2605 ;
2606 return 0;
2607}
2608_ACEOF
2609rm -f conftest.$ac_objext conftest$ac_exeext
2610if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2611 (eval $ac_link) 2>conftest.er1
2612 ac_status=$?
2613 grep -v '^ *+' conftest.er1 >conftest.err
2614 rm -f conftest.er1
2615 cat conftest.err >&5
2616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617 (exit $ac_status); } &&
502bdb00
JW
2618 { ac_try='test -z "$ac_c_werror_flag"
2619 || test ! -s conftest.err'
42ecbf5e
DJ
2620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2621 (eval $ac_try) 2>&5
2622 ac_status=$?
2623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624 (exit $ac_status); }; } &&
2625 { ac_try='test -s conftest$ac_exeext'
2626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2627 (eval $ac_try) 2>&5
2628 ac_status=$?
2629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630 (exit $ac_status); }; }; then
2631 ac_cv_search_strerror="-l$ac_lib"
2632break
2633else
2634 echo "$as_me: failed program was:" >&5
2635sed 's/^/| /' conftest.$ac_ext >&5
2636
2637fi
2638rm -f conftest.err conftest.$ac_objext \
2639 conftest$ac_exeext conftest.$ac_ext
2640 done
2641fi
2642LIBS=$ac_func_search_save_LIBS
2643fi
2644echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2645echo "${ECHO_T}$ac_cv_search_strerror" >&6
2646if test "$ac_cv_search_strerror" != no; then
2647 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2648
2649fi
e5a52504
MM
2650
2651
2652BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
42ecbf5e 2653am__api_version="1.9"
e5a52504
MM
2654# Find a good install program. We prefer a C program (faster),
2655# so one script is as good as another. But avoid the broken or
2656# incompatible versions:
2657# SysV /etc/install, /usr/sbin/install
2658# SunOS /usr/etc/install
2659# IRIX /sbin/install
2660# AIX /bin/install
42ecbf5e 2661# AmigaOS /C/install, which installs bootblocks on floppy discs
e5a52504
MM
2662# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2663# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2664# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
42ecbf5e 2665# OS/2's system install, which has a completely different semantic
e5a52504 2666# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 2667# Reject install programs that cannot install multiple files.
42ecbf5e
DJ
2668echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2669echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
e5a52504 2670if test -z "$INSTALL"; then
42ecbf5e
DJ
2671if test "${ac_cv_path_install+set}" = set; then
2672 echo $ECHO_N "(cached) $ECHO_C" >&6
e5a52504 2673else
42ecbf5e
DJ
2674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2675for as_dir in $PATH
2676do
2677 IFS=$as_save_IFS
2678 test -z "$as_dir" && as_dir=.
2679 # Account for people who put trailing slashes in PATH elements.
2680case $as_dir/ in
2681 ./ | .// | /cC/* | \
2682 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2683 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2684 /usr/ucb/* ) ;;
2685 *)
2686 # OSF1 and SCO ODT 3.0 have their own names for install.
2687 # Don't use installbsd from OSF since it installs stuff as root
2688 # by default.
2689 for ac_prog in ginstall scoinst install; do
2690 for ac_exec_ext in '' $ac_executable_extensions; do
2691 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
252b5132 2692 if test $ac_prog = install &&
42ecbf5e 2693 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
2694 # AIX install. It has an incompatible calling convention.
2695 :
42ecbf5e
DJ
2696 elif test $ac_prog = install &&
2697 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2698 # program-specific install script used by HP pwplus--don't use.
2699 :
252b5132 2700 else
58c85be7
RW
2701 rm -rf conftest.one conftest.two conftest.dir
2702 echo one > conftest.one
2703 echo two > conftest.two
2704 mkdir conftest.dir
2705 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2706 test -s conftest.one && test -s conftest.two &&
2707 test -s conftest.dir/conftest.one &&
2708 test -s conftest.dir/conftest.two
2709 then
2710 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2711 break 3
2712 fi
252b5132
RH
2713 fi
2714 fi
2715 done
42ecbf5e
DJ
2716 done
2717 ;;
2718esac
2719done
2720
58c85be7 2721rm -rf conftest.one conftest.two conftest.dir
252b5132
RH
2722
2723fi
2724 if test "${ac_cv_path_install+set}" = set; then
42ecbf5e 2725 INSTALL=$ac_cv_path_install
252b5132 2726 else
58c85be7
RW
2727 # As a last resort, use the slow shell script. Don't cache a
2728 # value for INSTALL within a source directory, because that will
252b5132 2729 # break other packages using the cache if that directory is
58c85be7 2730 # removed, or if the value is a relative name.
42ecbf5e 2731 INSTALL=$ac_install_sh
252b5132
RH
2732 fi
2733fi
42ecbf5e
DJ
2734echo "$as_me:$LINENO: result: $INSTALL" >&5
2735echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
2736
2737# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2738# It thinks the first close brace ends the variable substitution.
2739test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2740
42ecbf5e 2741test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
2742
2743test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2744
42ecbf5e
DJ
2745echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2746echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
252b5132
RH
2747# Just in case
2748sleep 1
42ecbf5e 2749echo timestamp > conftest.file
252b5132
RH
2750# Do `set' in a subshell so we don't clobber the current shell's
2751# arguments. Must try -L first in case configure is actually a
2752# symlink; some systems play weird games with the mod time of symlinks
2753# (eg FreeBSD returns the mod time of the symlink's containing
2754# directory).
2755if (
42ecbf5e 2756 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
252b5132
RH
2757 if test "$*" = "X"; then
2758 # -L didn't work.
42ecbf5e 2759 set X `ls -t $srcdir/configure conftest.file`
252b5132 2760 fi
42ecbf5e
DJ
2761 rm -f conftest.file
2762 if test "$*" != "X $srcdir/configure conftest.file" \
2763 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
2764
2765 # If neither matched, then we have a broken ls. This can happen
2766 # if, for instance, CONFIG_SHELL is bash and it inherits a
2767 # broken ls alias from the environment. This has actually
2768 # happened. Such a system could not be considered "sane".
42ecbf5e
DJ
2769 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2770alias in your environment" >&5
2771echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2772alias in your environment" >&2;}
2773 { (exit 1); exit 1; }; }
252b5132
RH
2774 fi
2775
42ecbf5e 2776 test "$2" = conftest.file
252b5132
RH
2777 )
2778then
2779 # Ok.
2780 :
2781else
42ecbf5e
DJ
2782 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2783Check your system clock" >&5
2784echo "$as_me: error: newly created file is older than distributed files!
2785Check your system clock" >&2;}
2786 { (exit 1); exit 1; }; }
252b5132 2787fi
42ecbf5e
DJ
2788echo "$as_me:$LINENO: result: yes" >&5
2789echo "${ECHO_T}yes" >&6
252b5132 2790test "$program_prefix" != NONE &&
42ecbf5e 2791 program_transform_name="s,^,$program_prefix,;$program_transform_name"
252b5132
RH
2792# Use a double $ so make ignores it.
2793test "$program_suffix" != NONE &&
42ecbf5e
DJ
2794 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2795# Double any \ or $. echo might interpret backslashes.
2796# By default was `s,x,x', remove it if useless.
2797cat <<\_ACEOF >conftest.sed
2798s/[\\$]/&&/g;s/;s,x,x,$//
2799_ACEOF
2800program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2801rm conftest.sed
2802
2803# expand $ac_aux_dir to an absolute path
2804am_aux_dir=`cd $ac_aux_dir && pwd`
2805
2806test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2807# Use eval to expand $SHELL
2808if eval "$MISSING --run true"; then
2809 am_missing_run="$MISSING --run "
2810else
2811 am_missing_run=
2812 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2813echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2814fi
2815
2816if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2817 # We used to keeping the `.' as first argument, in order to
2818 # allow $(mkdir_p) to be used without argument. As in
2819 # $(mkdir_p) $(somedir)
2820 # where $(somedir) is conditionally defined. However this is wrong
2821 # for two reasons:
2822 # 1. if the package is installed by a user who cannot write `.'
2823 # make install will fail,
2824 # 2. the above comment should most certainly read
2825 # $(mkdir_p) $(DESTDIR)$(somedir)
2826 # so it does not work when $(somedir) is undefined and
2827 # $(DESTDIR) is not.
2828 # To support the latter case, we have to write
2829 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2830 # so the `.' trick is pointless.
2831 mkdir_p='mkdir -p --'
2832else
2833 # On NextStep and OpenStep, the `mkdir' command does not
2834 # recognize any option. It will interpret all options as
2835 # directories to create, and then abort because `.' already
2836 # exists.
2837 for d in ./-p ./--version;
2838 do
2839 test -d $d && rmdir $d
2840 done
2841 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2842 if test -f "$ac_aux_dir/mkinstalldirs"; then
2843 mkdir_p='$(mkinstalldirs)'
2844 else
2845 mkdir_p='$(install_sh) -d'
2846 fi
2847fi
2848
2849for ac_prog in gawk mawk nawk awk
2850do
2851 # Extract the first word of "$ac_prog", so it can be a program name with args.
2852set dummy $ac_prog; ac_word=$2
2853echo "$as_me:$LINENO: checking for $ac_word" >&5
2854echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2855if test "${ac_cv_prog_AWK+set}" = set; then
2856 echo $ECHO_N "(cached) $ECHO_C" >&6
2857else
2858 if test -n "$AWK"; then
2859 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2860else
2861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2862for as_dir in $PATH
2863do
2864 IFS=$as_save_IFS
2865 test -z "$as_dir" && as_dir=.
2866 for ac_exec_ext in '' $ac_executable_extensions; do
2867 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2868 ac_cv_prog_AWK="$ac_prog"
2869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2870 break 2
2871 fi
2872done
2873done
2874
2875fi
2876fi
2877AWK=$ac_cv_prog_AWK
2878if test -n "$AWK"; then
2879 echo "$as_me:$LINENO: result: $AWK" >&5
2880echo "${ECHO_T}$AWK" >&6
2881else
2882 echo "$as_me:$LINENO: result: no" >&5
2883echo "${ECHO_T}no" >&6
2884fi
252b5132 2885
42ecbf5e
DJ
2886 test -n "$AWK" && break
2887done
252b5132 2888
42ecbf5e
DJ
2889echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2890echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2891set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2892if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2893 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 2894else
42ecbf5e 2895 cat >conftest.make <<\_ACEOF
252b5132 2896all:
42ecbf5e
DJ
2897 @echo 'ac_maketemp="$(MAKE)"'
2898_ACEOF
252b5132 2899# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
42ecbf5e 2900eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
252b5132
RH
2901if test -n "$ac_maketemp"; then
2902 eval ac_cv_prog_make_${ac_make}_set=yes
2903else
2904 eval ac_cv_prog_make_${ac_make}_set=no
2905fi
42ecbf5e 2906rm -f conftest.make
252b5132
RH
2907fi
2908if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
42ecbf5e
DJ
2909 echo "$as_me:$LINENO: result: yes" >&5
2910echo "${ECHO_T}yes" >&6
252b5132
RH
2911 SET_MAKE=
2912else
42ecbf5e
DJ
2913 echo "$as_me:$LINENO: result: no" >&5
2914echo "${ECHO_T}no" >&6
252b5132
RH
2915 SET_MAKE="MAKE=${MAKE-make}"
2916fi
2917
42ecbf5e
DJ
2918rm -rf .tst 2>/dev/null
2919mkdir .tst 2>/dev/null
2920if test -d .tst; then
2921 am__leading_dot=.
2922else
2923 am__leading_dot=_
2924fi
2925rmdir .tst 2>/dev/null
2926
2927DEPDIR="${am__leading_dot}deps"
2928
2929 ac_config_commands="$ac_config_commands depfiles"
2930
2931
2932am_make=${MAKE-make}
2933cat > confinc << 'END'
2934am__doit:
2935 @echo done
2936.PHONY: am__doit
2937END
2938# If we don't find an include directive, just comment out the code.
2939echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2940echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2941am__include="#"
2942am__quote=
2943_am_result=none
2944# First try GNU make style include.
2945echo "include confinc" > confmf
2946# We grep out `Entering directory' and `Leaving directory'
2947# messages which can occur if `w' ends up in MAKEFLAGS.
2948# In particular we don't look at `^make:' because GNU make might
2949# be invoked under some other name (usually "gmake"), in which
2950# case it prints its new name instead of `make'.
2951if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2952 am__include=include
2953 am__quote=
2954 _am_result=GNU
2955fi
2956# Now try BSD make style include.
2957if test "$am__include" = "#"; then
2958 echo '.include "confinc"' > confmf
2959 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2960 am__include=.include
2961 am__quote="\""
2962 _am_result=BSD
2963 fi
2964fi
2965
2966
2967echo "$as_me:$LINENO: result: $_am_result" >&5
2968echo "${ECHO_T}$_am_result" >&6
2969rm -f confinc confmf
2970
2971# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2972if test "${enable_dependency_tracking+set}" = set; then
2973 enableval="$enable_dependency_tracking"
2974
2975fi;
2976if test "x$enable_dependency_tracking" != xno; then
2977 am_depcomp="$ac_aux_dir/depcomp"
2978 AMDEPBACKSLASH='\'
2979fi
2980
2981
2982if test "x$enable_dependency_tracking" != xno; then
2983 AMDEP_TRUE=
2984 AMDEP_FALSE='#'
2985else
2986 AMDEP_TRUE='#'
2987 AMDEP_FALSE=
2988fi
2989
e5a52504
MM
2990
2991
42ecbf5e
DJ
2992# test to see if srcdir already configured
2993if test "`cd $srcdir && pwd`" != "`pwd`" &&
2994 test -f $srcdir/config.status; then
2995 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2996echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2997 { (exit 1); exit 1; }; }
2998fi
252b5132 2999
42ecbf5e
DJ
3000# test whether we have cygpath
3001if test -z "$CYGPATH_W"; then
3002 if (cygpath --version) >/dev/null 2>/dev/null; then
3003 CYGPATH_W='cygpath -w'
3004 else
3005 CYGPATH_W=echo
3006 fi
252b5132 3007fi
42ecbf5e
DJ
3008
3009
3010# Define the identity of the package.
3011 PACKAGE=ld
3012 VERSION=${BFD_VERSION}
3013
3014
3015cat >>confdefs.h <<_ACEOF
e5a52504 3016#define PACKAGE "$PACKAGE"
42ecbf5e
DJ
3017_ACEOF
3018
252b5132 3019
42ecbf5e 3020cat >>confdefs.h <<_ACEOF
e5a52504 3021#define VERSION "$VERSION"
42ecbf5e
DJ
3022_ACEOF
3023
3024# Some tools Automake needs.
3025
3026ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3027
3028
3029AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3030
3031
3032AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3033
3034
3035AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3036
e5a52504 3037
42ecbf5e 3038MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
e5a52504 3039
42ecbf5e 3040install_sh=${install_sh-"$am_aux_dir/install-sh"}
e5a52504 3041
42ecbf5e
DJ
3042# Installed binaries are usually stripped using `strip' when the user
3043# run `make install-strip'. However `strip' might not be the right
3044# tool to use in cross-compilation environments, therefore Automake
3045# will honor the `STRIP' environment variable to overrule this program.
3046if test "$cross_compiling" != no; then
3047 if test -n "$ac_tool_prefix"; then
3048 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3049set dummy ${ac_tool_prefix}strip; ac_word=$2
3050echo "$as_me:$LINENO: checking for $ac_word" >&5
3051echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3052if test "${ac_cv_prog_STRIP+set}" = set; then
3053 echo $ECHO_N "(cached) $ECHO_C" >&6
3054else
3055 if test -n "$STRIP"; then
3056 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3057else
3058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3059for as_dir in $PATH
3060do
3061 IFS=$as_save_IFS
3062 test -z "$as_dir" && as_dir=.
3063 for ac_exec_ext in '' $ac_executable_extensions; do
3064 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3065 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3067 break 2
3068 fi
3069done
3070done
3071
3072fi
3073fi
3074STRIP=$ac_cv_prog_STRIP
3075if test -n "$STRIP"; then
3076 echo "$as_me:$LINENO: result: $STRIP" >&5
3077echo "${ECHO_T}$STRIP" >&6
2469cfa2 3078else
42ecbf5e
DJ
3079 echo "$as_me:$LINENO: result: no" >&5
3080echo "${ECHO_T}no" >&6
3081fi
3082
e5a52504 3083fi
42ecbf5e
DJ
3084if test -z "$ac_cv_prog_STRIP"; then
3085 ac_ct_STRIP=$STRIP
3086 # Extract the first word of "strip", so it can be a program name with args.
3087set dummy strip; ac_word=$2
3088echo "$as_me:$LINENO: checking for $ac_word" >&5
3089echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3090if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3091 echo $ECHO_N "(cached) $ECHO_C" >&6
3092else
3093 if test -n "$ac_ct_STRIP"; then
3094 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3095else
3096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3097for as_dir in $PATH
3098do
3099 IFS=$as_save_IFS
3100 test -z "$as_dir" && as_dir=.
3101 for ac_exec_ext in '' $ac_executable_extensions; do
3102 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3103 ac_cv_prog_ac_ct_STRIP="strip"
3104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3105 break 2
3106 fi
3107done
3108done
e5a52504 3109
42ecbf5e
DJ
3110 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3111fi
3112fi
3113ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3114if test -n "$ac_ct_STRIP"; then
3115 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3116echo "${ECHO_T}$ac_ct_STRIP" >&6
2469cfa2 3117else
42ecbf5e
DJ
3118 echo "$as_me:$LINENO: result: no" >&5
3119echo "${ECHO_T}no" >&6
2469cfa2
NC
3120fi
3121
42ecbf5e 3122 STRIP=$ac_ct_STRIP
2469cfa2 3123else
42ecbf5e
DJ
3124 STRIP="$ac_cv_prog_STRIP"
3125fi
3126
2469cfa2 3127fi
42ecbf5e
DJ
3128INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3129
3130# We need awk for the "check" target. The system "awk" is bad on
3131# some platforms.
3132# Always define AMTAR for backward compatibility.
3133
3134AMTAR=${AMTAR-"${am_missing_run}tar"}
3135
3136am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3137
3138
3139
3140
3141depcc="$CC" am_compiler_list=
3142
3143echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3144echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3145if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3146 echo $ECHO_N "(cached) $ECHO_C" >&6
3147else
3148 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3149 # We make a subdir and do the tests there. Otherwise we can end up
3150 # making bogus files that we don't know about and never remove. For
3151 # instance it was reported that on HP-UX the gcc test will end up
3152 # making a dummy file named `D' -- because `-MD' means `put the output
3153 # in D'.
3154 mkdir conftest.dir
3155 # Copy depcomp to subdir because otherwise we won't find it if we're
3156 # using a relative directory.
3157 cp "$am_depcomp" conftest.dir
3158 cd conftest.dir
3159 # We will build objects and dependencies in a subdirectory because
3160 # it helps to detect inapplicable dependency modes. For instance
3161 # both Tru64's cc and ICC support -MD to output dependencies as a
3162 # side effect of compilation, but ICC will put the dependencies in
3163 # the current directory while Tru64 will put them in the object
3164 # directory.
3165 mkdir sub
3166
3167 am_cv_CC_dependencies_compiler_type=none
3168 if test "$am_compiler_list" = ""; then
3169 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3170 fi
3171 for depmode in $am_compiler_list; do
3172 # Setup a source with many dependencies, because some compilers
3173 # like to wrap large dependency lists on column 80 (with \), and
3174 # we should not choose a depcomp mode which is confused by this.
3175 #
3176 # We need to recreate these files for each test, as the compiler may
3177 # overwrite some of them when testing with obscure command lines.
3178 # This happens at least with the AIX C compiler.
3179 : > sub/conftest.c
3180 for i in 1 2 3 4 5 6; do
3181 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3182 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3183 # Solaris 8's {/usr,}/bin/sh.
3184 touch sub/conftst$i.h
3185 done
3186 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3187
3188 case $depmode in
3189 nosideeffect)
3190 # after this tag, mechanisms are not by side-effect, so they'll
3191 # only be used when explicitly requested
3192 if test "x$enable_dependency_tracking" = xyes; then
3193 continue
3194 else
3195 break
3196 fi
3197 ;;
3198 none) break ;;
3199 esac
3200 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3201 # mode. It turns out that the SunPro C++ compiler does not properly
3202 # handle `-M -o', and we need to detect this.
3203 if depmode=$depmode \
3204 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3205 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3206 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3207 >/dev/null 2>conftest.err &&
3208 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3209 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3210 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3211 # icc doesn't choke on unknown options, it will just issue warnings
3212 # or remarks (even with -Werror). So we grep stderr for any message
3213 # that says an option was ignored or not supported.
3214 # When given -MP, icc 7.0 and 7.1 complain thusly:
3215 # icc: Command line warning: ignoring option '-M'; no argument required
3216 # The diagnosis changed in icc 8.0:
3217 # icc: Command line remark: option '-MP' not supported
3218 if (grep 'ignoring option' conftest.err ||
3219 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3220 am_cv_CC_dependencies_compiler_type=$depmode
3221 break
3222 fi
3223 fi
3224 done
2469cfa2 3225
42ecbf5e
DJ
3226 cd ..
3227 rm -rf conftest.dir
2469cfa2 3228else
42ecbf5e
DJ
3229 am_cv_CC_dependencies_compiler_type=none
3230fi
3231
2469cfa2 3232fi
42ecbf5e
DJ
3233echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3234echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3235CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3236
2469cfa2 3237
42ecbf5e
DJ
3238
3239if
3240 test "x$enable_dependency_tracking" != xno \
3241 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3242 am__fastdepCC_TRUE=
3243 am__fastdepCC_FALSE='#'
2469cfa2 3244else
42ecbf5e
DJ
3245 am__fastdepCC_TRUE='#'
3246 am__fastdepCC_FALSE=
2469cfa2 3247fi
2469cfa2 3248
2469cfa2 3249
e5a52504 3250
42ecbf5e 3251
d7040cdb 3252
ce2cded5
L
3253# Check whether --with-lib-path or --without-lib-path was given.
3254if test "${with_lib_path+set}" = set; then
3255 withval="$with_lib_path"
3256 LIB_PATH=$withval
3257fi;
3258# Check whether --enable-targets or --disable-targets was given.
3259if test "${enable_targets+set}" = set; then
3260 enableval="$enable_targets"
3261 case "${enableval}" in
3262 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
3263echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
3264 { (exit 1); exit 1; }; }
3265 ;;
3266 no) enable_targets= ;;
3267 *) enable_targets=$enableval ;;
3268esac
3269fi; # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
3270if test "${enable_64_bit_bfd+set}" = set; then
3271 enableval="$enable_64_bit_bfd"
3272 case "${enableval}" in
3273 yes) want64=true ;;
3274 no) want64=false ;;
3275 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
3276echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
3277 { (exit 1); exit 1; }; } ;;
3278esac
2469cfa2 3279else
ce2cded5 3280 want64=false
42ecbf5e 3281fi;
d7040cdb 3282
ce2cded5
L
3283# Check whether --with-sysroot or --without-sysroot was given.
3284if test "${with_sysroot+set}" = set; then
3285 withval="$with_sysroot"
d7040cdb 3286
ce2cded5
L
3287 case ${with_sysroot} in
3288 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
3289 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3290 esac
d7040cdb 3291
ce2cded5
L
3292 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3293 use_sysroot=yes
d7040cdb 3294
ce2cded5
L
3295 if test "x$prefix" = xNONE; then
3296 test_prefix=/usr/local
3297 else
3298 test_prefix=$prefix
3299 fi
3300 if test "x$exec_prefix" = xNONE; then
3301 test_exec_prefix=$test_prefix
3302 else
3303 test_exec_prefix=$exec_prefix
3304 fi
3305 case ${TARGET_SYSTEM_ROOT} in
3306 "${test_prefix}"|"${test_prefix}/"*|\
3307 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3308 '${prefix}'|'${prefix}/'*|\
3309 '${exec_prefix}'|'${exec_prefix}/'*)
3310 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3311 TARGET_SYSTEM_ROOT_DEFINE="$t"
3312 ;;
3313 esac
d7040cdb 3314
e5a52504 3315else
d7040cdb 3316
ce2cded5
L
3317 use_sysroot=no
3318 TARGET_SYSTEM_ROOT=
3319 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
d7040cdb 3320
ce2cded5 3321fi;
d7040cdb
SE
3322
3323
3324
3325
7fb9f789
NC
3326# Check whether --enable-got or --disable-got was given.
3327if test "${enable_got+set}" = set; then
3328 enableval="$enable_got"
3329 case "${enableval}" in
3330 target | single | negative | multigot) got_handling=$enableval ;;
3331 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-got option" >&5
3332echo "$as_me: error: bad value ${enableval} for --enable-got option" >&2;}
3333 { (exit 1); exit 1; }; } ;;
3334esac
3335else
3336 got_handling=target
3337fi;
3338
3339case "${got_handling}" in
3340 target)
3341
3342cat >>confdefs.h <<\_ACEOF
3343#define GOT_HANDLING_DEFAULT GOT_HANDLING_TARGET_DEFAULT
3344_ACEOF
3345 ;;
3346 single)
3347
3348cat >>confdefs.h <<\_ACEOF
3349#define GOT_HANDLING_DEFAULT GOT_HANDLING_SINGLE
3350_ACEOF
3351 ;;
3352 negative)
3353
3354cat >>confdefs.h <<\_ACEOF
3355#define GOT_HANDLING_DEFAULT GOT_HANDLING_NEGATIVE
3356_ACEOF
3357 ;;
3358 multigot)
3359
3360cat >>confdefs.h <<\_ACEOF
3361#define GOT_HANDLING_DEFAULT GOT_HANDLING_MULTIGOT
3362_ACEOF
3363 ;;
3364 *) { { echo "$as_me:$LINENO: error: bad value ${got_handling} for --enable-got option" >&5
3365echo "$as_me: error: bad value ${got_handling} for --enable-got option" >&2;}
3366 { (exit 1); exit 1; }; } ;;
3367esac
3368
d7040cdb 3369
ce2cded5 3370GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
d7040cdb 3371
ce2cded5
L
3372# Check whether --enable-werror or --disable-werror was given.
3373if test "${enable_werror+set}" = set; then
3374 enableval="$enable_werror"
3375 case "${enableval}" in
3376 yes | y) ERROR_ON_WARNING="yes" ;;
3377 no | n) ERROR_ON_WARNING="no" ;;
3378 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
3379echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
3380 { (exit 1); exit 1; }; } ;;
3381 esac
d7040cdb
SE
3382fi;
3383
bb8541b9
L
3384# Enable -Wno-format by default when using gcc on mingw
3385case "${host}" in
3386 *-*-mingw32*)
3387 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
3388 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
3389 fi
3390 ;;
3391 *) ;;
3392esac
3393
ce2cded5
L
3394# Enable -Werror by default when using gcc
3395if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
3396 ERROR_ON_WARNING=yes
3397fi
d7040cdb 3398
ce2cded5
L
3399NO_WERROR=
3400if test "${ERROR_ON_WARNING}" = yes ; then
3401 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
3402 NO_WERROR="-Wno-error"
3403fi
d7040cdb 3404
ce2cded5
L
3405if test "${GCC}" = yes ; then
3406 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
3407fi
d7040cdb 3408
ce2cded5
L
3409# Check whether --enable-build-warnings or --disable-build-warnings was given.
3410if test "${enable_build_warnings+set}" = set; then
3411 enableval="$enable_build_warnings"
3412 case "${enableval}" in
3413 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
3414 no) if test "${GCC}" = yes ; then
3415 WARN_CFLAGS="-w"
3416 fi;;
3417 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
3418 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
3419 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
3420 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
3421 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3422esac
3423fi;
d7040cdb 3424
ce2cded5
L
3425if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
3426 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
3427fi
d7040cdb 3428
2469cfa2 3429
d7040cdb
SE
3430
3431
3432
ce2cded5 3433 ac_config_headers="$ac_config_headers config.h:config.in"
d7040cdb
SE
3434
3435
ce2cded5
L
3436if test -z "$target" ; then
3437 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
3438echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
3439 { (exit 1); exit 1; }; }
3440fi
3441if test -z "$host" ; then
3442 { { echo "$as_me:$LINENO: error: Unrecognized host system type; please check config.sub." >&5
3443echo "$as_me: error: Unrecognized host system type; please check config.sub." >&2;}
3444 { (exit 1); exit 1; }; }
3445fi
d7040cdb 3446
ce2cded5 3447# host-specific stuff:
d7040cdb 3448
ce2cded5
L
3449ac_ext=c
3450ac_cpp='$CPP $CPPFLAGS'
3451ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3452ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3453ac_compiler_gnu=$ac_cv_c_compiler_gnu
3454if test -n "$ac_tool_prefix"; then
3455 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3456set dummy ${ac_tool_prefix}gcc; ac_word=$2
3457echo "$as_me:$LINENO: checking for $ac_word" >&5
3458echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3459if test "${ac_cv_prog_CC+set}" = set; then
d7040cdb
SE
3460 echo $ECHO_N "(cached) $ECHO_C" >&6
3461else
ce2cded5
L
3462 if test -n "$CC"; then
3463 ac_cv_prog_CC="$CC" # Let the user override the test.
3464else
d7040cdb
SE
3465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3466for as_dir in $PATH
3467do
3468 IFS=$as_save_IFS
3469 test -z "$as_dir" && as_dir=.
ce2cded5
L
3470 for ac_exec_ext in '' $ac_executable_extensions; do
3471 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3472 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3474 break 2
d7040cdb 3475 fi
ce2cded5 3476done
d7040cdb
SE
3477done
3478
3479fi
d7040cdb 3480fi
ce2cded5
L
3481CC=$ac_cv_prog_CC
3482if test -n "$CC"; then
3483 echo "$as_me:$LINENO: result: $CC" >&5
3484echo "${ECHO_T}$CC" >&6
d7040cdb 3485else
ce2cded5
L
3486 echo "$as_me:$LINENO: result: no" >&5
3487echo "${ECHO_T}no" >&6
d7040cdb 3488fi
d7040cdb 3489
252b5132 3490fi
ce2cded5
L
3491if test -z "$ac_cv_prog_CC"; then
3492 ac_ct_CC=$CC
3493 # Extract the first word of "gcc", so it can be a program name with args.
3494set dummy gcc; ac_word=$2
3495echo "$as_me:$LINENO: checking for $ac_word" >&5
3496echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3497if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
42ecbf5e 3498 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3499else
ce2cded5
L
3500 if test -n "$ac_ct_CC"; then
3501 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
252b5132 3502else
ce2cded5
L
3503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3504for as_dir in $PATH
3505do
3506 IFS=$as_save_IFS
3507 test -z "$as_dir" && as_dir=.
3508 for ac_exec_ext in '' $ac_executable_extensions; do
3509 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3510 ac_cv_prog_ac_ct_CC="gcc"
3511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3512 break 2
3513 fi
3514done
3515done
3516
252b5132
RH
3517fi
3518fi
ce2cded5
L
3519ac_ct_CC=$ac_cv_prog_ac_ct_CC
3520if test -n "$ac_ct_CC"; then
3521 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3522echo "${ECHO_T}$ac_ct_CC" >&6
252b5132 3523else
42ecbf5e
DJ
3524 echo "$as_me:$LINENO: result: no" >&5
3525echo "${ECHO_T}no" >&6
252b5132 3526fi
ce2cded5
L
3527
3528 CC=$ac_ct_CC
252b5132 3529else
ce2cded5 3530 CC="$ac_cv_prog_CC"
252b5132 3531fi
d7040cdb 3532
ce2cded5
L
3533if test -z "$CC"; then
3534 if test -n "$ac_tool_prefix"; then
3535 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3536set dummy ${ac_tool_prefix}cc; ac_word=$2
3537echo "$as_me:$LINENO: checking for $ac_word" >&5
3538echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3539if test "${ac_cv_prog_CC+set}" = set; then
42ecbf5e 3540 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3541else
ce2cded5
L
3542 if test -n "$CC"; then
3543 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 3544else
ce2cded5
L
3545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3546for as_dir in $PATH
3547do
3548 IFS=$as_save_IFS
3549 test -z "$as_dir" && as_dir=.
3550 for ac_exec_ext in '' $ac_executable_extensions; do
3551 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3552 ac_cv_prog_CC="${ac_tool_prefix}cc"
3553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3554 break 2
3555 fi
3556done
3557done
3558
252b5132
RH
3559fi
3560fi
ce2cded5
L
3561CC=$ac_cv_prog_CC
3562if test -n "$CC"; then
3563 echo "$as_me:$LINENO: result: $CC" >&5
3564echo "${ECHO_T}$CC" >&6
d15b04bd 3565else
ce2cded5
L
3566 echo "$as_me:$LINENO: result: no" >&5
3567echo "${ECHO_T}no" >&6
3568fi
3569
3570fi
3571if test -z "$ac_cv_prog_CC"; then
3572 ac_ct_CC=$CC
3573 # Extract the first word of "cc", so it can be a program name with args.
3574set dummy cc; ac_word=$2
3575echo "$as_me:$LINENO: checking for $ac_word" >&5
3576echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3577if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3578 echo $ECHO_N "(cached) $ECHO_C" >&6
3579else
3580 if test -n "$ac_ct_CC"; then
3581 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3582else
3583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3584for as_dir in $PATH
3585do
3586 IFS=$as_save_IFS
3587 test -z "$as_dir" && as_dir=.
3588 for ac_exec_ext in '' $ac_executable_extensions; do
3589 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3590 ac_cv_prog_ac_ct_CC="cc"
3591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3592 break 2
3593 fi
3594done
3595done
3596
3597fi
3598fi
3599ac_ct_CC=$ac_cv_prog_ac_ct_CC
3600if test -n "$ac_ct_CC"; then
3601 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3602echo "${ECHO_T}$ac_ct_CC" >&6
3603else
3604 echo "$as_me:$LINENO: result: no" >&5
3605echo "${ECHO_T}no" >&6
3606fi
3607
3608 CC=$ac_ct_CC
3609else
3610 CC="$ac_cv_prog_CC"
3611fi
3612
3613fi
3614if test -z "$CC"; then
3615 # Extract the first word of "cc", so it can be a program name with args.
3616set dummy cc; ac_word=$2
3617echo "$as_me:$LINENO: checking for $ac_word" >&5
3618echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3619if test "${ac_cv_prog_CC+set}" = set; then
3620 echo $ECHO_N "(cached) $ECHO_C" >&6
3621else
3622 if test -n "$CC"; then
3623 ac_cv_prog_CC="$CC" # Let the user override the test.
3624else
3625 ac_prog_rejected=no
3626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3627for as_dir in $PATH
3628do
3629 IFS=$as_save_IFS
3630 test -z "$as_dir" && as_dir=.
3631 for ac_exec_ext in '' $ac_executable_extensions; do
3632 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3633 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3634 ac_prog_rejected=yes
3635 continue
3636 fi
3637 ac_cv_prog_CC="cc"
3638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3639 break 2
3640 fi
3641done
3642done
3643
3644if test $ac_prog_rejected = yes; then
3645 # We found a bogon in the path, so make sure we never use it.
3646 set dummy $ac_cv_prog_CC
3647 shift
3648 if test $# != 0; then
3649 # We chose a different compiler from the bogus one.
3650 # However, it has the same basename, so the bogon will be chosen
3651 # first if we set CC to just the basename; use the full file name.
3652 shift
3653 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3654 fi
3655fi
3656fi
3657fi
3658CC=$ac_cv_prog_CC
3659if test -n "$CC"; then
3660 echo "$as_me:$LINENO: result: $CC" >&5
3661echo "${ECHO_T}$CC" >&6
3662else
3663 echo "$as_me:$LINENO: result: no" >&5
3664echo "${ECHO_T}no" >&6
3665fi
3666
3667fi
3668if test -z "$CC"; then
d7040cdb 3669 if test -n "$ac_tool_prefix"; then
ce2cded5 3670 for ac_prog in cl
d7040cdb
SE
3671 do
3672 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3673set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3674echo "$as_me:$LINENO: checking for $ac_word" >&5
3675echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ce2cded5 3676if test "${ac_cv_prog_CC+set}" = set; then
d7040cdb
SE
3677 echo $ECHO_N "(cached) $ECHO_C" >&6
3678else
ce2cded5
L
3679 if test -n "$CC"; then
3680 ac_cv_prog_CC="$CC" # Let the user override the test.
d7040cdb
SE
3681else
3682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3683for as_dir in $PATH
3684do
3685 IFS=$as_save_IFS
3686 test -z "$as_dir" && as_dir=.
3687 for ac_exec_ext in '' $ac_executable_extensions; do
3688 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ce2cded5 3689 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
d7040cdb
SE
3690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3691 break 2
3692 fi
3693done
3694done
3695
3696fi
3697fi
ce2cded5
L
3698CC=$ac_cv_prog_CC
3699if test -n "$CC"; then
3700 echo "$as_me:$LINENO: result: $CC" >&5
3701echo "${ECHO_T}$CC" >&6
d7040cdb
SE
3702else
3703 echo "$as_me:$LINENO: result: no" >&5
3704echo "${ECHO_T}no" >&6
3705fi
3706
ce2cded5 3707 test -n "$CC" && break
d7040cdb
SE
3708 done
3709fi
ce2cded5
L
3710if test -z "$CC"; then
3711 ac_ct_CC=$CC
3712 for ac_prog in cl
d7040cdb
SE
3713do
3714 # Extract the first word of "$ac_prog", so it can be a program name with args.
3715set dummy $ac_prog; ac_word=$2
3716echo "$as_me:$LINENO: checking for $ac_word" >&5
3717echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ce2cded5 3718if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
d7040cdb
SE
3719 echo $ECHO_N "(cached) $ECHO_C" >&6
3720else
ce2cded5
L
3721 if test -n "$ac_ct_CC"; then
3722 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
d7040cdb
SE
3723else
3724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3725for as_dir in $PATH
3726do
3727 IFS=$as_save_IFS
3728 test -z "$as_dir" && as_dir=.
3729 for ac_exec_ext in '' $ac_executable_extensions; do
3730 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ce2cded5 3731 ac_cv_prog_ac_ct_CC="$ac_prog"
d7040cdb
SE
3732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3733 break 2
3734 fi
3735done
3736done
3737
3738fi
3739fi
ce2cded5
L
3740ac_ct_CC=$ac_cv_prog_ac_ct_CC
3741if test -n "$ac_ct_CC"; then
3742 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3743echo "${ECHO_T}$ac_ct_CC" >&6
d7040cdb
SE
3744else
3745 echo "$as_me:$LINENO: result: no" >&5
3746echo "${ECHO_T}no" >&6
3747fi
3748
ce2cded5 3749 test -n "$ac_ct_CC" && break
d7040cdb 3750done
d7040cdb 3751
ce2cded5 3752 CC=$ac_ct_CC
d7040cdb
SE
3753fi
3754
d7040cdb 3755fi
d7040cdb
SE
3756
3757
ce2cded5
L
3758test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3759See \`config.log' for more details." >&5
3760echo "$as_me: error: no acceptable C compiler found in \$PATH
3761See \`config.log' for more details." >&2;}
3762 { (exit 1); exit 1; }; }
d7040cdb 3763
ce2cded5
L
3764# Provide some information about the compiler.
3765echo "$as_me:$LINENO:" \
3766 "checking for C compiler version" >&5
3767ac_compiler=`set X $ac_compile; echo $2`
3768{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3769 (eval $ac_compiler --version </dev/null >&5) 2>&5
3770 ac_status=$?
3771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3772 (exit $ac_status); }
3773{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3774 (eval $ac_compiler -v </dev/null >&5) 2>&5
3775 ac_status=$?
3776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3777 (exit $ac_status); }
3778{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3779 (eval $ac_compiler -V </dev/null >&5) 2>&5
3780 ac_status=$?
3781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782 (exit $ac_status); }
d7040cdb 3783
ce2cded5
L
3784echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3785echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3786if test "${ac_cv_c_compiler_gnu+set}" = set; then
d7040cdb
SE
3787 echo $ECHO_N "(cached) $ECHO_C" >&6
3788else
ce2cded5
L
3789 cat >conftest.$ac_ext <<_ACEOF
3790/* confdefs.h. */
3791_ACEOF
3792cat confdefs.h >>conftest.$ac_ext
3793cat >>conftest.$ac_ext <<_ACEOF
3794/* end confdefs.h. */
d7040cdb 3795
ce2cded5
L
3796int
3797main ()
3798{
3799#ifndef __GNUC__
3800 choke me
3801#endif
3802
3803 ;
3804 return 0;
3805}
3806_ACEOF
3807rm -f conftest.$ac_objext
3808if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3809 (eval $ac_compile) 2>conftest.er1
3810 ac_status=$?
3811 grep -v '^ *+' conftest.er1 >conftest.err
3812 rm -f conftest.er1
3813 cat conftest.err >&5
3814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815 (exit $ac_status); } &&
3816 { ac_try='test -z "$ac_c_werror_flag"
3817 || test ! -s conftest.err'
3818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3819 (eval $ac_try) 2>&5
3820 ac_status=$?
3821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822 (exit $ac_status); }; } &&
3823 { ac_try='test -s conftest.$ac_objext'
3824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3825 (eval $ac_try) 2>&5
3826 ac_status=$?
3827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3828 (exit $ac_status); }; }; then
3829 ac_compiler_gnu=yes
d7040cdb 3830else
ce2cded5
L
3831 echo "$as_me: failed program was:" >&5
3832sed 's/^/| /' conftest.$ac_ext >&5
3833
3834ac_compiler_gnu=no
d7040cdb 3835fi
ce2cded5
L
3836rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3837ac_cv_c_compiler_gnu=$ac_compiler_gnu
d7040cdb 3838
ce2cded5
L
3839fi
3840echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3841echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3842GCC=`test $ac_compiler_gnu = yes && echo yes`
3843ac_test_CFLAGS=${CFLAGS+set}
3844ac_save_CFLAGS=$CFLAGS
3845CFLAGS="-g"
3846echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3847echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3848if test "${ac_cv_prog_cc_g+set}" = set; then
d7040cdb
SE
3849 echo $ECHO_N "(cached) $ECHO_C" >&6
3850else
ce2cded5
L
3851 cat >conftest.$ac_ext <<_ACEOF
3852/* confdefs.h. */
3853_ACEOF
3854cat confdefs.h >>conftest.$ac_ext
3855cat >>conftest.$ac_ext <<_ACEOF
3856/* end confdefs.h. */
d7040cdb 3857
ce2cded5
L
3858int
3859main ()
3860{
d7040cdb 3861
ce2cded5
L
3862 ;
3863 return 0;
3864}
3865_ACEOF
3866rm -f conftest.$ac_objext
3867if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3868 (eval $ac_compile) 2>conftest.er1
3869 ac_status=$?
3870 grep -v '^ *+' conftest.er1 >conftest.err
3871 rm -f conftest.er1
3872 cat conftest.err >&5
3873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874 (exit $ac_status); } &&
3875 { ac_try='test -z "$ac_c_werror_flag"
3876 || test ! -s conftest.err'
3877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3878 (eval $ac_try) 2>&5
3879 ac_status=$?
3880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3881 (exit $ac_status); }; } &&
3882 { ac_try='test -s conftest.$ac_objext'
3883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3884 (eval $ac_try) 2>&5
3885 ac_status=$?
3886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3887 (exit $ac_status); }; }; then
3888 ac_cv_prog_cc_g=yes
3889else
3890 echo "$as_me: failed program was:" >&5
3891sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 3892
ce2cded5 3893ac_cv_prog_cc_g=no
d7040cdb 3894fi
ce2cded5
L
3895rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3896fi
3897echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3898echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3899if test "$ac_test_CFLAGS" = set; then
3900 CFLAGS=$ac_save_CFLAGS
3901elif test $ac_cv_prog_cc_g = yes; then
3902 if test "$GCC" = yes; then
3903 CFLAGS="-g -O2"
3904 else
3905 CFLAGS="-g"
3906 fi
d7040cdb 3907else
ce2cded5
L
3908 if test "$GCC" = yes; then
3909 CFLAGS="-O2"
3910 else
3911 CFLAGS=
3912 fi
d7040cdb 3913fi
ce2cded5
L
3914echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3915echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3916if test "${ac_cv_prog_cc_stdc+set}" = set; then
3917 echo $ECHO_N "(cached) $ECHO_C" >&6
d7040cdb 3918else
ce2cded5
L
3919 ac_cv_prog_cc_stdc=no
3920ac_save_CC=$CC
3921cat >conftest.$ac_ext <<_ACEOF
3922/* confdefs.h. */
3923_ACEOF
3924cat confdefs.h >>conftest.$ac_ext
3925cat >>conftest.$ac_ext <<_ACEOF
3926/* end confdefs.h. */
3927#include <stdarg.h>
3928#include <stdio.h>
3929#include <sys/types.h>
3930#include <sys/stat.h>
3931/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3932struct buf { int x; };
3933FILE * (*rcsopen) (struct buf *, struct stat *, int);
3934static char *e (p, i)
3935 char **p;
3936 int i;
3937{
3938 return p[i];
3939}
3940static char *f (char * (*g) (char **, int), char **p, ...)
3941{
3942 char *s;
3943 va_list v;
3944 va_start (v,p);
3945 s = g (p, va_arg (v,int));
3946 va_end (v);
3947 return s;
3948}
d7040cdb 3949
ce2cded5
L
3950/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3951 function prototypes and stuff, but not '\xHH' hex character constants.
3952 These don't provoke an error unfortunately, instead are silently treated
3953 as 'x'. The following induces an error, until -std1 is added to get
3954 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3955 array size at least. It's necessary to write '\x00'==0 to get something
3956 that's true only with -std1. */
3957int osf4_cc_array ['\x00' == 0 ? 1 : -1];
d7040cdb 3958
ce2cded5
L
3959int test (int i, double x);
3960struct s1 {int (*f) (int a);};
3961struct s2 {int (*f) (double a);};
3962int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3963int argc;
3964char **argv;
3965int
3966main ()
3967{
3968return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3969 ;
3970 return 0;
3971}
3972_ACEOF
3973# Don't try gcc -ansi; that turns off useful extensions and
3974# breaks some systems' header files.
3975# AIX -qlanglvl=ansi
3976# Ultrix and OSF/1 -std1
3977# HP-UX 10.20 and later -Ae
3978# HP-UX older versions -Aa -D_HPUX_SOURCE
3979# SVR4 -Xc -D__EXTENSIONS__
3980for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3981do
3982 CC="$ac_save_CC $ac_arg"
3983 rm -f conftest.$ac_objext
3984if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3985 (eval $ac_compile) 2>conftest.er1
3986 ac_status=$?
3987 grep -v '^ *+' conftest.er1 >conftest.err
3988 rm -f conftest.er1
3989 cat conftest.err >&5
3990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991 (exit $ac_status); } &&
3992 { ac_try='test -z "$ac_c_werror_flag"
3993 || test ! -s conftest.err'
3994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3995 (eval $ac_try) 2>&5
3996 ac_status=$?
3997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998 (exit $ac_status); }; } &&
3999 { ac_try='test -s conftest.$ac_objext'
4000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4001 (eval $ac_try) 2>&5
4002 ac_status=$?
4003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4004 (exit $ac_status); }; }; then
4005 ac_cv_prog_cc_stdc=$ac_arg
4006break
4007else
4008 echo "$as_me: failed program was:" >&5
4009sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4010
ce2cded5
L
4011fi
4012rm -f conftest.err conftest.$ac_objext
4013done
4014rm -f conftest.$ac_ext conftest.$ac_objext
4015CC=$ac_save_CC
d7040cdb 4016
ce2cded5 4017fi
d7040cdb 4018
ce2cded5
L
4019case "x$ac_cv_prog_cc_stdc" in
4020 x|xno)
4021 echo "$as_me:$LINENO: result: none needed" >&5
4022echo "${ECHO_T}none needed" >&6 ;;
4023 *)
4024 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4025echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4026 CC="$CC $ac_cv_prog_cc_stdc" ;;
d7040cdb
SE
4027esac
4028
ce2cded5
L
4029# Some people use a C++ compiler to compile C. Since we use `exit',
4030# in C++ we need to declare it. In case someone uses the same compiler
4031# for both compiling C and C++ we need to have the C++ compiler decide
4032# the declaration of exit, since it's the most demanding environment.
4033cat >conftest.$ac_ext <<_ACEOF
4034#ifndef __cplusplus
4035 choke me
4036#endif
4037_ACEOF
4038rm -f conftest.$ac_objext
4039if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4040 (eval $ac_compile) 2>conftest.er1
4041 ac_status=$?
4042 grep -v '^ *+' conftest.er1 >conftest.err
4043 rm -f conftest.er1
4044 cat conftest.err >&5
4045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046 (exit $ac_status); } &&
4047 { ac_try='test -z "$ac_c_werror_flag"
4048 || test ! -s conftest.err'
4049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4050 (eval $ac_try) 2>&5
4051 ac_status=$?
4052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053 (exit $ac_status); }; } &&
4054 { ac_try='test -s conftest.$ac_objext'
4055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4056 (eval $ac_try) 2>&5
4057 ac_status=$?
4058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4059 (exit $ac_status); }; }; then
4060 for ac_declaration in \
4061 '' \
4062 'extern "C" void std::exit (int) throw (); using std::exit;' \
4063 'extern "C" void std::exit (int); using std::exit;' \
4064 'extern "C" void exit (int) throw ();' \
4065 'extern "C" void exit (int);' \
4066 'void exit (int);'
4067do
4068 cat >conftest.$ac_ext <<_ACEOF
4069/* confdefs.h. */
4070_ACEOF
4071cat confdefs.h >>conftest.$ac_ext
4072cat >>conftest.$ac_ext <<_ACEOF
4073/* end confdefs.h. */
4074$ac_declaration
4075#include <stdlib.h>
4076int
4077main ()
4078{
4079exit (42);
4080 ;
4081 return 0;
4082}
4083_ACEOF
4084rm -f conftest.$ac_objext
4085if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4086 (eval $ac_compile) 2>conftest.er1
4087 ac_status=$?
4088 grep -v '^ *+' conftest.er1 >conftest.err
4089 rm -f conftest.er1
4090 cat conftest.err >&5
4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092 (exit $ac_status); } &&
4093 { ac_try='test -z "$ac_c_werror_flag"
4094 || test ! -s conftest.err'
4095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4096 (eval $ac_try) 2>&5
4097 ac_status=$?
4098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099 (exit $ac_status); }; } &&
4100 { ac_try='test -s conftest.$ac_objext'
4101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4102 (eval $ac_try) 2>&5
4103 ac_status=$?
4104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105 (exit $ac_status); }; }; then
4106 :
d7040cdb 4107else
ce2cded5
L
4108 echo "$as_me: failed program was:" >&5
4109sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4110
ce2cded5
L
4111continue
4112fi
4113rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4114 cat >conftest.$ac_ext <<_ACEOF
4115/* confdefs.h. */
4116_ACEOF
4117cat confdefs.h >>conftest.$ac_ext
4118cat >>conftest.$ac_ext <<_ACEOF
4119/* end confdefs.h. */
4120$ac_declaration
4121int
4122main ()
4123{
4124exit (42);
4125 ;
4126 return 0;
4127}
4128_ACEOF
4129rm -f conftest.$ac_objext
4130if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4131 (eval $ac_compile) 2>conftest.er1
4132 ac_status=$?
4133 grep -v '^ *+' conftest.er1 >conftest.err
4134 rm -f conftest.er1
4135 cat conftest.err >&5
4136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137 (exit $ac_status); } &&
4138 { ac_try='test -z "$ac_c_werror_flag"
4139 || test ! -s conftest.err'
4140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4141 (eval $ac_try) 2>&5
4142 ac_status=$?
4143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144 (exit $ac_status); }; } &&
4145 { ac_try='test -s conftest.$ac_objext'
4146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4147 (eval $ac_try) 2>&5
4148 ac_status=$?
4149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150 (exit $ac_status); }; }; then
4151 break
4152else
4153 echo "$as_me: failed program was:" >&5
4154sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4155
ce2cded5
L
4156fi
4157rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4158done
4159rm -f conftest*
4160if test -n "$ac_declaration"; then
4161 echo '#ifdef __cplusplus' >>confdefs.h
4162 echo $ac_declaration >>confdefs.h
4163 echo '#endif' >>confdefs.h
4164fi
d7040cdb 4165
ce2cded5
L
4166else
4167 echo "$as_me: failed program was:" >&5
4168sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4169
ce2cded5
L
4170fi
4171rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4172ac_ext=c
4173ac_cpp='$CPP $CPPFLAGS'
4174ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4175ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4176ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb
SE
4177
4178
ce2cded5
L
4179cat >>confdefs.h <<\_ACEOF
4180#define _GNU_SOURCE 1
4181_ACEOF
4182
4183
4184# Find a good install program. We prefer a C program (faster),
4185# so one script is as good as another. But avoid the broken or
4186# incompatible versions:
4187# SysV /etc/install, /usr/sbin/install
4188# SunOS /usr/etc/install
4189# IRIX /sbin/install
4190# AIX /bin/install
4191# AmigaOS /C/install, which installs bootblocks on floppy discs
4192# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4193# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4194# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4195# OS/2's system install, which has a completely different semantic
4196# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 4197# Reject install programs that cannot install multiple files.
ce2cded5
L
4198echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4199echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4200if test -z "$INSTALL"; then
4201if test "${ac_cv_path_install+set}" = set; then
42ecbf5e 4202 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 4203else
ce2cded5
L
4204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4205for as_dir in $PATH
4206do
4207 IFS=$as_save_IFS
4208 test -z "$as_dir" && as_dir=.
4209 # Account for people who put trailing slashes in PATH elements.
4210case $as_dir/ in
4211 ./ | .// | /cC/* | \
4212 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4213 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4214 /usr/ucb/* ) ;;
4215 *)
4216 # OSF1 and SCO ODT 3.0 have their own names for install.
4217 # Don't use installbsd from OSF since it installs stuff as root
4218 # by default.
4219 for ac_prog in ginstall scoinst install; do
4220 for ac_exec_ext in '' $ac_executable_extensions; do
4221 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4222 if test $ac_prog = install &&
4223 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4224 # AIX install. It has an incompatible calling convention.
4225 :
4226 elif test $ac_prog = install &&
4227 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4228 # program-specific install script used by HP pwplus--don't use.
4229 :
4230 else
58c85be7
RW
4231 rm -rf conftest.one conftest.two conftest.dir
4232 echo one > conftest.one
4233 echo two > conftest.two
4234 mkdir conftest.dir
4235 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4236 test -s conftest.one && test -s conftest.two &&
4237 test -s conftest.dir/conftest.one &&
4238 test -s conftest.dir/conftest.two
4239 then
4240 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4241 break 3
4242 fi
ce2cded5
L
4243 fi
4244 fi
4245 done
4246 done
4247 ;;
4248esac
4249done
ac48eca1 4250
58c85be7 4251rm -rf conftest.one conftest.two conftest.dir
ac48eca1 4252
ce2cded5
L
4253fi
4254 if test "${ac_cv_path_install+set}" = set; then
4255 INSTALL=$ac_cv_path_install
4256 else
58c85be7
RW
4257 # As a last resort, use the slow shell script. Don't cache a
4258 # value for INSTALL within a source directory, because that will
ce2cded5 4259 # break other packages using the cache if that directory is
58c85be7 4260 # removed, or if the value is a relative name.
ce2cded5
L
4261 INSTALL=$ac_install_sh
4262 fi
4263fi
4264echo "$as_me:$LINENO: result: $INSTALL" >&5
4265echo "${ECHO_T}$INSTALL" >&6
ac48eca1 4266
ce2cded5
L
4267# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4268# It thinks the first close brace ends the variable substitution.
4269test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
ac48eca1 4270
ce2cded5 4271test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
d7040cdb 4272
ce2cded5 4273test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
ac48eca1 4274
c7e40348 4275
ac48eca1 4276
ac48eca1 4277
ce2cded5
L
4278macro_version='2.1a'
4279macro_revision='1.2435'
d7040cdb 4280
d7040cdb 4281
ac48eca1 4282
ac48eca1 4283
ac48eca1 4284
c7e40348 4285
ac48eca1 4286
ac48eca1 4287
ac48eca1 4288
6be7c12c 4289
d7040cdb 4290
d7040cdb 4291
ce2cded5 4292ltmain="$ac_aux_dir/ltmain.sh"
d7040cdb 4293
ce2cded5 4294# Set options
ac48eca1 4295
ce2cded5 4296enable_dlopen=no
ac48eca1 4297
d15b04bd 4298
ce2cded5 4299enable_win32_dll=no
d15b04bd 4300
ac48eca1 4301
ce2cded5
L
4302# Check whether --enable-shared or --disable-shared was given.
4303if test "${enable_shared+set}" = set; then
4304 enableval="$enable_shared"
4305 p=${PACKAGE-default}
4306 case $enableval in
4307 yes) enable_shared=yes ;;
4308 no) enable_shared=no ;;
4309 *)
4310 enable_shared=no
4311 # Look at the argument we got. We use all the common list separators.
4312 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4313 for pkg in $enableval; do
4314 IFS="$lt_save_ifs"
4315 if test "X$pkg" = "X$p"; then
4316 enable_shared=yes
4317 fi
4318 done
4319 IFS="$lt_save_ifs"
4320 ;;
4321 esac
4322else
4323 enable_shared=yes
4324fi;
ac48eca1 4325
ac48eca1 4326
ac48eca1 4327
ac48eca1 4328
ac48eca1 4329
ac48eca1 4330
252b5132
RH
4331
4332
ce2cded5
L
4333# Check whether --enable-static or --disable-static was given.
4334if test "${enable_static+set}" = set; then
4335 enableval="$enable_static"
4336 p=${PACKAGE-default}
4337 case $enableval in
4338 yes) enable_static=yes ;;
4339 no) enable_static=no ;;
4340 *)
4341 enable_static=no
4342 # Look at the argument we got. We use all the common list separators.
4343 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4344 for pkg in $enableval; do
4345 IFS="$lt_save_ifs"
4346 if test "X$pkg" = "X$p"; then
4347 enable_static=yes
4348 fi
4349 done
4350 IFS="$lt_save_ifs"
4351 ;;
4352 esac
ac48eca1 4353else
ce2cded5
L
4354 enable_static=yes
4355fi;
42ecbf5e 4356
ac48eca1 4357
42ecbf5e 4358
ac48eca1 4359
ce2cded5
L
4360
4361
4362
4363
4364
4365# Check whether --with-pic or --without-pic was given.
4366if test "${with_pic+set}" = set; then
4367 withval="$with_pic"
4368 pic_mode="$withval"
ac48eca1 4369else
ce2cded5
L
4370 pic_mode=default
4371fi;
4372
4373test -z "$pic_mode" && pic_mode=default
ac48eca1 4374
d7040cdb
SE
4375
4376
4377
4378
4379
4380
ce2cded5
L
4381# Check whether --enable-fast-install or --disable-fast-install was given.
4382if test "${enable_fast_install+set}" = set; then
4383 enableval="$enable_fast_install"
4384 p=${PACKAGE-default}
4385 case $enableval in
4386 yes) enable_fast_install=yes ;;
4387 no) enable_fast_install=no ;;
4388 *)
4389 enable_fast_install=no
4390 # Look at the argument we got. We use all the common list separators.
4391 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4392 for pkg in $enableval; do
4393 IFS="$lt_save_ifs"
4394 if test "X$pkg" = "X$p"; then
4395 enable_fast_install=yes
4396 fi
4397 done
4398 IFS="$lt_save_ifs"
4399 ;;
4400 esac
4401else
4402 enable_fast_install=yes
4403fi;
d7040cdb
SE
4404
4405
4406
4407
4408
ce2cded5
L
4409
4410
4411
4412echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4413echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4414if test "${lt_cv_path_SED+set}" = set; then
42ecbf5e 4415 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 4416else
ce2cded5
L
4417 # Loop through the user's path and test for sed and gsed.
4418# Then use that list of sed's as ones to test for truncation.
42ecbf5e
DJ
4419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4420for as_dir in $PATH
4421do
4422 IFS=$as_save_IFS
4423 test -z "$as_dir" && as_dir=.
ce2cded5
L
4424 for lt_ac_prog in sed gsed; do
4425 for ac_exec_ext in '' $ac_executable_extensions; do
4426 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4427 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4428 fi
4429 done
4430 done
42ecbf5e 4431done
ce2cded5
L
4432IFS=$as_save_IFS
4433lt_ac_max=0
4434lt_ac_count=0
4435# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4436# along with /bin/sed that truncates output.
4437for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4438 test ! -f $lt_ac_sed && continue
4439 cat /dev/null > conftest.in
4440 lt_ac_count=0
4441 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4442 # Check for GNU sed and select it if it is found.
4443 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4444 lt_cv_path_SED=$lt_ac_sed
4445 break
42ecbf5e 4446 fi
ce2cded5
L
4447 while true; do
4448 cat conftest.in conftest.in >conftest.tmp
4449 mv conftest.tmp conftest.in
4450 cp conftest.in conftest.nl
4451 echo >>conftest.nl
4452 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4453 cmp -s conftest.out conftest.nl || break
4454 # 10000 chars as input seems more than enough
4455 test $lt_ac_count -gt 10 && break
4456 lt_ac_count=`expr $lt_ac_count + 1`
4457 if test $lt_ac_count -gt $lt_ac_max; then
4458 lt_ac_max=$lt_ac_count
4459 lt_cv_path_SED=$lt_ac_sed
4460 fi
4461 done
42ecbf5e 4462done
ac48eca1 4463
ac48eca1
AO
4464fi
4465
ce2cded5 4466SED=$lt_cv_path_SED
42ecbf5e 4467
ce2cded5
L
4468echo "$as_me:$LINENO: result: $SED" >&5
4469echo "${ECHO_T}$SED" >&6
252b5132 4470
ce2cded5
L
4471test -z "$SED" && SED=sed
4472Xsed="$SED -e 1s/^X//"
4867be41 4473
32fba81d 4474
42ecbf5e
DJ
4475
4476
ac48eca1 4477
252b5132 4478
252b5132 4479
42ecbf5e 4480
ac48eca1 4481
d7040cdb 4482
d7040cdb 4483
ce2cded5
L
4484echo "$as_me:$LINENO: checking for egrep" >&5
4485echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4486if test "${ac_cv_prog_egrep+set}" = set; then
4487 echo $ECHO_N "(cached) $ECHO_C" >&6
4488else
4489 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4490 then ac_cv_prog_egrep='grep -E'
4491 else ac_cv_prog_egrep='egrep'
4492 fi
252b5132 4493fi
ce2cded5
L
4494echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4495echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4496 EGREP=$ac_cv_prog_egrep
252b5132 4497
252b5132 4498
ce2cded5
L
4499echo "$as_me:$LINENO: checking for fgrep" >&5
4500echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4501if test "${ac_cv_prog_fgrep+set}" = set; then
4502 echo $ECHO_N "(cached) $ECHO_C" >&6
4503else
4504 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4505 then ac_cv_prog_fgrep='grep -F'
4506 else ac_cv_prog_fgrep='fgrep'
4507 fi
4508fi
4509echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4510echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4511 FGREP=$ac_cv_prog_fgrep
252b5132 4512
252b5132 4513
ce2cded5 4514test -z "$GREP" && GREP=grep
42ecbf5e 4515
42ecbf5e 4516
252b5132 4517
252b5132 4518
252b5132
RH
4519
4520
252b5132 4521
252b5132 4522
252b5132 4523
ac48eca1 4524
42ecbf5e
DJ
4525
4526
4527
4528
4529
ac48eca1 4530
252b5132 4531
42ecbf5e 4532
9c8ebd6a 4533
ce2cded5
L
4534# Check whether --with-gnu-ld or --without-gnu-ld was given.
4535if test "${with_gnu_ld+set}" = set; then
4536 withval="$with_gnu_ld"
4537 test "$withval" = no || with_gnu_ld=yes
d7040cdb 4538else
ce2cded5
L
4539 with_gnu_ld=no
4540fi;
4541ac_prog=ld
4542if test "$GCC" = yes; then
4543 # Check if gcc -print-prog-name=ld gives a path.
4544 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4545echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4546 case $host in
4547 *-*-mingw*)
4548 # gcc leaves a trailing carriage return which upsets mingw
4549 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4550 *)
4551 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4552 esac
4553 case $ac_prog in
4554 # Accept absolute paths.
4555 [\\/]* | ?:[\\/]*)
4556 re_direlt='/[^/][^/]*/\.\./'
4557 # Canonicalize the pathname of ld
4558 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4559 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4560 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4561 done
4562 test -z "$LD" && LD="$ac_prog"
4563 ;;
4564 "")
4565 # If it fails, then pretend we aren't using GCC.
4566 ac_prog=ld
4567 ;;
4568 *)
4569 # If it is relative, then search for the first ld in PATH.
4570 with_gnu_ld=unknown
4571 ;;
4572 esac
4573elif test "$with_gnu_ld" = yes; then
4574 echo "$as_me:$LINENO: checking for GNU ld" >&5
4575echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4576else
4577 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4578echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4579fi
4580if test "${lt_cv_path_LD+set}" = set; then
4581 echo $ECHO_N "(cached) $ECHO_C" >&6
4582else
4583 if test -z "$LD"; then
4584 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4585 for ac_dir in $PATH; do
4586 IFS="$lt_save_ifs"
4587 test -z "$ac_dir" && ac_dir=.
4588 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4589 lt_cv_path_LD="$ac_dir/$ac_prog"
4590 # Check to see if the program is GNU ld. I'd rather use --version,
4591 # but apparently some variants of GNU ld only accept -v.
4592 # Break only if it was the GNU/non-GNU ld that we prefer.
4593 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4594 *GNU* | *'with BFD'*)
4595 test "$with_gnu_ld" != no && break
4596 ;;
4597 *)
4598 test "$with_gnu_ld" != yes && break
4599 ;;
4600 esac
4601 fi
4602 done
4603 IFS="$lt_save_ifs"
4604else
4605 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4606fi
4607fi
9e9b66a9 4608
ce2cded5
L
4609LD="$lt_cv_path_LD"
4610if test -n "$LD"; then
4611 echo "$as_me:$LINENO: result: $LD" >&5
4612echo "${ECHO_T}$LD" >&6
4613else
4614 echo "$as_me:$LINENO: result: no" >&5
4615echo "${ECHO_T}no" >&6
4616fi
4617test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4618echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4619 { (exit 1); exit 1; }; }
4620echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4621echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4622if test "${lt_cv_prog_gnu_ld+set}" = set; then
4623 echo $ECHO_N "(cached) $ECHO_C" >&6
4624else
4625 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4626case `$LD -v 2>&1 </dev/null` in
d7040cdb 4627*GNU* | *'with BFD'*)
ce2cded5
L
4628 lt_cv_prog_gnu_ld=yes
4629 ;;
4630*)
4631 lt_cv_prog_gnu_ld=no
d7040cdb
SE
4632 ;;
4633esac
ce2cded5
L
4634fi
4635echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4636echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4637with_gnu_ld=$lt_cv_prog_gnu_ld
42ecbf5e 4638
e5a52504 4639
d7040cdb 4640
d7040cdb 4641
d7040cdb 4642
d7040cdb 4643
d7040cdb 4644
d7040cdb 4645
d7040cdb 4646
d7040cdb 4647
ce2cded5
L
4648echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4649echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
4650if test "${lt_cv_path_NM+set}" = set; then
4651 echo $ECHO_N "(cached) $ECHO_C" >&6
4652else
4653 if test -n "$NM"; then
4654 # Let the user override the test.
4655 lt_cv_path_NM="$NM"
4656else
4657 lt_nm_to_check="${ac_tool_prefix}nm"
4658 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4659 lt_nm_to_check="$lt_nm_to_check nm"
4660 fi
4661 for lt_tmp_nm in $lt_nm_to_check; do
4662 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4663 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4664 IFS="$lt_save_ifs"
4665 test -z "$ac_dir" && ac_dir=.
4666 tmp_nm="$ac_dir/$lt_tmp_nm"
4667 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4668 # Check to see if the nm accepts a BSD-compat flag.
4669 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4670 # nm: unknown option "B" ignored
4671 # Tru64's nm complains that /dev/null is an invalid object file
4672 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4673 */dev/null* | *'Invalid file or object type'*)
4674 lt_cv_path_NM="$tmp_nm -B"
4675 break
4676 ;;
4677 *)
4678 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4679 */dev/null*)
4680 lt_cv_path_NM="$tmp_nm -p"
4681 break
4682 ;;
4683 *)
4684 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4685 continue # so that we can try to find one that supports BSD flags
4686 ;;
4687 esac
4688 ;;
4689 esac
4690 fi
4691 done
4692 IFS="$lt_save_ifs"
4693 done
4694 : ${lt_cv_path_NM=no}
4695fi
4696fi
4697echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4698echo "${ECHO_T}$lt_cv_path_NM" >&6
4699if test "$lt_cv_path_NM" != "no"; then
4700 NM="$lt_cv_path_NM"
4701else
4702 # Didn't find any BSD compatible name lister, look for dumpbin.
4703 if test -n "$ac_tool_prefix"; then
4704 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4705 do
4706 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4707set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4708echo "$as_me:$LINENO: checking for $ac_word" >&5
4709echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4710if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4711 echo $ECHO_N "(cached) $ECHO_C" >&6
4712else
4713 if test -n "$DUMPBIN"; then
4714 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4715else
4716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4717for as_dir in $PATH
4718do
4719 IFS=$as_save_IFS
4720 test -z "$as_dir" && as_dir=.
4721 for ac_exec_ext in '' $ac_executable_extensions; do
4722 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4723 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4725 break 2
42ecbf5e 4726 fi
42ecbf5e 4727done
ce2cded5 4728done
d15b04bd 4729
ce2cded5
L
4730fi
4731fi
4732DUMPBIN=$ac_cv_prog_DUMPBIN
4733if test -n "$DUMPBIN"; then
4734 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4735echo "${ECHO_T}$DUMPBIN" >&6
4736else
4737 echo "$as_me:$LINENO: result: no" >&5
4738echo "${ECHO_T}no" >&6
252b5132 4739fi
d7040cdb 4740
ce2cded5
L
4741 test -n "$DUMPBIN" && break
4742 done
42ecbf5e 4743fi
ce2cded5
L
4744if test -z "$DUMPBIN"; then
4745 ac_ct_DUMPBIN=$DUMPBIN
4746 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4747do
4748 # Extract the first word of "$ac_prog", so it can be a program name with args.
4749set dummy $ac_prog; ac_word=$2
4750echo "$as_me:$LINENO: checking for $ac_word" >&5
4751echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4752if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4753 echo $ECHO_N "(cached) $ECHO_C" >&6
42ecbf5e 4754else
ce2cded5
L
4755 if test -n "$ac_ct_DUMPBIN"; then
4756 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4757else
4758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4759for as_dir in $PATH
4760do
4761 IFS=$as_save_IFS
4762 test -z "$as_dir" && as_dir=.
4763 for ac_exec_ext in '' $ac_executable_extensions; do
4764 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4765 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4767 break 2
4768 fi
4769done
4770done
4771
4772fi
4773fi
4774ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4775if test -n "$ac_ct_DUMPBIN"; then
4776 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4777echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4778else
4779 echo "$as_me:$LINENO: result: no" >&5
4780echo "${ECHO_T}no" >&6
e5a52504
MM
4781fi
4782
ce2cded5
L
4783 test -n "$ac_ct_DUMPBIN" && break
4784done
4785test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
d15b04bd 4786
ce2cded5
L
4787 DUMPBIN=$ac_ct_DUMPBIN
4788fi
42ecbf5e 4789
42ecbf5e 4790
ce2cded5
L
4791 if test "$DUMPBIN" != ":"; then
4792 NM="$DUMPBIN"
4793 fi
4794fi
4795test -z "$NM" && NM=nm
42ecbf5e 4796
252b5132 4797
42ecbf5e 4798
42ecbf5e 4799
252b5132 4800
42ecbf5e 4801
ce2cded5
L
4802echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4803echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4804if test "${lt_cv_nm_interface+set}" = set; then
4805 echo $ECHO_N "(cached) $ECHO_C" >&6
4806else
4807 lt_cv_nm_interface="BSD nm"
4808 echo "int some_variable = 0;" > conftest.$ac_ext
7fb9f789 4809 (eval echo "\"\$as_me:4809: $ac_compile\"" >&5)
ce2cded5
L
4810 (eval "$ac_compile" 2>conftest.err)
4811 cat conftest.err >&5
7fb9f789 4812 (eval echo "\"\$as_me:4812: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
ce2cded5
L
4813 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4814 cat conftest.err >&5
7fb9f789 4815 (eval echo "\"\$as_me:4815: output\"" >&5)
ce2cded5
L
4816 cat conftest.out >&5
4817 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4818 lt_cv_nm_interface="MS dumpbin"
4819 fi
4820 rm -f conftest*
4821fi
4822echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4823echo "${ECHO_T}$lt_cv_nm_interface" >&6
d15b04bd 4824
ce2cded5
L
4825echo "$as_me:$LINENO: checking whether ln -s works" >&5
4826echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4827LN_S=$as_ln_s
4828if test "$LN_S" = "ln -s"; then
4829 echo "$as_me:$LINENO: result: yes" >&5
4830echo "${ECHO_T}yes" >&6
4831else
4832 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4833echo "${ECHO_T}no, using $LN_S" >&6
4834fi
42ecbf5e 4835
ce2cded5
L
4836# find the maximum length of command line arguments
4837echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4838echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4839if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4840 echo $ECHO_N "(cached) $ECHO_C" >&6
4841else
4842 i=0
4843 teststring="ABCD"
252b5132 4844
ce2cded5
L
4845 case $build_os in
4846 msdosdjgpp*)
4847 # On DJGPP, this test can blow up pretty badly due to problems in libc
4848 # (any single argument exceeding 2000 bytes causes a buffer overrun
4849 # during glob expansion). Even if it were fixed, the result of this
4850 # check would be larger than it should be.
4851 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4852 ;;
e5a52504 4853
ce2cded5
L
4854 gnu*)
4855 # Under GNU Hurd, this test is not required because there is
4856 # no limit to the length of command line arguments.
4857 # Libtool will interpret -1 as no limit whatsoever
4858 lt_cv_sys_max_cmd_len=-1;
4859 ;;
42ecbf5e 4860
ce2cded5
L
4861 cygwin* | mingw*)
4862 # On Win9x/ME, this test blows up -- it succeeds, but takes
4863 # about 5 minutes as the teststring grows exponentially.
4864 # Worse, since 9x/ME are not pre-emptively multitasking,
4865 # you end up with a "frozen" computer, even though with patience
4866 # the test eventually succeeds (with a max line length of 256k).
4867 # Instead, let's just punt: use the minimum linelength reported by
4868 # all of the supported platforms: 8192 (on NT/2K/XP).
4869 lt_cv_sys_max_cmd_len=8192;
4870 ;;
42ecbf5e 4871
ce2cded5
L
4872 amigaos*)
4873 # On AmigaOS with pdksh, this test takes hours, literally.
4874 # So we just punt and use a minimum line length of 8192.
4875 lt_cv_sys_max_cmd_len=8192;
4876 ;;
42ecbf5e 4877
ce2cded5
L
4878 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4879 # This has been around since 386BSD, at least. Likely further.
4880 if test -x /sbin/sysctl; then
4881 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4882 elif test -x /usr/sbin/sysctl; then
4883 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4884 else
4885 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4886 fi
4887 # And add a safety zone
4888 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4889 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4890 ;;
42ecbf5e 4891
ce2cded5
L
4892 interix*)
4893 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4894 lt_cv_sys_max_cmd_len=196608
4895 ;;
d7040cdb 4896
ce2cded5
L
4897 osf*)
4898 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4899 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4900 # nice to cause kernel panics so lets avoid the loop below.
4901 # First set a reasonable default.
4902 lt_cv_sys_max_cmd_len=16384
4903 #
4904 if test -x /sbin/sysconfig; then
4905 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4906 *1*) lt_cv_sys_max_cmd_len=-1 ;;
d7040cdb 4907 esac
ce2cded5
L
4908 fi
4909 ;;
4910 sco3.2v5*)
4911 lt_cv_sys_max_cmd_len=102400
4912 ;;
4913 sysv5* | sco5v6* | sysv4.2uw2*)
4914 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4915 if test -n "$kargmax"; then
4916 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
d7040cdb 4917 else
ce2cded5 4918 lt_cv_sys_max_cmd_len=32768
d7040cdb 4919 fi
ce2cded5
L
4920 ;;
4921 *)
4922 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
4923 if test -n $lt_cv_sys_max_cmd_len; then
4924 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4925 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4926 else
4927 # Make teststring a little bigger before we do anything with it.
4928 # a 1K string should be a reasonable start.
4929 for i in 1 2 3 4 5 6 7 8 ; do
4930 teststring=$teststring$teststring
4931 done
4932 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4933 # If test is not a shell built-in, we'll probably end up computing a
4934 # maximum length that is only half of the actual maximum length, but
4935 # we can't tell.
4936 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4937 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4938 test $i != 17 # 1/2 MB should be enough
4939 do
4940 i=`expr $i + 1`
4941 teststring=$teststring$teststring
4942 done
4943 # Only check the string length outside the loop.
4944 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4945 teststring=
4946 # Add a significant safety factor because C++ compilers can tack on
4947 # massive amounts of additional arguments before passing them to the
4948 # linker. It appears as though 1/2 is a usable value.
4949 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4950 fi
4951 ;;
4952 esac
d7040cdb 4953
ce2cded5 4954fi
d7040cdb 4955
ce2cded5
L
4956if test -n $lt_cv_sys_max_cmd_len ; then
4957 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4958echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
42ecbf5e 4959else
ce2cded5
L
4960 echo "$as_me:$LINENO: result: none" >&5
4961echo "${ECHO_T}none" >&6
4962fi
4963max_cmd_len=$lt_cv_sys_max_cmd_len
d7040cdb 4964
42ecbf5e 4965
252b5132 4966
42ecbf5e 4967
42ecbf5e 4968
d7040cdb 4969
d7040cdb 4970
ce2cded5
L
4971: ${CP="cp -f"}
4972: ${MV="mv -f"}
4973: ${RM="rm -f"}
d7040cdb 4974
ce2cded5
L
4975echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4976echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4977# Try some XSI features
4978xsi_shell=no
4979( _lt_dummy="a/b/c"
4980 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4981 = c,a/b,, ) >/dev/null 2>&1 \
4982 && xsi_shell=yes
4983echo "$as_me:$LINENO: result: $xsi_shell" >&5
4984echo "${ECHO_T}$xsi_shell" >&6
d7040cdb 4985
ce2cded5
L
4986
4987echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4988echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4989lt_shell_append=no
4990( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4991 >/dev/null 2>&1 \
4992 && lt_shell_append=yes
4993echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4994echo "${ECHO_T}$lt_shell_append" >&6
4995
4996
4997if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4998 lt_unset=unset
d7040cdb 4999else
ce2cded5 5000 lt_unset=false
d7040cdb 5001fi
42ecbf5e 5002
42ecbf5e 5003
42ecbf5e 5004
42ecbf5e 5005
d7040cdb 5006
ce2cded5
L
5007# test EBCDIC or ASCII
5008case `echo X|tr X '\101'` in
5009 A) # ASCII based system
5010 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5011 lt_SP2NL='tr \040 \012'
5012 lt_NL2SP='tr \015\012 \040\040'
5013 ;;
5014 *) # EBCDIC based system
5015 lt_SP2NL='tr \100 \n'
5016 lt_NL2SP='tr \r\n \100\100'
5017 ;;
5018esac
d7040cdb 5019
42ecbf5e 5020
d7040cdb 5021
d7040cdb 5022
d7040cdb
SE
5023
5024
d7040cdb 5025
d7040cdb 5026
42ecbf5e 5027
ce2cded5
L
5028echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5029echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5030if test "${lt_cv_ld_reload_flag+set}" = set; then
5031 echo $ECHO_N "(cached) $ECHO_C" >&6
5032else
5033 lt_cv_ld_reload_flag='-r'
42ecbf5e 5034fi
ce2cded5
L
5035echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5036echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5037reload_flag=$lt_cv_ld_reload_flag
5038case $reload_flag in
5039"" | " "*) ;;
5040*) reload_flag=" $reload_flag" ;;
5041esac
5042reload_cmds='$LD$reload_flag -o $output$reload_objs'
5043case $host_os in
5044 darwin*)
5045 if test "$GCC" = yes; then
5046 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5047 else
5048 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5049 fi
5050 ;;
5051esac
42ecbf5e 5052
252b5132 5053
d7040cdb 5054
252b5132 5055
252b5132 5056
252b5132 5057
252b5132
RH
5058
5059
ce2cded5
L
5060
5061
5062echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5063echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
5064if test "${lt_cv_deplibs_check_method+set}" = set; then
5065 echo $ECHO_N "(cached) $ECHO_C" >&6
d7040cdb 5066else
ce2cded5
L
5067 lt_cv_file_magic_cmd='$MAGIC_CMD'
5068lt_cv_file_magic_test_file=
5069lt_cv_deplibs_check_method='unknown'
5070# Need to set the preceding variable on all platforms that support
5071# interlibrary dependencies.
5072# 'none' -- dependencies not supported.
5073# `unknown' -- same as none, but documents that we really don't know.
5074# 'pass_all' -- all dependencies passed with no checks.
5075# 'test_compile' -- check by making test program.
5076# 'file_magic [[regex]]' -- check by looking for files in library path
5077# which responds to the $file_magic_cmd with a given extended regex.
5078# If you have `file' or equivalent on your system and you're not sure
5079# whether `pass_all' will *always* work, you probably want this one.
b83ef3ee 5080
ce2cded5 5081case $host_os in
50e7d84b 5082aix[4-9]*)
ce2cded5
L
5083 lt_cv_deplibs_check_method=pass_all
5084 ;;
20e95c23 5085
ce2cded5
L
5086beos*)
5087 lt_cv_deplibs_check_method=pass_all
5088 ;;
20e95c23 5089
ce2cded5
L
5090bsdi[45]*)
5091 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5092 lt_cv_file_magic_cmd='/usr/bin/file -L'
5093 lt_cv_file_magic_test_file=/shlib/libc.so
5094 ;;
20e95c23 5095
ce2cded5
L
5096cygwin*)
5097 # func_win32_libid is a shell function defined in ltmain.sh
5098 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5099 lt_cv_file_magic_cmd='func_win32_libid'
5100 ;;
20e95c23 5101
ce2cded5
L
5102mingw* | pw32*)
5103 # Base MSYS/MinGW do not provide the 'file' command needed by
5104 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5105 # unless we find 'file', for example because we are cross-compiling.
5106 if ( file / ) >/dev/null 2>&1; then
5107 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5108 lt_cv_file_magic_cmd='func_win32_libid'
5109 else
5110 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5111 lt_cv_file_magic_cmd='$OBJDUMP -f'
5112 fi
5113 ;;
20e95c23 5114
ce2cded5
L
5115darwin* | rhapsody*)
5116 lt_cv_deplibs_check_method=pass_all
5117 ;;
20e95c23 5118
ce2cded5
L
5119freebsd* | dragonfly*)
5120 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5121 case $host_cpu in
5122 i*86 )
5123 # Not sure whether the presence of OpenBSD here was a mistake.
5124 # Let's accept both of them until this is cleared up.
5125 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5126 lt_cv_file_magic_cmd=/usr/bin/file
5127 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5128 ;;
5129 esac
5130 else
5131 lt_cv_deplibs_check_method=pass_all
5132 fi
5133 ;;
20e95c23 5134
ce2cded5
L
5135gnu*)
5136 lt_cv_deplibs_check_method=pass_all
5137 ;;
20e95c23 5138
ce2cded5
L
5139hpux10.20* | hpux11*)
5140 lt_cv_file_magic_cmd=/usr/bin/file
5141 case $host_cpu in
5142 ia64*)
5143 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5144 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5145 ;;
5146 hppa*64*)
5147 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]'
5148 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5149 ;;
5150 *)
5151 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5152 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5153 ;;
5154 esac
5155 ;;
20e95c23 5156
ce2cded5
L
5157interix[3-9]*)
5158 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5159 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5160 ;;
20e95c23 5161
ce2cded5
L
5162irix5* | irix6* | nonstopux*)
5163 case $LD in
5164 *-32|*"-32 ") libmagic=32-bit;;
5165 *-n32|*"-n32 ") libmagic=N32;;
5166 *-64|*"-64 ") libmagic=64-bit;;
5167 *) libmagic=never-match;;
5168 esac
5169 lt_cv_deplibs_check_method=pass_all
5170 ;;
20e95c23 5171
ce2cded5
L
5172# This must be Linux ELF.
5173linux* | k*bsd*-gnu)
5174 lt_cv_deplibs_check_method=pass_all
5175 ;;
20e95c23 5176
ce2cded5
L
5177netbsd*)
5178 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5179 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5180 else
5181 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5182 fi
5183 ;;
20e95c23 5184
ce2cded5
L
5185newos6*)
5186 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5187 lt_cv_file_magic_cmd=/usr/bin/file
5188 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5189 ;;
20e95c23 5190
ce2cded5
L
5191*nto* | *qnx*)
5192 lt_cv_deplibs_check_method=pass_all
5193 ;;
20e95c23 5194
ce2cded5
L
5195openbsd*)
5196 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5197 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5198 else
5199 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5200 fi
5201 ;;
20e95c23 5202
ce2cded5
L
5203osf3* | osf4* | osf5*)
5204 lt_cv_deplibs_check_method=pass_all
5205 ;;
20e95c23 5206
ce2cded5
L
5207rdos*)
5208 lt_cv_deplibs_check_method=pass_all
5209 ;;
20e95c23 5210
ce2cded5
L
5211solaris*)
5212 lt_cv_deplibs_check_method=pass_all
5213 ;;
20e95c23 5214
ce2cded5
L
5215sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5216 lt_cv_deplibs_check_method=pass_all
5217 ;;
20e95c23 5218
ce2cded5
L
5219sysv4 | sysv4.3*)
5220 case $host_vendor in
5221 motorola)
5222 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]'
5223 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5224 ;;
5225 ncr)
5226 lt_cv_deplibs_check_method=pass_all
5227 ;;
5228 sequent)
5229 lt_cv_file_magic_cmd='/bin/file'
5230 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5231 ;;
5232 sni)
5233 lt_cv_file_magic_cmd='/bin/file'
5234 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5235 lt_cv_file_magic_test_file=/lib/libc.so
5236 ;;
5237 siemens)
5238 lt_cv_deplibs_check_method=pass_all
5239 ;;
5240 pc)
5241 lt_cv_deplibs_check_method=pass_all
5242 ;;
5243 esac
5244 ;;
d7040cdb 5245
ce2cded5
L
5246tpf*)
5247 lt_cv_deplibs_check_method=pass_all
5248 ;;
5249esac
d7040cdb 5250
20e95c23 5251fi
ce2cded5
L
5252echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5253echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5254file_magic_cmd=$lt_cv_file_magic_cmd
5255deplibs_check_method=$lt_cv_deplibs_check_method
5256test -z "$deplibs_check_method" && deplibs_check_method=unknown
d7040cdb
SE
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
20e95c23 5268
ce2cded5
L
5269if test -n "$ac_tool_prefix"; then
5270 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5271set dummy ${ac_tool_prefix}ar; ac_word=$2
5272echo "$as_me:$LINENO: checking for $ac_word" >&5
5273echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5274if test "${ac_cv_prog_AR+set}" = set; then
d7040cdb 5275 echo $ECHO_N "(cached) $ECHO_C" >&6
20e95c23 5276else
ce2cded5
L
5277 if test -n "$AR"; then
5278 ac_cv_prog_AR="$AR" # Let the user override the test.
d7040cdb 5279else
ce2cded5
L
5280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5281for as_dir in $PATH
5282do
5283 IFS=$as_save_IFS
5284 test -z "$as_dir" && as_dir=.
5285 for ac_exec_ext in '' $ac_executable_extensions; do
5286 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5287 ac_cv_prog_AR="${ac_tool_prefix}ar"
5288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5289 break 2
5290 fi
5291done
5292done
5293
d7040cdb 5294fi
42ecbf5e 5295fi
ce2cded5
L
5296AR=$ac_cv_prog_AR
5297if test -n "$AR"; then
5298 echo "$as_me:$LINENO: result: $AR" >&5
5299echo "${ECHO_T}$AR" >&6
5300else
5301 echo "$as_me:$LINENO: result: no" >&5
5302echo "${ECHO_T}no" >&6
5303fi
d7040cdb 5304
ce2cded5
L
5305fi
5306if test -z "$ac_cv_prog_AR"; then
5307 ac_ct_AR=$AR
5308 # Extract the first word of "ar", so it can be a program name with args.
5309set dummy ar; ac_word=$2
5310echo "$as_me:$LINENO: checking for $ac_word" >&5
5311echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5312if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5313 echo $ECHO_N "(cached) $ECHO_C" >&6
5314else
5315 if test -n "$ac_ct_AR"; then
5316 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5317else
5318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5319for as_dir in $PATH
5320do
5321 IFS=$as_save_IFS
5322 test -z "$as_dir" && as_dir=.
5323 for ac_exec_ext in '' $ac_executable_extensions; do
5324 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5325 ac_cv_prog_ac_ct_AR="ar"
5326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5327 break 2
5328 fi
5329done
5330done
d7040cdb 5331
ce2cded5
L
5332 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5333fi
5334fi
5335ac_ct_AR=$ac_cv_prog_ac_ct_AR
5336if test -n "$ac_ct_AR"; then
5337 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5338echo "${ECHO_T}$ac_ct_AR" >&6
5339else
5340 echo "$as_me:$LINENO: result: no" >&5
5341echo "${ECHO_T}no" >&6
5342fi
d7040cdb 5343
ce2cded5
L
5344 AR=$ac_ct_AR
5345else
5346 AR="$ac_cv_prog_AR"
5347fi
d7040cdb 5348
ce2cded5
L
5349test -z "$AR" && AR=ar
5350test -z "$AR_FLAGS" && AR_FLAGS=cru
d7040cdb
SE
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
ce2cded5
L
5362if test -n "$ac_tool_prefix"; then
5363 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5364set dummy ${ac_tool_prefix}strip; ac_word=$2
5365echo "$as_me:$LINENO: checking for $ac_word" >&5
5366echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5367if test "${ac_cv_prog_STRIP+set}" = set; then
5368 echo $ECHO_N "(cached) $ECHO_C" >&6
5369else
5370 if test -n "$STRIP"; then
5371 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5372else
5373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5374for as_dir in $PATH
5375do
5376 IFS=$as_save_IFS
5377 test -z "$as_dir" && as_dir=.
5378 for ac_exec_ext in '' $ac_executable_extensions; do
5379 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5380 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5382 break 2
20e95c23 5383 fi
d7040cdb 5384done
ce2cded5 5385done
d7040cdb 5386
ce2cded5
L
5387fi
5388fi
5389STRIP=$ac_cv_prog_STRIP
5390if test -n "$STRIP"; then
5391 echo "$as_me:$LINENO: result: $STRIP" >&5
5392echo "${ECHO_T}$STRIP" >&6
5393else
5394 echo "$as_me:$LINENO: result: no" >&5
5395echo "${ECHO_T}no" >&6
5396fi
d7040cdb 5397
ce2cded5
L
5398fi
5399if test -z "$ac_cv_prog_STRIP"; then
5400 ac_ct_STRIP=$STRIP
5401 # Extract the first word of "strip", so it can be a program name with args.
5402set dummy strip; ac_word=$2
5403echo "$as_me:$LINENO: checking for $ac_word" >&5
5404echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5405if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
20e95c23
DJ
5406 echo $ECHO_N "(cached) $ECHO_C" >&6
5407else
ce2cded5
L
5408 if test -n "$ac_ct_STRIP"; then
5409 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5410else
5411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5412for as_dir in $PATH
5413do
5414 IFS=$as_save_IFS
5415 test -z "$as_dir" && as_dir=.
5416 for ac_exec_ext in '' $ac_executable_extensions; do
5417 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5418 ac_cv_prog_ac_ct_STRIP="strip"
5419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5420 break 2
5421 fi
5422done
5423done
d7040cdb 5424
ce2cded5 5425 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
20e95c23 5426fi
ce2cded5
L
5427fi
5428ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5429if test -n "$ac_ct_STRIP"; then
5430 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5431echo "${ECHO_T}$ac_ct_STRIP" >&6
42ecbf5e
DJ
5432else
5433 echo "$as_me:$LINENO: result: no" >&5
5434echo "${ECHO_T}no" >&6
5435fi
5436
ce2cded5
L
5437 STRIP=$ac_ct_STRIP
5438else
5439 STRIP="$ac_cv_prog_STRIP"
5440fi
20e95c23 5441
ce2cded5 5442test -z "$STRIP" && STRIP=:
20e95c23 5443
20e95c23 5444
20e95c23 5445
ce2cded5
L
5446
5447
5448
5449if test -n "$ac_tool_prefix"; then
5450 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5451set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5452echo "$as_me:$LINENO: checking for $ac_word" >&5
5453echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5454if test "${ac_cv_prog_RANLIB+set}" = set; then
42ecbf5e
DJ
5455 echo $ECHO_N "(cached) $ECHO_C" >&6
5456else
ce2cded5
L
5457 if test -n "$RANLIB"; then
5458 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5459else
5460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5461for as_dir in $PATH
5462do
5463 IFS=$as_save_IFS
5464 test -z "$as_dir" && as_dir=.
5465 for ac_exec_ext in '' $ac_executable_extensions; do
5466 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5467 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5469 break 2
5470 fi
5471done
5472done
d7040cdb 5473
ce2cded5
L
5474fi
5475fi
5476RANLIB=$ac_cv_prog_RANLIB
5477if test -n "$RANLIB"; then
5478 echo "$as_me:$LINENO: result: $RANLIB" >&5
5479echo "${ECHO_T}$RANLIB" >&6
5480else
5481 echo "$as_me:$LINENO: result: no" >&5
5482echo "${ECHO_T}no" >&6
5483fi
d7040cdb 5484
20e95c23 5485fi
ce2cded5
L
5486if test -z "$ac_cv_prog_RANLIB"; then
5487 ac_ct_RANLIB=$RANLIB
5488 # Extract the first word of "ranlib", so it can be a program name with args.
5489set dummy ranlib; ac_word=$2
5490echo "$as_me:$LINENO: checking for $ac_word" >&5
5491echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5492if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5493 echo $ECHO_N "(cached) $ECHO_C" >&6
5494else
5495 if test -n "$ac_ct_RANLIB"; then
5496 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5497else
5498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5499for as_dir in $PATH
5500do
5501 IFS=$as_save_IFS
5502 test -z "$as_dir" && as_dir=.
5503 for ac_exec_ext in '' $ac_executable_extensions; do
5504 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5505 ac_cv_prog_ac_ct_RANLIB="ranlib"
5506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5507 break 2
5508 fi
5509done
5510done
d7040cdb 5511
ce2cded5
L
5512 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5513fi
5514fi
5515ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5516if test -n "$ac_ct_RANLIB"; then
5517 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5518echo "${ECHO_T}$ac_ct_RANLIB" >&6
20e95c23
DJ
5519else
5520 echo "$as_me:$LINENO: result: no" >&5
5521echo "${ECHO_T}no" >&6
5522fi
5523
ce2cded5
L
5524 RANLIB=$ac_ct_RANLIB
5525else
5526 RANLIB="$ac_cv_prog_RANLIB"
d7040cdb 5527fi
20e95c23 5528
ce2cded5 5529test -z "$RANLIB" && RANLIB=:
20e95c23 5530
20e95c23
DJ
5531
5532
5533
5534
d7040cdb 5535
ce2cded5
L
5536# Determine commands to create old-style static archives.
5537old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5538old_postinstall_cmds='chmod 644 $oldlib'
5539old_postuninstall_cmds=
d7040cdb 5540
ce2cded5
L
5541if test -n "$RANLIB"; then
5542 case $host_os in
5543 openbsd*)
5544 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5545 ;;
5546 *)
5547 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5548 ;;
5549 esac
5550 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5551fi
d7040cdb
SE
5552
5553
5554
5555
5556
5557
5558
d7040cdb 5559
d7040cdb 5560
d7040cdb 5561
d7040cdb 5562
d7040cdb 5563
d7040cdb
SE
5564
5565
d7040cdb 5566
d7040cdb 5567
d7040cdb 5568
d7040cdb 5569
d7040cdb 5570
42ecbf5e 5571
d7040cdb
SE
5572
5573
5574
5575
5576
5577
d7040cdb 5578
d7040cdb 5579
d7040cdb 5580
d7040cdb 5581
d7040cdb 5582
d7040cdb 5583
d7040cdb 5584
d7040cdb 5585
ce2cded5
L
5586# If no C compiler was specified, use CC.
5587LTCC=${LTCC-"$CC"}
d7040cdb 5588
ce2cded5
L
5589# If no C compiler flags were specified, use CFLAGS.
5590LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d7040cdb 5591
ce2cded5
L
5592# Allow CC to be a program name with arguments.
5593compiler=$CC
d7040cdb 5594
d7040cdb 5595
ce2cded5
L
5596# Check for command to grab the raw symbol name followed by C symbol from nm.
5597echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5598echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5599if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5600 echo $ECHO_N "(cached) $ECHO_C" >&6
5601else
d7040cdb 5602
ce2cded5
L
5603# These are sane defaults that work on at least a few old systems.
5604# [They come from Ultrix. What could be older than Ultrix?!! ;)]
d7040cdb 5605
ce2cded5
L
5606# Character class describing NM global symbol codes.
5607symcode='[BCDEGRST]'
d7040cdb 5608
ce2cded5
L
5609# Regexp to match symbols that can be accessed directly from C.
5610sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
d7040cdb 5611
ce2cded5
L
5612# Define system-specific variables.
5613case $host_os in
5614aix*)
5615 symcode='[BCDT]'
5616 ;;
5617cygwin* | mingw* | pw32*)
5618 symcode='[ABCDGISTW]'
5619 ;;
5620hpux*)
5621 if test "$host_cpu" = ia64; then
5622 symcode='[ABCDEGRST]'
5623 fi
5624 ;;
5625irix* | nonstopux*)
5626 symcode='[BCDEGRST]'
5627 ;;
5628osf*)
5629 symcode='[BCDEGQRST]'
5630 ;;
5631solaris*)
5632 symcode='[BDRT]'
5633 ;;
5634sco3.2v5*)
5635 symcode='[DT]'
5636 ;;
5637sysv4.2uw2*)
5638 symcode='[DT]'
5639 ;;
5640sysv5* | sco5v6* | unixware* | OpenUNIX*)
5641 symcode='[ABDT]'
5642 ;;
5643sysv4)
5644 symcode='[DFNSTU]'
5645 ;;
5646esac
d7040cdb 5647
ce2cded5
L
5648# If we're using GNU nm, then use its standard symbol codes.
5649case `$NM -V 2>&1` in
5650*GNU* | *'with BFD'*)
5651 symcode='[ABCDGIRSTW]' ;;
5652esac
d7040cdb 5653
ce2cded5
L
5654# Transform an extracted symbol line into a proper C declaration.
5655# Some systems (esp. on ia64) link data and code symbols differently,
5656# so use this general approach.
5657lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
d7040cdb 5658
ce2cded5
L
5659# Transform an extracted symbol line into symbol name and symbol address
5660lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
d7040cdb 5661
ce2cded5
L
5662# Handle CRLF in mingw tool chain
5663opt_cr=
5664case $build_os in
5665mingw*)
5666 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5667 ;;
5668esac
d7040cdb 5669
ce2cded5
L
5670# Try without a prefix underscore, then with it.
5671for ac_symprfx in "" "_"; do
d7040cdb 5672
ce2cded5
L
5673 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5674 symxfrm="\\1 $ac_symprfx\\2 \\2"
d7040cdb 5675
ce2cded5
L
5676 # Write the raw and C identifiers.
5677 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5678 # Fake it for dumpbin and say T for any non-static function
5679 # and D for any global variable.
5680 # Also find C++ and __fastcall symbols from MSVC++,
5681 # which start with @ or ?.
5682 lt_cv_sys_global_symbol_pipe="$AWK '"\
5683" {last_section=section; section=\$ 3};"\
5684" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5685" \$ 0!~/External *\|/{next};"\
5686" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5687" {if(hide[section]) next};"\
5688" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5689" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5690" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5691" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5692" ' prfx=^$ac_symprfx"
5693 else
5694 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5695 fi
d7040cdb 5696
ce2cded5
L
5697 # Check to see that the pipe works correctly.
5698 pipe_works=no
d7040cdb 5699
ce2cded5
L
5700 rm -f conftest*
5701 cat > conftest.$ac_ext <<_LT_EOF
5702#ifdef __cplusplus
5703extern "C" {
5704#endif
5705char nm_test_var;
5706void nm_test_func(void);
5707void nm_test_func(void){}
5708#ifdef __cplusplus
5709}
5710#endif
5711int main(){nm_test_var='a';nm_test_func();return(0);}
5712_LT_EOF
d7040cdb 5713
ce2cded5
L
5714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5715 (eval $ac_compile) 2>&5
5716 ac_status=$?
5717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718 (exit $ac_status); }; then
5719 # Now try to grab the symbols.
5720 nlist=conftest.nm
5721 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5722 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5723 ac_status=$?
5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); } && test -s "$nlist"; then
5726 # Try sorting and uniquifying the output.
5727 if sort "$nlist" | uniq > "$nlist"T; then
5728 mv -f "$nlist"T "$nlist"
5729 else
5730 rm -f "$nlist"T
5731 fi
d7040cdb 5732
ce2cded5
L
5733 # Make sure that we snagged all the symbols we need.
5734 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5735 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5736 cat <<_LT_EOF > conftest.$ac_ext
5737#ifdef __cplusplus
5738extern "C" {
5739#endif
d7040cdb 5740
ce2cded5
L
5741_LT_EOF
5742 # Now generate the symbol file.
5743 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
d7040cdb 5744
ce2cded5 5745 cat <<_LT_EOF >> conftest.$ac_ext
d7040cdb 5746
ce2cded5
L
5747/* The mapping between symbol names and symbols. */
5748const struct {
5749 const char *name;
5750 void *address;
5751}
5752lt__PROGRAM__LTX_preloaded_symbols[] =
5753{
5754 { "@PROGRAM@", (void *) 0 },
5755_LT_EOF
5756 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5757 cat <<\_LT_EOF >> conftest.$ac_ext
5758 {0, (void *) 0}
5759};
d7040cdb 5760
ce2cded5
L
5761/* This works around a problem in FreeBSD linker */
5762#ifdef FREEBSD_WORKAROUND
5763static const void *lt_preloaded_setup() {
5764 return lt__PROGRAM__LTX_preloaded_symbols;
5765}
5766#endif
d7040cdb 5767
ce2cded5
L
5768#ifdef __cplusplus
5769}
5770#endif
5771_LT_EOF
5772 # Now try linking the two files.
5773 mv conftest.$ac_objext conftstm.$ac_objext
5774 lt_save_LIBS="$LIBS"
5775 lt_save_CFLAGS="$CFLAGS"
5776 LIBS="conftstm.$ac_objext"
5777 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5779 (eval $ac_link) 2>&5
5780 ac_status=$?
5781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5783 pipe_works=yes
5784 fi
5785 LIBS="$lt_save_LIBS"
5786 CFLAGS="$lt_save_CFLAGS"
5787 else
5788 echo "cannot find nm_test_func in $nlist" >&5
5789 fi
5790 else
5791 echo "cannot find nm_test_var in $nlist" >&5
5792 fi
5793 else
5794 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5795 fi
5796 else
5797 echo "$progname: failed program was:" >&5
5798 cat conftest.$ac_ext >&5
5799 fi
5800 rm -f conftest* conftst*
d7040cdb 5801
ce2cded5
L
5802 # Do not use the global_symbol_pipe unless it works.
5803 if test "$pipe_works" = yes; then
5804 break
5805 else
5806 lt_cv_sys_global_symbol_pipe=
5807 fi
5808done
d7040cdb 5809
42ecbf5e 5810fi
d7040cdb 5811
ce2cded5
L
5812if test -z "$lt_cv_sys_global_symbol_pipe"; then
5813 lt_cv_sys_global_symbol_to_cdecl=
5814fi
5815if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5816 echo "$as_me:$LINENO: result: failed" >&5
5817echo "${ECHO_T}failed" >&6
42ecbf5e 5818else
ce2cded5
L
5819 echo "$as_me:$LINENO: result: ok" >&5
5820echo "${ECHO_T}ok" >&6
42ecbf5e
DJ
5821fi
5822
42ecbf5e 5823
d7040cdb
SE
5824
5825
5826
5827
5828
20e95c23 5829
d7040cdb 5830
d7040cdb
SE
5831
5832
5833
5834
5835
5836
5837
20e95c23 5838
ce2cded5
L
5839# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5840if test "${enable_libtool_lock+set}" = set; then
5841 enableval="$enable_libtool_lock"
d7040cdb 5842
ce2cded5
L
5843fi;
5844test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
d7040cdb 5845
ce2cded5
L
5846# Some flags need to be propagated to the compiler or linker for good
5847# libtool support.
5848case $host in
5849ia64-*-hpux*)
5850 # Find out which ABI we are using.
5851 echo 'int i;' > conftest.$ac_ext
5852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5853 (eval $ac_compile) 2>&5
5854 ac_status=$?
5855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856 (exit $ac_status); }; then
5857 case `/usr/bin/file conftest.$ac_objext` in
5858 *ELF-32*)
5859 HPUX_IA64_MODE="32"
5860 ;;
5861 *ELF-64*)
5862 HPUX_IA64_MODE="64"
5863 ;;
5864 esac
5865 fi
5866 rm -rf conftest*
5867 ;;
5868*-*-irix6*)
5869 # Find out which ABI we are using.
7fb9f789 5870 echo '#line 5870 "configure"' > conftest.$ac_ext
ce2cded5
L
5871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5872 (eval $ac_compile) 2>&5
5873 ac_status=$?
5874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875 (exit $ac_status); }; then
5876 if test "$lt_cv_prog_gnu_ld" = yes; then
5877 case `/usr/bin/file conftest.$ac_objext` in
5878 *32-bit*)
5879 LD="${LD-ld} -melf32bsmip"
5880 ;;
5881 *N32*)
5882 LD="${LD-ld} -melf32bmipn32"
5883 ;;
5884 *64-bit*)
5885 LD="${LD-ld} -melf64bmip"
5886 ;;
5887 esac
5888 else
5889 case `/usr/bin/file conftest.$ac_objext` in
5890 *32-bit*)
5891 LD="${LD-ld} -32"
5892 ;;
5893 *N32*)
5894 LD="${LD-ld} -n32"
5895 ;;
5896 *64-bit*)
5897 LD="${LD-ld} -64"
5898 ;;
5899 esac
5900 fi
5901 fi
5902 rm -rf conftest*
5903 ;;
d7040cdb 5904
ce2cded5
L
5905x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5906s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5907 # Find out which ABI we are using.
5908 echo 'int i;' > conftest.$ac_ext
5909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5910 (eval $ac_compile) 2>&5
5911 ac_status=$?
5912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913 (exit $ac_status); }; then
5914 case `/usr/bin/file conftest.o` in
5915 *32-bit*)
5916 case $host in
5917 x86_64-*kfreebsd*-gnu)
5918 LD="${LD-ld} -m elf_i386_fbsd"
5919 ;;
5920 x86_64-*linux*)
5921 LD="${LD-ld} -m elf_i386"
5922 ;;
5923 ppc64-*linux*|powerpc64-*linux*)
5924 LD="${LD-ld} -m elf32ppclinux"
5925 ;;
5926 s390x-*linux*)
5927 LD="${LD-ld} -m elf_s390"
5928 ;;
5929 sparc64-*linux*)
5930 LD="${LD-ld} -m elf32_sparc"
5931 ;;
5932 esac
5933 ;;
5934 *64-bit*)
5935 case $host in
5936 x86_64-*kfreebsd*-gnu)
5937 LD="${LD-ld} -m elf_x86_64_fbsd"
5938 ;;
5939 x86_64-*linux*)
5940 LD="${LD-ld} -m elf_x86_64"
5941 ;;
5942 ppc*-*linux*|powerpc*-*linux*)
5943 LD="${LD-ld} -m elf64ppc"
5944 ;;
5945 s390*-*linux*|s390*-*tpf*)
5946 LD="${LD-ld} -m elf64_s390"
5947 ;;
5948 sparc*-*linux*)
5949 LD="${LD-ld} -m elf64_sparc"
5950 ;;
5951 esac
5952 ;;
5953 esac
5954 fi
5955 rm -rf conftest*
5956 ;;
d7040cdb 5957
ce2cded5
L
5958*-*-sco3.2v5*)
5959 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5960 SAVE_CFLAGS="$CFLAGS"
5961 CFLAGS="$CFLAGS -belf"
5962 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5963echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5964if test "${lt_cv_cc_needs_belf+set}" = set; then
20e95c23
DJ
5965 echo $ECHO_N "(cached) $ECHO_C" >&6
5966else
ce2cded5
L
5967 ac_ext=c
5968ac_cpp='$CPP $CPPFLAGS'
5969ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5970ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5971ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 5972
ce2cded5
L
5973 cat >conftest.$ac_ext <<_ACEOF
5974/* confdefs.h. */
5975_ACEOF
5976cat confdefs.h >>conftest.$ac_ext
5977cat >>conftest.$ac_ext <<_ACEOF
5978/* end confdefs.h. */
d7040cdb 5979
ce2cded5
L
5980int
5981main ()
5982{
d7040cdb 5983
ce2cded5
L
5984 ;
5985 return 0;
5986}
5987_ACEOF
5988rm -f conftest.$ac_objext conftest$ac_exeext
5989if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5990 (eval $ac_link) 2>conftest.er1
5991 ac_status=$?
5992 grep -v '^ *+' conftest.er1 >conftest.err
5993 rm -f conftest.er1
5994 cat conftest.err >&5
5995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5996 (exit $ac_status); } &&
5997 { ac_try='test -z "$ac_c_werror_flag"
5998 || test ! -s conftest.err'
5999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6000 (eval $ac_try) 2>&5
6001 ac_status=$?
6002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003 (exit $ac_status); }; } &&
6004 { ac_try='test -s conftest$ac_exeext'
6005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6006 (eval $ac_try) 2>&5
6007 ac_status=$?
6008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009 (exit $ac_status); }; }; then
6010 lt_cv_cc_needs_belf=yes
d7040cdb 6011else
ce2cded5
L
6012 echo "$as_me: failed program was:" >&5
6013sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 6014
ce2cded5
L
6015lt_cv_cc_needs_belf=no
6016fi
6017rm -f conftest.err conftest.$ac_objext \
6018 conftest$ac_exeext conftest.$ac_ext
6019 ac_ext=c
6020ac_cpp='$CPP $CPPFLAGS'
6021ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6022ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6023ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 6024
ce2cded5
L
6025fi
6026echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6027echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6028 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6029 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6030 CFLAGS="$SAVE_CFLAGS"
6031 fi
6032 ;;
6033sparc*-*solaris*)
6034 # Find out which ABI we are using.
6035 echo 'int i;' > conftest.$ac_ext
6036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6037 (eval $ac_compile) 2>&5
6038 ac_status=$?
6039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6040 (exit $ac_status); }; then
6041 case `/usr/bin/file conftest.o` in
6042 *64-bit*)
6043 case $lt_cv_prog_gnu_ld in
6044 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6045 *) LD="${LD-ld} -64" ;;
6046 esac
6047 ;;
6048 esac
6049 fi
6050 rm -rf conftest*
6051 ;;
6052esac
d7040cdb 6053
ce2cded5 6054need_locks="$enable_libtool_lock"
d7040cdb 6055
ce2cded5
L
6056ac_ext=c
6057ac_cpp='$CPP $CPPFLAGS'
6058ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6059ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6060ac_compiler_gnu=$ac_cv_c_compiler_gnu
6061echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6062echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6063# On Suns, sometimes $CPP names a directory.
6064if test -n "$CPP" && test -d "$CPP"; then
6065 CPP=
6066fi
6067if test -z "$CPP"; then
6068 if test "${ac_cv_prog_CPP+set}" = set; then
6069 echo $ECHO_N "(cached) $ECHO_C" >&6
6070else
6071 # Double quotes because CPP needs to be expanded
6072 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6073 do
6074 ac_preproc_ok=false
6075for ac_c_preproc_warn_flag in '' yes
6076do
6077 # Use a header file that comes with gcc, so configuring glibc
6078 # with a fresh cross-compiler works.
6079 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6080 # <limits.h> exists even on freestanding compilers.
6081 # On the NeXT, cc -E runs the code through the compiler's parser,
6082 # not just through cpp. "Syntax error" is here to catch this case.
6083 cat >conftest.$ac_ext <<_ACEOF
6084/* confdefs.h. */
6085_ACEOF
6086cat confdefs.h >>conftest.$ac_ext
6087cat >>conftest.$ac_ext <<_ACEOF
6088/* end confdefs.h. */
6089#ifdef __STDC__
6090# include <limits.h>
6091#else
6092# include <assert.h>
6093#endif
6094 Syntax error
6095_ACEOF
6096if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6097 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6098 ac_status=$?
6099 grep -v '^ *+' conftest.er1 >conftest.err
6100 rm -f conftest.er1
6101 cat conftest.err >&5
6102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103 (exit $ac_status); } >/dev/null; then
6104 if test -s conftest.err; then
6105 ac_cpp_err=$ac_c_preproc_warn_flag
6106 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6107 else
6108 ac_cpp_err=
6109 fi
6110else
6111 ac_cpp_err=yes
6112fi
6113if test -z "$ac_cpp_err"; then
6114 :
6115else
6116 echo "$as_me: failed program was:" >&5
6117sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 6118
ce2cded5
L
6119 # Broken: fails on valid input.
6120continue
6121fi
6122rm -f conftest.err conftest.$ac_ext
d7040cdb 6123
ce2cded5
L
6124 # OK, works on sane cases. Now check whether non-existent headers
6125 # can be detected and how.
6126 cat >conftest.$ac_ext <<_ACEOF
6127/* confdefs.h. */
6128_ACEOF
6129cat confdefs.h >>conftest.$ac_ext
6130cat >>conftest.$ac_ext <<_ACEOF
6131/* end confdefs.h. */
6132#include <ac_nonexistent.h>
6133_ACEOF
6134if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6135 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6136 ac_status=$?
6137 grep -v '^ *+' conftest.er1 >conftest.err
6138 rm -f conftest.er1
6139 cat conftest.err >&5
6140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141 (exit $ac_status); } >/dev/null; then
6142 if test -s conftest.err; then
6143 ac_cpp_err=$ac_c_preproc_warn_flag
6144 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6145 else
6146 ac_cpp_err=
6147 fi
6148else
6149 ac_cpp_err=yes
6150fi
6151if test -z "$ac_cpp_err"; then
6152 # Broken: success on invalid input.
6153continue
6154else
6155 echo "$as_me: failed program was:" >&5
6156sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 6157
ce2cded5
L
6158 # Passes both tests.
6159ac_preproc_ok=:
6160break
6161fi
6162rm -f conftest.err conftest.$ac_ext
d7040cdb 6163
ce2cded5
L
6164done
6165# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6166rm -f conftest.err conftest.$ac_ext
6167if $ac_preproc_ok; then
6168 break
6169fi
d7040cdb 6170
ce2cded5
L
6171 done
6172 ac_cv_prog_CPP=$CPP
d7040cdb 6173
ce2cded5
L
6174fi
6175 CPP=$ac_cv_prog_CPP
6176else
6177 ac_cv_prog_CPP=$CPP
6178fi
6179echo "$as_me:$LINENO: result: $CPP" >&5
6180echo "${ECHO_T}$CPP" >&6
6181ac_preproc_ok=false
6182for ac_c_preproc_warn_flag in '' yes
6183do
6184 # Use a header file that comes with gcc, so configuring glibc
6185 # with a fresh cross-compiler works.
6186 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6187 # <limits.h> exists even on freestanding compilers.
6188 # On the NeXT, cc -E runs the code through the compiler's parser,
6189 # not just through cpp. "Syntax error" is here to catch this case.
6190 cat >conftest.$ac_ext <<_ACEOF
6191/* confdefs.h. */
6192_ACEOF
6193cat confdefs.h >>conftest.$ac_ext
6194cat >>conftest.$ac_ext <<_ACEOF
6195/* end confdefs.h. */
6196#ifdef __STDC__
6197# include <limits.h>
6198#else
6199# include <assert.h>
6200#endif
6201 Syntax error
6202_ACEOF
6203if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6204 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6205 ac_status=$?
6206 grep -v '^ *+' conftest.er1 >conftest.err
6207 rm -f conftest.er1
6208 cat conftest.err >&5
6209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210 (exit $ac_status); } >/dev/null; then
6211 if test -s conftest.err; then
6212 ac_cpp_err=$ac_c_preproc_warn_flag
6213 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6214 else
6215 ac_cpp_err=
6216 fi
6217else
6218 ac_cpp_err=yes
6219fi
6220if test -z "$ac_cpp_err"; then
6221 :
6222else
6223 echo "$as_me: failed program was:" >&5
6224sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 6225
ce2cded5
L
6226 # Broken: fails on valid input.
6227continue
6228fi
6229rm -f conftest.err conftest.$ac_ext
d7040cdb 6230
ce2cded5
L
6231 # OK, works on sane cases. Now check whether non-existent headers
6232 # can be detected and how.
6233 cat >conftest.$ac_ext <<_ACEOF
6234/* confdefs.h. */
6235_ACEOF
6236cat confdefs.h >>conftest.$ac_ext
6237cat >>conftest.$ac_ext <<_ACEOF
6238/* end confdefs.h. */
6239#include <ac_nonexistent.h>
6240_ACEOF
6241if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6242 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6243 ac_status=$?
6244 grep -v '^ *+' conftest.er1 >conftest.err
6245 rm -f conftest.er1
6246 cat conftest.err >&5
6247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6248 (exit $ac_status); } >/dev/null; then
6249 if test -s conftest.err; then
6250 ac_cpp_err=$ac_c_preproc_warn_flag
6251 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6252 else
6253 ac_cpp_err=
6254 fi
6255else
6256 ac_cpp_err=yes
6257fi
6258if test -z "$ac_cpp_err"; then
6259 # Broken: success on invalid input.
6260continue
6261else
6262 echo "$as_me: failed program was:" >&5
6263sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 6264
ce2cded5
L
6265 # Passes both tests.
6266ac_preproc_ok=:
6267break
6268fi
6269rm -f conftest.err conftest.$ac_ext
d7040cdb 6270
ce2cded5
L
6271done
6272# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6273rm -f conftest.err conftest.$ac_ext
6274if $ac_preproc_ok; then
6275 :
6276else
6277 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6278See \`config.log' for more details." >&5
6279echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6280See \`config.log' for more details." >&2;}
6281 { (exit 1); exit 1; }; }
6282fi
d7040cdb 6283
ce2cded5
L
6284ac_ext=c
6285ac_cpp='$CPP $CPPFLAGS'
6286ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6287ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6288ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 6289
d7040cdb 6290
ce2cded5
L
6291echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6292echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6293if test "${ac_cv_header_stdc+set}" = set; then
6294 echo $ECHO_N "(cached) $ECHO_C" >&6
6295else
6296 cat >conftest.$ac_ext <<_ACEOF
6297/* confdefs.h. */
6298_ACEOF
6299cat confdefs.h >>conftest.$ac_ext
6300cat >>conftest.$ac_ext <<_ACEOF
6301/* end confdefs.h. */
6302#include <stdlib.h>
6303#include <stdarg.h>
6304#include <string.h>
6305#include <float.h>
d7040cdb 6306
ce2cded5
L
6307int
6308main ()
6309{
d7040cdb 6310
20e95c23
DJ
6311 ;
6312 return 0;
6313}
42ecbf5e 6314_ACEOF
ce2cded5
L
6315rm -f conftest.$ac_objext
6316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6317 (eval $ac_compile) 2>conftest.er1
42ecbf5e
DJ
6318 ac_status=$?
6319 grep -v '^ *+' conftest.er1 >conftest.err
6320 rm -f conftest.er1
6321 cat conftest.err >&5
6322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20e95c23
DJ
6323 (exit $ac_status); } &&
6324 { ac_try='test -z "$ac_c_werror_flag"
6325 || test ! -s conftest.err'
6326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6327 (eval $ac_try) 2>&5
6328 ac_status=$?
6329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6330 (exit $ac_status); }; } &&
ce2cded5 6331 { ac_try='test -s conftest.$ac_objext'
20e95c23
DJ
6332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6333 (eval $ac_try) 2>&5
6334 ac_status=$?
6335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336 (exit $ac_status); }; }; then
ce2cded5 6337 ac_cv_header_stdc=yes
42ecbf5e
DJ
6338else
6339 echo "$as_me: failed program was:" >&5
6340sed 's/^/| /' conftest.$ac_ext >&5
6341
ce2cded5 6342ac_cv_header_stdc=no
42ecbf5e 6343fi
ce2cded5 6344rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d7040cdb 6345
ce2cded5
L
6346if test $ac_cv_header_stdc = yes; then
6347 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6348 cat >conftest.$ac_ext <<_ACEOF
42ecbf5e
DJ
6349/* confdefs.h. */
6350_ACEOF
6351cat confdefs.h >>conftest.$ac_ext
6352cat >>conftest.$ac_ext <<_ACEOF
6353/* end confdefs.h. */
ce2cded5 6354#include <string.h>
20e95c23 6355
42ecbf5e 6356_ACEOF
ce2cded5
L
6357if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6358 $EGREP "memchr" >/dev/null 2>&1; then
6359 :
6360else
6361 ac_cv_header_stdc=no
6362fi
6363rm -f conftest*
d7040cdb 6364
d7040cdb 6365fi
ce2cded5
L
6366
6367if test $ac_cv_header_stdc = yes; then
6368 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6369 cat >conftest.$ac_ext <<_ACEOF
6370/* confdefs.h. */
6371_ACEOF
6372cat confdefs.h >>conftest.$ac_ext
6373cat >>conftest.$ac_ext <<_ACEOF
6374/* end confdefs.h. */
6375#include <stdlib.h>
6376
6377_ACEOF
6378if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6379 $EGREP "free" >/dev/null 2>&1; then
6380 :
252b5132 6381else
ce2cded5
L
6382 ac_cv_header_stdc=no
6383fi
6384rm -f conftest*
42ecbf5e 6385
20e95c23 6386fi
d7040cdb 6387
ce2cded5
L
6388if test $ac_cv_header_stdc = yes; then
6389 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6390 if test "$cross_compiling" = yes; then
6391 :
6392else
6393 cat >conftest.$ac_ext <<_ACEOF
6394/* confdefs.h. */
6395_ACEOF
6396cat confdefs.h >>conftest.$ac_ext
6397cat >>conftest.$ac_ext <<_ACEOF
6398/* end confdefs.h. */
6399#include <ctype.h>
6400#if ((' ' & 0x0FF) == 0x020)
6401# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6402# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6403#else
6404# define ISLOWER(c) \
6405 (('a' <= (c) && (c) <= 'i') \
6406 || ('j' <= (c) && (c) <= 'r') \
6407 || ('s' <= (c) && (c) <= 'z'))
6408# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6409#endif
42ecbf5e 6410
ce2cded5
L
6411#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6412int
6413main ()
6414{
6415 int i;
6416 for (i = 0; i < 256; i++)
6417 if (XOR (islower (i), ISLOWER (i))
6418 || toupper (i) != TOUPPER (i))
6419 exit(2);
6420 exit (0);
6421}
6422_ACEOF
6423rm -f conftest$ac_exeext
6424if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6425 (eval $ac_link) 2>&5
6426 ac_status=$?
6427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6430 (eval $ac_try) 2>&5
6431 ac_status=$?
6432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433 (exit $ac_status); }; }; then
6434 :
6435else
6436 echo "$as_me: program exited with status $ac_status" >&5
6437echo "$as_me: failed program was:" >&5
6438sed 's/^/| /' conftest.$ac_ext >&5
42ecbf5e 6439
ce2cded5
L
6440( exit $ac_status )
6441ac_cv_header_stdc=no
6442fi
6443rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6444fi
6445fi
6446fi
6447echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6448echo "${ECHO_T}$ac_cv_header_stdc" >&6
6449if test $ac_cv_header_stdc = yes; then
e5a52504 6450
ce2cded5
L
6451cat >>confdefs.h <<\_ACEOF
6452#define STDC_HEADERS 1
6453_ACEOF
d7040cdb 6454
ac48eca1 6455fi
e5a52504 6456
ce2cded5 6457# On IRIX 5.3, sys/types and inttypes.h are conflicting.
d7040cdb 6458
d7040cdb 6459
d7040cdb 6460
d7040cdb 6461
d7040cdb 6462
d7040cdb 6463
d7040cdb 6464
d7040cdb 6465
d7040cdb 6466
ce2cded5
L
6467for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6468 inttypes.h stdint.h unistd.h
6469do
6470as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6471echo "$as_me:$LINENO: checking for $ac_header" >&5
6472echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6473if eval "test \"\${$as_ac_Header+set}\" = set"; then
6474 echo $ECHO_N "(cached) $ECHO_C" >&6
6475else
6476 cat >conftest.$ac_ext <<_ACEOF
6477/* confdefs.h. */
6478_ACEOF
6479cat confdefs.h >>conftest.$ac_ext
6480cat >>conftest.$ac_ext <<_ACEOF
6481/* end confdefs.h. */
6482$ac_includes_default
d7040cdb 6483
ce2cded5
L
6484#include <$ac_header>
6485_ACEOF
6486rm -f conftest.$ac_objext
6487if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6488 (eval $ac_compile) 2>conftest.er1
6489 ac_status=$?
6490 grep -v '^ *+' conftest.er1 >conftest.err
6491 rm -f conftest.er1
6492 cat conftest.err >&5
6493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494 (exit $ac_status); } &&
6495 { ac_try='test -z "$ac_c_werror_flag"
6496 || test ! -s conftest.err'
6497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6498 (eval $ac_try) 2>&5
6499 ac_status=$?
6500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501 (exit $ac_status); }; } &&
6502 { ac_try='test -s conftest.$ac_objext'
6503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6504 (eval $ac_try) 2>&5
6505 ac_status=$?
6506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507 (exit $ac_status); }; }; then
6508 eval "$as_ac_Header=yes"
6509else
6510 echo "$as_me: failed program was:" >&5
6511sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 6512
ce2cded5
L
6513eval "$as_ac_Header=no"
6514fi
6515rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6516fi
6517echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6518echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6519if test `eval echo '${'$as_ac_Header'}'` = yes; then
6520 cat >>confdefs.h <<_ACEOF
6521#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6522_ACEOF
d7040cdb 6523
ce2cded5
L
6524fi
6525
6526done
6527
6528
6529
6530for ac_header in dlfcn.h
6531do
6532as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6533echo "$as_me:$LINENO: checking for $ac_header" >&5
6534echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6535if eval "test \"\${$as_ac_Header+set}\" = set"; then
6536 echo $ECHO_N "(cached) $ECHO_C" >&6
6537else
6538 cat >conftest.$ac_ext <<_ACEOF
6539/* confdefs.h. */
42ecbf5e 6540_ACEOF
ce2cded5
L
6541cat confdefs.h >>conftest.$ac_ext
6542cat >>conftest.$ac_ext <<_ACEOF
6543/* end confdefs.h. */
6544$ac_includes_default
6545
6546#include <$ac_header>
6547_ACEOF
6548rm -f conftest.$ac_objext
6549if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6550 (eval $ac_compile) 2>conftest.er1
42ecbf5e
DJ
6551 ac_status=$?
6552 grep -v '^ *+' conftest.er1 >conftest.err
6553 rm -f conftest.er1
6554 cat conftest.err >&5
6555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556 (exit $ac_status); } &&
502bdb00
JW
6557 { ac_try='test -z "$ac_c_werror_flag"
6558 || test ! -s conftest.err'
42ecbf5e
DJ
6559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6560 (eval $ac_try) 2>&5
6561 ac_status=$?
6562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563 (exit $ac_status); }; } &&
ce2cded5 6564 { ac_try='test -s conftest.$ac_objext'
42ecbf5e
DJ
6565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6566 (eval $ac_try) 2>&5
6567 ac_status=$?
6568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569 (exit $ac_status); }; }; then
ce2cded5 6570 eval "$as_ac_Header=yes"
252b5132 6571else
42ecbf5e
DJ
6572 echo "$as_me: failed program was:" >&5
6573sed 's/^/| /' conftest.$ac_ext >&5
6574
ce2cded5 6575eval "$as_ac_Header=no"
252b5132 6576fi
ce2cded5
L
6577rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6578fi
6579echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6580echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6581if test `eval echo '${'$as_ac_Header'}'` = yes; then
6582 cat >>confdefs.h <<_ACEOF
6583#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6584_ACEOF
d7040cdb 6585
ce2cded5 6586fi
d7040cdb 6587
ce2cded5 6588done
d7040cdb 6589
d7040cdb 6590
d7040cdb 6591
ce2cded5
L
6592# This can be used to rebuild libtool when needed
6593LIBTOOL_DEPS="$ltmain"
d7040cdb 6594
ce2cded5
L
6595# Always use our own libtool.
6596LIBTOOL='$(SHELL) $(top_builddir)/libtool'
d7040cdb 6597
d7040cdb 6598
d7040cdb 6599
d7040cdb 6600
d7040cdb 6601
d7040cdb 6602
d7040cdb 6603
d7040cdb 6604
d7040cdb 6605
d7040cdb 6606
d7040cdb 6607
d7040cdb 6608
d7040cdb 6609
d7040cdb 6610
d7040cdb 6611
d7040cdb 6612
d7040cdb
SE
6613
6614
6615
6616
6617
6618
6619
6620
6621
ce2cded5 6622test -z "$LN_S" && LN_S="ln -s"
d7040cdb
SE
6623
6624
6625
6626
6627
6628
d7040cdb
SE
6629
6630
6631
6632
6633
6634
6635
6636
ce2cded5
L
6637if test -n "${ZSH_VERSION+set}" ; then
6638 setopt NO_GLOB_SUBST
6639fi
d7040cdb 6640
ce2cded5
L
6641echo "$as_me:$LINENO: checking for objdir" >&5
6642echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6643if test "${lt_cv_objdir+set}" = set; then
6644 echo $ECHO_N "(cached) $ECHO_C" >&6
6645else
6646 rm -f .libs 2>/dev/null
6647mkdir .libs 2>/dev/null
6648if test -d .libs; then
6649 lt_cv_objdir=.libs
6650else
6651 # MS-DOS does not allow filenames that begin with a dot.
6652 lt_cv_objdir=_libs
6653fi
6654rmdir .libs 2>/dev/null
6655fi
6656echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6657echo "${ECHO_T}$lt_cv_objdir" >&6
6658objdir=$lt_cv_objdir
d7040cdb
SE
6659
6660
6661
6662
6663
ce2cded5
L
6664cat >>confdefs.h <<_ACEOF
6665#define LT_OBJDIR "$lt_cv_objdir/"
6666_ACEOF
d7040cdb
SE
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
ce2cded5
L
6684case $host_os in
6685aix3*)
6686 # AIX sometimes has problems with the GCC collect2 program. For some
6687 # reason, if we set the COLLECT_NAMES environment variable, the problems
6688 # vanish in a puff of smoke.
6689 if test "X${COLLECT_NAMES+set}" != Xset; then
6690 COLLECT_NAMES=
6691 export COLLECT_NAMES
6692 fi
6693 ;;
6694esac
d7040cdb 6695
ce2cded5
L
6696# Sed substitution that helps us do robust quoting. It backslashifies
6697# metacharacters that are still active within double-quoted strings.
6698sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
d7040cdb 6699
ce2cded5
L
6700# Same as above, but do not quote variable references.
6701double_quote_subst='s/\(["`\\]\)/\\\1/g'
d7040cdb 6702
ce2cded5
L
6703# Sed substitution to delay expansion of an escaped shell variable in a
6704# double_quote_subst'ed string.
6705delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
d7040cdb 6706
ce2cded5
L
6707# Sed substitution to delay expansion of an escaped single quote.
6708delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
d7040cdb 6709
ce2cded5
L
6710# Sed substitution to avoid accidental globbing in evaled expressions
6711no_glob_subst='s/\*/\\\*/g'
d7040cdb 6712
ce2cded5
L
6713# Global variables:
6714ofile=libtool
6715can_build_shared=yes
d7040cdb 6716
ce2cded5
L
6717# All known linkers require a `.a' archive for static linking (except MSVC,
6718# which needs '.lib').
6719libext=a
d7040cdb 6720
ce2cded5 6721with_gnu_ld="$lt_cv_prog_gnu_ld"
d7040cdb 6722
ce2cded5
L
6723old_CC="$CC"
6724old_CFLAGS="$CFLAGS"
d7040cdb 6725
ce2cded5
L
6726# Set sane defaults for various variables
6727test -z "$CC" && CC=cc
6728test -z "$LTCC" && LTCC=$CC
6729test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6730test -z "$LD" && LD=ld
6731test -z "$ac_objext" && ac_objext=o
d7040cdb 6732
ce2cded5
L
6733for cc_temp in $compiler""; do
6734 case $cc_temp in
6735 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6736 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6737 \-*) ;;
6738 *) break;;
6739 esac
6740done
6741cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
d7040cdb
SE
6742
6743
ce2cded5
L
6744# Only perform the check for file, if the check method requires it
6745test -z "$MAGIC_CMD" && MAGIC_CMD=file
6746case $deplibs_check_method in
6747file_magic*)
6748 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6749 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6750echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6751if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6752 echo $ECHO_N "(cached) $ECHO_C" >&6
6753else
6754 case $MAGIC_CMD in
6755[\\/*] | ?:[\\/]*)
6756 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6757 ;;
6758*)
6759 lt_save_MAGIC_CMD="$MAGIC_CMD"
6760 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6761 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6762 for ac_dir in $ac_dummy; do
6763 IFS="$lt_save_ifs"
6764 test -z "$ac_dir" && ac_dir=.
6765 if test -f $ac_dir/${ac_tool_prefix}file; then
6766 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6767 if test -n "$file_magic_test_file"; then
6768 case $deplibs_check_method in
6769 "file_magic "*)
6770 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6771 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6772 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6773 $EGREP "$file_magic_regex" > /dev/null; then
6774 :
6775 else
6776 cat <<_LT_EOF 1>&2
d7040cdb 6777
ce2cded5
L
6778*** Warning: the command libtool uses to detect shared libraries,
6779*** $file_magic_cmd, produces output that libtool cannot recognize.
6780*** The result is that libtool may fail to recognize shared libraries
6781*** as such. This will affect the creation of libtool libraries that
6782*** depend on shared libraries, but programs linked with such libtool
6783*** libraries will work regardless of this problem. Nevertheless, you
6784*** may want to report the problem to your system manager and/or to
6785*** bug-libtool@gnu.org
d7040cdb 6786
ce2cded5
L
6787_LT_EOF
6788 fi ;;
6789 esac
6790 fi
6791 break
6792 fi
6793 done
6794 IFS="$lt_save_ifs"
6795 MAGIC_CMD="$lt_save_MAGIC_CMD"
6796 ;;
6797esac
6798fi
d7040cdb 6799
ce2cded5
L
6800MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6801if test -n "$MAGIC_CMD"; then
6802 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6803echo "${ECHO_T}$MAGIC_CMD" >&6
6804else
6805 echo "$as_me:$LINENO: result: no" >&5
6806echo "${ECHO_T}no" >&6
6807fi
d7040cdb
SE
6808
6809
6810
6811
6812
ce2cded5
L
6813if test -z "$lt_cv_path_MAGIC_CMD"; then
6814 if test -n "$ac_tool_prefix"; then
6815 echo "$as_me:$LINENO: checking for file" >&5
6816echo $ECHO_N "checking for file... $ECHO_C" >&6
6817if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6818 echo $ECHO_N "(cached) $ECHO_C" >&6
6819else
6820 case $MAGIC_CMD in
6821[\\/*] | ?:[\\/]*)
6822 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6823 ;;
6824*)
6825 lt_save_MAGIC_CMD="$MAGIC_CMD"
6826 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6827 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6828 for ac_dir in $ac_dummy; do
6829 IFS="$lt_save_ifs"
6830 test -z "$ac_dir" && ac_dir=.
6831 if test -f $ac_dir/file; then
6832 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6833 if test -n "$file_magic_test_file"; then
6834 case $deplibs_check_method in
6835 "file_magic "*)
6836 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6837 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6838 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6839 $EGREP "$file_magic_regex" > /dev/null; then
6840 :
6841 else
6842 cat <<_LT_EOF 1>&2
d7040cdb 6843
ce2cded5
L
6844*** Warning: the command libtool uses to detect shared libraries,
6845*** $file_magic_cmd, produces output that libtool cannot recognize.
6846*** The result is that libtool may fail to recognize shared libraries
6847*** as such. This will affect the creation of libtool libraries that
6848*** depend on shared libraries, but programs linked with such libtool
6849*** libraries will work regardless of this problem. Nevertheless, you
6850*** may want to report the problem to your system manager and/or to
6851*** bug-libtool@gnu.org
d7040cdb 6852
ce2cded5
L
6853_LT_EOF
6854 fi ;;
6855 esac
6856 fi
6857 break
6858 fi
6859 done
6860 IFS="$lt_save_ifs"
6861 MAGIC_CMD="$lt_save_MAGIC_CMD"
6862 ;;
6863esac
6864fi
d7040cdb 6865
ce2cded5
L
6866MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6867if test -n "$MAGIC_CMD"; then
6868 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6869echo "${ECHO_T}$MAGIC_CMD" >&6
6870else
6871 echo "$as_me:$LINENO: result: no" >&5
6872echo "${ECHO_T}no" >&6
6873fi
d7040cdb
SE
6874
6875
ce2cded5
L
6876 else
6877 MAGIC_CMD=:
6878 fi
6879fi
d7040cdb 6880
ce2cded5
L
6881 fi
6882 ;;
6883esac
d7040cdb 6884
ce2cded5 6885# Use C for the default configuration in the libtool script
d7040cdb 6886
ce2cded5
L
6887lt_save_CC="$CC"
6888ac_ext=c
6889ac_cpp='$CPP $CPPFLAGS'
6890ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6891ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6892ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb
SE
6893
6894
ce2cded5
L
6895# Source file extension for C test sources.
6896ac_ext=c
d7040cdb 6897
ce2cded5
L
6898# Object file extension for compiled C test sources.
6899objext=o
6900objext=$objext
d7040cdb 6901
ce2cded5
L
6902# Code to be used in simple compile tests
6903lt_simple_compile_test_code="int some_variable = 0;"
d7040cdb 6904
ce2cded5
L
6905# Code to be used in simple link tests
6906lt_simple_link_test_code='int main(){return(0);}'
d7040cdb
SE
6907
6908
6909
6910
6911
6912
6913
ce2cded5
L
6914# If no C compiler was specified, use CC.
6915LTCC=${LTCC-"$CC"}
d7040cdb 6916
ce2cded5
L
6917# If no C compiler flags were specified, use CFLAGS.
6918LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d7040cdb 6919
ce2cded5
L
6920# Allow CC to be a program name with arguments.
6921compiler=$CC
d7040cdb 6922
ce2cded5
L
6923# Save the default compiler, since it gets overwritten when the other
6924# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6925compiler_DEFAULT=$CC
d7040cdb 6926
ce2cded5
L
6927# save warnings/boilerplate of simple test code
6928ac_outfile=conftest.$ac_objext
6929echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6930eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6931_lt_compiler_boilerplate=`cat conftest.err`
6932$RM conftest*
d7040cdb 6933
ce2cded5
L
6934ac_outfile=conftest.$ac_objext
6935echo "$lt_simple_link_test_code" >conftest.$ac_ext
6936eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6937_lt_linker_boilerplate=`cat conftest.err`
6938$RM conftest*
d7040cdb
SE
6939
6940
ce2cded5
L
6941## CAVEAT EMPTOR:
6942## There is no encapsulation within the following macros, do not change
6943## the running order or otherwise move them around unless you know exactly
6944## what you are doing...
6945if test -n "$compiler"; then
d7040cdb 6946
ce2cded5 6947lt_prog_compiler_no_builtin_flag=
d7040cdb 6948
ce2cded5
L
6949if test "$GCC" = yes; then
6950 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
d7040cdb 6951
ce2cded5
L
6952 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6953echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6954if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6955 echo $ECHO_N "(cached) $ECHO_C" >&6
6956else
6957 lt_cv_prog_compiler_rtti_exceptions=no
6958 ac_outfile=conftest.$ac_objext
6959 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6960 lt_compiler_flag="-fno-rtti -fno-exceptions"
6961 # Insert the option either (1) after the last *FLAGS variable, or
6962 # (2) before a word containing "conftest.", or (3) at the end.
6963 # Note that $ac_compile itself does not contain backslashes and begins
6964 # with a dollar sign (not a hyphen), so the echo should work correctly.
6965 # The option is referenced via a variable to avoid confusing sed.
6966 lt_compile=`echo "$ac_compile" | $SED \
6967 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6968 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6969 -e 's:$: $lt_compiler_flag:'`
7fb9f789 6970 (eval echo "\"\$as_me:6970: $lt_compile\"" >&5)
ce2cded5
L
6971 (eval "$lt_compile" 2>conftest.err)
6972 ac_status=$?
6973 cat conftest.err >&5
7fb9f789 6974 echo "$as_me:6974: \$? = $ac_status" >&5
ce2cded5
L
6975 if (exit $ac_status) && test -s "$ac_outfile"; then
6976 # The compiler can only warn and ignore the option if not recognized
6977 # So say no if there are warnings other than the usual output.
6978 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6979 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6980 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6981 lt_cv_prog_compiler_rtti_exceptions=yes
6982 fi
6983 fi
6984 $RM conftest*
d7040cdb 6985
ce2cded5
L
6986fi
6987echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6988echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
d7040cdb 6989
ce2cded5
L
6990if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6991 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6992else
6993 :
6994fi
d7040cdb 6995
ce2cded5 6996fi
d7040cdb
SE
6997
6998
6999
7000
7001
7002
ce2cded5
L
7003 lt_prog_compiler_wl=
7004lt_prog_compiler_pic=
7005lt_prog_compiler_static=
d7040cdb 7006
ce2cded5
L
7007echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7008echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
d7040cdb 7009
ce2cded5
L
7010 if test "$GCC" = yes; then
7011 lt_prog_compiler_wl='-Wl,'
7012 lt_prog_compiler_static='-static'
d7040cdb 7013
ce2cded5
L
7014 case $host_os in
7015 aix*)
7016 # All AIX code is PIC.
7017 if test "$host_cpu" = ia64; then
7018 # AIX 5 now supports IA64 processor
7019 lt_prog_compiler_static='-Bstatic'
7020 fi
7021 ;;
d7040cdb 7022
ce2cded5
L
7023 amigaos*)
7024 if test "$host_cpu" = m68k; then
7025 # FIXME: we need at least 68020 code to build shared libraries, but
7026 # adding the `-m68020' flag to GCC prevents building anything better,
7027 # like `-m68040'.
7028 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7029 fi
7030 ;;
d7040cdb 7031
ce2cded5
L
7032 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7033 # PIC is the default for these OSes.
7034 ;;
d7040cdb 7035
ce2cded5
L
7036 mingw* | cygwin* | pw32* | os2*)
7037 # This hack is so that the source file can tell whether it is being
7038 # built for inclusion in a dll (and should export symbols for example).
7039 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7040 # (--disable-auto-import) libraries
7041 lt_prog_compiler_pic='-DDLL_EXPORT'
7042 ;;
d7040cdb 7043
ce2cded5
L
7044 darwin* | rhapsody*)
7045 # PIC is the default on this platform
7046 # Common symbols not allowed in MH_DYLIB files
7047 lt_prog_compiler_pic='-fno-common'
7048 ;;
d7040cdb 7049
ce2cded5
L
7050 hpux*)
7051 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7052 # not for PA HP-UX.
7053 case $host_cpu in
7054 hppa*64*|ia64*)
7055 # +Z the default
7056 ;;
7057 *)
7058 lt_prog_compiler_pic='-fPIC'
7059 ;;
7060 esac
7061 ;;
d7040cdb 7062
ce2cded5
L
7063 interix[3-9]*)
7064 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7065 # Instead, we relocate shared libraries at runtime.
7066 ;;
d7040cdb 7067
ce2cded5
L
7068 msdosdjgpp*)
7069 # Just because we use GCC doesn't mean we suddenly get shared libraries
7070 # on systems that don't support them.
7071 lt_prog_compiler_can_build_shared=no
7072 enable_shared=no
7073 ;;
d7040cdb 7074
ce2cded5
L
7075 *nto* | *qnx*)
7076 # QNX uses GNU C++, but need to define -shared option too, otherwise
7077 # it will coredump.
7078 lt_prog_compiler_pic='-fPIC -shared'
7079 ;;
d7040cdb 7080
ce2cded5
L
7081 sysv4*MP*)
7082 if test -d /usr/nec; then
7083 lt_prog_compiler_pic=-Kconform_pic
7084 fi
7085 ;;
d7040cdb 7086
ce2cded5
L
7087 *)
7088 lt_prog_compiler_pic='-fPIC'
7089 ;;
7090 esac
7091 else
7092 # PORTME Check for flag to pass linker flags through the system compiler.
7093 case $host_os in
7094 aix*)
7095 lt_prog_compiler_wl='-Wl,'
7096 if test "$host_cpu" = ia64; then
7097 # AIX 5 now supports IA64 processor
7098 lt_prog_compiler_static='-Bstatic'
7099 else
7100 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7101 fi
7102 ;;
7103 darwin*)
7104 # PIC is the default on this platform
7105 # Common symbols not allowed in MH_DYLIB files
7106 case $cc_basename in
7107 xlc*)
7108 lt_prog_compiler_pic='-qnocommon'
7109 lt_prog_compiler_wl='-Wl,'
7110 ;;
7111 esac
7112 ;;
d7040cdb 7113
ce2cded5
L
7114 mingw* | cygwin* | pw32* | os2*)
7115 # This hack is so that the source file can tell whether it is being
7116 # built for inclusion in a dll (and should export symbols for example).
7117 lt_prog_compiler_pic='-DDLL_EXPORT'
7118 ;;
d7040cdb 7119
ce2cded5
L
7120 hpux9* | hpux10* | hpux11*)
7121 lt_prog_compiler_wl='-Wl,'
7122 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7123 # not for PA HP-UX.
7124 case $host_cpu in
7125 hppa*64*|ia64*)
7126 # +Z the default
7127 ;;
7128 *)
7129 lt_prog_compiler_pic='+Z'
7130 ;;
7131 esac
7132 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7133 lt_prog_compiler_static='${wl}-a ${wl}archive'
7134 ;;
d7040cdb 7135
ce2cded5
L
7136 irix5* | irix6* | nonstopux*)
7137 lt_prog_compiler_wl='-Wl,'
7138 # PIC (with -KPIC) is the default.
7139 lt_prog_compiler_static='-non_shared'
7140 ;;
d7040cdb 7141
ce2cded5
L
7142 linux* | k*bsd*-gnu)
7143 case $cc_basename in
7144 icc* | ecc*)
7145 lt_prog_compiler_wl='-Wl,'
7146 lt_prog_compiler_pic='-KPIC'
7147 lt_prog_compiler_static='-static'
7148 ;;
7149 pgcc* | pgf77* | pgf90* | pgf95*)
7150 # Portland Group compilers (*not* the Pentium gcc compiler,
7151 # which looks to be a dead project)
7152 lt_prog_compiler_wl='-Wl,'
7153 lt_prog_compiler_pic='-fpic'
7154 lt_prog_compiler_static='-Bstatic'
7155 ;;
7156 ccc*)
7157 lt_prog_compiler_wl='-Wl,'
7158 # All Alpha code is PIC.
7159 lt_prog_compiler_static='-non_shared'
7160 ;;
7161 *)
7162 case `$CC -V 2>&1 | sed 5q` in
7163 *Sun\ C*)
7164 # Sun C 5.9
7165 lt_prog_compiler_pic='-KPIC'
7166 lt_prog_compiler_static='-Bstatic'
7167 lt_prog_compiler_wl='-Wl,'
7168 ;;
7169 *Sun\ F*)
7170 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7171 lt_prog_compiler_pic='-KPIC'
7172 lt_prog_compiler_static='-Bstatic'
7173 lt_prog_compiler_wl=''
7174 ;;
7175 esac
7176 ;;
7177 esac
7178 ;;
d7040cdb 7179
ce2cded5
L
7180 newsos6)
7181 lt_prog_compiler_pic='-KPIC'
7182 lt_prog_compiler_static='-Bstatic'
7183 ;;
d7040cdb 7184
ce2cded5
L
7185 *nto* | *qnx*)
7186 # QNX uses GNU C++, but need to define -shared option too, otherwise
7187 # it will coredump.
7188 lt_prog_compiler_pic='-fPIC -shared'
7189 ;;
d7040cdb 7190
ce2cded5
L
7191 osf3* | osf4* | osf5*)
7192 lt_prog_compiler_wl='-Wl,'
7193 # All OSF/1 code is PIC.
7194 lt_prog_compiler_static='-non_shared'
7195 ;;
d7040cdb 7196
ce2cded5
L
7197 rdos*)
7198 lt_prog_compiler_static='-non_shared'
7199 ;;
d7040cdb 7200
ce2cded5
L
7201 solaris*)
7202 lt_prog_compiler_pic='-KPIC'
7203 lt_prog_compiler_static='-Bstatic'
7204 case $cc_basename in
7205 f77* | f90* | f95*)
7206 lt_prog_compiler_wl='-Qoption ld ';;
7207 *)
7208 lt_prog_compiler_wl='-Wl,';;
7209 esac
7210 ;;
d7040cdb 7211
ce2cded5
L
7212 sunos4*)
7213 lt_prog_compiler_wl='-Qoption ld '
7214 lt_prog_compiler_pic='-PIC'
7215 lt_prog_compiler_static='-Bstatic'
7216 ;;
d7040cdb 7217
ce2cded5
L
7218 sysv4 | sysv4.2uw2* | sysv4.3*)
7219 lt_prog_compiler_wl='-Wl,'
7220 lt_prog_compiler_pic='-KPIC'
7221 lt_prog_compiler_static='-Bstatic'
7222 ;;
d7040cdb 7223
ce2cded5
L
7224 sysv4*MP*)
7225 if test -d /usr/nec ;then
7226 lt_prog_compiler_pic='-Kconform_pic'
7227 lt_prog_compiler_static='-Bstatic'
7228 fi
7229 ;;
d7040cdb 7230
ce2cded5
L
7231 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7232 lt_prog_compiler_wl='-Wl,'
7233 lt_prog_compiler_pic='-KPIC'
7234 lt_prog_compiler_static='-Bstatic'
7235 ;;
d7040cdb 7236
ce2cded5
L
7237 unicos*)
7238 lt_prog_compiler_wl='-Wl,'
7239 lt_prog_compiler_can_build_shared=no
7240 ;;
d7040cdb 7241
ce2cded5
L
7242 uts4*)
7243 lt_prog_compiler_pic='-pic'
7244 lt_prog_compiler_static='-Bstatic'
7245 ;;
d7040cdb 7246
ce2cded5
L
7247 *)
7248 lt_prog_compiler_can_build_shared=no
7249 ;;
7250 esac
7251 fi
d7040cdb 7252
ce2cded5
L
7253case $host_os in
7254 # For platforms which do not support PIC, -DPIC is meaningless:
7255 *djgpp*)
7256 lt_prog_compiler_pic=
7257 ;;
7258 *)
7259 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7260 ;;
7261esac
7262echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7263echo "${ECHO_T}$lt_prog_compiler_pic" >&6
d7040cdb
SE
7264
7265
7266
7267
7268
7269
ce2cded5
L
7270#
7271# Check to make sure the PIC flag actually works.
7272#
7273if test -n "$lt_prog_compiler_pic"; then
7274 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7275echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7276if test "${lt_prog_compiler_pic_works+set}" = set; then
7277 echo $ECHO_N "(cached) $ECHO_C" >&6
7278else
7279 lt_prog_compiler_pic_works=no
7280 ac_outfile=conftest.$ac_objext
7281 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7282 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7283 # Insert the option either (1) after the last *FLAGS variable, or
7284 # (2) before a word containing "conftest.", or (3) at the end.
7285 # Note that $ac_compile itself does not contain backslashes and begins
7286 # with a dollar sign (not a hyphen), so the echo should work correctly.
7287 # The option is referenced via a variable to avoid confusing sed.
7288 lt_compile=`echo "$ac_compile" | $SED \
7289 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7290 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7291 -e 's:$: $lt_compiler_flag:'`
7fb9f789 7292 (eval echo "\"\$as_me:7292: $lt_compile\"" >&5)
ce2cded5
L
7293 (eval "$lt_compile" 2>conftest.err)
7294 ac_status=$?
7295 cat conftest.err >&5
7fb9f789 7296 echo "$as_me:7296: \$? = $ac_status" >&5
ce2cded5
L
7297 if (exit $ac_status) && test -s "$ac_outfile"; then
7298 # The compiler can only warn and ignore the option if not recognized
7299 # So say no if there are warnings other than the usual output.
7300 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7301 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7302 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7303 lt_prog_compiler_pic_works=yes
7304 fi
7305 fi
7306 $RM conftest*
d7040cdb 7307
ce2cded5
L
7308fi
7309echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7310echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7311
7312if test x"$lt_prog_compiler_pic_works" = xyes; then
7313 case $lt_prog_compiler_pic in
7314 "" | " "*) ;;
7315 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7316 esac
7317else
7318 lt_prog_compiler_pic=
7319 lt_prog_compiler_can_build_shared=no
7320fi
7321
7322fi
d7040cdb
SE
7323
7324
7325
7326
7327
7328
ce2cded5
L
7329#
7330# Check to make sure the static flag actually works.
7331#
7332wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7333echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7334echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7335if test "${lt_prog_compiler_static_works+set}" = set; then
7336 echo $ECHO_N "(cached) $ECHO_C" >&6
7337else
7338 lt_prog_compiler_static_works=no
7339 save_LDFLAGS="$LDFLAGS"
7340 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7341 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7342 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7343 # The linker can only warn and ignore the option if not recognized
7344 # So say no if there are warnings
7345 if test -s conftest.err; then
7346 # Append any errors to the config.log.
7347 cat conftest.err 1>&5
7348 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7349 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7350 if diff conftest.exp conftest.er2 >/dev/null; then
7351 lt_prog_compiler_static_works=yes
7352 fi
7353 else
7354 lt_prog_compiler_static_works=yes
7355 fi
7356 fi
7357 $RM conftest*
7358 LDFLAGS="$save_LDFLAGS"
d7040cdb 7359
ce2cded5
L
7360fi
7361echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7362echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
d7040cdb 7363
ce2cded5
L
7364if test x"$lt_prog_compiler_static_works" = xyes; then
7365 :
7366else
7367 lt_prog_compiler_static=
7368fi
d7040cdb
SE
7369
7370
7371
7372
7373
7374
7375
ce2cded5
L
7376 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7377echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7378if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7379 echo $ECHO_N "(cached) $ECHO_C" >&6
7380else
7381 lt_cv_prog_compiler_c_o=no
7382 $RM -r conftest 2>/dev/null
7383 mkdir conftest
7384 cd conftest
7385 mkdir out
7386 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 7387
ce2cded5
L
7388 lt_compiler_flag="-o out/conftest2.$ac_objext"
7389 # Insert the option either (1) after the last *FLAGS variable, or
7390 # (2) before a word containing "conftest.", or (3) at the end.
7391 # Note that $ac_compile itself does not contain backslashes and begins
7392 # with a dollar sign (not a hyphen), so the echo should work correctly.
7393 lt_compile=`echo "$ac_compile" | $SED \
7394 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7395 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7396 -e 's:$: $lt_compiler_flag:'`
7fb9f789 7397 (eval echo "\"\$as_me:7397: $lt_compile\"" >&5)
ce2cded5
L
7398 (eval "$lt_compile" 2>out/conftest.err)
7399 ac_status=$?
7400 cat out/conftest.err >&5
7fb9f789 7401 echo "$as_me:7401: \$? = $ac_status" >&5
ce2cded5
L
7402 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7403 then
7404 # The compiler can only warn and ignore the option if not recognized
7405 # So say no if there are warnings
7406 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7407 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7408 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7409 lt_cv_prog_compiler_c_o=yes
7410 fi
7411 fi
7412 chmod u+w . 2>&5
7413 $RM conftest*
7414 # SGI C++ compiler will create directory out/ii_files/ for
7415 # template instantiation
7416 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7417 $RM out/* && rmdir out
7418 cd ..
7419 $RM -r conftest
7420 $RM conftest*
d7040cdb 7421
ce2cded5
L
7422fi
7423echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7424echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
d7040cdb
SE
7425
7426
7427
7428
7429
7430
ce2cded5
L
7431 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7432echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7433if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7434 echo $ECHO_N "(cached) $ECHO_C" >&6
7435else
7436 lt_cv_prog_compiler_c_o=no
7437 $RM -r conftest 2>/dev/null
7438 mkdir conftest
7439 cd conftest
7440 mkdir out
7441 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 7442
ce2cded5
L
7443 lt_compiler_flag="-o out/conftest2.$ac_objext"
7444 # Insert the option either (1) after the last *FLAGS variable, or
7445 # (2) before a word containing "conftest.", or (3) at the end.
7446 # Note that $ac_compile itself does not contain backslashes and begins
7447 # with a dollar sign (not a hyphen), so the echo should work correctly.
7448 lt_compile=`echo "$ac_compile" | $SED \
7449 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7450 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7451 -e 's:$: $lt_compiler_flag:'`
7fb9f789 7452 (eval echo "\"\$as_me:7452: $lt_compile\"" >&5)
ce2cded5
L
7453 (eval "$lt_compile" 2>out/conftest.err)
7454 ac_status=$?
7455 cat out/conftest.err >&5
7fb9f789 7456 echo "$as_me:7456: \$? = $ac_status" >&5
ce2cded5
L
7457 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7458 then
7459 # The compiler can only warn and ignore the option if not recognized
7460 # So say no if there are warnings
7461 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7462 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7463 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7464 lt_cv_prog_compiler_c_o=yes
7465 fi
7466 fi
7467 chmod u+w . 2>&5
7468 $RM conftest*
7469 # SGI C++ compiler will create directory out/ii_files/ for
7470 # template instantiation
7471 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7472 $RM out/* && rmdir out
7473 cd ..
7474 $RM -r conftest
7475 $RM conftest*
7476
7477fi
7478echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7479echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7480
7481
7482
7483
7484hard_links="nottested"
7485if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7486 # do not overwrite the value of need_locks provided by the user
7487 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7488echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7489 hard_links=yes
7490 $RM conftest*
7491 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7492 touch conftest.a
7493 ln conftest.a conftest.b 2>&5 || hard_links=no
7494 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7495 echo "$as_me:$LINENO: result: $hard_links" >&5
7496echo "${ECHO_T}$hard_links" >&6
7497 if test "$hard_links" = no; then
7498 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7499echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7500 need_locks=warn
d7040cdb 7501 fi
d7040cdb 7502else
ce2cded5 7503 need_locks=no
d7040cdb 7504fi
d7040cdb 7505
d7040cdb 7506
d7040cdb 7507
d7040cdb 7508
d7040cdb 7509
d7040cdb 7510
ce2cded5
L
7511 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7512echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
d7040cdb 7513
ce2cded5
L
7514 runpath_var=
7515 allow_undefined_flag=
7516 always_export_symbols=no
7517 archive_cmds=
7518 archive_expsym_cmds=
7519 compiler_needs_object=no
7520 enable_shared_with_static_runtimes=no
7521 export_dynamic_flag_spec=
7522 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7523 hardcode_automatic=no
7524 hardcode_direct=no
7525 hardcode_direct_absolute=no
7526 hardcode_libdir_flag_spec=
7527 hardcode_libdir_flag_spec_ld=
7528 hardcode_libdir_separator=
7529 hardcode_minus_L=no
7530 hardcode_shlibpath_var=unsupported
7531 inherit_rpath=no
7532 link_all_deplibs=unknown
7533 module_cmds=
7534 module_expsym_cmds=
7535 old_archive_from_new_cmds=
7536 old_archive_from_expsyms_cmds=
7537 thread_safe_flag_spec=
7538 whole_archive_flag_spec=
7539 # include_expsyms should be a list of space-separated symbols to be *always*
7540 # included in the symbol list
7541 include_expsyms=
7542 # exclude_expsyms can be an extended regexp of symbols to exclude
7543 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7544 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7545 # as well as any symbol that contains `d'.
7546 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7547 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7548 # platforms (ab)use it in PIC code, but their linkers get confused if
7549 # the symbol is explicitly referenced. Since portable code cannot
7550 # rely on this symbol name, it's probably fine to never include it in
7551 # preloaded symbol tables.
7552 extract_expsyms_cmds=
d7040cdb 7553
ce2cded5
L
7554 case $host_os in
7555 cygwin* | mingw* | pw32*)
7556 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7557 # When not using gcc, we currently assume that we are using
7558 # Microsoft Visual C++.
7559 if test "$GCC" != yes; then
7560 with_gnu_ld=no
7561 fi
d7040cdb 7562 ;;
ce2cded5
L
7563 interix*)
7564 # we just hope/assume this is gcc and not c89 (= MSVC++)
7565 with_gnu_ld=yes
7566 ;;
7567 openbsd*)
7568 with_gnu_ld=no
d7040cdb
SE
7569 ;;
7570 esac
d7040cdb 7571
ce2cded5
L
7572 ld_shlibs=yes
7573 if test "$with_gnu_ld" = yes; then
7574 # If archive_cmds runs LD, not CC, wlarc should be empty
7575 wlarc='${wl}'
d7040cdb 7576
ce2cded5
L
7577 # Set some defaults for GNU ld with shared library support. These
7578 # are reset later if shared libraries are not supported. Putting them
7579 # here allows them to be overridden if necessary.
7580 runpath_var=LD_RUN_PATH
7581 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7582 export_dynamic_flag_spec='${wl}--export-dynamic'
7583 # ancient GNU ld didn't support --whole-archive et. al.
7584 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7585 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7586 else
7587 whole_archive_flag_spec=
7588 fi
7589 supports_anon_versioning=no
7590 case `$LD -v 2>&1` in
7591 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7592 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7593 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7594 *\ 2.11.*) ;; # other 2.11 versions
7595 *) supports_anon_versioning=yes ;;
7596 esac
d7040cdb 7597
ce2cded5
L
7598 # See if GNU ld supports shared libraries.
7599 case $host_os in
50e7d84b 7600 aix[3-9]*)
ce2cded5
L
7601 # On AIX/PPC, the GNU linker is very broken
7602 if test "$host_cpu" != ia64; then
7603 ld_shlibs=no
7604 cat <<_LT_EOF 1>&2
d7040cdb 7605
ce2cded5
L
7606*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7607*** to be unable to reliably create shared libraries on AIX.
7608*** Therefore, libtool is disabling shared libraries support. If you
7609*** really care for shared libraries, you may want to modify your PATH
7610*** so that a non-GNU linker is found, and then restart.
d7040cdb 7611
ce2cded5
L
7612_LT_EOF
7613 fi
d7040cdb 7614 ;;
d7040cdb 7615
ce2cded5
L
7616 amigaos*)
7617 if test "$host_cpu" = m68k; then
7618 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)'
7619 hardcode_libdir_flag_spec='-L$libdir'
7620 hardcode_minus_L=yes
7621 fi
d7040cdb 7622
ce2cded5
L
7623 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7624 # that the semantics of dynamic libraries on AmigaOS, at least up
7625 # to version 4, is to share data among multiple programs linked
7626 # with the same dynamic library. Since this doesn't match the
7627 # behavior of shared libraries on other platforms, we can't use
7628 # them.
7629 ld_shlibs=no
7630 ;;
d7040cdb 7631
ce2cded5
L
7632 beos*)
7633 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7634 allow_undefined_flag=unsupported
7635 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7636 # support --undefined. This deserves some investigation. FIXME
7637 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7638 else
7639 ld_shlibs=no
7640 fi
7641 ;;
d7040cdb 7642
ce2cded5
L
7643 cygwin* | mingw* | pw32*)
7644 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7645 # as there is no search path for DLLs.
7646 hardcode_libdir_flag_spec='-L$libdir'
7647 allow_undefined_flag=unsupported
7648 always_export_symbols=no
7649 enable_shared_with_static_runtimes=yes
7650 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7651
7652 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7653 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7654 # If the export-symbols file already is a .def file (1st line
7655 # is EXPORTS), use it as is; otherwise, prepend...
7656 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7657 cp $export_symbols $output_objdir/$soname.def;
d7040cdb 7658 else
ce2cded5
L
7659 echo EXPORTS > $output_objdir/$soname.def;
7660 cat $export_symbols >> $output_objdir/$soname.def;
7661 fi~
7662 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7663 else
7664 ld_shlibs=no
7665 fi
7666 ;;
d7040cdb 7667
ce2cded5
L
7668 interix[3-9]*)
7669 hardcode_direct=no
7670 hardcode_shlibpath_var=no
7671 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7672 export_dynamic_flag_spec='${wl}-E'
7673 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7674 # Instead, shared libraries are loaded at an image base (0x10000000 by
7675 # default) and relocated if they conflict, which is a slow very memory
7676 # consuming and fragmenting process. To avoid this, we pick a random,
7677 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7678 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7679 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7680 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'
7681 ;;
d7040cdb 7682
ce2cded5
L
7683 gnu* | linux* | tpf* | k*bsd*-gnu)
7684 tmp_diet=no
7685 if test "$host_os" = linux-dietlibc; then
7686 case $cc_basename in
7687 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7688 esac
7689 fi
7690 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7691 && test "$tmp_diet" = no
7692 then
7693 tmp_addflag=
7694 case $cc_basename,$host_cpu in
7695 pgcc*) # Portland Group C compiler
7696 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'
7697 tmp_addflag=' $pic_flag'
7698 ;;
7699 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7700 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'
7701 tmp_addflag=' $pic_flag -Mnomain' ;;
7702 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7703 tmp_addflag=' -i_dynamic' ;;
7704 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7705 tmp_addflag=' -i_dynamic -nofor_main' ;;
7706 ifc* | ifort*) # Intel Fortran compiler
7707 tmp_addflag=' -nofor_main' ;;
7708 esac
7709 case `$CC -V 2>&1 | sed 5q` in
7710 *Sun\ C*) # Sun C 5.9
7711 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'
7712 compiler_needs_object=yes
7713 tmp_sharedflag='-G' ;;
7714 *Sun\ F*) # Sun Fortran 8.3
7715 tmp_sharedflag='-G' ;;
7716 *)
7717 tmp_sharedflag='-shared' ;;
7718 esac
7719 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d7040cdb 7720
ce2cded5
L
7721 if test "x$supports_anon_versioning" = xyes; then
7722 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7723 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7724 echo "local: *; };" >> $output_objdir/$libname.ver~
7725 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7726 fi
7727 else
7728 ld_shlibs=no
7729 fi
7730 ;;
d7040cdb 7731
ce2cded5
L
7732 netbsd*)
7733 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7734 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7735 wlarc=
7736 else
7737 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7738 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7739 fi
7740 ;;
7741
7742 solaris*)
7743 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7744 ld_shlibs=no
7745 cat <<_LT_EOF 1>&2
7746
7747*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7748*** create shared libraries on Solaris systems. Therefore, libtool
7749*** is disabling shared libraries support. We urge you to upgrade GNU
7750*** binutils to release 2.9.1 or newer. Another option is to modify
7751*** your PATH or compiler configuration so that the native linker is
7752*** used, and then restart.
7753
7754_LT_EOF
7755 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7756 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7757 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7758 else
7759 ld_shlibs=no
7760 fi
7761 ;;
7762
7763 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7764 case `$LD -v 2>&1` in
7765 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7766 ld_shlibs=no
7767 cat <<_LT_EOF 1>&2
7768
7769*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7770*** reliably create shared libraries on SCO systems. Therefore, libtool
7771*** is disabling shared libraries support. We urge you to upgrade GNU
7772*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7773*** your PATH or compiler configuration so that the native linker is
7774*** used, and then restart.
7775
7776_LT_EOF
7777 ;;
7778 *)
7779 # For security reasons, it is highly recommended that you always
7780 # use absolute paths for naming shared libraries, and exclude the
7781 # DT_RUNPATH tag from executables and libraries. But doing so
7782 # requires that you compile everything twice, which is a pain.
7783 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7784 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7785 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7786 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7787 else
7788 ld_shlibs=no
7789 fi
7790 ;;
7791 esac
7792 ;;
7793
7794 sunos4*)
7795 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7796 wlarc=
7797 hardcode_direct=yes
7798 hardcode_shlibpath_var=no
7799 ;;
7800
7801 *)
7802 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7803 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7804 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7805 else
7806 ld_shlibs=no
7807 fi
7808 ;;
7809 esac
7810
7811 if test "$ld_shlibs" = no; then
7812 runpath_var=
7813 hardcode_libdir_flag_spec=
7814 export_dynamic_flag_spec=
7815 whole_archive_flag_spec=
7816 fi
7817 else
7818 # PORTME fill in a description of your system's linker (not GNU ld)
7819 case $host_os in
7820 aix3*)
7821 allow_undefined_flag=unsupported
7822 always_export_symbols=yes
7823 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'
7824 # Note: this linker hardcodes the directories in LIBPATH if there
7825 # are no directories specified by -L.
7826 hardcode_minus_L=yes
7827 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7828 # Neither direct hardcoding nor static linking is supported with a
7829 # broken collect2.
7830 hardcode_direct=unsupported
7831 fi
7832 ;;
7833
50e7d84b 7834 aix[4-9]*)
ce2cded5
L
7835 if test "$host_cpu" = ia64; then
7836 # On IA64, the linker does run time linking by default, so we don't
7837 # have to do anything special.
7838 aix_use_runtimelinking=no
7839 exp_sym_flag='-Bexport'
7840 no_entry_flag=""
7841 else
7842 # If we're using GNU nm, then we don't want the "-C" option.
7843 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7844 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7845 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'
7846 else
7847 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'
7848 fi
7849 aix_use_runtimelinking=no
7850
7851 # Test if we are trying to use run time linking or normal
7852 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7853 # need to do runtime linking.
50e7d84b 7854 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
ce2cded5
L
7855 for ld_flag in $LDFLAGS; do
7856 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7857 aix_use_runtimelinking=yes
7858 break
7859 fi
7860 done
7861 ;;
7862 esac
7863
7864 exp_sym_flag='-bexport'
7865 no_entry_flag='-bnoentry'
7866 fi
7867
7868 # When large executables or shared objects are built, AIX ld can
7869 # have problems creating the table of contents. If linking a library
7870 # or program results in "error TOC overflow" add -mminimal-toc to
7871 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7872 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7873
7874 archive_cmds=''
7875 hardcode_direct=yes
7876 hardcode_direct_absolute=yes
7877 hardcode_libdir_separator=':'
7878 link_all_deplibs=yes
7879 file_list_spec='${wl}-f,'
7880
7881 if test "$GCC" = yes; then
7882 case $host_os in aix4.[012]|aix4.[012].*)
7883 # We only want to do this on AIX 4.2 and lower, the check
7884 # below for broken collect2 doesn't work under 4.3+
7885 collect2name=`${CC} -print-prog-name=collect2`
7886 if test -f "$collect2name" &&
7887 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7888 then
7889 # We have reworked collect2
7890 :
7891 else
7892 # We have old collect2
7893 hardcode_direct=unsupported
7894 # It fails to find uninstalled libraries when the uninstalled
7895 # path is not listed in the libpath. Setting hardcode_minus_L
7896 # to unsupported forces relinking
7897 hardcode_minus_L=yes
7898 hardcode_libdir_flag_spec='-L$libdir'
7899 hardcode_libdir_separator=
7900 fi
7901 ;;
7902 esac
7903 shared_flag='-shared'
7904 if test "$aix_use_runtimelinking" = yes; then
7905 shared_flag="$shared_flag "'${wl}-G'
7906 fi
7907 else
7908 # not using gcc
7909 if test "$host_cpu" = ia64; then
7910 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7911 # chokes on -Wl,-G. The following line is correct:
7912 shared_flag='-G'
7913 else
7914 if test "$aix_use_runtimelinking" = yes; then
7915 shared_flag='${wl}-G'
7916 else
7917 shared_flag='${wl}-bM:SRE'
7918 fi
7919 fi
7920 fi
7921
7922 # It seems that -bexpall does not export symbols beginning with
7923 # underscore (_), so it is better to generate a list of symbols to export.
7924 always_export_symbols=yes
7925 if test "$aix_use_runtimelinking" = yes; then
7926 # Warning - without using the other runtime loading flags (-brtl),
7927 # -berok will link without error, but may produce a broken library.
7928 allow_undefined_flag='-berok'
7929 # Determine the default libpath from the value encoded in an
7930 # empty executable.
7931 cat >conftest.$ac_ext <<_ACEOF
7932/* confdefs.h. */
7933_ACEOF
7934cat confdefs.h >>conftest.$ac_ext
7935cat >>conftest.$ac_ext <<_ACEOF
7936/* end confdefs.h. */
7937
7938int
7939main ()
7940{
7941
7942 ;
7943 return 0;
7944}
7945_ACEOF
7946rm -f conftest.$ac_objext conftest$ac_exeext
d7040cdb
SE
7947if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7948 (eval $ac_link) 2>conftest.er1
7949 ac_status=$?
7950 grep -v '^ *+' conftest.er1 >conftest.err
7951 rm -f conftest.er1
7952 cat conftest.err >&5
7953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954 (exit $ac_status); } &&
7955 { ac_try='test -z "$ac_c_werror_flag"
7956 || test ! -s conftest.err'
7957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7958 (eval $ac_try) 2>&5
7959 ac_status=$?
7960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961 (exit $ac_status); }; } &&
7962 { ac_try='test -s conftest$ac_exeext'
7963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7964 (eval $ac_try) 2>&5
7965 ac_status=$?
7966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967 (exit $ac_status); }; }; then
d7040cdb 7968
ce2cded5
L
7969lt_aix_libpath_sed='
7970 /Import File Strings/,/^$/ {
7971 /^0/ {
7972 s/^0 *\(.*\)$/\1/
7973 p
7974 }
7975 }'
7976aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7977# Check for a 64-bit object if we didn't find anything.
7978if test -z "$aix_libpath"; then
7979 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7980fi
d7040cdb
SE
7981else
7982 echo "$as_me: failed program was:" >&5
7983sed 's/^/| /' conftest.$ac_ext >&5
7984
7985fi
7986rm -f conftest.err conftest.$ac_objext \
7987 conftest$ac_exeext conftest.$ac_ext
ce2cded5 7988if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 7989
ce2cded5
L
7990 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7991 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"
7992 else
7993 if test "$host_cpu" = ia64; then
7994 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7995 allow_undefined_flag="-z nodefs"
7996 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"
7997 else
7998 # Determine the default libpath from the value encoded in an
7999 # empty executable.
8000 cat >conftest.$ac_ext <<_ACEOF
8001/* confdefs.h. */
8002_ACEOF
8003cat confdefs.h >>conftest.$ac_ext
8004cat >>conftest.$ac_ext <<_ACEOF
8005/* end confdefs.h. */
d7040cdb 8006
ce2cded5
L
8007int
8008main ()
8009{
d7040cdb 8010
ce2cded5
L
8011 ;
8012 return 0;
8013}
8014_ACEOF
8015rm -f conftest.$ac_objext conftest$ac_exeext
8016if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8017 (eval $ac_link) 2>conftest.er1
8018 ac_status=$?
8019 grep -v '^ *+' conftest.er1 >conftest.err
8020 rm -f conftest.er1
8021 cat conftest.err >&5
8022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8023 (exit $ac_status); } &&
8024 { ac_try='test -z "$ac_c_werror_flag"
8025 || test ! -s conftest.err'
8026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8027 (eval $ac_try) 2>&5
8028 ac_status=$?
8029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8030 (exit $ac_status); }; } &&
8031 { ac_try='test -s conftest$ac_exeext'
8032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8033 (eval $ac_try) 2>&5
8034 ac_status=$?
8035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036 (exit $ac_status); }; }; then
d7040cdb 8037
ce2cded5
L
8038lt_aix_libpath_sed='
8039 /Import File Strings/,/^$/ {
8040 /^0/ {
8041 s/^0 *\(.*\)$/\1/
8042 p
8043 }
8044 }'
8045aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8046# Check for a 64-bit object if we didn't find anything.
8047if test -z "$aix_libpath"; then
8048 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8049fi
8050else
8051 echo "$as_me: failed program was:" >&5
8052sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 8053
ce2cded5
L
8054fi
8055rm -f conftest.err conftest.$ac_objext \
8056 conftest$ac_exeext conftest.$ac_ext
8057if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 8058
ce2cded5
L
8059 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8060 # Warning - without using the other run time loading flags,
8061 # -berok will link without error, but may produce a broken library.
8062 no_undefined_flag=' ${wl}-bernotok'
8063 allow_undefined_flag=' ${wl}-berok'
8064 # Exported symbols can be pulled into shared objects from archives
8065 whole_archive_flag_spec='$convenience'
8066 archive_cmds_need_lc=yes
8067 # This is similar to how AIX traditionally builds its shared libraries.
8068 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'
8069 fi
8070 fi
8071 ;;
d7040cdb 8072
ce2cded5
L
8073 amigaos*)
8074 if test "$host_cpu" = m68k; then
8075 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)'
8076 hardcode_libdir_flag_spec='-L$libdir'
8077 hardcode_minus_L=yes
8078 fi
8079 # see comment about different semantics on the GNU ld section
8080 ld_shlibs=no
8081 ;;
8082
8083 bsdi[45]*)
8084 export_dynamic_flag_spec=-rdynamic
8085 ;;
8086
8087 cygwin* | mingw* | pw32*)
8088 # When not using gcc, we currently assume that we are using
8089 # Microsoft Visual C++.
8090 # hardcode_libdir_flag_spec is actually meaningless, as there is
8091 # no search path for DLLs.
8092 hardcode_libdir_flag_spec=' '
8093 allow_undefined_flag=unsupported
8094 # Tell ltmain to make .lib files, not .a files.
8095 libext=lib
8096 # Tell ltmain to make .dll files, not .so files.
8097 shrext_cmds=".dll"
8098 # FIXME: Setting linknames here is a bad hack.
8099 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8100 # The linker will automatically build a .lib file if we build a DLL.
8101 old_archive_from_new_cmds='true'
8102 # FIXME: Should let the user specify the lib program.
8103 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8104 fix_srcfile_path='`cygpath -w "$srcfile"`'
8105 enable_shared_with_static_runtimes=yes
8106 ;;
8107
8108 darwin* | rhapsody*)
8109 case $host_os in
8110 rhapsody* | darwin1.[012])
8111 allow_undefined_flag='${wl}-undefined ${wl}suppress'
d7040cdb 8112 ;;
ce2cded5
L
8113 *) # Darwin 1.3 on
8114 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
8115 10.[012])
8116 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8117 ;;
8118 10.*)
8119 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8120 ;;
8121 esac
d7040cdb
SE
8122 ;;
8123 esac
ce2cded5
L
8124 archive_cmds_need_lc=no
8125 hardcode_direct=no
8126 hardcode_automatic=yes
8127 hardcode_shlibpath_var=unsupported
8128 whole_archive_flag_spec=''
8129 link_all_deplibs=yes
8130 if test "$GCC" = yes ; then
8131 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8132 echo $ECHO_N "(cached) $ECHO_C" >&6
8133else
8134 lt_cv_apple_cc_single_mod=no
8135 if test -z "${LT_MULTI_MODULE}"; then
8136 # By default we will add the -single_module flag. You can override
8137 # by either setting the environment variable LT_MULTI_MODULE
8138 # non-empty at configure time, or by adding -multi-module to the
8139 # link flags.
8140 echo "int foo(void){return 1;}" > conftest.c
8141 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8142 -dynamiclib ${wl}-single_module conftest.c
8143 if test -f libconftest.dylib; then
8144 lt_cv_apple_cc_single_mod=yes
8145 rm libconftest.dylib
8146 fi
8147 rm conftest.$ac_ext
8148 fi
8149fi
d7040cdb 8150
ce2cded5
L
8151 output_verbose_link_cmd=echo
8152 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
8153 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8154 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}'
8155 else
8156 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8157 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}'
8158 fi
8159 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8160 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}'
8161 else
8162 case $cc_basename in
8163 xlc*)
8164 output_verbose_link_cmd=echo
8165 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
8166 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8167 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8168 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}'
8169 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}'
8170 ;;
8171 *)
8172 ld_shlibs=no
8173 ;;
8174 esac
8175 fi
8176 ;;
d7040cdb 8177
ce2cded5
L
8178 dgux*)
8179 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8180 hardcode_libdir_flag_spec='-L$libdir'
8181 hardcode_shlibpath_var=no
8182 ;;
d7040cdb 8183
ce2cded5
L
8184 freebsd1*)
8185 ld_shlibs=no
8186 ;;
d7040cdb 8187
ce2cded5
L
8188 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8189 # support. Future versions do this automatically, but an explicit c++rt0.o
8190 # does not break anything, and helps significantly (at the cost of a little
8191 # extra space).
8192 freebsd2.2*)
8193 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8194 hardcode_libdir_flag_spec='-R$libdir'
8195 hardcode_direct=yes
8196 hardcode_shlibpath_var=no
d7040cdb 8197 ;;
d7040cdb 8198
ce2cded5
L
8199 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8200 freebsd2*)
8201 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8202 hardcode_direct=yes
8203 hardcode_minus_L=yes
8204 hardcode_shlibpath_var=no
8205 ;;
d7040cdb 8206
ce2cded5
L
8207 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8208 freebsd* | dragonfly*)
8209 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8210 hardcode_libdir_flag_spec='-R$libdir'
8211 hardcode_direct=yes
8212 hardcode_shlibpath_var=no
8213 ;;
d7040cdb 8214
ce2cded5
L
8215 hpux9*)
8216 if test "$GCC" = yes; then
8217 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'
8218 else
8219 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'
8220 fi
8221 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8222 hardcode_libdir_separator=:
8223 hardcode_direct=yes
d7040cdb 8224
ce2cded5
L
8225 # hardcode_minus_L: Not really in the search PATH,
8226 # but as the default location of the library.
8227 hardcode_minus_L=yes
8228 export_dynamic_flag_spec='${wl}-E'
8229 ;;
d7040cdb 8230
ce2cded5
L
8231 hpux10*)
8232 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8233 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8234 else
8235 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8236 fi
8237 if test "$with_gnu_ld" = no; then
8238 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8239 hardcode_libdir_flag_spec_ld='+b $libdir'
8240 hardcode_libdir_separator=:
8241 hardcode_direct=yes
8242 hardcode_direct_absolute=yes
8243 export_dynamic_flag_spec='${wl}-E'
8244 # hardcode_minus_L: Not really in the search PATH,
8245 # but as the default location of the library.
8246 hardcode_minus_L=yes
8247 fi
8248 ;;
d7040cdb 8249
ce2cded5
L
8250 hpux11*)
8251 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8252 case $host_cpu in
8253 hppa*64*)
8254 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8255 ;;
8256 ia64*)
8257 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8258 ;;
8259 *)
8260 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8261 ;;
8262 esac
8263 else
8264 case $host_cpu in
8265 hppa*64*)
8266 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8267 ;;
8268 ia64*)
8269 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8270 ;;
8271 *)
8272 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8273 ;;
8274 esac
8275 fi
8276 if test "$with_gnu_ld" = no; then
8277 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8278 hardcode_libdir_separator=:
d7040cdb 8279
ce2cded5
L
8280 case $host_cpu in
8281 hppa*64*|ia64*)
8282 hardcode_direct=no
8283 hardcode_shlibpath_var=no
8284 ;;
8285 *)
8286 hardcode_direct=yes
8287 hardcode_direct_absolute=yes
8288 export_dynamic_flag_spec='${wl}-E'
d7040cdb 8289
ce2cded5
L
8290 # hardcode_minus_L: Not really in the search PATH,
8291 # but as the default location of the library.
8292 hardcode_minus_L=yes
8293 ;;
8294 esac
8295 fi
8296 ;;
d7040cdb 8297
ce2cded5
L
8298 irix5* | irix6* | nonstopux*)
8299 if test "$GCC" = yes; then
8300 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'
8301 # Try to use the -exported_symbol ld option, if it does not
8302 # work, assume that -exports_file does not work either and
8303 # implicitly export all symbols.
8304 save_LDFLAGS="$LDFLAGS"
8305 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8306 cat >conftest.$ac_ext <<_ACEOF
8307int foo(void) {}
8308_ACEOF
8309rm -f conftest.$ac_objext conftest$ac_exeext
8310if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8311 (eval $ac_link) 2>conftest.er1
8312 ac_status=$?
8313 grep -v '^ *+' conftest.er1 >conftest.err
8314 rm -f conftest.er1
8315 cat conftest.err >&5
8316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317 (exit $ac_status); } &&
8318 { ac_try='test -z "$ac_c_werror_flag"
8319 || test ! -s conftest.err'
8320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8321 (eval $ac_try) 2>&5
8322 ac_status=$?
8323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324 (exit $ac_status); }; } &&
8325 { ac_try='test -s conftest$ac_exeext'
8326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8327 (eval $ac_try) 2>&5
8328 ac_status=$?
8329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8330 (exit $ac_status); }; }; then
8331 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'
d7040cdb 8332
ce2cded5
L
8333else
8334 echo "$as_me: failed program was:" >&5
8335sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 8336
ce2cded5
L
8337fi
8338rm -f conftest.err conftest.$ac_objext \
8339 conftest$ac_exeext conftest.$ac_ext
8340 LDFLAGS="$save_LDFLAGS"
8341 else
8342 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'
8343 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'
8344 fi
8345 archive_cmds_need_lc='no'
8346 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8347 hardcode_libdir_separator=:
8348 inherit_rpath=yes
8349 link_all_deplibs=yes
8350 ;;
d7040cdb 8351
ce2cded5
L
8352 netbsd*)
8353 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8354 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8355 else
8356 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8357 fi
8358 hardcode_libdir_flag_spec='-R$libdir'
8359 hardcode_direct=yes
8360 hardcode_shlibpath_var=no
8361 ;;
d7040cdb 8362
ce2cded5
L
8363 newsos6)
8364 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8365 hardcode_direct=yes
8366 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8367 hardcode_libdir_separator=:
8368 hardcode_shlibpath_var=no
8369 ;;
d7040cdb 8370
ce2cded5
L
8371 *nto* | *qnx*)
8372 ;;
d7040cdb 8373
ce2cded5
L
8374 openbsd*)
8375 hardcode_direct=yes
8376 hardcode_shlibpath_var=no
8377 hardcode_direct_absolute=yes
8378 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8379 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8380 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8381 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8382 export_dynamic_flag_spec='${wl}-E'
8383 else
8384 case $host_os in
8385 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8386 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8387 hardcode_libdir_flag_spec='-R$libdir'
8388 ;;
8389 *)
8390 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8391 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8392 ;;
8393 esac
8394 fi
8395 ;;
d7040cdb 8396
ce2cded5
L
8397 os2*)
8398 hardcode_libdir_flag_spec='-L$libdir'
8399 hardcode_minus_L=yes
8400 allow_undefined_flag=unsupported
8401 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'
8402 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8403 ;;
d7040cdb 8404
ce2cded5
L
8405 osf3*)
8406 if test "$GCC" = yes; then
8407 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8408 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'
8409 else
8410 allow_undefined_flag=' -expect_unresolved \*'
8411 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'
8412 fi
8413 archive_cmds_need_lc='no'
8414 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8415 hardcode_libdir_separator=:
8416 ;;
d7040cdb 8417
ce2cded5
L
8418 osf4* | osf5*) # as osf3* with the addition of -msym flag
8419 if test "$GCC" = yes; then
8420 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8421 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'
8422 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8423 else
8424 allow_undefined_flag=' -expect_unresolved \*'
8425 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'
8426 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~
8427 $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'
d7040cdb 8428
ce2cded5
L
8429 # Both c and cxx compiler support -rpath directly
8430 hardcode_libdir_flag_spec='-rpath $libdir'
8431 fi
8432 archive_cmds_need_lc='no'
8433 hardcode_libdir_separator=:
8434 ;;
d7040cdb 8435
ce2cded5
L
8436 solaris*)
8437 no_undefined_flag=' -z defs'
8438 if test "$GCC" = yes; then
8439 wlarc='${wl}'
8440 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8441 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8442 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8443 else
8444 case `$CC -V 2>&1` in
8445 *"Compilers 5.0"*)
8446 wlarc=''
8447 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8448 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8449 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8450 ;;
8451 *)
8452 wlarc='${wl}'
8453 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8454 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8455 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8456 ;;
8457 esac
8458 fi
8459 hardcode_libdir_flag_spec='-R$libdir'
8460 hardcode_shlibpath_var=no
8461 case $host_os in
8462 solaris2.[0-5] | solaris2.[0-5].*) ;;
8463 *)
8464 # The compiler driver will combine and reorder linker options,
8465 # but understands `-z linker_flag'. GCC discards it without `$wl',
8466 # but is careful enough not to reorder.
8467 # Supported since Solaris 2.6 (maybe 2.5.1?)
8468 if test "$GCC" = yes; then
8469 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8470 else
8471 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8472 fi
8473 ;;
8474 esac
8475 link_all_deplibs=yes
8476 ;;
d7040cdb 8477
ce2cded5
L
8478 sunos4*)
8479 if test "x$host_vendor" = xsequent; then
8480 # Use $CC to link under sequent, because it throws in some extra .o
8481 # files that make .init and .fini sections work.
8482 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8483 else
8484 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8485 fi
8486 hardcode_libdir_flag_spec='-L$libdir'
8487 hardcode_direct=yes
8488 hardcode_minus_L=yes
8489 hardcode_shlibpath_var=no
8490 ;;
d7040cdb 8491
ce2cded5
L
8492 sysv4)
8493 case $host_vendor in
8494 sni)
8495 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8496 hardcode_direct=yes # is this really true???
8497 ;;
8498 siemens)
8499 ## LD is ld it makes a PLAMLIB
8500 ## CC just makes a GrossModule.
8501 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8502 reload_cmds='$CC -r -o $output$reload_objs'
8503 hardcode_direct=no
8504 ;;
8505 motorola)
8506 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8507 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8508 ;;
8509 esac
8510 runpath_var='LD_RUN_PATH'
8511 hardcode_shlibpath_var=no
8512 ;;
d7040cdb 8513
ce2cded5
L
8514 sysv4.3*)
8515 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8516 hardcode_shlibpath_var=no
8517 export_dynamic_flag_spec='-Bexport'
8518 ;;
d7040cdb 8519
ce2cded5
L
8520 sysv4*MP*)
8521 if test -d /usr/nec; then
8522 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8523 hardcode_shlibpath_var=no
8524 runpath_var=LD_RUN_PATH
8525 hardcode_runpath_var=yes
8526 ld_shlibs=yes
8527 fi
8528 ;;
d7040cdb 8529
ce2cded5
L
8530 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8531 no_undefined_flag='${wl}-z,text'
8532 archive_cmds_need_lc=no
8533 hardcode_shlibpath_var=no
8534 runpath_var='LD_RUN_PATH'
d7040cdb 8535
ce2cded5
L
8536 if test "$GCC" = yes; then
8537 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8538 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8539 else
8540 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8541 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8542 fi
8543 ;;
d7040cdb 8544
ce2cded5
L
8545 sysv5* | sco3.2v5* | sco5v6*)
8546 # Note: We can NOT use -z defs as we might desire, because we do not
8547 # link with -lc, and that would cause any symbols used from libc to
8548 # always be unresolved, which means just about no library would
8549 # ever link correctly. If we're not using GNU ld we use -z text
8550 # though, which does catch some bad symbols but isn't as heavy-handed
8551 # as -z defs.
8552 no_undefined_flag='${wl}-z,text'
8553 allow_undefined_flag='${wl}-z,nodefs'
8554 archive_cmds_need_lc=no
8555 hardcode_shlibpath_var=no
8556 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8557 hardcode_libdir_separator=':'
8558 link_all_deplibs=yes
8559 export_dynamic_flag_spec='${wl}-Bexport'
8560 runpath_var='LD_RUN_PATH'
d7040cdb 8561
ce2cded5
L
8562 if test "$GCC" = yes; then
8563 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8564 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8565 else
8566 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8567 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8568 fi
8569 ;;
d7040cdb 8570
ce2cded5
L
8571 uts4*)
8572 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8573 hardcode_libdir_flag_spec='-L$libdir'
8574 hardcode_shlibpath_var=no
8575 ;;
d7040cdb 8576
ce2cded5
L
8577 *)
8578 ld_shlibs=no
8579 ;;
8580 esac
d7040cdb 8581
ce2cded5
L
8582 if test x$host_vendor = xsni; then
8583 case $host in
8584 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8585 export_dynamic_flag_spec='${wl}-Blargedynsym'
8586 ;;
8587 esac
8588 fi
8589 fi
d7040cdb 8590
ce2cded5
L
8591echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8592echo "${ECHO_T}$ld_shlibs" >&6
8593test "$ld_shlibs" = no && can_build_shared=no
d7040cdb 8594
ce2cded5 8595with_gnu_ld=$with_gnu_ld
d7040cdb
SE
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
ce2cded5
L
8611#
8612# Do we need to explicitly link libc?
8613#
8614case "x$archive_cmds_need_lc" in
8615x|xyes)
8616 # Assume -lc should be added
8617 archive_cmds_need_lc=yes
d7040cdb 8618
ce2cded5
L
8619 if test "$enable_shared" = yes && test "$GCC" = yes; then
8620 case $archive_cmds in
8621 *'~'*)
8622 # FIXME: we may have to deal with multi-command sequences.
8623 ;;
8624 '$CC '*)
8625 # Test whether the compiler implicitly links with -lc since on some
8626 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8627 # to ld, don't add -lc before -lgcc.
8628 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8629echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8630 $RM conftest*
8631 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 8632
ce2cded5
L
8633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8634 (eval $ac_compile) 2>&5
8635 ac_status=$?
8636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637 (exit $ac_status); } 2>conftest.err; then
8638 soname=conftest
8639 lib=conftest
8640 libobjs=conftest.$ac_objext
8641 deplibs=
8642 wl=$lt_prog_compiler_wl
8643 pic_flag=$lt_prog_compiler_pic
8644 compiler_flags=-v
8645 linker_flags=-v
8646 verstring=
8647 output_objdir=.
8648 libname=conftest
8649 lt_save_allow_undefined_flag=$allow_undefined_flag
8650 allow_undefined_flag=
8651 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8652 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8653 ac_status=$?
8654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655 (exit $ac_status); }
8656 then
8657 archive_cmds_need_lc=no
8658 else
8659 archive_cmds_need_lc=yes
8660 fi
8661 allow_undefined_flag=$lt_save_allow_undefined_flag
8662 else
8663 cat conftest.err 1>&5
8664 fi
8665 $RM conftest*
8666 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8667echo "${ECHO_T}$archive_cmds_need_lc" >&6
8668 ;;
8669 esac
8670 fi
8671 ;;
8672esac
d7040cdb
SE
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
d7040cdb 8700
d7040cdb 8701
d7040cdb
SE
8702
8703
8704
8705
8706
8707
d7040cdb 8708
d7040cdb 8709
d7040cdb 8710
d7040cdb 8711
d7040cdb 8712
d7040cdb 8713
d7040cdb 8714
d7040cdb 8715
d7040cdb 8716
d7040cdb 8717
d7040cdb 8718
d7040cdb 8719
d7040cdb 8720
d7040cdb 8721
d7040cdb 8722
d7040cdb 8723
d7040cdb 8724
d7040cdb 8725
d7040cdb 8726
d7040cdb 8727
d7040cdb 8728
d7040cdb 8729
d7040cdb 8730
d7040cdb 8731
d7040cdb 8732
d7040cdb 8733
d7040cdb 8734
d7040cdb 8735
ce2cded5
L
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8831echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8832withGCC=$GCC
8833if test "$withGCC" = yes; then
8834 case $host_os in
8835 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8836 *) lt_awk_arg="/^libraries:/" ;;
8837 esac
8838 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8839 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8840 # if the path contains ";" then we assume it to be the separator
8841 # otherwise default to the standard path separator (i.e. ":") - it is
8842 # assumed that no part of a normal pathname contains ";" but that should
8843 # okay in the real world where ";" in dirpaths is itself problematic.
8844 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8845 else
8846 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8847 fi
8848 # Ok, now we have the path, separated by spaces, we can step through it
8849 # and add multilib dir if necessary.
8850 lt_tmp_lt_search_path_spec=
8851 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8852 for lt_sys_path in $lt_search_path_spec; do
8853 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8854 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8855 else
8856 test -d "$lt_sys_path" && \
8857 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8858 fi
8859 done
8860 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8861BEGIN {RS=" "; FS="/|\n";} {
8862 lt_foo="";
8863 lt_count=0;
8864 for (lt_i = NF; lt_i > 0; lt_i--) {
8865 if ($lt_i != "" && $lt_i != ".") {
8866 if ($lt_i == "..") {
8867 lt_count++;
8868 } else {
8869 if (lt_count == 0) {
8870 lt_foo="/" $lt_i lt_foo;
8871 } else {
8872 lt_count--;
8873 }
8874 }
8875 }
8876 }
8877 if (lt_foo != "") { lt_freq[lt_foo]++; }
8878 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8879}'`
8880 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
d7040cdb 8881else
ce2cded5
L
8882 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8883fi
8884library_names_spec=
8885libname_spec='lib$name'
8886soname_spec=
8887shrext_cmds=".so"
8888postinstall_cmds=
8889postuninstall_cmds=
8890finish_cmds=
8891finish_eval=
8892shlibpath_var=
8893shlibpath_overrides_runpath=unknown
8894version_type=none
8895dynamic_linker="$host_os ld.so"
8896sys_lib_dlsearch_path_spec="/lib /usr/lib"
8897need_lib_prefix=unknown
8898hardcode_into_libs=no
8899
8900# when you set need_version to no, make sure it does not cause -set_version
8901# flags to be left without arguments
8902need_version=unknown
8903
8904case $host_os in
8905aix3*)
8906 version_type=linux
8907 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8908 shlibpath_var=LIBPATH
8909
8910 # AIX 3 has no versioning support, so we append a major version to the name.
8911 soname_spec='${libname}${release}${shared_ext}$major'
8912 ;;
8913
50e7d84b 8914aix[4-9]*)
ce2cded5
L
8915 version_type=linux
8916 need_lib_prefix=no
8917 need_version=no
8918 hardcode_into_libs=yes
8919 if test "$host_cpu" = ia64; then
8920 # AIX 5 supports IA64
8921 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8922 shlibpath_var=LD_LIBRARY_PATH
8923 else
8924 # With GCC up to 2.95.x, collect2 would create an import file
8925 # for dependence libraries. The import file would start with
8926 # the line `#! .'. This would cause the generated library to
8927 # depend on `.', always an invalid library. This was fixed in
8928 # development snapshots of GCC prior to 3.0.
8929 case $host_os in
8930 aix4 | aix4.[01] | aix4.[01].*)
8931 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8932 echo ' yes '
8933 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8934 :
8935 else
8936 can_build_shared=no
8937 fi
8938 ;;
8939 esac
8940 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8941 # soname into executable. Probably we can add versioning support to
8942 # collect2, so additional links can be useful in future.
8943 if test "$aix_use_runtimelinking" = yes; then
8944 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8945 # instead of lib<name>.a to let people know that these are not
8946 # typical AIX shared libraries.
8947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8948 else
8949 # We preserve .a as extension for shared libraries through AIX4.2
8950 # and later when we are not doing run time linking.
8951 library_names_spec='${libname}${release}.a $libname.a'
8952 soname_spec='${libname}${release}${shared_ext}$major'
8953 fi
8954 shlibpath_var=LIBPATH
8955 fi
8956 ;;
8957
8958amigaos*)
8959 if test "$host_cpu" = m68k; then
8960 library_names_spec='$libname.ixlibrary $libname.a'
8961 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8962 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'
8963 else
8964 dynamic_linker=no
8965 fi
8966 ;;
8967
8968beos*)
8969 library_names_spec='${libname}${shared_ext}'
8970 dynamic_linker="$host_os ld.so"
8971 shlibpath_var=LIBRARY_PATH
8972 ;;
8973
8974bsdi[45]*)
8975 version_type=linux
8976 need_version=no
8977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8978 soname_spec='${libname}${release}${shared_ext}$major'
8979 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8980 shlibpath_var=LD_LIBRARY_PATH
8981 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8982 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8983 # the default ld.so.conf also contains /usr/contrib/lib and
8984 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8985 # libtool to hard-code these into programs
8986 ;;
8987
8988cygwin* | mingw* | pw32*)
8989 version_type=windows
8990 shrext_cmds=".dll"
8991 need_version=no
8992 need_lib_prefix=no
8993
8994 case $withGCC,$host_os in
8995 yes,cygwin* | yes,mingw* | yes,pw32*)
8996 library_names_spec='$libname.dll.a'
8997 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8998 postinstall_cmds='base_file=`basename \${file}`~
8999 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9000 dldir=$destdir/`dirname \$dlpath`~
9001 test -d \$dldir || mkdir -p \$dldir~
9002 $install_prog $dir/$dlname \$dldir/$dlname~
9003 chmod a+x \$dldir/$dlname~
9004 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9005 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9006 fi'
9007 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9008 dlpath=$dir/\$dldll~
9009 $RM \$dlpath'
9010 shlibpath_overrides_runpath=yes
9011
9012 case $host_os in
9013 cygwin*)
9014 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9015 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9016 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9017 ;;
9018 mingw*)
9019 # MinGW DLLs use traditional 'lib' prefix
9020 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9021 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9022 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9023 # It is most probably a Windows format PATH printed by
9024 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9025 # path with ; separators, and with drive letters. We can handle the
9026 # drive letters (cygwin fileutils understands them), so leave them,
9027 # especially as we might pass files found there to a mingw objdump,
9028 # which wouldn't understand a cygwinified path. Ahh.
9029 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9030 else
9031 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9032 fi
9033 ;;
9034 pw32*)
9035 # pw32 DLLs use 'pw' prefix rather than 'lib'
9036 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9037 ;;
9038 esac
9039 ;;
9040
9041 *)
9042 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9043 ;;
9044 esac
9045 dynamic_linker='Win32 ld.exe'
9046 # FIXME: first we should search . and the directory the executable is in
9047 shlibpath_var=PATH
9048 ;;
9049
9050darwin* | rhapsody*)
9051 dynamic_linker="$host_os dyld"
9052 version_type=darwin
9053 need_lib_prefix=no
9054 need_version=no
9055 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9056 soname_spec='${libname}${release}${major}$shared_ext'
9057 shlibpath_overrides_runpath=yes
9058 shlibpath_var=DYLD_LIBRARY_PATH
9059 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9060
9061 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9062 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9063 ;;
9064
9065dgux*)
9066 version_type=linux
9067 need_lib_prefix=no
9068 need_version=no
9069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9070 soname_spec='${libname}${release}${shared_ext}$major'
9071 shlibpath_var=LD_LIBRARY_PATH
9072 ;;
9073
9074freebsd1*)
9075 dynamic_linker=no
9076 ;;
9077
9078freebsd* | dragonfly*)
9079 # DragonFly does not have aout. When/if they implement a new
9080 # versioning mechanism, adjust this.
9081 if test -x /usr/bin/objformat; then
9082 objformat=`/usr/bin/objformat`
9083 else
9084 case $host_os in
9085 freebsd[123]*) objformat=aout ;;
9086 *) objformat=elf ;;
9087 esac
9088 fi
9089 version_type=freebsd-$objformat
9090 case $version_type in
9091 freebsd-elf*)
9092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9093 need_version=no
9094 need_lib_prefix=no
9095 ;;
9096 freebsd-*)
9097 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9098 need_version=yes
9099 ;;
9100 esac
9101 shlibpath_var=LD_LIBRARY_PATH
9102 case $host_os in
9103 freebsd2*)
9104 shlibpath_overrides_runpath=yes
9105 ;;
9106 freebsd3.[01]* | freebsdelf3.[01]*)
9107 shlibpath_overrides_runpath=yes
9108 hardcode_into_libs=yes
9109 ;;
9110 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9111 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9112 shlibpath_overrides_runpath=no
9113 hardcode_into_libs=yes
9114 ;;
9115 *) # from 4.6 on, and DragonFly
9116 shlibpath_overrides_runpath=yes
9117 hardcode_into_libs=yes
9118 ;;
9119 esac
9120 ;;
9121
9122gnu*)
9123 version_type=linux
9124 need_lib_prefix=no
9125 need_version=no
9126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9127 soname_spec='${libname}${release}${shared_ext}$major'
9128 shlibpath_var=LD_LIBRARY_PATH
9129 hardcode_into_libs=yes
9130 ;;
9131
9132hpux9* | hpux10* | hpux11*)
9133 # Give a soname corresponding to the major version so that dld.sl refuses to
9134 # link against other versions.
9135 version_type=sunos
9136 need_lib_prefix=no
9137 need_version=no
9138 case $host_cpu in
9139 ia64*)
9140 shrext_cmds='.so'
9141 hardcode_into_libs=yes
9142 dynamic_linker="$host_os dld.so"
9143 shlibpath_var=LD_LIBRARY_PATH
9144 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9146 soname_spec='${libname}${release}${shared_ext}$major'
9147 if test "X$HPUX_IA64_MODE" = X32; then
9148 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9149 else
9150 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9151 fi
9152 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9153 ;;
9154 hppa*64*)
9155 shrext_cmds='.sl'
9156 hardcode_into_libs=yes
9157 dynamic_linker="$host_os dld.sl"
9158 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9159 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9161 soname_spec='${libname}${release}${shared_ext}$major'
9162 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9163 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9164 ;;
9165 *)
9166 shrext_cmds='.sl'
9167 dynamic_linker="$host_os dld.sl"
9168 shlibpath_var=SHLIB_PATH
9169 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9171 soname_spec='${libname}${release}${shared_ext}$major'
9172 ;;
9173 esac
9174 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9175 postinstall_cmds='chmod 555 $lib'
9176 ;;
9177
9178interix[3-9]*)
9179 version_type=linux
9180 need_lib_prefix=no
9181 need_version=no
9182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9183 soname_spec='${libname}${release}${shared_ext}$major'
9184 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9185 shlibpath_var=LD_LIBRARY_PATH
9186 shlibpath_overrides_runpath=no
9187 hardcode_into_libs=yes
9188 ;;
9189
9190irix5* | irix6* | nonstopux*)
9191 case $host_os in
9192 nonstopux*) version_type=nonstopux ;;
9193 *)
9194 if test "$lt_cv_prog_gnu_ld" = yes; then
9195 version_type=linux
9196 else
9197 version_type=irix
9198 fi ;;
9199 esac
9200 need_lib_prefix=no
9201 need_version=no
9202 soname_spec='${libname}${release}${shared_ext}$major'
9203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9204 case $host_os in
9205 irix5* | nonstopux*)
9206 libsuff= shlibsuff=
9207 ;;
9208 *)
9209 case $LD in # libtool.m4 will add one of these switches to LD
9210 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9211 libsuff= shlibsuff= libmagic=32-bit;;
9212 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9213 libsuff=32 shlibsuff=N32 libmagic=N32;;
9214 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9215 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9216 *) libsuff= shlibsuff= libmagic=never-match;;
9217 esac
9218 ;;
9219 esac
9220 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9221 shlibpath_overrides_runpath=no
9222 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9223 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9224 hardcode_into_libs=yes
9225 ;;
9226
9227# No shared lib support for Linux oldld, aout, or coff.
9228linux*oldld* | linux*aout* | linux*coff*)
9229 dynamic_linker=no
9230 ;;
9231
9232# This must be Linux ELF.
9233linux* | k*bsd*-gnu)
9234 version_type=linux
9235 need_lib_prefix=no
9236 need_version=no
9237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9238 soname_spec='${libname}${release}${shared_ext}$major'
9239 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9240 shlibpath_var=LD_LIBRARY_PATH
9241 shlibpath_overrides_runpath=no
9242 # Some binutils ld are patched to set DT_RUNPATH
9243 save_LDFLAGS=$LDFLAGS
9244 save_libdir=$libdir
9245 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9246 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9247 cat >conftest.$ac_ext <<_ACEOF
d7040cdb
SE
9248/* confdefs.h. */
9249_ACEOF
9250cat confdefs.h >>conftest.$ac_ext
9251cat >>conftest.$ac_ext <<_ACEOF
9252/* end confdefs.h. */
9253
d7040cdb
SE
9254int
9255main ()
9256{
ce2cded5 9257
d7040cdb
SE
9258 ;
9259 return 0;
9260}
9261_ACEOF
9262rm -f conftest.$ac_objext conftest$ac_exeext
9263if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9264 (eval $ac_link) 2>conftest.er1
9265 ac_status=$?
9266 grep -v '^ *+' conftest.er1 >conftest.err
9267 rm -f conftest.er1
9268 cat conftest.err >&5
9269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9270 (exit $ac_status); } &&
9271 { ac_try='test -z "$ac_c_werror_flag"
9272 || test ! -s conftest.err'
9273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9274 (eval $ac_try) 2>&5
9275 ac_status=$?
9276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9277 (exit $ac_status); }; } &&
9278 { ac_try='test -s conftest$ac_exeext'
9279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9280 (eval $ac_try) 2>&5
9281 ac_status=$?
9282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283 (exit $ac_status); }; }; then
9284 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
9285 shlibpath_overrides_runpath=yes
d7040cdb 9286fi
d7040cdb 9287
ce2cded5
L
9288else
9289 echo "$as_me: failed program was:" >&5
9290sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb
SE
9291
9292fi
ce2cded5
L
9293rm -f conftest.err conftest.$ac_objext \
9294 conftest$ac_exeext conftest.$ac_ext
9295 LDFLAGS=$save_LDFLAGS
9296 libdir=$save_libdir
d7040cdb 9297
ce2cded5
L
9298 # This implies no fast_install, which is unacceptable.
9299 # Some rework will be needed to allow for fast_install
9300 # before this can be enabled.
9301 hardcode_into_libs=yes
d7040cdb 9302
ce2cded5
L
9303 # Append ld.so.conf contents to the search path
9304 if test -f /etc/ld.so.conf; then
9305 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' ' '`
9306 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9307 fi
d7040cdb 9308
ce2cded5
L
9309 # We used to test for /lib/ld.so.1 and disable shared libraries on
9310 # powerpc, because MkLinux only supported shared libraries with the
9311 # GNU dynamic linker. Since this was broken with cross compilers,
9312 # most powerpc-linux boxes support dynamic linking these days and
9313 # people can always --disable-shared, the test was removed, and we
9314 # assume the GNU/Linux dynamic linker is in use.
9315 dynamic_linker='GNU/Linux ld.so'
9316 ;;
d7040cdb 9317
ce2cded5
L
9318netbsd*)
9319 version_type=sunos
9320 need_lib_prefix=no
9321 need_version=no
9322 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9324 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9325 dynamic_linker='NetBSD (a.out) ld.so'
9326 else
9327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9328 soname_spec='${libname}${release}${shared_ext}$major'
9329 dynamic_linker='NetBSD ld.elf_so'
9330 fi
9331 shlibpath_var=LD_LIBRARY_PATH
9332 shlibpath_overrides_runpath=yes
9333 hardcode_into_libs=yes
9334 ;;
d7040cdb 9335
ce2cded5
L
9336newsos6)
9337 version_type=linux
9338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9339 shlibpath_var=LD_LIBRARY_PATH
9340 shlibpath_overrides_runpath=yes
9341 ;;
d7040cdb 9342
ce2cded5
L
9343*nto* | *qnx*)
9344 version_type=qnx
9345 need_lib_prefix=no
9346 need_version=no
9347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9348 soname_spec='${libname}${release}${shared_ext}$major'
9349 shlibpath_var=LD_LIBRARY_PATH
9350 shlibpath_overrides_runpath=no
9351 hardcode_into_libs=yes
9352 dynamic_linker='ldqnx.so'
9353 ;;
d7040cdb 9354
ce2cded5
L
9355openbsd*)
9356 version_type=sunos
9357 sys_lib_dlsearch_path_spec="/usr/lib"
9358 need_lib_prefix=no
9359 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9360 case $host_os in
9361 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9362 *) need_version=no ;;
9363 esac
9364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9365 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9366 shlibpath_var=LD_LIBRARY_PATH
9367 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9368 case $host_os in
9369 openbsd2.[89] | openbsd2.[89].*)
9370 shlibpath_overrides_runpath=no
9371 ;;
9372 *)
9373 shlibpath_overrides_runpath=yes
9374 ;;
9375 esac
9376 else
9377 shlibpath_overrides_runpath=yes
9378 fi
9379 ;;
d7040cdb 9380
ce2cded5
L
9381os2*)
9382 libname_spec='$name'
9383 shrext_cmds=".dll"
9384 need_lib_prefix=no
9385 library_names_spec='$libname${shared_ext} $libname.a'
9386 dynamic_linker='OS/2 ld.exe'
9387 shlibpath_var=LIBPATH
9388 ;;
d7040cdb 9389
ce2cded5
L
9390osf3* | osf4* | osf5*)
9391 version_type=osf
9392 need_lib_prefix=no
9393 need_version=no
9394 soname_spec='${libname}${release}${shared_ext}$major'
9395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9396 shlibpath_var=LD_LIBRARY_PATH
9397 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9398 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9399 ;;
d7040cdb 9400
ce2cded5
L
9401rdos*)
9402 dynamic_linker=no
9403 ;;
d7040cdb 9404
ce2cded5
L
9405solaris*)
9406 version_type=linux
9407 need_lib_prefix=no
9408 need_version=no
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 shlibpath_overrides_runpath=yes
9413 hardcode_into_libs=yes
9414 # ldd complains unless libraries are executable
9415 postinstall_cmds='chmod +x $lib'
9416 ;;
d7040cdb 9417
ce2cded5
L
9418sunos4*)
9419 version_type=sunos
9420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9421 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9422 shlibpath_var=LD_LIBRARY_PATH
9423 shlibpath_overrides_runpath=yes
9424 if test "$with_gnu_ld" = yes; then
9425 need_lib_prefix=no
9426 fi
9427 need_version=yes
9428 ;;
d7040cdb 9429
ce2cded5
L
9430sysv4 | sysv4.3*)
9431 version_type=linux
9432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9433 soname_spec='${libname}${release}${shared_ext}$major'
9434 shlibpath_var=LD_LIBRARY_PATH
9435 case $host_vendor in
9436 sni)
9437 shlibpath_overrides_runpath=no
9438 need_lib_prefix=no
9439 runpath_var=LD_RUN_PATH
9440 ;;
9441 siemens)
9442 need_lib_prefix=no
9443 ;;
9444 motorola)
9445 need_lib_prefix=no
9446 need_version=no
9447 shlibpath_overrides_runpath=no
9448 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9449 ;;
9450 esac
9451 ;;
d7040cdb 9452
ce2cded5
L
9453sysv4*MP*)
9454 if test -d /usr/nec ;then
9455 version_type=linux
9456 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9457 soname_spec='$libname${shared_ext}.$major'
9458 shlibpath_var=LD_LIBRARY_PATH
9459 fi
9460 ;;
d7040cdb 9461
ce2cded5
L
9462sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9463 version_type=freebsd-elf
9464 need_lib_prefix=no
9465 need_version=no
9466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9467 soname_spec='${libname}${release}${shared_ext}$major'
9468 shlibpath_var=LD_LIBRARY_PATH
9469 shlibpath_overrides_runpath=yes
9470 hardcode_into_libs=yes
9471 if test "$with_gnu_ld" = yes; then
9472 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9473 else
9474 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9475 case $host_os in
9476 sco3.2v5*)
9477 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9478 ;;
9479 esac
9480 fi
9481 sys_lib_dlsearch_path_spec='/usr/lib'
9482 ;;
d7040cdb 9483
ce2cded5
L
9484tpf*)
9485 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9486 version_type=linux
9487 need_lib_prefix=no
9488 need_version=no
9489 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9490 shlibpath_var=LD_LIBRARY_PATH
9491 shlibpath_overrides_runpath=no
9492 hardcode_into_libs=yes
9493 ;;
d7040cdb 9494
ce2cded5
L
9495uts4*)
9496 version_type=linux
9497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9498 soname_spec='${libname}${release}${shared_ext}$major'
9499 shlibpath_var=LD_LIBRARY_PATH
9500 ;;
d7040cdb 9501
ce2cded5
L
9502*)
9503 dynamic_linker=no
9504 ;;
9505esac
9506echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9507echo "${ECHO_T}$dynamic_linker" >&6
9508test "$dynamic_linker" = no && can_build_shared=no
9509
9510variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9511if test "$GCC" = yes; then
9512 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
d7040cdb
SE
9513fi
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
d7040cdb 9526
d7040cdb 9527
d7040cdb 9528
d7040cdb 9529
d7040cdb
SE
9530
9531
9532
9533
d7040cdb 9534
d7040cdb
SE
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
d7040cdb
SE
9548
9549
9550
9551
d7040cdb
SE
9552
9553
9554
9555
d7040cdb 9556
d7040cdb 9557
d7040cdb 9558
d7040cdb 9559
d7040cdb 9560
d7040cdb 9561
d7040cdb 9562
d7040cdb
SE
9563
9564
9565
9566
9567
d7040cdb 9568
d7040cdb 9569
d7040cdb 9570
d7040cdb 9571
d7040cdb 9572
d7040cdb 9573
d7040cdb
SE
9574
9575
9576
9577
9578
d7040cdb
SE
9579
9580
d7040cdb 9581
d7040cdb 9582
d7040cdb 9583
d7040cdb 9584
ce2cded5
L
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9602echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9603hardcode_action=
9604if test -n "$hardcode_libdir_flag_spec" ||
9605 test -n "$runpath_var" ||
9606 test "X$hardcode_automatic" = "Xyes" ; then
9607
9608 # We can hardcode non-existent directories.
9609 if test "$hardcode_direct" != no &&
9610 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9611 # have to relink, otherwise we might link with an installed library
9612 # when we should be linking with a yet-to-be-installed one
9613 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9614 test "$hardcode_minus_L" != no; then
9615 # Linking always hardcodes the temporary library directory.
9616 hardcode_action=relink
9617 else
9618 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9619 hardcode_action=immediate
d7040cdb 9620 fi
d7040cdb 9621else
ce2cded5
L
9622 # We cannot hardcode anything, or else we can only hardcode existing
9623 # directories.
9624 hardcode_action=unsupported
d7040cdb 9625fi
ce2cded5
L
9626echo "$as_me:$LINENO: result: $hardcode_action" >&5
9627echo "${ECHO_T}$hardcode_action" >&6
d7040cdb 9628
ce2cded5
L
9629if test "$hardcode_action" = relink ||
9630 test "$inherit_rpath" = yes; then
9631 # Fast installation is not supported
9632 enable_fast_install=no
9633elif test "$shlibpath_overrides_runpath" = yes ||
9634 test "$enable_shared" = no; then
9635 # Fast installation is not necessary
9636 enable_fast_install=needless
d7040cdb
SE
9637fi
9638
d7040cdb 9639
d7040cdb 9640
d7040cdb 9641
d7040cdb 9642
d7040cdb 9643
ce2cded5
L
9644 if test "x$enable_dlopen" != xyes; then
9645 enable_dlopen=unknown
9646 enable_dlopen_self=unknown
9647 enable_dlopen_self_static=unknown
d7040cdb 9648else
ce2cded5
L
9649 lt_cv_dlopen=no
9650 lt_cv_dlopen_libs=
d7040cdb 9651
ce2cded5
L
9652 case $host_os in
9653 beos*)
9654 lt_cv_dlopen="load_add_on"
9655 lt_cv_dlopen_libs=
9656 lt_cv_dlopen_self=yes
9657 ;;
d7040cdb 9658
ce2cded5
L
9659 mingw* | pw32*)
9660 lt_cv_dlopen="LoadLibrary"
9661 lt_cv_dlopen_libs=
9662 ;;
9663
9664 cygwin*)
9665 lt_cv_dlopen="dlopen"
9666 lt_cv_dlopen_libs=
9667 ;;
9668
9669 darwin*)
9670 # if libdl is installed we need to link against it
9671 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9672echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9673if test "${ac_cv_lib_dl_dlopen+set}" = set; then
d7040cdb
SE
9674 echo $ECHO_N "(cached) $ECHO_C" >&6
9675else
ce2cded5
L
9676 ac_check_lib_save_LIBS=$LIBS
9677LIBS="-ldl $LIBS"
9678cat >conftest.$ac_ext <<_ACEOF
9679/* confdefs.h. */
9680_ACEOF
9681cat confdefs.h >>conftest.$ac_ext
9682cat >>conftest.$ac_ext <<_ACEOF
9683/* end confdefs.h. */
9684
9685/* Override any gcc2 internal prototype to avoid an error. */
9686#ifdef __cplusplus
9687extern "C"
9688#endif
9689/* We use char because int might match the return type of a gcc2
9690 builtin and then its argument prototype would still apply. */
9691char dlopen ();
9692int
9693main ()
9694{
9695dlopen ();
9696 ;
9697 return 0;
9698}
9699_ACEOF
9700rm -f conftest.$ac_objext conftest$ac_exeext
9701if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9702 (eval $ac_link) 2>conftest.er1
9703 ac_status=$?
9704 grep -v '^ *+' conftest.er1 >conftest.err
9705 rm -f conftest.er1
9706 cat conftest.err >&5
9707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708 (exit $ac_status); } &&
9709 { ac_try='test -z "$ac_c_werror_flag"
9710 || test ! -s conftest.err'
9711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9712 (eval $ac_try) 2>&5
9713 ac_status=$?
9714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9715 (exit $ac_status); }; } &&
9716 { ac_try='test -s conftest$ac_exeext'
9717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9718 (eval $ac_try) 2>&5
9719 ac_status=$?
9720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721 (exit $ac_status); }; }; then
9722 ac_cv_lib_dl_dlopen=yes
9723else
9724 echo "$as_me: failed program was:" >&5
9725sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 9726
ce2cded5 9727ac_cv_lib_dl_dlopen=no
d7040cdb 9728fi
ce2cded5
L
9729rm -f conftest.err conftest.$ac_objext \
9730 conftest$ac_exeext conftest.$ac_ext
9731LIBS=$ac_check_lib_save_LIBS
d7040cdb 9732fi
ce2cded5
L
9733echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9734echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9735if test $ac_cv_lib_dl_dlopen = yes; then
9736 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d7040cdb 9737else
d7040cdb 9738
ce2cded5
L
9739 lt_cv_dlopen="dyld"
9740 lt_cv_dlopen_libs=
9741 lt_cv_dlopen_self=yes
9742
d7040cdb 9743fi
ce2cded5
L
9744
9745 ;;
9746
9747 *)
9748 echo "$as_me:$LINENO: checking for shl_load" >&5
9749echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9750if test "${ac_cv_func_shl_load+set}" = set; then
d7040cdb
SE
9751 echo $ECHO_N "(cached) $ECHO_C" >&6
9752else
ce2cded5
L
9753 cat >conftest.$ac_ext <<_ACEOF
9754/* confdefs.h. */
9755_ACEOF
9756cat confdefs.h >>conftest.$ac_ext
9757cat >>conftest.$ac_ext <<_ACEOF
9758/* end confdefs.h. */
9759/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9760 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9761#define shl_load innocuous_shl_load
d7040cdb 9762
ce2cded5
L
9763/* System header to define __stub macros and hopefully few prototypes,
9764 which can conflict with char shl_load (); below.
9765 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9766 <limits.h> exists even on freestanding compilers. */
d7040cdb 9767
ce2cded5
L
9768#ifdef __STDC__
9769# include <limits.h>
9770#else
9771# include <assert.h>
9772#endif
d7040cdb 9773
ce2cded5 9774#undef shl_load
d7040cdb 9775
ce2cded5
L
9776/* Override any gcc2 internal prototype to avoid an error. */
9777#ifdef __cplusplus
9778extern "C"
9779{
9780#endif
9781/* We use char because int might match the return type of a gcc2
9782 builtin and then its argument prototype would still apply. */
9783char shl_load ();
9784/* The GNU C library defines this for functions which it implements
9785 to always fail with ENOSYS. Some functions are actually named
9786 something starting with __ and the normal name is an alias. */
9787#if defined (__stub_shl_load) || defined (__stub___shl_load)
9788choke me
9789#else
9790char (*f) () = shl_load;
9791#endif
9792#ifdef __cplusplus
9793}
9794#endif
d7040cdb 9795
ce2cded5
L
9796int
9797main ()
9798{
9799return f != shl_load;
9800 ;
9801 return 0;
9802}
9803_ACEOF
9804rm -f conftest.$ac_objext conftest$ac_exeext
9805if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9806 (eval $ac_link) 2>conftest.er1
9807 ac_status=$?
9808 grep -v '^ *+' conftest.er1 >conftest.err
9809 rm -f conftest.er1
9810 cat conftest.err >&5
9811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9812 (exit $ac_status); } &&
9813 { ac_try='test -z "$ac_c_werror_flag"
9814 || test ! -s conftest.err'
9815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9816 (eval $ac_try) 2>&5
9817 ac_status=$?
9818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9819 (exit $ac_status); }; } &&
9820 { ac_try='test -s conftest$ac_exeext'
9821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9822 (eval $ac_try) 2>&5
9823 ac_status=$?
9824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825 (exit $ac_status); }; }; then
9826 ac_cv_func_shl_load=yes
9827else
9828 echo "$as_me: failed program was:" >&5
9829sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 9830
ce2cded5
L
9831ac_cv_func_shl_load=no
9832fi
9833rm -f conftest.err conftest.$ac_objext \
9834 conftest$ac_exeext conftest.$ac_ext
9835fi
9836echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9837echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9838if test $ac_cv_func_shl_load = yes; then
9839 lt_cv_dlopen="shl_load"
9840else
9841 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9842echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9843if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9844 echo $ECHO_N "(cached) $ECHO_C" >&6
9845else
9846 ac_check_lib_save_LIBS=$LIBS
9847LIBS="-ldld $LIBS"
9848cat >conftest.$ac_ext <<_ACEOF
9849/* confdefs.h. */
9850_ACEOF
9851cat confdefs.h >>conftest.$ac_ext
9852cat >>conftest.$ac_ext <<_ACEOF
9853/* end confdefs.h. */
d7040cdb 9854
ce2cded5
L
9855/* Override any gcc2 internal prototype to avoid an error. */
9856#ifdef __cplusplus
9857extern "C"
9858#endif
9859/* We use char because int might match the return type of a gcc2
9860 builtin and then its argument prototype would still apply. */
9861char shl_load ();
9862int
9863main ()
9864{
9865shl_load ();
9866 ;
9867 return 0;
9868}
9869_ACEOF
9870rm -f conftest.$ac_objext conftest$ac_exeext
9871if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9872 (eval $ac_link) 2>conftest.er1
d7040cdb 9873 ac_status=$?
ce2cded5
L
9874 grep -v '^ *+' conftest.er1 >conftest.err
9875 rm -f conftest.er1
9876 cat conftest.err >&5
d7040cdb 9877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9878 (exit $ac_status); } &&
9879 { ac_try='test -z "$ac_c_werror_flag"
9880 || test ! -s conftest.err'
9881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9882 (eval $ac_try) 2>&5
d7040cdb
SE
9883 ac_status=$?
9884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9885 (exit $ac_status); }; } &&
9886 { ac_try='test -s conftest$ac_exeext'
9887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9888 (eval $ac_try) 2>&5
d7040cdb
SE
9889 ac_status=$?
9890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9891 (exit $ac_status); }; }; then
9892 ac_cv_lib_dld_shl_load=yes
9893else
9894 echo "$as_me: failed program was:" >&5
9895sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 9896
ce2cded5
L
9897ac_cv_lib_dld_shl_load=no
9898fi
9899rm -f conftest.err conftest.$ac_objext \
9900 conftest$ac_exeext conftest.$ac_ext
9901LIBS=$ac_check_lib_save_LIBS
9902fi
9903echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9904echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9905if test $ac_cv_lib_dld_shl_load = yes; then
9906 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9907else
9908 echo "$as_me:$LINENO: checking for dlopen" >&5
9909echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9910if test "${ac_cv_func_dlopen+set}" = set; then
d7040cdb
SE
9911 echo $ECHO_N "(cached) $ECHO_C" >&6
9912else
9913 cat >conftest.$ac_ext <<_ACEOF
9914/* confdefs.h. */
9915_ACEOF
9916cat confdefs.h >>conftest.$ac_ext
9917cat >>conftest.$ac_ext <<_ACEOF
9918/* end confdefs.h. */
ce2cded5
L
9919/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9920 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9921#define dlopen innocuous_dlopen
9922
9923/* System header to define __stub macros and hopefully few prototypes,
9924 which can conflict with char dlopen (); below.
9925 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9926 <limits.h> exists even on freestanding compilers. */
9927
9928#ifdef __STDC__
9929# include <limits.h>
9930#else
9931# include <assert.h>
9932#endif
9933
9934#undef dlopen
9935
9936/* Override any gcc2 internal prototype to avoid an error. */
9937#ifdef __cplusplus
9938extern "C"
9939{
9940#endif
9941/* We use char because int might match the return type of a gcc2
9942 builtin and then its argument prototype would still apply. */
9943char dlopen ();
9944/* The GNU C library defines this for functions which it implements
9945 to always fail with ENOSYS. Some functions are actually named
9946 something starting with __ and the normal name is an alias. */
9947#if defined (__stub_dlopen) || defined (__stub___dlopen)
9948choke me
9949#else
9950char (*f) () = dlopen;
9951#endif
9952#ifdef __cplusplus
9953}
9954#endif
d7040cdb
SE
9955
9956int
9957main ()
9958{
ce2cded5 9959return f != dlopen;
d7040cdb
SE
9960 ;
9961 return 0;
9962}
9963_ACEOF
ce2cded5
L
9964rm -f conftest.$ac_objext conftest$ac_exeext
9965if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9966 (eval $ac_link) 2>conftest.er1
d7040cdb
SE
9967 ac_status=$?
9968 grep -v '^ *+' conftest.er1 >conftest.err
9969 rm -f conftest.er1
9970 cat conftest.err >&5
9971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972 (exit $ac_status); } &&
9973 { ac_try='test -z "$ac_c_werror_flag"
9974 || test ! -s conftest.err'
9975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9976 (eval $ac_try) 2>&5
9977 ac_status=$?
9978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979 (exit $ac_status); }; } &&
ce2cded5 9980 { ac_try='test -s conftest$ac_exeext'
d7040cdb
SE
9981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9982 (eval $ac_try) 2>&5
9983 ac_status=$?
9984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985 (exit $ac_status); }; }; then
ce2cded5 9986 ac_cv_func_dlopen=yes
d7040cdb
SE
9987else
9988 echo "$as_me: failed program was:" >&5
9989sed 's/^/| /' conftest.$ac_ext >&5
9990
ce2cded5 9991ac_cv_func_dlopen=no
d7040cdb 9992fi
ce2cded5
L
9993rm -f conftest.err conftest.$ac_objext \
9994 conftest$ac_exeext conftest.$ac_ext
d7040cdb 9995fi
ce2cded5
L
9996echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9997echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9998if test $ac_cv_func_dlopen = yes; then
9999 lt_cv_dlopen="dlopen"
10000else
10001 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10002echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10003if test "${ac_cv_lib_dl_dlopen+set}" = set; then
d7040cdb
SE
10004 echo $ECHO_N "(cached) $ECHO_C" >&6
10005else
ce2cded5
L
10006 ac_check_lib_save_LIBS=$LIBS
10007LIBS="-ldl $LIBS"
10008cat >conftest.$ac_ext <<_ACEOF
d7040cdb
SE
10009/* confdefs.h. */
10010_ACEOF
10011cat confdefs.h >>conftest.$ac_ext
10012cat >>conftest.$ac_ext <<_ACEOF
10013/* end confdefs.h. */
10014
ce2cded5
L
10015/* Override any gcc2 internal prototype to avoid an error. */
10016#ifdef __cplusplus
10017extern "C"
10018#endif
10019/* We use char because int might match the return type of a gcc2
10020 builtin and then its argument prototype would still apply. */
10021char dlopen ();
d7040cdb
SE
10022int
10023main ()
10024{
ce2cded5 10025dlopen ();
d7040cdb
SE
10026 ;
10027 return 0;
10028}
10029_ACEOF
ce2cded5
L
10030rm -f conftest.$ac_objext conftest$ac_exeext
10031if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10032 (eval $ac_link) 2>conftest.er1
d7040cdb
SE
10033 ac_status=$?
10034 grep -v '^ *+' conftest.er1 >conftest.err
10035 rm -f conftest.er1
10036 cat conftest.err >&5
10037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038 (exit $ac_status); } &&
10039 { ac_try='test -z "$ac_c_werror_flag"
10040 || test ! -s conftest.err'
10041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10042 (eval $ac_try) 2>&5
10043 ac_status=$?
10044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045 (exit $ac_status); }; } &&
ce2cded5 10046 { ac_try='test -s conftest$ac_exeext'
d7040cdb
SE
10047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10048 (eval $ac_try) 2>&5
10049 ac_status=$?
10050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051 (exit $ac_status); }; }; then
ce2cded5 10052 ac_cv_lib_dl_dlopen=yes
d7040cdb
SE
10053else
10054 echo "$as_me: failed program was:" >&5
10055sed 's/^/| /' conftest.$ac_ext >&5
10056
ce2cded5 10057ac_cv_lib_dl_dlopen=no
d7040cdb 10058fi
ce2cded5
L
10059rm -f conftest.err conftest.$ac_objext \
10060 conftest$ac_exeext conftest.$ac_ext
10061LIBS=$ac_check_lib_save_LIBS
d7040cdb 10062fi
ce2cded5
L
10063echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10064echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10065if test $ac_cv_lib_dl_dlopen = yes; then
10066 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d7040cdb 10067else
ce2cded5
L
10068 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10069echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10070if test "${ac_cv_lib_svld_dlopen+set}" = set; then
d7040cdb
SE
10071 echo $ECHO_N "(cached) $ECHO_C" >&6
10072else
ce2cded5
L
10073 ac_check_lib_save_LIBS=$LIBS
10074LIBS="-lsvld $LIBS"
d7040cdb
SE
10075cat >conftest.$ac_ext <<_ACEOF
10076/* confdefs.h. */
10077_ACEOF
10078cat confdefs.h >>conftest.$ac_ext
10079cat >>conftest.$ac_ext <<_ACEOF
10080/* end confdefs.h. */
d7040cdb 10081
ce2cded5
L
10082/* Override any gcc2 internal prototype to avoid an error. */
10083#ifdef __cplusplus
10084extern "C"
10085#endif
10086/* We use char because int might match the return type of a gcc2
10087 builtin and then its argument prototype would still apply. */
10088char dlopen ();
d7040cdb
SE
10089int
10090main ()
10091{
ce2cded5 10092dlopen ();
d7040cdb
SE
10093 ;
10094 return 0;
10095}
10096_ACEOF
ce2cded5
L
10097rm -f conftest.$ac_objext conftest$ac_exeext
10098if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10099 (eval $ac_link) 2>conftest.er1
d7040cdb
SE
10100 ac_status=$?
10101 grep -v '^ *+' conftest.er1 >conftest.err
10102 rm -f conftest.er1
10103 cat conftest.err >&5
10104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105 (exit $ac_status); } &&
10106 { ac_try='test -z "$ac_c_werror_flag"
10107 || test ! -s conftest.err'
10108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10109 (eval $ac_try) 2>&5
10110 ac_status=$?
10111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112 (exit $ac_status); }; } &&
ce2cded5 10113 { ac_try='test -s conftest$ac_exeext'
d7040cdb
SE
10114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10115 (eval $ac_try) 2>&5
10116 ac_status=$?
10117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10118 (exit $ac_status); }; }; then
ce2cded5 10119 ac_cv_lib_svld_dlopen=yes
d7040cdb
SE
10120else
10121 echo "$as_me: failed program was:" >&5
10122sed 's/^/| /' conftest.$ac_ext >&5
10123
ce2cded5 10124ac_cv_lib_svld_dlopen=no
d7040cdb 10125fi
ce2cded5
L
10126rm -f conftest.err conftest.$ac_objext \
10127 conftest$ac_exeext conftest.$ac_ext
10128LIBS=$ac_check_lib_save_LIBS
d7040cdb 10129fi
ce2cded5
L
10130echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10131echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10132if test $ac_cv_lib_svld_dlopen = yes; then
10133 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10134else
10135 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10136echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10137if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10138 echo $ECHO_N "(cached) $ECHO_C" >&6
10139else
10140 ac_check_lib_save_LIBS=$LIBS
10141LIBS="-ldld $LIBS"
d7040cdb 10142cat >conftest.$ac_ext <<_ACEOF
d7040cdb
SE
10143/* confdefs.h. */
10144_ACEOF
10145cat confdefs.h >>conftest.$ac_ext
10146cat >>conftest.$ac_ext <<_ACEOF
ce2cded5
L
10147/* end confdefs.h. */
10148
10149/* Override any gcc2 internal prototype to avoid an error. */
10150#ifdef __cplusplus
10151extern "C"
10152#endif
10153/* We use char because int might match the return type of a gcc2
10154 builtin and then its argument prototype would still apply. */
10155char dld_link ();
d7040cdb
SE
10156int
10157main ()
10158{
ce2cded5 10159dld_link ();
d7040cdb
SE
10160 ;
10161 return 0;
10162}
10163_ACEOF
ce2cded5
L
10164rm -f conftest.$ac_objext conftest$ac_exeext
10165if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10166 (eval $ac_link) 2>conftest.er1
d7040cdb
SE
10167 ac_status=$?
10168 grep -v '^ *+' conftest.er1 >conftest.err
10169 rm -f conftest.er1
10170 cat conftest.err >&5
10171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172 (exit $ac_status); } &&
10173 { ac_try='test -z "$ac_c_werror_flag"
10174 || test ! -s conftest.err'
10175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10176 (eval $ac_try) 2>&5
10177 ac_status=$?
10178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10179 (exit $ac_status); }; } &&
ce2cded5 10180 { ac_try='test -s conftest$ac_exeext'
d7040cdb
SE
10181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10182 (eval $ac_try) 2>&5
10183 ac_status=$?
10184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185 (exit $ac_status); }; }; then
ce2cded5 10186 ac_cv_lib_dld_dld_link=yes
d7040cdb
SE
10187else
10188 echo "$as_me: failed program was:" >&5
10189sed 's/^/| /' conftest.$ac_ext >&5
10190
ce2cded5 10191ac_cv_lib_dld_dld_link=no
d7040cdb 10192fi
ce2cded5
L
10193rm -f conftest.err conftest.$ac_objext \
10194 conftest$ac_exeext conftest.$ac_ext
10195LIBS=$ac_check_lib_save_LIBS
10196fi
10197echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10198echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10199if test $ac_cv_lib_dld_dld_link = yes; then
10200 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10201fi
10202
10203
10204fi
10205
10206
10207fi
10208
10209
10210fi
10211
10212
10213fi
10214
10215
10216fi
10217
10218 ;;
10219 esac
10220
10221 if test "x$lt_cv_dlopen" != xno; then
10222 enable_dlopen=yes
10223 else
10224 enable_dlopen=no
10225 fi
10226
10227 case $lt_cv_dlopen in
10228 dlopen)
10229 save_CPPFLAGS="$CPPFLAGS"
10230 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10231
10232 save_LDFLAGS="$LDFLAGS"
10233 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10234
10235 save_LIBS="$LIBS"
10236 LIBS="$lt_cv_dlopen_libs $LIBS"
10237
10238 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10239echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10240if test "${lt_cv_dlopen_self+set}" = set; then
10241 echo $ECHO_N "(cached) $ECHO_C" >&6
10242else
10243 if test "$cross_compiling" = yes; then :
10244 lt_cv_dlopen_self=cross
10245else
10246 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10247 lt_status=$lt_dlunknown
10248 cat > conftest.$ac_ext <<_LT_EOF
7fb9f789 10249#line 10249 "configure"
ce2cded5
L
10250#include "confdefs.h"
10251
10252#if HAVE_DLFCN_H
10253#include <dlfcn.h>
10254#endif
10255
10256#include <stdio.h>
10257
10258#ifdef RTLD_GLOBAL
10259# define LT_DLGLOBAL RTLD_GLOBAL
10260#else
10261# ifdef DL_GLOBAL
10262# define LT_DLGLOBAL DL_GLOBAL
10263# else
10264# define LT_DLGLOBAL 0
10265# endif
10266#endif
10267
10268/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10269 find out it does not work in some platform. */
10270#ifndef LT_DLLAZY_OR_NOW
10271# ifdef RTLD_LAZY
10272# define LT_DLLAZY_OR_NOW RTLD_LAZY
10273# else
10274# ifdef DL_LAZY
10275# define LT_DLLAZY_OR_NOW DL_LAZY
10276# else
10277# ifdef RTLD_NOW
10278# define LT_DLLAZY_OR_NOW RTLD_NOW
10279# else
10280# ifdef DL_NOW
10281# define LT_DLLAZY_OR_NOW DL_NOW
10282# else
10283# define LT_DLLAZY_OR_NOW 0
10284# endif
10285# endif
10286# endif
10287# endif
10288#endif
10289
10290#ifdef __cplusplus
10291extern "C" void exit (int);
10292#endif
10293
10294void fnord() { int i=42;}
10295int main ()
d7040cdb 10296{
ce2cded5
L
10297 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10298 int status = $lt_dlunknown;
10299
10300 if (self)
10301 {
10302 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10303 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10304 /* dlclose (self); */
10305 }
10306 else
10307 puts (dlerror ());
10308
10309 exit (status);
d7040cdb 10310}
ce2cded5
L
10311_LT_EOF
10312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10313 (eval $ac_link) 2>&5
d7040cdb
SE
10314 ac_status=$?
10315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
10316 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10317 (./conftest; exit; ) >&5 2>/dev/null
10318 lt_status=$?
10319 case x$lt_status in
10320 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10321 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10322 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10323 esac
10324 else :
10325 # compilation failed
10326 lt_cv_dlopen_self=no
10327 fi
10328fi
10329rm -fr conftest*
10330
10331
10332fi
10333echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10334echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10335
10336 if test "x$lt_cv_dlopen_self" = xyes; then
10337 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10338 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10339echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10340if test "${lt_cv_dlopen_self_static+set}" = set; then
10341 echo $ECHO_N "(cached) $ECHO_C" >&6
10342else
10343 if test "$cross_compiling" = yes; then :
10344 lt_cv_dlopen_self_static=cross
10345else
10346 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10347 lt_status=$lt_dlunknown
10348 cat > conftest.$ac_ext <<_LT_EOF
7fb9f789 10349#line 10349 "configure"
ce2cded5
L
10350#include "confdefs.h"
10351
10352#if HAVE_DLFCN_H
10353#include <dlfcn.h>
10354#endif
10355
10356#include <stdio.h>
10357
10358#ifdef RTLD_GLOBAL
10359# define LT_DLGLOBAL RTLD_GLOBAL
10360#else
10361# ifdef DL_GLOBAL
10362# define LT_DLGLOBAL DL_GLOBAL
10363# else
10364# define LT_DLGLOBAL 0
10365# endif
10366#endif
10367
10368/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10369 find out it does not work in some platform. */
10370#ifndef LT_DLLAZY_OR_NOW
10371# ifdef RTLD_LAZY
10372# define LT_DLLAZY_OR_NOW RTLD_LAZY
10373# else
10374# ifdef DL_LAZY
10375# define LT_DLLAZY_OR_NOW DL_LAZY
10376# else
10377# ifdef RTLD_NOW
10378# define LT_DLLAZY_OR_NOW RTLD_NOW
10379# else
10380# ifdef DL_NOW
10381# define LT_DLLAZY_OR_NOW DL_NOW
10382# else
10383# define LT_DLLAZY_OR_NOW 0
10384# endif
10385# endif
10386# endif
10387# endif
10388#endif
10389
10390#ifdef __cplusplus
10391extern "C" void exit (int);
10392#endif
10393
10394void fnord() { int i=42;}
10395int main ()
10396{
10397 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10398 int status = $lt_dlunknown;
10399
10400 if (self)
10401 {
10402 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10403 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10404 /* dlclose (self); */
10405 }
10406 else
10407 puts (dlerror ());
10408
10409 exit (status);
10410}
10411_LT_EOF
10412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10413 (eval $ac_link) 2>&5
d7040cdb
SE
10414 ac_status=$?
10415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
10416 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10417 (./conftest; exit; ) >&5 2>/dev/null
10418 lt_status=$?
10419 case x$lt_status in
10420 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10421 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10422 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10423 esac
10424 else :
10425 # compilation failed
10426 lt_cv_dlopen_self_static=no
10427 fi
10428fi
10429rm -fr conftest*
10430
d7040cdb
SE
10431
10432fi
ce2cded5
L
10433echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10434echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10435 fi
10436
10437 CPPFLAGS="$save_CPPFLAGS"
10438 LDFLAGS="$save_LDFLAGS"
10439 LIBS="$save_LIBS"
10440 ;;
10441 esac
10442
10443 case $lt_cv_dlopen_self in
10444 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10445 *) enable_dlopen_self=unknown ;;
10446 esac
10447
10448 case $lt_cv_dlopen_self_static in
10449 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10450 *) enable_dlopen_self_static=unknown ;;
10451 esac
d7040cdb
SE
10452fi
10453
ce2cded5
L
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470striplib=
10471old_striplib=
10472echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10473echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10474if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10475 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10476 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10477 echo "$as_me:$LINENO: result: yes" >&5
10478echo "${ECHO_T}yes" >&6
d7040cdb 10479else
ce2cded5
L
10480# FIXME - insert some real tests, host_os isn't really good enough
10481 case $host_os in
10482 darwin*)
10483 if test -n "$STRIP" ; then
10484 striplib="$STRIP -x"
10485 old_striplib="$STRIP -S"
10486 echo "$as_me:$LINENO: result: yes" >&5
10487echo "${ECHO_T}yes" >&6
10488 else
10489 echo "$as_me:$LINENO: result: no" >&5
10490echo "${ECHO_T}no" >&6
10491 fi
10492 ;;
10493 *)
10494 echo "$as_me:$LINENO: result: no" >&5
10495echo "${ECHO_T}no" >&6
10496 ;;
10497 esac
10498fi
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511 # Report which library types will actually be built
10512 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10513echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10514 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10515echo "${ECHO_T}$can_build_shared" >&6
10516
10517 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10518echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10519 test "$can_build_shared" = "no" && enable_shared=no
10520
10521 # On AIX, shared libraries and static libraries use the same namespace, and
10522 # are all built from PIC.
10523 case $host_os in
10524 aix3*)
10525 test "$enable_shared" = yes && enable_static=no
10526 if test -n "$RANLIB"; then
10527 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10528 postinstall_cmds='$RANLIB $lib'
10529 fi
10530 ;;
10531
50e7d84b 10532 aix[4-9]*)
ce2cded5
L
10533 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10534 test "$enable_shared" = yes && enable_static=no
10535 fi
10536 ;;
10537 esac
10538 echo "$as_me:$LINENO: result: $enable_shared" >&5
10539echo "${ECHO_T}$enable_shared" >&6
10540
10541 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10542echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10543 # Make sure either enable_shared or enable_static is yes.
10544 test "$enable_shared" = yes || enable_static=yes
10545 echo "$as_me:$LINENO: result: $enable_static" >&5
10546echo "${ECHO_T}$enable_static" >&6
10547
10548
10549
d7040cdb
SE
10550
10551fi
d7040cdb
SE
10552ac_ext=c
10553ac_cpp='$CPP $CPPFLAGS'
10554ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10555ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10556ac_compiler_gnu=$ac_cv_c_compiler_gnu
10557
ce2cded5 10558CC="$lt_save_CC"
67310ccd 10559
67310ccd
AM
10560
10561
d7040cdb
SE
10562
10563
d7040cdb 10564
d7040cdb 10565
d7040cdb 10566
ce2cded5
L
10567
10568
10569
10570
10571
10572 ac_config_commands="$ac_config_commands libtool"
10573
10574
10575
10576
10577# Only expand once:
10578
d7040cdb
SE
10579
10580
19aec961 10581ALL_LINGUAS="fr sv tr es da vi zh_CN zh_TW ga fi"
d7040cdb
SE
10582# If we haven't got the data from the intl directory,
10583# assume NLS is disabled.
10584USE_NLS=no
10585LIBINTL=
10586LIBINTL_DEP=
10587INCINTL=
10588XGETTEXT=
10589GMSGFMT=
10590POSUB=
10591
10592if test -f ../intl/config.intl; then
10593 . ../intl/config.intl
10594fi
10595echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10596echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10597if test x"$USE_NLS" != xyes; then
10598 echo "$as_me:$LINENO: result: no" >&5
10599echo "${ECHO_T}no" >&6
10600else
10601 echo "$as_me:$LINENO: result: yes" >&5
10602echo "${ECHO_T}yes" >&6
10603
10604cat >>confdefs.h <<\_ACEOF
10605#define ENABLE_NLS 1
10606_ACEOF
10607
10608
10609 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
10610echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
10611 # Look for .po and .gmo files in the source directory.
10612 CATALOGS=
10613 XLINGUAS=
10614 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
10615 # If there aren't any .gmo files the shell will give us the
10616 # literal string "../path/to/srcdir/po/*.gmo" which has to be
10617 # weeded out.
10618 case "$cat" in *\**)
10619 continue;;
10620 esac
10621 # The quadruple backslash is collapsed to a double backslash
10622 # by the backticks, then collapsed again by the double quotes,
10623 # leaving us with one backslash in the sed expression (right
10624 # before the dot that mustn't act as a wildcard).
10625 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10626 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
10627 # The user is allowed to set LINGUAS to a list of languages to
10628 # install catalogs for. If it's empty that means "all of them."
10629 if test "x$LINGUAS" = x; then
10630 CATALOGS="$CATALOGS $cat"
10631 XLINGUAS="$XLINGUAS $lang"
10632 else
10633 case "$LINGUAS" in *$lang*)
10634 CATALOGS="$CATALOGS $cat"
10635 XLINGUAS="$XLINGUAS $lang"
10636 ;;
10637 esac
10638 fi
10639 done
10640 LINGUAS="$XLINGUAS"
10641 echo "$as_me:$LINENO: result: $LINGUAS" >&5
10642echo "${ECHO_T}$LINGUAS" >&6
10643
10644
10645 DATADIRNAME=share
10646
10647 INSTOBJEXT=.mo
10648
10649 GENCAT=gencat
10650
10651 CATOBJEXT=.gmo
10652
10653fi
10654
10655 MKINSTALLDIRS=
10656 if test -n "$ac_aux_dir"; then
10657 case "$ac_aux_dir" in
10658 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
10659 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
10660 esac
10661 fi
10662 if test -z "$MKINSTALLDIRS"; then
10663 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
10664 fi
10665
10666
10667
10668 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10669echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10670 # Check whether --enable-nls or --disable-nls was given.
10671if test "${enable_nls+set}" = set; then
10672 enableval="$enable_nls"
10673 USE_NLS=$enableval
10674else
10675 USE_NLS=yes
10676fi;
10677 echo "$as_me:$LINENO: result: $USE_NLS" >&5
10678echo "${ECHO_T}$USE_NLS" >&6
10679
10680
10681
10682
10683
10684
10685# Prepare PATH_SEPARATOR.
10686# The user is always right.
10687if test "${PATH_SEPARATOR+set}" != set; then
10688 echo "#! /bin/sh" >conf$$.sh
10689 echo "exit 0" >>conf$$.sh
10690 chmod +x conf$$.sh
10691 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10692 PATH_SEPARATOR=';'
10693 else
10694 PATH_SEPARATOR=:
10695 fi
10696 rm -f conf$$.sh
10697fi
10698
10699# Find out how to test for executable files. Don't use a zero-byte file,
10700# as systems may use methods other than mode bits to determine executability.
10701cat >conf$$.file <<_ASEOF
10702#! /bin/sh
10703exit 0
10704_ASEOF
10705chmod +x conf$$.file
10706if test -x conf$$.file >/dev/null 2>&1; then
10707 ac_executable_p="test -x"
10708else
10709 ac_executable_p="test -f"
10710fi
10711rm -f conf$$.file
10712
10713# Extract the first word of "msgfmt", so it can be a program name with args.
10714set dummy msgfmt; ac_word=$2
10715echo "$as_me:$LINENO: checking for $ac_word" >&5
10716echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10717if test "${ac_cv_path_MSGFMT+set}" = set; then
10718 echo $ECHO_N "(cached) $ECHO_C" >&6
10719else
10720 case "$MSGFMT" in
10721 [\\/]* | ?:[\\/]*)
10722 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10723 ;;
10724 *)
10725 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10726 for ac_dir in $PATH; do
10727 IFS="$ac_save_IFS"
10728 test -z "$ac_dir" && ac_dir=.
10729 for ac_exec_ext in '' $ac_executable_extensions; do
10730 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10731 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
10732 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10733 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
10734 break 2
10735 fi
10736 fi
10737 done
10738 done
10739 IFS="$ac_save_IFS"
10740 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
10741 ;;
10742esac
10743fi
10744MSGFMT="$ac_cv_path_MSGFMT"
10745if test "$MSGFMT" != ":"; then
10746 echo "$as_me:$LINENO: result: $MSGFMT" >&5
10747echo "${ECHO_T}$MSGFMT" >&6
10748else
10749 echo "$as_me:$LINENO: result: no" >&5
10750echo "${ECHO_T}no" >&6
10751fi
10752
10753 # Extract the first word of "gmsgfmt", so it can be a program name with args.
10754set dummy gmsgfmt; ac_word=$2
10755echo "$as_me:$LINENO: checking for $ac_word" >&5
10756echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10757if test "${ac_cv_path_GMSGFMT+set}" = set; then
10758 echo $ECHO_N "(cached) $ECHO_C" >&6
10759else
10760 case $GMSGFMT in
10761 [\\/]* | ?:[\\/]*)
10762 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
10763 ;;
10764 *)
10765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10766for as_dir in $PATH
10767do
10768 IFS=$as_save_IFS
10769 test -z "$as_dir" && as_dir=.
10770 for ac_exec_ext in '' $ac_executable_extensions; do
10771 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10772 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
10773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10774 break 2
10775 fi
10776done
10777done
10778
10779 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
10780 ;;
10781esac
10782fi
10783GMSGFMT=$ac_cv_path_GMSGFMT
252b5132 10784
d7040cdb
SE
10785if test -n "$GMSGFMT"; then
10786 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
10787echo "${ECHO_T}$GMSGFMT" >&6
10788else
10789 echo "$as_me:$LINENO: result: no" >&5
10790echo "${ECHO_T}no" >&6
20e95c23 10791fi
42ecbf5e 10792
20e95c23 10793
252b5132 10794
d7040cdb
SE
10795# Prepare PATH_SEPARATOR.
10796# The user is always right.
10797if test "${PATH_SEPARATOR+set}" != set; then
10798 echo "#! /bin/sh" >conf$$.sh
10799 echo "exit 0" >>conf$$.sh
10800 chmod +x conf$$.sh
10801 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10802 PATH_SEPARATOR=';'
10803 else
10804 PATH_SEPARATOR=:
10805 fi
10806 rm -f conf$$.sh
20e95c23 10807fi
252b5132 10808
d7040cdb
SE
10809# Find out how to test for executable files. Don't use a zero-byte file,
10810# as systems may use methods other than mode bits to determine executability.
10811cat >conf$$.file <<_ASEOF
10812#! /bin/sh
10813exit 0
10814_ASEOF
10815chmod +x conf$$.file
10816if test -x conf$$.file >/dev/null 2>&1; then
10817 ac_executable_p="test -x"
20e95c23 10818else
d7040cdb
SE
10819 ac_executable_p="test -f"
10820fi
10821rm -f conf$$.file
20e95c23 10822
d7040cdb
SE
10823# Extract the first word of "xgettext", so it can be a program name with args.
10824set dummy xgettext; ac_word=$2
10825echo "$as_me:$LINENO: checking for $ac_word" >&5
10826echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10827if test "${ac_cv_path_XGETTEXT+set}" = set; then
10828 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10829else
d7040cdb
SE
10830 case "$XGETTEXT" in
10831 [\\/]* | ?:[\\/]*)
10832 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
10833 ;;
10834 *)
10835 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10836 for ac_dir in $PATH; do
10837 IFS="$ac_save_IFS"
10838 test -z "$ac_dir" && ac_dir=.
10839 for ac_exec_ext in '' $ac_executable_extensions; do
10840 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10841 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
10842 (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
10843 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
10844 break 2
10845 fi
10846 fi
10847 done
10848 done
10849 IFS="$ac_save_IFS"
10850 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
10851 ;;
10852esac
252b5132 10853fi
d7040cdb
SE
10854XGETTEXT="$ac_cv_path_XGETTEXT"
10855if test "$XGETTEXT" != ":"; then
10856 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
10857echo "${ECHO_T}$XGETTEXT" >&6
d5fbea21 10858else
d7040cdb
SE
10859 echo "$as_me:$LINENO: result: no" >&5
10860echo "${ECHO_T}no" >&6
d5fbea21
DJ
10861fi
10862
d7040cdb 10863 rm -f messages.po
d5fbea21 10864
20e95c23 10865
d7040cdb
SE
10866# Prepare PATH_SEPARATOR.
10867# The user is always right.
10868if test "${PATH_SEPARATOR+set}" != set; then
10869 echo "#! /bin/sh" >conf$$.sh
10870 echo "exit 0" >>conf$$.sh
10871 chmod +x conf$$.sh
10872 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10873 PATH_SEPARATOR=';'
10874 else
10875 PATH_SEPARATOR=:
10876 fi
10877 rm -f conf$$.sh
10878fi
20e95c23 10879
d7040cdb
SE
10880# Find out how to test for executable files. Don't use a zero-byte file,
10881# as systems may use methods other than mode bits to determine executability.
10882cat >conf$$.file <<_ASEOF
10883#! /bin/sh
10884exit 0
10885_ASEOF
10886chmod +x conf$$.file
10887if test -x conf$$.file >/dev/null 2>&1; then
10888 ac_executable_p="test -x"
10889else
10890 ac_executable_p="test -f"
10891fi
10892rm -f conf$$.file
20e95c23 10893
d7040cdb
SE
10894# Extract the first word of "msgmerge", so it can be a program name with args.
10895set dummy msgmerge; ac_word=$2
10896echo "$as_me:$LINENO: checking for $ac_word" >&5
10897echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10898if test "${ac_cv_path_MSGMERGE+set}" = set; then
10899 echo $ECHO_N "(cached) $ECHO_C" >&6
10900else
10901 case "$MSGMERGE" in
10902 [\\/]* | ?:[\\/]*)
10903 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
10904 ;;
10905 *)
10906 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10907 for ac_dir in $PATH; do
10908 IFS="$ac_save_IFS"
10909 test -z "$ac_dir" && ac_dir=.
10910 for ac_exec_ext in '' $ac_executable_extensions; do
10911 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10912 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
10913 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
10914 break 2
10915 fi
10916 fi
10917 done
10918 done
10919 IFS="$ac_save_IFS"
10920 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
10921 ;;
10922esac
10923fi
10924MSGMERGE="$ac_cv_path_MSGMERGE"
10925if test "$MSGMERGE" != ":"; then
10926 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
10927echo "${ECHO_T}$MSGMERGE" >&6
10928else
10929 echo "$as_me:$LINENO: result: no" >&5
10930echo "${ECHO_T}no" >&6
10931fi
20e95c23
DJ
10932
10933
d7040cdb
SE
10934 if test "$GMSGFMT" != ":"; then
10935 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
10936 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10937 : ;
10938 else
10939 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
10940 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
10941echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
10942 GMSGFMT=":"
10943 fi
10944 fi
20e95c23 10945
d7040cdb
SE
10946 if test "$XGETTEXT" != ":"; then
10947 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
10948 (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
10949 : ;
10950 else
10951 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
10952echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
10953 XGETTEXT=":"
10954 fi
10955 rm -f messages.po
20e95c23 10956 fi
42ecbf5e 10957
d7040cdb 10958 ac_config_commands="$ac_config_commands default-1"
252b5132 10959
42ecbf5e 10960
252b5132 10961
42ecbf5e
DJ
10962
10963
d7040cdb 10964for ac_prog in 'bison -y' byacc
20e95c23 10965do
d7040cdb
SE
10966 # Extract the first word of "$ac_prog", so it can be a program name with args.
10967set dummy $ac_prog; ac_word=$2
10968echo "$as_me:$LINENO: checking for $ac_word" >&5
10969echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10970if test "${ac_cv_prog_YACC+set}" = set; then
10971 echo $ECHO_N "(cached) $ECHO_C" >&6
20e95c23 10972else
d7040cdb
SE
10973 if test -n "$YACC"; then
10974 ac_cv_prog_YACC="$YACC" # Let the user override the test.
42ecbf5e 10975else
d7040cdb
SE
10976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10977for as_dir in $PATH
10978do
10979 IFS=$as_save_IFS
10980 test -z "$as_dir" && as_dir=.
10981 for ac_exec_ext in '' $ac_executable_extensions; do
10982 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10983 ac_cv_prog_YACC="$ac_prog"
10984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10985 break 2
10986 fi
10987done
10988done
42ecbf5e 10989
42ecbf5e 10990fi
e5a52504 10991fi
d7040cdb
SE
10992YACC=$ac_cv_prog_YACC
10993if test -n "$YACC"; then
10994 echo "$as_me:$LINENO: result: $YACC" >&5
10995echo "${ECHO_T}$YACC" >&6
42ecbf5e 10996else
d7040cdb
SE
10997 echo "$as_me:$LINENO: result: no" >&5
10998echo "${ECHO_T}no" >&6
42ecbf5e 10999fi
252b5132 11000
d7040cdb 11001 test -n "$YACC" && break
42ecbf5e 11002done
d7040cdb 11003test -n "$YACC" || YACC="yacc"
d15b04bd 11004
d7040cdb
SE
11005for ac_prog in flex lex
11006do
11007 # Extract the first word of "$ac_prog", so it can be a program name with args.
11008set dummy $ac_prog; ac_word=$2
11009echo "$as_me:$LINENO: checking for $ac_word" >&5
11010echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11011if test "${ac_cv_prog_LEX+set}" = set; then
20e95c23 11012 echo $ECHO_N "(cached) $ECHO_C" >&6
d15b04bd 11013else
d7040cdb
SE
11014 if test -n "$LEX"; then
11015 ac_cv_prog_LEX="$LEX" # Let the user override the test.
11016else
11017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11018for as_dir in $PATH
11019do
11020 IFS=$as_save_IFS
11021 test -z "$as_dir" && as_dir=.
11022 for ac_exec_ext in '' $ac_executable_extensions; do
11023 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11024 ac_cv_prog_LEX="$ac_prog"
11025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11026 break 2
11027 fi
11028done
11029done
11030
11031fi
11032fi
11033LEX=$ac_cv_prog_LEX
11034if test -n "$LEX"; then
11035 echo "$as_me:$LINENO: result: $LEX" >&5
11036echo "${ECHO_T}$LEX" >&6
11037else
11038 echo "$as_me:$LINENO: result: no" >&5
11039echo "${ECHO_T}no" >&6
d15b04bd 11040fi
e5a52504 11041
d7040cdb
SE
11042 test -n "$LEX" && break
11043done
11044test -n "$LEX" || LEX=":"
42ecbf5e 11045
d7040cdb
SE
11046if test -z "$LEXLIB"
11047then
11048 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
11049echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
11050if test "${ac_cv_lib_fl_yywrap+set}" = set; then
42ecbf5e
DJ
11051 echo $ECHO_N "(cached) $ECHO_C" >&6
11052else
d7040cdb
SE
11053 ac_check_lib_save_LIBS=$LIBS
11054LIBS="-lfl $LIBS"
11055cat >conftest.$ac_ext <<_ACEOF
42ecbf5e
DJ
11056/* confdefs.h. */
11057_ACEOF
11058cat confdefs.h >>conftest.$ac_ext
11059cat >>conftest.$ac_ext <<_ACEOF
11060/* end confdefs.h. */
11061
d7040cdb
SE
11062/* Override any gcc2 internal prototype to avoid an error. */
11063#ifdef __cplusplus
11064extern "C"
11065#endif
11066/* We use char because int might match the return type of a gcc2
11067 builtin and then its argument prototype would still apply. */
11068char yywrap ();
42ecbf5e
DJ
11069int
11070main ()
11071{
d7040cdb 11072yywrap ();
42ecbf5e
DJ
11073 ;
11074 return 0;
11075}
11076_ACEOF
d7040cdb
SE
11077rm -f conftest.$ac_objext conftest$ac_exeext
11078if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11079 (eval $ac_link) 2>conftest.er1
42ecbf5e
DJ
11080 ac_status=$?
11081 grep -v '^ *+' conftest.er1 >conftest.err
11082 rm -f conftest.er1
11083 cat conftest.err >&5
11084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11085 (exit $ac_status); } &&
502bdb00
JW
11086 { ac_try='test -z "$ac_c_werror_flag"
11087 || test ! -s conftest.err'
42ecbf5e
DJ
11088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11089 (eval $ac_try) 2>&5
11090 ac_status=$?
11091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11092 (exit $ac_status); }; } &&
d7040cdb 11093 { ac_try='test -s conftest$ac_exeext'
42ecbf5e
DJ
11094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11095 (eval $ac_try) 2>&5
11096 ac_status=$?
11097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11098 (exit $ac_status); }; }; then
d7040cdb 11099 ac_cv_lib_fl_yywrap=yes
42ecbf5e
DJ
11100else
11101 echo "$as_me: failed program was:" >&5
11102sed 's/^/| /' conftest.$ac_ext >&5
11103
d7040cdb 11104ac_cv_lib_fl_yywrap=no
42ecbf5e 11105fi
d7040cdb
SE
11106rm -f conftest.err conftest.$ac_objext \
11107 conftest$ac_exeext conftest.$ac_ext
11108LIBS=$ac_check_lib_save_LIBS
42ecbf5e 11109fi
d7040cdb
SE
11110echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
11111echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
11112if test $ac_cv_lib_fl_yywrap = yes; then
11113 LEXLIB="-lfl"
20e95c23 11114else
d7040cdb
SE
11115 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
11116echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
11117if test "${ac_cv_lib_l_yywrap+set}" = set; then
11118 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11119else
d7040cdb
SE
11120 ac_check_lib_save_LIBS=$LIBS
11121LIBS="-ll $LIBS"
11122cat >conftest.$ac_ext <<_ACEOF
20e95c23 11123/* confdefs.h. */
42ecbf5e 11124_ACEOF
20e95c23
DJ
11125cat confdefs.h >>conftest.$ac_ext
11126cat >>conftest.$ac_ext <<_ACEOF
11127/* end confdefs.h. */
20e95c23 11128
d7040cdb
SE
11129/* Override any gcc2 internal prototype to avoid an error. */
11130#ifdef __cplusplus
11131extern "C"
11132#endif
11133/* We use char because int might match the return type of a gcc2
11134 builtin and then its argument prototype would still apply. */
11135char yywrap ();
20e95c23
DJ
11136int
11137main ()
11138{
d7040cdb
SE
11139yywrap ();
11140 ;
11141 return 0;
20e95c23
DJ
11142}
11143_ACEOF
d7040cdb 11144rm -f conftest.$ac_objext conftest$ac_exeext
20e95c23 11145if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d7040cdb 11146 (eval $ac_link) 2>conftest.er1
42ecbf5e 11147 ac_status=$?
d7040cdb
SE
11148 grep -v '^ *+' conftest.er1 >conftest.err
11149 rm -f conftest.er1
11150 cat conftest.err >&5
42ecbf5e 11151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
11152 (exit $ac_status); } &&
11153 { ac_try='test -z "$ac_c_werror_flag"
11154 || test ! -s conftest.err'
11155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11156 (eval $ac_try) 2>&5
11157 ac_status=$?
11158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11159 (exit $ac_status); }; } &&
11160 { ac_try='test -s conftest$ac_exeext'
20e95c23
DJ
11161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11162 (eval $ac_try) 2>&5
11163 ac_status=$?
11164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11165 (exit $ac_status); }; }; then
d7040cdb 11166 ac_cv_lib_l_yywrap=yes
252b5132 11167else
d7040cdb 11168 echo "$as_me: failed program was:" >&5
20e95c23
DJ
11169sed 's/^/| /' conftest.$ac_ext >&5
11170
d7040cdb 11171ac_cv_lib_l_yywrap=no
252b5132 11172fi
d7040cdb
SE
11173rm -f conftest.err conftest.$ac_objext \
11174 conftest$ac_exeext conftest.$ac_ext
11175LIBS=$ac_check_lib_save_LIBS
20e95c23 11176fi
d7040cdb
SE
11177echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
11178echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
11179if test $ac_cv_lib_l_yywrap = yes; then
11180 LEXLIB="-ll"
20e95c23 11181fi
20e95c23
DJ
11182
11183fi
11184
d7040cdb 11185fi
20e95c23 11186
d7040cdb
SE
11187if test "x$LEX" != "x:"; then
11188 echo "$as_me:$LINENO: checking lex output file root" >&5
11189echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
11190if test "${ac_cv_prog_lex_root+set}" = set; then
42ecbf5e 11191 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11192else
d7040cdb
SE
11193 # The minimal lex program is just a single line: %%. But some broken lexes
11194# (Solaris, I think it was) want two %% lines, so accommodate them.
11195cat >conftest.l <<_ACEOF
11196%%
11197%%
42ecbf5e 11198_ACEOF
d7040cdb
SE
11199{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
11200 (eval $LEX conftest.l) 2>&5
11201 ac_status=$?
11202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11203 (exit $ac_status); }
11204if test -f lex.yy.c; then
11205 ac_cv_prog_lex_root=lex.yy
11206elif test -f lexyy.c; then
11207 ac_cv_prog_lex_root=lexyy
11208else
11209 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
11210echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
11211 { (exit 1); exit 1; }; }
11212fi
11213fi
11214echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
11215echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
11216rm -f conftest.l
11217LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
20e95c23 11218
d7040cdb
SE
11219echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
11220echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
11221if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
11222 echo $ECHO_N "(cached) $ECHO_C" >&6
11223else
11224 # POSIX says lex can declare yytext either as a pointer or an array; the
11225# default is implementation-dependent. Figure out which it is, since
11226# not all implementations provide the %pointer and %array declarations.
11227ac_cv_prog_lex_yytext_pointer=no
11228echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
11229ac_save_LIBS=$LIBS
11230LIBS="$LIBS $LEXLIB"
11231cat >conftest.$ac_ext <<_ACEOF
11232`cat $LEX_OUTPUT_ROOT.c`
20e95c23 11233_ACEOF
d7040cdb
SE
11234rm -f conftest.$ac_objext conftest$ac_exeext
11235if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11236 (eval $ac_link) 2>conftest.er1
42ecbf5e
DJ
11237 ac_status=$?
11238 grep -v '^ *+' conftest.er1 >conftest.err
11239 rm -f conftest.er1
11240 cat conftest.err >&5
11241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242 (exit $ac_status); } &&
502bdb00
JW
11243 { ac_try='test -z "$ac_c_werror_flag"
11244 || test ! -s conftest.err'
42ecbf5e
DJ
11245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11246 (eval $ac_try) 2>&5
11247 ac_status=$?
11248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11249 (exit $ac_status); }; } &&
d7040cdb 11250 { ac_try='test -s conftest$ac_exeext'
42ecbf5e
DJ
11251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11252 (eval $ac_try) 2>&5
11253 ac_status=$?
11254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11255 (exit $ac_status); }; }; then
d7040cdb
SE
11256 ac_cv_prog_lex_yytext_pointer=yes
11257else
11258 echo "$as_me: failed program was:" >&5
11259sed 's/^/| /' conftest.$ac_ext >&5
11260
11261fi
11262rm -f conftest.err conftest.$ac_objext \
11263 conftest$ac_exeext conftest.$ac_ext
11264LIBS=$ac_save_LIBS
11265rm -f "${LEX_OUTPUT_ROOT}.c"
11266
11267fi
11268echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
11269echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
11270if test $ac_cv_prog_lex_yytext_pointer = yes; then
11271
11272cat >>confdefs.h <<\_ACEOF
11273#define YYTEXT_POINTER 1
11274_ACEOF
11275
11276fi
11277
11278fi
11279if test "$LEX" = :; then
11280 LEX=${am_missing_run}flex
11281fi
11282
11283echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11284echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11285 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11286if test "${enable_maintainer_mode+set}" = set; then
11287 enableval="$enable_maintainer_mode"
11288 USE_MAINTAINER_MODE=$enableval
252b5132 11289else
d7040cdb
SE
11290 USE_MAINTAINER_MODE=no
11291fi;
11292 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
11293echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
42ecbf5e 11294
d7040cdb
SE
11295
11296if test $USE_MAINTAINER_MODE = yes; then
11297 MAINTAINER_MODE_TRUE=
11298 MAINTAINER_MODE_FALSE='#'
11299else
11300 MAINTAINER_MODE_TRUE='#'
11301 MAINTAINER_MODE_FALSE=
252b5132 11302fi
252b5132 11303
d7040cdb
SE
11304 MAINT=$MAINTAINER_MODE_TRUE
11305
11306
11307
11308
11309if false; then
11310 GENINSRC_NEVER_TRUE=
11311 GENINSRC_NEVER_FALSE='#'
11312else
11313 GENINSRC_NEVER_TRUE='#'
11314 GENINSRC_NEVER_FALSE=
252b5132
RH
11315fi
11316
d7040cdb
SE
11317
11318. ${srcdir}/configure.host
11319
11320
11321
11322
252b5132
RH
11323
11324
42ecbf5e
DJ
11325
11326
11327
11328
ebe1fac1 11329
a3ffa599
L
11330
11331
11332for ac_header in string.h strings.h stdlib.h unistd.h elf-hints.h limits.h sys/param.h
252b5132 11333do
42ecbf5e
DJ
11334as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11335if eval "test \"\${$as_ac_Header+set}\" = set"; then
11336 echo "$as_me:$LINENO: checking for $ac_header" >&5
11337echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11338if eval "test \"\${$as_ac_Header+set}\" = set"; then
11339 echo $ECHO_N "(cached) $ECHO_C" >&6
11340fi
11341echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11342echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11343else
11344 # Is the header compilable?
11345echo "$as_me:$LINENO: checking $ac_header usability" >&5
11346echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11347cat >conftest.$ac_ext <<_ACEOF
11348/* confdefs.h. */
11349_ACEOF
11350cat confdefs.h >>conftest.$ac_ext
11351cat >>conftest.$ac_ext <<_ACEOF
11352/* end confdefs.h. */
11353$ac_includes_default
11354#include <$ac_header>
11355_ACEOF
11356rm -f conftest.$ac_objext
11357if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11358 (eval $ac_compile) 2>conftest.er1
11359 ac_status=$?
11360 grep -v '^ *+' conftest.er1 >conftest.err
11361 rm -f conftest.er1
11362 cat conftest.err >&5
11363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11364 (exit $ac_status); } &&
502bdb00
JW
11365 { ac_try='test -z "$ac_c_werror_flag"
11366 || test ! -s conftest.err'
42ecbf5e
DJ
11367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11368 (eval $ac_try) 2>&5
11369 ac_status=$?
11370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11371 (exit $ac_status); }; } &&
11372 { ac_try='test -s conftest.$ac_objext'
11373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11374 (eval $ac_try) 2>&5
11375 ac_status=$?
11376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11377 (exit $ac_status); }; }; then
11378 ac_header_compiler=yes
11379else
11380 echo "$as_me: failed program was:" >&5
11381sed 's/^/| /' conftest.$ac_ext >&5
11382
11383ac_header_compiler=no
11384fi
11385rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11386echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11387echo "${ECHO_T}$ac_header_compiler" >&6
11388
11389# Is the header present?
11390echo "$as_me:$LINENO: checking $ac_header presence" >&5
11391echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11392cat >conftest.$ac_ext <<_ACEOF
11393/* confdefs.h. */
11394_ACEOF
11395cat confdefs.h >>conftest.$ac_ext
11396cat >>conftest.$ac_ext <<_ACEOF
11397/* end confdefs.h. */
11398#include <$ac_header>
11399_ACEOF
11400if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11401 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11402 ac_status=$?
11403 grep -v '^ *+' conftest.er1 >conftest.err
11404 rm -f conftest.er1
11405 cat conftest.err >&5
11406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11407 (exit $ac_status); } >/dev/null; then
11408 if test -s conftest.err; then
11409 ac_cpp_err=$ac_c_preproc_warn_flag
11410 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11411 else
11412 ac_cpp_err=
11413 fi
252b5132 11414else
42ecbf5e 11415 ac_cpp_err=yes
252b5132 11416fi
42ecbf5e
DJ
11417if test -z "$ac_cpp_err"; then
11418 ac_header_preproc=yes
11419else
11420 echo "$as_me: failed program was:" >&5
11421sed 's/^/| /' conftest.$ac_ext >&5
11422
11423 ac_header_preproc=no
252b5132 11424fi
42ecbf5e
DJ
11425rm -f conftest.err conftest.$ac_ext
11426echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11427echo "${ECHO_T}$ac_header_preproc" >&6
11428
11429# So? What about this header?
11430case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11431 yes:no: )
11432 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11433echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11434 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11435echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11436 ac_header_preproc=yes
11437 ;;
11438 no:yes:* )
11439 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11440echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11441 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11442echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11443 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11444echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11445 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11446echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11447 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11448echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11449 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11450echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11451 (
11452 cat <<\_ASBOX
11453## ------------------------------------------ ##
11454## Report this to the AC_PACKAGE_NAME lists. ##
11455## ------------------------------------------ ##
11456_ASBOX
11457 ) |
11458 sed "s/^/$as_me: WARNING: /" >&2
11459 ;;
11460esac
11461echo "$as_me:$LINENO: checking for $ac_header" >&5
11462echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11463if eval "test \"\${$as_ac_Header+set}\" = set"; then
11464 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11465else
42ecbf5e
DJ
11466 eval "$as_ac_Header=\$ac_header_preproc"
11467fi
11468echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11469echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11470
252b5132 11471fi
42ecbf5e
DJ
11472if test `eval echo '${'$as_ac_Header'}'` = yes; then
11473 cat >>confdefs.h <<_ACEOF
11474#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11475_ACEOF
11476
11477fi
11478
252b5132
RH
11479done
11480
42ecbf5e
DJ
11481
11482
11483
dc27aea4
AM
11484
11485
11486for ac_func in glob mkstemp realpath sbrk waitpid
252b5132 11487do
42ecbf5e
DJ
11488as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11489echo "$as_me:$LINENO: checking for $ac_func" >&5
11490echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11491if eval "test \"\${$as_ac_var+set}\" = set"; then
11492 echo $ECHO_N "(cached) $ECHO_C" >&6
11493else
11494 cat >conftest.$ac_ext <<_ACEOF
11495/* confdefs.h. */
11496_ACEOF
11497cat confdefs.h >>conftest.$ac_ext
11498cat >>conftest.$ac_ext <<_ACEOF
11499/* end confdefs.h. */
11500/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11501 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11502#define $ac_func innocuous_$ac_func
11503
252b5132 11504/* System header to define __stub macros and hopefully few prototypes,
42ecbf5e
DJ
11505 which can conflict with char $ac_func (); below.
11506 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11507 <limits.h> exists even on freestanding compilers. */
11508
11509#ifdef __STDC__
11510# include <limits.h>
11511#else
11512# include <assert.h>
11513#endif
d15b04bd 11514
42ecbf5e 11515#undef $ac_func
d15b04bd 11516
42ecbf5e
DJ
11517/* Override any gcc2 internal prototype to avoid an error. */
11518#ifdef __cplusplus
11519extern "C"
11520{
11521#endif
11522/* We use char because int might match the return type of a gcc2
11523 builtin and then its argument prototype would still apply. */
11524char $ac_func ();
252b5132
RH
11525/* The GNU C library defines this for functions which it implements
11526 to always fail with ENOSYS. Some functions are actually named
11527 something starting with __ and the normal name is an alias. */
11528#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11529choke me
11530#else
42ecbf5e
DJ
11531char (*f) () = $ac_func;
11532#endif
11533#ifdef __cplusplus
11534}
252b5132
RH
11535#endif
11536
42ecbf5e
DJ
11537int
11538main ()
11539{
11540return f != $ac_func;
11541 ;
11542 return 0;
11543}
11544_ACEOF
11545rm -f conftest.$ac_objext conftest$ac_exeext
11546if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11547 (eval $ac_link) 2>conftest.er1
11548 ac_status=$?
11549 grep -v '^ *+' conftest.er1 >conftest.err
11550 rm -f conftest.er1
11551 cat conftest.err >&5
11552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11553 (exit $ac_status); } &&
502bdb00
JW
11554 { ac_try='test -z "$ac_c_werror_flag"
11555 || test ! -s conftest.err'
42ecbf5e
DJ
11556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11557 (eval $ac_try) 2>&5
11558 ac_status=$?
11559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11560 (exit $ac_status); }; } &&
11561 { ac_try='test -s conftest$ac_exeext'
11562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11563 (eval $ac_try) 2>&5
11564 ac_status=$?
11565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566 (exit $ac_status); }; }; then
11567 eval "$as_ac_var=yes"
11568else
11569 echo "$as_me: failed program was:" >&5
11570sed 's/^/| /' conftest.$ac_ext >&5
11571
11572eval "$as_ac_var=no"
11573fi
11574rm -f conftest.err conftest.$ac_objext \
11575 conftest$ac_exeext conftest.$ac_ext
11576fi
11577echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11578echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11579if test `eval echo '${'$as_ac_var'}'` = yes; then
11580 cat >>confdefs.h <<_ACEOF
11581#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11582_ACEOF
252b5132 11583
252b5132
RH
11584fi
11585done
11586
42ecbf5e
DJ
11587
11588
11589
11590
11591
252b5132 11592ac_header_dirent=no
42ecbf5e
DJ
11593for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11594 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11595echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
11596echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
11597if eval "test \"\${$as_ac_Header+set}\" = set"; then
11598 echo $ECHO_N "(cached) $ECHO_C" >&6
11599else
11600 cat >conftest.$ac_ext <<_ACEOF
11601/* confdefs.h. */
11602_ACEOF
11603cat confdefs.h >>conftest.$ac_ext
11604cat >>conftest.$ac_ext <<_ACEOF
11605/* end confdefs.h. */
252b5132
RH
11606#include <sys/types.h>
11607#include <$ac_hdr>
42ecbf5e
DJ
11608
11609int
11610main ()
11611{
11612if ((DIR *) 0)
11613return 0;
11614 ;
11615 return 0;
11616}
11617_ACEOF
11618rm -f conftest.$ac_objext
11619if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11620 (eval $ac_compile) 2>conftest.er1
11621 ac_status=$?
11622 grep -v '^ *+' conftest.er1 >conftest.err
11623 rm -f conftest.er1
11624 cat conftest.err >&5
11625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626 (exit $ac_status); } &&
502bdb00
JW
11627 { ac_try='test -z "$ac_c_werror_flag"
11628 || test ! -s conftest.err'
42ecbf5e
DJ
11629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11630 (eval $ac_try) 2>&5
11631 ac_status=$?
11632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11633 (exit $ac_status); }; } &&
11634 { ac_try='test -s conftest.$ac_objext'
11635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11636 (eval $ac_try) 2>&5
11637 ac_status=$?
11638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11639 (exit $ac_status); }; }; then
11640 eval "$as_ac_Header=yes"
11641else
11642 echo "$as_me: failed program was:" >&5
11643sed 's/^/| /' conftest.$ac_ext >&5
11644
11645eval "$as_ac_Header=no"
11646fi
11647rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11648fi
11649echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11650echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11651if test `eval echo '${'$as_ac_Header'}'` = yes; then
11652 cat >>confdefs.h <<_ACEOF
11653#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11654_ACEOF
11655
11656ac_header_dirent=$ac_hdr; break
d15b04bd 11657fi
42ecbf5e 11658
d15b04bd
L
11659done
11660# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11661if test $ac_header_dirent = dirent.h; then
42ecbf5e
DJ
11662 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11663echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11664if test "${ac_cv_search_opendir+set}" = set; then
11665 echo $ECHO_N "(cached) $ECHO_C" >&6
11666else
11667 ac_func_search_save_LIBS=$LIBS
11668ac_cv_search_opendir=no
11669cat >conftest.$ac_ext <<_ACEOF
11670/* confdefs.h. */
11671_ACEOF
11672cat confdefs.h >>conftest.$ac_ext
11673cat >>conftest.$ac_ext <<_ACEOF
11674/* end confdefs.h. */
11675
e5a52504 11676/* Override any gcc2 internal prototype to avoid an error. */
42ecbf5e
DJ
11677#ifdef __cplusplus
11678extern "C"
11679#endif
e5a52504 11680/* We use char because int might match the return type of a gcc2
42ecbf5e
DJ
11681 builtin and then its argument prototype would still apply. */
11682char opendir ();
11683int
11684main ()
11685{
11686opendir ();
11687 ;
11688 return 0;
11689}
11690_ACEOF
11691rm -f conftest.$ac_objext conftest$ac_exeext
11692if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11693 (eval $ac_link) 2>conftest.er1
11694 ac_status=$?
11695 grep -v '^ *+' conftest.er1 >conftest.err
11696 rm -f conftest.er1
11697 cat conftest.err >&5
11698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699 (exit $ac_status); } &&
502bdb00
JW
11700 { ac_try='test -z "$ac_c_werror_flag"
11701 || test ! -s conftest.err'
42ecbf5e
DJ
11702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11703 (eval $ac_try) 2>&5
11704 ac_status=$?
11705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706 (exit $ac_status); }; } &&
11707 { ac_try='test -s conftest$ac_exeext'
11708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11709 (eval $ac_try) 2>&5
11710 ac_status=$?
11711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11712 (exit $ac_status); }; }; then
11713 ac_cv_search_opendir="none required"
11714else
11715 echo "$as_me: failed program was:" >&5
11716sed 's/^/| /' conftest.$ac_ext >&5
11717
11718fi
11719rm -f conftest.err conftest.$ac_objext \
11720 conftest$ac_exeext conftest.$ac_ext
11721if test "$ac_cv_search_opendir" = no; then
11722 for ac_lib in dir; do
11723 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11724 cat >conftest.$ac_ext <<_ACEOF
11725/* confdefs.h. */
11726_ACEOF
11727cat confdefs.h >>conftest.$ac_ext
11728cat >>conftest.$ac_ext <<_ACEOF
11729/* end confdefs.h. */
e5a52504 11730
42ecbf5e
DJ
11731/* Override any gcc2 internal prototype to avoid an error. */
11732#ifdef __cplusplus
11733extern "C"
11734#endif
11735/* We use char because int might match the return type of a gcc2
11736 builtin and then its argument prototype would still apply. */
11737char opendir ();
11738int
11739main ()
11740{
11741opendir ();
11742 ;
11743 return 0;
11744}
11745_ACEOF
11746rm -f conftest.$ac_objext conftest$ac_exeext
11747if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11748 (eval $ac_link) 2>conftest.er1
11749 ac_status=$?
11750 grep -v '^ *+' conftest.er1 >conftest.err
11751 rm -f conftest.er1
11752 cat conftest.err >&5
11753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754 (exit $ac_status); } &&
502bdb00
JW
11755 { ac_try='test -z "$ac_c_werror_flag"
11756 || test ! -s conftest.err'
42ecbf5e
DJ
11757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11758 (eval $ac_try) 2>&5
11759 ac_status=$?
11760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761 (exit $ac_status); }; } &&
11762 { ac_try='test -s conftest$ac_exeext'
11763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11764 (eval $ac_try) 2>&5
11765 ac_status=$?
11766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11767 (exit $ac_status); }; }; then
11768 ac_cv_search_opendir="-l$ac_lib"
11769break
11770else
11771 echo "$as_me: failed program was:" >&5
11772sed 's/^/| /' conftest.$ac_ext >&5
11773
11774fi
11775rm -f conftest.err conftest.$ac_objext \
11776 conftest$ac_exeext conftest.$ac_ext
11777 done
252b5132 11778fi
42ecbf5e
DJ
11779LIBS=$ac_func_search_save_LIBS
11780fi
11781echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11782echo "${ECHO_T}$ac_cv_search_opendir" >&6
11783if test "$ac_cv_search_opendir" != no; then
11784 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11785
d15b04bd 11786fi
252b5132
RH
11787
11788else
42ecbf5e
DJ
11789 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11790echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11791if test "${ac_cv_search_opendir+set}" = set; then
11792 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11793else
42ecbf5e
DJ
11794 ac_func_search_save_LIBS=$LIBS
11795ac_cv_search_opendir=no
11796cat >conftest.$ac_ext <<_ACEOF
11797/* confdefs.h. */
11798_ACEOF
11799cat confdefs.h >>conftest.$ac_ext
11800cat >>conftest.$ac_ext <<_ACEOF
11801/* end confdefs.h. */
11802
252b5132 11803/* Override any gcc2 internal prototype to avoid an error. */
42ecbf5e
DJ
11804#ifdef __cplusplus
11805extern "C"
11806#endif
252b5132 11807/* We use char because int might match the return type of a gcc2
42ecbf5e
DJ
11808 builtin and then its argument prototype would still apply. */
11809char opendir ();
11810int
11811main ()
11812{
11813opendir ();
11814 ;
11815 return 0;
11816}
11817_ACEOF
11818rm -f conftest.$ac_objext conftest$ac_exeext
11819if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11820 (eval $ac_link) 2>conftest.er1
11821 ac_status=$?
11822 grep -v '^ *+' conftest.er1 >conftest.err
11823 rm -f conftest.er1
11824 cat conftest.err >&5
11825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11826 (exit $ac_status); } &&
502bdb00
JW
11827 { ac_try='test -z "$ac_c_werror_flag"
11828 || test ! -s conftest.err'
42ecbf5e
DJ
11829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11830 (eval $ac_try) 2>&5
11831 ac_status=$?
11832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833 (exit $ac_status); }; } &&
11834 { ac_try='test -s conftest$ac_exeext'
11835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11836 (eval $ac_try) 2>&5
11837 ac_status=$?
11838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839 (exit $ac_status); }; }; then
11840 ac_cv_search_opendir="none required"
11841else
11842 echo "$as_me: failed program was:" >&5
11843sed 's/^/| /' conftest.$ac_ext >&5
11844
11845fi
11846rm -f conftest.err conftest.$ac_objext \
11847 conftest$ac_exeext conftest.$ac_ext
11848if test "$ac_cv_search_opendir" = no; then
11849 for ac_lib in x; do
11850 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11851 cat >conftest.$ac_ext <<_ACEOF
11852/* confdefs.h. */
11853_ACEOF
11854cat confdefs.h >>conftest.$ac_ext
11855cat >>conftest.$ac_ext <<_ACEOF
11856/* end confdefs.h. */
252b5132 11857
42ecbf5e
DJ
11858/* Override any gcc2 internal prototype to avoid an error. */
11859#ifdef __cplusplus
11860extern "C"
11861#endif
11862/* We use char because int might match the return type of a gcc2
11863 builtin and then its argument prototype would still apply. */
11864char opendir ();
11865int
11866main ()
11867{
11868opendir ();
11869 ;
11870 return 0;
11871}
11872_ACEOF
11873rm -f conftest.$ac_objext conftest$ac_exeext
11874if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11875 (eval $ac_link) 2>conftest.er1
11876 ac_status=$?
11877 grep -v '^ *+' conftest.er1 >conftest.err
11878 rm -f conftest.er1
11879 cat conftest.err >&5
11880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881 (exit $ac_status); } &&
502bdb00
JW
11882 { ac_try='test -z "$ac_c_werror_flag"
11883 || test ! -s conftest.err'
42ecbf5e
DJ
11884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11885 (eval $ac_try) 2>&5
11886 ac_status=$?
11887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11888 (exit $ac_status); }; } &&
11889 { ac_try='test -s conftest$ac_exeext'
11890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11891 (eval $ac_try) 2>&5
11892 ac_status=$?
11893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11894 (exit $ac_status); }; }; then
11895 ac_cv_search_opendir="-l$ac_lib"
11896break
11897else
11898 echo "$as_me: failed program was:" >&5
11899sed 's/^/| /' conftest.$ac_ext >&5
11900
11901fi
11902rm -f conftest.err conftest.$ac_objext \
11903 conftest$ac_exeext conftest.$ac_ext
11904 done
252b5132 11905fi
42ecbf5e 11906LIBS=$ac_func_search_save_LIBS
252b5132 11907fi
42ecbf5e
DJ
11908echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11909echo "${ECHO_T}$ac_cv_search_opendir" >&6
11910if test "$ac_cv_search_opendir" != no; then
11911 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11912
d15b04bd 11913fi
252b5132
RH
11914
11915fi
11916
11917
42ecbf5e
DJ
11918echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
11919echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
11920if test "${ld_cv_decl_getopt_unistd_h+set}" = set; then
11921 echo $ECHO_N "(cached) $ECHO_C" >&6
34875e64 11922else
42ecbf5e
DJ
11923 cat >conftest.$ac_ext <<_ACEOF
11924/* confdefs.h. */
11925_ACEOF
11926cat confdefs.h >>conftest.$ac_ext
11927cat >>conftest.$ac_ext <<_ACEOF
11928/* end confdefs.h. */
34875e64 11929#include <unistd.h>
42ecbf5e
DJ
11930int
11931main ()
11932{
34875e64 11933extern int getopt (int, char *const*, const char *);
42ecbf5e
DJ
11934 ;
11935 return 0;
11936}
11937_ACEOF
11938rm -f conftest.$ac_objext
11939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11940 (eval $ac_compile) 2>conftest.er1
11941 ac_status=$?
11942 grep -v '^ *+' conftest.er1 >conftest.err
11943 rm -f conftest.er1
11944 cat conftest.err >&5
11945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946 (exit $ac_status); } &&
502bdb00
JW
11947 { ac_try='test -z "$ac_c_werror_flag"
11948 || test ! -s conftest.err'
42ecbf5e
DJ
11949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11950 (eval $ac_try) 2>&5
11951 ac_status=$?
11952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11953 (exit $ac_status); }; } &&
11954 { ac_try='test -s conftest.$ac_objext'
11955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11956 (eval $ac_try) 2>&5
11957 ac_status=$?
11958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11959 (exit $ac_status); }; }; then
34875e64
NC
11960 ld_cv_decl_getopt_unistd_h=yes
11961else
42ecbf5e
DJ
11962 echo "$as_me: failed program was:" >&5
11963sed 's/^/| /' conftest.$ac_ext >&5
11964
11965ld_cv_decl_getopt_unistd_h=no
34875e64 11966fi
42ecbf5e 11967rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34875e64
NC
11968fi
11969
42ecbf5e
DJ
11970echo "$as_me:$LINENO: result: $ld_cv_decl_getopt_unistd_h" >&5
11971echo "${ECHO_T}$ld_cv_decl_getopt_unistd_h" >&6
34875e64 11972if test $ld_cv_decl_getopt_unistd_h = yes; then
42ecbf5e
DJ
11973
11974cat >>confdefs.h <<\_ACEOF
34875e64 11975#define HAVE_DECL_GETOPT 1
42ecbf5e 11976_ACEOF
34875e64
NC
11977
11978fi
42ecbf5e 11979
252b5132
RH
11980
11981case "${host}" in
a8100d5b 11982*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
42ecbf5e
DJ
11983
11984cat >>confdefs.h <<\_ACEOF
252b5132 11985#define USE_BINARY_FOPEN 1
42ecbf5e 11986_ACEOF
252b5132
RH
11987 ;;
11988esac
11989
502bdb00
JW
11990echo "$as_me:$LINENO: checking whether strstr is declared" >&5
11991echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
11992if test "${ac_cv_have_decl_strstr+set}" = set; then
42ecbf5e 11993 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11994else
42ecbf5e
DJ
11995 cat >conftest.$ac_ext <<_ACEOF
11996/* confdefs.h. */
11997_ACEOF
11998cat confdefs.h >>conftest.$ac_ext
11999cat >>conftest.$ac_ext <<_ACEOF
12000/* end confdefs.h. */
502bdb00 12001$ac_includes_default
42ecbf5e
DJ
12002int
12003main ()
12004{
502bdb00
JW
12005#ifndef strstr
12006 char *p = (char *) strstr;
12007#endif
12008
42ecbf5e
DJ
12009 ;
12010 return 0;
12011}
12012_ACEOF
12013rm -f conftest.$ac_objext
12014if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12015 (eval $ac_compile) 2>conftest.er1
12016 ac_status=$?
12017 grep -v '^ *+' conftest.er1 >conftest.err
12018 rm -f conftest.er1
12019 cat conftest.err >&5
12020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021 (exit $ac_status); } &&
502bdb00
JW
12022 { ac_try='test -z "$ac_c_werror_flag"
12023 || test ! -s conftest.err'
42ecbf5e
DJ
12024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12025 (eval $ac_try) 2>&5
12026 ac_status=$?
12027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12028 (exit $ac_status); }; } &&
12029 { ac_try='test -s conftest.$ac_objext'
12030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12031 (eval $ac_try) 2>&5
12032 ac_status=$?
12033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12034 (exit $ac_status); }; }; then
502bdb00 12035 ac_cv_have_decl_strstr=yes
252b5132 12036else
42ecbf5e
DJ
12037 echo "$as_me: failed program was:" >&5
12038sed 's/^/| /' conftest.$ac_ext >&5
12039
502bdb00 12040ac_cv_have_decl_strstr=no
252b5132 12041fi
42ecbf5e 12042rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 12043fi
502bdb00
JW
12044echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
12045echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
12046if test $ac_cv_have_decl_strstr = yes; then
252b5132 12047
502bdb00
JW
12048cat >>confdefs.h <<_ACEOF
12049#define HAVE_DECL_STRSTR 1
12050_ACEOF
42ecbf5e 12051
502bdb00
JW
12052
12053else
12054 cat >>confdefs.h <<_ACEOF
12055#define HAVE_DECL_STRSTR 0
42ecbf5e 12056_ACEOF
252b5132 12057
252b5132 12058
502bdb00
JW
12059fi
12060echo "$as_me:$LINENO: checking whether free is declared" >&5
12061echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
12062if test "${ac_cv_have_decl_free+set}" = set; then
42ecbf5e 12063 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12064else
42ecbf5e
DJ
12065 cat >conftest.$ac_ext <<_ACEOF
12066/* confdefs.h. */
12067_ACEOF
12068cat confdefs.h >>conftest.$ac_ext
12069cat >>conftest.$ac_ext <<_ACEOF
12070/* end confdefs.h. */
502bdb00 12071$ac_includes_default
42ecbf5e
DJ
12072int
12073main ()
12074{
502bdb00
JW
12075#ifndef free
12076 char *p = (char *) free;
12077#endif
12078
42ecbf5e
DJ
12079 ;
12080 return 0;
12081}
12082_ACEOF
12083rm -f conftest.$ac_objext
12084if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12085 (eval $ac_compile) 2>conftest.er1
12086 ac_status=$?
12087 grep -v '^ *+' conftest.er1 >conftest.err
12088 rm -f conftest.er1
12089 cat conftest.err >&5
12090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12091 (exit $ac_status); } &&
502bdb00
JW
12092 { ac_try='test -z "$ac_c_werror_flag"
12093 || test ! -s conftest.err'
42ecbf5e
DJ
12094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12095 (eval $ac_try) 2>&5
12096 ac_status=$?
12097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12098 (exit $ac_status); }; } &&
12099 { ac_try='test -s conftest.$ac_objext'
12100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12101 (eval $ac_try) 2>&5
12102 ac_status=$?
12103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104 (exit $ac_status); }; }; then
502bdb00 12105 ac_cv_have_decl_free=yes
252b5132 12106else
42ecbf5e
DJ
12107 echo "$as_me: failed program was:" >&5
12108sed 's/^/| /' conftest.$ac_ext >&5
12109
502bdb00 12110ac_cv_have_decl_free=no
252b5132 12111fi
42ecbf5e 12112rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 12113fi
502bdb00
JW
12114echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
12115echo "${ECHO_T}$ac_cv_have_decl_free" >&6
12116if test $ac_cv_have_decl_free = yes; then
252b5132 12117
502bdb00
JW
12118cat >>confdefs.h <<_ACEOF
12119#define HAVE_DECL_FREE 1
12120_ACEOF
42ecbf5e 12121
502bdb00
JW
12122
12123else
12124 cat >>confdefs.h <<_ACEOF
12125#define HAVE_DECL_FREE 0
42ecbf5e 12126_ACEOF
252b5132 12127
252b5132 12128
502bdb00
JW
12129fi
12130echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
12131echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
12132if test "${ac_cv_have_decl_sbrk+set}" = set; then
42ecbf5e 12133 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12134else
42ecbf5e
DJ
12135 cat >conftest.$ac_ext <<_ACEOF
12136/* confdefs.h. */
12137_ACEOF
12138cat confdefs.h >>conftest.$ac_ext
12139cat >>conftest.$ac_ext <<_ACEOF
12140/* end confdefs.h. */
502bdb00 12141$ac_includes_default
42ecbf5e
DJ
12142int
12143main ()
12144{
502bdb00
JW
12145#ifndef sbrk
12146 char *p = (char *) sbrk;
12147#endif
12148
42ecbf5e
DJ
12149 ;
12150 return 0;
12151}
12152_ACEOF
12153rm -f conftest.$ac_objext
12154if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12155 (eval $ac_compile) 2>conftest.er1
12156 ac_status=$?
12157 grep -v '^ *+' conftest.er1 >conftest.err
12158 rm -f conftest.er1
12159 cat conftest.err >&5
12160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12161 (exit $ac_status); } &&
502bdb00
JW
12162 { ac_try='test -z "$ac_c_werror_flag"
12163 || test ! -s conftest.err'
42ecbf5e
DJ
12164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12165 (eval $ac_try) 2>&5
12166 ac_status=$?
12167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12168 (exit $ac_status); }; } &&
12169 { ac_try='test -s conftest.$ac_objext'
12170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12171 (eval $ac_try) 2>&5
12172 ac_status=$?
12173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12174 (exit $ac_status); }; }; then
502bdb00 12175 ac_cv_have_decl_sbrk=yes
252b5132 12176else
42ecbf5e
DJ
12177 echo "$as_me: failed program was:" >&5
12178sed 's/^/| /' conftest.$ac_ext >&5
12179
502bdb00 12180ac_cv_have_decl_sbrk=no
252b5132 12181fi
42ecbf5e 12182rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 12183fi
502bdb00
JW
12184echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
12185echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
12186if test $ac_cv_have_decl_sbrk = yes; then
12187
12188cat >>confdefs.h <<_ACEOF
12189#define HAVE_DECL_SBRK 1
12190_ACEOF
252b5132 12191
42ecbf5e 12192
502bdb00
JW
12193else
12194 cat >>confdefs.h <<_ACEOF
12195#define HAVE_DECL_SBRK 0
42ecbf5e 12196_ACEOF
252b5132 12197
252b5132 12198
502bdb00
JW
12199fi
12200echo "$as_me:$LINENO: checking whether getenv is declared" >&5
12201echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
12202if test "${ac_cv_have_decl_getenv+set}" = set; then
42ecbf5e 12203 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12204else
42ecbf5e
DJ
12205 cat >conftest.$ac_ext <<_ACEOF
12206/* confdefs.h. */
12207_ACEOF
12208cat confdefs.h >>conftest.$ac_ext
12209cat >>conftest.$ac_ext <<_ACEOF
12210/* end confdefs.h. */
502bdb00 12211$ac_includes_default
42ecbf5e
DJ
12212int
12213main ()
12214{
502bdb00
JW
12215#ifndef getenv
12216 char *p = (char *) getenv;
12217#endif
12218
42ecbf5e
DJ
12219 ;
12220 return 0;
12221}
12222_ACEOF
12223rm -f conftest.$ac_objext
12224if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12225 (eval $ac_compile) 2>conftest.er1
12226 ac_status=$?
12227 grep -v '^ *+' conftest.er1 >conftest.err
12228 rm -f conftest.er1
12229 cat conftest.err >&5
12230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12231 (exit $ac_status); } &&
502bdb00
JW
12232 { ac_try='test -z "$ac_c_werror_flag"
12233 || test ! -s conftest.err'
42ecbf5e
DJ
12234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12235 (eval $ac_try) 2>&5
12236 ac_status=$?
12237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12238 (exit $ac_status); }; } &&
12239 { ac_try='test -s conftest.$ac_objext'
12240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12241 (eval $ac_try) 2>&5
12242 ac_status=$?
12243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12244 (exit $ac_status); }; }; then
502bdb00 12245 ac_cv_have_decl_getenv=yes
252b5132 12246else
42ecbf5e
DJ
12247 echo "$as_me: failed program was:" >&5
12248sed 's/^/| /' conftest.$ac_ext >&5
12249
502bdb00 12250ac_cv_have_decl_getenv=no
252b5132 12251fi
42ecbf5e 12252rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 12253fi
502bdb00
JW
12254echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
12255echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
12256if test $ac_cv_have_decl_getenv = yes; then
252b5132 12257
502bdb00
JW
12258cat >>confdefs.h <<_ACEOF
12259#define HAVE_DECL_GETENV 1
12260_ACEOF
42ecbf5e 12261
502bdb00
JW
12262
12263else
12264 cat >>confdefs.h <<_ACEOF
12265#define HAVE_DECL_GETENV 0
42ecbf5e 12266_ACEOF
252b5132 12267
252b5132 12268
502bdb00
JW
12269fi
12270echo "$as_me:$LINENO: checking whether environ is declared" >&5
12271echo $ECHO_N "checking whether environ is declared... $ECHO_C" >&6
12272if test "${ac_cv_have_decl_environ+set}" = set; then
42ecbf5e 12273 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12274else
42ecbf5e
DJ
12275 cat >conftest.$ac_ext <<_ACEOF
12276/* confdefs.h. */
12277_ACEOF
12278cat confdefs.h >>conftest.$ac_ext
12279cat >>conftest.$ac_ext <<_ACEOF
12280/* end confdefs.h. */
502bdb00 12281$ac_includes_default
42ecbf5e
DJ
12282int
12283main ()
12284{
502bdb00
JW
12285#ifndef environ
12286 char *p = (char *) environ;
12287#endif
12288
42ecbf5e
DJ
12289 ;
12290 return 0;
12291}
12292_ACEOF
12293rm -f conftest.$ac_objext
12294if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12295 (eval $ac_compile) 2>conftest.er1
12296 ac_status=$?
12297 grep -v '^ *+' conftest.er1 >conftest.err
12298 rm -f conftest.er1
12299 cat conftest.err >&5
12300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12301 (exit $ac_status); } &&
502bdb00
JW
12302 { ac_try='test -z "$ac_c_werror_flag"
12303 || test ! -s conftest.err'
42ecbf5e
DJ
12304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12305 (eval $ac_try) 2>&5
12306 ac_status=$?
12307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12308 (exit $ac_status); }; } &&
12309 { ac_try='test -s conftest.$ac_objext'
12310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12311 (eval $ac_try) 2>&5
12312 ac_status=$?
12313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12314 (exit $ac_status); }; }; then
502bdb00 12315 ac_cv_have_decl_environ=yes
252b5132 12316else
42ecbf5e
DJ
12317 echo "$as_me: failed program was:" >&5
12318sed 's/^/| /' conftest.$ac_ext >&5
12319
502bdb00 12320ac_cv_have_decl_environ=no
252b5132 12321fi
42ecbf5e 12322rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 12323fi
502bdb00
JW
12324echo "$as_me:$LINENO: result: $ac_cv_have_decl_environ" >&5
12325echo "${ECHO_T}$ac_cv_have_decl_environ" >&6
12326if test $ac_cv_have_decl_environ = yes; then
252b5132 12327
502bdb00
JW
12328cat >>confdefs.h <<_ACEOF
12329#define HAVE_DECL_ENVIRON 1
12330_ACEOF
42ecbf5e 12331
502bdb00
JW
12332
12333else
12334 cat >>confdefs.h <<_ACEOF
12335#define HAVE_DECL_ENVIRON 0
42ecbf5e 12336_ACEOF
252b5132 12337
502bdb00 12338
252b5132
RH
12339fi
12340
12341
502bdb00 12342
597e2591
ILT
12343# When converting linker scripts into strings for use in emulation
12344# files, use astring.sed if the compiler supports ANSI string
12345# concatenation, or ostring.sed otherwise. This is to support the
12346# broken Microsoft MSVC compiler, which limits the length of string
12347# constants, while still supporting pre-ANSI compilers which do not
12348# support string concatenation.
42ecbf5e
DJ
12349echo "$as_me:$LINENO: checking whether ANSI C string concatenation works" >&5
12350echo $ECHO_N "checking whether ANSI C string concatenation works... $ECHO_C" >&6
12351if test "${ld_cv_string_concatenation+set}" = set; then
12352 echo $ECHO_N "(cached) $ECHO_C" >&6
12353else
12354 cat >conftest.$ac_ext <<_ACEOF
12355/* confdefs.h. */
12356_ACEOF
12357cat confdefs.h >>conftest.$ac_ext
12358cat >>conftest.$ac_ext <<_ACEOF
12359/* end confdefs.h. */
597e2591 12360
42ecbf5e
DJ
12361int
12362main ()
12363{
597e2591 12364char *a = "a" "a";
42ecbf5e
DJ
12365 ;
12366 return 0;
12367}
12368_ACEOF
12369rm -f conftest.$ac_objext
12370if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12371 (eval $ac_compile) 2>conftest.er1
12372 ac_status=$?
12373 grep -v '^ *+' conftest.er1 >conftest.err
12374 rm -f conftest.er1
12375 cat conftest.err >&5
12376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377 (exit $ac_status); } &&
502bdb00
JW
12378 { ac_try='test -z "$ac_c_werror_flag"
12379 || test ! -s conftest.err'
42ecbf5e
DJ
12380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12381 (eval $ac_try) 2>&5
12382 ac_status=$?
12383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384 (exit $ac_status); }; } &&
12385 { ac_try='test -s conftest.$ac_objext'
12386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12387 (eval $ac_try) 2>&5
12388 ac_status=$?
12389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12390 (exit $ac_status); }; }; then
e4dabd0e 12391 ld_cv_string_concatenation=yes
597e2591 12392else
42ecbf5e
DJ
12393 echo "$as_me: failed program was:" >&5
12394sed 's/^/| /' conftest.$ac_ext >&5
12395
12396ld_cv_string_concatenation=no
597e2591 12397fi
42ecbf5e 12398rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
597e2591
ILT
12399fi
12400
42ecbf5e
DJ
12401echo "$as_me:$LINENO: result: $ld_cv_string_concatenation" >&5
12402echo "${ECHO_T}$ld_cv_string_concatenation" >&6
e4dabd0e 12403if test "$ld_cv_string_concatenation" = "yes"; then
597e2591
ILT
12404 STRINGIFY=astring.sed
12405else
12406 STRINGIFY=ostring.sed
12407fi
12408
12409
252b5132
RH
12410# target-specific stuff:
12411
12412all_targets=
12413EMUL=
12414all_emuls=
12415all_emul_extras=
ba2be581 12416all_libpath=
252b5132
RH
12417
12418rm -f tdirs
12419
12420for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
12421do
12422 if test "$targ_alias" = "all"; then
12423 all_targets=true
12424 else
12425 # Canonicalize the secondary target names.
42ecbf5e 12426 result=`$ac_config_sub $targ_alias 2>/dev/null`
252b5132
RH
12427 if test -n "$result"; then
12428 targ=$result
12429 else
12430 targ=$targ_alias
12431 fi
12432
12433 . ${srcdir}/configure.tgt
12434
12435 if test "$targ" = "$target"; then
12436 EMUL=$targ_emul
12437 fi
12438
314e9a4e
L
12439 if test x${want64} = xfalse; then
12440 . ${srcdir}/../bfd/config.bfd
12441 fi
12442
534d3119
L
12443 if test x${want64} = xtrue; then
12444 targ_extra_emuls="$targ_extra_emuls $targ64_extra_emuls"
12445 targ_extra_libpath="$targ_extra_libpath $targ64_extra_libpath"
12446 fi
12447
3336653a 12448 for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
252b5132
RH
12449 case " $all_emuls " in
12450 *" e${i}.o "*) ;;
12451 *)
12452 all_emuls="$all_emuls e${i}.o"
12453 eval result=\$tdir_$i
12454 test -z "$result" && result=$targ_alias
12455 echo tdir_$i=$result >> tdirs
12456 ;;
d15b04bd
L
12457 esac
12458 done
3336653a 12459
42ecbf5e
DJ
12460 for i in $targ_emul $targ_extra_libpath; do
12461 case " $all_libpath " in
12462 *" ${i} "*) ;;
12463 *)
12464 if test -z "$all_libpath"; then
12465 all_libpath=${i}
12466 else
12467 all_libpath="$all_libpath ${i}"
12468 fi
12469 ;;
12470 esac
12471 done
12472
12473 for i in $targ_extra_ofiles; do
12474 case " $all_emul_extras " in
12475 *" ${i} "*) ;;
12476 *)
12477 all_emul_extras="$all_emul_extras ${i}"
12478 ;;
12479 esac
12480 done
12481 fi
12482done
12483
12484
12485
12486TDIRS=tdirs
12487
12488
12489if test x${all_targets} = xtrue; then
314e9a4e
L
12490 if test x${want64} = xfalse; then
12491 echo "$as_me:$LINENO: checking for long" >&5
12492echo $ECHO_N "checking for long... $ECHO_C" >&6
12493if test "${ac_cv_type_long+set}" = set; then
12494 echo $ECHO_N "(cached) $ECHO_C" >&6
12495else
12496 cat >conftest.$ac_ext <<_ACEOF
12497/* confdefs.h. */
12498_ACEOF
12499cat confdefs.h >>conftest.$ac_ext
12500cat >>conftest.$ac_ext <<_ACEOF
12501/* end confdefs.h. */
12502$ac_includes_default
12503int
12504main ()
12505{
12506if ((long *) 0)
12507 return 0;
12508if (sizeof (long))
12509 return 0;
12510 ;
12511 return 0;
12512}
12513_ACEOF
12514rm -f conftest.$ac_objext
12515if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12516 (eval $ac_compile) 2>conftest.er1
12517 ac_status=$?
12518 grep -v '^ *+' conftest.er1 >conftest.err
12519 rm -f conftest.er1
12520 cat conftest.err >&5
12521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12522 (exit $ac_status); } &&
12523 { ac_try='test -z "$ac_c_werror_flag"
12524 || test ! -s conftest.err'
12525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12526 (eval $ac_try) 2>&5
12527 ac_status=$?
12528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529 (exit $ac_status); }; } &&
12530 { ac_try='test -s conftest.$ac_objext'
12531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12532 (eval $ac_try) 2>&5
12533 ac_status=$?
12534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535 (exit $ac_status); }; }; then
12536 ac_cv_type_long=yes
12537else
12538 echo "$as_me: failed program was:" >&5
12539sed 's/^/| /' conftest.$ac_ext >&5
12540
12541ac_cv_type_long=no
12542fi
12543rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12544fi
12545echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12546echo "${ECHO_T}$ac_cv_type_long" >&6
12547
12548echo "$as_me:$LINENO: checking size of long" >&5
12549echo $ECHO_N "checking size of long... $ECHO_C" >&6
12550if test "${ac_cv_sizeof_long+set}" = set; then
12551 echo $ECHO_N "(cached) $ECHO_C" >&6
12552else
12553 if test "$ac_cv_type_long" = yes; then
12554 # The cast to unsigned long works around a bug in the HP C Compiler
12555 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12556 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12557 # This bug is HP SR number 8606223364.
12558 if test "$cross_compiling" = yes; then
12559 # Depending upon the size, compute the lo and hi bounds.
12560cat >conftest.$ac_ext <<_ACEOF
12561/* confdefs.h. */
12562_ACEOF
12563cat confdefs.h >>conftest.$ac_ext
12564cat >>conftest.$ac_ext <<_ACEOF
12565/* end confdefs.h. */
12566$ac_includes_default
12567int
12568main ()
12569{
12570static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
12571test_array [0] = 0
12572
12573 ;
12574 return 0;
12575}
12576_ACEOF
12577rm -f conftest.$ac_objext
12578if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12579 (eval $ac_compile) 2>conftest.er1
12580 ac_status=$?
12581 grep -v '^ *+' conftest.er1 >conftest.err
12582 rm -f conftest.er1
12583 cat conftest.err >&5
12584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12585 (exit $ac_status); } &&
12586 { ac_try='test -z "$ac_c_werror_flag"
12587 || test ! -s conftest.err'
12588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12589 (eval $ac_try) 2>&5
12590 ac_status=$?
12591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592 (exit $ac_status); }; } &&
12593 { ac_try='test -s conftest.$ac_objext'
12594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12595 (eval $ac_try) 2>&5
12596 ac_status=$?
12597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598 (exit $ac_status); }; }; then
12599 ac_lo=0 ac_mid=0
12600 while :; do
12601 cat >conftest.$ac_ext <<_ACEOF
12602/* confdefs.h. */
12603_ACEOF
12604cat confdefs.h >>conftest.$ac_ext
12605cat >>conftest.$ac_ext <<_ACEOF
12606/* end confdefs.h. */
12607$ac_includes_default
12608int
12609main ()
12610{
12611static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12612test_array [0] = 0
12613
12614 ;
12615 return 0;
12616}
12617_ACEOF
12618rm -f conftest.$ac_objext
12619if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12620 (eval $ac_compile) 2>conftest.er1
12621 ac_status=$?
12622 grep -v '^ *+' conftest.er1 >conftest.err
12623 rm -f conftest.er1
12624 cat conftest.err >&5
12625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626 (exit $ac_status); } &&
12627 { ac_try='test -z "$ac_c_werror_flag"
12628 || test ! -s conftest.err'
12629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12630 (eval $ac_try) 2>&5
12631 ac_status=$?
12632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12633 (exit $ac_status); }; } &&
12634 { ac_try='test -s conftest.$ac_objext'
12635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12636 (eval $ac_try) 2>&5
12637 ac_status=$?
12638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639 (exit $ac_status); }; }; then
12640 ac_hi=$ac_mid; break
12641else
12642 echo "$as_me: failed program was:" >&5
12643sed 's/^/| /' conftest.$ac_ext >&5
12644
12645ac_lo=`expr $ac_mid + 1`
12646 if test $ac_lo -le $ac_mid; then
12647 ac_lo= ac_hi=
12648 break
12649 fi
12650 ac_mid=`expr 2 '*' $ac_mid + 1`
12651fi
12652rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12653 done
12654else
12655 echo "$as_me: failed program was:" >&5
12656sed 's/^/| /' conftest.$ac_ext >&5
12657
12658cat >conftest.$ac_ext <<_ACEOF
12659/* confdefs.h. */
12660_ACEOF
12661cat confdefs.h >>conftest.$ac_ext
12662cat >>conftest.$ac_ext <<_ACEOF
12663/* end confdefs.h. */
12664$ac_includes_default
12665int
12666main ()
12667{
12668static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
12669test_array [0] = 0
12670
12671 ;
12672 return 0;
12673}
12674_ACEOF
12675rm -f conftest.$ac_objext
12676if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12677 (eval $ac_compile) 2>conftest.er1
12678 ac_status=$?
12679 grep -v '^ *+' conftest.er1 >conftest.err
12680 rm -f conftest.er1
12681 cat conftest.err >&5
12682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12683 (exit $ac_status); } &&
12684 { ac_try='test -z "$ac_c_werror_flag"
12685 || test ! -s conftest.err'
12686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12687 (eval $ac_try) 2>&5
12688 ac_status=$?
12689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12690 (exit $ac_status); }; } &&
12691 { ac_try='test -s conftest.$ac_objext'
12692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12693 (eval $ac_try) 2>&5
12694 ac_status=$?
12695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12696 (exit $ac_status); }; }; then
12697 ac_hi=-1 ac_mid=-1
12698 while :; do
12699 cat >conftest.$ac_ext <<_ACEOF
12700/* confdefs.h. */
12701_ACEOF
12702cat confdefs.h >>conftest.$ac_ext
12703cat >>conftest.$ac_ext <<_ACEOF
12704/* end confdefs.h. */
12705$ac_includes_default
12706int
12707main ()
12708{
12709static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
12710test_array [0] = 0
12711
12712 ;
12713 return 0;
12714}
12715_ACEOF
12716rm -f conftest.$ac_objext
12717if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12718 (eval $ac_compile) 2>conftest.er1
12719 ac_status=$?
12720 grep -v '^ *+' conftest.er1 >conftest.err
12721 rm -f conftest.er1
12722 cat conftest.err >&5
12723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12724 (exit $ac_status); } &&
12725 { ac_try='test -z "$ac_c_werror_flag"
12726 || test ! -s conftest.err'
12727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12728 (eval $ac_try) 2>&5
12729 ac_status=$?
12730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12731 (exit $ac_status); }; } &&
12732 { ac_try='test -s conftest.$ac_objext'
12733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12734 (eval $ac_try) 2>&5
12735 ac_status=$?
12736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12737 (exit $ac_status); }; }; then
12738 ac_lo=$ac_mid; break
12739else
12740 echo "$as_me: failed program was:" >&5
12741sed 's/^/| /' conftest.$ac_ext >&5
12742
12743ac_hi=`expr '(' $ac_mid ')' - 1`
12744 if test $ac_mid -le $ac_hi; then
12745 ac_lo= ac_hi=
12746 break
12747 fi
12748 ac_mid=`expr 2 '*' $ac_mid`
12749fi
12750rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12751 done
12752else
12753 echo "$as_me: failed program was:" >&5
12754sed 's/^/| /' conftest.$ac_ext >&5
12755
12756ac_lo= ac_hi=
12757fi
12758rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12759fi
12760rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12761# Binary search between lo and hi bounds.
12762while test "x$ac_lo" != "x$ac_hi"; do
12763 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12764 cat >conftest.$ac_ext <<_ACEOF
12765/* confdefs.h. */
12766_ACEOF
12767cat confdefs.h >>conftest.$ac_ext
12768cat >>conftest.$ac_ext <<_ACEOF
12769/* end confdefs.h. */
12770$ac_includes_default
12771int
12772main ()
12773{
12774static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12775test_array [0] = 0
12776
12777 ;
12778 return 0;
12779}
12780_ACEOF
12781rm -f conftest.$ac_objext
12782if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12783 (eval $ac_compile) 2>conftest.er1
12784 ac_status=$?
12785 grep -v '^ *+' conftest.er1 >conftest.err
12786 rm -f conftest.er1
12787 cat conftest.err >&5
12788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12789 (exit $ac_status); } &&
12790 { ac_try='test -z "$ac_c_werror_flag"
12791 || test ! -s conftest.err'
12792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12793 (eval $ac_try) 2>&5
12794 ac_status=$?
12795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12796 (exit $ac_status); }; } &&
12797 { ac_try='test -s conftest.$ac_objext'
12798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12799 (eval $ac_try) 2>&5
12800 ac_status=$?
12801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12802 (exit $ac_status); }; }; then
12803 ac_hi=$ac_mid
12804else
12805 echo "$as_me: failed program was:" >&5
12806sed 's/^/| /' conftest.$ac_ext >&5
12807
12808ac_lo=`expr '(' $ac_mid ')' + 1`
12809fi
12810rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12811done
12812case $ac_lo in
12813?*) ac_cv_sizeof_long=$ac_lo;;
12814'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12815See \`config.log' for more details." >&5
12816echo "$as_me: error: cannot compute sizeof (long), 77
12817See \`config.log' for more details." >&2;}
12818 { (exit 1); exit 1; }; } ;;
12819esac
12820else
12821 if test "$cross_compiling" = yes; then
12822 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12823See \`config.log' for more details." >&5
12824echo "$as_me: error: cannot run test program while cross compiling
12825See \`config.log' for more details." >&2;}
12826 { (exit 1); exit 1; }; }
12827else
12828 cat >conftest.$ac_ext <<_ACEOF
12829/* confdefs.h. */
12830_ACEOF
12831cat confdefs.h >>conftest.$ac_ext
12832cat >>conftest.$ac_ext <<_ACEOF
12833/* end confdefs.h. */
12834$ac_includes_default
12835long longval () { return (long) (sizeof (long)); }
12836unsigned long ulongval () { return (long) (sizeof (long)); }
12837#include <stdio.h>
12838#include <stdlib.h>
12839int
12840main ()
12841{
12842
12843 FILE *f = fopen ("conftest.val", "w");
12844 if (! f)
12845 exit (1);
12846 if (((long) (sizeof (long))) < 0)
12847 {
12848 long i = longval ();
12849 if (i != ((long) (sizeof (long))))
12850 exit (1);
12851 fprintf (f, "%ld\n", i);
12852 }
12853 else
12854 {
12855 unsigned long i = ulongval ();
12856 if (i != ((long) (sizeof (long))))
12857 exit (1);
12858 fprintf (f, "%lu\n", i);
12859 }
12860 exit (ferror (f) || fclose (f) != 0);
12861
12862 ;
12863 return 0;
12864}
12865_ACEOF
12866rm -f conftest$ac_exeext
12867if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12868 (eval $ac_link) 2>&5
12869 ac_status=$?
12870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12871 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12873 (eval $ac_try) 2>&5
12874 ac_status=$?
12875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12876 (exit $ac_status); }; }; then
12877 ac_cv_sizeof_long=`cat conftest.val`
12878else
12879 echo "$as_me: program exited with status $ac_status" >&5
12880echo "$as_me: failed program was:" >&5
12881sed 's/^/| /' conftest.$ac_ext >&5
12882
12883( exit $ac_status )
12884{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12885See \`config.log' for more details." >&5
12886echo "$as_me: error: cannot compute sizeof (long), 77
12887See \`config.log' for more details." >&2;}
12888 { (exit 1); exit 1; }; }
12889fi
12890rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12891fi
12892fi
12893rm -f conftest.val
12894else
12895 ac_cv_sizeof_long=0
12896fi
12897fi
12898echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
12899echo "${ECHO_T}$ac_cv_sizeof_long" >&6
12900cat >>confdefs.h <<_ACEOF
12901#define SIZEOF_LONG $ac_cv_sizeof_long
12902_ACEOF
12903
12904
12905 if test "x${ac_cv_sizeof_long}" = "x8"; then
12906 want64=true
12907 fi
12908 fi
42ecbf5e
DJ
12909 if test x${want64} = xtrue; then
12910 EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
12911 else
12912 EMULATION_OFILES='$(ALL_EMULATIONS)'
12913 fi
12914 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)'
12915else
12916 EMULATION_OFILES=$all_emuls
12917 EMUL_EXTRA_OFILES=$all_emul_extras
12918fi
12919
12920
12921
12922
12923EMULATION_LIBPATH=$all_libpath
12924
12925
12926if test x${enable_static} = xno; then
12927 TESTBFDLIB="--rpath ../bfd/.libs ../bfd/.libs/libbfd.so"
12928else
12929 TESTBFDLIB="../bfd/.libs/libbfd.a"
12930fi
12931
12932
12933target_vendor=${target_vendor=$host_vendor}
12934case "$target_vendor" in
12935 hp) EXTRA_SHLIB_EXTENSION=".sl" ;;
12936 *) EXTRA_SHLIB_EXTENSION= ;;
12937esac
12938
12939case "$target_os" in
12940 lynxos) EXTRA_SHLIB_EXTENSION=".a" ;;
12941esac
12942
12943if test x${EXTRA_SHLIB_EXTENSION} != x ; then
12944
12945cat >>confdefs.h <<_ACEOF
12946#define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
12947_ACEOF
12948
12949fi
12950
108a6f8e
CD
12951
12952
12953
12954
42ecbf5e 12955 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
42ecbf5e
DJ
12956cat >confcache <<\_ACEOF
12957# This file is a shell script that caches the results of configure
12958# tests run on this system so they can be shared between configure
12959# scripts and configure runs, see configure's option --config-cache.
12960# It is not useful on other systems. If it contains results you don't
12961# want to keep, you may remove or edit it.
12962#
12963# config.status only pays attention to the cache file if you give it
12964# the --recheck option to rerun configure.
12965#
12966# `ac_cv_env_foo' variables (set or unset) will be overridden when
12967# loading this file, other *unset* `ac_cv_foo' will be assigned the
12968# following values.
12969
12970_ACEOF
12971
12972# The following way of writing the cache mishandles newlines in values,
12973# but we know of no workaround that is simple, portable, and efficient.
12974# So, don't put newlines in cache variables' values.
12975# Ultrix sh set writes to stderr and can't be redirected directly,
12976# and sets the high bit in the cache file unless we assign to the vars.
12977{
12978 (set) 2>&1 |
12979 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12980 *ac_space=\ *)
12981 # `set' does not quote correctly, so add quotes (double-quote
12982 # substitution turns \\\\ into \\, and sed turns \\ into \).
12983 sed -n \
12984 "s/'/'\\\\''/g;
12985 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12986 ;;
12987 *)
12988 # `set' quotes correctly as required by POSIX, so do not add quotes.
12989 sed -n \
12990 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12991 ;;
12992 esac;
12993} |
12994 sed '
12995 t clear
12996 : clear
12997 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12998 t end
12999 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13000 : end' >>confcache
13001if diff $cache_file confcache >/dev/null 2>&1; then :; else
13002 if test -w $cache_file; then
13003 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
13004 cat confcache >$cache_file
13005 else
13006 echo "not updating unwritable cache $cache_file"
13007 fi
13008fi
13009rm -f confcache
13010
13011test "x$prefix" = xNONE && prefix=$ac_default_prefix
13012# Let make expand exec_prefix.
13013test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13014
13015# VPATH may cause trouble with some makes, so we remove $(srcdir),
13016# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13017# trailing colons and then remove the whole line if VPATH becomes empty
13018# (actually we leave an empty line to preserve line numbers).
13019if test "x$srcdir" = x.; then
13020 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13021s/:*\$(srcdir):*/:/;
13022s/:*\${srcdir}:*/:/;
13023s/:*@srcdir@:*/:/;
13024s/^\([^=]*=[ ]*\):*/\1/;
13025s/:*$//;
13026s/^[^=]*=[ ]*$//;
13027}'
13028fi
13029
13030DEFS=-DHAVE_CONFIG_H
13031
13032ac_libobjs=
13033ac_ltlibobjs=
13034for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13035 # 1. Remove the extension, and $U if already installed.
13036 ac_i=`echo "$ac_i" |
13037 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
13038 # 2. Add them.
13039 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
13040 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
13041done
13042LIBOBJS=$ac_libobjs
13043
13044LTLIBOBJS=$ac_ltlibobjs
13045
13046
13047if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13048 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13049Usually this means the macro was only invoked conditionally." >&5
13050echo "$as_me: error: conditional \"AMDEP\" was never defined.
13051Usually this means the macro was only invoked conditionally." >&2;}
13052 { (exit 1); exit 1; }; }
13053fi
13054if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13055 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13056Usually this means the macro was only invoked conditionally." >&5
13057echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13058Usually this means the macro was only invoked conditionally." >&2;}
13059 { (exit 1); exit 1; }; }
13060fi
13061if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13062 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
13063Usually this means the macro was only invoked conditionally." >&5
13064echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
13065Usually this means the macro was only invoked conditionally." >&2;}
13066 { (exit 1); exit 1; }; }
13067fi
d5fbea21
DJ
13068if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
13069 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
13070Usually this means the macro was only invoked conditionally." >&5
13071echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
13072Usually this means the macro was only invoked conditionally." >&2;}
13073 { (exit 1); exit 1; }; }
13074fi
42ecbf5e
DJ
13075
13076: ${CONFIG_STATUS=./config.status}
13077ac_clean_files_save=$ac_clean_files
13078ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13079{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13080echo "$as_me: creating $CONFIG_STATUS" >&6;}
13081cat >$CONFIG_STATUS <<_ACEOF
13082#! $SHELL
13083# Generated by $as_me.
13084# Run this file to recreate the current configuration.
13085# Compiler output produced by configure, useful for debugging
13086# configure, is in config.log if it exists.
13087
13088debug=false
13089ac_cs_recheck=false
13090ac_cs_silent=false
13091SHELL=\${CONFIG_SHELL-$SHELL}
13092_ACEOF
13093
13094cat >>$CONFIG_STATUS <<\_ACEOF
13095## --------------------- ##
13096## M4sh Initialization. ##
13097## --------------------- ##
13098
13099# Be Bourne compatible
13100if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13101 emulate sh
13102 NULLCMD=:
13103 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13104 # is contrary to our usage. Disable this feature.
13105 alias -g '${1+"$@"}'='"$@"'
13106elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13107 set -o posix
13108fi
13109DUALCASE=1; export DUALCASE # for MKS sh
13110
13111# Support unset when possible.
13112if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13113 as_unset=unset
13114else
13115 as_unset=false
13116fi
13117
13118
13119# Work around bugs in pre-3.0 UWIN ksh.
13120$as_unset ENV MAIL MAILPATH
13121PS1='$ '
13122PS2='> '
13123PS4='+ '
13124
13125# NLS nuisances.
13126for as_var in \
13127 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13128 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13129 LC_TELEPHONE LC_TIME
13130do
13131 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13132 eval $as_var=C; export $as_var
13133 else
13134 $as_unset $as_var
13135 fi
13136done
13137
13138# Required to use basename.
13139if expr a : '\(a\)' >/dev/null 2>&1; then
13140 as_expr=expr
13141else
13142 as_expr=false
13143fi
13144
13145if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
13146 as_basename=basename
13147else
13148 as_basename=false
13149fi
13150
13151
13152# Name of the executable.
13153as_me=`$as_basename "$0" ||
13154$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13155 X"$0" : 'X\(//\)$' \| \
13156 X"$0" : 'X\(/\)$' \| \
13157 . : '\(.\)' 2>/dev/null ||
13158echo X/"$0" |
13159 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13160 /^X\/\(\/\/\)$/{ s//\1/; q; }
13161 /^X\/\(\/\).*/{ s//\1/; q; }
13162 s/.*/./; q'`
13163
13164
13165# PATH needs CR, and LINENO needs CR and PATH.
13166# Avoid depending upon Character Ranges.
13167as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13168as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13169as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13170as_cr_digits='0123456789'
13171as_cr_alnum=$as_cr_Letters$as_cr_digits
13172
13173# The user is always right.
13174if test "${PATH_SEPARATOR+set}" != set; then
13175 echo "#! /bin/sh" >conf$$.sh
13176 echo "exit 0" >>conf$$.sh
13177 chmod +x conf$$.sh
13178 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13179 PATH_SEPARATOR=';'
13180 else
13181 PATH_SEPARATOR=:
13182 fi
13183 rm -f conf$$.sh
13184fi
13185
e5a52504 13186
42ecbf5e
DJ
13187 as_lineno_1=$LINENO
13188 as_lineno_2=$LINENO
13189 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13190 test "x$as_lineno_1" != "x$as_lineno_2" &&
13191 test "x$as_lineno_3" = "x$as_lineno_2" || {
13192 # Find who we are. Look in the path if we contain no path at all
13193 # relative or not.
13194 case $0 in
13195 *[\\/]* ) as_myself=$0 ;;
13196 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13197for as_dir in $PATH
13198do
13199 IFS=$as_save_IFS
13200 test -z "$as_dir" && as_dir=.
13201 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13202done
13203
13204 ;;
13205 esac
13206 # We did not find ourselves, most probably we were run as `sh COMMAND'
13207 # in which case we are not to be found in the path.
13208 if test "x$as_myself" = x; then
13209 as_myself=$0
13210 fi
13211 if test ! -f "$as_myself"; then
13212 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13213echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13214 { (exit 1); exit 1; }; }
252b5132 13215 fi
42ecbf5e
DJ
13216 case $CONFIG_SHELL in
13217 '')
13218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13219for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13220do
13221 IFS=$as_save_IFS
13222 test -z "$as_dir" && as_dir=.
13223 for as_base in sh bash ksh sh5; do
13224 case $as_dir in
13225 /*)
13226 if ("$as_dir/$as_base" -c '
13227 as_lineno_1=$LINENO
13228 as_lineno_2=$LINENO
13229 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13230 test "x$as_lineno_1" != "x$as_lineno_2" &&
13231 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
13232 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
13233 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
13234 CONFIG_SHELL=$as_dir/$as_base
13235 export CONFIG_SHELL
13236 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
13237 fi;;
13238 esac
13239 done
252b5132 13240done
42ecbf5e
DJ
13241;;
13242 esac
252b5132 13243
42ecbf5e
DJ
13244 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13245 # uniformly replaced by the line number. The first 'sed' inserts a
13246 # line-number line before each line; the second 'sed' does the real
13247 # work. The second script uses 'N' to pair each line-number line
13248 # with the numbered line, and appends trailing '-' during
13249 # substitution so that $LINENO is not a special case at line end.
13250 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13251 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
13252 sed '=' <$as_myself |
13253 sed '
13254 N
13255 s,$,-,
13256 : loop
13257 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
13258 t loop
13259 s,-$,,
13260 s,^['$as_cr_digits']*\n,,
13261 ' >$as_me.lineno &&
13262 chmod +x $as_me.lineno ||
13263 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13264echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
13265 { (exit 1); exit 1; }; }
13266
13267 # Don't try to exec as it changes $[0], causing all sort of problems
13268 # (the dirname of $[0] is not the place where we might find the
13269 # original and so on. Autoconf is especially sensible to this).
13270 . ./$as_me.lineno
13271 # Exit status is that of the last command.
13272 exit
13273}
252b5132
RH
13274
13275
42ecbf5e
DJ
13276case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13277 *c*,-n*) ECHO_N= ECHO_C='
13278' ECHO_T=' ' ;;
13279 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
13280 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
13281esac
252b5132 13282
42ecbf5e
DJ
13283if expr a : '\(a\)' >/dev/null 2>&1; then
13284 as_expr=expr
13285else
13286 as_expr=false
13287fi
252b5132 13288
42ecbf5e
DJ
13289rm -f conf$$ conf$$.exe conf$$.file
13290echo >conf$$.file
13291if ln -s conf$$.file conf$$ 2>/dev/null; then
13292 # We could just check for DJGPP; but this test a) works b) is more generic
13293 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13294 if test -f conf$$.exe; then
13295 # Don't use ln at all; we don't have any links
13296 as_ln_s='cp -p'
252b5132 13297 else
42ecbf5e 13298 as_ln_s='ln -s'
252b5132 13299 fi
42ecbf5e
DJ
13300elif ln conf$$.file conf$$ 2>/dev/null; then
13301 as_ln_s=ln
e5a52504 13302else
42ecbf5e 13303 as_ln_s='cp -p'
e5a52504 13304fi
42ecbf5e 13305rm -f conf$$ conf$$.exe conf$$.file
252b5132 13306
42ecbf5e
DJ
13307if mkdir -p . 2>/dev/null; then
13308 as_mkdir_p=:
13309else
13310 test -d ./-p && rmdir ./-p
13311 as_mkdir_p=false
13312fi
252b5132 13313
42ecbf5e 13314as_executable_p="test -f"
252b5132 13315
42ecbf5e
DJ
13316# Sed expression to map a string onto a valid CPP name.
13317as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
f234d5fe 13318
42ecbf5e
DJ
13319# Sed expression to map a string onto a valid variable name.
13320as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
e5a52504 13321
e5a52504 13322
42ecbf5e
DJ
13323# IFS
13324# We need space, tab and new line, in precisely that order.
13325as_nl='
13326'
13327IFS=" $as_nl"
e5a52504 13328
42ecbf5e
DJ
13329# CDPATH.
13330$as_unset CDPATH
e5a52504 13331
42ecbf5e 13332exec 6>&1
e5a52504 13333
42ecbf5e
DJ
13334# Open the log real soon, to keep \$[0] and so on meaningful, and to
13335# report actual input values of CONFIG_FILES etc. instead of their
13336# values after options handling. Logging --version etc. is OK.
13337exec 5>>config.log
13338{
13339 echo
13340 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13341## Running $as_me. ##
13342_ASBOX
13343} >&5
13344cat >&5 <<_CSEOF
e5a52504 13345
42ecbf5e
DJ
13346This file was extended by $as_me, which was
13347generated by GNU Autoconf 2.59. Invocation command line was
13348
13349 CONFIG_FILES = $CONFIG_FILES
13350 CONFIG_HEADERS = $CONFIG_HEADERS
13351 CONFIG_LINKS = $CONFIG_LINKS
13352 CONFIG_COMMANDS = $CONFIG_COMMANDS
13353 $ $0 $@
e5a52504 13354
42ecbf5e
DJ
13355_CSEOF
13356echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
13357echo >&5
13358_ACEOF
13359
13360# Files that config.status was made for.
13361if test -n "$ac_config_files"; then
13362 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
d15b04bd 13363fi
e5a52504 13364
42ecbf5e
DJ
13365if test -n "$ac_config_headers"; then
13366 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13367fi
13368
13369if test -n "$ac_config_links"; then
13370 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13371fi
13372
13373if test -n "$ac_config_commands"; then
13374 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13375fi
13376
13377cat >>$CONFIG_STATUS <<\_ACEOF
13378
13379ac_cs_usage="\
13380\`$as_me' instantiates files from templates according to the
13381current configuration.
13382
13383Usage: $0 [OPTIONS] [FILE]...
13384
13385 -h, --help print this help, then exit
13386 -V, --version print version number, then exit
13387 -q, --quiet do not print progress messages
13388 -d, --debug don't remove temporary files
13389 --recheck update $as_me by reconfiguring in the same conditions
13390 --file=FILE[:TEMPLATE]
13391 instantiate the configuration file FILE
13392 --header=FILE[:TEMPLATE]
13393 instantiate the configuration header FILE
13394
13395Configuration files:
13396$config_files
13397
13398Configuration headers:
13399$config_headers
13400
13401Configuration commands:
13402$config_commands
13403
13404Report bugs to <bug-autoconf@gnu.org>."
13405_ACEOF
13406
13407cat >>$CONFIG_STATUS <<_ACEOF
13408ac_cs_version="\\
13409config.status
13410configured by $0, generated by GNU Autoconf 2.59,
13411 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13412
13413Copyright (C) 2003 Free Software Foundation, Inc.
13414This config.status script is free software; the Free Software Foundation
13415gives unlimited permission to copy, distribute and modify it."
13416srcdir=$srcdir
13417INSTALL="$INSTALL"
13418_ACEOF
13419
13420cat >>$CONFIG_STATUS <<\_ACEOF
13421# If no file are specified by the user, then we need to provide default
13422# value. By we need to know if files were specified by the user.
13423ac_need_defaults=:
13424while test $# != 0
13425do
13426 case $1 in
13427 --*=*)
13428 ac_option=`expr "x$1" : 'x\([^=]*\)='`
13429 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13430 ac_shift=:
252b5132 13431 ;;
42ecbf5e
DJ
13432 -*)
13433 ac_option=$1
13434 ac_optarg=$2
13435 ac_shift=shift
252b5132 13436 ;;
42ecbf5e
DJ
13437 *) # This is not an option, so the user has probably given explicit
13438 # arguments.
13439 ac_option=$1
13440 ac_need_defaults=false;;
13441 esac
252b5132 13442
42ecbf5e
DJ
13443 case $ac_option in
13444 # Handling of the options.
13445_ACEOF
13446cat >>$CONFIG_STATUS <<\_ACEOF
13447 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13448 ac_cs_recheck=: ;;
13449 --version | --vers* | -V )
13450 echo "$ac_cs_version"; exit 0 ;;
13451 --he | --h)
13452 # Conflict between --help and --header
13453 { { echo "$as_me:$LINENO: error: ambiguous option: $1
13454Try \`$0 --help' for more information." >&5
13455echo "$as_me: error: ambiguous option: $1
13456Try \`$0 --help' for more information." >&2;}
13457 { (exit 1); exit 1; }; };;
13458 --help | --hel | -h )
13459 echo "$ac_cs_usage"; exit 0 ;;
13460 --debug | --d* | -d )
13461 debug=: ;;
13462 --file | --fil | --fi | --f )
13463 $ac_shift
13464 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13465 ac_need_defaults=false;;
13466 --header | --heade | --head | --hea )
13467 $ac_shift
13468 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13469 ac_need_defaults=false;;
13470 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13471 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13472 ac_cs_silent=: ;;
252b5132 13473
42ecbf5e
DJ
13474 # This is an error.
13475 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13476Try \`$0 --help' for more information." >&5
13477echo "$as_me: error: unrecognized option: $1
13478Try \`$0 --help' for more information." >&2;}
13479 { (exit 1); exit 1; }; } ;;
252b5132 13480
42ecbf5e 13481 *) ac_config_targets="$ac_config_targets $1" ;;
252b5132 13482
42ecbf5e
DJ
13483 esac
13484 shift
13485done
d15b04bd 13486
42ecbf5e 13487ac_configure_extra_args=
e5a52504 13488
42ecbf5e
DJ
13489if $ac_cs_silent; then
13490 exec 6>/dev/null
13491 ac_configure_extra_args="$ac_configure_extra_args --silent"
13492fi
e5a52504 13493
42ecbf5e
DJ
13494_ACEOF
13495cat >>$CONFIG_STATUS <<_ACEOF
13496if \$ac_cs_recheck; then
13497 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13498 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13499fi
13500
13501_ACEOF
13502
13503cat >>$CONFIG_STATUS <<_ACEOF
252b5132 13504#
42ecbf5e 13505# INIT-COMMANDS section.
252b5132 13506#
252b5132 13507
42ecbf5e 13508AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
13509
13510
13511# The HP-UX ksh and POSIX shell print the target directory to stdout
13512# if CDPATH is set.
13513(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13514
13515sed_quote_subst='$sed_quote_subst'
13516double_quote_subst='$double_quote_subst'
13517delay_variable_subst='$delay_variable_subst'
13518macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13519macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13520enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13521enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13522pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13523enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13524host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13525host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13526host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13527build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13528build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13529build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13530SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13531Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13532GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13533EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13534FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13535LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13536NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13537LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13538max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13539ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13540exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13541lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13542lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13543lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13544reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13545reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13546deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13547file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13548AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13549AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13550STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13551RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13552old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13553old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13554old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13555CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13556CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13557compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13558GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13559lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13560lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13561lt_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"`'
13562objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13563SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13564ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13565MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13566lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13567lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13568lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13569lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13570lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13571need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13572libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13573shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13574extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13575archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13576enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13577export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13578whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13579compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13580old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13581old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13582archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13583archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13584module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13585module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13586with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13587allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13588no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13589hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13590hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13591hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13592hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13593hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13594hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13595hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13596hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13597inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13598link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13599fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13600always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13601export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13602exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13603include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13604prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13605file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13606variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13607need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13608need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13609version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13610runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13611shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13612shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13613libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13614library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13615soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13616postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13617postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13618finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13619finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13620hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13621sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13622sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13623hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13624enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13625enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13626enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13627old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13628striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13629
13630LTCC='$LTCC'
13631LTCFLAGS='$LTCFLAGS'
13632compiler='$compiler_DEFAULT'
13633
13634# Quote evaled strings.
13635for var in SED \
13636GREP \
13637EGREP \
13638FGREP \
13639LD \
13640NM \
13641LN_S \
13642lt_SP2NL \
13643lt_NL2SP \
13644reload_flag \
13645deplibs_check_method \
13646file_magic_cmd \
13647AR \
13648AR_FLAGS \
13649STRIP \
13650RANLIB \
13651CC \
13652CFLAGS \
13653compiler \
13654lt_cv_sys_global_symbol_pipe \
13655lt_cv_sys_global_symbol_to_cdecl \
13656lt_cv_sys_global_symbol_to_c_name_address \
13657SHELL \
13658ECHO \
13659lt_prog_compiler_no_builtin_flag \
13660lt_prog_compiler_wl \
13661lt_prog_compiler_pic \
13662lt_prog_compiler_static \
13663lt_cv_prog_compiler_c_o \
13664need_locks \
13665shrext_cmds \
13666export_dynamic_flag_spec \
13667whole_archive_flag_spec \
13668compiler_needs_object \
13669with_gnu_ld \
13670allow_undefined_flag \
13671no_undefined_flag \
13672hardcode_libdir_flag_spec \
13673hardcode_libdir_flag_spec_ld \
13674hardcode_libdir_separator \
13675fix_srcfile_path \
13676exclude_expsyms \
13677include_expsyms \
13678file_list_spec \
13679variables_saved_for_relink \
13680libname_spec \
13681library_names_spec \
13682soname_spec \
13683finish_eval \
13684old_striplib \
13685striplib; do
13686 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13687 *[\\\\\\\`\\"\\\$]*)
13688 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13689 ;;
13690 *)
13691 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13692 ;;
13693 esac
13694done
13695
13696# Double-quote double-evaled strings.
13697for var in reload_cmds \
13698old_postinstall_cmds \
13699old_postuninstall_cmds \
13700old_archive_cmds \
13701extract_expsyms_cmds \
13702old_archive_from_new_cmds \
13703old_archive_from_expsyms_cmds \
13704archive_cmds \
13705archive_expsym_cmds \
13706module_cmds \
13707module_expsym_cmds \
13708export_symbols_cmds \
13709prelink_cmds \
13710postinstall_cmds \
13711postuninstall_cmds \
13712finish_cmds \
13713sys_lib_search_path_spec \
13714sys_lib_dlsearch_path_spec; do
13715 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13716 *[\\\\\\\`\\"\\\$]*)
13717 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13718 ;;
13719 *)
13720 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13721 ;;
13722 esac
13723done
13724
13725# Fix-up fallback echo if it was mangled by the above quoting rules.
13726case \$lt_ECHO in
13727*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13728 ;;
13729esac
13730
13731ac_aux_dir='$ac_aux_dir'
13732xsi_shell='$xsi_shell'
13733lt_shell_append='$lt_shell_append'
13734
13735# See if we are running on zsh, and set the options which allow our
13736# commands through without removal of \ escapes INIT.
13737if test -n "\${ZSH_VERSION+set}" ; then
13738 setopt NO_GLOB_SUBST
13739fi
13740
13741
13742 PACKAGE='$PACKAGE'
13743 VERSION='$VERSION'
13744 TIMESTAMP='$TIMESTAMP'
13745 RM='$RM'
13746 ofile='$ofile'
13747
13748
13749
20e95c23
DJ
13750# Capture the value of obsolete ALL_LINGUAS because we need it to compute
13751 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
13752 # from automake.
13753 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
13754 # Capture the value of LINGUAS because we need it to compute CATALOGS.
13755 LINGUAS="${LINGUAS-%UNSET%}"
13756
42ecbf5e
DJ
13757
13758_ACEOF
13759
13760
13761
13762cat >>$CONFIG_STATUS <<\_ACEOF
13763for ac_config_target in $ac_config_targets
252b5132 13764do
42ecbf5e
DJ
13765 case "$ac_config_target" in
13766 # Handling of arguments.
13767 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13768 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
13769 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
d7040cdb 13770 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20e95c23 13771 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
42ecbf5e
DJ
13772 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
13773 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13774echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13775 { (exit 1); exit 1; }; };;
252b5132
RH
13776 esac
13777done
13778
42ecbf5e
DJ
13779# If the user did not use the arguments to specify the items to instantiate,
13780# then the envvar interface is used. Set only those that are not.
13781# We use the long form for the default assignment because of an extremely
13782# bizarre bug on SunOS 4.1.3.
13783if $ac_need_defaults; then
13784 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13785 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13786 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13787fi
13788
13789# Have a temporary directory for convenience. Make it in the build tree
13790# simply because there is no reason to put it here, and in addition,
13791# creating and moving files from /tmp can sometimes cause problems.
13792# Create a temporary directory, and hook for its removal unless debugging.
13793$debug ||
13794{
13795 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13796 trap '{ (exit 1); exit 1; }' 1 2 13 15
13797}
13798
13799# Create a (secure) tmp directory for tmp files.
e5a52504 13800
42ecbf5e
DJ
13801{
13802 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13803 test -n "$tmp" && test -d "$tmp"
13804} ||
13805{
13806 tmp=./confstat$$-$RANDOM
13807 (umask 077 && mkdir $tmp)
13808} ||
13809{
13810 echo "$me: cannot create a temporary directory in ." >&2
13811 { (exit 1); exit 1; }
13812}
e5a52504 13813
42ecbf5e 13814_ACEOF
d15b04bd 13815
42ecbf5e
DJ
13816cat >>$CONFIG_STATUS <<_ACEOF
13817
13818#
13819# CONFIG_FILES section.
13820#
13821
13822# No need to generate the scripts if there are no CONFIG_FILES.
13823# This happens for instance when ./config.status config.h
13824if test -n "\$CONFIG_FILES"; then
13825 # Protect against being on the right side of a sed subst in config.status.
13826 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13827 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13828s,@SHELL@,$SHELL,;t t
13829s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13830s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13831s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13832s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13833s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13834s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13835s,@exec_prefix@,$exec_prefix,;t t
13836s,@prefix@,$prefix,;t t
13837s,@program_transform_name@,$program_transform_name,;t t
13838s,@bindir@,$bindir,;t t
13839s,@sbindir@,$sbindir,;t t
13840s,@libexecdir@,$libexecdir,;t t
13841s,@datadir@,$datadir,;t t
13842s,@sysconfdir@,$sysconfdir,;t t
13843s,@sharedstatedir@,$sharedstatedir,;t t
13844s,@localstatedir@,$localstatedir,;t t
13845s,@libdir@,$libdir,;t t
13846s,@includedir@,$includedir,;t t
13847s,@oldincludedir@,$oldincludedir,;t t
13848s,@infodir@,$infodir,;t t
13849s,@mandir@,$mandir,;t t
13850s,@build_alias@,$build_alias,;t t
13851s,@host_alias@,$host_alias,;t t
13852s,@target_alias@,$target_alias,;t t
13853s,@DEFS@,$DEFS,;t t
13854s,@ECHO_C@,$ECHO_C,;t t
13855s,@ECHO_N@,$ECHO_N,;t t
13856s,@ECHO_T@,$ECHO_T,;t t
13857s,@LIBS@,$LIBS,;t t
13858s,@build@,$build,;t t
13859s,@build_cpu@,$build_cpu,;t t
13860s,@build_vendor@,$build_vendor,;t t
13861s,@build_os@,$build_os,;t t
13862s,@host@,$host,;t t
13863s,@host_cpu@,$host_cpu,;t t
13864s,@host_vendor@,$host_vendor,;t t
13865s,@host_os@,$host_os,;t t
13866s,@target@,$target,;t t
13867s,@target_cpu@,$target_cpu,;t t
13868s,@target_vendor@,$target_vendor,;t t
13869s,@target_os@,$target_os,;t t
13870s,@CC@,$CC,;t t
13871s,@CFLAGS@,$CFLAGS,;t t
13872s,@LDFLAGS@,$LDFLAGS,;t t
13873s,@CPPFLAGS@,$CPPFLAGS,;t t
13874s,@ac_ct_CC@,$ac_ct_CC,;t t
13875s,@EXEEXT@,$EXEEXT,;t t
13876s,@OBJEXT@,$OBJEXT,;t t
13877s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13878s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13879s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13880s,@CYGPATH_W@,$CYGPATH_W,;t t
13881s,@PACKAGE@,$PACKAGE,;t t
13882s,@VERSION@,$VERSION,;t t
13883s,@ACLOCAL@,$ACLOCAL,;t t
13884s,@AUTOCONF@,$AUTOCONF,;t t
13885s,@AUTOMAKE@,$AUTOMAKE,;t t
13886s,@AUTOHEADER@,$AUTOHEADER,;t t
13887s,@MAKEINFO@,$MAKEINFO,;t t
13888s,@install_sh@,$install_sh,;t t
13889s,@STRIP@,$STRIP,;t t
13890s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
13891s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
13892s,@mkdir_p@,$mkdir_p,;t t
13893s,@AWK@,$AWK,;t t
13894s,@SET_MAKE@,$SET_MAKE,;t t
13895s,@am__leading_dot@,$am__leading_dot,;t t
13896s,@AMTAR@,$AMTAR,;t t
13897s,@am__tar@,$am__tar,;t t
13898s,@am__untar@,$am__untar,;t t
13899s,@DEPDIR@,$DEPDIR,;t t
13900s,@am__include@,$am__include,;t t
13901s,@am__quote@,$am__quote,;t t
13902s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
13903s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
13904s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
13905s,@CCDEPMODE@,$CCDEPMODE,;t t
13906s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
13907s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
ce2cded5
L
13908s,@use_sysroot@,$use_sysroot,;t t
13909s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
13910s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
13911s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
13912s,@NO_WERROR@,$NO_WERROR,;t t
d7040cdb
SE
13913s,@LIBTOOL@,$LIBTOOL,;t t
13914s,@SED@,$SED,;t t
13915s,@EGREP@,$EGREP,;t t
13916s,@FGREP@,$FGREP,;t t
13917s,@GREP@,$GREP,;t t
13918s,@LD@,$LD,;t t
13919s,@DUMPBIN@,$DUMPBIN,;t t
13920s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
13921s,@NM@,$NM,;t t
42ecbf5e 13922s,@LN_S@,$LN_S,;t t
d7040cdb
SE
13923s,@AR@,$AR,;t t
13924s,@ac_ct_AR@,$ac_ct_AR,;t t
42ecbf5e
DJ
13925s,@RANLIB@,$RANLIB,;t t
13926s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
d7040cdb
SE
13927s,@lt_ECHO@,$lt_ECHO,;t t
13928s,@CPP@,$CPP,;t t
42ecbf5e 13929s,@USE_NLS@,$USE_NLS,;t t
20e95c23
DJ
13930s,@LIBINTL@,$LIBINTL,;t t
13931s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
13932s,@INCINTL@,$INCINTL,;t t
42ecbf5e 13933s,@XGETTEXT@,$XGETTEXT,;t t
20e95c23
DJ
13934s,@GMSGFMT@,$GMSGFMT,;t t
13935s,@POSUB@,$POSUB,;t t
42ecbf5e 13936s,@CATALOGS@,$CATALOGS,;t t
42ecbf5e 13937s,@DATADIRNAME@,$DATADIRNAME,;t t
42ecbf5e 13938s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20e95c23
DJ
13939s,@GENCAT@,$GENCAT,;t t
13940s,@CATOBJEXT@,$CATOBJEXT,;t t
42ecbf5e 13941s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
20e95c23
DJ
13942s,@MSGFMT@,$MSGFMT,;t t
13943s,@MSGMERGE@,$MSGMERGE,;t t
42ecbf5e
DJ
13944s,@YACC@,$YACC,;t t
13945s,@LEX@,$LEX,;t t
13946s,@LEXLIB@,$LEXLIB,;t t
13947s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
13948s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13949s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13950s,@MAINT@,$MAINT,;t t
d5fbea21
DJ
13951s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
13952s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
42ecbf5e
DJ
13953s,@HDEFINES@,$HDEFINES,;t t
13954s,@HOSTING_CRT0@,$HOSTING_CRT0,;t t
13955s,@HOSTING_LIBS@,$HOSTING_LIBS,;t t
13956s,@NATIVE_LIB_DIRS@,$NATIVE_LIB_DIRS,;t t
13957s,@STRINGIFY@,$STRINGIFY,;t t
13958s,@EMUL@,$EMUL,;t t
13959s,@EMULATION_OFILES@,$EMULATION_OFILES,;t t
13960s,@EMUL_EXTRA_OFILES@,$EMUL_EXTRA_OFILES,;t t
13961s,@LIB_PATH@,$LIB_PATH,;t t
13962s,@EMULATION_LIBPATH@,$EMULATION_LIBPATH,;t t
13963s,@TESTBFDLIB@,$TESTBFDLIB,;t t
108a6f8e
CD
13964s,@datarootdir@,$datarootdir,;t t
13965s,@docdir@,$docdir,;t t
13966s,@htmldir@,$htmldir,;t t
42ecbf5e
DJ
13967s,@LIBOBJS@,$LIBOBJS,;t t
13968s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13969/@TDIRS@/r $TDIRS
13970s,@TDIRS@,,;t t
252b5132 13971CEOF
252b5132 13972
42ecbf5e
DJ
13973_ACEOF
13974
13975 cat >>$CONFIG_STATUS <<\_ACEOF
13976 # Split the substitutions into bite-sized pieces for seds with
13977 # small command number limits, like on Digital OSF/1 and HP-UX.
13978 ac_max_sed_lines=48
13979 ac_sed_frag=1 # Number of current file.
13980 ac_beg=1 # First line for current file.
13981 ac_end=$ac_max_sed_lines # Line after last line for current file.
13982 ac_more_lines=:
13983 ac_sed_cmds=
13984 while $ac_more_lines; do
13985 if test $ac_beg -gt 1; then
13986 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13987 else
13988 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13989 fi
13990 if test ! -s $tmp/subs.frag; then
13991 ac_more_lines=false
252b5132 13992 else
42ecbf5e
DJ
13993 # The purpose of the label and of the branching condition is to
13994 # speed up the sed processing (if there are no `@' at all, there
13995 # is no need to browse any of the substitutions).
13996 # These are the two extra sed commands mentioned above.
13997 (echo ':t
13998 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13999 if test -z "$ac_sed_cmds"; then
14000 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
14001 else
14002 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
14003 fi
14004 ac_sed_frag=`expr $ac_sed_frag + 1`
14005 ac_beg=$ac_end
14006 ac_end=`expr $ac_end + $ac_max_sed_lines`
252b5132 14007 fi
42ecbf5e
DJ
14008 done
14009 if test -z "$ac_sed_cmds"; then
14010 ac_sed_cmds=cat
252b5132 14011 fi
42ecbf5e 14012fi # test -n "$CONFIG_FILES"
252b5132 14013
42ecbf5e
DJ
14014_ACEOF
14015cat >>$CONFIG_STATUS <<\_ACEOF
14016for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
252b5132 14017 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42ecbf5e
DJ
14018 case $ac_file in
14019 - | *:- | *:-:* ) # input from stdin
14020 cat >$tmp/stdin
14021 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14022 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14023 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14024 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14025 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
14026 esac
14027
42ecbf5e
DJ
14028 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
14029 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14030$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14031 X"$ac_file" : 'X\(//\)[^/]' \| \
14032 X"$ac_file" : 'X\(//\)$' \| \
14033 X"$ac_file" : 'X\(/\)' \| \
14034 . : '\(.\)' 2>/dev/null ||
14035echo X"$ac_file" |
14036 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14037 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14038 /^X\(\/\/\)$/{ s//\1/; q; }
14039 /^X\(\/\).*/{ s//\1/; q; }
14040 s/.*/./; q'`
14041 { if $as_mkdir_p; then
14042 mkdir -p "$ac_dir"
d15b04bd 14043 else
42ecbf5e
DJ
14044 as_dir="$ac_dir"
14045 as_dirs=
14046 while test ! -d "$as_dir"; do
14047 as_dirs="$as_dir $as_dirs"
14048 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14049$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14050 X"$as_dir" : 'X\(//\)[^/]' \| \
14051 X"$as_dir" : 'X\(//\)$' \| \
14052 X"$as_dir" : 'X\(/\)' \| \
14053 . : '\(.\)' 2>/dev/null ||
14054echo X"$as_dir" |
14055 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14056 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14057 /^X\(\/\/\)$/{ s//\1/; q; }
14058 /^X\(\/\).*/{ s//\1/; q; }
14059 s/.*/./; q'`
14060 done
14061 test ! -n "$as_dirs" || mkdir $as_dirs
14062 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14063echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14064 { (exit 1); exit 1; }; }; }
14065
14066 ac_builddir=.
14067
14068if test "$ac_dir" != .; then
14069 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14070 # A "../" for each directory in $ac_dir_suffix.
14071 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14072else
14073 ac_dir_suffix= ac_top_builddir=
14074fi
252b5132 14075
42ecbf5e
DJ
14076case $srcdir in
14077 .) # No --srcdir option. We are building in place.
14078 ac_srcdir=.
14079 if test -z "$ac_top_builddir"; then
14080 ac_top_srcdir=.
14081 else
14082 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14083 fi ;;
14084 [\\/]* | ?:[\\/]* ) # Absolute path.
14085 ac_srcdir=$srcdir$ac_dir_suffix;
14086 ac_top_srcdir=$srcdir ;;
252b5132 14087 *) # Relative path.
42ecbf5e
DJ
14088 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14089 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14090esac
14091
14092# Do not use `cd foo && pwd` to compute absolute paths, because
14093# the directories may not exist.
14094case `pwd` in
14095.) ac_abs_builddir="$ac_dir";;
14096*)
14097 case "$ac_dir" in
14098 .) ac_abs_builddir=`pwd`;;
14099 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14100 *) ac_abs_builddir=`pwd`/"$ac_dir";;
14101 esac;;
14102esac
14103case $ac_abs_builddir in
14104.) ac_abs_top_builddir=${ac_top_builddir}.;;
14105*)
14106 case ${ac_top_builddir}. in
14107 .) ac_abs_top_builddir=$ac_abs_builddir;;
14108 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14109 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14110 esac;;
14111esac
14112case $ac_abs_builddir in
14113.) ac_abs_srcdir=$ac_srcdir;;
14114*)
14115 case $ac_srcdir in
14116 .) ac_abs_srcdir=$ac_abs_builddir;;
14117 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14118 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14119 esac;;
14120esac
14121case $ac_abs_builddir in
14122.) ac_abs_top_srcdir=$ac_top_srcdir;;
14123*)
14124 case $ac_top_srcdir in
14125 .) ac_abs_top_srcdir=$ac_abs_builddir;;
14126 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14127 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14128 esac;;
14129esac
252b5132 14130
e5a52504 14131
42ecbf5e
DJ
14132 case $INSTALL in
14133 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14134 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
d15b04bd 14135 esac
e5a52504 14136
502bdb00
JW
14137 if test x"$ac_file" != x-; then
14138 { echo "$as_me:$LINENO: creating $ac_file" >&5
14139echo "$as_me: creating $ac_file" >&6;}
14140 rm -f "$ac_file"
14141 fi
42ecbf5e
DJ
14142 # Let's still pretend it is `configure' which instantiates (i.e., don't
14143 # use $as_me), people would be surprised to read:
14144 # /* config.h. Generated by config.status. */
14145 if test x"$ac_file" = x-; then
14146 configure_input=
14147 else
14148 configure_input="$ac_file. "
14149 fi
14150 configure_input=$configure_input"Generated from `echo $ac_file_in |
14151 sed 's,.*/,,'` by configure."
14152
14153 # First look for the input files in the build tree, otherwise in the
14154 # src tree.
14155 ac_file_inputs=`IFS=:
14156 for f in $ac_file_in; do
14157 case $f in
14158 -) echo $tmp/stdin ;;
14159 [\\/$]*)
14160 # Absolute (can't be DOS-style, as IFS=:)
14161 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14162echo "$as_me: error: cannot find input file: $f" >&2;}
14163 { (exit 1); exit 1; }; }
14164 echo "$f";;
14165 *) # Relative
14166 if test -f "$f"; then
14167 # Build tree
14168 echo "$f"
14169 elif test -f "$srcdir/$f"; then
14170 # Source tree
14171 echo "$srcdir/$f"
14172 else
14173 # /dev/null tree
14174 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14175echo "$as_me: error: cannot find input file: $f" >&2;}
14176 { (exit 1); exit 1; }; }
14177 fi;;
14178 esac
14179 done` || { (exit 1); exit 1; }
42ecbf5e
DJ
14180_ACEOF
14181cat >>$CONFIG_STATUS <<_ACEOF
14182 sed "$ac_vpsub
14183$extrasub
14184_ACEOF
14185cat >>$CONFIG_STATUS <<\_ACEOF
14186:t
14187/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14188s,@configure_input@,$configure_input,;t t
14189s,@srcdir@,$ac_srcdir,;t t
14190s,@abs_srcdir@,$ac_abs_srcdir,;t t
14191s,@top_srcdir@,$ac_top_srcdir,;t t
14192s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
14193s,@builddir@,$ac_builddir,;t t
14194s,@abs_builddir@,$ac_abs_builddir,;t t
14195s,@top_builddir@,$ac_top_builddir,;t t
14196s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
14197s,@INSTALL@,$ac_INSTALL,;t t
14198" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
14199 rm -f $tmp/stdin
14200 if test x"$ac_file" != x-; then
14201 mv $tmp/out $ac_file
14202 else
14203 cat $tmp/out
14204 rm -f $tmp/out
14205 fi
14206
14207done
14208_ACEOF
14209cat >>$CONFIG_STATUS <<\_ACEOF
14210
14211#
14212# CONFIG_HEADER section.
14213#
252b5132
RH
14214
14215# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14216# NAME is the cpp macro being defined and VALUE is the value it is being given.
14217#
14218# ac_d sets the value in "#define NAME VALUE" lines.
42ecbf5e
DJ
14219ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14220ac_dB='[ ].*$,\1#\2'
14221ac_dC=' '
14222ac_dD=',;t'
14223# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14224ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14225ac_uB='$,\1#\2define\3'
252b5132 14226ac_uC=' '
42ecbf5e
DJ
14227ac_uD=',;t'
14228
14229for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
252b5132 14230 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42ecbf5e
DJ
14231 case $ac_file in
14232 - | *:- | *:-:* ) # input from stdin
14233 cat >$tmp/stdin
14234 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14235 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14236 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14237 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14238 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
14239 esac
14240
42ecbf5e
DJ
14241 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
14242echo "$as_me: creating $ac_file" >&6;}
14243
14244 # First look for the input files in the build tree, otherwise in the
14245 # src tree.
14246 ac_file_inputs=`IFS=:
14247 for f in $ac_file_in; do
14248 case $f in
14249 -) echo $tmp/stdin ;;
14250 [\\/$]*)
14251 # Absolute (can't be DOS-style, as IFS=:)
14252 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14253echo "$as_me: error: cannot find input file: $f" >&2;}
14254 { (exit 1); exit 1; }; }
14255 # Do quote $f, to prevent DOS paths from being IFS'd.
14256 echo "$f";;
14257 *) # Relative
14258 if test -f "$f"; then
14259 # Build tree
14260 echo "$f"
14261 elif test -f "$srcdir/$f"; then
14262 # Source tree
14263 echo "$srcdir/$f"
14264 else
14265 # /dev/null tree
14266 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14267echo "$as_me: error: cannot find input file: $f" >&2;}
14268 { (exit 1); exit 1; }; }
14269 fi;;
14270 esac
14271 done` || { (exit 1); exit 1; }
14272 # Remove the trailing spaces.
14273 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
14274
14275_ACEOF
14276
14277# Transform confdefs.h into two sed scripts, `conftest.defines' and
14278# `conftest.undefs', that substitutes the proper values into
14279# config.h.in to produce config.h. The first handles `#define'
14280# templates, and the second `#undef' templates.
14281# And first: Protect against being on the right side of a sed subst in
14282# config.status. Protect against being in an unquoted here document
14283# in config.status.
14284rm -f conftest.defines conftest.undefs
14285# Using a here document instead of a string reduces the quoting nightmare.
14286# Putting comments in sed scripts is not portable.
14287#
14288# `end' is used to avoid that the second main sed command (meant for
14289# 0-ary CPP macros) applies to n-ary macro definitions.
14290# See the Autoconf documentation for `clear'.
14291cat >confdef2sed.sed <<\_ACEOF
14292s/[\\&,]/\\&/g
14293s,[\\$`],\\&,g
14294t clear
14295: clear
14296s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
14297t end
14298s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
14299: end
14300_ACEOF
14301# If some macros were called several times there might be several times
14302# the same #defines, which is useless. Nevertheless, we may not want to
14303# sort them, since we want the *last* AC-DEFINE to be honored.
14304uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
14305sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
14306rm -f confdef2sed.sed
252b5132
RH
14307
14308# This sed command replaces #undef with comments. This is necessary, for
14309# example, in the case of _POSIX_SOURCE, which is predefined and required
14310# on some systems where configure will not decide to define it.
42ecbf5e
DJ
14311cat >>conftest.undefs <<\_ACEOF
14312s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
14313_ACEOF
14314
14315# Break up conftest.defines because some shells have a limit on the size
14316# of here documents, and old seds have small limits too (100 cmds).
14317echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
14318echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
14319echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
14320echo ' :' >>$CONFIG_STATUS
14321rm -f conftest.tail
14322while grep . conftest.defines >/dev/null
14323do
14324 # Write a limited-size here document to $tmp/defines.sed.
14325 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
14326 # Speed up: don't consider the non `#define' lines.
14327 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
14328 # Work around the forget-to-reset-the-flag bug.
14329 echo 't clr' >>$CONFIG_STATUS
14330 echo ': clr' >>$CONFIG_STATUS
14331 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
14332 echo 'CEOF
14333 sed -f $tmp/defines.sed $tmp/in >$tmp/out
14334 rm -f $tmp/in
14335 mv $tmp/out $tmp/in
14336' >>$CONFIG_STATUS
14337 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
14338 rm -f conftest.defines
14339 mv conftest.tail conftest.defines
14340done
14341rm -f conftest.defines
14342echo ' fi # grep' >>$CONFIG_STATUS
14343echo >>$CONFIG_STATUS
252b5132 14344
42ecbf5e
DJ
14345# Break up conftest.undefs because some shells have a limit on the size
14346# of here documents, and old seds have small limits too (100 cmds).
14347echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
252b5132 14348rm -f conftest.tail
42ecbf5e 14349while grep . conftest.undefs >/dev/null
252b5132 14350do
42ecbf5e
DJ
14351 # Write a limited-size here document to $tmp/undefs.sed.
14352 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
14353 # Speed up: don't consider the non `#undef'
14354 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
14355 # Work around the forget-to-reset-the-flag bug.
14356 echo 't clr' >>$CONFIG_STATUS
14357 echo ': clr' >>$CONFIG_STATUS
14358 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
252b5132 14359 echo 'CEOF
42ecbf5e
DJ
14360 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
14361 rm -f $tmp/in
14362 mv $tmp/out $tmp/in
14363' >>$CONFIG_STATUS
14364 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
14365 rm -f conftest.undefs
14366 mv conftest.tail conftest.undefs
252b5132 14367done
42ecbf5e
DJ
14368rm -f conftest.undefs
14369
14370cat >>$CONFIG_STATUS <<\_ACEOF
14371 # Let's still pretend it is `configure' which instantiates (i.e., don't
14372 # use $as_me), people would be surprised to read:
14373 # /* config.h. Generated by config.status. */
14374 if test x"$ac_file" = x-; then
14375 echo "/* Generated by configure. */" >$tmp/config.h
252b5132 14376 else
42ecbf5e
DJ
14377 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
14378 fi
14379 cat $tmp/in >>$tmp/config.h
14380 rm -f $tmp/in
14381 if test x"$ac_file" != x-; then
14382 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
14383 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14384echo "$as_me: $ac_file is unchanged" >&6;}
14385 else
14386 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14387$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14388 X"$ac_file" : 'X\(//\)[^/]' \| \
14389 X"$ac_file" : 'X\(//\)$' \| \
14390 X"$ac_file" : 'X\(/\)' \| \
14391 . : '\(.\)' 2>/dev/null ||
14392echo X"$ac_file" |
14393 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14394 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14395 /^X\(\/\/\)$/{ s//\1/; q; }
14396 /^X\(\/\).*/{ s//\1/; q; }
14397 s/.*/./; q'`
14398 { if $as_mkdir_p; then
14399 mkdir -p "$ac_dir"
14400 else
14401 as_dir="$ac_dir"
14402 as_dirs=
14403 while test ! -d "$as_dir"; do
14404 as_dirs="$as_dir $as_dirs"
14405 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14406$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14407 X"$as_dir" : 'X\(//\)[^/]' \| \
14408 X"$as_dir" : 'X\(//\)$' \| \
14409 X"$as_dir" : 'X\(/\)' \| \
14410 . : '\(.\)' 2>/dev/null ||
14411echo X"$as_dir" |
14412 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14413 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14414 /^X\(\/\/\)$/{ s//\1/; q; }
14415 /^X\(\/\).*/{ s//\1/; q; }
14416 s/.*/./; q'`
14417 done
14418 test ! -n "$as_dirs" || mkdir $as_dirs
14419 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14420echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14421 { (exit 1); exit 1; }; }; }
14422
14423 rm -f $ac_file
14424 mv $tmp/config.h $ac_file
252b5132 14425 fi
42ecbf5e
DJ
14426 else
14427 cat $tmp/config.h
14428 rm -f $tmp/config.h
e5a52504 14429 fi
42ecbf5e
DJ
14430# Compute $ac_file's index in $config_headers.
14431_am_stamp_count=1
14432for _am_header in $config_headers :; do
14433 case $_am_header in
14434 $ac_file | $ac_file:* )
14435 break ;;
14436 * )
14437 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14438 esac
14439done
14440echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
14441$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14442 X$ac_file : 'X\(//\)[^/]' \| \
14443 X$ac_file : 'X\(//\)$' \| \
14444 X$ac_file : 'X\(/\)' \| \
14445 . : '\(.\)' 2>/dev/null ||
14446echo X$ac_file |
14447 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14448 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14449 /^X\(\/\/\)$/{ s//\1/; q; }
14450 /^X\(\/\).*/{ s//\1/; q; }
14451 s/.*/./; q'`/stamp-h$_am_stamp_count
14452done
14453_ACEOF
14454cat >>$CONFIG_STATUS <<\_ACEOF
e5a52504 14455
42ecbf5e
DJ
14456#
14457# CONFIG_COMMANDS section.
14458#
14459for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
14460 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
14461 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
14462 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
14463$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14464 X"$ac_dest" : 'X\(//\)[^/]' \| \
14465 X"$ac_dest" : 'X\(//\)$' \| \
14466 X"$ac_dest" : 'X\(/\)' \| \
14467 . : '\(.\)' 2>/dev/null ||
14468echo X"$ac_dest" |
14469 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14470 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14471 /^X\(\/\/\)$/{ s//\1/; q; }
14472 /^X\(\/\).*/{ s//\1/; q; }
14473 s/.*/./; q'`
14474 { if $as_mkdir_p; then
14475 mkdir -p "$ac_dir"
14476 else
14477 as_dir="$ac_dir"
14478 as_dirs=
14479 while test ! -d "$as_dir"; do
14480 as_dirs="$as_dir $as_dirs"
14481 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14482$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14483 X"$as_dir" : 'X\(//\)[^/]' \| \
14484 X"$as_dir" : 'X\(//\)$' \| \
14485 X"$as_dir" : 'X\(/\)' \| \
14486 . : '\(.\)' 2>/dev/null ||
14487echo X"$as_dir" |
14488 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14489 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14490 /^X\(\/\/\)$/{ s//\1/; q; }
14491 /^X\(\/\).*/{ s//\1/; q; }
14492 s/.*/./; q'`
14493 done
14494 test ! -n "$as_dirs" || mkdir $as_dirs
14495 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14496echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14497 { (exit 1); exit 1; }; }; }
e5a52504 14498
42ecbf5e 14499 ac_builddir=.
e5a52504 14500
42ecbf5e
DJ
14501if test "$ac_dir" != .; then
14502 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14503 # A "../" for each directory in $ac_dir_suffix.
14504 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14505else
14506 ac_dir_suffix= ac_top_builddir=
14507fi
14508
14509case $srcdir in
14510 .) # No --srcdir option. We are building in place.
14511 ac_srcdir=.
14512 if test -z "$ac_top_builddir"; then
14513 ac_top_srcdir=.
14514 else
14515 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14516 fi ;;
14517 [\\/]* | ?:[\\/]* ) # Absolute path.
14518 ac_srcdir=$srcdir$ac_dir_suffix;
14519 ac_top_srcdir=$srcdir ;;
14520 *) # Relative path.
14521 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14522 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14523esac
14524
14525# Do not use `cd foo && pwd` to compute absolute paths, because
14526# the directories may not exist.
14527case `pwd` in
14528.) ac_abs_builddir="$ac_dir";;
14529*)
14530 case "$ac_dir" in
14531 .) ac_abs_builddir=`pwd`;;
14532 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14533 *) ac_abs_builddir=`pwd`/"$ac_dir";;
14534 esac;;
14535esac
14536case $ac_abs_builddir in
14537.) ac_abs_top_builddir=${ac_top_builddir}.;;
14538*)
14539 case ${ac_top_builddir}. in
14540 .) ac_abs_top_builddir=$ac_abs_builddir;;
14541 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14542 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14543 esac;;
14544esac
14545case $ac_abs_builddir in
14546.) ac_abs_srcdir=$ac_srcdir;;
14547*)
14548 case $ac_srcdir in
14549 .) ac_abs_srcdir=$ac_abs_builddir;;
14550 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14551 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14552 esac;;
14553esac
14554case $ac_abs_builddir in
14555.) ac_abs_top_srcdir=$ac_top_srcdir;;
14556*)
14557 case $ac_top_srcdir in
14558 .) ac_abs_top_srcdir=$ac_abs_builddir;;
14559 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14560 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14561 esac;;
14562esac
14563
14564
14565 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
14566echo "$as_me: executing $ac_dest commands" >&6;}
14567 case $ac_dest in
14568 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
14569 # Strip MF so we end up with the name of the file.
14570 mf=`echo "$mf" | sed -e 's/:.*$//'`
14571 # Check whether this is an Automake generated Makefile or not.
14572 # We used to match only the files named `Makefile.in', but
14573 # some people rename them; so instead we look at the file content.
14574 # Grep'ing the first line is not enough: some people post-process
14575 # each Makefile.in and add a new line on top of each file to say so.
14576 # So let's grep whole file.
14577 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
14578 dirpart=`(dirname "$mf") 2>/dev/null ||
14579$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14580 X"$mf" : 'X\(//\)[^/]' \| \
14581 X"$mf" : 'X\(//\)$' \| \
14582 X"$mf" : 'X\(/\)' \| \
14583 . : '\(.\)' 2>/dev/null ||
14584echo X"$mf" |
14585 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14586 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14587 /^X\(\/\/\)$/{ s//\1/; q; }
14588 /^X\(\/\).*/{ s//\1/; q; }
14589 s/.*/./; q'`
14590 else
14591 continue
14592 fi
14593 # Extract the definition of DEPDIR, am__include, and am__quote
14594 # from the Makefile without running `make'.
14595 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14596 test -z "$DEPDIR" && continue
14597 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14598 test -z "am__include" && continue
14599 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14600 # When using ansi2knr, U may be empty or an underscore; expand it
14601 U=`sed -n 's/^U = //p' < "$mf"`
14602 # Find all dependency output files, they are included files with
14603 # $(DEPDIR) in their names. We invoke sed twice because it is the
14604 # simplest approach to changing $(DEPDIR) to its actual value in the
14605 # expansion.
14606 for file in `sed -n "
14607 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14608 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14609 # Make sure the directory exists.
14610 test -f "$dirpart/$file" && continue
14611 fdir=`(dirname "$file") 2>/dev/null ||
14612$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14613 X"$file" : 'X\(//\)[^/]' \| \
14614 X"$file" : 'X\(//\)$' \| \
14615 X"$file" : 'X\(/\)' \| \
14616 . : '\(.\)' 2>/dev/null ||
14617echo X"$file" |
14618 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14619 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14620 /^X\(\/\/\)$/{ s//\1/; q; }
14621 /^X\(\/\).*/{ s//\1/; q; }
14622 s/.*/./; q'`
14623 { if $as_mkdir_p; then
14624 mkdir -p $dirpart/$fdir
14625 else
14626 as_dir=$dirpart/$fdir
14627 as_dirs=
14628 while test ! -d "$as_dir"; do
14629 as_dirs="$as_dir $as_dirs"
14630 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14631$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14632 X"$as_dir" : 'X\(//\)[^/]' \| \
14633 X"$as_dir" : 'X\(//\)$' \| \
14634 X"$as_dir" : 'X\(/\)' \| \
14635 . : '\(.\)' 2>/dev/null ||
14636echo X"$as_dir" |
14637 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14638 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14639 /^X\(\/\/\)$/{ s//\1/; q; }
14640 /^X\(\/\).*/{ s//\1/; q; }
14641 s/.*/./; q'`
14642 done
14643 test ! -n "$as_dirs" || mkdir $as_dirs
14644 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
14645echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
14646 { (exit 1); exit 1; }; }; }
14647
14648 # echo "creating $dirpart/$file"
14649 echo '# dummy' > "$dirpart/$file"
14650 done
14651done
d7040cdb
SE
14652 ;;
14653 libtool )
14654
14655 # See if we are running on zsh, and set the options which allow our
14656 # commands through without removal of \ escapes.
14657 if test -n "${ZSH_VERSION+set}" ; then
14658 setopt NO_GLOB_SUBST
14659 fi
14660
14661 cfgfile="${ofile}T"
14662 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14663 $RM "$cfgfile"
14664
14665 cat <<_LT_EOF >> "$cfgfile"
14666#! $SHELL
14667
14668# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14669# Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
14670# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14671# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14672#
14673# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14674# 2006, 2007 Free Software Foundation, Inc.
14675#
14676# This file is part of GNU Libtool:
14677# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14678#
14679# This program is free software; you can redistribute it and/or modify
14680# it under the terms of the GNU General Public License as published by
67310ccd 14681# the Free Software Foundation; either version 2 of the License, or
d7040cdb
SE
14682# (at your option) any later version.
14683#
14684# This program is distributed in the hope that it will be useful, but
14685# WITHOUT ANY WARRANTY; without even the implied warranty of
14686# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14687# General Public License for more details.
14688#
14689# You should have received a copy of the GNU General Public License
14690# along with this program; if not, a copy can be downloaded from
14691# http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
14692# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
14693# MA 02110-1301, USA.
14694#
14695# As a special exception to the GNU General Public License, if you
14696# distribute this file as part of a program that contains a
14697# configuration script generated by Autoconf, you may include it under
14698# the same distribution terms that you use for the rest of that program.
14699
14700
14701# The names of the tagged configurations supported by this script.
14702available_tags=""
14703
14704# ### BEGIN LIBTOOL CONFIG
14705
14706# Which release of libtool.m4 was used?
14707macro_version=$macro_version
14708macro_revision=$macro_revision
14709
14710# Whether or not to build shared libraries.
14711build_libtool_libs=$enable_shared
14712
14713# Whether or not to build static libraries.
14714build_old_libs=$enable_static
14715
14716# What type of objects to build.
14717pic_mode=$pic_mode
14718
14719# Whether or not to optimize for fast installation.
14720fast_install=$enable_fast_install
14721
14722# The host system.
14723host_alias=$host_alias
14724host=$host
14725host_os=$host_os
14726
14727# The build system.
14728build_alias=$build_alias
14729build=$build
14730build_os=$build_os
14731
14732# A sed program that does not truncate output.
14733SED=$lt_SED
14734
14735# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14736Xsed="\$SED -e 1s/^X//"
14737
14738# A grep program that handles long lines.
14739GREP=$lt_GREP
14740
14741# An ERE matcher.
14742EGREP=$lt_EGREP
14743
14744# A literal string matcher.
14745FGREP=$lt_FGREP
14746
14747# A BSD- or MS-compatible name lister.
14748NM=$lt_NM
14749
14750# Whether we need soft or hard links.
14751LN_S=$lt_LN_S
14752
14753# What is the maximum length of a command?
14754max_cmd_len=$max_cmd_len
14755
14756# Object file suffix (normally "o").
14757objext=$ac_objext
14758
14759# Executable file suffix (normally "").
14760exeext=$exeext
14761
14762# whether the shell understands "unset".
14763lt_unset=$lt_unset
14764
14765# turn spaces into newlines.
14766SP2NL=$lt_lt_SP2NL
14767
14768# turn newlines into spaces.
14769NL2SP=$lt_lt_NL2SP
14770
14771# How to create reloadable object files.
14772reload_flag=$lt_reload_flag
14773reload_cmds=$lt_reload_cmds
14774
14775# Method to check whether dependent libraries are shared objects.
14776deplibs_check_method=$lt_deplibs_check_method
14777
14778# Command to use when deplibs_check_method == "file_magic".
14779file_magic_cmd=$lt_file_magic_cmd
14780
14781# The archiver.
14782AR=$lt_AR
14783AR_FLAGS=$lt_AR_FLAGS
14784
14785# A symbol stripping program.
14786STRIP=$lt_STRIP
14787
14788# Commands used to install an old-style archive.
14789RANLIB=$lt_RANLIB
14790old_postinstall_cmds=$lt_old_postinstall_cmds
14791old_postuninstall_cmds=$lt_old_postuninstall_cmds
14792
14793# A C compiler.
14794LTCC=$lt_CC
14795
14796# LTCC compiler flags.
14797LTCFLAGS=$lt_CFLAGS
14798
14799# Take the output of nm and produce a listing of raw symbols and C names.
14800global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14801
14802# Transform the output of nm in a proper C declaration.
14803global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14804
14805# Transform the output of nm in a C name address pair.
14806global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14807
14808# The name of the directory that contains temporary libtool files.
14809objdir=$objdir
14810
14811# Shell to use when invoking shell scripts.
14812SHELL=$lt_SHELL
14813
14814# An echo program that does not interpret backslashes.
14815ECHO=$lt_ECHO
14816
14817# Used to examine libraries when file_magic_cmd begins with "file".
14818MAGIC_CMD=$MAGIC_CMD
14819
14820# Must we lock files when doing compilation?
14821need_locks=$lt_need_locks
14822
14823# Old archive suffix (normally "a").
14824libext=$libext
14825
14826# Shared library suffix (normally ".so").
14827shrext_cmds=$lt_shrext_cmds
14828
14829# The commands to extract the exported symbol list from a shared archive.
14830extract_expsyms_cmds=$lt_extract_expsyms_cmds
14831
14832# Variables whose values should be saved in libtool wrapper scripts and
14833# restored at link time.
14834variables_saved_for_relink=$lt_variables_saved_for_relink
14835
14836# Do we need the "lib" prefix for modules?
14837need_lib_prefix=$need_lib_prefix
14838
14839# Do we need a version for libraries?
14840need_version=$need_version
14841
14842# Library versioning type.
14843version_type=$version_type
14844
14845# Shared library runtime path variable.
14846runpath_var=$runpath_var
14847
14848# Shared library path variable.
14849shlibpath_var=$shlibpath_var
14850
14851# Is shlibpath searched before the hard-coded library search path?
14852shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14853
14854# Format of library name prefix.
14855libname_spec=$lt_libname_spec
14856
14857# List of archive names. First name is the real one, the rest are links.
14858# The last name is the one that the linker finds with -lNAME
14859library_names_spec=$lt_library_names_spec
14860
14861# The coded name of the library, if different from the real name.
14862soname_spec=$lt_soname_spec
14863
14864# Command to use after installation of a shared archive.
14865postinstall_cmds=$lt_postinstall_cmds
14866
14867# Command to use after uninstallation of a shared archive.
14868postuninstall_cmds=$lt_postuninstall_cmds
14869
14870# Commands used to finish a libtool library installation in a directory.
14871finish_cmds=$lt_finish_cmds
14872
14873# As "finish_cmds", except a single script fragment to be evaled but
14874# not shown.
14875finish_eval=$lt_finish_eval
14876
14877# Whether we should hardcode library paths into libraries.
14878hardcode_into_libs=$hardcode_into_libs
14879
14880# Compile-time system search path for libraries.
14881sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14882
14883# Run-time system search path for libraries.
14884sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14885
14886# Whether dlopen is supported.
14887dlopen_support=$enable_dlopen
14888
14889# Whether dlopen of programs is supported.
14890dlopen_self=$enable_dlopen_self
14891
14892# Whether dlopen of statically linked programs is supported.
14893dlopen_self_static=$enable_dlopen_self_static
14894
14895# Commands to strip libraries.
14896old_striplib=$lt_old_striplib
14897striplib=$lt_striplib
14898
14899
14900# The linker used to build libraries.
14901LD=$lt_LD
14902
14903# Commands used to build an old-style archive.
14904old_archive_cmds=$lt_old_archive_cmds
14905
14906# A language specific compiler.
14907CC=$lt_compiler
14908
14909# Is the compiler the GNU compiler?
14910with_gcc=$GCC
14911
14912# Compiler flag to turn off builtin functions.
14913no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14914
14915# How to pass a linker flag through the compiler.
14916wl=$lt_lt_prog_compiler_wl
14917
14918# Additional compiler flags for building library objects.
14919pic_flag=$lt_lt_prog_compiler_pic
14920
14921# Compiler flag to prevent dynamic linking.
14922link_static_flag=$lt_lt_prog_compiler_static
14923
14924# Does compiler simultaneously support -c and -o options?
14925compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14926
14927# Whether or not to add -lc for building shared libraries.
14928build_libtool_need_lc=$archive_cmds_need_lc
14929
14930# Whether or not to disallow shared libs when runtime libs are static.
14931allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14932
14933# Compiler flag to allow reflexive dlopens.
14934export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14935
14936# Compiler flag to generate shared objects directly from archives.
14937whole_archive_flag_spec=$lt_whole_archive_flag_spec
14938
14939# Whether the compiler copes with passing no objects directly.
14940compiler_needs_object=$lt_compiler_needs_object
14941
14942# Create an old-style archive from a shared archive.
14943old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14944
14945# Create a temporary old-style archive to link instead of a shared archive.
14946old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14947
14948# Commands used to build a shared archive.
14949archive_cmds=$lt_archive_cmds
14950archive_expsym_cmds=$lt_archive_expsym_cmds
14951
14952# Commands used to build a loadable module if different from building
14953# a shared archive.
14954module_cmds=$lt_module_cmds
14955module_expsym_cmds=$lt_module_expsym_cmds
14956
14957# Whether we are building with GNU ld or not.
14958with_gnu_ld=$lt_with_gnu_ld
14959
14960# Flag that allows shared libraries with undefined symbols to be built.
14961allow_undefined_flag=$lt_allow_undefined_flag
14962
14963# Flag that enforces no undefined symbols.
14964no_undefined_flag=$lt_no_undefined_flag
14965
14966# Flag to hardcode \$libdir into a binary during linking.
14967# This must work even if \$libdir does not exist
14968hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14969
14970# If ld is used when linking, flag to hardcode \$libdir into a binary
14971# during linking. This must work even if \$libdir does not exist.
14972hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14973
14974# Whether we need a single "-rpath" flag with a separated argument.
14975hardcode_libdir_separator=$lt_hardcode_libdir_separator
14976
14977# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14978# DIR into the resulting binary.
14979hardcode_direct=$hardcode_direct
14980
14981# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14982# DIR into the resulting binary and the resulting library dependency is
14983# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14984# library is relocated.
14985hardcode_direct_absolute=$hardcode_direct_absolute
14986
14987# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14988# into the resulting binary.
14989hardcode_minus_L=$hardcode_minus_L
14990
14991# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14992# into the resulting binary.
14993hardcode_shlibpath_var=$hardcode_shlibpath_var
14994
14995# Set to "yes" if building a shared library automatically hardcodes DIR
14996# into the library and all subsequent libraries and executables linked
14997# against it.
14998hardcode_automatic=$hardcode_automatic
14999
15000# Set to yes if linker adds runtime paths of dependent libraries
15001# to runtime path list.
15002inherit_rpath=$inherit_rpath
15003
15004# Whether libtool must link a program against all its dependency libraries.
15005link_all_deplibs=$link_all_deplibs
15006
15007# Fix the shell variable \$srcfile for the compiler.
15008fix_srcfile_path=$lt_fix_srcfile_path
15009
15010# Set to "yes" if exported symbols are required.
15011always_export_symbols=$always_export_symbols
15012
15013# The commands to list exported symbols.
15014export_symbols_cmds=$lt_export_symbols_cmds
15015
15016# Symbols that should not be listed in the preloaded symbols.
15017exclude_expsyms=$lt_exclude_expsyms
15018
15019# Symbols that must always be exported.
15020include_expsyms=$lt_include_expsyms
15021
15022# Commands necessary for linking programs (against libraries) with templates.
15023prelink_cmds=$lt_prelink_cmds
15024
15025# Specify filename containing input files.
15026file_list_spec=$lt_file_list_spec
15027
15028# How to hardcode a shared library path into an executable.
15029hardcode_action=$hardcode_action
15030
15031# ### END LIBTOOL CONFIG
15032
15033_LT_EOF
15034
15035 case $host_os in
15036 aix3*)
15037 cat <<\_LT_EOF >> "$cfgfile"
15038# AIX sometimes has problems with the GCC collect2 program. For some
15039# reason, if we set the COLLECT_NAMES environment variable, the problems
15040# vanish in a puff of smoke.
15041if test "X${COLLECT_NAMES+set}" != Xset; then
15042 COLLECT_NAMES=
15043 export COLLECT_NAMES
15044fi
15045_LT_EOF
15046 ;;
15047 esac
15048
15049
15050ltmain="$ac_aux_dir/ltmain.sh"
15051
15052
15053 # We use sed instead of cat because bash on DJGPP gets confused if
15054 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15055 # text mode, it properly converts lines to CR/LF. This bash problem
15056 # is reportedly fixed, but why not run on old versions too?
15057 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15058 || (rm -f "$cfgfile"; exit 1)
15059
15060 case $xsi_shell in
15061 yes)
15062 cat << \_LT_EOF >> "$cfgfile"
15063# func_dirname file append nondir_replacement
15064# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15065# otherwise set result to NONDIR_REPLACEMENT.
15066func_dirname ()
15067{
15068 case ${1} in
15069 */*) func_dirname_result="${1%/*}${2}" ;;
15070 * ) func_dirname_result="${3}" ;;
15071 esac
15072}
15073
15074# func_basename file
15075func_basename ()
15076{
15077 func_basename_result="${1##*/}"
15078}
15079
15080# func_stripname prefix suffix name
15081# strip PREFIX and SUFFIX off of NAME.
15082# PREFIX and SUFFIX must not contain globbing or regex special
15083# characters, hashes, percent signs, but SUFFIX may contain a leading
15084# dot (in which case that matches only a dot).
15085func_stripname ()
15086{
15087 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15088 # positional parameters, so assign one to ordinary parameter first.
15089 func_stripname_result=${3}
15090 func_stripname_result=${func_stripname_result#"${1}"}
15091 func_stripname_result=${func_stripname_result%"${2}"}
15092}
15093
15094# func_opt_split
15095func_opt_split ()
15096{
15097 func_opt_split_opt=${1%%=*}
15098 func_opt_split_arg=${1#*=}
15099}
15100
15101# func_lo2o object
15102func_lo2o ()
15103{
15104 case ${1} in
15105 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15106 *) func_lo2o_result=${1} ;;
15107 esac
15108}
15109_LT_EOF
15110 ;;
15111 *) # Bourne compatible functions.
15112 cat << \_LT_EOF >> "$cfgfile"
15113# func_dirname file append nondir_replacement
15114# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15115# otherwise set result to NONDIR_REPLACEMENT.
15116func_dirname ()
15117{
15118 # Extract subdirectory from the argument.
15119 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15120 if test "X$func_dirname_result" = "X${1}"; then
15121 func_dirname_result="${3}"
15122 else
15123 func_dirname_result="$func_dirname_result${2}"
15124 fi
15125}
15126
15127# func_basename file
15128func_basename ()
15129{
15130 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15131}
15132
15133# func_stripname prefix suffix name
15134# strip PREFIX and SUFFIX off of NAME.
15135# PREFIX and SUFFIX must not contain globbing or regex special
15136# characters, hashes, percent signs, but SUFFIX may contain a leading
15137# dot (in which case that matches only a dot).
15138# func_strip_suffix prefix name
15139func_stripname ()
15140{
15141 case ${2} in
15142 .*) func_stripname_result=`$ECHO "X${3}" \
15143 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15144 *) func_stripname_result=`$ECHO "X${3}" \
15145 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15146 esac
15147}
15148
15149# sed scripts:
15150my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15151my_sed_long_arg='1s/^-[^=]*=//'
15152
15153# func_opt_split
15154func_opt_split ()
15155{
15156 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15157 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15158}
15159
15160# func_lo2o object
15161func_lo2o ()
15162{
15163 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15164}
15165_LT_EOF
15166esac
15167
15168case $lt_shell_append in
15169 yes)
15170 cat << \_LT_EOF >> "$cfgfile"
15171
15172# func_append var value
15173# Append VALUE to the end of shell variable VAR.
15174func_append ()
15175{
15176 eval "$1+=\$2"
15177}
15178_LT_EOF
15179 ;;
15180 *)
15181 cat << \_LT_EOF >> "$cfgfile"
15182
15183# func_append var value
15184# Append VALUE to the end of shell variable VAR.
15185func_append ()
15186{
15187 eval "$1=\$$1\$2"
15188}
15189_LT_EOF
15190 ;;
15191 esac
15192
15193
15194 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15195 || (rm -f "$cfgfile"; exit 1)
15196
15197 mv -f "$cfgfile" "$ofile" ||
15198 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15199 chmod +x "$ofile"
15200
42ecbf5e 15201 ;;
20e95c23
DJ
15202 default-1 )
15203 for ac_file in $CONFIG_FILES; do
15204 # Support "outfile[:infile[:infile...]]"
15205 case "$ac_file" in
15206 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15207 esac
15208 # PO directories have a Makefile.in generated from Makefile.in.in.
15209 case "$ac_file" in */Makefile.in)
15210 # Adjust a relative srcdir.
15211 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15212 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
15213 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15214 # In autoconf-2.13 it is called $ac_given_srcdir.
15215 # In autoconf-2.50 it is called $srcdir.
15216 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15217 case "$ac_given_srcdir" in
15218 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15219 /*) top_srcdir="$ac_given_srcdir" ;;
15220 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
15221 esac
15222 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15223 rm -f "$ac_dir/POTFILES"
15224 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15225 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
15226 POMAKEFILEDEPS="POTFILES.in"
15227 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
15228 # on $ac_dir but don't depend on user-specified configuration
15229 # parameters.
15230 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15231 # The LINGUAS file contains the set of available languages.
15232 if test -n "$OBSOLETE_ALL_LINGUAS"; then
15233 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15234 fi
15235 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15236 # Hide the ALL_LINGUAS assigment from automake.
15237 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15238 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15239 else
15240 # The set of available languages was given in configure.in.
15241 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15242 fi
15243 case "$ac_given_srcdir" in
15244 .) srcdirpre= ;;
15245 *) srcdirpre='$(srcdir)/' ;;
15246 esac
15247 POFILES=
15248 GMOFILES=
15249 UPDATEPOFILES=
15250 DUMMYPOFILES=
15251 for lang in $ALL_LINGUAS; do
15252 POFILES="$POFILES $srcdirpre$lang.po"
15253 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
15254 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15255 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
15256 done
15257 # CATALOGS depends on both $ac_dir and the user's LINGUAS
15258 # environment variable.
15259 INST_LINGUAS=
15260 if test -n "$ALL_LINGUAS"; then
15261 for presentlang in $ALL_LINGUAS; do
15262 useit=no
15263 if test "%UNSET%" != "$LINGUAS"; then
15264 desiredlanguages="$LINGUAS"
15265 else
15266 desiredlanguages="$ALL_LINGUAS"
15267 fi
15268 for desiredlang in $desiredlanguages; do
15269 # Use the presentlang catalog if desiredlang is
15270 # a. equal to presentlang, or
15271 # b. a variant of presentlang (because in this case,
15272 # presentlang can be used as a fallback for messages
15273 # which are not translated in the desiredlang catalog).
15274 case "$desiredlang" in
15275 "$presentlang"*) useit=yes;;
15276 esac
15277 done
15278 if test $useit = yes; then
15279 INST_LINGUAS="$INST_LINGUAS $presentlang"
15280 fi
15281 done
15282 fi
15283 CATALOGS=
15284 if test -n "$INST_LINGUAS"; then
15285 for lang in $INST_LINGUAS; do
15286 CATALOGS="$CATALOGS $lang.gmo"
15287 done
15288 fi
15289 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
15290 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"
15291 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15292 if test -f "$f"; then
15293 case "$f" in
15294 *.orig | *.bak | *~) ;;
15295 *) cat "$f" >> "$ac_dir/Makefile" ;;
15296 esac
15297 fi
15298 done
15299 fi
15300 ;;
15301 esac
15302 done ;;
42ecbf5e
DJ
15303 esac
15304done
15305_ACEOF
15306
15307cat >>$CONFIG_STATUS <<\_ACEOF
15308
15309{ (exit 0); exit 0; }
15310_ACEOF
252b5132 15311chmod +x $CONFIG_STATUS
42ecbf5e
DJ
15312ac_clean_files=$ac_clean_files_save
15313
15314
15315# configure is writing to config.log, and then calls config.status.
15316# config.status does its own redirection, appending to config.log.
15317# Unfortunately, on DOS this fails, as config.log is still kept open
15318# by configure, so config.status won't be able to write to it; its
15319# output is simply discarded. So we exec the FD to /dev/null,
15320# effectively closing config.log, so it can be properly (re)opened and
15321# appended to by config.status. When coming back to configure, we
15322# need to make the FD available again.
15323if test "$no_create" != yes; then
15324 ac_cs_success=:
15325 ac_config_status_args=
15326 test "$silent" = yes &&
15327 ac_config_status_args="$ac_config_status_args --quiet"
15328 exec 5>/dev/null
15329 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15330 exec 5>>config.log
15331 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15332 # would make configure fail if this is the last instruction.
15333 $ac_cs_success || { (exit 1); exit 1; }
15334fi
252b5132 15335
This page took 1.126357 seconds and 4 git commands to generate.