* configure: Regenerate for new libtool.
[deliverable/binutils-gdb.git] / ld / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
42ecbf5e 3# Generated by GNU Autoconf 2.59.
252b5132 4#
42ecbf5e 5# Copyright (C) 2003 Free Software Foundation, Inc.
252b5132
RH
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
42ecbf5e
DJ
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
d7040cdb
SE
244
245# Check that we are running under the correct shell.
246SHELL=${CONFIG_SHELL-/bin/sh}
247
248case X$lt_ECHO in
249X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
252 ;;
253esac
254
255ECHO=${lt_ECHO-echo}
256if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
258 shift
259elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
261 :
262elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $ECHO works!
264 :
265else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
268fi
269
270if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
272 shift
273 cat <<_LT_EOF
274$*
275_LT_EOF
276 exit 0
277fi
278
279# The HP-UX ksh and POSIX shell print the target directory to stdout
280# if CDPATH is set.
281(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
282
283if test -z "$lt_ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
289 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
290 then
291 break
292 fi
293 done
294 fi
295
296 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
297 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
298 test "X$echo_testing_string" = "X$echo_test_string"; then
299 :
300 else
301 # The Solaris, AIX, and Digital Unix default echo programs unquote
302 # backslashes. This makes it impossible to quote backslashes using
303 # echo "$something" | sed 's/\\/\\\\/g'
304 #
305 # So, first we look for a working echo in the user's PATH.
306
307 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
308 for dir in $PATH /usr/ucb; do
309 IFS="$lt_save_ifs"
310 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
311 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313 test "X$echo_testing_string" = "X$echo_test_string"; then
314 ECHO="$dir/echo"
315 break
316 fi
317 done
318 IFS="$lt_save_ifs"
319
320 if test "X$ECHO" = Xecho; then
321 # We didn't find a better echo, so look for alternatives.
322 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
323 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
324 test "X$echo_testing_string" = "X$echo_test_string"; then
325 # This shell has a builtin print -r that does the trick.
326 ECHO='print -r'
327 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
328 test "X$CONFIG_SHELL" != X/bin/ksh; then
329 # If we have ksh, try running configure again with it.
330 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
331 export ORIGINAL_CONFIG_SHELL
332 CONFIG_SHELL=/bin/ksh
333 export CONFIG_SHELL
334 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
335 else
336 # Try using printf.
337 ECHO='printf %s\n'
338 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
339 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
340 test "X$echo_testing_string" = "X$echo_test_string"; then
341 # Cool, printf works
342 :
343 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344 test "X$echo_testing_string" = 'X\t' &&
345 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346 test "X$echo_testing_string" = "X$echo_test_string"; then
347 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
348 export CONFIG_SHELL
349 SHELL="$CONFIG_SHELL"
350 export SHELL
351 ECHO="$CONFIG_SHELL $0 --fallback-echo"
352 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353 test "X$echo_testing_string" = 'X\t' &&
354 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355 test "X$echo_testing_string" = "X$echo_test_string"; then
356 ECHO="$CONFIG_SHELL $0 --fallback-echo"
357 else
358 # maybe with a smaller string...
359 prev=:
360
361 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
363 then
364 break
365 fi
366 prev="$cmd"
367 done
368
369 if test "$prev" != 'sed 50q "$0"'; then
370 echo_test_string=`eval $prev`
371 export echo_test_string
372 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
373 else
374 # Oops. We lost completely, so just stick with echo.
375 ECHO=echo
376 fi
377 fi
378 fi
379 fi
380 fi
381fi
382
383# Copy echo and quote the copy suitably for passing to libtool from
384# the Makefile, instead of quoting the original, which is used later.
385lt_ECHO=$ECHO
386if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
388fi
389
390
391
392
42ecbf5e
DJ
393# Name of the host.
394# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395# so uname gets run too.
396ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
252b5132 397
42ecbf5e
DJ
398exec 6>&1
399
400#
401# Initializations.
402#
252b5132 403ac_default_prefix=/usr/local
42ecbf5e
DJ
404ac_config_libobj_dir=.
405cross_compiling=no
406subdirs=
407MFLAGS=
408MAKEFLAGS=
409SHELL=${CONFIG_SHELL-/bin/sh}
410
411# Maximum number of lines to put in a shell here document.
412# This variable seems obsolete. It should probably be removed, and
413# only ac_max_sed_lines should be used.
414: ${ac_max_here_lines=38}
415
416# Identity of this package.
417PACKAGE_NAME=
418PACKAGE_TARNAME=
419PACKAGE_VERSION=
420PACKAGE_STRING=
421PACKAGE_BUGREPORT=
422
423ac_unique_file="ldmain.c"
424# Factoring default headers for most tests.
425ac_includes_default="\
426#include <stdio.h>
427#if HAVE_SYS_TYPES_H
428# include <sys/types.h>
429#endif
430#if HAVE_SYS_STAT_H
431# include <sys/stat.h>
432#endif
433#if STDC_HEADERS
434# include <stdlib.h>
435# include <stddef.h>
436#else
437# if HAVE_STDLIB_H
438# include <stdlib.h>
439# endif
440#endif
441#if HAVE_STRING_H
442# if !STDC_HEADERS && HAVE_MEMORY_H
443# include <memory.h>
444# endif
445# include <string.h>
446#endif
447#if HAVE_STRINGS_H
448# include <strings.h>
449#endif
450#if HAVE_INTTYPES_H
451# include <inttypes.h>
452#else
453# if HAVE_STDINT_H
454# include <stdint.h>
455# endif
456#endif
457#if HAVE_UNISTD_H
458# include <unistd.h>
459#endif"
460
7357c5b6 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 AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE YACC LEX LEXLIB LEX_OUTPUT_ROOT MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GENINSRC_NEVER_TRUE GENINSRC_NEVER_FALSE HDEFINES HOSTING_CRT0 HOSTING_LIBS NATIVE_LIB_DIRS STRINGIFY EMUL EMULATION_OFILES EMUL_EXTRA_OFILES LIB_PATH EMULATION_LIBPATH TESTBFDLIB datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
42ecbf5e 462ac_subst_files='TDIRS'
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
252b5132 5392
42ecbf5e 5393
7357c5b6
AM
5394macro_version='2.1a'
5395macro_revision='1.2435'
42ecbf5e 5396
252b5132 5397
42ecbf5e 5398
d15b04bd 5399
42ecbf5e 5400
252b5132 5401
e5a52504 5402
42ecbf5e 5403
42ecbf5e
DJ
5404
5405
42ecbf5e 5406
d7040cdb 5407
7357c5b6 5408ltmain="$ac_aux_dir/ltmain.sh"
d7040cdb 5409
7357c5b6
AM
5410# Set options
5411
5412enable_dlopen=no
d7040cdb 5413
d7040cdb 5414
7357c5b6
AM
5415enable_win32_dll=no
5416
5417
5418# Check whether --enable-shared or --disable-shared was given.
5419if test "${enable_shared+set}" = set; then
5420 enableval="$enable_shared"
5421 p=${PACKAGE-default}
5422 case $enableval in
5423 yes) enable_shared=yes ;;
5424 no) enable_shared=no ;;
5425 *)
5426 enable_shared=no
5427 # Look at the argument we got. We use all the common list separators.
5428 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5429 for pkg in $enableval; do
5430 IFS="$lt_save_ifs"
5431 if test "X$pkg" = "X$p"; then
5432 enable_shared=yes
5433 fi
5434 done
5435 IFS="$lt_save_ifs"
5436 ;;
5437 esac
5438else
5439 enable_shared=yes
5440fi;
42ecbf5e 5441
252b5132 5442
42ecbf5e 5443
42ecbf5e 5444
d7040cdb 5445
d7040cdb 5446
d7040cdb 5447
d7040cdb 5448
7357c5b6
AM
5449# Check whether --enable-static or --disable-static was given.
5450if test "${enable_static+set}" = set; then
5451 enableval="$enable_static"
5452 p=${PACKAGE-default}
5453 case $enableval in
5454 yes) enable_static=yes ;;
5455 no) enable_static=no ;;
5456 *)
5457 enable_static=no
5458 # Look at the argument we got. We use all the common list separators.
5459 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5460 for pkg in $enableval; do
5461 IFS="$lt_save_ifs"
5462 if test "X$pkg" = "X$p"; then
5463 enable_static=yes
5464 fi
5465 done
5466 IFS="$lt_save_ifs"
5467 ;;
5468 esac
5469else
5470 enable_static=yes
5471fi;
ce2cded5 5472
ce2cded5
L
5473
5474
42ecbf5e 5475
42ecbf5e 5476
42ecbf5e 5477
42ecbf5e 5478
d7040cdb 5479
d7040cdb 5480
7357c5b6
AM
5481# Check whether --with-pic or --without-pic was given.
5482if test "${with_pic+set}" = set; then
5483 withval="$with_pic"
5484 pic_mode="$withval"
5485else
5486 pic_mode=default
5487fi;
42ecbf5e 5488
7357c5b6 5489test -z "$pic_mode" && pic_mode=default
d7040cdb 5490
d7040cdb 5491
d7040cdb
SE
5492
5493
d7040cdb 5494
d7040cdb 5495
42ecbf5e 5496
7357c5b6
AM
5497# Check whether --enable-fast-install or --disable-fast-install was given.
5498if test "${enable_fast_install+set}" = set; then
5499 enableval="$enable_fast_install"
5500 p=${PACKAGE-default}
5501 case $enableval in
5502 yes) enable_fast_install=yes ;;
5503 no) enable_fast_install=no ;;
5504 *)
5505 enable_fast_install=no
5506 # Look at the argument we got. We use all the common list separators.
5507 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5508 for pkg in $enableval; do
5509 IFS="$lt_save_ifs"
5510 if test "X$pkg" = "X$p"; then
5511 enable_fast_install=yes
5512 fi
5513 done
5514 IFS="$lt_save_ifs"
5515 ;;
5516 esac
ce2cded5 5517else
7357c5b6
AM
5518 enable_fast_install=yes
5519fi;
d7040cdb 5520
252b5132 5521
252b5132 5522
252b5132 5523
252b5132
RH
5524
5525
ce2cded5
L
5526
5527
7357c5b6
AM
5528echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5529echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5530if test "${lt_cv_path_SED+set}" = set; then
ce2cded5 5531 echo $ECHO_N "(cached) $ECHO_C" >&6
d7040cdb 5532else
7357c5b6
AM
5533 # Loop through the user's path and test for sed and gsed.
5534# Then use that list of sed's as ones to test for truncation.
5535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5536for as_dir in $PATH
5537do
5538 IFS=$as_save_IFS
5539 test -z "$as_dir" && as_dir=.
5540 for lt_ac_prog in sed gsed; do
5541 for ac_exec_ext in '' $ac_executable_extensions; do
5542 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5543 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5544 fi
5545 done
5546 done
5547done
5548IFS=$as_save_IFS
5549lt_ac_max=0
5550lt_ac_count=0
5551# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5552# along with /bin/sed that truncates output.
5553for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5554 test ! -f $lt_ac_sed && continue
5555 cat /dev/null > conftest.in
5556 lt_ac_count=0
5557 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5558 # Check for GNU sed and select it if it is found.
5559 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5560 lt_cv_path_SED=$lt_ac_sed
5561 break
ce2cded5 5562 fi
7357c5b6
AM
5563 while true; do
5564 cat conftest.in conftest.in >conftest.tmp
5565 mv conftest.tmp conftest.in
5566 cp conftest.in conftest.nl
5567 echo >>conftest.nl
5568 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5569 cmp -s conftest.out conftest.nl || break
5570 # 10000 chars as input seems more than enough
5571 test $lt_ac_count -gt 10 && break
5572 lt_ac_count=`expr $lt_ac_count + 1`
5573 if test $lt_ac_count -gt $lt_ac_max; then
5574 lt_ac_max=$lt_ac_count
5575 lt_cv_path_SED=$lt_ac_sed
5576 fi
5577 done
5578done
20e95c23 5579
7357c5b6 5580fi
20e95c23 5581
7357c5b6 5582SED=$lt_cv_path_SED
20e95c23 5583
7357c5b6
AM
5584echo "$as_me:$LINENO: result: $SED" >&5
5585echo "${ECHO_T}$SED" >&6
20e95c23 5586
7357c5b6
AM
5587test -z "$SED" && SED=sed
5588Xsed="$SED -e 1s/^X//"
20e95c23
DJ
5589
5590
5591
5592
5593
5594
20e95c23 5595
20e95c23 5596
d7040cdb 5597
d7040cdb 5598
7357c5b6
AM
5599
5600echo "$as_me:$LINENO: checking for fgrep" >&5
5601echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
5602if test "${ac_cv_prog_fgrep+set}" = set; then
5603 echo $ECHO_N "(cached) $ECHO_C" >&6
5604else
5605 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
5606 then ac_cv_prog_fgrep='grep -F'
5607 else ac_cv_prog_fgrep='fgrep'
5608 fi
20e95c23 5609fi
7357c5b6
AM
5610echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
5611echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
5612 FGREP=$ac_cv_prog_fgrep
5613
5614
5615test -z "$GREP" && GREP=grep
5616
d7040cdb
SE
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
20e95c23 5628
ce2cded5 5629
d7040cdb 5630
7357c5b6
AM
5631
5632
5633
5634
5635# Check whether --with-gnu-ld or --without-gnu-ld was given.
5636if test "${with_gnu_ld+set}" = set; then
5637 withval="$with_gnu_ld"
5638 test "$withval" = no || with_gnu_ld=yes
5639else
5640 with_gnu_ld=no
5641fi;
5642ac_prog=ld
5643if test "$GCC" = yes; then
5644 # Check if gcc -print-prog-name=ld gives a path.
5645 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5646echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5647 case $host in
5648 *-*-mingw*)
5649 # gcc leaves a trailing carriage return which upsets mingw
5650 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5651 *)
5652 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5653 esac
5654 case $ac_prog in
5655 # Accept absolute paths.
5656 [\\/]* | ?:[\\/]*)
5657 re_direlt='/[^/][^/]*/\.\./'
5658 # Canonicalize the pathname of ld
5659 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5660 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5661 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5662 done
5663 test -z "$LD" && LD="$ac_prog"
5664 ;;
5665 "")
5666 # If it fails, then pretend we aren't using GCC.
5667 ac_prog=ld
5668 ;;
5669 *)
5670 # If it is relative, then search for the first ld in PATH.
5671 with_gnu_ld=unknown
5672 ;;
5673 esac
5674elif test "$with_gnu_ld" = yes; then
5675 echo "$as_me:$LINENO: checking for GNU ld" >&5
5676echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5677else
5678 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5679echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
ce2cded5 5680fi
7357c5b6 5681if test "${lt_cv_path_LD+set}" = set; then
ce2cded5
L
5682 echo $ECHO_N "(cached) $ECHO_C" >&6
5683else
7357c5b6
AM
5684 if test -z "$LD"; then
5685 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5686 for ac_dir in $PATH; do
5687 IFS="$lt_save_ifs"
5688 test -z "$ac_dir" && ac_dir=.
5689 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5690 lt_cv_path_LD="$ac_dir/$ac_prog"
5691 # Check to see if the program is GNU ld. I'd rather use --version,
5692 # but apparently some variants of GNU ld only accept -v.
5693 # Break only if it was the GNU/non-GNU ld that we prefer.
5694 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5695 *GNU* | *'with BFD'*)
5696 test "$with_gnu_ld" != no && break
5697 ;;
5698 *)
5699 test "$with_gnu_ld" != yes && break
5700 ;;
5701 esac
5702 fi
5703 done
5704 IFS="$lt_save_ifs"
ce2cded5 5705else
7357c5b6 5706 lt_cv_path_LD="$LD" # Let the user override the test with a path.
ce2cded5
L
5707fi
5708fi
7357c5b6
AM
5709
5710LD="$lt_cv_path_LD"
5711if test -n "$LD"; then
5712 echo "$as_me:$LINENO: result: $LD" >&5
5713echo "${ECHO_T}$LD" >&6
ce2cded5
L
5714else
5715 echo "$as_me:$LINENO: result: no" >&5
5716echo "${ECHO_T}no" >&6
5717fi
7357c5b6
AM
5718test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5719echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5720 { (exit 1); exit 1; }; }
5721echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5722echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5723if test "${lt_cv_prog_gnu_ld+set}" = set; then
5724 echo $ECHO_N "(cached) $ECHO_C" >&6
ce2cded5 5725else
7357c5b6
AM
5726 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5727case `$LD -v 2>&1 </dev/null` in
5728*GNU* | *'with BFD'*)
5729 lt_cv_prog_gnu_ld=yes
5730 ;;
5731*)
5732 lt_cv_prog_gnu_ld=no
5733 ;;
5734esac
ce2cded5 5735fi
7357c5b6
AM
5736echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5737echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5738with_gnu_ld=$lt_cv_prog_gnu_ld
d7040cdb
SE
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
7357c5b6
AM
5749echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5750echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
5751if test "${lt_cv_path_NM+set}" = set; then
ce2cded5
L
5752 echo $ECHO_N "(cached) $ECHO_C" >&6
5753else
7357c5b6
AM
5754 if test -n "$NM"; then
5755 # Let the user override the test.
5756 lt_cv_path_NM="$NM"
ce2cded5 5757else
7357c5b6
AM
5758 lt_nm_to_check="${ac_tool_prefix}nm"
5759 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5760 lt_nm_to_check="$lt_nm_to_check nm"
20e95c23 5761 fi
7357c5b6
AM
5762 for lt_tmp_nm in $lt_nm_to_check; do
5763 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5764 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5765 IFS="$lt_save_ifs"
5766 test -z "$ac_dir" && ac_dir=.
5767 tmp_nm="$ac_dir/$lt_tmp_nm"
5768 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5769 # Check to see if the nm accepts a BSD-compat flag.
5770 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5771 # nm: unknown option "B" ignored
5772 # Tru64's nm complains that /dev/null is an invalid object file
5773 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5774 */dev/null* | *'Invalid file or object type'*)
5775 lt_cv_path_NM="$tmp_nm -B"
5776 break
5777 ;;
5778 *)
5779 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5780 */dev/null*)
5781 lt_cv_path_NM="$tmp_nm -p"
5782 break
5783 ;;
5784 *)
5785 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5786 continue # so that we can try to find one that supports BSD flags
5787 ;;
5788 esac
5789 ;;
5790 esac
5791 fi
5792 done
5793 IFS="$lt_save_ifs"
5794 done
5795 : ${lt_cv_path_NM=no}
ce2cded5
L
5796fi
5797fi
7357c5b6
AM
5798echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5799echo "${ECHO_T}$lt_cv_path_NM" >&6
5800if test "$lt_cv_path_NM" != "no"; then
5801 NM="$lt_cv_path_NM"
ce2cded5 5802else
7357c5b6
AM
5803 # Didn't find any BSD compatible name lister, look for dumpbin.
5804 if test -n "$ac_tool_prefix"; then
5805 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5806 do
5807 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5808set dummy $ac_tool_prefix$ac_prog; ac_word=$2
ce2cded5
L
5809echo "$as_me:$LINENO: checking for $ac_word" >&5
5810echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7357c5b6 5811if test "${ac_cv_prog_DUMPBIN+set}" = set; then
20e95c23
DJ
5812 echo $ECHO_N "(cached) $ECHO_C" >&6
5813else
7357c5b6
AM
5814 if test -n "$DUMPBIN"; then
5815 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
ce2cded5
L
5816else
5817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5818for as_dir in $PATH
5819do
5820 IFS=$as_save_IFS
5821 test -z "$as_dir" && as_dir=.
5822 for ac_exec_ext in '' $ac_executable_extensions; do
5823 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357c5b6 5824 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
ce2cded5
L
5825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5826 break 2
5827 fi
5828done
5829done
d7040cdb 5830
20e95c23 5831fi
ce2cded5 5832fi
7357c5b6
AM
5833DUMPBIN=$ac_cv_prog_DUMPBIN
5834if test -n "$DUMPBIN"; then
5835 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5836echo "${ECHO_T}$DUMPBIN" >&6
42ecbf5e
DJ
5837else
5838 echo "$as_me:$LINENO: result: no" >&5
5839echo "${ECHO_T}no" >&6
5840fi
5841
7357c5b6
AM
5842 test -n "$DUMPBIN" && break
5843 done
ce2cded5 5844fi
7357c5b6
AM
5845if test -z "$DUMPBIN"; then
5846 ac_ct_DUMPBIN=$DUMPBIN
5847 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5848do
5849 # Extract the first word of "$ac_prog", so it can be a program name with args.
5850set dummy $ac_prog; ac_word=$2
ce2cded5
L
5851echo "$as_me:$LINENO: checking for $ac_word" >&5
5852echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7357c5b6 5853if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
42ecbf5e
DJ
5854 echo $ECHO_N "(cached) $ECHO_C" >&6
5855else
7357c5b6
AM
5856 if test -n "$ac_ct_DUMPBIN"; then
5857 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
ce2cded5
L
5858else
5859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5860for as_dir in $PATH
5861do
5862 IFS=$as_save_IFS
5863 test -z "$as_dir" && as_dir=.
5864 for ac_exec_ext in '' $ac_executable_extensions; do
5865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357c5b6 5866 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
ce2cded5
L
5867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5868 break 2
5869 fi
5870done
5871done
d7040cdb 5872
ce2cded5
L
5873fi
5874fi
7357c5b6
AM
5875ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5876if test -n "$ac_ct_DUMPBIN"; then
5877 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5878echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
ce2cded5
L
5879else
5880 echo "$as_me:$LINENO: result: no" >&5
5881echo "${ECHO_T}no" >&6
5882fi
d7040cdb 5883
7357c5b6 5884 test -n "$ac_ct_DUMPBIN" && break
ce2cded5 5885done
7357c5b6 5886test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
d7040cdb 5887
7357c5b6 5888 DUMPBIN=$ac_ct_DUMPBIN
ce2cded5 5889fi
7357c5b6
AM
5890
5891
5892 if test "$DUMPBIN" != ":"; then
5893 NM="$DUMPBIN"
5894 fi
ce2cded5 5895fi
7357c5b6
AM
5896test -z "$NM" && NM=nm
5897
5898
5899
5900
5901
5902
5903echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5904echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
5905if test "${lt_cv_nm_interface+set}" = set; then
5906 echo $ECHO_N "(cached) $ECHO_C" >&6
20e95c23 5907else
7357c5b6
AM
5908 lt_cv_nm_interface="BSD nm"
5909 echo "int some_variable = 0;" > conftest.$ac_ext
da594c4a 5910 (eval echo "\"\$as_me:5545: $ac_compile\"" >&5)
7357c5b6
AM
5911 (eval "$ac_compile" 2>conftest.err)
5912 cat conftest.err >&5
da594c4a 5913 (eval echo "\"\$as_me:5548: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7357c5b6
AM
5914 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5915 cat conftest.err >&5
da594c4a 5916 (eval echo "\"\$as_me:5551: output\"" >&5)
7357c5b6
AM
5917 cat conftest.out >&5
5918 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5919 lt_cv_nm_interface="MS dumpbin"
5920 fi
5921 rm -f conftest*
20e95c23 5922fi
7357c5b6
AM
5923echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5924echo "${ECHO_T}$lt_cv_nm_interface" >&6
20e95c23 5925
7357c5b6
AM
5926echo "$as_me:$LINENO: checking whether ln -s works" >&5
5927echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5928LN_S=$as_ln_s
5929if test "$LN_S" = "ln -s"; then
5930 echo "$as_me:$LINENO: result: yes" >&5
5931echo "${ECHO_T}yes" >&6
ce2cded5 5932else
7357c5b6
AM
5933 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5934echo "${ECHO_T}no, using $LN_S" >&6
d7040cdb 5935fi
20e95c23 5936
7357c5b6
AM
5937# find the maximum length of command line arguments
5938echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5939echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5940if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5941 echo $ECHO_N "(cached) $ECHO_C" >&6
5942else
5943 i=0
5944 teststring="ABCD"
20e95c23 5945
7357c5b6
AM
5946 case $build_os in
5947 msdosdjgpp*)
5948 # On DJGPP, this test can blow up pretty badly due to problems in libc
5949 # (any single argument exceeding 2000 bytes causes a buffer overrun
5950 # during glob expansion). Even if it were fixed, the result of this
5951 # check would be larger than it should be.
5952 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5953 ;;
20e95c23 5954
7357c5b6
AM
5955 gnu*)
5956 # Under GNU Hurd, this test is not required because there is
5957 # no limit to the length of command line arguments.
5958 # Libtool will interpret -1 as no limit whatsoever
5959 lt_cv_sys_max_cmd_len=-1;
5960 ;;
20e95c23 5961
7357c5b6
AM
5962 cygwin* | mingw*)
5963 # On Win9x/ME, this test blows up -- it succeeds, but takes
5964 # about 5 minutes as the teststring grows exponentially.
5965 # Worse, since 9x/ME are not pre-emptively multitasking,
5966 # you end up with a "frozen" computer, even though with patience
5967 # the test eventually succeeds (with a max line length of 256k).
5968 # Instead, let's just punt: use the minimum linelength reported by
5969 # all of the supported platforms: 8192 (on NT/2K/XP).
5970 lt_cv_sys_max_cmd_len=8192;
5971 ;;
20e95c23 5972
7357c5b6
AM
5973 amigaos*)
5974 # On AmigaOS with pdksh, this test takes hours, literally.
5975 # So we just punt and use a minimum line length of 8192.
5976 lt_cv_sys_max_cmd_len=8192;
5977 ;;
20e95c23 5978
7357c5b6
AM
5979 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5980 # This has been around since 386BSD, at least. Likely further.
5981 if test -x /sbin/sysctl; then
5982 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5983 elif test -x /usr/sbin/sysctl; then
5984 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5985 else
5986 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5987 fi
5988 # And add a safety zone
5989 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5990 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5991 ;;
d7040cdb 5992
7357c5b6
AM
5993 interix*)
5994 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5995 lt_cv_sys_max_cmd_len=196608
5996 ;;
d7040cdb 5997
7357c5b6
AM
5998 osf*)
5999 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6000 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6001 # nice to cause kernel panics so lets avoid the loop below.
6002 # First set a reasonable default.
6003 lt_cv_sys_max_cmd_len=16384
6004 #
6005 if test -x /sbin/sysconfig; then
6006 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6007 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6008 esac
6009 fi
6010 ;;
6011 sco3.2v5*)
6012 lt_cv_sys_max_cmd_len=102400
6013 ;;
6014 sysv5* | sco5v6* | sysv4.2uw2*)
6015 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6016 if test -n "$kargmax"; then
6017 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6018 else
6019 lt_cv_sys_max_cmd_len=32768
6020 fi
ce2cded5
L
6021 ;;
6022 *)
7357c5b6
AM
6023 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
6024 if test -n $lt_cv_sys_max_cmd_len; then
6025 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6026 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6027 else
6028 # Make teststring a little bigger before we do anything with it.
6029 # a 1K string should be a reasonable start.
6030 for i in 1 2 3 4 5 6 7 8 ; do
6031 teststring=$teststring$teststring
6032 done
6033 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6034 # If test is not a shell built-in, we'll probably end up computing a
6035 # maximum length that is only half of the actual maximum length, but
6036 # we can't tell.
6037 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6038 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6039 test $i != 17 # 1/2 MB should be enough
6040 do
6041 i=`expr $i + 1`
6042 teststring=$teststring$teststring
6043 done
6044 # Only check the string length outside the loop.
6045 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6046 teststring=
6047 # Add a significant safety factor because C++ compilers can tack on
6048 # massive amounts of additional arguments before passing them to the
6049 # linker. It appears as though 1/2 is a usable value.
6050 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6051 fi
ce2cded5
L
6052 ;;
6053 esac
d7040cdb 6054
7357c5b6 6055fi
d7040cdb 6056
7357c5b6
AM
6057if test -n $lt_cv_sys_max_cmd_len ; then
6058 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6059echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6060else
6061 echo "$as_me:$LINENO: result: none" >&5
6062echo "${ECHO_T}none" >&6
6063fi
6064max_cmd_len=$lt_cv_sys_max_cmd_len
d7040cdb
SE
6065
6066
6067
6068
6069
d7040cdb 6070
d7040cdb 6071
7357c5b6
AM
6072: ${CP="cp -f"}
6073: ${MV="mv -f"}
6074: ${RM="rm -f"}
d7040cdb 6075
7357c5b6
AM
6076echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6077echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
6078# Try some XSI features
6079xsi_shell=no
6080( _lt_dummy="a/b/c"
6081 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6082 = c,a/b,, ) >/dev/null 2>&1 \
6083 && xsi_shell=yes
6084echo "$as_me:$LINENO: result: $xsi_shell" >&5
6085echo "${ECHO_T}$xsi_shell" >&6
d7040cdb 6086
d7040cdb 6087
7357c5b6
AM
6088echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6089echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
6090lt_shell_append=no
6091( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6092 >/dev/null 2>&1 \
6093 && lt_shell_append=yes
6094echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6095echo "${ECHO_T}$lt_shell_append" >&6
d7040cdb
SE
6096
6097
7357c5b6
AM
6098if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6099 lt_unset=unset
6100else
6101 lt_unset=false
6102fi
d7040cdb 6103
d7040cdb 6104
d7040cdb 6105
d7040cdb 6106
d7040cdb 6107
7357c5b6
AM
6108# test EBCDIC or ASCII
6109case `echo X|tr X '\101'` in
6110 A) # ASCII based system
6111 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6112 lt_SP2NL='tr \040 \012'
6113 lt_NL2SP='tr \015\012 \040\040'
6114 ;;
6115 *) # EBCDIC based system
6116 lt_SP2NL='tr \100 \n'
6117 lt_NL2SP='tr \r\n \100\100'
6118 ;;
6119esac
42ecbf5e 6120
d7040cdb
SE
6121
6122
6123
6124
6125
6126
d7040cdb 6127
d7040cdb 6128
7357c5b6
AM
6129echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6130echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6131if test "${lt_cv_ld_reload_flag+set}" = set; then
6132 echo $ECHO_N "(cached) $ECHO_C" >&6
6133else
6134 lt_cv_ld_reload_flag='-r'
6135fi
6136echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6137echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6138reload_flag=$lt_cv_ld_reload_flag
6139case $reload_flag in
6140"" | " "*) ;;
6141*) reload_flag=" $reload_flag" ;;
6142esac
6143reload_cmds='$LD$reload_flag -o $output$reload_objs'
6144case $host_os in
6145 darwin*)
6146 if test "$GCC" = yes; then
6147 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6148 else
6149 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6150 fi
6151 ;;
6152esac
d7040cdb 6153
d7040cdb 6154
d7040cdb 6155
d7040cdb 6156
d7040cdb 6157
d7040cdb 6158
d7040cdb 6159
d7040cdb 6160
d7040cdb 6161
d7040cdb 6162
7357c5b6
AM
6163echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6164echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
6165if test "${lt_cv_deplibs_check_method+set}" = set; then
ce2cded5
L
6166 echo $ECHO_N "(cached) $ECHO_C" >&6
6167else
7357c5b6
AM
6168 lt_cv_file_magic_cmd='$MAGIC_CMD'
6169lt_cv_file_magic_test_file=
6170lt_cv_deplibs_check_method='unknown'
6171# Need to set the preceding variable on all platforms that support
6172# interlibrary dependencies.
6173# 'none' -- dependencies not supported.
6174# `unknown' -- same as none, but documents that we really don't know.
6175# 'pass_all' -- all dependencies passed with no checks.
6176# 'test_compile' -- check by making test program.
6177# 'file_magic [[regex]]' -- check by looking for files in library path
6178# which responds to the $file_magic_cmd with a given extended regex.
6179# If you have `file' or equivalent on your system and you're not sure
6180# whether `pass_all' will *always* work, you probably want this one.
d7040cdb 6181
ce2cded5 6182case $host_os in
7357c5b6
AM
6183aix[4-9]*)
6184 lt_cv_deplibs_check_method=pass_all
ce2cded5 6185 ;;
7357c5b6
AM
6186
6187beos*)
6188 lt_cv_deplibs_check_method=pass_all
ce2cded5 6189 ;;
7357c5b6
AM
6190
6191bsdi[45]*)
6192 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6193 lt_cv_file_magic_cmd='/usr/bin/file -L'
6194 lt_cv_file_magic_test_file=/shlib/libc.so
ce2cded5 6195 ;;
7357c5b6
AM
6196
6197cygwin*)
6198 # func_win32_libid is a shell function defined in ltmain.sh
6199 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6200 lt_cv_file_magic_cmd='func_win32_libid'
ce2cded5 6201 ;;
7357c5b6
AM
6202
6203mingw* | pw32*)
6204 # Base MSYS/MinGW do not provide the 'file' command needed by
6205 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6206 # unless we find 'file', for example because we are cross-compiling.
6207 if ( file / ) >/dev/null 2>&1; then
6208 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6209 lt_cv_file_magic_cmd='func_win32_libid'
6210 else
6211 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6212 lt_cv_file_magic_cmd='$OBJDUMP -f'
6213 fi
ce2cded5 6214 ;;
7357c5b6
AM
6215
6216darwin* | rhapsody*)
6217 lt_cv_deplibs_check_method=pass_all
ce2cded5 6218 ;;
7357c5b6
AM
6219
6220freebsd* | dragonfly*)
6221 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6222 case $host_cpu in
6223 i*86 )
6224 # Not sure whether the presence of OpenBSD here was a mistake.
6225 # Let's accept both of them until this is cleared up.
6226 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6227 lt_cv_file_magic_cmd=/usr/bin/file
6228 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6229 ;;
6230 esac
6231 else
6232 lt_cv_deplibs_check_method=pass_all
6233 fi
ce2cded5 6234 ;;
7357c5b6
AM
6235
6236gnu*)
6237 lt_cv_deplibs_check_method=pass_all
ce2cded5 6238 ;;
7357c5b6
AM
6239
6240hpux10.20* | hpux11*)
6241 lt_cv_file_magic_cmd=/usr/bin/file
6242 case $host_cpu in
6243 ia64*)
6244 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6245 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6246 ;;
6247 hppa*64*)
6248 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]'
6249 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6250 ;;
6251 *)
6252 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6253 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6254 ;;
6255 esac
ce2cded5 6256 ;;
d7040cdb 6257
7357c5b6
AM
6258interix[3-9]*)
6259 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6260 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6261 ;;
d7040cdb 6262
7357c5b6
AM
6263irix5* | irix6* | nonstopux*)
6264 case $LD in
6265 *-32|*"-32 ") libmagic=32-bit;;
6266 *-n32|*"-n32 ") libmagic=N32;;
6267 *-64|*"-64 ") libmagic=64-bit;;
6268 *) libmagic=never-match;;
6269 esac
6270 lt_cv_deplibs_check_method=pass_all
6271 ;;
d7040cdb 6272
7357c5b6
AM
6273# This must be Linux ELF.
6274linux* | k*bsd*-gnu)
6275 lt_cv_deplibs_check_method=pass_all
6276 ;;
d7040cdb 6277
7357c5b6
AM
6278netbsd*)
6279 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6280 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6281 else
6282 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6283 fi
ce2cded5 6284 ;;
d7040cdb 6285
7357c5b6
AM
6286newos6*)
6287 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6288 lt_cv_file_magic_cmd=/usr/bin/file
6289 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6290 ;;
d7040cdb 6291
7357c5b6
AM
6292*nto* | *qnx*)
6293 lt_cv_deplibs_check_method=pass_all
6294 ;;
d7040cdb 6295
7357c5b6
AM
6296openbsd*)
6297 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6298 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
ce2cded5 6299 else
7357c5b6 6300 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
ce2cded5 6301 fi
7357c5b6 6302 ;;
d7040cdb 6303
7357c5b6
AM
6304osf3* | osf4* | osf5*)
6305 lt_cv_deplibs_check_method=pass_all
6306 ;;
d7040cdb 6307
7357c5b6
AM
6308rdos*)
6309 lt_cv_deplibs_check_method=pass_all
6310 ;;
d7040cdb 6311
7357c5b6
AM
6312solaris*)
6313 lt_cv_deplibs_check_method=pass_all
6314 ;;
d7040cdb 6315
7357c5b6
AM
6316sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6317 lt_cv_deplibs_check_method=pass_all
6318 ;;
d7040cdb 6319
7357c5b6
AM
6320sysv4 | sysv4.3*)
6321 case $host_vendor in
6322 motorola)
6323 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]'
6324 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6325 ;;
6326 ncr)
6327 lt_cv_deplibs_check_method=pass_all
6328 ;;
6329 sequent)
6330 lt_cv_file_magic_cmd='/bin/file'
6331 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6332 ;;
6333 sni)
6334 lt_cv_file_magic_cmd='/bin/file'
6335 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6336 lt_cv_file_magic_test_file=/lib/libc.so
6337 ;;
6338 siemens)
6339 lt_cv_deplibs_check_method=pass_all
6340 ;;
6341 pc)
6342 lt_cv_deplibs_check_method=pass_all
6343 ;;
6344 esac
6345 ;;
d7040cdb 6346
7357c5b6
AM
6347tpf*)
6348 lt_cv_deplibs_check_method=pass_all
6349 ;;
6350esac
d7040cdb 6351
7357c5b6
AM
6352fi
6353echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6354echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6355file_magic_cmd=$lt_cv_file_magic_cmd
6356deplibs_check_method=$lt_cv_deplibs_check_method
6357test -z "$deplibs_check_method" && deplibs_check_method=unknown
d7040cdb
SE
6358
6359
6360
7357c5b6
AM
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370if test -n "$ac_tool_prefix"; then
6371 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6372set dummy ${ac_tool_prefix}ar; ac_word=$2
6373echo "$as_me:$LINENO: checking for $ac_word" >&5
6374echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6375if test "${ac_cv_prog_AR+set}" = set; then
6376 echo $ECHO_N "(cached) $ECHO_C" >&6
6377else
6378 if test -n "$AR"; then
6379 ac_cv_prog_AR="$AR" # Let the user override the test.
6380else
6381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6382for as_dir in $PATH
6383do
6384 IFS=$as_save_IFS
6385 test -z "$as_dir" && as_dir=.
6386 for ac_exec_ext in '' $ac_executable_extensions; do
6387 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6388 ac_cv_prog_AR="${ac_tool_prefix}ar"
6389 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6390 break 2
ce2cded5
L
6391 fi
6392done
7357c5b6 6393done
d7040cdb 6394
42ecbf5e 6395fi
ce2cded5 6396fi
7357c5b6
AM
6397AR=$ac_cv_prog_AR
6398if test -n "$AR"; then
6399 echo "$as_me:$LINENO: result: $AR" >&5
6400echo "${ECHO_T}$AR" >&6
42ecbf5e 6401else
7357c5b6
AM
6402 echo "$as_me:$LINENO: result: no" >&5
6403echo "${ECHO_T}no" >&6
42ecbf5e
DJ
6404fi
6405
7357c5b6
AM
6406fi
6407if test -z "$ac_cv_prog_AR"; then
6408 ac_ct_AR=$AR
6409 # Extract the first word of "ar", so it can be a program name with args.
6410set dummy ar; ac_word=$2
6411echo "$as_me:$LINENO: checking for $ac_word" >&5
6412echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6413if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6414 echo $ECHO_N "(cached) $ECHO_C" >&6
6415else
6416 if test -n "$ac_ct_AR"; then
6417 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6418else
6419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6420for as_dir in $PATH
6421do
6422 IFS=$as_save_IFS
6423 test -z "$as_dir" && as_dir=.
6424 for ac_exec_ext in '' $ac_executable_extensions; do
6425 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6426 ac_cv_prog_ac_ct_AR="ar"
6427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6428 break 2
6429 fi
6430done
6431done
42ecbf5e 6432
7357c5b6
AM
6433 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6434fi
6435fi
6436ac_ct_AR=$ac_cv_prog_ac_ct_AR
6437if test -n "$ac_ct_AR"; then
6438 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6439echo "${ECHO_T}$ac_ct_AR" >&6
6440else
6441 echo "$as_me:$LINENO: result: no" >&5
6442echo "${ECHO_T}no" >&6
6443fi
d7040cdb 6444
7357c5b6
AM
6445 AR=$ac_ct_AR
6446else
6447 AR="$ac_cv_prog_AR"
6448fi
d7040cdb 6449
7357c5b6
AM
6450test -z "$AR" && AR=ar
6451test -z "$AR_FLAGS" && AR_FLAGS=cru
d7040cdb
SE
6452
6453
6454
20e95c23 6455
d7040cdb 6456
d7040cdb
SE
6457
6458
6459
6460
6461
6462
7357c5b6
AM
6463if test -n "$ac_tool_prefix"; then
6464 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6465set dummy ${ac_tool_prefix}strip; ac_word=$2
6466echo "$as_me:$LINENO: checking for $ac_word" >&5
6467echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6468if test "${ac_cv_prog_STRIP+set}" = set; then
6469 echo $ECHO_N "(cached) $ECHO_C" >&6
6470else
6471 if test -n "$STRIP"; then
6472 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6473else
6474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6475for as_dir in $PATH
6476do
6477 IFS=$as_save_IFS
6478 test -z "$as_dir" && as_dir=.
6479 for ac_exec_ext in '' $ac_executable_extensions; do
6480 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6481 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6483 break 2
ce2cded5 6484 fi
7357c5b6
AM
6485done
6486done
d7040cdb 6487
7357c5b6
AM
6488fi
6489fi
6490STRIP=$ac_cv_prog_STRIP
6491if test -n "$STRIP"; then
6492 echo "$as_me:$LINENO: result: $STRIP" >&5
6493echo "${ECHO_T}$STRIP" >&6
6494else
6495 echo "$as_me:$LINENO: result: no" >&5
6496echo "${ECHO_T}no" >&6
6497fi
6498
6499fi
6500if test -z "$ac_cv_prog_STRIP"; then
6501 ac_ct_STRIP=$STRIP
6502 # Extract the first word of "strip", so it can be a program name with args.
6503set dummy strip; ac_word=$2
6504echo "$as_me:$LINENO: checking for $ac_word" >&5
6505echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6506if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6507 echo $ECHO_N "(cached) $ECHO_C" >&6
6508else
6509 if test -n "$ac_ct_STRIP"; then
6510 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6511else
6512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6513for as_dir in $PATH
6514do
6515 IFS=$as_save_IFS
6516 test -z "$as_dir" && as_dir=.
6517 for ac_exec_ext in '' $ac_executable_extensions; do
6518 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6519 ac_cv_prog_ac_ct_STRIP="strip"
6520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6521 break 2
ce2cded5 6522 fi
7357c5b6
AM
6523done
6524done
d7040cdb 6525
7357c5b6
AM
6526 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6527fi
6528fi
6529ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6530if test -n "$ac_ct_STRIP"; then
6531 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6532echo "${ECHO_T}$ac_ct_STRIP" >&6
20e95c23 6533else
7357c5b6
AM
6534 echo "$as_me:$LINENO: result: no" >&5
6535echo "${ECHO_T}no" >&6
6536fi
d7040cdb 6537
7357c5b6
AM
6538 STRIP=$ac_ct_STRIP
6539else
6540 STRIP="$ac_cv_prog_STRIP"
6541fi
d7040cdb 6542
7357c5b6 6543test -z "$STRIP" && STRIP=:
d7040cdb 6544
d7040cdb
SE
6545
6546
6547
d7040cdb 6548
7357c5b6
AM
6549
6550if test -n "$ac_tool_prefix"; then
6551 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6552set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6553echo "$as_me:$LINENO: checking for $ac_word" >&5
6554echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6555if test "${ac_cv_prog_RANLIB+set}" = set; then
ce2cded5
L
6556 echo $ECHO_N "(cached) $ECHO_C" >&6
6557else
7357c5b6
AM
6558 if test -n "$RANLIB"; then
6559 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6560else
6561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6562for as_dir in $PATH
ce2cded5 6563do
7357c5b6
AM
6564 IFS=$as_save_IFS
6565 test -z "$as_dir" && as_dir=.
6566 for ac_exec_ext in '' $ac_executable_extensions; do
6567 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6568 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6570 break 2
ce2cded5 6571 fi
7357c5b6
AM
6572done
6573done
6574
ce2cded5 6575fi
7357c5b6
AM
6576fi
6577RANLIB=$ac_cv_prog_RANLIB
6578if test -n "$RANLIB"; then
6579 echo "$as_me:$LINENO: result: $RANLIB" >&5
6580echo "${ECHO_T}$RANLIB" >&6
ce2cded5 6581else
7357c5b6
AM
6582 echo "$as_me:$LINENO: result: no" >&5
6583echo "${ECHO_T}no" >&6
ce2cded5 6584fi
d7040cdb 6585
7357c5b6
AM
6586fi
6587if test -z "$ac_cv_prog_RANLIB"; then
6588 ac_ct_RANLIB=$RANLIB
6589 # Extract the first word of "ranlib", so it can be a program name with args.
6590set dummy ranlib; ac_word=$2
6591echo "$as_me:$LINENO: checking for $ac_word" >&5
6592echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6593if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6594 echo $ECHO_N "(cached) $ECHO_C" >&6
ce2cded5 6595else
7357c5b6
AM
6596 if test -n "$ac_ct_RANLIB"; then
6597 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6598else
6599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6600for as_dir in $PATH
6601do
6602 IFS=$as_save_IFS
6603 test -z "$as_dir" && as_dir=.
6604 for ac_exec_ext in '' $ac_executable_extensions; do
6605 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6606 ac_cv_prog_ac_ct_RANLIB="ranlib"
6607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6608 break 2
6609 fi
6610done
6611done
6612
6613 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
ce2cded5 6614fi
7357c5b6
AM
6615fi
6616ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6617if test -n "$ac_ct_RANLIB"; then
6618 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6619echo "${ECHO_T}$ac_ct_RANLIB" >&6
ce2cded5 6620else
7357c5b6
AM
6621 echo "$as_me:$LINENO: result: no" >&5
6622echo "${ECHO_T}no" >&6
ce2cded5 6623fi
d7040cdb 6624
7357c5b6
AM
6625 RANLIB=$ac_ct_RANLIB
6626else
6627 RANLIB="$ac_cv_prog_RANLIB"
ce2cded5 6628fi
d7040cdb 6629
7357c5b6 6630test -z "$RANLIB" && RANLIB=:
d7040cdb 6631
7357c5b6
AM
6632
6633
6634
6635
6636
6637# Determine commands to create old-style static archives.
6638old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6639old_postinstall_cmds='chmod 644 $oldlib'
6640old_postuninstall_cmds=
6641
6642if test -n "$RANLIB"; then
6643 case $host_os in
6644 openbsd*)
6645 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6646 ;;
6647 *)
6648 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6649 ;;
6650 esac
6651 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
ce2cded5 6652fi
7357c5b6
AM
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687# If no C compiler was specified, use CC.
6688LTCC=${LTCC-"$CC"}
6689
6690# If no C compiler flags were specified, use CFLAGS.
6691LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6692
6693# Allow CC to be a program name with arguments.
6694compiler=$CC
6695
6696
6697# Check for command to grab the raw symbol name followed by C symbol from nm.
6698echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6699echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6700if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6701 echo $ECHO_N "(cached) $ECHO_C" >&6
ce2cded5 6702else
d7040cdb 6703
7357c5b6
AM
6704# These are sane defaults that work on at least a few old systems.
6705# [They come from Ultrix. What could be older than Ultrix?!! ;)]
d7040cdb 6706
7357c5b6
AM
6707# Character class describing NM global symbol codes.
6708symcode='[BCDEGRST]'
6709
6710# Regexp to match symbols that can be accessed directly from C.
6711sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6712
6713# Define system-specific variables.
6714case $host_os in
6715aix*)
6716 symcode='[BCDT]'
6717 ;;
6718cygwin* | mingw* | pw32*)
6719 symcode='[ABCDGISTW]'
6720 ;;
6721hpux*)
6722 if test "$host_cpu" = ia64; then
6723 symcode='[ABCDEGRST]'
ce2cded5 6724 fi
7357c5b6
AM
6725 ;;
6726irix* | nonstopux*)
6727 symcode='[BCDEGRST]'
6728 ;;
6729osf*)
6730 symcode='[BCDEGQRST]'
6731 ;;
6732solaris*)
6733 symcode='[BDRT]'
6734 ;;
6735sco3.2v5*)
6736 symcode='[DT]'
6737 ;;
6738sysv4.2uw2*)
6739 symcode='[DT]'
6740 ;;
6741sysv5* | sco5v6* | unixware* | OpenUNIX*)
6742 symcode='[ABDT]'
6743 ;;
6744sysv4)
6745 symcode='[DFNSTU]'
6746 ;;
6747esac
d7040cdb 6748
7357c5b6
AM
6749# If we're using GNU nm, then use its standard symbol codes.
6750case `$NM -V 2>&1` in
6751*GNU* | *'with BFD'*)
6752 symcode='[ABCDGIRSTW]' ;;
6753esac
d7040cdb 6754
7357c5b6
AM
6755# Transform an extracted symbol line into a proper C declaration.
6756# Some systems (esp. on ia64) link data and code symbols differently,
6757# so use this general approach.
6758lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6759
6760# Transform an extracted symbol line into symbol name and symbol address
6761lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6762
6763# Handle CRLF in mingw tool chain
6764opt_cr=
6765case $build_os in
6766mingw*)
6767 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6768 ;;
6769esac
d7040cdb 6770
7357c5b6
AM
6771# Try without a prefix underscore, then with it.
6772for ac_symprfx in "" "_"; do
d7040cdb 6773
7357c5b6
AM
6774 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6775 symxfrm="\\1 $ac_symprfx\\2 \\2"
d7040cdb 6776
7357c5b6
AM
6777 # Write the raw and C identifiers.
6778 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6779 # Fake it for dumpbin and say T for any non-static function
6780 # and D for any global variable.
6781 # Also find C++ and __fastcall symbols from MSVC++,
6782 # which start with @ or ?.
6783 lt_cv_sys_global_symbol_pipe="$AWK '"\
6784" {last_section=section; section=\$ 3};"\
6785" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6786" \$ 0!~/External *\|/{next};"\
6787" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6788" {if(hide[section]) next};"\
6789" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6790" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6791" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6792" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6793" ' prfx=^$ac_symprfx"
6794 else
6795 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6796 fi
d7040cdb 6797
7357c5b6
AM
6798 # Check to see that the pipe works correctly.
6799 pipe_works=no
d7040cdb 6800
7357c5b6
AM
6801 rm -f conftest*
6802 cat > conftest.$ac_ext <<_LT_EOF
6803#ifdef __cplusplus
6804extern "C" {
6805#endif
6806char nm_test_var;
6807void nm_test_func(void);
6808void nm_test_func(void){}
6809#ifdef __cplusplus
20e95c23 6810}
7357c5b6
AM
6811#endif
6812int main(){nm_test_var='a';nm_test_func();return(0);}
6813_LT_EOF
6814
6815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6816 (eval $ac_compile) 2>&5
20e95c23
DJ
6817 ac_status=$?
6818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357c5b6
AM
6819 (exit $ac_status); }; then
6820 # Now try to grab the symbols.
6821 nlist=conftest.nm
6822 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6823 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
20e95c23
DJ
6824 ac_status=$?
6825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357c5b6
AM
6826 (exit $ac_status); } && test -s "$nlist"; then
6827 # Try sorting and uniquifying the output.
6828 if sort "$nlist" | uniq > "$nlist"T; then
6829 mv -f "$nlist"T "$nlist"
6830 else
6831 rm -f "$nlist"T
6832 fi
d7040cdb 6833
7357c5b6
AM
6834 # Make sure that we snagged all the symbols we need.
6835 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6836 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6837 cat <<_LT_EOF > conftest.$ac_ext
6838#ifdef __cplusplus
6839extern "C" {
6840#endif
ce2cded5 6841
7357c5b6
AM
6842_LT_EOF
6843 # Now generate the symbol file.
6844 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
ce2cded5 6845
7357c5b6 6846 cat <<_LT_EOF >> conftest.$ac_ext
42ecbf5e 6847
7357c5b6
AM
6848/* The mapping between symbol names and symbols. */
6849const struct {
6850 const char *name;
6851 void *address;
6852}
6853lt__PROGRAM__LTX_preloaded_symbols[] =
6854{
6855 { "@PROGRAM@", (void *) 0 },
6856_LT_EOF
6857 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6858 cat <<\_LT_EOF >> conftest.$ac_ext
6859 {0, (void *) 0}
6860};
d7040cdb 6861
7357c5b6
AM
6862/* This works around a problem in FreeBSD linker */
6863#ifdef FREEBSD_WORKAROUND
6864static const void *lt_preloaded_setup() {
6865 return lt__PROGRAM__LTX_preloaded_symbols;
6866}
ce2cded5 6867#endif
42ecbf5e 6868
7357c5b6 6869#ifdef __cplusplus
ce2cded5 6870}
7357c5b6
AM
6871#endif
6872_LT_EOF
6873 # Now try linking the two files.
6874 mv conftest.$ac_objext conftstm.$ac_objext
6875 lt_save_LIBS="$LIBS"
6876 lt_save_CFLAGS="$CFLAGS"
6877 LIBS="conftstm.$ac_objext"
6878 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ce2cded5
L
6880 (eval $ac_link) 2>&5
6881 ac_status=$?
6882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357c5b6
AM
6883 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6884 pipe_works=yes
6885 fi
6886 LIBS="$lt_save_LIBS"
6887 CFLAGS="$lt_save_CFLAGS"
6888 else
6889 echo "cannot find nm_test_func in $nlist" >&5
6890 fi
6891 else
6892 echo "cannot find nm_test_var in $nlist" >&5
6893 fi
6894 else
6895 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6896 fi
6897 else
6898 echo "$progname: failed program was:" >&5
6899 cat conftest.$ac_ext >&5
6900 fi
6901 rm -f conftest* conftst*
6902
6903 # Do not use the global_symbol_pipe unless it works.
6904 if test "$pipe_works" = yes; then
6905 break
6906 else
6907 lt_cv_sys_global_symbol_pipe=
6908 fi
6909done
42ecbf5e 6910
ce2cded5 6911fi
7357c5b6
AM
6912
6913if test -z "$lt_cv_sys_global_symbol_pipe"; then
6914 lt_cv_sys_global_symbol_to_cdecl=
ce2cded5 6915fi
7357c5b6
AM
6916if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6917 echo "$as_me:$LINENO: result: failed" >&5
6918echo "${ECHO_T}failed" >&6
6919else
6920 echo "$as_me:$LINENO: result: ok" >&5
6921echo "${ECHO_T}ok" >&6
ce2cded5 6922fi
e5a52504 6923
d7040cdb 6924
e5a52504 6925
d7040cdb 6926
d7040cdb 6927
d7040cdb 6928
d7040cdb 6929
d7040cdb 6930
d7040cdb 6931
d7040cdb 6932
d7040cdb 6933
d7040cdb 6934
7357c5b6
AM
6935
6936
6937
6938
6939
6940# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6941if test "${enable_libtool_lock+set}" = set; then
6942 enableval="$enable_libtool_lock"
6943
6944fi;
6945test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6946
6947# Some flags need to be propagated to the compiler or linker for good
6948# libtool support.
6949case $host in
6950ia64-*-hpux*)
6951 # Find out which ABI we are using.
6952 echo 'int i;' > conftest.$ac_ext
6953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6954 (eval $ac_compile) 2>&5
6955 ac_status=$?
6956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957 (exit $ac_status); }; then
6958 case `/usr/bin/file conftest.$ac_objext` in
6959 *ELF-32*)
6960 HPUX_IA64_MODE="32"
6961 ;;
6962 *ELF-64*)
6963 HPUX_IA64_MODE="64"
6964 ;;
6965 esac
6966 fi
6967 rm -rf conftest*
6968 ;;
6969*-*-irix6*)
6970 # Find out which ABI we are using.
da594c4a 6971 echo '#line 6606 "configure"' > conftest.$ac_ext
7357c5b6
AM
6972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6973 (eval $ac_compile) 2>&5
6974 ac_status=$?
6975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6976 (exit $ac_status); }; then
6977 if test "$lt_cv_prog_gnu_ld" = yes; then
6978 case `/usr/bin/file conftest.$ac_objext` in
6979 *32-bit*)
6980 LD="${LD-ld} -melf32bsmip"
6981 ;;
6982 *N32*)
6983 LD="${LD-ld} -melf32bmipn32"
6984 ;;
6985 *64-bit*)
6986 LD="${LD-ld} -melf64bmip"
6987 ;;
6988 esac
6989 else
6990 case `/usr/bin/file conftest.$ac_objext` in
6991 *32-bit*)
6992 LD="${LD-ld} -32"
6993 ;;
6994 *N32*)
6995 LD="${LD-ld} -n32"
6996 ;;
6997 *64-bit*)
6998 LD="${LD-ld} -64"
6999 ;;
7000 esac
7001 fi
7002 fi
7003 rm -rf conftest*
7004 ;;
7005
7006x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7007s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7008 # Find out which ABI we are using.
7009 echo 'int i;' > conftest.$ac_ext
7010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7011 (eval $ac_compile) 2>&5
7012 ac_status=$?
7013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7014 (exit $ac_status); }; then
7015 case `/usr/bin/file conftest.o` in
7016 *32-bit*)
7017 case $host in
7018 x86_64-*kfreebsd*-gnu)
7019 LD="${LD-ld} -m elf_i386_fbsd"
7020 ;;
7021 x86_64-*linux*)
7022 LD="${LD-ld} -m elf_i386"
7023 ;;
7024 ppc64-*linux*|powerpc64-*linux*)
7025 LD="${LD-ld} -m elf32ppclinux"
7026 ;;
7027 s390x-*linux*)
7028 LD="${LD-ld} -m elf_s390"
7029 ;;
7030 sparc64-*linux*)
7031 LD="${LD-ld} -m elf32_sparc"
7032 ;;
7033 esac
7034 ;;
7035 *64-bit*)
7036 case $host in
7037 x86_64-*kfreebsd*-gnu)
7038 LD="${LD-ld} -m elf_x86_64_fbsd"
7039 ;;
7040 x86_64-*linux*)
7041 LD="${LD-ld} -m elf_x86_64"
7042 ;;
7043 ppc*-*linux*|powerpc*-*linux*)
7044 LD="${LD-ld} -m elf64ppc"
7045 ;;
7046 s390*-*linux*|s390*-*tpf*)
7047 LD="${LD-ld} -m elf64_s390"
7048 ;;
7049 sparc*-*linux*)
7050 LD="${LD-ld} -m elf64_sparc"
7051 ;;
7052 esac
7053 ;;
7054 esac
7055 fi
7056 rm -rf conftest*
7057 ;;
7058
7059*-*-sco3.2v5*)
7060 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7061 SAVE_CFLAGS="$CFLAGS"
7062 CFLAGS="$CFLAGS -belf"
7063 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7064echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
7065if test "${lt_cv_cc_needs_belf+set}" = set; then
ce2cded5
L
7066 echo $ECHO_N "(cached) $ECHO_C" >&6
7067else
7357c5b6
AM
7068 ac_ext=c
7069ac_cpp='$CPP $CPPFLAGS'
7070ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7071ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7072ac_compiler_gnu=$ac_cv_c_compiler_gnu
7073
7074 cat >conftest.$ac_ext <<_ACEOF
ce2cded5
L
7075/* confdefs.h. */
7076_ACEOF
7077cat confdefs.h >>conftest.$ac_ext
7078cat >>conftest.$ac_ext <<_ACEOF
7079/* end confdefs.h. */
d7040cdb 7080
7357c5b6
AM
7081int
7082main ()
7083{
7084
7085 ;
7086 return 0;
7087}
ce2cded5 7088_ACEOF
7357c5b6
AM
7089rm -f conftest.$ac_objext conftest$ac_exeext
7090if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7091 (eval $ac_link) 2>conftest.er1
ce2cded5
L
7092 ac_status=$?
7093 grep -v '^ *+' conftest.er1 >conftest.err
7094 rm -f conftest.er1
7095 cat conftest.err >&5
7096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7097 (exit $ac_status); } &&
7357c5b6
AM
7098 { ac_try='test -z "$ac_c_werror_flag"
7099 || test ! -s conftest.err'
ce2cded5
L
7100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7101 (eval $ac_try) 2>&5
7102 ac_status=$?
7103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7104 (exit $ac_status); }; } &&
7357c5b6 7105 { ac_try='test -s conftest$ac_exeext'
ce2cded5
L
7106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7107 (eval $ac_try) 2>&5
7108 ac_status=$?
7109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7110 (exit $ac_status); }; }; then
7357c5b6 7111 lt_cv_cc_needs_belf=yes
ce2cded5
L
7112else
7113 echo "$as_me: failed program was:" >&5
7114sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 7115
7357c5b6 7116lt_cv_cc_needs_belf=no
ce2cded5 7117fi
7357c5b6
AM
7118rm -f conftest.err conftest.$ac_objext \
7119 conftest$ac_exeext conftest.$ac_ext
7120 ac_ext=c
7121ac_cpp='$CPP $CPPFLAGS'
7122ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7123ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7124ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 7125
ce2cded5 7126fi
7357c5b6
AM
7127echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7128echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
7129 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7130 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7131 CFLAGS="$SAVE_CFLAGS"
7132 fi
7133 ;;
7134sparc*-*solaris*)
7135 # Find out which ABI we are using.
7136 echo 'int i;' > conftest.$ac_ext
7137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7138 (eval $ac_compile) 2>&5
7139 ac_status=$?
7140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7141 (exit $ac_status); }; then
7142 case `/usr/bin/file conftest.o` in
7143 *64-bit*)
7144 case $lt_cv_prog_gnu_ld in
7145 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7146 *) LD="${LD-ld} -64" ;;
7147 esac
7148 ;;
7149 esac
7150 fi
7151 rm -rf conftest*
7152 ;;
7153esac
ce2cded5 7154
7357c5b6 7155need_locks="$enable_libtool_lock"
ce2cded5
L
7156
7157
7158for ac_header in dlfcn.h
7159do
7160as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7161echo "$as_me:$LINENO: checking for $ac_header" >&5
7162echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7163if eval "test \"\${$as_ac_Header+set}\" = set"; then
7164 echo $ECHO_N "(cached) $ECHO_C" >&6
7165else
7166 cat >conftest.$ac_ext <<_ACEOF
7167/* confdefs.h. */
42ecbf5e 7168_ACEOF
ce2cded5
L
7169cat confdefs.h >>conftest.$ac_ext
7170cat >>conftest.$ac_ext <<_ACEOF
7171/* end confdefs.h. */
7172$ac_includes_default
7173
7174#include <$ac_header>
7175_ACEOF
7176rm -f conftest.$ac_objext
7177if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7178 (eval $ac_compile) 2>conftest.er1
42ecbf5e
DJ
7179 ac_status=$?
7180 grep -v '^ *+' conftest.er1 >conftest.err
7181 rm -f conftest.er1
7182 cat conftest.err >&5
7183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184 (exit $ac_status); } &&
7357c5b6
AM
7185 { ac_try='test -z "$ac_c_werror_flag"
7186 || test ! -s conftest.err'
42ecbf5e
DJ
7187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7188 (eval $ac_try) 2>&5
7189 ac_status=$?
7190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191 (exit $ac_status); }; } &&
ce2cded5 7192 { ac_try='test -s conftest.$ac_objext'
42ecbf5e
DJ
7193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7194 (eval $ac_try) 2>&5
7195 ac_status=$?
7196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7197 (exit $ac_status); }; }; then
ce2cded5 7198 eval "$as_ac_Header=yes"
252b5132 7199else
42ecbf5e
DJ
7200 echo "$as_me: failed program was:" >&5
7201sed 's/^/| /' conftest.$ac_ext >&5
7202
ce2cded5 7203eval "$as_ac_Header=no"
252b5132 7204fi
ce2cded5
L
7205rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7206fi
7207echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7208echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7209if test `eval echo '${'$as_ac_Header'}'` = yes; then
7210 cat >>confdefs.h <<_ACEOF
7211#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7212_ACEOF
d7040cdb 7213
ce2cded5 7214fi
d7040cdb 7215
ce2cded5 7216done
d7040cdb 7217
d7040cdb 7218
d7040cdb 7219
ce2cded5
L
7220# This can be used to rebuild libtool when needed
7221LIBTOOL_DEPS="$ltmain"
d7040cdb 7222
ce2cded5
L
7223# Always use our own libtool.
7224LIBTOOL='$(SHELL) $(top_builddir)/libtool'
d7040cdb 7225
d7040cdb 7226
d7040cdb 7227
d7040cdb 7228
d7040cdb 7229
d7040cdb 7230
d7040cdb 7231
d7040cdb 7232
d7040cdb 7233
d7040cdb 7234
d7040cdb 7235
d7040cdb 7236
d7040cdb 7237
d7040cdb 7238
d7040cdb 7239
d7040cdb 7240
d7040cdb
SE
7241
7242
7243
7244
7245
7246
7247
7248
7249
ce2cded5 7250test -z "$LN_S" && LN_S="ln -s"
d7040cdb
SE
7251
7252
7253
7254
7255
7256
d7040cdb
SE
7257
7258
7259
7260
7261
7262
7263
7264
ce2cded5
L
7265if test -n "${ZSH_VERSION+set}" ; then
7266 setopt NO_GLOB_SUBST
7267fi
d7040cdb 7268
ce2cded5
L
7269echo "$as_me:$LINENO: checking for objdir" >&5
7270echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7271if test "${lt_cv_objdir+set}" = set; then
7272 echo $ECHO_N "(cached) $ECHO_C" >&6
7273else
7274 rm -f .libs 2>/dev/null
7275mkdir .libs 2>/dev/null
7276if test -d .libs; then
7277 lt_cv_objdir=.libs
7278else
7279 # MS-DOS does not allow filenames that begin with a dot.
7280 lt_cv_objdir=_libs
7281fi
7282rmdir .libs 2>/dev/null
7283fi
7284echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7285echo "${ECHO_T}$lt_cv_objdir" >&6
7286objdir=$lt_cv_objdir
d7040cdb
SE
7287
7288
7289
7290
7291
ce2cded5
L
7292cat >>confdefs.h <<_ACEOF
7293#define LT_OBJDIR "$lt_cv_objdir/"
7294_ACEOF
d7040cdb
SE
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
ce2cded5
L
7312case $host_os in
7313aix3*)
7314 # AIX sometimes has problems with the GCC collect2 program. For some
7315 # reason, if we set the COLLECT_NAMES environment variable, the problems
7316 # vanish in a puff of smoke.
7317 if test "X${COLLECT_NAMES+set}" != Xset; then
7318 COLLECT_NAMES=
7319 export COLLECT_NAMES
7320 fi
7321 ;;
7322esac
d7040cdb 7323
ce2cded5
L
7324# Sed substitution that helps us do robust quoting. It backslashifies
7325# metacharacters that are still active within double-quoted strings.
7326sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
d7040cdb 7327
ce2cded5
L
7328# Same as above, but do not quote variable references.
7329double_quote_subst='s/\(["`\\]\)/\\\1/g'
d7040cdb 7330
ce2cded5
L
7331# Sed substitution to delay expansion of an escaped shell variable in a
7332# double_quote_subst'ed string.
7333delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
d7040cdb 7334
ce2cded5
L
7335# Sed substitution to delay expansion of an escaped single quote.
7336delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
d7040cdb 7337
ce2cded5
L
7338# Sed substitution to avoid accidental globbing in evaled expressions
7339no_glob_subst='s/\*/\\\*/g'
d7040cdb 7340
ce2cded5
L
7341# Global variables:
7342ofile=libtool
7343can_build_shared=yes
d7040cdb 7344
ce2cded5
L
7345# All known linkers require a `.a' archive for static linking (except MSVC,
7346# which needs '.lib').
7347libext=a
d7040cdb 7348
ce2cded5 7349with_gnu_ld="$lt_cv_prog_gnu_ld"
d7040cdb 7350
ce2cded5
L
7351old_CC="$CC"
7352old_CFLAGS="$CFLAGS"
d7040cdb 7353
ce2cded5
L
7354# Set sane defaults for various variables
7355test -z "$CC" && CC=cc
7356test -z "$LTCC" && LTCC=$CC
7357test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7358test -z "$LD" && LD=ld
7359test -z "$ac_objext" && ac_objext=o
d7040cdb 7360
ce2cded5
L
7361for cc_temp in $compiler""; do
7362 case $cc_temp in
7363 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7364 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7365 \-*) ;;
7366 *) break;;
7367 esac
7368done
7369cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
d7040cdb
SE
7370
7371
ce2cded5
L
7372# Only perform the check for file, if the check method requires it
7373test -z "$MAGIC_CMD" && MAGIC_CMD=file
7374case $deplibs_check_method in
7375file_magic*)
7376 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7377 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7378echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7379if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7380 echo $ECHO_N "(cached) $ECHO_C" >&6
7381else
7382 case $MAGIC_CMD in
7383[\\/*] | ?:[\\/]*)
7384 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7385 ;;
7386*)
7387 lt_save_MAGIC_CMD="$MAGIC_CMD"
7388 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7389 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7390 for ac_dir in $ac_dummy; do
7391 IFS="$lt_save_ifs"
7392 test -z "$ac_dir" && ac_dir=.
7393 if test -f $ac_dir/${ac_tool_prefix}file; then
7394 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7395 if test -n "$file_magic_test_file"; then
7396 case $deplibs_check_method in
7397 "file_magic "*)
7398 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7399 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7400 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7401 $EGREP "$file_magic_regex" > /dev/null; then
7402 :
7403 else
7404 cat <<_LT_EOF 1>&2
d7040cdb 7405
ce2cded5
L
7406*** Warning: the command libtool uses to detect shared libraries,
7407*** $file_magic_cmd, produces output that libtool cannot recognize.
7408*** The result is that libtool may fail to recognize shared libraries
7409*** as such. This will affect the creation of libtool libraries that
7410*** depend on shared libraries, but programs linked with such libtool
7411*** libraries will work regardless of this problem. Nevertheless, you
7412*** may want to report the problem to your system manager and/or to
7413*** bug-libtool@gnu.org
d7040cdb 7414
ce2cded5
L
7415_LT_EOF
7416 fi ;;
7417 esac
7418 fi
7419 break
7420 fi
7421 done
7422 IFS="$lt_save_ifs"
7423 MAGIC_CMD="$lt_save_MAGIC_CMD"
7424 ;;
7425esac
7426fi
d7040cdb 7427
ce2cded5
L
7428MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7429if test -n "$MAGIC_CMD"; then
7430 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7431echo "${ECHO_T}$MAGIC_CMD" >&6
7432else
7433 echo "$as_me:$LINENO: result: no" >&5
7434echo "${ECHO_T}no" >&6
7435fi
d7040cdb
SE
7436
7437
7438
7439
7440
ce2cded5
L
7441if test -z "$lt_cv_path_MAGIC_CMD"; then
7442 if test -n "$ac_tool_prefix"; then
7443 echo "$as_me:$LINENO: checking for file" >&5
7444echo $ECHO_N "checking for file... $ECHO_C" >&6
7445if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7446 echo $ECHO_N "(cached) $ECHO_C" >&6
7447else
7448 case $MAGIC_CMD in
7449[\\/*] | ?:[\\/]*)
7450 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7451 ;;
7452*)
7453 lt_save_MAGIC_CMD="$MAGIC_CMD"
7454 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7455 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7456 for ac_dir in $ac_dummy; do
7457 IFS="$lt_save_ifs"
7458 test -z "$ac_dir" && ac_dir=.
7459 if test -f $ac_dir/file; then
7460 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7461 if test -n "$file_magic_test_file"; then
7462 case $deplibs_check_method in
7463 "file_magic "*)
7464 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7465 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7466 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7467 $EGREP "$file_magic_regex" > /dev/null; then
7468 :
7469 else
7470 cat <<_LT_EOF 1>&2
d7040cdb 7471
ce2cded5
L
7472*** Warning: the command libtool uses to detect shared libraries,
7473*** $file_magic_cmd, produces output that libtool cannot recognize.
7474*** The result is that libtool may fail to recognize shared libraries
7475*** as such. This will affect the creation of libtool libraries that
7476*** depend on shared libraries, but programs linked with such libtool
7477*** libraries will work regardless of this problem. Nevertheless, you
7478*** may want to report the problem to your system manager and/or to
7479*** bug-libtool@gnu.org
d7040cdb 7480
ce2cded5
L
7481_LT_EOF
7482 fi ;;
7483 esac
7484 fi
7485 break
7486 fi
7487 done
7488 IFS="$lt_save_ifs"
7489 MAGIC_CMD="$lt_save_MAGIC_CMD"
7490 ;;
7491esac
7492fi
d7040cdb 7493
ce2cded5
L
7494MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7495if test -n "$MAGIC_CMD"; then
7496 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7497echo "${ECHO_T}$MAGIC_CMD" >&6
7498else
7499 echo "$as_me:$LINENO: result: no" >&5
7500echo "${ECHO_T}no" >&6
7501fi
d7040cdb
SE
7502
7503
ce2cded5
L
7504 else
7505 MAGIC_CMD=:
7506 fi
7507fi
d7040cdb 7508
ce2cded5
L
7509 fi
7510 ;;
7511esac
d7040cdb 7512
ce2cded5 7513# Use C for the default configuration in the libtool script
d7040cdb 7514
ce2cded5
L
7515lt_save_CC="$CC"
7516ac_ext=c
7517ac_cpp='$CPP $CPPFLAGS'
7518ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7519ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7520ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb
SE
7521
7522
ce2cded5
L
7523# Source file extension for C test sources.
7524ac_ext=c
d7040cdb 7525
ce2cded5
L
7526# Object file extension for compiled C test sources.
7527objext=o
7528objext=$objext
d7040cdb 7529
ce2cded5
L
7530# Code to be used in simple compile tests
7531lt_simple_compile_test_code="int some_variable = 0;"
d7040cdb 7532
ce2cded5
L
7533# Code to be used in simple link tests
7534lt_simple_link_test_code='int main(){return(0);}'
d7040cdb
SE
7535
7536
7537
7538
7539
7540
7541
ce2cded5
L
7542# If no C compiler was specified, use CC.
7543LTCC=${LTCC-"$CC"}
d7040cdb 7544
ce2cded5
L
7545# If no C compiler flags were specified, use CFLAGS.
7546LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d7040cdb 7547
ce2cded5
L
7548# Allow CC to be a program name with arguments.
7549compiler=$CC
d7040cdb 7550
ce2cded5
L
7551# Save the default compiler, since it gets overwritten when the other
7552# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7553compiler_DEFAULT=$CC
d7040cdb 7554
ce2cded5
L
7555# save warnings/boilerplate of simple test code
7556ac_outfile=conftest.$ac_objext
7557echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7558eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7559_lt_compiler_boilerplate=`cat conftest.err`
7560$RM conftest*
d7040cdb 7561
ce2cded5
L
7562ac_outfile=conftest.$ac_objext
7563echo "$lt_simple_link_test_code" >conftest.$ac_ext
7564eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7565_lt_linker_boilerplate=`cat conftest.err`
7566$RM conftest*
d7040cdb
SE
7567
7568
ce2cded5
L
7569## CAVEAT EMPTOR:
7570## There is no encapsulation within the following macros, do not change
7571## the running order or otherwise move them around unless you know exactly
7572## what you are doing...
7573if test -n "$compiler"; then
d7040cdb 7574
ce2cded5 7575lt_prog_compiler_no_builtin_flag=
d7040cdb 7576
ce2cded5
L
7577if test "$GCC" = yes; then
7578 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
d7040cdb 7579
ce2cded5
L
7580 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7581echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7582if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7583 echo $ECHO_N "(cached) $ECHO_C" >&6
7584else
7585 lt_cv_prog_compiler_rtti_exceptions=no
7586 ac_outfile=conftest.$ac_objext
7587 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7588 lt_compiler_flag="-fno-rtti -fno-exceptions"
7589 # Insert the option either (1) after the last *FLAGS variable, or
7590 # (2) before a word containing "conftest.", or (3) at the end.
7591 # Note that $ac_compile itself does not contain backslashes and begins
7592 # with a dollar sign (not a hyphen), so the echo should work correctly.
7593 # The option is referenced via a variable to avoid confusing sed.
7594 lt_compile=`echo "$ac_compile" | $SED \
7595 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7596 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7597 -e 's:$: $lt_compiler_flag:'`
da594c4a 7598 (eval echo "\"\$as_me:7233: $lt_compile\"" >&5)
ce2cded5
L
7599 (eval "$lt_compile" 2>conftest.err)
7600 ac_status=$?
7601 cat conftest.err >&5
da594c4a 7602 echo "$as_me:7237: \$? = $ac_status" >&5
ce2cded5
L
7603 if (exit $ac_status) && test -s "$ac_outfile"; then
7604 # The compiler can only warn and ignore the option if not recognized
7605 # So say no if there are warnings other than the usual output.
7606 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7607 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7608 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7609 lt_cv_prog_compiler_rtti_exceptions=yes
7610 fi
7611 fi
7612 $RM conftest*
d7040cdb 7613
ce2cded5
L
7614fi
7615echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7616echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
d7040cdb 7617
ce2cded5
L
7618if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7619 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7620else
7621 :
7622fi
d7040cdb 7623
ce2cded5 7624fi
d7040cdb
SE
7625
7626
7627
7628
7629
7630
ce2cded5
L
7631 lt_prog_compiler_wl=
7632lt_prog_compiler_pic=
7633lt_prog_compiler_static=
d7040cdb 7634
ce2cded5
L
7635echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7636echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
d7040cdb 7637
ce2cded5
L
7638 if test "$GCC" = yes; then
7639 lt_prog_compiler_wl='-Wl,'
7640 lt_prog_compiler_static='-static'
d7040cdb 7641
ce2cded5
L
7642 case $host_os in
7643 aix*)
7644 # All AIX code is PIC.
7645 if test "$host_cpu" = ia64; then
7646 # AIX 5 now supports IA64 processor
7647 lt_prog_compiler_static='-Bstatic'
7648 fi
7649 ;;
d7040cdb 7650
ce2cded5
L
7651 amigaos*)
7652 if test "$host_cpu" = m68k; then
7653 # FIXME: we need at least 68020 code to build shared libraries, but
7654 # adding the `-m68020' flag to GCC prevents building anything better,
7655 # like `-m68040'.
7656 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7657 fi
7658 ;;
d7040cdb 7659
ce2cded5
L
7660 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7661 # PIC is the default for these OSes.
7662 ;;
d7040cdb 7663
ce2cded5
L
7664 mingw* | cygwin* | pw32* | os2*)
7665 # This hack is so that the source file can tell whether it is being
7666 # built for inclusion in a dll (and should export symbols for example).
7667 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7668 # (--disable-auto-import) libraries
7669 lt_prog_compiler_pic='-DDLL_EXPORT'
7670 ;;
d7040cdb 7671
ce2cded5
L
7672 darwin* | rhapsody*)
7673 # PIC is the default on this platform
7674 # Common symbols not allowed in MH_DYLIB files
7675 lt_prog_compiler_pic='-fno-common'
7676 ;;
d7040cdb 7677
ce2cded5
L
7678 hpux*)
7679 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7680 # not for PA HP-UX.
7681 case $host_cpu in
7682 hppa*64*|ia64*)
7683 # +Z the default
7684 ;;
7685 *)
7686 lt_prog_compiler_pic='-fPIC'
7687 ;;
7688 esac
7689 ;;
d7040cdb 7690
ce2cded5
L
7691 interix[3-9]*)
7692 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7693 # Instead, we relocate shared libraries at runtime.
7694 ;;
d7040cdb 7695
ce2cded5
L
7696 msdosdjgpp*)
7697 # Just because we use GCC doesn't mean we suddenly get shared libraries
7698 # on systems that don't support them.
7699 lt_prog_compiler_can_build_shared=no
7700 enable_shared=no
7701 ;;
d7040cdb 7702
ce2cded5
L
7703 *nto* | *qnx*)
7704 # QNX uses GNU C++, but need to define -shared option too, otherwise
7705 # it will coredump.
7706 lt_prog_compiler_pic='-fPIC -shared'
7707 ;;
d7040cdb 7708
ce2cded5
L
7709 sysv4*MP*)
7710 if test -d /usr/nec; then
7711 lt_prog_compiler_pic=-Kconform_pic
7712 fi
7713 ;;
d7040cdb 7714
ce2cded5
L
7715 *)
7716 lt_prog_compiler_pic='-fPIC'
7717 ;;
7718 esac
7719 else
7720 # PORTME Check for flag to pass linker flags through the system compiler.
7721 case $host_os in
7722 aix*)
7723 lt_prog_compiler_wl='-Wl,'
7724 if test "$host_cpu" = ia64; then
7725 # AIX 5 now supports IA64 processor
7726 lt_prog_compiler_static='-Bstatic'
7727 else
7728 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7729 fi
7730 ;;
7731 darwin*)
7732 # PIC is the default on this platform
7733 # Common symbols not allowed in MH_DYLIB files
7734 case $cc_basename in
7735 xlc*)
7736 lt_prog_compiler_pic='-qnocommon'
7737 lt_prog_compiler_wl='-Wl,'
7738 ;;
7739 esac
7740 ;;
d7040cdb 7741
ce2cded5
L
7742 mingw* | cygwin* | pw32* | os2*)
7743 # This hack is so that the source file can tell whether it is being
7744 # built for inclusion in a dll (and should export symbols for example).
7745 lt_prog_compiler_pic='-DDLL_EXPORT'
7746 ;;
d7040cdb 7747
ce2cded5
L
7748 hpux9* | hpux10* | hpux11*)
7749 lt_prog_compiler_wl='-Wl,'
7750 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7751 # not for PA HP-UX.
7752 case $host_cpu in
7753 hppa*64*|ia64*)
7754 # +Z the default
7755 ;;
7756 *)
7757 lt_prog_compiler_pic='+Z'
7758 ;;
7759 esac
7760 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7761 lt_prog_compiler_static='${wl}-a ${wl}archive'
7762 ;;
d7040cdb 7763
ce2cded5
L
7764 irix5* | irix6* | nonstopux*)
7765 lt_prog_compiler_wl='-Wl,'
7766 # PIC (with -KPIC) is the default.
7767 lt_prog_compiler_static='-non_shared'
7768 ;;
d7040cdb 7769
ce2cded5
L
7770 linux* | k*bsd*-gnu)
7771 case $cc_basename in
7772 icc* | ecc*)
7773 lt_prog_compiler_wl='-Wl,'
7774 lt_prog_compiler_pic='-KPIC'
7775 lt_prog_compiler_static='-static'
7776 ;;
7777 pgcc* | pgf77* | pgf90* | pgf95*)
7778 # Portland Group compilers (*not* the Pentium gcc compiler,
7779 # which looks to be a dead project)
7780 lt_prog_compiler_wl='-Wl,'
7781 lt_prog_compiler_pic='-fpic'
7782 lt_prog_compiler_static='-Bstatic'
7783 ;;
7784 ccc*)
7785 lt_prog_compiler_wl='-Wl,'
7786 # All Alpha code is PIC.
7787 lt_prog_compiler_static='-non_shared'
7788 ;;
7789 *)
7790 case `$CC -V 2>&1 | sed 5q` in
7791 *Sun\ C*)
7792 # Sun C 5.9
7793 lt_prog_compiler_pic='-KPIC'
7794 lt_prog_compiler_static='-Bstatic'
7795 lt_prog_compiler_wl='-Wl,'
7796 ;;
7797 *Sun\ F*)
7798 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7799 lt_prog_compiler_pic='-KPIC'
7800 lt_prog_compiler_static='-Bstatic'
7801 lt_prog_compiler_wl=''
7802 ;;
7803 esac
7804 ;;
7805 esac
7806 ;;
d7040cdb 7807
ce2cded5
L
7808 newsos6)
7809 lt_prog_compiler_pic='-KPIC'
7810 lt_prog_compiler_static='-Bstatic'
7811 ;;
d7040cdb 7812
ce2cded5
L
7813 *nto* | *qnx*)
7814 # QNX uses GNU C++, but need to define -shared option too, otherwise
7815 # it will coredump.
7816 lt_prog_compiler_pic='-fPIC -shared'
7817 ;;
d7040cdb 7818
ce2cded5
L
7819 osf3* | osf4* | osf5*)
7820 lt_prog_compiler_wl='-Wl,'
7821 # All OSF/1 code is PIC.
7822 lt_prog_compiler_static='-non_shared'
7823 ;;
d7040cdb 7824
ce2cded5
L
7825 rdos*)
7826 lt_prog_compiler_static='-non_shared'
7827 ;;
d7040cdb 7828
ce2cded5
L
7829 solaris*)
7830 lt_prog_compiler_pic='-KPIC'
7831 lt_prog_compiler_static='-Bstatic'
7832 case $cc_basename in
7833 f77* | f90* | f95*)
7834 lt_prog_compiler_wl='-Qoption ld ';;
7835 *)
7836 lt_prog_compiler_wl='-Wl,';;
7837 esac
7838 ;;
d7040cdb 7839
ce2cded5
L
7840 sunos4*)
7841 lt_prog_compiler_wl='-Qoption ld '
7842 lt_prog_compiler_pic='-PIC'
7843 lt_prog_compiler_static='-Bstatic'
7844 ;;
d7040cdb 7845
ce2cded5
L
7846 sysv4 | sysv4.2uw2* | sysv4.3*)
7847 lt_prog_compiler_wl='-Wl,'
7848 lt_prog_compiler_pic='-KPIC'
7849 lt_prog_compiler_static='-Bstatic'
7850 ;;
d7040cdb 7851
ce2cded5
L
7852 sysv4*MP*)
7853 if test -d /usr/nec ;then
7854 lt_prog_compiler_pic='-Kconform_pic'
7855 lt_prog_compiler_static='-Bstatic'
7856 fi
7857 ;;
d7040cdb 7858
ce2cded5
L
7859 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7860 lt_prog_compiler_wl='-Wl,'
7861 lt_prog_compiler_pic='-KPIC'
7862 lt_prog_compiler_static='-Bstatic'
7863 ;;
d7040cdb 7864
ce2cded5
L
7865 unicos*)
7866 lt_prog_compiler_wl='-Wl,'
7867 lt_prog_compiler_can_build_shared=no
7868 ;;
d7040cdb 7869
ce2cded5
L
7870 uts4*)
7871 lt_prog_compiler_pic='-pic'
7872 lt_prog_compiler_static='-Bstatic'
7873 ;;
d7040cdb 7874
ce2cded5
L
7875 *)
7876 lt_prog_compiler_can_build_shared=no
7877 ;;
7878 esac
7879 fi
d7040cdb 7880
ce2cded5
L
7881case $host_os in
7882 # For platforms which do not support PIC, -DPIC is meaningless:
7883 *djgpp*)
7884 lt_prog_compiler_pic=
7885 ;;
7886 *)
7887 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7888 ;;
7889esac
7890echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7891echo "${ECHO_T}$lt_prog_compiler_pic" >&6
d7040cdb
SE
7892
7893
7894
7895
7896
7897
ce2cded5
L
7898#
7899# Check to make sure the PIC flag actually works.
7900#
7901if test -n "$lt_prog_compiler_pic"; then
7902 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7903echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7904if test "${lt_prog_compiler_pic_works+set}" = set; then
7905 echo $ECHO_N "(cached) $ECHO_C" >&6
7906else
7907 lt_prog_compiler_pic_works=no
7908 ac_outfile=conftest.$ac_objext
7909 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7910 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7911 # Insert the option either (1) after the last *FLAGS variable, or
7912 # (2) before a word containing "conftest.", or (3) at the end.
7913 # Note that $ac_compile itself does not contain backslashes and begins
7914 # with a dollar sign (not a hyphen), so the echo should work correctly.
7915 # The option is referenced via a variable to avoid confusing sed.
7916 lt_compile=`echo "$ac_compile" | $SED \
7917 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7918 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7919 -e 's:$: $lt_compiler_flag:'`
da594c4a 7920 (eval echo "\"\$as_me:7555: $lt_compile\"" >&5)
ce2cded5
L
7921 (eval "$lt_compile" 2>conftest.err)
7922 ac_status=$?
7923 cat conftest.err >&5
da594c4a 7924 echo "$as_me:7559: \$? = $ac_status" >&5
ce2cded5
L
7925 if (exit $ac_status) && test -s "$ac_outfile"; then
7926 # The compiler can only warn and ignore the option if not recognized
7927 # So say no if there are warnings other than the usual output.
7928 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7929 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7930 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7931 lt_prog_compiler_pic_works=yes
7932 fi
7933 fi
7934 $RM conftest*
d7040cdb 7935
ce2cded5
L
7936fi
7937echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7938echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7939
7940if test x"$lt_prog_compiler_pic_works" = xyes; then
7941 case $lt_prog_compiler_pic in
7942 "" | " "*) ;;
7943 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7944 esac
7945else
7946 lt_prog_compiler_pic=
7947 lt_prog_compiler_can_build_shared=no
7948fi
7949
7950fi
d7040cdb
SE
7951
7952
7953
7954
7955
7956
ce2cded5
L
7957#
7958# Check to make sure the static flag actually works.
7959#
7960wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7961echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7962echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7963if test "${lt_prog_compiler_static_works+set}" = set; then
7964 echo $ECHO_N "(cached) $ECHO_C" >&6
7965else
7966 lt_prog_compiler_static_works=no
7967 save_LDFLAGS="$LDFLAGS"
7968 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7969 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7970 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7971 # The linker can only warn and ignore the option if not recognized
7972 # So say no if there are warnings
7973 if test -s conftest.err; then
7974 # Append any errors to the config.log.
7975 cat conftest.err 1>&5
7976 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7977 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7978 if diff conftest.exp conftest.er2 >/dev/null; then
7979 lt_prog_compiler_static_works=yes
7980 fi
7981 else
7982 lt_prog_compiler_static_works=yes
7983 fi
7984 fi
7985 $RM conftest*
7986 LDFLAGS="$save_LDFLAGS"
d7040cdb 7987
ce2cded5
L
7988fi
7989echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7990echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
d7040cdb 7991
ce2cded5
L
7992if test x"$lt_prog_compiler_static_works" = xyes; then
7993 :
7994else
7995 lt_prog_compiler_static=
7996fi
d7040cdb
SE
7997
7998
7999
8000
8001
8002
8003
ce2cded5
L
8004 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8005echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8006if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8007 echo $ECHO_N "(cached) $ECHO_C" >&6
8008else
8009 lt_cv_prog_compiler_c_o=no
8010 $RM -r conftest 2>/dev/null
8011 mkdir conftest
8012 cd conftest
8013 mkdir out
8014 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 8015
ce2cded5
L
8016 lt_compiler_flag="-o out/conftest2.$ac_objext"
8017 # Insert the option either (1) after the last *FLAGS variable, or
8018 # (2) before a word containing "conftest.", or (3) at the end.
8019 # Note that $ac_compile itself does not contain backslashes and begins
8020 # with a dollar sign (not a hyphen), so the echo should work correctly.
8021 lt_compile=`echo "$ac_compile" | $SED \
8022 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8023 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8024 -e 's:$: $lt_compiler_flag:'`
da594c4a 8025 (eval echo "\"\$as_me:7660: $lt_compile\"" >&5)
ce2cded5
L
8026 (eval "$lt_compile" 2>out/conftest.err)
8027 ac_status=$?
8028 cat out/conftest.err >&5
da594c4a 8029 echo "$as_me:7664: \$? = $ac_status" >&5
ce2cded5
L
8030 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8031 then
8032 # The compiler can only warn and ignore the option if not recognized
8033 # So say no if there are warnings
8034 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8035 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8036 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8037 lt_cv_prog_compiler_c_o=yes
8038 fi
8039 fi
8040 chmod u+w . 2>&5
8041 $RM conftest*
8042 # SGI C++ compiler will create directory out/ii_files/ for
8043 # template instantiation
8044 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8045 $RM out/* && rmdir out
8046 cd ..
8047 $RM -r conftest
8048 $RM conftest*
d7040cdb 8049
ce2cded5
L
8050fi
8051echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8052echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
d7040cdb
SE
8053
8054
8055
8056
8057
8058
ce2cded5
L
8059 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8060echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8061if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8062 echo $ECHO_N "(cached) $ECHO_C" >&6
8063else
8064 lt_cv_prog_compiler_c_o=no
8065 $RM -r conftest 2>/dev/null
8066 mkdir conftest
8067 cd conftest
8068 mkdir out
8069 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 8070
ce2cded5
L
8071 lt_compiler_flag="-o out/conftest2.$ac_objext"
8072 # Insert the option either (1) after the last *FLAGS variable, or
8073 # (2) before a word containing "conftest.", or (3) at the end.
8074 # Note that $ac_compile itself does not contain backslashes and begins
8075 # with a dollar sign (not a hyphen), so the echo should work correctly.
8076 lt_compile=`echo "$ac_compile" | $SED \
8077 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8078 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8079 -e 's:$: $lt_compiler_flag:'`
da594c4a 8080 (eval echo "\"\$as_me:7715: $lt_compile\"" >&5)
ce2cded5
L
8081 (eval "$lt_compile" 2>out/conftest.err)
8082 ac_status=$?
8083 cat out/conftest.err >&5
da594c4a 8084 echo "$as_me:7719: \$? = $ac_status" >&5
ce2cded5
L
8085 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8086 then
8087 # The compiler can only warn and ignore the option if not recognized
8088 # So say no if there are warnings
8089 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8090 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8091 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8092 lt_cv_prog_compiler_c_o=yes
8093 fi
8094 fi
8095 chmod u+w . 2>&5
8096 $RM conftest*
8097 # SGI C++ compiler will create directory out/ii_files/ for
8098 # template instantiation
8099 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8100 $RM out/* && rmdir out
8101 cd ..
8102 $RM -r conftest
8103 $RM conftest*
8104
8105fi
8106echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8107echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8108
8109
8110
8111
8112hard_links="nottested"
8113if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8114 # do not overwrite the value of need_locks provided by the user
8115 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8116echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8117 hard_links=yes
8118 $RM conftest*
8119 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8120 touch conftest.a
8121 ln conftest.a conftest.b 2>&5 || hard_links=no
8122 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8123 echo "$as_me:$LINENO: result: $hard_links" >&5
8124echo "${ECHO_T}$hard_links" >&6
8125 if test "$hard_links" = no; then
8126 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8127echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8128 need_locks=warn
d7040cdb 8129 fi
d7040cdb 8130else
ce2cded5 8131 need_locks=no
d7040cdb 8132fi
d7040cdb 8133
d7040cdb 8134
d7040cdb 8135
d7040cdb 8136
d7040cdb 8137
d7040cdb 8138
ce2cded5
L
8139 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8140echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
d7040cdb 8141
ce2cded5
L
8142 runpath_var=
8143 allow_undefined_flag=
8144 always_export_symbols=no
8145 archive_cmds=
8146 archive_expsym_cmds=
8147 compiler_needs_object=no
8148 enable_shared_with_static_runtimes=no
8149 export_dynamic_flag_spec=
8150 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8151 hardcode_automatic=no
8152 hardcode_direct=no
8153 hardcode_direct_absolute=no
8154 hardcode_libdir_flag_spec=
8155 hardcode_libdir_flag_spec_ld=
8156 hardcode_libdir_separator=
8157 hardcode_minus_L=no
8158 hardcode_shlibpath_var=unsupported
8159 inherit_rpath=no
8160 link_all_deplibs=unknown
8161 module_cmds=
8162 module_expsym_cmds=
8163 old_archive_from_new_cmds=
8164 old_archive_from_expsyms_cmds=
8165 thread_safe_flag_spec=
8166 whole_archive_flag_spec=
8167 # include_expsyms should be a list of space-separated symbols to be *always*
8168 # included in the symbol list
8169 include_expsyms=
8170 # exclude_expsyms can be an extended regexp of symbols to exclude
8171 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8172 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8173 # as well as any symbol that contains `d'.
8174 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8175 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8176 # platforms (ab)use it in PIC code, but their linkers get confused if
8177 # the symbol is explicitly referenced. Since portable code cannot
8178 # rely on this symbol name, it's probably fine to never include it in
8179 # preloaded symbol tables.
8180 extract_expsyms_cmds=
d7040cdb 8181
ce2cded5
L
8182 case $host_os in
8183 cygwin* | mingw* | pw32*)
8184 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8185 # When not using gcc, we currently assume that we are using
8186 # Microsoft Visual C++.
8187 if test "$GCC" != yes; then
8188 with_gnu_ld=no
8189 fi
d7040cdb 8190 ;;
ce2cded5
L
8191 interix*)
8192 # we just hope/assume this is gcc and not c89 (= MSVC++)
8193 with_gnu_ld=yes
8194 ;;
8195 openbsd*)
8196 with_gnu_ld=no
d7040cdb
SE
8197 ;;
8198 esac
d7040cdb 8199
ce2cded5
L
8200 ld_shlibs=yes
8201 if test "$with_gnu_ld" = yes; then
8202 # If archive_cmds runs LD, not CC, wlarc should be empty
8203 wlarc='${wl}'
d7040cdb 8204
ce2cded5
L
8205 # Set some defaults for GNU ld with shared library support. These
8206 # are reset later if shared libraries are not supported. Putting them
8207 # here allows them to be overridden if necessary.
8208 runpath_var=LD_RUN_PATH
8209 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8210 export_dynamic_flag_spec='${wl}--export-dynamic'
8211 # ancient GNU ld didn't support --whole-archive et. al.
8212 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8213 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8214 else
8215 whole_archive_flag_spec=
8216 fi
8217 supports_anon_versioning=no
8218 case `$LD -v 2>&1` in
8219 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8220 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8221 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8222 *\ 2.11.*) ;; # other 2.11 versions
8223 *) supports_anon_versioning=yes ;;
8224 esac
d7040cdb 8225
ce2cded5
L
8226 # See if GNU ld supports shared libraries.
8227 case $host_os in
50e7d84b 8228 aix[3-9]*)
ce2cded5
L
8229 # On AIX/PPC, the GNU linker is very broken
8230 if test "$host_cpu" != ia64; then
8231 ld_shlibs=no
8232 cat <<_LT_EOF 1>&2
d7040cdb 8233
ce2cded5
L
8234*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8235*** to be unable to reliably create shared libraries on AIX.
8236*** Therefore, libtool is disabling shared libraries support. If you
8237*** really care for shared libraries, you may want to modify your PATH
8238*** so that a non-GNU linker is found, and then restart.
d7040cdb 8239
ce2cded5
L
8240_LT_EOF
8241 fi
d7040cdb 8242 ;;
d7040cdb 8243
ce2cded5
L
8244 amigaos*)
8245 if test "$host_cpu" = m68k; then
8246 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)'
8247 hardcode_libdir_flag_spec='-L$libdir'
8248 hardcode_minus_L=yes
8249 fi
d7040cdb 8250
ce2cded5
L
8251 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8252 # that the semantics of dynamic libraries on AmigaOS, at least up
8253 # to version 4, is to share data among multiple programs linked
8254 # with the same dynamic library. Since this doesn't match the
8255 # behavior of shared libraries on other platforms, we can't use
8256 # them.
8257 ld_shlibs=no
8258 ;;
d7040cdb 8259
ce2cded5
L
8260 beos*)
8261 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8262 allow_undefined_flag=unsupported
8263 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8264 # support --undefined. This deserves some investigation. FIXME
8265 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8266 else
8267 ld_shlibs=no
8268 fi
8269 ;;
d7040cdb 8270
ce2cded5
L
8271 cygwin* | mingw* | pw32*)
8272 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8273 # as there is no search path for DLLs.
8274 hardcode_libdir_flag_spec='-L$libdir'
8275 allow_undefined_flag=unsupported
8276 always_export_symbols=no
8277 enable_shared_with_static_runtimes=yes
8278 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8279
8280 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8281 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8282 # If the export-symbols file already is a .def file (1st line
8283 # is EXPORTS), use it as is; otherwise, prepend...
8284 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8285 cp $export_symbols $output_objdir/$soname.def;
d7040cdb 8286 else
ce2cded5
L
8287 echo EXPORTS > $output_objdir/$soname.def;
8288 cat $export_symbols >> $output_objdir/$soname.def;
8289 fi~
8290 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8291 else
8292 ld_shlibs=no
8293 fi
8294 ;;
d7040cdb 8295
ce2cded5
L
8296 interix[3-9]*)
8297 hardcode_direct=no
8298 hardcode_shlibpath_var=no
8299 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8300 export_dynamic_flag_spec='${wl}-E'
8301 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8302 # Instead, shared libraries are loaded at an image base (0x10000000 by
8303 # default) and relocated if they conflict, which is a slow very memory
8304 # consuming and fragmenting process. To avoid this, we pick a random,
8305 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8306 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8307 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8308 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'
8309 ;;
d7040cdb 8310
ce2cded5
L
8311 gnu* | linux* | tpf* | k*bsd*-gnu)
8312 tmp_diet=no
8313 if test "$host_os" = linux-dietlibc; then
8314 case $cc_basename in
8315 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8316 esac
8317 fi
8318 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8319 && test "$tmp_diet" = no
8320 then
8321 tmp_addflag=
8322 case $cc_basename,$host_cpu in
8323 pgcc*) # Portland Group C compiler
8324 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'
8325 tmp_addflag=' $pic_flag'
8326 ;;
8327 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8328 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'
8329 tmp_addflag=' $pic_flag -Mnomain' ;;
8330 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8331 tmp_addflag=' -i_dynamic' ;;
8332 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8333 tmp_addflag=' -i_dynamic -nofor_main' ;;
8334 ifc* | ifort*) # Intel Fortran compiler
8335 tmp_addflag=' -nofor_main' ;;
8336 esac
8337 case `$CC -V 2>&1 | sed 5q` in
8338 *Sun\ C*) # Sun C 5.9
8339 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'
8340 compiler_needs_object=yes
8341 tmp_sharedflag='-G' ;;
8342 *Sun\ F*) # Sun Fortran 8.3
8343 tmp_sharedflag='-G' ;;
8344 *)
8345 tmp_sharedflag='-shared' ;;
8346 esac
8347 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d7040cdb 8348
ce2cded5
L
8349 if test "x$supports_anon_versioning" = xyes; then
8350 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8351 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8352 echo "local: *; };" >> $output_objdir/$libname.ver~
8353 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8354 fi
8355 else
8356 ld_shlibs=no
8357 fi
8358 ;;
d7040cdb 8359
ce2cded5
L
8360 netbsd*)
8361 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8362 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8363 wlarc=
8364 else
8365 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8366 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8367 fi
8368 ;;
8369
8370 solaris*)
8371 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8372 ld_shlibs=no
8373 cat <<_LT_EOF 1>&2
8374
8375*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8376*** create shared libraries on Solaris systems. Therefore, libtool
8377*** is disabling shared libraries support. We urge you to upgrade GNU
8378*** binutils to release 2.9.1 or newer. Another option is to modify
8379*** your PATH or compiler configuration so that the native linker is
8380*** used, and then restart.
8381
8382_LT_EOF
8383 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8384 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8385 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8386 else
8387 ld_shlibs=no
8388 fi
8389 ;;
8390
8391 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8392 case `$LD -v 2>&1` in
8393 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8394 ld_shlibs=no
8395 cat <<_LT_EOF 1>&2
8396
8397*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8398*** reliably create shared libraries on SCO systems. Therefore, libtool
8399*** is disabling shared libraries support. We urge you to upgrade GNU
8400*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8401*** your PATH or compiler configuration so that the native linker is
8402*** used, and then restart.
8403
8404_LT_EOF
8405 ;;
8406 *)
8407 # For security reasons, it is highly recommended that you always
8408 # use absolute paths for naming shared libraries, and exclude the
8409 # DT_RUNPATH tag from executables and libraries. But doing so
8410 # requires that you compile everything twice, which is a pain.
8411 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8412 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8413 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8414 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8415 else
8416 ld_shlibs=no
8417 fi
8418 ;;
8419 esac
8420 ;;
8421
8422 sunos4*)
8423 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8424 wlarc=
8425 hardcode_direct=yes
8426 hardcode_shlibpath_var=no
8427 ;;
8428
8429 *)
8430 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8431 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8432 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8433 else
8434 ld_shlibs=no
8435 fi
8436 ;;
8437 esac
8438
8439 if test "$ld_shlibs" = no; then
8440 runpath_var=
8441 hardcode_libdir_flag_spec=
8442 export_dynamic_flag_spec=
8443 whole_archive_flag_spec=
8444 fi
8445 else
8446 # PORTME fill in a description of your system's linker (not GNU ld)
8447 case $host_os in
8448 aix3*)
8449 allow_undefined_flag=unsupported
8450 always_export_symbols=yes
8451 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'
8452 # Note: this linker hardcodes the directories in LIBPATH if there
8453 # are no directories specified by -L.
8454 hardcode_minus_L=yes
8455 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8456 # Neither direct hardcoding nor static linking is supported with a
8457 # broken collect2.
8458 hardcode_direct=unsupported
8459 fi
8460 ;;
8461
50e7d84b 8462 aix[4-9]*)
ce2cded5
L
8463 if test "$host_cpu" = ia64; then
8464 # On IA64, the linker does run time linking by default, so we don't
8465 # have to do anything special.
8466 aix_use_runtimelinking=no
8467 exp_sym_flag='-Bexport'
8468 no_entry_flag=""
8469 else
8470 # If we're using GNU nm, then we don't want the "-C" option.
8471 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8472 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8473 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'
8474 else
8475 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'
8476 fi
8477 aix_use_runtimelinking=no
8478
8479 # Test if we are trying to use run time linking or normal
8480 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8481 # need to do runtime linking.
50e7d84b 8482 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
ce2cded5
L
8483 for ld_flag in $LDFLAGS; do
8484 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8485 aix_use_runtimelinking=yes
8486 break
8487 fi
8488 done
8489 ;;
8490 esac
8491
8492 exp_sym_flag='-bexport'
8493 no_entry_flag='-bnoentry'
8494 fi
8495
8496 # When large executables or shared objects are built, AIX ld can
8497 # have problems creating the table of contents. If linking a library
8498 # or program results in "error TOC overflow" add -mminimal-toc to
8499 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8500 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8501
8502 archive_cmds=''
8503 hardcode_direct=yes
8504 hardcode_direct_absolute=yes
8505 hardcode_libdir_separator=':'
8506 link_all_deplibs=yes
8507 file_list_spec='${wl}-f,'
8508
8509 if test "$GCC" = yes; then
8510 case $host_os in aix4.[012]|aix4.[012].*)
8511 # We only want to do this on AIX 4.2 and lower, the check
8512 # below for broken collect2 doesn't work under 4.3+
8513 collect2name=`${CC} -print-prog-name=collect2`
8514 if test -f "$collect2name" &&
8515 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8516 then
8517 # We have reworked collect2
8518 :
8519 else
8520 # We have old collect2
8521 hardcode_direct=unsupported
8522 # It fails to find uninstalled libraries when the uninstalled
8523 # path is not listed in the libpath. Setting hardcode_minus_L
8524 # to unsupported forces relinking
8525 hardcode_minus_L=yes
8526 hardcode_libdir_flag_spec='-L$libdir'
8527 hardcode_libdir_separator=
8528 fi
8529 ;;
8530 esac
8531 shared_flag='-shared'
8532 if test "$aix_use_runtimelinking" = yes; then
8533 shared_flag="$shared_flag "'${wl}-G'
8534 fi
8535 else
8536 # not using gcc
8537 if test "$host_cpu" = ia64; then
8538 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8539 # chokes on -Wl,-G. The following line is correct:
8540 shared_flag='-G'
8541 else
8542 if test "$aix_use_runtimelinking" = yes; then
8543 shared_flag='${wl}-G'
8544 else
8545 shared_flag='${wl}-bM:SRE'
8546 fi
8547 fi
8548 fi
8549
8550 # It seems that -bexpall does not export symbols beginning with
8551 # underscore (_), so it is better to generate a list of symbols to export.
8552 always_export_symbols=yes
8553 if test "$aix_use_runtimelinking" = yes; then
8554 # Warning - without using the other runtime loading flags (-brtl),
8555 # -berok will link without error, but may produce a broken library.
8556 allow_undefined_flag='-berok'
8557 # Determine the default libpath from the value encoded in an
8558 # empty executable.
8559 cat >conftest.$ac_ext <<_ACEOF
8560/* confdefs.h. */
8561_ACEOF
8562cat confdefs.h >>conftest.$ac_ext
8563cat >>conftest.$ac_ext <<_ACEOF
8564/* end confdefs.h. */
8565
8566int
8567main ()
8568{
8569
8570 ;
8571 return 0;
8572}
8573_ACEOF
8574rm -f conftest.$ac_objext conftest$ac_exeext
d7040cdb
SE
8575if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8576 (eval $ac_link) 2>conftest.er1
8577 ac_status=$?
8578 grep -v '^ *+' conftest.er1 >conftest.err
8579 rm -f conftest.er1
8580 cat conftest.err >&5
8581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8582 (exit $ac_status); } &&
7357c5b6
AM
8583 { ac_try='test -z "$ac_c_werror_flag"
8584 || test ! -s conftest.err'
d7040cdb
SE
8585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8586 (eval $ac_try) 2>&5
8587 ac_status=$?
8588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8589 (exit $ac_status); }; } &&
8590 { ac_try='test -s conftest$ac_exeext'
8591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8592 (eval $ac_try) 2>&5
8593 ac_status=$?
8594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8595 (exit $ac_status); }; }; then
d7040cdb 8596
ce2cded5
L
8597lt_aix_libpath_sed='
8598 /Import File Strings/,/^$/ {
8599 /^0/ {
8600 s/^0 *\(.*\)$/\1/
8601 p
8602 }
8603 }'
8604aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8605# Check for a 64-bit object if we didn't find anything.
8606if test -z "$aix_libpath"; then
8607 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8608fi
d7040cdb
SE
8609else
8610 echo "$as_me: failed program was:" >&5
8611sed 's/^/| /' conftest.$ac_ext >&5
8612
8613fi
8614rm -f conftest.err conftest.$ac_objext \
8615 conftest$ac_exeext conftest.$ac_ext
ce2cded5 8616if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 8617
ce2cded5
L
8618 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8619 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"
8620 else
8621 if test "$host_cpu" = ia64; then
8622 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8623 allow_undefined_flag="-z nodefs"
8624 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"
8625 else
8626 # Determine the default libpath from the value encoded in an
8627 # empty executable.
8628 cat >conftest.$ac_ext <<_ACEOF
8629/* confdefs.h. */
8630_ACEOF
8631cat confdefs.h >>conftest.$ac_ext
8632cat >>conftest.$ac_ext <<_ACEOF
8633/* end confdefs.h. */
d7040cdb 8634
ce2cded5
L
8635int
8636main ()
8637{
d7040cdb 8638
ce2cded5
L
8639 ;
8640 return 0;
8641}
8642_ACEOF
8643rm -f conftest.$ac_objext conftest$ac_exeext
8644if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8645 (eval $ac_link) 2>conftest.er1
8646 ac_status=$?
8647 grep -v '^ *+' conftest.er1 >conftest.err
8648 rm -f conftest.er1
8649 cat conftest.err >&5
8650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8651 (exit $ac_status); } &&
7357c5b6
AM
8652 { ac_try='test -z "$ac_c_werror_flag"
8653 || test ! -s conftest.err'
ce2cded5
L
8654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8655 (eval $ac_try) 2>&5
8656 ac_status=$?
8657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658 (exit $ac_status); }; } &&
8659 { ac_try='test -s conftest$ac_exeext'
8660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8661 (eval $ac_try) 2>&5
8662 ac_status=$?
8663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664 (exit $ac_status); }; }; then
d7040cdb 8665
ce2cded5
L
8666lt_aix_libpath_sed='
8667 /Import File Strings/,/^$/ {
8668 /^0/ {
8669 s/^0 *\(.*\)$/\1/
8670 p
8671 }
8672 }'
8673aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8674# Check for a 64-bit object if we didn't find anything.
8675if test -z "$aix_libpath"; then
8676 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8677fi
8678else
8679 echo "$as_me: failed program was:" >&5
8680sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 8681
ce2cded5
L
8682fi
8683rm -f conftest.err conftest.$ac_objext \
8684 conftest$ac_exeext conftest.$ac_ext
8685if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 8686
ce2cded5
L
8687 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8688 # Warning - without using the other run time loading flags,
8689 # -berok will link without error, but may produce a broken library.
8690 no_undefined_flag=' ${wl}-bernotok'
8691 allow_undefined_flag=' ${wl}-berok'
8692 # Exported symbols can be pulled into shared objects from archives
8693 whole_archive_flag_spec='$convenience'
8694 archive_cmds_need_lc=yes
8695 # This is similar to how AIX traditionally builds its shared libraries.
8696 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'
8697 fi
8698 fi
8699 ;;
d7040cdb 8700
ce2cded5
L
8701 amigaos*)
8702 if test "$host_cpu" = m68k; then
8703 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)'
8704 hardcode_libdir_flag_spec='-L$libdir'
8705 hardcode_minus_L=yes
8706 fi
8707 # see comment about different semantics on the GNU ld section
8708 ld_shlibs=no
8709 ;;
8710
8711 bsdi[45]*)
8712 export_dynamic_flag_spec=-rdynamic
8713 ;;
8714
8715 cygwin* | mingw* | pw32*)
8716 # When not using gcc, we currently assume that we are using
8717 # Microsoft Visual C++.
8718 # hardcode_libdir_flag_spec is actually meaningless, as there is
8719 # no search path for DLLs.
8720 hardcode_libdir_flag_spec=' '
8721 allow_undefined_flag=unsupported
8722 # Tell ltmain to make .lib files, not .a files.
8723 libext=lib
8724 # Tell ltmain to make .dll files, not .so files.
8725 shrext_cmds=".dll"
8726 # FIXME: Setting linknames here is a bad hack.
8727 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8728 # The linker will automatically build a .lib file if we build a DLL.
8729 old_archive_from_new_cmds='true'
8730 # FIXME: Should let the user specify the lib program.
8731 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8732 fix_srcfile_path='`cygpath -w "$srcfile"`'
8733 enable_shared_with_static_runtimes=yes
8734 ;;
8735
8736 darwin* | rhapsody*)
8737 case $host_os in
8738 rhapsody* | darwin1.[012])
8739 allow_undefined_flag='${wl}-undefined ${wl}suppress'
d7040cdb 8740 ;;
ce2cded5
L
8741 *) # Darwin 1.3 on
8742 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
8743 10.[012])
8744 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8745 ;;
8746 10.*)
8747 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8748 ;;
8749 esac
d7040cdb
SE
8750 ;;
8751 esac
ce2cded5
L
8752 archive_cmds_need_lc=no
8753 hardcode_direct=no
8754 hardcode_automatic=yes
8755 hardcode_shlibpath_var=unsupported
8756 whole_archive_flag_spec=''
8757 link_all_deplibs=yes
8758 if test "$GCC" = yes ; then
8759 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8760 echo $ECHO_N "(cached) $ECHO_C" >&6
8761else
8762 lt_cv_apple_cc_single_mod=no
8763 if test -z "${LT_MULTI_MODULE}"; then
8764 # By default we will add the -single_module flag. You can override
8765 # by either setting the environment variable LT_MULTI_MODULE
8766 # non-empty at configure time, or by adding -multi-module to the
8767 # link flags.
8768 echo "int foo(void){return 1;}" > conftest.c
8769 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8770 -dynamiclib ${wl}-single_module conftest.c
8771 if test -f libconftest.dylib; then
8772 lt_cv_apple_cc_single_mod=yes
8773 rm libconftest.dylib
8774 fi
8775 rm conftest.$ac_ext
8776 fi
8777fi
d7040cdb 8778
ce2cded5
L
8779 output_verbose_link_cmd=echo
8780 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
8781 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8782 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8783 else
8784 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8785 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8786 fi
8787 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8788 module_expsym_cmds='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8789 else
8790 case $cc_basename in
8791 xlc*)
8792 output_verbose_link_cmd=echo
8793 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
8794 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8795 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8796 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8797 module_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8798 ;;
8799 *)
8800 ld_shlibs=no
8801 ;;
8802 esac
8803 fi
8804 ;;
d7040cdb 8805
ce2cded5
L
8806 dgux*)
8807 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8808 hardcode_libdir_flag_spec='-L$libdir'
8809 hardcode_shlibpath_var=no
8810 ;;
d7040cdb 8811
ce2cded5
L
8812 freebsd1*)
8813 ld_shlibs=no
8814 ;;
d7040cdb 8815
ce2cded5
L
8816 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8817 # support. Future versions do this automatically, but an explicit c++rt0.o
8818 # does not break anything, and helps significantly (at the cost of a little
8819 # extra space).
8820 freebsd2.2*)
8821 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8822 hardcode_libdir_flag_spec='-R$libdir'
8823 hardcode_direct=yes
8824 hardcode_shlibpath_var=no
d7040cdb 8825 ;;
d7040cdb 8826
ce2cded5
L
8827 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8828 freebsd2*)
8829 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8830 hardcode_direct=yes
8831 hardcode_minus_L=yes
8832 hardcode_shlibpath_var=no
8833 ;;
d7040cdb 8834
ce2cded5
L
8835 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8836 freebsd* | dragonfly*)
8837 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8838 hardcode_libdir_flag_spec='-R$libdir'
8839 hardcode_direct=yes
8840 hardcode_shlibpath_var=no
8841 ;;
d7040cdb 8842
ce2cded5
L
8843 hpux9*)
8844 if test "$GCC" = yes; then
8845 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'
8846 else
8847 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'
8848 fi
8849 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8850 hardcode_libdir_separator=:
8851 hardcode_direct=yes
d7040cdb 8852
ce2cded5
L
8853 # hardcode_minus_L: Not really in the search PATH,
8854 # but as the default location of the library.
8855 hardcode_minus_L=yes
8856 export_dynamic_flag_spec='${wl}-E'
8857 ;;
d7040cdb 8858
ce2cded5
L
8859 hpux10*)
8860 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8861 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8862 else
8863 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8864 fi
8865 if test "$with_gnu_ld" = no; then
8866 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8867 hardcode_libdir_flag_spec_ld='+b $libdir'
8868 hardcode_libdir_separator=:
8869 hardcode_direct=yes
8870 hardcode_direct_absolute=yes
8871 export_dynamic_flag_spec='${wl}-E'
8872 # hardcode_minus_L: Not really in the search PATH,
8873 # but as the default location of the library.
8874 hardcode_minus_L=yes
8875 fi
8876 ;;
d7040cdb 8877
ce2cded5
L
8878 hpux11*)
8879 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8880 case $host_cpu in
8881 hppa*64*)
8882 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8883 ;;
8884 ia64*)
8885 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8886 ;;
8887 *)
8888 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8889 ;;
8890 esac
8891 else
8892 case $host_cpu in
8893 hppa*64*)
8894 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8895 ;;
8896 ia64*)
8897 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8898 ;;
8899 *)
8900 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8901 ;;
8902 esac
8903 fi
8904 if test "$with_gnu_ld" = no; then
8905 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8906 hardcode_libdir_separator=:
d7040cdb 8907
ce2cded5
L
8908 case $host_cpu in
8909 hppa*64*|ia64*)
8910 hardcode_direct=no
8911 hardcode_shlibpath_var=no
8912 ;;
8913 *)
8914 hardcode_direct=yes
8915 hardcode_direct_absolute=yes
8916 export_dynamic_flag_spec='${wl}-E'
d7040cdb 8917
ce2cded5
L
8918 # hardcode_minus_L: Not really in the search PATH,
8919 # but as the default location of the library.
8920 hardcode_minus_L=yes
8921 ;;
8922 esac
8923 fi
8924 ;;
d7040cdb 8925
ce2cded5
L
8926 irix5* | irix6* | nonstopux*)
8927 if test "$GCC" = yes; then
8928 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'
8929 # Try to use the -exported_symbol ld option, if it does not
8930 # work, assume that -exports_file does not work either and
8931 # implicitly export all symbols.
8932 save_LDFLAGS="$LDFLAGS"
8933 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8934 cat >conftest.$ac_ext <<_ACEOF
8935int foo(void) {}
8936_ACEOF
8937rm -f conftest.$ac_objext conftest$ac_exeext
8938if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8939 (eval $ac_link) 2>conftest.er1
8940 ac_status=$?
8941 grep -v '^ *+' conftest.er1 >conftest.err
8942 rm -f conftest.er1
8943 cat conftest.err >&5
8944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945 (exit $ac_status); } &&
7357c5b6
AM
8946 { ac_try='test -z "$ac_c_werror_flag"
8947 || test ! -s conftest.err'
ce2cded5
L
8948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8949 (eval $ac_try) 2>&5
8950 ac_status=$?
8951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952 (exit $ac_status); }; } &&
8953 { ac_try='test -s conftest$ac_exeext'
8954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8955 (eval $ac_try) 2>&5
8956 ac_status=$?
8957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958 (exit $ac_status); }; }; then
8959 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 8960
ce2cded5
L
8961else
8962 echo "$as_me: failed program was:" >&5
8963sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 8964
ce2cded5
L
8965fi
8966rm -f conftest.err conftest.$ac_objext \
8967 conftest$ac_exeext conftest.$ac_ext
8968 LDFLAGS="$save_LDFLAGS"
8969 else
8970 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'
8971 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'
8972 fi
8973 archive_cmds_need_lc='no'
8974 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8975 hardcode_libdir_separator=:
8976 inherit_rpath=yes
8977 link_all_deplibs=yes
8978 ;;
d7040cdb 8979
ce2cded5
L
8980 netbsd*)
8981 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8982 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8983 else
8984 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8985 fi
8986 hardcode_libdir_flag_spec='-R$libdir'
8987 hardcode_direct=yes
8988 hardcode_shlibpath_var=no
8989 ;;
d7040cdb 8990
ce2cded5
L
8991 newsos6)
8992 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8993 hardcode_direct=yes
8994 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8995 hardcode_libdir_separator=:
8996 hardcode_shlibpath_var=no
8997 ;;
d7040cdb 8998
ce2cded5
L
8999 *nto* | *qnx*)
9000 ;;
d7040cdb 9001
ce2cded5
L
9002 openbsd*)
9003 hardcode_direct=yes
9004 hardcode_shlibpath_var=no
9005 hardcode_direct_absolute=yes
9006 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9007 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9008 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9009 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9010 export_dynamic_flag_spec='${wl}-E'
9011 else
9012 case $host_os in
9013 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9014 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9015 hardcode_libdir_flag_spec='-R$libdir'
9016 ;;
9017 *)
9018 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9019 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9020 ;;
9021 esac
9022 fi
9023 ;;
d7040cdb 9024
ce2cded5
L
9025 os2*)
9026 hardcode_libdir_flag_spec='-L$libdir'
9027 hardcode_minus_L=yes
9028 allow_undefined_flag=unsupported
9029 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'
9030 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9031 ;;
d7040cdb 9032
ce2cded5
L
9033 osf3*)
9034 if test "$GCC" = yes; then
9035 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9036 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'
9037 else
9038 allow_undefined_flag=' -expect_unresolved \*'
9039 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'
9040 fi
9041 archive_cmds_need_lc='no'
9042 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9043 hardcode_libdir_separator=:
9044 ;;
d7040cdb 9045
ce2cded5
L
9046 osf4* | osf5*) # as osf3* with the addition of -msym flag
9047 if test "$GCC" = yes; then
9048 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9049 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'
9050 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9051 else
9052 allow_undefined_flag=' -expect_unresolved \*'
9053 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'
9054 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~
9055 $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 9056
ce2cded5
L
9057 # Both c and cxx compiler support -rpath directly
9058 hardcode_libdir_flag_spec='-rpath $libdir'
9059 fi
9060 archive_cmds_need_lc='no'
9061 hardcode_libdir_separator=:
9062 ;;
d7040cdb 9063
ce2cded5
L
9064 solaris*)
9065 no_undefined_flag=' -z defs'
9066 if test "$GCC" = yes; then
9067 wlarc='${wl}'
9068 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9069 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9070 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9071 else
9072 case `$CC -V 2>&1` in
9073 *"Compilers 5.0"*)
9074 wlarc=''
9075 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9076 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9077 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9078 ;;
9079 *)
9080 wlarc='${wl}'
9081 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9082 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9083 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9084 ;;
9085 esac
9086 fi
9087 hardcode_libdir_flag_spec='-R$libdir'
9088 hardcode_shlibpath_var=no
9089 case $host_os in
9090 solaris2.[0-5] | solaris2.[0-5].*) ;;
9091 *)
9092 # The compiler driver will combine and reorder linker options,
9093 # but understands `-z linker_flag'. GCC discards it without `$wl',
9094 # but is careful enough not to reorder.
9095 # Supported since Solaris 2.6 (maybe 2.5.1?)
9096 if test "$GCC" = yes; then
9097 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9098 else
9099 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9100 fi
9101 ;;
9102 esac
9103 link_all_deplibs=yes
9104 ;;
d7040cdb 9105
ce2cded5
L
9106 sunos4*)
9107 if test "x$host_vendor" = xsequent; then
9108 # Use $CC to link under sequent, because it throws in some extra .o
9109 # files that make .init and .fini sections work.
9110 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9111 else
9112 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9113 fi
9114 hardcode_libdir_flag_spec='-L$libdir'
9115 hardcode_direct=yes
9116 hardcode_minus_L=yes
9117 hardcode_shlibpath_var=no
9118 ;;
d7040cdb 9119
ce2cded5
L
9120 sysv4)
9121 case $host_vendor in
9122 sni)
9123 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9124 hardcode_direct=yes # is this really true???
9125 ;;
9126 siemens)
9127 ## LD is ld it makes a PLAMLIB
9128 ## CC just makes a GrossModule.
9129 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9130 reload_cmds='$CC -r -o $output$reload_objs'
9131 hardcode_direct=no
9132 ;;
9133 motorola)
9134 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9135 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9136 ;;
9137 esac
9138 runpath_var='LD_RUN_PATH'
9139 hardcode_shlibpath_var=no
9140 ;;
d7040cdb 9141
ce2cded5
L
9142 sysv4.3*)
9143 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9144 hardcode_shlibpath_var=no
9145 export_dynamic_flag_spec='-Bexport'
9146 ;;
d7040cdb 9147
ce2cded5
L
9148 sysv4*MP*)
9149 if test -d /usr/nec; then
9150 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9151 hardcode_shlibpath_var=no
9152 runpath_var=LD_RUN_PATH
9153 hardcode_runpath_var=yes
9154 ld_shlibs=yes
9155 fi
9156 ;;
d7040cdb 9157
ce2cded5
L
9158 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9159 no_undefined_flag='${wl}-z,text'
9160 archive_cmds_need_lc=no
9161 hardcode_shlibpath_var=no
9162 runpath_var='LD_RUN_PATH'
d7040cdb 9163
ce2cded5
L
9164 if test "$GCC" = yes; then
9165 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9166 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9167 else
9168 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9169 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9170 fi
9171 ;;
d7040cdb 9172
ce2cded5
L
9173 sysv5* | sco3.2v5* | sco5v6*)
9174 # Note: We can NOT use -z defs as we might desire, because we do not
9175 # link with -lc, and that would cause any symbols used from libc to
9176 # always be unresolved, which means just about no library would
9177 # ever link correctly. If we're not using GNU ld we use -z text
9178 # though, which does catch some bad symbols but isn't as heavy-handed
9179 # as -z defs.
9180 no_undefined_flag='${wl}-z,text'
9181 allow_undefined_flag='${wl}-z,nodefs'
9182 archive_cmds_need_lc=no
9183 hardcode_shlibpath_var=no
9184 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9185 hardcode_libdir_separator=':'
9186 link_all_deplibs=yes
9187 export_dynamic_flag_spec='${wl}-Bexport'
9188 runpath_var='LD_RUN_PATH'
d7040cdb 9189
ce2cded5
L
9190 if test "$GCC" = yes; then
9191 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9192 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9193 else
9194 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9195 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9196 fi
9197 ;;
d7040cdb 9198
ce2cded5
L
9199 uts4*)
9200 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9201 hardcode_libdir_flag_spec='-L$libdir'
9202 hardcode_shlibpath_var=no
9203 ;;
d7040cdb 9204
ce2cded5
L
9205 *)
9206 ld_shlibs=no
9207 ;;
9208 esac
d7040cdb 9209
ce2cded5
L
9210 if test x$host_vendor = xsni; then
9211 case $host in
9212 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9213 export_dynamic_flag_spec='${wl}-Blargedynsym'
9214 ;;
9215 esac
9216 fi
9217 fi
d7040cdb 9218
ce2cded5
L
9219echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9220echo "${ECHO_T}$ld_shlibs" >&6
9221test "$ld_shlibs" = no && can_build_shared=no
d7040cdb 9222
ce2cded5 9223with_gnu_ld=$with_gnu_ld
d7040cdb
SE
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
ce2cded5
L
9239#
9240# Do we need to explicitly link libc?
9241#
9242case "x$archive_cmds_need_lc" in
9243x|xyes)
9244 # Assume -lc should be added
9245 archive_cmds_need_lc=yes
d7040cdb 9246
ce2cded5
L
9247 if test "$enable_shared" = yes && test "$GCC" = yes; then
9248 case $archive_cmds in
9249 *'~'*)
9250 # FIXME: we may have to deal with multi-command sequences.
9251 ;;
9252 '$CC '*)
9253 # Test whether the compiler implicitly links with -lc since on some
9254 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9255 # to ld, don't add -lc before -lgcc.
9256 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9257echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9258 $RM conftest*
9259 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 9260
ce2cded5
L
9261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9262 (eval $ac_compile) 2>&5
9263 ac_status=$?
9264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265 (exit $ac_status); } 2>conftest.err; then
9266 soname=conftest
9267 lib=conftest
9268 libobjs=conftest.$ac_objext
9269 deplibs=
9270 wl=$lt_prog_compiler_wl
9271 pic_flag=$lt_prog_compiler_pic
9272 compiler_flags=-v
9273 linker_flags=-v
9274 verstring=
9275 output_objdir=.
9276 libname=conftest
9277 lt_save_allow_undefined_flag=$allow_undefined_flag
9278 allow_undefined_flag=
9279 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9280 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9281 ac_status=$?
9282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283 (exit $ac_status); }
9284 then
9285 archive_cmds_need_lc=no
9286 else
9287 archive_cmds_need_lc=yes
9288 fi
9289 allow_undefined_flag=$lt_save_allow_undefined_flag
9290 else
9291 cat conftest.err 1>&5
9292 fi
9293 $RM conftest*
9294 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9295echo "${ECHO_T}$archive_cmds_need_lc" >&6
9296 ;;
9297 esac
9298 fi
9299 ;;
9300esac
d7040cdb
SE
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
d7040cdb 9328
d7040cdb 9329
d7040cdb
SE
9330
9331
9332
9333
9334
9335
d7040cdb 9336
d7040cdb 9337
d7040cdb 9338
d7040cdb 9339
d7040cdb 9340
d7040cdb 9341
d7040cdb 9342
d7040cdb 9343
d7040cdb 9344
d7040cdb 9345
d7040cdb 9346
d7040cdb 9347
d7040cdb 9348
d7040cdb 9349
d7040cdb 9350
d7040cdb 9351
d7040cdb 9352
d7040cdb 9353
d7040cdb 9354
d7040cdb 9355
d7040cdb 9356
d7040cdb 9357
d7040cdb 9358
d7040cdb 9359
d7040cdb 9360
d7040cdb 9361
d7040cdb 9362
d7040cdb 9363
ce2cded5
L
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9459echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9460withGCC=$GCC
9461if test "$withGCC" = yes; then
9462 case $host_os in
9463 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9464 *) lt_awk_arg="/^libraries:/" ;;
9465 esac
9466 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9467 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9468 # if the path contains ";" then we assume it to be the separator
9469 # otherwise default to the standard path separator (i.e. ":") - it is
9470 # assumed that no part of a normal pathname contains ";" but that should
9471 # okay in the real world where ";" in dirpaths is itself problematic.
9472 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9473 else
9474 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9475 fi
9476 # Ok, now we have the path, separated by spaces, we can step through it
9477 # and add multilib dir if necessary.
9478 lt_tmp_lt_search_path_spec=
9479 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9480 for lt_sys_path in $lt_search_path_spec; do
9481 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9482 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9483 else
9484 test -d "$lt_sys_path" && \
9485 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9486 fi
9487 done
9488 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9489BEGIN {RS=" "; FS="/|\n";} {
9490 lt_foo="";
9491 lt_count=0;
9492 for (lt_i = NF; lt_i > 0; lt_i--) {
9493 if ($lt_i != "" && $lt_i != ".") {
9494 if ($lt_i == "..") {
9495 lt_count++;
9496 } else {
9497 if (lt_count == 0) {
9498 lt_foo="/" $lt_i lt_foo;
9499 } else {
9500 lt_count--;
9501 }
9502 }
9503 }
9504 }
9505 if (lt_foo != "") { lt_freq[lt_foo]++; }
9506 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9507}'`
9508 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
d7040cdb 9509else
ce2cded5
L
9510 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9511fi
9512library_names_spec=
9513libname_spec='lib$name'
9514soname_spec=
9515shrext_cmds=".so"
9516postinstall_cmds=
9517postuninstall_cmds=
9518finish_cmds=
9519finish_eval=
9520shlibpath_var=
9521shlibpath_overrides_runpath=unknown
9522version_type=none
9523dynamic_linker="$host_os ld.so"
9524sys_lib_dlsearch_path_spec="/lib /usr/lib"
9525need_lib_prefix=unknown
9526hardcode_into_libs=no
9527
9528# when you set need_version to no, make sure it does not cause -set_version
9529# flags to be left without arguments
9530need_version=unknown
9531
9532case $host_os in
9533aix3*)
9534 version_type=linux
9535 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9536 shlibpath_var=LIBPATH
9537
9538 # AIX 3 has no versioning support, so we append a major version to the name.
9539 soname_spec='${libname}${release}${shared_ext}$major'
9540 ;;
9541
50e7d84b 9542aix[4-9]*)
ce2cded5
L
9543 version_type=linux
9544 need_lib_prefix=no
9545 need_version=no
9546 hardcode_into_libs=yes
9547 if test "$host_cpu" = ia64; then
9548 # AIX 5 supports IA64
9549 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9550 shlibpath_var=LD_LIBRARY_PATH
9551 else
9552 # With GCC up to 2.95.x, collect2 would create an import file
9553 # for dependence libraries. The import file would start with
9554 # the line `#! .'. This would cause the generated library to
9555 # depend on `.', always an invalid library. This was fixed in
9556 # development snapshots of GCC prior to 3.0.
9557 case $host_os in
9558 aix4 | aix4.[01] | aix4.[01].*)
9559 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9560 echo ' yes '
9561 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9562 :
9563 else
9564 can_build_shared=no
9565 fi
9566 ;;
9567 esac
9568 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9569 # soname into executable. Probably we can add versioning support to
9570 # collect2, so additional links can be useful in future.
9571 if test "$aix_use_runtimelinking" = yes; then
9572 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9573 # instead of lib<name>.a to let people know that these are not
9574 # typical AIX shared libraries.
9575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9576 else
9577 # We preserve .a as extension for shared libraries through AIX4.2
9578 # and later when we are not doing run time linking.
9579 library_names_spec='${libname}${release}.a $libname.a'
9580 soname_spec='${libname}${release}${shared_ext}$major'
9581 fi
9582 shlibpath_var=LIBPATH
9583 fi
9584 ;;
9585
9586amigaos*)
9587 if test "$host_cpu" = m68k; then
9588 library_names_spec='$libname.ixlibrary $libname.a'
9589 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9590 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'
9591 else
9592 dynamic_linker=no
9593 fi
9594 ;;
9595
9596beos*)
9597 library_names_spec='${libname}${shared_ext}'
9598 dynamic_linker="$host_os ld.so"
9599 shlibpath_var=LIBRARY_PATH
9600 ;;
9601
9602bsdi[45]*)
9603 version_type=linux
9604 need_version=no
9605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9606 soname_spec='${libname}${release}${shared_ext}$major'
9607 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9608 shlibpath_var=LD_LIBRARY_PATH
9609 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9610 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9611 # the default ld.so.conf also contains /usr/contrib/lib and
9612 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9613 # libtool to hard-code these into programs
9614 ;;
9615
9616cygwin* | mingw* | pw32*)
9617 version_type=windows
9618 shrext_cmds=".dll"
9619 need_version=no
9620 need_lib_prefix=no
9621
9622 case $withGCC,$host_os in
9623 yes,cygwin* | yes,mingw* | yes,pw32*)
9624 library_names_spec='$libname.dll.a'
9625 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9626 postinstall_cmds='base_file=`basename \${file}`~
9627 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9628 dldir=$destdir/`dirname \$dlpath`~
9629 test -d \$dldir || mkdir -p \$dldir~
9630 $install_prog $dir/$dlname \$dldir/$dlname~
9631 chmod a+x \$dldir/$dlname~
9632 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9633 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9634 fi'
9635 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9636 dlpath=$dir/\$dldll~
9637 $RM \$dlpath'
9638 shlibpath_overrides_runpath=yes
9639
9640 case $host_os in
9641 cygwin*)
9642 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9643 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9644 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9645 ;;
9646 mingw*)
9647 # MinGW DLLs use traditional 'lib' prefix
9648 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9649 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9650 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9651 # It is most probably a Windows format PATH printed by
9652 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9653 # path with ; separators, and with drive letters. We can handle the
9654 # drive letters (cygwin fileutils understands them), so leave them,
9655 # especially as we might pass files found there to a mingw objdump,
9656 # which wouldn't understand a cygwinified path. Ahh.
9657 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9658 else
9659 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9660 fi
9661 ;;
9662 pw32*)
9663 # pw32 DLLs use 'pw' prefix rather than 'lib'
9664 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9665 ;;
9666 esac
9667 ;;
9668
9669 *)
9670 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9671 ;;
9672 esac
9673 dynamic_linker='Win32 ld.exe'
9674 # FIXME: first we should search . and the directory the executable is in
9675 shlibpath_var=PATH
9676 ;;
9677
9678darwin* | rhapsody*)
9679 dynamic_linker="$host_os dyld"
9680 version_type=darwin
9681 need_lib_prefix=no
9682 need_version=no
9683 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9684 soname_spec='${libname}${release}${major}$shared_ext'
9685 shlibpath_overrides_runpath=yes
9686 shlibpath_var=DYLD_LIBRARY_PATH
9687 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9688
9689 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9690 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9691 ;;
9692
9693dgux*)
9694 version_type=linux
9695 need_lib_prefix=no
9696 need_version=no
9697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9698 soname_spec='${libname}${release}${shared_ext}$major'
9699 shlibpath_var=LD_LIBRARY_PATH
9700 ;;
9701
9702freebsd1*)
9703 dynamic_linker=no
9704 ;;
9705
9706freebsd* | dragonfly*)
9707 # DragonFly does not have aout. When/if they implement a new
9708 # versioning mechanism, adjust this.
9709 if test -x /usr/bin/objformat; then
9710 objformat=`/usr/bin/objformat`
9711 else
9712 case $host_os in
9713 freebsd[123]*) objformat=aout ;;
9714 *) objformat=elf ;;
9715 esac
9716 fi
9717 version_type=freebsd-$objformat
9718 case $version_type in
9719 freebsd-elf*)
9720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9721 need_version=no
9722 need_lib_prefix=no
9723 ;;
9724 freebsd-*)
9725 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9726 need_version=yes
9727 ;;
9728 esac
9729 shlibpath_var=LD_LIBRARY_PATH
9730 case $host_os in
9731 freebsd2*)
9732 shlibpath_overrides_runpath=yes
9733 ;;
9734 freebsd3.[01]* | freebsdelf3.[01]*)
9735 shlibpath_overrides_runpath=yes
9736 hardcode_into_libs=yes
9737 ;;
9738 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9739 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9740 shlibpath_overrides_runpath=no
9741 hardcode_into_libs=yes
9742 ;;
9743 *) # from 4.6 on, and DragonFly
9744 shlibpath_overrides_runpath=yes
9745 hardcode_into_libs=yes
9746 ;;
9747 esac
9748 ;;
9749
9750gnu*)
9751 version_type=linux
9752 need_lib_prefix=no
9753 need_version=no
9754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9755 soname_spec='${libname}${release}${shared_ext}$major'
9756 shlibpath_var=LD_LIBRARY_PATH
9757 hardcode_into_libs=yes
9758 ;;
9759
9760hpux9* | hpux10* | hpux11*)
9761 # Give a soname corresponding to the major version so that dld.sl refuses to
9762 # link against other versions.
9763 version_type=sunos
9764 need_lib_prefix=no
9765 need_version=no
9766 case $host_cpu in
9767 ia64*)
9768 shrext_cmds='.so'
9769 hardcode_into_libs=yes
9770 dynamic_linker="$host_os dld.so"
9771 shlibpath_var=LD_LIBRARY_PATH
9772 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9774 soname_spec='${libname}${release}${shared_ext}$major'
9775 if test "X$HPUX_IA64_MODE" = X32; then
9776 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9777 else
9778 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9779 fi
9780 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9781 ;;
9782 hppa*64*)
9783 shrext_cmds='.sl'
9784 hardcode_into_libs=yes
9785 dynamic_linker="$host_os dld.sl"
9786 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9787 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9789 soname_spec='${libname}${release}${shared_ext}$major'
9790 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9791 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9792 ;;
9793 *)
9794 shrext_cmds='.sl'
9795 dynamic_linker="$host_os dld.sl"
9796 shlibpath_var=SHLIB_PATH
9797 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9799 soname_spec='${libname}${release}${shared_ext}$major'
9800 ;;
9801 esac
9802 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9803 postinstall_cmds='chmod 555 $lib'
9804 ;;
9805
9806interix[3-9]*)
9807 version_type=linux
9808 need_lib_prefix=no
9809 need_version=no
9810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9811 soname_spec='${libname}${release}${shared_ext}$major'
9812 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9813 shlibpath_var=LD_LIBRARY_PATH
9814 shlibpath_overrides_runpath=no
9815 hardcode_into_libs=yes
9816 ;;
9817
9818irix5* | irix6* | nonstopux*)
9819 case $host_os in
9820 nonstopux*) version_type=nonstopux ;;
9821 *)
9822 if test "$lt_cv_prog_gnu_ld" = yes; then
9823 version_type=linux
9824 else
9825 version_type=irix
9826 fi ;;
9827 esac
9828 need_lib_prefix=no
9829 need_version=no
9830 soname_spec='${libname}${release}${shared_ext}$major'
9831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9832 case $host_os in
9833 irix5* | nonstopux*)
9834 libsuff= shlibsuff=
9835 ;;
9836 *)
9837 case $LD in # libtool.m4 will add one of these switches to LD
9838 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9839 libsuff= shlibsuff= libmagic=32-bit;;
9840 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9841 libsuff=32 shlibsuff=N32 libmagic=N32;;
9842 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9843 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9844 *) libsuff= shlibsuff= libmagic=never-match;;
9845 esac
9846 ;;
9847 esac
9848 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9849 shlibpath_overrides_runpath=no
9850 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9851 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9852 hardcode_into_libs=yes
9853 ;;
9854
9855# No shared lib support for Linux oldld, aout, or coff.
9856linux*oldld* | linux*aout* | linux*coff*)
9857 dynamic_linker=no
9858 ;;
9859
9860# This must be Linux ELF.
9861linux* | k*bsd*-gnu)
9862 version_type=linux
9863 need_lib_prefix=no
9864 need_version=no
9865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9866 soname_spec='${libname}${release}${shared_ext}$major'
9867 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9868 shlibpath_var=LD_LIBRARY_PATH
9869 shlibpath_overrides_runpath=no
9870 # Some binutils ld are patched to set DT_RUNPATH
9871 save_LDFLAGS=$LDFLAGS
9872 save_libdir=$libdir
9873 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9874 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9875 cat >conftest.$ac_ext <<_ACEOF
d7040cdb
SE
9876/* confdefs.h. */
9877_ACEOF
9878cat confdefs.h >>conftest.$ac_ext
9879cat >>conftest.$ac_ext <<_ACEOF
9880/* end confdefs.h. */
9881
d7040cdb
SE
9882int
9883main ()
9884{
ce2cded5 9885
d7040cdb
SE
9886 ;
9887 return 0;
9888}
9889_ACEOF
9890rm -f conftest.$ac_objext conftest$ac_exeext
9891if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9892 (eval $ac_link) 2>conftest.er1
9893 ac_status=$?
9894 grep -v '^ *+' conftest.er1 >conftest.err
9895 rm -f conftest.er1
9896 cat conftest.err >&5
9897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898 (exit $ac_status); } &&
7357c5b6
AM
9899 { ac_try='test -z "$ac_c_werror_flag"
9900 || test ! -s conftest.err'
d7040cdb
SE
9901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9902 (eval $ac_try) 2>&5
9903 ac_status=$?
9904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9905 (exit $ac_status); }; } &&
9906 { ac_try='test -s conftest$ac_exeext'
9907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9908 (eval $ac_try) 2>&5
9909 ac_status=$?
9910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911 (exit $ac_status); }; }; then
9912 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
9913 shlibpath_overrides_runpath=yes
d7040cdb 9914fi
d7040cdb 9915
ce2cded5
L
9916else
9917 echo "$as_me: failed program was:" >&5
9918sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb
SE
9919
9920fi
ce2cded5
L
9921rm -f conftest.err conftest.$ac_objext \
9922 conftest$ac_exeext conftest.$ac_ext
9923 LDFLAGS=$save_LDFLAGS
9924 libdir=$save_libdir
d7040cdb 9925
ce2cded5
L
9926 # This implies no fast_install, which is unacceptable.
9927 # Some rework will be needed to allow for fast_install
9928 # before this can be enabled.
9929 hardcode_into_libs=yes
d7040cdb 9930
ce2cded5
L
9931 # Append ld.so.conf contents to the search path
9932 if test -f /etc/ld.so.conf; then
9933 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9934 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9935 fi
d7040cdb 9936
ce2cded5
L
9937 # We used to test for /lib/ld.so.1 and disable shared libraries on
9938 # powerpc, because MkLinux only supported shared libraries with the
9939 # GNU dynamic linker. Since this was broken with cross compilers,
9940 # most powerpc-linux boxes support dynamic linking these days and
9941 # people can always --disable-shared, the test was removed, and we
9942 # assume the GNU/Linux dynamic linker is in use.
9943 dynamic_linker='GNU/Linux ld.so'
9944 ;;
d7040cdb 9945
ce2cded5
L
9946netbsd*)
9947 version_type=sunos
9948 need_lib_prefix=no
9949 need_version=no
9950 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9952 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9953 dynamic_linker='NetBSD (a.out) ld.so'
9954 else
9955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9956 soname_spec='${libname}${release}${shared_ext}$major'
9957 dynamic_linker='NetBSD ld.elf_so'
9958 fi
9959 shlibpath_var=LD_LIBRARY_PATH
9960 shlibpath_overrides_runpath=yes
9961 hardcode_into_libs=yes
9962 ;;
d7040cdb 9963
ce2cded5
L
9964newsos6)
9965 version_type=linux
9966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9967 shlibpath_var=LD_LIBRARY_PATH
9968 shlibpath_overrides_runpath=yes
9969 ;;
d7040cdb 9970
ce2cded5
L
9971*nto* | *qnx*)
9972 version_type=qnx
9973 need_lib_prefix=no
9974 need_version=no
9975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9976 soname_spec='${libname}${release}${shared_ext}$major'
9977 shlibpath_var=LD_LIBRARY_PATH
9978 shlibpath_overrides_runpath=no
9979 hardcode_into_libs=yes
9980 dynamic_linker='ldqnx.so'
9981 ;;
d7040cdb 9982
ce2cded5
L
9983openbsd*)
9984 version_type=sunos
9985 sys_lib_dlsearch_path_spec="/usr/lib"
9986 need_lib_prefix=no
9987 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9988 case $host_os in
9989 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9990 *) need_version=no ;;
9991 esac
9992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9993 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9994 shlibpath_var=LD_LIBRARY_PATH
9995 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9996 case $host_os in
9997 openbsd2.[89] | openbsd2.[89].*)
9998 shlibpath_overrides_runpath=no
9999 ;;
10000 *)
10001 shlibpath_overrides_runpath=yes
10002 ;;
10003 esac
10004 else
10005 shlibpath_overrides_runpath=yes
10006 fi
10007 ;;
d7040cdb 10008
ce2cded5
L
10009os2*)
10010 libname_spec='$name'
10011 shrext_cmds=".dll"
10012 need_lib_prefix=no
10013 library_names_spec='$libname${shared_ext} $libname.a'
10014 dynamic_linker='OS/2 ld.exe'
10015 shlibpath_var=LIBPATH
10016 ;;
d7040cdb 10017
ce2cded5
L
10018osf3* | osf4* | osf5*)
10019 version_type=osf
10020 need_lib_prefix=no
10021 need_version=no
10022 soname_spec='${libname}${release}${shared_ext}$major'
10023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10024 shlibpath_var=LD_LIBRARY_PATH
10025 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10026 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10027 ;;
d7040cdb 10028
ce2cded5
L
10029rdos*)
10030 dynamic_linker=no
10031 ;;
d7040cdb 10032
ce2cded5
L
10033solaris*)
10034 version_type=linux
10035 need_lib_prefix=no
10036 need_version=no
10037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10038 soname_spec='${libname}${release}${shared_ext}$major'
10039 shlibpath_var=LD_LIBRARY_PATH
10040 shlibpath_overrides_runpath=yes
10041 hardcode_into_libs=yes
10042 # ldd complains unless libraries are executable
10043 postinstall_cmds='chmod +x $lib'
10044 ;;
d7040cdb 10045
ce2cded5
L
10046sunos4*)
10047 version_type=sunos
10048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10049 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10050 shlibpath_var=LD_LIBRARY_PATH
10051 shlibpath_overrides_runpath=yes
10052 if test "$with_gnu_ld" = yes; then
10053 need_lib_prefix=no
10054 fi
10055 need_version=yes
10056 ;;
d7040cdb 10057
ce2cded5
L
10058sysv4 | sysv4.3*)
10059 version_type=linux
10060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10061 soname_spec='${libname}${release}${shared_ext}$major'
10062 shlibpath_var=LD_LIBRARY_PATH
10063 case $host_vendor in
10064 sni)
10065 shlibpath_overrides_runpath=no
10066 need_lib_prefix=no
10067 runpath_var=LD_RUN_PATH
10068 ;;
10069 siemens)
10070 need_lib_prefix=no
10071 ;;
10072 motorola)
10073 need_lib_prefix=no
10074 need_version=no
10075 shlibpath_overrides_runpath=no
10076 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10077 ;;
10078 esac
10079 ;;
d7040cdb 10080
ce2cded5
L
10081sysv4*MP*)
10082 if test -d /usr/nec ;then
10083 version_type=linux
10084 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10085 soname_spec='$libname${shared_ext}.$major'
10086 shlibpath_var=LD_LIBRARY_PATH
10087 fi
10088 ;;
d7040cdb 10089
ce2cded5
L
10090sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10091 version_type=freebsd-elf
10092 need_lib_prefix=no
10093 need_version=no
10094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10095 soname_spec='${libname}${release}${shared_ext}$major'
10096 shlibpath_var=LD_LIBRARY_PATH
10097 shlibpath_overrides_runpath=yes
10098 hardcode_into_libs=yes
10099 if test "$with_gnu_ld" = yes; then
10100 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10101 else
10102 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10103 case $host_os in
10104 sco3.2v5*)
10105 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10106 ;;
10107 esac
10108 fi
10109 sys_lib_dlsearch_path_spec='/usr/lib'
10110 ;;
d7040cdb 10111
ce2cded5
L
10112tpf*)
10113 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10114 version_type=linux
10115 need_lib_prefix=no
10116 need_version=no
10117 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10118 shlibpath_var=LD_LIBRARY_PATH
10119 shlibpath_overrides_runpath=no
10120 hardcode_into_libs=yes
10121 ;;
d7040cdb 10122
ce2cded5
L
10123uts4*)
10124 version_type=linux
10125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10126 soname_spec='${libname}${release}${shared_ext}$major'
10127 shlibpath_var=LD_LIBRARY_PATH
10128 ;;
d7040cdb 10129
ce2cded5
L
10130*)
10131 dynamic_linker=no
10132 ;;
10133esac
10134echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10135echo "${ECHO_T}$dynamic_linker" >&6
10136test "$dynamic_linker" = no && can_build_shared=no
10137
10138variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10139if test "$GCC" = yes; then
10140 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
d7040cdb
SE
10141fi
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
d7040cdb 10154
d7040cdb 10155
d7040cdb 10156
d7040cdb 10157
d7040cdb
SE
10158
10159
10160
10161
d7040cdb 10162
d7040cdb
SE
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
d7040cdb
SE
10176
10177
10178
10179
d7040cdb
SE
10180
10181
10182
10183
d7040cdb 10184
d7040cdb 10185
d7040cdb 10186
d7040cdb 10187
d7040cdb 10188
d7040cdb 10189
d7040cdb 10190
d7040cdb
SE
10191
10192
10193
10194
10195
d7040cdb 10196
d7040cdb 10197
d7040cdb 10198
d7040cdb 10199
d7040cdb 10200
d7040cdb 10201
d7040cdb
SE
10202
10203
10204
10205
10206
d7040cdb
SE
10207
10208
d7040cdb 10209
d7040cdb 10210
d7040cdb 10211
d7040cdb 10212
ce2cded5
L
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10230echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10231hardcode_action=
10232if test -n "$hardcode_libdir_flag_spec" ||
10233 test -n "$runpath_var" ||
10234 test "X$hardcode_automatic" = "Xyes" ; then
10235
10236 # We can hardcode non-existent directories.
10237 if test "$hardcode_direct" != no &&
10238 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10239 # have to relink, otherwise we might link with an installed library
10240 # when we should be linking with a yet-to-be-installed one
10241 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10242 test "$hardcode_minus_L" != no; then
10243 # Linking always hardcodes the temporary library directory.
10244 hardcode_action=relink
10245 else
10246 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10247 hardcode_action=immediate
d7040cdb 10248 fi
d7040cdb 10249else
ce2cded5
L
10250 # We cannot hardcode anything, or else we can only hardcode existing
10251 # directories.
10252 hardcode_action=unsupported
d7040cdb 10253fi
ce2cded5
L
10254echo "$as_me:$LINENO: result: $hardcode_action" >&5
10255echo "${ECHO_T}$hardcode_action" >&6
d7040cdb 10256
ce2cded5
L
10257if test "$hardcode_action" = relink ||
10258 test "$inherit_rpath" = yes; then
10259 # Fast installation is not supported
10260 enable_fast_install=no
10261elif test "$shlibpath_overrides_runpath" = yes ||
10262 test "$enable_shared" = no; then
10263 # Fast installation is not necessary
10264 enable_fast_install=needless
d7040cdb
SE
10265fi
10266
d7040cdb 10267
d7040cdb 10268
d7040cdb 10269
d7040cdb 10270
d7040cdb 10271
ce2cded5
L
10272 if test "x$enable_dlopen" != xyes; then
10273 enable_dlopen=unknown
10274 enable_dlopen_self=unknown
10275 enable_dlopen_self_static=unknown
d7040cdb 10276else
ce2cded5
L
10277 lt_cv_dlopen=no
10278 lt_cv_dlopen_libs=
d7040cdb 10279
ce2cded5
L
10280 case $host_os in
10281 beos*)
10282 lt_cv_dlopen="load_add_on"
10283 lt_cv_dlopen_libs=
10284 lt_cv_dlopen_self=yes
10285 ;;
d7040cdb 10286
ce2cded5
L
10287 mingw* | pw32*)
10288 lt_cv_dlopen="LoadLibrary"
10289 lt_cv_dlopen_libs=
10290 ;;
10291
10292 cygwin*)
10293 lt_cv_dlopen="dlopen"
10294 lt_cv_dlopen_libs=
10295 ;;
10296
10297 darwin*)
10298 # if libdl is installed we need to link against it
10299 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10300echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10301if test "${ac_cv_lib_dl_dlopen+set}" = set; then
d7040cdb
SE
10302 echo $ECHO_N "(cached) $ECHO_C" >&6
10303else
ce2cded5
L
10304 ac_check_lib_save_LIBS=$LIBS
10305LIBS="-ldl $LIBS"
10306cat >conftest.$ac_ext <<_ACEOF
10307/* confdefs.h. */
10308_ACEOF
10309cat confdefs.h >>conftest.$ac_ext
10310cat >>conftest.$ac_ext <<_ACEOF
10311/* end confdefs.h. */
10312
10313/* Override any gcc2 internal prototype to avoid an error. */
10314#ifdef __cplusplus
10315extern "C"
10316#endif
10317/* We use char because int might match the return type of a gcc2
10318 builtin and then its argument prototype would still apply. */
10319char dlopen ();
10320int
10321main ()
10322{
10323dlopen ();
10324 ;
10325 return 0;
10326}
10327_ACEOF
10328rm -f conftest.$ac_objext conftest$ac_exeext
10329if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10330 (eval $ac_link) 2>conftest.er1
10331 ac_status=$?
10332 grep -v '^ *+' conftest.er1 >conftest.err
10333 rm -f conftest.er1
10334 cat conftest.err >&5
10335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10336 (exit $ac_status); } &&
7357c5b6
AM
10337 { ac_try='test -z "$ac_c_werror_flag"
10338 || test ! -s conftest.err'
ce2cded5
L
10339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10340 (eval $ac_try) 2>&5
10341 ac_status=$?
10342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10343 (exit $ac_status); }; } &&
10344 { ac_try='test -s conftest$ac_exeext'
10345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10346 (eval $ac_try) 2>&5
10347 ac_status=$?
10348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10349 (exit $ac_status); }; }; then
10350 ac_cv_lib_dl_dlopen=yes
10351else
10352 echo "$as_me: failed program was:" >&5
10353sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 10354
ce2cded5 10355ac_cv_lib_dl_dlopen=no
d7040cdb 10356fi
ce2cded5
L
10357rm -f conftest.err conftest.$ac_objext \
10358 conftest$ac_exeext conftest.$ac_ext
10359LIBS=$ac_check_lib_save_LIBS
d7040cdb 10360fi
ce2cded5
L
10361echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10362echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10363if test $ac_cv_lib_dl_dlopen = yes; then
10364 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d7040cdb 10365else
d7040cdb 10366
ce2cded5
L
10367 lt_cv_dlopen="dyld"
10368 lt_cv_dlopen_libs=
10369 lt_cv_dlopen_self=yes
10370
d7040cdb 10371fi
ce2cded5
L
10372
10373 ;;
10374
10375 *)
10376 echo "$as_me:$LINENO: checking for shl_load" >&5
10377echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10378if test "${ac_cv_func_shl_load+set}" = set; then
d7040cdb
SE
10379 echo $ECHO_N "(cached) $ECHO_C" >&6
10380else
ce2cded5
L
10381 cat >conftest.$ac_ext <<_ACEOF
10382/* confdefs.h. */
10383_ACEOF
10384cat confdefs.h >>conftest.$ac_ext
10385cat >>conftest.$ac_ext <<_ACEOF
10386/* end confdefs.h. */
10387/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10388 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10389#define shl_load innocuous_shl_load
d7040cdb 10390
ce2cded5
L
10391/* System header to define __stub macros and hopefully few prototypes,
10392 which can conflict with char shl_load (); below.
10393 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10394 <limits.h> exists even on freestanding compilers. */
d7040cdb 10395
ce2cded5
L
10396#ifdef __STDC__
10397# include <limits.h>
10398#else
10399# include <assert.h>
10400#endif
d7040cdb 10401
ce2cded5 10402#undef shl_load
d7040cdb 10403
ce2cded5
L
10404/* Override any gcc2 internal prototype to avoid an error. */
10405#ifdef __cplusplus
10406extern "C"
10407{
10408#endif
10409/* We use char because int might match the return type of a gcc2
10410 builtin and then its argument prototype would still apply. */
10411char shl_load ();
10412/* The GNU C library defines this for functions which it implements
10413 to always fail with ENOSYS. Some functions are actually named
10414 something starting with __ and the normal name is an alias. */
10415#if defined (__stub_shl_load) || defined (__stub___shl_load)
10416choke me
10417#else
10418char (*f) () = shl_load;
10419#endif
10420#ifdef __cplusplus
10421}
10422#endif
d7040cdb 10423
ce2cded5
L
10424int
10425main ()
10426{
10427return f != shl_load;
10428 ;
10429 return 0;
10430}
10431_ACEOF
10432rm -f conftest.$ac_objext conftest$ac_exeext
10433if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10434 (eval $ac_link) 2>conftest.er1
10435 ac_status=$?
10436 grep -v '^ *+' conftest.er1 >conftest.err
10437 rm -f conftest.er1
10438 cat conftest.err >&5
10439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10440 (exit $ac_status); } &&
7357c5b6
AM
10441 { ac_try='test -z "$ac_c_werror_flag"
10442 || test ! -s conftest.err'
ce2cded5
L
10443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10444 (eval $ac_try) 2>&5
10445 ac_status=$?
10446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10447 (exit $ac_status); }; } &&
10448 { ac_try='test -s conftest$ac_exeext'
10449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10450 (eval $ac_try) 2>&5
10451 ac_status=$?
10452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10453 (exit $ac_status); }; }; then
10454 ac_cv_func_shl_load=yes
10455else
10456 echo "$as_me: failed program was:" >&5
10457sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 10458
ce2cded5
L
10459ac_cv_func_shl_load=no
10460fi
10461rm -f conftest.err conftest.$ac_objext \
10462 conftest$ac_exeext conftest.$ac_ext
10463fi
10464echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10465echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10466if test $ac_cv_func_shl_load = yes; then
10467 lt_cv_dlopen="shl_load"
10468else
10469 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10470echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10471if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10472 echo $ECHO_N "(cached) $ECHO_C" >&6
10473else
10474 ac_check_lib_save_LIBS=$LIBS
10475LIBS="-ldld $LIBS"
10476cat >conftest.$ac_ext <<_ACEOF
10477/* confdefs.h. */
10478_ACEOF
10479cat confdefs.h >>conftest.$ac_ext
10480cat >>conftest.$ac_ext <<_ACEOF
10481/* end confdefs.h. */
d7040cdb 10482
ce2cded5
L
10483/* Override any gcc2 internal prototype to avoid an error. */
10484#ifdef __cplusplus
10485extern "C"
10486#endif
10487/* We use char because int might match the return type of a gcc2
10488 builtin and then its argument prototype would still apply. */
10489char shl_load ();
10490int
10491main ()
10492{
10493shl_load ();
10494 ;
10495 return 0;
10496}
10497_ACEOF
10498rm -f conftest.$ac_objext conftest$ac_exeext
10499if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10500 (eval $ac_link) 2>conftest.er1
d7040cdb 10501 ac_status=$?
ce2cded5
L
10502 grep -v '^ *+' conftest.er1 >conftest.err
10503 rm -f conftest.er1
10504 cat conftest.err >&5
d7040cdb 10505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5 10506 (exit $ac_status); } &&
7357c5b6
AM
10507 { ac_try='test -z "$ac_c_werror_flag"
10508 || test ! -s conftest.err'
ce2cded5
L
10509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10510 (eval $ac_try) 2>&5
d7040cdb
SE
10511 ac_status=$?
10512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
10513 (exit $ac_status); }; } &&
10514 { ac_try='test -s conftest$ac_exeext'
10515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10516 (eval $ac_try) 2>&5
d7040cdb
SE
10517 ac_status=$?
10518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
10519 (exit $ac_status); }; }; then
10520 ac_cv_lib_dld_shl_load=yes
10521else
10522 echo "$as_me: failed program was:" >&5
10523sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 10524
ce2cded5
L
10525ac_cv_lib_dld_shl_load=no
10526fi
10527rm -f conftest.err conftest.$ac_objext \
10528 conftest$ac_exeext conftest.$ac_ext
10529LIBS=$ac_check_lib_save_LIBS
10530fi
10531echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10532echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10533if test $ac_cv_lib_dld_shl_load = yes; then
10534 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10535else
10536 echo "$as_me:$LINENO: checking for dlopen" >&5
10537echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10538if test "${ac_cv_func_dlopen+set}" = set; then
d7040cdb
SE
10539 echo $ECHO_N "(cached) $ECHO_C" >&6
10540else
10541 cat >conftest.$ac_ext <<_ACEOF
10542/* confdefs.h. */
10543_ACEOF
10544cat confdefs.h >>conftest.$ac_ext
10545cat >>conftest.$ac_ext <<_ACEOF
10546/* end confdefs.h. */
ce2cded5
L
10547/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10548 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10549#define dlopen innocuous_dlopen
10550
10551/* System header to define __stub macros and hopefully few prototypes,
10552 which can conflict with char dlopen (); below.
10553 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10554 <limits.h> exists even on freestanding compilers. */
10555
10556#ifdef __STDC__
10557# include <limits.h>
10558#else
10559# include <assert.h>
10560#endif
10561
10562#undef dlopen
10563
10564/* Override any gcc2 internal prototype to avoid an error. */
10565#ifdef __cplusplus
10566extern "C"
10567{
10568#endif
10569/* We use char because int might match the return type of a gcc2
10570 builtin and then its argument prototype would still apply. */
10571char dlopen ();
10572/* The GNU C library defines this for functions which it implements
10573 to always fail with ENOSYS. Some functions are actually named
10574 something starting with __ and the normal name is an alias. */
10575#if defined (__stub_dlopen) || defined (__stub___dlopen)
10576choke me
10577#else
10578char (*f) () = dlopen;
10579#endif
10580#ifdef __cplusplus
10581}
10582#endif
d7040cdb
SE
10583
10584int
10585main ()
10586{
ce2cded5 10587return f != dlopen;
d7040cdb
SE
10588 ;
10589 return 0;
10590}
10591_ACEOF
ce2cded5
L
10592rm -f conftest.$ac_objext conftest$ac_exeext
10593if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10594 (eval $ac_link) 2>conftest.er1
d7040cdb
SE
10595 ac_status=$?
10596 grep -v '^ *+' conftest.er1 >conftest.err
10597 rm -f conftest.er1
10598 cat conftest.err >&5
10599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600 (exit $ac_status); } &&
7357c5b6
AM
10601 { ac_try='test -z "$ac_c_werror_flag"
10602 || test ! -s conftest.err'
d7040cdb
SE
10603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10604 (eval $ac_try) 2>&5
10605 ac_status=$?
10606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607 (exit $ac_status); }; } &&
ce2cded5 10608 { ac_try='test -s conftest$ac_exeext'
d7040cdb
SE
10609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10610 (eval $ac_try) 2>&5
10611 ac_status=$?
10612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613 (exit $ac_status); }; }; then
ce2cded5 10614 ac_cv_func_dlopen=yes
d7040cdb
SE
10615else
10616 echo "$as_me: failed program was:" >&5
10617sed 's/^/| /' conftest.$ac_ext >&5
10618
ce2cded5 10619ac_cv_func_dlopen=no
d7040cdb 10620fi
ce2cded5
L
10621rm -f conftest.err conftest.$ac_objext \
10622 conftest$ac_exeext conftest.$ac_ext
d7040cdb 10623fi
ce2cded5
L
10624echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10625echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10626if test $ac_cv_func_dlopen = yes; then
10627 lt_cv_dlopen="dlopen"
10628else
10629 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10630echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10631if test "${ac_cv_lib_dl_dlopen+set}" = set; then
d7040cdb
SE
10632 echo $ECHO_N "(cached) $ECHO_C" >&6
10633else
ce2cded5
L
10634 ac_check_lib_save_LIBS=$LIBS
10635LIBS="-ldl $LIBS"
10636cat >conftest.$ac_ext <<_ACEOF
d7040cdb
SE
10637/* confdefs.h. */
10638_ACEOF
10639cat confdefs.h >>conftest.$ac_ext
10640cat >>conftest.$ac_ext <<_ACEOF
10641/* end confdefs.h. */
10642
ce2cded5
L
10643/* Override any gcc2 internal prototype to avoid an error. */
10644#ifdef __cplusplus
10645extern "C"
10646#endif
10647/* We use char because int might match the return type of a gcc2
10648 builtin and then its argument prototype would still apply. */
10649char dlopen ();
d7040cdb
SE
10650int
10651main ()
10652{
ce2cded5 10653dlopen ();
d7040cdb
SE
10654 ;
10655 return 0;
10656}
10657_ACEOF
ce2cded5
L
10658rm -f conftest.$ac_objext conftest$ac_exeext
10659if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10660 (eval $ac_link) 2>conftest.er1
d7040cdb
SE
10661 ac_status=$?
10662 grep -v '^ *+' conftest.er1 >conftest.err
10663 rm -f conftest.er1
10664 cat conftest.err >&5
10665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10666 (exit $ac_status); } &&
7357c5b6
AM
10667 { ac_try='test -z "$ac_c_werror_flag"
10668 || test ! -s conftest.err'
d7040cdb
SE
10669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10670 (eval $ac_try) 2>&5
10671 ac_status=$?
10672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10673 (exit $ac_status); }; } &&
ce2cded5 10674 { ac_try='test -s conftest$ac_exeext'
d7040cdb
SE
10675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10676 (eval $ac_try) 2>&5
10677 ac_status=$?
10678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10679 (exit $ac_status); }; }; then
ce2cded5 10680 ac_cv_lib_dl_dlopen=yes
d7040cdb
SE
10681else
10682 echo "$as_me: failed program was:" >&5
10683sed 's/^/| /' conftest.$ac_ext >&5
10684
ce2cded5 10685ac_cv_lib_dl_dlopen=no
d7040cdb 10686fi
ce2cded5
L
10687rm -f conftest.err conftest.$ac_objext \
10688 conftest$ac_exeext conftest.$ac_ext
10689LIBS=$ac_check_lib_save_LIBS
d7040cdb 10690fi
ce2cded5
L
10691echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10692echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10693if test $ac_cv_lib_dl_dlopen = yes; then
10694 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d7040cdb 10695else
ce2cded5
L
10696 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10697echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10698if test "${ac_cv_lib_svld_dlopen+set}" = set; then
d7040cdb
SE
10699 echo $ECHO_N "(cached) $ECHO_C" >&6
10700else
ce2cded5
L
10701 ac_check_lib_save_LIBS=$LIBS
10702LIBS="-lsvld $LIBS"
d7040cdb
SE
10703cat >conftest.$ac_ext <<_ACEOF
10704/* confdefs.h. */
10705_ACEOF
10706cat confdefs.h >>conftest.$ac_ext
10707cat >>conftest.$ac_ext <<_ACEOF
10708/* end confdefs.h. */
d7040cdb 10709
ce2cded5
L
10710/* Override any gcc2 internal prototype to avoid an error. */
10711#ifdef __cplusplus
10712extern "C"
10713#endif
10714/* We use char because int might match the return type of a gcc2
10715 builtin and then its argument prototype would still apply. */
10716char dlopen ();
d7040cdb
SE
10717int
10718main ()
10719{
ce2cded5 10720dlopen ();
d7040cdb
SE
10721 ;
10722 return 0;
10723}
10724_ACEOF
ce2cded5
L
10725rm -f conftest.$ac_objext conftest$ac_exeext
10726if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10727 (eval $ac_link) 2>conftest.er1
d7040cdb
SE
10728 ac_status=$?
10729 grep -v '^ *+' conftest.er1 >conftest.err
10730 rm -f conftest.er1
10731 cat conftest.err >&5
10732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10733 (exit $ac_status); } &&
7357c5b6
AM
10734 { ac_try='test -z "$ac_c_werror_flag"
10735 || test ! -s conftest.err'
d7040cdb
SE
10736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10737 (eval $ac_try) 2>&5
10738 ac_status=$?
10739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10740 (exit $ac_status); }; } &&
ce2cded5 10741 { ac_try='test -s conftest$ac_exeext'
d7040cdb
SE
10742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10743 (eval $ac_try) 2>&5
10744 ac_status=$?
10745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10746 (exit $ac_status); }; }; then
ce2cded5 10747 ac_cv_lib_svld_dlopen=yes
d7040cdb
SE
10748else
10749 echo "$as_me: failed program was:" >&5
10750sed 's/^/| /' conftest.$ac_ext >&5
10751
ce2cded5 10752ac_cv_lib_svld_dlopen=no
d7040cdb 10753fi
ce2cded5
L
10754rm -f conftest.err conftest.$ac_objext \
10755 conftest$ac_exeext conftest.$ac_ext
10756LIBS=$ac_check_lib_save_LIBS
d7040cdb 10757fi
ce2cded5
L
10758echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10759echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10760if test $ac_cv_lib_svld_dlopen = yes; then
10761 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10762else
10763 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10764echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10765if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10766 echo $ECHO_N "(cached) $ECHO_C" >&6
10767else
10768 ac_check_lib_save_LIBS=$LIBS
10769LIBS="-ldld $LIBS"
d7040cdb 10770cat >conftest.$ac_ext <<_ACEOF
d7040cdb
SE
10771/* confdefs.h. */
10772_ACEOF
10773cat confdefs.h >>conftest.$ac_ext
10774cat >>conftest.$ac_ext <<_ACEOF
ce2cded5
L
10775/* end confdefs.h. */
10776
10777/* Override any gcc2 internal prototype to avoid an error. */
10778#ifdef __cplusplus
10779extern "C"
10780#endif
10781/* We use char because int might match the return type of a gcc2
10782 builtin and then its argument prototype would still apply. */
10783char dld_link ();
d7040cdb
SE
10784int
10785main ()
10786{
ce2cded5 10787dld_link ();
d7040cdb
SE
10788 ;
10789 return 0;
10790}
10791_ACEOF
ce2cded5
L
10792rm -f conftest.$ac_objext conftest$ac_exeext
10793if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10794 (eval $ac_link) 2>conftest.er1
d7040cdb
SE
10795 ac_status=$?
10796 grep -v '^ *+' conftest.er1 >conftest.err
10797 rm -f conftest.er1
10798 cat conftest.err >&5
10799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10800 (exit $ac_status); } &&
7357c5b6
AM
10801 { ac_try='test -z "$ac_c_werror_flag"
10802 || test ! -s conftest.err'
d7040cdb
SE
10803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10804 (eval $ac_try) 2>&5
10805 ac_status=$?
10806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807 (exit $ac_status); }; } &&
ce2cded5 10808 { ac_try='test -s conftest$ac_exeext'
d7040cdb
SE
10809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10810 (eval $ac_try) 2>&5
10811 ac_status=$?
10812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813 (exit $ac_status); }; }; then
ce2cded5 10814 ac_cv_lib_dld_dld_link=yes
d7040cdb
SE
10815else
10816 echo "$as_me: failed program was:" >&5
10817sed 's/^/| /' conftest.$ac_ext >&5
10818
ce2cded5 10819ac_cv_lib_dld_dld_link=no
d7040cdb 10820fi
ce2cded5
L
10821rm -f conftest.err conftest.$ac_objext \
10822 conftest$ac_exeext conftest.$ac_ext
10823LIBS=$ac_check_lib_save_LIBS
10824fi
10825echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10826echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10827if test $ac_cv_lib_dld_dld_link = yes; then
10828 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10829fi
10830
10831
10832fi
10833
10834
10835fi
10836
10837
10838fi
10839
10840
10841fi
10842
10843
10844fi
10845
10846 ;;
10847 esac
10848
10849 if test "x$lt_cv_dlopen" != xno; then
10850 enable_dlopen=yes
10851 else
10852 enable_dlopen=no
10853 fi
10854
10855 case $lt_cv_dlopen in
10856 dlopen)
10857 save_CPPFLAGS="$CPPFLAGS"
10858 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10859
10860 save_LDFLAGS="$LDFLAGS"
10861 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10862
10863 save_LIBS="$LIBS"
10864 LIBS="$lt_cv_dlopen_libs $LIBS"
10865
10866 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10867echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10868if test "${lt_cv_dlopen_self+set}" = set; then
10869 echo $ECHO_N "(cached) $ECHO_C" >&6
10870else
10871 if test "$cross_compiling" = yes; then :
10872 lt_cv_dlopen_self=cross
10873else
10874 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10875 lt_status=$lt_dlunknown
10876 cat > conftest.$ac_ext <<_LT_EOF
da594c4a 10877#line 10512 "configure"
ce2cded5
L
10878#include "confdefs.h"
10879
10880#if HAVE_DLFCN_H
10881#include <dlfcn.h>
10882#endif
10883
10884#include <stdio.h>
10885
10886#ifdef RTLD_GLOBAL
10887# define LT_DLGLOBAL RTLD_GLOBAL
10888#else
10889# ifdef DL_GLOBAL
10890# define LT_DLGLOBAL DL_GLOBAL
10891# else
10892# define LT_DLGLOBAL 0
10893# endif
10894#endif
10895
10896/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10897 find out it does not work in some platform. */
10898#ifndef LT_DLLAZY_OR_NOW
10899# ifdef RTLD_LAZY
10900# define LT_DLLAZY_OR_NOW RTLD_LAZY
10901# else
10902# ifdef DL_LAZY
10903# define LT_DLLAZY_OR_NOW DL_LAZY
10904# else
10905# ifdef RTLD_NOW
10906# define LT_DLLAZY_OR_NOW RTLD_NOW
10907# else
10908# ifdef DL_NOW
10909# define LT_DLLAZY_OR_NOW DL_NOW
10910# else
10911# define LT_DLLAZY_OR_NOW 0
10912# endif
10913# endif
10914# endif
10915# endif
10916#endif
10917
10918#ifdef __cplusplus
10919extern "C" void exit (int);
10920#endif
10921
10922void fnord() { int i=42;}
10923int main ()
d7040cdb 10924{
ce2cded5
L
10925 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10926 int status = $lt_dlunknown;
10927
10928 if (self)
10929 {
10930 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10931 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10932 /* dlclose (self); */
10933 }
10934 else
10935 puts (dlerror ());
10936
10937 exit (status);
d7040cdb 10938}
ce2cded5
L
10939_LT_EOF
10940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10941 (eval $ac_link) 2>&5
d7040cdb
SE
10942 ac_status=$?
10943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
10944 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10945 (./conftest; exit; ) >&5 2>/dev/null
10946 lt_status=$?
10947 case x$lt_status in
10948 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10949 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10950 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10951 esac
10952 else :
10953 # compilation failed
10954 lt_cv_dlopen_self=no
10955 fi
10956fi
10957rm -fr conftest*
10958
10959
10960fi
10961echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10962echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10963
10964 if test "x$lt_cv_dlopen_self" = xyes; then
10965 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10966 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10967echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10968if test "${lt_cv_dlopen_self_static+set}" = set; then
10969 echo $ECHO_N "(cached) $ECHO_C" >&6
10970else
10971 if test "$cross_compiling" = yes; then :
10972 lt_cv_dlopen_self_static=cross
10973else
10974 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10975 lt_status=$lt_dlunknown
10976 cat > conftest.$ac_ext <<_LT_EOF
da594c4a 10977#line 10612 "configure"
ce2cded5
L
10978#include "confdefs.h"
10979
10980#if HAVE_DLFCN_H
10981#include <dlfcn.h>
10982#endif
10983
10984#include <stdio.h>
10985
10986#ifdef RTLD_GLOBAL
10987# define LT_DLGLOBAL RTLD_GLOBAL
10988#else
10989# ifdef DL_GLOBAL
10990# define LT_DLGLOBAL DL_GLOBAL
10991# else
10992# define LT_DLGLOBAL 0
10993# endif
10994#endif
10995
10996/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10997 find out it does not work in some platform. */
10998#ifndef LT_DLLAZY_OR_NOW
10999# ifdef RTLD_LAZY
11000# define LT_DLLAZY_OR_NOW RTLD_LAZY
11001# else
11002# ifdef DL_LAZY
11003# define LT_DLLAZY_OR_NOW DL_LAZY
11004# else
11005# ifdef RTLD_NOW
11006# define LT_DLLAZY_OR_NOW RTLD_NOW
11007# else
11008# ifdef DL_NOW
11009# define LT_DLLAZY_OR_NOW DL_NOW
11010# else
11011# define LT_DLLAZY_OR_NOW 0
11012# endif
11013# endif
11014# endif
11015# endif
11016#endif
11017
11018#ifdef __cplusplus
11019extern "C" void exit (int);
11020#endif
11021
11022void fnord() { int i=42;}
11023int main ()
11024{
11025 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11026 int status = $lt_dlunknown;
11027
11028 if (self)
11029 {
11030 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11031 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11032 /* dlclose (self); */
11033 }
11034 else
11035 puts (dlerror ());
11036
11037 exit (status);
11038}
11039_LT_EOF
11040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11041 (eval $ac_link) 2>&5
d7040cdb
SE
11042 ac_status=$?
11043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
11044 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11045 (./conftest; exit; ) >&5 2>/dev/null
11046 lt_status=$?
11047 case x$lt_status in
11048 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11049 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11050 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11051 esac
11052 else :
11053 # compilation failed
11054 lt_cv_dlopen_self_static=no
11055 fi
11056fi
11057rm -fr conftest*
11058
d7040cdb
SE
11059
11060fi
ce2cded5
L
11061echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11062echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11063 fi
11064
11065 CPPFLAGS="$save_CPPFLAGS"
11066 LDFLAGS="$save_LDFLAGS"
11067 LIBS="$save_LIBS"
11068 ;;
11069 esac
11070
11071 case $lt_cv_dlopen_self in
11072 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11073 *) enable_dlopen_self=unknown ;;
11074 esac
11075
11076 case $lt_cv_dlopen_self_static in
11077 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11078 *) enable_dlopen_self_static=unknown ;;
11079 esac
d7040cdb
SE
11080fi
11081
ce2cded5
L
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098striplib=
11099old_striplib=
11100echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11101echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11102if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11103 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11104 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11105 echo "$as_me:$LINENO: result: yes" >&5
11106echo "${ECHO_T}yes" >&6
d7040cdb 11107else
ce2cded5
L
11108# FIXME - insert some real tests, host_os isn't really good enough
11109 case $host_os in
11110 darwin*)
11111 if test -n "$STRIP" ; then
11112 striplib="$STRIP -x"
11113 old_striplib="$STRIP -S"
11114 echo "$as_me:$LINENO: result: yes" >&5
11115echo "${ECHO_T}yes" >&6
11116 else
11117 echo "$as_me:$LINENO: result: no" >&5
11118echo "${ECHO_T}no" >&6
11119 fi
11120 ;;
11121 *)
11122 echo "$as_me:$LINENO: result: no" >&5
11123echo "${ECHO_T}no" >&6
11124 ;;
11125 esac
11126fi
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139 # Report which library types will actually be built
11140 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11141echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11142 echo "$as_me:$LINENO: result: $can_build_shared" >&5
11143echo "${ECHO_T}$can_build_shared" >&6
11144
11145 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11146echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11147 test "$can_build_shared" = "no" && enable_shared=no
11148
11149 # On AIX, shared libraries and static libraries use the same namespace, and
11150 # are all built from PIC.
11151 case $host_os in
11152 aix3*)
11153 test "$enable_shared" = yes && enable_static=no
11154 if test -n "$RANLIB"; then
11155 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11156 postinstall_cmds='$RANLIB $lib'
11157 fi
11158 ;;
11159
50e7d84b 11160 aix[4-9]*)
ce2cded5
L
11161 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11162 test "$enable_shared" = yes && enable_static=no
11163 fi
11164 ;;
11165 esac
11166 echo "$as_me:$LINENO: result: $enable_shared" >&5
11167echo "${ECHO_T}$enable_shared" >&6
11168
11169 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11170echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11171 # Make sure either enable_shared or enable_static is yes.
11172 test "$enable_shared" = yes || enable_static=yes
11173 echo "$as_me:$LINENO: result: $enable_static" >&5
11174echo "${ECHO_T}$enable_static" >&6
11175
11176
11177
d7040cdb
SE
11178
11179fi
d7040cdb
SE
11180ac_ext=c
11181ac_cpp='$CPP $CPPFLAGS'
11182ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11183ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11184ac_compiler_gnu=$ac_cv_c_compiler_gnu
11185
ce2cded5 11186CC="$lt_save_CC"
67310ccd 11187
67310ccd
AM
11188
11189
d7040cdb
SE
11190
11191
d7040cdb 11192
d7040cdb 11193
d7040cdb 11194
ce2cded5
L
11195
11196
11197
11198
11199
11200 ac_config_commands="$ac_config_commands libtool"
11201
11202
11203
11204
11205# Only expand once:
11206
d7040cdb
SE
11207
11208
19aec961 11209ALL_LINGUAS="fr sv tr es da vi zh_CN zh_TW ga fi"
d7040cdb
SE
11210# If we haven't got the data from the intl directory,
11211# assume NLS is disabled.
11212USE_NLS=no
11213LIBINTL=
11214LIBINTL_DEP=
11215INCINTL=
11216XGETTEXT=
11217GMSGFMT=
11218POSUB=
11219
11220if test -f ../intl/config.intl; then
11221 . ../intl/config.intl
11222fi
11223echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11224echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
11225if test x"$USE_NLS" != xyes; then
11226 echo "$as_me:$LINENO: result: no" >&5
11227echo "${ECHO_T}no" >&6
11228else
11229 echo "$as_me:$LINENO: result: yes" >&5
11230echo "${ECHO_T}yes" >&6
11231
11232cat >>confdefs.h <<\_ACEOF
11233#define ENABLE_NLS 1
11234_ACEOF
11235
11236
11237 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
11238echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
11239 # Look for .po and .gmo files in the source directory.
11240 CATALOGS=
11241 XLINGUAS=
11242 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11243 # If there aren't any .gmo files the shell will give us the
11244 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11245 # weeded out.
11246 case "$cat" in *\**)
11247 continue;;
11248 esac
11249 # The quadruple backslash is collapsed to a double backslash
11250 # by the backticks, then collapsed again by the double quotes,
11251 # leaving us with one backslash in the sed expression (right
11252 # before the dot that mustn't act as a wildcard).
11253 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11254 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11255 # The user is allowed to set LINGUAS to a list of languages to
11256 # install catalogs for. If it's empty that means "all of them."
11257 if test "x$LINGUAS" = x; then
11258 CATALOGS="$CATALOGS $cat"
11259 XLINGUAS="$XLINGUAS $lang"
11260 else
11261 case "$LINGUAS" in *$lang*)
11262 CATALOGS="$CATALOGS $cat"
11263 XLINGUAS="$XLINGUAS $lang"
11264 ;;
11265 esac
11266 fi
11267 done
11268 LINGUAS="$XLINGUAS"
11269 echo "$as_me:$LINENO: result: $LINGUAS" >&5
11270echo "${ECHO_T}$LINGUAS" >&6
11271
11272
11273 DATADIRNAME=share
11274
11275 INSTOBJEXT=.mo
11276
11277 GENCAT=gencat
11278
11279 CATOBJEXT=.gmo
11280
11281fi
11282
11283 MKINSTALLDIRS=
11284 if test -n "$ac_aux_dir"; then
11285 case "$ac_aux_dir" in
11286 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
11287 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
11288 esac
11289 fi
11290 if test -z "$MKINSTALLDIRS"; then
11291 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
11292 fi
11293
11294
11295
11296 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11297echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
11298 # Check whether --enable-nls or --disable-nls was given.
11299if test "${enable_nls+set}" = set; then
11300 enableval="$enable_nls"
11301 USE_NLS=$enableval
11302else
11303 USE_NLS=yes
11304fi;
11305 echo "$as_me:$LINENO: result: $USE_NLS" >&5
11306echo "${ECHO_T}$USE_NLS" >&6
11307
11308
11309
11310
11311
11312
11313# Prepare PATH_SEPARATOR.
11314# The user is always right.
11315if test "${PATH_SEPARATOR+set}" != set; then
11316 echo "#! /bin/sh" >conf$$.sh
11317 echo "exit 0" >>conf$$.sh
11318 chmod +x conf$$.sh
11319 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11320 PATH_SEPARATOR=';'
11321 else
11322 PATH_SEPARATOR=:
11323 fi
11324 rm -f conf$$.sh
11325fi
11326
11327# Find out how to test for executable files. Don't use a zero-byte file,
11328# as systems may use methods other than mode bits to determine executability.
11329cat >conf$$.file <<_ASEOF
11330#! /bin/sh
11331exit 0
11332_ASEOF
11333chmod +x conf$$.file
11334if test -x conf$$.file >/dev/null 2>&1; then
11335 ac_executable_p="test -x"
11336else
11337 ac_executable_p="test -f"
11338fi
11339rm -f conf$$.file
11340
11341# Extract the first word of "msgfmt", so it can be a program name with args.
11342set dummy msgfmt; ac_word=$2
11343echo "$as_me:$LINENO: checking for $ac_word" >&5
11344echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11345if test "${ac_cv_path_MSGFMT+set}" = set; then
11346 echo $ECHO_N "(cached) $ECHO_C" >&6
11347else
11348 case "$MSGFMT" in
11349 [\\/]* | ?:[\\/]*)
11350 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11351 ;;
11352 *)
11353 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11354 for ac_dir in $PATH; do
11355 IFS="$ac_save_IFS"
11356 test -z "$ac_dir" && ac_dir=.
11357 for ac_exec_ext in '' $ac_executable_extensions; do
11358 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11359 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
11360 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11361 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
11362 break 2
11363 fi
11364 fi
11365 done
11366 done
11367 IFS="$ac_save_IFS"
11368 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11369 ;;
11370esac
11371fi
11372MSGFMT="$ac_cv_path_MSGFMT"
11373if test "$MSGFMT" != ":"; then
11374 echo "$as_me:$LINENO: result: $MSGFMT" >&5
11375echo "${ECHO_T}$MSGFMT" >&6
11376else
11377 echo "$as_me:$LINENO: result: no" >&5
11378echo "${ECHO_T}no" >&6
11379fi
11380
11381 # Extract the first word of "gmsgfmt", so it can be a program name with args.
11382set dummy gmsgfmt; ac_word=$2
11383echo "$as_me:$LINENO: checking for $ac_word" >&5
11384echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11385if test "${ac_cv_path_GMSGFMT+set}" = set; then
11386 echo $ECHO_N "(cached) $ECHO_C" >&6
11387else
11388 case $GMSGFMT in
11389 [\\/]* | ?:[\\/]*)
11390 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11391 ;;
11392 *)
11393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11394for as_dir in $PATH
11395do
11396 IFS=$as_save_IFS
11397 test -z "$as_dir" && as_dir=.
11398 for ac_exec_ext in '' $ac_executable_extensions; do
11399 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11400 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
11401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11402 break 2
11403 fi
11404done
11405done
11406
11407 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11408 ;;
11409esac
11410fi
11411GMSGFMT=$ac_cv_path_GMSGFMT
252b5132 11412
d7040cdb
SE
11413if test -n "$GMSGFMT"; then
11414 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
11415echo "${ECHO_T}$GMSGFMT" >&6
11416else
11417 echo "$as_me:$LINENO: result: no" >&5
11418echo "${ECHO_T}no" >&6
20e95c23 11419fi
42ecbf5e 11420
20e95c23 11421
252b5132 11422
d7040cdb
SE
11423# Prepare PATH_SEPARATOR.
11424# The user is always right.
11425if test "${PATH_SEPARATOR+set}" != set; then
11426 echo "#! /bin/sh" >conf$$.sh
11427 echo "exit 0" >>conf$$.sh
11428 chmod +x conf$$.sh
11429 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11430 PATH_SEPARATOR=';'
11431 else
11432 PATH_SEPARATOR=:
11433 fi
11434 rm -f conf$$.sh
20e95c23 11435fi
252b5132 11436
d7040cdb
SE
11437# Find out how to test for executable files. Don't use a zero-byte file,
11438# as systems may use methods other than mode bits to determine executability.
11439cat >conf$$.file <<_ASEOF
11440#! /bin/sh
11441exit 0
11442_ASEOF
11443chmod +x conf$$.file
11444if test -x conf$$.file >/dev/null 2>&1; then
11445 ac_executable_p="test -x"
20e95c23 11446else
d7040cdb
SE
11447 ac_executable_p="test -f"
11448fi
11449rm -f conf$$.file
20e95c23 11450
d7040cdb
SE
11451# Extract the first word of "xgettext", so it can be a program name with args.
11452set dummy xgettext; ac_word=$2
11453echo "$as_me:$LINENO: checking for $ac_word" >&5
11454echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11455if test "${ac_cv_path_XGETTEXT+set}" = set; then
11456 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11457else
d7040cdb
SE
11458 case "$XGETTEXT" in
11459 [\\/]* | ?:[\\/]*)
11460 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11461 ;;
11462 *)
11463 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11464 for ac_dir in $PATH; do
11465 IFS="$ac_save_IFS"
11466 test -z "$ac_dir" && ac_dir=.
11467 for ac_exec_ext in '' $ac_executable_extensions; do
11468 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11469 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11470 (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
11471 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
11472 break 2
11473 fi
11474 fi
11475 done
11476 done
11477 IFS="$ac_save_IFS"
11478 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11479 ;;
11480esac
252b5132 11481fi
d7040cdb
SE
11482XGETTEXT="$ac_cv_path_XGETTEXT"
11483if test "$XGETTEXT" != ":"; then
11484 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
11485echo "${ECHO_T}$XGETTEXT" >&6
d5fbea21 11486else
d7040cdb
SE
11487 echo "$as_me:$LINENO: result: no" >&5
11488echo "${ECHO_T}no" >&6
d5fbea21
DJ
11489fi
11490
d7040cdb 11491 rm -f messages.po
d5fbea21 11492
20e95c23 11493
d7040cdb
SE
11494# Prepare PATH_SEPARATOR.
11495# The user is always right.
11496if test "${PATH_SEPARATOR+set}" != set; then
11497 echo "#! /bin/sh" >conf$$.sh
11498 echo "exit 0" >>conf$$.sh
11499 chmod +x conf$$.sh
11500 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11501 PATH_SEPARATOR=';'
11502 else
11503 PATH_SEPARATOR=:
11504 fi
11505 rm -f conf$$.sh
11506fi
20e95c23 11507
d7040cdb
SE
11508# Find out how to test for executable files. Don't use a zero-byte file,
11509# as systems may use methods other than mode bits to determine executability.
11510cat >conf$$.file <<_ASEOF
11511#! /bin/sh
11512exit 0
11513_ASEOF
11514chmod +x conf$$.file
11515if test -x conf$$.file >/dev/null 2>&1; then
11516 ac_executable_p="test -x"
11517else
11518 ac_executable_p="test -f"
11519fi
11520rm -f conf$$.file
20e95c23 11521
d7040cdb
SE
11522# Extract the first word of "msgmerge", so it can be a program name with args.
11523set dummy msgmerge; ac_word=$2
11524echo "$as_me:$LINENO: checking for $ac_word" >&5
11525echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11526if test "${ac_cv_path_MSGMERGE+set}" = set; then
11527 echo $ECHO_N "(cached) $ECHO_C" >&6
11528else
11529 case "$MSGMERGE" in
11530 [\\/]* | ?:[\\/]*)
11531 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11532 ;;
11533 *)
11534 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11535 for ac_dir in $PATH; do
11536 IFS="$ac_save_IFS"
11537 test -z "$ac_dir" && ac_dir=.
11538 for ac_exec_ext in '' $ac_executable_extensions; do
11539 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11540 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
11541 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11542 break 2
11543 fi
11544 fi
11545 done
11546 done
11547 IFS="$ac_save_IFS"
11548 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11549 ;;
11550esac
11551fi
11552MSGMERGE="$ac_cv_path_MSGMERGE"
11553if test "$MSGMERGE" != ":"; then
11554 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
11555echo "${ECHO_T}$MSGMERGE" >&6
11556else
11557 echo "$as_me:$LINENO: result: no" >&5
11558echo "${ECHO_T}no" >&6
11559fi
20e95c23
DJ
11560
11561
d7040cdb
SE
11562 if test "$GMSGFMT" != ":"; then
11563 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
11564 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11565 : ;
11566 else
11567 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
11568 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
11569echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
11570 GMSGFMT=":"
11571 fi
11572 fi
20e95c23 11573
d7040cdb
SE
11574 if test "$XGETTEXT" != ":"; then
11575 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11576 (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
11577 : ;
11578 else
11579 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
11580echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
11581 XGETTEXT=":"
11582 fi
11583 rm -f messages.po
20e95c23 11584 fi
42ecbf5e 11585
d7040cdb 11586 ac_config_commands="$ac_config_commands default-1"
252b5132 11587
42ecbf5e 11588
252b5132 11589
42ecbf5e
DJ
11590
11591
d7040cdb 11592for ac_prog in 'bison -y' byacc
20e95c23 11593do
d7040cdb
SE
11594 # Extract the first word of "$ac_prog", so it can be a program name with args.
11595set dummy $ac_prog; ac_word=$2
11596echo "$as_me:$LINENO: checking for $ac_word" >&5
11597echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11598if test "${ac_cv_prog_YACC+set}" = set; then
11599 echo $ECHO_N "(cached) $ECHO_C" >&6
20e95c23 11600else
d7040cdb
SE
11601 if test -n "$YACC"; then
11602 ac_cv_prog_YACC="$YACC" # Let the user override the test.
42ecbf5e 11603else
d7040cdb
SE
11604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11605for as_dir in $PATH
11606do
11607 IFS=$as_save_IFS
11608 test -z "$as_dir" && as_dir=.
11609 for ac_exec_ext in '' $ac_executable_extensions; do
11610 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11611 ac_cv_prog_YACC="$ac_prog"
11612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11613 break 2
11614 fi
11615done
11616done
42ecbf5e 11617
42ecbf5e 11618fi
e5a52504 11619fi
d7040cdb
SE
11620YACC=$ac_cv_prog_YACC
11621if test -n "$YACC"; then
11622 echo "$as_me:$LINENO: result: $YACC" >&5
11623echo "${ECHO_T}$YACC" >&6
42ecbf5e 11624else
d7040cdb
SE
11625 echo "$as_me:$LINENO: result: no" >&5
11626echo "${ECHO_T}no" >&6
42ecbf5e 11627fi
252b5132 11628
d7040cdb 11629 test -n "$YACC" && break
42ecbf5e 11630done
d7040cdb 11631test -n "$YACC" || YACC="yacc"
d15b04bd 11632
d7040cdb
SE
11633for ac_prog in flex lex
11634do
11635 # Extract the first word of "$ac_prog", so it can be a program name with args.
11636set dummy $ac_prog; ac_word=$2
11637echo "$as_me:$LINENO: checking for $ac_word" >&5
11638echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11639if test "${ac_cv_prog_LEX+set}" = set; then
20e95c23 11640 echo $ECHO_N "(cached) $ECHO_C" >&6
d15b04bd 11641else
d7040cdb
SE
11642 if test -n "$LEX"; then
11643 ac_cv_prog_LEX="$LEX" # Let the user override the test.
11644else
11645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11646for as_dir in $PATH
11647do
11648 IFS=$as_save_IFS
11649 test -z "$as_dir" && as_dir=.
11650 for ac_exec_ext in '' $ac_executable_extensions; do
11651 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11652 ac_cv_prog_LEX="$ac_prog"
11653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11654 break 2
11655 fi
11656done
11657done
11658
11659fi
11660fi
11661LEX=$ac_cv_prog_LEX
11662if test -n "$LEX"; then
11663 echo "$as_me:$LINENO: result: $LEX" >&5
11664echo "${ECHO_T}$LEX" >&6
11665else
11666 echo "$as_me:$LINENO: result: no" >&5
11667echo "${ECHO_T}no" >&6
d15b04bd 11668fi
e5a52504 11669
d7040cdb
SE
11670 test -n "$LEX" && break
11671done
11672test -n "$LEX" || LEX=":"
42ecbf5e 11673
d7040cdb
SE
11674if test -z "$LEXLIB"
11675then
11676 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
11677echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
11678if test "${ac_cv_lib_fl_yywrap+set}" = set; then
42ecbf5e
DJ
11679 echo $ECHO_N "(cached) $ECHO_C" >&6
11680else
d7040cdb
SE
11681 ac_check_lib_save_LIBS=$LIBS
11682LIBS="-lfl $LIBS"
11683cat >conftest.$ac_ext <<_ACEOF
42ecbf5e
DJ
11684/* confdefs.h. */
11685_ACEOF
11686cat confdefs.h >>conftest.$ac_ext
11687cat >>conftest.$ac_ext <<_ACEOF
11688/* end confdefs.h. */
11689
d7040cdb
SE
11690/* Override any gcc2 internal prototype to avoid an error. */
11691#ifdef __cplusplus
11692extern "C"
11693#endif
11694/* We use char because int might match the return type of a gcc2
11695 builtin and then its argument prototype would still apply. */
11696char yywrap ();
42ecbf5e
DJ
11697int
11698main ()
11699{
d7040cdb 11700yywrap ();
42ecbf5e
DJ
11701 ;
11702 return 0;
11703}
11704_ACEOF
d7040cdb
SE
11705rm -f conftest.$ac_objext conftest$ac_exeext
11706if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11707 (eval $ac_link) 2>conftest.er1
42ecbf5e
DJ
11708 ac_status=$?
11709 grep -v '^ *+' conftest.er1 >conftest.err
11710 rm -f conftest.er1
11711 cat conftest.err >&5
11712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11713 (exit $ac_status); } &&
7357c5b6
AM
11714 { ac_try='test -z "$ac_c_werror_flag"
11715 || test ! -s conftest.err'
42ecbf5e
DJ
11716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11717 (eval $ac_try) 2>&5
11718 ac_status=$?
11719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11720 (exit $ac_status); }; } &&
d7040cdb 11721 { ac_try='test -s conftest$ac_exeext'
42ecbf5e
DJ
11722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11723 (eval $ac_try) 2>&5
11724 ac_status=$?
11725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11726 (exit $ac_status); }; }; then
d7040cdb 11727 ac_cv_lib_fl_yywrap=yes
42ecbf5e
DJ
11728else
11729 echo "$as_me: failed program was:" >&5
11730sed 's/^/| /' conftest.$ac_ext >&5
11731
d7040cdb 11732ac_cv_lib_fl_yywrap=no
42ecbf5e 11733fi
d7040cdb
SE
11734rm -f conftest.err conftest.$ac_objext \
11735 conftest$ac_exeext conftest.$ac_ext
11736LIBS=$ac_check_lib_save_LIBS
42ecbf5e 11737fi
d7040cdb
SE
11738echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
11739echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
11740if test $ac_cv_lib_fl_yywrap = yes; then
11741 LEXLIB="-lfl"
20e95c23 11742else
d7040cdb
SE
11743 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
11744echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
11745if test "${ac_cv_lib_l_yywrap+set}" = set; then
11746 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11747else
d7040cdb
SE
11748 ac_check_lib_save_LIBS=$LIBS
11749LIBS="-ll $LIBS"
11750cat >conftest.$ac_ext <<_ACEOF
20e95c23 11751/* confdefs.h. */
42ecbf5e 11752_ACEOF
20e95c23
DJ
11753cat confdefs.h >>conftest.$ac_ext
11754cat >>conftest.$ac_ext <<_ACEOF
11755/* end confdefs.h. */
20e95c23 11756
d7040cdb
SE
11757/* Override any gcc2 internal prototype to avoid an error. */
11758#ifdef __cplusplus
11759extern "C"
11760#endif
11761/* We use char because int might match the return type of a gcc2
11762 builtin and then its argument prototype would still apply. */
11763char yywrap ();
20e95c23
DJ
11764int
11765main ()
11766{
d7040cdb
SE
11767yywrap ();
11768 ;
11769 return 0;
20e95c23
DJ
11770}
11771_ACEOF
d7040cdb 11772rm -f conftest.$ac_objext conftest$ac_exeext
20e95c23 11773if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d7040cdb 11774 (eval $ac_link) 2>conftest.er1
42ecbf5e 11775 ac_status=$?
d7040cdb
SE
11776 grep -v '^ *+' conftest.er1 >conftest.err
11777 rm -f conftest.er1
11778 cat conftest.err >&5
42ecbf5e 11779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb 11780 (exit $ac_status); } &&
7357c5b6
AM
11781 { ac_try='test -z "$ac_c_werror_flag"
11782 || test ! -s conftest.err'
d7040cdb
SE
11783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11784 (eval $ac_try) 2>&5
11785 ac_status=$?
11786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11787 (exit $ac_status); }; } &&
11788 { ac_try='test -s conftest$ac_exeext'
20e95c23
DJ
11789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11790 (eval $ac_try) 2>&5
11791 ac_status=$?
11792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793 (exit $ac_status); }; }; then
d7040cdb 11794 ac_cv_lib_l_yywrap=yes
252b5132 11795else
d7040cdb 11796 echo "$as_me: failed program was:" >&5
20e95c23
DJ
11797sed 's/^/| /' conftest.$ac_ext >&5
11798
d7040cdb 11799ac_cv_lib_l_yywrap=no
252b5132 11800fi
d7040cdb
SE
11801rm -f conftest.err conftest.$ac_objext \
11802 conftest$ac_exeext conftest.$ac_ext
11803LIBS=$ac_check_lib_save_LIBS
20e95c23 11804fi
d7040cdb
SE
11805echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
11806echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
11807if test $ac_cv_lib_l_yywrap = yes; then
11808 LEXLIB="-ll"
20e95c23 11809fi
20e95c23
DJ
11810
11811fi
11812
d7040cdb 11813fi
20e95c23 11814
d7040cdb
SE
11815if test "x$LEX" != "x:"; then
11816 echo "$as_me:$LINENO: checking lex output file root" >&5
11817echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
11818if test "${ac_cv_prog_lex_root+set}" = set; then
42ecbf5e 11819 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11820else
d7040cdb
SE
11821 # The minimal lex program is just a single line: %%. But some broken lexes
11822# (Solaris, I think it was) want two %% lines, so accommodate them.
11823cat >conftest.l <<_ACEOF
11824%%
11825%%
42ecbf5e 11826_ACEOF
d7040cdb
SE
11827{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
11828 (eval $LEX conftest.l) 2>&5
11829 ac_status=$?
11830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11831 (exit $ac_status); }
11832if test -f lex.yy.c; then
11833 ac_cv_prog_lex_root=lex.yy
11834elif test -f lexyy.c; then
11835 ac_cv_prog_lex_root=lexyy
11836else
11837 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
11838echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
11839 { (exit 1); exit 1; }; }
11840fi
11841fi
11842echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
11843echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
11844rm -f conftest.l
11845LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
20e95c23 11846
d7040cdb
SE
11847echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
11848echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
11849if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
11850 echo $ECHO_N "(cached) $ECHO_C" >&6
11851else
11852 # POSIX says lex can declare yytext either as a pointer or an array; the
11853# default is implementation-dependent. Figure out which it is, since
11854# not all implementations provide the %pointer and %array declarations.
11855ac_cv_prog_lex_yytext_pointer=no
11856echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
11857ac_save_LIBS=$LIBS
11858LIBS="$LIBS $LEXLIB"
11859cat >conftest.$ac_ext <<_ACEOF
11860`cat $LEX_OUTPUT_ROOT.c`
20e95c23 11861_ACEOF
d7040cdb
SE
11862rm -f conftest.$ac_objext conftest$ac_exeext
11863if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11864 (eval $ac_link) 2>conftest.er1
42ecbf5e
DJ
11865 ac_status=$?
11866 grep -v '^ *+' conftest.er1 >conftest.err
11867 rm -f conftest.er1
11868 cat conftest.err >&5
11869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11870 (exit $ac_status); } &&
7357c5b6
AM
11871 { ac_try='test -z "$ac_c_werror_flag"
11872 || test ! -s conftest.err'
42ecbf5e
DJ
11873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11874 (eval $ac_try) 2>&5
11875 ac_status=$?
11876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11877 (exit $ac_status); }; } &&
d7040cdb 11878 { ac_try='test -s conftest$ac_exeext'
42ecbf5e
DJ
11879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11880 (eval $ac_try) 2>&5
11881 ac_status=$?
11882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883 (exit $ac_status); }; }; then
d7040cdb
SE
11884 ac_cv_prog_lex_yytext_pointer=yes
11885else
11886 echo "$as_me: failed program was:" >&5
11887sed 's/^/| /' conftest.$ac_ext >&5
11888
11889fi
11890rm -f conftest.err conftest.$ac_objext \
11891 conftest$ac_exeext conftest.$ac_ext
11892LIBS=$ac_save_LIBS
11893rm -f "${LEX_OUTPUT_ROOT}.c"
11894
11895fi
11896echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
11897echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
11898if test $ac_cv_prog_lex_yytext_pointer = yes; then
11899
11900cat >>confdefs.h <<\_ACEOF
11901#define YYTEXT_POINTER 1
11902_ACEOF
11903
11904fi
11905
11906fi
11907if test "$LEX" = :; then
11908 LEX=${am_missing_run}flex
11909fi
11910
11911echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11912echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11913 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11914if test "${enable_maintainer_mode+set}" = set; then
11915 enableval="$enable_maintainer_mode"
11916 USE_MAINTAINER_MODE=$enableval
252b5132 11917else
d7040cdb
SE
11918 USE_MAINTAINER_MODE=no
11919fi;
11920 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
11921echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
42ecbf5e 11922
d7040cdb
SE
11923
11924if test $USE_MAINTAINER_MODE = yes; then
11925 MAINTAINER_MODE_TRUE=
11926 MAINTAINER_MODE_FALSE='#'
11927else
11928 MAINTAINER_MODE_TRUE='#'
11929 MAINTAINER_MODE_FALSE=
252b5132 11930fi
252b5132 11931
d7040cdb
SE
11932 MAINT=$MAINTAINER_MODE_TRUE
11933
11934
11935
11936
11937if false; then
11938 GENINSRC_NEVER_TRUE=
11939 GENINSRC_NEVER_FALSE='#'
11940else
11941 GENINSRC_NEVER_TRUE='#'
11942 GENINSRC_NEVER_FALSE=
252b5132
RH
11943fi
11944
d7040cdb
SE
11945
11946. ${srcdir}/configure.host
11947
11948
11949
11950
252b5132
RH
11951
11952
42ecbf5e
DJ
11953
11954
11955
11956
ebe1fac1 11957
a3ffa599
L
11958
11959
11960for ac_header in string.h strings.h stdlib.h unistd.h elf-hints.h limits.h sys/param.h
252b5132 11961do
42ecbf5e
DJ
11962as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11963if eval "test \"\${$as_ac_Header+set}\" = set"; then
11964 echo "$as_me:$LINENO: checking for $ac_header" >&5
11965echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11966if eval "test \"\${$as_ac_Header+set}\" = set"; then
11967 echo $ECHO_N "(cached) $ECHO_C" >&6
11968fi
11969echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11970echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11971else
11972 # Is the header compilable?
11973echo "$as_me:$LINENO: checking $ac_header usability" >&5
11974echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11975cat >conftest.$ac_ext <<_ACEOF
11976/* confdefs.h. */
11977_ACEOF
11978cat confdefs.h >>conftest.$ac_ext
11979cat >>conftest.$ac_ext <<_ACEOF
11980/* end confdefs.h. */
11981$ac_includes_default
11982#include <$ac_header>
11983_ACEOF
11984rm -f conftest.$ac_objext
11985if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11986 (eval $ac_compile) 2>conftest.er1
11987 ac_status=$?
11988 grep -v '^ *+' conftest.er1 >conftest.err
11989 rm -f conftest.er1
11990 cat conftest.err >&5
11991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11992 (exit $ac_status); } &&
7357c5b6
AM
11993 { ac_try='test -z "$ac_c_werror_flag"
11994 || test ! -s conftest.err'
42ecbf5e
DJ
11995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11996 (eval $ac_try) 2>&5
11997 ac_status=$?
11998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11999 (exit $ac_status); }; } &&
12000 { ac_try='test -s conftest.$ac_objext'
12001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12002 (eval $ac_try) 2>&5
12003 ac_status=$?
12004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12005 (exit $ac_status); }; }; then
12006 ac_header_compiler=yes
12007else
12008 echo "$as_me: failed program was:" >&5
12009sed 's/^/| /' conftest.$ac_ext >&5
12010
12011ac_header_compiler=no
12012fi
12013rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12014echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12015echo "${ECHO_T}$ac_header_compiler" >&6
12016
12017# Is the header present?
12018echo "$as_me:$LINENO: checking $ac_header presence" >&5
12019echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12020cat >conftest.$ac_ext <<_ACEOF
12021/* confdefs.h. */
12022_ACEOF
12023cat confdefs.h >>conftest.$ac_ext
12024cat >>conftest.$ac_ext <<_ACEOF
12025/* end confdefs.h. */
12026#include <$ac_header>
12027_ACEOF
12028if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12029 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12030 ac_status=$?
12031 grep -v '^ *+' conftest.er1 >conftest.err
12032 rm -f conftest.er1
12033 cat conftest.err >&5
12034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035 (exit $ac_status); } >/dev/null; then
12036 if test -s conftest.err; then
12037 ac_cpp_err=$ac_c_preproc_warn_flag
12038 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12039 else
12040 ac_cpp_err=
12041 fi
252b5132 12042else
42ecbf5e 12043 ac_cpp_err=yes
252b5132 12044fi
42ecbf5e
DJ
12045if test -z "$ac_cpp_err"; then
12046 ac_header_preproc=yes
12047else
12048 echo "$as_me: failed program was:" >&5
12049sed 's/^/| /' conftest.$ac_ext >&5
12050
12051 ac_header_preproc=no
252b5132 12052fi
42ecbf5e
DJ
12053rm -f conftest.err conftest.$ac_ext
12054echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12055echo "${ECHO_T}$ac_header_preproc" >&6
12056
12057# So? What about this header?
12058case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12059 yes:no: )
12060 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12061echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12062 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12063echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12064 ac_header_preproc=yes
12065 ;;
12066 no:yes:* )
12067 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12068echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12069 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12070echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12071 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12072echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12073 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12074echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12075 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12076echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12077 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12078echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12079 (
12080 cat <<\_ASBOX
12081## ------------------------------------------ ##
12082## Report this to the AC_PACKAGE_NAME lists. ##
12083## ------------------------------------------ ##
12084_ASBOX
12085 ) |
12086 sed "s/^/$as_me: WARNING: /" >&2
12087 ;;
12088esac
12089echo "$as_me:$LINENO: checking for $ac_header" >&5
12090echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12091if eval "test \"\${$as_ac_Header+set}\" = set"; then
12092 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12093else
42ecbf5e
DJ
12094 eval "$as_ac_Header=\$ac_header_preproc"
12095fi
12096echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12097echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12098
252b5132 12099fi
42ecbf5e
DJ
12100if test `eval echo '${'$as_ac_Header'}'` = yes; then
12101 cat >>confdefs.h <<_ACEOF
12102#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12103_ACEOF
12104
12105fi
12106
252b5132
RH
12107done
12108
42ecbf5e
DJ
12109
12110
12111
dc27aea4
AM
12112
12113
12114for ac_func in glob mkstemp realpath sbrk waitpid
252b5132 12115do
42ecbf5e
DJ
12116as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12117echo "$as_me:$LINENO: checking for $ac_func" >&5
12118echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12119if eval "test \"\${$as_ac_var+set}\" = set"; then
12120 echo $ECHO_N "(cached) $ECHO_C" >&6
12121else
12122 cat >conftest.$ac_ext <<_ACEOF
12123/* confdefs.h. */
12124_ACEOF
12125cat confdefs.h >>conftest.$ac_ext
12126cat >>conftest.$ac_ext <<_ACEOF
12127/* end confdefs.h. */
12128/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12129 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12130#define $ac_func innocuous_$ac_func
12131
252b5132 12132/* System header to define __stub macros and hopefully few prototypes,
42ecbf5e
DJ
12133 which can conflict with char $ac_func (); below.
12134 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12135 <limits.h> exists even on freestanding compilers. */
12136
12137#ifdef __STDC__
12138# include <limits.h>
12139#else
12140# include <assert.h>
12141#endif
d15b04bd 12142
42ecbf5e 12143#undef $ac_func
d15b04bd 12144
42ecbf5e
DJ
12145/* Override any gcc2 internal prototype to avoid an error. */
12146#ifdef __cplusplus
12147extern "C"
12148{
12149#endif
12150/* We use char because int might match the return type of a gcc2
12151 builtin and then its argument prototype would still apply. */
12152char $ac_func ();
252b5132
RH
12153/* The GNU C library defines this for functions which it implements
12154 to always fail with ENOSYS. Some functions are actually named
12155 something starting with __ and the normal name is an alias. */
12156#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12157choke me
12158#else
42ecbf5e
DJ
12159char (*f) () = $ac_func;
12160#endif
12161#ifdef __cplusplus
12162}
252b5132
RH
12163#endif
12164
42ecbf5e
DJ
12165int
12166main ()
12167{
12168return f != $ac_func;
12169 ;
12170 return 0;
12171}
12172_ACEOF
12173rm -f conftest.$ac_objext conftest$ac_exeext
12174if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12175 (eval $ac_link) 2>conftest.er1
12176 ac_status=$?
12177 grep -v '^ *+' conftest.er1 >conftest.err
12178 rm -f conftest.er1
12179 cat conftest.err >&5
12180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12181 (exit $ac_status); } &&
7357c5b6
AM
12182 { ac_try='test -z "$ac_c_werror_flag"
12183 || test ! -s conftest.err'
42ecbf5e
DJ
12184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12185 (eval $ac_try) 2>&5
12186 ac_status=$?
12187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188 (exit $ac_status); }; } &&
12189 { ac_try='test -s conftest$ac_exeext'
12190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12191 (eval $ac_try) 2>&5
12192 ac_status=$?
12193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12194 (exit $ac_status); }; }; then
12195 eval "$as_ac_var=yes"
12196else
12197 echo "$as_me: failed program was:" >&5
12198sed 's/^/| /' conftest.$ac_ext >&5
12199
12200eval "$as_ac_var=no"
12201fi
12202rm -f conftest.err conftest.$ac_objext \
12203 conftest$ac_exeext conftest.$ac_ext
12204fi
12205echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12206echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12207if test `eval echo '${'$as_ac_var'}'` = yes; then
12208 cat >>confdefs.h <<_ACEOF
12209#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12210_ACEOF
252b5132 12211
252b5132
RH
12212fi
12213done
12214
42ecbf5e
DJ
12215
12216
12217
12218
12219
252b5132 12220ac_header_dirent=no
42ecbf5e
DJ
12221for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
12222 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
12223echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
12224echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
12225if eval "test \"\${$as_ac_Header+set}\" = set"; then
12226 echo $ECHO_N "(cached) $ECHO_C" >&6
12227else
12228 cat >conftest.$ac_ext <<_ACEOF
12229/* confdefs.h. */
12230_ACEOF
12231cat confdefs.h >>conftest.$ac_ext
12232cat >>conftest.$ac_ext <<_ACEOF
12233/* end confdefs.h. */
252b5132
RH
12234#include <sys/types.h>
12235#include <$ac_hdr>
42ecbf5e
DJ
12236
12237int
12238main ()
12239{
12240if ((DIR *) 0)
12241return 0;
12242 ;
12243 return 0;
12244}
12245_ACEOF
12246rm -f conftest.$ac_objext
12247if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12248 (eval $ac_compile) 2>conftest.er1
12249 ac_status=$?
12250 grep -v '^ *+' conftest.er1 >conftest.err
12251 rm -f conftest.er1
12252 cat conftest.err >&5
12253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12254 (exit $ac_status); } &&
7357c5b6
AM
12255 { ac_try='test -z "$ac_c_werror_flag"
12256 || test ! -s conftest.err'
42ecbf5e
DJ
12257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12258 (eval $ac_try) 2>&5
12259 ac_status=$?
12260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12261 (exit $ac_status); }; } &&
12262 { ac_try='test -s conftest.$ac_objext'
12263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12264 (eval $ac_try) 2>&5
12265 ac_status=$?
12266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267 (exit $ac_status); }; }; then
12268 eval "$as_ac_Header=yes"
12269else
12270 echo "$as_me: failed program was:" >&5
12271sed 's/^/| /' conftest.$ac_ext >&5
12272
12273eval "$as_ac_Header=no"
12274fi
12275rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12276fi
12277echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12278echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12279if test `eval echo '${'$as_ac_Header'}'` = yes; then
12280 cat >>confdefs.h <<_ACEOF
12281#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
12282_ACEOF
12283
12284ac_header_dirent=$ac_hdr; break
d15b04bd 12285fi
42ecbf5e 12286
d15b04bd
L
12287done
12288# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
12289if test $ac_header_dirent = dirent.h; then
42ecbf5e
DJ
12290 echo "$as_me:$LINENO: checking for library containing opendir" >&5
12291echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
12292if test "${ac_cv_search_opendir+set}" = set; then
12293 echo $ECHO_N "(cached) $ECHO_C" >&6
12294else
12295 ac_func_search_save_LIBS=$LIBS
12296ac_cv_search_opendir=no
12297cat >conftest.$ac_ext <<_ACEOF
12298/* confdefs.h. */
12299_ACEOF
12300cat confdefs.h >>conftest.$ac_ext
12301cat >>conftest.$ac_ext <<_ACEOF
12302/* end confdefs.h. */
12303
e5a52504 12304/* Override any gcc2 internal prototype to avoid an error. */
42ecbf5e
DJ
12305#ifdef __cplusplus
12306extern "C"
12307#endif
e5a52504 12308/* We use char because int might match the return type of a gcc2
42ecbf5e
DJ
12309 builtin and then its argument prototype would still apply. */
12310char opendir ();
12311int
12312main ()
12313{
12314opendir ();
12315 ;
12316 return 0;
12317}
12318_ACEOF
12319rm -f conftest.$ac_objext conftest$ac_exeext
12320if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12321 (eval $ac_link) 2>conftest.er1
12322 ac_status=$?
12323 grep -v '^ *+' conftest.er1 >conftest.err
12324 rm -f conftest.er1
12325 cat conftest.err >&5
12326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12327 (exit $ac_status); } &&
7357c5b6
AM
12328 { ac_try='test -z "$ac_c_werror_flag"
12329 || test ! -s conftest.err'
42ecbf5e
DJ
12330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12331 (eval $ac_try) 2>&5
12332 ac_status=$?
12333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12334 (exit $ac_status); }; } &&
12335 { ac_try='test -s conftest$ac_exeext'
12336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12337 (eval $ac_try) 2>&5
12338 ac_status=$?
12339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12340 (exit $ac_status); }; }; then
12341 ac_cv_search_opendir="none required"
12342else
12343 echo "$as_me: failed program was:" >&5
12344sed 's/^/| /' conftest.$ac_ext >&5
12345
12346fi
12347rm -f conftest.err conftest.$ac_objext \
12348 conftest$ac_exeext conftest.$ac_ext
12349if test "$ac_cv_search_opendir" = no; then
12350 for ac_lib in dir; do
12351 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12352 cat >conftest.$ac_ext <<_ACEOF
12353/* confdefs.h. */
12354_ACEOF
12355cat confdefs.h >>conftest.$ac_ext
12356cat >>conftest.$ac_ext <<_ACEOF
12357/* end confdefs.h. */
e5a52504 12358
42ecbf5e
DJ
12359/* Override any gcc2 internal prototype to avoid an error. */
12360#ifdef __cplusplus
12361extern "C"
12362#endif
12363/* We use char because int might match the return type of a gcc2
12364 builtin and then its argument prototype would still apply. */
12365char opendir ();
12366int
12367main ()
12368{
12369opendir ();
12370 ;
12371 return 0;
12372}
12373_ACEOF
12374rm -f conftest.$ac_objext conftest$ac_exeext
12375if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12376 (eval $ac_link) 2>conftest.er1
12377 ac_status=$?
12378 grep -v '^ *+' conftest.er1 >conftest.err
12379 rm -f conftest.er1
12380 cat conftest.err >&5
12381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12382 (exit $ac_status); } &&
7357c5b6
AM
12383 { ac_try='test -z "$ac_c_werror_flag"
12384 || test ! -s conftest.err'
42ecbf5e
DJ
12385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12386 (eval $ac_try) 2>&5
12387 ac_status=$?
12388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12389 (exit $ac_status); }; } &&
12390 { ac_try='test -s conftest$ac_exeext'
12391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12392 (eval $ac_try) 2>&5
12393 ac_status=$?
12394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12395 (exit $ac_status); }; }; then
12396 ac_cv_search_opendir="-l$ac_lib"
12397break
12398else
12399 echo "$as_me: failed program was:" >&5
12400sed 's/^/| /' conftest.$ac_ext >&5
12401
12402fi
12403rm -f conftest.err conftest.$ac_objext \
12404 conftest$ac_exeext conftest.$ac_ext
12405 done
252b5132 12406fi
42ecbf5e
DJ
12407LIBS=$ac_func_search_save_LIBS
12408fi
12409echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
12410echo "${ECHO_T}$ac_cv_search_opendir" >&6
12411if test "$ac_cv_search_opendir" != no; then
12412 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
12413
d15b04bd 12414fi
252b5132
RH
12415
12416else
42ecbf5e
DJ
12417 echo "$as_me:$LINENO: checking for library containing opendir" >&5
12418echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
12419if test "${ac_cv_search_opendir+set}" = set; then
12420 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12421else
42ecbf5e
DJ
12422 ac_func_search_save_LIBS=$LIBS
12423ac_cv_search_opendir=no
12424cat >conftest.$ac_ext <<_ACEOF
12425/* confdefs.h. */
12426_ACEOF
12427cat confdefs.h >>conftest.$ac_ext
12428cat >>conftest.$ac_ext <<_ACEOF
12429/* end confdefs.h. */
12430
252b5132 12431/* Override any gcc2 internal prototype to avoid an error. */
42ecbf5e
DJ
12432#ifdef __cplusplus
12433extern "C"
12434#endif
252b5132 12435/* We use char because int might match the return type of a gcc2
42ecbf5e
DJ
12436 builtin and then its argument prototype would still apply. */
12437char opendir ();
12438int
12439main ()
12440{
12441opendir ();
12442 ;
12443 return 0;
12444}
12445_ACEOF
12446rm -f conftest.$ac_objext conftest$ac_exeext
12447if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12448 (eval $ac_link) 2>conftest.er1
12449 ac_status=$?
12450 grep -v '^ *+' conftest.er1 >conftest.err
12451 rm -f conftest.er1
12452 cat conftest.err >&5
12453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12454 (exit $ac_status); } &&
7357c5b6
AM
12455 { ac_try='test -z "$ac_c_werror_flag"
12456 || test ! -s conftest.err'
42ecbf5e
DJ
12457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12458 (eval $ac_try) 2>&5
12459 ac_status=$?
12460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12461 (exit $ac_status); }; } &&
12462 { ac_try='test -s conftest$ac_exeext'
12463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12464 (eval $ac_try) 2>&5
12465 ac_status=$?
12466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12467 (exit $ac_status); }; }; then
12468 ac_cv_search_opendir="none required"
12469else
12470 echo "$as_me: failed program was:" >&5
12471sed 's/^/| /' conftest.$ac_ext >&5
12472
12473fi
12474rm -f conftest.err conftest.$ac_objext \
12475 conftest$ac_exeext conftest.$ac_ext
12476if test "$ac_cv_search_opendir" = no; then
12477 for ac_lib in x; do
12478 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12479 cat >conftest.$ac_ext <<_ACEOF
12480/* confdefs.h. */
12481_ACEOF
12482cat confdefs.h >>conftest.$ac_ext
12483cat >>conftest.$ac_ext <<_ACEOF
12484/* end confdefs.h. */
252b5132 12485
42ecbf5e
DJ
12486/* Override any gcc2 internal prototype to avoid an error. */
12487#ifdef __cplusplus
12488extern "C"
12489#endif
12490/* We use char because int might match the return type of a gcc2
12491 builtin and then its argument prototype would still apply. */
12492char opendir ();
12493int
12494main ()
12495{
12496opendir ();
12497 ;
12498 return 0;
12499}
12500_ACEOF
12501rm -f conftest.$ac_objext conftest$ac_exeext
12502if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12503 (eval $ac_link) 2>conftest.er1
12504 ac_status=$?
12505 grep -v '^ *+' conftest.er1 >conftest.err
12506 rm -f conftest.er1
12507 cat conftest.err >&5
12508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12509 (exit $ac_status); } &&
7357c5b6
AM
12510 { ac_try='test -z "$ac_c_werror_flag"
12511 || test ! -s conftest.err'
42ecbf5e
DJ
12512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12513 (eval $ac_try) 2>&5
12514 ac_status=$?
12515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516 (exit $ac_status); }; } &&
12517 { ac_try='test -s conftest$ac_exeext'
12518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12519 (eval $ac_try) 2>&5
12520 ac_status=$?
12521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12522 (exit $ac_status); }; }; then
12523 ac_cv_search_opendir="-l$ac_lib"
12524break
12525else
12526 echo "$as_me: failed program was:" >&5
12527sed 's/^/| /' conftest.$ac_ext >&5
12528
12529fi
12530rm -f conftest.err conftest.$ac_objext \
12531 conftest$ac_exeext conftest.$ac_ext
12532 done
252b5132 12533fi
42ecbf5e 12534LIBS=$ac_func_search_save_LIBS
252b5132 12535fi
42ecbf5e
DJ
12536echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
12537echo "${ECHO_T}$ac_cv_search_opendir" >&6
12538if test "$ac_cv_search_opendir" != no; then
12539 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
12540
d15b04bd 12541fi
252b5132
RH
12542
12543fi
12544
12545
42ecbf5e
DJ
12546echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
12547echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
12548if test "${ld_cv_decl_getopt_unistd_h+set}" = set; then
12549 echo $ECHO_N "(cached) $ECHO_C" >&6
34875e64 12550else
42ecbf5e
DJ
12551 cat >conftest.$ac_ext <<_ACEOF
12552/* confdefs.h. */
12553_ACEOF
12554cat confdefs.h >>conftest.$ac_ext
12555cat >>conftest.$ac_ext <<_ACEOF
12556/* end confdefs.h. */
34875e64 12557#include <unistd.h>
42ecbf5e
DJ
12558int
12559main ()
12560{
34875e64 12561extern int getopt (int, char *const*, const char *);
42ecbf5e
DJ
12562 ;
12563 return 0;
12564}
12565_ACEOF
12566rm -f conftest.$ac_objext
12567if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12568 (eval $ac_compile) 2>conftest.er1
12569 ac_status=$?
12570 grep -v '^ *+' conftest.er1 >conftest.err
12571 rm -f conftest.er1
12572 cat conftest.err >&5
12573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12574 (exit $ac_status); } &&
7357c5b6
AM
12575 { ac_try='test -z "$ac_c_werror_flag"
12576 || test ! -s conftest.err'
42ecbf5e
DJ
12577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12578 (eval $ac_try) 2>&5
12579 ac_status=$?
12580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12581 (exit $ac_status); }; } &&
12582 { ac_try='test -s conftest.$ac_objext'
12583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12584 (eval $ac_try) 2>&5
12585 ac_status=$?
12586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12587 (exit $ac_status); }; }; then
34875e64
NC
12588 ld_cv_decl_getopt_unistd_h=yes
12589else
42ecbf5e
DJ
12590 echo "$as_me: failed program was:" >&5
12591sed 's/^/| /' conftest.$ac_ext >&5
12592
12593ld_cv_decl_getopt_unistd_h=no
34875e64 12594fi
42ecbf5e 12595rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34875e64
NC
12596fi
12597
42ecbf5e
DJ
12598echo "$as_me:$LINENO: result: $ld_cv_decl_getopt_unistd_h" >&5
12599echo "${ECHO_T}$ld_cv_decl_getopt_unistd_h" >&6
34875e64 12600if test $ld_cv_decl_getopt_unistd_h = yes; then
42ecbf5e
DJ
12601
12602cat >>confdefs.h <<\_ACEOF
34875e64 12603#define HAVE_DECL_GETOPT 1
42ecbf5e 12604_ACEOF
34875e64
NC
12605
12606fi
42ecbf5e 12607
252b5132
RH
12608
12609case "${host}" in
a8100d5b 12610*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
42ecbf5e
DJ
12611
12612cat >>confdefs.h <<\_ACEOF
252b5132 12613#define USE_BINARY_FOPEN 1
42ecbf5e 12614_ACEOF
252b5132
RH
12615 ;;
12616esac
12617
502bdb00
JW
12618echo "$as_me:$LINENO: checking whether strstr is declared" >&5
12619echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
12620if test "${ac_cv_have_decl_strstr+set}" = set; then
42ecbf5e 12621 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12622else
42ecbf5e
DJ
12623 cat >conftest.$ac_ext <<_ACEOF
12624/* confdefs.h. */
12625_ACEOF
12626cat confdefs.h >>conftest.$ac_ext
12627cat >>conftest.$ac_ext <<_ACEOF
12628/* end confdefs.h. */
502bdb00 12629$ac_includes_default
42ecbf5e
DJ
12630int
12631main ()
12632{
502bdb00
JW
12633#ifndef strstr
12634 char *p = (char *) strstr;
12635#endif
12636
42ecbf5e
DJ
12637 ;
12638 return 0;
12639}
12640_ACEOF
12641rm -f conftest.$ac_objext
12642if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12643 (eval $ac_compile) 2>conftest.er1
12644 ac_status=$?
12645 grep -v '^ *+' conftest.er1 >conftest.err
12646 rm -f conftest.er1
12647 cat conftest.err >&5
12648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12649 (exit $ac_status); } &&
7357c5b6
AM
12650 { ac_try='test -z "$ac_c_werror_flag"
12651 || test ! -s conftest.err'
42ecbf5e
DJ
12652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12653 (eval $ac_try) 2>&5
12654 ac_status=$?
12655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12656 (exit $ac_status); }; } &&
12657 { ac_try='test -s conftest.$ac_objext'
12658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12659 (eval $ac_try) 2>&5
12660 ac_status=$?
12661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12662 (exit $ac_status); }; }; then
502bdb00 12663 ac_cv_have_decl_strstr=yes
252b5132 12664else
42ecbf5e
DJ
12665 echo "$as_me: failed program was:" >&5
12666sed 's/^/| /' conftest.$ac_ext >&5
12667
502bdb00 12668ac_cv_have_decl_strstr=no
252b5132 12669fi
42ecbf5e 12670rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 12671fi
502bdb00
JW
12672echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
12673echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
12674if test $ac_cv_have_decl_strstr = yes; then
252b5132 12675
502bdb00
JW
12676cat >>confdefs.h <<_ACEOF
12677#define HAVE_DECL_STRSTR 1
12678_ACEOF
42ecbf5e 12679
502bdb00
JW
12680
12681else
12682 cat >>confdefs.h <<_ACEOF
12683#define HAVE_DECL_STRSTR 0
42ecbf5e 12684_ACEOF
252b5132 12685
252b5132 12686
502bdb00
JW
12687fi
12688echo "$as_me:$LINENO: checking whether free is declared" >&5
12689echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
12690if test "${ac_cv_have_decl_free+set}" = set; then
42ecbf5e 12691 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12692else
42ecbf5e
DJ
12693 cat >conftest.$ac_ext <<_ACEOF
12694/* confdefs.h. */
12695_ACEOF
12696cat confdefs.h >>conftest.$ac_ext
12697cat >>conftest.$ac_ext <<_ACEOF
12698/* end confdefs.h. */
502bdb00 12699$ac_includes_default
42ecbf5e
DJ
12700int
12701main ()
12702{
502bdb00
JW
12703#ifndef free
12704 char *p = (char *) free;
12705#endif
12706
42ecbf5e
DJ
12707 ;
12708 return 0;
12709}
12710_ACEOF
12711rm -f conftest.$ac_objext
12712if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12713 (eval $ac_compile) 2>conftest.er1
12714 ac_status=$?
12715 grep -v '^ *+' conftest.er1 >conftest.err
12716 rm -f conftest.er1
12717 cat conftest.err >&5
12718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12719 (exit $ac_status); } &&
7357c5b6
AM
12720 { ac_try='test -z "$ac_c_werror_flag"
12721 || test ! -s conftest.err'
42ecbf5e
DJ
12722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12723 (eval $ac_try) 2>&5
12724 ac_status=$?
12725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12726 (exit $ac_status); }; } &&
12727 { ac_try='test -s conftest.$ac_objext'
12728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12729 (eval $ac_try) 2>&5
12730 ac_status=$?
12731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732 (exit $ac_status); }; }; then
502bdb00 12733 ac_cv_have_decl_free=yes
252b5132 12734else
42ecbf5e
DJ
12735 echo "$as_me: failed program was:" >&5
12736sed 's/^/| /' conftest.$ac_ext >&5
12737
502bdb00 12738ac_cv_have_decl_free=no
252b5132 12739fi
42ecbf5e 12740rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 12741fi
502bdb00
JW
12742echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
12743echo "${ECHO_T}$ac_cv_have_decl_free" >&6
12744if test $ac_cv_have_decl_free = yes; then
252b5132 12745
502bdb00
JW
12746cat >>confdefs.h <<_ACEOF
12747#define HAVE_DECL_FREE 1
12748_ACEOF
42ecbf5e 12749
502bdb00
JW
12750
12751else
12752 cat >>confdefs.h <<_ACEOF
12753#define HAVE_DECL_FREE 0
42ecbf5e 12754_ACEOF
252b5132 12755
252b5132 12756
502bdb00
JW
12757fi
12758echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
12759echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
12760if test "${ac_cv_have_decl_sbrk+set}" = set; then
42ecbf5e 12761 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12762else
42ecbf5e
DJ
12763 cat >conftest.$ac_ext <<_ACEOF
12764/* confdefs.h. */
12765_ACEOF
12766cat confdefs.h >>conftest.$ac_ext
12767cat >>conftest.$ac_ext <<_ACEOF
12768/* end confdefs.h. */
502bdb00 12769$ac_includes_default
42ecbf5e
DJ
12770int
12771main ()
12772{
502bdb00
JW
12773#ifndef sbrk
12774 char *p = (char *) sbrk;
12775#endif
12776
42ecbf5e
DJ
12777 ;
12778 return 0;
12779}
12780_ACEOF
12781rm -f conftest.$ac_objext
12782if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12783 (eval $ac_compile) 2>conftest.er1
12784 ac_status=$?
12785 grep -v '^ *+' conftest.er1 >conftest.err
12786 rm -f conftest.er1
12787 cat conftest.err >&5
12788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12789 (exit $ac_status); } &&
7357c5b6
AM
12790 { ac_try='test -z "$ac_c_werror_flag"
12791 || test ! -s conftest.err'
42ecbf5e
DJ
12792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12793 (eval $ac_try) 2>&5
12794 ac_status=$?
12795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12796 (exit $ac_status); }; } &&
12797 { ac_try='test -s conftest.$ac_objext'
12798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12799 (eval $ac_try) 2>&5
12800 ac_status=$?
12801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12802 (exit $ac_status); }; }; then
502bdb00 12803 ac_cv_have_decl_sbrk=yes
252b5132 12804else
42ecbf5e
DJ
12805 echo "$as_me: failed program was:" >&5
12806sed 's/^/| /' conftest.$ac_ext >&5
12807
502bdb00 12808ac_cv_have_decl_sbrk=no
252b5132 12809fi
42ecbf5e 12810rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 12811fi
502bdb00
JW
12812echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
12813echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
12814if test $ac_cv_have_decl_sbrk = yes; then
12815
12816cat >>confdefs.h <<_ACEOF
12817#define HAVE_DECL_SBRK 1
12818_ACEOF
252b5132 12819
42ecbf5e 12820
502bdb00
JW
12821else
12822 cat >>confdefs.h <<_ACEOF
12823#define HAVE_DECL_SBRK 0
42ecbf5e 12824_ACEOF
252b5132 12825
252b5132 12826
502bdb00
JW
12827fi
12828echo "$as_me:$LINENO: checking whether getenv is declared" >&5
12829echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
12830if test "${ac_cv_have_decl_getenv+set}" = set; then
42ecbf5e 12831 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12832else
42ecbf5e
DJ
12833 cat >conftest.$ac_ext <<_ACEOF
12834/* confdefs.h. */
12835_ACEOF
12836cat confdefs.h >>conftest.$ac_ext
12837cat >>conftest.$ac_ext <<_ACEOF
12838/* end confdefs.h. */
502bdb00 12839$ac_includes_default
42ecbf5e
DJ
12840int
12841main ()
12842{
502bdb00
JW
12843#ifndef getenv
12844 char *p = (char *) getenv;
12845#endif
12846
42ecbf5e
DJ
12847 ;
12848 return 0;
12849}
12850_ACEOF
12851rm -f conftest.$ac_objext
12852if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12853 (eval $ac_compile) 2>conftest.er1
12854 ac_status=$?
12855 grep -v '^ *+' conftest.er1 >conftest.err
12856 rm -f conftest.er1
12857 cat conftest.err >&5
12858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859 (exit $ac_status); } &&
7357c5b6
AM
12860 { ac_try='test -z "$ac_c_werror_flag"
12861 || test ! -s conftest.err'
42ecbf5e
DJ
12862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12863 (eval $ac_try) 2>&5
12864 ac_status=$?
12865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12866 (exit $ac_status); }; } &&
12867 { ac_try='test -s conftest.$ac_objext'
12868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12869 (eval $ac_try) 2>&5
12870 ac_status=$?
12871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12872 (exit $ac_status); }; }; then
502bdb00 12873 ac_cv_have_decl_getenv=yes
252b5132 12874else
42ecbf5e
DJ
12875 echo "$as_me: failed program was:" >&5
12876sed 's/^/| /' conftest.$ac_ext >&5
12877
502bdb00 12878ac_cv_have_decl_getenv=no
252b5132 12879fi
42ecbf5e 12880rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 12881fi
502bdb00
JW
12882echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
12883echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
12884if test $ac_cv_have_decl_getenv = yes; then
252b5132 12885
502bdb00
JW
12886cat >>confdefs.h <<_ACEOF
12887#define HAVE_DECL_GETENV 1
12888_ACEOF
42ecbf5e 12889
502bdb00
JW
12890
12891else
12892 cat >>confdefs.h <<_ACEOF
12893#define HAVE_DECL_GETENV 0
42ecbf5e 12894_ACEOF
252b5132 12895
252b5132 12896
502bdb00
JW
12897fi
12898echo "$as_me:$LINENO: checking whether environ is declared" >&5
12899echo $ECHO_N "checking whether environ is declared... $ECHO_C" >&6
12900if test "${ac_cv_have_decl_environ+set}" = set; then
42ecbf5e 12901 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12902else
42ecbf5e
DJ
12903 cat >conftest.$ac_ext <<_ACEOF
12904/* confdefs.h. */
12905_ACEOF
12906cat confdefs.h >>conftest.$ac_ext
12907cat >>conftest.$ac_ext <<_ACEOF
12908/* end confdefs.h. */
502bdb00 12909$ac_includes_default
42ecbf5e
DJ
12910int
12911main ()
12912{
502bdb00
JW
12913#ifndef environ
12914 char *p = (char *) environ;
12915#endif
12916
42ecbf5e
DJ
12917 ;
12918 return 0;
12919}
12920_ACEOF
12921rm -f conftest.$ac_objext
12922if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12923 (eval $ac_compile) 2>conftest.er1
12924 ac_status=$?
12925 grep -v '^ *+' conftest.er1 >conftest.err
12926 rm -f conftest.er1
12927 cat conftest.err >&5
12928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12929 (exit $ac_status); } &&
7357c5b6
AM
12930 { ac_try='test -z "$ac_c_werror_flag"
12931 || test ! -s conftest.err'
42ecbf5e
DJ
12932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12933 (eval $ac_try) 2>&5
12934 ac_status=$?
12935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12936 (exit $ac_status); }; } &&
12937 { ac_try='test -s conftest.$ac_objext'
12938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12939 (eval $ac_try) 2>&5
12940 ac_status=$?
12941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12942 (exit $ac_status); }; }; then
502bdb00 12943 ac_cv_have_decl_environ=yes
252b5132 12944else
42ecbf5e
DJ
12945 echo "$as_me: failed program was:" >&5
12946sed 's/^/| /' conftest.$ac_ext >&5
12947
502bdb00 12948ac_cv_have_decl_environ=no
252b5132 12949fi
42ecbf5e 12950rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 12951fi
502bdb00
JW
12952echo "$as_me:$LINENO: result: $ac_cv_have_decl_environ" >&5
12953echo "${ECHO_T}$ac_cv_have_decl_environ" >&6
12954if test $ac_cv_have_decl_environ = yes; then
252b5132 12955
502bdb00
JW
12956cat >>confdefs.h <<_ACEOF
12957#define HAVE_DECL_ENVIRON 1
12958_ACEOF
42ecbf5e 12959
502bdb00
JW
12960
12961else
12962 cat >>confdefs.h <<_ACEOF
12963#define HAVE_DECL_ENVIRON 0
42ecbf5e 12964_ACEOF
252b5132 12965
502bdb00 12966
252b5132
RH
12967fi
12968
12969
502bdb00 12970
4474d12b
CS
12971# Link in zlib if we can. This is needed only for the bootstrap tests
12972# right now, since those tests use libbfd, which depends on zlib.
12973echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
12974echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
12975if test "${ac_cv_search_zlibVersion+set}" = set; then
12976 echo $ECHO_N "(cached) $ECHO_C" >&6
12977else
12978 ac_func_search_save_LIBS=$LIBS
12979ac_cv_search_zlibVersion=no
12980cat >conftest.$ac_ext <<_ACEOF
12981/* confdefs.h. */
12982_ACEOF
12983cat confdefs.h >>conftest.$ac_ext
12984cat >>conftest.$ac_ext <<_ACEOF
12985/* end confdefs.h. */
12986
12987/* Override any gcc2 internal prototype to avoid an error. */
12988#ifdef __cplusplus
12989extern "C"
12990#endif
12991/* We use char because int might match the return type of a gcc2
12992 builtin and then its argument prototype would still apply. */
12993char zlibVersion ();
12994int
12995main ()
12996{
12997zlibVersion ();
12998 ;
12999 return 0;
13000}
13001_ACEOF
13002rm -f conftest.$ac_objext conftest$ac_exeext
13003if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13004 (eval $ac_link) 2>conftest.er1
13005 ac_status=$?
13006 grep -v '^ *+' conftest.er1 >conftest.err
13007 rm -f conftest.er1
13008 cat conftest.err >&5
13009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13010 (exit $ac_status); } &&
7357c5b6
AM
13011 { ac_try='test -z "$ac_c_werror_flag"
13012 || test ! -s conftest.err'
4474d12b
CS
13013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13014 (eval $ac_try) 2>&5
13015 ac_status=$?
13016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13017 (exit $ac_status); }; } &&
13018 { ac_try='test -s conftest$ac_exeext'
13019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13020 (eval $ac_try) 2>&5
13021 ac_status=$?
13022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13023 (exit $ac_status); }; }; then
13024 ac_cv_search_zlibVersion="none required"
13025else
13026 echo "$as_me: failed program was:" >&5
13027sed 's/^/| /' conftest.$ac_ext >&5
13028
13029fi
13030rm -f conftest.err conftest.$ac_objext \
13031 conftest$ac_exeext conftest.$ac_ext
13032if test "$ac_cv_search_zlibVersion" = no; then
13033 for ac_lib in z; do
13034 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13035 cat >conftest.$ac_ext <<_ACEOF
13036/* confdefs.h. */
13037_ACEOF
13038cat confdefs.h >>conftest.$ac_ext
13039cat >>conftest.$ac_ext <<_ACEOF
13040/* end confdefs.h. */
13041
13042/* Override any gcc2 internal prototype to avoid an error. */
13043#ifdef __cplusplus
13044extern "C"
13045#endif
13046/* We use char because int might match the return type of a gcc2
13047 builtin and then its argument prototype would still apply. */
13048char zlibVersion ();
13049int
13050main ()
13051{
13052zlibVersion ();
13053 ;
13054 return 0;
13055}
13056_ACEOF
13057rm -f conftest.$ac_objext conftest$ac_exeext
13058if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13059 (eval $ac_link) 2>conftest.er1
13060 ac_status=$?
13061 grep -v '^ *+' conftest.er1 >conftest.err
13062 rm -f conftest.er1
13063 cat conftest.err >&5
13064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065 (exit $ac_status); } &&
7357c5b6
AM
13066 { ac_try='test -z "$ac_c_werror_flag"
13067 || test ! -s conftest.err'
4474d12b
CS
13068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13069 (eval $ac_try) 2>&5
13070 ac_status=$?
13071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13072 (exit $ac_status); }; } &&
13073 { ac_try='test -s conftest$ac_exeext'
13074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13075 (eval $ac_try) 2>&5
13076 ac_status=$?
13077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13078 (exit $ac_status); }; }; then
13079 ac_cv_search_zlibVersion="-l$ac_lib"
13080break
13081else
13082 echo "$as_me: failed program was:" >&5
13083sed 's/^/| /' conftest.$ac_ext >&5
13084
13085fi
13086rm -f conftest.err conftest.$ac_objext \
13087 conftest$ac_exeext conftest.$ac_ext
13088 done
13089fi
13090LIBS=$ac_func_search_save_LIBS
13091fi
13092echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
13093echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
13094if test "$ac_cv_search_zlibVersion" != no; then
13095 test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS"
13096
13097for ac_header in zlib.h
13098do
13099as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13100if eval "test \"\${$as_ac_Header+set}\" = set"; then
13101 echo "$as_me:$LINENO: checking for $ac_header" >&5
13102echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13103if eval "test \"\${$as_ac_Header+set}\" = set"; then
13104 echo $ECHO_N "(cached) $ECHO_C" >&6
13105fi
13106echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13107echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13108else
13109 # Is the header compilable?
13110echo "$as_me:$LINENO: checking $ac_header usability" >&5
13111echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13112cat >conftest.$ac_ext <<_ACEOF
13113/* confdefs.h. */
13114_ACEOF
13115cat confdefs.h >>conftest.$ac_ext
13116cat >>conftest.$ac_ext <<_ACEOF
13117/* end confdefs.h. */
13118$ac_includes_default
13119#include <$ac_header>
13120_ACEOF
13121rm -f conftest.$ac_objext
13122if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13123 (eval $ac_compile) 2>conftest.er1
13124 ac_status=$?
13125 grep -v '^ *+' conftest.er1 >conftest.err
13126 rm -f conftest.er1
13127 cat conftest.err >&5
13128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129 (exit $ac_status); } &&
7357c5b6
AM
13130 { ac_try='test -z "$ac_c_werror_flag"
13131 || test ! -s conftest.err'
4474d12b
CS
13132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13133 (eval $ac_try) 2>&5
13134 ac_status=$?
13135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13136 (exit $ac_status); }; } &&
13137 { ac_try='test -s conftest.$ac_objext'
13138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13139 (eval $ac_try) 2>&5
13140 ac_status=$?
13141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13142 (exit $ac_status); }; }; then
13143 ac_header_compiler=yes
13144else
13145 echo "$as_me: failed program was:" >&5
13146sed 's/^/| /' conftest.$ac_ext >&5
13147
13148ac_header_compiler=no
13149fi
13150rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13151echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13152echo "${ECHO_T}$ac_header_compiler" >&6
13153
13154# Is the header present?
13155echo "$as_me:$LINENO: checking $ac_header presence" >&5
13156echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13157cat >conftest.$ac_ext <<_ACEOF
13158/* confdefs.h. */
13159_ACEOF
13160cat confdefs.h >>conftest.$ac_ext
13161cat >>conftest.$ac_ext <<_ACEOF
13162/* end confdefs.h. */
13163#include <$ac_header>
13164_ACEOF
13165if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13166 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13167 ac_status=$?
13168 grep -v '^ *+' conftest.er1 >conftest.err
13169 rm -f conftest.er1
13170 cat conftest.err >&5
13171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13172 (exit $ac_status); } >/dev/null; then
13173 if test -s conftest.err; then
13174 ac_cpp_err=$ac_c_preproc_warn_flag
13175 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13176 else
13177 ac_cpp_err=
13178 fi
13179else
13180 ac_cpp_err=yes
13181fi
13182if test -z "$ac_cpp_err"; then
13183 ac_header_preproc=yes
13184else
13185 echo "$as_me: failed program was:" >&5
13186sed 's/^/| /' conftest.$ac_ext >&5
13187
13188 ac_header_preproc=no
13189fi
13190rm -f conftest.err conftest.$ac_ext
13191echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13192echo "${ECHO_T}$ac_header_preproc" >&6
13193
13194# So? What about this header?
13195case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13196 yes:no: )
13197 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13198echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13199 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13200echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13201 ac_header_preproc=yes
13202 ;;
13203 no:yes:* )
13204 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13205echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13206 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13207echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13208 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13209echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13210 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13211echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13212 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13213echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13214 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13215echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13216 (
13217 cat <<\_ASBOX
13218## ------------------------------------------ ##
13219## Report this to the AC_PACKAGE_NAME lists. ##
13220## ------------------------------------------ ##
13221_ASBOX
13222 ) |
13223 sed "s/^/$as_me: WARNING: /" >&2
13224 ;;
13225esac
13226echo "$as_me:$LINENO: checking for $ac_header" >&5
13227echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13228if eval "test \"\${$as_ac_Header+set}\" = set"; then
13229 echo $ECHO_N "(cached) $ECHO_C" >&6
13230else
13231 eval "$as_ac_Header=\$ac_header_preproc"
13232fi
13233echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13234echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13235
13236fi
13237if test `eval echo '${'$as_ac_Header'}'` = yes; then
13238 cat >>confdefs.h <<_ACEOF
13239#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13240_ACEOF
13241
13242fi
13243
13244done
13245
13246fi
13247
13248
597e2591
ILT
13249# When converting linker scripts into strings for use in emulation
13250# files, use astring.sed if the compiler supports ANSI string
13251# concatenation, or ostring.sed otherwise. This is to support the
13252# broken Microsoft MSVC compiler, which limits the length of string
13253# constants, while still supporting pre-ANSI compilers which do not
13254# support string concatenation.
42ecbf5e
DJ
13255echo "$as_me:$LINENO: checking whether ANSI C string concatenation works" >&5
13256echo $ECHO_N "checking whether ANSI C string concatenation works... $ECHO_C" >&6
13257if test "${ld_cv_string_concatenation+set}" = set; then
13258 echo $ECHO_N "(cached) $ECHO_C" >&6
13259else
13260 cat >conftest.$ac_ext <<_ACEOF
13261/* confdefs.h. */
13262_ACEOF
13263cat confdefs.h >>conftest.$ac_ext
13264cat >>conftest.$ac_ext <<_ACEOF
13265/* end confdefs.h. */
597e2591 13266
42ecbf5e
DJ
13267int
13268main ()
13269{
597e2591 13270char *a = "a" "a";
42ecbf5e
DJ
13271 ;
13272 return 0;
13273}
13274_ACEOF
13275rm -f conftest.$ac_objext
13276if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13277 (eval $ac_compile) 2>conftest.er1
13278 ac_status=$?
13279 grep -v '^ *+' conftest.er1 >conftest.err
13280 rm -f conftest.er1
13281 cat conftest.err >&5
13282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13283 (exit $ac_status); } &&
7357c5b6
AM
13284 { ac_try='test -z "$ac_c_werror_flag"
13285 || test ! -s conftest.err'
42ecbf5e
DJ
13286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13287 (eval $ac_try) 2>&5
13288 ac_status=$?
13289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13290 (exit $ac_status); }; } &&
13291 { ac_try='test -s conftest.$ac_objext'
13292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13293 (eval $ac_try) 2>&5
13294 ac_status=$?
13295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13296 (exit $ac_status); }; }; then
e4dabd0e 13297 ld_cv_string_concatenation=yes
597e2591 13298else
42ecbf5e
DJ
13299 echo "$as_me: failed program was:" >&5
13300sed 's/^/| /' conftest.$ac_ext >&5
13301
13302ld_cv_string_concatenation=no
597e2591 13303fi
42ecbf5e 13304rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
597e2591
ILT
13305fi
13306
42ecbf5e
DJ
13307echo "$as_me:$LINENO: result: $ld_cv_string_concatenation" >&5
13308echo "${ECHO_T}$ld_cv_string_concatenation" >&6
e4dabd0e 13309if test "$ld_cv_string_concatenation" = "yes"; then
597e2591
ILT
13310 STRINGIFY=astring.sed
13311else
13312 STRINGIFY=ostring.sed
13313fi
13314
13315
252b5132
RH
13316# target-specific stuff:
13317
13318all_targets=
13319EMUL=
13320all_emuls=
13321all_emul_extras=
ba2be581 13322all_libpath=
252b5132
RH
13323
13324rm -f tdirs
13325
13326for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
13327do
13328 if test "$targ_alias" = "all"; then
13329 all_targets=true
13330 else
13331 # Canonicalize the secondary target names.
42ecbf5e 13332 result=`$ac_config_sub $targ_alias 2>/dev/null`
252b5132
RH
13333 if test -n "$result"; then
13334 targ=$result
13335 else
13336 targ=$targ_alias
13337 fi
13338
13339 . ${srcdir}/configure.tgt
13340
13341 if test "$targ" = "$target"; then
13342 EMUL=$targ_emul
13343 fi
13344
314e9a4e
L
13345 if test x${want64} = xfalse; then
13346 . ${srcdir}/../bfd/config.bfd
13347 fi
13348
534d3119
L
13349 if test x${want64} = xtrue; then
13350 targ_extra_emuls="$targ_extra_emuls $targ64_extra_emuls"
13351 targ_extra_libpath="$targ_extra_libpath $targ64_extra_libpath"
13352 fi
13353
3336653a 13354 for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
252b5132
RH
13355 case " $all_emuls " in
13356 *" e${i}.o "*) ;;
13357 *)
13358 all_emuls="$all_emuls e${i}.o"
13359 eval result=\$tdir_$i
13360 test -z "$result" && result=$targ_alias
13361 echo tdir_$i=$result >> tdirs
13362 ;;
d15b04bd
L
13363 esac
13364 done
3336653a 13365
42ecbf5e
DJ
13366 for i in $targ_emul $targ_extra_libpath; do
13367 case " $all_libpath " in
13368 *" ${i} "*) ;;
13369 *)
13370 if test -z "$all_libpath"; then
13371 all_libpath=${i}
13372 else
13373 all_libpath="$all_libpath ${i}"
13374 fi
13375 ;;
13376 esac
13377 done
13378
13379 for i in $targ_extra_ofiles; do
13380 case " $all_emul_extras " in
13381 *" ${i} "*) ;;
13382 *)
13383 all_emul_extras="$all_emul_extras ${i}"
13384 ;;
13385 esac
13386 done
13387 fi
13388done
13389
13390
13391
13392TDIRS=tdirs
13393
13394
13395if test x${all_targets} = xtrue; then
314e9a4e
L
13396 if test x${want64} = xfalse; then
13397 echo "$as_me:$LINENO: checking for long" >&5
13398echo $ECHO_N "checking for long... $ECHO_C" >&6
13399if test "${ac_cv_type_long+set}" = set; then
13400 echo $ECHO_N "(cached) $ECHO_C" >&6
13401else
13402 cat >conftest.$ac_ext <<_ACEOF
13403/* confdefs.h. */
13404_ACEOF
13405cat confdefs.h >>conftest.$ac_ext
13406cat >>conftest.$ac_ext <<_ACEOF
13407/* end confdefs.h. */
13408$ac_includes_default
13409int
13410main ()
13411{
13412if ((long *) 0)
13413 return 0;
13414if (sizeof (long))
13415 return 0;
13416 ;
13417 return 0;
13418}
13419_ACEOF
13420rm -f conftest.$ac_objext
13421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13422 (eval $ac_compile) 2>conftest.er1
13423 ac_status=$?
13424 grep -v '^ *+' conftest.er1 >conftest.err
13425 rm -f conftest.er1
13426 cat conftest.err >&5
13427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428 (exit $ac_status); } &&
7357c5b6
AM
13429 { ac_try='test -z "$ac_c_werror_flag"
13430 || test ! -s conftest.err'
314e9a4e
L
13431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13432 (eval $ac_try) 2>&5
13433 ac_status=$?
13434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435 (exit $ac_status); }; } &&
13436 { ac_try='test -s conftest.$ac_objext'
13437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13438 (eval $ac_try) 2>&5
13439 ac_status=$?
13440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441 (exit $ac_status); }; }; then
13442 ac_cv_type_long=yes
13443else
13444 echo "$as_me: failed program was:" >&5
13445sed 's/^/| /' conftest.$ac_ext >&5
13446
13447ac_cv_type_long=no
13448fi
13449rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13450fi
13451echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13452echo "${ECHO_T}$ac_cv_type_long" >&6
13453
13454echo "$as_me:$LINENO: checking size of long" >&5
13455echo $ECHO_N "checking size of long... $ECHO_C" >&6
13456if test "${ac_cv_sizeof_long+set}" = set; then
13457 echo $ECHO_N "(cached) $ECHO_C" >&6
13458else
13459 if test "$ac_cv_type_long" = yes; then
13460 # The cast to unsigned long works around a bug in the HP C Compiler
13461 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13462 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13463 # This bug is HP SR number 8606223364.
13464 if test "$cross_compiling" = yes; then
13465 # Depending upon the size, compute the lo and hi bounds.
13466cat >conftest.$ac_ext <<_ACEOF
13467/* confdefs.h. */
13468_ACEOF
13469cat confdefs.h >>conftest.$ac_ext
13470cat >>conftest.$ac_ext <<_ACEOF
13471/* end confdefs.h. */
13472$ac_includes_default
13473int
13474main ()
13475{
13476static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
13477test_array [0] = 0
13478
13479 ;
13480 return 0;
13481}
13482_ACEOF
13483rm -f conftest.$ac_objext
13484if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13485 (eval $ac_compile) 2>conftest.er1
13486 ac_status=$?
13487 grep -v '^ *+' conftest.er1 >conftest.err
13488 rm -f conftest.er1
13489 cat conftest.err >&5
13490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491 (exit $ac_status); } &&
7357c5b6
AM
13492 { ac_try='test -z "$ac_c_werror_flag"
13493 || test ! -s conftest.err'
314e9a4e
L
13494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13495 (eval $ac_try) 2>&5
13496 ac_status=$?
13497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498 (exit $ac_status); }; } &&
13499 { ac_try='test -s conftest.$ac_objext'
13500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13501 (eval $ac_try) 2>&5
13502 ac_status=$?
13503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13504 (exit $ac_status); }; }; then
13505 ac_lo=0 ac_mid=0
13506 while :; do
13507 cat >conftest.$ac_ext <<_ACEOF
13508/* confdefs.h. */
13509_ACEOF
13510cat confdefs.h >>conftest.$ac_ext
13511cat >>conftest.$ac_ext <<_ACEOF
13512/* end confdefs.h. */
13513$ac_includes_default
13514int
13515main ()
13516{
13517static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
13518test_array [0] = 0
13519
13520 ;
13521 return 0;
13522}
13523_ACEOF
13524rm -f conftest.$ac_objext
13525if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13526 (eval $ac_compile) 2>conftest.er1
13527 ac_status=$?
13528 grep -v '^ *+' conftest.er1 >conftest.err
13529 rm -f conftest.er1
13530 cat conftest.err >&5
13531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13532 (exit $ac_status); } &&
7357c5b6
AM
13533 { ac_try='test -z "$ac_c_werror_flag"
13534 || test ! -s conftest.err'
314e9a4e
L
13535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13536 (eval $ac_try) 2>&5
13537 ac_status=$?
13538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13539 (exit $ac_status); }; } &&
13540 { ac_try='test -s conftest.$ac_objext'
13541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13542 (eval $ac_try) 2>&5
13543 ac_status=$?
13544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13545 (exit $ac_status); }; }; then
13546 ac_hi=$ac_mid; break
13547else
13548 echo "$as_me: failed program was:" >&5
13549sed 's/^/| /' conftest.$ac_ext >&5
13550
13551ac_lo=`expr $ac_mid + 1`
13552 if test $ac_lo -le $ac_mid; then
13553 ac_lo= ac_hi=
13554 break
13555 fi
13556 ac_mid=`expr 2 '*' $ac_mid + 1`
13557fi
13558rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13559 done
13560else
13561 echo "$as_me: failed program was:" >&5
13562sed 's/^/| /' conftest.$ac_ext >&5
13563
13564cat >conftest.$ac_ext <<_ACEOF
13565/* confdefs.h. */
13566_ACEOF
13567cat confdefs.h >>conftest.$ac_ext
13568cat >>conftest.$ac_ext <<_ACEOF
13569/* end confdefs.h. */
13570$ac_includes_default
13571int
13572main ()
13573{
13574static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
13575test_array [0] = 0
13576
13577 ;
13578 return 0;
13579}
13580_ACEOF
13581rm -f conftest.$ac_objext
13582if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13583 (eval $ac_compile) 2>conftest.er1
13584 ac_status=$?
13585 grep -v '^ *+' conftest.er1 >conftest.err
13586 rm -f conftest.er1
13587 cat conftest.err >&5
13588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589 (exit $ac_status); } &&
7357c5b6
AM
13590 { ac_try='test -z "$ac_c_werror_flag"
13591 || test ! -s conftest.err'
314e9a4e
L
13592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13593 (eval $ac_try) 2>&5
13594 ac_status=$?
13595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13596 (exit $ac_status); }; } &&
13597 { ac_try='test -s conftest.$ac_objext'
13598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13599 (eval $ac_try) 2>&5
13600 ac_status=$?
13601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13602 (exit $ac_status); }; }; then
13603 ac_hi=-1 ac_mid=-1
13604 while :; do
13605 cat >conftest.$ac_ext <<_ACEOF
13606/* confdefs.h. */
13607_ACEOF
13608cat confdefs.h >>conftest.$ac_ext
13609cat >>conftest.$ac_ext <<_ACEOF
13610/* end confdefs.h. */
13611$ac_includes_default
13612int
13613main ()
13614{
13615static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
13616test_array [0] = 0
13617
13618 ;
13619 return 0;
13620}
13621_ACEOF
13622rm -f conftest.$ac_objext
13623if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13624 (eval $ac_compile) 2>conftest.er1
13625 ac_status=$?
13626 grep -v '^ *+' conftest.er1 >conftest.err
13627 rm -f conftest.er1
13628 cat conftest.err >&5
13629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13630 (exit $ac_status); } &&
7357c5b6
AM
13631 { ac_try='test -z "$ac_c_werror_flag"
13632 || test ! -s conftest.err'
314e9a4e
L
13633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13634 (eval $ac_try) 2>&5
13635 ac_status=$?
13636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637 (exit $ac_status); }; } &&
13638 { ac_try='test -s conftest.$ac_objext'
13639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13640 (eval $ac_try) 2>&5
13641 ac_status=$?
13642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643 (exit $ac_status); }; }; then
13644 ac_lo=$ac_mid; break
13645else
13646 echo "$as_me: failed program was:" >&5
13647sed 's/^/| /' conftest.$ac_ext >&5
13648
13649ac_hi=`expr '(' $ac_mid ')' - 1`
13650 if test $ac_mid -le $ac_hi; then
13651 ac_lo= ac_hi=
13652 break
13653 fi
13654 ac_mid=`expr 2 '*' $ac_mid`
13655fi
13656rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13657 done
13658else
13659 echo "$as_me: failed program was:" >&5
13660sed 's/^/| /' conftest.$ac_ext >&5
13661
13662ac_lo= ac_hi=
13663fi
13664rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13665fi
13666rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13667# Binary search between lo and hi bounds.
13668while test "x$ac_lo" != "x$ac_hi"; do
13669 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13670 cat >conftest.$ac_ext <<_ACEOF
13671/* confdefs.h. */
13672_ACEOF
13673cat confdefs.h >>conftest.$ac_ext
13674cat >>conftest.$ac_ext <<_ACEOF
13675/* end confdefs.h. */
13676$ac_includes_default
13677int
13678main ()
13679{
13680static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
13681test_array [0] = 0
13682
13683 ;
13684 return 0;
13685}
13686_ACEOF
13687rm -f conftest.$ac_objext
13688if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13689 (eval $ac_compile) 2>conftest.er1
13690 ac_status=$?
13691 grep -v '^ *+' conftest.er1 >conftest.err
13692 rm -f conftest.er1
13693 cat conftest.err >&5
13694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13695 (exit $ac_status); } &&
7357c5b6
AM
13696 { ac_try='test -z "$ac_c_werror_flag"
13697 || test ! -s conftest.err'
314e9a4e
L
13698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13699 (eval $ac_try) 2>&5
13700 ac_status=$?
13701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702 (exit $ac_status); }; } &&
13703 { ac_try='test -s conftest.$ac_objext'
13704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13705 (eval $ac_try) 2>&5
13706 ac_status=$?
13707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708 (exit $ac_status); }; }; then
13709 ac_hi=$ac_mid
13710else
13711 echo "$as_me: failed program was:" >&5
13712sed 's/^/| /' conftest.$ac_ext >&5
13713
13714ac_lo=`expr '(' $ac_mid ')' + 1`
13715fi
13716rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13717done
13718case $ac_lo in
13719?*) ac_cv_sizeof_long=$ac_lo;;
7a283e07
RW
13720'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13721echo "$as_me: error: in \`$ac_pwd':" >&2;}
13722{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
314e9a4e
L
13723See \`config.log' for more details." >&5
13724echo "$as_me: error: cannot compute sizeof (long), 77
13725See \`config.log' for more details." >&2;}
7a283e07 13726 { (exit 1); exit 1; }; }; } ;;
314e9a4e
L
13727esac
13728else
13729 if test "$cross_compiling" = yes; then
7357c5b6
AM
13730 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13731echo "$as_me: error: in \`$ac_pwd':" >&2;}
13732{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13733See \`config.log' for more details." >&5
13734echo "$as_me: error: cannot run test program while cross compiling
13735See \`config.log' for more details." >&2;}
13736 { (exit 1); exit 1; }; }; }
314e9a4e
L
13737else
13738 cat >conftest.$ac_ext <<_ACEOF
13739/* confdefs.h. */
13740_ACEOF
13741cat confdefs.h >>conftest.$ac_ext
13742cat >>conftest.$ac_ext <<_ACEOF
13743/* end confdefs.h. */
13744$ac_includes_default
13745long longval () { return (long) (sizeof (long)); }
13746unsigned long ulongval () { return (long) (sizeof (long)); }
13747#include <stdio.h>
13748#include <stdlib.h>
13749int
13750main ()
13751{
13752
13753 FILE *f = fopen ("conftest.val", "w");
13754 if (! f)
13755 exit (1);
13756 if (((long) (sizeof (long))) < 0)
13757 {
13758 long i = longval ();
13759 if (i != ((long) (sizeof (long))))
13760 exit (1);
13761 fprintf (f, "%ld\n", i);
13762 }
13763 else
13764 {
13765 unsigned long i = ulongval ();
13766 if (i != ((long) (sizeof (long))))
13767 exit (1);
13768 fprintf (f, "%lu\n", i);
13769 }
13770 exit (ferror (f) || fclose (f) != 0);
13771
13772 ;
13773 return 0;
13774}
13775_ACEOF
13776rm -f conftest$ac_exeext
13777if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13778 (eval $ac_link) 2>&5
13779 ac_status=$?
13780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13781 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13783 (eval $ac_try) 2>&5
13784 ac_status=$?
13785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13786 (exit $ac_status); }; }; then
13787 ac_cv_sizeof_long=`cat conftest.val`
13788else
13789 echo "$as_me: program exited with status $ac_status" >&5
13790echo "$as_me: failed program was:" >&5
13791sed 's/^/| /' conftest.$ac_ext >&5
13792
13793( exit $ac_status )
7a283e07
RW
13794{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13795echo "$as_me: error: in \`$ac_pwd':" >&2;}
314e9a4e
L
13796{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13797See \`config.log' for more details." >&5
13798echo "$as_me: error: cannot compute sizeof (long), 77
13799See \`config.log' for more details." >&2;}
7a283e07 13800 { (exit 1); exit 1; }; }; }
314e9a4e
L
13801fi
13802rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13803fi
13804fi
13805rm -f conftest.val
13806else
13807 ac_cv_sizeof_long=0
13808fi
13809fi
13810echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13811echo "${ECHO_T}$ac_cv_sizeof_long" >&6
13812cat >>confdefs.h <<_ACEOF
13813#define SIZEOF_LONG $ac_cv_sizeof_long
13814_ACEOF
13815
13816
13817 if test "x${ac_cv_sizeof_long}" = "x8"; then
13818 want64=true
13819 fi
13820 fi
42ecbf5e
DJ
13821 if test x${want64} = xtrue; then
13822 EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
13823 else
13824 EMULATION_OFILES='$(ALL_EMULATIONS)'
13825 fi
13826 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)'
13827else
13828 EMULATION_OFILES=$all_emuls
13829 EMUL_EXTRA_OFILES=$all_emul_extras
13830fi
13831
13832
13833
13834
13835EMULATION_LIBPATH=$all_libpath
13836
13837
13838if test x${enable_static} = xno; then
13839 TESTBFDLIB="--rpath ../bfd/.libs ../bfd/.libs/libbfd.so"
13840else
13841 TESTBFDLIB="../bfd/.libs/libbfd.a"
13842fi
13843
13844
13845target_vendor=${target_vendor=$host_vendor}
13846case "$target_vendor" in
13847 hp) EXTRA_SHLIB_EXTENSION=".sl" ;;
13848 *) EXTRA_SHLIB_EXTENSION= ;;
13849esac
13850
13851case "$target_os" in
13852 lynxos) EXTRA_SHLIB_EXTENSION=".a" ;;
13853esac
13854
13855if test x${EXTRA_SHLIB_EXTENSION} != x ; then
13856
13857cat >>confdefs.h <<_ACEOF
13858#define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
13859_ACEOF
13860
13861fi
13862
108a6f8e
CD
13863
13864
13865
13866
42ecbf5e 13867 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
da594c4a 13868
42ecbf5e
DJ
13869cat >confcache <<\_ACEOF
13870# This file is a shell script that caches the results of configure
13871# tests run on this system so they can be shared between configure
13872# scripts and configure runs, see configure's option --config-cache.
13873# It is not useful on other systems. If it contains results you don't
13874# want to keep, you may remove or edit it.
13875#
13876# config.status only pays attention to the cache file if you give it
13877# the --recheck option to rerun configure.
13878#
13879# `ac_cv_env_foo' variables (set or unset) will be overridden when
13880# loading this file, other *unset* `ac_cv_foo' will be assigned the
13881# following values.
13882
13883_ACEOF
13884
13885# The following way of writing the cache mishandles newlines in values,
13886# but we know of no workaround that is simple, portable, and efficient.
13887# So, don't put newlines in cache variables' values.
13888# Ultrix sh set writes to stderr and can't be redirected directly,
13889# and sets the high bit in the cache file unless we assign to the vars.
13890{
13891 (set) 2>&1 |
13892 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13893 *ac_space=\ *)
13894 # `set' does not quote correctly, so add quotes (double-quote
13895 # substitution turns \\\\ into \\, and sed turns \\ into \).
13896 sed -n \
13897 "s/'/'\\\\''/g;
13898 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13899 ;;
13900 *)
13901 # `set' quotes correctly as required by POSIX, so do not add quotes.
13902 sed -n \
13903 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13904 ;;
13905 esac;
13906} |
13907 sed '
13908 t clear
13909 : clear
13910 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13911 t end
13912 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13913 : end' >>confcache
13914if diff $cache_file confcache >/dev/null 2>&1; then :; else
13915 if test -w $cache_file; then
13916 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
13917 cat confcache >$cache_file
13918 else
13919 echo "not updating unwritable cache $cache_file"
13920 fi
13921fi
13922rm -f confcache
13923
13924test "x$prefix" = xNONE && prefix=$ac_default_prefix
13925# Let make expand exec_prefix.
13926test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13927
13928# VPATH may cause trouble with some makes, so we remove $(srcdir),
13929# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13930# trailing colons and then remove the whole line if VPATH becomes empty
13931# (actually we leave an empty line to preserve line numbers).
13932if test "x$srcdir" = x.; then
13933 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13934s/:*\$(srcdir):*/:/;
13935s/:*\${srcdir}:*/:/;
13936s/:*@srcdir@:*/:/;
13937s/^\([^=]*=[ ]*\):*/\1/;
13938s/:*$//;
13939s/^[^=]*=[ ]*$//;
13940}'
13941fi
13942
13943DEFS=-DHAVE_CONFIG_H
13944
13945ac_libobjs=
13946ac_ltlibobjs=
13947for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13948 # 1. Remove the extension, and $U if already installed.
13949 ac_i=`echo "$ac_i" |
13950 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
13951 # 2. Add them.
13952 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
13953 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
13954done
13955LIBOBJS=$ac_libobjs
13956
13957LTLIBOBJS=$ac_ltlibobjs
13958
13959
13960if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13961 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13962Usually this means the macro was only invoked conditionally." >&5
13963echo "$as_me: error: conditional \"AMDEP\" was never defined.
13964Usually this means the macro was only invoked conditionally." >&2;}
13965 { (exit 1); exit 1; }; }
13966fi
13967if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13968 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13969Usually this means the macro was only invoked conditionally." >&5
13970echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13971Usually this means the macro was only invoked conditionally." >&2;}
13972 { (exit 1); exit 1; }; }
13973fi
13974if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13975 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
13976Usually this means the macro was only invoked conditionally." >&5
13977echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
13978Usually this means the macro was only invoked conditionally." >&2;}
13979 { (exit 1); exit 1; }; }
13980fi
d5fbea21
DJ
13981if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
13982 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
13983Usually this means the macro was only invoked conditionally." >&5
13984echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
13985Usually this means the macro was only invoked conditionally." >&2;}
13986 { (exit 1); exit 1; }; }
13987fi
42ecbf5e
DJ
13988
13989: ${CONFIG_STATUS=./config.status}
13990ac_clean_files_save=$ac_clean_files
13991ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13992{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13993echo "$as_me: creating $CONFIG_STATUS" >&6;}
13994cat >$CONFIG_STATUS <<_ACEOF
13995#! $SHELL
13996# Generated by $as_me.
13997# Run this file to recreate the current configuration.
13998# Compiler output produced by configure, useful for debugging
13999# configure, is in config.log if it exists.
14000
14001debug=false
14002ac_cs_recheck=false
14003ac_cs_silent=false
14004SHELL=\${CONFIG_SHELL-$SHELL}
14005_ACEOF
14006
14007cat >>$CONFIG_STATUS <<\_ACEOF
14008## --------------------- ##
14009## M4sh Initialization. ##
14010## --------------------- ##
14011
14012# Be Bourne compatible
14013if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14014 emulate sh
14015 NULLCMD=:
14016 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14017 # is contrary to our usage. Disable this feature.
14018 alias -g '${1+"$@"}'='"$@"'
14019elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
14020 set -o posix
14021fi
14022DUALCASE=1; export DUALCASE # for MKS sh
14023
14024# Support unset when possible.
14025if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14026 as_unset=unset
14027else
14028 as_unset=false
14029fi
14030
14031
14032# Work around bugs in pre-3.0 UWIN ksh.
14033$as_unset ENV MAIL MAILPATH
14034PS1='$ '
14035PS2='> '
14036PS4='+ '
14037
14038# NLS nuisances.
14039for as_var in \
14040 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14041 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14042 LC_TELEPHONE LC_TIME
14043do
14044 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14045 eval $as_var=C; export $as_var
14046 else
14047 $as_unset $as_var
14048 fi
14049done
14050
14051# Required to use basename.
14052if expr a : '\(a\)' >/dev/null 2>&1; then
14053 as_expr=expr
14054else
14055 as_expr=false
14056fi
14057
14058if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
14059 as_basename=basename
14060else
14061 as_basename=false
14062fi
14063
14064
14065# Name of the executable.
14066as_me=`$as_basename "$0" ||
14067$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14068 X"$0" : 'X\(//\)$' \| \
14069 X"$0" : 'X\(/\)$' \| \
14070 . : '\(.\)' 2>/dev/null ||
14071echo X/"$0" |
14072 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14073 /^X\/\(\/\/\)$/{ s//\1/; q; }
14074 /^X\/\(\/\).*/{ s//\1/; q; }
14075 s/.*/./; q'`
14076
14077
14078# PATH needs CR, and LINENO needs CR and PATH.
14079# Avoid depending upon Character Ranges.
14080as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14081as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14082as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14083as_cr_digits='0123456789'
14084as_cr_alnum=$as_cr_Letters$as_cr_digits
14085
14086# The user is always right.
14087if test "${PATH_SEPARATOR+set}" != set; then
14088 echo "#! /bin/sh" >conf$$.sh
14089 echo "exit 0" >>conf$$.sh
14090 chmod +x conf$$.sh
14091 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14092 PATH_SEPARATOR=';'
14093 else
14094 PATH_SEPARATOR=:
14095 fi
14096 rm -f conf$$.sh
14097fi
14098
e5a52504 14099
42ecbf5e
DJ
14100 as_lineno_1=$LINENO
14101 as_lineno_2=$LINENO
14102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14103 test "x$as_lineno_1" != "x$as_lineno_2" &&
14104 test "x$as_lineno_3" = "x$as_lineno_2" || {
14105 # Find who we are. Look in the path if we contain no path at all
14106 # relative or not.
14107 case $0 in
14108 *[\\/]* ) as_myself=$0 ;;
14109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14110for as_dir in $PATH
14111do
14112 IFS=$as_save_IFS
14113 test -z "$as_dir" && as_dir=.
14114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14115done
14116
14117 ;;
14118 esac
14119 # We did not find ourselves, most probably we were run as `sh COMMAND'
14120 # in which case we are not to be found in the path.
14121 if test "x$as_myself" = x; then
14122 as_myself=$0
14123 fi
14124 if test ! -f "$as_myself"; then
14125 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
14126echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
14127 { (exit 1); exit 1; }; }
252b5132 14128 fi
42ecbf5e
DJ
14129 case $CONFIG_SHELL in
14130 '')
14131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14132for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
14133do
14134 IFS=$as_save_IFS
14135 test -z "$as_dir" && as_dir=.
14136 for as_base in sh bash ksh sh5; do
14137 case $as_dir in
14138 /*)
14139 if ("$as_dir/$as_base" -c '
14140 as_lineno_1=$LINENO
14141 as_lineno_2=$LINENO
14142 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14143 test "x$as_lineno_1" != "x$as_lineno_2" &&
14144 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
14145 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
14146 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
14147 CONFIG_SHELL=$as_dir/$as_base
14148 export CONFIG_SHELL
14149 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
14150 fi;;
14151 esac
14152 done
252b5132 14153done
42ecbf5e
DJ
14154;;
14155 esac
252b5132 14156
42ecbf5e
DJ
14157 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14158 # uniformly replaced by the line number. The first 'sed' inserts a
14159 # line-number line before each line; the second 'sed' does the real
14160 # work. The second script uses 'N' to pair each line-number line
14161 # with the numbered line, and appends trailing '-' during
14162 # substitution so that $LINENO is not a special case at line end.
14163 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14164 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
14165 sed '=' <$as_myself |
14166 sed '
14167 N
14168 s,$,-,
14169 : loop
14170 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
14171 t loop
14172 s,-$,,
14173 s,^['$as_cr_digits']*\n,,
14174 ' >$as_me.lineno &&
14175 chmod +x $as_me.lineno ||
14176 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
14177echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
14178 { (exit 1); exit 1; }; }
14179
14180 # Don't try to exec as it changes $[0], causing all sort of problems
14181 # (the dirname of $[0] is not the place where we might find the
14182 # original and so on. Autoconf is especially sensible to this).
14183 . ./$as_me.lineno
14184 # Exit status is that of the last command.
14185 exit
14186}
252b5132
RH
14187
14188
42ecbf5e
DJ
14189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
14190 *c*,-n*) ECHO_N= ECHO_C='
14191' ECHO_T=' ' ;;
14192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
14193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
14194esac
252b5132 14195
42ecbf5e
DJ
14196if expr a : '\(a\)' >/dev/null 2>&1; then
14197 as_expr=expr
14198else
14199 as_expr=false
14200fi
252b5132 14201
42ecbf5e
DJ
14202rm -f conf$$ conf$$.exe conf$$.file
14203echo >conf$$.file
14204if ln -s conf$$.file conf$$ 2>/dev/null; then
14205 # We could just check for DJGPP; but this test a) works b) is more generic
14206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
14207 if test -f conf$$.exe; then
14208 # Don't use ln at all; we don't have any links
14209 as_ln_s='cp -p'
252b5132 14210 else
42ecbf5e 14211 as_ln_s='ln -s'
252b5132 14212 fi
42ecbf5e
DJ
14213elif ln conf$$.file conf$$ 2>/dev/null; then
14214 as_ln_s=ln
e5a52504 14215else
42ecbf5e 14216 as_ln_s='cp -p'
e5a52504 14217fi
42ecbf5e 14218rm -f conf$$ conf$$.exe conf$$.file
252b5132 14219
42ecbf5e
DJ
14220if mkdir -p . 2>/dev/null; then
14221 as_mkdir_p=:
14222else
14223 test -d ./-p && rmdir ./-p
14224 as_mkdir_p=false
14225fi
252b5132 14226
42ecbf5e 14227as_executable_p="test -f"
252b5132 14228
42ecbf5e
DJ
14229# Sed expression to map a string onto a valid CPP name.
14230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
f234d5fe 14231
42ecbf5e
DJ
14232# Sed expression to map a string onto a valid variable name.
14233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
e5a52504 14234
e5a52504 14235
42ecbf5e
DJ
14236# IFS
14237# We need space, tab and new line, in precisely that order.
14238as_nl='
14239'
14240IFS=" $as_nl"
e5a52504 14241
42ecbf5e
DJ
14242# CDPATH.
14243$as_unset CDPATH
e5a52504 14244
42ecbf5e 14245exec 6>&1
e5a52504 14246
42ecbf5e
DJ
14247# Open the log real soon, to keep \$[0] and so on meaningful, and to
14248# report actual input values of CONFIG_FILES etc. instead of their
14249# values after options handling. Logging --version etc. is OK.
14250exec 5>>config.log
14251{
14252 echo
14253 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14254## Running $as_me. ##
14255_ASBOX
14256} >&5
14257cat >&5 <<_CSEOF
e5a52504 14258
42ecbf5e
DJ
14259This file was extended by $as_me, which was
14260generated by GNU Autoconf 2.59. Invocation command line was
14261
14262 CONFIG_FILES = $CONFIG_FILES
14263 CONFIG_HEADERS = $CONFIG_HEADERS
14264 CONFIG_LINKS = $CONFIG_LINKS
14265 CONFIG_COMMANDS = $CONFIG_COMMANDS
14266 $ $0 $@
e5a52504 14267
42ecbf5e
DJ
14268_CSEOF
14269echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
14270echo >&5
14271_ACEOF
14272
14273# Files that config.status was made for.
14274if test -n "$ac_config_files"; then
14275 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
d15b04bd 14276fi
e5a52504 14277
42ecbf5e
DJ
14278if test -n "$ac_config_headers"; then
14279 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
14280fi
14281
14282if test -n "$ac_config_links"; then
14283 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
14284fi
14285
14286if test -n "$ac_config_commands"; then
14287 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14288fi
14289
14290cat >>$CONFIG_STATUS <<\_ACEOF
14291
14292ac_cs_usage="\
14293\`$as_me' instantiates files from templates according to the
14294current configuration.
14295
14296Usage: $0 [OPTIONS] [FILE]...
14297
14298 -h, --help print this help, then exit
14299 -V, --version print version number, then exit
14300 -q, --quiet do not print progress messages
14301 -d, --debug don't remove temporary files
14302 --recheck update $as_me by reconfiguring in the same conditions
14303 --file=FILE[:TEMPLATE]
14304 instantiate the configuration file FILE
14305 --header=FILE[:TEMPLATE]
14306 instantiate the configuration header FILE
14307
14308Configuration files:
14309$config_files
14310
14311Configuration headers:
14312$config_headers
14313
14314Configuration commands:
14315$config_commands
14316
14317Report bugs to <bug-autoconf@gnu.org>."
14318_ACEOF
14319
14320cat >>$CONFIG_STATUS <<_ACEOF
14321ac_cs_version="\\
14322config.status
14323configured by $0, generated by GNU Autoconf 2.59,
14324 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
14325
14326Copyright (C) 2003 Free Software Foundation, Inc.
14327This config.status script is free software; the Free Software Foundation
14328gives unlimited permission to copy, distribute and modify it."
14329srcdir=$srcdir
14330INSTALL="$INSTALL"
14331_ACEOF
14332
14333cat >>$CONFIG_STATUS <<\_ACEOF
14334# If no file are specified by the user, then we need to provide default
14335# value. By we need to know if files were specified by the user.
14336ac_need_defaults=:
14337while test $# != 0
14338do
14339 case $1 in
14340 --*=*)
14341 ac_option=`expr "x$1" : 'x\([^=]*\)='`
14342 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
14343 ac_shift=:
252b5132 14344 ;;
42ecbf5e
DJ
14345 -*)
14346 ac_option=$1
14347 ac_optarg=$2
14348 ac_shift=shift
252b5132 14349 ;;
42ecbf5e
DJ
14350 *) # This is not an option, so the user has probably given explicit
14351 # arguments.
14352 ac_option=$1
14353 ac_need_defaults=false;;
14354 esac
252b5132 14355
42ecbf5e
DJ
14356 case $ac_option in
14357 # Handling of the options.
14358_ACEOF
14359cat >>$CONFIG_STATUS <<\_ACEOF
14360 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14361 ac_cs_recheck=: ;;
14362 --version | --vers* | -V )
14363 echo "$ac_cs_version"; exit 0 ;;
14364 --he | --h)
14365 # Conflict between --help and --header
14366 { { echo "$as_me:$LINENO: error: ambiguous option: $1
14367Try \`$0 --help' for more information." >&5
14368echo "$as_me: error: ambiguous option: $1
14369Try \`$0 --help' for more information." >&2;}
14370 { (exit 1); exit 1; }; };;
14371 --help | --hel | -h )
14372 echo "$ac_cs_usage"; exit 0 ;;
14373 --debug | --d* | -d )
14374 debug=: ;;
14375 --file | --fil | --fi | --f )
14376 $ac_shift
14377 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14378 ac_need_defaults=false;;
14379 --header | --heade | --head | --hea )
14380 $ac_shift
14381 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14382 ac_need_defaults=false;;
14383 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14384 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14385 ac_cs_silent=: ;;
252b5132 14386
42ecbf5e
DJ
14387 # This is an error.
14388 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
14389Try \`$0 --help' for more information." >&5
14390echo "$as_me: error: unrecognized option: $1
14391Try \`$0 --help' for more information." >&2;}
14392 { (exit 1); exit 1; }; } ;;
252b5132 14393
42ecbf5e 14394 *) ac_config_targets="$ac_config_targets $1" ;;
252b5132 14395
42ecbf5e
DJ
14396 esac
14397 shift
14398done
d15b04bd 14399
42ecbf5e 14400ac_configure_extra_args=
e5a52504 14401
42ecbf5e
DJ
14402if $ac_cs_silent; then
14403 exec 6>/dev/null
14404 ac_configure_extra_args="$ac_configure_extra_args --silent"
14405fi
e5a52504 14406
42ecbf5e
DJ
14407_ACEOF
14408cat >>$CONFIG_STATUS <<_ACEOF
14409if \$ac_cs_recheck; then
14410 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14411 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14412fi
14413
14414_ACEOF
14415
14416cat >>$CONFIG_STATUS <<_ACEOF
252b5132 14417#
42ecbf5e 14418# INIT-COMMANDS section.
252b5132 14419#
252b5132 14420
42ecbf5e 14421AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
14422
14423
14424# The HP-UX ksh and POSIX shell print the target directory to stdout
14425# if CDPATH is set.
14426(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14427
14428sed_quote_subst='$sed_quote_subst'
14429double_quote_subst='$double_quote_subst'
14430delay_variable_subst='$delay_variable_subst'
14431macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14432macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14433enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14434enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14435pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14436enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14437host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14438host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14439host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14440build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14441build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14442build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14443SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14444Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14445GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14446EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14447FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14448LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14449NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14450LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14451max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14452ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14453exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14454lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14455lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14456lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14457reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14458reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14459deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14460file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14461AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14462AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14463STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14464RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14465old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14466old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14467old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14468CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14469CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14470compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14471GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14472lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14473lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14474lt_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"`'
14475objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14476SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14477ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14478MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14479lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14480lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14481lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14482lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14483lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14484need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14485libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14486shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14487extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14488archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14489enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14490export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14491whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14492compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14493old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14494old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14495archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14496archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14497module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14498module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14499with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14500allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14501no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14502hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14503hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14504hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14505hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14506hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14507hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14508hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14509hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14510inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14511link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14512fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14513always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14514export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14515exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14516include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14517prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14518file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14519variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14520need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14521need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14522version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14523runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14524shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14525shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14526libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14527library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14528soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14529postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14530postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14531finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14532finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14533hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14534sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14535sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14536hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14537enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14538enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14539enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14540old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14541striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14542
14543LTCC='$LTCC'
14544LTCFLAGS='$LTCFLAGS'
14545compiler='$compiler_DEFAULT'
14546
14547# Quote evaled strings.
14548for var in SED \
14549GREP \
14550EGREP \
14551FGREP \
14552LD \
14553NM \
14554LN_S \
14555lt_SP2NL \
14556lt_NL2SP \
14557reload_flag \
14558deplibs_check_method \
14559file_magic_cmd \
14560AR \
14561AR_FLAGS \
14562STRIP \
14563RANLIB \
14564CC \
14565CFLAGS \
14566compiler \
14567lt_cv_sys_global_symbol_pipe \
14568lt_cv_sys_global_symbol_to_cdecl \
14569lt_cv_sys_global_symbol_to_c_name_address \
14570SHELL \
14571ECHO \
14572lt_prog_compiler_no_builtin_flag \
14573lt_prog_compiler_wl \
14574lt_prog_compiler_pic \
14575lt_prog_compiler_static \
14576lt_cv_prog_compiler_c_o \
14577need_locks \
14578shrext_cmds \
14579export_dynamic_flag_spec \
14580whole_archive_flag_spec \
14581compiler_needs_object \
14582with_gnu_ld \
14583allow_undefined_flag \
14584no_undefined_flag \
14585hardcode_libdir_flag_spec \
14586hardcode_libdir_flag_spec_ld \
14587hardcode_libdir_separator \
14588fix_srcfile_path \
14589exclude_expsyms \
14590include_expsyms \
14591file_list_spec \
14592variables_saved_for_relink \
14593libname_spec \
14594library_names_spec \
14595soname_spec \
14596finish_eval \
14597old_striplib \
14598striplib; do
14599 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14600 *[\\\\\\\`\\"\\\$]*)
14601 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14602 ;;
14603 *)
14604 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14605 ;;
14606 esac
14607done
14608
14609# Double-quote double-evaled strings.
14610for var in reload_cmds \
14611old_postinstall_cmds \
14612old_postuninstall_cmds \
14613old_archive_cmds \
14614extract_expsyms_cmds \
14615old_archive_from_new_cmds \
14616old_archive_from_expsyms_cmds \
14617archive_cmds \
14618archive_expsym_cmds \
14619module_cmds \
14620module_expsym_cmds \
14621export_symbols_cmds \
14622prelink_cmds \
14623postinstall_cmds \
14624postuninstall_cmds \
14625finish_cmds \
14626sys_lib_search_path_spec \
14627sys_lib_dlsearch_path_spec; do
14628 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14629 *[\\\\\\\`\\"\\\$]*)
14630 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14631 ;;
14632 *)
14633 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14634 ;;
14635 esac
14636done
14637
14638# Fix-up fallback echo if it was mangled by the above quoting rules.
14639case \$lt_ECHO in
14640*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14641 ;;
14642esac
14643
14644ac_aux_dir='$ac_aux_dir'
14645xsi_shell='$xsi_shell'
14646lt_shell_append='$lt_shell_append'
14647
14648# See if we are running on zsh, and set the options which allow our
14649# commands through without removal of \ escapes INIT.
14650if test -n "\${ZSH_VERSION+set}" ; then
14651 setopt NO_GLOB_SUBST
14652fi
14653
14654
14655 PACKAGE='$PACKAGE'
14656 VERSION='$VERSION'
14657 TIMESTAMP='$TIMESTAMP'
14658 RM='$RM'
14659 ofile='$ofile'
14660
14661
14662
20e95c23
DJ
14663# Capture the value of obsolete ALL_LINGUAS because we need it to compute
14664 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
14665 # from automake.
14666 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14667 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14668 LINGUAS="${LINGUAS-%UNSET%}"
14669
42ecbf5e
DJ
14670
14671_ACEOF
14672
14673
14674
14675cat >>$CONFIG_STATUS <<\_ACEOF
14676for ac_config_target in $ac_config_targets
252b5132 14677do
42ecbf5e
DJ
14678 case "$ac_config_target" in
14679 # Handling of arguments.
14680 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14681 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
14682 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
d7040cdb 14683 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20e95c23 14684 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
42ecbf5e
DJ
14685 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
14686 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14687echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14688 { (exit 1); exit 1; }; };;
252b5132
RH
14689 esac
14690done
14691
42ecbf5e
DJ
14692# If the user did not use the arguments to specify the items to instantiate,
14693# then the envvar interface is used. Set only those that are not.
14694# We use the long form for the default assignment because of an extremely
14695# bizarre bug on SunOS 4.1.3.
14696if $ac_need_defaults; then
14697 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14698 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14699 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14700fi
14701
14702# Have a temporary directory for convenience. Make it in the build tree
14703# simply because there is no reason to put it here, and in addition,
14704# creating and moving files from /tmp can sometimes cause problems.
14705# Create a temporary directory, and hook for its removal unless debugging.
14706$debug ||
14707{
14708 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14709 trap '{ (exit 1); exit 1; }' 1 2 13 15
14710}
14711
14712# Create a (secure) tmp directory for tmp files.
e5a52504 14713
42ecbf5e
DJ
14714{
14715 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
14716 test -n "$tmp" && test -d "$tmp"
14717} ||
14718{
14719 tmp=./confstat$$-$RANDOM
14720 (umask 077 && mkdir $tmp)
14721} ||
14722{
14723 echo "$me: cannot create a temporary directory in ." >&2
14724 { (exit 1); exit 1; }
14725}
e5a52504 14726
42ecbf5e 14727_ACEOF
d15b04bd 14728
42ecbf5e
DJ
14729cat >>$CONFIG_STATUS <<_ACEOF
14730
14731#
14732# CONFIG_FILES section.
14733#
14734
14735# No need to generate the scripts if there are no CONFIG_FILES.
14736# This happens for instance when ./config.status config.h
14737if test -n "\$CONFIG_FILES"; then
14738 # Protect against being on the right side of a sed subst in config.status.
14739 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
14740 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
14741s,@SHELL@,$SHELL,;t t
14742s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14743s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14744s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14745s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14746s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14747s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
14748s,@exec_prefix@,$exec_prefix,;t t
14749s,@prefix@,$prefix,;t t
14750s,@program_transform_name@,$program_transform_name,;t t
14751s,@bindir@,$bindir,;t t
14752s,@sbindir@,$sbindir,;t t
14753s,@libexecdir@,$libexecdir,;t t
14754s,@datadir@,$datadir,;t t
14755s,@sysconfdir@,$sysconfdir,;t t
14756s,@sharedstatedir@,$sharedstatedir,;t t
14757s,@localstatedir@,$localstatedir,;t t
14758s,@libdir@,$libdir,;t t
14759s,@includedir@,$includedir,;t t
14760s,@oldincludedir@,$oldincludedir,;t t
14761s,@infodir@,$infodir,;t t
14762s,@mandir@,$mandir,;t t
14763s,@build_alias@,$build_alias,;t t
14764s,@host_alias@,$host_alias,;t t
14765s,@target_alias@,$target_alias,;t t
14766s,@DEFS@,$DEFS,;t t
14767s,@ECHO_C@,$ECHO_C,;t t
14768s,@ECHO_N@,$ECHO_N,;t t
14769s,@ECHO_T@,$ECHO_T,;t t
14770s,@LIBS@,$LIBS,;t t
14771s,@build@,$build,;t t
14772s,@build_cpu@,$build_cpu,;t t
14773s,@build_vendor@,$build_vendor,;t t
14774s,@build_os@,$build_os,;t t
14775s,@host@,$host,;t t
14776s,@host_cpu@,$host_cpu,;t t
14777s,@host_vendor@,$host_vendor,;t t
14778s,@host_os@,$host_os,;t t
14779s,@target@,$target,;t t
14780s,@target_cpu@,$target_cpu,;t t
14781s,@target_vendor@,$target_vendor,;t t
14782s,@target_os@,$target_os,;t t
14783s,@CC@,$CC,;t t
14784s,@CFLAGS@,$CFLAGS,;t t
14785s,@LDFLAGS@,$LDFLAGS,;t t
14786s,@CPPFLAGS@,$CPPFLAGS,;t t
14787s,@ac_ct_CC@,$ac_ct_CC,;t t
14788s,@EXEEXT@,$EXEEXT,;t t
14789s,@OBJEXT@,$OBJEXT,;t t
14790s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
14791s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
14792s,@INSTALL_DATA@,$INSTALL_DATA,;t t
14793s,@CYGPATH_W@,$CYGPATH_W,;t t
14794s,@PACKAGE@,$PACKAGE,;t t
14795s,@VERSION@,$VERSION,;t t
14796s,@ACLOCAL@,$ACLOCAL,;t t
14797s,@AUTOCONF@,$AUTOCONF,;t t
14798s,@AUTOMAKE@,$AUTOMAKE,;t t
14799s,@AUTOHEADER@,$AUTOHEADER,;t t
14800s,@MAKEINFO@,$MAKEINFO,;t t
14801s,@install_sh@,$install_sh,;t t
14802s,@STRIP@,$STRIP,;t t
14803s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
14804s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
14805s,@mkdir_p@,$mkdir_p,;t t
14806s,@AWK@,$AWK,;t t
14807s,@SET_MAKE@,$SET_MAKE,;t t
14808s,@am__leading_dot@,$am__leading_dot,;t t
14809s,@AMTAR@,$AMTAR,;t t
14810s,@am__tar@,$am__tar,;t t
14811s,@am__untar@,$am__untar,;t t
14812s,@DEPDIR@,$DEPDIR,;t t
14813s,@am__include@,$am__include,;t t
14814s,@am__quote@,$am__quote,;t t
14815s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
14816s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
14817s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
14818s,@CCDEPMODE@,$CCDEPMODE,;t t
14819s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
14820s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
ce2cded5
L
14821s,@use_sysroot@,$use_sysroot,;t t
14822s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
14823s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
14824s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
14825s,@NO_WERROR@,$NO_WERROR,;t t
7357c5b6
AM
14826s,@CPP@,$CPP,;t t
14827s,@EGREP@,$EGREP,;t t
d7040cdb
SE
14828s,@LIBTOOL@,$LIBTOOL,;t t
14829s,@SED@,$SED,;t t
d7040cdb
SE
14830s,@FGREP@,$FGREP,;t t
14831s,@GREP@,$GREP,;t t
14832s,@LD@,$LD,;t t
14833s,@DUMPBIN@,$DUMPBIN,;t t
14834s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
14835s,@NM@,$NM,;t t
42ecbf5e 14836s,@LN_S@,$LN_S,;t t
d7040cdb
SE
14837s,@AR@,$AR,;t t
14838s,@ac_ct_AR@,$ac_ct_AR,;t t
42ecbf5e
DJ
14839s,@RANLIB@,$RANLIB,;t t
14840s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
d7040cdb 14841s,@lt_ECHO@,$lt_ECHO,;t t
42ecbf5e 14842s,@USE_NLS@,$USE_NLS,;t t
20e95c23
DJ
14843s,@LIBINTL@,$LIBINTL,;t t
14844s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
14845s,@INCINTL@,$INCINTL,;t t
42ecbf5e 14846s,@XGETTEXT@,$XGETTEXT,;t t
20e95c23
DJ
14847s,@GMSGFMT@,$GMSGFMT,;t t
14848s,@POSUB@,$POSUB,;t t
42ecbf5e 14849s,@CATALOGS@,$CATALOGS,;t t
42ecbf5e 14850s,@DATADIRNAME@,$DATADIRNAME,;t t
42ecbf5e 14851s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20e95c23
DJ
14852s,@GENCAT@,$GENCAT,;t t
14853s,@CATOBJEXT@,$CATOBJEXT,;t t
42ecbf5e 14854s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
20e95c23
DJ
14855s,@MSGFMT@,$MSGFMT,;t t
14856s,@MSGMERGE@,$MSGMERGE,;t t
42ecbf5e
DJ
14857s,@YACC@,$YACC,;t t
14858s,@LEX@,$LEX,;t t
14859s,@LEXLIB@,$LEXLIB,;t t
14860s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
14861s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
14862s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
14863s,@MAINT@,$MAINT,;t t
d5fbea21
DJ
14864s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
14865s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
42ecbf5e
DJ
14866s,@HDEFINES@,$HDEFINES,;t t
14867s,@HOSTING_CRT0@,$HOSTING_CRT0,;t t
14868s,@HOSTING_LIBS@,$HOSTING_LIBS,;t t
14869s,@NATIVE_LIB_DIRS@,$NATIVE_LIB_DIRS,;t t
14870s,@STRINGIFY@,$STRINGIFY,;t t
14871s,@EMUL@,$EMUL,;t t
14872s,@EMULATION_OFILES@,$EMULATION_OFILES,;t t
14873s,@EMUL_EXTRA_OFILES@,$EMUL_EXTRA_OFILES,;t t
14874s,@LIB_PATH@,$LIB_PATH,;t t
14875s,@EMULATION_LIBPATH@,$EMULATION_LIBPATH,;t t
14876s,@TESTBFDLIB@,$TESTBFDLIB,;t t
108a6f8e
CD
14877s,@datarootdir@,$datarootdir,;t t
14878s,@docdir@,$docdir,;t t
14879s,@htmldir@,$htmldir,;t t
42ecbf5e
DJ
14880s,@LIBOBJS@,$LIBOBJS,;t t
14881s,@LTLIBOBJS@,$LTLIBOBJS,;t t
14882/@TDIRS@/r $TDIRS
14883s,@TDIRS@,,;t t
252b5132 14884CEOF
252b5132 14885
42ecbf5e
DJ
14886_ACEOF
14887
14888 cat >>$CONFIG_STATUS <<\_ACEOF
14889 # Split the substitutions into bite-sized pieces for seds with
14890 # small command number limits, like on Digital OSF/1 and HP-UX.
14891 ac_max_sed_lines=48
14892 ac_sed_frag=1 # Number of current file.
14893 ac_beg=1 # First line for current file.
14894 ac_end=$ac_max_sed_lines # Line after last line for current file.
14895 ac_more_lines=:
14896 ac_sed_cmds=
14897 while $ac_more_lines; do
14898 if test $ac_beg -gt 1; then
14899 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14900 else
14901 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14902 fi
14903 if test ! -s $tmp/subs.frag; then
14904 ac_more_lines=false
252b5132 14905 else
42ecbf5e
DJ
14906 # The purpose of the label and of the branching condition is to
14907 # speed up the sed processing (if there are no `@' at all, there
14908 # is no need to browse any of the substitutions).
14909 # These are the two extra sed commands mentioned above.
14910 (echo ':t
14911 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
14912 if test -z "$ac_sed_cmds"; then
14913 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
14914 else
14915 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
14916 fi
14917 ac_sed_frag=`expr $ac_sed_frag + 1`
14918 ac_beg=$ac_end
14919 ac_end=`expr $ac_end + $ac_max_sed_lines`
252b5132 14920 fi
42ecbf5e
DJ
14921 done
14922 if test -z "$ac_sed_cmds"; then
14923 ac_sed_cmds=cat
252b5132 14924 fi
42ecbf5e 14925fi # test -n "$CONFIG_FILES"
252b5132 14926
42ecbf5e
DJ
14927_ACEOF
14928cat >>$CONFIG_STATUS <<\_ACEOF
14929for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
252b5132 14930 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42ecbf5e
DJ
14931 case $ac_file in
14932 - | *:- | *:-:* ) # input from stdin
14933 cat >$tmp/stdin
14934 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14935 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14936 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14937 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14938 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
14939 esac
14940
42ecbf5e
DJ
14941 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
14942 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14943$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14944 X"$ac_file" : 'X\(//\)[^/]' \| \
14945 X"$ac_file" : 'X\(//\)$' \| \
14946 X"$ac_file" : 'X\(/\)' \| \
14947 . : '\(.\)' 2>/dev/null ||
14948echo X"$ac_file" |
14949 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14950 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14951 /^X\(\/\/\)$/{ s//\1/; q; }
14952 /^X\(\/\).*/{ s//\1/; q; }
14953 s/.*/./; q'`
14954 { if $as_mkdir_p; then
14955 mkdir -p "$ac_dir"
d15b04bd 14956 else
42ecbf5e
DJ
14957 as_dir="$ac_dir"
14958 as_dirs=
14959 while test ! -d "$as_dir"; do
14960 as_dirs="$as_dir $as_dirs"
14961 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14962$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14963 X"$as_dir" : 'X\(//\)[^/]' \| \
14964 X"$as_dir" : 'X\(//\)$' \| \
14965 X"$as_dir" : 'X\(/\)' \| \
14966 . : '\(.\)' 2>/dev/null ||
14967echo X"$as_dir" |
14968 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14969 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14970 /^X\(\/\/\)$/{ s//\1/; q; }
14971 /^X\(\/\).*/{ s//\1/; q; }
14972 s/.*/./; q'`
14973 done
14974 test ! -n "$as_dirs" || mkdir $as_dirs
14975 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14976echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14977 { (exit 1); exit 1; }; }; }
14978
14979 ac_builddir=.
14980
14981if test "$ac_dir" != .; then
14982 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14983 # A "../" for each directory in $ac_dir_suffix.
14984 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14985else
14986 ac_dir_suffix= ac_top_builddir=
14987fi
252b5132 14988
42ecbf5e
DJ
14989case $srcdir in
14990 .) # No --srcdir option. We are building in place.
14991 ac_srcdir=.
14992 if test -z "$ac_top_builddir"; then
14993 ac_top_srcdir=.
14994 else
14995 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14996 fi ;;
14997 [\\/]* | ?:[\\/]* ) # Absolute path.
14998 ac_srcdir=$srcdir$ac_dir_suffix;
14999 ac_top_srcdir=$srcdir ;;
252b5132 15000 *) # Relative path.
42ecbf5e
DJ
15001 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15002 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15003esac
15004
15005# Do not use `cd foo && pwd` to compute absolute paths, because
15006# the directories may not exist.
15007case `pwd` in
15008.) ac_abs_builddir="$ac_dir";;
15009*)
15010 case "$ac_dir" in
15011 .) ac_abs_builddir=`pwd`;;
15012 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15013 *) ac_abs_builddir=`pwd`/"$ac_dir";;
15014 esac;;
15015esac
15016case $ac_abs_builddir in
15017.) ac_abs_top_builddir=${ac_top_builddir}.;;
15018*)
15019 case ${ac_top_builddir}. in
15020 .) ac_abs_top_builddir=$ac_abs_builddir;;
15021 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15022 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15023 esac;;
15024esac
15025case $ac_abs_builddir in
15026.) ac_abs_srcdir=$ac_srcdir;;
15027*)
15028 case $ac_srcdir in
15029 .) ac_abs_srcdir=$ac_abs_builddir;;
15030 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15031 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15032 esac;;
15033esac
15034case $ac_abs_builddir in
15035.) ac_abs_top_srcdir=$ac_top_srcdir;;
15036*)
15037 case $ac_top_srcdir in
15038 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15039 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15040 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15041 esac;;
15042esac
252b5132 15043
e5a52504 15044
42ecbf5e
DJ
15045 case $INSTALL in
15046 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15047 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
d15b04bd 15048 esac
e5a52504 15049
7357c5b6
AM
15050 if test x"$ac_file" != x-; then
15051 { echo "$as_me:$LINENO: creating $ac_file" >&5
15052echo "$as_me: creating $ac_file" >&6;}
15053 rm -f "$ac_file"
15054 fi
42ecbf5e
DJ
15055 # Let's still pretend it is `configure' which instantiates (i.e., don't
15056 # use $as_me), people would be surprised to read:
15057 # /* config.h. Generated by config.status. */
15058 if test x"$ac_file" = x-; then
15059 configure_input=
15060 else
15061 configure_input="$ac_file. "
15062 fi
15063 configure_input=$configure_input"Generated from `echo $ac_file_in |
15064 sed 's,.*/,,'` by configure."
15065
15066 # First look for the input files in the build tree, otherwise in the
15067 # src tree.
15068 ac_file_inputs=`IFS=:
15069 for f in $ac_file_in; do
15070 case $f in
15071 -) echo $tmp/stdin ;;
15072 [\\/$]*)
15073 # Absolute (can't be DOS-style, as IFS=:)
15074 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15075echo "$as_me: error: cannot find input file: $f" >&2;}
15076 { (exit 1); exit 1; }; }
15077 echo "$f";;
15078 *) # Relative
15079 if test -f "$f"; then
15080 # Build tree
15081 echo "$f"
15082 elif test -f "$srcdir/$f"; then
15083 # Source tree
15084 echo "$srcdir/$f"
15085 else
15086 # /dev/null tree
15087 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15088echo "$as_me: error: cannot find input file: $f" >&2;}
15089 { (exit 1); exit 1; }; }
15090 fi;;
15091 esac
15092 done` || { (exit 1); exit 1; }
42ecbf5e
DJ
15093_ACEOF
15094cat >>$CONFIG_STATUS <<_ACEOF
15095 sed "$ac_vpsub
15096$extrasub
15097_ACEOF
15098cat >>$CONFIG_STATUS <<\_ACEOF
15099:t
15100/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15101s,@configure_input@,$configure_input,;t t
15102s,@srcdir@,$ac_srcdir,;t t
15103s,@abs_srcdir@,$ac_abs_srcdir,;t t
15104s,@top_srcdir@,$ac_top_srcdir,;t t
15105s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
15106s,@builddir@,$ac_builddir,;t t
15107s,@abs_builddir@,$ac_abs_builddir,;t t
15108s,@top_builddir@,$ac_top_builddir,;t t
15109s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
15110s,@INSTALL@,$ac_INSTALL,;t t
15111" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
15112 rm -f $tmp/stdin
15113 if test x"$ac_file" != x-; then
15114 mv $tmp/out $ac_file
15115 else
15116 cat $tmp/out
15117 rm -f $tmp/out
15118 fi
15119
15120done
15121_ACEOF
15122cat >>$CONFIG_STATUS <<\_ACEOF
15123
15124#
15125# CONFIG_HEADER section.
15126#
252b5132
RH
15127
15128# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15129# NAME is the cpp macro being defined and VALUE is the value it is being given.
15130#
15131# ac_d sets the value in "#define NAME VALUE" lines.
42ecbf5e
DJ
15132ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
15133ac_dB='[ ].*$,\1#\2'
15134ac_dC=' '
15135ac_dD=',;t'
15136# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15137ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15138ac_uB='$,\1#\2define\3'
252b5132 15139ac_uC=' '
42ecbf5e
DJ
15140ac_uD=',;t'
15141
15142for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
252b5132 15143 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42ecbf5e
DJ
15144 case $ac_file in
15145 - | *:- | *:-:* ) # input from stdin
15146 cat >$tmp/stdin
15147 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15148 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15149 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15150 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15151 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
15152 esac
15153
42ecbf5e
DJ
15154 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
15155echo "$as_me: creating $ac_file" >&6;}
15156
15157 # First look for the input files in the build tree, otherwise in the
15158 # src tree.
15159 ac_file_inputs=`IFS=:
15160 for f in $ac_file_in; do
15161 case $f in
15162 -) echo $tmp/stdin ;;
15163 [\\/$]*)
15164 # Absolute (can't be DOS-style, as IFS=:)
15165 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15166echo "$as_me: error: cannot find input file: $f" >&2;}
15167 { (exit 1); exit 1; }; }
15168 # Do quote $f, to prevent DOS paths from being IFS'd.
15169 echo "$f";;
15170 *) # Relative
15171 if test -f "$f"; then
15172 # Build tree
15173 echo "$f"
15174 elif test -f "$srcdir/$f"; then
15175 # Source tree
15176 echo "$srcdir/$f"
15177 else
15178 # /dev/null tree
15179 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15180echo "$as_me: error: cannot find input file: $f" >&2;}
15181 { (exit 1); exit 1; }; }
15182 fi;;
15183 esac
15184 done` || { (exit 1); exit 1; }
15185 # Remove the trailing spaces.
15186 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
15187
15188_ACEOF
15189
15190# Transform confdefs.h into two sed scripts, `conftest.defines' and
15191# `conftest.undefs', that substitutes the proper values into
15192# config.h.in to produce config.h. The first handles `#define'
15193# templates, and the second `#undef' templates.
15194# And first: Protect against being on the right side of a sed subst in
15195# config.status. Protect against being in an unquoted here document
15196# in config.status.
15197rm -f conftest.defines conftest.undefs
15198# Using a here document instead of a string reduces the quoting nightmare.
15199# Putting comments in sed scripts is not portable.
15200#
15201# `end' is used to avoid that the second main sed command (meant for
15202# 0-ary CPP macros) applies to n-ary macro definitions.
15203# See the Autoconf documentation for `clear'.
15204cat >confdef2sed.sed <<\_ACEOF
15205s/[\\&,]/\\&/g
15206s,[\\$`],\\&,g
15207t clear
15208: clear
15209s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
15210t end
15211s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
15212: end
15213_ACEOF
15214# If some macros were called several times there might be several times
15215# the same #defines, which is useless. Nevertheless, we may not want to
15216# sort them, since we want the *last* AC-DEFINE to be honored.
15217uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
15218sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
15219rm -f confdef2sed.sed
252b5132
RH
15220
15221# This sed command replaces #undef with comments. This is necessary, for
15222# example, in the case of _POSIX_SOURCE, which is predefined and required
15223# on some systems where configure will not decide to define it.
42ecbf5e
DJ
15224cat >>conftest.undefs <<\_ACEOF
15225s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
15226_ACEOF
15227
15228# Break up conftest.defines because some shells have a limit on the size
15229# of here documents, and old seds have small limits too (100 cmds).
15230echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
15231echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
15232echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
15233echo ' :' >>$CONFIG_STATUS
15234rm -f conftest.tail
15235while grep . conftest.defines >/dev/null
15236do
15237 # Write a limited-size here document to $tmp/defines.sed.
15238 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
15239 # Speed up: don't consider the non `#define' lines.
15240 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
15241 # Work around the forget-to-reset-the-flag bug.
15242 echo 't clr' >>$CONFIG_STATUS
15243 echo ': clr' >>$CONFIG_STATUS
15244 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
15245 echo 'CEOF
15246 sed -f $tmp/defines.sed $tmp/in >$tmp/out
15247 rm -f $tmp/in
15248 mv $tmp/out $tmp/in
15249' >>$CONFIG_STATUS
15250 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
15251 rm -f conftest.defines
15252 mv conftest.tail conftest.defines
15253done
15254rm -f conftest.defines
15255echo ' fi # grep' >>$CONFIG_STATUS
15256echo >>$CONFIG_STATUS
252b5132 15257
42ecbf5e
DJ
15258# Break up conftest.undefs because some shells have a limit on the size
15259# of here documents, and old seds have small limits too (100 cmds).
15260echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
252b5132 15261rm -f conftest.tail
42ecbf5e 15262while grep . conftest.undefs >/dev/null
252b5132 15263do
42ecbf5e
DJ
15264 # Write a limited-size here document to $tmp/undefs.sed.
15265 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
15266 # Speed up: don't consider the non `#undef'
15267 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
15268 # Work around the forget-to-reset-the-flag bug.
15269 echo 't clr' >>$CONFIG_STATUS
15270 echo ': clr' >>$CONFIG_STATUS
15271 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
252b5132 15272 echo 'CEOF
42ecbf5e
DJ
15273 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
15274 rm -f $tmp/in
15275 mv $tmp/out $tmp/in
15276' >>$CONFIG_STATUS
15277 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
15278 rm -f conftest.undefs
15279 mv conftest.tail conftest.undefs
252b5132 15280done
42ecbf5e
DJ
15281rm -f conftest.undefs
15282
15283cat >>$CONFIG_STATUS <<\_ACEOF
15284 # Let's still pretend it is `configure' which instantiates (i.e., don't
15285 # use $as_me), people would be surprised to read:
15286 # /* config.h. Generated by config.status. */
15287 if test x"$ac_file" = x-; then
15288 echo "/* Generated by configure. */" >$tmp/config.h
252b5132 15289 else
42ecbf5e
DJ
15290 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
15291 fi
15292 cat $tmp/in >>$tmp/config.h
15293 rm -f $tmp/in
15294 if test x"$ac_file" != x-; then
15295 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
15296 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15297echo "$as_me: $ac_file is unchanged" >&6;}
15298 else
15299 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15300$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15301 X"$ac_file" : 'X\(//\)[^/]' \| \
15302 X"$ac_file" : 'X\(//\)$' \| \
15303 X"$ac_file" : 'X\(/\)' \| \
15304 . : '\(.\)' 2>/dev/null ||
15305echo X"$ac_file" |
15306 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15307 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15308 /^X\(\/\/\)$/{ s//\1/; q; }
15309 /^X\(\/\).*/{ s//\1/; q; }
15310 s/.*/./; q'`
15311 { if $as_mkdir_p; then
15312 mkdir -p "$ac_dir"
15313 else
15314 as_dir="$ac_dir"
15315 as_dirs=
15316 while test ! -d "$as_dir"; do
15317 as_dirs="$as_dir $as_dirs"
15318 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15319$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15320 X"$as_dir" : 'X\(//\)[^/]' \| \
15321 X"$as_dir" : 'X\(//\)$' \| \
15322 X"$as_dir" : 'X\(/\)' \| \
15323 . : '\(.\)' 2>/dev/null ||
15324echo X"$as_dir" |
15325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15326 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15327 /^X\(\/\/\)$/{ s//\1/; q; }
15328 /^X\(\/\).*/{ s//\1/; q; }
15329 s/.*/./; q'`
15330 done
15331 test ! -n "$as_dirs" || mkdir $as_dirs
15332 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15333echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15334 { (exit 1); exit 1; }; }; }
15335
15336 rm -f $ac_file
15337 mv $tmp/config.h $ac_file
252b5132 15338 fi
42ecbf5e
DJ
15339 else
15340 cat $tmp/config.h
15341 rm -f $tmp/config.h
e5a52504 15342 fi
42ecbf5e
DJ
15343# Compute $ac_file's index in $config_headers.
15344_am_stamp_count=1
15345for _am_header in $config_headers :; do
15346 case $_am_header in
15347 $ac_file | $ac_file:* )
15348 break ;;
15349 * )
15350 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15351 esac
15352done
15353echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
15354$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15355 X$ac_file : 'X\(//\)[^/]' \| \
15356 X$ac_file : 'X\(//\)$' \| \
15357 X$ac_file : 'X\(/\)' \| \
15358 . : '\(.\)' 2>/dev/null ||
15359echo X$ac_file |
15360 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15361 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15362 /^X\(\/\/\)$/{ s//\1/; q; }
15363 /^X\(\/\).*/{ s//\1/; q; }
15364 s/.*/./; q'`/stamp-h$_am_stamp_count
15365done
15366_ACEOF
15367cat >>$CONFIG_STATUS <<\_ACEOF
e5a52504 15368
42ecbf5e
DJ
15369#
15370# CONFIG_COMMANDS section.
15371#
15372for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
15373 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
15374 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
15375 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
15376$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15377 X"$ac_dest" : 'X\(//\)[^/]' \| \
15378 X"$ac_dest" : 'X\(//\)$' \| \
15379 X"$ac_dest" : 'X\(/\)' \| \
15380 . : '\(.\)' 2>/dev/null ||
15381echo X"$ac_dest" |
15382 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15383 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15384 /^X\(\/\/\)$/{ s//\1/; q; }
15385 /^X\(\/\).*/{ s//\1/; q; }
15386 s/.*/./; q'`
15387 { if $as_mkdir_p; then
15388 mkdir -p "$ac_dir"
15389 else
15390 as_dir="$ac_dir"
15391 as_dirs=
15392 while test ! -d "$as_dir"; do
15393 as_dirs="$as_dir $as_dirs"
15394 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15395$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15396 X"$as_dir" : 'X\(//\)[^/]' \| \
15397 X"$as_dir" : 'X\(//\)$' \| \
15398 X"$as_dir" : 'X\(/\)' \| \
15399 . : '\(.\)' 2>/dev/null ||
15400echo X"$as_dir" |
15401 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15402 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15403 /^X\(\/\/\)$/{ s//\1/; q; }
15404 /^X\(\/\).*/{ s//\1/; q; }
15405 s/.*/./; q'`
15406 done
15407 test ! -n "$as_dirs" || mkdir $as_dirs
15408 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15409echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15410 { (exit 1); exit 1; }; }; }
e5a52504 15411
42ecbf5e 15412 ac_builddir=.
e5a52504 15413
42ecbf5e
DJ
15414if test "$ac_dir" != .; then
15415 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15416 # A "../" for each directory in $ac_dir_suffix.
15417 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15418else
15419 ac_dir_suffix= ac_top_builddir=
15420fi
15421
15422case $srcdir in
15423 .) # No --srcdir option. We are building in place.
15424 ac_srcdir=.
15425 if test -z "$ac_top_builddir"; then
15426 ac_top_srcdir=.
15427 else
15428 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15429 fi ;;
15430 [\\/]* | ?:[\\/]* ) # Absolute path.
15431 ac_srcdir=$srcdir$ac_dir_suffix;
15432 ac_top_srcdir=$srcdir ;;
15433 *) # Relative path.
15434 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15435 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15436esac
15437
15438# Do not use `cd foo && pwd` to compute absolute paths, because
15439# the directories may not exist.
15440case `pwd` in
15441.) ac_abs_builddir="$ac_dir";;
15442*)
15443 case "$ac_dir" in
15444 .) ac_abs_builddir=`pwd`;;
15445 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15446 *) ac_abs_builddir=`pwd`/"$ac_dir";;
15447 esac;;
15448esac
15449case $ac_abs_builddir in
15450.) ac_abs_top_builddir=${ac_top_builddir}.;;
15451*)
15452 case ${ac_top_builddir}. in
15453 .) ac_abs_top_builddir=$ac_abs_builddir;;
15454 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15455 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15456 esac;;
15457esac
15458case $ac_abs_builddir in
15459.) ac_abs_srcdir=$ac_srcdir;;
15460*)
15461 case $ac_srcdir in
15462 .) ac_abs_srcdir=$ac_abs_builddir;;
15463 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15464 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15465 esac;;
15466esac
15467case $ac_abs_builddir in
15468.) ac_abs_top_srcdir=$ac_top_srcdir;;
15469*)
15470 case $ac_top_srcdir in
15471 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15472 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15473 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15474 esac;;
15475esac
15476
15477
15478 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
15479echo "$as_me: executing $ac_dest commands" >&6;}
15480 case $ac_dest in
15481 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
15482 # Strip MF so we end up with the name of the file.
15483 mf=`echo "$mf" | sed -e 's/:.*$//'`
15484 # Check whether this is an Automake generated Makefile or not.
15485 # We used to match only the files named `Makefile.in', but
15486 # some people rename them; so instead we look at the file content.
15487 # Grep'ing the first line is not enough: some people post-process
15488 # each Makefile.in and add a new line on top of each file to say so.
15489 # So let's grep whole file.
15490 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
15491 dirpart=`(dirname "$mf") 2>/dev/null ||
15492$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15493 X"$mf" : 'X\(//\)[^/]' \| \
15494 X"$mf" : 'X\(//\)$' \| \
15495 X"$mf" : 'X\(/\)' \| \
15496 . : '\(.\)' 2>/dev/null ||
15497echo X"$mf" |
15498 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15499 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15500 /^X\(\/\/\)$/{ s//\1/; q; }
15501 /^X\(\/\).*/{ s//\1/; q; }
15502 s/.*/./; q'`
15503 else
15504 continue
15505 fi
15506 # Extract the definition of DEPDIR, am__include, and am__quote
15507 # from the Makefile without running `make'.
15508 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15509 test -z "$DEPDIR" && continue
15510 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15511 test -z "am__include" && continue
15512 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15513 # When using ansi2knr, U may be empty or an underscore; expand it
15514 U=`sed -n 's/^U = //p' < "$mf"`
15515 # Find all dependency output files, they are included files with
15516 # $(DEPDIR) in their names. We invoke sed twice because it is the
15517 # simplest approach to changing $(DEPDIR) to its actual value in the
15518 # expansion.
15519 for file in `sed -n "
15520 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15521 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15522 # Make sure the directory exists.
15523 test -f "$dirpart/$file" && continue
15524 fdir=`(dirname "$file") 2>/dev/null ||
15525$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15526 X"$file" : 'X\(//\)[^/]' \| \
15527 X"$file" : 'X\(//\)$' \| \
15528 X"$file" : 'X\(/\)' \| \
15529 . : '\(.\)' 2>/dev/null ||
15530echo X"$file" |
15531 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15532 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15533 /^X\(\/\/\)$/{ s//\1/; q; }
15534 /^X\(\/\).*/{ s//\1/; q; }
15535 s/.*/./; q'`
15536 { if $as_mkdir_p; then
15537 mkdir -p $dirpart/$fdir
15538 else
15539 as_dir=$dirpart/$fdir
15540 as_dirs=
15541 while test ! -d "$as_dir"; do
15542 as_dirs="$as_dir $as_dirs"
15543 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15544$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15545 X"$as_dir" : 'X\(//\)[^/]' \| \
15546 X"$as_dir" : 'X\(//\)$' \| \
15547 X"$as_dir" : 'X\(/\)' \| \
15548 . : '\(.\)' 2>/dev/null ||
15549echo X"$as_dir" |
15550 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15551 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15552 /^X\(\/\/\)$/{ s//\1/; q; }
15553 /^X\(\/\).*/{ s//\1/; q; }
15554 s/.*/./; q'`
15555 done
15556 test ! -n "$as_dirs" || mkdir $as_dirs
15557 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
15558echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
15559 { (exit 1); exit 1; }; }; }
15560
15561 # echo "creating $dirpart/$file"
15562 echo '# dummy' > "$dirpart/$file"
15563 done
15564done
d7040cdb
SE
15565 ;;
15566 libtool )
15567
15568 # See if we are running on zsh, and set the options which allow our
15569 # commands through without removal of \ escapes.
15570 if test -n "${ZSH_VERSION+set}" ; then
15571 setopt NO_GLOB_SUBST
15572 fi
15573
15574 cfgfile="${ofile}T"
15575 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15576 $RM "$cfgfile"
15577
15578 cat <<_LT_EOF >> "$cfgfile"
15579#! $SHELL
15580
15581# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15582# Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
15583# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15584# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15585#
15586# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15587# 2006, 2007 Free Software Foundation, Inc.
15588#
15589# This file is part of GNU Libtool:
15590# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
15591#
15592# This program is free software; you can redistribute it and/or modify
15593# it under the terms of the GNU General Public License as published by
67310ccd 15594# the Free Software Foundation; either version 2 of the License, or
d7040cdb
SE
15595# (at your option) any later version.
15596#
15597# This program is distributed in the hope that it will be useful, but
15598# WITHOUT ANY WARRANTY; without even the implied warranty of
15599# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15600# General Public License for more details.
15601#
15602# You should have received a copy of the GNU General Public License
15603# along with this program; if not, a copy can be downloaded from
15604# http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
15605# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
15606# MA 02110-1301, USA.
15607#
15608# As a special exception to the GNU General Public License, if you
15609# distribute this file as part of a program that contains a
15610# configuration script generated by Autoconf, you may include it under
15611# the same distribution terms that you use for the rest of that program.
15612
15613
15614# The names of the tagged configurations supported by this script.
15615available_tags=""
15616
15617# ### BEGIN LIBTOOL CONFIG
15618
15619# Which release of libtool.m4 was used?
15620macro_version=$macro_version
15621macro_revision=$macro_revision
15622
15623# Whether or not to build shared libraries.
15624build_libtool_libs=$enable_shared
15625
15626# Whether or not to build static libraries.
15627build_old_libs=$enable_static
15628
15629# What type of objects to build.
15630pic_mode=$pic_mode
15631
15632# Whether or not to optimize for fast installation.
15633fast_install=$enable_fast_install
15634
15635# The host system.
15636host_alias=$host_alias
15637host=$host
15638host_os=$host_os
15639
15640# The build system.
15641build_alias=$build_alias
15642build=$build
15643build_os=$build_os
15644
15645# A sed program that does not truncate output.
15646SED=$lt_SED
15647
15648# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15649Xsed="\$SED -e 1s/^X//"
15650
15651# A grep program that handles long lines.
15652GREP=$lt_GREP
15653
15654# An ERE matcher.
15655EGREP=$lt_EGREP
15656
15657# A literal string matcher.
15658FGREP=$lt_FGREP
15659
15660# A BSD- or MS-compatible name lister.
15661NM=$lt_NM
15662
15663# Whether we need soft or hard links.
15664LN_S=$lt_LN_S
15665
15666# What is the maximum length of a command?
15667max_cmd_len=$max_cmd_len
15668
15669# Object file suffix (normally "o").
15670objext=$ac_objext
15671
15672# Executable file suffix (normally "").
15673exeext=$exeext
15674
15675# whether the shell understands "unset".
15676lt_unset=$lt_unset
15677
15678# turn spaces into newlines.
15679SP2NL=$lt_lt_SP2NL
15680
15681# turn newlines into spaces.
15682NL2SP=$lt_lt_NL2SP
15683
15684# How to create reloadable object files.
15685reload_flag=$lt_reload_flag
15686reload_cmds=$lt_reload_cmds
15687
15688# Method to check whether dependent libraries are shared objects.
15689deplibs_check_method=$lt_deplibs_check_method
15690
15691# Command to use when deplibs_check_method == "file_magic".
15692file_magic_cmd=$lt_file_magic_cmd
15693
15694# The archiver.
15695AR=$lt_AR
15696AR_FLAGS=$lt_AR_FLAGS
15697
15698# A symbol stripping program.
15699STRIP=$lt_STRIP
15700
15701# Commands used to install an old-style archive.
15702RANLIB=$lt_RANLIB
15703old_postinstall_cmds=$lt_old_postinstall_cmds
15704old_postuninstall_cmds=$lt_old_postuninstall_cmds
15705
15706# A C compiler.
15707LTCC=$lt_CC
15708
15709# LTCC compiler flags.
15710LTCFLAGS=$lt_CFLAGS
15711
15712# Take the output of nm and produce a listing of raw symbols and C names.
15713global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15714
15715# Transform the output of nm in a proper C declaration.
15716global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15717
15718# Transform the output of nm in a C name address pair.
15719global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15720
15721# The name of the directory that contains temporary libtool files.
15722objdir=$objdir
15723
15724# Shell to use when invoking shell scripts.
15725SHELL=$lt_SHELL
15726
15727# An echo program that does not interpret backslashes.
15728ECHO=$lt_ECHO
15729
15730# Used to examine libraries when file_magic_cmd begins with "file".
15731MAGIC_CMD=$MAGIC_CMD
15732
15733# Must we lock files when doing compilation?
15734need_locks=$lt_need_locks
15735
15736# Old archive suffix (normally "a").
15737libext=$libext
15738
15739# Shared library suffix (normally ".so").
15740shrext_cmds=$lt_shrext_cmds
15741
15742# The commands to extract the exported symbol list from a shared archive.
15743extract_expsyms_cmds=$lt_extract_expsyms_cmds
15744
15745# Variables whose values should be saved in libtool wrapper scripts and
15746# restored at link time.
15747variables_saved_for_relink=$lt_variables_saved_for_relink
15748
15749# Do we need the "lib" prefix for modules?
15750need_lib_prefix=$need_lib_prefix
15751
15752# Do we need a version for libraries?
15753need_version=$need_version
15754
15755# Library versioning type.
15756version_type=$version_type
15757
15758# Shared library runtime path variable.
15759runpath_var=$runpath_var
15760
15761# Shared library path variable.
15762shlibpath_var=$shlibpath_var
15763
15764# Is shlibpath searched before the hard-coded library search path?
15765shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15766
15767# Format of library name prefix.
15768libname_spec=$lt_libname_spec
15769
15770# List of archive names. First name is the real one, the rest are links.
15771# The last name is the one that the linker finds with -lNAME
15772library_names_spec=$lt_library_names_spec
15773
15774# The coded name of the library, if different from the real name.
15775soname_spec=$lt_soname_spec
15776
15777# Command to use after installation of a shared archive.
15778postinstall_cmds=$lt_postinstall_cmds
15779
15780# Command to use after uninstallation of a shared archive.
15781postuninstall_cmds=$lt_postuninstall_cmds
15782
15783# Commands used to finish a libtool library installation in a directory.
15784finish_cmds=$lt_finish_cmds
15785
15786# As "finish_cmds", except a single script fragment to be evaled but
15787# not shown.
15788finish_eval=$lt_finish_eval
15789
15790# Whether we should hardcode library paths into libraries.
15791hardcode_into_libs=$hardcode_into_libs
15792
15793# Compile-time system search path for libraries.
15794sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15795
15796# Run-time system search path for libraries.
15797sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15798
15799# Whether dlopen is supported.
15800dlopen_support=$enable_dlopen
15801
15802# Whether dlopen of programs is supported.
15803dlopen_self=$enable_dlopen_self
15804
15805# Whether dlopen of statically linked programs is supported.
15806dlopen_self_static=$enable_dlopen_self_static
15807
15808# Commands to strip libraries.
15809old_striplib=$lt_old_striplib
15810striplib=$lt_striplib
15811
15812
15813# The linker used to build libraries.
15814LD=$lt_LD
15815
15816# Commands used to build an old-style archive.
15817old_archive_cmds=$lt_old_archive_cmds
15818
15819# A language specific compiler.
15820CC=$lt_compiler
15821
15822# Is the compiler the GNU compiler?
15823with_gcc=$GCC
15824
15825# Compiler flag to turn off builtin functions.
15826no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15827
15828# How to pass a linker flag through the compiler.
15829wl=$lt_lt_prog_compiler_wl
15830
15831# Additional compiler flags for building library objects.
15832pic_flag=$lt_lt_prog_compiler_pic
15833
15834# Compiler flag to prevent dynamic linking.
15835link_static_flag=$lt_lt_prog_compiler_static
15836
15837# Does compiler simultaneously support -c and -o options?
15838compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15839
15840# Whether or not to add -lc for building shared libraries.
15841build_libtool_need_lc=$archive_cmds_need_lc
15842
15843# Whether or not to disallow shared libs when runtime libs are static.
15844allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15845
15846# Compiler flag to allow reflexive dlopens.
15847export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15848
15849# Compiler flag to generate shared objects directly from archives.
15850whole_archive_flag_spec=$lt_whole_archive_flag_spec
15851
15852# Whether the compiler copes with passing no objects directly.
15853compiler_needs_object=$lt_compiler_needs_object
15854
15855# Create an old-style archive from a shared archive.
15856old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15857
15858# Create a temporary old-style archive to link instead of a shared archive.
15859old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15860
15861# Commands used to build a shared archive.
15862archive_cmds=$lt_archive_cmds
15863archive_expsym_cmds=$lt_archive_expsym_cmds
15864
15865# Commands used to build a loadable module if different from building
15866# a shared archive.
15867module_cmds=$lt_module_cmds
15868module_expsym_cmds=$lt_module_expsym_cmds
15869
15870# Whether we are building with GNU ld or not.
15871with_gnu_ld=$lt_with_gnu_ld
15872
15873# Flag that allows shared libraries with undefined symbols to be built.
15874allow_undefined_flag=$lt_allow_undefined_flag
15875
15876# Flag that enforces no undefined symbols.
15877no_undefined_flag=$lt_no_undefined_flag
15878
15879# Flag to hardcode \$libdir into a binary during linking.
15880# This must work even if \$libdir does not exist
15881hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15882
15883# If ld is used when linking, flag to hardcode \$libdir into a binary
15884# during linking. This must work even if \$libdir does not exist.
15885hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15886
15887# Whether we need a single "-rpath" flag with a separated argument.
15888hardcode_libdir_separator=$lt_hardcode_libdir_separator
15889
15890# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15891# DIR into the resulting binary.
15892hardcode_direct=$hardcode_direct
15893
15894# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15895# DIR into the resulting binary and the resulting library dependency is
15896# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15897# library is relocated.
15898hardcode_direct_absolute=$hardcode_direct_absolute
15899
15900# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15901# into the resulting binary.
15902hardcode_minus_L=$hardcode_minus_L
15903
15904# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15905# into the resulting binary.
15906hardcode_shlibpath_var=$hardcode_shlibpath_var
15907
15908# Set to "yes" if building a shared library automatically hardcodes DIR
15909# into the library and all subsequent libraries and executables linked
15910# against it.
15911hardcode_automatic=$hardcode_automatic
15912
15913# Set to yes if linker adds runtime paths of dependent libraries
15914# to runtime path list.
15915inherit_rpath=$inherit_rpath
15916
15917# Whether libtool must link a program against all its dependency libraries.
15918link_all_deplibs=$link_all_deplibs
15919
15920# Fix the shell variable \$srcfile for the compiler.
15921fix_srcfile_path=$lt_fix_srcfile_path
15922
15923# Set to "yes" if exported symbols are required.
15924always_export_symbols=$always_export_symbols
15925
15926# The commands to list exported symbols.
15927export_symbols_cmds=$lt_export_symbols_cmds
15928
15929# Symbols that should not be listed in the preloaded symbols.
15930exclude_expsyms=$lt_exclude_expsyms
15931
15932# Symbols that must always be exported.
15933include_expsyms=$lt_include_expsyms
15934
15935# Commands necessary for linking programs (against libraries) with templates.
15936prelink_cmds=$lt_prelink_cmds
15937
15938# Specify filename containing input files.
15939file_list_spec=$lt_file_list_spec
15940
15941# How to hardcode a shared library path into an executable.
15942hardcode_action=$hardcode_action
15943
15944# ### END LIBTOOL CONFIG
15945
15946_LT_EOF
15947
15948 case $host_os in
15949 aix3*)
15950 cat <<\_LT_EOF >> "$cfgfile"
15951# AIX sometimes has problems with the GCC collect2 program. For some
15952# reason, if we set the COLLECT_NAMES environment variable, the problems
15953# vanish in a puff of smoke.
15954if test "X${COLLECT_NAMES+set}" != Xset; then
15955 COLLECT_NAMES=
15956 export COLLECT_NAMES
15957fi
15958_LT_EOF
15959 ;;
15960 esac
15961
15962
15963ltmain="$ac_aux_dir/ltmain.sh"
15964
15965
15966 # We use sed instead of cat because bash on DJGPP gets confused if
15967 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15968 # text mode, it properly converts lines to CR/LF. This bash problem
15969 # is reportedly fixed, but why not run on old versions too?
15970 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15971 || (rm -f "$cfgfile"; exit 1)
15972
15973 case $xsi_shell in
15974 yes)
15975 cat << \_LT_EOF >> "$cfgfile"
15976# func_dirname file append nondir_replacement
15977# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15978# otherwise set result to NONDIR_REPLACEMENT.
15979func_dirname ()
15980{
15981 case ${1} in
15982 */*) func_dirname_result="${1%/*}${2}" ;;
15983 * ) func_dirname_result="${3}" ;;
15984 esac
15985}
15986
15987# func_basename file
15988func_basename ()
15989{
15990 func_basename_result="${1##*/}"
15991}
15992
15993# func_stripname prefix suffix name
15994# strip PREFIX and SUFFIX off of NAME.
15995# PREFIX and SUFFIX must not contain globbing or regex special
15996# characters, hashes, percent signs, but SUFFIX may contain a leading
15997# dot (in which case that matches only a dot).
15998func_stripname ()
15999{
16000 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16001 # positional parameters, so assign one to ordinary parameter first.
16002 func_stripname_result=${3}
16003 func_stripname_result=${func_stripname_result#"${1}"}
16004 func_stripname_result=${func_stripname_result%"${2}"}
16005}
16006
16007# func_opt_split
16008func_opt_split ()
16009{
16010 func_opt_split_opt=${1%%=*}
16011 func_opt_split_arg=${1#*=}
16012}
16013
16014# func_lo2o object
16015func_lo2o ()
16016{
16017 case ${1} in
16018 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16019 *) func_lo2o_result=${1} ;;
16020 esac
16021}
16022_LT_EOF
16023 ;;
16024 *) # Bourne compatible functions.
16025 cat << \_LT_EOF >> "$cfgfile"
16026# func_dirname file append nondir_replacement
16027# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16028# otherwise set result to NONDIR_REPLACEMENT.
16029func_dirname ()
16030{
16031 # Extract subdirectory from the argument.
16032 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
16033 if test "X$func_dirname_result" = "X${1}"; then
16034 func_dirname_result="${3}"
16035 else
16036 func_dirname_result="$func_dirname_result${2}"
16037 fi
16038}
16039
16040# func_basename file
16041func_basename ()
16042{
16043 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
16044}
16045
16046# func_stripname prefix suffix name
16047# strip PREFIX and SUFFIX off of NAME.
16048# PREFIX and SUFFIX must not contain globbing or regex special
16049# characters, hashes, percent signs, but SUFFIX may contain a leading
16050# dot (in which case that matches only a dot).
16051# func_strip_suffix prefix name
16052func_stripname ()
16053{
16054 case ${2} in
16055 .*) func_stripname_result=`$ECHO "X${3}" \
16056 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
16057 *) func_stripname_result=`$ECHO "X${3}" \
16058 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
16059 esac
16060}
16061
16062# sed scripts:
16063my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16064my_sed_long_arg='1s/^-[^=]*=//'
16065
16066# func_opt_split
16067func_opt_split ()
16068{
16069 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
16070 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
16071}
16072
16073# func_lo2o object
16074func_lo2o ()
16075{
16076 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
16077}
16078_LT_EOF
16079esac
16080
16081case $lt_shell_append in
16082 yes)
16083 cat << \_LT_EOF >> "$cfgfile"
16084
16085# func_append var value
16086# Append VALUE to the end of shell variable VAR.
16087func_append ()
16088{
16089 eval "$1+=\$2"
16090}
16091_LT_EOF
16092 ;;
16093 *)
16094 cat << \_LT_EOF >> "$cfgfile"
16095
16096# func_append var value
16097# Append VALUE to the end of shell variable VAR.
16098func_append ()
16099{
16100 eval "$1=\$$1\$2"
16101}
16102_LT_EOF
16103 ;;
16104 esac
16105
16106
16107 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16108 || (rm -f "$cfgfile"; exit 1)
16109
16110 mv -f "$cfgfile" "$ofile" ||
16111 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16112 chmod +x "$ofile"
16113
42ecbf5e 16114 ;;
20e95c23
DJ
16115 default-1 )
16116 for ac_file in $CONFIG_FILES; do
16117 # Support "outfile[:infile[:infile...]]"
16118 case "$ac_file" in
16119 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16120 esac
16121 # PO directories have a Makefile.in generated from Makefile.in.in.
16122 case "$ac_file" in */Makefile.in)
16123 # Adjust a relative srcdir.
16124 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16125 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16126 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16127 # In autoconf-2.13 it is called $ac_given_srcdir.
16128 # In autoconf-2.50 it is called $srcdir.
16129 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16130 case "$ac_given_srcdir" in
16131 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16132 /*) top_srcdir="$ac_given_srcdir" ;;
16133 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16134 esac
16135 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16136 rm -f "$ac_dir/POTFILES"
16137 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16138 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16139 POMAKEFILEDEPS="POTFILES.in"
16140 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
16141 # on $ac_dir but don't depend on user-specified configuration
16142 # parameters.
16143 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16144 # The LINGUAS file contains the set of available languages.
16145 if test -n "$OBSOLETE_ALL_LINGUAS"; then
16146 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16147 fi
16148 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16149 # Hide the ALL_LINGUAS assigment from automake.
16150 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16151 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16152 else
16153 # The set of available languages was given in configure.in.
16154 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16155 fi
16156 case "$ac_given_srcdir" in
16157 .) srcdirpre= ;;
16158 *) srcdirpre='$(srcdir)/' ;;
16159 esac
16160 POFILES=
16161 GMOFILES=
16162 UPDATEPOFILES=
16163 DUMMYPOFILES=
16164 for lang in $ALL_LINGUAS; do
16165 POFILES="$POFILES $srcdirpre$lang.po"
16166 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16167 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16168 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16169 done
16170 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16171 # environment variable.
16172 INST_LINGUAS=
16173 if test -n "$ALL_LINGUAS"; then
16174 for presentlang in $ALL_LINGUAS; do
16175 useit=no
16176 if test "%UNSET%" != "$LINGUAS"; then
16177 desiredlanguages="$LINGUAS"
16178 else
16179 desiredlanguages="$ALL_LINGUAS"
16180 fi
16181 for desiredlang in $desiredlanguages; do
16182 # Use the presentlang catalog if desiredlang is
16183 # a. equal to presentlang, or
16184 # b. a variant of presentlang (because in this case,
16185 # presentlang can be used as a fallback for messages
16186 # which are not translated in the desiredlang catalog).
16187 case "$desiredlang" in
16188 "$presentlang"*) useit=yes;;
16189 esac
16190 done
16191 if test $useit = yes; then
16192 INST_LINGUAS="$INST_LINGUAS $presentlang"
16193 fi
16194 done
16195 fi
16196 CATALOGS=
16197 if test -n "$INST_LINGUAS"; then
16198 for lang in $INST_LINGUAS; do
16199 CATALOGS="$CATALOGS $lang.gmo"
16200 done
16201 fi
16202 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16203 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"
16204 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16205 if test -f "$f"; then
16206 case "$f" in
16207 *.orig | *.bak | *~) ;;
16208 *) cat "$f" >> "$ac_dir/Makefile" ;;
16209 esac
16210 fi
16211 done
16212 fi
16213 ;;
16214 esac
16215 done ;;
42ecbf5e
DJ
16216 esac
16217done
16218_ACEOF
16219
16220cat >>$CONFIG_STATUS <<\_ACEOF
16221
16222{ (exit 0); exit 0; }
16223_ACEOF
252b5132 16224chmod +x $CONFIG_STATUS
42ecbf5e
DJ
16225ac_clean_files=$ac_clean_files_save
16226
16227
16228# configure is writing to config.log, and then calls config.status.
16229# config.status does its own redirection, appending to config.log.
16230# Unfortunately, on DOS this fails, as config.log is still kept open
16231# by configure, so config.status won't be able to write to it; its
16232# output is simply discarded. So we exec the FD to /dev/null,
16233# effectively closing config.log, so it can be properly (re)opened and
16234# appended to by config.status. When coming back to configure, we
16235# need to make the FD available again.
16236if test "$no_create" != yes; then
16237 ac_cs_success=:
16238 ac_config_status_args=
16239 test "$silent" = yes &&
16240 ac_config_status_args="$ac_config_status_args --quiet"
16241 exec 5>/dev/null
16242 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16243 exec 5>>config.log
16244 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16245 # would make configure fail if this is the last instruction.
16246 $ac_cs_success || { (exit 1); exit 1; }
16247fi
252b5132 16248
This page took 2.064536 seconds and 4 git commands to generate.