bfd/
[deliverable/binutils-gdb.git] / binutils / 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="ar.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 CPP EGREP LIBTOOL SED FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO WARN_CFLAGS NO_WERROR YACC LEX LEXLIB LEX_OUTPUT_ROOT USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GENINSRC_NEVER_TRUE GENINSRC_NEVER_FALSE HDEFINES CC_FOR_BUILD EXEEXT_FOR_BUILD DEMANGLER_NAME ALLOCA LIBICONV LTLIBICONV NLMCONV_DEFS BUILD_NLMCONV BUILD_SRCONV BUILD_DLLTOOL DLLTOOL_DEFS BUILD_WINDRES BUILD_WINDMC BUILD_DLLWRAP BUILD_MISC BUILD_INSTALL_MISC OBJDUMP_DEFS EMULATION EMULATION_VECTOR datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
42ecbf5e 462ac_subst_files=''
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 ;;
252b5132
RH
712
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
RH
806fi
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
252b5132 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
d053aef8 1005 --disable-largefile omit support for large files
d7040cdb
SE
1006 --enable-shared[=PKGS]
1007 build shared libraries [default=yes]
1008 --enable-static[=PKGS]
1009 build static libraries [default=yes]
1010 --enable-fast-install[=PKGS]
1011 optimize for fast installation [default=yes]
42ecbf5e
DJ
1012 --disable-libtool-lock avoid locking (might break parallel builds)
1013 --enable-targets alternative target configurations
1014 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
241a6c40
AM
1015 --enable-werror treat compile warnings as errors
1016 --enable-build-warnings enable build-time compiler warnings
42ecbf5e
DJ
1017 --disable-nls do not use Native Language Support
1018 --enable-maintainer-mode enable make rules and dependencies not useful
1019 (and sometimes confusing) to the casual installer
5ba684e2 1020 --disable-rpath do not hardcode runtime library paths
42ecbf5e
DJ
1021
1022Optional Packages:
1023 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1024 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d7040cdb
SE
1025 --with-pic try to use only PIC/non-PIC objects [default=use
1026 both]
1027 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
5ba684e2
NC
1028 --with-gnu-ld assume the C compiler uses GNU ld default=no
1029 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1030 --without-libiconv-prefix don't search for libiconv in includedir and libdir
252b5132 1031
42ecbf5e
DJ
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
e5a52504 1040
42ecbf5e
DJ
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
252b5132
RH
1045fi
1046
42ecbf5e
DJ
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
252b5132 1061
42ecbf5e
DJ
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,/$,,'`
252b5132 1069 fi ;;
42ecbf5e
DJ
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;;
252b5132 1088esac
42ecbf5e
DJ
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;;
d15b04bd 1115esac
5d64ca4e 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
DJ
1133 done
1134fi
5d64ca4e 1135
42ecbf5e
DJ
1136test -n "$ac_init_help" && exit 0
1137if $ac_init_version; then
1138 cat <<\_ACEOF
5d64ca4e 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.
429cc0ae 1150
42ecbf5e
DJ
1151It was created by $as_me, which was
1152generated by GNU Autoconf 2.59. Invocation command line was
252b5132 1153
42ecbf5e 1154 $ $0 $@
e5a52504 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
e5a52504 1189
42ecbf5e 1190} >&5
ceae3e33 1191
42ecbf5e 1192cat >&5 <<_ACEOF
e5a52504 1193
42ecbf5e
DJ
1194
1195## ----------- ##
1196## Core tests. ##
1197## ----------- ##
1198
1199_ACEOF
1200
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
2668
2669
2670BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2671am__api_version="1.9"
2672# Find a good install program. We prefer a C program (faster),
2673# so one script is as good as another. But avoid the broken or
2674# incompatible versions:
2675# SysV /etc/install, /usr/sbin/install
2676# SunOS /usr/etc/install
2677# IRIX /sbin/install
2678# AIX /bin/install
2679# AmigaOS /C/install, which installs bootblocks on floppy discs
2680# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2681# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2682# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2683# OS/2's system install, which has a completely different semantic
2684# ./install, which can be erroneously created by make from ./install.sh.
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
2688if test -z "$INSTALL"; then
2689if test "${ac_cv_path_install+set}" = set; then
2690 echo $ECHO_N "(cached) $ECHO_C" >&6
2691else
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
2710 if test $ac_prog = install &&
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
d15b04bd 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; }; }
2805fi
2806echo "$as_me:$LINENO: result: yes" >&5
2807echo "${ECHO_T}yes" >&6
2808test "$program_prefix" != NONE &&
2809 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2810# Use a double $ so make ignores it.
2811test "$program_suffix" != NONE &&
2812 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2813# Double any \ or $. echo might interpret backslashes.
2814# By default was `s,x,x', remove it if useless.
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
2903
2904 test -n "$AWK" && break
2905done
2906
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
2912else
2913 cat >conftest.make <<\_ACEOF
2914all:
2915 @echo 'ac_maketemp="$(MAKE)"'
2916_ACEOF
2917# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2918eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
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
2924rm -f conftest.make
2925fi
2926if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2927 echo "$as_me:$LINENO: result: yes" >&5
2928echo "${ECHO_T}yes" >&6
2929 SET_MAKE=
2930else
2931 echo "$as_me:$LINENO: result: no" >&5
2932echo "${ECHO_T}no" >&6
2933 SET_MAKE="MAKE=${MAKE-make}"
2934fi
2935
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
3008
3009
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
3017
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
3025fi
3026
3027
3028# Define the identity of the package.
3029 PACKAGE=binutils
3030 VERSION=${BFD_VERSION}
3031
3032
3033cat >>confdefs.h <<_ACEOF
3034#define PACKAGE "$PACKAGE"
3035_ACEOF
3036
3037
3038cat >>confdefs.h <<_ACEOF
3039#define VERSION "$VERSION"
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
3055
3056MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3057
3058install_sh=${install_sh-"$am_aux_dir/install-sh"}
3059
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
252b5132 3090fi
42ecbf5e
DJ
3091fi
3092STRIP=$ac_cv_prog_STRIP
3093if test -n "$STRIP"; then
3094 echo "$as_me:$LINENO: result: $STRIP" >&5
3095echo "${ECHO_T}$STRIP" >&6
d15b04bd 3096else
42ecbf5e
DJ
3097 echo "$as_me:$LINENO: result: no" >&5
3098echo "${ECHO_T}no" >&6
d15b04bd 3099fi
d15b04bd 3100
42ecbf5e
DJ
3101fi
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
d15b04bd 3110else
42ecbf5e
DJ
3111 if test -n "$ac_ct_STRIP"; then
3112 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
252b5132 3113else
42ecbf5e
DJ
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
3127
3128 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
252b5132 3129fi
252b5132 3130fi
42ecbf5e
DJ
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
252b5132 3135else
42ecbf5e
DJ
3136 echo "$as_me:$LINENO: result: no" >&5
3137echo "${ECHO_T}no" >&6
252b5132
RH
3138fi
3139
42ecbf5e
DJ
3140 STRIP=$ac_ct_STRIP
3141else
3142 STRIP="$ac_cv_prog_STRIP"
3143fi
252b5132 3144
42ecbf5e
DJ
3145fi
3146INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
252b5132 3147
42ecbf5e
DJ
3148# We need awk for the "check" target. The system "awk" is bad on
3149# some platforms.
3150# Always define AMTAR for backward compatibility.
252b5132 3151
42ecbf5e 3152AMTAR=${AMTAR-"${am_missing_run}tar"}
252b5132 3153
42ecbf5e 3154am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
252b5132
RH
3155
3156
3157
252b5132 3158
42ecbf5e
DJ
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
252b5132 3165else
42ecbf5e
DJ
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
252b5132 3184
42ecbf5e
DJ
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
3243
3244 cd ..
3245 rm -rf conftest.dir
252b5132 3246else
42ecbf5e 3247 am_cv_CC_dependencies_compiler_type=none
252b5132
RH
3248fi
3249
252b5132 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
3255
252b5132 3256
42ecbf5e
DJ
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='#'
252b5132 3262else
42ecbf5e
DJ
3263 am__fastdepCC_TRUE='#'
3264 am__fastdepCC_FALSE=
252b5132
RH
3265fi
3266
3267
3268
42ecbf5e 3269
d45dc31f
SE
3270ac_ext=c
3271ac_cpp='$CPP $CPPFLAGS'
3272ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3273ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3274ac_compiler_gnu=$ac_cv_c_compiler_gnu
3275if test -n "$ac_tool_prefix"; then
3276 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3277set dummy ${ac_tool_prefix}gcc; ac_word=$2
3278echo "$as_me:$LINENO: checking for $ac_word" >&5
3279echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3280if test "${ac_cv_prog_CC+set}" = set; then
3281 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3282else
d45dc31f
SE
3283 if test -n "$CC"; then
3284 ac_cv_prog_CC="$CC" # Let the user override the test.
1a09a22c 3285else
d45dc31f
SE
3286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3287for as_dir in $PATH
3288do
3289 IFS=$as_save_IFS
3290 test -z "$as_dir" && as_dir=.
3291 for ac_exec_ext in '' $ac_executable_extensions; do
3292 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3293 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3295 break 2
3296 fi
3297done
3298done
ceae3e33 3299
d45dc31f
SE
3300fi
3301fi
3302CC=$ac_cv_prog_CC
3303if test -n "$CC"; then
3304 echo "$as_me:$LINENO: result: $CC" >&5
3305echo "${ECHO_T}$CC" >&6
252b5132 3306else
d45dc31f
SE
3307 echo "$as_me:$LINENO: result: no" >&5
3308echo "${ECHO_T}no" >&6
252b5132 3309fi
d45dc31f
SE
3310
3311fi
3312if test -z "$ac_cv_prog_CC"; then
3313 ac_ct_CC=$CC
3314 # Extract the first word of "gcc", so it can be a program name with args.
3315set dummy gcc; ac_word=$2
3316echo "$as_me:$LINENO: checking for $ac_word" >&5
3317echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3318if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
42ecbf5e 3319 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3320else
d45dc31f
SE
3321 if test -n "$ac_ct_CC"; then
3322 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
252b5132 3323else
d45dc31f
SE
3324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3325for as_dir in $PATH
3326do
3327 IFS=$as_save_IFS
3328 test -z "$as_dir" && as_dir=.
3329 for ac_exec_ext in '' $ac_executable_extensions; do
3330 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3331 ac_cv_prog_ac_ct_CC="gcc"
3332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3333 break 2
3334 fi
3335done
3336done
3337
252b5132
RH
3338fi
3339fi
d45dc31f
SE
3340ac_ct_CC=$ac_cv_prog_ac_ct_CC
3341if test -n "$ac_ct_CC"; then
3342 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3343echo "${ECHO_T}$ac_ct_CC" >&6
252b5132 3344else
42ecbf5e
DJ
3345 echo "$as_me:$LINENO: result: no" >&5
3346echo "${ECHO_T}no" >&6
252b5132 3347fi
d45dc31f
SE
3348
3349 CC=$ac_ct_CC
3350else
3351 CC="$ac_cv_prog_CC"
3352fi
3353
3354if test -z "$CC"; then
3355 if test -n "$ac_tool_prefix"; then
3356 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3357set dummy ${ac_tool_prefix}cc; ac_word=$2
3358echo "$as_me:$LINENO: checking for $ac_word" >&5
3359echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3360if test "${ac_cv_prog_CC+set}" = set; then
42ecbf5e 3361 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3362else
d45dc31f
SE
3363 if test -n "$CC"; then
3364 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 3365else
d45dc31f
SE
3366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3367for as_dir in $PATH
3368do
3369 IFS=$as_save_IFS
3370 test -z "$as_dir" && as_dir=.
3371 for ac_exec_ext in '' $ac_executable_extensions; do
3372 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3373 ac_cv_prog_CC="${ac_tool_prefix}cc"
3374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3375 break 2
3376 fi
3377done
3378done
3379
252b5132
RH
3380fi
3381fi
d45dc31f
SE
3382CC=$ac_cv_prog_CC
3383if test -n "$CC"; then
3384 echo "$as_me:$LINENO: result: $CC" >&5
3385echo "${ECHO_T}$CC" >&6
ac48eca1 3386else
d45dc31f
SE
3387 echo "$as_me:$LINENO: result: no" >&5
3388echo "${ECHO_T}no" >&6
ac48eca1 3389fi
ac48eca1 3390
d45dc31f
SE
3391fi
3392if test -z "$ac_cv_prog_CC"; then
3393 ac_ct_CC=$CC
3394 # Extract the first word of "cc", so it can be a program name with args.
3395set dummy cc; ac_word=$2
3396echo "$as_me:$LINENO: checking for $ac_word" >&5
3397echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3398if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
42ecbf5e 3399 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3400else
d45dc31f
SE
3401 if test -n "$ac_ct_CC"; then
3402 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
252b5132 3403else
d45dc31f
SE
3404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3405for as_dir in $PATH
3406do
3407 IFS=$as_save_IFS
3408 test -z "$as_dir" && as_dir=.
3409 for ac_exec_ext in '' $ac_executable_extensions; do
3410 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3411 ac_cv_prog_ac_ct_CC="cc"
3412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3413 break 2
3414 fi
3415done
3416done
3417
252b5132 3418fi
d45dc31f
SE
3419fi
3420ac_ct_CC=$ac_cv_prog_ac_ct_CC
3421if test -n "$ac_ct_CC"; then
3422 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3423echo "${ECHO_T}$ac_ct_CC" >&6
3424else
3425 echo "$as_me:$LINENO: result: no" >&5
3426echo "${ECHO_T}no" >&6
252b5132
RH
3427fi
3428
d45dc31f
SE
3429 CC=$ac_ct_CC
3430else
3431 CC="$ac_cv_prog_CC"
3432fi
252b5132 3433
d45dc31f
SE
3434fi
3435if test -z "$CC"; then
3436 # Extract the first word of "cc", so it can be a program name with args.
3437set dummy cc; ac_word=$2
3438echo "$as_me:$LINENO: checking for $ac_word" >&5
3439echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3440if test "${ac_cv_prog_CC+set}" = set; then
3441 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3442else
d45dc31f
SE
3443 if test -n "$CC"; then
3444 ac_cv_prog_CC="$CC" # Let the user override the test.
3445else
3446 ac_prog_rejected=no
3447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3448for as_dir in $PATH
3449do
3450 IFS=$as_save_IFS
3451 test -z "$as_dir" && as_dir=.
3452 for ac_exec_ext in '' $ac_executable_extensions; do
3453 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3454 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3455 ac_prog_rejected=yes
3456 continue
3457 fi
3458 ac_cv_prog_CC="cc"
3459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3460 break 2
3461 fi
3462done
3463done
3464
3465if test $ac_prog_rejected = yes; then
3466 # We found a bogon in the path, so make sure we never use it.
3467 set dummy $ac_cv_prog_CC
3468 shift
3469 if test $# != 0; then
3470 # We chose a different compiler from the bogus one.
3471 # However, it has the same basename, so the bogon will be chosen
3472 # first if we set CC to just the basename; use the full file name.
3473 shift
3474 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3475 fi
3476fi
3477fi
3478fi
3479CC=$ac_cv_prog_CC
3480if test -n "$CC"; then
3481 echo "$as_me:$LINENO: result: $CC" >&5
3482echo "${ECHO_T}$CC" >&6
3483else
3484 echo "$as_me:$LINENO: result: no" >&5
3485echo "${ECHO_T}no" >&6
252b5132
RH
3486fi
3487
d45dc31f
SE
3488fi
3489if test -z "$CC"; then
3490 if test -n "$ac_tool_prefix"; then
3491 for ac_prog in cl
3492 do
3493 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3494set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3495echo "$as_me:$LINENO: checking for $ac_word" >&5
3496echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3497if test "${ac_cv_prog_CC+set}" = set; then
42ecbf5e 3498 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3499else
d45dc31f
SE
3500 if test -n "$CC"; then
3501 ac_cv_prog_CC="$CC" # Let the user override the test.
3502else
3503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3504for as_dir in $PATH
3505do
3506 IFS=$as_save_IFS
3507 test -z "$as_dir" && as_dir=.
3508 for ac_exec_ext in '' $ac_executable_extensions; do
3509 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3510 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3512 break 2
3513 fi
3514done
3515done
ac48eca1 3516
d45dc31f
SE
3517fi
3518fi
3519CC=$ac_cv_prog_CC
3520if test -n "$CC"; then
3521 echo "$as_me:$LINENO: result: $CC" >&5
3522echo "${ECHO_T}$CC" >&6
3523else
3524 echo "$as_me:$LINENO: result: no" >&5
3525echo "${ECHO_T}no" >&6
3526fi
ac48eca1 3527
d45dc31f
SE
3528 test -n "$CC" && break
3529 done
3530fi
3531if test -z "$CC"; then
3532 ac_ct_CC=$CC
3533 for ac_prog in cl
3534do
3535 # Extract the first word of "$ac_prog", so it can be a program name with args.
3536set dummy $ac_prog; ac_word=$2
3537echo "$as_me:$LINENO: checking for $ac_word" >&5
3538echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3539if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3540 echo $ECHO_N "(cached) $ECHO_C" >&6
3541else
3542 if test -n "$ac_ct_CC"; then
3543 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3544else
3545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3546for as_dir in $PATH
3547do
3548 IFS=$as_save_IFS
3549 test -z "$as_dir" && as_dir=.
3550 for ac_exec_ext in '' $ac_executable_extensions; do
3551 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3552 ac_cv_prog_ac_ct_CC="$ac_prog"
3553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3554 break 2
3555 fi
3556done
3557done
ac48eca1 3558
d45dc31f
SE
3559fi
3560fi
3561ac_ct_CC=$ac_cv_prog_ac_ct_CC
3562if test -n "$ac_ct_CC"; then
3563 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3564echo "${ECHO_T}$ac_ct_CC" >&6
3565else
3566 echo "$as_me:$LINENO: result: no" >&5
3567echo "${ECHO_T}no" >&6
3568fi
ac48eca1 3569
d45dc31f
SE
3570 test -n "$ac_ct_CC" && break
3571done
ac48eca1 3572
d45dc31f
SE
3573 CC=$ac_ct_CC
3574fi
ac48eca1
AO
3575
3576fi
ac48eca1 3577
ac48eca1 3578
7a283e07
RW
3579test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3580echo "$as_me: error: in \`$ac_pwd':" >&2;}
3581{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
d45dc31f
SE
3582See \`config.log' for more details." >&5
3583echo "$as_me: error: no acceptable C compiler found in \$PATH
3584See \`config.log' for more details." >&2;}
7a283e07 3585 { (exit 1); exit 1; }; }; }
ac48eca1 3586
d45dc31f
SE
3587# Provide some information about the compiler.
3588echo "$as_me:$LINENO:" \
3589 "checking for C compiler version" >&5
3590ac_compiler=`set X $ac_compile; echo $2`
3591{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3592 (eval $ac_compiler --version </dev/null >&5) 2>&5
3593 ac_status=$?
3594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595 (exit $ac_status); }
3596{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3597 (eval $ac_compiler -v </dev/null >&5) 2>&5
3598 ac_status=$?
3599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600 (exit $ac_status); }
3601{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3602 (eval $ac_compiler -V </dev/null >&5) 2>&5
3603 ac_status=$?
3604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605 (exit $ac_status); }
ac48eca1 3606
d45dc31f
SE
3607echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3608echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3609if test "${ac_cv_c_compiler_gnu+set}" = set; then
bdcfeba5
NC
3610 echo $ECHO_N "(cached) $ECHO_C" >&6
3611else
d45dc31f
SE
3612 cat >conftest.$ac_ext <<_ACEOF
3613/* confdefs.h. */
3614_ACEOF
3615cat confdefs.h >>conftest.$ac_ext
3616cat >>conftest.$ac_ext <<_ACEOF
3617/* end confdefs.h. */
bdcfeba5 3618
d45dc31f
SE
3619int
3620main ()
3621{
3622#ifndef __GNUC__
3623 choke me
3624#endif
bdcfeba5 3625
d45dc31f
SE
3626 ;
3627 return 0;
3628}
3629_ACEOF
3630rm -f conftest.$ac_objext
3631if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3632 (eval $ac_compile) 2>conftest.er1
3633 ac_status=$?
3634 grep -v '^ *+' conftest.er1 >conftest.err
3635 rm -f conftest.er1
3636 cat conftest.err >&5
3637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3638 (exit $ac_status); } &&
7357c5b6
AM
3639 { ac_try='test -z "$ac_c_werror_flag"
3640 || test ! -s conftest.err'
d45dc31f
SE
3641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3642 (eval $ac_try) 2>&5
3643 ac_status=$?
3644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645 (exit $ac_status); }; } &&
3646 { ac_try='test -s conftest.$ac_objext'
3647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3648 (eval $ac_try) 2>&5
3649 ac_status=$?
3650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3651 (exit $ac_status); }; }; then
3652 ac_compiler_gnu=yes
3653else
3654 echo "$as_me: failed program was:" >&5
3655sed 's/^/| /' conftest.$ac_ext >&5
bdcfeba5 3656
d45dc31f 3657ac_compiler_gnu=no
bdcfeba5 3658fi
d45dc31f
SE
3659rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3660ac_cv_c_compiler_gnu=$ac_compiler_gnu
bdcfeba5 3661
bdcfeba5 3662fi
d45dc31f
SE
3663echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3664echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3665GCC=`test $ac_compiler_gnu = yes && echo yes`
3666ac_test_CFLAGS=${CFLAGS+set}
3667ac_save_CFLAGS=$CFLAGS
3668CFLAGS="-g"
3669echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3670echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3671if test "${ac_cv_prog_cc_g+set}" = set; then
42ecbf5e 3672 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3673else
d45dc31f
SE
3674 cat >conftest.$ac_ext <<_ACEOF
3675/* confdefs.h. */
3676_ACEOF
3677cat confdefs.h >>conftest.$ac_ext
3678cat >>conftest.$ac_ext <<_ACEOF
3679/* end confdefs.h. */
ac48eca1 3680
d45dc31f
SE
3681int
3682main ()
3683{
ac48eca1 3684
d45dc31f
SE
3685 ;
3686 return 0;
3687}
3688_ACEOF
3689rm -f conftest.$ac_objext
3690if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3691 (eval $ac_compile) 2>conftest.er1
3692 ac_status=$?
3693 grep -v '^ *+' conftest.er1 >conftest.err
3694 rm -f conftest.er1
3695 cat conftest.err >&5
3696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697 (exit $ac_status); } &&
7357c5b6
AM
3698 { ac_try='test -z "$ac_c_werror_flag"
3699 || test ! -s conftest.err'
d45dc31f
SE
3700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3701 (eval $ac_try) 2>&5
3702 ac_status=$?
3703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704 (exit $ac_status); }; } &&
3705 { ac_try='test -s conftest.$ac_objext'
3706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3707 (eval $ac_try) 2>&5
3708 ac_status=$?
3709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710 (exit $ac_status); }; }; then
3711 ac_cv_prog_cc_g=yes
ac48eca1 3712else
d45dc31f
SE
3713 echo "$as_me: failed program was:" >&5
3714sed 's/^/| /' conftest.$ac_ext >&5
ac48eca1 3715
d45dc31f 3716ac_cv_prog_cc_g=no
ac48eca1 3717fi
d45dc31f 3718rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ac48eca1 3719fi
d45dc31f
SE
3720echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3721echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3722if test "$ac_test_CFLAGS" = set; then
3723 CFLAGS=$ac_save_CFLAGS
3724elif test $ac_cv_prog_cc_g = yes; then
3725 if test "$GCC" = yes; then
3726 CFLAGS="-g -O2"
ac48eca1 3727 else
d45dc31f 3728 CFLAGS="-g"
42ecbf5e 3729 fi
ac48eca1 3730else
d45dc31f
SE
3731 if test "$GCC" = yes; then
3732 CFLAGS="-O2"
3733 else
3734 CFLAGS=
42ecbf5e 3735 fi
ac48eca1 3736fi
d45dc31f
SE
3737echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3738echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3739if test "${ac_cv_prog_cc_stdc+set}" = set; then
3740 echo $ECHO_N "(cached) $ECHO_C" >&6
3741else
3742 ac_cv_prog_cc_stdc=no
3743ac_save_CC=$CC
3744cat >conftest.$ac_ext <<_ACEOF
42ecbf5e
DJ
3745/* confdefs.h. */
3746_ACEOF
3747cat confdefs.h >>conftest.$ac_ext
3748cat >>conftest.$ac_ext <<_ACEOF
3749/* end confdefs.h. */
d45dc31f
SE
3750#include <stdarg.h>
3751#include <stdio.h>
3752#include <sys/types.h>
3753#include <sys/stat.h>
3754/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3755struct buf { int x; };
3756FILE * (*rcsopen) (struct buf *, struct stat *, int);
3757static char *e (p, i)
3758 char **p;
3759 int i;
3760{
3761 return p[i];
3762}
3763static char *f (char * (*g) (char **, int), char **p, ...)
3764{
3765 char *s;
3766 va_list v;
3767 va_start (v,p);
3768 s = g (p, va_arg (v,int));
3769 va_end (v);
3770 return s;
3771}
3772
3773/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3774 function prototypes and stuff, but not '\xHH' hex character constants.
3775 These don't provoke an error unfortunately, instead are silently treated
3776 as 'x'. The following induces an error, until -std1 is added to get
3777 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3778 array size at least. It's necessary to write '\x00'==0 to get something
3779 that's true only with -std1. */
3780int osf4_cc_array ['\x00' == 0 ? 1 : -1];
252b5132 3781
d45dc31f
SE
3782int test (int i, double x);
3783struct s1 {int (*f) (int a);};
3784struct s2 {int (*f) (double a);};
3785int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3786int argc;
3787char **argv;
42ecbf5e
DJ
3788int
3789main ()
3790{
d45dc31f 3791return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
42ecbf5e
DJ
3792 ;
3793 return 0;
3794}
3795_ACEOF
d45dc31f
SE
3796# Don't try gcc -ansi; that turns off useful extensions and
3797# breaks some systems' header files.
3798# AIX -qlanglvl=ansi
3799# Ultrix and OSF/1 -std1
3800# HP-UX 10.20 and later -Ae
3801# HP-UX older versions -Aa -D_HPUX_SOURCE
3802# SVR4 -Xc -D__EXTENSIONS__
3803for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3804do
3805 CC="$ac_save_CC $ac_arg"
3806 rm -f conftest.$ac_objext
3807if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3808 (eval $ac_compile) 2>conftest.er1
42ecbf5e
DJ
3809 ac_status=$?
3810 grep -v '^ *+' conftest.er1 >conftest.err
3811 rm -f conftest.er1
3812 cat conftest.err >&5
3813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814 (exit $ac_status); } &&
7357c5b6
AM
3815 { ac_try='test -z "$ac_c_werror_flag"
3816 || test ! -s conftest.err'
42ecbf5e
DJ
3817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3818 (eval $ac_try) 2>&5
3819 ac_status=$?
3820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821 (exit $ac_status); }; } &&
d45dc31f 3822 { ac_try='test -s conftest.$ac_objext'
42ecbf5e
DJ
3823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3824 (eval $ac_try) 2>&5
3825 ac_status=$?
3826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827 (exit $ac_status); }; }; then
d45dc31f
SE
3828 ac_cv_prog_cc_stdc=$ac_arg
3829break
252b5132 3830else
42ecbf5e
DJ
3831 echo "$as_me: failed program was:" >&5
3832sed 's/^/| /' conftest.$ac_ext >&5
3833
252b5132 3834fi
d45dc31f
SE
3835rm -f conftest.err conftest.$ac_objext
3836done
3837rm -f conftest.$ac_ext conftest.$ac_objext
3838CC=$ac_save_CC
ac48eca1 3839
252b5132 3840fi
252b5132 3841
d45dc31f
SE
3842case "x$ac_cv_prog_cc_stdc" in
3843 x|xno)
3844 echo "$as_me:$LINENO: result: none needed" >&5
3845echo "${ECHO_T}none needed" >&6 ;;
3846 *)
3847 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3848echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3849 CC="$CC $ac_cv_prog_cc_stdc" ;;
252b5132
RH
3850esac
3851
d45dc31f
SE
3852# Some people use a C++ compiler to compile C. Since we use `exit',
3853# in C++ we need to declare it. In case someone uses the same compiler
3854# for both compiling C and C++ we need to have the C++ compiler decide
3855# the declaration of exit, since it's the most demanding environment.
3856cat >conftest.$ac_ext <<_ACEOF
3857#ifndef __cplusplus
3858 choke me
3859#endif
42ecbf5e 3860_ACEOF
d45dc31f
SE
3861rm -f conftest.$ac_objext
3862if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3863 (eval $ac_compile) 2>conftest.er1
3864 ac_status=$?
3865 grep -v '^ *+' conftest.er1 >conftest.err
3866 rm -f conftest.er1
3867 cat conftest.err >&5
3868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869 (exit $ac_status); } &&
7357c5b6
AM
3870 { ac_try='test -z "$ac_c_werror_flag"
3871 || test ! -s conftest.err'
d45dc31f
SE
3872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3873 (eval $ac_try) 2>&5
3874 ac_status=$?
3875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876 (exit $ac_status); }; } &&
3877 { ac_try='test -s conftest.$ac_objext'
3878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3879 (eval $ac_try) 2>&5
3880 ac_status=$?
3881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3882 (exit $ac_status); }; }; then
3883 for ac_declaration in \
3884 '' \
3885 'extern "C" void std::exit (int) throw (); using std::exit;' \
3886 'extern "C" void std::exit (int); using std::exit;' \
3887 'extern "C" void exit (int) throw ();' \
3888 'extern "C" void exit (int);' \
3889 'void exit (int);'
3890do
3891 cat >conftest.$ac_ext <<_ACEOF
3892/* confdefs.h. */
3893_ACEOF
3894cat confdefs.h >>conftest.$ac_ext
3895cat >>conftest.$ac_ext <<_ACEOF
3896/* end confdefs.h. */
3897$ac_declaration
3898#include <stdlib.h>
3899int
3900main ()
42ecbf5e 3901{
d45dc31f
SE
3902exit (42);
3903 ;
3904 return 0;
3905}
3906_ACEOF
3907rm -f conftest.$ac_objext
3908if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3909 (eval $ac_compile) 2>conftest.er1
3910 ac_status=$?
3911 grep -v '^ *+' conftest.er1 >conftest.err
3912 rm -f conftest.er1
3913 cat conftest.err >&5
3914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915 (exit $ac_status); } &&
7357c5b6
AM
3916 { ac_try='test -z "$ac_c_werror_flag"
3917 || test ! -s conftest.err'
d45dc31f
SE
3918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3919 (eval $ac_try) 2>&5
3920 ac_status=$?
3921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922 (exit $ac_status); }; } &&
3923 { ac_try='test -s conftest.$ac_objext'
3924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3925 (eval $ac_try) 2>&5
3926 ac_status=$?
3927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3928 (exit $ac_status); }; }; then
3929 :
3930else
3931 echo "$as_me: failed program was:" >&5
3932sed 's/^/| /' conftest.$ac_ext >&5
252b5132 3933
d45dc31f
SE
3934continue
3935fi
3936rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3937 cat >conftest.$ac_ext <<_ACEOF
3938/* confdefs.h. */
3939_ACEOF
3940cat confdefs.h >>conftest.$ac_ext
3941cat >>conftest.$ac_ext <<_ACEOF
3942/* end confdefs.h. */
3943$ac_declaration
3944int
3945main ()
3946{
3947exit (42);
3948 ;
3949 return 0;
3950}
3951_ACEOF
3952rm -f conftest.$ac_objext
3953if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3954 (eval $ac_compile) 2>conftest.er1
3955 ac_status=$?
3956 grep -v '^ *+' conftest.er1 >conftest.err
3957 rm -f conftest.er1
3958 cat conftest.err >&5
3959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960 (exit $ac_status); } &&
7357c5b6
AM
3961 { ac_try='test -z "$ac_c_werror_flag"
3962 || test ! -s conftest.err'
d45dc31f
SE
3963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3964 (eval $ac_try) 2>&5
3965 ac_status=$?
3966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967 (exit $ac_status); }; } &&
3968 { ac_try='test -s conftest.$ac_objext'
3969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3970 (eval $ac_try) 2>&5
3971 ac_status=$?
3972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973 (exit $ac_status); }; }; then
3974 break
3975else
3976 echo "$as_me: failed program was:" >&5
3977sed 's/^/| /' conftest.$ac_ext >&5
252b5132 3978
d45dc31f
SE
3979fi
3980rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3981done
3982rm -f conftest*
3983if test -n "$ac_declaration"; then
3984 echo '#ifdef __cplusplus' >>confdefs.h
3985 echo $ac_declaration >>confdefs.h
3986 echo '#endif' >>confdefs.h
3987fi
ac48eca1 3988
d45dc31f
SE
3989else
3990 echo "$as_me: failed program was:" >&5
3991sed 's/^/| /' conftest.$ac_ext >&5
42ecbf5e 3992
d45dc31f
SE
3993fi
3994rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3995ac_ext=c
3996ac_cpp='$CPP $CPPFLAGS'
3997ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3998ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3999ac_compiler_gnu=$ac_cv_c_compiler_gnu
42ecbf5e
DJ
4000
4001
d45dc31f
SE
4002cat >>confdefs.h <<\_ACEOF
4003#define _GNU_SOURCE 1
4004_ACEOF
42ecbf5e 4005
ac48eca1 4006
7357c5b6
AM
4007ac_ext=c
4008ac_cpp='$CPP $CPPFLAGS'
4009ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4010ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4011ac_compiler_gnu=$ac_cv_c_compiler_gnu
4012echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4013echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4014# On Suns, sometimes $CPP names a directory.
4015if test -n "$CPP" && test -d "$CPP"; then
4016 CPP=
4017fi
4018if test -z "$CPP"; then
4019 if test "${ac_cv_prog_CPP+set}" = set; then
4020 echo $ECHO_N "(cached) $ECHO_C" >&6
4021else
4022 # Double quotes because CPP needs to be expanded
4023 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4024 do
4025 ac_preproc_ok=false
4026for ac_c_preproc_warn_flag in '' yes
4027do
4028 # Use a header file that comes with gcc, so configuring glibc
4029 # with a fresh cross-compiler works.
4030 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4031 # <limits.h> exists even on freestanding compilers.
4032 # On the NeXT, cc -E runs the code through the compiler's parser,
4033 # not just through cpp. "Syntax error" is here to catch this case.
4034 cat >conftest.$ac_ext <<_ACEOF
4035/* confdefs.h. */
4036_ACEOF
4037cat confdefs.h >>conftest.$ac_ext
4038cat >>conftest.$ac_ext <<_ACEOF
4039/* end confdefs.h. */
4040#ifdef __STDC__
4041# include <limits.h>
4042#else
4043# include <assert.h>
4044#endif
4045 Syntax error
4046_ACEOF
4047if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4048 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4049 ac_status=$?
4050 grep -v '^ *+' conftest.er1 >conftest.err
4051 rm -f conftest.er1
4052 cat conftest.err >&5
4053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054 (exit $ac_status); } >/dev/null; then
4055 if test -s conftest.err; then
4056 ac_cpp_err=$ac_c_preproc_warn_flag
4057 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4058 else
4059 ac_cpp_err=
4060 fi
4061else
4062 ac_cpp_err=yes
4063fi
4064if test -z "$ac_cpp_err"; then
4065 :
4066else
4067 echo "$as_me: failed program was:" >&5
4068sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4069
7357c5b6
AM
4070 # Broken: fails on valid input.
4071continue
4072fi
4073rm -f conftest.err conftest.$ac_ext
d7040cdb 4074
7357c5b6
AM
4075 # OK, works on sane cases. Now check whether non-existent headers
4076 # can be detected and how.
4077 cat >conftest.$ac_ext <<_ACEOF
4078/* confdefs.h. */
4079_ACEOF
4080cat confdefs.h >>conftest.$ac_ext
4081cat >>conftest.$ac_ext <<_ACEOF
4082/* end confdefs.h. */
4083#include <ac_nonexistent.h>
4084_ACEOF
4085if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4086 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4087 ac_status=$?
4088 grep -v '^ *+' conftest.er1 >conftest.err
4089 rm -f conftest.er1
4090 cat conftest.err >&5
4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092 (exit $ac_status); } >/dev/null; then
4093 if test -s conftest.err; then
4094 ac_cpp_err=$ac_c_preproc_warn_flag
4095 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4096 else
4097 ac_cpp_err=
4098 fi
4099else
4100 ac_cpp_err=yes
4101fi
4102if test -z "$ac_cpp_err"; then
4103 # Broken: success on invalid input.
4104continue
4105else
4106 echo "$as_me: failed program was:" >&5
4107sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4108
7357c5b6
AM
4109 # Passes both tests.
4110ac_preproc_ok=:
4111break
4112fi
4113rm -f conftest.err conftest.$ac_ext
d7040cdb 4114
7357c5b6
AM
4115done
4116# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4117rm -f conftest.err conftest.$ac_ext
4118if $ac_preproc_ok; then
4119 break
4120fi
d7040cdb 4121
7357c5b6
AM
4122 done
4123 ac_cv_prog_CPP=$CPP
d7040cdb 4124
7357c5b6
AM
4125fi
4126 CPP=$ac_cv_prog_CPP
4127else
4128 ac_cv_prog_CPP=$CPP
4129fi
4130echo "$as_me:$LINENO: result: $CPP" >&5
4131echo "${ECHO_T}$CPP" >&6
4132ac_preproc_ok=false
4133for ac_c_preproc_warn_flag in '' yes
4134do
4135 # Use a header file that comes with gcc, so configuring glibc
4136 # with a fresh cross-compiler works.
4137 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4138 # <limits.h> exists even on freestanding compilers.
4139 # On the NeXT, cc -E runs the code through the compiler's parser,
4140 # not just through cpp. "Syntax error" is here to catch this case.
4141 cat >conftest.$ac_ext <<_ACEOF
4142/* confdefs.h. */
4143_ACEOF
4144cat confdefs.h >>conftest.$ac_ext
4145cat >>conftest.$ac_ext <<_ACEOF
4146/* end confdefs.h. */
4147#ifdef __STDC__
4148# include <limits.h>
4149#else
4150# include <assert.h>
4151#endif
4152 Syntax error
4153_ACEOF
4154if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4155 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4156 ac_status=$?
4157 grep -v '^ *+' conftest.er1 >conftest.err
4158 rm -f conftest.er1
4159 cat conftest.err >&5
4160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161 (exit $ac_status); } >/dev/null; then
4162 if test -s conftest.err; then
4163 ac_cpp_err=$ac_c_preproc_warn_flag
4164 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4165 else
4166 ac_cpp_err=
4167 fi
4168else
4169 ac_cpp_err=yes
4170fi
4171if test -z "$ac_cpp_err"; then
4172 :
4173else
4174 echo "$as_me: failed program was:" >&5
4175sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4176
7357c5b6
AM
4177 # Broken: fails on valid input.
4178continue
4179fi
4180rm -f conftest.err conftest.$ac_ext
d7040cdb 4181
7357c5b6
AM
4182 # OK, works on sane cases. Now check whether non-existent headers
4183 # can be detected and how.
4184 cat >conftest.$ac_ext <<_ACEOF
4185/* confdefs.h. */
4186_ACEOF
4187cat confdefs.h >>conftest.$ac_ext
4188cat >>conftest.$ac_ext <<_ACEOF
4189/* end confdefs.h. */
4190#include <ac_nonexistent.h>
4191_ACEOF
4192if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4193 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4194 ac_status=$?
4195 grep -v '^ *+' conftest.er1 >conftest.err
4196 rm -f conftest.er1
4197 cat conftest.err >&5
4198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199 (exit $ac_status); } >/dev/null; then
4200 if test -s conftest.err; then
4201 ac_cpp_err=$ac_c_preproc_warn_flag
4202 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4203 else
4204 ac_cpp_err=
4205 fi
4206else
4207 ac_cpp_err=yes
4208fi
4209if test -z "$ac_cpp_err"; then
4210 # Broken: success on invalid input.
4211continue
4212else
4213 echo "$as_me: failed program was:" >&5
4214sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4215
7357c5b6
AM
4216 # Passes both tests.
4217ac_preproc_ok=:
4218break
4219fi
4220rm -f conftest.err conftest.$ac_ext
d7040cdb 4221
7357c5b6
AM
4222done
4223# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4224rm -f conftest.err conftest.$ac_ext
4225if $ac_preproc_ok; then
4226 :
4227else
4228 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4229echo "$as_me: error: in \`$ac_pwd':" >&2;}
4230{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4231See \`config.log' for more details." >&5
4232echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4233See \`config.log' for more details." >&2;}
4234 { (exit 1); exit 1; }; }; }
4235fi
d7040cdb 4236
7357c5b6
AM
4237ac_ext=c
4238ac_cpp='$CPP $CPPFLAGS'
4239ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4240ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4241ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb
SE
4242
4243
7357c5b6
AM
4244echo "$as_me:$LINENO: checking for egrep" >&5
4245echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4246if test "${ac_cv_prog_egrep+set}" = set; then
4247 echo $ECHO_N "(cached) $ECHO_C" >&6
4248else
4249 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4250 then ac_cv_prog_egrep='grep -E'
4251 else ac_cv_prog_egrep='egrep'
4252 fi
4253fi
4254echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4255echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4256 EGREP=$ac_cv_prog_egrep
d7040cdb 4257
d7040cdb 4258
7357c5b6
AM
4259echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4260echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4261if test "${ac_cv_header_stdc+set}" = set; then
4262 echo $ECHO_N "(cached) $ECHO_C" >&6
4263else
4264 cat >conftest.$ac_ext <<_ACEOF
4265/* confdefs.h. */
4266_ACEOF
4267cat confdefs.h >>conftest.$ac_ext
4268cat >>conftest.$ac_ext <<_ACEOF
4269/* end confdefs.h. */
4270#include <stdlib.h>
4271#include <stdarg.h>
4272#include <string.h>
4273#include <float.h>
d7040cdb 4274
7357c5b6
AM
4275int
4276main ()
4277{
d7040cdb 4278
7357c5b6
AM
4279 ;
4280 return 0;
4281}
4282_ACEOF
4283rm -f conftest.$ac_objext
4284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4285 (eval $ac_compile) 2>conftest.er1
4286 ac_status=$?
4287 grep -v '^ *+' conftest.er1 >conftest.err
4288 rm -f conftest.er1
4289 cat conftest.err >&5
4290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291 (exit $ac_status); } &&
4292 { ac_try='test -z "$ac_c_werror_flag"
4293 || test ! -s conftest.err'
4294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4295 (eval $ac_try) 2>&5
4296 ac_status=$?
4297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298 (exit $ac_status); }; } &&
4299 { ac_try='test -s conftest.$ac_objext'
4300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4301 (eval $ac_try) 2>&5
4302 ac_status=$?
4303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304 (exit $ac_status); }; }; then
4305 ac_cv_header_stdc=yes
4306else
4307 echo "$as_me: failed program was:" >&5
4308sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4309
7357c5b6
AM
4310ac_cv_header_stdc=no
4311fi
4312rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d7040cdb 4313
7357c5b6
AM
4314if test $ac_cv_header_stdc = yes; then
4315 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4316 cat >conftest.$ac_ext <<_ACEOF
4317/* confdefs.h. */
4318_ACEOF
4319cat confdefs.h >>conftest.$ac_ext
4320cat >>conftest.$ac_ext <<_ACEOF
4321/* end confdefs.h. */
4322#include <string.h>
d7040cdb 4323
7357c5b6
AM
4324_ACEOF
4325if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4326 $EGREP "memchr" >/dev/null 2>&1; then
4327 :
d45dc31f 4328else
7357c5b6
AM
4329 ac_cv_header_stdc=no
4330fi
4331rm -f conftest*
d7040cdb 4332
7357c5b6 4333fi
d7040cdb 4334
7357c5b6
AM
4335if test $ac_cv_header_stdc = yes; then
4336 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4337 cat >conftest.$ac_ext <<_ACEOF
4338/* confdefs.h. */
4339_ACEOF
4340cat confdefs.h >>conftest.$ac_ext
4341cat >>conftest.$ac_ext <<_ACEOF
4342/* end confdefs.h. */
4343#include <stdlib.h>
d7040cdb 4344
7357c5b6
AM
4345_ACEOF
4346if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4347 $EGREP "free" >/dev/null 2>&1; then
4348 :
4349else
4350 ac_cv_header_stdc=no
4351fi
4352rm -f conftest*
d7040cdb 4353
7357c5b6 4354fi
d7040cdb 4355
7357c5b6
AM
4356if test $ac_cv_header_stdc = yes; then
4357 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4358 if test "$cross_compiling" = yes; then
4359 :
4360else
4361 cat >conftest.$ac_ext <<_ACEOF
4362/* confdefs.h. */
4363_ACEOF
4364cat confdefs.h >>conftest.$ac_ext
4365cat >>conftest.$ac_ext <<_ACEOF
4366/* end confdefs.h. */
4367#include <ctype.h>
4368#if ((' ' & 0x0FF) == 0x020)
4369# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4370# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4371#else
4372# define ISLOWER(c) \
4373 (('a' <= (c) && (c) <= 'i') \
4374 || ('j' <= (c) && (c) <= 'r') \
4375 || ('s' <= (c) && (c) <= 'z'))
4376# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4377#endif
d7040cdb 4378
7357c5b6
AM
4379#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4380int
4381main ()
4382{
4383 int i;
4384 for (i = 0; i < 256; i++)
4385 if (XOR (islower (i), ISLOWER (i))
4386 || toupper (i) != TOUPPER (i))
4387 exit(2);
4388 exit (0);
4389}
4390_ACEOF
4391rm -f conftest$ac_exeext
4392if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4393 (eval $ac_link) 2>&5
4394 ac_status=$?
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4398 (eval $ac_try) 2>&5
4399 ac_status=$?
4400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401 (exit $ac_status); }; }; then
4402 :
4403else
4404 echo "$as_me: program exited with status $ac_status" >&5
4405echo "$as_me: failed program was:" >&5
4406sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4407
7357c5b6
AM
4408( exit $ac_status )
4409ac_cv_header_stdc=no
4410fi
4411rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4412fi
4413fi
4414fi
4415echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4416echo "${ECHO_T}$ac_cv_header_stdc" >&6
4417if test $ac_cv_header_stdc = yes; then
d7040cdb 4418
7357c5b6
AM
4419cat >>confdefs.h <<\_ACEOF
4420#define STDC_HEADERS 1
4421_ACEOF
d7040cdb 4422
7357c5b6 4423fi
d7040cdb 4424
7357c5b6 4425# On IRIX 5.3, sys/types and inttypes.h are conflicting.
d7040cdb
SE
4426
4427
4428
4429
4430
4431
4432
d7040cdb 4433
d7040cdb 4434
7357c5b6
AM
4435for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4436 inttypes.h stdint.h unistd.h
4437do
4438as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4439echo "$as_me:$LINENO: checking for $ac_header" >&5
4440echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4441if eval "test \"\${$as_ac_Header+set}\" = set"; then
4442 echo $ECHO_N "(cached) $ECHO_C" >&6
4443else
4444 cat >conftest.$ac_ext <<_ACEOF
4445/* confdefs.h. */
4446_ACEOF
4447cat confdefs.h >>conftest.$ac_ext
4448cat >>conftest.$ac_ext <<_ACEOF
4449/* end confdefs.h. */
4450$ac_includes_default
d7040cdb 4451
7357c5b6
AM
4452#include <$ac_header>
4453_ACEOF
4454rm -f conftest.$ac_objext
4455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4456 (eval $ac_compile) 2>conftest.er1
4457 ac_status=$?
4458 grep -v '^ *+' conftest.er1 >conftest.err
4459 rm -f conftest.er1
4460 cat conftest.err >&5
4461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462 (exit $ac_status); } &&
4463 { ac_try='test -z "$ac_c_werror_flag"
4464 || test ! -s conftest.err'
4465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4466 (eval $ac_try) 2>&5
4467 ac_status=$?
4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469 (exit $ac_status); }; } &&
4470 { ac_try='test -s conftest.$ac_objext'
4471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4472 (eval $ac_try) 2>&5
4473 ac_status=$?
4474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475 (exit $ac_status); }; }; then
4476 eval "$as_ac_Header=yes"
4477else
4478 echo "$as_me: failed program was:" >&5
4479sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4480
7357c5b6
AM
4481eval "$as_ac_Header=no"
4482fi
4483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4484fi
4485echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4486echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4487if test `eval echo '${'$as_ac_Header'}'` = yes; then
4488 cat >>confdefs.h <<_ACEOF
4489#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4490_ACEOF
d7040cdb 4491
7357c5b6 4492fi
d7040cdb 4493
7357c5b6 4494done
d7040cdb
SE
4495
4496
4497
7357c5b6
AM
4498 if test "${ac_cv_header_minix_config_h+set}" = set; then
4499 echo "$as_me:$LINENO: checking for minix/config.h" >&5
4500echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4501if test "${ac_cv_header_minix_config_h+set}" = set; then
4502 echo $ECHO_N "(cached) $ECHO_C" >&6
4503fi
4504echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4505echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4506else
4507 # Is the header compilable?
4508echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4509echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
4510cat >conftest.$ac_ext <<_ACEOF
4511/* confdefs.h. */
4512_ACEOF
4513cat confdefs.h >>conftest.$ac_ext
4514cat >>conftest.$ac_ext <<_ACEOF
4515/* end confdefs.h. */
4516$ac_includes_default
4517#include <minix/config.h>
4518_ACEOF
4519rm -f conftest.$ac_objext
4520if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4521 (eval $ac_compile) 2>conftest.er1
4522 ac_status=$?
4523 grep -v '^ *+' conftest.er1 >conftest.err
4524 rm -f conftest.er1
4525 cat conftest.err >&5
4526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527 (exit $ac_status); } &&
4528 { ac_try='test -z "$ac_c_werror_flag"
4529 || test ! -s conftest.err'
4530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4531 (eval $ac_try) 2>&5
4532 ac_status=$?
4533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534 (exit $ac_status); }; } &&
4535 { ac_try='test -s conftest.$ac_objext'
4536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4537 (eval $ac_try) 2>&5
4538 ac_status=$?
4539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540 (exit $ac_status); }; }; then
4541 ac_header_compiler=yes
4542else
4543 echo "$as_me: failed program was:" >&5
4544sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4545
7357c5b6
AM
4546ac_header_compiler=no
4547fi
4548rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4549echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4550echo "${ECHO_T}$ac_header_compiler" >&6
d7040cdb 4551
7357c5b6
AM
4552# Is the header present?
4553echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4554echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
4555cat >conftest.$ac_ext <<_ACEOF
4556/* confdefs.h. */
4557_ACEOF
4558cat confdefs.h >>conftest.$ac_ext
4559cat >>conftest.$ac_ext <<_ACEOF
4560/* end confdefs.h. */
4561#include <minix/config.h>
4562_ACEOF
4563if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4564 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4565 ac_status=$?
4566 grep -v '^ *+' conftest.er1 >conftest.err
4567 rm -f conftest.er1
4568 cat conftest.err >&5
4569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570 (exit $ac_status); } >/dev/null; then
4571 if test -s conftest.err; then
4572 ac_cpp_err=$ac_c_preproc_warn_flag
4573 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4574 else
4575 ac_cpp_err=
4576 fi
4577else
4578 ac_cpp_err=yes
4579fi
4580if test -z "$ac_cpp_err"; then
4581 ac_header_preproc=yes
4582else
4583 echo "$as_me: failed program was:" >&5
4584sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4585
7357c5b6
AM
4586 ac_header_preproc=no
4587fi
4588rm -f conftest.err conftest.$ac_ext
4589echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4590echo "${ECHO_T}$ac_header_preproc" >&6
d7040cdb 4591
7357c5b6
AM
4592# So? What about this header?
4593case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4594 yes:no: )
4595 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4596echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4597 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4598echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4599 ac_header_preproc=yes
4600 ;;
4601 no:yes:* )
4602 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4603echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4604 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4605echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4606 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4607echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4608 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4609echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4610 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4611echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4612 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4613echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4614 (
4615 cat <<\_ASBOX
4616## ------------------------------------------ ##
4617## Report this to the AC_PACKAGE_NAME lists. ##
4618## ------------------------------------------ ##
4619_ASBOX
4620 ) |
4621 sed "s/^/$as_me: WARNING: /" >&2
4622 ;;
4623esac
4624echo "$as_me:$LINENO: checking for minix/config.h" >&5
4625echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4626if test "${ac_cv_header_minix_config_h+set}" = set; then
d7040cdb
SE
4627 echo $ECHO_N "(cached) $ECHO_C" >&6
4628else
7357c5b6 4629 ac_cv_header_minix_config_h=$ac_header_preproc
d7040cdb 4630fi
7357c5b6
AM
4631echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4632echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
d7040cdb 4633
7357c5b6
AM
4634fi
4635if test $ac_cv_header_minix_config_h = yes; then
4636 MINIX=yes
4637else
4638 MINIX=
4639fi
d7040cdb
SE
4640
4641
7357c5b6 4642 if test "$MINIX" = yes; then
d7040cdb 4643
7357c5b6
AM
4644cat >>confdefs.h <<\_ACEOF
4645#define _POSIX_SOURCE 1
4646_ACEOF
d7040cdb
SE
4647
4648
7357c5b6
AM
4649cat >>confdefs.h <<\_ACEOF
4650#define _POSIX_1_SOURCE 2
4651_ACEOF
d7040cdb
SE
4652
4653
7357c5b6
AM
4654cat >>confdefs.h <<\_ACEOF
4655#define _MINIX 1
4656_ACEOF
d7040cdb 4657
7357c5b6 4658 fi
d7040cdb
SE
4659
4660
4661
7357c5b6
AM
4662 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4663echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
4664if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
d7040cdb
SE
4665 echo $ECHO_N "(cached) $ECHO_C" >&6
4666else
7357c5b6
AM
4667 cat >conftest.$ac_ext <<_ACEOF
4668/* confdefs.h. */
4669_ACEOF
4670cat confdefs.h >>conftest.$ac_ext
4671cat >>conftest.$ac_ext <<_ACEOF
4672/* end confdefs.h. */
d7040cdb 4673
7357c5b6
AM
4674# define __EXTENSIONS__ 1
4675 $ac_includes_default
4676int
4677main ()
4678{
d7040cdb 4679
7357c5b6
AM
4680 ;
4681 return 0;
4682}
4683_ACEOF
4684rm -f conftest.$ac_objext
4685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4686 (eval $ac_compile) 2>conftest.er1
4687 ac_status=$?
4688 grep -v '^ *+' conftest.er1 >conftest.err
4689 rm -f conftest.er1
4690 cat conftest.err >&5
4691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692 (exit $ac_status); } &&
4693 { ac_try='test -z "$ac_c_werror_flag"
4694 || test ! -s conftest.err'
4695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4696 (eval $ac_try) 2>&5
4697 ac_status=$?
4698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699 (exit $ac_status); }; } &&
4700 { ac_try='test -s conftest.$ac_objext'
4701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4702 (eval $ac_try) 2>&5
4703 ac_status=$?
4704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705 (exit $ac_status); }; }; then
4706 ac_cv_safe_to_define___extensions__=yes
d7040cdb 4707else
7357c5b6
AM
4708 echo "$as_me: failed program was:" >&5
4709sed 's/^/| /' conftest.$ac_ext >&5
4710
4711ac_cv_safe_to_define___extensions__=no
d7040cdb 4712fi
7357c5b6
AM
4713rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4714fi
4715echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4716echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
4717 test $ac_cv_safe_to_define___extensions__ = yes &&
4718 cat >>confdefs.h <<\_ACEOF
4719#define __EXTENSIONS__ 1
4720_ACEOF
d7040cdb 4721
7357c5b6
AM
4722 cat >>confdefs.h <<\_ACEOF
4723#define _ALL_SOURCE 1
4724_ACEOF
d7040cdb 4725
7357c5b6
AM
4726 cat >>confdefs.h <<\_ACEOF
4727#define _GNU_SOURCE 1
4728_ACEOF
d7040cdb 4729
7357c5b6
AM
4730 cat >>confdefs.h <<\_ACEOF
4731#define _POSIX_PTHREAD_SEMANTICS 1
4732_ACEOF
d7040cdb 4733
7357c5b6
AM
4734 cat >>confdefs.h <<\_ACEOF
4735#define _TANDEM_SOURCE 1
4736_ACEOF
d7040cdb
SE
4737
4738
d053aef8
JK
4739# Check whether --enable-largefile or --disable-largefile was given.
4740if test "${enable_largefile+set}" = set; then
4741 enableval="$enable_largefile"
4742
4743fi;
4744if test "$enable_largefile" != no; then
4745
4746 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4747echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4748if test "${ac_cv_sys_largefile_CC+set}" = set; then
4749 echo $ECHO_N "(cached) $ECHO_C" >&6
4750else
4751 ac_cv_sys_largefile_CC=no
4752 if test "$GCC" != yes; then
4753 ac_save_CC=$CC
4754 while :; do
4755 # IRIX 6.2 and later do not support large files by default,
4756 # so use the C compiler's -n32 option if that helps.
4757 cat >conftest.$ac_ext <<_ACEOF
4758/* confdefs.h. */
4759_ACEOF
4760cat confdefs.h >>conftest.$ac_ext
4761cat >>conftest.$ac_ext <<_ACEOF
4762/* end confdefs.h. */
4763#include <sys/types.h>
4764 /* Check that off_t can represent 2**63 - 1 correctly.
4765 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4766 since some C++ compilers masquerading as C compilers
4767 incorrectly reject 9223372036854775807. */
4768#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4769 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4770 && LARGE_OFF_T % 2147483647 == 1)
4771 ? 1 : -1];
4772int
4773main ()
4774{
4775
4776 ;
4777 return 0;
4778}
4779_ACEOF
4780 rm -f conftest.$ac_objext
4781if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4782 (eval $ac_compile) 2>conftest.er1
4783 ac_status=$?
4784 grep -v '^ *+' conftest.er1 >conftest.err
4785 rm -f conftest.er1
4786 cat conftest.err >&5
4787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788 (exit $ac_status); } &&
4789 { ac_try='test -z "$ac_c_werror_flag"
4790 || test ! -s conftest.err'
4791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4792 (eval $ac_try) 2>&5
4793 ac_status=$?
4794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795 (exit $ac_status); }; } &&
4796 { ac_try='test -s conftest.$ac_objext'
4797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4798 (eval $ac_try) 2>&5
4799 ac_status=$?
4800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801 (exit $ac_status); }; }; then
4802 break
4803else
4804 echo "$as_me: failed program was:" >&5
4805sed 's/^/| /' conftest.$ac_ext >&5
4806
4807fi
4808rm -f conftest.err conftest.$ac_objext
4809 CC="$CC -n32"
4810 rm -f conftest.$ac_objext
4811if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4812 (eval $ac_compile) 2>conftest.er1
4813 ac_status=$?
4814 grep -v '^ *+' conftest.er1 >conftest.err
4815 rm -f conftest.er1
4816 cat conftest.err >&5
4817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818 (exit $ac_status); } &&
4819 { ac_try='test -z "$ac_c_werror_flag"
4820 || test ! -s conftest.err'
4821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4822 (eval $ac_try) 2>&5
4823 ac_status=$?
4824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4825 (exit $ac_status); }; } &&
4826 { ac_try='test -s conftest.$ac_objext'
4827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4828 (eval $ac_try) 2>&5
4829 ac_status=$?
4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831 (exit $ac_status); }; }; then
4832 ac_cv_sys_largefile_CC=' -n32'; break
4833else
4834 echo "$as_me: failed program was:" >&5
4835sed 's/^/| /' conftest.$ac_ext >&5
4836
4837fi
4838rm -f conftest.err conftest.$ac_objext
4839 break
4840 done
4841 CC=$ac_save_CC
4842 rm -f conftest.$ac_ext
4843 fi
4844fi
4845echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4846echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4847 if test "$ac_cv_sys_largefile_CC" != no; then
4848 CC=$CC$ac_cv_sys_largefile_CC
4849 fi
4850
4851 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4852echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4853if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4854 echo $ECHO_N "(cached) $ECHO_C" >&6
4855else
4856 while :; do
4857 ac_cv_sys_file_offset_bits=no
4858 cat >conftest.$ac_ext <<_ACEOF
4859/* confdefs.h. */
4860_ACEOF
4861cat confdefs.h >>conftest.$ac_ext
4862cat >>conftest.$ac_ext <<_ACEOF
4863/* end confdefs.h. */
4864#include <sys/types.h>
4865 /* Check that off_t can represent 2**63 - 1 correctly.
4866 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4867 since some C++ compilers masquerading as C compilers
4868 incorrectly reject 9223372036854775807. */
4869#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4870 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4871 && LARGE_OFF_T % 2147483647 == 1)
4872 ? 1 : -1];
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 break
4904else
4905 echo "$as_me: failed program was:" >&5
4906sed 's/^/| /' conftest.$ac_ext >&5
4907
4908fi
4909rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4910 cat >conftest.$ac_ext <<_ACEOF
4911/* confdefs.h. */
4912_ACEOF
4913cat confdefs.h >>conftest.$ac_ext
4914cat >>conftest.$ac_ext <<_ACEOF
4915/* end confdefs.h. */
4916#define _FILE_OFFSET_BITS 64
4917#include <sys/types.h>
4918 /* Check that off_t can represent 2**63 - 1 correctly.
4919 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4920 since some C++ compilers masquerading as C compilers
4921 incorrectly reject 9223372036854775807. */
4922#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4923 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4924 && LARGE_OFF_T % 2147483647 == 1)
4925 ? 1 : -1];
4926int
4927main ()
4928{
4929
4930 ;
4931 return 0;
4932}
4933_ACEOF
4934rm -f conftest.$ac_objext
4935if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4936 (eval $ac_compile) 2>conftest.er1
4937 ac_status=$?
4938 grep -v '^ *+' conftest.er1 >conftest.err
4939 rm -f conftest.er1
4940 cat conftest.err >&5
4941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942 (exit $ac_status); } &&
4943 { ac_try='test -z "$ac_c_werror_flag"
4944 || test ! -s conftest.err'
4945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4946 (eval $ac_try) 2>&5
4947 ac_status=$?
4948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949 (exit $ac_status); }; } &&
4950 { ac_try='test -s conftest.$ac_objext'
4951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4952 (eval $ac_try) 2>&5
4953 ac_status=$?
4954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955 (exit $ac_status); }; }; then
4956 ac_cv_sys_file_offset_bits=64; break
4957else
4958 echo "$as_me: failed program was:" >&5
4959sed 's/^/| /' conftest.$ac_ext >&5
4960
4961fi
4962rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4963 break
4964done
4965fi
4966echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4967echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4968if test "$ac_cv_sys_file_offset_bits" != no; then
4969
4970cat >>confdefs.h <<_ACEOF
4971#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4972_ACEOF
4973
4974fi
4975rm -f conftest*
4976 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4977echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4978if test "${ac_cv_sys_large_files+set}" = set; then
4979 echo $ECHO_N "(cached) $ECHO_C" >&6
4980else
4981 while :; do
4982 ac_cv_sys_large_files=no
4983 cat >conftest.$ac_ext <<_ACEOF
4984/* confdefs.h. */
4985_ACEOF
4986cat confdefs.h >>conftest.$ac_ext
4987cat >>conftest.$ac_ext <<_ACEOF
4988/* end confdefs.h. */
4989#include <sys/types.h>
4990 /* Check that off_t can represent 2**63 - 1 correctly.
4991 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4992 since some C++ compilers masquerading as C compilers
4993 incorrectly reject 9223372036854775807. */
4994#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4995 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4996 && LARGE_OFF_T % 2147483647 == 1)
4997 ? 1 : -1];
4998int
4999main ()
5000{
5001
5002 ;
5003 return 0;
5004}
5005_ACEOF
5006rm -f conftest.$ac_objext
5007if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5008 (eval $ac_compile) 2>conftest.er1
5009 ac_status=$?
5010 grep -v '^ *+' conftest.er1 >conftest.err
5011 rm -f conftest.er1
5012 cat conftest.err >&5
5013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014 (exit $ac_status); } &&
5015 { ac_try='test -z "$ac_c_werror_flag"
5016 || test ! -s conftest.err'
5017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5018 (eval $ac_try) 2>&5
5019 ac_status=$?
5020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021 (exit $ac_status); }; } &&
5022 { ac_try='test -s conftest.$ac_objext'
5023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5024 (eval $ac_try) 2>&5
5025 ac_status=$?
5026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027 (exit $ac_status); }; }; then
5028 break
5029else
5030 echo "$as_me: failed program was:" >&5
5031sed 's/^/| /' conftest.$ac_ext >&5
5032
5033fi
5034rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5035 cat >conftest.$ac_ext <<_ACEOF
5036/* confdefs.h. */
5037_ACEOF
5038cat confdefs.h >>conftest.$ac_ext
5039cat >>conftest.$ac_ext <<_ACEOF
5040/* end confdefs.h. */
5041#define _LARGE_FILES 1
5042#include <sys/types.h>
5043 /* Check that off_t can represent 2**63 - 1 correctly.
5044 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5045 since some C++ compilers masquerading as C compilers
5046 incorrectly reject 9223372036854775807. */
5047#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5048 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5049 && LARGE_OFF_T % 2147483647 == 1)
5050 ? 1 : -1];
5051int
5052main ()
5053{
5054
5055 ;
5056 return 0;
5057}
5058_ACEOF
5059rm -f conftest.$ac_objext
5060if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5061 (eval $ac_compile) 2>conftest.er1
5062 ac_status=$?
5063 grep -v '^ *+' conftest.er1 >conftest.err
5064 rm -f conftest.er1
5065 cat conftest.err >&5
5066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067 (exit $ac_status); } &&
5068 { ac_try='test -z "$ac_c_werror_flag"
5069 || test ! -s conftest.err'
5070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5071 (eval $ac_try) 2>&5
5072 ac_status=$?
5073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074 (exit $ac_status); }; } &&
5075 { ac_try='test -s conftest.$ac_objext'
5076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5077 (eval $ac_try) 2>&5
5078 ac_status=$?
5079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080 (exit $ac_status); }; }; then
5081 ac_cv_sys_large_files=1; break
5082else
5083 echo "$as_me: failed program was:" >&5
5084sed 's/^/| /' conftest.$ac_ext >&5
5085
5086fi
5087rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5088 break
5089done
5090fi
5091echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5092echo "${ECHO_T}$ac_cv_sys_large_files" >&6
5093if test "$ac_cv_sys_large_files" != no; then
5094
5095cat >>confdefs.h <<_ACEOF
5096#define _LARGE_FILES $ac_cv_sys_large_files
5097_ACEOF
5098
5099fi
5100rm -f conftest*
5101fi
5102
d7040cdb
SE
5103
5104
7357c5b6
AM
5105macro_version='2.1a'
5106macro_revision='1.2435'
d7040cdb
SE
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
7357c5b6 5119ltmain="$ac_aux_dir/ltmain.sh"
d7040cdb 5120
7357c5b6
AM
5121# Set options
5122
5123enable_dlopen=no
5124
5125
5126enable_win32_dll=no
5127
5128
5129# Check whether --enable-shared or --disable-shared was given.
5130if test "${enable_shared+set}" = set; then
5131 enableval="$enable_shared"
5132 p=${PACKAGE-default}
5133 case $enableval in
5134 yes) enable_shared=yes ;;
5135 no) enable_shared=no ;;
5136 *)
5137 enable_shared=no
5138 # Look at the argument we got. We use all the common list separators.
5139 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5140 for pkg in $enableval; do
5141 IFS="$lt_save_ifs"
5142 if test "X$pkg" = "X$p"; then
5143 enable_shared=yes
5144 fi
5145 done
5146 IFS="$lt_save_ifs"
5147 ;;
5148 esac
5149else
5150 enable_shared=yes
5151fi;
5152
5153
5154
5155
5156
5157
5158
5159
5160# Check whether --enable-static or --disable-static was given.
5161if test "${enable_static+set}" = set; then
5162 enableval="$enable_static"
5163 p=${PACKAGE-default}
5164 case $enableval in
5165 yes) enable_static=yes ;;
5166 no) enable_static=no ;;
5167 *)
5168 enable_static=no
5169 # Look at the argument we got. We use all the common list separators.
5170 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5171 for pkg in $enableval; do
5172 IFS="$lt_save_ifs"
5173 if test "X$pkg" = "X$p"; then
5174 enable_static=yes
5175 fi
5176 done
5177 IFS="$lt_save_ifs"
5178 ;;
5179 esac
5180else
5181 enable_static=yes
5182fi;
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192# Check whether --with-pic or --without-pic was given.
5193if test "${with_pic+set}" = set; then
5194 withval="$with_pic"
5195 pic_mode="$withval"
5196else
5197 pic_mode=default
5198fi;
5199
5200test -z "$pic_mode" && pic_mode=default
5201
5202
5203
5204
5205
5206
5207
5208# Check whether --enable-fast-install or --disable-fast-install was given.
5209if test "${enable_fast_install+set}" = set; then
5210 enableval="$enable_fast_install"
5211 p=${PACKAGE-default}
5212 case $enableval in
5213 yes) enable_fast_install=yes ;;
5214 no) enable_fast_install=no ;;
5215 *)
5216 enable_fast_install=no
5217 # Look at the argument we got. We use all the common list separators.
5218 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5219 for pkg in $enableval; do
5220 IFS="$lt_save_ifs"
5221 if test "X$pkg" = "X$p"; then
5222 enable_fast_install=yes
5223 fi
5224 done
5225 IFS="$lt_save_ifs"
5226 ;;
5227 esac
5228else
5229 enable_fast_install=yes
5230fi;
5231
5232
5233
5234
5235
5236
5237
5238
5239echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5240echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5241if test "${lt_cv_path_SED+set}" = set; then
5242 echo $ECHO_N "(cached) $ECHO_C" >&6
5243else
5244 # Loop through the user's path and test for sed and gsed.
5245# Then use that list of sed's as ones to test for truncation.
5246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5247for as_dir in $PATH
5248do
5249 IFS=$as_save_IFS
5250 test -z "$as_dir" && as_dir=.
5251 for lt_ac_prog in sed gsed; do
5252 for ac_exec_ext in '' $ac_executable_extensions; do
5253 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5254 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5255 fi
5256 done
5257 done
5258done
5259IFS=$as_save_IFS
5260lt_ac_max=0
5261lt_ac_count=0
5262# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5263# along with /bin/sed that truncates output.
5264for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5265 test ! -f $lt_ac_sed && continue
5266 cat /dev/null > conftest.in
5267 lt_ac_count=0
5268 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5269 # Check for GNU sed and select it if it is found.
5270 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5271 lt_cv_path_SED=$lt_ac_sed
5272 break
5273 fi
5274 while true; do
5275 cat conftest.in conftest.in >conftest.tmp
5276 mv conftest.tmp conftest.in
5277 cp conftest.in conftest.nl
5278 echo >>conftest.nl
5279 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5280 cmp -s conftest.out conftest.nl || break
5281 # 10000 chars as input seems more than enough
5282 test $lt_ac_count -gt 10 && break
5283 lt_ac_count=`expr $lt_ac_count + 1`
5284 if test $lt_ac_count -gt $lt_ac_max; then
5285 lt_ac_max=$lt_ac_count
5286 lt_cv_path_SED=$lt_ac_sed
5287 fi
5288 done
5289done
5290
5291fi
5292
5293SED=$lt_cv_path_SED
5294
5295echo "$as_me:$LINENO: result: $SED" >&5
5296echo "${ECHO_T}$SED" >&6
5297
5298test -z "$SED" && SED=sed
5299Xsed="$SED -e 1s/^X//"
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311echo "$as_me:$LINENO: checking for fgrep" >&5
5312echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
5313if test "${ac_cv_prog_fgrep+set}" = set; then
5314 echo $ECHO_N "(cached) $ECHO_C" >&6
5315else
5316 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
5317 then ac_cv_prog_fgrep='grep -F'
5318 else ac_cv_prog_fgrep='fgrep'
5319 fi
5320fi
5321echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
5322echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
5323 FGREP=$ac_cv_prog_fgrep
5324
5325
5326test -z "$GREP" && GREP=grep
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346# Check whether --with-gnu-ld or --without-gnu-ld was given.
5347if test "${with_gnu_ld+set}" = set; then
5348 withval="$with_gnu_ld"
5349 test "$withval" = no || with_gnu_ld=yes
5350else
5351 with_gnu_ld=no
5352fi;
5353ac_prog=ld
5354if test "$GCC" = yes; then
5355 # Check if gcc -print-prog-name=ld gives a path.
5356 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5357echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5358 case $host in
5359 *-*-mingw*)
d45dc31f
SE
5360 # gcc leaves a trailing carriage return which upsets mingw
5361 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5362 *)
5363 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5364 esac
5365 case $ac_prog in
5366 # Accept absolute paths.
d7040cdb 5367 [\\/]* | ?:[\\/]*)
d45dc31f 5368 re_direlt='/[^/][^/]*/\.\./'
d7040cdb
SE
5369 # Canonicalize the pathname of ld
5370 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5371 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5372 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
d45dc31f
SE
5373 done
5374 test -z "$LD" && LD="$ac_prog"
5375 ;;
5376 "")
5377 # If it fails, then pretend we aren't using GCC.
5378 ac_prog=ld
5379 ;;
5380 *)
5381 # If it is relative, then search for the first ld in PATH.
5382 with_gnu_ld=unknown
5383 ;;
5384 esac
5385elif test "$with_gnu_ld" = yes; then
5386 echo "$as_me:$LINENO: checking for GNU ld" >&5
5387echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5388else
5389 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5390echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5391fi
5392if test "${lt_cv_path_LD+set}" = set; then
5393 echo $ECHO_N "(cached) $ECHO_C" >&6
5394else
5395 if test -z "$LD"; then
d7040cdb 5396 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
d45dc31f 5397 for ac_dir in $PATH; do
d7040cdb 5398 IFS="$lt_save_ifs"
d45dc31f
SE
5399 test -z "$ac_dir" && ac_dir=.
5400 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5401 lt_cv_path_LD="$ac_dir/$ac_prog"
5402 # Check to see if the program is GNU ld. I'd rather use --version,
d7040cdb 5403 # but apparently some variants of GNU ld only accept -v.
d45dc31f 5404 # Break only if it was the GNU/non-GNU ld that we prefer.
d7040cdb
SE
5405 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5406 *GNU* | *'with BFD'*)
d45dc31f 5407 test "$with_gnu_ld" != no && break
d7040cdb
SE
5408 ;;
5409 *)
d45dc31f 5410 test "$with_gnu_ld" != yes && break
d7040cdb
SE
5411 ;;
5412 esac
d45dc31f
SE
5413 fi
5414 done
d7040cdb 5415 IFS="$lt_save_ifs"
d45dc31f
SE
5416else
5417 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5418fi
5419fi
1ad12f97 5420
d45dc31f
SE
5421LD="$lt_cv_path_LD"
5422if test -n "$LD"; then
5423 echo "$as_me:$LINENO: result: $LD" >&5
5424echo "${ECHO_T}$LD" >&6
5425else
5426 echo "$as_me:$LINENO: result: no" >&5
5427echo "${ECHO_T}no" >&6
5428fi
5429test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5430echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5431 { (exit 1); exit 1; }; }
5432echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5433echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5434if test "${lt_cv_prog_gnu_ld+set}" = set; then
5435 echo $ECHO_N "(cached) $ECHO_C" >&6
5436else
d7040cdb
SE
5437 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5438case `$LD -v 2>&1 </dev/null` in
5439*GNU* | *'with BFD'*)
d45dc31f 5440 lt_cv_prog_gnu_ld=yes
d7040cdb
SE
5441 ;;
5442*)
d45dc31f 5443 lt_cv_prog_gnu_ld=no
d7040cdb
SE
5444 ;;
5445esac
d45dc31f
SE
5446fi
5447echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5448echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5449with_gnu_ld=$lt_cv_prog_gnu_ld
569acd2c 5450
d45dc31f 5451
42ecbf5e 5452
d7040cdb
SE
5453
5454
5455
5456
5457
5458
5459
5460echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5461echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
d45dc31f
SE
5462if test "${lt_cv_path_NM+set}" = set; then
5463 echo $ECHO_N "(cached) $ECHO_C" >&6
5464else
5465 if test -n "$NM"; then
5466 # Let the user override the test.
5467 lt_cv_path_NM="$NM"
5468else
d7040cdb
SE
5469 lt_nm_to_check="${ac_tool_prefix}nm"
5470 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5471 lt_nm_to_check="$lt_nm_to_check nm"
5472 fi
5473 for lt_tmp_nm in $lt_nm_to_check; do
5474 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5475 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5476 IFS="$lt_save_ifs"
5477 test -z "$ac_dir" && ac_dir=.
5478 tmp_nm="$ac_dir/$lt_tmp_nm"
5479 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5480 # Check to see if the nm accepts a BSD-compat flag.
5481 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5482 # nm: unknown option "B" ignored
5483 # Tru64's nm complains that /dev/null is an invalid object file
5484 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5485 */dev/null* | *'Invalid file or object type'*)
5486 lt_cv_path_NM="$tmp_nm -B"
5487 break
5488 ;;
5489 *)
5490 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5491 */dev/null*)
5492 lt_cv_path_NM="$tmp_nm -p"
5493 break
5494 ;;
5495 *)
5496 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5497 continue # so that we can try to find one that supports BSD flags
5498 ;;
5499 esac
5500 ;;
5501 esac
d45dc31f 5502 fi
d7040cdb
SE
5503 done
5504 IFS="$lt_save_ifs"
d45dc31f 5505 done
d7040cdb 5506 : ${lt_cv_path_NM=no}
d45dc31f 5507fi
a541e3ce 5508fi
d7040cdb
SE
5509echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5510echo "${ECHO_T}$lt_cv_path_NM" >&6
5511if test "$lt_cv_path_NM" != "no"; then
5512 NM="$lt_cv_path_NM"
d45dc31f 5513else
d7040cdb
SE
5514 # Didn't find any BSD compatible name lister, look for dumpbin.
5515 if test -n "$ac_tool_prefix"; then
5516 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5517 do
5518 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5519set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5520echo "$as_me:$LINENO: checking for $ac_word" >&5
5521echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5522if test "${ac_cv_prog_DUMPBIN+set}" = set; then
d45dc31f
SE
5523 echo $ECHO_N "(cached) $ECHO_C" >&6
5524else
d7040cdb
SE
5525 if test -n "$DUMPBIN"; then
5526 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5527else
5528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5529for as_dir in $PATH
5530do
5531 IFS=$as_save_IFS
5532 test -z "$as_dir" && as_dir=.
5533 for ac_exec_ext in '' $ac_executable_extensions; do
5534 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5535 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5537 break 2
5538 fi
5539done
5540done
398ee8f1 5541
d7040cdb
SE
5542fi
5543fi
5544DUMPBIN=$ac_cv_prog_DUMPBIN
5545if test -n "$DUMPBIN"; then
5546 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5547echo "${ECHO_T}$DUMPBIN" >&6
5548else
5549 echo "$as_me:$LINENO: result: no" >&5
5550echo "${ECHO_T}no" >&6
5551fi
d15b04bd 5552
d7040cdb
SE
5553 test -n "$DUMPBIN" && break
5554 done
5555fi
5556if test -z "$DUMPBIN"; then
5557 ac_ct_DUMPBIN=$DUMPBIN
5558 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5559do
5560 # Extract the first word of "$ac_prog", so it can be a program name with args.
5561set dummy $ac_prog; ac_word=$2
5562echo "$as_me:$LINENO: checking for $ac_word" >&5
5563echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5564if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5565 echo $ECHO_N "(cached) $ECHO_C" >&6
5566else
5567 if test -n "$ac_ct_DUMPBIN"; then
5568 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5569else
5570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5571for as_dir in $PATH
5572do
5573 IFS=$as_save_IFS
5574 test -z "$as_dir" && as_dir=.
5575 for ac_exec_ext in '' $ac_executable_extensions; do
5576 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5577 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5579 break 2
d45dc31f 5580 fi
d7040cdb
SE
5581done
5582done
d15b04bd 5583
d7040cdb
SE
5584fi
5585fi
5586ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5587if test -n "$ac_ct_DUMPBIN"; then
5588 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5589echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
5590else
5591 echo "$as_me:$LINENO: result: no" >&5
5592echo "${ECHO_T}no" >&6
5593fi
42ecbf5e 5594
d7040cdb
SE
5595 test -n "$ac_ct_DUMPBIN" && break
5596done
5597test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
d45dc31f 5598
d7040cdb
SE
5599 DUMPBIN=$ac_ct_DUMPBIN
5600fi
d45dc31f 5601
d45dc31f 5602
d7040cdb
SE
5603 if test "$DUMPBIN" != ":"; then
5604 NM="$DUMPBIN"
42ecbf5e 5605 fi
d7040cdb
SE
5606fi
5607test -z "$NM" && NM=nm
d45dc31f 5608
42ecbf5e 5609
d15b04bd 5610
42ecbf5e 5611
d45dc31f 5612
42ecbf5e 5613
d7040cdb
SE
5614echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5615echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
5616if test "${lt_cv_nm_interface+set}" = set; then
5617 echo $ECHO_N "(cached) $ECHO_C" >&6
5618else
5619 lt_cv_nm_interface="BSD nm"
5620 echo "int some_variable = 0;" > conftest.$ac_ext
da594c4a 5621 (eval echo "\"\$as_me:5256: $ac_compile\"" >&5)
d7040cdb
SE
5622 (eval "$ac_compile" 2>conftest.err)
5623 cat conftest.err >&5
da594c4a 5624 (eval echo "\"\$as_me:5259: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
d7040cdb
SE
5625 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5626 cat conftest.err >&5
da594c4a 5627 (eval echo "\"\$as_me:5262: output\"" >&5)
d7040cdb
SE
5628 cat conftest.out >&5
5629 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5630 lt_cv_nm_interface="MS dumpbin"
5631 fi
5632 rm -f conftest*
42ecbf5e 5633fi
d7040cdb
SE
5634echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5635echo "${ECHO_T}$lt_cv_nm_interface" >&6
42ecbf5e 5636
d7040cdb
SE
5637echo "$as_me:$LINENO: checking whether ln -s works" >&5
5638echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5639LN_S=$as_ln_s
5640if test "$LN_S" = "ln -s"; then
5641 echo "$as_me:$LINENO: result: yes" >&5
5642echo "${ECHO_T}yes" >&6
5643else
5644 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5645echo "${ECHO_T}no, using $LN_S" >&6
5646fi
d45dc31f
SE
5647
5648# find the maximum length of command line arguments
5649echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5650echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5651if test "${lt_cv_sys_max_cmd_len+set}" = set; then
42ecbf5e
DJ
5652 echo $ECHO_N "(cached) $ECHO_C" >&6
5653else
d45dc31f
SE
5654 i=0
5655 teststring="ABCD"
5656
5657 case $build_os in
5658 msdosdjgpp*)
5659 # On DJGPP, this test can blow up pretty badly due to problems in libc
5660 # (any single argument exceeding 2000 bytes causes a buffer overrun
5661 # during glob expansion). Even if it were fixed, the result of this
5662 # check would be larger than it should be.
5663 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5664 ;;
5665
d7040cdb
SE
5666 gnu*)
5667 # Under GNU Hurd, this test is not required because there is
5668 # no limit to the length of command line arguments.
5669 # Libtool will interpret -1 as no limit whatsoever
5670 lt_cv_sys_max_cmd_len=-1;
5671 ;;
5672
d45dc31f
SE
5673 cygwin* | mingw*)
5674 # On Win9x/ME, this test blows up -- it succeeds, but takes
5675 # about 5 minutes as the teststring grows exponentially.
5676 # Worse, since 9x/ME are not pre-emptively multitasking,
5677 # you end up with a "frozen" computer, even though with patience
5678 # the test eventually succeeds (with a max line length of 256k).
5679 # Instead, let's just punt: use the minimum linelength reported by
5680 # all of the supported platforms: 8192 (on NT/2K/XP).
5681 lt_cv_sys_max_cmd_len=8192;
5682 ;;
5683
5684 amigaos*)
5685 # On AmigaOS with pdksh, this test takes hours, literally.
5686 # So we just punt and use a minimum line length of 8192.
5687 lt_cv_sys_max_cmd_len=8192;
5688 ;;
5689
5690 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5691 # This has been around since 386BSD, at least. Likely further.
5692 if test -x /sbin/sysctl; then
5693 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5694 elif test -x /usr/sbin/sysctl; then
5695 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5696 else
d7040cdb 5697 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
d45dc31f
SE
5698 fi
5699 # And add a safety zone
5700 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5701 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5702 ;;
d7040cdb
SE
5703
5704 interix*)
5705 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5706 lt_cv_sys_max_cmd_len=196608
5707 ;;
5708
5709 osf*)
5710 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5711 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5712 # nice to cause kernel panics so lets avoid the loop below.
5713 # First set a reasonable default.
5714 lt_cv_sys_max_cmd_len=16384
5715 #
5716 if test -x /sbin/sysconfig; then
5717 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5718 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5719 esac
5720 fi
5721 ;;
5722 sco3.2v5*)
5723 lt_cv_sys_max_cmd_len=102400
5724 ;;
5725 sysv5* | sco5v6* | sysv4.2uw2*)
5726 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5727 if test -n "$kargmax"; then
5728 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5729 else
5730 lt_cv_sys_max_cmd_len=32768
5731 fi
5732 ;;
5733 *)
5ba684e2
NC
5734 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
5735 if test -n $lt_cv_sys_max_cmd_len; then
5736 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5737 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5738 else
5739 # Make teststring a little bigger before we do anything with it.
5740 # a 1K string should be a reasonable start.
5741 for i in 1 2 3 4 5 6 7 8 ; do
5742 teststring=$teststring$teststring
5743 done
5744 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5745 # If test is not a shell built-in, we'll probably end up computing a
5746 # maximum length that is only half of the actual maximum length, but
5747 # we can't tell.
5748 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5749 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5750 test $i != 17 # 1/2 MB should be enough
5751 do
5752 i=`expr $i + 1`
5753 teststring=$teststring$teststring
5754 done
5755 # Only check the string length outside the loop.
5756 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5757 teststring=
5758 # Add a significant safety factor because C++ compilers can tack on
5759 # massive amounts of additional arguments before passing them to the
5760 # linker. It appears as though 1/2 is a usable value.
5761 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5762 fi
d7040cdb 5763 ;;
d45dc31f 5764 esac
42ecbf5e 5765
42ecbf5e
DJ
5766fi
5767
d7040cdb 5768if test -n $lt_cv_sys_max_cmd_len ; then
d45dc31f
SE
5769 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5770echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
252b5132 5771else
d45dc31f
SE
5772 echo "$as_me:$LINENO: result: none" >&5
5773echo "${ECHO_T}none" >&6
252b5132 5774fi
d7040cdb 5775max_cmd_len=$lt_cv_sys_max_cmd_len
e5a52504 5776
d45dc31f 5777
42ecbf5e 5778
d45dc31f 5779
d45dc31f 5780
d7040cdb
SE
5781
5782
5783: ${CP="cp -f"}
5784: ${MV="mv -f"}
5785: ${RM="rm -f"}
5786
5787echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5788echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
5789# Try some XSI features
5790xsi_shell=no
5791( _lt_dummy="a/b/c"
5792 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5793 = c,a/b,, ) >/dev/null 2>&1 \
5794 && xsi_shell=yes
5795echo "$as_me:$LINENO: result: $xsi_shell" >&5
5796echo "${ECHO_T}$xsi_shell" >&6
5797
5798
5799echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5800echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
5801lt_shell_append=no
5802( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5803 >/dev/null 2>&1 \
5804 && lt_shell_append=yes
5805echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5806echo "${ECHO_T}$lt_shell_append" >&6
5807
5808
5809if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5810 lt_unset=unset
252b5132 5811else
d7040cdb 5812 lt_unset=false
252b5132
RH
5813fi
5814
d7040cdb
SE
5815
5816
5817
5818
5819# test EBCDIC or ASCII
5820case `echo X|tr X '\101'` in
5821 A) # ASCII based system
5822 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5823 lt_SP2NL='tr \040 \012'
5824 lt_NL2SP='tr \015\012 \040\040'
5825 ;;
5826 *) # EBCDIC based system
5827 lt_SP2NL='tr \100 \n'
5828 lt_NL2SP='tr \r\n \100\100'
5829 ;;
5830esac
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5841echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5842if test "${lt_cv_ld_reload_flag+set}" = set; then
42ecbf5e 5843 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5844else
d7040cdb
SE
5845 lt_cv_ld_reload_flag='-r'
5846fi
5847echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5848echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5849reload_flag=$lt_cv_ld_reload_flag
5850case $reload_flag in
5851"" | " "*) ;;
5852*) reload_flag=" $reload_flag" ;;
5853esac
5854reload_cmds='$LD$reload_flag -o $output$reload_objs'
5855case $host_os in
5856 darwin*)
5857 if test "$GCC" = yes; then
5858 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5859 else
5860 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5861 fi
5862 ;;
5863esac
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5875echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
5876if test "${lt_cv_deplibs_check_method+set}" = set; then
5877 echo $ECHO_N "(cached) $ECHO_C" >&6
5878else
5879 lt_cv_file_magic_cmd='$MAGIC_CMD'
5880lt_cv_file_magic_test_file=
5881lt_cv_deplibs_check_method='unknown'
5882# Need to set the preceding variable on all platforms that support
5883# interlibrary dependencies.
5884# 'none' -- dependencies not supported.
5885# `unknown' -- same as none, but documents that we really don't know.
5886# 'pass_all' -- all dependencies passed with no checks.
5887# 'test_compile' -- check by making test program.
5888# 'file_magic [[regex]]' -- check by looking for files in library path
5889# which responds to the $file_magic_cmd with a given extended regex.
5890# If you have `file' or equivalent on your system and you're not sure
5891# whether `pass_all' will *always* work, you probably want this one.
5892
5893case $host_os in
50e7d84b 5894aix[4-9]*)
d7040cdb
SE
5895 lt_cv_deplibs_check_method=pass_all
5896 ;;
5897
5898beos*)
5899 lt_cv_deplibs_check_method=pass_all
5900 ;;
5901
5902bsdi[45]*)
5903 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5904 lt_cv_file_magic_cmd='/usr/bin/file -L'
5905 lt_cv_file_magic_test_file=/shlib/libc.so
5906 ;;
5907
5908cygwin*)
5909 # func_win32_libid is a shell function defined in ltmain.sh
5910 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5911 lt_cv_file_magic_cmd='func_win32_libid'
5912 ;;
5913
5914mingw* | pw32*)
5915 # Base MSYS/MinGW do not provide the 'file' command needed by
5916 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5917 # unless we find 'file', for example because we are cross-compiling.
5918 if ( file / ) >/dev/null 2>&1; then
5919 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5920 lt_cv_file_magic_cmd='func_win32_libid'
5921 else
5922 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5923 lt_cv_file_magic_cmd='$OBJDUMP -f'
5924 fi
5925 ;;
5926
5927darwin* | rhapsody*)
5928 lt_cv_deplibs_check_method=pass_all
d45dc31f 5929 ;;
d7040cdb
SE
5930
5931freebsd* | dragonfly*)
5932 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5933 case $host_cpu in
5934 i*86 )
5935 # Not sure whether the presence of OpenBSD here was a mistake.
5936 # Let's accept both of them until this is cleared up.
5937 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5938 lt_cv_file_magic_cmd=/usr/bin/file
5939 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5940 ;;
5941 esac
5942 else
5943 lt_cv_deplibs_check_method=pass_all
5944 fi
5945 ;;
5946
5947gnu*)
5948 lt_cv_deplibs_check_method=pass_all
d45dc31f 5949 ;;
d7040cdb
SE
5950
5951hpux10.20* | hpux11*)
5952 lt_cv_file_magic_cmd=/usr/bin/file
5953 case $host_cpu in
5954 ia64*)
5955 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5956 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5957 ;;
5958 hppa*64*)
5959 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]'
5960 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5961 ;;
d45dc31f 5962 *)
d7040cdb
SE
5963 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5964 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5965 ;;
5966 esac
5967 ;;
42ecbf5e 5968
d7040cdb
SE
5969interix[3-9]*)
5970 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5971 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5972 ;;
42ecbf5e 5973
d7040cdb
SE
5974irix5* | irix6* | nonstopux*)
5975 case $LD in
5976 *-32|*"-32 ") libmagic=32-bit;;
5977 *-n32|*"-n32 ") libmagic=N32;;
5978 *-64|*"-64 ") libmagic=64-bit;;
5979 *) libmagic=never-match;;
5980 esac
5981 lt_cv_deplibs_check_method=pass_all
d45dc31f 5982 ;;
42ecbf5e 5983
d7040cdb
SE
5984# This must be Linux ELF.
5985linux* | k*bsd*-gnu)
5986 lt_cv_deplibs_check_method=pass_all
5987 ;;
252b5132 5988
d7040cdb
SE
5989netbsd*)
5990 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5991 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
d45dc31f 5992 else
d7040cdb 5993 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
d45dc31f 5994 fi
d7040cdb
SE
5995 ;;
5996
5997newos6*)
5998 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5999 lt_cv_file_magic_cmd=/usr/bin/file
6000 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6001 ;;
6002
6003*nto* | *qnx*)
6004 lt_cv_deplibs_check_method=pass_all
6005 ;;
42ecbf5e 6006
d7040cdb
SE
6007openbsd*)
6008 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6009 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6010 else
6011 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
d45dc31f
SE
6012 fi
6013 ;;
d7040cdb
SE
6014
6015osf3* | osf4* | osf5*)
6016 lt_cv_deplibs_check_method=pass_all
6017 ;;
6018
6019rdos*)
6020 lt_cv_deplibs_check_method=pass_all
6021 ;;
6022
6023solaris*)
6024 lt_cv_deplibs_check_method=pass_all
6025 ;;
6026
6027sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6028 lt_cv_deplibs_check_method=pass_all
6029 ;;
6030
6031sysv4 | sysv4.3*)
6032 case $host_vendor in
6033 motorola)
6034 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]'
6035 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6036 ;;
6037 ncr)
6038 lt_cv_deplibs_check_method=pass_all
6039 ;;
6040 sequent)
6041 lt_cv_file_magic_cmd='/bin/file'
6042 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6043 ;;
6044 sni)
6045 lt_cv_file_magic_cmd='/bin/file'
6046 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6047 lt_cv_file_magic_test_file=/lib/libc.so
6048 ;;
6049 siemens)
6050 lt_cv_deplibs_check_method=pass_all
6051 ;;
6052 pc)
6053 lt_cv_deplibs_check_method=pass_all
6054 ;;
6055 esac
6056 ;;
6057
6058tpf*)
6059 lt_cv_deplibs_check_method=pass_all
6060 ;;
d45dc31f 6061esac
42ecbf5e 6062
d7040cdb
SE
6063fi
6064echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6065echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6066file_magic_cmd=$lt_cv_file_magic_cmd
6067deplibs_check_method=$lt_cv_deplibs_check_method
6068test -z "$deplibs_check_method" && deplibs_check_method=unknown
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
d45dc31f 6081if test -n "$ac_tool_prefix"; then
d7040cdb
SE
6082 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6083set dummy ${ac_tool_prefix}ar; ac_word=$2
d45dc31f
SE
6084echo "$as_me:$LINENO: checking for $ac_word" >&5
6085echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d7040cdb 6086if test "${ac_cv_prog_AR+set}" = set; then
d45dc31f 6087 echo $ECHO_N "(cached) $ECHO_C" >&6
42ecbf5e 6088else
d7040cdb
SE
6089 if test -n "$AR"; then
6090 ac_cv_prog_AR="$AR" # Let the user override the test.
d45dc31f
SE
6091else
6092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6093for as_dir in $PATH
6094do
6095 IFS=$as_save_IFS
6096 test -z "$as_dir" && as_dir=.
6097 for ac_exec_ext in '' $ac_executable_extensions; do
6098 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 6099 ac_cv_prog_AR="${ac_tool_prefix}ar"
d45dc31f
SE
6100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6101 break 2
6102 fi
6103done
6104done
42ecbf5e 6105
42ecbf5e 6106fi
d45dc31f 6107fi
d7040cdb
SE
6108AR=$ac_cv_prog_AR
6109if test -n "$AR"; then
6110 echo "$as_me:$LINENO: result: $AR" >&5
6111echo "${ECHO_T}$AR" >&6
d45dc31f
SE
6112else
6113 echo "$as_me:$LINENO: result: no" >&5
6114echo "${ECHO_T}no" >&6
6115fi
42ecbf5e
DJ
6116
6117fi
d7040cdb
SE
6118if test -z "$ac_cv_prog_AR"; then
6119 ac_ct_AR=$AR
6120 # Extract the first word of "ar", so it can be a program name with args.
6121set dummy ar; ac_word=$2
d45dc31f
SE
6122echo "$as_me:$LINENO: checking for $ac_word" >&5
6123echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d7040cdb 6124if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
42ecbf5e
DJ
6125 echo $ECHO_N "(cached) $ECHO_C" >&6
6126else
d7040cdb
SE
6127 if test -n "$ac_ct_AR"; then
6128 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
42ecbf5e 6129else
d45dc31f
SE
6130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6131for as_dir in $PATH
6132do
6133 IFS=$as_save_IFS
6134 test -z "$as_dir" && as_dir=.
6135 for ac_exec_ext in '' $ac_executable_extensions; do
6136 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 6137 ac_cv_prog_ac_ct_AR="ar"
d45dc31f
SE
6138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6139 break 2
6140 fi
6141done
6142done
42ecbf5e 6143
d7040cdb 6144 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
42ecbf5e 6145fi
42ecbf5e 6146fi
d7040cdb
SE
6147ac_ct_AR=$ac_cv_prog_ac_ct_AR
6148if test -n "$ac_ct_AR"; then
6149 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6150echo "${ECHO_T}$ac_ct_AR" >&6
252b5132 6151else
d45dc31f
SE
6152 echo "$as_me:$LINENO: result: no" >&5
6153echo "${ECHO_T}no" >&6
252b5132 6154fi
252b5132 6155
d7040cdb 6156 AR=$ac_ct_AR
d45dc31f 6157else
d7040cdb 6158 AR="$ac_cv_prog_AR"
d45dc31f 6159fi
42ecbf5e 6160
d7040cdb
SE
6161test -z "$AR" && AR=ar
6162test -z "$AR_FLAGS" && AR_FLAGS=cru
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
d45dc31f
SE
6174if test -n "$ac_tool_prefix"; then
6175 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6176set dummy ${ac_tool_prefix}strip; ac_word=$2
6177echo "$as_me:$LINENO: checking for $ac_word" >&5
6178echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6179if test "${ac_cv_prog_STRIP+set}" = set; then
6180 echo $ECHO_N "(cached) $ECHO_C" >&6
6181else
6182 if test -n "$STRIP"; then
6183 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6184else
6185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6186for as_dir in $PATH
42ecbf5e 6187do
d45dc31f
SE
6188 IFS=$as_save_IFS
6189 test -z "$as_dir" && as_dir=.
6190 for ac_exec_ext in '' $ac_executable_extensions; do
6191 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6192 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6194 break 2
6195 fi
6196done
6197done
6198
6199fi
6200fi
6201STRIP=$ac_cv_prog_STRIP
6202if test -n "$STRIP"; then
6203 echo "$as_me:$LINENO: result: $STRIP" >&5
6204echo "${ECHO_T}$STRIP" >&6
252b5132 6205else
d45dc31f
SE
6206 echo "$as_me:$LINENO: result: no" >&5
6207echo "${ECHO_T}no" >&6
6208fi
42ecbf5e 6209
252b5132 6210fi
d45dc31f
SE
6211if test -z "$ac_cv_prog_STRIP"; then
6212 ac_ct_STRIP=$STRIP
6213 # Extract the first word of "strip", so it can be a program name with args.
6214set dummy strip; ac_word=$2
6215echo "$as_me:$LINENO: checking for $ac_word" >&5
6216echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6217if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6218 echo $ECHO_N "(cached) $ECHO_C" >&6
6219else
6220 if test -n "$ac_ct_STRIP"; then
6221 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6222else
6223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6224for as_dir in $PATH
6225do
6226 IFS=$as_save_IFS
6227 test -z "$as_dir" && as_dir=.
6228 for ac_exec_ext in '' $ac_executable_extensions; do
6229 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6230 ac_cv_prog_ac_ct_STRIP="strip"
6231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6232 break 2
6233 fi
6234done
42ecbf5e 6235done
42ecbf5e 6236
d45dc31f
SE
6237 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6238fi
6239fi
6240ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6241if test -n "$ac_ct_STRIP"; then
6242 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6243echo "${ECHO_T}$ac_ct_STRIP" >&6
6244else
6245 echo "$as_me:$LINENO: result: no" >&5
6246echo "${ECHO_T}no" >&6
252b5132 6247fi
e5a52504 6248
d45dc31f
SE
6249 STRIP=$ac_ct_STRIP
6250else
6251 STRIP="$ac_cv_prog_STRIP"
6252fi
e5a52504 6253
d7040cdb 6254test -z "$STRIP" && STRIP=:
d45dc31f 6255
d45dc31f
SE
6256
6257
d45dc31f 6258
d45dc31f
SE
6259
6260
d7040cdb
SE
6261if test -n "$ac_tool_prefix"; then
6262 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6263set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6264echo "$as_me:$LINENO: checking for $ac_word" >&5
6265echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6266if test "${ac_cv_prog_RANLIB+set}" = set; then
6267 echo $ECHO_N "(cached) $ECHO_C" >&6
d45dc31f 6268else
d7040cdb
SE
6269 if test -n "$RANLIB"; then
6270 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6271else
6272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6273for as_dir in $PATH
6274do
6275 IFS=$as_save_IFS
6276 test -z "$as_dir" && as_dir=.
6277 for ac_exec_ext in '' $ac_executable_extensions; do
6278 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6279 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6281 break 2
d45dc31f 6282 fi
d7040cdb
SE
6283done
6284done
d45dc31f 6285
d7040cdb
SE
6286fi
6287fi
6288RANLIB=$ac_cv_prog_RANLIB
6289if test -n "$RANLIB"; then
6290 echo "$as_me:$LINENO: result: $RANLIB" >&5
6291echo "${ECHO_T}$RANLIB" >&6
6292else
6293 echo "$as_me:$LINENO: result: no" >&5
6294echo "${ECHO_T}no" >&6
6295fi
d45dc31f 6296
d7040cdb
SE
6297fi
6298if test -z "$ac_cv_prog_RANLIB"; then
6299 ac_ct_RANLIB=$RANLIB
6300 # Extract the first word of "ranlib", so it can be a program name with args.
6301set dummy ranlib; ac_word=$2
6302echo "$as_me:$LINENO: checking for $ac_word" >&5
6303echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6304if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6305 echo $ECHO_N "(cached) $ECHO_C" >&6
6306else
6307 if test -n "$ac_ct_RANLIB"; then
6308 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6309else
6310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6311for as_dir in $PATH
6312do
6313 IFS=$as_save_IFS
6314 test -z "$as_dir" && as_dir=.
6315 for ac_exec_ext in '' $ac_executable_extensions; do
6316 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6317 ac_cv_prog_ac_ct_RANLIB="ranlib"
6318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6319 break 2
d45dc31f 6320 fi
d7040cdb
SE
6321done
6322done
d45dc31f 6323
d7040cdb
SE
6324 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6325fi
6326fi
6327ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6328if test -n "$ac_ct_RANLIB"; then
6329 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6330echo "${ECHO_T}$ac_ct_RANLIB" >&6
d15b04bd 6331else
d7040cdb
SE
6332 echo "$as_me:$LINENO: result: no" >&5
6333echo "${ECHO_T}no" >&6
6334fi
252b5132 6335
d7040cdb
SE
6336 RANLIB=$ac_ct_RANLIB
6337else
6338 RANLIB="$ac_cv_prog_RANLIB"
6339fi
d45dc31f 6340
d7040cdb 6341test -z "$RANLIB" && RANLIB=:
d45dc31f 6342
d45dc31f 6343
d45dc31f 6344
42ecbf5e 6345
e5a52504 6346
d7040cdb
SE
6347
6348# Determine commands to create old-style static archives.
6349old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6350old_postinstall_cmds='chmod 644 $oldlib'
6351old_postuninstall_cmds=
6352
6353if test -n "$RANLIB"; then
6354 case $host_os in
6355 openbsd*)
6356 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6357 ;;
6358 *)
6359 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6360 ;;
6361 esac
6362 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
d45dc31f 6363fi
d45dc31f
SE
6364
6365
d45dc31f
SE
6366
6367
d15b04bd 6368
3e321448 6369
d45dc31f 6370
d45dc31f 6371
d45dc31f
SE
6372
6373
d45dc31f 6374
d45dc31f 6375
d45dc31f
SE
6376
6377
6378
6379
6380
6381
6382
d45dc31f 6383
d45dc31f 6384
d45dc31f 6385
d45dc31f 6386
d45dc31f 6387
d45dc31f 6388
d45dc31f 6389
d45dc31f 6390
3e321448
L
6391
6392
d45dc31f
SE
6393
6394
d45dc31f
SE
6395
6396
d45dc31f 6397
d7040cdb
SE
6398# If no C compiler was specified, use CC.
6399LTCC=${LTCC-"$CC"}
42ecbf5e 6400
d7040cdb
SE
6401# If no C compiler flags were specified, use CFLAGS.
6402LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
e5a52504 6403
d7040cdb
SE
6404# Allow CC to be a program name with arguments.
6405compiler=$CC
d15b04bd 6406
d7040cdb
SE
6407
6408# Check for command to grab the raw symbol name followed by C symbol from nm.
6409echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6410echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6411if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
42ecbf5e 6412 echo $ECHO_N "(cached) $ECHO_C" >&6
d15b04bd 6413else
d7040cdb
SE
6414
6415# These are sane defaults that work on at least a few old systems.
6416# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6417
6418# Character class describing NM global symbol codes.
6419symcode='[BCDEGRST]'
6420
6421# Regexp to match symbols that can be accessed directly from C.
6422sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6423
6424# Define system-specific variables.
6425case $host_os in
6426aix*)
6427 symcode='[BCDT]'
6428 ;;
6429cygwin* | mingw* | pw32*)
6430 symcode='[ABCDGISTW]'
6431 ;;
6432hpux*)
6433 if test "$host_cpu" = ia64; then
6434 symcode='[ABCDEGRST]'
42ecbf5e 6435 fi
d7040cdb
SE
6436 ;;
6437irix* | nonstopux*)
6438 symcode='[BCDEGRST]'
6439 ;;
6440osf*)
6441 symcode='[BCDEGQRST]'
6442 ;;
6443solaris*)
6444 symcode='[BDRT]'
6445 ;;
6446sco3.2v5*)
6447 symcode='[DT]'
6448 ;;
6449sysv4.2uw2*)
6450 symcode='[DT]'
6451 ;;
6452sysv5* | sco5v6* | unixware* | OpenUNIX*)
6453 symcode='[ABDT]'
6454 ;;
6455sysv4)
6456 symcode='[DFNSTU]'
6457 ;;
6458esac
d15b04bd 6459
d7040cdb
SE
6460# If we're using GNU nm, then use its standard symbol codes.
6461case `$NM -V 2>&1` in
6462*GNU* | *'with BFD'*)
6463 symcode='[ABCDGIRSTW]' ;;
6464esac
e5a52504 6465
d7040cdb
SE
6466# Transform an extracted symbol line into a proper C declaration.
6467# Some systems (esp. on ia64) link data and code symbols differently,
7357c5b6
AM
6468# so use this general approach.
6469lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
d7040cdb 6470
7357c5b6
AM
6471# Transform an extracted symbol line into symbol name and symbol address
6472lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
d7040cdb 6473
7357c5b6
AM
6474# Handle CRLF in mingw tool chain
6475opt_cr=
6476case $build_os in
6477mingw*)
6478 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6479 ;;
6480esac
d7040cdb 6481
7357c5b6
AM
6482# Try without a prefix underscore, then with it.
6483for ac_symprfx in "" "_"; do
d7040cdb 6484
7357c5b6
AM
6485 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6486 symxfrm="\\1 $ac_symprfx\\2 \\2"
d7040cdb 6487
7357c5b6
AM
6488 # Write the raw and C identifiers.
6489 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6490 # Fake it for dumpbin and say T for any non-static function
6491 # and D for any global variable.
6492 # Also find C++ and __fastcall symbols from MSVC++,
6493 # which start with @ or ?.
6494 lt_cv_sys_global_symbol_pipe="$AWK '"\
6495" {last_section=section; section=\$ 3};"\
6496" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6497" \$ 0!~/External *\|/{next};"\
6498" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6499" {if(hide[section]) next};"\
6500" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6501" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6502" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6503" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6504" ' prfx=^$ac_symprfx"
6505 else
6506 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6507 fi
6508
6509 # Check to see that the pipe works correctly.
6510 pipe_works=no
6511
6512 rm -f conftest*
6513 cat > conftest.$ac_ext <<_LT_EOF
6514#ifdef __cplusplus
6515extern "C" {
6516#endif
6517char nm_test_var;
6518void nm_test_func(void);
6519void nm_test_func(void){}
6520#ifdef __cplusplus
d7040cdb 6521}
7357c5b6
AM
6522#endif
6523int main(){nm_test_var='a';nm_test_func();return(0);}
6524_LT_EOF
6525
6526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6527 (eval $ac_compile) 2>&5
42ecbf5e
DJ
6528 ac_status=$?
6529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357c5b6
AM
6530 (exit $ac_status); }; then
6531 # Now try to grab the symbols.
6532 nlist=conftest.nm
6533 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6534 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
42ecbf5e
DJ
6535 ac_status=$?
6536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357c5b6
AM
6537 (exit $ac_status); } && test -s "$nlist"; then
6538 # Try sorting and uniquifying the output.
6539 if sort "$nlist" | uniq > "$nlist"T; then
6540 mv -f "$nlist"T "$nlist"
6541 else
6542 rm -f "$nlist"T
6543 fi
d7040cdb 6544
7357c5b6
AM
6545 # Make sure that we snagged all the symbols we need.
6546 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6547 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6548 cat <<_LT_EOF > conftest.$ac_ext
6549#ifdef __cplusplus
6550extern "C" {
6551#endif
e5a52504 6552
7357c5b6
AM
6553_LT_EOF
6554 # Now generate the symbol file.
6555 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7148cc28 6556
7357c5b6 6557 cat <<_LT_EOF >> conftest.$ac_ext
d7040cdb 6558
7357c5b6
AM
6559/* The mapping between symbol names and symbols. */
6560const struct {
6561 const char *name;
6562 void *address;
6563}
6564lt__PROGRAM__LTX_preloaded_symbols[] =
6565{
6566 { "@PROGRAM@", (void *) 0 },
6567_LT_EOF
6568 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6569 cat <<\_LT_EOF >> conftest.$ac_ext
6570 {0, (void *) 0}
6571};
d7040cdb 6572
7357c5b6
AM
6573/* This works around a problem in FreeBSD linker */
6574#ifdef FREEBSD_WORKAROUND
6575static const void *lt_preloaded_setup() {
6576 return lt__PROGRAM__LTX_preloaded_symbols;
6577}
d7040cdb
SE
6578#endif
6579
7357c5b6 6580#ifdef __cplusplus
d7040cdb 6581}
7357c5b6
AM
6582#endif
6583_LT_EOF
6584 # Now try linking the two files.
6585 mv conftest.$ac_objext conftstm.$ac_objext
6586 lt_save_LIBS="$LIBS"
6587 lt_save_CFLAGS="$CFLAGS"
6588 LIBS="conftstm.$ac_objext"
6589 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d7040cdb
SE
6591 (eval $ac_link) 2>&5
6592 ac_status=$?
6593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357c5b6
AM
6594 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6595 pipe_works=yes
6596 fi
6597 LIBS="$lt_save_LIBS"
6598 CFLAGS="$lt_save_CFLAGS"
6599 else
6600 echo "cannot find nm_test_func in $nlist" >&5
6601 fi
6602 else
6603 echo "cannot find nm_test_var in $nlist" >&5
6604 fi
6605 else
6606 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6607 fi
6608 else
6609 echo "$progname: failed program was:" >&5
6610 cat conftest.$ac_ext >&5
6611 fi
6612 rm -f conftest* conftst*
6613
6614 # Do not use the global_symbol_pipe unless it works.
6615 if test "$pipe_works" = yes; then
6616 break
6617 else
6618 lt_cv_sys_global_symbol_pipe=
6619 fi
6620done
d7040cdb 6621
d7040cdb 6622fi
7357c5b6
AM
6623
6624if test -z "$lt_cv_sys_global_symbol_pipe"; then
6625 lt_cv_sys_global_symbol_to_cdecl=
d7040cdb 6626fi
7357c5b6
AM
6627if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6628 echo "$as_me:$LINENO: result: failed" >&5
6629echo "${ECHO_T}failed" >&6
6630else
6631 echo "$as_me:$LINENO: result: ok" >&5
6632echo "${ECHO_T}ok" >&6
d7040cdb 6633fi
20e95c23 6634
20e95c23
DJ
6635
6636
20e95c23
DJ
6637
6638
20e95c23 6639
20e95c23 6640
20e95c23 6641
20e95c23 6642
20e95c23 6643
20e95c23
DJ
6644
6645
7357c5b6
AM
6646
6647
6648
6649
6650
6651# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6652if test "${enable_libtool_lock+set}" = set; then
6653 enableval="$enable_libtool_lock"
6654
6655fi;
6656test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6657
6658# Some flags need to be propagated to the compiler or linker for good
6659# libtool support.
6660case $host in
6661ia64-*-hpux*)
6662 # Find out which ABI we are using.
6663 echo 'int i;' > conftest.$ac_ext
6664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6665 (eval $ac_compile) 2>&5
6666 ac_status=$?
6667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6668 (exit $ac_status); }; then
6669 case `/usr/bin/file conftest.$ac_objext` in
6670 *ELF-32*)
6671 HPUX_IA64_MODE="32"
6672 ;;
6673 *ELF-64*)
6674 HPUX_IA64_MODE="64"
6675 ;;
6676 esac
6677 fi
6678 rm -rf conftest*
6679 ;;
6680*-*-irix6*)
6681 # Find out which ABI we are using.
da594c4a 6682 echo '#line 6317 "configure"' > conftest.$ac_ext
7357c5b6
AM
6683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6684 (eval $ac_compile) 2>&5
6685 ac_status=$?
6686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687 (exit $ac_status); }; then
6688 if test "$lt_cv_prog_gnu_ld" = yes; then
6689 case `/usr/bin/file conftest.$ac_objext` in
6690 *32-bit*)
6691 LD="${LD-ld} -melf32bsmip"
6692 ;;
6693 *N32*)
6694 LD="${LD-ld} -melf32bmipn32"
6695 ;;
6696 *64-bit*)
6697 LD="${LD-ld} -melf64bmip"
6698 ;;
6699 esac
6700 else
6701 case `/usr/bin/file conftest.$ac_objext` in
6702 *32-bit*)
6703 LD="${LD-ld} -32"
6704 ;;
6705 *N32*)
6706 LD="${LD-ld} -n32"
6707 ;;
6708 *64-bit*)
6709 LD="${LD-ld} -64"
6710 ;;
6711 esac
6712 fi
6713 fi
6714 rm -rf conftest*
6715 ;;
6716
6717x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6718s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6719 # Find out which ABI we are using.
6720 echo 'int i;' > conftest.$ac_ext
6721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6722 (eval $ac_compile) 2>&5
6723 ac_status=$?
6724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6725 (exit $ac_status); }; then
6726 case `/usr/bin/file conftest.o` in
6727 *32-bit*)
6728 case $host in
6729 x86_64-*kfreebsd*-gnu)
6730 LD="${LD-ld} -m elf_i386_fbsd"
6731 ;;
6732 x86_64-*linux*)
6733 LD="${LD-ld} -m elf_i386"
6734 ;;
6735 ppc64-*linux*|powerpc64-*linux*)
6736 LD="${LD-ld} -m elf32ppclinux"
6737 ;;
6738 s390x-*linux*)
6739 LD="${LD-ld} -m elf_s390"
6740 ;;
6741 sparc64-*linux*)
6742 LD="${LD-ld} -m elf32_sparc"
6743 ;;
6744 esac
6745 ;;
6746 *64-bit*)
6747 case $host in
6748 x86_64-*kfreebsd*-gnu)
6749 LD="${LD-ld} -m elf_x86_64_fbsd"
6750 ;;
6751 x86_64-*linux*)
6752 LD="${LD-ld} -m elf_x86_64"
6753 ;;
6754 ppc*-*linux*|powerpc*-*linux*)
6755 LD="${LD-ld} -m elf64ppc"
6756 ;;
6757 s390*-*linux*|s390*-*tpf*)
6758 LD="${LD-ld} -m elf64_s390"
6759 ;;
6760 sparc*-*linux*)
6761 LD="${LD-ld} -m elf64_sparc"
6762 ;;
6763 esac
6764 ;;
6765 esac
6766 fi
6767 rm -rf conftest*
6768 ;;
6769
6770*-*-sco3.2v5*)
6771 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6772 SAVE_CFLAGS="$CFLAGS"
6773 CFLAGS="$CFLAGS -belf"
6774 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6775echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6776if test "${lt_cv_cc_needs_belf+set}" = set; then
d7040cdb
SE
6777 echo $ECHO_N "(cached) $ECHO_C" >&6
6778else
7357c5b6
AM
6779 ac_ext=c
6780ac_cpp='$CPP $CPPFLAGS'
6781ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6782ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6783ac_compiler_gnu=$ac_cv_c_compiler_gnu
6784
6785 cat >conftest.$ac_ext <<_ACEOF
d7040cdb
SE
6786/* confdefs.h. */
6787_ACEOF
6788cat confdefs.h >>conftest.$ac_ext
6789cat >>conftest.$ac_ext <<_ACEOF
6790/* end confdefs.h. */
20e95c23 6791
7357c5b6
AM
6792int
6793main ()
6794{
6795
6796 ;
6797 return 0;
6798}
d7040cdb 6799_ACEOF
7357c5b6
AM
6800rm -f conftest.$ac_objext conftest$ac_exeext
6801if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6802 (eval $ac_link) 2>conftest.er1
d7040cdb
SE
6803 ac_status=$?
6804 grep -v '^ *+' conftest.er1 >conftest.err
6805 rm -f conftest.er1
6806 cat conftest.err >&5
6807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808 (exit $ac_status); } &&
7357c5b6
AM
6809 { ac_try='test -z "$ac_c_werror_flag"
6810 || test ! -s conftest.err'
d7040cdb
SE
6811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6812 (eval $ac_try) 2>&5
6813 ac_status=$?
6814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6815 (exit $ac_status); }; } &&
7357c5b6 6816 { ac_try='test -s conftest$ac_exeext'
d7040cdb
SE
6817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6818 (eval $ac_try) 2>&5
6819 ac_status=$?
6820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821 (exit $ac_status); }; }; then
7357c5b6 6822 lt_cv_cc_needs_belf=yes
d15b04bd 6823else
d7040cdb
SE
6824 echo "$as_me: failed program was:" >&5
6825sed 's/^/| /' conftest.$ac_ext >&5
20e95c23 6826
7357c5b6 6827lt_cv_cc_needs_belf=no
d7040cdb 6828fi
7357c5b6
AM
6829rm -f conftest.err conftest.$ac_objext \
6830 conftest$ac_exeext conftest.$ac_ext
6831 ac_ext=c
6832ac_cpp='$CPP $CPPFLAGS'
6833ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6834ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6835ac_compiler_gnu=$ac_cv_c_compiler_gnu
20e95c23 6836
d7040cdb 6837fi
7357c5b6
AM
6838echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6839echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6840 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6841 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6842 CFLAGS="$SAVE_CFLAGS"
6843 fi
6844 ;;
6845sparc*-*solaris*)
6846 # Find out which ABI we are using.
6847 echo 'int i;' > conftest.$ac_ext
6848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6849 (eval $ac_compile) 2>&5
6850 ac_status=$?
6851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6852 (exit $ac_status); }; then
6853 case `/usr/bin/file conftest.o` in
6854 *64-bit*)
6855 case $lt_cv_prog_gnu_ld in
6856 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6857 *) LD="${LD-ld} -64" ;;
6858 esac
6859 ;;
6860 esac
6861 fi
6862 rm -rf conftest*
6863 ;;
6864esac
20e95c23 6865
7357c5b6 6866need_locks="$enable_libtool_lock"
20e95c23
DJ
6867
6868
d7040cdb
SE
6869for ac_header in dlfcn.h
6870do
6871as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6872echo "$as_me:$LINENO: checking for $ac_header" >&5
6873echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6874if eval "test \"\${$as_ac_Header+set}\" = set"; then
6875 echo $ECHO_N "(cached) $ECHO_C" >&6
6876else
6877 cat >conftest.$ac_ext <<_ACEOF
6878/* confdefs.h. */
6879_ACEOF
6880cat confdefs.h >>conftest.$ac_ext
6881cat >>conftest.$ac_ext <<_ACEOF
6882/* end confdefs.h. */
6883$ac_includes_default
42ecbf5e 6884
d7040cdb
SE
6885#include <$ac_header>
6886_ACEOF
6887rm -f conftest.$ac_objext
6888if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6889 (eval $ac_compile) 2>conftest.er1
6890 ac_status=$?
6891 grep -v '^ *+' conftest.er1 >conftest.err
6892 rm -f conftest.er1
6893 cat conftest.err >&5
6894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6895 (exit $ac_status); } &&
7357c5b6
AM
6896 { ac_try='test -z "$ac_c_werror_flag"
6897 || test ! -s conftest.err'
d7040cdb
SE
6898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6899 (eval $ac_try) 2>&5
6900 ac_status=$?
6901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902 (exit $ac_status); }; } &&
6903 { ac_try='test -s conftest.$ac_objext'
6904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6905 (eval $ac_try) 2>&5
6906 ac_status=$?
6907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908 (exit $ac_status); }; }; then
6909 eval "$as_ac_Header=yes"
20e95c23 6910else
d7040cdb
SE
6911 echo "$as_me: failed program was:" >&5
6912sed 's/^/| /' conftest.$ac_ext >&5
6913
6914eval "$as_ac_Header=no"
d15b04bd 6915fi
d7040cdb
SE
6916rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6917fi
6918echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6919echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6920if test `eval echo '${'$as_ac_Header'}'` = yes; then
6921 cat >>confdefs.h <<_ACEOF
6922#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6923_ACEOF
20e95c23 6924
d7040cdb
SE
6925fi
6926
6927done
6928
6929
6930
6931# This can be used to rebuild libtool when needed
6932LIBTOOL_DEPS="$ltmain"
6933
6934# Always use our own libtool.
6935LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961test -z "$LN_S" && LN_S="ln -s"
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976if test -n "${ZSH_VERSION+set}" ; then
6977 setopt NO_GLOB_SUBST
6978fi
6979
6980echo "$as_me:$LINENO: checking for objdir" >&5
6981echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6982if test "${lt_cv_objdir+set}" = set; then
20e95c23
DJ
6983 echo $ECHO_N "(cached) $ECHO_C" >&6
6984else
d7040cdb
SE
6985 rm -f .libs 2>/dev/null
6986mkdir .libs 2>/dev/null
6987if test -d .libs; then
6988 lt_cv_objdir=.libs
42ecbf5e 6989else
d7040cdb
SE
6990 # MS-DOS does not allow filenames that begin with a dot.
6991 lt_cv_objdir=_libs
6992fi
6993rmdir .libs 2>/dev/null
42ecbf5e 6994fi
d7040cdb
SE
6995echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6996echo "${ECHO_T}$lt_cv_objdir" >&6
6997objdir=$lt_cv_objdir
42ecbf5e 6998
d7040cdb
SE
6999
7000
7001
7002
7003cat >>confdefs.h <<_ACEOF
7004#define LT_OBJDIR "$lt_cv_objdir/"
7005_ACEOF
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023case $host_os in
7024aix3*)
7025 # AIX sometimes has problems with the GCC collect2 program. For some
7026 # reason, if we set the COLLECT_NAMES environment variable, the problems
7027 # vanish in a puff of smoke.
7028 if test "X${COLLECT_NAMES+set}" != Xset; then
7029 COLLECT_NAMES=
7030 export COLLECT_NAMES
7031 fi
7032 ;;
7033esac
7034
7035# Sed substitution that helps us do robust quoting. It backslashifies
7036# metacharacters that are still active within double-quoted strings.
7037sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7038
7039# Same as above, but do not quote variable references.
7040double_quote_subst='s/\(["`\\]\)/\\\1/g'
7041
7042# Sed substitution to delay expansion of an escaped shell variable in a
7043# double_quote_subst'ed string.
7044delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7045
7046# Sed substitution to delay expansion of an escaped single quote.
7047delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7048
7049# Sed substitution to avoid accidental globbing in evaled expressions
7050no_glob_subst='s/\*/\\\*/g'
7051
7052# Global variables:
7053ofile=libtool
7054can_build_shared=yes
7055
7056# All known linkers require a `.a' archive for static linking (except MSVC,
7057# which needs '.lib').
7058libext=a
7059
7060with_gnu_ld="$lt_cv_prog_gnu_ld"
7061
7062old_CC="$CC"
7063old_CFLAGS="$CFLAGS"
7064
7065# Set sane defaults for various variables
7066test -z "$CC" && CC=cc
7067test -z "$LTCC" && LTCC=$CC
7068test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7069test -z "$LD" && LD=ld
7070test -z "$ac_objext" && ac_objext=o
7071
7072for cc_temp in $compiler""; do
7073 case $cc_temp in
7074 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7075 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7076 \-*) ;;
7077 *) break;;
7078 esac
7079done
7080cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7081
7082
7083# Only perform the check for file, if the check method requires it
7084test -z "$MAGIC_CMD" && MAGIC_CMD=file
7085case $deplibs_check_method in
7086file_magic*)
7087 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7088 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7089echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7090if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
42ecbf5e
DJ
7091 echo $ECHO_N "(cached) $ECHO_C" >&6
7092else
d7040cdb
SE
7093 case $MAGIC_CMD in
7094[\\/*] | ?:[\\/]*)
7095 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
20e95c23 7096 ;;
d7040cdb
SE
7097*)
7098 lt_save_MAGIC_CMD="$MAGIC_CMD"
7099 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7100 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7101 for ac_dir in $ac_dummy; do
7102 IFS="$lt_save_ifs"
7103 test -z "$ac_dir" && ac_dir=.
7104 if test -f $ac_dir/${ac_tool_prefix}file; then
7105 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7106 if test -n "$file_magic_test_file"; then
7107 case $deplibs_check_method in
7108 "file_magic "*)
7109 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7110 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7111 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7112 $EGREP "$file_magic_regex" > /dev/null; then
7113 :
7114 else
7115 cat <<_LT_EOF 1>&2
42ecbf5e 7116
d7040cdb
SE
7117*** Warning: the command libtool uses to detect shared libraries,
7118*** $file_magic_cmd, produces output that libtool cannot recognize.
7119*** The result is that libtool may fail to recognize shared libraries
7120*** as such. This will affect the creation of libtool libraries that
7121*** depend on shared libraries, but programs linked with such libtool
7122*** libraries will work regardless of this problem. Nevertheless, you
7123*** may want to report the problem to your system manager and/or to
7124*** bug-libtool@gnu.org
7125
7126_LT_EOF
7127 fi ;;
7128 esac
7129 fi
7130 break
7131 fi
7132 done
7133 IFS="$lt_save_ifs"
7134 MAGIC_CMD="$lt_save_MAGIC_CMD"
20e95c23
DJ
7135 ;;
7136esac
42ecbf5e 7137fi
20e95c23 7138
d7040cdb
SE
7139MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7140if test -n "$MAGIC_CMD"; then
7141 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7142echo "${ECHO_T}$MAGIC_CMD" >&6
42ecbf5e
DJ
7143else
7144 echo "$as_me:$LINENO: result: no" >&5
7145echo "${ECHO_T}no" >&6
7146fi
7147
20e95c23
DJ
7148
7149
42ecbf5e 7150
20e95c23 7151
d7040cdb
SE
7152if test -z "$lt_cv_path_MAGIC_CMD"; then
7153 if test -n "$ac_tool_prefix"; then
7154 echo "$as_me:$LINENO: checking for file" >&5
7155echo $ECHO_N "checking for file... $ECHO_C" >&6
7156if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
42ecbf5e
DJ
7157 echo $ECHO_N "(cached) $ECHO_C" >&6
7158else
d7040cdb
SE
7159 case $MAGIC_CMD in
7160[\\/*] | ?:[\\/]*)
7161 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7162 ;;
7163*)
7164 lt_save_MAGIC_CMD="$MAGIC_CMD"
7165 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7166 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7167 for ac_dir in $ac_dummy; do
7168 IFS="$lt_save_ifs"
7169 test -z "$ac_dir" && ac_dir=.
7170 if test -f $ac_dir/file; then
7171 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7172 if test -n "$file_magic_test_file"; then
7173 case $deplibs_check_method in
7174 "file_magic "*)
7175 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7176 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7177 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7178 $EGREP "$file_magic_regex" > /dev/null; then
7179 :
7180 else
7181 cat <<_LT_EOF 1>&2
7182
7183*** Warning: the command libtool uses to detect shared libraries,
7184*** $file_magic_cmd, produces output that libtool cannot recognize.
7185*** The result is that libtool may fail to recognize shared libraries
7186*** as such. This will affect the creation of libtool libraries that
7187*** depend on shared libraries, but programs linked with such libtool
7188*** libraries will work regardless of this problem. Nevertheless, you
7189*** may want to report the problem to your system manager and/or to
7190*** bug-libtool@gnu.org
7191
7192_LT_EOF
7193 fi ;;
7194 esac
7195 fi
7196 break
7197 fi
7198 done
7199 IFS="$lt_save_ifs"
7200 MAGIC_CMD="$lt_save_MAGIC_CMD"
7201 ;;
20e95c23
DJ
7202esac
7203fi
d7040cdb
SE
7204
7205MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7206if test -n "$MAGIC_CMD"; then
7207 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7208echo "${ECHO_T}$MAGIC_CMD" >&6
20e95c23
DJ
7209else
7210 echo "$as_me:$LINENO: result: no" >&5
7211echo "${ECHO_T}no" >&6
7212fi
7213
20e95c23 7214
42ecbf5e 7215 else
d7040cdb 7216 MAGIC_CMD=:
42ecbf5e 7217 fi
42ecbf5e 7218fi
42ecbf5e 7219
20e95c23 7220 fi
d7040cdb
SE
7221 ;;
7222esac
42ecbf5e 7223
d7040cdb 7224# Use C for the default configuration in the libtool script
42ecbf5e 7225
d7040cdb
SE
7226lt_save_CC="$CC"
7227ac_ext=c
7228ac_cpp='$CPP $CPPFLAGS'
7229ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7230ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7231ac_compiler_gnu=$ac_cv_c_compiler_gnu
42ecbf5e 7232
42ecbf5e 7233
d7040cdb
SE
7234# Source file extension for C test sources.
7235ac_ext=c
42ecbf5e 7236
d7040cdb
SE
7237# Object file extension for compiled C test sources.
7238objext=o
7239objext=$objext
42ecbf5e 7240
d7040cdb
SE
7241# Code to be used in simple compile tests
7242lt_simple_compile_test_code="int some_variable = 0;"
42ecbf5e 7243
d7040cdb
SE
7244# Code to be used in simple link tests
7245lt_simple_link_test_code='int main(){return(0);}'
42ecbf5e 7246
ac48eca1 7247
42ecbf5e 7248
42ecbf5e 7249
d5fbea21 7250
d5fbea21
DJ
7251
7252
d7040cdb
SE
7253# If no C compiler was specified, use CC.
7254LTCC=${LTCC-"$CC"}
20e95c23 7255
d7040cdb
SE
7256# If no C compiler flags were specified, use CFLAGS.
7257LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
42ecbf5e 7258
d7040cdb
SE
7259# Allow CC to be a program name with arguments.
7260compiler=$CC
252b5132 7261
d7040cdb
SE
7262# Save the default compiler, since it gets overwritten when the other
7263# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7264compiler_DEFAULT=$CC
42ecbf5e 7265
d7040cdb
SE
7266# save warnings/boilerplate of simple test code
7267ac_outfile=conftest.$ac_objext
7268echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7269eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7270_lt_compiler_boilerplate=`cat conftest.err`
7271$RM conftest*
252b5132 7272
d7040cdb
SE
7273ac_outfile=conftest.$ac_objext
7274echo "$lt_simple_link_test_code" >conftest.$ac_ext
7275eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7276_lt_linker_boilerplate=`cat conftest.err`
7277$RM conftest*
252b5132 7278
42ecbf5e 7279
d7040cdb
SE
7280## CAVEAT EMPTOR:
7281## There is no encapsulation within the following macros, do not change
7282## the running order or otherwise move them around unless you know exactly
7283## what you are doing...
7284if test -n "$compiler"; then
252b5132 7285
d7040cdb 7286lt_prog_compiler_no_builtin_flag=
252b5132 7287
d7040cdb
SE
7288if test "$GCC" = yes; then
7289 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
d15b04bd 7290
d7040cdb
SE
7291 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7292echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7293if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
20e95c23 7294 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7295else
d7040cdb
SE
7296 lt_cv_prog_compiler_rtti_exceptions=no
7297 ac_outfile=conftest.$ac_objext
7298 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7299 lt_compiler_flag="-fno-rtti -fno-exceptions"
7300 # Insert the option either (1) after the last *FLAGS variable, or
7301 # (2) before a word containing "conftest.", or (3) at the end.
7302 # Note that $ac_compile itself does not contain backslashes and begins
7303 # with a dollar sign (not a hyphen), so the echo should work correctly.
7304 # The option is referenced via a variable to avoid confusing sed.
7305 lt_compile=`echo "$ac_compile" | $SED \
7306 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7307 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7308 -e 's:$: $lt_compiler_flag:'`
da594c4a 7309 (eval echo "\"\$as_me:6944: $lt_compile\"" >&5)
d7040cdb
SE
7310 (eval "$lt_compile" 2>conftest.err)
7311 ac_status=$?
7312 cat conftest.err >&5
da594c4a 7313 echo "$as_me:6948: \$? = $ac_status" >&5
d7040cdb
SE
7314 if (exit $ac_status) && test -s "$ac_outfile"; then
7315 # The compiler can only warn and ignore the option if not recognized
7316 # So say no if there are warnings other than the usual output.
7317 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7318 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7319 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7320 lt_cv_prog_compiler_rtti_exceptions=yes
7321 fi
7322 fi
7323 $RM conftest*
42ecbf5e 7324
252b5132 7325fi
d7040cdb
SE
7326echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7327echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7328
7329if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7330 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
20e95c23 7331else
d7040cdb 7332 :
252b5132 7333fi
252b5132
RH
7334
7335fi
d7040cdb
SE
7336
7337
7338
7339
7340
7341
7342 lt_prog_compiler_wl=
7343lt_prog_compiler_pic=
7344lt_prog_compiler_static=
7345
7346echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7347echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7348
7349 if test "$GCC" = yes; then
7350 lt_prog_compiler_wl='-Wl,'
7351 lt_prog_compiler_static='-static'
7352
7353 case $host_os in
7354 aix*)
7355 # All AIX code is PIC.
7356 if test "$host_cpu" = ia64; then
7357 # AIX 5 now supports IA64 processor
7358 lt_prog_compiler_static='-Bstatic'
7359 fi
7360 ;;
7361
7362 amigaos*)
7363 if test "$host_cpu" = m68k; then
7364 # FIXME: we need at least 68020 code to build shared libraries, but
7365 # adding the `-m68020' flag to GCC prevents building anything better,
7366 # like `-m68040'.
7367 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7368 fi
7369 ;;
7370
7371 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7372 # PIC is the default for these OSes.
7373 ;;
7374
7375 mingw* | cygwin* | pw32* | os2*)
7376 # This hack is so that the source file can tell whether it is being
7377 # built for inclusion in a dll (and should export symbols for example).
7378 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7379 # (--disable-auto-import) libraries
7380 lt_prog_compiler_pic='-DDLL_EXPORT'
7381 ;;
7382
7383 darwin* | rhapsody*)
7384 # PIC is the default on this platform
7385 # Common symbols not allowed in MH_DYLIB files
7386 lt_prog_compiler_pic='-fno-common'
7387 ;;
7388
7389 hpux*)
7390 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7391 # not for PA HP-UX.
7392 case $host_cpu in
7393 hppa*64*|ia64*)
7394 # +Z the default
7395 ;;
7396 *)
7397 lt_prog_compiler_pic='-fPIC'
7398 ;;
7399 esac
7400 ;;
7401
7402 interix[3-9]*)
7403 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7404 # Instead, we relocate shared libraries at runtime.
7405 ;;
7406
7407 msdosdjgpp*)
7408 # Just because we use GCC doesn't mean we suddenly get shared libraries
7409 # on systems that don't support them.
7410 lt_prog_compiler_can_build_shared=no
7411 enable_shared=no
7412 ;;
7413
7414 *nto* | *qnx*)
7415 # QNX uses GNU C++, but need to define -shared option too, otherwise
7416 # it will coredump.
7417 lt_prog_compiler_pic='-fPIC -shared'
7418 ;;
7419
7420 sysv4*MP*)
7421 if test -d /usr/nec; then
7422 lt_prog_compiler_pic=-Kconform_pic
7423 fi
7424 ;;
7425
7426 *)
7427 lt_prog_compiler_pic='-fPIC'
7428 ;;
7429 esac
7430 else
7431 # PORTME Check for flag to pass linker flags through the system compiler.
7432 case $host_os in
7433 aix*)
7434 lt_prog_compiler_wl='-Wl,'
7435 if test "$host_cpu" = ia64; then
7436 # AIX 5 now supports IA64 processor
7437 lt_prog_compiler_static='-Bstatic'
7438 else
7439 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7440 fi
7441 ;;
7442 darwin*)
7443 # PIC is the default on this platform
7444 # Common symbols not allowed in MH_DYLIB files
7445 case $cc_basename in
7446 xlc*)
7447 lt_prog_compiler_pic='-qnocommon'
7448 lt_prog_compiler_wl='-Wl,'
7449 ;;
7450 esac
7451 ;;
7452
7453 mingw* | cygwin* | pw32* | os2*)
7454 # This hack is so that the source file can tell whether it is being
7455 # built for inclusion in a dll (and should export symbols for example).
7456 lt_prog_compiler_pic='-DDLL_EXPORT'
7457 ;;
7458
7459 hpux9* | hpux10* | hpux11*)
7460 lt_prog_compiler_wl='-Wl,'
7461 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7462 # not for PA HP-UX.
7463 case $host_cpu in
7464 hppa*64*|ia64*)
7465 # +Z the default
7466 ;;
7467 *)
7468 lt_prog_compiler_pic='+Z'
7469 ;;
7470 esac
7471 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7472 lt_prog_compiler_static='${wl}-a ${wl}archive'
7473 ;;
7474
7475 irix5* | irix6* | nonstopux*)
7476 lt_prog_compiler_wl='-Wl,'
7477 # PIC (with -KPIC) is the default.
7478 lt_prog_compiler_static='-non_shared'
7479 ;;
7480
7481 linux* | k*bsd*-gnu)
7482 case $cc_basename in
7483 icc* | ecc*)
7484 lt_prog_compiler_wl='-Wl,'
7485 lt_prog_compiler_pic='-KPIC'
7486 lt_prog_compiler_static='-static'
7487 ;;
7488 pgcc* | pgf77* | pgf90* | pgf95*)
7489 # Portland Group compilers (*not* the Pentium gcc compiler,
7490 # which looks to be a dead project)
7491 lt_prog_compiler_wl='-Wl,'
7492 lt_prog_compiler_pic='-fpic'
7493 lt_prog_compiler_static='-Bstatic'
7494 ;;
7495 ccc*)
7496 lt_prog_compiler_wl='-Wl,'
7497 # All Alpha code is PIC.
7498 lt_prog_compiler_static='-non_shared'
7499 ;;
7500 *)
7501 case `$CC -V 2>&1 | sed 5q` in
7502 *Sun\ C*)
7503 # Sun C 5.9
7504 lt_prog_compiler_pic='-KPIC'
7505 lt_prog_compiler_static='-Bstatic'
7506 lt_prog_compiler_wl='-Wl,'
7507 ;;
7508 *Sun\ F*)
7509 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7510 lt_prog_compiler_pic='-KPIC'
7511 lt_prog_compiler_static='-Bstatic'
7512 lt_prog_compiler_wl=''
7513 ;;
7514 esac
7515 ;;
7516 esac
7517 ;;
7518
7519 newsos6)
7520 lt_prog_compiler_pic='-KPIC'
7521 lt_prog_compiler_static='-Bstatic'
7522 ;;
7523
7524 *nto* | *qnx*)
7525 # QNX uses GNU C++, but need to define -shared option too, otherwise
7526 # it will coredump.
7527 lt_prog_compiler_pic='-fPIC -shared'
7528 ;;
7529
7530 osf3* | osf4* | osf5*)
7531 lt_prog_compiler_wl='-Wl,'
7532 # All OSF/1 code is PIC.
7533 lt_prog_compiler_static='-non_shared'
7534 ;;
7535
7536 rdos*)
7537 lt_prog_compiler_static='-non_shared'
7538 ;;
7539
7540 solaris*)
7541 lt_prog_compiler_pic='-KPIC'
7542 lt_prog_compiler_static='-Bstatic'
7543 case $cc_basename in
7544 f77* | f90* | f95*)
7545 lt_prog_compiler_wl='-Qoption ld ';;
7546 *)
7547 lt_prog_compiler_wl='-Wl,';;
7548 esac
7549 ;;
7550
7551 sunos4*)
7552 lt_prog_compiler_wl='-Qoption ld '
7553 lt_prog_compiler_pic='-PIC'
7554 lt_prog_compiler_static='-Bstatic'
7555 ;;
7556
7557 sysv4 | sysv4.2uw2* | sysv4.3*)
7558 lt_prog_compiler_wl='-Wl,'
7559 lt_prog_compiler_pic='-KPIC'
7560 lt_prog_compiler_static='-Bstatic'
7561 ;;
7562
7563 sysv4*MP*)
7564 if test -d /usr/nec ;then
7565 lt_prog_compiler_pic='-Kconform_pic'
7566 lt_prog_compiler_static='-Bstatic'
7567 fi
7568 ;;
7569
7570 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7571 lt_prog_compiler_wl='-Wl,'
7572 lt_prog_compiler_pic='-KPIC'
7573 lt_prog_compiler_static='-Bstatic'
7574 ;;
7575
7576 unicos*)
7577 lt_prog_compiler_wl='-Wl,'
7578 lt_prog_compiler_can_build_shared=no
7579 ;;
7580
7581 uts4*)
7582 lt_prog_compiler_pic='-pic'
7583 lt_prog_compiler_static='-Bstatic'
7584 ;;
7585
7586 *)
7587 lt_prog_compiler_can_build_shared=no
7588 ;;
7589 esac
7590 fi
7591
7592case $host_os in
7593 # For platforms which do not support PIC, -DPIC is meaningless:
7594 *djgpp*)
7595 lt_prog_compiler_pic=
7596 ;;
7597 *)
7598 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7599 ;;
7600esac
7601echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7602echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7603
7604
7605
7606
7607
7608
7609#
7610# Check to make sure the PIC flag actually works.
7611#
7612if test -n "$lt_prog_compiler_pic"; then
7613 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7614echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7615if test "${lt_prog_compiler_pic_works+set}" = set; then
42ecbf5e
DJ
7616 echo $ECHO_N "(cached) $ECHO_C" >&6
7617else
d7040cdb
SE
7618 lt_prog_compiler_pic_works=no
7619 ac_outfile=conftest.$ac_objext
7620 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7621 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7622 # Insert the option either (1) after the last *FLAGS variable, or
7623 # (2) before a word containing "conftest.", or (3) at the end.
7624 # Note that $ac_compile itself does not contain backslashes and begins
7625 # with a dollar sign (not a hyphen), so the echo should work correctly.
7626 # The option is referenced via a variable to avoid confusing sed.
7627 lt_compile=`echo "$ac_compile" | $SED \
7628 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7629 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7630 -e 's:$: $lt_compiler_flag:'`
da594c4a 7631 (eval echo "\"\$as_me:7266: $lt_compile\"" >&5)
d7040cdb
SE
7632 (eval "$lt_compile" 2>conftest.err)
7633 ac_status=$?
7634 cat conftest.err >&5
da594c4a 7635 echo "$as_me:7270: \$? = $ac_status" >&5
d7040cdb
SE
7636 if (exit $ac_status) && test -s "$ac_outfile"; then
7637 # The compiler can only warn and ignore the option if not recognized
7638 # So say no if there are warnings other than the usual output.
7639 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7640 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7641 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7642 lt_prog_compiler_pic_works=yes
7643 fi
7644 fi
7645 $RM conftest*
42ecbf5e 7646
252b5132 7647fi
d7040cdb
SE
7648echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7649echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7650
7651if test x"$lt_prog_compiler_pic_works" = xyes; then
7652 case $lt_prog_compiler_pic in
7653 "" | " "*) ;;
7654 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7655 esac
252b5132 7656else
d7040cdb
SE
7657 lt_prog_compiler_pic=
7658 lt_prog_compiler_can_build_shared=no
252b5132 7659fi
252b5132
RH
7660
7661fi
42ecbf5e 7662
d7040cdb
SE
7663
7664
7665
7666
7667
7668#
7669# Check to make sure the static flag actually works.
7670#
7671wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7672echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7673echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7674if test "${lt_prog_compiler_static_works+set}" = set; then
20e95c23 7675 echo $ECHO_N "(cached) $ECHO_C" >&6
42ecbf5e 7676else
d7040cdb
SE
7677 lt_prog_compiler_static_works=no
7678 save_LDFLAGS="$LDFLAGS"
7679 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7680 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7681 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7682 # The linker can only warn and ignore the option if not recognized
7683 # So say no if there are warnings
7684 if test -s conftest.err; then
7685 # Append any errors to the config.log.
7686 cat conftest.err 1>&5
7687 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7688 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7689 if diff conftest.exp conftest.er2 >/dev/null; then
7690 lt_prog_compiler_static_works=yes
7691 fi
7692 else
7693 lt_prog_compiler_static_works=yes
7694 fi
7695 fi
7696 $RM conftest*
7697 LDFLAGS="$save_LDFLAGS"
42ecbf5e 7698
42ecbf5e 7699fi
d7040cdb
SE
7700echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7701echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7702
7703if test x"$lt_prog_compiler_static_works" = xyes; then
7704 :
7705else
7706 lt_prog_compiler_static=
42ecbf5e 7707fi
42ecbf5e 7708
252b5132 7709
252b5132 7710
42ecbf5e 7711
252b5132 7712
20e95c23 7713
d7040cdb
SE
7714
7715 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7716echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7717if test "${lt_cv_prog_compiler_c_o+set}" = set; then
42ecbf5e 7718 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7719else
d7040cdb
SE
7720 lt_cv_prog_compiler_c_o=no
7721 $RM -r conftest 2>/dev/null
7722 mkdir conftest
7723 cd conftest
7724 mkdir out
7725 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7726
7727 lt_compiler_flag="-o out/conftest2.$ac_objext"
7728 # Insert the option either (1) after the last *FLAGS variable, or
7729 # (2) before a word containing "conftest.", or (3) at the end.
7730 # Note that $ac_compile itself does not contain backslashes and begins
7731 # with a dollar sign (not a hyphen), so the echo should work correctly.
7732 lt_compile=`echo "$ac_compile" | $SED \
7733 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7734 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7735 -e 's:$: $lt_compiler_flag:'`
da594c4a 7736 (eval echo "\"\$as_me:7371: $lt_compile\"" >&5)
d7040cdb
SE
7737 (eval "$lt_compile" 2>out/conftest.err)
7738 ac_status=$?
7739 cat out/conftest.err >&5
da594c4a 7740 echo "$as_me:7375: \$? = $ac_status" >&5
d7040cdb
SE
7741 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7742 then
7743 # The compiler can only warn and ignore the option if not recognized
7744 # So say no if there are warnings
7745 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7746 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7747 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7748 lt_cv_prog_compiler_c_o=yes
7749 fi
7750 fi
7751 chmod u+w . 2>&5
7752 $RM conftest*
7753 # SGI C++ compiler will create directory out/ii_files/ for
7754 # template instantiation
7755 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7756 $RM out/* && rmdir out
7757 cd ..
7758 $RM -r conftest
7759 $RM conftest*
7760
252b5132 7761fi
d7040cdb
SE
7762echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7763echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
42ecbf5e 7764
20e95c23 7765
20e95c23
DJ
7766
7767
d7040cdb
SE
7768
7769
7770 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7771echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7772if test "${lt_cv_prog_compiler_c_o+set}" = set; then
42ecbf5e
DJ
7773 echo $ECHO_N "(cached) $ECHO_C" >&6
7774else
d7040cdb
SE
7775 lt_cv_prog_compiler_c_o=no
7776 $RM -r conftest 2>/dev/null
7777 mkdir conftest
7778 cd conftest
7779 mkdir out
7780 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7781
7782 lt_compiler_flag="-o out/conftest2.$ac_objext"
7783 # Insert the option either (1) after the last *FLAGS variable, or
7784 # (2) before a word containing "conftest.", or (3) at the end.
7785 # Note that $ac_compile itself does not contain backslashes and begins
7786 # with a dollar sign (not a hyphen), so the echo should work correctly.
7787 lt_compile=`echo "$ac_compile" | $SED \
7788 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7789 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7790 -e 's:$: $lt_compiler_flag:'`
da594c4a 7791 (eval echo "\"\$as_me:7426: $lt_compile\"" >&5)
d7040cdb
SE
7792 (eval "$lt_compile" 2>out/conftest.err)
7793 ac_status=$?
7794 cat out/conftest.err >&5
da594c4a 7795 echo "$as_me:7430: \$? = $ac_status" >&5
d7040cdb
SE
7796 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7797 then
7798 # The compiler can only warn and ignore the option if not recognized
7799 # So say no if there are warnings
7800 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7801 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7802 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7803 lt_cv_prog_compiler_c_o=yes
7804 fi
7805 fi
7806 chmod u+w . 2>&5
7807 $RM conftest*
7808 # SGI C++ compiler will create directory out/ii_files/ for
7809 # template instantiation
7810 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7811 $RM out/* && rmdir out
7812 cd ..
7813 $RM -r conftest
7814 $RM conftest*
7815
7816fi
7817echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7818echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7819
7820
7821
7822
7823hard_links="nottested"
7824if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7825 # do not overwrite the value of need_locks provided by the user
7826 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7827echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7828 hard_links=yes
7829 $RM conftest*
7830 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7831 touch conftest.a
7832 ln conftest.a conftest.b 2>&5 || hard_links=no
7833 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7834 echo "$as_me:$LINENO: result: $hard_links" >&5
7835echo "${ECHO_T}$hard_links" >&6
7836 if test "$hard_links" = no; then
7837 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7838echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7839 need_locks=warn
7840 fi
7841else
7842 need_locks=no
7843fi
7844
7845
7846
7847
7848
7849
7850 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7851echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7852
7853 runpath_var=
7854 allow_undefined_flag=
7855 always_export_symbols=no
7856 archive_cmds=
7857 archive_expsym_cmds=
7858 compiler_needs_object=no
7859 enable_shared_with_static_runtimes=no
7860 export_dynamic_flag_spec=
7861 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7862 hardcode_automatic=no
7863 hardcode_direct=no
7864 hardcode_direct_absolute=no
7865 hardcode_libdir_flag_spec=
7866 hardcode_libdir_flag_spec_ld=
7867 hardcode_libdir_separator=
7868 hardcode_minus_L=no
7869 hardcode_shlibpath_var=unsupported
7870 inherit_rpath=no
7871 link_all_deplibs=unknown
7872 module_cmds=
7873 module_expsym_cmds=
7874 old_archive_from_new_cmds=
7875 old_archive_from_expsyms_cmds=
7876 thread_safe_flag_spec=
7877 whole_archive_flag_spec=
7878 # include_expsyms should be a list of space-separated symbols to be *always*
7879 # included in the symbol list
7880 include_expsyms=
7881 # exclude_expsyms can be an extended regexp of symbols to exclude
7882 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7883 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7884 # as well as any symbol that contains `d'.
7885 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7886 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7887 # platforms (ab)use it in PIC code, but their linkers get confused if
7888 # the symbol is explicitly referenced. Since portable code cannot
7889 # rely on this symbol name, it's probably fine to never include it in
7890 # preloaded symbol tables.
7891 extract_expsyms_cmds=
7892
7893 case $host_os in
7894 cygwin* | mingw* | pw32*)
7895 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7896 # When not using gcc, we currently assume that we are using
7897 # Microsoft Visual C++.
7898 if test "$GCC" != yes; then
7899 with_gnu_ld=no
7900 fi
7901 ;;
7902 interix*)
7903 # we just hope/assume this is gcc and not c89 (= MSVC++)
7904 with_gnu_ld=yes
7905 ;;
7906 openbsd*)
7907 with_gnu_ld=no
7908 ;;
7909 esac
7910
7911 ld_shlibs=yes
7912 if test "$with_gnu_ld" = yes; then
7913 # If archive_cmds runs LD, not CC, wlarc should be empty
7914 wlarc='${wl}'
7915
7916 # Set some defaults for GNU ld with shared library support. These
7917 # are reset later if shared libraries are not supported. Putting them
7918 # here allows them to be overridden if necessary.
7919 runpath_var=LD_RUN_PATH
7920 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7921 export_dynamic_flag_spec='${wl}--export-dynamic'
7922 # ancient GNU ld didn't support --whole-archive et. al.
7923 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7924 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7925 else
7926 whole_archive_flag_spec=
7927 fi
7928 supports_anon_versioning=no
7929 case `$LD -v 2>&1` in
7930 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7931 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7932 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7933 *\ 2.11.*) ;; # other 2.11 versions
7934 *) supports_anon_versioning=yes ;;
7935 esac
7936
7937 # See if GNU ld supports shared libraries.
7938 case $host_os in
50e7d84b 7939 aix[3-9]*)
d7040cdb
SE
7940 # On AIX/PPC, the GNU linker is very broken
7941 if test "$host_cpu" != ia64; then
7942 ld_shlibs=no
7943 cat <<_LT_EOF 1>&2
7944
7945*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7946*** to be unable to reliably create shared libraries on AIX.
7947*** Therefore, libtool is disabling shared libraries support. If you
7948*** really care for shared libraries, you may want to modify your PATH
7949*** so that a non-GNU linker is found, and then restart.
7950
7951_LT_EOF
7952 fi
7953 ;;
7954
7955 amigaos*)
7956 if test "$host_cpu" = m68k; then
7957 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)'
7958 hardcode_libdir_flag_spec='-L$libdir'
7959 hardcode_minus_L=yes
7960 fi
7961
7962 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7963 # that the semantics of dynamic libraries on AmigaOS, at least up
7964 # to version 4, is to share data among multiple programs linked
7965 # with the same dynamic library. Since this doesn't match the
7966 # behavior of shared libraries on other platforms, we can't use
7967 # them.
7968 ld_shlibs=no
7969 ;;
7970
7971 beos*)
7972 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7973 allow_undefined_flag=unsupported
7974 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7975 # support --undefined. This deserves some investigation. FIXME
7976 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7977 else
7978 ld_shlibs=no
7979 fi
7980 ;;
7981
7982 cygwin* | mingw* | pw32*)
7983 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7984 # as there is no search path for DLLs.
7985 hardcode_libdir_flag_spec='-L$libdir'
7986 allow_undefined_flag=unsupported
7987 always_export_symbols=no
7988 enable_shared_with_static_runtimes=yes
7989 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7990
7991 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7992 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7993 # If the export-symbols file already is a .def file (1st line
7994 # is EXPORTS), use it as is; otherwise, prepend...
7995 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7996 cp $export_symbols $output_objdir/$soname.def;
7997 else
7998 echo EXPORTS > $output_objdir/$soname.def;
7999 cat $export_symbols >> $output_objdir/$soname.def;
8000 fi~
8001 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8002 else
8003 ld_shlibs=no
8004 fi
8005 ;;
8006
8007 interix[3-9]*)
8008 hardcode_direct=no
8009 hardcode_shlibpath_var=no
8010 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8011 export_dynamic_flag_spec='${wl}-E'
8012 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8013 # Instead, shared libraries are loaded at an image base (0x10000000 by
8014 # default) and relocated if they conflict, which is a slow very memory
8015 # consuming and fragmenting process. To avoid this, we pick a random,
8016 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8017 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8018 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8019 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'
8020 ;;
8021
8022 gnu* | linux* | tpf* | k*bsd*-gnu)
8023 tmp_diet=no
8024 if test "$host_os" = linux-dietlibc; then
8025 case $cc_basename in
8026 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8027 esac
8028 fi
8029 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8030 && test "$tmp_diet" = no
8031 then
8032 tmp_addflag=
8033 case $cc_basename,$host_cpu in
8034 pgcc*) # Portland Group C compiler
8035 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'
8036 tmp_addflag=' $pic_flag'
8037 ;;
8038 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8039 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'
8040 tmp_addflag=' $pic_flag -Mnomain' ;;
8041 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8042 tmp_addflag=' -i_dynamic' ;;
8043 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8044 tmp_addflag=' -i_dynamic -nofor_main' ;;
8045 ifc* | ifort*) # Intel Fortran compiler
8046 tmp_addflag=' -nofor_main' ;;
8047 esac
8048 case `$CC -V 2>&1 | sed 5q` in
8049 *Sun\ C*) # Sun C 5.9
8050 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'
8051 compiler_needs_object=yes
8052 tmp_sharedflag='-G' ;;
8053 *Sun\ F*) # Sun Fortran 8.3
8054 tmp_sharedflag='-G' ;;
8055 *)
8056 tmp_sharedflag='-shared' ;;
8057 esac
8058 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8059
8060 if test "x$supports_anon_versioning" = xyes; then
8061 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8062 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8063 echo "local: *; };" >> $output_objdir/$libname.ver~
8064 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8065 fi
8066 else
8067 ld_shlibs=no
8068 fi
8069 ;;
8070
8071 netbsd*)
8072 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8073 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8074 wlarc=
8075 else
8076 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8077 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8078 fi
8079 ;;
8080
8081 solaris*)
8082 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8083 ld_shlibs=no
8084 cat <<_LT_EOF 1>&2
8085
8086*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8087*** create shared libraries on Solaris systems. Therefore, libtool
8088*** is disabling shared libraries support. We urge you to upgrade GNU
8089*** binutils to release 2.9.1 or newer. Another option is to modify
8090*** your PATH or compiler configuration so that the native linker is
8091*** used, and then restart.
8092
8093_LT_EOF
8094 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8095 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8096 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8097 else
8098 ld_shlibs=no
8099 fi
8100 ;;
8101
8102 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8103 case `$LD -v 2>&1` in
8104 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8105 ld_shlibs=no
8106 cat <<_LT_EOF 1>&2
8107
8108*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8109*** reliably create shared libraries on SCO systems. Therefore, libtool
8110*** is disabling shared libraries support. We urge you to upgrade GNU
8111*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8112*** your PATH or compiler configuration so that the native linker is
8113*** used, and then restart.
8114
8115_LT_EOF
8116 ;;
8117 *)
8118 # For security reasons, it is highly recommended that you always
8119 # use absolute paths for naming shared libraries, and exclude the
8120 # DT_RUNPATH tag from executables and libraries. But doing so
8121 # requires that you compile everything twice, which is a pain.
8122 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8123 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8124 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8125 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8126 else
8127 ld_shlibs=no
8128 fi
8129 ;;
8130 esac
8131 ;;
8132
8133 sunos4*)
8134 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8135 wlarc=
8136 hardcode_direct=yes
8137 hardcode_shlibpath_var=no
8138 ;;
8139
8140 *)
8141 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8142 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8143 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8144 else
8145 ld_shlibs=no
8146 fi
8147 ;;
8148 esac
8149
8150 if test "$ld_shlibs" = no; then
8151 runpath_var=
8152 hardcode_libdir_flag_spec=
8153 export_dynamic_flag_spec=
8154 whole_archive_flag_spec=
8155 fi
8156 else
8157 # PORTME fill in a description of your system's linker (not GNU ld)
8158 case $host_os in
8159 aix3*)
8160 allow_undefined_flag=unsupported
8161 always_export_symbols=yes
8162 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'
8163 # Note: this linker hardcodes the directories in LIBPATH if there
8164 # are no directories specified by -L.
8165 hardcode_minus_L=yes
8166 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8167 # Neither direct hardcoding nor static linking is supported with a
8168 # broken collect2.
8169 hardcode_direct=unsupported
8170 fi
8171 ;;
8172
50e7d84b 8173 aix[4-9]*)
d7040cdb
SE
8174 if test "$host_cpu" = ia64; then
8175 # On IA64, the linker does run time linking by default, so we don't
8176 # have to do anything special.
8177 aix_use_runtimelinking=no
8178 exp_sym_flag='-Bexport'
8179 no_entry_flag=""
8180 else
8181 # If we're using GNU nm, then we don't want the "-C" option.
8182 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8183 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8184 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'
8185 else
8186 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'
8187 fi
8188 aix_use_runtimelinking=no
8189
8190 # Test if we are trying to use run time linking or normal
8191 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8192 # need to do runtime linking.
50e7d84b 8193 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
d7040cdb
SE
8194 for ld_flag in $LDFLAGS; do
8195 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8196 aix_use_runtimelinking=yes
8197 break
8198 fi
8199 done
8200 ;;
8201 esac
8202
8203 exp_sym_flag='-bexport'
8204 no_entry_flag='-bnoentry'
8205 fi
8206
8207 # When large executables or shared objects are built, AIX ld can
8208 # have problems creating the table of contents. If linking a library
8209 # or program results in "error TOC overflow" add -mminimal-toc to
8210 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8211 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8212
8213 archive_cmds=''
8214 hardcode_direct=yes
8215 hardcode_direct_absolute=yes
8216 hardcode_libdir_separator=':'
8217 link_all_deplibs=yes
8218 file_list_spec='${wl}-f,'
8219
8220 if test "$GCC" = yes; then
8221 case $host_os in aix4.[012]|aix4.[012].*)
8222 # We only want to do this on AIX 4.2 and lower, the check
8223 # below for broken collect2 doesn't work under 4.3+
8224 collect2name=`${CC} -print-prog-name=collect2`
8225 if test -f "$collect2name" &&
8226 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8227 then
8228 # We have reworked collect2
8229 :
8230 else
8231 # We have old collect2
8232 hardcode_direct=unsupported
8233 # It fails to find uninstalled libraries when the uninstalled
8234 # path is not listed in the libpath. Setting hardcode_minus_L
8235 # to unsupported forces relinking
8236 hardcode_minus_L=yes
8237 hardcode_libdir_flag_spec='-L$libdir'
8238 hardcode_libdir_separator=
8239 fi
8240 ;;
8241 esac
8242 shared_flag='-shared'
8243 if test "$aix_use_runtimelinking" = yes; then
8244 shared_flag="$shared_flag "'${wl}-G'
8245 fi
8246 else
8247 # not using gcc
8248 if test "$host_cpu" = ia64; then
8249 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8250 # chokes on -Wl,-G. The following line is correct:
8251 shared_flag='-G'
8252 else
8253 if test "$aix_use_runtimelinking" = yes; then
8254 shared_flag='${wl}-G'
8255 else
8256 shared_flag='${wl}-bM:SRE'
8257 fi
8258 fi
8259 fi
8260
8261 # It seems that -bexpall does not export symbols beginning with
8262 # underscore (_), so it is better to generate a list of symbols to export.
8263 always_export_symbols=yes
8264 if test "$aix_use_runtimelinking" = yes; then
8265 # Warning - without using the other runtime loading flags (-brtl),
8266 # -berok will link without error, but may produce a broken library.
8267 allow_undefined_flag='-berok'
8268 # Determine the default libpath from the value encoded in an
8269 # empty executable.
8270 cat >conftest.$ac_ext <<_ACEOF
42ecbf5e
DJ
8271/* confdefs.h. */
8272_ACEOF
8273cat confdefs.h >>conftest.$ac_ext
8274cat >>conftest.$ac_ext <<_ACEOF
8275/* end confdefs.h. */
d7040cdb
SE
8276
8277int
8278main ()
8279{
8280
8281 ;
8282 return 0;
8283}
42ecbf5e 8284_ACEOF
d7040cdb
SE
8285rm -f conftest.$ac_objext conftest$ac_exeext
8286if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8287 (eval $ac_link) 2>conftest.er1
42ecbf5e
DJ
8288 ac_status=$?
8289 grep -v '^ *+' conftest.er1 >conftest.err
8290 rm -f conftest.er1
8291 cat conftest.err >&5
8292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb 8293 (exit $ac_status); } &&
7357c5b6
AM
8294 { ac_try='test -z "$ac_c_werror_flag"
8295 || test ! -s conftest.err'
d7040cdb
SE
8296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8297 (eval $ac_try) 2>&5
8298 ac_status=$?
8299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300 (exit $ac_status); }; } &&
8301 { ac_try='test -s conftest$ac_exeext'
8302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8303 (eval $ac_try) 2>&5
8304 ac_status=$?
8305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306 (exit $ac_status); }; }; then
8307
8308lt_aix_libpath_sed='
8309 /Import File Strings/,/^$/ {
8310 /^0/ {
8311 s/^0 *\(.*\)$/\1/
8312 p
8313 }
8314 }'
8315aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8316# Check for a 64-bit object if we didn't find anything.
8317if test -z "$aix_libpath"; then
8318 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
252b5132 8319fi
252b5132 8320else
20e95c23
DJ
8321 echo "$as_me: failed program was:" >&5
8322sed 's/^/| /' conftest.$ac_ext >&5
8323
252b5132 8324fi
d7040cdb
SE
8325rm -f conftest.err conftest.$ac_objext \
8326 conftest$ac_exeext conftest.$ac_ext
8327if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
252b5132 8328
d7040cdb
SE
8329 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8330 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"
8331 else
8332 if test "$host_cpu" = ia64; then
8333 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8334 allow_undefined_flag="-z nodefs"
8335 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"
8336 else
8337 # Determine the default libpath from the value encoded in an
8338 # empty executable.
8339 cat >conftest.$ac_ext <<_ACEOF
42ecbf5e
DJ
8340/* confdefs.h. */
8341_ACEOF
8342cat confdefs.h >>conftest.$ac_ext
8343cat >>conftest.$ac_ext <<_ACEOF
8344/* end confdefs.h. */
d7040cdb
SE
8345
8346int
8347main ()
8348{
8349
8350 ;
8351 return 0;
8352}
42ecbf5e 8353_ACEOF
d7040cdb
SE
8354rm -f conftest.$ac_objext conftest$ac_exeext
8355if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8356 (eval $ac_link) 2>conftest.er1
42ecbf5e
DJ
8357 ac_status=$?
8358 grep -v '^ *+' conftest.er1 >conftest.err
8359 rm -f conftest.er1
8360 cat conftest.err >&5
8361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb 8362 (exit $ac_status); } &&
7357c5b6
AM
8363 { ac_try='test -z "$ac_c_werror_flag"
8364 || test ! -s conftest.err'
d7040cdb
SE
8365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8366 (eval $ac_try) 2>&5
8367 ac_status=$?
8368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369 (exit $ac_status); }; } &&
8370 { ac_try='test -s conftest$ac_exeext'
8371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8372 (eval $ac_try) 2>&5
8373 ac_status=$?
8374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375 (exit $ac_status); }; }; then
8376
8377lt_aix_libpath_sed='
8378 /Import File Strings/,/^$/ {
8379 /^0/ {
8380 s/^0 *\(.*\)$/\1/
8381 p
8382 }
8383 }'
8384aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8385# Check for a 64-bit object if we didn't find anything.
8386if test -z "$aix_libpath"; then
8387 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20e95c23 8388fi
252b5132 8389else
42ecbf5e
DJ
8390 echo "$as_me: failed program was:" >&5
8391sed 's/^/| /' conftest.$ac_ext >&5
8392
252b5132 8393fi
d7040cdb
SE
8394rm -f conftest.err conftest.$ac_objext \
8395 conftest$ac_exeext conftest.$ac_ext
8396if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8397
8398 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8399 # Warning - without using the other run time loading flags,
8400 # -berok will link without error, but may produce a broken library.
8401 no_undefined_flag=' ${wl}-bernotok'
8402 allow_undefined_flag=' ${wl}-berok'
8403 # Exported symbols can be pulled into shared objects from archives
8404 whole_archive_flag_spec='$convenience'
8405 archive_cmds_need_lc=yes
8406 # This is similar to how AIX traditionally builds its shared libraries.
8407 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'
8408 fi
8409 fi
8410 ;;
42ecbf5e 8411
d7040cdb
SE
8412 amigaos*)
8413 if test "$host_cpu" = m68k; then
8414 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)'
8415 hardcode_libdir_flag_spec='-L$libdir'
8416 hardcode_minus_L=yes
8417 fi
8418 # see comment about different semantics on the GNU ld section
8419 ld_shlibs=no
8420 ;;
252b5132 8421
d7040cdb
SE
8422 bsdi[45]*)
8423 export_dynamic_flag_spec=-rdynamic
8424 ;;
252b5132 8425
d7040cdb
SE
8426 cygwin* | mingw* | pw32*)
8427 # When not using gcc, we currently assume that we are using
8428 # Microsoft Visual C++.
8429 # hardcode_libdir_flag_spec is actually meaningless, as there is
8430 # no search path for DLLs.
8431 hardcode_libdir_flag_spec=' '
8432 allow_undefined_flag=unsupported
8433 # Tell ltmain to make .lib files, not .a files.
8434 libext=lib
8435 # Tell ltmain to make .dll files, not .so files.
8436 shrext_cmds=".dll"
8437 # FIXME: Setting linknames here is a bad hack.
8438 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8439 # The linker will automatically build a .lib file if we build a DLL.
8440 old_archive_from_new_cmds='true'
8441 # FIXME: Should let the user specify the lib program.
8442 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8443 fix_srcfile_path='`cygpath -w "$srcfile"`'
8444 enable_shared_with_static_runtimes=yes
8445 ;;
252b5132 8446
d7040cdb
SE
8447 darwin* | rhapsody*)
8448 case $host_os in
8449 rhapsody* | darwin1.[012])
8450 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8451 ;;
8452 *) # Darwin 1.3 on
8453 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
8454 10.[012])
8455 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8456 ;;
8457 10.*)
8458 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8459 ;;
8460 esac
8461 ;;
8462 esac
8463 archive_cmds_need_lc=no
8464 hardcode_direct=no
8465 hardcode_automatic=yes
8466 hardcode_shlibpath_var=unsupported
8467 whole_archive_flag_spec=''
8468 link_all_deplibs=yes
8469 if test "$GCC" = yes ; then
8470 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8471 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8472else
d7040cdb
SE
8473 lt_cv_apple_cc_single_mod=no
8474 if test -z "${LT_MULTI_MODULE}"; then
8475 # By default we will add the -single_module flag. You can override
8476 # by either setting the environment variable LT_MULTI_MODULE
8477 # non-empty at configure time, or by adding -multi-module to the
8478 # link flags.
8479 echo "int foo(void){return 1;}" > conftest.c
8480 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8481 -dynamiclib ${wl}-single_module conftest.c
8482 if test -f libconftest.dylib; then
8483 lt_cv_apple_cc_single_mod=yes
8484 rm libconftest.dylib
8485 fi
8486 rm conftest.$ac_ext
8487 fi
252b5132 8488fi
c46f8c51 8489
d7040cdb
SE
8490 output_verbose_link_cmd=echo
8491 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
8492 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8493 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}'
8494 else
8495 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8496 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}'
8497 fi
8498 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8499 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}'
8500 else
8501 case $cc_basename in
8502 xlc*)
8503 output_verbose_link_cmd=echo
8504 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
8505 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8506 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8507 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}'
8508 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}'
8509 ;;
8510 *)
8511 ld_shlibs=no
8512 ;;
8513 esac
8514 fi
8515 ;;
42ecbf5e 8516
d7040cdb
SE
8517 dgux*)
8518 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8519 hardcode_libdir_flag_spec='-L$libdir'
8520 hardcode_shlibpath_var=no
8521 ;;
252b5132 8522
d7040cdb
SE
8523 freebsd1*)
8524 ld_shlibs=no
8525 ;;
252b5132 8526
d7040cdb
SE
8527 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8528 # support. Future versions do this automatically, but an explicit c++rt0.o
8529 # does not break anything, and helps significantly (at the cost of a little
8530 # extra space).
8531 freebsd2.2*)
8532 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8533 hardcode_libdir_flag_spec='-R$libdir'
8534 hardcode_direct=yes
8535 hardcode_shlibpath_var=no
8536 ;;
252b5132 8537
d7040cdb
SE
8538 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8539 freebsd2*)
8540 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8541 hardcode_direct=yes
8542 hardcode_minus_L=yes
8543 hardcode_shlibpath_var=no
8544 ;;
42ecbf5e 8545
d7040cdb
SE
8546 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8547 freebsd* | dragonfly*)
8548 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8549 hardcode_libdir_flag_spec='-R$libdir'
8550 hardcode_direct=yes
8551 hardcode_shlibpath_var=no
8552 ;;
252b5132 8553
d7040cdb
SE
8554 hpux9*)
8555 if test "$GCC" = yes; then
8556 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'
8557 else
8558 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'
8559 fi
8560 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8561 hardcode_libdir_separator=:
8562 hardcode_direct=yes
8563
8564 # hardcode_minus_L: Not really in the search PATH,
8565 # but as the default location of the library.
8566 hardcode_minus_L=yes
8567 export_dynamic_flag_spec='${wl}-E'
8568 ;;
20e95c23 8569
d7040cdb
SE
8570 hpux10*)
8571 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8572 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8573 else
8574 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8575 fi
8576 if test "$with_gnu_ld" = no; then
8577 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8578 hardcode_libdir_flag_spec_ld='+b $libdir'
8579 hardcode_libdir_separator=:
8580 hardcode_direct=yes
8581 hardcode_direct_absolute=yes
8582 export_dynamic_flag_spec='${wl}-E'
8583 # hardcode_minus_L: Not really in the search PATH,
8584 # but as the default location of the library.
8585 hardcode_minus_L=yes
8586 fi
8587 ;;
20e95c23 8588
d7040cdb
SE
8589 hpux11*)
8590 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8591 case $host_cpu in
8592 hppa*64*)
8593 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8594 ;;
8595 ia64*)
8596 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8597 ;;
8598 *)
8599 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8600 ;;
8601 esac
8602 else
8603 case $host_cpu in
8604 hppa*64*)
8605 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8606 ;;
8607 ia64*)
8608 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8609 ;;
8610 *)
8611 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8612 ;;
8613 esac
8614 fi
8615 if test "$with_gnu_ld" = no; then
8616 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8617 hardcode_libdir_separator=:
8618
8619 case $host_cpu in
8620 hppa*64*|ia64*)
8621 hardcode_direct=no
8622 hardcode_shlibpath_var=no
8623 ;;
8624 *)
8625 hardcode_direct=yes
8626 hardcode_direct_absolute=yes
8627 export_dynamic_flag_spec='${wl}-E'
8628
8629 # hardcode_minus_L: Not really in the search PATH,
8630 # but as the default location of the library.
8631 hardcode_minus_L=yes
8632 ;;
8633 esac
8634 fi
8635 ;;
8636
8637 irix5* | irix6* | nonstopux*)
8638 if test "$GCC" = yes; then
8639 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'
8640 # Try to use the -exported_symbol ld option, if it does not
8641 # work, assume that -exports_file does not work either and
8642 # implicitly export all symbols.
8643 save_LDFLAGS="$LDFLAGS"
8644 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8645 cat >conftest.$ac_ext <<_ACEOF
8646int foo(void) {}
42ecbf5e 8647_ACEOF
d7040cdb
SE
8648rm -f conftest.$ac_objext conftest$ac_exeext
8649if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8650 (eval $ac_link) 2>conftest.er1
42ecbf5e
DJ
8651 ac_status=$?
8652 grep -v '^ *+' conftest.er1 >conftest.err
8653 rm -f conftest.er1
8654 cat conftest.err >&5
8655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8656 (exit $ac_status); } &&
7357c5b6
AM
8657 { ac_try='test -z "$ac_c_werror_flag"
8658 || test ! -s conftest.err'
42ecbf5e
DJ
8659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8660 (eval $ac_try) 2>&5
8661 ac_status=$?
8662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663 (exit $ac_status); }; } &&
d7040cdb 8664 { ac_try='test -s conftest$ac_exeext'
42ecbf5e
DJ
8665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8666 (eval $ac_try) 2>&5
8667 ac_status=$?
8668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669 (exit $ac_status); }; }; then
d7040cdb
SE
8670 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'
8671
42ecbf5e
DJ
8672else
8673 echo "$as_me: failed program was:" >&5
8674sed 's/^/| /' conftest.$ac_ext >&5
8675
42ecbf5e 8676fi
d7040cdb
SE
8677rm -f conftest.err conftest.$ac_objext \
8678 conftest$ac_exeext conftest.$ac_ext
8679 LDFLAGS="$save_LDFLAGS"
8680 else
8681 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'
8682 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'
8683 fi
8684 archive_cmds_need_lc='no'
8685 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8686 hardcode_libdir_separator=:
8687 inherit_rpath=yes
8688 link_all_deplibs=yes
8689 ;;
42ecbf5e 8690
d7040cdb
SE
8691 netbsd*)
8692 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8693 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8694 else
8695 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8696 fi
8697 hardcode_libdir_flag_spec='-R$libdir'
8698 hardcode_direct=yes
8699 hardcode_shlibpath_var=no
8700 ;;
42ecbf5e 8701
d7040cdb
SE
8702 newsos6)
8703 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8704 hardcode_direct=yes
8705 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8706 hardcode_libdir_separator=:
8707 hardcode_shlibpath_var=no
8708 ;;
42ecbf5e 8709
d7040cdb
SE
8710 *nto* | *qnx*)
8711 ;;
252b5132 8712
d7040cdb
SE
8713 openbsd*)
8714 hardcode_direct=yes
8715 hardcode_shlibpath_var=no
8716 hardcode_direct_absolute=yes
8717 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8718 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8719 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8720 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8721 export_dynamic_flag_spec='${wl}-E'
8722 else
8723 case $host_os in
8724 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8725 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8726 hardcode_libdir_flag_spec='-R$libdir'
8727 ;;
8728 *)
8729 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8730 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8731 ;;
8732 esac
8733 fi
8734 ;;
252b5132 8735
d7040cdb
SE
8736 os2*)
8737 hardcode_libdir_flag_spec='-L$libdir'
8738 hardcode_minus_L=yes
8739 allow_undefined_flag=unsupported
8740 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'
8741 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8742 ;;
2481e6a2 8743
d7040cdb
SE
8744 osf3*)
8745 if test "$GCC" = yes; then
8746 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8747 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'
8748 else
8749 allow_undefined_flag=' -expect_unresolved \*'
8750 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'
8751 fi
8752 archive_cmds_need_lc='no'
8753 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8754 hardcode_libdir_separator=:
8755 ;;
42ecbf5e 8756
d7040cdb
SE
8757 osf4* | osf5*) # as osf3* with the addition of -msym flag
8758 if test "$GCC" = yes; then
8759 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8760 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'
8761 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8762 else
8763 allow_undefined_flag=' -expect_unresolved \*'
8764 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'
8765 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~
8766 $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'
42ecbf5e 8767
d7040cdb
SE
8768 # Both c and cxx compiler support -rpath directly
8769 hardcode_libdir_flag_spec='-rpath $libdir'
8770 fi
8771 archive_cmds_need_lc='no'
8772 hardcode_libdir_separator=:
8773 ;;
8774
8775 solaris*)
8776 no_undefined_flag=' -z defs'
8777 if test "$GCC" = yes; then
8778 wlarc='${wl}'
8779 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8780 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8781 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8782 else
8783 case `$CC -V 2>&1` in
8784 *"Compilers 5.0"*)
8785 wlarc=''
8786 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8787 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8788 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8789 ;;
8790 *)
8791 wlarc='${wl}'
8792 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8793 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8794 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8795 ;;
8796 esac
8797 fi
8798 hardcode_libdir_flag_spec='-R$libdir'
8799 hardcode_shlibpath_var=no
8800 case $host_os in
8801 solaris2.[0-5] | solaris2.[0-5].*) ;;
8802 *)
8803 # The compiler driver will combine and reorder linker options,
8804 # but understands `-z linker_flag'. GCC discards it without `$wl',
8805 # but is careful enough not to reorder.
8806 # Supported since Solaris 2.6 (maybe 2.5.1?)
8807 if test "$GCC" = yes; then
8808 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8809 else
8810 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8811 fi
8812 ;;
8813 esac
8814 link_all_deplibs=yes
8815 ;;
8816
8817 sunos4*)
8818 if test "x$host_vendor" = xsequent; then
8819 # Use $CC to link under sequent, because it throws in some extra .o
8820 # files that make .init and .fini sections work.
8821 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8822 else
8823 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8824 fi
8825 hardcode_libdir_flag_spec='-L$libdir'
8826 hardcode_direct=yes
8827 hardcode_minus_L=yes
8828 hardcode_shlibpath_var=no
8829 ;;
8830
8831 sysv4)
8832 case $host_vendor in
8833 sni)
8834 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8835 hardcode_direct=yes # is this really true???
8836 ;;
8837 siemens)
8838 ## LD is ld it makes a PLAMLIB
8839 ## CC just makes a GrossModule.
8840 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8841 reload_cmds='$CC -r -o $output$reload_objs'
8842 hardcode_direct=no
8843 ;;
8844 motorola)
8845 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8846 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8847 ;;
8848 esac
8849 runpath_var='LD_RUN_PATH'
8850 hardcode_shlibpath_var=no
8851 ;;
8852
8853 sysv4.3*)
8854 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8855 hardcode_shlibpath_var=no
8856 export_dynamic_flag_spec='-Bexport'
8857 ;;
8858
8859 sysv4*MP*)
8860 if test -d /usr/nec; then
8861 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8862 hardcode_shlibpath_var=no
8863 runpath_var=LD_RUN_PATH
8864 hardcode_runpath_var=yes
8865 ld_shlibs=yes
8866 fi
8867 ;;
8868
8869 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8870 no_undefined_flag='${wl}-z,text'
8871 archive_cmds_need_lc=no
8872 hardcode_shlibpath_var=no
8873 runpath_var='LD_RUN_PATH'
8874
8875 if test "$GCC" = yes; then
8876 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8877 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8878 else
8879 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8880 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8881 fi
8882 ;;
8883
8884 sysv5* | sco3.2v5* | sco5v6*)
8885 # Note: We can NOT use -z defs as we might desire, because we do not
8886 # link with -lc, and that would cause any symbols used from libc to
8887 # always be unresolved, which means just about no library would
8888 # ever link correctly. If we're not using GNU ld we use -z text
8889 # though, which does catch some bad symbols but isn't as heavy-handed
8890 # as -z defs.
8891 no_undefined_flag='${wl}-z,text'
8892 allow_undefined_flag='${wl}-z,nodefs'
8893 archive_cmds_need_lc=no
8894 hardcode_shlibpath_var=no
8895 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8896 hardcode_libdir_separator=':'
8897 link_all_deplibs=yes
8898 export_dynamic_flag_spec='${wl}-Bexport'
8899 runpath_var='LD_RUN_PATH'
8900
8901 if test "$GCC" = yes; then
8902 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8903 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8904 else
8905 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8906 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8907 fi
8908 ;;
8909
8910 uts4*)
8911 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8912 hardcode_libdir_flag_spec='-L$libdir'
8913 hardcode_shlibpath_var=no
8914 ;;
8915
8916 *)
8917 ld_shlibs=no
8918 ;;
8919 esac
8920
8921 if test x$host_vendor = xsni; then
8922 case $host in
8923 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8924 export_dynamic_flag_spec='${wl}-Blargedynsym'
8925 ;;
8926 esac
8927 fi
8928 fi
8929
8930echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8931echo "${ECHO_T}$ld_shlibs" >&6
8932test "$ld_shlibs" = no && can_build_shared=no
8933
8934with_gnu_ld=$with_gnu_ld
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950#
8951# Do we need to explicitly link libc?
8952#
8953case "x$archive_cmds_need_lc" in
8954x|xyes)
8955 # Assume -lc should be added
8956 archive_cmds_need_lc=yes
8957
8958 if test "$enable_shared" = yes && test "$GCC" = yes; then
8959 case $archive_cmds in
8960 *'~'*)
8961 # FIXME: we may have to deal with multi-command sequences.
8962 ;;
8963 '$CC '*)
8964 # Test whether the compiler implicitly links with -lc since on some
8965 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8966 # to ld, don't add -lc before -lgcc.
8967 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8968echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8969 $RM conftest*
8970 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8971
8972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8973 (eval $ac_compile) 2>&5
20e95c23
DJ
8974 ac_status=$?
8975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
8976 (exit $ac_status); } 2>conftest.err; then
8977 soname=conftest
8978 lib=conftest
8979 libobjs=conftest.$ac_objext
8980 deplibs=
8981 wl=$lt_prog_compiler_wl
8982 pic_flag=$lt_prog_compiler_pic
8983 compiler_flags=-v
8984 linker_flags=-v
8985 verstring=
8986 output_objdir=.
8987 libname=conftest
8988 lt_save_allow_undefined_flag=$allow_undefined_flag
8989 allow_undefined_flag=
8990 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8991 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20e95c23
DJ
8992 ac_status=$?
8993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
8994 (exit $ac_status); }
8995 then
8996 archive_cmds_need_lc=no
8997 else
8998 archive_cmds_need_lc=yes
8999 fi
9000 allow_undefined_flag=$lt_save_allow_undefined_flag
9001 else
9002 cat conftest.err 1>&5
9003 fi
9004 $RM conftest*
9005 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9006echo "${ECHO_T}$archive_cmds_need_lc" >&6
9007 ;;
9008 esac
9009 fi
9010 ;;
9011esac
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9170echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9171withGCC=$GCC
9172if test "$withGCC" = yes; then
9173 case $host_os in
9174 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9175 *) lt_awk_arg="/^libraries:/" ;;
9176 esac
9177 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9178 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9179 # if the path contains ";" then we assume it to be the separator
9180 # otherwise default to the standard path separator (i.e. ":") - it is
9181 # assumed that no part of a normal pathname contains ";" but that should
9182 # okay in the real world where ";" in dirpaths is itself problematic.
9183 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9184 else
9185 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9186 fi
9187 # Ok, now we have the path, separated by spaces, we can step through it
9188 # and add multilib dir if necessary.
9189 lt_tmp_lt_search_path_spec=
9190 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9191 for lt_sys_path in $lt_search_path_spec; do
9192 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9193 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9194 else
9195 test -d "$lt_sys_path" && \
9196 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9197 fi
9198 done
9199 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9200BEGIN {RS=" "; FS="/|\n";} {
9201 lt_foo="";
9202 lt_count=0;
9203 for (lt_i = NF; lt_i > 0; lt_i--) {
9204 if ($lt_i != "" && $lt_i != ".") {
9205 if ($lt_i == "..") {
9206 lt_count++;
9207 } else {
9208 if (lt_count == 0) {
9209 lt_foo="/" $lt_i lt_foo;
9210 } else {
9211 lt_count--;
9212 }
9213 }
9214 }
9215 }
9216 if (lt_foo != "") { lt_freq[lt_foo]++; }
9217 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9218}'`
9219 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9220else
9221 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9222fi
9223library_names_spec=
9224libname_spec='lib$name'
9225soname_spec=
9226shrext_cmds=".so"
9227postinstall_cmds=
9228postuninstall_cmds=
9229finish_cmds=
9230finish_eval=
9231shlibpath_var=
9232shlibpath_overrides_runpath=unknown
9233version_type=none
9234dynamic_linker="$host_os ld.so"
9235sys_lib_dlsearch_path_spec="/lib /usr/lib"
9236need_lib_prefix=unknown
9237hardcode_into_libs=no
9238
9239# when you set need_version to no, make sure it does not cause -set_version
9240# flags to be left without arguments
9241need_version=unknown
9242
9243case $host_os in
9244aix3*)
9245 version_type=linux
9246 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9247 shlibpath_var=LIBPATH
9248
9249 # AIX 3 has no versioning support, so we append a major version to the name.
9250 soname_spec='${libname}${release}${shared_ext}$major'
9251 ;;
9252
50e7d84b 9253aix[4-9]*)
d7040cdb
SE
9254 version_type=linux
9255 need_lib_prefix=no
9256 need_version=no
9257 hardcode_into_libs=yes
9258 if test "$host_cpu" = ia64; then
9259 # AIX 5 supports IA64
9260 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9261 shlibpath_var=LD_LIBRARY_PATH
9262 else
9263 # With GCC up to 2.95.x, collect2 would create an import file
9264 # for dependence libraries. The import file would start with
9265 # the line `#! .'. This would cause the generated library to
9266 # depend on `.', always an invalid library. This was fixed in
9267 # development snapshots of GCC prior to 3.0.
9268 case $host_os in
9269 aix4 | aix4.[01] | aix4.[01].*)
9270 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9271 echo ' yes '
9272 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9273 :
9274 else
9275 can_build_shared=no
9276 fi
9277 ;;
9278 esac
9279 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9280 # soname into executable. Probably we can add versioning support to
9281 # collect2, so additional links can be useful in future.
9282 if test "$aix_use_runtimelinking" = yes; then
9283 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9284 # instead of lib<name>.a to let people know that these are not
9285 # typical AIX shared libraries.
9286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9287 else
9288 # We preserve .a as extension for shared libraries through AIX4.2
9289 # and later when we are not doing run time linking.
9290 library_names_spec='${libname}${release}.a $libname.a'
9291 soname_spec='${libname}${release}${shared_ext}$major'
9292 fi
9293 shlibpath_var=LIBPATH
9294 fi
9295 ;;
9296
9297amigaos*)
9298 if test "$host_cpu" = m68k; then
9299 library_names_spec='$libname.ixlibrary $libname.a'
9300 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9301 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'
9302 else
9303 dynamic_linker=no
9304 fi
9305 ;;
9306
9307beos*)
9308 library_names_spec='${libname}${shared_ext}'
9309 dynamic_linker="$host_os ld.so"
9310 shlibpath_var=LIBRARY_PATH
9311 ;;
9312
9313bsdi[45]*)
9314 version_type=linux
9315 need_version=no
9316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9317 soname_spec='${libname}${release}${shared_ext}$major'
9318 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9319 shlibpath_var=LD_LIBRARY_PATH
9320 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9321 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9322 # the default ld.so.conf also contains /usr/contrib/lib and
9323 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9324 # libtool to hard-code these into programs
9325 ;;
9326
9327cygwin* | mingw* | pw32*)
9328 version_type=windows
9329 shrext_cmds=".dll"
9330 need_version=no
9331 need_lib_prefix=no
9332
9333 case $withGCC,$host_os in
9334 yes,cygwin* | yes,mingw* | yes,pw32*)
9335 library_names_spec='$libname.dll.a'
9336 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9337 postinstall_cmds='base_file=`basename \${file}`~
9338 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9339 dldir=$destdir/`dirname \$dlpath`~
9340 test -d \$dldir || mkdir -p \$dldir~
9341 $install_prog $dir/$dlname \$dldir/$dlname~
9342 chmod a+x \$dldir/$dlname~
9343 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9344 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9345 fi'
9346 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9347 dlpath=$dir/\$dldll~
9348 $RM \$dlpath'
9349 shlibpath_overrides_runpath=yes
9350
9351 case $host_os in
9352 cygwin*)
9353 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9354 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9355 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9356 ;;
9357 mingw*)
9358 # MinGW DLLs use traditional 'lib' prefix
9359 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9360 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9361 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9362 # It is most probably a Windows format PATH printed by
9363 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9364 # path with ; separators, and with drive letters. We can handle the
9365 # drive letters (cygwin fileutils understands them), so leave them,
9366 # especially as we might pass files found there to a mingw objdump,
9367 # which wouldn't understand a cygwinified path. Ahh.
9368 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9369 else
9370 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9371 fi
9372 ;;
9373 pw32*)
9374 # pw32 DLLs use 'pw' prefix rather than 'lib'
9375 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9376 ;;
9377 esac
9378 ;;
9379
9380 *)
9381 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9382 ;;
9383 esac
9384 dynamic_linker='Win32 ld.exe'
9385 # FIXME: first we should search . and the directory the executable is in
9386 shlibpath_var=PATH
9387 ;;
9388
9389darwin* | rhapsody*)
9390 dynamic_linker="$host_os dyld"
9391 version_type=darwin
9392 need_lib_prefix=no
9393 need_version=no
9394 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9395 soname_spec='${libname}${release}${major}$shared_ext'
9396 shlibpath_overrides_runpath=yes
9397 shlibpath_var=DYLD_LIBRARY_PATH
9398 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9399
9400 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9401 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9402 ;;
9403
9404dgux*)
9405 version_type=linux
9406 need_lib_prefix=no
9407 need_version=no
9408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9409 soname_spec='${libname}${release}${shared_ext}$major'
9410 shlibpath_var=LD_LIBRARY_PATH
9411 ;;
9412
9413freebsd1*)
9414 dynamic_linker=no
9415 ;;
9416
9417freebsd* | dragonfly*)
9418 # DragonFly does not have aout. When/if they implement a new
9419 # versioning mechanism, adjust this.
9420 if test -x /usr/bin/objformat; then
9421 objformat=`/usr/bin/objformat`
9422 else
9423 case $host_os in
9424 freebsd[123]*) objformat=aout ;;
9425 *) objformat=elf ;;
9426 esac
9427 fi
9428 version_type=freebsd-$objformat
9429 case $version_type in
9430 freebsd-elf*)
9431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9432 need_version=no
9433 need_lib_prefix=no
9434 ;;
9435 freebsd-*)
9436 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9437 need_version=yes
9438 ;;
9439 esac
9440 shlibpath_var=LD_LIBRARY_PATH
9441 case $host_os in
9442 freebsd2*)
9443 shlibpath_overrides_runpath=yes
9444 ;;
9445 freebsd3.[01]* | freebsdelf3.[01]*)
9446 shlibpath_overrides_runpath=yes
9447 hardcode_into_libs=yes
9448 ;;
9449 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9450 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9451 shlibpath_overrides_runpath=no
9452 hardcode_into_libs=yes
9453 ;;
9454 *) # from 4.6 on, and DragonFly
9455 shlibpath_overrides_runpath=yes
9456 hardcode_into_libs=yes
9457 ;;
9458 esac
9459 ;;
9460
9461gnu*)
9462 version_type=linux
9463 need_lib_prefix=no
9464 need_version=no
9465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9466 soname_spec='${libname}${release}${shared_ext}$major'
9467 shlibpath_var=LD_LIBRARY_PATH
9468 hardcode_into_libs=yes
9469 ;;
9470
9471hpux9* | hpux10* | hpux11*)
9472 # Give a soname corresponding to the major version so that dld.sl refuses to
9473 # link against other versions.
9474 version_type=sunos
9475 need_lib_prefix=no
9476 need_version=no
9477 case $host_cpu in
9478 ia64*)
9479 shrext_cmds='.so'
9480 hardcode_into_libs=yes
9481 dynamic_linker="$host_os dld.so"
9482 shlibpath_var=LD_LIBRARY_PATH
9483 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9485 soname_spec='${libname}${release}${shared_ext}$major'
9486 if test "X$HPUX_IA64_MODE" = X32; then
9487 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9488 else
9489 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9490 fi
9491 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9492 ;;
9493 hppa*64*)
9494 shrext_cmds='.sl'
9495 hardcode_into_libs=yes
9496 dynamic_linker="$host_os dld.sl"
9497 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9498 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9500 soname_spec='${libname}${release}${shared_ext}$major'
9501 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9502 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9503 ;;
9504 *)
9505 shrext_cmds='.sl'
9506 dynamic_linker="$host_os dld.sl"
9507 shlibpath_var=SHLIB_PATH
9508 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9510 soname_spec='${libname}${release}${shared_ext}$major'
9511 ;;
9512 esac
9513 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9514 postinstall_cmds='chmod 555 $lib'
9515 ;;
9516
9517interix[3-9]*)
9518 version_type=linux
9519 need_lib_prefix=no
9520 need_version=no
9521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9522 soname_spec='${libname}${release}${shared_ext}$major'
9523 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9524 shlibpath_var=LD_LIBRARY_PATH
9525 shlibpath_overrides_runpath=no
9526 hardcode_into_libs=yes
9527 ;;
9528
9529irix5* | irix6* | nonstopux*)
9530 case $host_os in
9531 nonstopux*) version_type=nonstopux ;;
9532 *)
9533 if test "$lt_cv_prog_gnu_ld" = yes; then
9534 version_type=linux
9535 else
9536 version_type=irix
9537 fi ;;
9538 esac
9539 need_lib_prefix=no
9540 need_version=no
9541 soname_spec='${libname}${release}${shared_ext}$major'
9542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9543 case $host_os in
9544 irix5* | nonstopux*)
9545 libsuff= shlibsuff=
9546 ;;
9547 *)
9548 case $LD in # libtool.m4 will add one of these switches to LD
9549 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9550 libsuff= shlibsuff= libmagic=32-bit;;
9551 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9552 libsuff=32 shlibsuff=N32 libmagic=N32;;
9553 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9554 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9555 *) libsuff= shlibsuff= libmagic=never-match;;
9556 esac
9557 ;;
9558 esac
9559 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9560 shlibpath_overrides_runpath=no
9561 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9562 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9563 hardcode_into_libs=yes
9564 ;;
9565
9566# No shared lib support for Linux oldld, aout, or coff.
9567linux*oldld* | linux*aout* | linux*coff*)
9568 dynamic_linker=no
9569 ;;
9570
9571# This must be Linux ELF.
9572linux* | k*bsd*-gnu)
9573 version_type=linux
9574 need_lib_prefix=no
9575 need_version=no
9576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9577 soname_spec='${libname}${release}${shared_ext}$major'
9578 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9579 shlibpath_var=LD_LIBRARY_PATH
9580 shlibpath_overrides_runpath=no
9581 # Some binutils ld are patched to set DT_RUNPATH
9582 save_LDFLAGS=$LDFLAGS
9583 save_libdir=$libdir
9584 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9585 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9586 cat >conftest.$ac_ext <<_ACEOF
9587/* confdefs.h. */
9588_ACEOF
9589cat confdefs.h >>conftest.$ac_ext
9590cat >>conftest.$ac_ext <<_ACEOF
9591/* end confdefs.h. */
9592
9593int
9594main ()
9595{
9596
9597 ;
9598 return 0;
9599}
9600_ACEOF
9601rm -f conftest.$ac_objext conftest$ac_exeext
9602if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9603 (eval $ac_link) 2>conftest.er1
9604 ac_status=$?
9605 grep -v '^ *+' conftest.er1 >conftest.err
9606 rm -f conftest.er1
9607 cat conftest.err >&5
9608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609 (exit $ac_status); } &&
7357c5b6
AM
9610 { ac_try='test -z "$ac_c_werror_flag"
9611 || test ! -s conftest.err'
d7040cdb
SE
9612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9613 (eval $ac_try) 2>&5
9614 ac_status=$?
9615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9616 (exit $ac_status); }; } &&
9617 { ac_try='test -s conftest$ac_exeext'
9618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9619 (eval $ac_try) 2>&5
9620 ac_status=$?
9621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622 (exit $ac_status); }; }; then
9623 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
9624 shlibpath_overrides_runpath=yes
9625fi
9626
9627else
9628 echo "$as_me: failed program was:" >&5
9629sed 's/^/| /' conftest.$ac_ext >&5
9630
9631fi
9632rm -f conftest.err conftest.$ac_objext \
9633 conftest$ac_exeext conftest.$ac_ext
9634 LDFLAGS=$save_LDFLAGS
9635 libdir=$save_libdir
9636
9637 # This implies no fast_install, which is unacceptable.
9638 # Some rework will be needed to allow for fast_install
9639 # before this can be enabled.
9640 hardcode_into_libs=yes
9641
9642 # Append ld.so.conf contents to the search path
9643 if test -f /etc/ld.so.conf; then
9644 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' ' '`
9645 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9646 fi
9647
9648 # We used to test for /lib/ld.so.1 and disable shared libraries on
9649 # powerpc, because MkLinux only supported shared libraries with the
9650 # GNU dynamic linker. Since this was broken with cross compilers,
9651 # most powerpc-linux boxes support dynamic linking these days and
9652 # people can always --disable-shared, the test was removed, and we
9653 # assume the GNU/Linux dynamic linker is in use.
9654 dynamic_linker='GNU/Linux ld.so'
9655 ;;
9656
9657netbsd*)
9658 version_type=sunos
9659 need_lib_prefix=no
9660 need_version=no
9661 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9663 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9664 dynamic_linker='NetBSD (a.out) ld.so'
9665 else
9666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9667 soname_spec='${libname}${release}${shared_ext}$major'
9668 dynamic_linker='NetBSD ld.elf_so'
9669 fi
9670 shlibpath_var=LD_LIBRARY_PATH
9671 shlibpath_overrides_runpath=yes
9672 hardcode_into_libs=yes
9673 ;;
9674
9675newsos6)
9676 version_type=linux
9677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9678 shlibpath_var=LD_LIBRARY_PATH
9679 shlibpath_overrides_runpath=yes
9680 ;;
9681
9682*nto* | *qnx*)
9683 version_type=qnx
9684 need_lib_prefix=no
9685 need_version=no
9686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9687 soname_spec='${libname}${release}${shared_ext}$major'
9688 shlibpath_var=LD_LIBRARY_PATH
9689 shlibpath_overrides_runpath=no
9690 hardcode_into_libs=yes
9691 dynamic_linker='ldqnx.so'
9692 ;;
9693
9694openbsd*)
9695 version_type=sunos
9696 sys_lib_dlsearch_path_spec="/usr/lib"
9697 need_lib_prefix=no
9698 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9699 case $host_os in
9700 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9701 *) need_version=no ;;
9702 esac
9703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9704 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9705 shlibpath_var=LD_LIBRARY_PATH
9706 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9707 case $host_os in
9708 openbsd2.[89] | openbsd2.[89].*)
9709 shlibpath_overrides_runpath=no
9710 ;;
9711 *)
9712 shlibpath_overrides_runpath=yes
9713 ;;
9714 esac
9715 else
9716 shlibpath_overrides_runpath=yes
9717 fi
9718 ;;
9719
9720os2*)
9721 libname_spec='$name'
9722 shrext_cmds=".dll"
9723 need_lib_prefix=no
9724 library_names_spec='$libname${shared_ext} $libname.a'
9725 dynamic_linker='OS/2 ld.exe'
9726 shlibpath_var=LIBPATH
9727 ;;
9728
9729osf3* | osf4* | osf5*)
9730 version_type=osf
9731 need_lib_prefix=no
9732 need_version=no
9733 soname_spec='${libname}${release}${shared_ext}$major'
9734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9735 shlibpath_var=LD_LIBRARY_PATH
9736 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9737 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9738 ;;
9739
9740rdos*)
9741 dynamic_linker=no
9742 ;;
9743
9744solaris*)
9745 version_type=linux
9746 need_lib_prefix=no
9747 need_version=no
9748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9749 soname_spec='${libname}${release}${shared_ext}$major'
9750 shlibpath_var=LD_LIBRARY_PATH
9751 shlibpath_overrides_runpath=yes
9752 hardcode_into_libs=yes
9753 # ldd complains unless libraries are executable
9754 postinstall_cmds='chmod +x $lib'
9755 ;;
9756
9757sunos4*)
9758 version_type=sunos
9759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9760 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9761 shlibpath_var=LD_LIBRARY_PATH
9762 shlibpath_overrides_runpath=yes
9763 if test "$with_gnu_ld" = yes; then
9764 need_lib_prefix=no
9765 fi
9766 need_version=yes
9767 ;;
9768
9769sysv4 | sysv4.3*)
9770 version_type=linux
9771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9772 soname_spec='${libname}${release}${shared_ext}$major'
9773 shlibpath_var=LD_LIBRARY_PATH
9774 case $host_vendor in
9775 sni)
9776 shlibpath_overrides_runpath=no
9777 need_lib_prefix=no
9778 runpath_var=LD_RUN_PATH
9779 ;;
9780 siemens)
9781 need_lib_prefix=no
9782 ;;
9783 motorola)
9784 need_lib_prefix=no
9785 need_version=no
9786 shlibpath_overrides_runpath=no
9787 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9788 ;;
9789 esac
9790 ;;
9791
9792sysv4*MP*)
9793 if test -d /usr/nec ;then
9794 version_type=linux
9795 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9796 soname_spec='$libname${shared_ext}.$major'
9797 shlibpath_var=LD_LIBRARY_PATH
9798 fi
9799 ;;
9800
9801sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9802 version_type=freebsd-elf
9803 need_lib_prefix=no
9804 need_version=no
9805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9806 soname_spec='${libname}${release}${shared_ext}$major'
9807 shlibpath_var=LD_LIBRARY_PATH
9808 shlibpath_overrides_runpath=yes
9809 hardcode_into_libs=yes
9810 if test "$with_gnu_ld" = yes; then
9811 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9812 else
9813 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9814 case $host_os in
9815 sco3.2v5*)
9816 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9817 ;;
9818 esac
9819 fi
9820 sys_lib_dlsearch_path_spec='/usr/lib'
9821 ;;
9822
9823tpf*)
9824 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9825 version_type=linux
9826 need_lib_prefix=no
9827 need_version=no
9828 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9829 shlibpath_var=LD_LIBRARY_PATH
9830 shlibpath_overrides_runpath=no
9831 hardcode_into_libs=yes
9832 ;;
9833
9834uts4*)
9835 version_type=linux
9836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9837 soname_spec='${libname}${release}${shared_ext}$major'
9838 shlibpath_var=LD_LIBRARY_PATH
9839 ;;
9840
9841*)
9842 dynamic_linker=no
9843 ;;
9844esac
9845echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9846echo "${ECHO_T}$dynamic_linker" >&6
9847test "$dynamic_linker" = no && can_build_shared=no
9848
9849variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9850if test "$GCC" = yes; then
9851 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9852fi
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9941echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9942hardcode_action=
9943if test -n "$hardcode_libdir_flag_spec" ||
9944 test -n "$runpath_var" ||
9945 test "X$hardcode_automatic" = "Xyes" ; then
9946
9947 # We can hardcode non-existent directories.
9948 if test "$hardcode_direct" != no &&
9949 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9950 # have to relink, otherwise we might link with an installed library
9951 # when we should be linking with a yet-to-be-installed one
9952 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9953 test "$hardcode_minus_L" != no; then
9954 # Linking always hardcodes the temporary library directory.
9955 hardcode_action=relink
9956 else
9957 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9958 hardcode_action=immediate
9959 fi
9960else
9961 # We cannot hardcode anything, or else we can only hardcode existing
9962 # directories.
9963 hardcode_action=unsupported
9964fi
9965echo "$as_me:$LINENO: result: $hardcode_action" >&5
9966echo "${ECHO_T}$hardcode_action" >&6
9967
9968if test "$hardcode_action" = relink ||
9969 test "$inherit_rpath" = yes; then
9970 # Fast installation is not supported
9971 enable_fast_install=no
9972elif test "$shlibpath_overrides_runpath" = yes ||
9973 test "$enable_shared" = no; then
9974 # Fast installation is not necessary
9975 enable_fast_install=needless
9976fi
9977
9978
9979
9980
9981
9982
9983 if test "x$enable_dlopen" != xyes; then
9984 enable_dlopen=unknown
9985 enable_dlopen_self=unknown
9986 enable_dlopen_self_static=unknown
9987else
9988 lt_cv_dlopen=no
9989 lt_cv_dlopen_libs=
9990
9991 case $host_os in
9992 beos*)
9993 lt_cv_dlopen="load_add_on"
9994 lt_cv_dlopen_libs=
9995 lt_cv_dlopen_self=yes
9996 ;;
9997
9998 mingw* | pw32*)
9999 lt_cv_dlopen="LoadLibrary"
10000 lt_cv_dlopen_libs=
10001 ;;
10002
10003 cygwin*)
10004 lt_cv_dlopen="dlopen"
10005 lt_cv_dlopen_libs=
10006 ;;
10007
10008 darwin*)
10009 # if libdl is installed we need to link against it
10010 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10011echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10012if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10013 echo $ECHO_N "(cached) $ECHO_C" >&6
10014else
10015 ac_check_lib_save_LIBS=$LIBS
10016LIBS="-ldl $LIBS"
10017cat >conftest.$ac_ext <<_ACEOF
10018/* confdefs.h. */
10019_ACEOF
10020cat confdefs.h >>conftest.$ac_ext
10021cat >>conftest.$ac_ext <<_ACEOF
10022/* end confdefs.h. */
10023
10024/* Override any gcc2 internal prototype to avoid an error. */
10025#ifdef __cplusplus
10026extern "C"
10027#endif
10028/* We use char because int might match the return type of a gcc2
10029 builtin and then its argument prototype would still apply. */
10030char dlopen ();
10031int
10032main ()
10033{
10034dlopen ();
10035 ;
10036 return 0;
10037}
10038_ACEOF
10039rm -f conftest.$ac_objext conftest$ac_exeext
10040if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10041 (eval $ac_link) 2>conftest.er1
10042 ac_status=$?
10043 grep -v '^ *+' conftest.er1 >conftest.err
10044 rm -f conftest.er1
10045 cat conftest.err >&5
10046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047 (exit $ac_status); } &&
7357c5b6
AM
10048 { ac_try='test -z "$ac_c_werror_flag"
10049 || test ! -s conftest.err'
d7040cdb
SE
10050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10051 (eval $ac_try) 2>&5
10052 ac_status=$?
10053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10054 (exit $ac_status); }; } &&
10055 { ac_try='test -s conftest$ac_exeext'
10056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10057 (eval $ac_try) 2>&5
10058 ac_status=$?
10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060 (exit $ac_status); }; }; then
10061 ac_cv_lib_dl_dlopen=yes
10062else
10063 echo "$as_me: failed program was:" >&5
10064sed 's/^/| /' conftest.$ac_ext >&5
10065
10066ac_cv_lib_dl_dlopen=no
10067fi
10068rm -f conftest.err conftest.$ac_objext \
10069 conftest$ac_exeext conftest.$ac_ext
10070LIBS=$ac_check_lib_save_LIBS
10071fi
10072echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10073echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10074if test $ac_cv_lib_dl_dlopen = yes; then
10075 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10076else
10077
10078 lt_cv_dlopen="dyld"
10079 lt_cv_dlopen_libs=
10080 lt_cv_dlopen_self=yes
10081
10082fi
10083
10084 ;;
10085
10086 *)
10087 echo "$as_me:$LINENO: checking for shl_load" >&5
10088echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10089if test "${ac_cv_func_shl_load+set}" = set; then
10090 echo $ECHO_N "(cached) $ECHO_C" >&6
10091else
10092 cat >conftest.$ac_ext <<_ACEOF
10093/* confdefs.h. */
10094_ACEOF
10095cat confdefs.h >>conftest.$ac_ext
10096cat >>conftest.$ac_ext <<_ACEOF
10097/* end confdefs.h. */
10098/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10099 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10100#define shl_load innocuous_shl_load
10101
10102/* System header to define __stub macros and hopefully few prototypes,
10103 which can conflict with char shl_load (); below.
10104 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10105 <limits.h> exists even on freestanding compilers. */
10106
10107#ifdef __STDC__
10108# include <limits.h>
10109#else
10110# include <assert.h>
10111#endif
10112
10113#undef shl_load
10114
10115/* Override any gcc2 internal prototype to avoid an error. */
10116#ifdef __cplusplus
10117extern "C"
10118{
10119#endif
10120/* We use char because int might match the return type of a gcc2
10121 builtin and then its argument prototype would still apply. */
10122char shl_load ();
10123/* The GNU C library defines this for functions which it implements
10124 to always fail with ENOSYS. Some functions are actually named
10125 something starting with __ and the normal name is an alias. */
10126#if defined (__stub_shl_load) || defined (__stub___shl_load)
10127choke me
10128#else
10129char (*f) () = shl_load;
10130#endif
10131#ifdef __cplusplus
10132}
10133#endif
10134
10135int
10136main ()
10137{
10138return f != shl_load;
10139 ;
10140 return 0;
10141}
10142_ACEOF
10143rm -f conftest.$ac_objext conftest$ac_exeext
10144if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10145 (eval $ac_link) 2>conftest.er1
10146 ac_status=$?
10147 grep -v '^ *+' conftest.er1 >conftest.err
10148 rm -f conftest.er1
10149 cat conftest.err >&5
10150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151 (exit $ac_status); } &&
7357c5b6
AM
10152 { ac_try='test -z "$ac_c_werror_flag"
10153 || test ! -s conftest.err'
d7040cdb
SE
10154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10155 (eval $ac_try) 2>&5
10156 ac_status=$?
10157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10158 (exit $ac_status); }; } &&
10159 { ac_try='test -s conftest$ac_exeext'
10160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10161 (eval $ac_try) 2>&5
10162 ac_status=$?
10163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164 (exit $ac_status); }; }; then
10165 ac_cv_func_shl_load=yes
10166else
10167 echo "$as_me: failed program was:" >&5
10168sed 's/^/| /' conftest.$ac_ext >&5
10169
10170ac_cv_func_shl_load=no
10171fi
10172rm -f conftest.err conftest.$ac_objext \
10173 conftest$ac_exeext conftest.$ac_ext
10174fi
10175echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10176echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10177if test $ac_cv_func_shl_load = yes; then
10178 lt_cv_dlopen="shl_load"
10179else
10180 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10181echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10182if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10183 echo $ECHO_N "(cached) $ECHO_C" >&6
10184else
10185 ac_check_lib_save_LIBS=$LIBS
10186LIBS="-ldld $LIBS"
10187cat >conftest.$ac_ext <<_ACEOF
10188/* confdefs.h. */
10189_ACEOF
10190cat confdefs.h >>conftest.$ac_ext
10191cat >>conftest.$ac_ext <<_ACEOF
10192/* end confdefs.h. */
10193
10194/* Override any gcc2 internal prototype to avoid an error. */
10195#ifdef __cplusplus
10196extern "C"
10197#endif
10198/* We use char because int might match the return type of a gcc2
10199 builtin and then its argument prototype would still apply. */
10200char shl_load ();
10201int
10202main ()
10203{
10204shl_load ();
10205 ;
10206 return 0;
10207}
10208_ACEOF
10209rm -f conftest.$ac_objext conftest$ac_exeext
10210if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10211 (eval $ac_link) 2>conftest.er1
10212 ac_status=$?
10213 grep -v '^ *+' conftest.er1 >conftest.err
10214 rm -f conftest.er1
10215 cat conftest.err >&5
10216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217 (exit $ac_status); } &&
7357c5b6
AM
10218 { ac_try='test -z "$ac_c_werror_flag"
10219 || test ! -s conftest.err'
d7040cdb
SE
10220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10221 (eval $ac_try) 2>&5
10222 ac_status=$?
10223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224 (exit $ac_status); }; } &&
10225 { ac_try='test -s conftest$ac_exeext'
10226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10227 (eval $ac_try) 2>&5
10228 ac_status=$?
10229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10230 (exit $ac_status); }; }; then
10231 ac_cv_lib_dld_shl_load=yes
10232else
10233 echo "$as_me: failed program was:" >&5
10234sed 's/^/| /' conftest.$ac_ext >&5
10235
10236ac_cv_lib_dld_shl_load=no
10237fi
10238rm -f conftest.err conftest.$ac_objext \
10239 conftest$ac_exeext conftest.$ac_ext
10240LIBS=$ac_check_lib_save_LIBS
10241fi
10242echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10243echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10244if test $ac_cv_lib_dld_shl_load = yes; then
10245 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10246else
10247 echo "$as_me:$LINENO: checking for dlopen" >&5
10248echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10249if test "${ac_cv_func_dlopen+set}" = set; then
10250 echo $ECHO_N "(cached) $ECHO_C" >&6
10251else
10252 cat >conftest.$ac_ext <<_ACEOF
10253/* confdefs.h. */
10254_ACEOF
10255cat confdefs.h >>conftest.$ac_ext
10256cat >>conftest.$ac_ext <<_ACEOF
10257/* end confdefs.h. */
10258/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10259 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10260#define dlopen innocuous_dlopen
10261
10262/* System header to define __stub macros and hopefully few prototypes,
10263 which can conflict with char dlopen (); below.
10264 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10265 <limits.h> exists even on freestanding compilers. */
10266
10267#ifdef __STDC__
10268# include <limits.h>
10269#else
10270# include <assert.h>
10271#endif
10272
10273#undef dlopen
10274
10275/* Override any gcc2 internal prototype to avoid an error. */
10276#ifdef __cplusplus
10277extern "C"
10278{
10279#endif
10280/* We use char because int might match the return type of a gcc2
10281 builtin and then its argument prototype would still apply. */
10282char dlopen ();
10283/* The GNU C library defines this for functions which it implements
10284 to always fail with ENOSYS. Some functions are actually named
10285 something starting with __ and the normal name is an alias. */
10286#if defined (__stub_dlopen) || defined (__stub___dlopen)
10287choke me
10288#else
10289char (*f) () = dlopen;
10290#endif
10291#ifdef __cplusplus
10292}
10293#endif
10294
10295int
10296main ()
10297{
10298return f != dlopen;
10299 ;
10300 return 0;
10301}
10302_ACEOF
10303rm -f conftest.$ac_objext conftest$ac_exeext
10304if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10305 (eval $ac_link) 2>conftest.er1
10306 ac_status=$?
10307 grep -v '^ *+' conftest.er1 >conftest.err
10308 rm -f conftest.er1
10309 cat conftest.err >&5
10310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10311 (exit $ac_status); } &&
7357c5b6
AM
10312 { ac_try='test -z "$ac_c_werror_flag"
10313 || test ! -s conftest.err'
d7040cdb
SE
10314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10315 (eval $ac_try) 2>&5
10316 ac_status=$?
10317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318 (exit $ac_status); }; } &&
10319 { ac_try='test -s conftest$ac_exeext'
10320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10321 (eval $ac_try) 2>&5
10322 ac_status=$?
10323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324 (exit $ac_status); }; }; then
10325 ac_cv_func_dlopen=yes
10326else
10327 echo "$as_me: failed program was:" >&5
10328sed 's/^/| /' conftest.$ac_ext >&5
10329
10330ac_cv_func_dlopen=no
10331fi
10332rm -f conftest.err conftest.$ac_objext \
10333 conftest$ac_exeext conftest.$ac_ext
10334fi
10335echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10336echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10337if test $ac_cv_func_dlopen = yes; then
10338 lt_cv_dlopen="dlopen"
10339else
10340 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10341echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10342if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10343 echo $ECHO_N "(cached) $ECHO_C" >&6
10344else
10345 ac_check_lib_save_LIBS=$LIBS
10346LIBS="-ldl $LIBS"
10347cat >conftest.$ac_ext <<_ACEOF
10348/* confdefs.h. */
10349_ACEOF
10350cat confdefs.h >>conftest.$ac_ext
10351cat >>conftest.$ac_ext <<_ACEOF
10352/* end confdefs.h. */
10353
10354/* Override any gcc2 internal prototype to avoid an error. */
10355#ifdef __cplusplus
10356extern "C"
10357#endif
10358/* We use char because int might match the return type of a gcc2
10359 builtin and then its argument prototype would still apply. */
10360char dlopen ();
10361int
10362main ()
10363{
10364dlopen ();
10365 ;
10366 return 0;
10367}
10368_ACEOF
10369rm -f conftest.$ac_objext conftest$ac_exeext
10370if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10371 (eval $ac_link) 2>conftest.er1
10372 ac_status=$?
10373 grep -v '^ *+' conftest.er1 >conftest.err
10374 rm -f conftest.er1
10375 cat conftest.err >&5
10376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10377 (exit $ac_status); } &&
7357c5b6
AM
10378 { ac_try='test -z "$ac_c_werror_flag"
10379 || test ! -s conftest.err'
d7040cdb
SE
10380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10381 (eval $ac_try) 2>&5
10382 ac_status=$?
10383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384 (exit $ac_status); }; } &&
10385 { ac_try='test -s conftest$ac_exeext'
10386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10387 (eval $ac_try) 2>&5
10388 ac_status=$?
10389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10390 (exit $ac_status); }; }; then
10391 ac_cv_lib_dl_dlopen=yes
10392else
10393 echo "$as_me: failed program was:" >&5
10394sed 's/^/| /' conftest.$ac_ext >&5
10395
10396ac_cv_lib_dl_dlopen=no
10397fi
10398rm -f conftest.err conftest.$ac_objext \
10399 conftest$ac_exeext conftest.$ac_ext
10400LIBS=$ac_check_lib_save_LIBS
10401fi
10402echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10403echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10404if test $ac_cv_lib_dl_dlopen = yes; then
10405 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10406else
10407 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10408echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10409if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10410 echo $ECHO_N "(cached) $ECHO_C" >&6
10411else
10412 ac_check_lib_save_LIBS=$LIBS
10413LIBS="-lsvld $LIBS"
10414cat >conftest.$ac_ext <<_ACEOF
10415/* confdefs.h. */
10416_ACEOF
10417cat confdefs.h >>conftest.$ac_ext
10418cat >>conftest.$ac_ext <<_ACEOF
10419/* end confdefs.h. */
10420
10421/* Override any gcc2 internal prototype to avoid an error. */
10422#ifdef __cplusplus
10423extern "C"
10424#endif
10425/* We use char because int might match the return type of a gcc2
10426 builtin and then its argument prototype would still apply. */
10427char dlopen ();
10428int
10429main ()
10430{
10431dlopen ();
10432 ;
10433 return 0;
10434}
10435_ACEOF
10436rm -f conftest.$ac_objext conftest$ac_exeext
10437if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10438 (eval $ac_link) 2>conftest.er1
10439 ac_status=$?
10440 grep -v '^ *+' conftest.er1 >conftest.err
10441 rm -f conftest.er1
10442 cat conftest.err >&5
10443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444 (exit $ac_status); } &&
7357c5b6
AM
10445 { ac_try='test -z "$ac_c_werror_flag"
10446 || test ! -s conftest.err'
d7040cdb
SE
10447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10448 (eval $ac_try) 2>&5
10449 ac_status=$?
10450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451 (exit $ac_status); }; } &&
10452 { ac_try='test -s conftest$ac_exeext'
10453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10454 (eval $ac_try) 2>&5
10455 ac_status=$?
10456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457 (exit $ac_status); }; }; then
10458 ac_cv_lib_svld_dlopen=yes
10459else
10460 echo "$as_me: failed program was:" >&5
10461sed 's/^/| /' conftest.$ac_ext >&5
10462
10463ac_cv_lib_svld_dlopen=no
10464fi
10465rm -f conftest.err conftest.$ac_objext \
10466 conftest$ac_exeext conftest.$ac_ext
10467LIBS=$ac_check_lib_save_LIBS
10468fi
10469echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10470echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10471if test $ac_cv_lib_svld_dlopen = yes; then
10472 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10473else
10474 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10475echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10476if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10477 echo $ECHO_N "(cached) $ECHO_C" >&6
10478else
10479 ac_check_lib_save_LIBS=$LIBS
10480LIBS="-ldld $LIBS"
10481cat >conftest.$ac_ext <<_ACEOF
10482/* confdefs.h. */
10483_ACEOF
10484cat confdefs.h >>conftest.$ac_ext
10485cat >>conftest.$ac_ext <<_ACEOF
10486/* end confdefs.h. */
10487
10488/* Override any gcc2 internal prototype to avoid an error. */
10489#ifdef __cplusplus
10490extern "C"
10491#endif
10492/* We use char because int might match the return type of a gcc2
10493 builtin and then its argument prototype would still apply. */
10494char dld_link ();
10495int
10496main ()
10497{
10498dld_link ();
10499 ;
10500 return 0;
10501}
10502_ACEOF
10503rm -f conftest.$ac_objext conftest$ac_exeext
10504if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10505 (eval $ac_link) 2>conftest.er1
10506 ac_status=$?
10507 grep -v '^ *+' conftest.er1 >conftest.err
10508 rm -f conftest.er1
10509 cat conftest.err >&5
10510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511 (exit $ac_status); } &&
7357c5b6
AM
10512 { ac_try='test -z "$ac_c_werror_flag"
10513 || test ! -s conftest.err'
d7040cdb
SE
10514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10515 (eval $ac_try) 2>&5
10516 ac_status=$?
10517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10518 (exit $ac_status); }; } &&
10519 { ac_try='test -s conftest$ac_exeext'
10520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10521 (eval $ac_try) 2>&5
10522 ac_status=$?
10523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10524 (exit $ac_status); }; }; then
10525 ac_cv_lib_dld_dld_link=yes
10526else
10527 echo "$as_me: failed program was:" >&5
10528sed 's/^/| /' conftest.$ac_ext >&5
10529
10530ac_cv_lib_dld_dld_link=no
10531fi
10532rm -f conftest.err conftest.$ac_objext \
10533 conftest$ac_exeext conftest.$ac_ext
10534LIBS=$ac_check_lib_save_LIBS
10535fi
10536echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10537echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10538if test $ac_cv_lib_dld_dld_link = yes; then
10539 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10540fi
10541
10542
10543fi
10544
10545
10546fi
10547
10548
10549fi
10550
10551
10552fi
10553
10554
10555fi
10556
10557 ;;
10558 esac
10559
10560 if test "x$lt_cv_dlopen" != xno; then
10561 enable_dlopen=yes
10562 else
10563 enable_dlopen=no
10564 fi
10565
10566 case $lt_cv_dlopen in
10567 dlopen)
10568 save_CPPFLAGS="$CPPFLAGS"
10569 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10570
10571 save_LDFLAGS="$LDFLAGS"
10572 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10573
10574 save_LIBS="$LIBS"
10575 LIBS="$lt_cv_dlopen_libs $LIBS"
10576
10577 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10578echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10579if test "${lt_cv_dlopen_self+set}" = set; then
10580 echo $ECHO_N "(cached) $ECHO_C" >&6
10581else
10582 if test "$cross_compiling" = yes; then :
10583 lt_cv_dlopen_self=cross
10584else
10585 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10586 lt_status=$lt_dlunknown
10587 cat > conftest.$ac_ext <<_LT_EOF
da594c4a 10588#line 10223 "configure"
d7040cdb
SE
10589#include "confdefs.h"
10590
10591#if HAVE_DLFCN_H
10592#include <dlfcn.h>
10593#endif
10594
10595#include <stdio.h>
10596
10597#ifdef RTLD_GLOBAL
10598# define LT_DLGLOBAL RTLD_GLOBAL
10599#else
10600# ifdef DL_GLOBAL
10601# define LT_DLGLOBAL DL_GLOBAL
10602# else
10603# define LT_DLGLOBAL 0
10604# endif
10605#endif
10606
10607/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10608 find out it does not work in some platform. */
10609#ifndef LT_DLLAZY_OR_NOW
10610# ifdef RTLD_LAZY
10611# define LT_DLLAZY_OR_NOW RTLD_LAZY
10612# else
10613# ifdef DL_LAZY
10614# define LT_DLLAZY_OR_NOW DL_LAZY
10615# else
10616# ifdef RTLD_NOW
10617# define LT_DLLAZY_OR_NOW RTLD_NOW
10618# else
10619# ifdef DL_NOW
10620# define LT_DLLAZY_OR_NOW DL_NOW
10621# else
10622# define LT_DLLAZY_OR_NOW 0
10623# endif
10624# endif
10625# endif
10626# endif
10627#endif
10628
10629#ifdef __cplusplus
10630extern "C" void exit (int);
10631#endif
10632
10633void fnord() { int i=42;}
10634int main ()
10635{
10636 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10637 int status = $lt_dlunknown;
10638
10639 if (self)
10640 {
10641 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10642 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10643 /* dlclose (self); */
10644 }
10645 else
10646 puts (dlerror ());
10647
10648 exit (status);
10649}
10650_LT_EOF
10651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10652 (eval $ac_link) 2>&5
10653 ac_status=$?
10654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10655 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10656 (./conftest; exit; ) >&5 2>/dev/null
10657 lt_status=$?
10658 case x$lt_status in
10659 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10660 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10661 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10662 esac
10663 else :
10664 # compilation failed
10665 lt_cv_dlopen_self=no
10666 fi
10667fi
10668rm -fr conftest*
10669
10670
10671fi
10672echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10673echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10674
10675 if test "x$lt_cv_dlopen_self" = xyes; then
10676 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10677 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10678echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10679if test "${lt_cv_dlopen_self_static+set}" = set; then
10680 echo $ECHO_N "(cached) $ECHO_C" >&6
10681else
10682 if test "$cross_compiling" = yes; then :
10683 lt_cv_dlopen_self_static=cross
10684else
10685 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10686 lt_status=$lt_dlunknown
10687 cat > conftest.$ac_ext <<_LT_EOF
da594c4a 10688#line 10323 "configure"
d7040cdb
SE
10689#include "confdefs.h"
10690
10691#if HAVE_DLFCN_H
10692#include <dlfcn.h>
10693#endif
10694
10695#include <stdio.h>
10696
10697#ifdef RTLD_GLOBAL
10698# define LT_DLGLOBAL RTLD_GLOBAL
10699#else
10700# ifdef DL_GLOBAL
10701# define LT_DLGLOBAL DL_GLOBAL
10702# else
10703# define LT_DLGLOBAL 0
10704# endif
10705#endif
10706
10707/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10708 find out it does not work in some platform. */
10709#ifndef LT_DLLAZY_OR_NOW
10710# ifdef RTLD_LAZY
10711# define LT_DLLAZY_OR_NOW RTLD_LAZY
10712# else
10713# ifdef DL_LAZY
10714# define LT_DLLAZY_OR_NOW DL_LAZY
10715# else
10716# ifdef RTLD_NOW
10717# define LT_DLLAZY_OR_NOW RTLD_NOW
10718# else
10719# ifdef DL_NOW
10720# define LT_DLLAZY_OR_NOW DL_NOW
10721# else
10722# define LT_DLLAZY_OR_NOW 0
10723# endif
10724# endif
10725# endif
10726# endif
10727#endif
10728
10729#ifdef __cplusplus
10730extern "C" void exit (int);
10731#endif
10732
10733void fnord() { int i=42;}
10734int main ()
10735{
10736 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10737 int status = $lt_dlunknown;
10738
10739 if (self)
10740 {
10741 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10742 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10743 /* dlclose (self); */
10744 }
10745 else
10746 puts (dlerror ());
10747
10748 exit (status);
10749}
10750_LT_EOF
10751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10752 (eval $ac_link) 2>&5
10753 ac_status=$?
10754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10755 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10756 (./conftest; exit; ) >&5 2>/dev/null
10757 lt_status=$?
10758 case x$lt_status in
10759 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10760 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10761 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10762 esac
10763 else :
10764 # compilation failed
10765 lt_cv_dlopen_self_static=no
10766 fi
10767fi
10768rm -fr conftest*
10769
10770
10771fi
10772echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10773echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10774 fi
10775
10776 CPPFLAGS="$save_CPPFLAGS"
10777 LDFLAGS="$save_LDFLAGS"
10778 LIBS="$save_LIBS"
10779 ;;
10780 esac
10781
10782 case $lt_cv_dlopen_self in
10783 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10784 *) enable_dlopen_self=unknown ;;
10785 esac
10786
10787 case $lt_cv_dlopen_self_static in
10788 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10789 *) enable_dlopen_self_static=unknown ;;
10790 esac
10791fi
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809striplib=
10810old_striplib=
10811echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10812echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10813if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10814 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10815 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10816 echo "$as_me:$LINENO: result: yes" >&5
10817echo "${ECHO_T}yes" >&6
10818else
10819# FIXME - insert some real tests, host_os isn't really good enough
10820 case $host_os in
10821 darwin*)
10822 if test -n "$STRIP" ; then
10823 striplib="$STRIP -x"
10824 old_striplib="$STRIP -S"
10825 echo "$as_me:$LINENO: result: yes" >&5
10826echo "${ECHO_T}yes" >&6
10827 else
10828 echo "$as_me:$LINENO: result: no" >&5
10829echo "${ECHO_T}no" >&6
10830 fi
10831 ;;
10832 *)
10833 echo "$as_me:$LINENO: result: no" >&5
10834echo "${ECHO_T}no" >&6
10835 ;;
10836 esac
10837fi
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850 # Report which library types will actually be built
10851 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10852echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10853 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10854echo "${ECHO_T}$can_build_shared" >&6
10855
10856 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10857echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10858 test "$can_build_shared" = "no" && enable_shared=no
10859
10860 # On AIX, shared libraries and static libraries use the same namespace, and
10861 # are all built from PIC.
10862 case $host_os in
10863 aix3*)
10864 test "$enable_shared" = yes && enable_static=no
10865 if test -n "$RANLIB"; then
10866 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10867 postinstall_cmds='$RANLIB $lib'
10868 fi
10869 ;;
10870
50e7d84b 10871 aix[4-9]*)
d7040cdb
SE
10872 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10873 test "$enable_shared" = yes && enable_static=no
10874 fi
10875 ;;
10876 esac
10877 echo "$as_me:$LINENO: result: $enable_shared" >&5
10878echo "${ECHO_T}$enable_shared" >&6
10879
10880 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10881echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10882 # Make sure either enable_shared or enable_static is yes.
10883 test "$enable_shared" = yes || enable_static=yes
10884 echo "$as_me:$LINENO: result: $enable_static" >&5
10885echo "${ECHO_T}$enable_static" >&6
10886
10887
10888
10889
10890fi
10891ac_ext=c
10892ac_cpp='$CPP $CPPFLAGS'
10893ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10894ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10895ac_compiler_gnu=$ac_cv_c_compiler_gnu
10896
10897CC="$lt_save_CC"
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911 ac_config_commands="$ac_config_commands libtool"
10912
10913
10914
10915
10916# Only expand once:
10917
10918
10919
10920# Check whether --enable-targets or --disable-targets was given.
10921if test "${enable_targets+set}" = set; then
10922 enableval="$enable_targets"
10923 case "${enableval}" in
10924 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
10925echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
10926 { (exit 1); exit 1; }; }
10927 ;;
10928 no) enable_targets= ;;
10929 *) enable_targets=$enableval ;;
10930esac
10931fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
10932if test "${enable_commonbfdlib+set}" = set; then
10933 enableval="$enable_commonbfdlib"
10934 case "${enableval}" in
10935 yes) commonbfdlib=true ;;
10936 no) commonbfdlib=false ;;
10937 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
10938echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
10939 { (exit 1); exit 1; }; } ;;
10940esac
10941fi;
10942
10943GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
10944
10945# Check whether --enable-werror or --disable-werror was given.
10946if test "${enable_werror+set}" = set; then
10947 enableval="$enable_werror"
10948 case "${enableval}" in
10949 yes | y) ERROR_ON_WARNING="yes" ;;
10950 no | n) ERROR_ON_WARNING="no" ;;
10951 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
10952echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
10953 { (exit 1); exit 1; }; } ;;
10954 esac
10955fi;
10956
bb8541b9
L
10957# Enable -Wno-format by default when using gcc on mingw
10958case "${host}" in
10959 *-*-mingw32*)
10960 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10961 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
10962 fi
10963 ;;
10964 *) ;;
10965esac
10966
d7040cdb
SE
10967# Enable -Werror by default when using gcc
10968if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10969 ERROR_ON_WARNING=yes
10970fi
10971
10972NO_WERROR=
10973if test "${ERROR_ON_WARNING}" = yes ; then
10974 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
10975 NO_WERROR="-Wno-error"
10976fi
10977
10978if test "${GCC}" = yes ; then
10979 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
10980fi
10981
10982# Check whether --enable-build-warnings or --disable-build-warnings was given.
10983if test "${enable_build_warnings+set}" = set; then
10984 enableval="$enable_build_warnings"
10985 case "${enableval}" in
10986 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
10987 no) if test "${GCC}" = yes ; then
10988 WARN_CFLAGS="-w"
10989 fi;;
10990 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10991 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
10992 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10993 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
10994 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
10995esac
10996fi;
10997
10998if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
10999 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
11000fi
11001
11002
11003
11004
11005
11006 ac_config_headers="$ac_config_headers config.h:config.in"
11007
11008
11009if test -z "$target" ; then
11010 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
11011echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
11012 { (exit 1); exit 1; }; }
11013fi
11014if test -z "$host" ; then
11015 { { echo "$as_me:$LINENO: error: Unrecognized host system type; please check config.sub." >&5
11016echo "$as_me: error: Unrecognized host system type; please check config.sub." >&2;}
11017 { (exit 1); exit 1; }; }
11018fi
11019
11020for ac_prog in 'bison -y' byacc
11021do
11022 # Extract the first word of "$ac_prog", so it can be a program name with args.
11023set dummy $ac_prog; ac_word=$2
11024echo "$as_me:$LINENO: checking for $ac_word" >&5
11025echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11026if test "${ac_cv_prog_YACC+set}" = set; then
11027 echo $ECHO_N "(cached) $ECHO_C" >&6
11028else
11029 if test -n "$YACC"; then
11030 ac_cv_prog_YACC="$YACC" # Let the user override the test.
11031else
11032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11033for as_dir in $PATH
11034do
11035 IFS=$as_save_IFS
11036 test -z "$as_dir" && as_dir=.
11037 for ac_exec_ext in '' $ac_executable_extensions; do
11038 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11039 ac_cv_prog_YACC="$ac_prog"
11040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11041 break 2
11042 fi
11043done
11044done
11045
11046fi
11047fi
11048YACC=$ac_cv_prog_YACC
11049if test -n "$YACC"; then
11050 echo "$as_me:$LINENO: result: $YACC" >&5
11051echo "${ECHO_T}$YACC" >&6
11052else
11053 echo "$as_me:$LINENO: result: no" >&5
11054echo "${ECHO_T}no" >&6
11055fi
11056
11057 test -n "$YACC" && break
11058done
11059test -n "$YACC" || YACC="yacc"
11060
11061for ac_prog in flex lex
11062do
11063 # Extract the first word of "$ac_prog", so it can be a program name with args.
11064set dummy $ac_prog; ac_word=$2
11065echo "$as_me:$LINENO: checking for $ac_word" >&5
11066echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11067if test "${ac_cv_prog_LEX+set}" = set; then
11068 echo $ECHO_N "(cached) $ECHO_C" >&6
11069else
11070 if test -n "$LEX"; then
11071 ac_cv_prog_LEX="$LEX" # Let the user override the test.
11072else
11073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11074for as_dir in $PATH
11075do
11076 IFS=$as_save_IFS
11077 test -z "$as_dir" && as_dir=.
11078 for ac_exec_ext in '' $ac_executable_extensions; do
11079 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11080 ac_cv_prog_LEX="$ac_prog"
11081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11082 break 2
11083 fi
11084done
11085done
11086
11087fi
11088fi
11089LEX=$ac_cv_prog_LEX
11090if test -n "$LEX"; then
11091 echo "$as_me:$LINENO: result: $LEX" >&5
11092echo "${ECHO_T}$LEX" >&6
11093else
11094 echo "$as_me:$LINENO: result: no" >&5
11095echo "${ECHO_T}no" >&6
11096fi
11097
11098 test -n "$LEX" && break
11099done
11100test -n "$LEX" || LEX=":"
11101
11102if test -z "$LEXLIB"
11103then
11104 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
11105echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
11106if test "${ac_cv_lib_fl_yywrap+set}" = set; then
11107 echo $ECHO_N "(cached) $ECHO_C" >&6
11108else
11109 ac_check_lib_save_LIBS=$LIBS
11110LIBS="-lfl $LIBS"
11111cat >conftest.$ac_ext <<_ACEOF
11112/* confdefs.h. */
11113_ACEOF
11114cat confdefs.h >>conftest.$ac_ext
11115cat >>conftest.$ac_ext <<_ACEOF
11116/* end confdefs.h. */
11117
11118/* Override any gcc2 internal prototype to avoid an error. */
11119#ifdef __cplusplus
11120extern "C"
11121#endif
11122/* We use char because int might match the return type of a gcc2
11123 builtin and then its argument prototype would still apply. */
11124char yywrap ();
11125int
11126main ()
11127{
11128yywrap ();
11129 ;
11130 return 0;
11131}
11132_ACEOF
11133rm -f conftest.$ac_objext conftest$ac_exeext
11134if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11135 (eval $ac_link) 2>conftest.er1
11136 ac_status=$?
11137 grep -v '^ *+' conftest.er1 >conftest.err
11138 rm -f conftest.er1
11139 cat conftest.err >&5
11140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141 (exit $ac_status); } &&
7357c5b6
AM
11142 { ac_try='test -z "$ac_c_werror_flag"
11143 || test ! -s conftest.err'
d7040cdb
SE
11144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11145 (eval $ac_try) 2>&5
11146 ac_status=$?
11147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11148 (exit $ac_status); }; } &&
11149 { ac_try='test -s conftest$ac_exeext'
11150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11151 (eval $ac_try) 2>&5
11152 ac_status=$?
11153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11154 (exit $ac_status); }; }; then
11155 ac_cv_lib_fl_yywrap=yes
11156else
11157 echo "$as_me: failed program was:" >&5
11158sed 's/^/| /' conftest.$ac_ext >&5
11159
11160ac_cv_lib_fl_yywrap=no
11161fi
11162rm -f conftest.err conftest.$ac_objext \
11163 conftest$ac_exeext conftest.$ac_ext
11164LIBS=$ac_check_lib_save_LIBS
11165fi
11166echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
11167echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
11168if test $ac_cv_lib_fl_yywrap = yes; then
11169 LEXLIB="-lfl"
11170else
11171 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
11172echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
11173if test "${ac_cv_lib_l_yywrap+set}" = set; then
11174 echo $ECHO_N "(cached) $ECHO_C" >&6
11175else
11176 ac_check_lib_save_LIBS=$LIBS
11177LIBS="-ll $LIBS"
11178cat >conftest.$ac_ext <<_ACEOF
11179/* confdefs.h. */
11180_ACEOF
11181cat confdefs.h >>conftest.$ac_ext
11182cat >>conftest.$ac_ext <<_ACEOF
11183/* end confdefs.h. */
11184
11185/* Override any gcc2 internal prototype to avoid an error. */
11186#ifdef __cplusplus
11187extern "C"
11188#endif
11189/* We use char because int might match the return type of a gcc2
11190 builtin and then its argument prototype would still apply. */
11191char yywrap ();
11192int
11193main ()
11194{
11195yywrap ();
11196 ;
11197 return 0;
11198}
11199_ACEOF
11200rm -f conftest.$ac_objext conftest$ac_exeext
11201if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11202 (eval $ac_link) 2>conftest.er1
11203 ac_status=$?
11204 grep -v '^ *+' conftest.er1 >conftest.err
11205 rm -f conftest.er1
11206 cat conftest.err >&5
11207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208 (exit $ac_status); } &&
7357c5b6
AM
11209 { ac_try='test -z "$ac_c_werror_flag"
11210 || test ! -s conftest.err'
d7040cdb
SE
11211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11212 (eval $ac_try) 2>&5
11213 ac_status=$?
11214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11215 (exit $ac_status); }; } &&
11216 { ac_try='test -s conftest$ac_exeext'
11217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11218 (eval $ac_try) 2>&5
11219 ac_status=$?
11220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11221 (exit $ac_status); }; }; then
11222 ac_cv_lib_l_yywrap=yes
11223else
11224 echo "$as_me: failed program was:" >&5
11225sed 's/^/| /' conftest.$ac_ext >&5
11226
11227ac_cv_lib_l_yywrap=no
11228fi
11229rm -f conftest.err conftest.$ac_objext \
11230 conftest$ac_exeext conftest.$ac_ext
11231LIBS=$ac_check_lib_save_LIBS
11232fi
11233echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
11234echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
11235if test $ac_cv_lib_l_yywrap = yes; then
11236 LEXLIB="-ll"
11237fi
11238
11239fi
11240
11241fi
11242
11243if test "x$LEX" != "x:"; then
11244 echo "$as_me:$LINENO: checking lex output file root" >&5
11245echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
11246if test "${ac_cv_prog_lex_root+set}" = set; then
11247 echo $ECHO_N "(cached) $ECHO_C" >&6
11248else
11249 # The minimal lex program is just a single line: %%. But some broken lexes
11250# (Solaris, I think it was) want two %% lines, so accommodate them.
11251cat >conftest.l <<_ACEOF
11252%%
11253%%
11254_ACEOF
11255{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
11256 (eval $LEX conftest.l) 2>&5
11257 ac_status=$?
11258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259 (exit $ac_status); }
11260if test -f lex.yy.c; then
11261 ac_cv_prog_lex_root=lex.yy
11262elif test -f lexyy.c; then
11263 ac_cv_prog_lex_root=lexyy
11264else
11265 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
11266echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
11267 { (exit 1); exit 1; }; }
11268fi
11269fi
11270echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
11271echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
11272rm -f conftest.l
11273LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
11274
11275echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
11276echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
11277if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
11278 echo $ECHO_N "(cached) $ECHO_C" >&6
11279else
11280 # POSIX says lex can declare yytext either as a pointer or an array; the
11281# default is implementation-dependent. Figure out which it is, since
11282# not all implementations provide the %pointer and %array declarations.
11283ac_cv_prog_lex_yytext_pointer=no
11284echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
11285ac_save_LIBS=$LIBS
11286LIBS="$LIBS $LEXLIB"
11287cat >conftest.$ac_ext <<_ACEOF
11288`cat $LEX_OUTPUT_ROOT.c`
11289_ACEOF
11290rm -f conftest.$ac_objext conftest$ac_exeext
11291if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11292 (eval $ac_link) 2>conftest.er1
11293 ac_status=$?
11294 grep -v '^ *+' conftest.er1 >conftest.err
11295 rm -f conftest.er1
11296 cat conftest.err >&5
11297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11298 (exit $ac_status); } &&
7357c5b6
AM
11299 { ac_try='test -z "$ac_c_werror_flag"
11300 || test ! -s conftest.err'
d7040cdb
SE
11301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11302 (eval $ac_try) 2>&5
11303 ac_status=$?
11304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11305 (exit $ac_status); }; } &&
11306 { ac_try='test -s conftest$ac_exeext'
11307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11308 (eval $ac_try) 2>&5
11309 ac_status=$?
11310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311 (exit $ac_status); }; }; then
11312 ac_cv_prog_lex_yytext_pointer=yes
11313else
11314 echo "$as_me: failed program was:" >&5
11315sed 's/^/| /' conftest.$ac_ext >&5
11316
11317fi
11318rm -f conftest.err conftest.$ac_objext \
11319 conftest$ac_exeext conftest.$ac_ext
11320LIBS=$ac_save_LIBS
11321rm -f "${LEX_OUTPUT_ROOT}.c"
11322
11323fi
11324echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
11325echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
11326if test $ac_cv_prog_lex_yytext_pointer = yes; then
11327
11328cat >>confdefs.h <<\_ACEOF
11329#define YYTEXT_POINTER 1
11330_ACEOF
11331
11332fi
11333
11334fi
11335if test "$LEX" = :; then
11336 LEX=${am_missing_run}flex
11337fi
11338
30b0f203 11339ALL_LINGUAS="fr tr ja es sv da zh_CN ru ro rw zh_TW fi vi uk sk"
d7040cdb
SE
11340# If we haven't got the data from the intl directory,
11341# assume NLS is disabled.
11342USE_NLS=no
11343LIBINTL=
11344LIBINTL_DEP=
11345INCINTL=
11346XGETTEXT=
11347GMSGFMT=
11348POSUB=
11349
11350if test -f ../intl/config.intl; then
11351 . ../intl/config.intl
11352fi
11353echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11354echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
11355if test x"$USE_NLS" != xyes; then
11356 echo "$as_me:$LINENO: result: no" >&5
11357echo "${ECHO_T}no" >&6
11358else
11359 echo "$as_me:$LINENO: result: yes" >&5
11360echo "${ECHO_T}yes" >&6
11361
11362cat >>confdefs.h <<\_ACEOF
11363#define ENABLE_NLS 1
11364_ACEOF
11365
11366
11367 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
11368echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
11369 # Look for .po and .gmo files in the source directory.
11370 CATALOGS=
11371 XLINGUAS=
11372 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11373 # If there aren't any .gmo files the shell will give us the
11374 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11375 # weeded out.
11376 case "$cat" in *\**)
11377 continue;;
11378 esac
11379 # The quadruple backslash is collapsed to a double backslash
11380 # by the backticks, then collapsed again by the double quotes,
11381 # leaving us with one backslash in the sed expression (right
11382 # before the dot that mustn't act as a wildcard).
11383 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11384 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11385 # The user is allowed to set LINGUAS to a list of languages to
11386 # install catalogs for. If it's empty that means "all of them."
11387 if test "x$LINGUAS" = x; then
11388 CATALOGS="$CATALOGS $cat"
11389 XLINGUAS="$XLINGUAS $lang"
11390 else
11391 case "$LINGUAS" in *$lang*)
11392 CATALOGS="$CATALOGS $cat"
11393 XLINGUAS="$XLINGUAS $lang"
11394 ;;
11395 esac
11396 fi
11397 done
11398 LINGUAS="$XLINGUAS"
11399 echo "$as_me:$LINENO: result: $LINGUAS" >&5
11400echo "${ECHO_T}$LINGUAS" >&6
11401
11402
11403 DATADIRNAME=share
11404
11405 INSTOBJEXT=.mo
11406
11407 GENCAT=gencat
11408
11409 CATOBJEXT=.gmo
11410
11411fi
11412
11413 MKINSTALLDIRS=
11414 if test -n "$ac_aux_dir"; then
11415 case "$ac_aux_dir" in
11416 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
11417 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
11418 esac
11419 fi
11420 if test -z "$MKINSTALLDIRS"; then
11421 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
11422 fi
11423
11424
11425
11426 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11427echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
11428 # Check whether --enable-nls or --disable-nls was given.
11429if test "${enable_nls+set}" = set; then
11430 enableval="$enable_nls"
11431 USE_NLS=$enableval
11432else
11433 USE_NLS=yes
11434fi;
11435 echo "$as_me:$LINENO: result: $USE_NLS" >&5
11436echo "${ECHO_T}$USE_NLS" >&6
11437
11438
11439
11440
11441
11442
11443# Prepare PATH_SEPARATOR.
11444# The user is always right.
11445if test "${PATH_SEPARATOR+set}" != set; then
11446 echo "#! /bin/sh" >conf$$.sh
11447 echo "exit 0" >>conf$$.sh
11448 chmod +x conf$$.sh
11449 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11450 PATH_SEPARATOR=';'
11451 else
11452 PATH_SEPARATOR=:
11453 fi
11454 rm -f conf$$.sh
11455fi
11456
11457# Find out how to test for executable files. Don't use a zero-byte file,
11458# as systems may use methods other than mode bits to determine executability.
11459cat >conf$$.file <<_ASEOF
11460#! /bin/sh
11461exit 0
11462_ASEOF
11463chmod +x conf$$.file
11464if test -x conf$$.file >/dev/null 2>&1; then
11465 ac_executable_p="test -x"
11466else
11467 ac_executable_p="test -f"
11468fi
11469rm -f conf$$.file
11470
11471# Extract the first word of "msgfmt", so it can be a program name with args.
11472set dummy msgfmt; ac_word=$2
11473echo "$as_me:$LINENO: checking for $ac_word" >&5
11474echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11475if test "${ac_cv_path_MSGFMT+set}" = set; then
11476 echo $ECHO_N "(cached) $ECHO_C" >&6
11477else
11478 case "$MSGFMT" in
11479 [\\/]* | ?:[\\/]*)
11480 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11481 ;;
11482 *)
11483 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11484 for ac_dir in $PATH; do
11485 IFS="$ac_save_IFS"
11486 test -z "$ac_dir" && ac_dir=.
11487 for ac_exec_ext in '' $ac_executable_extensions; do
11488 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11489 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
11490 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11491 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
11492 break 2
11493 fi
11494 fi
11495 done
11496 done
11497 IFS="$ac_save_IFS"
11498 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11499 ;;
11500esac
11501fi
11502MSGFMT="$ac_cv_path_MSGFMT"
11503if test "$MSGFMT" != ":"; then
11504 echo "$as_me:$LINENO: result: $MSGFMT" >&5
11505echo "${ECHO_T}$MSGFMT" >&6
11506else
11507 echo "$as_me:$LINENO: result: no" >&5
11508echo "${ECHO_T}no" >&6
11509fi
11510
11511 # Extract the first word of "gmsgfmt", so it can be a program name with args.
11512set dummy gmsgfmt; ac_word=$2
11513echo "$as_me:$LINENO: checking for $ac_word" >&5
11514echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11515if test "${ac_cv_path_GMSGFMT+set}" = set; then
11516 echo $ECHO_N "(cached) $ECHO_C" >&6
11517else
11518 case $GMSGFMT in
11519 [\\/]* | ?:[\\/]*)
11520 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11521 ;;
11522 *)
11523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11524for as_dir in $PATH
11525do
11526 IFS=$as_save_IFS
11527 test -z "$as_dir" && as_dir=.
11528 for ac_exec_ext in '' $ac_executable_extensions; do
11529 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11530 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
11531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11532 break 2
11533 fi
11534done
11535done
11536
11537 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11538 ;;
11539esac
11540fi
11541GMSGFMT=$ac_cv_path_GMSGFMT
11542
11543if test -n "$GMSGFMT"; then
11544 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
11545echo "${ECHO_T}$GMSGFMT" >&6
11546else
11547 echo "$as_me:$LINENO: result: no" >&5
11548echo "${ECHO_T}no" >&6
11549fi
11550
11551
11552
11553# Prepare PATH_SEPARATOR.
11554# The user is always right.
11555if test "${PATH_SEPARATOR+set}" != set; then
11556 echo "#! /bin/sh" >conf$$.sh
11557 echo "exit 0" >>conf$$.sh
11558 chmod +x conf$$.sh
11559 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11560 PATH_SEPARATOR=';'
11561 else
11562 PATH_SEPARATOR=:
11563 fi
11564 rm -f conf$$.sh
11565fi
11566
11567# Find out how to test for executable files. Don't use a zero-byte file,
11568# as systems may use methods other than mode bits to determine executability.
11569cat >conf$$.file <<_ASEOF
11570#! /bin/sh
11571exit 0
11572_ASEOF
11573chmod +x conf$$.file
11574if test -x conf$$.file >/dev/null 2>&1; then
11575 ac_executable_p="test -x"
11576else
11577 ac_executable_p="test -f"
11578fi
11579rm -f conf$$.file
11580
11581# Extract the first word of "xgettext", so it can be a program name with args.
11582set dummy xgettext; ac_word=$2
11583echo "$as_me:$LINENO: checking for $ac_word" >&5
11584echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11585if test "${ac_cv_path_XGETTEXT+set}" = set; then
11586 echo $ECHO_N "(cached) $ECHO_C" >&6
11587else
11588 case "$XGETTEXT" in
11589 [\\/]* | ?:[\\/]*)
11590 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11591 ;;
11592 *)
11593 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11594 for ac_dir in $PATH; do
11595 IFS="$ac_save_IFS"
11596 test -z "$ac_dir" && ac_dir=.
11597 for ac_exec_ext in '' $ac_executable_extensions; do
11598 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11599 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11600 (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
11601 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
11602 break 2
11603 fi
11604 fi
11605 done
11606 done
11607 IFS="$ac_save_IFS"
11608 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11609 ;;
11610esac
11611fi
11612XGETTEXT="$ac_cv_path_XGETTEXT"
11613if test "$XGETTEXT" != ":"; then
11614 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
11615echo "${ECHO_T}$XGETTEXT" >&6
11616else
11617 echo "$as_me:$LINENO: result: no" >&5
11618echo "${ECHO_T}no" >&6
11619fi
11620
11621 rm -f messages.po
11622
11623
11624# Prepare PATH_SEPARATOR.
11625# The user is always right.
11626if test "${PATH_SEPARATOR+set}" != set; then
11627 echo "#! /bin/sh" >conf$$.sh
11628 echo "exit 0" >>conf$$.sh
11629 chmod +x conf$$.sh
11630 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11631 PATH_SEPARATOR=';'
11632 else
11633 PATH_SEPARATOR=:
11634 fi
11635 rm -f conf$$.sh
11636fi
11637
11638# Find out how to test for executable files. Don't use a zero-byte file,
11639# as systems may use methods other than mode bits to determine executability.
11640cat >conf$$.file <<_ASEOF
11641#! /bin/sh
11642exit 0
11643_ASEOF
11644chmod +x conf$$.file
11645if test -x conf$$.file >/dev/null 2>&1; then
11646 ac_executable_p="test -x"
11647else
11648 ac_executable_p="test -f"
11649fi
11650rm -f conf$$.file
11651
11652# Extract the first word of "msgmerge", so it can be a program name with args.
11653set dummy msgmerge; ac_word=$2
11654echo "$as_me:$LINENO: checking for $ac_word" >&5
11655echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11656if test "${ac_cv_path_MSGMERGE+set}" = set; then
11657 echo $ECHO_N "(cached) $ECHO_C" >&6
11658else
11659 case "$MSGMERGE" in
11660 [\\/]* | ?:[\\/]*)
11661 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11662 ;;
11663 *)
11664 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11665 for ac_dir in $PATH; do
11666 IFS="$ac_save_IFS"
11667 test -z "$ac_dir" && ac_dir=.
11668 for ac_exec_ext in '' $ac_executable_extensions; do
11669 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11670 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
11671 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11672 break 2
11673 fi
11674 fi
11675 done
11676 done
11677 IFS="$ac_save_IFS"
11678 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11679 ;;
11680esac
11681fi
11682MSGMERGE="$ac_cv_path_MSGMERGE"
11683if test "$MSGMERGE" != ":"; then
11684 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
11685echo "${ECHO_T}$MSGMERGE" >&6
11686else
11687 echo "$as_me:$LINENO: result: no" >&5
11688echo "${ECHO_T}no" >&6
11689fi
11690
11691
11692 if test "$GMSGFMT" != ":"; then
11693 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
11694 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11695 : ;
11696 else
11697 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
11698 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
11699echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
11700 GMSGFMT=":"
11701 fi
11702 fi
11703
11704 if test "$XGETTEXT" != ":"; then
11705 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11706 (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
11707 : ;
11708 else
11709 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
11710echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
11711 XGETTEXT=":"
11712 fi
11713 rm -f messages.po
11714 fi
11715
11716 ac_config_commands="$ac_config_commands default-1"
11717
11718
11719
11720echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11721echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11722 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11723if test "${enable_maintainer_mode+set}" = set; then
11724 enableval="$enable_maintainer_mode"
11725 USE_MAINTAINER_MODE=$enableval
42ecbf5e 11726else
d7040cdb
SE
11727 USE_MAINTAINER_MODE=no
11728fi;
11729 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
11730echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
42ecbf5e 11731
d7040cdb
SE
11732
11733if test $USE_MAINTAINER_MODE = yes; then
11734 MAINTAINER_MODE_TRUE=
11735 MAINTAINER_MODE_FALSE='#'
11736else
11737 MAINTAINER_MODE_TRUE='#'
11738 MAINTAINER_MODE_FALSE=
42ecbf5e 11739fi
d7040cdb
SE
11740
11741 MAINT=$MAINTAINER_MODE_TRUE
11742
11743
11744
11745
11746if false; then
11747 GENINSRC_NEVER_TRUE=
11748 GENINSRC_NEVER_FALSE='#'
11749else
11750 GENINSRC_NEVER_TRUE='#'
11751 GENINSRC_NEVER_FALSE=
42ecbf5e 11752fi
d7040cdb
SE
11753
11754
11755if test -n "$EXEEXT"; then
20e95c23
DJ
11756
11757cat >>confdefs.h <<\_ACEOF
d7040cdb 11758#define HAVE_EXECUTABLE_SUFFIX 1
20e95c23 11759_ACEOF
42ecbf5e 11760
252b5132
RH
11761fi
11762
d7040cdb
SE
11763cat >>confdefs.h <<_ACEOF
11764#define EXECUTABLE_SUFFIX "${EXEEXT}"
11765_ACEOF
42ecbf5e 11766
252b5132 11767
d7040cdb 11768# host-specific stuff:
252b5132 11769
d7040cdb 11770HDEFINES=
252b5132 11771
d7040cdb 11772. ${srcdir}/../bfd/configure.host
252b5132 11773
252b5132 11774
d7040cdb 11775AR=${AR-ar}
252b5132 11776
d7040cdb
SE
11777if test -n "$ac_tool_prefix"; then
11778 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11779set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11780echo "$as_me:$LINENO: checking for $ac_word" >&5
11781echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11782if test "${ac_cv_prog_RANLIB+set}" = set; then
11783 echo $ECHO_N "(cached) $ECHO_C" >&6
11784else
11785 if test -n "$RANLIB"; then
11786 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11787else
11788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11789for as_dir in $PATH
11790do
11791 IFS=$as_save_IFS
11792 test -z "$as_dir" && as_dir=.
11793 for ac_exec_ext in '' $ac_executable_extensions; do
11794 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11795 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11797 break 2
11798 fi
11799done
11800done
252b5132 11801
d7040cdb
SE
11802fi
11803fi
11804RANLIB=$ac_cv_prog_RANLIB
11805if test -n "$RANLIB"; then
11806 echo "$as_me:$LINENO: result: $RANLIB" >&5
11807echo "${ECHO_T}$RANLIB" >&6
11808else
11809 echo "$as_me:$LINENO: result: no" >&5
11810echo "${ECHO_T}no" >&6
11811fi
20e95c23 11812
d7040cdb
SE
11813fi
11814if test -z "$ac_cv_prog_RANLIB"; then
11815 ac_ct_RANLIB=$RANLIB
11816 # Extract the first word of "ranlib", so it can be a program name with args.
11817set dummy ranlib; ac_word=$2
11818echo "$as_me:$LINENO: checking for $ac_word" >&5
11819echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11820if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
42ecbf5e 11821 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11822else
d7040cdb
SE
11823 if test -n "$ac_ct_RANLIB"; then
11824 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11825else
11826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11827for as_dir in $PATH
11828do
11829 IFS=$as_save_IFS
11830 test -z "$as_dir" && as_dir=.
11831 for ac_exec_ext in '' $ac_executable_extensions; do
11832 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11833 ac_cv_prog_ac_ct_RANLIB="ranlib"
11834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11835 break 2
11836 fi
11837done
11838done
20e95c23 11839
d7040cdb
SE
11840 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11841fi
11842fi
11843ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11844if test -n "$ac_ct_RANLIB"; then
11845 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11846echo "${ECHO_T}$ac_ct_RANLIB" >&6
20e95c23 11847else
d7040cdb
SE
11848 echo "$as_me:$LINENO: result: no" >&5
11849echo "${ECHO_T}no" >&6
11850fi
11851
11852 RANLIB=$ac_ct_RANLIB
11853else
11854 RANLIB="$ac_cv_prog_RANLIB"
11855fi
11856
11857# Find a good install program. We prefer a C program (faster),
11858# so one script is as good as another. But avoid the broken or
11859# incompatible versions:
11860# SysV /etc/install, /usr/sbin/install
11861# SunOS /usr/etc/install
11862# IRIX /sbin/install
11863# AIX /bin/install
11864# AmigaOS /C/install, which installs bootblocks on floppy discs
11865# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11866# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11867# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11868# OS/2's system install, which has a completely different semantic
11869# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 11870# Reject install programs that cannot install multiple files.
d7040cdb
SE
11871echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11872echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11873if test -z "$INSTALL"; then
11874if test "${ac_cv_path_install+set}" = set; then
11875 echo $ECHO_N "(cached) $ECHO_C" >&6
11876else
11877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11878for as_dir in $PATH
11879do
11880 IFS=$as_save_IFS
11881 test -z "$as_dir" && as_dir=.
11882 # Account for people who put trailing slashes in PATH elements.
11883case $as_dir/ in
11884 ./ | .// | /cC/* | \
11885 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11886 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11887 /usr/ucb/* ) ;;
11888 *)
11889 # OSF1 and SCO ODT 3.0 have their own names for install.
11890 # Don't use installbsd from OSF since it installs stuff as root
11891 # by default.
11892 for ac_prog in ginstall scoinst install; do
11893 for ac_exec_ext in '' $ac_executable_extensions; do
11894 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11895 if test $ac_prog = install &&
11896 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11897 # AIX install. It has an incompatible calling convention.
11898 :
11899 elif test $ac_prog = install &&
11900 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11901 # program-specific install script used by HP pwplus--don't use.
11902 :
11903 else
58c85be7
RW
11904 rm -rf conftest.one conftest.two conftest.dir
11905 echo one > conftest.one
11906 echo two > conftest.two
11907 mkdir conftest.dir
11908 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
11909 test -s conftest.one && test -s conftest.two &&
11910 test -s conftest.dir/conftest.one &&
11911 test -s conftest.dir/conftest.two
11912 then
11913 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11914 break 3
11915 fi
d7040cdb
SE
11916 fi
11917 fi
11918 done
11919 done
11920 ;;
11921esac
11922done
11923
58c85be7 11924rm -rf conftest.one conftest.two conftest.dir
d7040cdb
SE
11925
11926fi
11927 if test "${ac_cv_path_install+set}" = set; then
11928 INSTALL=$ac_cv_path_install
11929 else
58c85be7
RW
11930 # As a last resort, use the slow shell script. Don't cache a
11931 # value for INSTALL within a source directory, because that will
d7040cdb 11932 # break other packages using the cache if that directory is
58c85be7 11933 # removed, or if the value is a relative name.
d7040cdb
SE
11934 INSTALL=$ac_install_sh
11935 fi
11936fi
11937echo "$as_me:$LINENO: result: $INSTALL" >&5
11938echo "${ECHO_T}$INSTALL" >&6
11939
11940# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11941# It thinks the first close brace ends the variable substitution.
11942test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11943
11944test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11945
11946test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11947
11948
11949# Put a plausible default for CC_FOR_BUILD in Makefile.
11950if test -z "$CC_FOR_BUILD"; then
11951 if test "x$cross_compiling" = "xno"; then
11952 CC_FOR_BUILD='$(CC)'
11953 else
11954 CC_FOR_BUILD=gcc
11955 fi
11956fi
20e95c23 11957
d7040cdb
SE
11958# Also set EXEEXT_FOR_BUILD.
11959if test "x$cross_compiling" = "xno"; then
11960 EXEEXT_FOR_BUILD='$(EXEEXT)'
11961else
11962 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
11963echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
11964if test "${bfd_cv_build_exeext+set}" = set; then
11965 echo $ECHO_N "(cached) $ECHO_C" >&6
11966else
11967 rm -f conftest*
11968 echo 'int main () { return 0; }' > conftest.c
11969 bfd_cv_build_exeext=
11970 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
11971 for file in conftest.*; do
11972 case $file in
11973 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
11974 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
11975 esac
11976 done
11977 rm -f conftest*
11978 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
252b5132 11979fi
d7040cdb
SE
11980echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
11981echo "${ECHO_T}$bfd_cv_build_exeext" >&6
11982 EXEEXT_FOR_BUILD=""
11983 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
252b5132
RH
11984fi
11985
11986
d7040cdb
SE
11987DEMANGLER_NAME=c++filt
11988case "${host}" in
11989 *-*-go32* | *-*-msdos*)
11990 DEMANGLER_NAME=cxxfilt
11991esac
8a965946
ILT
11992
11993
42ecbf5e
DJ
11994
11995
11996
11997
11998
11999
f8eae8b2
L
12000
12001
12002for ac_header in string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h limits.h sys/param.h
252b5132 12003do
42ecbf5e
DJ
12004as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12005if eval "test \"\${$as_ac_Header+set}\" = set"; then
12006 echo "$as_me:$LINENO: checking for $ac_header" >&5
12007echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12008if eval "test \"\${$as_ac_Header+set}\" = set"; then
12009 echo $ECHO_N "(cached) $ECHO_C" >&6
12010fi
12011echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12012echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12013else
12014 # Is the header compilable?
12015echo "$as_me:$LINENO: checking $ac_header usability" >&5
12016echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12017cat >conftest.$ac_ext <<_ACEOF
12018/* confdefs.h. */
12019_ACEOF
12020cat confdefs.h >>conftest.$ac_ext
12021cat >>conftest.$ac_ext <<_ACEOF
12022/* end confdefs.h. */
12023$ac_includes_default
12024#include <$ac_header>
12025_ACEOF
12026rm -f conftest.$ac_objext
12027if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12028 (eval $ac_compile) 2>conftest.er1
12029 ac_status=$?
12030 grep -v '^ *+' conftest.er1 >conftest.err
12031 rm -f conftest.er1
12032 cat conftest.err >&5
12033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12034 (exit $ac_status); } &&
7357c5b6
AM
12035 { ac_try='test -z "$ac_c_werror_flag"
12036 || test ! -s conftest.err'
42ecbf5e
DJ
12037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12038 (eval $ac_try) 2>&5
12039 ac_status=$?
12040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041 (exit $ac_status); }; } &&
12042 { ac_try='test -s conftest.$ac_objext'
12043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12044 (eval $ac_try) 2>&5
12045 ac_status=$?
12046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047 (exit $ac_status); }; }; then
12048 ac_header_compiler=yes
12049else
12050 echo "$as_me: failed program was:" >&5
12051sed 's/^/| /' conftest.$ac_ext >&5
12052
12053ac_header_compiler=no
12054fi
12055rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12056echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12057echo "${ECHO_T}$ac_header_compiler" >&6
12058
12059# Is the header present?
12060echo "$as_me:$LINENO: checking $ac_header presence" >&5
12061echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12062cat >conftest.$ac_ext <<_ACEOF
12063/* confdefs.h. */
12064_ACEOF
12065cat confdefs.h >>conftest.$ac_ext
12066cat >>conftest.$ac_ext <<_ACEOF
12067/* end confdefs.h. */
12068#include <$ac_header>
12069_ACEOF
12070if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12071 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12072 ac_status=$?
12073 grep -v '^ *+' conftest.er1 >conftest.err
12074 rm -f conftest.er1
12075 cat conftest.err >&5
12076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12077 (exit $ac_status); } >/dev/null; then
12078 if test -s conftest.err; then
12079 ac_cpp_err=$ac_c_preproc_warn_flag
12080 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12081 else
12082 ac_cpp_err=
12083 fi
252b5132 12084else
42ecbf5e 12085 ac_cpp_err=yes
252b5132 12086fi
42ecbf5e
DJ
12087if test -z "$ac_cpp_err"; then
12088 ac_header_preproc=yes
12089else
12090 echo "$as_me: failed program was:" >&5
12091sed 's/^/| /' conftest.$ac_ext >&5
12092
12093 ac_header_preproc=no
252b5132 12094fi
42ecbf5e
DJ
12095rm -f conftest.err conftest.$ac_ext
12096echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12097echo "${ECHO_T}$ac_header_preproc" >&6
12098
12099# So? What about this header?
12100case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12101 yes:no: )
12102 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12103echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12104 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12105echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12106 ac_header_preproc=yes
12107 ;;
12108 no:yes:* )
12109 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12110echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12111 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12112echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12113 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12114echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12115 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12116echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12117 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12118echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12119 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12120echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12121 (
12122 cat <<\_ASBOX
12123## ------------------------------------------ ##
12124## Report this to the AC_PACKAGE_NAME lists. ##
12125## ------------------------------------------ ##
12126_ASBOX
12127 ) |
12128 sed "s/^/$as_me: WARNING: /" >&2
12129 ;;
12130esac
12131echo "$as_me:$LINENO: checking for $ac_header" >&5
12132echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12133if eval "test \"\${$as_ac_Header+set}\" = set"; then
12134 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12135else
42ecbf5e
DJ
12136 eval "$as_ac_Header=\$ac_header_preproc"
12137fi
12138echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12139echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12140
252b5132 12141fi
42ecbf5e
DJ
12142if test `eval echo '${'$as_ac_Header'}'` = yes; then
12143 cat >>confdefs.h <<_ACEOF
12144#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12145_ACEOF
12146
12147fi
12148
252b5132
RH
12149done
12150
42ecbf5e
DJ
12151echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
12152echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
12153if test "${ac_cv_header_sys_wait_h+set}" = set; then
12154 echo $ECHO_N "(cached) $ECHO_C" >&6
12155else
12156 cat >conftest.$ac_ext <<_ACEOF
12157/* confdefs.h. */
12158_ACEOF
12159cat confdefs.h >>conftest.$ac_ext
12160cat >>conftest.$ac_ext <<_ACEOF
12161/* end confdefs.h. */
252b5132
RH
12162#include <sys/types.h>
12163#include <sys/wait.h>
12164#ifndef WEXITSTATUS
42ecbf5e 12165# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
252b5132
RH
12166#endif
12167#ifndef WIFEXITED
42ecbf5e 12168# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
252b5132 12169#endif
42ecbf5e
DJ
12170
12171int
12172main ()
12173{
12174 int s;
12175 wait (&s);
12176 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
12177 ;
12178 return 0;
12179}
12180_ACEOF
12181rm -f conftest.$ac_objext
12182if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12183 (eval $ac_compile) 2>conftest.er1
12184 ac_status=$?
12185 grep -v '^ *+' conftest.er1 >conftest.err
12186 rm -f conftest.er1
12187 cat conftest.err >&5
12188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12189 (exit $ac_status); } &&
7357c5b6
AM
12190 { ac_try='test -z "$ac_c_werror_flag"
12191 || test ! -s conftest.err'
42ecbf5e
DJ
12192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12193 (eval $ac_try) 2>&5
12194 ac_status=$?
12195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12196 (exit $ac_status); }; } &&
12197 { ac_try='test -s conftest.$ac_objext'
12198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12199 (eval $ac_try) 2>&5
12200 ac_status=$?
12201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12202 (exit $ac_status); }; }; then
252b5132
RH
12203 ac_cv_header_sys_wait_h=yes
12204else
42ecbf5e
DJ
12205 echo "$as_me: failed program was:" >&5
12206sed 's/^/| /' conftest.$ac_ext >&5
12207
12208ac_cv_header_sys_wait_h=no
252b5132 12209fi
42ecbf5e 12210rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 12211fi
42ecbf5e
DJ
12212echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
12213echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
d15b04bd 12214if test $ac_cv_header_sys_wait_h = yes; then
42ecbf5e
DJ
12215
12216cat >>confdefs.h <<\_ACEOF
252b5132 12217#define HAVE_SYS_WAIT_H 1
42ecbf5e 12218_ACEOF
252b5132
RH
12219
12220fi
12221
12222# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12223# for constant arguments. Useless!
42ecbf5e
DJ
12224echo "$as_me:$LINENO: checking for working alloca.h" >&5
12225echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
12226if test "${ac_cv_working_alloca_h+set}" = set; then
12227 echo $ECHO_N "(cached) $ECHO_C" >&6
12228else
12229 cat >conftest.$ac_ext <<_ACEOF
12230/* confdefs.h. */
12231_ACEOF
12232cat confdefs.h >>conftest.$ac_ext
12233cat >>conftest.$ac_ext <<_ACEOF
12234/* end confdefs.h. */
252b5132 12235#include <alloca.h>
42ecbf5e
DJ
12236int
12237main ()
12238{
12239char *p = (char *) alloca (2 * sizeof (int));
12240 ;
12241 return 0;
12242}
12243_ACEOF
12244rm -f conftest.$ac_objext conftest$ac_exeext
12245if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12246 (eval $ac_link) 2>conftest.er1
12247 ac_status=$?
12248 grep -v '^ *+' conftest.er1 >conftest.err
12249 rm -f conftest.er1
12250 cat conftest.err >&5
12251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12252 (exit $ac_status); } &&
7357c5b6
AM
12253 { ac_try='test -z "$ac_c_werror_flag"
12254 || test ! -s conftest.err'
42ecbf5e
DJ
12255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12256 (eval $ac_try) 2>&5
12257 ac_status=$?
12258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12259 (exit $ac_status); }; } &&
12260 { ac_try='test -s conftest$ac_exeext'
12261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12262 (eval $ac_try) 2>&5
12263 ac_status=$?
12264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12265 (exit $ac_status); }; }; then
12266 ac_cv_working_alloca_h=yes
12267else
12268 echo "$as_me: failed program was:" >&5
12269sed 's/^/| /' conftest.$ac_ext >&5
12270
12271ac_cv_working_alloca_h=no
12272fi
12273rm -f conftest.err conftest.$ac_objext \
12274 conftest$ac_exeext conftest.$ac_ext
12275fi
12276echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12277echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
12278if test $ac_cv_working_alloca_h = yes; then
12279
12280cat >>confdefs.h <<\_ACEOF
252b5132 12281#define HAVE_ALLOCA_H 1
42ecbf5e 12282_ACEOF
252b5132
RH
12283
12284fi
12285
42ecbf5e
DJ
12286echo "$as_me:$LINENO: checking for alloca" >&5
12287echo $ECHO_N "checking for alloca... $ECHO_C" >&6
12288if test "${ac_cv_func_alloca_works+set}" = set; then
12289 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12290else
42ecbf5e
DJ
12291 cat >conftest.$ac_ext <<_ACEOF
12292/* confdefs.h. */
12293_ACEOF
12294cat confdefs.h >>conftest.$ac_ext
12295cat >>conftest.$ac_ext <<_ACEOF
12296/* end confdefs.h. */
252b5132
RH
12297#ifdef __GNUC__
12298# define alloca __builtin_alloca
12299#else
12300# ifdef _MSC_VER
12301# include <malloc.h>
12302# define alloca _alloca
12303# else
12304# if HAVE_ALLOCA_H
12305# include <alloca.h>
12306# else
12307# ifdef _AIX
12308 #pragma alloca
12309# else
12310# ifndef alloca /* predefined by HP cc +Olibcalls */
12311char *alloca ();
12312# endif
12313# endif
12314# endif
12315# endif
12316#endif
12317
42ecbf5e
DJ
12318int
12319main ()
12320{
12321char *p = (char *) alloca (1);
12322 ;
12323 return 0;
12324}
12325_ACEOF
12326rm -f conftest.$ac_objext conftest$ac_exeext
12327if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12328 (eval $ac_link) 2>conftest.er1
12329 ac_status=$?
12330 grep -v '^ *+' conftest.er1 >conftest.err
12331 rm -f conftest.er1
12332 cat conftest.err >&5
12333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12334 (exit $ac_status); } &&
7357c5b6
AM
12335 { ac_try='test -z "$ac_c_werror_flag"
12336 || test ! -s conftest.err'
42ecbf5e
DJ
12337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12338 (eval $ac_try) 2>&5
12339 ac_status=$?
12340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12341 (exit $ac_status); }; } &&
12342 { ac_try='test -s conftest$ac_exeext'
12343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12344 (eval $ac_try) 2>&5
12345 ac_status=$?
12346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12347 (exit $ac_status); }; }; then
252b5132
RH
12348 ac_cv_func_alloca_works=yes
12349else
42ecbf5e
DJ
12350 echo "$as_me: failed program was:" >&5
12351sed 's/^/| /' conftest.$ac_ext >&5
12352
12353ac_cv_func_alloca_works=no
252b5132 12354fi
42ecbf5e
DJ
12355rm -f conftest.err conftest.$ac_objext \
12356 conftest$ac_exeext conftest.$ac_ext
252b5132 12357fi
42ecbf5e
DJ
12358echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12359echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
252b5132 12360
252b5132 12361if test $ac_cv_func_alloca_works = yes; then
e5a52504 12362
42ecbf5e
DJ
12363cat >>confdefs.h <<\_ACEOF
12364#define HAVE_ALLOCA 1
12365_ACEOF
e5a52504 12366
42ecbf5e 12367else
d15b04bd 12368 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
42ecbf5e
DJ
12369# that cause trouble. Some versions do not even contain alloca or
12370# contain a buggy version. If you still want to use their alloca,
12371# use ar to extract alloca.o from them instead of compiling alloca.c.
12372
12373ALLOCA=alloca.$ac_objext
12374
12375cat >>confdefs.h <<\_ACEOF
252b5132 12376#define C_ALLOCA 1
42ecbf5e 12377_ACEOF
252b5132
RH
12378
12379
42ecbf5e
DJ
12380echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12381echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
12382if test "${ac_cv_os_cray+set}" = set; then
12383 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12384else
42ecbf5e
DJ
12385 cat >conftest.$ac_ext <<_ACEOF
12386/* confdefs.h. */
12387_ACEOF
12388cat confdefs.h >>conftest.$ac_ext
12389cat >>conftest.$ac_ext <<_ACEOF
12390/* end confdefs.h. */
252b5132
RH
12391#if defined(CRAY) && ! defined(CRAY2)
12392webecray
12393#else
12394wenotbecray
12395#endif
12396
42ecbf5e 12397_ACEOF
252b5132 12398if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42ecbf5e 12399 $EGREP "webecray" >/dev/null 2>&1; then
252b5132
RH
12400 ac_cv_os_cray=yes
12401else
252b5132
RH
12402 ac_cv_os_cray=no
12403fi
12404rm -f conftest*
12405
12406fi
42ecbf5e
DJ
12407echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12408echo "${ECHO_T}$ac_cv_os_cray" >&6
d15b04bd 12409if test $ac_cv_os_cray = yes; then
42ecbf5e
DJ
12410 for ac_func in _getb67 GETB67 getb67; do
12411 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12412echo "$as_me:$LINENO: checking for $ac_func" >&5
12413echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12414if eval "test \"\${$as_ac_var+set}\" = set"; then
12415 echo $ECHO_N "(cached) $ECHO_C" >&6
12416else
12417 cat >conftest.$ac_ext <<_ACEOF
12418/* confdefs.h. */
12419_ACEOF
12420cat confdefs.h >>conftest.$ac_ext
12421cat >>conftest.$ac_ext <<_ACEOF
12422/* end confdefs.h. */
12423/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12424 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12425#define $ac_func innocuous_$ac_func
12426
252b5132 12427/* System header to define __stub macros and hopefully few prototypes,
42ecbf5e
DJ
12428 which can conflict with char $ac_func (); below.
12429 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12430 <limits.h> exists even on freestanding compilers. */
12431
12432#ifdef __STDC__
12433# include <limits.h>
12434#else
12435# include <assert.h>
12436#endif
d15b04bd 12437
42ecbf5e 12438#undef $ac_func
d15b04bd 12439
42ecbf5e
DJ
12440/* Override any gcc2 internal prototype to avoid an error. */
12441#ifdef __cplusplus
12442extern "C"
12443{
12444#endif
12445/* We use char because int might match the return type of a gcc2
12446 builtin and then its argument prototype would still apply. */
12447char $ac_func ();
252b5132
RH
12448/* The GNU C library defines this for functions which it implements
12449 to always fail with ENOSYS. Some functions are actually named
12450 something starting with __ and the normal name is an alias. */
12451#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12452choke me
12453#else
42ecbf5e
DJ
12454char (*f) () = $ac_func;
12455#endif
12456#ifdef __cplusplus
12457}
252b5132
RH
12458#endif
12459
42ecbf5e
DJ
12460int
12461main ()
12462{
12463return f != $ac_func;
12464 ;
12465 return 0;
12466}
12467_ACEOF
12468rm -f conftest.$ac_objext conftest$ac_exeext
12469if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12470 (eval $ac_link) 2>conftest.er1
12471 ac_status=$?
12472 grep -v '^ *+' conftest.er1 >conftest.err
12473 rm -f conftest.er1
12474 cat conftest.err >&5
12475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12476 (exit $ac_status); } &&
7357c5b6
AM
12477 { ac_try='test -z "$ac_c_werror_flag"
12478 || test ! -s conftest.err'
42ecbf5e
DJ
12479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12480 (eval $ac_try) 2>&5
12481 ac_status=$?
12482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12483 (exit $ac_status); }; } &&
12484 { ac_try='test -s conftest$ac_exeext'
12485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12486 (eval $ac_try) 2>&5
12487 ac_status=$?
12488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12489 (exit $ac_status); }; }; then
12490 eval "$as_ac_var=yes"
12491else
12492 echo "$as_me: failed program was:" >&5
12493sed 's/^/| /' conftest.$ac_ext >&5
12494
12495eval "$as_ac_var=no"
12496fi
12497rm -f conftest.err conftest.$ac_objext \
12498 conftest$ac_exeext conftest.$ac_ext
12499fi
12500echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12501echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12502if test `eval echo '${'$as_ac_var'}'` = yes; then
12503
12504cat >>confdefs.h <<_ACEOF
252b5132 12505#define CRAY_STACKSEG_END $ac_func
42ecbf5e 12506_ACEOF
252b5132 12507
42ecbf5e 12508 break
252b5132
RH
12509fi
12510
42ecbf5e 12511 done
252b5132
RH
12512fi
12513
42ecbf5e
DJ
12514echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
12515echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
12516if test "${ac_cv_c_stack_direction+set}" = set; then
12517 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
12518else
12519 if test "$cross_compiling" = yes; then
12520 ac_cv_c_stack_direction=0
12521else
42ecbf5e
DJ
12522 cat >conftest.$ac_ext <<_ACEOF
12523/* confdefs.h. */
12524_ACEOF
12525cat confdefs.h >>conftest.$ac_ext
12526cat >>conftest.$ac_ext <<_ACEOF
12527/* end confdefs.h. */
12528int
252b5132
RH
12529find_stack_direction ()
12530{
12531 static char *addr = 0;
12532 auto char dummy;
12533 if (addr == 0)
12534 {
12535 addr = &dummy;
12536 return find_stack_direction ();
12537 }
12538 else
12539 return (&dummy > addr) ? 1 : -1;
12540}
42ecbf5e
DJ
12541
12542int
252b5132
RH
12543main ()
12544{
42ecbf5e 12545 exit (find_stack_direction () < 0);
252b5132 12546}
42ecbf5e
DJ
12547_ACEOF
12548rm -f conftest$ac_exeext
12549if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12550 (eval $ac_link) 2>&5
12551 ac_status=$?
12552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12553 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12555 (eval $ac_try) 2>&5
12556 ac_status=$?
12557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12558 (exit $ac_status); }; }; then
252b5132
RH
12559 ac_cv_c_stack_direction=1
12560else
42ecbf5e
DJ
12561 echo "$as_me: program exited with status $ac_status" >&5
12562echo "$as_me: failed program was:" >&5
12563sed 's/^/| /' conftest.$ac_ext >&5
12564
12565( exit $ac_status )
12566ac_cv_c_stack_direction=-1
252b5132 12567fi
42ecbf5e 12568rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 12569fi
252b5132 12570fi
42ecbf5e
DJ
12571echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
12572echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
252b5132 12573
42ecbf5e 12574cat >>confdefs.h <<_ACEOF
252b5132 12575#define STACK_DIRECTION $ac_cv_c_stack_direction
42ecbf5e
DJ
12576_ACEOF
12577
252b5132
RH
12578
12579fi
12580
42ecbf5e
DJ
12581
12582
12583
12584
12585
9710509e 12586for ac_func in sbrk utimes setmode getc_unlocked strcoll
252b5132 12587do
42ecbf5e
DJ
12588as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12589echo "$as_me:$LINENO: checking for $ac_func" >&5
12590echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12591if eval "test \"\${$as_ac_var+set}\" = set"; then
12592 echo $ECHO_N "(cached) $ECHO_C" >&6
12593else
12594 cat >conftest.$ac_ext <<_ACEOF
12595/* confdefs.h. */
12596_ACEOF
12597cat confdefs.h >>conftest.$ac_ext
12598cat >>conftest.$ac_ext <<_ACEOF
12599/* end confdefs.h. */
12600/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12601 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12602#define $ac_func innocuous_$ac_func
12603
252b5132 12604/* System header to define __stub macros and hopefully few prototypes,
42ecbf5e
DJ
12605 which can conflict with char $ac_func (); below.
12606 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12607 <limits.h> exists even on freestanding compilers. */
12608
12609#ifdef __STDC__
12610# include <limits.h>
12611#else
12612# include <assert.h>
12613#endif
d15b04bd 12614
42ecbf5e 12615#undef $ac_func
d15b04bd 12616
42ecbf5e
DJ
12617/* Override any gcc2 internal prototype to avoid an error. */
12618#ifdef __cplusplus
12619extern "C"
12620{
12621#endif
12622/* We use char because int might match the return type of a gcc2
12623 builtin and then its argument prototype would still apply. */
12624char $ac_func ();
252b5132
RH
12625/* The GNU C library defines this for functions which it implements
12626 to always fail with ENOSYS. Some functions are actually named
12627 something starting with __ and the normal name is an alias. */
12628#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12629choke me
12630#else
42ecbf5e
DJ
12631char (*f) () = $ac_func;
12632#endif
12633#ifdef __cplusplus
12634}
252b5132
RH
12635#endif
12636
42ecbf5e
DJ
12637int
12638main ()
12639{
12640return f != $ac_func;
12641 ;
12642 return 0;
12643}
12644_ACEOF
12645rm -f conftest.$ac_objext conftest$ac_exeext
12646if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12647 (eval $ac_link) 2>conftest.er1
12648 ac_status=$?
12649 grep -v '^ *+' conftest.er1 >conftest.err
12650 rm -f conftest.er1
12651 cat conftest.err >&5
12652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653 (exit $ac_status); } &&
7357c5b6
AM
12654 { ac_try='test -z "$ac_c_werror_flag"
12655 || test ! -s conftest.err'
42ecbf5e
DJ
12656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12657 (eval $ac_try) 2>&5
12658 ac_status=$?
12659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12660 (exit $ac_status); }; } &&
12661 { ac_try='test -s conftest$ac_exeext'
12662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12663 (eval $ac_try) 2>&5
12664 ac_status=$?
12665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12666 (exit $ac_status); }; }; then
12667 eval "$as_ac_var=yes"
12668else
12669 echo "$as_me: failed program was:" >&5
12670sed 's/^/| /' conftest.$ac_ext >&5
12671
12672eval "$as_ac_var=no"
12673fi
12674rm -f conftest.err conftest.$ac_objext \
12675 conftest$ac_exeext conftest.$ac_ext
12676fi
12677echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12678echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12679if test `eval echo '${'$as_ac_var'}'` = yes; then
12680 cat >>confdefs.h <<_ACEOF
12681#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12682_ACEOF
252b5132 12683
252b5132
RH
12684fi
12685done
12686
f9c026a8
NC
12687echo "$as_me:$LINENO: checking for mkstemp" >&5
12688echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
12689if test "${ac_cv_func_mkstemp+set}" = set; then
12690 echo $ECHO_N "(cached) $ECHO_C" >&6
12691else
12692 cat >conftest.$ac_ext <<_ACEOF
12693/* confdefs.h. */
12694_ACEOF
12695cat confdefs.h >>conftest.$ac_ext
12696cat >>conftest.$ac_ext <<_ACEOF
12697/* end confdefs.h. */
12698/* Define mkstemp to an innocuous variant, in case <limits.h> declares mkstemp.
12699 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12700#define mkstemp innocuous_mkstemp
12701
12702/* System header to define __stub macros and hopefully few prototypes,
12703 which can conflict with char mkstemp (); below.
12704 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12705 <limits.h> exists even on freestanding compilers. */
12706
12707#ifdef __STDC__
12708# include <limits.h>
12709#else
12710# include <assert.h>
12711#endif
12712
12713#undef mkstemp
12714
12715/* Override any gcc2 internal prototype to avoid an error. */
12716#ifdef __cplusplus
12717extern "C"
12718{
12719#endif
12720/* We use char because int might match the return type of a gcc2
12721 builtin and then its argument prototype would still apply. */
12722char mkstemp ();
12723/* The GNU C library defines this for functions which it implements
12724 to always fail with ENOSYS. Some functions are actually named
12725 something starting with __ and the normal name is an alias. */
12726#if defined (__stub_mkstemp) || defined (__stub___mkstemp)
12727choke me
12728#else
12729char (*f) () = mkstemp;
12730#endif
12731#ifdef __cplusplus
12732}
12733#endif
12734
12735int
12736main ()
12737{
12738return f != mkstemp;
12739 ;
12740 return 0;
12741}
12742_ACEOF
12743rm -f conftest.$ac_objext conftest$ac_exeext
12744if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12745 (eval $ac_link) 2>conftest.er1
12746 ac_status=$?
12747 grep -v '^ *+' conftest.er1 >conftest.err
12748 rm -f conftest.er1
12749 cat conftest.err >&5
12750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751 (exit $ac_status); } &&
7357c5b6
AM
12752 { ac_try='test -z "$ac_c_werror_flag"
12753 || test ! -s conftest.err'
f9c026a8
NC
12754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12755 (eval $ac_try) 2>&5
12756 ac_status=$?
12757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758 (exit $ac_status); }; } &&
12759 { ac_try='test -s conftest$ac_exeext'
12760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12761 (eval $ac_try) 2>&5
12762 ac_status=$?
12763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764 (exit $ac_status); }; }; then
12765 ac_cv_func_mkstemp=yes
12766else
12767 echo "$as_me: failed program was:" >&5
12768sed 's/^/| /' conftest.$ac_ext >&5
12769
12770ac_cv_func_mkstemp=no
12771fi
12772rm -f conftest.err conftest.$ac_objext \
12773 conftest$ac_exeext conftest.$ac_ext
12774fi
12775echo "$as_me:$LINENO: result: $ac_cv_func_mkstemp" >&5
12776echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
12777if test $ac_cv_func_mkstemp = yes; then
12778
12779cat >>confdefs.h <<\_ACEOF
12780#define HAVE_MKSTEMP 1
12781_ACEOF
12782
12783fi
12784
12785echo "$as_me:$LINENO: checking for mkdtemp" >&5
12786echo $ECHO_N "checking for mkdtemp... $ECHO_C" >&6
12787if test "${ac_cv_func_mkdtemp+set}" = set; then
12788 echo $ECHO_N "(cached) $ECHO_C" >&6
12789else
12790 cat >conftest.$ac_ext <<_ACEOF
12791/* confdefs.h. */
12792_ACEOF
12793cat confdefs.h >>conftest.$ac_ext
12794cat >>conftest.$ac_ext <<_ACEOF
12795/* end confdefs.h. */
12796/* Define mkdtemp to an innocuous variant, in case <limits.h> declares mkdtemp.
12797 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12798#define mkdtemp innocuous_mkdtemp
12799
12800/* System header to define __stub macros and hopefully few prototypes,
12801 which can conflict with char mkdtemp (); below.
12802 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12803 <limits.h> exists even on freestanding compilers. */
12804
12805#ifdef __STDC__
12806# include <limits.h>
12807#else
12808# include <assert.h>
12809#endif
12810
12811#undef mkdtemp
12812
12813/* Override any gcc2 internal prototype to avoid an error. */
12814#ifdef __cplusplus
12815extern "C"
12816{
12817#endif
12818/* We use char because int might match the return type of a gcc2
12819 builtin and then its argument prototype would still apply. */
12820char mkdtemp ();
12821/* The GNU C library defines this for functions which it implements
12822 to always fail with ENOSYS. Some functions are actually named
12823 something starting with __ and the normal name is an alias. */
12824#if defined (__stub_mkdtemp) || defined (__stub___mkdtemp)
12825choke me
12826#else
12827char (*f) () = mkdtemp;
12828#endif
12829#ifdef __cplusplus
12830}
12831#endif
12832
12833int
12834main ()
12835{
12836return f != mkdtemp;
12837 ;
12838 return 0;
12839}
12840_ACEOF
12841rm -f conftest.$ac_objext conftest$ac_exeext
12842if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12843 (eval $ac_link) 2>conftest.er1
12844 ac_status=$?
12845 grep -v '^ *+' conftest.er1 >conftest.err
12846 rm -f conftest.er1
12847 cat conftest.err >&5
12848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12849 (exit $ac_status); } &&
7357c5b6
AM
12850 { ac_try='test -z "$ac_c_werror_flag"
12851 || test ! -s conftest.err'
f9c026a8
NC
12852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12853 (eval $ac_try) 2>&5
12854 ac_status=$?
12855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856 (exit $ac_status); }; } &&
12857 { ac_try='test -s conftest$ac_exeext'
12858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12859 (eval $ac_try) 2>&5
12860 ac_status=$?
12861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12862 (exit $ac_status); }; }; then
12863 ac_cv_func_mkdtemp=yes
12864else
12865 echo "$as_me: failed program was:" >&5
12866sed 's/^/| /' conftest.$ac_ext >&5
12867
12868ac_cv_func_mkdtemp=no
12869fi
12870rm -f conftest.err conftest.$ac_objext \
12871 conftest$ac_exeext conftest.$ac_ext
12872fi
12873echo "$as_me:$LINENO: result: $ac_cv_func_mkdtemp" >&5
12874echo "${ECHO_T}$ac_cv_func_mkdtemp" >&6
12875if test $ac_cv_func_mkdtemp = yes; then
12876
12877cat >>confdefs.h <<\_ACEOF
12878#define HAVE_MKDTEMP 1
12879_ACEOF
12880
12881fi
12882
252b5132 12883
cedd9a58
JJ
12884# Check whether fopen64 is available and whether _LARGEFILE64_SOURCE
12885# needs to be defined for it
42ecbf5e
DJ
12886echo "$as_me:$LINENO: checking for fopen64" >&5
12887echo $ECHO_N "checking for fopen64... $ECHO_C" >&6
12888if test "${bu_cv_have_fopen64+set}" = set; then
12889 echo $ECHO_N "(cached) $ECHO_C" >&6
12890else
12891 cat >conftest.$ac_ext <<_ACEOF
12892/* confdefs.h. */
12893_ACEOF
12894cat confdefs.h >>conftest.$ac_ext
12895cat >>conftest.$ac_ext <<_ACEOF
12896/* end confdefs.h. */
cedd9a58 12897#include <stdio.h>
42ecbf5e
DJ
12898int
12899main ()
12900{
cedd9a58 12901FILE *f = fopen64 ("/tmp/foo","r");
42ecbf5e
DJ
12902 ;
12903 return 0;
12904}
12905_ACEOF
12906rm -f conftest.$ac_objext conftest$ac_exeext
12907if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12908 (eval $ac_link) 2>conftest.er1
12909 ac_status=$?
12910 grep -v '^ *+' conftest.er1 >conftest.err
12911 rm -f conftest.er1
12912 cat conftest.err >&5
12913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914 (exit $ac_status); } &&
7357c5b6
AM
12915 { ac_try='test -z "$ac_c_werror_flag"
12916 || test ! -s conftest.err'
42ecbf5e
DJ
12917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12918 (eval $ac_try) 2>&5
12919 ac_status=$?
12920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12921 (exit $ac_status); }; } &&
12922 { ac_try='test -s conftest$ac_exeext'
12923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12924 (eval $ac_try) 2>&5
12925 ac_status=$?
12926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12927 (exit $ac_status); }; }; then
cedd9a58
JJ
12928 bu_cv_have_fopen64=yes
12929else
42ecbf5e
DJ
12930 echo "$as_me: failed program was:" >&5
12931sed 's/^/| /' conftest.$ac_ext >&5
12932
12933saved_CPPFLAGS=$CPPFLAGS
cedd9a58 12934 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
42ecbf5e
DJ
12935 cat >conftest.$ac_ext <<_ACEOF
12936/* confdefs.h. */
12937_ACEOF
12938cat confdefs.h >>conftest.$ac_ext
12939cat >>conftest.$ac_ext <<_ACEOF
12940/* end confdefs.h. */
cedd9a58 12941#include <stdio.h>
42ecbf5e
DJ
12942int
12943main ()
12944{
cedd9a58 12945FILE *f = fopen64 ("/tmp/foo","r");
42ecbf5e
DJ
12946 ;
12947 return 0;
12948}
12949_ACEOF
12950rm -f conftest.$ac_objext conftest$ac_exeext
12951if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12952 (eval $ac_link) 2>conftest.er1
12953 ac_status=$?
12954 grep -v '^ *+' conftest.er1 >conftest.err
12955 rm -f conftest.er1
12956 cat conftest.err >&5
12957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12958 (exit $ac_status); } &&
7357c5b6
AM
12959 { ac_try='test -z "$ac_c_werror_flag"
12960 || test ! -s conftest.err'
42ecbf5e
DJ
12961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12962 (eval $ac_try) 2>&5
12963 ac_status=$?
12964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12965 (exit $ac_status); }; } &&
12966 { ac_try='test -s conftest$ac_exeext'
12967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12968 (eval $ac_try) 2>&5
12969 ac_status=$?
12970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12971 (exit $ac_status); }; }; then
cedd9a58
JJ
12972 bu_cv_have_fopen64="need -D_LARGEFILE64_SOURCE"
12973else
42ecbf5e
DJ
12974 echo "$as_me: failed program was:" >&5
12975sed 's/^/| /' conftest.$ac_ext >&5
12976
12977bu_cv_have_fopen64=no
cedd9a58 12978fi
42ecbf5e
DJ
12979rm -f conftest.err conftest.$ac_objext \
12980 conftest$ac_exeext conftest.$ac_ext
17a5a5c3 12981 CPPFLAGS=$saved_CPPFLAGS
cedd9a58 12982fi
42ecbf5e
DJ
12983rm -f conftest.err conftest.$ac_objext \
12984 conftest$ac_exeext conftest.$ac_ext
cedd9a58 12985fi
cedd9a58 12986
42ecbf5e
DJ
12987echo "$as_me:$LINENO: result: $bu_cv_have_fopen64" >&5
12988echo "${ECHO_T}$bu_cv_have_fopen64" >&6
6db7a086 12989if test "$bu_cv_have_fopen64" != no; then
42ecbf5e
DJ
12990
12991cat >>confdefs.h <<\_ACEOF
cedd9a58 12992#define HAVE_FOPEN64 1
42ecbf5e 12993_ACEOF
cedd9a58 12994
fb5b5478 12995fi
42ecbf5e
DJ
12996echo "$as_me:$LINENO: checking for stat64" >&5
12997echo $ECHO_N "checking for stat64... $ECHO_C" >&6
12998if test "${bu_cv_have_stat64+set}" = set; then
12999 echo $ECHO_N "(cached) $ECHO_C" >&6
fb5b5478 13000else
42ecbf5e
DJ
13001 cat >conftest.$ac_ext <<_ACEOF
13002/* confdefs.h. */
13003_ACEOF
13004cat confdefs.h >>conftest.$ac_ext
13005cat >>conftest.$ac_ext <<_ACEOF
13006/* end confdefs.h. */
fb5b5478 13007#include <sys/stat.h>
42ecbf5e
DJ
13008int
13009main ()
13010{
fb5b5478 13011struct stat64 st; stat64 ("/tmp/foo", &st);
42ecbf5e
DJ
13012 ;
13013 return 0;
13014}
13015_ACEOF
13016rm -f conftest.$ac_objext conftest$ac_exeext
13017if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13018 (eval $ac_link) 2>conftest.er1
13019 ac_status=$?
13020 grep -v '^ *+' conftest.er1 >conftest.err
13021 rm -f conftest.er1
13022 cat conftest.err >&5
13023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13024 (exit $ac_status); } &&
7357c5b6
AM
13025 { ac_try='test -z "$ac_c_werror_flag"
13026 || test ! -s conftest.err'
42ecbf5e
DJ
13027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13028 (eval $ac_try) 2>&5
13029 ac_status=$?
13030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13031 (exit $ac_status); }; } &&
13032 { ac_try='test -s conftest$ac_exeext'
13033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13034 (eval $ac_try) 2>&5
13035 ac_status=$?
13036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13037 (exit $ac_status); }; }; then
fb5b5478
JJ
13038 bu_cv_have_stat64=yes
13039else
42ecbf5e
DJ
13040 echo "$as_me: failed program was:" >&5
13041sed 's/^/| /' conftest.$ac_ext >&5
13042
13043saved_CPPFLAGS=$CPPFLAGS
fb5b5478 13044 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
42ecbf5e
DJ
13045 cat >conftest.$ac_ext <<_ACEOF
13046/* confdefs.h. */
13047_ACEOF
13048cat confdefs.h >>conftest.$ac_ext
13049cat >>conftest.$ac_ext <<_ACEOF
13050/* end confdefs.h. */
fb5b5478 13051#include <sys/stat.h>
42ecbf5e
DJ
13052int
13053main ()
13054{
fb5b5478 13055struct stat64 st; stat64 ("/tmp/foo", &st);
42ecbf5e
DJ
13056 ;
13057 return 0;
13058}
13059_ACEOF
13060rm -f conftest.$ac_objext conftest$ac_exeext
13061if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13062 (eval $ac_link) 2>conftest.er1
13063 ac_status=$?
13064 grep -v '^ *+' conftest.er1 >conftest.err
13065 rm -f conftest.er1
13066 cat conftest.err >&5
13067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13068 (exit $ac_status); } &&
7357c5b6
AM
13069 { ac_try='test -z "$ac_c_werror_flag"
13070 || test ! -s conftest.err'
42ecbf5e
DJ
13071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13072 (eval $ac_try) 2>&5
13073 ac_status=$?
13074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13075 (exit $ac_status); }; } &&
13076 { ac_try='test -s conftest$ac_exeext'
13077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13078 (eval $ac_try) 2>&5
13079 ac_status=$?
13080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13081 (exit $ac_status); }; }; then
fb5b5478
JJ
13082 bu_cv_have_stat64="need -D_LARGEFILE64_SOURCE"
13083else
42ecbf5e
DJ
13084 echo "$as_me: failed program was:" >&5
13085sed 's/^/| /' conftest.$ac_ext >&5
13086
13087bu_cv_have_stat64=no
fb5b5478 13088fi
42ecbf5e
DJ
13089rm -f conftest.err conftest.$ac_objext \
13090 conftest$ac_exeext conftest.$ac_ext
fb5b5478
JJ
13091 CPPFLAGS=$saved_CPPFLAGS
13092fi
42ecbf5e
DJ
13093rm -f conftest.err conftest.$ac_objext \
13094 conftest$ac_exeext conftest.$ac_ext
fb5b5478
JJ
13095fi
13096
42ecbf5e
DJ
13097echo "$as_me:$LINENO: result: $bu_cv_have_stat64" >&5
13098echo "${ECHO_T}$bu_cv_have_stat64" >&6
fb5b5478 13099if test "$bu_cv_have_stat64" != no; then
42ecbf5e
DJ
13100
13101cat >>confdefs.h <<\_ACEOF
fb5b5478 13102#define HAVE_STAT64 1
42ecbf5e 13103_ACEOF
fb5b5478
JJ
13104
13105fi
13106if test "$bu_cv_have_fopen64" = "need -D_LARGEFILE64_SOURCE" \
13107 || test "$bu_cv_have_stat64" = "need -D_LARGEFILE64_SOURCE"; then
42ecbf5e
DJ
13108
13109cat >>confdefs.h <<\_ACEOF
cedd9a58 13110#define _LARGEFILE64_SOURCE 1
42ecbf5e 13111_ACEOF
cedd9a58 13112
fb5b5478 13113 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
cedd9a58
JJ
13114fi
13115
f353eb8a 13116# Some systems have frexp only in -lm, not in -lc.
42ecbf5e
DJ
13117echo "$as_me:$LINENO: checking for library containing frexp" >&5
13118echo $ECHO_N "checking for library containing frexp... $ECHO_C" >&6
13119if test "${ac_cv_search_frexp+set}" = set; then
13120 echo $ECHO_N "(cached) $ECHO_C" >&6
13121else
13122 ac_func_search_save_LIBS=$LIBS
13123ac_cv_search_frexp=no
13124cat >conftest.$ac_ext <<_ACEOF
13125/* confdefs.h. */
13126_ACEOF
13127cat confdefs.h >>conftest.$ac_ext
13128cat >>conftest.$ac_ext <<_ACEOF
13129/* end confdefs.h. */
f353eb8a 13130
f353eb8a 13131/* Override any gcc2 internal prototype to avoid an error. */
42ecbf5e
DJ
13132#ifdef __cplusplus
13133extern "C"
13134#endif
f353eb8a 13135/* We use char because int might match the return type of a gcc2
42ecbf5e
DJ
13136 builtin and then its argument prototype would still apply. */
13137char frexp ();
13138int
13139main ()
13140{
13141frexp ();
13142 ;
13143 return 0;
13144}
13145_ACEOF
13146rm -f conftest.$ac_objext conftest$ac_exeext
13147if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13148 (eval $ac_link) 2>conftest.er1
13149 ac_status=$?
13150 grep -v '^ *+' conftest.er1 >conftest.err
13151 rm -f conftest.er1
13152 cat conftest.err >&5
13153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13154 (exit $ac_status); } &&
7357c5b6
AM
13155 { ac_try='test -z "$ac_c_werror_flag"
13156 || test ! -s conftest.err'
42ecbf5e
DJ
13157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13158 (eval $ac_try) 2>&5
13159 ac_status=$?
13160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161 (exit $ac_status); }; } &&
13162 { ac_try='test -s conftest$ac_exeext'
13163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13164 (eval $ac_try) 2>&5
13165 ac_status=$?
13166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167 (exit $ac_status); }; }; then
f353eb8a
ILT
13168 ac_cv_search_frexp="none required"
13169else
42ecbf5e
DJ
13170 echo "$as_me: failed program was:" >&5
13171sed 's/^/| /' conftest.$ac_ext >&5
13172
f353eb8a 13173fi
42ecbf5e
DJ
13174rm -f conftest.err conftest.$ac_objext \
13175 conftest$ac_exeext conftest.$ac_ext
13176if test "$ac_cv_search_frexp" = no; then
13177 for ac_lib in m; do
13178 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13179 cat >conftest.$ac_ext <<_ACEOF
13180/* confdefs.h. */
13181_ACEOF
13182cat confdefs.h >>conftest.$ac_ext
13183cat >>conftest.$ac_ext <<_ACEOF
13184/* end confdefs.h. */
13185
f353eb8a 13186/* Override any gcc2 internal prototype to avoid an error. */
42ecbf5e
DJ
13187#ifdef __cplusplus
13188extern "C"
13189#endif
f353eb8a 13190/* We use char because int might match the return type of a gcc2
42ecbf5e
DJ
13191 builtin and then its argument prototype would still apply. */
13192char frexp ();
13193int
13194main ()
13195{
13196frexp ();
13197 ;
13198 return 0;
13199}
13200_ACEOF
13201rm -f conftest.$ac_objext conftest$ac_exeext
13202if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13203 (eval $ac_link) 2>conftest.er1
13204 ac_status=$?
13205 grep -v '^ *+' conftest.er1 >conftest.err
13206 rm -f conftest.er1
13207 cat conftest.err >&5
13208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13209 (exit $ac_status); } &&
7357c5b6
AM
13210 { ac_try='test -z "$ac_c_werror_flag"
13211 || test ! -s conftest.err'
42ecbf5e
DJ
13212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13213 (eval $ac_try) 2>&5
13214 ac_status=$?
13215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216 (exit $ac_status); }; } &&
13217 { ac_try='test -s conftest$ac_exeext'
13218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13219 (eval $ac_try) 2>&5
13220 ac_status=$?
13221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13222 (exit $ac_status); }; }; then
13223 ac_cv_search_frexp="-l$ac_lib"
f353eb8a
ILT
13224break
13225else
42ecbf5e
DJ
13226 echo "$as_me: failed program was:" >&5
13227sed 's/^/| /' conftest.$ac_ext >&5
13228
f353eb8a 13229fi
42ecbf5e
DJ
13230rm -f conftest.err conftest.$ac_objext \
13231 conftest$ac_exeext conftest.$ac_ext
13232 done
e5a52504 13233fi
42ecbf5e
DJ
13234LIBS=$ac_func_search_save_LIBS
13235fi
13236echo "$as_me:$LINENO: result: $ac_cv_search_frexp" >&5
13237echo "${ECHO_T}$ac_cv_search_frexp" >&6
13238if test "$ac_cv_search_frexp" != no; then
d15b04bd 13239 test "$ac_cv_search_frexp" = "none required" || LIBS="$ac_cv_search_frexp $LIBS"
42ecbf5e 13240
f353eb8a
ILT
13241fi
13242
42ecbf5e
DJ
13243
13244echo "$as_me:$LINENO: checking for time_t in time.h" >&5
13245echo $ECHO_N "checking for time_t in time.h... $ECHO_C" >&6
13246if test "${bu_cv_decl_time_t_time_h+set}" = set; then
13247 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 13248else
42ecbf5e
DJ
13249 cat >conftest.$ac_ext <<_ACEOF
13250/* confdefs.h. */
13251_ACEOF
13252cat confdefs.h >>conftest.$ac_ext
13253cat >>conftest.$ac_ext <<_ACEOF
13254/* end confdefs.h. */
252b5132 13255#include <time.h>
42ecbf5e
DJ
13256int
13257main ()
13258{
252b5132 13259time_t i;
42ecbf5e
DJ
13260 ;
13261 return 0;
13262}
13263_ACEOF
13264rm -f conftest.$ac_objext
13265if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13266 (eval $ac_compile) 2>conftest.er1
13267 ac_status=$?
13268 grep -v '^ *+' conftest.er1 >conftest.err
13269 rm -f conftest.er1
13270 cat conftest.err >&5
13271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272 (exit $ac_status); } &&
7357c5b6
AM
13273 { ac_try='test -z "$ac_c_werror_flag"
13274 || test ! -s conftest.err'
42ecbf5e
DJ
13275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13276 (eval $ac_try) 2>&5
13277 ac_status=$?
13278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13279 (exit $ac_status); }; } &&
13280 { ac_try='test -s conftest.$ac_objext'
13281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13282 (eval $ac_try) 2>&5
13283 ac_status=$?
13284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13285 (exit $ac_status); }; }; then
252b5132
RH
13286 bu_cv_decl_time_t_time_h=yes
13287else
42ecbf5e
DJ
13288 echo "$as_me: failed program was:" >&5
13289sed 's/^/| /' conftest.$ac_ext >&5
13290
13291bu_cv_decl_time_t_time_h=no
252b5132 13292fi
42ecbf5e 13293rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
13294fi
13295
42ecbf5e
DJ
13296echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_time_h" >&5
13297echo "${ECHO_T}$bu_cv_decl_time_t_time_h" >&6
252b5132 13298if test $bu_cv_decl_time_t_time_h = yes; then
42ecbf5e
DJ
13299
13300cat >>confdefs.h <<\_ACEOF
252b5132 13301#define HAVE_TIME_T_IN_TIME_H 1
42ecbf5e 13302_ACEOF
252b5132
RH
13303
13304fi
13305
42ecbf5e
DJ
13306echo "$as_me:$LINENO: checking for time_t in sys/types.h" >&5
13307echo $ECHO_N "checking for time_t in sys/types.h... $ECHO_C" >&6
13308if test "${bu_cv_decl_time_t_types_h+set}" = set; then
13309 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 13310else
42ecbf5e
DJ
13311 cat >conftest.$ac_ext <<_ACEOF
13312/* confdefs.h. */
13313_ACEOF
13314cat confdefs.h >>conftest.$ac_ext
13315cat >>conftest.$ac_ext <<_ACEOF
13316/* end confdefs.h. */
252b5132 13317#include <sys/types.h>
42ecbf5e
DJ
13318int
13319main ()
13320{
252b5132 13321time_t i;
42ecbf5e
DJ
13322 ;
13323 return 0;
13324}
13325_ACEOF
13326rm -f conftest.$ac_objext
13327if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13328 (eval $ac_compile) 2>conftest.er1
13329 ac_status=$?
13330 grep -v '^ *+' conftest.er1 >conftest.err
13331 rm -f conftest.er1
13332 cat conftest.err >&5
13333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13334 (exit $ac_status); } &&
7357c5b6
AM
13335 { ac_try='test -z "$ac_c_werror_flag"
13336 || test ! -s conftest.err'
42ecbf5e
DJ
13337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13338 (eval $ac_try) 2>&5
13339 ac_status=$?
13340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13341 (exit $ac_status); }; } &&
13342 { ac_try='test -s conftest.$ac_objext'
13343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13344 (eval $ac_try) 2>&5
13345 ac_status=$?
13346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13347 (exit $ac_status); }; }; then
252b5132
RH
13348 bu_cv_decl_time_t_types_h=yes
13349else
42ecbf5e
DJ
13350 echo "$as_me: failed program was:" >&5
13351sed 's/^/| /' conftest.$ac_ext >&5
13352
13353bu_cv_decl_time_t_types_h=no
252b5132 13354fi
42ecbf5e 13355rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
13356fi
13357
42ecbf5e
DJ
13358echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_types_h" >&5
13359echo "${ECHO_T}$bu_cv_decl_time_t_types_h" >&6
252b5132 13360if test $bu_cv_decl_time_t_types_h = yes; then
42ecbf5e
DJ
13361
13362cat >>confdefs.h <<\_ACEOF
252b5132 13363#define HAVE_TIME_T_IN_TYPES_H 1
42ecbf5e 13364_ACEOF
252b5132
RH
13365
13366fi
13367
42ecbf5e
DJ
13368echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
13369echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
13370if test "${bu_cv_decl_getopt_unistd_h+set}" = set; then
13371 echo $ECHO_N "(cached) $ECHO_C" >&6
e46eba98 13372else
42ecbf5e
DJ
13373 cat >conftest.$ac_ext <<_ACEOF
13374/* confdefs.h. */
13375_ACEOF
13376cat confdefs.h >>conftest.$ac_ext
13377cat >>conftest.$ac_ext <<_ACEOF
13378/* end confdefs.h. */
e46eba98 13379#include <unistd.h>
42ecbf5e
DJ
13380int
13381main ()
13382{
e46eba98 13383extern int getopt (int, char *const*, const char *);
42ecbf5e
DJ
13384 ;
13385 return 0;
13386}
13387_ACEOF
13388rm -f conftest.$ac_objext
13389if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13390 (eval $ac_compile) 2>conftest.er1
13391 ac_status=$?
13392 grep -v '^ *+' conftest.er1 >conftest.err
13393 rm -f conftest.er1
13394 cat conftest.err >&5
13395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396 (exit $ac_status); } &&
7357c5b6
AM
13397 { ac_try='test -z "$ac_c_werror_flag"
13398 || test ! -s conftest.err'
42ecbf5e
DJ
13399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13400 (eval $ac_try) 2>&5
13401 ac_status=$?
13402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13403 (exit $ac_status); }; } &&
13404 { ac_try='test -s conftest.$ac_objext'
13405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13406 (eval $ac_try) 2>&5
13407 ac_status=$?
13408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13409 (exit $ac_status); }; }; then
e46eba98
NC
13410 bu_cv_decl_getopt_unistd_h=yes
13411else
42ecbf5e
DJ
13412 echo "$as_me: failed program was:" >&5
13413sed 's/^/| /' conftest.$ac_ext >&5
13414
13415bu_cv_decl_getopt_unistd_h=no
e46eba98 13416fi
42ecbf5e 13417rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e46eba98
NC
13418fi
13419
42ecbf5e
DJ
13420echo "$as_me:$LINENO: result: $bu_cv_decl_getopt_unistd_h" >&5
13421echo "${ECHO_T}$bu_cv_decl_getopt_unistd_h" >&6
e46eba98 13422if test $bu_cv_decl_getopt_unistd_h = yes; then
42ecbf5e
DJ
13423
13424cat >>confdefs.h <<\_ACEOF
e46eba98 13425#define HAVE_DECL_GETOPT 1
42ecbf5e 13426_ACEOF
e46eba98
NC
13427
13428fi
13429
252b5132
RH
13430# Under Next 3.2 <utime.h> apparently does not define struct utimbuf
13431# by default.
42ecbf5e
DJ
13432echo "$as_me:$LINENO: checking for utime.h" >&5
13433echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
13434if test "${bu_cv_header_utime_h+set}" = set; then
13435 echo $ECHO_N "(cached) $ECHO_C" >&6
13436else
13437 cat >conftest.$ac_ext <<_ACEOF
13438/* confdefs.h. */
13439_ACEOF
13440cat confdefs.h >>conftest.$ac_ext
13441cat >>conftest.$ac_ext <<_ACEOF
13442/* end confdefs.h. */
252b5132
RH
13443#include <sys/types.h>
13444#ifdef HAVE_TIME_H
13445#include <time.h>
13446#endif
13447#include <utime.h>
42ecbf5e
DJ
13448int
13449main ()
13450{
252b5132 13451struct utimbuf s;
42ecbf5e
DJ
13452 ;
13453 return 0;
13454}
13455_ACEOF
13456rm -f conftest.$ac_objext
13457if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13458 (eval $ac_compile) 2>conftest.er1
13459 ac_status=$?
13460 grep -v '^ *+' conftest.er1 >conftest.err
13461 rm -f conftest.er1
13462 cat conftest.err >&5
13463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13464 (exit $ac_status); } &&
7357c5b6
AM
13465 { ac_try='test -z "$ac_c_werror_flag"
13466 || test ! -s conftest.err'
42ecbf5e
DJ
13467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13468 (eval $ac_try) 2>&5
13469 ac_status=$?
13470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13471 (exit $ac_status); }; } &&
13472 { ac_try='test -s conftest.$ac_objext'
13473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13474 (eval $ac_try) 2>&5
13475 ac_status=$?
13476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13477 (exit $ac_status); }; }; then
252b5132
RH
13478 bu_cv_header_utime_h=yes
13479else
42ecbf5e
DJ
13480 echo "$as_me: failed program was:" >&5
13481sed 's/^/| /' conftest.$ac_ext >&5
13482
13483bu_cv_header_utime_h=no
252b5132 13484fi
42ecbf5e 13485rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
13486fi
13487
42ecbf5e
DJ
13488echo "$as_me:$LINENO: result: $bu_cv_header_utime_h" >&5
13489echo "${ECHO_T}$bu_cv_header_utime_h" >&6
252b5132 13490if test $bu_cv_header_utime_h = yes; then
42ecbf5e
DJ
13491
13492cat >>confdefs.h <<\_ACEOF
252b5132 13493#define HAVE_GOOD_UTIME_H 1
42ecbf5e 13494_ACEOF
252b5132
RH
13495
13496fi
13497
398ee8f1
SE
13498echo "$as_me:$LINENO: checking whether fprintf is declared" >&5
13499echo $ECHO_N "checking whether fprintf is declared... $ECHO_C" >&6
13500if test "${ac_cv_have_decl_fprintf+set}" = set; then
42ecbf5e 13501 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 13502else
42ecbf5e
DJ
13503 cat >conftest.$ac_ext <<_ACEOF
13504/* confdefs.h. */
13505_ACEOF
13506cat confdefs.h >>conftest.$ac_ext
13507cat >>conftest.$ac_ext <<_ACEOF
13508/* end confdefs.h. */
398ee8f1 13509$ac_includes_default
42ecbf5e
DJ
13510int
13511main ()
13512{
398ee8f1
SE
13513#ifndef fprintf
13514 char *p = (char *) fprintf;
13515#endif
13516
42ecbf5e
DJ
13517 ;
13518 return 0;
13519}
13520_ACEOF
13521rm -f conftest.$ac_objext
13522if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13523 (eval $ac_compile) 2>conftest.er1
13524 ac_status=$?
13525 grep -v '^ *+' conftest.er1 >conftest.err
13526 rm -f conftest.er1
13527 cat conftest.err >&5
13528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13529 (exit $ac_status); } &&
7357c5b6
AM
13530 { ac_try='test -z "$ac_c_werror_flag"
13531 || test ! -s conftest.err'
42ecbf5e
DJ
13532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13533 (eval $ac_try) 2>&5
13534 ac_status=$?
13535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13536 (exit $ac_status); }; } &&
13537 { ac_try='test -s conftest.$ac_objext'
13538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13539 (eval $ac_try) 2>&5
13540 ac_status=$?
13541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13542 (exit $ac_status); }; }; then
398ee8f1 13543 ac_cv_have_decl_fprintf=yes
252b5132 13544else
42ecbf5e
DJ
13545 echo "$as_me: failed program was:" >&5
13546sed 's/^/| /' conftest.$ac_ext >&5
13547
398ee8f1 13548ac_cv_have_decl_fprintf=no
252b5132 13549fi
42ecbf5e 13550rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 13551fi
398ee8f1
SE
13552echo "$as_me:$LINENO: result: $ac_cv_have_decl_fprintf" >&5
13553echo "${ECHO_T}$ac_cv_have_decl_fprintf" >&6
13554if test $ac_cv_have_decl_fprintf = yes; then
252b5132 13555
398ee8f1
SE
13556cat >>confdefs.h <<_ACEOF
13557#define HAVE_DECL_FPRINTF 1
13558_ACEOF
42ecbf5e 13559
398ee8f1
SE
13560
13561else
13562 cat >>confdefs.h <<_ACEOF
13563#define HAVE_DECL_FPRINTF 0
42ecbf5e 13564_ACEOF
252b5132 13565
252b5132 13566
3e321448
L
13567fi
13568echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
13569echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
13570if test "${ac_cv_have_decl_stpcpy+set}" = set; then
13571 echo $ECHO_N "(cached) $ECHO_C" >&6
13572else
13573 cat >conftest.$ac_ext <<_ACEOF
13574/* confdefs.h. */
13575_ACEOF
13576cat confdefs.h >>conftest.$ac_ext
13577cat >>conftest.$ac_ext <<_ACEOF
13578/* end confdefs.h. */
13579$ac_includes_default
13580int
13581main ()
13582{
13583#ifndef stpcpy
13584 char *p = (char *) stpcpy;
13585#endif
13586
13587 ;
13588 return 0;
13589}
13590_ACEOF
13591rm -f conftest.$ac_objext
13592if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13593 (eval $ac_compile) 2>conftest.er1
13594 ac_status=$?
13595 grep -v '^ *+' conftest.er1 >conftest.err
13596 rm -f conftest.er1
13597 cat conftest.err >&5
13598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13599 (exit $ac_status); } &&
7357c5b6
AM
13600 { ac_try='test -z "$ac_c_werror_flag"
13601 || test ! -s conftest.err'
3e321448
L
13602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13603 (eval $ac_try) 2>&5
13604 ac_status=$?
13605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13606 (exit $ac_status); }; } &&
13607 { ac_try='test -s conftest.$ac_objext'
13608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13609 (eval $ac_try) 2>&5
13610 ac_status=$?
13611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13612 (exit $ac_status); }; }; then
13613 ac_cv_have_decl_stpcpy=yes
13614else
13615 echo "$as_me: failed program was:" >&5
13616sed 's/^/| /' conftest.$ac_ext >&5
13617
13618ac_cv_have_decl_stpcpy=no
13619fi
13620rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13621fi
13622echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
13623echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
13624if test $ac_cv_have_decl_stpcpy = yes; then
13625
13626cat >>confdefs.h <<_ACEOF
13627#define HAVE_DECL_STPCPY 1
13628_ACEOF
13629
13630
13631else
13632 cat >>confdefs.h <<_ACEOF
13633#define HAVE_DECL_STPCPY 0
13634_ACEOF
13635
13636
398ee8f1
SE
13637fi
13638echo "$as_me:$LINENO: checking whether strstr is declared" >&5
13639echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
13640if test "${ac_cv_have_decl_strstr+set}" = set; then
42ecbf5e 13641 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 13642else
42ecbf5e
DJ
13643 cat >conftest.$ac_ext <<_ACEOF
13644/* confdefs.h. */
13645_ACEOF
13646cat confdefs.h >>conftest.$ac_ext
13647cat >>conftest.$ac_ext <<_ACEOF
13648/* end confdefs.h. */
398ee8f1 13649$ac_includes_default
42ecbf5e
DJ
13650int
13651main ()
13652{
398ee8f1
SE
13653#ifndef strstr
13654 char *p = (char *) strstr;
13655#endif
13656
42ecbf5e
DJ
13657 ;
13658 return 0;
13659}
13660_ACEOF
13661rm -f conftest.$ac_objext
13662if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13663 (eval $ac_compile) 2>conftest.er1
13664 ac_status=$?
13665 grep -v '^ *+' conftest.er1 >conftest.err
13666 rm -f conftest.er1
13667 cat conftest.err >&5
13668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669 (exit $ac_status); } &&
7357c5b6
AM
13670 { ac_try='test -z "$ac_c_werror_flag"
13671 || test ! -s conftest.err'
42ecbf5e
DJ
13672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13673 (eval $ac_try) 2>&5
13674 ac_status=$?
13675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13676 (exit $ac_status); }; } &&
13677 { ac_try='test -s conftest.$ac_objext'
13678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13679 (eval $ac_try) 2>&5
13680 ac_status=$?
13681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13682 (exit $ac_status); }; }; then
398ee8f1 13683 ac_cv_have_decl_strstr=yes
252b5132 13684else
42ecbf5e
DJ
13685 echo "$as_me: failed program was:" >&5
13686sed 's/^/| /' conftest.$ac_ext >&5
13687
398ee8f1 13688ac_cv_have_decl_strstr=no
252b5132 13689fi
42ecbf5e 13690rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 13691fi
398ee8f1
SE
13692echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
13693echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
13694if test $ac_cv_have_decl_strstr = yes; then
252b5132 13695
398ee8f1
SE
13696cat >>confdefs.h <<_ACEOF
13697#define HAVE_DECL_STRSTR 1
13698_ACEOF
42ecbf5e 13699
398ee8f1
SE
13700
13701else
13702 cat >>confdefs.h <<_ACEOF
13703#define HAVE_DECL_STRSTR 0
42ecbf5e 13704_ACEOF
252b5132 13705
252b5132 13706
398ee8f1
SE
13707fi
13708echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
13709echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
13710if test "${ac_cv_have_decl_sbrk+set}" = set; then
42ecbf5e 13711 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 13712else
42ecbf5e
DJ
13713 cat >conftest.$ac_ext <<_ACEOF
13714/* confdefs.h. */
13715_ACEOF
13716cat confdefs.h >>conftest.$ac_ext
13717cat >>conftest.$ac_ext <<_ACEOF
13718/* end confdefs.h. */
398ee8f1 13719$ac_includes_default
42ecbf5e
DJ
13720int
13721main ()
13722{
398ee8f1
SE
13723#ifndef sbrk
13724 char *p = (char *) sbrk;
13725#endif
13726
42ecbf5e
DJ
13727 ;
13728 return 0;
13729}
13730_ACEOF
13731rm -f conftest.$ac_objext
13732if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13733 (eval $ac_compile) 2>conftest.er1
13734 ac_status=$?
13735 grep -v '^ *+' conftest.er1 >conftest.err
13736 rm -f conftest.er1
13737 cat conftest.err >&5
13738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13739 (exit $ac_status); } &&
7357c5b6
AM
13740 { ac_try='test -z "$ac_c_werror_flag"
13741 || test ! -s conftest.err'
42ecbf5e
DJ
13742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13743 (eval $ac_try) 2>&5
13744 ac_status=$?
13745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746 (exit $ac_status); }; } &&
13747 { ac_try='test -s conftest.$ac_objext'
13748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13749 (eval $ac_try) 2>&5
13750 ac_status=$?
13751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13752 (exit $ac_status); }; }; then
398ee8f1 13753 ac_cv_have_decl_sbrk=yes
252b5132 13754else
42ecbf5e
DJ
13755 echo "$as_me: failed program was:" >&5
13756sed 's/^/| /' conftest.$ac_ext >&5
13757
398ee8f1 13758ac_cv_have_decl_sbrk=no
252b5132 13759fi
42ecbf5e 13760rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 13761fi
398ee8f1
SE
13762echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
13763echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
13764if test $ac_cv_have_decl_sbrk = yes; then
252b5132 13765
398ee8f1
SE
13766cat >>confdefs.h <<_ACEOF
13767#define HAVE_DECL_SBRK 1
13768_ACEOF
42ecbf5e 13769
398ee8f1
SE
13770
13771else
13772 cat >>confdefs.h <<_ACEOF
13773#define HAVE_DECL_SBRK 0
42ecbf5e 13774_ACEOF
252b5132 13775
252b5132 13776
398ee8f1
SE
13777fi
13778echo "$as_me:$LINENO: checking whether getenv is declared" >&5
13779echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
13780if test "${ac_cv_have_decl_getenv+set}" = set; then
42ecbf5e 13781 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 13782else
42ecbf5e
DJ
13783 cat >conftest.$ac_ext <<_ACEOF
13784/* confdefs.h. */
13785_ACEOF
13786cat confdefs.h >>conftest.$ac_ext
13787cat >>conftest.$ac_ext <<_ACEOF
13788/* end confdefs.h. */
398ee8f1 13789$ac_includes_default
42ecbf5e
DJ
13790int
13791main ()
13792{
398ee8f1
SE
13793#ifndef getenv
13794 char *p = (char *) getenv;
13795#endif
13796
42ecbf5e
DJ
13797 ;
13798 return 0;
13799}
13800_ACEOF
13801rm -f conftest.$ac_objext
13802if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13803 (eval $ac_compile) 2>conftest.er1
13804 ac_status=$?
13805 grep -v '^ *+' conftest.er1 >conftest.err
13806 rm -f conftest.er1
13807 cat conftest.err >&5
13808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13809 (exit $ac_status); } &&
7357c5b6
AM
13810 { ac_try='test -z "$ac_c_werror_flag"
13811 || test ! -s conftest.err'
42ecbf5e
DJ
13812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13813 (eval $ac_try) 2>&5
13814 ac_status=$?
13815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13816 (exit $ac_status); }; } &&
13817 { ac_try='test -s conftest.$ac_objext'
13818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13819 (eval $ac_try) 2>&5
13820 ac_status=$?
13821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822 (exit $ac_status); }; }; then
398ee8f1 13823 ac_cv_have_decl_getenv=yes
252b5132 13824else
42ecbf5e
DJ
13825 echo "$as_me: failed program was:" >&5
13826sed 's/^/| /' conftest.$ac_ext >&5
13827
398ee8f1 13828ac_cv_have_decl_getenv=no
252b5132 13829fi
42ecbf5e 13830rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 13831fi
398ee8f1
SE
13832echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
13833echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
13834if test $ac_cv_have_decl_getenv = yes; then
252b5132 13835
398ee8f1
SE
13836cat >>confdefs.h <<_ACEOF
13837#define HAVE_DECL_GETENV 1
13838_ACEOF
42ecbf5e 13839
398ee8f1
SE
13840
13841else
13842 cat >>confdefs.h <<_ACEOF
13843#define HAVE_DECL_GETENV 0
42ecbf5e 13844_ACEOF
252b5132 13845
252b5132 13846
398ee8f1
SE
13847fi
13848echo "$as_me:$LINENO: checking whether environ is declared" >&5
13849echo $ECHO_N "checking whether environ is declared... $ECHO_C" >&6
13850if test "${ac_cv_have_decl_environ+set}" = set; then
42ecbf5e 13851 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 13852else
42ecbf5e
DJ
13853 cat >conftest.$ac_ext <<_ACEOF
13854/* confdefs.h. */
13855_ACEOF
13856cat confdefs.h >>conftest.$ac_ext
13857cat >>conftest.$ac_ext <<_ACEOF
13858/* end confdefs.h. */
398ee8f1 13859$ac_includes_default
42ecbf5e
DJ
13860int
13861main ()
13862{
398ee8f1
SE
13863#ifndef environ
13864 char *p = (char *) environ;
13865#endif
13866
42ecbf5e
DJ
13867 ;
13868 return 0;
13869}
13870_ACEOF
13871rm -f conftest.$ac_objext
13872if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13873 (eval $ac_compile) 2>conftest.er1
13874 ac_status=$?
13875 grep -v '^ *+' conftest.er1 >conftest.err
13876 rm -f conftest.er1
13877 cat conftest.err >&5
13878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13879 (exit $ac_status); } &&
7357c5b6
AM
13880 { ac_try='test -z "$ac_c_werror_flag"
13881 || test ! -s conftest.err'
42ecbf5e
DJ
13882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13883 (eval $ac_try) 2>&5
13884 ac_status=$?
13885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13886 (exit $ac_status); }; } &&
13887 { ac_try='test -s conftest.$ac_objext'
13888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13889 (eval $ac_try) 2>&5
13890 ac_status=$?
13891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13892 (exit $ac_status); }; }; then
398ee8f1 13893 ac_cv_have_decl_environ=yes
252b5132 13894else
42ecbf5e
DJ
13895 echo "$as_me: failed program was:" >&5
13896sed 's/^/| /' conftest.$ac_ext >&5
13897
398ee8f1 13898ac_cv_have_decl_environ=no
252b5132 13899fi
42ecbf5e 13900rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 13901fi
398ee8f1
SE
13902echo "$as_me:$LINENO: result: $ac_cv_have_decl_environ" >&5
13903echo "${ECHO_T}$ac_cv_have_decl_environ" >&6
13904if test $ac_cv_have_decl_environ = yes; then
252b5132 13905
398ee8f1
SE
13906cat >>confdefs.h <<_ACEOF
13907#define HAVE_DECL_ENVIRON 1
13908_ACEOF
42ecbf5e 13909
398ee8f1
SE
13910
13911else
13912 cat >>confdefs.h <<_ACEOF
13913#define HAVE_DECL_ENVIRON 0
42ecbf5e 13914_ACEOF
252b5132 13915
252b5132 13916
398ee8f1 13917fi
b7d4af3a
JW
13918echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
13919echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
13920if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
13921 echo $ECHO_N "(cached) $ECHO_C" >&6
13922else
13923 cat >conftest.$ac_ext <<_ACEOF
13924/* confdefs.h. */
13925_ACEOF
13926cat confdefs.h >>conftest.$ac_ext
13927cat >>conftest.$ac_ext <<_ACEOF
13928/* end confdefs.h. */
13929$ac_includes_default
13930int
13931main ()
13932{
13933#ifndef getc_unlocked
13934 char *p = (char *) getc_unlocked;
13935#endif
13936
13937 ;
13938 return 0;
13939}
13940_ACEOF
13941rm -f conftest.$ac_objext
13942if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13943 (eval $ac_compile) 2>conftest.er1
13944 ac_status=$?
13945 grep -v '^ *+' conftest.er1 >conftest.err
13946 rm -f conftest.er1
13947 cat conftest.err >&5
13948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13949 (exit $ac_status); } &&
7357c5b6
AM
13950 { ac_try='test -z "$ac_c_werror_flag"
13951 || test ! -s conftest.err'
b7d4af3a
JW
13952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13953 (eval $ac_try) 2>&5
13954 ac_status=$?
13955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13956 (exit $ac_status); }; } &&
13957 { ac_try='test -s conftest.$ac_objext'
13958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13959 (eval $ac_try) 2>&5
13960 ac_status=$?
13961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13962 (exit $ac_status); }; }; then
13963 ac_cv_have_decl_getc_unlocked=yes
13964else
13965 echo "$as_me: failed program was:" >&5
13966sed 's/^/| /' conftest.$ac_ext >&5
13967
13968ac_cv_have_decl_getc_unlocked=no
13969fi
13970rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13971fi
13972echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
13973echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
13974if test $ac_cv_have_decl_getc_unlocked = yes; then
13975
13976cat >>confdefs.h <<_ACEOF
13977#define HAVE_DECL_GETC_UNLOCKED 1
13978_ACEOF
13979
13980
13981else
13982 cat >>confdefs.h <<_ACEOF
13983#define HAVE_DECL_GETC_UNLOCKED 0
13984_ACEOF
13985
13986
db50c840
EB
13987fi
13988echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
13989echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
13990if test "${ac_cv_have_decl_snprintf+set}" = set; then
13991 echo $ECHO_N "(cached) $ECHO_C" >&6
13992else
13993 cat >conftest.$ac_ext <<_ACEOF
13994/* confdefs.h. */
13995_ACEOF
13996cat confdefs.h >>conftest.$ac_ext
13997cat >>conftest.$ac_ext <<_ACEOF
13998/* end confdefs.h. */
13999$ac_includes_default
14000int
14001main ()
14002{
14003#ifndef snprintf
14004 char *p = (char *) snprintf;
14005#endif
14006
14007 ;
14008 return 0;
14009}
14010_ACEOF
14011rm -f conftest.$ac_objext
14012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14013 (eval $ac_compile) 2>conftest.er1
14014 ac_status=$?
14015 grep -v '^ *+' conftest.er1 >conftest.err
14016 rm -f conftest.er1
14017 cat conftest.err >&5
14018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019 (exit $ac_status); } &&
7357c5b6
AM
14020 { ac_try='test -z "$ac_c_werror_flag"
14021 || test ! -s conftest.err'
db50c840
EB
14022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14023 (eval $ac_try) 2>&5
14024 ac_status=$?
14025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026 (exit $ac_status); }; } &&
14027 { ac_try='test -s conftest.$ac_objext'
14028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14029 (eval $ac_try) 2>&5
14030 ac_status=$?
14031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14032 (exit $ac_status); }; }; then
14033 ac_cv_have_decl_snprintf=yes
14034else
14035 echo "$as_me: failed program was:" >&5
14036sed 's/^/| /' conftest.$ac_ext >&5
14037
14038ac_cv_have_decl_snprintf=no
14039fi
14040rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14041fi
14042echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
14043echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
14044if test $ac_cv_have_decl_snprintf = yes; then
14045
14046cat >>confdefs.h <<_ACEOF
14047#define HAVE_DECL_SNPRINTF 1
14048_ACEOF
14049
14050
14051else
14052 cat >>confdefs.h <<_ACEOF
14053#define HAVE_DECL_SNPRINTF 0
14054_ACEOF
14055
14056
14057fi
14058echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
14059echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
14060if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
14061 echo $ECHO_N "(cached) $ECHO_C" >&6
14062else
14063 cat >conftest.$ac_ext <<_ACEOF
14064/* confdefs.h. */
14065_ACEOF
14066cat confdefs.h >>conftest.$ac_ext
14067cat >>conftest.$ac_ext <<_ACEOF
14068/* end confdefs.h. */
14069$ac_includes_default
14070int
14071main ()
14072{
14073#ifndef vsnprintf
14074 char *p = (char *) vsnprintf;
14075#endif
14076
14077 ;
14078 return 0;
14079}
14080_ACEOF
14081rm -f conftest.$ac_objext
14082if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14083 (eval $ac_compile) 2>conftest.er1
14084 ac_status=$?
14085 grep -v '^ *+' conftest.er1 >conftest.err
14086 rm -f conftest.er1
14087 cat conftest.err >&5
14088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14089 (exit $ac_status); } &&
7357c5b6
AM
14090 { ac_try='test -z "$ac_c_werror_flag"
14091 || test ! -s conftest.err'
db50c840
EB
14092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14093 (eval $ac_try) 2>&5
14094 ac_status=$?
14095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096 (exit $ac_status); }; } &&
14097 { ac_try='test -s conftest.$ac_objext'
14098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14099 (eval $ac_try) 2>&5
14100 ac_status=$?
14101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102 (exit $ac_status); }; }; then
14103 ac_cv_have_decl_vsnprintf=yes
14104else
14105 echo "$as_me: failed program was:" >&5
14106sed 's/^/| /' conftest.$ac_ext >&5
14107
14108ac_cv_have_decl_vsnprintf=no
14109fi
14110rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14111fi
14112echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
14113echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
14114if test $ac_cv_have_decl_vsnprintf = yes; then
14115
14116cat >>confdefs.h <<_ACEOF
14117#define HAVE_DECL_VSNPRINTF 1
14118_ACEOF
14119
14120
14121else
14122 cat >>confdefs.h <<_ACEOF
14123#define HAVE_DECL_VSNPRINTF 0
14124_ACEOF
14125
14126
b7d4af3a
JW
14127fi
14128
14129
252b5132 14130
1b315056
CS
14131# Link in zlib if we can. This allows us to read compressed debug
14132# sections. This is used only by readelf.c (objdump uses bfd for
14133# reading compressed sections).
14134echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
14135echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
14136if test "${ac_cv_search_zlibVersion+set}" = set; then
14137 echo $ECHO_N "(cached) $ECHO_C" >&6
14138else
14139 ac_func_search_save_LIBS=$LIBS
14140ac_cv_search_zlibVersion=no
14141cat >conftest.$ac_ext <<_ACEOF
14142/* confdefs.h. */
14143_ACEOF
14144cat confdefs.h >>conftest.$ac_ext
14145cat >>conftest.$ac_ext <<_ACEOF
14146/* end confdefs.h. */
14147
14148/* Override any gcc2 internal prototype to avoid an error. */
14149#ifdef __cplusplus
14150extern "C"
14151#endif
14152/* We use char because int might match the return type of a gcc2
14153 builtin and then its argument prototype would still apply. */
14154char zlibVersion ();
14155int
14156main ()
14157{
14158zlibVersion ();
14159 ;
14160 return 0;
14161}
14162_ACEOF
14163rm -f conftest.$ac_objext conftest$ac_exeext
14164if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14165 (eval $ac_link) 2>conftest.er1
14166 ac_status=$?
14167 grep -v '^ *+' conftest.er1 >conftest.err
14168 rm -f conftest.er1
14169 cat conftest.err >&5
14170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14171 (exit $ac_status); } &&
7357c5b6
AM
14172 { ac_try='test -z "$ac_c_werror_flag"
14173 || test ! -s conftest.err'
1b315056
CS
14174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14175 (eval $ac_try) 2>&5
14176 ac_status=$?
14177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14178 (exit $ac_status); }; } &&
14179 { ac_try='test -s conftest$ac_exeext'
14180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14181 (eval $ac_try) 2>&5
14182 ac_status=$?
14183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184 (exit $ac_status); }; }; then
14185 ac_cv_search_zlibVersion="none required"
14186else
14187 echo "$as_me: failed program was:" >&5
14188sed 's/^/| /' conftest.$ac_ext >&5
14189
14190fi
14191rm -f conftest.err conftest.$ac_objext \
14192 conftest$ac_exeext conftest.$ac_ext
14193if test "$ac_cv_search_zlibVersion" = no; then
14194 for ac_lib in z; do
14195 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14196 cat >conftest.$ac_ext <<_ACEOF
14197/* confdefs.h. */
14198_ACEOF
14199cat confdefs.h >>conftest.$ac_ext
14200cat >>conftest.$ac_ext <<_ACEOF
14201/* end confdefs.h. */
14202
14203/* Override any gcc2 internal prototype to avoid an error. */
14204#ifdef __cplusplus
14205extern "C"
14206#endif
14207/* We use char because int might match the return type of a gcc2
14208 builtin and then its argument prototype would still apply. */
14209char zlibVersion ();
14210int
14211main ()
14212{
14213zlibVersion ();
14214 ;
14215 return 0;
14216}
14217_ACEOF
14218rm -f conftest.$ac_objext conftest$ac_exeext
14219if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14220 (eval $ac_link) 2>conftest.er1
14221 ac_status=$?
14222 grep -v '^ *+' conftest.er1 >conftest.err
14223 rm -f conftest.er1
14224 cat conftest.err >&5
14225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14226 (exit $ac_status); } &&
7357c5b6
AM
14227 { ac_try='test -z "$ac_c_werror_flag"
14228 || test ! -s conftest.err'
1b315056
CS
14229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14230 (eval $ac_try) 2>&5
14231 ac_status=$?
14232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14233 (exit $ac_status); }; } &&
14234 { ac_try='test -s conftest$ac_exeext'
14235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14236 (eval $ac_try) 2>&5
14237 ac_status=$?
14238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239 (exit $ac_status); }; }; then
14240 ac_cv_search_zlibVersion="-l$ac_lib"
14241break
14242else
14243 echo "$as_me: failed program was:" >&5
14244sed 's/^/| /' conftest.$ac_ext >&5
14245
14246fi
14247rm -f conftest.err conftest.$ac_objext \
14248 conftest$ac_exeext conftest.$ac_ext
14249 done
14250fi
14251LIBS=$ac_func_search_save_LIBS
14252fi
14253echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
14254echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
14255if test "$ac_cv_search_zlibVersion" != no; then
14256 test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS"
14257
14258for ac_header in zlib.h
14259do
14260as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14261if eval "test \"\${$as_ac_Header+set}\" = set"; then
14262 echo "$as_me:$LINENO: checking for $ac_header" >&5
14263echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14264if eval "test \"\${$as_ac_Header+set}\" = set"; then
14265 echo $ECHO_N "(cached) $ECHO_C" >&6
14266fi
14267echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14268echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14269else
14270 # Is the header compilable?
14271echo "$as_me:$LINENO: checking $ac_header usability" >&5
14272echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14273cat >conftest.$ac_ext <<_ACEOF
14274/* confdefs.h. */
14275_ACEOF
14276cat confdefs.h >>conftest.$ac_ext
14277cat >>conftest.$ac_ext <<_ACEOF
14278/* end confdefs.h. */
14279$ac_includes_default
14280#include <$ac_header>
14281_ACEOF
14282rm -f conftest.$ac_objext
14283if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14284 (eval $ac_compile) 2>conftest.er1
14285 ac_status=$?
14286 grep -v '^ *+' conftest.er1 >conftest.err
14287 rm -f conftest.er1
14288 cat conftest.err >&5
14289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290 (exit $ac_status); } &&
7357c5b6
AM
14291 { ac_try='test -z "$ac_c_werror_flag"
14292 || test ! -s conftest.err'
1b315056
CS
14293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14294 (eval $ac_try) 2>&5
14295 ac_status=$?
14296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14297 (exit $ac_status); }; } &&
14298 { ac_try='test -s conftest.$ac_objext'
14299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14300 (eval $ac_try) 2>&5
14301 ac_status=$?
14302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14303 (exit $ac_status); }; }; then
14304 ac_header_compiler=yes
14305else
14306 echo "$as_me: failed program was:" >&5
14307sed 's/^/| /' conftest.$ac_ext >&5
14308
14309ac_header_compiler=no
14310fi
14311rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14312echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14313echo "${ECHO_T}$ac_header_compiler" >&6
14314
14315# Is the header present?
14316echo "$as_me:$LINENO: checking $ac_header presence" >&5
14317echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14318cat >conftest.$ac_ext <<_ACEOF
14319/* confdefs.h. */
14320_ACEOF
14321cat confdefs.h >>conftest.$ac_ext
14322cat >>conftest.$ac_ext <<_ACEOF
14323/* end confdefs.h. */
14324#include <$ac_header>
14325_ACEOF
14326if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14327 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14328 ac_status=$?
14329 grep -v '^ *+' conftest.er1 >conftest.err
14330 rm -f conftest.er1
14331 cat conftest.err >&5
14332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14333 (exit $ac_status); } >/dev/null; then
14334 if test -s conftest.err; then
14335 ac_cpp_err=$ac_c_preproc_warn_flag
14336 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14337 else
14338 ac_cpp_err=
14339 fi
14340else
14341 ac_cpp_err=yes
14342fi
14343if test -z "$ac_cpp_err"; then
14344 ac_header_preproc=yes
14345else
14346 echo "$as_me: failed program was:" >&5
14347sed 's/^/| /' conftest.$ac_ext >&5
14348
14349 ac_header_preproc=no
14350fi
14351rm -f conftest.err conftest.$ac_ext
14352echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14353echo "${ECHO_T}$ac_header_preproc" >&6
14354
14355# So? What about this header?
14356case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14357 yes:no: )
14358 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14359echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14360 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14361echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14362 ac_header_preproc=yes
14363 ;;
14364 no:yes:* )
14365 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14366echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14367 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14368echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14369 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14370echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14371 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14372echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14373 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14374echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14375 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14376echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14377 (
14378 cat <<\_ASBOX
14379## ------------------------------------------ ##
14380## Report this to the AC_PACKAGE_NAME lists. ##
14381## ------------------------------------------ ##
14382_ASBOX
14383 ) |
14384 sed "s/^/$as_me: WARNING: /" >&2
14385 ;;
14386esac
14387echo "$as_me:$LINENO: checking for $ac_header" >&5
14388echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14389if eval "test \"\${$as_ac_Header+set}\" = set"; then
14390 echo $ECHO_N "(cached) $ECHO_C" >&6
14391else
14392 eval "$as_ac_Header=\$ac_header_preproc"
14393fi
14394echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14395echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14396
14397fi
14398if test `eval echo '${'$as_ac_Header'}'` = yes; then
14399 cat >>confdefs.h <<_ACEOF
14400#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14401_ACEOF
14402
14403fi
14404
14405done
14406
14407fi
14408
14409
252b5132
RH
14410
14411case "${host}" in
8a965946 14412*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
42ecbf5e
DJ
14413
14414cat >>confdefs.h <<\_ACEOF
252b5132 14415#define USE_BINARY_FOPEN 1
42ecbf5e 14416_ACEOF
252b5132
RH
14417 ;;
14418esac
14419
14420# target-specific stuff:
14421
14422# Canonicalize the secondary target names.
14423if test -n "$enable_targets"; then
14424 for targ in `echo $enable_targets | sed 's/,/ /g'`
14425 do
6d83c84b 14426 result=`$ac_config_sub $targ 2>/dev/null`
252b5132
RH
14427 if test -n "$result"; then
14428 canon_targets="$canon_targets $result"
14429 else
14430 # Allow targets that config.sub doesn't recognize, like "all".
14431 canon_targets="$canon_targets $targ"
14432 fi
14433 done
14434fi
14435
5ba684e2
NC
14436if test "${ac_cv_header_iconv_h+set}" = set; then
14437 echo "$as_me:$LINENO: checking for iconv.h" >&5
14438echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
14439if test "${ac_cv_header_iconv_h+set}" = set; then
14440 echo $ECHO_N "(cached) $ECHO_C" >&6
14441fi
14442echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
14443echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
14444else
14445 # Is the header compilable?
14446echo "$as_me:$LINENO: checking iconv.h usability" >&5
14447echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
14448cat >conftest.$ac_ext <<_ACEOF
14449/* confdefs.h. */
14450_ACEOF
14451cat confdefs.h >>conftest.$ac_ext
14452cat >>conftest.$ac_ext <<_ACEOF
14453/* end confdefs.h. */
14454$ac_includes_default
14455#include <iconv.h>
14456_ACEOF
14457rm -f conftest.$ac_objext
14458if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14459 (eval $ac_compile) 2>conftest.er1
14460 ac_status=$?
14461 grep -v '^ *+' conftest.er1 >conftest.err
14462 rm -f conftest.er1
14463 cat conftest.err >&5
14464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465 (exit $ac_status); } &&
7357c5b6
AM
14466 { ac_try='test -z "$ac_c_werror_flag"
14467 || test ! -s conftest.err'
5ba684e2
NC
14468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14469 (eval $ac_try) 2>&5
14470 ac_status=$?
14471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14472 (exit $ac_status); }; } &&
14473 { ac_try='test -s conftest.$ac_objext'
14474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14475 (eval $ac_try) 2>&5
14476 ac_status=$?
14477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14478 (exit $ac_status); }; }; then
14479 ac_header_compiler=yes
14480else
14481 echo "$as_me: failed program was:" >&5
14482sed 's/^/| /' conftest.$ac_ext >&5
14483
14484ac_header_compiler=no
14485fi
14486rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14487echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14488echo "${ECHO_T}$ac_header_compiler" >&6
14489
14490# Is the header present?
14491echo "$as_me:$LINENO: checking iconv.h presence" >&5
14492echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
14493cat >conftest.$ac_ext <<_ACEOF
14494/* confdefs.h. */
14495_ACEOF
14496cat confdefs.h >>conftest.$ac_ext
14497cat >>conftest.$ac_ext <<_ACEOF
14498/* end confdefs.h. */
14499#include <iconv.h>
14500_ACEOF
14501if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14502 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14503 ac_status=$?
14504 grep -v '^ *+' conftest.er1 >conftest.err
14505 rm -f conftest.er1
14506 cat conftest.err >&5
14507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14508 (exit $ac_status); } >/dev/null; then
14509 if test -s conftest.err; then
14510 ac_cpp_err=$ac_c_preproc_warn_flag
14511 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14512 else
14513 ac_cpp_err=
14514 fi
14515else
14516 ac_cpp_err=yes
14517fi
14518if test -z "$ac_cpp_err"; then
14519 ac_header_preproc=yes
14520else
14521 echo "$as_me: failed program was:" >&5
14522sed 's/^/| /' conftest.$ac_ext >&5
14523
14524 ac_header_preproc=no
14525fi
14526rm -f conftest.err conftest.$ac_ext
14527echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14528echo "${ECHO_T}$ac_header_preproc" >&6
14529
14530# So? What about this header?
14531case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14532 yes:no: )
14533 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
14534echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14535 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
14536echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
14537 ac_header_preproc=yes
14538 ;;
14539 no:yes:* )
14540 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
14541echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
14542 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
14543echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
14544 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
14545echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
14546 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
14547echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
14548 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
14549echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
14550 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
14551echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
14552 (
14553 cat <<\_ASBOX
14554## ------------------------------------------ ##
14555## Report this to the AC_PACKAGE_NAME lists. ##
14556## ------------------------------------------ ##
14557_ASBOX
14558 ) |
14559 sed "s/^/$as_me: WARNING: /" >&2
14560 ;;
14561esac
14562echo "$as_me:$LINENO: checking for iconv.h" >&5
14563echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
14564if test "${ac_cv_header_iconv_h+set}" = set; then
14565 echo $ECHO_N "(cached) $ECHO_C" >&6
14566else
14567 ac_cv_header_iconv_h=$ac_header_preproc
14568fi
14569echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
14570echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
14571
14572fi
14573
14574
14575
14576 if test "X$prefix" = "XNONE"; then
14577 acl_final_prefix="$ac_default_prefix"
14578 else
14579 acl_final_prefix="$prefix"
14580 fi
14581 if test "X$exec_prefix" = "XNONE"; then
14582 acl_final_exec_prefix='${prefix}'
14583 else
14584 acl_final_exec_prefix="$exec_prefix"
14585 fi
14586 acl_save_prefix="$prefix"
14587 prefix="$acl_final_prefix"
14588 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
14589 prefix="$acl_save_prefix"
14590
14591
14592# Check whether --with-gnu-ld or --without-gnu-ld was given.
14593if test "${with_gnu_ld+set}" = set; then
14594 withval="$with_gnu_ld"
14595 test "$withval" = no || with_gnu_ld=yes
14596else
14597 with_gnu_ld=no
14598fi;
14599# Prepare PATH_SEPARATOR.
14600# The user is always right.
14601if test "${PATH_SEPARATOR+set}" != set; then
14602 echo "#! /bin/sh" >conf$$.sh
14603 echo "exit 0" >>conf$$.sh
14604 chmod +x conf$$.sh
14605 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14606 PATH_SEPARATOR=';'
14607 else
14608 PATH_SEPARATOR=:
14609 fi
14610 rm -f conf$$.sh
14611fi
14612ac_prog=ld
14613if test "$GCC" = yes; then
14614 # Check if gcc -print-prog-name=ld gives a path.
14615 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
14616echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
14617 case $host in
14618 *-*-mingw*)
14619 # gcc leaves a trailing carriage return which upsets mingw
14620 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14621 *)
14622 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14623 esac
14624 case $ac_prog in
14625 # Accept absolute paths.
14626 [\\/]* | [A-Za-z]:[\\/]*)
14627 re_direlt='/[^/][^/]*/\.\./'
14628 # Canonicalize the path of ld
14629 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
14630 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
14631 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
14632 done
14633 test -z "$LD" && LD="$ac_prog"
14634 ;;
14635 "")
14636 # If it fails, then pretend we aren't using GCC.
14637 ac_prog=ld
14638 ;;
14639 *)
14640 # If it is relative, then search for the first ld in PATH.
14641 with_gnu_ld=unknown
14642 ;;
14643 esac
14644elif test "$with_gnu_ld" = yes; then
14645 echo "$as_me:$LINENO: checking for GNU ld" >&5
14646echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
14647else
14648 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
14649echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
14650fi
14651if test "${acl_cv_path_LD+set}" = set; then
14652 echo $ECHO_N "(cached) $ECHO_C" >&6
14653else
14654 if test -z "$LD"; then
14655 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
14656 for ac_dir in $PATH; do
14657 test -z "$ac_dir" && ac_dir=.
14658 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14659 acl_cv_path_LD="$ac_dir/$ac_prog"
14660 # Check to see if the program is GNU ld. I'd rather use --version,
14661 # but apparently some GNU ld's only accept -v.
14662 # Break only if it was the GNU/non-GNU ld that we prefer.
14663 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
14664 test "$with_gnu_ld" != no && break
14665 else
14666 test "$with_gnu_ld" != yes && break
14667 fi
14668 fi
14669 done
14670 IFS="$ac_save_ifs"
14671else
14672 acl_cv_path_LD="$LD" # Let the user override the test with a path.
14673fi
14674fi
14675
14676LD="$acl_cv_path_LD"
14677if test -n "$LD"; then
14678 echo "$as_me:$LINENO: result: $LD" >&5
14679echo "${ECHO_T}$LD" >&6
14680else
14681 echo "$as_me:$LINENO: result: no" >&5
14682echo "${ECHO_T}no" >&6
14683fi
14684test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
14685echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
14686 { (exit 1); exit 1; }; }
14687echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
14688echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
14689if test "${acl_cv_prog_gnu_ld+set}" = set; then
14690 echo $ECHO_N "(cached) $ECHO_C" >&6
14691else
14692 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
14693if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
14694 acl_cv_prog_gnu_ld=yes
14695else
14696 acl_cv_prog_gnu_ld=no
14697fi
14698fi
14699echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
14700echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
14701with_gnu_ld=$acl_cv_prog_gnu_ld
14702
14703
14704
14705 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
14706echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
14707if test "${acl_cv_rpath+set}" = set; then
14708 echo $ECHO_N "(cached) $ECHO_C" >&6
14709else
14710
14711 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
14712 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
14713 . ./conftest.sh
14714 rm -f ./conftest.sh
14715 acl_cv_rpath=done
14716
14717fi
14718echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
14719echo "${ECHO_T}$acl_cv_rpath" >&6
14720 wl="$acl_cv_wl"
14721 libext="$acl_cv_libext"
14722 shlibext="$acl_cv_shlibext"
14723 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
14724 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
14725 hardcode_direct="$acl_cv_hardcode_direct"
14726 hardcode_minus_L="$acl_cv_hardcode_minus_L"
14727 # Check whether --enable-rpath or --disable-rpath was given.
14728if test "${enable_rpath+set}" = set; then
14729 enableval="$enable_rpath"
14730 :
14731else
14732 enable_rpath=yes
14733fi;
14734
14735
14736
14737
14738
14739
14740
14741 use_additional=yes
14742
14743 acl_save_prefix="$prefix"
14744 prefix="$acl_final_prefix"
14745 acl_save_exec_prefix="$exec_prefix"
14746 exec_prefix="$acl_final_exec_prefix"
14747
14748 eval additional_includedir=\"$includedir\"
14749 eval additional_libdir=\"$libdir\"
14750
14751 exec_prefix="$acl_save_exec_prefix"
14752 prefix="$acl_save_prefix"
14753
14754
14755# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
14756if test "${with_libiconv_prefix+set}" = set; then
14757 withval="$with_libiconv_prefix"
14758
14759 if test "X$withval" = "Xno"; then
14760 use_additional=no
14761 else
14762 if test "X$withval" = "X"; then
14763
14764 acl_save_prefix="$prefix"
14765 prefix="$acl_final_prefix"
14766 acl_save_exec_prefix="$exec_prefix"
14767 exec_prefix="$acl_final_exec_prefix"
14768
14769 eval additional_includedir=\"$includedir\"
14770 eval additional_libdir=\"$libdir\"
14771
14772 exec_prefix="$acl_save_exec_prefix"
14773 prefix="$acl_save_prefix"
14774
14775 else
14776 additional_includedir="$withval/include"
14777 additional_libdir="$withval/lib"
14778 fi
14779 fi
14780
14781fi;
14782 LIBICONV=
14783 LTLIBICONV=
14784 INCICONV=
14785 rpathdirs=
14786 ltrpathdirs=
14787 names_already_handled=
14788 names_next_round='iconv '
14789 while test -n "$names_next_round"; do
14790 names_this_round="$names_next_round"
14791 names_next_round=
14792 for name in $names_this_round; do
14793 already_handled=
14794 for n in $names_already_handled; do
14795 if test "$n" = "$name"; then
14796 already_handled=yes
14797 break
14798 fi
14799 done
14800 if test -z "$already_handled"; then
14801 names_already_handled="$names_already_handled $name"
14802 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14803 eval value=\"\$HAVE_LIB$uppername\"
14804 if test -n "$value"; then
14805 if test "$value" = yes; then
14806 eval value=\"\$LIB$uppername\"
14807 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
14808 eval value=\"\$LTLIB$uppername\"
14809 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
14810 else
14811 :
14812 fi
14813 else
14814 found_dir=
14815 found_la=
14816 found_so=
14817 found_a=
14818 if test $use_additional = yes; then
14819 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
14820 found_dir="$additional_libdir"
14821 found_so="$additional_libdir/lib$name.$shlibext"
14822 if test -f "$additional_libdir/lib$name.la"; then
14823 found_la="$additional_libdir/lib$name.la"
14824 fi
14825 else
14826 if test -f "$additional_libdir/lib$name.$libext"; then
14827 found_dir="$additional_libdir"
14828 found_a="$additional_libdir/lib$name.$libext"
14829 if test -f "$additional_libdir/lib$name.la"; then
14830 found_la="$additional_libdir/lib$name.la"
14831 fi
14832 fi
14833 fi
14834 fi
14835 if test "X$found_dir" = "X"; then
14836 for x in $LDFLAGS $LTLIBICONV; do
14837
14838 acl_save_prefix="$prefix"
14839 prefix="$acl_final_prefix"
14840 acl_save_exec_prefix="$exec_prefix"
14841 exec_prefix="$acl_final_exec_prefix"
14842 eval x=\"$x\"
14843 exec_prefix="$acl_save_exec_prefix"
14844 prefix="$acl_save_prefix"
14845
14846 case "$x" in
14847 -L*)
14848 dir=`echo "X$x" | sed -e 's/^X-L//'`
14849 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
14850 found_dir="$dir"
14851 found_so="$dir/lib$name.$shlibext"
14852 if test -f "$dir/lib$name.la"; then
14853 found_la="$dir/lib$name.la"
14854 fi
14855 else
14856 if test -f "$dir/lib$name.$libext"; then
14857 found_dir="$dir"
14858 found_a="$dir/lib$name.$libext"
14859 if test -f "$dir/lib$name.la"; then
14860 found_la="$dir/lib$name.la"
14861 fi
14862 fi
14863 fi
14864 ;;
14865 esac
14866 if test "X$found_dir" != "X"; then
14867 break
14868 fi
14869 done
14870 fi
14871 if test "X$found_dir" != "X"; then
14872 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
14873 if test "X$found_so" != "X"; then
14874 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
14875 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14876 else
14877 haveit=
14878 for x in $ltrpathdirs; do
14879 if test "X$x" = "X$found_dir"; then
14880 haveit=yes
14881 break
14882 fi
14883 done
14884 if test -z "$haveit"; then
14885 ltrpathdirs="$ltrpathdirs $found_dir"
14886 fi
14887 if test "$hardcode_direct" = yes; then
14888 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14889 else
14890 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14891 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14892 haveit=
14893 for x in $rpathdirs; do
14894 if test "X$x" = "X$found_dir"; then
14895 haveit=yes
14896 break
14897 fi
14898 done
14899 if test -z "$haveit"; then
14900 rpathdirs="$rpathdirs $found_dir"
14901 fi
14902 else
14903 haveit=
14904 for x in $LDFLAGS $LIBICONV; do
14905
14906 acl_save_prefix="$prefix"
14907 prefix="$acl_final_prefix"
14908 acl_save_exec_prefix="$exec_prefix"
14909 exec_prefix="$acl_final_exec_prefix"
14910 eval x=\"$x\"
14911 exec_prefix="$acl_save_exec_prefix"
14912 prefix="$acl_save_prefix"
14913
14914 if test "X$x" = "X-L$found_dir"; then
14915 haveit=yes
14916 break
14917 fi
14918 done
14919 if test -z "$haveit"; then
14920 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
14921 fi
14922 if test "$hardcode_minus_L" != no; then
14923 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14924 else
14925 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14926 fi
14927 fi
14928 fi
14929 fi
14930 else
14931 if test "X$found_a" != "X"; then
14932 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
14933 else
14934 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
14935 fi
14936 fi
14937 additional_includedir=
14938 case "$found_dir" in
14939 */lib | */lib/)
14940 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14941 additional_includedir="$basedir/include"
14942 ;;
14943 esac
14944 if test "X$additional_includedir" != "X"; then
14945 if test "X$additional_includedir" != "X/usr/include"; then
14946 haveit=
14947 if test "X$additional_includedir" = "X/usr/local/include"; then
14948 if test -n "$GCC"; then
14949 case $host_os in
14950 linux*) haveit=yes;;
14951 esac
14952 fi
14953 fi
14954 if test -z "$haveit"; then
14955 for x in $CPPFLAGS $INCICONV; do
14956
14957 acl_save_prefix="$prefix"
14958 prefix="$acl_final_prefix"
14959 acl_save_exec_prefix="$exec_prefix"
14960 exec_prefix="$acl_final_exec_prefix"
14961 eval x=\"$x\"
14962 exec_prefix="$acl_save_exec_prefix"
14963 prefix="$acl_save_prefix"
14964
14965 if test "X$x" = "X-I$additional_includedir"; then
14966 haveit=yes
14967 break
14968 fi
14969 done
14970 if test -z "$haveit"; then
14971 if test -d "$additional_includedir"; then
14972 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
14973 fi
14974 fi
14975 fi
14976 fi
14977 fi
14978 if test -n "$found_la"; then
14979 save_libdir="$libdir"
14980 case "$found_la" in
14981 */* | *\\*) . "$found_la" ;;
14982 *) . "./$found_la" ;;
14983 esac
14984 libdir="$save_libdir"
14985 for dep in $dependency_libs; do
14986 case "$dep" in
14987 -L*)
14988 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14989 if test "X$additional_libdir" != "X/usr/lib"; then
14990 haveit=
14991 if test "X$additional_libdir" = "X/usr/local/lib"; then
14992 if test -n "$GCC"; then
14993 case $host_os in
14994 linux*) haveit=yes;;
14995 esac
14996 fi
14997 fi
14998 if test -z "$haveit"; then
14999 haveit=
15000 for x in $LDFLAGS $LIBICONV; do
15001
15002 acl_save_prefix="$prefix"
15003 prefix="$acl_final_prefix"
15004 acl_save_exec_prefix="$exec_prefix"
15005 exec_prefix="$acl_final_exec_prefix"
15006 eval x=\"$x\"
15007 exec_prefix="$acl_save_exec_prefix"
15008 prefix="$acl_save_prefix"
15009
15010 if test "X$x" = "X-L$additional_libdir"; then
15011 haveit=yes
15012 break
15013 fi
15014 done
15015 if test -z "$haveit"; then
15016 if test -d "$additional_libdir"; then
15017 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
15018 fi
15019 fi
15020 haveit=
15021 for x in $LDFLAGS $LTLIBICONV; do
15022
15023 acl_save_prefix="$prefix"
15024 prefix="$acl_final_prefix"
15025 acl_save_exec_prefix="$exec_prefix"
15026 exec_prefix="$acl_final_exec_prefix"
15027 eval x=\"$x\"
15028 exec_prefix="$acl_save_exec_prefix"
15029 prefix="$acl_save_prefix"
15030
15031 if test "X$x" = "X-L$additional_libdir"; then
15032 haveit=yes
15033 break
15034 fi
15035 done
15036 if test -z "$haveit"; then
15037 if test -d "$additional_libdir"; then
15038 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
15039 fi
15040 fi
15041 fi
15042 fi
15043 ;;
15044 -R*)
15045 dir=`echo "X$dep" | sed -e 's/^X-R//'`
15046 if test "$enable_rpath" != no; then
15047 haveit=
15048 for x in $rpathdirs; do
15049 if test "X$x" = "X$dir"; then
15050 haveit=yes
15051 break
15052 fi
15053 done
15054 if test -z "$haveit"; then
15055 rpathdirs="$rpathdirs $dir"
15056 fi
15057 haveit=
15058 for x in $ltrpathdirs; do
15059 if test "X$x" = "X$dir"; then
15060 haveit=yes
15061 break
15062 fi
15063 done
15064 if test -z "$haveit"; then
15065 ltrpathdirs="$ltrpathdirs $dir"
15066 fi
15067 fi
15068 ;;
15069 -l*)
15070 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15071 ;;
15072 *.la)
15073 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15074 ;;
15075 *)
15076 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
15077 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
15078 ;;
15079 esac
15080 done
15081 fi
15082 else
15083 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15084 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
15085 fi
15086 fi
15087 fi
15088 done
15089 done
15090 if test "X$rpathdirs" != "X"; then
15091 if test -n "$hardcode_libdir_separator"; then
15092 alldirs=
15093 for found_dir in $rpathdirs; do
15094 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
15095 done
15096 acl_save_libdir="$libdir"
15097 libdir="$alldirs"
15098 eval flag=\"$hardcode_libdir_flag_spec\"
15099 libdir="$acl_save_libdir"
15100 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15101 else
15102 for found_dir in $rpathdirs; do
15103 acl_save_libdir="$libdir"
15104 libdir="$found_dir"
15105 eval flag=\"$hardcode_libdir_flag_spec\"
15106 libdir="$acl_save_libdir"
15107 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15108 done
15109 fi
15110 fi
15111 if test "X$ltrpathdirs" != "X"; then
15112 for found_dir in $ltrpathdirs; do
15113 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
15114 done
15115 fi
15116
15117
15118
15119
15120
15121
15122
15123 am_save_CPPFLAGS="$CPPFLAGS"
15124
15125 for element in $INCICONV; do
15126 haveit=
15127 for x in $CPPFLAGS; do
15128
15129 acl_save_prefix="$prefix"
15130 prefix="$acl_final_prefix"
15131 acl_save_exec_prefix="$exec_prefix"
15132 exec_prefix="$acl_final_exec_prefix"
15133 eval x=\"$x\"
15134 exec_prefix="$acl_save_exec_prefix"
15135 prefix="$acl_save_prefix"
15136
15137 if test "X$x" = "X$element"; then
15138 haveit=yes
15139 break
15140 fi
15141 done
15142 if test -z "$haveit"; then
15143 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15144 fi
15145 done
15146
15147
15148 echo "$as_me:$LINENO: checking for iconv" >&5
15149echo $ECHO_N "checking for iconv... $ECHO_C" >&6
15150if test "${am_cv_func_iconv+set}" = set; then
15151 echo $ECHO_N "(cached) $ECHO_C" >&6
15152else
15153
15154 am_cv_func_iconv="no, consider installing GNU libiconv"
15155 am_cv_lib_iconv=no
15156 cat >conftest.$ac_ext <<_ACEOF
15157/* confdefs.h. */
15158_ACEOF
15159cat confdefs.h >>conftest.$ac_ext
15160cat >>conftest.$ac_ext <<_ACEOF
15161/* end confdefs.h. */
15162#include <stdlib.h>
15163#include <iconv.h>
15164int
15165main ()
15166{
15167iconv_t cd = iconv_open("","");
15168 iconv(cd,NULL,NULL,NULL,NULL);
15169 iconv_close(cd);
15170 ;
15171 return 0;
15172}
15173_ACEOF
15174rm -f conftest.$ac_objext conftest$ac_exeext
15175if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15176 (eval $ac_link) 2>conftest.er1
15177 ac_status=$?
15178 grep -v '^ *+' conftest.er1 >conftest.err
15179 rm -f conftest.er1
15180 cat conftest.err >&5
15181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15182 (exit $ac_status); } &&
7357c5b6
AM
15183 { ac_try='test -z "$ac_c_werror_flag"
15184 || test ! -s conftest.err'
5ba684e2
NC
15185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15186 (eval $ac_try) 2>&5
15187 ac_status=$?
15188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15189 (exit $ac_status); }; } &&
15190 { ac_try='test -s conftest$ac_exeext'
15191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15192 (eval $ac_try) 2>&5
15193 ac_status=$?
15194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15195 (exit $ac_status); }; }; then
15196 am_cv_func_iconv=yes
15197else
15198 echo "$as_me: failed program was:" >&5
15199sed 's/^/| /' conftest.$ac_ext >&5
15200
15201fi
15202rm -f conftest.err conftest.$ac_objext \
15203 conftest$ac_exeext conftest.$ac_ext
15204 if test "$am_cv_func_iconv" != yes; then
15205 am_save_LIBS="$LIBS"
15206 LIBS="$LIBS $LIBICONV"
15207 cat >conftest.$ac_ext <<_ACEOF
15208/* confdefs.h. */
15209_ACEOF
15210cat confdefs.h >>conftest.$ac_ext
15211cat >>conftest.$ac_ext <<_ACEOF
15212/* end confdefs.h. */
15213#include <stdlib.h>
15214#include <iconv.h>
15215int
15216main ()
15217{
15218iconv_t cd = iconv_open("","");
15219 iconv(cd,NULL,NULL,NULL,NULL);
15220 iconv_close(cd);
15221 ;
15222 return 0;
15223}
15224_ACEOF
15225rm -f conftest.$ac_objext conftest$ac_exeext
15226if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15227 (eval $ac_link) 2>conftest.er1
15228 ac_status=$?
15229 grep -v '^ *+' conftest.er1 >conftest.err
15230 rm -f conftest.er1
15231 cat conftest.err >&5
15232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15233 (exit $ac_status); } &&
7357c5b6
AM
15234 { ac_try='test -z "$ac_c_werror_flag"
15235 || test ! -s conftest.err'
5ba684e2
NC
15236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15237 (eval $ac_try) 2>&5
15238 ac_status=$?
15239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15240 (exit $ac_status); }; } &&
15241 { ac_try='test -s conftest$ac_exeext'
15242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15243 (eval $ac_try) 2>&5
15244 ac_status=$?
15245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15246 (exit $ac_status); }; }; then
15247 am_cv_lib_iconv=yes
15248 am_cv_func_iconv=yes
15249else
15250 echo "$as_me: failed program was:" >&5
15251sed 's/^/| /' conftest.$ac_ext >&5
15252
15253fi
15254rm -f conftest.err conftest.$ac_objext \
15255 conftest$ac_exeext conftest.$ac_ext
15256 LIBS="$am_save_LIBS"
15257 fi
15258
15259fi
15260echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
15261echo "${ECHO_T}$am_cv_func_iconv" >&6
15262 if test "$am_cv_func_iconv" = yes; then
15263
15264cat >>confdefs.h <<\_ACEOF
15265#define HAVE_ICONV 1
15266_ACEOF
15267
15268 fi
15269 if test "$am_cv_lib_iconv" = yes; then
15270 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
15271echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
15272 echo "$as_me:$LINENO: result: $LIBICONV" >&5
15273echo "${ECHO_T}$LIBICONV" >&6
15274 else
15275 CPPFLAGS="$am_save_CPPFLAGS"
15276 LIBICONV=
15277 LTLIBICONV=
15278 fi
15279
15280
15281
15282 if test "$am_cv_func_iconv" = yes; then
15283 echo "$as_me:$LINENO: checking for iconv declaration" >&5
15284echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
15285 if test "${am_cv_proto_iconv+set}" = set; then
15286 echo $ECHO_N "(cached) $ECHO_C" >&6
15287else
15288
15289 cat >conftest.$ac_ext <<_ACEOF
15290/* confdefs.h. */
15291_ACEOF
15292cat confdefs.h >>conftest.$ac_ext
15293cat >>conftest.$ac_ext <<_ACEOF
15294/* end confdefs.h. */
15295
15296#include <stdlib.h>
15297#include <iconv.h>
15298extern
15299#ifdef __cplusplus
15300"C"
15301#endif
15302#if defined(__STDC__) || defined(__cplusplus)
15303size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
15304#else
15305size_t iconv();
15306#endif
15307
15308int
15309main ()
15310{
15311
15312 ;
15313 return 0;
15314}
15315_ACEOF
15316rm -f conftest.$ac_objext
15317if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15318 (eval $ac_compile) 2>conftest.er1
15319 ac_status=$?
15320 grep -v '^ *+' conftest.er1 >conftest.err
15321 rm -f conftest.er1
15322 cat conftest.err >&5
15323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15324 (exit $ac_status); } &&
7357c5b6
AM
15325 { ac_try='test -z "$ac_c_werror_flag"
15326 || test ! -s conftest.err'
5ba684e2
NC
15327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15328 (eval $ac_try) 2>&5
15329 ac_status=$?
15330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15331 (exit $ac_status); }; } &&
15332 { ac_try='test -s conftest.$ac_objext'
15333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15334 (eval $ac_try) 2>&5
15335 ac_status=$?
15336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15337 (exit $ac_status); }; }; then
15338 am_cv_proto_iconv_arg1=""
15339else
15340 echo "$as_me: failed program was:" >&5
15341sed 's/^/| /' conftest.$ac_ext >&5
15342
15343am_cv_proto_iconv_arg1="const"
15344fi
15345rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15346 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
15347fi
15348
15349 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
15350 echo "$as_me:$LINENO: result: ${ac_t:-
15351 }$am_cv_proto_iconv" >&5
15352echo "${ECHO_T}${ac_t:-
15353 }$am_cv_proto_iconv" >&6
15354
15355cat >>confdefs.h <<_ACEOF
15356#define ICONV_CONST $am_cv_proto_iconv_arg1
15357_ACEOF
15358
15359 fi
15360
15361
252b5132
RH
15362all_targets=false
15363BUILD_NLMCONV=
15364NLMCONV_DEFS=
15365BUILD_SRCONV=
15366BUILD_DLLTOOL=
15367DLLTOOL_DEFS=
7aad4c3d 15368DLLTOOL_DEFAULT=
252b5132 15369BUILD_WINDRES=
692ed3e7 15370BUILD_WINDMC=
252b5132
RH
15371BUILD_DLLWRAP=
15372BUILD_MISC=
1d97d67f 15373BUILD_INSTALL_MISC=
8b1e6df3 15374OBJDUMP_DEFS=
252b5132
RH
15375
15376for targ in $target $canon_targets
15377do
15378 if test "x$targ" = "xall"; then
15379 all_targets=true
15380 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
15381 BUILD_SRCONV='$(SRCONV_PROG)'
15382 NLMCONV_DEFS="-DNLMCONV_I386 -DNLMCONV_ALPHA -DNLMCONV_POWERPC -DNLMCONV_SPARC"
1d97d67f 15383 BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
003bc0ba
NC
15384 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
15385 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
15386 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
15387 if test -z "$DLLTOOL_DEFAULT"; then
15388 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
15389 fi
15390 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
15391 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
252b5132
RH
15392 else
15393 case $targ in
42ecbf5e 15394 i[3-7]86*-*-netware*)
252b5132
RH
15395 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
15396 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_I386"
15397 ;;
15398 alpha*-*-netware*)
15399 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
15400 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_ALPHA"
15401 ;;
15402 powerpc*-*-netware*)
15403 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
15404 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_POWERPC"
15405 ;;
15406 sparc*-*-netware*)
15407 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
15408 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_SPARC"
15409 ;;
15410 esac
15411 case $targ in
15412 *-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;;
15413 esac
15414 case $targ in
a8c548cb
NC
15415 arm-epoc-pe*)
15416 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
15417 if test -z "$DLLTOOL_DEFAULT"; then
15418 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_EPOC"
15419 fi
a8c548cb
NC
15420 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_EPOC -DDLLTOOL_ARM"
15421 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 15422 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
a8c548cb 15423 ;;
7148cc28
NC
15424 arm-wince-pe* | arm-*-wince)
15425 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
15426 if test -z "$DLLTOOL_DEFAULT"; then
15427 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_WINCE"
15428 fi
7148cc28
NC
15429 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_WINCE -DDLLTOOL_ARM"
15430 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 15431 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
7148cc28
NC
15432 ;;
15433 arm-*-pe*)
252b5132 15434 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
15435 if test -z "$DLLTOOL_DEFAULT"; then
15436 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
15437 fi
252b5132
RH
15438 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
15439 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 15440 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
7a7b06ef 15441 ;;
27a710e5 15442 thumb-*-pe*)
252b5132 15443 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
15444 if test -z "$DLLTOOL_DEFAULT"; then
15445 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
15446 fi
252b5132
RH
15447 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
15448 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 15449 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
7a7b06ef 15450 ;;
42037fe5 15451 x86_64-*-mingw*)
99ad8390 15452 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
15453 if test -z "$DLLTOOL_DEFAULT"; then
15454 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MX86_64"
15455 fi
99ad8390
NC
15456 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MX86_64"
15457 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 15458 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
99ad8390
NC
15459 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
15460 ;;
80c7c40a 15461 i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32** | i[3-7]86-*-netbsdpe*)
252b5132 15462 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
15463 if test -z "$DLLTOOL_DEFAULT"; then
15464 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
15465 fi
252b5132
RH
15466 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
15467 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 15468 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
252b5132 15469 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
7a7b06ef 15470 ;;
80c7c40a 15471 i[3-7]86-*-interix)
7a7b06ef 15472 BUILD_DLLTOOL='$(DLLTOOL_PROG)'
7aad4c3d
L
15473 if test -z "$DLLTOOL_DEFAULT"; then
15474 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
15475 fi
7a7b06ef
ILT
15476 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
15477 ;;
f0660b73
NC
15478 powerpc*-aix5.[01])
15479 ;;
15480 powerpc*-aix5.*)
15481 OBJDUMP_DEFS="-DAIX_WEAK_SUPPORT"
15482 ;;
e1d5b1e7 15483 powerpc*-*-pe* | powerpc*-*-cygwin*)
252b5132 15484 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
15485 if test -z "$DLLTOOL_DEFAULT"; then
15486 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_PPC"
15487 fi
252b5132
RH
15488 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_PPC"
15489 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 15490 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
8a0e0f38 15491 ;;
59678365 15492 powerpc*-*-linux* | powerpc*-*-elf* | powerpc*-*-eabi*)
1d97d67f 15493 BUILD_INSTALL_MISC="${BUILD_INSTALL_MISC} embedspu"
669a9a2a 15494 ;;
e1d5b1e7 15495 sh*-*-pe)
8a0e0f38 15496 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
15497 if test -z "$DLLTOOL_DEFAULT"; then
15498 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_SH"
15499 fi
8a0e0f38
NC
15500 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH"
15501 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 15502 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
8a0e0f38 15503 ;;
cd14b966 15504 spu-*-*)
1d97d67f 15505 BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
cd14b966 15506 ;;
e1d5b1e7 15507 mips*-*-pe)
8a0e0f38 15508 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
15509 if test -z "$DLLTOOL_DEFAULT"; then
15510 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MIPS"
15511 fi
8a0e0f38
NC
15512 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS"
15513 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 15514 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
7a7b06ef 15515 ;;
27a710e5 15516 mcore-*-pe)
661016bb 15517 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
15518 if test -z "$DLLTOOL_DEFAULT"; then
15519 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE"
15520 fi
661016bb
NC
15521 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
15522 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 15523 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
7a7b06ef 15524 ;;
27a710e5 15525 mcore-*-elf)
661016bb 15526 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
15527 if test -z "$DLLTOOL_DEFAULT"; then
15528 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE_ELF"
15529 fi
661016bb 15530 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
7a7b06ef 15531 ;;
15ab5209
DB
15532 mep-*)
15533 OBJDUMP_DEFS="-DSKIP_ZEROES=256 -DSKIP_ZEROES_AT_END=0"
15534 ;;
252b5132
RH
15535 esac
15536 fi
15537done
15538
7aad4c3d
L
15539DLLTOOL_DEFS="$DLLTOOL_DEFS $DLLTOOL_DEFAULT"
15540
42ecbf5e
DJ
15541if test "${with_windres+set}" = set; then
15542 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
15543fi
15544
692ed3e7
NC
15545if test "${with_windmc+set}" = set; then
15546 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
15547fi
15548
15549
42ecbf5e
DJ
15550
15551
15552
15553
15554
15555
15556
15557
15558
15559
15560
1d97d67f 15561
42ecbf5e
DJ
15562cat >>confdefs.h <<_ACEOF
15563#define TARGET "${target}"
15564_ACEOF
15565
15566
15567targ=$target
15568. $srcdir/../bfd/config.bfd
15569if test "x$targ_underscore" = "xyes"; then
15570 UNDERSCORE=1
15571else
15572 UNDERSCORE=0
15573fi
15574
15575cat >>confdefs.h <<_ACEOF
15576#define TARGET_PREPENDS_UNDERSCORE $UNDERSCORE
15577_ACEOF
15578
15579
15580# Emulation
15581for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
15582do
15583 # Canonicalize the secondary target names.
15584 result=`$ac_config_sub $targ_alias 2>/dev/null`
15585 if test -n "$result"; then
15586 targ=$result
15587 else
15588 targ=$targ_alias
15589 fi
15590
15591 . ${srcdir}/configure.tgt
15592
15593 EMULATION=$targ_emul
15594 EMULATION_VECTOR=$targ_emul_vector
15595done
15596
15597
15598
15599
108a6f8e
CD
15600# Required for html and install-html
15601
15602
15603
15604
42ecbf5e 15605 ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
da594c4a 15606
42ecbf5e
DJ
15607cat >confcache <<\_ACEOF
15608# This file is a shell script that caches the results of configure
15609# tests run on this system so they can be shared between configure
15610# scripts and configure runs, see configure's option --config-cache.
15611# It is not useful on other systems. If it contains results you don't
15612# want to keep, you may remove or edit it.
15613#
15614# config.status only pays attention to the cache file if you give it
15615# the --recheck option to rerun configure.
15616#
15617# `ac_cv_env_foo' variables (set or unset) will be overridden when
15618# loading this file, other *unset* `ac_cv_foo' will be assigned the
15619# following values.
15620
15621_ACEOF
15622
15623# The following way of writing the cache mishandles newlines in values,
15624# but we know of no workaround that is simple, portable, and efficient.
15625# So, don't put newlines in cache variables' values.
15626# Ultrix sh set writes to stderr and can't be redirected directly,
15627# and sets the high bit in the cache file unless we assign to the vars.
15628{
15629 (set) 2>&1 |
15630 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15631 *ac_space=\ *)
15632 # `set' does not quote correctly, so add quotes (double-quote
15633 # substitution turns \\\\ into \\, and sed turns \\ into \).
15634 sed -n \
15635 "s/'/'\\\\''/g;
15636 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15637 ;;
15638 *)
15639 # `set' quotes correctly as required by POSIX, so do not add quotes.
15640 sed -n \
15641 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15642 ;;
15643 esac;
15644} |
15645 sed '
15646 t clear
15647 : clear
15648 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15649 t end
15650 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15651 : end' >>confcache
15652if diff $cache_file confcache >/dev/null 2>&1; then :; else
15653 if test -w $cache_file; then
15654 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15655 cat confcache >$cache_file
15656 else
15657 echo "not updating unwritable cache $cache_file"
15658 fi
15659fi
15660rm -f confcache
15661
15662test "x$prefix" = xNONE && prefix=$ac_default_prefix
15663# Let make expand exec_prefix.
15664test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15665
15666# VPATH may cause trouble with some makes, so we remove $(srcdir),
15667# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15668# trailing colons and then remove the whole line if VPATH becomes empty
15669# (actually we leave an empty line to preserve line numbers).
15670if test "x$srcdir" = x.; then
15671 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15672s/:*\$(srcdir):*/:/;
15673s/:*\${srcdir}:*/:/;
15674s/:*@srcdir@:*/:/;
15675s/^\([^=]*=[ ]*\):*/\1/;
15676s/:*$//;
15677s/^[^=]*=[ ]*$//;
15678}'
15679fi
15680
15681DEFS=-DHAVE_CONFIG_H
15682
15683ac_libobjs=
15684ac_ltlibobjs=
15685for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15686 # 1. Remove the extension, and $U if already installed.
15687 ac_i=`echo "$ac_i" |
15688 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15689 # 2. Add them.
15690 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15691 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15692done
15693LIBOBJS=$ac_libobjs
15694
15695LTLIBOBJS=$ac_ltlibobjs
15696
15697
15698if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15699 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
15700Usually this means the macro was only invoked conditionally." >&5
15701echo "$as_me: error: conditional \"AMDEP\" was never defined.
15702Usually this means the macro was only invoked conditionally." >&2;}
15703 { (exit 1); exit 1; }; }
15704fi
15705if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15706 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
15707Usually this means the macro was only invoked conditionally." >&5
15708echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
15709Usually this means the macro was only invoked conditionally." >&2;}
15710 { (exit 1); exit 1; }; }
15711fi
15712if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15713 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
15714Usually this means the macro was only invoked conditionally." >&5
15715echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
15716Usually this means the macro was only invoked conditionally." >&2;}
15717 { (exit 1); exit 1; }; }
15718fi
d5fbea21
DJ
15719if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
15720 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
15721Usually this means the macro was only invoked conditionally." >&5
15722echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
15723Usually this means the macro was only invoked conditionally." >&2;}
15724 { (exit 1); exit 1; }; }
15725fi
42ecbf5e
DJ
15726
15727: ${CONFIG_STATUS=./config.status}
15728ac_clean_files_save=$ac_clean_files
15729ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15730{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15731echo "$as_me: creating $CONFIG_STATUS" >&6;}
15732cat >$CONFIG_STATUS <<_ACEOF
15733#! $SHELL
15734# Generated by $as_me.
15735# Run this file to recreate the current configuration.
15736# Compiler output produced by configure, useful for debugging
15737# configure, is in config.log if it exists.
15738
15739debug=false
15740ac_cs_recheck=false
15741ac_cs_silent=false
15742SHELL=\${CONFIG_SHELL-$SHELL}
15743_ACEOF
252b5132 15744
42ecbf5e
DJ
15745cat >>$CONFIG_STATUS <<\_ACEOF
15746## --------------------- ##
15747## M4sh Initialization. ##
15748## --------------------- ##
252b5132 15749
42ecbf5e
DJ
15750# Be Bourne compatible
15751if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15752 emulate sh
15753 NULLCMD=:
15754 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15755 # is contrary to our usage. Disable this feature.
15756 alias -g '${1+"$@"}'='"$@"'
15757elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15758 set -o posix
15759fi
15760DUALCASE=1; export DUALCASE # for MKS sh
252b5132 15761
42ecbf5e
DJ
15762# Support unset when possible.
15763if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15764 as_unset=unset
15765else
15766 as_unset=false
15767fi
252b5132
RH
15768
15769
42ecbf5e
DJ
15770# Work around bugs in pre-3.0 UWIN ksh.
15771$as_unset ENV MAIL MAILPATH
15772PS1='$ '
15773PS2='> '
15774PS4='+ '
252b5132 15775
42ecbf5e
DJ
15776# NLS nuisances.
15777for as_var in \
15778 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15779 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15780 LC_TELEPHONE LC_TIME
15781do
15782 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15783 eval $as_var=C; export $as_var
15784 else
15785 $as_unset $as_var
15786 fi
15787done
252b5132 15788
42ecbf5e
DJ
15789# Required to use basename.
15790if expr a : '\(a\)' >/dev/null 2>&1; then
15791 as_expr=expr
15792else
15793 as_expr=false
15794fi
252b5132 15795
42ecbf5e
DJ
15796if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
15797 as_basename=basename
15798else
15799 as_basename=false
15800fi
252b5132 15801
8b1e6df3 15802
42ecbf5e
DJ
15803# Name of the executable.
15804as_me=`$as_basename "$0" ||
15805$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15806 X"$0" : 'X\(//\)$' \| \
15807 X"$0" : 'X\(/\)$' \| \
15808 . : '\(.\)' 2>/dev/null ||
15809echo X/"$0" |
15810 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15811 /^X\/\(\/\/\)$/{ s//\1/; q; }
15812 /^X\/\(\/\).*/{ s//\1/; q; }
15813 s/.*/./; q'`
0218d1e4 15814
252b5132 15815
42ecbf5e
DJ
15816# PATH needs CR, and LINENO needs CR and PATH.
15817# Avoid depending upon Character Ranges.
15818as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15819as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15820as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15821as_cr_digits='0123456789'
15822as_cr_alnum=$as_cr_Letters$as_cr_digits
252b5132 15823
42ecbf5e
DJ
15824# The user is always right.
15825if test "${PATH_SEPARATOR+set}" != set; then
15826 echo "#! /bin/sh" >conf$$.sh
15827 echo "exit 0" >>conf$$.sh
15828 chmod +x conf$$.sh
15829 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15830 PATH_SEPARATOR=';'
15831 else
15832 PATH_SEPARATOR=:
15833 fi
15834 rm -f conf$$.sh
252b5132
RH
15835fi
15836
15837
42ecbf5e
DJ
15838 as_lineno_1=$LINENO
15839 as_lineno_2=$LINENO
15840 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15841 test "x$as_lineno_1" != "x$as_lineno_2" &&
15842 test "x$as_lineno_3" = "x$as_lineno_2" || {
15843 # Find who we are. Look in the path if we contain no path at all
15844 # relative or not.
15845 case $0 in
15846 *[\\/]* ) as_myself=$0 ;;
15847 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15848for as_dir in $PATH
eb1e0e80 15849do
42ecbf5e
DJ
15850 IFS=$as_save_IFS
15851 test -z "$as_dir" && as_dir=.
15852 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15853done
eb1e0e80 15854
42ecbf5e
DJ
15855 ;;
15856 esac
15857 # We did not find ourselves, most probably we were run as `sh COMMAND'
15858 # in which case we are not to be found in the path.
15859 if test "x$as_myself" = x; then
15860 as_myself=$0
15861 fi
15862 if test ! -f "$as_myself"; then
15863 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15864echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15865 { (exit 1); exit 1; }; }
15866 fi
15867 case $CONFIG_SHELL in
15868 '')
15869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15870for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15871do
15872 IFS=$as_save_IFS
15873 test -z "$as_dir" && as_dir=.
15874 for as_base in sh bash ksh sh5; do
15875 case $as_dir in
15876 /*)
15877 if ("$as_dir/$as_base" -c '
15878 as_lineno_1=$LINENO
15879 as_lineno_2=$LINENO
15880 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15881 test "x$as_lineno_1" != "x$as_lineno_2" &&
15882 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
15883 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
15884 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
15885 CONFIG_SHELL=$as_dir/$as_base
15886 export CONFIG_SHELL
15887 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15888 fi;;
15889 esac
15890 done
eb1e0e80 15891done
42ecbf5e
DJ
15892;;
15893 esac
eb1e0e80 15894
42ecbf5e
DJ
15895 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15896 # uniformly replaced by the line number. The first 'sed' inserts a
15897 # line-number line before each line; the second 'sed' does the real
15898 # work. The second script uses 'N' to pair each line-number line
15899 # with the numbered line, and appends trailing '-' during
15900 # substitution so that $LINENO is not a special case at line end.
15901 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15902 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
15903 sed '=' <$as_myself |
15904 sed '
15905 N
15906 s,$,-,
15907 : loop
15908 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15909 t loop
15910 s,-$,,
15911 s,^['$as_cr_digits']*\n,,
15912 ' >$as_me.lineno &&
15913 chmod +x $as_me.lineno ||
15914 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15915echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15916 { (exit 1); exit 1; }; }
15917
15918 # Don't try to exec as it changes $[0], causing all sort of problems
15919 # (the dirname of $[0] is not the place where we might find the
15920 # original and so on. Autoconf is especially sensible to this).
15921 . ./$as_me.lineno
15922 # Exit status is that of the last command.
15923 exit
15924}
eb1e0e80
NC
15925
15926
42ecbf5e
DJ
15927case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15928 *c*,-n*) ECHO_N= ECHO_C='
15929' ECHO_T=' ' ;;
15930 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15931 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
15932esac
eb1e0e80 15933
42ecbf5e
DJ
15934if expr a : '\(a\)' >/dev/null 2>&1; then
15935 as_expr=expr
d15b04bd 15936else
42ecbf5e
DJ
15937 as_expr=false
15938fi
15939
15940rm -f conf$$ conf$$.exe conf$$.file
15941echo >conf$$.file
15942if ln -s conf$$.file conf$$ 2>/dev/null; then
15943 # We could just check for DJGPP; but this test a) works b) is more generic
15944 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15945 if test -f conf$$.exe; then
15946 # Don't use ln at all; we don't have any links
15947 as_ln_s='cp -p'
252b5132 15948 else
42ecbf5e 15949 as_ln_s='ln -s'
252b5132 15950 fi
42ecbf5e
DJ
15951elif ln conf$$.file conf$$ 2>/dev/null; then
15952 as_ln_s=ln
15953else
15954 as_ln_s='cp -p'
252b5132 15955fi
42ecbf5e 15956rm -f conf$$ conf$$.exe conf$$.file
252b5132 15957
42ecbf5e
DJ
15958if mkdir -p . 2>/dev/null; then
15959 as_mkdir_p=:
15960else
15961 test -d ./-p && rmdir ./-p
15962 as_mkdir_p=false
15963fi
d15b04bd 15964
42ecbf5e 15965as_executable_p="test -f"
252b5132 15966
42ecbf5e
DJ
15967# Sed expression to map a string onto a valid CPP name.
15968as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15969
15970# Sed expression to map a string onto a valid variable name.
15971as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15972
15973
15974# IFS
15975# We need space, tab and new line, in precisely that order.
15976as_nl='
15977'
15978IFS=" $as_nl"
15979
15980# CDPATH.
15981$as_unset CDPATH
15982
15983exec 6>&1
15984
15985# Open the log real soon, to keep \$[0] and so on meaningful, and to
15986# report actual input values of CONFIG_FILES etc. instead of their
15987# values after options handling. Logging --version etc. is OK.
15988exec 5>>config.log
15989{
15990 echo
15991 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15992## Running $as_me. ##
15993_ASBOX
15994} >&5
15995cat >&5 <<_CSEOF
15996
15997This file was extended by $as_me, which was
15998generated by GNU Autoconf 2.59. Invocation command line was
15999
16000 CONFIG_FILES = $CONFIG_FILES
16001 CONFIG_HEADERS = $CONFIG_HEADERS
16002 CONFIG_LINKS = $CONFIG_LINKS
16003 CONFIG_COMMANDS = $CONFIG_COMMANDS
16004 $ $0 $@
16005
16006_CSEOF
16007echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16008echo >&5
16009_ACEOF
16010
16011# Files that config.status was made for.
16012if test -n "$ac_config_files"; then
16013 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
252b5132
RH
16014fi
16015
42ecbf5e
DJ
16016if test -n "$ac_config_headers"; then
16017 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16018fi
e5a52504 16019
42ecbf5e
DJ
16020if test -n "$ac_config_links"; then
16021 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16022fi
e5a52504 16023
42ecbf5e
DJ
16024if test -n "$ac_config_commands"; then
16025 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16026fi
d15b04bd 16027
42ecbf5e
DJ
16028cat >>$CONFIG_STATUS <<\_ACEOF
16029
16030ac_cs_usage="\
16031\`$as_me' instantiates files from templates according to the
16032current configuration.
16033
16034Usage: $0 [OPTIONS] [FILE]...
16035
16036 -h, --help print this help, then exit
16037 -V, --version print version number, then exit
16038 -q, --quiet do not print progress messages
16039 -d, --debug don't remove temporary files
16040 --recheck update $as_me by reconfiguring in the same conditions
16041 --file=FILE[:TEMPLATE]
16042 instantiate the configuration file FILE
16043 --header=FILE[:TEMPLATE]
16044 instantiate the configuration header FILE
16045
16046Configuration files:
16047$config_files
16048
16049Configuration headers:
16050$config_headers
16051
16052Configuration commands:
16053$config_commands
16054
16055Report bugs to <bug-autoconf@gnu.org>."
16056_ACEOF
16057
16058cat >>$CONFIG_STATUS <<_ACEOF
16059ac_cs_version="\\
16060config.status
16061configured by $0, generated by GNU Autoconf 2.59,
16062 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16063
16064Copyright (C) 2003 Free Software Foundation, Inc.
16065This config.status script is free software; the Free Software Foundation
16066gives unlimited permission to copy, distribute and modify it."
16067srcdir=$srcdir
16068INSTALL="$INSTALL"
16069_ACEOF
16070
16071cat >>$CONFIG_STATUS <<\_ACEOF
16072# If no file are specified by the user, then we need to provide default
16073# value. By we need to know if files were specified by the user.
16074ac_need_defaults=:
16075while test $# != 0
16076do
16077 case $1 in
16078 --*=*)
16079 ac_option=`expr "x$1" : 'x\([^=]*\)='`
16080 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16081 ac_shift=:
16082 ;;
16083 -*)
16084 ac_option=$1
16085 ac_optarg=$2
16086 ac_shift=shift
16087 ;;
16088 *) # This is not an option, so the user has probably given explicit
16089 # arguments.
16090 ac_option=$1
16091 ac_need_defaults=false;;
16092 esac
16093
16094 case $ac_option in
16095 # Handling of the options.
16096_ACEOF
16097cat >>$CONFIG_STATUS <<\_ACEOF
16098 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16099 ac_cs_recheck=: ;;
16100 --version | --vers* | -V )
16101 echo "$ac_cs_version"; exit 0 ;;
16102 --he | --h)
16103 # Conflict between --help and --header
16104 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16105Try \`$0 --help' for more information." >&5
16106echo "$as_me: error: ambiguous option: $1
16107Try \`$0 --help' for more information." >&2;}
16108 { (exit 1); exit 1; }; };;
16109 --help | --hel | -h )
16110 echo "$ac_cs_usage"; exit 0 ;;
16111 --debug | --d* | -d )
16112 debug=: ;;
16113 --file | --fil | --fi | --f )
16114 $ac_shift
16115 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16116 ac_need_defaults=false;;
16117 --header | --heade | --head | --hea )
16118 $ac_shift
16119 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16120 ac_need_defaults=false;;
16121 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16122 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16123 ac_cs_silent=: ;;
16124
16125 # This is an error.
16126 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16127Try \`$0 --help' for more information." >&5
16128echo "$as_me: error: unrecognized option: $1
16129Try \`$0 --help' for more information." >&2;}
16130 { (exit 1); exit 1; }; } ;;
16131
16132 *) ac_config_targets="$ac_config_targets $1" ;;
16133
16134 esac
16135 shift
16136done
16137
16138ac_configure_extra_args=
16139
16140if $ac_cs_silent; then
16141 exec 6>/dev/null
16142 ac_configure_extra_args="$ac_configure_extra_args --silent"
16143fi
16144
16145_ACEOF
16146cat >>$CONFIG_STATUS <<_ACEOF
16147if \$ac_cs_recheck; then
16148 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16149 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16150fi
16151
16152_ACEOF
16153
16154cat >>$CONFIG_STATUS <<_ACEOF
d15b04bd 16155#
42ecbf5e 16156# INIT-COMMANDS section.
d15b04bd 16157#
e5a52504 16158
42ecbf5e 16159AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
16160
16161
16162# The HP-UX ksh and POSIX shell print the target directory to stdout
16163# if CDPATH is set.
16164(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16165
16166sed_quote_subst='$sed_quote_subst'
16167double_quote_subst='$double_quote_subst'
16168delay_variable_subst='$delay_variable_subst'
16169macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
16170macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
16171enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
16172enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
16173pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
16174enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
16175host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
16176host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
16177host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
16178build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
16179build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
16180build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
16181SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
16182Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
16183GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
16184EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
16185FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
16186LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
16187NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
16188LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
16189max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
16190ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
16191exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
16192lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
16193lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
16194lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
16195reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
16196reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16197deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
16198file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
16199AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
16200AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16201STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
16202RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
16203old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16204old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16205old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16206CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
16207CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16208compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
16209GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
16210lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
16211lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
16212lt_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"`'
16213objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
16214SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
16215ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
16216MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
16217lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
16218lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
16219lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
16220lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
16221lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
16222need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
16223libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
16224shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16225extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16226archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
16227enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
16228export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16229whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16230compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
16231old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16232old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16233archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16234archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16235module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16236module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16237with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
16238allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16239no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16240hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16241hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
16242hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
16243hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
16244hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
16245hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
16246hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16247hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
16248inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
16249link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
16250fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
16251always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
16252export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16253exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16254include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16255prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16256file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
16257variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
16258need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16259need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
16260version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
16261runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16262shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16263shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
16264libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16265library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
16266soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16267postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16268postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16269finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16270finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
16271hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
16272sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16273sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16274hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
16275enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
16276enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
16277enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
16278old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
16279striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
16280
16281LTCC='$LTCC'
16282LTCFLAGS='$LTCFLAGS'
16283compiler='$compiler_DEFAULT'
16284
16285# Quote evaled strings.
16286for var in SED \
16287GREP \
16288EGREP \
16289FGREP \
16290LD \
16291NM \
16292LN_S \
16293lt_SP2NL \
16294lt_NL2SP \
16295reload_flag \
16296deplibs_check_method \
16297file_magic_cmd \
16298AR \
16299AR_FLAGS \
16300STRIP \
16301RANLIB \
16302CC \
16303CFLAGS \
16304compiler \
16305lt_cv_sys_global_symbol_pipe \
16306lt_cv_sys_global_symbol_to_cdecl \
16307lt_cv_sys_global_symbol_to_c_name_address \
16308SHELL \
16309ECHO \
16310lt_prog_compiler_no_builtin_flag \
16311lt_prog_compiler_wl \
16312lt_prog_compiler_pic \
16313lt_prog_compiler_static \
16314lt_cv_prog_compiler_c_o \
16315need_locks \
16316shrext_cmds \
16317export_dynamic_flag_spec \
16318whole_archive_flag_spec \
16319compiler_needs_object \
16320with_gnu_ld \
16321allow_undefined_flag \
16322no_undefined_flag \
16323hardcode_libdir_flag_spec \
16324hardcode_libdir_flag_spec_ld \
16325hardcode_libdir_separator \
16326fix_srcfile_path \
16327exclude_expsyms \
16328include_expsyms \
16329file_list_spec \
16330variables_saved_for_relink \
16331libname_spec \
16332library_names_spec \
16333soname_spec \
16334finish_eval \
16335old_striplib \
16336striplib; do
16337 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16338 *[\\\\\\\`\\"\\\$]*)
16339 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16340 ;;
16341 *)
16342 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16343 ;;
16344 esac
16345done
16346
16347# Double-quote double-evaled strings.
16348for var in reload_cmds \
16349old_postinstall_cmds \
16350old_postuninstall_cmds \
16351old_archive_cmds \
16352extract_expsyms_cmds \
16353old_archive_from_new_cmds \
16354old_archive_from_expsyms_cmds \
16355archive_cmds \
16356archive_expsym_cmds \
16357module_cmds \
16358module_expsym_cmds \
16359export_symbols_cmds \
16360prelink_cmds \
16361postinstall_cmds \
16362postuninstall_cmds \
16363finish_cmds \
16364sys_lib_search_path_spec \
16365sys_lib_dlsearch_path_spec; do
16366 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16367 *[\\\\\\\`\\"\\\$]*)
16368 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16369 ;;
16370 *)
16371 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16372 ;;
16373 esac
16374done
16375
16376# Fix-up fallback echo if it was mangled by the above quoting rules.
16377case \$lt_ECHO in
16378*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
16379 ;;
16380esac
16381
16382ac_aux_dir='$ac_aux_dir'
16383xsi_shell='$xsi_shell'
16384lt_shell_append='$lt_shell_append'
16385
16386# See if we are running on zsh, and set the options which allow our
16387# commands through without removal of \ escapes INIT.
16388if test -n "\${ZSH_VERSION+set}" ; then
16389 setopt NO_GLOB_SUBST
16390fi
16391
16392
16393 PACKAGE='$PACKAGE'
16394 VERSION='$VERSION'
16395 TIMESTAMP='$TIMESTAMP'
16396 RM='$RM'
16397 ofile='$ofile'
16398
16399
16400
20e95c23
DJ
16401# Capture the value of obsolete ALL_LINGUAS because we need it to compute
16402 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
16403 # from automake.
16404 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
16405 # Capture the value of LINGUAS because we need it to compute CATALOGS.
16406 LINGUAS="${LINGUAS-%UNSET%}"
16407
42ecbf5e
DJ
16408
16409_ACEOF
16410
16411
16412
16413cat >>$CONFIG_STATUS <<\_ACEOF
16414for ac_config_target in $ac_config_targets
252b5132 16415do
42ecbf5e
DJ
16416 case "$ac_config_target" in
16417 # Handling of arguments.
16418 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16419 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16420 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
16421 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
d7040cdb 16422 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20e95c23 16423 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
42ecbf5e
DJ
16424 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
16425 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16426echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16427 { (exit 1); exit 1; }; };;
d15b04bd 16428 esac
252b5132
RH
16429done
16430
42ecbf5e
DJ
16431# If the user did not use the arguments to specify the items to instantiate,
16432# then the envvar interface is used. Set only those that are not.
16433# We use the long form for the default assignment because of an extremely
16434# bizarre bug on SunOS 4.1.3.
16435if $ac_need_defaults; then
16436 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16437 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16438 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16439fi
16440
16441# Have a temporary directory for convenience. Make it in the build tree
16442# simply because there is no reason to put it here, and in addition,
16443# creating and moving files from /tmp can sometimes cause problems.
16444# Create a temporary directory, and hook for its removal unless debugging.
16445$debug ||
16446{
16447 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16448 trap '{ (exit 1); exit 1; }' 1 2 13 15
16449}
252b5132 16450
42ecbf5e 16451# Create a (secure) tmp directory for tmp files.
e5a52504 16452
42ecbf5e
DJ
16453{
16454 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
16455 test -n "$tmp" && test -d "$tmp"
16456} ||
16457{
16458 tmp=./confstat$$-$RANDOM
16459 (umask 077 && mkdir $tmp)
16460} ||
16461{
16462 echo "$me: cannot create a temporary directory in ." >&2
16463 { (exit 1); exit 1; }
16464}
16465
16466_ACEOF
16467
16468cat >>$CONFIG_STATUS <<_ACEOF
16469
16470#
16471# CONFIG_FILES section.
16472#
e5a52504 16473
42ecbf5e
DJ
16474# No need to generate the scripts if there are no CONFIG_FILES.
16475# This happens for instance when ./config.status config.h
16476if test -n "\$CONFIG_FILES"; then
16477 # Protect against being on the right side of a sed subst in config.status.
16478 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16479 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16480s,@SHELL@,$SHELL,;t t
16481s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16482s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16483s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16484s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16485s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16486s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16487s,@exec_prefix@,$exec_prefix,;t t
16488s,@prefix@,$prefix,;t t
16489s,@program_transform_name@,$program_transform_name,;t t
16490s,@bindir@,$bindir,;t t
16491s,@sbindir@,$sbindir,;t t
16492s,@libexecdir@,$libexecdir,;t t
16493s,@datadir@,$datadir,;t t
16494s,@sysconfdir@,$sysconfdir,;t t
16495s,@sharedstatedir@,$sharedstatedir,;t t
16496s,@localstatedir@,$localstatedir,;t t
16497s,@libdir@,$libdir,;t t
16498s,@includedir@,$includedir,;t t
16499s,@oldincludedir@,$oldincludedir,;t t
16500s,@infodir@,$infodir,;t t
16501s,@mandir@,$mandir,;t t
16502s,@build_alias@,$build_alias,;t t
16503s,@host_alias@,$host_alias,;t t
16504s,@target_alias@,$target_alias,;t t
16505s,@DEFS@,$DEFS,;t t
16506s,@ECHO_C@,$ECHO_C,;t t
16507s,@ECHO_N@,$ECHO_N,;t t
16508s,@ECHO_T@,$ECHO_T,;t t
16509s,@LIBS@,$LIBS,;t t
16510s,@build@,$build,;t t
16511s,@build_cpu@,$build_cpu,;t t
16512s,@build_vendor@,$build_vendor,;t t
16513s,@build_os@,$build_os,;t t
16514s,@host@,$host,;t t
16515s,@host_cpu@,$host_cpu,;t t
16516s,@host_vendor@,$host_vendor,;t t
16517s,@host_os@,$host_os,;t t
16518s,@target@,$target,;t t
16519s,@target_cpu@,$target_cpu,;t t
16520s,@target_vendor@,$target_vendor,;t t
16521s,@target_os@,$target_os,;t t
16522s,@CC@,$CC,;t t
16523s,@CFLAGS@,$CFLAGS,;t t
16524s,@LDFLAGS@,$LDFLAGS,;t t
16525s,@CPPFLAGS@,$CPPFLAGS,;t t
16526s,@ac_ct_CC@,$ac_ct_CC,;t t
16527s,@EXEEXT@,$EXEEXT,;t t
16528s,@OBJEXT@,$OBJEXT,;t t
16529s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16530s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
16531s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16532s,@CYGPATH_W@,$CYGPATH_W,;t t
16533s,@PACKAGE@,$PACKAGE,;t t
16534s,@VERSION@,$VERSION,;t t
16535s,@ACLOCAL@,$ACLOCAL,;t t
16536s,@AUTOCONF@,$AUTOCONF,;t t
16537s,@AUTOMAKE@,$AUTOMAKE,;t t
16538s,@AUTOHEADER@,$AUTOHEADER,;t t
16539s,@MAKEINFO@,$MAKEINFO,;t t
16540s,@install_sh@,$install_sh,;t t
16541s,@STRIP@,$STRIP,;t t
16542s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
16543s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
16544s,@mkdir_p@,$mkdir_p,;t t
16545s,@AWK@,$AWK,;t t
16546s,@SET_MAKE@,$SET_MAKE,;t t
16547s,@am__leading_dot@,$am__leading_dot,;t t
16548s,@AMTAR@,$AMTAR,;t t
16549s,@am__tar@,$am__tar,;t t
16550s,@am__untar@,$am__untar,;t t
16551s,@DEPDIR@,$DEPDIR,;t t
16552s,@am__include@,$am__include,;t t
16553s,@am__quote@,$am__quote,;t t
16554s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
16555s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
16556s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
16557s,@CCDEPMODE@,$CCDEPMODE,;t t
16558s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
16559s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
7357c5b6
AM
16560s,@CPP@,$CPP,;t t
16561s,@EGREP@,$EGREP,;t t
d7040cdb
SE
16562s,@LIBTOOL@,$LIBTOOL,;t t
16563s,@SED@,$SED,;t t
d7040cdb
SE
16564s,@FGREP@,$FGREP,;t t
16565s,@GREP@,$GREP,;t t
16566s,@LD@,$LD,;t t
16567s,@DUMPBIN@,$DUMPBIN,;t t
16568s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
16569s,@NM@,$NM,;t t
42ecbf5e 16570s,@LN_S@,$LN_S,;t t
d7040cdb
SE
16571s,@AR@,$AR,;t t
16572s,@ac_ct_AR@,$ac_ct_AR,;t t
42ecbf5e
DJ
16573s,@RANLIB@,$RANLIB,;t t
16574s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
d7040cdb 16575s,@lt_ECHO@,$lt_ECHO,;t t
42ecbf5e
DJ
16576s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
16577s,@NO_WERROR@,$NO_WERROR,;t t
16578s,@YACC@,$YACC,;t t
16579s,@LEX@,$LEX,;t t
16580s,@LEXLIB@,$LEXLIB,;t t
16581s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
42ecbf5e 16582s,@USE_NLS@,$USE_NLS,;t t
20e95c23
DJ
16583s,@LIBINTL@,$LIBINTL,;t t
16584s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
16585s,@INCINTL@,$INCINTL,;t t
42ecbf5e 16586s,@XGETTEXT@,$XGETTEXT,;t t
20e95c23
DJ
16587s,@GMSGFMT@,$GMSGFMT,;t t
16588s,@POSUB@,$POSUB,;t t
42ecbf5e 16589s,@CATALOGS@,$CATALOGS,;t t
42ecbf5e 16590s,@DATADIRNAME@,$DATADIRNAME,;t t
42ecbf5e 16591s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20e95c23
DJ
16592s,@GENCAT@,$GENCAT,;t t
16593s,@CATOBJEXT@,$CATOBJEXT,;t t
42ecbf5e 16594s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
20e95c23
DJ
16595s,@MSGFMT@,$MSGFMT,;t t
16596s,@MSGMERGE@,$MSGMERGE,;t t
42ecbf5e
DJ
16597s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
16598s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
16599s,@MAINT@,$MAINT,;t t
d5fbea21
DJ
16600s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
16601s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
42ecbf5e 16602s,@HDEFINES@,$HDEFINES,;t t
42ecbf5e
DJ
16603s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
16604s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
16605s,@DEMANGLER_NAME@,$DEMANGLER_NAME,;t t
20e95c23 16606s,@ALLOCA@,$ALLOCA,;t t
5ba684e2
NC
16607s,@LIBICONV@,$LIBICONV,;t t
16608s,@LTLIBICONV@,$LTLIBICONV,;t t
42ecbf5e
DJ
16609s,@NLMCONV_DEFS@,$NLMCONV_DEFS,;t t
16610s,@BUILD_NLMCONV@,$BUILD_NLMCONV,;t t
16611s,@BUILD_SRCONV@,$BUILD_SRCONV,;t t
16612s,@BUILD_DLLTOOL@,$BUILD_DLLTOOL,;t t
16613s,@DLLTOOL_DEFS@,$DLLTOOL_DEFS,;t t
16614s,@BUILD_WINDRES@,$BUILD_WINDRES,;t t
692ed3e7 16615s,@BUILD_WINDMC@,$BUILD_WINDMC,;t t
42ecbf5e
DJ
16616s,@BUILD_DLLWRAP@,$BUILD_DLLWRAP,;t t
16617s,@BUILD_MISC@,$BUILD_MISC,;t t
1d97d67f 16618s,@BUILD_INSTALL_MISC@,$BUILD_INSTALL_MISC,;t t
42ecbf5e
DJ
16619s,@OBJDUMP_DEFS@,$OBJDUMP_DEFS,;t t
16620s,@EMULATION@,$EMULATION,;t t
16621s,@EMULATION_VECTOR@,$EMULATION_VECTOR,;t t
108a6f8e
CD
16622s,@datarootdir@,$datarootdir,;t t
16623s,@docdir@,$docdir,;t t
16624s,@htmldir@,$htmldir,;t t
42ecbf5e
DJ
16625s,@LIBOBJS@,$LIBOBJS,;t t
16626s,@LTLIBOBJS@,$LTLIBOBJS,;t t
d15b04bd 16627CEOF
252b5132 16628
42ecbf5e
DJ
16629_ACEOF
16630
16631 cat >>$CONFIG_STATUS <<\_ACEOF
16632 # Split the substitutions into bite-sized pieces for seds with
16633 # small command number limits, like on Digital OSF/1 and HP-UX.
16634 ac_max_sed_lines=48
16635 ac_sed_frag=1 # Number of current file.
16636 ac_beg=1 # First line for current file.
16637 ac_end=$ac_max_sed_lines # Line after last line for current file.
16638 ac_more_lines=:
16639 ac_sed_cmds=
16640 while $ac_more_lines; do
16641 if test $ac_beg -gt 1; then
16642 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16643 else
16644 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16645 fi
16646 if test ! -s $tmp/subs.frag; then
16647 ac_more_lines=false
d15b04bd 16648 else
42ecbf5e
DJ
16649 # The purpose of the label and of the branching condition is to
16650 # speed up the sed processing (if there are no `@' at all, there
16651 # is no need to browse any of the substitutions).
16652 # These are the two extra sed commands mentioned above.
16653 (echo ':t
16654 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16655 if test -z "$ac_sed_cmds"; then
16656 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16657 else
16658 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16659 fi
16660 ac_sed_frag=`expr $ac_sed_frag + 1`
16661 ac_beg=$ac_end
16662 ac_end=`expr $ac_end + $ac_max_sed_lines`
d15b04bd 16663 fi
42ecbf5e
DJ
16664 done
16665 if test -z "$ac_sed_cmds"; then
16666 ac_sed_cmds=cat
252b5132 16667 fi
42ecbf5e 16668fi # test -n "$CONFIG_FILES"
252b5132 16669
42ecbf5e
DJ
16670_ACEOF
16671cat >>$CONFIG_STATUS <<\_ACEOF
16672for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
e5a52504 16673 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42ecbf5e
DJ
16674 case $ac_file in
16675 - | *:- | *:-:* ) # input from stdin
16676 cat >$tmp/stdin
16677 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16678 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16679 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16680 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16681 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
16682 esac
16683
42ecbf5e
DJ
16684 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16685 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16686$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16687 X"$ac_file" : 'X\(//\)[^/]' \| \
16688 X"$ac_file" : 'X\(//\)$' \| \
16689 X"$ac_file" : 'X\(/\)' \| \
16690 . : '\(.\)' 2>/dev/null ||
16691echo X"$ac_file" |
16692 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16693 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16694 /^X\(\/\/\)$/{ s//\1/; q; }
16695 /^X\(\/\).*/{ s//\1/; q; }
16696 s/.*/./; q'`
16697 { if $as_mkdir_p; then
16698 mkdir -p "$ac_dir"
d15b04bd 16699 else
42ecbf5e
DJ
16700 as_dir="$ac_dir"
16701 as_dirs=
16702 while test ! -d "$as_dir"; do
16703 as_dirs="$as_dir $as_dirs"
16704 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16705$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16706 X"$as_dir" : 'X\(//\)[^/]' \| \
16707 X"$as_dir" : 'X\(//\)$' \| \
16708 X"$as_dir" : 'X\(/\)' \| \
16709 . : '\(.\)' 2>/dev/null ||
16710echo X"$as_dir" |
16711 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16712 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16713 /^X\(\/\/\)$/{ s//\1/; q; }
16714 /^X\(\/\).*/{ s//\1/; q; }
16715 s/.*/./; q'`
16716 done
16717 test ! -n "$as_dirs" || mkdir $as_dirs
16718 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16719echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16720 { (exit 1); exit 1; }; }; }
16721
16722 ac_builddir=.
e5a52504 16723
42ecbf5e
DJ
16724if test "$ac_dir" != .; then
16725 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16726 # A "../" for each directory in $ac_dir_suffix.
16727 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16728else
16729 ac_dir_suffix= ac_top_builddir=
16730fi
16731
16732case $srcdir in
16733 .) # No --srcdir option. We are building in place.
16734 ac_srcdir=.
16735 if test -z "$ac_top_builddir"; then
16736 ac_top_srcdir=.
16737 else
16738 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16739 fi ;;
16740 [\\/]* | ?:[\\/]* ) # Absolute path.
16741 ac_srcdir=$srcdir$ac_dir_suffix;
16742 ac_top_srcdir=$srcdir ;;
e5a52504 16743 *) # Relative path.
42ecbf5e
DJ
16744 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16745 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16746esac
252b5132 16747
42ecbf5e
DJ
16748# Do not use `cd foo && pwd` to compute absolute paths, because
16749# the directories may not exist.
16750case `pwd` in
16751.) ac_abs_builddir="$ac_dir";;
16752*)
16753 case "$ac_dir" in
16754 .) ac_abs_builddir=`pwd`;;
16755 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16756 *) ac_abs_builddir=`pwd`/"$ac_dir";;
16757 esac;;
16758esac
16759case $ac_abs_builddir in
16760.) ac_abs_top_builddir=${ac_top_builddir}.;;
16761*)
16762 case ${ac_top_builddir}. in
16763 .) ac_abs_top_builddir=$ac_abs_builddir;;
16764 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16765 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16766 esac;;
16767esac
16768case $ac_abs_builddir in
16769.) ac_abs_srcdir=$ac_srcdir;;
16770*)
16771 case $ac_srcdir in
16772 .) ac_abs_srcdir=$ac_abs_builddir;;
16773 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16774 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16775 esac;;
16776esac
16777case $ac_abs_builddir in
16778.) ac_abs_top_srcdir=$ac_top_srcdir;;
16779*)
16780 case $ac_top_srcdir in
16781 .) ac_abs_top_srcdir=$ac_abs_builddir;;
16782 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16783 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16784 esac;;
16785esac
e5a52504 16786
42ecbf5e
DJ
16787
16788 case $INSTALL in
16789 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16790 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
d15b04bd 16791 esac
e5a52504 16792
7357c5b6
AM
16793 if test x"$ac_file" != x-; then
16794 { echo "$as_me:$LINENO: creating $ac_file" >&5
16795echo "$as_me: creating $ac_file" >&6;}
16796 rm -f "$ac_file"
16797 fi
42ecbf5e
DJ
16798 # Let's still pretend it is `configure' which instantiates (i.e., don't
16799 # use $as_me), people would be surprised to read:
16800 # /* config.h. Generated by config.status. */
16801 if test x"$ac_file" = x-; then
16802 configure_input=
16803 else
16804 configure_input="$ac_file. "
16805 fi
16806 configure_input=$configure_input"Generated from `echo $ac_file_in |
16807 sed 's,.*/,,'` by configure."
16808
16809 # First look for the input files in the build tree, otherwise in the
16810 # src tree.
16811 ac_file_inputs=`IFS=:
16812 for f in $ac_file_in; do
16813 case $f in
16814 -) echo $tmp/stdin ;;
16815 [\\/$]*)
16816 # Absolute (can't be DOS-style, as IFS=:)
16817 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16818echo "$as_me: error: cannot find input file: $f" >&2;}
16819 { (exit 1); exit 1; }; }
16820 echo "$f";;
16821 *) # Relative
16822 if test -f "$f"; then
16823 # Build tree
16824 echo "$f"
16825 elif test -f "$srcdir/$f"; then
16826 # Source tree
16827 echo "$srcdir/$f"
16828 else
16829 # /dev/null tree
16830 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16831echo "$as_me: error: cannot find input file: $f" >&2;}
16832 { (exit 1); exit 1; }; }
16833 fi;;
16834 esac
16835 done` || { (exit 1); exit 1; }
42ecbf5e
DJ
16836_ACEOF
16837cat >>$CONFIG_STATUS <<_ACEOF
16838 sed "$ac_vpsub
16839$extrasub
16840_ACEOF
16841cat >>$CONFIG_STATUS <<\_ACEOF
16842:t
16843/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16844s,@configure_input@,$configure_input,;t t
16845s,@srcdir@,$ac_srcdir,;t t
16846s,@abs_srcdir@,$ac_abs_srcdir,;t t
16847s,@top_srcdir@,$ac_top_srcdir,;t t
16848s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16849s,@builddir@,$ac_builddir,;t t
16850s,@abs_builddir@,$ac_abs_builddir,;t t
16851s,@top_builddir@,$ac_top_builddir,;t t
16852s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16853s,@INSTALL@,$ac_INSTALL,;t t
16854" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16855 rm -f $tmp/stdin
16856 if test x"$ac_file" != x-; then
16857 mv $tmp/out $ac_file
16858 else
16859 cat $tmp/out
16860 rm -f $tmp/out
16861 fi
16862
16863done
16864_ACEOF
16865cat >>$CONFIG_STATUS <<\_ACEOF
16866
16867#
16868# CONFIG_HEADER section.
16869#
252b5132
RH
16870
16871# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16872# NAME is the cpp macro being defined and VALUE is the value it is being given.
16873#
16874# ac_d sets the value in "#define NAME VALUE" lines.
42ecbf5e
DJ
16875ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16876ac_dB='[ ].*$,\1#\2'
16877ac_dC=' '
16878ac_dD=',;t'
16879# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16880ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16881ac_uB='$,\1#\2define\3'
252b5132 16882ac_uC=' '
42ecbf5e
DJ
16883ac_uD=',;t'
16884
16885for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
252b5132 16886 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42ecbf5e
DJ
16887 case $ac_file in
16888 - | *:- | *:-:* ) # input from stdin
16889 cat >$tmp/stdin
16890 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16891 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16892 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16893 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16894 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
16895 esac
16896
42ecbf5e
DJ
16897 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16898echo "$as_me: creating $ac_file" >&6;}
16899
16900 # First look for the input files in the build tree, otherwise in the
16901 # src tree.
16902 ac_file_inputs=`IFS=:
16903 for f in $ac_file_in; do
16904 case $f in
16905 -) echo $tmp/stdin ;;
16906 [\\/$]*)
16907 # Absolute (can't be DOS-style, as IFS=:)
16908 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16909echo "$as_me: error: cannot find input file: $f" >&2;}
16910 { (exit 1); exit 1; }; }
16911 # Do quote $f, to prevent DOS paths from being IFS'd.
16912 echo "$f";;
16913 *) # Relative
16914 if test -f "$f"; then
16915 # Build tree
16916 echo "$f"
16917 elif test -f "$srcdir/$f"; then
16918 # Source tree
16919 echo "$srcdir/$f"
16920 else
16921 # /dev/null tree
16922 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16923echo "$as_me: error: cannot find input file: $f" >&2;}
16924 { (exit 1); exit 1; }; }
16925 fi;;
16926 esac
16927 done` || { (exit 1); exit 1; }
16928 # Remove the trailing spaces.
16929 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
16930
16931_ACEOF
16932
16933# Transform confdefs.h into two sed scripts, `conftest.defines' and
16934# `conftest.undefs', that substitutes the proper values into
16935# config.h.in to produce config.h. The first handles `#define'
16936# templates, and the second `#undef' templates.
16937# And first: Protect against being on the right side of a sed subst in
16938# config.status. Protect against being in an unquoted here document
16939# in config.status.
16940rm -f conftest.defines conftest.undefs
16941# Using a here document instead of a string reduces the quoting nightmare.
16942# Putting comments in sed scripts is not portable.
16943#
16944# `end' is used to avoid that the second main sed command (meant for
16945# 0-ary CPP macros) applies to n-ary macro definitions.
16946# See the Autoconf documentation for `clear'.
16947cat >confdef2sed.sed <<\_ACEOF
16948s/[\\&,]/\\&/g
16949s,[\\$`],\\&,g
16950t clear
16951: clear
16952s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16953t end
16954s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16955: end
16956_ACEOF
16957# If some macros were called several times there might be several times
16958# the same #defines, which is useless. Nevertheless, we may not want to
16959# sort them, since we want the *last* AC-DEFINE to be honored.
16960uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16961sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16962rm -f confdef2sed.sed
252b5132
RH
16963
16964# This sed command replaces #undef with comments. This is necessary, for
16965# example, in the case of _POSIX_SOURCE, which is predefined and required
16966# on some systems where configure will not decide to define it.
42ecbf5e
DJ
16967cat >>conftest.undefs <<\_ACEOF
16968s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16969_ACEOF
16970
16971# Break up conftest.defines because some shells have a limit on the size
16972# of here documents, and old seds have small limits too (100 cmds).
16973echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16974echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16975echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16976echo ' :' >>$CONFIG_STATUS
16977rm -f conftest.tail
16978while grep . conftest.defines >/dev/null
16979do
16980 # Write a limited-size here document to $tmp/defines.sed.
16981 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16982 # Speed up: don't consider the non `#define' lines.
16983 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
16984 # Work around the forget-to-reset-the-flag bug.
16985 echo 't clr' >>$CONFIG_STATUS
16986 echo ': clr' >>$CONFIG_STATUS
16987 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16988 echo 'CEOF
16989 sed -f $tmp/defines.sed $tmp/in >$tmp/out
16990 rm -f $tmp/in
16991 mv $tmp/out $tmp/in
16992' >>$CONFIG_STATUS
16993 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16994 rm -f conftest.defines
16995 mv conftest.tail conftest.defines
16996done
16997rm -f conftest.defines
16998echo ' fi # grep' >>$CONFIG_STATUS
16999echo >>$CONFIG_STATUS
252b5132 17000
42ecbf5e
DJ
17001# Break up conftest.undefs because some shells have a limit on the size
17002# of here documents, and old seds have small limits too (100 cmds).
17003echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
252b5132 17004rm -f conftest.tail
42ecbf5e 17005while grep . conftest.undefs >/dev/null
252b5132 17006do
42ecbf5e
DJ
17007 # Write a limited-size here document to $tmp/undefs.sed.
17008 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17009 # Speed up: don't consider the non `#undef'
17010 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17011 # Work around the forget-to-reset-the-flag bug.
17012 echo 't clr' >>$CONFIG_STATUS
17013 echo ': clr' >>$CONFIG_STATUS
17014 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
252b5132 17015 echo 'CEOF
42ecbf5e
DJ
17016 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17017 rm -f $tmp/in
17018 mv $tmp/out $tmp/in
17019' >>$CONFIG_STATUS
17020 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17021 rm -f conftest.undefs
17022 mv conftest.tail conftest.undefs
252b5132 17023done
42ecbf5e
DJ
17024rm -f conftest.undefs
17025
17026cat >>$CONFIG_STATUS <<\_ACEOF
17027 # Let's still pretend it is `configure' which instantiates (i.e., don't
17028 # use $as_me), people would be surprised to read:
17029 # /* config.h. Generated by config.status. */
17030 if test x"$ac_file" = x-; then
17031 echo "/* Generated by configure. */" >$tmp/config.h
17032 else
17033 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
17034 fi
17035 cat $tmp/in >>$tmp/config.h
17036 rm -f $tmp/in
17037 if test x"$ac_file" != x-; then
17038 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
17039 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17040echo "$as_me: $ac_file is unchanged" >&6;}
17041 else
17042 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17043$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17044 X"$ac_file" : 'X\(//\)[^/]' \| \
17045 X"$ac_file" : 'X\(//\)$' \| \
17046 X"$ac_file" : 'X\(/\)' \| \
17047 . : '\(.\)' 2>/dev/null ||
17048echo X"$ac_file" |
17049 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17050 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17051 /^X\(\/\/\)$/{ s//\1/; q; }
17052 /^X\(\/\).*/{ s//\1/; q; }
17053 s/.*/./; q'`
17054 { if $as_mkdir_p; then
17055 mkdir -p "$ac_dir"
252b5132 17056 else
42ecbf5e
DJ
17057 as_dir="$ac_dir"
17058 as_dirs=
17059 while test ! -d "$as_dir"; do
17060 as_dirs="$as_dir $as_dirs"
17061 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17062$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17063 X"$as_dir" : 'X\(//\)[^/]' \| \
17064 X"$as_dir" : 'X\(//\)$' \| \
17065 X"$as_dir" : 'X\(/\)' \| \
17066 . : '\(.\)' 2>/dev/null ||
17067echo X"$as_dir" |
17068 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17069 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17070 /^X\(\/\/\)$/{ s//\1/; q; }
17071 /^X\(\/\).*/{ s//\1/; q; }
17072 s/.*/./; q'`
17073 done
17074 test ! -n "$as_dirs" || mkdir $as_dirs
17075 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17076echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17077 { (exit 1); exit 1; }; }; }
17078
17079 rm -f $ac_file
17080 mv $tmp/config.h $ac_file
252b5132 17081 fi
42ecbf5e
DJ
17082 else
17083 cat $tmp/config.h
17084 rm -f $tmp/config.h
252b5132 17085 fi
42ecbf5e
DJ
17086# Compute $ac_file's index in $config_headers.
17087_am_stamp_count=1
17088for _am_header in $config_headers :; do
17089 case $_am_header in
17090 $ac_file | $ac_file:* )
17091 break ;;
17092 * )
17093 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17094 esac
17095done
17096echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
17097$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17098 X$ac_file : 'X\(//\)[^/]' \| \
17099 X$ac_file : 'X\(//\)$' \| \
17100 X$ac_file : 'X\(/\)' \| \
17101 . : '\(.\)' 2>/dev/null ||
17102echo X$ac_file |
17103 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17104 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17105 /^X\(\/\/\)$/{ s//\1/; q; }
17106 /^X\(\/\).*/{ s//\1/; q; }
17107 s/.*/./; q'`/stamp-h$_am_stamp_count
17108done
17109_ACEOF
17110cat >>$CONFIG_STATUS <<\_ACEOF
252b5132 17111
42ecbf5e
DJ
17112#
17113# CONFIG_COMMANDS section.
17114#
17115for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17116 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17117 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17118 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
17119$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17120 X"$ac_dest" : 'X\(//\)[^/]' \| \
17121 X"$ac_dest" : 'X\(//\)$' \| \
17122 X"$ac_dest" : 'X\(/\)' \| \
17123 . : '\(.\)' 2>/dev/null ||
17124echo X"$ac_dest" |
17125 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17126 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17127 /^X\(\/\/\)$/{ s//\1/; q; }
17128 /^X\(\/\).*/{ s//\1/; q; }
17129 s/.*/./; q'`
17130 { if $as_mkdir_p; then
17131 mkdir -p "$ac_dir"
17132 else
17133 as_dir="$ac_dir"
17134 as_dirs=
17135 while test ! -d "$as_dir"; do
17136 as_dirs="$as_dir $as_dirs"
17137 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17138$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17139 X"$as_dir" : 'X\(//\)[^/]' \| \
17140 X"$as_dir" : 'X\(//\)$' \| \
17141 X"$as_dir" : 'X\(/\)' \| \
17142 . : '\(.\)' 2>/dev/null ||
17143echo X"$as_dir" |
17144 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17145 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17146 /^X\(\/\/\)$/{ s//\1/; q; }
17147 /^X\(\/\).*/{ s//\1/; q; }
17148 s/.*/./; q'`
17149 done
17150 test ! -n "$as_dirs" || mkdir $as_dirs
17151 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17152echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17153 { (exit 1); exit 1; }; }; }
252b5132 17154
42ecbf5e 17155 ac_builddir=.
e5a52504 17156
42ecbf5e
DJ
17157if test "$ac_dir" != .; then
17158 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17159 # A "../" for each directory in $ac_dir_suffix.
17160 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17161else
17162 ac_dir_suffix= ac_top_builddir=
17163fi
17164
17165case $srcdir in
17166 .) # No --srcdir option. We are building in place.
17167 ac_srcdir=.
17168 if test -z "$ac_top_builddir"; then
17169 ac_top_srcdir=.
17170 else
17171 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17172 fi ;;
17173 [\\/]* | ?:[\\/]* ) # Absolute path.
17174 ac_srcdir=$srcdir$ac_dir_suffix;
17175 ac_top_srcdir=$srcdir ;;
17176 *) # Relative path.
17177 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17178 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17179esac
17180
17181# Do not use `cd foo && pwd` to compute absolute paths, because
17182# the directories may not exist.
17183case `pwd` in
17184.) ac_abs_builddir="$ac_dir";;
17185*)
17186 case "$ac_dir" in
17187 .) ac_abs_builddir=`pwd`;;
17188 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17189 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17190 esac;;
17191esac
17192case $ac_abs_builddir in
17193.) ac_abs_top_builddir=${ac_top_builddir}.;;
17194*)
17195 case ${ac_top_builddir}. in
17196 .) ac_abs_top_builddir=$ac_abs_builddir;;
17197 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17198 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17199 esac;;
17200esac
17201case $ac_abs_builddir in
17202.) ac_abs_srcdir=$ac_srcdir;;
17203*)
17204 case $ac_srcdir in
17205 .) ac_abs_srcdir=$ac_abs_builddir;;
17206 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17207 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17208 esac;;
17209esac
17210case $ac_abs_builddir in
17211.) ac_abs_top_srcdir=$ac_top_srcdir;;
17212*)
17213 case $ac_top_srcdir in
17214 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17215 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17216 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17217 esac;;
17218esac
e5a52504 17219
42ecbf5e
DJ
17220
17221 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17222echo "$as_me: executing $ac_dest commands" >&6;}
17223 case $ac_dest in
17224 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
17225 # Strip MF so we end up with the name of the file.
17226 mf=`echo "$mf" | sed -e 's/:.*$//'`
17227 # Check whether this is an Automake generated Makefile or not.
17228 # We used to match only the files named `Makefile.in', but
17229 # some people rename them; so instead we look at the file content.
17230 # Grep'ing the first line is not enough: some people post-process
17231 # each Makefile.in and add a new line on top of each file to say so.
17232 # So let's grep whole file.
17233 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
17234 dirpart=`(dirname "$mf") 2>/dev/null ||
17235$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17236 X"$mf" : 'X\(//\)[^/]' \| \
17237 X"$mf" : 'X\(//\)$' \| \
17238 X"$mf" : 'X\(/\)' \| \
17239 . : '\(.\)' 2>/dev/null ||
17240echo X"$mf" |
17241 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17242 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17243 /^X\(\/\/\)$/{ s//\1/; q; }
17244 /^X\(\/\).*/{ s//\1/; q; }
17245 s/.*/./; q'`
17246 else
17247 continue
17248 fi
17249 # Extract the definition of DEPDIR, am__include, and am__quote
17250 # from the Makefile without running `make'.
17251 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17252 test -z "$DEPDIR" && continue
17253 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17254 test -z "am__include" && continue
17255 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17256 # When using ansi2knr, U may be empty or an underscore; expand it
17257 U=`sed -n 's/^U = //p' < "$mf"`
17258 # Find all dependency output files, they are included files with
17259 # $(DEPDIR) in their names. We invoke sed twice because it is the
17260 # simplest approach to changing $(DEPDIR) to its actual value in the
17261 # expansion.
17262 for file in `sed -n "
17263 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17264 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17265 # Make sure the directory exists.
17266 test -f "$dirpart/$file" && continue
17267 fdir=`(dirname "$file") 2>/dev/null ||
17268$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17269 X"$file" : 'X\(//\)[^/]' \| \
17270 X"$file" : 'X\(//\)$' \| \
17271 X"$file" : 'X\(/\)' \| \
17272 . : '\(.\)' 2>/dev/null ||
17273echo X"$file" |
17274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17275 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17276 /^X\(\/\/\)$/{ s//\1/; q; }
17277 /^X\(\/\).*/{ s//\1/; q; }
17278 s/.*/./; q'`
17279 { if $as_mkdir_p; then
17280 mkdir -p $dirpart/$fdir
17281 else
17282 as_dir=$dirpart/$fdir
17283 as_dirs=
17284 while test ! -d "$as_dir"; do
17285 as_dirs="$as_dir $as_dirs"
17286 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17287$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17288 X"$as_dir" : 'X\(//\)[^/]' \| \
17289 X"$as_dir" : 'X\(//\)$' \| \
17290 X"$as_dir" : 'X\(/\)' \| \
17291 . : '\(.\)' 2>/dev/null ||
17292echo X"$as_dir" |
17293 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17294 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17295 /^X\(\/\/\)$/{ s//\1/; q; }
17296 /^X\(\/\).*/{ s//\1/; q; }
17297 s/.*/./; q'`
17298 done
17299 test ! -n "$as_dirs" || mkdir $as_dirs
17300 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
17301echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
17302 { (exit 1); exit 1; }; }; }
17303
17304 # echo "creating $dirpart/$file"
17305 echo '# dummy' > "$dirpart/$file"
17306 done
17307done
d7040cdb
SE
17308 ;;
17309 libtool )
17310
17311 # See if we are running on zsh, and set the options which allow our
17312 # commands through without removal of \ escapes.
17313 if test -n "${ZSH_VERSION+set}" ; then
17314 setopt NO_GLOB_SUBST
17315 fi
17316
17317 cfgfile="${ofile}T"
17318 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17319 $RM "$cfgfile"
17320
17321 cat <<_LT_EOF >> "$cfgfile"
17322#! $SHELL
17323
17324# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17325# Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
17326# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17327# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17328#
17329# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17330# 2006, 2007 Free Software Foundation, Inc.
17331#
17332# This file is part of GNU Libtool:
17333# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17334#
17335# This program is free software; you can redistribute it and/or modify
17336# it under the terms of the GNU General Public License as published by
17337# the Free Software Foundation; either version 2 of the License, or
17338# (at your option) any later version.
17339#
17340# This program is distributed in the hope that it will be useful, but
17341# WITHOUT ANY WARRANTY; without even the implied warranty of
17342# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17343# General Public License for more details.
17344#
17345# You should have received a copy of the GNU General Public License
17346# along with this program; if not, a copy can be downloaded from
17347# http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
17348# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
17349# MA 02110-1301, USA.
17350#
17351# As a special exception to the GNU General Public License, if you
17352# distribute this file as part of a program that contains a
17353# configuration script generated by Autoconf, you may include it under
17354# the same distribution terms that you use for the rest of that program.
17355
17356
17357# The names of the tagged configurations supported by this script.
17358available_tags=""
17359
17360# ### BEGIN LIBTOOL CONFIG
17361
17362# Which release of libtool.m4 was used?
17363macro_version=$macro_version
17364macro_revision=$macro_revision
17365
17366# Whether or not to build shared libraries.
17367build_libtool_libs=$enable_shared
17368
17369# Whether or not to build static libraries.
17370build_old_libs=$enable_static
17371
17372# What type of objects to build.
17373pic_mode=$pic_mode
17374
17375# Whether or not to optimize for fast installation.
17376fast_install=$enable_fast_install
17377
17378# The host system.
17379host_alias=$host_alias
17380host=$host
17381host_os=$host_os
17382
17383# The build system.
17384build_alias=$build_alias
17385build=$build
17386build_os=$build_os
17387
17388# A sed program that does not truncate output.
17389SED=$lt_SED
17390
17391# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17392Xsed="\$SED -e 1s/^X//"
17393
17394# A grep program that handles long lines.
17395GREP=$lt_GREP
17396
17397# An ERE matcher.
17398EGREP=$lt_EGREP
17399
17400# A literal string matcher.
17401FGREP=$lt_FGREP
17402
17403# A BSD- or MS-compatible name lister.
17404NM=$lt_NM
17405
17406# Whether we need soft or hard links.
17407LN_S=$lt_LN_S
17408
17409# What is the maximum length of a command?
17410max_cmd_len=$max_cmd_len
17411
17412# Object file suffix (normally "o").
17413objext=$ac_objext
17414
17415# Executable file suffix (normally "").
17416exeext=$exeext
17417
17418# whether the shell understands "unset".
17419lt_unset=$lt_unset
17420
17421# turn spaces into newlines.
17422SP2NL=$lt_lt_SP2NL
17423
17424# turn newlines into spaces.
17425NL2SP=$lt_lt_NL2SP
17426
17427# How to create reloadable object files.
17428reload_flag=$lt_reload_flag
17429reload_cmds=$lt_reload_cmds
17430
17431# Method to check whether dependent libraries are shared objects.
17432deplibs_check_method=$lt_deplibs_check_method
17433
17434# Command to use when deplibs_check_method == "file_magic".
17435file_magic_cmd=$lt_file_magic_cmd
17436
17437# The archiver.
17438AR=$lt_AR
17439AR_FLAGS=$lt_AR_FLAGS
17440
17441# A symbol stripping program.
17442STRIP=$lt_STRIP
17443
17444# Commands used to install an old-style archive.
17445RANLIB=$lt_RANLIB
17446old_postinstall_cmds=$lt_old_postinstall_cmds
17447old_postuninstall_cmds=$lt_old_postuninstall_cmds
17448
17449# A C compiler.
17450LTCC=$lt_CC
17451
17452# LTCC compiler flags.
17453LTCFLAGS=$lt_CFLAGS
17454
17455# Take the output of nm and produce a listing of raw symbols and C names.
17456global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17457
17458# Transform the output of nm in a proper C declaration.
17459global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17460
17461# Transform the output of nm in a C name address pair.
17462global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17463
17464# The name of the directory that contains temporary libtool files.
17465objdir=$objdir
17466
17467# Shell to use when invoking shell scripts.
17468SHELL=$lt_SHELL
17469
17470# An echo program that does not interpret backslashes.
17471ECHO=$lt_ECHO
17472
17473# Used to examine libraries when file_magic_cmd begins with "file".
17474MAGIC_CMD=$MAGIC_CMD
17475
17476# Must we lock files when doing compilation?
17477need_locks=$lt_need_locks
17478
17479# Old archive suffix (normally "a").
17480libext=$libext
17481
17482# Shared library suffix (normally ".so").
17483shrext_cmds=$lt_shrext_cmds
17484
17485# The commands to extract the exported symbol list from a shared archive.
17486extract_expsyms_cmds=$lt_extract_expsyms_cmds
17487
17488# Variables whose values should be saved in libtool wrapper scripts and
17489# restored at link time.
17490variables_saved_for_relink=$lt_variables_saved_for_relink
17491
17492# Do we need the "lib" prefix for modules?
17493need_lib_prefix=$need_lib_prefix
17494
17495# Do we need a version for libraries?
17496need_version=$need_version
17497
17498# Library versioning type.
17499version_type=$version_type
17500
17501# Shared library runtime path variable.
17502runpath_var=$runpath_var
17503
17504# Shared library path variable.
17505shlibpath_var=$shlibpath_var
17506
17507# Is shlibpath searched before the hard-coded library search path?
17508shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17509
17510# Format of library name prefix.
17511libname_spec=$lt_libname_spec
17512
17513# List of archive names. First name is the real one, the rest are links.
17514# The last name is the one that the linker finds with -lNAME
17515library_names_spec=$lt_library_names_spec
17516
17517# The coded name of the library, if different from the real name.
17518soname_spec=$lt_soname_spec
17519
17520# Command to use after installation of a shared archive.
17521postinstall_cmds=$lt_postinstall_cmds
17522
17523# Command to use after uninstallation of a shared archive.
17524postuninstall_cmds=$lt_postuninstall_cmds
17525
17526# Commands used to finish a libtool library installation in a directory.
17527finish_cmds=$lt_finish_cmds
17528
17529# As "finish_cmds", except a single script fragment to be evaled but
17530# not shown.
17531finish_eval=$lt_finish_eval
17532
17533# Whether we should hardcode library paths into libraries.
17534hardcode_into_libs=$hardcode_into_libs
17535
17536# Compile-time system search path for libraries.
17537sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17538
17539# Run-time system search path for libraries.
17540sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17541
17542# Whether dlopen is supported.
17543dlopen_support=$enable_dlopen
17544
17545# Whether dlopen of programs is supported.
17546dlopen_self=$enable_dlopen_self
17547
17548# Whether dlopen of statically linked programs is supported.
17549dlopen_self_static=$enable_dlopen_self_static
17550
17551# Commands to strip libraries.
17552old_striplib=$lt_old_striplib
17553striplib=$lt_striplib
17554
17555
17556# The linker used to build libraries.
17557LD=$lt_LD
17558
17559# Commands used to build an old-style archive.
17560old_archive_cmds=$lt_old_archive_cmds
17561
17562# A language specific compiler.
17563CC=$lt_compiler
17564
17565# Is the compiler the GNU compiler?
17566with_gcc=$GCC
17567
17568# Compiler flag to turn off builtin functions.
17569no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17570
17571# How to pass a linker flag through the compiler.
17572wl=$lt_lt_prog_compiler_wl
17573
17574# Additional compiler flags for building library objects.
17575pic_flag=$lt_lt_prog_compiler_pic
17576
17577# Compiler flag to prevent dynamic linking.
17578link_static_flag=$lt_lt_prog_compiler_static
17579
17580# Does compiler simultaneously support -c and -o options?
17581compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17582
17583# Whether or not to add -lc for building shared libraries.
17584build_libtool_need_lc=$archive_cmds_need_lc
17585
17586# Whether or not to disallow shared libs when runtime libs are static.
17587allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17588
17589# Compiler flag to allow reflexive dlopens.
17590export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17591
17592# Compiler flag to generate shared objects directly from archives.
17593whole_archive_flag_spec=$lt_whole_archive_flag_spec
17594
17595# Whether the compiler copes with passing no objects directly.
17596compiler_needs_object=$lt_compiler_needs_object
17597
17598# Create an old-style archive from a shared archive.
17599old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17600
17601# Create a temporary old-style archive to link instead of a shared archive.
17602old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17603
17604# Commands used to build a shared archive.
17605archive_cmds=$lt_archive_cmds
17606archive_expsym_cmds=$lt_archive_expsym_cmds
17607
17608# Commands used to build a loadable module if different from building
17609# a shared archive.
17610module_cmds=$lt_module_cmds
17611module_expsym_cmds=$lt_module_expsym_cmds
17612
17613# Whether we are building with GNU ld or not.
17614with_gnu_ld=$lt_with_gnu_ld
17615
17616# Flag that allows shared libraries with undefined symbols to be built.
17617allow_undefined_flag=$lt_allow_undefined_flag
17618
17619# Flag that enforces no undefined symbols.
17620no_undefined_flag=$lt_no_undefined_flag
17621
17622# Flag to hardcode \$libdir into a binary during linking.
17623# This must work even if \$libdir does not exist
17624hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17625
17626# If ld is used when linking, flag to hardcode \$libdir into a binary
17627# during linking. This must work even if \$libdir does not exist.
17628hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17629
17630# Whether we need a single "-rpath" flag with a separated argument.
17631hardcode_libdir_separator=$lt_hardcode_libdir_separator
17632
17633# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17634# DIR into the resulting binary.
17635hardcode_direct=$hardcode_direct
17636
17637# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17638# DIR into the resulting binary and the resulting library dependency is
17639# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17640# library is relocated.
17641hardcode_direct_absolute=$hardcode_direct_absolute
17642
17643# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17644# into the resulting binary.
17645hardcode_minus_L=$hardcode_minus_L
17646
17647# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17648# into the resulting binary.
17649hardcode_shlibpath_var=$hardcode_shlibpath_var
17650
17651# Set to "yes" if building a shared library automatically hardcodes DIR
17652# into the library and all subsequent libraries and executables linked
17653# against it.
17654hardcode_automatic=$hardcode_automatic
17655
17656# Set to yes if linker adds runtime paths of dependent libraries
17657# to runtime path list.
17658inherit_rpath=$inherit_rpath
17659
17660# Whether libtool must link a program against all its dependency libraries.
17661link_all_deplibs=$link_all_deplibs
17662
17663# Fix the shell variable \$srcfile for the compiler.
17664fix_srcfile_path=$lt_fix_srcfile_path
17665
17666# Set to "yes" if exported symbols are required.
17667always_export_symbols=$always_export_symbols
17668
17669# The commands to list exported symbols.
17670export_symbols_cmds=$lt_export_symbols_cmds
17671
17672# Symbols that should not be listed in the preloaded symbols.
17673exclude_expsyms=$lt_exclude_expsyms
17674
17675# Symbols that must always be exported.
17676include_expsyms=$lt_include_expsyms
17677
17678# Commands necessary for linking programs (against libraries) with templates.
17679prelink_cmds=$lt_prelink_cmds
17680
17681# Specify filename containing input files.
17682file_list_spec=$lt_file_list_spec
17683
17684# How to hardcode a shared library path into an executable.
17685hardcode_action=$hardcode_action
17686
17687# ### END LIBTOOL CONFIG
17688
17689_LT_EOF
17690
17691 case $host_os in
17692 aix3*)
17693 cat <<\_LT_EOF >> "$cfgfile"
17694# AIX sometimes has problems with the GCC collect2 program. For some
17695# reason, if we set the COLLECT_NAMES environment variable, the problems
17696# vanish in a puff of smoke.
17697if test "X${COLLECT_NAMES+set}" != Xset; then
17698 COLLECT_NAMES=
17699 export COLLECT_NAMES
17700fi
17701_LT_EOF
17702 ;;
17703 esac
17704
17705
17706ltmain="$ac_aux_dir/ltmain.sh"
17707
17708
17709 # We use sed instead of cat because bash on DJGPP gets confused if
17710 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17711 # text mode, it properly converts lines to CR/LF. This bash problem
17712 # is reportedly fixed, but why not run on old versions too?
17713 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17714 || (rm -f "$cfgfile"; exit 1)
17715
17716 case $xsi_shell in
17717 yes)
17718 cat << \_LT_EOF >> "$cfgfile"
17719# func_dirname file append nondir_replacement
17720# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17721# otherwise set result to NONDIR_REPLACEMENT.
17722func_dirname ()
17723{
17724 case ${1} in
17725 */*) func_dirname_result="${1%/*}${2}" ;;
17726 * ) func_dirname_result="${3}" ;;
17727 esac
17728}
17729
17730# func_basename file
17731func_basename ()
17732{
17733 func_basename_result="${1##*/}"
17734}
17735
17736# func_stripname prefix suffix name
17737# strip PREFIX and SUFFIX off of NAME.
17738# PREFIX and SUFFIX must not contain globbing or regex special
17739# characters, hashes, percent signs, but SUFFIX may contain a leading
17740# dot (in which case that matches only a dot).
17741func_stripname ()
17742{
17743 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17744 # positional parameters, so assign one to ordinary parameter first.
17745 func_stripname_result=${3}
17746 func_stripname_result=${func_stripname_result#"${1}"}
17747 func_stripname_result=${func_stripname_result%"${2}"}
17748}
17749
17750# func_opt_split
17751func_opt_split ()
17752{
17753 func_opt_split_opt=${1%%=*}
17754 func_opt_split_arg=${1#*=}
17755}
17756
17757# func_lo2o object
17758func_lo2o ()
17759{
17760 case ${1} in
17761 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17762 *) func_lo2o_result=${1} ;;
17763 esac
17764}
17765_LT_EOF
17766 ;;
17767 *) # Bourne compatible functions.
17768 cat << \_LT_EOF >> "$cfgfile"
17769# func_dirname file append nondir_replacement
17770# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17771# otherwise set result to NONDIR_REPLACEMENT.
17772func_dirname ()
17773{
17774 # Extract subdirectory from the argument.
17775 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
17776 if test "X$func_dirname_result" = "X${1}"; then
17777 func_dirname_result="${3}"
17778 else
17779 func_dirname_result="$func_dirname_result${2}"
17780 fi
17781}
17782
17783# func_basename file
17784func_basename ()
17785{
17786 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
17787}
17788
17789# func_stripname prefix suffix name
17790# strip PREFIX and SUFFIX off of NAME.
17791# PREFIX and SUFFIX must not contain globbing or regex special
17792# characters, hashes, percent signs, but SUFFIX may contain a leading
17793# dot (in which case that matches only a dot).
17794# func_strip_suffix prefix name
17795func_stripname ()
17796{
17797 case ${2} in
17798 .*) func_stripname_result=`$ECHO "X${3}" \
17799 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
17800 *) func_stripname_result=`$ECHO "X${3}" \
17801 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
17802 esac
17803}
17804
17805# sed scripts:
17806my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17807my_sed_long_arg='1s/^-[^=]*=//'
17808
17809# func_opt_split
17810func_opt_split ()
17811{
17812 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
17813 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
17814}
17815
17816# func_lo2o object
17817func_lo2o ()
17818{
17819 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
17820}
17821_LT_EOF
17822esac
17823
17824case $lt_shell_append in
17825 yes)
17826 cat << \_LT_EOF >> "$cfgfile"
17827
17828# func_append var value
17829# Append VALUE to the end of shell variable VAR.
17830func_append ()
17831{
17832 eval "$1+=\$2"
17833}
17834_LT_EOF
17835 ;;
17836 *)
17837 cat << \_LT_EOF >> "$cfgfile"
17838
17839# func_append var value
17840# Append VALUE to the end of shell variable VAR.
17841func_append ()
17842{
17843 eval "$1=\$$1\$2"
17844}
17845_LT_EOF
17846 ;;
17847 esac
17848
17849
17850 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17851 || (rm -f "$cfgfile"; exit 1)
17852
17853 mv -f "$cfgfile" "$ofile" ||
17854 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17855 chmod +x "$ofile"
17856
42ecbf5e 17857 ;;
20e95c23
DJ
17858 default-1 )
17859 for ac_file in $CONFIG_FILES; do
17860 # Support "outfile[:infile[:infile...]]"
17861 case "$ac_file" in
17862 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17863 esac
17864 # PO directories have a Makefile.in generated from Makefile.in.in.
17865 case "$ac_file" in */Makefile.in)
17866 # Adjust a relative srcdir.
17867 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17868 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
17869 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17870 # In autoconf-2.13 it is called $ac_given_srcdir.
17871 # In autoconf-2.50 it is called $srcdir.
17872 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17873 case "$ac_given_srcdir" in
17874 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17875 /*) top_srcdir="$ac_given_srcdir" ;;
17876 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
17877 esac
17878 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17879 rm -f "$ac_dir/POTFILES"
17880 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17881 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17882 POMAKEFILEDEPS="POTFILES.in"
17883 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
17884 # on $ac_dir but don't depend on user-specified configuration
17885 # parameters.
17886 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17887 # The LINGUAS file contains the set of available languages.
17888 if test -n "$OBSOLETE_ALL_LINGUAS"; then
17889 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
17890 fi
17891 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17892 # Hide the ALL_LINGUAS assigment from automake.
17893 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17894 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
17895 else
17896 # The set of available languages was given in configure.in.
17897 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
17898 fi
17899 case "$ac_given_srcdir" in
17900 .) srcdirpre= ;;
17901 *) srcdirpre='$(srcdir)/' ;;
17902 esac
17903 POFILES=
17904 GMOFILES=
17905 UPDATEPOFILES=
17906 DUMMYPOFILES=
17907 for lang in $ALL_LINGUAS; do
17908 POFILES="$POFILES $srcdirpre$lang.po"
17909 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17910 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17911 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17912 done
17913 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17914 # environment variable.
17915 INST_LINGUAS=
17916 if test -n "$ALL_LINGUAS"; then
17917 for presentlang in $ALL_LINGUAS; do
17918 useit=no
17919 if test "%UNSET%" != "$LINGUAS"; then
17920 desiredlanguages="$LINGUAS"
17921 else
17922 desiredlanguages="$ALL_LINGUAS"
17923 fi
17924 for desiredlang in $desiredlanguages; do
17925 # Use the presentlang catalog if desiredlang is
17926 # a. equal to presentlang, or
17927 # b. a variant of presentlang (because in this case,
17928 # presentlang can be used as a fallback for messages
17929 # which are not translated in the desiredlang catalog).
17930 case "$desiredlang" in
17931 "$presentlang"*) useit=yes;;
17932 esac
17933 done
17934 if test $useit = yes; then
17935 INST_LINGUAS="$INST_LINGUAS $presentlang"
17936 fi
17937 done
17938 fi
17939 CATALOGS=
17940 if test -n "$INST_LINGUAS"; then
17941 for lang in $INST_LINGUAS; do
17942 CATALOGS="$CATALOGS $lang.gmo"
17943 done
17944 fi
17945 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17946 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"
17947 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17948 if test -f "$f"; then
17949 case "$f" in
17950 *.orig | *.bak | *~) ;;
17951 *) cat "$f" >> "$ac_dir/Makefile" ;;
17952 esac
17953 fi
17954 done
17955 fi
17956 ;;
17957 esac
17958 done ;;
42ecbf5e
DJ
17959 esac
17960done
17961_ACEOF
e5a52504 17962
42ecbf5e
DJ
17963cat >>$CONFIG_STATUS <<\_ACEOF
17964
17965{ (exit 0); exit 0; }
17966_ACEOF
252b5132 17967chmod +x $CONFIG_STATUS
42ecbf5e
DJ
17968ac_clean_files=$ac_clean_files_save
17969
17970
17971# configure is writing to config.log, and then calls config.status.
17972# config.status does its own redirection, appending to config.log.
17973# Unfortunately, on DOS this fails, as config.log is still kept open
17974# by configure, so config.status won't be able to write to it; its
17975# output is simply discarded. So we exec the FD to /dev/null,
17976# effectively closing config.log, so it can be properly (re)opened and
17977# appended to by config.status. When coming back to configure, we
17978# need to make the FD available again.
17979if test "$no_create" != yes; then
17980 ac_cs_success=:
17981 ac_config_status_args=
17982 test "$silent" = yes &&
17983 ac_config_status_args="$ac_config_status_args --quiet"
17984 exec 5>/dev/null
17985 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17986 exec 5>>config.log
17987 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17988 # would make configure fail if this is the last instruction.
17989 $ac_cs_success || { (exit 1); exit 1; }
17990fi
252b5132 17991
This page took 1.623742 seconds and 4 git commands to generate.