* configure: Regenerate.
[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
692ed3e7 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 LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO CPP 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
d7040cdb
SE
1005 --enable-shared[=PKGS]
1006 build shared libraries [default=yes]
1007 --enable-static[=PKGS]
1008 build static libraries [default=yes]
1009 --enable-fast-install[=PKGS]
1010 optimize for fast installation [default=yes]
42ecbf5e
DJ
1011 --disable-libtool-lock avoid locking (might break parallel builds)
1012 --enable-targets alternative target configurations
1013 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
241a6c40
AM
1014 --enable-werror treat compile warnings as errors
1015 --enable-build-warnings enable build-time compiler warnings
42ecbf5e
DJ
1016 --disable-nls do not use Native Language Support
1017 --enable-maintainer-mode enable make rules and dependencies not useful
1018 (and sometimes confusing) to the casual installer
5ba684e2 1019 --disable-rpath do not hardcode runtime library paths
42ecbf5e
DJ
1020
1021Optional Packages:
1022 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1023 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d7040cdb
SE
1024 --with-pic try to use only PIC/non-PIC objects [default=use
1025 both]
1026 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
5ba684e2
NC
1027 --with-gnu-ld assume the C compiler uses GNU ld default=no
1028 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1029 --without-libiconv-prefix don't search for libiconv in includedir and libdir
252b5132 1030
42ecbf5e
DJ
1031Some influential environment variables:
1032 CC C compiler command
1033 CFLAGS C compiler flags
1034 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1035 nonstandard directory <lib dir>
1036 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1037 headers in a nonstandard directory <include dir>
1038 CPP C preprocessor
e5a52504 1039
42ecbf5e
DJ
1040Use these variables to override the choices made by `configure' or to help
1041it to find libraries and programs with nonstandard names/locations.
1042
1043_ACEOF
252b5132
RH
1044fi
1045
42ecbf5e
DJ
1046if test "$ac_init_help" = "recursive"; then
1047 # If there are subdirs, report their specific --help.
1048 ac_popdir=`pwd`
1049 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1050 test -d $ac_dir || continue
1051 ac_builddir=.
1052
1053if test "$ac_dir" != .; then
1054 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1055 # A "../" for each directory in $ac_dir_suffix.
1056 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1057else
1058 ac_dir_suffix= ac_top_builddir=
1059fi
252b5132 1060
42ecbf5e
DJ
1061case $srcdir in
1062 .) # No --srcdir option. We are building in place.
1063 ac_srcdir=.
1064 if test -z "$ac_top_builddir"; then
1065 ac_top_srcdir=.
1066 else
1067 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
252b5132 1068 fi ;;
42ecbf5e
DJ
1069 [\\/]* | ?:[\\/]* ) # Absolute path.
1070 ac_srcdir=$srcdir$ac_dir_suffix;
1071 ac_top_srcdir=$srcdir ;;
1072 *) # Relative path.
1073 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1074 ac_top_srcdir=$ac_top_builddir$srcdir ;;
252b5132
RH
1075esac
1076
42ecbf5e
DJ
1077# Do not use `cd foo && pwd` to compute absolute paths, because
1078# the directories may not exist.
1079case `pwd` in
1080.) ac_abs_builddir="$ac_dir";;
1081*)
1082 case "$ac_dir" in
1083 .) ac_abs_builddir=`pwd`;;
1084 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1085 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1086 esac;;
252b5132 1087esac
42ecbf5e
DJ
1088case $ac_abs_builddir in
1089.) ac_abs_top_builddir=${ac_top_builddir}.;;
1090*)
1091 case ${ac_top_builddir}. in
1092 .) ac_abs_top_builddir=$ac_abs_builddir;;
1093 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1094 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1095 esac;;
1096esac
1097case $ac_abs_builddir in
1098.) ac_abs_srcdir=$ac_srcdir;;
1099*)
1100 case $ac_srcdir in
1101 .) ac_abs_srcdir=$ac_abs_builddir;;
1102 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1103 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1104 esac;;
1105esac
1106case $ac_abs_builddir in
1107.) ac_abs_top_srcdir=$ac_top_srcdir;;
1108*)
1109 case $ac_top_srcdir in
1110 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1111 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1112 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1113 esac;;
d15b04bd 1114esac
5d64ca4e 1115
42ecbf5e
DJ
1116 cd $ac_dir
1117 # Check for guested configure; otherwise get Cygnus style configure.
1118 if test -f $ac_srcdir/configure.gnu; then
1119 echo
1120 $SHELL $ac_srcdir/configure.gnu --help=recursive
1121 elif test -f $ac_srcdir/configure; then
1122 echo
1123 $SHELL $ac_srcdir/configure --help=recursive
1124 elif test -f $ac_srcdir/configure.ac ||
1125 test -f $ac_srcdir/configure.in; then
1126 echo
1127 $ac_configure --help
1128 else
1129 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1130 fi
b7d4af3a 1131 cd $ac_popdir
42ecbf5e
DJ
1132 done
1133fi
5d64ca4e 1134
42ecbf5e
DJ
1135test -n "$ac_init_help" && exit 0
1136if $ac_init_version; then
1137 cat <<\_ACEOF
5d64ca4e 1138
42ecbf5e
DJ
1139Copyright (C) 2003 Free Software Foundation, Inc.
1140This configure script is free software; the Free Software Foundation
1141gives unlimited permission to copy, distribute and modify it.
1142_ACEOF
1143 exit 0
1144fi
1145exec 5>config.log
1146cat >&5 <<_ACEOF
1147This file contains any messages produced by compilers while
1148running configure, to aid debugging if configure makes a mistake.
429cc0ae 1149
42ecbf5e
DJ
1150It was created by $as_me, which was
1151generated by GNU Autoconf 2.59. Invocation command line was
252b5132 1152
42ecbf5e 1153 $ $0 $@
e5a52504 1154
42ecbf5e
DJ
1155_ACEOF
1156{
1157cat <<_ASUNAME
1158## --------- ##
1159## Platform. ##
1160## --------- ##
1161
1162hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1163uname -m = `(uname -m) 2>/dev/null || echo unknown`
1164uname -r = `(uname -r) 2>/dev/null || echo unknown`
1165uname -s = `(uname -s) 2>/dev/null || echo unknown`
1166uname -v = `(uname -v) 2>/dev/null || echo unknown`
1167
1168/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1169/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1170
1171/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1172/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1173/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1174hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1175/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1176/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1177/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1178
1179_ASUNAME
1180
1181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1182for as_dir in $PATH
1183do
1184 IFS=$as_save_IFS
1185 test -z "$as_dir" && as_dir=.
1186 echo "PATH: $as_dir"
1187done
e5a52504 1188
42ecbf5e 1189} >&5
ceae3e33 1190
42ecbf5e 1191cat >&5 <<_ACEOF
e5a52504 1192
42ecbf5e
DJ
1193
1194## ----------- ##
1195## Core tests. ##
1196## ----------- ##
1197
1198_ACEOF
1199
1200
1201# Keep a trace of the command line.
1202# Strip out --no-create and --no-recursion so they do not pile up.
1203# Strip out --silent because we don't want to record it for future runs.
1204# Also quote any args containing shell meta-characters.
1205# Make two passes to allow for proper duplicate-argument suppression.
1206ac_configure_args=
1207ac_configure_args0=
1208ac_configure_args1=
1209ac_sep=
1210ac_must_keep_next=false
1211for ac_pass in 1 2
1212do
1213 for ac_arg
1214 do
1215 case $ac_arg in
1216 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1217 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1218 | -silent | --silent | --silen | --sile | --sil)
1219 continue ;;
1220 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1221 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1222 esac
1223 case $ac_pass in
1224 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1225 2)
1226 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1227 if test $ac_must_keep_next = true; then
1228 ac_must_keep_next=false # Got value, back to normal.
1229 else
1230 case $ac_arg in
1231 *=* | --config-cache | -C | -disable-* | --disable-* \
1232 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1233 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1234 | -with-* | --with-* | -without-* | --without-* | --x)
1235 case "$ac_configure_args0 " in
1236 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1237 esac
1238 ;;
1239 -* ) ac_must_keep_next=true ;;
1240 esac
1241 fi
1242 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1243 # Get rid of the leading space.
1244 ac_sep=" "
1245 ;;
1246 esac
1247 done
1248done
1249$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1250$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1251
1252# When interrupted or exit'd, cleanup temporary files, and complete
1253# config.log. We remove comments because anyway the quotes in there
1254# would cause problems or look ugly.
1255# WARNING: Be sure not to use single quotes in there, as some shells,
1256# such as our DU 5.0 friend, will then `close' the trap.
1257trap 'exit_status=$?
1258 # Save into config.log some information that might help in debugging.
1259 {
1260 echo
1261
1262 cat <<\_ASBOX
1263## ---------------- ##
1264## Cache variables. ##
1265## ---------------- ##
1266_ASBOX
1267 echo
1268 # The following way of writing the cache mishandles newlines in values,
1269{
1270 (set) 2>&1 |
1271 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1272 *ac_space=\ *)
1273 sed -n \
1274 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1275 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1276 ;;
1277 *)
1278 sed -n \
1279 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1280 ;;
1281 esac;
1282}
1283 echo
1284
1285 cat <<\_ASBOX
1286## ----------------- ##
1287## Output variables. ##
1288## ----------------- ##
1289_ASBOX
1290 echo
1291 for ac_var in $ac_subst_vars
1292 do
1293 eval ac_val=$`echo $ac_var`
1294 echo "$ac_var='"'"'$ac_val'"'"'"
1295 done | sort
1296 echo
1297
1298 if test -n "$ac_subst_files"; then
1299 cat <<\_ASBOX
1300## ------------- ##
1301## Output files. ##
1302## ------------- ##
1303_ASBOX
1304 echo
1305 for ac_var in $ac_subst_files
1306 do
1307 eval ac_val=$`echo $ac_var`
1308 echo "$ac_var='"'"'$ac_val'"'"'"
1309 done | sort
1310 echo
1311 fi
1312
1313 if test -s confdefs.h; then
1314 cat <<\_ASBOX
1315## ----------- ##
1316## confdefs.h. ##
1317## ----------- ##
1318_ASBOX
1319 echo
1320 sed "/^$/d" confdefs.h | sort
1321 echo
1322 fi
1323 test "$ac_signal" != 0 &&
1324 echo "$as_me: caught signal $ac_signal"
1325 echo "$as_me: exit $exit_status"
1326 } >&5
1327 rm -f core *.core &&
1328 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1329 exit $exit_status
1330 ' 0
1331for ac_signal in 1 2 13 15; do
1332 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1333done
1334ac_signal=0
1335
1336# confdefs.h avoids OS command line length limits that DEFS can exceed.
1337rm -rf conftest* confdefs.h
1338# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1339echo >confdefs.h
1340
1341# Predefined preprocessor variables.
1342
1343cat >>confdefs.h <<_ACEOF
1344#define PACKAGE_NAME "$PACKAGE_NAME"
1345_ACEOF
1346
1347
1348cat >>confdefs.h <<_ACEOF
1349#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1350_ACEOF
1351
1352
1353cat >>confdefs.h <<_ACEOF
1354#define PACKAGE_VERSION "$PACKAGE_VERSION"
1355_ACEOF
1356
1357
1358cat >>confdefs.h <<_ACEOF
1359#define PACKAGE_STRING "$PACKAGE_STRING"
1360_ACEOF
1361
1362
1363cat >>confdefs.h <<_ACEOF
1364#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1365_ACEOF
1366
1367
1368# Let the site file select an alternate cache file if it wants to.
1369# Prefer explicitly selected file to automatically selected ones.
1370if test -z "$CONFIG_SITE"; then
1371 if test "x$prefix" != xNONE; then
1372 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1373 else
1374 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1375 fi
1376fi
1377for ac_site_file in $CONFIG_SITE; do
1378 if test -r "$ac_site_file"; then
1379 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1380echo "$as_me: loading site script $ac_site_file" >&6;}
1381 sed 's/^/| /' "$ac_site_file" >&5
1382 . "$ac_site_file"
1383 fi
1384done
1385
1386if test -r "$cache_file"; then
1387 # Some versions of bash will fail to source /dev/null (special
1388 # files actually), so we avoid doing that.
1389 if test -f "$cache_file"; then
1390 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1391echo "$as_me: loading cache $cache_file" >&6;}
1392 case $cache_file in
1393 [\\/]* | ?:[\\/]* ) . $cache_file;;
1394 *) . ./$cache_file;;
1395 esac
1396 fi
1397else
1398 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1399echo "$as_me: creating cache $cache_file" >&6;}
1400 >$cache_file
1401fi
1402
1403# Check that the precious variables saved in the cache have kept the same
1404# value.
1405ac_cache_corrupted=false
1406for ac_var in `(set) 2>&1 |
1407 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1408 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1409 eval ac_new_set=\$ac_env_${ac_var}_set
1410 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1411 eval ac_new_val="\$ac_env_${ac_var}_value"
1412 case $ac_old_set,$ac_new_set in
1413 set,)
1414 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1415echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1416 ac_cache_corrupted=: ;;
1417 ,set)
1418 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1419echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1420 ac_cache_corrupted=: ;;
1421 ,);;
1422 *)
1423 if test "x$ac_old_val" != "x$ac_new_val"; then
6194aaab
L
1424 # differences in whitespace do not lead to failure.
1425 ac_old_val_w=`echo x $ac_old_val`
1426 ac_new_val_w=`echo x $ac_new_val`
1427 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1428 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
42ecbf5e 1429echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
6194aaab
L
1430 ac_cache_corrupted=:
1431 else
1432 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1433echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1434 eval $ac_var=\$ac_old_val
1435 fi
1436 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1437echo "$as_me: former value: \`$ac_old_val'" >&2;}
1438 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1439echo "$as_me: current value: \`$ac_new_val'" >&2;}
42ecbf5e
DJ
1440 fi;;
1441 esac
1442 # Pass precious variables to config.status.
1443 if test "$ac_new_set" = set; then
1444 case $ac_new_val in
1445 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1446 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1447 *) ac_arg=$ac_var=$ac_new_val ;;
1448 esac
1449 case " $ac_configure_args " in
1450 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1451 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1452 esac
1453 fi
1454done
1455if $ac_cache_corrupted; then
7a283e07
RW
1456 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1457echo "$as_me: error: in \`$ac_pwd':" >&2;}
42ecbf5e
DJ
1458 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1459echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1460 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1461echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1462 { (exit 1); exit 1; }; }
1463fi
1464
1465ac_ext=c
1466ac_cpp='$CPP $CPPFLAGS'
1467ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1468ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1469ac_compiler_gnu=$ac_cv_c_compiler_gnu
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
7a283e07
RW
1487
1488
1489
42ecbf5e
DJ
1490
1491
1492
1493ac_aux_dir=
1494for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1495 if test -f $ac_dir/install-sh; then
1496 ac_aux_dir=$ac_dir
1497 ac_install_sh="$ac_aux_dir/install-sh -c"
1498 break
1499 elif test -f $ac_dir/install.sh; then
1500 ac_aux_dir=$ac_dir
1501 ac_install_sh="$ac_aux_dir/install.sh -c"
1502 break
1503 elif test -f $ac_dir/shtool; then
1504 ac_aux_dir=$ac_dir
1505 ac_install_sh="$ac_aux_dir/shtool install -c"
1506 break
1507 fi
1508done
1509if test -z "$ac_aux_dir"; then
1510 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1511echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1512 { (exit 1); exit 1; }; }
1513fi
1514ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1515ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1516ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1517
1518# Make sure we can run config.sub.
1519$ac_config_sub sun4 >/dev/null 2>&1 ||
1520 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1521echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1522 { (exit 1); exit 1; }; }
1523
1524echo "$as_me:$LINENO: checking build system type" >&5
1525echo $ECHO_N "checking build system type... $ECHO_C" >&6
1526if test "${ac_cv_build+set}" = set; then
1527 echo $ECHO_N "(cached) $ECHO_C" >&6
1528else
1529 ac_cv_build_alias=$build_alias
1530test -z "$ac_cv_build_alias" &&
1531 ac_cv_build_alias=`$ac_config_guess`
1532test -z "$ac_cv_build_alias" &&
1533 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1534echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1535 { (exit 1); exit 1; }; }
1536ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1537 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1538echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1539 { (exit 1); exit 1; }; }
1540
1541fi
1542echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1543echo "${ECHO_T}$ac_cv_build" >&6
1544build=$ac_cv_build
1545build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1546build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1547build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1548
1549
1550echo "$as_me:$LINENO: checking host system type" >&5
1551echo $ECHO_N "checking host system type... $ECHO_C" >&6
1552if test "${ac_cv_host+set}" = set; then
1553 echo $ECHO_N "(cached) $ECHO_C" >&6
1554else
1555 ac_cv_host_alias=$host_alias
1556test -z "$ac_cv_host_alias" &&
1557 ac_cv_host_alias=$ac_cv_build_alias
1558ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1559 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1560echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1561 { (exit 1); exit 1; }; }
1562
1563fi
1564echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1565echo "${ECHO_T}$ac_cv_host" >&6
1566host=$ac_cv_host
1567host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1568host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1569host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1570
1571
1572echo "$as_me:$LINENO: checking target system type" >&5
1573echo $ECHO_N "checking target system type... $ECHO_C" >&6
1574if test "${ac_cv_target+set}" = set; then
1575 echo $ECHO_N "(cached) $ECHO_C" >&6
1576else
1577 ac_cv_target_alias=$target_alias
1578test "x$ac_cv_target_alias" = "x" &&
1579 ac_cv_target_alias=$ac_cv_host_alias
1580ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1581 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1582echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1583 { (exit 1); exit 1; }; }
1584
1585fi
1586echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1587echo "${ECHO_T}$ac_cv_target" >&6
1588target=$ac_cv_target
1589target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1590target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1591target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1592
1593
1594# The aliases save the names the user supplied, while $host etc.
1595# will get canonicalized.
1596test -n "$target_alias" &&
1597 test "$program_prefix$program_suffix$program_transform_name" = \
1598 NONENONEs,x,x, &&
1599 program_prefix=${target_alias}-
1600ac_ext=c
1601ac_cpp='$CPP $CPPFLAGS'
1602ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1603ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1604ac_compiler_gnu=$ac_cv_c_compiler_gnu
1605if test -n "$ac_tool_prefix"; then
1606 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1607set dummy ${ac_tool_prefix}gcc; ac_word=$2
1608echo "$as_me:$LINENO: checking for $ac_word" >&5
1609echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1610if test "${ac_cv_prog_CC+set}" = set; then
1611 echo $ECHO_N "(cached) $ECHO_C" >&6
1612else
1613 if test -n "$CC"; then
1614 ac_cv_prog_CC="$CC" # Let the user override the test.
1615else
1616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1617for as_dir in $PATH
1618do
1619 IFS=$as_save_IFS
1620 test -z "$as_dir" && as_dir=.
1621 for ac_exec_ext in '' $ac_executable_extensions; do
1622 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1623 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1625 break 2
1626 fi
1627done
1628done
1629
1630fi
1631fi
1632CC=$ac_cv_prog_CC
1633if test -n "$CC"; then
1634 echo "$as_me:$LINENO: result: $CC" >&5
1635echo "${ECHO_T}$CC" >&6
1636else
1637 echo "$as_me:$LINENO: result: no" >&5
1638echo "${ECHO_T}no" >&6
1639fi
1640
1641fi
1642if test -z "$ac_cv_prog_CC"; then
1643 ac_ct_CC=$CC
1644 # Extract the first word of "gcc", so it can be a program name with args.
1645set dummy gcc; ac_word=$2
1646echo "$as_me:$LINENO: checking for $ac_word" >&5
1647echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1648if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1649 echo $ECHO_N "(cached) $ECHO_C" >&6
1650else
1651 if test -n "$ac_ct_CC"; then
1652 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1653else
1654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1655for as_dir in $PATH
1656do
1657 IFS=$as_save_IFS
1658 test -z "$as_dir" && as_dir=.
1659 for ac_exec_ext in '' $ac_executable_extensions; do
1660 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1661 ac_cv_prog_ac_ct_CC="gcc"
1662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1663 break 2
1664 fi
1665done
1666done
1667
1668fi
1669fi
1670ac_ct_CC=$ac_cv_prog_ac_ct_CC
1671if test -n "$ac_ct_CC"; then
1672 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1673echo "${ECHO_T}$ac_ct_CC" >&6
1674else
1675 echo "$as_me:$LINENO: result: no" >&5
1676echo "${ECHO_T}no" >&6
1677fi
1678
1679 CC=$ac_ct_CC
1680else
1681 CC="$ac_cv_prog_CC"
1682fi
1683
1684if test -z "$CC"; then
1685 if test -n "$ac_tool_prefix"; then
1686 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1687set dummy ${ac_tool_prefix}cc; ac_word=$2
1688echo "$as_me:$LINENO: checking for $ac_word" >&5
1689echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1690if test "${ac_cv_prog_CC+set}" = set; then
1691 echo $ECHO_N "(cached) $ECHO_C" >&6
1692else
1693 if test -n "$CC"; then
1694 ac_cv_prog_CC="$CC" # Let the user override the test.
1695else
1696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1697for as_dir in $PATH
1698do
1699 IFS=$as_save_IFS
1700 test -z "$as_dir" && as_dir=.
1701 for ac_exec_ext in '' $ac_executable_extensions; do
1702 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1703 ac_cv_prog_CC="${ac_tool_prefix}cc"
1704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1705 break 2
1706 fi
1707done
1708done
1709
1710fi
1711fi
1712CC=$ac_cv_prog_CC
1713if test -n "$CC"; then
1714 echo "$as_me:$LINENO: result: $CC" >&5
1715echo "${ECHO_T}$CC" >&6
1716else
1717 echo "$as_me:$LINENO: result: no" >&5
1718echo "${ECHO_T}no" >&6
1719fi
1720
1721fi
1722if test -z "$ac_cv_prog_CC"; then
1723 ac_ct_CC=$CC
1724 # Extract the first word of "cc", so it can be a program name with args.
1725set dummy cc; ac_word=$2
1726echo "$as_me:$LINENO: checking for $ac_word" >&5
1727echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1728if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1729 echo $ECHO_N "(cached) $ECHO_C" >&6
1730else
1731 if test -n "$ac_ct_CC"; then
1732 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1733else
1734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1735for as_dir in $PATH
1736do
1737 IFS=$as_save_IFS
1738 test -z "$as_dir" && as_dir=.
1739 for ac_exec_ext in '' $ac_executable_extensions; do
1740 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1741 ac_cv_prog_ac_ct_CC="cc"
1742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1743 break 2
1744 fi
1745done
1746done
1747
1748fi
1749fi
1750ac_ct_CC=$ac_cv_prog_ac_ct_CC
1751if test -n "$ac_ct_CC"; then
1752 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1753echo "${ECHO_T}$ac_ct_CC" >&6
1754else
1755 echo "$as_me:$LINENO: result: no" >&5
1756echo "${ECHO_T}no" >&6
1757fi
1758
1759 CC=$ac_ct_CC
1760else
1761 CC="$ac_cv_prog_CC"
1762fi
1763
1764fi
1765if test -z "$CC"; then
1766 # Extract the first word of "cc", so it can be a program name with args.
1767set dummy cc; ac_word=$2
1768echo "$as_me:$LINENO: checking for $ac_word" >&5
1769echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1770if test "${ac_cv_prog_CC+set}" = set; then
1771 echo $ECHO_N "(cached) $ECHO_C" >&6
1772else
1773 if test -n "$CC"; then
1774 ac_cv_prog_CC="$CC" # Let the user override the test.
1775else
1776 ac_prog_rejected=no
1777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1778for as_dir in $PATH
1779do
1780 IFS=$as_save_IFS
1781 test -z "$as_dir" && as_dir=.
1782 for ac_exec_ext in '' $ac_executable_extensions; do
1783 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1784 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1785 ac_prog_rejected=yes
1786 continue
1787 fi
1788 ac_cv_prog_CC="cc"
1789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1790 break 2
1791 fi
1792done
1793done
1794
1795if test $ac_prog_rejected = yes; then
1796 # We found a bogon in the path, so make sure we never use it.
1797 set dummy $ac_cv_prog_CC
1798 shift
1799 if test $# != 0; then
1800 # We chose a different compiler from the bogus one.
1801 # However, it has the same basename, so the bogon will be chosen
1802 # first if we set CC to just the basename; use the full file name.
1803 shift
1804 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1805 fi
1806fi
1807fi
1808fi
1809CC=$ac_cv_prog_CC
1810if test -n "$CC"; then
1811 echo "$as_me:$LINENO: result: $CC" >&5
1812echo "${ECHO_T}$CC" >&6
1813else
1814 echo "$as_me:$LINENO: result: no" >&5
1815echo "${ECHO_T}no" >&6
1816fi
1817
1818fi
1819if test -z "$CC"; then
1820 if test -n "$ac_tool_prefix"; then
1821 for ac_prog in cl
1822 do
1823 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1824set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1825echo "$as_me:$LINENO: checking for $ac_word" >&5
1826echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1827if test "${ac_cv_prog_CC+set}" = set; then
1828 echo $ECHO_N "(cached) $ECHO_C" >&6
1829else
1830 if test -n "$CC"; then
1831 ac_cv_prog_CC="$CC" # Let the user override the test.
1832else
1833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1834for as_dir in $PATH
1835do
1836 IFS=$as_save_IFS
1837 test -z "$as_dir" && as_dir=.
1838 for ac_exec_ext in '' $ac_executable_extensions; do
1839 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1840 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1842 break 2
1843 fi
1844done
1845done
1846
1847fi
1848fi
1849CC=$ac_cv_prog_CC
1850if test -n "$CC"; then
1851 echo "$as_me:$LINENO: result: $CC" >&5
1852echo "${ECHO_T}$CC" >&6
1853else
1854 echo "$as_me:$LINENO: result: no" >&5
1855echo "${ECHO_T}no" >&6
1856fi
1857
1858 test -n "$CC" && break
1859 done
1860fi
1861if test -z "$CC"; then
1862 ac_ct_CC=$CC
1863 for ac_prog in cl
1864do
1865 # Extract the first word of "$ac_prog", so it can be a program name with args.
1866set dummy $ac_prog; ac_word=$2
1867echo "$as_me:$LINENO: checking for $ac_word" >&5
1868echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1869if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1870 echo $ECHO_N "(cached) $ECHO_C" >&6
1871else
1872 if test -n "$ac_ct_CC"; then
1873 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1874else
1875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1876for as_dir in $PATH
1877do
1878 IFS=$as_save_IFS
1879 test -z "$as_dir" && as_dir=.
1880 for ac_exec_ext in '' $ac_executable_extensions; do
1881 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1882 ac_cv_prog_ac_ct_CC="$ac_prog"
1883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1884 break 2
1885 fi
1886done
1887done
1888
1889fi
1890fi
1891ac_ct_CC=$ac_cv_prog_ac_ct_CC
1892if test -n "$ac_ct_CC"; then
1893 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1894echo "${ECHO_T}$ac_ct_CC" >&6
1895else
1896 echo "$as_me:$LINENO: result: no" >&5
1897echo "${ECHO_T}no" >&6
1898fi
1899
1900 test -n "$ac_ct_CC" && break
1901done
1902
1903 CC=$ac_ct_CC
1904fi
1905
1906fi
1907
1908
7a283e07
RW
1909test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1910echo "$as_me: error: in \`$ac_pwd':" >&2;}
1911{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
42ecbf5e
DJ
1912See \`config.log' for more details." >&5
1913echo "$as_me: error: no acceptable C compiler found in \$PATH
1914See \`config.log' for more details." >&2;}
7a283e07 1915 { (exit 1); exit 1; }; }; }
42ecbf5e
DJ
1916
1917# Provide some information about the compiler.
1918echo "$as_me:$LINENO:" \
1919 "checking for C compiler version" >&5
1920ac_compiler=`set X $ac_compile; echo $2`
1921{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1922 (eval $ac_compiler --version </dev/null >&5) 2>&5
1923 ac_status=$?
1924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1925 (exit $ac_status); }
1926{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1927 (eval $ac_compiler -v </dev/null >&5) 2>&5
1928 ac_status=$?
1929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1930 (exit $ac_status); }
1931{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1932 (eval $ac_compiler -V </dev/null >&5) 2>&5
1933 ac_status=$?
1934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1935 (exit $ac_status); }
1936
1937cat >conftest.$ac_ext <<_ACEOF
1938/* confdefs.h. */
1939_ACEOF
1940cat confdefs.h >>conftest.$ac_ext
1941cat >>conftest.$ac_ext <<_ACEOF
1942/* end confdefs.h. */
1943
1944int
1945main ()
1946{
1947
1948 ;
1949 return 0;
1950}
1951_ACEOF
1952ac_clean_files_save=$ac_clean_files
1953ac_clean_files="$ac_clean_files a.out a.exe b.out"
1954# Try to create an executable without -o first, disregard a.out.
1955# It will help us diagnose broken compilers, and finding out an intuition
1956# of exeext.
1957echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1958echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1959ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1960if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1961 (eval $ac_link_default) 2>&5
1962 ac_status=$?
1963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1964 (exit $ac_status); }; then
1965 # Find the output, starting from the most likely. This scheme is
1966# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1967# resort.
1968
1969# Be careful to initialize this variable, since it used to be cached.
1970# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1971ac_cv_exeext=
1972# b.out is created by i960 compilers.
1973for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1974do
1975 test -f "$ac_file" || continue
1976 case $ac_file in
1977 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1978 ;;
1979 conftest.$ac_ext )
1980 # This is the source file.
1981 ;;
1982 [ab].out )
1983 # We found the default executable, but exeext='' is most
1984 # certainly right.
1985 break;;
1986 *.* )
1987 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1988 # FIXME: I believe we export ac_cv_exeext for Libtool,
1989 # but it would be cool to find out if it's true. Does anybody
1990 # maintain Libtool? --akim.
1991 export ac_cv_exeext
1992 break;;
1993 * )
1994 break;;
1995 esac
1996done
1997else
1998 echo "$as_me: failed program was:" >&5
1999sed 's/^/| /' conftest.$ac_ext >&5
2000
7a283e07
RW
2001{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2002echo "$as_me: error: in \`$ac_pwd':" >&2;}
42ecbf5e
DJ
2003{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2004See \`config.log' for more details." >&5
2005echo "$as_me: error: C compiler cannot create executables
2006See \`config.log' for more details." >&2;}
7a283e07 2007 { (exit 77); exit 77; }; }; }
42ecbf5e
DJ
2008fi
2009
2010ac_exeext=$ac_cv_exeext
2011echo "$as_me:$LINENO: result: $ac_file" >&5
2012echo "${ECHO_T}$ac_file" >&6
2013
2014# Check the compiler produces executables we can run. If not, either
2015# the compiler is broken, or we cross compile.
2016echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2017echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2018# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2019# If not cross compiling, check that we can run a simple program.
2020if test "$cross_compiling" != yes; then
2021 if { ac_try='./$ac_file'
2022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2023 (eval $ac_try) 2>&5
2024 ac_status=$?
2025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2026 (exit $ac_status); }; }; then
2027 cross_compiling=no
2028 else
2029 if test "$cross_compiling" = maybe; then
2030 cross_compiling=yes
2031 else
7a283e07
RW
2032 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2033echo "$as_me: error: in \`$ac_pwd':" >&2;}
2034{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
42ecbf5e
DJ
2035If you meant to cross compile, use \`--host'.
2036See \`config.log' for more details." >&5
2037echo "$as_me: error: cannot run C compiled programs.
2038If you meant to cross compile, use \`--host'.
2039See \`config.log' for more details." >&2;}
7a283e07 2040 { (exit 1); exit 1; }; }; }
42ecbf5e
DJ
2041 fi
2042 fi
2043fi
2044echo "$as_me:$LINENO: result: yes" >&5
2045echo "${ECHO_T}yes" >&6
2046
2047rm -f a.out a.exe conftest$ac_cv_exeext b.out
2048ac_clean_files=$ac_clean_files_save
2049# Check the compiler produces executables we can run. If not, either
2050# the compiler is broken, or we cross compile.
2051echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2052echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2053echo "$as_me:$LINENO: result: $cross_compiling" >&5
2054echo "${ECHO_T}$cross_compiling" >&6
2055
2056echo "$as_me:$LINENO: checking for suffix of executables" >&5
2057echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2058if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2059 (eval $ac_link) 2>&5
2060 ac_status=$?
2061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2062 (exit $ac_status); }; then
2063 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2064# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2065# work properly (i.e., refer to `conftest.exe'), while it won't with
2066# `rm'.
2067for ac_file in conftest.exe conftest conftest.*; do
2068 test -f "$ac_file" || continue
2069 case $ac_file in
2070 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2071 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2072 export ac_cv_exeext
2073 break;;
2074 * ) break;;
2075 esac
2076done
2077else
7a283e07
RW
2078 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2079echo "$as_me: error: in \`$ac_pwd':" >&2;}
2080{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
42ecbf5e
DJ
2081See \`config.log' for more details." >&5
2082echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2083See \`config.log' for more details." >&2;}
7a283e07 2084 { (exit 1); exit 1; }; }; }
42ecbf5e
DJ
2085fi
2086
2087rm -f conftest$ac_cv_exeext
2088echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2089echo "${ECHO_T}$ac_cv_exeext" >&6
2090
2091rm -f conftest.$ac_ext
2092EXEEXT=$ac_cv_exeext
2093ac_exeext=$EXEEXT
2094echo "$as_me:$LINENO: checking for suffix of object files" >&5
2095echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2096if test "${ac_cv_objext+set}" = set; then
2097 echo $ECHO_N "(cached) $ECHO_C" >&6
2098else
2099 cat >conftest.$ac_ext <<_ACEOF
2100/* confdefs.h. */
2101_ACEOF
2102cat confdefs.h >>conftest.$ac_ext
2103cat >>conftest.$ac_ext <<_ACEOF
2104/* end confdefs.h. */
2105
2106int
2107main ()
2108{
2109
2110 ;
2111 return 0;
2112}
2113_ACEOF
2114rm -f conftest.o conftest.obj
2115if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2116 (eval $ac_compile) 2>&5
2117 ac_status=$?
2118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2119 (exit $ac_status); }; then
2120 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2121 case $ac_file in
2122 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2123 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2124 break;;
2125 esac
2126done
2127else
2128 echo "$as_me: failed program was:" >&5
2129sed 's/^/| /' conftest.$ac_ext >&5
2130
7a283e07
RW
2131{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2132echo "$as_me: error: in \`$ac_pwd':" >&2;}
42ecbf5e
DJ
2133{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2134See \`config.log' for more details." >&5
2135echo "$as_me: error: cannot compute suffix of object files: cannot compile
2136See \`config.log' for more details." >&2;}
7a283e07 2137 { (exit 1); exit 1; }; }; }
42ecbf5e
DJ
2138fi
2139
2140rm -f conftest.$ac_cv_objext conftest.$ac_ext
2141fi
2142echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2143echo "${ECHO_T}$ac_cv_objext" >&6
2144OBJEXT=$ac_cv_objext
2145ac_objext=$OBJEXT
2146echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2147echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2148if test "${ac_cv_c_compiler_gnu+set}" = set; then
2149 echo $ECHO_N "(cached) $ECHO_C" >&6
2150else
2151 cat >conftest.$ac_ext <<_ACEOF
2152/* confdefs.h. */
2153_ACEOF
2154cat confdefs.h >>conftest.$ac_ext
2155cat >>conftest.$ac_ext <<_ACEOF
2156/* end confdefs.h. */
2157
2158int
2159main ()
2160{
2161#ifndef __GNUC__
2162 choke me
2163#endif
2164
2165 ;
2166 return 0;
2167}
2168_ACEOF
2169rm -f conftest.$ac_objext
2170if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2171 (eval $ac_compile) 2>conftest.er1
2172 ac_status=$?
2173 grep -v '^ *+' conftest.er1 >conftest.err
2174 rm -f conftest.er1
2175 cat conftest.err >&5
2176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177 (exit $ac_status); } &&
b7d4af3a
JW
2178 { ac_try='test -z "$ac_c_werror_flag"
2179 || test ! -s conftest.err'
42ecbf5e
DJ
2180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2181 (eval $ac_try) 2>&5
2182 ac_status=$?
2183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184 (exit $ac_status); }; } &&
2185 { ac_try='test -s conftest.$ac_objext'
2186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2187 (eval $ac_try) 2>&5
2188 ac_status=$?
2189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190 (exit $ac_status); }; }; then
2191 ac_compiler_gnu=yes
2192else
2193 echo "$as_me: failed program was:" >&5
2194sed 's/^/| /' conftest.$ac_ext >&5
2195
2196ac_compiler_gnu=no
2197fi
2198rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2199ac_cv_c_compiler_gnu=$ac_compiler_gnu
2200
2201fi
2202echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2203echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2204GCC=`test $ac_compiler_gnu = yes && echo yes`
2205ac_test_CFLAGS=${CFLAGS+set}
2206ac_save_CFLAGS=$CFLAGS
2207CFLAGS="-g"
2208echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2209echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2210if test "${ac_cv_prog_cc_g+set}" = set; then
2211 echo $ECHO_N "(cached) $ECHO_C" >&6
2212else
2213 cat >conftest.$ac_ext <<_ACEOF
2214/* confdefs.h. */
2215_ACEOF
2216cat confdefs.h >>conftest.$ac_ext
2217cat >>conftest.$ac_ext <<_ACEOF
2218/* end confdefs.h. */
2219
2220int
2221main ()
2222{
2223
2224 ;
2225 return 0;
2226}
2227_ACEOF
2228rm -f conftest.$ac_objext
2229if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2230 (eval $ac_compile) 2>conftest.er1
2231 ac_status=$?
2232 grep -v '^ *+' conftest.er1 >conftest.err
2233 rm -f conftest.er1
2234 cat conftest.err >&5
2235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2236 (exit $ac_status); } &&
b7d4af3a
JW
2237 { ac_try='test -z "$ac_c_werror_flag"
2238 || test ! -s conftest.err'
42ecbf5e
DJ
2239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2240 (eval $ac_try) 2>&5
2241 ac_status=$?
2242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243 (exit $ac_status); }; } &&
2244 { ac_try='test -s conftest.$ac_objext'
2245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2246 (eval $ac_try) 2>&5
2247 ac_status=$?
2248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2249 (exit $ac_status); }; }; then
2250 ac_cv_prog_cc_g=yes
2251else
2252 echo "$as_me: failed program was:" >&5
2253sed 's/^/| /' conftest.$ac_ext >&5
2254
2255ac_cv_prog_cc_g=no
2256fi
2257rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2258fi
2259echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2260echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2261if test "$ac_test_CFLAGS" = set; then
2262 CFLAGS=$ac_save_CFLAGS
2263elif test $ac_cv_prog_cc_g = yes; then
2264 if test "$GCC" = yes; then
2265 CFLAGS="-g -O2"
2266 else
2267 CFLAGS="-g"
2268 fi
2269else
2270 if test "$GCC" = yes; then
2271 CFLAGS="-O2"
2272 else
2273 CFLAGS=
2274 fi
2275fi
2276echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2277echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2278if test "${ac_cv_prog_cc_stdc+set}" = set; then
2279 echo $ECHO_N "(cached) $ECHO_C" >&6
2280else
2281 ac_cv_prog_cc_stdc=no
2282ac_save_CC=$CC
2283cat >conftest.$ac_ext <<_ACEOF
2284/* confdefs.h. */
2285_ACEOF
2286cat confdefs.h >>conftest.$ac_ext
2287cat >>conftest.$ac_ext <<_ACEOF
2288/* end confdefs.h. */
2289#include <stdarg.h>
2290#include <stdio.h>
2291#include <sys/types.h>
2292#include <sys/stat.h>
2293/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2294struct buf { int x; };
2295FILE * (*rcsopen) (struct buf *, struct stat *, int);
2296static char *e (p, i)
2297 char **p;
2298 int i;
2299{
2300 return p[i];
2301}
2302static char *f (char * (*g) (char **, int), char **p, ...)
2303{
2304 char *s;
2305 va_list v;
2306 va_start (v,p);
2307 s = g (p, va_arg (v,int));
2308 va_end (v);
2309 return s;
2310}
2311
2312/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2313 function prototypes and stuff, but not '\xHH' hex character constants.
2314 These don't provoke an error unfortunately, instead are silently treated
2315 as 'x'. The following induces an error, until -std1 is added to get
2316 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2317 array size at least. It's necessary to write '\x00'==0 to get something
2318 that's true only with -std1. */
2319int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2320
2321int test (int i, double x);
2322struct s1 {int (*f) (int a);};
2323struct s2 {int (*f) (double a);};
2324int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2325int argc;
2326char **argv;
2327int
2328main ()
2329{
2330return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2331 ;
2332 return 0;
2333}
2334_ACEOF
2335# Don't try gcc -ansi; that turns off useful extensions and
2336# breaks some systems' header files.
2337# AIX -qlanglvl=ansi
2338# Ultrix and OSF/1 -std1
2339# HP-UX 10.20 and later -Ae
2340# HP-UX older versions -Aa -D_HPUX_SOURCE
2341# SVR4 -Xc -D__EXTENSIONS__
2342for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2343do
2344 CC="$ac_save_CC $ac_arg"
2345 rm -f conftest.$ac_objext
2346if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2347 (eval $ac_compile) 2>conftest.er1
2348 ac_status=$?
2349 grep -v '^ *+' conftest.er1 >conftest.err
2350 rm -f conftest.er1
2351 cat conftest.err >&5
2352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2353 (exit $ac_status); } &&
b7d4af3a
JW
2354 { ac_try='test -z "$ac_c_werror_flag"
2355 || test ! -s conftest.err'
42ecbf5e
DJ
2356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2357 (eval $ac_try) 2>&5
2358 ac_status=$?
2359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360 (exit $ac_status); }; } &&
2361 { ac_try='test -s conftest.$ac_objext'
2362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2363 (eval $ac_try) 2>&5
2364 ac_status=$?
2365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366 (exit $ac_status); }; }; then
2367 ac_cv_prog_cc_stdc=$ac_arg
2368break
2369else
2370 echo "$as_me: failed program was:" >&5
2371sed 's/^/| /' conftest.$ac_ext >&5
2372
2373fi
2374rm -f conftest.err conftest.$ac_objext
2375done
2376rm -f conftest.$ac_ext conftest.$ac_objext
2377CC=$ac_save_CC
2378
2379fi
2380
2381case "x$ac_cv_prog_cc_stdc" in
2382 x|xno)
2383 echo "$as_me:$LINENO: result: none needed" >&5
2384echo "${ECHO_T}none needed" >&6 ;;
2385 *)
2386 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2387echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2388 CC="$CC $ac_cv_prog_cc_stdc" ;;
2389esac
2390
2391# Some people use a C++ compiler to compile C. Since we use `exit',
2392# in C++ we need to declare it. In case someone uses the same compiler
2393# for both compiling C and C++ we need to have the C++ compiler decide
2394# the declaration of exit, since it's the most demanding environment.
2395cat >conftest.$ac_ext <<_ACEOF
2396#ifndef __cplusplus
2397 choke me
2398#endif
2399_ACEOF
2400rm -f conftest.$ac_objext
2401if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2402 (eval $ac_compile) 2>conftest.er1
2403 ac_status=$?
2404 grep -v '^ *+' conftest.er1 >conftest.err
2405 rm -f conftest.er1
2406 cat conftest.err >&5
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); } &&
b7d4af3a
JW
2409 { ac_try='test -z "$ac_c_werror_flag"
2410 || test ! -s conftest.err'
42ecbf5e
DJ
2411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2412 (eval $ac_try) 2>&5
2413 ac_status=$?
2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415 (exit $ac_status); }; } &&
2416 { ac_try='test -s conftest.$ac_objext'
2417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2418 (eval $ac_try) 2>&5
2419 ac_status=$?
2420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421 (exit $ac_status); }; }; then
2422 for ac_declaration in \
2423 '' \
2424 'extern "C" void std::exit (int) throw (); using std::exit;' \
2425 'extern "C" void std::exit (int); using std::exit;' \
2426 'extern "C" void exit (int) throw ();' \
2427 'extern "C" void exit (int);' \
2428 'void exit (int);'
2429do
2430 cat >conftest.$ac_ext <<_ACEOF
2431/* confdefs.h. */
2432_ACEOF
2433cat confdefs.h >>conftest.$ac_ext
2434cat >>conftest.$ac_ext <<_ACEOF
2435/* end confdefs.h. */
2436$ac_declaration
2437#include <stdlib.h>
2438int
2439main ()
2440{
2441exit (42);
2442 ;
2443 return 0;
2444}
2445_ACEOF
2446rm -f conftest.$ac_objext
2447if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2448 (eval $ac_compile) 2>conftest.er1
2449 ac_status=$?
2450 grep -v '^ *+' conftest.er1 >conftest.err
2451 rm -f conftest.er1
2452 cat conftest.err >&5
2453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454 (exit $ac_status); } &&
b7d4af3a
JW
2455 { ac_try='test -z "$ac_c_werror_flag"
2456 || test ! -s conftest.err'
42ecbf5e
DJ
2457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2458 (eval $ac_try) 2>&5
2459 ac_status=$?
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); }; } &&
2462 { ac_try='test -s conftest.$ac_objext'
2463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2464 (eval $ac_try) 2>&5
2465 ac_status=$?
2466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467 (exit $ac_status); }; }; then
2468 :
2469else
2470 echo "$as_me: failed program was:" >&5
2471sed 's/^/| /' conftest.$ac_ext >&5
2472
2473continue
2474fi
2475rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2476 cat >conftest.$ac_ext <<_ACEOF
2477/* confdefs.h. */
2478_ACEOF
2479cat confdefs.h >>conftest.$ac_ext
2480cat >>conftest.$ac_ext <<_ACEOF
2481/* end confdefs.h. */
2482$ac_declaration
2483int
2484main ()
2485{
2486exit (42);
2487 ;
2488 return 0;
2489}
2490_ACEOF
2491rm -f conftest.$ac_objext
2492if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2493 (eval $ac_compile) 2>conftest.er1
2494 ac_status=$?
2495 grep -v '^ *+' conftest.er1 >conftest.err
2496 rm -f conftest.er1
2497 cat conftest.err >&5
2498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499 (exit $ac_status); } &&
b7d4af3a
JW
2500 { ac_try='test -z "$ac_c_werror_flag"
2501 || test ! -s conftest.err'
42ecbf5e
DJ
2502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2503 (eval $ac_try) 2>&5
2504 ac_status=$?
2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506 (exit $ac_status); }; } &&
2507 { ac_try='test -s conftest.$ac_objext'
2508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2509 (eval $ac_try) 2>&5
2510 ac_status=$?
2511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512 (exit $ac_status); }; }; then
2513 break
2514else
2515 echo "$as_me: failed program was:" >&5
2516sed 's/^/| /' conftest.$ac_ext >&5
2517
2518fi
2519rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2520done
2521rm -f conftest*
2522if test -n "$ac_declaration"; then
2523 echo '#ifdef __cplusplus' >>confdefs.h
2524 echo $ac_declaration >>confdefs.h
2525 echo '#endif' >>confdefs.h
2526fi
2527
2528else
2529 echo "$as_me: failed program was:" >&5
2530sed 's/^/| /' conftest.$ac_ext >&5
2531
2532fi
2533rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2534ac_ext=c
2535ac_cpp='$CPP $CPPFLAGS'
2536ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2537ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2538ac_compiler_gnu=$ac_cv_c_compiler_gnu
2539
2540
2541echo "$as_me:$LINENO: checking for library containing strerror" >&5
2542echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2543if test "${ac_cv_search_strerror+set}" = set; then
2544 echo $ECHO_N "(cached) $ECHO_C" >&6
2545else
2546 ac_func_search_save_LIBS=$LIBS
2547ac_cv_search_strerror=no
2548cat >conftest.$ac_ext <<_ACEOF
2549/* confdefs.h. */
2550_ACEOF
2551cat confdefs.h >>conftest.$ac_ext
2552cat >>conftest.$ac_ext <<_ACEOF
2553/* end confdefs.h. */
2554
2555/* Override any gcc2 internal prototype to avoid an error. */
2556#ifdef __cplusplus
2557extern "C"
2558#endif
2559/* We use char because int might match the return type of a gcc2
2560 builtin and then its argument prototype would still apply. */
2561char strerror ();
2562int
2563main ()
2564{
2565strerror ();
2566 ;
2567 return 0;
2568}
2569_ACEOF
2570rm -f conftest.$ac_objext conftest$ac_exeext
2571if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2572 (eval $ac_link) 2>conftest.er1
2573 ac_status=$?
2574 grep -v '^ *+' conftest.er1 >conftest.err
2575 rm -f conftest.er1
2576 cat conftest.err >&5
2577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578 (exit $ac_status); } &&
b7d4af3a
JW
2579 { ac_try='test -z "$ac_c_werror_flag"
2580 || test ! -s conftest.err'
42ecbf5e
DJ
2581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2582 (eval $ac_try) 2>&5
2583 ac_status=$?
2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585 (exit $ac_status); }; } &&
2586 { ac_try='test -s conftest$ac_exeext'
2587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2588 (eval $ac_try) 2>&5
2589 ac_status=$?
2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591 (exit $ac_status); }; }; then
2592 ac_cv_search_strerror="none required"
2593else
2594 echo "$as_me: failed program was:" >&5
2595sed 's/^/| /' conftest.$ac_ext >&5
2596
2597fi
2598rm -f conftest.err conftest.$ac_objext \
2599 conftest$ac_exeext conftest.$ac_ext
2600if test "$ac_cv_search_strerror" = no; then
2601 for ac_lib in cposix; do
2602 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2603 cat >conftest.$ac_ext <<_ACEOF
2604/* confdefs.h. */
2605_ACEOF
2606cat confdefs.h >>conftest.$ac_ext
2607cat >>conftest.$ac_ext <<_ACEOF
2608/* end confdefs.h. */
2609
2610/* Override any gcc2 internal prototype to avoid an error. */
2611#ifdef __cplusplus
2612extern "C"
2613#endif
2614/* We use char because int might match the return type of a gcc2
2615 builtin and then its argument prototype would still apply. */
2616char strerror ();
2617int
2618main ()
2619{
2620strerror ();
2621 ;
2622 return 0;
2623}
2624_ACEOF
2625rm -f conftest.$ac_objext conftest$ac_exeext
2626if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2627 (eval $ac_link) 2>conftest.er1
2628 ac_status=$?
2629 grep -v '^ *+' conftest.er1 >conftest.err
2630 rm -f conftest.er1
2631 cat conftest.err >&5
2632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633 (exit $ac_status); } &&
b7d4af3a
JW
2634 { ac_try='test -z "$ac_c_werror_flag"
2635 || test ! -s conftest.err'
42ecbf5e
DJ
2636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2637 (eval $ac_try) 2>&5
2638 ac_status=$?
2639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640 (exit $ac_status); }; } &&
2641 { ac_try='test -s conftest$ac_exeext'
2642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2643 (eval $ac_try) 2>&5
2644 ac_status=$?
2645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646 (exit $ac_status); }; }; then
2647 ac_cv_search_strerror="-l$ac_lib"
2648break
2649else
2650 echo "$as_me: failed program was:" >&5
2651sed 's/^/| /' conftest.$ac_ext >&5
2652
2653fi
2654rm -f conftest.err conftest.$ac_objext \
2655 conftest$ac_exeext conftest.$ac_ext
2656 done
2657fi
2658LIBS=$ac_func_search_save_LIBS
2659fi
2660echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2661echo "${ECHO_T}$ac_cv_search_strerror" >&6
2662if test "$ac_cv_search_strerror" != no; then
2663 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2664
2665fi
2666
2667
2668BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2669am__api_version="1.9"
2670# Find a good install program. We prefer a C program (faster),
2671# so one script is as good as another. But avoid the broken or
2672# incompatible versions:
2673# SysV /etc/install, /usr/sbin/install
2674# SunOS /usr/etc/install
2675# IRIX /sbin/install
2676# AIX /bin/install
2677# AmigaOS /C/install, which installs bootblocks on floppy discs
2678# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2679# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2680# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2681# OS/2's system install, which has a completely different semantic
2682# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 2683# Reject install programs that cannot install multiple files.
42ecbf5e
DJ
2684echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2685echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2686if test -z "$INSTALL"; then
2687if test "${ac_cv_path_install+set}" = set; then
2688 echo $ECHO_N "(cached) $ECHO_C" >&6
2689else
2690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691for as_dir in $PATH
2692do
2693 IFS=$as_save_IFS
2694 test -z "$as_dir" && as_dir=.
2695 # Account for people who put trailing slashes in PATH elements.
2696case $as_dir/ in
2697 ./ | .// | /cC/* | \
2698 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2699 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2700 /usr/ucb/* ) ;;
2701 *)
2702 # OSF1 and SCO ODT 3.0 have their own names for install.
2703 # Don't use installbsd from OSF since it installs stuff as root
2704 # by default.
2705 for ac_prog in ginstall scoinst install; do
2706 for ac_exec_ext in '' $ac_executable_extensions; do
2707 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2708 if test $ac_prog = install &&
2709 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
2710 # AIX install. It has an incompatible calling convention.
2711 :
42ecbf5e
DJ
2712 elif test $ac_prog = install &&
2713 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2714 # program-specific install script used by HP pwplus--don't use.
2715 :
252b5132 2716 else
58c85be7
RW
2717 rm -rf conftest.one conftest.two conftest.dir
2718 echo one > conftest.one
2719 echo two > conftest.two
2720 mkdir conftest.dir
2721 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2722 test -s conftest.one && test -s conftest.two &&
2723 test -s conftest.dir/conftest.one &&
2724 test -s conftest.dir/conftest.two
2725 then
2726 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2727 break 3
2728 fi
252b5132
RH
2729 fi
2730 fi
d15b04bd 2731 done
42ecbf5e
DJ
2732 done
2733 ;;
2734esac
2735done
2736
58c85be7 2737rm -rf conftest.one conftest.two conftest.dir
252b5132
RH
2738
2739fi
2740 if test "${ac_cv_path_install+set}" = set; then
42ecbf5e 2741 INSTALL=$ac_cv_path_install
252b5132 2742 else
58c85be7
RW
2743 # As a last resort, use the slow shell script. Don't cache a
2744 # value for INSTALL within a source directory, because that will
252b5132 2745 # break other packages using the cache if that directory is
58c85be7 2746 # removed, or if the value is a relative name.
42ecbf5e 2747 INSTALL=$ac_install_sh
252b5132
RH
2748 fi
2749fi
42ecbf5e
DJ
2750echo "$as_me:$LINENO: result: $INSTALL" >&5
2751echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
2752
2753# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2754# It thinks the first close brace ends the variable substitution.
2755test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2756
42ecbf5e 2757test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
2758
2759test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2760
42ecbf5e
DJ
2761echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2762echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
252b5132
RH
2763# Just in case
2764sleep 1
42ecbf5e 2765echo timestamp > conftest.file
252b5132
RH
2766# Do `set' in a subshell so we don't clobber the current shell's
2767# arguments. Must try -L first in case configure is actually a
2768# symlink; some systems play weird games with the mod time of symlinks
2769# (eg FreeBSD returns the mod time of the symlink's containing
2770# directory).
2771if (
42ecbf5e 2772 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
252b5132
RH
2773 if test "$*" = "X"; then
2774 # -L didn't work.
42ecbf5e 2775 set X `ls -t $srcdir/configure conftest.file`
252b5132 2776 fi
42ecbf5e
DJ
2777 rm -f conftest.file
2778 if test "$*" != "X $srcdir/configure conftest.file" \
2779 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
2780
2781 # If neither matched, then we have a broken ls. This can happen
2782 # if, for instance, CONFIG_SHELL is bash and it inherits a
2783 # broken ls alias from the environment. This has actually
2784 # happened. Such a system could not be considered "sane".
42ecbf5e
DJ
2785 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2786alias in your environment" >&5
2787echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2788alias in your environment" >&2;}
2789 { (exit 1); exit 1; }; }
252b5132
RH
2790 fi
2791
42ecbf5e 2792 test "$2" = conftest.file
252b5132
RH
2793 )
2794then
2795 # Ok.
2796 :
2797else
42ecbf5e
DJ
2798 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2799Check your system clock" >&5
2800echo "$as_me: error: newly created file is older than distributed files!
2801Check your system clock" >&2;}
2802 { (exit 1); exit 1; }; }
2803fi
2804echo "$as_me:$LINENO: result: yes" >&5
2805echo "${ECHO_T}yes" >&6
2806test "$program_prefix" != NONE &&
2807 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2808# Use a double $ so make ignores it.
2809test "$program_suffix" != NONE &&
2810 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2811# Double any \ or $. echo might interpret backslashes.
2812# By default was `s,x,x', remove it if useless.
2813cat <<\_ACEOF >conftest.sed
2814s/[\\$]/&&/g;s/;s,x,x,$//
2815_ACEOF
2816program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2817rm conftest.sed
2818
2819# expand $ac_aux_dir to an absolute path
2820am_aux_dir=`cd $ac_aux_dir && pwd`
2821
2822test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2823# Use eval to expand $SHELL
2824if eval "$MISSING --run true"; then
2825 am_missing_run="$MISSING --run "
2826else
2827 am_missing_run=
2828 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2829echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2830fi
2831
2832if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2833 # We used to keeping the `.' as first argument, in order to
2834 # allow $(mkdir_p) to be used without argument. As in
2835 # $(mkdir_p) $(somedir)
2836 # where $(somedir) is conditionally defined. However this is wrong
2837 # for two reasons:
2838 # 1. if the package is installed by a user who cannot write `.'
2839 # make install will fail,
2840 # 2. the above comment should most certainly read
2841 # $(mkdir_p) $(DESTDIR)$(somedir)
2842 # so it does not work when $(somedir) is undefined and
2843 # $(DESTDIR) is not.
2844 # To support the latter case, we have to write
2845 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2846 # so the `.' trick is pointless.
2847 mkdir_p='mkdir -p --'
2848else
2849 # On NextStep and OpenStep, the `mkdir' command does not
2850 # recognize any option. It will interpret all options as
2851 # directories to create, and then abort because `.' already
2852 # exists.
2853 for d in ./-p ./--version;
2854 do
2855 test -d $d && rmdir $d
2856 done
2857 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2858 if test -f "$ac_aux_dir/mkinstalldirs"; then
2859 mkdir_p='$(mkinstalldirs)'
2860 else
2861 mkdir_p='$(install_sh) -d'
2862 fi
2863fi
2864
2865for ac_prog in gawk mawk nawk awk
2866do
2867 # Extract the first word of "$ac_prog", so it can be a program name with args.
2868set dummy $ac_prog; ac_word=$2
2869echo "$as_me:$LINENO: checking for $ac_word" >&5
2870echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2871if test "${ac_cv_prog_AWK+set}" = set; then
2872 echo $ECHO_N "(cached) $ECHO_C" >&6
2873else
2874 if test -n "$AWK"; then
2875 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2876else
2877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2878for as_dir in $PATH
2879do
2880 IFS=$as_save_IFS
2881 test -z "$as_dir" && as_dir=.
2882 for ac_exec_ext in '' $ac_executable_extensions; do
2883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2884 ac_cv_prog_AWK="$ac_prog"
2885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2886 break 2
2887 fi
2888done
2889done
2890
2891fi
2892fi
2893AWK=$ac_cv_prog_AWK
2894if test -n "$AWK"; then
2895 echo "$as_me:$LINENO: result: $AWK" >&5
2896echo "${ECHO_T}$AWK" >&6
2897else
2898 echo "$as_me:$LINENO: result: no" >&5
2899echo "${ECHO_T}no" >&6
2900fi
2901
2902 test -n "$AWK" && break
2903done
2904
2905echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2906echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2907set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2908if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2909 echo $ECHO_N "(cached) $ECHO_C" >&6
2910else
2911 cat >conftest.make <<\_ACEOF
2912all:
2913 @echo 'ac_maketemp="$(MAKE)"'
2914_ACEOF
2915# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2916eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2917if test -n "$ac_maketemp"; then
2918 eval ac_cv_prog_make_${ac_make}_set=yes
2919else
2920 eval ac_cv_prog_make_${ac_make}_set=no
2921fi
2922rm -f conftest.make
2923fi
2924if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2925 echo "$as_me:$LINENO: result: yes" >&5
2926echo "${ECHO_T}yes" >&6
2927 SET_MAKE=
2928else
2929 echo "$as_me:$LINENO: result: no" >&5
2930echo "${ECHO_T}no" >&6
2931 SET_MAKE="MAKE=${MAKE-make}"
2932fi
2933
2934rm -rf .tst 2>/dev/null
2935mkdir .tst 2>/dev/null
2936if test -d .tst; then
2937 am__leading_dot=.
2938else
2939 am__leading_dot=_
2940fi
2941rmdir .tst 2>/dev/null
2942
2943DEPDIR="${am__leading_dot}deps"
2944
2945 ac_config_commands="$ac_config_commands depfiles"
2946
2947
2948am_make=${MAKE-make}
2949cat > confinc << 'END'
2950am__doit:
2951 @echo done
2952.PHONY: am__doit
2953END
2954# If we don't find an include directive, just comment out the code.
2955echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2956echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2957am__include="#"
2958am__quote=
2959_am_result=none
2960# First try GNU make style include.
2961echo "include confinc" > confmf
2962# We grep out `Entering directory' and `Leaving directory'
2963# messages which can occur if `w' ends up in MAKEFLAGS.
2964# In particular we don't look at `^make:' because GNU make might
2965# be invoked under some other name (usually "gmake"), in which
2966# case it prints its new name instead of `make'.
2967if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2968 am__include=include
2969 am__quote=
2970 _am_result=GNU
2971fi
2972# Now try BSD make style include.
2973if test "$am__include" = "#"; then
2974 echo '.include "confinc"' > confmf
2975 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2976 am__include=.include
2977 am__quote="\""
2978 _am_result=BSD
2979 fi
2980fi
2981
2982
2983echo "$as_me:$LINENO: result: $_am_result" >&5
2984echo "${ECHO_T}$_am_result" >&6
2985rm -f confinc confmf
2986
2987# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2988if test "${enable_dependency_tracking+set}" = set; then
2989 enableval="$enable_dependency_tracking"
2990
2991fi;
2992if test "x$enable_dependency_tracking" != xno; then
2993 am_depcomp="$ac_aux_dir/depcomp"
2994 AMDEPBACKSLASH='\'
2995fi
2996
2997
2998if test "x$enable_dependency_tracking" != xno; then
2999 AMDEP_TRUE=
3000 AMDEP_FALSE='#'
3001else
3002 AMDEP_TRUE='#'
3003 AMDEP_FALSE=
3004fi
3005
3006
3007
3008# test to see if srcdir already configured
3009if test "`cd $srcdir && pwd`" != "`pwd`" &&
3010 test -f $srcdir/config.status; then
3011 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3012echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3013 { (exit 1); exit 1; }; }
3014fi
3015
3016# test whether we have cygpath
3017if test -z "$CYGPATH_W"; then
3018 if (cygpath --version) >/dev/null 2>/dev/null; then
3019 CYGPATH_W='cygpath -w'
3020 else
3021 CYGPATH_W=echo
3022 fi
3023fi
3024
3025
3026# Define the identity of the package.
3027 PACKAGE=binutils
3028 VERSION=${BFD_VERSION}
3029
3030
3031cat >>confdefs.h <<_ACEOF
3032#define PACKAGE "$PACKAGE"
3033_ACEOF
3034
3035
3036cat >>confdefs.h <<_ACEOF
3037#define VERSION "$VERSION"
3038_ACEOF
3039
3040# Some tools Automake needs.
3041
3042ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3043
3044
3045AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3046
3047
3048AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3049
3050
3051AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3052
3053
3054MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3055
3056install_sh=${install_sh-"$am_aux_dir/install-sh"}
3057
3058# Installed binaries are usually stripped using `strip' when the user
3059# run `make install-strip'. However `strip' might not be the right
3060# tool to use in cross-compilation environments, therefore Automake
3061# will honor the `STRIP' environment variable to overrule this program.
3062if test "$cross_compiling" != no; then
3063 if test -n "$ac_tool_prefix"; then
3064 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3065set dummy ${ac_tool_prefix}strip; ac_word=$2
3066echo "$as_me:$LINENO: checking for $ac_word" >&5
3067echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3068if test "${ac_cv_prog_STRIP+set}" = set; then
3069 echo $ECHO_N "(cached) $ECHO_C" >&6
3070else
3071 if test -n "$STRIP"; then
3072 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3073else
3074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3075for as_dir in $PATH
3076do
3077 IFS=$as_save_IFS
3078 test -z "$as_dir" && as_dir=.
3079 for ac_exec_ext in '' $ac_executable_extensions; do
3080 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3081 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3083 break 2
3084 fi
3085done
3086done
3087
252b5132 3088fi
42ecbf5e
DJ
3089fi
3090STRIP=$ac_cv_prog_STRIP
3091if test -n "$STRIP"; then
3092 echo "$as_me:$LINENO: result: $STRIP" >&5
3093echo "${ECHO_T}$STRIP" >&6
d15b04bd 3094else
42ecbf5e
DJ
3095 echo "$as_me:$LINENO: result: no" >&5
3096echo "${ECHO_T}no" >&6
d15b04bd 3097fi
d15b04bd 3098
42ecbf5e
DJ
3099fi
3100if test -z "$ac_cv_prog_STRIP"; then
3101 ac_ct_STRIP=$STRIP
3102 # Extract the first word of "strip", so it can be a program name with args.
3103set dummy strip; ac_word=$2
3104echo "$as_me:$LINENO: checking for $ac_word" >&5
3105echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3106if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3107 echo $ECHO_N "(cached) $ECHO_C" >&6
d15b04bd 3108else
42ecbf5e
DJ
3109 if test -n "$ac_ct_STRIP"; then
3110 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
252b5132 3111else
42ecbf5e
DJ
3112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3113for as_dir in $PATH
3114do
3115 IFS=$as_save_IFS
3116 test -z "$as_dir" && as_dir=.
3117 for ac_exec_ext in '' $ac_executable_extensions; do
3118 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3119 ac_cv_prog_ac_ct_STRIP="strip"
3120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3121 break 2
3122 fi
3123done
3124done
3125
3126 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
252b5132 3127fi
252b5132 3128fi
42ecbf5e
DJ
3129ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3130if test -n "$ac_ct_STRIP"; then
3131 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3132echo "${ECHO_T}$ac_ct_STRIP" >&6
252b5132 3133else
42ecbf5e
DJ
3134 echo "$as_me:$LINENO: result: no" >&5
3135echo "${ECHO_T}no" >&6
252b5132
RH
3136fi
3137
42ecbf5e
DJ
3138 STRIP=$ac_ct_STRIP
3139else
3140 STRIP="$ac_cv_prog_STRIP"
3141fi
252b5132 3142
42ecbf5e
DJ
3143fi
3144INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
252b5132 3145
42ecbf5e
DJ
3146# We need awk for the "check" target. The system "awk" is bad on
3147# some platforms.
3148# Always define AMTAR for backward compatibility.
252b5132 3149
42ecbf5e 3150AMTAR=${AMTAR-"${am_missing_run}tar"}
252b5132 3151
42ecbf5e 3152am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
252b5132
RH
3153
3154
3155
252b5132 3156
42ecbf5e
DJ
3157depcc="$CC" am_compiler_list=
3158
3159echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3160echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3161if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3162 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3163else
42ecbf5e
DJ
3164 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3165 # We make a subdir and do the tests there. Otherwise we can end up
3166 # making bogus files that we don't know about and never remove. For
3167 # instance it was reported that on HP-UX the gcc test will end up
3168 # making a dummy file named `D' -- because `-MD' means `put the output
3169 # in D'.
3170 mkdir conftest.dir
3171 # Copy depcomp to subdir because otherwise we won't find it if we're
3172 # using a relative directory.
3173 cp "$am_depcomp" conftest.dir
3174 cd conftest.dir
3175 # We will build objects and dependencies in a subdirectory because
3176 # it helps to detect inapplicable dependency modes. For instance
3177 # both Tru64's cc and ICC support -MD to output dependencies as a
3178 # side effect of compilation, but ICC will put the dependencies in
3179 # the current directory while Tru64 will put them in the object
3180 # directory.
3181 mkdir sub
252b5132 3182
42ecbf5e
DJ
3183 am_cv_CC_dependencies_compiler_type=none
3184 if test "$am_compiler_list" = ""; then
3185 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3186 fi
3187 for depmode in $am_compiler_list; do
3188 # Setup a source with many dependencies, because some compilers
3189 # like to wrap large dependency lists on column 80 (with \), and
3190 # we should not choose a depcomp mode which is confused by this.
3191 #
3192 # We need to recreate these files for each test, as the compiler may
3193 # overwrite some of them when testing with obscure command lines.
3194 # This happens at least with the AIX C compiler.
3195 : > sub/conftest.c
3196 for i in 1 2 3 4 5 6; do
3197 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3198 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3199 # Solaris 8's {/usr,}/bin/sh.
3200 touch sub/conftst$i.h
3201 done
3202 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3203
3204 case $depmode in
3205 nosideeffect)
3206 # after this tag, mechanisms are not by side-effect, so they'll
3207 # only be used when explicitly requested
3208 if test "x$enable_dependency_tracking" = xyes; then
3209 continue
3210 else
3211 break
3212 fi
3213 ;;
3214 none) break ;;
3215 esac
3216 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3217 # mode. It turns out that the SunPro C++ compiler does not properly
3218 # handle `-M -o', and we need to detect this.
3219 if depmode=$depmode \
3220 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3221 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3222 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3223 >/dev/null 2>conftest.err &&
3224 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3225 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3226 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3227 # icc doesn't choke on unknown options, it will just issue warnings
3228 # or remarks (even with -Werror). So we grep stderr for any message
3229 # that says an option was ignored or not supported.
3230 # When given -MP, icc 7.0 and 7.1 complain thusly:
3231 # icc: Command line warning: ignoring option '-M'; no argument required
3232 # The diagnosis changed in icc 8.0:
3233 # icc: Command line remark: option '-MP' not supported
3234 if (grep 'ignoring option' conftest.err ||
3235 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3236 am_cv_CC_dependencies_compiler_type=$depmode
3237 break
3238 fi
3239 fi
3240 done
3241
3242 cd ..
3243 rm -rf conftest.dir
252b5132 3244else
42ecbf5e 3245 am_cv_CC_dependencies_compiler_type=none
252b5132
RH
3246fi
3247
252b5132 3248fi
42ecbf5e
DJ
3249echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3250echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3251CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3252
3253
252b5132 3254
42ecbf5e
DJ
3255if
3256 test "x$enable_dependency_tracking" != xno \
3257 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3258 am__fastdepCC_TRUE=
3259 am__fastdepCC_FALSE='#'
252b5132 3260else
42ecbf5e
DJ
3261 am__fastdepCC_TRUE='#'
3262 am__fastdepCC_FALSE=
252b5132
RH
3263fi
3264
3265
3266
42ecbf5e 3267
d45dc31f
SE
3268ac_ext=c
3269ac_cpp='$CPP $CPPFLAGS'
3270ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3271ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3272ac_compiler_gnu=$ac_cv_c_compiler_gnu
3273if test -n "$ac_tool_prefix"; then
3274 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3275set dummy ${ac_tool_prefix}gcc; ac_word=$2
3276echo "$as_me:$LINENO: checking for $ac_word" >&5
3277echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3278if test "${ac_cv_prog_CC+set}" = set; then
3279 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3280else
d45dc31f
SE
3281 if test -n "$CC"; then
3282 ac_cv_prog_CC="$CC" # Let the user override the test.
1a09a22c 3283else
d45dc31f
SE
3284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3285for as_dir in $PATH
3286do
3287 IFS=$as_save_IFS
3288 test -z "$as_dir" && as_dir=.
3289 for ac_exec_ext in '' $ac_executable_extensions; do
3290 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3291 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3293 break 2
3294 fi
3295done
3296done
ceae3e33 3297
d45dc31f
SE
3298fi
3299fi
3300CC=$ac_cv_prog_CC
3301if test -n "$CC"; then
3302 echo "$as_me:$LINENO: result: $CC" >&5
3303echo "${ECHO_T}$CC" >&6
252b5132 3304else
d45dc31f
SE
3305 echo "$as_me:$LINENO: result: no" >&5
3306echo "${ECHO_T}no" >&6
252b5132 3307fi
d45dc31f
SE
3308
3309fi
3310if test -z "$ac_cv_prog_CC"; then
3311 ac_ct_CC=$CC
3312 # Extract the first word of "gcc", so it can be a program name with args.
3313set dummy gcc; ac_word=$2
3314echo "$as_me:$LINENO: checking for $ac_word" >&5
3315echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3316if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
42ecbf5e 3317 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3318else
d45dc31f
SE
3319 if test -n "$ac_ct_CC"; then
3320 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
252b5132 3321else
d45dc31f
SE
3322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3323for as_dir in $PATH
3324do
3325 IFS=$as_save_IFS
3326 test -z "$as_dir" && as_dir=.
3327 for ac_exec_ext in '' $ac_executable_extensions; do
3328 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3329 ac_cv_prog_ac_ct_CC="gcc"
3330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3331 break 2
3332 fi
3333done
3334done
3335
252b5132
RH
3336fi
3337fi
d45dc31f
SE
3338ac_ct_CC=$ac_cv_prog_ac_ct_CC
3339if test -n "$ac_ct_CC"; then
3340 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3341echo "${ECHO_T}$ac_ct_CC" >&6
252b5132 3342else
42ecbf5e
DJ
3343 echo "$as_me:$LINENO: result: no" >&5
3344echo "${ECHO_T}no" >&6
252b5132 3345fi
d45dc31f
SE
3346
3347 CC=$ac_ct_CC
3348else
3349 CC="$ac_cv_prog_CC"
3350fi
3351
3352if test -z "$CC"; then
3353 if test -n "$ac_tool_prefix"; then
3354 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3355set dummy ${ac_tool_prefix}cc; ac_word=$2
3356echo "$as_me:$LINENO: checking for $ac_word" >&5
3357echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3358if test "${ac_cv_prog_CC+set}" = set; then
42ecbf5e 3359 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3360else
d45dc31f
SE
3361 if test -n "$CC"; then
3362 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 3363else
d45dc31f
SE
3364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3365for as_dir in $PATH
3366do
3367 IFS=$as_save_IFS
3368 test -z "$as_dir" && as_dir=.
3369 for ac_exec_ext in '' $ac_executable_extensions; do
3370 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3371 ac_cv_prog_CC="${ac_tool_prefix}cc"
3372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3373 break 2
3374 fi
3375done
3376done
3377
252b5132
RH
3378fi
3379fi
d45dc31f
SE
3380CC=$ac_cv_prog_CC
3381if test -n "$CC"; then
3382 echo "$as_me:$LINENO: result: $CC" >&5
3383echo "${ECHO_T}$CC" >&6
ac48eca1 3384else
d45dc31f
SE
3385 echo "$as_me:$LINENO: result: no" >&5
3386echo "${ECHO_T}no" >&6
ac48eca1 3387fi
ac48eca1 3388
d45dc31f
SE
3389fi
3390if test -z "$ac_cv_prog_CC"; then
3391 ac_ct_CC=$CC
3392 # Extract the first word of "cc", so it can be a program name with args.
3393set dummy cc; ac_word=$2
3394echo "$as_me:$LINENO: checking for $ac_word" >&5
3395echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3396if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
42ecbf5e 3397 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3398else
d45dc31f
SE
3399 if test -n "$ac_ct_CC"; then
3400 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
252b5132 3401else
d45dc31f
SE
3402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3403for as_dir in $PATH
3404do
3405 IFS=$as_save_IFS
3406 test -z "$as_dir" && as_dir=.
3407 for ac_exec_ext in '' $ac_executable_extensions; do
3408 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3409 ac_cv_prog_ac_ct_CC="cc"
3410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3411 break 2
3412 fi
3413done
3414done
3415
252b5132 3416fi
d45dc31f
SE
3417fi
3418ac_ct_CC=$ac_cv_prog_ac_ct_CC
3419if test -n "$ac_ct_CC"; then
3420 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3421echo "${ECHO_T}$ac_ct_CC" >&6
3422else
3423 echo "$as_me:$LINENO: result: no" >&5
3424echo "${ECHO_T}no" >&6
252b5132
RH
3425fi
3426
d45dc31f
SE
3427 CC=$ac_ct_CC
3428else
3429 CC="$ac_cv_prog_CC"
3430fi
252b5132 3431
d45dc31f
SE
3432fi
3433if test -z "$CC"; then
3434 # Extract the first word of "cc", so it can be a program name with args.
3435set dummy cc; ac_word=$2
3436echo "$as_me:$LINENO: checking for $ac_word" >&5
3437echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3438if test "${ac_cv_prog_CC+set}" = set; then
3439 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3440else
d45dc31f
SE
3441 if test -n "$CC"; then
3442 ac_cv_prog_CC="$CC" # Let the user override the test.
3443else
3444 ac_prog_rejected=no
3445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3446for as_dir in $PATH
3447do
3448 IFS=$as_save_IFS
3449 test -z "$as_dir" && as_dir=.
3450 for ac_exec_ext in '' $ac_executable_extensions; do
3451 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3452 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3453 ac_prog_rejected=yes
3454 continue
3455 fi
3456 ac_cv_prog_CC="cc"
3457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3458 break 2
3459 fi
3460done
3461done
3462
3463if test $ac_prog_rejected = yes; then
3464 # We found a bogon in the path, so make sure we never use it.
3465 set dummy $ac_cv_prog_CC
3466 shift
3467 if test $# != 0; then
3468 # We chose a different compiler from the bogus one.
3469 # However, it has the same basename, so the bogon will be chosen
3470 # first if we set CC to just the basename; use the full file name.
3471 shift
3472 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3473 fi
3474fi
3475fi
3476fi
3477CC=$ac_cv_prog_CC
3478if test -n "$CC"; then
3479 echo "$as_me:$LINENO: result: $CC" >&5
3480echo "${ECHO_T}$CC" >&6
3481else
3482 echo "$as_me:$LINENO: result: no" >&5
3483echo "${ECHO_T}no" >&6
252b5132
RH
3484fi
3485
d45dc31f
SE
3486fi
3487if test -z "$CC"; then
3488 if test -n "$ac_tool_prefix"; then
3489 for ac_prog in cl
3490 do
3491 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3492set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3493echo "$as_me:$LINENO: checking for $ac_word" >&5
3494echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3495if test "${ac_cv_prog_CC+set}" = set; then
42ecbf5e 3496 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3497else
d45dc31f
SE
3498 if test -n "$CC"; then
3499 ac_cv_prog_CC="$CC" # Let the user override the test.
3500else
3501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3502for as_dir in $PATH
3503do
3504 IFS=$as_save_IFS
3505 test -z "$as_dir" && as_dir=.
3506 for ac_exec_ext in '' $ac_executable_extensions; do
3507 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3508 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3510 break 2
3511 fi
3512done
3513done
ac48eca1 3514
d45dc31f
SE
3515fi
3516fi
3517CC=$ac_cv_prog_CC
3518if test -n "$CC"; then
3519 echo "$as_me:$LINENO: result: $CC" >&5
3520echo "${ECHO_T}$CC" >&6
3521else
3522 echo "$as_me:$LINENO: result: no" >&5
3523echo "${ECHO_T}no" >&6
3524fi
ac48eca1 3525
d45dc31f
SE
3526 test -n "$CC" && break
3527 done
3528fi
3529if test -z "$CC"; then
3530 ac_ct_CC=$CC
3531 for ac_prog in cl
3532do
3533 # Extract the first word of "$ac_prog", so it can be a program name with args.
3534set dummy $ac_prog; ac_word=$2
3535echo "$as_me:$LINENO: checking for $ac_word" >&5
3536echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3537if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3538 echo $ECHO_N "(cached) $ECHO_C" >&6
3539else
3540 if test -n "$ac_ct_CC"; then
3541 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3542else
3543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3544for as_dir in $PATH
3545do
3546 IFS=$as_save_IFS
3547 test -z "$as_dir" && as_dir=.
3548 for ac_exec_ext in '' $ac_executable_extensions; do
3549 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3550 ac_cv_prog_ac_ct_CC="$ac_prog"
3551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3552 break 2
3553 fi
3554done
3555done
ac48eca1 3556
d45dc31f
SE
3557fi
3558fi
3559ac_ct_CC=$ac_cv_prog_ac_ct_CC
3560if test -n "$ac_ct_CC"; then
3561 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3562echo "${ECHO_T}$ac_ct_CC" >&6
3563else
3564 echo "$as_me:$LINENO: result: no" >&5
3565echo "${ECHO_T}no" >&6
3566fi
ac48eca1 3567
d45dc31f
SE
3568 test -n "$ac_ct_CC" && break
3569done
ac48eca1 3570
d45dc31f
SE
3571 CC=$ac_ct_CC
3572fi
ac48eca1
AO
3573
3574fi
ac48eca1 3575
ac48eca1 3576
7a283e07
RW
3577test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3578echo "$as_me: error: in \`$ac_pwd':" >&2;}
3579{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
d45dc31f
SE
3580See \`config.log' for more details." >&5
3581echo "$as_me: error: no acceptable C compiler found in \$PATH
3582See \`config.log' for more details." >&2;}
7a283e07 3583 { (exit 1); exit 1; }; }; }
ac48eca1 3584
d45dc31f
SE
3585# Provide some information about the compiler.
3586echo "$as_me:$LINENO:" \
3587 "checking for C compiler version" >&5
3588ac_compiler=`set X $ac_compile; echo $2`
3589{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3590 (eval $ac_compiler --version </dev/null >&5) 2>&5
3591 ac_status=$?
3592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593 (exit $ac_status); }
3594{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3595 (eval $ac_compiler -v </dev/null >&5) 2>&5
3596 ac_status=$?
3597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598 (exit $ac_status); }
3599{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3600 (eval $ac_compiler -V </dev/null >&5) 2>&5
3601 ac_status=$?
3602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603 (exit $ac_status); }
ac48eca1 3604
d45dc31f
SE
3605echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3606echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3607if test "${ac_cv_c_compiler_gnu+set}" = set; then
bdcfeba5
NC
3608 echo $ECHO_N "(cached) $ECHO_C" >&6
3609else
d45dc31f
SE
3610 cat >conftest.$ac_ext <<_ACEOF
3611/* confdefs.h. */
3612_ACEOF
3613cat confdefs.h >>conftest.$ac_ext
3614cat >>conftest.$ac_ext <<_ACEOF
3615/* end confdefs.h. */
bdcfeba5 3616
d45dc31f
SE
3617int
3618main ()
3619{
3620#ifndef __GNUC__
3621 choke me
3622#endif
bdcfeba5 3623
d45dc31f
SE
3624 ;
3625 return 0;
3626}
3627_ACEOF
3628rm -f conftest.$ac_objext
3629if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3630 (eval $ac_compile) 2>conftest.er1
3631 ac_status=$?
3632 grep -v '^ *+' conftest.er1 >conftest.err
3633 rm -f conftest.er1
3634 cat conftest.err >&5
3635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636 (exit $ac_status); } &&
3637 { ac_try='test -z "$ac_c_werror_flag"
3638 || test ! -s conftest.err'
3639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3640 (eval $ac_try) 2>&5
3641 ac_status=$?
3642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643 (exit $ac_status); }; } &&
3644 { ac_try='test -s conftest.$ac_objext'
3645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3646 (eval $ac_try) 2>&5
3647 ac_status=$?
3648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649 (exit $ac_status); }; }; then
3650 ac_compiler_gnu=yes
3651else
3652 echo "$as_me: failed program was:" >&5
3653sed 's/^/| /' conftest.$ac_ext >&5
bdcfeba5 3654
d45dc31f 3655ac_compiler_gnu=no
bdcfeba5 3656fi
d45dc31f
SE
3657rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3658ac_cv_c_compiler_gnu=$ac_compiler_gnu
bdcfeba5 3659
bdcfeba5 3660fi
d45dc31f
SE
3661echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3662echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3663GCC=`test $ac_compiler_gnu = yes && echo yes`
3664ac_test_CFLAGS=${CFLAGS+set}
3665ac_save_CFLAGS=$CFLAGS
3666CFLAGS="-g"
3667echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3668echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3669if test "${ac_cv_prog_cc_g+set}" = set; then
42ecbf5e 3670 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3671else
d45dc31f
SE
3672 cat >conftest.$ac_ext <<_ACEOF
3673/* confdefs.h. */
3674_ACEOF
3675cat confdefs.h >>conftest.$ac_ext
3676cat >>conftest.$ac_ext <<_ACEOF
3677/* end confdefs.h. */
ac48eca1 3678
d45dc31f
SE
3679int
3680main ()
3681{
ac48eca1 3682
d45dc31f
SE
3683 ;
3684 return 0;
3685}
3686_ACEOF
3687rm -f conftest.$ac_objext
3688if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3689 (eval $ac_compile) 2>conftest.er1
3690 ac_status=$?
3691 grep -v '^ *+' conftest.er1 >conftest.err
3692 rm -f conftest.er1
3693 cat conftest.err >&5
3694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3695 (exit $ac_status); } &&
3696 { ac_try='test -z "$ac_c_werror_flag"
3697 || test ! -s conftest.err'
3698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3699 (eval $ac_try) 2>&5
3700 ac_status=$?
3701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702 (exit $ac_status); }; } &&
3703 { ac_try='test -s conftest.$ac_objext'
3704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3705 (eval $ac_try) 2>&5
3706 ac_status=$?
3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); }; }; then
3709 ac_cv_prog_cc_g=yes
ac48eca1 3710else
d45dc31f
SE
3711 echo "$as_me: failed program was:" >&5
3712sed 's/^/| /' conftest.$ac_ext >&5
ac48eca1 3713
d45dc31f 3714ac_cv_prog_cc_g=no
ac48eca1 3715fi
d45dc31f 3716rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ac48eca1 3717fi
d45dc31f
SE
3718echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3719echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3720if test "$ac_test_CFLAGS" = set; then
3721 CFLAGS=$ac_save_CFLAGS
3722elif test $ac_cv_prog_cc_g = yes; then
3723 if test "$GCC" = yes; then
3724 CFLAGS="-g -O2"
ac48eca1 3725 else
d45dc31f 3726 CFLAGS="-g"
42ecbf5e 3727 fi
ac48eca1 3728else
d45dc31f
SE
3729 if test "$GCC" = yes; then
3730 CFLAGS="-O2"
3731 else
3732 CFLAGS=
42ecbf5e 3733 fi
ac48eca1 3734fi
d45dc31f
SE
3735echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3736echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3737if test "${ac_cv_prog_cc_stdc+set}" = set; then
3738 echo $ECHO_N "(cached) $ECHO_C" >&6
3739else
3740 ac_cv_prog_cc_stdc=no
3741ac_save_CC=$CC
3742cat >conftest.$ac_ext <<_ACEOF
42ecbf5e
DJ
3743/* confdefs.h. */
3744_ACEOF
3745cat confdefs.h >>conftest.$ac_ext
3746cat >>conftest.$ac_ext <<_ACEOF
3747/* end confdefs.h. */
d45dc31f
SE
3748#include <stdarg.h>
3749#include <stdio.h>
3750#include <sys/types.h>
3751#include <sys/stat.h>
3752/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3753struct buf { int x; };
3754FILE * (*rcsopen) (struct buf *, struct stat *, int);
3755static char *e (p, i)
3756 char **p;
3757 int i;
3758{
3759 return p[i];
3760}
3761static char *f (char * (*g) (char **, int), char **p, ...)
3762{
3763 char *s;
3764 va_list v;
3765 va_start (v,p);
3766 s = g (p, va_arg (v,int));
3767 va_end (v);
3768 return s;
3769}
3770
3771/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3772 function prototypes and stuff, but not '\xHH' hex character constants.
3773 These don't provoke an error unfortunately, instead are silently treated
3774 as 'x'. The following induces an error, until -std1 is added to get
3775 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3776 array size at least. It's necessary to write '\x00'==0 to get something
3777 that's true only with -std1. */
3778int osf4_cc_array ['\x00' == 0 ? 1 : -1];
252b5132 3779
d45dc31f
SE
3780int test (int i, double x);
3781struct s1 {int (*f) (int a);};
3782struct s2 {int (*f) (double a);};
3783int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3784int argc;
3785char **argv;
42ecbf5e
DJ
3786int
3787main ()
3788{
d45dc31f 3789return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
42ecbf5e
DJ
3790 ;
3791 return 0;
3792}
3793_ACEOF
d45dc31f
SE
3794# Don't try gcc -ansi; that turns off useful extensions and
3795# breaks some systems' header files.
3796# AIX -qlanglvl=ansi
3797# Ultrix and OSF/1 -std1
3798# HP-UX 10.20 and later -Ae
3799# HP-UX older versions -Aa -D_HPUX_SOURCE
3800# SVR4 -Xc -D__EXTENSIONS__
3801for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3802do
3803 CC="$ac_save_CC $ac_arg"
3804 rm -f conftest.$ac_objext
3805if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3806 (eval $ac_compile) 2>conftest.er1
42ecbf5e
DJ
3807 ac_status=$?
3808 grep -v '^ *+' conftest.er1 >conftest.err
3809 rm -f conftest.er1
3810 cat conftest.err >&5
3811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812 (exit $ac_status); } &&
b7d4af3a
JW
3813 { ac_try='test -z "$ac_c_werror_flag"
3814 || test ! -s conftest.err'
42ecbf5e
DJ
3815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3816 (eval $ac_try) 2>&5
3817 ac_status=$?
3818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819 (exit $ac_status); }; } &&
d45dc31f 3820 { ac_try='test -s conftest.$ac_objext'
42ecbf5e
DJ
3821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3822 (eval $ac_try) 2>&5
3823 ac_status=$?
3824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825 (exit $ac_status); }; }; then
d45dc31f
SE
3826 ac_cv_prog_cc_stdc=$ac_arg
3827break
252b5132 3828else
42ecbf5e
DJ
3829 echo "$as_me: failed program was:" >&5
3830sed 's/^/| /' conftest.$ac_ext >&5
3831
252b5132 3832fi
d45dc31f
SE
3833rm -f conftest.err conftest.$ac_objext
3834done
3835rm -f conftest.$ac_ext conftest.$ac_objext
3836CC=$ac_save_CC
ac48eca1 3837
252b5132 3838fi
252b5132 3839
d45dc31f
SE
3840case "x$ac_cv_prog_cc_stdc" in
3841 x|xno)
3842 echo "$as_me:$LINENO: result: none needed" >&5
3843echo "${ECHO_T}none needed" >&6 ;;
3844 *)
3845 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3846echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3847 CC="$CC $ac_cv_prog_cc_stdc" ;;
252b5132
RH
3848esac
3849
d45dc31f
SE
3850# Some people use a C++ compiler to compile C. Since we use `exit',
3851# in C++ we need to declare it. In case someone uses the same compiler
3852# for both compiling C and C++ we need to have the C++ compiler decide
3853# the declaration of exit, since it's the most demanding environment.
3854cat >conftest.$ac_ext <<_ACEOF
3855#ifndef __cplusplus
3856 choke me
3857#endif
42ecbf5e 3858_ACEOF
d45dc31f
SE
3859rm -f conftest.$ac_objext
3860if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3861 (eval $ac_compile) 2>conftest.er1
3862 ac_status=$?
3863 grep -v '^ *+' conftest.er1 >conftest.err
3864 rm -f conftest.er1
3865 cat conftest.err >&5
3866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867 (exit $ac_status); } &&
3868 { ac_try='test -z "$ac_c_werror_flag"
3869 || test ! -s conftest.err'
3870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3871 (eval $ac_try) 2>&5
3872 ac_status=$?
3873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874 (exit $ac_status); }; } &&
3875 { ac_try='test -s conftest.$ac_objext'
3876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3877 (eval $ac_try) 2>&5
3878 ac_status=$?
3879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3880 (exit $ac_status); }; }; then
3881 for ac_declaration in \
3882 '' \
3883 'extern "C" void std::exit (int) throw (); using std::exit;' \
3884 'extern "C" void std::exit (int); using std::exit;' \
3885 'extern "C" void exit (int) throw ();' \
3886 'extern "C" void exit (int);' \
3887 'void exit (int);'
3888do
3889 cat >conftest.$ac_ext <<_ACEOF
3890/* confdefs.h. */
3891_ACEOF
3892cat confdefs.h >>conftest.$ac_ext
3893cat >>conftest.$ac_ext <<_ACEOF
3894/* end confdefs.h. */
3895$ac_declaration
3896#include <stdlib.h>
3897int
3898main ()
42ecbf5e 3899{
d45dc31f
SE
3900exit (42);
3901 ;
3902 return 0;
3903}
3904_ACEOF
3905rm -f conftest.$ac_objext
3906if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3907 (eval $ac_compile) 2>conftest.er1
3908 ac_status=$?
3909 grep -v '^ *+' conftest.er1 >conftest.err
3910 rm -f conftest.er1
3911 cat conftest.err >&5
3912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913 (exit $ac_status); } &&
3914 { ac_try='test -z "$ac_c_werror_flag"
3915 || test ! -s conftest.err'
3916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3917 (eval $ac_try) 2>&5
3918 ac_status=$?
3919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920 (exit $ac_status); }; } &&
3921 { ac_try='test -s conftest.$ac_objext'
3922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3923 (eval $ac_try) 2>&5
3924 ac_status=$?
3925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926 (exit $ac_status); }; }; then
3927 :
3928else
3929 echo "$as_me: failed program was:" >&5
3930sed 's/^/| /' conftest.$ac_ext >&5
252b5132 3931
d45dc31f
SE
3932continue
3933fi
3934rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3935 cat >conftest.$ac_ext <<_ACEOF
3936/* confdefs.h. */
3937_ACEOF
3938cat confdefs.h >>conftest.$ac_ext
3939cat >>conftest.$ac_ext <<_ACEOF
3940/* end confdefs.h. */
3941$ac_declaration
3942int
3943main ()
3944{
3945exit (42);
3946 ;
3947 return 0;
3948}
3949_ACEOF
3950rm -f conftest.$ac_objext
3951if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3952 (eval $ac_compile) 2>conftest.er1
3953 ac_status=$?
3954 grep -v '^ *+' conftest.er1 >conftest.err
3955 rm -f conftest.er1
3956 cat conftest.err >&5
3957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3958 (exit $ac_status); } &&
3959 { ac_try='test -z "$ac_c_werror_flag"
3960 || test ! -s conftest.err'
3961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3962 (eval $ac_try) 2>&5
3963 ac_status=$?
3964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965 (exit $ac_status); }; } &&
3966 { ac_try='test -s conftest.$ac_objext'
3967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3968 (eval $ac_try) 2>&5
3969 ac_status=$?
3970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971 (exit $ac_status); }; }; then
3972 break
3973else
3974 echo "$as_me: failed program was:" >&5
3975sed 's/^/| /' conftest.$ac_ext >&5
252b5132 3976
d45dc31f
SE
3977fi
3978rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3979done
3980rm -f conftest*
3981if test -n "$ac_declaration"; then
3982 echo '#ifdef __cplusplus' >>confdefs.h
3983 echo $ac_declaration >>confdefs.h
3984 echo '#endif' >>confdefs.h
3985fi
ac48eca1 3986
d45dc31f
SE
3987else
3988 echo "$as_me: failed program was:" >&5
3989sed 's/^/| /' conftest.$ac_ext >&5
42ecbf5e 3990
d45dc31f
SE
3991fi
3992rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3993ac_ext=c
3994ac_cpp='$CPP $CPPFLAGS'
3995ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3996ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3997ac_compiler_gnu=$ac_cv_c_compiler_gnu
42ecbf5e
DJ
3998
3999
d45dc31f
SE
4000cat >>confdefs.h <<\_ACEOF
4001#define _GNU_SOURCE 1
4002_ACEOF
42ecbf5e 4003
ac48eca1 4004
d7040cdb
SE
4005
4006
4007macro_version='2.1a'
4008macro_revision='1.2435'
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021ltmain="$ac_aux_dir/ltmain.sh"
4022
4023# Set options
4024
4025enable_dlopen=no
4026
4027
4028enable_win32_dll=no
4029
4030
d45dc31f
SE
4031# Check whether --enable-shared or --disable-shared was given.
4032if test "${enable_shared+set}" = set; then
4033 enableval="$enable_shared"
4034 p=${PACKAGE-default}
d7040cdb
SE
4035 case $enableval in
4036 yes) enable_shared=yes ;;
4037 no) enable_shared=no ;;
4038 *)
4039 enable_shared=no
4040 # Look at the argument we got. We use all the common list separators.
4041 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4042 for pkg in $enableval; do
4043 IFS="$lt_save_ifs"
4044 if test "X$pkg" = "X$p"; then
4045 enable_shared=yes
4046 fi
4047 done
4048 IFS="$lt_save_ifs"
4049 ;;
4050 esac
d45dc31f
SE
4051else
4052 enable_shared=yes
4053fi;
d7040cdb
SE
4054
4055
4056
4057
4058
4059
4060
4061
d45dc31f
SE
4062# Check whether --enable-static or --disable-static was given.
4063if test "${enable_static+set}" = set; then
4064 enableval="$enable_static"
4065 p=${PACKAGE-default}
d7040cdb
SE
4066 case $enableval in
4067 yes) enable_static=yes ;;
4068 no) enable_static=no ;;
4069 *)
4070 enable_static=no
4071 # Look at the argument we got. We use all the common list separators.
4072 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4073 for pkg in $enableval; do
4074 IFS="$lt_save_ifs"
4075 if test "X$pkg" = "X$p"; then
4076 enable_static=yes
4077 fi
4078 done
4079 IFS="$lt_save_ifs"
4080 ;;
4081 esac
d45dc31f
SE
4082else
4083 enable_static=yes
4084fi;
d7040cdb
SE
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094# Check whether --with-pic or --without-pic was given.
4095if test "${with_pic+set}" = set; then
4096 withval="$with_pic"
4097 pic_mode="$withval"
4098else
4099 pic_mode=default
4100fi;
4101
4102test -z "$pic_mode" && pic_mode=default
4103
4104
4105
4106
4107
4108
4109
d45dc31f
SE
4110# Check whether --enable-fast-install or --disable-fast-install was given.
4111if test "${enable_fast_install+set}" = set; then
4112 enableval="$enable_fast_install"
4113 p=${PACKAGE-default}
d7040cdb
SE
4114 case $enableval in
4115 yes) enable_fast_install=yes ;;
4116 no) enable_fast_install=no ;;
4117 *)
4118 enable_fast_install=no
4119 # Look at the argument we got. We use all the common list separators.
4120 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4121 for pkg in $enableval; do
4122 IFS="$lt_save_ifs"
4123 if test "X$pkg" = "X$p"; then
4124 enable_fast_install=yes
4125 fi
4126 done
4127 IFS="$lt_save_ifs"
4128 ;;
4129 esac
d45dc31f
SE
4130else
4131 enable_fast_install=yes
42ecbf5e 4132fi;
ad22bfe8 4133
d7040cdb
SE
4134
4135
4136
4137
4138
4139
4140
4141echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4142echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4143if test "${lt_cv_path_SED+set}" = set; then
4144 echo $ECHO_N "(cached) $ECHO_C" >&6
4145else
4146 # Loop through the user's path and test for sed and gsed.
4147# Then use that list of sed's as ones to test for truncation.
4148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4149for as_dir in $PATH
4150do
4151 IFS=$as_save_IFS
4152 test -z "$as_dir" && as_dir=.
4153 for lt_ac_prog in sed gsed; do
4154 for ac_exec_ext in '' $ac_executable_extensions; do
4155 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4156 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4157 fi
4158 done
4159 done
4160done
4161IFS=$as_save_IFS
4162lt_ac_max=0
4163lt_ac_count=0
4164# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4165# along with /bin/sed that truncates output.
4166for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4167 test ! -f $lt_ac_sed && continue
4168 cat /dev/null > conftest.in
4169 lt_ac_count=0
4170 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4171 # Check for GNU sed and select it if it is found.
4172 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4173 lt_cv_path_SED=$lt_ac_sed
4174 break
4175 fi
4176 while true; do
4177 cat conftest.in conftest.in >conftest.tmp
4178 mv conftest.tmp conftest.in
4179 cp conftest.in conftest.nl
4180 echo >>conftest.nl
4181 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4182 cmp -s conftest.out conftest.nl || break
4183 # 10000 chars as input seems more than enough
4184 test $lt_ac_count -gt 10 && break
4185 lt_ac_count=`expr $lt_ac_count + 1`
4186 if test $lt_ac_count -gt $lt_ac_max; then
4187 lt_ac_max=$lt_ac_count
4188 lt_cv_path_SED=$lt_ac_sed
4189 fi
4190 done
4191done
4192
4193fi
4194
4195SED=$lt_cv_path_SED
4196
4197echo "$as_me:$LINENO: result: $SED" >&5
4198echo "${ECHO_T}$SED" >&6
4199
4200test -z "$SED" && SED=sed
4201Xsed="$SED -e 1s/^X//"
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213echo "$as_me:$LINENO: checking for egrep" >&5
4214echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4215if test "${ac_cv_prog_egrep+set}" = set; then
4216 echo $ECHO_N "(cached) $ECHO_C" >&6
4217else
4218 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4219 then ac_cv_prog_egrep='grep -E'
4220 else ac_cv_prog_egrep='egrep'
4221 fi
4222fi
4223echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4224echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4225 EGREP=$ac_cv_prog_egrep
4226
4227
4228echo "$as_me:$LINENO: checking for fgrep" >&5
4229echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4230if test "${ac_cv_prog_fgrep+set}" = set; then
4231 echo $ECHO_N "(cached) $ECHO_C" >&6
4232else
4233 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4234 then ac_cv_prog_fgrep='grep -F'
4235 else ac_cv_prog_fgrep='fgrep'
4236 fi
4237fi
4238echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4239echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4240 FGREP=$ac_cv_prog_fgrep
4241
4242
4243test -z "$GREP" && GREP=grep
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
d45dc31f
SE
4263# Check whether --with-gnu-ld or --without-gnu-ld was given.
4264if test "${with_gnu_ld+set}" = set; then
4265 withval="$with_gnu_ld"
4266 test "$withval" = no || with_gnu_ld=yes
4267else
4268 with_gnu_ld=no
42ecbf5e 4269fi;
d45dc31f
SE
4270ac_prog=ld
4271if test "$GCC" = yes; then
4272 # Check if gcc -print-prog-name=ld gives a path.
d7040cdb
SE
4273 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4274echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
d45dc31f
SE
4275 case $host in
4276 *-*-mingw*)
4277 # gcc leaves a trailing carriage return which upsets mingw
4278 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4279 *)
4280 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4281 esac
4282 case $ac_prog in
4283 # Accept absolute paths.
d7040cdb 4284 [\\/]* | ?:[\\/]*)
d45dc31f 4285 re_direlt='/[^/][^/]*/\.\./'
d7040cdb
SE
4286 # Canonicalize the pathname of ld
4287 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4288 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4289 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
d45dc31f
SE
4290 done
4291 test -z "$LD" && LD="$ac_prog"
4292 ;;
4293 "")
4294 # If it fails, then pretend we aren't using GCC.
4295 ac_prog=ld
4296 ;;
4297 *)
4298 # If it is relative, then search for the first ld in PATH.
4299 with_gnu_ld=unknown
4300 ;;
4301 esac
4302elif test "$with_gnu_ld" = yes; then
4303 echo "$as_me:$LINENO: checking for GNU ld" >&5
4304echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4305else
4306 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4307echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4308fi
4309if test "${lt_cv_path_LD+set}" = set; then
4310 echo $ECHO_N "(cached) $ECHO_C" >&6
4311else
4312 if test -z "$LD"; then
d7040cdb 4313 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
d45dc31f 4314 for ac_dir in $PATH; do
d7040cdb 4315 IFS="$lt_save_ifs"
d45dc31f
SE
4316 test -z "$ac_dir" && ac_dir=.
4317 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4318 lt_cv_path_LD="$ac_dir/$ac_prog"
4319 # Check to see if the program is GNU ld. I'd rather use --version,
d7040cdb 4320 # but apparently some variants of GNU ld only accept -v.
d45dc31f 4321 # Break only if it was the GNU/non-GNU ld that we prefer.
d7040cdb
SE
4322 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4323 *GNU* | *'with BFD'*)
d45dc31f 4324 test "$with_gnu_ld" != no && break
d7040cdb
SE
4325 ;;
4326 *)
d45dc31f 4327 test "$with_gnu_ld" != yes && break
d7040cdb
SE
4328 ;;
4329 esac
d45dc31f
SE
4330 fi
4331 done
d7040cdb 4332 IFS="$lt_save_ifs"
d45dc31f
SE
4333else
4334 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4335fi
4336fi
1ad12f97 4337
d45dc31f
SE
4338LD="$lt_cv_path_LD"
4339if test -n "$LD"; then
4340 echo "$as_me:$LINENO: result: $LD" >&5
4341echo "${ECHO_T}$LD" >&6
4342else
4343 echo "$as_me:$LINENO: result: no" >&5
4344echo "${ECHO_T}no" >&6
4345fi
4346test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4347echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4348 { (exit 1); exit 1; }; }
4349echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4350echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4351if test "${lt_cv_prog_gnu_ld+set}" = set; then
4352 echo $ECHO_N "(cached) $ECHO_C" >&6
4353else
d7040cdb
SE
4354 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4355case `$LD -v 2>&1 </dev/null` in
4356*GNU* | *'with BFD'*)
d45dc31f 4357 lt_cv_prog_gnu_ld=yes
d7040cdb
SE
4358 ;;
4359*)
d45dc31f 4360 lt_cv_prog_gnu_ld=no
d7040cdb
SE
4361 ;;
4362esac
d45dc31f
SE
4363fi
4364echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4365echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4366with_gnu_ld=$lt_cv_prog_gnu_ld
569acd2c 4367
d45dc31f 4368
42ecbf5e 4369
d7040cdb
SE
4370
4371
4372
4373
4374
4375
4376
4377echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4378echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
d45dc31f
SE
4379if test "${lt_cv_path_NM+set}" = set; then
4380 echo $ECHO_N "(cached) $ECHO_C" >&6
4381else
4382 if test -n "$NM"; then
4383 # Let the user override the test.
4384 lt_cv_path_NM="$NM"
4385else
d7040cdb
SE
4386 lt_nm_to_check="${ac_tool_prefix}nm"
4387 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4388 lt_nm_to_check="$lt_nm_to_check nm"
4389 fi
4390 for lt_tmp_nm in $lt_nm_to_check; do
4391 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4392 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4393 IFS="$lt_save_ifs"
4394 test -z "$ac_dir" && ac_dir=.
4395 tmp_nm="$ac_dir/$lt_tmp_nm"
4396 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4397 # Check to see if the nm accepts a BSD-compat flag.
4398 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4399 # nm: unknown option "B" ignored
4400 # Tru64's nm complains that /dev/null is an invalid object file
4401 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4402 */dev/null* | *'Invalid file or object type'*)
4403 lt_cv_path_NM="$tmp_nm -B"
4404 break
4405 ;;
4406 *)
4407 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4408 */dev/null*)
4409 lt_cv_path_NM="$tmp_nm -p"
4410 break
4411 ;;
4412 *)
4413 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4414 continue # so that we can try to find one that supports BSD flags
4415 ;;
4416 esac
4417 ;;
4418 esac
d45dc31f 4419 fi
d7040cdb
SE
4420 done
4421 IFS="$lt_save_ifs"
d45dc31f 4422 done
d7040cdb 4423 : ${lt_cv_path_NM=no}
d45dc31f 4424fi
a541e3ce 4425fi
d7040cdb
SE
4426echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4427echo "${ECHO_T}$lt_cv_path_NM" >&6
4428if test "$lt_cv_path_NM" != "no"; then
4429 NM="$lt_cv_path_NM"
d45dc31f 4430else
d7040cdb
SE
4431 # Didn't find any BSD compatible name lister, look for dumpbin.
4432 if test -n "$ac_tool_prefix"; then
4433 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4434 do
4435 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4436set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4437echo "$as_me:$LINENO: checking for $ac_word" >&5
4438echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4439if test "${ac_cv_prog_DUMPBIN+set}" = set; then
d45dc31f
SE
4440 echo $ECHO_N "(cached) $ECHO_C" >&6
4441else
d7040cdb
SE
4442 if test -n "$DUMPBIN"; then
4443 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4444else
4445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4446for as_dir in $PATH
4447do
4448 IFS=$as_save_IFS
4449 test -z "$as_dir" && as_dir=.
4450 for ac_exec_ext in '' $ac_executable_extensions; do
4451 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4452 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4454 break 2
4455 fi
4456done
4457done
398ee8f1 4458
d7040cdb
SE
4459fi
4460fi
4461DUMPBIN=$ac_cv_prog_DUMPBIN
4462if test -n "$DUMPBIN"; then
4463 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4464echo "${ECHO_T}$DUMPBIN" >&6
4465else
4466 echo "$as_me:$LINENO: result: no" >&5
4467echo "${ECHO_T}no" >&6
4468fi
d15b04bd 4469
d7040cdb
SE
4470 test -n "$DUMPBIN" && break
4471 done
4472fi
4473if test -z "$DUMPBIN"; then
4474 ac_ct_DUMPBIN=$DUMPBIN
4475 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4476do
4477 # Extract the first word of "$ac_prog", so it can be a program name with args.
4478set dummy $ac_prog; ac_word=$2
4479echo "$as_me:$LINENO: checking for $ac_word" >&5
4480echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4481if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4482 echo $ECHO_N "(cached) $ECHO_C" >&6
4483else
4484 if test -n "$ac_ct_DUMPBIN"; then
4485 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4486else
4487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4488for as_dir in $PATH
4489do
4490 IFS=$as_save_IFS
4491 test -z "$as_dir" && as_dir=.
4492 for ac_exec_ext in '' $ac_executable_extensions; do
4493 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4494 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4496 break 2
d45dc31f 4497 fi
d7040cdb
SE
4498done
4499done
d15b04bd 4500
d7040cdb
SE
4501fi
4502fi
4503ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4504if test -n "$ac_ct_DUMPBIN"; then
4505 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4506echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4507else
4508 echo "$as_me:$LINENO: result: no" >&5
4509echo "${ECHO_T}no" >&6
4510fi
42ecbf5e 4511
d7040cdb
SE
4512 test -n "$ac_ct_DUMPBIN" && break
4513done
4514test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
d45dc31f 4515
d7040cdb
SE
4516 DUMPBIN=$ac_ct_DUMPBIN
4517fi
d45dc31f 4518
d45dc31f 4519
d7040cdb
SE
4520 if test "$DUMPBIN" != ":"; then
4521 NM="$DUMPBIN"
42ecbf5e 4522 fi
d7040cdb
SE
4523fi
4524test -z "$NM" && NM=nm
d45dc31f 4525
42ecbf5e 4526
d15b04bd 4527
42ecbf5e 4528
d45dc31f 4529
42ecbf5e 4530
d7040cdb
SE
4531echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4532echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4533if test "${lt_cv_nm_interface+set}" = set; then
4534 echo $ECHO_N "(cached) $ECHO_C" >&6
4535else
4536 lt_cv_nm_interface="BSD nm"
4537 echo "int some_variable = 0;" > conftest.$ac_ext
7a283e07 4538 (eval echo "\"\$as_me:4538: $ac_compile\"" >&5)
d7040cdb
SE
4539 (eval "$ac_compile" 2>conftest.err)
4540 cat conftest.err >&5
7a283e07 4541 (eval echo "\"\$as_me:4541: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
d7040cdb
SE
4542 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4543 cat conftest.err >&5
7a283e07 4544 (eval echo "\"\$as_me:4544: output\"" >&5)
d7040cdb
SE
4545 cat conftest.out >&5
4546 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4547 lt_cv_nm_interface="MS dumpbin"
4548 fi
4549 rm -f conftest*
42ecbf5e 4550fi
d7040cdb
SE
4551echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4552echo "${ECHO_T}$lt_cv_nm_interface" >&6
42ecbf5e 4553
d7040cdb
SE
4554echo "$as_me:$LINENO: checking whether ln -s works" >&5
4555echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4556LN_S=$as_ln_s
4557if test "$LN_S" = "ln -s"; then
4558 echo "$as_me:$LINENO: result: yes" >&5
4559echo "${ECHO_T}yes" >&6
4560else
4561 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4562echo "${ECHO_T}no, using $LN_S" >&6
4563fi
d45dc31f
SE
4564
4565# find the maximum length of command line arguments
4566echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4567echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4568if test "${lt_cv_sys_max_cmd_len+set}" = set; then
42ecbf5e
DJ
4569 echo $ECHO_N "(cached) $ECHO_C" >&6
4570else
d45dc31f
SE
4571 i=0
4572 teststring="ABCD"
4573
4574 case $build_os in
4575 msdosdjgpp*)
4576 # On DJGPP, this test can blow up pretty badly due to problems in libc
4577 # (any single argument exceeding 2000 bytes causes a buffer overrun
4578 # during glob expansion). Even if it were fixed, the result of this
4579 # check would be larger than it should be.
4580 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4581 ;;
4582
d7040cdb
SE
4583 gnu*)
4584 # Under GNU Hurd, this test is not required because there is
4585 # no limit to the length of command line arguments.
4586 # Libtool will interpret -1 as no limit whatsoever
4587 lt_cv_sys_max_cmd_len=-1;
4588 ;;
4589
d45dc31f
SE
4590 cygwin* | mingw*)
4591 # On Win9x/ME, this test blows up -- it succeeds, but takes
4592 # about 5 minutes as the teststring grows exponentially.
4593 # Worse, since 9x/ME are not pre-emptively multitasking,
4594 # you end up with a "frozen" computer, even though with patience
4595 # the test eventually succeeds (with a max line length of 256k).
4596 # Instead, let's just punt: use the minimum linelength reported by
4597 # all of the supported platforms: 8192 (on NT/2K/XP).
4598 lt_cv_sys_max_cmd_len=8192;
4599 ;;
4600
4601 amigaos*)
4602 # On AmigaOS with pdksh, this test takes hours, literally.
4603 # So we just punt and use a minimum line length of 8192.
4604 lt_cv_sys_max_cmd_len=8192;
4605 ;;
4606
4607 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4608 # This has been around since 386BSD, at least. Likely further.
4609 if test -x /sbin/sysctl; then
4610 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4611 elif test -x /usr/sbin/sysctl; then
4612 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4613 else
d7040cdb 4614 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
d45dc31f
SE
4615 fi
4616 # And add a safety zone
4617 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4618 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4619 ;;
d7040cdb
SE
4620
4621 interix*)
4622 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4623 lt_cv_sys_max_cmd_len=196608
4624 ;;
4625
4626 osf*)
4627 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4628 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4629 # nice to cause kernel panics so lets avoid the loop below.
4630 # First set a reasonable default.
4631 lt_cv_sys_max_cmd_len=16384
4632 #
4633 if test -x /sbin/sysconfig; then
4634 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4635 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4636 esac
4637 fi
4638 ;;
4639 sco3.2v5*)
4640 lt_cv_sys_max_cmd_len=102400
4641 ;;
4642 sysv5* | sco5v6* | sysv4.2uw2*)
4643 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4644 if test -n "$kargmax"; then
4645 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4646 else
4647 lt_cv_sys_max_cmd_len=32768
4648 fi
4649 ;;
4650 *)
5ba684e2
NC
4651 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
4652 if test -n $lt_cv_sys_max_cmd_len; then
4653 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4654 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4655 else
4656 # Make teststring a little bigger before we do anything with it.
4657 # a 1K string should be a reasonable start.
4658 for i in 1 2 3 4 5 6 7 8 ; do
4659 teststring=$teststring$teststring
4660 done
4661 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4662 # If test is not a shell built-in, we'll probably end up computing a
4663 # maximum length that is only half of the actual maximum length, but
4664 # we can't tell.
4665 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4666 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4667 test $i != 17 # 1/2 MB should be enough
4668 do
4669 i=`expr $i + 1`
4670 teststring=$teststring$teststring
4671 done
4672 # Only check the string length outside the loop.
4673 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4674 teststring=
4675 # Add a significant safety factor because C++ compilers can tack on
4676 # massive amounts of additional arguments before passing them to the
4677 # linker. It appears as though 1/2 is a usable value.
4678 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4679 fi
d7040cdb 4680 ;;
d45dc31f 4681 esac
42ecbf5e 4682
42ecbf5e
DJ
4683fi
4684
d7040cdb 4685if test -n $lt_cv_sys_max_cmd_len ; then
d45dc31f
SE
4686 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4687echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
252b5132 4688else
d45dc31f
SE
4689 echo "$as_me:$LINENO: result: none" >&5
4690echo "${ECHO_T}none" >&6
252b5132 4691fi
d7040cdb 4692max_cmd_len=$lt_cv_sys_max_cmd_len
e5a52504 4693
d45dc31f 4694
42ecbf5e 4695
d45dc31f 4696
d45dc31f 4697
d7040cdb
SE
4698
4699
4700: ${CP="cp -f"}
4701: ${MV="mv -f"}
4702: ${RM="rm -f"}
4703
4704echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4705echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4706# Try some XSI features
4707xsi_shell=no
4708( _lt_dummy="a/b/c"
4709 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4710 = c,a/b,, ) >/dev/null 2>&1 \
4711 && xsi_shell=yes
4712echo "$as_me:$LINENO: result: $xsi_shell" >&5
4713echo "${ECHO_T}$xsi_shell" >&6
4714
4715
4716echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4717echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4718lt_shell_append=no
4719( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4720 >/dev/null 2>&1 \
4721 && lt_shell_append=yes
4722echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4723echo "${ECHO_T}$lt_shell_append" >&6
4724
4725
4726if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4727 lt_unset=unset
252b5132 4728else
d7040cdb 4729 lt_unset=false
252b5132
RH
4730fi
4731
d7040cdb
SE
4732
4733
4734
4735
4736# test EBCDIC or ASCII
4737case `echo X|tr X '\101'` in
4738 A) # ASCII based system
4739 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4740 lt_SP2NL='tr \040 \012'
4741 lt_NL2SP='tr \015\012 \040\040'
4742 ;;
4743 *) # EBCDIC based system
4744 lt_SP2NL='tr \100 \n'
4745 lt_NL2SP='tr \r\n \100\100'
4746 ;;
4747esac
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4758echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4759if test "${lt_cv_ld_reload_flag+set}" = set; then
42ecbf5e 4760 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 4761else
d7040cdb
SE
4762 lt_cv_ld_reload_flag='-r'
4763fi
4764echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4765echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4766reload_flag=$lt_cv_ld_reload_flag
4767case $reload_flag in
4768"" | " "*) ;;
4769*) reload_flag=" $reload_flag" ;;
4770esac
4771reload_cmds='$LD$reload_flag -o $output$reload_objs'
4772case $host_os in
4773 darwin*)
4774 if test "$GCC" = yes; then
4775 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4776 else
4777 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4778 fi
4779 ;;
4780esac
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4792echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4793if test "${lt_cv_deplibs_check_method+set}" = set; then
4794 echo $ECHO_N "(cached) $ECHO_C" >&6
4795else
4796 lt_cv_file_magic_cmd='$MAGIC_CMD'
4797lt_cv_file_magic_test_file=
4798lt_cv_deplibs_check_method='unknown'
4799# Need to set the preceding variable on all platforms that support
4800# interlibrary dependencies.
4801# 'none' -- dependencies not supported.
4802# `unknown' -- same as none, but documents that we really don't know.
4803# 'pass_all' -- all dependencies passed with no checks.
4804# 'test_compile' -- check by making test program.
4805# 'file_magic [[regex]]' -- check by looking for files in library path
4806# which responds to the $file_magic_cmd with a given extended regex.
4807# If you have `file' or equivalent on your system and you're not sure
4808# whether `pass_all' will *always* work, you probably want this one.
4809
4810case $host_os in
50e7d84b 4811aix[4-9]*)
d7040cdb
SE
4812 lt_cv_deplibs_check_method=pass_all
4813 ;;
4814
4815beos*)
4816 lt_cv_deplibs_check_method=pass_all
4817 ;;
4818
4819bsdi[45]*)
4820 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4821 lt_cv_file_magic_cmd='/usr/bin/file -L'
4822 lt_cv_file_magic_test_file=/shlib/libc.so
4823 ;;
4824
4825cygwin*)
4826 # func_win32_libid is a shell function defined in ltmain.sh
4827 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4828 lt_cv_file_magic_cmd='func_win32_libid'
4829 ;;
4830
4831mingw* | pw32*)
4832 # Base MSYS/MinGW do not provide the 'file' command needed by
4833 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4834 # unless we find 'file', for example because we are cross-compiling.
4835 if ( file / ) >/dev/null 2>&1; then
4836 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4837 lt_cv_file_magic_cmd='func_win32_libid'
4838 else
4839 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4840 lt_cv_file_magic_cmd='$OBJDUMP -f'
4841 fi
4842 ;;
4843
4844darwin* | rhapsody*)
4845 lt_cv_deplibs_check_method=pass_all
d45dc31f 4846 ;;
d7040cdb
SE
4847
4848freebsd* | dragonfly*)
4849 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4850 case $host_cpu in
4851 i*86 )
4852 # Not sure whether the presence of OpenBSD here was a mistake.
4853 # Let's accept both of them until this is cleared up.
4854 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4855 lt_cv_file_magic_cmd=/usr/bin/file
4856 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4857 ;;
4858 esac
4859 else
4860 lt_cv_deplibs_check_method=pass_all
4861 fi
4862 ;;
4863
4864gnu*)
4865 lt_cv_deplibs_check_method=pass_all
d45dc31f 4866 ;;
d7040cdb
SE
4867
4868hpux10.20* | hpux11*)
4869 lt_cv_file_magic_cmd=/usr/bin/file
4870 case $host_cpu in
4871 ia64*)
4872 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4873 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4874 ;;
4875 hppa*64*)
4876 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]'
4877 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4878 ;;
d45dc31f 4879 *)
d7040cdb
SE
4880 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4881 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4882 ;;
4883 esac
4884 ;;
42ecbf5e 4885
d7040cdb
SE
4886interix[3-9]*)
4887 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4888 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4889 ;;
42ecbf5e 4890
d7040cdb
SE
4891irix5* | irix6* | nonstopux*)
4892 case $LD in
4893 *-32|*"-32 ") libmagic=32-bit;;
4894 *-n32|*"-n32 ") libmagic=N32;;
4895 *-64|*"-64 ") libmagic=64-bit;;
4896 *) libmagic=never-match;;
4897 esac
4898 lt_cv_deplibs_check_method=pass_all
d45dc31f 4899 ;;
42ecbf5e 4900
d7040cdb
SE
4901# This must be Linux ELF.
4902linux* | k*bsd*-gnu)
4903 lt_cv_deplibs_check_method=pass_all
4904 ;;
252b5132 4905
d7040cdb
SE
4906netbsd*)
4907 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4908 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
d45dc31f 4909 else
d7040cdb 4910 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
d45dc31f 4911 fi
d7040cdb
SE
4912 ;;
4913
4914newos6*)
4915 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4916 lt_cv_file_magic_cmd=/usr/bin/file
4917 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4918 ;;
4919
4920*nto* | *qnx*)
4921 lt_cv_deplibs_check_method=pass_all
4922 ;;
42ecbf5e 4923
d7040cdb
SE
4924openbsd*)
4925 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4926 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4927 else
4928 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
d45dc31f
SE
4929 fi
4930 ;;
d7040cdb
SE
4931
4932osf3* | osf4* | osf5*)
4933 lt_cv_deplibs_check_method=pass_all
4934 ;;
4935
4936rdos*)
4937 lt_cv_deplibs_check_method=pass_all
4938 ;;
4939
4940solaris*)
4941 lt_cv_deplibs_check_method=pass_all
4942 ;;
4943
4944sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4945 lt_cv_deplibs_check_method=pass_all
4946 ;;
4947
4948sysv4 | sysv4.3*)
4949 case $host_vendor in
4950 motorola)
4951 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]'
4952 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4953 ;;
4954 ncr)
4955 lt_cv_deplibs_check_method=pass_all
4956 ;;
4957 sequent)
4958 lt_cv_file_magic_cmd='/bin/file'
4959 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4960 ;;
4961 sni)
4962 lt_cv_file_magic_cmd='/bin/file'
4963 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4964 lt_cv_file_magic_test_file=/lib/libc.so
4965 ;;
4966 siemens)
4967 lt_cv_deplibs_check_method=pass_all
4968 ;;
4969 pc)
4970 lt_cv_deplibs_check_method=pass_all
4971 ;;
4972 esac
4973 ;;
4974
4975tpf*)
4976 lt_cv_deplibs_check_method=pass_all
4977 ;;
d45dc31f 4978esac
42ecbf5e 4979
d7040cdb
SE
4980fi
4981echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4982echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4983file_magic_cmd=$lt_cv_file_magic_cmd
4984deplibs_check_method=$lt_cv_deplibs_check_method
4985test -z "$deplibs_check_method" && deplibs_check_method=unknown
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
d45dc31f 4998if test -n "$ac_tool_prefix"; then
d7040cdb
SE
4999 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5000set dummy ${ac_tool_prefix}ar; ac_word=$2
d45dc31f
SE
5001echo "$as_me:$LINENO: checking for $ac_word" >&5
5002echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d7040cdb 5003if test "${ac_cv_prog_AR+set}" = set; then
d45dc31f 5004 echo $ECHO_N "(cached) $ECHO_C" >&6
42ecbf5e 5005else
d7040cdb
SE
5006 if test -n "$AR"; then
5007 ac_cv_prog_AR="$AR" # Let the user override the test.
d45dc31f
SE
5008else
5009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5010for as_dir in $PATH
5011do
5012 IFS=$as_save_IFS
5013 test -z "$as_dir" && as_dir=.
5014 for ac_exec_ext in '' $ac_executable_extensions; do
5015 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 5016 ac_cv_prog_AR="${ac_tool_prefix}ar"
d45dc31f
SE
5017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5018 break 2
5019 fi
5020done
5021done
42ecbf5e 5022
42ecbf5e 5023fi
d45dc31f 5024fi
d7040cdb
SE
5025AR=$ac_cv_prog_AR
5026if test -n "$AR"; then
5027 echo "$as_me:$LINENO: result: $AR" >&5
5028echo "${ECHO_T}$AR" >&6
d45dc31f
SE
5029else
5030 echo "$as_me:$LINENO: result: no" >&5
5031echo "${ECHO_T}no" >&6
5032fi
42ecbf5e
DJ
5033
5034fi
d7040cdb
SE
5035if test -z "$ac_cv_prog_AR"; then
5036 ac_ct_AR=$AR
5037 # Extract the first word of "ar", so it can be a program name with args.
5038set dummy ar; ac_word=$2
d45dc31f
SE
5039echo "$as_me:$LINENO: checking for $ac_word" >&5
5040echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d7040cdb 5041if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
42ecbf5e
DJ
5042 echo $ECHO_N "(cached) $ECHO_C" >&6
5043else
d7040cdb
SE
5044 if test -n "$ac_ct_AR"; then
5045 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
42ecbf5e 5046else
d45dc31f
SE
5047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5048for as_dir in $PATH
5049do
5050 IFS=$as_save_IFS
5051 test -z "$as_dir" && as_dir=.
5052 for ac_exec_ext in '' $ac_executable_extensions; do
5053 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 5054 ac_cv_prog_ac_ct_AR="ar"
d45dc31f
SE
5055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5056 break 2
5057 fi
5058done
5059done
42ecbf5e 5060
d7040cdb 5061 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
42ecbf5e 5062fi
42ecbf5e 5063fi
d7040cdb
SE
5064ac_ct_AR=$ac_cv_prog_ac_ct_AR
5065if test -n "$ac_ct_AR"; then
5066 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5067echo "${ECHO_T}$ac_ct_AR" >&6
252b5132 5068else
d45dc31f
SE
5069 echo "$as_me:$LINENO: result: no" >&5
5070echo "${ECHO_T}no" >&6
252b5132 5071fi
252b5132 5072
d7040cdb 5073 AR=$ac_ct_AR
d45dc31f 5074else
d7040cdb 5075 AR="$ac_cv_prog_AR"
d45dc31f 5076fi
42ecbf5e 5077
d7040cdb
SE
5078test -z "$AR" && AR=ar
5079test -z "$AR_FLAGS" && AR_FLAGS=cru
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
d45dc31f
SE
5091if test -n "$ac_tool_prefix"; then
5092 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5093set dummy ${ac_tool_prefix}strip; ac_word=$2
5094echo "$as_me:$LINENO: checking for $ac_word" >&5
5095echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5096if test "${ac_cv_prog_STRIP+set}" = set; then
5097 echo $ECHO_N "(cached) $ECHO_C" >&6
5098else
5099 if test -n "$STRIP"; then
5100 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5101else
5102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5103for as_dir in $PATH
42ecbf5e 5104do
d45dc31f
SE
5105 IFS=$as_save_IFS
5106 test -z "$as_dir" && as_dir=.
5107 for ac_exec_ext in '' $ac_executable_extensions; do
5108 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5109 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5111 break 2
5112 fi
5113done
5114done
5115
5116fi
5117fi
5118STRIP=$ac_cv_prog_STRIP
5119if test -n "$STRIP"; then
5120 echo "$as_me:$LINENO: result: $STRIP" >&5
5121echo "${ECHO_T}$STRIP" >&6
252b5132 5122else
d45dc31f
SE
5123 echo "$as_me:$LINENO: result: no" >&5
5124echo "${ECHO_T}no" >&6
5125fi
42ecbf5e 5126
252b5132 5127fi
d45dc31f
SE
5128if test -z "$ac_cv_prog_STRIP"; then
5129 ac_ct_STRIP=$STRIP
5130 # Extract the first word of "strip", so it can be a program name with args.
5131set dummy strip; ac_word=$2
5132echo "$as_me:$LINENO: checking for $ac_word" >&5
5133echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5134if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5135 echo $ECHO_N "(cached) $ECHO_C" >&6
5136else
5137 if test -n "$ac_ct_STRIP"; then
5138 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5139else
5140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5141for as_dir in $PATH
5142do
5143 IFS=$as_save_IFS
5144 test -z "$as_dir" && as_dir=.
5145 for ac_exec_ext in '' $ac_executable_extensions; do
5146 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5147 ac_cv_prog_ac_ct_STRIP="strip"
5148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5149 break 2
5150 fi
5151done
42ecbf5e 5152done
42ecbf5e 5153
d45dc31f
SE
5154 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5155fi
5156fi
5157ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5158if test -n "$ac_ct_STRIP"; then
5159 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5160echo "${ECHO_T}$ac_ct_STRIP" >&6
5161else
5162 echo "$as_me:$LINENO: result: no" >&5
5163echo "${ECHO_T}no" >&6
252b5132 5164fi
e5a52504 5165
d45dc31f
SE
5166 STRIP=$ac_ct_STRIP
5167else
5168 STRIP="$ac_cv_prog_STRIP"
5169fi
e5a52504 5170
d7040cdb 5171test -z "$STRIP" && STRIP=:
d45dc31f 5172
d45dc31f
SE
5173
5174
d45dc31f 5175
d45dc31f
SE
5176
5177
d7040cdb
SE
5178if test -n "$ac_tool_prefix"; then
5179 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5180set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5181echo "$as_me:$LINENO: checking for $ac_word" >&5
5182echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5183if test "${ac_cv_prog_RANLIB+set}" = set; then
5184 echo $ECHO_N "(cached) $ECHO_C" >&6
d45dc31f 5185else
d7040cdb
SE
5186 if test -n "$RANLIB"; then
5187 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5188else
5189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5190for as_dir in $PATH
5191do
5192 IFS=$as_save_IFS
5193 test -z "$as_dir" && as_dir=.
5194 for ac_exec_ext in '' $ac_executable_extensions; do
5195 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5196 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5198 break 2
d45dc31f 5199 fi
d7040cdb
SE
5200done
5201done
d45dc31f 5202
d7040cdb
SE
5203fi
5204fi
5205RANLIB=$ac_cv_prog_RANLIB
5206if test -n "$RANLIB"; then
5207 echo "$as_me:$LINENO: result: $RANLIB" >&5
5208echo "${ECHO_T}$RANLIB" >&6
5209else
5210 echo "$as_me:$LINENO: result: no" >&5
5211echo "${ECHO_T}no" >&6
5212fi
d45dc31f 5213
d7040cdb
SE
5214fi
5215if test -z "$ac_cv_prog_RANLIB"; then
5216 ac_ct_RANLIB=$RANLIB
5217 # Extract the first word of "ranlib", so it can be a program name with args.
5218set dummy ranlib; ac_word=$2
5219echo "$as_me:$LINENO: checking for $ac_word" >&5
5220echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5221if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5222 echo $ECHO_N "(cached) $ECHO_C" >&6
5223else
5224 if test -n "$ac_ct_RANLIB"; then
5225 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5226else
5227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5228for as_dir in $PATH
5229do
5230 IFS=$as_save_IFS
5231 test -z "$as_dir" && as_dir=.
5232 for ac_exec_ext in '' $ac_executable_extensions; do
5233 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5234 ac_cv_prog_ac_ct_RANLIB="ranlib"
5235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5236 break 2
d45dc31f 5237 fi
d7040cdb
SE
5238done
5239done
d45dc31f 5240
d7040cdb
SE
5241 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5242fi
5243fi
5244ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5245if test -n "$ac_ct_RANLIB"; then
5246 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5247echo "${ECHO_T}$ac_ct_RANLIB" >&6
d15b04bd 5248else
d7040cdb
SE
5249 echo "$as_me:$LINENO: result: no" >&5
5250echo "${ECHO_T}no" >&6
5251fi
252b5132 5252
d7040cdb
SE
5253 RANLIB=$ac_ct_RANLIB
5254else
5255 RANLIB="$ac_cv_prog_RANLIB"
5256fi
d45dc31f 5257
d7040cdb 5258test -z "$RANLIB" && RANLIB=:
d45dc31f 5259
d45dc31f 5260
d45dc31f 5261
42ecbf5e 5262
e5a52504 5263
d7040cdb
SE
5264
5265# Determine commands to create old-style static archives.
5266old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5267old_postinstall_cmds='chmod 644 $oldlib'
5268old_postuninstall_cmds=
5269
5270if test -n "$RANLIB"; then
5271 case $host_os in
5272 openbsd*)
5273 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5274 ;;
5275 *)
5276 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5277 ;;
5278 esac
5279 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
d45dc31f 5280fi
d45dc31f
SE
5281
5282
d45dc31f
SE
5283
5284
d15b04bd 5285
3e321448 5286
d45dc31f 5287
d45dc31f 5288
d45dc31f
SE
5289
5290
d45dc31f 5291
d45dc31f 5292
d45dc31f
SE
5293
5294
5295
5296
5297
5298
5299
d45dc31f 5300
d45dc31f 5301
d45dc31f 5302
d45dc31f 5303
d45dc31f 5304
d45dc31f 5305
d45dc31f 5306
d45dc31f 5307
3e321448
L
5308
5309
d45dc31f
SE
5310
5311
d45dc31f
SE
5312
5313
d45dc31f 5314
d7040cdb
SE
5315# If no C compiler was specified, use CC.
5316LTCC=${LTCC-"$CC"}
42ecbf5e 5317
d7040cdb
SE
5318# If no C compiler flags were specified, use CFLAGS.
5319LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
e5a52504 5320
d7040cdb
SE
5321# Allow CC to be a program name with arguments.
5322compiler=$CC
d15b04bd 5323
d7040cdb
SE
5324
5325# Check for command to grab the raw symbol name followed by C symbol from nm.
5326echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5327echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5328if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
42ecbf5e 5329 echo $ECHO_N "(cached) $ECHO_C" >&6
d15b04bd 5330else
d7040cdb
SE
5331
5332# These are sane defaults that work on at least a few old systems.
5333# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5334
5335# Character class describing NM global symbol codes.
5336symcode='[BCDEGRST]'
5337
5338# Regexp to match symbols that can be accessed directly from C.
5339sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5340
5341# Define system-specific variables.
5342case $host_os in
5343aix*)
5344 symcode='[BCDT]'
5345 ;;
5346cygwin* | mingw* | pw32*)
5347 symcode='[ABCDGISTW]'
5348 ;;
5349hpux*)
5350 if test "$host_cpu" = ia64; then
5351 symcode='[ABCDEGRST]'
42ecbf5e 5352 fi
d7040cdb
SE
5353 ;;
5354irix* | nonstopux*)
5355 symcode='[BCDEGRST]'
5356 ;;
5357osf*)
5358 symcode='[BCDEGQRST]'
5359 ;;
5360solaris*)
5361 symcode='[BDRT]'
5362 ;;
5363sco3.2v5*)
5364 symcode='[DT]'
5365 ;;
5366sysv4.2uw2*)
5367 symcode='[DT]'
5368 ;;
5369sysv5* | sco5v6* | unixware* | OpenUNIX*)
5370 symcode='[ABDT]'
5371 ;;
5372sysv4)
5373 symcode='[DFNSTU]'
5374 ;;
5375esac
d15b04bd 5376
d7040cdb
SE
5377# If we're using GNU nm, then use its standard symbol codes.
5378case `$NM -V 2>&1` in
5379*GNU* | *'with BFD'*)
5380 symcode='[ABCDGIRSTW]' ;;
5381esac
e5a52504 5382
d7040cdb
SE
5383# Transform an extracted symbol line into a proper C declaration.
5384# Some systems (esp. on ia64) link data and code symbols differently,
5385# so use this general approach.
5386lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
42ecbf5e 5387
d7040cdb
SE
5388# Transform an extracted symbol line into symbol name and symbol address
5389lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
42ecbf5e 5390
d7040cdb
SE
5391# Handle CRLF in mingw tool chain
5392opt_cr=
5393case $build_os in
5394mingw*)
5395 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5396 ;;
5397esac
5398
5399# Try without a prefix underscore, then with it.
5400for ac_symprfx in "" "_"; do
5401
5402 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5403 symxfrm="\\1 $ac_symprfx\\2 \\2"
5404
5405 # Write the raw and C identifiers.
5406 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5407 # Fake it for dumpbin and say T for any non-static function
5408 # and D for any global variable.
5409 # Also find C++ and __fastcall symbols from MSVC++,
5410 # which start with @ or ?.
5411 lt_cv_sys_global_symbol_pipe="$AWK '"\
5412" {last_section=section; section=\$ 3};"\
5413" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5414" \$ 0!~/External *\|/{next};"\
5415" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5416" {if(hide[section]) next};"\
5417" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5418" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5419" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5420" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5421" ' prfx=^$ac_symprfx"
5422 else
5423 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5424 fi
5425
5426 # Check to see that the pipe works correctly.
5427 pipe_works=no
5428
5429 rm -f conftest*
5430 cat > conftest.$ac_ext <<_LT_EOF
42ecbf5e 5431#ifdef __cplusplus
d7040cdb 5432extern "C" {
42ecbf5e 5433#endif
d7040cdb
SE
5434char nm_test_var;
5435void nm_test_func(void);
5436void nm_test_func(void){}
5437#ifdef __cplusplus
42ecbf5e 5438}
d7040cdb
SE
5439#endif
5440int main(){nm_test_var='a';nm_test_func();return(0);}
5441_LT_EOF
5442
5443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5444 (eval $ac_compile) 2>&5
42ecbf5e
DJ
5445 ac_status=$?
5446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
5447 (exit $ac_status); }; then
5448 # Now try to grab the symbols.
5449 nlist=conftest.nm
5450 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5451 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
42ecbf5e
DJ
5452 ac_status=$?
5453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
5454 (exit $ac_status); } && test -s "$nlist"; then
5455 # Try sorting and uniquifying the output.
5456 if sort "$nlist" | uniq > "$nlist"T; then
5457 mv -f "$nlist"T "$nlist"
5458 else
5459 rm -f "$nlist"T
5460 fi
5461
5462 # Make sure that we snagged all the symbols we need.
5463 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5464 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5465 cat <<_LT_EOF > conftest.$ac_ext
5466#ifdef __cplusplus
5467extern "C" {
5468#endif
5469
5470_LT_EOF
5471 # Now generate the symbol file.
5472 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5473
5474 cat <<_LT_EOF >> conftest.$ac_ext
5475
5476/* The mapping between symbol names and symbols. */
5477const struct {
5478 const char *name;
5479 void *address;
5480}
5481lt__PROGRAM__LTX_preloaded_symbols[] =
5482{
5483 { "@PROGRAM@", (void *) 0 },
5484_LT_EOF
5485 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5486 cat <<\_LT_EOF >> conftest.$ac_ext
5487 {0, (void *) 0}
5488};
5489
5490/* This works around a problem in FreeBSD linker */
5491#ifdef FREEBSD_WORKAROUND
5492static const void *lt_preloaded_setup() {
5493 return lt__PROGRAM__LTX_preloaded_symbols;
5494}
5495#endif
5496
5497#ifdef __cplusplus
5498}
5499#endif
5500_LT_EOF
5501 # Now try linking the two files.
5502 mv conftest.$ac_objext conftstm.$ac_objext
5503 lt_save_LIBS="$LIBS"
5504 lt_save_CFLAGS="$CFLAGS"
5505 LIBS="conftstm.$ac_objext"
5506 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5508 (eval $ac_link) 2>&5
5509 ac_status=$?
5510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5512 pipe_works=yes
5513 fi
5514 LIBS="$lt_save_LIBS"
5515 CFLAGS="$lt_save_CFLAGS"
5516 else
5517 echo "cannot find nm_test_func in $nlist" >&5
5518 fi
5519 else
5520 echo "cannot find nm_test_var in $nlist" >&5
5521 fi
5522 else
5523 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5524 fi
5525 else
5526 echo "$progname: failed program was:" >&5
5527 cat conftest.$ac_ext >&5
5528 fi
5529 rm -f conftest* conftst*
5530
5531 # Do not use the global_symbol_pipe unless it works.
5532 if test "$pipe_works" = yes; then
5533 break
5534 else
5535 lt_cv_sys_global_symbol_pipe=
5536 fi
5537done
42ecbf5e 5538
42ecbf5e 5539fi
d7040cdb
SE
5540
5541if test -z "$lt_cv_sys_global_symbol_pipe"; then
5542 lt_cv_sys_global_symbol_to_cdecl=
42ecbf5e 5543fi
d7040cdb
SE
5544if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5545 echo "$as_me:$LINENO: result: failed" >&5
5546echo "${ECHO_T}failed" >&6
42ecbf5e 5547else
d7040cdb
SE
5548 echo "$as_me:$LINENO: result: ok" >&5
5549echo "${ECHO_T}ok" >&6
5550fi
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5569if test "${enable_libtool_lock+set}" = set; then
5570 enableval="$enable_libtool_lock"
5571
5572fi;
5573test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5574
5575# Some flags need to be propagated to the compiler or linker for good
5576# libtool support.
5577case $host in
5578ia64-*-hpux*)
5579 # Find out which ABI we are using.
5580 echo 'int i;' > conftest.$ac_ext
5581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5582 (eval $ac_compile) 2>&5
5583 ac_status=$?
5584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585 (exit $ac_status); }; then
5586 case `/usr/bin/file conftest.$ac_objext` in
5587 *ELF-32*)
5588 HPUX_IA64_MODE="32"
5589 ;;
5590 *ELF-64*)
5591 HPUX_IA64_MODE="64"
5592 ;;
5593 esac
5594 fi
5595 rm -rf conftest*
5596 ;;
5597*-*-irix6*)
5598 # Find out which ABI we are using.
7a283e07 5599 echo '#line 5599 "configure"' > conftest.$ac_ext
d7040cdb
SE
5600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5601 (eval $ac_compile) 2>&5
5602 ac_status=$?
5603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604 (exit $ac_status); }; then
5605 if test "$lt_cv_prog_gnu_ld" = yes; then
5606 case `/usr/bin/file conftest.$ac_objext` in
5607 *32-bit*)
5608 LD="${LD-ld} -melf32bsmip"
5609 ;;
5610 *N32*)
5611 LD="${LD-ld} -melf32bmipn32"
5612 ;;
5613 *64-bit*)
5614 LD="${LD-ld} -melf64bmip"
5615 ;;
5616 esac
5617 else
5618 case `/usr/bin/file conftest.$ac_objext` in
5619 *32-bit*)
5620 LD="${LD-ld} -32"
5621 ;;
5622 *N32*)
5623 LD="${LD-ld} -n32"
5624 ;;
5625 *64-bit*)
5626 LD="${LD-ld} -64"
5627 ;;
5628 esac
5629 fi
5630 fi
5631 rm -rf conftest*
5632 ;;
5633
5634x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5635s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5636 # Find out which ABI we are using.
5637 echo 'int i;' > conftest.$ac_ext
5638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5639 (eval $ac_compile) 2>&5
5640 ac_status=$?
5641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642 (exit $ac_status); }; then
5643 case `/usr/bin/file conftest.o` in
5644 *32-bit*)
5645 case $host in
5646 x86_64-*kfreebsd*-gnu)
5647 LD="${LD-ld} -m elf_i386_fbsd"
5648 ;;
5649 x86_64-*linux*)
5650 LD="${LD-ld} -m elf_i386"
5651 ;;
5652 ppc64-*linux*|powerpc64-*linux*)
5653 LD="${LD-ld} -m elf32ppclinux"
5654 ;;
5655 s390x-*linux*)
5656 LD="${LD-ld} -m elf_s390"
5657 ;;
5658 sparc64-*linux*)
5659 LD="${LD-ld} -m elf32_sparc"
5660 ;;
5661 esac
5662 ;;
5663 *64-bit*)
5664 case $host in
5665 x86_64-*kfreebsd*-gnu)
5666 LD="${LD-ld} -m elf_x86_64_fbsd"
5667 ;;
5668 x86_64-*linux*)
5669 LD="${LD-ld} -m elf_x86_64"
5670 ;;
5671 ppc*-*linux*|powerpc*-*linux*)
5672 LD="${LD-ld} -m elf64ppc"
5673 ;;
5674 s390*-*linux*|s390*-*tpf*)
5675 LD="${LD-ld} -m elf64_s390"
5676 ;;
5677 sparc*-*linux*)
5678 LD="${LD-ld} -m elf64_sparc"
5679 ;;
5680 esac
5681 ;;
5682 esac
5683 fi
5684 rm -rf conftest*
5685 ;;
5686
5687*-*-sco3.2v5*)
5688 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5689 SAVE_CFLAGS="$CFLAGS"
5690 CFLAGS="$CFLAGS -belf"
5691 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5692echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5693if test "${lt_cv_cc_needs_belf+set}" = set; then
42ecbf5e
DJ
5694 echo $ECHO_N "(cached) $ECHO_C" >&6
5695else
d7040cdb
SE
5696 ac_ext=c
5697ac_cpp='$CPP $CPPFLAGS'
5698ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5699ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5700ac_compiler_gnu=$ac_cv_c_compiler_gnu
5701
5702 cat >conftest.$ac_ext <<_ACEOF
42ecbf5e
DJ
5703/* confdefs.h. */
5704_ACEOF
5705cat confdefs.h >>conftest.$ac_ext
5706cat >>conftest.$ac_ext <<_ACEOF
5707/* end confdefs.h. */
d15b04bd 5708
42ecbf5e
DJ
5709int
5710main ()
5711{
d7040cdb 5712
42ecbf5e
DJ
5713 ;
5714 return 0;
5715}
5716_ACEOF
5717rm -f conftest.$ac_objext conftest$ac_exeext
5718if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5719 (eval $ac_link) 2>conftest.er1
5720 ac_status=$?
5721 grep -v '^ *+' conftest.er1 >conftest.err
5722 rm -f conftest.er1
5723 cat conftest.err >&5
5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); } &&
b7d4af3a
JW
5726 { ac_try='test -z "$ac_c_werror_flag"
5727 || test ! -s conftest.err'
42ecbf5e
DJ
5728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5729 (eval $ac_try) 2>&5
5730 ac_status=$?
5731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732 (exit $ac_status); }; } &&
5733 { ac_try='test -s conftest$ac_exeext'
5734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5735 (eval $ac_try) 2>&5
5736 ac_status=$?
5737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738 (exit $ac_status); }; }; then
d7040cdb 5739 lt_cv_cc_needs_belf=yes
42ecbf5e
DJ
5740else
5741 echo "$as_me: failed program was:" >&5
5742sed 's/^/| /' conftest.$ac_ext >&5
5743
d7040cdb 5744lt_cv_cc_needs_belf=no
42ecbf5e
DJ
5745fi
5746rm -f conftest.err conftest.$ac_objext \
5747 conftest$ac_exeext conftest.$ac_ext
d7040cdb
SE
5748 ac_ext=c
5749ac_cpp='$CPP $CPPFLAGS'
5750ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5751ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5752ac_compiler_gnu=$ac_cv_c_compiler_gnu
42ecbf5e
DJ
5753
5754fi
d7040cdb
SE
5755echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5756echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5757 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5758 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5759 CFLAGS="$SAVE_CFLAGS"
5760 fi
5761 ;;
5762sparc*-*solaris*)
5763 # Find out which ABI we are using.
5764 echo 'int i;' > conftest.$ac_ext
5765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5766 (eval $ac_compile) 2>&5
5767 ac_status=$?
5768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769 (exit $ac_status); }; then
5770 case `/usr/bin/file conftest.o` in
5771 *64-bit*)
5772 case $lt_cv_prog_gnu_ld in
5773 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5774 *) LD="${LD-ld} -64" ;;
5775 esac
5776 ;;
5777 esac
5778 fi
5779 rm -rf conftest*
5780 ;;
5781esac
42ecbf5e 5782
d7040cdb 5783need_locks="$enable_libtool_lock"
42ecbf5e 5784
d7040cdb
SE
5785ac_ext=c
5786ac_cpp='$CPP $CPPFLAGS'
5787ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5788ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5789ac_compiler_gnu=$ac_cv_c_compiler_gnu
5790echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5791echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5792# On Suns, sometimes $CPP names a directory.
5793if test -n "$CPP" && test -d "$CPP"; then
5794 CPP=
5795fi
5796if test -z "$CPP"; then
5797 if test "${ac_cv_prog_CPP+set}" = set; then
42ecbf5e 5798 echo $ECHO_N "(cached) $ECHO_C" >&6
e5a52504 5799else
d7040cdb
SE
5800 # Double quotes because CPP needs to be expanded
5801 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5802 do
5803 ac_preproc_ok=false
5804for ac_c_preproc_warn_flag in '' yes
5805do
5806 # Use a header file that comes with gcc, so configuring glibc
5807 # with a fresh cross-compiler works.
5808 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5809 # <limits.h> exists even on freestanding compilers.
5810 # On the NeXT, cc -E runs the code through the compiler's parser,
5811 # not just through cpp. "Syntax error" is here to catch this case.
5812 cat >conftest.$ac_ext <<_ACEOF
5813/* confdefs.h. */
42ecbf5e 5814_ACEOF
d7040cdb
SE
5815cat confdefs.h >>conftest.$ac_ext
5816cat >>conftest.$ac_ext <<_ACEOF
5817/* end confdefs.h. */
5818#ifdef __STDC__
5819# include <limits.h>
5820#else
5821# include <assert.h>
5822#endif
5823 Syntax error
5824_ACEOF
5825if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5826 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
42ecbf5e 5827 ac_status=$?
d7040cdb
SE
5828 grep -v '^ *+' conftest.er1 >conftest.err
5829 rm -f conftest.er1
5830 cat conftest.err >&5
42ecbf5e 5831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
5832 (exit $ac_status); } >/dev/null; then
5833 if test -s conftest.err; then
5834 ac_cpp_err=$ac_c_preproc_warn_flag
5835 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5836 else
5837 ac_cpp_err=
5838 fi
e5a52504 5839else
d7040cdb 5840 ac_cpp_err=yes
e5a52504 5841fi
d7040cdb
SE
5842if test -z "$ac_cpp_err"; then
5843 :
5844else
5845 echo "$as_me: failed program was:" >&5
5846sed 's/^/| /' conftest.$ac_ext >&5
5847
5848 # Broken: fails on valid input.
5849continue
d15b04bd 5850fi
d7040cdb 5851rm -f conftest.err conftest.$ac_ext
d15b04bd 5852
d7040cdb
SE
5853 # OK, works on sane cases. Now check whether non-existent headers
5854 # can be detected and how.
5855 cat >conftest.$ac_ext <<_ACEOF
5856/* confdefs.h. */
5857_ACEOF
5858cat confdefs.h >>conftest.$ac_ext
5859cat >>conftest.$ac_ext <<_ACEOF
5860/* end confdefs.h. */
5861#include <ac_nonexistent.h>
5862_ACEOF
5863if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5864 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5865 ac_status=$?
5866 grep -v '^ *+' conftest.er1 >conftest.err
5867 rm -f conftest.er1
5868 cat conftest.err >&5
5869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870 (exit $ac_status); } >/dev/null; then
5871 if test -s conftest.err; then
5872 ac_cpp_err=$ac_c_preproc_warn_flag
5873 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5874 else
5875 ac_cpp_err=
5876 fi
5877else
5878 ac_cpp_err=yes
5879fi
5880if test -z "$ac_cpp_err"; then
5881 # Broken: success on invalid input.
5882continue
5883else
5884 echo "$as_me: failed program was:" >&5
5885sed 's/^/| /' conftest.$ac_ext >&5
5886
5887 # Passes both tests.
5888ac_preproc_ok=:
5889break
5890fi
5891rm -f conftest.err conftest.$ac_ext
5892
5893done
5894# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5895rm -f conftest.err conftest.$ac_ext
5896if $ac_preproc_ok; then
5897 break
5898fi
5899
5900 done
5901 ac_cv_prog_CPP=$CPP
5902
5903fi
5904 CPP=$ac_cv_prog_CPP
5905else
5906 ac_cv_prog_CPP=$CPP
5907fi
5908echo "$as_me:$LINENO: result: $CPP" >&5
5909echo "${ECHO_T}$CPP" >&6
5910ac_preproc_ok=false
5911for ac_c_preproc_warn_flag in '' yes
5912do
5913 # Use a header file that comes with gcc, so configuring glibc
5914 # with a fresh cross-compiler works.
5915 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5916 # <limits.h> exists even on freestanding compilers.
5917 # On the NeXT, cc -E runs the code through the compiler's parser,
5918 # not just through cpp. "Syntax error" is here to catch this case.
5919 cat >conftest.$ac_ext <<_ACEOF
5920/* confdefs.h. */
5921_ACEOF
5922cat confdefs.h >>conftest.$ac_ext
5923cat >>conftest.$ac_ext <<_ACEOF
5924/* end confdefs.h. */
5925#ifdef __STDC__
5926# include <limits.h>
5927#else
5928# include <assert.h>
5929#endif
5930 Syntax error
5931_ACEOF
5932if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5933 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5934 ac_status=$?
5935 grep -v '^ *+' conftest.er1 >conftest.err
5936 rm -f conftest.er1
5937 cat conftest.err >&5
5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); } >/dev/null; then
5940 if test -s conftest.err; then
5941 ac_cpp_err=$ac_c_preproc_warn_flag
5942 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5943 else
5944 ac_cpp_err=
5945 fi
5946else
5947 ac_cpp_err=yes
5948fi
5949if test -z "$ac_cpp_err"; then
5950 :
5951else
5952 echo "$as_me: failed program was:" >&5
5953sed 's/^/| /' conftest.$ac_ext >&5
5954
5955 # Broken: fails on valid input.
5956continue
5957fi
5958rm -f conftest.err conftest.$ac_ext
5959
5960 # OK, works on sane cases. Now check whether non-existent headers
5961 # can be detected and how.
5962 cat >conftest.$ac_ext <<_ACEOF
5963/* confdefs.h. */
5964_ACEOF
5965cat confdefs.h >>conftest.$ac_ext
5966cat >>conftest.$ac_ext <<_ACEOF
5967/* end confdefs.h. */
5968#include <ac_nonexistent.h>
5969_ACEOF
5970if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5971 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5972 ac_status=$?
5973 grep -v '^ *+' conftest.er1 >conftest.err
5974 rm -f conftest.er1
5975 cat conftest.err >&5
5976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977 (exit $ac_status); } >/dev/null; then
5978 if test -s conftest.err; then
5979 ac_cpp_err=$ac_c_preproc_warn_flag
5980 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5981 else
5982 ac_cpp_err=
5983 fi
5984else
5985 ac_cpp_err=yes
5986fi
5987if test -z "$ac_cpp_err"; then
5988 # Broken: success on invalid input.
5989continue
5990else
5991 echo "$as_me: failed program was:" >&5
5992sed 's/^/| /' conftest.$ac_ext >&5
5993
5994 # Passes both tests.
5995ac_preproc_ok=:
5996break
5997fi
5998rm -f conftest.err conftest.$ac_ext
5999
6000done
6001# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6002rm -f conftest.err conftest.$ac_ext
6003if $ac_preproc_ok; then
6004 :
6005else
7a283e07
RW
6006 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6007echo "$as_me: error: in \`$ac_pwd':" >&2;}
6008{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
d7040cdb
SE
6009See \`config.log' for more details." >&5
6010echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6011See \`config.log' for more details." >&2;}
7a283e07 6012 { (exit 1); exit 1; }; }; }
d7040cdb
SE
6013fi
6014
6015ac_ext=c
6016ac_cpp='$CPP $CPPFLAGS'
6017ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6018ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6019ac_compiler_gnu=$ac_cv_c_compiler_gnu
6020
6021
6022echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6023echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6024if test "${ac_cv_header_stdc+set}" = set; then
42ecbf5e 6025 echo $ECHO_N "(cached) $ECHO_C" >&6
e5a52504 6026else
d7040cdb
SE
6027 cat >conftest.$ac_ext <<_ACEOF
6028/* confdefs.h. */
42ecbf5e 6029_ACEOF
d7040cdb
SE
6030cat confdefs.h >>conftest.$ac_ext
6031cat >>conftest.$ac_ext <<_ACEOF
6032/* end confdefs.h. */
6033#include <stdlib.h>
6034#include <stdarg.h>
6035#include <string.h>
6036#include <float.h>
6037
6038int
6039main ()
6040{
6041
6042 ;
6043 return 0;
6044}
6045_ACEOF
6046rm -f conftest.$ac_objext
6047if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6048 (eval $ac_compile) 2>conftest.er1
42ecbf5e
DJ
6049 ac_status=$?
6050 grep -v '^ *+' conftest.er1 >conftest.err
6051 rm -f conftest.er1
6052 cat conftest.err >&5
6053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054 (exit $ac_status); } &&
b7d4af3a
JW
6055 { ac_try='test -z "$ac_c_werror_flag"
6056 || test ! -s conftest.err'
42ecbf5e
DJ
6057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6058 (eval $ac_try) 2>&5
6059 ac_status=$?
6060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061 (exit $ac_status); }; } &&
d7040cdb 6062 { ac_try='test -s conftest.$ac_objext'
42ecbf5e
DJ
6063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6064 (eval $ac_try) 2>&5
6065 ac_status=$?
6066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067 (exit $ac_status); }; }; then
d7040cdb 6068 ac_cv_header_stdc=yes
d15b04bd 6069else
42ecbf5e
DJ
6070 echo "$as_me: failed program was:" >&5
6071sed 's/^/| /' conftest.$ac_ext >&5
6072
d7040cdb 6073ac_cv_header_stdc=no
e5a52504 6074fi
d7040cdb 6075rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42ecbf5e 6076
d7040cdb
SE
6077if test $ac_cv_header_stdc = yes; then
6078 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6079 cat >conftest.$ac_ext <<_ACEOF
6080/* confdefs.h. */
42ecbf5e 6081_ACEOF
d7040cdb
SE
6082cat confdefs.h >>conftest.$ac_ext
6083cat >>conftest.$ac_ext <<_ACEOF
6084/* end confdefs.h. */
6085#include <string.h>
d15b04bd 6086
d7040cdb
SE
6087_ACEOF
6088if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6089 $EGREP "memchr" >/dev/null 2>&1; then
6090 :
6091else
6092 ac_cv_header_stdc=no
d15b04bd 6093fi
d7040cdb
SE
6094rm -f conftest*
6095
42ecbf5e 6096fi
e5a52504 6097
d7040cdb
SE
6098if test $ac_cv_header_stdc = yes; then
6099 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6100 cat >conftest.$ac_ext <<_ACEOF
6101/* confdefs.h. */
6102_ACEOF
6103cat confdefs.h >>conftest.$ac_ext
6104cat >>conftest.$ac_ext <<_ACEOF
6105/* end confdefs.h. */
6106#include <stdlib.h>
7148cc28 6107
d7040cdb
SE
6108_ACEOF
6109if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6110 $EGREP "free" >/dev/null 2>&1; then
6111 :
6112else
6113 ac_cv_header_stdc=no
20e95c23 6114fi
d7040cdb
SE
6115rm -f conftest*
6116
6117fi
6118
6119if test $ac_cv_header_stdc = yes; then
6120 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6121 if test "$cross_compiling" = yes; then
6122 :
e5a52504 6123else
d7040cdb
SE
6124 cat >conftest.$ac_ext <<_ACEOF
6125/* confdefs.h. */
6126_ACEOF
6127cat confdefs.h >>conftest.$ac_ext
6128cat >>conftest.$ac_ext <<_ACEOF
6129/* end confdefs.h. */
6130#include <ctype.h>
6131#if ((' ' & 0x0FF) == 0x020)
6132# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6133# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6134#else
6135# define ISLOWER(c) \
6136 (('a' <= (c) && (c) <= 'i') \
6137 || ('j' <= (c) && (c) <= 'r') \
6138 || ('s' <= (c) && (c) <= 'z'))
6139# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6140#endif
6141
6142#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6143int
6144main ()
6145{
6146 int i;
6147 for (i = 0; i < 256; i++)
6148 if (XOR (islower (i), ISLOWER (i))
6149 || toupper (i) != TOUPPER (i))
6150 exit(2);
6151 exit (0);
6152}
6153_ACEOF
6154rm -f conftest$ac_exeext
6155if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6156 (eval $ac_link) 2>&5
6157 ac_status=$?
6158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6161 (eval $ac_try) 2>&5
6162 ac_status=$?
6163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6164 (exit $ac_status); }; }; then
6165 :
6166else
6167 echo "$as_me: program exited with status $ac_status" >&5
6168echo "$as_me: failed program was:" >&5
6169sed 's/^/| /' conftest.$ac_ext >&5
6170
6171( exit $ac_status )
6172ac_cv_header_stdc=no
6173fi
6174rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6175fi
6176fi
6177fi
6178echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6179echo "${ECHO_T}$ac_cv_header_stdc" >&6
6180if test $ac_cv_header_stdc = yes; then
20e95c23
DJ
6181
6182cat >>confdefs.h <<\_ACEOF
d7040cdb 6183#define STDC_HEADERS 1
20e95c23
DJ
6184_ACEOF
6185
d7040cdb 6186fi
20e95c23 6187
d7040cdb 6188# On IRIX 5.3, sys/types and inttypes.h are conflicting.
20e95c23
DJ
6189
6190
20e95c23 6191
20e95c23 6192
20e95c23 6193
20e95c23 6194
20e95c23 6195
20e95c23
DJ
6196
6197
d7040cdb
SE
6198for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6199 inttypes.h stdint.h unistd.h
6200do
6201as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6202echo "$as_me:$LINENO: checking for $ac_header" >&5
6203echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6204if eval "test \"\${$as_ac_Header+set}\" = set"; then
6205 echo $ECHO_N "(cached) $ECHO_C" >&6
6206else
6207 cat >conftest.$ac_ext <<_ACEOF
6208/* confdefs.h. */
6209_ACEOF
6210cat confdefs.h >>conftest.$ac_ext
6211cat >>conftest.$ac_ext <<_ACEOF
6212/* end confdefs.h. */
6213$ac_includes_default
20e95c23 6214
d7040cdb
SE
6215#include <$ac_header>
6216_ACEOF
6217rm -f conftest.$ac_objext
6218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6219 (eval $ac_compile) 2>conftest.er1
6220 ac_status=$?
6221 grep -v '^ *+' conftest.er1 >conftest.err
6222 rm -f conftest.er1
6223 cat conftest.err >&5
6224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225 (exit $ac_status); } &&
6226 { ac_try='test -z "$ac_c_werror_flag"
6227 || test ! -s conftest.err'
6228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6229 (eval $ac_try) 2>&5
6230 ac_status=$?
6231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6232 (exit $ac_status); }; } &&
6233 { ac_try='test -s conftest.$ac_objext'
6234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6235 (eval $ac_try) 2>&5
6236 ac_status=$?
6237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238 (exit $ac_status); }; }; then
6239 eval "$as_ac_Header=yes"
d15b04bd 6240else
d7040cdb
SE
6241 echo "$as_me: failed program was:" >&5
6242sed 's/^/| /' conftest.$ac_ext >&5
20e95c23 6243
d7040cdb
SE
6244eval "$as_ac_Header=no"
6245fi
6246rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6247fi
6248echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6249echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6250if test `eval echo '${'$as_ac_Header'}'` = yes; then
6251 cat >>confdefs.h <<_ACEOF
6252#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6253_ACEOF
20e95c23 6254
d7040cdb 6255fi
20e95c23 6256
d7040cdb 6257done
20e95c23
DJ
6258
6259
6260
d7040cdb
SE
6261for ac_header in dlfcn.h
6262do
6263as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6264echo "$as_me:$LINENO: checking for $ac_header" >&5
6265echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6266if eval "test \"\${$as_ac_Header+set}\" = set"; then
6267 echo $ECHO_N "(cached) $ECHO_C" >&6
6268else
6269 cat >conftest.$ac_ext <<_ACEOF
6270/* confdefs.h. */
6271_ACEOF
6272cat confdefs.h >>conftest.$ac_ext
6273cat >>conftest.$ac_ext <<_ACEOF
6274/* end confdefs.h. */
6275$ac_includes_default
42ecbf5e 6276
d7040cdb
SE
6277#include <$ac_header>
6278_ACEOF
6279rm -f conftest.$ac_objext
6280if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6281 (eval $ac_compile) 2>conftest.er1
6282 ac_status=$?
6283 grep -v '^ *+' conftest.er1 >conftest.err
6284 rm -f conftest.er1
6285 cat conftest.err >&5
6286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287 (exit $ac_status); } &&
6288 { ac_try='test -z "$ac_c_werror_flag"
6289 || test ! -s conftest.err'
6290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6291 (eval $ac_try) 2>&5
6292 ac_status=$?
6293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294 (exit $ac_status); }; } &&
6295 { ac_try='test -s conftest.$ac_objext'
6296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6297 (eval $ac_try) 2>&5
6298 ac_status=$?
6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300 (exit $ac_status); }; }; then
6301 eval "$as_ac_Header=yes"
20e95c23 6302else
d7040cdb
SE
6303 echo "$as_me: failed program was:" >&5
6304sed 's/^/| /' conftest.$ac_ext >&5
6305
6306eval "$as_ac_Header=no"
d15b04bd 6307fi
d7040cdb
SE
6308rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6309fi
6310echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6311echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6312if test `eval echo '${'$as_ac_Header'}'` = yes; then
6313 cat >>confdefs.h <<_ACEOF
6314#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6315_ACEOF
20e95c23 6316
d7040cdb
SE
6317fi
6318
6319done
6320
6321
6322
6323# This can be used to rebuild libtool when needed
6324LIBTOOL_DEPS="$ltmain"
6325
6326# Always use our own libtool.
6327LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353test -z "$LN_S" && LN_S="ln -s"
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368if test -n "${ZSH_VERSION+set}" ; then
6369 setopt NO_GLOB_SUBST
6370fi
6371
6372echo "$as_me:$LINENO: checking for objdir" >&5
6373echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6374if test "${lt_cv_objdir+set}" = set; then
20e95c23
DJ
6375 echo $ECHO_N "(cached) $ECHO_C" >&6
6376else
d7040cdb
SE
6377 rm -f .libs 2>/dev/null
6378mkdir .libs 2>/dev/null
6379if test -d .libs; then
6380 lt_cv_objdir=.libs
42ecbf5e 6381else
d7040cdb
SE
6382 # MS-DOS does not allow filenames that begin with a dot.
6383 lt_cv_objdir=_libs
6384fi
6385rmdir .libs 2>/dev/null
42ecbf5e 6386fi
d7040cdb
SE
6387echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6388echo "${ECHO_T}$lt_cv_objdir" >&6
6389objdir=$lt_cv_objdir
42ecbf5e 6390
d7040cdb
SE
6391
6392
6393
6394
6395cat >>confdefs.h <<_ACEOF
6396#define LT_OBJDIR "$lt_cv_objdir/"
6397_ACEOF
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415case $host_os in
6416aix3*)
6417 # AIX sometimes has problems with the GCC collect2 program. For some
6418 # reason, if we set the COLLECT_NAMES environment variable, the problems
6419 # vanish in a puff of smoke.
6420 if test "X${COLLECT_NAMES+set}" != Xset; then
6421 COLLECT_NAMES=
6422 export COLLECT_NAMES
6423 fi
6424 ;;
6425esac
6426
6427# Sed substitution that helps us do robust quoting. It backslashifies
6428# metacharacters that are still active within double-quoted strings.
6429sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6430
6431# Same as above, but do not quote variable references.
6432double_quote_subst='s/\(["`\\]\)/\\\1/g'
6433
6434# Sed substitution to delay expansion of an escaped shell variable in a
6435# double_quote_subst'ed string.
6436delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6437
6438# Sed substitution to delay expansion of an escaped single quote.
6439delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6440
6441# Sed substitution to avoid accidental globbing in evaled expressions
6442no_glob_subst='s/\*/\\\*/g'
6443
6444# Global variables:
6445ofile=libtool
6446can_build_shared=yes
6447
6448# All known linkers require a `.a' archive for static linking (except MSVC,
6449# which needs '.lib').
6450libext=a
6451
6452with_gnu_ld="$lt_cv_prog_gnu_ld"
6453
6454old_CC="$CC"
6455old_CFLAGS="$CFLAGS"
6456
6457# Set sane defaults for various variables
6458test -z "$CC" && CC=cc
6459test -z "$LTCC" && LTCC=$CC
6460test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6461test -z "$LD" && LD=ld
6462test -z "$ac_objext" && ac_objext=o
6463
6464for cc_temp in $compiler""; do
6465 case $cc_temp in
6466 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6467 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6468 \-*) ;;
6469 *) break;;
6470 esac
6471done
6472cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6473
6474
6475# Only perform the check for file, if the check method requires it
6476test -z "$MAGIC_CMD" && MAGIC_CMD=file
6477case $deplibs_check_method in
6478file_magic*)
6479 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6480 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6481echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6482if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
42ecbf5e
DJ
6483 echo $ECHO_N "(cached) $ECHO_C" >&6
6484else
d7040cdb
SE
6485 case $MAGIC_CMD in
6486[\\/*] | ?:[\\/]*)
6487 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
20e95c23 6488 ;;
d7040cdb
SE
6489*)
6490 lt_save_MAGIC_CMD="$MAGIC_CMD"
6491 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6492 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6493 for ac_dir in $ac_dummy; do
6494 IFS="$lt_save_ifs"
6495 test -z "$ac_dir" && ac_dir=.
6496 if test -f $ac_dir/${ac_tool_prefix}file; then
6497 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6498 if test -n "$file_magic_test_file"; then
6499 case $deplibs_check_method in
6500 "file_magic "*)
6501 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6502 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6503 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6504 $EGREP "$file_magic_regex" > /dev/null; then
6505 :
6506 else
6507 cat <<_LT_EOF 1>&2
42ecbf5e 6508
d7040cdb
SE
6509*** Warning: the command libtool uses to detect shared libraries,
6510*** $file_magic_cmd, produces output that libtool cannot recognize.
6511*** The result is that libtool may fail to recognize shared libraries
6512*** as such. This will affect the creation of libtool libraries that
6513*** depend on shared libraries, but programs linked with such libtool
6514*** libraries will work regardless of this problem. Nevertheless, you
6515*** may want to report the problem to your system manager and/or to
6516*** bug-libtool@gnu.org
6517
6518_LT_EOF
6519 fi ;;
6520 esac
6521 fi
6522 break
6523 fi
6524 done
6525 IFS="$lt_save_ifs"
6526 MAGIC_CMD="$lt_save_MAGIC_CMD"
20e95c23
DJ
6527 ;;
6528esac
42ecbf5e 6529fi
20e95c23 6530
d7040cdb
SE
6531MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6532if test -n "$MAGIC_CMD"; then
6533 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6534echo "${ECHO_T}$MAGIC_CMD" >&6
42ecbf5e
DJ
6535else
6536 echo "$as_me:$LINENO: result: no" >&5
6537echo "${ECHO_T}no" >&6
6538fi
6539
20e95c23
DJ
6540
6541
42ecbf5e 6542
20e95c23 6543
d7040cdb
SE
6544if test -z "$lt_cv_path_MAGIC_CMD"; then
6545 if test -n "$ac_tool_prefix"; then
6546 echo "$as_me:$LINENO: checking for file" >&5
6547echo $ECHO_N "checking for file... $ECHO_C" >&6
6548if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
42ecbf5e
DJ
6549 echo $ECHO_N "(cached) $ECHO_C" >&6
6550else
d7040cdb
SE
6551 case $MAGIC_CMD in
6552[\\/*] | ?:[\\/]*)
6553 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6554 ;;
6555*)
6556 lt_save_MAGIC_CMD="$MAGIC_CMD"
6557 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6558 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6559 for ac_dir in $ac_dummy; do
6560 IFS="$lt_save_ifs"
6561 test -z "$ac_dir" && ac_dir=.
6562 if test -f $ac_dir/file; then
6563 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6564 if test -n "$file_magic_test_file"; then
6565 case $deplibs_check_method in
6566 "file_magic "*)
6567 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6568 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6569 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6570 $EGREP "$file_magic_regex" > /dev/null; then
6571 :
6572 else
6573 cat <<_LT_EOF 1>&2
6574
6575*** Warning: the command libtool uses to detect shared libraries,
6576*** $file_magic_cmd, produces output that libtool cannot recognize.
6577*** The result is that libtool may fail to recognize shared libraries
6578*** as such. This will affect the creation of libtool libraries that
6579*** depend on shared libraries, but programs linked with such libtool
6580*** libraries will work regardless of this problem. Nevertheless, you
6581*** may want to report the problem to your system manager and/or to
6582*** bug-libtool@gnu.org
6583
6584_LT_EOF
6585 fi ;;
6586 esac
6587 fi
6588 break
6589 fi
6590 done
6591 IFS="$lt_save_ifs"
6592 MAGIC_CMD="$lt_save_MAGIC_CMD"
6593 ;;
20e95c23
DJ
6594esac
6595fi
d7040cdb
SE
6596
6597MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6598if test -n "$MAGIC_CMD"; then
6599 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6600echo "${ECHO_T}$MAGIC_CMD" >&6
20e95c23
DJ
6601else
6602 echo "$as_me:$LINENO: result: no" >&5
6603echo "${ECHO_T}no" >&6
6604fi
6605
20e95c23 6606
42ecbf5e 6607 else
d7040cdb 6608 MAGIC_CMD=:
42ecbf5e 6609 fi
42ecbf5e 6610fi
42ecbf5e 6611
20e95c23 6612 fi
d7040cdb
SE
6613 ;;
6614esac
42ecbf5e 6615
d7040cdb 6616# Use C for the default configuration in the libtool script
42ecbf5e 6617
d7040cdb
SE
6618lt_save_CC="$CC"
6619ac_ext=c
6620ac_cpp='$CPP $CPPFLAGS'
6621ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6622ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6623ac_compiler_gnu=$ac_cv_c_compiler_gnu
42ecbf5e 6624
42ecbf5e 6625
d7040cdb
SE
6626# Source file extension for C test sources.
6627ac_ext=c
42ecbf5e 6628
d7040cdb
SE
6629# Object file extension for compiled C test sources.
6630objext=o
6631objext=$objext
42ecbf5e 6632
d7040cdb
SE
6633# Code to be used in simple compile tests
6634lt_simple_compile_test_code="int some_variable = 0;"
42ecbf5e 6635
d7040cdb
SE
6636# Code to be used in simple link tests
6637lt_simple_link_test_code='int main(){return(0);}'
42ecbf5e 6638
ac48eca1 6639
42ecbf5e 6640
42ecbf5e 6641
d5fbea21 6642
d5fbea21
DJ
6643
6644
d7040cdb
SE
6645# If no C compiler was specified, use CC.
6646LTCC=${LTCC-"$CC"}
20e95c23 6647
d7040cdb
SE
6648# If no C compiler flags were specified, use CFLAGS.
6649LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
42ecbf5e 6650
d7040cdb
SE
6651# Allow CC to be a program name with arguments.
6652compiler=$CC
252b5132 6653
d7040cdb
SE
6654# Save the default compiler, since it gets overwritten when the other
6655# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6656compiler_DEFAULT=$CC
42ecbf5e 6657
d7040cdb
SE
6658# save warnings/boilerplate of simple test code
6659ac_outfile=conftest.$ac_objext
6660echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6661eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6662_lt_compiler_boilerplate=`cat conftest.err`
6663$RM conftest*
252b5132 6664
d7040cdb
SE
6665ac_outfile=conftest.$ac_objext
6666echo "$lt_simple_link_test_code" >conftest.$ac_ext
6667eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6668_lt_linker_boilerplate=`cat conftest.err`
6669$RM conftest*
252b5132 6670
42ecbf5e 6671
d7040cdb
SE
6672## CAVEAT EMPTOR:
6673## There is no encapsulation within the following macros, do not change
6674## the running order or otherwise move them around unless you know exactly
6675## what you are doing...
6676if test -n "$compiler"; then
252b5132 6677
d7040cdb 6678lt_prog_compiler_no_builtin_flag=
252b5132 6679
d7040cdb
SE
6680if test "$GCC" = yes; then
6681 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
d15b04bd 6682
d7040cdb
SE
6683 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6684echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6685if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
20e95c23 6686 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6687else
d7040cdb
SE
6688 lt_cv_prog_compiler_rtti_exceptions=no
6689 ac_outfile=conftest.$ac_objext
6690 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6691 lt_compiler_flag="-fno-rtti -fno-exceptions"
6692 # Insert the option either (1) after the last *FLAGS variable, or
6693 # (2) before a word containing "conftest.", or (3) at the end.
6694 # Note that $ac_compile itself does not contain backslashes and begins
6695 # with a dollar sign (not a hyphen), so the echo should work correctly.
6696 # The option is referenced via a variable to avoid confusing sed.
6697 lt_compile=`echo "$ac_compile" | $SED \
6698 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6699 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6700 -e 's:$: $lt_compiler_flag:'`
7a283e07 6701 (eval echo "\"\$as_me:6701: $lt_compile\"" >&5)
d7040cdb
SE
6702 (eval "$lt_compile" 2>conftest.err)
6703 ac_status=$?
6704 cat conftest.err >&5
7a283e07 6705 echo "$as_me:6705: \$? = $ac_status" >&5
d7040cdb
SE
6706 if (exit $ac_status) && test -s "$ac_outfile"; then
6707 # The compiler can only warn and ignore the option if not recognized
6708 # So say no if there are warnings other than the usual output.
6709 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6710 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6711 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6712 lt_cv_prog_compiler_rtti_exceptions=yes
6713 fi
6714 fi
6715 $RM conftest*
42ecbf5e 6716
252b5132 6717fi
d7040cdb
SE
6718echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6719echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6720
6721if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6722 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
20e95c23 6723else
d7040cdb 6724 :
252b5132 6725fi
252b5132
RH
6726
6727fi
d7040cdb
SE
6728
6729
6730
6731
6732
6733
6734 lt_prog_compiler_wl=
6735lt_prog_compiler_pic=
6736lt_prog_compiler_static=
6737
6738echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6739echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6740
6741 if test "$GCC" = yes; then
6742 lt_prog_compiler_wl='-Wl,'
6743 lt_prog_compiler_static='-static'
6744
6745 case $host_os in
6746 aix*)
6747 # All AIX code is PIC.
6748 if test "$host_cpu" = ia64; then
6749 # AIX 5 now supports IA64 processor
6750 lt_prog_compiler_static='-Bstatic'
6751 fi
6752 ;;
6753
6754 amigaos*)
6755 if test "$host_cpu" = m68k; then
6756 # FIXME: we need at least 68020 code to build shared libraries, but
6757 # adding the `-m68020' flag to GCC prevents building anything better,
6758 # like `-m68040'.
6759 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6760 fi
6761 ;;
6762
6763 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6764 # PIC is the default for these OSes.
6765 ;;
6766
6767 mingw* | cygwin* | pw32* | os2*)
6768 # This hack is so that the source file can tell whether it is being
6769 # built for inclusion in a dll (and should export symbols for example).
6770 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6771 # (--disable-auto-import) libraries
6772 lt_prog_compiler_pic='-DDLL_EXPORT'
6773 ;;
6774
6775 darwin* | rhapsody*)
6776 # PIC is the default on this platform
6777 # Common symbols not allowed in MH_DYLIB files
6778 lt_prog_compiler_pic='-fno-common'
6779 ;;
6780
6781 hpux*)
6782 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6783 # not for PA HP-UX.
6784 case $host_cpu in
6785 hppa*64*|ia64*)
6786 # +Z the default
6787 ;;
6788 *)
6789 lt_prog_compiler_pic='-fPIC'
6790 ;;
6791 esac
6792 ;;
6793
6794 interix[3-9]*)
6795 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6796 # Instead, we relocate shared libraries at runtime.
6797 ;;
6798
6799 msdosdjgpp*)
6800 # Just because we use GCC doesn't mean we suddenly get shared libraries
6801 # on systems that don't support them.
6802 lt_prog_compiler_can_build_shared=no
6803 enable_shared=no
6804 ;;
6805
6806 *nto* | *qnx*)
6807 # QNX uses GNU C++, but need to define -shared option too, otherwise
6808 # it will coredump.
6809 lt_prog_compiler_pic='-fPIC -shared'
6810 ;;
6811
6812 sysv4*MP*)
6813 if test -d /usr/nec; then
6814 lt_prog_compiler_pic=-Kconform_pic
6815 fi
6816 ;;
6817
6818 *)
6819 lt_prog_compiler_pic='-fPIC'
6820 ;;
6821 esac
6822 else
6823 # PORTME Check for flag to pass linker flags through the system compiler.
6824 case $host_os in
6825 aix*)
6826 lt_prog_compiler_wl='-Wl,'
6827 if test "$host_cpu" = ia64; then
6828 # AIX 5 now supports IA64 processor
6829 lt_prog_compiler_static='-Bstatic'
6830 else
6831 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6832 fi
6833 ;;
6834 darwin*)
6835 # PIC is the default on this platform
6836 # Common symbols not allowed in MH_DYLIB files
6837 case $cc_basename in
6838 xlc*)
6839 lt_prog_compiler_pic='-qnocommon'
6840 lt_prog_compiler_wl='-Wl,'
6841 ;;
6842 esac
6843 ;;
6844
6845 mingw* | cygwin* | pw32* | os2*)
6846 # This hack is so that the source file can tell whether it is being
6847 # built for inclusion in a dll (and should export symbols for example).
6848 lt_prog_compiler_pic='-DDLL_EXPORT'
6849 ;;
6850
6851 hpux9* | hpux10* | hpux11*)
6852 lt_prog_compiler_wl='-Wl,'
6853 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6854 # not for PA HP-UX.
6855 case $host_cpu in
6856 hppa*64*|ia64*)
6857 # +Z the default
6858 ;;
6859 *)
6860 lt_prog_compiler_pic='+Z'
6861 ;;
6862 esac
6863 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6864 lt_prog_compiler_static='${wl}-a ${wl}archive'
6865 ;;
6866
6867 irix5* | irix6* | nonstopux*)
6868 lt_prog_compiler_wl='-Wl,'
6869 # PIC (with -KPIC) is the default.
6870 lt_prog_compiler_static='-non_shared'
6871 ;;
6872
6873 linux* | k*bsd*-gnu)
6874 case $cc_basename in
6875 icc* | ecc*)
6876 lt_prog_compiler_wl='-Wl,'
6877 lt_prog_compiler_pic='-KPIC'
6878 lt_prog_compiler_static='-static'
6879 ;;
6880 pgcc* | pgf77* | pgf90* | pgf95*)
6881 # Portland Group compilers (*not* the Pentium gcc compiler,
6882 # which looks to be a dead project)
6883 lt_prog_compiler_wl='-Wl,'
6884 lt_prog_compiler_pic='-fpic'
6885 lt_prog_compiler_static='-Bstatic'
6886 ;;
6887 ccc*)
6888 lt_prog_compiler_wl='-Wl,'
6889 # All Alpha code is PIC.
6890 lt_prog_compiler_static='-non_shared'
6891 ;;
6892 *)
6893 case `$CC -V 2>&1 | sed 5q` in
6894 *Sun\ C*)
6895 # Sun C 5.9
6896 lt_prog_compiler_pic='-KPIC'
6897 lt_prog_compiler_static='-Bstatic'
6898 lt_prog_compiler_wl='-Wl,'
6899 ;;
6900 *Sun\ F*)
6901 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6902 lt_prog_compiler_pic='-KPIC'
6903 lt_prog_compiler_static='-Bstatic'
6904 lt_prog_compiler_wl=''
6905 ;;
6906 esac
6907 ;;
6908 esac
6909 ;;
6910
6911 newsos6)
6912 lt_prog_compiler_pic='-KPIC'
6913 lt_prog_compiler_static='-Bstatic'
6914 ;;
6915
6916 *nto* | *qnx*)
6917 # QNX uses GNU C++, but need to define -shared option too, otherwise
6918 # it will coredump.
6919 lt_prog_compiler_pic='-fPIC -shared'
6920 ;;
6921
6922 osf3* | osf4* | osf5*)
6923 lt_prog_compiler_wl='-Wl,'
6924 # All OSF/1 code is PIC.
6925 lt_prog_compiler_static='-non_shared'
6926 ;;
6927
6928 rdos*)
6929 lt_prog_compiler_static='-non_shared'
6930 ;;
6931
6932 solaris*)
6933 lt_prog_compiler_pic='-KPIC'
6934 lt_prog_compiler_static='-Bstatic'
6935 case $cc_basename in
6936 f77* | f90* | f95*)
6937 lt_prog_compiler_wl='-Qoption ld ';;
6938 *)
6939 lt_prog_compiler_wl='-Wl,';;
6940 esac
6941 ;;
6942
6943 sunos4*)
6944 lt_prog_compiler_wl='-Qoption ld '
6945 lt_prog_compiler_pic='-PIC'
6946 lt_prog_compiler_static='-Bstatic'
6947 ;;
6948
6949 sysv4 | sysv4.2uw2* | sysv4.3*)
6950 lt_prog_compiler_wl='-Wl,'
6951 lt_prog_compiler_pic='-KPIC'
6952 lt_prog_compiler_static='-Bstatic'
6953 ;;
6954
6955 sysv4*MP*)
6956 if test -d /usr/nec ;then
6957 lt_prog_compiler_pic='-Kconform_pic'
6958 lt_prog_compiler_static='-Bstatic'
6959 fi
6960 ;;
6961
6962 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6963 lt_prog_compiler_wl='-Wl,'
6964 lt_prog_compiler_pic='-KPIC'
6965 lt_prog_compiler_static='-Bstatic'
6966 ;;
6967
6968 unicos*)
6969 lt_prog_compiler_wl='-Wl,'
6970 lt_prog_compiler_can_build_shared=no
6971 ;;
6972
6973 uts4*)
6974 lt_prog_compiler_pic='-pic'
6975 lt_prog_compiler_static='-Bstatic'
6976 ;;
6977
6978 *)
6979 lt_prog_compiler_can_build_shared=no
6980 ;;
6981 esac
6982 fi
6983
6984case $host_os in
6985 # For platforms which do not support PIC, -DPIC is meaningless:
6986 *djgpp*)
6987 lt_prog_compiler_pic=
6988 ;;
6989 *)
6990 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6991 ;;
6992esac
6993echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6994echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6995
6996
6997
6998
6999
7000
7001#
7002# Check to make sure the PIC flag actually works.
7003#
7004if test -n "$lt_prog_compiler_pic"; then
7005 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7006echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7007if test "${lt_prog_compiler_pic_works+set}" = set; then
42ecbf5e
DJ
7008 echo $ECHO_N "(cached) $ECHO_C" >&6
7009else
d7040cdb
SE
7010 lt_prog_compiler_pic_works=no
7011 ac_outfile=conftest.$ac_objext
7012 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7013 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7014 # Insert the option either (1) after the last *FLAGS variable, or
7015 # (2) before a word containing "conftest.", or (3) at the end.
7016 # Note that $ac_compile itself does not contain backslashes and begins
7017 # with a dollar sign (not a hyphen), so the echo should work correctly.
7018 # The option is referenced via a variable to avoid confusing sed.
7019 lt_compile=`echo "$ac_compile" | $SED \
7020 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7021 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7022 -e 's:$: $lt_compiler_flag:'`
7a283e07 7023 (eval echo "\"\$as_me:7023: $lt_compile\"" >&5)
d7040cdb
SE
7024 (eval "$lt_compile" 2>conftest.err)
7025 ac_status=$?
7026 cat conftest.err >&5
7a283e07 7027 echo "$as_me:7027: \$? = $ac_status" >&5
d7040cdb
SE
7028 if (exit $ac_status) && test -s "$ac_outfile"; then
7029 # The compiler can only warn and ignore the option if not recognized
7030 # So say no if there are warnings other than the usual output.
7031 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7032 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7033 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7034 lt_prog_compiler_pic_works=yes
7035 fi
7036 fi
7037 $RM conftest*
42ecbf5e 7038
252b5132 7039fi
d7040cdb
SE
7040echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7041echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7042
7043if test x"$lt_prog_compiler_pic_works" = xyes; then
7044 case $lt_prog_compiler_pic in
7045 "" | " "*) ;;
7046 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7047 esac
252b5132 7048else
d7040cdb
SE
7049 lt_prog_compiler_pic=
7050 lt_prog_compiler_can_build_shared=no
252b5132 7051fi
252b5132
RH
7052
7053fi
42ecbf5e 7054
d7040cdb
SE
7055
7056
7057
7058
7059
7060#
7061# Check to make sure the static flag actually works.
7062#
7063wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7064echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7065echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7066if test "${lt_prog_compiler_static_works+set}" = set; then
20e95c23 7067 echo $ECHO_N "(cached) $ECHO_C" >&6
42ecbf5e 7068else
d7040cdb
SE
7069 lt_prog_compiler_static_works=no
7070 save_LDFLAGS="$LDFLAGS"
7071 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7072 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7073 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7074 # The linker can only warn and ignore the option if not recognized
7075 # So say no if there are warnings
7076 if test -s conftest.err; then
7077 # Append any errors to the config.log.
7078 cat conftest.err 1>&5
7079 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7080 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7081 if diff conftest.exp conftest.er2 >/dev/null; then
7082 lt_prog_compiler_static_works=yes
7083 fi
7084 else
7085 lt_prog_compiler_static_works=yes
7086 fi
7087 fi
7088 $RM conftest*
7089 LDFLAGS="$save_LDFLAGS"
42ecbf5e 7090
42ecbf5e 7091fi
d7040cdb
SE
7092echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7093echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7094
7095if test x"$lt_prog_compiler_static_works" = xyes; then
7096 :
7097else
7098 lt_prog_compiler_static=
42ecbf5e 7099fi
42ecbf5e 7100
252b5132 7101
252b5132 7102
42ecbf5e 7103
252b5132 7104
20e95c23 7105
d7040cdb
SE
7106
7107 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7108echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7109if test "${lt_cv_prog_compiler_c_o+set}" = set; then
42ecbf5e 7110 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7111else
d7040cdb
SE
7112 lt_cv_prog_compiler_c_o=no
7113 $RM -r conftest 2>/dev/null
7114 mkdir conftest
7115 cd conftest
7116 mkdir out
7117 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7118
7119 lt_compiler_flag="-o out/conftest2.$ac_objext"
7120 # Insert the option either (1) after the last *FLAGS variable, or
7121 # (2) before a word containing "conftest.", or (3) at the end.
7122 # Note that $ac_compile itself does not contain backslashes and begins
7123 # with a dollar sign (not a hyphen), so the echo should work correctly.
7124 lt_compile=`echo "$ac_compile" | $SED \
7125 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7126 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7127 -e 's:$: $lt_compiler_flag:'`
7a283e07 7128 (eval echo "\"\$as_me:7128: $lt_compile\"" >&5)
d7040cdb
SE
7129 (eval "$lt_compile" 2>out/conftest.err)
7130 ac_status=$?
7131 cat out/conftest.err >&5
7a283e07 7132 echo "$as_me:7132: \$? = $ac_status" >&5
d7040cdb
SE
7133 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7134 then
7135 # The compiler can only warn and ignore the option if not recognized
7136 # So say no if there are warnings
7137 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7138 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7139 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7140 lt_cv_prog_compiler_c_o=yes
7141 fi
7142 fi
7143 chmod u+w . 2>&5
7144 $RM conftest*
7145 # SGI C++ compiler will create directory out/ii_files/ for
7146 # template instantiation
7147 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7148 $RM out/* && rmdir out
7149 cd ..
7150 $RM -r conftest
7151 $RM conftest*
7152
252b5132 7153fi
d7040cdb
SE
7154echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7155echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
42ecbf5e 7156
20e95c23 7157
20e95c23
DJ
7158
7159
d7040cdb
SE
7160
7161
7162 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7163echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7164if test "${lt_cv_prog_compiler_c_o+set}" = set; then
42ecbf5e
DJ
7165 echo $ECHO_N "(cached) $ECHO_C" >&6
7166else
d7040cdb
SE
7167 lt_cv_prog_compiler_c_o=no
7168 $RM -r conftest 2>/dev/null
7169 mkdir conftest
7170 cd conftest
7171 mkdir out
7172 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7173
7174 lt_compiler_flag="-o out/conftest2.$ac_objext"
7175 # Insert the option either (1) after the last *FLAGS variable, or
7176 # (2) before a word containing "conftest.", or (3) at the end.
7177 # Note that $ac_compile itself does not contain backslashes and begins
7178 # with a dollar sign (not a hyphen), so the echo should work correctly.
7179 lt_compile=`echo "$ac_compile" | $SED \
7180 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7181 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7182 -e 's:$: $lt_compiler_flag:'`
7a283e07 7183 (eval echo "\"\$as_me:7183: $lt_compile\"" >&5)
d7040cdb
SE
7184 (eval "$lt_compile" 2>out/conftest.err)
7185 ac_status=$?
7186 cat out/conftest.err >&5
7a283e07 7187 echo "$as_me:7187: \$? = $ac_status" >&5
d7040cdb
SE
7188 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7189 then
7190 # The compiler can only warn and ignore the option if not recognized
7191 # So say no if there are warnings
7192 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7193 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7194 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7195 lt_cv_prog_compiler_c_o=yes
7196 fi
7197 fi
7198 chmod u+w . 2>&5
7199 $RM conftest*
7200 # SGI C++ compiler will create directory out/ii_files/ for
7201 # template instantiation
7202 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7203 $RM out/* && rmdir out
7204 cd ..
7205 $RM -r conftest
7206 $RM conftest*
7207
7208fi
7209echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7210echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7211
7212
7213
7214
7215hard_links="nottested"
7216if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7217 # do not overwrite the value of need_locks provided by the user
7218 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7219echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7220 hard_links=yes
7221 $RM conftest*
7222 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7223 touch conftest.a
7224 ln conftest.a conftest.b 2>&5 || hard_links=no
7225 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7226 echo "$as_me:$LINENO: result: $hard_links" >&5
7227echo "${ECHO_T}$hard_links" >&6
7228 if test "$hard_links" = no; then
7229 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7230echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7231 need_locks=warn
7232 fi
7233else
7234 need_locks=no
7235fi
7236
7237
7238
7239
7240
7241
7242 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7243echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7244
7245 runpath_var=
7246 allow_undefined_flag=
7247 always_export_symbols=no
7248 archive_cmds=
7249 archive_expsym_cmds=
7250 compiler_needs_object=no
7251 enable_shared_with_static_runtimes=no
7252 export_dynamic_flag_spec=
7253 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7254 hardcode_automatic=no
7255 hardcode_direct=no
7256 hardcode_direct_absolute=no
7257 hardcode_libdir_flag_spec=
7258 hardcode_libdir_flag_spec_ld=
7259 hardcode_libdir_separator=
7260 hardcode_minus_L=no
7261 hardcode_shlibpath_var=unsupported
7262 inherit_rpath=no
7263 link_all_deplibs=unknown
7264 module_cmds=
7265 module_expsym_cmds=
7266 old_archive_from_new_cmds=
7267 old_archive_from_expsyms_cmds=
7268 thread_safe_flag_spec=
7269 whole_archive_flag_spec=
7270 # include_expsyms should be a list of space-separated symbols to be *always*
7271 # included in the symbol list
7272 include_expsyms=
7273 # exclude_expsyms can be an extended regexp of symbols to exclude
7274 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7275 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7276 # as well as any symbol that contains `d'.
7277 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7278 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7279 # platforms (ab)use it in PIC code, but their linkers get confused if
7280 # the symbol is explicitly referenced. Since portable code cannot
7281 # rely on this symbol name, it's probably fine to never include it in
7282 # preloaded symbol tables.
7283 extract_expsyms_cmds=
7284
7285 case $host_os in
7286 cygwin* | mingw* | pw32*)
7287 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7288 # When not using gcc, we currently assume that we are using
7289 # Microsoft Visual C++.
7290 if test "$GCC" != yes; then
7291 with_gnu_ld=no
7292 fi
7293 ;;
7294 interix*)
7295 # we just hope/assume this is gcc and not c89 (= MSVC++)
7296 with_gnu_ld=yes
7297 ;;
7298 openbsd*)
7299 with_gnu_ld=no
7300 ;;
7301 esac
7302
7303 ld_shlibs=yes
7304 if test "$with_gnu_ld" = yes; then
7305 # If archive_cmds runs LD, not CC, wlarc should be empty
7306 wlarc='${wl}'
7307
7308 # Set some defaults for GNU ld with shared library support. These
7309 # are reset later if shared libraries are not supported. Putting them
7310 # here allows them to be overridden if necessary.
7311 runpath_var=LD_RUN_PATH
7312 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7313 export_dynamic_flag_spec='${wl}--export-dynamic'
7314 # ancient GNU ld didn't support --whole-archive et. al.
7315 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7316 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7317 else
7318 whole_archive_flag_spec=
7319 fi
7320 supports_anon_versioning=no
7321 case `$LD -v 2>&1` in
7322 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7323 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7324 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7325 *\ 2.11.*) ;; # other 2.11 versions
7326 *) supports_anon_versioning=yes ;;
7327 esac
7328
7329 # See if GNU ld supports shared libraries.
7330 case $host_os in
50e7d84b 7331 aix[3-9]*)
d7040cdb
SE
7332 # On AIX/PPC, the GNU linker is very broken
7333 if test "$host_cpu" != ia64; then
7334 ld_shlibs=no
7335 cat <<_LT_EOF 1>&2
7336
7337*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7338*** to be unable to reliably create shared libraries on AIX.
7339*** Therefore, libtool is disabling shared libraries support. If you
7340*** really care for shared libraries, you may want to modify your PATH
7341*** so that a non-GNU linker is found, and then restart.
7342
7343_LT_EOF
7344 fi
7345 ;;
7346
7347 amigaos*)
7348 if test "$host_cpu" = m68k; then
7349 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)'
7350 hardcode_libdir_flag_spec='-L$libdir'
7351 hardcode_minus_L=yes
7352 fi
7353
7354 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7355 # that the semantics of dynamic libraries on AmigaOS, at least up
7356 # to version 4, is to share data among multiple programs linked
7357 # with the same dynamic library. Since this doesn't match the
7358 # behavior of shared libraries on other platforms, we can't use
7359 # them.
7360 ld_shlibs=no
7361 ;;
7362
7363 beos*)
7364 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7365 allow_undefined_flag=unsupported
7366 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7367 # support --undefined. This deserves some investigation. FIXME
7368 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7369 else
7370 ld_shlibs=no
7371 fi
7372 ;;
7373
7374 cygwin* | mingw* | pw32*)
7375 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7376 # as there is no search path for DLLs.
7377 hardcode_libdir_flag_spec='-L$libdir'
7378 allow_undefined_flag=unsupported
7379 always_export_symbols=no
7380 enable_shared_with_static_runtimes=yes
7381 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7382
7383 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7384 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7385 # If the export-symbols file already is a .def file (1st line
7386 # is EXPORTS), use it as is; otherwise, prepend...
7387 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7388 cp $export_symbols $output_objdir/$soname.def;
7389 else
7390 echo EXPORTS > $output_objdir/$soname.def;
7391 cat $export_symbols >> $output_objdir/$soname.def;
7392 fi~
7393 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7394 else
7395 ld_shlibs=no
7396 fi
7397 ;;
7398
7399 interix[3-9]*)
7400 hardcode_direct=no
7401 hardcode_shlibpath_var=no
7402 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7403 export_dynamic_flag_spec='${wl}-E'
7404 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7405 # Instead, shared libraries are loaded at an image base (0x10000000 by
7406 # default) and relocated if they conflict, which is a slow very memory
7407 # consuming and fragmenting process. To avoid this, we pick a random,
7408 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7409 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7410 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7411 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'
7412 ;;
7413
7414 gnu* | linux* | tpf* | k*bsd*-gnu)
7415 tmp_diet=no
7416 if test "$host_os" = linux-dietlibc; then
7417 case $cc_basename in
7418 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7419 esac
7420 fi
7421 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7422 && test "$tmp_diet" = no
7423 then
7424 tmp_addflag=
7425 case $cc_basename,$host_cpu in
7426 pgcc*) # Portland Group C compiler
7427 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'
7428 tmp_addflag=' $pic_flag'
7429 ;;
7430 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7431 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'
7432 tmp_addflag=' $pic_flag -Mnomain' ;;
7433 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7434 tmp_addflag=' -i_dynamic' ;;
7435 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7436 tmp_addflag=' -i_dynamic -nofor_main' ;;
7437 ifc* | ifort*) # Intel Fortran compiler
7438 tmp_addflag=' -nofor_main' ;;
7439 esac
7440 case `$CC -V 2>&1 | sed 5q` in
7441 *Sun\ C*) # Sun C 5.9
7442 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'
7443 compiler_needs_object=yes
7444 tmp_sharedflag='-G' ;;
7445 *Sun\ F*) # Sun Fortran 8.3
7446 tmp_sharedflag='-G' ;;
7447 *)
7448 tmp_sharedflag='-shared' ;;
7449 esac
7450 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7451
7452 if test "x$supports_anon_versioning" = xyes; then
7453 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7454 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7455 echo "local: *; };" >> $output_objdir/$libname.ver~
7456 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7457 fi
7458 else
7459 ld_shlibs=no
7460 fi
7461 ;;
7462
7463 netbsd*)
7464 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7465 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7466 wlarc=
7467 else
7468 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7469 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7470 fi
7471 ;;
7472
7473 solaris*)
7474 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7475 ld_shlibs=no
7476 cat <<_LT_EOF 1>&2
7477
7478*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7479*** create shared libraries on Solaris systems. Therefore, libtool
7480*** is disabling shared libraries support. We urge you to upgrade GNU
7481*** binutils to release 2.9.1 or newer. Another option is to modify
7482*** your PATH or compiler configuration so that the native linker is
7483*** used, and then restart.
7484
7485_LT_EOF
7486 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7487 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7488 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7489 else
7490 ld_shlibs=no
7491 fi
7492 ;;
7493
7494 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7495 case `$LD -v 2>&1` in
7496 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7497 ld_shlibs=no
7498 cat <<_LT_EOF 1>&2
7499
7500*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7501*** reliably create shared libraries on SCO systems. Therefore, libtool
7502*** is disabling shared libraries support. We urge you to upgrade GNU
7503*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7504*** your PATH or compiler configuration so that the native linker is
7505*** used, and then restart.
7506
7507_LT_EOF
7508 ;;
7509 *)
7510 # For security reasons, it is highly recommended that you always
7511 # use absolute paths for naming shared libraries, and exclude the
7512 # DT_RUNPATH tag from executables and libraries. But doing so
7513 # requires that you compile everything twice, which is a pain.
7514 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7515 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7516 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7517 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7518 else
7519 ld_shlibs=no
7520 fi
7521 ;;
7522 esac
7523 ;;
7524
7525 sunos4*)
7526 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7527 wlarc=
7528 hardcode_direct=yes
7529 hardcode_shlibpath_var=no
7530 ;;
7531
7532 *)
7533 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7534 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7535 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7536 else
7537 ld_shlibs=no
7538 fi
7539 ;;
7540 esac
7541
7542 if test "$ld_shlibs" = no; then
7543 runpath_var=
7544 hardcode_libdir_flag_spec=
7545 export_dynamic_flag_spec=
7546 whole_archive_flag_spec=
7547 fi
7548 else
7549 # PORTME fill in a description of your system's linker (not GNU ld)
7550 case $host_os in
7551 aix3*)
7552 allow_undefined_flag=unsupported
7553 always_export_symbols=yes
7554 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'
7555 # Note: this linker hardcodes the directories in LIBPATH if there
7556 # are no directories specified by -L.
7557 hardcode_minus_L=yes
7558 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7559 # Neither direct hardcoding nor static linking is supported with a
7560 # broken collect2.
7561 hardcode_direct=unsupported
7562 fi
7563 ;;
7564
50e7d84b 7565 aix[4-9]*)
d7040cdb
SE
7566 if test "$host_cpu" = ia64; then
7567 # On IA64, the linker does run time linking by default, so we don't
7568 # have to do anything special.
7569 aix_use_runtimelinking=no
7570 exp_sym_flag='-Bexport'
7571 no_entry_flag=""
7572 else
7573 # If we're using GNU nm, then we don't want the "-C" option.
7574 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7575 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7576 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'
7577 else
7578 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'
7579 fi
7580 aix_use_runtimelinking=no
7581
7582 # Test if we are trying to use run time linking or normal
7583 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7584 # need to do runtime linking.
50e7d84b 7585 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
d7040cdb
SE
7586 for ld_flag in $LDFLAGS; do
7587 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7588 aix_use_runtimelinking=yes
7589 break
7590 fi
7591 done
7592 ;;
7593 esac
7594
7595 exp_sym_flag='-bexport'
7596 no_entry_flag='-bnoentry'
7597 fi
7598
7599 # When large executables or shared objects are built, AIX ld can
7600 # have problems creating the table of contents. If linking a library
7601 # or program results in "error TOC overflow" add -mminimal-toc to
7602 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7603 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7604
7605 archive_cmds=''
7606 hardcode_direct=yes
7607 hardcode_direct_absolute=yes
7608 hardcode_libdir_separator=':'
7609 link_all_deplibs=yes
7610 file_list_spec='${wl}-f,'
7611
7612 if test "$GCC" = yes; then
7613 case $host_os in aix4.[012]|aix4.[012].*)
7614 # We only want to do this on AIX 4.2 and lower, the check
7615 # below for broken collect2 doesn't work under 4.3+
7616 collect2name=`${CC} -print-prog-name=collect2`
7617 if test -f "$collect2name" &&
7618 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7619 then
7620 # We have reworked collect2
7621 :
7622 else
7623 # We have old collect2
7624 hardcode_direct=unsupported
7625 # It fails to find uninstalled libraries when the uninstalled
7626 # path is not listed in the libpath. Setting hardcode_minus_L
7627 # to unsupported forces relinking
7628 hardcode_minus_L=yes
7629 hardcode_libdir_flag_spec='-L$libdir'
7630 hardcode_libdir_separator=
7631 fi
7632 ;;
7633 esac
7634 shared_flag='-shared'
7635 if test "$aix_use_runtimelinking" = yes; then
7636 shared_flag="$shared_flag "'${wl}-G'
7637 fi
7638 else
7639 # not using gcc
7640 if test "$host_cpu" = ia64; then
7641 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7642 # chokes on -Wl,-G. The following line is correct:
7643 shared_flag='-G'
7644 else
7645 if test "$aix_use_runtimelinking" = yes; then
7646 shared_flag='${wl}-G'
7647 else
7648 shared_flag='${wl}-bM:SRE'
7649 fi
7650 fi
7651 fi
7652
7653 # It seems that -bexpall does not export symbols beginning with
7654 # underscore (_), so it is better to generate a list of symbols to export.
7655 always_export_symbols=yes
7656 if test "$aix_use_runtimelinking" = yes; then
7657 # Warning - without using the other runtime loading flags (-brtl),
7658 # -berok will link without error, but may produce a broken library.
7659 allow_undefined_flag='-berok'
7660 # Determine the default libpath from the value encoded in an
7661 # empty executable.
7662 cat >conftest.$ac_ext <<_ACEOF
42ecbf5e
DJ
7663/* confdefs.h. */
7664_ACEOF
7665cat confdefs.h >>conftest.$ac_ext
7666cat >>conftest.$ac_ext <<_ACEOF
7667/* end confdefs.h. */
d7040cdb
SE
7668
7669int
7670main ()
7671{
7672
7673 ;
7674 return 0;
7675}
42ecbf5e 7676_ACEOF
d7040cdb
SE
7677rm -f conftest.$ac_objext conftest$ac_exeext
7678if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7679 (eval $ac_link) 2>conftest.er1
42ecbf5e
DJ
7680 ac_status=$?
7681 grep -v '^ *+' conftest.er1 >conftest.err
7682 rm -f conftest.er1
7683 cat conftest.err >&5
7684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
7685 (exit $ac_status); } &&
7686 { ac_try='test -z "$ac_c_werror_flag"
7687 || test ! -s conftest.err'
7688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7689 (eval $ac_try) 2>&5
7690 ac_status=$?
7691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7692 (exit $ac_status); }; } &&
7693 { ac_try='test -s conftest$ac_exeext'
7694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7695 (eval $ac_try) 2>&5
7696 ac_status=$?
7697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7698 (exit $ac_status); }; }; then
7699
7700lt_aix_libpath_sed='
7701 /Import File Strings/,/^$/ {
7702 /^0/ {
7703 s/^0 *\(.*\)$/\1/
7704 p
7705 }
7706 }'
7707aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7708# Check for a 64-bit object if we didn't find anything.
7709if test -z "$aix_libpath"; then
7710 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
252b5132 7711fi
252b5132 7712else
20e95c23
DJ
7713 echo "$as_me: failed program was:" >&5
7714sed 's/^/| /' conftest.$ac_ext >&5
7715
252b5132 7716fi
d7040cdb
SE
7717rm -f conftest.err conftest.$ac_objext \
7718 conftest$ac_exeext conftest.$ac_ext
7719if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
252b5132 7720
d7040cdb
SE
7721 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7722 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"
7723 else
7724 if test "$host_cpu" = ia64; then
7725 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7726 allow_undefined_flag="-z nodefs"
7727 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"
7728 else
7729 # Determine the default libpath from the value encoded in an
7730 # empty executable.
7731 cat >conftest.$ac_ext <<_ACEOF
42ecbf5e
DJ
7732/* confdefs.h. */
7733_ACEOF
7734cat confdefs.h >>conftest.$ac_ext
7735cat >>conftest.$ac_ext <<_ACEOF
7736/* end confdefs.h. */
d7040cdb
SE
7737
7738int
7739main ()
7740{
7741
7742 ;
7743 return 0;
7744}
42ecbf5e 7745_ACEOF
d7040cdb
SE
7746rm -f conftest.$ac_objext conftest$ac_exeext
7747if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7748 (eval $ac_link) 2>conftest.er1
42ecbf5e
DJ
7749 ac_status=$?
7750 grep -v '^ *+' conftest.er1 >conftest.err
7751 rm -f conftest.er1
7752 cat conftest.err >&5
7753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
7754 (exit $ac_status); } &&
7755 { ac_try='test -z "$ac_c_werror_flag"
7756 || test ! -s conftest.err'
7757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7758 (eval $ac_try) 2>&5
7759 ac_status=$?
7760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761 (exit $ac_status); }; } &&
7762 { ac_try='test -s conftest$ac_exeext'
7763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7764 (eval $ac_try) 2>&5
7765 ac_status=$?
7766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767 (exit $ac_status); }; }; then
7768
7769lt_aix_libpath_sed='
7770 /Import File Strings/,/^$/ {
7771 /^0/ {
7772 s/^0 *\(.*\)$/\1/
7773 p
7774 }
7775 }'
7776aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7777# Check for a 64-bit object if we didn't find anything.
7778if test -z "$aix_libpath"; then
7779 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20e95c23 7780fi
252b5132 7781else
42ecbf5e
DJ
7782 echo "$as_me: failed program was:" >&5
7783sed 's/^/| /' conftest.$ac_ext >&5
7784
252b5132 7785fi
d7040cdb
SE
7786rm -f conftest.err conftest.$ac_objext \
7787 conftest$ac_exeext conftest.$ac_ext
7788if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7789
7790 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7791 # Warning - without using the other run time loading flags,
7792 # -berok will link without error, but may produce a broken library.
7793 no_undefined_flag=' ${wl}-bernotok'
7794 allow_undefined_flag=' ${wl}-berok'
7795 # Exported symbols can be pulled into shared objects from archives
7796 whole_archive_flag_spec='$convenience'
7797 archive_cmds_need_lc=yes
7798 # This is similar to how AIX traditionally builds its shared libraries.
7799 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'
7800 fi
7801 fi
7802 ;;
42ecbf5e 7803
d7040cdb
SE
7804 amigaos*)
7805 if test "$host_cpu" = m68k; then
7806 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)'
7807 hardcode_libdir_flag_spec='-L$libdir'
7808 hardcode_minus_L=yes
7809 fi
7810 # see comment about different semantics on the GNU ld section
7811 ld_shlibs=no
7812 ;;
252b5132 7813
d7040cdb
SE
7814 bsdi[45]*)
7815 export_dynamic_flag_spec=-rdynamic
7816 ;;
252b5132 7817
d7040cdb
SE
7818 cygwin* | mingw* | pw32*)
7819 # When not using gcc, we currently assume that we are using
7820 # Microsoft Visual C++.
7821 # hardcode_libdir_flag_spec is actually meaningless, as there is
7822 # no search path for DLLs.
7823 hardcode_libdir_flag_spec=' '
7824 allow_undefined_flag=unsupported
7825 # Tell ltmain to make .lib files, not .a files.
7826 libext=lib
7827 # Tell ltmain to make .dll files, not .so files.
7828 shrext_cmds=".dll"
7829 # FIXME: Setting linknames here is a bad hack.
7830 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7831 # The linker will automatically build a .lib file if we build a DLL.
7832 old_archive_from_new_cmds='true'
7833 # FIXME: Should let the user specify the lib program.
7834 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7835 fix_srcfile_path='`cygpath -w "$srcfile"`'
7836 enable_shared_with_static_runtimes=yes
7837 ;;
252b5132 7838
d7040cdb
SE
7839 darwin* | rhapsody*)
7840 case $host_os in
7841 rhapsody* | darwin1.[012])
7842 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7843 ;;
7844 *) # Darwin 1.3 on
7845 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7846 10.[012])
7847 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7848 ;;
7849 10.*)
7850 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7851 ;;
7852 esac
7853 ;;
7854 esac
7855 archive_cmds_need_lc=no
7856 hardcode_direct=no
7857 hardcode_automatic=yes
7858 hardcode_shlibpath_var=unsupported
7859 whole_archive_flag_spec=''
7860 link_all_deplibs=yes
7861 if test "$GCC" = yes ; then
7862 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7863 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7864else
d7040cdb
SE
7865 lt_cv_apple_cc_single_mod=no
7866 if test -z "${LT_MULTI_MODULE}"; then
7867 # By default we will add the -single_module flag. You can override
7868 # by either setting the environment variable LT_MULTI_MODULE
7869 # non-empty at configure time, or by adding -multi-module to the
7870 # link flags.
7871 echo "int foo(void){return 1;}" > conftest.c
7872 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7873 -dynamiclib ${wl}-single_module conftest.c
7874 if test -f libconftest.dylib; then
7875 lt_cv_apple_cc_single_mod=yes
7876 rm libconftest.dylib
7877 fi
7878 rm conftest.$ac_ext
7879 fi
252b5132 7880fi
c46f8c51 7881
d7040cdb
SE
7882 output_verbose_link_cmd=echo
7883 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
7884 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7885 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}'
7886 else
7887 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7888 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}'
7889 fi
7890 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7891 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}'
7892 else
7893 case $cc_basename in
7894 xlc*)
7895 output_verbose_link_cmd=echo
7896 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
7897 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7898 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7899 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}'
7900 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}'
7901 ;;
7902 *)
7903 ld_shlibs=no
7904 ;;
7905 esac
7906 fi
7907 ;;
42ecbf5e 7908
d7040cdb
SE
7909 dgux*)
7910 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7911 hardcode_libdir_flag_spec='-L$libdir'
7912 hardcode_shlibpath_var=no
7913 ;;
252b5132 7914
d7040cdb
SE
7915 freebsd1*)
7916 ld_shlibs=no
7917 ;;
252b5132 7918
d7040cdb
SE
7919 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7920 # support. Future versions do this automatically, but an explicit c++rt0.o
7921 # does not break anything, and helps significantly (at the cost of a little
7922 # extra space).
7923 freebsd2.2*)
7924 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7925 hardcode_libdir_flag_spec='-R$libdir'
7926 hardcode_direct=yes
7927 hardcode_shlibpath_var=no
7928 ;;
252b5132 7929
d7040cdb
SE
7930 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7931 freebsd2*)
7932 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7933 hardcode_direct=yes
7934 hardcode_minus_L=yes
7935 hardcode_shlibpath_var=no
7936 ;;
42ecbf5e 7937
d7040cdb
SE
7938 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7939 freebsd* | dragonfly*)
7940 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7941 hardcode_libdir_flag_spec='-R$libdir'
7942 hardcode_direct=yes
7943 hardcode_shlibpath_var=no
7944 ;;
252b5132 7945
d7040cdb
SE
7946 hpux9*)
7947 if test "$GCC" = yes; then
7948 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'
7949 else
7950 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'
7951 fi
7952 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7953 hardcode_libdir_separator=:
7954 hardcode_direct=yes
7955
7956 # hardcode_minus_L: Not really in the search PATH,
7957 # but as the default location of the library.
7958 hardcode_minus_L=yes
7959 export_dynamic_flag_spec='${wl}-E'
7960 ;;
20e95c23 7961
d7040cdb
SE
7962 hpux10*)
7963 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7964 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7965 else
7966 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7967 fi
7968 if test "$with_gnu_ld" = no; then
7969 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7970 hardcode_libdir_flag_spec_ld='+b $libdir'
7971 hardcode_libdir_separator=:
7972 hardcode_direct=yes
7973 hardcode_direct_absolute=yes
7974 export_dynamic_flag_spec='${wl}-E'
7975 # hardcode_minus_L: Not really in the search PATH,
7976 # but as the default location of the library.
7977 hardcode_minus_L=yes
7978 fi
7979 ;;
20e95c23 7980
d7040cdb
SE
7981 hpux11*)
7982 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7983 case $host_cpu in
7984 hppa*64*)
7985 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7986 ;;
7987 ia64*)
7988 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7989 ;;
7990 *)
7991 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7992 ;;
7993 esac
7994 else
7995 case $host_cpu in
7996 hppa*64*)
7997 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7998 ;;
7999 ia64*)
8000 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8001 ;;
8002 *)
8003 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8004 ;;
8005 esac
8006 fi
8007 if test "$with_gnu_ld" = no; then
8008 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8009 hardcode_libdir_separator=:
8010
8011 case $host_cpu in
8012 hppa*64*|ia64*)
8013 hardcode_direct=no
8014 hardcode_shlibpath_var=no
8015 ;;
8016 *)
8017 hardcode_direct=yes
8018 hardcode_direct_absolute=yes
8019 export_dynamic_flag_spec='${wl}-E'
8020
8021 # hardcode_minus_L: Not really in the search PATH,
8022 # but as the default location of the library.
8023 hardcode_minus_L=yes
8024 ;;
8025 esac
8026 fi
8027 ;;
8028
8029 irix5* | irix6* | nonstopux*)
8030 if test "$GCC" = yes; then
8031 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'
8032 # Try to use the -exported_symbol ld option, if it does not
8033 # work, assume that -exports_file does not work either and
8034 # implicitly export all symbols.
8035 save_LDFLAGS="$LDFLAGS"
8036 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8037 cat >conftest.$ac_ext <<_ACEOF
8038int foo(void) {}
42ecbf5e 8039_ACEOF
d7040cdb
SE
8040rm -f conftest.$ac_objext conftest$ac_exeext
8041if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8042 (eval $ac_link) 2>conftest.er1
42ecbf5e
DJ
8043 ac_status=$?
8044 grep -v '^ *+' conftest.er1 >conftest.err
8045 rm -f conftest.er1
8046 cat conftest.err >&5
8047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048 (exit $ac_status); } &&
b7d4af3a
JW
8049 { ac_try='test -z "$ac_c_werror_flag"
8050 || test ! -s conftest.err'
42ecbf5e
DJ
8051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8052 (eval $ac_try) 2>&5
8053 ac_status=$?
8054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055 (exit $ac_status); }; } &&
d7040cdb 8056 { ac_try='test -s conftest$ac_exeext'
42ecbf5e
DJ
8057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8058 (eval $ac_try) 2>&5
8059 ac_status=$?
8060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061 (exit $ac_status); }; }; then
d7040cdb
SE
8062 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'
8063
42ecbf5e
DJ
8064else
8065 echo "$as_me: failed program was:" >&5
8066sed 's/^/| /' conftest.$ac_ext >&5
8067
42ecbf5e 8068fi
d7040cdb
SE
8069rm -f conftest.err conftest.$ac_objext \
8070 conftest$ac_exeext conftest.$ac_ext
8071 LDFLAGS="$save_LDFLAGS"
8072 else
8073 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'
8074 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'
8075 fi
8076 archive_cmds_need_lc='no'
8077 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8078 hardcode_libdir_separator=:
8079 inherit_rpath=yes
8080 link_all_deplibs=yes
8081 ;;
42ecbf5e 8082
d7040cdb
SE
8083 netbsd*)
8084 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8085 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8086 else
8087 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8088 fi
8089 hardcode_libdir_flag_spec='-R$libdir'
8090 hardcode_direct=yes
8091 hardcode_shlibpath_var=no
8092 ;;
42ecbf5e 8093
d7040cdb
SE
8094 newsos6)
8095 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8096 hardcode_direct=yes
8097 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8098 hardcode_libdir_separator=:
8099 hardcode_shlibpath_var=no
8100 ;;
42ecbf5e 8101
d7040cdb
SE
8102 *nto* | *qnx*)
8103 ;;
252b5132 8104
d7040cdb
SE
8105 openbsd*)
8106 hardcode_direct=yes
8107 hardcode_shlibpath_var=no
8108 hardcode_direct_absolute=yes
8109 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8110 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8111 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8112 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8113 export_dynamic_flag_spec='${wl}-E'
8114 else
8115 case $host_os in
8116 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8117 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8118 hardcode_libdir_flag_spec='-R$libdir'
8119 ;;
8120 *)
8121 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8122 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8123 ;;
8124 esac
8125 fi
8126 ;;
252b5132 8127
d7040cdb
SE
8128 os2*)
8129 hardcode_libdir_flag_spec='-L$libdir'
8130 hardcode_minus_L=yes
8131 allow_undefined_flag=unsupported
8132 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'
8133 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8134 ;;
2481e6a2 8135
d7040cdb
SE
8136 osf3*)
8137 if test "$GCC" = yes; then
8138 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8139 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'
8140 else
8141 allow_undefined_flag=' -expect_unresolved \*'
8142 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'
8143 fi
8144 archive_cmds_need_lc='no'
8145 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8146 hardcode_libdir_separator=:
8147 ;;
42ecbf5e 8148
d7040cdb
SE
8149 osf4* | osf5*) # as osf3* with the addition of -msym flag
8150 if test "$GCC" = yes; then
8151 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8152 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'
8153 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8154 else
8155 allow_undefined_flag=' -expect_unresolved \*'
8156 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'
8157 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~
8158 $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 8159
d7040cdb
SE
8160 # Both c and cxx compiler support -rpath directly
8161 hardcode_libdir_flag_spec='-rpath $libdir'
8162 fi
8163 archive_cmds_need_lc='no'
8164 hardcode_libdir_separator=:
8165 ;;
8166
8167 solaris*)
8168 no_undefined_flag=' -z defs'
8169 if test "$GCC" = yes; then
8170 wlarc='${wl}'
8171 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8172 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8173 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8174 else
8175 case `$CC -V 2>&1` in
8176 *"Compilers 5.0"*)
8177 wlarc=''
8178 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8179 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8180 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8181 ;;
8182 *)
8183 wlarc='${wl}'
8184 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8185 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8186 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8187 ;;
8188 esac
8189 fi
8190 hardcode_libdir_flag_spec='-R$libdir'
8191 hardcode_shlibpath_var=no
8192 case $host_os in
8193 solaris2.[0-5] | solaris2.[0-5].*) ;;
8194 *)
8195 # The compiler driver will combine and reorder linker options,
8196 # but understands `-z linker_flag'. GCC discards it without `$wl',
8197 # but is careful enough not to reorder.
8198 # Supported since Solaris 2.6 (maybe 2.5.1?)
8199 if test "$GCC" = yes; then
8200 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8201 else
8202 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8203 fi
8204 ;;
8205 esac
8206 link_all_deplibs=yes
8207 ;;
8208
8209 sunos4*)
8210 if test "x$host_vendor" = xsequent; then
8211 # Use $CC to link under sequent, because it throws in some extra .o
8212 # files that make .init and .fini sections work.
8213 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8214 else
8215 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8216 fi
8217 hardcode_libdir_flag_spec='-L$libdir'
8218 hardcode_direct=yes
8219 hardcode_minus_L=yes
8220 hardcode_shlibpath_var=no
8221 ;;
8222
8223 sysv4)
8224 case $host_vendor in
8225 sni)
8226 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8227 hardcode_direct=yes # is this really true???
8228 ;;
8229 siemens)
8230 ## LD is ld it makes a PLAMLIB
8231 ## CC just makes a GrossModule.
8232 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8233 reload_cmds='$CC -r -o $output$reload_objs'
8234 hardcode_direct=no
8235 ;;
8236 motorola)
8237 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8238 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8239 ;;
8240 esac
8241 runpath_var='LD_RUN_PATH'
8242 hardcode_shlibpath_var=no
8243 ;;
8244
8245 sysv4.3*)
8246 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8247 hardcode_shlibpath_var=no
8248 export_dynamic_flag_spec='-Bexport'
8249 ;;
8250
8251 sysv4*MP*)
8252 if test -d /usr/nec; then
8253 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8254 hardcode_shlibpath_var=no
8255 runpath_var=LD_RUN_PATH
8256 hardcode_runpath_var=yes
8257 ld_shlibs=yes
8258 fi
8259 ;;
8260
8261 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8262 no_undefined_flag='${wl}-z,text'
8263 archive_cmds_need_lc=no
8264 hardcode_shlibpath_var=no
8265 runpath_var='LD_RUN_PATH'
8266
8267 if test "$GCC" = yes; then
8268 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8269 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8270 else
8271 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8272 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8273 fi
8274 ;;
8275
8276 sysv5* | sco3.2v5* | sco5v6*)
8277 # Note: We can NOT use -z defs as we might desire, because we do not
8278 # link with -lc, and that would cause any symbols used from libc to
8279 # always be unresolved, which means just about no library would
8280 # ever link correctly. If we're not using GNU ld we use -z text
8281 # though, which does catch some bad symbols but isn't as heavy-handed
8282 # as -z defs.
8283 no_undefined_flag='${wl}-z,text'
8284 allow_undefined_flag='${wl}-z,nodefs'
8285 archive_cmds_need_lc=no
8286 hardcode_shlibpath_var=no
8287 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8288 hardcode_libdir_separator=':'
8289 link_all_deplibs=yes
8290 export_dynamic_flag_spec='${wl}-Bexport'
8291 runpath_var='LD_RUN_PATH'
8292
8293 if test "$GCC" = yes; then
8294 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8295 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8296 else
8297 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8298 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8299 fi
8300 ;;
8301
8302 uts4*)
8303 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8304 hardcode_libdir_flag_spec='-L$libdir'
8305 hardcode_shlibpath_var=no
8306 ;;
8307
8308 *)
8309 ld_shlibs=no
8310 ;;
8311 esac
8312
8313 if test x$host_vendor = xsni; then
8314 case $host in
8315 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8316 export_dynamic_flag_spec='${wl}-Blargedynsym'
8317 ;;
8318 esac
8319 fi
8320 fi
8321
8322echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8323echo "${ECHO_T}$ld_shlibs" >&6
8324test "$ld_shlibs" = no && can_build_shared=no
8325
8326with_gnu_ld=$with_gnu_ld
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342#
8343# Do we need to explicitly link libc?
8344#
8345case "x$archive_cmds_need_lc" in
8346x|xyes)
8347 # Assume -lc should be added
8348 archive_cmds_need_lc=yes
8349
8350 if test "$enable_shared" = yes && test "$GCC" = yes; then
8351 case $archive_cmds in
8352 *'~'*)
8353 # FIXME: we may have to deal with multi-command sequences.
8354 ;;
8355 '$CC '*)
8356 # Test whether the compiler implicitly links with -lc since on some
8357 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8358 # to ld, don't add -lc before -lgcc.
8359 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8360echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8361 $RM conftest*
8362 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8363
8364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8365 (eval $ac_compile) 2>&5
20e95c23
DJ
8366 ac_status=$?
8367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
8368 (exit $ac_status); } 2>conftest.err; then
8369 soname=conftest
8370 lib=conftest
8371 libobjs=conftest.$ac_objext
8372 deplibs=
8373 wl=$lt_prog_compiler_wl
8374 pic_flag=$lt_prog_compiler_pic
8375 compiler_flags=-v
8376 linker_flags=-v
8377 verstring=
8378 output_objdir=.
8379 libname=conftest
8380 lt_save_allow_undefined_flag=$allow_undefined_flag
8381 allow_undefined_flag=
8382 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8383 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20e95c23
DJ
8384 ac_status=$?
8385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
8386 (exit $ac_status); }
8387 then
8388 archive_cmds_need_lc=no
8389 else
8390 archive_cmds_need_lc=yes
8391 fi
8392 allow_undefined_flag=$lt_save_allow_undefined_flag
8393 else
8394 cat conftest.err 1>&5
8395 fi
8396 $RM conftest*
8397 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8398echo "${ECHO_T}$archive_cmds_need_lc" >&6
8399 ;;
8400 esac
8401 fi
8402 ;;
8403esac
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8562echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8563withGCC=$GCC
8564if test "$withGCC" = yes; then
8565 case $host_os in
8566 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8567 *) lt_awk_arg="/^libraries:/" ;;
8568 esac
8569 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8570 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8571 # if the path contains ";" then we assume it to be the separator
8572 # otherwise default to the standard path separator (i.e. ":") - it is
8573 # assumed that no part of a normal pathname contains ";" but that should
8574 # okay in the real world where ";" in dirpaths is itself problematic.
8575 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8576 else
8577 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8578 fi
8579 # Ok, now we have the path, separated by spaces, we can step through it
8580 # and add multilib dir if necessary.
8581 lt_tmp_lt_search_path_spec=
8582 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8583 for lt_sys_path in $lt_search_path_spec; do
8584 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8585 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8586 else
8587 test -d "$lt_sys_path" && \
8588 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8589 fi
8590 done
8591 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8592BEGIN {RS=" "; FS="/|\n";} {
8593 lt_foo="";
8594 lt_count=0;
8595 for (lt_i = NF; lt_i > 0; lt_i--) {
8596 if ($lt_i != "" && $lt_i != ".") {
8597 if ($lt_i == "..") {
8598 lt_count++;
8599 } else {
8600 if (lt_count == 0) {
8601 lt_foo="/" $lt_i lt_foo;
8602 } else {
8603 lt_count--;
8604 }
8605 }
8606 }
8607 }
8608 if (lt_foo != "") { lt_freq[lt_foo]++; }
8609 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8610}'`
8611 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8612else
8613 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8614fi
8615library_names_spec=
8616libname_spec='lib$name'
8617soname_spec=
8618shrext_cmds=".so"
8619postinstall_cmds=
8620postuninstall_cmds=
8621finish_cmds=
8622finish_eval=
8623shlibpath_var=
8624shlibpath_overrides_runpath=unknown
8625version_type=none
8626dynamic_linker="$host_os ld.so"
8627sys_lib_dlsearch_path_spec="/lib /usr/lib"
8628need_lib_prefix=unknown
8629hardcode_into_libs=no
8630
8631# when you set need_version to no, make sure it does not cause -set_version
8632# flags to be left without arguments
8633need_version=unknown
8634
8635case $host_os in
8636aix3*)
8637 version_type=linux
8638 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8639 shlibpath_var=LIBPATH
8640
8641 # AIX 3 has no versioning support, so we append a major version to the name.
8642 soname_spec='${libname}${release}${shared_ext}$major'
8643 ;;
8644
50e7d84b 8645aix[4-9]*)
d7040cdb
SE
8646 version_type=linux
8647 need_lib_prefix=no
8648 need_version=no
8649 hardcode_into_libs=yes
8650 if test "$host_cpu" = ia64; then
8651 # AIX 5 supports IA64
8652 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8653 shlibpath_var=LD_LIBRARY_PATH
8654 else
8655 # With GCC up to 2.95.x, collect2 would create an import file
8656 # for dependence libraries. The import file would start with
8657 # the line `#! .'. This would cause the generated library to
8658 # depend on `.', always an invalid library. This was fixed in
8659 # development snapshots of GCC prior to 3.0.
8660 case $host_os in
8661 aix4 | aix4.[01] | aix4.[01].*)
8662 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8663 echo ' yes '
8664 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8665 :
8666 else
8667 can_build_shared=no
8668 fi
8669 ;;
8670 esac
8671 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8672 # soname into executable. Probably we can add versioning support to
8673 # collect2, so additional links can be useful in future.
8674 if test "$aix_use_runtimelinking" = yes; then
8675 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8676 # instead of lib<name>.a to let people know that these are not
8677 # typical AIX shared libraries.
8678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8679 else
8680 # We preserve .a as extension for shared libraries through AIX4.2
8681 # and later when we are not doing run time linking.
8682 library_names_spec='${libname}${release}.a $libname.a'
8683 soname_spec='${libname}${release}${shared_ext}$major'
8684 fi
8685 shlibpath_var=LIBPATH
8686 fi
8687 ;;
8688
8689amigaos*)
8690 if test "$host_cpu" = m68k; then
8691 library_names_spec='$libname.ixlibrary $libname.a'
8692 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8693 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'
8694 else
8695 dynamic_linker=no
8696 fi
8697 ;;
8698
8699beos*)
8700 library_names_spec='${libname}${shared_ext}'
8701 dynamic_linker="$host_os ld.so"
8702 shlibpath_var=LIBRARY_PATH
8703 ;;
8704
8705bsdi[45]*)
8706 version_type=linux
8707 need_version=no
8708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8709 soname_spec='${libname}${release}${shared_ext}$major'
8710 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8711 shlibpath_var=LD_LIBRARY_PATH
8712 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8713 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8714 # the default ld.so.conf also contains /usr/contrib/lib and
8715 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8716 # libtool to hard-code these into programs
8717 ;;
8718
8719cygwin* | mingw* | pw32*)
8720 version_type=windows
8721 shrext_cmds=".dll"
8722 need_version=no
8723 need_lib_prefix=no
8724
8725 case $withGCC,$host_os in
8726 yes,cygwin* | yes,mingw* | yes,pw32*)
8727 library_names_spec='$libname.dll.a'
8728 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8729 postinstall_cmds='base_file=`basename \${file}`~
8730 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8731 dldir=$destdir/`dirname \$dlpath`~
8732 test -d \$dldir || mkdir -p \$dldir~
8733 $install_prog $dir/$dlname \$dldir/$dlname~
8734 chmod a+x \$dldir/$dlname~
8735 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8736 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8737 fi'
8738 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8739 dlpath=$dir/\$dldll~
8740 $RM \$dlpath'
8741 shlibpath_overrides_runpath=yes
8742
8743 case $host_os in
8744 cygwin*)
8745 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8746 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8747 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8748 ;;
8749 mingw*)
8750 # MinGW DLLs use traditional 'lib' prefix
8751 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8752 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8753 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8754 # It is most probably a Windows format PATH printed by
8755 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8756 # path with ; separators, and with drive letters. We can handle the
8757 # drive letters (cygwin fileutils understands them), so leave them,
8758 # especially as we might pass files found there to a mingw objdump,
8759 # which wouldn't understand a cygwinified path. Ahh.
8760 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8761 else
8762 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8763 fi
8764 ;;
8765 pw32*)
8766 # pw32 DLLs use 'pw' prefix rather than 'lib'
8767 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8768 ;;
8769 esac
8770 ;;
8771
8772 *)
8773 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8774 ;;
8775 esac
8776 dynamic_linker='Win32 ld.exe'
8777 # FIXME: first we should search . and the directory the executable is in
8778 shlibpath_var=PATH
8779 ;;
8780
8781darwin* | rhapsody*)
8782 dynamic_linker="$host_os dyld"
8783 version_type=darwin
8784 need_lib_prefix=no
8785 need_version=no
8786 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8787 soname_spec='${libname}${release}${major}$shared_ext'
8788 shlibpath_overrides_runpath=yes
8789 shlibpath_var=DYLD_LIBRARY_PATH
8790 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8791
8792 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8793 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8794 ;;
8795
8796dgux*)
8797 version_type=linux
8798 need_lib_prefix=no
8799 need_version=no
8800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8801 soname_spec='${libname}${release}${shared_ext}$major'
8802 shlibpath_var=LD_LIBRARY_PATH
8803 ;;
8804
8805freebsd1*)
8806 dynamic_linker=no
8807 ;;
8808
8809freebsd* | dragonfly*)
8810 # DragonFly does not have aout. When/if they implement a new
8811 # versioning mechanism, adjust this.
8812 if test -x /usr/bin/objformat; then
8813 objformat=`/usr/bin/objformat`
8814 else
8815 case $host_os in
8816 freebsd[123]*) objformat=aout ;;
8817 *) objformat=elf ;;
8818 esac
8819 fi
8820 version_type=freebsd-$objformat
8821 case $version_type in
8822 freebsd-elf*)
8823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8824 need_version=no
8825 need_lib_prefix=no
8826 ;;
8827 freebsd-*)
8828 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8829 need_version=yes
8830 ;;
8831 esac
8832 shlibpath_var=LD_LIBRARY_PATH
8833 case $host_os in
8834 freebsd2*)
8835 shlibpath_overrides_runpath=yes
8836 ;;
8837 freebsd3.[01]* | freebsdelf3.[01]*)
8838 shlibpath_overrides_runpath=yes
8839 hardcode_into_libs=yes
8840 ;;
8841 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8842 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8843 shlibpath_overrides_runpath=no
8844 hardcode_into_libs=yes
8845 ;;
8846 *) # from 4.6 on, and DragonFly
8847 shlibpath_overrides_runpath=yes
8848 hardcode_into_libs=yes
8849 ;;
8850 esac
8851 ;;
8852
8853gnu*)
8854 version_type=linux
8855 need_lib_prefix=no
8856 need_version=no
8857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8858 soname_spec='${libname}${release}${shared_ext}$major'
8859 shlibpath_var=LD_LIBRARY_PATH
8860 hardcode_into_libs=yes
8861 ;;
8862
8863hpux9* | hpux10* | hpux11*)
8864 # Give a soname corresponding to the major version so that dld.sl refuses to
8865 # link against other versions.
8866 version_type=sunos
8867 need_lib_prefix=no
8868 need_version=no
8869 case $host_cpu in
8870 ia64*)
8871 shrext_cmds='.so'
8872 hardcode_into_libs=yes
8873 dynamic_linker="$host_os dld.so"
8874 shlibpath_var=LD_LIBRARY_PATH
8875 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8877 soname_spec='${libname}${release}${shared_ext}$major'
8878 if test "X$HPUX_IA64_MODE" = X32; then
8879 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8880 else
8881 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8882 fi
8883 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8884 ;;
8885 hppa*64*)
8886 shrext_cmds='.sl'
8887 hardcode_into_libs=yes
8888 dynamic_linker="$host_os dld.sl"
8889 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8890 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8892 soname_spec='${libname}${release}${shared_ext}$major'
8893 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8894 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8895 ;;
8896 *)
8897 shrext_cmds='.sl'
8898 dynamic_linker="$host_os dld.sl"
8899 shlibpath_var=SHLIB_PATH
8900 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8902 soname_spec='${libname}${release}${shared_ext}$major'
8903 ;;
8904 esac
8905 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8906 postinstall_cmds='chmod 555 $lib'
8907 ;;
8908
8909interix[3-9]*)
8910 version_type=linux
8911 need_lib_prefix=no
8912 need_version=no
8913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8914 soname_spec='${libname}${release}${shared_ext}$major'
8915 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8916 shlibpath_var=LD_LIBRARY_PATH
8917 shlibpath_overrides_runpath=no
8918 hardcode_into_libs=yes
8919 ;;
8920
8921irix5* | irix6* | nonstopux*)
8922 case $host_os in
8923 nonstopux*) version_type=nonstopux ;;
8924 *)
8925 if test "$lt_cv_prog_gnu_ld" = yes; then
8926 version_type=linux
8927 else
8928 version_type=irix
8929 fi ;;
8930 esac
8931 need_lib_prefix=no
8932 need_version=no
8933 soname_spec='${libname}${release}${shared_ext}$major'
8934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8935 case $host_os in
8936 irix5* | nonstopux*)
8937 libsuff= shlibsuff=
8938 ;;
8939 *)
8940 case $LD in # libtool.m4 will add one of these switches to LD
8941 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8942 libsuff= shlibsuff= libmagic=32-bit;;
8943 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8944 libsuff=32 shlibsuff=N32 libmagic=N32;;
8945 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8946 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8947 *) libsuff= shlibsuff= libmagic=never-match;;
8948 esac
8949 ;;
8950 esac
8951 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8952 shlibpath_overrides_runpath=no
8953 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8954 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8955 hardcode_into_libs=yes
8956 ;;
8957
8958# No shared lib support for Linux oldld, aout, or coff.
8959linux*oldld* | linux*aout* | linux*coff*)
8960 dynamic_linker=no
8961 ;;
8962
8963# This must be Linux ELF.
8964linux* | k*bsd*-gnu)
8965 version_type=linux
8966 need_lib_prefix=no
8967 need_version=no
8968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8969 soname_spec='${libname}${release}${shared_ext}$major'
8970 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8971 shlibpath_var=LD_LIBRARY_PATH
8972 shlibpath_overrides_runpath=no
8973 # Some binutils ld are patched to set DT_RUNPATH
8974 save_LDFLAGS=$LDFLAGS
8975 save_libdir=$libdir
8976 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8977 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8978 cat >conftest.$ac_ext <<_ACEOF
8979/* confdefs.h. */
8980_ACEOF
8981cat confdefs.h >>conftest.$ac_ext
8982cat >>conftest.$ac_ext <<_ACEOF
8983/* end confdefs.h. */
8984
8985int
8986main ()
8987{
8988
8989 ;
8990 return 0;
8991}
8992_ACEOF
8993rm -f conftest.$ac_objext conftest$ac_exeext
8994if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8995 (eval $ac_link) 2>conftest.er1
8996 ac_status=$?
8997 grep -v '^ *+' conftest.er1 >conftest.err
8998 rm -f conftest.er1
8999 cat conftest.err >&5
9000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001 (exit $ac_status); } &&
9002 { ac_try='test -z "$ac_c_werror_flag"
9003 || test ! -s conftest.err'
9004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9005 (eval $ac_try) 2>&5
9006 ac_status=$?
9007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008 (exit $ac_status); }; } &&
9009 { ac_try='test -s conftest$ac_exeext'
9010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9011 (eval $ac_try) 2>&5
9012 ac_status=$?
9013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9014 (exit $ac_status); }; }; then
9015 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
9016 shlibpath_overrides_runpath=yes
9017fi
9018
9019else
9020 echo "$as_me: failed program was:" >&5
9021sed 's/^/| /' conftest.$ac_ext >&5
9022
9023fi
9024rm -f conftest.err conftest.$ac_objext \
9025 conftest$ac_exeext conftest.$ac_ext
9026 LDFLAGS=$save_LDFLAGS
9027 libdir=$save_libdir
9028
9029 # This implies no fast_install, which is unacceptable.
9030 # Some rework will be needed to allow for fast_install
9031 # before this can be enabled.
9032 hardcode_into_libs=yes
9033
9034 # Append ld.so.conf contents to the search path
9035 if test -f /etc/ld.so.conf; then
9036 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' ' '`
9037 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9038 fi
9039
9040 # We used to test for /lib/ld.so.1 and disable shared libraries on
9041 # powerpc, because MkLinux only supported shared libraries with the
9042 # GNU dynamic linker. Since this was broken with cross compilers,
9043 # most powerpc-linux boxes support dynamic linking these days and
9044 # people can always --disable-shared, the test was removed, and we
9045 # assume the GNU/Linux dynamic linker is in use.
9046 dynamic_linker='GNU/Linux ld.so'
9047 ;;
9048
9049netbsd*)
9050 version_type=sunos
9051 need_lib_prefix=no
9052 need_version=no
9053 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9055 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9056 dynamic_linker='NetBSD (a.out) ld.so'
9057 else
9058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9059 soname_spec='${libname}${release}${shared_ext}$major'
9060 dynamic_linker='NetBSD ld.elf_so'
9061 fi
9062 shlibpath_var=LD_LIBRARY_PATH
9063 shlibpath_overrides_runpath=yes
9064 hardcode_into_libs=yes
9065 ;;
9066
9067newsos6)
9068 version_type=linux
9069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9070 shlibpath_var=LD_LIBRARY_PATH
9071 shlibpath_overrides_runpath=yes
9072 ;;
9073
9074*nto* | *qnx*)
9075 version_type=qnx
9076 need_lib_prefix=no
9077 need_version=no
9078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9079 soname_spec='${libname}${release}${shared_ext}$major'
9080 shlibpath_var=LD_LIBRARY_PATH
9081 shlibpath_overrides_runpath=no
9082 hardcode_into_libs=yes
9083 dynamic_linker='ldqnx.so'
9084 ;;
9085
9086openbsd*)
9087 version_type=sunos
9088 sys_lib_dlsearch_path_spec="/usr/lib"
9089 need_lib_prefix=no
9090 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9091 case $host_os in
9092 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9093 *) need_version=no ;;
9094 esac
9095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9096 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9097 shlibpath_var=LD_LIBRARY_PATH
9098 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9099 case $host_os in
9100 openbsd2.[89] | openbsd2.[89].*)
9101 shlibpath_overrides_runpath=no
9102 ;;
9103 *)
9104 shlibpath_overrides_runpath=yes
9105 ;;
9106 esac
9107 else
9108 shlibpath_overrides_runpath=yes
9109 fi
9110 ;;
9111
9112os2*)
9113 libname_spec='$name'
9114 shrext_cmds=".dll"
9115 need_lib_prefix=no
9116 library_names_spec='$libname${shared_ext} $libname.a'
9117 dynamic_linker='OS/2 ld.exe'
9118 shlibpath_var=LIBPATH
9119 ;;
9120
9121osf3* | osf4* | osf5*)
9122 version_type=osf
9123 need_lib_prefix=no
9124 need_version=no
9125 soname_spec='${libname}${release}${shared_ext}$major'
9126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9127 shlibpath_var=LD_LIBRARY_PATH
9128 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9129 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9130 ;;
9131
9132rdos*)
9133 dynamic_linker=no
9134 ;;
9135
9136solaris*)
9137 version_type=linux
9138 need_lib_prefix=no
9139 need_version=no
9140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9141 soname_spec='${libname}${release}${shared_ext}$major'
9142 shlibpath_var=LD_LIBRARY_PATH
9143 shlibpath_overrides_runpath=yes
9144 hardcode_into_libs=yes
9145 # ldd complains unless libraries are executable
9146 postinstall_cmds='chmod +x $lib'
9147 ;;
9148
9149sunos4*)
9150 version_type=sunos
9151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9152 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9153 shlibpath_var=LD_LIBRARY_PATH
9154 shlibpath_overrides_runpath=yes
9155 if test "$with_gnu_ld" = yes; then
9156 need_lib_prefix=no
9157 fi
9158 need_version=yes
9159 ;;
9160
9161sysv4 | sysv4.3*)
9162 version_type=linux
9163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9164 soname_spec='${libname}${release}${shared_ext}$major'
9165 shlibpath_var=LD_LIBRARY_PATH
9166 case $host_vendor in
9167 sni)
9168 shlibpath_overrides_runpath=no
9169 need_lib_prefix=no
9170 runpath_var=LD_RUN_PATH
9171 ;;
9172 siemens)
9173 need_lib_prefix=no
9174 ;;
9175 motorola)
9176 need_lib_prefix=no
9177 need_version=no
9178 shlibpath_overrides_runpath=no
9179 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9180 ;;
9181 esac
9182 ;;
9183
9184sysv4*MP*)
9185 if test -d /usr/nec ;then
9186 version_type=linux
9187 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9188 soname_spec='$libname${shared_ext}.$major'
9189 shlibpath_var=LD_LIBRARY_PATH
9190 fi
9191 ;;
9192
9193sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9194 version_type=freebsd-elf
9195 need_lib_prefix=no
9196 need_version=no
9197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9198 soname_spec='${libname}${release}${shared_ext}$major'
9199 shlibpath_var=LD_LIBRARY_PATH
9200 shlibpath_overrides_runpath=yes
9201 hardcode_into_libs=yes
9202 if test "$with_gnu_ld" = yes; then
9203 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9204 else
9205 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9206 case $host_os in
9207 sco3.2v5*)
9208 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9209 ;;
9210 esac
9211 fi
9212 sys_lib_dlsearch_path_spec='/usr/lib'
9213 ;;
9214
9215tpf*)
9216 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9217 version_type=linux
9218 need_lib_prefix=no
9219 need_version=no
9220 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9221 shlibpath_var=LD_LIBRARY_PATH
9222 shlibpath_overrides_runpath=no
9223 hardcode_into_libs=yes
9224 ;;
9225
9226uts4*)
9227 version_type=linux
9228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9229 soname_spec='${libname}${release}${shared_ext}$major'
9230 shlibpath_var=LD_LIBRARY_PATH
9231 ;;
9232
9233*)
9234 dynamic_linker=no
9235 ;;
9236esac
9237echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9238echo "${ECHO_T}$dynamic_linker" >&6
9239test "$dynamic_linker" = no && can_build_shared=no
9240
9241variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9242if test "$GCC" = yes; then
9243 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9244fi
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9333echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9334hardcode_action=
9335if test -n "$hardcode_libdir_flag_spec" ||
9336 test -n "$runpath_var" ||
9337 test "X$hardcode_automatic" = "Xyes" ; then
9338
9339 # We can hardcode non-existent directories.
9340 if test "$hardcode_direct" != no &&
9341 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9342 # have to relink, otherwise we might link with an installed library
9343 # when we should be linking with a yet-to-be-installed one
9344 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9345 test "$hardcode_minus_L" != no; then
9346 # Linking always hardcodes the temporary library directory.
9347 hardcode_action=relink
9348 else
9349 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9350 hardcode_action=immediate
9351 fi
9352else
9353 # We cannot hardcode anything, or else we can only hardcode existing
9354 # directories.
9355 hardcode_action=unsupported
9356fi
9357echo "$as_me:$LINENO: result: $hardcode_action" >&5
9358echo "${ECHO_T}$hardcode_action" >&6
9359
9360if test "$hardcode_action" = relink ||
9361 test "$inherit_rpath" = yes; then
9362 # Fast installation is not supported
9363 enable_fast_install=no
9364elif test "$shlibpath_overrides_runpath" = yes ||
9365 test "$enable_shared" = no; then
9366 # Fast installation is not necessary
9367 enable_fast_install=needless
9368fi
9369
9370
9371
9372
9373
9374
9375 if test "x$enable_dlopen" != xyes; then
9376 enable_dlopen=unknown
9377 enable_dlopen_self=unknown
9378 enable_dlopen_self_static=unknown
9379else
9380 lt_cv_dlopen=no
9381 lt_cv_dlopen_libs=
9382
9383 case $host_os in
9384 beos*)
9385 lt_cv_dlopen="load_add_on"
9386 lt_cv_dlopen_libs=
9387 lt_cv_dlopen_self=yes
9388 ;;
9389
9390 mingw* | pw32*)
9391 lt_cv_dlopen="LoadLibrary"
9392 lt_cv_dlopen_libs=
9393 ;;
9394
9395 cygwin*)
9396 lt_cv_dlopen="dlopen"
9397 lt_cv_dlopen_libs=
9398 ;;
9399
9400 darwin*)
9401 # if libdl is installed we need to link against it
9402 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9403echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9404if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9405 echo $ECHO_N "(cached) $ECHO_C" >&6
9406else
9407 ac_check_lib_save_LIBS=$LIBS
9408LIBS="-ldl $LIBS"
9409cat >conftest.$ac_ext <<_ACEOF
9410/* confdefs.h. */
9411_ACEOF
9412cat confdefs.h >>conftest.$ac_ext
9413cat >>conftest.$ac_ext <<_ACEOF
9414/* end confdefs.h. */
9415
9416/* Override any gcc2 internal prototype to avoid an error. */
9417#ifdef __cplusplus
9418extern "C"
9419#endif
9420/* We use char because int might match the return type of a gcc2
9421 builtin and then its argument prototype would still apply. */
9422char dlopen ();
9423int
9424main ()
9425{
9426dlopen ();
9427 ;
9428 return 0;
9429}
9430_ACEOF
9431rm -f conftest.$ac_objext conftest$ac_exeext
9432if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9433 (eval $ac_link) 2>conftest.er1
9434 ac_status=$?
9435 grep -v '^ *+' conftest.er1 >conftest.err
9436 rm -f conftest.er1
9437 cat conftest.err >&5
9438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439 (exit $ac_status); } &&
9440 { ac_try='test -z "$ac_c_werror_flag"
9441 || test ! -s conftest.err'
9442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9443 (eval $ac_try) 2>&5
9444 ac_status=$?
9445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9446 (exit $ac_status); }; } &&
9447 { ac_try='test -s conftest$ac_exeext'
9448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9449 (eval $ac_try) 2>&5
9450 ac_status=$?
9451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452 (exit $ac_status); }; }; then
9453 ac_cv_lib_dl_dlopen=yes
9454else
9455 echo "$as_me: failed program was:" >&5
9456sed 's/^/| /' conftest.$ac_ext >&5
9457
9458ac_cv_lib_dl_dlopen=no
9459fi
9460rm -f conftest.err conftest.$ac_objext \
9461 conftest$ac_exeext conftest.$ac_ext
9462LIBS=$ac_check_lib_save_LIBS
9463fi
9464echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9465echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9466if test $ac_cv_lib_dl_dlopen = yes; then
9467 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9468else
9469
9470 lt_cv_dlopen="dyld"
9471 lt_cv_dlopen_libs=
9472 lt_cv_dlopen_self=yes
9473
9474fi
9475
9476 ;;
9477
9478 *)
9479 echo "$as_me:$LINENO: checking for shl_load" >&5
9480echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9481if test "${ac_cv_func_shl_load+set}" = set; then
9482 echo $ECHO_N "(cached) $ECHO_C" >&6
9483else
9484 cat >conftest.$ac_ext <<_ACEOF
9485/* confdefs.h. */
9486_ACEOF
9487cat confdefs.h >>conftest.$ac_ext
9488cat >>conftest.$ac_ext <<_ACEOF
9489/* end confdefs.h. */
9490/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9491 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9492#define shl_load innocuous_shl_load
9493
9494/* System header to define __stub macros and hopefully few prototypes,
9495 which can conflict with char shl_load (); below.
9496 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9497 <limits.h> exists even on freestanding compilers. */
9498
9499#ifdef __STDC__
9500# include <limits.h>
9501#else
9502# include <assert.h>
9503#endif
9504
9505#undef shl_load
9506
9507/* Override any gcc2 internal prototype to avoid an error. */
9508#ifdef __cplusplus
9509extern "C"
9510{
9511#endif
9512/* We use char because int might match the return type of a gcc2
9513 builtin and then its argument prototype would still apply. */
9514char shl_load ();
9515/* The GNU C library defines this for functions which it implements
9516 to always fail with ENOSYS. Some functions are actually named
9517 something starting with __ and the normal name is an alias. */
9518#if defined (__stub_shl_load) || defined (__stub___shl_load)
9519choke me
9520#else
9521char (*f) () = shl_load;
9522#endif
9523#ifdef __cplusplus
9524}
9525#endif
9526
9527int
9528main ()
9529{
9530return f != shl_load;
9531 ;
9532 return 0;
9533}
9534_ACEOF
9535rm -f conftest.$ac_objext conftest$ac_exeext
9536if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9537 (eval $ac_link) 2>conftest.er1
9538 ac_status=$?
9539 grep -v '^ *+' conftest.er1 >conftest.err
9540 rm -f conftest.er1
9541 cat conftest.err >&5
9542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9543 (exit $ac_status); } &&
9544 { ac_try='test -z "$ac_c_werror_flag"
9545 || test ! -s conftest.err'
9546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9547 (eval $ac_try) 2>&5
9548 ac_status=$?
9549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550 (exit $ac_status); }; } &&
9551 { ac_try='test -s conftest$ac_exeext'
9552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9553 (eval $ac_try) 2>&5
9554 ac_status=$?
9555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556 (exit $ac_status); }; }; then
9557 ac_cv_func_shl_load=yes
9558else
9559 echo "$as_me: failed program was:" >&5
9560sed 's/^/| /' conftest.$ac_ext >&5
9561
9562ac_cv_func_shl_load=no
9563fi
9564rm -f conftest.err conftest.$ac_objext \
9565 conftest$ac_exeext conftest.$ac_ext
9566fi
9567echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9568echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9569if test $ac_cv_func_shl_load = yes; then
9570 lt_cv_dlopen="shl_load"
9571else
9572 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9573echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9574if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9575 echo $ECHO_N "(cached) $ECHO_C" >&6
9576else
9577 ac_check_lib_save_LIBS=$LIBS
9578LIBS="-ldld $LIBS"
9579cat >conftest.$ac_ext <<_ACEOF
9580/* confdefs.h. */
9581_ACEOF
9582cat confdefs.h >>conftest.$ac_ext
9583cat >>conftest.$ac_ext <<_ACEOF
9584/* end confdefs.h. */
9585
9586/* Override any gcc2 internal prototype to avoid an error. */
9587#ifdef __cplusplus
9588extern "C"
9589#endif
9590/* We use char because int might match the return type of a gcc2
9591 builtin and then its argument prototype would still apply. */
9592char shl_load ();
9593int
9594main ()
9595{
9596shl_load ();
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); } &&
9610 { ac_try='test -z "$ac_c_werror_flag"
9611 || test ! -s conftest.err'
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 ac_cv_lib_dld_shl_load=yes
9624else
9625 echo "$as_me: failed program was:" >&5
9626sed 's/^/| /' conftest.$ac_ext >&5
9627
9628ac_cv_lib_dld_shl_load=no
9629fi
9630rm -f conftest.err conftest.$ac_objext \
9631 conftest$ac_exeext conftest.$ac_ext
9632LIBS=$ac_check_lib_save_LIBS
9633fi
9634echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9635echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9636if test $ac_cv_lib_dld_shl_load = yes; then
9637 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9638else
9639 echo "$as_me:$LINENO: checking for dlopen" >&5
9640echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9641if test "${ac_cv_func_dlopen+set}" = set; then
9642 echo $ECHO_N "(cached) $ECHO_C" >&6
9643else
9644 cat >conftest.$ac_ext <<_ACEOF
9645/* confdefs.h. */
9646_ACEOF
9647cat confdefs.h >>conftest.$ac_ext
9648cat >>conftest.$ac_ext <<_ACEOF
9649/* end confdefs.h. */
9650/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9651 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9652#define dlopen innocuous_dlopen
9653
9654/* System header to define __stub macros and hopefully few prototypes,
9655 which can conflict with char dlopen (); below.
9656 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9657 <limits.h> exists even on freestanding compilers. */
9658
9659#ifdef __STDC__
9660# include <limits.h>
9661#else
9662# include <assert.h>
9663#endif
9664
9665#undef dlopen
9666
9667/* Override any gcc2 internal prototype to avoid an error. */
9668#ifdef __cplusplus
9669extern "C"
9670{
9671#endif
9672/* We use char because int might match the return type of a gcc2
9673 builtin and then its argument prototype would still apply. */
9674char dlopen ();
9675/* The GNU C library defines this for functions which it implements
9676 to always fail with ENOSYS. Some functions are actually named
9677 something starting with __ and the normal name is an alias. */
9678#if defined (__stub_dlopen) || defined (__stub___dlopen)
9679choke me
9680#else
9681char (*f) () = dlopen;
9682#endif
9683#ifdef __cplusplus
9684}
9685#endif
9686
9687int
9688main ()
9689{
9690return f != dlopen;
9691 ;
9692 return 0;
9693}
9694_ACEOF
9695rm -f conftest.$ac_objext conftest$ac_exeext
9696if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9697 (eval $ac_link) 2>conftest.er1
9698 ac_status=$?
9699 grep -v '^ *+' conftest.er1 >conftest.err
9700 rm -f conftest.er1
9701 cat conftest.err >&5
9702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9703 (exit $ac_status); } &&
9704 { ac_try='test -z "$ac_c_werror_flag"
9705 || test ! -s conftest.err'
9706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9707 (eval $ac_try) 2>&5
9708 ac_status=$?
9709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710 (exit $ac_status); }; } &&
9711 { ac_try='test -s conftest$ac_exeext'
9712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9713 (eval $ac_try) 2>&5
9714 ac_status=$?
9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716 (exit $ac_status); }; }; then
9717 ac_cv_func_dlopen=yes
9718else
9719 echo "$as_me: failed program was:" >&5
9720sed 's/^/| /' conftest.$ac_ext >&5
9721
9722ac_cv_func_dlopen=no
9723fi
9724rm -f conftest.err conftest.$ac_objext \
9725 conftest$ac_exeext conftest.$ac_ext
9726fi
9727echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9728echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9729if test $ac_cv_func_dlopen = yes; then
9730 lt_cv_dlopen="dlopen"
9731else
9732 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9733echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9734if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9735 echo $ECHO_N "(cached) $ECHO_C" >&6
9736else
9737 ac_check_lib_save_LIBS=$LIBS
9738LIBS="-ldl $LIBS"
9739cat >conftest.$ac_ext <<_ACEOF
9740/* confdefs.h. */
9741_ACEOF
9742cat confdefs.h >>conftest.$ac_ext
9743cat >>conftest.$ac_ext <<_ACEOF
9744/* end confdefs.h. */
9745
9746/* Override any gcc2 internal prototype to avoid an error. */
9747#ifdef __cplusplus
9748extern "C"
9749#endif
9750/* We use char because int might match the return type of a gcc2
9751 builtin and then its argument prototype would still apply. */
9752char dlopen ();
9753int
9754main ()
9755{
9756dlopen ();
9757 ;
9758 return 0;
9759}
9760_ACEOF
9761rm -f conftest.$ac_objext conftest$ac_exeext
9762if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9763 (eval $ac_link) 2>conftest.er1
9764 ac_status=$?
9765 grep -v '^ *+' conftest.er1 >conftest.err
9766 rm -f conftest.er1
9767 cat conftest.err >&5
9768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769 (exit $ac_status); } &&
9770 { ac_try='test -z "$ac_c_werror_flag"
9771 || test ! -s conftest.err'
9772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9773 (eval $ac_try) 2>&5
9774 ac_status=$?
9775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9776 (exit $ac_status); }; } &&
9777 { ac_try='test -s conftest$ac_exeext'
9778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9779 (eval $ac_try) 2>&5
9780 ac_status=$?
9781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782 (exit $ac_status); }; }; then
9783 ac_cv_lib_dl_dlopen=yes
9784else
9785 echo "$as_me: failed program was:" >&5
9786sed 's/^/| /' conftest.$ac_ext >&5
9787
9788ac_cv_lib_dl_dlopen=no
9789fi
9790rm -f conftest.err conftest.$ac_objext \
9791 conftest$ac_exeext conftest.$ac_ext
9792LIBS=$ac_check_lib_save_LIBS
9793fi
9794echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9795echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9796if test $ac_cv_lib_dl_dlopen = yes; then
9797 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9798else
9799 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9800echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9801if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9802 echo $ECHO_N "(cached) $ECHO_C" >&6
9803else
9804 ac_check_lib_save_LIBS=$LIBS
9805LIBS="-lsvld $LIBS"
9806cat >conftest.$ac_ext <<_ACEOF
9807/* confdefs.h. */
9808_ACEOF
9809cat confdefs.h >>conftest.$ac_ext
9810cat >>conftest.$ac_ext <<_ACEOF
9811/* end confdefs.h. */
9812
9813/* Override any gcc2 internal prototype to avoid an error. */
9814#ifdef __cplusplus
9815extern "C"
9816#endif
9817/* We use char because int might match the return type of a gcc2
9818 builtin and then its argument prototype would still apply. */
9819char dlopen ();
9820int
9821main ()
9822{
9823dlopen ();
9824 ;
9825 return 0;
9826}
9827_ACEOF
9828rm -f conftest.$ac_objext conftest$ac_exeext
9829if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9830 (eval $ac_link) 2>conftest.er1
9831 ac_status=$?
9832 grep -v '^ *+' conftest.er1 >conftest.err
9833 rm -f conftest.er1
9834 cat conftest.err >&5
9835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9836 (exit $ac_status); } &&
9837 { ac_try='test -z "$ac_c_werror_flag"
9838 || test ! -s conftest.err'
9839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9840 (eval $ac_try) 2>&5
9841 ac_status=$?
9842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843 (exit $ac_status); }; } &&
9844 { ac_try='test -s conftest$ac_exeext'
9845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9846 (eval $ac_try) 2>&5
9847 ac_status=$?
9848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849 (exit $ac_status); }; }; then
9850 ac_cv_lib_svld_dlopen=yes
9851else
9852 echo "$as_me: failed program was:" >&5
9853sed 's/^/| /' conftest.$ac_ext >&5
9854
9855ac_cv_lib_svld_dlopen=no
9856fi
9857rm -f conftest.err conftest.$ac_objext \
9858 conftest$ac_exeext conftest.$ac_ext
9859LIBS=$ac_check_lib_save_LIBS
9860fi
9861echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9862echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9863if test $ac_cv_lib_svld_dlopen = yes; then
9864 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9865else
9866 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9867echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9868if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9869 echo $ECHO_N "(cached) $ECHO_C" >&6
9870else
9871 ac_check_lib_save_LIBS=$LIBS
9872LIBS="-ldld $LIBS"
9873cat >conftest.$ac_ext <<_ACEOF
9874/* confdefs.h. */
9875_ACEOF
9876cat confdefs.h >>conftest.$ac_ext
9877cat >>conftest.$ac_ext <<_ACEOF
9878/* end confdefs.h. */
9879
9880/* Override any gcc2 internal prototype to avoid an error. */
9881#ifdef __cplusplus
9882extern "C"
9883#endif
9884/* We use char because int might match the return type of a gcc2
9885 builtin and then its argument prototype would still apply. */
9886char dld_link ();
9887int
9888main ()
9889{
9890dld_link ();
9891 ;
9892 return 0;
9893}
9894_ACEOF
9895rm -f conftest.$ac_objext conftest$ac_exeext
9896if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9897 (eval $ac_link) 2>conftest.er1
9898 ac_status=$?
9899 grep -v '^ *+' conftest.er1 >conftest.err
9900 rm -f conftest.er1
9901 cat conftest.err >&5
9902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9903 (exit $ac_status); } &&
9904 { ac_try='test -z "$ac_c_werror_flag"
9905 || test ! -s conftest.err'
9906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9907 (eval $ac_try) 2>&5
9908 ac_status=$?
9909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910 (exit $ac_status); }; } &&
9911 { ac_try='test -s conftest$ac_exeext'
9912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9913 (eval $ac_try) 2>&5
9914 ac_status=$?
9915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916 (exit $ac_status); }; }; then
9917 ac_cv_lib_dld_dld_link=yes
9918else
9919 echo "$as_me: failed program was:" >&5
9920sed 's/^/| /' conftest.$ac_ext >&5
9921
9922ac_cv_lib_dld_dld_link=no
9923fi
9924rm -f conftest.err conftest.$ac_objext \
9925 conftest$ac_exeext conftest.$ac_ext
9926LIBS=$ac_check_lib_save_LIBS
9927fi
9928echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9929echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9930if test $ac_cv_lib_dld_dld_link = yes; then
9931 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9932fi
9933
9934
9935fi
9936
9937
9938fi
9939
9940
9941fi
9942
9943
9944fi
9945
9946
9947fi
9948
9949 ;;
9950 esac
9951
9952 if test "x$lt_cv_dlopen" != xno; then
9953 enable_dlopen=yes
9954 else
9955 enable_dlopen=no
9956 fi
9957
9958 case $lt_cv_dlopen in
9959 dlopen)
9960 save_CPPFLAGS="$CPPFLAGS"
9961 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9962
9963 save_LDFLAGS="$LDFLAGS"
9964 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9965
9966 save_LIBS="$LIBS"
9967 LIBS="$lt_cv_dlopen_libs $LIBS"
9968
9969 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9970echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9971if test "${lt_cv_dlopen_self+set}" = set; then
9972 echo $ECHO_N "(cached) $ECHO_C" >&6
9973else
9974 if test "$cross_compiling" = yes; then :
9975 lt_cv_dlopen_self=cross
9976else
9977 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9978 lt_status=$lt_dlunknown
9979 cat > conftest.$ac_ext <<_LT_EOF
7a283e07 9980#line 9980 "configure"
d7040cdb
SE
9981#include "confdefs.h"
9982
9983#if HAVE_DLFCN_H
9984#include <dlfcn.h>
9985#endif
9986
9987#include <stdio.h>
9988
9989#ifdef RTLD_GLOBAL
9990# define LT_DLGLOBAL RTLD_GLOBAL
9991#else
9992# ifdef DL_GLOBAL
9993# define LT_DLGLOBAL DL_GLOBAL
9994# else
9995# define LT_DLGLOBAL 0
9996# endif
9997#endif
9998
9999/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10000 find out it does not work in some platform. */
10001#ifndef LT_DLLAZY_OR_NOW
10002# ifdef RTLD_LAZY
10003# define LT_DLLAZY_OR_NOW RTLD_LAZY
10004# else
10005# ifdef DL_LAZY
10006# define LT_DLLAZY_OR_NOW DL_LAZY
10007# else
10008# ifdef RTLD_NOW
10009# define LT_DLLAZY_OR_NOW RTLD_NOW
10010# else
10011# ifdef DL_NOW
10012# define LT_DLLAZY_OR_NOW DL_NOW
10013# else
10014# define LT_DLLAZY_OR_NOW 0
10015# endif
10016# endif
10017# endif
10018# endif
10019#endif
10020
10021#ifdef __cplusplus
10022extern "C" void exit (int);
10023#endif
10024
10025void fnord() { int i=42;}
10026int main ()
10027{
10028 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10029 int status = $lt_dlunknown;
10030
10031 if (self)
10032 {
10033 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10034 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10035 /* dlclose (self); */
10036 }
10037 else
10038 puts (dlerror ());
10039
10040 exit (status);
10041}
10042_LT_EOF
10043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10044 (eval $ac_link) 2>&5
10045 ac_status=$?
10046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10048 (./conftest; exit; ) >&5 2>/dev/null
10049 lt_status=$?
10050 case x$lt_status in
10051 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10052 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10053 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10054 esac
10055 else :
10056 # compilation failed
10057 lt_cv_dlopen_self=no
10058 fi
10059fi
10060rm -fr conftest*
10061
10062
10063fi
10064echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10065echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10066
10067 if test "x$lt_cv_dlopen_self" = xyes; then
10068 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10069 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10070echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10071if test "${lt_cv_dlopen_self_static+set}" = set; then
10072 echo $ECHO_N "(cached) $ECHO_C" >&6
10073else
10074 if test "$cross_compiling" = yes; then :
10075 lt_cv_dlopen_self_static=cross
10076else
10077 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10078 lt_status=$lt_dlunknown
10079 cat > conftest.$ac_ext <<_LT_EOF
7a283e07 10080#line 10080 "configure"
d7040cdb
SE
10081#include "confdefs.h"
10082
10083#if HAVE_DLFCN_H
10084#include <dlfcn.h>
10085#endif
10086
10087#include <stdio.h>
10088
10089#ifdef RTLD_GLOBAL
10090# define LT_DLGLOBAL RTLD_GLOBAL
10091#else
10092# ifdef DL_GLOBAL
10093# define LT_DLGLOBAL DL_GLOBAL
10094# else
10095# define LT_DLGLOBAL 0
10096# endif
10097#endif
10098
10099/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10100 find out it does not work in some platform. */
10101#ifndef LT_DLLAZY_OR_NOW
10102# ifdef RTLD_LAZY
10103# define LT_DLLAZY_OR_NOW RTLD_LAZY
10104# else
10105# ifdef DL_LAZY
10106# define LT_DLLAZY_OR_NOW DL_LAZY
10107# else
10108# ifdef RTLD_NOW
10109# define LT_DLLAZY_OR_NOW RTLD_NOW
10110# else
10111# ifdef DL_NOW
10112# define LT_DLLAZY_OR_NOW DL_NOW
10113# else
10114# define LT_DLLAZY_OR_NOW 0
10115# endif
10116# endif
10117# endif
10118# endif
10119#endif
10120
10121#ifdef __cplusplus
10122extern "C" void exit (int);
10123#endif
10124
10125void fnord() { int i=42;}
10126int main ()
10127{
10128 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10129 int status = $lt_dlunknown;
10130
10131 if (self)
10132 {
10133 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10134 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10135 /* dlclose (self); */
10136 }
10137 else
10138 puts (dlerror ());
10139
10140 exit (status);
10141}
10142_LT_EOF
10143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10144 (eval $ac_link) 2>&5
10145 ac_status=$?
10146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10148 (./conftest; exit; ) >&5 2>/dev/null
10149 lt_status=$?
10150 case x$lt_status in
10151 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10152 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10153 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10154 esac
10155 else :
10156 # compilation failed
10157 lt_cv_dlopen_self_static=no
10158 fi
10159fi
10160rm -fr conftest*
10161
10162
10163fi
10164echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10165echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10166 fi
10167
10168 CPPFLAGS="$save_CPPFLAGS"
10169 LDFLAGS="$save_LDFLAGS"
10170 LIBS="$save_LIBS"
10171 ;;
10172 esac
10173
10174 case $lt_cv_dlopen_self in
10175 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10176 *) enable_dlopen_self=unknown ;;
10177 esac
10178
10179 case $lt_cv_dlopen_self_static in
10180 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10181 *) enable_dlopen_self_static=unknown ;;
10182 esac
10183fi
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201striplib=
10202old_striplib=
10203echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10204echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10205if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10206 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10207 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10208 echo "$as_me:$LINENO: result: yes" >&5
10209echo "${ECHO_T}yes" >&6
10210else
10211# FIXME - insert some real tests, host_os isn't really good enough
10212 case $host_os in
10213 darwin*)
10214 if test -n "$STRIP" ; then
10215 striplib="$STRIP -x"
10216 old_striplib="$STRIP -S"
10217 echo "$as_me:$LINENO: result: yes" >&5
10218echo "${ECHO_T}yes" >&6
10219 else
10220 echo "$as_me:$LINENO: result: no" >&5
10221echo "${ECHO_T}no" >&6
10222 fi
10223 ;;
10224 *)
10225 echo "$as_me:$LINENO: result: no" >&5
10226echo "${ECHO_T}no" >&6
10227 ;;
10228 esac
10229fi
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242 # Report which library types will actually be built
10243 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10244echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10245 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10246echo "${ECHO_T}$can_build_shared" >&6
10247
10248 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10249echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10250 test "$can_build_shared" = "no" && enable_shared=no
10251
10252 # On AIX, shared libraries and static libraries use the same namespace, and
10253 # are all built from PIC.
10254 case $host_os in
10255 aix3*)
10256 test "$enable_shared" = yes && enable_static=no
10257 if test -n "$RANLIB"; then
10258 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10259 postinstall_cmds='$RANLIB $lib'
10260 fi
10261 ;;
10262
50e7d84b 10263 aix[4-9]*)
d7040cdb
SE
10264 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10265 test "$enable_shared" = yes && enable_static=no
10266 fi
10267 ;;
10268 esac
10269 echo "$as_me:$LINENO: result: $enable_shared" >&5
10270echo "${ECHO_T}$enable_shared" >&6
10271
10272 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10273echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10274 # Make sure either enable_shared or enable_static is yes.
10275 test "$enable_shared" = yes || enable_static=yes
10276 echo "$as_me:$LINENO: result: $enable_static" >&5
10277echo "${ECHO_T}$enable_static" >&6
10278
10279
10280
10281
10282fi
10283ac_ext=c
10284ac_cpp='$CPP $CPPFLAGS'
10285ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10286ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10287ac_compiler_gnu=$ac_cv_c_compiler_gnu
10288
10289CC="$lt_save_CC"
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303 ac_config_commands="$ac_config_commands libtool"
10304
10305
10306
10307
10308# Only expand once:
10309
10310
10311
10312# Check whether --enable-targets or --disable-targets was given.
10313if test "${enable_targets+set}" = set; then
10314 enableval="$enable_targets"
10315 case "${enableval}" in
10316 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
10317echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
10318 { (exit 1); exit 1; }; }
10319 ;;
10320 no) enable_targets= ;;
10321 *) enable_targets=$enableval ;;
10322esac
10323fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
10324if test "${enable_commonbfdlib+set}" = set; then
10325 enableval="$enable_commonbfdlib"
10326 case "${enableval}" in
10327 yes) commonbfdlib=true ;;
10328 no) commonbfdlib=false ;;
10329 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
10330echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
10331 { (exit 1); exit 1; }; } ;;
10332esac
10333fi;
10334
10335GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
10336
10337# Check whether --enable-werror or --disable-werror was given.
10338if test "${enable_werror+set}" = set; then
10339 enableval="$enable_werror"
10340 case "${enableval}" in
10341 yes | y) ERROR_ON_WARNING="yes" ;;
10342 no | n) ERROR_ON_WARNING="no" ;;
10343 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
10344echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
10345 { (exit 1); exit 1; }; } ;;
10346 esac
10347fi;
10348
bb8541b9
L
10349# Enable -Wno-format by default when using gcc on mingw
10350case "${host}" in
10351 *-*-mingw32*)
10352 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10353 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
10354 fi
10355 ;;
10356 *) ;;
10357esac
10358
d7040cdb
SE
10359# Enable -Werror by default when using gcc
10360if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10361 ERROR_ON_WARNING=yes
10362fi
10363
10364NO_WERROR=
10365if test "${ERROR_ON_WARNING}" = yes ; then
10366 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
10367 NO_WERROR="-Wno-error"
10368fi
10369
10370if test "${GCC}" = yes ; then
10371 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
10372fi
10373
10374# Check whether --enable-build-warnings or --disable-build-warnings was given.
10375if test "${enable_build_warnings+set}" = set; then
10376 enableval="$enable_build_warnings"
10377 case "${enableval}" in
10378 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
10379 no) if test "${GCC}" = yes ; then
10380 WARN_CFLAGS="-w"
10381 fi;;
10382 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10383 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
10384 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10385 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
10386 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
10387esac
10388fi;
10389
10390if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
10391 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
10392fi
10393
10394
10395
10396
10397
10398 ac_config_headers="$ac_config_headers config.h:config.in"
10399
10400
10401if test -z "$target" ; then
10402 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
10403echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
10404 { (exit 1); exit 1; }; }
10405fi
10406if test -z "$host" ; then
10407 { { echo "$as_me:$LINENO: error: Unrecognized host system type; please check config.sub." >&5
10408echo "$as_me: error: Unrecognized host system type; please check config.sub." >&2;}
10409 { (exit 1); exit 1; }; }
10410fi
10411
10412for ac_prog in 'bison -y' byacc
10413do
10414 # Extract the first word of "$ac_prog", so it can be a program name with args.
10415set dummy $ac_prog; ac_word=$2
10416echo "$as_me:$LINENO: checking for $ac_word" >&5
10417echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10418if test "${ac_cv_prog_YACC+set}" = set; then
10419 echo $ECHO_N "(cached) $ECHO_C" >&6
10420else
10421 if test -n "$YACC"; then
10422 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10423else
10424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10425for as_dir in $PATH
10426do
10427 IFS=$as_save_IFS
10428 test -z "$as_dir" && as_dir=.
10429 for ac_exec_ext in '' $ac_executable_extensions; do
10430 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10431 ac_cv_prog_YACC="$ac_prog"
10432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10433 break 2
10434 fi
10435done
10436done
10437
10438fi
10439fi
10440YACC=$ac_cv_prog_YACC
10441if test -n "$YACC"; then
10442 echo "$as_me:$LINENO: result: $YACC" >&5
10443echo "${ECHO_T}$YACC" >&6
10444else
10445 echo "$as_me:$LINENO: result: no" >&5
10446echo "${ECHO_T}no" >&6
10447fi
10448
10449 test -n "$YACC" && break
10450done
10451test -n "$YACC" || YACC="yacc"
10452
10453for ac_prog in flex lex
10454do
10455 # Extract the first word of "$ac_prog", so it can be a program name with args.
10456set dummy $ac_prog; ac_word=$2
10457echo "$as_me:$LINENO: checking for $ac_word" >&5
10458echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10459if test "${ac_cv_prog_LEX+set}" = set; then
10460 echo $ECHO_N "(cached) $ECHO_C" >&6
10461else
10462 if test -n "$LEX"; then
10463 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10464else
10465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10466for as_dir in $PATH
10467do
10468 IFS=$as_save_IFS
10469 test -z "$as_dir" && as_dir=.
10470 for ac_exec_ext in '' $ac_executable_extensions; do
10471 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10472 ac_cv_prog_LEX="$ac_prog"
10473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10474 break 2
10475 fi
10476done
10477done
10478
10479fi
10480fi
10481LEX=$ac_cv_prog_LEX
10482if test -n "$LEX"; then
10483 echo "$as_me:$LINENO: result: $LEX" >&5
10484echo "${ECHO_T}$LEX" >&6
10485else
10486 echo "$as_me:$LINENO: result: no" >&5
10487echo "${ECHO_T}no" >&6
10488fi
10489
10490 test -n "$LEX" && break
10491done
10492test -n "$LEX" || LEX=":"
10493
10494if test -z "$LEXLIB"
10495then
10496 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
10497echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
10498if test "${ac_cv_lib_fl_yywrap+set}" = set; then
10499 echo $ECHO_N "(cached) $ECHO_C" >&6
10500else
10501 ac_check_lib_save_LIBS=$LIBS
10502LIBS="-lfl $LIBS"
10503cat >conftest.$ac_ext <<_ACEOF
10504/* confdefs.h. */
10505_ACEOF
10506cat confdefs.h >>conftest.$ac_ext
10507cat >>conftest.$ac_ext <<_ACEOF
10508/* end confdefs.h. */
10509
10510/* Override any gcc2 internal prototype to avoid an error. */
10511#ifdef __cplusplus
10512extern "C"
10513#endif
10514/* We use char because int might match the return type of a gcc2
10515 builtin and then its argument prototype would still apply. */
10516char yywrap ();
10517int
10518main ()
10519{
10520yywrap ();
10521 ;
10522 return 0;
10523}
10524_ACEOF
10525rm -f conftest.$ac_objext conftest$ac_exeext
10526if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10527 (eval $ac_link) 2>conftest.er1
10528 ac_status=$?
10529 grep -v '^ *+' conftest.er1 >conftest.err
10530 rm -f conftest.er1
10531 cat conftest.err >&5
10532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533 (exit $ac_status); } &&
10534 { ac_try='test -z "$ac_c_werror_flag"
10535 || test ! -s conftest.err'
10536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10537 (eval $ac_try) 2>&5
10538 ac_status=$?
10539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540 (exit $ac_status); }; } &&
10541 { ac_try='test -s conftest$ac_exeext'
10542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10543 (eval $ac_try) 2>&5
10544 ac_status=$?
10545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546 (exit $ac_status); }; }; then
10547 ac_cv_lib_fl_yywrap=yes
10548else
10549 echo "$as_me: failed program was:" >&5
10550sed 's/^/| /' conftest.$ac_ext >&5
10551
10552ac_cv_lib_fl_yywrap=no
10553fi
10554rm -f conftest.err conftest.$ac_objext \
10555 conftest$ac_exeext conftest.$ac_ext
10556LIBS=$ac_check_lib_save_LIBS
10557fi
10558echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
10559echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
10560if test $ac_cv_lib_fl_yywrap = yes; then
10561 LEXLIB="-lfl"
10562else
10563 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
10564echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
10565if test "${ac_cv_lib_l_yywrap+set}" = set; then
10566 echo $ECHO_N "(cached) $ECHO_C" >&6
10567else
10568 ac_check_lib_save_LIBS=$LIBS
10569LIBS="-ll $LIBS"
10570cat >conftest.$ac_ext <<_ACEOF
10571/* confdefs.h. */
10572_ACEOF
10573cat confdefs.h >>conftest.$ac_ext
10574cat >>conftest.$ac_ext <<_ACEOF
10575/* end confdefs.h. */
10576
10577/* Override any gcc2 internal prototype to avoid an error. */
10578#ifdef __cplusplus
10579extern "C"
10580#endif
10581/* We use char because int might match the return type of a gcc2
10582 builtin and then its argument prototype would still apply. */
10583char yywrap ();
10584int
10585main ()
10586{
10587yywrap ();
10588 ;
10589 return 0;
10590}
10591_ACEOF
10592rm -f conftest.$ac_objext conftest$ac_exeext
10593if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10594 (eval $ac_link) 2>conftest.er1
10595 ac_status=$?
10596 grep -v '^ *+' conftest.er1 >conftest.err
10597 rm -f conftest.er1
10598 cat conftest.err >&5
10599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600 (exit $ac_status); } &&
10601 { ac_try='test -z "$ac_c_werror_flag"
10602 || test ! -s conftest.err'
10603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10604 (eval $ac_try) 2>&5
10605 ac_status=$?
10606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607 (exit $ac_status); }; } &&
10608 { ac_try='test -s conftest$ac_exeext'
10609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10610 (eval $ac_try) 2>&5
10611 ac_status=$?
10612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613 (exit $ac_status); }; }; then
10614 ac_cv_lib_l_yywrap=yes
10615else
10616 echo "$as_me: failed program was:" >&5
10617sed 's/^/| /' conftest.$ac_ext >&5
10618
10619ac_cv_lib_l_yywrap=no
10620fi
10621rm -f conftest.err conftest.$ac_objext \
10622 conftest$ac_exeext conftest.$ac_ext
10623LIBS=$ac_check_lib_save_LIBS
10624fi
10625echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
10626echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
10627if test $ac_cv_lib_l_yywrap = yes; then
10628 LEXLIB="-ll"
10629fi
10630
10631fi
10632
10633fi
10634
10635if test "x$LEX" != "x:"; then
10636 echo "$as_me:$LINENO: checking lex output file root" >&5
10637echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
10638if test "${ac_cv_prog_lex_root+set}" = set; then
10639 echo $ECHO_N "(cached) $ECHO_C" >&6
10640else
10641 # The minimal lex program is just a single line: %%. But some broken lexes
10642# (Solaris, I think it was) want two %% lines, so accommodate them.
10643cat >conftest.l <<_ACEOF
10644%%
10645%%
10646_ACEOF
10647{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
10648 (eval $LEX conftest.l) 2>&5
10649 ac_status=$?
10650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651 (exit $ac_status); }
10652if test -f lex.yy.c; then
10653 ac_cv_prog_lex_root=lex.yy
10654elif test -f lexyy.c; then
10655 ac_cv_prog_lex_root=lexyy
10656else
10657 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
10658echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
10659 { (exit 1); exit 1; }; }
10660fi
10661fi
10662echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
10663echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
10664rm -f conftest.l
10665LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
10666
10667echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
10668echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
10669if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
10670 echo $ECHO_N "(cached) $ECHO_C" >&6
10671else
10672 # POSIX says lex can declare yytext either as a pointer or an array; the
10673# default is implementation-dependent. Figure out which it is, since
10674# not all implementations provide the %pointer and %array declarations.
10675ac_cv_prog_lex_yytext_pointer=no
10676echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
10677ac_save_LIBS=$LIBS
10678LIBS="$LIBS $LEXLIB"
10679cat >conftest.$ac_ext <<_ACEOF
10680`cat $LEX_OUTPUT_ROOT.c`
10681_ACEOF
10682rm -f conftest.$ac_objext conftest$ac_exeext
10683if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10684 (eval $ac_link) 2>conftest.er1
10685 ac_status=$?
10686 grep -v '^ *+' conftest.er1 >conftest.err
10687 rm -f conftest.er1
10688 cat conftest.err >&5
10689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690 (exit $ac_status); } &&
10691 { ac_try='test -z "$ac_c_werror_flag"
10692 || test ! -s conftest.err'
10693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10694 (eval $ac_try) 2>&5
10695 ac_status=$?
10696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10697 (exit $ac_status); }; } &&
10698 { ac_try='test -s conftest$ac_exeext'
10699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10700 (eval $ac_try) 2>&5
10701 ac_status=$?
10702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703 (exit $ac_status); }; }; then
10704 ac_cv_prog_lex_yytext_pointer=yes
10705else
10706 echo "$as_me: failed program was:" >&5
10707sed 's/^/| /' conftest.$ac_ext >&5
10708
10709fi
10710rm -f conftest.err conftest.$ac_objext \
10711 conftest$ac_exeext conftest.$ac_ext
10712LIBS=$ac_save_LIBS
10713rm -f "${LEX_OUTPUT_ROOT}.c"
10714
10715fi
10716echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
10717echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
10718if test $ac_cv_prog_lex_yytext_pointer = yes; then
10719
10720cat >>confdefs.h <<\_ACEOF
10721#define YYTEXT_POINTER 1
10722_ACEOF
10723
10724fi
10725
10726fi
10727if test "$LEX" = :; then
10728 LEX=${am_missing_run}flex
10729fi
10730
30b0f203 10731ALL_LINGUAS="fr tr ja es sv da zh_CN ru ro rw zh_TW fi vi uk sk"
d7040cdb
SE
10732# If we haven't got the data from the intl directory,
10733# assume NLS is disabled.
10734USE_NLS=no
10735LIBINTL=
10736LIBINTL_DEP=
10737INCINTL=
10738XGETTEXT=
10739GMSGFMT=
10740POSUB=
10741
10742if test -f ../intl/config.intl; then
10743 . ../intl/config.intl
10744fi
10745echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10746echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10747if test x"$USE_NLS" != xyes; then
10748 echo "$as_me:$LINENO: result: no" >&5
10749echo "${ECHO_T}no" >&6
10750else
10751 echo "$as_me:$LINENO: result: yes" >&5
10752echo "${ECHO_T}yes" >&6
10753
10754cat >>confdefs.h <<\_ACEOF
10755#define ENABLE_NLS 1
10756_ACEOF
10757
10758
10759 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
10760echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
10761 # Look for .po and .gmo files in the source directory.
10762 CATALOGS=
10763 XLINGUAS=
10764 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
10765 # If there aren't any .gmo files the shell will give us the
10766 # literal string "../path/to/srcdir/po/*.gmo" which has to be
10767 # weeded out.
10768 case "$cat" in *\**)
10769 continue;;
10770 esac
10771 # The quadruple backslash is collapsed to a double backslash
10772 # by the backticks, then collapsed again by the double quotes,
10773 # leaving us with one backslash in the sed expression (right
10774 # before the dot that mustn't act as a wildcard).
10775 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10776 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
10777 # The user is allowed to set LINGUAS to a list of languages to
10778 # install catalogs for. If it's empty that means "all of them."
10779 if test "x$LINGUAS" = x; then
10780 CATALOGS="$CATALOGS $cat"
10781 XLINGUAS="$XLINGUAS $lang"
10782 else
10783 case "$LINGUAS" in *$lang*)
10784 CATALOGS="$CATALOGS $cat"
10785 XLINGUAS="$XLINGUAS $lang"
10786 ;;
10787 esac
10788 fi
10789 done
10790 LINGUAS="$XLINGUAS"
10791 echo "$as_me:$LINENO: result: $LINGUAS" >&5
10792echo "${ECHO_T}$LINGUAS" >&6
10793
10794
10795 DATADIRNAME=share
10796
10797 INSTOBJEXT=.mo
10798
10799 GENCAT=gencat
10800
10801 CATOBJEXT=.gmo
10802
10803fi
10804
10805 MKINSTALLDIRS=
10806 if test -n "$ac_aux_dir"; then
10807 case "$ac_aux_dir" in
10808 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
10809 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
10810 esac
10811 fi
10812 if test -z "$MKINSTALLDIRS"; then
10813 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
10814 fi
10815
10816
10817
10818 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10819echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10820 # Check whether --enable-nls or --disable-nls was given.
10821if test "${enable_nls+set}" = set; then
10822 enableval="$enable_nls"
10823 USE_NLS=$enableval
10824else
10825 USE_NLS=yes
10826fi;
10827 echo "$as_me:$LINENO: result: $USE_NLS" >&5
10828echo "${ECHO_T}$USE_NLS" >&6
10829
10830
10831
10832
10833
10834
10835# Prepare PATH_SEPARATOR.
10836# The user is always right.
10837if test "${PATH_SEPARATOR+set}" != set; then
10838 echo "#! /bin/sh" >conf$$.sh
10839 echo "exit 0" >>conf$$.sh
10840 chmod +x conf$$.sh
10841 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10842 PATH_SEPARATOR=';'
10843 else
10844 PATH_SEPARATOR=:
10845 fi
10846 rm -f conf$$.sh
10847fi
10848
10849# Find out how to test for executable files. Don't use a zero-byte file,
10850# as systems may use methods other than mode bits to determine executability.
10851cat >conf$$.file <<_ASEOF
10852#! /bin/sh
10853exit 0
10854_ASEOF
10855chmod +x conf$$.file
10856if test -x conf$$.file >/dev/null 2>&1; then
10857 ac_executable_p="test -x"
10858else
10859 ac_executable_p="test -f"
10860fi
10861rm -f conf$$.file
10862
10863# Extract the first word of "msgfmt", so it can be a program name with args.
10864set dummy msgfmt; ac_word=$2
10865echo "$as_me:$LINENO: checking for $ac_word" >&5
10866echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10867if test "${ac_cv_path_MSGFMT+set}" = set; then
10868 echo $ECHO_N "(cached) $ECHO_C" >&6
10869else
10870 case "$MSGFMT" in
10871 [\\/]* | ?:[\\/]*)
10872 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10873 ;;
10874 *)
10875 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10876 for ac_dir in $PATH; do
10877 IFS="$ac_save_IFS"
10878 test -z "$ac_dir" && ac_dir=.
10879 for ac_exec_ext in '' $ac_executable_extensions; do
10880 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10881 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
10882 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10883 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
10884 break 2
10885 fi
10886 fi
10887 done
10888 done
10889 IFS="$ac_save_IFS"
10890 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
10891 ;;
10892esac
10893fi
10894MSGFMT="$ac_cv_path_MSGFMT"
10895if test "$MSGFMT" != ":"; then
10896 echo "$as_me:$LINENO: result: $MSGFMT" >&5
10897echo "${ECHO_T}$MSGFMT" >&6
10898else
10899 echo "$as_me:$LINENO: result: no" >&5
10900echo "${ECHO_T}no" >&6
10901fi
10902
10903 # Extract the first word of "gmsgfmt", so it can be a program name with args.
10904set dummy gmsgfmt; ac_word=$2
10905echo "$as_me:$LINENO: checking for $ac_word" >&5
10906echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10907if test "${ac_cv_path_GMSGFMT+set}" = set; then
10908 echo $ECHO_N "(cached) $ECHO_C" >&6
10909else
10910 case $GMSGFMT in
10911 [\\/]* | ?:[\\/]*)
10912 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
10913 ;;
10914 *)
10915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10916for as_dir in $PATH
10917do
10918 IFS=$as_save_IFS
10919 test -z "$as_dir" && as_dir=.
10920 for ac_exec_ext in '' $ac_executable_extensions; do
10921 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10922 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
10923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10924 break 2
10925 fi
10926done
10927done
10928
10929 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
10930 ;;
10931esac
10932fi
10933GMSGFMT=$ac_cv_path_GMSGFMT
10934
10935if test -n "$GMSGFMT"; then
10936 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
10937echo "${ECHO_T}$GMSGFMT" >&6
10938else
10939 echo "$as_me:$LINENO: result: no" >&5
10940echo "${ECHO_T}no" >&6
10941fi
10942
10943
10944
10945# Prepare PATH_SEPARATOR.
10946# The user is always right.
10947if test "${PATH_SEPARATOR+set}" != set; then
10948 echo "#! /bin/sh" >conf$$.sh
10949 echo "exit 0" >>conf$$.sh
10950 chmod +x conf$$.sh
10951 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10952 PATH_SEPARATOR=';'
10953 else
10954 PATH_SEPARATOR=:
10955 fi
10956 rm -f conf$$.sh
10957fi
10958
10959# Find out how to test for executable files. Don't use a zero-byte file,
10960# as systems may use methods other than mode bits to determine executability.
10961cat >conf$$.file <<_ASEOF
10962#! /bin/sh
10963exit 0
10964_ASEOF
10965chmod +x conf$$.file
10966if test -x conf$$.file >/dev/null 2>&1; then
10967 ac_executable_p="test -x"
10968else
10969 ac_executable_p="test -f"
10970fi
10971rm -f conf$$.file
10972
10973# Extract the first word of "xgettext", so it can be a program name with args.
10974set dummy xgettext; ac_word=$2
10975echo "$as_me:$LINENO: checking for $ac_word" >&5
10976echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10977if test "${ac_cv_path_XGETTEXT+set}" = set; then
10978 echo $ECHO_N "(cached) $ECHO_C" >&6
10979else
10980 case "$XGETTEXT" in
10981 [\\/]* | ?:[\\/]*)
10982 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
10983 ;;
10984 *)
10985 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10986 for ac_dir in $PATH; do
10987 IFS="$ac_save_IFS"
10988 test -z "$ac_dir" && ac_dir=.
10989 for ac_exec_ext in '' $ac_executable_extensions; do
10990 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10991 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
10992 (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
10993 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
10994 break 2
10995 fi
10996 fi
10997 done
10998 done
10999 IFS="$ac_save_IFS"
11000 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11001 ;;
11002esac
11003fi
11004XGETTEXT="$ac_cv_path_XGETTEXT"
11005if test "$XGETTEXT" != ":"; then
11006 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
11007echo "${ECHO_T}$XGETTEXT" >&6
11008else
11009 echo "$as_me:$LINENO: result: no" >&5
11010echo "${ECHO_T}no" >&6
11011fi
11012
11013 rm -f messages.po
11014
11015
11016# Prepare PATH_SEPARATOR.
11017# The user is always right.
11018if test "${PATH_SEPARATOR+set}" != set; then
11019 echo "#! /bin/sh" >conf$$.sh
11020 echo "exit 0" >>conf$$.sh
11021 chmod +x conf$$.sh
11022 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11023 PATH_SEPARATOR=';'
11024 else
11025 PATH_SEPARATOR=:
11026 fi
11027 rm -f conf$$.sh
11028fi
11029
11030# Find out how to test for executable files. Don't use a zero-byte file,
11031# as systems may use methods other than mode bits to determine executability.
11032cat >conf$$.file <<_ASEOF
11033#! /bin/sh
11034exit 0
11035_ASEOF
11036chmod +x conf$$.file
11037if test -x conf$$.file >/dev/null 2>&1; then
11038 ac_executable_p="test -x"
11039else
11040 ac_executable_p="test -f"
11041fi
11042rm -f conf$$.file
11043
11044# Extract the first word of "msgmerge", so it can be a program name with args.
11045set dummy msgmerge; ac_word=$2
11046echo "$as_me:$LINENO: checking for $ac_word" >&5
11047echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11048if test "${ac_cv_path_MSGMERGE+set}" = set; then
11049 echo $ECHO_N "(cached) $ECHO_C" >&6
11050else
11051 case "$MSGMERGE" in
11052 [\\/]* | ?:[\\/]*)
11053 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11054 ;;
11055 *)
11056 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11057 for ac_dir in $PATH; do
11058 IFS="$ac_save_IFS"
11059 test -z "$ac_dir" && ac_dir=.
11060 for ac_exec_ext in '' $ac_executable_extensions; do
11061 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11062 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
11063 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11064 break 2
11065 fi
11066 fi
11067 done
11068 done
11069 IFS="$ac_save_IFS"
11070 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11071 ;;
11072esac
11073fi
11074MSGMERGE="$ac_cv_path_MSGMERGE"
11075if test "$MSGMERGE" != ":"; then
11076 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
11077echo "${ECHO_T}$MSGMERGE" >&6
11078else
11079 echo "$as_me:$LINENO: result: no" >&5
11080echo "${ECHO_T}no" >&6
11081fi
11082
11083
11084 if test "$GMSGFMT" != ":"; then
11085 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
11086 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11087 : ;
11088 else
11089 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
11090 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
11091echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
11092 GMSGFMT=":"
11093 fi
11094 fi
11095
11096 if test "$XGETTEXT" != ":"; then
11097 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11098 (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
11099 : ;
11100 else
11101 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
11102echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
11103 XGETTEXT=":"
11104 fi
11105 rm -f messages.po
11106 fi
11107
11108 ac_config_commands="$ac_config_commands default-1"
11109
11110
11111
11112echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11113echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11114 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11115if test "${enable_maintainer_mode+set}" = set; then
11116 enableval="$enable_maintainer_mode"
11117 USE_MAINTAINER_MODE=$enableval
42ecbf5e 11118else
d7040cdb
SE
11119 USE_MAINTAINER_MODE=no
11120fi;
11121 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
11122echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
42ecbf5e 11123
d7040cdb
SE
11124
11125if test $USE_MAINTAINER_MODE = yes; then
11126 MAINTAINER_MODE_TRUE=
11127 MAINTAINER_MODE_FALSE='#'
11128else
11129 MAINTAINER_MODE_TRUE='#'
11130 MAINTAINER_MODE_FALSE=
42ecbf5e 11131fi
d7040cdb
SE
11132
11133 MAINT=$MAINTAINER_MODE_TRUE
11134
11135
11136
11137
11138if false; then
11139 GENINSRC_NEVER_TRUE=
11140 GENINSRC_NEVER_FALSE='#'
11141else
11142 GENINSRC_NEVER_TRUE='#'
11143 GENINSRC_NEVER_FALSE=
42ecbf5e 11144fi
d7040cdb
SE
11145
11146
11147if test -n "$EXEEXT"; then
20e95c23
DJ
11148
11149cat >>confdefs.h <<\_ACEOF
d7040cdb 11150#define HAVE_EXECUTABLE_SUFFIX 1
20e95c23 11151_ACEOF
42ecbf5e 11152
252b5132
RH
11153fi
11154
d7040cdb
SE
11155cat >>confdefs.h <<_ACEOF
11156#define EXECUTABLE_SUFFIX "${EXEEXT}"
11157_ACEOF
42ecbf5e 11158
252b5132 11159
d7040cdb 11160# host-specific stuff:
252b5132 11161
d7040cdb 11162HDEFINES=
252b5132 11163
d7040cdb 11164. ${srcdir}/../bfd/configure.host
252b5132 11165
252b5132 11166
d7040cdb 11167AR=${AR-ar}
252b5132 11168
d7040cdb
SE
11169if test -n "$ac_tool_prefix"; then
11170 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11171set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11172echo "$as_me:$LINENO: checking for $ac_word" >&5
11173echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11174if test "${ac_cv_prog_RANLIB+set}" = set; then
11175 echo $ECHO_N "(cached) $ECHO_C" >&6
11176else
11177 if test -n "$RANLIB"; then
11178 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11179else
11180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11181for as_dir in $PATH
11182do
11183 IFS=$as_save_IFS
11184 test -z "$as_dir" && as_dir=.
11185 for ac_exec_ext in '' $ac_executable_extensions; do
11186 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11187 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11189 break 2
11190 fi
11191done
11192done
252b5132 11193
d7040cdb
SE
11194fi
11195fi
11196RANLIB=$ac_cv_prog_RANLIB
11197if test -n "$RANLIB"; then
11198 echo "$as_me:$LINENO: result: $RANLIB" >&5
11199echo "${ECHO_T}$RANLIB" >&6
11200else
11201 echo "$as_me:$LINENO: result: no" >&5
11202echo "${ECHO_T}no" >&6
11203fi
20e95c23 11204
d7040cdb
SE
11205fi
11206if test -z "$ac_cv_prog_RANLIB"; then
11207 ac_ct_RANLIB=$RANLIB
11208 # Extract the first word of "ranlib", so it can be a program name with args.
11209set dummy ranlib; ac_word=$2
11210echo "$as_me:$LINENO: checking for $ac_word" >&5
11211echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11212if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
42ecbf5e 11213 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11214else
d7040cdb
SE
11215 if test -n "$ac_ct_RANLIB"; then
11216 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11217else
11218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11219for as_dir in $PATH
11220do
11221 IFS=$as_save_IFS
11222 test -z "$as_dir" && as_dir=.
11223 for ac_exec_ext in '' $ac_executable_extensions; do
11224 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11225 ac_cv_prog_ac_ct_RANLIB="ranlib"
11226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11227 break 2
11228 fi
11229done
11230done
20e95c23 11231
d7040cdb
SE
11232 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11233fi
11234fi
11235ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11236if test -n "$ac_ct_RANLIB"; then
11237 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11238echo "${ECHO_T}$ac_ct_RANLIB" >&6
20e95c23 11239else
d7040cdb
SE
11240 echo "$as_me:$LINENO: result: no" >&5
11241echo "${ECHO_T}no" >&6
11242fi
11243
11244 RANLIB=$ac_ct_RANLIB
11245else
11246 RANLIB="$ac_cv_prog_RANLIB"
11247fi
11248
11249# Find a good install program. We prefer a C program (faster),
11250# so one script is as good as another. But avoid the broken or
11251# incompatible versions:
11252# SysV /etc/install, /usr/sbin/install
11253# SunOS /usr/etc/install
11254# IRIX /sbin/install
11255# AIX /bin/install
11256# AmigaOS /C/install, which installs bootblocks on floppy discs
11257# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11258# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11259# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11260# OS/2's system install, which has a completely different semantic
11261# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 11262# Reject install programs that cannot install multiple files.
d7040cdb
SE
11263echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11264echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11265if test -z "$INSTALL"; then
11266if test "${ac_cv_path_install+set}" = set; then
11267 echo $ECHO_N "(cached) $ECHO_C" >&6
11268else
11269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11270for as_dir in $PATH
11271do
11272 IFS=$as_save_IFS
11273 test -z "$as_dir" && as_dir=.
11274 # Account for people who put trailing slashes in PATH elements.
11275case $as_dir/ in
11276 ./ | .// | /cC/* | \
11277 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11278 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11279 /usr/ucb/* ) ;;
11280 *)
11281 # OSF1 and SCO ODT 3.0 have their own names for install.
11282 # Don't use installbsd from OSF since it installs stuff as root
11283 # by default.
11284 for ac_prog in ginstall scoinst install; do
11285 for ac_exec_ext in '' $ac_executable_extensions; do
11286 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11287 if test $ac_prog = install &&
11288 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11289 # AIX install. It has an incompatible calling convention.
11290 :
11291 elif test $ac_prog = install &&
11292 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11293 # program-specific install script used by HP pwplus--don't use.
11294 :
11295 else
58c85be7
RW
11296 rm -rf conftest.one conftest.two conftest.dir
11297 echo one > conftest.one
11298 echo two > conftest.two
11299 mkdir conftest.dir
11300 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
11301 test -s conftest.one && test -s conftest.two &&
11302 test -s conftest.dir/conftest.one &&
11303 test -s conftest.dir/conftest.two
11304 then
11305 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11306 break 3
11307 fi
d7040cdb
SE
11308 fi
11309 fi
11310 done
11311 done
11312 ;;
11313esac
11314done
11315
58c85be7 11316rm -rf conftest.one conftest.two conftest.dir
d7040cdb
SE
11317
11318fi
11319 if test "${ac_cv_path_install+set}" = set; then
11320 INSTALL=$ac_cv_path_install
11321 else
58c85be7
RW
11322 # As a last resort, use the slow shell script. Don't cache a
11323 # value for INSTALL within a source directory, because that will
d7040cdb 11324 # break other packages using the cache if that directory is
58c85be7 11325 # removed, or if the value is a relative name.
d7040cdb
SE
11326 INSTALL=$ac_install_sh
11327 fi
11328fi
11329echo "$as_me:$LINENO: result: $INSTALL" >&5
11330echo "${ECHO_T}$INSTALL" >&6
11331
11332# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11333# It thinks the first close brace ends the variable substitution.
11334test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11335
11336test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11337
11338test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11339
11340
11341# Put a plausible default for CC_FOR_BUILD in Makefile.
11342if test -z "$CC_FOR_BUILD"; then
11343 if test "x$cross_compiling" = "xno"; then
11344 CC_FOR_BUILD='$(CC)'
11345 else
11346 CC_FOR_BUILD=gcc
11347 fi
11348fi
20e95c23 11349
d7040cdb
SE
11350# Also set EXEEXT_FOR_BUILD.
11351if test "x$cross_compiling" = "xno"; then
11352 EXEEXT_FOR_BUILD='$(EXEEXT)'
11353else
11354 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
11355echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
11356if test "${bfd_cv_build_exeext+set}" = set; then
11357 echo $ECHO_N "(cached) $ECHO_C" >&6
11358else
11359 rm -f conftest*
11360 echo 'int main () { return 0; }' > conftest.c
11361 bfd_cv_build_exeext=
11362 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
11363 for file in conftest.*; do
11364 case $file in
11365 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
11366 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
11367 esac
11368 done
11369 rm -f conftest*
11370 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
252b5132 11371fi
d7040cdb
SE
11372echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
11373echo "${ECHO_T}$bfd_cv_build_exeext" >&6
11374 EXEEXT_FOR_BUILD=""
11375 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
252b5132
RH
11376fi
11377
11378
d7040cdb
SE
11379DEMANGLER_NAME=c++filt
11380case "${host}" in
11381 *-*-go32* | *-*-msdos*)
11382 DEMANGLER_NAME=cxxfilt
11383esac
8a965946
ILT
11384
11385
42ecbf5e
DJ
11386
11387
11388
11389
11390
11391
f8eae8b2
L
11392
11393
11394for ac_header in string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h limits.h sys/param.h
252b5132 11395do
42ecbf5e
DJ
11396as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11397if eval "test \"\${$as_ac_Header+set}\" = set"; then
11398 echo "$as_me:$LINENO: checking for $ac_header" >&5
11399echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11400if eval "test \"\${$as_ac_Header+set}\" = set"; then
11401 echo $ECHO_N "(cached) $ECHO_C" >&6
11402fi
11403echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11404echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11405else
11406 # Is the header compilable?
11407echo "$as_me:$LINENO: checking $ac_header usability" >&5
11408echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11409cat >conftest.$ac_ext <<_ACEOF
11410/* confdefs.h. */
11411_ACEOF
11412cat confdefs.h >>conftest.$ac_ext
11413cat >>conftest.$ac_ext <<_ACEOF
11414/* end confdefs.h. */
11415$ac_includes_default
11416#include <$ac_header>
11417_ACEOF
11418rm -f conftest.$ac_objext
11419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11420 (eval $ac_compile) 2>conftest.er1
11421 ac_status=$?
11422 grep -v '^ *+' conftest.er1 >conftest.err
11423 rm -f conftest.er1
11424 cat conftest.err >&5
11425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11426 (exit $ac_status); } &&
b7d4af3a
JW
11427 { ac_try='test -z "$ac_c_werror_flag"
11428 || test ! -s conftest.err'
42ecbf5e
DJ
11429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11430 (eval $ac_try) 2>&5
11431 ac_status=$?
11432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433 (exit $ac_status); }; } &&
11434 { ac_try='test -s conftest.$ac_objext'
11435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11436 (eval $ac_try) 2>&5
11437 ac_status=$?
11438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11439 (exit $ac_status); }; }; then
11440 ac_header_compiler=yes
11441else
11442 echo "$as_me: failed program was:" >&5
11443sed 's/^/| /' conftest.$ac_ext >&5
11444
11445ac_header_compiler=no
11446fi
11447rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11448echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11449echo "${ECHO_T}$ac_header_compiler" >&6
11450
11451# Is the header present?
11452echo "$as_me:$LINENO: checking $ac_header presence" >&5
11453echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11454cat >conftest.$ac_ext <<_ACEOF
11455/* confdefs.h. */
11456_ACEOF
11457cat confdefs.h >>conftest.$ac_ext
11458cat >>conftest.$ac_ext <<_ACEOF
11459/* end confdefs.h. */
11460#include <$ac_header>
11461_ACEOF
11462if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11463 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11464 ac_status=$?
11465 grep -v '^ *+' conftest.er1 >conftest.err
11466 rm -f conftest.er1
11467 cat conftest.err >&5
11468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469 (exit $ac_status); } >/dev/null; then
11470 if test -s conftest.err; then
11471 ac_cpp_err=$ac_c_preproc_warn_flag
11472 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11473 else
11474 ac_cpp_err=
11475 fi
252b5132 11476else
42ecbf5e 11477 ac_cpp_err=yes
252b5132 11478fi
42ecbf5e
DJ
11479if test -z "$ac_cpp_err"; then
11480 ac_header_preproc=yes
11481else
11482 echo "$as_me: failed program was:" >&5
11483sed 's/^/| /' conftest.$ac_ext >&5
11484
11485 ac_header_preproc=no
252b5132 11486fi
42ecbf5e
DJ
11487rm -f conftest.err conftest.$ac_ext
11488echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11489echo "${ECHO_T}$ac_header_preproc" >&6
11490
11491# So? What about this header?
11492case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11493 yes:no: )
11494 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11495echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11496 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11497echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11498 ac_header_preproc=yes
11499 ;;
11500 no:yes:* )
11501 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11502echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11503 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11504echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11505 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11506echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11507 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11508echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11509 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11510echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11511 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11512echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11513 (
11514 cat <<\_ASBOX
11515## ------------------------------------------ ##
11516## Report this to the AC_PACKAGE_NAME lists. ##
11517## ------------------------------------------ ##
11518_ASBOX
11519 ) |
11520 sed "s/^/$as_me: WARNING: /" >&2
11521 ;;
11522esac
11523echo "$as_me:$LINENO: checking for $ac_header" >&5
11524echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11525if eval "test \"\${$as_ac_Header+set}\" = set"; then
11526 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11527else
42ecbf5e
DJ
11528 eval "$as_ac_Header=\$ac_header_preproc"
11529fi
11530echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11531echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11532
252b5132 11533fi
42ecbf5e
DJ
11534if test `eval echo '${'$as_ac_Header'}'` = yes; then
11535 cat >>confdefs.h <<_ACEOF
11536#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11537_ACEOF
11538
11539fi
11540
252b5132
RH
11541done
11542
42ecbf5e
DJ
11543echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
11544echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
11545if test "${ac_cv_header_sys_wait_h+set}" = set; then
11546 echo $ECHO_N "(cached) $ECHO_C" >&6
11547else
11548 cat >conftest.$ac_ext <<_ACEOF
11549/* confdefs.h. */
11550_ACEOF
11551cat confdefs.h >>conftest.$ac_ext
11552cat >>conftest.$ac_ext <<_ACEOF
11553/* end confdefs.h. */
252b5132
RH
11554#include <sys/types.h>
11555#include <sys/wait.h>
11556#ifndef WEXITSTATUS
42ecbf5e 11557# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
252b5132
RH
11558#endif
11559#ifndef WIFEXITED
42ecbf5e 11560# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
252b5132 11561#endif
42ecbf5e
DJ
11562
11563int
11564main ()
11565{
11566 int s;
11567 wait (&s);
11568 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11569 ;
11570 return 0;
11571}
11572_ACEOF
11573rm -f conftest.$ac_objext
11574if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11575 (eval $ac_compile) 2>conftest.er1
11576 ac_status=$?
11577 grep -v '^ *+' conftest.er1 >conftest.err
11578 rm -f conftest.er1
11579 cat conftest.err >&5
11580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11581 (exit $ac_status); } &&
b7d4af3a
JW
11582 { ac_try='test -z "$ac_c_werror_flag"
11583 || test ! -s conftest.err'
42ecbf5e
DJ
11584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11585 (eval $ac_try) 2>&5
11586 ac_status=$?
11587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11588 (exit $ac_status); }; } &&
11589 { ac_try='test -s conftest.$ac_objext'
11590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11591 (eval $ac_try) 2>&5
11592 ac_status=$?
11593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11594 (exit $ac_status); }; }; then
252b5132
RH
11595 ac_cv_header_sys_wait_h=yes
11596else
42ecbf5e
DJ
11597 echo "$as_me: failed program was:" >&5
11598sed 's/^/| /' conftest.$ac_ext >&5
11599
11600ac_cv_header_sys_wait_h=no
252b5132 11601fi
42ecbf5e 11602rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 11603fi
42ecbf5e
DJ
11604echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
11605echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
d15b04bd 11606if test $ac_cv_header_sys_wait_h = yes; then
42ecbf5e
DJ
11607
11608cat >>confdefs.h <<\_ACEOF
252b5132 11609#define HAVE_SYS_WAIT_H 1
42ecbf5e 11610_ACEOF
252b5132
RH
11611
11612fi
11613
11614# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11615# for constant arguments. Useless!
42ecbf5e
DJ
11616echo "$as_me:$LINENO: checking for working alloca.h" >&5
11617echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
11618if test "${ac_cv_working_alloca_h+set}" = set; then
11619 echo $ECHO_N "(cached) $ECHO_C" >&6
11620else
11621 cat >conftest.$ac_ext <<_ACEOF
11622/* confdefs.h. */
11623_ACEOF
11624cat confdefs.h >>conftest.$ac_ext
11625cat >>conftest.$ac_ext <<_ACEOF
11626/* end confdefs.h. */
252b5132 11627#include <alloca.h>
42ecbf5e
DJ
11628int
11629main ()
11630{
11631char *p = (char *) alloca (2 * sizeof (int));
11632 ;
11633 return 0;
11634}
11635_ACEOF
11636rm -f conftest.$ac_objext conftest$ac_exeext
11637if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11638 (eval $ac_link) 2>conftest.er1
11639 ac_status=$?
11640 grep -v '^ *+' conftest.er1 >conftest.err
11641 rm -f conftest.er1
11642 cat conftest.err >&5
11643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11644 (exit $ac_status); } &&
b7d4af3a
JW
11645 { ac_try='test -z "$ac_c_werror_flag"
11646 || test ! -s conftest.err'
42ecbf5e
DJ
11647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11648 (eval $ac_try) 2>&5
11649 ac_status=$?
11650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11651 (exit $ac_status); }; } &&
11652 { ac_try='test -s conftest$ac_exeext'
11653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11654 (eval $ac_try) 2>&5
11655 ac_status=$?
11656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11657 (exit $ac_status); }; }; then
11658 ac_cv_working_alloca_h=yes
11659else
11660 echo "$as_me: failed program was:" >&5
11661sed 's/^/| /' conftest.$ac_ext >&5
11662
11663ac_cv_working_alloca_h=no
11664fi
11665rm -f conftest.err conftest.$ac_objext \
11666 conftest$ac_exeext conftest.$ac_ext
11667fi
11668echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
11669echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
11670if test $ac_cv_working_alloca_h = yes; then
11671
11672cat >>confdefs.h <<\_ACEOF
252b5132 11673#define HAVE_ALLOCA_H 1
42ecbf5e 11674_ACEOF
252b5132
RH
11675
11676fi
11677
42ecbf5e
DJ
11678echo "$as_me:$LINENO: checking for alloca" >&5
11679echo $ECHO_N "checking for alloca... $ECHO_C" >&6
11680if test "${ac_cv_func_alloca_works+set}" = set; then
11681 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11682else
42ecbf5e
DJ
11683 cat >conftest.$ac_ext <<_ACEOF
11684/* confdefs.h. */
11685_ACEOF
11686cat confdefs.h >>conftest.$ac_ext
11687cat >>conftest.$ac_ext <<_ACEOF
11688/* end confdefs.h. */
252b5132
RH
11689#ifdef __GNUC__
11690# define alloca __builtin_alloca
11691#else
11692# ifdef _MSC_VER
11693# include <malloc.h>
11694# define alloca _alloca
11695# else
11696# if HAVE_ALLOCA_H
11697# include <alloca.h>
11698# else
11699# ifdef _AIX
11700 #pragma alloca
11701# else
11702# ifndef alloca /* predefined by HP cc +Olibcalls */
11703char *alloca ();
11704# endif
11705# endif
11706# endif
11707# endif
11708#endif
11709
42ecbf5e
DJ
11710int
11711main ()
11712{
11713char *p = (char *) alloca (1);
11714 ;
11715 return 0;
11716}
11717_ACEOF
11718rm -f conftest.$ac_objext conftest$ac_exeext
11719if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11720 (eval $ac_link) 2>conftest.er1
11721 ac_status=$?
11722 grep -v '^ *+' conftest.er1 >conftest.err
11723 rm -f conftest.er1
11724 cat conftest.err >&5
11725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11726 (exit $ac_status); } &&
b7d4af3a
JW
11727 { ac_try='test -z "$ac_c_werror_flag"
11728 || test ! -s conftest.err'
42ecbf5e
DJ
11729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11730 (eval $ac_try) 2>&5
11731 ac_status=$?
11732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11733 (exit $ac_status); }; } &&
11734 { ac_try='test -s conftest$ac_exeext'
11735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11736 (eval $ac_try) 2>&5
11737 ac_status=$?
11738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11739 (exit $ac_status); }; }; then
252b5132
RH
11740 ac_cv_func_alloca_works=yes
11741else
42ecbf5e
DJ
11742 echo "$as_me: failed program was:" >&5
11743sed 's/^/| /' conftest.$ac_ext >&5
11744
11745ac_cv_func_alloca_works=no
252b5132 11746fi
42ecbf5e
DJ
11747rm -f conftest.err conftest.$ac_objext \
11748 conftest$ac_exeext conftest.$ac_ext
252b5132 11749fi
42ecbf5e
DJ
11750echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
11751echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
252b5132 11752
252b5132 11753if test $ac_cv_func_alloca_works = yes; then
e5a52504 11754
42ecbf5e
DJ
11755cat >>confdefs.h <<\_ACEOF
11756#define HAVE_ALLOCA 1
11757_ACEOF
e5a52504 11758
42ecbf5e 11759else
d15b04bd 11760 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
42ecbf5e
DJ
11761# that cause trouble. Some versions do not even contain alloca or
11762# contain a buggy version. If you still want to use their alloca,
11763# use ar to extract alloca.o from them instead of compiling alloca.c.
11764
11765ALLOCA=alloca.$ac_objext
11766
11767cat >>confdefs.h <<\_ACEOF
252b5132 11768#define C_ALLOCA 1
42ecbf5e 11769_ACEOF
252b5132
RH
11770
11771
42ecbf5e
DJ
11772echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
11773echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
11774if test "${ac_cv_os_cray+set}" = set; then
11775 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11776else
42ecbf5e
DJ
11777 cat >conftest.$ac_ext <<_ACEOF
11778/* confdefs.h. */
11779_ACEOF
11780cat confdefs.h >>conftest.$ac_ext
11781cat >>conftest.$ac_ext <<_ACEOF
11782/* end confdefs.h. */
252b5132
RH
11783#if defined(CRAY) && ! defined(CRAY2)
11784webecray
11785#else
11786wenotbecray
11787#endif
11788
42ecbf5e 11789_ACEOF
252b5132 11790if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42ecbf5e 11791 $EGREP "webecray" >/dev/null 2>&1; then
252b5132
RH
11792 ac_cv_os_cray=yes
11793else
252b5132
RH
11794 ac_cv_os_cray=no
11795fi
11796rm -f conftest*
11797
11798fi
42ecbf5e
DJ
11799echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
11800echo "${ECHO_T}$ac_cv_os_cray" >&6
d15b04bd 11801if test $ac_cv_os_cray = yes; then
42ecbf5e
DJ
11802 for ac_func in _getb67 GETB67 getb67; do
11803 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11804echo "$as_me:$LINENO: checking for $ac_func" >&5
11805echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11806if eval "test \"\${$as_ac_var+set}\" = set"; then
11807 echo $ECHO_N "(cached) $ECHO_C" >&6
11808else
11809 cat >conftest.$ac_ext <<_ACEOF
11810/* confdefs.h. */
11811_ACEOF
11812cat confdefs.h >>conftest.$ac_ext
11813cat >>conftest.$ac_ext <<_ACEOF
11814/* end confdefs.h. */
11815/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11816 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11817#define $ac_func innocuous_$ac_func
11818
252b5132 11819/* System header to define __stub macros and hopefully few prototypes,
42ecbf5e
DJ
11820 which can conflict with char $ac_func (); below.
11821 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11822 <limits.h> exists even on freestanding compilers. */
11823
11824#ifdef __STDC__
11825# include <limits.h>
11826#else
11827# include <assert.h>
11828#endif
d15b04bd 11829
42ecbf5e 11830#undef $ac_func
d15b04bd 11831
42ecbf5e
DJ
11832/* Override any gcc2 internal prototype to avoid an error. */
11833#ifdef __cplusplus
11834extern "C"
11835{
11836#endif
11837/* We use char because int might match the return type of a gcc2
11838 builtin and then its argument prototype would still apply. */
11839char $ac_func ();
252b5132
RH
11840/* The GNU C library defines this for functions which it implements
11841 to always fail with ENOSYS. Some functions are actually named
11842 something starting with __ and the normal name is an alias. */
11843#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11844choke me
11845#else
42ecbf5e
DJ
11846char (*f) () = $ac_func;
11847#endif
11848#ifdef __cplusplus
11849}
252b5132
RH
11850#endif
11851
42ecbf5e
DJ
11852int
11853main ()
11854{
11855return f != $ac_func;
11856 ;
11857 return 0;
11858}
11859_ACEOF
11860rm -f conftest.$ac_objext conftest$ac_exeext
11861if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11862 (eval $ac_link) 2>conftest.er1
11863 ac_status=$?
11864 grep -v '^ *+' conftest.er1 >conftest.err
11865 rm -f conftest.er1
11866 cat conftest.err >&5
11867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11868 (exit $ac_status); } &&
b7d4af3a
JW
11869 { ac_try='test -z "$ac_c_werror_flag"
11870 || test ! -s conftest.err'
42ecbf5e
DJ
11871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11872 (eval $ac_try) 2>&5
11873 ac_status=$?
11874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11875 (exit $ac_status); }; } &&
11876 { ac_try='test -s conftest$ac_exeext'
11877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11878 (eval $ac_try) 2>&5
11879 ac_status=$?
11880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881 (exit $ac_status); }; }; then
11882 eval "$as_ac_var=yes"
11883else
11884 echo "$as_me: failed program was:" >&5
11885sed 's/^/| /' conftest.$ac_ext >&5
11886
11887eval "$as_ac_var=no"
11888fi
11889rm -f conftest.err conftest.$ac_objext \
11890 conftest$ac_exeext conftest.$ac_ext
11891fi
11892echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11893echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11894if test `eval echo '${'$as_ac_var'}'` = yes; then
11895
11896cat >>confdefs.h <<_ACEOF
252b5132 11897#define CRAY_STACKSEG_END $ac_func
42ecbf5e 11898_ACEOF
252b5132 11899
42ecbf5e 11900 break
252b5132
RH
11901fi
11902
42ecbf5e 11903 done
252b5132
RH
11904fi
11905
42ecbf5e
DJ
11906echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
11907echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
11908if test "${ac_cv_c_stack_direction+set}" = set; then
11909 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
11910else
11911 if test "$cross_compiling" = yes; then
11912 ac_cv_c_stack_direction=0
11913else
42ecbf5e
DJ
11914 cat >conftest.$ac_ext <<_ACEOF
11915/* confdefs.h. */
11916_ACEOF
11917cat confdefs.h >>conftest.$ac_ext
11918cat >>conftest.$ac_ext <<_ACEOF
11919/* end confdefs.h. */
11920int
252b5132
RH
11921find_stack_direction ()
11922{
11923 static char *addr = 0;
11924 auto char dummy;
11925 if (addr == 0)
11926 {
11927 addr = &dummy;
11928 return find_stack_direction ();
11929 }
11930 else
11931 return (&dummy > addr) ? 1 : -1;
11932}
42ecbf5e
DJ
11933
11934int
252b5132
RH
11935main ()
11936{
42ecbf5e 11937 exit (find_stack_direction () < 0);
252b5132 11938}
42ecbf5e
DJ
11939_ACEOF
11940rm -f conftest$ac_exeext
11941if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11942 (eval $ac_link) 2>&5
11943 ac_status=$?
11944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11947 (eval $ac_try) 2>&5
11948 ac_status=$?
11949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950 (exit $ac_status); }; }; then
252b5132
RH
11951 ac_cv_c_stack_direction=1
11952else
42ecbf5e
DJ
11953 echo "$as_me: program exited with status $ac_status" >&5
11954echo "$as_me: failed program was:" >&5
11955sed 's/^/| /' conftest.$ac_ext >&5
11956
11957( exit $ac_status )
11958ac_cv_c_stack_direction=-1
252b5132 11959fi
42ecbf5e 11960rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 11961fi
252b5132 11962fi
42ecbf5e
DJ
11963echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
11964echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
252b5132 11965
42ecbf5e 11966cat >>confdefs.h <<_ACEOF
252b5132 11967#define STACK_DIRECTION $ac_cv_c_stack_direction
42ecbf5e
DJ
11968_ACEOF
11969
252b5132
RH
11970
11971fi
11972
42ecbf5e
DJ
11973
11974
11975
11976
11977
9710509e 11978for ac_func in sbrk utimes setmode getc_unlocked strcoll
252b5132 11979do
42ecbf5e
DJ
11980as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11981echo "$as_me:$LINENO: checking for $ac_func" >&5
11982echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11983if eval "test \"\${$as_ac_var+set}\" = set"; then
11984 echo $ECHO_N "(cached) $ECHO_C" >&6
11985else
11986 cat >conftest.$ac_ext <<_ACEOF
11987/* confdefs.h. */
11988_ACEOF
11989cat confdefs.h >>conftest.$ac_ext
11990cat >>conftest.$ac_ext <<_ACEOF
11991/* end confdefs.h. */
11992/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11993 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11994#define $ac_func innocuous_$ac_func
11995
252b5132 11996/* System header to define __stub macros and hopefully few prototypes,
42ecbf5e
DJ
11997 which can conflict with char $ac_func (); below.
11998 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11999 <limits.h> exists even on freestanding compilers. */
12000
12001#ifdef __STDC__
12002# include <limits.h>
12003#else
12004# include <assert.h>
12005#endif
d15b04bd 12006
42ecbf5e 12007#undef $ac_func
d15b04bd 12008
42ecbf5e
DJ
12009/* Override any gcc2 internal prototype to avoid an error. */
12010#ifdef __cplusplus
12011extern "C"
12012{
12013#endif
12014/* We use char because int might match the return type of a gcc2
12015 builtin and then its argument prototype would still apply. */
12016char $ac_func ();
252b5132
RH
12017/* The GNU C library defines this for functions which it implements
12018 to always fail with ENOSYS. Some functions are actually named
12019 something starting with __ and the normal name is an alias. */
12020#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12021choke me
12022#else
42ecbf5e
DJ
12023char (*f) () = $ac_func;
12024#endif
12025#ifdef __cplusplus
12026}
252b5132
RH
12027#endif
12028
42ecbf5e
DJ
12029int
12030main ()
12031{
12032return f != $ac_func;
12033 ;
12034 return 0;
12035}
12036_ACEOF
12037rm -f conftest.$ac_objext conftest$ac_exeext
12038if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12039 (eval $ac_link) 2>conftest.er1
12040 ac_status=$?
12041 grep -v '^ *+' conftest.er1 >conftest.err
12042 rm -f conftest.er1
12043 cat conftest.err >&5
12044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045 (exit $ac_status); } &&
b7d4af3a
JW
12046 { ac_try='test -z "$ac_c_werror_flag"
12047 || test ! -s conftest.err'
42ecbf5e
DJ
12048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12049 (eval $ac_try) 2>&5
12050 ac_status=$?
12051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052 (exit $ac_status); }; } &&
12053 { ac_try='test -s conftest$ac_exeext'
12054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12055 (eval $ac_try) 2>&5
12056 ac_status=$?
12057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12058 (exit $ac_status); }; }; then
12059 eval "$as_ac_var=yes"
12060else
12061 echo "$as_me: failed program was:" >&5
12062sed 's/^/| /' conftest.$ac_ext >&5
12063
12064eval "$as_ac_var=no"
12065fi
12066rm -f conftest.err conftest.$ac_objext \
12067 conftest$ac_exeext conftest.$ac_ext
12068fi
12069echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12070echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12071if test `eval echo '${'$as_ac_var'}'` = yes; then
12072 cat >>confdefs.h <<_ACEOF
12073#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12074_ACEOF
252b5132 12075
252b5132
RH
12076fi
12077done
12078
f9c026a8
NC
12079echo "$as_me:$LINENO: checking for mkstemp" >&5
12080echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
12081if test "${ac_cv_func_mkstemp+set}" = set; then
12082 echo $ECHO_N "(cached) $ECHO_C" >&6
12083else
12084 cat >conftest.$ac_ext <<_ACEOF
12085/* confdefs.h. */
12086_ACEOF
12087cat confdefs.h >>conftest.$ac_ext
12088cat >>conftest.$ac_ext <<_ACEOF
12089/* end confdefs.h. */
12090/* Define mkstemp to an innocuous variant, in case <limits.h> declares mkstemp.
12091 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12092#define mkstemp innocuous_mkstemp
12093
12094/* System header to define __stub macros and hopefully few prototypes,
12095 which can conflict with char mkstemp (); below.
12096 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12097 <limits.h> exists even on freestanding compilers. */
12098
12099#ifdef __STDC__
12100# include <limits.h>
12101#else
12102# include <assert.h>
12103#endif
12104
12105#undef mkstemp
12106
12107/* Override any gcc2 internal prototype to avoid an error. */
12108#ifdef __cplusplus
12109extern "C"
12110{
12111#endif
12112/* We use char because int might match the return type of a gcc2
12113 builtin and then its argument prototype would still apply. */
12114char mkstemp ();
12115/* The GNU C library defines this for functions which it implements
12116 to always fail with ENOSYS. Some functions are actually named
12117 something starting with __ and the normal name is an alias. */
12118#if defined (__stub_mkstemp) || defined (__stub___mkstemp)
12119choke me
12120#else
12121char (*f) () = mkstemp;
12122#endif
12123#ifdef __cplusplus
12124}
12125#endif
12126
12127int
12128main ()
12129{
12130return f != mkstemp;
12131 ;
12132 return 0;
12133}
12134_ACEOF
12135rm -f conftest.$ac_objext conftest$ac_exeext
12136if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12137 (eval $ac_link) 2>conftest.er1
12138 ac_status=$?
12139 grep -v '^ *+' conftest.er1 >conftest.err
12140 rm -f conftest.er1
12141 cat conftest.err >&5
12142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12143 (exit $ac_status); } &&
12144 { ac_try='test -z "$ac_c_werror_flag"
12145 || test ! -s conftest.err'
12146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12147 (eval $ac_try) 2>&5
12148 ac_status=$?
12149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12150 (exit $ac_status); }; } &&
12151 { ac_try='test -s conftest$ac_exeext'
12152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12153 (eval $ac_try) 2>&5
12154 ac_status=$?
12155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12156 (exit $ac_status); }; }; then
12157 ac_cv_func_mkstemp=yes
12158else
12159 echo "$as_me: failed program was:" >&5
12160sed 's/^/| /' conftest.$ac_ext >&5
12161
12162ac_cv_func_mkstemp=no
12163fi
12164rm -f conftest.err conftest.$ac_objext \
12165 conftest$ac_exeext conftest.$ac_ext
12166fi
12167echo "$as_me:$LINENO: result: $ac_cv_func_mkstemp" >&5
12168echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
12169if test $ac_cv_func_mkstemp = yes; then
12170
12171cat >>confdefs.h <<\_ACEOF
12172#define HAVE_MKSTEMP 1
12173_ACEOF
12174
12175fi
12176
12177echo "$as_me:$LINENO: checking for mkdtemp" >&5
12178echo $ECHO_N "checking for mkdtemp... $ECHO_C" >&6
12179if test "${ac_cv_func_mkdtemp+set}" = set; then
12180 echo $ECHO_N "(cached) $ECHO_C" >&6
12181else
12182 cat >conftest.$ac_ext <<_ACEOF
12183/* confdefs.h. */
12184_ACEOF
12185cat confdefs.h >>conftest.$ac_ext
12186cat >>conftest.$ac_ext <<_ACEOF
12187/* end confdefs.h. */
12188/* Define mkdtemp to an innocuous variant, in case <limits.h> declares mkdtemp.
12189 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12190#define mkdtemp innocuous_mkdtemp
12191
12192/* System header to define __stub macros and hopefully few prototypes,
12193 which can conflict with char mkdtemp (); below.
12194 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12195 <limits.h> exists even on freestanding compilers. */
12196
12197#ifdef __STDC__
12198# include <limits.h>
12199#else
12200# include <assert.h>
12201#endif
12202
12203#undef mkdtemp
12204
12205/* Override any gcc2 internal prototype to avoid an error. */
12206#ifdef __cplusplus
12207extern "C"
12208{
12209#endif
12210/* We use char because int might match the return type of a gcc2
12211 builtin and then its argument prototype would still apply. */
12212char mkdtemp ();
12213/* The GNU C library defines this for functions which it implements
12214 to always fail with ENOSYS. Some functions are actually named
12215 something starting with __ and the normal name is an alias. */
12216#if defined (__stub_mkdtemp) || defined (__stub___mkdtemp)
12217choke me
12218#else
12219char (*f) () = mkdtemp;
12220#endif
12221#ifdef __cplusplus
12222}
12223#endif
12224
12225int
12226main ()
12227{
12228return f != mkdtemp;
12229 ;
12230 return 0;
12231}
12232_ACEOF
12233rm -f conftest.$ac_objext conftest$ac_exeext
12234if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12235 (eval $ac_link) 2>conftest.er1
12236 ac_status=$?
12237 grep -v '^ *+' conftest.er1 >conftest.err
12238 rm -f conftest.er1
12239 cat conftest.err >&5
12240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12241 (exit $ac_status); } &&
12242 { ac_try='test -z "$ac_c_werror_flag"
12243 || test ! -s conftest.err'
12244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12245 (eval $ac_try) 2>&5
12246 ac_status=$?
12247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12248 (exit $ac_status); }; } &&
12249 { ac_try='test -s conftest$ac_exeext'
12250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12251 (eval $ac_try) 2>&5
12252 ac_status=$?
12253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12254 (exit $ac_status); }; }; then
12255 ac_cv_func_mkdtemp=yes
12256else
12257 echo "$as_me: failed program was:" >&5
12258sed 's/^/| /' conftest.$ac_ext >&5
12259
12260ac_cv_func_mkdtemp=no
12261fi
12262rm -f conftest.err conftest.$ac_objext \
12263 conftest$ac_exeext conftest.$ac_ext
12264fi
12265echo "$as_me:$LINENO: result: $ac_cv_func_mkdtemp" >&5
12266echo "${ECHO_T}$ac_cv_func_mkdtemp" >&6
12267if test $ac_cv_func_mkdtemp = yes; then
12268
12269cat >>confdefs.h <<\_ACEOF
12270#define HAVE_MKDTEMP 1
12271_ACEOF
12272
12273fi
12274
252b5132 12275
cedd9a58
JJ
12276# Check whether fopen64 is available and whether _LARGEFILE64_SOURCE
12277# needs to be defined for it
42ecbf5e
DJ
12278echo "$as_me:$LINENO: checking for fopen64" >&5
12279echo $ECHO_N "checking for fopen64... $ECHO_C" >&6
12280if test "${bu_cv_have_fopen64+set}" = set; then
12281 echo $ECHO_N "(cached) $ECHO_C" >&6
12282else
12283 cat >conftest.$ac_ext <<_ACEOF
12284/* confdefs.h. */
12285_ACEOF
12286cat confdefs.h >>conftest.$ac_ext
12287cat >>conftest.$ac_ext <<_ACEOF
12288/* end confdefs.h. */
cedd9a58 12289#include <stdio.h>
42ecbf5e
DJ
12290int
12291main ()
12292{
cedd9a58 12293FILE *f = fopen64 ("/tmp/foo","r");
42ecbf5e
DJ
12294 ;
12295 return 0;
12296}
12297_ACEOF
12298rm -f conftest.$ac_objext conftest$ac_exeext
12299if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12300 (eval $ac_link) 2>conftest.er1
12301 ac_status=$?
12302 grep -v '^ *+' conftest.er1 >conftest.err
12303 rm -f conftest.er1
12304 cat conftest.err >&5
12305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306 (exit $ac_status); } &&
b7d4af3a
JW
12307 { ac_try='test -z "$ac_c_werror_flag"
12308 || test ! -s conftest.err'
42ecbf5e
DJ
12309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12310 (eval $ac_try) 2>&5
12311 ac_status=$?
12312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12313 (exit $ac_status); }; } &&
12314 { ac_try='test -s conftest$ac_exeext'
12315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12316 (eval $ac_try) 2>&5
12317 ac_status=$?
12318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319 (exit $ac_status); }; }; then
cedd9a58
JJ
12320 bu_cv_have_fopen64=yes
12321else
42ecbf5e
DJ
12322 echo "$as_me: failed program was:" >&5
12323sed 's/^/| /' conftest.$ac_ext >&5
12324
12325saved_CPPFLAGS=$CPPFLAGS
cedd9a58 12326 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
42ecbf5e
DJ
12327 cat >conftest.$ac_ext <<_ACEOF
12328/* confdefs.h. */
12329_ACEOF
12330cat confdefs.h >>conftest.$ac_ext
12331cat >>conftest.$ac_ext <<_ACEOF
12332/* end confdefs.h. */
cedd9a58 12333#include <stdio.h>
42ecbf5e
DJ
12334int
12335main ()
12336{
cedd9a58 12337FILE *f = fopen64 ("/tmp/foo","r");
42ecbf5e
DJ
12338 ;
12339 return 0;
12340}
12341_ACEOF
12342rm -f conftest.$ac_objext conftest$ac_exeext
12343if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12344 (eval $ac_link) 2>conftest.er1
12345 ac_status=$?
12346 grep -v '^ *+' conftest.er1 >conftest.err
12347 rm -f conftest.er1
12348 cat conftest.err >&5
12349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350 (exit $ac_status); } &&
b7d4af3a
JW
12351 { ac_try='test -z "$ac_c_werror_flag"
12352 || test ! -s conftest.err'
42ecbf5e
DJ
12353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12354 (eval $ac_try) 2>&5
12355 ac_status=$?
12356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357 (exit $ac_status); }; } &&
12358 { ac_try='test -s conftest$ac_exeext'
12359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12360 (eval $ac_try) 2>&5
12361 ac_status=$?
12362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363 (exit $ac_status); }; }; then
cedd9a58
JJ
12364 bu_cv_have_fopen64="need -D_LARGEFILE64_SOURCE"
12365else
42ecbf5e
DJ
12366 echo "$as_me: failed program was:" >&5
12367sed 's/^/| /' conftest.$ac_ext >&5
12368
12369bu_cv_have_fopen64=no
cedd9a58 12370fi
42ecbf5e
DJ
12371rm -f conftest.err conftest.$ac_objext \
12372 conftest$ac_exeext conftest.$ac_ext
17a5a5c3 12373 CPPFLAGS=$saved_CPPFLAGS
cedd9a58 12374fi
42ecbf5e
DJ
12375rm -f conftest.err conftest.$ac_objext \
12376 conftest$ac_exeext conftest.$ac_ext
cedd9a58 12377fi
cedd9a58 12378
42ecbf5e
DJ
12379echo "$as_me:$LINENO: result: $bu_cv_have_fopen64" >&5
12380echo "${ECHO_T}$bu_cv_have_fopen64" >&6
6db7a086 12381if test "$bu_cv_have_fopen64" != no; then
42ecbf5e
DJ
12382
12383cat >>confdefs.h <<\_ACEOF
cedd9a58 12384#define HAVE_FOPEN64 1
42ecbf5e 12385_ACEOF
cedd9a58 12386
fb5b5478 12387fi
42ecbf5e
DJ
12388echo "$as_me:$LINENO: checking for stat64" >&5
12389echo $ECHO_N "checking for stat64... $ECHO_C" >&6
12390if test "${bu_cv_have_stat64+set}" = set; then
12391 echo $ECHO_N "(cached) $ECHO_C" >&6
fb5b5478 12392else
42ecbf5e
DJ
12393 cat >conftest.$ac_ext <<_ACEOF
12394/* confdefs.h. */
12395_ACEOF
12396cat confdefs.h >>conftest.$ac_ext
12397cat >>conftest.$ac_ext <<_ACEOF
12398/* end confdefs.h. */
fb5b5478 12399#include <sys/stat.h>
42ecbf5e
DJ
12400int
12401main ()
12402{
fb5b5478 12403struct stat64 st; stat64 ("/tmp/foo", &st);
42ecbf5e
DJ
12404 ;
12405 return 0;
12406}
12407_ACEOF
12408rm -f conftest.$ac_objext conftest$ac_exeext
12409if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12410 (eval $ac_link) 2>conftest.er1
12411 ac_status=$?
12412 grep -v '^ *+' conftest.er1 >conftest.err
12413 rm -f conftest.er1
12414 cat conftest.err >&5
12415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416 (exit $ac_status); } &&
b7d4af3a
JW
12417 { ac_try='test -z "$ac_c_werror_flag"
12418 || test ! -s conftest.err'
42ecbf5e
DJ
12419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12420 (eval $ac_try) 2>&5
12421 ac_status=$?
12422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423 (exit $ac_status); }; } &&
12424 { ac_try='test -s conftest$ac_exeext'
12425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12426 (eval $ac_try) 2>&5
12427 ac_status=$?
12428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12429 (exit $ac_status); }; }; then
fb5b5478
JJ
12430 bu_cv_have_stat64=yes
12431else
42ecbf5e
DJ
12432 echo "$as_me: failed program was:" >&5
12433sed 's/^/| /' conftest.$ac_ext >&5
12434
12435saved_CPPFLAGS=$CPPFLAGS
fb5b5478 12436 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
42ecbf5e
DJ
12437 cat >conftest.$ac_ext <<_ACEOF
12438/* confdefs.h. */
12439_ACEOF
12440cat confdefs.h >>conftest.$ac_ext
12441cat >>conftest.$ac_ext <<_ACEOF
12442/* end confdefs.h. */
fb5b5478 12443#include <sys/stat.h>
42ecbf5e
DJ
12444int
12445main ()
12446{
fb5b5478 12447struct stat64 st; stat64 ("/tmp/foo", &st);
42ecbf5e
DJ
12448 ;
12449 return 0;
12450}
12451_ACEOF
12452rm -f conftest.$ac_objext conftest$ac_exeext
12453if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12454 (eval $ac_link) 2>conftest.er1
12455 ac_status=$?
12456 grep -v '^ *+' conftest.er1 >conftest.err
12457 rm -f conftest.er1
12458 cat conftest.err >&5
12459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12460 (exit $ac_status); } &&
b7d4af3a
JW
12461 { ac_try='test -z "$ac_c_werror_flag"
12462 || test ! -s conftest.err'
42ecbf5e
DJ
12463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12464 (eval $ac_try) 2>&5
12465 ac_status=$?
12466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12467 (exit $ac_status); }; } &&
12468 { ac_try='test -s conftest$ac_exeext'
12469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12470 (eval $ac_try) 2>&5
12471 ac_status=$?
12472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12473 (exit $ac_status); }; }; then
fb5b5478
JJ
12474 bu_cv_have_stat64="need -D_LARGEFILE64_SOURCE"
12475else
42ecbf5e
DJ
12476 echo "$as_me: failed program was:" >&5
12477sed 's/^/| /' conftest.$ac_ext >&5
12478
12479bu_cv_have_stat64=no
fb5b5478 12480fi
42ecbf5e
DJ
12481rm -f conftest.err conftest.$ac_objext \
12482 conftest$ac_exeext conftest.$ac_ext
fb5b5478
JJ
12483 CPPFLAGS=$saved_CPPFLAGS
12484fi
42ecbf5e
DJ
12485rm -f conftest.err conftest.$ac_objext \
12486 conftest$ac_exeext conftest.$ac_ext
fb5b5478
JJ
12487fi
12488
42ecbf5e
DJ
12489echo "$as_me:$LINENO: result: $bu_cv_have_stat64" >&5
12490echo "${ECHO_T}$bu_cv_have_stat64" >&6
fb5b5478 12491if test "$bu_cv_have_stat64" != no; then
42ecbf5e
DJ
12492
12493cat >>confdefs.h <<\_ACEOF
fb5b5478 12494#define HAVE_STAT64 1
42ecbf5e 12495_ACEOF
fb5b5478
JJ
12496
12497fi
12498if test "$bu_cv_have_fopen64" = "need -D_LARGEFILE64_SOURCE" \
12499 || test "$bu_cv_have_stat64" = "need -D_LARGEFILE64_SOURCE"; then
42ecbf5e
DJ
12500
12501cat >>confdefs.h <<\_ACEOF
cedd9a58 12502#define _LARGEFILE64_SOURCE 1
42ecbf5e 12503_ACEOF
cedd9a58 12504
fb5b5478 12505 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
cedd9a58
JJ
12506fi
12507
f353eb8a 12508# Some systems have frexp only in -lm, not in -lc.
42ecbf5e
DJ
12509echo "$as_me:$LINENO: checking for library containing frexp" >&5
12510echo $ECHO_N "checking for library containing frexp... $ECHO_C" >&6
12511if test "${ac_cv_search_frexp+set}" = set; then
12512 echo $ECHO_N "(cached) $ECHO_C" >&6
12513else
12514 ac_func_search_save_LIBS=$LIBS
12515ac_cv_search_frexp=no
12516cat >conftest.$ac_ext <<_ACEOF
12517/* confdefs.h. */
12518_ACEOF
12519cat confdefs.h >>conftest.$ac_ext
12520cat >>conftest.$ac_ext <<_ACEOF
12521/* end confdefs.h. */
f353eb8a 12522
f353eb8a 12523/* Override any gcc2 internal prototype to avoid an error. */
42ecbf5e
DJ
12524#ifdef __cplusplus
12525extern "C"
12526#endif
f353eb8a 12527/* We use char because int might match the return type of a gcc2
42ecbf5e
DJ
12528 builtin and then its argument prototype would still apply. */
12529char frexp ();
12530int
12531main ()
12532{
12533frexp ();
12534 ;
12535 return 0;
12536}
12537_ACEOF
12538rm -f conftest.$ac_objext conftest$ac_exeext
12539if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12540 (eval $ac_link) 2>conftest.er1
12541 ac_status=$?
12542 grep -v '^ *+' conftest.er1 >conftest.err
12543 rm -f conftest.er1
12544 cat conftest.err >&5
12545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12546 (exit $ac_status); } &&
b7d4af3a
JW
12547 { ac_try='test -z "$ac_c_werror_flag"
12548 || test ! -s conftest.err'
42ecbf5e
DJ
12549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12550 (eval $ac_try) 2>&5
12551 ac_status=$?
12552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12553 (exit $ac_status); }; } &&
12554 { ac_try='test -s conftest$ac_exeext'
12555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12556 (eval $ac_try) 2>&5
12557 ac_status=$?
12558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12559 (exit $ac_status); }; }; then
f353eb8a
ILT
12560 ac_cv_search_frexp="none required"
12561else
42ecbf5e
DJ
12562 echo "$as_me: failed program was:" >&5
12563sed 's/^/| /' conftest.$ac_ext >&5
12564
f353eb8a 12565fi
42ecbf5e
DJ
12566rm -f conftest.err conftest.$ac_objext \
12567 conftest$ac_exeext conftest.$ac_ext
12568if test "$ac_cv_search_frexp" = no; then
12569 for ac_lib in m; do
12570 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12571 cat >conftest.$ac_ext <<_ACEOF
12572/* confdefs.h. */
12573_ACEOF
12574cat confdefs.h >>conftest.$ac_ext
12575cat >>conftest.$ac_ext <<_ACEOF
12576/* end confdefs.h. */
12577
f353eb8a 12578/* Override any gcc2 internal prototype to avoid an error. */
42ecbf5e
DJ
12579#ifdef __cplusplus
12580extern "C"
12581#endif
f353eb8a 12582/* We use char because int might match the return type of a gcc2
42ecbf5e
DJ
12583 builtin and then its argument prototype would still apply. */
12584char frexp ();
12585int
12586main ()
12587{
12588frexp ();
12589 ;
12590 return 0;
12591}
12592_ACEOF
12593rm -f conftest.$ac_objext conftest$ac_exeext
12594if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12595 (eval $ac_link) 2>conftest.er1
12596 ac_status=$?
12597 grep -v '^ *+' conftest.er1 >conftest.err
12598 rm -f conftest.er1
12599 cat conftest.err >&5
12600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12601 (exit $ac_status); } &&
b7d4af3a
JW
12602 { ac_try='test -z "$ac_c_werror_flag"
12603 || test ! -s conftest.err'
42ecbf5e
DJ
12604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12605 (eval $ac_try) 2>&5
12606 ac_status=$?
12607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608 (exit $ac_status); }; } &&
12609 { ac_try='test -s conftest$ac_exeext'
12610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12611 (eval $ac_try) 2>&5
12612 ac_status=$?
12613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12614 (exit $ac_status); }; }; then
12615 ac_cv_search_frexp="-l$ac_lib"
f353eb8a
ILT
12616break
12617else
42ecbf5e
DJ
12618 echo "$as_me: failed program was:" >&5
12619sed 's/^/| /' conftest.$ac_ext >&5
12620
f353eb8a 12621fi
42ecbf5e
DJ
12622rm -f conftest.err conftest.$ac_objext \
12623 conftest$ac_exeext conftest.$ac_ext
12624 done
e5a52504 12625fi
42ecbf5e
DJ
12626LIBS=$ac_func_search_save_LIBS
12627fi
12628echo "$as_me:$LINENO: result: $ac_cv_search_frexp" >&5
12629echo "${ECHO_T}$ac_cv_search_frexp" >&6
12630if test "$ac_cv_search_frexp" != no; then
d15b04bd 12631 test "$ac_cv_search_frexp" = "none required" || LIBS="$ac_cv_search_frexp $LIBS"
42ecbf5e 12632
f353eb8a
ILT
12633fi
12634
42ecbf5e
DJ
12635
12636echo "$as_me:$LINENO: checking for time_t in time.h" >&5
12637echo $ECHO_N "checking for time_t in time.h... $ECHO_C" >&6
12638if test "${bu_cv_decl_time_t_time_h+set}" = set; then
12639 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12640else
42ecbf5e
DJ
12641 cat >conftest.$ac_ext <<_ACEOF
12642/* confdefs.h. */
12643_ACEOF
12644cat confdefs.h >>conftest.$ac_ext
12645cat >>conftest.$ac_ext <<_ACEOF
12646/* end confdefs.h. */
252b5132 12647#include <time.h>
42ecbf5e
DJ
12648int
12649main ()
12650{
252b5132 12651time_t i;
42ecbf5e
DJ
12652 ;
12653 return 0;
12654}
12655_ACEOF
12656rm -f conftest.$ac_objext
12657if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12658 (eval $ac_compile) 2>conftest.er1
12659 ac_status=$?
12660 grep -v '^ *+' conftest.er1 >conftest.err
12661 rm -f conftest.er1
12662 cat conftest.err >&5
12663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12664 (exit $ac_status); } &&
b7d4af3a
JW
12665 { ac_try='test -z "$ac_c_werror_flag"
12666 || test ! -s conftest.err'
42ecbf5e
DJ
12667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12668 (eval $ac_try) 2>&5
12669 ac_status=$?
12670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671 (exit $ac_status); }; } &&
12672 { ac_try='test -s conftest.$ac_objext'
12673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12674 (eval $ac_try) 2>&5
12675 ac_status=$?
12676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677 (exit $ac_status); }; }; then
252b5132
RH
12678 bu_cv_decl_time_t_time_h=yes
12679else
42ecbf5e
DJ
12680 echo "$as_me: failed program was:" >&5
12681sed 's/^/| /' conftest.$ac_ext >&5
12682
12683bu_cv_decl_time_t_time_h=no
252b5132 12684fi
42ecbf5e 12685rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
12686fi
12687
42ecbf5e
DJ
12688echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_time_h" >&5
12689echo "${ECHO_T}$bu_cv_decl_time_t_time_h" >&6
252b5132 12690if test $bu_cv_decl_time_t_time_h = yes; then
42ecbf5e
DJ
12691
12692cat >>confdefs.h <<\_ACEOF
252b5132 12693#define HAVE_TIME_T_IN_TIME_H 1
42ecbf5e 12694_ACEOF
252b5132
RH
12695
12696fi
12697
42ecbf5e
DJ
12698echo "$as_me:$LINENO: checking for time_t in sys/types.h" >&5
12699echo $ECHO_N "checking for time_t in sys/types.h... $ECHO_C" >&6
12700if test "${bu_cv_decl_time_t_types_h+set}" = set; then
12701 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12702else
42ecbf5e
DJ
12703 cat >conftest.$ac_ext <<_ACEOF
12704/* confdefs.h. */
12705_ACEOF
12706cat confdefs.h >>conftest.$ac_ext
12707cat >>conftest.$ac_ext <<_ACEOF
12708/* end confdefs.h. */
252b5132 12709#include <sys/types.h>
42ecbf5e
DJ
12710int
12711main ()
12712{
252b5132 12713time_t i;
42ecbf5e
DJ
12714 ;
12715 return 0;
12716}
12717_ACEOF
12718rm -f conftest.$ac_objext
12719if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12720 (eval $ac_compile) 2>conftest.er1
12721 ac_status=$?
12722 grep -v '^ *+' conftest.er1 >conftest.err
12723 rm -f conftest.er1
12724 cat conftest.err >&5
12725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12726 (exit $ac_status); } &&
b7d4af3a
JW
12727 { ac_try='test -z "$ac_c_werror_flag"
12728 || test ! -s conftest.err'
42ecbf5e
DJ
12729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12730 (eval $ac_try) 2>&5
12731 ac_status=$?
12732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12733 (exit $ac_status); }; } &&
12734 { ac_try='test -s conftest.$ac_objext'
12735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12736 (eval $ac_try) 2>&5
12737 ac_status=$?
12738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12739 (exit $ac_status); }; }; then
252b5132
RH
12740 bu_cv_decl_time_t_types_h=yes
12741else
42ecbf5e
DJ
12742 echo "$as_me: failed program was:" >&5
12743sed 's/^/| /' conftest.$ac_ext >&5
12744
12745bu_cv_decl_time_t_types_h=no
252b5132 12746fi
42ecbf5e 12747rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
12748fi
12749
42ecbf5e
DJ
12750echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_types_h" >&5
12751echo "${ECHO_T}$bu_cv_decl_time_t_types_h" >&6
252b5132 12752if test $bu_cv_decl_time_t_types_h = yes; then
42ecbf5e
DJ
12753
12754cat >>confdefs.h <<\_ACEOF
252b5132 12755#define HAVE_TIME_T_IN_TYPES_H 1
42ecbf5e 12756_ACEOF
252b5132
RH
12757
12758fi
12759
42ecbf5e
DJ
12760echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
12761echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
12762if test "${bu_cv_decl_getopt_unistd_h+set}" = set; then
12763 echo $ECHO_N "(cached) $ECHO_C" >&6
e46eba98 12764else
42ecbf5e
DJ
12765 cat >conftest.$ac_ext <<_ACEOF
12766/* confdefs.h. */
12767_ACEOF
12768cat confdefs.h >>conftest.$ac_ext
12769cat >>conftest.$ac_ext <<_ACEOF
12770/* end confdefs.h. */
e46eba98 12771#include <unistd.h>
42ecbf5e
DJ
12772int
12773main ()
12774{
e46eba98 12775extern int getopt (int, char *const*, const char *);
42ecbf5e
DJ
12776 ;
12777 return 0;
12778}
12779_ACEOF
12780rm -f conftest.$ac_objext
12781if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12782 (eval $ac_compile) 2>conftest.er1
12783 ac_status=$?
12784 grep -v '^ *+' conftest.er1 >conftest.err
12785 rm -f conftest.er1
12786 cat conftest.err >&5
12787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12788 (exit $ac_status); } &&
b7d4af3a
JW
12789 { ac_try='test -z "$ac_c_werror_flag"
12790 || test ! -s conftest.err'
42ecbf5e
DJ
12791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12792 (eval $ac_try) 2>&5
12793 ac_status=$?
12794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795 (exit $ac_status); }; } &&
12796 { ac_try='test -s conftest.$ac_objext'
12797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12798 (eval $ac_try) 2>&5
12799 ac_status=$?
12800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801 (exit $ac_status); }; }; then
e46eba98
NC
12802 bu_cv_decl_getopt_unistd_h=yes
12803else
42ecbf5e
DJ
12804 echo "$as_me: failed program was:" >&5
12805sed 's/^/| /' conftest.$ac_ext >&5
12806
12807bu_cv_decl_getopt_unistd_h=no
e46eba98 12808fi
42ecbf5e 12809rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e46eba98
NC
12810fi
12811
42ecbf5e
DJ
12812echo "$as_me:$LINENO: result: $bu_cv_decl_getopt_unistd_h" >&5
12813echo "${ECHO_T}$bu_cv_decl_getopt_unistd_h" >&6
e46eba98 12814if test $bu_cv_decl_getopt_unistd_h = yes; then
42ecbf5e
DJ
12815
12816cat >>confdefs.h <<\_ACEOF
e46eba98 12817#define HAVE_DECL_GETOPT 1
42ecbf5e 12818_ACEOF
e46eba98
NC
12819
12820fi
12821
252b5132
RH
12822# Under Next 3.2 <utime.h> apparently does not define struct utimbuf
12823# by default.
42ecbf5e
DJ
12824echo "$as_me:$LINENO: checking for utime.h" >&5
12825echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
12826if test "${bu_cv_header_utime_h+set}" = set; then
12827 echo $ECHO_N "(cached) $ECHO_C" >&6
12828else
12829 cat >conftest.$ac_ext <<_ACEOF
12830/* confdefs.h. */
12831_ACEOF
12832cat confdefs.h >>conftest.$ac_ext
12833cat >>conftest.$ac_ext <<_ACEOF
12834/* end confdefs.h. */
252b5132
RH
12835#include <sys/types.h>
12836#ifdef HAVE_TIME_H
12837#include <time.h>
12838#endif
12839#include <utime.h>
42ecbf5e
DJ
12840int
12841main ()
12842{
252b5132 12843struct utimbuf s;
42ecbf5e
DJ
12844 ;
12845 return 0;
12846}
12847_ACEOF
12848rm -f conftest.$ac_objext
12849if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12850 (eval $ac_compile) 2>conftest.er1
12851 ac_status=$?
12852 grep -v '^ *+' conftest.er1 >conftest.err
12853 rm -f conftest.er1
12854 cat conftest.err >&5
12855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856 (exit $ac_status); } &&
b7d4af3a
JW
12857 { ac_try='test -z "$ac_c_werror_flag"
12858 || test ! -s conftest.err'
42ecbf5e
DJ
12859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12860 (eval $ac_try) 2>&5
12861 ac_status=$?
12862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12863 (exit $ac_status); }; } &&
12864 { ac_try='test -s conftest.$ac_objext'
12865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12866 (eval $ac_try) 2>&5
12867 ac_status=$?
12868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12869 (exit $ac_status); }; }; then
252b5132
RH
12870 bu_cv_header_utime_h=yes
12871else
42ecbf5e
DJ
12872 echo "$as_me: failed program was:" >&5
12873sed 's/^/| /' conftest.$ac_ext >&5
12874
12875bu_cv_header_utime_h=no
252b5132 12876fi
42ecbf5e 12877rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
12878fi
12879
42ecbf5e
DJ
12880echo "$as_me:$LINENO: result: $bu_cv_header_utime_h" >&5
12881echo "${ECHO_T}$bu_cv_header_utime_h" >&6
252b5132 12882if test $bu_cv_header_utime_h = yes; then
42ecbf5e
DJ
12883
12884cat >>confdefs.h <<\_ACEOF
252b5132 12885#define HAVE_GOOD_UTIME_H 1
42ecbf5e 12886_ACEOF
252b5132
RH
12887
12888fi
12889
398ee8f1
SE
12890echo "$as_me:$LINENO: checking whether fprintf is declared" >&5
12891echo $ECHO_N "checking whether fprintf is declared... $ECHO_C" >&6
12892if test "${ac_cv_have_decl_fprintf+set}" = set; then
42ecbf5e 12893 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12894else
42ecbf5e
DJ
12895 cat >conftest.$ac_ext <<_ACEOF
12896/* confdefs.h. */
12897_ACEOF
12898cat confdefs.h >>conftest.$ac_ext
12899cat >>conftest.$ac_ext <<_ACEOF
12900/* end confdefs.h. */
398ee8f1 12901$ac_includes_default
42ecbf5e
DJ
12902int
12903main ()
12904{
398ee8f1
SE
12905#ifndef fprintf
12906 char *p = (char *) fprintf;
12907#endif
12908
42ecbf5e
DJ
12909 ;
12910 return 0;
12911}
12912_ACEOF
12913rm -f conftest.$ac_objext
12914if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12915 (eval $ac_compile) 2>conftest.er1
12916 ac_status=$?
12917 grep -v '^ *+' conftest.er1 >conftest.err
12918 rm -f conftest.er1
12919 cat conftest.err >&5
12920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12921 (exit $ac_status); } &&
b7d4af3a
JW
12922 { ac_try='test -z "$ac_c_werror_flag"
12923 || test ! -s conftest.err'
42ecbf5e
DJ
12924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12925 (eval $ac_try) 2>&5
12926 ac_status=$?
12927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12928 (exit $ac_status); }; } &&
12929 { ac_try='test -s conftest.$ac_objext'
12930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12931 (eval $ac_try) 2>&5
12932 ac_status=$?
12933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12934 (exit $ac_status); }; }; then
398ee8f1 12935 ac_cv_have_decl_fprintf=yes
252b5132 12936else
42ecbf5e
DJ
12937 echo "$as_me: failed program was:" >&5
12938sed 's/^/| /' conftest.$ac_ext >&5
12939
398ee8f1 12940ac_cv_have_decl_fprintf=no
252b5132 12941fi
42ecbf5e 12942rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 12943fi
398ee8f1
SE
12944echo "$as_me:$LINENO: result: $ac_cv_have_decl_fprintf" >&5
12945echo "${ECHO_T}$ac_cv_have_decl_fprintf" >&6
12946if test $ac_cv_have_decl_fprintf = yes; then
252b5132 12947
398ee8f1
SE
12948cat >>confdefs.h <<_ACEOF
12949#define HAVE_DECL_FPRINTF 1
12950_ACEOF
42ecbf5e 12951
398ee8f1
SE
12952
12953else
12954 cat >>confdefs.h <<_ACEOF
12955#define HAVE_DECL_FPRINTF 0
42ecbf5e 12956_ACEOF
252b5132 12957
252b5132 12958
3e321448
L
12959fi
12960echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
12961echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
12962if test "${ac_cv_have_decl_stpcpy+set}" = set; then
12963 echo $ECHO_N "(cached) $ECHO_C" >&6
12964else
12965 cat >conftest.$ac_ext <<_ACEOF
12966/* confdefs.h. */
12967_ACEOF
12968cat confdefs.h >>conftest.$ac_ext
12969cat >>conftest.$ac_ext <<_ACEOF
12970/* end confdefs.h. */
12971$ac_includes_default
12972int
12973main ()
12974{
12975#ifndef stpcpy
12976 char *p = (char *) stpcpy;
12977#endif
12978
12979 ;
12980 return 0;
12981}
12982_ACEOF
12983rm -f conftest.$ac_objext
12984if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12985 (eval $ac_compile) 2>conftest.er1
12986 ac_status=$?
12987 grep -v '^ *+' conftest.er1 >conftest.err
12988 rm -f conftest.er1
12989 cat conftest.err >&5
12990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12991 (exit $ac_status); } &&
12992 { ac_try='test -z "$ac_c_werror_flag"
12993 || test ! -s conftest.err'
12994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12995 (eval $ac_try) 2>&5
12996 ac_status=$?
12997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12998 (exit $ac_status); }; } &&
12999 { ac_try='test -s conftest.$ac_objext'
13000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13001 (eval $ac_try) 2>&5
13002 ac_status=$?
13003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13004 (exit $ac_status); }; }; then
13005 ac_cv_have_decl_stpcpy=yes
13006else
13007 echo "$as_me: failed program was:" >&5
13008sed 's/^/| /' conftest.$ac_ext >&5
13009
13010ac_cv_have_decl_stpcpy=no
13011fi
13012rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13013fi
13014echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
13015echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
13016if test $ac_cv_have_decl_stpcpy = yes; then
13017
13018cat >>confdefs.h <<_ACEOF
13019#define HAVE_DECL_STPCPY 1
13020_ACEOF
13021
13022
13023else
13024 cat >>confdefs.h <<_ACEOF
13025#define HAVE_DECL_STPCPY 0
13026_ACEOF
13027
13028
398ee8f1
SE
13029fi
13030echo "$as_me:$LINENO: checking whether strstr is declared" >&5
13031echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
13032if test "${ac_cv_have_decl_strstr+set}" = set; then
42ecbf5e 13033 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 13034else
42ecbf5e
DJ
13035 cat >conftest.$ac_ext <<_ACEOF
13036/* confdefs.h. */
13037_ACEOF
13038cat confdefs.h >>conftest.$ac_ext
13039cat >>conftest.$ac_ext <<_ACEOF
13040/* end confdefs.h. */
398ee8f1 13041$ac_includes_default
42ecbf5e
DJ
13042int
13043main ()
13044{
398ee8f1
SE
13045#ifndef strstr
13046 char *p = (char *) strstr;
13047#endif
13048
42ecbf5e
DJ
13049 ;
13050 return 0;
13051}
13052_ACEOF
13053rm -f conftest.$ac_objext
13054if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13055 (eval $ac_compile) 2>conftest.er1
13056 ac_status=$?
13057 grep -v '^ *+' conftest.er1 >conftest.err
13058 rm -f conftest.er1
13059 cat conftest.err >&5
13060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13061 (exit $ac_status); } &&
b7d4af3a
JW
13062 { ac_try='test -z "$ac_c_werror_flag"
13063 || test ! -s conftest.err'
42ecbf5e
DJ
13064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13065 (eval $ac_try) 2>&5
13066 ac_status=$?
13067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13068 (exit $ac_status); }; } &&
13069 { ac_try='test -s conftest.$ac_objext'
13070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13071 (eval $ac_try) 2>&5
13072 ac_status=$?
13073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13074 (exit $ac_status); }; }; then
398ee8f1 13075 ac_cv_have_decl_strstr=yes
252b5132 13076else
42ecbf5e
DJ
13077 echo "$as_me: failed program was:" >&5
13078sed 's/^/| /' conftest.$ac_ext >&5
13079
398ee8f1 13080ac_cv_have_decl_strstr=no
252b5132 13081fi
42ecbf5e 13082rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 13083fi
398ee8f1
SE
13084echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
13085echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
13086if test $ac_cv_have_decl_strstr = yes; then
252b5132 13087
398ee8f1
SE
13088cat >>confdefs.h <<_ACEOF
13089#define HAVE_DECL_STRSTR 1
13090_ACEOF
42ecbf5e 13091
398ee8f1
SE
13092
13093else
13094 cat >>confdefs.h <<_ACEOF
13095#define HAVE_DECL_STRSTR 0
42ecbf5e 13096_ACEOF
252b5132 13097
252b5132 13098
398ee8f1
SE
13099fi
13100echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
13101echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
13102if test "${ac_cv_have_decl_sbrk+set}" = set; then
42ecbf5e 13103 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 13104else
42ecbf5e
DJ
13105 cat >conftest.$ac_ext <<_ACEOF
13106/* confdefs.h. */
13107_ACEOF
13108cat confdefs.h >>conftest.$ac_ext
13109cat >>conftest.$ac_ext <<_ACEOF
13110/* end confdefs.h. */
398ee8f1 13111$ac_includes_default
42ecbf5e
DJ
13112int
13113main ()
13114{
398ee8f1
SE
13115#ifndef sbrk
13116 char *p = (char *) sbrk;
13117#endif
13118
42ecbf5e
DJ
13119 ;
13120 return 0;
13121}
13122_ACEOF
13123rm -f conftest.$ac_objext
13124if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13125 (eval $ac_compile) 2>conftest.er1
13126 ac_status=$?
13127 grep -v '^ *+' conftest.er1 >conftest.err
13128 rm -f conftest.er1
13129 cat conftest.err >&5
13130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13131 (exit $ac_status); } &&
b7d4af3a
JW
13132 { ac_try='test -z "$ac_c_werror_flag"
13133 || test ! -s conftest.err'
42ecbf5e
DJ
13134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13135 (eval $ac_try) 2>&5
13136 ac_status=$?
13137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13138 (exit $ac_status); }; } &&
13139 { ac_try='test -s conftest.$ac_objext'
13140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13141 (eval $ac_try) 2>&5
13142 ac_status=$?
13143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13144 (exit $ac_status); }; }; then
398ee8f1 13145 ac_cv_have_decl_sbrk=yes
252b5132 13146else
42ecbf5e
DJ
13147 echo "$as_me: failed program was:" >&5
13148sed 's/^/| /' conftest.$ac_ext >&5
13149
398ee8f1 13150ac_cv_have_decl_sbrk=no
252b5132 13151fi
42ecbf5e 13152rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 13153fi
398ee8f1
SE
13154echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
13155echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
13156if test $ac_cv_have_decl_sbrk = yes; then
252b5132 13157
398ee8f1
SE
13158cat >>confdefs.h <<_ACEOF
13159#define HAVE_DECL_SBRK 1
13160_ACEOF
42ecbf5e 13161
398ee8f1
SE
13162
13163else
13164 cat >>confdefs.h <<_ACEOF
13165#define HAVE_DECL_SBRK 0
42ecbf5e 13166_ACEOF
252b5132 13167
252b5132 13168
398ee8f1
SE
13169fi
13170echo "$as_me:$LINENO: checking whether getenv is declared" >&5
13171echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
13172if test "${ac_cv_have_decl_getenv+set}" = set; then
42ecbf5e 13173 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 13174else
42ecbf5e
DJ
13175 cat >conftest.$ac_ext <<_ACEOF
13176/* confdefs.h. */
13177_ACEOF
13178cat confdefs.h >>conftest.$ac_ext
13179cat >>conftest.$ac_ext <<_ACEOF
13180/* end confdefs.h. */
398ee8f1 13181$ac_includes_default
42ecbf5e
DJ
13182int
13183main ()
13184{
398ee8f1
SE
13185#ifndef getenv
13186 char *p = (char *) getenv;
13187#endif
13188
42ecbf5e
DJ
13189 ;
13190 return 0;
13191}
13192_ACEOF
13193rm -f conftest.$ac_objext
13194if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13195 (eval $ac_compile) 2>conftest.er1
13196 ac_status=$?
13197 grep -v '^ *+' conftest.er1 >conftest.err
13198 rm -f conftest.er1
13199 cat conftest.err >&5
13200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13201 (exit $ac_status); } &&
b7d4af3a
JW
13202 { ac_try='test -z "$ac_c_werror_flag"
13203 || test ! -s conftest.err'
42ecbf5e
DJ
13204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13205 (eval $ac_try) 2>&5
13206 ac_status=$?
13207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13208 (exit $ac_status); }; } &&
13209 { ac_try='test -s conftest.$ac_objext'
13210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13211 (eval $ac_try) 2>&5
13212 ac_status=$?
13213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13214 (exit $ac_status); }; }; then
398ee8f1 13215 ac_cv_have_decl_getenv=yes
252b5132 13216else
42ecbf5e
DJ
13217 echo "$as_me: failed program was:" >&5
13218sed 's/^/| /' conftest.$ac_ext >&5
13219
398ee8f1 13220ac_cv_have_decl_getenv=no
252b5132 13221fi
42ecbf5e 13222rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 13223fi
398ee8f1
SE
13224echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
13225echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
13226if test $ac_cv_have_decl_getenv = yes; then
252b5132 13227
398ee8f1
SE
13228cat >>confdefs.h <<_ACEOF
13229#define HAVE_DECL_GETENV 1
13230_ACEOF
42ecbf5e 13231
398ee8f1
SE
13232
13233else
13234 cat >>confdefs.h <<_ACEOF
13235#define HAVE_DECL_GETENV 0
42ecbf5e 13236_ACEOF
252b5132 13237
252b5132 13238
398ee8f1
SE
13239fi
13240echo "$as_me:$LINENO: checking whether environ is declared" >&5
13241echo $ECHO_N "checking whether environ is declared... $ECHO_C" >&6
13242if test "${ac_cv_have_decl_environ+set}" = set; then
42ecbf5e 13243 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 13244else
42ecbf5e
DJ
13245 cat >conftest.$ac_ext <<_ACEOF
13246/* confdefs.h. */
13247_ACEOF
13248cat confdefs.h >>conftest.$ac_ext
13249cat >>conftest.$ac_ext <<_ACEOF
13250/* end confdefs.h. */
398ee8f1 13251$ac_includes_default
42ecbf5e
DJ
13252int
13253main ()
13254{
398ee8f1
SE
13255#ifndef environ
13256 char *p = (char *) environ;
13257#endif
13258
42ecbf5e
DJ
13259 ;
13260 return 0;
13261}
13262_ACEOF
13263rm -f conftest.$ac_objext
13264if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13265 (eval $ac_compile) 2>conftest.er1
13266 ac_status=$?
13267 grep -v '^ *+' conftest.er1 >conftest.err
13268 rm -f conftest.er1
13269 cat conftest.err >&5
13270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13271 (exit $ac_status); } &&
b7d4af3a
JW
13272 { ac_try='test -z "$ac_c_werror_flag"
13273 || test ! -s conftest.err'
42ecbf5e
DJ
13274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13275 (eval $ac_try) 2>&5
13276 ac_status=$?
13277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13278 (exit $ac_status); }; } &&
13279 { ac_try='test -s conftest.$ac_objext'
13280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13281 (eval $ac_try) 2>&5
13282 ac_status=$?
13283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13284 (exit $ac_status); }; }; then
398ee8f1 13285 ac_cv_have_decl_environ=yes
252b5132 13286else
42ecbf5e
DJ
13287 echo "$as_me: failed program was:" >&5
13288sed 's/^/| /' conftest.$ac_ext >&5
13289
398ee8f1 13290ac_cv_have_decl_environ=no
252b5132 13291fi
42ecbf5e 13292rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 13293fi
398ee8f1
SE
13294echo "$as_me:$LINENO: result: $ac_cv_have_decl_environ" >&5
13295echo "${ECHO_T}$ac_cv_have_decl_environ" >&6
13296if test $ac_cv_have_decl_environ = yes; then
252b5132 13297
398ee8f1
SE
13298cat >>confdefs.h <<_ACEOF
13299#define HAVE_DECL_ENVIRON 1
13300_ACEOF
42ecbf5e 13301
398ee8f1
SE
13302
13303else
13304 cat >>confdefs.h <<_ACEOF
13305#define HAVE_DECL_ENVIRON 0
42ecbf5e 13306_ACEOF
252b5132 13307
252b5132 13308
398ee8f1 13309fi
b7d4af3a
JW
13310echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
13311echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
13312if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
13313 echo $ECHO_N "(cached) $ECHO_C" >&6
13314else
13315 cat >conftest.$ac_ext <<_ACEOF
13316/* confdefs.h. */
13317_ACEOF
13318cat confdefs.h >>conftest.$ac_ext
13319cat >>conftest.$ac_ext <<_ACEOF
13320/* end confdefs.h. */
13321$ac_includes_default
13322int
13323main ()
13324{
13325#ifndef getc_unlocked
13326 char *p = (char *) getc_unlocked;
13327#endif
13328
13329 ;
13330 return 0;
13331}
13332_ACEOF
13333rm -f conftest.$ac_objext
13334if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13335 (eval $ac_compile) 2>conftest.er1
13336 ac_status=$?
13337 grep -v '^ *+' conftest.er1 >conftest.err
13338 rm -f conftest.er1
13339 cat conftest.err >&5
13340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13341 (exit $ac_status); } &&
13342 { ac_try='test -z "$ac_c_werror_flag"
13343 || test ! -s conftest.err'
13344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13345 (eval $ac_try) 2>&5
13346 ac_status=$?
13347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13348 (exit $ac_status); }; } &&
13349 { ac_try='test -s conftest.$ac_objext'
13350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13351 (eval $ac_try) 2>&5
13352 ac_status=$?
13353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13354 (exit $ac_status); }; }; then
13355 ac_cv_have_decl_getc_unlocked=yes
13356else
13357 echo "$as_me: failed program was:" >&5
13358sed 's/^/| /' conftest.$ac_ext >&5
13359
13360ac_cv_have_decl_getc_unlocked=no
13361fi
13362rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13363fi
13364echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
13365echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
13366if test $ac_cv_have_decl_getc_unlocked = yes; then
13367
13368cat >>confdefs.h <<_ACEOF
13369#define HAVE_DECL_GETC_UNLOCKED 1
13370_ACEOF
13371
13372
13373else
13374 cat >>confdefs.h <<_ACEOF
13375#define HAVE_DECL_GETC_UNLOCKED 0
13376_ACEOF
13377
13378
db50c840
EB
13379fi
13380echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
13381echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
13382if test "${ac_cv_have_decl_snprintf+set}" = set; then
13383 echo $ECHO_N "(cached) $ECHO_C" >&6
13384else
13385 cat >conftest.$ac_ext <<_ACEOF
13386/* confdefs.h. */
13387_ACEOF
13388cat confdefs.h >>conftest.$ac_ext
13389cat >>conftest.$ac_ext <<_ACEOF
13390/* end confdefs.h. */
13391$ac_includes_default
13392int
13393main ()
13394{
13395#ifndef snprintf
13396 char *p = (char *) snprintf;
13397#endif
13398
13399 ;
13400 return 0;
13401}
13402_ACEOF
13403rm -f conftest.$ac_objext
13404if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13405 (eval $ac_compile) 2>conftest.er1
13406 ac_status=$?
13407 grep -v '^ *+' conftest.er1 >conftest.err
13408 rm -f conftest.er1
13409 cat conftest.err >&5
13410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411 (exit $ac_status); } &&
13412 { ac_try='test -z "$ac_c_werror_flag"
13413 || test ! -s conftest.err'
13414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13415 (eval $ac_try) 2>&5
13416 ac_status=$?
13417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13418 (exit $ac_status); }; } &&
13419 { ac_try='test -s conftest.$ac_objext'
13420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13421 (eval $ac_try) 2>&5
13422 ac_status=$?
13423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13424 (exit $ac_status); }; }; then
13425 ac_cv_have_decl_snprintf=yes
13426else
13427 echo "$as_me: failed program was:" >&5
13428sed 's/^/| /' conftest.$ac_ext >&5
13429
13430ac_cv_have_decl_snprintf=no
13431fi
13432rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13433fi
13434echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
13435echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
13436if test $ac_cv_have_decl_snprintf = yes; then
13437
13438cat >>confdefs.h <<_ACEOF
13439#define HAVE_DECL_SNPRINTF 1
13440_ACEOF
13441
13442
13443else
13444 cat >>confdefs.h <<_ACEOF
13445#define HAVE_DECL_SNPRINTF 0
13446_ACEOF
13447
13448
13449fi
13450echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
13451echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
13452if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
13453 echo $ECHO_N "(cached) $ECHO_C" >&6
13454else
13455 cat >conftest.$ac_ext <<_ACEOF
13456/* confdefs.h. */
13457_ACEOF
13458cat confdefs.h >>conftest.$ac_ext
13459cat >>conftest.$ac_ext <<_ACEOF
13460/* end confdefs.h. */
13461$ac_includes_default
13462int
13463main ()
13464{
13465#ifndef vsnprintf
13466 char *p = (char *) vsnprintf;
13467#endif
13468
13469 ;
13470 return 0;
13471}
13472_ACEOF
13473rm -f conftest.$ac_objext
13474if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13475 (eval $ac_compile) 2>conftest.er1
13476 ac_status=$?
13477 grep -v '^ *+' conftest.er1 >conftest.err
13478 rm -f conftest.er1
13479 cat conftest.err >&5
13480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13481 (exit $ac_status); } &&
13482 { ac_try='test -z "$ac_c_werror_flag"
13483 || test ! -s conftest.err'
13484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13485 (eval $ac_try) 2>&5
13486 ac_status=$?
13487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13488 (exit $ac_status); }; } &&
13489 { ac_try='test -s conftest.$ac_objext'
13490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13491 (eval $ac_try) 2>&5
13492 ac_status=$?
13493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13494 (exit $ac_status); }; }; then
13495 ac_cv_have_decl_vsnprintf=yes
13496else
13497 echo "$as_me: failed program was:" >&5
13498sed 's/^/| /' conftest.$ac_ext >&5
13499
13500ac_cv_have_decl_vsnprintf=no
13501fi
13502rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13503fi
13504echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
13505echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
13506if test $ac_cv_have_decl_vsnprintf = yes; then
13507
13508cat >>confdefs.h <<_ACEOF
13509#define HAVE_DECL_VSNPRINTF 1
13510_ACEOF
13511
13512
13513else
13514 cat >>confdefs.h <<_ACEOF
13515#define HAVE_DECL_VSNPRINTF 0
13516_ACEOF
13517
13518
b7d4af3a
JW
13519fi
13520
13521
252b5132
RH
13522
13523
13524case "${host}" in
8a965946 13525*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
42ecbf5e
DJ
13526
13527cat >>confdefs.h <<\_ACEOF
252b5132 13528#define USE_BINARY_FOPEN 1
42ecbf5e 13529_ACEOF
252b5132
RH
13530 ;;
13531esac
13532
13533# target-specific stuff:
13534
13535# Canonicalize the secondary target names.
13536if test -n "$enable_targets"; then
13537 for targ in `echo $enable_targets | sed 's/,/ /g'`
13538 do
6d83c84b 13539 result=`$ac_config_sub $targ 2>/dev/null`
252b5132
RH
13540 if test -n "$result"; then
13541 canon_targets="$canon_targets $result"
13542 else
13543 # Allow targets that config.sub doesn't recognize, like "all".
13544 canon_targets="$canon_targets $targ"
13545 fi
13546 done
13547fi
13548
5ba684e2
NC
13549if test "${ac_cv_header_iconv_h+set}" = set; then
13550 echo "$as_me:$LINENO: checking for iconv.h" >&5
13551echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
13552if test "${ac_cv_header_iconv_h+set}" = set; then
13553 echo $ECHO_N "(cached) $ECHO_C" >&6
13554fi
13555echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
13556echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
13557else
13558 # Is the header compilable?
13559echo "$as_me:$LINENO: checking iconv.h usability" >&5
13560echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
13561cat >conftest.$ac_ext <<_ACEOF
13562/* confdefs.h. */
13563_ACEOF
13564cat confdefs.h >>conftest.$ac_ext
13565cat >>conftest.$ac_ext <<_ACEOF
13566/* end confdefs.h. */
13567$ac_includes_default
13568#include <iconv.h>
13569_ACEOF
13570rm -f conftest.$ac_objext
13571if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13572 (eval $ac_compile) 2>conftest.er1
13573 ac_status=$?
13574 grep -v '^ *+' conftest.er1 >conftest.err
13575 rm -f conftest.er1
13576 cat conftest.err >&5
13577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13578 (exit $ac_status); } &&
13579 { ac_try='test -z "$ac_c_werror_flag"
13580 || test ! -s conftest.err'
13581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13582 (eval $ac_try) 2>&5
13583 ac_status=$?
13584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13585 (exit $ac_status); }; } &&
13586 { ac_try='test -s conftest.$ac_objext'
13587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13588 (eval $ac_try) 2>&5
13589 ac_status=$?
13590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13591 (exit $ac_status); }; }; then
13592 ac_header_compiler=yes
13593else
13594 echo "$as_me: failed program was:" >&5
13595sed 's/^/| /' conftest.$ac_ext >&5
13596
13597ac_header_compiler=no
13598fi
13599rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13600echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13601echo "${ECHO_T}$ac_header_compiler" >&6
13602
13603# Is the header present?
13604echo "$as_me:$LINENO: checking iconv.h presence" >&5
13605echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
13606cat >conftest.$ac_ext <<_ACEOF
13607/* confdefs.h. */
13608_ACEOF
13609cat confdefs.h >>conftest.$ac_ext
13610cat >>conftest.$ac_ext <<_ACEOF
13611/* end confdefs.h. */
13612#include <iconv.h>
13613_ACEOF
13614if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13615 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13616 ac_status=$?
13617 grep -v '^ *+' conftest.er1 >conftest.err
13618 rm -f conftest.er1
13619 cat conftest.err >&5
13620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13621 (exit $ac_status); } >/dev/null; then
13622 if test -s conftest.err; then
13623 ac_cpp_err=$ac_c_preproc_warn_flag
13624 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13625 else
13626 ac_cpp_err=
13627 fi
13628else
13629 ac_cpp_err=yes
13630fi
13631if test -z "$ac_cpp_err"; then
13632 ac_header_preproc=yes
13633else
13634 echo "$as_me: failed program was:" >&5
13635sed 's/^/| /' conftest.$ac_ext >&5
13636
13637 ac_header_preproc=no
13638fi
13639rm -f conftest.err conftest.$ac_ext
13640echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13641echo "${ECHO_T}$ac_header_preproc" >&6
13642
13643# So? What about this header?
13644case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13645 yes:no: )
13646 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
13647echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13648 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
13649echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
13650 ac_header_preproc=yes
13651 ;;
13652 no:yes:* )
13653 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
13654echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
13655 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
13656echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
13657 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
13658echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
13659 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
13660echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
13661 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
13662echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
13663 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
13664echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
13665 (
13666 cat <<\_ASBOX
13667## ------------------------------------------ ##
13668## Report this to the AC_PACKAGE_NAME lists. ##
13669## ------------------------------------------ ##
13670_ASBOX
13671 ) |
13672 sed "s/^/$as_me: WARNING: /" >&2
13673 ;;
13674esac
13675echo "$as_me:$LINENO: checking for iconv.h" >&5
13676echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
13677if test "${ac_cv_header_iconv_h+set}" = set; then
13678 echo $ECHO_N "(cached) $ECHO_C" >&6
13679else
13680 ac_cv_header_iconv_h=$ac_header_preproc
13681fi
13682echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
13683echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
13684
13685fi
13686
13687
13688
13689 if test "X$prefix" = "XNONE"; then
13690 acl_final_prefix="$ac_default_prefix"
13691 else
13692 acl_final_prefix="$prefix"
13693 fi
13694 if test "X$exec_prefix" = "XNONE"; then
13695 acl_final_exec_prefix='${prefix}'
13696 else
13697 acl_final_exec_prefix="$exec_prefix"
13698 fi
13699 acl_save_prefix="$prefix"
13700 prefix="$acl_final_prefix"
13701 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13702 prefix="$acl_save_prefix"
13703
13704
13705# Check whether --with-gnu-ld or --without-gnu-ld was given.
13706if test "${with_gnu_ld+set}" = set; then
13707 withval="$with_gnu_ld"
13708 test "$withval" = no || with_gnu_ld=yes
13709else
13710 with_gnu_ld=no
13711fi;
13712# Prepare PATH_SEPARATOR.
13713# The user is always right.
13714if test "${PATH_SEPARATOR+set}" != set; then
13715 echo "#! /bin/sh" >conf$$.sh
13716 echo "exit 0" >>conf$$.sh
13717 chmod +x conf$$.sh
13718 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13719 PATH_SEPARATOR=';'
13720 else
13721 PATH_SEPARATOR=:
13722 fi
13723 rm -f conf$$.sh
13724fi
13725ac_prog=ld
13726if test "$GCC" = yes; then
13727 # Check if gcc -print-prog-name=ld gives a path.
13728 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
13729echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
13730 case $host in
13731 *-*-mingw*)
13732 # gcc leaves a trailing carriage return which upsets mingw
13733 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13734 *)
13735 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13736 esac
13737 case $ac_prog in
13738 # Accept absolute paths.
13739 [\\/]* | [A-Za-z]:[\\/]*)
13740 re_direlt='/[^/][^/]*/\.\./'
13741 # Canonicalize the path of ld
13742 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
13743 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13744 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
13745 done
13746 test -z "$LD" && LD="$ac_prog"
13747 ;;
13748 "")
13749 # If it fails, then pretend we aren't using GCC.
13750 ac_prog=ld
13751 ;;
13752 *)
13753 # If it is relative, then search for the first ld in PATH.
13754 with_gnu_ld=unknown
13755 ;;
13756 esac
13757elif test "$with_gnu_ld" = yes; then
13758 echo "$as_me:$LINENO: checking for GNU ld" >&5
13759echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
13760else
13761 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13762echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
13763fi
13764if test "${acl_cv_path_LD+set}" = set; then
13765 echo $ECHO_N "(cached) $ECHO_C" >&6
13766else
13767 if test -z "$LD"; then
13768 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
13769 for ac_dir in $PATH; do
13770 test -z "$ac_dir" && ac_dir=.
13771 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13772 acl_cv_path_LD="$ac_dir/$ac_prog"
13773 # Check to see if the program is GNU ld. I'd rather use --version,
13774 # but apparently some GNU ld's only accept -v.
13775 # Break only if it was the GNU/non-GNU ld that we prefer.
13776 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
13777 test "$with_gnu_ld" != no && break
13778 else
13779 test "$with_gnu_ld" != yes && break
13780 fi
13781 fi
13782 done
13783 IFS="$ac_save_ifs"
13784else
13785 acl_cv_path_LD="$LD" # Let the user override the test with a path.
13786fi
13787fi
13788
13789LD="$acl_cv_path_LD"
13790if test -n "$LD"; then
13791 echo "$as_me:$LINENO: result: $LD" >&5
13792echo "${ECHO_T}$LD" >&6
13793else
13794 echo "$as_me:$LINENO: result: no" >&5
13795echo "${ECHO_T}no" >&6
13796fi
13797test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13798echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13799 { (exit 1); exit 1; }; }
13800echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13801echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
13802if test "${acl_cv_prog_gnu_ld+set}" = set; then
13803 echo $ECHO_N "(cached) $ECHO_C" >&6
13804else
13805 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13806if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
13807 acl_cv_prog_gnu_ld=yes
13808else
13809 acl_cv_prog_gnu_ld=no
13810fi
13811fi
13812echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
13813echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
13814with_gnu_ld=$acl_cv_prog_gnu_ld
13815
13816
13817
13818 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
13819echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
13820if test "${acl_cv_rpath+set}" = set; then
13821 echo $ECHO_N "(cached) $ECHO_C" >&6
13822else
13823
13824 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
13825 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13826 . ./conftest.sh
13827 rm -f ./conftest.sh
13828 acl_cv_rpath=done
13829
13830fi
13831echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
13832echo "${ECHO_T}$acl_cv_rpath" >&6
13833 wl="$acl_cv_wl"
13834 libext="$acl_cv_libext"
13835 shlibext="$acl_cv_shlibext"
13836 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13837 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13838 hardcode_direct="$acl_cv_hardcode_direct"
13839 hardcode_minus_L="$acl_cv_hardcode_minus_L"
13840 # Check whether --enable-rpath or --disable-rpath was given.
13841if test "${enable_rpath+set}" = set; then
13842 enableval="$enable_rpath"
13843 :
13844else
13845 enable_rpath=yes
13846fi;
13847
13848
13849
13850
13851
13852
13853
13854 use_additional=yes
13855
13856 acl_save_prefix="$prefix"
13857 prefix="$acl_final_prefix"
13858 acl_save_exec_prefix="$exec_prefix"
13859 exec_prefix="$acl_final_exec_prefix"
13860
13861 eval additional_includedir=\"$includedir\"
13862 eval additional_libdir=\"$libdir\"
13863
13864 exec_prefix="$acl_save_exec_prefix"
13865 prefix="$acl_save_prefix"
13866
13867
13868# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
13869if test "${with_libiconv_prefix+set}" = set; then
13870 withval="$with_libiconv_prefix"
13871
13872 if test "X$withval" = "Xno"; then
13873 use_additional=no
13874 else
13875 if test "X$withval" = "X"; then
13876
13877 acl_save_prefix="$prefix"
13878 prefix="$acl_final_prefix"
13879 acl_save_exec_prefix="$exec_prefix"
13880 exec_prefix="$acl_final_exec_prefix"
13881
13882 eval additional_includedir=\"$includedir\"
13883 eval additional_libdir=\"$libdir\"
13884
13885 exec_prefix="$acl_save_exec_prefix"
13886 prefix="$acl_save_prefix"
13887
13888 else
13889 additional_includedir="$withval/include"
13890 additional_libdir="$withval/lib"
13891 fi
13892 fi
13893
13894fi;
13895 LIBICONV=
13896 LTLIBICONV=
13897 INCICONV=
13898 rpathdirs=
13899 ltrpathdirs=
13900 names_already_handled=
13901 names_next_round='iconv '
13902 while test -n "$names_next_round"; do
13903 names_this_round="$names_next_round"
13904 names_next_round=
13905 for name in $names_this_round; do
13906 already_handled=
13907 for n in $names_already_handled; do
13908 if test "$n" = "$name"; then
13909 already_handled=yes
13910 break
13911 fi
13912 done
13913 if test -z "$already_handled"; then
13914 names_already_handled="$names_already_handled $name"
13915 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13916 eval value=\"\$HAVE_LIB$uppername\"
13917 if test -n "$value"; then
13918 if test "$value" = yes; then
13919 eval value=\"\$LIB$uppername\"
13920 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
13921 eval value=\"\$LTLIB$uppername\"
13922 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
13923 else
13924 :
13925 fi
13926 else
13927 found_dir=
13928 found_la=
13929 found_so=
13930 found_a=
13931 if test $use_additional = yes; then
13932 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
13933 found_dir="$additional_libdir"
13934 found_so="$additional_libdir/lib$name.$shlibext"
13935 if test -f "$additional_libdir/lib$name.la"; then
13936 found_la="$additional_libdir/lib$name.la"
13937 fi
13938 else
13939 if test -f "$additional_libdir/lib$name.$libext"; then
13940 found_dir="$additional_libdir"
13941 found_a="$additional_libdir/lib$name.$libext"
13942 if test -f "$additional_libdir/lib$name.la"; then
13943 found_la="$additional_libdir/lib$name.la"
13944 fi
13945 fi
13946 fi
13947 fi
13948 if test "X$found_dir" = "X"; then
13949 for x in $LDFLAGS $LTLIBICONV; do
13950
13951 acl_save_prefix="$prefix"
13952 prefix="$acl_final_prefix"
13953 acl_save_exec_prefix="$exec_prefix"
13954 exec_prefix="$acl_final_exec_prefix"
13955 eval x=\"$x\"
13956 exec_prefix="$acl_save_exec_prefix"
13957 prefix="$acl_save_prefix"
13958
13959 case "$x" in
13960 -L*)
13961 dir=`echo "X$x" | sed -e 's/^X-L//'`
13962 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
13963 found_dir="$dir"
13964 found_so="$dir/lib$name.$shlibext"
13965 if test -f "$dir/lib$name.la"; then
13966 found_la="$dir/lib$name.la"
13967 fi
13968 else
13969 if test -f "$dir/lib$name.$libext"; then
13970 found_dir="$dir"
13971 found_a="$dir/lib$name.$libext"
13972 if test -f "$dir/lib$name.la"; then
13973 found_la="$dir/lib$name.la"
13974 fi
13975 fi
13976 fi
13977 ;;
13978 esac
13979 if test "X$found_dir" != "X"; then
13980 break
13981 fi
13982 done
13983 fi
13984 if test "X$found_dir" != "X"; then
13985 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
13986 if test "X$found_so" != "X"; then
13987 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
13988 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13989 else
13990 haveit=
13991 for x in $ltrpathdirs; do
13992 if test "X$x" = "X$found_dir"; then
13993 haveit=yes
13994 break
13995 fi
13996 done
13997 if test -z "$haveit"; then
13998 ltrpathdirs="$ltrpathdirs $found_dir"
13999 fi
14000 if test "$hardcode_direct" = yes; then
14001 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14002 else
14003 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14004 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14005 haveit=
14006 for x in $rpathdirs; do
14007 if test "X$x" = "X$found_dir"; then
14008 haveit=yes
14009 break
14010 fi
14011 done
14012 if test -z "$haveit"; then
14013 rpathdirs="$rpathdirs $found_dir"
14014 fi
14015 else
14016 haveit=
14017 for x in $LDFLAGS $LIBICONV; do
14018
14019 acl_save_prefix="$prefix"
14020 prefix="$acl_final_prefix"
14021 acl_save_exec_prefix="$exec_prefix"
14022 exec_prefix="$acl_final_exec_prefix"
14023 eval x=\"$x\"
14024 exec_prefix="$acl_save_exec_prefix"
14025 prefix="$acl_save_prefix"
14026
14027 if test "X$x" = "X-L$found_dir"; then
14028 haveit=yes
14029 break
14030 fi
14031 done
14032 if test -z "$haveit"; then
14033 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
14034 fi
14035 if test "$hardcode_minus_L" != no; then
14036 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14037 else
14038 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14039 fi
14040 fi
14041 fi
14042 fi
14043 else
14044 if test "X$found_a" != "X"; then
14045 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
14046 else
14047 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
14048 fi
14049 fi
14050 additional_includedir=
14051 case "$found_dir" in
14052 */lib | */lib/)
14053 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14054 additional_includedir="$basedir/include"
14055 ;;
14056 esac
14057 if test "X$additional_includedir" != "X"; then
14058 if test "X$additional_includedir" != "X/usr/include"; then
14059 haveit=
14060 if test "X$additional_includedir" = "X/usr/local/include"; then
14061 if test -n "$GCC"; then
14062 case $host_os in
14063 linux*) haveit=yes;;
14064 esac
14065 fi
14066 fi
14067 if test -z "$haveit"; then
14068 for x in $CPPFLAGS $INCICONV; do
14069
14070 acl_save_prefix="$prefix"
14071 prefix="$acl_final_prefix"
14072 acl_save_exec_prefix="$exec_prefix"
14073 exec_prefix="$acl_final_exec_prefix"
14074 eval x=\"$x\"
14075 exec_prefix="$acl_save_exec_prefix"
14076 prefix="$acl_save_prefix"
14077
14078 if test "X$x" = "X-I$additional_includedir"; then
14079 haveit=yes
14080 break
14081 fi
14082 done
14083 if test -z "$haveit"; then
14084 if test -d "$additional_includedir"; then
14085 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
14086 fi
14087 fi
14088 fi
14089 fi
14090 fi
14091 if test -n "$found_la"; then
14092 save_libdir="$libdir"
14093 case "$found_la" in
14094 */* | *\\*) . "$found_la" ;;
14095 *) . "./$found_la" ;;
14096 esac
14097 libdir="$save_libdir"
14098 for dep in $dependency_libs; do
14099 case "$dep" in
14100 -L*)
14101 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14102 if test "X$additional_libdir" != "X/usr/lib"; then
14103 haveit=
14104 if test "X$additional_libdir" = "X/usr/local/lib"; then
14105 if test -n "$GCC"; then
14106 case $host_os in
14107 linux*) haveit=yes;;
14108 esac
14109 fi
14110 fi
14111 if test -z "$haveit"; then
14112 haveit=
14113 for x in $LDFLAGS $LIBICONV; do
14114
14115 acl_save_prefix="$prefix"
14116 prefix="$acl_final_prefix"
14117 acl_save_exec_prefix="$exec_prefix"
14118 exec_prefix="$acl_final_exec_prefix"
14119 eval x=\"$x\"
14120 exec_prefix="$acl_save_exec_prefix"
14121 prefix="$acl_save_prefix"
14122
14123 if test "X$x" = "X-L$additional_libdir"; then
14124 haveit=yes
14125 break
14126 fi
14127 done
14128 if test -z "$haveit"; then
14129 if test -d "$additional_libdir"; then
14130 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
14131 fi
14132 fi
14133 haveit=
14134 for x in $LDFLAGS $LTLIBICONV; do
14135
14136 acl_save_prefix="$prefix"
14137 prefix="$acl_final_prefix"
14138 acl_save_exec_prefix="$exec_prefix"
14139 exec_prefix="$acl_final_exec_prefix"
14140 eval x=\"$x\"
14141 exec_prefix="$acl_save_exec_prefix"
14142 prefix="$acl_save_prefix"
14143
14144 if test "X$x" = "X-L$additional_libdir"; then
14145 haveit=yes
14146 break
14147 fi
14148 done
14149 if test -z "$haveit"; then
14150 if test -d "$additional_libdir"; then
14151 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
14152 fi
14153 fi
14154 fi
14155 fi
14156 ;;
14157 -R*)
14158 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14159 if test "$enable_rpath" != no; then
14160 haveit=
14161 for x in $rpathdirs; do
14162 if test "X$x" = "X$dir"; then
14163 haveit=yes
14164 break
14165 fi
14166 done
14167 if test -z "$haveit"; then
14168 rpathdirs="$rpathdirs $dir"
14169 fi
14170 haveit=
14171 for x in $ltrpathdirs; do
14172 if test "X$x" = "X$dir"; then
14173 haveit=yes
14174 break
14175 fi
14176 done
14177 if test -z "$haveit"; then
14178 ltrpathdirs="$ltrpathdirs $dir"
14179 fi
14180 fi
14181 ;;
14182 -l*)
14183 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14184 ;;
14185 *.la)
14186 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14187 ;;
14188 *)
14189 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
14190 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14191 ;;
14192 esac
14193 done
14194 fi
14195 else
14196 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14197 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14198 fi
14199 fi
14200 fi
14201 done
14202 done
14203 if test "X$rpathdirs" != "X"; then
14204 if test -n "$hardcode_libdir_separator"; then
14205 alldirs=
14206 for found_dir in $rpathdirs; do
14207 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14208 done
14209 acl_save_libdir="$libdir"
14210 libdir="$alldirs"
14211 eval flag=\"$hardcode_libdir_flag_spec\"
14212 libdir="$acl_save_libdir"
14213 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14214 else
14215 for found_dir in $rpathdirs; do
14216 acl_save_libdir="$libdir"
14217 libdir="$found_dir"
14218 eval flag=\"$hardcode_libdir_flag_spec\"
14219 libdir="$acl_save_libdir"
14220 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14221 done
14222 fi
14223 fi
14224 if test "X$ltrpathdirs" != "X"; then
14225 for found_dir in $ltrpathdirs; do
14226 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14227 done
14228 fi
14229
14230
14231
14232
14233
14234
14235
14236 am_save_CPPFLAGS="$CPPFLAGS"
14237
14238 for element in $INCICONV; do
14239 haveit=
14240 for x in $CPPFLAGS; do
14241
14242 acl_save_prefix="$prefix"
14243 prefix="$acl_final_prefix"
14244 acl_save_exec_prefix="$exec_prefix"
14245 exec_prefix="$acl_final_exec_prefix"
14246 eval x=\"$x\"
14247 exec_prefix="$acl_save_exec_prefix"
14248 prefix="$acl_save_prefix"
14249
14250 if test "X$x" = "X$element"; then
14251 haveit=yes
14252 break
14253 fi
14254 done
14255 if test -z "$haveit"; then
14256 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14257 fi
14258 done
14259
14260
14261 echo "$as_me:$LINENO: checking for iconv" >&5
14262echo $ECHO_N "checking for iconv... $ECHO_C" >&6
14263if test "${am_cv_func_iconv+set}" = set; then
14264 echo $ECHO_N "(cached) $ECHO_C" >&6
14265else
14266
14267 am_cv_func_iconv="no, consider installing GNU libiconv"
14268 am_cv_lib_iconv=no
14269 cat >conftest.$ac_ext <<_ACEOF
14270/* confdefs.h. */
14271_ACEOF
14272cat confdefs.h >>conftest.$ac_ext
14273cat >>conftest.$ac_ext <<_ACEOF
14274/* end confdefs.h. */
14275#include <stdlib.h>
14276#include <iconv.h>
14277int
14278main ()
14279{
14280iconv_t cd = iconv_open("","");
14281 iconv(cd,NULL,NULL,NULL,NULL);
14282 iconv_close(cd);
14283 ;
14284 return 0;
14285}
14286_ACEOF
14287rm -f conftest.$ac_objext conftest$ac_exeext
14288if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14289 (eval $ac_link) 2>conftest.er1
14290 ac_status=$?
14291 grep -v '^ *+' conftest.er1 >conftest.err
14292 rm -f conftest.er1
14293 cat conftest.err >&5
14294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14295 (exit $ac_status); } &&
14296 { ac_try='test -z "$ac_c_werror_flag"
14297 || test ! -s conftest.err'
14298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14299 (eval $ac_try) 2>&5
14300 ac_status=$?
14301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14302 (exit $ac_status); }; } &&
14303 { ac_try='test -s conftest$ac_exeext'
14304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14305 (eval $ac_try) 2>&5
14306 ac_status=$?
14307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14308 (exit $ac_status); }; }; then
14309 am_cv_func_iconv=yes
14310else
14311 echo "$as_me: failed program was:" >&5
14312sed 's/^/| /' conftest.$ac_ext >&5
14313
14314fi
14315rm -f conftest.err conftest.$ac_objext \
14316 conftest$ac_exeext conftest.$ac_ext
14317 if test "$am_cv_func_iconv" != yes; then
14318 am_save_LIBS="$LIBS"
14319 LIBS="$LIBS $LIBICONV"
14320 cat >conftest.$ac_ext <<_ACEOF
14321/* confdefs.h. */
14322_ACEOF
14323cat confdefs.h >>conftest.$ac_ext
14324cat >>conftest.$ac_ext <<_ACEOF
14325/* end confdefs.h. */
14326#include <stdlib.h>
14327#include <iconv.h>
14328int
14329main ()
14330{
14331iconv_t cd = iconv_open("","");
14332 iconv(cd,NULL,NULL,NULL,NULL);
14333 iconv_close(cd);
14334 ;
14335 return 0;
14336}
14337_ACEOF
14338rm -f conftest.$ac_objext conftest$ac_exeext
14339if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14340 (eval $ac_link) 2>conftest.er1
14341 ac_status=$?
14342 grep -v '^ *+' conftest.er1 >conftest.err
14343 rm -f conftest.er1
14344 cat conftest.err >&5
14345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14346 (exit $ac_status); } &&
14347 { ac_try='test -z "$ac_c_werror_flag"
14348 || test ! -s conftest.err'
14349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14350 (eval $ac_try) 2>&5
14351 ac_status=$?
14352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14353 (exit $ac_status); }; } &&
14354 { ac_try='test -s conftest$ac_exeext'
14355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14356 (eval $ac_try) 2>&5
14357 ac_status=$?
14358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14359 (exit $ac_status); }; }; then
14360 am_cv_lib_iconv=yes
14361 am_cv_func_iconv=yes
14362else
14363 echo "$as_me: failed program was:" >&5
14364sed 's/^/| /' conftest.$ac_ext >&5
14365
14366fi
14367rm -f conftest.err conftest.$ac_objext \
14368 conftest$ac_exeext conftest.$ac_ext
14369 LIBS="$am_save_LIBS"
14370 fi
14371
14372fi
14373echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
14374echo "${ECHO_T}$am_cv_func_iconv" >&6
14375 if test "$am_cv_func_iconv" = yes; then
14376
14377cat >>confdefs.h <<\_ACEOF
14378#define HAVE_ICONV 1
14379_ACEOF
14380
14381 fi
14382 if test "$am_cv_lib_iconv" = yes; then
14383 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
14384echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
14385 echo "$as_me:$LINENO: result: $LIBICONV" >&5
14386echo "${ECHO_T}$LIBICONV" >&6
14387 else
14388 CPPFLAGS="$am_save_CPPFLAGS"
14389 LIBICONV=
14390 LTLIBICONV=
14391 fi
14392
14393
14394
14395 if test "$am_cv_func_iconv" = yes; then
14396 echo "$as_me:$LINENO: checking for iconv declaration" >&5
14397echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
14398 if test "${am_cv_proto_iconv+set}" = set; then
14399 echo $ECHO_N "(cached) $ECHO_C" >&6
14400else
14401
14402 cat >conftest.$ac_ext <<_ACEOF
14403/* confdefs.h. */
14404_ACEOF
14405cat confdefs.h >>conftest.$ac_ext
14406cat >>conftest.$ac_ext <<_ACEOF
14407/* end confdefs.h. */
14408
14409#include <stdlib.h>
14410#include <iconv.h>
14411extern
14412#ifdef __cplusplus
14413"C"
14414#endif
14415#if defined(__STDC__) || defined(__cplusplus)
14416size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
14417#else
14418size_t iconv();
14419#endif
14420
14421int
14422main ()
14423{
14424
14425 ;
14426 return 0;
14427}
14428_ACEOF
14429rm -f conftest.$ac_objext
14430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14431 (eval $ac_compile) 2>conftest.er1
14432 ac_status=$?
14433 grep -v '^ *+' conftest.er1 >conftest.err
14434 rm -f conftest.er1
14435 cat conftest.err >&5
14436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14437 (exit $ac_status); } &&
14438 { ac_try='test -z "$ac_c_werror_flag"
14439 || test ! -s conftest.err'
14440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14441 (eval $ac_try) 2>&5
14442 ac_status=$?
14443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14444 (exit $ac_status); }; } &&
14445 { ac_try='test -s conftest.$ac_objext'
14446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14447 (eval $ac_try) 2>&5
14448 ac_status=$?
14449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14450 (exit $ac_status); }; }; then
14451 am_cv_proto_iconv_arg1=""
14452else
14453 echo "$as_me: failed program was:" >&5
14454sed 's/^/| /' conftest.$ac_ext >&5
14455
14456am_cv_proto_iconv_arg1="const"
14457fi
14458rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14459 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);"
14460fi
14461
14462 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
14463 echo "$as_me:$LINENO: result: ${ac_t:-
14464 }$am_cv_proto_iconv" >&5
14465echo "${ECHO_T}${ac_t:-
14466 }$am_cv_proto_iconv" >&6
14467
14468cat >>confdefs.h <<_ACEOF
14469#define ICONV_CONST $am_cv_proto_iconv_arg1
14470_ACEOF
14471
14472 fi
14473
14474
252b5132
RH
14475all_targets=false
14476BUILD_NLMCONV=
14477NLMCONV_DEFS=
14478BUILD_SRCONV=
14479BUILD_DLLTOOL=
14480DLLTOOL_DEFS=
7aad4c3d 14481DLLTOOL_DEFAULT=
252b5132 14482BUILD_WINDRES=
692ed3e7 14483BUILD_WINDMC=
252b5132
RH
14484BUILD_DLLWRAP=
14485BUILD_MISC=
1d97d67f 14486BUILD_INSTALL_MISC=
8b1e6df3 14487OBJDUMP_DEFS=
252b5132
RH
14488
14489for targ in $target $canon_targets
14490do
14491 if test "x$targ" = "xall"; then
14492 all_targets=true
14493 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
14494 BUILD_SRCONV='$(SRCONV_PROG)'
14495 NLMCONV_DEFS="-DNLMCONV_I386 -DNLMCONV_ALPHA -DNLMCONV_POWERPC -DNLMCONV_SPARC"
1d97d67f 14496 BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
003bc0ba
NC
14497 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14498 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14499 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14500 if test -z "$DLLTOOL_DEFAULT"; then
14501 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
14502 fi
14503 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
14504 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
252b5132
RH
14505 else
14506 case $targ in
42ecbf5e 14507 i[3-7]86*-*-netware*)
252b5132
RH
14508 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
14509 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_I386"
14510 ;;
14511 alpha*-*-netware*)
14512 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
14513 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_ALPHA"
14514 ;;
14515 powerpc*-*-netware*)
14516 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
14517 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_POWERPC"
14518 ;;
14519 sparc*-*-netware*)
14520 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
14521 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_SPARC"
14522 ;;
14523 esac
14524 case $targ in
14525 *-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;;
14526 esac
14527 case $targ in
a8c548cb
NC
14528 arm-epoc-pe*)
14529 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
14530 if test -z "$DLLTOOL_DEFAULT"; then
14531 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_EPOC"
14532 fi
a8c548cb
NC
14533 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_EPOC -DDLLTOOL_ARM"
14534 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 14535 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
a8c548cb 14536 ;;
7148cc28
NC
14537 arm-wince-pe* | arm-*-wince)
14538 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
14539 if test -z "$DLLTOOL_DEFAULT"; then
14540 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_WINCE"
14541 fi
7148cc28
NC
14542 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_WINCE -DDLLTOOL_ARM"
14543 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 14544 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
7148cc28
NC
14545 ;;
14546 arm-*-pe*)
252b5132 14547 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
14548 if test -z "$DLLTOOL_DEFAULT"; then
14549 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
14550 fi
252b5132
RH
14551 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
14552 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 14553 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
7a7b06ef 14554 ;;
27a710e5 14555 thumb-*-pe*)
252b5132 14556 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
14557 if test -z "$DLLTOOL_DEFAULT"; then
14558 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
14559 fi
252b5132
RH
14560 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
14561 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 14562 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
7a7b06ef 14563 ;;
42037fe5 14564 x86_64-*-mingw*)
99ad8390 14565 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
14566 if test -z "$DLLTOOL_DEFAULT"; then
14567 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MX86_64"
14568 fi
99ad8390
NC
14569 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MX86_64"
14570 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 14571 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
99ad8390
NC
14572 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
14573 ;;
80c7c40a 14574 i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32** | i[3-7]86-*-netbsdpe*)
252b5132 14575 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
14576 if test -z "$DLLTOOL_DEFAULT"; then
14577 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
14578 fi
252b5132
RH
14579 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
14580 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 14581 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
252b5132 14582 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
7a7b06ef 14583 ;;
80c7c40a 14584 i[3-7]86-*-interix)
7a7b06ef 14585 BUILD_DLLTOOL='$(DLLTOOL_PROG)'
7aad4c3d
L
14586 if test -z "$DLLTOOL_DEFAULT"; then
14587 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
14588 fi
7a7b06ef
ILT
14589 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
14590 ;;
f0660b73
NC
14591 powerpc*-aix5.[01])
14592 ;;
14593 powerpc*-aix5.*)
14594 OBJDUMP_DEFS="-DAIX_WEAK_SUPPORT"
14595 ;;
e1d5b1e7 14596 powerpc*-*-pe* | powerpc*-*-cygwin*)
252b5132 14597 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
14598 if test -z "$DLLTOOL_DEFAULT"; then
14599 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_PPC"
14600 fi
252b5132
RH
14601 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_PPC"
14602 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 14603 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
8a0e0f38 14604 ;;
59678365 14605 powerpc*-*-linux* | powerpc*-*-elf* | powerpc*-*-eabi*)
1d97d67f 14606 BUILD_INSTALL_MISC="${BUILD_INSTALL_MISC} embedspu"
669a9a2a 14607 ;;
e1d5b1e7 14608 sh*-*-pe)
8a0e0f38 14609 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
14610 if test -z "$DLLTOOL_DEFAULT"; then
14611 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_SH"
14612 fi
8a0e0f38
NC
14613 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH"
14614 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 14615 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
8a0e0f38 14616 ;;
cd14b966 14617 spu-*-*)
1d97d67f 14618 BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
cd14b966 14619 ;;
e1d5b1e7 14620 mips*-*-pe)
8a0e0f38 14621 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
14622 if test -z "$DLLTOOL_DEFAULT"; then
14623 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MIPS"
14624 fi
8a0e0f38
NC
14625 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS"
14626 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 14627 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
7a7b06ef 14628 ;;
27a710e5 14629 mcore-*-pe)
661016bb 14630 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
14631 if test -z "$DLLTOOL_DEFAULT"; then
14632 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE"
14633 fi
661016bb
NC
14634 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
14635 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 14636 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
7a7b06ef 14637 ;;
27a710e5 14638 mcore-*-elf)
661016bb 14639 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
14640 if test -z "$DLLTOOL_DEFAULT"; then
14641 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE_ELF"
14642 fi
661016bb 14643 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
7a7b06ef 14644 ;;
15ab5209
DB
14645 mep-*)
14646 OBJDUMP_DEFS="-DSKIP_ZEROES=256 -DSKIP_ZEROES_AT_END=0"
14647 ;;
252b5132
RH
14648 esac
14649 fi
14650done
14651
7aad4c3d
L
14652DLLTOOL_DEFS="$DLLTOOL_DEFS $DLLTOOL_DEFAULT"
14653
42ecbf5e
DJ
14654if test "${with_windres+set}" = set; then
14655 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14656fi
14657
692ed3e7
NC
14658if test "${with_windmc+set}" = set; then
14659 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14660fi
14661
14662
42ecbf5e
DJ
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
1d97d67f 14674
42ecbf5e
DJ
14675cat >>confdefs.h <<_ACEOF
14676#define TARGET "${target}"
14677_ACEOF
14678
14679
14680targ=$target
14681. $srcdir/../bfd/config.bfd
14682if test "x$targ_underscore" = "xyes"; then
14683 UNDERSCORE=1
14684else
14685 UNDERSCORE=0
14686fi
14687
14688cat >>confdefs.h <<_ACEOF
14689#define TARGET_PREPENDS_UNDERSCORE $UNDERSCORE
14690_ACEOF
14691
14692
14693# Emulation
14694for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
14695do
14696 # Canonicalize the secondary target names.
14697 result=`$ac_config_sub $targ_alias 2>/dev/null`
14698 if test -n "$result"; then
14699 targ=$result
14700 else
14701 targ=$targ_alias
14702 fi
14703
14704 . ${srcdir}/configure.tgt
14705
14706 EMULATION=$targ_emul
14707 EMULATION_VECTOR=$targ_emul_vector
14708done
14709
14710
14711
14712
108a6f8e
CD
14713# Required for html and install-html
14714
14715
14716
14717
42ecbf5e 14718 ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
42ecbf5e
DJ
14719cat >confcache <<\_ACEOF
14720# This file is a shell script that caches the results of configure
14721# tests run on this system so they can be shared between configure
14722# scripts and configure runs, see configure's option --config-cache.
14723# It is not useful on other systems. If it contains results you don't
14724# want to keep, you may remove or edit it.
14725#
14726# config.status only pays attention to the cache file if you give it
14727# the --recheck option to rerun configure.
14728#
14729# `ac_cv_env_foo' variables (set or unset) will be overridden when
14730# loading this file, other *unset* `ac_cv_foo' will be assigned the
14731# following values.
14732
14733_ACEOF
14734
14735# The following way of writing the cache mishandles newlines in values,
14736# but we know of no workaround that is simple, portable, and efficient.
14737# So, don't put newlines in cache variables' values.
14738# Ultrix sh set writes to stderr and can't be redirected directly,
14739# and sets the high bit in the cache file unless we assign to the vars.
14740{
14741 (set) 2>&1 |
14742 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14743 *ac_space=\ *)
14744 # `set' does not quote correctly, so add quotes (double-quote
14745 # substitution turns \\\\ into \\, and sed turns \\ into \).
14746 sed -n \
14747 "s/'/'\\\\''/g;
14748 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14749 ;;
14750 *)
14751 # `set' quotes correctly as required by POSIX, so do not add quotes.
14752 sed -n \
14753 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
14754 ;;
14755 esac;
14756} |
14757 sed '
14758 t clear
14759 : clear
14760 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14761 t end
14762 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14763 : end' >>confcache
14764if diff $cache_file confcache >/dev/null 2>&1; then :; else
14765 if test -w $cache_file; then
14766 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
14767 cat confcache >$cache_file
14768 else
14769 echo "not updating unwritable cache $cache_file"
14770 fi
14771fi
14772rm -f confcache
14773
14774test "x$prefix" = xNONE && prefix=$ac_default_prefix
14775# Let make expand exec_prefix.
14776test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14777
14778# VPATH may cause trouble with some makes, so we remove $(srcdir),
14779# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14780# trailing colons and then remove the whole line if VPATH becomes empty
14781# (actually we leave an empty line to preserve line numbers).
14782if test "x$srcdir" = x.; then
14783 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14784s/:*\$(srcdir):*/:/;
14785s/:*\${srcdir}:*/:/;
14786s/:*@srcdir@:*/:/;
14787s/^\([^=]*=[ ]*\):*/\1/;
14788s/:*$//;
14789s/^[^=]*=[ ]*$//;
14790}'
14791fi
14792
14793DEFS=-DHAVE_CONFIG_H
14794
14795ac_libobjs=
14796ac_ltlibobjs=
14797for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14798 # 1. Remove the extension, and $U if already installed.
14799 ac_i=`echo "$ac_i" |
14800 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
14801 # 2. Add them.
14802 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
14803 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
14804done
14805LIBOBJS=$ac_libobjs
14806
14807LTLIBOBJS=$ac_ltlibobjs
14808
14809
14810if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14811 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
14812Usually this means the macro was only invoked conditionally." >&5
14813echo "$as_me: error: conditional \"AMDEP\" was never defined.
14814Usually this means the macro was only invoked conditionally." >&2;}
14815 { (exit 1); exit 1; }; }
14816fi
14817if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14818 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
14819Usually this means the macro was only invoked conditionally." >&5
14820echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
14821Usually this means the macro was only invoked conditionally." >&2;}
14822 { (exit 1); exit 1; }; }
14823fi
14824if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14825 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
14826Usually this means the macro was only invoked conditionally." >&5
14827echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
14828Usually this means the macro was only invoked conditionally." >&2;}
14829 { (exit 1); exit 1; }; }
14830fi
d5fbea21
DJ
14831if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
14832 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
14833Usually this means the macro was only invoked conditionally." >&5
14834echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
14835Usually this means the macro was only invoked conditionally." >&2;}
14836 { (exit 1); exit 1; }; }
14837fi
42ecbf5e
DJ
14838
14839: ${CONFIG_STATUS=./config.status}
14840ac_clean_files_save=$ac_clean_files
14841ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14842{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14843echo "$as_me: creating $CONFIG_STATUS" >&6;}
14844cat >$CONFIG_STATUS <<_ACEOF
14845#! $SHELL
14846# Generated by $as_me.
14847# Run this file to recreate the current configuration.
14848# Compiler output produced by configure, useful for debugging
14849# configure, is in config.log if it exists.
14850
14851debug=false
14852ac_cs_recheck=false
14853ac_cs_silent=false
14854SHELL=\${CONFIG_SHELL-$SHELL}
14855_ACEOF
252b5132 14856
42ecbf5e
DJ
14857cat >>$CONFIG_STATUS <<\_ACEOF
14858## --------------------- ##
14859## M4sh Initialization. ##
14860## --------------------- ##
252b5132 14861
42ecbf5e
DJ
14862# Be Bourne compatible
14863if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14864 emulate sh
14865 NULLCMD=:
14866 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14867 # is contrary to our usage. Disable this feature.
14868 alias -g '${1+"$@"}'='"$@"'
14869elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
14870 set -o posix
14871fi
14872DUALCASE=1; export DUALCASE # for MKS sh
252b5132 14873
42ecbf5e
DJ
14874# Support unset when possible.
14875if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14876 as_unset=unset
14877else
14878 as_unset=false
14879fi
252b5132
RH
14880
14881
42ecbf5e
DJ
14882# Work around bugs in pre-3.0 UWIN ksh.
14883$as_unset ENV MAIL MAILPATH
14884PS1='$ '
14885PS2='> '
14886PS4='+ '
252b5132 14887
42ecbf5e
DJ
14888# NLS nuisances.
14889for as_var in \
14890 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14891 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14892 LC_TELEPHONE LC_TIME
14893do
14894 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14895 eval $as_var=C; export $as_var
14896 else
14897 $as_unset $as_var
14898 fi
14899done
252b5132 14900
42ecbf5e
DJ
14901# Required to use basename.
14902if expr a : '\(a\)' >/dev/null 2>&1; then
14903 as_expr=expr
14904else
14905 as_expr=false
14906fi
252b5132 14907
42ecbf5e
DJ
14908if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
14909 as_basename=basename
14910else
14911 as_basename=false
14912fi
252b5132 14913
8b1e6df3 14914
42ecbf5e
DJ
14915# Name of the executable.
14916as_me=`$as_basename "$0" ||
14917$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14918 X"$0" : 'X\(//\)$' \| \
14919 X"$0" : 'X\(/\)$' \| \
14920 . : '\(.\)' 2>/dev/null ||
14921echo X/"$0" |
14922 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14923 /^X\/\(\/\/\)$/{ s//\1/; q; }
14924 /^X\/\(\/\).*/{ s//\1/; q; }
14925 s/.*/./; q'`
0218d1e4 14926
252b5132 14927
42ecbf5e
DJ
14928# PATH needs CR, and LINENO needs CR and PATH.
14929# Avoid depending upon Character Ranges.
14930as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14931as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14932as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14933as_cr_digits='0123456789'
14934as_cr_alnum=$as_cr_Letters$as_cr_digits
252b5132 14935
42ecbf5e
DJ
14936# The user is always right.
14937if test "${PATH_SEPARATOR+set}" != set; then
14938 echo "#! /bin/sh" >conf$$.sh
14939 echo "exit 0" >>conf$$.sh
14940 chmod +x conf$$.sh
14941 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14942 PATH_SEPARATOR=';'
14943 else
14944 PATH_SEPARATOR=:
14945 fi
14946 rm -f conf$$.sh
252b5132
RH
14947fi
14948
14949
42ecbf5e
DJ
14950 as_lineno_1=$LINENO
14951 as_lineno_2=$LINENO
14952 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14953 test "x$as_lineno_1" != "x$as_lineno_2" &&
14954 test "x$as_lineno_3" = "x$as_lineno_2" || {
14955 # Find who we are. Look in the path if we contain no path at all
14956 # relative or not.
14957 case $0 in
14958 *[\\/]* ) as_myself=$0 ;;
14959 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14960for as_dir in $PATH
eb1e0e80 14961do
42ecbf5e
DJ
14962 IFS=$as_save_IFS
14963 test -z "$as_dir" && as_dir=.
14964 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14965done
eb1e0e80 14966
42ecbf5e
DJ
14967 ;;
14968 esac
14969 # We did not find ourselves, most probably we were run as `sh COMMAND'
14970 # in which case we are not to be found in the path.
14971 if test "x$as_myself" = x; then
14972 as_myself=$0
14973 fi
14974 if test ! -f "$as_myself"; then
14975 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
14976echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
14977 { (exit 1); exit 1; }; }
14978 fi
14979 case $CONFIG_SHELL in
14980 '')
14981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14982for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
14983do
14984 IFS=$as_save_IFS
14985 test -z "$as_dir" && as_dir=.
14986 for as_base in sh bash ksh sh5; do
14987 case $as_dir in
14988 /*)
14989 if ("$as_dir/$as_base" -c '
14990 as_lineno_1=$LINENO
14991 as_lineno_2=$LINENO
14992 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14993 test "x$as_lineno_1" != "x$as_lineno_2" &&
14994 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
14995 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
14996 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
14997 CONFIG_SHELL=$as_dir/$as_base
14998 export CONFIG_SHELL
14999 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15000 fi;;
15001 esac
15002 done
eb1e0e80 15003done
42ecbf5e
DJ
15004;;
15005 esac
eb1e0e80 15006
42ecbf5e
DJ
15007 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15008 # uniformly replaced by the line number. The first 'sed' inserts a
15009 # line-number line before each line; the second 'sed' does the real
15010 # work. The second script uses 'N' to pair each line-number line
15011 # with the numbered line, and appends trailing '-' during
15012 # substitution so that $LINENO is not a special case at line end.
15013 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15014 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
15015 sed '=' <$as_myself |
15016 sed '
15017 N
15018 s,$,-,
15019 : loop
15020 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15021 t loop
15022 s,-$,,
15023 s,^['$as_cr_digits']*\n,,
15024 ' >$as_me.lineno &&
15025 chmod +x $as_me.lineno ||
15026 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15027echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15028 { (exit 1); exit 1; }; }
15029
15030 # Don't try to exec as it changes $[0], causing all sort of problems
15031 # (the dirname of $[0] is not the place where we might find the
15032 # original and so on. Autoconf is especially sensible to this).
15033 . ./$as_me.lineno
15034 # Exit status is that of the last command.
15035 exit
15036}
eb1e0e80
NC
15037
15038
42ecbf5e
DJ
15039case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15040 *c*,-n*) ECHO_N= ECHO_C='
15041' ECHO_T=' ' ;;
15042 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15043 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
15044esac
eb1e0e80 15045
42ecbf5e
DJ
15046if expr a : '\(a\)' >/dev/null 2>&1; then
15047 as_expr=expr
d15b04bd 15048else
42ecbf5e
DJ
15049 as_expr=false
15050fi
15051
15052rm -f conf$$ conf$$.exe conf$$.file
15053echo >conf$$.file
15054if ln -s conf$$.file conf$$ 2>/dev/null; then
15055 # We could just check for DJGPP; but this test a) works b) is more generic
15056 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15057 if test -f conf$$.exe; then
15058 # Don't use ln at all; we don't have any links
15059 as_ln_s='cp -p'
252b5132 15060 else
42ecbf5e 15061 as_ln_s='ln -s'
252b5132 15062 fi
42ecbf5e
DJ
15063elif ln conf$$.file conf$$ 2>/dev/null; then
15064 as_ln_s=ln
15065else
15066 as_ln_s='cp -p'
252b5132 15067fi
42ecbf5e 15068rm -f conf$$ conf$$.exe conf$$.file
252b5132 15069
42ecbf5e
DJ
15070if mkdir -p . 2>/dev/null; then
15071 as_mkdir_p=:
15072else
15073 test -d ./-p && rmdir ./-p
15074 as_mkdir_p=false
15075fi
d15b04bd 15076
42ecbf5e 15077as_executable_p="test -f"
252b5132 15078
42ecbf5e
DJ
15079# Sed expression to map a string onto a valid CPP name.
15080as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15081
15082# Sed expression to map a string onto a valid variable name.
15083as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15084
15085
15086# IFS
15087# We need space, tab and new line, in precisely that order.
15088as_nl='
15089'
15090IFS=" $as_nl"
15091
15092# CDPATH.
15093$as_unset CDPATH
15094
15095exec 6>&1
15096
15097# Open the log real soon, to keep \$[0] and so on meaningful, and to
15098# report actual input values of CONFIG_FILES etc. instead of their
15099# values after options handling. Logging --version etc. is OK.
15100exec 5>>config.log
15101{
15102 echo
15103 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15104## Running $as_me. ##
15105_ASBOX
15106} >&5
15107cat >&5 <<_CSEOF
15108
15109This file was extended by $as_me, which was
15110generated by GNU Autoconf 2.59. Invocation command line was
15111
15112 CONFIG_FILES = $CONFIG_FILES
15113 CONFIG_HEADERS = $CONFIG_HEADERS
15114 CONFIG_LINKS = $CONFIG_LINKS
15115 CONFIG_COMMANDS = $CONFIG_COMMANDS
15116 $ $0 $@
15117
15118_CSEOF
15119echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15120echo >&5
15121_ACEOF
15122
15123# Files that config.status was made for.
15124if test -n "$ac_config_files"; then
15125 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
252b5132
RH
15126fi
15127
42ecbf5e
DJ
15128if test -n "$ac_config_headers"; then
15129 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15130fi
e5a52504 15131
42ecbf5e
DJ
15132if test -n "$ac_config_links"; then
15133 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15134fi
e5a52504 15135
42ecbf5e
DJ
15136if test -n "$ac_config_commands"; then
15137 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15138fi
d15b04bd 15139
42ecbf5e
DJ
15140cat >>$CONFIG_STATUS <<\_ACEOF
15141
15142ac_cs_usage="\
15143\`$as_me' instantiates files from templates according to the
15144current configuration.
15145
15146Usage: $0 [OPTIONS] [FILE]...
15147
15148 -h, --help print this help, then exit
15149 -V, --version print version number, then exit
15150 -q, --quiet do not print progress messages
15151 -d, --debug don't remove temporary files
15152 --recheck update $as_me by reconfiguring in the same conditions
15153 --file=FILE[:TEMPLATE]
15154 instantiate the configuration file FILE
15155 --header=FILE[:TEMPLATE]
15156 instantiate the configuration header FILE
15157
15158Configuration files:
15159$config_files
15160
15161Configuration headers:
15162$config_headers
15163
15164Configuration commands:
15165$config_commands
15166
15167Report bugs to <bug-autoconf@gnu.org>."
15168_ACEOF
15169
15170cat >>$CONFIG_STATUS <<_ACEOF
15171ac_cs_version="\\
15172config.status
15173configured by $0, generated by GNU Autoconf 2.59,
15174 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15175
15176Copyright (C) 2003 Free Software Foundation, Inc.
15177This config.status script is free software; the Free Software Foundation
15178gives unlimited permission to copy, distribute and modify it."
15179srcdir=$srcdir
15180INSTALL="$INSTALL"
15181_ACEOF
15182
15183cat >>$CONFIG_STATUS <<\_ACEOF
15184# If no file are specified by the user, then we need to provide default
15185# value. By we need to know if files were specified by the user.
15186ac_need_defaults=:
15187while test $# != 0
15188do
15189 case $1 in
15190 --*=*)
15191 ac_option=`expr "x$1" : 'x\([^=]*\)='`
15192 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15193 ac_shift=:
15194 ;;
15195 -*)
15196 ac_option=$1
15197 ac_optarg=$2
15198 ac_shift=shift
15199 ;;
15200 *) # This is not an option, so the user has probably given explicit
15201 # arguments.
15202 ac_option=$1
15203 ac_need_defaults=false;;
15204 esac
15205
15206 case $ac_option in
15207 # Handling of the options.
15208_ACEOF
15209cat >>$CONFIG_STATUS <<\_ACEOF
15210 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15211 ac_cs_recheck=: ;;
15212 --version | --vers* | -V )
15213 echo "$ac_cs_version"; exit 0 ;;
15214 --he | --h)
15215 # Conflict between --help and --header
15216 { { echo "$as_me:$LINENO: error: ambiguous option: $1
15217Try \`$0 --help' for more information." >&5
15218echo "$as_me: error: ambiguous option: $1
15219Try \`$0 --help' for more information." >&2;}
15220 { (exit 1); exit 1; }; };;
15221 --help | --hel | -h )
15222 echo "$ac_cs_usage"; exit 0 ;;
15223 --debug | --d* | -d )
15224 debug=: ;;
15225 --file | --fil | --fi | --f )
15226 $ac_shift
15227 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15228 ac_need_defaults=false;;
15229 --header | --heade | --head | --hea )
15230 $ac_shift
15231 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15232 ac_need_defaults=false;;
15233 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15234 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15235 ac_cs_silent=: ;;
15236
15237 # This is an error.
15238 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15239Try \`$0 --help' for more information." >&5
15240echo "$as_me: error: unrecognized option: $1
15241Try \`$0 --help' for more information." >&2;}
15242 { (exit 1); exit 1; }; } ;;
15243
15244 *) ac_config_targets="$ac_config_targets $1" ;;
15245
15246 esac
15247 shift
15248done
15249
15250ac_configure_extra_args=
15251
15252if $ac_cs_silent; then
15253 exec 6>/dev/null
15254 ac_configure_extra_args="$ac_configure_extra_args --silent"
15255fi
15256
15257_ACEOF
15258cat >>$CONFIG_STATUS <<_ACEOF
15259if \$ac_cs_recheck; then
15260 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15261 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15262fi
15263
15264_ACEOF
15265
15266cat >>$CONFIG_STATUS <<_ACEOF
d15b04bd 15267#
42ecbf5e 15268# INIT-COMMANDS section.
d15b04bd 15269#
e5a52504 15270
42ecbf5e 15271AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
15272
15273
15274# The HP-UX ksh and POSIX shell print the target directory to stdout
15275# if CDPATH is set.
15276(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15277
15278sed_quote_subst='$sed_quote_subst'
15279double_quote_subst='$double_quote_subst'
15280delay_variable_subst='$delay_variable_subst'
15281macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
15282macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
15283enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
15284enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
15285pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
15286enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
15287host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
15288host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
15289host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
15290build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
15291build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
15292build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
15293SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
15294Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
15295GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
15296EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
15297FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
15298LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
15299NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
15300LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
15301max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
15302ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
15303exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
15304lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
15305lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
15306lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
15307reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
15308reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15309deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
15310file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
15311AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
15312AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15313STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
15314RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
15315old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15316old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15317old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15318CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
15319CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15320compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
15321GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
15322lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
15323lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
15324lt_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"`'
15325objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
15326SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
15327ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
15328MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
15329lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
15330lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
15331lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
15332lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
15333lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
15334need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
15335libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
15336shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15337extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15338archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
15339enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
15340export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15341whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15342compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
15343old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15344old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15345archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15346archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15347module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15348module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15349with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
15350allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15351no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15352hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15353hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
15354hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
15355hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
15356hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
15357hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
15358hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15359hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
15360inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
15361link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
15362fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
15363always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
15364export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15365exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15366include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15367prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15368file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
15369variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
15370need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15371need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
15372version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
15373runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15374shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15375shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
15376libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15377library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
15378soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15379postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15380postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15381finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15382finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
15383hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
15384sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15385sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15386hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
15387enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
15388enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
15389enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
15390old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
15391striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
15392
15393LTCC='$LTCC'
15394LTCFLAGS='$LTCFLAGS'
15395compiler='$compiler_DEFAULT'
15396
15397# Quote evaled strings.
15398for var in SED \
15399GREP \
15400EGREP \
15401FGREP \
15402LD \
15403NM \
15404LN_S \
15405lt_SP2NL \
15406lt_NL2SP \
15407reload_flag \
15408deplibs_check_method \
15409file_magic_cmd \
15410AR \
15411AR_FLAGS \
15412STRIP \
15413RANLIB \
15414CC \
15415CFLAGS \
15416compiler \
15417lt_cv_sys_global_symbol_pipe \
15418lt_cv_sys_global_symbol_to_cdecl \
15419lt_cv_sys_global_symbol_to_c_name_address \
15420SHELL \
15421ECHO \
15422lt_prog_compiler_no_builtin_flag \
15423lt_prog_compiler_wl \
15424lt_prog_compiler_pic \
15425lt_prog_compiler_static \
15426lt_cv_prog_compiler_c_o \
15427need_locks \
15428shrext_cmds \
15429export_dynamic_flag_spec \
15430whole_archive_flag_spec \
15431compiler_needs_object \
15432with_gnu_ld \
15433allow_undefined_flag \
15434no_undefined_flag \
15435hardcode_libdir_flag_spec \
15436hardcode_libdir_flag_spec_ld \
15437hardcode_libdir_separator \
15438fix_srcfile_path \
15439exclude_expsyms \
15440include_expsyms \
15441file_list_spec \
15442variables_saved_for_relink \
15443libname_spec \
15444library_names_spec \
15445soname_spec \
15446finish_eval \
15447old_striplib \
15448striplib; do
15449 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15450 *[\\\\\\\`\\"\\\$]*)
15451 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15452 ;;
15453 *)
15454 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15455 ;;
15456 esac
15457done
15458
15459# Double-quote double-evaled strings.
15460for var in reload_cmds \
15461old_postinstall_cmds \
15462old_postuninstall_cmds \
15463old_archive_cmds \
15464extract_expsyms_cmds \
15465old_archive_from_new_cmds \
15466old_archive_from_expsyms_cmds \
15467archive_cmds \
15468archive_expsym_cmds \
15469module_cmds \
15470module_expsym_cmds \
15471export_symbols_cmds \
15472prelink_cmds \
15473postinstall_cmds \
15474postuninstall_cmds \
15475finish_cmds \
15476sys_lib_search_path_spec \
15477sys_lib_dlsearch_path_spec; do
15478 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15479 *[\\\\\\\`\\"\\\$]*)
15480 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15481 ;;
15482 *)
15483 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15484 ;;
15485 esac
15486done
15487
15488# Fix-up fallback echo if it was mangled by the above quoting rules.
15489case \$lt_ECHO in
15490*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
15491 ;;
15492esac
15493
15494ac_aux_dir='$ac_aux_dir'
15495xsi_shell='$xsi_shell'
15496lt_shell_append='$lt_shell_append'
15497
15498# See if we are running on zsh, and set the options which allow our
15499# commands through without removal of \ escapes INIT.
15500if test -n "\${ZSH_VERSION+set}" ; then
15501 setopt NO_GLOB_SUBST
15502fi
15503
15504
15505 PACKAGE='$PACKAGE'
15506 VERSION='$VERSION'
15507 TIMESTAMP='$TIMESTAMP'
15508 RM='$RM'
15509 ofile='$ofile'
15510
15511
15512
20e95c23
DJ
15513# Capture the value of obsolete ALL_LINGUAS because we need it to compute
15514 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
15515 # from automake.
15516 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15517 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15518 LINGUAS="${LINGUAS-%UNSET%}"
15519
42ecbf5e
DJ
15520
15521_ACEOF
15522
15523
15524
15525cat >>$CONFIG_STATUS <<\_ACEOF
15526for ac_config_target in $ac_config_targets
252b5132 15527do
42ecbf5e
DJ
15528 case "$ac_config_target" in
15529 # Handling of arguments.
15530 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15531 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15532 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
15533 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
d7040cdb 15534 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20e95c23 15535 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
42ecbf5e
DJ
15536 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
15537 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15538echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15539 { (exit 1); exit 1; }; };;
d15b04bd 15540 esac
252b5132
RH
15541done
15542
42ecbf5e
DJ
15543# If the user did not use the arguments to specify the items to instantiate,
15544# then the envvar interface is used. Set only those that are not.
15545# We use the long form for the default assignment because of an extremely
15546# bizarre bug on SunOS 4.1.3.
15547if $ac_need_defaults; then
15548 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15549 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15550 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15551fi
15552
15553# Have a temporary directory for convenience. Make it in the build tree
15554# simply because there is no reason to put it here, and in addition,
15555# creating and moving files from /tmp can sometimes cause problems.
15556# Create a temporary directory, and hook for its removal unless debugging.
15557$debug ||
15558{
15559 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15560 trap '{ (exit 1); exit 1; }' 1 2 13 15
15561}
252b5132 15562
42ecbf5e 15563# Create a (secure) tmp directory for tmp files.
e5a52504 15564
42ecbf5e
DJ
15565{
15566 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
15567 test -n "$tmp" && test -d "$tmp"
15568} ||
15569{
15570 tmp=./confstat$$-$RANDOM
15571 (umask 077 && mkdir $tmp)
15572} ||
15573{
15574 echo "$me: cannot create a temporary directory in ." >&2
15575 { (exit 1); exit 1; }
15576}
15577
15578_ACEOF
15579
15580cat >>$CONFIG_STATUS <<_ACEOF
15581
15582#
15583# CONFIG_FILES section.
15584#
e5a52504 15585
42ecbf5e
DJ
15586# No need to generate the scripts if there are no CONFIG_FILES.
15587# This happens for instance when ./config.status config.h
15588if test -n "\$CONFIG_FILES"; then
15589 # Protect against being on the right side of a sed subst in config.status.
15590 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15591 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15592s,@SHELL@,$SHELL,;t t
15593s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15594s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15595s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15596s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15597s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15598s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15599s,@exec_prefix@,$exec_prefix,;t t
15600s,@prefix@,$prefix,;t t
15601s,@program_transform_name@,$program_transform_name,;t t
15602s,@bindir@,$bindir,;t t
15603s,@sbindir@,$sbindir,;t t
15604s,@libexecdir@,$libexecdir,;t t
15605s,@datadir@,$datadir,;t t
15606s,@sysconfdir@,$sysconfdir,;t t
15607s,@sharedstatedir@,$sharedstatedir,;t t
15608s,@localstatedir@,$localstatedir,;t t
15609s,@libdir@,$libdir,;t t
15610s,@includedir@,$includedir,;t t
15611s,@oldincludedir@,$oldincludedir,;t t
15612s,@infodir@,$infodir,;t t
15613s,@mandir@,$mandir,;t t
15614s,@build_alias@,$build_alias,;t t
15615s,@host_alias@,$host_alias,;t t
15616s,@target_alias@,$target_alias,;t t
15617s,@DEFS@,$DEFS,;t t
15618s,@ECHO_C@,$ECHO_C,;t t
15619s,@ECHO_N@,$ECHO_N,;t t
15620s,@ECHO_T@,$ECHO_T,;t t
15621s,@LIBS@,$LIBS,;t t
15622s,@build@,$build,;t t
15623s,@build_cpu@,$build_cpu,;t t
15624s,@build_vendor@,$build_vendor,;t t
15625s,@build_os@,$build_os,;t t
15626s,@host@,$host,;t t
15627s,@host_cpu@,$host_cpu,;t t
15628s,@host_vendor@,$host_vendor,;t t
15629s,@host_os@,$host_os,;t t
15630s,@target@,$target,;t t
15631s,@target_cpu@,$target_cpu,;t t
15632s,@target_vendor@,$target_vendor,;t t
15633s,@target_os@,$target_os,;t t
15634s,@CC@,$CC,;t t
15635s,@CFLAGS@,$CFLAGS,;t t
15636s,@LDFLAGS@,$LDFLAGS,;t t
15637s,@CPPFLAGS@,$CPPFLAGS,;t t
15638s,@ac_ct_CC@,$ac_ct_CC,;t t
15639s,@EXEEXT@,$EXEEXT,;t t
15640s,@OBJEXT@,$OBJEXT,;t t
15641s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
15642s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
15643s,@INSTALL_DATA@,$INSTALL_DATA,;t t
15644s,@CYGPATH_W@,$CYGPATH_W,;t t
15645s,@PACKAGE@,$PACKAGE,;t t
15646s,@VERSION@,$VERSION,;t t
15647s,@ACLOCAL@,$ACLOCAL,;t t
15648s,@AUTOCONF@,$AUTOCONF,;t t
15649s,@AUTOMAKE@,$AUTOMAKE,;t t
15650s,@AUTOHEADER@,$AUTOHEADER,;t t
15651s,@MAKEINFO@,$MAKEINFO,;t t
15652s,@install_sh@,$install_sh,;t t
15653s,@STRIP@,$STRIP,;t t
15654s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
15655s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
15656s,@mkdir_p@,$mkdir_p,;t t
15657s,@AWK@,$AWK,;t t
15658s,@SET_MAKE@,$SET_MAKE,;t t
15659s,@am__leading_dot@,$am__leading_dot,;t t
15660s,@AMTAR@,$AMTAR,;t t
15661s,@am__tar@,$am__tar,;t t
15662s,@am__untar@,$am__untar,;t t
15663s,@DEPDIR@,$DEPDIR,;t t
15664s,@am__include@,$am__include,;t t
15665s,@am__quote@,$am__quote,;t t
15666s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
15667s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
15668s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
15669s,@CCDEPMODE@,$CCDEPMODE,;t t
15670s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
15671s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
d7040cdb
SE
15672s,@LIBTOOL@,$LIBTOOL,;t t
15673s,@SED@,$SED,;t t
15674s,@EGREP@,$EGREP,;t t
15675s,@FGREP@,$FGREP,;t t
15676s,@GREP@,$GREP,;t t
15677s,@LD@,$LD,;t t
15678s,@DUMPBIN@,$DUMPBIN,;t t
15679s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
15680s,@NM@,$NM,;t t
42ecbf5e 15681s,@LN_S@,$LN_S,;t t
d7040cdb
SE
15682s,@AR@,$AR,;t t
15683s,@ac_ct_AR@,$ac_ct_AR,;t t
42ecbf5e
DJ
15684s,@RANLIB@,$RANLIB,;t t
15685s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
d7040cdb
SE
15686s,@lt_ECHO@,$lt_ECHO,;t t
15687s,@CPP@,$CPP,;t t
42ecbf5e
DJ
15688s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
15689s,@NO_WERROR@,$NO_WERROR,;t t
15690s,@YACC@,$YACC,;t t
15691s,@LEX@,$LEX,;t t
15692s,@LEXLIB@,$LEXLIB,;t t
15693s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
42ecbf5e 15694s,@USE_NLS@,$USE_NLS,;t t
20e95c23
DJ
15695s,@LIBINTL@,$LIBINTL,;t t
15696s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
15697s,@INCINTL@,$INCINTL,;t t
42ecbf5e 15698s,@XGETTEXT@,$XGETTEXT,;t t
20e95c23
DJ
15699s,@GMSGFMT@,$GMSGFMT,;t t
15700s,@POSUB@,$POSUB,;t t
42ecbf5e 15701s,@CATALOGS@,$CATALOGS,;t t
42ecbf5e 15702s,@DATADIRNAME@,$DATADIRNAME,;t t
42ecbf5e 15703s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20e95c23
DJ
15704s,@GENCAT@,$GENCAT,;t t
15705s,@CATOBJEXT@,$CATOBJEXT,;t t
42ecbf5e 15706s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
20e95c23
DJ
15707s,@MSGFMT@,$MSGFMT,;t t
15708s,@MSGMERGE@,$MSGMERGE,;t t
42ecbf5e
DJ
15709s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
15710s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
15711s,@MAINT@,$MAINT,;t t
d5fbea21
DJ
15712s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
15713s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
42ecbf5e 15714s,@HDEFINES@,$HDEFINES,;t t
42ecbf5e
DJ
15715s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
15716s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
15717s,@DEMANGLER_NAME@,$DEMANGLER_NAME,;t t
20e95c23 15718s,@ALLOCA@,$ALLOCA,;t t
5ba684e2
NC
15719s,@LIBICONV@,$LIBICONV,;t t
15720s,@LTLIBICONV@,$LTLIBICONV,;t t
42ecbf5e
DJ
15721s,@NLMCONV_DEFS@,$NLMCONV_DEFS,;t t
15722s,@BUILD_NLMCONV@,$BUILD_NLMCONV,;t t
15723s,@BUILD_SRCONV@,$BUILD_SRCONV,;t t
15724s,@BUILD_DLLTOOL@,$BUILD_DLLTOOL,;t t
15725s,@DLLTOOL_DEFS@,$DLLTOOL_DEFS,;t t
15726s,@BUILD_WINDRES@,$BUILD_WINDRES,;t t
692ed3e7 15727s,@BUILD_WINDMC@,$BUILD_WINDMC,;t t
42ecbf5e
DJ
15728s,@BUILD_DLLWRAP@,$BUILD_DLLWRAP,;t t
15729s,@BUILD_MISC@,$BUILD_MISC,;t t
1d97d67f 15730s,@BUILD_INSTALL_MISC@,$BUILD_INSTALL_MISC,;t t
42ecbf5e
DJ
15731s,@OBJDUMP_DEFS@,$OBJDUMP_DEFS,;t t
15732s,@EMULATION@,$EMULATION,;t t
15733s,@EMULATION_VECTOR@,$EMULATION_VECTOR,;t t
108a6f8e
CD
15734s,@datarootdir@,$datarootdir,;t t
15735s,@docdir@,$docdir,;t t
15736s,@htmldir@,$htmldir,;t t
42ecbf5e
DJ
15737s,@LIBOBJS@,$LIBOBJS,;t t
15738s,@LTLIBOBJS@,$LTLIBOBJS,;t t
d15b04bd 15739CEOF
252b5132 15740
42ecbf5e
DJ
15741_ACEOF
15742
15743 cat >>$CONFIG_STATUS <<\_ACEOF
15744 # Split the substitutions into bite-sized pieces for seds with
15745 # small command number limits, like on Digital OSF/1 and HP-UX.
15746 ac_max_sed_lines=48
15747 ac_sed_frag=1 # Number of current file.
15748 ac_beg=1 # First line for current file.
15749 ac_end=$ac_max_sed_lines # Line after last line for current file.
15750 ac_more_lines=:
15751 ac_sed_cmds=
15752 while $ac_more_lines; do
15753 if test $ac_beg -gt 1; then
15754 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15755 else
15756 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15757 fi
15758 if test ! -s $tmp/subs.frag; then
15759 ac_more_lines=false
d15b04bd 15760 else
42ecbf5e
DJ
15761 # The purpose of the label and of the branching condition is to
15762 # speed up the sed processing (if there are no `@' at all, there
15763 # is no need to browse any of the substitutions).
15764 # These are the two extra sed commands mentioned above.
15765 (echo ':t
15766 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
15767 if test -z "$ac_sed_cmds"; then
15768 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
15769 else
15770 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
15771 fi
15772 ac_sed_frag=`expr $ac_sed_frag + 1`
15773 ac_beg=$ac_end
15774 ac_end=`expr $ac_end + $ac_max_sed_lines`
d15b04bd 15775 fi
42ecbf5e
DJ
15776 done
15777 if test -z "$ac_sed_cmds"; then
15778 ac_sed_cmds=cat
252b5132 15779 fi
42ecbf5e 15780fi # test -n "$CONFIG_FILES"
252b5132 15781
42ecbf5e
DJ
15782_ACEOF
15783cat >>$CONFIG_STATUS <<\_ACEOF
15784for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
e5a52504 15785 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42ecbf5e
DJ
15786 case $ac_file in
15787 - | *:- | *:-:* ) # input from stdin
15788 cat >$tmp/stdin
15789 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15790 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15791 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15792 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15793 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
15794 esac
15795
42ecbf5e
DJ
15796 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
15797 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15798$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15799 X"$ac_file" : 'X\(//\)[^/]' \| \
15800 X"$ac_file" : 'X\(//\)$' \| \
15801 X"$ac_file" : 'X\(/\)' \| \
15802 . : '\(.\)' 2>/dev/null ||
15803echo X"$ac_file" |
15804 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15805 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15806 /^X\(\/\/\)$/{ s//\1/; q; }
15807 /^X\(\/\).*/{ s//\1/; q; }
15808 s/.*/./; q'`
15809 { if $as_mkdir_p; then
15810 mkdir -p "$ac_dir"
d15b04bd 15811 else
42ecbf5e
DJ
15812 as_dir="$ac_dir"
15813 as_dirs=
15814 while test ! -d "$as_dir"; do
15815 as_dirs="$as_dir $as_dirs"
15816 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15817$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15818 X"$as_dir" : 'X\(//\)[^/]' \| \
15819 X"$as_dir" : 'X\(//\)$' \| \
15820 X"$as_dir" : 'X\(/\)' \| \
15821 . : '\(.\)' 2>/dev/null ||
15822echo X"$as_dir" |
15823 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15824 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15825 /^X\(\/\/\)$/{ s//\1/; q; }
15826 /^X\(\/\).*/{ s//\1/; q; }
15827 s/.*/./; q'`
15828 done
15829 test ! -n "$as_dirs" || mkdir $as_dirs
15830 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15831echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15832 { (exit 1); exit 1; }; }; }
15833
15834 ac_builddir=.
e5a52504 15835
42ecbf5e
DJ
15836if test "$ac_dir" != .; then
15837 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15838 # A "../" for each directory in $ac_dir_suffix.
15839 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15840else
15841 ac_dir_suffix= ac_top_builddir=
15842fi
15843
15844case $srcdir in
15845 .) # No --srcdir option. We are building in place.
15846 ac_srcdir=.
15847 if test -z "$ac_top_builddir"; then
15848 ac_top_srcdir=.
15849 else
15850 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15851 fi ;;
15852 [\\/]* | ?:[\\/]* ) # Absolute path.
15853 ac_srcdir=$srcdir$ac_dir_suffix;
15854 ac_top_srcdir=$srcdir ;;
e5a52504 15855 *) # Relative path.
42ecbf5e
DJ
15856 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15857 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15858esac
252b5132 15859
42ecbf5e
DJ
15860# Do not use `cd foo && pwd` to compute absolute paths, because
15861# the directories may not exist.
15862case `pwd` in
15863.) ac_abs_builddir="$ac_dir";;
15864*)
15865 case "$ac_dir" in
15866 .) ac_abs_builddir=`pwd`;;
15867 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15868 *) ac_abs_builddir=`pwd`/"$ac_dir";;
15869 esac;;
15870esac
15871case $ac_abs_builddir in
15872.) ac_abs_top_builddir=${ac_top_builddir}.;;
15873*)
15874 case ${ac_top_builddir}. in
15875 .) ac_abs_top_builddir=$ac_abs_builddir;;
15876 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15877 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15878 esac;;
15879esac
15880case $ac_abs_builddir in
15881.) ac_abs_srcdir=$ac_srcdir;;
15882*)
15883 case $ac_srcdir in
15884 .) ac_abs_srcdir=$ac_abs_builddir;;
15885 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15886 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15887 esac;;
15888esac
15889case $ac_abs_builddir in
15890.) ac_abs_top_srcdir=$ac_top_srcdir;;
15891*)
15892 case $ac_top_srcdir in
15893 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15894 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15895 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15896 esac;;
15897esac
e5a52504 15898
42ecbf5e
DJ
15899
15900 case $INSTALL in
15901 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15902 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
d15b04bd 15903 esac
e5a52504 15904
b7d4af3a
JW
15905 if test x"$ac_file" != x-; then
15906 { echo "$as_me:$LINENO: creating $ac_file" >&5
15907echo "$as_me: creating $ac_file" >&6;}
15908 rm -f "$ac_file"
15909 fi
42ecbf5e
DJ
15910 # Let's still pretend it is `configure' which instantiates (i.e., don't
15911 # use $as_me), people would be surprised to read:
15912 # /* config.h. Generated by config.status. */
15913 if test x"$ac_file" = x-; then
15914 configure_input=
15915 else
15916 configure_input="$ac_file. "
15917 fi
15918 configure_input=$configure_input"Generated from `echo $ac_file_in |
15919 sed 's,.*/,,'` by configure."
15920
15921 # First look for the input files in the build tree, otherwise in the
15922 # src tree.
15923 ac_file_inputs=`IFS=:
15924 for f in $ac_file_in; do
15925 case $f in
15926 -) echo $tmp/stdin ;;
15927 [\\/$]*)
15928 # Absolute (can't be DOS-style, as IFS=:)
15929 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15930echo "$as_me: error: cannot find input file: $f" >&2;}
15931 { (exit 1); exit 1; }; }
15932 echo "$f";;
15933 *) # Relative
15934 if test -f "$f"; then
15935 # Build tree
15936 echo "$f"
15937 elif test -f "$srcdir/$f"; then
15938 # Source tree
15939 echo "$srcdir/$f"
15940 else
15941 # /dev/null tree
15942 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15943echo "$as_me: error: cannot find input file: $f" >&2;}
15944 { (exit 1); exit 1; }; }
15945 fi;;
15946 esac
15947 done` || { (exit 1); exit 1; }
42ecbf5e
DJ
15948_ACEOF
15949cat >>$CONFIG_STATUS <<_ACEOF
15950 sed "$ac_vpsub
15951$extrasub
15952_ACEOF
15953cat >>$CONFIG_STATUS <<\_ACEOF
15954:t
15955/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15956s,@configure_input@,$configure_input,;t t
15957s,@srcdir@,$ac_srcdir,;t t
15958s,@abs_srcdir@,$ac_abs_srcdir,;t t
15959s,@top_srcdir@,$ac_top_srcdir,;t t
15960s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
15961s,@builddir@,$ac_builddir,;t t
15962s,@abs_builddir@,$ac_abs_builddir,;t t
15963s,@top_builddir@,$ac_top_builddir,;t t
15964s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
15965s,@INSTALL@,$ac_INSTALL,;t t
15966" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
15967 rm -f $tmp/stdin
15968 if test x"$ac_file" != x-; then
15969 mv $tmp/out $ac_file
15970 else
15971 cat $tmp/out
15972 rm -f $tmp/out
15973 fi
15974
15975done
15976_ACEOF
15977cat >>$CONFIG_STATUS <<\_ACEOF
15978
15979#
15980# CONFIG_HEADER section.
15981#
252b5132
RH
15982
15983# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15984# NAME is the cpp macro being defined and VALUE is the value it is being given.
15985#
15986# ac_d sets the value in "#define NAME VALUE" lines.
42ecbf5e
DJ
15987ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
15988ac_dB='[ ].*$,\1#\2'
15989ac_dC=' '
15990ac_dD=',;t'
15991# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15992ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15993ac_uB='$,\1#\2define\3'
252b5132 15994ac_uC=' '
42ecbf5e
DJ
15995ac_uD=',;t'
15996
15997for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
252b5132 15998 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42ecbf5e
DJ
15999 case $ac_file in
16000 - | *:- | *:-:* ) # input from stdin
16001 cat >$tmp/stdin
16002 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16003 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16004 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16005 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16006 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
16007 esac
16008
42ecbf5e
DJ
16009 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16010echo "$as_me: creating $ac_file" >&6;}
16011
16012 # First look for the input files in the build tree, otherwise in the
16013 # src tree.
16014 ac_file_inputs=`IFS=:
16015 for f in $ac_file_in; do
16016 case $f in
16017 -) echo $tmp/stdin ;;
16018 [\\/$]*)
16019 # Absolute (can't be DOS-style, as IFS=:)
16020 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16021echo "$as_me: error: cannot find input file: $f" >&2;}
16022 { (exit 1); exit 1; }; }
16023 # Do quote $f, to prevent DOS paths from being IFS'd.
16024 echo "$f";;
16025 *) # Relative
16026 if test -f "$f"; then
16027 # Build tree
16028 echo "$f"
16029 elif test -f "$srcdir/$f"; then
16030 # Source tree
16031 echo "$srcdir/$f"
16032 else
16033 # /dev/null tree
16034 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16035echo "$as_me: error: cannot find input file: $f" >&2;}
16036 { (exit 1); exit 1; }; }
16037 fi;;
16038 esac
16039 done` || { (exit 1); exit 1; }
16040 # Remove the trailing spaces.
16041 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
16042
16043_ACEOF
16044
16045# Transform confdefs.h into two sed scripts, `conftest.defines' and
16046# `conftest.undefs', that substitutes the proper values into
16047# config.h.in to produce config.h. The first handles `#define'
16048# templates, and the second `#undef' templates.
16049# And first: Protect against being on the right side of a sed subst in
16050# config.status. Protect against being in an unquoted here document
16051# in config.status.
16052rm -f conftest.defines conftest.undefs
16053# Using a here document instead of a string reduces the quoting nightmare.
16054# Putting comments in sed scripts is not portable.
16055#
16056# `end' is used to avoid that the second main sed command (meant for
16057# 0-ary CPP macros) applies to n-ary macro definitions.
16058# See the Autoconf documentation for `clear'.
16059cat >confdef2sed.sed <<\_ACEOF
16060s/[\\&,]/\\&/g
16061s,[\\$`],\\&,g
16062t clear
16063: clear
16064s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16065t end
16066s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16067: end
16068_ACEOF
16069# If some macros were called several times there might be several times
16070# the same #defines, which is useless. Nevertheless, we may not want to
16071# sort them, since we want the *last* AC-DEFINE to be honored.
16072uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16073sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16074rm -f confdef2sed.sed
252b5132
RH
16075
16076# This sed command replaces #undef with comments. This is necessary, for
16077# example, in the case of _POSIX_SOURCE, which is predefined and required
16078# on some systems where configure will not decide to define it.
42ecbf5e
DJ
16079cat >>conftest.undefs <<\_ACEOF
16080s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16081_ACEOF
16082
16083# Break up conftest.defines because some shells have a limit on the size
16084# of here documents, and old seds have small limits too (100 cmds).
16085echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16086echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16087echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16088echo ' :' >>$CONFIG_STATUS
16089rm -f conftest.tail
16090while grep . conftest.defines >/dev/null
16091do
16092 # Write a limited-size here document to $tmp/defines.sed.
16093 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16094 # Speed up: don't consider the non `#define' lines.
16095 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
16096 # Work around the forget-to-reset-the-flag bug.
16097 echo 't clr' >>$CONFIG_STATUS
16098 echo ': clr' >>$CONFIG_STATUS
16099 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16100 echo 'CEOF
16101 sed -f $tmp/defines.sed $tmp/in >$tmp/out
16102 rm -f $tmp/in
16103 mv $tmp/out $tmp/in
16104' >>$CONFIG_STATUS
16105 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16106 rm -f conftest.defines
16107 mv conftest.tail conftest.defines
16108done
16109rm -f conftest.defines
16110echo ' fi # grep' >>$CONFIG_STATUS
16111echo >>$CONFIG_STATUS
252b5132 16112
42ecbf5e
DJ
16113# Break up conftest.undefs because some shells have a limit on the size
16114# of here documents, and old seds have small limits too (100 cmds).
16115echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
252b5132 16116rm -f conftest.tail
42ecbf5e 16117while grep . conftest.undefs >/dev/null
252b5132 16118do
42ecbf5e
DJ
16119 # Write a limited-size here document to $tmp/undefs.sed.
16120 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16121 # Speed up: don't consider the non `#undef'
16122 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
16123 # Work around the forget-to-reset-the-flag bug.
16124 echo 't clr' >>$CONFIG_STATUS
16125 echo ': clr' >>$CONFIG_STATUS
16126 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
252b5132 16127 echo 'CEOF
42ecbf5e
DJ
16128 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16129 rm -f $tmp/in
16130 mv $tmp/out $tmp/in
16131' >>$CONFIG_STATUS
16132 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16133 rm -f conftest.undefs
16134 mv conftest.tail conftest.undefs
252b5132 16135done
42ecbf5e
DJ
16136rm -f conftest.undefs
16137
16138cat >>$CONFIG_STATUS <<\_ACEOF
16139 # Let's still pretend it is `configure' which instantiates (i.e., don't
16140 # use $as_me), people would be surprised to read:
16141 # /* config.h. Generated by config.status. */
16142 if test x"$ac_file" = x-; then
16143 echo "/* Generated by configure. */" >$tmp/config.h
16144 else
16145 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
16146 fi
16147 cat $tmp/in >>$tmp/config.h
16148 rm -f $tmp/in
16149 if test x"$ac_file" != x-; then
16150 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
16151 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16152echo "$as_me: $ac_file is unchanged" >&6;}
16153 else
16154 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16155$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16156 X"$ac_file" : 'X\(//\)[^/]' \| \
16157 X"$ac_file" : 'X\(//\)$' \| \
16158 X"$ac_file" : 'X\(/\)' \| \
16159 . : '\(.\)' 2>/dev/null ||
16160echo X"$ac_file" |
16161 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16162 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16163 /^X\(\/\/\)$/{ s//\1/; q; }
16164 /^X\(\/\).*/{ s//\1/; q; }
16165 s/.*/./; q'`
16166 { if $as_mkdir_p; then
16167 mkdir -p "$ac_dir"
252b5132 16168 else
42ecbf5e
DJ
16169 as_dir="$ac_dir"
16170 as_dirs=
16171 while test ! -d "$as_dir"; do
16172 as_dirs="$as_dir $as_dirs"
16173 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16174$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16175 X"$as_dir" : 'X\(//\)[^/]' \| \
16176 X"$as_dir" : 'X\(//\)$' \| \
16177 X"$as_dir" : 'X\(/\)' \| \
16178 . : '\(.\)' 2>/dev/null ||
16179echo X"$as_dir" |
16180 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16181 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16182 /^X\(\/\/\)$/{ s//\1/; q; }
16183 /^X\(\/\).*/{ s//\1/; q; }
16184 s/.*/./; q'`
16185 done
16186 test ! -n "$as_dirs" || mkdir $as_dirs
16187 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16188echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16189 { (exit 1); exit 1; }; }; }
16190
16191 rm -f $ac_file
16192 mv $tmp/config.h $ac_file
252b5132 16193 fi
42ecbf5e
DJ
16194 else
16195 cat $tmp/config.h
16196 rm -f $tmp/config.h
252b5132 16197 fi
42ecbf5e
DJ
16198# Compute $ac_file's index in $config_headers.
16199_am_stamp_count=1
16200for _am_header in $config_headers :; do
16201 case $_am_header in
16202 $ac_file | $ac_file:* )
16203 break ;;
16204 * )
16205 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16206 esac
16207done
16208echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
16209$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16210 X$ac_file : 'X\(//\)[^/]' \| \
16211 X$ac_file : 'X\(//\)$' \| \
16212 X$ac_file : 'X\(/\)' \| \
16213 . : '\(.\)' 2>/dev/null ||
16214echo X$ac_file |
16215 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16216 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16217 /^X\(\/\/\)$/{ s//\1/; q; }
16218 /^X\(\/\).*/{ s//\1/; q; }
16219 s/.*/./; q'`/stamp-h$_am_stamp_count
16220done
16221_ACEOF
16222cat >>$CONFIG_STATUS <<\_ACEOF
252b5132 16223
42ecbf5e
DJ
16224#
16225# CONFIG_COMMANDS section.
16226#
16227for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
16228 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
16229 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
16230 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
16231$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16232 X"$ac_dest" : 'X\(//\)[^/]' \| \
16233 X"$ac_dest" : 'X\(//\)$' \| \
16234 X"$ac_dest" : 'X\(/\)' \| \
16235 . : '\(.\)' 2>/dev/null ||
16236echo X"$ac_dest" |
16237 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16238 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16239 /^X\(\/\/\)$/{ s//\1/; q; }
16240 /^X\(\/\).*/{ s//\1/; q; }
16241 s/.*/./; q'`
16242 { if $as_mkdir_p; then
16243 mkdir -p "$ac_dir"
16244 else
16245 as_dir="$ac_dir"
16246 as_dirs=
16247 while test ! -d "$as_dir"; do
16248 as_dirs="$as_dir $as_dirs"
16249 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16250$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16251 X"$as_dir" : 'X\(//\)[^/]' \| \
16252 X"$as_dir" : 'X\(//\)$' \| \
16253 X"$as_dir" : 'X\(/\)' \| \
16254 . : '\(.\)' 2>/dev/null ||
16255echo X"$as_dir" |
16256 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16257 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16258 /^X\(\/\/\)$/{ s//\1/; q; }
16259 /^X\(\/\).*/{ s//\1/; q; }
16260 s/.*/./; q'`
16261 done
16262 test ! -n "$as_dirs" || mkdir $as_dirs
16263 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16264echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16265 { (exit 1); exit 1; }; }; }
252b5132 16266
42ecbf5e 16267 ac_builddir=.
e5a52504 16268
42ecbf5e
DJ
16269if test "$ac_dir" != .; then
16270 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16271 # A "../" for each directory in $ac_dir_suffix.
16272 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16273else
16274 ac_dir_suffix= ac_top_builddir=
16275fi
16276
16277case $srcdir in
16278 .) # No --srcdir option. We are building in place.
16279 ac_srcdir=.
16280 if test -z "$ac_top_builddir"; then
16281 ac_top_srcdir=.
16282 else
16283 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16284 fi ;;
16285 [\\/]* | ?:[\\/]* ) # Absolute path.
16286 ac_srcdir=$srcdir$ac_dir_suffix;
16287 ac_top_srcdir=$srcdir ;;
16288 *) # Relative path.
16289 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16290 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16291esac
16292
16293# Do not use `cd foo && pwd` to compute absolute paths, because
16294# the directories may not exist.
16295case `pwd` in
16296.) ac_abs_builddir="$ac_dir";;
16297*)
16298 case "$ac_dir" in
16299 .) ac_abs_builddir=`pwd`;;
16300 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16301 *) ac_abs_builddir=`pwd`/"$ac_dir";;
16302 esac;;
16303esac
16304case $ac_abs_builddir in
16305.) ac_abs_top_builddir=${ac_top_builddir}.;;
16306*)
16307 case ${ac_top_builddir}. in
16308 .) ac_abs_top_builddir=$ac_abs_builddir;;
16309 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16310 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16311 esac;;
16312esac
16313case $ac_abs_builddir in
16314.) ac_abs_srcdir=$ac_srcdir;;
16315*)
16316 case $ac_srcdir in
16317 .) ac_abs_srcdir=$ac_abs_builddir;;
16318 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16319 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16320 esac;;
16321esac
16322case $ac_abs_builddir in
16323.) ac_abs_top_srcdir=$ac_top_srcdir;;
16324*)
16325 case $ac_top_srcdir in
16326 .) ac_abs_top_srcdir=$ac_abs_builddir;;
16327 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16328 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16329 esac;;
16330esac
e5a52504 16331
42ecbf5e
DJ
16332
16333 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
16334echo "$as_me: executing $ac_dest commands" >&6;}
16335 case $ac_dest in
16336 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
16337 # Strip MF so we end up with the name of the file.
16338 mf=`echo "$mf" | sed -e 's/:.*$//'`
16339 # Check whether this is an Automake generated Makefile or not.
16340 # We used to match only the files named `Makefile.in', but
16341 # some people rename them; so instead we look at the file content.
16342 # Grep'ing the first line is not enough: some people post-process
16343 # each Makefile.in and add a new line on top of each file to say so.
16344 # So let's grep whole file.
16345 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
16346 dirpart=`(dirname "$mf") 2>/dev/null ||
16347$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16348 X"$mf" : 'X\(//\)[^/]' \| \
16349 X"$mf" : 'X\(//\)$' \| \
16350 X"$mf" : 'X\(/\)' \| \
16351 . : '\(.\)' 2>/dev/null ||
16352echo X"$mf" |
16353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16354 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16355 /^X\(\/\/\)$/{ s//\1/; q; }
16356 /^X\(\/\).*/{ s//\1/; q; }
16357 s/.*/./; q'`
16358 else
16359 continue
16360 fi
16361 # Extract the definition of DEPDIR, am__include, and am__quote
16362 # from the Makefile without running `make'.
16363 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16364 test -z "$DEPDIR" && continue
16365 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16366 test -z "am__include" && continue
16367 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16368 # When using ansi2knr, U may be empty or an underscore; expand it
16369 U=`sed -n 's/^U = //p' < "$mf"`
16370 # Find all dependency output files, they are included files with
16371 # $(DEPDIR) in their names. We invoke sed twice because it is the
16372 # simplest approach to changing $(DEPDIR) to its actual value in the
16373 # expansion.
16374 for file in `sed -n "
16375 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16376 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16377 # Make sure the directory exists.
16378 test -f "$dirpart/$file" && continue
16379 fdir=`(dirname "$file") 2>/dev/null ||
16380$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16381 X"$file" : 'X\(//\)[^/]' \| \
16382 X"$file" : 'X\(//\)$' \| \
16383 X"$file" : 'X\(/\)' \| \
16384 . : '\(.\)' 2>/dev/null ||
16385echo X"$file" |
16386 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16387 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16388 /^X\(\/\/\)$/{ s//\1/; q; }
16389 /^X\(\/\).*/{ s//\1/; q; }
16390 s/.*/./; q'`
16391 { if $as_mkdir_p; then
16392 mkdir -p $dirpart/$fdir
16393 else
16394 as_dir=$dirpart/$fdir
16395 as_dirs=
16396 while test ! -d "$as_dir"; do
16397 as_dirs="$as_dir $as_dirs"
16398 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16399$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16400 X"$as_dir" : 'X\(//\)[^/]' \| \
16401 X"$as_dir" : 'X\(//\)$' \| \
16402 X"$as_dir" : 'X\(/\)' \| \
16403 . : '\(.\)' 2>/dev/null ||
16404echo X"$as_dir" |
16405 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16406 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16407 /^X\(\/\/\)$/{ s//\1/; q; }
16408 /^X\(\/\).*/{ s//\1/; q; }
16409 s/.*/./; q'`
16410 done
16411 test ! -n "$as_dirs" || mkdir $as_dirs
16412 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
16413echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
16414 { (exit 1); exit 1; }; }; }
16415
16416 # echo "creating $dirpart/$file"
16417 echo '# dummy' > "$dirpart/$file"
16418 done
16419done
d7040cdb
SE
16420 ;;
16421 libtool )
16422
16423 # See if we are running on zsh, and set the options which allow our
16424 # commands through without removal of \ escapes.
16425 if test -n "${ZSH_VERSION+set}" ; then
16426 setopt NO_GLOB_SUBST
16427 fi
16428
16429 cfgfile="${ofile}T"
16430 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16431 $RM "$cfgfile"
16432
16433 cat <<_LT_EOF >> "$cfgfile"
16434#! $SHELL
16435
16436# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16437# Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
16438# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16439# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16440#
16441# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16442# 2006, 2007 Free Software Foundation, Inc.
16443#
16444# This file is part of GNU Libtool:
16445# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
16446#
16447# This program is free software; you can redistribute it and/or modify
16448# it under the terms of the GNU General Public License as published by
16449# the Free Software Foundation; either version 2 of the License, or
16450# (at your option) any later version.
16451#
16452# This program is distributed in the hope that it will be useful, but
16453# WITHOUT ANY WARRANTY; without even the implied warranty of
16454# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16455# General Public License for more details.
16456#
16457# You should have received a copy of the GNU General Public License
16458# along with this program; if not, a copy can be downloaded from
16459# http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
16460# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
16461# MA 02110-1301, USA.
16462#
16463# As a special exception to the GNU General Public License, if you
16464# distribute this file as part of a program that contains a
16465# configuration script generated by Autoconf, you may include it under
16466# the same distribution terms that you use for the rest of that program.
16467
16468
16469# The names of the tagged configurations supported by this script.
16470available_tags=""
16471
16472# ### BEGIN LIBTOOL CONFIG
16473
16474# Which release of libtool.m4 was used?
16475macro_version=$macro_version
16476macro_revision=$macro_revision
16477
16478# Whether or not to build shared libraries.
16479build_libtool_libs=$enable_shared
16480
16481# Whether or not to build static libraries.
16482build_old_libs=$enable_static
16483
16484# What type of objects to build.
16485pic_mode=$pic_mode
16486
16487# Whether or not to optimize for fast installation.
16488fast_install=$enable_fast_install
16489
16490# The host system.
16491host_alias=$host_alias
16492host=$host
16493host_os=$host_os
16494
16495# The build system.
16496build_alias=$build_alias
16497build=$build
16498build_os=$build_os
16499
16500# A sed program that does not truncate output.
16501SED=$lt_SED
16502
16503# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16504Xsed="\$SED -e 1s/^X//"
16505
16506# A grep program that handles long lines.
16507GREP=$lt_GREP
16508
16509# An ERE matcher.
16510EGREP=$lt_EGREP
16511
16512# A literal string matcher.
16513FGREP=$lt_FGREP
16514
16515# A BSD- or MS-compatible name lister.
16516NM=$lt_NM
16517
16518# Whether we need soft or hard links.
16519LN_S=$lt_LN_S
16520
16521# What is the maximum length of a command?
16522max_cmd_len=$max_cmd_len
16523
16524# Object file suffix (normally "o").
16525objext=$ac_objext
16526
16527# Executable file suffix (normally "").
16528exeext=$exeext
16529
16530# whether the shell understands "unset".
16531lt_unset=$lt_unset
16532
16533# turn spaces into newlines.
16534SP2NL=$lt_lt_SP2NL
16535
16536# turn newlines into spaces.
16537NL2SP=$lt_lt_NL2SP
16538
16539# How to create reloadable object files.
16540reload_flag=$lt_reload_flag
16541reload_cmds=$lt_reload_cmds
16542
16543# Method to check whether dependent libraries are shared objects.
16544deplibs_check_method=$lt_deplibs_check_method
16545
16546# Command to use when deplibs_check_method == "file_magic".
16547file_magic_cmd=$lt_file_magic_cmd
16548
16549# The archiver.
16550AR=$lt_AR
16551AR_FLAGS=$lt_AR_FLAGS
16552
16553# A symbol stripping program.
16554STRIP=$lt_STRIP
16555
16556# Commands used to install an old-style archive.
16557RANLIB=$lt_RANLIB
16558old_postinstall_cmds=$lt_old_postinstall_cmds
16559old_postuninstall_cmds=$lt_old_postuninstall_cmds
16560
16561# A C compiler.
16562LTCC=$lt_CC
16563
16564# LTCC compiler flags.
16565LTCFLAGS=$lt_CFLAGS
16566
16567# Take the output of nm and produce a listing of raw symbols and C names.
16568global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16569
16570# Transform the output of nm in a proper C declaration.
16571global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16572
16573# Transform the output of nm in a C name address pair.
16574global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16575
16576# The name of the directory that contains temporary libtool files.
16577objdir=$objdir
16578
16579# Shell to use when invoking shell scripts.
16580SHELL=$lt_SHELL
16581
16582# An echo program that does not interpret backslashes.
16583ECHO=$lt_ECHO
16584
16585# Used to examine libraries when file_magic_cmd begins with "file".
16586MAGIC_CMD=$MAGIC_CMD
16587
16588# Must we lock files when doing compilation?
16589need_locks=$lt_need_locks
16590
16591# Old archive suffix (normally "a").
16592libext=$libext
16593
16594# Shared library suffix (normally ".so").
16595shrext_cmds=$lt_shrext_cmds
16596
16597# The commands to extract the exported symbol list from a shared archive.
16598extract_expsyms_cmds=$lt_extract_expsyms_cmds
16599
16600# Variables whose values should be saved in libtool wrapper scripts and
16601# restored at link time.
16602variables_saved_for_relink=$lt_variables_saved_for_relink
16603
16604# Do we need the "lib" prefix for modules?
16605need_lib_prefix=$need_lib_prefix
16606
16607# Do we need a version for libraries?
16608need_version=$need_version
16609
16610# Library versioning type.
16611version_type=$version_type
16612
16613# Shared library runtime path variable.
16614runpath_var=$runpath_var
16615
16616# Shared library path variable.
16617shlibpath_var=$shlibpath_var
16618
16619# Is shlibpath searched before the hard-coded library search path?
16620shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16621
16622# Format of library name prefix.
16623libname_spec=$lt_libname_spec
16624
16625# List of archive names. First name is the real one, the rest are links.
16626# The last name is the one that the linker finds with -lNAME
16627library_names_spec=$lt_library_names_spec
16628
16629# The coded name of the library, if different from the real name.
16630soname_spec=$lt_soname_spec
16631
16632# Command to use after installation of a shared archive.
16633postinstall_cmds=$lt_postinstall_cmds
16634
16635# Command to use after uninstallation of a shared archive.
16636postuninstall_cmds=$lt_postuninstall_cmds
16637
16638# Commands used to finish a libtool library installation in a directory.
16639finish_cmds=$lt_finish_cmds
16640
16641# As "finish_cmds", except a single script fragment to be evaled but
16642# not shown.
16643finish_eval=$lt_finish_eval
16644
16645# Whether we should hardcode library paths into libraries.
16646hardcode_into_libs=$hardcode_into_libs
16647
16648# Compile-time system search path for libraries.
16649sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16650
16651# Run-time system search path for libraries.
16652sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16653
16654# Whether dlopen is supported.
16655dlopen_support=$enable_dlopen
16656
16657# Whether dlopen of programs is supported.
16658dlopen_self=$enable_dlopen_self
16659
16660# Whether dlopen of statically linked programs is supported.
16661dlopen_self_static=$enable_dlopen_self_static
16662
16663# Commands to strip libraries.
16664old_striplib=$lt_old_striplib
16665striplib=$lt_striplib
16666
16667
16668# The linker used to build libraries.
16669LD=$lt_LD
16670
16671# Commands used to build an old-style archive.
16672old_archive_cmds=$lt_old_archive_cmds
16673
16674# A language specific compiler.
16675CC=$lt_compiler
16676
16677# Is the compiler the GNU compiler?
16678with_gcc=$GCC
16679
16680# Compiler flag to turn off builtin functions.
16681no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16682
16683# How to pass a linker flag through the compiler.
16684wl=$lt_lt_prog_compiler_wl
16685
16686# Additional compiler flags for building library objects.
16687pic_flag=$lt_lt_prog_compiler_pic
16688
16689# Compiler flag to prevent dynamic linking.
16690link_static_flag=$lt_lt_prog_compiler_static
16691
16692# Does compiler simultaneously support -c and -o options?
16693compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16694
16695# Whether or not to add -lc for building shared libraries.
16696build_libtool_need_lc=$archive_cmds_need_lc
16697
16698# Whether or not to disallow shared libs when runtime libs are static.
16699allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16700
16701# Compiler flag to allow reflexive dlopens.
16702export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16703
16704# Compiler flag to generate shared objects directly from archives.
16705whole_archive_flag_spec=$lt_whole_archive_flag_spec
16706
16707# Whether the compiler copes with passing no objects directly.
16708compiler_needs_object=$lt_compiler_needs_object
16709
16710# Create an old-style archive from a shared archive.
16711old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16712
16713# Create a temporary old-style archive to link instead of a shared archive.
16714old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16715
16716# Commands used to build a shared archive.
16717archive_cmds=$lt_archive_cmds
16718archive_expsym_cmds=$lt_archive_expsym_cmds
16719
16720# Commands used to build a loadable module if different from building
16721# a shared archive.
16722module_cmds=$lt_module_cmds
16723module_expsym_cmds=$lt_module_expsym_cmds
16724
16725# Whether we are building with GNU ld or not.
16726with_gnu_ld=$lt_with_gnu_ld
16727
16728# Flag that allows shared libraries with undefined symbols to be built.
16729allow_undefined_flag=$lt_allow_undefined_flag
16730
16731# Flag that enforces no undefined symbols.
16732no_undefined_flag=$lt_no_undefined_flag
16733
16734# Flag to hardcode \$libdir into a binary during linking.
16735# This must work even if \$libdir does not exist
16736hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16737
16738# If ld is used when linking, flag to hardcode \$libdir into a binary
16739# during linking. This must work even if \$libdir does not exist.
16740hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16741
16742# Whether we need a single "-rpath" flag with a separated argument.
16743hardcode_libdir_separator=$lt_hardcode_libdir_separator
16744
16745# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16746# DIR into the resulting binary.
16747hardcode_direct=$hardcode_direct
16748
16749# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16750# DIR into the resulting binary and the resulting library dependency is
16751# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16752# library is relocated.
16753hardcode_direct_absolute=$hardcode_direct_absolute
16754
16755# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16756# into the resulting binary.
16757hardcode_minus_L=$hardcode_minus_L
16758
16759# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16760# into the resulting binary.
16761hardcode_shlibpath_var=$hardcode_shlibpath_var
16762
16763# Set to "yes" if building a shared library automatically hardcodes DIR
16764# into the library and all subsequent libraries and executables linked
16765# against it.
16766hardcode_automatic=$hardcode_automatic
16767
16768# Set to yes if linker adds runtime paths of dependent libraries
16769# to runtime path list.
16770inherit_rpath=$inherit_rpath
16771
16772# Whether libtool must link a program against all its dependency libraries.
16773link_all_deplibs=$link_all_deplibs
16774
16775# Fix the shell variable \$srcfile for the compiler.
16776fix_srcfile_path=$lt_fix_srcfile_path
16777
16778# Set to "yes" if exported symbols are required.
16779always_export_symbols=$always_export_symbols
16780
16781# The commands to list exported symbols.
16782export_symbols_cmds=$lt_export_symbols_cmds
16783
16784# Symbols that should not be listed in the preloaded symbols.
16785exclude_expsyms=$lt_exclude_expsyms
16786
16787# Symbols that must always be exported.
16788include_expsyms=$lt_include_expsyms
16789
16790# Commands necessary for linking programs (against libraries) with templates.
16791prelink_cmds=$lt_prelink_cmds
16792
16793# Specify filename containing input files.
16794file_list_spec=$lt_file_list_spec
16795
16796# How to hardcode a shared library path into an executable.
16797hardcode_action=$hardcode_action
16798
16799# ### END LIBTOOL CONFIG
16800
16801_LT_EOF
16802
16803 case $host_os in
16804 aix3*)
16805 cat <<\_LT_EOF >> "$cfgfile"
16806# AIX sometimes has problems with the GCC collect2 program. For some
16807# reason, if we set the COLLECT_NAMES environment variable, the problems
16808# vanish in a puff of smoke.
16809if test "X${COLLECT_NAMES+set}" != Xset; then
16810 COLLECT_NAMES=
16811 export COLLECT_NAMES
16812fi
16813_LT_EOF
16814 ;;
16815 esac
16816
16817
16818ltmain="$ac_aux_dir/ltmain.sh"
16819
16820
16821 # We use sed instead of cat because bash on DJGPP gets confused if
16822 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16823 # text mode, it properly converts lines to CR/LF. This bash problem
16824 # is reportedly fixed, but why not run on old versions too?
16825 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16826 || (rm -f "$cfgfile"; exit 1)
16827
16828 case $xsi_shell in
16829 yes)
16830 cat << \_LT_EOF >> "$cfgfile"
16831# func_dirname file append nondir_replacement
16832# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16833# otherwise set result to NONDIR_REPLACEMENT.
16834func_dirname ()
16835{
16836 case ${1} in
16837 */*) func_dirname_result="${1%/*}${2}" ;;
16838 * ) func_dirname_result="${3}" ;;
16839 esac
16840}
16841
16842# func_basename file
16843func_basename ()
16844{
16845 func_basename_result="${1##*/}"
16846}
16847
16848# func_stripname prefix suffix name
16849# strip PREFIX and SUFFIX off of NAME.
16850# PREFIX and SUFFIX must not contain globbing or regex special
16851# characters, hashes, percent signs, but SUFFIX may contain a leading
16852# dot (in which case that matches only a dot).
16853func_stripname ()
16854{
16855 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16856 # positional parameters, so assign one to ordinary parameter first.
16857 func_stripname_result=${3}
16858 func_stripname_result=${func_stripname_result#"${1}"}
16859 func_stripname_result=${func_stripname_result%"${2}"}
16860}
16861
16862# func_opt_split
16863func_opt_split ()
16864{
16865 func_opt_split_opt=${1%%=*}
16866 func_opt_split_arg=${1#*=}
16867}
16868
16869# func_lo2o object
16870func_lo2o ()
16871{
16872 case ${1} in
16873 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16874 *) func_lo2o_result=${1} ;;
16875 esac
16876}
16877_LT_EOF
16878 ;;
16879 *) # Bourne compatible functions.
16880 cat << \_LT_EOF >> "$cfgfile"
16881# func_dirname file append nondir_replacement
16882# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16883# otherwise set result to NONDIR_REPLACEMENT.
16884func_dirname ()
16885{
16886 # Extract subdirectory from the argument.
16887 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
16888 if test "X$func_dirname_result" = "X${1}"; then
16889 func_dirname_result="${3}"
16890 else
16891 func_dirname_result="$func_dirname_result${2}"
16892 fi
16893}
16894
16895# func_basename file
16896func_basename ()
16897{
16898 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
16899}
16900
16901# func_stripname prefix suffix name
16902# strip PREFIX and SUFFIX off of NAME.
16903# PREFIX and SUFFIX must not contain globbing or regex special
16904# characters, hashes, percent signs, but SUFFIX may contain a leading
16905# dot (in which case that matches only a dot).
16906# func_strip_suffix prefix name
16907func_stripname ()
16908{
16909 case ${2} in
16910 .*) func_stripname_result=`$ECHO "X${3}" \
16911 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
16912 *) func_stripname_result=`$ECHO "X${3}" \
16913 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
16914 esac
16915}
16916
16917# sed scripts:
16918my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16919my_sed_long_arg='1s/^-[^=]*=//'
16920
16921# func_opt_split
16922func_opt_split ()
16923{
16924 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
16925 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
16926}
16927
16928# func_lo2o object
16929func_lo2o ()
16930{
16931 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
16932}
16933_LT_EOF
16934esac
16935
16936case $lt_shell_append in
16937 yes)
16938 cat << \_LT_EOF >> "$cfgfile"
16939
16940# func_append var value
16941# Append VALUE to the end of shell variable VAR.
16942func_append ()
16943{
16944 eval "$1+=\$2"
16945}
16946_LT_EOF
16947 ;;
16948 *)
16949 cat << \_LT_EOF >> "$cfgfile"
16950
16951# func_append var value
16952# Append VALUE to the end of shell variable VAR.
16953func_append ()
16954{
16955 eval "$1=\$$1\$2"
16956}
16957_LT_EOF
16958 ;;
16959 esac
16960
16961
16962 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16963 || (rm -f "$cfgfile"; exit 1)
16964
16965 mv -f "$cfgfile" "$ofile" ||
16966 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16967 chmod +x "$ofile"
16968
42ecbf5e 16969 ;;
20e95c23
DJ
16970 default-1 )
16971 for ac_file in $CONFIG_FILES; do
16972 # Support "outfile[:infile[:infile...]]"
16973 case "$ac_file" in
16974 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16975 esac
16976 # PO directories have a Makefile.in generated from Makefile.in.in.
16977 case "$ac_file" in */Makefile.in)
16978 # Adjust a relative srcdir.
16979 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16980 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16981 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16982 # In autoconf-2.13 it is called $ac_given_srcdir.
16983 # In autoconf-2.50 it is called $srcdir.
16984 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16985 case "$ac_given_srcdir" in
16986 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16987 /*) top_srcdir="$ac_given_srcdir" ;;
16988 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16989 esac
16990 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16991 rm -f "$ac_dir/POTFILES"
16992 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16993 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16994 POMAKEFILEDEPS="POTFILES.in"
16995 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
16996 # on $ac_dir but don't depend on user-specified configuration
16997 # parameters.
16998 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16999 # The LINGUAS file contains the set of available languages.
17000 if test -n "$OBSOLETE_ALL_LINGUAS"; then
17001 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
17002 fi
17003 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17004 # Hide the ALL_LINGUAS assigment from automake.
17005 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17006 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
17007 else
17008 # The set of available languages was given in configure.in.
17009 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
17010 fi
17011 case "$ac_given_srcdir" in
17012 .) srcdirpre= ;;
17013 *) srcdirpre='$(srcdir)/' ;;
17014 esac
17015 POFILES=
17016 GMOFILES=
17017 UPDATEPOFILES=
17018 DUMMYPOFILES=
17019 for lang in $ALL_LINGUAS; do
17020 POFILES="$POFILES $srcdirpre$lang.po"
17021 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17022 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17023 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17024 done
17025 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17026 # environment variable.
17027 INST_LINGUAS=
17028 if test -n "$ALL_LINGUAS"; then
17029 for presentlang in $ALL_LINGUAS; do
17030 useit=no
17031 if test "%UNSET%" != "$LINGUAS"; then
17032 desiredlanguages="$LINGUAS"
17033 else
17034 desiredlanguages="$ALL_LINGUAS"
17035 fi
17036 for desiredlang in $desiredlanguages; do
17037 # Use the presentlang catalog if desiredlang is
17038 # a. equal to presentlang, or
17039 # b. a variant of presentlang (because in this case,
17040 # presentlang can be used as a fallback for messages
17041 # which are not translated in the desiredlang catalog).
17042 case "$desiredlang" in
17043 "$presentlang"*) useit=yes;;
17044 esac
17045 done
17046 if test $useit = yes; then
17047 INST_LINGUAS="$INST_LINGUAS $presentlang"
17048 fi
17049 done
17050 fi
17051 CATALOGS=
17052 if test -n "$INST_LINGUAS"; then
17053 for lang in $INST_LINGUAS; do
17054 CATALOGS="$CATALOGS $lang.gmo"
17055 done
17056 fi
17057 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17058 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"
17059 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17060 if test -f "$f"; then
17061 case "$f" in
17062 *.orig | *.bak | *~) ;;
17063 *) cat "$f" >> "$ac_dir/Makefile" ;;
17064 esac
17065 fi
17066 done
17067 fi
17068 ;;
17069 esac
17070 done ;;
42ecbf5e
DJ
17071 esac
17072done
17073_ACEOF
e5a52504 17074
42ecbf5e
DJ
17075cat >>$CONFIG_STATUS <<\_ACEOF
17076
17077{ (exit 0); exit 0; }
17078_ACEOF
252b5132 17079chmod +x $CONFIG_STATUS
42ecbf5e
DJ
17080ac_clean_files=$ac_clean_files_save
17081
17082
17083# configure is writing to config.log, and then calls config.status.
17084# config.status does its own redirection, appending to config.log.
17085# Unfortunately, on DOS this fails, as config.log is still kept open
17086# by configure, so config.status won't be able to write to it; its
17087# output is simply discarded. So we exec the FD to /dev/null,
17088# effectively closing config.log, so it can be properly (re)opened and
17089# appended to by config.status. When coming back to configure, we
17090# need to make the FD available again.
17091if test "$no_create" != yes; then
17092 ac_cs_success=:
17093 ac_config_status_args=
17094 test "$silent" = yes &&
17095 ac_config_status_args="$ac_config_status_args --quiet"
17096 exec 5>/dev/null
17097 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17098 exec 5>>config.log
17099 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17100 # would make configure fail if this is the last instruction.
17101 $ac_cs_success || { (exit 1); exit 1; }
17102fi
252b5132 17103
This page took 1.279659 seconds and 4 git commands to generate.