]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - ld/configure
Minor fixes in sim, gold, gdb for Autoconf 2.64, Automake 1.11.
[thirdparty/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
eccbf555 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 CPP EGREP LIBTOOL SED FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S OBJDUMP ac_ct_OBJDUMP AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT LIPO ac_ct_LIPO OTOOL ac_ct_OTOOL OTOOL64 ac_ct_OTOOL64 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 do_compare HDEFINES HOSTING_CRT0 HOSTING_LIBS NATIVE_LIB_DIRS STRINGIFY EMUL EMULATION_OFILES EMUL_EXTRA_OFILES LIB_PATH EMULATION_LIBPATH TESTBFDLIB datarootdir docdir htmldir pdfdir LIBOBJS LTLIBOBJS'
42ecbf5e 462ac_subst_files='TDIRS'
7a283e07 463ac_pwd=`pwd`
252b5132
RH
464
465# Initialize some variables set by options.
42ecbf5e
DJ
466ac_init_help=
467ac_init_version=false
252b5132
RH
468# The variables have the same names as the options, with
469# dashes changed to underlines.
42ecbf5e 470cache_file=/dev/null
252b5132 471exec_prefix=NONE
252b5132 472no_create=
252b5132
RH
473no_recursion=
474prefix=NONE
475program_prefix=NONE
476program_suffix=NONE
477program_transform_name=s,x,x,
478silent=
479site=
480srcdir=
252b5132
RH
481verbose=
482x_includes=NONE
483x_libraries=NONE
42ecbf5e
DJ
484
485# Installation directory options.
486# These are left unexpanded so users can "make install exec_prefix=/foo"
487# and all the variables that are supposed to be based on exec_prefix
488# by default will actually change.
489# Use braces instead of parens because sh, perl, etc. also accept them.
252b5132
RH
490bindir='${exec_prefix}/bin'
491sbindir='${exec_prefix}/sbin'
492libexecdir='${exec_prefix}/libexec'
493datadir='${prefix}/share'
494sysconfdir='${prefix}/etc'
495sharedstatedir='${prefix}/com'
496localstatedir='${prefix}/var'
497libdir='${exec_prefix}/lib'
498includedir='${prefix}/include'
499oldincludedir='/usr/include'
500infodir='${prefix}/info'
501mandir='${prefix}/man'
502
252b5132
RH
503ac_prev=
504for ac_option
505do
252b5132
RH
506 # If the previous option needs an argument, assign it.
507 if test -n "$ac_prev"; then
508 eval "$ac_prev=\$ac_option"
509 ac_prev=
510 continue
511 fi
512
42ecbf5e 513 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
252b5132
RH
514
515 # Accept the important Cygnus configure options, so we can diagnose typos.
516
42ecbf5e 517 case $ac_option in
252b5132
RH
518
519 -bindir | --bindir | --bindi | --bind | --bin | --bi)
520 ac_prev=bindir ;;
521 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
42ecbf5e 522 bindir=$ac_optarg ;;
252b5132
RH
523
524 -build | --build | --buil | --bui | --bu)
42ecbf5e 525 ac_prev=build_alias ;;
252b5132 526 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
42ecbf5e 527 build_alias=$ac_optarg ;;
252b5132
RH
528
529 -cache-file | --cache-file | --cache-fil | --cache-fi \
530 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
531 ac_prev=cache_file ;;
532 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
533 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
42ecbf5e
DJ
534 cache_file=$ac_optarg ;;
535
536 --config-cache | -C)
537 cache_file=config.cache ;;
252b5132
RH
538
539 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
540 ac_prev=datadir ;;
541 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
542 | --da=*)
42ecbf5e 543 datadir=$ac_optarg ;;
252b5132
RH
544
545 -disable-* | --disable-*)
42ecbf5e 546 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 547 # Reject names that are not valid shell variable names.
42ecbf5e
DJ
548 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
549 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
550 { (exit 1); exit 1; }; }
551 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
552 eval "enable_$ac_feature=no" ;;
252b5132
RH
553
554 -enable-* | --enable-*)
42ecbf5e 555 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 556 # Reject names that are not valid shell variable names.
42ecbf5e
DJ
557 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559 { (exit 1); exit 1; }; }
560 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561 case $ac_option in
562 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252b5132
RH
563 *) ac_optarg=yes ;;
564 esac
42ecbf5e 565 eval "enable_$ac_feature='$ac_optarg'" ;;
252b5132
RH
566
567 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
568 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
569 | --exec | --exe | --ex)
570 ac_prev=exec_prefix ;;
571 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
572 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
573 | --exec=* | --exe=* | --ex=*)
42ecbf5e 574 exec_prefix=$ac_optarg ;;
252b5132
RH
575
576 -gas | --gas | --ga | --g)
577 # Obsolete; use --with-gas.
578 with_gas=yes ;;
579
42ecbf5e
DJ
580 -help | --help | --hel | --he | -h)
581 ac_init_help=long ;;
582 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
583 ac_init_help=recursive ;;
584 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
585 ac_init_help=short ;;
252b5132
RH
586
587 -host | --host | --hos | --ho)
42ecbf5e 588 ac_prev=host_alias ;;
252b5132 589 -host=* | --host=* | --hos=* | --ho=*)
42ecbf5e 590 host_alias=$ac_optarg ;;
252b5132
RH
591
592 -includedir | --includedir | --includedi | --included | --include \
593 | --includ | --inclu | --incl | --inc)
594 ac_prev=includedir ;;
595 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
596 | --includ=* | --inclu=* | --incl=* | --inc=*)
42ecbf5e 597 includedir=$ac_optarg ;;
252b5132
RH
598
599 -infodir | --infodir | --infodi | --infod | --info | --inf)
600 ac_prev=infodir ;;
601 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
42ecbf5e 602 infodir=$ac_optarg ;;
252b5132
RH
603
604 -libdir | --libdir | --libdi | --libd)
605 ac_prev=libdir ;;
606 -libdir=* | --libdir=* | --libdi=* | --libd=*)
42ecbf5e 607 libdir=$ac_optarg ;;
252b5132
RH
608
609 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
610 | --libexe | --libex | --libe)
611 ac_prev=libexecdir ;;
612 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
613 | --libexe=* | --libex=* | --libe=*)
42ecbf5e 614 libexecdir=$ac_optarg ;;
252b5132
RH
615
616 -localstatedir | --localstatedir | --localstatedi | --localstated \
617 | --localstate | --localstat | --localsta | --localst \
618 | --locals | --local | --loca | --loc | --lo)
619 ac_prev=localstatedir ;;
620 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
621 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
622 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
42ecbf5e 623 localstatedir=$ac_optarg ;;
252b5132
RH
624
625 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
626 ac_prev=mandir ;;
627 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
42ecbf5e 628 mandir=$ac_optarg ;;
252b5132
RH
629
630 -nfp | --nfp | --nf)
631 # Obsolete; use --without-fp.
632 with_fp=no ;;
633
634 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
42ecbf5e 635 | --no-cr | --no-c | -n)
252b5132
RH
636 no_create=yes ;;
637
638 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
639 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
640 no_recursion=yes ;;
641
642 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
643 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
644 | --oldin | --oldi | --old | --ol | --o)
645 ac_prev=oldincludedir ;;
646 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
647 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
648 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
42ecbf5e 649 oldincludedir=$ac_optarg ;;
252b5132
RH
650
651 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
652 ac_prev=prefix ;;
653 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
42ecbf5e 654 prefix=$ac_optarg ;;
252b5132
RH
655
656 -program-prefix | --program-prefix | --program-prefi | --program-pref \
657 | --program-pre | --program-pr | --program-p)
658 ac_prev=program_prefix ;;
659 -program-prefix=* | --program-prefix=* | --program-prefi=* \
660 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
42ecbf5e 661 program_prefix=$ac_optarg ;;
252b5132
RH
662
663 -program-suffix | --program-suffix | --program-suffi | --program-suff \
664 | --program-suf | --program-su | --program-s)
665 ac_prev=program_suffix ;;
666 -program-suffix=* | --program-suffix=* | --program-suffi=* \
667 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
42ecbf5e 668 program_suffix=$ac_optarg ;;
252b5132
RH
669
670 -program-transform-name | --program-transform-name \
671 | --program-transform-nam | --program-transform-na \
672 | --program-transform-n | --program-transform- \
673 | --program-transform | --program-transfor \
674 | --program-transfo | --program-transf \
675 | --program-trans | --program-tran \
676 | --progr-tra | --program-tr | --program-t)
677 ac_prev=program_transform_name ;;
678 -program-transform-name=* | --program-transform-name=* \
679 | --program-transform-nam=* | --program-transform-na=* \
680 | --program-transform-n=* | --program-transform-=* \
681 | --program-transform=* | --program-transfor=* \
682 | --program-transfo=* | --program-transf=* \
683 | --program-trans=* | --program-tran=* \
684 | --progr-tra=* | --program-tr=* | --program-t=*)
42ecbf5e 685 program_transform_name=$ac_optarg ;;
252b5132
RH
686
687 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
688 | -silent | --silent | --silen | --sile | --sil)
689 silent=yes ;;
690
691 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
692 ac_prev=sbindir ;;
693 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
694 | --sbi=* | --sb=*)
42ecbf5e 695 sbindir=$ac_optarg ;;
252b5132
RH
696
697 -sharedstatedir | --sharedstatedir | --sharedstatedi \
698 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
699 | --sharedst | --shareds | --shared | --share | --shar \
700 | --sha | --sh)
701 ac_prev=sharedstatedir ;;
702 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
703 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
704 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
705 | --sha=* | --sh=*)
42ecbf5e 706 sharedstatedir=$ac_optarg ;;
252b5132
RH
707
708 -site | --site | --sit)
709 ac_prev=site ;;
710 -site=* | --site=* | --sit=*)
42ecbf5e 711 site=$ac_optarg ;;
85fbca6a 712
252b5132
RH
713 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
714 ac_prev=srcdir ;;
715 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
42ecbf5e 716 srcdir=$ac_optarg ;;
252b5132
RH
717
718 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
719 | --syscon | --sysco | --sysc | --sys | --sy)
720 ac_prev=sysconfdir ;;
721 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
722 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
42ecbf5e 723 sysconfdir=$ac_optarg ;;
252b5132
RH
724
725 -target | --target | --targe | --targ | --tar | --ta | --t)
42ecbf5e 726 ac_prev=target_alias ;;
252b5132 727 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
42ecbf5e 728 target_alias=$ac_optarg ;;
252b5132
RH
729
730 -v | -verbose | --verbose | --verbos | --verbo | --verb)
731 verbose=yes ;;
732
42ecbf5e
DJ
733 -version | --version | --versio | --versi | --vers | -V)
734 ac_init_version=: ;;
252b5132
RH
735
736 -with-* | --with-*)
42ecbf5e 737 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 738 # Reject names that are not valid shell variable names.
42ecbf5e
DJ
739 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
740 { echo "$as_me: error: invalid package name: $ac_package" >&2
741 { (exit 1); exit 1; }; }
252b5132 742 ac_package=`echo $ac_package| sed 's/-/_/g'`
42ecbf5e
DJ
743 case $ac_option in
744 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252b5132
RH
745 *) ac_optarg=yes ;;
746 esac
42ecbf5e 747 eval "with_$ac_package='$ac_optarg'" ;;
252b5132
RH
748
749 -without-* | --without-*)
42ecbf5e 750 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 751 # Reject names that are not valid shell variable names.
42ecbf5e
DJ
752 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753 { echo "$as_me: error: invalid package name: $ac_package" >&2
754 { (exit 1); exit 1; }; }
755 ac_package=`echo $ac_package | sed 's/-/_/g'`
756 eval "with_$ac_package=no" ;;
252b5132
RH
757
758 --x)
759 # Obsolete; use --with-x.
760 with_x=yes ;;
761
762 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
763 | --x-incl | --x-inc | --x-in | --x-i)
764 ac_prev=x_includes ;;
765 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
766 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
42ecbf5e 767 x_includes=$ac_optarg ;;
252b5132
RH
768
769 -x-libraries | --x-libraries | --x-librarie | --x-librari \
770 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
771 ac_prev=x_libraries ;;
772 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
773 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
42ecbf5e 774 x_libraries=$ac_optarg ;;
252b5132 775
42ecbf5e
DJ
776 -*) { echo "$as_me: error: unrecognized option: $ac_option
777Try \`$0 --help' for more information." >&2
778 { (exit 1); exit 1; }; }
252b5132
RH
779 ;;
780
42ecbf5e
DJ
781 *=*)
782 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
783 # Reject names that are not valid shell variable names.
784 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
785 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
786 { (exit 1); exit 1; }; }
787 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
788 eval "$ac_envvar='$ac_optarg'"
789 export $ac_envvar ;;
790
252b5132 791 *)
42ecbf5e
DJ
792 # FIXME: should be removed in autoconf 3.0.
793 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
794 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
795 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
796 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
252b5132
RH
797 ;;
798
799 esac
800done
801
802if test -n "$ac_prev"; then
42ecbf5e
DJ
803 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
804 { echo "$as_me: error: missing argument to $ac_option" >&2
805 { (exit 1); exit 1; }; }
252b5132 806fi
252b5132 807
42ecbf5e
DJ
808# Be sure to have absolute paths.
809for ac_var in exec_prefix prefix
810do
811 eval ac_val=$`echo $ac_var`
812 case $ac_val in
813 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
814 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
815 { (exit 1); exit 1; }; };;
816 esac
817done
252b5132 818
42ecbf5e
DJ
819# Be sure to have absolute paths.
820for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
821 localstatedir libdir includedir oldincludedir infodir mandir
252b5132 822do
42ecbf5e
DJ
823 eval ac_val=$`echo $ac_var`
824 case $ac_val in
825 [\\/$]* | ?:[\\/]* ) ;;
826 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
827 { (exit 1); exit 1; }; };;
252b5132
RH
828 esac
829done
830
42ecbf5e
DJ
831# There might be people who depend on the old broken behavior: `$host'
832# used to hold the argument of --host etc.
833# FIXME: To remove some day.
834build=$build_alias
835host=$host_alias
836target=$target_alias
837
838# FIXME: To remove some day.
839if test "x$host_alias" != x; then
840 if test "x$build_alias" = x; then
841 cross_compiling=maybe
842 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
843 If a cross compiler is detected then cross compile mode will be used." >&2
844 elif test "x$build_alias" != "x$host_alias"; then
845 cross_compiling=yes
846 fi
847fi
e5a52504 848
42ecbf5e
DJ
849ac_tool_prefix=
850test -n "$host_alias" && ac_tool_prefix=$host_alias-
851
852test "$silent" = yes && exec 6>/dev/null
252b5132 853
252b5132
RH
854
855# Find the source files, if location was not specified.
856if test -z "$srcdir"; then
857 ac_srcdir_defaulted=yes
858 # Try the directory containing this script, then its parent.
42ecbf5e
DJ
859 ac_confdir=`(dirname "$0") 2>/dev/null ||
860$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
861 X"$0" : 'X\(//\)[^/]' \| \
862 X"$0" : 'X\(//\)$' \| \
863 X"$0" : 'X\(/\)' \| \
864 . : '\(.\)' 2>/dev/null ||
865echo X"$0" |
866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
867 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
868 /^X\(\/\/\)$/{ s//\1/; q; }
869 /^X\(\/\).*/{ s//\1/; q; }
870 s/.*/./; q'`
252b5132
RH
871 srcdir=$ac_confdir
872 if test ! -r $srcdir/$ac_unique_file; then
873 srcdir=..
874 fi
875else
876 ac_srcdir_defaulted=no
877fi
878if test ! -r $srcdir/$ac_unique_file; then
879 if test "$ac_srcdir_defaulted" = yes; then
42ecbf5e
DJ
880 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
881 { (exit 1); exit 1; }; }
252b5132 882 else
42ecbf5e
DJ
883 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
884 { (exit 1); exit 1; }; }
252b5132
RH
885 fi
886fi
42ecbf5e
DJ
887(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
888 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
889 { (exit 1); exit 1; }; }
890srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
891ac_env_build_alias_set=${build_alias+set}
892ac_env_build_alias_value=$build_alias
893ac_cv_env_build_alias_set=${build_alias+set}
894ac_cv_env_build_alias_value=$build_alias
895ac_env_host_alias_set=${host_alias+set}
896ac_env_host_alias_value=$host_alias
897ac_cv_env_host_alias_set=${host_alias+set}
898ac_cv_env_host_alias_value=$host_alias
899ac_env_target_alias_set=${target_alias+set}
900ac_env_target_alias_value=$target_alias
901ac_cv_env_target_alias_set=${target_alias+set}
902ac_cv_env_target_alias_value=$target_alias
903ac_env_CC_set=${CC+set}
904ac_env_CC_value=$CC
905ac_cv_env_CC_set=${CC+set}
906ac_cv_env_CC_value=$CC
907ac_env_CFLAGS_set=${CFLAGS+set}
908ac_env_CFLAGS_value=$CFLAGS
909ac_cv_env_CFLAGS_set=${CFLAGS+set}
910ac_cv_env_CFLAGS_value=$CFLAGS
911ac_env_LDFLAGS_set=${LDFLAGS+set}
912ac_env_LDFLAGS_value=$LDFLAGS
913ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
914ac_cv_env_LDFLAGS_value=$LDFLAGS
915ac_env_CPPFLAGS_set=${CPPFLAGS+set}
916ac_env_CPPFLAGS_value=$CPPFLAGS
917ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
918ac_cv_env_CPPFLAGS_value=$CPPFLAGS
919ac_env_CPP_set=${CPP+set}
920ac_env_CPP_value=$CPP
921ac_cv_env_CPP_set=${CPP+set}
922ac_cv_env_CPP_value=$CPP
252b5132 923
42ecbf5e
DJ
924#
925# Report the --help message.
926#
927if test "$ac_init_help" = "long"; then
928 # Omit some internal or obsolete options to make the list less imposing.
929 # This message is too long to be a string in the A/UX 3.1 sh.
930 cat <<_ACEOF
931\`configure' configures this package to adapt to many kinds of systems.
252b5132 932
42ecbf5e 933Usage: $0 [OPTION]... [VAR=VALUE]...
252b5132 934
42ecbf5e
DJ
935To assign environment variables (e.g., CC, CFLAGS...), specify them as
936VAR=VALUE. See below for descriptions of some of the useful variables.
252b5132 937
42ecbf5e 938Defaults for the options are specified in brackets.
ac48eca1 939
42ecbf5e
DJ
940Configuration:
941 -h, --help display this help and exit
942 --help=short display options specific to this package
943 --help=recursive display the short help of all the included packages
944 -V, --version display version information and exit
945 -q, --quiet, --silent do not print \`checking...' messages
946 --cache-file=FILE cache test results in FILE [disabled]
947 -C, --config-cache alias for \`--cache-file=config.cache'
948 -n, --no-create do not create output files
949 --srcdir=DIR find the sources in DIR [configure dir or \`..']
950
951_ACEOF
952
953 cat <<_ACEOF
954Installation directories:
955 --prefix=PREFIX install architecture-independent files in PREFIX
956 [$ac_default_prefix]
957 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
958 [PREFIX]
ac48eca1 959
42ecbf5e
DJ
960By default, \`make install' will install all the files in
961\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
962an installation prefix other than \`$ac_default_prefix' using \`--prefix',
963for instance \`--prefix=\$HOME'.
ac48eca1 964
42ecbf5e 965For better control, use the options below.
ac48eca1 966
42ecbf5e
DJ
967Fine tuning of the installation directories:
968 --bindir=DIR user executables [EPREFIX/bin]
969 --sbindir=DIR system admin executables [EPREFIX/sbin]
970 --libexecdir=DIR program executables [EPREFIX/libexec]
971 --datadir=DIR read-only architecture-independent data [PREFIX/share]
972 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
973 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
974 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
975 --libdir=DIR object code libraries [EPREFIX/lib]
976 --includedir=DIR C header files [PREFIX/include]
977 --oldincludedir=DIR C header files for non-gcc [/usr/include]
978 --infodir=DIR info documentation [PREFIX/info]
979 --mandir=DIR man documentation [PREFIX/man]
980_ACEOF
ac48eca1 981
42ecbf5e 982 cat <<\_ACEOF
252b5132 983
42ecbf5e
DJ
984Program names:
985 --program-prefix=PREFIX prepend PREFIX to installed program names
986 --program-suffix=SUFFIX append SUFFIX to installed program names
987 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
252b5132 988
42ecbf5e
DJ
989System types:
990 --build=BUILD configure for building on BUILD [guessed]
991 --host=HOST cross-compile to build programs to run on HOST [BUILD]
992 --target=TARGET configure for building compilers for TARGET [HOST]
993_ACEOF
252b5132 994fi
252b5132 995
42ecbf5e 996if test -n "$ac_init_help"; then
252b5132 997
42ecbf5e 998 cat <<\_ACEOF
e5a52504 999
42ecbf5e
DJ
1000Optional Features:
1001 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1002 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1003 --disable-dependency-tracking speeds up one-time build
1004 --enable-dependency-tracking do not reject slow dependency extractors
ce2cded5
L
1005 --enable-targets alternative target configurations
1006 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
7fb9f789
NC
1007 --enable-got=<type> GOT handling scheme (target, single, negative,
1008 multigot)
ce2cded5
L
1009 --enable-werror treat compile warnings as errors
1010 --enable-build-warnings enable build-time compiler warnings
d053aef8 1011 --disable-largefile omit support for large files
d7040cdb
SE
1012 --enable-shared[=PKGS]
1013 build shared libraries [default=yes]
1014 --enable-static[=PKGS]
1015 build static libraries [default=yes]
1016 --enable-fast-install[=PKGS]
1017 optimize for fast installation [default=yes]
42ecbf5e 1018 --disable-libtool-lock avoid locking (might break parallel builds)
42ecbf5e
DJ
1019 --disable-nls do not use Native Language Support
1020 --enable-maintainer-mode enable make rules and dependencies not useful
1021 (and sometimes confusing) to the casual installer
1022
1023Optional Packages:
1024 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1025 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
ce2cded5
L
1026 --with-lib-path=dir1:dir2... set default LIB_PATH
1027 --with-sysroot=DIR Search for usr/lib et al within DIR.
d7040cdb
SE
1028 --with-pic try to use only PIC/non-PIC objects [default=use
1029 both]
1030 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
42ecbf5e
DJ
1031
1032Some influential environment variables:
1033 CC C compiler command
1034 CFLAGS C compiler flags
1035 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1036 nonstandard directory <lib dir>
1037 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1038 headers in a nonstandard directory <include dir>
1039 CPP C preprocessor
1040
1041Use these variables to override the choices made by `configure' or to help
1042it to find libraries and programs with nonstandard names/locations.
1043
1044_ACEOF
1045fi
1046
1047if test "$ac_init_help" = "recursive"; then
1048 # If there are subdirs, report their specific --help.
1049 ac_popdir=`pwd`
1050 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1051 test -d $ac_dir || continue
1052 ac_builddir=.
1053
1054if test "$ac_dir" != .; then
1055 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1056 # A "../" for each directory in $ac_dir_suffix.
1057 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1058else
1059 ac_dir_suffix= ac_top_builddir=
1060fi
1061
1062case $srcdir in
1063 .) # No --srcdir option. We are building in place.
1064 ac_srcdir=.
1065 if test -z "$ac_top_builddir"; then
1066 ac_top_srcdir=.
1067 else
1068 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1069 fi ;;
1070 [\\/]* | ?:[\\/]* ) # Absolute path.
1071 ac_srcdir=$srcdir$ac_dir_suffix;
1072 ac_top_srcdir=$srcdir ;;
1073 *) # Relative path.
1074 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1075 ac_top_srcdir=$ac_top_builddir$srcdir ;;
252b5132
RH
1076esac
1077
42ecbf5e
DJ
1078# Do not use `cd foo && pwd` to compute absolute paths, because
1079# the directories may not exist.
1080case `pwd` in
1081.) ac_abs_builddir="$ac_dir";;
1082*)
1083 case "$ac_dir" in
1084 .) ac_abs_builddir=`pwd`;;
1085 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1086 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1087 esac;;
1088esac
1089case $ac_abs_builddir in
1090.) ac_abs_top_builddir=${ac_top_builddir}.;;
1091*)
1092 case ${ac_top_builddir}. in
1093 .) ac_abs_top_builddir=$ac_abs_builddir;;
1094 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1095 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1096 esac;;
1097esac
1098case $ac_abs_builddir in
1099.) ac_abs_srcdir=$ac_srcdir;;
1100*)
1101 case $ac_srcdir in
1102 .) ac_abs_srcdir=$ac_abs_builddir;;
1103 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1104 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1105 esac;;
1106esac
1107case $ac_abs_builddir in
1108.) ac_abs_top_srcdir=$ac_top_srcdir;;
1109*)
1110 case $ac_top_srcdir in
1111 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1112 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1113 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1114 esac;;
1115esac
a2d91340 1116
42ecbf5e
DJ
1117 cd $ac_dir
1118 # Check for guested configure; otherwise get Cygnus style configure.
1119 if test -f $ac_srcdir/configure.gnu; then
1120 echo
1121 $SHELL $ac_srcdir/configure.gnu --help=recursive
1122 elif test -f $ac_srcdir/configure; then
1123 echo
1124 $SHELL $ac_srcdir/configure --help=recursive
1125 elif test -f $ac_srcdir/configure.ac ||
1126 test -f $ac_srcdir/configure.in; then
1127 echo
1128 $ac_configure --help
1129 else
1130 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1131 fi
7357c5b6 1132 cd $ac_popdir
42ecbf5e 1133 done
a2d91340
AC
1134fi
1135
42ecbf5e
DJ
1136test -n "$ac_init_help" && exit 0
1137if $ac_init_version; then
1138 cat <<\_ACEOF
a2d91340 1139
42ecbf5e
DJ
1140Copyright (C) 2003 Free Software Foundation, Inc.
1141This configure script is free software; the Free Software Foundation
1142gives unlimited permission to copy, distribute and modify it.
1143_ACEOF
1144 exit 0
1145fi
1146exec 5>config.log
1147cat >&5 <<_ACEOF
1148This file contains any messages produced by compilers while
1149running configure, to aid debugging if configure makes a mistake.
a2d91340 1150
42ecbf5e
DJ
1151It was created by $as_me, which was
1152generated by GNU Autoconf 2.59. Invocation command line was
a2d91340 1153
42ecbf5e 1154 $ $0 $@
a2d91340 1155
42ecbf5e
DJ
1156_ACEOF
1157{
1158cat <<_ASUNAME
1159## --------- ##
1160## Platform. ##
1161## --------- ##
1162
1163hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1164uname -m = `(uname -m) 2>/dev/null || echo unknown`
1165uname -r = `(uname -r) 2>/dev/null || echo unknown`
1166uname -s = `(uname -s) 2>/dev/null || echo unknown`
1167uname -v = `(uname -v) 2>/dev/null || echo unknown`
1168
1169/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1170/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1171
1172/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1173/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1174/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1175hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1176/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1177/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1178/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1179
1180_ASUNAME
1181
1182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1183for as_dir in $PATH
1184do
1185 IFS=$as_save_IFS
1186 test -z "$as_dir" && as_dir=.
1187 echo "PATH: $as_dir"
1188done
252b5132 1189
42ecbf5e 1190} >&5
5d64ca4e 1191
42ecbf5e 1192cat >&5 <<_ACEOF
5d64ca4e 1193
5d64ca4e 1194
42ecbf5e
DJ
1195## ----------- ##
1196## Core tests. ##
1197## ----------- ##
5d64ca4e 1198
42ecbf5e 1199_ACEOF
2469cfa2 1200
42ecbf5e
DJ
1201
1202# Keep a trace of the command line.
1203# Strip out --no-create and --no-recursion so they do not pile up.
1204# Strip out --silent because we don't want to record it for future runs.
1205# Also quote any args containing shell meta-characters.
1206# Make two passes to allow for proper duplicate-argument suppression.
1207ac_configure_args=
1208ac_configure_args0=
1209ac_configure_args1=
1210ac_sep=
1211ac_must_keep_next=false
1212for ac_pass in 1 2
1213do
1214 for ac_arg
1215 do
1216 case $ac_arg in
1217 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1218 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1219 | -silent | --silent | --silen | --sile | --sil)
1220 continue ;;
1221 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1222 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1223 esac
1224 case $ac_pass in
1225 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1226 2)
1227 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1228 if test $ac_must_keep_next = true; then
1229 ac_must_keep_next=false # Got value, back to normal.
1230 else
1231 case $ac_arg in
1232 *=* | --config-cache | -C | -disable-* | --disable-* \
1233 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1234 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1235 | -with-* | --with-* | -without-* | --without-* | --x)
1236 case "$ac_configure_args0 " in
1237 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1238 esac
1239 ;;
1240 -* ) ac_must_keep_next=true ;;
1241 esac
1242 fi
1243 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1244 # Get rid of the leading space.
1245 ac_sep=" "
1246 ;;
1247 esac
1248 done
1249done
1250$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1251$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1252
1253# When interrupted or exit'd, cleanup temporary files, and complete
1254# config.log. We remove comments because anyway the quotes in there
1255# would cause problems or look ugly.
1256# WARNING: Be sure not to use single quotes in there, as some shells,
1257# such as our DU 5.0 friend, will then `close' the trap.
1258trap 'exit_status=$?
1259 # Save into config.log some information that might help in debugging.
1260 {
1261 echo
1262
1263 cat <<\_ASBOX
1264## ---------------- ##
1265## Cache variables. ##
1266## ---------------- ##
1267_ASBOX
1268 echo
1269 # The following way of writing the cache mishandles newlines in values,
1270{
1271 (set) 2>&1 |
1272 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1273 *ac_space=\ *)
1274 sed -n \
1275 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1276 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1277 ;;
1278 *)
1279 sed -n \
1280 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1281 ;;
1282 esac;
1283}
1284 echo
1285
1286 cat <<\_ASBOX
1287## ----------------- ##
1288## Output variables. ##
1289## ----------------- ##
1290_ASBOX
1291 echo
1292 for ac_var in $ac_subst_vars
1293 do
1294 eval ac_val=$`echo $ac_var`
1295 echo "$ac_var='"'"'$ac_val'"'"'"
1296 done | sort
1297 echo
1298
1299 if test -n "$ac_subst_files"; then
1300 cat <<\_ASBOX
1301## ------------- ##
1302## Output files. ##
1303## ------------- ##
1304_ASBOX
1305 echo
1306 for ac_var in $ac_subst_files
1307 do
1308 eval ac_val=$`echo $ac_var`
1309 echo "$ac_var='"'"'$ac_val'"'"'"
1310 done | sort
1311 echo
1312 fi
1313
1314 if test -s confdefs.h; then
1315 cat <<\_ASBOX
1316## ----------- ##
1317## confdefs.h. ##
1318## ----------- ##
1319_ASBOX
1320 echo
1321 sed "/^$/d" confdefs.h | sort
1322 echo
1323 fi
1324 test "$ac_signal" != 0 &&
1325 echo "$as_me: caught signal $ac_signal"
1326 echo "$as_me: exit $exit_status"
1327 } >&5
1328 rm -f core *.core &&
1329 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1330 exit $exit_status
1331 ' 0
1332for ac_signal in 1 2 13 15; do
1333 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1334done
1335ac_signal=0
1336
1337# confdefs.h avoids OS command line length limits that DEFS can exceed.
1338rm -rf conftest* confdefs.h
1339# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1340echo >confdefs.h
1341
1342# Predefined preprocessor variables.
1343
1344cat >>confdefs.h <<_ACEOF
1345#define PACKAGE_NAME "$PACKAGE_NAME"
1346_ACEOF
1347
1348
1349cat >>confdefs.h <<_ACEOF
1350#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1351_ACEOF
1352
1353
1354cat >>confdefs.h <<_ACEOF
1355#define PACKAGE_VERSION "$PACKAGE_VERSION"
1356_ACEOF
1357
1358
1359cat >>confdefs.h <<_ACEOF
1360#define PACKAGE_STRING "$PACKAGE_STRING"
1361_ACEOF
1362
1363
1364cat >>confdefs.h <<_ACEOF
1365#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1366_ACEOF
1367
1368
1369# Let the site file select an alternate cache file if it wants to.
1370# Prefer explicitly selected file to automatically selected ones.
1371if test -z "$CONFIG_SITE"; then
1372 if test "x$prefix" != xNONE; then
1373 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1374 else
1375 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1376 fi
1377fi
1378for ac_site_file in $CONFIG_SITE; do
1379 if test -r "$ac_site_file"; then
1380 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1381echo "$as_me: loading site script $ac_site_file" >&6;}
1382 sed 's/^/| /' "$ac_site_file" >&5
1383 . "$ac_site_file"
1384 fi
1385done
1386
1387if test -r "$cache_file"; then
1388 # Some versions of bash will fail to source /dev/null (special
1389 # files actually), so we avoid doing that.
1390 if test -f "$cache_file"; then
1391 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1392echo "$as_me: loading cache $cache_file" >&6;}
1393 case $cache_file in
1394 [\\/]* | ?:[\\/]* ) . $cache_file;;
1395 *) . ./$cache_file;;
1396 esac
1397 fi
1398else
1399 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1400echo "$as_me: creating cache $cache_file" >&6;}
1401 >$cache_file
1402fi
1403
1404# Check that the precious variables saved in the cache have kept the same
1405# value.
1406ac_cache_corrupted=false
1407for ac_var in `(set) 2>&1 |
1408 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1409 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1410 eval ac_new_set=\$ac_env_${ac_var}_set
1411 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1412 eval ac_new_val="\$ac_env_${ac_var}_value"
1413 case $ac_old_set,$ac_new_set in
1414 set,)
1415 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1416echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1417 ac_cache_corrupted=: ;;
1418 ,set)
1419 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1420echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1421 ac_cache_corrupted=: ;;
1422 ,);;
1423 *)
1424 if test "x$ac_old_val" != "x$ac_new_val"; then
6194aaab
L
1425 # differences in whitespace do not lead to failure.
1426 ac_old_val_w=`echo x $ac_old_val`
1427 ac_new_val_w=`echo x $ac_new_val`
1428 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1429 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
42ecbf5e 1430echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
6194aaab
L
1431 ac_cache_corrupted=:
1432 else
1433 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1434echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1435 eval $ac_var=\$ac_old_val
1436 fi
1437 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1438echo "$as_me: former value: \`$ac_old_val'" >&2;}
1439 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1440echo "$as_me: current value: \`$ac_new_val'" >&2;}
42ecbf5e
DJ
1441 fi;;
1442 esac
1443 # Pass precious variables to config.status.
1444 if test "$ac_new_set" = set; then
1445 case $ac_new_val in
1446 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1447 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1448 *) ac_arg=$ac_var=$ac_new_val ;;
1449 esac
1450 case " $ac_configure_args " in
1451 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1452 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1453 esac
1454 fi
1455done
1456if $ac_cache_corrupted; then
7a283e07
RW
1457 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1458echo "$as_me: error: in \`$ac_pwd':" >&2;}
42ecbf5e
DJ
1459 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1460echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1461 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1462echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1463 { (exit 1); exit 1; }; }
1464fi
1465
1466ac_ext=c
1467ac_cpp='$CPP $CPPFLAGS'
1468ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1469ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1470ac_compiler_gnu=$ac_cv_c_compiler_gnu
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
7a283e07
RW
1488
1489
1490
42ecbf5e 1491
da594c4a 1492
42ecbf5e
DJ
1493
1494
1495ac_aux_dir=
1496for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1497 if test -f $ac_dir/install-sh; then
1498 ac_aux_dir=$ac_dir
1499 ac_install_sh="$ac_aux_dir/install-sh -c"
1500 break
1501 elif test -f $ac_dir/install.sh; then
1502 ac_aux_dir=$ac_dir
1503 ac_install_sh="$ac_aux_dir/install.sh -c"
1504 break
1505 elif test -f $ac_dir/shtool; then
1506 ac_aux_dir=$ac_dir
1507 ac_install_sh="$ac_aux_dir/shtool install -c"
1508 break
1509 fi
1510done
1511if test -z "$ac_aux_dir"; then
1512 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1513echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1514 { (exit 1); exit 1; }; }
1515fi
1516ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1517ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1518ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1519
1520# Make sure we can run config.sub.
1521$ac_config_sub sun4 >/dev/null 2>&1 ||
1522 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1523echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1524 { (exit 1); exit 1; }; }
1525
1526echo "$as_me:$LINENO: checking build system type" >&5
1527echo $ECHO_N "checking build system type... $ECHO_C" >&6
1528if test "${ac_cv_build+set}" = set; then
1529 echo $ECHO_N "(cached) $ECHO_C" >&6
1530else
1531 ac_cv_build_alias=$build_alias
1532test -z "$ac_cv_build_alias" &&
1533 ac_cv_build_alias=`$ac_config_guess`
1534test -z "$ac_cv_build_alias" &&
1535 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1536echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1537 { (exit 1); exit 1; }; }
1538ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1539 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1540echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1541 { (exit 1); exit 1; }; }
1542
1543fi
1544echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1545echo "${ECHO_T}$ac_cv_build" >&6
1546build=$ac_cv_build
1547build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1548build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1549build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1550
1551
1552echo "$as_me:$LINENO: checking host system type" >&5
1553echo $ECHO_N "checking host system type... $ECHO_C" >&6
1554if test "${ac_cv_host+set}" = set; then
1555 echo $ECHO_N "(cached) $ECHO_C" >&6
1556else
1557 ac_cv_host_alias=$host_alias
1558test -z "$ac_cv_host_alias" &&
1559 ac_cv_host_alias=$ac_cv_build_alias
1560ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1561 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1562echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1563 { (exit 1); exit 1; }; }
1564
1565fi
1566echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1567echo "${ECHO_T}$ac_cv_host" >&6
1568host=$ac_cv_host
1569host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1570host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1571host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1572
1573
1574echo "$as_me:$LINENO: checking target system type" >&5
1575echo $ECHO_N "checking target system type... $ECHO_C" >&6
1576if test "${ac_cv_target+set}" = set; then
1577 echo $ECHO_N "(cached) $ECHO_C" >&6
1578else
1579 ac_cv_target_alias=$target_alias
1580test "x$ac_cv_target_alias" = "x" &&
1581 ac_cv_target_alias=$ac_cv_host_alias
1582ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1583 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1584echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1585 { (exit 1); exit 1; }; }
1586
1587fi
1588echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1589echo "${ECHO_T}$ac_cv_target" >&6
1590target=$ac_cv_target
1591target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1592target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1593target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1594
1595
1596# The aliases save the names the user supplied, while $host etc.
1597# will get canonicalized.
1598test -n "$target_alias" &&
1599 test "$program_prefix$program_suffix$program_transform_name" = \
1600 NONENONEs,x,x, &&
1601 program_prefix=${target_alias}-
1602ac_ext=c
1603ac_cpp='$CPP $CPPFLAGS'
1604ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1605ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1606ac_compiler_gnu=$ac_cv_c_compiler_gnu
1607if test -n "$ac_tool_prefix"; then
1608 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1609set dummy ${ac_tool_prefix}gcc; ac_word=$2
1610echo "$as_me:$LINENO: checking for $ac_word" >&5
1611echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1612if test "${ac_cv_prog_CC+set}" = set; then
1613 echo $ECHO_N "(cached) $ECHO_C" >&6
1614else
1615 if test -n "$CC"; then
1616 ac_cv_prog_CC="$CC" # Let the user override the test.
1617else
1618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1619for as_dir in $PATH
1620do
1621 IFS=$as_save_IFS
1622 test -z "$as_dir" && as_dir=.
1623 for ac_exec_ext in '' $ac_executable_extensions; do
1624 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1625 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1627 break 2
1628 fi
1629done
1630done
1631
1632fi
1633fi
1634CC=$ac_cv_prog_CC
1635if test -n "$CC"; then
1636 echo "$as_me:$LINENO: result: $CC" >&5
1637echo "${ECHO_T}$CC" >&6
1638else
1639 echo "$as_me:$LINENO: result: no" >&5
1640echo "${ECHO_T}no" >&6
1641fi
1642
1643fi
1644if test -z "$ac_cv_prog_CC"; then
1645 ac_ct_CC=$CC
1646 # Extract the first word of "gcc", so it can be a program name with args.
1647set dummy gcc; ac_word=$2
1648echo "$as_me:$LINENO: checking for $ac_word" >&5
1649echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1650if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1651 echo $ECHO_N "(cached) $ECHO_C" >&6
1652else
1653 if test -n "$ac_ct_CC"; then
1654 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1655else
1656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1657for as_dir in $PATH
1658do
1659 IFS=$as_save_IFS
1660 test -z "$as_dir" && as_dir=.
1661 for ac_exec_ext in '' $ac_executable_extensions; do
1662 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1663 ac_cv_prog_ac_ct_CC="gcc"
1664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1665 break 2
1666 fi
1667done
1668done
1669
1670fi
1671fi
1672ac_ct_CC=$ac_cv_prog_ac_ct_CC
1673if test -n "$ac_ct_CC"; then
1674 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1675echo "${ECHO_T}$ac_ct_CC" >&6
1676else
1677 echo "$as_me:$LINENO: result: no" >&5
1678echo "${ECHO_T}no" >&6
1679fi
1680
1681 CC=$ac_ct_CC
1682else
1683 CC="$ac_cv_prog_CC"
1684fi
1685
1686if test -z "$CC"; then
1687 if test -n "$ac_tool_prefix"; then
1688 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1689set dummy ${ac_tool_prefix}cc; ac_word=$2
1690echo "$as_me:$LINENO: checking for $ac_word" >&5
1691echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1692if test "${ac_cv_prog_CC+set}" = set; then
1693 echo $ECHO_N "(cached) $ECHO_C" >&6
1694else
1695 if test -n "$CC"; then
1696 ac_cv_prog_CC="$CC" # Let the user override the test.
1697else
1698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1699for as_dir in $PATH
1700do
1701 IFS=$as_save_IFS
1702 test -z "$as_dir" && as_dir=.
1703 for ac_exec_ext in '' $ac_executable_extensions; do
1704 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1705 ac_cv_prog_CC="${ac_tool_prefix}cc"
1706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1707 break 2
1708 fi
1709done
1710done
1711
1712fi
1713fi
1714CC=$ac_cv_prog_CC
1715if test -n "$CC"; then
1716 echo "$as_me:$LINENO: result: $CC" >&5
1717echo "${ECHO_T}$CC" >&6
1718else
1719 echo "$as_me:$LINENO: result: no" >&5
1720echo "${ECHO_T}no" >&6
1721fi
1722
1723fi
1724if test -z "$ac_cv_prog_CC"; then
1725 ac_ct_CC=$CC
1726 # Extract the first word of "cc", so it can be a program name with args.
1727set dummy cc; ac_word=$2
1728echo "$as_me:$LINENO: checking for $ac_word" >&5
1729echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1730if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1731 echo $ECHO_N "(cached) $ECHO_C" >&6
1732else
1733 if test -n "$ac_ct_CC"; then
1734 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1735else
1736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1737for as_dir in $PATH
1738do
1739 IFS=$as_save_IFS
1740 test -z "$as_dir" && as_dir=.
1741 for ac_exec_ext in '' $ac_executable_extensions; do
1742 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1743 ac_cv_prog_ac_ct_CC="cc"
1744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1745 break 2
1746 fi
1747done
1748done
1749
1750fi
1751fi
1752ac_ct_CC=$ac_cv_prog_ac_ct_CC
1753if test -n "$ac_ct_CC"; then
1754 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1755echo "${ECHO_T}$ac_ct_CC" >&6
1756else
1757 echo "$as_me:$LINENO: result: no" >&5
1758echo "${ECHO_T}no" >&6
1759fi
1760
1761 CC=$ac_ct_CC
1762else
1763 CC="$ac_cv_prog_CC"
1764fi
1765
1766fi
1767if test -z "$CC"; then
1768 # Extract the first word of "cc", so it can be a program name with args.
1769set dummy cc; ac_word=$2
1770echo "$as_me:$LINENO: checking for $ac_word" >&5
1771echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1772if test "${ac_cv_prog_CC+set}" = set; then
1773 echo $ECHO_N "(cached) $ECHO_C" >&6
1774else
1775 if test -n "$CC"; then
1776 ac_cv_prog_CC="$CC" # Let the user override the test.
1777else
1778 ac_prog_rejected=no
1779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1780for as_dir in $PATH
1781do
1782 IFS=$as_save_IFS
1783 test -z "$as_dir" && as_dir=.
1784 for ac_exec_ext in '' $ac_executable_extensions; do
1785 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1786 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1787 ac_prog_rejected=yes
1788 continue
1789 fi
1790 ac_cv_prog_CC="cc"
1791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1792 break 2
1793 fi
1794done
1795done
1796
1797if test $ac_prog_rejected = yes; then
1798 # We found a bogon in the path, so make sure we never use it.
1799 set dummy $ac_cv_prog_CC
1800 shift
1801 if test $# != 0; then
1802 # We chose a different compiler from the bogus one.
1803 # However, it has the same basename, so the bogon will be chosen
1804 # first if we set CC to just the basename; use the full file name.
1805 shift
1806 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1807 fi
1808fi
1809fi
1810fi
1811CC=$ac_cv_prog_CC
1812if test -n "$CC"; then
1813 echo "$as_me:$LINENO: result: $CC" >&5
1814echo "${ECHO_T}$CC" >&6
1815else
1816 echo "$as_me:$LINENO: result: no" >&5
1817echo "${ECHO_T}no" >&6
1818fi
1819
1820fi
1821if test -z "$CC"; then
1822 if test -n "$ac_tool_prefix"; then
1823 for ac_prog in cl
1824 do
1825 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1826set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1827echo "$as_me:$LINENO: checking for $ac_word" >&5
1828echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1829if test "${ac_cv_prog_CC+set}" = set; then
1830 echo $ECHO_N "(cached) $ECHO_C" >&6
1831else
1832 if test -n "$CC"; then
1833 ac_cv_prog_CC="$CC" # Let the user override the test.
1834else
1835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1836for as_dir in $PATH
1837do
1838 IFS=$as_save_IFS
1839 test -z "$as_dir" && as_dir=.
1840 for ac_exec_ext in '' $ac_executable_extensions; do
1841 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1842 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1844 break 2
1845 fi
1846done
1847done
1848
1849fi
1850fi
1851CC=$ac_cv_prog_CC
1852if test -n "$CC"; then
1853 echo "$as_me:$LINENO: result: $CC" >&5
1854echo "${ECHO_T}$CC" >&6
1855else
1856 echo "$as_me:$LINENO: result: no" >&5
1857echo "${ECHO_T}no" >&6
1858fi
1859
1860 test -n "$CC" && break
1861 done
1862fi
1863if test -z "$CC"; then
1864 ac_ct_CC=$CC
1865 for ac_prog in cl
1866do
1867 # Extract the first word of "$ac_prog", so it can be a program name with args.
1868set dummy $ac_prog; ac_word=$2
1869echo "$as_me:$LINENO: checking for $ac_word" >&5
1870echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1871if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1872 echo $ECHO_N "(cached) $ECHO_C" >&6
1873else
1874 if test -n "$ac_ct_CC"; then
1875 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1876else
1877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1878for as_dir in $PATH
1879do
1880 IFS=$as_save_IFS
1881 test -z "$as_dir" && as_dir=.
1882 for ac_exec_ext in '' $ac_executable_extensions; do
1883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1884 ac_cv_prog_ac_ct_CC="$ac_prog"
1885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1886 break 2
1887 fi
1888done
1889done
1890
1891fi
1892fi
1893ac_ct_CC=$ac_cv_prog_ac_ct_CC
1894if test -n "$ac_ct_CC"; then
1895 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1896echo "${ECHO_T}$ac_ct_CC" >&6
1897else
1898 echo "$as_me:$LINENO: result: no" >&5
1899echo "${ECHO_T}no" >&6
1900fi
1901
1902 test -n "$ac_ct_CC" && break
1903done
1904
1905 CC=$ac_ct_CC
1906fi
1907
1908fi
1909
1910
7a283e07
RW
1911test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1912echo "$as_me: error: in \`$ac_pwd':" >&2;}
1913{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
42ecbf5e
DJ
1914See \`config.log' for more details." >&5
1915echo "$as_me: error: no acceptable C compiler found in \$PATH
1916See \`config.log' for more details." >&2;}
7a283e07 1917 { (exit 1); exit 1; }; }; }
42ecbf5e
DJ
1918
1919# Provide some information about the compiler.
1920echo "$as_me:$LINENO:" \
1921 "checking for C compiler version" >&5
1922ac_compiler=`set X $ac_compile; echo $2`
1923{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1924 (eval $ac_compiler --version </dev/null >&5) 2>&5
1925 ac_status=$?
1926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1927 (exit $ac_status); }
1928{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1929 (eval $ac_compiler -v </dev/null >&5) 2>&5
1930 ac_status=$?
1931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1932 (exit $ac_status); }
1933{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1934 (eval $ac_compiler -V </dev/null >&5) 2>&5
1935 ac_status=$?
1936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1937 (exit $ac_status); }
1938
1939cat >conftest.$ac_ext <<_ACEOF
1940/* confdefs.h. */
1941_ACEOF
1942cat confdefs.h >>conftest.$ac_ext
1943cat >>conftest.$ac_ext <<_ACEOF
1944/* end confdefs.h. */
1945
1946int
1947main ()
1948{
1949
1950 ;
1951 return 0;
1952}
1953_ACEOF
1954ac_clean_files_save=$ac_clean_files
1955ac_clean_files="$ac_clean_files a.out a.exe b.out"
1956# Try to create an executable without -o first, disregard a.out.
1957# It will help us diagnose broken compilers, and finding out an intuition
1958# of exeext.
1959echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1960echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1961ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1962if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1963 (eval $ac_link_default) 2>&5
1964 ac_status=$?
1965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1966 (exit $ac_status); }; then
1967 # Find the output, starting from the most likely. This scheme is
1968# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1969# resort.
1970
1971# Be careful to initialize this variable, since it used to be cached.
1972# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1973ac_cv_exeext=
1974# b.out is created by i960 compilers.
1975for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1976do
1977 test -f "$ac_file" || continue
1978 case $ac_file in
1979 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1980 ;;
1981 conftest.$ac_ext )
1982 # This is the source file.
1983 ;;
1984 [ab].out )
1985 # We found the default executable, but exeext='' is most
1986 # certainly right.
1987 break;;
1988 *.* )
1989 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1990 # FIXME: I believe we export ac_cv_exeext for Libtool,
1991 # but it would be cool to find out if it's true. Does anybody
1992 # maintain Libtool? --akim.
1993 export ac_cv_exeext
1994 break;;
1995 * )
1996 break;;
1997 esac
1998done
1999else
2000 echo "$as_me: failed program was:" >&5
2001sed 's/^/| /' conftest.$ac_ext >&5
2002
7a283e07
RW
2003{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2004echo "$as_me: error: in \`$ac_pwd':" >&2;}
42ecbf5e
DJ
2005{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2006See \`config.log' for more details." >&5
2007echo "$as_me: error: C compiler cannot create executables
2008See \`config.log' for more details." >&2;}
7a283e07 2009 { (exit 77); exit 77; }; }; }
42ecbf5e
DJ
2010fi
2011
2012ac_exeext=$ac_cv_exeext
2013echo "$as_me:$LINENO: result: $ac_file" >&5
2014echo "${ECHO_T}$ac_file" >&6
2015
2016# Check the compiler produces executables we can run. If not, either
2017# the compiler is broken, or we cross compile.
2018echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2019echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2020# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2021# If not cross compiling, check that we can run a simple program.
2022if test "$cross_compiling" != yes; then
2023 if { ac_try='./$ac_file'
2024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2025 (eval $ac_try) 2>&5
2026 ac_status=$?
2027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2028 (exit $ac_status); }; }; then
2029 cross_compiling=no
2030 else
2031 if test "$cross_compiling" = maybe; then
2032 cross_compiling=yes
2033 else
7a283e07
RW
2034 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2035echo "$as_me: error: in \`$ac_pwd':" >&2;}
2036{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
42ecbf5e
DJ
2037If you meant to cross compile, use \`--host'.
2038See \`config.log' for more details." >&5
2039echo "$as_me: error: cannot run C compiled programs.
2040If you meant to cross compile, use \`--host'.
2041See \`config.log' for more details." >&2;}
7a283e07 2042 { (exit 1); exit 1; }; }; }
42ecbf5e
DJ
2043 fi
2044 fi
2045fi
2046echo "$as_me:$LINENO: result: yes" >&5
2047echo "${ECHO_T}yes" >&6
2048
2049rm -f a.out a.exe conftest$ac_cv_exeext b.out
2050ac_clean_files=$ac_clean_files_save
2051# Check the compiler produces executables we can run. If not, either
2052# the compiler is broken, or we cross compile.
2053echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2054echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2055echo "$as_me:$LINENO: result: $cross_compiling" >&5
2056echo "${ECHO_T}$cross_compiling" >&6
2057
2058echo "$as_me:$LINENO: checking for suffix of executables" >&5
2059echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2060if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2061 (eval $ac_link) 2>&5
2062 ac_status=$?
2063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2064 (exit $ac_status); }; then
2065 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2066# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2067# work properly (i.e., refer to `conftest.exe'), while it won't with
2068# `rm'.
2069for ac_file in conftest.exe conftest conftest.*; do
2070 test -f "$ac_file" || continue
2071 case $ac_file in
2072 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2073 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2074 export ac_cv_exeext
2075 break;;
2076 * ) break;;
2077 esac
2078done
2079else
7a283e07
RW
2080 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2081echo "$as_me: error: in \`$ac_pwd':" >&2;}
2082{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
42ecbf5e
DJ
2083See \`config.log' for more details." >&5
2084echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2085See \`config.log' for more details." >&2;}
7a283e07 2086 { (exit 1); exit 1; }; }; }
42ecbf5e
DJ
2087fi
2088
2089rm -f conftest$ac_cv_exeext
2090echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2091echo "${ECHO_T}$ac_cv_exeext" >&6
2092
2093rm -f conftest.$ac_ext
2094EXEEXT=$ac_cv_exeext
2095ac_exeext=$EXEEXT
2096echo "$as_me:$LINENO: checking for suffix of object files" >&5
2097echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2098if test "${ac_cv_objext+set}" = set; then
2099 echo $ECHO_N "(cached) $ECHO_C" >&6
2100else
2101 cat >conftest.$ac_ext <<_ACEOF
2102/* confdefs.h. */
2103_ACEOF
2104cat confdefs.h >>conftest.$ac_ext
2105cat >>conftest.$ac_ext <<_ACEOF
2106/* end confdefs.h. */
2107
2108int
2109main ()
2110{
2111
2112 ;
2113 return 0;
2114}
2115_ACEOF
2116rm -f conftest.o conftest.obj
2117if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2118 (eval $ac_compile) 2>&5
2119 ac_status=$?
2120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2121 (exit $ac_status); }; then
2122 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2123 case $ac_file in
2124 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2125 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2126 break;;
2127 esac
2128done
2129else
2130 echo "$as_me: failed program was:" >&5
2131sed 's/^/| /' conftest.$ac_ext >&5
2132
7a283e07
RW
2133{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2134echo "$as_me: error: in \`$ac_pwd':" >&2;}
42ecbf5e
DJ
2135{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2136See \`config.log' for more details." >&5
2137echo "$as_me: error: cannot compute suffix of object files: cannot compile
2138See \`config.log' for more details." >&2;}
7a283e07 2139 { (exit 1); exit 1; }; }; }
42ecbf5e
DJ
2140fi
2141
2142rm -f conftest.$ac_cv_objext conftest.$ac_ext
2143fi
2144echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2145echo "${ECHO_T}$ac_cv_objext" >&6
2146OBJEXT=$ac_cv_objext
2147ac_objext=$OBJEXT
2148echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2149echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2150if test "${ac_cv_c_compiler_gnu+set}" = set; then
2151 echo $ECHO_N "(cached) $ECHO_C" >&6
2152else
2153 cat >conftest.$ac_ext <<_ACEOF
2154/* confdefs.h. */
2155_ACEOF
2156cat confdefs.h >>conftest.$ac_ext
2157cat >>conftest.$ac_ext <<_ACEOF
2158/* end confdefs.h. */
2159
2160int
2161main ()
2162{
2163#ifndef __GNUC__
2164 choke me
2165#endif
2166
2167 ;
2168 return 0;
2169}
2170_ACEOF
2171rm -f conftest.$ac_objext
2172if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2173 (eval $ac_compile) 2>conftest.er1
2174 ac_status=$?
2175 grep -v '^ *+' conftest.er1 >conftest.err
2176 rm -f conftest.er1
2177 cat conftest.err >&5
2178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2179 (exit $ac_status); } &&
7357c5b6
AM
2180 { ac_try='test -z "$ac_c_werror_flag"
2181 || test ! -s conftest.err'
42ecbf5e
DJ
2182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2183 (eval $ac_try) 2>&5
2184 ac_status=$?
2185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186 (exit $ac_status); }; } &&
2187 { ac_try='test -s conftest.$ac_objext'
2188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2189 (eval $ac_try) 2>&5
2190 ac_status=$?
2191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2192 (exit $ac_status); }; }; then
2193 ac_compiler_gnu=yes
2194else
2195 echo "$as_me: failed program was:" >&5
2196sed 's/^/| /' conftest.$ac_ext >&5
2197
2198ac_compiler_gnu=no
2199fi
2200rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2201ac_cv_c_compiler_gnu=$ac_compiler_gnu
2202
2203fi
2204echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2205echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2206GCC=`test $ac_compiler_gnu = yes && echo yes`
2207ac_test_CFLAGS=${CFLAGS+set}
2208ac_save_CFLAGS=$CFLAGS
2209CFLAGS="-g"
2210echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2211echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2212if test "${ac_cv_prog_cc_g+set}" = set; then
2213 echo $ECHO_N "(cached) $ECHO_C" >&6
2214else
2215 cat >conftest.$ac_ext <<_ACEOF
2216/* confdefs.h. */
2217_ACEOF
2218cat confdefs.h >>conftest.$ac_ext
2219cat >>conftest.$ac_ext <<_ACEOF
2220/* end confdefs.h. */
2221
2222int
2223main ()
2224{
2225
2226 ;
2227 return 0;
2228}
2229_ACEOF
2230rm -f conftest.$ac_objext
2231if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2232 (eval $ac_compile) 2>conftest.er1
2233 ac_status=$?
2234 grep -v '^ *+' conftest.er1 >conftest.err
2235 rm -f conftest.er1
2236 cat conftest.err >&5
2237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238 (exit $ac_status); } &&
7357c5b6
AM
2239 { ac_try='test -z "$ac_c_werror_flag"
2240 || test ! -s conftest.err'
42ecbf5e
DJ
2241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2242 (eval $ac_try) 2>&5
2243 ac_status=$?
2244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2245 (exit $ac_status); }; } &&
2246 { ac_try='test -s conftest.$ac_objext'
2247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2248 (eval $ac_try) 2>&5
2249 ac_status=$?
2250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251 (exit $ac_status); }; }; then
2252 ac_cv_prog_cc_g=yes
2253else
2254 echo "$as_me: failed program was:" >&5
2255sed 's/^/| /' conftest.$ac_ext >&5
2256
2257ac_cv_prog_cc_g=no
2258fi
2259rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2260fi
2261echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2262echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2263if test "$ac_test_CFLAGS" = set; then
2264 CFLAGS=$ac_save_CFLAGS
2265elif test $ac_cv_prog_cc_g = yes; then
2266 if test "$GCC" = yes; then
2267 CFLAGS="-g -O2"
2268 else
2269 CFLAGS="-g"
2270 fi
2271else
2272 if test "$GCC" = yes; then
2273 CFLAGS="-O2"
2274 else
2275 CFLAGS=
2276 fi
2277fi
2278echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2279echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2280if test "${ac_cv_prog_cc_stdc+set}" = set; then
2281 echo $ECHO_N "(cached) $ECHO_C" >&6
2282else
2283 ac_cv_prog_cc_stdc=no
2284ac_save_CC=$CC
2285cat >conftest.$ac_ext <<_ACEOF
2286/* confdefs.h. */
2287_ACEOF
2288cat confdefs.h >>conftest.$ac_ext
2289cat >>conftest.$ac_ext <<_ACEOF
2290/* end confdefs.h. */
2291#include <stdarg.h>
2292#include <stdio.h>
2293#include <sys/types.h>
2294#include <sys/stat.h>
2295/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2296struct buf { int x; };
2297FILE * (*rcsopen) (struct buf *, struct stat *, int);
2298static char *e (p, i)
2299 char **p;
2300 int i;
2301{
2302 return p[i];
2303}
2304static char *f (char * (*g) (char **, int), char **p, ...)
2305{
2306 char *s;
2307 va_list v;
2308 va_start (v,p);
2309 s = g (p, va_arg (v,int));
2310 va_end (v);
2311 return s;
2312}
2313
2314/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2315 function prototypes and stuff, but not '\xHH' hex character constants.
2316 These don't provoke an error unfortunately, instead are silently treated
2317 as 'x'. The following induces an error, until -std1 is added to get
2318 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2319 array size at least. It's necessary to write '\x00'==0 to get something
2320 that's true only with -std1. */
2321int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2322
2323int test (int i, double x);
2324struct s1 {int (*f) (int a);};
2325struct s2 {int (*f) (double a);};
2326int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2327int argc;
2328char **argv;
2329int
2330main ()
2331{
2332return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2333 ;
2334 return 0;
2335}
2336_ACEOF
2337# Don't try gcc -ansi; that turns off useful extensions and
2338# breaks some systems' header files.
2339# AIX -qlanglvl=ansi
2340# Ultrix and OSF/1 -std1
2341# HP-UX 10.20 and later -Ae
2342# HP-UX older versions -Aa -D_HPUX_SOURCE
2343# SVR4 -Xc -D__EXTENSIONS__
2344for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2345do
2346 CC="$ac_save_CC $ac_arg"
2347 rm -f conftest.$ac_objext
2348if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2349 (eval $ac_compile) 2>conftest.er1
2350 ac_status=$?
2351 grep -v '^ *+' conftest.er1 >conftest.err
2352 rm -f conftest.er1
2353 cat conftest.err >&5
2354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2355 (exit $ac_status); } &&
7357c5b6
AM
2356 { ac_try='test -z "$ac_c_werror_flag"
2357 || test ! -s conftest.err'
42ecbf5e
DJ
2358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2359 (eval $ac_try) 2>&5
2360 ac_status=$?
2361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362 (exit $ac_status); }; } &&
2363 { ac_try='test -s conftest.$ac_objext'
2364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2365 (eval $ac_try) 2>&5
2366 ac_status=$?
2367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368 (exit $ac_status); }; }; then
2369 ac_cv_prog_cc_stdc=$ac_arg
2370break
2371else
2372 echo "$as_me: failed program was:" >&5
2373sed 's/^/| /' conftest.$ac_ext >&5
2374
2375fi
2376rm -f conftest.err conftest.$ac_objext
2377done
2378rm -f conftest.$ac_ext conftest.$ac_objext
2379CC=$ac_save_CC
2380
2381fi
2382
2383case "x$ac_cv_prog_cc_stdc" in
2384 x|xno)
2385 echo "$as_me:$LINENO: result: none needed" >&5
2386echo "${ECHO_T}none needed" >&6 ;;
2387 *)
2388 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2389echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2390 CC="$CC $ac_cv_prog_cc_stdc" ;;
2391esac
2392
2393# Some people use a C++ compiler to compile C. Since we use `exit',
2394# in C++ we need to declare it. In case someone uses the same compiler
2395# for both compiling C and C++ we need to have the C++ compiler decide
2396# the declaration of exit, since it's the most demanding environment.
2397cat >conftest.$ac_ext <<_ACEOF
2398#ifndef __cplusplus
2399 choke me
2400#endif
2401_ACEOF
2402rm -f conftest.$ac_objext
2403if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2404 (eval $ac_compile) 2>conftest.er1
2405 ac_status=$?
2406 grep -v '^ *+' conftest.er1 >conftest.err
2407 rm -f conftest.er1
2408 cat conftest.err >&5
2409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410 (exit $ac_status); } &&
7357c5b6
AM
2411 { ac_try='test -z "$ac_c_werror_flag"
2412 || test ! -s conftest.err'
42ecbf5e
DJ
2413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2414 (eval $ac_try) 2>&5
2415 ac_status=$?
2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 (exit $ac_status); }; } &&
2418 { ac_try='test -s conftest.$ac_objext'
2419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2420 (eval $ac_try) 2>&5
2421 ac_status=$?
2422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423 (exit $ac_status); }; }; then
2424 for ac_declaration in \
2425 '' \
2426 'extern "C" void std::exit (int) throw (); using std::exit;' \
2427 'extern "C" void std::exit (int); using std::exit;' \
2428 'extern "C" void exit (int) throw ();' \
2429 'extern "C" void exit (int);' \
2430 'void exit (int);'
2431do
2432 cat >conftest.$ac_ext <<_ACEOF
2433/* confdefs.h. */
2434_ACEOF
2435cat confdefs.h >>conftest.$ac_ext
2436cat >>conftest.$ac_ext <<_ACEOF
2437/* end confdefs.h. */
2438$ac_declaration
2439#include <stdlib.h>
2440int
2441main ()
2442{
2443exit (42);
2444 ;
2445 return 0;
2446}
2447_ACEOF
2448rm -f conftest.$ac_objext
2449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2450 (eval $ac_compile) 2>conftest.er1
2451 ac_status=$?
2452 grep -v '^ *+' conftest.er1 >conftest.err
2453 rm -f conftest.er1
2454 cat conftest.err >&5
2455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456 (exit $ac_status); } &&
7357c5b6
AM
2457 { ac_try='test -z "$ac_c_werror_flag"
2458 || test ! -s conftest.err'
42ecbf5e
DJ
2459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2460 (eval $ac_try) 2>&5
2461 ac_status=$?
2462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463 (exit $ac_status); }; } &&
2464 { ac_try='test -s conftest.$ac_objext'
2465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2466 (eval $ac_try) 2>&5
2467 ac_status=$?
2468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469 (exit $ac_status); }; }; then
2470 :
2471else
2472 echo "$as_me: failed program was:" >&5
2473sed 's/^/| /' conftest.$ac_ext >&5
2474
2475continue
2476fi
2477rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2478 cat >conftest.$ac_ext <<_ACEOF
2479/* confdefs.h. */
2480_ACEOF
2481cat confdefs.h >>conftest.$ac_ext
2482cat >>conftest.$ac_ext <<_ACEOF
2483/* end confdefs.h. */
2484$ac_declaration
2485int
2486main ()
2487{
2488exit (42);
2489 ;
2490 return 0;
2491}
2492_ACEOF
2493rm -f conftest.$ac_objext
2494if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2495 (eval $ac_compile) 2>conftest.er1
2496 ac_status=$?
2497 grep -v '^ *+' conftest.er1 >conftest.err
2498 rm -f conftest.er1
2499 cat conftest.err >&5
2500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501 (exit $ac_status); } &&
7357c5b6
AM
2502 { ac_try='test -z "$ac_c_werror_flag"
2503 || test ! -s conftest.err'
42ecbf5e
DJ
2504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2505 (eval $ac_try) 2>&5
2506 ac_status=$?
2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508 (exit $ac_status); }; } &&
2509 { ac_try='test -s conftest.$ac_objext'
2510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2511 (eval $ac_try) 2>&5
2512 ac_status=$?
2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); }; }; then
2515 break
2516else
2517 echo "$as_me: failed program was:" >&5
2518sed 's/^/| /' conftest.$ac_ext >&5
2519
2520fi
2521rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2522done
2523rm -f conftest*
2524if test -n "$ac_declaration"; then
2525 echo '#ifdef __cplusplus' >>confdefs.h
2526 echo $ac_declaration >>confdefs.h
2527 echo '#endif' >>confdefs.h
2528fi
2529
2530else
2531 echo "$as_me: failed program was:" >&5
2532sed 's/^/| /' conftest.$ac_ext >&5
2533
2534fi
2535rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2536ac_ext=c
2537ac_cpp='$CPP $CPPFLAGS'
2538ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2539ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2540ac_compiler_gnu=$ac_cv_c_compiler_gnu
2541
2542
2543echo "$as_me:$LINENO: checking for library containing strerror" >&5
2544echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2545if test "${ac_cv_search_strerror+set}" = set; then
2546 echo $ECHO_N "(cached) $ECHO_C" >&6
2547else
2548 ac_func_search_save_LIBS=$LIBS
2549ac_cv_search_strerror=no
2550cat >conftest.$ac_ext <<_ACEOF
2551/* confdefs.h. */
2552_ACEOF
2553cat confdefs.h >>conftest.$ac_ext
2554cat >>conftest.$ac_ext <<_ACEOF
2555/* end confdefs.h. */
2556
2557/* Override any gcc2 internal prototype to avoid an error. */
2558#ifdef __cplusplus
2559extern "C"
2560#endif
2561/* We use char because int might match the return type of a gcc2
2562 builtin and then its argument prototype would still apply. */
2563char strerror ();
2564int
2565main ()
2566{
2567strerror ();
2568 ;
2569 return 0;
2570}
2571_ACEOF
2572rm -f conftest.$ac_objext conftest$ac_exeext
2573if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2574 (eval $ac_link) 2>conftest.er1
2575 ac_status=$?
2576 grep -v '^ *+' conftest.er1 >conftest.err
2577 rm -f conftest.er1
2578 cat conftest.err >&5
2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580 (exit $ac_status); } &&
7357c5b6
AM
2581 { ac_try='test -z "$ac_c_werror_flag"
2582 || test ! -s conftest.err'
42ecbf5e
DJ
2583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2584 (eval $ac_try) 2>&5
2585 ac_status=$?
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); }; } &&
2588 { ac_try='test -s conftest$ac_exeext'
2589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2590 (eval $ac_try) 2>&5
2591 ac_status=$?
2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593 (exit $ac_status); }; }; then
2594 ac_cv_search_strerror="none required"
2595else
2596 echo "$as_me: failed program was:" >&5
2597sed 's/^/| /' conftest.$ac_ext >&5
2598
2599fi
2600rm -f conftest.err conftest.$ac_objext \
2601 conftest$ac_exeext conftest.$ac_ext
2602if test "$ac_cv_search_strerror" = no; then
2603 for ac_lib in cposix; do
2604 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2605 cat >conftest.$ac_ext <<_ACEOF
2606/* confdefs.h. */
2607_ACEOF
2608cat confdefs.h >>conftest.$ac_ext
2609cat >>conftest.$ac_ext <<_ACEOF
2610/* end confdefs.h. */
2611
2612/* Override any gcc2 internal prototype to avoid an error. */
2613#ifdef __cplusplus
2614extern "C"
2615#endif
2616/* We use char because int might match the return type of a gcc2
2617 builtin and then its argument prototype would still apply. */
2618char strerror ();
2619int
2620main ()
2621{
2622strerror ();
2623 ;
2624 return 0;
2625}
2626_ACEOF
2627rm -f conftest.$ac_objext conftest$ac_exeext
2628if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2629 (eval $ac_link) 2>conftest.er1
2630 ac_status=$?
2631 grep -v '^ *+' conftest.er1 >conftest.err
2632 rm -f conftest.er1
2633 cat conftest.err >&5
2634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635 (exit $ac_status); } &&
7357c5b6
AM
2636 { ac_try='test -z "$ac_c_werror_flag"
2637 || test ! -s conftest.err'
42ecbf5e
DJ
2638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2639 (eval $ac_try) 2>&5
2640 ac_status=$?
2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); }; } &&
2643 { ac_try='test -s conftest$ac_exeext'
2644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2645 (eval $ac_try) 2>&5
2646 ac_status=$?
2647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648 (exit $ac_status); }; }; then
2649 ac_cv_search_strerror="-l$ac_lib"
2650break
2651else
2652 echo "$as_me: failed program was:" >&5
2653sed 's/^/| /' conftest.$ac_ext >&5
2654
2655fi
2656rm -f conftest.err conftest.$ac_objext \
2657 conftest$ac_exeext conftest.$ac_ext
2658 done
2659fi
2660LIBS=$ac_func_search_save_LIBS
2661fi
2662echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2663echo "${ECHO_T}$ac_cv_search_strerror" >&6
2664if test "$ac_cv_search_strerror" != no; then
2665 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2666
2667fi
e5a52504
MM
2668
2669
2670BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
42ecbf5e 2671am__api_version="1.9"
e5a52504
MM
2672# Find a good install program. We prefer a C program (faster),
2673# so one script is as good as another. But avoid the broken or
2674# incompatible versions:
2675# SysV /etc/install, /usr/sbin/install
2676# SunOS /usr/etc/install
2677# IRIX /sbin/install
2678# AIX /bin/install
42ecbf5e 2679# AmigaOS /C/install, which installs bootblocks on floppy discs
e5a52504
MM
2680# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2681# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2682# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
42ecbf5e 2683# OS/2's system install, which has a completely different semantic
e5a52504 2684# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 2685# Reject install programs that cannot install multiple files.
42ecbf5e
DJ
2686echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2687echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
e5a52504 2688if test -z "$INSTALL"; then
42ecbf5e
DJ
2689if test "${ac_cv_path_install+set}" = set; then
2690 echo $ECHO_N "(cached) $ECHO_C" >&6
e5a52504 2691else
42ecbf5e
DJ
2692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2693for as_dir in $PATH
2694do
2695 IFS=$as_save_IFS
2696 test -z "$as_dir" && as_dir=.
2697 # Account for people who put trailing slashes in PATH elements.
2698case $as_dir/ in
2699 ./ | .// | /cC/* | \
2700 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2701 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2702 /usr/ucb/* ) ;;
2703 *)
2704 # OSF1 and SCO ODT 3.0 have their own names for install.
2705 # Don't use installbsd from OSF since it installs stuff as root
2706 # by default.
2707 for ac_prog in ginstall scoinst install; do
2708 for ac_exec_ext in '' $ac_executable_extensions; do
2709 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
252b5132 2710 if test $ac_prog = install &&
42ecbf5e 2711 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
2712 # AIX install. It has an incompatible calling convention.
2713 :
42ecbf5e
DJ
2714 elif test $ac_prog = install &&
2715 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2716 # program-specific install script used by HP pwplus--don't use.
2717 :
252b5132 2718 else
58c85be7
RW
2719 rm -rf conftest.one conftest.two conftest.dir
2720 echo one > conftest.one
2721 echo two > conftest.two
2722 mkdir conftest.dir
2723 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2724 test -s conftest.one && test -s conftest.two &&
2725 test -s conftest.dir/conftest.one &&
2726 test -s conftest.dir/conftest.two
2727 then
2728 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2729 break 3
2730 fi
252b5132
RH
2731 fi
2732 fi
2733 done
42ecbf5e
DJ
2734 done
2735 ;;
2736esac
2737done
2738
58c85be7 2739rm -rf conftest.one conftest.two conftest.dir
252b5132
RH
2740
2741fi
2742 if test "${ac_cv_path_install+set}" = set; then
42ecbf5e 2743 INSTALL=$ac_cv_path_install
252b5132 2744 else
58c85be7
RW
2745 # As a last resort, use the slow shell script. Don't cache a
2746 # value for INSTALL within a source directory, because that will
252b5132 2747 # break other packages using the cache if that directory is
58c85be7 2748 # removed, or if the value is a relative name.
42ecbf5e 2749 INSTALL=$ac_install_sh
252b5132
RH
2750 fi
2751fi
42ecbf5e
DJ
2752echo "$as_me:$LINENO: result: $INSTALL" >&5
2753echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
2754
2755# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2756# It thinks the first close brace ends the variable substitution.
2757test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2758
42ecbf5e 2759test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
2760
2761test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2762
42ecbf5e
DJ
2763echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2764echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
252b5132
RH
2765# Just in case
2766sleep 1
42ecbf5e 2767echo timestamp > conftest.file
252b5132
RH
2768# Do `set' in a subshell so we don't clobber the current shell's
2769# arguments. Must try -L first in case configure is actually a
2770# symlink; some systems play weird games with the mod time of symlinks
2771# (eg FreeBSD returns the mod time of the symlink's containing
2772# directory).
2773if (
42ecbf5e 2774 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
252b5132
RH
2775 if test "$*" = "X"; then
2776 # -L didn't work.
42ecbf5e 2777 set X `ls -t $srcdir/configure conftest.file`
252b5132 2778 fi
42ecbf5e
DJ
2779 rm -f conftest.file
2780 if test "$*" != "X $srcdir/configure conftest.file" \
2781 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
2782
2783 # If neither matched, then we have a broken ls. This can happen
2784 # if, for instance, CONFIG_SHELL is bash and it inherits a
2785 # broken ls alias from the environment. This has actually
2786 # happened. Such a system could not be considered "sane".
42ecbf5e
DJ
2787 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2788alias in your environment" >&5
2789echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2790alias in your environment" >&2;}
2791 { (exit 1); exit 1; }; }
252b5132
RH
2792 fi
2793
42ecbf5e 2794 test "$2" = conftest.file
252b5132
RH
2795 )
2796then
2797 # Ok.
2798 :
2799else
42ecbf5e
DJ
2800 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2801Check your system clock" >&5
2802echo "$as_me: error: newly created file is older than distributed files!
2803Check your system clock" >&2;}
2804 { (exit 1); exit 1; }; }
252b5132 2805fi
42ecbf5e
DJ
2806echo "$as_me:$LINENO: result: yes" >&5
2807echo "${ECHO_T}yes" >&6
252b5132 2808test "$program_prefix" != NONE &&
42ecbf5e 2809 program_transform_name="s,^,$program_prefix,;$program_transform_name"
252b5132
RH
2810# Use a double $ so make ignores it.
2811test "$program_suffix" != NONE &&
42ecbf5e
DJ
2812 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2813# Double any \ or $. echo might interpret backslashes.
2814# By default was `s,x,x', remove it if useless.
2815cat <<\_ACEOF >conftest.sed
2816s/[\\$]/&&/g;s/;s,x,x,$//
2817_ACEOF
2818program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2819rm conftest.sed
2820
2821# expand $ac_aux_dir to an absolute path
2822am_aux_dir=`cd $ac_aux_dir && pwd`
2823
2824test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2825# Use eval to expand $SHELL
2826if eval "$MISSING --run true"; then
2827 am_missing_run="$MISSING --run "
2828else
2829 am_missing_run=
2830 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2831echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2832fi
2833
2834if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2835 # We used to keeping the `.' as first argument, in order to
2836 # allow $(mkdir_p) to be used without argument. As in
2837 # $(mkdir_p) $(somedir)
2838 # where $(somedir) is conditionally defined. However this is wrong
2839 # for two reasons:
2840 # 1. if the package is installed by a user who cannot write `.'
2841 # make install will fail,
2842 # 2. the above comment should most certainly read
2843 # $(mkdir_p) $(DESTDIR)$(somedir)
2844 # so it does not work when $(somedir) is undefined and
2845 # $(DESTDIR) is not.
2846 # To support the latter case, we have to write
2847 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2848 # so the `.' trick is pointless.
2849 mkdir_p='mkdir -p --'
2850else
2851 # On NextStep and OpenStep, the `mkdir' command does not
2852 # recognize any option. It will interpret all options as
2853 # directories to create, and then abort because `.' already
2854 # exists.
2855 for d in ./-p ./--version;
2856 do
2857 test -d $d && rmdir $d
2858 done
2859 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2860 if test -f "$ac_aux_dir/mkinstalldirs"; then
2861 mkdir_p='$(mkinstalldirs)'
2862 else
2863 mkdir_p='$(install_sh) -d'
2864 fi
2865fi
2866
2867for ac_prog in gawk mawk nawk awk
2868do
2869 # Extract the first word of "$ac_prog", so it can be a program name with args.
2870set dummy $ac_prog; ac_word=$2
2871echo "$as_me:$LINENO: checking for $ac_word" >&5
2872echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2873if test "${ac_cv_prog_AWK+set}" = set; then
2874 echo $ECHO_N "(cached) $ECHO_C" >&6
2875else
2876 if test -n "$AWK"; then
2877 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2878else
2879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2880for as_dir in $PATH
2881do
2882 IFS=$as_save_IFS
2883 test -z "$as_dir" && as_dir=.
2884 for ac_exec_ext in '' $ac_executable_extensions; do
2885 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2886 ac_cv_prog_AWK="$ac_prog"
2887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2888 break 2
2889 fi
2890done
2891done
2892
2893fi
2894fi
2895AWK=$ac_cv_prog_AWK
2896if test -n "$AWK"; then
2897 echo "$as_me:$LINENO: result: $AWK" >&5
2898echo "${ECHO_T}$AWK" >&6
2899else
2900 echo "$as_me:$LINENO: result: no" >&5
2901echo "${ECHO_T}no" >&6
2902fi
252b5132 2903
42ecbf5e
DJ
2904 test -n "$AWK" && break
2905done
252b5132 2906
42ecbf5e
DJ
2907echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2908echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2909set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2910if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2911 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 2912else
42ecbf5e 2913 cat >conftest.make <<\_ACEOF
252b5132 2914all:
42ecbf5e
DJ
2915 @echo 'ac_maketemp="$(MAKE)"'
2916_ACEOF
252b5132 2917# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
42ecbf5e 2918eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
252b5132
RH
2919if test -n "$ac_maketemp"; then
2920 eval ac_cv_prog_make_${ac_make}_set=yes
2921else
2922 eval ac_cv_prog_make_${ac_make}_set=no
2923fi
42ecbf5e 2924rm -f conftest.make
252b5132
RH
2925fi
2926if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
42ecbf5e
DJ
2927 echo "$as_me:$LINENO: result: yes" >&5
2928echo "${ECHO_T}yes" >&6
252b5132
RH
2929 SET_MAKE=
2930else
42ecbf5e
DJ
2931 echo "$as_me:$LINENO: result: no" >&5
2932echo "${ECHO_T}no" >&6
252b5132
RH
2933 SET_MAKE="MAKE=${MAKE-make}"
2934fi
2935
42ecbf5e
DJ
2936rm -rf .tst 2>/dev/null
2937mkdir .tst 2>/dev/null
2938if test -d .tst; then
2939 am__leading_dot=.
2940else
2941 am__leading_dot=_
2942fi
2943rmdir .tst 2>/dev/null
2944
2945DEPDIR="${am__leading_dot}deps"
2946
2947 ac_config_commands="$ac_config_commands depfiles"
2948
2949
2950am_make=${MAKE-make}
2951cat > confinc << 'END'
2952am__doit:
2953 @echo done
2954.PHONY: am__doit
2955END
2956# If we don't find an include directive, just comment out the code.
2957echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2958echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2959am__include="#"
2960am__quote=
2961_am_result=none
2962# First try GNU make style include.
2963echo "include confinc" > confmf
2964# We grep out `Entering directory' and `Leaving directory'
2965# messages which can occur if `w' ends up in MAKEFLAGS.
2966# In particular we don't look at `^make:' because GNU make might
2967# be invoked under some other name (usually "gmake"), in which
2968# case it prints its new name instead of `make'.
2969if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2970 am__include=include
2971 am__quote=
2972 _am_result=GNU
2973fi
2974# Now try BSD make style include.
2975if test "$am__include" = "#"; then
2976 echo '.include "confinc"' > confmf
2977 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2978 am__include=.include
2979 am__quote="\""
2980 _am_result=BSD
2981 fi
2982fi
2983
2984
2985echo "$as_me:$LINENO: result: $_am_result" >&5
2986echo "${ECHO_T}$_am_result" >&6
2987rm -f confinc confmf
2988
2989# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2990if test "${enable_dependency_tracking+set}" = set; then
2991 enableval="$enable_dependency_tracking"
2992
2993fi;
2994if test "x$enable_dependency_tracking" != xno; then
2995 am_depcomp="$ac_aux_dir/depcomp"
2996 AMDEPBACKSLASH='\'
2997fi
2998
2999
3000if test "x$enable_dependency_tracking" != xno; then
3001 AMDEP_TRUE=
3002 AMDEP_FALSE='#'
3003else
3004 AMDEP_TRUE='#'
3005 AMDEP_FALSE=
3006fi
3007
e5a52504
MM
3008
3009
42ecbf5e
DJ
3010# test to see if srcdir already configured
3011if test "`cd $srcdir && pwd`" != "`pwd`" &&
3012 test -f $srcdir/config.status; then
3013 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3014echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3015 { (exit 1); exit 1; }; }
3016fi
252b5132 3017
42ecbf5e
DJ
3018# test whether we have cygpath
3019if test -z "$CYGPATH_W"; then
3020 if (cygpath --version) >/dev/null 2>/dev/null; then
3021 CYGPATH_W='cygpath -w'
3022 else
3023 CYGPATH_W=echo
3024 fi
252b5132 3025fi
42ecbf5e
DJ
3026
3027
3028# Define the identity of the package.
3029 PACKAGE=ld
3030 VERSION=${BFD_VERSION}
3031
3032
3033cat >>confdefs.h <<_ACEOF
e5a52504 3034#define PACKAGE "$PACKAGE"
42ecbf5e
DJ
3035_ACEOF
3036
252b5132 3037
42ecbf5e 3038cat >>confdefs.h <<_ACEOF
e5a52504 3039#define VERSION "$VERSION"
42ecbf5e
DJ
3040_ACEOF
3041
3042# Some tools Automake needs.
3043
3044ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3045
3046
3047AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3048
3049
3050AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3051
3052
3053AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3054
e5a52504 3055
42ecbf5e 3056MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
e5a52504 3057
42ecbf5e 3058install_sh=${install_sh-"$am_aux_dir/install-sh"}
e5a52504 3059
42ecbf5e
DJ
3060# Installed binaries are usually stripped using `strip' when the user
3061# run `make install-strip'. However `strip' might not be the right
3062# tool to use in cross-compilation environments, therefore Automake
3063# will honor the `STRIP' environment variable to overrule this program.
3064if test "$cross_compiling" != no; then
3065 if test -n "$ac_tool_prefix"; then
3066 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3067set dummy ${ac_tool_prefix}strip; ac_word=$2
3068echo "$as_me:$LINENO: checking for $ac_word" >&5
3069echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3070if test "${ac_cv_prog_STRIP+set}" = set; then
3071 echo $ECHO_N "(cached) $ECHO_C" >&6
3072else
3073 if test -n "$STRIP"; then
3074 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3075else
3076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3077for as_dir in $PATH
3078do
3079 IFS=$as_save_IFS
3080 test -z "$as_dir" && as_dir=.
3081 for ac_exec_ext in '' $ac_executable_extensions; do
3082 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3083 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3085 break 2
3086 fi
3087done
3088done
3089
3090fi
3091fi
3092STRIP=$ac_cv_prog_STRIP
3093if test -n "$STRIP"; then
3094 echo "$as_me:$LINENO: result: $STRIP" >&5
3095echo "${ECHO_T}$STRIP" >&6
2469cfa2 3096else
42ecbf5e
DJ
3097 echo "$as_me:$LINENO: result: no" >&5
3098echo "${ECHO_T}no" >&6
3099fi
3100
e5a52504 3101fi
42ecbf5e
DJ
3102if test -z "$ac_cv_prog_STRIP"; then
3103 ac_ct_STRIP=$STRIP
3104 # Extract the first word of "strip", so it can be a program name with args.
3105set dummy strip; ac_word=$2
3106echo "$as_me:$LINENO: checking for $ac_word" >&5
3107echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3108if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3109 echo $ECHO_N "(cached) $ECHO_C" >&6
3110else
3111 if test -n "$ac_ct_STRIP"; then
3112 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3113else
3114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3115for as_dir in $PATH
3116do
3117 IFS=$as_save_IFS
3118 test -z "$as_dir" && as_dir=.
3119 for ac_exec_ext in '' $ac_executable_extensions; do
3120 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3121 ac_cv_prog_ac_ct_STRIP="strip"
3122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3123 break 2
3124 fi
3125done
3126done
e5a52504 3127
42ecbf5e
DJ
3128 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3129fi
3130fi
3131ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3132if test -n "$ac_ct_STRIP"; then
3133 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3134echo "${ECHO_T}$ac_ct_STRIP" >&6
2469cfa2 3135else
42ecbf5e
DJ
3136 echo "$as_me:$LINENO: result: no" >&5
3137echo "${ECHO_T}no" >&6
2469cfa2
NC
3138fi
3139
42ecbf5e 3140 STRIP=$ac_ct_STRIP
2469cfa2 3141else
42ecbf5e
DJ
3142 STRIP="$ac_cv_prog_STRIP"
3143fi
3144
2469cfa2 3145fi
42ecbf5e
DJ
3146INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3147
3148# We need awk for the "check" target. The system "awk" is bad on
3149# some platforms.
3150# Always define AMTAR for backward compatibility.
3151
3152AMTAR=${AMTAR-"${am_missing_run}tar"}
3153
3154am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3155
3156
3157
3158
3159depcc="$CC" am_compiler_list=
3160
3161echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3162echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3163if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3164 echo $ECHO_N "(cached) $ECHO_C" >&6
3165else
3166 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3167 # We make a subdir and do the tests there. Otherwise we can end up
3168 # making bogus files that we don't know about and never remove. For
3169 # instance it was reported that on HP-UX the gcc test will end up
3170 # making a dummy file named `D' -- because `-MD' means `put the output
3171 # in D'.
3172 mkdir conftest.dir
3173 # Copy depcomp to subdir because otherwise we won't find it if we're
3174 # using a relative directory.
3175 cp "$am_depcomp" conftest.dir
3176 cd conftest.dir
3177 # We will build objects and dependencies in a subdirectory because
3178 # it helps to detect inapplicable dependency modes. For instance
3179 # both Tru64's cc and ICC support -MD to output dependencies as a
3180 # side effect of compilation, but ICC will put the dependencies in
3181 # the current directory while Tru64 will put them in the object
3182 # directory.
3183 mkdir sub
3184
3185 am_cv_CC_dependencies_compiler_type=none
3186 if test "$am_compiler_list" = ""; then
3187 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3188 fi
3189 for depmode in $am_compiler_list; do
3190 # Setup a source with many dependencies, because some compilers
3191 # like to wrap large dependency lists on column 80 (with \), and
3192 # we should not choose a depcomp mode which is confused by this.
3193 #
3194 # We need to recreate these files for each test, as the compiler may
3195 # overwrite some of them when testing with obscure command lines.
3196 # This happens at least with the AIX C compiler.
3197 : > sub/conftest.c
3198 for i in 1 2 3 4 5 6; do
3199 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3200 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3201 # Solaris 8's {/usr,}/bin/sh.
3202 touch sub/conftst$i.h
3203 done
3204 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3205
3206 case $depmode in
3207 nosideeffect)
3208 # after this tag, mechanisms are not by side-effect, so they'll
3209 # only be used when explicitly requested
3210 if test "x$enable_dependency_tracking" = xyes; then
3211 continue
3212 else
3213 break
3214 fi
3215 ;;
3216 none) break ;;
3217 esac
3218 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3219 # mode. It turns out that the SunPro C++ compiler does not properly
3220 # handle `-M -o', and we need to detect this.
3221 if depmode=$depmode \
3222 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3223 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3224 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3225 >/dev/null 2>conftest.err &&
3226 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3227 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3228 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3229 # icc doesn't choke on unknown options, it will just issue warnings
3230 # or remarks (even with -Werror). So we grep stderr for any message
3231 # that says an option was ignored or not supported.
3232 # When given -MP, icc 7.0 and 7.1 complain thusly:
3233 # icc: Command line warning: ignoring option '-M'; no argument required
3234 # The diagnosis changed in icc 8.0:
3235 # icc: Command line remark: option '-MP' not supported
3236 if (grep 'ignoring option' conftest.err ||
3237 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3238 am_cv_CC_dependencies_compiler_type=$depmode
3239 break
3240 fi
3241 fi
3242 done
2469cfa2 3243
42ecbf5e
DJ
3244 cd ..
3245 rm -rf conftest.dir
2469cfa2 3246else
42ecbf5e
DJ
3247 am_cv_CC_dependencies_compiler_type=none
3248fi
3249
2469cfa2 3250fi
42ecbf5e
DJ
3251echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3252echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3253CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3254
2469cfa2 3255
42ecbf5e
DJ
3256
3257if
3258 test "x$enable_dependency_tracking" != xno \
3259 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3260 am__fastdepCC_TRUE=
3261 am__fastdepCC_FALSE='#'
2469cfa2 3262else
42ecbf5e
DJ
3263 am__fastdepCC_TRUE='#'
3264 am__fastdepCC_FALSE=
2469cfa2 3265fi
2469cfa2 3266
2469cfa2 3267
e5a52504 3268
42ecbf5e 3269
d7040cdb 3270
ce2cded5
L
3271# Check whether --with-lib-path or --without-lib-path was given.
3272if test "${with_lib_path+set}" = set; then
3273 withval="$with_lib_path"
3274 LIB_PATH=$withval
3275fi;
3276# Check whether --enable-targets or --disable-targets was given.
3277if test "${enable_targets+set}" = set; then
3278 enableval="$enable_targets"
3279 case "${enableval}" in
3280 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
3281echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
3282 { (exit 1); exit 1; }; }
3283 ;;
3284 no) enable_targets= ;;
3285 *) enable_targets=$enableval ;;
3286esac
3287fi; # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
3288if test "${enable_64_bit_bfd+set}" = set; then
3289 enableval="$enable_64_bit_bfd"
3290 case "${enableval}" in
3291 yes) want64=true ;;
3292 no) want64=false ;;
3293 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
3294echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
3295 { (exit 1); exit 1; }; } ;;
3296esac
2469cfa2 3297else
ce2cded5 3298 want64=false
42ecbf5e 3299fi;
d7040cdb 3300
ce2cded5
L
3301# Check whether --with-sysroot or --without-sysroot was given.
3302if test "${with_sysroot+set}" = set; then
3303 withval="$with_sysroot"
d7040cdb 3304
ce2cded5
L
3305 case ${with_sysroot} in
3306 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
3307 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3308 esac
d7040cdb 3309
ce2cded5
L
3310 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3311 use_sysroot=yes
d7040cdb 3312
ce2cded5
L
3313 if test "x$prefix" = xNONE; then
3314 test_prefix=/usr/local
3315 else
3316 test_prefix=$prefix
3317 fi
3318 if test "x$exec_prefix" = xNONE; then
3319 test_exec_prefix=$test_prefix
3320 else
3321 test_exec_prefix=$exec_prefix
3322 fi
3323 case ${TARGET_SYSTEM_ROOT} in
3324 "${test_prefix}"|"${test_prefix}/"*|\
3325 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3326 '${prefix}'|'${prefix}/'*|\
3327 '${exec_prefix}'|'${exec_prefix}/'*)
3328 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3329 TARGET_SYSTEM_ROOT_DEFINE="$t"
3330 ;;
3331 esac
d7040cdb 3332
e5a52504 3333else
d7040cdb 3334
ce2cded5
L
3335 use_sysroot=no
3336 TARGET_SYSTEM_ROOT=
3337 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
d7040cdb 3338
ce2cded5 3339fi;
d7040cdb
SE
3340
3341
3342
3343
7fb9f789
NC
3344# Check whether --enable-got or --disable-got was given.
3345if test "${enable_got+set}" = set; then
3346 enableval="$enable_got"
3347 case "${enableval}" in
3348 target | single | negative | multigot) got_handling=$enableval ;;
3349 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-got option" >&5
3350echo "$as_me: error: bad value ${enableval} for --enable-got option" >&2;}
3351 { (exit 1); exit 1; }; } ;;
3352esac
3353else
3354 got_handling=target
3355fi;
3356
3357case "${got_handling}" in
3358 target)
3359
3360cat >>confdefs.h <<\_ACEOF
3361#define GOT_HANDLING_DEFAULT GOT_HANDLING_TARGET_DEFAULT
3362_ACEOF
3363 ;;
3364 single)
3365
3366cat >>confdefs.h <<\_ACEOF
3367#define GOT_HANDLING_DEFAULT GOT_HANDLING_SINGLE
3368_ACEOF
3369 ;;
3370 negative)
3371
3372cat >>confdefs.h <<\_ACEOF
3373#define GOT_HANDLING_DEFAULT GOT_HANDLING_NEGATIVE
3374_ACEOF
3375 ;;
3376 multigot)
3377
3378cat >>confdefs.h <<\_ACEOF
3379#define GOT_HANDLING_DEFAULT GOT_HANDLING_MULTIGOT
3380_ACEOF
3381 ;;
3382 *) { { echo "$as_me:$LINENO: error: bad value ${got_handling} for --enable-got option" >&5
3383echo "$as_me: error: bad value ${got_handling} for --enable-got option" >&2;}
3384 { (exit 1); exit 1; }; } ;;
3385esac
3386
d7040cdb 3387
ce2cded5 3388GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
d7040cdb 3389
ce2cded5
L
3390# Check whether --enable-werror or --disable-werror was given.
3391if test "${enable_werror+set}" = set; then
3392 enableval="$enable_werror"
3393 case "${enableval}" in
3394 yes | y) ERROR_ON_WARNING="yes" ;;
3395 no | n) ERROR_ON_WARNING="no" ;;
3396 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
3397echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
3398 { (exit 1); exit 1; }; } ;;
3399 esac
d7040cdb
SE
3400fi;
3401
bb8541b9
L
3402# Enable -Wno-format by default when using gcc on mingw
3403case "${host}" in
3404 *-*-mingw32*)
3405 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
3406 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
3407 fi
3408 ;;
3409 *) ;;
3410esac
3411
ce2cded5
L
3412# Enable -Werror by default when using gcc
3413if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
3414 ERROR_ON_WARNING=yes
3415fi
d7040cdb 3416
ce2cded5
L
3417NO_WERROR=
3418if test "${ERROR_ON_WARNING}" = yes ; then
3419 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
3420 NO_WERROR="-Wno-error"
3421fi
d7040cdb 3422
ce2cded5
L
3423if test "${GCC}" = yes ; then
3424 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
3425fi
d7040cdb 3426
ce2cded5
L
3427# Check whether --enable-build-warnings or --disable-build-warnings was given.
3428if test "${enable_build_warnings+set}" = set; then
3429 enableval="$enable_build_warnings"
3430 case "${enableval}" in
3431 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
3432 no) if test "${GCC}" = yes ; then
3433 WARN_CFLAGS="-w"
3434 fi;;
3435 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
3436 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
3437 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
3438 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
3439 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3440esac
3441fi;
d7040cdb 3442
ce2cded5
L
3443if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
3444 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
3445fi
d7040cdb 3446
2469cfa2 3447
d7040cdb
SE
3448
3449
3450
ce2cded5 3451 ac_config_headers="$ac_config_headers config.h:config.in"
d7040cdb
SE
3452
3453
ce2cded5
L
3454if test -z "$target" ; then
3455 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
3456echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
3457 { (exit 1); exit 1; }; }
3458fi
3459if test -z "$host" ; then
3460 { { echo "$as_me:$LINENO: error: Unrecognized host system type; please check config.sub." >&5
3461echo "$as_me: error: Unrecognized host system type; please check config.sub." >&2;}
3462 { (exit 1); exit 1; }; }
3463fi
d7040cdb 3464
ce2cded5 3465# host-specific stuff:
d7040cdb 3466
ce2cded5
L
3467ac_ext=c
3468ac_cpp='$CPP $CPPFLAGS'
3469ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3470ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3471ac_compiler_gnu=$ac_cv_c_compiler_gnu
3472if test -n "$ac_tool_prefix"; then
3473 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3474set dummy ${ac_tool_prefix}gcc; ac_word=$2
3475echo "$as_me:$LINENO: checking for $ac_word" >&5
3476echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3477if test "${ac_cv_prog_CC+set}" = set; then
d7040cdb
SE
3478 echo $ECHO_N "(cached) $ECHO_C" >&6
3479else
ce2cded5
L
3480 if test -n "$CC"; then
3481 ac_cv_prog_CC="$CC" # Let the user override the test.
3482else
d7040cdb
SE
3483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3484for as_dir in $PATH
3485do
3486 IFS=$as_save_IFS
3487 test -z "$as_dir" && as_dir=.
ce2cded5
L
3488 for ac_exec_ext in '' $ac_executable_extensions; do
3489 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3490 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3492 break 2
d7040cdb 3493 fi
ce2cded5 3494done
d7040cdb
SE
3495done
3496
3497fi
d7040cdb 3498fi
ce2cded5
L
3499CC=$ac_cv_prog_CC
3500if test -n "$CC"; then
3501 echo "$as_me:$LINENO: result: $CC" >&5
3502echo "${ECHO_T}$CC" >&6
d7040cdb 3503else
ce2cded5
L
3504 echo "$as_me:$LINENO: result: no" >&5
3505echo "${ECHO_T}no" >&6
d7040cdb 3506fi
d7040cdb 3507
252b5132 3508fi
ce2cded5
L
3509if test -z "$ac_cv_prog_CC"; then
3510 ac_ct_CC=$CC
3511 # Extract the first word of "gcc", so it can be a program name with args.
3512set dummy gcc; ac_word=$2
3513echo "$as_me:$LINENO: checking for $ac_word" >&5
3514echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3515if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
42ecbf5e 3516 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3517else
ce2cded5
L
3518 if test -n "$ac_ct_CC"; then
3519 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
252b5132 3520else
ce2cded5
L
3521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3522for as_dir in $PATH
3523do
3524 IFS=$as_save_IFS
3525 test -z "$as_dir" && as_dir=.
3526 for ac_exec_ext in '' $ac_executable_extensions; do
3527 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3528 ac_cv_prog_ac_ct_CC="gcc"
3529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3530 break 2
3531 fi
3532done
3533done
3534
252b5132
RH
3535fi
3536fi
ce2cded5
L
3537ac_ct_CC=$ac_cv_prog_ac_ct_CC
3538if test -n "$ac_ct_CC"; then
3539 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3540echo "${ECHO_T}$ac_ct_CC" >&6
252b5132 3541else
42ecbf5e
DJ
3542 echo "$as_me:$LINENO: result: no" >&5
3543echo "${ECHO_T}no" >&6
252b5132 3544fi
ce2cded5
L
3545
3546 CC=$ac_ct_CC
252b5132 3547else
ce2cded5 3548 CC="$ac_cv_prog_CC"
252b5132 3549fi
d7040cdb 3550
ce2cded5
L
3551if test -z "$CC"; then
3552 if test -n "$ac_tool_prefix"; then
3553 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3554set dummy ${ac_tool_prefix}cc; ac_word=$2
3555echo "$as_me:$LINENO: checking for $ac_word" >&5
3556echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3557if test "${ac_cv_prog_CC+set}" = set; then
42ecbf5e 3558 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3559else
ce2cded5
L
3560 if test -n "$CC"; then
3561 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 3562else
ce2cded5
L
3563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3564for as_dir in $PATH
3565do
3566 IFS=$as_save_IFS
3567 test -z "$as_dir" && as_dir=.
3568 for ac_exec_ext in '' $ac_executable_extensions; do
3569 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3570 ac_cv_prog_CC="${ac_tool_prefix}cc"
3571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3572 break 2
3573 fi
3574done
3575done
3576
252b5132
RH
3577fi
3578fi
ce2cded5
L
3579CC=$ac_cv_prog_CC
3580if test -n "$CC"; then
3581 echo "$as_me:$LINENO: result: $CC" >&5
3582echo "${ECHO_T}$CC" >&6
d15b04bd 3583else
ce2cded5
L
3584 echo "$as_me:$LINENO: result: no" >&5
3585echo "${ECHO_T}no" >&6
3586fi
3587
3588fi
3589if test -z "$ac_cv_prog_CC"; then
3590 ac_ct_CC=$CC
3591 # Extract the first word of "cc", so it can be a program name with args.
3592set dummy cc; ac_word=$2
3593echo "$as_me:$LINENO: checking for $ac_word" >&5
3594echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3595if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3596 echo $ECHO_N "(cached) $ECHO_C" >&6
3597else
3598 if test -n "$ac_ct_CC"; then
3599 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3600else
3601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3602for as_dir in $PATH
3603do
3604 IFS=$as_save_IFS
3605 test -z "$as_dir" && as_dir=.
3606 for ac_exec_ext in '' $ac_executable_extensions; do
3607 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3608 ac_cv_prog_ac_ct_CC="cc"
3609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3610 break 2
3611 fi
3612done
3613done
3614
3615fi
3616fi
3617ac_ct_CC=$ac_cv_prog_ac_ct_CC
3618if test -n "$ac_ct_CC"; then
3619 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3620echo "${ECHO_T}$ac_ct_CC" >&6
3621else
3622 echo "$as_me:$LINENO: result: no" >&5
3623echo "${ECHO_T}no" >&6
3624fi
3625
3626 CC=$ac_ct_CC
3627else
3628 CC="$ac_cv_prog_CC"
3629fi
3630
3631fi
3632if test -z "$CC"; then
3633 # Extract the first word of "cc", so it can be a program name with args.
3634set dummy cc; ac_word=$2
3635echo "$as_me:$LINENO: checking for $ac_word" >&5
3636echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3637if test "${ac_cv_prog_CC+set}" = set; then
3638 echo $ECHO_N "(cached) $ECHO_C" >&6
3639else
3640 if test -n "$CC"; then
3641 ac_cv_prog_CC="$CC" # Let the user override the test.
3642else
3643 ac_prog_rejected=no
3644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3645for as_dir in $PATH
3646do
3647 IFS=$as_save_IFS
3648 test -z "$as_dir" && as_dir=.
3649 for ac_exec_ext in '' $ac_executable_extensions; do
3650 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3651 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3652 ac_prog_rejected=yes
3653 continue
3654 fi
3655 ac_cv_prog_CC="cc"
3656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3657 break 2
3658 fi
3659done
3660done
3661
3662if test $ac_prog_rejected = yes; then
3663 # We found a bogon in the path, so make sure we never use it.
3664 set dummy $ac_cv_prog_CC
3665 shift
3666 if test $# != 0; then
3667 # We chose a different compiler from the bogus one.
3668 # However, it has the same basename, so the bogon will be chosen
3669 # first if we set CC to just the basename; use the full file name.
3670 shift
3671 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3672 fi
3673fi
3674fi
3675fi
3676CC=$ac_cv_prog_CC
3677if test -n "$CC"; then
3678 echo "$as_me:$LINENO: result: $CC" >&5
3679echo "${ECHO_T}$CC" >&6
3680else
3681 echo "$as_me:$LINENO: result: no" >&5
3682echo "${ECHO_T}no" >&6
3683fi
3684
3685fi
3686if test -z "$CC"; then
d7040cdb 3687 if test -n "$ac_tool_prefix"; then
ce2cded5 3688 for ac_prog in cl
d7040cdb
SE
3689 do
3690 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3691set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3692echo "$as_me:$LINENO: checking for $ac_word" >&5
3693echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ce2cded5 3694if test "${ac_cv_prog_CC+set}" = set; then
d7040cdb
SE
3695 echo $ECHO_N "(cached) $ECHO_C" >&6
3696else
ce2cded5
L
3697 if test -n "$CC"; then
3698 ac_cv_prog_CC="$CC" # Let the user override the test.
d7040cdb
SE
3699else
3700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3701for as_dir in $PATH
3702do
3703 IFS=$as_save_IFS
3704 test -z "$as_dir" && as_dir=.
3705 for ac_exec_ext in '' $ac_executable_extensions; do
3706 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ce2cded5 3707 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
d7040cdb
SE
3708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3709 break 2
3710 fi
3711done
3712done
3713
3714fi
3715fi
ce2cded5
L
3716CC=$ac_cv_prog_CC
3717if test -n "$CC"; then
3718 echo "$as_me:$LINENO: result: $CC" >&5
3719echo "${ECHO_T}$CC" >&6
d7040cdb
SE
3720else
3721 echo "$as_me:$LINENO: result: no" >&5
3722echo "${ECHO_T}no" >&6
3723fi
3724
ce2cded5 3725 test -n "$CC" && break
d7040cdb
SE
3726 done
3727fi
ce2cded5
L
3728if test -z "$CC"; then
3729 ac_ct_CC=$CC
3730 for ac_prog in cl
d7040cdb
SE
3731do
3732 # Extract the first word of "$ac_prog", so it can be a program name with args.
3733set dummy $ac_prog; ac_word=$2
3734echo "$as_me:$LINENO: checking for $ac_word" >&5
3735echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ce2cded5 3736if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
d7040cdb
SE
3737 echo $ECHO_N "(cached) $ECHO_C" >&6
3738else
ce2cded5
L
3739 if test -n "$ac_ct_CC"; then
3740 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
d7040cdb
SE
3741else
3742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3743for as_dir in $PATH
3744do
3745 IFS=$as_save_IFS
3746 test -z "$as_dir" && as_dir=.
3747 for ac_exec_ext in '' $ac_executable_extensions; do
3748 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ce2cded5 3749 ac_cv_prog_ac_ct_CC="$ac_prog"
d7040cdb
SE
3750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3751 break 2
3752 fi
3753done
3754done
3755
3756fi
3757fi
ce2cded5
L
3758ac_ct_CC=$ac_cv_prog_ac_ct_CC
3759if test -n "$ac_ct_CC"; then
3760 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3761echo "${ECHO_T}$ac_ct_CC" >&6
d7040cdb
SE
3762else
3763 echo "$as_me:$LINENO: result: no" >&5
3764echo "${ECHO_T}no" >&6
3765fi
3766
ce2cded5 3767 test -n "$ac_ct_CC" && break
d7040cdb 3768done
d7040cdb 3769
ce2cded5 3770 CC=$ac_ct_CC
d7040cdb
SE
3771fi
3772
d7040cdb 3773fi
d7040cdb
SE
3774
3775
7a283e07
RW
3776test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3777echo "$as_me: error: in \`$ac_pwd':" >&2;}
3778{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
ce2cded5
L
3779See \`config.log' for more details." >&5
3780echo "$as_me: error: no acceptable C compiler found in \$PATH
3781See \`config.log' for more details." >&2;}
7a283e07 3782 { (exit 1); exit 1; }; }; }
d7040cdb 3783
ce2cded5
L
3784# Provide some information about the compiler.
3785echo "$as_me:$LINENO:" \
3786 "checking for C compiler version" >&5
3787ac_compiler=`set X $ac_compile; echo $2`
3788{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3789 (eval $ac_compiler --version </dev/null >&5) 2>&5
3790 ac_status=$?
3791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792 (exit $ac_status); }
3793{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3794 (eval $ac_compiler -v </dev/null >&5) 2>&5
3795 ac_status=$?
3796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797 (exit $ac_status); }
3798{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3799 (eval $ac_compiler -V </dev/null >&5) 2>&5
3800 ac_status=$?
3801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802 (exit $ac_status); }
d7040cdb 3803
ce2cded5
L
3804echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3805echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3806if test "${ac_cv_c_compiler_gnu+set}" = set; then
d7040cdb
SE
3807 echo $ECHO_N "(cached) $ECHO_C" >&6
3808else
ce2cded5
L
3809 cat >conftest.$ac_ext <<_ACEOF
3810/* confdefs.h. */
3811_ACEOF
3812cat confdefs.h >>conftest.$ac_ext
3813cat >>conftest.$ac_ext <<_ACEOF
3814/* end confdefs.h. */
d7040cdb 3815
ce2cded5
L
3816int
3817main ()
3818{
3819#ifndef __GNUC__
3820 choke me
3821#endif
3822
3823 ;
3824 return 0;
3825}
3826_ACEOF
3827rm -f conftest.$ac_objext
3828if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3829 (eval $ac_compile) 2>conftest.er1
3830 ac_status=$?
3831 grep -v '^ *+' conftest.er1 >conftest.err
3832 rm -f conftest.er1
3833 cat conftest.err >&5
3834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835 (exit $ac_status); } &&
7357c5b6
AM
3836 { ac_try='test -z "$ac_c_werror_flag"
3837 || test ! -s conftest.err'
ce2cded5
L
3838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3839 (eval $ac_try) 2>&5
3840 ac_status=$?
3841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842 (exit $ac_status); }; } &&
3843 { ac_try='test -s conftest.$ac_objext'
3844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3845 (eval $ac_try) 2>&5
3846 ac_status=$?
3847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848 (exit $ac_status); }; }; then
3849 ac_compiler_gnu=yes
d7040cdb 3850else
ce2cded5
L
3851 echo "$as_me: failed program was:" >&5
3852sed 's/^/| /' conftest.$ac_ext >&5
3853
3854ac_compiler_gnu=no
d7040cdb 3855fi
ce2cded5
L
3856rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3857ac_cv_c_compiler_gnu=$ac_compiler_gnu
d7040cdb 3858
ce2cded5
L
3859fi
3860echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3861echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3862GCC=`test $ac_compiler_gnu = yes && echo yes`
3863ac_test_CFLAGS=${CFLAGS+set}
3864ac_save_CFLAGS=$CFLAGS
3865CFLAGS="-g"
3866echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3867echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3868if test "${ac_cv_prog_cc_g+set}" = set; then
d7040cdb
SE
3869 echo $ECHO_N "(cached) $ECHO_C" >&6
3870else
ce2cded5
L
3871 cat >conftest.$ac_ext <<_ACEOF
3872/* confdefs.h. */
3873_ACEOF
3874cat confdefs.h >>conftest.$ac_ext
3875cat >>conftest.$ac_ext <<_ACEOF
3876/* end confdefs.h. */
d7040cdb 3877
ce2cded5
L
3878int
3879main ()
3880{
d7040cdb 3881
ce2cded5
L
3882 ;
3883 return 0;
3884}
3885_ACEOF
3886rm -f conftest.$ac_objext
3887if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3888 (eval $ac_compile) 2>conftest.er1
3889 ac_status=$?
3890 grep -v '^ *+' conftest.er1 >conftest.err
3891 rm -f conftest.er1
3892 cat conftest.err >&5
3893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3894 (exit $ac_status); } &&
7357c5b6
AM
3895 { ac_try='test -z "$ac_c_werror_flag"
3896 || test ! -s conftest.err'
ce2cded5
L
3897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3898 (eval $ac_try) 2>&5
3899 ac_status=$?
3900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901 (exit $ac_status); }; } &&
3902 { ac_try='test -s conftest.$ac_objext'
3903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3904 (eval $ac_try) 2>&5
3905 ac_status=$?
3906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907 (exit $ac_status); }; }; then
3908 ac_cv_prog_cc_g=yes
3909else
3910 echo "$as_me: failed program was:" >&5
3911sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 3912
ce2cded5 3913ac_cv_prog_cc_g=no
d7040cdb 3914fi
ce2cded5
L
3915rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3916fi
3917echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3918echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3919if test "$ac_test_CFLAGS" = set; then
3920 CFLAGS=$ac_save_CFLAGS
3921elif test $ac_cv_prog_cc_g = yes; then
3922 if test "$GCC" = yes; then
3923 CFLAGS="-g -O2"
3924 else
3925 CFLAGS="-g"
3926 fi
d7040cdb 3927else
ce2cded5
L
3928 if test "$GCC" = yes; then
3929 CFLAGS="-O2"
3930 else
3931 CFLAGS=
3932 fi
d7040cdb 3933fi
ce2cded5
L
3934echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3935echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3936if test "${ac_cv_prog_cc_stdc+set}" = set; then
3937 echo $ECHO_N "(cached) $ECHO_C" >&6
d7040cdb 3938else
ce2cded5
L
3939 ac_cv_prog_cc_stdc=no
3940ac_save_CC=$CC
3941cat >conftest.$ac_ext <<_ACEOF
3942/* confdefs.h. */
3943_ACEOF
3944cat confdefs.h >>conftest.$ac_ext
3945cat >>conftest.$ac_ext <<_ACEOF
3946/* end confdefs.h. */
3947#include <stdarg.h>
3948#include <stdio.h>
3949#include <sys/types.h>
3950#include <sys/stat.h>
3951/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3952struct buf { int x; };
3953FILE * (*rcsopen) (struct buf *, struct stat *, int);
3954static char *e (p, i)
3955 char **p;
3956 int i;
3957{
3958 return p[i];
3959}
3960static char *f (char * (*g) (char **, int), char **p, ...)
3961{
3962 char *s;
3963 va_list v;
3964 va_start (v,p);
3965 s = g (p, va_arg (v,int));
3966 va_end (v);
3967 return s;
3968}
d7040cdb 3969
ce2cded5
L
3970/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3971 function prototypes and stuff, but not '\xHH' hex character constants.
3972 These don't provoke an error unfortunately, instead are silently treated
3973 as 'x'. The following induces an error, until -std1 is added to get
3974 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3975 array size at least. It's necessary to write '\x00'==0 to get something
3976 that's true only with -std1. */
3977int osf4_cc_array ['\x00' == 0 ? 1 : -1];
d7040cdb 3978
ce2cded5
L
3979int test (int i, double x);
3980struct s1 {int (*f) (int a);};
3981struct s2 {int (*f) (double a);};
3982int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3983int argc;
3984char **argv;
3985int
3986main ()
3987{
3988return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3989 ;
3990 return 0;
3991}
3992_ACEOF
3993# Don't try gcc -ansi; that turns off useful extensions and
3994# breaks some systems' header files.
3995# AIX -qlanglvl=ansi
3996# Ultrix and OSF/1 -std1
3997# HP-UX 10.20 and later -Ae
3998# HP-UX older versions -Aa -D_HPUX_SOURCE
3999# SVR4 -Xc -D__EXTENSIONS__
4000for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4001do
4002 CC="$ac_save_CC $ac_arg"
4003 rm -f conftest.$ac_objext
4004if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4005 (eval $ac_compile) 2>conftest.er1
4006 ac_status=$?
4007 grep -v '^ *+' conftest.er1 >conftest.err
4008 rm -f conftest.er1
4009 cat conftest.err >&5
4010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011 (exit $ac_status); } &&
7357c5b6
AM
4012 { ac_try='test -z "$ac_c_werror_flag"
4013 || test ! -s conftest.err'
ce2cded5
L
4014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4015 (eval $ac_try) 2>&5
4016 ac_status=$?
4017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018 (exit $ac_status); }; } &&
4019 { ac_try='test -s conftest.$ac_objext'
4020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4021 (eval $ac_try) 2>&5
4022 ac_status=$?
4023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024 (exit $ac_status); }; }; then
4025 ac_cv_prog_cc_stdc=$ac_arg
4026break
4027else
4028 echo "$as_me: failed program was:" >&5
4029sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4030
ce2cded5
L
4031fi
4032rm -f conftest.err conftest.$ac_objext
4033done
4034rm -f conftest.$ac_ext conftest.$ac_objext
4035CC=$ac_save_CC
d7040cdb 4036
ce2cded5 4037fi
d7040cdb 4038
ce2cded5
L
4039case "x$ac_cv_prog_cc_stdc" in
4040 x|xno)
4041 echo "$as_me:$LINENO: result: none needed" >&5
4042echo "${ECHO_T}none needed" >&6 ;;
4043 *)
4044 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4045echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4046 CC="$CC $ac_cv_prog_cc_stdc" ;;
d7040cdb
SE
4047esac
4048
ce2cded5
L
4049# Some people use a C++ compiler to compile C. Since we use `exit',
4050# in C++ we need to declare it. In case someone uses the same compiler
4051# for both compiling C and C++ we need to have the C++ compiler decide
4052# the declaration of exit, since it's the most demanding environment.
4053cat >conftest.$ac_ext <<_ACEOF
4054#ifndef __cplusplus
4055 choke me
4056#endif
4057_ACEOF
4058rm -f conftest.$ac_objext
4059if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4060 (eval $ac_compile) 2>conftest.er1
4061 ac_status=$?
4062 grep -v '^ *+' conftest.er1 >conftest.err
4063 rm -f conftest.er1
4064 cat conftest.err >&5
4065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066 (exit $ac_status); } &&
7357c5b6
AM
4067 { ac_try='test -z "$ac_c_werror_flag"
4068 || test ! -s conftest.err'
ce2cded5
L
4069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4070 (eval $ac_try) 2>&5
4071 ac_status=$?
4072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073 (exit $ac_status); }; } &&
4074 { ac_try='test -s conftest.$ac_objext'
4075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4076 (eval $ac_try) 2>&5
4077 ac_status=$?
4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079 (exit $ac_status); }; }; then
4080 for ac_declaration in \
4081 '' \
4082 'extern "C" void std::exit (int) throw (); using std::exit;' \
4083 'extern "C" void std::exit (int); using std::exit;' \
4084 'extern "C" void exit (int) throw ();' \
4085 'extern "C" void exit (int);' \
4086 'void exit (int);'
4087do
4088 cat >conftest.$ac_ext <<_ACEOF
4089/* confdefs.h. */
4090_ACEOF
4091cat confdefs.h >>conftest.$ac_ext
4092cat >>conftest.$ac_ext <<_ACEOF
4093/* end confdefs.h. */
4094$ac_declaration
4095#include <stdlib.h>
4096int
4097main ()
4098{
4099exit (42);
4100 ;
4101 return 0;
4102}
4103_ACEOF
4104rm -f conftest.$ac_objext
4105if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4106 (eval $ac_compile) 2>conftest.er1
4107 ac_status=$?
4108 grep -v '^ *+' conftest.er1 >conftest.err
4109 rm -f conftest.er1
4110 cat conftest.err >&5
4111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112 (exit $ac_status); } &&
7357c5b6
AM
4113 { ac_try='test -z "$ac_c_werror_flag"
4114 || test ! -s conftest.err'
ce2cded5
L
4115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4116 (eval $ac_try) 2>&5
4117 ac_status=$?
4118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119 (exit $ac_status); }; } &&
4120 { ac_try='test -s conftest.$ac_objext'
4121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4122 (eval $ac_try) 2>&5
4123 ac_status=$?
4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125 (exit $ac_status); }; }; then
4126 :
d7040cdb 4127else
ce2cded5
L
4128 echo "$as_me: failed program was:" >&5
4129sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4130
ce2cded5
L
4131continue
4132fi
4133rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4134 cat >conftest.$ac_ext <<_ACEOF
4135/* confdefs.h. */
4136_ACEOF
4137cat confdefs.h >>conftest.$ac_ext
4138cat >>conftest.$ac_ext <<_ACEOF
4139/* end confdefs.h. */
4140$ac_declaration
4141int
4142main ()
4143{
4144exit (42);
4145 ;
4146 return 0;
4147}
4148_ACEOF
4149rm -f conftest.$ac_objext
4150if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4151 (eval $ac_compile) 2>conftest.er1
4152 ac_status=$?
4153 grep -v '^ *+' conftest.er1 >conftest.err
4154 rm -f conftest.er1
4155 cat conftest.err >&5
4156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157 (exit $ac_status); } &&
7357c5b6
AM
4158 { ac_try='test -z "$ac_c_werror_flag"
4159 || test ! -s conftest.err'
ce2cded5
L
4160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4161 (eval $ac_try) 2>&5
4162 ac_status=$?
4163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164 (exit $ac_status); }; } &&
4165 { ac_try='test -s conftest.$ac_objext'
4166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4167 (eval $ac_try) 2>&5
4168 ac_status=$?
4169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170 (exit $ac_status); }; }; then
4171 break
4172else
4173 echo "$as_me: failed program was:" >&5
4174sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4175
ce2cded5
L
4176fi
4177rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4178done
4179rm -f conftest*
4180if test -n "$ac_declaration"; then
4181 echo '#ifdef __cplusplus' >>confdefs.h
4182 echo $ac_declaration >>confdefs.h
4183 echo '#endif' >>confdefs.h
4184fi
d7040cdb 4185
ce2cded5
L
4186else
4187 echo "$as_me: failed program was:" >&5
4188sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4189
ce2cded5
L
4190fi
4191rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4192ac_ext=c
4193ac_cpp='$CPP $CPPFLAGS'
4194ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4195ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4196ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb
SE
4197
4198
ce2cded5
L
4199cat >>confdefs.h <<\_ACEOF
4200#define _GNU_SOURCE 1
4201_ACEOF
4202
4203
7357c5b6
AM
4204ac_ext=c
4205ac_cpp='$CPP $CPPFLAGS'
4206ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4207ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4208ac_compiler_gnu=$ac_cv_c_compiler_gnu
4209echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4210echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4211# On Suns, sometimes $CPP names a directory.
4212if test -n "$CPP" && test -d "$CPP"; then
4213 CPP=
4214fi
4215if test -z "$CPP"; then
4216 if test "${ac_cv_prog_CPP+set}" = set; then
42ecbf5e 4217 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 4218else
7357c5b6
AM
4219 # Double quotes because CPP needs to be expanded
4220 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4221 do
4222 ac_preproc_ok=false
4223for ac_c_preproc_warn_flag in '' yes
ce2cded5 4224do
7357c5b6
AM
4225 # Use a header file that comes with gcc, so configuring glibc
4226 # with a fresh cross-compiler works.
4227 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4228 # <limits.h> exists even on freestanding compilers.
4229 # On the NeXT, cc -E runs the code through the compiler's parser,
4230 # not just through cpp. "Syntax error" is here to catch this case.
4231 cat >conftest.$ac_ext <<_ACEOF
4232/* confdefs.h. */
4233_ACEOF
4234cat confdefs.h >>conftest.$ac_ext
4235cat >>conftest.$ac_ext <<_ACEOF
4236/* end confdefs.h. */
4237#ifdef __STDC__
4238# include <limits.h>
4239#else
4240# include <assert.h>
4241#endif
4242 Syntax error
4243_ACEOF
4244if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4245 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4246 ac_status=$?
4247 grep -v '^ *+' conftest.er1 >conftest.err
4248 rm -f conftest.er1
4249 cat conftest.err >&5
4250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251 (exit $ac_status); } >/dev/null; then
4252 if test -s conftest.err; then
4253 ac_cpp_err=$ac_c_preproc_warn_flag
4254 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ce2cded5 4255 else
7357c5b6 4256 ac_cpp_err=
ce2cded5 4257 fi
7357c5b6
AM
4258else
4259 ac_cpp_err=yes
ce2cded5 4260fi
7357c5b6
AM
4261if test -z "$ac_cpp_err"; then
4262 :
ce2cded5 4263else
7357c5b6
AM
4264 echo "$as_me: failed program was:" >&5
4265sed 's/^/| /' conftest.$ac_ext >&5
ac48eca1 4266
7357c5b6
AM
4267 # Broken: fails on valid input.
4268continue
4269fi
4270rm -f conftest.err conftest.$ac_ext
ac48eca1 4271
7357c5b6
AM
4272 # OK, works on sane cases. Now check whether non-existent headers
4273 # can be detected and how.
4274 cat >conftest.$ac_ext <<_ACEOF
4275/* confdefs.h. */
4276_ACEOF
4277cat confdefs.h >>conftest.$ac_ext
4278cat >>conftest.$ac_ext <<_ACEOF
4279/* end confdefs.h. */
4280#include <ac_nonexistent.h>
4281_ACEOF
4282if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4283 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4284 ac_status=$?
4285 grep -v '^ *+' conftest.er1 >conftest.err
4286 rm -f conftest.er1
4287 cat conftest.err >&5
4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289 (exit $ac_status); } >/dev/null; then
4290 if test -s conftest.err; then
4291 ac_cpp_err=$ac_c_preproc_warn_flag
4292 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4293 else
4294 ac_cpp_err=
4295 fi
4296else
4297 ac_cpp_err=yes
4298fi
4299if test -z "$ac_cpp_err"; then
4300 # Broken: success on invalid input.
4301continue
4302else
4303 echo "$as_me: failed program was:" >&5
4304sed 's/^/| /' conftest.$ac_ext >&5
ac48eca1 4305
7357c5b6
AM
4306 # Passes both tests.
4307ac_preproc_ok=:
4308break
4309fi
4310rm -f conftest.err conftest.$ac_ext
ac48eca1 4311
7357c5b6
AM
4312done
4313# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4314rm -f conftest.err conftest.$ac_ext
4315if $ac_preproc_ok; then
4316 break
4317fi
252b5132 4318
7357c5b6
AM
4319 done
4320 ac_cv_prog_CPP=$CPP
252b5132 4321
7357c5b6
AM
4322fi
4323 CPP=$ac_cv_prog_CPP
4324else
4325 ac_cv_prog_CPP=$CPP
4326fi
4327echo "$as_me:$LINENO: result: $CPP" >&5
4328echo "${ECHO_T}$CPP" >&6
4329ac_preproc_ok=false
4330for ac_c_preproc_warn_flag in '' yes
4331do
4332 # Use a header file that comes with gcc, so configuring glibc
4333 # with a fresh cross-compiler works.
4334 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4335 # <limits.h> exists even on freestanding compilers.
4336 # On the NeXT, cc -E runs the code through the compiler's parser,
4337 # not just through cpp. "Syntax error" is here to catch this case.
4338 cat >conftest.$ac_ext <<_ACEOF
4339/* confdefs.h. */
4340_ACEOF
4341cat confdefs.h >>conftest.$ac_ext
4342cat >>conftest.$ac_ext <<_ACEOF
4343/* end confdefs.h. */
4344#ifdef __STDC__
4345# include <limits.h>
4346#else
4347# include <assert.h>
4348#endif
4349 Syntax error
4350_ACEOF
4351if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4352 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4353 ac_status=$?
4354 grep -v '^ *+' conftest.er1 >conftest.err
4355 rm -f conftest.er1
4356 cat conftest.err >&5
4357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358 (exit $ac_status); } >/dev/null; then
4359 if test -s conftest.err; then
4360 ac_cpp_err=$ac_c_preproc_warn_flag
4361 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4362 else
4363 ac_cpp_err=
4364 fi
4365else
4366 ac_cpp_err=yes
4367fi
4368if test -z "$ac_cpp_err"; then
4369 :
ac48eca1 4370else
7357c5b6
AM
4371 echo "$as_me: failed program was:" >&5
4372sed 's/^/| /' conftest.$ac_ext >&5
ce2cded5 4373
7357c5b6
AM
4374 # Broken: fails on valid input.
4375continue
4376fi
4377rm -f conftest.err conftest.$ac_ext
ce2cded5 4378
7357c5b6
AM
4379 # OK, works on sane cases. Now check whether non-existent headers
4380 # can be detected and how.
4381 cat >conftest.$ac_ext <<_ACEOF
4382/* confdefs.h. */
4383_ACEOF
4384cat confdefs.h >>conftest.$ac_ext
4385cat >>conftest.$ac_ext <<_ACEOF
4386/* end confdefs.h. */
4387#include <ac_nonexistent.h>
4388_ACEOF
4389if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4390 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4391 ac_status=$?
4392 grep -v '^ *+' conftest.er1 >conftest.err
4393 rm -f conftest.er1
4394 cat conftest.err >&5
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); } >/dev/null; then
4397 if test -s conftest.err; then
4398 ac_cpp_err=$ac_c_preproc_warn_flag
4399 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4400 else
4401 ac_cpp_err=
4402 fi
ac48eca1 4403else
7357c5b6
AM
4404 ac_cpp_err=yes
4405fi
4406if test -z "$ac_cpp_err"; then
4407 # Broken: success on invalid input.
4408continue
ce2cded5 4409else
7357c5b6
AM
4410 echo "$as_me: failed program was:" >&5
4411sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4412
7357c5b6
AM
4413 # Passes both tests.
4414ac_preproc_ok=:
4415break
4416fi
4417rm -f conftest.err conftest.$ac_ext
d7040cdb 4418
7357c5b6
AM
4419done
4420# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4421rm -f conftest.err conftest.$ac_ext
4422if $ac_preproc_ok; then
4423 :
4424else
4425 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4426echo "$as_me: error: in \`$ac_pwd':" >&2;}
4427{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4428See \`config.log' for more details." >&5
4429echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4430See \`config.log' for more details." >&2;}
4431 { (exit 1); exit 1; }; }; }
4432fi
ce2cded5 4433
7357c5b6
AM
4434ac_ext=c
4435ac_cpp='$CPP $CPPFLAGS'
4436ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4437ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4438ac_compiler_gnu=$ac_cv_c_compiler_gnu
ce2cded5
L
4439
4440
7357c5b6
AM
4441echo "$as_me:$LINENO: checking for egrep" >&5
4442echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4443if test "${ac_cv_prog_egrep+set}" = set; then
42ecbf5e 4444 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 4445else
7357c5b6
AM
4446 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4447 then ac_cv_prog_egrep='grep -E'
4448 else ac_cv_prog_egrep='egrep'
ce2cded5 4449 fi
ac48eca1 4450fi
7357c5b6
AM
4451echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4452echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4453 EGREP=$ac_cv_prog_egrep
ac48eca1 4454
252b5132 4455
7357c5b6
AM
4456echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4457echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4458if test "${ac_cv_header_stdc+set}" = set; then
4459 echo $ECHO_N "(cached) $ECHO_C" >&6
4460else
4461 cat >conftest.$ac_ext <<_ACEOF
4462/* confdefs.h. */
4463_ACEOF
4464cat confdefs.h >>conftest.$ac_ext
4465cat >>conftest.$ac_ext <<_ACEOF
4466/* end confdefs.h. */
4467#include <stdlib.h>
4468#include <stdarg.h>
4469#include <string.h>
4470#include <float.h>
4867be41 4471
7357c5b6
AM
4472int
4473main ()
4474{
32fba81d 4475
7357c5b6
AM
4476 ;
4477 return 0;
4478}
4479_ACEOF
4480rm -f conftest.$ac_objext
4481if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4482 (eval $ac_compile) 2>conftest.er1
4483 ac_status=$?
4484 grep -v '^ *+' conftest.er1 >conftest.err
4485 rm -f conftest.er1
4486 cat conftest.err >&5
4487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 (exit $ac_status); } &&
4489 { ac_try='test -z "$ac_c_werror_flag"
4490 || test ! -s conftest.err'
4491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4492 (eval $ac_try) 2>&5
4493 ac_status=$?
4494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495 (exit $ac_status); }; } &&
4496 { ac_try='test -s conftest.$ac_objext'
4497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4498 (eval $ac_try) 2>&5
4499 ac_status=$?
4500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501 (exit $ac_status); }; }; then
4502 ac_cv_header_stdc=yes
4503else
4504 echo "$as_me: failed program was:" >&5
4505sed 's/^/| /' conftest.$ac_ext >&5
42ecbf5e 4506
7357c5b6
AM
4507ac_cv_header_stdc=no
4508fi
4509rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42ecbf5e 4510
7357c5b6
AM
4511if test $ac_cv_header_stdc = yes; then
4512 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4513 cat >conftest.$ac_ext <<_ACEOF
4514/* confdefs.h. */
4515_ACEOF
4516cat confdefs.h >>conftest.$ac_ext
4517cat >>conftest.$ac_ext <<_ACEOF
4518/* end confdefs.h. */
4519#include <string.h>
ac48eca1 4520
7357c5b6
AM
4521_ACEOF
4522if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4523 $EGREP "memchr" >/dev/null 2>&1; then
4524 :
4525else
4526 ac_cv_header_stdc=no
4527fi
4528rm -f conftest*
252b5132 4529
7357c5b6 4530fi
252b5132 4531
7357c5b6
AM
4532if test $ac_cv_header_stdc = yes; then
4533 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4534 cat >conftest.$ac_ext <<_ACEOF
4535/* confdefs.h. */
4536_ACEOF
4537cat confdefs.h >>conftest.$ac_ext
4538cat >>conftest.$ac_ext <<_ACEOF
4539/* end confdefs.h. */
4540#include <stdlib.h>
42ecbf5e 4541
7357c5b6
AM
4542_ACEOF
4543if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4544 $EGREP "free" >/dev/null 2>&1; then
4545 :
4546else
4547 ac_cv_header_stdc=no
4548fi
4549rm -f conftest*
ac48eca1 4550
7357c5b6 4551fi
d7040cdb 4552
7357c5b6
AM
4553if test $ac_cv_header_stdc = yes; then
4554 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4555 if test "$cross_compiling" = yes; then
4556 :
4557else
4558 cat >conftest.$ac_ext <<_ACEOF
4559/* confdefs.h. */
4560_ACEOF
4561cat confdefs.h >>conftest.$ac_ext
4562cat >>conftest.$ac_ext <<_ACEOF
4563/* end confdefs.h. */
4564#include <ctype.h>
4565#if ((' ' & 0x0FF) == 0x020)
4566# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4567# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4568#else
4569# define ISLOWER(c) \
4570 (('a' <= (c) && (c) <= 'i') \
4571 || ('j' <= (c) && (c) <= 'r') \
4572 || ('s' <= (c) && (c) <= 'z'))
4573# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4574#endif
d7040cdb 4575
7357c5b6
AM
4576#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4577int
4578main ()
4579{
4580 int i;
4581 for (i = 0; i < 256; i++)
4582 if (XOR (islower (i), ISLOWER (i))
4583 || toupper (i) != TOUPPER (i))
4584 exit(2);
4585 exit (0);
4586}
4587_ACEOF
4588rm -f conftest$ac_exeext
4589if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4590 (eval $ac_link) 2>&5
4591 ac_status=$?
4592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4595 (eval $ac_try) 2>&5
4596 ac_status=$?
4597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598 (exit $ac_status); }; }; then
4599 :
ce2cded5 4600else
7357c5b6
AM
4601 echo "$as_me: program exited with status $ac_status" >&5
4602echo "$as_me: failed program was:" >&5
4603sed 's/^/| /' conftest.$ac_ext >&5
4604
4605( exit $ac_status )
4606ac_cv_header_stdc=no
252b5132 4607fi
7357c5b6
AM
4608rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4609fi
4610fi
4611fi
4612echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4613echo "${ECHO_T}$ac_cv_header_stdc" >&6
4614if test $ac_cv_header_stdc = yes; then
252b5132 4615
7357c5b6
AM
4616cat >>confdefs.h <<\_ACEOF
4617#define STDC_HEADERS 1
4618_ACEOF
252b5132 4619
ce2cded5 4620fi
252b5132 4621
7357c5b6 4622# On IRIX 5.3, sys/types and inttypes.h are conflicting.
252b5132 4623
42ecbf5e 4624
42ecbf5e 4625
252b5132 4626
252b5132 4627
252b5132
RH
4628
4629
252b5132 4630
252b5132 4631
7357c5b6
AM
4632for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4633 inttypes.h stdint.h unistd.h
4634do
4635as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4636echo "$as_me:$LINENO: checking for $ac_header" >&5
4637echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4638if eval "test \"\${$as_ac_Header+set}\" = set"; then
4639 echo $ECHO_N "(cached) $ECHO_C" >&6
4640else
4641 cat >conftest.$ac_ext <<_ACEOF
4642/* confdefs.h. */
4643_ACEOF
4644cat confdefs.h >>conftest.$ac_ext
4645cat >>conftest.$ac_ext <<_ACEOF
4646/* end confdefs.h. */
4647$ac_includes_default
252b5132 4648
7357c5b6
AM
4649#include <$ac_header>
4650_ACEOF
4651rm -f conftest.$ac_objext
4652if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4653 (eval $ac_compile) 2>conftest.er1
4654 ac_status=$?
4655 grep -v '^ *+' conftest.er1 >conftest.err
4656 rm -f conftest.er1
4657 cat conftest.err >&5
4658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659 (exit $ac_status); } &&
4660 { ac_try='test -z "$ac_c_werror_flag"
4661 || test ! -s conftest.err'
4662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4663 (eval $ac_try) 2>&5
4664 ac_status=$?
4665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666 (exit $ac_status); }; } &&
4667 { ac_try='test -s conftest.$ac_objext'
4668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4669 (eval $ac_try) 2>&5
4670 ac_status=$?
4671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672 (exit $ac_status); }; }; then
4673 eval "$as_ac_Header=yes"
4674else
4675 echo "$as_me: failed program was:" >&5
4676sed 's/^/| /' conftest.$ac_ext >&5
ac48eca1 4677
7357c5b6
AM
4678eval "$as_ac_Header=no"
4679fi
4680rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4681fi
4682echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4683echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4684if test `eval echo '${'$as_ac_Header'}'` = yes; then
4685 cat >>confdefs.h <<_ACEOF
4686#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4687_ACEOF
42ecbf5e 4688
7357c5b6 4689fi
42ecbf5e 4690
7357c5b6 4691done
42ecbf5e
DJ
4692
4693
4694
7357c5b6
AM
4695 if test "${ac_cv_header_minix_config_h+set}" = set; then
4696 echo "$as_me:$LINENO: checking for minix/config.h" >&5
4697echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4698if test "${ac_cv_header_minix_config_h+set}" = set; then
4699 echo $ECHO_N "(cached) $ECHO_C" >&6
4700fi
4701echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4702echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4703else
4704 # Is the header compilable?
4705echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4706echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
4707cat >conftest.$ac_ext <<_ACEOF
4708/* confdefs.h. */
4709_ACEOF
4710cat confdefs.h >>conftest.$ac_ext
4711cat >>conftest.$ac_ext <<_ACEOF
4712/* end confdefs.h. */
4713$ac_includes_default
4714#include <minix/config.h>
4715_ACEOF
4716rm -f conftest.$ac_objext
4717if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4718 (eval $ac_compile) 2>conftest.er1
4719 ac_status=$?
4720 grep -v '^ *+' conftest.er1 >conftest.err
4721 rm -f conftest.er1
4722 cat conftest.err >&5
4723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724 (exit $ac_status); } &&
4725 { ac_try='test -z "$ac_c_werror_flag"
4726 || test ! -s conftest.err'
4727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4728 (eval $ac_try) 2>&5
4729 ac_status=$?
4730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731 (exit $ac_status); }; } &&
4732 { ac_try='test -s conftest.$ac_objext'
4733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4734 (eval $ac_try) 2>&5
4735 ac_status=$?
4736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737 (exit $ac_status); }; }; then
4738 ac_header_compiler=yes
4739else
4740 echo "$as_me: failed program was:" >&5
4741sed 's/^/| /' conftest.$ac_ext >&5
ac48eca1 4742
7357c5b6
AM
4743ac_header_compiler=no
4744fi
4745rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4746echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4747echo "${ECHO_T}$ac_header_compiler" >&6
252b5132 4748
7357c5b6
AM
4749# Is the header present?
4750echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4751echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
4752cat >conftest.$ac_ext <<_ACEOF
4753/* confdefs.h. */
4754_ACEOF
4755cat confdefs.h >>conftest.$ac_ext
4756cat >>conftest.$ac_ext <<_ACEOF
4757/* end confdefs.h. */
4758#include <minix/config.h>
4759_ACEOF
4760if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4761 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4762 ac_status=$?
4763 grep -v '^ *+' conftest.er1 >conftest.err
4764 rm -f conftest.er1
4765 cat conftest.err >&5
4766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767 (exit $ac_status); } >/dev/null; then
4768 if test -s conftest.err; then
4769 ac_cpp_err=$ac_c_preproc_warn_flag
4770 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4771 else
4772 ac_cpp_err=
4773 fi
4774else
4775 ac_cpp_err=yes
4776fi
4777if test -z "$ac_cpp_err"; then
4778 ac_header_preproc=yes
4779else
4780 echo "$as_me: failed program was:" >&5
4781sed 's/^/| /' conftest.$ac_ext >&5
42ecbf5e 4782
7357c5b6
AM
4783 ac_header_preproc=no
4784fi
4785rm -f conftest.err conftest.$ac_ext
4786echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4787echo "${ECHO_T}$ac_header_preproc" >&6
9c8ebd6a 4788
7357c5b6
AM
4789# So? What about this header?
4790case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4791 yes:no: )
4792 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4793echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4794 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4795echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4796 ac_header_preproc=yes
ce2cded5 4797 ;;
7357c5b6
AM
4798 no:yes:* )
4799 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4800echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4801 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4802echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4803 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4804echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4805 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4806echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4807 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4808echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4809 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4810echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4811 (
4812 cat <<\_ASBOX
4813## ------------------------------------------ ##
4814## Report this to the AC_PACKAGE_NAME lists. ##
4815## ------------------------------------------ ##
4816_ASBOX
4817 ) |
4818 sed "s/^/$as_me: WARNING: /" >&2
ce2cded5 4819 ;;
7357c5b6
AM
4820esac
4821echo "$as_me:$LINENO: checking for minix/config.h" >&5
4822echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4823if test "${ac_cv_header_minix_config_h+set}" = set; then
ce2cded5
L
4824 echo $ECHO_N "(cached) $ECHO_C" >&6
4825else
7357c5b6 4826 ac_cv_header_minix_config_h=$ac_header_preproc
ce2cded5 4827fi
7357c5b6
AM
4828echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4829echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
9e9b66a9 4830
ce2cded5 4831fi
7357c5b6
AM
4832if test $ac_cv_header_minix_config_h = yes; then
4833 MINIX=yes
ce2cded5 4834else
7357c5b6 4835 MINIX=
ce2cded5 4836fi
42ecbf5e 4837
e5a52504 4838
7357c5b6
AM
4839 if test "$MINIX" = yes; then
4840
4841cat >>confdefs.h <<\_ACEOF
4842#define _POSIX_SOURCE 1
4843_ACEOF
d7040cdb 4844
d7040cdb 4845
7357c5b6
AM
4846cat >>confdefs.h <<\_ACEOF
4847#define _POSIX_1_SOURCE 2
4848_ACEOF
d7040cdb 4849
d7040cdb 4850
7357c5b6
AM
4851cat >>confdefs.h <<\_ACEOF
4852#define _MINIX 1
4853_ACEOF
d7040cdb 4854
7357c5b6 4855 fi
d7040cdb 4856
d7040cdb 4857
d7040cdb 4858
7357c5b6
AM
4859 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4860echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
4861if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
ce2cded5
L
4862 echo $ECHO_N "(cached) $ECHO_C" >&6
4863else
7357c5b6
AM
4864 cat >conftest.$ac_ext <<_ACEOF
4865/* confdefs.h. */
4866_ACEOF
4867cat confdefs.h >>conftest.$ac_ext
4868cat >>conftest.$ac_ext <<_ACEOF
4869/* end confdefs.h. */
4870
4871# define __EXTENSIONS__ 1
4872 $ac_includes_default
4873int
4874main ()
4875{
4876
4877 ;
4878 return 0;
4879}
4880_ACEOF
4881rm -f conftest.$ac_objext
4882if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4883 (eval $ac_compile) 2>conftest.er1
4884 ac_status=$?
4885 grep -v '^ *+' conftest.er1 >conftest.err
4886 rm -f conftest.er1
4887 cat conftest.err >&5
4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889 (exit $ac_status); } &&
4890 { ac_try='test -z "$ac_c_werror_flag"
4891 || test ! -s conftest.err'
4892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4893 (eval $ac_try) 2>&5
4894 ac_status=$?
4895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); }; } &&
4897 { ac_try='test -s conftest.$ac_objext'
4898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4899 (eval $ac_try) 2>&5
4900 ac_status=$?
4901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902 (exit $ac_status); }; }; then
4903 ac_cv_safe_to_define___extensions__=yes
ce2cded5 4904else
7357c5b6
AM
4905 echo "$as_me: failed program was:" >&5
4906sed 's/^/| /' conftest.$ac_ext >&5
4907
4908ac_cv_safe_to_define___extensions__=no
ce2cded5 4909fi
7357c5b6 4910rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ce2cded5 4911fi
7357c5b6
AM
4912echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4913echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
4914 test $ac_cv_safe_to_define___extensions__ = yes &&
4915 cat >>confdefs.h <<\_ACEOF
4916#define __EXTENSIONS__ 1
4917_ACEOF
4918
4919 cat >>confdefs.h <<\_ACEOF
4920#define _ALL_SOURCE 1
4921_ACEOF
4922
4923 cat >>confdefs.h <<\_ACEOF
4924#define _GNU_SOURCE 1
4925_ACEOF
4926
4927 cat >>confdefs.h <<\_ACEOF
4928#define _POSIX_PTHREAD_SEMANTICS 1
4929_ACEOF
4930
4931 cat >>confdefs.h <<\_ACEOF
4932#define _TANDEM_SOURCE 1
4933_ACEOF
4934
4935
d053aef8
JK
4936# Check whether --enable-largefile or --disable-largefile was given.
4937if test "${enable_largefile+set}" = set; then
4938 enableval="$enable_largefile"
4939
4940fi;
4941if test "$enable_largefile" != no; then
4942
4943 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4944echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4945if test "${ac_cv_sys_largefile_CC+set}" = set; then
4946 echo $ECHO_N "(cached) $ECHO_C" >&6
4947else
4948 ac_cv_sys_largefile_CC=no
4949 if test "$GCC" != yes; then
4950 ac_save_CC=$CC
4951 while :; do
4952 # IRIX 6.2 and later do not support large files by default,
4953 # so use the C compiler's -n32 option if that helps.
4954 cat >conftest.$ac_ext <<_ACEOF
4955/* confdefs.h. */
4956_ACEOF
4957cat confdefs.h >>conftest.$ac_ext
4958cat >>conftest.$ac_ext <<_ACEOF
4959/* end confdefs.h. */
4960#include <sys/types.h>
4961 /* Check that off_t can represent 2**63 - 1 correctly.
4962 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4963 since some C++ compilers masquerading as C compilers
4964 incorrectly reject 9223372036854775807. */
4965#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4966 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4967 && LARGE_OFF_T % 2147483647 == 1)
4968 ? 1 : -1];
4969int
4970main ()
4971{
4972
4973 ;
4974 return 0;
4975}
4976_ACEOF
4977 rm -f conftest.$ac_objext
4978if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4979 (eval $ac_compile) 2>conftest.er1
4980 ac_status=$?
4981 grep -v '^ *+' conftest.er1 >conftest.err
4982 rm -f conftest.er1
4983 cat conftest.err >&5
4984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); } &&
4986 { ac_try='test -z "$ac_c_werror_flag"
4987 || test ! -s conftest.err'
4988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4989 (eval $ac_try) 2>&5
4990 ac_status=$?
4991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4992 (exit $ac_status); }; } &&
4993 { ac_try='test -s conftest.$ac_objext'
4994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4995 (eval $ac_try) 2>&5
4996 ac_status=$?
4997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998 (exit $ac_status); }; }; then
4999 break
5000else
5001 echo "$as_me: failed program was:" >&5
5002sed 's/^/| /' conftest.$ac_ext >&5
5003
5004fi
5005rm -f conftest.err conftest.$ac_objext
5006 CC="$CC -n32"
5007 rm -f conftest.$ac_objext
5008if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5009 (eval $ac_compile) 2>conftest.er1
5010 ac_status=$?
5011 grep -v '^ *+' conftest.er1 >conftest.err
5012 rm -f conftest.er1
5013 cat conftest.err >&5
5014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015 (exit $ac_status); } &&
5016 { ac_try='test -z "$ac_c_werror_flag"
5017 || test ! -s conftest.err'
5018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5019 (eval $ac_try) 2>&5
5020 ac_status=$?
5021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022 (exit $ac_status); }; } &&
5023 { ac_try='test -s conftest.$ac_objext'
5024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5025 (eval $ac_try) 2>&5
5026 ac_status=$?
5027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028 (exit $ac_status); }; }; then
5029 ac_cv_sys_largefile_CC=' -n32'; break
5030else
5031 echo "$as_me: failed program was:" >&5
5032sed 's/^/| /' conftest.$ac_ext >&5
5033
5034fi
5035rm -f conftest.err conftest.$ac_objext
5036 break
5037 done
5038 CC=$ac_save_CC
5039 rm -f conftest.$ac_ext
5040 fi
5041fi
5042echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5043echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
5044 if test "$ac_cv_sys_largefile_CC" != no; then
5045 CC=$CC$ac_cv_sys_largefile_CC
5046 fi
5047
5048 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5049echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
5050if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5051 echo $ECHO_N "(cached) $ECHO_C" >&6
5052else
5053 while :; do
5054 ac_cv_sys_file_offset_bits=no
5055 cat >conftest.$ac_ext <<_ACEOF
5056/* confdefs.h. */
5057_ACEOF
5058cat confdefs.h >>conftest.$ac_ext
5059cat >>conftest.$ac_ext <<_ACEOF
5060/* end confdefs.h. */
5061#include <sys/types.h>
5062 /* Check that off_t can represent 2**63 - 1 correctly.
5063 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5064 since some C++ compilers masquerading as C compilers
5065 incorrectly reject 9223372036854775807. */
5066#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5067 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5068 && LARGE_OFF_T % 2147483647 == 1)
5069 ? 1 : -1];
5070int
5071main ()
5072{
5073
5074 ;
5075 return 0;
5076}
5077_ACEOF
5078rm -f conftest.$ac_objext
5079if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5080 (eval $ac_compile) 2>conftest.er1
5081 ac_status=$?
5082 grep -v '^ *+' conftest.er1 >conftest.err
5083 rm -f conftest.er1
5084 cat conftest.err >&5
5085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086 (exit $ac_status); } &&
5087 { ac_try='test -z "$ac_c_werror_flag"
5088 || test ! -s conftest.err'
5089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5090 (eval $ac_try) 2>&5
5091 ac_status=$?
5092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093 (exit $ac_status); }; } &&
5094 { ac_try='test -s conftest.$ac_objext'
5095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5096 (eval $ac_try) 2>&5
5097 ac_status=$?
5098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5099 (exit $ac_status); }; }; then
5100 break
5101else
5102 echo "$as_me: failed program was:" >&5
5103sed 's/^/| /' conftest.$ac_ext >&5
5104
5105fi
5106rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5107 cat >conftest.$ac_ext <<_ACEOF
5108/* confdefs.h. */
5109_ACEOF
5110cat confdefs.h >>conftest.$ac_ext
5111cat >>conftest.$ac_ext <<_ACEOF
5112/* end confdefs.h. */
5113#define _FILE_OFFSET_BITS 64
5114#include <sys/types.h>
5115 /* Check that off_t can represent 2**63 - 1 correctly.
5116 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5117 since some C++ compilers masquerading as C compilers
5118 incorrectly reject 9223372036854775807. */
5119#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5120 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5121 && LARGE_OFF_T % 2147483647 == 1)
5122 ? 1 : -1];
5123int
5124main ()
5125{
5126
5127 ;
5128 return 0;
5129}
5130_ACEOF
5131rm -f conftest.$ac_objext
5132if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5133 (eval $ac_compile) 2>conftest.er1
5134 ac_status=$?
5135 grep -v '^ *+' conftest.er1 >conftest.err
5136 rm -f conftest.er1
5137 cat conftest.err >&5
5138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139 (exit $ac_status); } &&
5140 { ac_try='test -z "$ac_c_werror_flag"
5141 || test ! -s conftest.err'
5142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5143 (eval $ac_try) 2>&5
5144 ac_status=$?
5145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5146 (exit $ac_status); }; } &&
5147 { ac_try='test -s conftest.$ac_objext'
5148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5149 (eval $ac_try) 2>&5
5150 ac_status=$?
5151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5152 (exit $ac_status); }; }; then
5153 ac_cv_sys_file_offset_bits=64; break
5154else
5155 echo "$as_me: failed program was:" >&5
5156sed 's/^/| /' conftest.$ac_ext >&5
5157
5158fi
5159rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5160 break
5161done
5162fi
5163echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5164echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
5165if test "$ac_cv_sys_file_offset_bits" != no; then
5166
5167cat >>confdefs.h <<_ACEOF
5168#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5169_ACEOF
5170
5171fi
5172rm -f conftest*
5173 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5174echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
5175if test "${ac_cv_sys_large_files+set}" = set; then
5176 echo $ECHO_N "(cached) $ECHO_C" >&6
5177else
5178 while :; do
5179 ac_cv_sys_large_files=no
5180 cat >conftest.$ac_ext <<_ACEOF
5181/* confdefs.h. */
5182_ACEOF
5183cat confdefs.h >>conftest.$ac_ext
5184cat >>conftest.$ac_ext <<_ACEOF
5185/* end confdefs.h. */
5186#include <sys/types.h>
5187 /* Check that off_t can represent 2**63 - 1 correctly.
5188 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5189 since some C++ compilers masquerading as C compilers
5190 incorrectly reject 9223372036854775807. */
5191#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5192 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5193 && LARGE_OFF_T % 2147483647 == 1)
5194 ? 1 : -1];
5195int
5196main ()
5197{
5198
5199 ;
5200 return 0;
5201}
5202_ACEOF
5203rm -f conftest.$ac_objext
5204if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5205 (eval $ac_compile) 2>conftest.er1
5206 ac_status=$?
5207 grep -v '^ *+' conftest.er1 >conftest.err
5208 rm -f conftest.er1
5209 cat conftest.err >&5
5210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211 (exit $ac_status); } &&
5212 { ac_try='test -z "$ac_c_werror_flag"
5213 || test ! -s conftest.err'
5214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5215 (eval $ac_try) 2>&5
5216 ac_status=$?
5217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5218 (exit $ac_status); }; } &&
5219 { ac_try='test -s conftest.$ac_objext'
5220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5221 (eval $ac_try) 2>&5
5222 ac_status=$?
5223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224 (exit $ac_status); }; }; then
5225 break
5226else
5227 echo "$as_me: failed program was:" >&5
5228sed 's/^/| /' conftest.$ac_ext >&5
5229
5230fi
5231rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5232 cat >conftest.$ac_ext <<_ACEOF
5233/* confdefs.h. */
5234_ACEOF
5235cat confdefs.h >>conftest.$ac_ext
5236cat >>conftest.$ac_ext <<_ACEOF
5237/* end confdefs.h. */
5238#define _LARGE_FILES 1
5239#include <sys/types.h>
5240 /* Check that off_t can represent 2**63 - 1 correctly.
5241 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5242 since some C++ compilers masquerading as C compilers
5243 incorrectly reject 9223372036854775807. */
5244#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5245 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5246 && LARGE_OFF_T % 2147483647 == 1)
5247 ? 1 : -1];
5248int
5249main ()
5250{
5251
5252 ;
5253 return 0;
5254}
5255_ACEOF
5256rm -f conftest.$ac_objext
5257if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5258 (eval $ac_compile) 2>conftest.er1
5259 ac_status=$?
5260 grep -v '^ *+' conftest.er1 >conftest.err
5261 rm -f conftest.er1
5262 cat conftest.err >&5
5263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5264 (exit $ac_status); } &&
5265 { ac_try='test -z "$ac_c_werror_flag"
5266 || test ! -s conftest.err'
5267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5268 (eval $ac_try) 2>&5
5269 ac_status=$?
5270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271 (exit $ac_status); }; } &&
5272 { ac_try='test -s conftest.$ac_objext'
5273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5274 (eval $ac_try) 2>&5
5275 ac_status=$?
5276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5277 (exit $ac_status); }; }; then
5278 ac_cv_sys_large_files=1; break
5279else
5280 echo "$as_me: failed program was:" >&5
5281sed 's/^/| /' conftest.$ac_ext >&5
5282
5283fi
5284rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5285 break
5286done
5287fi
5288echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5289echo "${ECHO_T}$ac_cv_sys_large_files" >&6
5290if test "$ac_cv_sys_large_files" != no; then
5291
5292cat >>confdefs.h <<_ACEOF
5293#define _LARGE_FILES $ac_cv_sys_large_files
5294_ACEOF
5295
5296fi
5297rm -f conftest*
5298fi
5299
7357c5b6
AM
5300# Find a good install program. We prefer a C program (faster),
5301# so one script is as good as another. But avoid the broken or
5302# incompatible versions:
5303# SysV /etc/install, /usr/sbin/install
5304# SunOS /usr/etc/install
5305# IRIX /sbin/install
5306# AIX /bin/install
5307# AmigaOS /C/install, which installs bootblocks on floppy discs
5308# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5309# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5310# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5311# OS/2's system install, which has a completely different semantic
5312# ./install, which can be erroneously created by make from ./install.sh.
5313# Reject install programs that cannot install multiple files.
5314echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5315echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5316if test -z "$INSTALL"; then
5317if test "${ac_cv_path_install+set}" = set; then
ce2cded5
L
5318 echo $ECHO_N "(cached) $ECHO_C" >&6
5319else
7357c5b6 5320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
ce2cded5
L
5321for as_dir in $PATH
5322do
5323 IFS=$as_save_IFS
5324 test -z "$as_dir" && as_dir=.
7357c5b6
AM
5325 # Account for people who put trailing slashes in PATH elements.
5326case $as_dir/ in
5327 ./ | .// | /cC/* | \
5328 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5329 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5330 /usr/ucb/* ) ;;
5331 *)
5332 # OSF1 and SCO ODT 3.0 have their own names for install.
5333 # Don't use installbsd from OSF since it installs stuff as root
5334 # by default.
5335 for ac_prog in ginstall scoinst install; do
5336 for ac_exec_ext in '' $ac_executable_extensions; do
5337 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5338 if test $ac_prog = install &&
5339 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5340 # AIX install. It has an incompatible calling convention.
5341 :
5342 elif test $ac_prog = install &&
5343 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5344 # program-specific install script used by HP pwplus--don't use.
5345 :
5346 else
5347 rm -rf conftest.one conftest.two conftest.dir
5348 echo one > conftest.one
5349 echo two > conftest.two
5350 mkdir conftest.dir
5351 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5352 test -s conftest.one && test -s conftest.two &&
5353 test -s conftest.dir/conftest.one &&
5354 test -s conftest.dir/conftest.two
5355 then
5356 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5357 break 3
5358 fi
5359 fi
5360 fi
5361 done
5362 done
5363 ;;
5364esac
ce2cded5 5365done
d15b04bd 5366
7357c5b6 5367rm -rf conftest.one conftest.two conftest.dir
d7040cdb 5368
42ecbf5e 5369fi
7357c5b6
AM
5370 if test "${ac_cv_path_install+set}" = set; then
5371 INSTALL=$ac_cv_path_install
5372 else
5373 # As a last resort, use the slow shell script. Don't cache a
5374 # value for INSTALL within a source directory, because that will
5375 # break other packages using the cache if that directory is
5376 # removed, or if the value is a relative name.
5377 INSTALL=$ac_install_sh
ce2cded5 5378 fi
e5a52504 5379fi
7357c5b6
AM
5380echo "$as_me:$LINENO: result: $INSTALL" >&5
5381echo "${ECHO_T}$INSTALL" >&6
e5a52504 5382
7357c5b6
AM
5383# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5384# It thinks the first close brace ends the variable substitution.
5385test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
d15b04bd 5386
7357c5b6 5387test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
42ecbf5e 5388
7357c5b6 5389test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
42ecbf5e 5390
42ecbf5e 5391
b214d478
SE
5392case `pwd` in
5393 *\ * | *\ *)
5394 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5395echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5396esac
252b5132 5397
42ecbf5e 5398
d7040cdb 5399
b214d478
SE
5400macro_version='2.2.6'
5401macro_revision='1.3012'
d7040cdb 5402
d7040cdb
SE
5403
5404
d7040cdb 5405
d7040cdb 5406
42ecbf5e 5407
d7040cdb 5408
252b5132 5409
252b5132 5410
252b5132 5411
252b5132
RH
5412
5413
ce2cded5 5414
b214d478 5415ltmain="$ac_aux_dir/ltmain.sh"
ce2cded5 5416
7357c5b6
AM
5417echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5418echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5419if test "${lt_cv_path_SED+set}" = set; then
ce2cded5 5420 echo $ECHO_N "(cached) $ECHO_C" >&6
d7040cdb 5421else
7357c5b6
AM
5422 # Loop through the user's path and test for sed and gsed.
5423# Then use that list of sed's as ones to test for truncation.
5424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5425for as_dir in $PATH
5426do
5427 IFS=$as_save_IFS
5428 test -z "$as_dir" && as_dir=.
5429 for lt_ac_prog in sed gsed; do
5430 for ac_exec_ext in '' $ac_executable_extensions; do
5431 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5432 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5433 fi
5434 done
5435 done
5436done
5437IFS=$as_save_IFS
5438lt_ac_max=0
5439lt_ac_count=0
5440# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5441# along with /bin/sed that truncates output.
5442for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5443 test ! -f $lt_ac_sed && continue
5444 cat /dev/null > conftest.in
5445 lt_ac_count=0
5446 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5447 # Check for GNU sed and select it if it is found.
5448 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5449 lt_cv_path_SED=$lt_ac_sed
5450 break
ce2cded5 5451 fi
7357c5b6
AM
5452 while true; do
5453 cat conftest.in conftest.in >conftest.tmp
5454 mv conftest.tmp conftest.in
5455 cp conftest.in conftest.nl
5456 echo >>conftest.nl
5457 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5458 cmp -s conftest.out conftest.nl || break
5459 # 10000 chars as input seems more than enough
5460 test $lt_ac_count -gt 10 && break
5461 lt_ac_count=`expr $lt_ac_count + 1`
5462 if test $lt_ac_count -gt $lt_ac_max; then
5463 lt_ac_max=$lt_ac_count
5464 lt_cv_path_SED=$lt_ac_sed
5465 fi
5466 done
5467done
20e95c23 5468
7357c5b6 5469fi
20e95c23 5470
7357c5b6 5471SED=$lt_cv_path_SED
20e95c23 5472
7357c5b6
AM
5473echo "$as_me:$LINENO: result: $SED" >&5
5474echo "${ECHO_T}$SED" >&6
20e95c23 5475
7357c5b6
AM
5476test -z "$SED" && SED=sed
5477Xsed="$SED -e 1s/^X//"
20e95c23
DJ
5478
5479
5480
5481
5482
5483
20e95c23 5484
20e95c23 5485
d7040cdb 5486
d7040cdb 5487
7357c5b6
AM
5488
5489echo "$as_me:$LINENO: checking for fgrep" >&5
5490echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
5491if test "${ac_cv_prog_fgrep+set}" = set; then
5492 echo $ECHO_N "(cached) $ECHO_C" >&6
5493else
5494 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
5495 then ac_cv_prog_fgrep='grep -F'
5496 else ac_cv_prog_fgrep='fgrep'
5497 fi
20e95c23 5498fi
7357c5b6
AM
5499echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
5500echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
5501 FGREP=$ac_cv_prog_fgrep
5502
5503
5504test -z "$GREP" && GREP=grep
5505
d7040cdb
SE
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
20e95c23 5517
ce2cded5 5518
d7040cdb 5519
7357c5b6
AM
5520
5521
5522
5523
5524# Check whether --with-gnu-ld or --without-gnu-ld was given.
5525if test "${with_gnu_ld+set}" = set; then
5526 withval="$with_gnu_ld"
5527 test "$withval" = no || with_gnu_ld=yes
5528else
5529 with_gnu_ld=no
5530fi;
5531ac_prog=ld
5532if test "$GCC" = yes; then
5533 # Check if gcc -print-prog-name=ld gives a path.
5534 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5535echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5536 case $host in
5537 *-*-mingw*)
5538 # gcc leaves a trailing carriage return which upsets mingw
5539 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5540 *)
5541 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5542 esac
5543 case $ac_prog in
5544 # Accept absolute paths.
5545 [\\/]* | ?:[\\/]*)
5546 re_direlt='/[^/][^/]*/\.\./'
5547 # Canonicalize the pathname of ld
5548 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5549 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5550 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5551 done
5552 test -z "$LD" && LD="$ac_prog"
5553 ;;
5554 "")
5555 # If it fails, then pretend we aren't using GCC.
5556 ac_prog=ld
5557 ;;
5558 *)
5559 # If it is relative, then search for the first ld in PATH.
5560 with_gnu_ld=unknown
5561 ;;
5562 esac
5563elif test "$with_gnu_ld" = yes; then
5564 echo "$as_me:$LINENO: checking for GNU ld" >&5
5565echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5566else
5567 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5568echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
ce2cded5 5569fi
7357c5b6 5570if test "${lt_cv_path_LD+set}" = set; then
ce2cded5
L
5571 echo $ECHO_N "(cached) $ECHO_C" >&6
5572else
7357c5b6
AM
5573 if test -z "$LD"; then
5574 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5575 for ac_dir in $PATH; do
5576 IFS="$lt_save_ifs"
5577 test -z "$ac_dir" && ac_dir=.
5578 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5579 lt_cv_path_LD="$ac_dir/$ac_prog"
5580 # Check to see if the program is GNU ld. I'd rather use --version,
5581 # but apparently some variants of GNU ld only accept -v.
5582 # Break only if it was the GNU/non-GNU ld that we prefer.
5583 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5584 *GNU* | *'with BFD'*)
5585 test "$with_gnu_ld" != no && break
5586 ;;
5587 *)
5588 test "$with_gnu_ld" != yes && break
5589 ;;
5590 esac
5591 fi
5592 done
5593 IFS="$lt_save_ifs"
ce2cded5 5594else
7357c5b6 5595 lt_cv_path_LD="$LD" # Let the user override the test with a path.
ce2cded5
L
5596fi
5597fi
7357c5b6
AM
5598
5599LD="$lt_cv_path_LD"
5600if test -n "$LD"; then
5601 echo "$as_me:$LINENO: result: $LD" >&5
5602echo "${ECHO_T}$LD" >&6
ce2cded5
L
5603else
5604 echo "$as_me:$LINENO: result: no" >&5
5605echo "${ECHO_T}no" >&6
5606fi
7357c5b6
AM
5607test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5608echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5609 { (exit 1); exit 1; }; }
5610echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5611echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5612if test "${lt_cv_prog_gnu_ld+set}" = set; then
5613 echo $ECHO_N "(cached) $ECHO_C" >&6
ce2cded5 5614else
7357c5b6
AM
5615 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5616case `$LD -v 2>&1 </dev/null` in
5617*GNU* | *'with BFD'*)
5618 lt_cv_prog_gnu_ld=yes
5619 ;;
5620*)
5621 lt_cv_prog_gnu_ld=no
5622 ;;
5623esac
ce2cded5 5624fi
7357c5b6
AM
5625echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5626echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5627with_gnu_ld=$lt_cv_prog_gnu_ld
d7040cdb
SE
5628
5629
5630
5631
5632
5633
5634
5635
5636
7357c5b6
AM
5637echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5638echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
5639if test "${lt_cv_path_NM+set}" = set; then
ce2cded5
L
5640 echo $ECHO_N "(cached) $ECHO_C" >&6
5641else
7357c5b6
AM
5642 if test -n "$NM"; then
5643 # Let the user override the test.
5644 lt_cv_path_NM="$NM"
ce2cded5 5645else
7357c5b6
AM
5646 lt_nm_to_check="${ac_tool_prefix}nm"
5647 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5648 lt_nm_to_check="$lt_nm_to_check nm"
20e95c23 5649 fi
7357c5b6
AM
5650 for lt_tmp_nm in $lt_nm_to_check; do
5651 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5652 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5653 IFS="$lt_save_ifs"
5654 test -z "$ac_dir" && ac_dir=.
5655 tmp_nm="$ac_dir/$lt_tmp_nm"
5656 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5657 # Check to see if the nm accepts a BSD-compat flag.
5658 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5659 # nm: unknown option "B" ignored
5660 # Tru64's nm complains that /dev/null is an invalid object file
5661 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5662 */dev/null* | *'Invalid file or object type'*)
5663 lt_cv_path_NM="$tmp_nm -B"
5664 break
5665 ;;
5666 *)
5667 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5668 */dev/null*)
5669 lt_cv_path_NM="$tmp_nm -p"
5670 break
5671 ;;
5672 *)
5673 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5674 continue # so that we can try to find one that supports BSD flags
5675 ;;
5676 esac
5677 ;;
5678 esac
5679 fi
5680 done
5681 IFS="$lt_save_ifs"
5682 done
5683 : ${lt_cv_path_NM=no}
ce2cded5
L
5684fi
5685fi
7357c5b6
AM
5686echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5687echo "${ECHO_T}$lt_cv_path_NM" >&6
5688if test "$lt_cv_path_NM" != "no"; then
5689 NM="$lt_cv_path_NM"
ce2cded5 5690else
7357c5b6
AM
5691 # Didn't find any BSD compatible name lister, look for dumpbin.
5692 if test -n "$ac_tool_prefix"; then
5693 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5694 do
5695 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5696set dummy $ac_tool_prefix$ac_prog; ac_word=$2
ce2cded5
L
5697echo "$as_me:$LINENO: checking for $ac_word" >&5
5698echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7357c5b6 5699if test "${ac_cv_prog_DUMPBIN+set}" = set; then
20e95c23
DJ
5700 echo $ECHO_N "(cached) $ECHO_C" >&6
5701else
7357c5b6
AM
5702 if test -n "$DUMPBIN"; then
5703 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
ce2cded5
L
5704else
5705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5706for as_dir in $PATH
5707do
5708 IFS=$as_save_IFS
5709 test -z "$as_dir" && as_dir=.
5710 for ac_exec_ext in '' $ac_executable_extensions; do
5711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357c5b6 5712 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
ce2cded5
L
5713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5714 break 2
5715 fi
5716done
5717done
d7040cdb 5718
20e95c23 5719fi
ce2cded5 5720fi
7357c5b6
AM
5721DUMPBIN=$ac_cv_prog_DUMPBIN
5722if test -n "$DUMPBIN"; then
5723 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5724echo "${ECHO_T}$DUMPBIN" >&6
42ecbf5e
DJ
5725else
5726 echo "$as_me:$LINENO: result: no" >&5
5727echo "${ECHO_T}no" >&6
5728fi
5729
7357c5b6
AM
5730 test -n "$DUMPBIN" && break
5731 done
ce2cded5 5732fi
7357c5b6
AM
5733if test -z "$DUMPBIN"; then
5734 ac_ct_DUMPBIN=$DUMPBIN
5735 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5736do
5737 # Extract the first word of "$ac_prog", so it can be a program name with args.
5738set dummy $ac_prog; ac_word=$2
ce2cded5
L
5739echo "$as_me:$LINENO: checking for $ac_word" >&5
5740echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7357c5b6 5741if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
42ecbf5e
DJ
5742 echo $ECHO_N "(cached) $ECHO_C" >&6
5743else
7357c5b6
AM
5744 if test -n "$ac_ct_DUMPBIN"; then
5745 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
ce2cded5
L
5746else
5747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5748for as_dir in $PATH
5749do
5750 IFS=$as_save_IFS
5751 test -z "$as_dir" && as_dir=.
5752 for ac_exec_ext in '' $ac_executable_extensions; do
5753 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357c5b6 5754 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
ce2cded5
L
5755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5756 break 2
5757 fi
5758done
5759done
d7040cdb 5760
ce2cded5
L
5761fi
5762fi
7357c5b6
AM
5763ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5764if test -n "$ac_ct_DUMPBIN"; then
5765 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5766echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
ce2cded5
L
5767else
5768 echo "$as_me:$LINENO: result: no" >&5
5769echo "${ECHO_T}no" >&6
5770fi
d7040cdb 5771
7357c5b6 5772 test -n "$ac_ct_DUMPBIN" && break
ce2cded5 5773done
7357c5b6 5774test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
d7040cdb 5775
7357c5b6 5776 DUMPBIN=$ac_ct_DUMPBIN
ce2cded5 5777fi
7357c5b6
AM
5778
5779
5780 if test "$DUMPBIN" != ":"; then
5781 NM="$DUMPBIN"
5782 fi
ce2cded5 5783fi
7357c5b6
AM
5784test -z "$NM" && NM=nm
5785
5786
5787
5788
5789
5790
5791echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5792echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
5793if test "${lt_cv_nm_interface+set}" = set; then
5794 echo $ECHO_N "(cached) $ECHO_C" >&6
20e95c23 5795else
7357c5b6
AM
5796 lt_cv_nm_interface="BSD nm"
5797 echo "int some_variable = 0;" > conftest.$ac_ext
b214d478 5798 (eval echo "\"\$as_me:5798: $ac_compile\"" >&5)
7357c5b6
AM
5799 (eval "$ac_compile" 2>conftest.err)
5800 cat conftest.err >&5
b214d478 5801 (eval echo "\"\$as_me:5801: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7357c5b6
AM
5802 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5803 cat conftest.err >&5
b214d478 5804 (eval echo "\"\$as_me:5804: output\"" >&5)
7357c5b6
AM
5805 cat conftest.out >&5
5806 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5807 lt_cv_nm_interface="MS dumpbin"
5808 fi
5809 rm -f conftest*
20e95c23 5810fi
7357c5b6
AM
5811echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5812echo "${ECHO_T}$lt_cv_nm_interface" >&6
20e95c23 5813
7357c5b6
AM
5814echo "$as_me:$LINENO: checking whether ln -s works" >&5
5815echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5816LN_S=$as_ln_s
5817if test "$LN_S" = "ln -s"; then
5818 echo "$as_me:$LINENO: result: yes" >&5
5819echo "${ECHO_T}yes" >&6
ce2cded5 5820else
7357c5b6
AM
5821 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5822echo "${ECHO_T}no, using $LN_S" >&6
d7040cdb 5823fi
20e95c23 5824
7357c5b6
AM
5825# find the maximum length of command line arguments
5826echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5827echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5828if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5829 echo $ECHO_N "(cached) $ECHO_C" >&6
5830else
5831 i=0
5832 teststring="ABCD"
20e95c23 5833
7357c5b6
AM
5834 case $build_os in
5835 msdosdjgpp*)
5836 # On DJGPP, this test can blow up pretty badly due to problems in libc
5837 # (any single argument exceeding 2000 bytes causes a buffer overrun
5838 # during glob expansion). Even if it were fixed, the result of this
5839 # check would be larger than it should be.
5840 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5841 ;;
20e95c23 5842
7357c5b6
AM
5843 gnu*)
5844 # Under GNU Hurd, this test is not required because there is
5845 # no limit to the length of command line arguments.
5846 # Libtool will interpret -1 as no limit whatsoever
5847 lt_cv_sys_max_cmd_len=-1;
5848 ;;
20e95c23 5849
b214d478 5850 cygwin* | mingw* | cegcc*)
7357c5b6
AM
5851 # On Win9x/ME, this test blows up -- it succeeds, but takes
5852 # about 5 minutes as the teststring grows exponentially.
5853 # Worse, since 9x/ME are not pre-emptively multitasking,
5854 # you end up with a "frozen" computer, even though with patience
5855 # the test eventually succeeds (with a max line length of 256k).
5856 # Instead, let's just punt: use the minimum linelength reported by
5857 # all of the supported platforms: 8192 (on NT/2K/XP).
5858 lt_cv_sys_max_cmd_len=8192;
5859 ;;
20e95c23 5860
7357c5b6
AM
5861 amigaos*)
5862 # On AmigaOS with pdksh, this test takes hours, literally.
5863 # So we just punt and use a minimum line length of 8192.
5864 lt_cv_sys_max_cmd_len=8192;
5865 ;;
20e95c23 5866
7357c5b6
AM
5867 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5868 # This has been around since 386BSD, at least. Likely further.
5869 if test -x /sbin/sysctl; then
5870 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5871 elif test -x /usr/sbin/sysctl; then
5872 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5873 else
5874 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5875 fi
5876 # And add a safety zone
5877 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5878 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5879 ;;
d7040cdb 5880
7357c5b6
AM
5881 interix*)
5882 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5883 lt_cv_sys_max_cmd_len=196608
5884 ;;
d7040cdb 5885
7357c5b6
AM
5886 osf*)
5887 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5888 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5889 # nice to cause kernel panics so lets avoid the loop below.
5890 # First set a reasonable default.
5891 lt_cv_sys_max_cmd_len=16384
5892 #
5893 if test -x /sbin/sysconfig; then
5894 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5895 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5896 esac
5897 fi
5898 ;;
5899 sco3.2v5*)
5900 lt_cv_sys_max_cmd_len=102400
5901 ;;
5902 sysv5* | sco5v6* | sysv4.2uw2*)
5903 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5904 if test -n "$kargmax"; then
5905 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5906 else
5907 lt_cv_sys_max_cmd_len=32768
5908 fi
ce2cded5
L
5909 ;;
5910 *)
b214d478
SE
5911 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5912 if test -n "$lt_cv_sys_max_cmd_len"; then
7357c5b6
AM
5913 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5914 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5915 else
5916 # Make teststring a little bigger before we do anything with it.
5917 # a 1K string should be a reasonable start.
5918 for i in 1 2 3 4 5 6 7 8 ; do
5919 teststring=$teststring$teststring
5920 done
5921 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5922 # If test is not a shell built-in, we'll probably end up computing a
5923 # maximum length that is only half of the actual maximum length, but
5924 # we can't tell.
5925 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5926 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5927 test $i != 17 # 1/2 MB should be enough
5928 do
5929 i=`expr $i + 1`
5930 teststring=$teststring$teststring
5931 done
5932 # Only check the string length outside the loop.
5933 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5934 teststring=
5935 # Add a significant safety factor because C++ compilers can tack on
5936 # massive amounts of additional arguments before passing them to the
5937 # linker. It appears as though 1/2 is a usable value.
5938 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5939 fi
ce2cded5
L
5940 ;;
5941 esac
d7040cdb 5942
7357c5b6 5943fi
d7040cdb 5944
7357c5b6
AM
5945if test -n $lt_cv_sys_max_cmd_len ; then
5946 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5947echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5948else
5949 echo "$as_me:$LINENO: result: none" >&5
5950echo "${ECHO_T}none" >&6
5951fi
5952max_cmd_len=$lt_cv_sys_max_cmd_len
d7040cdb
SE
5953
5954
5955
5956
5957
d7040cdb 5958
7357c5b6
AM
5959: ${CP="cp -f"}
5960: ${MV="mv -f"}
5961: ${RM="rm -f"}
d7040cdb 5962
7357c5b6
AM
5963echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5964echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
5965# Try some XSI features
5966xsi_shell=no
5967( _lt_dummy="a/b/c"
5968 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
b214d478
SE
5969 = c,a/b,, \
5970 && eval 'test $(( 1 + 1 )) -eq 2 \
5971 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7357c5b6
AM
5972 && xsi_shell=yes
5973echo "$as_me:$LINENO: result: $xsi_shell" >&5
5974echo "${ECHO_T}$xsi_shell" >&6
d7040cdb 5975
d7040cdb 5976
7357c5b6
AM
5977echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5978echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
5979lt_shell_append=no
5980( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5981 >/dev/null 2>&1 \
5982 && lt_shell_append=yes
5983echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5984echo "${ECHO_T}$lt_shell_append" >&6
d7040cdb
SE
5985
5986
7357c5b6
AM
5987if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5988 lt_unset=unset
5989else
5990 lt_unset=false
5991fi
d7040cdb 5992
d7040cdb 5993
d7040cdb 5994
d7040cdb 5995
d7040cdb 5996
7357c5b6
AM
5997# test EBCDIC or ASCII
5998case `echo X|tr X '\101'` in
5999 A) # ASCII based system
6000 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6001 lt_SP2NL='tr \040 \012'
6002 lt_NL2SP='tr \015\012 \040\040'
6003 ;;
6004 *) # EBCDIC based system
6005 lt_SP2NL='tr \100 \n'
6006 lt_NL2SP='tr \r\n \100\100'
6007 ;;
6008esac
42ecbf5e 6009
d7040cdb
SE
6010
6011
6012
6013
6014
6015
d7040cdb 6016
d7040cdb 6017
7357c5b6
AM
6018echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6019echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6020if test "${lt_cv_ld_reload_flag+set}" = set; then
6021 echo $ECHO_N "(cached) $ECHO_C" >&6
6022else
6023 lt_cv_ld_reload_flag='-r'
6024fi
6025echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6026echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6027reload_flag=$lt_cv_ld_reload_flag
6028case $reload_flag in
6029"" | " "*) ;;
6030*) reload_flag=" $reload_flag" ;;
6031esac
6032reload_cmds='$LD$reload_flag -o $output$reload_objs'
6033case $host_os in
6034 darwin*)
6035 if test "$GCC" = yes; then
6036 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6037 else
6038 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6039 fi
6040 ;;
6041esac
d7040cdb 6042
d7040cdb 6043
d7040cdb 6044
d7040cdb 6045
d7040cdb 6046
d7040cdb 6047
d7040cdb 6048
d7040cdb 6049
d7040cdb 6050
b214d478
SE
6051if test -n "$ac_tool_prefix"; then
6052 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6053set dummy ${ac_tool_prefix}objdump; ac_word=$2
6054echo "$as_me:$LINENO: checking for $ac_word" >&5
6055echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6056if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6057 echo $ECHO_N "(cached) $ECHO_C" >&6
6058else
6059 if test -n "$OBJDUMP"; then
6060 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6061else
6062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6063for as_dir in $PATH
6064do
6065 IFS=$as_save_IFS
6066 test -z "$as_dir" && as_dir=.
6067 for ac_exec_ext in '' $ac_executable_extensions; do
6068 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6069 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6071 break 2
6072 fi
6073done
6074done
6075
6076fi
6077fi
6078OBJDUMP=$ac_cv_prog_OBJDUMP
6079if test -n "$OBJDUMP"; then
6080 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6081echo "${ECHO_T}$OBJDUMP" >&6
6082else
6083 echo "$as_me:$LINENO: result: no" >&5
6084echo "${ECHO_T}no" >&6
6085fi
6086
6087fi
6088if test -z "$ac_cv_prog_OBJDUMP"; then
6089 ac_ct_OBJDUMP=$OBJDUMP
6090 # Extract the first word of "objdump", so it can be a program name with args.
6091set dummy objdump; ac_word=$2
6092echo "$as_me:$LINENO: checking for $ac_word" >&5
6093echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6094if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6095 echo $ECHO_N "(cached) $ECHO_C" >&6
6096else
6097 if test -n "$ac_ct_OBJDUMP"; then
6098 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6099else
6100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6101for as_dir in $PATH
6102do
6103 IFS=$as_save_IFS
6104 test -z "$as_dir" && as_dir=.
6105 for ac_exec_ext in '' $ac_executable_extensions; do
6106 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6107 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6109 break 2
6110 fi
6111done
6112done
6113
6114 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
6115fi
6116fi
6117ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6118if test -n "$ac_ct_OBJDUMP"; then
6119 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6120echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
6121else
6122 echo "$as_me:$LINENO: result: no" >&5
6123echo "${ECHO_T}no" >&6
6124fi
6125
6126 OBJDUMP=$ac_ct_OBJDUMP
6127else
6128 OBJDUMP="$ac_cv_prog_OBJDUMP"
6129fi
6130
6131test -z "$OBJDUMP" && OBJDUMP=objdump
6132
6133
6134
6135
6136
6137
6138
6139
d7040cdb 6140
7357c5b6
AM
6141echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6142echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
6143if test "${lt_cv_deplibs_check_method+set}" = set; then
ce2cded5
L
6144 echo $ECHO_N "(cached) $ECHO_C" >&6
6145else
7357c5b6
AM
6146 lt_cv_file_magic_cmd='$MAGIC_CMD'
6147lt_cv_file_magic_test_file=
6148lt_cv_deplibs_check_method='unknown'
6149# Need to set the preceding variable on all platforms that support
6150# interlibrary dependencies.
6151# 'none' -- dependencies not supported.
6152# `unknown' -- same as none, but documents that we really don't know.
6153# 'pass_all' -- all dependencies passed with no checks.
6154# 'test_compile' -- check by making test program.
6155# 'file_magic [[regex]]' -- check by looking for files in library path
6156# which responds to the $file_magic_cmd with a given extended regex.
6157# If you have `file' or equivalent on your system and you're not sure
6158# whether `pass_all' will *always* work, you probably want this one.
d7040cdb 6159
ce2cded5 6160case $host_os in
7357c5b6
AM
6161aix[4-9]*)
6162 lt_cv_deplibs_check_method=pass_all
ce2cded5 6163 ;;
7357c5b6
AM
6164
6165beos*)
6166 lt_cv_deplibs_check_method=pass_all
ce2cded5 6167 ;;
7357c5b6
AM
6168
6169bsdi[45]*)
6170 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6171 lt_cv_file_magic_cmd='/usr/bin/file -L'
6172 lt_cv_file_magic_test_file=/shlib/libc.so
ce2cded5 6173 ;;
7357c5b6
AM
6174
6175cygwin*)
6176 # func_win32_libid is a shell function defined in ltmain.sh
6177 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6178 lt_cv_file_magic_cmd='func_win32_libid'
ce2cded5 6179 ;;
7357c5b6
AM
6180
6181mingw* | pw32*)
6182 # Base MSYS/MinGW do not provide the 'file' command needed by
6183 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6184 # unless we find 'file', for example because we are cross-compiling.
6185 if ( file / ) >/dev/null 2>&1; then
6186 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6187 lt_cv_file_magic_cmd='func_win32_libid'
6188 else
6189 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6190 lt_cv_file_magic_cmd='$OBJDUMP -f'
6191 fi
ce2cded5 6192 ;;
7357c5b6 6193
b214d478
SE
6194cegcc)
6195 # use the weaker test based on 'objdump'. See mingw*.
6196 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6197 lt_cv_file_magic_cmd='$OBJDUMP -f'
6198 ;;
6199
7357c5b6
AM
6200darwin* | rhapsody*)
6201 lt_cv_deplibs_check_method=pass_all
ce2cded5 6202 ;;
7357c5b6
AM
6203
6204freebsd* | dragonfly*)
6205 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6206 case $host_cpu in
6207 i*86 )
6208 # Not sure whether the presence of OpenBSD here was a mistake.
6209 # Let's accept both of them until this is cleared up.
6210 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6211 lt_cv_file_magic_cmd=/usr/bin/file
6212 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6213 ;;
6214 esac
6215 else
6216 lt_cv_deplibs_check_method=pass_all
6217 fi
ce2cded5 6218 ;;
7357c5b6
AM
6219
6220gnu*)
6221 lt_cv_deplibs_check_method=pass_all
ce2cded5 6222 ;;
7357c5b6
AM
6223
6224hpux10.20* | hpux11*)
6225 lt_cv_file_magic_cmd=/usr/bin/file
6226 case $host_cpu in
6227 ia64*)
6228 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6229 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6230 ;;
6231 hppa*64*)
6232 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]'
6233 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6234 ;;
6235 *)
6236 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6237 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6238 ;;
6239 esac
ce2cded5 6240 ;;
d7040cdb 6241
7357c5b6
AM
6242interix[3-9]*)
6243 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6244 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6245 ;;
d7040cdb 6246
7357c5b6
AM
6247irix5* | irix6* | nonstopux*)
6248 case $LD in
6249 *-32|*"-32 ") libmagic=32-bit;;
6250 *-n32|*"-n32 ") libmagic=N32;;
6251 *-64|*"-64 ") libmagic=64-bit;;
6252 *) libmagic=never-match;;
6253 esac
6254 lt_cv_deplibs_check_method=pass_all
6255 ;;
d7040cdb 6256
7357c5b6 6257# This must be Linux ELF.
58e24671 6258linux* | k*bsd*-gnu | kopensolaris*-gnu)
7357c5b6
AM
6259 lt_cv_deplibs_check_method=pass_all
6260 ;;
d7040cdb 6261
7357c5b6
AM
6262netbsd*)
6263 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6264 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6265 else
6266 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6267 fi
ce2cded5 6268 ;;
d7040cdb 6269
7357c5b6
AM
6270newos6*)
6271 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6272 lt_cv_file_magic_cmd=/usr/bin/file
6273 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6274 ;;
d7040cdb 6275
7357c5b6
AM
6276*nto* | *qnx*)
6277 lt_cv_deplibs_check_method=pass_all
6278 ;;
d7040cdb 6279
7357c5b6
AM
6280openbsd*)
6281 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6282 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
ce2cded5 6283 else
7357c5b6 6284 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
ce2cded5 6285 fi
7357c5b6 6286 ;;
d7040cdb 6287
7357c5b6
AM
6288osf3* | osf4* | osf5*)
6289 lt_cv_deplibs_check_method=pass_all
6290 ;;
d7040cdb 6291
7357c5b6
AM
6292rdos*)
6293 lt_cv_deplibs_check_method=pass_all
6294 ;;
d7040cdb 6295
7357c5b6
AM
6296solaris*)
6297 lt_cv_deplibs_check_method=pass_all
6298 ;;
d7040cdb 6299
7357c5b6
AM
6300sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6301 lt_cv_deplibs_check_method=pass_all
6302 ;;
d7040cdb 6303
7357c5b6
AM
6304sysv4 | sysv4.3*)
6305 case $host_vendor in
6306 motorola)
6307 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]'
6308 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6309 ;;
6310 ncr)
6311 lt_cv_deplibs_check_method=pass_all
6312 ;;
6313 sequent)
6314 lt_cv_file_magic_cmd='/bin/file'
6315 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6316 ;;
6317 sni)
6318 lt_cv_file_magic_cmd='/bin/file'
6319 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6320 lt_cv_file_magic_test_file=/lib/libc.so
6321 ;;
6322 siemens)
6323 lt_cv_deplibs_check_method=pass_all
6324 ;;
6325 pc)
6326 lt_cv_deplibs_check_method=pass_all
6327 ;;
6328 esac
6329 ;;
d7040cdb 6330
7357c5b6
AM
6331tpf*)
6332 lt_cv_deplibs_check_method=pass_all
6333 ;;
6334esac
d7040cdb 6335
7357c5b6
AM
6336fi
6337echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6338echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6339file_magic_cmd=$lt_cv_file_magic_cmd
6340deplibs_check_method=$lt_cv_deplibs_check_method
6341test -z "$deplibs_check_method" && deplibs_check_method=unknown
d7040cdb
SE
6342
6343
6344
7357c5b6
AM
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354if test -n "$ac_tool_prefix"; then
6355 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6356set dummy ${ac_tool_prefix}ar; ac_word=$2
6357echo "$as_me:$LINENO: checking for $ac_word" >&5
6358echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6359if test "${ac_cv_prog_AR+set}" = set; then
6360 echo $ECHO_N "(cached) $ECHO_C" >&6
6361else
6362 if test -n "$AR"; then
6363 ac_cv_prog_AR="$AR" # Let the user override the test.
6364else
6365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6366for as_dir in $PATH
6367do
6368 IFS=$as_save_IFS
6369 test -z "$as_dir" && as_dir=.
6370 for ac_exec_ext in '' $ac_executable_extensions; do
6371 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6372 ac_cv_prog_AR="${ac_tool_prefix}ar"
6373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6374 break 2
ce2cded5
L
6375 fi
6376done
7357c5b6 6377done
d7040cdb 6378
42ecbf5e 6379fi
ce2cded5 6380fi
7357c5b6
AM
6381AR=$ac_cv_prog_AR
6382if test -n "$AR"; then
6383 echo "$as_me:$LINENO: result: $AR" >&5
6384echo "${ECHO_T}$AR" >&6
42ecbf5e 6385else
7357c5b6
AM
6386 echo "$as_me:$LINENO: result: no" >&5
6387echo "${ECHO_T}no" >&6
42ecbf5e
DJ
6388fi
6389
7357c5b6
AM
6390fi
6391if test -z "$ac_cv_prog_AR"; then
6392 ac_ct_AR=$AR
6393 # Extract the first word of "ar", so it can be a program name with args.
6394set dummy ar; ac_word=$2
6395echo "$as_me:$LINENO: checking for $ac_word" >&5
6396echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6397if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6398 echo $ECHO_N "(cached) $ECHO_C" >&6
6399else
6400 if test -n "$ac_ct_AR"; then
6401 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6402else
6403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6404for as_dir in $PATH
6405do
6406 IFS=$as_save_IFS
6407 test -z "$as_dir" && as_dir=.
6408 for ac_exec_ext in '' $ac_executable_extensions; do
6409 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6410 ac_cv_prog_ac_ct_AR="ar"
6411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6412 break 2
6413 fi
6414done
6415done
42ecbf5e 6416
7357c5b6
AM
6417 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6418fi
6419fi
6420ac_ct_AR=$ac_cv_prog_ac_ct_AR
6421if test -n "$ac_ct_AR"; then
6422 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6423echo "${ECHO_T}$ac_ct_AR" >&6
6424else
6425 echo "$as_me:$LINENO: result: no" >&5
6426echo "${ECHO_T}no" >&6
6427fi
d7040cdb 6428
7357c5b6
AM
6429 AR=$ac_ct_AR
6430else
6431 AR="$ac_cv_prog_AR"
6432fi
d7040cdb 6433
7357c5b6
AM
6434test -z "$AR" && AR=ar
6435test -z "$AR_FLAGS" && AR_FLAGS=cru
d7040cdb
SE
6436
6437
6438
20e95c23 6439
d7040cdb 6440
d7040cdb
SE
6441
6442
6443
6444
6445
6446
7357c5b6
AM
6447if test -n "$ac_tool_prefix"; then
6448 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6449set dummy ${ac_tool_prefix}strip; ac_word=$2
6450echo "$as_me:$LINENO: checking for $ac_word" >&5
6451echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6452if test "${ac_cv_prog_STRIP+set}" = set; then
6453 echo $ECHO_N "(cached) $ECHO_C" >&6
6454else
6455 if test -n "$STRIP"; then
6456 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6457else
6458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6459for as_dir in $PATH
6460do
6461 IFS=$as_save_IFS
6462 test -z "$as_dir" && as_dir=.
6463 for ac_exec_ext in '' $ac_executable_extensions; do
6464 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6465 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6467 break 2
ce2cded5 6468 fi
7357c5b6
AM
6469done
6470done
d7040cdb 6471
7357c5b6
AM
6472fi
6473fi
6474STRIP=$ac_cv_prog_STRIP
6475if test -n "$STRIP"; then
6476 echo "$as_me:$LINENO: result: $STRIP" >&5
6477echo "${ECHO_T}$STRIP" >&6
6478else
6479 echo "$as_me:$LINENO: result: no" >&5
6480echo "${ECHO_T}no" >&6
6481fi
6482
6483fi
6484if test -z "$ac_cv_prog_STRIP"; then
6485 ac_ct_STRIP=$STRIP
6486 # Extract the first word of "strip", so it can be a program name with args.
6487set dummy strip; ac_word=$2
6488echo "$as_me:$LINENO: checking for $ac_word" >&5
6489echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6490if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6491 echo $ECHO_N "(cached) $ECHO_C" >&6
6492else
6493 if test -n "$ac_ct_STRIP"; then
6494 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6495else
6496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6497for as_dir in $PATH
6498do
6499 IFS=$as_save_IFS
6500 test -z "$as_dir" && as_dir=.
6501 for ac_exec_ext in '' $ac_executable_extensions; do
6502 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6503 ac_cv_prog_ac_ct_STRIP="strip"
6504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6505 break 2
ce2cded5 6506 fi
7357c5b6
AM
6507done
6508done
d7040cdb 6509
7357c5b6
AM
6510 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6511fi
6512fi
6513ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6514if test -n "$ac_ct_STRIP"; then
6515 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6516echo "${ECHO_T}$ac_ct_STRIP" >&6
20e95c23 6517else
7357c5b6
AM
6518 echo "$as_me:$LINENO: result: no" >&5
6519echo "${ECHO_T}no" >&6
6520fi
d7040cdb 6521
7357c5b6
AM
6522 STRIP=$ac_ct_STRIP
6523else
6524 STRIP="$ac_cv_prog_STRIP"
6525fi
d7040cdb 6526
7357c5b6 6527test -z "$STRIP" && STRIP=:
d7040cdb 6528
d7040cdb
SE
6529
6530
6531
d7040cdb 6532
7357c5b6
AM
6533
6534if test -n "$ac_tool_prefix"; then
6535 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6536set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6537echo "$as_me:$LINENO: checking for $ac_word" >&5
6538echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6539if test "${ac_cv_prog_RANLIB+set}" = set; then
ce2cded5
L
6540 echo $ECHO_N "(cached) $ECHO_C" >&6
6541else
7357c5b6
AM
6542 if test -n "$RANLIB"; then
6543 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6544else
6545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6546for as_dir in $PATH
ce2cded5 6547do
7357c5b6
AM
6548 IFS=$as_save_IFS
6549 test -z "$as_dir" && as_dir=.
6550 for ac_exec_ext in '' $ac_executable_extensions; do
6551 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6552 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6554 break 2
ce2cded5 6555 fi
7357c5b6
AM
6556done
6557done
6558
ce2cded5 6559fi
7357c5b6
AM
6560fi
6561RANLIB=$ac_cv_prog_RANLIB
6562if test -n "$RANLIB"; then
6563 echo "$as_me:$LINENO: result: $RANLIB" >&5
6564echo "${ECHO_T}$RANLIB" >&6
ce2cded5 6565else
7357c5b6
AM
6566 echo "$as_me:$LINENO: result: no" >&5
6567echo "${ECHO_T}no" >&6
ce2cded5 6568fi
d7040cdb 6569
7357c5b6
AM
6570fi
6571if test -z "$ac_cv_prog_RANLIB"; then
6572 ac_ct_RANLIB=$RANLIB
6573 # Extract the first word of "ranlib", so it can be a program name with args.
6574set dummy ranlib; ac_word=$2
6575echo "$as_me:$LINENO: checking for $ac_word" >&5
6576echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6577if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6578 echo $ECHO_N "(cached) $ECHO_C" >&6
ce2cded5 6579else
7357c5b6
AM
6580 if test -n "$ac_ct_RANLIB"; then
6581 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6582else
6583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6584for as_dir in $PATH
6585do
6586 IFS=$as_save_IFS
6587 test -z "$as_dir" && as_dir=.
6588 for ac_exec_ext in '' $ac_executable_extensions; do
6589 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6590 ac_cv_prog_ac_ct_RANLIB="ranlib"
6591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6592 break 2
6593 fi
6594done
6595done
6596
6597 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
ce2cded5 6598fi
7357c5b6
AM
6599fi
6600ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6601if test -n "$ac_ct_RANLIB"; then
6602 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6603echo "${ECHO_T}$ac_ct_RANLIB" >&6
ce2cded5 6604else
7357c5b6
AM
6605 echo "$as_me:$LINENO: result: no" >&5
6606echo "${ECHO_T}no" >&6
ce2cded5 6607fi
d7040cdb 6608
7357c5b6
AM
6609 RANLIB=$ac_ct_RANLIB
6610else
6611 RANLIB="$ac_cv_prog_RANLIB"
ce2cded5 6612fi
d7040cdb 6613
7357c5b6 6614test -z "$RANLIB" && RANLIB=:
d7040cdb 6615
7357c5b6
AM
6616
6617
6618
6619
6620
6621# Determine commands to create old-style static archives.
b214d478 6622old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7357c5b6
AM
6623old_postinstall_cmds='chmod 644 $oldlib'
6624old_postuninstall_cmds=
6625
6626if test -n "$RANLIB"; then
6627 case $host_os in
6628 openbsd*)
6629 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6630 ;;
6631 *)
6632 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6633 ;;
6634 esac
6635 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
ce2cded5 6636fi
7357c5b6
AM
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671# If no C compiler was specified, use CC.
6672LTCC=${LTCC-"$CC"}
6673
6674# If no C compiler flags were specified, use CFLAGS.
6675LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6676
6677# Allow CC to be a program name with arguments.
6678compiler=$CC
6679
6680
6681# Check for command to grab the raw symbol name followed by C symbol from nm.
6682echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6683echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6684if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6685 echo $ECHO_N "(cached) $ECHO_C" >&6
ce2cded5 6686else
d7040cdb 6687
7357c5b6
AM
6688# These are sane defaults that work on at least a few old systems.
6689# [They come from Ultrix. What could be older than Ultrix?!! ;)]
d7040cdb 6690
7357c5b6
AM
6691# Character class describing NM global symbol codes.
6692symcode='[BCDEGRST]'
6693
6694# Regexp to match symbols that can be accessed directly from C.
6695sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6696
6697# Define system-specific variables.
6698case $host_os in
6699aix*)
6700 symcode='[BCDT]'
6701 ;;
b214d478 6702cygwin* | mingw* | pw32* | cegcc*)
7357c5b6
AM
6703 symcode='[ABCDGISTW]'
6704 ;;
6705hpux*)
6706 if test "$host_cpu" = ia64; then
6707 symcode='[ABCDEGRST]'
ce2cded5 6708 fi
7357c5b6
AM
6709 ;;
6710irix* | nonstopux*)
6711 symcode='[BCDEGRST]'
6712 ;;
6713osf*)
6714 symcode='[BCDEGQRST]'
6715 ;;
6716solaris*)
6717 symcode='[BDRT]'
6718 ;;
6719sco3.2v5*)
6720 symcode='[DT]'
6721 ;;
6722sysv4.2uw2*)
6723 symcode='[DT]'
6724 ;;
6725sysv5* | sco5v6* | unixware* | OpenUNIX*)
6726 symcode='[ABDT]'
6727 ;;
6728sysv4)
6729 symcode='[DFNSTU]'
6730 ;;
6731esac
d7040cdb 6732
7357c5b6
AM
6733# If we're using GNU nm, then use its standard symbol codes.
6734case `$NM -V 2>&1` in
6735*GNU* | *'with BFD'*)
6736 symcode='[ABCDGIRSTW]' ;;
6737esac
d7040cdb 6738
7357c5b6
AM
6739# Transform an extracted symbol line into a proper C declaration.
6740# Some systems (esp. on ia64) link data and code symbols differently,
6741# so use this general approach.
6742lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6743
6744# Transform an extracted symbol line into symbol name and symbol address
6745lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
b214d478 6746lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
7357c5b6
AM
6747
6748# Handle CRLF in mingw tool chain
6749opt_cr=
6750case $build_os in
6751mingw*)
6752 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6753 ;;
6754esac
d7040cdb 6755
7357c5b6
AM
6756# Try without a prefix underscore, then with it.
6757for ac_symprfx in "" "_"; do
d7040cdb 6758
7357c5b6
AM
6759 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6760 symxfrm="\\1 $ac_symprfx\\2 \\2"
d7040cdb 6761
7357c5b6
AM
6762 # Write the raw and C identifiers.
6763 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6764 # Fake it for dumpbin and say T for any non-static function
6765 # and D for any global variable.
6766 # Also find C++ and __fastcall symbols from MSVC++,
6767 # which start with @ or ?.
6768 lt_cv_sys_global_symbol_pipe="$AWK '"\
6769" {last_section=section; section=\$ 3};"\
6770" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6771" \$ 0!~/External *\|/{next};"\
6772" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6773" {if(hide[section]) next};"\
6774" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6775" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6776" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6777" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6778" ' prfx=^$ac_symprfx"
6779 else
6780 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6781 fi
d7040cdb 6782
7357c5b6
AM
6783 # Check to see that the pipe works correctly.
6784 pipe_works=no
d7040cdb 6785
7357c5b6
AM
6786 rm -f conftest*
6787 cat > conftest.$ac_ext <<_LT_EOF
6788#ifdef __cplusplus
6789extern "C" {
6790#endif
6791char nm_test_var;
6792void nm_test_func(void);
6793void nm_test_func(void){}
6794#ifdef __cplusplus
20e95c23 6795}
7357c5b6
AM
6796#endif
6797int main(){nm_test_var='a';nm_test_func();return(0);}
6798_LT_EOF
6799
6800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6801 (eval $ac_compile) 2>&5
20e95c23
DJ
6802 ac_status=$?
6803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357c5b6
AM
6804 (exit $ac_status); }; then
6805 # Now try to grab the symbols.
6806 nlist=conftest.nm
6807 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6808 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
20e95c23
DJ
6809 ac_status=$?
6810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357c5b6
AM
6811 (exit $ac_status); } && test -s "$nlist"; then
6812 # Try sorting and uniquifying the output.
6813 if sort "$nlist" | uniq > "$nlist"T; then
6814 mv -f "$nlist"T "$nlist"
6815 else
6816 rm -f "$nlist"T
6817 fi
d7040cdb 6818
7357c5b6
AM
6819 # Make sure that we snagged all the symbols we need.
6820 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6821 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6822 cat <<_LT_EOF > conftest.$ac_ext
6823#ifdef __cplusplus
6824extern "C" {
6825#endif
ce2cded5 6826
7357c5b6
AM
6827_LT_EOF
6828 # Now generate the symbol file.
6829 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
ce2cded5 6830
7357c5b6 6831 cat <<_LT_EOF >> conftest.$ac_ext
42ecbf5e 6832
7357c5b6
AM
6833/* The mapping between symbol names and symbols. */
6834const struct {
6835 const char *name;
6836 void *address;
6837}
6838lt__PROGRAM__LTX_preloaded_symbols[] =
6839{
6840 { "@PROGRAM@", (void *) 0 },
6841_LT_EOF
6842 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6843 cat <<\_LT_EOF >> conftest.$ac_ext
6844 {0, (void *) 0}
6845};
d7040cdb 6846
7357c5b6
AM
6847/* This works around a problem in FreeBSD linker */
6848#ifdef FREEBSD_WORKAROUND
6849static const void *lt_preloaded_setup() {
6850 return lt__PROGRAM__LTX_preloaded_symbols;
6851}
ce2cded5 6852#endif
42ecbf5e 6853
7357c5b6 6854#ifdef __cplusplus
ce2cded5 6855}
7357c5b6
AM
6856#endif
6857_LT_EOF
6858 # Now try linking the two files.
6859 mv conftest.$ac_objext conftstm.$ac_objext
6860 lt_save_LIBS="$LIBS"
6861 lt_save_CFLAGS="$CFLAGS"
6862 LIBS="conftstm.$ac_objext"
6863 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ce2cded5
L
6865 (eval $ac_link) 2>&5
6866 ac_status=$?
6867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357c5b6
AM
6868 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6869 pipe_works=yes
6870 fi
6871 LIBS="$lt_save_LIBS"
6872 CFLAGS="$lt_save_CFLAGS"
6873 else
6874 echo "cannot find nm_test_func in $nlist" >&5
6875 fi
6876 else
6877 echo "cannot find nm_test_var in $nlist" >&5
6878 fi
6879 else
6880 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6881 fi
6882 else
6883 echo "$progname: failed program was:" >&5
6884 cat conftest.$ac_ext >&5
6885 fi
b214d478 6886 rm -rf conftest* conftst*
7357c5b6
AM
6887
6888 # Do not use the global_symbol_pipe unless it works.
6889 if test "$pipe_works" = yes; then
6890 break
6891 else
6892 lt_cv_sys_global_symbol_pipe=
6893 fi
6894done
42ecbf5e 6895
ce2cded5 6896fi
7357c5b6
AM
6897
6898if test -z "$lt_cv_sys_global_symbol_pipe"; then
6899 lt_cv_sys_global_symbol_to_cdecl=
ce2cded5 6900fi
7357c5b6
AM
6901if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6902 echo "$as_me:$LINENO: result: failed" >&5
6903echo "${ECHO_T}failed" >&6
6904else
6905 echo "$as_me:$LINENO: result: ok" >&5
6906echo "${ECHO_T}ok" >&6
ce2cded5 6907fi
e5a52504 6908
d7040cdb 6909
e5a52504 6910
d7040cdb 6911
d7040cdb 6912
d7040cdb 6913
d7040cdb 6914
d7040cdb 6915
d7040cdb 6916
d7040cdb 6917
d7040cdb 6918
d7040cdb 6919
7357c5b6
AM
6920
6921
6922
b214d478
SE
6923
6924
6925
6926
6927
7357c5b6
AM
6928
6929
6930# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6931if test "${enable_libtool_lock+set}" = set; then
6932 enableval="$enable_libtool_lock"
6933
6934fi;
6935test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6936
6937# Some flags need to be propagated to the compiler or linker for good
6938# libtool support.
6939case $host in
6940ia64-*-hpux*)
6941 # Find out which ABI we are using.
6942 echo 'int i;' > conftest.$ac_ext
6943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6944 (eval $ac_compile) 2>&5
6945 ac_status=$?
6946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947 (exit $ac_status); }; then
6948 case `/usr/bin/file conftest.$ac_objext` in
6949 *ELF-32*)
6950 HPUX_IA64_MODE="32"
6951 ;;
6952 *ELF-64*)
6953 HPUX_IA64_MODE="64"
6954 ;;
6955 esac
6956 fi
6957 rm -rf conftest*
6958 ;;
6959*-*-irix6*)
6960 # Find out which ABI we are using.
b214d478 6961 echo '#line 6961 "configure"' > conftest.$ac_ext
7357c5b6
AM
6962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6963 (eval $ac_compile) 2>&5
6964 ac_status=$?
6965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966 (exit $ac_status); }; then
6967 if test "$lt_cv_prog_gnu_ld" = yes; then
6968 case `/usr/bin/file conftest.$ac_objext` in
6969 *32-bit*)
6970 LD="${LD-ld} -melf32bsmip"
6971 ;;
6972 *N32*)
6973 LD="${LD-ld} -melf32bmipn32"
6974 ;;
6975 *64-bit*)
6976 LD="${LD-ld} -melf64bmip"
6977 ;;
6978 esac
6979 else
6980 case `/usr/bin/file conftest.$ac_objext` in
6981 *32-bit*)
6982 LD="${LD-ld} -32"
6983 ;;
6984 *N32*)
6985 LD="${LD-ld} -n32"
6986 ;;
6987 *64-bit*)
6988 LD="${LD-ld} -64"
6989 ;;
6990 esac
6991 fi
6992 fi
6993 rm -rf conftest*
6994 ;;
6995
6996x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6997s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6998 # Find out which ABI we are using.
6999 echo 'int i;' > conftest.$ac_ext
7000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7001 (eval $ac_compile) 2>&5
7002 ac_status=$?
7003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7004 (exit $ac_status); }; then
7005 case `/usr/bin/file conftest.o` in
7006 *32-bit*)
7007 case $host in
7008 x86_64-*kfreebsd*-gnu)
7009 LD="${LD-ld} -m elf_i386_fbsd"
7010 ;;
7011 x86_64-*linux*)
7012 LD="${LD-ld} -m elf_i386"
7013 ;;
7014 ppc64-*linux*|powerpc64-*linux*)
7015 LD="${LD-ld} -m elf32ppclinux"
7016 ;;
7017 s390x-*linux*)
7018 LD="${LD-ld} -m elf_s390"
7019 ;;
7020 sparc64-*linux*)
7021 LD="${LD-ld} -m elf32_sparc"
7022 ;;
7023 esac
7024 ;;
7025 *64-bit*)
7026 case $host in
7027 x86_64-*kfreebsd*-gnu)
7028 LD="${LD-ld} -m elf_x86_64_fbsd"
7029 ;;
7030 x86_64-*linux*)
7031 LD="${LD-ld} -m elf_x86_64"
7032 ;;
7033 ppc*-*linux*|powerpc*-*linux*)
7034 LD="${LD-ld} -m elf64ppc"
7035 ;;
7036 s390*-*linux*|s390*-*tpf*)
7037 LD="${LD-ld} -m elf64_s390"
7038 ;;
7039 sparc*-*linux*)
7040 LD="${LD-ld} -m elf64_sparc"
7041 ;;
7042 esac
7043 ;;
7044 esac
7045 fi
7046 rm -rf conftest*
7047 ;;
7048
7049*-*-sco3.2v5*)
7050 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7051 SAVE_CFLAGS="$CFLAGS"
7052 CFLAGS="$CFLAGS -belf"
7053 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7054echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
7055if test "${lt_cv_cc_needs_belf+set}" = set; then
ce2cded5
L
7056 echo $ECHO_N "(cached) $ECHO_C" >&6
7057else
7357c5b6
AM
7058 ac_ext=c
7059ac_cpp='$CPP $CPPFLAGS'
7060ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7061ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7062ac_compiler_gnu=$ac_cv_c_compiler_gnu
7063
7064 cat >conftest.$ac_ext <<_ACEOF
ce2cded5
L
7065/* confdefs.h. */
7066_ACEOF
7067cat confdefs.h >>conftest.$ac_ext
7068cat >>conftest.$ac_ext <<_ACEOF
7069/* end confdefs.h. */
d7040cdb 7070
7357c5b6
AM
7071int
7072main ()
7073{
7074
7075 ;
7076 return 0;
7077}
ce2cded5 7078_ACEOF
7357c5b6
AM
7079rm -f conftest.$ac_objext conftest$ac_exeext
7080if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7081 (eval $ac_link) 2>conftest.er1
ce2cded5
L
7082 ac_status=$?
7083 grep -v '^ *+' conftest.er1 >conftest.err
7084 rm -f conftest.er1
7085 cat conftest.err >&5
7086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7087 (exit $ac_status); } &&
7357c5b6
AM
7088 { ac_try='test -z "$ac_c_werror_flag"
7089 || test ! -s conftest.err'
ce2cded5
L
7090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7091 (eval $ac_try) 2>&5
7092 ac_status=$?
7093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7094 (exit $ac_status); }; } &&
7357c5b6 7095 { ac_try='test -s conftest$ac_exeext'
ce2cded5
L
7096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7097 (eval $ac_try) 2>&5
7098 ac_status=$?
7099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7100 (exit $ac_status); }; }; then
7357c5b6 7101 lt_cv_cc_needs_belf=yes
ce2cded5
L
7102else
7103 echo "$as_me: failed program was:" >&5
7104sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 7105
7357c5b6 7106lt_cv_cc_needs_belf=no
ce2cded5 7107fi
7357c5b6
AM
7108rm -f conftest.err conftest.$ac_objext \
7109 conftest$ac_exeext conftest.$ac_ext
7110 ac_ext=c
7111ac_cpp='$CPP $CPPFLAGS'
7112ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7113ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7114ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 7115
b214d478
SE
7116fi
7117echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7118echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
7119 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7120 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7121 CFLAGS="$SAVE_CFLAGS"
7122 fi
7123 ;;
7124sparc*-*solaris*)
7125 # Find out which ABI we are using.
7126 echo 'int i;' > conftest.$ac_ext
7127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7128 (eval $ac_compile) 2>&5
7129 ac_status=$?
7130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7131 (exit $ac_status); }; then
7132 case `/usr/bin/file conftest.o` in
7133 *64-bit*)
7134 case $lt_cv_prog_gnu_ld in
7135 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7136 *)
7137 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7138 LD="${LD-ld} -64"
7139 fi
7140 ;;
7141 esac
7142 ;;
7143 esac
7144 fi
7145 rm -rf conftest*
7146 ;;
7147esac
7148
7149need_locks="$enable_libtool_lock"
7150
7151
7152 case $host_os in
7153 rhapsody* | darwin*)
7154 if test -n "$ac_tool_prefix"; then
7155 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7156set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7157echo "$as_me:$LINENO: checking for $ac_word" >&5
7158echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7159if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7160 echo $ECHO_N "(cached) $ECHO_C" >&6
7161else
7162 if test -n "$DSYMUTIL"; then
7163 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7164else
7165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7166for as_dir in $PATH
7167do
7168 IFS=$as_save_IFS
7169 test -z "$as_dir" && as_dir=.
7170 for ac_exec_ext in '' $ac_executable_extensions; do
7171 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7172 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7174 break 2
7175 fi
7176done
7177done
7178
7179fi
7180fi
7181DSYMUTIL=$ac_cv_prog_DSYMUTIL
7182if test -n "$DSYMUTIL"; then
7183 echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7184echo "${ECHO_T}$DSYMUTIL" >&6
7185else
7186 echo "$as_me:$LINENO: result: no" >&5
7187echo "${ECHO_T}no" >&6
7188fi
7189
7190fi
7191if test -z "$ac_cv_prog_DSYMUTIL"; then
7192 ac_ct_DSYMUTIL=$DSYMUTIL
7193 # Extract the first word of "dsymutil", so it can be a program name with args.
7194set dummy dsymutil; ac_word=$2
7195echo "$as_me:$LINENO: checking for $ac_word" >&5
7196echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7197if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7198 echo $ECHO_N "(cached) $ECHO_C" >&6
7199else
7200 if test -n "$ac_ct_DSYMUTIL"; then
7201 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7202else
7203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7204for as_dir in $PATH
7205do
7206 IFS=$as_save_IFS
7207 test -z "$as_dir" && as_dir=.
7208 for ac_exec_ext in '' $ac_executable_extensions; do
7209 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7210 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7212 break 2
7213 fi
7214done
7215done
7216
7217 test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
7218fi
7219fi
7220ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7221if test -n "$ac_ct_DSYMUTIL"; then
7222 echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7223echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
7224else
7225 echo "$as_me:$LINENO: result: no" >&5
7226echo "${ECHO_T}no" >&6
7227fi
7228
7229 DSYMUTIL=$ac_ct_DSYMUTIL
7230else
7231 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7232fi
7233
7234 if test -n "$ac_tool_prefix"; then
7235 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7236set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7237echo "$as_me:$LINENO: checking for $ac_word" >&5
7238echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7239if test "${ac_cv_prog_NMEDIT+set}" = set; then
7240 echo $ECHO_N "(cached) $ECHO_C" >&6
7241else
7242 if test -n "$NMEDIT"; then
7243 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7244else
7245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7246for as_dir in $PATH
7247do
7248 IFS=$as_save_IFS
7249 test -z "$as_dir" && as_dir=.
7250 for ac_exec_ext in '' $ac_executable_extensions; do
7251 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7252 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7254 break 2
7255 fi
7256done
7257done
7258
7259fi
7260fi
7261NMEDIT=$ac_cv_prog_NMEDIT
7262if test -n "$NMEDIT"; then
7263 echo "$as_me:$LINENO: result: $NMEDIT" >&5
7264echo "${ECHO_T}$NMEDIT" >&6
7265else
7266 echo "$as_me:$LINENO: result: no" >&5
7267echo "${ECHO_T}no" >&6
7268fi
7269
7270fi
7271if test -z "$ac_cv_prog_NMEDIT"; then
7272 ac_ct_NMEDIT=$NMEDIT
7273 # Extract the first word of "nmedit", so it can be a program name with args.
7274set dummy nmedit; ac_word=$2
7275echo "$as_me:$LINENO: checking for $ac_word" >&5
7276echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7277if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7278 echo $ECHO_N "(cached) $ECHO_C" >&6
7279else
7280 if test -n "$ac_ct_NMEDIT"; then
7281 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7282else
7283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7284for as_dir in $PATH
7285do
7286 IFS=$as_save_IFS
7287 test -z "$as_dir" && as_dir=.
7288 for ac_exec_ext in '' $ac_executable_extensions; do
7289 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7290 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7292 break 2
7293 fi
7294done
7295done
7296
7297 test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
7298fi
7299fi
7300ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7301if test -n "$ac_ct_NMEDIT"; then
7302 echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7303echo "${ECHO_T}$ac_ct_NMEDIT" >&6
7304else
7305 echo "$as_me:$LINENO: result: no" >&5
7306echo "${ECHO_T}no" >&6
7307fi
7308
7309 NMEDIT=$ac_ct_NMEDIT
7310else
7311 NMEDIT="$ac_cv_prog_NMEDIT"
7312fi
7313
7314 if test -n "$ac_tool_prefix"; then
7315 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7316set dummy ${ac_tool_prefix}lipo; ac_word=$2
7317echo "$as_me:$LINENO: checking for $ac_word" >&5
7318echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7319if test "${ac_cv_prog_LIPO+set}" = set; then
7320 echo $ECHO_N "(cached) $ECHO_C" >&6
7321else
7322 if test -n "$LIPO"; then
7323 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7324else
7325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7326for as_dir in $PATH
7327do
7328 IFS=$as_save_IFS
7329 test -z "$as_dir" && as_dir=.
7330 for ac_exec_ext in '' $ac_executable_extensions; do
7331 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7332 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7334 break 2
7335 fi
7336done
7337done
7338
7339fi
7340fi
7341LIPO=$ac_cv_prog_LIPO
7342if test -n "$LIPO"; then
7343 echo "$as_me:$LINENO: result: $LIPO" >&5
7344echo "${ECHO_T}$LIPO" >&6
7345else
7346 echo "$as_me:$LINENO: result: no" >&5
7347echo "${ECHO_T}no" >&6
7348fi
7349
7350fi
7351if test -z "$ac_cv_prog_LIPO"; then
7352 ac_ct_LIPO=$LIPO
7353 # Extract the first word of "lipo", so it can be a program name with args.
7354set dummy lipo; ac_word=$2
7355echo "$as_me:$LINENO: checking for $ac_word" >&5
7356echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7357if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7358 echo $ECHO_N "(cached) $ECHO_C" >&6
7359else
7360 if test -n "$ac_ct_LIPO"; then
7361 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7362else
7363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7364for as_dir in $PATH
7365do
7366 IFS=$as_save_IFS
7367 test -z "$as_dir" && as_dir=.
7368 for ac_exec_ext in '' $ac_executable_extensions; do
7369 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7370 ac_cv_prog_ac_ct_LIPO="lipo"
7371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7372 break 2
7373 fi
7374done
7375done
7376
7377 test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
7378fi
7379fi
7380ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7381if test -n "$ac_ct_LIPO"; then
7382 echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7383echo "${ECHO_T}$ac_ct_LIPO" >&6
7384else
7385 echo "$as_me:$LINENO: result: no" >&5
7386echo "${ECHO_T}no" >&6
7387fi
7388
7389 LIPO=$ac_ct_LIPO
7390else
7391 LIPO="$ac_cv_prog_LIPO"
7392fi
7393
7394 if test -n "$ac_tool_prefix"; then
7395 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7396set dummy ${ac_tool_prefix}otool; ac_word=$2
7397echo "$as_me:$LINENO: checking for $ac_word" >&5
7398echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7399if test "${ac_cv_prog_OTOOL+set}" = set; then
7400 echo $ECHO_N "(cached) $ECHO_C" >&6
7401else
7402 if test -n "$OTOOL"; then
7403 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7404else
7405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7406for as_dir in $PATH
7407do
7408 IFS=$as_save_IFS
7409 test -z "$as_dir" && as_dir=.
7410 for ac_exec_ext in '' $ac_executable_extensions; do
7411 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7412 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7414 break 2
7415 fi
7416done
7417done
7418
7419fi
7420fi
7421OTOOL=$ac_cv_prog_OTOOL
7422if test -n "$OTOOL"; then
7423 echo "$as_me:$LINENO: result: $OTOOL" >&5
7424echo "${ECHO_T}$OTOOL" >&6
7425else
7426 echo "$as_me:$LINENO: result: no" >&5
7427echo "${ECHO_T}no" >&6
7428fi
7429
7430fi
7431if test -z "$ac_cv_prog_OTOOL"; then
7432 ac_ct_OTOOL=$OTOOL
7433 # Extract the first word of "otool", so it can be a program name with args.
7434set dummy otool; ac_word=$2
7435echo "$as_me:$LINENO: checking for $ac_word" >&5
7436echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7437if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7438 echo $ECHO_N "(cached) $ECHO_C" >&6
7439else
7440 if test -n "$ac_ct_OTOOL"; then
7441 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7442else
7443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7444for as_dir in $PATH
7445do
7446 IFS=$as_save_IFS
7447 test -z "$as_dir" && as_dir=.
7448 for ac_exec_ext in '' $ac_executable_extensions; do
7449 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7450 ac_cv_prog_ac_ct_OTOOL="otool"
7451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7452 break 2
7453 fi
7454done
7455done
7456
7457 test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
7458fi
7459fi
7460ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7461if test -n "$ac_ct_OTOOL"; then
7462 echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7463echo "${ECHO_T}$ac_ct_OTOOL" >&6
7464else
7465 echo "$as_me:$LINENO: result: no" >&5
7466echo "${ECHO_T}no" >&6
7467fi
7468
7469 OTOOL=$ac_ct_OTOOL
7470else
7471 OTOOL="$ac_cv_prog_OTOOL"
7472fi
7473
7474 if test -n "$ac_tool_prefix"; then
7475 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7476set dummy ${ac_tool_prefix}otool64; ac_word=$2
7477echo "$as_me:$LINENO: checking for $ac_word" >&5
7478echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7479if test "${ac_cv_prog_OTOOL64+set}" = set; then
7480 echo $ECHO_N "(cached) $ECHO_C" >&6
7481else
7482 if test -n "$OTOOL64"; then
7483 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7484else
7485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7486for as_dir in $PATH
7487do
7488 IFS=$as_save_IFS
7489 test -z "$as_dir" && as_dir=.
7490 for ac_exec_ext in '' $ac_executable_extensions; do
7491 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7492 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7494 break 2
7495 fi
7496done
7497done
7498
7499fi
7500fi
7501OTOOL64=$ac_cv_prog_OTOOL64
7502if test -n "$OTOOL64"; then
7503 echo "$as_me:$LINENO: result: $OTOOL64" >&5
7504echo "${ECHO_T}$OTOOL64" >&6
7505else
7506 echo "$as_me:$LINENO: result: no" >&5
7507echo "${ECHO_T}no" >&6
7508fi
7509
7510fi
7511if test -z "$ac_cv_prog_OTOOL64"; then
7512 ac_ct_OTOOL64=$OTOOL64
7513 # Extract the first word of "otool64", so it can be a program name with args.
7514set dummy otool64; ac_word=$2
7515echo "$as_me:$LINENO: checking for $ac_word" >&5
7516echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7517if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7518 echo $ECHO_N "(cached) $ECHO_C" >&6
7519else
7520 if test -n "$ac_ct_OTOOL64"; then
7521 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7522else
7523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7524for as_dir in $PATH
7525do
7526 IFS=$as_save_IFS
7527 test -z "$as_dir" && as_dir=.
7528 for ac_exec_ext in '' $ac_executable_extensions; do
7529 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7530 ac_cv_prog_ac_ct_OTOOL64="otool64"
7531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7532 break 2
7533 fi
7534done
7535done
7536
7537 test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
7538fi
7539fi
7540ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7541if test -n "$ac_ct_OTOOL64"; then
7542 echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7543echo "${ECHO_T}$ac_ct_OTOOL64" >&6
7544else
7545 echo "$as_me:$LINENO: result: no" >&5
7546echo "${ECHO_T}no" >&6
7547fi
7548
7549 OTOOL64=$ac_ct_OTOOL64
7550else
7551 OTOOL64="$ac_cv_prog_OTOOL64"
7552fi
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580 echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7581echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
7582if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7583 echo $ECHO_N "(cached) $ECHO_C" >&6
7584else
7585 lt_cv_apple_cc_single_mod=no
7586 if test -z "${LT_MULTI_MODULE}"; then
7587 # By default we will add the -single_module flag. You can override
7588 # by either setting the environment variable LT_MULTI_MODULE
7589 # non-empty at configure time, or by adding -multi_module to the
7590 # link flags.
7591 rm -rf libconftest.dylib*
7592 echo "int foo(void){return 1;}" > conftest.c
7593 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7594-dynamiclib -Wl,-single_module conftest.c" >&5
7595 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7596 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7597 _lt_result=$?
7598 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7599 lt_cv_apple_cc_single_mod=yes
7600 else
7601 cat conftest.err >&5
7602 fi
7603 rm -rf libconftest.dylib*
7604 rm -f conftest.*
7605 fi
7606fi
7607echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7608echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
7609 echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7610echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
7611if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7612 echo $ECHO_N "(cached) $ECHO_C" >&6
7613else
7614 lt_cv_ld_exported_symbols_list=no
7615 save_LDFLAGS=$LDFLAGS
7616 echo "_main" > conftest.sym
7617 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7618 cat >conftest.$ac_ext <<_ACEOF
7619/* confdefs.h. */
7620_ACEOF
7621cat confdefs.h >>conftest.$ac_ext
7622cat >>conftest.$ac_ext <<_ACEOF
7623/* end confdefs.h. */
7624
7625int
7626main ()
7627{
7628
7629 ;
7630 return 0;
7631}
7632_ACEOF
7633rm -f conftest.$ac_objext conftest$ac_exeext
7634if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7635 (eval $ac_link) 2>conftest.er1
7636 ac_status=$?
7637 grep -v '^ *+' conftest.er1 >conftest.err
7638 rm -f conftest.er1
7639 cat conftest.err >&5
7640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641 (exit $ac_status); } &&
7642 { ac_try='test -z "$ac_c_werror_flag"
7643 || test ! -s conftest.err'
7644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7645 (eval $ac_try) 2>&5
7646 ac_status=$?
7647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7648 (exit $ac_status); }; } &&
7649 { ac_try='test -s conftest$ac_exeext'
7650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7651 (eval $ac_try) 2>&5
7652 ac_status=$?
7653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7654 (exit $ac_status); }; }; then
7655 lt_cv_ld_exported_symbols_list=yes
7656else
7657 echo "$as_me: failed program was:" >&5
7658sed 's/^/| /' conftest.$ac_ext >&5
7659
7660lt_cv_ld_exported_symbols_list=no
7661fi
7662rm -f conftest.err conftest.$ac_objext \
7663 conftest$ac_exeext conftest.$ac_ext
7664 LDFLAGS="$save_LDFLAGS"
7665
7666fi
7667echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7668echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
7669 case $host_os in
7670 rhapsody* | darwin1.[012])
7671 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7672 darwin1.*)
7673 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7674 darwin*) # darwin 5.x on
7675 # if running on 10.5 or later, the deployment target defaults
7676 # to the OS version, if on x86, and 10.4, the deployment
7677 # target defaults to 10.4. Don't you love it?
7678 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7679 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7680 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7681 10.[012]*)
7682 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7683 10.*)
7684 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7685 esac
7686 ;;
7687 esac
7688 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7689 _lt_dar_single_mod='$single_module'
7690 fi
7691 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7692 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7693 else
7694 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7695 fi
7696 if test "$DSYMUTIL" != ":"; then
7697 _lt_dsymutil='~$DSYMUTIL $lib || :'
7698 else
7699 _lt_dsymutil=
7700 fi
7701 ;;
7702 esac
7703
7704
7705for ac_header in dlfcn.h
7706do
7707as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7708echo "$as_me:$LINENO: checking for $ac_header" >&5
7709echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7710if eval "test \"\${$as_ac_Header+set}\" = set"; then
7711 echo $ECHO_N "(cached) $ECHO_C" >&6
7712else
7713 cat >conftest.$ac_ext <<_ACEOF
7714/* confdefs.h. */
7715_ACEOF
7716cat confdefs.h >>conftest.$ac_ext
7717cat >>conftest.$ac_ext <<_ACEOF
7718/* end confdefs.h. */
7719$ac_includes_default
7720
7721#include <$ac_header>
7722_ACEOF
7723rm -f conftest.$ac_objext
7724if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7725 (eval $ac_compile) 2>conftest.er1
7726 ac_status=$?
7727 grep -v '^ *+' conftest.er1 >conftest.err
7728 rm -f conftest.er1
7729 cat conftest.err >&5
7730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7731 (exit $ac_status); } &&
7732 { ac_try='test -z "$ac_c_werror_flag"
7733 || test ! -s conftest.err'
7734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7735 (eval $ac_try) 2>&5
7736 ac_status=$?
7737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7738 (exit $ac_status); }; } &&
7739 { ac_try='test -s conftest.$ac_objext'
7740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7741 (eval $ac_try) 2>&5
7742 ac_status=$?
7743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744 (exit $ac_status); }; }; then
7745 eval "$as_ac_Header=yes"
7746else
7747 echo "$as_me: failed program was:" >&5
7748sed 's/^/| /' conftest.$ac_ext >&5
7749
7750eval "$as_ac_Header=no"
7751fi
7752rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7753fi
7754echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7755echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7756if test `eval echo '${'$as_ac_Header'}'` = yes; then
7757 cat >>confdefs.h <<_ACEOF
7758#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7759_ACEOF
7760
7761fi
7762
7763done
7764
7765
7766
7767# Set options
7768
7769
7770
7771 enable_dlopen=no
7772
7773
7774 enable_win32_dll=no
7775
7776
7777 # Check whether --enable-shared or --disable-shared was given.
7778if test "${enable_shared+set}" = set; then
7779 enableval="$enable_shared"
7780 p=${PACKAGE-default}
7781 case $enableval in
7782 yes) enable_shared=yes ;;
7783 no) enable_shared=no ;;
7784 *)
7785 enable_shared=no
7786 # Look at the argument we got. We use all the common list separators.
7787 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7788 for pkg in $enableval; do
7789 IFS="$lt_save_ifs"
7790 if test "X$pkg" = "X$p"; then
7791 enable_shared=yes
7792 fi
7793 done
7794 IFS="$lt_save_ifs"
7795 ;;
7796 esac
7797else
7798 enable_shared=yes
7799fi;
7800
7801
7802
7803
7804
7805
7806
7807
7808 # Check whether --enable-static or --disable-static was given.
7809if test "${enable_static+set}" = set; then
7810 enableval="$enable_static"
7811 p=${PACKAGE-default}
7812 case $enableval in
7813 yes) enable_static=yes ;;
7814 no) enable_static=no ;;
7815 *)
7816 enable_static=no
7817 # Look at the argument we got. We use all the common list separators.
7818 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7819 for pkg in $enableval; do
7820 IFS="$lt_save_ifs"
7821 if test "X$pkg" = "X$p"; then
7822 enable_static=yes
7823 fi
7824 done
7825 IFS="$lt_save_ifs"
7826 ;;
7827 esac
7828else
7829 enable_static=yes
7830fi;
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840# Check whether --with-pic or --without-pic was given.
7841if test "${with_pic+set}" = set; then
7842 withval="$with_pic"
7843 pic_mode="$withval"
7844else
7845 pic_mode=default
7846fi;
7847
7848test -z "$pic_mode" && pic_mode=default
7849
7850
7851
7852
7853
7854
7855
7856 # Check whether --enable-fast-install or --disable-fast-install was given.
7857if test "${enable_fast_install+set}" = set; then
7858 enableval="$enable_fast_install"
7859 p=${PACKAGE-default}
7860 case $enableval in
7861 yes) enable_fast_install=yes ;;
7862 no) enable_fast_install=no ;;
7863 *)
7864 enable_fast_install=no
7865 # Look at the argument we got. We use all the common list separators.
7866 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7867 for pkg in $enableval; do
7868 IFS="$lt_save_ifs"
7869 if test "X$pkg" = "X$p"; then
7870 enable_fast_install=yes
7871 fi
7872 done
7873 IFS="$lt_save_ifs"
7357c5b6
AM
7874 ;;
7875 esac
b214d478
SE
7876else
7877 enable_fast_install=yes
7878fi;
ce2cded5 7879
ce2cded5
L
7880
7881
ce2cded5 7882
42ecbf5e 7883
d7040cdb 7884
d7040cdb 7885
d7040cdb 7886
d7040cdb 7887
d7040cdb 7888
ce2cded5
L
7889# This can be used to rebuild libtool when needed
7890LIBTOOL_DEPS="$ltmain"
d7040cdb 7891
ce2cded5
L
7892# Always use our own libtool.
7893LIBTOOL='$(SHELL) $(top_builddir)/libtool'
d7040cdb 7894
d7040cdb 7895
d7040cdb 7896
d7040cdb 7897
d7040cdb 7898
d7040cdb 7899
d7040cdb 7900
d7040cdb 7901
d7040cdb 7902
d7040cdb 7903
d7040cdb 7904
d7040cdb 7905
d7040cdb 7906
d7040cdb 7907
d7040cdb 7908
d7040cdb 7909
d7040cdb
SE
7910
7911
7912
7913
7914
7915
7916
7917
7918
ce2cded5 7919test -z "$LN_S" && LN_S="ln -s"
d7040cdb
SE
7920
7921
7922
7923
7924
7925
d7040cdb
SE
7926
7927
7928
7929
7930
7931
7932
7933
ce2cded5
L
7934if test -n "${ZSH_VERSION+set}" ; then
7935 setopt NO_GLOB_SUBST
7936fi
d7040cdb 7937
ce2cded5
L
7938echo "$as_me:$LINENO: checking for objdir" >&5
7939echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7940if test "${lt_cv_objdir+set}" = set; then
7941 echo $ECHO_N "(cached) $ECHO_C" >&6
7942else
7943 rm -f .libs 2>/dev/null
7944mkdir .libs 2>/dev/null
7945if test -d .libs; then
7946 lt_cv_objdir=.libs
7947else
7948 # MS-DOS does not allow filenames that begin with a dot.
7949 lt_cv_objdir=_libs
7950fi
7951rmdir .libs 2>/dev/null
7952fi
7953echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7954echo "${ECHO_T}$lt_cv_objdir" >&6
7955objdir=$lt_cv_objdir
d7040cdb
SE
7956
7957
7958
7959
7960
ce2cded5
L
7961cat >>confdefs.h <<_ACEOF
7962#define LT_OBJDIR "$lt_cv_objdir/"
7963_ACEOF
d7040cdb
SE
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
ce2cded5
L
7981case $host_os in
7982aix3*)
7983 # AIX sometimes has problems with the GCC collect2 program. For some
7984 # reason, if we set the COLLECT_NAMES environment variable, the problems
7985 # vanish in a puff of smoke.
7986 if test "X${COLLECT_NAMES+set}" != Xset; then
7987 COLLECT_NAMES=
7988 export COLLECT_NAMES
7989 fi
7990 ;;
7991esac
d7040cdb 7992
ce2cded5
L
7993# Sed substitution that helps us do robust quoting. It backslashifies
7994# metacharacters that are still active within double-quoted strings.
7995sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
d7040cdb 7996
ce2cded5
L
7997# Same as above, but do not quote variable references.
7998double_quote_subst='s/\(["`\\]\)/\\\1/g'
d7040cdb 7999
ce2cded5
L
8000# Sed substitution to delay expansion of an escaped shell variable in a
8001# double_quote_subst'ed string.
8002delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
d7040cdb 8003
ce2cded5
L
8004# Sed substitution to delay expansion of an escaped single quote.
8005delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
d7040cdb 8006
ce2cded5
L
8007# Sed substitution to avoid accidental globbing in evaled expressions
8008no_glob_subst='s/\*/\\\*/g'
d7040cdb 8009
ce2cded5
L
8010# Global variables:
8011ofile=libtool
8012can_build_shared=yes
d7040cdb 8013
ce2cded5
L
8014# All known linkers require a `.a' archive for static linking (except MSVC,
8015# which needs '.lib').
8016libext=a
d7040cdb 8017
ce2cded5 8018with_gnu_ld="$lt_cv_prog_gnu_ld"
d7040cdb 8019
ce2cded5
L
8020old_CC="$CC"
8021old_CFLAGS="$CFLAGS"
d7040cdb 8022
ce2cded5
L
8023# Set sane defaults for various variables
8024test -z "$CC" && CC=cc
8025test -z "$LTCC" && LTCC=$CC
8026test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8027test -z "$LD" && LD=ld
8028test -z "$ac_objext" && ac_objext=o
d7040cdb 8029
ce2cded5
L
8030for cc_temp in $compiler""; do
8031 case $cc_temp in
8032 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8033 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8034 \-*) ;;
8035 *) break;;
8036 esac
8037done
8038cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
d7040cdb
SE
8039
8040
ce2cded5
L
8041# Only perform the check for file, if the check method requires it
8042test -z "$MAGIC_CMD" && MAGIC_CMD=file
8043case $deplibs_check_method in
8044file_magic*)
8045 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8046 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8047echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8048if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8049 echo $ECHO_N "(cached) $ECHO_C" >&6
8050else
8051 case $MAGIC_CMD in
8052[\\/*] | ?:[\\/]*)
8053 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8054 ;;
8055*)
8056 lt_save_MAGIC_CMD="$MAGIC_CMD"
8057 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8058 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8059 for ac_dir in $ac_dummy; do
8060 IFS="$lt_save_ifs"
8061 test -z "$ac_dir" && ac_dir=.
8062 if test -f $ac_dir/${ac_tool_prefix}file; then
8063 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8064 if test -n "$file_magic_test_file"; then
8065 case $deplibs_check_method in
8066 "file_magic "*)
8067 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8068 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8069 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8070 $EGREP "$file_magic_regex" > /dev/null; then
8071 :
8072 else
8073 cat <<_LT_EOF 1>&2
d7040cdb 8074
ce2cded5
L
8075*** Warning: the command libtool uses to detect shared libraries,
8076*** $file_magic_cmd, produces output that libtool cannot recognize.
8077*** The result is that libtool may fail to recognize shared libraries
8078*** as such. This will affect the creation of libtool libraries that
8079*** depend on shared libraries, but programs linked with such libtool
8080*** libraries will work regardless of this problem. Nevertheless, you
8081*** may want to report the problem to your system manager and/or to
8082*** bug-libtool@gnu.org
d7040cdb 8083
ce2cded5
L
8084_LT_EOF
8085 fi ;;
8086 esac
8087 fi
8088 break
8089 fi
8090 done
8091 IFS="$lt_save_ifs"
8092 MAGIC_CMD="$lt_save_MAGIC_CMD"
8093 ;;
8094esac
8095fi
d7040cdb 8096
ce2cded5
L
8097MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8098if test -n "$MAGIC_CMD"; then
8099 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8100echo "${ECHO_T}$MAGIC_CMD" >&6
8101else
8102 echo "$as_me:$LINENO: result: no" >&5
8103echo "${ECHO_T}no" >&6
8104fi
d7040cdb
SE
8105
8106
8107
8108
8109
ce2cded5
L
8110if test -z "$lt_cv_path_MAGIC_CMD"; then
8111 if test -n "$ac_tool_prefix"; then
8112 echo "$as_me:$LINENO: checking for file" >&5
8113echo $ECHO_N "checking for file... $ECHO_C" >&6
8114if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8115 echo $ECHO_N "(cached) $ECHO_C" >&6
8116else
8117 case $MAGIC_CMD in
8118[\\/*] | ?:[\\/]*)
8119 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8120 ;;
8121*)
8122 lt_save_MAGIC_CMD="$MAGIC_CMD"
8123 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8124 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8125 for ac_dir in $ac_dummy; do
8126 IFS="$lt_save_ifs"
8127 test -z "$ac_dir" && ac_dir=.
8128 if test -f $ac_dir/file; then
8129 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8130 if test -n "$file_magic_test_file"; then
8131 case $deplibs_check_method in
8132 "file_magic "*)
8133 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8134 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8135 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8136 $EGREP "$file_magic_regex" > /dev/null; then
8137 :
8138 else
8139 cat <<_LT_EOF 1>&2
d7040cdb 8140
ce2cded5
L
8141*** Warning: the command libtool uses to detect shared libraries,
8142*** $file_magic_cmd, produces output that libtool cannot recognize.
8143*** The result is that libtool may fail to recognize shared libraries
8144*** as such. This will affect the creation of libtool libraries that
8145*** depend on shared libraries, but programs linked with such libtool
8146*** libraries will work regardless of this problem. Nevertheless, you
8147*** may want to report the problem to your system manager and/or to
8148*** bug-libtool@gnu.org
d7040cdb 8149
ce2cded5
L
8150_LT_EOF
8151 fi ;;
8152 esac
8153 fi
8154 break
8155 fi
8156 done
8157 IFS="$lt_save_ifs"
8158 MAGIC_CMD="$lt_save_MAGIC_CMD"
8159 ;;
8160esac
8161fi
d7040cdb 8162
ce2cded5
L
8163MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8164if test -n "$MAGIC_CMD"; then
8165 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8166echo "${ECHO_T}$MAGIC_CMD" >&6
8167else
8168 echo "$as_me:$LINENO: result: no" >&5
8169echo "${ECHO_T}no" >&6
8170fi
d7040cdb
SE
8171
8172
ce2cded5
L
8173 else
8174 MAGIC_CMD=:
8175 fi
8176fi
d7040cdb 8177
ce2cded5
L
8178 fi
8179 ;;
8180esac
d7040cdb 8181
ce2cded5 8182# Use C for the default configuration in the libtool script
d7040cdb 8183
ce2cded5
L
8184lt_save_CC="$CC"
8185ac_ext=c
8186ac_cpp='$CPP $CPPFLAGS'
8187ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8188ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8189ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb
SE
8190
8191
ce2cded5
L
8192# Source file extension for C test sources.
8193ac_ext=c
d7040cdb 8194
ce2cded5
L
8195# Object file extension for compiled C test sources.
8196objext=o
8197objext=$objext
d7040cdb 8198
ce2cded5
L
8199# Code to be used in simple compile tests
8200lt_simple_compile_test_code="int some_variable = 0;"
d7040cdb 8201
ce2cded5
L
8202# Code to be used in simple link tests
8203lt_simple_link_test_code='int main(){return(0);}'
d7040cdb
SE
8204
8205
8206
8207
8208
8209
8210
ce2cded5
L
8211# If no C compiler was specified, use CC.
8212LTCC=${LTCC-"$CC"}
d7040cdb 8213
ce2cded5
L
8214# If no C compiler flags were specified, use CFLAGS.
8215LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d7040cdb 8216
ce2cded5
L
8217# Allow CC to be a program name with arguments.
8218compiler=$CC
d7040cdb 8219
ce2cded5
L
8220# Save the default compiler, since it gets overwritten when the other
8221# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8222compiler_DEFAULT=$CC
d7040cdb 8223
ce2cded5
L
8224# save warnings/boilerplate of simple test code
8225ac_outfile=conftest.$ac_objext
8226echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8227eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8228_lt_compiler_boilerplate=`cat conftest.err`
8229$RM conftest*
d7040cdb 8230
ce2cded5
L
8231ac_outfile=conftest.$ac_objext
8232echo "$lt_simple_link_test_code" >conftest.$ac_ext
8233eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8234_lt_linker_boilerplate=`cat conftest.err`
b214d478 8235$RM -r conftest*
d7040cdb
SE
8236
8237
ce2cded5
L
8238## CAVEAT EMPTOR:
8239## There is no encapsulation within the following macros, do not change
8240## the running order or otherwise move them around unless you know exactly
8241## what you are doing...
8242if test -n "$compiler"; then
d7040cdb 8243
ce2cded5 8244lt_prog_compiler_no_builtin_flag=
d7040cdb 8245
ce2cded5
L
8246if test "$GCC" = yes; then
8247 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
d7040cdb 8248
ce2cded5
L
8249 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8250echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8251if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8252 echo $ECHO_N "(cached) $ECHO_C" >&6
8253else
8254 lt_cv_prog_compiler_rtti_exceptions=no
8255 ac_outfile=conftest.$ac_objext
8256 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8257 lt_compiler_flag="-fno-rtti -fno-exceptions"
8258 # Insert the option either (1) after the last *FLAGS variable, or
8259 # (2) before a word containing "conftest.", or (3) at the end.
8260 # Note that $ac_compile itself does not contain backslashes and begins
8261 # with a dollar sign (not a hyphen), so the echo should work correctly.
8262 # The option is referenced via a variable to avoid confusing sed.
8263 lt_compile=`echo "$ac_compile" | $SED \
8264 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8265 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8266 -e 's:$: $lt_compiler_flag:'`
b214d478 8267 (eval echo "\"\$as_me:8267: $lt_compile\"" >&5)
ce2cded5
L
8268 (eval "$lt_compile" 2>conftest.err)
8269 ac_status=$?
8270 cat conftest.err >&5
b214d478 8271 echo "$as_me:8271: \$? = $ac_status" >&5
ce2cded5
L
8272 if (exit $ac_status) && test -s "$ac_outfile"; then
8273 # The compiler can only warn and ignore the option if not recognized
8274 # So say no if there are warnings other than the usual output.
8275 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8276 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8277 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8278 lt_cv_prog_compiler_rtti_exceptions=yes
8279 fi
8280 fi
8281 $RM conftest*
d7040cdb 8282
ce2cded5
L
8283fi
8284echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8285echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
d7040cdb 8286
ce2cded5
L
8287if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8288 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8289else
8290 :
8291fi
d7040cdb 8292
ce2cded5 8293fi
d7040cdb
SE
8294
8295
8296
8297
8298
8299
ce2cded5
L
8300 lt_prog_compiler_wl=
8301lt_prog_compiler_pic=
8302lt_prog_compiler_static=
d7040cdb 8303
ce2cded5
L
8304echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8305echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
d7040cdb 8306
ce2cded5
L
8307 if test "$GCC" = yes; then
8308 lt_prog_compiler_wl='-Wl,'
8309 lt_prog_compiler_static='-static'
d7040cdb 8310
ce2cded5
L
8311 case $host_os in
8312 aix*)
8313 # All AIX code is PIC.
8314 if test "$host_cpu" = ia64; then
8315 # AIX 5 now supports IA64 processor
8316 lt_prog_compiler_static='-Bstatic'
8317 fi
8318 ;;
d7040cdb 8319
ce2cded5 8320 amigaos*)
b214d478
SE
8321 case $host_cpu in
8322 powerpc)
8323 # see comment about AmigaOS4 .so support
8324 lt_prog_compiler_pic='-fPIC'
8325 ;;
8326 m68k)
8327 # FIXME: we need at least 68020 code to build shared libraries, but
8328 # adding the `-m68020' flag to GCC prevents building anything better,
8329 # like `-m68040'.
8330 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8331 ;;
8332 esac
ce2cded5 8333 ;;
d7040cdb 8334
ce2cded5
L
8335 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8336 # PIC is the default for these OSes.
8337 ;;
d7040cdb 8338
b214d478 8339 mingw* | cygwin* | pw32* | os2* | cegcc*)
ce2cded5
L
8340 # This hack is so that the source file can tell whether it is being
8341 # built for inclusion in a dll (and should export symbols for example).
8342 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8343 # (--disable-auto-import) libraries
8344 lt_prog_compiler_pic='-DDLL_EXPORT'
8345 ;;
d7040cdb 8346
ce2cded5
L
8347 darwin* | rhapsody*)
8348 # PIC is the default on this platform
8349 # Common symbols not allowed in MH_DYLIB files
8350 lt_prog_compiler_pic='-fno-common'
8351 ;;
d7040cdb 8352
ce2cded5 8353 hpux*)
b214d478
SE
8354 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8355 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8356 # sets the default TLS model and affects inlining.
ce2cded5 8357 case $host_cpu in
b214d478 8358 hppa*64*)
ce2cded5
L
8359 # +Z the default
8360 ;;
8361 *)
8362 lt_prog_compiler_pic='-fPIC'
8363 ;;
8364 esac
8365 ;;
d7040cdb 8366
ce2cded5
L
8367 interix[3-9]*)
8368 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8369 # Instead, we relocate shared libraries at runtime.
8370 ;;
d7040cdb 8371
ce2cded5
L
8372 msdosdjgpp*)
8373 # Just because we use GCC doesn't mean we suddenly get shared libraries
8374 # on systems that don't support them.
8375 lt_prog_compiler_can_build_shared=no
8376 enable_shared=no
8377 ;;
d7040cdb 8378
ce2cded5
L
8379 *nto* | *qnx*)
8380 # QNX uses GNU C++, but need to define -shared option too, otherwise
8381 # it will coredump.
8382 lt_prog_compiler_pic='-fPIC -shared'
8383 ;;
d7040cdb 8384
ce2cded5
L
8385 sysv4*MP*)
8386 if test -d /usr/nec; then
8387 lt_prog_compiler_pic=-Kconform_pic
8388 fi
8389 ;;
d7040cdb 8390
ce2cded5
L
8391 *)
8392 lt_prog_compiler_pic='-fPIC'
8393 ;;
8394 esac
8395 else
8396 # PORTME Check for flag to pass linker flags through the system compiler.
8397 case $host_os in
8398 aix*)
8399 lt_prog_compiler_wl='-Wl,'
8400 if test "$host_cpu" = ia64; then
8401 # AIX 5 now supports IA64 processor
8402 lt_prog_compiler_static='-Bstatic'
8403 else
8404 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8405 fi
8406 ;;
d7040cdb 8407
b214d478 8408 mingw* | cygwin* | pw32* | os2* | cegcc*)
ce2cded5
L
8409 # This hack is so that the source file can tell whether it is being
8410 # built for inclusion in a dll (and should export symbols for example).
8411 lt_prog_compiler_pic='-DDLL_EXPORT'
8412 ;;
d7040cdb 8413
ce2cded5
L
8414 hpux9* | hpux10* | hpux11*)
8415 lt_prog_compiler_wl='-Wl,'
8416 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8417 # not for PA HP-UX.
8418 case $host_cpu in
8419 hppa*64*|ia64*)
8420 # +Z the default
8421 ;;
8422 *)
8423 lt_prog_compiler_pic='+Z'
8424 ;;
8425 esac
8426 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8427 lt_prog_compiler_static='${wl}-a ${wl}archive'
8428 ;;
d7040cdb 8429
ce2cded5
L
8430 irix5* | irix6* | nonstopux*)
8431 lt_prog_compiler_wl='-Wl,'
8432 # PIC (with -KPIC) is the default.
8433 lt_prog_compiler_static='-non_shared'
8434 ;;
d7040cdb 8435
58e24671 8436 linux* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5 8437 case $cc_basename in
b214d478
SE
8438 # old Intel for x86_64 which still supported -KPIC.
8439 ecc*)
ce2cded5
L
8440 lt_prog_compiler_wl='-Wl,'
8441 lt_prog_compiler_pic='-KPIC'
8442 lt_prog_compiler_static='-static'
8443 ;;
b214d478
SE
8444 # icc used to be incompatible with GCC.
8445 # ICC 10 doesn't accept -KPIC any more.
8446 icc* | ifort*)
8447 lt_prog_compiler_wl='-Wl,'
8448 lt_prog_compiler_pic='-fPIC'
8449 lt_prog_compiler_static='-static'
8450 ;;
8451 # Lahey Fortran 8.1.
8452 lf95*)
8453 lt_prog_compiler_wl='-Wl,'
8454 lt_prog_compiler_pic='--shared'
8455 lt_prog_compiler_static='--static'
8456 ;;
ce2cded5
L
8457 pgcc* | pgf77* | pgf90* | pgf95*)
8458 # Portland Group compilers (*not* the Pentium gcc compiler,
8459 # which looks to be a dead project)
8460 lt_prog_compiler_wl='-Wl,'
8461 lt_prog_compiler_pic='-fpic'
8462 lt_prog_compiler_static='-Bstatic'
8463 ;;
8464 ccc*)
8465 lt_prog_compiler_wl='-Wl,'
8466 # All Alpha code is PIC.
8467 lt_prog_compiler_static='-non_shared'
8468 ;;
b214d478
SE
8469 xl*)
8470 # IBM XL C 8.0/Fortran 10.1 on PPC
8471 lt_prog_compiler_wl='-Wl,'
8472 lt_prog_compiler_pic='-qpic'
8473 lt_prog_compiler_static='-qstaticlink'
8474 ;;
ce2cded5
L
8475 *)
8476 case `$CC -V 2>&1 | sed 5q` in
8477 *Sun\ C*)
8478 # Sun C 5.9
8479 lt_prog_compiler_pic='-KPIC'
8480 lt_prog_compiler_static='-Bstatic'
8481 lt_prog_compiler_wl='-Wl,'
8482 ;;
8483 *Sun\ F*)
8484 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8485 lt_prog_compiler_pic='-KPIC'
8486 lt_prog_compiler_static='-Bstatic'
8487 lt_prog_compiler_wl=''
8488 ;;
8489 esac
8490 ;;
8491 esac
8492 ;;
d7040cdb 8493
ce2cded5
L
8494 newsos6)
8495 lt_prog_compiler_pic='-KPIC'
8496 lt_prog_compiler_static='-Bstatic'
8497 ;;
d7040cdb 8498
ce2cded5
L
8499 *nto* | *qnx*)
8500 # QNX uses GNU C++, but need to define -shared option too, otherwise
8501 # it will coredump.
8502 lt_prog_compiler_pic='-fPIC -shared'
8503 ;;
d7040cdb 8504
ce2cded5
L
8505 osf3* | osf4* | osf5*)
8506 lt_prog_compiler_wl='-Wl,'
8507 # All OSF/1 code is PIC.
8508 lt_prog_compiler_static='-non_shared'
8509 ;;
d7040cdb 8510
ce2cded5
L
8511 rdos*)
8512 lt_prog_compiler_static='-non_shared'
8513 ;;
d7040cdb 8514
ce2cded5
L
8515 solaris*)
8516 lt_prog_compiler_pic='-KPIC'
8517 lt_prog_compiler_static='-Bstatic'
8518 case $cc_basename in
8519 f77* | f90* | f95*)
8520 lt_prog_compiler_wl='-Qoption ld ';;
8521 *)
8522 lt_prog_compiler_wl='-Wl,';;
8523 esac
8524 ;;
d7040cdb 8525
ce2cded5
L
8526 sunos4*)
8527 lt_prog_compiler_wl='-Qoption ld '
8528 lt_prog_compiler_pic='-PIC'
8529 lt_prog_compiler_static='-Bstatic'
8530 ;;
d7040cdb 8531
ce2cded5
L
8532 sysv4 | sysv4.2uw2* | sysv4.3*)
8533 lt_prog_compiler_wl='-Wl,'
8534 lt_prog_compiler_pic='-KPIC'
8535 lt_prog_compiler_static='-Bstatic'
8536 ;;
d7040cdb 8537
ce2cded5
L
8538 sysv4*MP*)
8539 if test -d /usr/nec ;then
8540 lt_prog_compiler_pic='-Kconform_pic'
8541 lt_prog_compiler_static='-Bstatic'
8542 fi
8543 ;;
d7040cdb 8544
ce2cded5
L
8545 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8546 lt_prog_compiler_wl='-Wl,'
8547 lt_prog_compiler_pic='-KPIC'
8548 lt_prog_compiler_static='-Bstatic'
8549 ;;
d7040cdb 8550
ce2cded5
L
8551 unicos*)
8552 lt_prog_compiler_wl='-Wl,'
8553 lt_prog_compiler_can_build_shared=no
8554 ;;
d7040cdb 8555
ce2cded5
L
8556 uts4*)
8557 lt_prog_compiler_pic='-pic'
8558 lt_prog_compiler_static='-Bstatic'
8559 ;;
d7040cdb 8560
ce2cded5
L
8561 *)
8562 lt_prog_compiler_can_build_shared=no
8563 ;;
8564 esac
8565 fi
d7040cdb 8566
ce2cded5
L
8567case $host_os in
8568 # For platforms which do not support PIC, -DPIC is meaningless:
8569 *djgpp*)
8570 lt_prog_compiler_pic=
8571 ;;
8572 *)
8573 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8574 ;;
8575esac
8576echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8577echo "${ECHO_T}$lt_prog_compiler_pic" >&6
d7040cdb
SE
8578
8579
8580
8581
8582
8583
ce2cded5
L
8584#
8585# Check to make sure the PIC flag actually works.
8586#
8587if test -n "$lt_prog_compiler_pic"; then
8588 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8589echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
b214d478 8590if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
ce2cded5
L
8591 echo $ECHO_N "(cached) $ECHO_C" >&6
8592else
b214d478 8593 lt_cv_prog_compiler_pic_works=no
ce2cded5
L
8594 ac_outfile=conftest.$ac_objext
8595 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8596 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8597 # Insert the option either (1) after the last *FLAGS variable, or
8598 # (2) before a word containing "conftest.", or (3) at the end.
8599 # Note that $ac_compile itself does not contain backslashes and begins
8600 # with a dollar sign (not a hyphen), so the echo should work correctly.
8601 # The option is referenced via a variable to avoid confusing sed.
8602 lt_compile=`echo "$ac_compile" | $SED \
8603 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8604 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8605 -e 's:$: $lt_compiler_flag:'`
b214d478 8606 (eval echo "\"\$as_me:8606: $lt_compile\"" >&5)
ce2cded5
L
8607 (eval "$lt_compile" 2>conftest.err)
8608 ac_status=$?
8609 cat conftest.err >&5
b214d478 8610 echo "$as_me:8610: \$? = $ac_status" >&5
ce2cded5
L
8611 if (exit $ac_status) && test -s "$ac_outfile"; then
8612 # The compiler can only warn and ignore the option if not recognized
8613 # So say no if there are warnings other than the usual output.
8614 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8615 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8616 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
b214d478 8617 lt_cv_prog_compiler_pic_works=yes
ce2cded5
L
8618 fi
8619 fi
8620 $RM conftest*
d7040cdb 8621
ce2cded5 8622fi
b214d478
SE
8623echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8624echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
ce2cded5 8625
b214d478 8626if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
ce2cded5
L
8627 case $lt_prog_compiler_pic in
8628 "" | " "*) ;;
8629 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8630 esac
8631else
8632 lt_prog_compiler_pic=
8633 lt_prog_compiler_can_build_shared=no
8634fi
8635
8636fi
d7040cdb
SE
8637
8638
8639
8640
8641
8642
ce2cded5
L
8643#
8644# Check to make sure the static flag actually works.
8645#
8646wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8647echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8648echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
b214d478 8649if test "${lt_cv_prog_compiler_static_works+set}" = set; then
ce2cded5
L
8650 echo $ECHO_N "(cached) $ECHO_C" >&6
8651else
b214d478 8652 lt_cv_prog_compiler_static_works=no
ce2cded5
L
8653 save_LDFLAGS="$LDFLAGS"
8654 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8655 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8656 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8657 # The linker can only warn and ignore the option if not recognized
8658 # So say no if there are warnings
8659 if test -s conftest.err; then
8660 # Append any errors to the config.log.
8661 cat conftest.err 1>&5
8662 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8663 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8664 if diff conftest.exp conftest.er2 >/dev/null; then
b214d478 8665 lt_cv_prog_compiler_static_works=yes
ce2cded5
L
8666 fi
8667 else
b214d478 8668 lt_cv_prog_compiler_static_works=yes
ce2cded5
L
8669 fi
8670 fi
b214d478 8671 $RM -r conftest*
ce2cded5 8672 LDFLAGS="$save_LDFLAGS"
d7040cdb 8673
ce2cded5 8674fi
b214d478
SE
8675echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8676echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
d7040cdb 8677
b214d478 8678if test x"$lt_cv_prog_compiler_static_works" = xyes; then
ce2cded5
L
8679 :
8680else
8681 lt_prog_compiler_static=
8682fi
d7040cdb
SE
8683
8684
8685
8686
8687
8688
8689
ce2cded5
L
8690 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8691echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8692if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8693 echo $ECHO_N "(cached) $ECHO_C" >&6
8694else
8695 lt_cv_prog_compiler_c_o=no
8696 $RM -r conftest 2>/dev/null
8697 mkdir conftest
8698 cd conftest
8699 mkdir out
8700 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 8701
ce2cded5
L
8702 lt_compiler_flag="-o out/conftest2.$ac_objext"
8703 # Insert the option either (1) after the last *FLAGS variable, or
8704 # (2) before a word containing "conftest.", or (3) at the end.
8705 # Note that $ac_compile itself does not contain backslashes and begins
8706 # with a dollar sign (not a hyphen), so the echo should work correctly.
8707 lt_compile=`echo "$ac_compile" | $SED \
8708 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8709 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8710 -e 's:$: $lt_compiler_flag:'`
b214d478 8711 (eval echo "\"\$as_me:8711: $lt_compile\"" >&5)
ce2cded5
L
8712 (eval "$lt_compile" 2>out/conftest.err)
8713 ac_status=$?
8714 cat out/conftest.err >&5
b214d478 8715 echo "$as_me:8715: \$? = $ac_status" >&5
ce2cded5
L
8716 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8717 then
8718 # The compiler can only warn and ignore the option if not recognized
8719 # So say no if there are warnings
8720 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8721 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8722 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8723 lt_cv_prog_compiler_c_o=yes
8724 fi
8725 fi
8726 chmod u+w . 2>&5
8727 $RM conftest*
8728 # SGI C++ compiler will create directory out/ii_files/ for
8729 # template instantiation
8730 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8731 $RM out/* && rmdir out
8732 cd ..
8733 $RM -r conftest
8734 $RM conftest*
d7040cdb 8735
ce2cded5
L
8736fi
8737echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8738echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
d7040cdb
SE
8739
8740
8741
8742
8743
8744
ce2cded5
L
8745 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8746echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8747if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8748 echo $ECHO_N "(cached) $ECHO_C" >&6
8749else
8750 lt_cv_prog_compiler_c_o=no
8751 $RM -r conftest 2>/dev/null
8752 mkdir conftest
8753 cd conftest
8754 mkdir out
8755 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 8756
ce2cded5
L
8757 lt_compiler_flag="-o out/conftest2.$ac_objext"
8758 # Insert the option either (1) after the last *FLAGS variable, or
8759 # (2) before a word containing "conftest.", or (3) at the end.
8760 # Note that $ac_compile itself does not contain backslashes and begins
8761 # with a dollar sign (not a hyphen), so the echo should work correctly.
8762 lt_compile=`echo "$ac_compile" | $SED \
8763 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8764 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8765 -e 's:$: $lt_compiler_flag:'`
b214d478 8766 (eval echo "\"\$as_me:8766: $lt_compile\"" >&5)
ce2cded5
L
8767 (eval "$lt_compile" 2>out/conftest.err)
8768 ac_status=$?
8769 cat out/conftest.err >&5
b214d478 8770 echo "$as_me:8770: \$? = $ac_status" >&5
ce2cded5
L
8771 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8772 then
8773 # The compiler can only warn and ignore the option if not recognized
8774 # So say no if there are warnings
8775 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8776 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8777 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8778 lt_cv_prog_compiler_c_o=yes
8779 fi
8780 fi
8781 chmod u+w . 2>&5
8782 $RM conftest*
8783 # SGI C++ compiler will create directory out/ii_files/ for
8784 # template instantiation
8785 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8786 $RM out/* && rmdir out
8787 cd ..
8788 $RM -r conftest
8789 $RM conftest*
8790
8791fi
8792echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8793echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8794
8795
8796
8797
8798hard_links="nottested"
8799if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8800 # do not overwrite the value of need_locks provided by the user
8801 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8802echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8803 hard_links=yes
8804 $RM conftest*
8805 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8806 touch conftest.a
8807 ln conftest.a conftest.b 2>&5 || hard_links=no
8808 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8809 echo "$as_me:$LINENO: result: $hard_links" >&5
8810echo "${ECHO_T}$hard_links" >&6
8811 if test "$hard_links" = no; then
8812 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8813echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8814 need_locks=warn
d7040cdb 8815 fi
d7040cdb 8816else
ce2cded5 8817 need_locks=no
d7040cdb 8818fi
d7040cdb 8819
d7040cdb 8820
d7040cdb 8821
d7040cdb 8822
d7040cdb 8823
d7040cdb 8824
ce2cded5
L
8825 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8826echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
d7040cdb 8827
ce2cded5
L
8828 runpath_var=
8829 allow_undefined_flag=
8830 always_export_symbols=no
8831 archive_cmds=
8832 archive_expsym_cmds=
8833 compiler_needs_object=no
8834 enable_shared_with_static_runtimes=no
8835 export_dynamic_flag_spec=
8836 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8837 hardcode_automatic=no
8838 hardcode_direct=no
8839 hardcode_direct_absolute=no
8840 hardcode_libdir_flag_spec=
8841 hardcode_libdir_flag_spec_ld=
8842 hardcode_libdir_separator=
8843 hardcode_minus_L=no
8844 hardcode_shlibpath_var=unsupported
8845 inherit_rpath=no
8846 link_all_deplibs=unknown
8847 module_cmds=
8848 module_expsym_cmds=
8849 old_archive_from_new_cmds=
8850 old_archive_from_expsyms_cmds=
8851 thread_safe_flag_spec=
8852 whole_archive_flag_spec=
8853 # include_expsyms should be a list of space-separated symbols to be *always*
8854 # included in the symbol list
8855 include_expsyms=
8856 # exclude_expsyms can be an extended regexp of symbols to exclude
8857 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8858 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8859 # as well as any symbol that contains `d'.
b214d478 8860 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
ce2cded5
L
8861 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8862 # platforms (ab)use it in PIC code, but their linkers get confused if
8863 # the symbol is explicitly referenced. Since portable code cannot
8864 # rely on this symbol name, it's probably fine to never include it in
8865 # preloaded symbol tables.
b214d478 8866 # Exclude shared library initialization/finalization symbols.
ce2cded5 8867 extract_expsyms_cmds=
d7040cdb 8868
ce2cded5 8869 case $host_os in
b214d478 8870 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
8871 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8872 # When not using gcc, we currently assume that we are using
8873 # Microsoft Visual C++.
8874 if test "$GCC" != yes; then
8875 with_gnu_ld=no
8876 fi
d7040cdb 8877 ;;
ce2cded5
L
8878 interix*)
8879 # we just hope/assume this is gcc and not c89 (= MSVC++)
8880 with_gnu_ld=yes
8881 ;;
8882 openbsd*)
8883 with_gnu_ld=no
d7040cdb
SE
8884 ;;
8885 esac
d7040cdb 8886
ce2cded5
L
8887 ld_shlibs=yes
8888 if test "$with_gnu_ld" = yes; then
8889 # If archive_cmds runs LD, not CC, wlarc should be empty
8890 wlarc='${wl}'
d7040cdb 8891
ce2cded5
L
8892 # Set some defaults for GNU ld with shared library support. These
8893 # are reset later if shared libraries are not supported. Putting them
8894 # here allows them to be overridden if necessary.
8895 runpath_var=LD_RUN_PATH
8896 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8897 export_dynamic_flag_spec='${wl}--export-dynamic'
8898 # ancient GNU ld didn't support --whole-archive et. al.
8899 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8900 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8901 else
8902 whole_archive_flag_spec=
8903 fi
8904 supports_anon_versioning=no
8905 case `$LD -v 2>&1` in
8906 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8907 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8908 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8909 *\ 2.11.*) ;; # other 2.11 versions
8910 *) supports_anon_versioning=yes ;;
8911 esac
d7040cdb 8912
ce2cded5
L
8913 # See if GNU ld supports shared libraries.
8914 case $host_os in
50e7d84b 8915 aix[3-9]*)
ce2cded5
L
8916 # On AIX/PPC, the GNU linker is very broken
8917 if test "$host_cpu" != ia64; then
8918 ld_shlibs=no
8919 cat <<_LT_EOF 1>&2
d7040cdb 8920
ce2cded5
L
8921*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8922*** to be unable to reliably create shared libraries on AIX.
8923*** Therefore, libtool is disabling shared libraries support. If you
8924*** really care for shared libraries, you may want to modify your PATH
8925*** so that a non-GNU linker is found, and then restart.
d7040cdb 8926
ce2cded5
L
8927_LT_EOF
8928 fi
d7040cdb 8929 ;;
d7040cdb 8930
ce2cded5 8931 amigaos*)
b214d478
SE
8932 case $host_cpu in
8933 powerpc)
8934 # see comment about AmigaOS4 .so support
8935 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8936 archive_expsym_cmds=''
8937 ;;
8938 m68k)
8939 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)'
8940 hardcode_libdir_flag_spec='-L$libdir'
8941 hardcode_minus_L=yes
8942 ;;
8943 esac
ce2cded5 8944 ;;
d7040cdb 8945
ce2cded5
L
8946 beos*)
8947 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8948 allow_undefined_flag=unsupported
8949 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8950 # support --undefined. This deserves some investigation. FIXME
8951 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8952 else
8953 ld_shlibs=no
8954 fi
8955 ;;
d7040cdb 8956
b214d478 8957 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
8958 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8959 # as there is no search path for DLLs.
8960 hardcode_libdir_flag_spec='-L$libdir'
8961 allow_undefined_flag=unsupported
8962 always_export_symbols=no
8963 enable_shared_with_static_runtimes=yes
8964 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8965
8966 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8967 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8968 # If the export-symbols file already is a .def file (1st line
8969 # is EXPORTS), use it as is; otherwise, prepend...
8970 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8971 cp $export_symbols $output_objdir/$soname.def;
d7040cdb 8972 else
ce2cded5
L
8973 echo EXPORTS > $output_objdir/$soname.def;
8974 cat $export_symbols >> $output_objdir/$soname.def;
8975 fi~
8976 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8977 else
8978 ld_shlibs=no
8979 fi
8980 ;;
d7040cdb 8981
ce2cded5
L
8982 interix[3-9]*)
8983 hardcode_direct=no
8984 hardcode_shlibpath_var=no
8985 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8986 export_dynamic_flag_spec='${wl}-E'
8987 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8988 # Instead, shared libraries are loaded at an image base (0x10000000 by
8989 # default) and relocated if they conflict, which is a slow very memory
8990 # consuming and fragmenting process. To avoid this, we pick a random,
8991 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8992 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8993 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8994 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'
8995 ;;
d7040cdb 8996
58e24671 8997 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5
L
8998 tmp_diet=no
8999 if test "$host_os" = linux-dietlibc; then
9000 case $cc_basename in
9001 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9002 esac
9003 fi
9004 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9005 && test "$tmp_diet" = no
9006 then
9007 tmp_addflag=
b214d478 9008 tmp_sharedflag='-shared'
ce2cded5
L
9009 case $cc_basename,$host_cpu in
9010 pgcc*) # Portland Group C compiler
9011 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'
9012 tmp_addflag=' $pic_flag'
9013 ;;
9014 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9015 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'
9016 tmp_addflag=' $pic_flag -Mnomain' ;;
9017 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9018 tmp_addflag=' -i_dynamic' ;;
9019 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9020 tmp_addflag=' -i_dynamic -nofor_main' ;;
9021 ifc* | ifort*) # Intel Fortran compiler
9022 tmp_addflag=' -nofor_main' ;;
b214d478
SE
9023 lf95*) # Lahey Fortran 8.1
9024 whole_archive_flag_spec=
9025 tmp_sharedflag='--shared' ;;
9026 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9027 tmp_sharedflag='-qmkshrobj'
9028 tmp_addflag= ;;
ce2cded5
L
9029 esac
9030 case `$CC -V 2>&1 | sed 5q` in
9031 *Sun\ C*) # Sun C 5.9
9032 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'
9033 compiler_needs_object=yes
9034 tmp_sharedflag='-G' ;;
9035 *Sun\ F*) # Sun Fortran 8.3
9036 tmp_sharedflag='-G' ;;
ce2cded5
L
9037 esac
9038 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d7040cdb 9039
ce2cded5
L
9040 if test "x$supports_anon_versioning" = xyes; then
9041 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9042 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9043 echo "local: *; };" >> $output_objdir/$libname.ver~
9044 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9045 fi
b214d478
SE
9046
9047 case $cc_basename in
9048 xlf*)
9049 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9050 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9051 hardcode_libdir_flag_spec=
9052 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9053 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9054 if test "x$supports_anon_versioning" = xyes; then
9055 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9056 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9057 echo "local: *; };" >> $output_objdir/$libname.ver~
9058 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9059 fi
9060 ;;
9061 esac
ce2cded5
L
9062 else
9063 ld_shlibs=no
9064 fi
9065 ;;
d7040cdb 9066
ce2cded5
L
9067 netbsd*)
9068 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9069 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9070 wlarc=
9071 else
9072 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9073 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9074 fi
9075 ;;
9076
9077 solaris*)
9078 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9079 ld_shlibs=no
9080 cat <<_LT_EOF 1>&2
9081
9082*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9083*** create shared libraries on Solaris systems. Therefore, libtool
9084*** is disabling shared libraries support. We urge you to upgrade GNU
9085*** binutils to release 2.9.1 or newer. Another option is to modify
9086*** your PATH or compiler configuration so that the native linker is
9087*** used, and then restart.
9088
9089_LT_EOF
9090 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9091 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9092 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9093 else
9094 ld_shlibs=no
9095 fi
9096 ;;
9097
9098 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9099 case `$LD -v 2>&1` in
9100 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9101 ld_shlibs=no
9102 cat <<_LT_EOF 1>&2
9103
9104*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9105*** reliably create shared libraries on SCO systems. Therefore, libtool
9106*** is disabling shared libraries support. We urge you to upgrade GNU
9107*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9108*** your PATH or compiler configuration so that the native linker is
9109*** used, and then restart.
9110
9111_LT_EOF
9112 ;;
9113 *)
9114 # For security reasons, it is highly recommended that you always
9115 # use absolute paths for naming shared libraries, and exclude the
9116 # DT_RUNPATH tag from executables and libraries. But doing so
9117 # requires that you compile everything twice, which is a pain.
9118 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9119 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9120 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9121 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9122 else
9123 ld_shlibs=no
9124 fi
9125 ;;
9126 esac
9127 ;;
9128
9129 sunos4*)
9130 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9131 wlarc=
9132 hardcode_direct=yes
9133 hardcode_shlibpath_var=no
9134 ;;
9135
9136 *)
9137 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9138 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9139 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9140 else
9141 ld_shlibs=no
9142 fi
9143 ;;
9144 esac
9145
9146 if test "$ld_shlibs" = no; then
9147 runpath_var=
9148 hardcode_libdir_flag_spec=
9149 export_dynamic_flag_spec=
9150 whole_archive_flag_spec=
9151 fi
9152 else
9153 # PORTME fill in a description of your system's linker (not GNU ld)
9154 case $host_os in
9155 aix3*)
9156 allow_undefined_flag=unsupported
9157 always_export_symbols=yes
9158 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'
9159 # Note: this linker hardcodes the directories in LIBPATH if there
9160 # are no directories specified by -L.
9161 hardcode_minus_L=yes
9162 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9163 # Neither direct hardcoding nor static linking is supported with a
9164 # broken collect2.
9165 hardcode_direct=unsupported
9166 fi
9167 ;;
9168
50e7d84b 9169 aix[4-9]*)
ce2cded5
L
9170 if test "$host_cpu" = ia64; then
9171 # On IA64, the linker does run time linking by default, so we don't
9172 # have to do anything special.
9173 aix_use_runtimelinking=no
9174 exp_sym_flag='-Bexport'
9175 no_entry_flag=""
9176 else
9177 # If we're using GNU nm, then we don't want the "-C" option.
9178 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9179 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9180 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'
9181 else
9182 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'
9183 fi
9184 aix_use_runtimelinking=no
9185
9186 # Test if we are trying to use run time linking or normal
9187 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9188 # need to do runtime linking.
50e7d84b 9189 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
ce2cded5
L
9190 for ld_flag in $LDFLAGS; do
9191 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9192 aix_use_runtimelinking=yes
9193 break
9194 fi
9195 done
9196 ;;
9197 esac
9198
9199 exp_sym_flag='-bexport'
9200 no_entry_flag='-bnoentry'
9201 fi
9202
9203 # When large executables or shared objects are built, AIX ld can
9204 # have problems creating the table of contents. If linking a library
9205 # or program results in "error TOC overflow" add -mminimal-toc to
9206 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9207 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9208
9209 archive_cmds=''
9210 hardcode_direct=yes
9211 hardcode_direct_absolute=yes
9212 hardcode_libdir_separator=':'
9213 link_all_deplibs=yes
9214 file_list_spec='${wl}-f,'
9215
9216 if test "$GCC" = yes; then
9217 case $host_os in aix4.[012]|aix4.[012].*)
9218 # We only want to do this on AIX 4.2 and lower, the check
9219 # below for broken collect2 doesn't work under 4.3+
9220 collect2name=`${CC} -print-prog-name=collect2`
9221 if test -f "$collect2name" &&
9222 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9223 then
9224 # We have reworked collect2
9225 :
9226 else
9227 # We have old collect2
9228 hardcode_direct=unsupported
9229 # It fails to find uninstalled libraries when the uninstalled
9230 # path is not listed in the libpath. Setting hardcode_minus_L
9231 # to unsupported forces relinking
9232 hardcode_minus_L=yes
9233 hardcode_libdir_flag_spec='-L$libdir'
9234 hardcode_libdir_separator=
9235 fi
9236 ;;
9237 esac
9238 shared_flag='-shared'
9239 if test "$aix_use_runtimelinking" = yes; then
9240 shared_flag="$shared_flag "'${wl}-G'
9241 fi
9242 else
9243 # not using gcc
9244 if test "$host_cpu" = ia64; then
9245 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9246 # chokes on -Wl,-G. The following line is correct:
9247 shared_flag='-G'
9248 else
9249 if test "$aix_use_runtimelinking" = yes; then
9250 shared_flag='${wl}-G'
9251 else
9252 shared_flag='${wl}-bM:SRE'
9253 fi
9254 fi
9255 fi
9256
b214d478 9257 export_dynamic_flag_spec='${wl}-bexpall'
ce2cded5
L
9258 # It seems that -bexpall does not export symbols beginning with
9259 # underscore (_), so it is better to generate a list of symbols to export.
9260 always_export_symbols=yes
9261 if test "$aix_use_runtimelinking" = yes; then
9262 # Warning - without using the other runtime loading flags (-brtl),
9263 # -berok will link without error, but may produce a broken library.
9264 allow_undefined_flag='-berok'
9265 # Determine the default libpath from the value encoded in an
9266 # empty executable.
9267 cat >conftest.$ac_ext <<_ACEOF
9268/* confdefs.h. */
9269_ACEOF
9270cat confdefs.h >>conftest.$ac_ext
9271cat >>conftest.$ac_ext <<_ACEOF
9272/* end confdefs.h. */
9273
9274int
9275main ()
9276{
9277
9278 ;
9279 return 0;
9280}
9281_ACEOF
9282rm -f conftest.$ac_objext conftest$ac_exeext
d7040cdb
SE
9283if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9284 (eval $ac_link) 2>conftest.er1
9285 ac_status=$?
9286 grep -v '^ *+' conftest.er1 >conftest.err
9287 rm -f conftest.er1
9288 cat conftest.err >&5
9289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9290 (exit $ac_status); } &&
7357c5b6
AM
9291 { ac_try='test -z "$ac_c_werror_flag"
9292 || test ! -s conftest.err'
d7040cdb
SE
9293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9294 (eval $ac_try) 2>&5
9295 ac_status=$?
9296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9297 (exit $ac_status); }; } &&
9298 { ac_try='test -s conftest$ac_exeext'
9299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9300 (eval $ac_try) 2>&5
9301 ac_status=$?
9302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303 (exit $ac_status); }; }; then
d7040cdb 9304
ce2cded5
L
9305lt_aix_libpath_sed='
9306 /Import File Strings/,/^$/ {
9307 /^0/ {
9308 s/^0 *\(.*\)$/\1/
9309 p
9310 }
9311 }'
9312aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9313# Check for a 64-bit object if we didn't find anything.
9314if test -z "$aix_libpath"; then
9315 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9316fi
d7040cdb
SE
9317else
9318 echo "$as_me: failed program was:" >&5
9319sed 's/^/| /' conftest.$ac_ext >&5
9320
9321fi
9322rm -f conftest.err conftest.$ac_objext \
9323 conftest$ac_exeext conftest.$ac_ext
ce2cded5 9324if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 9325
ce2cded5
L
9326 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9327 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"
9328 else
9329 if test "$host_cpu" = ia64; then
9330 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9331 allow_undefined_flag="-z nodefs"
9332 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"
9333 else
9334 # Determine the default libpath from the value encoded in an
9335 # empty executable.
9336 cat >conftest.$ac_ext <<_ACEOF
9337/* confdefs.h. */
9338_ACEOF
9339cat confdefs.h >>conftest.$ac_ext
9340cat >>conftest.$ac_ext <<_ACEOF
9341/* end confdefs.h. */
d7040cdb 9342
ce2cded5
L
9343int
9344main ()
9345{
d7040cdb 9346
ce2cded5
L
9347 ;
9348 return 0;
9349}
9350_ACEOF
9351rm -f conftest.$ac_objext conftest$ac_exeext
9352if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9353 (eval $ac_link) 2>conftest.er1
9354 ac_status=$?
9355 grep -v '^ *+' conftest.er1 >conftest.err
9356 rm -f conftest.er1
9357 cat conftest.err >&5
9358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9359 (exit $ac_status); } &&
7357c5b6
AM
9360 { ac_try='test -z "$ac_c_werror_flag"
9361 || test ! -s conftest.err'
ce2cded5
L
9362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9363 (eval $ac_try) 2>&5
9364 ac_status=$?
9365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9366 (exit $ac_status); }; } &&
9367 { ac_try='test -s conftest$ac_exeext'
9368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9369 (eval $ac_try) 2>&5
9370 ac_status=$?
9371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9372 (exit $ac_status); }; }; then
d7040cdb 9373
ce2cded5
L
9374lt_aix_libpath_sed='
9375 /Import File Strings/,/^$/ {
9376 /^0/ {
9377 s/^0 *\(.*\)$/\1/
9378 p
9379 }
9380 }'
9381aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9382# Check for a 64-bit object if we didn't find anything.
9383if test -z "$aix_libpath"; then
9384 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9385fi
9386else
9387 echo "$as_me: failed program was:" >&5
9388sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 9389
ce2cded5
L
9390fi
9391rm -f conftest.err conftest.$ac_objext \
9392 conftest$ac_exeext conftest.$ac_ext
9393if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 9394
ce2cded5
L
9395 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9396 # Warning - without using the other run time loading flags,
9397 # -berok will link without error, but may produce a broken library.
9398 no_undefined_flag=' ${wl}-bernotok'
9399 allow_undefined_flag=' ${wl}-berok'
9400 # Exported symbols can be pulled into shared objects from archives
9401 whole_archive_flag_spec='$convenience'
9402 archive_cmds_need_lc=yes
9403 # This is similar to how AIX traditionally builds its shared libraries.
9404 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'
9405 fi
9406 fi
9407 ;;
d7040cdb 9408
ce2cded5 9409 amigaos*)
b214d478
SE
9410 case $host_cpu in
9411 powerpc)
9412 # see comment about AmigaOS4 .so support
9413 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9414 archive_expsym_cmds=''
9415 ;;
9416 m68k)
9417 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)'
9418 hardcode_libdir_flag_spec='-L$libdir'
9419 hardcode_minus_L=yes
9420 ;;
9421 esac
ce2cded5
L
9422 ;;
9423
9424 bsdi[45]*)
9425 export_dynamic_flag_spec=-rdynamic
9426 ;;
9427
b214d478 9428 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
9429 # When not using gcc, we currently assume that we are using
9430 # Microsoft Visual C++.
9431 # hardcode_libdir_flag_spec is actually meaningless, as there is
9432 # no search path for DLLs.
9433 hardcode_libdir_flag_spec=' '
9434 allow_undefined_flag=unsupported
9435 # Tell ltmain to make .lib files, not .a files.
9436 libext=lib
9437 # Tell ltmain to make .dll files, not .so files.
9438 shrext_cmds=".dll"
9439 # FIXME: Setting linknames here is a bad hack.
9440 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9441 # The linker will automatically build a .lib file if we build a DLL.
9442 old_archive_from_new_cmds='true'
9443 # FIXME: Should let the user specify the lib program.
9444 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9445 fix_srcfile_path='`cygpath -w "$srcfile"`'
9446 enable_shared_with_static_runtimes=yes
9447 ;;
9448
9449 darwin* | rhapsody*)
d7040cdb 9450
b214d478
SE
9451
9452 archive_cmds_need_lc=no
9453 hardcode_direct=no
9454 hardcode_automatic=yes
9455 hardcode_shlibpath_var=unsupported
9456 whole_archive_flag_spec=''
9457 link_all_deplibs=yes
9458 allow_undefined_flag="$_lt_dar_allow_undefined"
9459 case $cc_basename in
9460 ifort*) _lt_dar_can_shared=yes ;;
9461 *) _lt_dar_can_shared=$GCC ;;
9462 esac
9463 if test "$_lt_dar_can_shared" = "yes"; then
9464 output_verbose_link_cmd=echo
9465 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9466 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9467 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9468 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9469
9470 else
9471 ld_shlibs=no
9472 fi
9473
ce2cded5 9474 ;;
d7040cdb 9475
ce2cded5
L
9476 dgux*)
9477 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9478 hardcode_libdir_flag_spec='-L$libdir'
9479 hardcode_shlibpath_var=no
9480 ;;
d7040cdb 9481
ce2cded5
L
9482 freebsd1*)
9483 ld_shlibs=no
9484 ;;
d7040cdb 9485
ce2cded5
L
9486 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9487 # support. Future versions do this automatically, but an explicit c++rt0.o
9488 # does not break anything, and helps significantly (at the cost of a little
9489 # extra space).
9490 freebsd2.2*)
9491 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9492 hardcode_libdir_flag_spec='-R$libdir'
9493 hardcode_direct=yes
9494 hardcode_shlibpath_var=no
d7040cdb 9495 ;;
d7040cdb 9496
ce2cded5
L
9497 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9498 freebsd2*)
9499 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9500 hardcode_direct=yes
9501 hardcode_minus_L=yes
9502 hardcode_shlibpath_var=no
9503 ;;
d7040cdb 9504
ce2cded5
L
9505 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9506 freebsd* | dragonfly*)
9507 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9508 hardcode_libdir_flag_spec='-R$libdir'
9509 hardcode_direct=yes
9510 hardcode_shlibpath_var=no
9511 ;;
d7040cdb 9512
ce2cded5
L
9513 hpux9*)
9514 if test "$GCC" = yes; then
9515 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'
9516 else
9517 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'
9518 fi
9519 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9520 hardcode_libdir_separator=:
9521 hardcode_direct=yes
d7040cdb 9522
ce2cded5
L
9523 # hardcode_minus_L: Not really in the search PATH,
9524 # but as the default location of the library.
9525 hardcode_minus_L=yes
9526 export_dynamic_flag_spec='${wl}-E'
9527 ;;
d7040cdb 9528
ce2cded5
L
9529 hpux10*)
9530 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9531 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9532 else
9533 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9534 fi
9535 if test "$with_gnu_ld" = no; then
9536 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9537 hardcode_libdir_flag_spec_ld='+b $libdir'
9538 hardcode_libdir_separator=:
9539 hardcode_direct=yes
9540 hardcode_direct_absolute=yes
9541 export_dynamic_flag_spec='${wl}-E'
9542 # hardcode_minus_L: Not really in the search PATH,
9543 # but as the default location of the library.
9544 hardcode_minus_L=yes
9545 fi
9546 ;;
d7040cdb 9547
ce2cded5
L
9548 hpux11*)
9549 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9550 case $host_cpu in
9551 hppa*64*)
9552 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9553 ;;
9554 ia64*)
b214d478 9555 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
ce2cded5
L
9556 ;;
9557 *)
9558 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9559 ;;
9560 esac
9561 else
9562 case $host_cpu in
9563 hppa*64*)
9564 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9565 ;;
9566 ia64*)
9567 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9568 ;;
9569 *)
9570 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9571 ;;
9572 esac
9573 fi
9574 if test "$with_gnu_ld" = no; then
9575 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9576 hardcode_libdir_separator=:
d7040cdb 9577
ce2cded5
L
9578 case $host_cpu in
9579 hppa*64*|ia64*)
9580 hardcode_direct=no
9581 hardcode_shlibpath_var=no
9582 ;;
9583 *)
9584 hardcode_direct=yes
9585 hardcode_direct_absolute=yes
9586 export_dynamic_flag_spec='${wl}-E'
d7040cdb 9587
ce2cded5
L
9588 # hardcode_minus_L: Not really in the search PATH,
9589 # but as the default location of the library.
9590 hardcode_minus_L=yes
9591 ;;
9592 esac
9593 fi
9594 ;;
d7040cdb 9595
ce2cded5
L
9596 irix5* | irix6* | nonstopux*)
9597 if test "$GCC" = yes; then
9598 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'
9599 # Try to use the -exported_symbol ld option, if it does not
9600 # work, assume that -exports_file does not work either and
9601 # implicitly export all symbols.
9602 save_LDFLAGS="$LDFLAGS"
9603 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9604 cat >conftest.$ac_ext <<_ACEOF
9605int foo(void) {}
9606_ACEOF
9607rm -f conftest.$ac_objext conftest$ac_exeext
9608if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9609 (eval $ac_link) 2>conftest.er1
9610 ac_status=$?
9611 grep -v '^ *+' conftest.er1 >conftest.err
9612 rm -f conftest.er1
9613 cat conftest.err >&5
9614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9615 (exit $ac_status); } &&
7357c5b6
AM
9616 { ac_try='test -z "$ac_c_werror_flag"
9617 || test ! -s conftest.err'
ce2cded5
L
9618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9619 (eval $ac_try) 2>&5
9620 ac_status=$?
9621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622 (exit $ac_status); }; } &&
9623 { ac_try='test -s conftest$ac_exeext'
9624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9625 (eval $ac_try) 2>&5
9626 ac_status=$?
9627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9628 (exit $ac_status); }; }; then
9629 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 9630
ce2cded5
L
9631else
9632 echo "$as_me: failed program was:" >&5
9633sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 9634
ce2cded5
L
9635fi
9636rm -f conftest.err conftest.$ac_objext \
9637 conftest$ac_exeext conftest.$ac_ext
9638 LDFLAGS="$save_LDFLAGS"
9639 else
9640 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'
9641 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'
9642 fi
9643 archive_cmds_need_lc='no'
9644 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9645 hardcode_libdir_separator=:
9646 inherit_rpath=yes
9647 link_all_deplibs=yes
9648 ;;
d7040cdb 9649
ce2cded5
L
9650 netbsd*)
9651 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9652 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9653 else
9654 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9655 fi
9656 hardcode_libdir_flag_spec='-R$libdir'
9657 hardcode_direct=yes
9658 hardcode_shlibpath_var=no
9659 ;;
d7040cdb 9660
ce2cded5
L
9661 newsos6)
9662 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9663 hardcode_direct=yes
9664 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9665 hardcode_libdir_separator=:
9666 hardcode_shlibpath_var=no
9667 ;;
d7040cdb 9668
ce2cded5
L
9669 *nto* | *qnx*)
9670 ;;
d7040cdb 9671
ce2cded5 9672 openbsd*)
b214d478
SE
9673 if test -f /usr/libexec/ld.so; then
9674 hardcode_direct=yes
9675 hardcode_shlibpath_var=no
9676 hardcode_direct_absolute=yes
9677 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
ce2cded5 9678 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
b214d478 9679 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
ce2cded5 9680 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
b214d478
SE
9681 export_dynamic_flag_spec='${wl}-E'
9682 else
9683 case $host_os in
9684 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9685 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9686 hardcode_libdir_flag_spec='-R$libdir'
9687 ;;
9688 *)
9689 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9690 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9691 ;;
9692 esac
9693 fi
9694 else
9695 ld_shlibs=no
ce2cded5
L
9696 fi
9697 ;;
d7040cdb 9698
ce2cded5
L
9699 os2*)
9700 hardcode_libdir_flag_spec='-L$libdir'
9701 hardcode_minus_L=yes
9702 allow_undefined_flag=unsupported
9703 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'
9704 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9705 ;;
d7040cdb 9706
ce2cded5
L
9707 osf3*)
9708 if test "$GCC" = yes; then
9709 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9710 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'
9711 else
9712 allow_undefined_flag=' -expect_unresolved \*'
9713 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'
9714 fi
9715 archive_cmds_need_lc='no'
9716 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9717 hardcode_libdir_separator=:
9718 ;;
d7040cdb 9719
ce2cded5
L
9720 osf4* | osf5*) # as osf3* with the addition of -msym flag
9721 if test "$GCC" = yes; then
9722 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9723 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'
9724 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9725 else
9726 allow_undefined_flag=' -expect_unresolved \*'
9727 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'
9728 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~
9729 $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 9730
ce2cded5
L
9731 # Both c and cxx compiler support -rpath directly
9732 hardcode_libdir_flag_spec='-rpath $libdir'
9733 fi
9734 archive_cmds_need_lc='no'
9735 hardcode_libdir_separator=:
9736 ;;
d7040cdb 9737
ce2cded5
L
9738 solaris*)
9739 no_undefined_flag=' -z defs'
9740 if test "$GCC" = yes; then
9741 wlarc='${wl}'
9742 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9743 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9744 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9745 else
9746 case `$CC -V 2>&1` in
9747 *"Compilers 5.0"*)
9748 wlarc=''
9749 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9750 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9751 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9752 ;;
9753 *)
9754 wlarc='${wl}'
9755 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9756 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9757 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9758 ;;
9759 esac
9760 fi
9761 hardcode_libdir_flag_spec='-R$libdir'
9762 hardcode_shlibpath_var=no
9763 case $host_os in
9764 solaris2.[0-5] | solaris2.[0-5].*) ;;
9765 *)
9766 # The compiler driver will combine and reorder linker options,
9767 # but understands `-z linker_flag'. GCC discards it without `$wl',
9768 # but is careful enough not to reorder.
9769 # Supported since Solaris 2.6 (maybe 2.5.1?)
9770 if test "$GCC" = yes; then
9771 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9772 else
9773 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9774 fi
9775 ;;
9776 esac
9777 link_all_deplibs=yes
9778 ;;
d7040cdb 9779
ce2cded5
L
9780 sunos4*)
9781 if test "x$host_vendor" = xsequent; then
9782 # Use $CC to link under sequent, because it throws in some extra .o
9783 # files that make .init and .fini sections work.
9784 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9785 else
9786 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9787 fi
9788 hardcode_libdir_flag_spec='-L$libdir'
9789 hardcode_direct=yes
9790 hardcode_minus_L=yes
9791 hardcode_shlibpath_var=no
9792 ;;
d7040cdb 9793
ce2cded5
L
9794 sysv4)
9795 case $host_vendor in
9796 sni)
9797 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9798 hardcode_direct=yes # is this really true???
9799 ;;
9800 siemens)
9801 ## LD is ld it makes a PLAMLIB
9802 ## CC just makes a GrossModule.
9803 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9804 reload_cmds='$CC -r -o $output$reload_objs'
9805 hardcode_direct=no
9806 ;;
9807 motorola)
9808 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9809 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9810 ;;
9811 esac
9812 runpath_var='LD_RUN_PATH'
9813 hardcode_shlibpath_var=no
9814 ;;
d7040cdb 9815
ce2cded5
L
9816 sysv4.3*)
9817 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9818 hardcode_shlibpath_var=no
9819 export_dynamic_flag_spec='-Bexport'
9820 ;;
d7040cdb 9821
ce2cded5
L
9822 sysv4*MP*)
9823 if test -d /usr/nec; then
9824 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9825 hardcode_shlibpath_var=no
9826 runpath_var=LD_RUN_PATH
9827 hardcode_runpath_var=yes
9828 ld_shlibs=yes
9829 fi
9830 ;;
d7040cdb 9831
ce2cded5
L
9832 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9833 no_undefined_flag='${wl}-z,text'
9834 archive_cmds_need_lc=no
9835 hardcode_shlibpath_var=no
9836 runpath_var='LD_RUN_PATH'
d7040cdb 9837
ce2cded5
L
9838 if test "$GCC" = yes; then
9839 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9840 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9841 else
9842 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9843 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9844 fi
9845 ;;
d7040cdb 9846
ce2cded5
L
9847 sysv5* | sco3.2v5* | sco5v6*)
9848 # Note: We can NOT use -z defs as we might desire, because we do not
9849 # link with -lc, and that would cause any symbols used from libc to
9850 # always be unresolved, which means just about no library would
9851 # ever link correctly. If we're not using GNU ld we use -z text
9852 # though, which does catch some bad symbols but isn't as heavy-handed
9853 # as -z defs.
9854 no_undefined_flag='${wl}-z,text'
9855 allow_undefined_flag='${wl}-z,nodefs'
9856 archive_cmds_need_lc=no
9857 hardcode_shlibpath_var=no
9858 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9859 hardcode_libdir_separator=':'
9860 link_all_deplibs=yes
9861 export_dynamic_flag_spec='${wl}-Bexport'
9862 runpath_var='LD_RUN_PATH'
d7040cdb 9863
ce2cded5
L
9864 if test "$GCC" = yes; then
9865 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9866 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9867 else
9868 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9869 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9870 fi
9871 ;;
d7040cdb 9872
ce2cded5
L
9873 uts4*)
9874 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9875 hardcode_libdir_flag_spec='-L$libdir'
9876 hardcode_shlibpath_var=no
9877 ;;
d7040cdb 9878
ce2cded5
L
9879 *)
9880 ld_shlibs=no
9881 ;;
9882 esac
d7040cdb 9883
ce2cded5
L
9884 if test x$host_vendor = xsni; then
9885 case $host in
9886 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9887 export_dynamic_flag_spec='${wl}-Blargedynsym'
9888 ;;
9889 esac
9890 fi
9891 fi
d7040cdb 9892
ce2cded5
L
9893echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9894echo "${ECHO_T}$ld_shlibs" >&6
9895test "$ld_shlibs" = no && can_build_shared=no
d7040cdb 9896
ce2cded5 9897with_gnu_ld=$with_gnu_ld
d7040cdb
SE
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
ce2cded5
L
9913#
9914# Do we need to explicitly link libc?
9915#
9916case "x$archive_cmds_need_lc" in
9917x|xyes)
9918 # Assume -lc should be added
9919 archive_cmds_need_lc=yes
d7040cdb 9920
ce2cded5
L
9921 if test "$enable_shared" = yes && test "$GCC" = yes; then
9922 case $archive_cmds in
9923 *'~'*)
9924 # FIXME: we may have to deal with multi-command sequences.
9925 ;;
9926 '$CC '*)
9927 # Test whether the compiler implicitly links with -lc since on some
9928 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9929 # to ld, don't add -lc before -lgcc.
9930 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9931echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
39144654
RW
9932if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
9933 echo $ECHO_N "(cached) $ECHO_C" >&6
9934else
9935 $RM conftest*
9936 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 9937
39144654 9938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ce2cded5
L
9939 (eval $ac_compile) 2>&5
9940 ac_status=$?
9941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942 (exit $ac_status); } 2>conftest.err; then
39144654
RW
9943 soname=conftest
9944 lib=conftest
9945 libobjs=conftest.$ac_objext
9946 deplibs=
9947 wl=$lt_prog_compiler_wl
9948 pic_flag=$lt_prog_compiler_pic
9949 compiler_flags=-v
9950 linker_flags=-v
9951 verstring=
9952 output_objdir=.
9953 libname=conftest
9954 lt_save_allow_undefined_flag=$allow_undefined_flag
9955 allow_undefined_flag=
9956 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
ce2cded5
L
9957 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9958 ac_status=$?
9959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960 (exit $ac_status); }
39144654
RW
9961 then
9962 lt_cv_archive_cmds_need_lc=no
9963 else
9964 lt_cv_archive_cmds_need_lc=yes
9965 fi
9966 allow_undefined_flag=$lt_save_allow_undefined_flag
9967 else
9968 cat conftest.err 1>&5
9969 fi
9970 $RM conftest*
9971
9972fi
9973echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
9974echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
9975 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
ce2cded5
L
9976 ;;
9977 esac
9978 fi
9979 ;;
9980esac
d7040cdb
SE
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
d7040cdb 10008
d7040cdb 10009
d7040cdb
SE
10010
10011
10012
10013
10014
10015
d7040cdb 10016
d7040cdb 10017
d7040cdb 10018
d7040cdb 10019
d7040cdb 10020
d7040cdb 10021
d7040cdb 10022
d7040cdb 10023
d7040cdb 10024
d7040cdb 10025
d7040cdb 10026
d7040cdb 10027
d7040cdb 10028
d7040cdb 10029
d7040cdb 10030
d7040cdb 10031
d7040cdb 10032
d7040cdb 10033
d7040cdb 10034
d7040cdb 10035
d7040cdb 10036
d7040cdb 10037
d7040cdb 10038
d7040cdb 10039
d7040cdb 10040
d7040cdb 10041
d7040cdb 10042
d7040cdb 10043
ce2cded5
L
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10139echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
b214d478
SE
10140
10141if test "$GCC" = yes; then
ce2cded5
L
10142 case $host_os in
10143 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10144 *) lt_awk_arg="/^libraries:/" ;;
10145 esac
10146 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10147 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10148 # if the path contains ";" then we assume it to be the separator
10149 # otherwise default to the standard path separator (i.e. ":") - it is
10150 # assumed that no part of a normal pathname contains ";" but that should
10151 # okay in the real world where ";" in dirpaths is itself problematic.
10152 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10153 else
10154 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10155 fi
10156 # Ok, now we have the path, separated by spaces, we can step through it
10157 # and add multilib dir if necessary.
10158 lt_tmp_lt_search_path_spec=
10159 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10160 for lt_sys_path in $lt_search_path_spec; do
10161 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10162 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10163 else
10164 test -d "$lt_sys_path" && \
10165 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10166 fi
10167 done
10168 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10169BEGIN {RS=" "; FS="/|\n";} {
10170 lt_foo="";
10171 lt_count=0;
10172 for (lt_i = NF; lt_i > 0; lt_i--) {
10173 if ($lt_i != "" && $lt_i != ".") {
10174 if ($lt_i == "..") {
10175 lt_count++;
10176 } else {
10177 if (lt_count == 0) {
10178 lt_foo="/" $lt_i lt_foo;
10179 } else {
10180 lt_count--;
10181 }
10182 }
10183 }
10184 }
10185 if (lt_foo != "") { lt_freq[lt_foo]++; }
10186 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10187}'`
10188 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
d7040cdb 10189else
ce2cded5
L
10190 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10191fi
10192library_names_spec=
10193libname_spec='lib$name'
10194soname_spec=
10195shrext_cmds=".so"
10196postinstall_cmds=
10197postuninstall_cmds=
10198finish_cmds=
10199finish_eval=
10200shlibpath_var=
10201shlibpath_overrides_runpath=unknown
10202version_type=none
10203dynamic_linker="$host_os ld.so"
10204sys_lib_dlsearch_path_spec="/lib /usr/lib"
10205need_lib_prefix=unknown
10206hardcode_into_libs=no
10207
10208# when you set need_version to no, make sure it does not cause -set_version
10209# flags to be left without arguments
10210need_version=unknown
10211
10212case $host_os in
10213aix3*)
10214 version_type=linux
10215 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10216 shlibpath_var=LIBPATH
10217
10218 # AIX 3 has no versioning support, so we append a major version to the name.
10219 soname_spec='${libname}${release}${shared_ext}$major'
10220 ;;
10221
50e7d84b 10222aix[4-9]*)
ce2cded5
L
10223 version_type=linux
10224 need_lib_prefix=no
10225 need_version=no
10226 hardcode_into_libs=yes
10227 if test "$host_cpu" = ia64; then
10228 # AIX 5 supports IA64
10229 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10230 shlibpath_var=LD_LIBRARY_PATH
10231 else
10232 # With GCC up to 2.95.x, collect2 would create an import file
10233 # for dependence libraries. The import file would start with
10234 # the line `#! .'. This would cause the generated library to
10235 # depend on `.', always an invalid library. This was fixed in
10236 # development snapshots of GCC prior to 3.0.
10237 case $host_os in
10238 aix4 | aix4.[01] | aix4.[01].*)
10239 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10240 echo ' yes '
10241 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10242 :
10243 else
10244 can_build_shared=no
10245 fi
10246 ;;
10247 esac
10248 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10249 # soname into executable. Probably we can add versioning support to
10250 # collect2, so additional links can be useful in future.
10251 if test "$aix_use_runtimelinking" = yes; then
10252 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10253 # instead of lib<name>.a to let people know that these are not
10254 # typical AIX shared libraries.
10255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10256 else
10257 # We preserve .a as extension for shared libraries through AIX4.2
10258 # and later when we are not doing run time linking.
10259 library_names_spec='${libname}${release}.a $libname.a'
10260 soname_spec='${libname}${release}${shared_ext}$major'
10261 fi
10262 shlibpath_var=LIBPATH
10263 fi
10264 ;;
10265
10266amigaos*)
b214d478
SE
10267 case $host_cpu in
10268 powerpc)
10269 # Since July 2007 AmigaOS4 officially supports .so libraries.
10270 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10272 ;;
10273 m68k)
ce2cded5
L
10274 library_names_spec='$libname.ixlibrary $libname.a'
10275 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10276 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'
b214d478
SE
10277 ;;
10278 esac
ce2cded5
L
10279 ;;
10280
10281beos*)
10282 library_names_spec='${libname}${shared_ext}'
10283 dynamic_linker="$host_os ld.so"
10284 shlibpath_var=LIBRARY_PATH
10285 ;;
10286
10287bsdi[45]*)
10288 version_type=linux
10289 need_version=no
10290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10291 soname_spec='${libname}${release}${shared_ext}$major'
10292 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10293 shlibpath_var=LD_LIBRARY_PATH
10294 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10295 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10296 # the default ld.so.conf also contains /usr/contrib/lib and
10297 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10298 # libtool to hard-code these into programs
10299 ;;
10300
b214d478 10301cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
10302 version_type=windows
10303 shrext_cmds=".dll"
10304 need_version=no
10305 need_lib_prefix=no
10306
b214d478
SE
10307 case $GCC,$host_os in
10308 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
ce2cded5
L
10309 library_names_spec='$libname.dll.a'
10310 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10311 postinstall_cmds='base_file=`basename \${file}`~
10312 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10313 dldir=$destdir/`dirname \$dlpath`~
10314 test -d \$dldir || mkdir -p \$dldir~
10315 $install_prog $dir/$dlname \$dldir/$dlname~
10316 chmod a+x \$dldir/$dlname~
10317 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10318 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10319 fi'
10320 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10321 dlpath=$dir/\$dldll~
10322 $RM \$dlpath'
10323 shlibpath_overrides_runpath=yes
10324
10325 case $host_os in
10326 cygwin*)
10327 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10328 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10329 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10330 ;;
b214d478 10331 mingw* | cegcc*)
ce2cded5
L
10332 # MinGW DLLs use traditional 'lib' prefix
10333 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10334 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10335 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10336 # It is most probably a Windows format PATH printed by
10337 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10338 # path with ; separators, and with drive letters. We can handle the
10339 # drive letters (cygwin fileutils understands them), so leave them,
10340 # especially as we might pass files found there to a mingw objdump,
10341 # which wouldn't understand a cygwinified path. Ahh.
10342 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10343 else
10344 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10345 fi
10346 ;;
10347 pw32*)
10348 # pw32 DLLs use 'pw' prefix rather than 'lib'
10349 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10350 ;;
10351 esac
10352 ;;
10353
10354 *)
10355 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10356 ;;
10357 esac
10358 dynamic_linker='Win32 ld.exe'
10359 # FIXME: first we should search . and the directory the executable is in
10360 shlibpath_var=PATH
10361 ;;
10362
10363darwin* | rhapsody*)
10364 dynamic_linker="$host_os dyld"
10365 version_type=darwin
10366 need_lib_prefix=no
10367 need_version=no
10368 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10369 soname_spec='${libname}${release}${major}$shared_ext'
10370 shlibpath_overrides_runpath=yes
10371 shlibpath_var=DYLD_LIBRARY_PATH
10372 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10373
10374 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10375 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10376 ;;
10377
10378dgux*)
10379 version_type=linux
10380 need_lib_prefix=no
10381 need_version=no
10382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10383 soname_spec='${libname}${release}${shared_ext}$major'
10384 shlibpath_var=LD_LIBRARY_PATH
10385 ;;
10386
10387freebsd1*)
10388 dynamic_linker=no
10389 ;;
10390
10391freebsd* | dragonfly*)
10392 # DragonFly does not have aout. When/if they implement a new
10393 # versioning mechanism, adjust this.
10394 if test -x /usr/bin/objformat; then
10395 objformat=`/usr/bin/objformat`
10396 else
10397 case $host_os in
10398 freebsd[123]*) objformat=aout ;;
10399 *) objformat=elf ;;
10400 esac
10401 fi
10402 version_type=freebsd-$objformat
10403 case $version_type in
10404 freebsd-elf*)
10405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10406 need_version=no
10407 need_lib_prefix=no
10408 ;;
10409 freebsd-*)
10410 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10411 need_version=yes
10412 ;;
10413 esac
10414 shlibpath_var=LD_LIBRARY_PATH
10415 case $host_os in
10416 freebsd2*)
10417 shlibpath_overrides_runpath=yes
10418 ;;
10419 freebsd3.[01]* | freebsdelf3.[01]*)
10420 shlibpath_overrides_runpath=yes
10421 hardcode_into_libs=yes
10422 ;;
10423 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10424 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10425 shlibpath_overrides_runpath=no
10426 hardcode_into_libs=yes
10427 ;;
10428 *) # from 4.6 on, and DragonFly
10429 shlibpath_overrides_runpath=yes
10430 hardcode_into_libs=yes
10431 ;;
10432 esac
10433 ;;
10434
10435gnu*)
10436 version_type=linux
10437 need_lib_prefix=no
10438 need_version=no
10439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10440 soname_spec='${libname}${release}${shared_ext}$major'
10441 shlibpath_var=LD_LIBRARY_PATH
10442 hardcode_into_libs=yes
10443 ;;
10444
10445hpux9* | hpux10* | hpux11*)
10446 # Give a soname corresponding to the major version so that dld.sl refuses to
10447 # link against other versions.
10448 version_type=sunos
10449 need_lib_prefix=no
10450 need_version=no
10451 case $host_cpu in
10452 ia64*)
10453 shrext_cmds='.so'
10454 hardcode_into_libs=yes
10455 dynamic_linker="$host_os dld.so"
10456 shlibpath_var=LD_LIBRARY_PATH
10457 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10459 soname_spec='${libname}${release}${shared_ext}$major'
10460 if test "X$HPUX_IA64_MODE" = X32; then
10461 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10462 else
10463 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10464 fi
10465 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10466 ;;
10467 hppa*64*)
10468 shrext_cmds='.sl'
10469 hardcode_into_libs=yes
10470 dynamic_linker="$host_os dld.sl"
10471 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10472 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10474 soname_spec='${libname}${release}${shared_ext}$major'
10475 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10476 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10477 ;;
10478 *)
10479 shrext_cmds='.sl'
10480 dynamic_linker="$host_os dld.sl"
10481 shlibpath_var=SHLIB_PATH
10482 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10484 soname_spec='${libname}${release}${shared_ext}$major'
10485 ;;
10486 esac
10487 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10488 postinstall_cmds='chmod 555 $lib'
10489 ;;
10490
10491interix[3-9]*)
10492 version_type=linux
10493 need_lib_prefix=no
10494 need_version=no
10495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10496 soname_spec='${libname}${release}${shared_ext}$major'
10497 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10498 shlibpath_var=LD_LIBRARY_PATH
10499 shlibpath_overrides_runpath=no
10500 hardcode_into_libs=yes
10501 ;;
10502
10503irix5* | irix6* | nonstopux*)
10504 case $host_os in
10505 nonstopux*) version_type=nonstopux ;;
10506 *)
10507 if test "$lt_cv_prog_gnu_ld" = yes; then
10508 version_type=linux
10509 else
10510 version_type=irix
10511 fi ;;
10512 esac
10513 need_lib_prefix=no
10514 need_version=no
10515 soname_spec='${libname}${release}${shared_ext}$major'
10516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10517 case $host_os in
10518 irix5* | nonstopux*)
10519 libsuff= shlibsuff=
10520 ;;
10521 *)
10522 case $LD in # libtool.m4 will add one of these switches to LD
10523 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10524 libsuff= shlibsuff= libmagic=32-bit;;
10525 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10526 libsuff=32 shlibsuff=N32 libmagic=N32;;
10527 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10528 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10529 *) libsuff= shlibsuff= libmagic=never-match;;
10530 esac
10531 ;;
10532 esac
10533 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10534 shlibpath_overrides_runpath=no
10535 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10536 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10537 hardcode_into_libs=yes
10538 ;;
10539
10540# No shared lib support for Linux oldld, aout, or coff.
10541linux*oldld* | linux*aout* | linux*coff*)
10542 dynamic_linker=no
10543 ;;
10544
10545# This must be Linux ELF.
58e24671 10546linux* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5
L
10547 version_type=linux
10548 need_lib_prefix=no
10549 need_version=no
10550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10551 soname_spec='${libname}${release}${shared_ext}$major'
10552 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10553 shlibpath_var=LD_LIBRARY_PATH
10554 shlibpath_overrides_runpath=no
39144654 10555
ce2cded5 10556 # Some binutils ld are patched to set DT_RUNPATH
39144654
RW
10557 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
10558 echo $ECHO_N "(cached) $ECHO_C" >&6
10559else
10560 lt_cv_shlibpath_overrides_runpath=no
10561 save_LDFLAGS=$LDFLAGS
10562 save_libdir=$libdir
10563 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10564 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10565 cat >conftest.$ac_ext <<_ACEOF
d7040cdb
SE
10566/* confdefs.h. */
10567_ACEOF
10568cat confdefs.h >>conftest.$ac_ext
10569cat >>conftest.$ac_ext <<_ACEOF
10570/* end confdefs.h. */
10571
d7040cdb
SE
10572int
10573main ()
10574{
ce2cded5 10575
d7040cdb
SE
10576 ;
10577 return 0;
10578}
10579_ACEOF
10580rm -f conftest.$ac_objext conftest$ac_exeext
10581if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10582 (eval $ac_link) 2>conftest.er1
10583 ac_status=$?
10584 grep -v '^ *+' conftest.er1 >conftest.err
10585 rm -f conftest.er1
10586 cat conftest.err >&5
10587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10588 (exit $ac_status); } &&
7357c5b6
AM
10589 { ac_try='test -z "$ac_c_werror_flag"
10590 || test ! -s conftest.err'
d7040cdb
SE
10591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10592 (eval $ac_try) 2>&5
10593 ac_status=$?
10594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
10595 (exit $ac_status); }; } &&
10596 { ac_try='test -s conftest$ac_exeext'
10597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10598 (eval $ac_try) 2>&5
10599 ac_status=$?
10600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601 (exit $ac_status); }; }; then
b214d478 10602 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
39144654 10603 lt_cv_shlibpath_overrides_runpath=yes
d7040cdb 10604fi
d7040cdb 10605
ce2cded5
L
10606else
10607 echo "$as_me: failed program was:" >&5
10608sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb
SE
10609
10610fi
ce2cded5
L
10611rm -f conftest.err conftest.$ac_objext \
10612 conftest$ac_exeext conftest.$ac_ext
39144654
RW
10613 LDFLAGS=$save_LDFLAGS
10614 libdir=$save_libdir
10615
10616fi
10617
10618 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
d7040cdb 10619
ce2cded5
L
10620 # This implies no fast_install, which is unacceptable.
10621 # Some rework will be needed to allow for fast_install
10622 # before this can be enabled.
10623 hardcode_into_libs=yes
d7040cdb 10624
ce2cded5
L
10625 # Append ld.so.conf contents to the search path
10626 if test -f /etc/ld.so.conf; then
b214d478 10627 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
ce2cded5
L
10628 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10629 fi
d7040cdb 10630
ce2cded5
L
10631 # We used to test for /lib/ld.so.1 and disable shared libraries on
10632 # powerpc, because MkLinux only supported shared libraries with the
10633 # GNU dynamic linker. Since this was broken with cross compilers,
10634 # most powerpc-linux boxes support dynamic linking these days and
10635 # people can always --disable-shared, the test was removed, and we
10636 # assume the GNU/Linux dynamic linker is in use.
10637 dynamic_linker='GNU/Linux ld.so'
10638 ;;
d7040cdb 10639
ce2cded5
L
10640netbsd*)
10641 version_type=sunos
10642 need_lib_prefix=no
10643 need_version=no
10644 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10646 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10647 dynamic_linker='NetBSD (a.out) ld.so'
10648 else
10649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10650 soname_spec='${libname}${release}${shared_ext}$major'
10651 dynamic_linker='NetBSD ld.elf_so'
10652 fi
10653 shlibpath_var=LD_LIBRARY_PATH
10654 shlibpath_overrides_runpath=yes
10655 hardcode_into_libs=yes
10656 ;;
d7040cdb 10657
ce2cded5
L
10658newsos6)
10659 version_type=linux
10660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10661 shlibpath_var=LD_LIBRARY_PATH
10662 shlibpath_overrides_runpath=yes
10663 ;;
d7040cdb 10664
ce2cded5
L
10665*nto* | *qnx*)
10666 version_type=qnx
10667 need_lib_prefix=no
10668 need_version=no
10669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10670 soname_spec='${libname}${release}${shared_ext}$major'
10671 shlibpath_var=LD_LIBRARY_PATH
10672 shlibpath_overrides_runpath=no
10673 hardcode_into_libs=yes
10674 dynamic_linker='ldqnx.so'
10675 ;;
d7040cdb 10676
ce2cded5
L
10677openbsd*)
10678 version_type=sunos
10679 sys_lib_dlsearch_path_spec="/usr/lib"
10680 need_lib_prefix=no
10681 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10682 case $host_os in
10683 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10684 *) need_version=no ;;
10685 esac
10686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10687 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10688 shlibpath_var=LD_LIBRARY_PATH
10689 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10690 case $host_os in
10691 openbsd2.[89] | openbsd2.[89].*)
10692 shlibpath_overrides_runpath=no
10693 ;;
10694 *)
10695 shlibpath_overrides_runpath=yes
10696 ;;
10697 esac
10698 else
10699 shlibpath_overrides_runpath=yes
10700 fi
10701 ;;
d7040cdb 10702
ce2cded5
L
10703os2*)
10704 libname_spec='$name'
10705 shrext_cmds=".dll"
10706 need_lib_prefix=no
10707 library_names_spec='$libname${shared_ext} $libname.a'
10708 dynamic_linker='OS/2 ld.exe'
10709 shlibpath_var=LIBPATH
10710 ;;
d7040cdb 10711
ce2cded5
L
10712osf3* | osf4* | osf5*)
10713 version_type=osf
10714 need_lib_prefix=no
10715 need_version=no
10716 soname_spec='${libname}${release}${shared_ext}$major'
10717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10718 shlibpath_var=LD_LIBRARY_PATH
10719 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10720 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10721 ;;
d7040cdb 10722
ce2cded5
L
10723rdos*)
10724 dynamic_linker=no
10725 ;;
d7040cdb 10726
ce2cded5
L
10727solaris*)
10728 version_type=linux
10729 need_lib_prefix=no
10730 need_version=no
10731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10732 soname_spec='${libname}${release}${shared_ext}$major'
10733 shlibpath_var=LD_LIBRARY_PATH
10734 shlibpath_overrides_runpath=yes
10735 hardcode_into_libs=yes
10736 # ldd complains unless libraries are executable
10737 postinstall_cmds='chmod +x $lib'
10738 ;;
d7040cdb 10739
ce2cded5
L
10740sunos4*)
10741 version_type=sunos
10742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10743 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10744 shlibpath_var=LD_LIBRARY_PATH
10745 shlibpath_overrides_runpath=yes
10746 if test "$with_gnu_ld" = yes; then
10747 need_lib_prefix=no
10748 fi
10749 need_version=yes
10750 ;;
d7040cdb 10751
ce2cded5
L
10752sysv4 | sysv4.3*)
10753 version_type=linux
10754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10755 soname_spec='${libname}${release}${shared_ext}$major'
10756 shlibpath_var=LD_LIBRARY_PATH
10757 case $host_vendor in
10758 sni)
10759 shlibpath_overrides_runpath=no
10760 need_lib_prefix=no
10761 runpath_var=LD_RUN_PATH
10762 ;;
10763 siemens)
10764 need_lib_prefix=no
10765 ;;
10766 motorola)
10767 need_lib_prefix=no
10768 need_version=no
10769 shlibpath_overrides_runpath=no
10770 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10771 ;;
10772 esac
10773 ;;
d7040cdb 10774
ce2cded5
L
10775sysv4*MP*)
10776 if test -d /usr/nec ;then
10777 version_type=linux
10778 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10779 soname_spec='$libname${shared_ext}.$major'
10780 shlibpath_var=LD_LIBRARY_PATH
10781 fi
10782 ;;
d7040cdb 10783
ce2cded5
L
10784sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10785 version_type=freebsd-elf
10786 need_lib_prefix=no
10787 need_version=no
10788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10789 soname_spec='${libname}${release}${shared_ext}$major'
10790 shlibpath_var=LD_LIBRARY_PATH
10791 shlibpath_overrides_runpath=yes
10792 hardcode_into_libs=yes
10793 if test "$with_gnu_ld" = yes; then
10794 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10795 else
10796 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10797 case $host_os in
10798 sco3.2v5*)
10799 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10800 ;;
10801 esac
10802 fi
10803 sys_lib_dlsearch_path_spec='/usr/lib'
10804 ;;
d7040cdb 10805
ce2cded5
L
10806tpf*)
10807 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10808 version_type=linux
10809 need_lib_prefix=no
10810 need_version=no
b214d478 10811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
ce2cded5
L
10812 shlibpath_var=LD_LIBRARY_PATH
10813 shlibpath_overrides_runpath=no
10814 hardcode_into_libs=yes
10815 ;;
d7040cdb 10816
ce2cded5
L
10817uts4*)
10818 version_type=linux
10819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10820 soname_spec='${libname}${release}${shared_ext}$major'
10821 shlibpath_var=LD_LIBRARY_PATH
10822 ;;
d7040cdb 10823
ce2cded5
L
10824*)
10825 dynamic_linker=no
10826 ;;
10827esac
10828echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10829echo "${ECHO_T}$dynamic_linker" >&6
10830test "$dynamic_linker" = no && can_build_shared=no
10831
10832variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10833if test "$GCC" = yes; then
10834 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
d7040cdb
SE
10835fi
10836
b214d478
SE
10837if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10838 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10839fi
10840if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10841 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10842fi
10843
d7040cdb
SE
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
d7040cdb 10855
d7040cdb 10856
d7040cdb 10857
d7040cdb 10858
d7040cdb
SE
10859
10860
10861
10862
d7040cdb 10863
d7040cdb
SE
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
d7040cdb
SE
10877
10878
10879
10880
d7040cdb
SE
10881
10882
10883
10884
d7040cdb 10885
d7040cdb 10886
d7040cdb 10887
d7040cdb 10888
d7040cdb 10889
d7040cdb 10890
d7040cdb 10891
d7040cdb
SE
10892
10893
10894
10895
10896
d7040cdb 10897
d7040cdb 10898
d7040cdb 10899
d7040cdb 10900
d7040cdb 10901
d7040cdb 10902
d7040cdb
SE
10903
10904
10905
10906
10907
d7040cdb
SE
10908
10909
d7040cdb 10910
d7040cdb 10911
d7040cdb 10912
d7040cdb 10913
ce2cded5
L
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10931echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10932hardcode_action=
10933if test -n "$hardcode_libdir_flag_spec" ||
10934 test -n "$runpath_var" ||
10935 test "X$hardcode_automatic" = "Xyes" ; then
10936
10937 # We can hardcode non-existent directories.
10938 if test "$hardcode_direct" != no &&
10939 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10940 # have to relink, otherwise we might link with an installed library
10941 # when we should be linking with a yet-to-be-installed one
10942 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10943 test "$hardcode_minus_L" != no; then
10944 # Linking always hardcodes the temporary library directory.
10945 hardcode_action=relink
10946 else
10947 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10948 hardcode_action=immediate
d7040cdb 10949 fi
d7040cdb 10950else
ce2cded5
L
10951 # We cannot hardcode anything, or else we can only hardcode existing
10952 # directories.
10953 hardcode_action=unsupported
d7040cdb 10954fi
ce2cded5
L
10955echo "$as_me:$LINENO: result: $hardcode_action" >&5
10956echo "${ECHO_T}$hardcode_action" >&6
d7040cdb 10957
ce2cded5
L
10958if test "$hardcode_action" = relink ||
10959 test "$inherit_rpath" = yes; then
10960 # Fast installation is not supported
10961 enable_fast_install=no
10962elif test "$shlibpath_overrides_runpath" = yes ||
10963 test "$enable_shared" = no; then
10964 # Fast installation is not necessary
10965 enable_fast_install=needless
d7040cdb
SE
10966fi
10967
d7040cdb 10968
d7040cdb 10969
d7040cdb 10970
d7040cdb 10971
d7040cdb 10972
ce2cded5
L
10973 if test "x$enable_dlopen" != xyes; then
10974 enable_dlopen=unknown
10975 enable_dlopen_self=unknown
10976 enable_dlopen_self_static=unknown
d7040cdb 10977else
ce2cded5
L
10978 lt_cv_dlopen=no
10979 lt_cv_dlopen_libs=
d7040cdb 10980
ce2cded5
L
10981 case $host_os in
10982 beos*)
10983 lt_cv_dlopen="load_add_on"
10984 lt_cv_dlopen_libs=
10985 lt_cv_dlopen_self=yes
10986 ;;
d7040cdb 10987
b214d478 10988 mingw* | pw32* | cegcc*)
ce2cded5
L
10989 lt_cv_dlopen="LoadLibrary"
10990 lt_cv_dlopen_libs=
10991 ;;
10992
10993 cygwin*)
10994 lt_cv_dlopen="dlopen"
10995 lt_cv_dlopen_libs=
10996 ;;
10997
10998 darwin*)
10999 # if libdl is installed we need to link against it
11000 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11001echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11002if test "${ac_cv_lib_dl_dlopen+set}" = set; then
d7040cdb
SE
11003 echo $ECHO_N "(cached) $ECHO_C" >&6
11004else
ce2cded5
L
11005 ac_check_lib_save_LIBS=$LIBS
11006LIBS="-ldl $LIBS"
11007cat >conftest.$ac_ext <<_ACEOF
11008/* confdefs.h. */
11009_ACEOF
11010cat confdefs.h >>conftest.$ac_ext
11011cat >>conftest.$ac_ext <<_ACEOF
11012/* end confdefs.h. */
11013
11014/* Override any gcc2 internal prototype to avoid an error. */
11015#ifdef __cplusplus
11016extern "C"
11017#endif
11018/* We use char because int might match the return type of a gcc2
11019 builtin and then its argument prototype would still apply. */
11020char dlopen ();
11021int
11022main ()
11023{
11024dlopen ();
11025 ;
11026 return 0;
11027}
11028_ACEOF
11029rm -f conftest.$ac_objext conftest$ac_exeext
11030if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11031 (eval $ac_link) 2>conftest.er1
11032 ac_status=$?
11033 grep -v '^ *+' conftest.er1 >conftest.err
11034 rm -f conftest.er1
11035 cat conftest.err >&5
11036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037 (exit $ac_status); } &&
7357c5b6
AM
11038 { ac_try='test -z "$ac_c_werror_flag"
11039 || test ! -s conftest.err'
ce2cded5
L
11040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11041 (eval $ac_try) 2>&5
11042 ac_status=$?
11043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11044 (exit $ac_status); }; } &&
11045 { ac_try='test -s conftest$ac_exeext'
11046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11047 (eval $ac_try) 2>&5
11048 ac_status=$?
11049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050 (exit $ac_status); }; }; then
11051 ac_cv_lib_dl_dlopen=yes
11052else
11053 echo "$as_me: failed program was:" >&5
11054sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 11055
ce2cded5 11056ac_cv_lib_dl_dlopen=no
d7040cdb 11057fi
ce2cded5
L
11058rm -f conftest.err conftest.$ac_objext \
11059 conftest$ac_exeext conftest.$ac_ext
11060LIBS=$ac_check_lib_save_LIBS
d7040cdb 11061fi
ce2cded5
L
11062echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11063echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11064if test $ac_cv_lib_dl_dlopen = yes; then
11065 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d7040cdb 11066else
d7040cdb 11067
ce2cded5
L
11068 lt_cv_dlopen="dyld"
11069 lt_cv_dlopen_libs=
11070 lt_cv_dlopen_self=yes
11071
d7040cdb 11072fi
ce2cded5
L
11073
11074 ;;
11075
11076 *)
11077 echo "$as_me:$LINENO: checking for shl_load" >&5
11078echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11079if test "${ac_cv_func_shl_load+set}" = set; then
d7040cdb
SE
11080 echo $ECHO_N "(cached) $ECHO_C" >&6
11081else
ce2cded5
L
11082 cat >conftest.$ac_ext <<_ACEOF
11083/* confdefs.h. */
11084_ACEOF
11085cat confdefs.h >>conftest.$ac_ext
11086cat >>conftest.$ac_ext <<_ACEOF
11087/* end confdefs.h. */
11088/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11089 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11090#define shl_load innocuous_shl_load
d7040cdb 11091
ce2cded5
L
11092/* System header to define __stub macros and hopefully few prototypes,
11093 which can conflict with char shl_load (); below.
11094 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11095 <limits.h> exists even on freestanding compilers. */
d7040cdb 11096
ce2cded5
L
11097#ifdef __STDC__
11098# include <limits.h>
11099#else
11100# include <assert.h>
11101#endif
d7040cdb 11102
ce2cded5 11103#undef shl_load
d7040cdb 11104
ce2cded5
L
11105/* Override any gcc2 internal prototype to avoid an error. */
11106#ifdef __cplusplus
11107extern "C"
11108{
11109#endif
11110/* We use char because int might match the return type of a gcc2
11111 builtin and then its argument prototype would still apply. */
11112char shl_load ();
11113/* The GNU C library defines this for functions which it implements
11114 to always fail with ENOSYS. Some functions are actually named
11115 something starting with __ and the normal name is an alias. */
11116#if defined (__stub_shl_load) || defined (__stub___shl_load)
11117choke me
11118#else
11119char (*f) () = shl_load;
11120#endif
11121#ifdef __cplusplus
11122}
11123#endif
d7040cdb 11124
ce2cded5
L
11125int
11126main ()
11127{
11128return f != shl_load;
11129 ;
11130 return 0;
11131}
11132_ACEOF
11133rm -f conftest.$ac_objext conftest$ac_exeext
11134if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11135 (eval $ac_link) 2>conftest.er1
11136 ac_status=$?
11137 grep -v '^ *+' conftest.er1 >conftest.err
11138 rm -f conftest.er1
11139 cat conftest.err >&5
11140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141 (exit $ac_status); } &&
7357c5b6
AM
11142 { ac_try='test -z "$ac_c_werror_flag"
11143 || test ! -s conftest.err'
ce2cded5
L
11144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11145 (eval $ac_try) 2>&5
11146 ac_status=$?
11147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11148 (exit $ac_status); }; } &&
11149 { ac_try='test -s conftest$ac_exeext'
11150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11151 (eval $ac_try) 2>&5
11152 ac_status=$?
11153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11154 (exit $ac_status); }; }; then
11155 ac_cv_func_shl_load=yes
11156else
11157 echo "$as_me: failed program was:" >&5
11158sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 11159
ce2cded5
L
11160ac_cv_func_shl_load=no
11161fi
11162rm -f conftest.err conftest.$ac_objext \
11163 conftest$ac_exeext conftest.$ac_ext
11164fi
11165echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11166echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11167if test $ac_cv_func_shl_load = yes; then
11168 lt_cv_dlopen="shl_load"
11169else
11170 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11171echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11172if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11173 echo $ECHO_N "(cached) $ECHO_C" >&6
11174else
11175 ac_check_lib_save_LIBS=$LIBS
11176LIBS="-ldld $LIBS"
11177cat >conftest.$ac_ext <<_ACEOF
11178/* confdefs.h. */
11179_ACEOF
11180cat confdefs.h >>conftest.$ac_ext
11181cat >>conftest.$ac_ext <<_ACEOF
11182/* end confdefs.h. */
d7040cdb 11183
ce2cded5
L
11184/* Override any gcc2 internal prototype to avoid an error. */
11185#ifdef __cplusplus
11186extern "C"
11187#endif
11188/* We use char because int might match the return type of a gcc2
11189 builtin and then its argument prototype would still apply. */
11190char shl_load ();
11191int
11192main ()
11193{
11194shl_load ();
11195 ;
11196 return 0;
11197}
11198_ACEOF
11199rm -f conftest.$ac_objext conftest$ac_exeext
11200if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11201 (eval $ac_link) 2>conftest.er1
d7040cdb 11202 ac_status=$?
ce2cded5
L
11203 grep -v '^ *+' conftest.er1 >conftest.err
11204 rm -f conftest.er1
11205 cat conftest.err >&5
d7040cdb 11206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5 11207 (exit $ac_status); } &&
7357c5b6
AM
11208 { ac_try='test -z "$ac_c_werror_flag"
11209 || test ! -s conftest.err'
ce2cded5
L
11210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11211 (eval $ac_try) 2>&5
d7040cdb
SE
11212 ac_status=$?
11213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
11214 (exit $ac_status); }; } &&
11215 { ac_try='test -s conftest$ac_exeext'
11216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11217 (eval $ac_try) 2>&5
d7040cdb
SE
11218 ac_status=$?
11219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
11220 (exit $ac_status); }; }; then
11221 ac_cv_lib_dld_shl_load=yes
11222else
11223 echo "$as_me: failed program was:" >&5
11224sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 11225
ce2cded5
L
11226ac_cv_lib_dld_shl_load=no
11227fi
11228rm -f conftest.err conftest.$ac_objext \
11229 conftest$ac_exeext conftest.$ac_ext
11230LIBS=$ac_check_lib_save_LIBS
11231fi
11232echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11233echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11234if test $ac_cv_lib_dld_shl_load = yes; then
b214d478 11235 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
ce2cded5
L
11236else
11237 echo "$as_me:$LINENO: checking for dlopen" >&5
11238echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11239if test "${ac_cv_func_dlopen+set}" = set; then
d7040cdb
SE
11240 echo $ECHO_N "(cached) $ECHO_C" >&6
11241else
11242 cat >conftest.$ac_ext <<_ACEOF
11243/* confdefs.h. */
11244_ACEOF
11245cat confdefs.h >>conftest.$ac_ext
11246cat >>conftest.$ac_ext <<_ACEOF
11247/* end confdefs.h. */
ce2cded5
L
11248/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11249 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11250#define dlopen innocuous_dlopen
11251
11252/* System header to define __stub macros and hopefully few prototypes,
11253 which can conflict with char dlopen (); below.
11254 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11255 <limits.h> exists even on freestanding compilers. */
11256
11257#ifdef __STDC__
11258# include <limits.h>
11259#else
11260# include <assert.h>
11261#endif
11262
11263#undef dlopen
11264
11265/* Override any gcc2 internal prototype to avoid an error. */
11266#ifdef __cplusplus
11267extern "C"
11268{
11269#endif
11270/* We use char because int might match the return type of a gcc2
11271 builtin and then its argument prototype would still apply. */
11272char dlopen ();
11273/* The GNU C library defines this for functions which it implements
11274 to always fail with ENOSYS. Some functions are actually named
11275 something starting with __ and the normal name is an alias. */
11276#if defined (__stub_dlopen) || defined (__stub___dlopen)
11277choke me
11278#else
11279char (*f) () = dlopen;
11280#endif
11281#ifdef __cplusplus
11282}
11283#endif
d7040cdb
SE
11284
11285int
11286main ()
11287{
ce2cded5 11288return f != dlopen;
d7040cdb
SE
11289 ;
11290 return 0;
11291}
11292_ACEOF
ce2cded5
L
11293rm -f conftest.$ac_objext conftest$ac_exeext
11294if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11295 (eval $ac_link) 2>conftest.er1
d7040cdb
SE
11296 ac_status=$?
11297 grep -v '^ *+' conftest.er1 >conftest.err
11298 rm -f conftest.er1
11299 cat conftest.err >&5
11300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11301 (exit $ac_status); } &&
7357c5b6
AM
11302 { ac_try='test -z "$ac_c_werror_flag"
11303 || test ! -s conftest.err'
d7040cdb
SE
11304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11305 (eval $ac_try) 2>&5
11306 ac_status=$?
11307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11308 (exit $ac_status); }; } &&
ce2cded5 11309 { ac_try='test -s conftest$ac_exeext'
d7040cdb
SE
11310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11311 (eval $ac_try) 2>&5
11312 ac_status=$?
11313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314 (exit $ac_status); }; }; then
ce2cded5 11315 ac_cv_func_dlopen=yes
d7040cdb
SE
11316else
11317 echo "$as_me: failed program was:" >&5
11318sed 's/^/| /' conftest.$ac_ext >&5
11319
ce2cded5 11320ac_cv_func_dlopen=no
d7040cdb 11321fi
ce2cded5
L
11322rm -f conftest.err conftest.$ac_objext \
11323 conftest$ac_exeext conftest.$ac_ext
d7040cdb 11324fi
ce2cded5
L
11325echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11326echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11327if test $ac_cv_func_dlopen = yes; then
11328 lt_cv_dlopen="dlopen"
11329else
11330 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11331echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11332if test "${ac_cv_lib_dl_dlopen+set}" = set; then
d7040cdb
SE
11333 echo $ECHO_N "(cached) $ECHO_C" >&6
11334else
ce2cded5
L
11335 ac_check_lib_save_LIBS=$LIBS
11336LIBS="-ldl $LIBS"
11337cat >conftest.$ac_ext <<_ACEOF
d7040cdb
SE
11338/* confdefs.h. */
11339_ACEOF
11340cat confdefs.h >>conftest.$ac_ext
11341cat >>conftest.$ac_ext <<_ACEOF
11342/* end confdefs.h. */
11343
ce2cded5
L
11344/* Override any gcc2 internal prototype to avoid an error. */
11345#ifdef __cplusplus
11346extern "C"
11347#endif
11348/* We use char because int might match the return type of a gcc2
11349 builtin and then its argument prototype would still apply. */
11350char dlopen ();
d7040cdb
SE
11351int
11352main ()
11353{
ce2cded5 11354dlopen ();
d7040cdb
SE
11355 ;
11356 return 0;
11357}
11358_ACEOF
ce2cded5
L
11359rm -f conftest.$ac_objext conftest$ac_exeext
11360if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11361 (eval $ac_link) 2>conftest.er1
d7040cdb
SE
11362 ac_status=$?
11363 grep -v '^ *+' conftest.er1 >conftest.err
11364 rm -f conftest.er1
11365 cat conftest.err >&5
11366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11367 (exit $ac_status); } &&
7357c5b6
AM
11368 { ac_try='test -z "$ac_c_werror_flag"
11369 || test ! -s conftest.err'
d7040cdb
SE
11370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11371 (eval $ac_try) 2>&5
11372 ac_status=$?
11373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374 (exit $ac_status); }; } &&
ce2cded5 11375 { ac_try='test -s conftest$ac_exeext'
d7040cdb
SE
11376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11377 (eval $ac_try) 2>&5
11378 ac_status=$?
11379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380 (exit $ac_status); }; }; then
ce2cded5 11381 ac_cv_lib_dl_dlopen=yes
d7040cdb
SE
11382else
11383 echo "$as_me: failed program was:" >&5
11384sed 's/^/| /' conftest.$ac_ext >&5
11385
ce2cded5 11386ac_cv_lib_dl_dlopen=no
d7040cdb 11387fi
ce2cded5
L
11388rm -f conftest.err conftest.$ac_objext \
11389 conftest$ac_exeext conftest.$ac_ext
11390LIBS=$ac_check_lib_save_LIBS
d7040cdb 11391fi
ce2cded5
L
11392echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11393echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11394if test $ac_cv_lib_dl_dlopen = yes; then
11395 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d7040cdb 11396else
ce2cded5
L
11397 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11398echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11399if test "${ac_cv_lib_svld_dlopen+set}" = set; then
d7040cdb
SE
11400 echo $ECHO_N "(cached) $ECHO_C" >&6
11401else
ce2cded5
L
11402 ac_check_lib_save_LIBS=$LIBS
11403LIBS="-lsvld $LIBS"
d7040cdb
SE
11404cat >conftest.$ac_ext <<_ACEOF
11405/* confdefs.h. */
11406_ACEOF
11407cat confdefs.h >>conftest.$ac_ext
11408cat >>conftest.$ac_ext <<_ACEOF
11409/* end confdefs.h. */
d7040cdb 11410
ce2cded5
L
11411/* Override any gcc2 internal prototype to avoid an error. */
11412#ifdef __cplusplus
11413extern "C"
11414#endif
11415/* We use char because int might match the return type of a gcc2
11416 builtin and then its argument prototype would still apply. */
11417char dlopen ();
d7040cdb
SE
11418int
11419main ()
11420{
ce2cded5 11421dlopen ();
d7040cdb
SE
11422 ;
11423 return 0;
11424}
11425_ACEOF
ce2cded5
L
11426rm -f conftest.$ac_objext conftest$ac_exeext
11427if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11428 (eval $ac_link) 2>conftest.er1
d7040cdb
SE
11429 ac_status=$?
11430 grep -v '^ *+' conftest.er1 >conftest.err
11431 rm -f conftest.er1
11432 cat conftest.err >&5
11433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11434 (exit $ac_status); } &&
7357c5b6
AM
11435 { ac_try='test -z "$ac_c_werror_flag"
11436 || test ! -s conftest.err'
d7040cdb
SE
11437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11438 (eval $ac_try) 2>&5
11439 ac_status=$?
11440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11441 (exit $ac_status); }; } &&
ce2cded5 11442 { ac_try='test -s conftest$ac_exeext'
d7040cdb
SE
11443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11444 (eval $ac_try) 2>&5
11445 ac_status=$?
11446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11447 (exit $ac_status); }; }; then
ce2cded5 11448 ac_cv_lib_svld_dlopen=yes
d7040cdb
SE
11449else
11450 echo "$as_me: failed program was:" >&5
11451sed 's/^/| /' conftest.$ac_ext >&5
11452
ce2cded5 11453ac_cv_lib_svld_dlopen=no
d7040cdb 11454fi
ce2cded5
L
11455rm -f conftest.err conftest.$ac_objext \
11456 conftest$ac_exeext conftest.$ac_ext
11457LIBS=$ac_check_lib_save_LIBS
d7040cdb 11458fi
ce2cded5
L
11459echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11460echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11461if test $ac_cv_lib_svld_dlopen = yes; then
11462 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11463else
11464 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11465echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11466if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11467 echo $ECHO_N "(cached) $ECHO_C" >&6
11468else
11469 ac_check_lib_save_LIBS=$LIBS
11470LIBS="-ldld $LIBS"
d7040cdb 11471cat >conftest.$ac_ext <<_ACEOF
d7040cdb
SE
11472/* confdefs.h. */
11473_ACEOF
11474cat confdefs.h >>conftest.$ac_ext
11475cat >>conftest.$ac_ext <<_ACEOF
ce2cded5
L
11476/* end confdefs.h. */
11477
11478/* Override any gcc2 internal prototype to avoid an error. */
11479#ifdef __cplusplus
11480extern "C"
11481#endif
11482/* We use char because int might match the return type of a gcc2
11483 builtin and then its argument prototype would still apply. */
11484char dld_link ();
d7040cdb
SE
11485int
11486main ()
11487{
ce2cded5 11488dld_link ();
d7040cdb
SE
11489 ;
11490 return 0;
11491}
11492_ACEOF
ce2cded5
L
11493rm -f conftest.$ac_objext conftest$ac_exeext
11494if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11495 (eval $ac_link) 2>conftest.er1
d7040cdb
SE
11496 ac_status=$?
11497 grep -v '^ *+' conftest.er1 >conftest.err
11498 rm -f conftest.er1
11499 cat conftest.err >&5
11500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11501 (exit $ac_status); } &&
7357c5b6
AM
11502 { ac_try='test -z "$ac_c_werror_flag"
11503 || test ! -s conftest.err'
d7040cdb
SE
11504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11505 (eval $ac_try) 2>&5
11506 ac_status=$?
11507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11508 (exit $ac_status); }; } &&
ce2cded5 11509 { ac_try='test -s conftest$ac_exeext'
d7040cdb
SE
11510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11511 (eval $ac_try) 2>&5
11512 ac_status=$?
11513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11514 (exit $ac_status); }; }; then
ce2cded5 11515 ac_cv_lib_dld_dld_link=yes
d7040cdb
SE
11516else
11517 echo "$as_me: failed program was:" >&5
11518sed 's/^/| /' conftest.$ac_ext >&5
11519
ce2cded5 11520ac_cv_lib_dld_dld_link=no
d7040cdb 11521fi
ce2cded5
L
11522rm -f conftest.err conftest.$ac_objext \
11523 conftest$ac_exeext conftest.$ac_ext
11524LIBS=$ac_check_lib_save_LIBS
11525fi
11526echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11527echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11528if test $ac_cv_lib_dld_dld_link = yes; then
b214d478 11529 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
ce2cded5
L
11530fi
11531
11532
11533fi
11534
11535
11536fi
11537
11538
11539fi
11540
11541
11542fi
11543
11544
11545fi
11546
11547 ;;
11548 esac
11549
11550 if test "x$lt_cv_dlopen" != xno; then
11551 enable_dlopen=yes
11552 else
11553 enable_dlopen=no
11554 fi
11555
11556 case $lt_cv_dlopen in
11557 dlopen)
11558 save_CPPFLAGS="$CPPFLAGS"
11559 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11560
11561 save_LDFLAGS="$LDFLAGS"
11562 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11563
11564 save_LIBS="$LIBS"
11565 LIBS="$lt_cv_dlopen_libs $LIBS"
11566
11567 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11568echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11569if test "${lt_cv_dlopen_self+set}" = set; then
11570 echo $ECHO_N "(cached) $ECHO_C" >&6
11571else
11572 if test "$cross_compiling" = yes; then :
11573 lt_cv_dlopen_self=cross
11574else
11575 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11576 lt_status=$lt_dlunknown
11577 cat > conftest.$ac_ext <<_LT_EOF
39144654 11578#line 11578 "configure"
ce2cded5
L
11579#include "confdefs.h"
11580
11581#if HAVE_DLFCN_H
11582#include <dlfcn.h>
11583#endif
11584
11585#include <stdio.h>
11586
11587#ifdef RTLD_GLOBAL
11588# define LT_DLGLOBAL RTLD_GLOBAL
11589#else
11590# ifdef DL_GLOBAL
11591# define LT_DLGLOBAL DL_GLOBAL
11592# else
11593# define LT_DLGLOBAL 0
11594# endif
11595#endif
11596
11597/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11598 find out it does not work in some platform. */
11599#ifndef LT_DLLAZY_OR_NOW
11600# ifdef RTLD_LAZY
11601# define LT_DLLAZY_OR_NOW RTLD_LAZY
11602# else
11603# ifdef DL_LAZY
11604# define LT_DLLAZY_OR_NOW DL_LAZY
11605# else
11606# ifdef RTLD_NOW
11607# define LT_DLLAZY_OR_NOW RTLD_NOW
11608# else
11609# ifdef DL_NOW
11610# define LT_DLLAZY_OR_NOW DL_NOW
11611# else
11612# define LT_DLLAZY_OR_NOW 0
11613# endif
11614# endif
11615# endif
11616# endif
11617#endif
11618
ce2cded5
L
11619void fnord() { int i=42;}
11620int main ()
d7040cdb 11621{
ce2cded5
L
11622 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11623 int status = $lt_dlunknown;
11624
11625 if (self)
11626 {
11627 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11628 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11629 /* dlclose (self); */
11630 }
11631 else
11632 puts (dlerror ());
11633
b214d478 11634 return status;
d7040cdb 11635}
ce2cded5
L
11636_LT_EOF
11637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11638 (eval $ac_link) 2>&5
d7040cdb
SE
11639 ac_status=$?
11640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
11641 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11642 (./conftest; exit; ) >&5 2>/dev/null
11643 lt_status=$?
11644 case x$lt_status in
11645 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11646 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11647 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11648 esac
11649 else :
11650 # compilation failed
11651 lt_cv_dlopen_self=no
11652 fi
11653fi
11654rm -fr conftest*
11655
11656
11657fi
11658echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11659echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11660
11661 if test "x$lt_cv_dlopen_self" = xyes; then
11662 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11663 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11664echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11665if test "${lt_cv_dlopen_self_static+set}" = set; then
11666 echo $ECHO_N "(cached) $ECHO_C" >&6
11667else
11668 if test "$cross_compiling" = yes; then :
11669 lt_cv_dlopen_self_static=cross
11670else
11671 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11672 lt_status=$lt_dlunknown
11673 cat > conftest.$ac_ext <<_LT_EOF
39144654 11674#line 11674 "configure"
ce2cded5
L
11675#include "confdefs.h"
11676
11677#if HAVE_DLFCN_H
11678#include <dlfcn.h>
11679#endif
11680
11681#include <stdio.h>
11682
11683#ifdef RTLD_GLOBAL
11684# define LT_DLGLOBAL RTLD_GLOBAL
11685#else
11686# ifdef DL_GLOBAL
11687# define LT_DLGLOBAL DL_GLOBAL
11688# else
11689# define LT_DLGLOBAL 0
11690# endif
11691#endif
11692
11693/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11694 find out it does not work in some platform. */
11695#ifndef LT_DLLAZY_OR_NOW
11696# ifdef RTLD_LAZY
11697# define LT_DLLAZY_OR_NOW RTLD_LAZY
11698# else
11699# ifdef DL_LAZY
11700# define LT_DLLAZY_OR_NOW DL_LAZY
11701# else
11702# ifdef RTLD_NOW
11703# define LT_DLLAZY_OR_NOW RTLD_NOW
11704# else
11705# ifdef DL_NOW
11706# define LT_DLLAZY_OR_NOW DL_NOW
11707# else
11708# define LT_DLLAZY_OR_NOW 0
11709# endif
11710# endif
11711# endif
11712# endif
11713#endif
11714
ce2cded5
L
11715void fnord() { int i=42;}
11716int main ()
11717{
11718 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11719 int status = $lt_dlunknown;
11720
11721 if (self)
11722 {
11723 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11724 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11725 /* dlclose (self); */
11726 }
11727 else
11728 puts (dlerror ());
11729
b214d478 11730 return status;
ce2cded5
L
11731}
11732_LT_EOF
11733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11734 (eval $ac_link) 2>&5
d7040cdb
SE
11735 ac_status=$?
11736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
11737 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11738 (./conftest; exit; ) >&5 2>/dev/null
11739 lt_status=$?
11740 case x$lt_status in
11741 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11742 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11743 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11744 esac
11745 else :
11746 # compilation failed
11747 lt_cv_dlopen_self_static=no
11748 fi
11749fi
11750rm -fr conftest*
11751
d7040cdb
SE
11752
11753fi
ce2cded5
L
11754echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11755echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11756 fi
11757
11758 CPPFLAGS="$save_CPPFLAGS"
11759 LDFLAGS="$save_LDFLAGS"
11760 LIBS="$save_LIBS"
11761 ;;
11762 esac
11763
11764 case $lt_cv_dlopen_self in
11765 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11766 *) enable_dlopen_self=unknown ;;
11767 esac
11768
11769 case $lt_cv_dlopen_self_static in
11770 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11771 *) enable_dlopen_self_static=unknown ;;
11772 esac
d7040cdb
SE
11773fi
11774
ce2cded5
L
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791striplib=
11792old_striplib=
11793echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11794echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11795if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11796 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11797 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11798 echo "$as_me:$LINENO: result: yes" >&5
11799echo "${ECHO_T}yes" >&6
d7040cdb 11800else
ce2cded5
L
11801# FIXME - insert some real tests, host_os isn't really good enough
11802 case $host_os in
11803 darwin*)
11804 if test -n "$STRIP" ; then
11805 striplib="$STRIP -x"
11806 old_striplib="$STRIP -S"
11807 echo "$as_me:$LINENO: result: yes" >&5
11808echo "${ECHO_T}yes" >&6
11809 else
11810 echo "$as_me:$LINENO: result: no" >&5
11811echo "${ECHO_T}no" >&6
11812 fi
11813 ;;
11814 *)
11815 echo "$as_me:$LINENO: result: no" >&5
11816echo "${ECHO_T}no" >&6
11817 ;;
11818 esac
11819fi
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832 # Report which library types will actually be built
11833 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11834echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11835 echo "$as_me:$LINENO: result: $can_build_shared" >&5
11836echo "${ECHO_T}$can_build_shared" >&6
11837
11838 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11839echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11840 test "$can_build_shared" = "no" && enable_shared=no
11841
11842 # On AIX, shared libraries and static libraries use the same namespace, and
11843 # are all built from PIC.
11844 case $host_os in
11845 aix3*)
11846 test "$enable_shared" = yes && enable_static=no
11847 if test -n "$RANLIB"; then
11848 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11849 postinstall_cmds='$RANLIB $lib'
11850 fi
11851 ;;
11852
50e7d84b 11853 aix[4-9]*)
ce2cded5
L
11854 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11855 test "$enable_shared" = yes && enable_static=no
11856 fi
11857 ;;
11858 esac
11859 echo "$as_me:$LINENO: result: $enable_shared" >&5
11860echo "${ECHO_T}$enable_shared" >&6
11861
11862 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11863echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11864 # Make sure either enable_shared or enable_static is yes.
11865 test "$enable_shared" = yes || enable_static=yes
11866 echo "$as_me:$LINENO: result: $enable_static" >&5
11867echo "${ECHO_T}$enable_static" >&6
11868
11869
11870
d7040cdb
SE
11871
11872fi
d7040cdb
SE
11873ac_ext=c
11874ac_cpp='$CPP $CPPFLAGS'
11875ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11876ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11877ac_compiler_gnu=$ac_cv_c_compiler_gnu
11878
ce2cded5 11879CC="$lt_save_CC"
67310ccd 11880
67310ccd
AM
11881
11882
d7040cdb
SE
11883
11884
d7040cdb 11885
d7040cdb 11886
d7040cdb 11887
ce2cded5
L
11888
11889
11890
11891
11892
11893 ac_config_commands="$ac_config_commands libtool"
11894
11895
11896
11897
11898# Only expand once:
11899
d7040cdb
SE
11900
11901
8cc9115f 11902ALL_LINGUAS="fr sv tr es da vi zh_CN zh_TW ga fi id"
d7040cdb
SE
11903# If we haven't got the data from the intl directory,
11904# assume NLS is disabled.
11905USE_NLS=no
11906LIBINTL=
11907LIBINTL_DEP=
11908INCINTL=
11909XGETTEXT=
11910GMSGFMT=
11911POSUB=
11912
11913if test -f ../intl/config.intl; then
11914 . ../intl/config.intl
11915fi
11916echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11917echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
11918if test x"$USE_NLS" != xyes; then
11919 echo "$as_me:$LINENO: result: no" >&5
11920echo "${ECHO_T}no" >&6
11921else
11922 echo "$as_me:$LINENO: result: yes" >&5
11923echo "${ECHO_T}yes" >&6
11924
11925cat >>confdefs.h <<\_ACEOF
11926#define ENABLE_NLS 1
11927_ACEOF
11928
11929
11930 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
11931echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
11932 # Look for .po and .gmo files in the source directory.
11933 CATALOGS=
11934 XLINGUAS=
11935 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11936 # If there aren't any .gmo files the shell will give us the
11937 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11938 # weeded out.
11939 case "$cat" in *\**)
11940 continue;;
11941 esac
11942 # The quadruple backslash is collapsed to a double backslash
11943 # by the backticks, then collapsed again by the double quotes,
11944 # leaving us with one backslash in the sed expression (right
11945 # before the dot that mustn't act as a wildcard).
11946 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11947 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11948 # The user is allowed to set LINGUAS to a list of languages to
11949 # install catalogs for. If it's empty that means "all of them."
11950 if test "x$LINGUAS" = x; then
11951 CATALOGS="$CATALOGS $cat"
11952 XLINGUAS="$XLINGUAS $lang"
11953 else
11954 case "$LINGUAS" in *$lang*)
11955 CATALOGS="$CATALOGS $cat"
11956 XLINGUAS="$XLINGUAS $lang"
11957 ;;
11958 esac
11959 fi
11960 done
11961 LINGUAS="$XLINGUAS"
11962 echo "$as_me:$LINENO: result: $LINGUAS" >&5
11963echo "${ECHO_T}$LINGUAS" >&6
11964
11965
11966 DATADIRNAME=share
11967
11968 INSTOBJEXT=.mo
11969
11970 GENCAT=gencat
11971
11972 CATOBJEXT=.gmo
11973
11974fi
11975
11976 MKINSTALLDIRS=
11977 if test -n "$ac_aux_dir"; then
11978 case "$ac_aux_dir" in
11979 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
11980 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
11981 esac
11982 fi
11983 if test -z "$MKINSTALLDIRS"; then
11984 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
11985 fi
11986
11987
11988
11989 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11990echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
11991 # Check whether --enable-nls or --disable-nls was given.
11992if test "${enable_nls+set}" = set; then
11993 enableval="$enable_nls"
11994 USE_NLS=$enableval
11995else
11996 USE_NLS=yes
11997fi;
11998 echo "$as_me:$LINENO: result: $USE_NLS" >&5
11999echo "${ECHO_T}$USE_NLS" >&6
12000
12001
12002
12003
12004
12005
12006# Prepare PATH_SEPARATOR.
12007# The user is always right.
12008if test "${PATH_SEPARATOR+set}" != set; then
12009 echo "#! /bin/sh" >conf$$.sh
12010 echo "exit 0" >>conf$$.sh
12011 chmod +x conf$$.sh
12012 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12013 PATH_SEPARATOR=';'
12014 else
12015 PATH_SEPARATOR=:
12016 fi
12017 rm -f conf$$.sh
12018fi
12019
12020# Find out how to test for executable files. Don't use a zero-byte file,
12021# as systems may use methods other than mode bits to determine executability.
12022cat >conf$$.file <<_ASEOF
12023#! /bin/sh
12024exit 0
12025_ASEOF
12026chmod +x conf$$.file
12027if test -x conf$$.file >/dev/null 2>&1; then
12028 ac_executable_p="test -x"
12029else
12030 ac_executable_p="test -f"
12031fi
12032rm -f conf$$.file
12033
12034# Extract the first word of "msgfmt", so it can be a program name with args.
12035set dummy msgfmt; ac_word=$2
12036echo "$as_me:$LINENO: checking for $ac_word" >&5
12037echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12038if test "${ac_cv_path_MSGFMT+set}" = set; then
12039 echo $ECHO_N "(cached) $ECHO_C" >&6
12040else
12041 case "$MSGFMT" in
12042 [\\/]* | ?:[\\/]*)
12043 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12044 ;;
12045 *)
12046 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12047 for ac_dir in $PATH; do
12048 IFS="$ac_save_IFS"
12049 test -z "$ac_dir" && ac_dir=.
12050 for ac_exec_ext in '' $ac_executable_extensions; do
12051 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12052 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
12053 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12054 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12055 break 2
12056 fi
12057 fi
12058 done
12059 done
12060 IFS="$ac_save_IFS"
12061 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12062 ;;
12063esac
12064fi
12065MSGFMT="$ac_cv_path_MSGFMT"
12066if test "$MSGFMT" != ":"; then
12067 echo "$as_me:$LINENO: result: $MSGFMT" >&5
12068echo "${ECHO_T}$MSGFMT" >&6
12069else
12070 echo "$as_me:$LINENO: result: no" >&5
12071echo "${ECHO_T}no" >&6
12072fi
12073
12074 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12075set dummy gmsgfmt; ac_word=$2
12076echo "$as_me:$LINENO: checking for $ac_word" >&5
12077echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12078if test "${ac_cv_path_GMSGFMT+set}" = set; then
12079 echo $ECHO_N "(cached) $ECHO_C" >&6
12080else
12081 case $GMSGFMT in
12082 [\\/]* | ?:[\\/]*)
12083 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12084 ;;
12085 *)
12086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12087for as_dir in $PATH
12088do
12089 IFS=$as_save_IFS
12090 test -z "$as_dir" && as_dir=.
12091 for ac_exec_ext in '' $ac_executable_extensions; do
12092 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12093 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12095 break 2
12096 fi
12097done
12098done
12099
12100 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12101 ;;
12102esac
12103fi
12104GMSGFMT=$ac_cv_path_GMSGFMT
252b5132 12105
d7040cdb
SE
12106if test -n "$GMSGFMT"; then
12107 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
12108echo "${ECHO_T}$GMSGFMT" >&6
12109else
12110 echo "$as_me:$LINENO: result: no" >&5
12111echo "${ECHO_T}no" >&6
20e95c23 12112fi
42ecbf5e 12113
20e95c23 12114
252b5132 12115
d7040cdb
SE
12116# Prepare PATH_SEPARATOR.
12117# The user is always right.
12118if test "${PATH_SEPARATOR+set}" != set; then
12119 echo "#! /bin/sh" >conf$$.sh
12120 echo "exit 0" >>conf$$.sh
12121 chmod +x conf$$.sh
12122 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12123 PATH_SEPARATOR=';'
12124 else
12125 PATH_SEPARATOR=:
12126 fi
12127 rm -f conf$$.sh
20e95c23 12128fi
252b5132 12129
d7040cdb
SE
12130# Find out how to test for executable files. Don't use a zero-byte file,
12131# as systems may use methods other than mode bits to determine executability.
12132cat >conf$$.file <<_ASEOF
12133#! /bin/sh
12134exit 0
12135_ASEOF
12136chmod +x conf$$.file
12137if test -x conf$$.file >/dev/null 2>&1; then
12138 ac_executable_p="test -x"
20e95c23 12139else
d7040cdb
SE
12140 ac_executable_p="test -f"
12141fi
12142rm -f conf$$.file
20e95c23 12143
d7040cdb
SE
12144# Extract the first word of "xgettext", so it can be a program name with args.
12145set dummy xgettext; ac_word=$2
12146echo "$as_me:$LINENO: checking for $ac_word" >&5
12147echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12148if test "${ac_cv_path_XGETTEXT+set}" = set; then
12149 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12150else
d7040cdb
SE
12151 case "$XGETTEXT" in
12152 [\\/]* | ?:[\\/]*)
12153 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12154 ;;
12155 *)
12156 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12157 for ac_dir in $PATH; do
12158 IFS="$ac_save_IFS"
12159 test -z "$ac_dir" && ac_dir=.
12160 for ac_exec_ext in '' $ac_executable_extensions; do
12161 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12162 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12163 (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
12164 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12165 break 2
12166 fi
12167 fi
12168 done
12169 done
12170 IFS="$ac_save_IFS"
12171 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12172 ;;
12173esac
252b5132 12174fi
d7040cdb
SE
12175XGETTEXT="$ac_cv_path_XGETTEXT"
12176if test "$XGETTEXT" != ":"; then
12177 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
12178echo "${ECHO_T}$XGETTEXT" >&6
d5fbea21 12179else
d7040cdb
SE
12180 echo "$as_me:$LINENO: result: no" >&5
12181echo "${ECHO_T}no" >&6
d5fbea21
DJ
12182fi
12183
d7040cdb 12184 rm -f messages.po
d5fbea21 12185
20e95c23 12186
d7040cdb
SE
12187# Prepare PATH_SEPARATOR.
12188# The user is always right.
12189if test "${PATH_SEPARATOR+set}" != set; then
12190 echo "#! /bin/sh" >conf$$.sh
12191 echo "exit 0" >>conf$$.sh
12192 chmod +x conf$$.sh
12193 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12194 PATH_SEPARATOR=';'
12195 else
12196 PATH_SEPARATOR=:
12197 fi
12198 rm -f conf$$.sh
12199fi
20e95c23 12200
d7040cdb
SE
12201# Find out how to test for executable files. Don't use a zero-byte file,
12202# as systems may use methods other than mode bits to determine executability.
12203cat >conf$$.file <<_ASEOF
12204#! /bin/sh
12205exit 0
12206_ASEOF
12207chmod +x conf$$.file
12208if test -x conf$$.file >/dev/null 2>&1; then
12209 ac_executable_p="test -x"
12210else
12211 ac_executable_p="test -f"
12212fi
12213rm -f conf$$.file
20e95c23 12214
d7040cdb
SE
12215# Extract the first word of "msgmerge", so it can be a program name with args.
12216set dummy msgmerge; ac_word=$2
12217echo "$as_me:$LINENO: checking for $ac_word" >&5
12218echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12219if test "${ac_cv_path_MSGMERGE+set}" = set; then
12220 echo $ECHO_N "(cached) $ECHO_C" >&6
12221else
12222 case "$MSGMERGE" in
12223 [\\/]* | ?:[\\/]*)
12224 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12225 ;;
12226 *)
12227 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12228 for ac_dir in $PATH; do
12229 IFS="$ac_save_IFS"
12230 test -z "$ac_dir" && ac_dir=.
12231 for ac_exec_ext in '' $ac_executable_extensions; do
12232 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12233 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12234 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12235 break 2
12236 fi
12237 fi
12238 done
12239 done
12240 IFS="$ac_save_IFS"
12241 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12242 ;;
12243esac
12244fi
12245MSGMERGE="$ac_cv_path_MSGMERGE"
12246if test "$MSGMERGE" != ":"; then
12247 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
12248echo "${ECHO_T}$MSGMERGE" >&6
12249else
12250 echo "$as_me:$LINENO: result: no" >&5
12251echo "${ECHO_T}no" >&6
12252fi
20e95c23
DJ
12253
12254
d7040cdb
SE
12255 if test "$GMSGFMT" != ":"; then
12256 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12257 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12258 : ;
12259 else
12260 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
12261 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12262echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
12263 GMSGFMT=":"
12264 fi
12265 fi
20e95c23 12266
d7040cdb
SE
12267 if test "$XGETTEXT" != ":"; then
12268 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12269 (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
12270 : ;
12271 else
12272 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
12273echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
12274 XGETTEXT=":"
12275 fi
12276 rm -f messages.po
20e95c23 12277 fi
42ecbf5e 12278
d7040cdb 12279 ac_config_commands="$ac_config_commands default-1"
252b5132 12280
42ecbf5e 12281
252b5132 12282
42ecbf5e
DJ
12283
12284
d7040cdb 12285for ac_prog in 'bison -y' byacc
20e95c23 12286do
d7040cdb
SE
12287 # Extract the first word of "$ac_prog", so it can be a program name with args.
12288set dummy $ac_prog; ac_word=$2
12289echo "$as_me:$LINENO: checking for $ac_word" >&5
12290echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12291if test "${ac_cv_prog_YACC+set}" = set; then
12292 echo $ECHO_N "(cached) $ECHO_C" >&6
20e95c23 12293else
d7040cdb
SE
12294 if test -n "$YACC"; then
12295 ac_cv_prog_YACC="$YACC" # Let the user override the test.
42ecbf5e 12296else
d7040cdb
SE
12297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12298for as_dir in $PATH
12299do
12300 IFS=$as_save_IFS
12301 test -z "$as_dir" && as_dir=.
12302 for ac_exec_ext in '' $ac_executable_extensions; do
12303 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12304 ac_cv_prog_YACC="$ac_prog"
12305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12306 break 2
12307 fi
12308done
12309done
42ecbf5e 12310
42ecbf5e 12311fi
e5a52504 12312fi
d7040cdb
SE
12313YACC=$ac_cv_prog_YACC
12314if test -n "$YACC"; then
12315 echo "$as_me:$LINENO: result: $YACC" >&5
12316echo "${ECHO_T}$YACC" >&6
42ecbf5e 12317else
d7040cdb
SE
12318 echo "$as_me:$LINENO: result: no" >&5
12319echo "${ECHO_T}no" >&6
42ecbf5e 12320fi
252b5132 12321
d7040cdb 12322 test -n "$YACC" && break
42ecbf5e 12323done
d7040cdb 12324test -n "$YACC" || YACC="yacc"
d15b04bd 12325
d7040cdb
SE
12326for ac_prog in flex lex
12327do
12328 # Extract the first word of "$ac_prog", so it can be a program name with args.
12329set dummy $ac_prog; ac_word=$2
12330echo "$as_me:$LINENO: checking for $ac_word" >&5
12331echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12332if test "${ac_cv_prog_LEX+set}" = set; then
20e95c23 12333 echo $ECHO_N "(cached) $ECHO_C" >&6
d15b04bd 12334else
d7040cdb
SE
12335 if test -n "$LEX"; then
12336 ac_cv_prog_LEX="$LEX" # Let the user override the test.
12337else
12338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12339for as_dir in $PATH
12340do
12341 IFS=$as_save_IFS
12342 test -z "$as_dir" && as_dir=.
12343 for ac_exec_ext in '' $ac_executable_extensions; do
12344 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12345 ac_cv_prog_LEX="$ac_prog"
12346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12347 break 2
12348 fi
12349done
12350done
12351
12352fi
12353fi
12354LEX=$ac_cv_prog_LEX
12355if test -n "$LEX"; then
12356 echo "$as_me:$LINENO: result: $LEX" >&5
12357echo "${ECHO_T}$LEX" >&6
12358else
12359 echo "$as_me:$LINENO: result: no" >&5
12360echo "${ECHO_T}no" >&6
d15b04bd 12361fi
e5a52504 12362
d7040cdb
SE
12363 test -n "$LEX" && break
12364done
12365test -n "$LEX" || LEX=":"
42ecbf5e 12366
d7040cdb
SE
12367if test -z "$LEXLIB"
12368then
12369 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
12370echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
12371if test "${ac_cv_lib_fl_yywrap+set}" = set; then
42ecbf5e
DJ
12372 echo $ECHO_N "(cached) $ECHO_C" >&6
12373else
d7040cdb
SE
12374 ac_check_lib_save_LIBS=$LIBS
12375LIBS="-lfl $LIBS"
12376cat >conftest.$ac_ext <<_ACEOF
42ecbf5e
DJ
12377/* confdefs.h. */
12378_ACEOF
12379cat confdefs.h >>conftest.$ac_ext
12380cat >>conftest.$ac_ext <<_ACEOF
12381/* end confdefs.h. */
12382
d7040cdb
SE
12383/* Override any gcc2 internal prototype to avoid an error. */
12384#ifdef __cplusplus
12385extern "C"
12386#endif
12387/* We use char because int might match the return type of a gcc2
12388 builtin and then its argument prototype would still apply. */
12389char yywrap ();
42ecbf5e
DJ
12390int
12391main ()
12392{
d7040cdb 12393yywrap ();
42ecbf5e
DJ
12394 ;
12395 return 0;
12396}
12397_ACEOF
d7040cdb
SE
12398rm -f conftest.$ac_objext conftest$ac_exeext
12399if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12400 (eval $ac_link) 2>conftest.er1
42ecbf5e
DJ
12401 ac_status=$?
12402 grep -v '^ *+' conftest.er1 >conftest.err
12403 rm -f conftest.er1
12404 cat conftest.err >&5
12405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406 (exit $ac_status); } &&
7357c5b6
AM
12407 { ac_try='test -z "$ac_c_werror_flag"
12408 || test ! -s conftest.err'
42ecbf5e
DJ
12409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12410 (eval $ac_try) 2>&5
12411 ac_status=$?
12412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413 (exit $ac_status); }; } &&
d7040cdb 12414 { ac_try='test -s conftest$ac_exeext'
42ecbf5e
DJ
12415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12416 (eval $ac_try) 2>&5
12417 ac_status=$?
12418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12419 (exit $ac_status); }; }; then
d7040cdb 12420 ac_cv_lib_fl_yywrap=yes
42ecbf5e
DJ
12421else
12422 echo "$as_me: failed program was:" >&5
12423sed 's/^/| /' conftest.$ac_ext >&5
12424
d7040cdb 12425ac_cv_lib_fl_yywrap=no
42ecbf5e 12426fi
d7040cdb
SE
12427rm -f conftest.err conftest.$ac_objext \
12428 conftest$ac_exeext conftest.$ac_ext
12429LIBS=$ac_check_lib_save_LIBS
42ecbf5e 12430fi
d7040cdb
SE
12431echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
12432echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
12433if test $ac_cv_lib_fl_yywrap = yes; then
12434 LEXLIB="-lfl"
20e95c23 12435else
d7040cdb
SE
12436 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
12437echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
12438if test "${ac_cv_lib_l_yywrap+set}" = set; then
12439 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12440else
d7040cdb
SE
12441 ac_check_lib_save_LIBS=$LIBS
12442LIBS="-ll $LIBS"
12443cat >conftest.$ac_ext <<_ACEOF
20e95c23 12444/* confdefs.h. */
42ecbf5e 12445_ACEOF
20e95c23
DJ
12446cat confdefs.h >>conftest.$ac_ext
12447cat >>conftest.$ac_ext <<_ACEOF
12448/* end confdefs.h. */
20e95c23 12449
d7040cdb
SE
12450/* Override any gcc2 internal prototype to avoid an error. */
12451#ifdef __cplusplus
12452extern "C"
12453#endif
12454/* We use char because int might match the return type of a gcc2
12455 builtin and then its argument prototype would still apply. */
12456char yywrap ();
20e95c23
DJ
12457int
12458main ()
12459{
d7040cdb
SE
12460yywrap ();
12461 ;
12462 return 0;
20e95c23
DJ
12463}
12464_ACEOF
d7040cdb 12465rm -f conftest.$ac_objext conftest$ac_exeext
20e95c23 12466if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d7040cdb 12467 (eval $ac_link) 2>conftest.er1
42ecbf5e 12468 ac_status=$?
d7040cdb
SE
12469 grep -v '^ *+' conftest.er1 >conftest.err
12470 rm -f conftest.er1
12471 cat conftest.err >&5
42ecbf5e 12472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb 12473 (exit $ac_status); } &&
7357c5b6
AM
12474 { ac_try='test -z "$ac_c_werror_flag"
12475 || test ! -s conftest.err'
d7040cdb
SE
12476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12477 (eval $ac_try) 2>&5
12478 ac_status=$?
12479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12480 (exit $ac_status); }; } &&
12481 { ac_try='test -s conftest$ac_exeext'
20e95c23
DJ
12482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12483 (eval $ac_try) 2>&5
12484 ac_status=$?
12485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12486 (exit $ac_status); }; }; then
d7040cdb 12487 ac_cv_lib_l_yywrap=yes
252b5132 12488else
d7040cdb 12489 echo "$as_me: failed program was:" >&5
20e95c23
DJ
12490sed 's/^/| /' conftest.$ac_ext >&5
12491
d7040cdb 12492ac_cv_lib_l_yywrap=no
252b5132 12493fi
d7040cdb
SE
12494rm -f conftest.err conftest.$ac_objext \
12495 conftest$ac_exeext conftest.$ac_ext
12496LIBS=$ac_check_lib_save_LIBS
20e95c23 12497fi
d7040cdb
SE
12498echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
12499echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
12500if test $ac_cv_lib_l_yywrap = yes; then
12501 LEXLIB="-ll"
20e95c23 12502fi
20e95c23
DJ
12503
12504fi
12505
d7040cdb 12506fi
20e95c23 12507
d7040cdb
SE
12508if test "x$LEX" != "x:"; then
12509 echo "$as_me:$LINENO: checking lex output file root" >&5
12510echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
12511if test "${ac_cv_prog_lex_root+set}" = set; then
42ecbf5e 12512 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12513else
d7040cdb
SE
12514 # The minimal lex program is just a single line: %%. But some broken lexes
12515# (Solaris, I think it was) want two %% lines, so accommodate them.
12516cat >conftest.l <<_ACEOF
12517%%
12518%%
42ecbf5e 12519_ACEOF
d7040cdb
SE
12520{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
12521 (eval $LEX conftest.l) 2>&5
12522 ac_status=$?
12523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12524 (exit $ac_status); }
12525if test -f lex.yy.c; then
12526 ac_cv_prog_lex_root=lex.yy
12527elif test -f lexyy.c; then
12528 ac_cv_prog_lex_root=lexyy
12529else
12530 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
12531echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
12532 { (exit 1); exit 1; }; }
12533fi
12534fi
12535echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
12536echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
12537rm -f conftest.l
12538LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
20e95c23 12539
d7040cdb
SE
12540echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
12541echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
12542if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
12543 echo $ECHO_N "(cached) $ECHO_C" >&6
12544else
12545 # POSIX says lex can declare yytext either as a pointer or an array; the
12546# default is implementation-dependent. Figure out which it is, since
12547# not all implementations provide the %pointer and %array declarations.
12548ac_cv_prog_lex_yytext_pointer=no
12549echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
12550ac_save_LIBS=$LIBS
12551LIBS="$LIBS $LEXLIB"
12552cat >conftest.$ac_ext <<_ACEOF
12553`cat $LEX_OUTPUT_ROOT.c`
20e95c23 12554_ACEOF
d7040cdb
SE
12555rm -f conftest.$ac_objext conftest$ac_exeext
12556if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12557 (eval $ac_link) 2>conftest.er1
42ecbf5e
DJ
12558 ac_status=$?
12559 grep -v '^ *+' conftest.er1 >conftest.err
12560 rm -f conftest.er1
12561 cat conftest.err >&5
12562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12563 (exit $ac_status); } &&
7357c5b6
AM
12564 { ac_try='test -z "$ac_c_werror_flag"
12565 || test ! -s conftest.err'
42ecbf5e
DJ
12566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12567 (eval $ac_try) 2>&5
12568 ac_status=$?
12569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570 (exit $ac_status); }; } &&
d7040cdb 12571 { ac_try='test -s conftest$ac_exeext'
42ecbf5e
DJ
12572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12573 (eval $ac_try) 2>&5
12574 ac_status=$?
12575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12576 (exit $ac_status); }; }; then
d7040cdb
SE
12577 ac_cv_prog_lex_yytext_pointer=yes
12578else
12579 echo "$as_me: failed program was:" >&5
12580sed 's/^/| /' conftest.$ac_ext >&5
12581
12582fi
12583rm -f conftest.err conftest.$ac_objext \
12584 conftest$ac_exeext conftest.$ac_ext
12585LIBS=$ac_save_LIBS
12586rm -f "${LEX_OUTPUT_ROOT}.c"
12587
12588fi
12589echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
12590echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
12591if test $ac_cv_prog_lex_yytext_pointer = yes; then
12592
12593cat >>confdefs.h <<\_ACEOF
12594#define YYTEXT_POINTER 1
12595_ACEOF
12596
12597fi
12598
12599fi
12600if test "$LEX" = :; then
12601 LEX=${am_missing_run}flex
12602fi
12603
12604echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12605echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
12606 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
12607if test "${enable_maintainer_mode+set}" = set; then
12608 enableval="$enable_maintainer_mode"
12609 USE_MAINTAINER_MODE=$enableval
252b5132 12610else
d7040cdb
SE
12611 USE_MAINTAINER_MODE=no
12612fi;
12613 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
12614echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
42ecbf5e 12615
d7040cdb
SE
12616
12617if test $USE_MAINTAINER_MODE = yes; then
12618 MAINTAINER_MODE_TRUE=
12619 MAINTAINER_MODE_FALSE='#'
12620else
12621 MAINTAINER_MODE_TRUE='#'
12622 MAINTAINER_MODE_FALSE=
252b5132 12623fi
252b5132 12624
d7040cdb
SE
12625 MAINT=$MAINTAINER_MODE_TRUE
12626
12627
12628
12629
12630if false; then
12631 GENINSRC_NEVER_TRUE=
12632 GENINSRC_NEVER_FALSE='#'
12633else
12634 GENINSRC_NEVER_TRUE='#'
12635 GENINSRC_NEVER_FALSE=
252b5132
RH
12636fi
12637
eccbf555
AM
12638echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
12639echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
12640if test "${gcc_cv_prog_cmp_skip+set}" = set; then
12641 echo $ECHO_N "(cached) $ECHO_C" >&6
12642else
12643 echo abfoo >t1
12644 echo cdfoo >t2
12645 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
12646 if cmp t1 t2 2 2 > /dev/null 2>&1; then
12647 if cmp t1 t2 1 1 > /dev/null 2>&1; then
12648 :
12649 else
12650 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
12651 fi
12652 fi
12653 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
12654 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
12655 :
12656 else
12657 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
12658 fi
12659 fi
12660 rm t1 t2
12661
12662fi
12663echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
12664echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
12665do_compare="$gcc_cv_prog_cmp_skip"
12666
12667
d7040cdb
SE
12668
12669. ${srcdir}/configure.host
12670
12671
12672
12673
252b5132
RH
12674
12675
42ecbf5e
DJ
12676
12677
12678
12679
ebe1fac1 12680
a3ffa599
L
12681
12682
12683for ac_header in string.h strings.h stdlib.h unistd.h elf-hints.h limits.h sys/param.h
252b5132 12684do
42ecbf5e
DJ
12685as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12686if eval "test \"\${$as_ac_Header+set}\" = set"; then
12687 echo "$as_me:$LINENO: checking for $ac_header" >&5
12688echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12689if eval "test \"\${$as_ac_Header+set}\" = set"; then
12690 echo $ECHO_N "(cached) $ECHO_C" >&6
12691fi
12692echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12693echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12694else
12695 # Is the header compilable?
12696echo "$as_me:$LINENO: checking $ac_header usability" >&5
12697echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12698cat >conftest.$ac_ext <<_ACEOF
12699/* confdefs.h. */
12700_ACEOF
12701cat confdefs.h >>conftest.$ac_ext
12702cat >>conftest.$ac_ext <<_ACEOF
12703/* end confdefs.h. */
12704$ac_includes_default
12705#include <$ac_header>
12706_ACEOF
12707rm -f conftest.$ac_objext
12708if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12709 (eval $ac_compile) 2>conftest.er1
12710 ac_status=$?
12711 grep -v '^ *+' conftest.er1 >conftest.err
12712 rm -f conftest.er1
12713 cat conftest.err >&5
12714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12715 (exit $ac_status); } &&
7357c5b6
AM
12716 { ac_try='test -z "$ac_c_werror_flag"
12717 || test ! -s conftest.err'
42ecbf5e
DJ
12718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12719 (eval $ac_try) 2>&5
12720 ac_status=$?
12721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12722 (exit $ac_status); }; } &&
12723 { ac_try='test -s conftest.$ac_objext'
12724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12725 (eval $ac_try) 2>&5
12726 ac_status=$?
12727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12728 (exit $ac_status); }; }; then
12729 ac_header_compiler=yes
12730else
12731 echo "$as_me: failed program was:" >&5
12732sed 's/^/| /' conftest.$ac_ext >&5
12733
12734ac_header_compiler=no
12735fi
12736rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12737echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12738echo "${ECHO_T}$ac_header_compiler" >&6
12739
12740# Is the header present?
12741echo "$as_me:$LINENO: checking $ac_header presence" >&5
12742echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12743cat >conftest.$ac_ext <<_ACEOF
12744/* confdefs.h. */
12745_ACEOF
12746cat confdefs.h >>conftest.$ac_ext
12747cat >>conftest.$ac_ext <<_ACEOF
12748/* end confdefs.h. */
12749#include <$ac_header>
12750_ACEOF
12751if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12752 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12753 ac_status=$?
12754 grep -v '^ *+' conftest.er1 >conftest.err
12755 rm -f conftest.er1
12756 cat conftest.err >&5
12757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758 (exit $ac_status); } >/dev/null; then
12759 if test -s conftest.err; then
12760 ac_cpp_err=$ac_c_preproc_warn_flag
12761 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12762 else
12763 ac_cpp_err=
12764 fi
252b5132 12765else
42ecbf5e 12766 ac_cpp_err=yes
252b5132 12767fi
42ecbf5e
DJ
12768if test -z "$ac_cpp_err"; then
12769 ac_header_preproc=yes
12770else
12771 echo "$as_me: failed program was:" >&5
12772sed 's/^/| /' conftest.$ac_ext >&5
12773
12774 ac_header_preproc=no
252b5132 12775fi
42ecbf5e
DJ
12776rm -f conftest.err conftest.$ac_ext
12777echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12778echo "${ECHO_T}$ac_header_preproc" >&6
12779
12780# So? What about this header?
12781case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12782 yes:no: )
12783 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12784echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12785 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12786echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12787 ac_header_preproc=yes
12788 ;;
12789 no:yes:* )
12790 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12791echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12792 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12793echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12794 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12795echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12796 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12797echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12798 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12799echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12800 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12801echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12802 (
12803 cat <<\_ASBOX
12804## ------------------------------------------ ##
12805## Report this to the AC_PACKAGE_NAME lists. ##
12806## ------------------------------------------ ##
12807_ASBOX
12808 ) |
12809 sed "s/^/$as_me: WARNING: /" >&2
12810 ;;
12811esac
12812echo "$as_me:$LINENO: checking for $ac_header" >&5
12813echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12814if eval "test \"\${$as_ac_Header+set}\" = set"; then
12815 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12816else
42ecbf5e
DJ
12817 eval "$as_ac_Header=\$ac_header_preproc"
12818fi
12819echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12820echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12821
252b5132 12822fi
42ecbf5e
DJ
12823if test `eval echo '${'$as_ac_Header'}'` = yes; then
12824 cat >>confdefs.h <<_ACEOF
12825#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12826_ACEOF
12827
12828fi
12829
252b5132
RH
12830done
12831
42ecbf5e
DJ
12832
12833
12834
dc27aea4
AM
12835
12836
12837for ac_func in glob mkstemp realpath sbrk waitpid
252b5132 12838do
42ecbf5e
DJ
12839as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12840echo "$as_me:$LINENO: checking for $ac_func" >&5
12841echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12842if eval "test \"\${$as_ac_var+set}\" = set"; then
12843 echo $ECHO_N "(cached) $ECHO_C" >&6
12844else
12845 cat >conftest.$ac_ext <<_ACEOF
12846/* confdefs.h. */
12847_ACEOF
12848cat confdefs.h >>conftest.$ac_ext
12849cat >>conftest.$ac_ext <<_ACEOF
12850/* end confdefs.h. */
12851/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12852 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12853#define $ac_func innocuous_$ac_func
12854
252b5132 12855/* System header to define __stub macros and hopefully few prototypes,
42ecbf5e
DJ
12856 which can conflict with char $ac_func (); below.
12857 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12858 <limits.h> exists even on freestanding compilers. */
12859
12860#ifdef __STDC__
12861# include <limits.h>
12862#else
12863# include <assert.h>
12864#endif
d15b04bd 12865
42ecbf5e 12866#undef $ac_func
d15b04bd 12867
42ecbf5e
DJ
12868/* Override any gcc2 internal prototype to avoid an error. */
12869#ifdef __cplusplus
12870extern "C"
12871{
12872#endif
12873/* We use char because int might match the return type of a gcc2
12874 builtin and then its argument prototype would still apply. */
12875char $ac_func ();
252b5132
RH
12876/* The GNU C library defines this for functions which it implements
12877 to always fail with ENOSYS. Some functions are actually named
12878 something starting with __ and the normal name is an alias. */
12879#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12880choke me
12881#else
42ecbf5e
DJ
12882char (*f) () = $ac_func;
12883#endif
12884#ifdef __cplusplus
12885}
252b5132
RH
12886#endif
12887
42ecbf5e
DJ
12888int
12889main ()
12890{
12891return f != $ac_func;
12892 ;
12893 return 0;
12894}
12895_ACEOF
12896rm -f conftest.$ac_objext conftest$ac_exeext
12897if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12898 (eval $ac_link) 2>conftest.er1
12899 ac_status=$?
12900 grep -v '^ *+' conftest.er1 >conftest.err
12901 rm -f conftest.er1
12902 cat conftest.err >&5
12903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12904 (exit $ac_status); } &&
7357c5b6
AM
12905 { ac_try='test -z "$ac_c_werror_flag"
12906 || test ! -s conftest.err'
42ecbf5e
DJ
12907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12908 (eval $ac_try) 2>&5
12909 ac_status=$?
12910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12911 (exit $ac_status); }; } &&
12912 { ac_try='test -s conftest$ac_exeext'
12913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12914 (eval $ac_try) 2>&5
12915 ac_status=$?
12916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12917 (exit $ac_status); }; }; then
12918 eval "$as_ac_var=yes"
12919else
12920 echo "$as_me: failed program was:" >&5
12921sed 's/^/| /' conftest.$ac_ext >&5
12922
12923eval "$as_ac_var=no"
12924fi
12925rm -f conftest.err conftest.$ac_objext \
12926 conftest$ac_exeext conftest.$ac_ext
12927fi
12928echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12929echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12930if test `eval echo '${'$as_ac_var'}'` = yes; then
12931 cat >>confdefs.h <<_ACEOF
12932#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12933_ACEOF
252b5132 12934
252b5132
RH
12935fi
12936done
12937
42ecbf5e
DJ
12938
12939
12940
12941
12942
252b5132 12943ac_header_dirent=no
42ecbf5e
DJ
12944for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
12945 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
12946echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
12947echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
12948if eval "test \"\${$as_ac_Header+set}\" = set"; then
12949 echo $ECHO_N "(cached) $ECHO_C" >&6
12950else
12951 cat >conftest.$ac_ext <<_ACEOF
12952/* confdefs.h. */
12953_ACEOF
12954cat confdefs.h >>conftest.$ac_ext
12955cat >>conftest.$ac_ext <<_ACEOF
12956/* end confdefs.h. */
252b5132
RH
12957#include <sys/types.h>
12958#include <$ac_hdr>
42ecbf5e
DJ
12959
12960int
12961main ()
12962{
12963if ((DIR *) 0)
12964return 0;
12965 ;
12966 return 0;
12967}
12968_ACEOF
12969rm -f conftest.$ac_objext
12970if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12971 (eval $ac_compile) 2>conftest.er1
12972 ac_status=$?
12973 grep -v '^ *+' conftest.er1 >conftest.err
12974 rm -f conftest.er1
12975 cat conftest.err >&5
12976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12977 (exit $ac_status); } &&
7357c5b6
AM
12978 { ac_try='test -z "$ac_c_werror_flag"
12979 || test ! -s conftest.err'
42ecbf5e
DJ
12980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12981 (eval $ac_try) 2>&5
12982 ac_status=$?
12983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984 (exit $ac_status); }; } &&
12985 { ac_try='test -s conftest.$ac_objext'
12986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12987 (eval $ac_try) 2>&5
12988 ac_status=$?
12989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12990 (exit $ac_status); }; }; then
12991 eval "$as_ac_Header=yes"
12992else
12993 echo "$as_me: failed program was:" >&5
12994sed 's/^/| /' conftest.$ac_ext >&5
12995
12996eval "$as_ac_Header=no"
12997fi
12998rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12999fi
13000echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13001echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13002if test `eval echo '${'$as_ac_Header'}'` = yes; then
13003 cat >>confdefs.h <<_ACEOF
13004#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13005_ACEOF
13006
13007ac_header_dirent=$ac_hdr; break
d15b04bd 13008fi
42ecbf5e 13009
d15b04bd
L
13010done
13011# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13012if test $ac_header_dirent = dirent.h; then
42ecbf5e
DJ
13013 echo "$as_me:$LINENO: checking for library containing opendir" >&5
13014echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13015if test "${ac_cv_search_opendir+set}" = set; then
13016 echo $ECHO_N "(cached) $ECHO_C" >&6
13017else
13018 ac_func_search_save_LIBS=$LIBS
13019ac_cv_search_opendir=no
13020cat >conftest.$ac_ext <<_ACEOF
13021/* confdefs.h. */
13022_ACEOF
13023cat confdefs.h >>conftest.$ac_ext
13024cat >>conftest.$ac_ext <<_ACEOF
13025/* end confdefs.h. */
13026
e5a52504 13027/* Override any gcc2 internal prototype to avoid an error. */
42ecbf5e
DJ
13028#ifdef __cplusplus
13029extern "C"
13030#endif
e5a52504 13031/* We use char because int might match the return type of a gcc2
42ecbf5e
DJ
13032 builtin and then its argument prototype would still apply. */
13033char opendir ();
13034int
13035main ()
13036{
13037opendir ();
13038 ;
13039 return 0;
13040}
13041_ACEOF
13042rm -f conftest.$ac_objext conftest$ac_exeext
13043if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13044 (eval $ac_link) 2>conftest.er1
13045 ac_status=$?
13046 grep -v '^ *+' conftest.er1 >conftest.err
13047 rm -f conftest.er1
13048 cat conftest.err >&5
13049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13050 (exit $ac_status); } &&
7357c5b6
AM
13051 { ac_try='test -z "$ac_c_werror_flag"
13052 || test ! -s conftest.err'
42ecbf5e
DJ
13053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13054 (eval $ac_try) 2>&5
13055 ac_status=$?
13056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13057 (exit $ac_status); }; } &&
13058 { ac_try='test -s conftest$ac_exeext'
13059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13060 (eval $ac_try) 2>&5
13061 ac_status=$?
13062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13063 (exit $ac_status); }; }; then
13064 ac_cv_search_opendir="none required"
13065else
13066 echo "$as_me: failed program was:" >&5
13067sed 's/^/| /' conftest.$ac_ext >&5
13068
13069fi
13070rm -f conftest.err conftest.$ac_objext \
13071 conftest$ac_exeext conftest.$ac_ext
13072if test "$ac_cv_search_opendir" = no; then
13073 for ac_lib in dir; do
13074 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13075 cat >conftest.$ac_ext <<_ACEOF
13076/* confdefs.h. */
13077_ACEOF
13078cat confdefs.h >>conftest.$ac_ext
13079cat >>conftest.$ac_ext <<_ACEOF
13080/* end confdefs.h. */
e5a52504 13081
42ecbf5e
DJ
13082/* Override any gcc2 internal prototype to avoid an error. */
13083#ifdef __cplusplus
13084extern "C"
13085#endif
13086/* We use char because int might match the return type of a gcc2
13087 builtin and then its argument prototype would still apply. */
13088char opendir ();
13089int
13090main ()
13091{
13092opendir ();
13093 ;
13094 return 0;
13095}
13096_ACEOF
13097rm -f conftest.$ac_objext conftest$ac_exeext
13098if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13099 (eval $ac_link) 2>conftest.er1
13100 ac_status=$?
13101 grep -v '^ *+' conftest.er1 >conftest.err
13102 rm -f conftest.er1
13103 cat conftest.err >&5
13104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13105 (exit $ac_status); } &&
7357c5b6
AM
13106 { ac_try='test -z "$ac_c_werror_flag"
13107 || test ! -s conftest.err'
42ecbf5e
DJ
13108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13109 (eval $ac_try) 2>&5
13110 ac_status=$?
13111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13112 (exit $ac_status); }; } &&
13113 { ac_try='test -s conftest$ac_exeext'
13114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13115 (eval $ac_try) 2>&5
13116 ac_status=$?
13117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118 (exit $ac_status); }; }; then
13119 ac_cv_search_opendir="-l$ac_lib"
13120break
13121else
13122 echo "$as_me: failed program was:" >&5
13123sed 's/^/| /' conftest.$ac_ext >&5
13124
13125fi
13126rm -f conftest.err conftest.$ac_objext \
13127 conftest$ac_exeext conftest.$ac_ext
13128 done
252b5132 13129fi
42ecbf5e
DJ
13130LIBS=$ac_func_search_save_LIBS
13131fi
13132echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13133echo "${ECHO_T}$ac_cv_search_opendir" >&6
13134if test "$ac_cv_search_opendir" != no; then
13135 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13136
d15b04bd 13137fi
252b5132
RH
13138
13139else
42ecbf5e
DJ
13140 echo "$as_me:$LINENO: checking for library containing opendir" >&5
13141echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13142if test "${ac_cv_search_opendir+set}" = set; then
13143 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 13144else
42ecbf5e
DJ
13145 ac_func_search_save_LIBS=$LIBS
13146ac_cv_search_opendir=no
13147cat >conftest.$ac_ext <<_ACEOF
13148/* confdefs.h. */
13149_ACEOF
13150cat confdefs.h >>conftest.$ac_ext
13151cat >>conftest.$ac_ext <<_ACEOF
13152/* end confdefs.h. */
13153
252b5132 13154/* Override any gcc2 internal prototype to avoid an error. */
42ecbf5e
DJ
13155#ifdef __cplusplus
13156extern "C"
13157#endif
252b5132 13158/* We use char because int might match the return type of a gcc2
42ecbf5e
DJ
13159 builtin and then its argument prototype would still apply. */
13160char opendir ();
13161int
13162main ()
13163{
13164opendir ();
13165 ;
13166 return 0;
13167}
13168_ACEOF
13169rm -f conftest.$ac_objext conftest$ac_exeext
13170if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13171 (eval $ac_link) 2>conftest.er1
13172 ac_status=$?
13173 grep -v '^ *+' conftest.er1 >conftest.err
13174 rm -f conftest.er1
13175 cat conftest.err >&5
13176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13177 (exit $ac_status); } &&
7357c5b6
AM
13178 { ac_try='test -z "$ac_c_werror_flag"
13179 || test ! -s conftest.err'
42ecbf5e
DJ
13180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13181 (eval $ac_try) 2>&5
13182 ac_status=$?
13183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13184 (exit $ac_status); }; } &&
13185 { ac_try='test -s conftest$ac_exeext'
13186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13187 (eval $ac_try) 2>&5
13188 ac_status=$?
13189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13190 (exit $ac_status); }; }; then
13191 ac_cv_search_opendir="none required"
13192else
13193 echo "$as_me: failed program was:" >&5
13194sed 's/^/| /' conftest.$ac_ext >&5
13195
13196fi
13197rm -f conftest.err conftest.$ac_objext \
13198 conftest$ac_exeext conftest.$ac_ext
13199if test "$ac_cv_search_opendir" = no; then
13200 for ac_lib in x; do
13201 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13202 cat >conftest.$ac_ext <<_ACEOF
13203/* confdefs.h. */
13204_ACEOF
13205cat confdefs.h >>conftest.$ac_ext
13206cat >>conftest.$ac_ext <<_ACEOF
13207/* end confdefs.h. */
252b5132 13208
42ecbf5e
DJ
13209/* Override any gcc2 internal prototype to avoid an error. */
13210#ifdef __cplusplus
13211extern "C"
13212#endif
13213/* We use char because int might match the return type of a gcc2
13214 builtin and then its argument prototype would still apply. */
13215char opendir ();
13216int
13217main ()
13218{
13219opendir ();
13220 ;
13221 return 0;
13222}
13223_ACEOF
13224rm -f conftest.$ac_objext conftest$ac_exeext
13225if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13226 (eval $ac_link) 2>conftest.er1
13227 ac_status=$?
13228 grep -v '^ *+' conftest.er1 >conftest.err
13229 rm -f conftest.er1
13230 cat conftest.err >&5
13231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13232 (exit $ac_status); } &&
7357c5b6
AM
13233 { ac_try='test -z "$ac_c_werror_flag"
13234 || test ! -s conftest.err'
42ecbf5e
DJ
13235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13236 (eval $ac_try) 2>&5
13237 ac_status=$?
13238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13239 (exit $ac_status); }; } &&
13240 { ac_try='test -s conftest$ac_exeext'
13241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13242 (eval $ac_try) 2>&5
13243 ac_status=$?
13244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13245 (exit $ac_status); }; }; then
13246 ac_cv_search_opendir="-l$ac_lib"
13247break
13248else
13249 echo "$as_me: failed program was:" >&5
13250sed 's/^/| /' conftest.$ac_ext >&5
13251
13252fi
13253rm -f conftest.err conftest.$ac_objext \
13254 conftest$ac_exeext conftest.$ac_ext
13255 done
252b5132 13256fi
42ecbf5e 13257LIBS=$ac_func_search_save_LIBS
252b5132 13258fi
42ecbf5e
DJ
13259echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13260echo "${ECHO_T}$ac_cv_search_opendir" >&6
13261if test "$ac_cv_search_opendir" != no; then
13262 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13263
d15b04bd 13264fi
252b5132
RH
13265
13266fi
13267
13268
42ecbf5e
DJ
13269echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
13270echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
13271if test "${ld_cv_decl_getopt_unistd_h+set}" = set; then
13272 echo $ECHO_N "(cached) $ECHO_C" >&6
34875e64 13273else
42ecbf5e
DJ
13274 cat >conftest.$ac_ext <<_ACEOF
13275/* confdefs.h. */
13276_ACEOF
13277cat confdefs.h >>conftest.$ac_ext
13278cat >>conftest.$ac_ext <<_ACEOF
13279/* end confdefs.h. */
34875e64 13280#include <unistd.h>
42ecbf5e
DJ
13281int
13282main ()
13283{
34875e64 13284extern int getopt (int, char *const*, const char *);
42ecbf5e
DJ
13285 ;
13286 return 0;
13287}
13288_ACEOF
13289rm -f conftest.$ac_objext
13290if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13291 (eval $ac_compile) 2>conftest.er1
13292 ac_status=$?
13293 grep -v '^ *+' conftest.er1 >conftest.err
13294 rm -f conftest.er1
13295 cat conftest.err >&5
13296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13297 (exit $ac_status); } &&
7357c5b6
AM
13298 { ac_try='test -z "$ac_c_werror_flag"
13299 || test ! -s conftest.err'
42ecbf5e
DJ
13300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13301 (eval $ac_try) 2>&5
13302 ac_status=$?
13303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304 (exit $ac_status); }; } &&
13305 { ac_try='test -s conftest.$ac_objext'
13306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13307 (eval $ac_try) 2>&5
13308 ac_status=$?
13309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13310 (exit $ac_status); }; }; then
34875e64
NC
13311 ld_cv_decl_getopt_unistd_h=yes
13312else
42ecbf5e
DJ
13313 echo "$as_me: failed program was:" >&5
13314sed 's/^/| /' conftest.$ac_ext >&5
13315
13316ld_cv_decl_getopt_unistd_h=no
34875e64 13317fi
42ecbf5e 13318rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34875e64
NC
13319fi
13320
42ecbf5e
DJ
13321echo "$as_me:$LINENO: result: $ld_cv_decl_getopt_unistd_h" >&5
13322echo "${ECHO_T}$ld_cv_decl_getopt_unistd_h" >&6
34875e64 13323if test $ld_cv_decl_getopt_unistd_h = yes; then
42ecbf5e
DJ
13324
13325cat >>confdefs.h <<\_ACEOF
34875e64 13326#define HAVE_DECL_GETOPT 1
42ecbf5e 13327_ACEOF
34875e64
NC
13328
13329fi
42ecbf5e 13330
252b5132
RH
13331
13332case "${host}" in
a8100d5b 13333*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
42ecbf5e
DJ
13334
13335cat >>confdefs.h <<\_ACEOF
252b5132 13336#define USE_BINARY_FOPEN 1
42ecbf5e 13337_ACEOF
252b5132
RH
13338 ;;
13339esac
13340
502bdb00
JW
13341echo "$as_me:$LINENO: checking whether strstr is declared" >&5
13342echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
13343if test "${ac_cv_have_decl_strstr+set}" = set; then
42ecbf5e 13344 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 13345else
42ecbf5e
DJ
13346 cat >conftest.$ac_ext <<_ACEOF
13347/* confdefs.h. */
13348_ACEOF
13349cat confdefs.h >>conftest.$ac_ext
13350cat >>conftest.$ac_ext <<_ACEOF
13351/* end confdefs.h. */
502bdb00 13352$ac_includes_default
42ecbf5e
DJ
13353int
13354main ()
13355{
502bdb00
JW
13356#ifndef strstr
13357 char *p = (char *) strstr;
13358#endif
13359
42ecbf5e
DJ
13360 ;
13361 return 0;
13362}
13363_ACEOF
13364rm -f conftest.$ac_objext
13365if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13366 (eval $ac_compile) 2>conftest.er1
13367 ac_status=$?
13368 grep -v '^ *+' conftest.er1 >conftest.err
13369 rm -f conftest.er1
13370 cat conftest.err >&5
13371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13372 (exit $ac_status); } &&
7357c5b6
AM
13373 { ac_try='test -z "$ac_c_werror_flag"
13374 || test ! -s conftest.err'
42ecbf5e
DJ
13375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13376 (eval $ac_try) 2>&5
13377 ac_status=$?
13378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13379 (exit $ac_status); }; } &&
13380 { ac_try='test -s conftest.$ac_objext'
13381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13382 (eval $ac_try) 2>&5
13383 ac_status=$?
13384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13385 (exit $ac_status); }; }; then
502bdb00 13386 ac_cv_have_decl_strstr=yes
252b5132 13387else
42ecbf5e
DJ
13388 echo "$as_me: failed program was:" >&5
13389sed 's/^/| /' conftest.$ac_ext >&5
13390
502bdb00 13391ac_cv_have_decl_strstr=no
252b5132 13392fi
42ecbf5e 13393rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 13394fi
502bdb00
JW
13395echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
13396echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
13397if test $ac_cv_have_decl_strstr = yes; then
252b5132 13398
502bdb00
JW
13399cat >>confdefs.h <<_ACEOF
13400#define HAVE_DECL_STRSTR 1
13401_ACEOF
42ecbf5e 13402
502bdb00
JW
13403
13404else
13405 cat >>confdefs.h <<_ACEOF
13406#define HAVE_DECL_STRSTR 0
42ecbf5e 13407_ACEOF
252b5132 13408
252b5132 13409
502bdb00
JW
13410fi
13411echo "$as_me:$LINENO: checking whether free is declared" >&5
13412echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
13413if test "${ac_cv_have_decl_free+set}" = set; then
42ecbf5e 13414 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 13415else
42ecbf5e
DJ
13416 cat >conftest.$ac_ext <<_ACEOF
13417/* confdefs.h. */
13418_ACEOF
13419cat confdefs.h >>conftest.$ac_ext
13420cat >>conftest.$ac_ext <<_ACEOF
13421/* end confdefs.h. */
502bdb00 13422$ac_includes_default
42ecbf5e
DJ
13423int
13424main ()
13425{
502bdb00
JW
13426#ifndef free
13427 char *p = (char *) free;
13428#endif
13429
42ecbf5e
DJ
13430 ;
13431 return 0;
13432}
13433_ACEOF
13434rm -f conftest.$ac_objext
13435if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13436 (eval $ac_compile) 2>conftest.er1
13437 ac_status=$?
13438 grep -v '^ *+' conftest.er1 >conftest.err
13439 rm -f conftest.er1
13440 cat conftest.err >&5
13441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13442 (exit $ac_status); } &&
7357c5b6
AM
13443 { ac_try='test -z "$ac_c_werror_flag"
13444 || test ! -s conftest.err'
42ecbf5e
DJ
13445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13446 (eval $ac_try) 2>&5
13447 ac_status=$?
13448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449 (exit $ac_status); }; } &&
13450 { ac_try='test -s conftest.$ac_objext'
13451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13452 (eval $ac_try) 2>&5
13453 ac_status=$?
13454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13455 (exit $ac_status); }; }; then
502bdb00 13456 ac_cv_have_decl_free=yes
252b5132 13457else
42ecbf5e
DJ
13458 echo "$as_me: failed program was:" >&5
13459sed 's/^/| /' conftest.$ac_ext >&5
13460
502bdb00 13461ac_cv_have_decl_free=no
252b5132 13462fi
42ecbf5e 13463rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 13464fi
502bdb00
JW
13465echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
13466echo "${ECHO_T}$ac_cv_have_decl_free" >&6
13467if test $ac_cv_have_decl_free = yes; then
252b5132 13468
502bdb00
JW
13469cat >>confdefs.h <<_ACEOF
13470#define HAVE_DECL_FREE 1
13471_ACEOF
42ecbf5e 13472
502bdb00
JW
13473
13474else
13475 cat >>confdefs.h <<_ACEOF
13476#define HAVE_DECL_FREE 0
42ecbf5e 13477_ACEOF
252b5132 13478
252b5132 13479
502bdb00
JW
13480fi
13481echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
13482echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
13483if test "${ac_cv_have_decl_sbrk+set}" = set; then
42ecbf5e 13484 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 13485else
42ecbf5e
DJ
13486 cat >conftest.$ac_ext <<_ACEOF
13487/* confdefs.h. */
13488_ACEOF
13489cat confdefs.h >>conftest.$ac_ext
13490cat >>conftest.$ac_ext <<_ACEOF
13491/* end confdefs.h. */
502bdb00 13492$ac_includes_default
42ecbf5e
DJ
13493int
13494main ()
13495{
502bdb00
JW
13496#ifndef sbrk
13497 char *p = (char *) sbrk;
13498#endif
13499
42ecbf5e
DJ
13500 ;
13501 return 0;
13502}
13503_ACEOF
13504rm -f conftest.$ac_objext
13505if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13506 (eval $ac_compile) 2>conftest.er1
13507 ac_status=$?
13508 grep -v '^ *+' conftest.er1 >conftest.err
13509 rm -f conftest.er1
13510 cat conftest.err >&5
13511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13512 (exit $ac_status); } &&
7357c5b6
AM
13513 { ac_try='test -z "$ac_c_werror_flag"
13514 || test ! -s conftest.err'
42ecbf5e
DJ
13515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13516 (eval $ac_try) 2>&5
13517 ac_status=$?
13518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13519 (exit $ac_status); }; } &&
13520 { ac_try='test -s conftest.$ac_objext'
13521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13522 (eval $ac_try) 2>&5
13523 ac_status=$?
13524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525 (exit $ac_status); }; }; then
502bdb00 13526 ac_cv_have_decl_sbrk=yes
252b5132 13527else
42ecbf5e
DJ
13528 echo "$as_me: failed program was:" >&5
13529sed 's/^/| /' conftest.$ac_ext >&5
13530
502bdb00 13531ac_cv_have_decl_sbrk=no
252b5132 13532fi
42ecbf5e 13533rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 13534fi
502bdb00
JW
13535echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
13536echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
13537if test $ac_cv_have_decl_sbrk = yes; then
13538
13539cat >>confdefs.h <<_ACEOF
13540#define HAVE_DECL_SBRK 1
13541_ACEOF
252b5132 13542
42ecbf5e 13543
502bdb00
JW
13544else
13545 cat >>confdefs.h <<_ACEOF
13546#define HAVE_DECL_SBRK 0
42ecbf5e 13547_ACEOF
252b5132 13548
252b5132 13549
502bdb00
JW
13550fi
13551echo "$as_me:$LINENO: checking whether getenv is declared" >&5
13552echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
13553if test "${ac_cv_have_decl_getenv+set}" = set; then
42ecbf5e 13554 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 13555else
42ecbf5e
DJ
13556 cat >conftest.$ac_ext <<_ACEOF
13557/* confdefs.h. */
13558_ACEOF
13559cat confdefs.h >>conftest.$ac_ext
13560cat >>conftest.$ac_ext <<_ACEOF
13561/* end confdefs.h. */
502bdb00 13562$ac_includes_default
42ecbf5e
DJ
13563int
13564main ()
13565{
502bdb00
JW
13566#ifndef getenv
13567 char *p = (char *) getenv;
13568#endif
13569
42ecbf5e
DJ
13570 ;
13571 return 0;
13572}
13573_ACEOF
13574rm -f conftest.$ac_objext
13575if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13576 (eval $ac_compile) 2>conftest.er1
13577 ac_status=$?
13578 grep -v '^ *+' conftest.er1 >conftest.err
13579 rm -f conftest.er1
13580 cat conftest.err >&5
13581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13582 (exit $ac_status); } &&
7357c5b6
AM
13583 { ac_try='test -z "$ac_c_werror_flag"
13584 || test ! -s conftest.err'
42ecbf5e
DJ
13585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13586 (eval $ac_try) 2>&5
13587 ac_status=$?
13588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589 (exit $ac_status); }; } &&
13590 { ac_try='test -s conftest.$ac_objext'
13591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13592 (eval $ac_try) 2>&5
13593 ac_status=$?
13594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13595 (exit $ac_status); }; }; then
502bdb00 13596 ac_cv_have_decl_getenv=yes
252b5132 13597else
42ecbf5e
DJ
13598 echo "$as_me: failed program was:" >&5
13599sed 's/^/| /' conftest.$ac_ext >&5
13600
502bdb00 13601ac_cv_have_decl_getenv=no
252b5132 13602fi
42ecbf5e 13603rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 13604fi
502bdb00
JW
13605echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
13606echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
13607if test $ac_cv_have_decl_getenv = yes; then
252b5132 13608
502bdb00
JW
13609cat >>confdefs.h <<_ACEOF
13610#define HAVE_DECL_GETENV 1
13611_ACEOF
42ecbf5e 13612
502bdb00
JW
13613
13614else
13615 cat >>confdefs.h <<_ACEOF
13616#define HAVE_DECL_GETENV 0
42ecbf5e 13617_ACEOF
252b5132 13618
252b5132 13619
502bdb00
JW
13620fi
13621echo "$as_me:$LINENO: checking whether environ is declared" >&5
13622echo $ECHO_N "checking whether environ is declared... $ECHO_C" >&6
13623if test "${ac_cv_have_decl_environ+set}" = set; then
42ecbf5e 13624 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 13625else
42ecbf5e
DJ
13626 cat >conftest.$ac_ext <<_ACEOF
13627/* confdefs.h. */
13628_ACEOF
13629cat confdefs.h >>conftest.$ac_ext
13630cat >>conftest.$ac_ext <<_ACEOF
13631/* end confdefs.h. */
502bdb00 13632$ac_includes_default
42ecbf5e
DJ
13633int
13634main ()
13635{
502bdb00
JW
13636#ifndef environ
13637 char *p = (char *) environ;
13638#endif
13639
42ecbf5e
DJ
13640 ;
13641 return 0;
13642}
13643_ACEOF
13644rm -f conftest.$ac_objext
13645if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13646 (eval $ac_compile) 2>conftest.er1
13647 ac_status=$?
13648 grep -v '^ *+' conftest.er1 >conftest.err
13649 rm -f conftest.er1
13650 cat conftest.err >&5
13651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13652 (exit $ac_status); } &&
7357c5b6
AM
13653 { ac_try='test -z "$ac_c_werror_flag"
13654 || test ! -s conftest.err'
42ecbf5e
DJ
13655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13656 (eval $ac_try) 2>&5
13657 ac_status=$?
13658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13659 (exit $ac_status); }; } &&
13660 { ac_try='test -s conftest.$ac_objext'
13661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13662 (eval $ac_try) 2>&5
13663 ac_status=$?
13664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13665 (exit $ac_status); }; }; then
502bdb00 13666 ac_cv_have_decl_environ=yes
252b5132 13667else
42ecbf5e
DJ
13668 echo "$as_me: failed program was:" >&5
13669sed 's/^/| /' conftest.$ac_ext >&5
13670
502bdb00 13671ac_cv_have_decl_environ=no
252b5132 13672fi
42ecbf5e 13673rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 13674fi
502bdb00
JW
13675echo "$as_me:$LINENO: result: $ac_cv_have_decl_environ" >&5
13676echo "${ECHO_T}$ac_cv_have_decl_environ" >&6
13677if test $ac_cv_have_decl_environ = yes; then
252b5132 13678
502bdb00
JW
13679cat >>confdefs.h <<_ACEOF
13680#define HAVE_DECL_ENVIRON 1
13681_ACEOF
42ecbf5e 13682
502bdb00
JW
13683
13684else
13685 cat >>confdefs.h <<_ACEOF
13686#define HAVE_DECL_ENVIRON 0
42ecbf5e 13687_ACEOF
252b5132 13688
502bdb00 13689
252b5132
RH
13690fi
13691
13692
502bdb00 13693
4474d12b
CS
13694# Link in zlib if we can. This is needed only for the bootstrap tests
13695# right now, since those tests use libbfd, which depends on zlib.
13696echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
13697echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
13698if test "${ac_cv_search_zlibVersion+set}" = set; then
13699 echo $ECHO_N "(cached) $ECHO_C" >&6
13700else
13701 ac_func_search_save_LIBS=$LIBS
13702ac_cv_search_zlibVersion=no
13703cat >conftest.$ac_ext <<_ACEOF
13704/* confdefs.h. */
13705_ACEOF
13706cat confdefs.h >>conftest.$ac_ext
13707cat >>conftest.$ac_ext <<_ACEOF
13708/* end confdefs.h. */
13709
13710/* Override any gcc2 internal prototype to avoid an error. */
13711#ifdef __cplusplus
13712extern "C"
13713#endif
13714/* We use char because int might match the return type of a gcc2
13715 builtin and then its argument prototype would still apply. */
13716char zlibVersion ();
13717int
13718main ()
13719{
13720zlibVersion ();
13721 ;
13722 return 0;
13723}
13724_ACEOF
13725rm -f conftest.$ac_objext conftest$ac_exeext
13726if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13727 (eval $ac_link) 2>conftest.er1
13728 ac_status=$?
13729 grep -v '^ *+' conftest.er1 >conftest.err
13730 rm -f conftest.er1
13731 cat conftest.err >&5
13732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13733 (exit $ac_status); } &&
7357c5b6
AM
13734 { ac_try='test -z "$ac_c_werror_flag"
13735 || test ! -s conftest.err'
4474d12b
CS
13736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13737 (eval $ac_try) 2>&5
13738 ac_status=$?
13739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13740 (exit $ac_status); }; } &&
13741 { ac_try='test -s conftest$ac_exeext'
13742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13743 (eval $ac_try) 2>&5
13744 ac_status=$?
13745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746 (exit $ac_status); }; }; then
13747 ac_cv_search_zlibVersion="none required"
13748else
13749 echo "$as_me: failed program was:" >&5
13750sed 's/^/| /' conftest.$ac_ext >&5
13751
13752fi
13753rm -f conftest.err conftest.$ac_objext \
13754 conftest$ac_exeext conftest.$ac_ext
13755if test "$ac_cv_search_zlibVersion" = no; then
13756 for ac_lib in z; do
13757 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13758 cat >conftest.$ac_ext <<_ACEOF
13759/* confdefs.h. */
13760_ACEOF
13761cat confdefs.h >>conftest.$ac_ext
13762cat >>conftest.$ac_ext <<_ACEOF
13763/* end confdefs.h. */
13764
13765/* Override any gcc2 internal prototype to avoid an error. */
13766#ifdef __cplusplus
13767extern "C"
13768#endif
13769/* We use char because int might match the return type of a gcc2
13770 builtin and then its argument prototype would still apply. */
13771char zlibVersion ();
13772int
13773main ()
13774{
13775zlibVersion ();
13776 ;
13777 return 0;
13778}
13779_ACEOF
13780rm -f conftest.$ac_objext conftest$ac_exeext
13781if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13782 (eval $ac_link) 2>conftest.er1
13783 ac_status=$?
13784 grep -v '^ *+' conftest.er1 >conftest.err
13785 rm -f conftest.er1
13786 cat conftest.err >&5
13787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13788 (exit $ac_status); } &&
7357c5b6
AM
13789 { ac_try='test -z "$ac_c_werror_flag"
13790 || test ! -s conftest.err'
4474d12b
CS
13791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13792 (eval $ac_try) 2>&5
13793 ac_status=$?
13794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13795 (exit $ac_status); }; } &&
13796 { ac_try='test -s conftest$ac_exeext'
13797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13798 (eval $ac_try) 2>&5
13799 ac_status=$?
13800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13801 (exit $ac_status); }; }; then
13802 ac_cv_search_zlibVersion="-l$ac_lib"
13803break
13804else
13805 echo "$as_me: failed program was:" >&5
13806sed 's/^/| /' conftest.$ac_ext >&5
13807
13808fi
13809rm -f conftest.err conftest.$ac_objext \
13810 conftest$ac_exeext conftest.$ac_ext
13811 done
13812fi
13813LIBS=$ac_func_search_save_LIBS
13814fi
13815echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
13816echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
13817if test "$ac_cv_search_zlibVersion" != no; then
13818 test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS"
13819
13820for ac_header in zlib.h
13821do
13822as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13823if eval "test \"\${$as_ac_Header+set}\" = set"; then
13824 echo "$as_me:$LINENO: checking for $ac_header" >&5
13825echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13826if eval "test \"\${$as_ac_Header+set}\" = set"; then
13827 echo $ECHO_N "(cached) $ECHO_C" >&6
13828fi
13829echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13830echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13831else
13832 # Is the header compilable?
13833echo "$as_me:$LINENO: checking $ac_header usability" >&5
13834echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13835cat >conftest.$ac_ext <<_ACEOF
13836/* confdefs.h. */
13837_ACEOF
13838cat confdefs.h >>conftest.$ac_ext
13839cat >>conftest.$ac_ext <<_ACEOF
13840/* end confdefs.h. */
13841$ac_includes_default
13842#include <$ac_header>
13843_ACEOF
13844rm -f conftest.$ac_objext
13845if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13846 (eval $ac_compile) 2>conftest.er1
13847 ac_status=$?
13848 grep -v '^ *+' conftest.er1 >conftest.err
13849 rm -f conftest.er1
13850 cat conftest.err >&5
13851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852 (exit $ac_status); } &&
7357c5b6
AM
13853 { ac_try='test -z "$ac_c_werror_flag"
13854 || test ! -s conftest.err'
4474d12b
CS
13855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13856 (eval $ac_try) 2>&5
13857 ac_status=$?
13858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13859 (exit $ac_status); }; } &&
13860 { ac_try='test -s conftest.$ac_objext'
13861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13862 (eval $ac_try) 2>&5
13863 ac_status=$?
13864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13865 (exit $ac_status); }; }; then
13866 ac_header_compiler=yes
13867else
13868 echo "$as_me: failed program was:" >&5
13869sed 's/^/| /' conftest.$ac_ext >&5
13870
13871ac_header_compiler=no
13872fi
13873rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13874echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13875echo "${ECHO_T}$ac_header_compiler" >&6
13876
13877# Is the header present?
13878echo "$as_me:$LINENO: checking $ac_header presence" >&5
13879echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13880cat >conftest.$ac_ext <<_ACEOF
13881/* confdefs.h. */
13882_ACEOF
13883cat confdefs.h >>conftest.$ac_ext
13884cat >>conftest.$ac_ext <<_ACEOF
13885/* end confdefs.h. */
13886#include <$ac_header>
13887_ACEOF
13888if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13889 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13890 ac_status=$?
13891 grep -v '^ *+' conftest.er1 >conftest.err
13892 rm -f conftest.er1
13893 cat conftest.err >&5
13894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13895 (exit $ac_status); } >/dev/null; then
13896 if test -s conftest.err; then
13897 ac_cpp_err=$ac_c_preproc_warn_flag
13898 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13899 else
13900 ac_cpp_err=
13901 fi
13902else
13903 ac_cpp_err=yes
13904fi
13905if test -z "$ac_cpp_err"; then
13906 ac_header_preproc=yes
13907else
13908 echo "$as_me: failed program was:" >&5
13909sed 's/^/| /' conftest.$ac_ext >&5
13910
13911 ac_header_preproc=no
13912fi
13913rm -f conftest.err conftest.$ac_ext
13914echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13915echo "${ECHO_T}$ac_header_preproc" >&6
13916
13917# So? What about this header?
13918case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13919 yes:no: )
13920 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13921echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13922 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13923echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13924 ac_header_preproc=yes
13925 ;;
13926 no:yes:* )
13927 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13928echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13929 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13930echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13931 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13932echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13933 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13934echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13935 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13936echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13937 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13938echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13939 (
13940 cat <<\_ASBOX
13941## ------------------------------------------ ##
13942## Report this to the AC_PACKAGE_NAME lists. ##
13943## ------------------------------------------ ##
13944_ASBOX
13945 ) |
13946 sed "s/^/$as_me: WARNING: /" >&2
13947 ;;
13948esac
13949echo "$as_me:$LINENO: checking for $ac_header" >&5
13950echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13951if eval "test \"\${$as_ac_Header+set}\" = set"; then
13952 echo $ECHO_N "(cached) $ECHO_C" >&6
13953else
13954 eval "$as_ac_Header=\$ac_header_preproc"
13955fi
13956echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13957echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13958
13959fi
13960if test `eval echo '${'$as_ac_Header'}'` = yes; then
13961 cat >>confdefs.h <<_ACEOF
13962#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13963_ACEOF
13964
13965fi
13966
13967done
13968
13969fi
13970
13971
597e2591
ILT
13972# When converting linker scripts into strings for use in emulation
13973# files, use astring.sed if the compiler supports ANSI string
13974# concatenation, or ostring.sed otherwise. This is to support the
13975# broken Microsoft MSVC compiler, which limits the length of string
13976# constants, while still supporting pre-ANSI compilers which do not
13977# support string concatenation.
42ecbf5e
DJ
13978echo "$as_me:$LINENO: checking whether ANSI C string concatenation works" >&5
13979echo $ECHO_N "checking whether ANSI C string concatenation works... $ECHO_C" >&6
13980if test "${ld_cv_string_concatenation+set}" = set; then
13981 echo $ECHO_N "(cached) $ECHO_C" >&6
13982else
13983 cat >conftest.$ac_ext <<_ACEOF
13984/* confdefs.h. */
13985_ACEOF
13986cat confdefs.h >>conftest.$ac_ext
13987cat >>conftest.$ac_ext <<_ACEOF
13988/* end confdefs.h. */
597e2591 13989
42ecbf5e
DJ
13990int
13991main ()
13992{
597e2591 13993char *a = "a" "a";
42ecbf5e
DJ
13994 ;
13995 return 0;
13996}
13997_ACEOF
13998rm -f conftest.$ac_objext
13999if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14000 (eval $ac_compile) 2>conftest.er1
14001 ac_status=$?
14002 grep -v '^ *+' conftest.er1 >conftest.err
14003 rm -f conftest.er1
14004 cat conftest.err >&5
14005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14006 (exit $ac_status); } &&
7357c5b6
AM
14007 { ac_try='test -z "$ac_c_werror_flag"
14008 || test ! -s conftest.err'
42ecbf5e
DJ
14009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14010 (eval $ac_try) 2>&5
14011 ac_status=$?
14012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013 (exit $ac_status); }; } &&
14014 { ac_try='test -s conftest.$ac_objext'
14015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14016 (eval $ac_try) 2>&5
14017 ac_status=$?
14018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019 (exit $ac_status); }; }; then
e4dabd0e 14020 ld_cv_string_concatenation=yes
597e2591 14021else
42ecbf5e
DJ
14022 echo "$as_me: failed program was:" >&5
14023sed 's/^/| /' conftest.$ac_ext >&5
14024
14025ld_cv_string_concatenation=no
597e2591 14026fi
42ecbf5e 14027rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
597e2591
ILT
14028fi
14029
42ecbf5e
DJ
14030echo "$as_me:$LINENO: result: $ld_cv_string_concatenation" >&5
14031echo "${ECHO_T}$ld_cv_string_concatenation" >&6
e4dabd0e 14032if test "$ld_cv_string_concatenation" = "yes"; then
597e2591
ILT
14033 STRINGIFY=astring.sed
14034else
14035 STRINGIFY=ostring.sed
14036fi
14037
14038
252b5132
RH
14039# target-specific stuff:
14040
14041all_targets=
14042EMUL=
14043all_emuls=
14044all_emul_extras=
ba2be581 14045all_libpath=
252b5132
RH
14046
14047rm -f tdirs
14048
14049for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
14050do
14051 if test "$targ_alias" = "all"; then
14052 all_targets=true
14053 else
14054 # Canonicalize the secondary target names.
42ecbf5e 14055 result=`$ac_config_sub $targ_alias 2>/dev/null`
252b5132
RH
14056 if test -n "$result"; then
14057 targ=$result
14058 else
14059 targ=$targ_alias
14060 fi
14061
14062 . ${srcdir}/configure.tgt
14063
14064 if test "$targ" = "$target"; then
14065 EMUL=$targ_emul
14066 fi
14067
314e9a4e
L
14068 if test x${want64} = xfalse; then
14069 . ${srcdir}/../bfd/config.bfd
14070 fi
14071
534d3119
L
14072 if test x${want64} = xtrue; then
14073 targ_extra_emuls="$targ_extra_emuls $targ64_extra_emuls"
14074 targ_extra_libpath="$targ_extra_libpath $targ64_extra_libpath"
14075 fi
14076
3336653a 14077 for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
252b5132
RH
14078 case " $all_emuls " in
14079 *" e${i}.o "*) ;;
14080 *)
14081 all_emuls="$all_emuls e${i}.o"
14082 eval result=\$tdir_$i
14083 test -z "$result" && result=$targ_alias
14084 echo tdir_$i=$result >> tdirs
14085 ;;
d15b04bd
L
14086 esac
14087 done
3336653a 14088
42ecbf5e
DJ
14089 for i in $targ_emul $targ_extra_libpath; do
14090 case " $all_libpath " in
14091 *" ${i} "*) ;;
14092 *)
14093 if test -z "$all_libpath"; then
14094 all_libpath=${i}
14095 else
14096 all_libpath="$all_libpath ${i}"
14097 fi
14098 ;;
14099 esac
14100 done
14101
14102 for i in $targ_extra_ofiles; do
14103 case " $all_emul_extras " in
14104 *" ${i} "*) ;;
14105 *)
14106 all_emul_extras="$all_emul_extras ${i}"
14107 ;;
14108 esac
14109 done
14110 fi
14111done
14112
14113
14114
14115TDIRS=tdirs
14116
14117
14118if test x${all_targets} = xtrue; then
314e9a4e
L
14119 if test x${want64} = xfalse; then
14120 echo "$as_me:$LINENO: checking for long" >&5
14121echo $ECHO_N "checking for long... $ECHO_C" >&6
14122if test "${ac_cv_type_long+set}" = set; then
14123 echo $ECHO_N "(cached) $ECHO_C" >&6
14124else
14125 cat >conftest.$ac_ext <<_ACEOF
14126/* confdefs.h. */
14127_ACEOF
14128cat confdefs.h >>conftest.$ac_ext
14129cat >>conftest.$ac_ext <<_ACEOF
14130/* end confdefs.h. */
14131$ac_includes_default
14132int
14133main ()
14134{
14135if ((long *) 0)
14136 return 0;
14137if (sizeof (long))
14138 return 0;
14139 ;
14140 return 0;
14141}
14142_ACEOF
14143rm -f conftest.$ac_objext
14144if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14145 (eval $ac_compile) 2>conftest.er1
14146 ac_status=$?
14147 grep -v '^ *+' conftest.er1 >conftest.err
14148 rm -f conftest.er1
14149 cat conftest.err >&5
14150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14151 (exit $ac_status); } &&
7357c5b6
AM
14152 { ac_try='test -z "$ac_c_werror_flag"
14153 || test ! -s conftest.err'
314e9a4e
L
14154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14155 (eval $ac_try) 2>&5
14156 ac_status=$?
14157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14158 (exit $ac_status); }; } &&
14159 { ac_try='test -s conftest.$ac_objext'
14160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14161 (eval $ac_try) 2>&5
14162 ac_status=$?
14163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14164 (exit $ac_status); }; }; then
14165 ac_cv_type_long=yes
14166else
14167 echo "$as_me: failed program was:" >&5
14168sed 's/^/| /' conftest.$ac_ext >&5
14169
14170ac_cv_type_long=no
14171fi
14172rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14173fi
14174echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
14175echo "${ECHO_T}$ac_cv_type_long" >&6
14176
14177echo "$as_me:$LINENO: checking size of long" >&5
14178echo $ECHO_N "checking size of long... $ECHO_C" >&6
14179if test "${ac_cv_sizeof_long+set}" = set; then
14180 echo $ECHO_N "(cached) $ECHO_C" >&6
14181else
14182 if test "$ac_cv_type_long" = yes; then
14183 # The cast to unsigned long works around a bug in the HP C Compiler
14184 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14185 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14186 # This bug is HP SR number 8606223364.
14187 if test "$cross_compiling" = yes; then
14188 # Depending upon the size, compute the lo and hi bounds.
14189cat >conftest.$ac_ext <<_ACEOF
14190/* confdefs.h. */
14191_ACEOF
14192cat confdefs.h >>conftest.$ac_ext
14193cat >>conftest.$ac_ext <<_ACEOF
14194/* end confdefs.h. */
14195$ac_includes_default
14196int
14197main ()
14198{
14199static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
14200test_array [0] = 0
14201
14202 ;
14203 return 0;
14204}
14205_ACEOF
14206rm -f conftest.$ac_objext
14207if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14208 (eval $ac_compile) 2>conftest.er1
14209 ac_status=$?
14210 grep -v '^ *+' conftest.er1 >conftest.err
14211 rm -f conftest.er1
14212 cat conftest.err >&5
14213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14214 (exit $ac_status); } &&
7357c5b6
AM
14215 { ac_try='test -z "$ac_c_werror_flag"
14216 || test ! -s conftest.err'
314e9a4e
L
14217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14218 (eval $ac_try) 2>&5
14219 ac_status=$?
14220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14221 (exit $ac_status); }; } &&
14222 { ac_try='test -s conftest.$ac_objext'
14223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14224 (eval $ac_try) 2>&5
14225 ac_status=$?
14226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14227 (exit $ac_status); }; }; then
14228 ac_lo=0 ac_mid=0
14229 while :; do
14230 cat >conftest.$ac_ext <<_ACEOF
14231/* confdefs.h. */
14232_ACEOF
14233cat confdefs.h >>conftest.$ac_ext
14234cat >>conftest.$ac_ext <<_ACEOF
14235/* end confdefs.h. */
14236$ac_includes_default
14237int
14238main ()
14239{
14240static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
14241test_array [0] = 0
14242
14243 ;
14244 return 0;
14245}
14246_ACEOF
14247rm -f conftest.$ac_objext
14248if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14249 (eval $ac_compile) 2>conftest.er1
14250 ac_status=$?
14251 grep -v '^ *+' conftest.er1 >conftest.err
14252 rm -f conftest.er1
14253 cat conftest.err >&5
14254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14255 (exit $ac_status); } &&
7357c5b6
AM
14256 { ac_try='test -z "$ac_c_werror_flag"
14257 || test ! -s conftest.err'
314e9a4e
L
14258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14259 (eval $ac_try) 2>&5
14260 ac_status=$?
14261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14262 (exit $ac_status); }; } &&
14263 { ac_try='test -s conftest.$ac_objext'
14264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14265 (eval $ac_try) 2>&5
14266 ac_status=$?
14267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14268 (exit $ac_status); }; }; then
14269 ac_hi=$ac_mid; break
14270else
14271 echo "$as_me: failed program was:" >&5
14272sed 's/^/| /' conftest.$ac_ext >&5
14273
14274ac_lo=`expr $ac_mid + 1`
14275 if test $ac_lo -le $ac_mid; then
14276 ac_lo= ac_hi=
14277 break
14278 fi
14279 ac_mid=`expr 2 '*' $ac_mid + 1`
14280fi
14281rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14282 done
14283else
14284 echo "$as_me: failed program was:" >&5
14285sed 's/^/| /' conftest.$ac_ext >&5
14286
14287cat >conftest.$ac_ext <<_ACEOF
14288/* confdefs.h. */
14289_ACEOF
14290cat confdefs.h >>conftest.$ac_ext
14291cat >>conftest.$ac_ext <<_ACEOF
14292/* end confdefs.h. */
14293$ac_includes_default
14294int
14295main ()
14296{
14297static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
14298test_array [0] = 0
14299
14300 ;
14301 return 0;
14302}
14303_ACEOF
14304rm -f conftest.$ac_objext
14305if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14306 (eval $ac_compile) 2>conftest.er1
14307 ac_status=$?
14308 grep -v '^ *+' conftest.er1 >conftest.err
14309 rm -f conftest.er1
14310 cat conftest.err >&5
14311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14312 (exit $ac_status); } &&
7357c5b6
AM
14313 { ac_try='test -z "$ac_c_werror_flag"
14314 || test ! -s conftest.err'
314e9a4e
L
14315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14316 (eval $ac_try) 2>&5
14317 ac_status=$?
14318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319 (exit $ac_status); }; } &&
14320 { ac_try='test -s conftest.$ac_objext'
14321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14322 (eval $ac_try) 2>&5
14323 ac_status=$?
14324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325 (exit $ac_status); }; }; then
14326 ac_hi=-1 ac_mid=-1
14327 while :; do
14328 cat >conftest.$ac_ext <<_ACEOF
14329/* confdefs.h. */
14330_ACEOF
14331cat confdefs.h >>conftest.$ac_ext
14332cat >>conftest.$ac_ext <<_ACEOF
14333/* end confdefs.h. */
14334$ac_includes_default
14335int
14336main ()
14337{
14338static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
14339test_array [0] = 0
14340
14341 ;
14342 return 0;
14343}
14344_ACEOF
14345rm -f conftest.$ac_objext
14346if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14347 (eval $ac_compile) 2>conftest.er1
14348 ac_status=$?
14349 grep -v '^ *+' conftest.er1 >conftest.err
14350 rm -f conftest.er1
14351 cat conftest.err >&5
14352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14353 (exit $ac_status); } &&
7357c5b6
AM
14354 { ac_try='test -z "$ac_c_werror_flag"
14355 || test ! -s conftest.err'
314e9a4e
L
14356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14357 (eval $ac_try) 2>&5
14358 ac_status=$?
14359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14360 (exit $ac_status); }; } &&
14361 { ac_try='test -s conftest.$ac_objext'
14362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14363 (eval $ac_try) 2>&5
14364 ac_status=$?
14365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14366 (exit $ac_status); }; }; then
14367 ac_lo=$ac_mid; break
14368else
14369 echo "$as_me: failed program was:" >&5
14370sed 's/^/| /' conftest.$ac_ext >&5
14371
14372ac_hi=`expr '(' $ac_mid ')' - 1`
14373 if test $ac_mid -le $ac_hi; then
14374 ac_lo= ac_hi=
14375 break
14376 fi
14377 ac_mid=`expr 2 '*' $ac_mid`
14378fi
14379rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14380 done
14381else
14382 echo "$as_me: failed program was:" >&5
14383sed 's/^/| /' conftest.$ac_ext >&5
14384
14385ac_lo= ac_hi=
14386fi
14387rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14388fi
14389rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14390# Binary search between lo and hi bounds.
14391while test "x$ac_lo" != "x$ac_hi"; do
14392 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14393 cat >conftest.$ac_ext <<_ACEOF
14394/* confdefs.h. */
14395_ACEOF
14396cat confdefs.h >>conftest.$ac_ext
14397cat >>conftest.$ac_ext <<_ACEOF
14398/* end confdefs.h. */
14399$ac_includes_default
14400int
14401main ()
14402{
14403static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
14404test_array [0] = 0
14405
14406 ;
14407 return 0;
14408}
14409_ACEOF
14410rm -f conftest.$ac_objext
14411if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14412 (eval $ac_compile) 2>conftest.er1
14413 ac_status=$?
14414 grep -v '^ *+' conftest.er1 >conftest.err
14415 rm -f conftest.er1
14416 cat conftest.err >&5
14417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418 (exit $ac_status); } &&
7357c5b6
AM
14419 { ac_try='test -z "$ac_c_werror_flag"
14420 || test ! -s conftest.err'
314e9a4e
L
14421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14422 (eval $ac_try) 2>&5
14423 ac_status=$?
14424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14425 (exit $ac_status); }; } &&
14426 { ac_try='test -s conftest.$ac_objext'
14427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14428 (eval $ac_try) 2>&5
14429 ac_status=$?
14430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14431 (exit $ac_status); }; }; then
14432 ac_hi=$ac_mid
14433else
14434 echo "$as_me: failed program was:" >&5
14435sed 's/^/| /' conftest.$ac_ext >&5
14436
14437ac_lo=`expr '(' $ac_mid ')' + 1`
14438fi
14439rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14440done
14441case $ac_lo in
14442?*) ac_cv_sizeof_long=$ac_lo;;
7a283e07
RW
14443'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14444echo "$as_me: error: in \`$ac_pwd':" >&2;}
14445{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
314e9a4e
L
14446See \`config.log' for more details." >&5
14447echo "$as_me: error: cannot compute sizeof (long), 77
14448See \`config.log' for more details." >&2;}
7a283e07 14449 { (exit 1); exit 1; }; }; } ;;
314e9a4e
L
14450esac
14451else
14452 if test "$cross_compiling" = yes; then
7357c5b6
AM
14453 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14454echo "$as_me: error: in \`$ac_pwd':" >&2;}
14455{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14456See \`config.log' for more details." >&5
14457echo "$as_me: error: cannot run test program while cross compiling
14458See \`config.log' for more details." >&2;}
14459 { (exit 1); exit 1; }; }; }
314e9a4e
L
14460else
14461 cat >conftest.$ac_ext <<_ACEOF
14462/* confdefs.h. */
14463_ACEOF
14464cat confdefs.h >>conftest.$ac_ext
14465cat >>conftest.$ac_ext <<_ACEOF
14466/* end confdefs.h. */
14467$ac_includes_default
14468long longval () { return (long) (sizeof (long)); }
14469unsigned long ulongval () { return (long) (sizeof (long)); }
14470#include <stdio.h>
14471#include <stdlib.h>
14472int
14473main ()
14474{
14475
14476 FILE *f = fopen ("conftest.val", "w");
14477 if (! f)
14478 exit (1);
14479 if (((long) (sizeof (long))) < 0)
14480 {
14481 long i = longval ();
14482 if (i != ((long) (sizeof (long))))
14483 exit (1);
14484 fprintf (f, "%ld\n", i);
14485 }
14486 else
14487 {
14488 unsigned long i = ulongval ();
14489 if (i != ((long) (sizeof (long))))
14490 exit (1);
14491 fprintf (f, "%lu\n", i);
14492 }
14493 exit (ferror (f) || fclose (f) != 0);
14494
14495 ;
14496 return 0;
14497}
14498_ACEOF
14499rm -f conftest$ac_exeext
14500if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14501 (eval $ac_link) 2>&5
14502 ac_status=$?
14503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14504 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14506 (eval $ac_try) 2>&5
14507 ac_status=$?
14508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14509 (exit $ac_status); }; }; then
14510 ac_cv_sizeof_long=`cat conftest.val`
14511else
14512 echo "$as_me: program exited with status $ac_status" >&5
14513echo "$as_me: failed program was:" >&5
14514sed 's/^/| /' conftest.$ac_ext >&5
14515
14516( exit $ac_status )
7a283e07
RW
14517{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14518echo "$as_me: error: in \`$ac_pwd':" >&2;}
314e9a4e
L
14519{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
14520See \`config.log' for more details." >&5
14521echo "$as_me: error: cannot compute sizeof (long), 77
14522See \`config.log' for more details." >&2;}
7a283e07 14523 { (exit 1); exit 1; }; }; }
314e9a4e
L
14524fi
14525rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14526fi
14527fi
14528rm -f conftest.val
14529else
14530 ac_cv_sizeof_long=0
14531fi
14532fi
14533echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
14534echo "${ECHO_T}$ac_cv_sizeof_long" >&6
14535cat >>confdefs.h <<_ACEOF
14536#define SIZEOF_LONG $ac_cv_sizeof_long
14537_ACEOF
14538
14539
14540 if test "x${ac_cv_sizeof_long}" = "x8"; then
14541 want64=true
14542 fi
14543 fi
42ecbf5e
DJ
14544 if test x${want64} = xtrue; then
14545 EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
14546 else
14547 EMULATION_OFILES='$(ALL_EMULATIONS)'
14548 fi
14549 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)'
14550else
14551 EMULATION_OFILES=$all_emuls
14552 EMUL_EXTRA_OFILES=$all_emul_extras
14553fi
14554
14555
14556
14557
14558EMULATION_LIBPATH=$all_libpath
14559
14560
14561if test x${enable_static} = xno; then
14562 TESTBFDLIB="--rpath ../bfd/.libs ../bfd/.libs/libbfd.so"
14563else
14564 TESTBFDLIB="../bfd/.libs/libbfd.a"
14565fi
14566
14567
14568target_vendor=${target_vendor=$host_vendor}
14569case "$target_vendor" in
14570 hp) EXTRA_SHLIB_EXTENSION=".sl" ;;
14571 *) EXTRA_SHLIB_EXTENSION= ;;
14572esac
14573
14574case "$target_os" in
14575 lynxos) EXTRA_SHLIB_EXTENSION=".a" ;;
14576esac
14577
14578if test x${EXTRA_SHLIB_EXTENSION} != x ; then
14579
14580cat >>confdefs.h <<_ACEOF
14581#define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
14582_ACEOF
14583
14584fi
14585
108a6f8e
CD
14586
14587
14588
14589
31dd3154 14590
42ecbf5e 14591 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
da594c4a 14592
42ecbf5e
DJ
14593cat >confcache <<\_ACEOF
14594# This file is a shell script that caches the results of configure
14595# tests run on this system so they can be shared between configure
14596# scripts and configure runs, see configure's option --config-cache.
14597# It is not useful on other systems. If it contains results you don't
14598# want to keep, you may remove or edit it.
14599#
14600# config.status only pays attention to the cache file if you give it
14601# the --recheck option to rerun configure.
14602#
14603# `ac_cv_env_foo' variables (set or unset) will be overridden when
14604# loading this file, other *unset* `ac_cv_foo' will be assigned the
14605# following values.
14606
14607_ACEOF
14608
14609# The following way of writing the cache mishandles newlines in values,
14610# but we know of no workaround that is simple, portable, and efficient.
14611# So, don't put newlines in cache variables' values.
14612# Ultrix sh set writes to stderr and can't be redirected directly,
14613# and sets the high bit in the cache file unless we assign to the vars.
14614{
14615 (set) 2>&1 |
14616 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14617 *ac_space=\ *)
14618 # `set' does not quote correctly, so add quotes (double-quote
14619 # substitution turns \\\\ into \\, and sed turns \\ into \).
14620 sed -n \
14621 "s/'/'\\\\''/g;
14622 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14623 ;;
14624 *)
14625 # `set' quotes correctly as required by POSIX, so do not add quotes.
14626 sed -n \
14627 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
14628 ;;
14629 esac;
14630} |
14631 sed '
14632 t clear
14633 : clear
14634 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14635 t end
14636 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14637 : end' >>confcache
14638if diff $cache_file confcache >/dev/null 2>&1; then :; else
14639 if test -w $cache_file; then
14640 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
14641 cat confcache >$cache_file
14642 else
14643 echo "not updating unwritable cache $cache_file"
14644 fi
14645fi
14646rm -f confcache
14647
14648test "x$prefix" = xNONE && prefix=$ac_default_prefix
14649# Let make expand exec_prefix.
14650test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14651
14652# VPATH may cause trouble with some makes, so we remove $(srcdir),
14653# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14654# trailing colons and then remove the whole line if VPATH becomes empty
14655# (actually we leave an empty line to preserve line numbers).
14656if test "x$srcdir" = x.; then
14657 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14658s/:*\$(srcdir):*/:/;
14659s/:*\${srcdir}:*/:/;
14660s/:*@srcdir@:*/:/;
14661s/^\([^=]*=[ ]*\):*/\1/;
14662s/:*$//;
14663s/^[^=]*=[ ]*$//;
14664}'
14665fi
14666
14667DEFS=-DHAVE_CONFIG_H
14668
14669ac_libobjs=
14670ac_ltlibobjs=
14671for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14672 # 1. Remove the extension, and $U if already installed.
14673 ac_i=`echo "$ac_i" |
14674 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
14675 # 2. Add them.
14676 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
14677 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
14678done
14679LIBOBJS=$ac_libobjs
14680
14681LTLIBOBJS=$ac_ltlibobjs
14682
14683
14684if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14685 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
14686Usually this means the macro was only invoked conditionally." >&5
14687echo "$as_me: error: conditional \"AMDEP\" was never defined.
14688Usually this means the macro was only invoked conditionally." >&2;}
14689 { (exit 1); exit 1; }; }
14690fi
14691if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14692 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
14693Usually this means the macro was only invoked conditionally." >&5
14694echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
14695Usually this means the macro was only invoked conditionally." >&2;}
14696 { (exit 1); exit 1; }; }
14697fi
14698if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14699 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
14700Usually this means the macro was only invoked conditionally." >&5
14701echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
14702Usually this means the macro was only invoked conditionally." >&2;}
14703 { (exit 1); exit 1; }; }
14704fi
d5fbea21
DJ
14705if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
14706 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
14707Usually this means the macro was only invoked conditionally." >&5
14708echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
14709Usually this means the macro was only invoked conditionally." >&2;}
14710 { (exit 1); exit 1; }; }
14711fi
42ecbf5e
DJ
14712
14713: ${CONFIG_STATUS=./config.status}
14714ac_clean_files_save=$ac_clean_files
14715ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14716{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14717echo "$as_me: creating $CONFIG_STATUS" >&6;}
14718cat >$CONFIG_STATUS <<_ACEOF
14719#! $SHELL
14720# Generated by $as_me.
14721# Run this file to recreate the current configuration.
14722# Compiler output produced by configure, useful for debugging
14723# configure, is in config.log if it exists.
14724
14725debug=false
14726ac_cs_recheck=false
14727ac_cs_silent=false
14728SHELL=\${CONFIG_SHELL-$SHELL}
14729_ACEOF
14730
14731cat >>$CONFIG_STATUS <<\_ACEOF
14732## --------------------- ##
14733## M4sh Initialization. ##
14734## --------------------- ##
14735
14736# Be Bourne compatible
14737if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14738 emulate sh
14739 NULLCMD=:
14740 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14741 # is contrary to our usage. Disable this feature.
14742 alias -g '${1+"$@"}'='"$@"'
14743elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
14744 set -o posix
14745fi
14746DUALCASE=1; export DUALCASE # for MKS sh
14747
14748# Support unset when possible.
14749if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14750 as_unset=unset
14751else
14752 as_unset=false
14753fi
14754
14755
14756# Work around bugs in pre-3.0 UWIN ksh.
14757$as_unset ENV MAIL MAILPATH
14758PS1='$ '
14759PS2='> '
14760PS4='+ '
14761
14762# NLS nuisances.
14763for as_var in \
14764 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14765 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14766 LC_TELEPHONE LC_TIME
14767do
14768 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14769 eval $as_var=C; export $as_var
14770 else
14771 $as_unset $as_var
14772 fi
14773done
14774
14775# Required to use basename.
14776if expr a : '\(a\)' >/dev/null 2>&1; then
14777 as_expr=expr
14778else
14779 as_expr=false
14780fi
14781
14782if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
14783 as_basename=basename
14784else
14785 as_basename=false
14786fi
14787
14788
14789# Name of the executable.
14790as_me=`$as_basename "$0" ||
14791$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14792 X"$0" : 'X\(//\)$' \| \
14793 X"$0" : 'X\(/\)$' \| \
14794 . : '\(.\)' 2>/dev/null ||
14795echo X/"$0" |
14796 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14797 /^X\/\(\/\/\)$/{ s//\1/; q; }
14798 /^X\/\(\/\).*/{ s//\1/; q; }
14799 s/.*/./; q'`
14800
14801
14802# PATH needs CR, and LINENO needs CR and PATH.
14803# Avoid depending upon Character Ranges.
14804as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14805as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14806as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14807as_cr_digits='0123456789'
14808as_cr_alnum=$as_cr_Letters$as_cr_digits
14809
14810# The user is always right.
14811if test "${PATH_SEPARATOR+set}" != set; then
14812 echo "#! /bin/sh" >conf$$.sh
14813 echo "exit 0" >>conf$$.sh
14814 chmod +x conf$$.sh
14815 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14816 PATH_SEPARATOR=';'
14817 else
14818 PATH_SEPARATOR=:
14819 fi
14820 rm -f conf$$.sh
14821fi
14822
e5a52504 14823
42ecbf5e
DJ
14824 as_lineno_1=$LINENO
14825 as_lineno_2=$LINENO
14826 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14827 test "x$as_lineno_1" != "x$as_lineno_2" &&
14828 test "x$as_lineno_3" = "x$as_lineno_2" || {
14829 # Find who we are. Look in the path if we contain no path at all
14830 # relative or not.
14831 case $0 in
14832 *[\\/]* ) as_myself=$0 ;;
14833 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14834for as_dir in $PATH
14835do
14836 IFS=$as_save_IFS
14837 test -z "$as_dir" && as_dir=.
14838 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14839done
14840
14841 ;;
14842 esac
14843 # We did not find ourselves, most probably we were run as `sh COMMAND'
14844 # in which case we are not to be found in the path.
14845 if test "x$as_myself" = x; then
14846 as_myself=$0
14847 fi
14848 if test ! -f "$as_myself"; then
14849 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
14850echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
14851 { (exit 1); exit 1; }; }
252b5132 14852 fi
42ecbf5e
DJ
14853 case $CONFIG_SHELL in
14854 '')
14855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14856for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
14857do
14858 IFS=$as_save_IFS
14859 test -z "$as_dir" && as_dir=.
14860 for as_base in sh bash ksh sh5; do
14861 case $as_dir in
14862 /*)
14863 if ("$as_dir/$as_base" -c '
14864 as_lineno_1=$LINENO
14865 as_lineno_2=$LINENO
14866 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14867 test "x$as_lineno_1" != "x$as_lineno_2" &&
14868 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
14869 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
14870 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
14871 CONFIG_SHELL=$as_dir/$as_base
14872 export CONFIG_SHELL
14873 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
14874 fi;;
14875 esac
14876 done
252b5132 14877done
42ecbf5e
DJ
14878;;
14879 esac
252b5132 14880
42ecbf5e
DJ
14881 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14882 # uniformly replaced by the line number. The first 'sed' inserts a
14883 # line-number line before each line; the second 'sed' does the real
14884 # work. The second script uses 'N' to pair each line-number line
14885 # with the numbered line, and appends trailing '-' during
14886 # substitution so that $LINENO is not a special case at line end.
14887 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14888 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
14889 sed '=' <$as_myself |
14890 sed '
14891 N
14892 s,$,-,
14893 : loop
14894 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
14895 t loop
14896 s,-$,,
14897 s,^['$as_cr_digits']*\n,,
14898 ' >$as_me.lineno &&
14899 chmod +x $as_me.lineno ||
14900 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
14901echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
14902 { (exit 1); exit 1; }; }
14903
14904 # Don't try to exec as it changes $[0], causing all sort of problems
14905 # (the dirname of $[0] is not the place where we might find the
14906 # original and so on. Autoconf is especially sensible to this).
14907 . ./$as_me.lineno
14908 # Exit status is that of the last command.
14909 exit
14910}
252b5132
RH
14911
14912
42ecbf5e
DJ
14913case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
14914 *c*,-n*) ECHO_N= ECHO_C='
14915' ECHO_T=' ' ;;
14916 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
14917 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
14918esac
252b5132 14919
42ecbf5e
DJ
14920if expr a : '\(a\)' >/dev/null 2>&1; then
14921 as_expr=expr
14922else
14923 as_expr=false
14924fi
252b5132 14925
42ecbf5e
DJ
14926rm -f conf$$ conf$$.exe conf$$.file
14927echo >conf$$.file
14928if ln -s conf$$.file conf$$ 2>/dev/null; then
14929 # We could just check for DJGPP; but this test a) works b) is more generic
14930 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
14931 if test -f conf$$.exe; then
14932 # Don't use ln at all; we don't have any links
14933 as_ln_s='cp -p'
252b5132 14934 else
42ecbf5e 14935 as_ln_s='ln -s'
252b5132 14936 fi
42ecbf5e
DJ
14937elif ln conf$$.file conf$$ 2>/dev/null; then
14938 as_ln_s=ln
e5a52504 14939else
42ecbf5e 14940 as_ln_s='cp -p'
e5a52504 14941fi
42ecbf5e 14942rm -f conf$$ conf$$.exe conf$$.file
252b5132 14943
42ecbf5e
DJ
14944if mkdir -p . 2>/dev/null; then
14945 as_mkdir_p=:
14946else
14947 test -d ./-p && rmdir ./-p
14948 as_mkdir_p=false
14949fi
252b5132 14950
42ecbf5e 14951as_executable_p="test -f"
252b5132 14952
42ecbf5e
DJ
14953# Sed expression to map a string onto a valid CPP name.
14954as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
f234d5fe 14955
42ecbf5e
DJ
14956# Sed expression to map a string onto a valid variable name.
14957as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
e5a52504 14958
e5a52504 14959
42ecbf5e
DJ
14960# IFS
14961# We need space, tab and new line, in precisely that order.
14962as_nl='
14963'
14964IFS=" $as_nl"
e5a52504 14965
42ecbf5e
DJ
14966# CDPATH.
14967$as_unset CDPATH
e5a52504 14968
42ecbf5e 14969exec 6>&1
e5a52504 14970
42ecbf5e
DJ
14971# Open the log real soon, to keep \$[0] and so on meaningful, and to
14972# report actual input values of CONFIG_FILES etc. instead of their
14973# values after options handling. Logging --version etc. is OK.
14974exec 5>>config.log
14975{
14976 echo
14977 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14978## Running $as_me. ##
14979_ASBOX
14980} >&5
14981cat >&5 <<_CSEOF
e5a52504 14982
42ecbf5e
DJ
14983This file was extended by $as_me, which was
14984generated by GNU Autoconf 2.59. Invocation command line was
14985
14986 CONFIG_FILES = $CONFIG_FILES
14987 CONFIG_HEADERS = $CONFIG_HEADERS
14988 CONFIG_LINKS = $CONFIG_LINKS
14989 CONFIG_COMMANDS = $CONFIG_COMMANDS
14990 $ $0 $@
e5a52504 14991
42ecbf5e
DJ
14992_CSEOF
14993echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
14994echo >&5
14995_ACEOF
14996
14997# Files that config.status was made for.
14998if test -n "$ac_config_files"; then
14999 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
d15b04bd 15000fi
e5a52504 15001
42ecbf5e
DJ
15002if test -n "$ac_config_headers"; then
15003 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15004fi
15005
15006if test -n "$ac_config_links"; then
15007 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15008fi
15009
15010if test -n "$ac_config_commands"; then
15011 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15012fi
15013
15014cat >>$CONFIG_STATUS <<\_ACEOF
15015
15016ac_cs_usage="\
15017\`$as_me' instantiates files from templates according to the
15018current configuration.
15019
15020Usage: $0 [OPTIONS] [FILE]...
15021
15022 -h, --help print this help, then exit
15023 -V, --version print version number, then exit
15024 -q, --quiet do not print progress messages
15025 -d, --debug don't remove temporary files
15026 --recheck update $as_me by reconfiguring in the same conditions
15027 --file=FILE[:TEMPLATE]
15028 instantiate the configuration file FILE
15029 --header=FILE[:TEMPLATE]
15030 instantiate the configuration header FILE
15031
15032Configuration files:
15033$config_files
15034
15035Configuration headers:
15036$config_headers
15037
15038Configuration commands:
15039$config_commands
15040
15041Report bugs to <bug-autoconf@gnu.org>."
15042_ACEOF
15043
15044cat >>$CONFIG_STATUS <<_ACEOF
15045ac_cs_version="\\
15046config.status
15047configured by $0, generated by GNU Autoconf 2.59,
15048 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15049
15050Copyright (C) 2003 Free Software Foundation, Inc.
15051This config.status script is free software; the Free Software Foundation
15052gives unlimited permission to copy, distribute and modify it."
15053srcdir=$srcdir
15054INSTALL="$INSTALL"
15055_ACEOF
15056
15057cat >>$CONFIG_STATUS <<\_ACEOF
15058# If no file are specified by the user, then we need to provide default
15059# value. By we need to know if files were specified by the user.
15060ac_need_defaults=:
15061while test $# != 0
15062do
15063 case $1 in
15064 --*=*)
15065 ac_option=`expr "x$1" : 'x\([^=]*\)='`
15066 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15067 ac_shift=:
252b5132 15068 ;;
42ecbf5e
DJ
15069 -*)
15070 ac_option=$1
15071 ac_optarg=$2
15072 ac_shift=shift
252b5132 15073 ;;
42ecbf5e
DJ
15074 *) # This is not an option, so the user has probably given explicit
15075 # arguments.
15076 ac_option=$1
15077 ac_need_defaults=false;;
15078 esac
252b5132 15079
42ecbf5e
DJ
15080 case $ac_option in
15081 # Handling of the options.
15082_ACEOF
15083cat >>$CONFIG_STATUS <<\_ACEOF
15084 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15085 ac_cs_recheck=: ;;
15086 --version | --vers* | -V )
15087 echo "$ac_cs_version"; exit 0 ;;
15088 --he | --h)
15089 # Conflict between --help and --header
15090 { { echo "$as_me:$LINENO: error: ambiguous option: $1
15091Try \`$0 --help' for more information." >&5
15092echo "$as_me: error: ambiguous option: $1
15093Try \`$0 --help' for more information." >&2;}
15094 { (exit 1); exit 1; }; };;
15095 --help | --hel | -h )
15096 echo "$ac_cs_usage"; exit 0 ;;
15097 --debug | --d* | -d )
15098 debug=: ;;
15099 --file | --fil | --fi | --f )
15100 $ac_shift
15101 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15102 ac_need_defaults=false;;
15103 --header | --heade | --head | --hea )
15104 $ac_shift
15105 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15106 ac_need_defaults=false;;
15107 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15108 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15109 ac_cs_silent=: ;;
252b5132 15110
42ecbf5e
DJ
15111 # This is an error.
15112 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15113Try \`$0 --help' for more information." >&5
15114echo "$as_me: error: unrecognized option: $1
15115Try \`$0 --help' for more information." >&2;}
15116 { (exit 1); exit 1; }; } ;;
252b5132 15117
42ecbf5e 15118 *) ac_config_targets="$ac_config_targets $1" ;;
252b5132 15119
42ecbf5e
DJ
15120 esac
15121 shift
15122done
d15b04bd 15123
42ecbf5e 15124ac_configure_extra_args=
e5a52504 15125
42ecbf5e
DJ
15126if $ac_cs_silent; then
15127 exec 6>/dev/null
15128 ac_configure_extra_args="$ac_configure_extra_args --silent"
15129fi
e5a52504 15130
42ecbf5e
DJ
15131_ACEOF
15132cat >>$CONFIG_STATUS <<_ACEOF
15133if \$ac_cs_recheck; then
15134 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15135 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15136fi
15137
15138_ACEOF
15139
15140cat >>$CONFIG_STATUS <<_ACEOF
252b5132 15141#
42ecbf5e 15142# INIT-COMMANDS section.
252b5132 15143#
252b5132 15144
42ecbf5e 15145AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
15146
15147
15148# The HP-UX ksh and POSIX shell print the target directory to stdout
15149# if CDPATH is set.
15150(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15151
15152sed_quote_subst='$sed_quote_subst'
15153double_quote_subst='$double_quote_subst'
15154delay_variable_subst='$delay_variable_subst'
15155macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
15156macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
15157enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
15158enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
15159pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
15160enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
15161host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
15162host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
15163host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
15164build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
15165build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
15166build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
15167SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
15168Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
15169GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
15170EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
15171FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
15172LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
15173NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
15174LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
15175max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
15176ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
15177exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
15178lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
15179lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
15180lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
15181reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
15182reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
b214d478 15183OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
d7040cdb
SE
15184deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
15185file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
15186AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
15187AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15188STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
15189RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
15190old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15191old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15192old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15193CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
15194CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15195compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
15196GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
15197lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
15198lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
15199lt_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"`'
b214d478 15200lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
d7040cdb
SE
15201objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
15202SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
15203ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
15204MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
15205lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
15206lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
15207lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
15208lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
15209lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
15210need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
b214d478
SE
15211DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
15212NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
15213LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
15214OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
15215OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
d7040cdb
SE
15216libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
15217shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15218extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15219archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
15220enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
15221export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15222whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15223compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
15224old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15225old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15226archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15227archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15228module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15229module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15230with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
15231allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15232no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15233hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15234hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
15235hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
15236hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
15237hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
15238hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
15239hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15240hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
15241inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
15242link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
15243fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
15244always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
15245export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15246exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15247include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15248prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15249file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
15250variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
15251need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15252need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
15253version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
15254runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15255shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15256shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
15257libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15258library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
15259soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15260postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15261postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15262finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15263finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
15264hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
15265sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15266sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15267hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
15268enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
15269enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
15270enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
15271old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
15272striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
15273
15274LTCC='$LTCC'
15275LTCFLAGS='$LTCFLAGS'
15276compiler='$compiler_DEFAULT'
15277
15278# Quote evaled strings.
15279for var in SED \
15280GREP \
15281EGREP \
15282FGREP \
15283LD \
15284NM \
15285LN_S \
15286lt_SP2NL \
15287lt_NL2SP \
15288reload_flag \
b214d478 15289OBJDUMP \
d7040cdb
SE
15290deplibs_check_method \
15291file_magic_cmd \
15292AR \
15293AR_FLAGS \
15294STRIP \
15295RANLIB \
15296CC \
15297CFLAGS \
15298compiler \
15299lt_cv_sys_global_symbol_pipe \
15300lt_cv_sys_global_symbol_to_cdecl \
15301lt_cv_sys_global_symbol_to_c_name_address \
b214d478 15302lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
d7040cdb
SE
15303SHELL \
15304ECHO \
15305lt_prog_compiler_no_builtin_flag \
15306lt_prog_compiler_wl \
15307lt_prog_compiler_pic \
15308lt_prog_compiler_static \
15309lt_cv_prog_compiler_c_o \
15310need_locks \
b214d478
SE
15311DSYMUTIL \
15312NMEDIT \
15313LIPO \
15314OTOOL \
15315OTOOL64 \
d7040cdb
SE
15316shrext_cmds \
15317export_dynamic_flag_spec \
15318whole_archive_flag_spec \
15319compiler_needs_object \
15320with_gnu_ld \
15321allow_undefined_flag \
15322no_undefined_flag \
15323hardcode_libdir_flag_spec \
15324hardcode_libdir_flag_spec_ld \
15325hardcode_libdir_separator \
15326fix_srcfile_path \
15327exclude_expsyms \
15328include_expsyms \
15329file_list_spec \
15330variables_saved_for_relink \
15331libname_spec \
15332library_names_spec \
15333soname_spec \
15334finish_eval \
15335old_striplib \
15336striplib; do
15337 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15338 *[\\\\\\\`\\"\\\$]*)
15339 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15340 ;;
15341 *)
15342 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15343 ;;
15344 esac
15345done
15346
15347# Double-quote double-evaled strings.
15348for var in reload_cmds \
15349old_postinstall_cmds \
15350old_postuninstall_cmds \
15351old_archive_cmds \
15352extract_expsyms_cmds \
15353old_archive_from_new_cmds \
15354old_archive_from_expsyms_cmds \
15355archive_cmds \
15356archive_expsym_cmds \
15357module_cmds \
15358module_expsym_cmds \
15359export_symbols_cmds \
15360prelink_cmds \
15361postinstall_cmds \
15362postuninstall_cmds \
15363finish_cmds \
15364sys_lib_search_path_spec \
15365sys_lib_dlsearch_path_spec; do
15366 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15367 *[\\\\\\\`\\"\\\$]*)
15368 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15369 ;;
15370 *)
15371 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15372 ;;
15373 esac
15374done
15375
15376# Fix-up fallback echo if it was mangled by the above quoting rules.
15377case \$lt_ECHO in
15378*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
15379 ;;
15380esac
15381
15382ac_aux_dir='$ac_aux_dir'
15383xsi_shell='$xsi_shell'
15384lt_shell_append='$lt_shell_append'
15385
15386# See if we are running on zsh, and set the options which allow our
15387# commands through without removal of \ escapes INIT.
15388if test -n "\${ZSH_VERSION+set}" ; then
15389 setopt NO_GLOB_SUBST
15390fi
15391
15392
15393 PACKAGE='$PACKAGE'
15394 VERSION='$VERSION'
15395 TIMESTAMP='$TIMESTAMP'
15396 RM='$RM'
15397 ofile='$ofile'
15398
15399
15400
20e95c23
DJ
15401# Capture the value of obsolete ALL_LINGUAS because we need it to compute
15402 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
15403 # from automake.
15404 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15405 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15406 LINGUAS="${LINGUAS-%UNSET%}"
15407
42ecbf5e
DJ
15408
15409_ACEOF
15410
15411
15412
15413cat >>$CONFIG_STATUS <<\_ACEOF
15414for ac_config_target in $ac_config_targets
252b5132 15415do
42ecbf5e
DJ
15416 case "$ac_config_target" in
15417 # Handling of arguments.
15418 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15419 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
15420 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
d7040cdb 15421 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20e95c23 15422 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
42ecbf5e
DJ
15423 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
15424 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15425echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15426 { (exit 1); exit 1; }; };;
252b5132
RH
15427 esac
15428done
15429
42ecbf5e
DJ
15430# If the user did not use the arguments to specify the items to instantiate,
15431# then the envvar interface is used. Set only those that are not.
15432# We use the long form for the default assignment because of an extremely
15433# bizarre bug on SunOS 4.1.3.
15434if $ac_need_defaults; then
15435 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15436 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15437 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15438fi
15439
15440# Have a temporary directory for convenience. Make it in the build tree
15441# simply because there is no reason to put it here, and in addition,
15442# creating and moving files from /tmp can sometimes cause problems.
15443# Create a temporary directory, and hook for its removal unless debugging.
15444$debug ||
15445{
15446 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15447 trap '{ (exit 1); exit 1; }' 1 2 13 15
15448}
15449
15450# Create a (secure) tmp directory for tmp files.
e5a52504 15451
42ecbf5e
DJ
15452{
15453 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
15454 test -n "$tmp" && test -d "$tmp"
15455} ||
15456{
15457 tmp=./confstat$$-$RANDOM
15458 (umask 077 && mkdir $tmp)
15459} ||
15460{
15461 echo "$me: cannot create a temporary directory in ." >&2
15462 { (exit 1); exit 1; }
15463}
e5a52504 15464
42ecbf5e 15465_ACEOF
d15b04bd 15466
42ecbf5e
DJ
15467cat >>$CONFIG_STATUS <<_ACEOF
15468
15469#
15470# CONFIG_FILES section.
15471#
15472
15473# No need to generate the scripts if there are no CONFIG_FILES.
15474# This happens for instance when ./config.status config.h
15475if test -n "\$CONFIG_FILES"; then
15476 # Protect against being on the right side of a sed subst in config.status.
15477 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15478 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15479s,@SHELL@,$SHELL,;t t
15480s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15481s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15482s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15483s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15484s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15485s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15486s,@exec_prefix@,$exec_prefix,;t t
15487s,@prefix@,$prefix,;t t
15488s,@program_transform_name@,$program_transform_name,;t t
15489s,@bindir@,$bindir,;t t
15490s,@sbindir@,$sbindir,;t t
15491s,@libexecdir@,$libexecdir,;t t
15492s,@datadir@,$datadir,;t t
15493s,@sysconfdir@,$sysconfdir,;t t
15494s,@sharedstatedir@,$sharedstatedir,;t t
15495s,@localstatedir@,$localstatedir,;t t
15496s,@libdir@,$libdir,;t t
15497s,@includedir@,$includedir,;t t
15498s,@oldincludedir@,$oldincludedir,;t t
15499s,@infodir@,$infodir,;t t
15500s,@mandir@,$mandir,;t t
15501s,@build_alias@,$build_alias,;t t
15502s,@host_alias@,$host_alias,;t t
15503s,@target_alias@,$target_alias,;t t
15504s,@DEFS@,$DEFS,;t t
15505s,@ECHO_C@,$ECHO_C,;t t
15506s,@ECHO_N@,$ECHO_N,;t t
15507s,@ECHO_T@,$ECHO_T,;t t
15508s,@LIBS@,$LIBS,;t t
15509s,@build@,$build,;t t
15510s,@build_cpu@,$build_cpu,;t t
15511s,@build_vendor@,$build_vendor,;t t
15512s,@build_os@,$build_os,;t t
15513s,@host@,$host,;t t
15514s,@host_cpu@,$host_cpu,;t t
15515s,@host_vendor@,$host_vendor,;t t
15516s,@host_os@,$host_os,;t t
15517s,@target@,$target,;t t
15518s,@target_cpu@,$target_cpu,;t t
15519s,@target_vendor@,$target_vendor,;t t
15520s,@target_os@,$target_os,;t t
15521s,@CC@,$CC,;t t
15522s,@CFLAGS@,$CFLAGS,;t t
15523s,@LDFLAGS@,$LDFLAGS,;t t
15524s,@CPPFLAGS@,$CPPFLAGS,;t t
15525s,@ac_ct_CC@,$ac_ct_CC,;t t
15526s,@EXEEXT@,$EXEEXT,;t t
15527s,@OBJEXT@,$OBJEXT,;t t
15528s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
15529s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
15530s,@INSTALL_DATA@,$INSTALL_DATA,;t t
15531s,@CYGPATH_W@,$CYGPATH_W,;t t
15532s,@PACKAGE@,$PACKAGE,;t t
15533s,@VERSION@,$VERSION,;t t
15534s,@ACLOCAL@,$ACLOCAL,;t t
15535s,@AUTOCONF@,$AUTOCONF,;t t
15536s,@AUTOMAKE@,$AUTOMAKE,;t t
15537s,@AUTOHEADER@,$AUTOHEADER,;t t
15538s,@MAKEINFO@,$MAKEINFO,;t t
15539s,@install_sh@,$install_sh,;t t
15540s,@STRIP@,$STRIP,;t t
15541s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
15542s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
15543s,@mkdir_p@,$mkdir_p,;t t
15544s,@AWK@,$AWK,;t t
15545s,@SET_MAKE@,$SET_MAKE,;t t
15546s,@am__leading_dot@,$am__leading_dot,;t t
15547s,@AMTAR@,$AMTAR,;t t
15548s,@am__tar@,$am__tar,;t t
15549s,@am__untar@,$am__untar,;t t
15550s,@DEPDIR@,$DEPDIR,;t t
15551s,@am__include@,$am__include,;t t
15552s,@am__quote@,$am__quote,;t t
15553s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
15554s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
15555s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
15556s,@CCDEPMODE@,$CCDEPMODE,;t t
15557s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
15558s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
ce2cded5
L
15559s,@use_sysroot@,$use_sysroot,;t t
15560s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
15561s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
15562s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
15563s,@NO_WERROR@,$NO_WERROR,;t t
7357c5b6
AM
15564s,@CPP@,$CPP,;t t
15565s,@EGREP@,$EGREP,;t t
d7040cdb
SE
15566s,@LIBTOOL@,$LIBTOOL,;t t
15567s,@SED@,$SED,;t t
d7040cdb
SE
15568s,@FGREP@,$FGREP,;t t
15569s,@GREP@,$GREP,;t t
15570s,@LD@,$LD,;t t
15571s,@DUMPBIN@,$DUMPBIN,;t t
15572s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
15573s,@NM@,$NM,;t t
42ecbf5e 15574s,@LN_S@,$LN_S,;t t
b214d478
SE
15575s,@OBJDUMP@,$OBJDUMP,;t t
15576s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
d7040cdb
SE
15577s,@AR@,$AR,;t t
15578s,@ac_ct_AR@,$ac_ct_AR,;t t
42ecbf5e
DJ
15579s,@RANLIB@,$RANLIB,;t t
15580s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
d7040cdb 15581s,@lt_ECHO@,$lt_ECHO,;t t
b214d478
SE
15582s,@DSYMUTIL@,$DSYMUTIL,;t t
15583s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
15584s,@NMEDIT@,$NMEDIT,;t t
15585s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
15586s,@LIPO@,$LIPO,;t t
15587s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
15588s,@OTOOL@,$OTOOL,;t t
15589s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
15590s,@OTOOL64@,$OTOOL64,;t t
15591s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
42ecbf5e 15592s,@USE_NLS@,$USE_NLS,;t t
20e95c23
DJ
15593s,@LIBINTL@,$LIBINTL,;t t
15594s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
15595s,@INCINTL@,$INCINTL,;t t
42ecbf5e 15596s,@XGETTEXT@,$XGETTEXT,;t t
20e95c23
DJ
15597s,@GMSGFMT@,$GMSGFMT,;t t
15598s,@POSUB@,$POSUB,;t t
42ecbf5e 15599s,@CATALOGS@,$CATALOGS,;t t
42ecbf5e 15600s,@DATADIRNAME@,$DATADIRNAME,;t t
42ecbf5e 15601s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20e95c23
DJ
15602s,@GENCAT@,$GENCAT,;t t
15603s,@CATOBJEXT@,$CATOBJEXT,;t t
42ecbf5e 15604s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
20e95c23
DJ
15605s,@MSGFMT@,$MSGFMT,;t t
15606s,@MSGMERGE@,$MSGMERGE,;t t
42ecbf5e
DJ
15607s,@YACC@,$YACC,;t t
15608s,@LEX@,$LEX,;t t
15609s,@LEXLIB@,$LEXLIB,;t t
15610s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
15611s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
15612s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
15613s,@MAINT@,$MAINT,;t t
d5fbea21
DJ
15614s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
15615s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
eccbf555 15616s,@do_compare@,$do_compare,;t t
42ecbf5e
DJ
15617s,@HDEFINES@,$HDEFINES,;t t
15618s,@HOSTING_CRT0@,$HOSTING_CRT0,;t t
15619s,@HOSTING_LIBS@,$HOSTING_LIBS,;t t
15620s,@NATIVE_LIB_DIRS@,$NATIVE_LIB_DIRS,;t t
15621s,@STRINGIFY@,$STRINGIFY,;t t
15622s,@EMUL@,$EMUL,;t t
15623s,@EMULATION_OFILES@,$EMULATION_OFILES,;t t
15624s,@EMUL_EXTRA_OFILES@,$EMUL_EXTRA_OFILES,;t t
15625s,@LIB_PATH@,$LIB_PATH,;t t
15626s,@EMULATION_LIBPATH@,$EMULATION_LIBPATH,;t t
15627s,@TESTBFDLIB@,$TESTBFDLIB,;t t
108a6f8e
CD
15628s,@datarootdir@,$datarootdir,;t t
15629s,@docdir@,$docdir,;t t
15630s,@htmldir@,$htmldir,;t t
31dd3154 15631s,@pdfdir@,$pdfdir,;t t
42ecbf5e
DJ
15632s,@LIBOBJS@,$LIBOBJS,;t t
15633s,@LTLIBOBJS@,$LTLIBOBJS,;t t
15634/@TDIRS@/r $TDIRS
15635s,@TDIRS@,,;t t
252b5132 15636CEOF
252b5132 15637
42ecbf5e
DJ
15638_ACEOF
15639
15640 cat >>$CONFIG_STATUS <<\_ACEOF
15641 # Split the substitutions into bite-sized pieces for seds with
15642 # small command number limits, like on Digital OSF/1 and HP-UX.
15643 ac_max_sed_lines=48
15644 ac_sed_frag=1 # Number of current file.
15645 ac_beg=1 # First line for current file.
15646 ac_end=$ac_max_sed_lines # Line after last line for current file.
15647 ac_more_lines=:
15648 ac_sed_cmds=
15649 while $ac_more_lines; do
15650 if test $ac_beg -gt 1; then
15651 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15652 else
15653 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15654 fi
15655 if test ! -s $tmp/subs.frag; then
15656 ac_more_lines=false
252b5132 15657 else
42ecbf5e
DJ
15658 # The purpose of the label and of the branching condition is to
15659 # speed up the sed processing (if there are no `@' at all, there
15660 # is no need to browse any of the substitutions).
15661 # These are the two extra sed commands mentioned above.
15662 (echo ':t
15663 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
15664 if test -z "$ac_sed_cmds"; then
15665 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
15666 else
15667 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
15668 fi
15669 ac_sed_frag=`expr $ac_sed_frag + 1`
15670 ac_beg=$ac_end
15671 ac_end=`expr $ac_end + $ac_max_sed_lines`
252b5132 15672 fi
42ecbf5e
DJ
15673 done
15674 if test -z "$ac_sed_cmds"; then
15675 ac_sed_cmds=cat
252b5132 15676 fi
42ecbf5e 15677fi # test -n "$CONFIG_FILES"
252b5132 15678
42ecbf5e
DJ
15679_ACEOF
15680cat >>$CONFIG_STATUS <<\_ACEOF
15681for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
252b5132 15682 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42ecbf5e
DJ
15683 case $ac_file in
15684 - | *:- | *:-:* ) # input from stdin
15685 cat >$tmp/stdin
15686 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15687 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15688 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15689 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15690 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
15691 esac
15692
42ecbf5e
DJ
15693 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
15694 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15695$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15696 X"$ac_file" : 'X\(//\)[^/]' \| \
15697 X"$ac_file" : 'X\(//\)$' \| \
15698 X"$ac_file" : 'X\(/\)' \| \
15699 . : '\(.\)' 2>/dev/null ||
15700echo X"$ac_file" |
15701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15702 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15703 /^X\(\/\/\)$/{ s//\1/; q; }
15704 /^X\(\/\).*/{ s//\1/; q; }
15705 s/.*/./; q'`
15706 { if $as_mkdir_p; then
15707 mkdir -p "$ac_dir"
d15b04bd 15708 else
42ecbf5e
DJ
15709 as_dir="$ac_dir"
15710 as_dirs=
15711 while test ! -d "$as_dir"; do
15712 as_dirs="$as_dir $as_dirs"
15713 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15714$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15715 X"$as_dir" : 'X\(//\)[^/]' \| \
15716 X"$as_dir" : 'X\(//\)$' \| \
15717 X"$as_dir" : 'X\(/\)' \| \
15718 . : '\(.\)' 2>/dev/null ||
15719echo X"$as_dir" |
15720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15722 /^X\(\/\/\)$/{ s//\1/; q; }
15723 /^X\(\/\).*/{ s//\1/; q; }
15724 s/.*/./; q'`
15725 done
15726 test ! -n "$as_dirs" || mkdir $as_dirs
15727 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15728echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15729 { (exit 1); exit 1; }; }; }
15730
15731 ac_builddir=.
15732
15733if test "$ac_dir" != .; then
15734 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15735 # A "../" for each directory in $ac_dir_suffix.
15736 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15737else
15738 ac_dir_suffix= ac_top_builddir=
15739fi
252b5132 15740
42ecbf5e
DJ
15741case $srcdir in
15742 .) # No --srcdir option. We are building in place.
15743 ac_srcdir=.
15744 if test -z "$ac_top_builddir"; then
15745 ac_top_srcdir=.
15746 else
15747 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15748 fi ;;
15749 [\\/]* | ?:[\\/]* ) # Absolute path.
15750 ac_srcdir=$srcdir$ac_dir_suffix;
15751 ac_top_srcdir=$srcdir ;;
252b5132 15752 *) # Relative path.
42ecbf5e
DJ
15753 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15754 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15755esac
15756
15757# Do not use `cd foo && pwd` to compute absolute paths, because
15758# the directories may not exist.
15759case `pwd` in
15760.) ac_abs_builddir="$ac_dir";;
15761*)
15762 case "$ac_dir" in
15763 .) ac_abs_builddir=`pwd`;;
15764 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15765 *) ac_abs_builddir=`pwd`/"$ac_dir";;
15766 esac;;
15767esac
15768case $ac_abs_builddir in
15769.) ac_abs_top_builddir=${ac_top_builddir}.;;
15770*)
15771 case ${ac_top_builddir}. in
15772 .) ac_abs_top_builddir=$ac_abs_builddir;;
15773 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15774 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15775 esac;;
15776esac
15777case $ac_abs_builddir in
15778.) ac_abs_srcdir=$ac_srcdir;;
15779*)
15780 case $ac_srcdir in
15781 .) ac_abs_srcdir=$ac_abs_builddir;;
15782 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15783 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15784 esac;;
15785esac
15786case $ac_abs_builddir in
15787.) ac_abs_top_srcdir=$ac_top_srcdir;;
15788*)
15789 case $ac_top_srcdir in
15790 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15791 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15792 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15793 esac;;
15794esac
252b5132 15795
e5a52504 15796
42ecbf5e
DJ
15797 case $INSTALL in
15798 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15799 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
d15b04bd 15800 esac
e5a52504 15801
7357c5b6
AM
15802 if test x"$ac_file" != x-; then
15803 { echo "$as_me:$LINENO: creating $ac_file" >&5
15804echo "$as_me: creating $ac_file" >&6;}
15805 rm -f "$ac_file"
15806 fi
42ecbf5e
DJ
15807 # Let's still pretend it is `configure' which instantiates (i.e., don't
15808 # use $as_me), people would be surprised to read:
15809 # /* config.h. Generated by config.status. */
15810 if test x"$ac_file" = x-; then
15811 configure_input=
15812 else
15813 configure_input="$ac_file. "
15814 fi
15815 configure_input=$configure_input"Generated from `echo $ac_file_in |
15816 sed 's,.*/,,'` by configure."
15817
15818 # First look for the input files in the build tree, otherwise in the
15819 # src tree.
15820 ac_file_inputs=`IFS=:
15821 for f in $ac_file_in; do
15822 case $f in
15823 -) echo $tmp/stdin ;;
15824 [\\/$]*)
15825 # Absolute (can't be DOS-style, as IFS=:)
15826 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15827echo "$as_me: error: cannot find input file: $f" >&2;}
15828 { (exit 1); exit 1; }; }
15829 echo "$f";;
15830 *) # Relative
15831 if test -f "$f"; then
15832 # Build tree
15833 echo "$f"
15834 elif test -f "$srcdir/$f"; then
15835 # Source tree
15836 echo "$srcdir/$f"
15837 else
15838 # /dev/null tree
15839 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15840echo "$as_me: error: cannot find input file: $f" >&2;}
15841 { (exit 1); exit 1; }; }
15842 fi;;
15843 esac
15844 done` || { (exit 1); exit 1; }
42ecbf5e
DJ
15845_ACEOF
15846cat >>$CONFIG_STATUS <<_ACEOF
15847 sed "$ac_vpsub
15848$extrasub
15849_ACEOF
15850cat >>$CONFIG_STATUS <<\_ACEOF
15851:t
15852/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15853s,@configure_input@,$configure_input,;t t
15854s,@srcdir@,$ac_srcdir,;t t
15855s,@abs_srcdir@,$ac_abs_srcdir,;t t
15856s,@top_srcdir@,$ac_top_srcdir,;t t
15857s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
15858s,@builddir@,$ac_builddir,;t t
15859s,@abs_builddir@,$ac_abs_builddir,;t t
15860s,@top_builddir@,$ac_top_builddir,;t t
15861s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
15862s,@INSTALL@,$ac_INSTALL,;t t
15863" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
15864 rm -f $tmp/stdin
15865 if test x"$ac_file" != x-; then
15866 mv $tmp/out $ac_file
15867 else
15868 cat $tmp/out
15869 rm -f $tmp/out
15870 fi
15871
15872done
15873_ACEOF
15874cat >>$CONFIG_STATUS <<\_ACEOF
15875
15876#
15877# CONFIG_HEADER section.
15878#
252b5132
RH
15879
15880# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15881# NAME is the cpp macro being defined and VALUE is the value it is being given.
15882#
15883# ac_d sets the value in "#define NAME VALUE" lines.
42ecbf5e
DJ
15884ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
15885ac_dB='[ ].*$,\1#\2'
15886ac_dC=' '
15887ac_dD=',;t'
15888# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15889ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15890ac_uB='$,\1#\2define\3'
252b5132 15891ac_uC=' '
42ecbf5e
DJ
15892ac_uD=',;t'
15893
15894for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
252b5132 15895 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42ecbf5e
DJ
15896 case $ac_file in
15897 - | *:- | *:-:* ) # input from stdin
15898 cat >$tmp/stdin
15899 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15900 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15901 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15902 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15903 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
15904 esac
15905
42ecbf5e
DJ
15906 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
15907echo "$as_me: creating $ac_file" >&6;}
15908
15909 # First look for the input files in the build tree, otherwise in the
15910 # src tree.
15911 ac_file_inputs=`IFS=:
15912 for f in $ac_file_in; do
15913 case $f in
15914 -) echo $tmp/stdin ;;
15915 [\\/$]*)
15916 # Absolute (can't be DOS-style, as IFS=:)
15917 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15918echo "$as_me: error: cannot find input file: $f" >&2;}
15919 { (exit 1); exit 1; }; }
15920 # Do quote $f, to prevent DOS paths from being IFS'd.
15921 echo "$f";;
15922 *) # Relative
15923 if test -f "$f"; then
15924 # Build tree
15925 echo "$f"
15926 elif test -f "$srcdir/$f"; then
15927 # Source tree
15928 echo "$srcdir/$f"
15929 else
15930 # /dev/null tree
15931 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15932echo "$as_me: error: cannot find input file: $f" >&2;}
15933 { (exit 1); exit 1; }; }
15934 fi;;
15935 esac
15936 done` || { (exit 1); exit 1; }
15937 # Remove the trailing spaces.
15938 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
15939
15940_ACEOF
15941
15942# Transform confdefs.h into two sed scripts, `conftest.defines' and
15943# `conftest.undefs', that substitutes the proper values into
15944# config.h.in to produce config.h. The first handles `#define'
15945# templates, and the second `#undef' templates.
15946# And first: Protect against being on the right side of a sed subst in
15947# config.status. Protect against being in an unquoted here document
15948# in config.status.
15949rm -f conftest.defines conftest.undefs
15950# Using a here document instead of a string reduces the quoting nightmare.
15951# Putting comments in sed scripts is not portable.
15952#
15953# `end' is used to avoid that the second main sed command (meant for
15954# 0-ary CPP macros) applies to n-ary macro definitions.
15955# See the Autoconf documentation for `clear'.
15956cat >confdef2sed.sed <<\_ACEOF
15957s/[\\&,]/\\&/g
15958s,[\\$`],\\&,g
15959t clear
15960: clear
15961s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
15962t end
15963s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
15964: end
15965_ACEOF
15966# If some macros were called several times there might be several times
15967# the same #defines, which is useless. Nevertheless, we may not want to
15968# sort them, since we want the *last* AC-DEFINE to be honored.
15969uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
15970sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
15971rm -f confdef2sed.sed
252b5132
RH
15972
15973# This sed command replaces #undef with comments. This is necessary, for
15974# example, in the case of _POSIX_SOURCE, which is predefined and required
15975# on some systems where configure will not decide to define it.
42ecbf5e
DJ
15976cat >>conftest.undefs <<\_ACEOF
15977s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
15978_ACEOF
15979
15980# Break up conftest.defines because some shells have a limit on the size
15981# of here documents, and old seds have small limits too (100 cmds).
15982echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
15983echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
15984echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
15985echo ' :' >>$CONFIG_STATUS
15986rm -f conftest.tail
15987while grep . conftest.defines >/dev/null
15988do
15989 # Write a limited-size here document to $tmp/defines.sed.
15990 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
15991 # Speed up: don't consider the non `#define' lines.
15992 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
15993 # Work around the forget-to-reset-the-flag bug.
15994 echo 't clr' >>$CONFIG_STATUS
15995 echo ': clr' >>$CONFIG_STATUS
15996 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
15997 echo 'CEOF
15998 sed -f $tmp/defines.sed $tmp/in >$tmp/out
15999 rm -f $tmp/in
16000 mv $tmp/out $tmp/in
16001' >>$CONFIG_STATUS
16002 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16003 rm -f conftest.defines
16004 mv conftest.tail conftest.defines
16005done
16006rm -f conftest.defines
16007echo ' fi # grep' >>$CONFIG_STATUS
16008echo >>$CONFIG_STATUS
252b5132 16009
42ecbf5e
DJ
16010# Break up conftest.undefs because some shells have a limit on the size
16011# of here documents, and old seds have small limits too (100 cmds).
16012echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
252b5132 16013rm -f conftest.tail
42ecbf5e 16014while grep . conftest.undefs >/dev/null
252b5132 16015do
42ecbf5e
DJ
16016 # Write a limited-size here document to $tmp/undefs.sed.
16017 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16018 # Speed up: don't consider the non `#undef'
16019 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
16020 # Work around the forget-to-reset-the-flag bug.
16021 echo 't clr' >>$CONFIG_STATUS
16022 echo ': clr' >>$CONFIG_STATUS
16023 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
252b5132 16024 echo 'CEOF
42ecbf5e
DJ
16025 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16026 rm -f $tmp/in
16027 mv $tmp/out $tmp/in
16028' >>$CONFIG_STATUS
16029 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16030 rm -f conftest.undefs
16031 mv conftest.tail conftest.undefs
252b5132 16032done
42ecbf5e
DJ
16033rm -f conftest.undefs
16034
16035cat >>$CONFIG_STATUS <<\_ACEOF
16036 # Let's still pretend it is `configure' which instantiates (i.e., don't
16037 # use $as_me), people would be surprised to read:
16038 # /* config.h. Generated by config.status. */
16039 if test x"$ac_file" = x-; then
16040 echo "/* Generated by configure. */" >$tmp/config.h
252b5132 16041 else
42ecbf5e
DJ
16042 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
16043 fi
16044 cat $tmp/in >>$tmp/config.h
16045 rm -f $tmp/in
16046 if test x"$ac_file" != x-; then
16047 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
16048 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16049echo "$as_me: $ac_file is unchanged" >&6;}
16050 else
16051 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16052$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16053 X"$ac_file" : 'X\(//\)[^/]' \| \
16054 X"$ac_file" : 'X\(//\)$' \| \
16055 X"$ac_file" : 'X\(/\)' \| \
16056 . : '\(.\)' 2>/dev/null ||
16057echo X"$ac_file" |
16058 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16059 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16060 /^X\(\/\/\)$/{ s//\1/; q; }
16061 /^X\(\/\).*/{ s//\1/; q; }
16062 s/.*/./; q'`
16063 { if $as_mkdir_p; then
16064 mkdir -p "$ac_dir"
16065 else
16066 as_dir="$ac_dir"
16067 as_dirs=
16068 while test ! -d "$as_dir"; do
16069 as_dirs="$as_dir $as_dirs"
16070 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16071$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16072 X"$as_dir" : 'X\(//\)[^/]' \| \
16073 X"$as_dir" : 'X\(//\)$' \| \
16074 X"$as_dir" : 'X\(/\)' \| \
16075 . : '\(.\)' 2>/dev/null ||
16076echo X"$as_dir" |
16077 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16078 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16079 /^X\(\/\/\)$/{ s//\1/; q; }
16080 /^X\(\/\).*/{ s//\1/; q; }
16081 s/.*/./; q'`
16082 done
16083 test ! -n "$as_dirs" || mkdir $as_dirs
16084 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16085echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16086 { (exit 1); exit 1; }; }; }
16087
16088 rm -f $ac_file
16089 mv $tmp/config.h $ac_file
252b5132 16090 fi
42ecbf5e
DJ
16091 else
16092 cat $tmp/config.h
16093 rm -f $tmp/config.h
e5a52504 16094 fi
42ecbf5e
DJ
16095# Compute $ac_file's index in $config_headers.
16096_am_stamp_count=1
16097for _am_header in $config_headers :; do
16098 case $_am_header in
16099 $ac_file | $ac_file:* )
16100 break ;;
16101 * )
16102 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16103 esac
16104done
16105echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
16106$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16107 X$ac_file : 'X\(//\)[^/]' \| \
16108 X$ac_file : 'X\(//\)$' \| \
16109 X$ac_file : 'X\(/\)' \| \
16110 . : '\(.\)' 2>/dev/null ||
16111echo X$ac_file |
16112 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16113 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16114 /^X\(\/\/\)$/{ s//\1/; q; }
16115 /^X\(\/\).*/{ s//\1/; q; }
16116 s/.*/./; q'`/stamp-h$_am_stamp_count
16117done
16118_ACEOF
16119cat >>$CONFIG_STATUS <<\_ACEOF
e5a52504 16120
42ecbf5e
DJ
16121#
16122# CONFIG_COMMANDS section.
16123#
16124for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
16125 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
16126 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
16127 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
16128$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16129 X"$ac_dest" : 'X\(//\)[^/]' \| \
16130 X"$ac_dest" : 'X\(//\)$' \| \
16131 X"$ac_dest" : 'X\(/\)' \| \
16132 . : '\(.\)' 2>/dev/null ||
16133echo X"$ac_dest" |
16134 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16135 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16136 /^X\(\/\/\)$/{ s//\1/; q; }
16137 /^X\(\/\).*/{ s//\1/; q; }
16138 s/.*/./; q'`
16139 { if $as_mkdir_p; then
16140 mkdir -p "$ac_dir"
16141 else
16142 as_dir="$ac_dir"
16143 as_dirs=
16144 while test ! -d "$as_dir"; do
16145 as_dirs="$as_dir $as_dirs"
16146 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16147$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16148 X"$as_dir" : 'X\(//\)[^/]' \| \
16149 X"$as_dir" : 'X\(//\)$' \| \
16150 X"$as_dir" : 'X\(/\)' \| \
16151 . : '\(.\)' 2>/dev/null ||
16152echo X"$as_dir" |
16153 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16154 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16155 /^X\(\/\/\)$/{ s//\1/; q; }
16156 /^X\(\/\).*/{ s//\1/; q; }
16157 s/.*/./; q'`
16158 done
16159 test ! -n "$as_dirs" || mkdir $as_dirs
16160 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16161echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16162 { (exit 1); exit 1; }; }; }
e5a52504 16163
42ecbf5e 16164 ac_builddir=.
e5a52504 16165
42ecbf5e
DJ
16166if test "$ac_dir" != .; then
16167 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16168 # A "../" for each directory in $ac_dir_suffix.
16169 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16170else
16171 ac_dir_suffix= ac_top_builddir=
16172fi
16173
16174case $srcdir in
16175 .) # No --srcdir option. We are building in place.
16176 ac_srcdir=.
16177 if test -z "$ac_top_builddir"; then
16178 ac_top_srcdir=.
16179 else
16180 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16181 fi ;;
16182 [\\/]* | ?:[\\/]* ) # Absolute path.
16183 ac_srcdir=$srcdir$ac_dir_suffix;
16184 ac_top_srcdir=$srcdir ;;
16185 *) # Relative path.
16186 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16187 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16188esac
16189
16190# Do not use `cd foo && pwd` to compute absolute paths, because
16191# the directories may not exist.
16192case `pwd` in
16193.) ac_abs_builddir="$ac_dir";;
16194*)
16195 case "$ac_dir" in
16196 .) ac_abs_builddir=`pwd`;;
16197 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16198 *) ac_abs_builddir=`pwd`/"$ac_dir";;
16199 esac;;
16200esac
16201case $ac_abs_builddir in
16202.) ac_abs_top_builddir=${ac_top_builddir}.;;
16203*)
16204 case ${ac_top_builddir}. in
16205 .) ac_abs_top_builddir=$ac_abs_builddir;;
16206 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16207 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16208 esac;;
16209esac
16210case $ac_abs_builddir in
16211.) ac_abs_srcdir=$ac_srcdir;;
16212*)
16213 case $ac_srcdir in
16214 .) ac_abs_srcdir=$ac_abs_builddir;;
16215 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16216 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16217 esac;;
16218esac
16219case $ac_abs_builddir in
16220.) ac_abs_top_srcdir=$ac_top_srcdir;;
16221*)
16222 case $ac_top_srcdir in
16223 .) ac_abs_top_srcdir=$ac_abs_builddir;;
16224 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16225 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16226 esac;;
16227esac
16228
16229
16230 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
16231echo "$as_me: executing $ac_dest commands" >&6;}
16232 case $ac_dest in
16233 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
16234 # Strip MF so we end up with the name of the file.
16235 mf=`echo "$mf" | sed -e 's/:.*$//'`
16236 # Check whether this is an Automake generated Makefile or not.
16237 # We used to match only the files named `Makefile.in', but
16238 # some people rename them; so instead we look at the file content.
16239 # Grep'ing the first line is not enough: some people post-process
16240 # each Makefile.in and add a new line on top of each file to say so.
16241 # So let's grep whole file.
16242 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
16243 dirpart=`(dirname "$mf") 2>/dev/null ||
16244$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16245 X"$mf" : 'X\(//\)[^/]' \| \
16246 X"$mf" : 'X\(//\)$' \| \
16247 X"$mf" : 'X\(/\)' \| \
16248 . : '\(.\)' 2>/dev/null ||
16249echo X"$mf" |
16250 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16251 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16252 /^X\(\/\/\)$/{ s//\1/; q; }
16253 /^X\(\/\).*/{ s//\1/; q; }
16254 s/.*/./; q'`
16255 else
16256 continue
16257 fi
16258 # Extract the definition of DEPDIR, am__include, and am__quote
16259 # from the Makefile without running `make'.
16260 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16261 test -z "$DEPDIR" && continue
16262 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16263 test -z "am__include" && continue
16264 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16265 # When using ansi2knr, U may be empty or an underscore; expand it
16266 U=`sed -n 's/^U = //p' < "$mf"`
16267 # Find all dependency output files, they are included files with
16268 # $(DEPDIR) in their names. We invoke sed twice because it is the
16269 # simplest approach to changing $(DEPDIR) to its actual value in the
16270 # expansion.
16271 for file in `sed -n "
16272 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16273 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16274 # Make sure the directory exists.
16275 test -f "$dirpart/$file" && continue
16276 fdir=`(dirname "$file") 2>/dev/null ||
16277$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16278 X"$file" : 'X\(//\)[^/]' \| \
16279 X"$file" : 'X\(//\)$' \| \
16280 X"$file" : 'X\(/\)' \| \
16281 . : '\(.\)' 2>/dev/null ||
16282echo X"$file" |
16283 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16284 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16285 /^X\(\/\/\)$/{ s//\1/; q; }
16286 /^X\(\/\).*/{ s//\1/; q; }
16287 s/.*/./; q'`
16288 { if $as_mkdir_p; then
16289 mkdir -p $dirpart/$fdir
16290 else
16291 as_dir=$dirpart/$fdir
16292 as_dirs=
16293 while test ! -d "$as_dir"; do
16294 as_dirs="$as_dir $as_dirs"
16295 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16296$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16297 X"$as_dir" : 'X\(//\)[^/]' \| \
16298 X"$as_dir" : 'X\(//\)$' \| \
16299 X"$as_dir" : 'X\(/\)' \| \
16300 . : '\(.\)' 2>/dev/null ||
16301echo X"$as_dir" |
16302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16303 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16304 /^X\(\/\/\)$/{ s//\1/; q; }
16305 /^X\(\/\).*/{ s//\1/; q; }
16306 s/.*/./; q'`
16307 done
16308 test ! -n "$as_dirs" || mkdir $as_dirs
16309 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
16310echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
16311 { (exit 1); exit 1; }; }; }
16312
16313 # echo "creating $dirpart/$file"
16314 echo '# dummy' > "$dirpart/$file"
16315 done
16316done
d7040cdb
SE
16317 ;;
16318 libtool )
16319
16320 # See if we are running on zsh, and set the options which allow our
16321 # commands through without removal of \ escapes.
16322 if test -n "${ZSH_VERSION+set}" ; then
16323 setopt NO_GLOB_SUBST
16324 fi
16325
16326 cfgfile="${ofile}T"
16327 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16328 $RM "$cfgfile"
16329
16330 cat <<_LT_EOF >> "$cfgfile"
16331#! $SHELL
16332
16333# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
b214d478 16334# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
d7040cdb
SE
16335# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16336# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16337#
b214d478
SE
16338# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16339# 2006, 2007, 2008 Free Software Foundation, Inc.
16340# Written by Gordon Matzigkeit, 1996
d7040cdb 16341#
b214d478 16342# This file is part of GNU Libtool.
d7040cdb 16343#
b214d478
SE
16344# GNU Libtool is free software; you can redistribute it and/or
16345# modify it under the terms of the GNU General Public License as
16346# published by the Free Software Foundation; either version 2 of
16347# the License, or (at your option) any later version.
d7040cdb 16348#
b214d478
SE
16349# As a special exception to the GNU General Public License,
16350# if you distribute this file as part of a program or library that
16351# is built using GNU Libtool, you may include this file under the
16352# same distribution terms that you use for the rest of that program.
d7040cdb 16353#
b214d478
SE
16354# GNU Libtool is distributed in the hope that it will be useful,
16355# but WITHOUT ANY WARRANTY; without even the implied warranty of
16356# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16357# GNU General Public License for more details.
d7040cdb 16358#
b214d478
SE
16359# You should have received a copy of the GNU General Public License
16360# along with GNU Libtool; see the file COPYING. If not, a copy
16361# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16362# obtained by writing to the Free Software Foundation, Inc.,
16363# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
d7040cdb
SE
16364
16365
16366# The names of the tagged configurations supported by this script.
16367available_tags=""
16368
16369# ### BEGIN LIBTOOL CONFIG
16370
16371# Which release of libtool.m4 was used?
16372macro_version=$macro_version
16373macro_revision=$macro_revision
16374
16375# Whether or not to build shared libraries.
16376build_libtool_libs=$enable_shared
16377
16378# Whether or not to build static libraries.
16379build_old_libs=$enable_static
16380
16381# What type of objects to build.
16382pic_mode=$pic_mode
16383
16384# Whether or not to optimize for fast installation.
16385fast_install=$enable_fast_install
16386
16387# The host system.
16388host_alias=$host_alias
16389host=$host
16390host_os=$host_os
16391
16392# The build system.
16393build_alias=$build_alias
16394build=$build
16395build_os=$build_os
16396
16397# A sed program that does not truncate output.
16398SED=$lt_SED
16399
16400# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16401Xsed="\$SED -e 1s/^X//"
16402
16403# A grep program that handles long lines.
16404GREP=$lt_GREP
16405
16406# An ERE matcher.
16407EGREP=$lt_EGREP
16408
16409# A literal string matcher.
16410FGREP=$lt_FGREP
16411
16412# A BSD- or MS-compatible name lister.
16413NM=$lt_NM
16414
16415# Whether we need soft or hard links.
16416LN_S=$lt_LN_S
16417
16418# What is the maximum length of a command?
16419max_cmd_len=$max_cmd_len
16420
16421# Object file suffix (normally "o").
16422objext=$ac_objext
16423
16424# Executable file suffix (normally "").
16425exeext=$exeext
16426
16427# whether the shell understands "unset".
16428lt_unset=$lt_unset
16429
16430# turn spaces into newlines.
16431SP2NL=$lt_lt_SP2NL
16432
16433# turn newlines into spaces.
16434NL2SP=$lt_lt_NL2SP
16435
16436# How to create reloadable object files.
16437reload_flag=$lt_reload_flag
16438reload_cmds=$lt_reload_cmds
16439
b214d478
SE
16440# An object symbol dumper.
16441OBJDUMP=$lt_OBJDUMP
16442
d7040cdb
SE
16443# Method to check whether dependent libraries are shared objects.
16444deplibs_check_method=$lt_deplibs_check_method
16445
16446# Command to use when deplibs_check_method == "file_magic".
16447file_magic_cmd=$lt_file_magic_cmd
16448
16449# The archiver.
16450AR=$lt_AR
16451AR_FLAGS=$lt_AR_FLAGS
16452
16453# A symbol stripping program.
16454STRIP=$lt_STRIP
16455
16456# Commands used to install an old-style archive.
16457RANLIB=$lt_RANLIB
16458old_postinstall_cmds=$lt_old_postinstall_cmds
16459old_postuninstall_cmds=$lt_old_postuninstall_cmds
16460
16461# A C compiler.
16462LTCC=$lt_CC
16463
16464# LTCC compiler flags.
16465LTCFLAGS=$lt_CFLAGS
16466
16467# Take the output of nm and produce a listing of raw symbols and C names.
16468global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16469
16470# Transform the output of nm in a proper C declaration.
16471global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16472
16473# Transform the output of nm in a C name address pair.
16474global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16475
b214d478
SE
16476# Transform the output of nm in a C name address pair when lib prefix is needed.
16477global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16478
d7040cdb
SE
16479# The name of the directory that contains temporary libtool files.
16480objdir=$objdir
16481
16482# Shell to use when invoking shell scripts.
16483SHELL=$lt_SHELL
16484
16485# An echo program that does not interpret backslashes.
16486ECHO=$lt_ECHO
16487
16488# Used to examine libraries when file_magic_cmd begins with "file".
16489MAGIC_CMD=$MAGIC_CMD
16490
16491# Must we lock files when doing compilation?
16492need_locks=$lt_need_locks
16493
b214d478
SE
16494# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16495DSYMUTIL=$lt_DSYMUTIL
16496
16497# Tool to change global to local symbols on Mac OS X.
16498NMEDIT=$lt_NMEDIT
16499
16500# Tool to manipulate fat objects and archives on Mac OS X.
16501LIPO=$lt_LIPO
16502
16503# ldd/readelf like tool for Mach-O binaries on Mac OS X.
16504OTOOL=$lt_OTOOL
16505
16506# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16507OTOOL64=$lt_OTOOL64
16508
d7040cdb
SE
16509# Old archive suffix (normally "a").
16510libext=$libext
16511
16512# Shared library suffix (normally ".so").
16513shrext_cmds=$lt_shrext_cmds
16514
16515# The commands to extract the exported symbol list from a shared archive.
16516extract_expsyms_cmds=$lt_extract_expsyms_cmds
16517
16518# Variables whose values should be saved in libtool wrapper scripts and
16519# restored at link time.
16520variables_saved_for_relink=$lt_variables_saved_for_relink
16521
16522# Do we need the "lib" prefix for modules?
16523need_lib_prefix=$need_lib_prefix
16524
16525# Do we need a version for libraries?
16526need_version=$need_version
16527
16528# Library versioning type.
16529version_type=$version_type
16530
16531# Shared library runtime path variable.
16532runpath_var=$runpath_var
16533
16534# Shared library path variable.
16535shlibpath_var=$shlibpath_var
16536
16537# Is shlibpath searched before the hard-coded library search path?
16538shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16539
16540# Format of library name prefix.
16541libname_spec=$lt_libname_spec
16542
16543# List of archive names. First name is the real one, the rest are links.
16544# The last name is the one that the linker finds with -lNAME
16545library_names_spec=$lt_library_names_spec
16546
16547# The coded name of the library, if different from the real name.
16548soname_spec=$lt_soname_spec
16549
16550# Command to use after installation of a shared archive.
16551postinstall_cmds=$lt_postinstall_cmds
16552
16553# Command to use after uninstallation of a shared archive.
16554postuninstall_cmds=$lt_postuninstall_cmds
16555
16556# Commands used to finish a libtool library installation in a directory.
16557finish_cmds=$lt_finish_cmds
16558
16559# As "finish_cmds", except a single script fragment to be evaled but
16560# not shown.
16561finish_eval=$lt_finish_eval
16562
16563# Whether we should hardcode library paths into libraries.
16564hardcode_into_libs=$hardcode_into_libs
16565
16566# Compile-time system search path for libraries.
16567sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16568
16569# Run-time system search path for libraries.
16570sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16571
16572# Whether dlopen is supported.
16573dlopen_support=$enable_dlopen
16574
16575# Whether dlopen of programs is supported.
16576dlopen_self=$enable_dlopen_self
16577
16578# Whether dlopen of statically linked programs is supported.
16579dlopen_self_static=$enable_dlopen_self_static
16580
16581# Commands to strip libraries.
16582old_striplib=$lt_old_striplib
16583striplib=$lt_striplib
16584
16585
16586# The linker used to build libraries.
16587LD=$lt_LD
16588
16589# Commands used to build an old-style archive.
16590old_archive_cmds=$lt_old_archive_cmds
16591
16592# A language specific compiler.
16593CC=$lt_compiler
16594
16595# Is the compiler the GNU compiler?
16596with_gcc=$GCC
16597
16598# Compiler flag to turn off builtin functions.
16599no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16600
16601# How to pass a linker flag through the compiler.
16602wl=$lt_lt_prog_compiler_wl
16603
16604# Additional compiler flags for building library objects.
16605pic_flag=$lt_lt_prog_compiler_pic
16606
16607# Compiler flag to prevent dynamic linking.
16608link_static_flag=$lt_lt_prog_compiler_static
16609
16610# Does compiler simultaneously support -c and -o options?
16611compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16612
16613# Whether or not to add -lc for building shared libraries.
16614build_libtool_need_lc=$archive_cmds_need_lc
16615
16616# Whether or not to disallow shared libs when runtime libs are static.
16617allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16618
16619# Compiler flag to allow reflexive dlopens.
16620export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16621
16622# Compiler flag to generate shared objects directly from archives.
16623whole_archive_flag_spec=$lt_whole_archive_flag_spec
16624
16625# Whether the compiler copes with passing no objects directly.
16626compiler_needs_object=$lt_compiler_needs_object
16627
16628# Create an old-style archive from a shared archive.
16629old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16630
16631# Create a temporary old-style archive to link instead of a shared archive.
16632old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16633
16634# Commands used to build a shared archive.
16635archive_cmds=$lt_archive_cmds
16636archive_expsym_cmds=$lt_archive_expsym_cmds
16637
16638# Commands used to build a loadable module if different from building
16639# a shared archive.
16640module_cmds=$lt_module_cmds
16641module_expsym_cmds=$lt_module_expsym_cmds
16642
16643# Whether we are building with GNU ld or not.
16644with_gnu_ld=$lt_with_gnu_ld
16645
16646# Flag that allows shared libraries with undefined symbols to be built.
16647allow_undefined_flag=$lt_allow_undefined_flag
16648
16649# Flag that enforces no undefined symbols.
16650no_undefined_flag=$lt_no_undefined_flag
16651
16652# Flag to hardcode \$libdir into a binary during linking.
16653# This must work even if \$libdir does not exist
16654hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16655
16656# If ld is used when linking, flag to hardcode \$libdir into a binary
16657# during linking. This must work even if \$libdir does not exist.
16658hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16659
16660# Whether we need a single "-rpath" flag with a separated argument.
16661hardcode_libdir_separator=$lt_hardcode_libdir_separator
16662
16663# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16664# DIR into the resulting binary.
16665hardcode_direct=$hardcode_direct
16666
16667# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16668# DIR into the resulting binary and the resulting library dependency is
16669# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16670# library is relocated.
16671hardcode_direct_absolute=$hardcode_direct_absolute
16672
16673# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16674# into the resulting binary.
16675hardcode_minus_L=$hardcode_minus_L
16676
16677# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16678# into the resulting binary.
16679hardcode_shlibpath_var=$hardcode_shlibpath_var
16680
16681# Set to "yes" if building a shared library automatically hardcodes DIR
16682# into the library and all subsequent libraries and executables linked
16683# against it.
16684hardcode_automatic=$hardcode_automatic
16685
16686# Set to yes if linker adds runtime paths of dependent libraries
16687# to runtime path list.
16688inherit_rpath=$inherit_rpath
16689
16690# Whether libtool must link a program against all its dependency libraries.
16691link_all_deplibs=$link_all_deplibs
16692
16693# Fix the shell variable \$srcfile for the compiler.
16694fix_srcfile_path=$lt_fix_srcfile_path
16695
16696# Set to "yes" if exported symbols are required.
16697always_export_symbols=$always_export_symbols
16698
16699# The commands to list exported symbols.
16700export_symbols_cmds=$lt_export_symbols_cmds
16701
16702# Symbols that should not be listed in the preloaded symbols.
16703exclude_expsyms=$lt_exclude_expsyms
16704
16705# Symbols that must always be exported.
16706include_expsyms=$lt_include_expsyms
16707
16708# Commands necessary for linking programs (against libraries) with templates.
16709prelink_cmds=$lt_prelink_cmds
16710
16711# Specify filename containing input files.
16712file_list_spec=$lt_file_list_spec
16713
16714# How to hardcode a shared library path into an executable.
16715hardcode_action=$hardcode_action
16716
16717# ### END LIBTOOL CONFIG
16718
16719_LT_EOF
16720
16721 case $host_os in
16722 aix3*)
16723 cat <<\_LT_EOF >> "$cfgfile"
16724# AIX sometimes has problems with the GCC collect2 program. For some
16725# reason, if we set the COLLECT_NAMES environment variable, the problems
16726# vanish in a puff of smoke.
16727if test "X${COLLECT_NAMES+set}" != Xset; then
16728 COLLECT_NAMES=
16729 export COLLECT_NAMES
16730fi
16731_LT_EOF
16732 ;;
16733 esac
16734
16735
16736ltmain="$ac_aux_dir/ltmain.sh"
16737
16738
16739 # We use sed instead of cat because bash on DJGPP gets confused if
16740 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16741 # text mode, it properly converts lines to CR/LF. This bash problem
16742 # is reportedly fixed, but why not run on old versions too?
16743 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16744 || (rm -f "$cfgfile"; exit 1)
16745
16746 case $xsi_shell in
16747 yes)
16748 cat << \_LT_EOF >> "$cfgfile"
b214d478 16749
d7040cdb
SE
16750# func_dirname file append nondir_replacement
16751# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16752# otherwise set result to NONDIR_REPLACEMENT.
16753func_dirname ()
16754{
16755 case ${1} in
16756 */*) func_dirname_result="${1%/*}${2}" ;;
16757 * ) func_dirname_result="${3}" ;;
16758 esac
16759}
16760
16761# func_basename file
16762func_basename ()
16763{
16764 func_basename_result="${1##*/}"
16765}
16766
b214d478
SE
16767# func_dirname_and_basename file append nondir_replacement
16768# perform func_basename and func_dirname in a single function
16769# call:
16770# dirname: Compute the dirname of FILE. If nonempty,
16771# add APPEND to the result, otherwise set result
16772# to NONDIR_REPLACEMENT.
16773# value returned in "$func_dirname_result"
16774# basename: Compute filename of FILE.
16775# value retuned in "$func_basename_result"
16776# Implementation must be kept synchronized with func_dirname
16777# and func_basename. For efficiency, we do not delegate to
16778# those functions but instead duplicate the functionality here.
16779func_dirname_and_basename ()
16780{
16781 case ${1} in
16782 */*) func_dirname_result="${1%/*}${2}" ;;
16783 * ) func_dirname_result="${3}" ;;
16784 esac
16785 func_basename_result="${1##*/}"
16786}
16787
d7040cdb
SE
16788# func_stripname prefix suffix name
16789# strip PREFIX and SUFFIX off of NAME.
16790# PREFIX and SUFFIX must not contain globbing or regex special
16791# characters, hashes, percent signs, but SUFFIX may contain a leading
16792# dot (in which case that matches only a dot).
16793func_stripname ()
16794{
16795 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16796 # positional parameters, so assign one to ordinary parameter first.
16797 func_stripname_result=${3}
16798 func_stripname_result=${func_stripname_result#"${1}"}
16799 func_stripname_result=${func_stripname_result%"${2}"}
16800}
16801
16802# func_opt_split
16803func_opt_split ()
16804{
16805 func_opt_split_opt=${1%%=*}
16806 func_opt_split_arg=${1#*=}
16807}
16808
16809# func_lo2o object
16810func_lo2o ()
16811{
16812 case ${1} in
16813 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16814 *) func_lo2o_result=${1} ;;
16815 esac
16816}
b214d478
SE
16817
16818# func_xform libobj-or-source
16819func_xform ()
16820{
16821 func_xform_result=${1%.*}.lo
16822}
16823
16824# func_arith arithmetic-term...
16825func_arith ()
16826{
16827 func_arith_result=$(( $* ))
16828}
16829
16830# func_len string
16831# STRING may not start with a hyphen.
16832func_len ()
16833{
16834 func_len_result=${#1}
16835}
16836
d7040cdb
SE
16837_LT_EOF
16838 ;;
16839 *) # Bourne compatible functions.
16840 cat << \_LT_EOF >> "$cfgfile"
b214d478 16841
d7040cdb
SE
16842# func_dirname file append nondir_replacement
16843# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16844# otherwise set result to NONDIR_REPLACEMENT.
16845func_dirname ()
16846{
16847 # Extract subdirectory from the argument.
16848 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
16849 if test "X$func_dirname_result" = "X${1}"; then
16850 func_dirname_result="${3}"
16851 else
16852 func_dirname_result="$func_dirname_result${2}"
16853 fi
16854}
16855
16856# func_basename file
16857func_basename ()
16858{
16859 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
16860}
16861
b214d478 16862
d7040cdb
SE
16863# func_stripname prefix suffix name
16864# strip PREFIX and SUFFIX off of NAME.
16865# PREFIX and SUFFIX must not contain globbing or regex special
16866# characters, hashes, percent signs, but SUFFIX may contain a leading
16867# dot (in which case that matches only a dot).
16868# func_strip_suffix prefix name
16869func_stripname ()
16870{
16871 case ${2} in
16872 .*) func_stripname_result=`$ECHO "X${3}" \
16873 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
16874 *) func_stripname_result=`$ECHO "X${3}" \
16875 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
16876 esac
16877}
16878
16879# sed scripts:
16880my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16881my_sed_long_arg='1s/^-[^=]*=//'
16882
16883# func_opt_split
16884func_opt_split ()
16885{
16886 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
16887 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
16888}
16889
16890# func_lo2o object
16891func_lo2o ()
16892{
16893 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
16894}
b214d478
SE
16895
16896# func_xform libobj-or-source
16897func_xform ()
16898{
16899 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
16900}
16901
16902# func_arith arithmetic-term...
16903func_arith ()
16904{
16905 func_arith_result=`expr "$@"`
16906}
16907
16908# func_len string
16909# STRING may not start with a hyphen.
16910func_len ()
16911{
16912 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16913}
16914
d7040cdb
SE
16915_LT_EOF
16916esac
16917
16918case $lt_shell_append in
16919 yes)
16920 cat << \_LT_EOF >> "$cfgfile"
16921
16922# func_append var value
16923# Append VALUE to the end of shell variable VAR.
16924func_append ()
16925{
16926 eval "$1+=\$2"
16927}
16928_LT_EOF
16929 ;;
16930 *)
16931 cat << \_LT_EOF >> "$cfgfile"
16932
16933# func_append var value
16934# Append VALUE to the end of shell variable VAR.
16935func_append ()
16936{
16937 eval "$1=\$$1\$2"
16938}
b214d478 16939
d7040cdb
SE
16940_LT_EOF
16941 ;;
16942 esac
16943
16944
16945 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16946 || (rm -f "$cfgfile"; exit 1)
16947
16948 mv -f "$cfgfile" "$ofile" ||
16949 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16950 chmod +x "$ofile"
16951
42ecbf5e 16952 ;;
20e95c23
DJ
16953 default-1 )
16954 for ac_file in $CONFIG_FILES; do
16955 # Support "outfile[:infile[:infile...]]"
16956 case "$ac_file" in
16957 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16958 esac
16959 # PO directories have a Makefile.in generated from Makefile.in.in.
16960 case "$ac_file" in */Makefile.in)
16961 # Adjust a relative srcdir.
16962 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16963 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16964 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16965 # In autoconf-2.13 it is called $ac_given_srcdir.
16966 # In autoconf-2.50 it is called $srcdir.
16967 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16968 case "$ac_given_srcdir" in
16969 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16970 /*) top_srcdir="$ac_given_srcdir" ;;
16971 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16972 esac
16973 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16974 rm -f "$ac_dir/POTFILES"
16975 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16976 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16977 POMAKEFILEDEPS="POTFILES.in"
16978 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
16979 # on $ac_dir but don't depend on user-specified configuration
16980 # parameters.
16981 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16982 # The LINGUAS file contains the set of available languages.
16983 if test -n "$OBSOLETE_ALL_LINGUAS"; then
16984 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16985 fi
16986 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16987 # Hide the ALL_LINGUAS assigment from automake.
16988 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16989 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16990 else
16991 # The set of available languages was given in configure.in.
16992 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16993 fi
16994 case "$ac_given_srcdir" in
16995 .) srcdirpre= ;;
16996 *) srcdirpre='$(srcdir)/' ;;
16997 esac
16998 POFILES=
16999 GMOFILES=
17000 UPDATEPOFILES=
17001 DUMMYPOFILES=
17002 for lang in $ALL_LINGUAS; do
17003 POFILES="$POFILES $srcdirpre$lang.po"
17004 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17005 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17006 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17007 done
17008 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17009 # environment variable.
17010 INST_LINGUAS=
17011 if test -n "$ALL_LINGUAS"; then
17012 for presentlang in $ALL_LINGUAS; do
17013 useit=no
17014 if test "%UNSET%" != "$LINGUAS"; then
17015 desiredlanguages="$LINGUAS"
17016 else
17017 desiredlanguages="$ALL_LINGUAS"
17018 fi
17019 for desiredlang in $desiredlanguages; do
17020 # Use the presentlang catalog if desiredlang is
17021 # a. equal to presentlang, or
17022 # b. a variant of presentlang (because in this case,
17023 # presentlang can be used as a fallback for messages
17024 # which are not translated in the desiredlang catalog).
17025 case "$desiredlang" in
17026 "$presentlang"*) useit=yes;;
17027 esac
17028 done
17029 if test $useit = yes; then
17030 INST_LINGUAS="$INST_LINGUAS $presentlang"
17031 fi
17032 done
17033 fi
17034 CATALOGS=
17035 if test -n "$INST_LINGUAS"; then
17036 for lang in $INST_LINGUAS; do
17037 CATALOGS="$CATALOGS $lang.gmo"
17038 done
17039 fi
17040 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17041 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"
17042 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17043 if test -f "$f"; then
17044 case "$f" in
17045 *.orig | *.bak | *~) ;;
17046 *) cat "$f" >> "$ac_dir/Makefile" ;;
17047 esac
17048 fi
17049 done
17050 fi
17051 ;;
17052 esac
17053 done ;;
42ecbf5e
DJ
17054 esac
17055done
17056_ACEOF
17057
17058cat >>$CONFIG_STATUS <<\_ACEOF
17059
17060{ (exit 0); exit 0; }
17061_ACEOF
252b5132 17062chmod +x $CONFIG_STATUS
42ecbf5e
DJ
17063ac_clean_files=$ac_clean_files_save
17064
17065
17066# configure is writing to config.log, and then calls config.status.
17067# config.status does its own redirection, appending to config.log.
17068# Unfortunately, on DOS this fails, as config.log is still kept open
17069# by configure, so config.status won't be able to write to it; its
17070# output is simply discarded. So we exec the FD to /dev/null,
17071# effectively closing config.log, so it can be properly (re)opened and
17072# appended to by config.status. When coming back to configure, we
17073# need to make the FD available again.
17074if test "$no_create" != yes; then
17075 ac_cs_success=:
17076 ac_config_status_args=
17077 test "$silent" = yes &&
17078 ac_config_status_args="$ac_config_status_args --quiet"
17079 exec 5>/dev/null
17080 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17081 exec 5>>config.log
17082 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17083 # would make configure fail if this is the last instruction.
17084 $ac_cs_success || { (exit 1); exit 1; }
17085fi
252b5132 17086