]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - binutils/configure
bfd:
[thirdparty/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
31dd3154 461ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP LIBTOOL SED FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S OBJDUMP ac_ct_OBJDUMP AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT LIPO ac_ct_LIPO OTOOL ac_ct_OTOOL OTOOL64 ac_ct_OTOOL64 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 pdfdir LIBOBJS LTLIBOBJS'
42ecbf5e 462ac_subst_files=''
7a283e07 463ac_pwd=`pwd`
252b5132
RH
464
465# Initialize some variables set by options.
42ecbf5e
DJ
466ac_init_help=
467ac_init_version=false
252b5132
RH
468# The variables have the same names as the options, with
469# dashes changed to underlines.
42ecbf5e 470cache_file=/dev/null
252b5132 471exec_prefix=NONE
252b5132 472no_create=
252b5132
RH
473no_recursion=
474prefix=NONE
475program_prefix=NONE
476program_suffix=NONE
477program_transform_name=s,x,x,
478silent=
479site=
480srcdir=
252b5132
RH
481verbose=
482x_includes=NONE
483x_libraries=NONE
42ecbf5e
DJ
484
485# Installation directory options.
486# These are left unexpanded so users can "make install exec_prefix=/foo"
487# and all the variables that are supposed to be based on exec_prefix
488# by default will actually change.
489# Use braces instead of parens because sh, perl, etc. also accept them.
252b5132
RH
490bindir='${exec_prefix}/bin'
491sbindir='${exec_prefix}/sbin'
492libexecdir='${exec_prefix}/libexec'
493datadir='${prefix}/share'
494sysconfdir='${prefix}/etc'
495sharedstatedir='${prefix}/com'
496localstatedir='${prefix}/var'
497libdir='${exec_prefix}/lib'
498includedir='${prefix}/include'
499oldincludedir='/usr/include'
500infodir='${prefix}/info'
501mandir='${prefix}/man'
502
252b5132
RH
503ac_prev=
504for ac_option
505do
252b5132
RH
506 # If the previous option needs an argument, assign it.
507 if test -n "$ac_prev"; then
508 eval "$ac_prev=\$ac_option"
509 ac_prev=
510 continue
511 fi
512
42ecbf5e 513 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
252b5132
RH
514
515 # Accept the important Cygnus configure options, so we can diagnose typos.
516
42ecbf5e 517 case $ac_option in
252b5132
RH
518
519 -bindir | --bindir | --bindi | --bind | --bin | --bi)
520 ac_prev=bindir ;;
521 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
42ecbf5e 522 bindir=$ac_optarg ;;
252b5132
RH
523
524 -build | --build | --buil | --bui | --bu)
42ecbf5e 525 ac_prev=build_alias ;;
252b5132 526 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
42ecbf5e 527 build_alias=$ac_optarg ;;
252b5132
RH
528
529 -cache-file | --cache-file | --cache-fil | --cache-fi \
530 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
531 ac_prev=cache_file ;;
532 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
533 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
42ecbf5e
DJ
534 cache_file=$ac_optarg ;;
535
536 --config-cache | -C)
537 cache_file=config.cache ;;
252b5132
RH
538
539 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
540 ac_prev=datadir ;;
541 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
542 | --da=*)
42ecbf5e 543 datadir=$ac_optarg ;;
252b5132
RH
544
545 -disable-* | --disable-*)
42ecbf5e 546 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 547 # Reject names that are not valid shell variable names.
42ecbf5e
DJ
548 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
549 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
550 { (exit 1); exit 1; }; }
551 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
552 eval "enable_$ac_feature=no" ;;
252b5132
RH
553
554 -enable-* | --enable-*)
42ecbf5e 555 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 556 # Reject names that are not valid shell variable names.
42ecbf5e
DJ
557 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559 { (exit 1); exit 1; }; }
560 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561 case $ac_option in
562 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252b5132
RH
563 *) ac_optarg=yes ;;
564 esac
42ecbf5e 565 eval "enable_$ac_feature='$ac_optarg'" ;;
252b5132
RH
566
567 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
568 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
569 | --exec | --exe | --ex)
570 ac_prev=exec_prefix ;;
571 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
572 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
573 | --exec=* | --exe=* | --ex=*)
42ecbf5e 574 exec_prefix=$ac_optarg ;;
252b5132
RH
575
576 -gas | --gas | --ga | --g)
577 # Obsolete; use --with-gas.
578 with_gas=yes ;;
579
42ecbf5e
DJ
580 -help | --help | --hel | --he | -h)
581 ac_init_help=long ;;
582 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
583 ac_init_help=recursive ;;
584 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
585 ac_init_help=short ;;
252b5132
RH
586
587 -host | --host | --hos | --ho)
42ecbf5e 588 ac_prev=host_alias ;;
252b5132 589 -host=* | --host=* | --hos=* | --ho=*)
42ecbf5e 590 host_alias=$ac_optarg ;;
252b5132
RH
591
592 -includedir | --includedir | --includedi | --included | --include \
593 | --includ | --inclu | --incl | --inc)
594 ac_prev=includedir ;;
595 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
596 | --includ=* | --inclu=* | --incl=* | --inc=*)
42ecbf5e 597 includedir=$ac_optarg ;;
252b5132
RH
598
599 -infodir | --infodir | --infodi | --infod | --info | --inf)
600 ac_prev=infodir ;;
601 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
42ecbf5e 602 infodir=$ac_optarg ;;
252b5132
RH
603
604 -libdir | --libdir | --libdi | --libd)
605 ac_prev=libdir ;;
606 -libdir=* | --libdir=* | --libdi=* | --libd=*)
42ecbf5e 607 libdir=$ac_optarg ;;
252b5132
RH
608
609 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
610 | --libexe | --libex | --libe)
611 ac_prev=libexecdir ;;
612 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
613 | --libexe=* | --libex=* | --libe=*)
42ecbf5e 614 libexecdir=$ac_optarg ;;
252b5132
RH
615
616 -localstatedir | --localstatedir | --localstatedi | --localstated \
617 | --localstate | --localstat | --localsta | --localst \
618 | --locals | --local | --loca | --loc | --lo)
619 ac_prev=localstatedir ;;
620 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
621 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
622 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
42ecbf5e 623 localstatedir=$ac_optarg ;;
252b5132
RH
624
625 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
626 ac_prev=mandir ;;
627 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
42ecbf5e 628 mandir=$ac_optarg ;;
252b5132
RH
629
630 -nfp | --nfp | --nf)
631 # Obsolete; use --without-fp.
632 with_fp=no ;;
633
634 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
42ecbf5e 635 | --no-cr | --no-c | -n)
252b5132
RH
636 no_create=yes ;;
637
638 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
639 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
640 no_recursion=yes ;;
641
642 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
643 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
644 | --oldin | --oldi | --old | --ol | --o)
645 ac_prev=oldincludedir ;;
646 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
647 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
648 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
42ecbf5e 649 oldincludedir=$ac_optarg ;;
252b5132
RH
650
651 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
652 ac_prev=prefix ;;
653 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
42ecbf5e 654 prefix=$ac_optarg ;;
252b5132
RH
655
656 -program-prefix | --program-prefix | --program-prefi | --program-pref \
657 | --program-pre | --program-pr | --program-p)
658 ac_prev=program_prefix ;;
659 -program-prefix=* | --program-prefix=* | --program-prefi=* \
660 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
42ecbf5e 661 program_prefix=$ac_optarg ;;
252b5132
RH
662
663 -program-suffix | --program-suffix | --program-suffi | --program-suff \
664 | --program-suf | --program-su | --program-s)
665 ac_prev=program_suffix ;;
666 -program-suffix=* | --program-suffix=* | --program-suffi=* \
667 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
42ecbf5e 668 program_suffix=$ac_optarg ;;
252b5132
RH
669
670 -program-transform-name | --program-transform-name \
671 | --program-transform-nam | --program-transform-na \
672 | --program-transform-n | --program-transform- \
673 | --program-transform | --program-transfor \
674 | --program-transfo | --program-transf \
675 | --program-trans | --program-tran \
676 | --progr-tra | --program-tr | --program-t)
677 ac_prev=program_transform_name ;;
678 -program-transform-name=* | --program-transform-name=* \
679 | --program-transform-nam=* | --program-transform-na=* \
680 | --program-transform-n=* | --program-transform-=* \
681 | --program-transform=* | --program-transfor=* \
682 | --program-transfo=* | --program-transf=* \
683 | --program-trans=* | --program-tran=* \
684 | --progr-tra=* | --program-tr=* | --program-t=*)
42ecbf5e 685 program_transform_name=$ac_optarg ;;
252b5132
RH
686
687 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
688 | -silent | --silent | --silen | --sile | --sil)
689 silent=yes ;;
690
691 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
692 ac_prev=sbindir ;;
693 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
694 | --sbi=* | --sb=*)
42ecbf5e 695 sbindir=$ac_optarg ;;
252b5132
RH
696
697 -sharedstatedir | --sharedstatedir | --sharedstatedi \
698 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
699 | --sharedst | --shareds | --shared | --share | --shar \
700 | --sha | --sh)
701 ac_prev=sharedstatedir ;;
702 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
703 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
704 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
705 | --sha=* | --sh=*)
42ecbf5e 706 sharedstatedir=$ac_optarg ;;
252b5132
RH
707
708 -site | --site | --sit)
709 ac_prev=site ;;
710 -site=* | --site=* | --sit=*)
42ecbf5e 711 site=$ac_optarg ;;
252b5132
RH
712
713 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
714 ac_prev=srcdir ;;
715 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
42ecbf5e 716 srcdir=$ac_optarg ;;
252b5132
RH
717
718 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
719 | --syscon | --sysco | --sysc | --sys | --sy)
720 ac_prev=sysconfdir ;;
721 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
722 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
42ecbf5e 723 sysconfdir=$ac_optarg ;;
252b5132
RH
724
725 -target | --target | --targe | --targ | --tar | --ta | --t)
42ecbf5e 726 ac_prev=target_alias ;;
252b5132 727 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
42ecbf5e 728 target_alias=$ac_optarg ;;
252b5132
RH
729
730 -v | -verbose | --verbose | --verbos | --verbo | --verb)
731 verbose=yes ;;
732
42ecbf5e
DJ
733 -version | --version | --versio | --versi | --vers | -V)
734 ac_init_version=: ;;
252b5132
RH
735
736 -with-* | --with-*)
42ecbf5e 737 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 738 # Reject names that are not valid shell variable names.
42ecbf5e
DJ
739 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
740 { echo "$as_me: error: invalid package name: $ac_package" >&2
741 { (exit 1); exit 1; }; }
252b5132 742 ac_package=`echo $ac_package| sed 's/-/_/g'`
42ecbf5e
DJ
743 case $ac_option in
744 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252b5132
RH
745 *) ac_optarg=yes ;;
746 esac
42ecbf5e 747 eval "with_$ac_package='$ac_optarg'" ;;
252b5132
RH
748
749 -without-* | --without-*)
42ecbf5e 750 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 751 # Reject names that are not valid shell variable names.
42ecbf5e
DJ
752 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753 { echo "$as_me: error: invalid package name: $ac_package" >&2
754 { (exit 1); exit 1; }; }
755 ac_package=`echo $ac_package | sed 's/-/_/g'`
756 eval "with_$ac_package=no" ;;
252b5132
RH
757
758 --x)
759 # Obsolete; use --with-x.
760 with_x=yes ;;
761
762 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
763 | --x-incl | --x-inc | --x-in | --x-i)
764 ac_prev=x_includes ;;
765 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
766 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
42ecbf5e 767 x_includes=$ac_optarg ;;
252b5132
RH
768
769 -x-libraries | --x-libraries | --x-librarie | --x-librari \
770 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
771 ac_prev=x_libraries ;;
772 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
773 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
42ecbf5e 774 x_libraries=$ac_optarg ;;
252b5132 775
42ecbf5e
DJ
776 -*) { echo "$as_me: error: unrecognized option: $ac_option
777Try \`$0 --help' for more information." >&2
778 { (exit 1); exit 1; }; }
252b5132
RH
779 ;;
780
42ecbf5e
DJ
781 *=*)
782 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
783 # Reject names that are not valid shell variable names.
784 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
785 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
786 { (exit 1); exit 1; }; }
787 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
788 eval "$ac_envvar='$ac_optarg'"
789 export $ac_envvar ;;
790
252b5132 791 *)
42ecbf5e
DJ
792 # FIXME: should be removed in autoconf 3.0.
793 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
794 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
795 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
796 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
252b5132
RH
797 ;;
798
799 esac
800done
801
802if test -n "$ac_prev"; then
42ecbf5e
DJ
803 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
804 { echo "$as_me: error: missing argument to $ac_option" >&2
805 { (exit 1); exit 1; }; }
252b5132
RH
806fi
807
42ecbf5e
DJ
808# Be sure to have absolute paths.
809for ac_var in exec_prefix prefix
810do
811 eval ac_val=$`echo $ac_var`
812 case $ac_val in
813 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
814 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
815 { (exit 1); exit 1; }; };;
816 esac
817done
252b5132 818
42ecbf5e
DJ
819# Be sure to have absolute paths.
820for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
821 localstatedir libdir includedir oldincludedir infodir mandir
252b5132 822do
42ecbf5e
DJ
823 eval ac_val=$`echo $ac_var`
824 case $ac_val in
825 [\\/$]* | ?:[\\/]* ) ;;
826 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
827 { (exit 1); exit 1; }; };;
252b5132
RH
828 esac
829done
830
42ecbf5e
DJ
831# There might be people who depend on the old broken behavior: `$host'
832# used to hold the argument of --host etc.
833# FIXME: To remove some day.
834build=$build_alias
835host=$host_alias
836target=$target_alias
837
838# FIXME: To remove some day.
839if test "x$host_alias" != x; then
840 if test "x$build_alias" = x; then
841 cross_compiling=maybe
842 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
843 If a cross compiler is detected then cross compile mode will be used." >&2
844 elif test "x$build_alias" != "x$host_alias"; then
845 cross_compiling=yes
846 fi
847fi
e5a52504 848
42ecbf5e
DJ
849ac_tool_prefix=
850test -n "$host_alias" && ac_tool_prefix=$host_alias-
851
852test "$silent" = yes && exec 6>/dev/null
252b5132 853
252b5132
RH
854
855# Find the source files, if location was not specified.
856if test -z "$srcdir"; then
857 ac_srcdir_defaulted=yes
858 # Try the directory containing this script, then its parent.
42ecbf5e
DJ
859 ac_confdir=`(dirname "$0") 2>/dev/null ||
860$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
861 X"$0" : 'X\(//\)[^/]' \| \
862 X"$0" : 'X\(//\)$' \| \
863 X"$0" : 'X\(/\)' \| \
864 . : '\(.\)' 2>/dev/null ||
865echo X"$0" |
866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
867 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
868 /^X\(\/\/\)$/{ s//\1/; q; }
869 /^X\(\/\).*/{ s//\1/; q; }
870 s/.*/./; q'`
252b5132
RH
871 srcdir=$ac_confdir
872 if test ! -r $srcdir/$ac_unique_file; then
873 srcdir=..
874 fi
875else
876 ac_srcdir_defaulted=no
877fi
878if test ! -r $srcdir/$ac_unique_file; then
879 if test "$ac_srcdir_defaulted" = yes; then
42ecbf5e
DJ
880 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
881 { (exit 1); exit 1; }; }
252b5132 882 else
42ecbf5e
DJ
883 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
884 { (exit 1); exit 1; }; }
252b5132
RH
885 fi
886fi
42ecbf5e
DJ
887(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
888 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
889 { (exit 1); exit 1; }; }
890srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
891ac_env_build_alias_set=${build_alias+set}
892ac_env_build_alias_value=$build_alias
893ac_cv_env_build_alias_set=${build_alias+set}
894ac_cv_env_build_alias_value=$build_alias
895ac_env_host_alias_set=${host_alias+set}
896ac_env_host_alias_value=$host_alias
897ac_cv_env_host_alias_set=${host_alias+set}
898ac_cv_env_host_alias_value=$host_alias
899ac_env_target_alias_set=${target_alias+set}
900ac_env_target_alias_value=$target_alias
901ac_cv_env_target_alias_set=${target_alias+set}
902ac_cv_env_target_alias_value=$target_alias
903ac_env_CC_set=${CC+set}
904ac_env_CC_value=$CC
905ac_cv_env_CC_set=${CC+set}
906ac_cv_env_CC_value=$CC
907ac_env_CFLAGS_set=${CFLAGS+set}
908ac_env_CFLAGS_value=$CFLAGS
909ac_cv_env_CFLAGS_set=${CFLAGS+set}
910ac_cv_env_CFLAGS_value=$CFLAGS
911ac_env_LDFLAGS_set=${LDFLAGS+set}
912ac_env_LDFLAGS_value=$LDFLAGS
913ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
914ac_cv_env_LDFLAGS_value=$LDFLAGS
915ac_env_CPPFLAGS_set=${CPPFLAGS+set}
916ac_env_CPPFLAGS_value=$CPPFLAGS
917ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
918ac_cv_env_CPPFLAGS_value=$CPPFLAGS
919ac_env_CPP_set=${CPP+set}
920ac_env_CPP_value=$CPP
921ac_cv_env_CPP_set=${CPP+set}
922ac_cv_env_CPP_value=$CPP
252b5132 923
42ecbf5e
DJ
924#
925# Report the --help message.
926#
927if test "$ac_init_help" = "long"; then
928 # Omit some internal or obsolete options to make the list less imposing.
929 # This message is too long to be a string in the A/UX 3.1 sh.
930 cat <<_ACEOF
931\`configure' configures this package to adapt to many kinds of systems.
252b5132 932
42ecbf5e 933Usage: $0 [OPTION]... [VAR=VALUE]...
252b5132 934
42ecbf5e
DJ
935To assign environment variables (e.g., CC, CFLAGS...), specify them as
936VAR=VALUE. See below for descriptions of some of the useful variables.
252b5132 937
42ecbf5e 938Defaults for the options are specified in brackets.
ac48eca1 939
42ecbf5e
DJ
940Configuration:
941 -h, --help display this help and exit
942 --help=short display options specific to this package
943 --help=recursive display the short help of all the included packages
944 -V, --version display version information and exit
945 -q, --quiet, --silent do not print \`checking...' messages
946 --cache-file=FILE cache test results in FILE [disabled]
947 -C, --config-cache alias for \`--cache-file=config.cache'
948 -n, --no-create do not create output files
949 --srcdir=DIR find the sources in DIR [configure dir or \`..']
950
951_ACEOF
952
953 cat <<_ACEOF
954Installation directories:
955 --prefix=PREFIX install architecture-independent files in PREFIX
956 [$ac_default_prefix]
957 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
958 [PREFIX]
ac48eca1 959
42ecbf5e
DJ
960By default, \`make install' will install all the files in
961\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
962an installation prefix other than \`$ac_default_prefix' using \`--prefix',
963for instance \`--prefix=\$HOME'.
ac48eca1 964
42ecbf5e 965For better control, use the options below.
ac48eca1 966
42ecbf5e
DJ
967Fine tuning of the installation directories:
968 --bindir=DIR user executables [EPREFIX/bin]
969 --sbindir=DIR system admin executables [EPREFIX/sbin]
970 --libexecdir=DIR program executables [EPREFIX/libexec]
971 --datadir=DIR read-only architecture-independent data [PREFIX/share]
972 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
973 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
974 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
975 --libdir=DIR object code libraries [EPREFIX/lib]
976 --includedir=DIR C header files [PREFIX/include]
977 --oldincludedir=DIR C header files for non-gcc [/usr/include]
978 --infodir=DIR info documentation [PREFIX/info]
979 --mandir=DIR man documentation [PREFIX/man]
980_ACEOF
ac48eca1 981
42ecbf5e 982 cat <<\_ACEOF
252b5132 983
42ecbf5e
DJ
984Program names:
985 --program-prefix=PREFIX prepend PREFIX to installed program names
986 --program-suffix=SUFFIX append SUFFIX to installed program names
987 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
252b5132 988
42ecbf5e
DJ
989System types:
990 --build=BUILD configure for building on BUILD [guessed]
991 --host=HOST cross-compile to build programs to run on HOST [BUILD]
992 --target=TARGET configure for building compilers for TARGET [HOST]
993_ACEOF
252b5132 994fi
252b5132 995
42ecbf5e 996if test -n "$ac_init_help"; then
252b5132 997
42ecbf5e 998 cat <<\_ACEOF
252b5132 999
42ecbf5e
DJ
1000Optional Features:
1001 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1002 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1003 --disable-dependency-tracking speeds up one-time build
1004 --enable-dependency-tracking do not reject slow dependency extractors
d053aef8 1005 --disable-largefile omit support for large files
d7040cdb
SE
1006 --enable-shared[=PKGS]
1007 build shared libraries [default=yes]
1008 --enable-static[=PKGS]
1009 build static libraries [default=yes]
1010 --enable-fast-install[=PKGS]
1011 optimize for fast installation [default=yes]
42ecbf5e
DJ
1012 --disable-libtool-lock avoid locking (might break parallel builds)
1013 --enable-targets alternative target configurations
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
7357c5b6 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 1490
da594c4a 1491
42ecbf5e
DJ
1492
1493
1494ac_aux_dir=
1495for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1496 if test -f $ac_dir/install-sh; then
1497 ac_aux_dir=$ac_dir
1498 ac_install_sh="$ac_aux_dir/install-sh -c"
1499 break
1500 elif test -f $ac_dir/install.sh; then
1501 ac_aux_dir=$ac_dir
1502 ac_install_sh="$ac_aux_dir/install.sh -c"
1503 break
1504 elif test -f $ac_dir/shtool; then
1505 ac_aux_dir=$ac_dir
1506 ac_install_sh="$ac_aux_dir/shtool install -c"
1507 break
1508 fi
1509done
1510if test -z "$ac_aux_dir"; then
1511 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1512echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1513 { (exit 1); exit 1; }; }
1514fi
1515ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1516ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1517ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1518
1519# Make sure we can run config.sub.
1520$ac_config_sub sun4 >/dev/null 2>&1 ||
1521 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1522echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1523 { (exit 1); exit 1; }; }
1524
1525echo "$as_me:$LINENO: checking build system type" >&5
1526echo $ECHO_N "checking build system type... $ECHO_C" >&6
1527if test "${ac_cv_build+set}" = set; then
1528 echo $ECHO_N "(cached) $ECHO_C" >&6
1529else
1530 ac_cv_build_alias=$build_alias
1531test -z "$ac_cv_build_alias" &&
1532 ac_cv_build_alias=`$ac_config_guess`
1533test -z "$ac_cv_build_alias" &&
1534 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1535echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1536 { (exit 1); exit 1; }; }
1537ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1538 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1539echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1540 { (exit 1); exit 1; }; }
1541
1542fi
1543echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1544echo "${ECHO_T}$ac_cv_build" >&6
1545build=$ac_cv_build
1546build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1547build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1548build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1549
1550
1551echo "$as_me:$LINENO: checking host system type" >&5
1552echo $ECHO_N "checking host system type... $ECHO_C" >&6
1553if test "${ac_cv_host+set}" = set; then
1554 echo $ECHO_N "(cached) $ECHO_C" >&6
1555else
1556 ac_cv_host_alias=$host_alias
1557test -z "$ac_cv_host_alias" &&
1558 ac_cv_host_alias=$ac_cv_build_alias
1559ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1560 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1561echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1562 { (exit 1); exit 1; }; }
1563
1564fi
1565echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1566echo "${ECHO_T}$ac_cv_host" >&6
1567host=$ac_cv_host
1568host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1569host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1570host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1571
1572
1573echo "$as_me:$LINENO: checking target system type" >&5
1574echo $ECHO_N "checking target system type... $ECHO_C" >&6
1575if test "${ac_cv_target+set}" = set; then
1576 echo $ECHO_N "(cached) $ECHO_C" >&6
1577else
1578 ac_cv_target_alias=$target_alias
1579test "x$ac_cv_target_alias" = "x" &&
1580 ac_cv_target_alias=$ac_cv_host_alias
1581ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1582 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1583echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1584 { (exit 1); exit 1; }; }
1585
1586fi
1587echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1588echo "${ECHO_T}$ac_cv_target" >&6
1589target=$ac_cv_target
1590target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1591target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1592target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1593
1594
1595# The aliases save the names the user supplied, while $host etc.
1596# will get canonicalized.
1597test -n "$target_alias" &&
1598 test "$program_prefix$program_suffix$program_transform_name" = \
1599 NONENONEs,x,x, &&
1600 program_prefix=${target_alias}-
1601ac_ext=c
1602ac_cpp='$CPP $CPPFLAGS'
1603ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1604ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1605ac_compiler_gnu=$ac_cv_c_compiler_gnu
1606if test -n "$ac_tool_prefix"; then
1607 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1608set dummy ${ac_tool_prefix}gcc; ac_word=$2
1609echo "$as_me:$LINENO: checking for $ac_word" >&5
1610echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1611if test "${ac_cv_prog_CC+set}" = set; then
1612 echo $ECHO_N "(cached) $ECHO_C" >&6
1613else
1614 if test -n "$CC"; then
1615 ac_cv_prog_CC="$CC" # Let the user override the test.
1616else
1617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1618for as_dir in $PATH
1619do
1620 IFS=$as_save_IFS
1621 test -z "$as_dir" && as_dir=.
1622 for ac_exec_ext in '' $ac_executable_extensions; do
1623 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1624 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1626 break 2
1627 fi
1628done
1629done
1630
1631fi
1632fi
1633CC=$ac_cv_prog_CC
1634if test -n "$CC"; then
1635 echo "$as_me:$LINENO: result: $CC" >&5
1636echo "${ECHO_T}$CC" >&6
1637else
1638 echo "$as_me:$LINENO: result: no" >&5
1639echo "${ECHO_T}no" >&6
1640fi
1641
1642fi
1643if test -z "$ac_cv_prog_CC"; then
1644 ac_ct_CC=$CC
1645 # Extract the first word of "gcc", so it can be a program name with args.
1646set dummy gcc; ac_word=$2
1647echo "$as_me:$LINENO: checking for $ac_word" >&5
1648echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1649if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1650 echo $ECHO_N "(cached) $ECHO_C" >&6
1651else
1652 if test -n "$ac_ct_CC"; then
1653 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1654else
1655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1656for as_dir in $PATH
1657do
1658 IFS=$as_save_IFS
1659 test -z "$as_dir" && as_dir=.
1660 for ac_exec_ext in '' $ac_executable_extensions; do
1661 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1662 ac_cv_prog_ac_ct_CC="gcc"
1663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1664 break 2
1665 fi
1666done
1667done
1668
1669fi
1670fi
1671ac_ct_CC=$ac_cv_prog_ac_ct_CC
1672if test -n "$ac_ct_CC"; then
1673 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1674echo "${ECHO_T}$ac_ct_CC" >&6
1675else
1676 echo "$as_me:$LINENO: result: no" >&5
1677echo "${ECHO_T}no" >&6
1678fi
1679
1680 CC=$ac_ct_CC
1681else
1682 CC="$ac_cv_prog_CC"
1683fi
1684
1685if test -z "$CC"; then
1686 if test -n "$ac_tool_prefix"; then
1687 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1688set dummy ${ac_tool_prefix}cc; ac_word=$2
1689echo "$as_me:$LINENO: checking for $ac_word" >&5
1690echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1691if test "${ac_cv_prog_CC+set}" = set; then
1692 echo $ECHO_N "(cached) $ECHO_C" >&6
1693else
1694 if test -n "$CC"; then
1695 ac_cv_prog_CC="$CC" # Let the user override the test.
1696else
1697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1698for as_dir in $PATH
1699do
1700 IFS=$as_save_IFS
1701 test -z "$as_dir" && as_dir=.
1702 for ac_exec_ext in '' $ac_executable_extensions; do
1703 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1704 ac_cv_prog_CC="${ac_tool_prefix}cc"
1705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1706 break 2
1707 fi
1708done
1709done
1710
1711fi
1712fi
1713CC=$ac_cv_prog_CC
1714if test -n "$CC"; then
1715 echo "$as_me:$LINENO: result: $CC" >&5
1716echo "${ECHO_T}$CC" >&6
1717else
1718 echo "$as_me:$LINENO: result: no" >&5
1719echo "${ECHO_T}no" >&6
1720fi
1721
1722fi
1723if test -z "$ac_cv_prog_CC"; then
1724 ac_ct_CC=$CC
1725 # Extract the first word of "cc", so it can be a program name with args.
1726set dummy cc; ac_word=$2
1727echo "$as_me:$LINENO: checking for $ac_word" >&5
1728echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1729if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1730 echo $ECHO_N "(cached) $ECHO_C" >&6
1731else
1732 if test -n "$ac_ct_CC"; then
1733 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1734else
1735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1736for as_dir in $PATH
1737do
1738 IFS=$as_save_IFS
1739 test -z "$as_dir" && as_dir=.
1740 for ac_exec_ext in '' $ac_executable_extensions; do
1741 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1742 ac_cv_prog_ac_ct_CC="cc"
1743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1744 break 2
1745 fi
1746done
1747done
1748
1749fi
1750fi
1751ac_ct_CC=$ac_cv_prog_ac_ct_CC
1752if test -n "$ac_ct_CC"; then
1753 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1754echo "${ECHO_T}$ac_ct_CC" >&6
1755else
1756 echo "$as_me:$LINENO: result: no" >&5
1757echo "${ECHO_T}no" >&6
1758fi
1759
1760 CC=$ac_ct_CC
1761else
1762 CC="$ac_cv_prog_CC"
1763fi
1764
1765fi
1766if test -z "$CC"; then
1767 # Extract the first word of "cc", so it can be a program name with args.
1768set dummy cc; ac_word=$2
1769echo "$as_me:$LINENO: checking for $ac_word" >&5
1770echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1771if test "${ac_cv_prog_CC+set}" = set; then
1772 echo $ECHO_N "(cached) $ECHO_C" >&6
1773else
1774 if test -n "$CC"; then
1775 ac_cv_prog_CC="$CC" # Let the user override the test.
1776else
1777 ac_prog_rejected=no
1778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1779for as_dir in $PATH
1780do
1781 IFS=$as_save_IFS
1782 test -z "$as_dir" && as_dir=.
1783 for ac_exec_ext in '' $ac_executable_extensions; do
1784 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1785 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1786 ac_prog_rejected=yes
1787 continue
1788 fi
1789 ac_cv_prog_CC="cc"
1790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1791 break 2
1792 fi
1793done
1794done
1795
1796if test $ac_prog_rejected = yes; then
1797 # We found a bogon in the path, so make sure we never use it.
1798 set dummy $ac_cv_prog_CC
1799 shift
1800 if test $# != 0; then
1801 # We chose a different compiler from the bogus one.
1802 # However, it has the same basename, so the bogon will be chosen
1803 # first if we set CC to just the basename; use the full file name.
1804 shift
1805 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1806 fi
1807fi
1808fi
1809fi
1810CC=$ac_cv_prog_CC
1811if test -n "$CC"; then
1812 echo "$as_me:$LINENO: result: $CC" >&5
1813echo "${ECHO_T}$CC" >&6
1814else
1815 echo "$as_me:$LINENO: result: no" >&5
1816echo "${ECHO_T}no" >&6
1817fi
1818
1819fi
1820if test -z "$CC"; then
1821 if test -n "$ac_tool_prefix"; then
1822 for ac_prog in cl
1823 do
1824 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1825set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1826echo "$as_me:$LINENO: checking for $ac_word" >&5
1827echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1828if test "${ac_cv_prog_CC+set}" = set; then
1829 echo $ECHO_N "(cached) $ECHO_C" >&6
1830else
1831 if test -n "$CC"; then
1832 ac_cv_prog_CC="$CC" # Let the user override the test.
1833else
1834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1835for as_dir in $PATH
1836do
1837 IFS=$as_save_IFS
1838 test -z "$as_dir" && as_dir=.
1839 for ac_exec_ext in '' $ac_executable_extensions; do
1840 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1841 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1843 break 2
1844 fi
1845done
1846done
1847
1848fi
1849fi
1850CC=$ac_cv_prog_CC
1851if test -n "$CC"; then
1852 echo "$as_me:$LINENO: result: $CC" >&5
1853echo "${ECHO_T}$CC" >&6
1854else
1855 echo "$as_me:$LINENO: result: no" >&5
1856echo "${ECHO_T}no" >&6
1857fi
1858
1859 test -n "$CC" && break
1860 done
1861fi
1862if test -z "$CC"; then
1863 ac_ct_CC=$CC
1864 for ac_prog in cl
1865do
1866 # Extract the first word of "$ac_prog", so it can be a program name with args.
1867set dummy $ac_prog; ac_word=$2
1868echo "$as_me:$LINENO: checking for $ac_word" >&5
1869echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1870if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1871 echo $ECHO_N "(cached) $ECHO_C" >&6
1872else
1873 if test -n "$ac_ct_CC"; then
1874 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1875else
1876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1877for as_dir in $PATH
1878do
1879 IFS=$as_save_IFS
1880 test -z "$as_dir" && as_dir=.
1881 for ac_exec_ext in '' $ac_executable_extensions; do
1882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1883 ac_cv_prog_ac_ct_CC="$ac_prog"
1884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1885 break 2
1886 fi
1887done
1888done
1889
1890fi
1891fi
1892ac_ct_CC=$ac_cv_prog_ac_ct_CC
1893if test -n "$ac_ct_CC"; then
1894 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1895echo "${ECHO_T}$ac_ct_CC" >&6
1896else
1897 echo "$as_me:$LINENO: result: no" >&5
1898echo "${ECHO_T}no" >&6
1899fi
1900
1901 test -n "$ac_ct_CC" && break
1902done
1903
1904 CC=$ac_ct_CC
1905fi
1906
1907fi
1908
1909
7a283e07
RW
1910test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1911echo "$as_me: error: in \`$ac_pwd':" >&2;}
1912{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
42ecbf5e
DJ
1913See \`config.log' for more details." >&5
1914echo "$as_me: error: no acceptable C compiler found in \$PATH
1915See \`config.log' for more details." >&2;}
7a283e07 1916 { (exit 1); exit 1; }; }; }
42ecbf5e
DJ
1917
1918# Provide some information about the compiler.
1919echo "$as_me:$LINENO:" \
1920 "checking for C compiler version" >&5
1921ac_compiler=`set X $ac_compile; echo $2`
1922{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1923 (eval $ac_compiler --version </dev/null >&5) 2>&5
1924 ac_status=$?
1925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1926 (exit $ac_status); }
1927{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1928 (eval $ac_compiler -v </dev/null >&5) 2>&5
1929 ac_status=$?
1930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1931 (exit $ac_status); }
1932{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1933 (eval $ac_compiler -V </dev/null >&5) 2>&5
1934 ac_status=$?
1935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1936 (exit $ac_status); }
1937
1938cat >conftest.$ac_ext <<_ACEOF
1939/* confdefs.h. */
1940_ACEOF
1941cat confdefs.h >>conftest.$ac_ext
1942cat >>conftest.$ac_ext <<_ACEOF
1943/* end confdefs.h. */
1944
1945int
1946main ()
1947{
1948
1949 ;
1950 return 0;
1951}
1952_ACEOF
1953ac_clean_files_save=$ac_clean_files
1954ac_clean_files="$ac_clean_files a.out a.exe b.out"
1955# Try to create an executable without -o first, disregard a.out.
1956# It will help us diagnose broken compilers, and finding out an intuition
1957# of exeext.
1958echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1959echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1960ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1961if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1962 (eval $ac_link_default) 2>&5
1963 ac_status=$?
1964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1965 (exit $ac_status); }; then
1966 # Find the output, starting from the most likely. This scheme is
1967# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1968# resort.
1969
1970# Be careful to initialize this variable, since it used to be cached.
1971# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1972ac_cv_exeext=
1973# b.out is created by i960 compilers.
1974for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1975do
1976 test -f "$ac_file" || continue
1977 case $ac_file in
1978 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1979 ;;
1980 conftest.$ac_ext )
1981 # This is the source file.
1982 ;;
1983 [ab].out )
1984 # We found the default executable, but exeext='' is most
1985 # certainly right.
1986 break;;
1987 *.* )
1988 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1989 # FIXME: I believe we export ac_cv_exeext for Libtool,
1990 # but it would be cool to find out if it's true. Does anybody
1991 # maintain Libtool? --akim.
1992 export ac_cv_exeext
1993 break;;
1994 * )
1995 break;;
1996 esac
1997done
1998else
1999 echo "$as_me: failed program was:" >&5
2000sed 's/^/| /' conftest.$ac_ext >&5
2001
7a283e07
RW
2002{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2003echo "$as_me: error: in \`$ac_pwd':" >&2;}
42ecbf5e
DJ
2004{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2005See \`config.log' for more details." >&5
2006echo "$as_me: error: C compiler cannot create executables
2007See \`config.log' for more details." >&2;}
7a283e07 2008 { (exit 77); exit 77; }; }; }
42ecbf5e
DJ
2009fi
2010
2011ac_exeext=$ac_cv_exeext
2012echo "$as_me:$LINENO: result: $ac_file" >&5
2013echo "${ECHO_T}$ac_file" >&6
2014
2015# Check the compiler produces executables we can run. If not, either
2016# the compiler is broken, or we cross compile.
2017echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2018echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2019# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2020# If not cross compiling, check that we can run a simple program.
2021if test "$cross_compiling" != yes; then
2022 if { ac_try='./$ac_file'
2023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2024 (eval $ac_try) 2>&5
2025 ac_status=$?
2026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2027 (exit $ac_status); }; }; then
2028 cross_compiling=no
2029 else
2030 if test "$cross_compiling" = maybe; then
2031 cross_compiling=yes
2032 else
7a283e07
RW
2033 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2034echo "$as_me: error: in \`$ac_pwd':" >&2;}
2035{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
42ecbf5e
DJ
2036If you meant to cross compile, use \`--host'.
2037See \`config.log' for more details." >&5
2038echo "$as_me: error: cannot run C compiled programs.
2039If you meant to cross compile, use \`--host'.
2040See \`config.log' for more details." >&2;}
7a283e07 2041 { (exit 1); exit 1; }; }; }
42ecbf5e
DJ
2042 fi
2043 fi
2044fi
2045echo "$as_me:$LINENO: result: yes" >&5
2046echo "${ECHO_T}yes" >&6
2047
2048rm -f a.out a.exe conftest$ac_cv_exeext b.out
2049ac_clean_files=$ac_clean_files_save
2050# Check the compiler produces executables we can run. If not, either
2051# the compiler is broken, or we cross compile.
2052echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2053echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2054echo "$as_me:$LINENO: result: $cross_compiling" >&5
2055echo "${ECHO_T}$cross_compiling" >&6
2056
2057echo "$as_me:$LINENO: checking for suffix of executables" >&5
2058echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2059if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2060 (eval $ac_link) 2>&5
2061 ac_status=$?
2062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2063 (exit $ac_status); }; then
2064 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2065# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2066# work properly (i.e., refer to `conftest.exe'), while it won't with
2067# `rm'.
2068for ac_file in conftest.exe conftest conftest.*; do
2069 test -f "$ac_file" || continue
2070 case $ac_file in
2071 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2072 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2073 export ac_cv_exeext
2074 break;;
2075 * ) break;;
2076 esac
2077done
2078else
7a283e07
RW
2079 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2080echo "$as_me: error: in \`$ac_pwd':" >&2;}
2081{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
42ecbf5e
DJ
2082See \`config.log' for more details." >&5
2083echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2084See \`config.log' for more details." >&2;}
7a283e07 2085 { (exit 1); exit 1; }; }; }
42ecbf5e
DJ
2086fi
2087
2088rm -f conftest$ac_cv_exeext
2089echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2090echo "${ECHO_T}$ac_cv_exeext" >&6
2091
2092rm -f conftest.$ac_ext
2093EXEEXT=$ac_cv_exeext
2094ac_exeext=$EXEEXT
2095echo "$as_me:$LINENO: checking for suffix of object files" >&5
2096echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2097if test "${ac_cv_objext+set}" = set; then
2098 echo $ECHO_N "(cached) $ECHO_C" >&6
2099else
2100 cat >conftest.$ac_ext <<_ACEOF
2101/* confdefs.h. */
2102_ACEOF
2103cat confdefs.h >>conftest.$ac_ext
2104cat >>conftest.$ac_ext <<_ACEOF
2105/* end confdefs.h. */
2106
2107int
2108main ()
2109{
2110
2111 ;
2112 return 0;
2113}
2114_ACEOF
2115rm -f conftest.o conftest.obj
2116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2117 (eval $ac_compile) 2>&5
2118 ac_status=$?
2119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2120 (exit $ac_status); }; then
2121 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2122 case $ac_file in
2123 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2124 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2125 break;;
2126 esac
2127done
2128else
2129 echo "$as_me: failed program was:" >&5
2130sed 's/^/| /' conftest.$ac_ext >&5
2131
7a283e07
RW
2132{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2133echo "$as_me: error: in \`$ac_pwd':" >&2;}
42ecbf5e
DJ
2134{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2135See \`config.log' for more details." >&5
2136echo "$as_me: error: cannot compute suffix of object files: cannot compile
2137See \`config.log' for more details." >&2;}
7a283e07 2138 { (exit 1); exit 1; }; }; }
42ecbf5e
DJ
2139fi
2140
2141rm -f conftest.$ac_cv_objext conftest.$ac_ext
2142fi
2143echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2144echo "${ECHO_T}$ac_cv_objext" >&6
2145OBJEXT=$ac_cv_objext
2146ac_objext=$OBJEXT
2147echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2148echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2149if test "${ac_cv_c_compiler_gnu+set}" = set; then
2150 echo $ECHO_N "(cached) $ECHO_C" >&6
2151else
2152 cat >conftest.$ac_ext <<_ACEOF
2153/* confdefs.h. */
2154_ACEOF
2155cat confdefs.h >>conftest.$ac_ext
2156cat >>conftest.$ac_ext <<_ACEOF
2157/* end confdefs.h. */
2158
2159int
2160main ()
2161{
2162#ifndef __GNUC__
2163 choke me
2164#endif
2165
2166 ;
2167 return 0;
2168}
2169_ACEOF
2170rm -f conftest.$ac_objext
2171if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2172 (eval $ac_compile) 2>conftest.er1
2173 ac_status=$?
2174 grep -v '^ *+' conftest.er1 >conftest.err
2175 rm -f conftest.er1
2176 cat conftest.err >&5
2177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178 (exit $ac_status); } &&
7357c5b6
AM
2179 { ac_try='test -z "$ac_c_werror_flag"
2180 || test ! -s conftest.err'
42ecbf5e
DJ
2181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2182 (eval $ac_try) 2>&5
2183 ac_status=$?
2184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185 (exit $ac_status); }; } &&
2186 { ac_try='test -s conftest.$ac_objext'
2187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2188 (eval $ac_try) 2>&5
2189 ac_status=$?
2190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191 (exit $ac_status); }; }; then
2192 ac_compiler_gnu=yes
2193else
2194 echo "$as_me: failed program was:" >&5
2195sed 's/^/| /' conftest.$ac_ext >&5
2196
2197ac_compiler_gnu=no
2198fi
2199rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2200ac_cv_c_compiler_gnu=$ac_compiler_gnu
2201
2202fi
2203echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2204echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2205GCC=`test $ac_compiler_gnu = yes && echo yes`
2206ac_test_CFLAGS=${CFLAGS+set}
2207ac_save_CFLAGS=$CFLAGS
2208CFLAGS="-g"
2209echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2210echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2211if test "${ac_cv_prog_cc_g+set}" = set; then
2212 echo $ECHO_N "(cached) $ECHO_C" >&6
2213else
2214 cat >conftest.$ac_ext <<_ACEOF
2215/* confdefs.h. */
2216_ACEOF
2217cat confdefs.h >>conftest.$ac_ext
2218cat >>conftest.$ac_ext <<_ACEOF
2219/* end confdefs.h. */
2220
2221int
2222main ()
2223{
2224
2225 ;
2226 return 0;
2227}
2228_ACEOF
2229rm -f conftest.$ac_objext
2230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2231 (eval $ac_compile) 2>conftest.er1
2232 ac_status=$?
2233 grep -v '^ *+' conftest.er1 >conftest.err
2234 rm -f conftest.er1
2235 cat conftest.err >&5
2236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2237 (exit $ac_status); } &&
7357c5b6
AM
2238 { ac_try='test -z "$ac_c_werror_flag"
2239 || test ! -s conftest.err'
42ecbf5e
DJ
2240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2241 (eval $ac_try) 2>&5
2242 ac_status=$?
2243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244 (exit $ac_status); }; } &&
2245 { ac_try='test -s conftest.$ac_objext'
2246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2247 (eval $ac_try) 2>&5
2248 ac_status=$?
2249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2250 (exit $ac_status); }; }; then
2251 ac_cv_prog_cc_g=yes
2252else
2253 echo "$as_me: failed program was:" >&5
2254sed 's/^/| /' conftest.$ac_ext >&5
2255
2256ac_cv_prog_cc_g=no
2257fi
2258rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2259fi
2260echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2261echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2262if test "$ac_test_CFLAGS" = set; then
2263 CFLAGS=$ac_save_CFLAGS
2264elif test $ac_cv_prog_cc_g = yes; then
2265 if test "$GCC" = yes; then
2266 CFLAGS="-g -O2"
2267 else
2268 CFLAGS="-g"
2269 fi
2270else
2271 if test "$GCC" = yes; then
2272 CFLAGS="-O2"
2273 else
2274 CFLAGS=
2275 fi
2276fi
2277echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2278echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2279if test "${ac_cv_prog_cc_stdc+set}" = set; then
2280 echo $ECHO_N "(cached) $ECHO_C" >&6
2281else
2282 ac_cv_prog_cc_stdc=no
2283ac_save_CC=$CC
2284cat >conftest.$ac_ext <<_ACEOF
2285/* confdefs.h. */
2286_ACEOF
2287cat confdefs.h >>conftest.$ac_ext
2288cat >>conftest.$ac_ext <<_ACEOF
2289/* end confdefs.h. */
2290#include <stdarg.h>
2291#include <stdio.h>
2292#include <sys/types.h>
2293#include <sys/stat.h>
2294/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2295struct buf { int x; };
2296FILE * (*rcsopen) (struct buf *, struct stat *, int);
2297static char *e (p, i)
2298 char **p;
2299 int i;
2300{
2301 return p[i];
2302}
2303static char *f (char * (*g) (char **, int), char **p, ...)
2304{
2305 char *s;
2306 va_list v;
2307 va_start (v,p);
2308 s = g (p, va_arg (v,int));
2309 va_end (v);
2310 return s;
2311}
2312
2313/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2314 function prototypes and stuff, but not '\xHH' hex character constants.
2315 These don't provoke an error unfortunately, instead are silently treated
2316 as 'x'. The following induces an error, until -std1 is added to get
2317 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2318 array size at least. It's necessary to write '\x00'==0 to get something
2319 that's true only with -std1. */
2320int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2321
2322int test (int i, double x);
2323struct s1 {int (*f) (int a);};
2324struct s2 {int (*f) (double a);};
2325int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2326int argc;
2327char **argv;
2328int
2329main ()
2330{
2331return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2332 ;
2333 return 0;
2334}
2335_ACEOF
2336# Don't try gcc -ansi; that turns off useful extensions and
2337# breaks some systems' header files.
2338# AIX -qlanglvl=ansi
2339# Ultrix and OSF/1 -std1
2340# HP-UX 10.20 and later -Ae
2341# HP-UX older versions -Aa -D_HPUX_SOURCE
2342# SVR4 -Xc -D__EXTENSIONS__
2343for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2344do
2345 CC="$ac_save_CC $ac_arg"
2346 rm -f conftest.$ac_objext
2347if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2348 (eval $ac_compile) 2>conftest.er1
2349 ac_status=$?
2350 grep -v '^ *+' conftest.er1 >conftest.err
2351 rm -f conftest.er1
2352 cat conftest.err >&5
2353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354 (exit $ac_status); } &&
7357c5b6
AM
2355 { ac_try='test -z "$ac_c_werror_flag"
2356 || test ! -s conftest.err'
42ecbf5e
DJ
2357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2358 (eval $ac_try) 2>&5
2359 ac_status=$?
2360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361 (exit $ac_status); }; } &&
2362 { ac_try='test -s conftest.$ac_objext'
2363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2364 (eval $ac_try) 2>&5
2365 ac_status=$?
2366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367 (exit $ac_status); }; }; then
2368 ac_cv_prog_cc_stdc=$ac_arg
2369break
2370else
2371 echo "$as_me: failed program was:" >&5
2372sed 's/^/| /' conftest.$ac_ext >&5
2373
2374fi
2375rm -f conftest.err conftest.$ac_objext
2376done
2377rm -f conftest.$ac_ext conftest.$ac_objext
2378CC=$ac_save_CC
2379
2380fi
2381
2382case "x$ac_cv_prog_cc_stdc" in
2383 x|xno)
2384 echo "$as_me:$LINENO: result: none needed" >&5
2385echo "${ECHO_T}none needed" >&6 ;;
2386 *)
2387 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2388echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2389 CC="$CC $ac_cv_prog_cc_stdc" ;;
2390esac
2391
2392# Some people use a C++ compiler to compile C. Since we use `exit',
2393# in C++ we need to declare it. In case someone uses the same compiler
2394# for both compiling C and C++ we need to have the C++ compiler decide
2395# the declaration of exit, since it's the most demanding environment.
2396cat >conftest.$ac_ext <<_ACEOF
2397#ifndef __cplusplus
2398 choke me
2399#endif
2400_ACEOF
2401rm -f conftest.$ac_objext
2402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2403 (eval $ac_compile) 2>conftest.er1
2404 ac_status=$?
2405 grep -v '^ *+' conftest.er1 >conftest.err
2406 rm -f conftest.er1
2407 cat conftest.err >&5
2408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409 (exit $ac_status); } &&
7357c5b6
AM
2410 { ac_try='test -z "$ac_c_werror_flag"
2411 || test ! -s conftest.err'
42ecbf5e
DJ
2412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2413 (eval $ac_try) 2>&5
2414 ac_status=$?
2415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416 (exit $ac_status); }; } &&
2417 { ac_try='test -s conftest.$ac_objext'
2418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2419 (eval $ac_try) 2>&5
2420 ac_status=$?
2421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422 (exit $ac_status); }; }; then
2423 for ac_declaration in \
2424 '' \
2425 'extern "C" void std::exit (int) throw (); using std::exit;' \
2426 'extern "C" void std::exit (int); using std::exit;' \
2427 'extern "C" void exit (int) throw ();' \
2428 'extern "C" void exit (int);' \
2429 'void exit (int);'
2430do
2431 cat >conftest.$ac_ext <<_ACEOF
2432/* confdefs.h. */
2433_ACEOF
2434cat confdefs.h >>conftest.$ac_ext
2435cat >>conftest.$ac_ext <<_ACEOF
2436/* end confdefs.h. */
2437$ac_declaration
2438#include <stdlib.h>
2439int
2440main ()
2441{
2442exit (42);
2443 ;
2444 return 0;
2445}
2446_ACEOF
2447rm -f conftest.$ac_objext
2448if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2449 (eval $ac_compile) 2>conftest.er1
2450 ac_status=$?
2451 grep -v '^ *+' conftest.er1 >conftest.err
2452 rm -f conftest.er1
2453 cat conftest.err >&5
2454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455 (exit $ac_status); } &&
7357c5b6
AM
2456 { ac_try='test -z "$ac_c_werror_flag"
2457 || test ! -s conftest.err'
42ecbf5e
DJ
2458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2459 (eval $ac_try) 2>&5
2460 ac_status=$?
2461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462 (exit $ac_status); }; } &&
2463 { ac_try='test -s conftest.$ac_objext'
2464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2465 (eval $ac_try) 2>&5
2466 ac_status=$?
2467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468 (exit $ac_status); }; }; then
2469 :
2470else
2471 echo "$as_me: failed program was:" >&5
2472sed 's/^/| /' conftest.$ac_ext >&5
2473
2474continue
2475fi
2476rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2477 cat >conftest.$ac_ext <<_ACEOF
2478/* confdefs.h. */
2479_ACEOF
2480cat confdefs.h >>conftest.$ac_ext
2481cat >>conftest.$ac_ext <<_ACEOF
2482/* end confdefs.h. */
2483$ac_declaration
2484int
2485main ()
2486{
2487exit (42);
2488 ;
2489 return 0;
2490}
2491_ACEOF
2492rm -f conftest.$ac_objext
2493if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2494 (eval $ac_compile) 2>conftest.er1
2495 ac_status=$?
2496 grep -v '^ *+' conftest.er1 >conftest.err
2497 rm -f conftest.er1
2498 cat conftest.err >&5
2499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500 (exit $ac_status); } &&
7357c5b6
AM
2501 { ac_try='test -z "$ac_c_werror_flag"
2502 || test ! -s conftest.err'
42ecbf5e
DJ
2503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2504 (eval $ac_try) 2>&5
2505 ac_status=$?
2506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507 (exit $ac_status); }; } &&
2508 { ac_try='test -s conftest.$ac_objext'
2509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2510 (eval $ac_try) 2>&5
2511 ac_status=$?
2512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513 (exit $ac_status); }; }; then
2514 break
2515else
2516 echo "$as_me: failed program was:" >&5
2517sed 's/^/| /' conftest.$ac_ext >&5
2518
2519fi
2520rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2521done
2522rm -f conftest*
2523if test -n "$ac_declaration"; then
2524 echo '#ifdef __cplusplus' >>confdefs.h
2525 echo $ac_declaration >>confdefs.h
2526 echo '#endif' >>confdefs.h
2527fi
2528
2529else
2530 echo "$as_me: failed program was:" >&5
2531sed 's/^/| /' conftest.$ac_ext >&5
2532
2533fi
2534rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2535ac_ext=c
2536ac_cpp='$CPP $CPPFLAGS'
2537ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2538ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2539ac_compiler_gnu=$ac_cv_c_compiler_gnu
2540
2541
2542echo "$as_me:$LINENO: checking for library containing strerror" >&5
2543echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2544if test "${ac_cv_search_strerror+set}" = set; then
2545 echo $ECHO_N "(cached) $ECHO_C" >&6
2546else
2547 ac_func_search_save_LIBS=$LIBS
2548ac_cv_search_strerror=no
2549cat >conftest.$ac_ext <<_ACEOF
2550/* confdefs.h. */
2551_ACEOF
2552cat confdefs.h >>conftest.$ac_ext
2553cat >>conftest.$ac_ext <<_ACEOF
2554/* end confdefs.h. */
2555
2556/* Override any gcc2 internal prototype to avoid an error. */
2557#ifdef __cplusplus
2558extern "C"
2559#endif
2560/* We use char because int might match the return type of a gcc2
2561 builtin and then its argument prototype would still apply. */
2562char strerror ();
2563int
2564main ()
2565{
2566strerror ();
2567 ;
2568 return 0;
2569}
2570_ACEOF
2571rm -f conftest.$ac_objext conftest$ac_exeext
2572if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2573 (eval $ac_link) 2>conftest.er1
2574 ac_status=$?
2575 grep -v '^ *+' conftest.er1 >conftest.err
2576 rm -f conftest.er1
2577 cat conftest.err >&5
2578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579 (exit $ac_status); } &&
7357c5b6
AM
2580 { ac_try='test -z "$ac_c_werror_flag"
2581 || test ! -s conftest.err'
42ecbf5e
DJ
2582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2583 (eval $ac_try) 2>&5
2584 ac_status=$?
2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 (exit $ac_status); }; } &&
2587 { ac_try='test -s conftest$ac_exeext'
2588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2589 (eval $ac_try) 2>&5
2590 ac_status=$?
2591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592 (exit $ac_status); }; }; then
2593 ac_cv_search_strerror="none required"
2594else
2595 echo "$as_me: failed program was:" >&5
2596sed 's/^/| /' conftest.$ac_ext >&5
2597
2598fi
2599rm -f conftest.err conftest.$ac_objext \
2600 conftest$ac_exeext conftest.$ac_ext
2601if test "$ac_cv_search_strerror" = no; then
2602 for ac_lib in cposix; do
2603 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2604 cat >conftest.$ac_ext <<_ACEOF
2605/* confdefs.h. */
2606_ACEOF
2607cat confdefs.h >>conftest.$ac_ext
2608cat >>conftest.$ac_ext <<_ACEOF
2609/* end confdefs.h. */
2610
2611/* Override any gcc2 internal prototype to avoid an error. */
2612#ifdef __cplusplus
2613extern "C"
2614#endif
2615/* We use char because int might match the return type of a gcc2
2616 builtin and then its argument prototype would still apply. */
2617char strerror ();
2618int
2619main ()
2620{
2621strerror ();
2622 ;
2623 return 0;
2624}
2625_ACEOF
2626rm -f conftest.$ac_objext conftest$ac_exeext
2627if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2628 (eval $ac_link) 2>conftest.er1
2629 ac_status=$?
2630 grep -v '^ *+' conftest.er1 >conftest.err
2631 rm -f conftest.er1
2632 cat conftest.err >&5
2633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634 (exit $ac_status); } &&
7357c5b6
AM
2635 { ac_try='test -z "$ac_c_werror_flag"
2636 || test ! -s conftest.err'
42ecbf5e
DJ
2637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2638 (eval $ac_try) 2>&5
2639 ac_status=$?
2640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641 (exit $ac_status); }; } &&
2642 { ac_try='test -s conftest$ac_exeext'
2643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2644 (eval $ac_try) 2>&5
2645 ac_status=$?
2646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647 (exit $ac_status); }; }; then
2648 ac_cv_search_strerror="-l$ac_lib"
2649break
2650else
2651 echo "$as_me: failed program was:" >&5
2652sed 's/^/| /' conftest.$ac_ext >&5
2653
2654fi
2655rm -f conftest.err conftest.$ac_objext \
2656 conftest$ac_exeext conftest.$ac_ext
2657 done
2658fi
2659LIBS=$ac_func_search_save_LIBS
2660fi
2661echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2662echo "${ECHO_T}$ac_cv_search_strerror" >&6
2663if test "$ac_cv_search_strerror" != no; then
2664 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2665
2666fi
2667
2668
2669BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2670am__api_version="1.9"
2671# Find a good install program. We prefer a C program (faster),
2672# so one script is as good as another. But avoid the broken or
2673# incompatible versions:
2674# SysV /etc/install, /usr/sbin/install
2675# SunOS /usr/etc/install
2676# IRIX /sbin/install
2677# AIX /bin/install
2678# AmigaOS /C/install, which installs bootblocks on floppy discs
2679# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2680# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2681# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2682# OS/2's system install, which has a completely different semantic
2683# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 2684# Reject install programs that cannot install multiple files.
42ecbf5e
DJ
2685echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2686echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2687if test -z "$INSTALL"; then
2688if test "${ac_cv_path_install+set}" = set; then
2689 echo $ECHO_N "(cached) $ECHO_C" >&6
2690else
2691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2692for as_dir in $PATH
2693do
2694 IFS=$as_save_IFS
2695 test -z "$as_dir" && as_dir=.
2696 # Account for people who put trailing slashes in PATH elements.
2697case $as_dir/ in
2698 ./ | .// | /cC/* | \
2699 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2700 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2701 /usr/ucb/* ) ;;
2702 *)
2703 # OSF1 and SCO ODT 3.0 have their own names for install.
2704 # Don't use installbsd from OSF since it installs stuff as root
2705 # by default.
2706 for ac_prog in ginstall scoinst install; do
2707 for ac_exec_ext in '' $ac_executable_extensions; do
2708 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2709 if test $ac_prog = install &&
2710 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
2711 # AIX install. It has an incompatible calling convention.
2712 :
42ecbf5e
DJ
2713 elif test $ac_prog = install &&
2714 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2715 # program-specific install script used by HP pwplus--don't use.
2716 :
252b5132 2717 else
58c85be7
RW
2718 rm -rf conftest.one conftest.two conftest.dir
2719 echo one > conftest.one
2720 echo two > conftest.two
2721 mkdir conftest.dir
2722 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2723 test -s conftest.one && test -s conftest.two &&
2724 test -s conftest.dir/conftest.one &&
2725 test -s conftest.dir/conftest.two
2726 then
2727 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2728 break 3
2729 fi
252b5132
RH
2730 fi
2731 fi
d15b04bd 2732 done
42ecbf5e
DJ
2733 done
2734 ;;
2735esac
2736done
2737
58c85be7 2738rm -rf conftest.one conftest.two conftest.dir
252b5132
RH
2739
2740fi
2741 if test "${ac_cv_path_install+set}" = set; then
42ecbf5e 2742 INSTALL=$ac_cv_path_install
252b5132 2743 else
58c85be7
RW
2744 # As a last resort, use the slow shell script. Don't cache a
2745 # value for INSTALL within a source directory, because that will
252b5132 2746 # break other packages using the cache if that directory is
58c85be7 2747 # removed, or if the value is a relative name.
42ecbf5e 2748 INSTALL=$ac_install_sh
252b5132
RH
2749 fi
2750fi
42ecbf5e
DJ
2751echo "$as_me:$LINENO: result: $INSTALL" >&5
2752echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
2753
2754# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2755# It thinks the first close brace ends the variable substitution.
2756test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2757
42ecbf5e 2758test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
2759
2760test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2761
42ecbf5e
DJ
2762echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2763echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
252b5132
RH
2764# Just in case
2765sleep 1
42ecbf5e 2766echo timestamp > conftest.file
252b5132
RH
2767# Do `set' in a subshell so we don't clobber the current shell's
2768# arguments. Must try -L first in case configure is actually a
2769# symlink; some systems play weird games with the mod time of symlinks
2770# (eg FreeBSD returns the mod time of the symlink's containing
2771# directory).
2772if (
42ecbf5e 2773 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
252b5132
RH
2774 if test "$*" = "X"; then
2775 # -L didn't work.
42ecbf5e 2776 set X `ls -t $srcdir/configure conftest.file`
252b5132 2777 fi
42ecbf5e
DJ
2778 rm -f conftest.file
2779 if test "$*" != "X $srcdir/configure conftest.file" \
2780 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
2781
2782 # If neither matched, then we have a broken ls. This can happen
2783 # if, for instance, CONFIG_SHELL is bash and it inherits a
2784 # broken ls alias from the environment. This has actually
2785 # happened. Such a system could not be considered "sane".
42ecbf5e
DJ
2786 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2787alias in your environment" >&5
2788echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2789alias in your environment" >&2;}
2790 { (exit 1); exit 1; }; }
252b5132
RH
2791 fi
2792
42ecbf5e 2793 test "$2" = conftest.file
252b5132
RH
2794 )
2795then
2796 # Ok.
2797 :
2798else
42ecbf5e
DJ
2799 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2800Check your system clock" >&5
2801echo "$as_me: error: newly created file is older than distributed files!
2802Check your system clock" >&2;}
2803 { (exit 1); exit 1; }; }
2804fi
2805echo "$as_me:$LINENO: result: yes" >&5
2806echo "${ECHO_T}yes" >&6
2807test "$program_prefix" != NONE &&
2808 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2809# Use a double $ so make ignores it.
2810test "$program_suffix" != NONE &&
2811 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2812# Double any \ or $. echo might interpret backslashes.
2813# By default was `s,x,x', remove it if useless.
2814cat <<\_ACEOF >conftest.sed
2815s/[\\$]/&&/g;s/;s,x,x,$//
2816_ACEOF
2817program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2818rm conftest.sed
2819
2820# expand $ac_aux_dir to an absolute path
2821am_aux_dir=`cd $ac_aux_dir && pwd`
2822
2823test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2824# Use eval to expand $SHELL
2825if eval "$MISSING --run true"; then
2826 am_missing_run="$MISSING --run "
2827else
2828 am_missing_run=
2829 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2830echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2831fi
2832
2833if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2834 # We used to keeping the `.' as first argument, in order to
2835 # allow $(mkdir_p) to be used without argument. As in
2836 # $(mkdir_p) $(somedir)
2837 # where $(somedir) is conditionally defined. However this is wrong
2838 # for two reasons:
2839 # 1. if the package is installed by a user who cannot write `.'
2840 # make install will fail,
2841 # 2. the above comment should most certainly read
2842 # $(mkdir_p) $(DESTDIR)$(somedir)
2843 # so it does not work when $(somedir) is undefined and
2844 # $(DESTDIR) is not.
2845 # To support the latter case, we have to write
2846 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2847 # so the `.' trick is pointless.
2848 mkdir_p='mkdir -p --'
2849else
2850 # On NextStep and OpenStep, the `mkdir' command does not
2851 # recognize any option. It will interpret all options as
2852 # directories to create, and then abort because `.' already
2853 # exists.
2854 for d in ./-p ./--version;
2855 do
2856 test -d $d && rmdir $d
2857 done
2858 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2859 if test -f "$ac_aux_dir/mkinstalldirs"; then
2860 mkdir_p='$(mkinstalldirs)'
2861 else
2862 mkdir_p='$(install_sh) -d'
2863 fi
2864fi
2865
2866for ac_prog in gawk mawk nawk awk
2867do
2868 # Extract the first word of "$ac_prog", so it can be a program name with args.
2869set dummy $ac_prog; ac_word=$2
2870echo "$as_me:$LINENO: checking for $ac_word" >&5
2871echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2872if test "${ac_cv_prog_AWK+set}" = set; then
2873 echo $ECHO_N "(cached) $ECHO_C" >&6
2874else
2875 if test -n "$AWK"; then
2876 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2877else
2878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2879for as_dir in $PATH
2880do
2881 IFS=$as_save_IFS
2882 test -z "$as_dir" && as_dir=.
2883 for ac_exec_ext in '' $ac_executable_extensions; do
2884 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2885 ac_cv_prog_AWK="$ac_prog"
2886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2887 break 2
2888 fi
2889done
2890done
2891
2892fi
2893fi
2894AWK=$ac_cv_prog_AWK
2895if test -n "$AWK"; then
2896 echo "$as_me:$LINENO: result: $AWK" >&5
2897echo "${ECHO_T}$AWK" >&6
2898else
2899 echo "$as_me:$LINENO: result: no" >&5
2900echo "${ECHO_T}no" >&6
2901fi
2902
2903 test -n "$AWK" && break
2904done
2905
2906echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2907echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2908set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2909if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2910 echo $ECHO_N "(cached) $ECHO_C" >&6
2911else
2912 cat >conftest.make <<\_ACEOF
2913all:
2914 @echo 'ac_maketemp="$(MAKE)"'
2915_ACEOF
2916# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2917eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2918if test -n "$ac_maketemp"; then
2919 eval ac_cv_prog_make_${ac_make}_set=yes
2920else
2921 eval ac_cv_prog_make_${ac_make}_set=no
2922fi
2923rm -f conftest.make
2924fi
2925if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2926 echo "$as_me:$LINENO: result: yes" >&5
2927echo "${ECHO_T}yes" >&6
2928 SET_MAKE=
2929else
2930 echo "$as_me:$LINENO: result: no" >&5
2931echo "${ECHO_T}no" >&6
2932 SET_MAKE="MAKE=${MAKE-make}"
2933fi
2934
2935rm -rf .tst 2>/dev/null
2936mkdir .tst 2>/dev/null
2937if test -d .tst; then
2938 am__leading_dot=.
2939else
2940 am__leading_dot=_
2941fi
2942rmdir .tst 2>/dev/null
2943
2944DEPDIR="${am__leading_dot}deps"
2945
2946 ac_config_commands="$ac_config_commands depfiles"
2947
2948
2949am_make=${MAKE-make}
2950cat > confinc << 'END'
2951am__doit:
2952 @echo done
2953.PHONY: am__doit
2954END
2955# If we don't find an include directive, just comment out the code.
2956echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2957echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2958am__include="#"
2959am__quote=
2960_am_result=none
2961# First try GNU make style include.
2962echo "include confinc" > confmf
2963# We grep out `Entering directory' and `Leaving directory'
2964# messages which can occur if `w' ends up in MAKEFLAGS.
2965# In particular we don't look at `^make:' because GNU make might
2966# be invoked under some other name (usually "gmake"), in which
2967# case it prints its new name instead of `make'.
2968if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2969 am__include=include
2970 am__quote=
2971 _am_result=GNU
2972fi
2973# Now try BSD make style include.
2974if test "$am__include" = "#"; then
2975 echo '.include "confinc"' > confmf
2976 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2977 am__include=.include
2978 am__quote="\""
2979 _am_result=BSD
2980 fi
2981fi
2982
2983
2984echo "$as_me:$LINENO: result: $_am_result" >&5
2985echo "${ECHO_T}$_am_result" >&6
2986rm -f confinc confmf
2987
2988# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2989if test "${enable_dependency_tracking+set}" = set; then
2990 enableval="$enable_dependency_tracking"
2991
2992fi;
2993if test "x$enable_dependency_tracking" != xno; then
2994 am_depcomp="$ac_aux_dir/depcomp"
2995 AMDEPBACKSLASH='\'
2996fi
2997
2998
2999if test "x$enable_dependency_tracking" != xno; then
3000 AMDEP_TRUE=
3001 AMDEP_FALSE='#'
3002else
3003 AMDEP_TRUE='#'
3004 AMDEP_FALSE=
3005fi
3006
3007
3008
3009# test to see if srcdir already configured
3010if test "`cd $srcdir && pwd`" != "`pwd`" &&
3011 test -f $srcdir/config.status; then
3012 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3013echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3014 { (exit 1); exit 1; }; }
3015fi
3016
3017# test whether we have cygpath
3018if test -z "$CYGPATH_W"; then
3019 if (cygpath --version) >/dev/null 2>/dev/null; then
3020 CYGPATH_W='cygpath -w'
3021 else
3022 CYGPATH_W=echo
3023 fi
3024fi
3025
3026
3027# Define the identity of the package.
3028 PACKAGE=binutils
3029 VERSION=${BFD_VERSION}
3030
3031
3032cat >>confdefs.h <<_ACEOF
3033#define PACKAGE "$PACKAGE"
3034_ACEOF
3035
3036
3037cat >>confdefs.h <<_ACEOF
3038#define VERSION "$VERSION"
3039_ACEOF
3040
3041# Some tools Automake needs.
3042
3043ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3044
3045
3046AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3047
3048
3049AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3050
3051
3052AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3053
3054
3055MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3056
3057install_sh=${install_sh-"$am_aux_dir/install-sh"}
3058
3059# Installed binaries are usually stripped using `strip' when the user
3060# run `make install-strip'. However `strip' might not be the right
3061# tool to use in cross-compilation environments, therefore Automake
3062# will honor the `STRIP' environment variable to overrule this program.
3063if test "$cross_compiling" != no; then
3064 if test -n "$ac_tool_prefix"; then
3065 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3066set dummy ${ac_tool_prefix}strip; ac_word=$2
3067echo "$as_me:$LINENO: checking for $ac_word" >&5
3068echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3069if test "${ac_cv_prog_STRIP+set}" = set; then
3070 echo $ECHO_N "(cached) $ECHO_C" >&6
3071else
3072 if test -n "$STRIP"; then
3073 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3074else
3075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3076for as_dir in $PATH
3077do
3078 IFS=$as_save_IFS
3079 test -z "$as_dir" && as_dir=.
3080 for ac_exec_ext in '' $ac_executable_extensions; do
3081 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3082 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3084 break 2
3085 fi
3086done
3087done
3088
252b5132 3089fi
42ecbf5e
DJ
3090fi
3091STRIP=$ac_cv_prog_STRIP
3092if test -n "$STRIP"; then
3093 echo "$as_me:$LINENO: result: $STRIP" >&5
3094echo "${ECHO_T}$STRIP" >&6
d15b04bd 3095else
42ecbf5e
DJ
3096 echo "$as_me:$LINENO: result: no" >&5
3097echo "${ECHO_T}no" >&6
d15b04bd 3098fi
d15b04bd 3099
42ecbf5e
DJ
3100fi
3101if test -z "$ac_cv_prog_STRIP"; then
3102 ac_ct_STRIP=$STRIP
3103 # Extract the first word of "strip", so it can be a program name with args.
3104set dummy strip; ac_word=$2
3105echo "$as_me:$LINENO: checking for $ac_word" >&5
3106echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3107if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3108 echo $ECHO_N "(cached) $ECHO_C" >&6
d15b04bd 3109else
42ecbf5e
DJ
3110 if test -n "$ac_ct_STRIP"; then
3111 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
252b5132 3112else
42ecbf5e
DJ
3113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3114for as_dir in $PATH
3115do
3116 IFS=$as_save_IFS
3117 test -z "$as_dir" && as_dir=.
3118 for ac_exec_ext in '' $ac_executable_extensions; do
3119 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3120 ac_cv_prog_ac_ct_STRIP="strip"
3121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3122 break 2
3123 fi
3124done
3125done
3126
3127 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
252b5132 3128fi
252b5132 3129fi
42ecbf5e
DJ
3130ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3131if test -n "$ac_ct_STRIP"; then
3132 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3133echo "${ECHO_T}$ac_ct_STRIP" >&6
252b5132 3134else
42ecbf5e
DJ
3135 echo "$as_me:$LINENO: result: no" >&5
3136echo "${ECHO_T}no" >&6
252b5132
RH
3137fi
3138
42ecbf5e
DJ
3139 STRIP=$ac_ct_STRIP
3140else
3141 STRIP="$ac_cv_prog_STRIP"
3142fi
252b5132 3143
42ecbf5e
DJ
3144fi
3145INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
252b5132 3146
42ecbf5e
DJ
3147# We need awk for the "check" target. The system "awk" is bad on
3148# some platforms.
3149# Always define AMTAR for backward compatibility.
252b5132 3150
42ecbf5e 3151AMTAR=${AMTAR-"${am_missing_run}tar"}
252b5132 3152
42ecbf5e 3153am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
252b5132
RH
3154
3155
3156
252b5132 3157
42ecbf5e
DJ
3158depcc="$CC" am_compiler_list=
3159
3160echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3161echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3162if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3163 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3164else
42ecbf5e
DJ
3165 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3166 # We make a subdir and do the tests there. Otherwise we can end up
3167 # making bogus files that we don't know about and never remove. For
3168 # instance it was reported that on HP-UX the gcc test will end up
3169 # making a dummy file named `D' -- because `-MD' means `put the output
3170 # in D'.
3171 mkdir conftest.dir
3172 # Copy depcomp to subdir because otherwise we won't find it if we're
3173 # using a relative directory.
3174 cp "$am_depcomp" conftest.dir
3175 cd conftest.dir
3176 # We will build objects and dependencies in a subdirectory because
3177 # it helps to detect inapplicable dependency modes. For instance
3178 # both Tru64's cc and ICC support -MD to output dependencies as a
3179 # side effect of compilation, but ICC will put the dependencies in
3180 # the current directory while Tru64 will put them in the object
3181 # directory.
3182 mkdir sub
252b5132 3183
42ecbf5e
DJ
3184 am_cv_CC_dependencies_compiler_type=none
3185 if test "$am_compiler_list" = ""; then
3186 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3187 fi
3188 for depmode in $am_compiler_list; do
3189 # Setup a source with many dependencies, because some compilers
3190 # like to wrap large dependency lists on column 80 (with \), and
3191 # we should not choose a depcomp mode which is confused by this.
3192 #
3193 # We need to recreate these files for each test, as the compiler may
3194 # overwrite some of them when testing with obscure command lines.
3195 # This happens at least with the AIX C compiler.
3196 : > sub/conftest.c
3197 for i in 1 2 3 4 5 6; do
3198 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3199 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3200 # Solaris 8's {/usr,}/bin/sh.
3201 touch sub/conftst$i.h
3202 done
3203 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3204
3205 case $depmode in
3206 nosideeffect)
3207 # after this tag, mechanisms are not by side-effect, so they'll
3208 # only be used when explicitly requested
3209 if test "x$enable_dependency_tracking" = xyes; then
3210 continue
3211 else
3212 break
3213 fi
3214 ;;
3215 none) break ;;
3216 esac
3217 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3218 # mode. It turns out that the SunPro C++ compiler does not properly
3219 # handle `-M -o', and we need to detect this.
3220 if depmode=$depmode \
3221 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3222 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3223 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3224 >/dev/null 2>conftest.err &&
3225 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3226 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3227 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3228 # icc doesn't choke on unknown options, it will just issue warnings
3229 # or remarks (even with -Werror). So we grep stderr for any message
3230 # that says an option was ignored or not supported.
3231 # When given -MP, icc 7.0 and 7.1 complain thusly:
3232 # icc: Command line warning: ignoring option '-M'; no argument required
3233 # The diagnosis changed in icc 8.0:
3234 # icc: Command line remark: option '-MP' not supported
3235 if (grep 'ignoring option' conftest.err ||
3236 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3237 am_cv_CC_dependencies_compiler_type=$depmode
3238 break
3239 fi
3240 fi
3241 done
3242
3243 cd ..
3244 rm -rf conftest.dir
252b5132 3245else
42ecbf5e 3246 am_cv_CC_dependencies_compiler_type=none
252b5132
RH
3247fi
3248
252b5132 3249fi
42ecbf5e
DJ
3250echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3251echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3252CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3253
3254
252b5132 3255
42ecbf5e
DJ
3256if
3257 test "x$enable_dependency_tracking" != xno \
3258 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3259 am__fastdepCC_TRUE=
3260 am__fastdepCC_FALSE='#'
252b5132 3261else
42ecbf5e
DJ
3262 am__fastdepCC_TRUE='#'
3263 am__fastdepCC_FALSE=
252b5132
RH
3264fi
3265
3266
3267
42ecbf5e 3268
d45dc31f
SE
3269ac_ext=c
3270ac_cpp='$CPP $CPPFLAGS'
3271ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3272ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3273ac_compiler_gnu=$ac_cv_c_compiler_gnu
3274if test -n "$ac_tool_prefix"; then
3275 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3276set dummy ${ac_tool_prefix}gcc; ac_word=$2
3277echo "$as_me:$LINENO: checking for $ac_word" >&5
3278echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3279if test "${ac_cv_prog_CC+set}" = set; then
3280 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3281else
d45dc31f
SE
3282 if test -n "$CC"; then
3283 ac_cv_prog_CC="$CC" # Let the user override the test.
1a09a22c 3284else
d45dc31f
SE
3285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3286for as_dir in $PATH
3287do
3288 IFS=$as_save_IFS
3289 test -z "$as_dir" && as_dir=.
3290 for ac_exec_ext in '' $ac_executable_extensions; do
3291 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3292 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3294 break 2
3295 fi
3296done
3297done
ceae3e33 3298
d45dc31f
SE
3299fi
3300fi
3301CC=$ac_cv_prog_CC
3302if test -n "$CC"; then
3303 echo "$as_me:$LINENO: result: $CC" >&5
3304echo "${ECHO_T}$CC" >&6
252b5132 3305else
d45dc31f
SE
3306 echo "$as_me:$LINENO: result: no" >&5
3307echo "${ECHO_T}no" >&6
252b5132 3308fi
d45dc31f
SE
3309
3310fi
3311if test -z "$ac_cv_prog_CC"; then
3312 ac_ct_CC=$CC
3313 # Extract the first word of "gcc", so it can be a program name with args.
3314set dummy gcc; ac_word=$2
3315echo "$as_me:$LINENO: checking for $ac_word" >&5
3316echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3317if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
42ecbf5e 3318 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3319else
d45dc31f
SE
3320 if test -n "$ac_ct_CC"; then
3321 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
252b5132 3322else
d45dc31f
SE
3323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3324for as_dir in $PATH
3325do
3326 IFS=$as_save_IFS
3327 test -z "$as_dir" && as_dir=.
3328 for ac_exec_ext in '' $ac_executable_extensions; do
3329 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3330 ac_cv_prog_ac_ct_CC="gcc"
3331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3332 break 2
3333 fi
3334done
3335done
3336
252b5132
RH
3337fi
3338fi
d45dc31f
SE
3339ac_ct_CC=$ac_cv_prog_ac_ct_CC
3340if test -n "$ac_ct_CC"; then
3341 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3342echo "${ECHO_T}$ac_ct_CC" >&6
252b5132 3343else
42ecbf5e
DJ
3344 echo "$as_me:$LINENO: result: no" >&5
3345echo "${ECHO_T}no" >&6
252b5132 3346fi
d45dc31f
SE
3347
3348 CC=$ac_ct_CC
3349else
3350 CC="$ac_cv_prog_CC"
3351fi
3352
3353if test -z "$CC"; then
3354 if test -n "$ac_tool_prefix"; then
3355 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3356set dummy ${ac_tool_prefix}cc; ac_word=$2
3357echo "$as_me:$LINENO: checking for $ac_word" >&5
3358echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3359if test "${ac_cv_prog_CC+set}" = set; then
42ecbf5e 3360 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3361else
d45dc31f
SE
3362 if test -n "$CC"; then
3363 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 3364else
d45dc31f
SE
3365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3366for as_dir in $PATH
3367do
3368 IFS=$as_save_IFS
3369 test -z "$as_dir" && as_dir=.
3370 for ac_exec_ext in '' $ac_executable_extensions; do
3371 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3372 ac_cv_prog_CC="${ac_tool_prefix}cc"
3373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3374 break 2
3375 fi
3376done
3377done
3378
252b5132
RH
3379fi
3380fi
d45dc31f
SE
3381CC=$ac_cv_prog_CC
3382if test -n "$CC"; then
3383 echo "$as_me:$LINENO: result: $CC" >&5
3384echo "${ECHO_T}$CC" >&6
ac48eca1 3385else
d45dc31f
SE
3386 echo "$as_me:$LINENO: result: no" >&5
3387echo "${ECHO_T}no" >&6
ac48eca1 3388fi
ac48eca1 3389
d45dc31f
SE
3390fi
3391if test -z "$ac_cv_prog_CC"; then
3392 ac_ct_CC=$CC
3393 # Extract the first word of "cc", so it can be a program name with args.
3394set dummy cc; ac_word=$2
3395echo "$as_me:$LINENO: checking for $ac_word" >&5
3396echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3397if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
42ecbf5e 3398 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3399else
d45dc31f
SE
3400 if test -n "$ac_ct_CC"; then
3401 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
252b5132 3402else
d45dc31f
SE
3403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3404for as_dir in $PATH
3405do
3406 IFS=$as_save_IFS
3407 test -z "$as_dir" && as_dir=.
3408 for ac_exec_ext in '' $ac_executable_extensions; do
3409 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3410 ac_cv_prog_ac_ct_CC="cc"
3411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3412 break 2
3413 fi
3414done
3415done
3416
252b5132 3417fi
d45dc31f
SE
3418fi
3419ac_ct_CC=$ac_cv_prog_ac_ct_CC
3420if test -n "$ac_ct_CC"; then
3421 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3422echo "${ECHO_T}$ac_ct_CC" >&6
3423else
3424 echo "$as_me:$LINENO: result: no" >&5
3425echo "${ECHO_T}no" >&6
252b5132
RH
3426fi
3427
d45dc31f
SE
3428 CC=$ac_ct_CC
3429else
3430 CC="$ac_cv_prog_CC"
3431fi
252b5132 3432
d45dc31f
SE
3433fi
3434if test -z "$CC"; then
3435 # Extract the first word of "cc", so it can be a program name with args.
3436set dummy cc; ac_word=$2
3437echo "$as_me:$LINENO: checking for $ac_word" >&5
3438echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3439if test "${ac_cv_prog_CC+set}" = set; then
3440 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3441else
d45dc31f
SE
3442 if test -n "$CC"; then
3443 ac_cv_prog_CC="$CC" # Let the user override the test.
3444else
3445 ac_prog_rejected=no
3446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3447for as_dir in $PATH
3448do
3449 IFS=$as_save_IFS
3450 test -z "$as_dir" && as_dir=.
3451 for ac_exec_ext in '' $ac_executable_extensions; do
3452 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3453 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3454 ac_prog_rejected=yes
3455 continue
3456 fi
3457 ac_cv_prog_CC="cc"
3458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3459 break 2
3460 fi
3461done
3462done
3463
3464if test $ac_prog_rejected = yes; then
3465 # We found a bogon in the path, so make sure we never use it.
3466 set dummy $ac_cv_prog_CC
3467 shift
3468 if test $# != 0; then
3469 # We chose a different compiler from the bogus one.
3470 # However, it has the same basename, so the bogon will be chosen
3471 # first if we set CC to just the basename; use the full file name.
3472 shift
3473 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3474 fi
3475fi
3476fi
3477fi
3478CC=$ac_cv_prog_CC
3479if test -n "$CC"; then
3480 echo "$as_me:$LINENO: result: $CC" >&5
3481echo "${ECHO_T}$CC" >&6
3482else
3483 echo "$as_me:$LINENO: result: no" >&5
3484echo "${ECHO_T}no" >&6
252b5132
RH
3485fi
3486
d45dc31f
SE
3487fi
3488if test -z "$CC"; then
3489 if test -n "$ac_tool_prefix"; then
3490 for ac_prog in cl
3491 do
3492 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3493set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3494echo "$as_me:$LINENO: checking for $ac_word" >&5
3495echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3496if test "${ac_cv_prog_CC+set}" = set; then
42ecbf5e 3497 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3498else
d45dc31f
SE
3499 if test -n "$CC"; then
3500 ac_cv_prog_CC="$CC" # Let the user override the test.
3501else
3502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3503for as_dir in $PATH
3504do
3505 IFS=$as_save_IFS
3506 test -z "$as_dir" && as_dir=.
3507 for ac_exec_ext in '' $ac_executable_extensions; do
3508 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3509 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3511 break 2
3512 fi
3513done
3514done
ac48eca1 3515
d45dc31f
SE
3516fi
3517fi
3518CC=$ac_cv_prog_CC
3519if test -n "$CC"; then
3520 echo "$as_me:$LINENO: result: $CC" >&5
3521echo "${ECHO_T}$CC" >&6
3522else
3523 echo "$as_me:$LINENO: result: no" >&5
3524echo "${ECHO_T}no" >&6
3525fi
ac48eca1 3526
d45dc31f
SE
3527 test -n "$CC" && break
3528 done
3529fi
3530if test -z "$CC"; then
3531 ac_ct_CC=$CC
3532 for ac_prog in cl
3533do
3534 # Extract the first word of "$ac_prog", so it can be a program name with args.
3535set dummy $ac_prog; ac_word=$2
3536echo "$as_me:$LINENO: checking for $ac_word" >&5
3537echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3538if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3539 echo $ECHO_N "(cached) $ECHO_C" >&6
3540else
3541 if test -n "$ac_ct_CC"; then
3542 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3543else
3544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3545for as_dir in $PATH
3546do
3547 IFS=$as_save_IFS
3548 test -z "$as_dir" && as_dir=.
3549 for ac_exec_ext in '' $ac_executable_extensions; do
3550 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3551 ac_cv_prog_ac_ct_CC="$ac_prog"
3552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3553 break 2
3554 fi
3555done
3556done
ac48eca1 3557
d45dc31f
SE
3558fi
3559fi
3560ac_ct_CC=$ac_cv_prog_ac_ct_CC
3561if test -n "$ac_ct_CC"; then
3562 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3563echo "${ECHO_T}$ac_ct_CC" >&6
3564else
3565 echo "$as_me:$LINENO: result: no" >&5
3566echo "${ECHO_T}no" >&6
3567fi
ac48eca1 3568
d45dc31f
SE
3569 test -n "$ac_ct_CC" && break
3570done
ac48eca1 3571
d45dc31f
SE
3572 CC=$ac_ct_CC
3573fi
ac48eca1
AO
3574
3575fi
ac48eca1 3576
ac48eca1 3577
7a283e07
RW
3578test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3579echo "$as_me: error: in \`$ac_pwd':" >&2;}
3580{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
d45dc31f
SE
3581See \`config.log' for more details." >&5
3582echo "$as_me: error: no acceptable C compiler found in \$PATH
3583See \`config.log' for more details." >&2;}
7a283e07 3584 { (exit 1); exit 1; }; }; }
ac48eca1 3585
d45dc31f
SE
3586# Provide some information about the compiler.
3587echo "$as_me:$LINENO:" \
3588 "checking for C compiler version" >&5
3589ac_compiler=`set X $ac_compile; echo $2`
3590{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3591 (eval $ac_compiler --version </dev/null >&5) 2>&5
3592 ac_status=$?
3593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594 (exit $ac_status); }
3595{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3596 (eval $ac_compiler -v </dev/null >&5) 2>&5
3597 ac_status=$?
3598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599 (exit $ac_status); }
3600{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3601 (eval $ac_compiler -V </dev/null >&5) 2>&5
3602 ac_status=$?
3603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604 (exit $ac_status); }
ac48eca1 3605
d45dc31f
SE
3606echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3607echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3608if test "${ac_cv_c_compiler_gnu+set}" = set; then
bdcfeba5
NC
3609 echo $ECHO_N "(cached) $ECHO_C" >&6
3610else
d45dc31f
SE
3611 cat >conftest.$ac_ext <<_ACEOF
3612/* confdefs.h. */
3613_ACEOF
3614cat confdefs.h >>conftest.$ac_ext
3615cat >>conftest.$ac_ext <<_ACEOF
3616/* end confdefs.h. */
bdcfeba5 3617
d45dc31f
SE
3618int
3619main ()
3620{
3621#ifndef __GNUC__
3622 choke me
3623#endif
bdcfeba5 3624
d45dc31f
SE
3625 ;
3626 return 0;
3627}
3628_ACEOF
3629rm -f conftest.$ac_objext
3630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3631 (eval $ac_compile) 2>conftest.er1
3632 ac_status=$?
3633 grep -v '^ *+' conftest.er1 >conftest.err
3634 rm -f conftest.er1
3635 cat conftest.err >&5
3636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3637 (exit $ac_status); } &&
7357c5b6
AM
3638 { ac_try='test -z "$ac_c_werror_flag"
3639 || test ! -s conftest.err'
d45dc31f
SE
3640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3641 (eval $ac_try) 2>&5
3642 ac_status=$?
3643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3644 (exit $ac_status); }; } &&
3645 { ac_try='test -s conftest.$ac_objext'
3646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3647 (eval $ac_try) 2>&5
3648 ac_status=$?
3649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650 (exit $ac_status); }; }; then
3651 ac_compiler_gnu=yes
3652else
3653 echo "$as_me: failed program was:" >&5
3654sed 's/^/| /' conftest.$ac_ext >&5
bdcfeba5 3655
d45dc31f 3656ac_compiler_gnu=no
bdcfeba5 3657fi
d45dc31f
SE
3658rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3659ac_cv_c_compiler_gnu=$ac_compiler_gnu
bdcfeba5 3660
bdcfeba5 3661fi
d45dc31f
SE
3662echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3663echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3664GCC=`test $ac_compiler_gnu = yes && echo yes`
3665ac_test_CFLAGS=${CFLAGS+set}
3666ac_save_CFLAGS=$CFLAGS
3667CFLAGS="-g"
3668echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3669echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3670if test "${ac_cv_prog_cc_g+set}" = set; then
42ecbf5e 3671 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3672else
d45dc31f
SE
3673 cat >conftest.$ac_ext <<_ACEOF
3674/* confdefs.h. */
3675_ACEOF
3676cat confdefs.h >>conftest.$ac_ext
3677cat >>conftest.$ac_ext <<_ACEOF
3678/* end confdefs.h. */
ac48eca1 3679
d45dc31f
SE
3680int
3681main ()
3682{
ac48eca1 3683
d45dc31f
SE
3684 ;
3685 return 0;
3686}
3687_ACEOF
3688rm -f conftest.$ac_objext
3689if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3690 (eval $ac_compile) 2>conftest.er1
3691 ac_status=$?
3692 grep -v '^ *+' conftest.er1 >conftest.err
3693 rm -f conftest.er1
3694 cat conftest.err >&5
3695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696 (exit $ac_status); } &&
7357c5b6
AM
3697 { ac_try='test -z "$ac_c_werror_flag"
3698 || test ! -s conftest.err'
d45dc31f
SE
3699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3700 (eval $ac_try) 2>&5
3701 ac_status=$?
3702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703 (exit $ac_status); }; } &&
3704 { ac_try='test -s conftest.$ac_objext'
3705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3706 (eval $ac_try) 2>&5
3707 ac_status=$?
3708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709 (exit $ac_status); }; }; then
3710 ac_cv_prog_cc_g=yes
ac48eca1 3711else
d45dc31f
SE
3712 echo "$as_me: failed program was:" >&5
3713sed 's/^/| /' conftest.$ac_ext >&5
ac48eca1 3714
d45dc31f 3715ac_cv_prog_cc_g=no
ac48eca1 3716fi
d45dc31f 3717rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ac48eca1 3718fi
d45dc31f
SE
3719echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3720echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3721if test "$ac_test_CFLAGS" = set; then
3722 CFLAGS=$ac_save_CFLAGS
3723elif test $ac_cv_prog_cc_g = yes; then
3724 if test "$GCC" = yes; then
3725 CFLAGS="-g -O2"
ac48eca1 3726 else
d45dc31f 3727 CFLAGS="-g"
42ecbf5e 3728 fi
ac48eca1 3729else
d45dc31f
SE
3730 if test "$GCC" = yes; then
3731 CFLAGS="-O2"
3732 else
3733 CFLAGS=
42ecbf5e 3734 fi
ac48eca1 3735fi
d45dc31f
SE
3736echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3737echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3738if test "${ac_cv_prog_cc_stdc+set}" = set; then
3739 echo $ECHO_N "(cached) $ECHO_C" >&6
3740else
3741 ac_cv_prog_cc_stdc=no
3742ac_save_CC=$CC
3743cat >conftest.$ac_ext <<_ACEOF
42ecbf5e
DJ
3744/* confdefs.h. */
3745_ACEOF
3746cat confdefs.h >>conftest.$ac_ext
3747cat >>conftest.$ac_ext <<_ACEOF
3748/* end confdefs.h. */
d45dc31f
SE
3749#include <stdarg.h>
3750#include <stdio.h>
3751#include <sys/types.h>
3752#include <sys/stat.h>
3753/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3754struct buf { int x; };
3755FILE * (*rcsopen) (struct buf *, struct stat *, int);
3756static char *e (p, i)
3757 char **p;
3758 int i;
3759{
3760 return p[i];
3761}
3762static char *f (char * (*g) (char **, int), char **p, ...)
3763{
3764 char *s;
3765 va_list v;
3766 va_start (v,p);
3767 s = g (p, va_arg (v,int));
3768 va_end (v);
3769 return s;
3770}
3771
3772/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3773 function prototypes and stuff, but not '\xHH' hex character constants.
3774 These don't provoke an error unfortunately, instead are silently treated
3775 as 'x'. The following induces an error, until -std1 is added to get
3776 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3777 array size at least. It's necessary to write '\x00'==0 to get something
3778 that's true only with -std1. */
3779int osf4_cc_array ['\x00' == 0 ? 1 : -1];
252b5132 3780
d45dc31f
SE
3781int test (int i, double x);
3782struct s1 {int (*f) (int a);};
3783struct s2 {int (*f) (double a);};
3784int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3785int argc;
3786char **argv;
42ecbf5e
DJ
3787int
3788main ()
3789{
d45dc31f 3790return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
42ecbf5e
DJ
3791 ;
3792 return 0;
3793}
3794_ACEOF
d45dc31f
SE
3795# Don't try gcc -ansi; that turns off useful extensions and
3796# breaks some systems' header files.
3797# AIX -qlanglvl=ansi
3798# Ultrix and OSF/1 -std1
3799# HP-UX 10.20 and later -Ae
3800# HP-UX older versions -Aa -D_HPUX_SOURCE
3801# SVR4 -Xc -D__EXTENSIONS__
3802for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3803do
3804 CC="$ac_save_CC $ac_arg"
3805 rm -f conftest.$ac_objext
3806if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3807 (eval $ac_compile) 2>conftest.er1
42ecbf5e
DJ
3808 ac_status=$?
3809 grep -v '^ *+' conftest.er1 >conftest.err
3810 rm -f conftest.er1
3811 cat conftest.err >&5
3812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813 (exit $ac_status); } &&
7357c5b6
AM
3814 { ac_try='test -z "$ac_c_werror_flag"
3815 || test ! -s conftest.err'
42ecbf5e
DJ
3816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3817 (eval $ac_try) 2>&5
3818 ac_status=$?
3819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820 (exit $ac_status); }; } &&
d45dc31f 3821 { ac_try='test -s conftest.$ac_objext'
42ecbf5e
DJ
3822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3823 (eval $ac_try) 2>&5
3824 ac_status=$?
3825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826 (exit $ac_status); }; }; then
d45dc31f
SE
3827 ac_cv_prog_cc_stdc=$ac_arg
3828break
252b5132 3829else
42ecbf5e
DJ
3830 echo "$as_me: failed program was:" >&5
3831sed 's/^/| /' conftest.$ac_ext >&5
3832
252b5132 3833fi
d45dc31f
SE
3834rm -f conftest.err conftest.$ac_objext
3835done
3836rm -f conftest.$ac_ext conftest.$ac_objext
3837CC=$ac_save_CC
ac48eca1 3838
252b5132 3839fi
252b5132 3840
d45dc31f
SE
3841case "x$ac_cv_prog_cc_stdc" in
3842 x|xno)
3843 echo "$as_me:$LINENO: result: none needed" >&5
3844echo "${ECHO_T}none needed" >&6 ;;
3845 *)
3846 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3847echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3848 CC="$CC $ac_cv_prog_cc_stdc" ;;
252b5132
RH
3849esac
3850
d45dc31f
SE
3851# Some people use a C++ compiler to compile C. Since we use `exit',
3852# in C++ we need to declare it. In case someone uses the same compiler
3853# for both compiling C and C++ we need to have the C++ compiler decide
3854# the declaration of exit, since it's the most demanding environment.
3855cat >conftest.$ac_ext <<_ACEOF
3856#ifndef __cplusplus
3857 choke me
3858#endif
42ecbf5e 3859_ACEOF
d45dc31f
SE
3860rm -f conftest.$ac_objext
3861if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3862 (eval $ac_compile) 2>conftest.er1
3863 ac_status=$?
3864 grep -v '^ *+' conftest.er1 >conftest.err
3865 rm -f conftest.er1
3866 cat conftest.err >&5
3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868 (exit $ac_status); } &&
7357c5b6
AM
3869 { ac_try='test -z "$ac_c_werror_flag"
3870 || test ! -s conftest.err'
d45dc31f
SE
3871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3872 (eval $ac_try) 2>&5
3873 ac_status=$?
3874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875 (exit $ac_status); }; } &&
3876 { ac_try='test -s conftest.$ac_objext'
3877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3878 (eval $ac_try) 2>&5
3879 ac_status=$?
3880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3881 (exit $ac_status); }; }; then
3882 for ac_declaration in \
3883 '' \
3884 'extern "C" void std::exit (int) throw (); using std::exit;' \
3885 'extern "C" void std::exit (int); using std::exit;' \
3886 'extern "C" void exit (int) throw ();' \
3887 'extern "C" void exit (int);' \
3888 'void exit (int);'
3889do
3890 cat >conftest.$ac_ext <<_ACEOF
3891/* confdefs.h. */
3892_ACEOF
3893cat confdefs.h >>conftest.$ac_ext
3894cat >>conftest.$ac_ext <<_ACEOF
3895/* end confdefs.h. */
3896$ac_declaration
3897#include <stdlib.h>
3898int
3899main ()
42ecbf5e 3900{
d45dc31f
SE
3901exit (42);
3902 ;
3903 return 0;
3904}
3905_ACEOF
3906rm -f conftest.$ac_objext
3907if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3908 (eval $ac_compile) 2>conftest.er1
3909 ac_status=$?
3910 grep -v '^ *+' conftest.er1 >conftest.err
3911 rm -f conftest.er1
3912 cat conftest.err >&5
3913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3914 (exit $ac_status); } &&
7357c5b6
AM
3915 { ac_try='test -z "$ac_c_werror_flag"
3916 || test ! -s conftest.err'
d45dc31f
SE
3917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3918 (eval $ac_try) 2>&5
3919 ac_status=$?
3920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921 (exit $ac_status); }; } &&
3922 { ac_try='test -s conftest.$ac_objext'
3923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3924 (eval $ac_try) 2>&5
3925 ac_status=$?
3926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927 (exit $ac_status); }; }; then
3928 :
3929else
3930 echo "$as_me: failed program was:" >&5
3931sed 's/^/| /' conftest.$ac_ext >&5
252b5132 3932
d45dc31f
SE
3933continue
3934fi
3935rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3936 cat >conftest.$ac_ext <<_ACEOF
3937/* confdefs.h. */
3938_ACEOF
3939cat confdefs.h >>conftest.$ac_ext
3940cat >>conftest.$ac_ext <<_ACEOF
3941/* end confdefs.h. */
3942$ac_declaration
3943int
3944main ()
3945{
3946exit (42);
3947 ;
3948 return 0;
3949}
3950_ACEOF
3951rm -f conftest.$ac_objext
3952if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3953 (eval $ac_compile) 2>conftest.er1
3954 ac_status=$?
3955 grep -v '^ *+' conftest.er1 >conftest.err
3956 rm -f conftest.er1
3957 cat conftest.err >&5
3958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959 (exit $ac_status); } &&
7357c5b6
AM
3960 { ac_try='test -z "$ac_c_werror_flag"
3961 || test ! -s conftest.err'
d45dc31f
SE
3962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3963 (eval $ac_try) 2>&5
3964 ac_status=$?
3965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3966 (exit $ac_status); }; } &&
3967 { ac_try='test -s conftest.$ac_objext'
3968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3969 (eval $ac_try) 2>&5
3970 ac_status=$?
3971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972 (exit $ac_status); }; }; then
3973 break
3974else
3975 echo "$as_me: failed program was:" >&5
3976sed 's/^/| /' conftest.$ac_ext >&5
252b5132 3977
d45dc31f
SE
3978fi
3979rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3980done
3981rm -f conftest*
3982if test -n "$ac_declaration"; then
3983 echo '#ifdef __cplusplus' >>confdefs.h
3984 echo $ac_declaration >>confdefs.h
3985 echo '#endif' >>confdefs.h
3986fi
ac48eca1 3987
d45dc31f
SE
3988else
3989 echo "$as_me: failed program was:" >&5
3990sed 's/^/| /' conftest.$ac_ext >&5
42ecbf5e 3991
d45dc31f
SE
3992fi
3993rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3994ac_ext=c
3995ac_cpp='$CPP $CPPFLAGS'
3996ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3997ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3998ac_compiler_gnu=$ac_cv_c_compiler_gnu
42ecbf5e
DJ
3999
4000
d45dc31f
SE
4001cat >>confdefs.h <<\_ACEOF
4002#define _GNU_SOURCE 1
4003_ACEOF
42ecbf5e 4004
ac48eca1 4005
7357c5b6
AM
4006ac_ext=c
4007ac_cpp='$CPP $CPPFLAGS'
4008ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4009ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4010ac_compiler_gnu=$ac_cv_c_compiler_gnu
4011echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4012echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4013# On Suns, sometimes $CPP names a directory.
4014if test -n "$CPP" && test -d "$CPP"; then
4015 CPP=
4016fi
4017if test -z "$CPP"; then
4018 if test "${ac_cv_prog_CPP+set}" = set; then
4019 echo $ECHO_N "(cached) $ECHO_C" >&6
4020else
4021 # Double quotes because CPP needs to be expanded
4022 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4023 do
4024 ac_preproc_ok=false
4025for ac_c_preproc_warn_flag in '' yes
4026do
4027 # Use a header file that comes with gcc, so configuring glibc
4028 # with a fresh cross-compiler works.
4029 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4030 # <limits.h> exists even on freestanding compilers.
4031 # On the NeXT, cc -E runs the code through the compiler's parser,
4032 # not just through cpp. "Syntax error" is here to catch this case.
4033 cat >conftest.$ac_ext <<_ACEOF
4034/* confdefs.h. */
4035_ACEOF
4036cat confdefs.h >>conftest.$ac_ext
4037cat >>conftest.$ac_ext <<_ACEOF
4038/* end confdefs.h. */
4039#ifdef __STDC__
4040# include <limits.h>
4041#else
4042# include <assert.h>
4043#endif
4044 Syntax error
4045_ACEOF
4046if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4047 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4048 ac_status=$?
4049 grep -v '^ *+' conftest.er1 >conftest.err
4050 rm -f conftest.er1
4051 cat conftest.err >&5
4052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053 (exit $ac_status); } >/dev/null; then
4054 if test -s conftest.err; then
4055 ac_cpp_err=$ac_c_preproc_warn_flag
4056 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4057 else
4058 ac_cpp_err=
4059 fi
4060else
4061 ac_cpp_err=yes
4062fi
4063if test -z "$ac_cpp_err"; then
4064 :
4065else
4066 echo "$as_me: failed program was:" >&5
4067sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4068
7357c5b6
AM
4069 # Broken: fails on valid input.
4070continue
4071fi
4072rm -f conftest.err conftest.$ac_ext
d7040cdb 4073
7357c5b6
AM
4074 # OK, works on sane cases. Now check whether non-existent headers
4075 # can be detected and how.
4076 cat >conftest.$ac_ext <<_ACEOF
4077/* confdefs.h. */
4078_ACEOF
4079cat confdefs.h >>conftest.$ac_ext
4080cat >>conftest.$ac_ext <<_ACEOF
4081/* end confdefs.h. */
4082#include <ac_nonexistent.h>
4083_ACEOF
4084if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4085 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4086 ac_status=$?
4087 grep -v '^ *+' conftest.er1 >conftest.err
4088 rm -f conftest.er1
4089 cat conftest.err >&5
4090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091 (exit $ac_status); } >/dev/null; then
4092 if test -s conftest.err; then
4093 ac_cpp_err=$ac_c_preproc_warn_flag
4094 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4095 else
4096 ac_cpp_err=
4097 fi
4098else
4099 ac_cpp_err=yes
4100fi
4101if test -z "$ac_cpp_err"; then
4102 # Broken: success on invalid input.
4103continue
4104else
4105 echo "$as_me: failed program was:" >&5
4106sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4107
7357c5b6
AM
4108 # Passes both tests.
4109ac_preproc_ok=:
4110break
4111fi
4112rm -f conftest.err conftest.$ac_ext
d7040cdb 4113
7357c5b6
AM
4114done
4115# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4116rm -f conftest.err conftest.$ac_ext
4117if $ac_preproc_ok; then
4118 break
4119fi
d7040cdb 4120
7357c5b6
AM
4121 done
4122 ac_cv_prog_CPP=$CPP
d7040cdb 4123
7357c5b6
AM
4124fi
4125 CPP=$ac_cv_prog_CPP
4126else
4127 ac_cv_prog_CPP=$CPP
4128fi
4129echo "$as_me:$LINENO: result: $CPP" >&5
4130echo "${ECHO_T}$CPP" >&6
4131ac_preproc_ok=false
4132for ac_c_preproc_warn_flag in '' yes
4133do
4134 # Use a header file that comes with gcc, so configuring glibc
4135 # with a fresh cross-compiler works.
4136 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4137 # <limits.h> exists even on freestanding compilers.
4138 # On the NeXT, cc -E runs the code through the compiler's parser,
4139 # not just through cpp. "Syntax error" is here to catch this case.
4140 cat >conftest.$ac_ext <<_ACEOF
4141/* confdefs.h. */
4142_ACEOF
4143cat confdefs.h >>conftest.$ac_ext
4144cat >>conftest.$ac_ext <<_ACEOF
4145/* end confdefs.h. */
4146#ifdef __STDC__
4147# include <limits.h>
4148#else
4149# include <assert.h>
4150#endif
4151 Syntax error
4152_ACEOF
4153if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4154 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4155 ac_status=$?
4156 grep -v '^ *+' conftest.er1 >conftest.err
4157 rm -f conftest.er1
4158 cat conftest.err >&5
4159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160 (exit $ac_status); } >/dev/null; then
4161 if test -s conftest.err; then
4162 ac_cpp_err=$ac_c_preproc_warn_flag
4163 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4164 else
4165 ac_cpp_err=
4166 fi
4167else
4168 ac_cpp_err=yes
4169fi
4170if test -z "$ac_cpp_err"; then
4171 :
4172else
4173 echo "$as_me: failed program was:" >&5
4174sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4175
7357c5b6
AM
4176 # Broken: fails on valid input.
4177continue
4178fi
4179rm -f conftest.err conftest.$ac_ext
d7040cdb 4180
7357c5b6
AM
4181 # OK, works on sane cases. Now check whether non-existent headers
4182 # can be detected and how.
4183 cat >conftest.$ac_ext <<_ACEOF
4184/* confdefs.h. */
4185_ACEOF
4186cat confdefs.h >>conftest.$ac_ext
4187cat >>conftest.$ac_ext <<_ACEOF
4188/* end confdefs.h. */
4189#include <ac_nonexistent.h>
4190_ACEOF
4191if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4192 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4193 ac_status=$?
4194 grep -v '^ *+' conftest.er1 >conftest.err
4195 rm -f conftest.er1
4196 cat conftest.err >&5
4197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198 (exit $ac_status); } >/dev/null; then
4199 if test -s conftest.err; then
4200 ac_cpp_err=$ac_c_preproc_warn_flag
4201 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4202 else
4203 ac_cpp_err=
4204 fi
4205else
4206 ac_cpp_err=yes
4207fi
4208if test -z "$ac_cpp_err"; then
4209 # Broken: success on invalid input.
4210continue
4211else
4212 echo "$as_me: failed program was:" >&5
4213sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4214
7357c5b6
AM
4215 # Passes both tests.
4216ac_preproc_ok=:
4217break
4218fi
4219rm -f conftest.err conftest.$ac_ext
d7040cdb 4220
7357c5b6
AM
4221done
4222# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4223rm -f conftest.err conftest.$ac_ext
4224if $ac_preproc_ok; then
4225 :
4226else
4227 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4228echo "$as_me: error: in \`$ac_pwd':" >&2;}
4229{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4230See \`config.log' for more details." >&5
4231echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4232See \`config.log' for more details." >&2;}
4233 { (exit 1); exit 1; }; }; }
4234fi
d7040cdb 4235
7357c5b6
AM
4236ac_ext=c
4237ac_cpp='$CPP $CPPFLAGS'
4238ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4239ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4240ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb
SE
4241
4242
7357c5b6
AM
4243echo "$as_me:$LINENO: checking for egrep" >&5
4244echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4245if test "${ac_cv_prog_egrep+set}" = set; then
4246 echo $ECHO_N "(cached) $ECHO_C" >&6
4247else
4248 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4249 then ac_cv_prog_egrep='grep -E'
4250 else ac_cv_prog_egrep='egrep'
4251 fi
4252fi
4253echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4254echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4255 EGREP=$ac_cv_prog_egrep
d7040cdb 4256
d7040cdb 4257
7357c5b6
AM
4258echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4259echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4260if test "${ac_cv_header_stdc+set}" = set; then
4261 echo $ECHO_N "(cached) $ECHO_C" >&6
4262else
4263 cat >conftest.$ac_ext <<_ACEOF
4264/* confdefs.h. */
4265_ACEOF
4266cat confdefs.h >>conftest.$ac_ext
4267cat >>conftest.$ac_ext <<_ACEOF
4268/* end confdefs.h. */
4269#include <stdlib.h>
4270#include <stdarg.h>
4271#include <string.h>
4272#include <float.h>
d7040cdb 4273
7357c5b6
AM
4274int
4275main ()
4276{
d7040cdb 4277
7357c5b6
AM
4278 ;
4279 return 0;
4280}
4281_ACEOF
4282rm -f conftest.$ac_objext
4283if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4284 (eval $ac_compile) 2>conftest.er1
4285 ac_status=$?
4286 grep -v '^ *+' conftest.er1 >conftest.err
4287 rm -f conftest.er1
4288 cat conftest.err >&5
4289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290 (exit $ac_status); } &&
4291 { ac_try='test -z "$ac_c_werror_flag"
4292 || test ! -s conftest.err'
4293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4294 (eval $ac_try) 2>&5
4295 ac_status=$?
4296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4297 (exit $ac_status); }; } &&
4298 { ac_try='test -s conftest.$ac_objext'
4299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4300 (eval $ac_try) 2>&5
4301 ac_status=$?
4302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303 (exit $ac_status); }; }; then
4304 ac_cv_header_stdc=yes
4305else
4306 echo "$as_me: failed program was:" >&5
4307sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4308
7357c5b6
AM
4309ac_cv_header_stdc=no
4310fi
4311rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d7040cdb 4312
7357c5b6
AM
4313if test $ac_cv_header_stdc = yes; then
4314 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4315 cat >conftest.$ac_ext <<_ACEOF
4316/* confdefs.h. */
4317_ACEOF
4318cat confdefs.h >>conftest.$ac_ext
4319cat >>conftest.$ac_ext <<_ACEOF
4320/* end confdefs.h. */
4321#include <string.h>
d7040cdb 4322
7357c5b6
AM
4323_ACEOF
4324if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4325 $EGREP "memchr" >/dev/null 2>&1; then
4326 :
d45dc31f 4327else
7357c5b6
AM
4328 ac_cv_header_stdc=no
4329fi
4330rm -f conftest*
d7040cdb 4331
7357c5b6 4332fi
d7040cdb 4333
7357c5b6
AM
4334if test $ac_cv_header_stdc = yes; then
4335 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4336 cat >conftest.$ac_ext <<_ACEOF
4337/* confdefs.h. */
4338_ACEOF
4339cat confdefs.h >>conftest.$ac_ext
4340cat >>conftest.$ac_ext <<_ACEOF
4341/* end confdefs.h. */
4342#include <stdlib.h>
d7040cdb 4343
7357c5b6
AM
4344_ACEOF
4345if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4346 $EGREP "free" >/dev/null 2>&1; then
4347 :
4348else
4349 ac_cv_header_stdc=no
4350fi
4351rm -f conftest*
d7040cdb 4352
7357c5b6 4353fi
d7040cdb 4354
7357c5b6
AM
4355if test $ac_cv_header_stdc = yes; then
4356 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4357 if test "$cross_compiling" = yes; then
4358 :
4359else
4360 cat >conftest.$ac_ext <<_ACEOF
4361/* confdefs.h. */
4362_ACEOF
4363cat confdefs.h >>conftest.$ac_ext
4364cat >>conftest.$ac_ext <<_ACEOF
4365/* end confdefs.h. */
4366#include <ctype.h>
4367#if ((' ' & 0x0FF) == 0x020)
4368# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4369# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4370#else
4371# define ISLOWER(c) \
4372 (('a' <= (c) && (c) <= 'i') \
4373 || ('j' <= (c) && (c) <= 'r') \
4374 || ('s' <= (c) && (c) <= 'z'))
4375# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4376#endif
d7040cdb 4377
7357c5b6
AM
4378#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4379int
4380main ()
4381{
4382 int i;
4383 for (i = 0; i < 256; i++)
4384 if (XOR (islower (i), ISLOWER (i))
4385 || toupper (i) != TOUPPER (i))
4386 exit(2);
4387 exit (0);
4388}
4389_ACEOF
4390rm -f conftest$ac_exeext
4391if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4392 (eval $ac_link) 2>&5
4393 ac_status=$?
4394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4397 (eval $ac_try) 2>&5
4398 ac_status=$?
4399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400 (exit $ac_status); }; }; then
4401 :
4402else
4403 echo "$as_me: program exited with status $ac_status" >&5
4404echo "$as_me: failed program was:" >&5
4405sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4406
7357c5b6
AM
4407( exit $ac_status )
4408ac_cv_header_stdc=no
4409fi
4410rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4411fi
4412fi
4413fi
4414echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4415echo "${ECHO_T}$ac_cv_header_stdc" >&6
4416if test $ac_cv_header_stdc = yes; then
d7040cdb 4417
7357c5b6
AM
4418cat >>confdefs.h <<\_ACEOF
4419#define STDC_HEADERS 1
4420_ACEOF
d7040cdb 4421
7357c5b6 4422fi
d7040cdb 4423
7357c5b6 4424# On IRIX 5.3, sys/types and inttypes.h are conflicting.
d7040cdb
SE
4425
4426
4427
4428
4429
4430
4431
d7040cdb 4432
d7040cdb 4433
7357c5b6
AM
4434for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4435 inttypes.h stdint.h unistd.h
4436do
4437as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4438echo "$as_me:$LINENO: checking for $ac_header" >&5
4439echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4440if eval "test \"\${$as_ac_Header+set}\" = set"; then
4441 echo $ECHO_N "(cached) $ECHO_C" >&6
4442else
4443 cat >conftest.$ac_ext <<_ACEOF
4444/* confdefs.h. */
4445_ACEOF
4446cat confdefs.h >>conftest.$ac_ext
4447cat >>conftest.$ac_ext <<_ACEOF
4448/* end confdefs.h. */
4449$ac_includes_default
d7040cdb 4450
7357c5b6
AM
4451#include <$ac_header>
4452_ACEOF
4453rm -f conftest.$ac_objext
4454if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4455 (eval $ac_compile) 2>conftest.er1
4456 ac_status=$?
4457 grep -v '^ *+' conftest.er1 >conftest.err
4458 rm -f conftest.er1
4459 cat conftest.err >&5
4460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461 (exit $ac_status); } &&
4462 { ac_try='test -z "$ac_c_werror_flag"
4463 || test ! -s conftest.err'
4464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4465 (eval $ac_try) 2>&5
4466 ac_status=$?
4467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468 (exit $ac_status); }; } &&
4469 { ac_try='test -s conftest.$ac_objext'
4470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4471 (eval $ac_try) 2>&5
4472 ac_status=$?
4473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474 (exit $ac_status); }; }; then
4475 eval "$as_ac_Header=yes"
4476else
4477 echo "$as_me: failed program was:" >&5
4478sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4479
7357c5b6
AM
4480eval "$as_ac_Header=no"
4481fi
4482rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4483fi
4484echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4485echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4486if test `eval echo '${'$as_ac_Header'}'` = yes; then
4487 cat >>confdefs.h <<_ACEOF
4488#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4489_ACEOF
d7040cdb 4490
7357c5b6 4491fi
d7040cdb 4492
7357c5b6 4493done
d7040cdb
SE
4494
4495
4496
7357c5b6
AM
4497 if test "${ac_cv_header_minix_config_h+set}" = set; then
4498 echo "$as_me:$LINENO: checking for minix/config.h" >&5
4499echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4500if test "${ac_cv_header_minix_config_h+set}" = set; then
4501 echo $ECHO_N "(cached) $ECHO_C" >&6
4502fi
4503echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4504echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4505else
4506 # Is the header compilable?
4507echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4508echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
4509cat >conftest.$ac_ext <<_ACEOF
4510/* confdefs.h. */
4511_ACEOF
4512cat confdefs.h >>conftest.$ac_ext
4513cat >>conftest.$ac_ext <<_ACEOF
4514/* end confdefs.h. */
4515$ac_includes_default
4516#include <minix/config.h>
4517_ACEOF
4518rm -f conftest.$ac_objext
4519if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4520 (eval $ac_compile) 2>conftest.er1
4521 ac_status=$?
4522 grep -v '^ *+' conftest.er1 >conftest.err
4523 rm -f conftest.er1
4524 cat conftest.err >&5
4525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526 (exit $ac_status); } &&
4527 { ac_try='test -z "$ac_c_werror_flag"
4528 || test ! -s conftest.err'
4529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4530 (eval $ac_try) 2>&5
4531 ac_status=$?
4532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533 (exit $ac_status); }; } &&
4534 { ac_try='test -s conftest.$ac_objext'
4535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4536 (eval $ac_try) 2>&5
4537 ac_status=$?
4538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539 (exit $ac_status); }; }; then
4540 ac_header_compiler=yes
4541else
4542 echo "$as_me: failed program was:" >&5
4543sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4544
7357c5b6
AM
4545ac_header_compiler=no
4546fi
4547rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4548echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4549echo "${ECHO_T}$ac_header_compiler" >&6
d7040cdb 4550
7357c5b6
AM
4551# Is the header present?
4552echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4553echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
4554cat >conftest.$ac_ext <<_ACEOF
4555/* confdefs.h. */
4556_ACEOF
4557cat confdefs.h >>conftest.$ac_ext
4558cat >>conftest.$ac_ext <<_ACEOF
4559/* end confdefs.h. */
4560#include <minix/config.h>
4561_ACEOF
4562if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4563 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4564 ac_status=$?
4565 grep -v '^ *+' conftest.er1 >conftest.err
4566 rm -f conftest.er1
4567 cat conftest.err >&5
4568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569 (exit $ac_status); } >/dev/null; then
4570 if test -s conftest.err; then
4571 ac_cpp_err=$ac_c_preproc_warn_flag
4572 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4573 else
4574 ac_cpp_err=
4575 fi
4576else
4577 ac_cpp_err=yes
4578fi
4579if test -z "$ac_cpp_err"; then
4580 ac_header_preproc=yes
4581else
4582 echo "$as_me: failed program was:" >&5
4583sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4584
7357c5b6
AM
4585 ac_header_preproc=no
4586fi
4587rm -f conftest.err conftest.$ac_ext
4588echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4589echo "${ECHO_T}$ac_header_preproc" >&6
d7040cdb 4590
7357c5b6
AM
4591# So? What about this header?
4592case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4593 yes:no: )
4594 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4595echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4596 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4597echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4598 ac_header_preproc=yes
4599 ;;
4600 no:yes:* )
4601 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4602echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4603 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4604echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4605 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4606echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4607 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4608echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4609 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4610echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4611 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4612echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4613 (
4614 cat <<\_ASBOX
4615## ------------------------------------------ ##
4616## Report this to the AC_PACKAGE_NAME lists. ##
4617## ------------------------------------------ ##
4618_ASBOX
4619 ) |
4620 sed "s/^/$as_me: WARNING: /" >&2
4621 ;;
4622esac
4623echo "$as_me:$LINENO: checking for minix/config.h" >&5
4624echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4625if test "${ac_cv_header_minix_config_h+set}" = set; then
d7040cdb
SE
4626 echo $ECHO_N "(cached) $ECHO_C" >&6
4627else
7357c5b6 4628 ac_cv_header_minix_config_h=$ac_header_preproc
d7040cdb 4629fi
7357c5b6
AM
4630echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4631echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
d7040cdb 4632
7357c5b6
AM
4633fi
4634if test $ac_cv_header_minix_config_h = yes; then
4635 MINIX=yes
4636else
4637 MINIX=
4638fi
d7040cdb
SE
4639
4640
7357c5b6 4641 if test "$MINIX" = yes; then
d7040cdb 4642
7357c5b6
AM
4643cat >>confdefs.h <<\_ACEOF
4644#define _POSIX_SOURCE 1
4645_ACEOF
d7040cdb
SE
4646
4647
7357c5b6
AM
4648cat >>confdefs.h <<\_ACEOF
4649#define _POSIX_1_SOURCE 2
4650_ACEOF
d7040cdb
SE
4651
4652
7357c5b6
AM
4653cat >>confdefs.h <<\_ACEOF
4654#define _MINIX 1
4655_ACEOF
d7040cdb 4656
7357c5b6 4657 fi
d7040cdb
SE
4658
4659
4660
7357c5b6
AM
4661 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4662echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
4663if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
d7040cdb
SE
4664 echo $ECHO_N "(cached) $ECHO_C" >&6
4665else
7357c5b6
AM
4666 cat >conftest.$ac_ext <<_ACEOF
4667/* confdefs.h. */
4668_ACEOF
4669cat confdefs.h >>conftest.$ac_ext
4670cat >>conftest.$ac_ext <<_ACEOF
4671/* end confdefs.h. */
d7040cdb 4672
7357c5b6
AM
4673# define __EXTENSIONS__ 1
4674 $ac_includes_default
4675int
4676main ()
4677{
d7040cdb 4678
7357c5b6
AM
4679 ;
4680 return 0;
4681}
4682_ACEOF
4683rm -f conftest.$ac_objext
4684if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4685 (eval $ac_compile) 2>conftest.er1
4686 ac_status=$?
4687 grep -v '^ *+' conftest.er1 >conftest.err
4688 rm -f conftest.er1
4689 cat conftest.err >&5
4690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691 (exit $ac_status); } &&
4692 { ac_try='test -z "$ac_c_werror_flag"
4693 || test ! -s conftest.err'
4694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4695 (eval $ac_try) 2>&5
4696 ac_status=$?
4697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698 (exit $ac_status); }; } &&
4699 { ac_try='test -s conftest.$ac_objext'
4700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4701 (eval $ac_try) 2>&5
4702 ac_status=$?
4703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4704 (exit $ac_status); }; }; then
4705 ac_cv_safe_to_define___extensions__=yes
d7040cdb 4706else
7357c5b6
AM
4707 echo "$as_me: failed program was:" >&5
4708sed 's/^/| /' conftest.$ac_ext >&5
4709
4710ac_cv_safe_to_define___extensions__=no
d7040cdb 4711fi
7357c5b6
AM
4712rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4713fi
4714echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4715echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
4716 test $ac_cv_safe_to_define___extensions__ = yes &&
4717 cat >>confdefs.h <<\_ACEOF
4718#define __EXTENSIONS__ 1
4719_ACEOF
d7040cdb 4720
7357c5b6
AM
4721 cat >>confdefs.h <<\_ACEOF
4722#define _ALL_SOURCE 1
4723_ACEOF
d7040cdb 4724
7357c5b6
AM
4725 cat >>confdefs.h <<\_ACEOF
4726#define _GNU_SOURCE 1
4727_ACEOF
d7040cdb 4728
7357c5b6
AM
4729 cat >>confdefs.h <<\_ACEOF
4730#define _POSIX_PTHREAD_SEMANTICS 1
4731_ACEOF
d7040cdb 4732
7357c5b6
AM
4733 cat >>confdefs.h <<\_ACEOF
4734#define _TANDEM_SOURCE 1
4735_ACEOF
d7040cdb
SE
4736
4737
d053aef8
JK
4738# Check whether --enable-largefile or --disable-largefile was given.
4739if test "${enable_largefile+set}" = set; then
4740 enableval="$enable_largefile"
4741
4742fi;
4743if test "$enable_largefile" != no; then
4744
4745 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4746echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4747if test "${ac_cv_sys_largefile_CC+set}" = set; then
4748 echo $ECHO_N "(cached) $ECHO_C" >&6
4749else
4750 ac_cv_sys_largefile_CC=no
4751 if test "$GCC" != yes; then
4752 ac_save_CC=$CC
4753 while :; do
4754 # IRIX 6.2 and later do not support large files by default,
4755 # so use the C compiler's -n32 option if that helps.
4756 cat >conftest.$ac_ext <<_ACEOF
4757/* confdefs.h. */
4758_ACEOF
4759cat confdefs.h >>conftest.$ac_ext
4760cat >>conftest.$ac_ext <<_ACEOF
4761/* end confdefs.h. */
4762#include <sys/types.h>
4763 /* Check that off_t can represent 2**63 - 1 correctly.
4764 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4765 since some C++ compilers masquerading as C compilers
4766 incorrectly reject 9223372036854775807. */
4767#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4768 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4769 && LARGE_OFF_T % 2147483647 == 1)
4770 ? 1 : -1];
4771int
4772main ()
4773{
4774
4775 ;
4776 return 0;
4777}
4778_ACEOF
4779 rm -f conftest.$ac_objext
4780if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4781 (eval $ac_compile) 2>conftest.er1
4782 ac_status=$?
4783 grep -v '^ *+' conftest.er1 >conftest.err
4784 rm -f conftest.er1
4785 cat conftest.err >&5
4786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787 (exit $ac_status); } &&
4788 { ac_try='test -z "$ac_c_werror_flag"
4789 || test ! -s conftest.err'
4790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4791 (eval $ac_try) 2>&5
4792 ac_status=$?
4793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794 (exit $ac_status); }; } &&
4795 { ac_try='test -s conftest.$ac_objext'
4796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4797 (eval $ac_try) 2>&5
4798 ac_status=$?
4799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800 (exit $ac_status); }; }; then
4801 break
4802else
4803 echo "$as_me: failed program was:" >&5
4804sed 's/^/| /' conftest.$ac_ext >&5
4805
4806fi
4807rm -f conftest.err conftest.$ac_objext
4808 CC="$CC -n32"
4809 rm -f conftest.$ac_objext
4810if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4811 (eval $ac_compile) 2>conftest.er1
4812 ac_status=$?
4813 grep -v '^ *+' conftest.er1 >conftest.err
4814 rm -f conftest.er1
4815 cat conftest.err >&5
4816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817 (exit $ac_status); } &&
4818 { ac_try='test -z "$ac_c_werror_flag"
4819 || test ! -s conftest.err'
4820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4821 (eval $ac_try) 2>&5
4822 ac_status=$?
4823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824 (exit $ac_status); }; } &&
4825 { ac_try='test -s conftest.$ac_objext'
4826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4827 (eval $ac_try) 2>&5
4828 ac_status=$?
4829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830 (exit $ac_status); }; }; then
4831 ac_cv_sys_largefile_CC=' -n32'; break
4832else
4833 echo "$as_me: failed program was:" >&5
4834sed 's/^/| /' conftest.$ac_ext >&5
4835
4836fi
4837rm -f conftest.err conftest.$ac_objext
4838 break
4839 done
4840 CC=$ac_save_CC
4841 rm -f conftest.$ac_ext
4842 fi
4843fi
4844echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4845echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4846 if test "$ac_cv_sys_largefile_CC" != no; then
4847 CC=$CC$ac_cv_sys_largefile_CC
4848 fi
4849
4850 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4851echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4852if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4853 echo $ECHO_N "(cached) $ECHO_C" >&6
4854else
4855 while :; do
4856 ac_cv_sys_file_offset_bits=no
4857 cat >conftest.$ac_ext <<_ACEOF
4858/* confdefs.h. */
4859_ACEOF
4860cat confdefs.h >>conftest.$ac_ext
4861cat >>conftest.$ac_ext <<_ACEOF
4862/* end confdefs.h. */
4863#include <sys/types.h>
4864 /* Check that off_t can represent 2**63 - 1 correctly.
4865 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4866 since some C++ compilers masquerading as C compilers
4867 incorrectly reject 9223372036854775807. */
4868#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4869 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4870 && LARGE_OFF_T % 2147483647 == 1)
4871 ? 1 : -1];
4872int
4873main ()
4874{
4875
4876 ;
4877 return 0;
4878}
4879_ACEOF
4880rm -f conftest.$ac_objext
4881if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4882 (eval $ac_compile) 2>conftest.er1
4883 ac_status=$?
4884 grep -v '^ *+' conftest.er1 >conftest.err
4885 rm -f conftest.er1
4886 cat conftest.err >&5
4887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4888 (exit $ac_status); } &&
4889 { ac_try='test -z "$ac_c_werror_flag"
4890 || test ! -s conftest.err'
4891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4892 (eval $ac_try) 2>&5
4893 ac_status=$?
4894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895 (exit $ac_status); }; } &&
4896 { ac_try='test -s conftest.$ac_objext'
4897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4898 (eval $ac_try) 2>&5
4899 ac_status=$?
4900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4901 (exit $ac_status); }; }; then
4902 break
4903else
4904 echo "$as_me: failed program was:" >&5
4905sed 's/^/| /' conftest.$ac_ext >&5
4906
4907fi
4908rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4909 cat >conftest.$ac_ext <<_ACEOF
4910/* confdefs.h. */
4911_ACEOF
4912cat confdefs.h >>conftest.$ac_ext
4913cat >>conftest.$ac_ext <<_ACEOF
4914/* end confdefs.h. */
4915#define _FILE_OFFSET_BITS 64
4916#include <sys/types.h>
4917 /* Check that off_t can represent 2**63 - 1 correctly.
4918 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4919 since some C++ compilers masquerading as C compilers
4920 incorrectly reject 9223372036854775807. */
4921#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4922 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4923 && LARGE_OFF_T % 2147483647 == 1)
4924 ? 1 : -1];
4925int
4926main ()
4927{
4928
4929 ;
4930 return 0;
4931}
4932_ACEOF
4933rm -f conftest.$ac_objext
4934if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4935 (eval $ac_compile) 2>conftest.er1
4936 ac_status=$?
4937 grep -v '^ *+' conftest.er1 >conftest.err
4938 rm -f conftest.er1
4939 cat conftest.err >&5
4940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); } &&
4942 { ac_try='test -z "$ac_c_werror_flag"
4943 || test ! -s conftest.err'
4944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4945 (eval $ac_try) 2>&5
4946 ac_status=$?
4947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948 (exit $ac_status); }; } &&
4949 { ac_try='test -s conftest.$ac_objext'
4950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4951 (eval $ac_try) 2>&5
4952 ac_status=$?
4953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954 (exit $ac_status); }; }; then
4955 ac_cv_sys_file_offset_bits=64; break
4956else
4957 echo "$as_me: failed program was:" >&5
4958sed 's/^/| /' conftest.$ac_ext >&5
4959
4960fi
4961rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4962 break
4963done
4964fi
4965echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4966echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4967if test "$ac_cv_sys_file_offset_bits" != no; then
4968
4969cat >>confdefs.h <<_ACEOF
4970#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4971_ACEOF
4972
4973fi
4974rm -f conftest*
4975 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4976echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4977if test "${ac_cv_sys_large_files+set}" = set; then
4978 echo $ECHO_N "(cached) $ECHO_C" >&6
4979else
4980 while :; do
4981 ac_cv_sys_large_files=no
4982 cat >conftest.$ac_ext <<_ACEOF
4983/* confdefs.h. */
4984_ACEOF
4985cat confdefs.h >>conftest.$ac_ext
4986cat >>conftest.$ac_ext <<_ACEOF
4987/* end confdefs.h. */
4988#include <sys/types.h>
4989 /* Check that off_t can represent 2**63 - 1 correctly.
4990 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4991 since some C++ compilers masquerading as C compilers
4992 incorrectly reject 9223372036854775807. */
4993#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4994 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4995 && LARGE_OFF_T % 2147483647 == 1)
4996 ? 1 : -1];
4997int
4998main ()
4999{
5000
5001 ;
5002 return 0;
5003}
5004_ACEOF
5005rm -f conftest.$ac_objext
5006if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5007 (eval $ac_compile) 2>conftest.er1
5008 ac_status=$?
5009 grep -v '^ *+' conftest.er1 >conftest.err
5010 rm -f conftest.er1
5011 cat conftest.err >&5
5012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013 (exit $ac_status); } &&
5014 { ac_try='test -z "$ac_c_werror_flag"
5015 || test ! -s conftest.err'
5016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5017 (eval $ac_try) 2>&5
5018 ac_status=$?
5019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020 (exit $ac_status); }; } &&
5021 { ac_try='test -s conftest.$ac_objext'
5022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5023 (eval $ac_try) 2>&5
5024 ac_status=$?
5025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5026 (exit $ac_status); }; }; then
5027 break
5028else
5029 echo "$as_me: failed program was:" >&5
5030sed 's/^/| /' conftest.$ac_ext >&5
5031
5032fi
5033rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5034 cat >conftest.$ac_ext <<_ACEOF
5035/* confdefs.h. */
5036_ACEOF
5037cat confdefs.h >>conftest.$ac_ext
5038cat >>conftest.$ac_ext <<_ACEOF
5039/* end confdefs.h. */
5040#define _LARGE_FILES 1
5041#include <sys/types.h>
5042 /* Check that off_t can represent 2**63 - 1 correctly.
5043 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5044 since some C++ compilers masquerading as C compilers
5045 incorrectly reject 9223372036854775807. */
5046#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5047 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5048 && LARGE_OFF_T % 2147483647 == 1)
5049 ? 1 : -1];
5050int
5051main ()
5052{
5053
5054 ;
5055 return 0;
5056}
5057_ACEOF
5058rm -f conftest.$ac_objext
5059if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5060 (eval $ac_compile) 2>conftest.er1
5061 ac_status=$?
5062 grep -v '^ *+' conftest.er1 >conftest.err
5063 rm -f conftest.er1
5064 cat conftest.err >&5
5065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5066 (exit $ac_status); } &&
5067 { ac_try='test -z "$ac_c_werror_flag"
5068 || test ! -s conftest.err'
5069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5070 (eval $ac_try) 2>&5
5071 ac_status=$?
5072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073 (exit $ac_status); }; } &&
5074 { ac_try='test -s conftest.$ac_objext'
5075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5076 (eval $ac_try) 2>&5
5077 ac_status=$?
5078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079 (exit $ac_status); }; }; then
5080 ac_cv_sys_large_files=1; break
5081else
5082 echo "$as_me: failed program was:" >&5
5083sed 's/^/| /' conftest.$ac_ext >&5
5084
5085fi
5086rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5087 break
5088done
5089fi
5090echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5091echo "${ECHO_T}$ac_cv_sys_large_files" >&6
5092if test "$ac_cv_sys_large_files" != no; then
5093
5094cat >>confdefs.h <<_ACEOF
5095#define _LARGE_FILES $ac_cv_sys_large_files
5096_ACEOF
5097
5098fi
5099rm -f conftest*
5100fi
5101
718a6fd8
SE
5102case `pwd` in
5103 *\ * | *\ *)
5104 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5105echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5106esac
d7040cdb
SE
5107
5108
7357c5b6 5109
718a6fd8
SE
5110macro_version='2.2.6'
5111macro_revision='1.3012'
7357c5b6
AM
5112
5113
5114
5115
5116
5117
7357c5b6
AM
5118
5119
5120
5121
5122
5123
5124
718a6fd8 5125ltmain="$ac_aux_dir/ltmain.sh"
7357c5b6
AM
5126
5127echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5128echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5129if test "${lt_cv_path_SED+set}" = set; then
5130 echo $ECHO_N "(cached) $ECHO_C" >&6
5131else
5132 # Loop through the user's path and test for sed and gsed.
5133# Then use that list of sed's as ones to test for truncation.
5134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5135for as_dir in $PATH
5136do
5137 IFS=$as_save_IFS
5138 test -z "$as_dir" && as_dir=.
5139 for lt_ac_prog in sed gsed; do
5140 for ac_exec_ext in '' $ac_executable_extensions; do
5141 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5142 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5143 fi
5144 done
5145 done
5146done
5147IFS=$as_save_IFS
5148lt_ac_max=0
5149lt_ac_count=0
5150# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5151# along with /bin/sed that truncates output.
5152for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5153 test ! -f $lt_ac_sed && continue
5154 cat /dev/null > conftest.in
5155 lt_ac_count=0
5156 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5157 # Check for GNU sed and select it if it is found.
5158 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5159 lt_cv_path_SED=$lt_ac_sed
5160 break
5161 fi
5162 while true; do
5163 cat conftest.in conftest.in >conftest.tmp
5164 mv conftest.tmp conftest.in
5165 cp conftest.in conftest.nl
5166 echo >>conftest.nl
5167 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5168 cmp -s conftest.out conftest.nl || break
5169 # 10000 chars as input seems more than enough
5170 test $lt_ac_count -gt 10 && break
5171 lt_ac_count=`expr $lt_ac_count + 1`
5172 if test $lt_ac_count -gt $lt_ac_max; then
5173 lt_ac_max=$lt_ac_count
5174 lt_cv_path_SED=$lt_ac_sed
5175 fi
5176 done
5177done
5178
5179fi
5180
5181SED=$lt_cv_path_SED
5182
5183echo "$as_me:$LINENO: result: $SED" >&5
5184echo "${ECHO_T}$SED" >&6
5185
5186test -z "$SED" && SED=sed
5187Xsed="$SED -e 1s/^X//"
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199echo "$as_me:$LINENO: checking for fgrep" >&5
5200echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
5201if test "${ac_cv_prog_fgrep+set}" = set; then
5202 echo $ECHO_N "(cached) $ECHO_C" >&6
5203else
5204 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
5205 then ac_cv_prog_fgrep='grep -F'
5206 else ac_cv_prog_fgrep='fgrep'
5207 fi
5208fi
5209echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
5210echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
5211 FGREP=$ac_cv_prog_fgrep
5212
5213
5214test -z "$GREP" && GREP=grep
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234# Check whether --with-gnu-ld or --without-gnu-ld was given.
5235if test "${with_gnu_ld+set}" = set; then
5236 withval="$with_gnu_ld"
5237 test "$withval" = no || with_gnu_ld=yes
5238else
5239 with_gnu_ld=no
5240fi;
5241ac_prog=ld
5242if test "$GCC" = yes; then
5243 # Check if gcc -print-prog-name=ld gives a path.
5244 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5245echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5246 case $host in
5247 *-*-mingw*)
d45dc31f
SE
5248 # gcc leaves a trailing carriage return which upsets mingw
5249 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5250 *)
5251 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5252 esac
5253 case $ac_prog in
5254 # Accept absolute paths.
d7040cdb 5255 [\\/]* | ?:[\\/]*)
d45dc31f 5256 re_direlt='/[^/][^/]*/\.\./'
d7040cdb
SE
5257 # Canonicalize the pathname of ld
5258 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5259 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5260 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
d45dc31f
SE
5261 done
5262 test -z "$LD" && LD="$ac_prog"
5263 ;;
5264 "")
5265 # If it fails, then pretend we aren't using GCC.
5266 ac_prog=ld
5267 ;;
5268 *)
5269 # If it is relative, then search for the first ld in PATH.
5270 with_gnu_ld=unknown
5271 ;;
5272 esac
5273elif test "$with_gnu_ld" = yes; then
5274 echo "$as_me:$LINENO: checking for GNU ld" >&5
5275echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5276else
5277 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5278echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5279fi
5280if test "${lt_cv_path_LD+set}" = set; then
5281 echo $ECHO_N "(cached) $ECHO_C" >&6
5282else
5283 if test -z "$LD"; then
d7040cdb 5284 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
d45dc31f 5285 for ac_dir in $PATH; do
d7040cdb 5286 IFS="$lt_save_ifs"
d45dc31f
SE
5287 test -z "$ac_dir" && ac_dir=.
5288 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5289 lt_cv_path_LD="$ac_dir/$ac_prog"
5290 # Check to see if the program is GNU ld. I'd rather use --version,
d7040cdb 5291 # but apparently some variants of GNU ld only accept -v.
d45dc31f 5292 # Break only if it was the GNU/non-GNU ld that we prefer.
d7040cdb
SE
5293 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5294 *GNU* | *'with BFD'*)
d45dc31f 5295 test "$with_gnu_ld" != no && break
d7040cdb
SE
5296 ;;
5297 *)
d45dc31f 5298 test "$with_gnu_ld" != yes && break
d7040cdb
SE
5299 ;;
5300 esac
d45dc31f
SE
5301 fi
5302 done
d7040cdb 5303 IFS="$lt_save_ifs"
d45dc31f
SE
5304else
5305 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5306fi
5307fi
1ad12f97 5308
d45dc31f
SE
5309LD="$lt_cv_path_LD"
5310if test -n "$LD"; then
5311 echo "$as_me:$LINENO: result: $LD" >&5
5312echo "${ECHO_T}$LD" >&6
5313else
5314 echo "$as_me:$LINENO: result: no" >&5
5315echo "${ECHO_T}no" >&6
5316fi
5317test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5318echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5319 { (exit 1); exit 1; }; }
5320echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5321echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5322if test "${lt_cv_prog_gnu_ld+set}" = set; then
5323 echo $ECHO_N "(cached) $ECHO_C" >&6
5324else
d7040cdb
SE
5325 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5326case `$LD -v 2>&1 </dev/null` in
5327*GNU* | *'with BFD'*)
d45dc31f 5328 lt_cv_prog_gnu_ld=yes
d7040cdb
SE
5329 ;;
5330*)
d45dc31f 5331 lt_cv_prog_gnu_ld=no
d7040cdb
SE
5332 ;;
5333esac
d45dc31f
SE
5334fi
5335echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5336echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5337with_gnu_ld=$lt_cv_prog_gnu_ld
569acd2c 5338
d45dc31f 5339
42ecbf5e 5340
d7040cdb
SE
5341
5342
5343
5344
5345
5346
d7040cdb
SE
5347echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5348echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
d45dc31f
SE
5349if test "${lt_cv_path_NM+set}" = set; then
5350 echo $ECHO_N "(cached) $ECHO_C" >&6
5351else
5352 if test -n "$NM"; then
5353 # Let the user override the test.
5354 lt_cv_path_NM="$NM"
5355else
d7040cdb
SE
5356 lt_nm_to_check="${ac_tool_prefix}nm"
5357 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5358 lt_nm_to_check="$lt_nm_to_check nm"
5359 fi
5360 for lt_tmp_nm in $lt_nm_to_check; do
5361 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5362 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5363 IFS="$lt_save_ifs"
5364 test -z "$ac_dir" && ac_dir=.
5365 tmp_nm="$ac_dir/$lt_tmp_nm"
5366 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5367 # Check to see if the nm accepts a BSD-compat flag.
5368 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5369 # nm: unknown option "B" ignored
5370 # Tru64's nm complains that /dev/null is an invalid object file
5371 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5372 */dev/null* | *'Invalid file or object type'*)
5373 lt_cv_path_NM="$tmp_nm -B"
5374 break
5375 ;;
5376 *)
5377 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5378 */dev/null*)
5379 lt_cv_path_NM="$tmp_nm -p"
5380 break
5381 ;;
5382 *)
5383 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5384 continue # so that we can try to find one that supports BSD flags
5385 ;;
5386 esac
5387 ;;
5388 esac
d45dc31f 5389 fi
d7040cdb
SE
5390 done
5391 IFS="$lt_save_ifs"
d45dc31f 5392 done
d7040cdb 5393 : ${lt_cv_path_NM=no}
d45dc31f 5394fi
a541e3ce 5395fi
d7040cdb
SE
5396echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5397echo "${ECHO_T}$lt_cv_path_NM" >&6
5398if test "$lt_cv_path_NM" != "no"; then
5399 NM="$lt_cv_path_NM"
d45dc31f 5400else
d7040cdb
SE
5401 # Didn't find any BSD compatible name lister, look for dumpbin.
5402 if test -n "$ac_tool_prefix"; then
5403 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5404 do
5405 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5406set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5407echo "$as_me:$LINENO: checking for $ac_word" >&5
5408echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5409if test "${ac_cv_prog_DUMPBIN+set}" = set; then
d45dc31f
SE
5410 echo $ECHO_N "(cached) $ECHO_C" >&6
5411else
d7040cdb
SE
5412 if test -n "$DUMPBIN"; then
5413 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5414else
5415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5416for as_dir in $PATH
5417do
5418 IFS=$as_save_IFS
5419 test -z "$as_dir" && as_dir=.
5420 for ac_exec_ext in '' $ac_executable_extensions; do
5421 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5422 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5424 break 2
5425 fi
5426done
5427done
398ee8f1 5428
d7040cdb
SE
5429fi
5430fi
5431DUMPBIN=$ac_cv_prog_DUMPBIN
5432if test -n "$DUMPBIN"; then
5433 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5434echo "${ECHO_T}$DUMPBIN" >&6
5435else
5436 echo "$as_me:$LINENO: result: no" >&5
5437echo "${ECHO_T}no" >&6
5438fi
d15b04bd 5439
d7040cdb
SE
5440 test -n "$DUMPBIN" && break
5441 done
5442fi
5443if test -z "$DUMPBIN"; then
5444 ac_ct_DUMPBIN=$DUMPBIN
5445 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5446do
5447 # Extract the first word of "$ac_prog", so it can be a program name with args.
5448set dummy $ac_prog; ac_word=$2
5449echo "$as_me:$LINENO: checking for $ac_word" >&5
5450echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5451if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5452 echo $ECHO_N "(cached) $ECHO_C" >&6
5453else
5454 if test -n "$ac_ct_DUMPBIN"; then
5455 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5456else
5457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5458for as_dir in $PATH
5459do
5460 IFS=$as_save_IFS
5461 test -z "$as_dir" && as_dir=.
5462 for ac_exec_ext in '' $ac_executable_extensions; do
5463 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5464 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5466 break 2
d45dc31f 5467 fi
d7040cdb
SE
5468done
5469done
d15b04bd 5470
d7040cdb
SE
5471fi
5472fi
5473ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5474if test -n "$ac_ct_DUMPBIN"; then
5475 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5476echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
5477else
5478 echo "$as_me:$LINENO: result: no" >&5
5479echo "${ECHO_T}no" >&6
5480fi
42ecbf5e 5481
d7040cdb
SE
5482 test -n "$ac_ct_DUMPBIN" && break
5483done
5484test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
d45dc31f 5485
d7040cdb
SE
5486 DUMPBIN=$ac_ct_DUMPBIN
5487fi
d45dc31f 5488
d45dc31f 5489
d7040cdb
SE
5490 if test "$DUMPBIN" != ":"; then
5491 NM="$DUMPBIN"
42ecbf5e 5492 fi
d7040cdb
SE
5493fi
5494test -z "$NM" && NM=nm
d45dc31f 5495
42ecbf5e 5496
d15b04bd 5497
42ecbf5e 5498
d45dc31f 5499
42ecbf5e 5500
d7040cdb
SE
5501echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5502echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
5503if test "${lt_cv_nm_interface+set}" = set; then
5504 echo $ECHO_N "(cached) $ECHO_C" >&6
5505else
5506 lt_cv_nm_interface="BSD nm"
5507 echo "int some_variable = 0;" > conftest.$ac_ext
29670fb9 5508 (eval echo "\"\$as_me:5508: $ac_compile\"" >&5)
d7040cdb
SE
5509 (eval "$ac_compile" 2>conftest.err)
5510 cat conftest.err >&5
29670fb9 5511 (eval echo "\"\$as_me:5511: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
d7040cdb
SE
5512 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5513 cat conftest.err >&5
29670fb9 5514 (eval echo "\"\$as_me:5514: output\"" >&5)
d7040cdb
SE
5515 cat conftest.out >&5
5516 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5517 lt_cv_nm_interface="MS dumpbin"
5518 fi
5519 rm -f conftest*
42ecbf5e 5520fi
d7040cdb
SE
5521echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5522echo "${ECHO_T}$lt_cv_nm_interface" >&6
42ecbf5e 5523
d7040cdb
SE
5524echo "$as_me:$LINENO: checking whether ln -s works" >&5
5525echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5526LN_S=$as_ln_s
5527if test "$LN_S" = "ln -s"; then
5528 echo "$as_me:$LINENO: result: yes" >&5
5529echo "${ECHO_T}yes" >&6
5530else
5531 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5532echo "${ECHO_T}no, using $LN_S" >&6
5533fi
d45dc31f
SE
5534
5535# find the maximum length of command line arguments
5536echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5537echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5538if test "${lt_cv_sys_max_cmd_len+set}" = set; then
42ecbf5e
DJ
5539 echo $ECHO_N "(cached) $ECHO_C" >&6
5540else
d45dc31f
SE
5541 i=0
5542 teststring="ABCD"
5543
5544 case $build_os in
5545 msdosdjgpp*)
5546 # On DJGPP, this test can blow up pretty badly due to problems in libc
5547 # (any single argument exceeding 2000 bytes causes a buffer overrun
5548 # during glob expansion). Even if it were fixed, the result of this
5549 # check would be larger than it should be.
5550 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5551 ;;
5552
d7040cdb
SE
5553 gnu*)
5554 # Under GNU Hurd, this test is not required because there is
5555 # no limit to the length of command line arguments.
5556 # Libtool will interpret -1 as no limit whatsoever
5557 lt_cv_sys_max_cmd_len=-1;
5558 ;;
5559
718a6fd8 5560 cygwin* | mingw* | cegcc*)
d45dc31f
SE
5561 # On Win9x/ME, this test blows up -- it succeeds, but takes
5562 # about 5 minutes as the teststring grows exponentially.
5563 # Worse, since 9x/ME are not pre-emptively multitasking,
5564 # you end up with a "frozen" computer, even though with patience
5565 # the test eventually succeeds (with a max line length of 256k).
5566 # Instead, let's just punt: use the minimum linelength reported by
5567 # all of the supported platforms: 8192 (on NT/2K/XP).
5568 lt_cv_sys_max_cmd_len=8192;
5569 ;;
5570
5571 amigaos*)
5572 # On AmigaOS with pdksh, this test takes hours, literally.
5573 # So we just punt and use a minimum line length of 8192.
5574 lt_cv_sys_max_cmd_len=8192;
5575 ;;
5576
5577 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5578 # This has been around since 386BSD, at least. Likely further.
5579 if test -x /sbin/sysctl; then
5580 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5581 elif test -x /usr/sbin/sysctl; then
5582 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5583 else
d7040cdb 5584 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
d45dc31f
SE
5585 fi
5586 # And add a safety zone
5587 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5588 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5589 ;;
d7040cdb
SE
5590
5591 interix*)
5592 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5593 lt_cv_sys_max_cmd_len=196608
5594 ;;
5595
5596 osf*)
5597 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5598 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5599 # nice to cause kernel panics so lets avoid the loop below.
5600 # First set a reasonable default.
5601 lt_cv_sys_max_cmd_len=16384
5602 #
5603 if test -x /sbin/sysconfig; then
5604 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5605 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5606 esac
5607 fi
5608 ;;
5609 sco3.2v5*)
5610 lt_cv_sys_max_cmd_len=102400
5611 ;;
5612 sysv5* | sco5v6* | sysv4.2uw2*)
5613 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5614 if test -n "$kargmax"; then
5615 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5616 else
5617 lt_cv_sys_max_cmd_len=32768
5618 fi
5619 ;;
5620 *)
718a6fd8
SE
5621 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5622 if test -n "$lt_cv_sys_max_cmd_len"; then
5ba684e2
NC
5623 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5624 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5625 else
5626 # Make teststring a little bigger before we do anything with it.
5627 # a 1K string should be a reasonable start.
5628 for i in 1 2 3 4 5 6 7 8 ; do
5629 teststring=$teststring$teststring
5630 done
5631 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5632 # If test is not a shell built-in, we'll probably end up computing a
5633 # maximum length that is only half of the actual maximum length, but
5634 # we can't tell.
5635 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5636 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5637 test $i != 17 # 1/2 MB should be enough
5638 do
5639 i=`expr $i + 1`
5640 teststring=$teststring$teststring
5641 done
5642 # Only check the string length outside the loop.
5643 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5644 teststring=
5645 # Add a significant safety factor because C++ compilers can tack on
5646 # massive amounts of additional arguments before passing them to the
5647 # linker. It appears as though 1/2 is a usable value.
5648 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5649 fi
d7040cdb 5650 ;;
d45dc31f 5651 esac
42ecbf5e 5652
42ecbf5e
DJ
5653fi
5654
d7040cdb 5655if test -n $lt_cv_sys_max_cmd_len ; then
d45dc31f
SE
5656 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5657echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
252b5132 5658else
d45dc31f
SE
5659 echo "$as_me:$LINENO: result: none" >&5
5660echo "${ECHO_T}none" >&6
252b5132 5661fi
d7040cdb 5662max_cmd_len=$lt_cv_sys_max_cmd_len
e5a52504 5663
d45dc31f 5664
42ecbf5e 5665
d45dc31f 5666
d45dc31f 5667
d7040cdb 5668
d7040cdb
SE
5669: ${CP="cp -f"}
5670: ${MV="mv -f"}
5671: ${RM="rm -f"}
5672
5673echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5674echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
5675# Try some XSI features
5676xsi_shell=no
5677( _lt_dummy="a/b/c"
5678 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
718a6fd8
SE
5679 = c,a/b,, \
5680 && eval 'test $(( 1 + 1 )) -eq 2 \
5681 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
d7040cdb
SE
5682 && xsi_shell=yes
5683echo "$as_me:$LINENO: result: $xsi_shell" >&5
5684echo "${ECHO_T}$xsi_shell" >&6
5685
5686
5687echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5688echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
5689lt_shell_append=no
5690( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5691 >/dev/null 2>&1 \
5692 && lt_shell_append=yes
5693echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5694echo "${ECHO_T}$lt_shell_append" >&6
5695
5696
5697if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5698 lt_unset=unset
252b5132 5699else
d7040cdb 5700 lt_unset=false
252b5132
RH
5701fi
5702
d7040cdb
SE
5703
5704
5705
5706
5707# test EBCDIC or ASCII
5708case `echo X|tr X '\101'` in
5709 A) # ASCII based system
5710 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5711 lt_SP2NL='tr \040 \012'
5712 lt_NL2SP='tr \015\012 \040\040'
5713 ;;
5714 *) # EBCDIC based system
5715 lt_SP2NL='tr \100 \n'
5716 lt_NL2SP='tr \r\n \100\100'
5717 ;;
5718esac
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5729echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5730if test "${lt_cv_ld_reload_flag+set}" = set; then
42ecbf5e 5731 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5732else
d7040cdb
SE
5733 lt_cv_ld_reload_flag='-r'
5734fi
5735echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5736echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5737reload_flag=$lt_cv_ld_reload_flag
5738case $reload_flag in
5739"" | " "*) ;;
5740*) reload_flag=" $reload_flag" ;;
5741esac
5742reload_cmds='$LD$reload_flag -o $output$reload_objs'
5743case $host_os in
5744 darwin*)
5745 if test "$GCC" = yes; then
5746 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5747 else
5748 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5749 fi
5750 ;;
5751esac
5752
5753
5754
5755
5756
5757
5758
5759
5760
718a6fd8
SE
5761if test -n "$ac_tool_prefix"; then
5762 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5763set dummy ${ac_tool_prefix}objdump; ac_word=$2
5764echo "$as_me:$LINENO: checking for $ac_word" >&5
5765echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5766if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5767 echo $ECHO_N "(cached) $ECHO_C" >&6
5768else
5769 if test -n "$OBJDUMP"; then
5770 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5771else
5772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5773for as_dir in $PATH
5774do
5775 IFS=$as_save_IFS
5776 test -z "$as_dir" && as_dir=.
5777 for ac_exec_ext in '' $ac_executable_extensions; do
5778 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5779 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5781 break 2
5782 fi
5783done
5784done
5785
5786fi
5787fi
5788OBJDUMP=$ac_cv_prog_OBJDUMP
5789if test -n "$OBJDUMP"; then
5790 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5791echo "${ECHO_T}$OBJDUMP" >&6
5792else
5793 echo "$as_me:$LINENO: result: no" >&5
5794echo "${ECHO_T}no" >&6
5795fi
5796
5797fi
5798if test -z "$ac_cv_prog_OBJDUMP"; then
5799 ac_ct_OBJDUMP=$OBJDUMP
5800 # Extract the first word of "objdump", so it can be a program name with args.
5801set dummy objdump; ac_word=$2
5802echo "$as_me:$LINENO: checking for $ac_word" >&5
5803echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5804if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5805 echo $ECHO_N "(cached) $ECHO_C" >&6
5806else
5807 if test -n "$ac_ct_OBJDUMP"; then
5808 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5809else
5810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5811for as_dir in $PATH
5812do
5813 IFS=$as_save_IFS
5814 test -z "$as_dir" && as_dir=.
5815 for ac_exec_ext in '' $ac_executable_extensions; do
5816 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5817 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5819 break 2
5820 fi
5821done
5822done
5823
5824 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
5825fi
5826fi
5827ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5828if test -n "$ac_ct_OBJDUMP"; then
5829 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5830echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
5831else
5832 echo "$as_me:$LINENO: result: no" >&5
5833echo "${ECHO_T}no" >&6
5834fi
5835
5836 OBJDUMP=$ac_ct_OBJDUMP
5837else
5838 OBJDUMP="$ac_cv_prog_OBJDUMP"
5839fi
5840
5841test -z "$OBJDUMP" && OBJDUMP=objdump
5842
5843
5844
5845
5846
5847
5848
5849
d7040cdb
SE
5850
5851echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5852echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
5853if test "${lt_cv_deplibs_check_method+set}" = set; then
5854 echo $ECHO_N "(cached) $ECHO_C" >&6
5855else
5856 lt_cv_file_magic_cmd='$MAGIC_CMD'
5857lt_cv_file_magic_test_file=
5858lt_cv_deplibs_check_method='unknown'
5859# Need to set the preceding variable on all platforms that support
5860# interlibrary dependencies.
5861# 'none' -- dependencies not supported.
5862# `unknown' -- same as none, but documents that we really don't know.
5863# 'pass_all' -- all dependencies passed with no checks.
5864# 'test_compile' -- check by making test program.
5865# 'file_magic [[regex]]' -- check by looking for files in library path
5866# which responds to the $file_magic_cmd with a given extended regex.
5867# If you have `file' or equivalent on your system and you're not sure
5868# whether `pass_all' will *always* work, you probably want this one.
5869
5870case $host_os in
50e7d84b 5871aix[4-9]*)
d7040cdb
SE
5872 lt_cv_deplibs_check_method=pass_all
5873 ;;
5874
5875beos*)
5876 lt_cv_deplibs_check_method=pass_all
5877 ;;
5878
5879bsdi[45]*)
5880 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5881 lt_cv_file_magic_cmd='/usr/bin/file -L'
5882 lt_cv_file_magic_test_file=/shlib/libc.so
5883 ;;
5884
5885cygwin*)
5886 # func_win32_libid is a shell function defined in ltmain.sh
5887 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5888 lt_cv_file_magic_cmd='func_win32_libid'
5889 ;;
5890
5891mingw* | pw32*)
5892 # Base MSYS/MinGW do not provide the 'file' command needed by
5893 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5894 # unless we find 'file', for example because we are cross-compiling.
5895 if ( file / ) >/dev/null 2>&1; then
5896 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5897 lt_cv_file_magic_cmd='func_win32_libid'
5898 else
5899 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5900 lt_cv_file_magic_cmd='$OBJDUMP -f'
5901 fi
5902 ;;
5903
718a6fd8
SE
5904cegcc)
5905 # use the weaker test based on 'objdump'. See mingw*.
5906 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5907 lt_cv_file_magic_cmd='$OBJDUMP -f'
5908 ;;
5909
d7040cdb
SE
5910darwin* | rhapsody*)
5911 lt_cv_deplibs_check_method=pass_all
d45dc31f 5912 ;;
d7040cdb
SE
5913
5914freebsd* | dragonfly*)
5915 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5916 case $host_cpu in
5917 i*86 )
5918 # Not sure whether the presence of OpenBSD here was a mistake.
5919 # Let's accept both of them until this is cleared up.
5920 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5921 lt_cv_file_magic_cmd=/usr/bin/file
5922 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5923 ;;
5924 esac
5925 else
5926 lt_cv_deplibs_check_method=pass_all
5927 fi
5928 ;;
5929
5930gnu*)
5931 lt_cv_deplibs_check_method=pass_all
d45dc31f 5932 ;;
d7040cdb
SE
5933
5934hpux10.20* | hpux11*)
5935 lt_cv_file_magic_cmd=/usr/bin/file
5936 case $host_cpu in
5937 ia64*)
5938 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5939 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5940 ;;
5941 hppa*64*)
5942 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]'
5943 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5944 ;;
d45dc31f 5945 *)
d7040cdb
SE
5946 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5947 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5948 ;;
5949 esac
5950 ;;
42ecbf5e 5951
d7040cdb
SE
5952interix[3-9]*)
5953 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5954 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5955 ;;
42ecbf5e 5956
d7040cdb
SE
5957irix5* | irix6* | nonstopux*)
5958 case $LD in
5959 *-32|*"-32 ") libmagic=32-bit;;
5960 *-n32|*"-n32 ") libmagic=N32;;
5961 *-64|*"-64 ") libmagic=64-bit;;
5962 *) libmagic=never-match;;
5963 esac
5964 lt_cv_deplibs_check_method=pass_all
d45dc31f 5965 ;;
42ecbf5e 5966
d7040cdb
SE
5967# This must be Linux ELF.
5968linux* | k*bsd*-gnu)
5969 lt_cv_deplibs_check_method=pass_all
5970 ;;
252b5132 5971
d7040cdb
SE
5972netbsd*)
5973 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5974 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
d45dc31f 5975 else
d7040cdb 5976 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
d45dc31f 5977 fi
d7040cdb
SE
5978 ;;
5979
5980newos6*)
5981 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5982 lt_cv_file_magic_cmd=/usr/bin/file
5983 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5984 ;;
5985
5986*nto* | *qnx*)
5987 lt_cv_deplibs_check_method=pass_all
5988 ;;
42ecbf5e 5989
d7040cdb
SE
5990openbsd*)
5991 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5992 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5993 else
5994 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
d45dc31f
SE
5995 fi
5996 ;;
d7040cdb
SE
5997
5998osf3* | osf4* | osf5*)
5999 lt_cv_deplibs_check_method=pass_all
6000 ;;
6001
6002rdos*)
6003 lt_cv_deplibs_check_method=pass_all
6004 ;;
6005
6006solaris*)
6007 lt_cv_deplibs_check_method=pass_all
6008 ;;
6009
6010sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6011 lt_cv_deplibs_check_method=pass_all
6012 ;;
6013
6014sysv4 | sysv4.3*)
6015 case $host_vendor in
6016 motorola)
6017 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]'
6018 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6019 ;;
6020 ncr)
6021 lt_cv_deplibs_check_method=pass_all
6022 ;;
6023 sequent)
6024 lt_cv_file_magic_cmd='/bin/file'
6025 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6026 ;;
6027 sni)
6028 lt_cv_file_magic_cmd='/bin/file'
6029 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6030 lt_cv_file_magic_test_file=/lib/libc.so
6031 ;;
6032 siemens)
6033 lt_cv_deplibs_check_method=pass_all
6034 ;;
6035 pc)
6036 lt_cv_deplibs_check_method=pass_all
6037 ;;
6038 esac
6039 ;;
6040
6041tpf*)
6042 lt_cv_deplibs_check_method=pass_all
6043 ;;
d45dc31f 6044esac
42ecbf5e 6045
d7040cdb
SE
6046fi
6047echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6048echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6049file_magic_cmd=$lt_cv_file_magic_cmd
6050deplibs_check_method=$lt_cv_deplibs_check_method
6051test -z "$deplibs_check_method" && deplibs_check_method=unknown
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
d45dc31f 6064if test -n "$ac_tool_prefix"; then
d7040cdb
SE
6065 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6066set dummy ${ac_tool_prefix}ar; ac_word=$2
d45dc31f
SE
6067echo "$as_me:$LINENO: checking for $ac_word" >&5
6068echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d7040cdb 6069if test "${ac_cv_prog_AR+set}" = set; then
d45dc31f 6070 echo $ECHO_N "(cached) $ECHO_C" >&6
42ecbf5e 6071else
d7040cdb
SE
6072 if test -n "$AR"; then
6073 ac_cv_prog_AR="$AR" # Let the user override the test.
d45dc31f
SE
6074else
6075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6076for as_dir in $PATH
6077do
6078 IFS=$as_save_IFS
6079 test -z "$as_dir" && as_dir=.
6080 for ac_exec_ext in '' $ac_executable_extensions; do
6081 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 6082 ac_cv_prog_AR="${ac_tool_prefix}ar"
d45dc31f
SE
6083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6084 break 2
6085 fi
6086done
6087done
42ecbf5e 6088
42ecbf5e 6089fi
d45dc31f 6090fi
d7040cdb
SE
6091AR=$ac_cv_prog_AR
6092if test -n "$AR"; then
6093 echo "$as_me:$LINENO: result: $AR" >&5
6094echo "${ECHO_T}$AR" >&6
d45dc31f
SE
6095else
6096 echo "$as_me:$LINENO: result: no" >&5
6097echo "${ECHO_T}no" >&6
6098fi
42ecbf5e
DJ
6099
6100fi
d7040cdb
SE
6101if test -z "$ac_cv_prog_AR"; then
6102 ac_ct_AR=$AR
6103 # Extract the first word of "ar", so it can be a program name with args.
6104set dummy ar; ac_word=$2
d45dc31f
SE
6105echo "$as_me:$LINENO: checking for $ac_word" >&5
6106echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d7040cdb 6107if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
42ecbf5e
DJ
6108 echo $ECHO_N "(cached) $ECHO_C" >&6
6109else
d7040cdb
SE
6110 if test -n "$ac_ct_AR"; then
6111 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
42ecbf5e 6112else
d45dc31f
SE
6113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6114for as_dir in $PATH
6115do
6116 IFS=$as_save_IFS
6117 test -z "$as_dir" && as_dir=.
6118 for ac_exec_ext in '' $ac_executable_extensions; do
6119 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 6120 ac_cv_prog_ac_ct_AR="ar"
d45dc31f
SE
6121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6122 break 2
6123 fi
6124done
6125done
42ecbf5e 6126
d7040cdb 6127 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
42ecbf5e 6128fi
42ecbf5e 6129fi
d7040cdb
SE
6130ac_ct_AR=$ac_cv_prog_ac_ct_AR
6131if test -n "$ac_ct_AR"; then
6132 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6133echo "${ECHO_T}$ac_ct_AR" >&6
252b5132 6134else
d45dc31f
SE
6135 echo "$as_me:$LINENO: result: no" >&5
6136echo "${ECHO_T}no" >&6
252b5132 6137fi
252b5132 6138
d7040cdb 6139 AR=$ac_ct_AR
d45dc31f 6140else
d7040cdb 6141 AR="$ac_cv_prog_AR"
d45dc31f 6142fi
42ecbf5e 6143
d7040cdb
SE
6144test -z "$AR" && AR=ar
6145test -z "$AR_FLAGS" && AR_FLAGS=cru
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
d45dc31f
SE
6157if test -n "$ac_tool_prefix"; then
6158 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6159set dummy ${ac_tool_prefix}strip; ac_word=$2
6160echo "$as_me:$LINENO: checking for $ac_word" >&5
6161echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6162if test "${ac_cv_prog_STRIP+set}" = set; then
6163 echo $ECHO_N "(cached) $ECHO_C" >&6
6164else
6165 if test -n "$STRIP"; then
6166 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6167else
6168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6169for as_dir in $PATH
42ecbf5e 6170do
d45dc31f
SE
6171 IFS=$as_save_IFS
6172 test -z "$as_dir" && as_dir=.
6173 for ac_exec_ext in '' $ac_executable_extensions; do
6174 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6175 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6177 break 2
6178 fi
6179done
6180done
6181
6182fi
6183fi
6184STRIP=$ac_cv_prog_STRIP
6185if test -n "$STRIP"; then
6186 echo "$as_me:$LINENO: result: $STRIP" >&5
6187echo "${ECHO_T}$STRIP" >&6
252b5132 6188else
d45dc31f
SE
6189 echo "$as_me:$LINENO: result: no" >&5
6190echo "${ECHO_T}no" >&6
6191fi
42ecbf5e 6192
252b5132 6193fi
d45dc31f
SE
6194if test -z "$ac_cv_prog_STRIP"; then
6195 ac_ct_STRIP=$STRIP
6196 # Extract the first word of "strip", so it can be a program name with args.
6197set dummy strip; ac_word=$2
6198echo "$as_me:$LINENO: checking for $ac_word" >&5
6199echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6200if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6201 echo $ECHO_N "(cached) $ECHO_C" >&6
6202else
6203 if test -n "$ac_ct_STRIP"; then
6204 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6205else
6206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6207for as_dir in $PATH
6208do
6209 IFS=$as_save_IFS
6210 test -z "$as_dir" && as_dir=.
6211 for ac_exec_ext in '' $ac_executable_extensions; do
6212 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6213 ac_cv_prog_ac_ct_STRIP="strip"
6214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6215 break 2
6216 fi
6217done
42ecbf5e 6218done
42ecbf5e 6219
d45dc31f
SE
6220 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6221fi
6222fi
6223ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6224if test -n "$ac_ct_STRIP"; then
6225 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6226echo "${ECHO_T}$ac_ct_STRIP" >&6
6227else
6228 echo "$as_me:$LINENO: result: no" >&5
6229echo "${ECHO_T}no" >&6
252b5132 6230fi
e5a52504 6231
d45dc31f
SE
6232 STRIP=$ac_ct_STRIP
6233else
6234 STRIP="$ac_cv_prog_STRIP"
6235fi
e5a52504 6236
d7040cdb 6237test -z "$STRIP" && STRIP=:
d45dc31f 6238
d45dc31f
SE
6239
6240
d45dc31f 6241
d45dc31f
SE
6242
6243
d7040cdb
SE
6244if test -n "$ac_tool_prefix"; then
6245 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6246set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6247echo "$as_me:$LINENO: checking for $ac_word" >&5
6248echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6249if test "${ac_cv_prog_RANLIB+set}" = set; then
6250 echo $ECHO_N "(cached) $ECHO_C" >&6
d45dc31f 6251else
d7040cdb
SE
6252 if test -n "$RANLIB"; then
6253 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6254else
6255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6256for as_dir in $PATH
6257do
6258 IFS=$as_save_IFS
6259 test -z "$as_dir" && as_dir=.
6260 for ac_exec_ext in '' $ac_executable_extensions; do
6261 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6262 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6264 break 2
d45dc31f 6265 fi
d7040cdb
SE
6266done
6267done
d45dc31f 6268
d7040cdb
SE
6269fi
6270fi
6271RANLIB=$ac_cv_prog_RANLIB
6272if test -n "$RANLIB"; then
6273 echo "$as_me:$LINENO: result: $RANLIB" >&5
6274echo "${ECHO_T}$RANLIB" >&6
6275else
6276 echo "$as_me:$LINENO: result: no" >&5
6277echo "${ECHO_T}no" >&6
6278fi
d45dc31f 6279
d7040cdb
SE
6280fi
6281if test -z "$ac_cv_prog_RANLIB"; then
6282 ac_ct_RANLIB=$RANLIB
6283 # Extract the first word of "ranlib", so it can be a program name with args.
6284set dummy ranlib; ac_word=$2
6285echo "$as_me:$LINENO: checking for $ac_word" >&5
6286echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6287if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6288 echo $ECHO_N "(cached) $ECHO_C" >&6
6289else
6290 if test -n "$ac_ct_RANLIB"; then
6291 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6292else
6293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6294for as_dir in $PATH
6295do
6296 IFS=$as_save_IFS
6297 test -z "$as_dir" && as_dir=.
6298 for ac_exec_ext in '' $ac_executable_extensions; do
6299 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6300 ac_cv_prog_ac_ct_RANLIB="ranlib"
6301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6302 break 2
d45dc31f 6303 fi
d7040cdb
SE
6304done
6305done
d45dc31f 6306
d7040cdb
SE
6307 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6308fi
6309fi
6310ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6311if test -n "$ac_ct_RANLIB"; then
6312 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6313echo "${ECHO_T}$ac_ct_RANLIB" >&6
d15b04bd 6314else
d7040cdb
SE
6315 echo "$as_me:$LINENO: result: no" >&5
6316echo "${ECHO_T}no" >&6
6317fi
252b5132 6318
d7040cdb
SE
6319 RANLIB=$ac_ct_RANLIB
6320else
6321 RANLIB="$ac_cv_prog_RANLIB"
6322fi
d45dc31f 6323
d7040cdb 6324test -z "$RANLIB" && RANLIB=:
d45dc31f 6325
d45dc31f 6326
d45dc31f 6327
42ecbf5e 6328
e5a52504 6329
d7040cdb
SE
6330
6331# Determine commands to create old-style static archives.
718a6fd8 6332old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
d7040cdb
SE
6333old_postinstall_cmds='chmod 644 $oldlib'
6334old_postuninstall_cmds=
6335
6336if test -n "$RANLIB"; then
6337 case $host_os in
6338 openbsd*)
6339 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6340 ;;
6341 *)
6342 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6343 ;;
6344 esac
6345 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
d45dc31f 6346fi
d45dc31f
SE
6347
6348
d45dc31f
SE
6349
6350
d15b04bd 6351
3e321448 6352
d45dc31f 6353
d45dc31f 6354
d45dc31f
SE
6355
6356
d45dc31f 6357
d45dc31f 6358
d45dc31f
SE
6359
6360
6361
6362
6363
6364
6365
d45dc31f 6366
d45dc31f 6367
d45dc31f 6368
d45dc31f 6369
d45dc31f 6370
d45dc31f 6371
d45dc31f 6372
d45dc31f 6373
3e321448
L
6374
6375
d45dc31f
SE
6376
6377
d45dc31f
SE
6378
6379
d45dc31f 6380
d7040cdb
SE
6381# If no C compiler was specified, use CC.
6382LTCC=${LTCC-"$CC"}
42ecbf5e 6383
d7040cdb
SE
6384# If no C compiler flags were specified, use CFLAGS.
6385LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
e5a52504 6386
d7040cdb
SE
6387# Allow CC to be a program name with arguments.
6388compiler=$CC
d15b04bd 6389
d7040cdb
SE
6390
6391# Check for command to grab the raw symbol name followed by C symbol from nm.
6392echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6393echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6394if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
42ecbf5e 6395 echo $ECHO_N "(cached) $ECHO_C" >&6
d15b04bd 6396else
d7040cdb
SE
6397
6398# These are sane defaults that work on at least a few old systems.
6399# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6400
6401# Character class describing NM global symbol codes.
6402symcode='[BCDEGRST]'
6403
6404# Regexp to match symbols that can be accessed directly from C.
6405sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6406
6407# Define system-specific variables.
6408case $host_os in
6409aix*)
6410 symcode='[BCDT]'
6411 ;;
718a6fd8 6412cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
6413 symcode='[ABCDGISTW]'
6414 ;;
6415hpux*)
6416 if test "$host_cpu" = ia64; then
6417 symcode='[ABCDEGRST]'
42ecbf5e 6418 fi
d7040cdb
SE
6419 ;;
6420irix* | nonstopux*)
6421 symcode='[BCDEGRST]'
6422 ;;
6423osf*)
6424 symcode='[BCDEGQRST]'
6425 ;;
6426solaris*)
6427 symcode='[BDRT]'
6428 ;;
6429sco3.2v5*)
6430 symcode='[DT]'
6431 ;;
6432sysv4.2uw2*)
6433 symcode='[DT]'
6434 ;;
6435sysv5* | sco5v6* | unixware* | OpenUNIX*)
6436 symcode='[ABDT]'
6437 ;;
6438sysv4)
6439 symcode='[DFNSTU]'
6440 ;;
6441esac
d15b04bd 6442
d7040cdb
SE
6443# If we're using GNU nm, then use its standard symbol codes.
6444case `$NM -V 2>&1` in
6445*GNU* | *'with BFD'*)
6446 symcode='[ABCDGIRSTW]' ;;
6447esac
e5a52504 6448
d7040cdb
SE
6449# Transform an extracted symbol line into a proper C declaration.
6450# Some systems (esp. on ia64) link data and code symbols differently,
7357c5b6
AM
6451# so use this general approach.
6452lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
d7040cdb 6453
7357c5b6
AM
6454# Transform an extracted symbol line into symbol name and symbol address
6455lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
718a6fd8 6456lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
d7040cdb 6457
7357c5b6
AM
6458# Handle CRLF in mingw tool chain
6459opt_cr=
6460case $build_os in
6461mingw*)
6462 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6463 ;;
6464esac
d7040cdb 6465
7357c5b6
AM
6466# Try without a prefix underscore, then with it.
6467for ac_symprfx in "" "_"; do
d7040cdb 6468
7357c5b6
AM
6469 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6470 symxfrm="\\1 $ac_symprfx\\2 \\2"
d7040cdb 6471
7357c5b6
AM
6472 # Write the raw and C identifiers.
6473 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6474 # Fake it for dumpbin and say T for any non-static function
6475 # and D for any global variable.
6476 # Also find C++ and __fastcall symbols from MSVC++,
6477 # which start with @ or ?.
6478 lt_cv_sys_global_symbol_pipe="$AWK '"\
6479" {last_section=section; section=\$ 3};"\
6480" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6481" \$ 0!~/External *\|/{next};"\
6482" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6483" {if(hide[section]) next};"\
6484" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6485" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6486" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6487" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6488" ' prfx=^$ac_symprfx"
6489 else
6490 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6491 fi
6492
6493 # Check to see that the pipe works correctly.
6494 pipe_works=no
6495
6496 rm -f conftest*
6497 cat > conftest.$ac_ext <<_LT_EOF
6498#ifdef __cplusplus
6499extern "C" {
6500#endif
6501char nm_test_var;
6502void nm_test_func(void);
6503void nm_test_func(void){}
6504#ifdef __cplusplus
d7040cdb 6505}
7357c5b6
AM
6506#endif
6507int main(){nm_test_var='a';nm_test_func();return(0);}
6508_LT_EOF
6509
6510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6511 (eval $ac_compile) 2>&5
42ecbf5e
DJ
6512 ac_status=$?
6513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357c5b6
AM
6514 (exit $ac_status); }; then
6515 # Now try to grab the symbols.
6516 nlist=conftest.nm
6517 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6518 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
42ecbf5e
DJ
6519 ac_status=$?
6520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357c5b6
AM
6521 (exit $ac_status); } && test -s "$nlist"; then
6522 # Try sorting and uniquifying the output.
6523 if sort "$nlist" | uniq > "$nlist"T; then
6524 mv -f "$nlist"T "$nlist"
6525 else
6526 rm -f "$nlist"T
6527 fi
d7040cdb 6528
7357c5b6
AM
6529 # Make sure that we snagged all the symbols we need.
6530 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6531 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6532 cat <<_LT_EOF > conftest.$ac_ext
6533#ifdef __cplusplus
6534extern "C" {
6535#endif
e5a52504 6536
7357c5b6
AM
6537_LT_EOF
6538 # Now generate the symbol file.
6539 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7148cc28 6540
7357c5b6 6541 cat <<_LT_EOF >> conftest.$ac_ext
d7040cdb 6542
7357c5b6
AM
6543/* The mapping between symbol names and symbols. */
6544const struct {
6545 const char *name;
6546 void *address;
6547}
6548lt__PROGRAM__LTX_preloaded_symbols[] =
6549{
6550 { "@PROGRAM@", (void *) 0 },
6551_LT_EOF
6552 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6553 cat <<\_LT_EOF >> conftest.$ac_ext
6554 {0, (void *) 0}
6555};
d7040cdb 6556
7357c5b6
AM
6557/* This works around a problem in FreeBSD linker */
6558#ifdef FREEBSD_WORKAROUND
6559static const void *lt_preloaded_setup() {
6560 return lt__PROGRAM__LTX_preloaded_symbols;
6561}
d7040cdb
SE
6562#endif
6563
7357c5b6 6564#ifdef __cplusplus
d7040cdb 6565}
7357c5b6
AM
6566#endif
6567_LT_EOF
6568 # Now try linking the two files.
6569 mv conftest.$ac_objext conftstm.$ac_objext
6570 lt_save_LIBS="$LIBS"
6571 lt_save_CFLAGS="$CFLAGS"
6572 LIBS="conftstm.$ac_objext"
6573 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d7040cdb
SE
6575 (eval $ac_link) 2>&5
6576 ac_status=$?
6577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357c5b6
AM
6578 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6579 pipe_works=yes
6580 fi
6581 LIBS="$lt_save_LIBS"
6582 CFLAGS="$lt_save_CFLAGS"
6583 else
6584 echo "cannot find nm_test_func in $nlist" >&5
6585 fi
6586 else
6587 echo "cannot find nm_test_var in $nlist" >&5
6588 fi
6589 else
6590 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6591 fi
6592 else
6593 echo "$progname: failed program was:" >&5
6594 cat conftest.$ac_ext >&5
6595 fi
718a6fd8 6596 rm -rf conftest* conftst*
7357c5b6
AM
6597
6598 # Do not use the global_symbol_pipe unless it works.
6599 if test "$pipe_works" = yes; then
6600 break
6601 else
6602 lt_cv_sys_global_symbol_pipe=
6603 fi
6604done
d7040cdb 6605
d7040cdb 6606fi
7357c5b6
AM
6607
6608if test -z "$lt_cv_sys_global_symbol_pipe"; then
6609 lt_cv_sys_global_symbol_to_cdecl=
d7040cdb 6610fi
7357c5b6
AM
6611if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6612 echo "$as_me:$LINENO: result: failed" >&5
6613echo "${ECHO_T}failed" >&6
6614else
6615 echo "$as_me:$LINENO: result: ok" >&5
6616echo "${ECHO_T}ok" >&6
d7040cdb 6617fi
20e95c23 6618
20e95c23
DJ
6619
6620
20e95c23
DJ
6621
6622
20e95c23 6623
20e95c23 6624
20e95c23 6625
20e95c23 6626
20e95c23 6627
20e95c23
DJ
6628
6629
7357c5b6
AM
6630
6631
6632
718a6fd8
SE
6633
6634
6635
6636
6637
7357c5b6
AM
6638
6639
6640# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6641if test "${enable_libtool_lock+set}" = set; then
6642 enableval="$enable_libtool_lock"
6643
6644fi;
6645test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6646
6647# Some flags need to be propagated to the compiler or linker for good
6648# libtool support.
6649case $host in
6650ia64-*-hpux*)
6651 # Find out which ABI we are using.
6652 echo 'int i;' > conftest.$ac_ext
6653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6654 (eval $ac_compile) 2>&5
6655 ac_status=$?
6656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6657 (exit $ac_status); }; then
6658 case `/usr/bin/file conftest.$ac_objext` in
6659 *ELF-32*)
6660 HPUX_IA64_MODE="32"
6661 ;;
6662 *ELF-64*)
6663 HPUX_IA64_MODE="64"
6664 ;;
6665 esac
6666 fi
6667 rm -rf conftest*
6668 ;;
6669*-*-irix6*)
6670 # Find out which ABI we are using.
29670fb9 6671 echo '#line 6671 "configure"' > conftest.$ac_ext
7357c5b6
AM
6672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6673 (eval $ac_compile) 2>&5
6674 ac_status=$?
6675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676 (exit $ac_status); }; then
6677 if test "$lt_cv_prog_gnu_ld" = yes; then
6678 case `/usr/bin/file conftest.$ac_objext` in
6679 *32-bit*)
6680 LD="${LD-ld} -melf32bsmip"
6681 ;;
6682 *N32*)
6683 LD="${LD-ld} -melf32bmipn32"
6684 ;;
6685 *64-bit*)
6686 LD="${LD-ld} -melf64bmip"
6687 ;;
6688 esac
6689 else
6690 case `/usr/bin/file conftest.$ac_objext` in
6691 *32-bit*)
6692 LD="${LD-ld} -32"
6693 ;;
6694 *N32*)
6695 LD="${LD-ld} -n32"
6696 ;;
6697 *64-bit*)
6698 LD="${LD-ld} -64"
6699 ;;
6700 esac
6701 fi
6702 fi
6703 rm -rf conftest*
6704 ;;
6705
6706x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6707s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6708 # Find out which ABI we are using.
6709 echo 'int i;' > conftest.$ac_ext
6710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6711 (eval $ac_compile) 2>&5
6712 ac_status=$?
6713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714 (exit $ac_status); }; then
6715 case `/usr/bin/file conftest.o` in
6716 *32-bit*)
6717 case $host in
6718 x86_64-*kfreebsd*-gnu)
6719 LD="${LD-ld} -m elf_i386_fbsd"
6720 ;;
6721 x86_64-*linux*)
6722 LD="${LD-ld} -m elf_i386"
6723 ;;
6724 ppc64-*linux*|powerpc64-*linux*)
6725 LD="${LD-ld} -m elf32ppclinux"
6726 ;;
6727 s390x-*linux*)
6728 LD="${LD-ld} -m elf_s390"
6729 ;;
6730 sparc64-*linux*)
6731 LD="${LD-ld} -m elf32_sparc"
6732 ;;
6733 esac
6734 ;;
6735 *64-bit*)
6736 case $host in
6737 x86_64-*kfreebsd*-gnu)
6738 LD="${LD-ld} -m elf_x86_64_fbsd"
6739 ;;
6740 x86_64-*linux*)
6741 LD="${LD-ld} -m elf_x86_64"
6742 ;;
6743 ppc*-*linux*|powerpc*-*linux*)
6744 LD="${LD-ld} -m elf64ppc"
6745 ;;
6746 s390*-*linux*|s390*-*tpf*)
6747 LD="${LD-ld} -m elf64_s390"
6748 ;;
6749 sparc*-*linux*)
6750 LD="${LD-ld} -m elf64_sparc"
6751 ;;
6752 esac
6753 ;;
6754 esac
6755 fi
6756 rm -rf conftest*
6757 ;;
6758
6759*-*-sco3.2v5*)
6760 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6761 SAVE_CFLAGS="$CFLAGS"
6762 CFLAGS="$CFLAGS -belf"
6763 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6764echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6765if test "${lt_cv_cc_needs_belf+set}" = set; then
d7040cdb
SE
6766 echo $ECHO_N "(cached) $ECHO_C" >&6
6767else
7357c5b6
AM
6768 ac_ext=c
6769ac_cpp='$CPP $CPPFLAGS'
6770ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6771ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6772ac_compiler_gnu=$ac_cv_c_compiler_gnu
6773
6774 cat >conftest.$ac_ext <<_ACEOF
d7040cdb
SE
6775/* confdefs.h. */
6776_ACEOF
6777cat confdefs.h >>conftest.$ac_ext
6778cat >>conftest.$ac_ext <<_ACEOF
6779/* end confdefs.h. */
20e95c23 6780
7357c5b6
AM
6781int
6782main ()
6783{
6784
6785 ;
6786 return 0;
6787}
d7040cdb 6788_ACEOF
7357c5b6
AM
6789rm -f conftest.$ac_objext conftest$ac_exeext
6790if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6791 (eval $ac_link) 2>conftest.er1
d7040cdb
SE
6792 ac_status=$?
6793 grep -v '^ *+' conftest.er1 >conftest.err
6794 rm -f conftest.er1
6795 cat conftest.err >&5
6796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6797 (exit $ac_status); } &&
7357c5b6
AM
6798 { ac_try='test -z "$ac_c_werror_flag"
6799 || test ! -s conftest.err'
d7040cdb
SE
6800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6801 (eval $ac_try) 2>&5
6802 ac_status=$?
6803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804 (exit $ac_status); }; } &&
7357c5b6 6805 { ac_try='test -s conftest$ac_exeext'
d7040cdb
SE
6806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6807 (eval $ac_try) 2>&5
6808 ac_status=$?
6809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6810 (exit $ac_status); }; }; then
7357c5b6 6811 lt_cv_cc_needs_belf=yes
d15b04bd 6812else
d7040cdb
SE
6813 echo "$as_me: failed program was:" >&5
6814sed 's/^/| /' conftest.$ac_ext >&5
20e95c23 6815
7357c5b6 6816lt_cv_cc_needs_belf=no
d7040cdb 6817fi
7357c5b6
AM
6818rm -f conftest.err conftest.$ac_objext \
6819 conftest$ac_exeext conftest.$ac_ext
6820 ac_ext=c
6821ac_cpp='$CPP $CPPFLAGS'
6822ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6823ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6824ac_compiler_gnu=$ac_cv_c_compiler_gnu
20e95c23 6825
718a6fd8
SE
6826fi
6827echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6828echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6829 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6830 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6831 CFLAGS="$SAVE_CFLAGS"
6832 fi
6833 ;;
6834sparc*-*solaris*)
6835 # Find out which ABI we are using.
6836 echo 'int i;' > conftest.$ac_ext
6837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6838 (eval $ac_compile) 2>&5
6839 ac_status=$?
6840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6841 (exit $ac_status); }; then
6842 case `/usr/bin/file conftest.o` in
6843 *64-bit*)
6844 case $lt_cv_prog_gnu_ld in
6845 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6846 *)
6847 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6848 LD="${LD-ld} -64"
6849 fi
6850 ;;
6851 esac
6852 ;;
6853 esac
6854 fi
6855 rm -rf conftest*
6856 ;;
6857esac
6858
6859need_locks="$enable_libtool_lock"
6860
6861
6862 case $host_os in
6863 rhapsody* | darwin*)
6864 if test -n "$ac_tool_prefix"; then
6865 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6866set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6867echo "$as_me:$LINENO: checking for $ac_word" >&5
6868echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6869if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6870 echo $ECHO_N "(cached) $ECHO_C" >&6
6871else
6872 if test -n "$DSYMUTIL"; then
6873 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6874else
6875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6876for as_dir in $PATH
6877do
6878 IFS=$as_save_IFS
6879 test -z "$as_dir" && as_dir=.
6880 for ac_exec_ext in '' $ac_executable_extensions; do
6881 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6882 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6884 break 2
6885 fi
6886done
6887done
6888
6889fi
6890fi
6891DSYMUTIL=$ac_cv_prog_DSYMUTIL
6892if test -n "$DSYMUTIL"; then
6893 echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6894echo "${ECHO_T}$DSYMUTIL" >&6
6895else
6896 echo "$as_me:$LINENO: result: no" >&5
6897echo "${ECHO_T}no" >&6
6898fi
6899
6900fi
6901if test -z "$ac_cv_prog_DSYMUTIL"; then
6902 ac_ct_DSYMUTIL=$DSYMUTIL
6903 # Extract the first word of "dsymutil", so it can be a program name with args.
6904set dummy dsymutil; ac_word=$2
6905echo "$as_me:$LINENO: checking for $ac_word" >&5
6906echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6907if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6908 echo $ECHO_N "(cached) $ECHO_C" >&6
6909else
6910 if test -n "$ac_ct_DSYMUTIL"; then
6911 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6912else
6913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6914for as_dir in $PATH
6915do
6916 IFS=$as_save_IFS
6917 test -z "$as_dir" && as_dir=.
6918 for ac_exec_ext in '' $ac_executable_extensions; do
6919 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6920 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6922 break 2
6923 fi
6924done
6925done
6926
6927 test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
6928fi
6929fi
6930ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6931if test -n "$ac_ct_DSYMUTIL"; then
6932 echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6933echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
6934else
6935 echo "$as_me:$LINENO: result: no" >&5
6936echo "${ECHO_T}no" >&6
6937fi
6938
6939 DSYMUTIL=$ac_ct_DSYMUTIL
6940else
6941 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6942fi
6943
6944 if test -n "$ac_tool_prefix"; then
6945 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6946set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6947echo "$as_me:$LINENO: checking for $ac_word" >&5
6948echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6949if test "${ac_cv_prog_NMEDIT+set}" = set; then
6950 echo $ECHO_N "(cached) $ECHO_C" >&6
6951else
6952 if test -n "$NMEDIT"; then
6953 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6954else
6955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6956for as_dir in $PATH
6957do
6958 IFS=$as_save_IFS
6959 test -z "$as_dir" && as_dir=.
6960 for ac_exec_ext in '' $ac_executable_extensions; do
6961 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6962 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6964 break 2
6965 fi
6966done
6967done
6968
6969fi
6970fi
6971NMEDIT=$ac_cv_prog_NMEDIT
6972if test -n "$NMEDIT"; then
6973 echo "$as_me:$LINENO: result: $NMEDIT" >&5
6974echo "${ECHO_T}$NMEDIT" >&6
6975else
6976 echo "$as_me:$LINENO: result: no" >&5
6977echo "${ECHO_T}no" >&6
6978fi
6979
6980fi
6981if test -z "$ac_cv_prog_NMEDIT"; then
6982 ac_ct_NMEDIT=$NMEDIT
6983 # Extract the first word of "nmedit", so it can be a program name with args.
6984set dummy nmedit; ac_word=$2
6985echo "$as_me:$LINENO: checking for $ac_word" >&5
6986echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6987if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6988 echo $ECHO_N "(cached) $ECHO_C" >&6
6989else
6990 if test -n "$ac_ct_NMEDIT"; then
6991 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6992else
6993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6994for as_dir in $PATH
6995do
6996 IFS=$as_save_IFS
6997 test -z "$as_dir" && as_dir=.
6998 for ac_exec_ext in '' $ac_executable_extensions; do
6999 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7000 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7002 break 2
7003 fi
7004done
7005done
7006
7007 test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
7008fi
7009fi
7010ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7011if test -n "$ac_ct_NMEDIT"; then
7012 echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7013echo "${ECHO_T}$ac_ct_NMEDIT" >&6
7014else
7015 echo "$as_me:$LINENO: result: no" >&5
7016echo "${ECHO_T}no" >&6
7017fi
7018
7019 NMEDIT=$ac_ct_NMEDIT
7020else
7021 NMEDIT="$ac_cv_prog_NMEDIT"
7022fi
7023
7024 if test -n "$ac_tool_prefix"; then
7025 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7026set dummy ${ac_tool_prefix}lipo; ac_word=$2
7027echo "$as_me:$LINENO: checking for $ac_word" >&5
7028echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7029if test "${ac_cv_prog_LIPO+set}" = set; then
7030 echo $ECHO_N "(cached) $ECHO_C" >&6
7031else
7032 if test -n "$LIPO"; then
7033 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7034else
7035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7036for as_dir in $PATH
7037do
7038 IFS=$as_save_IFS
7039 test -z "$as_dir" && as_dir=.
7040 for ac_exec_ext in '' $ac_executable_extensions; do
7041 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7042 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7044 break 2
7045 fi
7046done
7047done
7048
7049fi
7050fi
7051LIPO=$ac_cv_prog_LIPO
7052if test -n "$LIPO"; then
7053 echo "$as_me:$LINENO: result: $LIPO" >&5
7054echo "${ECHO_T}$LIPO" >&6
7055else
7056 echo "$as_me:$LINENO: result: no" >&5
7057echo "${ECHO_T}no" >&6
7058fi
7059
7060fi
7061if test -z "$ac_cv_prog_LIPO"; then
7062 ac_ct_LIPO=$LIPO
7063 # Extract the first word of "lipo", so it can be a program name with args.
7064set dummy lipo; ac_word=$2
7065echo "$as_me:$LINENO: checking for $ac_word" >&5
7066echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7067if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7068 echo $ECHO_N "(cached) $ECHO_C" >&6
7069else
7070 if test -n "$ac_ct_LIPO"; then
7071 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7072else
7073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7074for as_dir in $PATH
7075do
7076 IFS=$as_save_IFS
7077 test -z "$as_dir" && as_dir=.
7078 for ac_exec_ext in '' $ac_executable_extensions; do
7079 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7080 ac_cv_prog_ac_ct_LIPO="lipo"
7081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7082 break 2
7083 fi
7084done
7085done
7086
7087 test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
7088fi
7089fi
7090ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7091if test -n "$ac_ct_LIPO"; then
7092 echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7093echo "${ECHO_T}$ac_ct_LIPO" >&6
7094else
7095 echo "$as_me:$LINENO: result: no" >&5
7096echo "${ECHO_T}no" >&6
7097fi
7098
7099 LIPO=$ac_ct_LIPO
7100else
7101 LIPO="$ac_cv_prog_LIPO"
7102fi
7103
7104 if test -n "$ac_tool_prefix"; then
7105 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7106set dummy ${ac_tool_prefix}otool; ac_word=$2
7107echo "$as_me:$LINENO: checking for $ac_word" >&5
7108echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7109if test "${ac_cv_prog_OTOOL+set}" = set; then
7110 echo $ECHO_N "(cached) $ECHO_C" >&6
7111else
7112 if test -n "$OTOOL"; then
7113 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7114else
7115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7116for as_dir in $PATH
7117do
7118 IFS=$as_save_IFS
7119 test -z "$as_dir" && as_dir=.
7120 for ac_exec_ext in '' $ac_executable_extensions; do
7121 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7122 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7124 break 2
7125 fi
7126done
7127done
7128
7129fi
7130fi
7131OTOOL=$ac_cv_prog_OTOOL
7132if test -n "$OTOOL"; then
7133 echo "$as_me:$LINENO: result: $OTOOL" >&5
7134echo "${ECHO_T}$OTOOL" >&6
7135else
7136 echo "$as_me:$LINENO: result: no" >&5
7137echo "${ECHO_T}no" >&6
7138fi
7139
7140fi
7141if test -z "$ac_cv_prog_OTOOL"; then
7142 ac_ct_OTOOL=$OTOOL
7143 # Extract the first word of "otool", so it can be a program name with args.
7144set dummy otool; ac_word=$2
7145echo "$as_me:$LINENO: checking for $ac_word" >&5
7146echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7147if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7148 echo $ECHO_N "(cached) $ECHO_C" >&6
7149else
7150 if test -n "$ac_ct_OTOOL"; then
7151 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7152else
7153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7154for as_dir in $PATH
7155do
7156 IFS=$as_save_IFS
7157 test -z "$as_dir" && as_dir=.
7158 for ac_exec_ext in '' $ac_executable_extensions; do
7159 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7160 ac_cv_prog_ac_ct_OTOOL="otool"
7161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7162 break 2
7163 fi
7164done
7165done
7166
7167 test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
7168fi
7169fi
7170ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7171if test -n "$ac_ct_OTOOL"; then
7172 echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7173echo "${ECHO_T}$ac_ct_OTOOL" >&6
7174else
7175 echo "$as_me:$LINENO: result: no" >&5
7176echo "${ECHO_T}no" >&6
7177fi
7178
7179 OTOOL=$ac_ct_OTOOL
7180else
7181 OTOOL="$ac_cv_prog_OTOOL"
7182fi
7183
7184 if test -n "$ac_tool_prefix"; then
7185 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7186set dummy ${ac_tool_prefix}otool64; ac_word=$2
7187echo "$as_me:$LINENO: checking for $ac_word" >&5
7188echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7189if test "${ac_cv_prog_OTOOL64+set}" = set; then
7190 echo $ECHO_N "(cached) $ECHO_C" >&6
7191else
7192 if test -n "$OTOOL64"; then
7193 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7194else
7195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7196for as_dir in $PATH
7197do
7198 IFS=$as_save_IFS
7199 test -z "$as_dir" && as_dir=.
7200 for ac_exec_ext in '' $ac_executable_extensions; do
7201 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7202 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7204 break 2
7205 fi
7206done
7207done
7208
7209fi
7210fi
7211OTOOL64=$ac_cv_prog_OTOOL64
7212if test -n "$OTOOL64"; then
7213 echo "$as_me:$LINENO: result: $OTOOL64" >&5
7214echo "${ECHO_T}$OTOOL64" >&6
7215else
7216 echo "$as_me:$LINENO: result: no" >&5
7217echo "${ECHO_T}no" >&6
7218fi
7219
7220fi
7221if test -z "$ac_cv_prog_OTOOL64"; then
7222 ac_ct_OTOOL64=$OTOOL64
7223 # Extract the first word of "otool64", so it can be a program name with args.
7224set dummy otool64; ac_word=$2
7225echo "$as_me:$LINENO: checking for $ac_word" >&5
7226echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7227if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7228 echo $ECHO_N "(cached) $ECHO_C" >&6
7229else
7230 if test -n "$ac_ct_OTOOL64"; then
7231 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7232else
7233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7234for as_dir in $PATH
7235do
7236 IFS=$as_save_IFS
7237 test -z "$as_dir" && as_dir=.
7238 for ac_exec_ext in '' $ac_executable_extensions; do
7239 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7240 ac_cv_prog_ac_ct_OTOOL64="otool64"
7241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7242 break 2
7243 fi
7244done
7245done
7246
7247 test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
7248fi
7249fi
7250ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7251if test -n "$ac_ct_OTOOL64"; then
7252 echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7253echo "${ECHO_T}$ac_ct_OTOOL64" >&6
7254else
7255 echo "$as_me:$LINENO: result: no" >&5
7256echo "${ECHO_T}no" >&6
7257fi
7258
7259 OTOOL64=$ac_ct_OTOOL64
7260else
7261 OTOOL64="$ac_cv_prog_OTOOL64"
7262fi
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290 echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7291echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
7292if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7293 echo $ECHO_N "(cached) $ECHO_C" >&6
7294else
7295 lt_cv_apple_cc_single_mod=no
7296 if test -z "${LT_MULTI_MODULE}"; then
7297 # By default we will add the -single_module flag. You can override
7298 # by either setting the environment variable LT_MULTI_MODULE
7299 # non-empty at configure time, or by adding -multi_module to the
7300 # link flags.
7301 rm -rf libconftest.dylib*
7302 echo "int foo(void){return 1;}" > conftest.c
7303 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7304-dynamiclib -Wl,-single_module conftest.c" >&5
7305 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7306 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7307 _lt_result=$?
7308 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7309 lt_cv_apple_cc_single_mod=yes
7310 else
7311 cat conftest.err >&5
7312 fi
7313 rm -rf libconftest.dylib*
7314 rm -f conftest.*
7315 fi
7316fi
7317echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7318echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
7319 echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7320echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
7321if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7322 echo $ECHO_N "(cached) $ECHO_C" >&6
7323else
7324 lt_cv_ld_exported_symbols_list=no
7325 save_LDFLAGS=$LDFLAGS
7326 echo "_main" > conftest.sym
7327 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7328 cat >conftest.$ac_ext <<_ACEOF
7329/* confdefs.h. */
7330_ACEOF
7331cat confdefs.h >>conftest.$ac_ext
7332cat >>conftest.$ac_ext <<_ACEOF
7333/* end confdefs.h. */
7334
7335int
7336main ()
7337{
7338
7339 ;
7340 return 0;
7341}
7342_ACEOF
7343rm -f conftest.$ac_objext conftest$ac_exeext
7344if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7345 (eval $ac_link) 2>conftest.er1
7346 ac_status=$?
7347 grep -v '^ *+' conftest.er1 >conftest.err
7348 rm -f conftest.er1
7349 cat conftest.err >&5
7350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7351 (exit $ac_status); } &&
7352 { ac_try='test -z "$ac_c_werror_flag"
7353 || test ! -s conftest.err'
7354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7355 (eval $ac_try) 2>&5
7356 ac_status=$?
7357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7358 (exit $ac_status); }; } &&
7359 { ac_try='test -s conftest$ac_exeext'
7360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7361 (eval $ac_try) 2>&5
7362 ac_status=$?
7363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364 (exit $ac_status); }; }; then
7365 lt_cv_ld_exported_symbols_list=yes
7366else
7367 echo "$as_me: failed program was:" >&5
7368sed 's/^/| /' conftest.$ac_ext >&5
7369
7370lt_cv_ld_exported_symbols_list=no
7371fi
7372rm -f conftest.err conftest.$ac_objext \
7373 conftest$ac_exeext conftest.$ac_ext
7374 LDFLAGS="$save_LDFLAGS"
7375
7376fi
7377echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7378echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
7379 case $host_os in
7380 rhapsody* | darwin1.[012])
7381 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7382 darwin1.*)
7383 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7384 darwin*) # darwin 5.x on
7385 # if running on 10.5 or later, the deployment target defaults
7386 # to the OS version, if on x86, and 10.4, the deployment
7387 # target defaults to 10.4. Don't you love it?
7388 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7389 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7390 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7391 10.[012]*)
7392 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7393 10.*)
7394 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7395 esac
7396 ;;
7397 esac
7398 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7399 _lt_dar_single_mod='$single_module'
7400 fi
7401 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7402 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7403 else
7404 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7405 fi
7406 if test "$DSYMUTIL" != ":"; then
7407 _lt_dsymutil='~$DSYMUTIL $lib || :'
7408 else
7409 _lt_dsymutil=
7410 fi
7411 ;;
7412 esac
7413
7414
7415for ac_header in dlfcn.h
7416do
7417as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7418echo "$as_me:$LINENO: checking for $ac_header" >&5
7419echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7420if eval "test \"\${$as_ac_Header+set}\" = set"; then
7421 echo $ECHO_N "(cached) $ECHO_C" >&6
7422else
7423 cat >conftest.$ac_ext <<_ACEOF
7424/* confdefs.h. */
7425_ACEOF
7426cat confdefs.h >>conftest.$ac_ext
7427cat >>conftest.$ac_ext <<_ACEOF
7428/* end confdefs.h. */
7429$ac_includes_default
7430
7431#include <$ac_header>
7432_ACEOF
7433rm -f conftest.$ac_objext
7434if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7435 (eval $ac_compile) 2>conftest.er1
7436 ac_status=$?
7437 grep -v '^ *+' conftest.er1 >conftest.err
7438 rm -f conftest.er1
7439 cat conftest.err >&5
7440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7441 (exit $ac_status); } &&
7442 { ac_try='test -z "$ac_c_werror_flag"
7443 || test ! -s conftest.err'
7444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7445 (eval $ac_try) 2>&5
7446 ac_status=$?
7447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7448 (exit $ac_status); }; } &&
7449 { ac_try='test -s conftest.$ac_objext'
7450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7451 (eval $ac_try) 2>&5
7452 ac_status=$?
7453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7454 (exit $ac_status); }; }; then
7455 eval "$as_ac_Header=yes"
7456else
7457 echo "$as_me: failed program was:" >&5
7458sed 's/^/| /' conftest.$ac_ext >&5
7459
7460eval "$as_ac_Header=no"
7461fi
7462rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7463fi
7464echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7465echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7466if test `eval echo '${'$as_ac_Header'}'` = yes; then
7467 cat >>confdefs.h <<_ACEOF
7468#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7469_ACEOF
7470
7471fi
7472
7473done
7474
7475
7476
7477# Set options
7478
7479
7480
7481 enable_dlopen=no
7482
7483
7484 enable_win32_dll=no
7485
7486
7487 # Check whether --enable-shared or --disable-shared was given.
7488if test "${enable_shared+set}" = set; then
7489 enableval="$enable_shared"
7490 p=${PACKAGE-default}
7491 case $enableval in
7492 yes) enable_shared=yes ;;
7493 no) enable_shared=no ;;
7494 *)
7495 enable_shared=no
7496 # Look at the argument we got. We use all the common list separators.
7497 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7498 for pkg in $enableval; do
7499 IFS="$lt_save_ifs"
7500 if test "X$pkg" = "X$p"; then
7501 enable_shared=yes
7502 fi
7503 done
7504 IFS="$lt_save_ifs"
7505 ;;
7506 esac
7507else
7508 enable_shared=yes
7509fi;
7510
7511
7512
7513
7514
7515
7516
7517
7518 # Check whether --enable-static or --disable-static was given.
7519if test "${enable_static+set}" = set; then
7520 enableval="$enable_static"
7521 p=${PACKAGE-default}
7522 case $enableval in
7523 yes) enable_static=yes ;;
7524 no) enable_static=no ;;
7525 *)
7526 enable_static=no
7527 # Look at the argument we got. We use all the common list separators.
7528 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7529 for pkg in $enableval; do
7530 IFS="$lt_save_ifs"
7531 if test "X$pkg" = "X$p"; then
7532 enable_static=yes
7533 fi
7534 done
7535 IFS="$lt_save_ifs"
7536 ;;
7537 esac
7538else
7539 enable_static=yes
7540fi;
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550# Check whether --with-pic or --without-pic was given.
7551if test "${with_pic+set}" = set; then
7552 withval="$with_pic"
7553 pic_mode="$withval"
7554else
7555 pic_mode=default
7556fi;
7557
7558test -z "$pic_mode" && pic_mode=default
7559
7560
7561
7562
7563
7564
7565
7566 # Check whether --enable-fast-install or --disable-fast-install was given.
7567if test "${enable_fast_install+set}" = set; then
7568 enableval="$enable_fast_install"
7569 p=${PACKAGE-default}
7570 case $enableval in
7571 yes) enable_fast_install=yes ;;
7572 no) enable_fast_install=no ;;
7573 *)
7574 enable_fast_install=no
7575 # Look at the argument we got. We use all the common list separators.
7576 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7577 for pkg in $enableval; do
7578 IFS="$lt_save_ifs"
7579 if test "X$pkg" = "X$p"; then
7580 enable_fast_install=yes
7581 fi
7582 done
7583 IFS="$lt_save_ifs"
7357c5b6
AM
7584 ;;
7585 esac
718a6fd8
SE
7586else
7587 enable_fast_install=yes
7588fi;
20e95c23 7589
20e95c23
DJ
7590
7591
42ecbf5e 7592
d7040cdb 7593
20e95c23 7594
d7040cdb 7595
d7040cdb
SE
7596
7597
7598
7599# This can be used to rebuild libtool when needed
7600LIBTOOL_DEPS="$ltmain"
7601
7602# Always use our own libtool.
7603LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629test -z "$LN_S" && LN_S="ln -s"
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644if test -n "${ZSH_VERSION+set}" ; then
7645 setopt NO_GLOB_SUBST
7646fi
7647
7648echo "$as_me:$LINENO: checking for objdir" >&5
7649echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7650if test "${lt_cv_objdir+set}" = set; then
20e95c23
DJ
7651 echo $ECHO_N "(cached) $ECHO_C" >&6
7652else
d7040cdb
SE
7653 rm -f .libs 2>/dev/null
7654mkdir .libs 2>/dev/null
7655if test -d .libs; then
7656 lt_cv_objdir=.libs
42ecbf5e 7657else
d7040cdb
SE
7658 # MS-DOS does not allow filenames that begin with a dot.
7659 lt_cv_objdir=_libs
7660fi
7661rmdir .libs 2>/dev/null
42ecbf5e 7662fi
d7040cdb
SE
7663echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7664echo "${ECHO_T}$lt_cv_objdir" >&6
7665objdir=$lt_cv_objdir
42ecbf5e 7666
d7040cdb
SE
7667
7668
7669
7670
7671cat >>confdefs.h <<_ACEOF
7672#define LT_OBJDIR "$lt_cv_objdir/"
7673_ACEOF
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691case $host_os in
7692aix3*)
7693 # AIX sometimes has problems with the GCC collect2 program. For some
7694 # reason, if we set the COLLECT_NAMES environment variable, the problems
7695 # vanish in a puff of smoke.
7696 if test "X${COLLECT_NAMES+set}" != Xset; then
7697 COLLECT_NAMES=
7698 export COLLECT_NAMES
7699 fi
7700 ;;
7701esac
7702
7703# Sed substitution that helps us do robust quoting. It backslashifies
7704# metacharacters that are still active within double-quoted strings.
7705sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7706
7707# Same as above, but do not quote variable references.
7708double_quote_subst='s/\(["`\\]\)/\\\1/g'
7709
7710# Sed substitution to delay expansion of an escaped shell variable in a
7711# double_quote_subst'ed string.
7712delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7713
7714# Sed substitution to delay expansion of an escaped single quote.
7715delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7716
7717# Sed substitution to avoid accidental globbing in evaled expressions
7718no_glob_subst='s/\*/\\\*/g'
7719
7720# Global variables:
7721ofile=libtool
7722can_build_shared=yes
7723
7724# All known linkers require a `.a' archive for static linking (except MSVC,
7725# which needs '.lib').
7726libext=a
7727
7728with_gnu_ld="$lt_cv_prog_gnu_ld"
7729
7730old_CC="$CC"
7731old_CFLAGS="$CFLAGS"
7732
7733# Set sane defaults for various variables
7734test -z "$CC" && CC=cc
7735test -z "$LTCC" && LTCC=$CC
7736test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7737test -z "$LD" && LD=ld
7738test -z "$ac_objext" && ac_objext=o
7739
7740for cc_temp in $compiler""; do
7741 case $cc_temp in
7742 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7743 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7744 \-*) ;;
7745 *) break;;
7746 esac
7747done
7748cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7749
7750
7751# Only perform the check for file, if the check method requires it
7752test -z "$MAGIC_CMD" && MAGIC_CMD=file
7753case $deplibs_check_method in
7754file_magic*)
7755 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7756 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7757echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7758if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
42ecbf5e
DJ
7759 echo $ECHO_N "(cached) $ECHO_C" >&6
7760else
d7040cdb
SE
7761 case $MAGIC_CMD in
7762[\\/*] | ?:[\\/]*)
7763 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
20e95c23 7764 ;;
d7040cdb
SE
7765*)
7766 lt_save_MAGIC_CMD="$MAGIC_CMD"
7767 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7768 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7769 for ac_dir in $ac_dummy; do
7770 IFS="$lt_save_ifs"
7771 test -z "$ac_dir" && ac_dir=.
7772 if test -f $ac_dir/${ac_tool_prefix}file; then
7773 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7774 if test -n "$file_magic_test_file"; then
7775 case $deplibs_check_method in
7776 "file_magic "*)
7777 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7778 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7779 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7780 $EGREP "$file_magic_regex" > /dev/null; then
7781 :
7782 else
7783 cat <<_LT_EOF 1>&2
42ecbf5e 7784
d7040cdb
SE
7785*** Warning: the command libtool uses to detect shared libraries,
7786*** $file_magic_cmd, produces output that libtool cannot recognize.
7787*** The result is that libtool may fail to recognize shared libraries
7788*** as such. This will affect the creation of libtool libraries that
7789*** depend on shared libraries, but programs linked with such libtool
7790*** libraries will work regardless of this problem. Nevertheless, you
7791*** may want to report the problem to your system manager and/or to
7792*** bug-libtool@gnu.org
7793
7794_LT_EOF
7795 fi ;;
7796 esac
7797 fi
7798 break
7799 fi
7800 done
7801 IFS="$lt_save_ifs"
7802 MAGIC_CMD="$lt_save_MAGIC_CMD"
20e95c23
DJ
7803 ;;
7804esac
42ecbf5e 7805fi
20e95c23 7806
d7040cdb
SE
7807MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7808if test -n "$MAGIC_CMD"; then
7809 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7810echo "${ECHO_T}$MAGIC_CMD" >&6
42ecbf5e
DJ
7811else
7812 echo "$as_me:$LINENO: result: no" >&5
7813echo "${ECHO_T}no" >&6
7814fi
7815
20e95c23
DJ
7816
7817
42ecbf5e 7818
20e95c23 7819
d7040cdb
SE
7820if test -z "$lt_cv_path_MAGIC_CMD"; then
7821 if test -n "$ac_tool_prefix"; then
7822 echo "$as_me:$LINENO: checking for file" >&5
7823echo $ECHO_N "checking for file... $ECHO_C" >&6
7824if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
42ecbf5e
DJ
7825 echo $ECHO_N "(cached) $ECHO_C" >&6
7826else
d7040cdb
SE
7827 case $MAGIC_CMD in
7828[\\/*] | ?:[\\/]*)
7829 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7830 ;;
7831*)
7832 lt_save_MAGIC_CMD="$MAGIC_CMD"
7833 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7834 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7835 for ac_dir in $ac_dummy; do
7836 IFS="$lt_save_ifs"
7837 test -z "$ac_dir" && ac_dir=.
7838 if test -f $ac_dir/file; then
7839 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7840 if test -n "$file_magic_test_file"; then
7841 case $deplibs_check_method in
7842 "file_magic "*)
7843 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7844 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7845 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7846 $EGREP "$file_magic_regex" > /dev/null; then
7847 :
7848 else
7849 cat <<_LT_EOF 1>&2
7850
7851*** Warning: the command libtool uses to detect shared libraries,
7852*** $file_magic_cmd, produces output that libtool cannot recognize.
7853*** The result is that libtool may fail to recognize shared libraries
7854*** as such. This will affect the creation of libtool libraries that
7855*** depend on shared libraries, but programs linked with such libtool
7856*** libraries will work regardless of this problem. Nevertheless, you
7857*** may want to report the problem to your system manager and/or to
7858*** bug-libtool@gnu.org
7859
7860_LT_EOF
7861 fi ;;
7862 esac
7863 fi
7864 break
7865 fi
7866 done
7867 IFS="$lt_save_ifs"
7868 MAGIC_CMD="$lt_save_MAGIC_CMD"
7869 ;;
20e95c23
DJ
7870esac
7871fi
d7040cdb
SE
7872
7873MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7874if test -n "$MAGIC_CMD"; then
7875 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7876echo "${ECHO_T}$MAGIC_CMD" >&6
20e95c23
DJ
7877else
7878 echo "$as_me:$LINENO: result: no" >&5
7879echo "${ECHO_T}no" >&6
7880fi
7881
20e95c23 7882
42ecbf5e 7883 else
d7040cdb 7884 MAGIC_CMD=:
42ecbf5e 7885 fi
42ecbf5e 7886fi
42ecbf5e 7887
20e95c23 7888 fi
d7040cdb
SE
7889 ;;
7890esac
42ecbf5e 7891
d7040cdb 7892# Use C for the default configuration in the libtool script
42ecbf5e 7893
d7040cdb
SE
7894lt_save_CC="$CC"
7895ac_ext=c
7896ac_cpp='$CPP $CPPFLAGS'
7897ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7898ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7899ac_compiler_gnu=$ac_cv_c_compiler_gnu
42ecbf5e 7900
42ecbf5e 7901
d7040cdb
SE
7902# Source file extension for C test sources.
7903ac_ext=c
42ecbf5e 7904
d7040cdb
SE
7905# Object file extension for compiled C test sources.
7906objext=o
7907objext=$objext
42ecbf5e 7908
d7040cdb
SE
7909# Code to be used in simple compile tests
7910lt_simple_compile_test_code="int some_variable = 0;"
42ecbf5e 7911
d7040cdb
SE
7912# Code to be used in simple link tests
7913lt_simple_link_test_code='int main(){return(0);}'
42ecbf5e 7914
ac48eca1 7915
42ecbf5e 7916
42ecbf5e 7917
d5fbea21 7918
d5fbea21
DJ
7919
7920
d7040cdb
SE
7921# If no C compiler was specified, use CC.
7922LTCC=${LTCC-"$CC"}
20e95c23 7923
d7040cdb
SE
7924# If no C compiler flags were specified, use CFLAGS.
7925LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
42ecbf5e 7926
d7040cdb
SE
7927# Allow CC to be a program name with arguments.
7928compiler=$CC
252b5132 7929
d7040cdb
SE
7930# Save the default compiler, since it gets overwritten when the other
7931# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7932compiler_DEFAULT=$CC
42ecbf5e 7933
d7040cdb
SE
7934# save warnings/boilerplate of simple test code
7935ac_outfile=conftest.$ac_objext
7936echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7937eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7938_lt_compiler_boilerplate=`cat conftest.err`
7939$RM conftest*
252b5132 7940
d7040cdb
SE
7941ac_outfile=conftest.$ac_objext
7942echo "$lt_simple_link_test_code" >conftest.$ac_ext
7943eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7944_lt_linker_boilerplate=`cat conftest.err`
718a6fd8 7945$RM -r conftest*
252b5132 7946
42ecbf5e 7947
d7040cdb
SE
7948## CAVEAT EMPTOR:
7949## There is no encapsulation within the following macros, do not change
7950## the running order or otherwise move them around unless you know exactly
7951## what you are doing...
7952if test -n "$compiler"; then
252b5132 7953
d7040cdb 7954lt_prog_compiler_no_builtin_flag=
252b5132 7955
d7040cdb
SE
7956if test "$GCC" = yes; then
7957 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
d15b04bd 7958
d7040cdb
SE
7959 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7960echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7961if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
20e95c23 7962 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7963else
d7040cdb
SE
7964 lt_cv_prog_compiler_rtti_exceptions=no
7965 ac_outfile=conftest.$ac_objext
7966 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7967 lt_compiler_flag="-fno-rtti -fno-exceptions"
7968 # Insert the option either (1) after the last *FLAGS variable, or
7969 # (2) before a word containing "conftest.", or (3) at the end.
7970 # Note that $ac_compile itself does not contain backslashes and begins
7971 # with a dollar sign (not a hyphen), so the echo should work correctly.
7972 # The option is referenced via a variable to avoid confusing sed.
7973 lt_compile=`echo "$ac_compile" | $SED \
7974 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7975 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7976 -e 's:$: $lt_compiler_flag:'`
29670fb9 7977 (eval echo "\"\$as_me:7977: $lt_compile\"" >&5)
d7040cdb
SE
7978 (eval "$lt_compile" 2>conftest.err)
7979 ac_status=$?
7980 cat conftest.err >&5
29670fb9 7981 echo "$as_me:7981: \$? = $ac_status" >&5
d7040cdb
SE
7982 if (exit $ac_status) && test -s "$ac_outfile"; then
7983 # The compiler can only warn and ignore the option if not recognized
7984 # So say no if there are warnings other than the usual output.
7985 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7986 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7987 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7988 lt_cv_prog_compiler_rtti_exceptions=yes
7989 fi
7990 fi
7991 $RM conftest*
42ecbf5e 7992
252b5132 7993fi
d7040cdb
SE
7994echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7995echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7996
7997if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7998 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
20e95c23 7999else
d7040cdb 8000 :
252b5132 8001fi
252b5132
RH
8002
8003fi
d7040cdb
SE
8004
8005
8006
8007
8008
8009
8010 lt_prog_compiler_wl=
8011lt_prog_compiler_pic=
8012lt_prog_compiler_static=
8013
8014echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8015echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8016
8017 if test "$GCC" = yes; then
8018 lt_prog_compiler_wl='-Wl,'
8019 lt_prog_compiler_static='-static'
8020
8021 case $host_os in
8022 aix*)
8023 # All AIX code is PIC.
8024 if test "$host_cpu" = ia64; then
8025 # AIX 5 now supports IA64 processor
8026 lt_prog_compiler_static='-Bstatic'
8027 fi
8028 ;;
8029
8030 amigaos*)
718a6fd8
SE
8031 case $host_cpu in
8032 powerpc)
8033 # see comment about AmigaOS4 .so support
8034 lt_prog_compiler_pic='-fPIC'
8035 ;;
8036 m68k)
8037 # FIXME: we need at least 68020 code to build shared libraries, but
8038 # adding the `-m68020' flag to GCC prevents building anything better,
8039 # like `-m68040'.
8040 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8041 ;;
8042 esac
d7040cdb
SE
8043 ;;
8044
8045 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8046 # PIC is the default for these OSes.
8047 ;;
8048
718a6fd8 8049 mingw* | cygwin* | pw32* | os2* | cegcc*)
d7040cdb
SE
8050 # This hack is so that the source file can tell whether it is being
8051 # built for inclusion in a dll (and should export symbols for example).
8052 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8053 # (--disable-auto-import) libraries
8054 lt_prog_compiler_pic='-DDLL_EXPORT'
8055 ;;
8056
8057 darwin* | rhapsody*)
8058 # PIC is the default on this platform
8059 # Common symbols not allowed in MH_DYLIB files
8060 lt_prog_compiler_pic='-fno-common'
8061 ;;
8062
8063 hpux*)
718a6fd8
SE
8064 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8065 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8066 # sets the default TLS model and affects inlining.
d7040cdb 8067 case $host_cpu in
718a6fd8 8068 hppa*64*)
d7040cdb
SE
8069 # +Z the default
8070 ;;
8071 *)
8072 lt_prog_compiler_pic='-fPIC'
8073 ;;
8074 esac
8075 ;;
8076
8077 interix[3-9]*)
8078 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8079 # Instead, we relocate shared libraries at runtime.
8080 ;;
8081
8082 msdosdjgpp*)
8083 # Just because we use GCC doesn't mean we suddenly get shared libraries
8084 # on systems that don't support them.
8085 lt_prog_compiler_can_build_shared=no
8086 enable_shared=no
8087 ;;
8088
8089 *nto* | *qnx*)
8090 # QNX uses GNU C++, but need to define -shared option too, otherwise
8091 # it will coredump.
8092 lt_prog_compiler_pic='-fPIC -shared'
8093 ;;
8094
8095 sysv4*MP*)
8096 if test -d /usr/nec; then
8097 lt_prog_compiler_pic=-Kconform_pic
8098 fi
8099 ;;
8100
8101 *)
8102 lt_prog_compiler_pic='-fPIC'
8103 ;;
8104 esac
8105 else
8106 # PORTME Check for flag to pass linker flags through the system compiler.
8107 case $host_os in
8108 aix*)
8109 lt_prog_compiler_wl='-Wl,'
8110 if test "$host_cpu" = ia64; then
8111 # AIX 5 now supports IA64 processor
8112 lt_prog_compiler_static='-Bstatic'
8113 else
8114 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8115 fi
8116 ;;
d7040cdb 8117
718a6fd8 8118 mingw* | cygwin* | pw32* | os2* | cegcc*)
d7040cdb
SE
8119 # This hack is so that the source file can tell whether it is being
8120 # built for inclusion in a dll (and should export symbols for example).
8121 lt_prog_compiler_pic='-DDLL_EXPORT'
8122 ;;
8123
8124 hpux9* | hpux10* | hpux11*)
8125 lt_prog_compiler_wl='-Wl,'
8126 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8127 # not for PA HP-UX.
8128 case $host_cpu in
8129 hppa*64*|ia64*)
8130 # +Z the default
8131 ;;
8132 *)
8133 lt_prog_compiler_pic='+Z'
8134 ;;
8135 esac
8136 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8137 lt_prog_compiler_static='${wl}-a ${wl}archive'
8138 ;;
8139
8140 irix5* | irix6* | nonstopux*)
8141 lt_prog_compiler_wl='-Wl,'
8142 # PIC (with -KPIC) is the default.
8143 lt_prog_compiler_static='-non_shared'
8144 ;;
8145
8146 linux* | k*bsd*-gnu)
8147 case $cc_basename in
718a6fd8
SE
8148 # old Intel for x86_64 which still supported -KPIC.
8149 ecc*)
d7040cdb
SE
8150 lt_prog_compiler_wl='-Wl,'
8151 lt_prog_compiler_pic='-KPIC'
8152 lt_prog_compiler_static='-static'
8153 ;;
718a6fd8
SE
8154 # icc used to be incompatible with GCC.
8155 # ICC 10 doesn't accept -KPIC any more.
8156 icc* | ifort*)
8157 lt_prog_compiler_wl='-Wl,'
8158 lt_prog_compiler_pic='-fPIC'
8159 lt_prog_compiler_static='-static'
8160 ;;
8161 # Lahey Fortran 8.1.
8162 lf95*)
8163 lt_prog_compiler_wl='-Wl,'
8164 lt_prog_compiler_pic='--shared'
8165 lt_prog_compiler_static='--static'
8166 ;;
d7040cdb
SE
8167 pgcc* | pgf77* | pgf90* | pgf95*)
8168 # Portland Group compilers (*not* the Pentium gcc compiler,
8169 # which looks to be a dead project)
8170 lt_prog_compiler_wl='-Wl,'
8171 lt_prog_compiler_pic='-fpic'
8172 lt_prog_compiler_static='-Bstatic'
8173 ;;
8174 ccc*)
8175 lt_prog_compiler_wl='-Wl,'
8176 # All Alpha code is PIC.
8177 lt_prog_compiler_static='-non_shared'
8178 ;;
718a6fd8
SE
8179 xl*)
8180 # IBM XL C 8.0/Fortran 10.1 on PPC
8181 lt_prog_compiler_wl='-Wl,'
8182 lt_prog_compiler_pic='-qpic'
8183 lt_prog_compiler_static='-qstaticlink'
8184 ;;
d7040cdb
SE
8185 *)
8186 case `$CC -V 2>&1 | sed 5q` in
8187 *Sun\ C*)
8188 # Sun C 5.9
8189 lt_prog_compiler_pic='-KPIC'
8190 lt_prog_compiler_static='-Bstatic'
8191 lt_prog_compiler_wl='-Wl,'
8192 ;;
8193 *Sun\ F*)
8194 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8195 lt_prog_compiler_pic='-KPIC'
8196 lt_prog_compiler_static='-Bstatic'
8197 lt_prog_compiler_wl=''
8198 ;;
8199 esac
8200 ;;
8201 esac
8202 ;;
8203
8204 newsos6)
8205 lt_prog_compiler_pic='-KPIC'
8206 lt_prog_compiler_static='-Bstatic'
8207 ;;
8208
8209 *nto* | *qnx*)
8210 # QNX uses GNU C++, but need to define -shared option too, otherwise
8211 # it will coredump.
8212 lt_prog_compiler_pic='-fPIC -shared'
8213 ;;
8214
8215 osf3* | osf4* | osf5*)
8216 lt_prog_compiler_wl='-Wl,'
8217 # All OSF/1 code is PIC.
8218 lt_prog_compiler_static='-non_shared'
8219 ;;
8220
8221 rdos*)
8222 lt_prog_compiler_static='-non_shared'
8223 ;;
8224
8225 solaris*)
8226 lt_prog_compiler_pic='-KPIC'
8227 lt_prog_compiler_static='-Bstatic'
8228 case $cc_basename in
8229 f77* | f90* | f95*)
8230 lt_prog_compiler_wl='-Qoption ld ';;
8231 *)
8232 lt_prog_compiler_wl='-Wl,';;
8233 esac
8234 ;;
8235
8236 sunos4*)
8237 lt_prog_compiler_wl='-Qoption ld '
8238 lt_prog_compiler_pic='-PIC'
8239 lt_prog_compiler_static='-Bstatic'
8240 ;;
8241
8242 sysv4 | sysv4.2uw2* | sysv4.3*)
8243 lt_prog_compiler_wl='-Wl,'
8244 lt_prog_compiler_pic='-KPIC'
8245 lt_prog_compiler_static='-Bstatic'
8246 ;;
8247
8248 sysv4*MP*)
8249 if test -d /usr/nec ;then
8250 lt_prog_compiler_pic='-Kconform_pic'
8251 lt_prog_compiler_static='-Bstatic'
8252 fi
8253 ;;
8254
8255 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8256 lt_prog_compiler_wl='-Wl,'
8257 lt_prog_compiler_pic='-KPIC'
8258 lt_prog_compiler_static='-Bstatic'
8259 ;;
8260
8261 unicos*)
8262 lt_prog_compiler_wl='-Wl,'
8263 lt_prog_compiler_can_build_shared=no
8264 ;;
8265
8266 uts4*)
8267 lt_prog_compiler_pic='-pic'
8268 lt_prog_compiler_static='-Bstatic'
8269 ;;
8270
8271 *)
8272 lt_prog_compiler_can_build_shared=no
8273 ;;
8274 esac
8275 fi
8276
8277case $host_os in
8278 # For platforms which do not support PIC, -DPIC is meaningless:
8279 *djgpp*)
8280 lt_prog_compiler_pic=
8281 ;;
8282 *)
8283 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8284 ;;
8285esac
8286echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8287echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8288
8289
8290
8291
8292
8293
8294#
8295# Check to make sure the PIC flag actually works.
8296#
8297if test -n "$lt_prog_compiler_pic"; then
8298 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8299echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
718a6fd8 8300if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
42ecbf5e
DJ
8301 echo $ECHO_N "(cached) $ECHO_C" >&6
8302else
718a6fd8 8303 lt_cv_prog_compiler_pic_works=no
d7040cdb
SE
8304 ac_outfile=conftest.$ac_objext
8305 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8306 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8307 # Insert the option either (1) after the last *FLAGS variable, or
8308 # (2) before a word containing "conftest.", or (3) at the end.
8309 # Note that $ac_compile itself does not contain backslashes and begins
8310 # with a dollar sign (not a hyphen), so the echo should work correctly.
8311 # The option is referenced via a variable to avoid confusing sed.
8312 lt_compile=`echo "$ac_compile" | $SED \
8313 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8314 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8315 -e 's:$: $lt_compiler_flag:'`
29670fb9 8316 (eval echo "\"\$as_me:8316: $lt_compile\"" >&5)
d7040cdb
SE
8317 (eval "$lt_compile" 2>conftest.err)
8318 ac_status=$?
8319 cat conftest.err >&5
29670fb9 8320 echo "$as_me:8320: \$? = $ac_status" >&5
d7040cdb
SE
8321 if (exit $ac_status) && test -s "$ac_outfile"; then
8322 # The compiler can only warn and ignore the option if not recognized
8323 # So say no if there are warnings other than the usual output.
8324 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8325 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8326 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
718a6fd8 8327 lt_cv_prog_compiler_pic_works=yes
d7040cdb
SE
8328 fi
8329 fi
8330 $RM conftest*
42ecbf5e 8331
252b5132 8332fi
718a6fd8
SE
8333echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8334echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
d7040cdb 8335
718a6fd8 8336if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
d7040cdb
SE
8337 case $lt_prog_compiler_pic in
8338 "" | " "*) ;;
8339 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8340 esac
252b5132 8341else
d7040cdb
SE
8342 lt_prog_compiler_pic=
8343 lt_prog_compiler_can_build_shared=no
252b5132 8344fi
252b5132
RH
8345
8346fi
42ecbf5e 8347
d7040cdb
SE
8348
8349
8350
8351
8352
8353#
8354# Check to make sure the static flag actually works.
8355#
8356wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8357echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8358echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
718a6fd8 8359if test "${lt_cv_prog_compiler_static_works+set}" = set; then
20e95c23 8360 echo $ECHO_N "(cached) $ECHO_C" >&6
42ecbf5e 8361else
718a6fd8 8362 lt_cv_prog_compiler_static_works=no
d7040cdb
SE
8363 save_LDFLAGS="$LDFLAGS"
8364 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8365 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8366 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8367 # The linker can only warn and ignore the option if not recognized
8368 # So say no if there are warnings
8369 if test -s conftest.err; then
8370 # Append any errors to the config.log.
8371 cat conftest.err 1>&5
8372 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8373 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8374 if diff conftest.exp conftest.er2 >/dev/null; then
718a6fd8 8375 lt_cv_prog_compiler_static_works=yes
d7040cdb
SE
8376 fi
8377 else
718a6fd8 8378 lt_cv_prog_compiler_static_works=yes
d7040cdb
SE
8379 fi
8380 fi
718a6fd8 8381 $RM -r conftest*
d7040cdb 8382 LDFLAGS="$save_LDFLAGS"
42ecbf5e 8383
42ecbf5e 8384fi
718a6fd8
SE
8385echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8386echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
d7040cdb 8387
718a6fd8 8388if test x"$lt_cv_prog_compiler_static_works" = xyes; then
d7040cdb
SE
8389 :
8390else
8391 lt_prog_compiler_static=
42ecbf5e 8392fi
42ecbf5e 8393
252b5132 8394
252b5132 8395
42ecbf5e 8396
252b5132 8397
20e95c23 8398
d7040cdb
SE
8399
8400 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8401echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8402if test "${lt_cv_prog_compiler_c_o+set}" = set; then
42ecbf5e 8403 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8404else
d7040cdb
SE
8405 lt_cv_prog_compiler_c_o=no
8406 $RM -r conftest 2>/dev/null
8407 mkdir conftest
8408 cd conftest
8409 mkdir out
8410 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8411
8412 lt_compiler_flag="-o out/conftest2.$ac_objext"
8413 # Insert the option either (1) after the last *FLAGS variable, or
8414 # (2) before a word containing "conftest.", or (3) at the end.
8415 # Note that $ac_compile itself does not contain backslashes and begins
8416 # with a dollar sign (not a hyphen), so the echo should work correctly.
8417 lt_compile=`echo "$ac_compile" | $SED \
8418 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8419 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8420 -e 's:$: $lt_compiler_flag:'`
29670fb9 8421 (eval echo "\"\$as_me:8421: $lt_compile\"" >&5)
d7040cdb
SE
8422 (eval "$lt_compile" 2>out/conftest.err)
8423 ac_status=$?
8424 cat out/conftest.err >&5
29670fb9 8425 echo "$as_me:8425: \$? = $ac_status" >&5
d7040cdb
SE
8426 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8427 then
8428 # The compiler can only warn and ignore the option if not recognized
8429 # So say no if there are warnings
8430 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8431 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8432 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8433 lt_cv_prog_compiler_c_o=yes
8434 fi
8435 fi
8436 chmod u+w . 2>&5
8437 $RM conftest*
8438 # SGI C++ compiler will create directory out/ii_files/ for
8439 # template instantiation
8440 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8441 $RM out/* && rmdir out
8442 cd ..
8443 $RM -r conftest
8444 $RM conftest*
8445
252b5132 8446fi
d7040cdb
SE
8447echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8448echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
42ecbf5e 8449
20e95c23 8450
20e95c23
DJ
8451
8452
d7040cdb
SE
8453
8454
8455 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8456echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8457if test "${lt_cv_prog_compiler_c_o+set}" = set; then
42ecbf5e
DJ
8458 echo $ECHO_N "(cached) $ECHO_C" >&6
8459else
d7040cdb
SE
8460 lt_cv_prog_compiler_c_o=no
8461 $RM -r conftest 2>/dev/null
8462 mkdir conftest
8463 cd conftest
8464 mkdir out
8465 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8466
8467 lt_compiler_flag="-o out/conftest2.$ac_objext"
8468 # Insert the option either (1) after the last *FLAGS variable, or
8469 # (2) before a word containing "conftest.", or (3) at the end.
8470 # Note that $ac_compile itself does not contain backslashes and begins
8471 # with a dollar sign (not a hyphen), so the echo should work correctly.
8472 lt_compile=`echo "$ac_compile" | $SED \
8473 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8474 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8475 -e 's:$: $lt_compiler_flag:'`
29670fb9 8476 (eval echo "\"\$as_me:8476: $lt_compile\"" >&5)
d7040cdb
SE
8477 (eval "$lt_compile" 2>out/conftest.err)
8478 ac_status=$?
8479 cat out/conftest.err >&5
29670fb9 8480 echo "$as_me:8480: \$? = $ac_status" >&5
d7040cdb
SE
8481 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8482 then
8483 # The compiler can only warn and ignore the option if not recognized
8484 # So say no if there are warnings
8485 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8486 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8487 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8488 lt_cv_prog_compiler_c_o=yes
8489 fi
8490 fi
8491 chmod u+w . 2>&5
8492 $RM conftest*
8493 # SGI C++ compiler will create directory out/ii_files/ for
8494 # template instantiation
8495 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8496 $RM out/* && rmdir out
8497 cd ..
8498 $RM -r conftest
8499 $RM conftest*
8500
8501fi
8502echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8503echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8504
8505
8506
8507
8508hard_links="nottested"
8509if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8510 # do not overwrite the value of need_locks provided by the user
8511 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8512echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8513 hard_links=yes
8514 $RM conftest*
8515 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8516 touch conftest.a
8517 ln conftest.a conftest.b 2>&5 || hard_links=no
8518 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8519 echo "$as_me:$LINENO: result: $hard_links" >&5
8520echo "${ECHO_T}$hard_links" >&6
8521 if test "$hard_links" = no; then
8522 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8523echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8524 need_locks=warn
8525 fi
8526else
8527 need_locks=no
8528fi
8529
8530
8531
8532
8533
8534
8535 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8536echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8537
8538 runpath_var=
8539 allow_undefined_flag=
8540 always_export_symbols=no
8541 archive_cmds=
8542 archive_expsym_cmds=
8543 compiler_needs_object=no
8544 enable_shared_with_static_runtimes=no
8545 export_dynamic_flag_spec=
8546 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8547 hardcode_automatic=no
8548 hardcode_direct=no
8549 hardcode_direct_absolute=no
8550 hardcode_libdir_flag_spec=
8551 hardcode_libdir_flag_spec_ld=
8552 hardcode_libdir_separator=
8553 hardcode_minus_L=no
8554 hardcode_shlibpath_var=unsupported
8555 inherit_rpath=no
8556 link_all_deplibs=unknown
8557 module_cmds=
8558 module_expsym_cmds=
8559 old_archive_from_new_cmds=
8560 old_archive_from_expsyms_cmds=
8561 thread_safe_flag_spec=
8562 whole_archive_flag_spec=
8563 # include_expsyms should be a list of space-separated symbols to be *always*
8564 # included in the symbol list
8565 include_expsyms=
8566 # exclude_expsyms can be an extended regexp of symbols to exclude
8567 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8568 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8569 # as well as any symbol that contains `d'.
718a6fd8 8570 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
d7040cdb
SE
8571 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8572 # platforms (ab)use it in PIC code, but their linkers get confused if
8573 # the symbol is explicitly referenced. Since portable code cannot
8574 # rely on this symbol name, it's probably fine to never include it in
8575 # preloaded symbol tables.
718a6fd8 8576 # Exclude shared library initialization/finalization symbols.
d7040cdb
SE
8577 extract_expsyms_cmds=
8578
8579 case $host_os in
718a6fd8 8580 cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
8581 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8582 # When not using gcc, we currently assume that we are using
8583 # Microsoft Visual C++.
8584 if test "$GCC" != yes; then
8585 with_gnu_ld=no
8586 fi
8587 ;;
8588 interix*)
8589 # we just hope/assume this is gcc and not c89 (= MSVC++)
8590 with_gnu_ld=yes
8591 ;;
8592 openbsd*)
8593 with_gnu_ld=no
8594 ;;
8595 esac
8596
8597 ld_shlibs=yes
8598 if test "$with_gnu_ld" = yes; then
8599 # If archive_cmds runs LD, not CC, wlarc should be empty
8600 wlarc='${wl}'
8601
8602 # Set some defaults for GNU ld with shared library support. These
8603 # are reset later if shared libraries are not supported. Putting them
8604 # here allows them to be overridden if necessary.
8605 runpath_var=LD_RUN_PATH
8606 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8607 export_dynamic_flag_spec='${wl}--export-dynamic'
8608 # ancient GNU ld didn't support --whole-archive et. al.
8609 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8610 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8611 else
8612 whole_archive_flag_spec=
8613 fi
8614 supports_anon_versioning=no
8615 case `$LD -v 2>&1` in
8616 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8617 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8618 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8619 *\ 2.11.*) ;; # other 2.11 versions
8620 *) supports_anon_versioning=yes ;;
8621 esac
8622
8623 # See if GNU ld supports shared libraries.
8624 case $host_os in
50e7d84b 8625 aix[3-9]*)
d7040cdb
SE
8626 # On AIX/PPC, the GNU linker is very broken
8627 if test "$host_cpu" != ia64; then
8628 ld_shlibs=no
8629 cat <<_LT_EOF 1>&2
8630
8631*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8632*** to be unable to reliably create shared libraries on AIX.
8633*** Therefore, libtool is disabling shared libraries support. If you
8634*** really care for shared libraries, you may want to modify your PATH
8635*** so that a non-GNU linker is found, and then restart.
8636
8637_LT_EOF
8638 fi
8639 ;;
8640
8641 amigaos*)
718a6fd8
SE
8642 case $host_cpu in
8643 powerpc)
8644 # see comment about AmigaOS4 .so support
8645 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8646 archive_expsym_cmds=''
8647 ;;
8648 m68k)
8649 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)'
8650 hardcode_libdir_flag_spec='-L$libdir'
8651 hardcode_minus_L=yes
8652 ;;
8653 esac
d7040cdb
SE
8654 ;;
8655
8656 beos*)
8657 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8658 allow_undefined_flag=unsupported
8659 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8660 # support --undefined. This deserves some investigation. FIXME
8661 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8662 else
8663 ld_shlibs=no
8664 fi
8665 ;;
8666
718a6fd8 8667 cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
8668 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8669 # as there is no search path for DLLs.
8670 hardcode_libdir_flag_spec='-L$libdir'
8671 allow_undefined_flag=unsupported
8672 always_export_symbols=no
8673 enable_shared_with_static_runtimes=yes
8674 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8675
8676 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8677 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8678 # If the export-symbols file already is a .def file (1st line
8679 # is EXPORTS), use it as is; otherwise, prepend...
8680 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8681 cp $export_symbols $output_objdir/$soname.def;
8682 else
8683 echo EXPORTS > $output_objdir/$soname.def;
8684 cat $export_symbols >> $output_objdir/$soname.def;
8685 fi~
8686 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8687 else
8688 ld_shlibs=no
8689 fi
8690 ;;
8691
8692 interix[3-9]*)
8693 hardcode_direct=no
8694 hardcode_shlibpath_var=no
8695 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8696 export_dynamic_flag_spec='${wl}-E'
8697 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8698 # Instead, shared libraries are loaded at an image base (0x10000000 by
8699 # default) and relocated if they conflict, which is a slow very memory
8700 # consuming and fragmenting process. To avoid this, we pick a random,
8701 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8702 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8703 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8704 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'
8705 ;;
8706
8707 gnu* | linux* | tpf* | k*bsd*-gnu)
8708 tmp_diet=no
8709 if test "$host_os" = linux-dietlibc; then
8710 case $cc_basename in
8711 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8712 esac
8713 fi
8714 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8715 && test "$tmp_diet" = no
8716 then
8717 tmp_addflag=
718a6fd8 8718 tmp_sharedflag='-shared'
d7040cdb
SE
8719 case $cc_basename,$host_cpu in
8720 pgcc*) # Portland Group C compiler
8721 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'
8722 tmp_addflag=' $pic_flag'
8723 ;;
8724 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8725 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'
8726 tmp_addflag=' $pic_flag -Mnomain' ;;
8727 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8728 tmp_addflag=' -i_dynamic' ;;
8729 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8730 tmp_addflag=' -i_dynamic -nofor_main' ;;
8731 ifc* | ifort*) # Intel Fortran compiler
8732 tmp_addflag=' -nofor_main' ;;
718a6fd8
SE
8733 lf95*) # Lahey Fortran 8.1
8734 whole_archive_flag_spec=
8735 tmp_sharedflag='--shared' ;;
8736 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8737 tmp_sharedflag='-qmkshrobj'
8738 tmp_addflag= ;;
d7040cdb
SE
8739 esac
8740 case `$CC -V 2>&1 | sed 5q` in
8741 *Sun\ C*) # Sun C 5.9
8742 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'
8743 compiler_needs_object=yes
8744 tmp_sharedflag='-G' ;;
8745 *Sun\ F*) # Sun Fortran 8.3
8746 tmp_sharedflag='-G' ;;
d7040cdb
SE
8747 esac
8748 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8749
8750 if test "x$supports_anon_versioning" = xyes; then
8751 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8752 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8753 echo "local: *; };" >> $output_objdir/$libname.ver~
8754 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8755 fi
718a6fd8
SE
8756
8757 case $cc_basename in
8758 xlf*)
8759 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8760 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8761 hardcode_libdir_flag_spec=
8762 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8763 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8764 if test "x$supports_anon_versioning" = xyes; then
8765 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8766 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8767 echo "local: *; };" >> $output_objdir/$libname.ver~
8768 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8769 fi
8770 ;;
8771 esac
d7040cdb
SE
8772 else
8773 ld_shlibs=no
8774 fi
8775 ;;
8776
8777 netbsd*)
8778 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8779 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8780 wlarc=
8781 else
8782 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8783 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8784 fi
8785 ;;
8786
8787 solaris*)
8788 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8789 ld_shlibs=no
8790 cat <<_LT_EOF 1>&2
8791
8792*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8793*** create shared libraries on Solaris systems. Therefore, libtool
8794*** is disabling shared libraries support. We urge you to upgrade GNU
8795*** binutils to release 2.9.1 or newer. Another option is to modify
8796*** your PATH or compiler configuration so that the native linker is
8797*** used, and then restart.
8798
8799_LT_EOF
8800 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8801 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8802 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8803 else
8804 ld_shlibs=no
8805 fi
8806 ;;
8807
8808 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8809 case `$LD -v 2>&1` in
8810 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8811 ld_shlibs=no
8812 cat <<_LT_EOF 1>&2
8813
8814*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8815*** reliably create shared libraries on SCO systems. Therefore, libtool
8816*** is disabling shared libraries support. We urge you to upgrade GNU
8817*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8818*** your PATH or compiler configuration so that the native linker is
8819*** used, and then restart.
8820
8821_LT_EOF
8822 ;;
8823 *)
8824 # For security reasons, it is highly recommended that you always
8825 # use absolute paths for naming shared libraries, and exclude the
8826 # DT_RUNPATH tag from executables and libraries. But doing so
8827 # requires that you compile everything twice, which is a pain.
8828 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8829 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8830 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8831 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8832 else
8833 ld_shlibs=no
8834 fi
8835 ;;
8836 esac
8837 ;;
8838
8839 sunos4*)
8840 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8841 wlarc=
8842 hardcode_direct=yes
8843 hardcode_shlibpath_var=no
8844 ;;
8845
8846 *)
8847 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8848 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8849 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8850 else
8851 ld_shlibs=no
8852 fi
8853 ;;
8854 esac
8855
8856 if test "$ld_shlibs" = no; then
8857 runpath_var=
8858 hardcode_libdir_flag_spec=
8859 export_dynamic_flag_spec=
8860 whole_archive_flag_spec=
8861 fi
8862 else
8863 # PORTME fill in a description of your system's linker (not GNU ld)
8864 case $host_os in
8865 aix3*)
8866 allow_undefined_flag=unsupported
8867 always_export_symbols=yes
8868 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'
8869 # Note: this linker hardcodes the directories in LIBPATH if there
8870 # are no directories specified by -L.
8871 hardcode_minus_L=yes
8872 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8873 # Neither direct hardcoding nor static linking is supported with a
8874 # broken collect2.
8875 hardcode_direct=unsupported
8876 fi
8877 ;;
8878
50e7d84b 8879 aix[4-9]*)
d7040cdb
SE
8880 if test "$host_cpu" = ia64; then
8881 # On IA64, the linker does run time linking by default, so we don't
8882 # have to do anything special.
8883 aix_use_runtimelinking=no
8884 exp_sym_flag='-Bexport'
8885 no_entry_flag=""
8886 else
8887 # If we're using GNU nm, then we don't want the "-C" option.
8888 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8889 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8890 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'
8891 else
8892 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'
8893 fi
8894 aix_use_runtimelinking=no
8895
8896 # Test if we are trying to use run time linking or normal
8897 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8898 # need to do runtime linking.
50e7d84b 8899 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
d7040cdb
SE
8900 for ld_flag in $LDFLAGS; do
8901 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8902 aix_use_runtimelinking=yes
8903 break
8904 fi
8905 done
8906 ;;
8907 esac
8908
8909 exp_sym_flag='-bexport'
8910 no_entry_flag='-bnoentry'
8911 fi
8912
8913 # When large executables or shared objects are built, AIX ld can
8914 # have problems creating the table of contents. If linking a library
8915 # or program results in "error TOC overflow" add -mminimal-toc to
8916 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8917 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8918
8919 archive_cmds=''
8920 hardcode_direct=yes
8921 hardcode_direct_absolute=yes
8922 hardcode_libdir_separator=':'
8923 link_all_deplibs=yes
8924 file_list_spec='${wl}-f,'
8925
8926 if test "$GCC" = yes; then
8927 case $host_os in aix4.[012]|aix4.[012].*)
8928 # We only want to do this on AIX 4.2 and lower, the check
8929 # below for broken collect2 doesn't work under 4.3+
8930 collect2name=`${CC} -print-prog-name=collect2`
8931 if test -f "$collect2name" &&
8932 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8933 then
8934 # We have reworked collect2
8935 :
8936 else
8937 # We have old collect2
8938 hardcode_direct=unsupported
8939 # It fails to find uninstalled libraries when the uninstalled
8940 # path is not listed in the libpath. Setting hardcode_minus_L
8941 # to unsupported forces relinking
8942 hardcode_minus_L=yes
8943 hardcode_libdir_flag_spec='-L$libdir'
8944 hardcode_libdir_separator=
8945 fi
8946 ;;
8947 esac
8948 shared_flag='-shared'
8949 if test "$aix_use_runtimelinking" = yes; then
8950 shared_flag="$shared_flag "'${wl}-G'
8951 fi
8952 else
8953 # not using gcc
8954 if test "$host_cpu" = ia64; then
8955 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8956 # chokes on -Wl,-G. The following line is correct:
8957 shared_flag='-G'
8958 else
8959 if test "$aix_use_runtimelinking" = yes; then
8960 shared_flag='${wl}-G'
8961 else
8962 shared_flag='${wl}-bM:SRE'
8963 fi
8964 fi
8965 fi
8966
718a6fd8 8967 export_dynamic_flag_spec='${wl}-bexpall'
d7040cdb
SE
8968 # It seems that -bexpall does not export symbols beginning with
8969 # underscore (_), so it is better to generate a list of symbols to export.
8970 always_export_symbols=yes
8971 if test "$aix_use_runtimelinking" = yes; then
8972 # Warning - without using the other runtime loading flags (-brtl),
8973 # -berok will link without error, but may produce a broken library.
8974 allow_undefined_flag='-berok'
8975 # Determine the default libpath from the value encoded in an
8976 # empty executable.
8977 cat >conftest.$ac_ext <<_ACEOF
42ecbf5e
DJ
8978/* confdefs.h. */
8979_ACEOF
8980cat confdefs.h >>conftest.$ac_ext
8981cat >>conftest.$ac_ext <<_ACEOF
8982/* end confdefs.h. */
d7040cdb
SE
8983
8984int
8985main ()
8986{
8987
8988 ;
8989 return 0;
8990}
42ecbf5e 8991_ACEOF
d7040cdb
SE
8992rm -f conftest.$ac_objext conftest$ac_exeext
8993if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8994 (eval $ac_link) 2>conftest.er1
42ecbf5e
DJ
8995 ac_status=$?
8996 grep -v '^ *+' conftest.er1 >conftest.err
8997 rm -f conftest.er1
8998 cat conftest.err >&5
8999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb 9000 (exit $ac_status); } &&
7357c5b6
AM
9001 { ac_try='test -z "$ac_c_werror_flag"
9002 || test ! -s conftest.err'
d7040cdb
SE
9003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9004 (eval $ac_try) 2>&5
9005 ac_status=$?
9006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007 (exit $ac_status); }; } &&
9008 { ac_try='test -s conftest$ac_exeext'
9009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9010 (eval $ac_try) 2>&5
9011 ac_status=$?
9012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9013 (exit $ac_status); }; }; then
9014
9015lt_aix_libpath_sed='
9016 /Import File Strings/,/^$/ {
9017 /^0/ {
9018 s/^0 *\(.*\)$/\1/
9019 p
9020 }
9021 }'
9022aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9023# Check for a 64-bit object if we didn't find anything.
9024if test -z "$aix_libpath"; then
9025 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
252b5132 9026fi
252b5132 9027else
20e95c23
DJ
9028 echo "$as_me: failed program was:" >&5
9029sed 's/^/| /' conftest.$ac_ext >&5
9030
252b5132 9031fi
d7040cdb
SE
9032rm -f conftest.err conftest.$ac_objext \
9033 conftest$ac_exeext conftest.$ac_ext
9034if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
252b5132 9035
d7040cdb
SE
9036 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9037 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"
9038 else
9039 if test "$host_cpu" = ia64; then
9040 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9041 allow_undefined_flag="-z nodefs"
9042 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"
9043 else
9044 # Determine the default libpath from the value encoded in an
9045 # empty executable.
9046 cat >conftest.$ac_ext <<_ACEOF
42ecbf5e
DJ
9047/* confdefs.h. */
9048_ACEOF
9049cat confdefs.h >>conftest.$ac_ext
9050cat >>conftest.$ac_ext <<_ACEOF
9051/* end confdefs.h. */
d7040cdb
SE
9052
9053int
9054main ()
9055{
9056
9057 ;
9058 return 0;
9059}
42ecbf5e 9060_ACEOF
d7040cdb
SE
9061rm -f conftest.$ac_objext conftest$ac_exeext
9062if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9063 (eval $ac_link) 2>conftest.er1
42ecbf5e
DJ
9064 ac_status=$?
9065 grep -v '^ *+' conftest.er1 >conftest.err
9066 rm -f conftest.er1
9067 cat conftest.err >&5
9068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb 9069 (exit $ac_status); } &&
7357c5b6
AM
9070 { ac_try='test -z "$ac_c_werror_flag"
9071 || test ! -s conftest.err'
d7040cdb
SE
9072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9073 (eval $ac_try) 2>&5
9074 ac_status=$?
9075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9076 (exit $ac_status); }; } &&
9077 { ac_try='test -s conftest$ac_exeext'
9078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9079 (eval $ac_try) 2>&5
9080 ac_status=$?
9081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9082 (exit $ac_status); }; }; then
9083
9084lt_aix_libpath_sed='
9085 /Import File Strings/,/^$/ {
9086 /^0/ {
9087 s/^0 *\(.*\)$/\1/
9088 p
9089 }
9090 }'
9091aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9092# Check for a 64-bit object if we didn't find anything.
9093if test -z "$aix_libpath"; then
9094 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20e95c23 9095fi
252b5132 9096else
42ecbf5e
DJ
9097 echo "$as_me: failed program was:" >&5
9098sed 's/^/| /' conftest.$ac_ext >&5
9099
252b5132 9100fi
d7040cdb
SE
9101rm -f conftest.err conftest.$ac_objext \
9102 conftest$ac_exeext conftest.$ac_ext
9103if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9104
9105 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9106 # Warning - without using the other run time loading flags,
9107 # -berok will link without error, but may produce a broken library.
9108 no_undefined_flag=' ${wl}-bernotok'
9109 allow_undefined_flag=' ${wl}-berok'
9110 # Exported symbols can be pulled into shared objects from archives
9111 whole_archive_flag_spec='$convenience'
9112 archive_cmds_need_lc=yes
9113 # This is similar to how AIX traditionally builds its shared libraries.
9114 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'
9115 fi
9116 fi
9117 ;;
42ecbf5e 9118
d7040cdb 9119 amigaos*)
718a6fd8
SE
9120 case $host_cpu in
9121 powerpc)
9122 # see comment about AmigaOS4 .so support
9123 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9124 archive_expsym_cmds=''
9125 ;;
9126 m68k)
9127 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)'
9128 hardcode_libdir_flag_spec='-L$libdir'
9129 hardcode_minus_L=yes
9130 ;;
9131 esac
d7040cdb 9132 ;;
252b5132 9133
d7040cdb
SE
9134 bsdi[45]*)
9135 export_dynamic_flag_spec=-rdynamic
9136 ;;
252b5132 9137
718a6fd8 9138 cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
9139 # When not using gcc, we currently assume that we are using
9140 # Microsoft Visual C++.
9141 # hardcode_libdir_flag_spec is actually meaningless, as there is
9142 # no search path for DLLs.
9143 hardcode_libdir_flag_spec=' '
9144 allow_undefined_flag=unsupported
9145 # Tell ltmain to make .lib files, not .a files.
9146 libext=lib
9147 # Tell ltmain to make .dll files, not .so files.
9148 shrext_cmds=".dll"
9149 # FIXME: Setting linknames here is a bad hack.
9150 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9151 # The linker will automatically build a .lib file if we build a DLL.
9152 old_archive_from_new_cmds='true'
9153 # FIXME: Should let the user specify the lib program.
9154 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9155 fix_srcfile_path='`cygpath -w "$srcfile"`'
9156 enable_shared_with_static_runtimes=yes
9157 ;;
252b5132 9158
d7040cdb 9159 darwin* | rhapsody*)
c46f8c51 9160
718a6fd8
SE
9161
9162 archive_cmds_need_lc=no
9163 hardcode_direct=no
9164 hardcode_automatic=yes
9165 hardcode_shlibpath_var=unsupported
9166 whole_archive_flag_spec=''
9167 link_all_deplibs=yes
9168 allow_undefined_flag="$_lt_dar_allow_undefined"
9169 case $cc_basename in
9170 ifort*) _lt_dar_can_shared=yes ;;
9171 *) _lt_dar_can_shared=$GCC ;;
9172 esac
9173 if test "$_lt_dar_can_shared" = "yes"; then
9174 output_verbose_link_cmd=echo
9175 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9176 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9177 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9178 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9179
9180 else
9181 ld_shlibs=no
9182 fi
9183
d7040cdb 9184 ;;
42ecbf5e 9185
d7040cdb
SE
9186 dgux*)
9187 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9188 hardcode_libdir_flag_spec='-L$libdir'
9189 hardcode_shlibpath_var=no
9190 ;;
252b5132 9191
d7040cdb
SE
9192 freebsd1*)
9193 ld_shlibs=no
9194 ;;
252b5132 9195
d7040cdb
SE
9196 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9197 # support. Future versions do this automatically, but an explicit c++rt0.o
9198 # does not break anything, and helps significantly (at the cost of a little
9199 # extra space).
9200 freebsd2.2*)
9201 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9202 hardcode_libdir_flag_spec='-R$libdir'
9203 hardcode_direct=yes
9204 hardcode_shlibpath_var=no
9205 ;;
252b5132 9206
d7040cdb
SE
9207 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9208 freebsd2*)
9209 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9210 hardcode_direct=yes
9211 hardcode_minus_L=yes
9212 hardcode_shlibpath_var=no
9213 ;;
42ecbf5e 9214
d7040cdb
SE
9215 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9216 freebsd* | dragonfly*)
9217 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9218 hardcode_libdir_flag_spec='-R$libdir'
9219 hardcode_direct=yes
9220 hardcode_shlibpath_var=no
9221 ;;
252b5132 9222
d7040cdb
SE
9223 hpux9*)
9224 if test "$GCC" = yes; then
9225 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'
9226 else
9227 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'
9228 fi
9229 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9230 hardcode_libdir_separator=:
9231 hardcode_direct=yes
9232
9233 # hardcode_minus_L: Not really in the search PATH,
9234 # but as the default location of the library.
9235 hardcode_minus_L=yes
9236 export_dynamic_flag_spec='${wl}-E'
9237 ;;
20e95c23 9238
d7040cdb
SE
9239 hpux10*)
9240 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9241 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9242 else
9243 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9244 fi
9245 if test "$with_gnu_ld" = no; then
9246 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9247 hardcode_libdir_flag_spec_ld='+b $libdir'
9248 hardcode_libdir_separator=:
9249 hardcode_direct=yes
9250 hardcode_direct_absolute=yes
9251 export_dynamic_flag_spec='${wl}-E'
9252 # hardcode_minus_L: Not really in the search PATH,
9253 # but as the default location of the library.
9254 hardcode_minus_L=yes
9255 fi
9256 ;;
20e95c23 9257
d7040cdb
SE
9258 hpux11*)
9259 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9260 case $host_cpu in
9261 hppa*64*)
9262 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9263 ;;
9264 ia64*)
718a6fd8 9265 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
d7040cdb
SE
9266 ;;
9267 *)
9268 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9269 ;;
9270 esac
9271 else
9272 case $host_cpu in
9273 hppa*64*)
9274 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9275 ;;
9276 ia64*)
9277 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9278 ;;
9279 *)
9280 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9281 ;;
9282 esac
9283 fi
9284 if test "$with_gnu_ld" = no; then
9285 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9286 hardcode_libdir_separator=:
9287
9288 case $host_cpu in
9289 hppa*64*|ia64*)
9290 hardcode_direct=no
9291 hardcode_shlibpath_var=no
9292 ;;
9293 *)
9294 hardcode_direct=yes
9295 hardcode_direct_absolute=yes
9296 export_dynamic_flag_spec='${wl}-E'
9297
9298 # hardcode_minus_L: Not really in the search PATH,
9299 # but as the default location of the library.
9300 hardcode_minus_L=yes
9301 ;;
9302 esac
9303 fi
9304 ;;
9305
9306 irix5* | irix6* | nonstopux*)
9307 if test "$GCC" = yes; then
9308 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'
9309 # Try to use the -exported_symbol ld option, if it does not
9310 # work, assume that -exports_file does not work either and
9311 # implicitly export all symbols.
9312 save_LDFLAGS="$LDFLAGS"
9313 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9314 cat >conftest.$ac_ext <<_ACEOF
9315int foo(void) {}
42ecbf5e 9316_ACEOF
d7040cdb
SE
9317rm -f conftest.$ac_objext conftest$ac_exeext
9318if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9319 (eval $ac_link) 2>conftest.er1
42ecbf5e
DJ
9320 ac_status=$?
9321 grep -v '^ *+' conftest.er1 >conftest.err
9322 rm -f conftest.er1
9323 cat conftest.err >&5
9324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9325 (exit $ac_status); } &&
7357c5b6
AM
9326 { ac_try='test -z "$ac_c_werror_flag"
9327 || test ! -s conftest.err'
42ecbf5e
DJ
9328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9329 (eval $ac_try) 2>&5
9330 ac_status=$?
9331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9332 (exit $ac_status); }; } &&
d7040cdb 9333 { ac_try='test -s conftest$ac_exeext'
42ecbf5e
DJ
9334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9335 (eval $ac_try) 2>&5
9336 ac_status=$?
9337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9338 (exit $ac_status); }; }; then
d7040cdb
SE
9339 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'
9340
42ecbf5e
DJ
9341else
9342 echo "$as_me: failed program was:" >&5
9343sed 's/^/| /' conftest.$ac_ext >&5
9344
42ecbf5e 9345fi
d7040cdb
SE
9346rm -f conftest.err conftest.$ac_objext \
9347 conftest$ac_exeext conftest.$ac_ext
9348 LDFLAGS="$save_LDFLAGS"
9349 else
9350 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'
9351 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'
9352 fi
9353 archive_cmds_need_lc='no'
9354 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9355 hardcode_libdir_separator=:
9356 inherit_rpath=yes
9357 link_all_deplibs=yes
9358 ;;
42ecbf5e 9359
d7040cdb
SE
9360 netbsd*)
9361 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9362 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9363 else
9364 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9365 fi
9366 hardcode_libdir_flag_spec='-R$libdir'
9367 hardcode_direct=yes
9368 hardcode_shlibpath_var=no
9369 ;;
42ecbf5e 9370
d7040cdb
SE
9371 newsos6)
9372 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9373 hardcode_direct=yes
9374 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9375 hardcode_libdir_separator=:
9376 hardcode_shlibpath_var=no
9377 ;;
42ecbf5e 9378
d7040cdb
SE
9379 *nto* | *qnx*)
9380 ;;
252b5132 9381
d7040cdb 9382 openbsd*)
718a6fd8
SE
9383 if test -f /usr/libexec/ld.so; then
9384 hardcode_direct=yes
9385 hardcode_shlibpath_var=no
9386 hardcode_direct_absolute=yes
9387 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
d7040cdb 9388 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
718a6fd8 9389 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
d7040cdb 9390 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
718a6fd8
SE
9391 export_dynamic_flag_spec='${wl}-E'
9392 else
9393 case $host_os in
9394 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9395 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9396 hardcode_libdir_flag_spec='-R$libdir'
9397 ;;
9398 *)
9399 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9400 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9401 ;;
9402 esac
9403 fi
9404 else
9405 ld_shlibs=no
d7040cdb
SE
9406 fi
9407 ;;
252b5132 9408
d7040cdb
SE
9409 os2*)
9410 hardcode_libdir_flag_spec='-L$libdir'
9411 hardcode_minus_L=yes
9412 allow_undefined_flag=unsupported
9413 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'
9414 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9415 ;;
2481e6a2 9416
d7040cdb
SE
9417 osf3*)
9418 if test "$GCC" = yes; then
9419 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9420 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'
9421 else
9422 allow_undefined_flag=' -expect_unresolved \*'
9423 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'
9424 fi
9425 archive_cmds_need_lc='no'
9426 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9427 hardcode_libdir_separator=:
9428 ;;
42ecbf5e 9429
d7040cdb
SE
9430 osf4* | osf5*) # as osf3* with the addition of -msym flag
9431 if test "$GCC" = yes; then
9432 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9433 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'
9434 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9435 else
9436 allow_undefined_flag=' -expect_unresolved \*'
9437 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'
9438 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~
9439 $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 9440
d7040cdb
SE
9441 # Both c and cxx compiler support -rpath directly
9442 hardcode_libdir_flag_spec='-rpath $libdir'
9443 fi
9444 archive_cmds_need_lc='no'
9445 hardcode_libdir_separator=:
9446 ;;
9447
9448 solaris*)
9449 no_undefined_flag=' -z defs'
9450 if test "$GCC" = yes; then
9451 wlarc='${wl}'
9452 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9453 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9454 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9455 else
9456 case `$CC -V 2>&1` in
9457 *"Compilers 5.0"*)
9458 wlarc=''
9459 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9460 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9461 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9462 ;;
9463 *)
9464 wlarc='${wl}'
9465 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9466 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9467 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9468 ;;
9469 esac
9470 fi
9471 hardcode_libdir_flag_spec='-R$libdir'
9472 hardcode_shlibpath_var=no
9473 case $host_os in
9474 solaris2.[0-5] | solaris2.[0-5].*) ;;
9475 *)
9476 # The compiler driver will combine and reorder linker options,
9477 # but understands `-z linker_flag'. GCC discards it without `$wl',
9478 # but is careful enough not to reorder.
9479 # Supported since Solaris 2.6 (maybe 2.5.1?)
9480 if test "$GCC" = yes; then
9481 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9482 else
9483 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9484 fi
9485 ;;
9486 esac
9487 link_all_deplibs=yes
9488 ;;
9489
9490 sunos4*)
9491 if test "x$host_vendor" = xsequent; then
9492 # Use $CC to link under sequent, because it throws in some extra .o
9493 # files that make .init and .fini sections work.
9494 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9495 else
9496 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9497 fi
9498 hardcode_libdir_flag_spec='-L$libdir'
9499 hardcode_direct=yes
9500 hardcode_minus_L=yes
9501 hardcode_shlibpath_var=no
9502 ;;
9503
9504 sysv4)
9505 case $host_vendor in
9506 sni)
9507 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9508 hardcode_direct=yes # is this really true???
9509 ;;
9510 siemens)
9511 ## LD is ld it makes a PLAMLIB
9512 ## CC just makes a GrossModule.
9513 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9514 reload_cmds='$CC -r -o $output$reload_objs'
9515 hardcode_direct=no
9516 ;;
9517 motorola)
9518 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9519 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9520 ;;
9521 esac
9522 runpath_var='LD_RUN_PATH'
9523 hardcode_shlibpath_var=no
9524 ;;
9525
9526 sysv4.3*)
9527 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9528 hardcode_shlibpath_var=no
9529 export_dynamic_flag_spec='-Bexport'
9530 ;;
9531
9532 sysv4*MP*)
9533 if test -d /usr/nec; then
9534 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9535 hardcode_shlibpath_var=no
9536 runpath_var=LD_RUN_PATH
9537 hardcode_runpath_var=yes
9538 ld_shlibs=yes
9539 fi
9540 ;;
9541
9542 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9543 no_undefined_flag='${wl}-z,text'
9544 archive_cmds_need_lc=no
9545 hardcode_shlibpath_var=no
9546 runpath_var='LD_RUN_PATH'
9547
9548 if test "$GCC" = yes; then
9549 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9550 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9551 else
9552 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9553 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9554 fi
9555 ;;
9556
9557 sysv5* | sco3.2v5* | sco5v6*)
9558 # Note: We can NOT use -z defs as we might desire, because we do not
9559 # link with -lc, and that would cause any symbols used from libc to
9560 # always be unresolved, which means just about no library would
9561 # ever link correctly. If we're not using GNU ld we use -z text
9562 # though, which does catch some bad symbols but isn't as heavy-handed
9563 # as -z defs.
9564 no_undefined_flag='${wl}-z,text'
9565 allow_undefined_flag='${wl}-z,nodefs'
9566 archive_cmds_need_lc=no
9567 hardcode_shlibpath_var=no
9568 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9569 hardcode_libdir_separator=':'
9570 link_all_deplibs=yes
9571 export_dynamic_flag_spec='${wl}-Bexport'
9572 runpath_var='LD_RUN_PATH'
9573
9574 if test "$GCC" = yes; then
9575 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9576 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9577 else
9578 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9579 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9580 fi
9581 ;;
9582
9583 uts4*)
9584 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9585 hardcode_libdir_flag_spec='-L$libdir'
9586 hardcode_shlibpath_var=no
9587 ;;
9588
9589 *)
9590 ld_shlibs=no
9591 ;;
9592 esac
9593
9594 if test x$host_vendor = xsni; then
9595 case $host in
9596 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9597 export_dynamic_flag_spec='${wl}-Blargedynsym'
9598 ;;
9599 esac
9600 fi
9601 fi
9602
9603echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9604echo "${ECHO_T}$ld_shlibs" >&6
9605test "$ld_shlibs" = no && can_build_shared=no
9606
9607with_gnu_ld=$with_gnu_ld
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623#
9624# Do we need to explicitly link libc?
9625#
9626case "x$archive_cmds_need_lc" in
9627x|xyes)
9628 # Assume -lc should be added
9629 archive_cmds_need_lc=yes
9630
9631 if test "$enable_shared" = yes && test "$GCC" = yes; then
9632 case $archive_cmds in
9633 *'~'*)
9634 # FIXME: we may have to deal with multi-command sequences.
9635 ;;
9636 '$CC '*)
9637 # Test whether the compiler implicitly links with -lc since on some
9638 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9639 # to ld, don't add -lc before -lgcc.
9640 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9641echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
39144654
RW
9642if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
9643 echo $ECHO_N "(cached) $ECHO_C" >&6
9644else
9645 $RM conftest*
9646 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 9647
39144654 9648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d7040cdb 9649 (eval $ac_compile) 2>&5
20e95c23
DJ
9650 ac_status=$?
9651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb 9652 (exit $ac_status); } 2>conftest.err; then
39144654
RW
9653 soname=conftest
9654 lib=conftest
9655 libobjs=conftest.$ac_objext
9656 deplibs=
9657 wl=$lt_prog_compiler_wl
9658 pic_flag=$lt_prog_compiler_pic
9659 compiler_flags=-v
9660 linker_flags=-v
9661 verstring=
9662 output_objdir=.
9663 libname=conftest
9664 lt_save_allow_undefined_flag=$allow_undefined_flag
9665 allow_undefined_flag=
9666 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
d7040cdb 9667 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20e95c23
DJ
9668 ac_status=$?
9669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb 9670 (exit $ac_status); }
39144654
RW
9671 then
9672 lt_cv_archive_cmds_need_lc=no
9673 else
9674 lt_cv_archive_cmds_need_lc=yes
9675 fi
9676 allow_undefined_flag=$lt_save_allow_undefined_flag
9677 else
9678 cat conftest.err 1>&5
9679 fi
9680 $RM conftest*
9681
9682fi
9683echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
9684echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
9685 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
d7040cdb
SE
9686 ;;
9687 esac
9688 fi
9689 ;;
9690esac
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9849echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
718a6fd8
SE
9850
9851if test "$GCC" = yes; then
d7040cdb
SE
9852 case $host_os in
9853 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9854 *) lt_awk_arg="/^libraries:/" ;;
9855 esac
9856 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9857 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9858 # if the path contains ";" then we assume it to be the separator
9859 # otherwise default to the standard path separator (i.e. ":") - it is
9860 # assumed that no part of a normal pathname contains ";" but that should
9861 # okay in the real world where ";" in dirpaths is itself problematic.
9862 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9863 else
9864 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9865 fi
9866 # Ok, now we have the path, separated by spaces, we can step through it
9867 # and add multilib dir if necessary.
9868 lt_tmp_lt_search_path_spec=
9869 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9870 for lt_sys_path in $lt_search_path_spec; do
9871 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9872 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9873 else
9874 test -d "$lt_sys_path" && \
9875 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9876 fi
9877 done
9878 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9879BEGIN {RS=" "; FS="/|\n";} {
9880 lt_foo="";
9881 lt_count=0;
9882 for (lt_i = NF; lt_i > 0; lt_i--) {
9883 if ($lt_i != "" && $lt_i != ".") {
9884 if ($lt_i == "..") {
9885 lt_count++;
9886 } else {
9887 if (lt_count == 0) {
9888 lt_foo="/" $lt_i lt_foo;
9889 } else {
9890 lt_count--;
9891 }
9892 }
9893 }
9894 }
9895 if (lt_foo != "") { lt_freq[lt_foo]++; }
9896 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9897}'`
9898 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9899else
9900 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9901fi
9902library_names_spec=
9903libname_spec='lib$name'
9904soname_spec=
9905shrext_cmds=".so"
9906postinstall_cmds=
9907postuninstall_cmds=
9908finish_cmds=
9909finish_eval=
9910shlibpath_var=
9911shlibpath_overrides_runpath=unknown
9912version_type=none
9913dynamic_linker="$host_os ld.so"
9914sys_lib_dlsearch_path_spec="/lib /usr/lib"
9915need_lib_prefix=unknown
9916hardcode_into_libs=no
9917
9918# when you set need_version to no, make sure it does not cause -set_version
9919# flags to be left without arguments
9920need_version=unknown
9921
9922case $host_os in
9923aix3*)
9924 version_type=linux
9925 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9926 shlibpath_var=LIBPATH
9927
9928 # AIX 3 has no versioning support, so we append a major version to the name.
9929 soname_spec='${libname}${release}${shared_ext}$major'
9930 ;;
9931
50e7d84b 9932aix[4-9]*)
d7040cdb
SE
9933 version_type=linux
9934 need_lib_prefix=no
9935 need_version=no
9936 hardcode_into_libs=yes
9937 if test "$host_cpu" = ia64; then
9938 # AIX 5 supports IA64
9939 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9940 shlibpath_var=LD_LIBRARY_PATH
9941 else
9942 # With GCC up to 2.95.x, collect2 would create an import file
9943 # for dependence libraries. The import file would start with
9944 # the line `#! .'. This would cause the generated library to
9945 # depend on `.', always an invalid library. This was fixed in
9946 # development snapshots of GCC prior to 3.0.
9947 case $host_os in
9948 aix4 | aix4.[01] | aix4.[01].*)
9949 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9950 echo ' yes '
9951 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9952 :
9953 else
9954 can_build_shared=no
9955 fi
9956 ;;
9957 esac
9958 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9959 # soname into executable. Probably we can add versioning support to
9960 # collect2, so additional links can be useful in future.
9961 if test "$aix_use_runtimelinking" = yes; then
9962 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9963 # instead of lib<name>.a to let people know that these are not
9964 # typical AIX shared libraries.
9965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9966 else
9967 # We preserve .a as extension for shared libraries through AIX4.2
9968 # and later when we are not doing run time linking.
9969 library_names_spec='${libname}${release}.a $libname.a'
9970 soname_spec='${libname}${release}${shared_ext}$major'
9971 fi
9972 shlibpath_var=LIBPATH
9973 fi
9974 ;;
9975
9976amigaos*)
718a6fd8
SE
9977 case $host_cpu in
9978 powerpc)
9979 # Since July 2007 AmigaOS4 officially supports .so libraries.
9980 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9982 ;;
9983 m68k)
d7040cdb
SE
9984 library_names_spec='$libname.ixlibrary $libname.a'
9985 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9986 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'
718a6fd8
SE
9987 ;;
9988 esac
d7040cdb
SE
9989 ;;
9990
9991beos*)
9992 library_names_spec='${libname}${shared_ext}'
9993 dynamic_linker="$host_os ld.so"
9994 shlibpath_var=LIBRARY_PATH
9995 ;;
9996
9997bsdi[45]*)
9998 version_type=linux
9999 need_version=no
10000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10001 soname_spec='${libname}${release}${shared_ext}$major'
10002 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10003 shlibpath_var=LD_LIBRARY_PATH
10004 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10005 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10006 # the default ld.so.conf also contains /usr/contrib/lib and
10007 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10008 # libtool to hard-code these into programs
10009 ;;
10010
718a6fd8 10011cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
10012 version_type=windows
10013 shrext_cmds=".dll"
10014 need_version=no
10015 need_lib_prefix=no
10016
718a6fd8
SE
10017 case $GCC,$host_os in
10018 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
d7040cdb
SE
10019 library_names_spec='$libname.dll.a'
10020 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10021 postinstall_cmds='base_file=`basename \${file}`~
10022 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10023 dldir=$destdir/`dirname \$dlpath`~
10024 test -d \$dldir || mkdir -p \$dldir~
10025 $install_prog $dir/$dlname \$dldir/$dlname~
10026 chmod a+x \$dldir/$dlname~
10027 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10028 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10029 fi'
10030 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10031 dlpath=$dir/\$dldll~
10032 $RM \$dlpath'
10033 shlibpath_overrides_runpath=yes
10034
10035 case $host_os in
10036 cygwin*)
10037 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10038 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10039 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10040 ;;
718a6fd8 10041 mingw* | cegcc*)
d7040cdb
SE
10042 # MinGW DLLs use traditional 'lib' prefix
10043 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10044 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10045 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10046 # It is most probably a Windows format PATH printed by
10047 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10048 # path with ; separators, and with drive letters. We can handle the
10049 # drive letters (cygwin fileutils understands them), so leave them,
10050 # especially as we might pass files found there to a mingw objdump,
10051 # which wouldn't understand a cygwinified path. Ahh.
10052 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10053 else
10054 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10055 fi
10056 ;;
10057 pw32*)
10058 # pw32 DLLs use 'pw' prefix rather than 'lib'
10059 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10060 ;;
10061 esac
10062 ;;
10063
10064 *)
10065 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10066 ;;
10067 esac
10068 dynamic_linker='Win32 ld.exe'
10069 # FIXME: first we should search . and the directory the executable is in
10070 shlibpath_var=PATH
10071 ;;
10072
10073darwin* | rhapsody*)
10074 dynamic_linker="$host_os dyld"
10075 version_type=darwin
10076 need_lib_prefix=no
10077 need_version=no
10078 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10079 soname_spec='${libname}${release}${major}$shared_ext'
10080 shlibpath_overrides_runpath=yes
10081 shlibpath_var=DYLD_LIBRARY_PATH
10082 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10083
10084 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10085 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10086 ;;
10087
10088dgux*)
10089 version_type=linux
10090 need_lib_prefix=no
10091 need_version=no
10092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10093 soname_spec='${libname}${release}${shared_ext}$major'
10094 shlibpath_var=LD_LIBRARY_PATH
10095 ;;
10096
10097freebsd1*)
10098 dynamic_linker=no
10099 ;;
10100
10101freebsd* | dragonfly*)
10102 # DragonFly does not have aout. When/if they implement a new
10103 # versioning mechanism, adjust this.
10104 if test -x /usr/bin/objformat; then
10105 objformat=`/usr/bin/objformat`
10106 else
10107 case $host_os in
10108 freebsd[123]*) objformat=aout ;;
10109 *) objformat=elf ;;
10110 esac
10111 fi
10112 version_type=freebsd-$objformat
10113 case $version_type in
10114 freebsd-elf*)
10115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10116 need_version=no
10117 need_lib_prefix=no
10118 ;;
10119 freebsd-*)
10120 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10121 need_version=yes
10122 ;;
10123 esac
10124 shlibpath_var=LD_LIBRARY_PATH
10125 case $host_os in
10126 freebsd2*)
10127 shlibpath_overrides_runpath=yes
10128 ;;
10129 freebsd3.[01]* | freebsdelf3.[01]*)
10130 shlibpath_overrides_runpath=yes
10131 hardcode_into_libs=yes
10132 ;;
10133 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10134 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10135 shlibpath_overrides_runpath=no
10136 hardcode_into_libs=yes
10137 ;;
10138 *) # from 4.6 on, and DragonFly
10139 shlibpath_overrides_runpath=yes
10140 hardcode_into_libs=yes
10141 ;;
10142 esac
10143 ;;
10144
10145gnu*)
10146 version_type=linux
10147 need_lib_prefix=no
10148 need_version=no
10149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10150 soname_spec='${libname}${release}${shared_ext}$major'
10151 shlibpath_var=LD_LIBRARY_PATH
10152 hardcode_into_libs=yes
10153 ;;
10154
10155hpux9* | hpux10* | hpux11*)
10156 # Give a soname corresponding to the major version so that dld.sl refuses to
10157 # link against other versions.
10158 version_type=sunos
10159 need_lib_prefix=no
10160 need_version=no
10161 case $host_cpu in
10162 ia64*)
10163 shrext_cmds='.so'
10164 hardcode_into_libs=yes
10165 dynamic_linker="$host_os dld.so"
10166 shlibpath_var=LD_LIBRARY_PATH
10167 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10169 soname_spec='${libname}${release}${shared_ext}$major'
10170 if test "X$HPUX_IA64_MODE" = X32; then
10171 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10172 else
10173 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10174 fi
10175 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10176 ;;
10177 hppa*64*)
10178 shrext_cmds='.sl'
10179 hardcode_into_libs=yes
10180 dynamic_linker="$host_os dld.sl"
10181 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10182 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10184 soname_spec='${libname}${release}${shared_ext}$major'
10185 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10186 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10187 ;;
10188 *)
10189 shrext_cmds='.sl'
10190 dynamic_linker="$host_os dld.sl"
10191 shlibpath_var=SHLIB_PATH
10192 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10194 soname_spec='${libname}${release}${shared_ext}$major'
10195 ;;
10196 esac
10197 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10198 postinstall_cmds='chmod 555 $lib'
10199 ;;
10200
10201interix[3-9]*)
10202 version_type=linux
10203 need_lib_prefix=no
10204 need_version=no
10205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10206 soname_spec='${libname}${release}${shared_ext}$major'
10207 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10208 shlibpath_var=LD_LIBRARY_PATH
10209 shlibpath_overrides_runpath=no
10210 hardcode_into_libs=yes
10211 ;;
10212
10213irix5* | irix6* | nonstopux*)
10214 case $host_os in
10215 nonstopux*) version_type=nonstopux ;;
10216 *)
10217 if test "$lt_cv_prog_gnu_ld" = yes; then
10218 version_type=linux
10219 else
10220 version_type=irix
10221 fi ;;
10222 esac
10223 need_lib_prefix=no
10224 need_version=no
10225 soname_spec='${libname}${release}${shared_ext}$major'
10226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10227 case $host_os in
10228 irix5* | nonstopux*)
10229 libsuff= shlibsuff=
10230 ;;
10231 *)
10232 case $LD in # libtool.m4 will add one of these switches to LD
10233 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10234 libsuff= shlibsuff= libmagic=32-bit;;
10235 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10236 libsuff=32 shlibsuff=N32 libmagic=N32;;
10237 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10238 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10239 *) libsuff= shlibsuff= libmagic=never-match;;
10240 esac
10241 ;;
10242 esac
10243 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10244 shlibpath_overrides_runpath=no
10245 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10246 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10247 hardcode_into_libs=yes
10248 ;;
10249
10250# No shared lib support for Linux oldld, aout, or coff.
10251linux*oldld* | linux*aout* | linux*coff*)
10252 dynamic_linker=no
10253 ;;
10254
10255# This must be Linux ELF.
10256linux* | k*bsd*-gnu)
10257 version_type=linux
10258 need_lib_prefix=no
10259 need_version=no
10260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10261 soname_spec='${libname}${release}${shared_ext}$major'
10262 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10263 shlibpath_var=LD_LIBRARY_PATH
10264 shlibpath_overrides_runpath=no
39144654 10265
d7040cdb 10266 # Some binutils ld are patched to set DT_RUNPATH
39144654
RW
10267 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
10268 echo $ECHO_N "(cached) $ECHO_C" >&6
10269else
10270 lt_cv_shlibpath_overrides_runpath=no
10271 save_LDFLAGS=$LDFLAGS
10272 save_libdir=$libdir
10273 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10274 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10275 cat >conftest.$ac_ext <<_ACEOF
d7040cdb
SE
10276/* confdefs.h. */
10277_ACEOF
10278cat confdefs.h >>conftest.$ac_ext
10279cat >>conftest.$ac_ext <<_ACEOF
10280/* end confdefs.h. */
10281
10282int
10283main ()
10284{
10285
10286 ;
10287 return 0;
10288}
10289_ACEOF
10290rm -f conftest.$ac_objext conftest$ac_exeext
10291if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10292 (eval $ac_link) 2>conftest.er1
10293 ac_status=$?
10294 grep -v '^ *+' conftest.er1 >conftest.err
10295 rm -f conftest.er1
10296 cat conftest.err >&5
10297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298 (exit $ac_status); } &&
7357c5b6
AM
10299 { ac_try='test -z "$ac_c_werror_flag"
10300 || test ! -s conftest.err'
d7040cdb
SE
10301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10302 (eval $ac_try) 2>&5
10303 ac_status=$?
10304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10305 (exit $ac_status); }; } &&
10306 { ac_try='test -s conftest$ac_exeext'
10307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10308 (eval $ac_try) 2>&5
10309 ac_status=$?
10310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10311 (exit $ac_status); }; }; then
718a6fd8 10312 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
39144654 10313 lt_cv_shlibpath_overrides_runpath=yes
d7040cdb
SE
10314fi
10315
10316else
10317 echo "$as_me: failed program was:" >&5
10318sed 's/^/| /' conftest.$ac_ext >&5
10319
10320fi
10321rm -f conftest.err conftest.$ac_objext \
10322 conftest$ac_exeext conftest.$ac_ext
39144654
RW
10323 LDFLAGS=$save_LDFLAGS
10324 libdir=$save_libdir
10325
10326fi
10327
10328 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
d7040cdb
SE
10329
10330 # This implies no fast_install, which is unacceptable.
10331 # Some rework will be needed to allow for fast_install
10332 # before this can be enabled.
10333 hardcode_into_libs=yes
10334
10335 # Append ld.so.conf contents to the search path
10336 if test -f /etc/ld.so.conf; then
718a6fd8 10337 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
d7040cdb
SE
10338 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10339 fi
10340
10341 # We used to test for /lib/ld.so.1 and disable shared libraries on
10342 # powerpc, because MkLinux only supported shared libraries with the
10343 # GNU dynamic linker. Since this was broken with cross compilers,
10344 # most powerpc-linux boxes support dynamic linking these days and
10345 # people can always --disable-shared, the test was removed, and we
10346 # assume the GNU/Linux dynamic linker is in use.
10347 dynamic_linker='GNU/Linux ld.so'
10348 ;;
10349
10350netbsd*)
10351 version_type=sunos
10352 need_lib_prefix=no
10353 need_version=no
10354 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10356 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10357 dynamic_linker='NetBSD (a.out) ld.so'
10358 else
10359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10360 soname_spec='${libname}${release}${shared_ext}$major'
10361 dynamic_linker='NetBSD ld.elf_so'
10362 fi
10363 shlibpath_var=LD_LIBRARY_PATH
10364 shlibpath_overrides_runpath=yes
10365 hardcode_into_libs=yes
10366 ;;
10367
10368newsos6)
10369 version_type=linux
10370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10371 shlibpath_var=LD_LIBRARY_PATH
10372 shlibpath_overrides_runpath=yes
10373 ;;
10374
10375*nto* | *qnx*)
10376 version_type=qnx
10377 need_lib_prefix=no
10378 need_version=no
10379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10380 soname_spec='${libname}${release}${shared_ext}$major'
10381 shlibpath_var=LD_LIBRARY_PATH
10382 shlibpath_overrides_runpath=no
10383 hardcode_into_libs=yes
10384 dynamic_linker='ldqnx.so'
10385 ;;
10386
10387openbsd*)
10388 version_type=sunos
10389 sys_lib_dlsearch_path_spec="/usr/lib"
10390 need_lib_prefix=no
10391 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10392 case $host_os in
10393 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10394 *) need_version=no ;;
10395 esac
10396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10397 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10398 shlibpath_var=LD_LIBRARY_PATH
10399 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10400 case $host_os in
10401 openbsd2.[89] | openbsd2.[89].*)
10402 shlibpath_overrides_runpath=no
10403 ;;
10404 *)
10405 shlibpath_overrides_runpath=yes
10406 ;;
10407 esac
10408 else
10409 shlibpath_overrides_runpath=yes
10410 fi
10411 ;;
10412
10413os2*)
10414 libname_spec='$name'
10415 shrext_cmds=".dll"
10416 need_lib_prefix=no
10417 library_names_spec='$libname${shared_ext} $libname.a'
10418 dynamic_linker='OS/2 ld.exe'
10419 shlibpath_var=LIBPATH
10420 ;;
10421
10422osf3* | osf4* | osf5*)
10423 version_type=osf
10424 need_lib_prefix=no
10425 need_version=no
10426 soname_spec='${libname}${release}${shared_ext}$major'
10427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10428 shlibpath_var=LD_LIBRARY_PATH
10429 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10430 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10431 ;;
10432
10433rdos*)
10434 dynamic_linker=no
10435 ;;
10436
10437solaris*)
10438 version_type=linux
10439 need_lib_prefix=no
10440 need_version=no
10441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10442 soname_spec='${libname}${release}${shared_ext}$major'
10443 shlibpath_var=LD_LIBRARY_PATH
10444 shlibpath_overrides_runpath=yes
10445 hardcode_into_libs=yes
10446 # ldd complains unless libraries are executable
10447 postinstall_cmds='chmod +x $lib'
10448 ;;
10449
10450sunos4*)
10451 version_type=sunos
10452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10453 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10454 shlibpath_var=LD_LIBRARY_PATH
10455 shlibpath_overrides_runpath=yes
10456 if test "$with_gnu_ld" = yes; then
10457 need_lib_prefix=no
10458 fi
10459 need_version=yes
10460 ;;
10461
10462sysv4 | sysv4.3*)
10463 version_type=linux
10464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10465 soname_spec='${libname}${release}${shared_ext}$major'
10466 shlibpath_var=LD_LIBRARY_PATH
10467 case $host_vendor in
10468 sni)
10469 shlibpath_overrides_runpath=no
10470 need_lib_prefix=no
10471 runpath_var=LD_RUN_PATH
10472 ;;
10473 siemens)
10474 need_lib_prefix=no
10475 ;;
10476 motorola)
10477 need_lib_prefix=no
10478 need_version=no
10479 shlibpath_overrides_runpath=no
10480 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10481 ;;
10482 esac
10483 ;;
10484
10485sysv4*MP*)
10486 if test -d /usr/nec ;then
10487 version_type=linux
10488 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10489 soname_spec='$libname${shared_ext}.$major'
10490 shlibpath_var=LD_LIBRARY_PATH
10491 fi
10492 ;;
10493
10494sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10495 version_type=freebsd-elf
10496 need_lib_prefix=no
10497 need_version=no
10498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10499 soname_spec='${libname}${release}${shared_ext}$major'
10500 shlibpath_var=LD_LIBRARY_PATH
10501 shlibpath_overrides_runpath=yes
10502 hardcode_into_libs=yes
10503 if test "$with_gnu_ld" = yes; then
10504 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10505 else
10506 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10507 case $host_os in
10508 sco3.2v5*)
10509 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10510 ;;
10511 esac
10512 fi
10513 sys_lib_dlsearch_path_spec='/usr/lib'
10514 ;;
10515
10516tpf*)
10517 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10518 version_type=linux
10519 need_lib_prefix=no
10520 need_version=no
718a6fd8 10521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
d7040cdb
SE
10522 shlibpath_var=LD_LIBRARY_PATH
10523 shlibpath_overrides_runpath=no
10524 hardcode_into_libs=yes
10525 ;;
10526
10527uts4*)
10528 version_type=linux
10529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10530 soname_spec='${libname}${release}${shared_ext}$major'
10531 shlibpath_var=LD_LIBRARY_PATH
10532 ;;
10533
10534*)
10535 dynamic_linker=no
10536 ;;
10537esac
10538echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10539echo "${ECHO_T}$dynamic_linker" >&6
10540test "$dynamic_linker" = no && can_build_shared=no
10541
10542variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10543if test "$GCC" = yes; then
10544 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10545fi
10546
718a6fd8
SE
10547if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10548 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10549fi
10550if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10551 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10552fi
10553
d7040cdb
SE
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10641echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10642hardcode_action=
10643if test -n "$hardcode_libdir_flag_spec" ||
10644 test -n "$runpath_var" ||
10645 test "X$hardcode_automatic" = "Xyes" ; then
10646
10647 # We can hardcode non-existent directories.
10648 if test "$hardcode_direct" != no &&
10649 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10650 # have to relink, otherwise we might link with an installed library
10651 # when we should be linking with a yet-to-be-installed one
10652 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10653 test "$hardcode_minus_L" != no; then
10654 # Linking always hardcodes the temporary library directory.
10655 hardcode_action=relink
10656 else
10657 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10658 hardcode_action=immediate
10659 fi
10660else
10661 # We cannot hardcode anything, or else we can only hardcode existing
10662 # directories.
10663 hardcode_action=unsupported
10664fi
10665echo "$as_me:$LINENO: result: $hardcode_action" >&5
10666echo "${ECHO_T}$hardcode_action" >&6
10667
10668if test "$hardcode_action" = relink ||
10669 test "$inherit_rpath" = yes; then
10670 # Fast installation is not supported
10671 enable_fast_install=no
10672elif test "$shlibpath_overrides_runpath" = yes ||
10673 test "$enable_shared" = no; then
10674 # Fast installation is not necessary
10675 enable_fast_install=needless
10676fi
10677
10678
10679
10680
10681
10682
10683 if test "x$enable_dlopen" != xyes; then
10684 enable_dlopen=unknown
10685 enable_dlopen_self=unknown
10686 enable_dlopen_self_static=unknown
10687else
10688 lt_cv_dlopen=no
10689 lt_cv_dlopen_libs=
10690
10691 case $host_os in
10692 beos*)
10693 lt_cv_dlopen="load_add_on"
10694 lt_cv_dlopen_libs=
10695 lt_cv_dlopen_self=yes
10696 ;;
10697
718a6fd8 10698 mingw* | pw32* | cegcc*)
d7040cdb
SE
10699 lt_cv_dlopen="LoadLibrary"
10700 lt_cv_dlopen_libs=
10701 ;;
10702
10703 cygwin*)
10704 lt_cv_dlopen="dlopen"
10705 lt_cv_dlopen_libs=
10706 ;;
10707
10708 darwin*)
10709 # if libdl is installed we need to link against it
10710 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10711echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10712if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10713 echo $ECHO_N "(cached) $ECHO_C" >&6
10714else
10715 ac_check_lib_save_LIBS=$LIBS
10716LIBS="-ldl $LIBS"
10717cat >conftest.$ac_ext <<_ACEOF
10718/* confdefs.h. */
10719_ACEOF
10720cat confdefs.h >>conftest.$ac_ext
10721cat >>conftest.$ac_ext <<_ACEOF
10722/* end confdefs.h. */
10723
10724/* Override any gcc2 internal prototype to avoid an error. */
10725#ifdef __cplusplus
10726extern "C"
10727#endif
10728/* We use char because int might match the return type of a gcc2
10729 builtin and then its argument prototype would still apply. */
10730char dlopen ();
10731int
10732main ()
10733{
10734dlopen ();
10735 ;
10736 return 0;
10737}
10738_ACEOF
10739rm -f conftest.$ac_objext conftest$ac_exeext
10740if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10741 (eval $ac_link) 2>conftest.er1
10742 ac_status=$?
10743 grep -v '^ *+' conftest.er1 >conftest.err
10744 rm -f conftest.er1
10745 cat conftest.err >&5
10746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10747 (exit $ac_status); } &&
7357c5b6
AM
10748 { ac_try='test -z "$ac_c_werror_flag"
10749 || test ! -s conftest.err'
d7040cdb
SE
10750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10751 (eval $ac_try) 2>&5
10752 ac_status=$?
10753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10754 (exit $ac_status); }; } &&
10755 { ac_try='test -s conftest$ac_exeext'
10756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10757 (eval $ac_try) 2>&5
10758 ac_status=$?
10759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760 (exit $ac_status); }; }; then
10761 ac_cv_lib_dl_dlopen=yes
10762else
10763 echo "$as_me: failed program was:" >&5
10764sed 's/^/| /' conftest.$ac_ext >&5
10765
10766ac_cv_lib_dl_dlopen=no
10767fi
10768rm -f conftest.err conftest.$ac_objext \
10769 conftest$ac_exeext conftest.$ac_ext
10770LIBS=$ac_check_lib_save_LIBS
10771fi
10772echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10773echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10774if test $ac_cv_lib_dl_dlopen = yes; then
10775 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10776else
10777
10778 lt_cv_dlopen="dyld"
10779 lt_cv_dlopen_libs=
10780 lt_cv_dlopen_self=yes
10781
10782fi
10783
10784 ;;
10785
10786 *)
10787 echo "$as_me:$LINENO: checking for shl_load" >&5
10788echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10789if test "${ac_cv_func_shl_load+set}" = set; then
10790 echo $ECHO_N "(cached) $ECHO_C" >&6
10791else
10792 cat >conftest.$ac_ext <<_ACEOF
10793/* confdefs.h. */
10794_ACEOF
10795cat confdefs.h >>conftest.$ac_ext
10796cat >>conftest.$ac_ext <<_ACEOF
10797/* end confdefs.h. */
10798/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10799 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10800#define shl_load innocuous_shl_load
10801
10802/* System header to define __stub macros and hopefully few prototypes,
10803 which can conflict with char shl_load (); below.
10804 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10805 <limits.h> exists even on freestanding compilers. */
10806
10807#ifdef __STDC__
10808# include <limits.h>
10809#else
10810# include <assert.h>
10811#endif
10812
10813#undef shl_load
10814
10815/* Override any gcc2 internal prototype to avoid an error. */
10816#ifdef __cplusplus
10817extern "C"
10818{
10819#endif
10820/* We use char because int might match the return type of a gcc2
10821 builtin and then its argument prototype would still apply. */
10822char shl_load ();
10823/* The GNU C library defines this for functions which it implements
10824 to always fail with ENOSYS. Some functions are actually named
10825 something starting with __ and the normal name is an alias. */
10826#if defined (__stub_shl_load) || defined (__stub___shl_load)
10827choke me
10828#else
10829char (*f) () = shl_load;
10830#endif
10831#ifdef __cplusplus
10832}
10833#endif
10834
10835int
10836main ()
10837{
10838return f != shl_load;
10839 ;
10840 return 0;
10841}
10842_ACEOF
10843rm -f conftest.$ac_objext conftest$ac_exeext
10844if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10845 (eval $ac_link) 2>conftest.er1
10846 ac_status=$?
10847 grep -v '^ *+' conftest.er1 >conftest.err
10848 rm -f conftest.er1
10849 cat conftest.err >&5
10850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10851 (exit $ac_status); } &&
7357c5b6
AM
10852 { ac_try='test -z "$ac_c_werror_flag"
10853 || test ! -s conftest.err'
d7040cdb
SE
10854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10855 (eval $ac_try) 2>&5
10856 ac_status=$?
10857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10858 (exit $ac_status); }; } &&
10859 { ac_try='test -s conftest$ac_exeext'
10860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10861 (eval $ac_try) 2>&5
10862 ac_status=$?
10863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10864 (exit $ac_status); }; }; then
10865 ac_cv_func_shl_load=yes
10866else
10867 echo "$as_me: failed program was:" >&5
10868sed 's/^/| /' conftest.$ac_ext >&5
10869
10870ac_cv_func_shl_load=no
10871fi
10872rm -f conftest.err conftest.$ac_objext \
10873 conftest$ac_exeext conftest.$ac_ext
10874fi
10875echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10876echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10877if test $ac_cv_func_shl_load = yes; then
10878 lt_cv_dlopen="shl_load"
10879else
10880 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10881echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10882if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10883 echo $ECHO_N "(cached) $ECHO_C" >&6
10884else
10885 ac_check_lib_save_LIBS=$LIBS
10886LIBS="-ldld $LIBS"
10887cat >conftest.$ac_ext <<_ACEOF
10888/* confdefs.h. */
10889_ACEOF
10890cat confdefs.h >>conftest.$ac_ext
10891cat >>conftest.$ac_ext <<_ACEOF
10892/* end confdefs.h. */
10893
10894/* Override any gcc2 internal prototype to avoid an error. */
10895#ifdef __cplusplus
10896extern "C"
10897#endif
10898/* We use char because int might match the return type of a gcc2
10899 builtin and then its argument prototype would still apply. */
10900char shl_load ();
10901int
10902main ()
10903{
10904shl_load ();
10905 ;
10906 return 0;
10907}
10908_ACEOF
10909rm -f conftest.$ac_objext conftest$ac_exeext
10910if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10911 (eval $ac_link) 2>conftest.er1
10912 ac_status=$?
10913 grep -v '^ *+' conftest.er1 >conftest.err
10914 rm -f conftest.er1
10915 cat conftest.err >&5
10916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10917 (exit $ac_status); } &&
7357c5b6
AM
10918 { ac_try='test -z "$ac_c_werror_flag"
10919 || test ! -s conftest.err'
d7040cdb
SE
10920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10921 (eval $ac_try) 2>&5
10922 ac_status=$?
10923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10924 (exit $ac_status); }; } &&
10925 { ac_try='test -s conftest$ac_exeext'
10926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10927 (eval $ac_try) 2>&5
10928 ac_status=$?
10929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10930 (exit $ac_status); }; }; then
10931 ac_cv_lib_dld_shl_load=yes
10932else
10933 echo "$as_me: failed program was:" >&5
10934sed 's/^/| /' conftest.$ac_ext >&5
10935
10936ac_cv_lib_dld_shl_load=no
10937fi
10938rm -f conftest.err conftest.$ac_objext \
10939 conftest$ac_exeext conftest.$ac_ext
10940LIBS=$ac_check_lib_save_LIBS
10941fi
10942echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10943echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10944if test $ac_cv_lib_dld_shl_load = yes; then
718a6fd8 10945 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
d7040cdb
SE
10946else
10947 echo "$as_me:$LINENO: checking for dlopen" >&5
10948echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10949if test "${ac_cv_func_dlopen+set}" = set; then
10950 echo $ECHO_N "(cached) $ECHO_C" >&6
10951else
10952 cat >conftest.$ac_ext <<_ACEOF
10953/* confdefs.h. */
10954_ACEOF
10955cat confdefs.h >>conftest.$ac_ext
10956cat >>conftest.$ac_ext <<_ACEOF
10957/* end confdefs.h. */
10958/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10959 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10960#define dlopen innocuous_dlopen
10961
10962/* System header to define __stub macros and hopefully few prototypes,
10963 which can conflict with char dlopen (); below.
10964 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10965 <limits.h> exists even on freestanding compilers. */
10966
10967#ifdef __STDC__
10968# include <limits.h>
10969#else
10970# include <assert.h>
10971#endif
10972
10973#undef dlopen
10974
10975/* Override any gcc2 internal prototype to avoid an error. */
10976#ifdef __cplusplus
10977extern "C"
10978{
10979#endif
10980/* We use char because int might match the return type of a gcc2
10981 builtin and then its argument prototype would still apply. */
10982char dlopen ();
10983/* The GNU C library defines this for functions which it implements
10984 to always fail with ENOSYS. Some functions are actually named
10985 something starting with __ and the normal name is an alias. */
10986#if defined (__stub_dlopen) || defined (__stub___dlopen)
10987choke me
10988#else
10989char (*f) () = dlopen;
10990#endif
10991#ifdef __cplusplus
10992}
10993#endif
10994
10995int
10996main ()
10997{
10998return f != dlopen;
10999 ;
11000 return 0;
11001}
11002_ACEOF
11003rm -f conftest.$ac_objext conftest$ac_exeext
11004if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11005 (eval $ac_link) 2>conftest.er1
11006 ac_status=$?
11007 grep -v '^ *+' conftest.er1 >conftest.err
11008 rm -f conftest.er1
11009 cat conftest.err >&5
11010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11011 (exit $ac_status); } &&
7357c5b6
AM
11012 { ac_try='test -z "$ac_c_werror_flag"
11013 || test ! -s conftest.err'
d7040cdb
SE
11014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11015 (eval $ac_try) 2>&5
11016 ac_status=$?
11017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018 (exit $ac_status); }; } &&
11019 { ac_try='test -s conftest$ac_exeext'
11020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11021 (eval $ac_try) 2>&5
11022 ac_status=$?
11023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024 (exit $ac_status); }; }; then
11025 ac_cv_func_dlopen=yes
11026else
11027 echo "$as_me: failed program was:" >&5
11028sed 's/^/| /' conftest.$ac_ext >&5
11029
11030ac_cv_func_dlopen=no
11031fi
11032rm -f conftest.err conftest.$ac_objext \
11033 conftest$ac_exeext conftest.$ac_ext
11034fi
11035echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11036echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11037if test $ac_cv_func_dlopen = yes; then
11038 lt_cv_dlopen="dlopen"
11039else
11040 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11041echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11042if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11043 echo $ECHO_N "(cached) $ECHO_C" >&6
11044else
11045 ac_check_lib_save_LIBS=$LIBS
11046LIBS="-ldl $LIBS"
11047cat >conftest.$ac_ext <<_ACEOF
11048/* confdefs.h. */
11049_ACEOF
11050cat confdefs.h >>conftest.$ac_ext
11051cat >>conftest.$ac_ext <<_ACEOF
11052/* end confdefs.h. */
11053
11054/* Override any gcc2 internal prototype to avoid an error. */
11055#ifdef __cplusplus
11056extern "C"
11057#endif
11058/* We use char because int might match the return type of a gcc2
11059 builtin and then its argument prototype would still apply. */
11060char dlopen ();
11061int
11062main ()
11063{
11064dlopen ();
11065 ;
11066 return 0;
11067}
11068_ACEOF
11069rm -f conftest.$ac_objext conftest$ac_exeext
11070if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11071 (eval $ac_link) 2>conftest.er1
11072 ac_status=$?
11073 grep -v '^ *+' conftest.er1 >conftest.err
11074 rm -f conftest.er1
11075 cat conftest.err >&5
11076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11077 (exit $ac_status); } &&
7357c5b6
AM
11078 { ac_try='test -z "$ac_c_werror_flag"
11079 || test ! -s conftest.err'
d7040cdb
SE
11080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11081 (eval $ac_try) 2>&5
11082 ac_status=$?
11083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11084 (exit $ac_status); }; } &&
11085 { ac_try='test -s conftest$ac_exeext'
11086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11087 (eval $ac_try) 2>&5
11088 ac_status=$?
11089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090 (exit $ac_status); }; }; then
11091 ac_cv_lib_dl_dlopen=yes
11092else
11093 echo "$as_me: failed program was:" >&5
11094sed 's/^/| /' conftest.$ac_ext >&5
11095
11096ac_cv_lib_dl_dlopen=no
11097fi
11098rm -f conftest.err conftest.$ac_objext \
11099 conftest$ac_exeext conftest.$ac_ext
11100LIBS=$ac_check_lib_save_LIBS
11101fi
11102echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11103echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11104if test $ac_cv_lib_dl_dlopen = yes; then
11105 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11106else
11107 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11108echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11109if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11110 echo $ECHO_N "(cached) $ECHO_C" >&6
11111else
11112 ac_check_lib_save_LIBS=$LIBS
11113LIBS="-lsvld $LIBS"
11114cat >conftest.$ac_ext <<_ACEOF
11115/* confdefs.h. */
11116_ACEOF
11117cat confdefs.h >>conftest.$ac_ext
11118cat >>conftest.$ac_ext <<_ACEOF
11119/* end confdefs.h. */
11120
11121/* Override any gcc2 internal prototype to avoid an error. */
11122#ifdef __cplusplus
11123extern "C"
11124#endif
11125/* We use char because int might match the return type of a gcc2
11126 builtin and then its argument prototype would still apply. */
11127char dlopen ();
11128int
11129main ()
11130{
11131dlopen ();
11132 ;
11133 return 0;
11134}
11135_ACEOF
11136rm -f conftest.$ac_objext conftest$ac_exeext
11137if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11138 (eval $ac_link) 2>conftest.er1
11139 ac_status=$?
11140 grep -v '^ *+' conftest.er1 >conftest.err
11141 rm -f conftest.er1
11142 cat conftest.err >&5
11143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11144 (exit $ac_status); } &&
7357c5b6
AM
11145 { ac_try='test -z "$ac_c_werror_flag"
11146 || test ! -s conftest.err'
d7040cdb
SE
11147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11148 (eval $ac_try) 2>&5
11149 ac_status=$?
11150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151 (exit $ac_status); }; } &&
11152 { ac_try='test -s conftest$ac_exeext'
11153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11154 (eval $ac_try) 2>&5
11155 ac_status=$?
11156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11157 (exit $ac_status); }; }; then
11158 ac_cv_lib_svld_dlopen=yes
11159else
11160 echo "$as_me: failed program was:" >&5
11161sed 's/^/| /' conftest.$ac_ext >&5
11162
11163ac_cv_lib_svld_dlopen=no
11164fi
11165rm -f conftest.err conftest.$ac_objext \
11166 conftest$ac_exeext conftest.$ac_ext
11167LIBS=$ac_check_lib_save_LIBS
11168fi
11169echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11170echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11171if test $ac_cv_lib_svld_dlopen = yes; then
11172 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11173else
11174 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11175echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11176if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11177 echo $ECHO_N "(cached) $ECHO_C" >&6
11178else
11179 ac_check_lib_save_LIBS=$LIBS
11180LIBS="-ldld $LIBS"
11181cat >conftest.$ac_ext <<_ACEOF
11182/* confdefs.h. */
11183_ACEOF
11184cat confdefs.h >>conftest.$ac_ext
11185cat >>conftest.$ac_ext <<_ACEOF
11186/* end confdefs.h. */
11187
11188/* Override any gcc2 internal prototype to avoid an error. */
11189#ifdef __cplusplus
11190extern "C"
11191#endif
11192/* We use char because int might match the return type of a gcc2
11193 builtin and then its argument prototype would still apply. */
11194char dld_link ();
11195int
11196main ()
11197{
11198dld_link ();
11199 ;
11200 return 0;
11201}
11202_ACEOF
11203rm -f conftest.$ac_objext conftest$ac_exeext
11204if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11205 (eval $ac_link) 2>conftest.er1
11206 ac_status=$?
11207 grep -v '^ *+' conftest.er1 >conftest.err
11208 rm -f conftest.er1
11209 cat conftest.err >&5
11210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11211 (exit $ac_status); } &&
7357c5b6
AM
11212 { ac_try='test -z "$ac_c_werror_flag"
11213 || test ! -s conftest.err'
d7040cdb
SE
11214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11215 (eval $ac_try) 2>&5
11216 ac_status=$?
11217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11218 (exit $ac_status); }; } &&
11219 { ac_try='test -s conftest$ac_exeext'
11220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11221 (eval $ac_try) 2>&5
11222 ac_status=$?
11223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11224 (exit $ac_status); }; }; then
11225 ac_cv_lib_dld_dld_link=yes
11226else
11227 echo "$as_me: failed program was:" >&5
11228sed 's/^/| /' conftest.$ac_ext >&5
11229
11230ac_cv_lib_dld_dld_link=no
11231fi
11232rm -f conftest.err conftest.$ac_objext \
11233 conftest$ac_exeext conftest.$ac_ext
11234LIBS=$ac_check_lib_save_LIBS
11235fi
11236echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11237echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11238if test $ac_cv_lib_dld_dld_link = yes; then
718a6fd8 11239 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
d7040cdb
SE
11240fi
11241
11242
11243fi
11244
11245
11246fi
11247
11248
11249fi
11250
11251
11252fi
11253
11254
11255fi
11256
11257 ;;
11258 esac
11259
11260 if test "x$lt_cv_dlopen" != xno; then
11261 enable_dlopen=yes
11262 else
11263 enable_dlopen=no
11264 fi
11265
11266 case $lt_cv_dlopen in
11267 dlopen)
11268 save_CPPFLAGS="$CPPFLAGS"
11269 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11270
11271 save_LDFLAGS="$LDFLAGS"
11272 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11273
11274 save_LIBS="$LIBS"
11275 LIBS="$lt_cv_dlopen_libs $LIBS"
11276
11277 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11278echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11279if test "${lt_cv_dlopen_self+set}" = set; then
11280 echo $ECHO_N "(cached) $ECHO_C" >&6
11281else
11282 if test "$cross_compiling" = yes; then :
11283 lt_cv_dlopen_self=cross
11284else
11285 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11286 lt_status=$lt_dlunknown
11287 cat > conftest.$ac_ext <<_LT_EOF
29670fb9 11288#line 11288 "configure"
d7040cdb
SE
11289#include "confdefs.h"
11290
11291#if HAVE_DLFCN_H
11292#include <dlfcn.h>
11293#endif
11294
11295#include <stdio.h>
11296
11297#ifdef RTLD_GLOBAL
11298# define LT_DLGLOBAL RTLD_GLOBAL
11299#else
11300# ifdef DL_GLOBAL
11301# define LT_DLGLOBAL DL_GLOBAL
11302# else
11303# define LT_DLGLOBAL 0
11304# endif
11305#endif
11306
11307/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11308 find out it does not work in some platform. */
11309#ifndef LT_DLLAZY_OR_NOW
11310# ifdef RTLD_LAZY
11311# define LT_DLLAZY_OR_NOW RTLD_LAZY
11312# else
11313# ifdef DL_LAZY
11314# define LT_DLLAZY_OR_NOW DL_LAZY
11315# else
11316# ifdef RTLD_NOW
11317# define LT_DLLAZY_OR_NOW RTLD_NOW
11318# else
11319# ifdef DL_NOW
11320# define LT_DLLAZY_OR_NOW DL_NOW
11321# else
11322# define LT_DLLAZY_OR_NOW 0
11323# endif
11324# endif
11325# endif
11326# endif
11327#endif
11328
d7040cdb
SE
11329void fnord() { int i=42;}
11330int main ()
11331{
11332 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11333 int status = $lt_dlunknown;
11334
11335 if (self)
11336 {
11337 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11338 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11339 /* dlclose (self); */
11340 }
11341 else
11342 puts (dlerror ());
11343
718a6fd8 11344 return status;
d7040cdb
SE
11345}
11346_LT_EOF
11347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11348 (eval $ac_link) 2>&5
11349 ac_status=$?
11350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11351 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11352 (./conftest; exit; ) >&5 2>/dev/null
11353 lt_status=$?
11354 case x$lt_status in
11355 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11356 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11357 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11358 esac
11359 else :
11360 # compilation failed
11361 lt_cv_dlopen_self=no
11362 fi
11363fi
11364rm -fr conftest*
11365
11366
11367fi
11368echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11369echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11370
11371 if test "x$lt_cv_dlopen_self" = xyes; then
11372 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11373 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11374echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11375if test "${lt_cv_dlopen_self_static+set}" = set; then
11376 echo $ECHO_N "(cached) $ECHO_C" >&6
11377else
11378 if test "$cross_compiling" = yes; then :
11379 lt_cv_dlopen_self_static=cross
11380else
11381 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11382 lt_status=$lt_dlunknown
11383 cat > conftest.$ac_ext <<_LT_EOF
29670fb9 11384#line 11384 "configure"
d7040cdb
SE
11385#include "confdefs.h"
11386
11387#if HAVE_DLFCN_H
11388#include <dlfcn.h>
11389#endif
11390
11391#include <stdio.h>
11392
11393#ifdef RTLD_GLOBAL
11394# define LT_DLGLOBAL RTLD_GLOBAL
11395#else
11396# ifdef DL_GLOBAL
11397# define LT_DLGLOBAL DL_GLOBAL
11398# else
11399# define LT_DLGLOBAL 0
11400# endif
11401#endif
11402
11403/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11404 find out it does not work in some platform. */
11405#ifndef LT_DLLAZY_OR_NOW
11406# ifdef RTLD_LAZY
11407# define LT_DLLAZY_OR_NOW RTLD_LAZY
11408# else
11409# ifdef DL_LAZY
11410# define LT_DLLAZY_OR_NOW DL_LAZY
11411# else
11412# ifdef RTLD_NOW
11413# define LT_DLLAZY_OR_NOW RTLD_NOW
11414# else
11415# ifdef DL_NOW
11416# define LT_DLLAZY_OR_NOW DL_NOW
11417# else
11418# define LT_DLLAZY_OR_NOW 0
11419# endif
11420# endif
11421# endif
11422# endif
11423#endif
11424
d7040cdb
SE
11425void fnord() { int i=42;}
11426int main ()
11427{
11428 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11429 int status = $lt_dlunknown;
11430
11431 if (self)
11432 {
11433 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11434 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11435 /* dlclose (self); */
11436 }
11437 else
11438 puts (dlerror ());
11439
718a6fd8 11440 return status;
d7040cdb
SE
11441}
11442_LT_EOF
11443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11444 (eval $ac_link) 2>&5
11445 ac_status=$?
11446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11447 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11448 (./conftest; exit; ) >&5 2>/dev/null
11449 lt_status=$?
11450 case x$lt_status in
11451 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11452 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11453 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11454 esac
11455 else :
11456 # compilation failed
11457 lt_cv_dlopen_self_static=no
11458 fi
11459fi
11460rm -fr conftest*
11461
11462
11463fi
11464echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11465echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11466 fi
11467
11468 CPPFLAGS="$save_CPPFLAGS"
11469 LDFLAGS="$save_LDFLAGS"
11470 LIBS="$save_LIBS"
11471 ;;
11472 esac
11473
11474 case $lt_cv_dlopen_self in
11475 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11476 *) enable_dlopen_self=unknown ;;
11477 esac
11478
11479 case $lt_cv_dlopen_self_static in
11480 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11481 *) enable_dlopen_self_static=unknown ;;
11482 esac
11483fi
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501striplib=
11502old_striplib=
11503echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11504echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11505if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11506 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11507 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11508 echo "$as_me:$LINENO: result: yes" >&5
11509echo "${ECHO_T}yes" >&6
11510else
11511# FIXME - insert some real tests, host_os isn't really good enough
11512 case $host_os in
11513 darwin*)
11514 if test -n "$STRIP" ; then
11515 striplib="$STRIP -x"
11516 old_striplib="$STRIP -S"
11517 echo "$as_me:$LINENO: result: yes" >&5
11518echo "${ECHO_T}yes" >&6
11519 else
11520 echo "$as_me:$LINENO: result: no" >&5
11521echo "${ECHO_T}no" >&6
11522 fi
11523 ;;
11524 *)
11525 echo "$as_me:$LINENO: result: no" >&5
11526echo "${ECHO_T}no" >&6
11527 ;;
11528 esac
11529fi
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542 # Report which library types will actually be built
11543 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11544echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11545 echo "$as_me:$LINENO: result: $can_build_shared" >&5
11546echo "${ECHO_T}$can_build_shared" >&6
11547
11548 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11549echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11550 test "$can_build_shared" = "no" && enable_shared=no
11551
11552 # On AIX, shared libraries and static libraries use the same namespace, and
11553 # are all built from PIC.
11554 case $host_os in
11555 aix3*)
11556 test "$enable_shared" = yes && enable_static=no
11557 if test -n "$RANLIB"; then
11558 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11559 postinstall_cmds='$RANLIB $lib'
11560 fi
11561 ;;
11562
50e7d84b 11563 aix[4-9]*)
d7040cdb
SE
11564 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11565 test "$enable_shared" = yes && enable_static=no
11566 fi
11567 ;;
11568 esac
11569 echo "$as_me:$LINENO: result: $enable_shared" >&5
11570echo "${ECHO_T}$enable_shared" >&6
11571
11572 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11573echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11574 # Make sure either enable_shared or enable_static is yes.
11575 test "$enable_shared" = yes || enable_static=yes
11576 echo "$as_me:$LINENO: result: $enable_static" >&5
11577echo "${ECHO_T}$enable_static" >&6
11578
11579
11580
11581
11582fi
11583ac_ext=c
11584ac_cpp='$CPP $CPPFLAGS'
11585ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11586ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11587ac_compiler_gnu=$ac_cv_c_compiler_gnu
11588
11589CC="$lt_save_CC"
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603 ac_config_commands="$ac_config_commands libtool"
11604
11605
11606
11607
11608# Only expand once:
11609
11610
11611
11612# Check whether --enable-targets or --disable-targets was given.
11613if test "${enable_targets+set}" = set; then
11614 enableval="$enable_targets"
11615 case "${enableval}" in
11616 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
11617echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
11618 { (exit 1); exit 1; }; }
11619 ;;
11620 no) enable_targets= ;;
11621 *) enable_targets=$enableval ;;
11622esac
d7040cdb
SE
11623fi;
11624
11625GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
11626
11627# Check whether --enable-werror or --disable-werror was given.
11628if test "${enable_werror+set}" = set; then
11629 enableval="$enable_werror"
11630 case "${enableval}" in
11631 yes | y) ERROR_ON_WARNING="yes" ;;
11632 no | n) ERROR_ON_WARNING="no" ;;
11633 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
11634echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
11635 { (exit 1); exit 1; }; } ;;
11636 esac
11637fi;
11638
bb8541b9
L
11639# Enable -Wno-format by default when using gcc on mingw
11640case "${host}" in
11641 *-*-mingw32*)
11642 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11643 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
11644 fi
11645 ;;
11646 *) ;;
11647esac
11648
d7040cdb
SE
11649# Enable -Werror by default when using gcc
11650if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11651 ERROR_ON_WARNING=yes
11652fi
11653
11654NO_WERROR=
11655if test "${ERROR_ON_WARNING}" = yes ; then
11656 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
11657 NO_WERROR="-Wno-error"
11658fi
11659
11660if test "${GCC}" = yes ; then
11661 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
11662fi
11663
11664# Check whether --enable-build-warnings or --disable-build-warnings was given.
11665if test "${enable_build_warnings+set}" = set; then
11666 enableval="$enable_build_warnings"
11667 case "${enableval}" in
11668 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
11669 no) if test "${GCC}" = yes ; then
11670 WARN_CFLAGS="-w"
11671 fi;;
11672 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11673 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
11674 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11675 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
11676 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
11677esac
11678fi;
11679
11680if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
11681 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
11682fi
11683
11684
11685
11686
11687
11688 ac_config_headers="$ac_config_headers config.h:config.in"
11689
11690
11691if test -z "$target" ; then
11692 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
11693echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
11694 { (exit 1); exit 1; }; }
11695fi
11696if test -z "$host" ; then
11697 { { echo "$as_me:$LINENO: error: Unrecognized host system type; please check config.sub." >&5
11698echo "$as_me: error: Unrecognized host system type; please check config.sub." >&2;}
11699 { (exit 1); exit 1; }; }
11700fi
11701
11702for ac_prog in 'bison -y' byacc
11703do
11704 # Extract the first word of "$ac_prog", so it can be a program name with args.
11705set dummy $ac_prog; ac_word=$2
11706echo "$as_me:$LINENO: checking for $ac_word" >&5
11707echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11708if test "${ac_cv_prog_YACC+set}" = set; then
11709 echo $ECHO_N "(cached) $ECHO_C" >&6
11710else
11711 if test -n "$YACC"; then
11712 ac_cv_prog_YACC="$YACC" # Let the user override the test.
11713else
11714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11715for as_dir in $PATH
11716do
11717 IFS=$as_save_IFS
11718 test -z "$as_dir" && as_dir=.
11719 for ac_exec_ext in '' $ac_executable_extensions; do
11720 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11721 ac_cv_prog_YACC="$ac_prog"
11722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11723 break 2
11724 fi
11725done
11726done
11727
11728fi
11729fi
11730YACC=$ac_cv_prog_YACC
11731if test -n "$YACC"; then
11732 echo "$as_me:$LINENO: result: $YACC" >&5
11733echo "${ECHO_T}$YACC" >&6
11734else
11735 echo "$as_me:$LINENO: result: no" >&5
11736echo "${ECHO_T}no" >&6
11737fi
11738
11739 test -n "$YACC" && break
11740done
11741test -n "$YACC" || YACC="yacc"
11742
11743for ac_prog in flex lex
11744do
11745 # Extract the first word of "$ac_prog", so it can be a program name with args.
11746set dummy $ac_prog; ac_word=$2
11747echo "$as_me:$LINENO: checking for $ac_word" >&5
11748echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11749if test "${ac_cv_prog_LEX+set}" = set; then
11750 echo $ECHO_N "(cached) $ECHO_C" >&6
11751else
11752 if test -n "$LEX"; then
11753 ac_cv_prog_LEX="$LEX" # Let the user override the test.
11754else
11755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11756for as_dir in $PATH
11757do
11758 IFS=$as_save_IFS
11759 test -z "$as_dir" && as_dir=.
11760 for ac_exec_ext in '' $ac_executable_extensions; do
11761 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11762 ac_cv_prog_LEX="$ac_prog"
11763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11764 break 2
11765 fi
11766done
11767done
11768
11769fi
11770fi
11771LEX=$ac_cv_prog_LEX
11772if test -n "$LEX"; then
11773 echo "$as_me:$LINENO: result: $LEX" >&5
11774echo "${ECHO_T}$LEX" >&6
11775else
11776 echo "$as_me:$LINENO: result: no" >&5
11777echo "${ECHO_T}no" >&6
11778fi
11779
11780 test -n "$LEX" && break
11781done
11782test -n "$LEX" || LEX=":"
11783
11784if test -z "$LEXLIB"
11785then
11786 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
11787echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
11788if test "${ac_cv_lib_fl_yywrap+set}" = set; then
11789 echo $ECHO_N "(cached) $ECHO_C" >&6
11790else
11791 ac_check_lib_save_LIBS=$LIBS
11792LIBS="-lfl $LIBS"
11793cat >conftest.$ac_ext <<_ACEOF
11794/* confdefs.h. */
11795_ACEOF
11796cat confdefs.h >>conftest.$ac_ext
11797cat >>conftest.$ac_ext <<_ACEOF
11798/* end confdefs.h. */
11799
11800/* Override any gcc2 internal prototype to avoid an error. */
11801#ifdef __cplusplus
11802extern "C"
11803#endif
11804/* We use char because int might match the return type of a gcc2
11805 builtin and then its argument prototype would still apply. */
11806char yywrap ();
11807int
11808main ()
11809{
11810yywrap ();
11811 ;
11812 return 0;
11813}
11814_ACEOF
11815rm -f conftest.$ac_objext conftest$ac_exeext
11816if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11817 (eval $ac_link) 2>conftest.er1
11818 ac_status=$?
11819 grep -v '^ *+' conftest.er1 >conftest.err
11820 rm -f conftest.er1
11821 cat conftest.err >&5
11822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11823 (exit $ac_status); } &&
7357c5b6
AM
11824 { ac_try='test -z "$ac_c_werror_flag"
11825 || test ! -s conftest.err'
d7040cdb
SE
11826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11827 (eval $ac_try) 2>&5
11828 ac_status=$?
11829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830 (exit $ac_status); }; } &&
11831 { ac_try='test -s conftest$ac_exeext'
11832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11833 (eval $ac_try) 2>&5
11834 ac_status=$?
11835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11836 (exit $ac_status); }; }; then
11837 ac_cv_lib_fl_yywrap=yes
11838else
11839 echo "$as_me: failed program was:" >&5
11840sed 's/^/| /' conftest.$ac_ext >&5
11841
11842ac_cv_lib_fl_yywrap=no
11843fi
11844rm -f conftest.err conftest.$ac_objext \
11845 conftest$ac_exeext conftest.$ac_ext
11846LIBS=$ac_check_lib_save_LIBS
11847fi
11848echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
11849echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
11850if test $ac_cv_lib_fl_yywrap = yes; then
11851 LEXLIB="-lfl"
11852else
11853 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
11854echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
11855if test "${ac_cv_lib_l_yywrap+set}" = set; then
11856 echo $ECHO_N "(cached) $ECHO_C" >&6
11857else
11858 ac_check_lib_save_LIBS=$LIBS
11859LIBS="-ll $LIBS"
11860cat >conftest.$ac_ext <<_ACEOF
11861/* confdefs.h. */
11862_ACEOF
11863cat confdefs.h >>conftest.$ac_ext
11864cat >>conftest.$ac_ext <<_ACEOF
11865/* end confdefs.h. */
11866
11867/* Override any gcc2 internal prototype to avoid an error. */
11868#ifdef __cplusplus
11869extern "C"
11870#endif
11871/* We use char because int might match the return type of a gcc2
11872 builtin and then its argument prototype would still apply. */
11873char yywrap ();
11874int
11875main ()
11876{
11877yywrap ();
11878 ;
11879 return 0;
11880}
11881_ACEOF
11882rm -f conftest.$ac_objext conftest$ac_exeext
11883if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11884 (eval $ac_link) 2>conftest.er1
11885 ac_status=$?
11886 grep -v '^ *+' conftest.er1 >conftest.err
11887 rm -f conftest.er1
11888 cat conftest.err >&5
11889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890 (exit $ac_status); } &&
7357c5b6
AM
11891 { ac_try='test -z "$ac_c_werror_flag"
11892 || test ! -s conftest.err'
d7040cdb
SE
11893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11894 (eval $ac_try) 2>&5
11895 ac_status=$?
11896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897 (exit $ac_status); }; } &&
11898 { ac_try='test -s conftest$ac_exeext'
11899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11900 (eval $ac_try) 2>&5
11901 ac_status=$?
11902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11903 (exit $ac_status); }; }; then
11904 ac_cv_lib_l_yywrap=yes
11905else
11906 echo "$as_me: failed program was:" >&5
11907sed 's/^/| /' conftest.$ac_ext >&5
11908
11909ac_cv_lib_l_yywrap=no
11910fi
11911rm -f conftest.err conftest.$ac_objext \
11912 conftest$ac_exeext conftest.$ac_ext
11913LIBS=$ac_check_lib_save_LIBS
11914fi
11915echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
11916echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
11917if test $ac_cv_lib_l_yywrap = yes; then
11918 LEXLIB="-ll"
11919fi
11920
11921fi
11922
11923fi
11924
11925if test "x$LEX" != "x:"; then
11926 echo "$as_me:$LINENO: checking lex output file root" >&5
11927echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
11928if test "${ac_cv_prog_lex_root+set}" = set; then
11929 echo $ECHO_N "(cached) $ECHO_C" >&6
11930else
11931 # The minimal lex program is just a single line: %%. But some broken lexes
11932# (Solaris, I think it was) want two %% lines, so accommodate them.
11933cat >conftest.l <<_ACEOF
11934%%
11935%%
11936_ACEOF
11937{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
11938 (eval $LEX conftest.l) 2>&5
11939 ac_status=$?
11940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941 (exit $ac_status); }
11942if test -f lex.yy.c; then
11943 ac_cv_prog_lex_root=lex.yy
11944elif test -f lexyy.c; then
11945 ac_cv_prog_lex_root=lexyy
11946else
11947 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
11948echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
11949 { (exit 1); exit 1; }; }
11950fi
11951fi
11952echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
11953echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
11954rm -f conftest.l
11955LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
11956
11957echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
11958echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
11959if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
11960 echo $ECHO_N "(cached) $ECHO_C" >&6
11961else
11962 # POSIX says lex can declare yytext either as a pointer or an array; the
11963# default is implementation-dependent. Figure out which it is, since
11964# not all implementations provide the %pointer and %array declarations.
11965ac_cv_prog_lex_yytext_pointer=no
11966echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
11967ac_save_LIBS=$LIBS
11968LIBS="$LIBS $LEXLIB"
11969cat >conftest.$ac_ext <<_ACEOF
11970`cat $LEX_OUTPUT_ROOT.c`
11971_ACEOF
11972rm -f conftest.$ac_objext conftest$ac_exeext
11973if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11974 (eval $ac_link) 2>conftest.er1
11975 ac_status=$?
11976 grep -v '^ *+' conftest.er1 >conftest.err
11977 rm -f conftest.er1
11978 cat conftest.err >&5
11979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980 (exit $ac_status); } &&
7357c5b6
AM
11981 { ac_try='test -z "$ac_c_werror_flag"
11982 || test ! -s conftest.err'
d7040cdb
SE
11983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11984 (eval $ac_try) 2>&5
11985 ac_status=$?
11986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11987 (exit $ac_status); }; } &&
11988 { ac_try='test -s conftest$ac_exeext'
11989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11990 (eval $ac_try) 2>&5
11991 ac_status=$?
11992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11993 (exit $ac_status); }; }; then
11994 ac_cv_prog_lex_yytext_pointer=yes
11995else
11996 echo "$as_me: failed program was:" >&5
11997sed 's/^/| /' conftest.$ac_ext >&5
11998
11999fi
12000rm -f conftest.err conftest.$ac_objext \
12001 conftest$ac_exeext conftest.$ac_ext
12002LIBS=$ac_save_LIBS
12003rm -f "${LEX_OUTPUT_ROOT}.c"
12004
12005fi
12006echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
12007echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
12008if test $ac_cv_prog_lex_yytext_pointer = yes; then
12009
12010cat >>confdefs.h <<\_ACEOF
12011#define YYTEXT_POINTER 1
12012_ACEOF
12013
12014fi
12015
12016fi
12017if test "$LEX" = :; then
12018 LEX=${am_missing_run}flex
12019fi
12020
ac5d747e 12021ALL_LINGUAS="da es fi fr id ja ro ru rw sk sv tr uk vi zh_CN zh_TW"
d7040cdb
SE
12022# If we haven't got the data from the intl directory,
12023# assume NLS is disabled.
12024USE_NLS=no
12025LIBINTL=
12026LIBINTL_DEP=
12027INCINTL=
12028XGETTEXT=
12029GMSGFMT=
12030POSUB=
12031
12032if test -f ../intl/config.intl; then
12033 . ../intl/config.intl
12034fi
12035echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12036echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12037if test x"$USE_NLS" != xyes; then
12038 echo "$as_me:$LINENO: result: no" >&5
12039echo "${ECHO_T}no" >&6
12040else
12041 echo "$as_me:$LINENO: result: yes" >&5
12042echo "${ECHO_T}yes" >&6
12043
12044cat >>confdefs.h <<\_ACEOF
12045#define ENABLE_NLS 1
12046_ACEOF
12047
12048
12049 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12050echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12051 # Look for .po and .gmo files in the source directory.
12052 CATALOGS=
12053 XLINGUAS=
12054 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12055 # If there aren't any .gmo files the shell will give us the
12056 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12057 # weeded out.
12058 case "$cat" in *\**)
12059 continue;;
12060 esac
12061 # The quadruple backslash is collapsed to a double backslash
12062 # by the backticks, then collapsed again by the double quotes,
12063 # leaving us with one backslash in the sed expression (right
12064 # before the dot that mustn't act as a wildcard).
12065 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12066 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12067 # The user is allowed to set LINGUAS to a list of languages to
12068 # install catalogs for. If it's empty that means "all of them."
12069 if test "x$LINGUAS" = x; then
12070 CATALOGS="$CATALOGS $cat"
12071 XLINGUAS="$XLINGUAS $lang"
12072 else
12073 case "$LINGUAS" in *$lang*)
12074 CATALOGS="$CATALOGS $cat"
12075 XLINGUAS="$XLINGUAS $lang"
12076 ;;
12077 esac
12078 fi
12079 done
12080 LINGUAS="$XLINGUAS"
12081 echo "$as_me:$LINENO: result: $LINGUAS" >&5
12082echo "${ECHO_T}$LINGUAS" >&6
12083
12084
12085 DATADIRNAME=share
12086
12087 INSTOBJEXT=.mo
12088
12089 GENCAT=gencat
12090
12091 CATOBJEXT=.gmo
12092
12093fi
12094
12095 MKINSTALLDIRS=
12096 if test -n "$ac_aux_dir"; then
12097 case "$ac_aux_dir" in
12098 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
12099 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
12100 esac
12101 fi
12102 if test -z "$MKINSTALLDIRS"; then
12103 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12104 fi
12105
12106
12107
12108 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12109echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12110 # Check whether --enable-nls or --disable-nls was given.
12111if test "${enable_nls+set}" = set; then
12112 enableval="$enable_nls"
12113 USE_NLS=$enableval
12114else
12115 USE_NLS=yes
12116fi;
12117 echo "$as_me:$LINENO: result: $USE_NLS" >&5
12118echo "${ECHO_T}$USE_NLS" >&6
12119
12120
12121
12122
12123
12124
12125# Prepare PATH_SEPARATOR.
12126# The user is always right.
12127if test "${PATH_SEPARATOR+set}" != set; then
12128 echo "#! /bin/sh" >conf$$.sh
12129 echo "exit 0" >>conf$$.sh
12130 chmod +x conf$$.sh
12131 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12132 PATH_SEPARATOR=';'
12133 else
12134 PATH_SEPARATOR=:
12135 fi
12136 rm -f conf$$.sh
12137fi
12138
12139# Find out how to test for executable files. Don't use a zero-byte file,
12140# as systems may use methods other than mode bits to determine executability.
12141cat >conf$$.file <<_ASEOF
12142#! /bin/sh
12143exit 0
12144_ASEOF
12145chmod +x conf$$.file
12146if test -x conf$$.file >/dev/null 2>&1; then
12147 ac_executable_p="test -x"
12148else
12149 ac_executable_p="test -f"
12150fi
12151rm -f conf$$.file
12152
12153# Extract the first word of "msgfmt", so it can be a program name with args.
12154set dummy msgfmt; ac_word=$2
12155echo "$as_me:$LINENO: checking for $ac_word" >&5
12156echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12157if test "${ac_cv_path_MSGFMT+set}" = set; then
12158 echo $ECHO_N "(cached) $ECHO_C" >&6
12159else
12160 case "$MSGFMT" in
12161 [\\/]* | ?:[\\/]*)
12162 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12163 ;;
12164 *)
12165 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12166 for ac_dir in $PATH; do
12167 IFS="$ac_save_IFS"
12168 test -z "$ac_dir" && ac_dir=.
12169 for ac_exec_ext in '' $ac_executable_extensions; do
12170 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12171 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
12172 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12173 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12174 break 2
12175 fi
12176 fi
12177 done
12178 done
12179 IFS="$ac_save_IFS"
12180 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12181 ;;
12182esac
12183fi
12184MSGFMT="$ac_cv_path_MSGFMT"
12185if test "$MSGFMT" != ":"; then
12186 echo "$as_me:$LINENO: result: $MSGFMT" >&5
12187echo "${ECHO_T}$MSGFMT" >&6
12188else
12189 echo "$as_me:$LINENO: result: no" >&5
12190echo "${ECHO_T}no" >&6
12191fi
12192
12193 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12194set dummy gmsgfmt; ac_word=$2
12195echo "$as_me:$LINENO: checking for $ac_word" >&5
12196echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12197if test "${ac_cv_path_GMSGFMT+set}" = set; then
12198 echo $ECHO_N "(cached) $ECHO_C" >&6
12199else
12200 case $GMSGFMT in
12201 [\\/]* | ?:[\\/]*)
12202 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12203 ;;
12204 *)
12205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12206for as_dir in $PATH
12207do
12208 IFS=$as_save_IFS
12209 test -z "$as_dir" && as_dir=.
12210 for ac_exec_ext in '' $ac_executable_extensions; do
12211 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12212 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12214 break 2
12215 fi
12216done
12217done
12218
12219 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12220 ;;
12221esac
12222fi
12223GMSGFMT=$ac_cv_path_GMSGFMT
12224
12225if test -n "$GMSGFMT"; then
12226 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
12227echo "${ECHO_T}$GMSGFMT" >&6
12228else
12229 echo "$as_me:$LINENO: result: no" >&5
12230echo "${ECHO_T}no" >&6
12231fi
12232
12233
12234
12235# Prepare PATH_SEPARATOR.
12236# The user is always right.
12237if test "${PATH_SEPARATOR+set}" != set; then
12238 echo "#! /bin/sh" >conf$$.sh
12239 echo "exit 0" >>conf$$.sh
12240 chmod +x conf$$.sh
12241 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12242 PATH_SEPARATOR=';'
12243 else
12244 PATH_SEPARATOR=:
12245 fi
12246 rm -f conf$$.sh
12247fi
12248
12249# Find out how to test for executable files. Don't use a zero-byte file,
12250# as systems may use methods other than mode bits to determine executability.
12251cat >conf$$.file <<_ASEOF
12252#! /bin/sh
12253exit 0
12254_ASEOF
12255chmod +x conf$$.file
12256if test -x conf$$.file >/dev/null 2>&1; then
12257 ac_executable_p="test -x"
12258else
12259 ac_executable_p="test -f"
12260fi
12261rm -f conf$$.file
12262
12263# Extract the first word of "xgettext", so it can be a program name with args.
12264set dummy xgettext; ac_word=$2
12265echo "$as_me:$LINENO: checking for $ac_word" >&5
12266echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12267if test "${ac_cv_path_XGETTEXT+set}" = set; then
12268 echo $ECHO_N "(cached) $ECHO_C" >&6
12269else
12270 case "$XGETTEXT" in
12271 [\\/]* | ?:[\\/]*)
12272 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12273 ;;
12274 *)
12275 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12276 for ac_dir in $PATH; do
12277 IFS="$ac_save_IFS"
12278 test -z "$ac_dir" && ac_dir=.
12279 for ac_exec_ext in '' $ac_executable_extensions; do
12280 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12281 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12282 (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
12283 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12284 break 2
12285 fi
12286 fi
12287 done
12288 done
12289 IFS="$ac_save_IFS"
12290 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12291 ;;
12292esac
12293fi
12294XGETTEXT="$ac_cv_path_XGETTEXT"
12295if test "$XGETTEXT" != ":"; then
12296 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
12297echo "${ECHO_T}$XGETTEXT" >&6
12298else
12299 echo "$as_me:$LINENO: result: no" >&5
12300echo "${ECHO_T}no" >&6
12301fi
12302
12303 rm -f messages.po
12304
12305
12306# Prepare PATH_SEPARATOR.
12307# The user is always right.
12308if test "${PATH_SEPARATOR+set}" != set; then
12309 echo "#! /bin/sh" >conf$$.sh
12310 echo "exit 0" >>conf$$.sh
12311 chmod +x conf$$.sh
12312 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12313 PATH_SEPARATOR=';'
12314 else
12315 PATH_SEPARATOR=:
12316 fi
12317 rm -f conf$$.sh
12318fi
12319
12320# Find out how to test for executable files. Don't use a zero-byte file,
12321# as systems may use methods other than mode bits to determine executability.
12322cat >conf$$.file <<_ASEOF
12323#! /bin/sh
12324exit 0
12325_ASEOF
12326chmod +x conf$$.file
12327if test -x conf$$.file >/dev/null 2>&1; then
12328 ac_executable_p="test -x"
12329else
12330 ac_executable_p="test -f"
12331fi
12332rm -f conf$$.file
12333
12334# Extract the first word of "msgmerge", so it can be a program name with args.
12335set dummy msgmerge; ac_word=$2
12336echo "$as_me:$LINENO: checking for $ac_word" >&5
12337echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12338if test "${ac_cv_path_MSGMERGE+set}" = set; then
12339 echo $ECHO_N "(cached) $ECHO_C" >&6
12340else
12341 case "$MSGMERGE" in
12342 [\\/]* | ?:[\\/]*)
12343 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12344 ;;
12345 *)
12346 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12347 for ac_dir in $PATH; do
12348 IFS="$ac_save_IFS"
12349 test -z "$ac_dir" && ac_dir=.
12350 for ac_exec_ext in '' $ac_executable_extensions; do
12351 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12352 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12353 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12354 break 2
12355 fi
12356 fi
12357 done
12358 done
12359 IFS="$ac_save_IFS"
12360 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12361 ;;
12362esac
12363fi
12364MSGMERGE="$ac_cv_path_MSGMERGE"
12365if test "$MSGMERGE" != ":"; then
12366 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
12367echo "${ECHO_T}$MSGMERGE" >&6
12368else
12369 echo "$as_me:$LINENO: result: no" >&5
12370echo "${ECHO_T}no" >&6
12371fi
12372
12373
12374 if test "$GMSGFMT" != ":"; then
12375 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12376 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12377 : ;
12378 else
12379 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
12380 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12381echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
12382 GMSGFMT=":"
12383 fi
12384 fi
12385
12386 if test "$XGETTEXT" != ":"; then
12387 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12388 (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
12389 : ;
12390 else
12391 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
12392echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
12393 XGETTEXT=":"
12394 fi
12395 rm -f messages.po
12396 fi
12397
12398 ac_config_commands="$ac_config_commands default-1"
12399
12400
12401
12402echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12403echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
12404 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
12405if test "${enable_maintainer_mode+set}" = set; then
12406 enableval="$enable_maintainer_mode"
12407 USE_MAINTAINER_MODE=$enableval
42ecbf5e 12408else
d7040cdb
SE
12409 USE_MAINTAINER_MODE=no
12410fi;
12411 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
12412echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
42ecbf5e 12413
d7040cdb
SE
12414
12415if test $USE_MAINTAINER_MODE = yes; then
12416 MAINTAINER_MODE_TRUE=
12417 MAINTAINER_MODE_FALSE='#'
12418else
12419 MAINTAINER_MODE_TRUE='#'
12420 MAINTAINER_MODE_FALSE=
42ecbf5e 12421fi
d7040cdb
SE
12422
12423 MAINT=$MAINTAINER_MODE_TRUE
12424
12425
12426
12427
12428if false; then
12429 GENINSRC_NEVER_TRUE=
12430 GENINSRC_NEVER_FALSE='#'
12431else
12432 GENINSRC_NEVER_TRUE='#'
12433 GENINSRC_NEVER_FALSE=
42ecbf5e 12434fi
d7040cdb
SE
12435
12436
12437if test -n "$EXEEXT"; then
20e95c23
DJ
12438
12439cat >>confdefs.h <<\_ACEOF
d7040cdb 12440#define HAVE_EXECUTABLE_SUFFIX 1
20e95c23 12441_ACEOF
42ecbf5e 12442
252b5132
RH
12443fi
12444
d7040cdb
SE
12445cat >>confdefs.h <<_ACEOF
12446#define EXECUTABLE_SUFFIX "${EXEEXT}"
12447_ACEOF
42ecbf5e 12448
252b5132 12449
d7040cdb 12450# host-specific stuff:
252b5132 12451
d7040cdb 12452HDEFINES=
252b5132 12453
d7040cdb 12454. ${srcdir}/../bfd/configure.host
252b5132 12455
252b5132 12456
d7040cdb 12457AR=${AR-ar}
252b5132 12458
d7040cdb
SE
12459if test -n "$ac_tool_prefix"; then
12460 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12461set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12462echo "$as_me:$LINENO: checking for $ac_word" >&5
12463echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12464if test "${ac_cv_prog_RANLIB+set}" = set; then
12465 echo $ECHO_N "(cached) $ECHO_C" >&6
12466else
12467 if test -n "$RANLIB"; then
12468 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12469else
12470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12471for as_dir in $PATH
12472do
12473 IFS=$as_save_IFS
12474 test -z "$as_dir" && as_dir=.
12475 for ac_exec_ext in '' $ac_executable_extensions; do
12476 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12477 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12479 break 2
12480 fi
12481done
12482done
252b5132 12483
d7040cdb
SE
12484fi
12485fi
12486RANLIB=$ac_cv_prog_RANLIB
12487if test -n "$RANLIB"; then
12488 echo "$as_me:$LINENO: result: $RANLIB" >&5
12489echo "${ECHO_T}$RANLIB" >&6
12490else
12491 echo "$as_me:$LINENO: result: no" >&5
12492echo "${ECHO_T}no" >&6
12493fi
20e95c23 12494
d7040cdb
SE
12495fi
12496if test -z "$ac_cv_prog_RANLIB"; then
12497 ac_ct_RANLIB=$RANLIB
12498 # Extract the first word of "ranlib", so it can be a program name with args.
12499set dummy ranlib; ac_word=$2
12500echo "$as_me:$LINENO: checking for $ac_word" >&5
12501echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12502if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
42ecbf5e 12503 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12504else
d7040cdb
SE
12505 if test -n "$ac_ct_RANLIB"; then
12506 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12507else
12508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12509for as_dir in $PATH
12510do
12511 IFS=$as_save_IFS
12512 test -z "$as_dir" && as_dir=.
12513 for ac_exec_ext in '' $ac_executable_extensions; do
12514 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12515 ac_cv_prog_ac_ct_RANLIB="ranlib"
12516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12517 break 2
12518 fi
12519done
12520done
20e95c23 12521
d7040cdb
SE
12522 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
12523fi
12524fi
12525ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12526if test -n "$ac_ct_RANLIB"; then
12527 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
12528echo "${ECHO_T}$ac_ct_RANLIB" >&6
20e95c23 12529else
d7040cdb
SE
12530 echo "$as_me:$LINENO: result: no" >&5
12531echo "${ECHO_T}no" >&6
12532fi
12533
12534 RANLIB=$ac_ct_RANLIB
12535else
12536 RANLIB="$ac_cv_prog_RANLIB"
12537fi
12538
12539# Find a good install program. We prefer a C program (faster),
12540# so one script is as good as another. But avoid the broken or
12541# incompatible versions:
12542# SysV /etc/install, /usr/sbin/install
12543# SunOS /usr/etc/install
12544# IRIX /sbin/install
12545# AIX /bin/install
12546# AmigaOS /C/install, which installs bootblocks on floppy discs
12547# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12548# AFS /usr/afsws/bin/install, which mishandles nonexistent args
12549# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
12550# OS/2's system install, which has a completely different semantic
12551# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 12552# Reject install programs that cannot install multiple files.
d7040cdb
SE
12553echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12554echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
12555if test -z "$INSTALL"; then
12556if test "${ac_cv_path_install+set}" = set; then
12557 echo $ECHO_N "(cached) $ECHO_C" >&6
12558else
12559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12560for as_dir in $PATH
12561do
12562 IFS=$as_save_IFS
12563 test -z "$as_dir" && as_dir=.
12564 # Account for people who put trailing slashes in PATH elements.
12565case $as_dir/ in
12566 ./ | .// | /cC/* | \
12567 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
12568 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
12569 /usr/ucb/* ) ;;
12570 *)
12571 # OSF1 and SCO ODT 3.0 have their own names for install.
12572 # Don't use installbsd from OSF since it installs stuff as root
12573 # by default.
12574 for ac_prog in ginstall scoinst install; do
12575 for ac_exec_ext in '' $ac_executable_extensions; do
12576 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
12577 if test $ac_prog = install &&
12578 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12579 # AIX install. It has an incompatible calling convention.
12580 :
12581 elif test $ac_prog = install &&
12582 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12583 # program-specific install script used by HP pwplus--don't use.
12584 :
12585 else
58c85be7
RW
12586 rm -rf conftest.one conftest.two conftest.dir
12587 echo one > conftest.one
12588 echo two > conftest.two
12589 mkdir conftest.dir
12590 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
12591 test -s conftest.one && test -s conftest.two &&
12592 test -s conftest.dir/conftest.one &&
12593 test -s conftest.dir/conftest.two
12594 then
12595 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12596 break 3
12597 fi
d7040cdb
SE
12598 fi
12599 fi
12600 done
12601 done
12602 ;;
12603esac
12604done
12605
58c85be7 12606rm -rf conftest.one conftest.two conftest.dir
d7040cdb
SE
12607
12608fi
12609 if test "${ac_cv_path_install+set}" = set; then
12610 INSTALL=$ac_cv_path_install
12611 else
58c85be7
RW
12612 # As a last resort, use the slow shell script. Don't cache a
12613 # value for INSTALL within a source directory, because that will
d7040cdb 12614 # break other packages using the cache if that directory is
58c85be7 12615 # removed, or if the value is a relative name.
d7040cdb
SE
12616 INSTALL=$ac_install_sh
12617 fi
12618fi
12619echo "$as_me:$LINENO: result: $INSTALL" >&5
12620echo "${ECHO_T}$INSTALL" >&6
12621
12622# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12623# It thinks the first close brace ends the variable substitution.
12624test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12625
12626test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12627
12628test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12629
12630
12631# Put a plausible default for CC_FOR_BUILD in Makefile.
12632if test -z "$CC_FOR_BUILD"; then
12633 if test "x$cross_compiling" = "xno"; then
12634 CC_FOR_BUILD='$(CC)'
12635 else
12636 CC_FOR_BUILD=gcc
12637 fi
12638fi
20e95c23 12639
d7040cdb
SE
12640# Also set EXEEXT_FOR_BUILD.
12641if test "x$cross_compiling" = "xno"; then
12642 EXEEXT_FOR_BUILD='$(EXEEXT)'
12643else
12644 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
12645echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
12646if test "${bfd_cv_build_exeext+set}" = set; then
12647 echo $ECHO_N "(cached) $ECHO_C" >&6
12648else
12649 rm -f conftest*
12650 echo 'int main () { return 0; }' > conftest.c
12651 bfd_cv_build_exeext=
12652 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
12653 for file in conftest.*; do
12654 case $file in
12655 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
12656 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
12657 esac
12658 done
12659 rm -f conftest*
12660 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
252b5132 12661fi
d7040cdb
SE
12662echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
12663echo "${ECHO_T}$bfd_cv_build_exeext" >&6
12664 EXEEXT_FOR_BUILD=""
12665 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
252b5132
RH
12666fi
12667
12668
d7040cdb
SE
12669DEMANGLER_NAME=c++filt
12670case "${host}" in
12671 *-*-go32* | *-*-msdos*)
12672 DEMANGLER_NAME=cxxfilt
12673esac
8a965946
ILT
12674
12675
42ecbf5e
DJ
12676
12677
12678
12679
12680
12681
f8eae8b2
L
12682
12683
12684for ac_header in string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h limits.h sys/param.h
252b5132 12685do
42ecbf5e
DJ
12686as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12687if eval "test \"\${$as_ac_Header+set}\" = set"; then
12688 echo "$as_me:$LINENO: checking for $ac_header" >&5
12689echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12690if eval "test \"\${$as_ac_Header+set}\" = set"; then
12691 echo $ECHO_N "(cached) $ECHO_C" >&6
12692fi
12693echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12694echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12695else
12696 # Is the header compilable?
12697echo "$as_me:$LINENO: checking $ac_header usability" >&5
12698echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12699cat >conftest.$ac_ext <<_ACEOF
12700/* confdefs.h. */
12701_ACEOF
12702cat confdefs.h >>conftest.$ac_ext
12703cat >>conftest.$ac_ext <<_ACEOF
12704/* end confdefs.h. */
12705$ac_includes_default
12706#include <$ac_header>
12707_ACEOF
12708rm -f conftest.$ac_objext
12709if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12710 (eval $ac_compile) 2>conftest.er1
12711 ac_status=$?
12712 grep -v '^ *+' conftest.er1 >conftest.err
12713 rm -f conftest.er1
12714 cat conftest.err >&5
12715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12716 (exit $ac_status); } &&
7357c5b6
AM
12717 { ac_try='test -z "$ac_c_werror_flag"
12718 || test ! -s conftest.err'
42ecbf5e
DJ
12719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12720 (eval $ac_try) 2>&5
12721 ac_status=$?
12722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12723 (exit $ac_status); }; } &&
12724 { ac_try='test -s conftest.$ac_objext'
12725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12726 (eval $ac_try) 2>&5
12727 ac_status=$?
12728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12729 (exit $ac_status); }; }; then
12730 ac_header_compiler=yes
12731else
12732 echo "$as_me: failed program was:" >&5
12733sed 's/^/| /' conftest.$ac_ext >&5
12734
12735ac_header_compiler=no
12736fi
12737rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12738echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12739echo "${ECHO_T}$ac_header_compiler" >&6
12740
12741# Is the header present?
12742echo "$as_me:$LINENO: checking $ac_header presence" >&5
12743echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12744cat >conftest.$ac_ext <<_ACEOF
12745/* confdefs.h. */
12746_ACEOF
12747cat confdefs.h >>conftest.$ac_ext
12748cat >>conftest.$ac_ext <<_ACEOF
12749/* end confdefs.h. */
12750#include <$ac_header>
12751_ACEOF
12752if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12753 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12754 ac_status=$?
12755 grep -v '^ *+' conftest.er1 >conftest.err
12756 rm -f conftest.er1
12757 cat conftest.err >&5
12758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759 (exit $ac_status); } >/dev/null; then
12760 if test -s conftest.err; then
12761 ac_cpp_err=$ac_c_preproc_warn_flag
12762 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12763 else
12764 ac_cpp_err=
12765 fi
252b5132 12766else
42ecbf5e 12767 ac_cpp_err=yes
252b5132 12768fi
42ecbf5e
DJ
12769if test -z "$ac_cpp_err"; then
12770 ac_header_preproc=yes
12771else
12772 echo "$as_me: failed program was:" >&5
12773sed 's/^/| /' conftest.$ac_ext >&5
12774
12775 ac_header_preproc=no
252b5132 12776fi
42ecbf5e
DJ
12777rm -f conftest.err conftest.$ac_ext
12778echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12779echo "${ECHO_T}$ac_header_preproc" >&6
12780
12781# So? What about this header?
12782case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12783 yes:no: )
12784 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12785echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12786 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12787echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12788 ac_header_preproc=yes
12789 ;;
12790 no:yes:* )
12791 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12792echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12793 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12794echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12795 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12796echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12797 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12798echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12800echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12801 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12802echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12803 (
12804 cat <<\_ASBOX
12805## ------------------------------------------ ##
12806## Report this to the AC_PACKAGE_NAME lists. ##
12807## ------------------------------------------ ##
12808_ASBOX
12809 ) |
12810 sed "s/^/$as_me: WARNING: /" >&2
12811 ;;
12812esac
12813echo "$as_me:$LINENO: checking for $ac_header" >&5
12814echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12815if eval "test \"\${$as_ac_Header+set}\" = set"; then
12816 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12817else
42ecbf5e
DJ
12818 eval "$as_ac_Header=\$ac_header_preproc"
12819fi
12820echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12821echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12822
252b5132 12823fi
42ecbf5e
DJ
12824if test `eval echo '${'$as_ac_Header'}'` = yes; then
12825 cat >>confdefs.h <<_ACEOF
12826#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12827_ACEOF
12828
12829fi
12830
252b5132
RH
12831done
12832
42ecbf5e
DJ
12833echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
12834echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
12835if test "${ac_cv_header_sys_wait_h+set}" = set; then
12836 echo $ECHO_N "(cached) $ECHO_C" >&6
12837else
12838 cat >conftest.$ac_ext <<_ACEOF
12839/* confdefs.h. */
12840_ACEOF
12841cat confdefs.h >>conftest.$ac_ext
12842cat >>conftest.$ac_ext <<_ACEOF
12843/* end confdefs.h. */
252b5132
RH
12844#include <sys/types.h>
12845#include <sys/wait.h>
12846#ifndef WEXITSTATUS
42ecbf5e 12847# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
252b5132
RH
12848#endif
12849#ifndef WIFEXITED
42ecbf5e 12850# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
252b5132 12851#endif
42ecbf5e
DJ
12852
12853int
12854main ()
12855{
12856 int s;
12857 wait (&s);
12858 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
12859 ;
12860 return 0;
12861}
12862_ACEOF
12863rm -f conftest.$ac_objext
12864if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12865 (eval $ac_compile) 2>conftest.er1
12866 ac_status=$?
12867 grep -v '^ *+' conftest.er1 >conftest.err
12868 rm -f conftest.er1
12869 cat conftest.err >&5
12870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12871 (exit $ac_status); } &&
7357c5b6
AM
12872 { ac_try='test -z "$ac_c_werror_flag"
12873 || test ! -s conftest.err'
42ecbf5e
DJ
12874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12875 (eval $ac_try) 2>&5
12876 ac_status=$?
12877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12878 (exit $ac_status); }; } &&
12879 { ac_try='test -s conftest.$ac_objext'
12880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12881 (eval $ac_try) 2>&5
12882 ac_status=$?
12883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12884 (exit $ac_status); }; }; then
252b5132
RH
12885 ac_cv_header_sys_wait_h=yes
12886else
42ecbf5e
DJ
12887 echo "$as_me: failed program was:" >&5
12888sed 's/^/| /' conftest.$ac_ext >&5
12889
12890ac_cv_header_sys_wait_h=no
252b5132 12891fi
42ecbf5e 12892rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 12893fi
42ecbf5e
DJ
12894echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
12895echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
d15b04bd 12896if test $ac_cv_header_sys_wait_h = yes; then
42ecbf5e
DJ
12897
12898cat >>confdefs.h <<\_ACEOF
252b5132 12899#define HAVE_SYS_WAIT_H 1
42ecbf5e 12900_ACEOF
252b5132
RH
12901
12902fi
12903
12904# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12905# for constant arguments. Useless!
42ecbf5e
DJ
12906echo "$as_me:$LINENO: checking for working alloca.h" >&5
12907echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
12908if test "${ac_cv_working_alloca_h+set}" = set; then
12909 echo $ECHO_N "(cached) $ECHO_C" >&6
12910else
12911 cat >conftest.$ac_ext <<_ACEOF
12912/* confdefs.h. */
12913_ACEOF
12914cat confdefs.h >>conftest.$ac_ext
12915cat >>conftest.$ac_ext <<_ACEOF
12916/* end confdefs.h. */
252b5132 12917#include <alloca.h>
42ecbf5e
DJ
12918int
12919main ()
12920{
12921char *p = (char *) alloca (2 * sizeof (int));
12922 ;
12923 return 0;
12924}
12925_ACEOF
12926rm -f conftest.$ac_objext conftest$ac_exeext
12927if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12928 (eval $ac_link) 2>conftest.er1
12929 ac_status=$?
12930 grep -v '^ *+' conftest.er1 >conftest.err
12931 rm -f conftest.er1
12932 cat conftest.err >&5
12933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12934 (exit $ac_status); } &&
7357c5b6
AM
12935 { ac_try='test -z "$ac_c_werror_flag"
12936 || test ! -s conftest.err'
42ecbf5e
DJ
12937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12938 (eval $ac_try) 2>&5
12939 ac_status=$?
12940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12941 (exit $ac_status); }; } &&
12942 { ac_try='test -s conftest$ac_exeext'
12943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12944 (eval $ac_try) 2>&5
12945 ac_status=$?
12946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12947 (exit $ac_status); }; }; then
12948 ac_cv_working_alloca_h=yes
12949else
12950 echo "$as_me: failed program was:" >&5
12951sed 's/^/| /' conftest.$ac_ext >&5
12952
12953ac_cv_working_alloca_h=no
12954fi
12955rm -f conftest.err conftest.$ac_objext \
12956 conftest$ac_exeext conftest.$ac_ext
12957fi
12958echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12959echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
12960if test $ac_cv_working_alloca_h = yes; then
12961
12962cat >>confdefs.h <<\_ACEOF
252b5132 12963#define HAVE_ALLOCA_H 1
42ecbf5e 12964_ACEOF
252b5132
RH
12965
12966fi
12967
42ecbf5e
DJ
12968echo "$as_me:$LINENO: checking for alloca" >&5
12969echo $ECHO_N "checking for alloca... $ECHO_C" >&6
12970if test "${ac_cv_func_alloca_works+set}" = set; then
12971 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12972else
42ecbf5e
DJ
12973 cat >conftest.$ac_ext <<_ACEOF
12974/* confdefs.h. */
12975_ACEOF
12976cat confdefs.h >>conftest.$ac_ext
12977cat >>conftest.$ac_ext <<_ACEOF
12978/* end confdefs.h. */
252b5132
RH
12979#ifdef __GNUC__
12980# define alloca __builtin_alloca
12981#else
12982# ifdef _MSC_VER
12983# include <malloc.h>
12984# define alloca _alloca
12985# else
12986# if HAVE_ALLOCA_H
12987# include <alloca.h>
12988# else
12989# ifdef _AIX
12990 #pragma alloca
12991# else
12992# ifndef alloca /* predefined by HP cc +Olibcalls */
12993char *alloca ();
12994# endif
12995# endif
12996# endif
12997# endif
12998#endif
12999
42ecbf5e
DJ
13000int
13001main ()
13002{
13003char *p = (char *) alloca (1);
13004 ;
13005 return 0;
13006}
13007_ACEOF
13008rm -f conftest.$ac_objext conftest$ac_exeext
13009if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13010 (eval $ac_link) 2>conftest.er1
13011 ac_status=$?
13012 grep -v '^ *+' conftest.er1 >conftest.err
13013 rm -f conftest.er1
13014 cat conftest.err >&5
13015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13016 (exit $ac_status); } &&
7357c5b6
AM
13017 { ac_try='test -z "$ac_c_werror_flag"
13018 || test ! -s conftest.err'
42ecbf5e
DJ
13019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13020 (eval $ac_try) 2>&5
13021 ac_status=$?
13022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13023 (exit $ac_status); }; } &&
13024 { ac_try='test -s conftest$ac_exeext'
13025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13026 (eval $ac_try) 2>&5
13027 ac_status=$?
13028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13029 (exit $ac_status); }; }; then
252b5132
RH
13030 ac_cv_func_alloca_works=yes
13031else
42ecbf5e
DJ
13032 echo "$as_me: failed program was:" >&5
13033sed 's/^/| /' conftest.$ac_ext >&5
13034
13035ac_cv_func_alloca_works=no
252b5132 13036fi
42ecbf5e
DJ
13037rm -f conftest.err conftest.$ac_objext \
13038 conftest$ac_exeext conftest.$ac_ext
252b5132 13039fi
42ecbf5e
DJ
13040echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13041echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
252b5132 13042
252b5132 13043if test $ac_cv_func_alloca_works = yes; then
e5a52504 13044
42ecbf5e
DJ
13045cat >>confdefs.h <<\_ACEOF
13046#define HAVE_ALLOCA 1
13047_ACEOF
e5a52504 13048
42ecbf5e 13049else
d15b04bd 13050 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
42ecbf5e
DJ
13051# that cause trouble. Some versions do not even contain alloca or
13052# contain a buggy version. If you still want to use their alloca,
13053# use ar to extract alloca.o from them instead of compiling alloca.c.
13054
13055ALLOCA=alloca.$ac_objext
13056
13057cat >>confdefs.h <<\_ACEOF
252b5132 13058#define C_ALLOCA 1
42ecbf5e 13059_ACEOF
252b5132
RH
13060
13061
42ecbf5e
DJ
13062echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13063echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13064if test "${ac_cv_os_cray+set}" = set; then
13065 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 13066else
42ecbf5e
DJ
13067 cat >conftest.$ac_ext <<_ACEOF
13068/* confdefs.h. */
13069_ACEOF
13070cat confdefs.h >>conftest.$ac_ext
13071cat >>conftest.$ac_ext <<_ACEOF
13072/* end confdefs.h. */
252b5132
RH
13073#if defined(CRAY) && ! defined(CRAY2)
13074webecray
13075#else
13076wenotbecray
13077#endif
13078
42ecbf5e 13079_ACEOF
252b5132 13080if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42ecbf5e 13081 $EGREP "webecray" >/dev/null 2>&1; then
252b5132
RH
13082 ac_cv_os_cray=yes
13083else
252b5132
RH
13084 ac_cv_os_cray=no
13085fi
13086rm -f conftest*
13087
13088fi
42ecbf5e
DJ
13089echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13090echo "${ECHO_T}$ac_cv_os_cray" >&6
d15b04bd 13091if test $ac_cv_os_cray = yes; then
42ecbf5e
DJ
13092 for ac_func in _getb67 GETB67 getb67; do
13093 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13094echo "$as_me:$LINENO: checking for $ac_func" >&5
13095echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13096if eval "test \"\${$as_ac_var+set}\" = set"; then
13097 echo $ECHO_N "(cached) $ECHO_C" >&6
13098else
13099 cat >conftest.$ac_ext <<_ACEOF
13100/* confdefs.h. */
13101_ACEOF
13102cat confdefs.h >>conftest.$ac_ext
13103cat >>conftest.$ac_ext <<_ACEOF
13104/* end confdefs.h. */
13105/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13106 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13107#define $ac_func innocuous_$ac_func
13108
252b5132 13109/* System header to define __stub macros and hopefully few prototypes,
42ecbf5e
DJ
13110 which can conflict with char $ac_func (); below.
13111 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13112 <limits.h> exists even on freestanding compilers. */
13113
13114#ifdef __STDC__
13115# include <limits.h>
13116#else
13117# include <assert.h>
13118#endif
d15b04bd 13119
42ecbf5e 13120#undef $ac_func
d15b04bd 13121
42ecbf5e
DJ
13122/* Override any gcc2 internal prototype to avoid an error. */
13123#ifdef __cplusplus
13124extern "C"
13125{
13126#endif
13127/* We use char because int might match the return type of a gcc2
13128 builtin and then its argument prototype would still apply. */
13129char $ac_func ();
252b5132
RH
13130/* The GNU C library defines this for functions which it implements
13131 to always fail with ENOSYS. Some functions are actually named
13132 something starting with __ and the normal name is an alias. */
13133#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13134choke me
13135#else
42ecbf5e
DJ
13136char (*f) () = $ac_func;
13137#endif
13138#ifdef __cplusplus
13139}
252b5132
RH
13140#endif
13141
42ecbf5e
DJ
13142int
13143main ()
13144{
13145return f != $ac_func;
13146 ;
13147 return 0;
13148}
13149_ACEOF
13150rm -f conftest.$ac_objext conftest$ac_exeext
13151if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13152 (eval $ac_link) 2>conftest.er1
13153 ac_status=$?
13154 grep -v '^ *+' conftest.er1 >conftest.err
13155 rm -f conftest.er1
13156 cat conftest.err >&5
13157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13158 (exit $ac_status); } &&
7357c5b6
AM
13159 { ac_try='test -z "$ac_c_werror_flag"
13160 || test ! -s conftest.err'
42ecbf5e
DJ
13161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13162 (eval $ac_try) 2>&5
13163 ac_status=$?
13164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13165 (exit $ac_status); }; } &&
13166 { ac_try='test -s conftest$ac_exeext'
13167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13168 (eval $ac_try) 2>&5
13169 ac_status=$?
13170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13171 (exit $ac_status); }; }; then
13172 eval "$as_ac_var=yes"
13173else
13174 echo "$as_me: failed program was:" >&5
13175sed 's/^/| /' conftest.$ac_ext >&5
13176
13177eval "$as_ac_var=no"
13178fi
13179rm -f conftest.err conftest.$ac_objext \
13180 conftest$ac_exeext conftest.$ac_ext
13181fi
13182echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13183echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13184if test `eval echo '${'$as_ac_var'}'` = yes; then
13185
13186cat >>confdefs.h <<_ACEOF
252b5132 13187#define CRAY_STACKSEG_END $ac_func
42ecbf5e 13188_ACEOF
252b5132 13189
42ecbf5e 13190 break
252b5132
RH
13191fi
13192
42ecbf5e 13193 done
252b5132
RH
13194fi
13195
42ecbf5e
DJ
13196echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13197echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13198if test "${ac_cv_c_stack_direction+set}" = set; then
13199 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
13200else
13201 if test "$cross_compiling" = yes; then
13202 ac_cv_c_stack_direction=0
13203else
42ecbf5e
DJ
13204 cat >conftest.$ac_ext <<_ACEOF
13205/* confdefs.h. */
13206_ACEOF
13207cat confdefs.h >>conftest.$ac_ext
13208cat >>conftest.$ac_ext <<_ACEOF
13209/* end confdefs.h. */
13210int
252b5132
RH
13211find_stack_direction ()
13212{
13213 static char *addr = 0;
13214 auto char dummy;
13215 if (addr == 0)
13216 {
13217 addr = &dummy;
13218 return find_stack_direction ();
13219 }
13220 else
13221 return (&dummy > addr) ? 1 : -1;
13222}
42ecbf5e
DJ
13223
13224int
252b5132
RH
13225main ()
13226{
42ecbf5e 13227 exit (find_stack_direction () < 0);
252b5132 13228}
42ecbf5e
DJ
13229_ACEOF
13230rm -f conftest$ac_exeext
13231if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13232 (eval $ac_link) 2>&5
13233 ac_status=$?
13234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13235 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13237 (eval $ac_try) 2>&5
13238 ac_status=$?
13239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13240 (exit $ac_status); }; }; then
252b5132
RH
13241 ac_cv_c_stack_direction=1
13242else
42ecbf5e
DJ
13243 echo "$as_me: program exited with status $ac_status" >&5
13244echo "$as_me: failed program was:" >&5
13245sed 's/^/| /' conftest.$ac_ext >&5
13246
13247( exit $ac_status )
13248ac_cv_c_stack_direction=-1
252b5132 13249fi
42ecbf5e 13250rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 13251fi
252b5132 13252fi
42ecbf5e
DJ
13253echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13254echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
252b5132 13255
42ecbf5e 13256cat >>confdefs.h <<_ACEOF
252b5132 13257#define STACK_DIRECTION $ac_cv_c_stack_direction
42ecbf5e
DJ
13258_ACEOF
13259
252b5132
RH
13260
13261fi
13262
42ecbf5e
DJ
13263
13264
13265
13266
13267
9710509e 13268for ac_func in sbrk utimes setmode getc_unlocked strcoll
252b5132 13269do
42ecbf5e
DJ
13270as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13271echo "$as_me:$LINENO: checking for $ac_func" >&5
13272echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13273if eval "test \"\${$as_ac_var+set}\" = set"; then
13274 echo $ECHO_N "(cached) $ECHO_C" >&6
13275else
13276 cat >conftest.$ac_ext <<_ACEOF
13277/* confdefs.h. */
13278_ACEOF
13279cat confdefs.h >>conftest.$ac_ext
13280cat >>conftest.$ac_ext <<_ACEOF
13281/* end confdefs.h. */
13282/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13283 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13284#define $ac_func innocuous_$ac_func
13285
252b5132 13286/* System header to define __stub macros and hopefully few prototypes,
42ecbf5e
DJ
13287 which can conflict with char $ac_func (); below.
13288 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13289 <limits.h> exists even on freestanding compilers. */
13290
13291#ifdef __STDC__
13292# include <limits.h>
13293#else
13294# include <assert.h>
13295#endif
d15b04bd 13296
42ecbf5e 13297#undef $ac_func
d15b04bd 13298
42ecbf5e
DJ
13299/* Override any gcc2 internal prototype to avoid an error. */
13300#ifdef __cplusplus
13301extern "C"
13302{
13303#endif
13304/* We use char because int might match the return type of a gcc2
13305 builtin and then its argument prototype would still apply. */
13306char $ac_func ();
252b5132
RH
13307/* The GNU C library defines this for functions which it implements
13308 to always fail with ENOSYS. Some functions are actually named
13309 something starting with __ and the normal name is an alias. */
13310#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13311choke me
13312#else
42ecbf5e
DJ
13313char (*f) () = $ac_func;
13314#endif
13315#ifdef __cplusplus
13316}
252b5132
RH
13317#endif
13318
42ecbf5e
DJ
13319int
13320main ()
13321{
13322return f != $ac_func;
13323 ;
13324 return 0;
13325}
13326_ACEOF
13327rm -f conftest.$ac_objext conftest$ac_exeext
13328if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13329 (eval $ac_link) 2>conftest.er1
13330 ac_status=$?
13331 grep -v '^ *+' conftest.er1 >conftest.err
13332 rm -f conftest.er1
13333 cat conftest.err >&5
13334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13335 (exit $ac_status); } &&
7357c5b6
AM
13336 { ac_try='test -z "$ac_c_werror_flag"
13337 || test ! -s conftest.err'
42ecbf5e
DJ
13338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13339 (eval $ac_try) 2>&5
13340 ac_status=$?
13341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13342 (exit $ac_status); }; } &&
13343 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
13349 eval "$as_ac_var=yes"
13350else
13351 echo "$as_me: failed program was:" >&5
13352sed 's/^/| /' conftest.$ac_ext >&5
13353
13354eval "$as_ac_var=no"
13355fi
13356rm -f conftest.err conftest.$ac_objext \
13357 conftest$ac_exeext conftest.$ac_ext
13358fi
13359echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13360echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13361if test `eval echo '${'$as_ac_var'}'` = yes; then
13362 cat >>confdefs.h <<_ACEOF
13363#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13364_ACEOF
252b5132 13365
252b5132
RH
13366fi
13367done
13368
f9c026a8
NC
13369echo "$as_me:$LINENO: checking for mkstemp" >&5
13370echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
13371if test "${ac_cv_func_mkstemp+set}" = set; then
13372 echo $ECHO_N "(cached) $ECHO_C" >&6
13373else
13374 cat >conftest.$ac_ext <<_ACEOF
13375/* confdefs.h. */
13376_ACEOF
13377cat confdefs.h >>conftest.$ac_ext
13378cat >>conftest.$ac_ext <<_ACEOF
13379/* end confdefs.h. */
13380/* Define mkstemp to an innocuous variant, in case <limits.h> declares mkstemp.
13381 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13382#define mkstemp innocuous_mkstemp
13383
13384/* System header to define __stub macros and hopefully few prototypes,
13385 which can conflict with char mkstemp (); below.
13386 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13387 <limits.h> exists even on freestanding compilers. */
13388
13389#ifdef __STDC__
13390# include <limits.h>
13391#else
13392# include <assert.h>
13393#endif
13394
13395#undef mkstemp
13396
13397/* Override any gcc2 internal prototype to avoid an error. */
13398#ifdef __cplusplus
13399extern "C"
13400{
13401#endif
13402/* We use char because int might match the return type of a gcc2
13403 builtin and then its argument prototype would still apply. */
13404char mkstemp ();
13405/* The GNU C library defines this for functions which it implements
13406 to always fail with ENOSYS. Some functions are actually named
13407 something starting with __ and the normal name is an alias. */
13408#if defined (__stub_mkstemp) || defined (__stub___mkstemp)
13409choke me
13410#else
13411char (*f) () = mkstemp;
13412#endif
13413#ifdef __cplusplus
13414}
13415#endif
13416
13417int
13418main ()
13419{
13420return f != mkstemp;
13421 ;
13422 return 0;
13423}
13424_ACEOF
13425rm -f conftest.$ac_objext conftest$ac_exeext
13426if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13427 (eval $ac_link) 2>conftest.er1
13428 ac_status=$?
13429 grep -v '^ *+' conftest.er1 >conftest.err
13430 rm -f conftest.er1
13431 cat conftest.err >&5
13432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13433 (exit $ac_status); } &&
7357c5b6
AM
13434 { ac_try='test -z "$ac_c_werror_flag"
13435 || test ! -s conftest.err'
f9c026a8
NC
13436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13437 (eval $ac_try) 2>&5
13438 ac_status=$?
13439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13440 (exit $ac_status); }; } &&
13441 { ac_try='test -s conftest$ac_exeext'
13442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13443 (eval $ac_try) 2>&5
13444 ac_status=$?
13445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446 (exit $ac_status); }; }; then
13447 ac_cv_func_mkstemp=yes
13448else
13449 echo "$as_me: failed program was:" >&5
13450sed 's/^/| /' conftest.$ac_ext >&5
13451
13452ac_cv_func_mkstemp=no
13453fi
13454rm -f conftest.err conftest.$ac_objext \
13455 conftest$ac_exeext conftest.$ac_ext
13456fi
13457echo "$as_me:$LINENO: result: $ac_cv_func_mkstemp" >&5
13458echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
13459if test $ac_cv_func_mkstemp = yes; then
13460
13461cat >>confdefs.h <<\_ACEOF
13462#define HAVE_MKSTEMP 1
13463_ACEOF
13464
13465fi
13466
13467echo "$as_me:$LINENO: checking for mkdtemp" >&5
13468echo $ECHO_N "checking for mkdtemp... $ECHO_C" >&6
13469if test "${ac_cv_func_mkdtemp+set}" = set; then
13470 echo $ECHO_N "(cached) $ECHO_C" >&6
13471else
13472 cat >conftest.$ac_ext <<_ACEOF
13473/* confdefs.h. */
13474_ACEOF
13475cat confdefs.h >>conftest.$ac_ext
13476cat >>conftest.$ac_ext <<_ACEOF
13477/* end confdefs.h. */
13478/* Define mkdtemp to an innocuous variant, in case <limits.h> declares mkdtemp.
13479 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13480#define mkdtemp innocuous_mkdtemp
13481
13482/* System header to define __stub macros and hopefully few prototypes,
13483 which can conflict with char mkdtemp (); below.
13484 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13485 <limits.h> exists even on freestanding compilers. */
13486
13487#ifdef __STDC__
13488# include <limits.h>
13489#else
13490# include <assert.h>
13491#endif
13492
13493#undef mkdtemp
13494
13495/* Override any gcc2 internal prototype to avoid an error. */
13496#ifdef __cplusplus
13497extern "C"
13498{
13499#endif
13500/* We use char because int might match the return type of a gcc2
13501 builtin and then its argument prototype would still apply. */
13502char mkdtemp ();
13503/* The GNU C library defines this for functions which it implements
13504 to always fail with ENOSYS. Some functions are actually named
13505 something starting with __ and the normal name is an alias. */
13506#if defined (__stub_mkdtemp) || defined (__stub___mkdtemp)
13507choke me
13508#else
13509char (*f) () = mkdtemp;
13510#endif
13511#ifdef __cplusplus
13512}
13513#endif
13514
13515int
13516main ()
13517{
13518return f != mkdtemp;
13519 ;
13520 return 0;
13521}
13522_ACEOF
13523rm -f conftest.$ac_objext conftest$ac_exeext
13524if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13525 (eval $ac_link) 2>conftest.er1
13526 ac_status=$?
13527 grep -v '^ *+' conftest.er1 >conftest.err
13528 rm -f conftest.er1
13529 cat conftest.err >&5
13530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13531 (exit $ac_status); } &&
7357c5b6
AM
13532 { ac_try='test -z "$ac_c_werror_flag"
13533 || test ! -s conftest.err'
f9c026a8
NC
13534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13535 (eval $ac_try) 2>&5
13536 ac_status=$?
13537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13538 (exit $ac_status); }; } &&
13539 { ac_try='test -s conftest$ac_exeext'
13540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13541 (eval $ac_try) 2>&5
13542 ac_status=$?
13543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13544 (exit $ac_status); }; }; then
13545 ac_cv_func_mkdtemp=yes
13546else
13547 echo "$as_me: failed program was:" >&5
13548sed 's/^/| /' conftest.$ac_ext >&5
13549
13550ac_cv_func_mkdtemp=no
13551fi
13552rm -f conftest.err conftest.$ac_objext \
13553 conftest$ac_exeext conftest.$ac_ext
13554fi
13555echo "$as_me:$LINENO: result: $ac_cv_func_mkdtemp" >&5
13556echo "${ECHO_T}$ac_cv_func_mkdtemp" >&6
13557if test $ac_cv_func_mkdtemp = yes; then
13558
13559cat >>confdefs.h <<\_ACEOF
13560#define HAVE_MKDTEMP 1
13561_ACEOF
13562
13563fi
13564
252b5132 13565
cedd9a58
JJ
13566# Check whether fopen64 is available and whether _LARGEFILE64_SOURCE
13567# needs to be defined for it
42ecbf5e
DJ
13568echo "$as_me:$LINENO: checking for fopen64" >&5
13569echo $ECHO_N "checking for fopen64... $ECHO_C" >&6
13570if test "${bu_cv_have_fopen64+set}" = set; then
13571 echo $ECHO_N "(cached) $ECHO_C" >&6
13572else
13573 cat >conftest.$ac_ext <<_ACEOF
13574/* confdefs.h. */
13575_ACEOF
13576cat confdefs.h >>conftest.$ac_ext
13577cat >>conftest.$ac_ext <<_ACEOF
13578/* end confdefs.h. */
cedd9a58 13579#include <stdio.h>
42ecbf5e
DJ
13580int
13581main ()
13582{
cedd9a58 13583FILE *f = fopen64 ("/tmp/foo","r");
42ecbf5e
DJ
13584 ;
13585 return 0;
13586}
13587_ACEOF
13588rm -f conftest.$ac_objext conftest$ac_exeext
13589if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13590 (eval $ac_link) 2>conftest.er1
13591 ac_status=$?
13592 grep -v '^ *+' conftest.er1 >conftest.err
13593 rm -f conftest.er1
13594 cat conftest.err >&5
13595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13596 (exit $ac_status); } &&
7357c5b6
AM
13597 { ac_try='test -z "$ac_c_werror_flag"
13598 || test ! -s conftest.err'
42ecbf5e
DJ
13599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13600 (eval $ac_try) 2>&5
13601 ac_status=$?
13602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13603 (exit $ac_status); }; } &&
13604 { ac_try='test -s conftest$ac_exeext'
13605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13606 (eval $ac_try) 2>&5
13607 ac_status=$?
13608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13609 (exit $ac_status); }; }; then
cedd9a58
JJ
13610 bu_cv_have_fopen64=yes
13611else
42ecbf5e
DJ
13612 echo "$as_me: failed program was:" >&5
13613sed 's/^/| /' conftest.$ac_ext >&5
13614
13615saved_CPPFLAGS=$CPPFLAGS
cedd9a58 13616 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
42ecbf5e
DJ
13617 cat >conftest.$ac_ext <<_ACEOF
13618/* confdefs.h. */
13619_ACEOF
13620cat confdefs.h >>conftest.$ac_ext
13621cat >>conftest.$ac_ext <<_ACEOF
13622/* end confdefs.h. */
cedd9a58 13623#include <stdio.h>
42ecbf5e
DJ
13624int
13625main ()
13626{
cedd9a58 13627FILE *f = fopen64 ("/tmp/foo","r");
42ecbf5e
DJ
13628 ;
13629 return 0;
13630}
13631_ACEOF
13632rm -f conftest.$ac_objext conftest$ac_exeext
13633if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13634 (eval $ac_link) 2>conftest.er1
13635 ac_status=$?
13636 grep -v '^ *+' conftest.er1 >conftest.err
13637 rm -f conftest.er1
13638 cat conftest.err >&5
13639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13640 (exit $ac_status); } &&
7357c5b6
AM
13641 { ac_try='test -z "$ac_c_werror_flag"
13642 || test ! -s conftest.err'
42ecbf5e
DJ
13643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13644 (eval $ac_try) 2>&5
13645 ac_status=$?
13646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13647 (exit $ac_status); }; } &&
13648 { ac_try='test -s conftest$ac_exeext'
13649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13650 (eval $ac_try) 2>&5
13651 ac_status=$?
13652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653 (exit $ac_status); }; }; then
cedd9a58
JJ
13654 bu_cv_have_fopen64="need -D_LARGEFILE64_SOURCE"
13655else
42ecbf5e
DJ
13656 echo "$as_me: failed program was:" >&5
13657sed 's/^/| /' conftest.$ac_ext >&5
13658
13659bu_cv_have_fopen64=no
cedd9a58 13660fi
42ecbf5e
DJ
13661rm -f conftest.err conftest.$ac_objext \
13662 conftest$ac_exeext conftest.$ac_ext
17a5a5c3 13663 CPPFLAGS=$saved_CPPFLAGS
cedd9a58 13664fi
42ecbf5e
DJ
13665rm -f conftest.err conftest.$ac_objext \
13666 conftest$ac_exeext conftest.$ac_ext
cedd9a58 13667fi
cedd9a58 13668
42ecbf5e
DJ
13669echo "$as_me:$LINENO: result: $bu_cv_have_fopen64" >&5
13670echo "${ECHO_T}$bu_cv_have_fopen64" >&6
6db7a086 13671if test "$bu_cv_have_fopen64" != no; then
42ecbf5e
DJ
13672
13673cat >>confdefs.h <<\_ACEOF
cedd9a58 13674#define HAVE_FOPEN64 1
42ecbf5e 13675_ACEOF
cedd9a58 13676
fb5b5478 13677fi
42ecbf5e
DJ
13678echo "$as_me:$LINENO: checking for stat64" >&5
13679echo $ECHO_N "checking for stat64... $ECHO_C" >&6
13680if test "${bu_cv_have_stat64+set}" = set; then
13681 echo $ECHO_N "(cached) $ECHO_C" >&6
fb5b5478 13682else
42ecbf5e
DJ
13683 cat >conftest.$ac_ext <<_ACEOF
13684/* confdefs.h. */
13685_ACEOF
13686cat confdefs.h >>conftest.$ac_ext
13687cat >>conftest.$ac_ext <<_ACEOF
13688/* end confdefs.h. */
fb5b5478 13689#include <sys/stat.h>
42ecbf5e
DJ
13690int
13691main ()
13692{
fb5b5478 13693struct stat64 st; stat64 ("/tmp/foo", &st);
42ecbf5e
DJ
13694 ;
13695 return 0;
13696}
13697_ACEOF
13698rm -f conftest.$ac_objext conftest$ac_exeext
13699if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13700 (eval $ac_link) 2>conftest.er1
13701 ac_status=$?
13702 grep -v '^ *+' conftest.er1 >conftest.err
13703 rm -f conftest.er1
13704 cat conftest.err >&5
13705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13706 (exit $ac_status); } &&
7357c5b6
AM
13707 { ac_try='test -z "$ac_c_werror_flag"
13708 || test ! -s conftest.err'
42ecbf5e
DJ
13709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13710 (eval $ac_try) 2>&5
13711 ac_status=$?
13712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13713 (exit $ac_status); }; } &&
13714 { ac_try='test -s conftest$ac_exeext'
13715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13716 (eval $ac_try) 2>&5
13717 ac_status=$?
13718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13719 (exit $ac_status); }; }; then
fb5b5478
JJ
13720 bu_cv_have_stat64=yes
13721else
42ecbf5e
DJ
13722 echo "$as_me: failed program was:" >&5
13723sed 's/^/| /' conftest.$ac_ext >&5
13724
13725saved_CPPFLAGS=$CPPFLAGS
fb5b5478 13726 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
42ecbf5e
DJ
13727 cat >conftest.$ac_ext <<_ACEOF
13728/* confdefs.h. */
13729_ACEOF
13730cat confdefs.h >>conftest.$ac_ext
13731cat >>conftest.$ac_ext <<_ACEOF
13732/* end confdefs.h. */
fb5b5478 13733#include <sys/stat.h>
42ecbf5e
DJ
13734int
13735main ()
13736{
fb5b5478 13737struct stat64 st; stat64 ("/tmp/foo", &st);
42ecbf5e
DJ
13738 ;
13739 return 0;
13740}
13741_ACEOF
13742rm -f conftest.$ac_objext conftest$ac_exeext
13743if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13744 (eval $ac_link) 2>conftest.er1
13745 ac_status=$?
13746 grep -v '^ *+' conftest.er1 >conftest.err
13747 rm -f conftest.er1
13748 cat conftest.err >&5
13749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750 (exit $ac_status); } &&
7357c5b6
AM
13751 { ac_try='test -z "$ac_c_werror_flag"
13752 || test ! -s conftest.err'
42ecbf5e
DJ
13753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13754 (eval $ac_try) 2>&5
13755 ac_status=$?
13756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13757 (exit $ac_status); }; } &&
13758 { ac_try='test -s conftest$ac_exeext'
13759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13760 (eval $ac_try) 2>&5
13761 ac_status=$?
13762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13763 (exit $ac_status); }; }; then
fb5b5478
JJ
13764 bu_cv_have_stat64="need -D_LARGEFILE64_SOURCE"
13765else
42ecbf5e
DJ
13766 echo "$as_me: failed program was:" >&5
13767sed 's/^/| /' conftest.$ac_ext >&5
13768
13769bu_cv_have_stat64=no
fb5b5478 13770fi
42ecbf5e
DJ
13771rm -f conftest.err conftest.$ac_objext \
13772 conftest$ac_exeext conftest.$ac_ext
fb5b5478
JJ
13773 CPPFLAGS=$saved_CPPFLAGS
13774fi
42ecbf5e
DJ
13775rm -f conftest.err conftest.$ac_objext \
13776 conftest$ac_exeext conftest.$ac_ext
fb5b5478
JJ
13777fi
13778
42ecbf5e
DJ
13779echo "$as_me:$LINENO: result: $bu_cv_have_stat64" >&5
13780echo "${ECHO_T}$bu_cv_have_stat64" >&6
fb5b5478 13781if test "$bu_cv_have_stat64" != no; then
42ecbf5e
DJ
13782
13783cat >>confdefs.h <<\_ACEOF
fb5b5478 13784#define HAVE_STAT64 1
42ecbf5e 13785_ACEOF
fb5b5478
JJ
13786
13787fi
13788if test "$bu_cv_have_fopen64" = "need -D_LARGEFILE64_SOURCE" \
13789 || test "$bu_cv_have_stat64" = "need -D_LARGEFILE64_SOURCE"; then
42ecbf5e
DJ
13790
13791cat >>confdefs.h <<\_ACEOF
cedd9a58 13792#define _LARGEFILE64_SOURCE 1
42ecbf5e 13793_ACEOF
cedd9a58 13794
fb5b5478 13795 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
cedd9a58
JJ
13796fi
13797
f353eb8a 13798# Some systems have frexp only in -lm, not in -lc.
42ecbf5e
DJ
13799echo "$as_me:$LINENO: checking for library containing frexp" >&5
13800echo $ECHO_N "checking for library containing frexp... $ECHO_C" >&6
13801if test "${ac_cv_search_frexp+set}" = set; then
13802 echo $ECHO_N "(cached) $ECHO_C" >&6
13803else
13804 ac_func_search_save_LIBS=$LIBS
13805ac_cv_search_frexp=no
13806cat >conftest.$ac_ext <<_ACEOF
13807/* confdefs.h. */
13808_ACEOF
13809cat confdefs.h >>conftest.$ac_ext
13810cat >>conftest.$ac_ext <<_ACEOF
13811/* end confdefs.h. */
f353eb8a 13812
f353eb8a 13813/* Override any gcc2 internal prototype to avoid an error. */
42ecbf5e
DJ
13814#ifdef __cplusplus
13815extern "C"
13816#endif
f353eb8a 13817/* We use char because int might match the return type of a gcc2
42ecbf5e
DJ
13818 builtin and then its argument prototype would still apply. */
13819char frexp ();
13820int
13821main ()
13822{
13823frexp ();
13824 ;
13825 return 0;
13826}
13827_ACEOF
13828rm -f conftest.$ac_objext conftest$ac_exeext
13829if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13830 (eval $ac_link) 2>conftest.er1
13831 ac_status=$?
13832 grep -v '^ *+' conftest.er1 >conftest.err
13833 rm -f conftest.er1
13834 cat conftest.err >&5
13835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13836 (exit $ac_status); } &&
7357c5b6
AM
13837 { ac_try='test -z "$ac_c_werror_flag"
13838 || test ! -s conftest.err'
42ecbf5e
DJ
13839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13840 (eval $ac_try) 2>&5
13841 ac_status=$?
13842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13843 (exit $ac_status); }; } &&
13844 { ac_try='test -s conftest$ac_exeext'
13845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13846 (eval $ac_try) 2>&5
13847 ac_status=$?
13848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13849 (exit $ac_status); }; }; then
f353eb8a
ILT
13850 ac_cv_search_frexp="none required"
13851else
42ecbf5e
DJ
13852 echo "$as_me: failed program was:" >&5
13853sed 's/^/| /' conftest.$ac_ext >&5
13854
f353eb8a 13855fi
42ecbf5e
DJ
13856rm -f conftest.err conftest.$ac_objext \
13857 conftest$ac_exeext conftest.$ac_ext
13858if test "$ac_cv_search_frexp" = no; then
13859 for ac_lib in m; do
13860 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13861 cat >conftest.$ac_ext <<_ACEOF
13862/* confdefs.h. */
13863_ACEOF
13864cat confdefs.h >>conftest.$ac_ext
13865cat >>conftest.$ac_ext <<_ACEOF
13866/* end confdefs.h. */
13867
f353eb8a 13868/* Override any gcc2 internal prototype to avoid an error. */
42ecbf5e
DJ
13869#ifdef __cplusplus
13870extern "C"
13871#endif
f353eb8a 13872/* We use char because int might match the return type of a gcc2
42ecbf5e
DJ
13873 builtin and then its argument prototype would still apply. */
13874char frexp ();
13875int
13876main ()
13877{
13878frexp ();
13879 ;
13880 return 0;
13881}
13882_ACEOF
13883rm -f conftest.$ac_objext conftest$ac_exeext
13884if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13885 (eval $ac_link) 2>conftest.er1
13886 ac_status=$?
13887 grep -v '^ *+' conftest.er1 >conftest.err
13888 rm -f conftest.er1
13889 cat conftest.err >&5
13890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891 (exit $ac_status); } &&
7357c5b6
AM
13892 { ac_try='test -z "$ac_c_werror_flag"
13893 || test ! -s conftest.err'
42ecbf5e
DJ
13894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13895 (eval $ac_try) 2>&5
13896 ac_status=$?
13897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13898 (exit $ac_status); }; } &&
13899 { ac_try='test -s conftest$ac_exeext'
13900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13901 (eval $ac_try) 2>&5
13902 ac_status=$?
13903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13904 (exit $ac_status); }; }; then
13905 ac_cv_search_frexp="-l$ac_lib"
f353eb8a
ILT
13906break
13907else
42ecbf5e
DJ
13908 echo "$as_me: failed program was:" >&5
13909sed 's/^/| /' conftest.$ac_ext >&5
13910
f353eb8a 13911fi
42ecbf5e
DJ
13912rm -f conftest.err conftest.$ac_objext \
13913 conftest$ac_exeext conftest.$ac_ext
13914 done
e5a52504 13915fi
42ecbf5e
DJ
13916LIBS=$ac_func_search_save_LIBS
13917fi
13918echo "$as_me:$LINENO: result: $ac_cv_search_frexp" >&5
13919echo "${ECHO_T}$ac_cv_search_frexp" >&6
13920if test "$ac_cv_search_frexp" != no; then
d15b04bd 13921 test "$ac_cv_search_frexp" = "none required" || LIBS="$ac_cv_search_frexp $LIBS"
42ecbf5e 13922
f353eb8a
ILT
13923fi
13924
42ecbf5e
DJ
13925
13926echo "$as_me:$LINENO: checking for time_t in time.h" >&5
13927echo $ECHO_N "checking for time_t in time.h... $ECHO_C" >&6
13928if test "${bu_cv_decl_time_t_time_h+set}" = set; then
13929 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 13930else
42ecbf5e
DJ
13931 cat >conftest.$ac_ext <<_ACEOF
13932/* confdefs.h. */
13933_ACEOF
13934cat confdefs.h >>conftest.$ac_ext
13935cat >>conftest.$ac_ext <<_ACEOF
13936/* end confdefs.h. */
252b5132 13937#include <time.h>
42ecbf5e
DJ
13938int
13939main ()
13940{
252b5132 13941time_t i;
42ecbf5e
DJ
13942 ;
13943 return 0;
13944}
13945_ACEOF
13946rm -f conftest.$ac_objext
13947if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13948 (eval $ac_compile) 2>conftest.er1
13949 ac_status=$?
13950 grep -v '^ *+' conftest.er1 >conftest.err
13951 rm -f conftest.er1
13952 cat conftest.err >&5
13953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13954 (exit $ac_status); } &&
7357c5b6
AM
13955 { ac_try='test -z "$ac_c_werror_flag"
13956 || test ! -s conftest.err'
42ecbf5e
DJ
13957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13958 (eval $ac_try) 2>&5
13959 ac_status=$?
13960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13961 (exit $ac_status); }; } &&
13962 { ac_try='test -s conftest.$ac_objext'
13963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13964 (eval $ac_try) 2>&5
13965 ac_status=$?
13966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967 (exit $ac_status); }; }; then
252b5132
RH
13968 bu_cv_decl_time_t_time_h=yes
13969else
42ecbf5e
DJ
13970 echo "$as_me: failed program was:" >&5
13971sed 's/^/| /' conftest.$ac_ext >&5
13972
13973bu_cv_decl_time_t_time_h=no
252b5132 13974fi
42ecbf5e 13975rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
13976fi
13977
42ecbf5e
DJ
13978echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_time_h" >&5
13979echo "${ECHO_T}$bu_cv_decl_time_t_time_h" >&6
252b5132 13980if test $bu_cv_decl_time_t_time_h = yes; then
42ecbf5e
DJ
13981
13982cat >>confdefs.h <<\_ACEOF
252b5132 13983#define HAVE_TIME_T_IN_TIME_H 1
42ecbf5e 13984_ACEOF
252b5132
RH
13985
13986fi
13987
42ecbf5e
DJ
13988echo "$as_me:$LINENO: checking for time_t in sys/types.h" >&5
13989echo $ECHO_N "checking for time_t in sys/types.h... $ECHO_C" >&6
13990if test "${bu_cv_decl_time_t_types_h+set}" = set; then
13991 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 13992else
42ecbf5e
DJ
13993 cat >conftest.$ac_ext <<_ACEOF
13994/* confdefs.h. */
13995_ACEOF
13996cat confdefs.h >>conftest.$ac_ext
13997cat >>conftest.$ac_ext <<_ACEOF
13998/* end confdefs.h. */
252b5132 13999#include <sys/types.h>
42ecbf5e
DJ
14000int
14001main ()
14002{
252b5132 14003time_t i;
42ecbf5e
DJ
14004 ;
14005 return 0;
14006}
14007_ACEOF
14008rm -f conftest.$ac_objext
14009if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14010 (eval $ac_compile) 2>conftest.er1
14011 ac_status=$?
14012 grep -v '^ *+' conftest.er1 >conftest.err
14013 rm -f conftest.er1
14014 cat conftest.err >&5
14015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14016 (exit $ac_status); } &&
7357c5b6
AM
14017 { ac_try='test -z "$ac_c_werror_flag"
14018 || test ! -s conftest.err'
42ecbf5e
DJ
14019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14020 (eval $ac_try) 2>&5
14021 ac_status=$?
14022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14023 (exit $ac_status); }; } &&
14024 { ac_try='test -s conftest.$ac_objext'
14025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14026 (eval $ac_try) 2>&5
14027 ac_status=$?
14028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14029 (exit $ac_status); }; }; then
252b5132
RH
14030 bu_cv_decl_time_t_types_h=yes
14031else
42ecbf5e
DJ
14032 echo "$as_me: failed program was:" >&5
14033sed 's/^/| /' conftest.$ac_ext >&5
14034
14035bu_cv_decl_time_t_types_h=no
252b5132 14036fi
42ecbf5e 14037rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
14038fi
14039
42ecbf5e
DJ
14040echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_types_h" >&5
14041echo "${ECHO_T}$bu_cv_decl_time_t_types_h" >&6
252b5132 14042if test $bu_cv_decl_time_t_types_h = yes; then
42ecbf5e
DJ
14043
14044cat >>confdefs.h <<\_ACEOF
252b5132 14045#define HAVE_TIME_T_IN_TYPES_H 1
42ecbf5e 14046_ACEOF
252b5132
RH
14047
14048fi
14049
42ecbf5e
DJ
14050echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
14051echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
14052if test "${bu_cv_decl_getopt_unistd_h+set}" = set; then
14053 echo $ECHO_N "(cached) $ECHO_C" >&6
e46eba98 14054else
42ecbf5e
DJ
14055 cat >conftest.$ac_ext <<_ACEOF
14056/* confdefs.h. */
14057_ACEOF
14058cat confdefs.h >>conftest.$ac_ext
14059cat >>conftest.$ac_ext <<_ACEOF
14060/* end confdefs.h. */
e46eba98 14061#include <unistd.h>
42ecbf5e
DJ
14062int
14063main ()
14064{
e46eba98 14065extern int getopt (int, char *const*, const char *);
42ecbf5e
DJ
14066 ;
14067 return 0;
14068}
14069_ACEOF
14070rm -f conftest.$ac_objext
14071if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14072 (eval $ac_compile) 2>conftest.er1
14073 ac_status=$?
14074 grep -v '^ *+' conftest.er1 >conftest.err
14075 rm -f conftest.er1
14076 cat conftest.err >&5
14077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14078 (exit $ac_status); } &&
7357c5b6
AM
14079 { ac_try='test -z "$ac_c_werror_flag"
14080 || test ! -s conftest.err'
42ecbf5e
DJ
14081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14082 (eval $ac_try) 2>&5
14083 ac_status=$?
14084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14085 (exit $ac_status); }; } &&
14086 { ac_try='test -s conftest.$ac_objext'
14087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14088 (eval $ac_try) 2>&5
14089 ac_status=$?
14090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091 (exit $ac_status); }; }; then
e46eba98
NC
14092 bu_cv_decl_getopt_unistd_h=yes
14093else
42ecbf5e
DJ
14094 echo "$as_me: failed program was:" >&5
14095sed 's/^/| /' conftest.$ac_ext >&5
14096
14097bu_cv_decl_getopt_unistd_h=no
e46eba98 14098fi
42ecbf5e 14099rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e46eba98
NC
14100fi
14101
42ecbf5e
DJ
14102echo "$as_me:$LINENO: result: $bu_cv_decl_getopt_unistd_h" >&5
14103echo "${ECHO_T}$bu_cv_decl_getopt_unistd_h" >&6
e46eba98 14104if test $bu_cv_decl_getopt_unistd_h = yes; then
42ecbf5e
DJ
14105
14106cat >>confdefs.h <<\_ACEOF
e46eba98 14107#define HAVE_DECL_GETOPT 1
42ecbf5e 14108_ACEOF
e46eba98
NC
14109
14110fi
14111
252b5132
RH
14112# Under Next 3.2 <utime.h> apparently does not define struct utimbuf
14113# by default.
42ecbf5e
DJ
14114echo "$as_me:$LINENO: checking for utime.h" >&5
14115echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
14116if test "${bu_cv_header_utime_h+set}" = set; then
14117 echo $ECHO_N "(cached) $ECHO_C" >&6
14118else
14119 cat >conftest.$ac_ext <<_ACEOF
14120/* confdefs.h. */
14121_ACEOF
14122cat confdefs.h >>conftest.$ac_ext
14123cat >>conftest.$ac_ext <<_ACEOF
14124/* end confdefs.h. */
252b5132
RH
14125#include <sys/types.h>
14126#ifdef HAVE_TIME_H
14127#include <time.h>
14128#endif
14129#include <utime.h>
42ecbf5e
DJ
14130int
14131main ()
14132{
252b5132 14133struct utimbuf s;
42ecbf5e
DJ
14134 ;
14135 return 0;
14136}
14137_ACEOF
14138rm -f conftest.$ac_objext
14139if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14140 (eval $ac_compile) 2>conftest.er1
14141 ac_status=$?
14142 grep -v '^ *+' conftest.er1 >conftest.err
14143 rm -f conftest.er1
14144 cat conftest.err >&5
14145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14146 (exit $ac_status); } &&
7357c5b6
AM
14147 { ac_try='test -z "$ac_c_werror_flag"
14148 || test ! -s conftest.err'
42ecbf5e
DJ
14149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14150 (eval $ac_try) 2>&5
14151 ac_status=$?
14152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14153 (exit $ac_status); }; } &&
14154 { ac_try='test -s conftest.$ac_objext'
14155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14156 (eval $ac_try) 2>&5
14157 ac_status=$?
14158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14159 (exit $ac_status); }; }; then
252b5132
RH
14160 bu_cv_header_utime_h=yes
14161else
42ecbf5e
DJ
14162 echo "$as_me: failed program was:" >&5
14163sed 's/^/| /' conftest.$ac_ext >&5
14164
14165bu_cv_header_utime_h=no
252b5132 14166fi
42ecbf5e 14167rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
14168fi
14169
42ecbf5e
DJ
14170echo "$as_me:$LINENO: result: $bu_cv_header_utime_h" >&5
14171echo "${ECHO_T}$bu_cv_header_utime_h" >&6
252b5132 14172if test $bu_cv_header_utime_h = yes; then
42ecbf5e
DJ
14173
14174cat >>confdefs.h <<\_ACEOF
252b5132 14175#define HAVE_GOOD_UTIME_H 1
42ecbf5e 14176_ACEOF
252b5132
RH
14177
14178fi
14179
398ee8f1
SE
14180echo "$as_me:$LINENO: checking whether fprintf is declared" >&5
14181echo $ECHO_N "checking whether fprintf is declared... $ECHO_C" >&6
14182if test "${ac_cv_have_decl_fprintf+set}" = set; then
42ecbf5e 14183 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 14184else
42ecbf5e
DJ
14185 cat >conftest.$ac_ext <<_ACEOF
14186/* confdefs.h. */
14187_ACEOF
14188cat confdefs.h >>conftest.$ac_ext
14189cat >>conftest.$ac_ext <<_ACEOF
14190/* end confdefs.h. */
398ee8f1 14191$ac_includes_default
42ecbf5e
DJ
14192int
14193main ()
14194{
398ee8f1
SE
14195#ifndef fprintf
14196 char *p = (char *) fprintf;
14197#endif
14198
42ecbf5e
DJ
14199 ;
14200 return 0;
14201}
14202_ACEOF
14203rm -f conftest.$ac_objext
14204if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14205 (eval $ac_compile) 2>conftest.er1
14206 ac_status=$?
14207 grep -v '^ *+' conftest.er1 >conftest.err
14208 rm -f conftest.er1
14209 cat conftest.err >&5
14210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14211 (exit $ac_status); } &&
7357c5b6
AM
14212 { ac_try='test -z "$ac_c_werror_flag"
14213 || test ! -s conftest.err'
42ecbf5e
DJ
14214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14215 (eval $ac_try) 2>&5
14216 ac_status=$?
14217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14218 (exit $ac_status); }; } &&
14219 { ac_try='test -s conftest.$ac_objext'
14220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14221 (eval $ac_try) 2>&5
14222 ac_status=$?
14223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14224 (exit $ac_status); }; }; then
398ee8f1 14225 ac_cv_have_decl_fprintf=yes
252b5132 14226else
42ecbf5e
DJ
14227 echo "$as_me: failed program was:" >&5
14228sed 's/^/| /' conftest.$ac_ext >&5
14229
398ee8f1 14230ac_cv_have_decl_fprintf=no
252b5132 14231fi
42ecbf5e 14232rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 14233fi
398ee8f1
SE
14234echo "$as_me:$LINENO: result: $ac_cv_have_decl_fprintf" >&5
14235echo "${ECHO_T}$ac_cv_have_decl_fprintf" >&6
14236if test $ac_cv_have_decl_fprintf = yes; then
252b5132 14237
398ee8f1
SE
14238cat >>confdefs.h <<_ACEOF
14239#define HAVE_DECL_FPRINTF 1
14240_ACEOF
42ecbf5e 14241
398ee8f1
SE
14242
14243else
14244 cat >>confdefs.h <<_ACEOF
14245#define HAVE_DECL_FPRINTF 0
42ecbf5e 14246_ACEOF
252b5132 14247
252b5132 14248
3e321448
L
14249fi
14250echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
14251echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
14252if test "${ac_cv_have_decl_stpcpy+set}" = set; then
14253 echo $ECHO_N "(cached) $ECHO_C" >&6
14254else
14255 cat >conftest.$ac_ext <<_ACEOF
14256/* confdefs.h. */
14257_ACEOF
14258cat confdefs.h >>conftest.$ac_ext
14259cat >>conftest.$ac_ext <<_ACEOF
14260/* end confdefs.h. */
14261$ac_includes_default
14262int
14263main ()
14264{
14265#ifndef stpcpy
14266 char *p = (char *) stpcpy;
14267#endif
14268
14269 ;
14270 return 0;
14271}
14272_ACEOF
14273rm -f conftest.$ac_objext
14274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14275 (eval $ac_compile) 2>conftest.er1
14276 ac_status=$?
14277 grep -v '^ *+' conftest.er1 >conftest.err
14278 rm -f conftest.er1
14279 cat conftest.err >&5
14280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14281 (exit $ac_status); } &&
7357c5b6
AM
14282 { ac_try='test -z "$ac_c_werror_flag"
14283 || test ! -s conftest.err'
3e321448
L
14284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14285 (eval $ac_try) 2>&5
14286 ac_status=$?
14287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14288 (exit $ac_status); }; } &&
14289 { ac_try='test -s conftest.$ac_objext'
14290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14291 (eval $ac_try) 2>&5
14292 ac_status=$?
14293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14294 (exit $ac_status); }; }; then
14295 ac_cv_have_decl_stpcpy=yes
14296else
14297 echo "$as_me: failed program was:" >&5
14298sed 's/^/| /' conftest.$ac_ext >&5
14299
14300ac_cv_have_decl_stpcpy=no
14301fi
14302rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14303fi
14304echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
14305echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
14306if test $ac_cv_have_decl_stpcpy = yes; then
14307
14308cat >>confdefs.h <<_ACEOF
14309#define HAVE_DECL_STPCPY 1
14310_ACEOF
14311
14312
14313else
14314 cat >>confdefs.h <<_ACEOF
14315#define HAVE_DECL_STPCPY 0
14316_ACEOF
14317
14318
398ee8f1
SE
14319fi
14320echo "$as_me:$LINENO: checking whether strstr is declared" >&5
14321echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
14322if test "${ac_cv_have_decl_strstr+set}" = set; then
42ecbf5e 14323 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 14324else
42ecbf5e
DJ
14325 cat >conftest.$ac_ext <<_ACEOF
14326/* confdefs.h. */
14327_ACEOF
14328cat confdefs.h >>conftest.$ac_ext
14329cat >>conftest.$ac_ext <<_ACEOF
14330/* end confdefs.h. */
398ee8f1 14331$ac_includes_default
42ecbf5e
DJ
14332int
14333main ()
14334{
398ee8f1
SE
14335#ifndef strstr
14336 char *p = (char *) strstr;
14337#endif
14338
42ecbf5e
DJ
14339 ;
14340 return 0;
14341}
14342_ACEOF
14343rm -f conftest.$ac_objext
14344if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14345 (eval $ac_compile) 2>conftest.er1
14346 ac_status=$?
14347 grep -v '^ *+' conftest.er1 >conftest.err
14348 rm -f conftest.er1
14349 cat conftest.err >&5
14350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14351 (exit $ac_status); } &&
7357c5b6
AM
14352 { ac_try='test -z "$ac_c_werror_flag"
14353 || test ! -s conftest.err'
42ecbf5e
DJ
14354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14355 (eval $ac_try) 2>&5
14356 ac_status=$?
14357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14358 (exit $ac_status); }; } &&
14359 { ac_try='test -s conftest.$ac_objext'
14360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14361 (eval $ac_try) 2>&5
14362 ac_status=$?
14363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14364 (exit $ac_status); }; }; then
398ee8f1 14365 ac_cv_have_decl_strstr=yes
252b5132 14366else
42ecbf5e
DJ
14367 echo "$as_me: failed program was:" >&5
14368sed 's/^/| /' conftest.$ac_ext >&5
14369
398ee8f1 14370ac_cv_have_decl_strstr=no
252b5132 14371fi
42ecbf5e 14372rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 14373fi
398ee8f1
SE
14374echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
14375echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
14376if test $ac_cv_have_decl_strstr = yes; then
252b5132 14377
398ee8f1
SE
14378cat >>confdefs.h <<_ACEOF
14379#define HAVE_DECL_STRSTR 1
14380_ACEOF
42ecbf5e 14381
398ee8f1
SE
14382
14383else
14384 cat >>confdefs.h <<_ACEOF
14385#define HAVE_DECL_STRSTR 0
42ecbf5e 14386_ACEOF
252b5132 14387
252b5132 14388
398ee8f1
SE
14389fi
14390echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
14391echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
14392if test "${ac_cv_have_decl_sbrk+set}" = set; then
42ecbf5e 14393 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 14394else
42ecbf5e
DJ
14395 cat >conftest.$ac_ext <<_ACEOF
14396/* confdefs.h. */
14397_ACEOF
14398cat confdefs.h >>conftest.$ac_ext
14399cat >>conftest.$ac_ext <<_ACEOF
14400/* end confdefs.h. */
398ee8f1 14401$ac_includes_default
42ecbf5e
DJ
14402int
14403main ()
14404{
398ee8f1
SE
14405#ifndef sbrk
14406 char *p = (char *) sbrk;
14407#endif
14408
42ecbf5e
DJ
14409 ;
14410 return 0;
14411}
14412_ACEOF
14413rm -f conftest.$ac_objext
14414if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14415 (eval $ac_compile) 2>conftest.er1
14416 ac_status=$?
14417 grep -v '^ *+' conftest.er1 >conftest.err
14418 rm -f conftest.er1
14419 cat conftest.err >&5
14420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14421 (exit $ac_status); } &&
7357c5b6
AM
14422 { ac_try='test -z "$ac_c_werror_flag"
14423 || test ! -s conftest.err'
42ecbf5e
DJ
14424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14425 (eval $ac_try) 2>&5
14426 ac_status=$?
14427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14428 (exit $ac_status); }; } &&
14429 { ac_try='test -s conftest.$ac_objext'
14430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14431 (eval $ac_try) 2>&5
14432 ac_status=$?
14433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434 (exit $ac_status); }; }; then
398ee8f1 14435 ac_cv_have_decl_sbrk=yes
252b5132 14436else
42ecbf5e
DJ
14437 echo "$as_me: failed program was:" >&5
14438sed 's/^/| /' conftest.$ac_ext >&5
14439
398ee8f1 14440ac_cv_have_decl_sbrk=no
252b5132 14441fi
42ecbf5e 14442rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 14443fi
398ee8f1
SE
14444echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
14445echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
14446if test $ac_cv_have_decl_sbrk = yes; then
252b5132 14447
398ee8f1
SE
14448cat >>confdefs.h <<_ACEOF
14449#define HAVE_DECL_SBRK 1
14450_ACEOF
42ecbf5e 14451
398ee8f1
SE
14452
14453else
14454 cat >>confdefs.h <<_ACEOF
14455#define HAVE_DECL_SBRK 0
42ecbf5e 14456_ACEOF
252b5132 14457
252b5132 14458
398ee8f1
SE
14459fi
14460echo "$as_me:$LINENO: checking whether getenv is declared" >&5
14461echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
14462if test "${ac_cv_have_decl_getenv+set}" = set; then
42ecbf5e 14463 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 14464else
42ecbf5e
DJ
14465 cat >conftest.$ac_ext <<_ACEOF
14466/* confdefs.h. */
14467_ACEOF
14468cat confdefs.h >>conftest.$ac_ext
14469cat >>conftest.$ac_ext <<_ACEOF
14470/* end confdefs.h. */
398ee8f1 14471$ac_includes_default
42ecbf5e
DJ
14472int
14473main ()
14474{
398ee8f1
SE
14475#ifndef getenv
14476 char *p = (char *) getenv;
14477#endif
14478
42ecbf5e
DJ
14479 ;
14480 return 0;
14481}
14482_ACEOF
14483rm -f conftest.$ac_objext
14484if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14485 (eval $ac_compile) 2>conftest.er1
14486 ac_status=$?
14487 grep -v '^ *+' conftest.er1 >conftest.err
14488 rm -f conftest.er1
14489 cat conftest.err >&5
14490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14491 (exit $ac_status); } &&
7357c5b6
AM
14492 { ac_try='test -z "$ac_c_werror_flag"
14493 || test ! -s conftest.err'
42ecbf5e
DJ
14494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14495 (eval $ac_try) 2>&5
14496 ac_status=$?
14497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14498 (exit $ac_status); }; } &&
14499 { ac_try='test -s conftest.$ac_objext'
14500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14501 (eval $ac_try) 2>&5
14502 ac_status=$?
14503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14504 (exit $ac_status); }; }; then
398ee8f1 14505 ac_cv_have_decl_getenv=yes
252b5132 14506else
42ecbf5e
DJ
14507 echo "$as_me: failed program was:" >&5
14508sed 's/^/| /' conftest.$ac_ext >&5
14509
398ee8f1 14510ac_cv_have_decl_getenv=no
252b5132 14511fi
42ecbf5e 14512rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 14513fi
398ee8f1
SE
14514echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
14515echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
14516if test $ac_cv_have_decl_getenv = yes; then
252b5132 14517
398ee8f1
SE
14518cat >>confdefs.h <<_ACEOF
14519#define HAVE_DECL_GETENV 1
14520_ACEOF
42ecbf5e 14521
398ee8f1
SE
14522
14523else
14524 cat >>confdefs.h <<_ACEOF
14525#define HAVE_DECL_GETENV 0
42ecbf5e 14526_ACEOF
252b5132 14527
252b5132 14528
398ee8f1
SE
14529fi
14530echo "$as_me:$LINENO: checking whether environ is declared" >&5
14531echo $ECHO_N "checking whether environ is declared... $ECHO_C" >&6
14532if test "${ac_cv_have_decl_environ+set}" = set; then
42ecbf5e 14533 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 14534else
42ecbf5e
DJ
14535 cat >conftest.$ac_ext <<_ACEOF
14536/* confdefs.h. */
14537_ACEOF
14538cat confdefs.h >>conftest.$ac_ext
14539cat >>conftest.$ac_ext <<_ACEOF
14540/* end confdefs.h. */
398ee8f1 14541$ac_includes_default
42ecbf5e
DJ
14542int
14543main ()
14544{
398ee8f1
SE
14545#ifndef environ
14546 char *p = (char *) environ;
14547#endif
14548
42ecbf5e
DJ
14549 ;
14550 return 0;
14551}
14552_ACEOF
14553rm -f conftest.$ac_objext
14554if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14555 (eval $ac_compile) 2>conftest.er1
14556 ac_status=$?
14557 grep -v '^ *+' conftest.er1 >conftest.err
14558 rm -f conftest.er1
14559 cat conftest.err >&5
14560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14561 (exit $ac_status); } &&
7357c5b6
AM
14562 { ac_try='test -z "$ac_c_werror_flag"
14563 || test ! -s conftest.err'
42ecbf5e
DJ
14564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14565 (eval $ac_try) 2>&5
14566 ac_status=$?
14567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14568 (exit $ac_status); }; } &&
14569 { ac_try='test -s conftest.$ac_objext'
14570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14571 (eval $ac_try) 2>&5
14572 ac_status=$?
14573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14574 (exit $ac_status); }; }; then
398ee8f1 14575 ac_cv_have_decl_environ=yes
252b5132 14576else
42ecbf5e
DJ
14577 echo "$as_me: failed program was:" >&5
14578sed 's/^/| /' conftest.$ac_ext >&5
14579
398ee8f1 14580ac_cv_have_decl_environ=no
252b5132 14581fi
42ecbf5e 14582rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 14583fi
398ee8f1
SE
14584echo "$as_me:$LINENO: result: $ac_cv_have_decl_environ" >&5
14585echo "${ECHO_T}$ac_cv_have_decl_environ" >&6
14586if test $ac_cv_have_decl_environ = yes; then
252b5132 14587
398ee8f1
SE
14588cat >>confdefs.h <<_ACEOF
14589#define HAVE_DECL_ENVIRON 1
14590_ACEOF
42ecbf5e 14591
398ee8f1
SE
14592
14593else
14594 cat >>confdefs.h <<_ACEOF
14595#define HAVE_DECL_ENVIRON 0
42ecbf5e 14596_ACEOF
252b5132 14597
252b5132 14598
398ee8f1 14599fi
b7d4af3a
JW
14600echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
14601echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
14602if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
14603 echo $ECHO_N "(cached) $ECHO_C" >&6
14604else
14605 cat >conftest.$ac_ext <<_ACEOF
14606/* confdefs.h. */
14607_ACEOF
14608cat confdefs.h >>conftest.$ac_ext
14609cat >>conftest.$ac_ext <<_ACEOF
14610/* end confdefs.h. */
14611$ac_includes_default
14612int
14613main ()
14614{
14615#ifndef getc_unlocked
14616 char *p = (char *) getc_unlocked;
14617#endif
14618
14619 ;
14620 return 0;
14621}
14622_ACEOF
14623rm -f conftest.$ac_objext
14624if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14625 (eval $ac_compile) 2>conftest.er1
14626 ac_status=$?
14627 grep -v '^ *+' conftest.er1 >conftest.err
14628 rm -f conftest.er1
14629 cat conftest.err >&5
14630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631 (exit $ac_status); } &&
7357c5b6
AM
14632 { ac_try='test -z "$ac_c_werror_flag"
14633 || test ! -s conftest.err'
b7d4af3a
JW
14634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14635 (eval $ac_try) 2>&5
14636 ac_status=$?
14637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14638 (exit $ac_status); }; } &&
14639 { ac_try='test -s conftest.$ac_objext'
14640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14641 (eval $ac_try) 2>&5
14642 ac_status=$?
14643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644 (exit $ac_status); }; }; then
14645 ac_cv_have_decl_getc_unlocked=yes
14646else
14647 echo "$as_me: failed program was:" >&5
14648sed 's/^/| /' conftest.$ac_ext >&5
14649
14650ac_cv_have_decl_getc_unlocked=no
14651fi
14652rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14653fi
14654echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
14655echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
14656if test $ac_cv_have_decl_getc_unlocked = yes; then
14657
14658cat >>confdefs.h <<_ACEOF
14659#define HAVE_DECL_GETC_UNLOCKED 1
14660_ACEOF
14661
14662
14663else
14664 cat >>confdefs.h <<_ACEOF
14665#define HAVE_DECL_GETC_UNLOCKED 0
14666_ACEOF
14667
14668
db50c840
EB
14669fi
14670echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
14671echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
14672if test "${ac_cv_have_decl_snprintf+set}" = set; then
14673 echo $ECHO_N "(cached) $ECHO_C" >&6
14674else
14675 cat >conftest.$ac_ext <<_ACEOF
14676/* confdefs.h. */
14677_ACEOF
14678cat confdefs.h >>conftest.$ac_ext
14679cat >>conftest.$ac_ext <<_ACEOF
14680/* end confdefs.h. */
14681$ac_includes_default
14682int
14683main ()
14684{
14685#ifndef snprintf
14686 char *p = (char *) snprintf;
14687#endif
14688
14689 ;
14690 return 0;
14691}
14692_ACEOF
14693rm -f conftest.$ac_objext
14694if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14695 (eval $ac_compile) 2>conftest.er1
14696 ac_status=$?
14697 grep -v '^ *+' conftest.er1 >conftest.err
14698 rm -f conftest.er1
14699 cat conftest.err >&5
14700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14701 (exit $ac_status); } &&
7357c5b6
AM
14702 { ac_try='test -z "$ac_c_werror_flag"
14703 || test ! -s conftest.err'
db50c840
EB
14704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14705 (eval $ac_try) 2>&5
14706 ac_status=$?
14707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14708 (exit $ac_status); }; } &&
14709 { ac_try='test -s conftest.$ac_objext'
14710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14711 (eval $ac_try) 2>&5
14712 ac_status=$?
14713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14714 (exit $ac_status); }; }; then
14715 ac_cv_have_decl_snprintf=yes
14716else
14717 echo "$as_me: failed program was:" >&5
14718sed 's/^/| /' conftest.$ac_ext >&5
14719
14720ac_cv_have_decl_snprintf=no
14721fi
14722rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14723fi
14724echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
14725echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
14726if test $ac_cv_have_decl_snprintf = yes; then
14727
14728cat >>confdefs.h <<_ACEOF
14729#define HAVE_DECL_SNPRINTF 1
14730_ACEOF
14731
14732
14733else
14734 cat >>confdefs.h <<_ACEOF
14735#define HAVE_DECL_SNPRINTF 0
14736_ACEOF
14737
14738
14739fi
14740echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
14741echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
14742if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
14743 echo $ECHO_N "(cached) $ECHO_C" >&6
14744else
14745 cat >conftest.$ac_ext <<_ACEOF
14746/* confdefs.h. */
14747_ACEOF
14748cat confdefs.h >>conftest.$ac_ext
14749cat >>conftest.$ac_ext <<_ACEOF
14750/* end confdefs.h. */
14751$ac_includes_default
14752int
14753main ()
14754{
14755#ifndef vsnprintf
14756 char *p = (char *) vsnprintf;
14757#endif
14758
14759 ;
14760 return 0;
14761}
14762_ACEOF
14763rm -f conftest.$ac_objext
14764if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14765 (eval $ac_compile) 2>conftest.er1
14766 ac_status=$?
14767 grep -v '^ *+' conftest.er1 >conftest.err
14768 rm -f conftest.er1
14769 cat conftest.err >&5
14770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14771 (exit $ac_status); } &&
7357c5b6
AM
14772 { ac_try='test -z "$ac_c_werror_flag"
14773 || test ! -s conftest.err'
db50c840
EB
14774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14775 (eval $ac_try) 2>&5
14776 ac_status=$?
14777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14778 (exit $ac_status); }; } &&
14779 { ac_try='test -s conftest.$ac_objext'
14780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14781 (eval $ac_try) 2>&5
14782 ac_status=$?
14783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14784 (exit $ac_status); }; }; then
14785 ac_cv_have_decl_vsnprintf=yes
14786else
14787 echo "$as_me: failed program was:" >&5
14788sed 's/^/| /' conftest.$ac_ext >&5
14789
14790ac_cv_have_decl_vsnprintf=no
14791fi
14792rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14793fi
14794echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
14795echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
14796if test $ac_cv_have_decl_vsnprintf = yes; then
14797
14798cat >>confdefs.h <<_ACEOF
14799#define HAVE_DECL_VSNPRINTF 1
14800_ACEOF
14801
14802
14803else
14804 cat >>confdefs.h <<_ACEOF
14805#define HAVE_DECL_VSNPRINTF 0
14806_ACEOF
14807
14808
b7d4af3a
JW
14809fi
14810
14811
252b5132 14812
1b315056
CS
14813# Link in zlib if we can. This allows us to read compressed debug
14814# sections. This is used only by readelf.c (objdump uses bfd for
14815# reading compressed sections).
14816echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
14817echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
14818if test "${ac_cv_search_zlibVersion+set}" = set; then
14819 echo $ECHO_N "(cached) $ECHO_C" >&6
14820else
14821 ac_func_search_save_LIBS=$LIBS
14822ac_cv_search_zlibVersion=no
14823cat >conftest.$ac_ext <<_ACEOF
14824/* confdefs.h. */
14825_ACEOF
14826cat confdefs.h >>conftest.$ac_ext
14827cat >>conftest.$ac_ext <<_ACEOF
14828/* end confdefs.h. */
14829
14830/* Override any gcc2 internal prototype to avoid an error. */
14831#ifdef __cplusplus
14832extern "C"
14833#endif
14834/* We use char because int might match the return type of a gcc2
14835 builtin and then its argument prototype would still apply. */
14836char zlibVersion ();
14837int
14838main ()
14839{
14840zlibVersion ();
14841 ;
14842 return 0;
14843}
14844_ACEOF
14845rm -f conftest.$ac_objext conftest$ac_exeext
14846if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14847 (eval $ac_link) 2>conftest.er1
14848 ac_status=$?
14849 grep -v '^ *+' conftest.er1 >conftest.err
14850 rm -f conftest.er1
14851 cat conftest.err >&5
14852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14853 (exit $ac_status); } &&
7357c5b6
AM
14854 { ac_try='test -z "$ac_c_werror_flag"
14855 || test ! -s conftest.err'
1b315056
CS
14856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14857 (eval $ac_try) 2>&5
14858 ac_status=$?
14859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14860 (exit $ac_status); }; } &&
14861 { ac_try='test -s conftest$ac_exeext'
14862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14863 (eval $ac_try) 2>&5
14864 ac_status=$?
14865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14866 (exit $ac_status); }; }; then
14867 ac_cv_search_zlibVersion="none required"
14868else
14869 echo "$as_me: failed program was:" >&5
14870sed 's/^/| /' conftest.$ac_ext >&5
14871
14872fi
14873rm -f conftest.err conftest.$ac_objext \
14874 conftest$ac_exeext conftest.$ac_ext
14875if test "$ac_cv_search_zlibVersion" = no; then
14876 for ac_lib in z; do
14877 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14878 cat >conftest.$ac_ext <<_ACEOF
14879/* confdefs.h. */
14880_ACEOF
14881cat confdefs.h >>conftest.$ac_ext
14882cat >>conftest.$ac_ext <<_ACEOF
14883/* end confdefs.h. */
14884
14885/* Override any gcc2 internal prototype to avoid an error. */
14886#ifdef __cplusplus
14887extern "C"
14888#endif
14889/* We use char because int might match the return type of a gcc2
14890 builtin and then its argument prototype would still apply. */
14891char zlibVersion ();
14892int
14893main ()
14894{
14895zlibVersion ();
14896 ;
14897 return 0;
14898}
14899_ACEOF
14900rm -f conftest.$ac_objext conftest$ac_exeext
14901if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14902 (eval $ac_link) 2>conftest.er1
14903 ac_status=$?
14904 grep -v '^ *+' conftest.er1 >conftest.err
14905 rm -f conftest.er1
14906 cat conftest.err >&5
14907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14908 (exit $ac_status); } &&
7357c5b6
AM
14909 { ac_try='test -z "$ac_c_werror_flag"
14910 || test ! -s conftest.err'
1b315056
CS
14911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14912 (eval $ac_try) 2>&5
14913 ac_status=$?
14914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14915 (exit $ac_status); }; } &&
14916 { ac_try='test -s conftest$ac_exeext'
14917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14918 (eval $ac_try) 2>&5
14919 ac_status=$?
14920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14921 (exit $ac_status); }; }; then
14922 ac_cv_search_zlibVersion="-l$ac_lib"
14923break
14924else
14925 echo "$as_me: failed program was:" >&5
14926sed 's/^/| /' conftest.$ac_ext >&5
14927
14928fi
14929rm -f conftest.err conftest.$ac_objext \
14930 conftest$ac_exeext conftest.$ac_ext
14931 done
14932fi
14933LIBS=$ac_func_search_save_LIBS
14934fi
14935echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
14936echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
14937if test "$ac_cv_search_zlibVersion" != no; then
14938 test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS"
14939
14940for ac_header in zlib.h
14941do
14942as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14943if eval "test \"\${$as_ac_Header+set}\" = set"; then
14944 echo "$as_me:$LINENO: checking for $ac_header" >&5
14945echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14946if eval "test \"\${$as_ac_Header+set}\" = set"; then
14947 echo $ECHO_N "(cached) $ECHO_C" >&6
14948fi
14949echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14950echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14951else
14952 # Is the header compilable?
14953echo "$as_me:$LINENO: checking $ac_header usability" >&5
14954echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14955cat >conftest.$ac_ext <<_ACEOF
14956/* confdefs.h. */
14957_ACEOF
14958cat confdefs.h >>conftest.$ac_ext
14959cat >>conftest.$ac_ext <<_ACEOF
14960/* end confdefs.h. */
14961$ac_includes_default
14962#include <$ac_header>
14963_ACEOF
14964rm -f conftest.$ac_objext
14965if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14966 (eval $ac_compile) 2>conftest.er1
14967 ac_status=$?
14968 grep -v '^ *+' conftest.er1 >conftest.err
14969 rm -f conftest.er1
14970 cat conftest.err >&5
14971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14972 (exit $ac_status); } &&
7357c5b6
AM
14973 { ac_try='test -z "$ac_c_werror_flag"
14974 || test ! -s conftest.err'
1b315056
CS
14975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14976 (eval $ac_try) 2>&5
14977 ac_status=$?
14978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14979 (exit $ac_status); }; } &&
14980 { ac_try='test -s conftest.$ac_objext'
14981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14982 (eval $ac_try) 2>&5
14983 ac_status=$?
14984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14985 (exit $ac_status); }; }; then
14986 ac_header_compiler=yes
14987else
14988 echo "$as_me: failed program was:" >&5
14989sed 's/^/| /' conftest.$ac_ext >&5
14990
14991ac_header_compiler=no
14992fi
14993rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14994echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14995echo "${ECHO_T}$ac_header_compiler" >&6
14996
14997# Is the header present?
14998echo "$as_me:$LINENO: checking $ac_header presence" >&5
14999echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15000cat >conftest.$ac_ext <<_ACEOF
15001/* confdefs.h. */
15002_ACEOF
15003cat confdefs.h >>conftest.$ac_ext
15004cat >>conftest.$ac_ext <<_ACEOF
15005/* end confdefs.h. */
15006#include <$ac_header>
15007_ACEOF
15008if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15009 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15010 ac_status=$?
15011 grep -v '^ *+' conftest.er1 >conftest.err
15012 rm -f conftest.er1
15013 cat conftest.err >&5
15014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15015 (exit $ac_status); } >/dev/null; then
15016 if test -s conftest.err; then
15017 ac_cpp_err=$ac_c_preproc_warn_flag
15018 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15019 else
15020 ac_cpp_err=
15021 fi
15022else
15023 ac_cpp_err=yes
15024fi
15025if test -z "$ac_cpp_err"; then
15026 ac_header_preproc=yes
15027else
15028 echo "$as_me: failed program was:" >&5
15029sed 's/^/| /' conftest.$ac_ext >&5
15030
15031 ac_header_preproc=no
15032fi
15033rm -f conftest.err conftest.$ac_ext
15034echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15035echo "${ECHO_T}$ac_header_preproc" >&6
15036
15037# So? What about this header?
15038case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15039 yes:no: )
15040 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15041echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15042 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15043echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15044 ac_header_preproc=yes
15045 ;;
15046 no:yes:* )
15047 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15048echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15049 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15050echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15051 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15052echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15053 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15054echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15055 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15056echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15057 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15058echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15059 (
15060 cat <<\_ASBOX
15061## ------------------------------------------ ##
15062## Report this to the AC_PACKAGE_NAME lists. ##
15063## ------------------------------------------ ##
15064_ASBOX
15065 ) |
15066 sed "s/^/$as_me: WARNING: /" >&2
15067 ;;
15068esac
15069echo "$as_me:$LINENO: checking for $ac_header" >&5
15070echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15071if eval "test \"\${$as_ac_Header+set}\" = set"; then
15072 echo $ECHO_N "(cached) $ECHO_C" >&6
15073else
15074 eval "$as_ac_Header=\$ac_header_preproc"
15075fi
15076echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15077echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15078
15079fi
15080if test `eval echo '${'$as_ac_Header'}'` = yes; then
15081 cat >>confdefs.h <<_ACEOF
15082#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15083_ACEOF
15084
15085fi
15086
15087done
15088
15089fi
15090
15091
252b5132
RH
15092
15093case "${host}" in
8a965946 15094*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
42ecbf5e
DJ
15095
15096cat >>confdefs.h <<\_ACEOF
252b5132 15097#define USE_BINARY_FOPEN 1
42ecbf5e 15098_ACEOF
252b5132
RH
15099 ;;
15100esac
15101
15102# target-specific stuff:
15103
15104# Canonicalize the secondary target names.
15105if test -n "$enable_targets"; then
15106 for targ in `echo $enable_targets | sed 's/,/ /g'`
15107 do
6d83c84b 15108 result=`$ac_config_sub $targ 2>/dev/null`
252b5132
RH
15109 if test -n "$result"; then
15110 canon_targets="$canon_targets $result"
15111 else
15112 # Allow targets that config.sub doesn't recognize, like "all".
15113 canon_targets="$canon_targets $targ"
15114 fi
15115 done
15116fi
15117
5ba684e2
NC
15118if test "${ac_cv_header_iconv_h+set}" = set; then
15119 echo "$as_me:$LINENO: checking for iconv.h" >&5
15120echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
15121if test "${ac_cv_header_iconv_h+set}" = set; then
15122 echo $ECHO_N "(cached) $ECHO_C" >&6
15123fi
15124echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
15125echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
15126else
15127 # Is the header compilable?
15128echo "$as_me:$LINENO: checking iconv.h usability" >&5
15129echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
15130cat >conftest.$ac_ext <<_ACEOF
15131/* confdefs.h. */
15132_ACEOF
15133cat confdefs.h >>conftest.$ac_ext
15134cat >>conftest.$ac_ext <<_ACEOF
15135/* end confdefs.h. */
15136$ac_includes_default
15137#include <iconv.h>
15138_ACEOF
15139rm -f conftest.$ac_objext
15140if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15141 (eval $ac_compile) 2>conftest.er1
15142 ac_status=$?
15143 grep -v '^ *+' conftest.er1 >conftest.err
15144 rm -f conftest.er1
15145 cat conftest.err >&5
15146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15147 (exit $ac_status); } &&
7357c5b6
AM
15148 { ac_try='test -z "$ac_c_werror_flag"
15149 || test ! -s conftest.err'
5ba684e2
NC
15150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15151 (eval $ac_try) 2>&5
15152 ac_status=$?
15153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15154 (exit $ac_status); }; } &&
15155 { ac_try='test -s conftest.$ac_objext'
15156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15157 (eval $ac_try) 2>&5
15158 ac_status=$?
15159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15160 (exit $ac_status); }; }; then
15161 ac_header_compiler=yes
15162else
15163 echo "$as_me: failed program was:" >&5
15164sed 's/^/| /' conftest.$ac_ext >&5
15165
15166ac_header_compiler=no
15167fi
15168rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15169echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15170echo "${ECHO_T}$ac_header_compiler" >&6
15171
15172# Is the header present?
15173echo "$as_me:$LINENO: checking iconv.h presence" >&5
15174echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
15175cat >conftest.$ac_ext <<_ACEOF
15176/* confdefs.h. */
15177_ACEOF
15178cat confdefs.h >>conftest.$ac_ext
15179cat >>conftest.$ac_ext <<_ACEOF
15180/* end confdefs.h. */
15181#include <iconv.h>
15182_ACEOF
15183if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15184 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15185 ac_status=$?
15186 grep -v '^ *+' conftest.er1 >conftest.err
15187 rm -f conftest.er1
15188 cat conftest.err >&5
15189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15190 (exit $ac_status); } >/dev/null; then
15191 if test -s conftest.err; then
15192 ac_cpp_err=$ac_c_preproc_warn_flag
15193 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15194 else
15195 ac_cpp_err=
15196 fi
15197else
15198 ac_cpp_err=yes
15199fi
15200if test -z "$ac_cpp_err"; then
15201 ac_header_preproc=yes
15202else
15203 echo "$as_me: failed program was:" >&5
15204sed 's/^/| /' conftest.$ac_ext >&5
15205
15206 ac_header_preproc=no
15207fi
15208rm -f conftest.err conftest.$ac_ext
15209echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15210echo "${ECHO_T}$ac_header_preproc" >&6
15211
15212# So? What about this header?
15213case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15214 yes:no: )
15215 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
15216echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15217 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
15218echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
15219 ac_header_preproc=yes
15220 ;;
15221 no:yes:* )
15222 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
15223echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
15224 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
15225echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
15226 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
15227echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
15228 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
15229echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
15230 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
15231echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
15232 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
15233echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
15234 (
15235 cat <<\_ASBOX
15236## ------------------------------------------ ##
15237## Report this to the AC_PACKAGE_NAME lists. ##
15238## ------------------------------------------ ##
15239_ASBOX
15240 ) |
15241 sed "s/^/$as_me: WARNING: /" >&2
15242 ;;
15243esac
15244echo "$as_me:$LINENO: checking for iconv.h" >&5
15245echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
15246if test "${ac_cv_header_iconv_h+set}" = set; then
15247 echo $ECHO_N "(cached) $ECHO_C" >&6
15248else
15249 ac_cv_header_iconv_h=$ac_header_preproc
15250fi
15251echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
15252echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
15253
15254fi
15255
15256
15257
15258 if test "X$prefix" = "XNONE"; then
15259 acl_final_prefix="$ac_default_prefix"
15260 else
15261 acl_final_prefix="$prefix"
15262 fi
15263 if test "X$exec_prefix" = "XNONE"; then
15264 acl_final_exec_prefix='${prefix}'
15265 else
15266 acl_final_exec_prefix="$exec_prefix"
15267 fi
15268 acl_save_prefix="$prefix"
15269 prefix="$acl_final_prefix"
15270 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
15271 prefix="$acl_save_prefix"
15272
15273
15274# Check whether --with-gnu-ld or --without-gnu-ld was given.
15275if test "${with_gnu_ld+set}" = set; then
15276 withval="$with_gnu_ld"
15277 test "$withval" = no || with_gnu_ld=yes
15278else
15279 with_gnu_ld=no
15280fi;
15281# Prepare PATH_SEPARATOR.
15282# The user is always right.
15283if test "${PATH_SEPARATOR+set}" != set; then
15284 echo "#! /bin/sh" >conf$$.sh
15285 echo "exit 0" >>conf$$.sh
15286 chmod +x conf$$.sh
15287 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15288 PATH_SEPARATOR=';'
15289 else
15290 PATH_SEPARATOR=:
15291 fi
15292 rm -f conf$$.sh
15293fi
15294ac_prog=ld
15295if test "$GCC" = yes; then
15296 # Check if gcc -print-prog-name=ld gives a path.
15297 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
15298echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
15299 case $host in
15300 *-*-mingw*)
15301 # gcc leaves a trailing carriage return which upsets mingw
15302 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15303 *)
15304 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15305 esac
15306 case $ac_prog in
15307 # Accept absolute paths.
15308 [\\/]* | [A-Za-z]:[\\/]*)
15309 re_direlt='/[^/][^/]*/\.\./'
15310 # Canonicalize the path of ld
15311 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
15312 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15313 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
15314 done
15315 test -z "$LD" && LD="$ac_prog"
15316 ;;
15317 "")
15318 # If it fails, then pretend we aren't using GCC.
15319 ac_prog=ld
15320 ;;
15321 *)
15322 # If it is relative, then search for the first ld in PATH.
15323 with_gnu_ld=unknown
15324 ;;
15325 esac
15326elif test "$with_gnu_ld" = yes; then
15327 echo "$as_me:$LINENO: checking for GNU ld" >&5
15328echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15329else
15330 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15331echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15332fi
15333if test "${acl_cv_path_LD+set}" = set; then
15334 echo $ECHO_N "(cached) $ECHO_C" >&6
15335else
15336 if test -z "$LD"; then
15337 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
15338 for ac_dir in $PATH; do
15339 test -z "$ac_dir" && ac_dir=.
15340 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15341 acl_cv_path_LD="$ac_dir/$ac_prog"
15342 # Check to see if the program is GNU ld. I'd rather use --version,
15343 # but apparently some GNU ld's only accept -v.
15344 # Break only if it was the GNU/non-GNU ld that we prefer.
15345 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
15346 test "$with_gnu_ld" != no && break
15347 else
15348 test "$with_gnu_ld" != yes && break
15349 fi
15350 fi
15351 done
15352 IFS="$ac_save_ifs"
15353else
15354 acl_cv_path_LD="$LD" # Let the user override the test with a path.
15355fi
15356fi
15357
15358LD="$acl_cv_path_LD"
15359if test -n "$LD"; then
15360 echo "$as_me:$LINENO: result: $LD" >&5
15361echo "${ECHO_T}$LD" >&6
15362else
15363 echo "$as_me:$LINENO: result: no" >&5
15364echo "${ECHO_T}no" >&6
15365fi
15366test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15367echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15368 { (exit 1); exit 1; }; }
15369echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15370echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15371if test "${acl_cv_prog_gnu_ld+set}" = set; then
15372 echo $ECHO_N "(cached) $ECHO_C" >&6
15373else
15374 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15375if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
15376 acl_cv_prog_gnu_ld=yes
15377else
15378 acl_cv_prog_gnu_ld=no
15379fi
15380fi
15381echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
15382echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
15383with_gnu_ld=$acl_cv_prog_gnu_ld
15384
15385
15386
15387 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
15388echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
15389if test "${acl_cv_rpath+set}" = set; then
15390 echo $ECHO_N "(cached) $ECHO_C" >&6
15391else
15392
15393 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
15394 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
15395 . ./conftest.sh
15396 rm -f ./conftest.sh
15397 acl_cv_rpath=done
15398
15399fi
15400echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
15401echo "${ECHO_T}$acl_cv_rpath" >&6
15402 wl="$acl_cv_wl"
15403 libext="$acl_cv_libext"
15404 shlibext="$acl_cv_shlibext"
15405 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
15406 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
15407 hardcode_direct="$acl_cv_hardcode_direct"
15408 hardcode_minus_L="$acl_cv_hardcode_minus_L"
15409 # Check whether --enable-rpath or --disable-rpath was given.
15410if test "${enable_rpath+set}" = set; then
15411 enableval="$enable_rpath"
15412 :
15413else
15414 enable_rpath=yes
15415fi;
15416
15417
15418
15419
15420
15421
15422
15423 use_additional=yes
15424
15425 acl_save_prefix="$prefix"
15426 prefix="$acl_final_prefix"
15427 acl_save_exec_prefix="$exec_prefix"
15428 exec_prefix="$acl_final_exec_prefix"
15429
15430 eval additional_includedir=\"$includedir\"
15431 eval additional_libdir=\"$libdir\"
15432
15433 exec_prefix="$acl_save_exec_prefix"
15434 prefix="$acl_save_prefix"
15435
15436
15437# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
15438if test "${with_libiconv_prefix+set}" = set; then
15439 withval="$with_libiconv_prefix"
15440
15441 if test "X$withval" = "Xno"; then
15442 use_additional=no
15443 else
15444 if test "X$withval" = "X"; then
15445
15446 acl_save_prefix="$prefix"
15447 prefix="$acl_final_prefix"
15448 acl_save_exec_prefix="$exec_prefix"
15449 exec_prefix="$acl_final_exec_prefix"
15450
15451 eval additional_includedir=\"$includedir\"
15452 eval additional_libdir=\"$libdir\"
15453
15454 exec_prefix="$acl_save_exec_prefix"
15455 prefix="$acl_save_prefix"
15456
15457 else
15458 additional_includedir="$withval/include"
15459 additional_libdir="$withval/lib"
15460 fi
15461 fi
15462
15463fi;
15464 LIBICONV=
15465 LTLIBICONV=
15466 INCICONV=
15467 rpathdirs=
15468 ltrpathdirs=
15469 names_already_handled=
15470 names_next_round='iconv '
15471 while test -n "$names_next_round"; do
15472 names_this_round="$names_next_round"
15473 names_next_round=
15474 for name in $names_this_round; do
15475 already_handled=
15476 for n in $names_already_handled; do
15477 if test "$n" = "$name"; then
15478 already_handled=yes
15479 break
15480 fi
15481 done
15482 if test -z "$already_handled"; then
15483 names_already_handled="$names_already_handled $name"
15484 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15485 eval value=\"\$HAVE_LIB$uppername\"
15486 if test -n "$value"; then
15487 if test "$value" = yes; then
15488 eval value=\"\$LIB$uppername\"
15489 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
15490 eval value=\"\$LTLIB$uppername\"
15491 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
15492 else
15493 :
15494 fi
15495 else
15496 found_dir=
15497 found_la=
15498 found_so=
15499 found_a=
15500 if test $use_additional = yes; then
15501 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
15502 found_dir="$additional_libdir"
15503 found_so="$additional_libdir/lib$name.$shlibext"
15504 if test -f "$additional_libdir/lib$name.la"; then
15505 found_la="$additional_libdir/lib$name.la"
15506 fi
15507 else
15508 if test -f "$additional_libdir/lib$name.$libext"; then
15509 found_dir="$additional_libdir"
15510 found_a="$additional_libdir/lib$name.$libext"
15511 if test -f "$additional_libdir/lib$name.la"; then
15512 found_la="$additional_libdir/lib$name.la"
15513 fi
15514 fi
15515 fi
15516 fi
15517 if test "X$found_dir" = "X"; then
15518 for x in $LDFLAGS $LTLIBICONV; do
15519
15520 acl_save_prefix="$prefix"
15521 prefix="$acl_final_prefix"
15522 acl_save_exec_prefix="$exec_prefix"
15523 exec_prefix="$acl_final_exec_prefix"
15524 eval x=\"$x\"
15525 exec_prefix="$acl_save_exec_prefix"
15526 prefix="$acl_save_prefix"
15527
15528 case "$x" in
15529 -L*)
15530 dir=`echo "X$x" | sed -e 's/^X-L//'`
15531 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
15532 found_dir="$dir"
15533 found_so="$dir/lib$name.$shlibext"
15534 if test -f "$dir/lib$name.la"; then
15535 found_la="$dir/lib$name.la"
15536 fi
15537 else
15538 if test -f "$dir/lib$name.$libext"; then
15539 found_dir="$dir"
15540 found_a="$dir/lib$name.$libext"
15541 if test -f "$dir/lib$name.la"; then
15542 found_la="$dir/lib$name.la"
15543 fi
15544 fi
15545 fi
15546 ;;
15547 esac
15548 if test "X$found_dir" != "X"; then
15549 break
15550 fi
15551 done
15552 fi
15553 if test "X$found_dir" != "X"; then
15554 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
15555 if test "X$found_so" != "X"; then
15556 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
15557 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15558 else
15559 haveit=
15560 for x in $ltrpathdirs; do
15561 if test "X$x" = "X$found_dir"; then
15562 haveit=yes
15563 break
15564 fi
15565 done
15566 if test -z "$haveit"; then
15567 ltrpathdirs="$ltrpathdirs $found_dir"
15568 fi
15569 if test "$hardcode_direct" = yes; then
15570 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15571 else
15572 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
15573 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15574 haveit=
15575 for x in $rpathdirs; do
15576 if test "X$x" = "X$found_dir"; then
15577 haveit=yes
15578 break
15579 fi
15580 done
15581 if test -z "$haveit"; then
15582 rpathdirs="$rpathdirs $found_dir"
15583 fi
15584 else
15585 haveit=
15586 for x in $LDFLAGS $LIBICONV; do
15587
15588 acl_save_prefix="$prefix"
15589 prefix="$acl_final_prefix"
15590 acl_save_exec_prefix="$exec_prefix"
15591 exec_prefix="$acl_final_exec_prefix"
15592 eval x=\"$x\"
15593 exec_prefix="$acl_save_exec_prefix"
15594 prefix="$acl_save_prefix"
15595
15596 if test "X$x" = "X-L$found_dir"; then
15597 haveit=yes
15598 break
15599 fi
15600 done
15601 if test -z "$haveit"; then
15602 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
15603 fi
15604 if test "$hardcode_minus_L" != no; then
15605 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15606 else
15607 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15608 fi
15609 fi
15610 fi
15611 fi
15612 else
15613 if test "X$found_a" != "X"; then
15614 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
15615 else
15616 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
15617 fi
15618 fi
15619 additional_includedir=
15620 case "$found_dir" in
15621 */lib | */lib/)
15622 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
15623 additional_includedir="$basedir/include"
15624 ;;
15625 esac
15626 if test "X$additional_includedir" != "X"; then
15627 if test "X$additional_includedir" != "X/usr/include"; then
15628 haveit=
15629 if test "X$additional_includedir" = "X/usr/local/include"; then
15630 if test -n "$GCC"; then
15631 case $host_os in
15632 linux*) haveit=yes;;
15633 esac
15634 fi
15635 fi
15636 if test -z "$haveit"; then
15637 for x in $CPPFLAGS $INCICONV; do
15638
15639 acl_save_prefix="$prefix"
15640 prefix="$acl_final_prefix"
15641 acl_save_exec_prefix="$exec_prefix"
15642 exec_prefix="$acl_final_exec_prefix"
15643 eval x=\"$x\"
15644 exec_prefix="$acl_save_exec_prefix"
15645 prefix="$acl_save_prefix"
15646
15647 if test "X$x" = "X-I$additional_includedir"; then
15648 haveit=yes
15649 break
15650 fi
15651 done
15652 if test -z "$haveit"; then
15653 if test -d "$additional_includedir"; then
15654 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
15655 fi
15656 fi
15657 fi
15658 fi
15659 fi
15660 if test -n "$found_la"; then
15661 save_libdir="$libdir"
15662 case "$found_la" in
15663 */* | *\\*) . "$found_la" ;;
15664 *) . "./$found_la" ;;
15665 esac
15666 libdir="$save_libdir"
15667 for dep in $dependency_libs; do
15668 case "$dep" in
15669 -L*)
15670 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15671 if test "X$additional_libdir" != "X/usr/lib"; then
15672 haveit=
15673 if test "X$additional_libdir" = "X/usr/local/lib"; then
15674 if test -n "$GCC"; then
15675 case $host_os in
15676 linux*) haveit=yes;;
15677 esac
15678 fi
15679 fi
15680 if test -z "$haveit"; then
15681 haveit=
15682 for x in $LDFLAGS $LIBICONV; do
15683
15684 acl_save_prefix="$prefix"
15685 prefix="$acl_final_prefix"
15686 acl_save_exec_prefix="$exec_prefix"
15687 exec_prefix="$acl_final_exec_prefix"
15688 eval x=\"$x\"
15689 exec_prefix="$acl_save_exec_prefix"
15690 prefix="$acl_save_prefix"
15691
15692 if test "X$x" = "X-L$additional_libdir"; then
15693 haveit=yes
15694 break
15695 fi
15696 done
15697 if test -z "$haveit"; then
15698 if test -d "$additional_libdir"; then
15699 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
15700 fi
15701 fi
15702 haveit=
15703 for x in $LDFLAGS $LTLIBICONV; do
15704
15705 acl_save_prefix="$prefix"
15706 prefix="$acl_final_prefix"
15707 acl_save_exec_prefix="$exec_prefix"
15708 exec_prefix="$acl_final_exec_prefix"
15709 eval x=\"$x\"
15710 exec_prefix="$acl_save_exec_prefix"
15711 prefix="$acl_save_prefix"
15712
15713 if test "X$x" = "X-L$additional_libdir"; then
15714 haveit=yes
15715 break
15716 fi
15717 done
15718 if test -z "$haveit"; then
15719 if test -d "$additional_libdir"; then
15720 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
15721 fi
15722 fi
15723 fi
15724 fi
15725 ;;
15726 -R*)
15727 dir=`echo "X$dep" | sed -e 's/^X-R//'`
15728 if test "$enable_rpath" != no; then
15729 haveit=
15730 for x in $rpathdirs; do
15731 if test "X$x" = "X$dir"; then
15732 haveit=yes
15733 break
15734 fi
15735 done
15736 if test -z "$haveit"; then
15737 rpathdirs="$rpathdirs $dir"
15738 fi
15739 haveit=
15740 for x in $ltrpathdirs; do
15741 if test "X$x" = "X$dir"; then
15742 haveit=yes
15743 break
15744 fi
15745 done
15746 if test -z "$haveit"; then
15747 ltrpathdirs="$ltrpathdirs $dir"
15748 fi
15749 fi
15750 ;;
15751 -l*)
15752 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15753 ;;
15754 *.la)
15755 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15756 ;;
15757 *)
15758 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
15759 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
15760 ;;
15761 esac
15762 done
15763 fi
15764 else
15765 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15766 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
15767 fi
15768 fi
15769 fi
15770 done
15771 done
15772 if test "X$rpathdirs" != "X"; then
15773 if test -n "$hardcode_libdir_separator"; then
15774 alldirs=
15775 for found_dir in $rpathdirs; do
15776 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
15777 done
15778 acl_save_libdir="$libdir"
15779 libdir="$alldirs"
15780 eval flag=\"$hardcode_libdir_flag_spec\"
15781 libdir="$acl_save_libdir"
15782 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15783 else
15784 for found_dir in $rpathdirs; do
15785 acl_save_libdir="$libdir"
15786 libdir="$found_dir"
15787 eval flag=\"$hardcode_libdir_flag_spec\"
15788 libdir="$acl_save_libdir"
15789 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15790 done
15791 fi
15792 fi
15793 if test "X$ltrpathdirs" != "X"; then
15794 for found_dir in $ltrpathdirs; do
15795 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
15796 done
15797 fi
15798
15799
15800
15801
15802
15803
15804
15805 am_save_CPPFLAGS="$CPPFLAGS"
15806
15807 for element in $INCICONV; do
15808 haveit=
15809 for x in $CPPFLAGS; do
15810
15811 acl_save_prefix="$prefix"
15812 prefix="$acl_final_prefix"
15813 acl_save_exec_prefix="$exec_prefix"
15814 exec_prefix="$acl_final_exec_prefix"
15815 eval x=\"$x\"
15816 exec_prefix="$acl_save_exec_prefix"
15817 prefix="$acl_save_prefix"
15818
15819 if test "X$x" = "X$element"; then
15820 haveit=yes
15821 break
15822 fi
15823 done
15824 if test -z "$haveit"; then
15825 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15826 fi
15827 done
15828
15829
15830 echo "$as_me:$LINENO: checking for iconv" >&5
15831echo $ECHO_N "checking for iconv... $ECHO_C" >&6
15832if test "${am_cv_func_iconv+set}" = set; then
15833 echo $ECHO_N "(cached) $ECHO_C" >&6
15834else
15835
15836 am_cv_func_iconv="no, consider installing GNU libiconv"
15837 am_cv_lib_iconv=no
15838 cat >conftest.$ac_ext <<_ACEOF
15839/* confdefs.h. */
15840_ACEOF
15841cat confdefs.h >>conftest.$ac_ext
15842cat >>conftest.$ac_ext <<_ACEOF
15843/* end confdefs.h. */
15844#include <stdlib.h>
15845#include <iconv.h>
15846int
15847main ()
15848{
15849iconv_t cd = iconv_open("","");
15850 iconv(cd,NULL,NULL,NULL,NULL);
15851 iconv_close(cd);
15852 ;
15853 return 0;
15854}
15855_ACEOF
15856rm -f conftest.$ac_objext conftest$ac_exeext
15857if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15858 (eval $ac_link) 2>conftest.er1
15859 ac_status=$?
15860 grep -v '^ *+' conftest.er1 >conftest.err
15861 rm -f conftest.er1
15862 cat conftest.err >&5
15863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15864 (exit $ac_status); } &&
7357c5b6
AM
15865 { ac_try='test -z "$ac_c_werror_flag"
15866 || test ! -s conftest.err'
5ba684e2
NC
15867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15868 (eval $ac_try) 2>&5
15869 ac_status=$?
15870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15871 (exit $ac_status); }; } &&
15872 { ac_try='test -s conftest$ac_exeext'
15873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15874 (eval $ac_try) 2>&5
15875 ac_status=$?
15876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15877 (exit $ac_status); }; }; then
15878 am_cv_func_iconv=yes
15879else
15880 echo "$as_me: failed program was:" >&5
15881sed 's/^/| /' conftest.$ac_ext >&5
15882
15883fi
15884rm -f conftest.err conftest.$ac_objext \
15885 conftest$ac_exeext conftest.$ac_ext
15886 if test "$am_cv_func_iconv" != yes; then
15887 am_save_LIBS="$LIBS"
15888 LIBS="$LIBS $LIBICONV"
15889 cat >conftest.$ac_ext <<_ACEOF
15890/* confdefs.h. */
15891_ACEOF
15892cat confdefs.h >>conftest.$ac_ext
15893cat >>conftest.$ac_ext <<_ACEOF
15894/* end confdefs.h. */
15895#include <stdlib.h>
15896#include <iconv.h>
15897int
15898main ()
15899{
15900iconv_t cd = iconv_open("","");
15901 iconv(cd,NULL,NULL,NULL,NULL);
15902 iconv_close(cd);
15903 ;
15904 return 0;
15905}
15906_ACEOF
15907rm -f conftest.$ac_objext conftest$ac_exeext
15908if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15909 (eval $ac_link) 2>conftest.er1
15910 ac_status=$?
15911 grep -v '^ *+' conftest.er1 >conftest.err
15912 rm -f conftest.er1
15913 cat conftest.err >&5
15914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15915 (exit $ac_status); } &&
7357c5b6
AM
15916 { ac_try='test -z "$ac_c_werror_flag"
15917 || test ! -s conftest.err'
5ba684e2
NC
15918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15919 (eval $ac_try) 2>&5
15920 ac_status=$?
15921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15922 (exit $ac_status); }; } &&
15923 { ac_try='test -s conftest$ac_exeext'
15924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15925 (eval $ac_try) 2>&5
15926 ac_status=$?
15927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15928 (exit $ac_status); }; }; then
15929 am_cv_lib_iconv=yes
15930 am_cv_func_iconv=yes
15931else
15932 echo "$as_me: failed program was:" >&5
15933sed 's/^/| /' conftest.$ac_ext >&5
15934
15935fi
15936rm -f conftest.err conftest.$ac_objext \
15937 conftest$ac_exeext conftest.$ac_ext
15938 LIBS="$am_save_LIBS"
15939 fi
15940
15941fi
15942echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
15943echo "${ECHO_T}$am_cv_func_iconv" >&6
15944 if test "$am_cv_func_iconv" = yes; then
15945
15946cat >>confdefs.h <<\_ACEOF
15947#define HAVE_ICONV 1
15948_ACEOF
15949
15950 fi
15951 if test "$am_cv_lib_iconv" = yes; then
15952 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
15953echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
15954 echo "$as_me:$LINENO: result: $LIBICONV" >&5
15955echo "${ECHO_T}$LIBICONV" >&6
15956 else
15957 CPPFLAGS="$am_save_CPPFLAGS"
15958 LIBICONV=
15959 LTLIBICONV=
15960 fi
15961
15962
15963
15964 if test "$am_cv_func_iconv" = yes; then
15965 echo "$as_me:$LINENO: checking for iconv declaration" >&5
15966echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
15967 if test "${am_cv_proto_iconv+set}" = set; then
15968 echo $ECHO_N "(cached) $ECHO_C" >&6
15969else
15970
15971 cat >conftest.$ac_ext <<_ACEOF
15972/* confdefs.h. */
15973_ACEOF
15974cat confdefs.h >>conftest.$ac_ext
15975cat >>conftest.$ac_ext <<_ACEOF
15976/* end confdefs.h. */
15977
15978#include <stdlib.h>
15979#include <iconv.h>
15980extern
15981#ifdef __cplusplus
15982"C"
15983#endif
15984#if defined(__STDC__) || defined(__cplusplus)
15985size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
15986#else
15987size_t iconv();
15988#endif
15989
15990int
15991main ()
15992{
15993
15994 ;
15995 return 0;
15996}
15997_ACEOF
15998rm -f conftest.$ac_objext
15999if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16000 (eval $ac_compile) 2>conftest.er1
16001 ac_status=$?
16002 grep -v '^ *+' conftest.er1 >conftest.err
16003 rm -f conftest.er1
16004 cat conftest.err >&5
16005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16006 (exit $ac_status); } &&
7357c5b6
AM
16007 { ac_try='test -z "$ac_c_werror_flag"
16008 || test ! -s conftest.err'
5ba684e2
NC
16009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16010 (eval $ac_try) 2>&5
16011 ac_status=$?
16012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16013 (exit $ac_status); }; } &&
16014 { ac_try='test -s conftest.$ac_objext'
16015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16016 (eval $ac_try) 2>&5
16017 ac_status=$?
16018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16019 (exit $ac_status); }; }; then
16020 am_cv_proto_iconv_arg1=""
16021else
16022 echo "$as_me: failed program was:" >&5
16023sed 's/^/| /' conftest.$ac_ext >&5
16024
16025am_cv_proto_iconv_arg1="const"
16026fi
16027rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16028 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);"
16029fi
16030
16031 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
16032 echo "$as_me:$LINENO: result: ${ac_t:-
16033 }$am_cv_proto_iconv" >&5
16034echo "${ECHO_T}${ac_t:-
16035 }$am_cv_proto_iconv" >&6
16036
16037cat >>confdefs.h <<_ACEOF
16038#define ICONV_CONST $am_cv_proto_iconv_arg1
16039_ACEOF
16040
16041 fi
16042
16043
252b5132
RH
16044all_targets=false
16045BUILD_NLMCONV=
16046NLMCONV_DEFS=
16047BUILD_SRCONV=
16048BUILD_DLLTOOL=
16049DLLTOOL_DEFS=
7aad4c3d 16050DLLTOOL_DEFAULT=
252b5132 16051BUILD_WINDRES=
692ed3e7 16052BUILD_WINDMC=
252b5132
RH
16053BUILD_DLLWRAP=
16054BUILD_MISC=
1d97d67f 16055BUILD_INSTALL_MISC=
8b1e6df3 16056OBJDUMP_DEFS=
252b5132
RH
16057
16058for targ in $target $canon_targets
16059do
16060 if test "x$targ" = "xall"; then
16061 all_targets=true
16062 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
16063 BUILD_SRCONV='$(SRCONV_PROG)'
16064 NLMCONV_DEFS="-DNLMCONV_I386 -DNLMCONV_ALPHA -DNLMCONV_POWERPC -DNLMCONV_SPARC"
1d97d67f 16065 BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
003bc0ba
NC
16066 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
16067 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
16068 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
16069 if test -z "$DLLTOOL_DEFAULT"; then
16070 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
16071 fi
16072 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
16073 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
252b5132
RH
16074 else
16075 case $targ in
42ecbf5e 16076 i[3-7]86*-*-netware*)
252b5132
RH
16077 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
16078 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_I386"
16079 ;;
16080 alpha*-*-netware*)
16081 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
16082 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_ALPHA"
16083 ;;
16084 powerpc*-*-netware*)
16085 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
16086 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_POWERPC"
16087 ;;
16088 sparc*-*-netware*)
16089 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
16090 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_SPARC"
16091 ;;
16092 esac
16093 case $targ in
16094 *-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;;
16095 esac
16096 case $targ in
a8c548cb
NC
16097 arm-epoc-pe*)
16098 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
16099 if test -z "$DLLTOOL_DEFAULT"; then
16100 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_EPOC"
16101 fi
a8c548cb
NC
16102 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_EPOC -DDLLTOOL_ARM"
16103 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 16104 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
a8c548cb 16105 ;;
7148cc28
NC
16106 arm-wince-pe* | arm-*-wince)
16107 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
16108 if test -z "$DLLTOOL_DEFAULT"; then
16109 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_WINCE"
16110 fi
7148cc28
NC
16111 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_WINCE -DDLLTOOL_ARM"
16112 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 16113 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
7148cc28
NC
16114 ;;
16115 arm-*-pe*)
252b5132 16116 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
16117 if test -z "$DLLTOOL_DEFAULT"; then
16118 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
16119 fi
252b5132
RH
16120 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
16121 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 16122 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
7a7b06ef 16123 ;;
27a710e5 16124 thumb-*-pe*)
252b5132 16125 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
16126 if test -z "$DLLTOOL_DEFAULT"; then
16127 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
16128 fi
252b5132
RH
16129 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
16130 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 16131 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
7a7b06ef 16132 ;;
42037fe5 16133 x86_64-*-mingw*)
99ad8390 16134 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
16135 if test -z "$DLLTOOL_DEFAULT"; then
16136 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MX86_64"
16137 fi
99ad8390
NC
16138 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MX86_64"
16139 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 16140 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
99ad8390
NC
16141 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
16142 ;;
80c7c40a 16143 i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32** | i[3-7]86-*-netbsdpe*)
252b5132 16144 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
16145 if test -z "$DLLTOOL_DEFAULT"; then
16146 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
16147 fi
252b5132
RH
16148 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
16149 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 16150 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
252b5132 16151 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
7a7b06ef 16152 ;;
80c7c40a 16153 i[3-7]86-*-interix)
7a7b06ef 16154 BUILD_DLLTOOL='$(DLLTOOL_PROG)'
7aad4c3d
L
16155 if test -z "$DLLTOOL_DEFAULT"; then
16156 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
16157 fi
7a7b06ef
ILT
16158 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
16159 ;;
f0660b73
NC
16160 powerpc*-aix5.[01])
16161 ;;
16162 powerpc*-aix5.*)
16163 OBJDUMP_DEFS="-DAIX_WEAK_SUPPORT"
16164 ;;
e1d5b1e7 16165 powerpc*-*-pe* | powerpc*-*-cygwin*)
252b5132 16166 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
16167 if test -z "$DLLTOOL_DEFAULT"; then
16168 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_PPC"
16169 fi
252b5132
RH
16170 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_PPC"
16171 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 16172 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
8a0e0f38 16173 ;;
59678365 16174 powerpc*-*-linux* | powerpc*-*-elf* | powerpc*-*-eabi*)
1d97d67f 16175 BUILD_INSTALL_MISC="${BUILD_INSTALL_MISC} embedspu"
669a9a2a 16176 ;;
e1d5b1e7 16177 sh*-*-pe)
8a0e0f38 16178 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
16179 if test -z "$DLLTOOL_DEFAULT"; then
16180 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_SH"
16181 fi
8a0e0f38
NC
16182 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH"
16183 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 16184 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
8a0e0f38 16185 ;;
cd14b966 16186 spu-*-*)
1d97d67f 16187 BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
cd14b966 16188 ;;
e1d5b1e7 16189 mips*-*-pe)
8a0e0f38 16190 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
16191 if test -z "$DLLTOOL_DEFAULT"; then
16192 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MIPS"
16193 fi
8a0e0f38
NC
16194 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS"
16195 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 16196 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
7a7b06ef 16197 ;;
27a710e5 16198 mcore-*-pe)
661016bb 16199 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
16200 if test -z "$DLLTOOL_DEFAULT"; then
16201 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE"
16202 fi
661016bb
NC
16203 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
16204 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 16205 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
7a7b06ef 16206 ;;
27a710e5 16207 mcore-*-elf)
661016bb 16208 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
16209 if test -z "$DLLTOOL_DEFAULT"; then
16210 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE_ELF"
16211 fi
661016bb 16212 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
7a7b06ef 16213 ;;
15ab5209
DB
16214 mep-*)
16215 OBJDUMP_DEFS="-DSKIP_ZEROES=256 -DSKIP_ZEROES_AT_END=0"
16216 ;;
252b5132
RH
16217 esac
16218 fi
16219done
16220
7aad4c3d
L
16221DLLTOOL_DEFS="$DLLTOOL_DEFS $DLLTOOL_DEFAULT"
16222
42ecbf5e
DJ
16223if test "${with_windres+set}" = set; then
16224 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
16225fi
16226
692ed3e7
NC
16227if test "${with_windmc+set}" = set; then
16228 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
16229fi
16230
16231
42ecbf5e
DJ
16232
16233
16234
16235
16236
16237
16238
16239
16240
16241
16242
1d97d67f 16243
42ecbf5e
DJ
16244cat >>confdefs.h <<_ACEOF
16245#define TARGET "${target}"
16246_ACEOF
16247
16248
16249targ=$target
16250. $srcdir/../bfd/config.bfd
16251if test "x$targ_underscore" = "xyes"; then
16252 UNDERSCORE=1
16253else
16254 UNDERSCORE=0
16255fi
16256
16257cat >>confdefs.h <<_ACEOF
16258#define TARGET_PREPENDS_UNDERSCORE $UNDERSCORE
16259_ACEOF
16260
16261
16262# Emulation
16263for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
16264do
16265 # Canonicalize the secondary target names.
16266 result=`$ac_config_sub $targ_alias 2>/dev/null`
16267 if test -n "$result"; then
16268 targ=$result
16269 else
16270 targ=$targ_alias
16271 fi
16272
16273 . ${srcdir}/configure.tgt
16274
16275 EMULATION=$targ_emul
16276 EMULATION_VECTOR=$targ_emul_vector
16277done
16278
16279
16280
16281
108a6f8e
CD
16282# Required for html and install-html
16283
16284
16285
16286
31dd3154 16287
42ecbf5e 16288 ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
da594c4a 16289
42ecbf5e
DJ
16290cat >confcache <<\_ACEOF
16291# This file is a shell script that caches the results of configure
16292# tests run on this system so they can be shared between configure
16293# scripts and configure runs, see configure's option --config-cache.
16294# It is not useful on other systems. If it contains results you don't
16295# want to keep, you may remove or edit it.
16296#
16297# config.status only pays attention to the cache file if you give it
16298# the --recheck option to rerun configure.
16299#
16300# `ac_cv_env_foo' variables (set or unset) will be overridden when
16301# loading this file, other *unset* `ac_cv_foo' will be assigned the
16302# following values.
16303
16304_ACEOF
16305
16306# The following way of writing the cache mishandles newlines in values,
16307# but we know of no workaround that is simple, portable, and efficient.
16308# So, don't put newlines in cache variables' values.
16309# Ultrix sh set writes to stderr and can't be redirected directly,
16310# and sets the high bit in the cache file unless we assign to the vars.
16311{
16312 (set) 2>&1 |
16313 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16314 *ac_space=\ *)
16315 # `set' does not quote correctly, so add quotes (double-quote
16316 # substitution turns \\\\ into \\, and sed turns \\ into \).
16317 sed -n \
16318 "s/'/'\\\\''/g;
16319 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16320 ;;
16321 *)
16322 # `set' quotes correctly as required by POSIX, so do not add quotes.
16323 sed -n \
16324 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16325 ;;
16326 esac;
16327} |
16328 sed '
16329 t clear
16330 : clear
16331 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16332 t end
16333 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16334 : end' >>confcache
16335if diff $cache_file confcache >/dev/null 2>&1; then :; else
16336 if test -w $cache_file; then
16337 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16338 cat confcache >$cache_file
16339 else
16340 echo "not updating unwritable cache $cache_file"
16341 fi
16342fi
16343rm -f confcache
16344
16345test "x$prefix" = xNONE && prefix=$ac_default_prefix
16346# Let make expand exec_prefix.
16347test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16348
16349# VPATH may cause trouble with some makes, so we remove $(srcdir),
16350# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16351# trailing colons and then remove the whole line if VPATH becomes empty
16352# (actually we leave an empty line to preserve line numbers).
16353if test "x$srcdir" = x.; then
16354 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16355s/:*\$(srcdir):*/:/;
16356s/:*\${srcdir}:*/:/;
16357s/:*@srcdir@:*/:/;
16358s/^\([^=]*=[ ]*\):*/\1/;
16359s/:*$//;
16360s/^[^=]*=[ ]*$//;
16361}'
16362fi
16363
16364DEFS=-DHAVE_CONFIG_H
16365
16366ac_libobjs=
16367ac_ltlibobjs=
16368for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16369 # 1. Remove the extension, and $U if already installed.
16370 ac_i=`echo "$ac_i" |
16371 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16372 # 2. Add them.
16373 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16374 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16375done
16376LIBOBJS=$ac_libobjs
16377
16378LTLIBOBJS=$ac_ltlibobjs
16379
16380
16381if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16382 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
16383Usually this means the macro was only invoked conditionally." >&5
16384echo "$as_me: error: conditional \"AMDEP\" was never defined.
16385Usually this means the macro was only invoked conditionally." >&2;}
16386 { (exit 1); exit 1; }; }
16387fi
16388if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16389 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16390Usually this means the macro was only invoked conditionally." >&5
16391echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16392Usually this means the macro was only invoked conditionally." >&2;}
16393 { (exit 1); exit 1; }; }
16394fi
16395if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16396 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
16397Usually this means the macro was only invoked conditionally." >&5
16398echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
16399Usually this means the macro was only invoked conditionally." >&2;}
16400 { (exit 1); exit 1; }; }
16401fi
d5fbea21
DJ
16402if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
16403 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
16404Usually this means the macro was only invoked conditionally." >&5
16405echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
16406Usually this means the macro was only invoked conditionally." >&2;}
16407 { (exit 1); exit 1; }; }
16408fi
42ecbf5e
DJ
16409
16410: ${CONFIG_STATUS=./config.status}
16411ac_clean_files_save=$ac_clean_files
16412ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16413{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16414echo "$as_me: creating $CONFIG_STATUS" >&6;}
16415cat >$CONFIG_STATUS <<_ACEOF
16416#! $SHELL
16417# Generated by $as_me.
16418# Run this file to recreate the current configuration.
16419# Compiler output produced by configure, useful for debugging
16420# configure, is in config.log if it exists.
16421
16422debug=false
16423ac_cs_recheck=false
16424ac_cs_silent=false
16425SHELL=\${CONFIG_SHELL-$SHELL}
16426_ACEOF
252b5132 16427
42ecbf5e
DJ
16428cat >>$CONFIG_STATUS <<\_ACEOF
16429## --------------------- ##
16430## M4sh Initialization. ##
16431## --------------------- ##
252b5132 16432
42ecbf5e
DJ
16433# Be Bourne compatible
16434if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16435 emulate sh
16436 NULLCMD=:
16437 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16438 # is contrary to our usage. Disable this feature.
16439 alias -g '${1+"$@"}'='"$@"'
16440elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16441 set -o posix
16442fi
16443DUALCASE=1; export DUALCASE # for MKS sh
252b5132 16444
42ecbf5e
DJ
16445# Support unset when possible.
16446if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16447 as_unset=unset
16448else
16449 as_unset=false
16450fi
252b5132
RH
16451
16452
42ecbf5e
DJ
16453# Work around bugs in pre-3.0 UWIN ksh.
16454$as_unset ENV MAIL MAILPATH
16455PS1='$ '
16456PS2='> '
16457PS4='+ '
252b5132 16458
42ecbf5e
DJ
16459# NLS nuisances.
16460for as_var in \
16461 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16462 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16463 LC_TELEPHONE LC_TIME
16464do
16465 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16466 eval $as_var=C; export $as_var
16467 else
16468 $as_unset $as_var
16469 fi
16470done
252b5132 16471
42ecbf5e
DJ
16472# Required to use basename.
16473if expr a : '\(a\)' >/dev/null 2>&1; then
16474 as_expr=expr
16475else
16476 as_expr=false
16477fi
252b5132 16478
42ecbf5e
DJ
16479if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16480 as_basename=basename
16481else
16482 as_basename=false
16483fi
252b5132 16484
8b1e6df3 16485
42ecbf5e
DJ
16486# Name of the executable.
16487as_me=`$as_basename "$0" ||
16488$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16489 X"$0" : 'X\(//\)$' \| \
16490 X"$0" : 'X\(/\)$' \| \
16491 . : '\(.\)' 2>/dev/null ||
16492echo X/"$0" |
16493 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16494 /^X\/\(\/\/\)$/{ s//\1/; q; }
16495 /^X\/\(\/\).*/{ s//\1/; q; }
16496 s/.*/./; q'`
0218d1e4 16497
252b5132 16498
42ecbf5e
DJ
16499# PATH needs CR, and LINENO needs CR and PATH.
16500# Avoid depending upon Character Ranges.
16501as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16502as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16503as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16504as_cr_digits='0123456789'
16505as_cr_alnum=$as_cr_Letters$as_cr_digits
252b5132 16506
42ecbf5e
DJ
16507# The user is always right.
16508if test "${PATH_SEPARATOR+set}" != set; then
16509 echo "#! /bin/sh" >conf$$.sh
16510 echo "exit 0" >>conf$$.sh
16511 chmod +x conf$$.sh
16512 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16513 PATH_SEPARATOR=';'
16514 else
16515 PATH_SEPARATOR=:
16516 fi
16517 rm -f conf$$.sh
252b5132
RH
16518fi
16519
16520
42ecbf5e
DJ
16521 as_lineno_1=$LINENO
16522 as_lineno_2=$LINENO
16523 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16524 test "x$as_lineno_1" != "x$as_lineno_2" &&
16525 test "x$as_lineno_3" = "x$as_lineno_2" || {
16526 # Find who we are. Look in the path if we contain no path at all
16527 # relative or not.
16528 case $0 in
16529 *[\\/]* ) as_myself=$0 ;;
16530 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16531for as_dir in $PATH
eb1e0e80 16532do
42ecbf5e
DJ
16533 IFS=$as_save_IFS
16534 test -z "$as_dir" && as_dir=.
16535 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16536done
eb1e0e80 16537
42ecbf5e
DJ
16538 ;;
16539 esac
16540 # We did not find ourselves, most probably we were run as `sh COMMAND'
16541 # in which case we are not to be found in the path.
16542 if test "x$as_myself" = x; then
16543 as_myself=$0
16544 fi
16545 if test ! -f "$as_myself"; then
16546 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16547echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16548 { (exit 1); exit 1; }; }
16549 fi
16550 case $CONFIG_SHELL in
16551 '')
16552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16553for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16554do
16555 IFS=$as_save_IFS
16556 test -z "$as_dir" && as_dir=.
16557 for as_base in sh bash ksh sh5; do
16558 case $as_dir in
16559 /*)
16560 if ("$as_dir/$as_base" -c '
16561 as_lineno_1=$LINENO
16562 as_lineno_2=$LINENO
16563 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16564 test "x$as_lineno_1" != "x$as_lineno_2" &&
16565 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
16566 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
16567 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
16568 CONFIG_SHELL=$as_dir/$as_base
16569 export CONFIG_SHELL
16570 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16571 fi;;
16572 esac
16573 done
eb1e0e80 16574done
42ecbf5e
DJ
16575;;
16576 esac
eb1e0e80 16577
42ecbf5e
DJ
16578 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16579 # uniformly replaced by the line number. The first 'sed' inserts a
16580 # line-number line before each line; the second 'sed' does the real
16581 # work. The second script uses 'N' to pair each line-number line
16582 # with the numbered line, and appends trailing '-' during
16583 # substitution so that $LINENO is not a special case at line end.
16584 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16585 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16586 sed '=' <$as_myself |
16587 sed '
16588 N
16589 s,$,-,
16590 : loop
16591 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16592 t loop
16593 s,-$,,
16594 s,^['$as_cr_digits']*\n,,
16595 ' >$as_me.lineno &&
16596 chmod +x $as_me.lineno ||
16597 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16598echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16599 { (exit 1); exit 1; }; }
16600
16601 # Don't try to exec as it changes $[0], causing all sort of problems
16602 # (the dirname of $[0] is not the place where we might find the
16603 # original and so on. Autoconf is especially sensible to this).
16604 . ./$as_me.lineno
16605 # Exit status is that of the last command.
16606 exit
16607}
eb1e0e80
NC
16608
16609
42ecbf5e
DJ
16610case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16611 *c*,-n*) ECHO_N= ECHO_C='
16612' ECHO_T=' ' ;;
16613 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16614 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
16615esac
eb1e0e80 16616
42ecbf5e
DJ
16617if expr a : '\(a\)' >/dev/null 2>&1; then
16618 as_expr=expr
d15b04bd 16619else
42ecbf5e
DJ
16620 as_expr=false
16621fi
16622
16623rm -f conf$$ conf$$.exe conf$$.file
16624echo >conf$$.file
16625if ln -s conf$$.file conf$$ 2>/dev/null; then
16626 # We could just check for DJGPP; but this test a) works b) is more generic
16627 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16628 if test -f conf$$.exe; then
16629 # Don't use ln at all; we don't have any links
16630 as_ln_s='cp -p'
252b5132 16631 else
42ecbf5e 16632 as_ln_s='ln -s'
252b5132 16633 fi
42ecbf5e
DJ
16634elif ln conf$$.file conf$$ 2>/dev/null; then
16635 as_ln_s=ln
16636else
16637 as_ln_s='cp -p'
252b5132 16638fi
42ecbf5e 16639rm -f conf$$ conf$$.exe conf$$.file
252b5132 16640
42ecbf5e
DJ
16641if mkdir -p . 2>/dev/null; then
16642 as_mkdir_p=:
16643else
16644 test -d ./-p && rmdir ./-p
16645 as_mkdir_p=false
16646fi
d15b04bd 16647
42ecbf5e 16648as_executable_p="test -f"
252b5132 16649
42ecbf5e
DJ
16650# Sed expression to map a string onto a valid CPP name.
16651as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16652
16653# Sed expression to map a string onto a valid variable name.
16654as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16655
16656
16657# IFS
16658# We need space, tab and new line, in precisely that order.
16659as_nl='
16660'
16661IFS=" $as_nl"
16662
16663# CDPATH.
16664$as_unset CDPATH
16665
16666exec 6>&1
16667
16668# Open the log real soon, to keep \$[0] and so on meaningful, and to
16669# report actual input values of CONFIG_FILES etc. instead of their
16670# values after options handling. Logging --version etc. is OK.
16671exec 5>>config.log
16672{
16673 echo
16674 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16675## Running $as_me. ##
16676_ASBOX
16677} >&5
16678cat >&5 <<_CSEOF
16679
16680This file was extended by $as_me, which was
16681generated by GNU Autoconf 2.59. Invocation command line was
16682
16683 CONFIG_FILES = $CONFIG_FILES
16684 CONFIG_HEADERS = $CONFIG_HEADERS
16685 CONFIG_LINKS = $CONFIG_LINKS
16686 CONFIG_COMMANDS = $CONFIG_COMMANDS
16687 $ $0 $@
16688
16689_CSEOF
16690echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16691echo >&5
16692_ACEOF
16693
16694# Files that config.status was made for.
16695if test -n "$ac_config_files"; then
16696 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
252b5132
RH
16697fi
16698
42ecbf5e
DJ
16699if test -n "$ac_config_headers"; then
16700 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16701fi
e5a52504 16702
42ecbf5e
DJ
16703if test -n "$ac_config_links"; then
16704 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16705fi
e5a52504 16706
42ecbf5e
DJ
16707if test -n "$ac_config_commands"; then
16708 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16709fi
d15b04bd 16710
42ecbf5e
DJ
16711cat >>$CONFIG_STATUS <<\_ACEOF
16712
16713ac_cs_usage="\
16714\`$as_me' instantiates files from templates according to the
16715current configuration.
16716
16717Usage: $0 [OPTIONS] [FILE]...
16718
16719 -h, --help print this help, then exit
16720 -V, --version print version number, then exit
16721 -q, --quiet do not print progress messages
16722 -d, --debug don't remove temporary files
16723 --recheck update $as_me by reconfiguring in the same conditions
16724 --file=FILE[:TEMPLATE]
16725 instantiate the configuration file FILE
16726 --header=FILE[:TEMPLATE]
16727 instantiate the configuration header FILE
16728
16729Configuration files:
16730$config_files
16731
16732Configuration headers:
16733$config_headers
16734
16735Configuration commands:
16736$config_commands
16737
16738Report bugs to <bug-autoconf@gnu.org>."
16739_ACEOF
16740
16741cat >>$CONFIG_STATUS <<_ACEOF
16742ac_cs_version="\\
16743config.status
16744configured by $0, generated by GNU Autoconf 2.59,
16745 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16746
16747Copyright (C) 2003 Free Software Foundation, Inc.
16748This config.status script is free software; the Free Software Foundation
16749gives unlimited permission to copy, distribute and modify it."
16750srcdir=$srcdir
16751INSTALL="$INSTALL"
16752_ACEOF
16753
16754cat >>$CONFIG_STATUS <<\_ACEOF
16755# If no file are specified by the user, then we need to provide default
16756# value. By we need to know if files were specified by the user.
16757ac_need_defaults=:
16758while test $# != 0
16759do
16760 case $1 in
16761 --*=*)
16762 ac_option=`expr "x$1" : 'x\([^=]*\)='`
16763 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16764 ac_shift=:
16765 ;;
16766 -*)
16767 ac_option=$1
16768 ac_optarg=$2
16769 ac_shift=shift
16770 ;;
16771 *) # This is not an option, so the user has probably given explicit
16772 # arguments.
16773 ac_option=$1
16774 ac_need_defaults=false;;
16775 esac
16776
16777 case $ac_option in
16778 # Handling of the options.
16779_ACEOF
16780cat >>$CONFIG_STATUS <<\_ACEOF
16781 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16782 ac_cs_recheck=: ;;
16783 --version | --vers* | -V )
16784 echo "$ac_cs_version"; exit 0 ;;
16785 --he | --h)
16786 # Conflict between --help and --header
16787 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16788Try \`$0 --help' for more information." >&5
16789echo "$as_me: error: ambiguous option: $1
16790Try \`$0 --help' for more information." >&2;}
16791 { (exit 1); exit 1; }; };;
16792 --help | --hel | -h )
16793 echo "$ac_cs_usage"; exit 0 ;;
16794 --debug | --d* | -d )
16795 debug=: ;;
16796 --file | --fil | --fi | --f )
16797 $ac_shift
16798 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16799 ac_need_defaults=false;;
16800 --header | --heade | --head | --hea )
16801 $ac_shift
16802 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16803 ac_need_defaults=false;;
16804 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16805 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16806 ac_cs_silent=: ;;
16807
16808 # This is an error.
16809 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16810Try \`$0 --help' for more information." >&5
16811echo "$as_me: error: unrecognized option: $1
16812Try \`$0 --help' for more information." >&2;}
16813 { (exit 1); exit 1; }; } ;;
16814
16815 *) ac_config_targets="$ac_config_targets $1" ;;
16816
16817 esac
16818 shift
16819done
16820
16821ac_configure_extra_args=
16822
16823if $ac_cs_silent; then
16824 exec 6>/dev/null
16825 ac_configure_extra_args="$ac_configure_extra_args --silent"
16826fi
16827
16828_ACEOF
16829cat >>$CONFIG_STATUS <<_ACEOF
16830if \$ac_cs_recheck; then
16831 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16832 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16833fi
16834
16835_ACEOF
16836
16837cat >>$CONFIG_STATUS <<_ACEOF
d15b04bd 16838#
42ecbf5e 16839# INIT-COMMANDS section.
d15b04bd 16840#
e5a52504 16841
42ecbf5e 16842AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
16843
16844
16845# The HP-UX ksh and POSIX shell print the target directory to stdout
16846# if CDPATH is set.
16847(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16848
16849sed_quote_subst='$sed_quote_subst'
16850double_quote_subst='$double_quote_subst'
16851delay_variable_subst='$delay_variable_subst'
16852macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
16853macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
16854enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
16855enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
16856pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
16857enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
16858host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
16859host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
16860host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
16861build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
16862build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
16863build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
16864SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
16865Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
16866GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
16867EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
16868FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
16869LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
16870NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
16871LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
16872max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
16873ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
16874exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
16875lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
16876lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
16877lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
16878reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
16879reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
718a6fd8 16880OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
d7040cdb
SE
16881deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
16882file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
16883AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
16884AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16885STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
16886RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
16887old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16888old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16889old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16890CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
16891CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16892compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
16893GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
16894lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
16895lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
16896lt_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"`'
718a6fd8 16897lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
d7040cdb
SE
16898objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
16899SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
16900ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
16901MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
16902lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
16903lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
16904lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
16905lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
16906lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
16907need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
718a6fd8
SE
16908DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
16909NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
16910LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
16911OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
16912OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
d7040cdb
SE
16913libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
16914shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16915extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16916archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
16917enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
16918export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16919whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16920compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
16921old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16922old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16923archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16924archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16925module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16926module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16927with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
16928allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16929no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16930hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16931hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
16932hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
16933hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
16934hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
16935hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
16936hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16937hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
16938inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
16939link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
16940fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
16941always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
16942export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16943exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16944include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16945prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16946file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
16947variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
16948need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16949need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
16950version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
16951runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16952shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16953shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
16954libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16955library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
16956soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16957postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16958postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16959finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16960finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
16961hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
16962sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16963sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16964hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
16965enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
16966enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
16967enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
16968old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
16969striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
16970
16971LTCC='$LTCC'
16972LTCFLAGS='$LTCFLAGS'
16973compiler='$compiler_DEFAULT'
16974
16975# Quote evaled strings.
16976for var in SED \
16977GREP \
16978EGREP \
16979FGREP \
16980LD \
16981NM \
16982LN_S \
16983lt_SP2NL \
16984lt_NL2SP \
16985reload_flag \
718a6fd8 16986OBJDUMP \
d7040cdb
SE
16987deplibs_check_method \
16988file_magic_cmd \
16989AR \
16990AR_FLAGS \
16991STRIP \
16992RANLIB \
16993CC \
16994CFLAGS \
16995compiler \
16996lt_cv_sys_global_symbol_pipe \
16997lt_cv_sys_global_symbol_to_cdecl \
16998lt_cv_sys_global_symbol_to_c_name_address \
718a6fd8 16999lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
d7040cdb
SE
17000SHELL \
17001ECHO \
17002lt_prog_compiler_no_builtin_flag \
17003lt_prog_compiler_wl \
17004lt_prog_compiler_pic \
17005lt_prog_compiler_static \
17006lt_cv_prog_compiler_c_o \
17007need_locks \
718a6fd8
SE
17008DSYMUTIL \
17009NMEDIT \
17010LIPO \
17011OTOOL \
17012OTOOL64 \
d7040cdb
SE
17013shrext_cmds \
17014export_dynamic_flag_spec \
17015whole_archive_flag_spec \
17016compiler_needs_object \
17017with_gnu_ld \
17018allow_undefined_flag \
17019no_undefined_flag \
17020hardcode_libdir_flag_spec \
17021hardcode_libdir_flag_spec_ld \
17022hardcode_libdir_separator \
17023fix_srcfile_path \
17024exclude_expsyms \
17025include_expsyms \
17026file_list_spec \
17027variables_saved_for_relink \
17028libname_spec \
17029library_names_spec \
17030soname_spec \
17031finish_eval \
17032old_striplib \
17033striplib; do
17034 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17035 *[\\\\\\\`\\"\\\$]*)
17036 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17037 ;;
17038 *)
17039 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17040 ;;
17041 esac
17042done
17043
17044# Double-quote double-evaled strings.
17045for var in reload_cmds \
17046old_postinstall_cmds \
17047old_postuninstall_cmds \
17048old_archive_cmds \
17049extract_expsyms_cmds \
17050old_archive_from_new_cmds \
17051old_archive_from_expsyms_cmds \
17052archive_cmds \
17053archive_expsym_cmds \
17054module_cmds \
17055module_expsym_cmds \
17056export_symbols_cmds \
17057prelink_cmds \
17058postinstall_cmds \
17059postuninstall_cmds \
17060finish_cmds \
17061sys_lib_search_path_spec \
17062sys_lib_dlsearch_path_spec; do
17063 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17064 *[\\\\\\\`\\"\\\$]*)
17065 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17066 ;;
17067 *)
17068 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17069 ;;
17070 esac
17071done
17072
17073# Fix-up fallback echo if it was mangled by the above quoting rules.
17074case \$lt_ECHO in
17075*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
17076 ;;
17077esac
17078
17079ac_aux_dir='$ac_aux_dir'
17080xsi_shell='$xsi_shell'
17081lt_shell_append='$lt_shell_append'
17082
17083# See if we are running on zsh, and set the options which allow our
17084# commands through without removal of \ escapes INIT.
17085if test -n "\${ZSH_VERSION+set}" ; then
17086 setopt NO_GLOB_SUBST
17087fi
17088
17089
17090 PACKAGE='$PACKAGE'
17091 VERSION='$VERSION'
17092 TIMESTAMP='$TIMESTAMP'
17093 RM='$RM'
17094 ofile='$ofile'
17095
17096
17097
20e95c23
DJ
17098# Capture the value of obsolete ALL_LINGUAS because we need it to compute
17099 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
17100 # from automake.
17101 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
17102 # Capture the value of LINGUAS because we need it to compute CATALOGS.
17103 LINGUAS="${LINGUAS-%UNSET%}"
17104
42ecbf5e
DJ
17105
17106_ACEOF
17107
17108
17109
17110cat >>$CONFIG_STATUS <<\_ACEOF
17111for ac_config_target in $ac_config_targets
252b5132 17112do
42ecbf5e
DJ
17113 case "$ac_config_target" in
17114 # Handling of arguments.
17115 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17116 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17117 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
17118 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
d7040cdb 17119 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20e95c23 17120 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
42ecbf5e
DJ
17121 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
17122 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17123echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17124 { (exit 1); exit 1; }; };;
d15b04bd 17125 esac
252b5132
RH
17126done
17127
42ecbf5e
DJ
17128# If the user did not use the arguments to specify the items to instantiate,
17129# then the envvar interface is used. Set only those that are not.
17130# We use the long form for the default assignment because of an extremely
17131# bizarre bug on SunOS 4.1.3.
17132if $ac_need_defaults; then
17133 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17134 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17135 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17136fi
17137
17138# Have a temporary directory for convenience. Make it in the build tree
17139# simply because there is no reason to put it here, and in addition,
17140# creating and moving files from /tmp can sometimes cause problems.
17141# Create a temporary directory, and hook for its removal unless debugging.
17142$debug ||
17143{
17144 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17145 trap '{ (exit 1); exit 1; }' 1 2 13 15
17146}
252b5132 17147
42ecbf5e 17148# Create a (secure) tmp directory for tmp files.
e5a52504 17149
42ecbf5e
DJ
17150{
17151 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17152 test -n "$tmp" && test -d "$tmp"
17153} ||
17154{
17155 tmp=./confstat$$-$RANDOM
17156 (umask 077 && mkdir $tmp)
17157} ||
17158{
17159 echo "$me: cannot create a temporary directory in ." >&2
17160 { (exit 1); exit 1; }
17161}
17162
17163_ACEOF
17164
17165cat >>$CONFIG_STATUS <<_ACEOF
17166
17167#
17168# CONFIG_FILES section.
17169#
e5a52504 17170
42ecbf5e
DJ
17171# No need to generate the scripts if there are no CONFIG_FILES.
17172# This happens for instance when ./config.status config.h
17173if test -n "\$CONFIG_FILES"; then
17174 # Protect against being on the right side of a sed subst in config.status.
17175 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17176 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17177s,@SHELL@,$SHELL,;t t
17178s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17179s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17180s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17181s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17182s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17183s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17184s,@exec_prefix@,$exec_prefix,;t t
17185s,@prefix@,$prefix,;t t
17186s,@program_transform_name@,$program_transform_name,;t t
17187s,@bindir@,$bindir,;t t
17188s,@sbindir@,$sbindir,;t t
17189s,@libexecdir@,$libexecdir,;t t
17190s,@datadir@,$datadir,;t t
17191s,@sysconfdir@,$sysconfdir,;t t
17192s,@sharedstatedir@,$sharedstatedir,;t t
17193s,@localstatedir@,$localstatedir,;t t
17194s,@libdir@,$libdir,;t t
17195s,@includedir@,$includedir,;t t
17196s,@oldincludedir@,$oldincludedir,;t t
17197s,@infodir@,$infodir,;t t
17198s,@mandir@,$mandir,;t t
17199s,@build_alias@,$build_alias,;t t
17200s,@host_alias@,$host_alias,;t t
17201s,@target_alias@,$target_alias,;t t
17202s,@DEFS@,$DEFS,;t t
17203s,@ECHO_C@,$ECHO_C,;t t
17204s,@ECHO_N@,$ECHO_N,;t t
17205s,@ECHO_T@,$ECHO_T,;t t
17206s,@LIBS@,$LIBS,;t t
17207s,@build@,$build,;t t
17208s,@build_cpu@,$build_cpu,;t t
17209s,@build_vendor@,$build_vendor,;t t
17210s,@build_os@,$build_os,;t t
17211s,@host@,$host,;t t
17212s,@host_cpu@,$host_cpu,;t t
17213s,@host_vendor@,$host_vendor,;t t
17214s,@host_os@,$host_os,;t t
17215s,@target@,$target,;t t
17216s,@target_cpu@,$target_cpu,;t t
17217s,@target_vendor@,$target_vendor,;t t
17218s,@target_os@,$target_os,;t t
17219s,@CC@,$CC,;t t
17220s,@CFLAGS@,$CFLAGS,;t t
17221s,@LDFLAGS@,$LDFLAGS,;t t
17222s,@CPPFLAGS@,$CPPFLAGS,;t t
17223s,@ac_ct_CC@,$ac_ct_CC,;t t
17224s,@EXEEXT@,$EXEEXT,;t t
17225s,@OBJEXT@,$OBJEXT,;t t
17226s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17227s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17228s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17229s,@CYGPATH_W@,$CYGPATH_W,;t t
17230s,@PACKAGE@,$PACKAGE,;t t
17231s,@VERSION@,$VERSION,;t t
17232s,@ACLOCAL@,$ACLOCAL,;t t
17233s,@AUTOCONF@,$AUTOCONF,;t t
17234s,@AUTOMAKE@,$AUTOMAKE,;t t
17235s,@AUTOHEADER@,$AUTOHEADER,;t t
17236s,@MAKEINFO@,$MAKEINFO,;t t
17237s,@install_sh@,$install_sh,;t t
17238s,@STRIP@,$STRIP,;t t
17239s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17240s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
17241s,@mkdir_p@,$mkdir_p,;t t
17242s,@AWK@,$AWK,;t t
17243s,@SET_MAKE@,$SET_MAKE,;t t
17244s,@am__leading_dot@,$am__leading_dot,;t t
17245s,@AMTAR@,$AMTAR,;t t
17246s,@am__tar@,$am__tar,;t t
17247s,@am__untar@,$am__untar,;t t
17248s,@DEPDIR@,$DEPDIR,;t t
17249s,@am__include@,$am__include,;t t
17250s,@am__quote@,$am__quote,;t t
17251s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
17252s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
17253s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
17254s,@CCDEPMODE@,$CCDEPMODE,;t t
17255s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
17256s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
7357c5b6
AM
17257s,@CPP@,$CPP,;t t
17258s,@EGREP@,$EGREP,;t t
d7040cdb
SE
17259s,@LIBTOOL@,$LIBTOOL,;t t
17260s,@SED@,$SED,;t t
d7040cdb
SE
17261s,@FGREP@,$FGREP,;t t
17262s,@GREP@,$GREP,;t t
17263s,@LD@,$LD,;t t
17264s,@DUMPBIN@,$DUMPBIN,;t t
17265s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
17266s,@NM@,$NM,;t t
42ecbf5e 17267s,@LN_S@,$LN_S,;t t
718a6fd8
SE
17268s,@OBJDUMP@,$OBJDUMP,;t t
17269s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
d7040cdb
SE
17270s,@AR@,$AR,;t t
17271s,@ac_ct_AR@,$ac_ct_AR,;t t
42ecbf5e
DJ
17272s,@RANLIB@,$RANLIB,;t t
17273s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
d7040cdb 17274s,@lt_ECHO@,$lt_ECHO,;t t
718a6fd8
SE
17275s,@DSYMUTIL@,$DSYMUTIL,;t t
17276s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
17277s,@NMEDIT@,$NMEDIT,;t t
17278s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
17279s,@LIPO@,$LIPO,;t t
17280s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
17281s,@OTOOL@,$OTOOL,;t t
17282s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
17283s,@OTOOL64@,$OTOOL64,;t t
17284s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
42ecbf5e
DJ
17285s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
17286s,@NO_WERROR@,$NO_WERROR,;t t
17287s,@YACC@,$YACC,;t t
17288s,@LEX@,$LEX,;t t
17289s,@LEXLIB@,$LEXLIB,;t t
17290s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
42ecbf5e 17291s,@USE_NLS@,$USE_NLS,;t t
20e95c23
DJ
17292s,@LIBINTL@,$LIBINTL,;t t
17293s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
17294s,@INCINTL@,$INCINTL,;t t
42ecbf5e 17295s,@XGETTEXT@,$XGETTEXT,;t t
20e95c23
DJ
17296s,@GMSGFMT@,$GMSGFMT,;t t
17297s,@POSUB@,$POSUB,;t t
42ecbf5e 17298s,@CATALOGS@,$CATALOGS,;t t
42ecbf5e 17299s,@DATADIRNAME@,$DATADIRNAME,;t t
42ecbf5e 17300s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20e95c23
DJ
17301s,@GENCAT@,$GENCAT,;t t
17302s,@CATOBJEXT@,$CATOBJEXT,;t t
42ecbf5e 17303s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
20e95c23
DJ
17304s,@MSGFMT@,$MSGFMT,;t t
17305s,@MSGMERGE@,$MSGMERGE,;t t
42ecbf5e
DJ
17306s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
17307s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
17308s,@MAINT@,$MAINT,;t t
d5fbea21
DJ
17309s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
17310s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
42ecbf5e 17311s,@HDEFINES@,$HDEFINES,;t t
42ecbf5e
DJ
17312s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
17313s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
17314s,@DEMANGLER_NAME@,$DEMANGLER_NAME,;t t
20e95c23 17315s,@ALLOCA@,$ALLOCA,;t t
5ba684e2
NC
17316s,@LIBICONV@,$LIBICONV,;t t
17317s,@LTLIBICONV@,$LTLIBICONV,;t t
42ecbf5e
DJ
17318s,@NLMCONV_DEFS@,$NLMCONV_DEFS,;t t
17319s,@BUILD_NLMCONV@,$BUILD_NLMCONV,;t t
17320s,@BUILD_SRCONV@,$BUILD_SRCONV,;t t
17321s,@BUILD_DLLTOOL@,$BUILD_DLLTOOL,;t t
17322s,@DLLTOOL_DEFS@,$DLLTOOL_DEFS,;t t
17323s,@BUILD_WINDRES@,$BUILD_WINDRES,;t t
692ed3e7 17324s,@BUILD_WINDMC@,$BUILD_WINDMC,;t t
42ecbf5e
DJ
17325s,@BUILD_DLLWRAP@,$BUILD_DLLWRAP,;t t
17326s,@BUILD_MISC@,$BUILD_MISC,;t t
1d97d67f 17327s,@BUILD_INSTALL_MISC@,$BUILD_INSTALL_MISC,;t t
42ecbf5e
DJ
17328s,@OBJDUMP_DEFS@,$OBJDUMP_DEFS,;t t
17329s,@EMULATION@,$EMULATION,;t t
17330s,@EMULATION_VECTOR@,$EMULATION_VECTOR,;t t
108a6f8e
CD
17331s,@datarootdir@,$datarootdir,;t t
17332s,@docdir@,$docdir,;t t
17333s,@htmldir@,$htmldir,;t t
31dd3154 17334s,@pdfdir@,$pdfdir,;t t
42ecbf5e
DJ
17335s,@LIBOBJS@,$LIBOBJS,;t t
17336s,@LTLIBOBJS@,$LTLIBOBJS,;t t
d15b04bd 17337CEOF
252b5132 17338
42ecbf5e
DJ
17339_ACEOF
17340
17341 cat >>$CONFIG_STATUS <<\_ACEOF
17342 # Split the substitutions into bite-sized pieces for seds with
17343 # small command number limits, like on Digital OSF/1 and HP-UX.
17344 ac_max_sed_lines=48
17345 ac_sed_frag=1 # Number of current file.
17346 ac_beg=1 # First line for current file.
17347 ac_end=$ac_max_sed_lines # Line after last line for current file.
17348 ac_more_lines=:
17349 ac_sed_cmds=
17350 while $ac_more_lines; do
17351 if test $ac_beg -gt 1; then
17352 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17353 else
17354 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17355 fi
17356 if test ! -s $tmp/subs.frag; then
17357 ac_more_lines=false
d15b04bd 17358 else
42ecbf5e
DJ
17359 # The purpose of the label and of the branching condition is to
17360 # speed up the sed processing (if there are no `@' at all, there
17361 # is no need to browse any of the substitutions).
17362 # These are the two extra sed commands mentioned above.
17363 (echo ':t
17364 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17365 if test -z "$ac_sed_cmds"; then
17366 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17367 else
17368 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17369 fi
17370 ac_sed_frag=`expr $ac_sed_frag + 1`
17371 ac_beg=$ac_end
17372 ac_end=`expr $ac_end + $ac_max_sed_lines`
d15b04bd 17373 fi
42ecbf5e
DJ
17374 done
17375 if test -z "$ac_sed_cmds"; then
17376 ac_sed_cmds=cat
252b5132 17377 fi
42ecbf5e 17378fi # test -n "$CONFIG_FILES"
252b5132 17379
42ecbf5e
DJ
17380_ACEOF
17381cat >>$CONFIG_STATUS <<\_ACEOF
17382for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
e5a52504 17383 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42ecbf5e
DJ
17384 case $ac_file in
17385 - | *:- | *:-:* ) # input from stdin
17386 cat >$tmp/stdin
17387 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17388 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17389 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17390 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17391 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
17392 esac
17393
42ecbf5e
DJ
17394 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17395 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17396$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17397 X"$ac_file" : 'X\(//\)[^/]' \| \
17398 X"$ac_file" : 'X\(//\)$' \| \
17399 X"$ac_file" : 'X\(/\)' \| \
17400 . : '\(.\)' 2>/dev/null ||
17401echo X"$ac_file" |
17402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17403 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17404 /^X\(\/\/\)$/{ s//\1/; q; }
17405 /^X\(\/\).*/{ s//\1/; q; }
17406 s/.*/./; q'`
17407 { if $as_mkdir_p; then
17408 mkdir -p "$ac_dir"
d15b04bd 17409 else
42ecbf5e
DJ
17410 as_dir="$ac_dir"
17411 as_dirs=
17412 while test ! -d "$as_dir"; do
17413 as_dirs="$as_dir $as_dirs"
17414 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17415$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17416 X"$as_dir" : 'X\(//\)[^/]' \| \
17417 X"$as_dir" : 'X\(//\)$' \| \
17418 X"$as_dir" : 'X\(/\)' \| \
17419 . : '\(.\)' 2>/dev/null ||
17420echo X"$as_dir" |
17421 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17422 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17423 /^X\(\/\/\)$/{ s//\1/; q; }
17424 /^X\(\/\).*/{ s//\1/; q; }
17425 s/.*/./; q'`
17426 done
17427 test ! -n "$as_dirs" || mkdir $as_dirs
17428 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17429echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17430 { (exit 1); exit 1; }; }; }
17431
17432 ac_builddir=.
e5a52504 17433
42ecbf5e
DJ
17434if test "$ac_dir" != .; then
17435 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17436 # A "../" for each directory in $ac_dir_suffix.
17437 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17438else
17439 ac_dir_suffix= ac_top_builddir=
17440fi
17441
17442case $srcdir in
17443 .) # No --srcdir option. We are building in place.
17444 ac_srcdir=.
17445 if test -z "$ac_top_builddir"; then
17446 ac_top_srcdir=.
17447 else
17448 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17449 fi ;;
17450 [\\/]* | ?:[\\/]* ) # Absolute path.
17451 ac_srcdir=$srcdir$ac_dir_suffix;
17452 ac_top_srcdir=$srcdir ;;
e5a52504 17453 *) # Relative path.
42ecbf5e
DJ
17454 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17455 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17456esac
252b5132 17457
42ecbf5e
DJ
17458# Do not use `cd foo && pwd` to compute absolute paths, because
17459# the directories may not exist.
17460case `pwd` in
17461.) ac_abs_builddir="$ac_dir";;
17462*)
17463 case "$ac_dir" in
17464 .) ac_abs_builddir=`pwd`;;
17465 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17466 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17467 esac;;
17468esac
17469case $ac_abs_builddir in
17470.) ac_abs_top_builddir=${ac_top_builddir}.;;
17471*)
17472 case ${ac_top_builddir}. in
17473 .) ac_abs_top_builddir=$ac_abs_builddir;;
17474 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17475 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17476 esac;;
17477esac
17478case $ac_abs_builddir in
17479.) ac_abs_srcdir=$ac_srcdir;;
17480*)
17481 case $ac_srcdir in
17482 .) ac_abs_srcdir=$ac_abs_builddir;;
17483 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17484 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17485 esac;;
17486esac
17487case $ac_abs_builddir in
17488.) ac_abs_top_srcdir=$ac_top_srcdir;;
17489*)
17490 case $ac_top_srcdir in
17491 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17492 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17493 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17494 esac;;
17495esac
e5a52504 17496
42ecbf5e
DJ
17497
17498 case $INSTALL in
17499 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17500 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
d15b04bd 17501 esac
e5a52504 17502
7357c5b6
AM
17503 if test x"$ac_file" != x-; then
17504 { echo "$as_me:$LINENO: creating $ac_file" >&5
17505echo "$as_me: creating $ac_file" >&6;}
17506 rm -f "$ac_file"
17507 fi
42ecbf5e
DJ
17508 # Let's still pretend it is `configure' which instantiates (i.e., don't
17509 # use $as_me), people would be surprised to read:
17510 # /* config.h. Generated by config.status. */
17511 if test x"$ac_file" = x-; then
17512 configure_input=
17513 else
17514 configure_input="$ac_file. "
17515 fi
17516 configure_input=$configure_input"Generated from `echo $ac_file_in |
17517 sed 's,.*/,,'` by configure."
17518
17519 # First look for the input files in the build tree, otherwise in the
17520 # src tree.
17521 ac_file_inputs=`IFS=:
17522 for f in $ac_file_in; do
17523 case $f in
17524 -) echo $tmp/stdin ;;
17525 [\\/$]*)
17526 # Absolute (can't be DOS-style, as IFS=:)
17527 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17528echo "$as_me: error: cannot find input file: $f" >&2;}
17529 { (exit 1); exit 1; }; }
17530 echo "$f";;
17531 *) # Relative
17532 if test -f "$f"; then
17533 # Build tree
17534 echo "$f"
17535 elif test -f "$srcdir/$f"; then
17536 # Source tree
17537 echo "$srcdir/$f"
17538 else
17539 # /dev/null tree
17540 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17541echo "$as_me: error: cannot find input file: $f" >&2;}
17542 { (exit 1); exit 1; }; }
17543 fi;;
17544 esac
17545 done` || { (exit 1); exit 1; }
42ecbf5e
DJ
17546_ACEOF
17547cat >>$CONFIG_STATUS <<_ACEOF
17548 sed "$ac_vpsub
17549$extrasub
17550_ACEOF
17551cat >>$CONFIG_STATUS <<\_ACEOF
17552:t
17553/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17554s,@configure_input@,$configure_input,;t t
17555s,@srcdir@,$ac_srcdir,;t t
17556s,@abs_srcdir@,$ac_abs_srcdir,;t t
17557s,@top_srcdir@,$ac_top_srcdir,;t t
17558s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17559s,@builddir@,$ac_builddir,;t t
17560s,@abs_builddir@,$ac_abs_builddir,;t t
17561s,@top_builddir@,$ac_top_builddir,;t t
17562s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17563s,@INSTALL@,$ac_INSTALL,;t t
17564" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17565 rm -f $tmp/stdin
17566 if test x"$ac_file" != x-; then
17567 mv $tmp/out $ac_file
17568 else
17569 cat $tmp/out
17570 rm -f $tmp/out
17571 fi
17572
17573done
17574_ACEOF
17575cat >>$CONFIG_STATUS <<\_ACEOF
17576
17577#
17578# CONFIG_HEADER section.
17579#
252b5132
RH
17580
17581# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17582# NAME is the cpp macro being defined and VALUE is the value it is being given.
17583#
17584# ac_d sets the value in "#define NAME VALUE" lines.
42ecbf5e
DJ
17585ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17586ac_dB='[ ].*$,\1#\2'
17587ac_dC=' '
17588ac_dD=',;t'
17589# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17590ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17591ac_uB='$,\1#\2define\3'
252b5132 17592ac_uC=' '
42ecbf5e
DJ
17593ac_uD=',;t'
17594
17595for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
252b5132 17596 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42ecbf5e
DJ
17597 case $ac_file in
17598 - | *:- | *:-:* ) # input from stdin
17599 cat >$tmp/stdin
17600 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17601 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17602 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17603 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17604 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
17605 esac
17606
42ecbf5e
DJ
17607 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17608echo "$as_me: creating $ac_file" >&6;}
17609
17610 # First look for the input files in the build tree, otherwise in the
17611 # src tree.
17612 ac_file_inputs=`IFS=:
17613 for f in $ac_file_in; do
17614 case $f in
17615 -) echo $tmp/stdin ;;
17616 [\\/$]*)
17617 # Absolute (can't be DOS-style, as IFS=:)
17618 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17619echo "$as_me: error: cannot find input file: $f" >&2;}
17620 { (exit 1); exit 1; }; }
17621 # Do quote $f, to prevent DOS paths from being IFS'd.
17622 echo "$f";;
17623 *) # Relative
17624 if test -f "$f"; then
17625 # Build tree
17626 echo "$f"
17627 elif test -f "$srcdir/$f"; then
17628 # Source tree
17629 echo "$srcdir/$f"
17630 else
17631 # /dev/null tree
17632 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17633echo "$as_me: error: cannot find input file: $f" >&2;}
17634 { (exit 1); exit 1; }; }
17635 fi;;
17636 esac
17637 done` || { (exit 1); exit 1; }
17638 # Remove the trailing spaces.
17639 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17640
17641_ACEOF
17642
17643# Transform confdefs.h into two sed scripts, `conftest.defines' and
17644# `conftest.undefs', that substitutes the proper values into
17645# config.h.in to produce config.h. The first handles `#define'
17646# templates, and the second `#undef' templates.
17647# And first: Protect against being on the right side of a sed subst in
17648# config.status. Protect against being in an unquoted here document
17649# in config.status.
17650rm -f conftest.defines conftest.undefs
17651# Using a here document instead of a string reduces the quoting nightmare.
17652# Putting comments in sed scripts is not portable.
17653#
17654# `end' is used to avoid that the second main sed command (meant for
17655# 0-ary CPP macros) applies to n-ary macro definitions.
17656# See the Autoconf documentation for `clear'.
17657cat >confdef2sed.sed <<\_ACEOF
17658s/[\\&,]/\\&/g
17659s,[\\$`],\\&,g
17660t clear
17661: clear
17662s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17663t end
17664s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17665: end
17666_ACEOF
17667# If some macros were called several times there might be several times
17668# the same #defines, which is useless. Nevertheless, we may not want to
17669# sort them, since we want the *last* AC-DEFINE to be honored.
17670uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17671sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17672rm -f confdef2sed.sed
252b5132
RH
17673
17674# This sed command replaces #undef with comments. This is necessary, for
17675# example, in the case of _POSIX_SOURCE, which is predefined and required
17676# on some systems where configure will not decide to define it.
42ecbf5e
DJ
17677cat >>conftest.undefs <<\_ACEOF
17678s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17679_ACEOF
17680
17681# Break up conftest.defines because some shells have a limit on the size
17682# of here documents, and old seds have small limits too (100 cmds).
17683echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17684echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17685echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17686echo ' :' >>$CONFIG_STATUS
17687rm -f conftest.tail
17688while grep . conftest.defines >/dev/null
17689do
17690 # Write a limited-size here document to $tmp/defines.sed.
17691 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17692 # Speed up: don't consider the non `#define' lines.
17693 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17694 # Work around the forget-to-reset-the-flag bug.
17695 echo 't clr' >>$CONFIG_STATUS
17696 echo ': clr' >>$CONFIG_STATUS
17697 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17698 echo 'CEOF
17699 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17700 rm -f $tmp/in
17701 mv $tmp/out $tmp/in
17702' >>$CONFIG_STATUS
17703 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17704 rm -f conftest.defines
17705 mv conftest.tail conftest.defines
17706done
17707rm -f conftest.defines
17708echo ' fi # grep' >>$CONFIG_STATUS
17709echo >>$CONFIG_STATUS
252b5132 17710
42ecbf5e
DJ
17711# Break up conftest.undefs because some shells have a limit on the size
17712# of here documents, and old seds have small limits too (100 cmds).
17713echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
252b5132 17714rm -f conftest.tail
42ecbf5e 17715while grep . conftest.undefs >/dev/null
252b5132 17716do
42ecbf5e
DJ
17717 # Write a limited-size here document to $tmp/undefs.sed.
17718 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17719 # Speed up: don't consider the non `#undef'
17720 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17721 # Work around the forget-to-reset-the-flag bug.
17722 echo 't clr' >>$CONFIG_STATUS
17723 echo ': clr' >>$CONFIG_STATUS
17724 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
252b5132 17725 echo 'CEOF
42ecbf5e
DJ
17726 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17727 rm -f $tmp/in
17728 mv $tmp/out $tmp/in
17729' >>$CONFIG_STATUS
17730 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17731 rm -f conftest.undefs
17732 mv conftest.tail conftest.undefs
252b5132 17733done
42ecbf5e
DJ
17734rm -f conftest.undefs
17735
17736cat >>$CONFIG_STATUS <<\_ACEOF
17737 # Let's still pretend it is `configure' which instantiates (i.e., don't
17738 # use $as_me), people would be surprised to read:
17739 # /* config.h. Generated by config.status. */
17740 if test x"$ac_file" = x-; then
17741 echo "/* Generated by configure. */" >$tmp/config.h
17742 else
17743 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
17744 fi
17745 cat $tmp/in >>$tmp/config.h
17746 rm -f $tmp/in
17747 if test x"$ac_file" != x-; then
17748 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
17749 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17750echo "$as_me: $ac_file is unchanged" >&6;}
17751 else
17752 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17753$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17754 X"$ac_file" : 'X\(//\)[^/]' \| \
17755 X"$ac_file" : 'X\(//\)$' \| \
17756 X"$ac_file" : 'X\(/\)' \| \
17757 . : '\(.\)' 2>/dev/null ||
17758echo X"$ac_file" |
17759 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17760 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17761 /^X\(\/\/\)$/{ s//\1/; q; }
17762 /^X\(\/\).*/{ s//\1/; q; }
17763 s/.*/./; q'`
17764 { if $as_mkdir_p; then
17765 mkdir -p "$ac_dir"
252b5132 17766 else
42ecbf5e
DJ
17767 as_dir="$ac_dir"
17768 as_dirs=
17769 while test ! -d "$as_dir"; do
17770 as_dirs="$as_dir $as_dirs"
17771 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17772$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17773 X"$as_dir" : 'X\(//\)[^/]' \| \
17774 X"$as_dir" : 'X\(//\)$' \| \
17775 X"$as_dir" : 'X\(/\)' \| \
17776 . : '\(.\)' 2>/dev/null ||
17777echo X"$as_dir" |
17778 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17779 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17780 /^X\(\/\/\)$/{ s//\1/; q; }
17781 /^X\(\/\).*/{ s//\1/; q; }
17782 s/.*/./; q'`
17783 done
17784 test ! -n "$as_dirs" || mkdir $as_dirs
17785 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17786echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17787 { (exit 1); exit 1; }; }; }
17788
17789 rm -f $ac_file
17790 mv $tmp/config.h $ac_file
252b5132 17791 fi
42ecbf5e
DJ
17792 else
17793 cat $tmp/config.h
17794 rm -f $tmp/config.h
252b5132 17795 fi
42ecbf5e
DJ
17796# Compute $ac_file's index in $config_headers.
17797_am_stamp_count=1
17798for _am_header in $config_headers :; do
17799 case $_am_header in
17800 $ac_file | $ac_file:* )
17801 break ;;
17802 * )
17803 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17804 esac
17805done
17806echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
17807$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17808 X$ac_file : 'X\(//\)[^/]' \| \
17809 X$ac_file : 'X\(//\)$' \| \
17810 X$ac_file : 'X\(/\)' \| \
17811 . : '\(.\)' 2>/dev/null ||
17812echo X$ac_file |
17813 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17814 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17815 /^X\(\/\/\)$/{ s//\1/; q; }
17816 /^X\(\/\).*/{ s//\1/; q; }
17817 s/.*/./; q'`/stamp-h$_am_stamp_count
17818done
17819_ACEOF
17820cat >>$CONFIG_STATUS <<\_ACEOF
252b5132 17821
42ecbf5e
DJ
17822#
17823# CONFIG_COMMANDS section.
17824#
17825for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17826 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17827 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17828 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
17829$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17830 X"$ac_dest" : 'X\(//\)[^/]' \| \
17831 X"$ac_dest" : 'X\(//\)$' \| \
17832 X"$ac_dest" : 'X\(/\)' \| \
17833 . : '\(.\)' 2>/dev/null ||
17834echo X"$ac_dest" |
17835 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17836 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17837 /^X\(\/\/\)$/{ s//\1/; q; }
17838 /^X\(\/\).*/{ s//\1/; q; }
17839 s/.*/./; q'`
17840 { if $as_mkdir_p; then
17841 mkdir -p "$ac_dir"
17842 else
17843 as_dir="$ac_dir"
17844 as_dirs=
17845 while test ! -d "$as_dir"; do
17846 as_dirs="$as_dir $as_dirs"
17847 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17848$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17849 X"$as_dir" : 'X\(//\)[^/]' \| \
17850 X"$as_dir" : 'X\(//\)$' \| \
17851 X"$as_dir" : 'X\(/\)' \| \
17852 . : '\(.\)' 2>/dev/null ||
17853echo X"$as_dir" |
17854 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17855 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17856 /^X\(\/\/\)$/{ s//\1/; q; }
17857 /^X\(\/\).*/{ s//\1/; q; }
17858 s/.*/./; q'`
17859 done
17860 test ! -n "$as_dirs" || mkdir $as_dirs
17861 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17862echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17863 { (exit 1); exit 1; }; }; }
252b5132 17864
42ecbf5e 17865 ac_builddir=.
e5a52504 17866
42ecbf5e
DJ
17867if test "$ac_dir" != .; then
17868 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17869 # A "../" for each directory in $ac_dir_suffix.
17870 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17871else
17872 ac_dir_suffix= ac_top_builddir=
17873fi
17874
17875case $srcdir in
17876 .) # No --srcdir option. We are building in place.
17877 ac_srcdir=.
17878 if test -z "$ac_top_builddir"; then
17879 ac_top_srcdir=.
17880 else
17881 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17882 fi ;;
17883 [\\/]* | ?:[\\/]* ) # Absolute path.
17884 ac_srcdir=$srcdir$ac_dir_suffix;
17885 ac_top_srcdir=$srcdir ;;
17886 *) # Relative path.
17887 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17888 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17889esac
17890
17891# Do not use `cd foo && pwd` to compute absolute paths, because
17892# the directories may not exist.
17893case `pwd` in
17894.) ac_abs_builddir="$ac_dir";;
17895*)
17896 case "$ac_dir" in
17897 .) ac_abs_builddir=`pwd`;;
17898 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17899 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17900 esac;;
17901esac
17902case $ac_abs_builddir in
17903.) ac_abs_top_builddir=${ac_top_builddir}.;;
17904*)
17905 case ${ac_top_builddir}. in
17906 .) ac_abs_top_builddir=$ac_abs_builddir;;
17907 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17908 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17909 esac;;
17910esac
17911case $ac_abs_builddir in
17912.) ac_abs_srcdir=$ac_srcdir;;
17913*)
17914 case $ac_srcdir in
17915 .) ac_abs_srcdir=$ac_abs_builddir;;
17916 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17917 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17918 esac;;
17919esac
17920case $ac_abs_builddir in
17921.) ac_abs_top_srcdir=$ac_top_srcdir;;
17922*)
17923 case $ac_top_srcdir in
17924 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17925 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17926 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17927 esac;;
17928esac
e5a52504 17929
42ecbf5e
DJ
17930
17931 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17932echo "$as_me: executing $ac_dest commands" >&6;}
17933 case $ac_dest in
17934 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
17935 # Strip MF so we end up with the name of the file.
17936 mf=`echo "$mf" | sed -e 's/:.*$//'`
17937 # Check whether this is an Automake generated Makefile or not.
17938 # We used to match only the files named `Makefile.in', but
17939 # some people rename them; so instead we look at the file content.
17940 # Grep'ing the first line is not enough: some people post-process
17941 # each Makefile.in and add a new line on top of each file to say so.
17942 # So let's grep whole file.
17943 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
17944 dirpart=`(dirname "$mf") 2>/dev/null ||
17945$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17946 X"$mf" : 'X\(//\)[^/]' \| \
17947 X"$mf" : 'X\(//\)$' \| \
17948 X"$mf" : 'X\(/\)' \| \
17949 . : '\(.\)' 2>/dev/null ||
17950echo X"$mf" |
17951 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17952 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17953 /^X\(\/\/\)$/{ s//\1/; q; }
17954 /^X\(\/\).*/{ s//\1/; q; }
17955 s/.*/./; q'`
17956 else
17957 continue
17958 fi
17959 # Extract the definition of DEPDIR, am__include, and am__quote
17960 # from the Makefile without running `make'.
17961 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17962 test -z "$DEPDIR" && continue
17963 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17964 test -z "am__include" && continue
17965 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17966 # When using ansi2knr, U may be empty or an underscore; expand it
17967 U=`sed -n 's/^U = //p' < "$mf"`
17968 # Find all dependency output files, they are included files with
17969 # $(DEPDIR) in their names. We invoke sed twice because it is the
17970 # simplest approach to changing $(DEPDIR) to its actual value in the
17971 # expansion.
17972 for file in `sed -n "
17973 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17974 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17975 # Make sure the directory exists.
17976 test -f "$dirpart/$file" && continue
17977 fdir=`(dirname "$file") 2>/dev/null ||
17978$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17979 X"$file" : 'X\(//\)[^/]' \| \
17980 X"$file" : 'X\(//\)$' \| \
17981 X"$file" : 'X\(/\)' \| \
17982 . : '\(.\)' 2>/dev/null ||
17983echo X"$file" |
17984 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17985 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17986 /^X\(\/\/\)$/{ s//\1/; q; }
17987 /^X\(\/\).*/{ s//\1/; q; }
17988 s/.*/./; q'`
17989 { if $as_mkdir_p; then
17990 mkdir -p $dirpart/$fdir
17991 else
17992 as_dir=$dirpart/$fdir
17993 as_dirs=
17994 while test ! -d "$as_dir"; do
17995 as_dirs="$as_dir $as_dirs"
17996 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17997$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17998 X"$as_dir" : 'X\(//\)[^/]' \| \
17999 X"$as_dir" : 'X\(//\)$' \| \
18000 X"$as_dir" : 'X\(/\)' \| \
18001 . : '\(.\)' 2>/dev/null ||
18002echo X"$as_dir" |
18003 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18004 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18005 /^X\(\/\/\)$/{ s//\1/; q; }
18006 /^X\(\/\).*/{ s//\1/; q; }
18007 s/.*/./; q'`
18008 done
18009 test ! -n "$as_dirs" || mkdir $as_dirs
18010 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
18011echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
18012 { (exit 1); exit 1; }; }; }
18013
18014 # echo "creating $dirpart/$file"
18015 echo '# dummy' > "$dirpart/$file"
18016 done
18017done
d7040cdb
SE
18018 ;;
18019 libtool )
18020
18021 # See if we are running on zsh, and set the options which allow our
18022 # commands through without removal of \ escapes.
18023 if test -n "${ZSH_VERSION+set}" ; then
18024 setopt NO_GLOB_SUBST
18025 fi
18026
18027 cfgfile="${ofile}T"
18028 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18029 $RM "$cfgfile"
18030
18031 cat <<_LT_EOF >> "$cfgfile"
18032#! $SHELL
18033
18034# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
718a6fd8 18035# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
d7040cdb
SE
18036# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18037# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18038#
718a6fd8
SE
18039# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18040# 2006, 2007, 2008 Free Software Foundation, Inc.
18041# Written by Gordon Matzigkeit, 1996
d7040cdb 18042#
718a6fd8 18043# This file is part of GNU Libtool.
d7040cdb 18044#
718a6fd8
SE
18045# GNU Libtool is free software; you can redistribute it and/or
18046# modify it under the terms of the GNU General Public License as
18047# published by the Free Software Foundation; either version 2 of
18048# the License, or (at your option) any later version.
d7040cdb 18049#
718a6fd8
SE
18050# As a special exception to the GNU General Public License,
18051# if you distribute this file as part of a program or library that
18052# is built using GNU Libtool, you may include this file under the
18053# same distribution terms that you use for the rest of that program.
d7040cdb 18054#
718a6fd8
SE
18055# GNU Libtool is distributed in the hope that it will be useful,
18056# but WITHOUT ANY WARRANTY; without even the implied warranty of
18057# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18058# GNU General Public License for more details.
d7040cdb 18059#
718a6fd8
SE
18060# You should have received a copy of the GNU General Public License
18061# along with GNU Libtool; see the file COPYING. If not, a copy
18062# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18063# obtained by writing to the Free Software Foundation, Inc.,
18064# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
d7040cdb
SE
18065
18066
18067# The names of the tagged configurations supported by this script.
18068available_tags=""
18069
18070# ### BEGIN LIBTOOL CONFIG
18071
18072# Which release of libtool.m4 was used?
18073macro_version=$macro_version
18074macro_revision=$macro_revision
18075
18076# Whether or not to build shared libraries.
18077build_libtool_libs=$enable_shared
18078
18079# Whether or not to build static libraries.
18080build_old_libs=$enable_static
18081
18082# What type of objects to build.
18083pic_mode=$pic_mode
18084
18085# Whether or not to optimize for fast installation.
18086fast_install=$enable_fast_install
18087
18088# The host system.
18089host_alias=$host_alias
18090host=$host
18091host_os=$host_os
18092
18093# The build system.
18094build_alias=$build_alias
18095build=$build
18096build_os=$build_os
18097
18098# A sed program that does not truncate output.
18099SED=$lt_SED
18100
18101# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18102Xsed="\$SED -e 1s/^X//"
18103
18104# A grep program that handles long lines.
18105GREP=$lt_GREP
18106
18107# An ERE matcher.
18108EGREP=$lt_EGREP
18109
18110# A literal string matcher.
18111FGREP=$lt_FGREP
18112
18113# A BSD- or MS-compatible name lister.
18114NM=$lt_NM
18115
18116# Whether we need soft or hard links.
18117LN_S=$lt_LN_S
18118
18119# What is the maximum length of a command?
18120max_cmd_len=$max_cmd_len
18121
18122# Object file suffix (normally "o").
18123objext=$ac_objext
18124
18125# Executable file suffix (normally "").
18126exeext=$exeext
18127
18128# whether the shell understands "unset".
18129lt_unset=$lt_unset
18130
18131# turn spaces into newlines.
18132SP2NL=$lt_lt_SP2NL
18133
18134# turn newlines into spaces.
18135NL2SP=$lt_lt_NL2SP
18136
18137# How to create reloadable object files.
18138reload_flag=$lt_reload_flag
18139reload_cmds=$lt_reload_cmds
18140
718a6fd8
SE
18141# An object symbol dumper.
18142OBJDUMP=$lt_OBJDUMP
18143
d7040cdb
SE
18144# Method to check whether dependent libraries are shared objects.
18145deplibs_check_method=$lt_deplibs_check_method
18146
18147# Command to use when deplibs_check_method == "file_magic".
18148file_magic_cmd=$lt_file_magic_cmd
18149
18150# The archiver.
18151AR=$lt_AR
18152AR_FLAGS=$lt_AR_FLAGS
18153
18154# A symbol stripping program.
18155STRIP=$lt_STRIP
18156
18157# Commands used to install an old-style archive.
18158RANLIB=$lt_RANLIB
18159old_postinstall_cmds=$lt_old_postinstall_cmds
18160old_postuninstall_cmds=$lt_old_postuninstall_cmds
18161
18162# A C compiler.
18163LTCC=$lt_CC
18164
18165# LTCC compiler flags.
18166LTCFLAGS=$lt_CFLAGS
18167
18168# Take the output of nm and produce a listing of raw symbols and C names.
18169global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18170
18171# Transform the output of nm in a proper C declaration.
18172global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18173
18174# Transform the output of nm in a C name address pair.
18175global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18176
718a6fd8
SE
18177# Transform the output of nm in a C name address pair when lib prefix is needed.
18178global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18179
d7040cdb
SE
18180# The name of the directory that contains temporary libtool files.
18181objdir=$objdir
18182
18183# Shell to use when invoking shell scripts.
18184SHELL=$lt_SHELL
18185
18186# An echo program that does not interpret backslashes.
18187ECHO=$lt_ECHO
18188
18189# Used to examine libraries when file_magic_cmd begins with "file".
18190MAGIC_CMD=$MAGIC_CMD
18191
18192# Must we lock files when doing compilation?
18193need_locks=$lt_need_locks
18194
718a6fd8
SE
18195# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18196DSYMUTIL=$lt_DSYMUTIL
18197
18198# Tool to change global to local symbols on Mac OS X.
18199NMEDIT=$lt_NMEDIT
18200
18201# Tool to manipulate fat objects and archives on Mac OS X.
18202LIPO=$lt_LIPO
18203
18204# ldd/readelf like tool for Mach-O binaries on Mac OS X.
18205OTOOL=$lt_OTOOL
18206
18207# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18208OTOOL64=$lt_OTOOL64
18209
d7040cdb
SE
18210# Old archive suffix (normally "a").
18211libext=$libext
18212
18213# Shared library suffix (normally ".so").
18214shrext_cmds=$lt_shrext_cmds
18215
18216# The commands to extract the exported symbol list from a shared archive.
18217extract_expsyms_cmds=$lt_extract_expsyms_cmds
18218
18219# Variables whose values should be saved in libtool wrapper scripts and
18220# restored at link time.
18221variables_saved_for_relink=$lt_variables_saved_for_relink
18222
18223# Do we need the "lib" prefix for modules?
18224need_lib_prefix=$need_lib_prefix
18225
18226# Do we need a version for libraries?
18227need_version=$need_version
18228
18229# Library versioning type.
18230version_type=$version_type
18231
18232# Shared library runtime path variable.
18233runpath_var=$runpath_var
18234
18235# Shared library path variable.
18236shlibpath_var=$shlibpath_var
18237
18238# Is shlibpath searched before the hard-coded library search path?
18239shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18240
18241# Format of library name prefix.
18242libname_spec=$lt_libname_spec
18243
18244# List of archive names. First name is the real one, the rest are links.
18245# The last name is the one that the linker finds with -lNAME
18246library_names_spec=$lt_library_names_spec
18247
18248# The coded name of the library, if different from the real name.
18249soname_spec=$lt_soname_spec
18250
18251# Command to use after installation of a shared archive.
18252postinstall_cmds=$lt_postinstall_cmds
18253
18254# Command to use after uninstallation of a shared archive.
18255postuninstall_cmds=$lt_postuninstall_cmds
18256
18257# Commands used to finish a libtool library installation in a directory.
18258finish_cmds=$lt_finish_cmds
18259
18260# As "finish_cmds", except a single script fragment to be evaled but
18261# not shown.
18262finish_eval=$lt_finish_eval
18263
18264# Whether we should hardcode library paths into libraries.
18265hardcode_into_libs=$hardcode_into_libs
18266
18267# Compile-time system search path for libraries.
18268sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18269
18270# Run-time system search path for libraries.
18271sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18272
18273# Whether dlopen is supported.
18274dlopen_support=$enable_dlopen
18275
18276# Whether dlopen of programs is supported.
18277dlopen_self=$enable_dlopen_self
18278
18279# Whether dlopen of statically linked programs is supported.
18280dlopen_self_static=$enable_dlopen_self_static
18281
18282# Commands to strip libraries.
18283old_striplib=$lt_old_striplib
18284striplib=$lt_striplib
18285
18286
18287# The linker used to build libraries.
18288LD=$lt_LD
18289
18290# Commands used to build an old-style archive.
18291old_archive_cmds=$lt_old_archive_cmds
18292
18293# A language specific compiler.
18294CC=$lt_compiler
18295
18296# Is the compiler the GNU compiler?
18297with_gcc=$GCC
18298
18299# Compiler flag to turn off builtin functions.
18300no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18301
18302# How to pass a linker flag through the compiler.
18303wl=$lt_lt_prog_compiler_wl
18304
18305# Additional compiler flags for building library objects.
18306pic_flag=$lt_lt_prog_compiler_pic
18307
18308# Compiler flag to prevent dynamic linking.
18309link_static_flag=$lt_lt_prog_compiler_static
18310
18311# Does compiler simultaneously support -c and -o options?
18312compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18313
18314# Whether or not to add -lc for building shared libraries.
18315build_libtool_need_lc=$archive_cmds_need_lc
18316
18317# Whether or not to disallow shared libs when runtime libs are static.
18318allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18319
18320# Compiler flag to allow reflexive dlopens.
18321export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18322
18323# Compiler flag to generate shared objects directly from archives.
18324whole_archive_flag_spec=$lt_whole_archive_flag_spec
18325
18326# Whether the compiler copes with passing no objects directly.
18327compiler_needs_object=$lt_compiler_needs_object
18328
18329# Create an old-style archive from a shared archive.
18330old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18331
18332# Create a temporary old-style archive to link instead of a shared archive.
18333old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18334
18335# Commands used to build a shared archive.
18336archive_cmds=$lt_archive_cmds
18337archive_expsym_cmds=$lt_archive_expsym_cmds
18338
18339# Commands used to build a loadable module if different from building
18340# a shared archive.
18341module_cmds=$lt_module_cmds
18342module_expsym_cmds=$lt_module_expsym_cmds
18343
18344# Whether we are building with GNU ld or not.
18345with_gnu_ld=$lt_with_gnu_ld
18346
18347# Flag that allows shared libraries with undefined symbols to be built.
18348allow_undefined_flag=$lt_allow_undefined_flag
18349
18350# Flag that enforces no undefined symbols.
18351no_undefined_flag=$lt_no_undefined_flag
18352
18353# Flag to hardcode \$libdir into a binary during linking.
18354# This must work even if \$libdir does not exist
18355hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18356
18357# If ld is used when linking, flag to hardcode \$libdir into a binary
18358# during linking. This must work even if \$libdir does not exist.
18359hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18360
18361# Whether we need a single "-rpath" flag with a separated argument.
18362hardcode_libdir_separator=$lt_hardcode_libdir_separator
18363
18364# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18365# DIR into the resulting binary.
18366hardcode_direct=$hardcode_direct
18367
18368# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18369# DIR into the resulting binary and the resulting library dependency is
18370# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18371# library is relocated.
18372hardcode_direct_absolute=$hardcode_direct_absolute
18373
18374# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18375# into the resulting binary.
18376hardcode_minus_L=$hardcode_minus_L
18377
18378# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18379# into the resulting binary.
18380hardcode_shlibpath_var=$hardcode_shlibpath_var
18381
18382# Set to "yes" if building a shared library automatically hardcodes DIR
18383# into the library and all subsequent libraries and executables linked
18384# against it.
18385hardcode_automatic=$hardcode_automatic
18386
18387# Set to yes if linker adds runtime paths of dependent libraries
18388# to runtime path list.
18389inherit_rpath=$inherit_rpath
18390
18391# Whether libtool must link a program against all its dependency libraries.
18392link_all_deplibs=$link_all_deplibs
18393
18394# Fix the shell variable \$srcfile for the compiler.
18395fix_srcfile_path=$lt_fix_srcfile_path
18396
18397# Set to "yes" if exported symbols are required.
18398always_export_symbols=$always_export_symbols
18399
18400# The commands to list exported symbols.
18401export_symbols_cmds=$lt_export_symbols_cmds
18402
18403# Symbols that should not be listed in the preloaded symbols.
18404exclude_expsyms=$lt_exclude_expsyms
18405
18406# Symbols that must always be exported.
18407include_expsyms=$lt_include_expsyms
18408
18409# Commands necessary for linking programs (against libraries) with templates.
18410prelink_cmds=$lt_prelink_cmds
18411
18412# Specify filename containing input files.
18413file_list_spec=$lt_file_list_spec
18414
18415# How to hardcode a shared library path into an executable.
18416hardcode_action=$hardcode_action
18417
18418# ### END LIBTOOL CONFIG
18419
18420_LT_EOF
18421
18422 case $host_os in
18423 aix3*)
18424 cat <<\_LT_EOF >> "$cfgfile"
18425# AIX sometimes has problems with the GCC collect2 program. For some
18426# reason, if we set the COLLECT_NAMES environment variable, the problems
18427# vanish in a puff of smoke.
18428if test "X${COLLECT_NAMES+set}" != Xset; then
18429 COLLECT_NAMES=
18430 export COLLECT_NAMES
18431fi
18432_LT_EOF
18433 ;;
18434 esac
18435
18436
18437ltmain="$ac_aux_dir/ltmain.sh"
18438
18439
18440 # We use sed instead of cat because bash on DJGPP gets confused if
18441 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18442 # text mode, it properly converts lines to CR/LF. This bash problem
18443 # is reportedly fixed, but why not run on old versions too?
18444 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18445 || (rm -f "$cfgfile"; exit 1)
18446
18447 case $xsi_shell in
18448 yes)
18449 cat << \_LT_EOF >> "$cfgfile"
718a6fd8 18450
d7040cdb
SE
18451# func_dirname file append nondir_replacement
18452# Compute the dirname of FILE. If nonempty, add APPEND to the result,
18453# otherwise set result to NONDIR_REPLACEMENT.
18454func_dirname ()
18455{
18456 case ${1} in
18457 */*) func_dirname_result="${1%/*}${2}" ;;
18458 * ) func_dirname_result="${3}" ;;
18459 esac
18460}
18461
18462# func_basename file
18463func_basename ()
18464{
18465 func_basename_result="${1##*/}"
18466}
18467
718a6fd8
SE
18468# func_dirname_and_basename file append nondir_replacement
18469# perform func_basename and func_dirname in a single function
18470# call:
18471# dirname: Compute the dirname of FILE. If nonempty,
18472# add APPEND to the result, otherwise set result
18473# to NONDIR_REPLACEMENT.
18474# value returned in "$func_dirname_result"
18475# basename: Compute filename of FILE.
18476# value retuned in "$func_basename_result"
18477# Implementation must be kept synchronized with func_dirname
18478# and func_basename. For efficiency, we do not delegate to
18479# those functions but instead duplicate the functionality here.
18480func_dirname_and_basename ()
18481{
18482 case ${1} in
18483 */*) func_dirname_result="${1%/*}${2}" ;;
18484 * ) func_dirname_result="${3}" ;;
18485 esac
18486 func_basename_result="${1##*/}"
18487}
18488
d7040cdb
SE
18489# func_stripname prefix suffix name
18490# strip PREFIX and SUFFIX off of NAME.
18491# PREFIX and SUFFIX must not contain globbing or regex special
18492# characters, hashes, percent signs, but SUFFIX may contain a leading
18493# dot (in which case that matches only a dot).
18494func_stripname ()
18495{
18496 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18497 # positional parameters, so assign one to ordinary parameter first.
18498 func_stripname_result=${3}
18499 func_stripname_result=${func_stripname_result#"${1}"}
18500 func_stripname_result=${func_stripname_result%"${2}"}
18501}
18502
18503# func_opt_split
18504func_opt_split ()
18505{
18506 func_opt_split_opt=${1%%=*}
18507 func_opt_split_arg=${1#*=}
18508}
18509
18510# func_lo2o object
18511func_lo2o ()
18512{
18513 case ${1} in
18514 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18515 *) func_lo2o_result=${1} ;;
18516 esac
18517}
718a6fd8
SE
18518
18519# func_xform libobj-or-source
18520func_xform ()
18521{
18522 func_xform_result=${1%.*}.lo
18523}
18524
18525# func_arith arithmetic-term...
18526func_arith ()
18527{
18528 func_arith_result=$(( $* ))
18529}
18530
18531# func_len string
18532# STRING may not start with a hyphen.
18533func_len ()
18534{
18535 func_len_result=${#1}
18536}
18537
d7040cdb
SE
18538_LT_EOF
18539 ;;
18540 *) # Bourne compatible functions.
18541 cat << \_LT_EOF >> "$cfgfile"
718a6fd8 18542
d7040cdb
SE
18543# func_dirname file append nondir_replacement
18544# Compute the dirname of FILE. If nonempty, add APPEND to the result,
18545# otherwise set result to NONDIR_REPLACEMENT.
18546func_dirname ()
18547{
18548 # Extract subdirectory from the argument.
18549 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
18550 if test "X$func_dirname_result" = "X${1}"; then
18551 func_dirname_result="${3}"
18552 else
18553 func_dirname_result="$func_dirname_result${2}"
18554 fi
18555}
18556
18557# func_basename file
18558func_basename ()
18559{
18560 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
18561}
18562
718a6fd8 18563
d7040cdb
SE
18564# func_stripname prefix suffix name
18565# strip PREFIX and SUFFIX off of NAME.
18566# PREFIX and SUFFIX must not contain globbing or regex special
18567# characters, hashes, percent signs, but SUFFIX may contain a leading
18568# dot (in which case that matches only a dot).
18569# func_strip_suffix prefix name
18570func_stripname ()
18571{
18572 case ${2} in
18573 .*) func_stripname_result=`$ECHO "X${3}" \
18574 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
18575 *) func_stripname_result=`$ECHO "X${3}" \
18576 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
18577 esac
18578}
18579
18580# sed scripts:
18581my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18582my_sed_long_arg='1s/^-[^=]*=//'
18583
18584# func_opt_split
18585func_opt_split ()
18586{
18587 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
18588 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
18589}
18590
18591# func_lo2o object
18592func_lo2o ()
18593{
18594 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
18595}
718a6fd8
SE
18596
18597# func_xform libobj-or-source
18598func_xform ()
18599{
18600 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
18601}
18602
18603# func_arith arithmetic-term...
18604func_arith ()
18605{
18606 func_arith_result=`expr "$@"`
18607}
18608
18609# func_len string
18610# STRING may not start with a hyphen.
18611func_len ()
18612{
18613 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18614}
18615
d7040cdb
SE
18616_LT_EOF
18617esac
18618
18619case $lt_shell_append in
18620 yes)
18621 cat << \_LT_EOF >> "$cfgfile"
18622
18623# func_append var value
18624# Append VALUE to the end of shell variable VAR.
18625func_append ()
18626{
18627 eval "$1+=\$2"
18628}
18629_LT_EOF
18630 ;;
18631 *)
18632 cat << \_LT_EOF >> "$cfgfile"
18633
18634# func_append var value
18635# Append VALUE to the end of shell variable VAR.
18636func_append ()
18637{
18638 eval "$1=\$$1\$2"
18639}
718a6fd8 18640
d7040cdb
SE
18641_LT_EOF
18642 ;;
18643 esac
18644
18645
18646 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18647 || (rm -f "$cfgfile"; exit 1)
18648
18649 mv -f "$cfgfile" "$ofile" ||
18650 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18651 chmod +x "$ofile"
18652
42ecbf5e 18653 ;;
20e95c23
DJ
18654 default-1 )
18655 for ac_file in $CONFIG_FILES; do
18656 # Support "outfile[:infile[:infile...]]"
18657 case "$ac_file" in
18658 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18659 esac
18660 # PO directories have a Makefile.in generated from Makefile.in.in.
18661 case "$ac_file" in */Makefile.in)
18662 # Adjust a relative srcdir.
18663 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
18664 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
18665 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
18666 # In autoconf-2.13 it is called $ac_given_srcdir.
18667 # In autoconf-2.50 it is called $srcdir.
18668 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
18669 case "$ac_given_srcdir" in
18670 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
18671 /*) top_srcdir="$ac_given_srcdir" ;;
18672 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
18673 esac
18674 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
18675 rm -f "$ac_dir/POTFILES"
18676 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
18677 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
18678 POMAKEFILEDEPS="POTFILES.in"
18679 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
18680 # on $ac_dir but don't depend on user-specified configuration
18681 # parameters.
18682 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
18683 # The LINGUAS file contains the set of available languages.
18684 if test -n "$OBSOLETE_ALL_LINGUAS"; then
18685 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
18686 fi
18687 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
18688 # Hide the ALL_LINGUAS assigment from automake.
18689 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
18690 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
18691 else
18692 # The set of available languages was given in configure.in.
18693 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
18694 fi
18695 case "$ac_given_srcdir" in
18696 .) srcdirpre= ;;
18697 *) srcdirpre='$(srcdir)/' ;;
18698 esac
18699 POFILES=
18700 GMOFILES=
18701 UPDATEPOFILES=
18702 DUMMYPOFILES=
18703 for lang in $ALL_LINGUAS; do
18704 POFILES="$POFILES $srcdirpre$lang.po"
18705 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
18706 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
18707 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
18708 done
18709 # CATALOGS depends on both $ac_dir and the user's LINGUAS
18710 # environment variable.
18711 INST_LINGUAS=
18712 if test -n "$ALL_LINGUAS"; then
18713 for presentlang in $ALL_LINGUAS; do
18714 useit=no
18715 if test "%UNSET%" != "$LINGUAS"; then
18716 desiredlanguages="$LINGUAS"
18717 else
18718 desiredlanguages="$ALL_LINGUAS"
18719 fi
18720 for desiredlang in $desiredlanguages; do
18721 # Use the presentlang catalog if desiredlang is
18722 # a. equal to presentlang, or
18723 # b. a variant of presentlang (because in this case,
18724 # presentlang can be used as a fallback for messages
18725 # which are not translated in the desiredlang catalog).
18726 case "$desiredlang" in
18727 "$presentlang"*) useit=yes;;
18728 esac
18729 done
18730 if test $useit = yes; then
18731 INST_LINGUAS="$INST_LINGUAS $presentlang"
18732 fi
18733 done
18734 fi
18735 CATALOGS=
18736 if test -n "$INST_LINGUAS"; then
18737 for lang in $INST_LINGUAS; do
18738 CATALOGS="$CATALOGS $lang.gmo"
18739 done
18740 fi
18741 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
18742 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"
18743 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
18744 if test -f "$f"; then
18745 case "$f" in
18746 *.orig | *.bak | *~) ;;
18747 *) cat "$f" >> "$ac_dir/Makefile" ;;
18748 esac
18749 fi
18750 done
18751 fi
18752 ;;
18753 esac
18754 done ;;
42ecbf5e
DJ
18755 esac
18756done
18757_ACEOF
e5a52504 18758
42ecbf5e
DJ
18759cat >>$CONFIG_STATUS <<\_ACEOF
18760
18761{ (exit 0); exit 0; }
18762_ACEOF
252b5132 18763chmod +x $CONFIG_STATUS
42ecbf5e
DJ
18764ac_clean_files=$ac_clean_files_save
18765
18766
18767# configure is writing to config.log, and then calls config.status.
18768# config.status does its own redirection, appending to config.log.
18769# Unfortunately, on DOS this fails, as config.log is still kept open
18770# by configure, so config.status won't be able to write to it; its
18771# output is simply discarded. So we exec the FD to /dev/null,
18772# effectively closing config.log, so it can be properly (re)opened and
18773# appended to by config.status. When coming back to configure, we
18774# need to make the FD available again.
18775if test "$no_create" != yes; then
18776 ac_cs_success=:
18777 ac_config_status_args=
18778 test "$silent" = yes &&
18779 ac_config_status_args="$ac_config_status_args --quiet"
18780 exec 5>/dev/null
18781 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18782 exec 5>>config.log
18783 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18784 # would make configure fail if this is the last instruction.
18785 $ac_cs_success || { (exit 1); exit 1; }
18786fi
252b5132 18787