daily update
[deliverable/binutils-gdb.git] / ld / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
42ecbf5e 3# Generated by GNU Autoconf 2.59.
252b5132 4#
42ecbf5e 5# Copyright (C) 2003 Free Software Foundation, Inc.
252b5132
RH
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
42ecbf5e
DJ
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
d7040cdb
SE
244
245# Check that we are running under the correct shell.
246SHELL=${CONFIG_SHELL-/bin/sh}
247
248case X$lt_ECHO in
249X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
252 ;;
253esac
254
255ECHO=${lt_ECHO-echo}
256if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
258 shift
259elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
261 :
262elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $ECHO works!
264 :
265else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
268fi
269
270if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
272 shift
273 cat <<_LT_EOF
274$*
275_LT_EOF
276 exit 0
277fi
278
279# The HP-UX ksh and POSIX shell print the target directory to stdout
280# if CDPATH is set.
281(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
282
283if test -z "$lt_ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
289 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
290 then
291 break
292 fi
293 done
294 fi
295
296 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
297 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
298 test "X$echo_testing_string" = "X$echo_test_string"; then
299 :
300 else
301 # The Solaris, AIX, and Digital Unix default echo programs unquote
302 # backslashes. This makes it impossible to quote backslashes using
303 # echo "$something" | sed 's/\\/\\\\/g'
304 #
305 # So, first we look for a working echo in the user's PATH.
306
307 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
308 for dir in $PATH /usr/ucb; do
309 IFS="$lt_save_ifs"
310 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
311 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313 test "X$echo_testing_string" = "X$echo_test_string"; then
314 ECHO="$dir/echo"
315 break
316 fi
317 done
318 IFS="$lt_save_ifs"
319
320 if test "X$ECHO" = Xecho; then
321 # We didn't find a better echo, so look for alternatives.
322 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
323 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
324 test "X$echo_testing_string" = "X$echo_test_string"; then
325 # This shell has a builtin print -r that does the trick.
326 ECHO='print -r'
327 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
328 test "X$CONFIG_SHELL" != X/bin/ksh; then
329 # If we have ksh, try running configure again with it.
330 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
331 export ORIGINAL_CONFIG_SHELL
332 CONFIG_SHELL=/bin/ksh
333 export CONFIG_SHELL
334 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
335 else
336 # Try using printf.
337 ECHO='printf %s\n'
338 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
339 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
340 test "X$echo_testing_string" = "X$echo_test_string"; then
341 # Cool, printf works
342 :
343 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344 test "X$echo_testing_string" = 'X\t' &&
345 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346 test "X$echo_testing_string" = "X$echo_test_string"; then
347 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
348 export CONFIG_SHELL
349 SHELL="$CONFIG_SHELL"
350 export SHELL
351 ECHO="$CONFIG_SHELL $0 --fallback-echo"
352 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353 test "X$echo_testing_string" = 'X\t' &&
354 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355 test "X$echo_testing_string" = "X$echo_test_string"; then
356 ECHO="$CONFIG_SHELL $0 --fallback-echo"
357 else
358 # maybe with a smaller string...
359 prev=:
360
361 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
363 then
364 break
365 fi
366 prev="$cmd"
367 done
368
369 if test "$prev" != 'sed 50q "$0"'; then
370 echo_test_string=`eval $prev`
371 export echo_test_string
372 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
373 else
374 # Oops. We lost completely, so just stick with echo.
375 ECHO=echo
376 fi
377 fi
378 fi
379 fi
380 fi
381fi
382
383# Copy echo and quote the copy suitably for passing to libtool from
384# the Makefile, instead of quoting the original, which is used later.
385lt_ECHO=$ECHO
386if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
388fi
389
390
391
392
42ecbf5e
DJ
393# Name of the host.
394# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395# so uname gets run too.
396ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
252b5132 397
42ecbf5e
DJ
398exec 6>&1
399
400#
401# Initializations.
402#
252b5132 403ac_default_prefix=/usr/local
42ecbf5e
DJ
404ac_config_libobj_dir=.
405cross_compiling=no
406subdirs=
407MFLAGS=
408MAKEFLAGS=
409SHELL=${CONFIG_SHELL-/bin/sh}
410
411# Maximum number of lines to put in a shell here document.
412# This variable seems obsolete. It should probably be removed, and
413# only ac_max_sed_lines should be used.
414: ${ac_max_here_lines=38}
415
416# Identity of this package.
417PACKAGE_NAME=
418PACKAGE_TARNAME=
419PACKAGE_VERSION=
420PACKAGE_STRING=
421PACKAGE_BUGREPORT=
422
423ac_unique_file="ldmain.c"
424# Factoring default headers for most tests.
425ac_includes_default="\
426#include <stdio.h>
427#if HAVE_SYS_TYPES_H
428# include <sys/types.h>
429#endif
430#if HAVE_SYS_STAT_H
431# include <sys/stat.h>
432#endif
433#if STDC_HEADERS
434# include <stdlib.h>
435# include <stddef.h>
436#else
437# if HAVE_STDLIB_H
438# include <stdlib.h>
439# endif
440#endif
441#if HAVE_STRING_H
442# if !STDC_HEADERS && HAVE_MEMORY_H
443# include <memory.h>
444# endif
445# include <string.h>
446#endif
447#if HAVE_STRINGS_H
448# include <strings.h>
449#endif
450#if HAVE_INTTYPES_H
451# include <inttypes.h>
452#else
453# if HAVE_STDINT_H
454# include <stdint.h>
455# endif
456#endif
457#if HAVE_UNISTD_H
458# include <unistd.h>
459#endif"
460
7357c5b6 461ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE use_sysroot TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE WARN_CFLAGS NO_WERROR CPP EGREP LIBTOOL SED FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE YACC LEX LEXLIB LEX_OUTPUT_ROOT MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GENINSRC_NEVER_TRUE GENINSRC_NEVER_FALSE HDEFINES HOSTING_CRT0 HOSTING_LIBS NATIVE_LIB_DIRS STRINGIFY EMUL EMULATION_OFILES EMUL_EXTRA_OFILES LIB_PATH EMULATION_LIBPATH TESTBFDLIB datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
42ecbf5e 462ac_subst_files='TDIRS'
7a283e07 463ac_pwd=`pwd`
252b5132
RH
464
465# Initialize some variables set by options.
42ecbf5e
DJ
466ac_init_help=
467ac_init_version=false
252b5132
RH
468# The variables have the same names as the options, with
469# dashes changed to underlines.
42ecbf5e 470cache_file=/dev/null
252b5132 471exec_prefix=NONE
252b5132 472no_create=
252b5132
RH
473no_recursion=
474prefix=NONE
475program_prefix=NONE
476program_suffix=NONE
477program_transform_name=s,x,x,
478silent=
479site=
480srcdir=
252b5132
RH
481verbose=
482x_includes=NONE
483x_libraries=NONE
42ecbf5e
DJ
484
485# Installation directory options.
486# These are left unexpanded so users can "make install exec_prefix=/foo"
487# and all the variables that are supposed to be based on exec_prefix
488# by default will actually change.
489# Use braces instead of parens because sh, perl, etc. also accept them.
252b5132
RH
490bindir='${exec_prefix}/bin'
491sbindir='${exec_prefix}/sbin'
492libexecdir='${exec_prefix}/libexec'
493datadir='${prefix}/share'
494sysconfdir='${prefix}/etc'
495sharedstatedir='${prefix}/com'
496localstatedir='${prefix}/var'
497libdir='${exec_prefix}/lib'
498includedir='${prefix}/include'
499oldincludedir='/usr/include'
500infodir='${prefix}/info'
501mandir='${prefix}/man'
502
252b5132
RH
503ac_prev=
504for ac_option
505do
252b5132
RH
506 # If the previous option needs an argument, assign it.
507 if test -n "$ac_prev"; then
508 eval "$ac_prev=\$ac_option"
509 ac_prev=
510 continue
511 fi
512
42ecbf5e 513 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
252b5132
RH
514
515 # Accept the important Cygnus configure options, so we can diagnose typos.
516
42ecbf5e 517 case $ac_option in
252b5132
RH
518
519 -bindir | --bindir | --bindi | --bind | --bin | --bi)
520 ac_prev=bindir ;;
521 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
42ecbf5e 522 bindir=$ac_optarg ;;
252b5132
RH
523
524 -build | --build | --buil | --bui | --bu)
42ecbf5e 525 ac_prev=build_alias ;;
252b5132 526 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
42ecbf5e 527 build_alias=$ac_optarg ;;
252b5132
RH
528
529 -cache-file | --cache-file | --cache-fil | --cache-fi \
530 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
531 ac_prev=cache_file ;;
532 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
533 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
42ecbf5e
DJ
534 cache_file=$ac_optarg ;;
535
536 --config-cache | -C)
537 cache_file=config.cache ;;
252b5132
RH
538
539 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
540 ac_prev=datadir ;;
541 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
542 | --da=*)
42ecbf5e 543 datadir=$ac_optarg ;;
252b5132
RH
544
545 -disable-* | --disable-*)
42ecbf5e 546 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 547 # Reject names that are not valid shell variable names.
42ecbf5e
DJ
548 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
549 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
550 { (exit 1); exit 1; }; }
551 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
552 eval "enable_$ac_feature=no" ;;
252b5132
RH
553
554 -enable-* | --enable-*)
42ecbf5e 555 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 556 # Reject names that are not valid shell variable names.
42ecbf5e
DJ
557 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559 { (exit 1); exit 1; }; }
560 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561 case $ac_option in
562 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252b5132
RH
563 *) ac_optarg=yes ;;
564 esac
42ecbf5e 565 eval "enable_$ac_feature='$ac_optarg'" ;;
252b5132
RH
566
567 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
568 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
569 | --exec | --exe | --ex)
570 ac_prev=exec_prefix ;;
571 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
572 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
573 | --exec=* | --exe=* | --ex=*)
42ecbf5e 574 exec_prefix=$ac_optarg ;;
252b5132
RH
575
576 -gas | --gas | --ga | --g)
577 # Obsolete; use --with-gas.
578 with_gas=yes ;;
579
42ecbf5e
DJ
580 -help | --help | --hel | --he | -h)
581 ac_init_help=long ;;
582 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
583 ac_init_help=recursive ;;
584 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
585 ac_init_help=short ;;
252b5132
RH
586
587 -host | --host | --hos | --ho)
42ecbf5e 588 ac_prev=host_alias ;;
252b5132 589 -host=* | --host=* | --hos=* | --ho=*)
42ecbf5e 590 host_alias=$ac_optarg ;;
252b5132
RH
591
592 -includedir | --includedir | --includedi | --included | --include \
593 | --includ | --inclu | --incl | --inc)
594 ac_prev=includedir ;;
595 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
596 | --includ=* | --inclu=* | --incl=* | --inc=*)
42ecbf5e 597 includedir=$ac_optarg ;;
252b5132
RH
598
599 -infodir | --infodir | --infodi | --infod | --info | --inf)
600 ac_prev=infodir ;;
601 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
42ecbf5e 602 infodir=$ac_optarg ;;
252b5132
RH
603
604 -libdir | --libdir | --libdi | --libd)
605 ac_prev=libdir ;;
606 -libdir=* | --libdir=* | --libdi=* | --libd=*)
42ecbf5e 607 libdir=$ac_optarg ;;
252b5132
RH
608
609 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
610 | --libexe | --libex | --libe)
611 ac_prev=libexecdir ;;
612 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
613 | --libexe=* | --libex=* | --libe=*)
42ecbf5e 614 libexecdir=$ac_optarg ;;
252b5132
RH
615
616 -localstatedir | --localstatedir | --localstatedi | --localstated \
617 | --localstate | --localstat | --localsta | --localst \
618 | --locals | --local | --loca | --loc | --lo)
619 ac_prev=localstatedir ;;
620 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
621 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
622 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
42ecbf5e 623 localstatedir=$ac_optarg ;;
252b5132
RH
624
625 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
626 ac_prev=mandir ;;
627 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
42ecbf5e 628 mandir=$ac_optarg ;;
252b5132
RH
629
630 -nfp | --nfp | --nf)
631 # Obsolete; use --without-fp.
632 with_fp=no ;;
633
634 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
42ecbf5e 635 | --no-cr | --no-c | -n)
252b5132
RH
636 no_create=yes ;;
637
638 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
639 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
640 no_recursion=yes ;;
641
642 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
643 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
644 | --oldin | --oldi | --old | --ol | --o)
645 ac_prev=oldincludedir ;;
646 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
647 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
648 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
42ecbf5e 649 oldincludedir=$ac_optarg ;;
252b5132
RH
650
651 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
652 ac_prev=prefix ;;
653 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
42ecbf5e 654 prefix=$ac_optarg ;;
252b5132
RH
655
656 -program-prefix | --program-prefix | --program-prefi | --program-pref \
657 | --program-pre | --program-pr | --program-p)
658 ac_prev=program_prefix ;;
659 -program-prefix=* | --program-prefix=* | --program-prefi=* \
660 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
42ecbf5e 661 program_prefix=$ac_optarg ;;
252b5132
RH
662
663 -program-suffix | --program-suffix | --program-suffi | --program-suff \
664 | --program-suf | --program-su | --program-s)
665 ac_prev=program_suffix ;;
666 -program-suffix=* | --program-suffix=* | --program-suffi=* \
667 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
42ecbf5e 668 program_suffix=$ac_optarg ;;
252b5132
RH
669
670 -program-transform-name | --program-transform-name \
671 | --program-transform-nam | --program-transform-na \
672 | --program-transform-n | --program-transform- \
673 | --program-transform | --program-transfor \
674 | --program-transfo | --program-transf \
675 | --program-trans | --program-tran \
676 | --progr-tra | --program-tr | --program-t)
677 ac_prev=program_transform_name ;;
678 -program-transform-name=* | --program-transform-name=* \
679 | --program-transform-nam=* | --program-transform-na=* \
680 | --program-transform-n=* | --program-transform-=* \
681 | --program-transform=* | --program-transfor=* \
682 | --program-transfo=* | --program-transf=* \
683 | --program-trans=* | --program-tran=* \
684 | --progr-tra=* | --program-tr=* | --program-t=*)
42ecbf5e 685 program_transform_name=$ac_optarg ;;
252b5132
RH
686
687 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
688 | -silent | --silent | --silen | --sile | --sil)
689 silent=yes ;;
690
691 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
692 ac_prev=sbindir ;;
693 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
694 | --sbi=* | --sb=*)
42ecbf5e 695 sbindir=$ac_optarg ;;
252b5132
RH
696
697 -sharedstatedir | --sharedstatedir | --sharedstatedi \
698 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
699 | --sharedst | --shareds | --shared | --share | --shar \
700 | --sha | --sh)
701 ac_prev=sharedstatedir ;;
702 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
703 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
704 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
705 | --sha=* | --sh=*)
42ecbf5e 706 sharedstatedir=$ac_optarg ;;
252b5132
RH
707
708 -site | --site | --sit)
709 ac_prev=site ;;
710 -site=* | --site=* | --sit=*)
42ecbf5e 711 site=$ac_optarg ;;
85fbca6a 712
252b5132
RH
713 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
714 ac_prev=srcdir ;;
715 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
42ecbf5e 716 srcdir=$ac_optarg ;;
252b5132
RH
717
718 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
719 | --syscon | --sysco | --sysc | --sys | --sy)
720 ac_prev=sysconfdir ;;
721 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
722 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
42ecbf5e 723 sysconfdir=$ac_optarg ;;
252b5132
RH
724
725 -target | --target | --targe | --targ | --tar | --ta | --t)
42ecbf5e 726 ac_prev=target_alias ;;
252b5132 727 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
42ecbf5e 728 target_alias=$ac_optarg ;;
252b5132
RH
729
730 -v | -verbose | --verbose | --verbos | --verbo | --verb)
731 verbose=yes ;;
732
42ecbf5e
DJ
733 -version | --version | --versio | --versi | --vers | -V)
734 ac_init_version=: ;;
252b5132
RH
735
736 -with-* | --with-*)
42ecbf5e 737 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 738 # Reject names that are not valid shell variable names.
42ecbf5e
DJ
739 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
740 { echo "$as_me: error: invalid package name: $ac_package" >&2
741 { (exit 1); exit 1; }; }
252b5132 742 ac_package=`echo $ac_package| sed 's/-/_/g'`
42ecbf5e
DJ
743 case $ac_option in
744 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252b5132
RH
745 *) ac_optarg=yes ;;
746 esac
42ecbf5e 747 eval "with_$ac_package='$ac_optarg'" ;;
252b5132
RH
748
749 -without-* | --without-*)
42ecbf5e 750 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 751 # Reject names that are not valid shell variable names.
42ecbf5e
DJ
752 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753 { echo "$as_me: error: invalid package name: $ac_package" >&2
754 { (exit 1); exit 1; }; }
755 ac_package=`echo $ac_package | sed 's/-/_/g'`
756 eval "with_$ac_package=no" ;;
252b5132
RH
757
758 --x)
759 # Obsolete; use --with-x.
760 with_x=yes ;;
761
762 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
763 | --x-incl | --x-inc | --x-in | --x-i)
764 ac_prev=x_includes ;;
765 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
766 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
42ecbf5e 767 x_includes=$ac_optarg ;;
252b5132
RH
768
769 -x-libraries | --x-libraries | --x-librarie | --x-librari \
770 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
771 ac_prev=x_libraries ;;
772 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
773 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
42ecbf5e 774 x_libraries=$ac_optarg ;;
252b5132 775
42ecbf5e
DJ
776 -*) { echo "$as_me: error: unrecognized option: $ac_option
777Try \`$0 --help' for more information." >&2
778 { (exit 1); exit 1; }; }
252b5132
RH
779 ;;
780
42ecbf5e
DJ
781 *=*)
782 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
783 # Reject names that are not valid shell variable names.
784 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
785 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
786 { (exit 1); exit 1; }; }
787 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
788 eval "$ac_envvar='$ac_optarg'"
789 export $ac_envvar ;;
790
252b5132 791 *)
42ecbf5e
DJ
792 # FIXME: should be removed in autoconf 3.0.
793 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
794 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
795 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
796 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
252b5132
RH
797 ;;
798
799 esac
800done
801
802if test -n "$ac_prev"; then
42ecbf5e
DJ
803 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
804 { echo "$as_me: error: missing argument to $ac_option" >&2
805 { (exit 1); exit 1; }; }
252b5132 806fi
252b5132 807
42ecbf5e
DJ
808# Be sure to have absolute paths.
809for ac_var in exec_prefix prefix
810do
811 eval ac_val=$`echo $ac_var`
812 case $ac_val in
813 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
814 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
815 { (exit 1); exit 1; }; };;
816 esac
817done
252b5132 818
42ecbf5e
DJ
819# Be sure to have absolute paths.
820for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
821 localstatedir libdir includedir oldincludedir infodir mandir
252b5132 822do
42ecbf5e
DJ
823 eval ac_val=$`echo $ac_var`
824 case $ac_val in
825 [\\/$]* | ?:[\\/]* ) ;;
826 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
827 { (exit 1); exit 1; }; };;
252b5132
RH
828 esac
829done
830
42ecbf5e
DJ
831# There might be people who depend on the old broken behavior: `$host'
832# used to hold the argument of --host etc.
833# FIXME: To remove some day.
834build=$build_alias
835host=$host_alias
836target=$target_alias
837
838# FIXME: To remove some day.
839if test "x$host_alias" != x; then
840 if test "x$build_alias" = x; then
841 cross_compiling=maybe
842 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
843 If a cross compiler is detected then cross compile mode will be used." >&2
844 elif test "x$build_alias" != "x$host_alias"; then
845 cross_compiling=yes
846 fi
847fi
e5a52504 848
42ecbf5e
DJ
849ac_tool_prefix=
850test -n "$host_alias" && ac_tool_prefix=$host_alias-
851
852test "$silent" = yes && exec 6>/dev/null
252b5132 853
252b5132
RH
854
855# Find the source files, if location was not specified.
856if test -z "$srcdir"; then
857 ac_srcdir_defaulted=yes
858 # Try the directory containing this script, then its parent.
42ecbf5e
DJ
859 ac_confdir=`(dirname "$0") 2>/dev/null ||
860$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
861 X"$0" : 'X\(//\)[^/]' \| \
862 X"$0" : 'X\(//\)$' \| \
863 X"$0" : 'X\(/\)' \| \
864 . : '\(.\)' 2>/dev/null ||
865echo X"$0" |
866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
867 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
868 /^X\(\/\/\)$/{ s//\1/; q; }
869 /^X\(\/\).*/{ s//\1/; q; }
870 s/.*/./; q'`
252b5132
RH
871 srcdir=$ac_confdir
872 if test ! -r $srcdir/$ac_unique_file; then
873 srcdir=..
874 fi
875else
876 ac_srcdir_defaulted=no
877fi
878if test ! -r $srcdir/$ac_unique_file; then
879 if test "$ac_srcdir_defaulted" = yes; then
42ecbf5e
DJ
880 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
881 { (exit 1); exit 1; }; }
252b5132 882 else
42ecbf5e
DJ
883 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
884 { (exit 1); exit 1; }; }
252b5132
RH
885 fi
886fi
42ecbf5e
DJ
887(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
888 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
889 { (exit 1); exit 1; }; }
890srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
891ac_env_build_alias_set=${build_alias+set}
892ac_env_build_alias_value=$build_alias
893ac_cv_env_build_alias_set=${build_alias+set}
894ac_cv_env_build_alias_value=$build_alias
895ac_env_host_alias_set=${host_alias+set}
896ac_env_host_alias_value=$host_alias
897ac_cv_env_host_alias_set=${host_alias+set}
898ac_cv_env_host_alias_value=$host_alias
899ac_env_target_alias_set=${target_alias+set}
900ac_env_target_alias_value=$target_alias
901ac_cv_env_target_alias_set=${target_alias+set}
902ac_cv_env_target_alias_value=$target_alias
903ac_env_CC_set=${CC+set}
904ac_env_CC_value=$CC
905ac_cv_env_CC_set=${CC+set}
906ac_cv_env_CC_value=$CC
907ac_env_CFLAGS_set=${CFLAGS+set}
908ac_env_CFLAGS_value=$CFLAGS
909ac_cv_env_CFLAGS_set=${CFLAGS+set}
910ac_cv_env_CFLAGS_value=$CFLAGS
911ac_env_LDFLAGS_set=${LDFLAGS+set}
912ac_env_LDFLAGS_value=$LDFLAGS
913ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
914ac_cv_env_LDFLAGS_value=$LDFLAGS
915ac_env_CPPFLAGS_set=${CPPFLAGS+set}
916ac_env_CPPFLAGS_value=$CPPFLAGS
917ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
918ac_cv_env_CPPFLAGS_value=$CPPFLAGS
919ac_env_CPP_set=${CPP+set}
920ac_env_CPP_value=$CPP
921ac_cv_env_CPP_set=${CPP+set}
922ac_cv_env_CPP_value=$CPP
252b5132 923
42ecbf5e
DJ
924#
925# Report the --help message.
926#
927if test "$ac_init_help" = "long"; then
928 # Omit some internal or obsolete options to make the list less imposing.
929 # This message is too long to be a string in the A/UX 3.1 sh.
930 cat <<_ACEOF
931\`configure' configures this package to adapt to many kinds of systems.
252b5132 932
42ecbf5e 933Usage: $0 [OPTION]... [VAR=VALUE]...
252b5132 934
42ecbf5e
DJ
935To assign environment variables (e.g., CC, CFLAGS...), specify them as
936VAR=VALUE. See below for descriptions of some of the useful variables.
252b5132 937
42ecbf5e 938Defaults for the options are specified in brackets.
ac48eca1 939
42ecbf5e
DJ
940Configuration:
941 -h, --help display this help and exit
942 --help=short display options specific to this package
943 --help=recursive display the short help of all the included packages
944 -V, --version display version information and exit
945 -q, --quiet, --silent do not print \`checking...' messages
946 --cache-file=FILE cache test results in FILE [disabled]
947 -C, --config-cache alias for \`--cache-file=config.cache'
948 -n, --no-create do not create output files
949 --srcdir=DIR find the sources in DIR [configure dir or \`..']
950
951_ACEOF
952
953 cat <<_ACEOF
954Installation directories:
955 --prefix=PREFIX install architecture-independent files in PREFIX
956 [$ac_default_prefix]
957 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
958 [PREFIX]
ac48eca1 959
42ecbf5e
DJ
960By default, \`make install' will install all the files in
961\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
962an installation prefix other than \`$ac_default_prefix' using \`--prefix',
963for instance \`--prefix=\$HOME'.
ac48eca1 964
42ecbf5e 965For better control, use the options below.
ac48eca1 966
42ecbf5e
DJ
967Fine tuning of the installation directories:
968 --bindir=DIR user executables [EPREFIX/bin]
969 --sbindir=DIR system admin executables [EPREFIX/sbin]
970 --libexecdir=DIR program executables [EPREFIX/libexec]
971 --datadir=DIR read-only architecture-independent data [PREFIX/share]
972 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
973 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
974 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
975 --libdir=DIR object code libraries [EPREFIX/lib]
976 --includedir=DIR C header files [PREFIX/include]
977 --oldincludedir=DIR C header files for non-gcc [/usr/include]
978 --infodir=DIR info documentation [PREFIX/info]
979 --mandir=DIR man documentation [PREFIX/man]
980_ACEOF
ac48eca1 981
42ecbf5e 982 cat <<\_ACEOF
252b5132 983
42ecbf5e
DJ
984Program names:
985 --program-prefix=PREFIX prepend PREFIX to installed program names
986 --program-suffix=SUFFIX append SUFFIX to installed program names
987 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
252b5132 988
42ecbf5e
DJ
989System types:
990 --build=BUILD configure for building on BUILD [guessed]
991 --host=HOST cross-compile to build programs to run on HOST [BUILD]
992 --target=TARGET configure for building compilers for TARGET [HOST]
993_ACEOF
252b5132 994fi
252b5132 995
42ecbf5e 996if test -n "$ac_init_help"; then
252b5132 997
42ecbf5e 998 cat <<\_ACEOF
e5a52504 999
42ecbf5e
DJ
1000Optional Features:
1001 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1002 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1003 --disable-dependency-tracking speeds up one-time build
1004 --enable-dependency-tracking do not reject slow dependency extractors
ce2cded5
L
1005 --enable-targets alternative target configurations
1006 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
7fb9f789
NC
1007 --enable-got=<type> GOT handling scheme (target, single, negative,
1008 multigot)
ce2cded5
L
1009 --enable-werror treat compile warnings as errors
1010 --enable-build-warnings enable build-time compiler warnings
d7040cdb
SE
1011 --enable-shared[=PKGS]
1012 build shared libraries [default=yes]
1013 --enable-static[=PKGS]
1014 build static libraries [default=yes]
1015 --enable-fast-install[=PKGS]
1016 optimize for fast installation [default=yes]
42ecbf5e 1017 --disable-libtool-lock avoid locking (might break parallel builds)
42ecbf5e
DJ
1018 --disable-nls do not use Native Language Support
1019 --enable-maintainer-mode enable make rules and dependencies not useful
1020 (and sometimes confusing) to the casual installer
1021
1022Optional Packages:
1023 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1024 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
ce2cded5
L
1025 --with-lib-path=dir1:dir2... set default LIB_PATH
1026 --with-sysroot=DIR Search for usr/lib et al within DIR.
d7040cdb
SE
1027 --with-pic try to use only PIC/non-PIC objects [default=use
1028 both]
1029 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
42ecbf5e
DJ
1030
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
1039
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
1044fi
1045
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
1060
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,/$,,'`
1068 fi ;;
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;;
1087esac
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;;
1114esac
a2d91340 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 1132 done
a2d91340
AC
1133fi
1134
42ecbf5e
DJ
1135test -n "$ac_init_help" && exit 0
1136if $ac_init_version; then
1137 cat <<\_ACEOF
a2d91340 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.
a2d91340 1149
42ecbf5e
DJ
1150It was created by $as_me, which was
1151generated by GNU Autoconf 2.59. Invocation command line was
a2d91340 1152
42ecbf5e 1153 $ $0 $@
a2d91340 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
252b5132 1188
42ecbf5e 1189} >&5
5d64ca4e 1190
42ecbf5e 1191cat >&5 <<_ACEOF
5d64ca4e 1192
5d64ca4e 1193
42ecbf5e
DJ
1194## ----------- ##
1195## Core tests. ##
1196## ----------- ##
5d64ca4e 1197
42ecbf5e 1198_ACEOF
2469cfa2 1199
42ecbf5e
DJ
1200
1201# Keep a trace of the command line.
1202# Strip out --no-create and --no-recursion so they do not pile up.
1203# Strip out --silent because we don't want to record it for future runs.
1204# Also quote any args containing shell meta-characters.
1205# Make two passes to allow for proper duplicate-argument suppression.
1206ac_configure_args=
1207ac_configure_args0=
1208ac_configure_args1=
1209ac_sep=
1210ac_must_keep_next=false
1211for ac_pass in 1 2
1212do
1213 for ac_arg
1214 do
1215 case $ac_arg in
1216 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1217 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1218 | -silent | --silent | --silen | --sile | --sil)
1219 continue ;;
1220 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1221 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1222 esac
1223 case $ac_pass in
1224 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1225 2)
1226 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1227 if test $ac_must_keep_next = true; then
1228 ac_must_keep_next=false # Got value, back to normal.
1229 else
1230 case $ac_arg in
1231 *=* | --config-cache | -C | -disable-* | --disable-* \
1232 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1233 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1234 | -with-* | --with-* | -without-* | --without-* | --x)
1235 case "$ac_configure_args0 " in
1236 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1237 esac
1238 ;;
1239 -* ) ac_must_keep_next=true ;;
1240 esac
1241 fi
1242 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1243 # Get rid of the leading space.
1244 ac_sep=" "
1245 ;;
1246 esac
1247 done
1248done
1249$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1250$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1251
1252# When interrupted or exit'd, cleanup temporary files, and complete
1253# config.log. We remove comments because anyway the quotes in there
1254# would cause problems or look ugly.
1255# WARNING: Be sure not to use single quotes in there, as some shells,
1256# such as our DU 5.0 friend, will then `close' the trap.
1257trap 'exit_status=$?
1258 # Save into config.log some information that might help in debugging.
1259 {
1260 echo
1261
1262 cat <<\_ASBOX
1263## ---------------- ##
1264## Cache variables. ##
1265## ---------------- ##
1266_ASBOX
1267 echo
1268 # The following way of writing the cache mishandles newlines in values,
1269{
1270 (set) 2>&1 |
1271 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1272 *ac_space=\ *)
1273 sed -n \
1274 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1275 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1276 ;;
1277 *)
1278 sed -n \
1279 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1280 ;;
1281 esac;
1282}
1283 echo
1284
1285 cat <<\_ASBOX
1286## ----------------- ##
1287## Output variables. ##
1288## ----------------- ##
1289_ASBOX
1290 echo
1291 for ac_var in $ac_subst_vars
1292 do
1293 eval ac_val=$`echo $ac_var`
1294 echo "$ac_var='"'"'$ac_val'"'"'"
1295 done | sort
1296 echo
1297
1298 if test -n "$ac_subst_files"; then
1299 cat <<\_ASBOX
1300## ------------- ##
1301## Output files. ##
1302## ------------- ##
1303_ASBOX
1304 echo
1305 for ac_var in $ac_subst_files
1306 do
1307 eval ac_val=$`echo $ac_var`
1308 echo "$ac_var='"'"'$ac_val'"'"'"
1309 done | sort
1310 echo
1311 fi
1312
1313 if test -s confdefs.h; then
1314 cat <<\_ASBOX
1315## ----------- ##
1316## confdefs.h. ##
1317## ----------- ##
1318_ASBOX
1319 echo
1320 sed "/^$/d" confdefs.h | sort
1321 echo
1322 fi
1323 test "$ac_signal" != 0 &&
1324 echo "$as_me: caught signal $ac_signal"
1325 echo "$as_me: exit $exit_status"
1326 } >&5
1327 rm -f core *.core &&
1328 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1329 exit $exit_status
1330 ' 0
1331for ac_signal in 1 2 13 15; do
1332 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1333done
1334ac_signal=0
1335
1336# confdefs.h avoids OS command line length limits that DEFS can exceed.
1337rm -rf conftest* confdefs.h
1338# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1339echo >confdefs.h
1340
1341# Predefined preprocessor variables.
1342
1343cat >>confdefs.h <<_ACEOF
1344#define PACKAGE_NAME "$PACKAGE_NAME"
1345_ACEOF
1346
1347
1348cat >>confdefs.h <<_ACEOF
1349#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1350_ACEOF
1351
1352
1353cat >>confdefs.h <<_ACEOF
1354#define PACKAGE_VERSION "$PACKAGE_VERSION"
1355_ACEOF
1356
1357
1358cat >>confdefs.h <<_ACEOF
1359#define PACKAGE_STRING "$PACKAGE_STRING"
1360_ACEOF
1361
1362
1363cat >>confdefs.h <<_ACEOF
1364#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1365_ACEOF
1366
1367
1368# Let the site file select an alternate cache file if it wants to.
1369# Prefer explicitly selected file to automatically selected ones.
1370if test -z "$CONFIG_SITE"; then
1371 if test "x$prefix" != xNONE; then
1372 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1373 else
1374 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1375 fi
1376fi
1377for ac_site_file in $CONFIG_SITE; do
1378 if test -r "$ac_site_file"; then
1379 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1380echo "$as_me: loading site script $ac_site_file" >&6;}
1381 sed 's/^/| /' "$ac_site_file" >&5
1382 . "$ac_site_file"
1383 fi
1384done
1385
1386if test -r "$cache_file"; then
1387 # Some versions of bash will fail to source /dev/null (special
1388 # files actually), so we avoid doing that.
1389 if test -f "$cache_file"; then
1390 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1391echo "$as_me: loading cache $cache_file" >&6;}
1392 case $cache_file in
1393 [\\/]* | ?:[\\/]* ) . $cache_file;;
1394 *) . ./$cache_file;;
1395 esac
1396 fi
1397else
1398 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1399echo "$as_me: creating cache $cache_file" >&6;}
1400 >$cache_file
1401fi
1402
1403# Check that the precious variables saved in the cache have kept the same
1404# value.
1405ac_cache_corrupted=false
1406for ac_var in `(set) 2>&1 |
1407 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1408 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1409 eval ac_new_set=\$ac_env_${ac_var}_set
1410 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1411 eval ac_new_val="\$ac_env_${ac_var}_value"
1412 case $ac_old_set,$ac_new_set in
1413 set,)
1414 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1415echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1416 ac_cache_corrupted=: ;;
1417 ,set)
1418 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1419echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1420 ac_cache_corrupted=: ;;
1421 ,);;
1422 *)
1423 if test "x$ac_old_val" != "x$ac_new_val"; then
6194aaab
L
1424 # differences in whitespace do not lead to failure.
1425 ac_old_val_w=`echo x $ac_old_val`
1426 ac_new_val_w=`echo x $ac_new_val`
1427 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1428 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
42ecbf5e 1429echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
6194aaab
L
1430 ac_cache_corrupted=:
1431 else
1432 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1433echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1434 eval $ac_var=\$ac_old_val
1435 fi
1436 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1437echo "$as_me: former value: \`$ac_old_val'" >&2;}
1438 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1439echo "$as_me: current value: \`$ac_new_val'" >&2;}
42ecbf5e
DJ
1440 fi;;
1441 esac
1442 # Pass precious variables to config.status.
1443 if test "$ac_new_set" = set; then
1444 case $ac_new_val in
1445 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1446 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1447 *) ac_arg=$ac_var=$ac_new_val ;;
1448 esac
1449 case " $ac_configure_args " in
1450 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1451 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1452 esac
1453 fi
1454done
1455if $ac_cache_corrupted; then
7a283e07
RW
1456 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1457echo "$as_me: error: in \`$ac_pwd':" >&2;}
42ecbf5e
DJ
1458 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1459echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1460 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1461echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1462 { (exit 1); exit 1; }; }
1463fi
1464
1465ac_ext=c
1466ac_cpp='$CPP $CPPFLAGS'
1467ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1468ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1469ac_compiler_gnu=$ac_cv_c_compiler_gnu
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
7a283e07
RW
1487
1488
1489
42ecbf5e
DJ
1490
1491
1492
1493ac_aux_dir=
1494for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1495 if test -f $ac_dir/install-sh; then
1496 ac_aux_dir=$ac_dir
1497 ac_install_sh="$ac_aux_dir/install-sh -c"
1498 break
1499 elif test -f $ac_dir/install.sh; then
1500 ac_aux_dir=$ac_dir
1501 ac_install_sh="$ac_aux_dir/install.sh -c"
1502 break
1503 elif test -f $ac_dir/shtool; then
1504 ac_aux_dir=$ac_dir
1505 ac_install_sh="$ac_aux_dir/shtool install -c"
1506 break
1507 fi
1508done
1509if test -z "$ac_aux_dir"; then
1510 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1511echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1512 { (exit 1); exit 1; }; }
1513fi
1514ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1515ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1516ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1517
1518# Make sure we can run config.sub.
1519$ac_config_sub sun4 >/dev/null 2>&1 ||
1520 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1521echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1522 { (exit 1); exit 1; }; }
1523
1524echo "$as_me:$LINENO: checking build system type" >&5
1525echo $ECHO_N "checking build system type... $ECHO_C" >&6
1526if test "${ac_cv_build+set}" = set; then
1527 echo $ECHO_N "(cached) $ECHO_C" >&6
1528else
1529 ac_cv_build_alias=$build_alias
1530test -z "$ac_cv_build_alias" &&
1531 ac_cv_build_alias=`$ac_config_guess`
1532test -z "$ac_cv_build_alias" &&
1533 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1534echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1535 { (exit 1); exit 1; }; }
1536ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1537 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1538echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1539 { (exit 1); exit 1; }; }
1540
1541fi
1542echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1543echo "${ECHO_T}$ac_cv_build" >&6
1544build=$ac_cv_build
1545build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1546build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1547build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1548
1549
1550echo "$as_me:$LINENO: checking host system type" >&5
1551echo $ECHO_N "checking host system type... $ECHO_C" >&6
1552if test "${ac_cv_host+set}" = set; then
1553 echo $ECHO_N "(cached) $ECHO_C" >&6
1554else
1555 ac_cv_host_alias=$host_alias
1556test -z "$ac_cv_host_alias" &&
1557 ac_cv_host_alias=$ac_cv_build_alias
1558ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1559 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1560echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1561 { (exit 1); exit 1; }; }
1562
1563fi
1564echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1565echo "${ECHO_T}$ac_cv_host" >&6
1566host=$ac_cv_host
1567host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1568host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1569host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1570
1571
1572echo "$as_me:$LINENO: checking target system type" >&5
1573echo $ECHO_N "checking target system type... $ECHO_C" >&6
1574if test "${ac_cv_target+set}" = set; then
1575 echo $ECHO_N "(cached) $ECHO_C" >&6
1576else
1577 ac_cv_target_alias=$target_alias
1578test "x$ac_cv_target_alias" = "x" &&
1579 ac_cv_target_alias=$ac_cv_host_alias
1580ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1581 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1582echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1583 { (exit 1); exit 1; }; }
1584
1585fi
1586echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1587echo "${ECHO_T}$ac_cv_target" >&6
1588target=$ac_cv_target
1589target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1590target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1591target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1592
1593
1594# The aliases save the names the user supplied, while $host etc.
1595# will get canonicalized.
1596test -n "$target_alias" &&
1597 test "$program_prefix$program_suffix$program_transform_name" = \
1598 NONENONEs,x,x, &&
1599 program_prefix=${target_alias}-
1600ac_ext=c
1601ac_cpp='$CPP $CPPFLAGS'
1602ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1603ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1604ac_compiler_gnu=$ac_cv_c_compiler_gnu
1605if test -n "$ac_tool_prefix"; then
1606 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1607set dummy ${ac_tool_prefix}gcc; ac_word=$2
1608echo "$as_me:$LINENO: checking for $ac_word" >&5
1609echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1610if test "${ac_cv_prog_CC+set}" = set; then
1611 echo $ECHO_N "(cached) $ECHO_C" >&6
1612else
1613 if test -n "$CC"; then
1614 ac_cv_prog_CC="$CC" # Let the user override the test.
1615else
1616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1617for as_dir in $PATH
1618do
1619 IFS=$as_save_IFS
1620 test -z "$as_dir" && as_dir=.
1621 for ac_exec_ext in '' $ac_executable_extensions; do
1622 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1623 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1625 break 2
1626 fi
1627done
1628done
1629
1630fi
1631fi
1632CC=$ac_cv_prog_CC
1633if test -n "$CC"; then
1634 echo "$as_me:$LINENO: result: $CC" >&5
1635echo "${ECHO_T}$CC" >&6
1636else
1637 echo "$as_me:$LINENO: result: no" >&5
1638echo "${ECHO_T}no" >&6
1639fi
1640
1641fi
1642if test -z "$ac_cv_prog_CC"; then
1643 ac_ct_CC=$CC
1644 # Extract the first word of "gcc", so it can be a program name with args.
1645set dummy gcc; ac_word=$2
1646echo "$as_me:$LINENO: checking for $ac_word" >&5
1647echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1648if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1649 echo $ECHO_N "(cached) $ECHO_C" >&6
1650else
1651 if test -n "$ac_ct_CC"; then
1652 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1653else
1654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1655for as_dir in $PATH
1656do
1657 IFS=$as_save_IFS
1658 test -z "$as_dir" && as_dir=.
1659 for ac_exec_ext in '' $ac_executable_extensions; do
1660 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1661 ac_cv_prog_ac_ct_CC="gcc"
1662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1663 break 2
1664 fi
1665done
1666done
1667
1668fi
1669fi
1670ac_ct_CC=$ac_cv_prog_ac_ct_CC
1671if test -n "$ac_ct_CC"; then
1672 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1673echo "${ECHO_T}$ac_ct_CC" >&6
1674else
1675 echo "$as_me:$LINENO: result: no" >&5
1676echo "${ECHO_T}no" >&6
1677fi
1678
1679 CC=$ac_ct_CC
1680else
1681 CC="$ac_cv_prog_CC"
1682fi
1683
1684if test -z "$CC"; then
1685 if test -n "$ac_tool_prefix"; then
1686 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1687set dummy ${ac_tool_prefix}cc; ac_word=$2
1688echo "$as_me:$LINENO: checking for $ac_word" >&5
1689echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1690if test "${ac_cv_prog_CC+set}" = set; then
1691 echo $ECHO_N "(cached) $ECHO_C" >&6
1692else
1693 if test -n "$CC"; then
1694 ac_cv_prog_CC="$CC" # Let the user override the test.
1695else
1696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1697for as_dir in $PATH
1698do
1699 IFS=$as_save_IFS
1700 test -z "$as_dir" && as_dir=.
1701 for ac_exec_ext in '' $ac_executable_extensions; do
1702 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1703 ac_cv_prog_CC="${ac_tool_prefix}cc"
1704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1705 break 2
1706 fi
1707done
1708done
1709
1710fi
1711fi
1712CC=$ac_cv_prog_CC
1713if test -n "$CC"; then
1714 echo "$as_me:$LINENO: result: $CC" >&5
1715echo "${ECHO_T}$CC" >&6
1716else
1717 echo "$as_me:$LINENO: result: no" >&5
1718echo "${ECHO_T}no" >&6
1719fi
1720
1721fi
1722if test -z "$ac_cv_prog_CC"; then
1723 ac_ct_CC=$CC
1724 # Extract the first word of "cc", so it can be a program name with args.
1725set dummy cc; ac_word=$2
1726echo "$as_me:$LINENO: checking for $ac_word" >&5
1727echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1728if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1729 echo $ECHO_N "(cached) $ECHO_C" >&6
1730else
1731 if test -n "$ac_ct_CC"; then
1732 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1733else
1734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1735for as_dir in $PATH
1736do
1737 IFS=$as_save_IFS
1738 test -z "$as_dir" && as_dir=.
1739 for ac_exec_ext in '' $ac_executable_extensions; do
1740 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1741 ac_cv_prog_ac_ct_CC="cc"
1742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1743 break 2
1744 fi
1745done
1746done
1747
1748fi
1749fi
1750ac_ct_CC=$ac_cv_prog_ac_ct_CC
1751if test -n "$ac_ct_CC"; then
1752 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1753echo "${ECHO_T}$ac_ct_CC" >&6
1754else
1755 echo "$as_me:$LINENO: result: no" >&5
1756echo "${ECHO_T}no" >&6
1757fi
1758
1759 CC=$ac_ct_CC
1760else
1761 CC="$ac_cv_prog_CC"
1762fi
1763
1764fi
1765if test -z "$CC"; then
1766 # Extract the first word of "cc", so it can be a program name with args.
1767set dummy cc; ac_word=$2
1768echo "$as_me:$LINENO: checking for $ac_word" >&5
1769echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1770if test "${ac_cv_prog_CC+set}" = set; then
1771 echo $ECHO_N "(cached) $ECHO_C" >&6
1772else
1773 if test -n "$CC"; then
1774 ac_cv_prog_CC="$CC" # Let the user override the test.
1775else
1776 ac_prog_rejected=no
1777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1778for as_dir in $PATH
1779do
1780 IFS=$as_save_IFS
1781 test -z "$as_dir" && as_dir=.
1782 for ac_exec_ext in '' $ac_executable_extensions; do
1783 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1784 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1785 ac_prog_rejected=yes
1786 continue
1787 fi
1788 ac_cv_prog_CC="cc"
1789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1790 break 2
1791 fi
1792done
1793done
1794
1795if test $ac_prog_rejected = yes; then
1796 # We found a bogon in the path, so make sure we never use it.
1797 set dummy $ac_cv_prog_CC
1798 shift
1799 if test $# != 0; then
1800 # We chose a different compiler from the bogus one.
1801 # However, it has the same basename, so the bogon will be chosen
1802 # first if we set CC to just the basename; use the full file name.
1803 shift
1804 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1805 fi
1806fi
1807fi
1808fi
1809CC=$ac_cv_prog_CC
1810if test -n "$CC"; then
1811 echo "$as_me:$LINENO: result: $CC" >&5
1812echo "${ECHO_T}$CC" >&6
1813else
1814 echo "$as_me:$LINENO: result: no" >&5
1815echo "${ECHO_T}no" >&6
1816fi
1817
1818fi
1819if test -z "$CC"; then
1820 if test -n "$ac_tool_prefix"; then
1821 for ac_prog in cl
1822 do
1823 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1824set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1825echo "$as_me:$LINENO: checking for $ac_word" >&5
1826echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1827if test "${ac_cv_prog_CC+set}" = set; then
1828 echo $ECHO_N "(cached) $ECHO_C" >&6
1829else
1830 if test -n "$CC"; then
1831 ac_cv_prog_CC="$CC" # Let the user override the test.
1832else
1833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1834for as_dir in $PATH
1835do
1836 IFS=$as_save_IFS
1837 test -z "$as_dir" && as_dir=.
1838 for ac_exec_ext in '' $ac_executable_extensions; do
1839 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1840 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1842 break 2
1843 fi
1844done
1845done
1846
1847fi
1848fi
1849CC=$ac_cv_prog_CC
1850if test -n "$CC"; then
1851 echo "$as_me:$LINENO: result: $CC" >&5
1852echo "${ECHO_T}$CC" >&6
1853else
1854 echo "$as_me:$LINENO: result: no" >&5
1855echo "${ECHO_T}no" >&6
1856fi
1857
1858 test -n "$CC" && break
1859 done
1860fi
1861if test -z "$CC"; then
1862 ac_ct_CC=$CC
1863 for ac_prog in cl
1864do
1865 # Extract the first word of "$ac_prog", so it can be a program name with args.
1866set dummy $ac_prog; ac_word=$2
1867echo "$as_me:$LINENO: checking for $ac_word" >&5
1868echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1869if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1870 echo $ECHO_N "(cached) $ECHO_C" >&6
1871else
1872 if test -n "$ac_ct_CC"; then
1873 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1874else
1875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1876for as_dir in $PATH
1877do
1878 IFS=$as_save_IFS
1879 test -z "$as_dir" && as_dir=.
1880 for ac_exec_ext in '' $ac_executable_extensions; do
1881 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1882 ac_cv_prog_ac_ct_CC="$ac_prog"
1883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1884 break 2
1885 fi
1886done
1887done
1888
1889fi
1890fi
1891ac_ct_CC=$ac_cv_prog_ac_ct_CC
1892if test -n "$ac_ct_CC"; then
1893 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1894echo "${ECHO_T}$ac_ct_CC" >&6
1895else
1896 echo "$as_me:$LINENO: result: no" >&5
1897echo "${ECHO_T}no" >&6
1898fi
1899
1900 test -n "$ac_ct_CC" && break
1901done
1902
1903 CC=$ac_ct_CC
1904fi
1905
1906fi
1907
1908
7a283e07
RW
1909test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1910echo "$as_me: error: in \`$ac_pwd':" >&2;}
1911{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
42ecbf5e
DJ
1912See \`config.log' for more details." >&5
1913echo "$as_me: error: no acceptable C compiler found in \$PATH
1914See \`config.log' for more details." >&2;}
7a283e07 1915 { (exit 1); exit 1; }; }; }
42ecbf5e
DJ
1916
1917# Provide some information about the compiler.
1918echo "$as_me:$LINENO:" \
1919 "checking for C compiler version" >&5
1920ac_compiler=`set X $ac_compile; echo $2`
1921{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1922 (eval $ac_compiler --version </dev/null >&5) 2>&5
1923 ac_status=$?
1924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1925 (exit $ac_status); }
1926{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1927 (eval $ac_compiler -v </dev/null >&5) 2>&5
1928 ac_status=$?
1929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1930 (exit $ac_status); }
1931{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1932 (eval $ac_compiler -V </dev/null >&5) 2>&5
1933 ac_status=$?
1934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1935 (exit $ac_status); }
1936
1937cat >conftest.$ac_ext <<_ACEOF
1938/* confdefs.h. */
1939_ACEOF
1940cat confdefs.h >>conftest.$ac_ext
1941cat >>conftest.$ac_ext <<_ACEOF
1942/* end confdefs.h. */
1943
1944int
1945main ()
1946{
1947
1948 ;
1949 return 0;
1950}
1951_ACEOF
1952ac_clean_files_save=$ac_clean_files
1953ac_clean_files="$ac_clean_files a.out a.exe b.out"
1954# Try to create an executable without -o first, disregard a.out.
1955# It will help us diagnose broken compilers, and finding out an intuition
1956# of exeext.
1957echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1958echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1959ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1960if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1961 (eval $ac_link_default) 2>&5
1962 ac_status=$?
1963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1964 (exit $ac_status); }; then
1965 # Find the output, starting from the most likely. This scheme is
1966# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1967# resort.
1968
1969# Be careful to initialize this variable, since it used to be cached.
1970# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1971ac_cv_exeext=
1972# b.out is created by i960 compilers.
1973for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1974do
1975 test -f "$ac_file" || continue
1976 case $ac_file in
1977 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1978 ;;
1979 conftest.$ac_ext )
1980 # This is the source file.
1981 ;;
1982 [ab].out )
1983 # We found the default executable, but exeext='' is most
1984 # certainly right.
1985 break;;
1986 *.* )
1987 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1988 # FIXME: I believe we export ac_cv_exeext for Libtool,
1989 # but it would be cool to find out if it's true. Does anybody
1990 # maintain Libtool? --akim.
1991 export ac_cv_exeext
1992 break;;
1993 * )
1994 break;;
1995 esac
1996done
1997else
1998 echo "$as_me: failed program was:" >&5
1999sed 's/^/| /' conftest.$ac_ext >&5
2000
7a283e07
RW
2001{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2002echo "$as_me: error: in \`$ac_pwd':" >&2;}
42ecbf5e
DJ
2003{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2004See \`config.log' for more details." >&5
2005echo "$as_me: error: C compiler cannot create executables
2006See \`config.log' for more details." >&2;}
7a283e07 2007 { (exit 77); exit 77; }; }; }
42ecbf5e
DJ
2008fi
2009
2010ac_exeext=$ac_cv_exeext
2011echo "$as_me:$LINENO: result: $ac_file" >&5
2012echo "${ECHO_T}$ac_file" >&6
2013
2014# Check the compiler produces executables we can run. If not, either
2015# the compiler is broken, or we cross compile.
2016echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2017echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2018# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2019# If not cross compiling, check that we can run a simple program.
2020if test "$cross_compiling" != yes; then
2021 if { ac_try='./$ac_file'
2022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2023 (eval $ac_try) 2>&5
2024 ac_status=$?
2025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2026 (exit $ac_status); }; }; then
2027 cross_compiling=no
2028 else
2029 if test "$cross_compiling" = maybe; then
2030 cross_compiling=yes
2031 else
7a283e07
RW
2032 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2033echo "$as_me: error: in \`$ac_pwd':" >&2;}
2034{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
42ecbf5e
DJ
2035If you meant to cross compile, use \`--host'.
2036See \`config.log' for more details." >&5
2037echo "$as_me: error: cannot run C compiled programs.
2038If you meant to cross compile, use \`--host'.
2039See \`config.log' for more details." >&2;}
7a283e07 2040 { (exit 1); exit 1; }; }; }
42ecbf5e
DJ
2041 fi
2042 fi
2043fi
2044echo "$as_me:$LINENO: result: yes" >&5
2045echo "${ECHO_T}yes" >&6
2046
2047rm -f a.out a.exe conftest$ac_cv_exeext b.out
2048ac_clean_files=$ac_clean_files_save
2049# Check the compiler produces executables we can run. If not, either
2050# the compiler is broken, or we cross compile.
2051echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2052echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2053echo "$as_me:$LINENO: result: $cross_compiling" >&5
2054echo "${ECHO_T}$cross_compiling" >&6
2055
2056echo "$as_me:$LINENO: checking for suffix of executables" >&5
2057echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2058if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2059 (eval $ac_link) 2>&5
2060 ac_status=$?
2061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2062 (exit $ac_status); }; then
2063 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2064# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2065# work properly (i.e., refer to `conftest.exe'), while it won't with
2066# `rm'.
2067for ac_file in conftest.exe conftest conftest.*; do
2068 test -f "$ac_file" || continue
2069 case $ac_file in
2070 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2071 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2072 export ac_cv_exeext
2073 break;;
2074 * ) break;;
2075 esac
2076done
2077else
7a283e07
RW
2078 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2079echo "$as_me: error: in \`$ac_pwd':" >&2;}
2080{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
42ecbf5e
DJ
2081See \`config.log' for more details." >&5
2082echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2083See \`config.log' for more details." >&2;}
7a283e07 2084 { (exit 1); exit 1; }; }; }
42ecbf5e
DJ
2085fi
2086
2087rm -f conftest$ac_cv_exeext
2088echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2089echo "${ECHO_T}$ac_cv_exeext" >&6
2090
2091rm -f conftest.$ac_ext
2092EXEEXT=$ac_cv_exeext
2093ac_exeext=$EXEEXT
2094echo "$as_me:$LINENO: checking for suffix of object files" >&5
2095echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2096if test "${ac_cv_objext+set}" = set; then
2097 echo $ECHO_N "(cached) $ECHO_C" >&6
2098else
2099 cat >conftest.$ac_ext <<_ACEOF
2100/* confdefs.h. */
2101_ACEOF
2102cat confdefs.h >>conftest.$ac_ext
2103cat >>conftest.$ac_ext <<_ACEOF
2104/* end confdefs.h. */
2105
2106int
2107main ()
2108{
2109
2110 ;
2111 return 0;
2112}
2113_ACEOF
2114rm -f conftest.o conftest.obj
2115if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2116 (eval $ac_compile) 2>&5
2117 ac_status=$?
2118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2119 (exit $ac_status); }; then
2120 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2121 case $ac_file in
2122 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2123 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2124 break;;
2125 esac
2126done
2127else
2128 echo "$as_me: failed program was:" >&5
2129sed 's/^/| /' conftest.$ac_ext >&5
2130
7a283e07
RW
2131{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2132echo "$as_me: error: in \`$ac_pwd':" >&2;}
42ecbf5e
DJ
2133{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2134See \`config.log' for more details." >&5
2135echo "$as_me: error: cannot compute suffix of object files: cannot compile
2136See \`config.log' for more details." >&2;}
7a283e07 2137 { (exit 1); exit 1; }; }; }
42ecbf5e
DJ
2138fi
2139
2140rm -f conftest.$ac_cv_objext conftest.$ac_ext
2141fi
2142echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2143echo "${ECHO_T}$ac_cv_objext" >&6
2144OBJEXT=$ac_cv_objext
2145ac_objext=$OBJEXT
2146echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2147echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2148if test "${ac_cv_c_compiler_gnu+set}" = set; then
2149 echo $ECHO_N "(cached) $ECHO_C" >&6
2150else
2151 cat >conftest.$ac_ext <<_ACEOF
2152/* confdefs.h. */
2153_ACEOF
2154cat confdefs.h >>conftest.$ac_ext
2155cat >>conftest.$ac_ext <<_ACEOF
2156/* end confdefs.h. */
2157
2158int
2159main ()
2160{
2161#ifndef __GNUC__
2162 choke me
2163#endif
2164
2165 ;
2166 return 0;
2167}
2168_ACEOF
2169rm -f conftest.$ac_objext
2170if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2171 (eval $ac_compile) 2>conftest.er1
2172 ac_status=$?
2173 grep -v '^ *+' conftest.er1 >conftest.err
2174 rm -f conftest.er1
2175 cat conftest.err >&5
2176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177 (exit $ac_status); } &&
7357c5b6
AM
2178 { ac_try='test -z "$ac_c_werror_flag"
2179 || test ! -s conftest.err'
42ecbf5e
DJ
2180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2181 (eval $ac_try) 2>&5
2182 ac_status=$?
2183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184 (exit $ac_status); }; } &&
2185 { ac_try='test -s conftest.$ac_objext'
2186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2187 (eval $ac_try) 2>&5
2188 ac_status=$?
2189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190 (exit $ac_status); }; }; then
2191 ac_compiler_gnu=yes
2192else
2193 echo "$as_me: failed program was:" >&5
2194sed 's/^/| /' conftest.$ac_ext >&5
2195
2196ac_compiler_gnu=no
2197fi
2198rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2199ac_cv_c_compiler_gnu=$ac_compiler_gnu
2200
2201fi
2202echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2203echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2204GCC=`test $ac_compiler_gnu = yes && echo yes`
2205ac_test_CFLAGS=${CFLAGS+set}
2206ac_save_CFLAGS=$CFLAGS
2207CFLAGS="-g"
2208echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2209echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2210if test "${ac_cv_prog_cc_g+set}" = set; then
2211 echo $ECHO_N "(cached) $ECHO_C" >&6
2212else
2213 cat >conftest.$ac_ext <<_ACEOF
2214/* confdefs.h. */
2215_ACEOF
2216cat confdefs.h >>conftest.$ac_ext
2217cat >>conftest.$ac_ext <<_ACEOF
2218/* end confdefs.h. */
2219
2220int
2221main ()
2222{
2223
2224 ;
2225 return 0;
2226}
2227_ACEOF
2228rm -f conftest.$ac_objext
2229if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2230 (eval $ac_compile) 2>conftest.er1
2231 ac_status=$?
2232 grep -v '^ *+' conftest.er1 >conftest.err
2233 rm -f conftest.er1
2234 cat conftest.err >&5
2235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2236 (exit $ac_status); } &&
7357c5b6
AM
2237 { ac_try='test -z "$ac_c_werror_flag"
2238 || test ! -s conftest.err'
42ecbf5e
DJ
2239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2240 (eval $ac_try) 2>&5
2241 ac_status=$?
2242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243 (exit $ac_status); }; } &&
2244 { ac_try='test -s conftest.$ac_objext'
2245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2246 (eval $ac_try) 2>&5
2247 ac_status=$?
2248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2249 (exit $ac_status); }; }; then
2250 ac_cv_prog_cc_g=yes
2251else
2252 echo "$as_me: failed program was:" >&5
2253sed 's/^/| /' conftest.$ac_ext >&5
2254
2255ac_cv_prog_cc_g=no
2256fi
2257rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2258fi
2259echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2260echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2261if test "$ac_test_CFLAGS" = set; then
2262 CFLAGS=$ac_save_CFLAGS
2263elif test $ac_cv_prog_cc_g = yes; then
2264 if test "$GCC" = yes; then
2265 CFLAGS="-g -O2"
2266 else
2267 CFLAGS="-g"
2268 fi
2269else
2270 if test "$GCC" = yes; then
2271 CFLAGS="-O2"
2272 else
2273 CFLAGS=
2274 fi
2275fi
2276echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2277echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2278if test "${ac_cv_prog_cc_stdc+set}" = set; then
2279 echo $ECHO_N "(cached) $ECHO_C" >&6
2280else
2281 ac_cv_prog_cc_stdc=no
2282ac_save_CC=$CC
2283cat >conftest.$ac_ext <<_ACEOF
2284/* confdefs.h. */
2285_ACEOF
2286cat confdefs.h >>conftest.$ac_ext
2287cat >>conftest.$ac_ext <<_ACEOF
2288/* end confdefs.h. */
2289#include <stdarg.h>
2290#include <stdio.h>
2291#include <sys/types.h>
2292#include <sys/stat.h>
2293/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2294struct buf { int x; };
2295FILE * (*rcsopen) (struct buf *, struct stat *, int);
2296static char *e (p, i)
2297 char **p;
2298 int i;
2299{
2300 return p[i];
2301}
2302static char *f (char * (*g) (char **, int), char **p, ...)
2303{
2304 char *s;
2305 va_list v;
2306 va_start (v,p);
2307 s = g (p, va_arg (v,int));
2308 va_end (v);
2309 return s;
2310}
2311
2312/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2313 function prototypes and stuff, but not '\xHH' hex character constants.
2314 These don't provoke an error unfortunately, instead are silently treated
2315 as 'x'. The following induces an error, until -std1 is added to get
2316 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2317 array size at least. It's necessary to write '\x00'==0 to get something
2318 that's true only with -std1. */
2319int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2320
2321int test (int i, double x);
2322struct s1 {int (*f) (int a);};
2323struct s2 {int (*f) (double a);};
2324int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2325int argc;
2326char **argv;
2327int
2328main ()
2329{
2330return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2331 ;
2332 return 0;
2333}
2334_ACEOF
2335# Don't try gcc -ansi; that turns off useful extensions and
2336# breaks some systems' header files.
2337# AIX -qlanglvl=ansi
2338# Ultrix and OSF/1 -std1
2339# HP-UX 10.20 and later -Ae
2340# HP-UX older versions -Aa -D_HPUX_SOURCE
2341# SVR4 -Xc -D__EXTENSIONS__
2342for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2343do
2344 CC="$ac_save_CC $ac_arg"
2345 rm -f conftest.$ac_objext
2346if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2347 (eval $ac_compile) 2>conftest.er1
2348 ac_status=$?
2349 grep -v '^ *+' conftest.er1 >conftest.err
2350 rm -f conftest.er1
2351 cat conftest.err >&5
2352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2353 (exit $ac_status); } &&
7357c5b6
AM
2354 { ac_try='test -z "$ac_c_werror_flag"
2355 || test ! -s conftest.err'
42ecbf5e
DJ
2356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2357 (eval $ac_try) 2>&5
2358 ac_status=$?
2359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360 (exit $ac_status); }; } &&
2361 { ac_try='test -s conftest.$ac_objext'
2362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2363 (eval $ac_try) 2>&5
2364 ac_status=$?
2365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366 (exit $ac_status); }; }; then
2367 ac_cv_prog_cc_stdc=$ac_arg
2368break
2369else
2370 echo "$as_me: failed program was:" >&5
2371sed 's/^/| /' conftest.$ac_ext >&5
2372
2373fi
2374rm -f conftest.err conftest.$ac_objext
2375done
2376rm -f conftest.$ac_ext conftest.$ac_objext
2377CC=$ac_save_CC
2378
2379fi
2380
2381case "x$ac_cv_prog_cc_stdc" in
2382 x|xno)
2383 echo "$as_me:$LINENO: result: none needed" >&5
2384echo "${ECHO_T}none needed" >&6 ;;
2385 *)
2386 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2387echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2388 CC="$CC $ac_cv_prog_cc_stdc" ;;
2389esac
2390
2391# Some people use a C++ compiler to compile C. Since we use `exit',
2392# in C++ we need to declare it. In case someone uses the same compiler
2393# for both compiling C and C++ we need to have the C++ compiler decide
2394# the declaration of exit, since it's the most demanding environment.
2395cat >conftest.$ac_ext <<_ACEOF
2396#ifndef __cplusplus
2397 choke me
2398#endif
2399_ACEOF
2400rm -f conftest.$ac_objext
2401if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2402 (eval $ac_compile) 2>conftest.er1
2403 ac_status=$?
2404 grep -v '^ *+' conftest.er1 >conftest.err
2405 rm -f conftest.er1
2406 cat conftest.err >&5
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); } &&
7357c5b6
AM
2409 { ac_try='test -z "$ac_c_werror_flag"
2410 || test ! -s conftest.err'
42ecbf5e
DJ
2411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2412 (eval $ac_try) 2>&5
2413 ac_status=$?
2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415 (exit $ac_status); }; } &&
2416 { ac_try='test -s conftest.$ac_objext'
2417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2418 (eval $ac_try) 2>&5
2419 ac_status=$?
2420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421 (exit $ac_status); }; }; then
2422 for ac_declaration in \
2423 '' \
2424 'extern "C" void std::exit (int) throw (); using std::exit;' \
2425 'extern "C" void std::exit (int); using std::exit;' \
2426 'extern "C" void exit (int) throw ();' \
2427 'extern "C" void exit (int);' \
2428 'void exit (int);'
2429do
2430 cat >conftest.$ac_ext <<_ACEOF
2431/* confdefs.h. */
2432_ACEOF
2433cat confdefs.h >>conftest.$ac_ext
2434cat >>conftest.$ac_ext <<_ACEOF
2435/* end confdefs.h. */
2436$ac_declaration
2437#include <stdlib.h>
2438int
2439main ()
2440{
2441exit (42);
2442 ;
2443 return 0;
2444}
2445_ACEOF
2446rm -f conftest.$ac_objext
2447if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2448 (eval $ac_compile) 2>conftest.er1
2449 ac_status=$?
2450 grep -v '^ *+' conftest.er1 >conftest.err
2451 rm -f conftest.er1
2452 cat conftest.err >&5
2453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454 (exit $ac_status); } &&
7357c5b6
AM
2455 { ac_try='test -z "$ac_c_werror_flag"
2456 || test ! -s conftest.err'
42ecbf5e
DJ
2457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2458 (eval $ac_try) 2>&5
2459 ac_status=$?
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); }; } &&
2462 { ac_try='test -s conftest.$ac_objext'
2463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2464 (eval $ac_try) 2>&5
2465 ac_status=$?
2466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467 (exit $ac_status); }; }; then
2468 :
2469else
2470 echo "$as_me: failed program was:" >&5
2471sed 's/^/| /' conftest.$ac_ext >&5
2472
2473continue
2474fi
2475rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2476 cat >conftest.$ac_ext <<_ACEOF
2477/* confdefs.h. */
2478_ACEOF
2479cat confdefs.h >>conftest.$ac_ext
2480cat >>conftest.$ac_ext <<_ACEOF
2481/* end confdefs.h. */
2482$ac_declaration
2483int
2484main ()
2485{
2486exit (42);
2487 ;
2488 return 0;
2489}
2490_ACEOF
2491rm -f conftest.$ac_objext
2492if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2493 (eval $ac_compile) 2>conftest.er1
2494 ac_status=$?
2495 grep -v '^ *+' conftest.er1 >conftest.err
2496 rm -f conftest.er1
2497 cat conftest.err >&5
2498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499 (exit $ac_status); } &&
7357c5b6
AM
2500 { ac_try='test -z "$ac_c_werror_flag"
2501 || test ! -s conftest.err'
42ecbf5e
DJ
2502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2503 (eval $ac_try) 2>&5
2504 ac_status=$?
2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506 (exit $ac_status); }; } &&
2507 { ac_try='test -s conftest.$ac_objext'
2508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2509 (eval $ac_try) 2>&5
2510 ac_status=$?
2511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512 (exit $ac_status); }; }; then
2513 break
2514else
2515 echo "$as_me: failed program was:" >&5
2516sed 's/^/| /' conftest.$ac_ext >&5
2517
2518fi
2519rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2520done
2521rm -f conftest*
2522if test -n "$ac_declaration"; then
2523 echo '#ifdef __cplusplus' >>confdefs.h
2524 echo $ac_declaration >>confdefs.h
2525 echo '#endif' >>confdefs.h
2526fi
2527
2528else
2529 echo "$as_me: failed program was:" >&5
2530sed 's/^/| /' conftest.$ac_ext >&5
2531
2532fi
2533rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2534ac_ext=c
2535ac_cpp='$CPP $CPPFLAGS'
2536ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2537ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2538ac_compiler_gnu=$ac_cv_c_compiler_gnu
2539
2540
2541echo "$as_me:$LINENO: checking for library containing strerror" >&5
2542echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2543if test "${ac_cv_search_strerror+set}" = set; then
2544 echo $ECHO_N "(cached) $ECHO_C" >&6
2545else
2546 ac_func_search_save_LIBS=$LIBS
2547ac_cv_search_strerror=no
2548cat >conftest.$ac_ext <<_ACEOF
2549/* confdefs.h. */
2550_ACEOF
2551cat confdefs.h >>conftest.$ac_ext
2552cat >>conftest.$ac_ext <<_ACEOF
2553/* end confdefs.h. */
2554
2555/* Override any gcc2 internal prototype to avoid an error. */
2556#ifdef __cplusplus
2557extern "C"
2558#endif
2559/* We use char because int might match the return type of a gcc2
2560 builtin and then its argument prototype would still apply. */
2561char strerror ();
2562int
2563main ()
2564{
2565strerror ();
2566 ;
2567 return 0;
2568}
2569_ACEOF
2570rm -f conftest.$ac_objext conftest$ac_exeext
2571if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2572 (eval $ac_link) 2>conftest.er1
2573 ac_status=$?
2574 grep -v '^ *+' conftest.er1 >conftest.err
2575 rm -f conftest.er1
2576 cat conftest.err >&5
2577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578 (exit $ac_status); } &&
7357c5b6
AM
2579 { ac_try='test -z "$ac_c_werror_flag"
2580 || test ! -s conftest.err'
42ecbf5e
DJ
2581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2582 (eval $ac_try) 2>&5
2583 ac_status=$?
2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585 (exit $ac_status); }; } &&
2586 { ac_try='test -s conftest$ac_exeext'
2587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2588 (eval $ac_try) 2>&5
2589 ac_status=$?
2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591 (exit $ac_status); }; }; then
2592 ac_cv_search_strerror="none required"
2593else
2594 echo "$as_me: failed program was:" >&5
2595sed 's/^/| /' conftest.$ac_ext >&5
2596
2597fi
2598rm -f conftest.err conftest.$ac_objext \
2599 conftest$ac_exeext conftest.$ac_ext
2600if test "$ac_cv_search_strerror" = no; then
2601 for ac_lib in cposix; do
2602 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2603 cat >conftest.$ac_ext <<_ACEOF
2604/* confdefs.h. */
2605_ACEOF
2606cat confdefs.h >>conftest.$ac_ext
2607cat >>conftest.$ac_ext <<_ACEOF
2608/* end confdefs.h. */
2609
2610/* Override any gcc2 internal prototype to avoid an error. */
2611#ifdef __cplusplus
2612extern "C"
2613#endif
2614/* We use char because int might match the return type of a gcc2
2615 builtin and then its argument prototype would still apply. */
2616char strerror ();
2617int
2618main ()
2619{
2620strerror ();
2621 ;
2622 return 0;
2623}
2624_ACEOF
2625rm -f conftest.$ac_objext conftest$ac_exeext
2626if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2627 (eval $ac_link) 2>conftest.er1
2628 ac_status=$?
2629 grep -v '^ *+' conftest.er1 >conftest.err
2630 rm -f conftest.er1
2631 cat conftest.err >&5
2632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633 (exit $ac_status); } &&
7357c5b6
AM
2634 { ac_try='test -z "$ac_c_werror_flag"
2635 || test ! -s conftest.err'
42ecbf5e
DJ
2636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2637 (eval $ac_try) 2>&5
2638 ac_status=$?
2639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640 (exit $ac_status); }; } &&
2641 { ac_try='test -s conftest$ac_exeext'
2642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2643 (eval $ac_try) 2>&5
2644 ac_status=$?
2645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646 (exit $ac_status); }; }; then
2647 ac_cv_search_strerror="-l$ac_lib"
2648break
2649else
2650 echo "$as_me: failed program was:" >&5
2651sed 's/^/| /' conftest.$ac_ext >&5
2652
2653fi
2654rm -f conftest.err conftest.$ac_objext \
2655 conftest$ac_exeext conftest.$ac_ext
2656 done
2657fi
2658LIBS=$ac_func_search_save_LIBS
2659fi
2660echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2661echo "${ECHO_T}$ac_cv_search_strerror" >&6
2662if test "$ac_cv_search_strerror" != no; then
2663 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2664
2665fi
e5a52504
MM
2666
2667
2668BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
42ecbf5e 2669am__api_version="1.9"
e5a52504
MM
2670# Find a good install program. We prefer a C program (faster),
2671# so one script is as good as another. But avoid the broken or
2672# incompatible versions:
2673# SysV /etc/install, /usr/sbin/install
2674# SunOS /usr/etc/install
2675# IRIX /sbin/install
2676# AIX /bin/install
42ecbf5e 2677# AmigaOS /C/install, which installs bootblocks on floppy discs
e5a52504
MM
2678# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2679# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2680# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
42ecbf5e 2681# OS/2's system install, which has a completely different semantic
e5a52504 2682# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 2683# Reject install programs that cannot install multiple files.
42ecbf5e
DJ
2684echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2685echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
e5a52504 2686if test -z "$INSTALL"; then
42ecbf5e
DJ
2687if test "${ac_cv_path_install+set}" = set; then
2688 echo $ECHO_N "(cached) $ECHO_C" >&6
e5a52504 2689else
42ecbf5e
DJ
2690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691for as_dir in $PATH
2692do
2693 IFS=$as_save_IFS
2694 test -z "$as_dir" && as_dir=.
2695 # Account for people who put trailing slashes in PATH elements.
2696case $as_dir/ in
2697 ./ | .// | /cC/* | \
2698 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2699 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2700 /usr/ucb/* ) ;;
2701 *)
2702 # OSF1 and SCO ODT 3.0 have their own names for install.
2703 # Don't use installbsd from OSF since it installs stuff as root
2704 # by default.
2705 for ac_prog in ginstall scoinst install; do
2706 for ac_exec_ext in '' $ac_executable_extensions; do
2707 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
252b5132 2708 if test $ac_prog = install &&
42ecbf5e 2709 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
2710 # AIX install. It has an incompatible calling convention.
2711 :
42ecbf5e
DJ
2712 elif test $ac_prog = install &&
2713 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2714 # program-specific install script used by HP pwplus--don't use.
2715 :
252b5132 2716 else
58c85be7
RW
2717 rm -rf conftest.one conftest.two conftest.dir
2718 echo one > conftest.one
2719 echo two > conftest.two
2720 mkdir conftest.dir
2721 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2722 test -s conftest.one && test -s conftest.two &&
2723 test -s conftest.dir/conftest.one &&
2724 test -s conftest.dir/conftest.two
2725 then
2726 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2727 break 3
2728 fi
252b5132
RH
2729 fi
2730 fi
2731 done
42ecbf5e
DJ
2732 done
2733 ;;
2734esac
2735done
2736
58c85be7 2737rm -rf conftest.one conftest.two conftest.dir
252b5132
RH
2738
2739fi
2740 if test "${ac_cv_path_install+set}" = set; then
42ecbf5e 2741 INSTALL=$ac_cv_path_install
252b5132 2742 else
58c85be7
RW
2743 # As a last resort, use the slow shell script. Don't cache a
2744 # value for INSTALL within a source directory, because that will
252b5132 2745 # break other packages using the cache if that directory is
58c85be7 2746 # removed, or if the value is a relative name.
42ecbf5e 2747 INSTALL=$ac_install_sh
252b5132
RH
2748 fi
2749fi
42ecbf5e
DJ
2750echo "$as_me:$LINENO: result: $INSTALL" >&5
2751echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
2752
2753# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2754# It thinks the first close brace ends the variable substitution.
2755test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2756
42ecbf5e 2757test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
2758
2759test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2760
42ecbf5e
DJ
2761echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2762echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
252b5132
RH
2763# Just in case
2764sleep 1
42ecbf5e 2765echo timestamp > conftest.file
252b5132
RH
2766# Do `set' in a subshell so we don't clobber the current shell's
2767# arguments. Must try -L first in case configure is actually a
2768# symlink; some systems play weird games with the mod time of symlinks
2769# (eg FreeBSD returns the mod time of the symlink's containing
2770# directory).
2771if (
42ecbf5e 2772 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
252b5132
RH
2773 if test "$*" = "X"; then
2774 # -L didn't work.
42ecbf5e 2775 set X `ls -t $srcdir/configure conftest.file`
252b5132 2776 fi
42ecbf5e
DJ
2777 rm -f conftest.file
2778 if test "$*" != "X $srcdir/configure conftest.file" \
2779 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
2780
2781 # If neither matched, then we have a broken ls. This can happen
2782 # if, for instance, CONFIG_SHELL is bash and it inherits a
2783 # broken ls alias from the environment. This has actually
2784 # happened. Such a system could not be considered "sane".
42ecbf5e
DJ
2785 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2786alias in your environment" >&5
2787echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2788alias in your environment" >&2;}
2789 { (exit 1); exit 1; }; }
252b5132
RH
2790 fi
2791
42ecbf5e 2792 test "$2" = conftest.file
252b5132
RH
2793 )
2794then
2795 # Ok.
2796 :
2797else
42ecbf5e
DJ
2798 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2799Check your system clock" >&5
2800echo "$as_me: error: newly created file is older than distributed files!
2801Check your system clock" >&2;}
2802 { (exit 1); exit 1; }; }
252b5132 2803fi
42ecbf5e
DJ
2804echo "$as_me:$LINENO: result: yes" >&5
2805echo "${ECHO_T}yes" >&6
252b5132 2806test "$program_prefix" != NONE &&
42ecbf5e 2807 program_transform_name="s,^,$program_prefix,;$program_transform_name"
252b5132
RH
2808# Use a double $ so make ignores it.
2809test "$program_suffix" != NONE &&
42ecbf5e
DJ
2810 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2811# Double any \ or $. echo might interpret backslashes.
2812# By default was `s,x,x', remove it if useless.
2813cat <<\_ACEOF >conftest.sed
2814s/[\\$]/&&/g;s/;s,x,x,$//
2815_ACEOF
2816program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2817rm conftest.sed
2818
2819# expand $ac_aux_dir to an absolute path
2820am_aux_dir=`cd $ac_aux_dir && pwd`
2821
2822test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2823# Use eval to expand $SHELL
2824if eval "$MISSING --run true"; then
2825 am_missing_run="$MISSING --run "
2826else
2827 am_missing_run=
2828 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2829echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2830fi
2831
2832if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2833 # We used to keeping the `.' as first argument, in order to
2834 # allow $(mkdir_p) to be used without argument. As in
2835 # $(mkdir_p) $(somedir)
2836 # where $(somedir) is conditionally defined. However this is wrong
2837 # for two reasons:
2838 # 1. if the package is installed by a user who cannot write `.'
2839 # make install will fail,
2840 # 2. the above comment should most certainly read
2841 # $(mkdir_p) $(DESTDIR)$(somedir)
2842 # so it does not work when $(somedir) is undefined and
2843 # $(DESTDIR) is not.
2844 # To support the latter case, we have to write
2845 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2846 # so the `.' trick is pointless.
2847 mkdir_p='mkdir -p --'
2848else
2849 # On NextStep and OpenStep, the `mkdir' command does not
2850 # recognize any option. It will interpret all options as
2851 # directories to create, and then abort because `.' already
2852 # exists.
2853 for d in ./-p ./--version;
2854 do
2855 test -d $d && rmdir $d
2856 done
2857 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2858 if test -f "$ac_aux_dir/mkinstalldirs"; then
2859 mkdir_p='$(mkinstalldirs)'
2860 else
2861 mkdir_p='$(install_sh) -d'
2862 fi
2863fi
2864
2865for ac_prog in gawk mawk nawk awk
2866do
2867 # Extract the first word of "$ac_prog", so it can be a program name with args.
2868set dummy $ac_prog; ac_word=$2
2869echo "$as_me:$LINENO: checking for $ac_word" >&5
2870echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2871if test "${ac_cv_prog_AWK+set}" = set; then
2872 echo $ECHO_N "(cached) $ECHO_C" >&6
2873else
2874 if test -n "$AWK"; then
2875 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2876else
2877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2878for as_dir in $PATH
2879do
2880 IFS=$as_save_IFS
2881 test -z "$as_dir" && as_dir=.
2882 for ac_exec_ext in '' $ac_executable_extensions; do
2883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2884 ac_cv_prog_AWK="$ac_prog"
2885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2886 break 2
2887 fi
2888done
2889done
2890
2891fi
2892fi
2893AWK=$ac_cv_prog_AWK
2894if test -n "$AWK"; then
2895 echo "$as_me:$LINENO: result: $AWK" >&5
2896echo "${ECHO_T}$AWK" >&6
2897else
2898 echo "$as_me:$LINENO: result: no" >&5
2899echo "${ECHO_T}no" >&6
2900fi
252b5132 2901
42ecbf5e
DJ
2902 test -n "$AWK" && break
2903done
252b5132 2904
42ecbf5e
DJ
2905echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2906echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2907set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2908if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2909 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 2910else
42ecbf5e 2911 cat >conftest.make <<\_ACEOF
252b5132 2912all:
42ecbf5e
DJ
2913 @echo 'ac_maketemp="$(MAKE)"'
2914_ACEOF
252b5132 2915# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
42ecbf5e 2916eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
252b5132
RH
2917if test -n "$ac_maketemp"; then
2918 eval ac_cv_prog_make_${ac_make}_set=yes
2919else
2920 eval ac_cv_prog_make_${ac_make}_set=no
2921fi
42ecbf5e 2922rm -f conftest.make
252b5132
RH
2923fi
2924if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
42ecbf5e
DJ
2925 echo "$as_me:$LINENO: result: yes" >&5
2926echo "${ECHO_T}yes" >&6
252b5132
RH
2927 SET_MAKE=
2928else
42ecbf5e
DJ
2929 echo "$as_me:$LINENO: result: no" >&5
2930echo "${ECHO_T}no" >&6
252b5132
RH
2931 SET_MAKE="MAKE=${MAKE-make}"
2932fi
2933
42ecbf5e
DJ
2934rm -rf .tst 2>/dev/null
2935mkdir .tst 2>/dev/null
2936if test -d .tst; then
2937 am__leading_dot=.
2938else
2939 am__leading_dot=_
2940fi
2941rmdir .tst 2>/dev/null
2942
2943DEPDIR="${am__leading_dot}deps"
2944
2945 ac_config_commands="$ac_config_commands depfiles"
2946
2947
2948am_make=${MAKE-make}
2949cat > confinc << 'END'
2950am__doit:
2951 @echo done
2952.PHONY: am__doit
2953END
2954# If we don't find an include directive, just comment out the code.
2955echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2956echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2957am__include="#"
2958am__quote=
2959_am_result=none
2960# First try GNU make style include.
2961echo "include confinc" > confmf
2962# We grep out `Entering directory' and `Leaving directory'
2963# messages which can occur if `w' ends up in MAKEFLAGS.
2964# In particular we don't look at `^make:' because GNU make might
2965# be invoked under some other name (usually "gmake"), in which
2966# case it prints its new name instead of `make'.
2967if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2968 am__include=include
2969 am__quote=
2970 _am_result=GNU
2971fi
2972# Now try BSD make style include.
2973if test "$am__include" = "#"; then
2974 echo '.include "confinc"' > confmf
2975 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2976 am__include=.include
2977 am__quote="\""
2978 _am_result=BSD
2979 fi
2980fi
2981
2982
2983echo "$as_me:$LINENO: result: $_am_result" >&5
2984echo "${ECHO_T}$_am_result" >&6
2985rm -f confinc confmf
2986
2987# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2988if test "${enable_dependency_tracking+set}" = set; then
2989 enableval="$enable_dependency_tracking"
2990
2991fi;
2992if test "x$enable_dependency_tracking" != xno; then
2993 am_depcomp="$ac_aux_dir/depcomp"
2994 AMDEPBACKSLASH='\'
2995fi
2996
2997
2998if test "x$enable_dependency_tracking" != xno; then
2999 AMDEP_TRUE=
3000 AMDEP_FALSE='#'
3001else
3002 AMDEP_TRUE='#'
3003 AMDEP_FALSE=
3004fi
3005
e5a52504
MM
3006
3007
42ecbf5e
DJ
3008# test to see if srcdir already configured
3009if test "`cd $srcdir && pwd`" != "`pwd`" &&
3010 test -f $srcdir/config.status; then
3011 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3012echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3013 { (exit 1); exit 1; }; }
3014fi
252b5132 3015
42ecbf5e
DJ
3016# test whether we have cygpath
3017if test -z "$CYGPATH_W"; then
3018 if (cygpath --version) >/dev/null 2>/dev/null; then
3019 CYGPATH_W='cygpath -w'
3020 else
3021 CYGPATH_W=echo
3022 fi
252b5132 3023fi
42ecbf5e
DJ
3024
3025
3026# Define the identity of the package.
3027 PACKAGE=ld
3028 VERSION=${BFD_VERSION}
3029
3030
3031cat >>confdefs.h <<_ACEOF
e5a52504 3032#define PACKAGE "$PACKAGE"
42ecbf5e
DJ
3033_ACEOF
3034
252b5132 3035
42ecbf5e 3036cat >>confdefs.h <<_ACEOF
e5a52504 3037#define VERSION "$VERSION"
42ecbf5e
DJ
3038_ACEOF
3039
3040# Some tools Automake needs.
3041
3042ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3043
3044
3045AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3046
3047
3048AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3049
3050
3051AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3052
e5a52504 3053
42ecbf5e 3054MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
e5a52504 3055
42ecbf5e 3056install_sh=${install_sh-"$am_aux_dir/install-sh"}
e5a52504 3057
42ecbf5e
DJ
3058# Installed binaries are usually stripped using `strip' when the user
3059# run `make install-strip'. However `strip' might not be the right
3060# tool to use in cross-compilation environments, therefore Automake
3061# will honor the `STRIP' environment variable to overrule this program.
3062if test "$cross_compiling" != no; then
3063 if test -n "$ac_tool_prefix"; then
3064 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3065set dummy ${ac_tool_prefix}strip; ac_word=$2
3066echo "$as_me:$LINENO: checking for $ac_word" >&5
3067echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3068if test "${ac_cv_prog_STRIP+set}" = set; then
3069 echo $ECHO_N "(cached) $ECHO_C" >&6
3070else
3071 if test -n "$STRIP"; then
3072 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3073else
3074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3075for as_dir in $PATH
3076do
3077 IFS=$as_save_IFS
3078 test -z "$as_dir" && as_dir=.
3079 for ac_exec_ext in '' $ac_executable_extensions; do
3080 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3081 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3083 break 2
3084 fi
3085done
3086done
3087
3088fi
3089fi
3090STRIP=$ac_cv_prog_STRIP
3091if test -n "$STRIP"; then
3092 echo "$as_me:$LINENO: result: $STRIP" >&5
3093echo "${ECHO_T}$STRIP" >&6
2469cfa2 3094else
42ecbf5e
DJ
3095 echo "$as_me:$LINENO: result: no" >&5
3096echo "${ECHO_T}no" >&6
3097fi
3098
e5a52504 3099fi
42ecbf5e
DJ
3100if test -z "$ac_cv_prog_STRIP"; then
3101 ac_ct_STRIP=$STRIP
3102 # Extract the first word of "strip", so it can be a program name with args.
3103set dummy strip; ac_word=$2
3104echo "$as_me:$LINENO: checking for $ac_word" >&5
3105echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3106if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3107 echo $ECHO_N "(cached) $ECHO_C" >&6
3108else
3109 if test -n "$ac_ct_STRIP"; then
3110 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3111else
3112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3113for as_dir in $PATH
3114do
3115 IFS=$as_save_IFS
3116 test -z "$as_dir" && as_dir=.
3117 for ac_exec_ext in '' $ac_executable_extensions; do
3118 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3119 ac_cv_prog_ac_ct_STRIP="strip"
3120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3121 break 2
3122 fi
3123done
3124done
e5a52504 3125
42ecbf5e
DJ
3126 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3127fi
3128fi
3129ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3130if test -n "$ac_ct_STRIP"; then
3131 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3132echo "${ECHO_T}$ac_ct_STRIP" >&6
2469cfa2 3133else
42ecbf5e
DJ
3134 echo "$as_me:$LINENO: result: no" >&5
3135echo "${ECHO_T}no" >&6
2469cfa2
NC
3136fi
3137
42ecbf5e 3138 STRIP=$ac_ct_STRIP
2469cfa2 3139else
42ecbf5e
DJ
3140 STRIP="$ac_cv_prog_STRIP"
3141fi
3142
2469cfa2 3143fi
42ecbf5e
DJ
3144INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3145
3146# We need awk for the "check" target. The system "awk" is bad on
3147# some platforms.
3148# Always define AMTAR for backward compatibility.
3149
3150AMTAR=${AMTAR-"${am_missing_run}tar"}
3151
3152am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3153
3154
3155
3156
3157depcc="$CC" am_compiler_list=
3158
3159echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3160echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3161if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3162 echo $ECHO_N "(cached) $ECHO_C" >&6
3163else
3164 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3165 # We make a subdir and do the tests there. Otherwise we can end up
3166 # making bogus files that we don't know about and never remove. For
3167 # instance it was reported that on HP-UX the gcc test will end up
3168 # making a dummy file named `D' -- because `-MD' means `put the output
3169 # in D'.
3170 mkdir conftest.dir
3171 # Copy depcomp to subdir because otherwise we won't find it if we're
3172 # using a relative directory.
3173 cp "$am_depcomp" conftest.dir
3174 cd conftest.dir
3175 # We will build objects and dependencies in a subdirectory because
3176 # it helps to detect inapplicable dependency modes. For instance
3177 # both Tru64's cc and ICC support -MD to output dependencies as a
3178 # side effect of compilation, but ICC will put the dependencies in
3179 # the current directory while Tru64 will put them in the object
3180 # directory.
3181 mkdir sub
3182
3183 am_cv_CC_dependencies_compiler_type=none
3184 if test "$am_compiler_list" = ""; then
3185 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3186 fi
3187 for depmode in $am_compiler_list; do
3188 # Setup a source with many dependencies, because some compilers
3189 # like to wrap large dependency lists on column 80 (with \), and
3190 # we should not choose a depcomp mode which is confused by this.
3191 #
3192 # We need to recreate these files for each test, as the compiler may
3193 # overwrite some of them when testing with obscure command lines.
3194 # This happens at least with the AIX C compiler.
3195 : > sub/conftest.c
3196 for i in 1 2 3 4 5 6; do
3197 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3198 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3199 # Solaris 8's {/usr,}/bin/sh.
3200 touch sub/conftst$i.h
3201 done
3202 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3203
3204 case $depmode in
3205 nosideeffect)
3206 # after this tag, mechanisms are not by side-effect, so they'll
3207 # only be used when explicitly requested
3208 if test "x$enable_dependency_tracking" = xyes; then
3209 continue
3210 else
3211 break
3212 fi
3213 ;;
3214 none) break ;;
3215 esac
3216 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3217 # mode. It turns out that the SunPro C++ compiler does not properly
3218 # handle `-M -o', and we need to detect this.
3219 if depmode=$depmode \
3220 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3221 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3222 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3223 >/dev/null 2>conftest.err &&
3224 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3225 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3226 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3227 # icc doesn't choke on unknown options, it will just issue warnings
3228 # or remarks (even with -Werror). So we grep stderr for any message
3229 # that says an option was ignored or not supported.
3230 # When given -MP, icc 7.0 and 7.1 complain thusly:
3231 # icc: Command line warning: ignoring option '-M'; no argument required
3232 # The diagnosis changed in icc 8.0:
3233 # icc: Command line remark: option '-MP' not supported
3234 if (grep 'ignoring option' conftest.err ||
3235 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3236 am_cv_CC_dependencies_compiler_type=$depmode
3237 break
3238 fi
3239 fi
3240 done
2469cfa2 3241
42ecbf5e
DJ
3242 cd ..
3243 rm -rf conftest.dir
2469cfa2 3244else
42ecbf5e
DJ
3245 am_cv_CC_dependencies_compiler_type=none
3246fi
3247
2469cfa2 3248fi
42ecbf5e
DJ
3249echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3250echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3251CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3252
2469cfa2 3253
42ecbf5e
DJ
3254
3255if
3256 test "x$enable_dependency_tracking" != xno \
3257 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3258 am__fastdepCC_TRUE=
3259 am__fastdepCC_FALSE='#'
2469cfa2 3260else
42ecbf5e
DJ
3261 am__fastdepCC_TRUE='#'
3262 am__fastdepCC_FALSE=
2469cfa2 3263fi
2469cfa2 3264
2469cfa2 3265
e5a52504 3266
42ecbf5e 3267
d7040cdb 3268
ce2cded5
L
3269# Check whether --with-lib-path or --without-lib-path was given.
3270if test "${with_lib_path+set}" = set; then
3271 withval="$with_lib_path"
3272 LIB_PATH=$withval
3273fi;
3274# Check whether --enable-targets or --disable-targets was given.
3275if test "${enable_targets+set}" = set; then
3276 enableval="$enable_targets"
3277 case "${enableval}" in
3278 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
3279echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
3280 { (exit 1); exit 1; }; }
3281 ;;
3282 no) enable_targets= ;;
3283 *) enable_targets=$enableval ;;
3284esac
3285fi; # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
3286if test "${enable_64_bit_bfd+set}" = set; then
3287 enableval="$enable_64_bit_bfd"
3288 case "${enableval}" in
3289 yes) want64=true ;;
3290 no) want64=false ;;
3291 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
3292echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
3293 { (exit 1); exit 1; }; } ;;
3294esac
2469cfa2 3295else
ce2cded5 3296 want64=false
42ecbf5e 3297fi;
d7040cdb 3298
ce2cded5
L
3299# Check whether --with-sysroot or --without-sysroot was given.
3300if test "${with_sysroot+set}" = set; then
3301 withval="$with_sysroot"
d7040cdb 3302
ce2cded5
L
3303 case ${with_sysroot} in
3304 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
3305 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3306 esac
d7040cdb 3307
ce2cded5
L
3308 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3309 use_sysroot=yes
d7040cdb 3310
ce2cded5
L
3311 if test "x$prefix" = xNONE; then
3312 test_prefix=/usr/local
3313 else
3314 test_prefix=$prefix
3315 fi
3316 if test "x$exec_prefix" = xNONE; then
3317 test_exec_prefix=$test_prefix
3318 else
3319 test_exec_prefix=$exec_prefix
3320 fi
3321 case ${TARGET_SYSTEM_ROOT} in
3322 "${test_prefix}"|"${test_prefix}/"*|\
3323 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3324 '${prefix}'|'${prefix}/'*|\
3325 '${exec_prefix}'|'${exec_prefix}/'*)
3326 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3327 TARGET_SYSTEM_ROOT_DEFINE="$t"
3328 ;;
3329 esac
d7040cdb 3330
e5a52504 3331else
d7040cdb 3332
ce2cded5
L
3333 use_sysroot=no
3334 TARGET_SYSTEM_ROOT=
3335 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
d7040cdb 3336
ce2cded5 3337fi;
d7040cdb
SE
3338
3339
3340
3341
7fb9f789
NC
3342# Check whether --enable-got or --disable-got was given.
3343if test "${enable_got+set}" = set; then
3344 enableval="$enable_got"
3345 case "${enableval}" in
3346 target | single | negative | multigot) got_handling=$enableval ;;
3347 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-got option" >&5
3348echo "$as_me: error: bad value ${enableval} for --enable-got option" >&2;}
3349 { (exit 1); exit 1; }; } ;;
3350esac
3351else
3352 got_handling=target
3353fi;
3354
3355case "${got_handling}" in
3356 target)
3357
3358cat >>confdefs.h <<\_ACEOF
3359#define GOT_HANDLING_DEFAULT GOT_HANDLING_TARGET_DEFAULT
3360_ACEOF
3361 ;;
3362 single)
3363
3364cat >>confdefs.h <<\_ACEOF
3365#define GOT_HANDLING_DEFAULT GOT_HANDLING_SINGLE
3366_ACEOF
3367 ;;
3368 negative)
3369
3370cat >>confdefs.h <<\_ACEOF
3371#define GOT_HANDLING_DEFAULT GOT_HANDLING_NEGATIVE
3372_ACEOF
3373 ;;
3374 multigot)
3375
3376cat >>confdefs.h <<\_ACEOF
3377#define GOT_HANDLING_DEFAULT GOT_HANDLING_MULTIGOT
3378_ACEOF
3379 ;;
3380 *) { { echo "$as_me:$LINENO: error: bad value ${got_handling} for --enable-got option" >&5
3381echo "$as_me: error: bad value ${got_handling} for --enable-got option" >&2;}
3382 { (exit 1); exit 1; }; } ;;
3383esac
3384
d7040cdb 3385
ce2cded5 3386GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
d7040cdb 3387
ce2cded5
L
3388# Check whether --enable-werror or --disable-werror was given.
3389if test "${enable_werror+set}" = set; then
3390 enableval="$enable_werror"
3391 case "${enableval}" in
3392 yes | y) ERROR_ON_WARNING="yes" ;;
3393 no | n) ERROR_ON_WARNING="no" ;;
3394 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
3395echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
3396 { (exit 1); exit 1; }; } ;;
3397 esac
d7040cdb
SE
3398fi;
3399
bb8541b9
L
3400# Enable -Wno-format by default when using gcc on mingw
3401case "${host}" in
3402 *-*-mingw32*)
3403 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
3404 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
3405 fi
3406 ;;
3407 *) ;;
3408esac
3409
ce2cded5
L
3410# Enable -Werror by default when using gcc
3411if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
3412 ERROR_ON_WARNING=yes
3413fi
d7040cdb 3414
ce2cded5
L
3415NO_WERROR=
3416if test "${ERROR_ON_WARNING}" = yes ; then
3417 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
3418 NO_WERROR="-Wno-error"
3419fi
d7040cdb 3420
ce2cded5
L
3421if test "${GCC}" = yes ; then
3422 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
3423fi
d7040cdb 3424
ce2cded5
L
3425# Check whether --enable-build-warnings or --disable-build-warnings was given.
3426if test "${enable_build_warnings+set}" = set; then
3427 enableval="$enable_build_warnings"
3428 case "${enableval}" in
3429 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
3430 no) if test "${GCC}" = yes ; then
3431 WARN_CFLAGS="-w"
3432 fi;;
3433 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
3434 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
3435 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
3436 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
3437 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3438esac
3439fi;
d7040cdb 3440
ce2cded5
L
3441if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
3442 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
3443fi
d7040cdb 3444
2469cfa2 3445
d7040cdb
SE
3446
3447
3448
ce2cded5 3449 ac_config_headers="$ac_config_headers config.h:config.in"
d7040cdb
SE
3450
3451
ce2cded5
L
3452if test -z "$target" ; then
3453 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
3454echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
3455 { (exit 1); exit 1; }; }
3456fi
3457if test -z "$host" ; then
3458 { { echo "$as_me:$LINENO: error: Unrecognized host system type; please check config.sub." >&5
3459echo "$as_me: error: Unrecognized host system type; please check config.sub." >&2;}
3460 { (exit 1); exit 1; }; }
3461fi
d7040cdb 3462
ce2cded5 3463# host-specific stuff:
d7040cdb 3464
ce2cded5
L
3465ac_ext=c
3466ac_cpp='$CPP $CPPFLAGS'
3467ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3468ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3469ac_compiler_gnu=$ac_cv_c_compiler_gnu
3470if test -n "$ac_tool_prefix"; then
3471 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3472set dummy ${ac_tool_prefix}gcc; ac_word=$2
3473echo "$as_me:$LINENO: checking for $ac_word" >&5
3474echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3475if test "${ac_cv_prog_CC+set}" = set; then
d7040cdb
SE
3476 echo $ECHO_N "(cached) $ECHO_C" >&6
3477else
ce2cded5
L
3478 if test -n "$CC"; then
3479 ac_cv_prog_CC="$CC" # Let the user override the test.
3480else
d7040cdb
SE
3481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3482for as_dir in $PATH
3483do
3484 IFS=$as_save_IFS
3485 test -z "$as_dir" && as_dir=.
ce2cded5
L
3486 for ac_exec_ext in '' $ac_executable_extensions; do
3487 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3488 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3490 break 2
d7040cdb 3491 fi
ce2cded5 3492done
d7040cdb
SE
3493done
3494
3495fi
d7040cdb 3496fi
ce2cded5
L
3497CC=$ac_cv_prog_CC
3498if test -n "$CC"; then
3499 echo "$as_me:$LINENO: result: $CC" >&5
3500echo "${ECHO_T}$CC" >&6
d7040cdb 3501else
ce2cded5
L
3502 echo "$as_me:$LINENO: result: no" >&5
3503echo "${ECHO_T}no" >&6
d7040cdb 3504fi
d7040cdb 3505
252b5132 3506fi
ce2cded5
L
3507if test -z "$ac_cv_prog_CC"; then
3508 ac_ct_CC=$CC
3509 # Extract the first word of "gcc", so it can be a program name with args.
3510set dummy gcc; ac_word=$2
3511echo "$as_me:$LINENO: checking for $ac_word" >&5
3512echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3513if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
42ecbf5e 3514 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3515else
ce2cded5
L
3516 if test -n "$ac_ct_CC"; then
3517 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
252b5132 3518else
ce2cded5
L
3519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3520for as_dir in $PATH
3521do
3522 IFS=$as_save_IFS
3523 test -z "$as_dir" && as_dir=.
3524 for ac_exec_ext in '' $ac_executable_extensions; do
3525 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3526 ac_cv_prog_ac_ct_CC="gcc"
3527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3528 break 2
3529 fi
3530done
3531done
3532
252b5132
RH
3533fi
3534fi
ce2cded5
L
3535ac_ct_CC=$ac_cv_prog_ac_ct_CC
3536if test -n "$ac_ct_CC"; then
3537 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3538echo "${ECHO_T}$ac_ct_CC" >&6
252b5132 3539else
42ecbf5e
DJ
3540 echo "$as_me:$LINENO: result: no" >&5
3541echo "${ECHO_T}no" >&6
252b5132 3542fi
ce2cded5
L
3543
3544 CC=$ac_ct_CC
252b5132 3545else
ce2cded5 3546 CC="$ac_cv_prog_CC"
252b5132 3547fi
d7040cdb 3548
ce2cded5
L
3549if test -z "$CC"; then
3550 if test -n "$ac_tool_prefix"; then
3551 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3552set dummy ${ac_tool_prefix}cc; ac_word=$2
3553echo "$as_me:$LINENO: checking for $ac_word" >&5
3554echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3555if test "${ac_cv_prog_CC+set}" = set; then
42ecbf5e 3556 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3557else
ce2cded5
L
3558 if test -n "$CC"; then
3559 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 3560else
ce2cded5
L
3561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3562for as_dir in $PATH
3563do
3564 IFS=$as_save_IFS
3565 test -z "$as_dir" && as_dir=.
3566 for ac_exec_ext in '' $ac_executable_extensions; do
3567 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3568 ac_cv_prog_CC="${ac_tool_prefix}cc"
3569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3570 break 2
3571 fi
3572done
3573done
3574
252b5132
RH
3575fi
3576fi
ce2cded5
L
3577CC=$ac_cv_prog_CC
3578if test -n "$CC"; then
3579 echo "$as_me:$LINENO: result: $CC" >&5
3580echo "${ECHO_T}$CC" >&6
d15b04bd 3581else
ce2cded5
L
3582 echo "$as_me:$LINENO: result: no" >&5
3583echo "${ECHO_T}no" >&6
3584fi
3585
3586fi
3587if test -z "$ac_cv_prog_CC"; then
3588 ac_ct_CC=$CC
3589 # Extract the first word of "cc", so it can be a program name with args.
3590set dummy cc; ac_word=$2
3591echo "$as_me:$LINENO: checking for $ac_word" >&5
3592echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3593if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3594 echo $ECHO_N "(cached) $ECHO_C" >&6
3595else
3596 if test -n "$ac_ct_CC"; then
3597 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3598else
3599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3600for as_dir in $PATH
3601do
3602 IFS=$as_save_IFS
3603 test -z "$as_dir" && as_dir=.
3604 for ac_exec_ext in '' $ac_executable_extensions; do
3605 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3606 ac_cv_prog_ac_ct_CC="cc"
3607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3608 break 2
3609 fi
3610done
3611done
3612
3613fi
3614fi
3615ac_ct_CC=$ac_cv_prog_ac_ct_CC
3616if test -n "$ac_ct_CC"; then
3617 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3618echo "${ECHO_T}$ac_ct_CC" >&6
3619else
3620 echo "$as_me:$LINENO: result: no" >&5
3621echo "${ECHO_T}no" >&6
3622fi
3623
3624 CC=$ac_ct_CC
3625else
3626 CC="$ac_cv_prog_CC"
3627fi
3628
3629fi
3630if test -z "$CC"; then
3631 # Extract the first word of "cc", so it can be a program name with args.
3632set dummy cc; ac_word=$2
3633echo "$as_me:$LINENO: checking for $ac_word" >&5
3634echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3635if test "${ac_cv_prog_CC+set}" = set; then
3636 echo $ECHO_N "(cached) $ECHO_C" >&6
3637else
3638 if test -n "$CC"; then
3639 ac_cv_prog_CC="$CC" # Let the user override the test.
3640else
3641 ac_prog_rejected=no
3642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3643for as_dir in $PATH
3644do
3645 IFS=$as_save_IFS
3646 test -z "$as_dir" && as_dir=.
3647 for ac_exec_ext in '' $ac_executable_extensions; do
3648 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3649 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3650 ac_prog_rejected=yes
3651 continue
3652 fi
3653 ac_cv_prog_CC="cc"
3654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3655 break 2
3656 fi
3657done
3658done
3659
3660if test $ac_prog_rejected = yes; then
3661 # We found a bogon in the path, so make sure we never use it.
3662 set dummy $ac_cv_prog_CC
3663 shift
3664 if test $# != 0; then
3665 # We chose a different compiler from the bogus one.
3666 # However, it has the same basename, so the bogon will be chosen
3667 # first if we set CC to just the basename; use the full file name.
3668 shift
3669 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3670 fi
3671fi
3672fi
3673fi
3674CC=$ac_cv_prog_CC
3675if test -n "$CC"; then
3676 echo "$as_me:$LINENO: result: $CC" >&5
3677echo "${ECHO_T}$CC" >&6
3678else
3679 echo "$as_me:$LINENO: result: no" >&5
3680echo "${ECHO_T}no" >&6
3681fi
3682
3683fi
3684if test -z "$CC"; then
d7040cdb 3685 if test -n "$ac_tool_prefix"; then
ce2cded5 3686 for ac_prog in cl
d7040cdb
SE
3687 do
3688 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3689set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3690echo "$as_me:$LINENO: checking for $ac_word" >&5
3691echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ce2cded5 3692if test "${ac_cv_prog_CC+set}" = set; then
d7040cdb
SE
3693 echo $ECHO_N "(cached) $ECHO_C" >&6
3694else
ce2cded5
L
3695 if test -n "$CC"; then
3696 ac_cv_prog_CC="$CC" # Let the user override the test.
d7040cdb
SE
3697else
3698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3699for as_dir in $PATH
3700do
3701 IFS=$as_save_IFS
3702 test -z "$as_dir" && as_dir=.
3703 for ac_exec_ext in '' $ac_executable_extensions; do
3704 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ce2cded5 3705 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
d7040cdb
SE
3706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3707 break 2
3708 fi
3709done
3710done
3711
3712fi
3713fi
ce2cded5
L
3714CC=$ac_cv_prog_CC
3715if test -n "$CC"; then
3716 echo "$as_me:$LINENO: result: $CC" >&5
3717echo "${ECHO_T}$CC" >&6
d7040cdb
SE
3718else
3719 echo "$as_me:$LINENO: result: no" >&5
3720echo "${ECHO_T}no" >&6
3721fi
3722
ce2cded5 3723 test -n "$CC" && break
d7040cdb
SE
3724 done
3725fi
ce2cded5
L
3726if test -z "$CC"; then
3727 ac_ct_CC=$CC
3728 for ac_prog in cl
d7040cdb
SE
3729do
3730 # Extract the first word of "$ac_prog", so it can be a program name with args.
3731set dummy $ac_prog; ac_word=$2
3732echo "$as_me:$LINENO: checking for $ac_word" >&5
3733echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ce2cded5 3734if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
d7040cdb
SE
3735 echo $ECHO_N "(cached) $ECHO_C" >&6
3736else
ce2cded5
L
3737 if test -n "$ac_ct_CC"; then
3738 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
d7040cdb
SE
3739else
3740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3741for as_dir in $PATH
3742do
3743 IFS=$as_save_IFS
3744 test -z "$as_dir" && as_dir=.
3745 for ac_exec_ext in '' $ac_executable_extensions; do
3746 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ce2cded5 3747 ac_cv_prog_ac_ct_CC="$ac_prog"
d7040cdb
SE
3748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3749 break 2
3750 fi
3751done
3752done
3753
3754fi
3755fi
ce2cded5
L
3756ac_ct_CC=$ac_cv_prog_ac_ct_CC
3757if test -n "$ac_ct_CC"; then
3758 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3759echo "${ECHO_T}$ac_ct_CC" >&6
d7040cdb
SE
3760else
3761 echo "$as_me:$LINENO: result: no" >&5
3762echo "${ECHO_T}no" >&6
3763fi
3764
ce2cded5 3765 test -n "$ac_ct_CC" && break
d7040cdb 3766done
d7040cdb 3767
ce2cded5 3768 CC=$ac_ct_CC
d7040cdb
SE
3769fi
3770
d7040cdb 3771fi
d7040cdb
SE
3772
3773
7a283e07
RW
3774test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3775echo "$as_me: error: in \`$ac_pwd':" >&2;}
3776{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
ce2cded5
L
3777See \`config.log' for more details." >&5
3778echo "$as_me: error: no acceptable C compiler found in \$PATH
3779See \`config.log' for more details." >&2;}
7a283e07 3780 { (exit 1); exit 1; }; }; }
d7040cdb 3781
ce2cded5
L
3782# Provide some information about the compiler.
3783echo "$as_me:$LINENO:" \
3784 "checking for C compiler version" >&5
3785ac_compiler=`set X $ac_compile; echo $2`
3786{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3787 (eval $ac_compiler --version </dev/null >&5) 2>&5
3788 ac_status=$?
3789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790 (exit $ac_status); }
3791{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3792 (eval $ac_compiler -v </dev/null >&5) 2>&5
3793 ac_status=$?
3794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795 (exit $ac_status); }
3796{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3797 (eval $ac_compiler -V </dev/null >&5) 2>&5
3798 ac_status=$?
3799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800 (exit $ac_status); }
d7040cdb 3801
ce2cded5
L
3802echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3803echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3804if test "${ac_cv_c_compiler_gnu+set}" = set; then
d7040cdb
SE
3805 echo $ECHO_N "(cached) $ECHO_C" >&6
3806else
ce2cded5
L
3807 cat >conftest.$ac_ext <<_ACEOF
3808/* confdefs.h. */
3809_ACEOF
3810cat confdefs.h >>conftest.$ac_ext
3811cat >>conftest.$ac_ext <<_ACEOF
3812/* end confdefs.h. */
d7040cdb 3813
ce2cded5
L
3814int
3815main ()
3816{
3817#ifndef __GNUC__
3818 choke me
3819#endif
3820
3821 ;
3822 return 0;
3823}
3824_ACEOF
3825rm -f conftest.$ac_objext
3826if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3827 (eval $ac_compile) 2>conftest.er1
3828 ac_status=$?
3829 grep -v '^ *+' conftest.er1 >conftest.err
3830 rm -f conftest.er1
3831 cat conftest.err >&5
3832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833 (exit $ac_status); } &&
7357c5b6
AM
3834 { ac_try='test -z "$ac_c_werror_flag"
3835 || test ! -s conftest.err'
ce2cded5
L
3836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3837 (eval $ac_try) 2>&5
3838 ac_status=$?
3839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840 (exit $ac_status); }; } &&
3841 { ac_try='test -s conftest.$ac_objext'
3842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3843 (eval $ac_try) 2>&5
3844 ac_status=$?
3845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846 (exit $ac_status); }; }; then
3847 ac_compiler_gnu=yes
d7040cdb 3848else
ce2cded5
L
3849 echo "$as_me: failed program was:" >&5
3850sed 's/^/| /' conftest.$ac_ext >&5
3851
3852ac_compiler_gnu=no
d7040cdb 3853fi
ce2cded5
L
3854rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3855ac_cv_c_compiler_gnu=$ac_compiler_gnu
d7040cdb 3856
ce2cded5
L
3857fi
3858echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3859echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3860GCC=`test $ac_compiler_gnu = yes && echo yes`
3861ac_test_CFLAGS=${CFLAGS+set}
3862ac_save_CFLAGS=$CFLAGS
3863CFLAGS="-g"
3864echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3865echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3866if test "${ac_cv_prog_cc_g+set}" = set; then
d7040cdb
SE
3867 echo $ECHO_N "(cached) $ECHO_C" >&6
3868else
ce2cded5
L
3869 cat >conftest.$ac_ext <<_ACEOF
3870/* confdefs.h. */
3871_ACEOF
3872cat confdefs.h >>conftest.$ac_ext
3873cat >>conftest.$ac_ext <<_ACEOF
3874/* end confdefs.h. */
d7040cdb 3875
ce2cded5
L
3876int
3877main ()
3878{
d7040cdb 3879
ce2cded5
L
3880 ;
3881 return 0;
3882}
3883_ACEOF
3884rm -f conftest.$ac_objext
3885if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3886 (eval $ac_compile) 2>conftest.er1
3887 ac_status=$?
3888 grep -v '^ *+' conftest.er1 >conftest.err
3889 rm -f conftest.er1
3890 cat conftest.err >&5
3891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3892 (exit $ac_status); } &&
7357c5b6
AM
3893 { ac_try='test -z "$ac_c_werror_flag"
3894 || test ! -s conftest.err'
ce2cded5
L
3895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3896 (eval $ac_try) 2>&5
3897 ac_status=$?
3898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899 (exit $ac_status); }; } &&
3900 { ac_try='test -s conftest.$ac_objext'
3901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3902 (eval $ac_try) 2>&5
3903 ac_status=$?
3904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3905 (exit $ac_status); }; }; then
3906 ac_cv_prog_cc_g=yes
3907else
3908 echo "$as_me: failed program was:" >&5
3909sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 3910
ce2cded5 3911ac_cv_prog_cc_g=no
d7040cdb 3912fi
ce2cded5
L
3913rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3914fi
3915echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3916echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3917if test "$ac_test_CFLAGS" = set; then
3918 CFLAGS=$ac_save_CFLAGS
3919elif test $ac_cv_prog_cc_g = yes; then
3920 if test "$GCC" = yes; then
3921 CFLAGS="-g -O2"
3922 else
3923 CFLAGS="-g"
3924 fi
d7040cdb 3925else
ce2cded5
L
3926 if test "$GCC" = yes; then
3927 CFLAGS="-O2"
3928 else
3929 CFLAGS=
3930 fi
d7040cdb 3931fi
ce2cded5
L
3932echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3933echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3934if test "${ac_cv_prog_cc_stdc+set}" = set; then
3935 echo $ECHO_N "(cached) $ECHO_C" >&6
d7040cdb 3936else
ce2cded5
L
3937 ac_cv_prog_cc_stdc=no
3938ac_save_CC=$CC
3939cat >conftest.$ac_ext <<_ACEOF
3940/* confdefs.h. */
3941_ACEOF
3942cat confdefs.h >>conftest.$ac_ext
3943cat >>conftest.$ac_ext <<_ACEOF
3944/* end confdefs.h. */
3945#include <stdarg.h>
3946#include <stdio.h>
3947#include <sys/types.h>
3948#include <sys/stat.h>
3949/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3950struct buf { int x; };
3951FILE * (*rcsopen) (struct buf *, struct stat *, int);
3952static char *e (p, i)
3953 char **p;
3954 int i;
3955{
3956 return p[i];
3957}
3958static char *f (char * (*g) (char **, int), char **p, ...)
3959{
3960 char *s;
3961 va_list v;
3962 va_start (v,p);
3963 s = g (p, va_arg (v,int));
3964 va_end (v);
3965 return s;
3966}
d7040cdb 3967
ce2cded5
L
3968/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3969 function prototypes and stuff, but not '\xHH' hex character constants.
3970 These don't provoke an error unfortunately, instead are silently treated
3971 as 'x'. The following induces an error, until -std1 is added to get
3972 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3973 array size at least. It's necessary to write '\x00'==0 to get something
3974 that's true only with -std1. */
3975int osf4_cc_array ['\x00' == 0 ? 1 : -1];
d7040cdb 3976
ce2cded5
L
3977int test (int i, double x);
3978struct s1 {int (*f) (int a);};
3979struct s2 {int (*f) (double a);};
3980int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3981int argc;
3982char **argv;
3983int
3984main ()
3985{
3986return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3987 ;
3988 return 0;
3989}
3990_ACEOF
3991# Don't try gcc -ansi; that turns off useful extensions and
3992# breaks some systems' header files.
3993# AIX -qlanglvl=ansi
3994# Ultrix and OSF/1 -std1
3995# HP-UX 10.20 and later -Ae
3996# HP-UX older versions -Aa -D_HPUX_SOURCE
3997# SVR4 -Xc -D__EXTENSIONS__
3998for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3999do
4000 CC="$ac_save_CC $ac_arg"
4001 rm -f conftest.$ac_objext
4002if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4003 (eval $ac_compile) 2>conftest.er1
4004 ac_status=$?
4005 grep -v '^ *+' conftest.er1 >conftest.err
4006 rm -f conftest.er1
4007 cat conftest.err >&5
4008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009 (exit $ac_status); } &&
7357c5b6
AM
4010 { ac_try='test -z "$ac_c_werror_flag"
4011 || test ! -s conftest.err'
ce2cded5
L
4012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4013 (eval $ac_try) 2>&5
4014 ac_status=$?
4015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016 (exit $ac_status); }; } &&
4017 { ac_try='test -s conftest.$ac_objext'
4018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4019 (eval $ac_try) 2>&5
4020 ac_status=$?
4021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4022 (exit $ac_status); }; }; then
4023 ac_cv_prog_cc_stdc=$ac_arg
4024break
4025else
4026 echo "$as_me: failed program was:" >&5
4027sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4028
ce2cded5
L
4029fi
4030rm -f conftest.err conftest.$ac_objext
4031done
4032rm -f conftest.$ac_ext conftest.$ac_objext
4033CC=$ac_save_CC
d7040cdb 4034
ce2cded5 4035fi
d7040cdb 4036
ce2cded5
L
4037case "x$ac_cv_prog_cc_stdc" in
4038 x|xno)
4039 echo "$as_me:$LINENO: result: none needed" >&5
4040echo "${ECHO_T}none needed" >&6 ;;
4041 *)
4042 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4043echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4044 CC="$CC $ac_cv_prog_cc_stdc" ;;
d7040cdb
SE
4045esac
4046
ce2cded5
L
4047# Some people use a C++ compiler to compile C. Since we use `exit',
4048# in C++ we need to declare it. In case someone uses the same compiler
4049# for both compiling C and C++ we need to have the C++ compiler decide
4050# the declaration of exit, since it's the most demanding environment.
4051cat >conftest.$ac_ext <<_ACEOF
4052#ifndef __cplusplus
4053 choke me
4054#endif
4055_ACEOF
4056rm -f conftest.$ac_objext
4057if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4058 (eval $ac_compile) 2>conftest.er1
4059 ac_status=$?
4060 grep -v '^ *+' conftest.er1 >conftest.err
4061 rm -f conftest.er1
4062 cat conftest.err >&5
4063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064 (exit $ac_status); } &&
7357c5b6
AM
4065 { ac_try='test -z "$ac_c_werror_flag"
4066 || test ! -s conftest.err'
ce2cded5
L
4067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4068 (eval $ac_try) 2>&5
4069 ac_status=$?
4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071 (exit $ac_status); }; } &&
4072 { ac_try='test -s conftest.$ac_objext'
4073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4074 (eval $ac_try) 2>&5
4075 ac_status=$?
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); }; }; then
4078 for ac_declaration in \
4079 '' \
4080 'extern "C" void std::exit (int) throw (); using std::exit;' \
4081 'extern "C" void std::exit (int); using std::exit;' \
4082 'extern "C" void exit (int) throw ();' \
4083 'extern "C" void exit (int);' \
4084 'void exit (int);'
4085do
4086 cat >conftest.$ac_ext <<_ACEOF
4087/* confdefs.h. */
4088_ACEOF
4089cat confdefs.h >>conftest.$ac_ext
4090cat >>conftest.$ac_ext <<_ACEOF
4091/* end confdefs.h. */
4092$ac_declaration
4093#include <stdlib.h>
4094int
4095main ()
4096{
4097exit (42);
4098 ;
4099 return 0;
4100}
4101_ACEOF
4102rm -f conftest.$ac_objext
4103if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4104 (eval $ac_compile) 2>conftest.er1
4105 ac_status=$?
4106 grep -v '^ *+' conftest.er1 >conftest.err
4107 rm -f conftest.er1
4108 cat conftest.err >&5
4109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110 (exit $ac_status); } &&
7357c5b6
AM
4111 { ac_try='test -z "$ac_c_werror_flag"
4112 || test ! -s conftest.err'
ce2cded5
L
4113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4114 (eval $ac_try) 2>&5
4115 ac_status=$?
4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); }; } &&
4118 { ac_try='test -s conftest.$ac_objext'
4119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4120 (eval $ac_try) 2>&5
4121 ac_status=$?
4122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123 (exit $ac_status); }; }; then
4124 :
d7040cdb 4125else
ce2cded5
L
4126 echo "$as_me: failed program was:" >&5
4127sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4128
ce2cded5
L
4129continue
4130fi
4131rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4132 cat >conftest.$ac_ext <<_ACEOF
4133/* confdefs.h. */
4134_ACEOF
4135cat confdefs.h >>conftest.$ac_ext
4136cat >>conftest.$ac_ext <<_ACEOF
4137/* end confdefs.h. */
4138$ac_declaration
4139int
4140main ()
4141{
4142exit (42);
4143 ;
4144 return 0;
4145}
4146_ACEOF
4147rm -f conftest.$ac_objext
4148if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4149 (eval $ac_compile) 2>conftest.er1
4150 ac_status=$?
4151 grep -v '^ *+' conftest.er1 >conftest.err
4152 rm -f conftest.er1
4153 cat conftest.err >&5
4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); } &&
7357c5b6
AM
4156 { ac_try='test -z "$ac_c_werror_flag"
4157 || test ! -s conftest.err'
ce2cded5
L
4158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4159 (eval $ac_try) 2>&5
4160 ac_status=$?
4161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162 (exit $ac_status); }; } &&
4163 { ac_try='test -s conftest.$ac_objext'
4164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4165 (eval $ac_try) 2>&5
4166 ac_status=$?
4167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168 (exit $ac_status); }; }; then
4169 break
4170else
4171 echo "$as_me: failed program was:" >&5
4172sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4173
ce2cded5
L
4174fi
4175rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4176done
4177rm -f conftest*
4178if test -n "$ac_declaration"; then
4179 echo '#ifdef __cplusplus' >>confdefs.h
4180 echo $ac_declaration >>confdefs.h
4181 echo '#endif' >>confdefs.h
4182fi
d7040cdb 4183
ce2cded5
L
4184else
4185 echo "$as_me: failed program was:" >&5
4186sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4187
ce2cded5
L
4188fi
4189rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4190ac_ext=c
4191ac_cpp='$CPP $CPPFLAGS'
4192ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4193ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4194ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb
SE
4195
4196
ce2cded5
L
4197cat >>confdefs.h <<\_ACEOF
4198#define _GNU_SOURCE 1
4199_ACEOF
4200
4201
7357c5b6
AM
4202ac_ext=c
4203ac_cpp='$CPP $CPPFLAGS'
4204ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4205ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4206ac_compiler_gnu=$ac_cv_c_compiler_gnu
4207echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4208echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4209# On Suns, sometimes $CPP names a directory.
4210if test -n "$CPP" && test -d "$CPP"; then
4211 CPP=
4212fi
4213if test -z "$CPP"; then
4214 if test "${ac_cv_prog_CPP+set}" = set; then
42ecbf5e 4215 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 4216else
7357c5b6
AM
4217 # Double quotes because CPP needs to be expanded
4218 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4219 do
4220 ac_preproc_ok=false
4221for ac_c_preproc_warn_flag in '' yes
ce2cded5 4222do
7357c5b6
AM
4223 # Use a header file that comes with gcc, so configuring glibc
4224 # with a fresh cross-compiler works.
4225 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4226 # <limits.h> exists even on freestanding compilers.
4227 # On the NeXT, cc -E runs the code through the compiler's parser,
4228 # not just through cpp. "Syntax error" is here to catch this case.
4229 cat >conftest.$ac_ext <<_ACEOF
4230/* confdefs.h. */
4231_ACEOF
4232cat confdefs.h >>conftest.$ac_ext
4233cat >>conftest.$ac_ext <<_ACEOF
4234/* end confdefs.h. */
4235#ifdef __STDC__
4236# include <limits.h>
4237#else
4238# include <assert.h>
4239#endif
4240 Syntax error
4241_ACEOF
4242if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4243 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4244 ac_status=$?
4245 grep -v '^ *+' conftest.er1 >conftest.err
4246 rm -f conftest.er1
4247 cat conftest.err >&5
4248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249 (exit $ac_status); } >/dev/null; then
4250 if test -s conftest.err; then
4251 ac_cpp_err=$ac_c_preproc_warn_flag
4252 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ce2cded5 4253 else
7357c5b6 4254 ac_cpp_err=
ce2cded5 4255 fi
7357c5b6
AM
4256else
4257 ac_cpp_err=yes
ce2cded5 4258fi
7357c5b6
AM
4259if test -z "$ac_cpp_err"; then
4260 :
ce2cded5 4261else
7357c5b6
AM
4262 echo "$as_me: failed program was:" >&5
4263sed 's/^/| /' conftest.$ac_ext >&5
ac48eca1 4264
7357c5b6
AM
4265 # Broken: fails on valid input.
4266continue
4267fi
4268rm -f conftest.err conftest.$ac_ext
ac48eca1 4269
7357c5b6
AM
4270 # OK, works on sane cases. Now check whether non-existent headers
4271 # can be detected and how.
4272 cat >conftest.$ac_ext <<_ACEOF
4273/* confdefs.h. */
4274_ACEOF
4275cat confdefs.h >>conftest.$ac_ext
4276cat >>conftest.$ac_ext <<_ACEOF
4277/* end confdefs.h. */
4278#include <ac_nonexistent.h>
4279_ACEOF
4280if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4281 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4282 ac_status=$?
4283 grep -v '^ *+' conftest.er1 >conftest.err
4284 rm -f conftest.er1
4285 cat conftest.err >&5
4286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287 (exit $ac_status); } >/dev/null; then
4288 if test -s conftest.err; then
4289 ac_cpp_err=$ac_c_preproc_warn_flag
4290 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4291 else
4292 ac_cpp_err=
4293 fi
4294else
4295 ac_cpp_err=yes
4296fi
4297if test -z "$ac_cpp_err"; then
4298 # Broken: success on invalid input.
4299continue
4300else
4301 echo "$as_me: failed program was:" >&5
4302sed 's/^/| /' conftest.$ac_ext >&5
ac48eca1 4303
7357c5b6
AM
4304 # Passes both tests.
4305ac_preproc_ok=:
4306break
4307fi
4308rm -f conftest.err conftest.$ac_ext
ac48eca1 4309
7357c5b6
AM
4310done
4311# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4312rm -f conftest.err conftest.$ac_ext
4313if $ac_preproc_ok; then
4314 break
4315fi
252b5132 4316
7357c5b6
AM
4317 done
4318 ac_cv_prog_CPP=$CPP
252b5132 4319
7357c5b6
AM
4320fi
4321 CPP=$ac_cv_prog_CPP
4322else
4323 ac_cv_prog_CPP=$CPP
4324fi
4325echo "$as_me:$LINENO: result: $CPP" >&5
4326echo "${ECHO_T}$CPP" >&6
4327ac_preproc_ok=false
4328for ac_c_preproc_warn_flag in '' yes
4329do
4330 # Use a header file that comes with gcc, so configuring glibc
4331 # with a fresh cross-compiler works.
4332 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4333 # <limits.h> exists even on freestanding compilers.
4334 # On the NeXT, cc -E runs the code through the compiler's parser,
4335 # not just through cpp. "Syntax error" is here to catch this case.
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#ifdef __STDC__
4343# include <limits.h>
4344#else
4345# include <assert.h>
4346#endif
4347 Syntax error
4348_ACEOF
4349if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4350 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4351 ac_status=$?
4352 grep -v '^ *+' conftest.er1 >conftest.err
4353 rm -f conftest.er1
4354 cat conftest.err >&5
4355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356 (exit $ac_status); } >/dev/null; then
4357 if test -s conftest.err; then
4358 ac_cpp_err=$ac_c_preproc_warn_flag
4359 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4360 else
4361 ac_cpp_err=
4362 fi
4363else
4364 ac_cpp_err=yes
4365fi
4366if test -z "$ac_cpp_err"; then
4367 :
ac48eca1 4368else
7357c5b6
AM
4369 echo "$as_me: failed program was:" >&5
4370sed 's/^/| /' conftest.$ac_ext >&5
ce2cded5 4371
7357c5b6
AM
4372 # Broken: fails on valid input.
4373continue
4374fi
4375rm -f conftest.err conftest.$ac_ext
ce2cded5 4376
7357c5b6
AM
4377 # OK, works on sane cases. Now check whether non-existent headers
4378 # can be detected and how.
4379 cat >conftest.$ac_ext <<_ACEOF
4380/* confdefs.h. */
4381_ACEOF
4382cat confdefs.h >>conftest.$ac_ext
4383cat >>conftest.$ac_ext <<_ACEOF
4384/* end confdefs.h. */
4385#include <ac_nonexistent.h>
4386_ACEOF
4387if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4388 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4389 ac_status=$?
4390 grep -v '^ *+' conftest.er1 >conftest.err
4391 rm -f conftest.er1
4392 cat conftest.err >&5
4393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394 (exit $ac_status); } >/dev/null; then
4395 if test -s conftest.err; then
4396 ac_cpp_err=$ac_c_preproc_warn_flag
4397 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4398 else
4399 ac_cpp_err=
4400 fi
ac48eca1 4401else
7357c5b6
AM
4402 ac_cpp_err=yes
4403fi
4404if test -z "$ac_cpp_err"; then
4405 # Broken: success on invalid input.
4406continue
ce2cded5 4407else
7357c5b6
AM
4408 echo "$as_me: failed program was:" >&5
4409sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4410
7357c5b6
AM
4411 # Passes both tests.
4412ac_preproc_ok=:
4413break
4414fi
4415rm -f conftest.err conftest.$ac_ext
d7040cdb 4416
7357c5b6
AM
4417done
4418# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4419rm -f conftest.err conftest.$ac_ext
4420if $ac_preproc_ok; then
4421 :
4422else
4423 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4424echo "$as_me: error: in \`$ac_pwd':" >&2;}
4425{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4426See \`config.log' for more details." >&5
4427echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4428See \`config.log' for more details." >&2;}
4429 { (exit 1); exit 1; }; }; }
4430fi
ce2cded5 4431
7357c5b6
AM
4432ac_ext=c
4433ac_cpp='$CPP $CPPFLAGS'
4434ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4435ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4436ac_compiler_gnu=$ac_cv_c_compiler_gnu
ce2cded5
L
4437
4438
7357c5b6
AM
4439echo "$as_me:$LINENO: checking for egrep" >&5
4440echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4441if test "${ac_cv_prog_egrep+set}" = set; then
42ecbf5e 4442 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 4443else
7357c5b6
AM
4444 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4445 then ac_cv_prog_egrep='grep -E'
4446 else ac_cv_prog_egrep='egrep'
ce2cded5 4447 fi
ac48eca1 4448fi
7357c5b6
AM
4449echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4450echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4451 EGREP=$ac_cv_prog_egrep
ac48eca1 4452
252b5132 4453
7357c5b6
AM
4454echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4455echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4456if test "${ac_cv_header_stdc+set}" = set; then
4457 echo $ECHO_N "(cached) $ECHO_C" >&6
4458else
4459 cat >conftest.$ac_ext <<_ACEOF
4460/* confdefs.h. */
4461_ACEOF
4462cat confdefs.h >>conftest.$ac_ext
4463cat >>conftest.$ac_ext <<_ACEOF
4464/* end confdefs.h. */
4465#include <stdlib.h>
4466#include <stdarg.h>
4467#include <string.h>
4468#include <float.h>
4867be41 4469
7357c5b6
AM
4470int
4471main ()
4472{
32fba81d 4473
7357c5b6
AM
4474 ;
4475 return 0;
4476}
4477_ACEOF
4478rm -f conftest.$ac_objext
4479if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4480 (eval $ac_compile) 2>conftest.er1
4481 ac_status=$?
4482 grep -v '^ *+' conftest.er1 >conftest.err
4483 rm -f conftest.er1
4484 cat conftest.err >&5
4485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486 (exit $ac_status); } &&
4487 { ac_try='test -z "$ac_c_werror_flag"
4488 || test ! -s conftest.err'
4489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4490 (eval $ac_try) 2>&5
4491 ac_status=$?
4492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493 (exit $ac_status); }; } &&
4494 { ac_try='test -s conftest.$ac_objext'
4495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4496 (eval $ac_try) 2>&5
4497 ac_status=$?
4498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499 (exit $ac_status); }; }; then
4500 ac_cv_header_stdc=yes
4501else
4502 echo "$as_me: failed program was:" >&5
4503sed 's/^/| /' conftest.$ac_ext >&5
42ecbf5e 4504
7357c5b6
AM
4505ac_cv_header_stdc=no
4506fi
4507rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42ecbf5e 4508
7357c5b6
AM
4509if test $ac_cv_header_stdc = yes; then
4510 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4511 cat >conftest.$ac_ext <<_ACEOF
4512/* confdefs.h. */
4513_ACEOF
4514cat confdefs.h >>conftest.$ac_ext
4515cat >>conftest.$ac_ext <<_ACEOF
4516/* end confdefs.h. */
4517#include <string.h>
ac48eca1 4518
7357c5b6
AM
4519_ACEOF
4520if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4521 $EGREP "memchr" >/dev/null 2>&1; then
4522 :
4523else
4524 ac_cv_header_stdc=no
4525fi
4526rm -f conftest*
252b5132 4527
7357c5b6 4528fi
252b5132 4529
7357c5b6
AM
4530if test $ac_cv_header_stdc = yes; then
4531 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4532 cat >conftest.$ac_ext <<_ACEOF
4533/* confdefs.h. */
4534_ACEOF
4535cat confdefs.h >>conftest.$ac_ext
4536cat >>conftest.$ac_ext <<_ACEOF
4537/* end confdefs.h. */
4538#include <stdlib.h>
42ecbf5e 4539
7357c5b6
AM
4540_ACEOF
4541if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4542 $EGREP "free" >/dev/null 2>&1; then
4543 :
4544else
4545 ac_cv_header_stdc=no
4546fi
4547rm -f conftest*
ac48eca1 4548
7357c5b6 4549fi
d7040cdb 4550
7357c5b6
AM
4551if test $ac_cv_header_stdc = yes; then
4552 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4553 if test "$cross_compiling" = yes; then
4554 :
4555else
4556 cat >conftest.$ac_ext <<_ACEOF
4557/* confdefs.h. */
4558_ACEOF
4559cat confdefs.h >>conftest.$ac_ext
4560cat >>conftest.$ac_ext <<_ACEOF
4561/* end confdefs.h. */
4562#include <ctype.h>
4563#if ((' ' & 0x0FF) == 0x020)
4564# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4565# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4566#else
4567# define ISLOWER(c) \
4568 (('a' <= (c) && (c) <= 'i') \
4569 || ('j' <= (c) && (c) <= 'r') \
4570 || ('s' <= (c) && (c) <= 'z'))
4571# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4572#endif
d7040cdb 4573
7357c5b6
AM
4574#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4575int
4576main ()
4577{
4578 int i;
4579 for (i = 0; i < 256; i++)
4580 if (XOR (islower (i), ISLOWER (i))
4581 || toupper (i) != TOUPPER (i))
4582 exit(2);
4583 exit (0);
4584}
4585_ACEOF
4586rm -f conftest$ac_exeext
4587if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4588 (eval $ac_link) 2>&5
4589 ac_status=$?
4590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4593 (eval $ac_try) 2>&5
4594 ac_status=$?
4595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596 (exit $ac_status); }; }; then
4597 :
ce2cded5 4598else
7357c5b6
AM
4599 echo "$as_me: program exited with status $ac_status" >&5
4600echo "$as_me: failed program was:" >&5
4601sed 's/^/| /' conftest.$ac_ext >&5
4602
4603( exit $ac_status )
4604ac_cv_header_stdc=no
252b5132 4605fi
7357c5b6
AM
4606rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4607fi
4608fi
4609fi
4610echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4611echo "${ECHO_T}$ac_cv_header_stdc" >&6
4612if test $ac_cv_header_stdc = yes; then
252b5132 4613
7357c5b6
AM
4614cat >>confdefs.h <<\_ACEOF
4615#define STDC_HEADERS 1
4616_ACEOF
252b5132 4617
ce2cded5 4618fi
252b5132 4619
7357c5b6 4620# On IRIX 5.3, sys/types and inttypes.h are conflicting.
252b5132 4621
42ecbf5e 4622
42ecbf5e 4623
252b5132 4624
252b5132 4625
252b5132
RH
4626
4627
252b5132 4628
252b5132 4629
7357c5b6
AM
4630for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4631 inttypes.h stdint.h unistd.h
4632do
4633as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4634echo "$as_me:$LINENO: checking for $ac_header" >&5
4635echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4636if eval "test \"\${$as_ac_Header+set}\" = set"; then
4637 echo $ECHO_N "(cached) $ECHO_C" >&6
4638else
4639 cat >conftest.$ac_ext <<_ACEOF
4640/* confdefs.h. */
4641_ACEOF
4642cat confdefs.h >>conftest.$ac_ext
4643cat >>conftest.$ac_ext <<_ACEOF
4644/* end confdefs.h. */
4645$ac_includes_default
252b5132 4646
7357c5b6
AM
4647#include <$ac_header>
4648_ACEOF
4649rm -f conftest.$ac_objext
4650if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4651 (eval $ac_compile) 2>conftest.er1
4652 ac_status=$?
4653 grep -v '^ *+' conftest.er1 >conftest.err
4654 rm -f conftest.er1
4655 cat conftest.err >&5
4656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657 (exit $ac_status); } &&
4658 { ac_try='test -z "$ac_c_werror_flag"
4659 || test ! -s conftest.err'
4660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4661 (eval $ac_try) 2>&5
4662 ac_status=$?
4663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664 (exit $ac_status); }; } &&
4665 { ac_try='test -s conftest.$ac_objext'
4666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4667 (eval $ac_try) 2>&5
4668 ac_status=$?
4669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670 (exit $ac_status); }; }; then
4671 eval "$as_ac_Header=yes"
4672else
4673 echo "$as_me: failed program was:" >&5
4674sed 's/^/| /' conftest.$ac_ext >&5
ac48eca1 4675
7357c5b6
AM
4676eval "$as_ac_Header=no"
4677fi
4678rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4679fi
4680echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4681echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4682if test `eval echo '${'$as_ac_Header'}'` = yes; then
4683 cat >>confdefs.h <<_ACEOF
4684#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4685_ACEOF
42ecbf5e 4686
7357c5b6 4687fi
42ecbf5e 4688
7357c5b6 4689done
42ecbf5e
DJ
4690
4691
4692
7357c5b6
AM
4693 if test "${ac_cv_header_minix_config_h+set}" = set; then
4694 echo "$as_me:$LINENO: checking for minix/config.h" >&5
4695echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4696if test "${ac_cv_header_minix_config_h+set}" = set; then
4697 echo $ECHO_N "(cached) $ECHO_C" >&6
4698fi
4699echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4700echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4701else
4702 # Is the header compilable?
4703echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4704echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
4705cat >conftest.$ac_ext <<_ACEOF
4706/* confdefs.h. */
4707_ACEOF
4708cat confdefs.h >>conftest.$ac_ext
4709cat >>conftest.$ac_ext <<_ACEOF
4710/* end confdefs.h. */
4711$ac_includes_default
4712#include <minix/config.h>
4713_ACEOF
4714rm -f conftest.$ac_objext
4715if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4716 (eval $ac_compile) 2>conftest.er1
4717 ac_status=$?
4718 grep -v '^ *+' conftest.er1 >conftest.err
4719 rm -f conftest.er1
4720 cat conftest.err >&5
4721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722 (exit $ac_status); } &&
4723 { ac_try='test -z "$ac_c_werror_flag"
4724 || test ! -s conftest.err'
4725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4726 (eval $ac_try) 2>&5
4727 ac_status=$?
4728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729 (exit $ac_status); }; } &&
4730 { ac_try='test -s conftest.$ac_objext'
4731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4732 (eval $ac_try) 2>&5
4733 ac_status=$?
4734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735 (exit $ac_status); }; }; then
4736 ac_header_compiler=yes
4737else
4738 echo "$as_me: failed program was:" >&5
4739sed 's/^/| /' conftest.$ac_ext >&5
ac48eca1 4740
7357c5b6
AM
4741ac_header_compiler=no
4742fi
4743rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4744echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4745echo "${ECHO_T}$ac_header_compiler" >&6
252b5132 4746
7357c5b6
AM
4747# Is the header present?
4748echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4749echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
4750cat >conftest.$ac_ext <<_ACEOF
4751/* confdefs.h. */
4752_ACEOF
4753cat confdefs.h >>conftest.$ac_ext
4754cat >>conftest.$ac_ext <<_ACEOF
4755/* end confdefs.h. */
4756#include <minix/config.h>
4757_ACEOF
4758if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4759 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4760 ac_status=$?
4761 grep -v '^ *+' conftest.er1 >conftest.err
4762 rm -f conftest.er1
4763 cat conftest.err >&5
4764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765 (exit $ac_status); } >/dev/null; then
4766 if test -s conftest.err; then
4767 ac_cpp_err=$ac_c_preproc_warn_flag
4768 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4769 else
4770 ac_cpp_err=
4771 fi
4772else
4773 ac_cpp_err=yes
4774fi
4775if test -z "$ac_cpp_err"; then
4776 ac_header_preproc=yes
4777else
4778 echo "$as_me: failed program was:" >&5
4779sed 's/^/| /' conftest.$ac_ext >&5
42ecbf5e 4780
7357c5b6
AM
4781 ac_header_preproc=no
4782fi
4783rm -f conftest.err conftest.$ac_ext
4784echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4785echo "${ECHO_T}$ac_header_preproc" >&6
9c8ebd6a 4786
7357c5b6
AM
4787# So? What about this header?
4788case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4789 yes:no: )
4790 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4791echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4792 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4793echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4794 ac_header_preproc=yes
ce2cded5 4795 ;;
7357c5b6
AM
4796 no:yes:* )
4797 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4798echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4799 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4800echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4801 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4802echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4803 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4804echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4805 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4806echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4807 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4808echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4809 (
4810 cat <<\_ASBOX
4811## ------------------------------------------ ##
4812## Report this to the AC_PACKAGE_NAME lists. ##
4813## ------------------------------------------ ##
4814_ASBOX
4815 ) |
4816 sed "s/^/$as_me: WARNING: /" >&2
ce2cded5 4817 ;;
7357c5b6
AM
4818esac
4819echo "$as_me:$LINENO: checking for minix/config.h" >&5
4820echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4821if test "${ac_cv_header_minix_config_h+set}" = set; then
ce2cded5
L
4822 echo $ECHO_N "(cached) $ECHO_C" >&6
4823else
7357c5b6 4824 ac_cv_header_minix_config_h=$ac_header_preproc
ce2cded5 4825fi
7357c5b6
AM
4826echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4827echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
9e9b66a9 4828
ce2cded5 4829fi
7357c5b6
AM
4830if test $ac_cv_header_minix_config_h = yes; then
4831 MINIX=yes
ce2cded5 4832else
7357c5b6 4833 MINIX=
ce2cded5 4834fi
42ecbf5e 4835
e5a52504 4836
7357c5b6
AM
4837 if test "$MINIX" = yes; then
4838
4839cat >>confdefs.h <<\_ACEOF
4840#define _POSIX_SOURCE 1
4841_ACEOF
d7040cdb 4842
d7040cdb 4843
7357c5b6
AM
4844cat >>confdefs.h <<\_ACEOF
4845#define _POSIX_1_SOURCE 2
4846_ACEOF
d7040cdb 4847
d7040cdb 4848
7357c5b6
AM
4849cat >>confdefs.h <<\_ACEOF
4850#define _MINIX 1
4851_ACEOF
d7040cdb 4852
7357c5b6 4853 fi
d7040cdb 4854
d7040cdb 4855
d7040cdb 4856
7357c5b6
AM
4857 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4858echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
4859if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
ce2cded5
L
4860 echo $ECHO_N "(cached) $ECHO_C" >&6
4861else
7357c5b6
AM
4862 cat >conftest.$ac_ext <<_ACEOF
4863/* confdefs.h. */
4864_ACEOF
4865cat confdefs.h >>conftest.$ac_ext
4866cat >>conftest.$ac_ext <<_ACEOF
4867/* end confdefs.h. */
4868
4869# define __EXTENSIONS__ 1
4870 $ac_includes_default
4871int
4872main ()
4873{
4874
4875 ;
4876 return 0;
4877}
4878_ACEOF
4879rm -f conftest.$ac_objext
4880if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4881 (eval $ac_compile) 2>conftest.er1
4882 ac_status=$?
4883 grep -v '^ *+' conftest.er1 >conftest.err
4884 rm -f conftest.er1
4885 cat conftest.err >&5
4886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887 (exit $ac_status); } &&
4888 { ac_try='test -z "$ac_c_werror_flag"
4889 || test ! -s conftest.err'
4890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4891 (eval $ac_try) 2>&5
4892 ac_status=$?
4893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894 (exit $ac_status); }; } &&
4895 { ac_try='test -s conftest.$ac_objext'
4896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4897 (eval $ac_try) 2>&5
4898 ac_status=$?
4899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4900 (exit $ac_status); }; }; then
4901 ac_cv_safe_to_define___extensions__=yes
ce2cded5 4902else
7357c5b6
AM
4903 echo "$as_me: failed program was:" >&5
4904sed 's/^/| /' conftest.$ac_ext >&5
4905
4906ac_cv_safe_to_define___extensions__=no
ce2cded5 4907fi
7357c5b6 4908rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ce2cded5 4909fi
7357c5b6
AM
4910echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4911echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
4912 test $ac_cv_safe_to_define___extensions__ = yes &&
4913 cat >>confdefs.h <<\_ACEOF
4914#define __EXTENSIONS__ 1
4915_ACEOF
4916
4917 cat >>confdefs.h <<\_ACEOF
4918#define _ALL_SOURCE 1
4919_ACEOF
4920
4921 cat >>confdefs.h <<\_ACEOF
4922#define _GNU_SOURCE 1
4923_ACEOF
4924
4925 cat >>confdefs.h <<\_ACEOF
4926#define _POSIX_PTHREAD_SEMANTICS 1
4927_ACEOF
4928
4929 cat >>confdefs.h <<\_ACEOF
4930#define _TANDEM_SOURCE 1
4931_ACEOF
4932
4933
4934# Find a good install program. We prefer a C program (faster),
4935# so one script is as good as another. But avoid the broken or
4936# incompatible versions:
4937# SysV /etc/install, /usr/sbin/install
4938# SunOS /usr/etc/install
4939# IRIX /sbin/install
4940# AIX /bin/install
4941# AmigaOS /C/install, which installs bootblocks on floppy discs
4942# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4943# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4944# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4945# OS/2's system install, which has a completely different semantic
4946# ./install, which can be erroneously created by make from ./install.sh.
4947# Reject install programs that cannot install multiple files.
4948echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4949echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4950if test -z "$INSTALL"; then
4951if test "${ac_cv_path_install+set}" = set; then
ce2cded5
L
4952 echo $ECHO_N "(cached) $ECHO_C" >&6
4953else
7357c5b6 4954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
ce2cded5
L
4955for as_dir in $PATH
4956do
4957 IFS=$as_save_IFS
4958 test -z "$as_dir" && as_dir=.
7357c5b6
AM
4959 # Account for people who put trailing slashes in PATH elements.
4960case $as_dir/ in
4961 ./ | .// | /cC/* | \
4962 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4963 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4964 /usr/ucb/* ) ;;
4965 *)
4966 # OSF1 and SCO ODT 3.0 have their own names for install.
4967 # Don't use installbsd from OSF since it installs stuff as root
4968 # by default.
4969 for ac_prog in ginstall scoinst install; do
4970 for ac_exec_ext in '' $ac_executable_extensions; do
4971 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4972 if test $ac_prog = install &&
4973 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4974 # AIX install. It has an incompatible calling convention.
4975 :
4976 elif test $ac_prog = install &&
4977 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4978 # program-specific install script used by HP pwplus--don't use.
4979 :
4980 else
4981 rm -rf conftest.one conftest.two conftest.dir
4982 echo one > conftest.one
4983 echo two > conftest.two
4984 mkdir conftest.dir
4985 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4986 test -s conftest.one && test -s conftest.two &&
4987 test -s conftest.dir/conftest.one &&
4988 test -s conftest.dir/conftest.two
4989 then
4990 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4991 break 3
4992 fi
4993 fi
4994 fi
4995 done
4996 done
4997 ;;
4998esac
ce2cded5 4999done
d15b04bd 5000
7357c5b6 5001rm -rf conftest.one conftest.two conftest.dir
d7040cdb 5002
42ecbf5e 5003fi
7357c5b6
AM
5004 if test "${ac_cv_path_install+set}" = set; then
5005 INSTALL=$ac_cv_path_install
5006 else
5007 # As a last resort, use the slow shell script. Don't cache a
5008 # value for INSTALL within a source directory, because that will
5009 # break other packages using the cache if that directory is
5010 # removed, or if the value is a relative name.
5011 INSTALL=$ac_install_sh
ce2cded5 5012 fi
e5a52504 5013fi
7357c5b6
AM
5014echo "$as_me:$LINENO: result: $INSTALL" >&5
5015echo "${ECHO_T}$INSTALL" >&6
e5a52504 5016
7357c5b6
AM
5017# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5018# It thinks the first close brace ends the variable substitution.
5019test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
d15b04bd 5020
7357c5b6 5021test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
42ecbf5e 5022
7357c5b6 5023test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
42ecbf5e 5024
42ecbf5e 5025
252b5132 5026
42ecbf5e 5027
7357c5b6
AM
5028macro_version='2.1a'
5029macro_revision='1.2435'
42ecbf5e 5030
252b5132 5031
42ecbf5e 5032
d15b04bd 5033
42ecbf5e 5034
252b5132 5035
e5a52504 5036
42ecbf5e 5037
42ecbf5e
DJ
5038
5039
42ecbf5e 5040
d7040cdb 5041
7357c5b6 5042ltmain="$ac_aux_dir/ltmain.sh"
d7040cdb 5043
7357c5b6
AM
5044# Set options
5045
5046enable_dlopen=no
d7040cdb 5047
d7040cdb 5048
7357c5b6
AM
5049enable_win32_dll=no
5050
5051
5052# Check whether --enable-shared or --disable-shared was given.
5053if test "${enable_shared+set}" = set; then
5054 enableval="$enable_shared"
5055 p=${PACKAGE-default}
5056 case $enableval in
5057 yes) enable_shared=yes ;;
5058 no) enable_shared=no ;;
5059 *)
5060 enable_shared=no
5061 # Look at the argument we got. We use all the common list separators.
5062 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5063 for pkg in $enableval; do
5064 IFS="$lt_save_ifs"
5065 if test "X$pkg" = "X$p"; then
5066 enable_shared=yes
5067 fi
5068 done
5069 IFS="$lt_save_ifs"
5070 ;;
5071 esac
5072else
5073 enable_shared=yes
5074fi;
42ecbf5e 5075
252b5132 5076
42ecbf5e 5077
42ecbf5e 5078
d7040cdb 5079
d7040cdb 5080
d7040cdb 5081
d7040cdb 5082
7357c5b6
AM
5083# Check whether --enable-static or --disable-static was given.
5084if test "${enable_static+set}" = set; then
5085 enableval="$enable_static"
5086 p=${PACKAGE-default}
5087 case $enableval in
5088 yes) enable_static=yes ;;
5089 no) enable_static=no ;;
5090 *)
5091 enable_static=no
5092 # Look at the argument we got. We use all the common list separators.
5093 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5094 for pkg in $enableval; do
5095 IFS="$lt_save_ifs"
5096 if test "X$pkg" = "X$p"; then
5097 enable_static=yes
5098 fi
5099 done
5100 IFS="$lt_save_ifs"
5101 ;;
5102 esac
5103else
5104 enable_static=yes
5105fi;
ce2cded5 5106
ce2cded5
L
5107
5108
42ecbf5e 5109
42ecbf5e 5110
42ecbf5e 5111
42ecbf5e 5112
d7040cdb 5113
d7040cdb 5114
7357c5b6
AM
5115# Check whether --with-pic or --without-pic was given.
5116if test "${with_pic+set}" = set; then
5117 withval="$with_pic"
5118 pic_mode="$withval"
5119else
5120 pic_mode=default
5121fi;
42ecbf5e 5122
7357c5b6 5123test -z "$pic_mode" && pic_mode=default
d7040cdb 5124
d7040cdb 5125
d7040cdb
SE
5126
5127
d7040cdb 5128
d7040cdb 5129
42ecbf5e 5130
7357c5b6
AM
5131# Check whether --enable-fast-install or --disable-fast-install was given.
5132if test "${enable_fast_install+set}" = set; then
5133 enableval="$enable_fast_install"
5134 p=${PACKAGE-default}
5135 case $enableval in
5136 yes) enable_fast_install=yes ;;
5137 no) enable_fast_install=no ;;
5138 *)
5139 enable_fast_install=no
5140 # Look at the argument we got. We use all the common list separators.
5141 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5142 for pkg in $enableval; do
5143 IFS="$lt_save_ifs"
5144 if test "X$pkg" = "X$p"; then
5145 enable_fast_install=yes
5146 fi
5147 done
5148 IFS="$lt_save_ifs"
5149 ;;
5150 esac
ce2cded5 5151else
7357c5b6
AM
5152 enable_fast_install=yes
5153fi;
d7040cdb 5154
252b5132 5155
252b5132 5156
252b5132 5157
252b5132
RH
5158
5159
ce2cded5
L
5160
5161
7357c5b6
AM
5162echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5163echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5164if test "${lt_cv_path_SED+set}" = set; then
ce2cded5 5165 echo $ECHO_N "(cached) $ECHO_C" >&6
d7040cdb 5166else
7357c5b6
AM
5167 # Loop through the user's path and test for sed and gsed.
5168# Then use that list of sed's as ones to test for truncation.
5169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5170for as_dir in $PATH
5171do
5172 IFS=$as_save_IFS
5173 test -z "$as_dir" && as_dir=.
5174 for lt_ac_prog in sed gsed; do
5175 for ac_exec_ext in '' $ac_executable_extensions; do
5176 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5177 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5178 fi
5179 done
5180 done
5181done
5182IFS=$as_save_IFS
5183lt_ac_max=0
5184lt_ac_count=0
5185# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5186# along with /bin/sed that truncates output.
5187for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5188 test ! -f $lt_ac_sed && continue
5189 cat /dev/null > conftest.in
5190 lt_ac_count=0
5191 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5192 # Check for GNU sed and select it if it is found.
5193 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5194 lt_cv_path_SED=$lt_ac_sed
5195 break
ce2cded5 5196 fi
7357c5b6
AM
5197 while true; do
5198 cat conftest.in conftest.in >conftest.tmp
5199 mv conftest.tmp conftest.in
5200 cp conftest.in conftest.nl
5201 echo >>conftest.nl
5202 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5203 cmp -s conftest.out conftest.nl || break
5204 # 10000 chars as input seems more than enough
5205 test $lt_ac_count -gt 10 && break
5206 lt_ac_count=`expr $lt_ac_count + 1`
5207 if test $lt_ac_count -gt $lt_ac_max; then
5208 lt_ac_max=$lt_ac_count
5209 lt_cv_path_SED=$lt_ac_sed
5210 fi
5211 done
5212done
20e95c23 5213
7357c5b6 5214fi
20e95c23 5215
7357c5b6 5216SED=$lt_cv_path_SED
20e95c23 5217
7357c5b6
AM
5218echo "$as_me:$LINENO: result: $SED" >&5
5219echo "${ECHO_T}$SED" >&6
20e95c23 5220
7357c5b6
AM
5221test -z "$SED" && SED=sed
5222Xsed="$SED -e 1s/^X//"
20e95c23
DJ
5223
5224
5225
5226
5227
5228
20e95c23 5229
20e95c23 5230
d7040cdb 5231
d7040cdb 5232
7357c5b6
AM
5233
5234echo "$as_me:$LINENO: checking for fgrep" >&5
5235echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
5236if test "${ac_cv_prog_fgrep+set}" = set; then
5237 echo $ECHO_N "(cached) $ECHO_C" >&6
5238else
5239 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
5240 then ac_cv_prog_fgrep='grep -F'
5241 else ac_cv_prog_fgrep='fgrep'
5242 fi
20e95c23 5243fi
7357c5b6
AM
5244echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
5245echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
5246 FGREP=$ac_cv_prog_fgrep
5247
5248
5249test -z "$GREP" && GREP=grep
5250
d7040cdb
SE
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
20e95c23 5262
ce2cded5 5263
d7040cdb 5264
7357c5b6
AM
5265
5266
5267
5268
5269# Check whether --with-gnu-ld or --without-gnu-ld was given.
5270if test "${with_gnu_ld+set}" = set; then
5271 withval="$with_gnu_ld"
5272 test "$withval" = no || with_gnu_ld=yes
5273else
5274 with_gnu_ld=no
5275fi;
5276ac_prog=ld
5277if test "$GCC" = yes; then
5278 # Check if gcc -print-prog-name=ld gives a path.
5279 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5280echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5281 case $host in
5282 *-*-mingw*)
5283 # gcc leaves a trailing carriage return which upsets mingw
5284 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5285 *)
5286 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5287 esac
5288 case $ac_prog in
5289 # Accept absolute paths.
5290 [\\/]* | ?:[\\/]*)
5291 re_direlt='/[^/][^/]*/\.\./'
5292 # Canonicalize the pathname of ld
5293 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5294 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5295 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5296 done
5297 test -z "$LD" && LD="$ac_prog"
5298 ;;
5299 "")
5300 # If it fails, then pretend we aren't using GCC.
5301 ac_prog=ld
5302 ;;
5303 *)
5304 # If it is relative, then search for the first ld in PATH.
5305 with_gnu_ld=unknown
5306 ;;
5307 esac
5308elif test "$with_gnu_ld" = yes; then
5309 echo "$as_me:$LINENO: checking for GNU ld" >&5
5310echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5311else
5312 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5313echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
ce2cded5 5314fi
7357c5b6 5315if test "${lt_cv_path_LD+set}" = set; then
ce2cded5
L
5316 echo $ECHO_N "(cached) $ECHO_C" >&6
5317else
7357c5b6
AM
5318 if test -z "$LD"; then
5319 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5320 for ac_dir in $PATH; do
5321 IFS="$lt_save_ifs"
5322 test -z "$ac_dir" && ac_dir=.
5323 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5324 lt_cv_path_LD="$ac_dir/$ac_prog"
5325 # Check to see if the program is GNU ld. I'd rather use --version,
5326 # but apparently some variants of GNU ld only accept -v.
5327 # Break only if it was the GNU/non-GNU ld that we prefer.
5328 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5329 *GNU* | *'with BFD'*)
5330 test "$with_gnu_ld" != no && break
5331 ;;
5332 *)
5333 test "$with_gnu_ld" != yes && break
5334 ;;
5335 esac
5336 fi
5337 done
5338 IFS="$lt_save_ifs"
ce2cded5 5339else
7357c5b6 5340 lt_cv_path_LD="$LD" # Let the user override the test with a path.
ce2cded5
L
5341fi
5342fi
7357c5b6
AM
5343
5344LD="$lt_cv_path_LD"
5345if test -n "$LD"; then
5346 echo "$as_me:$LINENO: result: $LD" >&5
5347echo "${ECHO_T}$LD" >&6
ce2cded5
L
5348else
5349 echo "$as_me:$LINENO: result: no" >&5
5350echo "${ECHO_T}no" >&6
5351fi
7357c5b6
AM
5352test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5353echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5354 { (exit 1); exit 1; }; }
5355echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5356echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5357if test "${lt_cv_prog_gnu_ld+set}" = set; then
5358 echo $ECHO_N "(cached) $ECHO_C" >&6
ce2cded5 5359else
7357c5b6
AM
5360 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5361case `$LD -v 2>&1 </dev/null` in
5362*GNU* | *'with BFD'*)
5363 lt_cv_prog_gnu_ld=yes
5364 ;;
5365*)
5366 lt_cv_prog_gnu_ld=no
5367 ;;
5368esac
ce2cded5 5369fi
7357c5b6
AM
5370echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5371echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5372with_gnu_ld=$lt_cv_prog_gnu_ld
d7040cdb
SE
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
7357c5b6
AM
5383echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5384echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
5385if test "${lt_cv_path_NM+set}" = set; then
ce2cded5
L
5386 echo $ECHO_N "(cached) $ECHO_C" >&6
5387else
7357c5b6
AM
5388 if test -n "$NM"; then
5389 # Let the user override the test.
5390 lt_cv_path_NM="$NM"
ce2cded5 5391else
7357c5b6
AM
5392 lt_nm_to_check="${ac_tool_prefix}nm"
5393 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5394 lt_nm_to_check="$lt_nm_to_check nm"
20e95c23 5395 fi
7357c5b6
AM
5396 for lt_tmp_nm in $lt_nm_to_check; do
5397 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5398 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5399 IFS="$lt_save_ifs"
5400 test -z "$ac_dir" && ac_dir=.
5401 tmp_nm="$ac_dir/$lt_tmp_nm"
5402 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5403 # Check to see if the nm accepts a BSD-compat flag.
5404 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5405 # nm: unknown option "B" ignored
5406 # Tru64's nm complains that /dev/null is an invalid object file
5407 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5408 */dev/null* | *'Invalid file or object type'*)
5409 lt_cv_path_NM="$tmp_nm -B"
5410 break
5411 ;;
5412 *)
5413 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5414 */dev/null*)
5415 lt_cv_path_NM="$tmp_nm -p"
5416 break
5417 ;;
5418 *)
5419 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5420 continue # so that we can try to find one that supports BSD flags
5421 ;;
5422 esac
5423 ;;
5424 esac
5425 fi
5426 done
5427 IFS="$lt_save_ifs"
5428 done
5429 : ${lt_cv_path_NM=no}
ce2cded5
L
5430fi
5431fi
7357c5b6
AM
5432echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5433echo "${ECHO_T}$lt_cv_path_NM" >&6
5434if test "$lt_cv_path_NM" != "no"; then
5435 NM="$lt_cv_path_NM"
ce2cded5 5436else
7357c5b6
AM
5437 # Didn't find any BSD compatible name lister, look for dumpbin.
5438 if test -n "$ac_tool_prefix"; then
5439 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5440 do
5441 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5442set dummy $ac_tool_prefix$ac_prog; ac_word=$2
ce2cded5
L
5443echo "$as_me:$LINENO: checking for $ac_word" >&5
5444echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7357c5b6 5445if test "${ac_cv_prog_DUMPBIN+set}" = set; then
20e95c23
DJ
5446 echo $ECHO_N "(cached) $ECHO_C" >&6
5447else
7357c5b6
AM
5448 if test -n "$DUMPBIN"; then
5449 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
ce2cded5
L
5450else
5451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5452for as_dir in $PATH
5453do
5454 IFS=$as_save_IFS
5455 test -z "$as_dir" && as_dir=.
5456 for ac_exec_ext in '' $ac_executable_extensions; do
5457 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357c5b6 5458 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
ce2cded5
L
5459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5460 break 2
5461 fi
5462done
5463done
d7040cdb 5464
20e95c23 5465fi
ce2cded5 5466fi
7357c5b6
AM
5467DUMPBIN=$ac_cv_prog_DUMPBIN
5468if test -n "$DUMPBIN"; then
5469 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5470echo "${ECHO_T}$DUMPBIN" >&6
42ecbf5e
DJ
5471else
5472 echo "$as_me:$LINENO: result: no" >&5
5473echo "${ECHO_T}no" >&6
5474fi
5475
7357c5b6
AM
5476 test -n "$DUMPBIN" && break
5477 done
ce2cded5 5478fi
7357c5b6
AM
5479if test -z "$DUMPBIN"; then
5480 ac_ct_DUMPBIN=$DUMPBIN
5481 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5482do
5483 # Extract the first word of "$ac_prog", so it can be a program name with args.
5484set dummy $ac_prog; ac_word=$2
ce2cded5
L
5485echo "$as_me:$LINENO: checking for $ac_word" >&5
5486echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7357c5b6 5487if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
42ecbf5e
DJ
5488 echo $ECHO_N "(cached) $ECHO_C" >&6
5489else
7357c5b6
AM
5490 if test -n "$ac_ct_DUMPBIN"; then
5491 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
ce2cded5
L
5492else
5493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5494for as_dir in $PATH
5495do
5496 IFS=$as_save_IFS
5497 test -z "$as_dir" && as_dir=.
5498 for ac_exec_ext in '' $ac_executable_extensions; do
5499 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357c5b6 5500 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
ce2cded5
L
5501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5502 break 2
5503 fi
5504done
5505done
d7040cdb 5506
ce2cded5
L
5507fi
5508fi
7357c5b6
AM
5509ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5510if test -n "$ac_ct_DUMPBIN"; then
5511 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5512echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
ce2cded5
L
5513else
5514 echo "$as_me:$LINENO: result: no" >&5
5515echo "${ECHO_T}no" >&6
5516fi
d7040cdb 5517
7357c5b6 5518 test -n "$ac_ct_DUMPBIN" && break
ce2cded5 5519done
7357c5b6 5520test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
d7040cdb 5521
7357c5b6 5522 DUMPBIN=$ac_ct_DUMPBIN
ce2cded5 5523fi
7357c5b6
AM
5524
5525
5526 if test "$DUMPBIN" != ":"; then
5527 NM="$DUMPBIN"
5528 fi
ce2cded5 5529fi
7357c5b6
AM
5530test -z "$NM" && NM=nm
5531
5532
5533
5534
5535
5536
5537echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5538echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
5539if test "${lt_cv_nm_interface+set}" = set; then
5540 echo $ECHO_N "(cached) $ECHO_C" >&6
20e95c23 5541else
7357c5b6
AM
5542 lt_cv_nm_interface="BSD nm"
5543 echo "int some_variable = 0;" > conftest.$ac_ext
5544 (eval echo "\"\$as_me:5544: $ac_compile\"" >&5)
5545 (eval "$ac_compile" 2>conftest.err)
5546 cat conftest.err >&5
5547 (eval echo "\"\$as_me:5547: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5548 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5549 cat conftest.err >&5
5550 (eval echo "\"\$as_me:5550: output\"" >&5)
5551 cat conftest.out >&5
5552 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5553 lt_cv_nm_interface="MS dumpbin"
5554 fi
5555 rm -f conftest*
20e95c23 5556fi
7357c5b6
AM
5557echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5558echo "${ECHO_T}$lt_cv_nm_interface" >&6
20e95c23 5559
7357c5b6
AM
5560echo "$as_me:$LINENO: checking whether ln -s works" >&5
5561echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5562LN_S=$as_ln_s
5563if test "$LN_S" = "ln -s"; then
5564 echo "$as_me:$LINENO: result: yes" >&5
5565echo "${ECHO_T}yes" >&6
ce2cded5 5566else
7357c5b6
AM
5567 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5568echo "${ECHO_T}no, using $LN_S" >&6
d7040cdb 5569fi
20e95c23 5570
7357c5b6
AM
5571# find the maximum length of command line arguments
5572echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5573echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5574if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5575 echo $ECHO_N "(cached) $ECHO_C" >&6
5576else
5577 i=0
5578 teststring="ABCD"
20e95c23 5579
7357c5b6
AM
5580 case $build_os in
5581 msdosdjgpp*)
5582 # On DJGPP, this test can blow up pretty badly due to problems in libc
5583 # (any single argument exceeding 2000 bytes causes a buffer overrun
5584 # during glob expansion). Even if it were fixed, the result of this
5585 # check would be larger than it should be.
5586 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5587 ;;
20e95c23 5588
7357c5b6
AM
5589 gnu*)
5590 # Under GNU Hurd, this test is not required because there is
5591 # no limit to the length of command line arguments.
5592 # Libtool will interpret -1 as no limit whatsoever
5593 lt_cv_sys_max_cmd_len=-1;
5594 ;;
20e95c23 5595
7357c5b6
AM
5596 cygwin* | mingw*)
5597 # On Win9x/ME, this test blows up -- it succeeds, but takes
5598 # about 5 minutes as the teststring grows exponentially.
5599 # Worse, since 9x/ME are not pre-emptively multitasking,
5600 # you end up with a "frozen" computer, even though with patience
5601 # the test eventually succeeds (with a max line length of 256k).
5602 # Instead, let's just punt: use the minimum linelength reported by
5603 # all of the supported platforms: 8192 (on NT/2K/XP).
5604 lt_cv_sys_max_cmd_len=8192;
5605 ;;
20e95c23 5606
7357c5b6
AM
5607 amigaos*)
5608 # On AmigaOS with pdksh, this test takes hours, literally.
5609 # So we just punt and use a minimum line length of 8192.
5610 lt_cv_sys_max_cmd_len=8192;
5611 ;;
20e95c23 5612
7357c5b6
AM
5613 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5614 # This has been around since 386BSD, at least. Likely further.
5615 if test -x /sbin/sysctl; then
5616 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5617 elif test -x /usr/sbin/sysctl; then
5618 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5619 else
5620 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5621 fi
5622 # And add a safety zone
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 ;;
d7040cdb 5626
7357c5b6
AM
5627 interix*)
5628 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5629 lt_cv_sys_max_cmd_len=196608
5630 ;;
d7040cdb 5631
7357c5b6
AM
5632 osf*)
5633 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5634 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5635 # nice to cause kernel panics so lets avoid the loop below.
5636 # First set a reasonable default.
5637 lt_cv_sys_max_cmd_len=16384
5638 #
5639 if test -x /sbin/sysconfig; then
5640 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5641 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5642 esac
5643 fi
5644 ;;
5645 sco3.2v5*)
5646 lt_cv_sys_max_cmd_len=102400
5647 ;;
5648 sysv5* | sco5v6* | sysv4.2uw2*)
5649 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5650 if test -n "$kargmax"; then
5651 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5652 else
5653 lt_cv_sys_max_cmd_len=32768
5654 fi
ce2cded5
L
5655 ;;
5656 *)
7357c5b6
AM
5657 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
5658 if test -n $lt_cv_sys_max_cmd_len; then
5659 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5660 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5661 else
5662 # Make teststring a little bigger before we do anything with it.
5663 # a 1K string should be a reasonable start.
5664 for i in 1 2 3 4 5 6 7 8 ; do
5665 teststring=$teststring$teststring
5666 done
5667 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5668 # If test is not a shell built-in, we'll probably end up computing a
5669 # maximum length that is only half of the actual maximum length, but
5670 # we can't tell.
5671 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5672 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5673 test $i != 17 # 1/2 MB should be enough
5674 do
5675 i=`expr $i + 1`
5676 teststring=$teststring$teststring
5677 done
5678 # Only check the string length outside the loop.
5679 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5680 teststring=
5681 # Add a significant safety factor because C++ compilers can tack on
5682 # massive amounts of additional arguments before passing them to the
5683 # linker. It appears as though 1/2 is a usable value.
5684 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5685 fi
ce2cded5
L
5686 ;;
5687 esac
d7040cdb 5688
7357c5b6 5689fi
d7040cdb 5690
7357c5b6
AM
5691if test -n $lt_cv_sys_max_cmd_len ; then
5692 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5693echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5694else
5695 echo "$as_me:$LINENO: result: none" >&5
5696echo "${ECHO_T}none" >&6
5697fi
5698max_cmd_len=$lt_cv_sys_max_cmd_len
d7040cdb
SE
5699
5700
5701
5702
5703
d7040cdb 5704
d7040cdb 5705
7357c5b6
AM
5706: ${CP="cp -f"}
5707: ${MV="mv -f"}
5708: ${RM="rm -f"}
d7040cdb 5709
7357c5b6
AM
5710echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5711echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
5712# Try some XSI features
5713xsi_shell=no
5714( _lt_dummy="a/b/c"
5715 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5716 = c,a/b,, ) >/dev/null 2>&1 \
5717 && xsi_shell=yes
5718echo "$as_me:$LINENO: result: $xsi_shell" >&5
5719echo "${ECHO_T}$xsi_shell" >&6
d7040cdb 5720
d7040cdb 5721
7357c5b6
AM
5722echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5723echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
5724lt_shell_append=no
5725( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5726 >/dev/null 2>&1 \
5727 && lt_shell_append=yes
5728echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5729echo "${ECHO_T}$lt_shell_append" >&6
d7040cdb
SE
5730
5731
7357c5b6
AM
5732if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5733 lt_unset=unset
5734else
5735 lt_unset=false
5736fi
d7040cdb 5737
d7040cdb 5738
d7040cdb 5739
d7040cdb 5740
d7040cdb 5741
7357c5b6
AM
5742# test EBCDIC or ASCII
5743case `echo X|tr X '\101'` in
5744 A) # ASCII based system
5745 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5746 lt_SP2NL='tr \040 \012'
5747 lt_NL2SP='tr \015\012 \040\040'
5748 ;;
5749 *) # EBCDIC based system
5750 lt_SP2NL='tr \100 \n'
5751 lt_NL2SP='tr \r\n \100\100'
5752 ;;
5753esac
42ecbf5e 5754
d7040cdb
SE
5755
5756
5757
5758
5759
5760
d7040cdb 5761
d7040cdb 5762
7357c5b6
AM
5763echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5764echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5765if test "${lt_cv_ld_reload_flag+set}" = set; then
5766 echo $ECHO_N "(cached) $ECHO_C" >&6
5767else
5768 lt_cv_ld_reload_flag='-r'
5769fi
5770echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5771echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5772reload_flag=$lt_cv_ld_reload_flag
5773case $reload_flag in
5774"" | " "*) ;;
5775*) reload_flag=" $reload_flag" ;;
5776esac
5777reload_cmds='$LD$reload_flag -o $output$reload_objs'
5778case $host_os in
5779 darwin*)
5780 if test "$GCC" = yes; then
5781 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5782 else
5783 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5784 fi
5785 ;;
5786esac
d7040cdb 5787
d7040cdb 5788
d7040cdb 5789
d7040cdb 5790
d7040cdb 5791
d7040cdb 5792
d7040cdb 5793
d7040cdb 5794
d7040cdb 5795
d7040cdb 5796
7357c5b6
AM
5797echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5798echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
5799if test "${lt_cv_deplibs_check_method+set}" = set; then
ce2cded5
L
5800 echo $ECHO_N "(cached) $ECHO_C" >&6
5801else
7357c5b6
AM
5802 lt_cv_file_magic_cmd='$MAGIC_CMD'
5803lt_cv_file_magic_test_file=
5804lt_cv_deplibs_check_method='unknown'
5805# Need to set the preceding variable on all platforms that support
5806# interlibrary dependencies.
5807# 'none' -- dependencies not supported.
5808# `unknown' -- same as none, but documents that we really don't know.
5809# 'pass_all' -- all dependencies passed with no checks.
5810# 'test_compile' -- check by making test program.
5811# 'file_magic [[regex]]' -- check by looking for files in library path
5812# which responds to the $file_magic_cmd with a given extended regex.
5813# If you have `file' or equivalent on your system and you're not sure
5814# whether `pass_all' will *always* work, you probably want this one.
d7040cdb 5815
ce2cded5 5816case $host_os in
7357c5b6
AM
5817aix[4-9]*)
5818 lt_cv_deplibs_check_method=pass_all
ce2cded5 5819 ;;
7357c5b6
AM
5820
5821beos*)
5822 lt_cv_deplibs_check_method=pass_all
ce2cded5 5823 ;;
7357c5b6
AM
5824
5825bsdi[45]*)
5826 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5827 lt_cv_file_magic_cmd='/usr/bin/file -L'
5828 lt_cv_file_magic_test_file=/shlib/libc.so
ce2cded5 5829 ;;
7357c5b6
AM
5830
5831cygwin*)
5832 # func_win32_libid is a shell function defined in ltmain.sh
5833 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5834 lt_cv_file_magic_cmd='func_win32_libid'
ce2cded5 5835 ;;
7357c5b6
AM
5836
5837mingw* | pw32*)
5838 # Base MSYS/MinGW do not provide the 'file' command needed by
5839 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5840 # unless we find 'file', for example because we are cross-compiling.
5841 if ( file / ) >/dev/null 2>&1; then
5842 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5843 lt_cv_file_magic_cmd='func_win32_libid'
5844 else
5845 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5846 lt_cv_file_magic_cmd='$OBJDUMP -f'
5847 fi
ce2cded5 5848 ;;
7357c5b6
AM
5849
5850darwin* | rhapsody*)
5851 lt_cv_deplibs_check_method=pass_all
ce2cded5 5852 ;;
7357c5b6
AM
5853
5854freebsd* | dragonfly*)
5855 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5856 case $host_cpu in
5857 i*86 )
5858 # Not sure whether the presence of OpenBSD here was a mistake.
5859 # Let's accept both of them until this is cleared up.
5860 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5861 lt_cv_file_magic_cmd=/usr/bin/file
5862 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5863 ;;
5864 esac
5865 else
5866 lt_cv_deplibs_check_method=pass_all
5867 fi
ce2cded5 5868 ;;
7357c5b6
AM
5869
5870gnu*)
5871 lt_cv_deplibs_check_method=pass_all
ce2cded5 5872 ;;
7357c5b6
AM
5873
5874hpux10.20* | hpux11*)
5875 lt_cv_file_magic_cmd=/usr/bin/file
5876 case $host_cpu in
5877 ia64*)
5878 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5879 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5880 ;;
5881 hppa*64*)
5882 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]'
5883 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5884 ;;
5885 *)
5886 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5887 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5888 ;;
5889 esac
ce2cded5 5890 ;;
d7040cdb 5891
7357c5b6
AM
5892interix[3-9]*)
5893 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5894 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5895 ;;
d7040cdb 5896
7357c5b6
AM
5897irix5* | irix6* | nonstopux*)
5898 case $LD in
5899 *-32|*"-32 ") libmagic=32-bit;;
5900 *-n32|*"-n32 ") libmagic=N32;;
5901 *-64|*"-64 ") libmagic=64-bit;;
5902 *) libmagic=never-match;;
5903 esac
5904 lt_cv_deplibs_check_method=pass_all
5905 ;;
d7040cdb 5906
7357c5b6
AM
5907# This must be Linux ELF.
5908linux* | k*bsd*-gnu)
5909 lt_cv_deplibs_check_method=pass_all
5910 ;;
d7040cdb 5911
7357c5b6
AM
5912netbsd*)
5913 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5914 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5915 else
5916 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5917 fi
ce2cded5 5918 ;;
d7040cdb 5919
7357c5b6
AM
5920newos6*)
5921 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5922 lt_cv_file_magic_cmd=/usr/bin/file
5923 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5924 ;;
d7040cdb 5925
7357c5b6
AM
5926*nto* | *qnx*)
5927 lt_cv_deplibs_check_method=pass_all
5928 ;;
d7040cdb 5929
7357c5b6
AM
5930openbsd*)
5931 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5932 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
ce2cded5 5933 else
7357c5b6 5934 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
ce2cded5 5935 fi
7357c5b6 5936 ;;
d7040cdb 5937
7357c5b6
AM
5938osf3* | osf4* | osf5*)
5939 lt_cv_deplibs_check_method=pass_all
5940 ;;
d7040cdb 5941
7357c5b6
AM
5942rdos*)
5943 lt_cv_deplibs_check_method=pass_all
5944 ;;
d7040cdb 5945
7357c5b6
AM
5946solaris*)
5947 lt_cv_deplibs_check_method=pass_all
5948 ;;
d7040cdb 5949
7357c5b6
AM
5950sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5951 lt_cv_deplibs_check_method=pass_all
5952 ;;
d7040cdb 5953
7357c5b6
AM
5954sysv4 | sysv4.3*)
5955 case $host_vendor in
5956 motorola)
5957 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]'
5958 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5959 ;;
5960 ncr)
5961 lt_cv_deplibs_check_method=pass_all
5962 ;;
5963 sequent)
5964 lt_cv_file_magic_cmd='/bin/file'
5965 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5966 ;;
5967 sni)
5968 lt_cv_file_magic_cmd='/bin/file'
5969 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5970 lt_cv_file_magic_test_file=/lib/libc.so
5971 ;;
5972 siemens)
5973 lt_cv_deplibs_check_method=pass_all
5974 ;;
5975 pc)
5976 lt_cv_deplibs_check_method=pass_all
5977 ;;
5978 esac
5979 ;;
d7040cdb 5980
7357c5b6
AM
5981tpf*)
5982 lt_cv_deplibs_check_method=pass_all
5983 ;;
5984esac
d7040cdb 5985
7357c5b6
AM
5986fi
5987echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5988echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5989file_magic_cmd=$lt_cv_file_magic_cmd
5990deplibs_check_method=$lt_cv_deplibs_check_method
5991test -z "$deplibs_check_method" && deplibs_check_method=unknown
d7040cdb
SE
5992
5993
5994
7357c5b6
AM
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004if test -n "$ac_tool_prefix"; then
6005 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6006set dummy ${ac_tool_prefix}ar; ac_word=$2
6007echo "$as_me:$LINENO: checking for $ac_word" >&5
6008echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6009if test "${ac_cv_prog_AR+set}" = set; then
6010 echo $ECHO_N "(cached) $ECHO_C" >&6
6011else
6012 if test -n "$AR"; then
6013 ac_cv_prog_AR="$AR" # Let the user override the test.
6014else
6015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6016for as_dir in $PATH
6017do
6018 IFS=$as_save_IFS
6019 test -z "$as_dir" && as_dir=.
6020 for ac_exec_ext in '' $ac_executable_extensions; do
6021 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6022 ac_cv_prog_AR="${ac_tool_prefix}ar"
6023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6024 break 2
ce2cded5
L
6025 fi
6026done
7357c5b6 6027done
d7040cdb 6028
42ecbf5e 6029fi
ce2cded5 6030fi
7357c5b6
AM
6031AR=$ac_cv_prog_AR
6032if test -n "$AR"; then
6033 echo "$as_me:$LINENO: result: $AR" >&5
6034echo "${ECHO_T}$AR" >&6
42ecbf5e 6035else
7357c5b6
AM
6036 echo "$as_me:$LINENO: result: no" >&5
6037echo "${ECHO_T}no" >&6
42ecbf5e
DJ
6038fi
6039
7357c5b6
AM
6040fi
6041if test -z "$ac_cv_prog_AR"; then
6042 ac_ct_AR=$AR
6043 # Extract the first word of "ar", so it can be a program name with args.
6044set dummy ar; ac_word=$2
6045echo "$as_me:$LINENO: checking for $ac_word" >&5
6046echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6047if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6048 echo $ECHO_N "(cached) $ECHO_C" >&6
6049else
6050 if test -n "$ac_ct_AR"; then
6051 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6052else
6053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6054for as_dir in $PATH
6055do
6056 IFS=$as_save_IFS
6057 test -z "$as_dir" && as_dir=.
6058 for ac_exec_ext in '' $ac_executable_extensions; do
6059 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6060 ac_cv_prog_ac_ct_AR="ar"
6061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6062 break 2
6063 fi
6064done
6065done
42ecbf5e 6066
7357c5b6
AM
6067 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6068fi
6069fi
6070ac_ct_AR=$ac_cv_prog_ac_ct_AR
6071if test -n "$ac_ct_AR"; then
6072 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6073echo "${ECHO_T}$ac_ct_AR" >&6
6074else
6075 echo "$as_me:$LINENO: result: no" >&5
6076echo "${ECHO_T}no" >&6
6077fi
d7040cdb 6078
7357c5b6
AM
6079 AR=$ac_ct_AR
6080else
6081 AR="$ac_cv_prog_AR"
6082fi
d7040cdb 6083
7357c5b6
AM
6084test -z "$AR" && AR=ar
6085test -z "$AR_FLAGS" && AR_FLAGS=cru
d7040cdb
SE
6086
6087
6088
20e95c23 6089
d7040cdb 6090
d7040cdb
SE
6091
6092
6093
6094
6095
6096
7357c5b6
AM
6097if test -n "$ac_tool_prefix"; then
6098 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6099set dummy ${ac_tool_prefix}strip; ac_word=$2
6100echo "$as_me:$LINENO: checking for $ac_word" >&5
6101echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6102if test "${ac_cv_prog_STRIP+set}" = set; then
6103 echo $ECHO_N "(cached) $ECHO_C" >&6
6104else
6105 if test -n "$STRIP"; then
6106 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6107else
6108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6109for as_dir in $PATH
6110do
6111 IFS=$as_save_IFS
6112 test -z "$as_dir" && as_dir=.
6113 for ac_exec_ext in '' $ac_executable_extensions; do
6114 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6115 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6117 break 2
ce2cded5 6118 fi
7357c5b6
AM
6119done
6120done
d7040cdb 6121
7357c5b6
AM
6122fi
6123fi
6124STRIP=$ac_cv_prog_STRIP
6125if test -n "$STRIP"; then
6126 echo "$as_me:$LINENO: result: $STRIP" >&5
6127echo "${ECHO_T}$STRIP" >&6
6128else
6129 echo "$as_me:$LINENO: result: no" >&5
6130echo "${ECHO_T}no" >&6
6131fi
6132
6133fi
6134if test -z "$ac_cv_prog_STRIP"; then
6135 ac_ct_STRIP=$STRIP
6136 # Extract the first word of "strip", so it can be a program name with args.
6137set dummy strip; ac_word=$2
6138echo "$as_me:$LINENO: checking for $ac_word" >&5
6139echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6140if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6141 echo $ECHO_N "(cached) $ECHO_C" >&6
6142else
6143 if test -n "$ac_ct_STRIP"; then
6144 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6145else
6146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6147for as_dir in $PATH
6148do
6149 IFS=$as_save_IFS
6150 test -z "$as_dir" && as_dir=.
6151 for ac_exec_ext in '' $ac_executable_extensions; do
6152 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6153 ac_cv_prog_ac_ct_STRIP="strip"
6154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6155 break 2
ce2cded5 6156 fi
7357c5b6
AM
6157done
6158done
d7040cdb 6159
7357c5b6
AM
6160 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6161fi
6162fi
6163ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6164if test -n "$ac_ct_STRIP"; then
6165 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6166echo "${ECHO_T}$ac_ct_STRIP" >&6
20e95c23 6167else
7357c5b6
AM
6168 echo "$as_me:$LINENO: result: no" >&5
6169echo "${ECHO_T}no" >&6
6170fi
d7040cdb 6171
7357c5b6
AM
6172 STRIP=$ac_ct_STRIP
6173else
6174 STRIP="$ac_cv_prog_STRIP"
6175fi
d7040cdb 6176
7357c5b6 6177test -z "$STRIP" && STRIP=:
d7040cdb 6178
d7040cdb
SE
6179
6180
6181
d7040cdb 6182
7357c5b6
AM
6183
6184if test -n "$ac_tool_prefix"; then
6185 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6186set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6187echo "$as_me:$LINENO: checking for $ac_word" >&5
6188echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6189if test "${ac_cv_prog_RANLIB+set}" = set; then
ce2cded5
L
6190 echo $ECHO_N "(cached) $ECHO_C" >&6
6191else
7357c5b6
AM
6192 if test -n "$RANLIB"; then
6193 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6194else
6195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6196for as_dir in $PATH
ce2cded5 6197do
7357c5b6
AM
6198 IFS=$as_save_IFS
6199 test -z "$as_dir" && as_dir=.
6200 for ac_exec_ext in '' $ac_executable_extensions; do
6201 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6202 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6204 break 2
ce2cded5 6205 fi
7357c5b6
AM
6206done
6207done
6208
ce2cded5 6209fi
7357c5b6
AM
6210fi
6211RANLIB=$ac_cv_prog_RANLIB
6212if test -n "$RANLIB"; then
6213 echo "$as_me:$LINENO: result: $RANLIB" >&5
6214echo "${ECHO_T}$RANLIB" >&6
ce2cded5 6215else
7357c5b6
AM
6216 echo "$as_me:$LINENO: result: no" >&5
6217echo "${ECHO_T}no" >&6
ce2cded5 6218fi
d7040cdb 6219
7357c5b6
AM
6220fi
6221if test -z "$ac_cv_prog_RANLIB"; then
6222 ac_ct_RANLIB=$RANLIB
6223 # Extract the first word of "ranlib", so it can be a program name with args.
6224set dummy ranlib; ac_word=$2
6225echo "$as_me:$LINENO: checking for $ac_word" >&5
6226echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6227if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6228 echo $ECHO_N "(cached) $ECHO_C" >&6
ce2cded5 6229else
7357c5b6
AM
6230 if test -n "$ac_ct_RANLIB"; then
6231 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6232else
6233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6234for as_dir in $PATH
6235do
6236 IFS=$as_save_IFS
6237 test -z "$as_dir" && as_dir=.
6238 for ac_exec_ext in '' $ac_executable_extensions; do
6239 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6240 ac_cv_prog_ac_ct_RANLIB="ranlib"
6241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6242 break 2
6243 fi
6244done
6245done
6246
6247 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
ce2cded5 6248fi
7357c5b6
AM
6249fi
6250ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6251if test -n "$ac_ct_RANLIB"; then
6252 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6253echo "${ECHO_T}$ac_ct_RANLIB" >&6
ce2cded5 6254else
7357c5b6
AM
6255 echo "$as_me:$LINENO: result: no" >&5
6256echo "${ECHO_T}no" >&6
ce2cded5 6257fi
d7040cdb 6258
7357c5b6
AM
6259 RANLIB=$ac_ct_RANLIB
6260else
6261 RANLIB="$ac_cv_prog_RANLIB"
ce2cded5 6262fi
d7040cdb 6263
7357c5b6 6264test -z "$RANLIB" && RANLIB=:
d7040cdb 6265
7357c5b6
AM
6266
6267
6268
6269
6270
6271# Determine commands to create old-style static archives.
6272old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6273old_postinstall_cmds='chmod 644 $oldlib'
6274old_postuninstall_cmds=
6275
6276if test -n "$RANLIB"; then
6277 case $host_os in
6278 openbsd*)
6279 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6280 ;;
6281 *)
6282 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6283 ;;
6284 esac
6285 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
ce2cded5 6286fi
7357c5b6
AM
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321# If no C compiler was specified, use CC.
6322LTCC=${LTCC-"$CC"}
6323
6324# If no C compiler flags were specified, use CFLAGS.
6325LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6326
6327# Allow CC to be a program name with arguments.
6328compiler=$CC
6329
6330
6331# Check for command to grab the raw symbol name followed by C symbol from nm.
6332echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6333echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6334if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6335 echo $ECHO_N "(cached) $ECHO_C" >&6
ce2cded5 6336else
d7040cdb 6337
7357c5b6
AM
6338# These are sane defaults that work on at least a few old systems.
6339# [They come from Ultrix. What could be older than Ultrix?!! ;)]
d7040cdb 6340
7357c5b6
AM
6341# Character class describing NM global symbol codes.
6342symcode='[BCDEGRST]'
6343
6344# Regexp to match symbols that can be accessed directly from C.
6345sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6346
6347# Define system-specific variables.
6348case $host_os in
6349aix*)
6350 symcode='[BCDT]'
6351 ;;
6352cygwin* | mingw* | pw32*)
6353 symcode='[ABCDGISTW]'
6354 ;;
6355hpux*)
6356 if test "$host_cpu" = ia64; then
6357 symcode='[ABCDEGRST]'
ce2cded5 6358 fi
7357c5b6
AM
6359 ;;
6360irix* | nonstopux*)
6361 symcode='[BCDEGRST]'
6362 ;;
6363osf*)
6364 symcode='[BCDEGQRST]'
6365 ;;
6366solaris*)
6367 symcode='[BDRT]'
6368 ;;
6369sco3.2v5*)
6370 symcode='[DT]'
6371 ;;
6372sysv4.2uw2*)
6373 symcode='[DT]'
6374 ;;
6375sysv5* | sco5v6* | unixware* | OpenUNIX*)
6376 symcode='[ABDT]'
6377 ;;
6378sysv4)
6379 symcode='[DFNSTU]'
6380 ;;
6381esac
d7040cdb 6382
7357c5b6
AM
6383# If we're using GNU nm, then use its standard symbol codes.
6384case `$NM -V 2>&1` in
6385*GNU* | *'with BFD'*)
6386 symcode='[ABCDGIRSTW]' ;;
6387esac
d7040cdb 6388
7357c5b6
AM
6389# Transform an extracted symbol line into a proper C declaration.
6390# Some systems (esp. on ia64) link data and code symbols differently,
6391# so use this general approach.
6392lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6393
6394# Transform an extracted symbol line into symbol name and symbol address
6395lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6396
6397# Handle CRLF in mingw tool chain
6398opt_cr=
6399case $build_os in
6400mingw*)
6401 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6402 ;;
6403esac
d7040cdb 6404
7357c5b6
AM
6405# Try without a prefix underscore, then with it.
6406for ac_symprfx in "" "_"; do
d7040cdb 6407
7357c5b6
AM
6408 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6409 symxfrm="\\1 $ac_symprfx\\2 \\2"
d7040cdb 6410
7357c5b6
AM
6411 # Write the raw and C identifiers.
6412 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6413 # Fake it for dumpbin and say T for any non-static function
6414 # and D for any global variable.
6415 # Also find C++ and __fastcall symbols from MSVC++,
6416 # which start with @ or ?.
6417 lt_cv_sys_global_symbol_pipe="$AWK '"\
6418" {last_section=section; section=\$ 3};"\
6419" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6420" \$ 0!~/External *\|/{next};"\
6421" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6422" {if(hide[section]) next};"\
6423" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6424" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6425" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6426" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6427" ' prfx=^$ac_symprfx"
6428 else
6429 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6430 fi
d7040cdb 6431
7357c5b6
AM
6432 # Check to see that the pipe works correctly.
6433 pipe_works=no
d7040cdb 6434
7357c5b6
AM
6435 rm -f conftest*
6436 cat > conftest.$ac_ext <<_LT_EOF
6437#ifdef __cplusplus
6438extern "C" {
6439#endif
6440char nm_test_var;
6441void nm_test_func(void);
6442void nm_test_func(void){}
6443#ifdef __cplusplus
20e95c23 6444}
7357c5b6
AM
6445#endif
6446int main(){nm_test_var='a';nm_test_func();return(0);}
6447_LT_EOF
6448
6449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6450 (eval $ac_compile) 2>&5
20e95c23
DJ
6451 ac_status=$?
6452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357c5b6
AM
6453 (exit $ac_status); }; then
6454 # Now try to grab the symbols.
6455 nlist=conftest.nm
6456 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6457 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
20e95c23
DJ
6458 ac_status=$?
6459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357c5b6
AM
6460 (exit $ac_status); } && test -s "$nlist"; then
6461 # Try sorting and uniquifying the output.
6462 if sort "$nlist" | uniq > "$nlist"T; then
6463 mv -f "$nlist"T "$nlist"
6464 else
6465 rm -f "$nlist"T
6466 fi
d7040cdb 6467
7357c5b6
AM
6468 # Make sure that we snagged all the symbols we need.
6469 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6470 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6471 cat <<_LT_EOF > conftest.$ac_ext
6472#ifdef __cplusplus
6473extern "C" {
6474#endif
ce2cded5 6475
7357c5b6
AM
6476_LT_EOF
6477 # Now generate the symbol file.
6478 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
ce2cded5 6479
7357c5b6 6480 cat <<_LT_EOF >> conftest.$ac_ext
42ecbf5e 6481
7357c5b6
AM
6482/* The mapping between symbol names and symbols. */
6483const struct {
6484 const char *name;
6485 void *address;
6486}
6487lt__PROGRAM__LTX_preloaded_symbols[] =
6488{
6489 { "@PROGRAM@", (void *) 0 },
6490_LT_EOF
6491 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6492 cat <<\_LT_EOF >> conftest.$ac_ext
6493 {0, (void *) 0}
6494};
d7040cdb 6495
7357c5b6
AM
6496/* This works around a problem in FreeBSD linker */
6497#ifdef FREEBSD_WORKAROUND
6498static const void *lt_preloaded_setup() {
6499 return lt__PROGRAM__LTX_preloaded_symbols;
6500}
ce2cded5 6501#endif
42ecbf5e 6502
7357c5b6 6503#ifdef __cplusplus
ce2cded5 6504}
7357c5b6
AM
6505#endif
6506_LT_EOF
6507 # Now try linking the two files.
6508 mv conftest.$ac_objext conftstm.$ac_objext
6509 lt_save_LIBS="$LIBS"
6510 lt_save_CFLAGS="$CFLAGS"
6511 LIBS="conftstm.$ac_objext"
6512 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ce2cded5
L
6514 (eval $ac_link) 2>&5
6515 ac_status=$?
6516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357c5b6
AM
6517 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6518 pipe_works=yes
6519 fi
6520 LIBS="$lt_save_LIBS"
6521 CFLAGS="$lt_save_CFLAGS"
6522 else
6523 echo "cannot find nm_test_func in $nlist" >&5
6524 fi
6525 else
6526 echo "cannot find nm_test_var in $nlist" >&5
6527 fi
6528 else
6529 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6530 fi
6531 else
6532 echo "$progname: failed program was:" >&5
6533 cat conftest.$ac_ext >&5
6534 fi
6535 rm -f conftest* conftst*
6536
6537 # Do not use the global_symbol_pipe unless it works.
6538 if test "$pipe_works" = yes; then
6539 break
6540 else
6541 lt_cv_sys_global_symbol_pipe=
6542 fi
6543done
42ecbf5e 6544
ce2cded5 6545fi
7357c5b6
AM
6546
6547if test -z "$lt_cv_sys_global_symbol_pipe"; then
6548 lt_cv_sys_global_symbol_to_cdecl=
ce2cded5 6549fi
7357c5b6
AM
6550if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6551 echo "$as_me:$LINENO: result: failed" >&5
6552echo "${ECHO_T}failed" >&6
6553else
6554 echo "$as_me:$LINENO: result: ok" >&5
6555echo "${ECHO_T}ok" >&6
ce2cded5 6556fi
e5a52504 6557
d7040cdb 6558
e5a52504 6559
d7040cdb 6560
d7040cdb 6561
d7040cdb 6562
d7040cdb 6563
d7040cdb 6564
d7040cdb 6565
d7040cdb 6566
d7040cdb 6567
d7040cdb 6568
7357c5b6
AM
6569
6570
6571
6572
6573
6574# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6575if test "${enable_libtool_lock+set}" = set; then
6576 enableval="$enable_libtool_lock"
6577
6578fi;
6579test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6580
6581# Some flags need to be propagated to the compiler or linker for good
6582# libtool support.
6583case $host in
6584ia64-*-hpux*)
6585 # Find out which ABI we are using.
6586 echo 'int i;' > conftest.$ac_ext
6587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6588 (eval $ac_compile) 2>&5
6589 ac_status=$?
6590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591 (exit $ac_status); }; then
6592 case `/usr/bin/file conftest.$ac_objext` in
6593 *ELF-32*)
6594 HPUX_IA64_MODE="32"
6595 ;;
6596 *ELF-64*)
6597 HPUX_IA64_MODE="64"
6598 ;;
6599 esac
6600 fi
6601 rm -rf conftest*
6602 ;;
6603*-*-irix6*)
6604 # Find out which ABI we are using.
6605 echo '#line 6605 "configure"' > conftest.$ac_ext
6606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6607 (eval $ac_compile) 2>&5
6608 ac_status=$?
6609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610 (exit $ac_status); }; then
6611 if test "$lt_cv_prog_gnu_ld" = yes; then
6612 case `/usr/bin/file conftest.$ac_objext` in
6613 *32-bit*)
6614 LD="${LD-ld} -melf32bsmip"
6615 ;;
6616 *N32*)
6617 LD="${LD-ld} -melf32bmipn32"
6618 ;;
6619 *64-bit*)
6620 LD="${LD-ld} -melf64bmip"
6621 ;;
6622 esac
6623 else
6624 case `/usr/bin/file conftest.$ac_objext` in
6625 *32-bit*)
6626 LD="${LD-ld} -32"
6627 ;;
6628 *N32*)
6629 LD="${LD-ld} -n32"
6630 ;;
6631 *64-bit*)
6632 LD="${LD-ld} -64"
6633 ;;
6634 esac
6635 fi
6636 fi
6637 rm -rf conftest*
6638 ;;
6639
6640x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6641s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6642 # Find out which ABI we are using.
6643 echo 'int i;' > conftest.$ac_ext
6644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6645 (eval $ac_compile) 2>&5
6646 ac_status=$?
6647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648 (exit $ac_status); }; then
6649 case `/usr/bin/file conftest.o` in
6650 *32-bit*)
6651 case $host in
6652 x86_64-*kfreebsd*-gnu)
6653 LD="${LD-ld} -m elf_i386_fbsd"
6654 ;;
6655 x86_64-*linux*)
6656 LD="${LD-ld} -m elf_i386"
6657 ;;
6658 ppc64-*linux*|powerpc64-*linux*)
6659 LD="${LD-ld} -m elf32ppclinux"
6660 ;;
6661 s390x-*linux*)
6662 LD="${LD-ld} -m elf_s390"
6663 ;;
6664 sparc64-*linux*)
6665 LD="${LD-ld} -m elf32_sparc"
6666 ;;
6667 esac
6668 ;;
6669 *64-bit*)
6670 case $host in
6671 x86_64-*kfreebsd*-gnu)
6672 LD="${LD-ld} -m elf_x86_64_fbsd"
6673 ;;
6674 x86_64-*linux*)
6675 LD="${LD-ld} -m elf_x86_64"
6676 ;;
6677 ppc*-*linux*|powerpc*-*linux*)
6678 LD="${LD-ld} -m elf64ppc"
6679 ;;
6680 s390*-*linux*|s390*-*tpf*)
6681 LD="${LD-ld} -m elf64_s390"
6682 ;;
6683 sparc*-*linux*)
6684 LD="${LD-ld} -m elf64_sparc"
6685 ;;
6686 esac
6687 ;;
6688 esac
6689 fi
6690 rm -rf conftest*
6691 ;;
6692
6693*-*-sco3.2v5*)
6694 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6695 SAVE_CFLAGS="$CFLAGS"
6696 CFLAGS="$CFLAGS -belf"
6697 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6698echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6699if test "${lt_cv_cc_needs_belf+set}" = set; then
ce2cded5
L
6700 echo $ECHO_N "(cached) $ECHO_C" >&6
6701else
7357c5b6
AM
6702 ac_ext=c
6703ac_cpp='$CPP $CPPFLAGS'
6704ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6705ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6706ac_compiler_gnu=$ac_cv_c_compiler_gnu
6707
6708 cat >conftest.$ac_ext <<_ACEOF
ce2cded5
L
6709/* confdefs.h. */
6710_ACEOF
6711cat confdefs.h >>conftest.$ac_ext
6712cat >>conftest.$ac_ext <<_ACEOF
6713/* end confdefs.h. */
d7040cdb 6714
7357c5b6
AM
6715int
6716main ()
6717{
6718
6719 ;
6720 return 0;
6721}
ce2cded5 6722_ACEOF
7357c5b6
AM
6723rm -f conftest.$ac_objext conftest$ac_exeext
6724if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6725 (eval $ac_link) 2>conftest.er1
ce2cded5
L
6726 ac_status=$?
6727 grep -v '^ *+' conftest.er1 >conftest.err
6728 rm -f conftest.er1
6729 cat conftest.err >&5
6730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6731 (exit $ac_status); } &&
7357c5b6
AM
6732 { ac_try='test -z "$ac_c_werror_flag"
6733 || test ! -s conftest.err'
ce2cded5
L
6734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6735 (eval $ac_try) 2>&5
6736 ac_status=$?
6737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6738 (exit $ac_status); }; } &&
7357c5b6 6739 { ac_try='test -s conftest$ac_exeext'
ce2cded5
L
6740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6741 (eval $ac_try) 2>&5
6742 ac_status=$?
6743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744 (exit $ac_status); }; }; then
7357c5b6 6745 lt_cv_cc_needs_belf=yes
ce2cded5
L
6746else
6747 echo "$as_me: failed program was:" >&5
6748sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 6749
7357c5b6 6750lt_cv_cc_needs_belf=no
ce2cded5 6751fi
7357c5b6
AM
6752rm -f conftest.err conftest.$ac_objext \
6753 conftest$ac_exeext conftest.$ac_ext
6754 ac_ext=c
6755ac_cpp='$CPP $CPPFLAGS'
6756ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6757ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6758ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 6759
ce2cded5 6760fi
7357c5b6
AM
6761echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6762echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6763 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6764 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6765 CFLAGS="$SAVE_CFLAGS"
6766 fi
6767 ;;
6768sparc*-*solaris*)
6769 # Find out which ABI we are using.
6770 echo 'int i;' > conftest.$ac_ext
6771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6772 (eval $ac_compile) 2>&5
6773 ac_status=$?
6774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6775 (exit $ac_status); }; then
6776 case `/usr/bin/file conftest.o` in
6777 *64-bit*)
6778 case $lt_cv_prog_gnu_ld in
6779 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6780 *) LD="${LD-ld} -64" ;;
6781 esac
6782 ;;
6783 esac
6784 fi
6785 rm -rf conftest*
6786 ;;
6787esac
ce2cded5 6788
7357c5b6 6789need_locks="$enable_libtool_lock"
ce2cded5
L
6790
6791
6792for ac_header in dlfcn.h
6793do
6794as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6795echo "$as_me:$LINENO: checking for $ac_header" >&5
6796echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6797if eval "test \"\${$as_ac_Header+set}\" = set"; then
6798 echo $ECHO_N "(cached) $ECHO_C" >&6
6799else
6800 cat >conftest.$ac_ext <<_ACEOF
6801/* confdefs.h. */
42ecbf5e 6802_ACEOF
ce2cded5
L
6803cat confdefs.h >>conftest.$ac_ext
6804cat >>conftest.$ac_ext <<_ACEOF
6805/* end confdefs.h. */
6806$ac_includes_default
6807
6808#include <$ac_header>
6809_ACEOF
6810rm -f conftest.$ac_objext
6811if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6812 (eval $ac_compile) 2>conftest.er1
42ecbf5e
DJ
6813 ac_status=$?
6814 grep -v '^ *+' conftest.er1 >conftest.err
6815 rm -f conftest.er1
6816 cat conftest.err >&5
6817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6818 (exit $ac_status); } &&
7357c5b6
AM
6819 { ac_try='test -z "$ac_c_werror_flag"
6820 || test ! -s conftest.err'
42ecbf5e
DJ
6821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6822 (eval $ac_try) 2>&5
6823 ac_status=$?
6824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6825 (exit $ac_status); }; } &&
ce2cded5 6826 { ac_try='test -s conftest.$ac_objext'
42ecbf5e
DJ
6827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6828 (eval $ac_try) 2>&5
6829 ac_status=$?
6830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831 (exit $ac_status); }; }; then
ce2cded5 6832 eval "$as_ac_Header=yes"
252b5132 6833else
42ecbf5e
DJ
6834 echo "$as_me: failed program was:" >&5
6835sed 's/^/| /' conftest.$ac_ext >&5
6836
ce2cded5 6837eval "$as_ac_Header=no"
252b5132 6838fi
ce2cded5
L
6839rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6840fi
6841echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6842echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6843if test `eval echo '${'$as_ac_Header'}'` = yes; then
6844 cat >>confdefs.h <<_ACEOF
6845#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6846_ACEOF
d7040cdb 6847
ce2cded5 6848fi
d7040cdb 6849
ce2cded5 6850done
d7040cdb 6851
d7040cdb 6852
d7040cdb 6853
ce2cded5
L
6854# This can be used to rebuild libtool when needed
6855LIBTOOL_DEPS="$ltmain"
d7040cdb 6856
ce2cded5
L
6857# Always use our own libtool.
6858LIBTOOL='$(SHELL) $(top_builddir)/libtool'
d7040cdb 6859
d7040cdb 6860
d7040cdb 6861
d7040cdb 6862
d7040cdb 6863
d7040cdb 6864
d7040cdb 6865
d7040cdb 6866
d7040cdb 6867
d7040cdb 6868
d7040cdb 6869
d7040cdb 6870
d7040cdb 6871
d7040cdb 6872
d7040cdb 6873
d7040cdb 6874
d7040cdb
SE
6875
6876
6877
6878
6879
6880
6881
6882
6883
ce2cded5 6884test -z "$LN_S" && LN_S="ln -s"
d7040cdb
SE
6885
6886
6887
6888
6889
6890
d7040cdb
SE
6891
6892
6893
6894
6895
6896
6897
6898
ce2cded5
L
6899if test -n "${ZSH_VERSION+set}" ; then
6900 setopt NO_GLOB_SUBST
6901fi
d7040cdb 6902
ce2cded5
L
6903echo "$as_me:$LINENO: checking for objdir" >&5
6904echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6905if test "${lt_cv_objdir+set}" = set; then
6906 echo $ECHO_N "(cached) $ECHO_C" >&6
6907else
6908 rm -f .libs 2>/dev/null
6909mkdir .libs 2>/dev/null
6910if test -d .libs; then
6911 lt_cv_objdir=.libs
6912else
6913 # MS-DOS does not allow filenames that begin with a dot.
6914 lt_cv_objdir=_libs
6915fi
6916rmdir .libs 2>/dev/null
6917fi
6918echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6919echo "${ECHO_T}$lt_cv_objdir" >&6
6920objdir=$lt_cv_objdir
d7040cdb
SE
6921
6922
6923
6924
6925
ce2cded5
L
6926cat >>confdefs.h <<_ACEOF
6927#define LT_OBJDIR "$lt_cv_objdir/"
6928_ACEOF
d7040cdb
SE
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
ce2cded5
L
6946case $host_os in
6947aix3*)
6948 # AIX sometimes has problems with the GCC collect2 program. For some
6949 # reason, if we set the COLLECT_NAMES environment variable, the problems
6950 # vanish in a puff of smoke.
6951 if test "X${COLLECT_NAMES+set}" != Xset; then
6952 COLLECT_NAMES=
6953 export COLLECT_NAMES
6954 fi
6955 ;;
6956esac
d7040cdb 6957
ce2cded5
L
6958# Sed substitution that helps us do robust quoting. It backslashifies
6959# metacharacters that are still active within double-quoted strings.
6960sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
d7040cdb 6961
ce2cded5
L
6962# Same as above, but do not quote variable references.
6963double_quote_subst='s/\(["`\\]\)/\\\1/g'
d7040cdb 6964
ce2cded5
L
6965# Sed substitution to delay expansion of an escaped shell variable in a
6966# double_quote_subst'ed string.
6967delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
d7040cdb 6968
ce2cded5
L
6969# Sed substitution to delay expansion of an escaped single quote.
6970delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
d7040cdb 6971
ce2cded5
L
6972# Sed substitution to avoid accidental globbing in evaled expressions
6973no_glob_subst='s/\*/\\\*/g'
d7040cdb 6974
ce2cded5
L
6975# Global variables:
6976ofile=libtool
6977can_build_shared=yes
d7040cdb 6978
ce2cded5
L
6979# All known linkers require a `.a' archive for static linking (except MSVC,
6980# which needs '.lib').
6981libext=a
d7040cdb 6982
ce2cded5 6983with_gnu_ld="$lt_cv_prog_gnu_ld"
d7040cdb 6984
ce2cded5
L
6985old_CC="$CC"
6986old_CFLAGS="$CFLAGS"
d7040cdb 6987
ce2cded5
L
6988# Set sane defaults for various variables
6989test -z "$CC" && CC=cc
6990test -z "$LTCC" && LTCC=$CC
6991test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6992test -z "$LD" && LD=ld
6993test -z "$ac_objext" && ac_objext=o
d7040cdb 6994
ce2cded5
L
6995for cc_temp in $compiler""; do
6996 case $cc_temp in
6997 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6998 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6999 \-*) ;;
7000 *) break;;
7001 esac
7002done
7003cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
d7040cdb
SE
7004
7005
ce2cded5
L
7006# Only perform the check for file, if the check method requires it
7007test -z "$MAGIC_CMD" && MAGIC_CMD=file
7008case $deplibs_check_method in
7009file_magic*)
7010 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7011 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7012echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7013if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7014 echo $ECHO_N "(cached) $ECHO_C" >&6
7015else
7016 case $MAGIC_CMD in
7017[\\/*] | ?:[\\/]*)
7018 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7019 ;;
7020*)
7021 lt_save_MAGIC_CMD="$MAGIC_CMD"
7022 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7023 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7024 for ac_dir in $ac_dummy; do
7025 IFS="$lt_save_ifs"
7026 test -z "$ac_dir" && ac_dir=.
7027 if test -f $ac_dir/${ac_tool_prefix}file; then
7028 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7029 if test -n "$file_magic_test_file"; then
7030 case $deplibs_check_method in
7031 "file_magic "*)
7032 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7033 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7034 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7035 $EGREP "$file_magic_regex" > /dev/null; then
7036 :
7037 else
7038 cat <<_LT_EOF 1>&2
d7040cdb 7039
ce2cded5
L
7040*** Warning: the command libtool uses to detect shared libraries,
7041*** $file_magic_cmd, produces output that libtool cannot recognize.
7042*** The result is that libtool may fail to recognize shared libraries
7043*** as such. This will affect the creation of libtool libraries that
7044*** depend on shared libraries, but programs linked with such libtool
7045*** libraries will work regardless of this problem. Nevertheless, you
7046*** may want to report the problem to your system manager and/or to
7047*** bug-libtool@gnu.org
d7040cdb 7048
ce2cded5
L
7049_LT_EOF
7050 fi ;;
7051 esac
7052 fi
7053 break
7054 fi
7055 done
7056 IFS="$lt_save_ifs"
7057 MAGIC_CMD="$lt_save_MAGIC_CMD"
7058 ;;
7059esac
7060fi
d7040cdb 7061
ce2cded5
L
7062MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7063if test -n "$MAGIC_CMD"; then
7064 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7065echo "${ECHO_T}$MAGIC_CMD" >&6
7066else
7067 echo "$as_me:$LINENO: result: no" >&5
7068echo "${ECHO_T}no" >&6
7069fi
d7040cdb
SE
7070
7071
7072
7073
7074
ce2cded5
L
7075if test -z "$lt_cv_path_MAGIC_CMD"; then
7076 if test -n "$ac_tool_prefix"; then
7077 echo "$as_me:$LINENO: checking for file" >&5
7078echo $ECHO_N "checking for file... $ECHO_C" >&6
7079if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7080 echo $ECHO_N "(cached) $ECHO_C" >&6
7081else
7082 case $MAGIC_CMD in
7083[\\/*] | ?:[\\/]*)
7084 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7085 ;;
7086*)
7087 lt_save_MAGIC_CMD="$MAGIC_CMD"
7088 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7089 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7090 for ac_dir in $ac_dummy; do
7091 IFS="$lt_save_ifs"
7092 test -z "$ac_dir" && ac_dir=.
7093 if test -f $ac_dir/file; then
7094 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7095 if test -n "$file_magic_test_file"; then
7096 case $deplibs_check_method in
7097 "file_magic "*)
7098 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7099 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7100 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7101 $EGREP "$file_magic_regex" > /dev/null; then
7102 :
7103 else
7104 cat <<_LT_EOF 1>&2
d7040cdb 7105
ce2cded5
L
7106*** Warning: the command libtool uses to detect shared libraries,
7107*** $file_magic_cmd, produces output that libtool cannot recognize.
7108*** The result is that libtool may fail to recognize shared libraries
7109*** as such. This will affect the creation of libtool libraries that
7110*** depend on shared libraries, but programs linked with such libtool
7111*** libraries will work regardless of this problem. Nevertheless, you
7112*** may want to report the problem to your system manager and/or to
7113*** bug-libtool@gnu.org
d7040cdb 7114
ce2cded5
L
7115_LT_EOF
7116 fi ;;
7117 esac
7118 fi
7119 break
7120 fi
7121 done
7122 IFS="$lt_save_ifs"
7123 MAGIC_CMD="$lt_save_MAGIC_CMD"
7124 ;;
7125esac
7126fi
d7040cdb 7127
ce2cded5
L
7128MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7129if test -n "$MAGIC_CMD"; then
7130 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7131echo "${ECHO_T}$MAGIC_CMD" >&6
7132else
7133 echo "$as_me:$LINENO: result: no" >&5
7134echo "${ECHO_T}no" >&6
7135fi
d7040cdb
SE
7136
7137
ce2cded5
L
7138 else
7139 MAGIC_CMD=:
7140 fi
7141fi
d7040cdb 7142
ce2cded5
L
7143 fi
7144 ;;
7145esac
d7040cdb 7146
ce2cded5 7147# Use C for the default configuration in the libtool script
d7040cdb 7148
ce2cded5
L
7149lt_save_CC="$CC"
7150ac_ext=c
7151ac_cpp='$CPP $CPPFLAGS'
7152ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7153ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7154ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb
SE
7155
7156
ce2cded5
L
7157# Source file extension for C test sources.
7158ac_ext=c
d7040cdb 7159
ce2cded5
L
7160# Object file extension for compiled C test sources.
7161objext=o
7162objext=$objext
d7040cdb 7163
ce2cded5
L
7164# Code to be used in simple compile tests
7165lt_simple_compile_test_code="int some_variable = 0;"
d7040cdb 7166
ce2cded5
L
7167# Code to be used in simple link tests
7168lt_simple_link_test_code='int main(){return(0);}'
d7040cdb
SE
7169
7170
7171
7172
7173
7174
7175
ce2cded5
L
7176# If no C compiler was specified, use CC.
7177LTCC=${LTCC-"$CC"}
d7040cdb 7178
ce2cded5
L
7179# If no C compiler flags were specified, use CFLAGS.
7180LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d7040cdb 7181
ce2cded5
L
7182# Allow CC to be a program name with arguments.
7183compiler=$CC
d7040cdb 7184
ce2cded5
L
7185# Save the default compiler, since it gets overwritten when the other
7186# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7187compiler_DEFAULT=$CC
d7040cdb 7188
ce2cded5
L
7189# save warnings/boilerplate of simple test code
7190ac_outfile=conftest.$ac_objext
7191echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7192eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7193_lt_compiler_boilerplate=`cat conftest.err`
7194$RM conftest*
d7040cdb 7195
ce2cded5
L
7196ac_outfile=conftest.$ac_objext
7197echo "$lt_simple_link_test_code" >conftest.$ac_ext
7198eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7199_lt_linker_boilerplate=`cat conftest.err`
7200$RM conftest*
d7040cdb
SE
7201
7202
ce2cded5
L
7203## CAVEAT EMPTOR:
7204## There is no encapsulation within the following macros, do not change
7205## the running order or otherwise move them around unless you know exactly
7206## what you are doing...
7207if test -n "$compiler"; then
d7040cdb 7208
ce2cded5 7209lt_prog_compiler_no_builtin_flag=
d7040cdb 7210
ce2cded5
L
7211if test "$GCC" = yes; then
7212 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
d7040cdb 7213
ce2cded5
L
7214 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7215echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7216if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7217 echo $ECHO_N "(cached) $ECHO_C" >&6
7218else
7219 lt_cv_prog_compiler_rtti_exceptions=no
7220 ac_outfile=conftest.$ac_objext
7221 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7222 lt_compiler_flag="-fno-rtti -fno-exceptions"
7223 # Insert the option either (1) after the last *FLAGS variable, or
7224 # (2) before a word containing "conftest.", or (3) at the end.
7225 # Note that $ac_compile itself does not contain backslashes and begins
7226 # with a dollar sign (not a hyphen), so the echo should work correctly.
7227 # The option is referenced via a variable to avoid confusing sed.
7228 lt_compile=`echo "$ac_compile" | $SED \
7229 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7230 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7231 -e 's:$: $lt_compiler_flag:'`
7357c5b6 7232 (eval echo "\"\$as_me:7232: $lt_compile\"" >&5)
ce2cded5
L
7233 (eval "$lt_compile" 2>conftest.err)
7234 ac_status=$?
7235 cat conftest.err >&5
7357c5b6 7236 echo "$as_me:7236: \$? = $ac_status" >&5
ce2cded5
L
7237 if (exit $ac_status) && test -s "$ac_outfile"; then
7238 # The compiler can only warn and ignore the option if not recognized
7239 # So say no if there are warnings other than the usual output.
7240 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7241 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7242 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7243 lt_cv_prog_compiler_rtti_exceptions=yes
7244 fi
7245 fi
7246 $RM conftest*
d7040cdb 7247
ce2cded5
L
7248fi
7249echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7250echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
d7040cdb 7251
ce2cded5
L
7252if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7253 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7254else
7255 :
7256fi
d7040cdb 7257
ce2cded5 7258fi
d7040cdb
SE
7259
7260
7261
7262
7263
7264
ce2cded5
L
7265 lt_prog_compiler_wl=
7266lt_prog_compiler_pic=
7267lt_prog_compiler_static=
d7040cdb 7268
ce2cded5
L
7269echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7270echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
d7040cdb 7271
ce2cded5
L
7272 if test "$GCC" = yes; then
7273 lt_prog_compiler_wl='-Wl,'
7274 lt_prog_compiler_static='-static'
d7040cdb 7275
ce2cded5
L
7276 case $host_os in
7277 aix*)
7278 # All AIX code is PIC.
7279 if test "$host_cpu" = ia64; then
7280 # AIX 5 now supports IA64 processor
7281 lt_prog_compiler_static='-Bstatic'
7282 fi
7283 ;;
d7040cdb 7284
ce2cded5
L
7285 amigaos*)
7286 if test "$host_cpu" = m68k; then
7287 # FIXME: we need at least 68020 code to build shared libraries, but
7288 # adding the `-m68020' flag to GCC prevents building anything better,
7289 # like `-m68040'.
7290 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7291 fi
7292 ;;
d7040cdb 7293
ce2cded5
L
7294 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7295 # PIC is the default for these OSes.
7296 ;;
d7040cdb 7297
ce2cded5
L
7298 mingw* | cygwin* | pw32* | os2*)
7299 # This hack is so that the source file can tell whether it is being
7300 # built for inclusion in a dll (and should export symbols for example).
7301 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7302 # (--disable-auto-import) libraries
7303 lt_prog_compiler_pic='-DDLL_EXPORT'
7304 ;;
d7040cdb 7305
ce2cded5
L
7306 darwin* | rhapsody*)
7307 # PIC is the default on this platform
7308 # Common symbols not allowed in MH_DYLIB files
7309 lt_prog_compiler_pic='-fno-common'
7310 ;;
d7040cdb 7311
ce2cded5
L
7312 hpux*)
7313 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7314 # not for PA HP-UX.
7315 case $host_cpu in
7316 hppa*64*|ia64*)
7317 # +Z the default
7318 ;;
7319 *)
7320 lt_prog_compiler_pic='-fPIC'
7321 ;;
7322 esac
7323 ;;
d7040cdb 7324
ce2cded5
L
7325 interix[3-9]*)
7326 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7327 # Instead, we relocate shared libraries at runtime.
7328 ;;
d7040cdb 7329
ce2cded5
L
7330 msdosdjgpp*)
7331 # Just because we use GCC doesn't mean we suddenly get shared libraries
7332 # on systems that don't support them.
7333 lt_prog_compiler_can_build_shared=no
7334 enable_shared=no
7335 ;;
d7040cdb 7336
ce2cded5
L
7337 *nto* | *qnx*)
7338 # QNX uses GNU C++, but need to define -shared option too, otherwise
7339 # it will coredump.
7340 lt_prog_compiler_pic='-fPIC -shared'
7341 ;;
d7040cdb 7342
ce2cded5
L
7343 sysv4*MP*)
7344 if test -d /usr/nec; then
7345 lt_prog_compiler_pic=-Kconform_pic
7346 fi
7347 ;;
d7040cdb 7348
ce2cded5
L
7349 *)
7350 lt_prog_compiler_pic='-fPIC'
7351 ;;
7352 esac
7353 else
7354 # PORTME Check for flag to pass linker flags through the system compiler.
7355 case $host_os in
7356 aix*)
7357 lt_prog_compiler_wl='-Wl,'
7358 if test "$host_cpu" = ia64; then
7359 # AIX 5 now supports IA64 processor
7360 lt_prog_compiler_static='-Bstatic'
7361 else
7362 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7363 fi
7364 ;;
7365 darwin*)
7366 # PIC is the default on this platform
7367 # Common symbols not allowed in MH_DYLIB files
7368 case $cc_basename in
7369 xlc*)
7370 lt_prog_compiler_pic='-qnocommon'
7371 lt_prog_compiler_wl='-Wl,'
7372 ;;
7373 esac
7374 ;;
d7040cdb 7375
ce2cded5
L
7376 mingw* | cygwin* | pw32* | os2*)
7377 # This hack is so that the source file can tell whether it is being
7378 # built for inclusion in a dll (and should export symbols for example).
7379 lt_prog_compiler_pic='-DDLL_EXPORT'
7380 ;;
d7040cdb 7381
ce2cded5
L
7382 hpux9* | hpux10* | hpux11*)
7383 lt_prog_compiler_wl='-Wl,'
7384 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7385 # not for PA HP-UX.
7386 case $host_cpu in
7387 hppa*64*|ia64*)
7388 # +Z the default
7389 ;;
7390 *)
7391 lt_prog_compiler_pic='+Z'
7392 ;;
7393 esac
7394 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7395 lt_prog_compiler_static='${wl}-a ${wl}archive'
7396 ;;
d7040cdb 7397
ce2cded5
L
7398 irix5* | irix6* | nonstopux*)
7399 lt_prog_compiler_wl='-Wl,'
7400 # PIC (with -KPIC) is the default.
7401 lt_prog_compiler_static='-non_shared'
7402 ;;
d7040cdb 7403
ce2cded5
L
7404 linux* | k*bsd*-gnu)
7405 case $cc_basename in
7406 icc* | ecc*)
7407 lt_prog_compiler_wl='-Wl,'
7408 lt_prog_compiler_pic='-KPIC'
7409 lt_prog_compiler_static='-static'
7410 ;;
7411 pgcc* | pgf77* | pgf90* | pgf95*)
7412 # Portland Group compilers (*not* the Pentium gcc compiler,
7413 # which looks to be a dead project)
7414 lt_prog_compiler_wl='-Wl,'
7415 lt_prog_compiler_pic='-fpic'
7416 lt_prog_compiler_static='-Bstatic'
7417 ;;
7418 ccc*)
7419 lt_prog_compiler_wl='-Wl,'
7420 # All Alpha code is PIC.
7421 lt_prog_compiler_static='-non_shared'
7422 ;;
7423 *)
7424 case `$CC -V 2>&1 | sed 5q` in
7425 *Sun\ C*)
7426 # Sun C 5.9
7427 lt_prog_compiler_pic='-KPIC'
7428 lt_prog_compiler_static='-Bstatic'
7429 lt_prog_compiler_wl='-Wl,'
7430 ;;
7431 *Sun\ F*)
7432 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7433 lt_prog_compiler_pic='-KPIC'
7434 lt_prog_compiler_static='-Bstatic'
7435 lt_prog_compiler_wl=''
7436 ;;
7437 esac
7438 ;;
7439 esac
7440 ;;
d7040cdb 7441
ce2cded5
L
7442 newsos6)
7443 lt_prog_compiler_pic='-KPIC'
7444 lt_prog_compiler_static='-Bstatic'
7445 ;;
d7040cdb 7446
ce2cded5
L
7447 *nto* | *qnx*)
7448 # QNX uses GNU C++, but need to define -shared option too, otherwise
7449 # it will coredump.
7450 lt_prog_compiler_pic='-fPIC -shared'
7451 ;;
d7040cdb 7452
ce2cded5
L
7453 osf3* | osf4* | osf5*)
7454 lt_prog_compiler_wl='-Wl,'
7455 # All OSF/1 code is PIC.
7456 lt_prog_compiler_static='-non_shared'
7457 ;;
d7040cdb 7458
ce2cded5
L
7459 rdos*)
7460 lt_prog_compiler_static='-non_shared'
7461 ;;
d7040cdb 7462
ce2cded5
L
7463 solaris*)
7464 lt_prog_compiler_pic='-KPIC'
7465 lt_prog_compiler_static='-Bstatic'
7466 case $cc_basename in
7467 f77* | f90* | f95*)
7468 lt_prog_compiler_wl='-Qoption ld ';;
7469 *)
7470 lt_prog_compiler_wl='-Wl,';;
7471 esac
7472 ;;
d7040cdb 7473
ce2cded5
L
7474 sunos4*)
7475 lt_prog_compiler_wl='-Qoption ld '
7476 lt_prog_compiler_pic='-PIC'
7477 lt_prog_compiler_static='-Bstatic'
7478 ;;
d7040cdb 7479
ce2cded5
L
7480 sysv4 | sysv4.2uw2* | sysv4.3*)
7481 lt_prog_compiler_wl='-Wl,'
7482 lt_prog_compiler_pic='-KPIC'
7483 lt_prog_compiler_static='-Bstatic'
7484 ;;
d7040cdb 7485
ce2cded5
L
7486 sysv4*MP*)
7487 if test -d /usr/nec ;then
7488 lt_prog_compiler_pic='-Kconform_pic'
7489 lt_prog_compiler_static='-Bstatic'
7490 fi
7491 ;;
d7040cdb 7492
ce2cded5
L
7493 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7494 lt_prog_compiler_wl='-Wl,'
7495 lt_prog_compiler_pic='-KPIC'
7496 lt_prog_compiler_static='-Bstatic'
7497 ;;
d7040cdb 7498
ce2cded5
L
7499 unicos*)
7500 lt_prog_compiler_wl='-Wl,'
7501 lt_prog_compiler_can_build_shared=no
7502 ;;
d7040cdb 7503
ce2cded5
L
7504 uts4*)
7505 lt_prog_compiler_pic='-pic'
7506 lt_prog_compiler_static='-Bstatic'
7507 ;;
d7040cdb 7508
ce2cded5
L
7509 *)
7510 lt_prog_compiler_can_build_shared=no
7511 ;;
7512 esac
7513 fi
d7040cdb 7514
ce2cded5
L
7515case $host_os in
7516 # For platforms which do not support PIC, -DPIC is meaningless:
7517 *djgpp*)
7518 lt_prog_compiler_pic=
7519 ;;
7520 *)
7521 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7522 ;;
7523esac
7524echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7525echo "${ECHO_T}$lt_prog_compiler_pic" >&6
d7040cdb
SE
7526
7527
7528
7529
7530
7531
ce2cded5
L
7532#
7533# Check to make sure the PIC flag actually works.
7534#
7535if test -n "$lt_prog_compiler_pic"; then
7536 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7537echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7538if test "${lt_prog_compiler_pic_works+set}" = set; then
7539 echo $ECHO_N "(cached) $ECHO_C" >&6
7540else
7541 lt_prog_compiler_pic_works=no
7542 ac_outfile=conftest.$ac_objext
7543 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7544 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7545 # Insert the option either (1) after the last *FLAGS variable, or
7546 # (2) before a word containing "conftest.", or (3) at the end.
7547 # Note that $ac_compile itself does not contain backslashes and begins
7548 # with a dollar sign (not a hyphen), so the echo should work correctly.
7549 # The option is referenced via a variable to avoid confusing sed.
7550 lt_compile=`echo "$ac_compile" | $SED \
7551 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7552 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7553 -e 's:$: $lt_compiler_flag:'`
7357c5b6 7554 (eval echo "\"\$as_me:7554: $lt_compile\"" >&5)
ce2cded5
L
7555 (eval "$lt_compile" 2>conftest.err)
7556 ac_status=$?
7557 cat conftest.err >&5
7357c5b6 7558 echo "$as_me:7558: \$? = $ac_status" >&5
ce2cded5
L
7559 if (exit $ac_status) && test -s "$ac_outfile"; then
7560 # The compiler can only warn and ignore the option if not recognized
7561 # So say no if there are warnings other than the usual output.
7562 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7563 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7564 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7565 lt_prog_compiler_pic_works=yes
7566 fi
7567 fi
7568 $RM conftest*
d7040cdb 7569
ce2cded5
L
7570fi
7571echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7572echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7573
7574if test x"$lt_prog_compiler_pic_works" = xyes; then
7575 case $lt_prog_compiler_pic in
7576 "" | " "*) ;;
7577 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7578 esac
7579else
7580 lt_prog_compiler_pic=
7581 lt_prog_compiler_can_build_shared=no
7582fi
7583
7584fi
d7040cdb
SE
7585
7586
7587
7588
7589
7590
ce2cded5
L
7591#
7592# Check to make sure the static flag actually works.
7593#
7594wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7595echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7596echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7597if test "${lt_prog_compiler_static_works+set}" = set; then
7598 echo $ECHO_N "(cached) $ECHO_C" >&6
7599else
7600 lt_prog_compiler_static_works=no
7601 save_LDFLAGS="$LDFLAGS"
7602 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7603 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7604 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7605 # The linker can only warn and ignore the option if not recognized
7606 # So say no if there are warnings
7607 if test -s conftest.err; then
7608 # Append any errors to the config.log.
7609 cat conftest.err 1>&5
7610 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7611 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7612 if diff conftest.exp conftest.er2 >/dev/null; then
7613 lt_prog_compiler_static_works=yes
7614 fi
7615 else
7616 lt_prog_compiler_static_works=yes
7617 fi
7618 fi
7619 $RM conftest*
7620 LDFLAGS="$save_LDFLAGS"
d7040cdb 7621
ce2cded5
L
7622fi
7623echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7624echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
d7040cdb 7625
ce2cded5
L
7626if test x"$lt_prog_compiler_static_works" = xyes; then
7627 :
7628else
7629 lt_prog_compiler_static=
7630fi
d7040cdb
SE
7631
7632
7633
7634
7635
7636
7637
ce2cded5
L
7638 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7639echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7640if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7641 echo $ECHO_N "(cached) $ECHO_C" >&6
7642else
7643 lt_cv_prog_compiler_c_o=no
7644 $RM -r conftest 2>/dev/null
7645 mkdir conftest
7646 cd conftest
7647 mkdir out
7648 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 7649
ce2cded5
L
7650 lt_compiler_flag="-o out/conftest2.$ac_objext"
7651 # Insert the option either (1) after the last *FLAGS variable, or
7652 # (2) before a word containing "conftest.", or (3) at the end.
7653 # Note that $ac_compile itself does not contain backslashes and begins
7654 # with a dollar sign (not a hyphen), so the echo should work correctly.
7655 lt_compile=`echo "$ac_compile" | $SED \
7656 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7657 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7658 -e 's:$: $lt_compiler_flag:'`
7357c5b6 7659 (eval echo "\"\$as_me:7659: $lt_compile\"" >&5)
ce2cded5
L
7660 (eval "$lt_compile" 2>out/conftest.err)
7661 ac_status=$?
7662 cat out/conftest.err >&5
7357c5b6 7663 echo "$as_me:7663: \$? = $ac_status" >&5
ce2cded5
L
7664 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7665 then
7666 # The compiler can only warn and ignore the option if not recognized
7667 # So say no if there are warnings
7668 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7669 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7670 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7671 lt_cv_prog_compiler_c_o=yes
7672 fi
7673 fi
7674 chmod u+w . 2>&5
7675 $RM conftest*
7676 # SGI C++ compiler will create directory out/ii_files/ for
7677 # template instantiation
7678 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7679 $RM out/* && rmdir out
7680 cd ..
7681 $RM -r conftest
7682 $RM conftest*
d7040cdb 7683
ce2cded5
L
7684fi
7685echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7686echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
d7040cdb
SE
7687
7688
7689
7690
7691
7692
ce2cded5
L
7693 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7694echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7695if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7696 echo $ECHO_N "(cached) $ECHO_C" >&6
7697else
7698 lt_cv_prog_compiler_c_o=no
7699 $RM -r conftest 2>/dev/null
7700 mkdir conftest
7701 cd conftest
7702 mkdir out
7703 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 7704
ce2cded5
L
7705 lt_compiler_flag="-o out/conftest2.$ac_objext"
7706 # Insert the option either (1) after the last *FLAGS variable, or
7707 # (2) before a word containing "conftest.", or (3) at the end.
7708 # Note that $ac_compile itself does not contain backslashes and begins
7709 # with a dollar sign (not a hyphen), so the echo should work correctly.
7710 lt_compile=`echo "$ac_compile" | $SED \
7711 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7712 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7713 -e 's:$: $lt_compiler_flag:'`
7357c5b6 7714 (eval echo "\"\$as_me:7714: $lt_compile\"" >&5)
ce2cded5
L
7715 (eval "$lt_compile" 2>out/conftest.err)
7716 ac_status=$?
7717 cat out/conftest.err >&5
7357c5b6 7718 echo "$as_me:7718: \$? = $ac_status" >&5
ce2cded5
L
7719 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7720 then
7721 # The compiler can only warn and ignore the option if not recognized
7722 # So say no if there are warnings
7723 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7724 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7725 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7726 lt_cv_prog_compiler_c_o=yes
7727 fi
7728 fi
7729 chmod u+w . 2>&5
7730 $RM conftest*
7731 # SGI C++ compiler will create directory out/ii_files/ for
7732 # template instantiation
7733 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7734 $RM out/* && rmdir out
7735 cd ..
7736 $RM -r conftest
7737 $RM conftest*
7738
7739fi
7740echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7741echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7742
7743
7744
7745
7746hard_links="nottested"
7747if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7748 # do not overwrite the value of need_locks provided by the user
7749 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7750echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7751 hard_links=yes
7752 $RM conftest*
7753 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7754 touch conftest.a
7755 ln conftest.a conftest.b 2>&5 || hard_links=no
7756 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7757 echo "$as_me:$LINENO: result: $hard_links" >&5
7758echo "${ECHO_T}$hard_links" >&6
7759 if test "$hard_links" = no; then
7760 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7761echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7762 need_locks=warn
d7040cdb 7763 fi
d7040cdb 7764else
ce2cded5 7765 need_locks=no
d7040cdb 7766fi
d7040cdb 7767
d7040cdb 7768
d7040cdb 7769
d7040cdb 7770
d7040cdb 7771
d7040cdb 7772
ce2cded5
L
7773 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7774echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
d7040cdb 7775
ce2cded5
L
7776 runpath_var=
7777 allow_undefined_flag=
7778 always_export_symbols=no
7779 archive_cmds=
7780 archive_expsym_cmds=
7781 compiler_needs_object=no
7782 enable_shared_with_static_runtimes=no
7783 export_dynamic_flag_spec=
7784 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7785 hardcode_automatic=no
7786 hardcode_direct=no
7787 hardcode_direct_absolute=no
7788 hardcode_libdir_flag_spec=
7789 hardcode_libdir_flag_spec_ld=
7790 hardcode_libdir_separator=
7791 hardcode_minus_L=no
7792 hardcode_shlibpath_var=unsupported
7793 inherit_rpath=no
7794 link_all_deplibs=unknown
7795 module_cmds=
7796 module_expsym_cmds=
7797 old_archive_from_new_cmds=
7798 old_archive_from_expsyms_cmds=
7799 thread_safe_flag_spec=
7800 whole_archive_flag_spec=
7801 # include_expsyms should be a list of space-separated symbols to be *always*
7802 # included in the symbol list
7803 include_expsyms=
7804 # exclude_expsyms can be an extended regexp of symbols to exclude
7805 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7806 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7807 # as well as any symbol that contains `d'.
7808 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7809 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7810 # platforms (ab)use it in PIC code, but their linkers get confused if
7811 # the symbol is explicitly referenced. Since portable code cannot
7812 # rely on this symbol name, it's probably fine to never include it in
7813 # preloaded symbol tables.
7814 extract_expsyms_cmds=
d7040cdb 7815
ce2cded5
L
7816 case $host_os in
7817 cygwin* | mingw* | pw32*)
7818 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7819 # When not using gcc, we currently assume that we are using
7820 # Microsoft Visual C++.
7821 if test "$GCC" != yes; then
7822 with_gnu_ld=no
7823 fi
d7040cdb 7824 ;;
ce2cded5
L
7825 interix*)
7826 # we just hope/assume this is gcc and not c89 (= MSVC++)
7827 with_gnu_ld=yes
7828 ;;
7829 openbsd*)
7830 with_gnu_ld=no
d7040cdb
SE
7831 ;;
7832 esac
d7040cdb 7833
ce2cded5
L
7834 ld_shlibs=yes
7835 if test "$with_gnu_ld" = yes; then
7836 # If archive_cmds runs LD, not CC, wlarc should be empty
7837 wlarc='${wl}'
d7040cdb 7838
ce2cded5
L
7839 # Set some defaults for GNU ld with shared library support. These
7840 # are reset later if shared libraries are not supported. Putting them
7841 # here allows them to be overridden if necessary.
7842 runpath_var=LD_RUN_PATH
7843 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7844 export_dynamic_flag_spec='${wl}--export-dynamic'
7845 # ancient GNU ld didn't support --whole-archive et. al.
7846 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7847 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7848 else
7849 whole_archive_flag_spec=
7850 fi
7851 supports_anon_versioning=no
7852 case `$LD -v 2>&1` in
7853 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7854 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7855 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7856 *\ 2.11.*) ;; # other 2.11 versions
7857 *) supports_anon_versioning=yes ;;
7858 esac
d7040cdb 7859
ce2cded5
L
7860 # See if GNU ld supports shared libraries.
7861 case $host_os in
50e7d84b 7862 aix[3-9]*)
ce2cded5
L
7863 # On AIX/PPC, the GNU linker is very broken
7864 if test "$host_cpu" != ia64; then
7865 ld_shlibs=no
7866 cat <<_LT_EOF 1>&2
d7040cdb 7867
ce2cded5
L
7868*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7869*** to be unable to reliably create shared libraries on AIX.
7870*** Therefore, libtool is disabling shared libraries support. If you
7871*** really care for shared libraries, you may want to modify your PATH
7872*** so that a non-GNU linker is found, and then restart.
d7040cdb 7873
ce2cded5
L
7874_LT_EOF
7875 fi
d7040cdb 7876 ;;
d7040cdb 7877
ce2cded5
L
7878 amigaos*)
7879 if test "$host_cpu" = m68k; then
7880 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)'
7881 hardcode_libdir_flag_spec='-L$libdir'
7882 hardcode_minus_L=yes
7883 fi
d7040cdb 7884
ce2cded5
L
7885 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7886 # that the semantics of dynamic libraries on AmigaOS, at least up
7887 # to version 4, is to share data among multiple programs linked
7888 # with the same dynamic library. Since this doesn't match the
7889 # behavior of shared libraries on other platforms, we can't use
7890 # them.
7891 ld_shlibs=no
7892 ;;
d7040cdb 7893
ce2cded5
L
7894 beos*)
7895 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7896 allow_undefined_flag=unsupported
7897 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7898 # support --undefined. This deserves some investigation. FIXME
7899 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7900 else
7901 ld_shlibs=no
7902 fi
7903 ;;
d7040cdb 7904
ce2cded5
L
7905 cygwin* | mingw* | pw32*)
7906 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7907 # as there is no search path for DLLs.
7908 hardcode_libdir_flag_spec='-L$libdir'
7909 allow_undefined_flag=unsupported
7910 always_export_symbols=no
7911 enable_shared_with_static_runtimes=yes
7912 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7913
7914 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7915 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7916 # If the export-symbols file already is a .def file (1st line
7917 # is EXPORTS), use it as is; otherwise, prepend...
7918 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7919 cp $export_symbols $output_objdir/$soname.def;
d7040cdb 7920 else
ce2cded5
L
7921 echo EXPORTS > $output_objdir/$soname.def;
7922 cat $export_symbols >> $output_objdir/$soname.def;
7923 fi~
7924 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7925 else
7926 ld_shlibs=no
7927 fi
7928 ;;
d7040cdb 7929
ce2cded5
L
7930 interix[3-9]*)
7931 hardcode_direct=no
7932 hardcode_shlibpath_var=no
7933 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7934 export_dynamic_flag_spec='${wl}-E'
7935 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7936 # Instead, shared libraries are loaded at an image base (0x10000000 by
7937 # default) and relocated if they conflict, which is a slow very memory
7938 # consuming and fragmenting process. To avoid this, we pick a random,
7939 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7940 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7941 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7942 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'
7943 ;;
d7040cdb 7944
ce2cded5
L
7945 gnu* | linux* | tpf* | k*bsd*-gnu)
7946 tmp_diet=no
7947 if test "$host_os" = linux-dietlibc; then
7948 case $cc_basename in
7949 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7950 esac
7951 fi
7952 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7953 && test "$tmp_diet" = no
7954 then
7955 tmp_addflag=
7956 case $cc_basename,$host_cpu in
7957 pgcc*) # Portland Group C compiler
7958 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'
7959 tmp_addflag=' $pic_flag'
7960 ;;
7961 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7962 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'
7963 tmp_addflag=' $pic_flag -Mnomain' ;;
7964 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7965 tmp_addflag=' -i_dynamic' ;;
7966 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7967 tmp_addflag=' -i_dynamic -nofor_main' ;;
7968 ifc* | ifort*) # Intel Fortran compiler
7969 tmp_addflag=' -nofor_main' ;;
7970 esac
7971 case `$CC -V 2>&1 | sed 5q` in
7972 *Sun\ C*) # Sun C 5.9
7973 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'
7974 compiler_needs_object=yes
7975 tmp_sharedflag='-G' ;;
7976 *Sun\ F*) # Sun Fortran 8.3
7977 tmp_sharedflag='-G' ;;
7978 *)
7979 tmp_sharedflag='-shared' ;;
7980 esac
7981 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d7040cdb 7982
ce2cded5
L
7983 if test "x$supports_anon_versioning" = xyes; then
7984 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7985 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7986 echo "local: *; };" >> $output_objdir/$libname.ver~
7987 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7988 fi
7989 else
7990 ld_shlibs=no
7991 fi
7992 ;;
d7040cdb 7993
ce2cded5
L
7994 netbsd*)
7995 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7996 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7997 wlarc=
7998 else
7999 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8000 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8001 fi
8002 ;;
8003
8004 solaris*)
8005 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8006 ld_shlibs=no
8007 cat <<_LT_EOF 1>&2
8008
8009*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8010*** create shared libraries on Solaris systems. Therefore, libtool
8011*** is disabling shared libraries support. We urge you to upgrade GNU
8012*** binutils to release 2.9.1 or newer. Another option is to modify
8013*** your PATH or compiler configuration so that the native linker is
8014*** used, and then restart.
8015
8016_LT_EOF
8017 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8018 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8019 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8020 else
8021 ld_shlibs=no
8022 fi
8023 ;;
8024
8025 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8026 case `$LD -v 2>&1` in
8027 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8028 ld_shlibs=no
8029 cat <<_LT_EOF 1>&2
8030
8031*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8032*** reliably create shared libraries on SCO systems. Therefore, libtool
8033*** is disabling shared libraries support. We urge you to upgrade GNU
8034*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8035*** your PATH or compiler configuration so that the native linker is
8036*** used, and then restart.
8037
8038_LT_EOF
8039 ;;
8040 *)
8041 # For security reasons, it is highly recommended that you always
8042 # use absolute paths for naming shared libraries, and exclude the
8043 # DT_RUNPATH tag from executables and libraries. But doing so
8044 # requires that you compile everything twice, which is a pain.
8045 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8046 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8047 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8048 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8049 else
8050 ld_shlibs=no
8051 fi
8052 ;;
8053 esac
8054 ;;
8055
8056 sunos4*)
8057 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8058 wlarc=
8059 hardcode_direct=yes
8060 hardcode_shlibpath_var=no
8061 ;;
8062
8063 *)
8064 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8065 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8066 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8067 else
8068 ld_shlibs=no
8069 fi
8070 ;;
8071 esac
8072
8073 if test "$ld_shlibs" = no; then
8074 runpath_var=
8075 hardcode_libdir_flag_spec=
8076 export_dynamic_flag_spec=
8077 whole_archive_flag_spec=
8078 fi
8079 else
8080 # PORTME fill in a description of your system's linker (not GNU ld)
8081 case $host_os in
8082 aix3*)
8083 allow_undefined_flag=unsupported
8084 always_export_symbols=yes
8085 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'
8086 # Note: this linker hardcodes the directories in LIBPATH if there
8087 # are no directories specified by -L.
8088 hardcode_minus_L=yes
8089 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8090 # Neither direct hardcoding nor static linking is supported with a
8091 # broken collect2.
8092 hardcode_direct=unsupported
8093 fi
8094 ;;
8095
50e7d84b 8096 aix[4-9]*)
ce2cded5
L
8097 if test "$host_cpu" = ia64; then
8098 # On IA64, the linker does run time linking by default, so we don't
8099 # have to do anything special.
8100 aix_use_runtimelinking=no
8101 exp_sym_flag='-Bexport'
8102 no_entry_flag=""
8103 else
8104 # If we're using GNU nm, then we don't want the "-C" option.
8105 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8106 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8107 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'
8108 else
8109 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'
8110 fi
8111 aix_use_runtimelinking=no
8112
8113 # Test if we are trying to use run time linking or normal
8114 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8115 # need to do runtime linking.
50e7d84b 8116 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
ce2cded5
L
8117 for ld_flag in $LDFLAGS; do
8118 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8119 aix_use_runtimelinking=yes
8120 break
8121 fi
8122 done
8123 ;;
8124 esac
8125
8126 exp_sym_flag='-bexport'
8127 no_entry_flag='-bnoentry'
8128 fi
8129
8130 # When large executables or shared objects are built, AIX ld can
8131 # have problems creating the table of contents. If linking a library
8132 # or program results in "error TOC overflow" add -mminimal-toc to
8133 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8134 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8135
8136 archive_cmds=''
8137 hardcode_direct=yes
8138 hardcode_direct_absolute=yes
8139 hardcode_libdir_separator=':'
8140 link_all_deplibs=yes
8141 file_list_spec='${wl}-f,'
8142
8143 if test "$GCC" = yes; then
8144 case $host_os in aix4.[012]|aix4.[012].*)
8145 # We only want to do this on AIX 4.2 and lower, the check
8146 # below for broken collect2 doesn't work under 4.3+
8147 collect2name=`${CC} -print-prog-name=collect2`
8148 if test -f "$collect2name" &&
8149 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8150 then
8151 # We have reworked collect2
8152 :
8153 else
8154 # We have old collect2
8155 hardcode_direct=unsupported
8156 # It fails to find uninstalled libraries when the uninstalled
8157 # path is not listed in the libpath. Setting hardcode_minus_L
8158 # to unsupported forces relinking
8159 hardcode_minus_L=yes
8160 hardcode_libdir_flag_spec='-L$libdir'
8161 hardcode_libdir_separator=
8162 fi
8163 ;;
8164 esac
8165 shared_flag='-shared'
8166 if test "$aix_use_runtimelinking" = yes; then
8167 shared_flag="$shared_flag "'${wl}-G'
8168 fi
8169 else
8170 # not using gcc
8171 if test "$host_cpu" = ia64; then
8172 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8173 # chokes on -Wl,-G. The following line is correct:
8174 shared_flag='-G'
8175 else
8176 if test "$aix_use_runtimelinking" = yes; then
8177 shared_flag='${wl}-G'
8178 else
8179 shared_flag='${wl}-bM:SRE'
8180 fi
8181 fi
8182 fi
8183
8184 # It seems that -bexpall does not export symbols beginning with
8185 # underscore (_), so it is better to generate a list of symbols to export.
8186 always_export_symbols=yes
8187 if test "$aix_use_runtimelinking" = yes; then
8188 # Warning - without using the other runtime loading flags (-brtl),
8189 # -berok will link without error, but may produce a broken library.
8190 allow_undefined_flag='-berok'
8191 # Determine the default libpath from the value encoded in an
8192 # empty executable.
8193 cat >conftest.$ac_ext <<_ACEOF
8194/* confdefs.h. */
8195_ACEOF
8196cat confdefs.h >>conftest.$ac_ext
8197cat >>conftest.$ac_ext <<_ACEOF
8198/* end confdefs.h. */
8199
8200int
8201main ()
8202{
8203
8204 ;
8205 return 0;
8206}
8207_ACEOF
8208rm -f conftest.$ac_objext conftest$ac_exeext
d7040cdb
SE
8209if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8210 (eval $ac_link) 2>conftest.er1
8211 ac_status=$?
8212 grep -v '^ *+' conftest.er1 >conftest.err
8213 rm -f conftest.er1
8214 cat conftest.err >&5
8215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216 (exit $ac_status); } &&
7357c5b6
AM
8217 { ac_try='test -z "$ac_c_werror_flag"
8218 || test ! -s conftest.err'
d7040cdb
SE
8219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8220 (eval $ac_try) 2>&5
8221 ac_status=$?
8222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223 (exit $ac_status); }; } &&
8224 { ac_try='test -s conftest$ac_exeext'
8225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8226 (eval $ac_try) 2>&5
8227 ac_status=$?
8228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229 (exit $ac_status); }; }; then
d7040cdb 8230
ce2cded5
L
8231lt_aix_libpath_sed='
8232 /Import File Strings/,/^$/ {
8233 /^0/ {
8234 s/^0 *\(.*\)$/\1/
8235 p
8236 }
8237 }'
8238aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8239# Check for a 64-bit object if we didn't find anything.
8240if test -z "$aix_libpath"; then
8241 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8242fi
d7040cdb
SE
8243else
8244 echo "$as_me: failed program was:" >&5
8245sed 's/^/| /' conftest.$ac_ext >&5
8246
8247fi
8248rm -f conftest.err conftest.$ac_objext \
8249 conftest$ac_exeext conftest.$ac_ext
ce2cded5 8250if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 8251
ce2cded5
L
8252 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8253 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"
8254 else
8255 if test "$host_cpu" = ia64; then
8256 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8257 allow_undefined_flag="-z nodefs"
8258 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"
8259 else
8260 # Determine the default libpath from the value encoded in an
8261 # empty executable.
8262 cat >conftest.$ac_ext <<_ACEOF
8263/* confdefs.h. */
8264_ACEOF
8265cat confdefs.h >>conftest.$ac_ext
8266cat >>conftest.$ac_ext <<_ACEOF
8267/* end confdefs.h. */
d7040cdb 8268
ce2cded5
L
8269int
8270main ()
8271{
d7040cdb 8272
ce2cded5
L
8273 ;
8274 return 0;
8275}
8276_ACEOF
8277rm -f conftest.$ac_objext conftest$ac_exeext
8278if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8279 (eval $ac_link) 2>conftest.er1
8280 ac_status=$?
8281 grep -v '^ *+' conftest.er1 >conftest.err
8282 rm -f conftest.er1
8283 cat conftest.err >&5
8284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285 (exit $ac_status); } &&
7357c5b6
AM
8286 { ac_try='test -z "$ac_c_werror_flag"
8287 || test ! -s conftest.err'
ce2cded5
L
8288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8289 (eval $ac_try) 2>&5
8290 ac_status=$?
8291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292 (exit $ac_status); }; } &&
8293 { ac_try='test -s conftest$ac_exeext'
8294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8295 (eval $ac_try) 2>&5
8296 ac_status=$?
8297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298 (exit $ac_status); }; }; then
d7040cdb 8299
ce2cded5
L
8300lt_aix_libpath_sed='
8301 /Import File Strings/,/^$/ {
8302 /^0/ {
8303 s/^0 *\(.*\)$/\1/
8304 p
8305 }
8306 }'
8307aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8308# Check for a 64-bit object if we didn't find anything.
8309if test -z "$aix_libpath"; then
8310 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8311fi
8312else
8313 echo "$as_me: failed program was:" >&5
8314sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 8315
ce2cded5
L
8316fi
8317rm -f conftest.err conftest.$ac_objext \
8318 conftest$ac_exeext conftest.$ac_ext
8319if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 8320
ce2cded5
L
8321 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8322 # Warning - without using the other run time loading flags,
8323 # -berok will link without error, but may produce a broken library.
8324 no_undefined_flag=' ${wl}-bernotok'
8325 allow_undefined_flag=' ${wl}-berok'
8326 # Exported symbols can be pulled into shared objects from archives
8327 whole_archive_flag_spec='$convenience'
8328 archive_cmds_need_lc=yes
8329 # This is similar to how AIX traditionally builds its shared libraries.
8330 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'
8331 fi
8332 fi
8333 ;;
d7040cdb 8334
ce2cded5
L
8335 amigaos*)
8336 if test "$host_cpu" = m68k; then
8337 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)'
8338 hardcode_libdir_flag_spec='-L$libdir'
8339 hardcode_minus_L=yes
8340 fi
8341 # see comment about different semantics on the GNU ld section
8342 ld_shlibs=no
8343 ;;
8344
8345 bsdi[45]*)
8346 export_dynamic_flag_spec=-rdynamic
8347 ;;
8348
8349 cygwin* | mingw* | pw32*)
8350 # When not using gcc, we currently assume that we are using
8351 # Microsoft Visual C++.
8352 # hardcode_libdir_flag_spec is actually meaningless, as there is
8353 # no search path for DLLs.
8354 hardcode_libdir_flag_spec=' '
8355 allow_undefined_flag=unsupported
8356 # Tell ltmain to make .lib files, not .a files.
8357 libext=lib
8358 # Tell ltmain to make .dll files, not .so files.
8359 shrext_cmds=".dll"
8360 # FIXME: Setting linknames here is a bad hack.
8361 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8362 # The linker will automatically build a .lib file if we build a DLL.
8363 old_archive_from_new_cmds='true'
8364 # FIXME: Should let the user specify the lib program.
8365 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8366 fix_srcfile_path='`cygpath -w "$srcfile"`'
8367 enable_shared_with_static_runtimes=yes
8368 ;;
8369
8370 darwin* | rhapsody*)
8371 case $host_os in
8372 rhapsody* | darwin1.[012])
8373 allow_undefined_flag='${wl}-undefined ${wl}suppress'
d7040cdb 8374 ;;
ce2cded5
L
8375 *) # Darwin 1.3 on
8376 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
8377 10.[012])
8378 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8379 ;;
8380 10.*)
8381 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8382 ;;
8383 esac
d7040cdb
SE
8384 ;;
8385 esac
ce2cded5
L
8386 archive_cmds_need_lc=no
8387 hardcode_direct=no
8388 hardcode_automatic=yes
8389 hardcode_shlibpath_var=unsupported
8390 whole_archive_flag_spec=''
8391 link_all_deplibs=yes
8392 if test "$GCC" = yes ; then
8393 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8394 echo $ECHO_N "(cached) $ECHO_C" >&6
8395else
8396 lt_cv_apple_cc_single_mod=no
8397 if test -z "${LT_MULTI_MODULE}"; then
8398 # By default we will add the -single_module flag. You can override
8399 # by either setting the environment variable LT_MULTI_MODULE
8400 # non-empty at configure time, or by adding -multi-module to the
8401 # link flags.
8402 echo "int foo(void){return 1;}" > conftest.c
8403 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8404 -dynamiclib ${wl}-single_module conftest.c
8405 if test -f libconftest.dylib; then
8406 lt_cv_apple_cc_single_mod=yes
8407 rm libconftest.dylib
8408 fi
8409 rm conftest.$ac_ext
8410 fi
8411fi
d7040cdb 8412
ce2cded5
L
8413 output_verbose_link_cmd=echo
8414 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
8415 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8416 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8417 else
8418 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8419 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8420 fi
8421 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8422 module_expsym_cmds='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8423 else
8424 case $cc_basename in
8425 xlc*)
8426 output_verbose_link_cmd=echo
8427 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
8428 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8429 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8430 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8431 module_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8432 ;;
8433 *)
8434 ld_shlibs=no
8435 ;;
8436 esac
8437 fi
8438 ;;
d7040cdb 8439
ce2cded5
L
8440 dgux*)
8441 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8442 hardcode_libdir_flag_spec='-L$libdir'
8443 hardcode_shlibpath_var=no
8444 ;;
d7040cdb 8445
ce2cded5
L
8446 freebsd1*)
8447 ld_shlibs=no
8448 ;;
d7040cdb 8449
ce2cded5
L
8450 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8451 # support. Future versions do this automatically, but an explicit c++rt0.o
8452 # does not break anything, and helps significantly (at the cost of a little
8453 # extra space).
8454 freebsd2.2*)
8455 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8456 hardcode_libdir_flag_spec='-R$libdir'
8457 hardcode_direct=yes
8458 hardcode_shlibpath_var=no
d7040cdb 8459 ;;
d7040cdb 8460
ce2cded5
L
8461 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8462 freebsd2*)
8463 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8464 hardcode_direct=yes
8465 hardcode_minus_L=yes
8466 hardcode_shlibpath_var=no
8467 ;;
d7040cdb 8468
ce2cded5
L
8469 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8470 freebsd* | dragonfly*)
8471 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8472 hardcode_libdir_flag_spec='-R$libdir'
8473 hardcode_direct=yes
8474 hardcode_shlibpath_var=no
8475 ;;
d7040cdb 8476
ce2cded5
L
8477 hpux9*)
8478 if test "$GCC" = yes; then
8479 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'
8480 else
8481 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'
8482 fi
8483 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8484 hardcode_libdir_separator=:
8485 hardcode_direct=yes
d7040cdb 8486
ce2cded5
L
8487 # hardcode_minus_L: Not really in the search PATH,
8488 # but as the default location of the library.
8489 hardcode_minus_L=yes
8490 export_dynamic_flag_spec='${wl}-E'
8491 ;;
d7040cdb 8492
ce2cded5
L
8493 hpux10*)
8494 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8495 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8496 else
8497 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8498 fi
8499 if test "$with_gnu_ld" = no; then
8500 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8501 hardcode_libdir_flag_spec_ld='+b $libdir'
8502 hardcode_libdir_separator=:
8503 hardcode_direct=yes
8504 hardcode_direct_absolute=yes
8505 export_dynamic_flag_spec='${wl}-E'
8506 # hardcode_minus_L: Not really in the search PATH,
8507 # but as the default location of the library.
8508 hardcode_minus_L=yes
8509 fi
8510 ;;
d7040cdb 8511
ce2cded5
L
8512 hpux11*)
8513 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8514 case $host_cpu in
8515 hppa*64*)
8516 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8517 ;;
8518 ia64*)
8519 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8520 ;;
8521 *)
8522 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8523 ;;
8524 esac
8525 else
8526 case $host_cpu in
8527 hppa*64*)
8528 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8529 ;;
8530 ia64*)
8531 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8532 ;;
8533 *)
8534 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8535 ;;
8536 esac
8537 fi
8538 if test "$with_gnu_ld" = no; then
8539 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8540 hardcode_libdir_separator=:
d7040cdb 8541
ce2cded5
L
8542 case $host_cpu in
8543 hppa*64*|ia64*)
8544 hardcode_direct=no
8545 hardcode_shlibpath_var=no
8546 ;;
8547 *)
8548 hardcode_direct=yes
8549 hardcode_direct_absolute=yes
8550 export_dynamic_flag_spec='${wl}-E'
d7040cdb 8551
ce2cded5
L
8552 # hardcode_minus_L: Not really in the search PATH,
8553 # but as the default location of the library.
8554 hardcode_minus_L=yes
8555 ;;
8556 esac
8557 fi
8558 ;;
d7040cdb 8559
ce2cded5
L
8560 irix5* | irix6* | nonstopux*)
8561 if test "$GCC" = yes; then
8562 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'
8563 # Try to use the -exported_symbol ld option, if it does not
8564 # work, assume that -exports_file does not work either and
8565 # implicitly export all symbols.
8566 save_LDFLAGS="$LDFLAGS"
8567 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8568 cat >conftest.$ac_ext <<_ACEOF
8569int foo(void) {}
8570_ACEOF
8571rm -f conftest.$ac_objext conftest$ac_exeext
8572if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8573 (eval $ac_link) 2>conftest.er1
8574 ac_status=$?
8575 grep -v '^ *+' conftest.er1 >conftest.err
8576 rm -f conftest.er1
8577 cat conftest.err >&5
8578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579 (exit $ac_status); } &&
7357c5b6
AM
8580 { ac_try='test -z "$ac_c_werror_flag"
8581 || test ! -s conftest.err'
ce2cded5
L
8582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8583 (eval $ac_try) 2>&5
8584 ac_status=$?
8585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586 (exit $ac_status); }; } &&
8587 { ac_try='test -s conftest$ac_exeext'
8588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8589 (eval $ac_try) 2>&5
8590 ac_status=$?
8591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592 (exit $ac_status); }; }; then
8593 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
d7040cdb 8594
ce2cded5
L
8595else
8596 echo "$as_me: failed program was:" >&5
8597sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 8598
ce2cded5
L
8599fi
8600rm -f conftest.err conftest.$ac_objext \
8601 conftest$ac_exeext conftest.$ac_ext
8602 LDFLAGS="$save_LDFLAGS"
8603 else
8604 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'
8605 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'
8606 fi
8607 archive_cmds_need_lc='no'
8608 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8609 hardcode_libdir_separator=:
8610 inherit_rpath=yes
8611 link_all_deplibs=yes
8612 ;;
d7040cdb 8613
ce2cded5
L
8614 netbsd*)
8615 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8616 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8617 else
8618 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8619 fi
8620 hardcode_libdir_flag_spec='-R$libdir'
8621 hardcode_direct=yes
8622 hardcode_shlibpath_var=no
8623 ;;
d7040cdb 8624
ce2cded5
L
8625 newsos6)
8626 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8627 hardcode_direct=yes
8628 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8629 hardcode_libdir_separator=:
8630 hardcode_shlibpath_var=no
8631 ;;
d7040cdb 8632
ce2cded5
L
8633 *nto* | *qnx*)
8634 ;;
d7040cdb 8635
ce2cded5
L
8636 openbsd*)
8637 hardcode_direct=yes
8638 hardcode_shlibpath_var=no
8639 hardcode_direct_absolute=yes
8640 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8641 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8642 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8643 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8644 export_dynamic_flag_spec='${wl}-E'
8645 else
8646 case $host_os in
8647 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8648 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8649 hardcode_libdir_flag_spec='-R$libdir'
8650 ;;
8651 *)
8652 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8653 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8654 ;;
8655 esac
8656 fi
8657 ;;
d7040cdb 8658
ce2cded5
L
8659 os2*)
8660 hardcode_libdir_flag_spec='-L$libdir'
8661 hardcode_minus_L=yes
8662 allow_undefined_flag=unsupported
8663 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'
8664 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8665 ;;
d7040cdb 8666
ce2cded5
L
8667 osf3*)
8668 if test "$GCC" = yes; then
8669 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8670 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'
8671 else
8672 allow_undefined_flag=' -expect_unresolved \*'
8673 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'
8674 fi
8675 archive_cmds_need_lc='no'
8676 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8677 hardcode_libdir_separator=:
8678 ;;
d7040cdb 8679
ce2cded5
L
8680 osf4* | osf5*) # as osf3* with the addition of -msym flag
8681 if test "$GCC" = yes; then
8682 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8683 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'
8684 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8685 else
8686 allow_undefined_flag=' -expect_unresolved \*'
8687 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'
8688 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~
8689 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
d7040cdb 8690
ce2cded5
L
8691 # Both c and cxx compiler support -rpath directly
8692 hardcode_libdir_flag_spec='-rpath $libdir'
8693 fi
8694 archive_cmds_need_lc='no'
8695 hardcode_libdir_separator=:
8696 ;;
d7040cdb 8697
ce2cded5
L
8698 solaris*)
8699 no_undefined_flag=' -z defs'
8700 if test "$GCC" = yes; then
8701 wlarc='${wl}'
8702 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8703 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8704 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8705 else
8706 case `$CC -V 2>&1` in
8707 *"Compilers 5.0"*)
8708 wlarc=''
8709 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8710 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8711 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8712 ;;
8713 *)
8714 wlarc='${wl}'
8715 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8716 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8717 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8718 ;;
8719 esac
8720 fi
8721 hardcode_libdir_flag_spec='-R$libdir'
8722 hardcode_shlibpath_var=no
8723 case $host_os in
8724 solaris2.[0-5] | solaris2.[0-5].*) ;;
8725 *)
8726 # The compiler driver will combine and reorder linker options,
8727 # but understands `-z linker_flag'. GCC discards it without `$wl',
8728 # but is careful enough not to reorder.
8729 # Supported since Solaris 2.6 (maybe 2.5.1?)
8730 if test "$GCC" = yes; then
8731 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8732 else
8733 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8734 fi
8735 ;;
8736 esac
8737 link_all_deplibs=yes
8738 ;;
d7040cdb 8739
ce2cded5
L
8740 sunos4*)
8741 if test "x$host_vendor" = xsequent; then
8742 # Use $CC to link under sequent, because it throws in some extra .o
8743 # files that make .init and .fini sections work.
8744 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8745 else
8746 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8747 fi
8748 hardcode_libdir_flag_spec='-L$libdir'
8749 hardcode_direct=yes
8750 hardcode_minus_L=yes
8751 hardcode_shlibpath_var=no
8752 ;;
d7040cdb 8753
ce2cded5
L
8754 sysv4)
8755 case $host_vendor in
8756 sni)
8757 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8758 hardcode_direct=yes # is this really true???
8759 ;;
8760 siemens)
8761 ## LD is ld it makes a PLAMLIB
8762 ## CC just makes a GrossModule.
8763 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8764 reload_cmds='$CC -r -o $output$reload_objs'
8765 hardcode_direct=no
8766 ;;
8767 motorola)
8768 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8769 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8770 ;;
8771 esac
8772 runpath_var='LD_RUN_PATH'
8773 hardcode_shlibpath_var=no
8774 ;;
d7040cdb 8775
ce2cded5
L
8776 sysv4.3*)
8777 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8778 hardcode_shlibpath_var=no
8779 export_dynamic_flag_spec='-Bexport'
8780 ;;
d7040cdb 8781
ce2cded5
L
8782 sysv4*MP*)
8783 if test -d /usr/nec; then
8784 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8785 hardcode_shlibpath_var=no
8786 runpath_var=LD_RUN_PATH
8787 hardcode_runpath_var=yes
8788 ld_shlibs=yes
8789 fi
8790 ;;
d7040cdb 8791
ce2cded5
L
8792 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8793 no_undefined_flag='${wl}-z,text'
8794 archive_cmds_need_lc=no
8795 hardcode_shlibpath_var=no
8796 runpath_var='LD_RUN_PATH'
d7040cdb 8797
ce2cded5
L
8798 if test "$GCC" = yes; then
8799 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8800 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8801 else
8802 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8803 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8804 fi
8805 ;;
d7040cdb 8806
ce2cded5
L
8807 sysv5* | sco3.2v5* | sco5v6*)
8808 # Note: We can NOT use -z defs as we might desire, because we do not
8809 # link with -lc, and that would cause any symbols used from libc to
8810 # always be unresolved, which means just about no library would
8811 # ever link correctly. If we're not using GNU ld we use -z text
8812 # though, which does catch some bad symbols but isn't as heavy-handed
8813 # as -z defs.
8814 no_undefined_flag='${wl}-z,text'
8815 allow_undefined_flag='${wl}-z,nodefs'
8816 archive_cmds_need_lc=no
8817 hardcode_shlibpath_var=no
8818 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8819 hardcode_libdir_separator=':'
8820 link_all_deplibs=yes
8821 export_dynamic_flag_spec='${wl}-Bexport'
8822 runpath_var='LD_RUN_PATH'
d7040cdb 8823
ce2cded5
L
8824 if test "$GCC" = yes; then
8825 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8826 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8827 else
8828 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8829 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8830 fi
8831 ;;
d7040cdb 8832
ce2cded5
L
8833 uts4*)
8834 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8835 hardcode_libdir_flag_spec='-L$libdir'
8836 hardcode_shlibpath_var=no
8837 ;;
d7040cdb 8838
ce2cded5
L
8839 *)
8840 ld_shlibs=no
8841 ;;
8842 esac
d7040cdb 8843
ce2cded5
L
8844 if test x$host_vendor = xsni; then
8845 case $host in
8846 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8847 export_dynamic_flag_spec='${wl}-Blargedynsym'
8848 ;;
8849 esac
8850 fi
8851 fi
d7040cdb 8852
ce2cded5
L
8853echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8854echo "${ECHO_T}$ld_shlibs" >&6
8855test "$ld_shlibs" = no && can_build_shared=no
d7040cdb 8856
ce2cded5 8857with_gnu_ld=$with_gnu_ld
d7040cdb
SE
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
ce2cded5
L
8873#
8874# Do we need to explicitly link libc?
8875#
8876case "x$archive_cmds_need_lc" in
8877x|xyes)
8878 # Assume -lc should be added
8879 archive_cmds_need_lc=yes
d7040cdb 8880
ce2cded5
L
8881 if test "$enable_shared" = yes && test "$GCC" = yes; then
8882 case $archive_cmds in
8883 *'~'*)
8884 # FIXME: we may have to deal with multi-command sequences.
8885 ;;
8886 '$CC '*)
8887 # Test whether the compiler implicitly links with -lc since on some
8888 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8889 # to ld, don't add -lc before -lgcc.
8890 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8891echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8892 $RM conftest*
8893 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 8894
ce2cded5
L
8895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8896 (eval $ac_compile) 2>&5
8897 ac_status=$?
8898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8899 (exit $ac_status); } 2>conftest.err; then
8900 soname=conftest
8901 lib=conftest
8902 libobjs=conftest.$ac_objext
8903 deplibs=
8904 wl=$lt_prog_compiler_wl
8905 pic_flag=$lt_prog_compiler_pic
8906 compiler_flags=-v
8907 linker_flags=-v
8908 verstring=
8909 output_objdir=.
8910 libname=conftest
8911 lt_save_allow_undefined_flag=$allow_undefined_flag
8912 allow_undefined_flag=
8913 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8914 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8915 ac_status=$?
8916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917 (exit $ac_status); }
8918 then
8919 archive_cmds_need_lc=no
8920 else
8921 archive_cmds_need_lc=yes
8922 fi
8923 allow_undefined_flag=$lt_save_allow_undefined_flag
8924 else
8925 cat conftest.err 1>&5
8926 fi
8927 $RM conftest*
8928 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8929echo "${ECHO_T}$archive_cmds_need_lc" >&6
8930 ;;
8931 esac
8932 fi
8933 ;;
8934esac
d7040cdb
SE
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
d7040cdb 8962
d7040cdb 8963
d7040cdb
SE
8964
8965
8966
8967
8968
8969
d7040cdb 8970
d7040cdb 8971
d7040cdb 8972
d7040cdb 8973
d7040cdb 8974
d7040cdb 8975
d7040cdb 8976
d7040cdb 8977
d7040cdb 8978
d7040cdb 8979
d7040cdb 8980
d7040cdb 8981
d7040cdb 8982
d7040cdb 8983
d7040cdb 8984
d7040cdb 8985
d7040cdb 8986
d7040cdb 8987
d7040cdb 8988
d7040cdb 8989
d7040cdb 8990
d7040cdb 8991
d7040cdb 8992
d7040cdb 8993
d7040cdb 8994
d7040cdb 8995
d7040cdb 8996
d7040cdb 8997
ce2cded5
L
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9093echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9094withGCC=$GCC
9095if test "$withGCC" = yes; then
9096 case $host_os in
9097 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9098 *) lt_awk_arg="/^libraries:/" ;;
9099 esac
9100 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9101 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9102 # if the path contains ";" then we assume it to be the separator
9103 # otherwise default to the standard path separator (i.e. ":") - it is
9104 # assumed that no part of a normal pathname contains ";" but that should
9105 # okay in the real world where ";" in dirpaths is itself problematic.
9106 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9107 else
9108 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9109 fi
9110 # Ok, now we have the path, separated by spaces, we can step through it
9111 # and add multilib dir if necessary.
9112 lt_tmp_lt_search_path_spec=
9113 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9114 for lt_sys_path in $lt_search_path_spec; do
9115 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9116 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9117 else
9118 test -d "$lt_sys_path" && \
9119 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9120 fi
9121 done
9122 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9123BEGIN {RS=" "; FS="/|\n";} {
9124 lt_foo="";
9125 lt_count=0;
9126 for (lt_i = NF; lt_i > 0; lt_i--) {
9127 if ($lt_i != "" && $lt_i != ".") {
9128 if ($lt_i == "..") {
9129 lt_count++;
9130 } else {
9131 if (lt_count == 0) {
9132 lt_foo="/" $lt_i lt_foo;
9133 } else {
9134 lt_count--;
9135 }
9136 }
9137 }
9138 }
9139 if (lt_foo != "") { lt_freq[lt_foo]++; }
9140 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9141}'`
9142 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
d7040cdb 9143else
ce2cded5
L
9144 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9145fi
9146library_names_spec=
9147libname_spec='lib$name'
9148soname_spec=
9149shrext_cmds=".so"
9150postinstall_cmds=
9151postuninstall_cmds=
9152finish_cmds=
9153finish_eval=
9154shlibpath_var=
9155shlibpath_overrides_runpath=unknown
9156version_type=none
9157dynamic_linker="$host_os ld.so"
9158sys_lib_dlsearch_path_spec="/lib /usr/lib"
9159need_lib_prefix=unknown
9160hardcode_into_libs=no
9161
9162# when you set need_version to no, make sure it does not cause -set_version
9163# flags to be left without arguments
9164need_version=unknown
9165
9166case $host_os in
9167aix3*)
9168 version_type=linux
9169 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9170 shlibpath_var=LIBPATH
9171
9172 # AIX 3 has no versioning support, so we append a major version to the name.
9173 soname_spec='${libname}${release}${shared_ext}$major'
9174 ;;
9175
50e7d84b 9176aix[4-9]*)
ce2cded5
L
9177 version_type=linux
9178 need_lib_prefix=no
9179 need_version=no
9180 hardcode_into_libs=yes
9181 if test "$host_cpu" = ia64; then
9182 # AIX 5 supports IA64
9183 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9184 shlibpath_var=LD_LIBRARY_PATH
9185 else
9186 # With GCC up to 2.95.x, collect2 would create an import file
9187 # for dependence libraries. The import file would start with
9188 # the line `#! .'. This would cause the generated library to
9189 # depend on `.', always an invalid library. This was fixed in
9190 # development snapshots of GCC prior to 3.0.
9191 case $host_os in
9192 aix4 | aix4.[01] | aix4.[01].*)
9193 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9194 echo ' yes '
9195 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9196 :
9197 else
9198 can_build_shared=no
9199 fi
9200 ;;
9201 esac
9202 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9203 # soname into executable. Probably we can add versioning support to
9204 # collect2, so additional links can be useful in future.
9205 if test "$aix_use_runtimelinking" = yes; then
9206 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9207 # instead of lib<name>.a to let people know that these are not
9208 # typical AIX shared libraries.
9209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9210 else
9211 # We preserve .a as extension for shared libraries through AIX4.2
9212 # and later when we are not doing run time linking.
9213 library_names_spec='${libname}${release}.a $libname.a'
9214 soname_spec='${libname}${release}${shared_ext}$major'
9215 fi
9216 shlibpath_var=LIBPATH
9217 fi
9218 ;;
9219
9220amigaos*)
9221 if test "$host_cpu" = m68k; then
9222 library_names_spec='$libname.ixlibrary $libname.a'
9223 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9224 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'
9225 else
9226 dynamic_linker=no
9227 fi
9228 ;;
9229
9230beos*)
9231 library_names_spec='${libname}${shared_ext}'
9232 dynamic_linker="$host_os ld.so"
9233 shlibpath_var=LIBRARY_PATH
9234 ;;
9235
9236bsdi[45]*)
9237 version_type=linux
9238 need_version=no
9239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9240 soname_spec='${libname}${release}${shared_ext}$major'
9241 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9242 shlibpath_var=LD_LIBRARY_PATH
9243 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9244 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9245 # the default ld.so.conf also contains /usr/contrib/lib and
9246 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9247 # libtool to hard-code these into programs
9248 ;;
9249
9250cygwin* | mingw* | pw32*)
9251 version_type=windows
9252 shrext_cmds=".dll"
9253 need_version=no
9254 need_lib_prefix=no
9255
9256 case $withGCC,$host_os in
9257 yes,cygwin* | yes,mingw* | yes,pw32*)
9258 library_names_spec='$libname.dll.a'
9259 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9260 postinstall_cmds='base_file=`basename \${file}`~
9261 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9262 dldir=$destdir/`dirname \$dlpath`~
9263 test -d \$dldir || mkdir -p \$dldir~
9264 $install_prog $dir/$dlname \$dldir/$dlname~
9265 chmod a+x \$dldir/$dlname~
9266 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9267 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9268 fi'
9269 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9270 dlpath=$dir/\$dldll~
9271 $RM \$dlpath'
9272 shlibpath_overrides_runpath=yes
9273
9274 case $host_os in
9275 cygwin*)
9276 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9277 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9278 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9279 ;;
9280 mingw*)
9281 # MinGW DLLs use traditional 'lib' prefix
9282 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9283 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9284 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9285 # It is most probably a Windows format PATH printed by
9286 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9287 # path with ; separators, and with drive letters. We can handle the
9288 # drive letters (cygwin fileutils understands them), so leave them,
9289 # especially as we might pass files found there to a mingw objdump,
9290 # which wouldn't understand a cygwinified path. Ahh.
9291 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9292 else
9293 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9294 fi
9295 ;;
9296 pw32*)
9297 # pw32 DLLs use 'pw' prefix rather than 'lib'
9298 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9299 ;;
9300 esac
9301 ;;
9302
9303 *)
9304 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9305 ;;
9306 esac
9307 dynamic_linker='Win32 ld.exe'
9308 # FIXME: first we should search . and the directory the executable is in
9309 shlibpath_var=PATH
9310 ;;
9311
9312darwin* | rhapsody*)
9313 dynamic_linker="$host_os dyld"
9314 version_type=darwin
9315 need_lib_prefix=no
9316 need_version=no
9317 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9318 soname_spec='${libname}${release}${major}$shared_ext'
9319 shlibpath_overrides_runpath=yes
9320 shlibpath_var=DYLD_LIBRARY_PATH
9321 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9322
9323 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9324 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9325 ;;
9326
9327dgux*)
9328 version_type=linux
9329 need_lib_prefix=no
9330 need_version=no
9331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9332 soname_spec='${libname}${release}${shared_ext}$major'
9333 shlibpath_var=LD_LIBRARY_PATH
9334 ;;
9335
9336freebsd1*)
9337 dynamic_linker=no
9338 ;;
9339
9340freebsd* | dragonfly*)
9341 # DragonFly does not have aout. When/if they implement a new
9342 # versioning mechanism, adjust this.
9343 if test -x /usr/bin/objformat; then
9344 objformat=`/usr/bin/objformat`
9345 else
9346 case $host_os in
9347 freebsd[123]*) objformat=aout ;;
9348 *) objformat=elf ;;
9349 esac
9350 fi
9351 version_type=freebsd-$objformat
9352 case $version_type in
9353 freebsd-elf*)
9354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9355 need_version=no
9356 need_lib_prefix=no
9357 ;;
9358 freebsd-*)
9359 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9360 need_version=yes
9361 ;;
9362 esac
9363 shlibpath_var=LD_LIBRARY_PATH
9364 case $host_os in
9365 freebsd2*)
9366 shlibpath_overrides_runpath=yes
9367 ;;
9368 freebsd3.[01]* | freebsdelf3.[01]*)
9369 shlibpath_overrides_runpath=yes
9370 hardcode_into_libs=yes
9371 ;;
9372 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9373 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9374 shlibpath_overrides_runpath=no
9375 hardcode_into_libs=yes
9376 ;;
9377 *) # from 4.6 on, and DragonFly
9378 shlibpath_overrides_runpath=yes
9379 hardcode_into_libs=yes
9380 ;;
9381 esac
9382 ;;
9383
9384gnu*)
9385 version_type=linux
9386 need_lib_prefix=no
9387 need_version=no
9388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9389 soname_spec='${libname}${release}${shared_ext}$major'
9390 shlibpath_var=LD_LIBRARY_PATH
9391 hardcode_into_libs=yes
9392 ;;
9393
9394hpux9* | hpux10* | hpux11*)
9395 # Give a soname corresponding to the major version so that dld.sl refuses to
9396 # link against other versions.
9397 version_type=sunos
9398 need_lib_prefix=no
9399 need_version=no
9400 case $host_cpu in
9401 ia64*)
9402 shrext_cmds='.so'
9403 hardcode_into_libs=yes
9404 dynamic_linker="$host_os dld.so"
9405 shlibpath_var=LD_LIBRARY_PATH
9406 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9408 soname_spec='${libname}${release}${shared_ext}$major'
9409 if test "X$HPUX_IA64_MODE" = X32; then
9410 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9411 else
9412 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9413 fi
9414 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9415 ;;
9416 hppa*64*)
9417 shrext_cmds='.sl'
9418 hardcode_into_libs=yes
9419 dynamic_linker="$host_os dld.sl"
9420 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9421 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9423 soname_spec='${libname}${release}${shared_ext}$major'
9424 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9425 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9426 ;;
9427 *)
9428 shrext_cmds='.sl'
9429 dynamic_linker="$host_os dld.sl"
9430 shlibpath_var=SHLIB_PATH
9431 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9433 soname_spec='${libname}${release}${shared_ext}$major'
9434 ;;
9435 esac
9436 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9437 postinstall_cmds='chmod 555 $lib'
9438 ;;
9439
9440interix[3-9]*)
9441 version_type=linux
9442 need_lib_prefix=no
9443 need_version=no
9444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9445 soname_spec='${libname}${release}${shared_ext}$major'
9446 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9447 shlibpath_var=LD_LIBRARY_PATH
9448 shlibpath_overrides_runpath=no
9449 hardcode_into_libs=yes
9450 ;;
9451
9452irix5* | irix6* | nonstopux*)
9453 case $host_os in
9454 nonstopux*) version_type=nonstopux ;;
9455 *)
9456 if test "$lt_cv_prog_gnu_ld" = yes; then
9457 version_type=linux
9458 else
9459 version_type=irix
9460 fi ;;
9461 esac
9462 need_lib_prefix=no
9463 need_version=no
9464 soname_spec='${libname}${release}${shared_ext}$major'
9465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9466 case $host_os in
9467 irix5* | nonstopux*)
9468 libsuff= shlibsuff=
9469 ;;
9470 *)
9471 case $LD in # libtool.m4 will add one of these switches to LD
9472 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9473 libsuff= shlibsuff= libmagic=32-bit;;
9474 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9475 libsuff=32 shlibsuff=N32 libmagic=N32;;
9476 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9477 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9478 *) libsuff= shlibsuff= libmagic=never-match;;
9479 esac
9480 ;;
9481 esac
9482 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9483 shlibpath_overrides_runpath=no
9484 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9485 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9486 hardcode_into_libs=yes
9487 ;;
9488
9489# No shared lib support for Linux oldld, aout, or coff.
9490linux*oldld* | linux*aout* | linux*coff*)
9491 dynamic_linker=no
9492 ;;
9493
9494# This must be Linux ELF.
9495linux* | k*bsd*-gnu)
9496 version_type=linux
9497 need_lib_prefix=no
9498 need_version=no
9499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9500 soname_spec='${libname}${release}${shared_ext}$major'
9501 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9502 shlibpath_var=LD_LIBRARY_PATH
9503 shlibpath_overrides_runpath=no
9504 # Some binutils ld are patched to set DT_RUNPATH
9505 save_LDFLAGS=$LDFLAGS
9506 save_libdir=$libdir
9507 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9508 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9509 cat >conftest.$ac_ext <<_ACEOF
d7040cdb
SE
9510/* confdefs.h. */
9511_ACEOF
9512cat confdefs.h >>conftest.$ac_ext
9513cat >>conftest.$ac_ext <<_ACEOF
9514/* end confdefs.h. */
9515
d7040cdb
SE
9516int
9517main ()
9518{
ce2cded5 9519
d7040cdb
SE
9520 ;
9521 return 0;
9522}
9523_ACEOF
9524rm -f conftest.$ac_objext conftest$ac_exeext
9525if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9526 (eval $ac_link) 2>conftest.er1
9527 ac_status=$?
9528 grep -v '^ *+' conftest.er1 >conftest.err
9529 rm -f conftest.er1
9530 cat conftest.err >&5
9531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9532 (exit $ac_status); } &&
7357c5b6
AM
9533 { ac_try='test -z "$ac_c_werror_flag"
9534 || test ! -s conftest.err'
d7040cdb
SE
9535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9536 (eval $ac_try) 2>&5
9537 ac_status=$?
9538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9539 (exit $ac_status); }; } &&
9540 { ac_try='test -s conftest$ac_exeext'
9541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9542 (eval $ac_try) 2>&5
9543 ac_status=$?
9544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9545 (exit $ac_status); }; }; then
9546 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
9547 shlibpath_overrides_runpath=yes
d7040cdb 9548fi
d7040cdb 9549
ce2cded5
L
9550else
9551 echo "$as_me: failed program was:" >&5
9552sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb
SE
9553
9554fi
ce2cded5
L
9555rm -f conftest.err conftest.$ac_objext \
9556 conftest$ac_exeext conftest.$ac_ext
9557 LDFLAGS=$save_LDFLAGS
9558 libdir=$save_libdir
d7040cdb 9559
ce2cded5
L
9560 # This implies no fast_install, which is unacceptable.
9561 # Some rework will be needed to allow for fast_install
9562 # before this can be enabled.
9563 hardcode_into_libs=yes
d7040cdb 9564
ce2cded5
L
9565 # Append ld.so.conf contents to the search path
9566 if test -f /etc/ld.so.conf; then
9567 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9568 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9569 fi
d7040cdb 9570
ce2cded5
L
9571 # We used to test for /lib/ld.so.1 and disable shared libraries on
9572 # powerpc, because MkLinux only supported shared libraries with the
9573 # GNU dynamic linker. Since this was broken with cross compilers,
9574 # most powerpc-linux boxes support dynamic linking these days and
9575 # people can always --disable-shared, the test was removed, and we
9576 # assume the GNU/Linux dynamic linker is in use.
9577 dynamic_linker='GNU/Linux ld.so'
9578 ;;
d7040cdb 9579
ce2cded5
L
9580netbsd*)
9581 version_type=sunos
9582 need_lib_prefix=no
9583 need_version=no
9584 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9586 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9587 dynamic_linker='NetBSD (a.out) ld.so'
9588 else
9589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9590 soname_spec='${libname}${release}${shared_ext}$major'
9591 dynamic_linker='NetBSD ld.elf_so'
9592 fi
9593 shlibpath_var=LD_LIBRARY_PATH
9594 shlibpath_overrides_runpath=yes
9595 hardcode_into_libs=yes
9596 ;;
d7040cdb 9597
ce2cded5
L
9598newsos6)
9599 version_type=linux
9600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9601 shlibpath_var=LD_LIBRARY_PATH
9602 shlibpath_overrides_runpath=yes
9603 ;;
d7040cdb 9604
ce2cded5
L
9605*nto* | *qnx*)
9606 version_type=qnx
9607 need_lib_prefix=no
9608 need_version=no
9609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9610 soname_spec='${libname}${release}${shared_ext}$major'
9611 shlibpath_var=LD_LIBRARY_PATH
9612 shlibpath_overrides_runpath=no
9613 hardcode_into_libs=yes
9614 dynamic_linker='ldqnx.so'
9615 ;;
d7040cdb 9616
ce2cded5
L
9617openbsd*)
9618 version_type=sunos
9619 sys_lib_dlsearch_path_spec="/usr/lib"
9620 need_lib_prefix=no
9621 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9622 case $host_os in
9623 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9624 *) need_version=no ;;
9625 esac
9626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9627 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9628 shlibpath_var=LD_LIBRARY_PATH
9629 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9630 case $host_os in
9631 openbsd2.[89] | openbsd2.[89].*)
9632 shlibpath_overrides_runpath=no
9633 ;;
9634 *)
9635 shlibpath_overrides_runpath=yes
9636 ;;
9637 esac
9638 else
9639 shlibpath_overrides_runpath=yes
9640 fi
9641 ;;
d7040cdb 9642
ce2cded5
L
9643os2*)
9644 libname_spec='$name'
9645 shrext_cmds=".dll"
9646 need_lib_prefix=no
9647 library_names_spec='$libname${shared_ext} $libname.a'
9648 dynamic_linker='OS/2 ld.exe'
9649 shlibpath_var=LIBPATH
9650 ;;
d7040cdb 9651
ce2cded5
L
9652osf3* | osf4* | osf5*)
9653 version_type=osf
9654 need_lib_prefix=no
9655 need_version=no
9656 soname_spec='${libname}${release}${shared_ext}$major'
9657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9658 shlibpath_var=LD_LIBRARY_PATH
9659 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9660 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9661 ;;
d7040cdb 9662
ce2cded5
L
9663rdos*)
9664 dynamic_linker=no
9665 ;;
d7040cdb 9666
ce2cded5
L
9667solaris*)
9668 version_type=linux
9669 need_lib_prefix=no
9670 need_version=no
9671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9672 soname_spec='${libname}${release}${shared_ext}$major'
9673 shlibpath_var=LD_LIBRARY_PATH
9674 shlibpath_overrides_runpath=yes
9675 hardcode_into_libs=yes
9676 # ldd complains unless libraries are executable
9677 postinstall_cmds='chmod +x $lib'
9678 ;;
d7040cdb 9679
ce2cded5
L
9680sunos4*)
9681 version_type=sunos
9682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9683 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9684 shlibpath_var=LD_LIBRARY_PATH
9685 shlibpath_overrides_runpath=yes
9686 if test "$with_gnu_ld" = yes; then
9687 need_lib_prefix=no
9688 fi
9689 need_version=yes
9690 ;;
d7040cdb 9691
ce2cded5
L
9692sysv4 | sysv4.3*)
9693 version_type=linux
9694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9695 soname_spec='${libname}${release}${shared_ext}$major'
9696 shlibpath_var=LD_LIBRARY_PATH
9697 case $host_vendor in
9698 sni)
9699 shlibpath_overrides_runpath=no
9700 need_lib_prefix=no
9701 runpath_var=LD_RUN_PATH
9702 ;;
9703 siemens)
9704 need_lib_prefix=no
9705 ;;
9706 motorola)
9707 need_lib_prefix=no
9708 need_version=no
9709 shlibpath_overrides_runpath=no
9710 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9711 ;;
9712 esac
9713 ;;
d7040cdb 9714
ce2cded5
L
9715sysv4*MP*)
9716 if test -d /usr/nec ;then
9717 version_type=linux
9718 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9719 soname_spec='$libname${shared_ext}.$major'
9720 shlibpath_var=LD_LIBRARY_PATH
9721 fi
9722 ;;
d7040cdb 9723
ce2cded5
L
9724sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9725 version_type=freebsd-elf
9726 need_lib_prefix=no
9727 need_version=no
9728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9729 soname_spec='${libname}${release}${shared_ext}$major'
9730 shlibpath_var=LD_LIBRARY_PATH
9731 shlibpath_overrides_runpath=yes
9732 hardcode_into_libs=yes
9733 if test "$with_gnu_ld" = yes; then
9734 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9735 else
9736 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9737 case $host_os in
9738 sco3.2v5*)
9739 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9740 ;;
9741 esac
9742 fi
9743 sys_lib_dlsearch_path_spec='/usr/lib'
9744 ;;
d7040cdb 9745
ce2cded5
L
9746tpf*)
9747 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9748 version_type=linux
9749 need_lib_prefix=no
9750 need_version=no
9751 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9752 shlibpath_var=LD_LIBRARY_PATH
9753 shlibpath_overrides_runpath=no
9754 hardcode_into_libs=yes
9755 ;;
d7040cdb 9756
ce2cded5
L
9757uts4*)
9758 version_type=linux
9759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9760 soname_spec='${libname}${release}${shared_ext}$major'
9761 shlibpath_var=LD_LIBRARY_PATH
9762 ;;
d7040cdb 9763
ce2cded5
L
9764*)
9765 dynamic_linker=no
9766 ;;
9767esac
9768echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9769echo "${ECHO_T}$dynamic_linker" >&6
9770test "$dynamic_linker" = no && can_build_shared=no
9771
9772variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9773if test "$GCC" = yes; then
9774 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
d7040cdb
SE
9775fi
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
d7040cdb 9788
d7040cdb 9789
d7040cdb 9790
d7040cdb 9791
d7040cdb
SE
9792
9793
9794
9795
d7040cdb 9796
d7040cdb
SE
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
d7040cdb
SE
9810
9811
9812
9813
d7040cdb
SE
9814
9815
9816
9817
d7040cdb 9818
d7040cdb 9819
d7040cdb 9820
d7040cdb 9821
d7040cdb 9822
d7040cdb 9823
d7040cdb 9824
d7040cdb
SE
9825
9826
9827
9828
9829
d7040cdb 9830
d7040cdb 9831
d7040cdb 9832
d7040cdb 9833
d7040cdb 9834
d7040cdb 9835
d7040cdb
SE
9836
9837
9838
9839
9840
d7040cdb
SE
9841
9842
d7040cdb 9843
d7040cdb 9844
d7040cdb 9845
d7040cdb 9846
ce2cded5
L
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9864echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9865hardcode_action=
9866if test -n "$hardcode_libdir_flag_spec" ||
9867 test -n "$runpath_var" ||
9868 test "X$hardcode_automatic" = "Xyes" ; then
9869
9870 # We can hardcode non-existent directories.
9871 if test "$hardcode_direct" != no &&
9872 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9873 # have to relink, otherwise we might link with an installed library
9874 # when we should be linking with a yet-to-be-installed one
9875 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9876 test "$hardcode_minus_L" != no; then
9877 # Linking always hardcodes the temporary library directory.
9878 hardcode_action=relink
9879 else
9880 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9881 hardcode_action=immediate
d7040cdb 9882 fi
d7040cdb 9883else
ce2cded5
L
9884 # We cannot hardcode anything, or else we can only hardcode existing
9885 # directories.
9886 hardcode_action=unsupported
d7040cdb 9887fi
ce2cded5
L
9888echo "$as_me:$LINENO: result: $hardcode_action" >&5
9889echo "${ECHO_T}$hardcode_action" >&6
d7040cdb 9890
ce2cded5
L
9891if test "$hardcode_action" = relink ||
9892 test "$inherit_rpath" = yes; then
9893 # Fast installation is not supported
9894 enable_fast_install=no
9895elif test "$shlibpath_overrides_runpath" = yes ||
9896 test "$enable_shared" = no; then
9897 # Fast installation is not necessary
9898 enable_fast_install=needless
d7040cdb
SE
9899fi
9900
d7040cdb 9901
d7040cdb 9902
d7040cdb 9903
d7040cdb 9904
d7040cdb 9905
ce2cded5
L
9906 if test "x$enable_dlopen" != xyes; then
9907 enable_dlopen=unknown
9908 enable_dlopen_self=unknown
9909 enable_dlopen_self_static=unknown
d7040cdb 9910else
ce2cded5
L
9911 lt_cv_dlopen=no
9912 lt_cv_dlopen_libs=
d7040cdb 9913
ce2cded5
L
9914 case $host_os in
9915 beos*)
9916 lt_cv_dlopen="load_add_on"
9917 lt_cv_dlopen_libs=
9918 lt_cv_dlopen_self=yes
9919 ;;
d7040cdb 9920
ce2cded5
L
9921 mingw* | pw32*)
9922 lt_cv_dlopen="LoadLibrary"
9923 lt_cv_dlopen_libs=
9924 ;;
9925
9926 cygwin*)
9927 lt_cv_dlopen="dlopen"
9928 lt_cv_dlopen_libs=
9929 ;;
9930
9931 darwin*)
9932 # if libdl is installed we need to link against it
9933 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9934echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9935if test "${ac_cv_lib_dl_dlopen+set}" = set; then
d7040cdb
SE
9936 echo $ECHO_N "(cached) $ECHO_C" >&6
9937else
ce2cded5
L
9938 ac_check_lib_save_LIBS=$LIBS
9939LIBS="-ldl $LIBS"
9940cat >conftest.$ac_ext <<_ACEOF
9941/* confdefs.h. */
9942_ACEOF
9943cat confdefs.h >>conftest.$ac_ext
9944cat >>conftest.$ac_ext <<_ACEOF
9945/* end confdefs.h. */
9946
9947/* Override any gcc2 internal prototype to avoid an error. */
9948#ifdef __cplusplus
9949extern "C"
9950#endif
9951/* We use char because int might match the return type of a gcc2
9952 builtin and then its argument prototype would still apply. */
9953char dlopen ();
9954int
9955main ()
9956{
9957dlopen ();
9958 ;
9959 return 0;
9960}
9961_ACEOF
9962rm -f conftest.$ac_objext conftest$ac_exeext
9963if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9964 (eval $ac_link) 2>conftest.er1
9965 ac_status=$?
9966 grep -v '^ *+' conftest.er1 >conftest.err
9967 rm -f conftest.er1
9968 cat conftest.err >&5
9969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970 (exit $ac_status); } &&
7357c5b6
AM
9971 { ac_try='test -z "$ac_c_werror_flag"
9972 || test ! -s conftest.err'
ce2cded5
L
9973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9974 (eval $ac_try) 2>&5
9975 ac_status=$?
9976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977 (exit $ac_status); }; } &&
9978 { ac_try='test -s conftest$ac_exeext'
9979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9980 (eval $ac_try) 2>&5
9981 ac_status=$?
9982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9983 (exit $ac_status); }; }; then
9984 ac_cv_lib_dl_dlopen=yes
9985else
9986 echo "$as_me: failed program was:" >&5
9987sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 9988
ce2cded5 9989ac_cv_lib_dl_dlopen=no
d7040cdb 9990fi
ce2cded5
L
9991rm -f conftest.err conftest.$ac_objext \
9992 conftest$ac_exeext conftest.$ac_ext
9993LIBS=$ac_check_lib_save_LIBS
d7040cdb 9994fi
ce2cded5
L
9995echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9996echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9997if test $ac_cv_lib_dl_dlopen = yes; then
9998 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d7040cdb 9999else
d7040cdb 10000
ce2cded5
L
10001 lt_cv_dlopen="dyld"
10002 lt_cv_dlopen_libs=
10003 lt_cv_dlopen_self=yes
10004
d7040cdb 10005fi
ce2cded5
L
10006
10007 ;;
10008
10009 *)
10010 echo "$as_me:$LINENO: checking for shl_load" >&5
10011echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10012if test "${ac_cv_func_shl_load+set}" = set; then
d7040cdb
SE
10013 echo $ECHO_N "(cached) $ECHO_C" >&6
10014else
ce2cded5
L
10015 cat >conftest.$ac_ext <<_ACEOF
10016/* confdefs.h. */
10017_ACEOF
10018cat confdefs.h >>conftest.$ac_ext
10019cat >>conftest.$ac_ext <<_ACEOF
10020/* end confdefs.h. */
10021/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10022 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10023#define shl_load innocuous_shl_load
d7040cdb 10024
ce2cded5
L
10025/* System header to define __stub macros and hopefully few prototypes,
10026 which can conflict with char shl_load (); below.
10027 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10028 <limits.h> exists even on freestanding compilers. */
d7040cdb 10029
ce2cded5
L
10030#ifdef __STDC__
10031# include <limits.h>
10032#else
10033# include <assert.h>
10034#endif
d7040cdb 10035
ce2cded5 10036#undef shl_load
d7040cdb 10037
ce2cded5
L
10038/* Override any gcc2 internal prototype to avoid an error. */
10039#ifdef __cplusplus
10040extern "C"
10041{
10042#endif
10043/* We use char because int might match the return type of a gcc2
10044 builtin and then its argument prototype would still apply. */
10045char shl_load ();
10046/* The GNU C library defines this for functions which it implements
10047 to always fail with ENOSYS. Some functions are actually named
10048 something starting with __ and the normal name is an alias. */
10049#if defined (__stub_shl_load) || defined (__stub___shl_load)
10050choke me
10051#else
10052char (*f) () = shl_load;
10053#endif
10054#ifdef __cplusplus
10055}
10056#endif
d7040cdb 10057
ce2cded5
L
10058int
10059main ()
10060{
10061return f != shl_load;
10062 ;
10063 return 0;
10064}
10065_ACEOF
10066rm -f conftest.$ac_objext conftest$ac_exeext
10067if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10068 (eval $ac_link) 2>conftest.er1
10069 ac_status=$?
10070 grep -v '^ *+' conftest.er1 >conftest.err
10071 rm -f conftest.er1
10072 cat conftest.err >&5
10073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10074 (exit $ac_status); } &&
7357c5b6
AM
10075 { ac_try='test -z "$ac_c_werror_flag"
10076 || test ! -s conftest.err'
ce2cded5
L
10077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10078 (eval $ac_try) 2>&5
10079 ac_status=$?
10080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10081 (exit $ac_status); }; } &&
10082 { ac_try='test -s conftest$ac_exeext'
10083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10084 (eval $ac_try) 2>&5
10085 ac_status=$?
10086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10087 (exit $ac_status); }; }; then
10088 ac_cv_func_shl_load=yes
10089else
10090 echo "$as_me: failed program was:" >&5
10091sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 10092
ce2cded5
L
10093ac_cv_func_shl_load=no
10094fi
10095rm -f conftest.err conftest.$ac_objext \
10096 conftest$ac_exeext conftest.$ac_ext
10097fi
10098echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10099echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10100if test $ac_cv_func_shl_load = yes; then
10101 lt_cv_dlopen="shl_load"
10102else
10103 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10104echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10105if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10106 echo $ECHO_N "(cached) $ECHO_C" >&6
10107else
10108 ac_check_lib_save_LIBS=$LIBS
10109LIBS="-ldld $LIBS"
10110cat >conftest.$ac_ext <<_ACEOF
10111/* confdefs.h. */
10112_ACEOF
10113cat confdefs.h >>conftest.$ac_ext
10114cat >>conftest.$ac_ext <<_ACEOF
10115/* end confdefs.h. */
d7040cdb 10116
ce2cded5
L
10117/* Override any gcc2 internal prototype to avoid an error. */
10118#ifdef __cplusplus
10119extern "C"
10120#endif
10121/* We use char because int might match the return type of a gcc2
10122 builtin and then its argument prototype would still apply. */
10123char shl_load ();
10124int
10125main ()
10126{
10127shl_load ();
10128 ;
10129 return 0;
10130}
10131_ACEOF
10132rm -f conftest.$ac_objext conftest$ac_exeext
10133if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10134 (eval $ac_link) 2>conftest.er1
d7040cdb 10135 ac_status=$?
ce2cded5
L
10136 grep -v '^ *+' conftest.er1 >conftest.err
10137 rm -f conftest.er1
10138 cat conftest.err >&5
d7040cdb 10139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5 10140 (exit $ac_status); } &&
7357c5b6
AM
10141 { ac_try='test -z "$ac_c_werror_flag"
10142 || test ! -s conftest.err'
ce2cded5
L
10143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10144 (eval $ac_try) 2>&5
d7040cdb
SE
10145 ac_status=$?
10146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
10147 (exit $ac_status); }; } &&
10148 { ac_try='test -s conftest$ac_exeext'
10149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10150 (eval $ac_try) 2>&5
d7040cdb
SE
10151 ac_status=$?
10152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
10153 (exit $ac_status); }; }; then
10154 ac_cv_lib_dld_shl_load=yes
10155else
10156 echo "$as_me: failed program was:" >&5
10157sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 10158
ce2cded5
L
10159ac_cv_lib_dld_shl_load=no
10160fi
10161rm -f conftest.err conftest.$ac_objext \
10162 conftest$ac_exeext conftest.$ac_ext
10163LIBS=$ac_check_lib_save_LIBS
10164fi
10165echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10166echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10167if test $ac_cv_lib_dld_shl_load = yes; then
10168 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10169else
10170 echo "$as_me:$LINENO: checking for dlopen" >&5
10171echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10172if test "${ac_cv_func_dlopen+set}" = set; then
d7040cdb
SE
10173 echo $ECHO_N "(cached) $ECHO_C" >&6
10174else
10175 cat >conftest.$ac_ext <<_ACEOF
10176/* confdefs.h. */
10177_ACEOF
10178cat confdefs.h >>conftest.$ac_ext
10179cat >>conftest.$ac_ext <<_ACEOF
10180/* end confdefs.h. */
ce2cded5
L
10181/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10182 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10183#define dlopen innocuous_dlopen
10184
10185/* System header to define __stub macros and hopefully few prototypes,
10186 which can conflict with char dlopen (); below.
10187 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10188 <limits.h> exists even on freestanding compilers. */
10189
10190#ifdef __STDC__
10191# include <limits.h>
10192#else
10193# include <assert.h>
10194#endif
10195
10196#undef dlopen
10197
10198/* Override any gcc2 internal prototype to avoid an error. */
10199#ifdef __cplusplus
10200extern "C"
10201{
10202#endif
10203/* We use char because int might match the return type of a gcc2
10204 builtin and then its argument prototype would still apply. */
10205char dlopen ();
10206/* The GNU C library defines this for functions which it implements
10207 to always fail with ENOSYS. Some functions are actually named
10208 something starting with __ and the normal name is an alias. */
10209#if defined (__stub_dlopen) || defined (__stub___dlopen)
10210choke me
10211#else
10212char (*f) () = dlopen;
10213#endif
10214#ifdef __cplusplus
10215}
10216#endif
d7040cdb
SE
10217
10218int
10219main ()
10220{
ce2cded5 10221return f != dlopen;
d7040cdb
SE
10222 ;
10223 return 0;
10224}
10225_ACEOF
ce2cded5
L
10226rm -f conftest.$ac_objext conftest$ac_exeext
10227if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10228 (eval $ac_link) 2>conftest.er1
d7040cdb
SE
10229 ac_status=$?
10230 grep -v '^ *+' conftest.er1 >conftest.err
10231 rm -f conftest.er1
10232 cat conftest.err >&5
10233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234 (exit $ac_status); } &&
7357c5b6
AM
10235 { ac_try='test -z "$ac_c_werror_flag"
10236 || test ! -s conftest.err'
d7040cdb
SE
10237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10238 (eval $ac_try) 2>&5
10239 ac_status=$?
10240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241 (exit $ac_status); }; } &&
ce2cded5 10242 { ac_try='test -s conftest$ac_exeext'
d7040cdb
SE
10243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10244 (eval $ac_try) 2>&5
10245 ac_status=$?
10246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10247 (exit $ac_status); }; }; then
ce2cded5 10248 ac_cv_func_dlopen=yes
d7040cdb
SE
10249else
10250 echo "$as_me: failed program was:" >&5
10251sed 's/^/| /' conftest.$ac_ext >&5
10252
ce2cded5 10253ac_cv_func_dlopen=no
d7040cdb 10254fi
ce2cded5
L
10255rm -f conftest.err conftest.$ac_objext \
10256 conftest$ac_exeext conftest.$ac_ext
d7040cdb 10257fi
ce2cded5
L
10258echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10259echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10260if test $ac_cv_func_dlopen = yes; then
10261 lt_cv_dlopen="dlopen"
10262else
10263 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10264echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10265if test "${ac_cv_lib_dl_dlopen+set}" = set; then
d7040cdb
SE
10266 echo $ECHO_N "(cached) $ECHO_C" >&6
10267else
ce2cded5
L
10268 ac_check_lib_save_LIBS=$LIBS
10269LIBS="-ldl $LIBS"
10270cat >conftest.$ac_ext <<_ACEOF
d7040cdb
SE
10271/* confdefs.h. */
10272_ACEOF
10273cat confdefs.h >>conftest.$ac_ext
10274cat >>conftest.$ac_ext <<_ACEOF
10275/* end confdefs.h. */
10276
ce2cded5
L
10277/* Override any gcc2 internal prototype to avoid an error. */
10278#ifdef __cplusplus
10279extern "C"
10280#endif
10281/* We use char because int might match the return type of a gcc2
10282 builtin and then its argument prototype would still apply. */
10283char dlopen ();
d7040cdb
SE
10284int
10285main ()
10286{
ce2cded5 10287dlopen ();
d7040cdb
SE
10288 ;
10289 return 0;
10290}
10291_ACEOF
ce2cded5
L
10292rm -f conftest.$ac_objext conftest$ac_exeext
10293if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10294 (eval $ac_link) 2>conftest.er1
d7040cdb
SE
10295 ac_status=$?
10296 grep -v '^ *+' conftest.er1 >conftest.err
10297 rm -f conftest.er1
10298 cat conftest.err >&5
10299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300 (exit $ac_status); } &&
7357c5b6
AM
10301 { ac_try='test -z "$ac_c_werror_flag"
10302 || test ! -s conftest.err'
d7040cdb
SE
10303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10304 (eval $ac_try) 2>&5
10305 ac_status=$?
10306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307 (exit $ac_status); }; } &&
ce2cded5 10308 { ac_try='test -s conftest$ac_exeext'
d7040cdb
SE
10309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10310 (eval $ac_try) 2>&5
10311 ac_status=$?
10312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313 (exit $ac_status); }; }; then
ce2cded5 10314 ac_cv_lib_dl_dlopen=yes
d7040cdb
SE
10315else
10316 echo "$as_me: failed program was:" >&5
10317sed 's/^/| /' conftest.$ac_ext >&5
10318
ce2cded5 10319ac_cv_lib_dl_dlopen=no
d7040cdb 10320fi
ce2cded5
L
10321rm -f conftest.err conftest.$ac_objext \
10322 conftest$ac_exeext conftest.$ac_ext
10323LIBS=$ac_check_lib_save_LIBS
d7040cdb 10324fi
ce2cded5
L
10325echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10326echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10327if test $ac_cv_lib_dl_dlopen = yes; then
10328 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d7040cdb 10329else
ce2cded5
L
10330 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10331echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10332if test "${ac_cv_lib_svld_dlopen+set}" = set; then
d7040cdb
SE
10333 echo $ECHO_N "(cached) $ECHO_C" >&6
10334else
ce2cded5
L
10335 ac_check_lib_save_LIBS=$LIBS
10336LIBS="-lsvld $LIBS"
d7040cdb
SE
10337cat >conftest.$ac_ext <<_ACEOF
10338/* confdefs.h. */
10339_ACEOF
10340cat confdefs.h >>conftest.$ac_ext
10341cat >>conftest.$ac_ext <<_ACEOF
10342/* end confdefs.h. */
d7040cdb 10343
ce2cded5
L
10344/* Override any gcc2 internal prototype to avoid an error. */
10345#ifdef __cplusplus
10346extern "C"
10347#endif
10348/* We use char because int might match the return type of a gcc2
10349 builtin and then its argument prototype would still apply. */
10350char dlopen ();
d7040cdb
SE
10351int
10352main ()
10353{
ce2cded5 10354dlopen ();
d7040cdb
SE
10355 ;
10356 return 0;
10357}
10358_ACEOF
ce2cded5
L
10359rm -f conftest.$ac_objext conftest$ac_exeext
10360if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10361 (eval $ac_link) 2>conftest.er1
d7040cdb
SE
10362 ac_status=$?
10363 grep -v '^ *+' conftest.er1 >conftest.err
10364 rm -f conftest.er1
10365 cat conftest.err >&5
10366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10367 (exit $ac_status); } &&
7357c5b6
AM
10368 { ac_try='test -z "$ac_c_werror_flag"
10369 || test ! -s conftest.err'
d7040cdb
SE
10370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10371 (eval $ac_try) 2>&5
10372 ac_status=$?
10373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10374 (exit $ac_status); }; } &&
ce2cded5 10375 { ac_try='test -s conftest$ac_exeext'
d7040cdb
SE
10376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10377 (eval $ac_try) 2>&5
10378 ac_status=$?
10379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380 (exit $ac_status); }; }; then
ce2cded5 10381 ac_cv_lib_svld_dlopen=yes
d7040cdb
SE
10382else
10383 echo "$as_me: failed program was:" >&5
10384sed 's/^/| /' conftest.$ac_ext >&5
10385
ce2cded5 10386ac_cv_lib_svld_dlopen=no
d7040cdb 10387fi
ce2cded5
L
10388rm -f conftest.err conftest.$ac_objext \
10389 conftest$ac_exeext conftest.$ac_ext
10390LIBS=$ac_check_lib_save_LIBS
d7040cdb 10391fi
ce2cded5
L
10392echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10393echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10394if test $ac_cv_lib_svld_dlopen = yes; then
10395 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10396else
10397 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10398echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10399if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10400 echo $ECHO_N "(cached) $ECHO_C" >&6
10401else
10402 ac_check_lib_save_LIBS=$LIBS
10403LIBS="-ldld $LIBS"
d7040cdb 10404cat >conftest.$ac_ext <<_ACEOF
d7040cdb
SE
10405/* confdefs.h. */
10406_ACEOF
10407cat confdefs.h >>conftest.$ac_ext
10408cat >>conftest.$ac_ext <<_ACEOF
ce2cded5
L
10409/* end confdefs.h. */
10410
10411/* Override any gcc2 internal prototype to avoid an error. */
10412#ifdef __cplusplus
10413extern "C"
10414#endif
10415/* We use char because int might match the return type of a gcc2
10416 builtin and then its argument prototype would still apply. */
10417char dld_link ();
d7040cdb
SE
10418int
10419main ()
10420{
ce2cded5 10421dld_link ();
d7040cdb
SE
10422 ;
10423 return 0;
10424}
10425_ACEOF
ce2cded5
L
10426rm -f conftest.$ac_objext conftest$ac_exeext
10427if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10428 (eval $ac_link) 2>conftest.er1
d7040cdb
SE
10429 ac_status=$?
10430 grep -v '^ *+' conftest.er1 >conftest.err
10431 rm -f conftest.er1
10432 cat conftest.err >&5
10433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434 (exit $ac_status); } &&
7357c5b6
AM
10435 { ac_try='test -z "$ac_c_werror_flag"
10436 || test ! -s conftest.err'
d7040cdb
SE
10437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10438 (eval $ac_try) 2>&5
10439 ac_status=$?
10440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10441 (exit $ac_status); }; } &&
ce2cded5 10442 { ac_try='test -s conftest$ac_exeext'
d7040cdb
SE
10443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10444 (eval $ac_try) 2>&5
10445 ac_status=$?
10446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10447 (exit $ac_status); }; }; then
ce2cded5 10448 ac_cv_lib_dld_dld_link=yes
d7040cdb
SE
10449else
10450 echo "$as_me: failed program was:" >&5
10451sed 's/^/| /' conftest.$ac_ext >&5
10452
ce2cded5 10453ac_cv_lib_dld_dld_link=no
d7040cdb 10454fi
ce2cded5
L
10455rm -f conftest.err conftest.$ac_objext \
10456 conftest$ac_exeext conftest.$ac_ext
10457LIBS=$ac_check_lib_save_LIBS
10458fi
10459echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10460echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10461if test $ac_cv_lib_dld_dld_link = yes; then
10462 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10463fi
10464
10465
10466fi
10467
10468
10469fi
10470
10471
10472fi
10473
10474
10475fi
10476
10477
10478fi
10479
10480 ;;
10481 esac
10482
10483 if test "x$lt_cv_dlopen" != xno; then
10484 enable_dlopen=yes
10485 else
10486 enable_dlopen=no
10487 fi
10488
10489 case $lt_cv_dlopen in
10490 dlopen)
10491 save_CPPFLAGS="$CPPFLAGS"
10492 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10493
10494 save_LDFLAGS="$LDFLAGS"
10495 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10496
10497 save_LIBS="$LIBS"
10498 LIBS="$lt_cv_dlopen_libs $LIBS"
10499
10500 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10501echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10502if test "${lt_cv_dlopen_self+set}" = set; then
10503 echo $ECHO_N "(cached) $ECHO_C" >&6
10504else
10505 if test "$cross_compiling" = yes; then :
10506 lt_cv_dlopen_self=cross
10507else
10508 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10509 lt_status=$lt_dlunknown
10510 cat > conftest.$ac_ext <<_LT_EOF
7357c5b6 10511#line 10511 "configure"
ce2cded5
L
10512#include "confdefs.h"
10513
10514#if HAVE_DLFCN_H
10515#include <dlfcn.h>
10516#endif
10517
10518#include <stdio.h>
10519
10520#ifdef RTLD_GLOBAL
10521# define LT_DLGLOBAL RTLD_GLOBAL
10522#else
10523# ifdef DL_GLOBAL
10524# define LT_DLGLOBAL DL_GLOBAL
10525# else
10526# define LT_DLGLOBAL 0
10527# endif
10528#endif
10529
10530/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10531 find out it does not work in some platform. */
10532#ifndef LT_DLLAZY_OR_NOW
10533# ifdef RTLD_LAZY
10534# define LT_DLLAZY_OR_NOW RTLD_LAZY
10535# else
10536# ifdef DL_LAZY
10537# define LT_DLLAZY_OR_NOW DL_LAZY
10538# else
10539# ifdef RTLD_NOW
10540# define LT_DLLAZY_OR_NOW RTLD_NOW
10541# else
10542# ifdef DL_NOW
10543# define LT_DLLAZY_OR_NOW DL_NOW
10544# else
10545# define LT_DLLAZY_OR_NOW 0
10546# endif
10547# endif
10548# endif
10549# endif
10550#endif
10551
10552#ifdef __cplusplus
10553extern "C" void exit (int);
10554#endif
10555
10556void fnord() { int i=42;}
10557int main ()
d7040cdb 10558{
ce2cded5
L
10559 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10560 int status = $lt_dlunknown;
10561
10562 if (self)
10563 {
10564 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10565 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10566 /* dlclose (self); */
10567 }
10568 else
10569 puts (dlerror ());
10570
10571 exit (status);
d7040cdb 10572}
ce2cded5
L
10573_LT_EOF
10574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10575 (eval $ac_link) 2>&5
d7040cdb
SE
10576 ac_status=$?
10577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
10578 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10579 (./conftest; exit; ) >&5 2>/dev/null
10580 lt_status=$?
10581 case x$lt_status in
10582 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10583 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10584 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10585 esac
10586 else :
10587 # compilation failed
10588 lt_cv_dlopen_self=no
10589 fi
10590fi
10591rm -fr conftest*
10592
10593
10594fi
10595echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10596echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10597
10598 if test "x$lt_cv_dlopen_self" = xyes; then
10599 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10600 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10601echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10602if test "${lt_cv_dlopen_self_static+set}" = set; then
10603 echo $ECHO_N "(cached) $ECHO_C" >&6
10604else
10605 if test "$cross_compiling" = yes; then :
10606 lt_cv_dlopen_self_static=cross
10607else
10608 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10609 lt_status=$lt_dlunknown
10610 cat > conftest.$ac_ext <<_LT_EOF
7357c5b6 10611#line 10611 "configure"
ce2cded5
L
10612#include "confdefs.h"
10613
10614#if HAVE_DLFCN_H
10615#include <dlfcn.h>
10616#endif
10617
10618#include <stdio.h>
10619
10620#ifdef RTLD_GLOBAL
10621# define LT_DLGLOBAL RTLD_GLOBAL
10622#else
10623# ifdef DL_GLOBAL
10624# define LT_DLGLOBAL DL_GLOBAL
10625# else
10626# define LT_DLGLOBAL 0
10627# endif
10628#endif
10629
10630/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10631 find out it does not work in some platform. */
10632#ifndef LT_DLLAZY_OR_NOW
10633# ifdef RTLD_LAZY
10634# define LT_DLLAZY_OR_NOW RTLD_LAZY
10635# else
10636# ifdef DL_LAZY
10637# define LT_DLLAZY_OR_NOW DL_LAZY
10638# else
10639# ifdef RTLD_NOW
10640# define LT_DLLAZY_OR_NOW RTLD_NOW
10641# else
10642# ifdef DL_NOW
10643# define LT_DLLAZY_OR_NOW DL_NOW
10644# else
10645# define LT_DLLAZY_OR_NOW 0
10646# endif
10647# endif
10648# endif
10649# endif
10650#endif
10651
10652#ifdef __cplusplus
10653extern "C" void exit (int);
10654#endif
10655
10656void fnord() { int i=42;}
10657int main ()
10658{
10659 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10660 int status = $lt_dlunknown;
10661
10662 if (self)
10663 {
10664 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10665 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10666 /* dlclose (self); */
10667 }
10668 else
10669 puts (dlerror ());
10670
10671 exit (status);
10672}
10673_LT_EOF
10674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10675 (eval $ac_link) 2>&5
d7040cdb
SE
10676 ac_status=$?
10677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
10678 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10679 (./conftest; exit; ) >&5 2>/dev/null
10680 lt_status=$?
10681 case x$lt_status in
10682 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10683 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10684 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10685 esac
10686 else :
10687 # compilation failed
10688 lt_cv_dlopen_self_static=no
10689 fi
10690fi
10691rm -fr conftest*
10692
d7040cdb
SE
10693
10694fi
ce2cded5
L
10695echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10696echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10697 fi
10698
10699 CPPFLAGS="$save_CPPFLAGS"
10700 LDFLAGS="$save_LDFLAGS"
10701 LIBS="$save_LIBS"
10702 ;;
10703 esac
10704
10705 case $lt_cv_dlopen_self in
10706 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10707 *) enable_dlopen_self=unknown ;;
10708 esac
10709
10710 case $lt_cv_dlopen_self_static in
10711 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10712 *) enable_dlopen_self_static=unknown ;;
10713 esac
d7040cdb
SE
10714fi
10715
ce2cded5
L
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732striplib=
10733old_striplib=
10734echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10735echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10736if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10737 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10738 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10739 echo "$as_me:$LINENO: result: yes" >&5
10740echo "${ECHO_T}yes" >&6
d7040cdb 10741else
ce2cded5
L
10742# FIXME - insert some real tests, host_os isn't really good enough
10743 case $host_os in
10744 darwin*)
10745 if test -n "$STRIP" ; then
10746 striplib="$STRIP -x"
10747 old_striplib="$STRIP -S"
10748 echo "$as_me:$LINENO: result: yes" >&5
10749echo "${ECHO_T}yes" >&6
10750 else
10751 echo "$as_me:$LINENO: result: no" >&5
10752echo "${ECHO_T}no" >&6
10753 fi
10754 ;;
10755 *)
10756 echo "$as_me:$LINENO: result: no" >&5
10757echo "${ECHO_T}no" >&6
10758 ;;
10759 esac
10760fi
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773 # Report which library types will actually be built
10774 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10775echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10776 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10777echo "${ECHO_T}$can_build_shared" >&6
10778
10779 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10780echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10781 test "$can_build_shared" = "no" && enable_shared=no
10782
10783 # On AIX, shared libraries and static libraries use the same namespace, and
10784 # are all built from PIC.
10785 case $host_os in
10786 aix3*)
10787 test "$enable_shared" = yes && enable_static=no
10788 if test -n "$RANLIB"; then
10789 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10790 postinstall_cmds='$RANLIB $lib'
10791 fi
10792 ;;
10793
50e7d84b 10794 aix[4-9]*)
ce2cded5
L
10795 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10796 test "$enable_shared" = yes && enable_static=no
10797 fi
10798 ;;
10799 esac
10800 echo "$as_me:$LINENO: result: $enable_shared" >&5
10801echo "${ECHO_T}$enable_shared" >&6
10802
10803 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10804echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10805 # Make sure either enable_shared or enable_static is yes.
10806 test "$enable_shared" = yes || enable_static=yes
10807 echo "$as_me:$LINENO: result: $enable_static" >&5
10808echo "${ECHO_T}$enable_static" >&6
10809
10810
10811
d7040cdb
SE
10812
10813fi
d7040cdb
SE
10814ac_ext=c
10815ac_cpp='$CPP $CPPFLAGS'
10816ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10817ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10818ac_compiler_gnu=$ac_cv_c_compiler_gnu
10819
ce2cded5 10820CC="$lt_save_CC"
67310ccd 10821
67310ccd
AM
10822
10823
d7040cdb
SE
10824
10825
d7040cdb 10826
d7040cdb 10827
d7040cdb 10828
ce2cded5
L
10829
10830
10831
10832
10833
10834 ac_config_commands="$ac_config_commands libtool"
10835
10836
10837
10838
10839# Only expand once:
10840
d7040cdb
SE
10841
10842
19aec961 10843ALL_LINGUAS="fr sv tr es da vi zh_CN zh_TW ga fi"
d7040cdb
SE
10844# If we haven't got the data from the intl directory,
10845# assume NLS is disabled.
10846USE_NLS=no
10847LIBINTL=
10848LIBINTL_DEP=
10849INCINTL=
10850XGETTEXT=
10851GMSGFMT=
10852POSUB=
10853
10854if test -f ../intl/config.intl; then
10855 . ../intl/config.intl
10856fi
10857echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10858echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10859if test x"$USE_NLS" != xyes; then
10860 echo "$as_me:$LINENO: result: no" >&5
10861echo "${ECHO_T}no" >&6
10862else
10863 echo "$as_me:$LINENO: result: yes" >&5
10864echo "${ECHO_T}yes" >&6
10865
10866cat >>confdefs.h <<\_ACEOF
10867#define ENABLE_NLS 1
10868_ACEOF
10869
10870
10871 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
10872echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
10873 # Look for .po and .gmo files in the source directory.
10874 CATALOGS=
10875 XLINGUAS=
10876 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
10877 # If there aren't any .gmo files the shell will give us the
10878 # literal string "../path/to/srcdir/po/*.gmo" which has to be
10879 # weeded out.
10880 case "$cat" in *\**)
10881 continue;;
10882 esac
10883 # The quadruple backslash is collapsed to a double backslash
10884 # by the backticks, then collapsed again by the double quotes,
10885 # leaving us with one backslash in the sed expression (right
10886 # before the dot that mustn't act as a wildcard).
10887 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10888 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
10889 # The user is allowed to set LINGUAS to a list of languages to
10890 # install catalogs for. If it's empty that means "all of them."
10891 if test "x$LINGUAS" = x; then
10892 CATALOGS="$CATALOGS $cat"
10893 XLINGUAS="$XLINGUAS $lang"
10894 else
10895 case "$LINGUAS" in *$lang*)
10896 CATALOGS="$CATALOGS $cat"
10897 XLINGUAS="$XLINGUAS $lang"
10898 ;;
10899 esac
10900 fi
10901 done
10902 LINGUAS="$XLINGUAS"
10903 echo "$as_me:$LINENO: result: $LINGUAS" >&5
10904echo "${ECHO_T}$LINGUAS" >&6
10905
10906
10907 DATADIRNAME=share
10908
10909 INSTOBJEXT=.mo
10910
10911 GENCAT=gencat
10912
10913 CATOBJEXT=.gmo
10914
10915fi
10916
10917 MKINSTALLDIRS=
10918 if test -n "$ac_aux_dir"; then
10919 case "$ac_aux_dir" in
10920 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
10921 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
10922 esac
10923 fi
10924 if test -z "$MKINSTALLDIRS"; then
10925 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
10926 fi
10927
10928
10929
10930 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10931echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10932 # Check whether --enable-nls or --disable-nls was given.
10933if test "${enable_nls+set}" = set; then
10934 enableval="$enable_nls"
10935 USE_NLS=$enableval
10936else
10937 USE_NLS=yes
10938fi;
10939 echo "$as_me:$LINENO: result: $USE_NLS" >&5
10940echo "${ECHO_T}$USE_NLS" >&6
10941
10942
10943
10944
10945
10946
10947# Prepare PATH_SEPARATOR.
10948# The user is always right.
10949if test "${PATH_SEPARATOR+set}" != set; then
10950 echo "#! /bin/sh" >conf$$.sh
10951 echo "exit 0" >>conf$$.sh
10952 chmod +x conf$$.sh
10953 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10954 PATH_SEPARATOR=';'
10955 else
10956 PATH_SEPARATOR=:
10957 fi
10958 rm -f conf$$.sh
10959fi
10960
10961# Find out how to test for executable files. Don't use a zero-byte file,
10962# as systems may use methods other than mode bits to determine executability.
10963cat >conf$$.file <<_ASEOF
10964#! /bin/sh
10965exit 0
10966_ASEOF
10967chmod +x conf$$.file
10968if test -x conf$$.file >/dev/null 2>&1; then
10969 ac_executable_p="test -x"
10970else
10971 ac_executable_p="test -f"
10972fi
10973rm -f conf$$.file
10974
10975# Extract the first word of "msgfmt", so it can be a program name with args.
10976set dummy msgfmt; ac_word=$2
10977echo "$as_me:$LINENO: checking for $ac_word" >&5
10978echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10979if test "${ac_cv_path_MSGFMT+set}" = set; then
10980 echo $ECHO_N "(cached) $ECHO_C" >&6
10981else
10982 case "$MSGFMT" in
10983 [\\/]* | ?:[\\/]*)
10984 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10985 ;;
10986 *)
10987 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10988 for ac_dir in $PATH; do
10989 IFS="$ac_save_IFS"
10990 test -z "$ac_dir" && ac_dir=.
10991 for ac_exec_ext in '' $ac_executable_extensions; do
10992 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10993 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
10994 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10995 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
10996 break 2
10997 fi
10998 fi
10999 done
11000 done
11001 IFS="$ac_save_IFS"
11002 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11003 ;;
11004esac
11005fi
11006MSGFMT="$ac_cv_path_MSGFMT"
11007if test "$MSGFMT" != ":"; then
11008 echo "$as_me:$LINENO: result: $MSGFMT" >&5
11009echo "${ECHO_T}$MSGFMT" >&6
11010else
11011 echo "$as_me:$LINENO: result: no" >&5
11012echo "${ECHO_T}no" >&6
11013fi
11014
11015 # Extract the first word of "gmsgfmt", so it can be a program name with args.
11016set dummy gmsgfmt; ac_word=$2
11017echo "$as_me:$LINENO: checking for $ac_word" >&5
11018echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11019if test "${ac_cv_path_GMSGFMT+set}" = set; then
11020 echo $ECHO_N "(cached) $ECHO_C" >&6
11021else
11022 case $GMSGFMT in
11023 [\\/]* | ?:[\\/]*)
11024 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11025 ;;
11026 *)
11027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11028for as_dir in $PATH
11029do
11030 IFS=$as_save_IFS
11031 test -z "$as_dir" && as_dir=.
11032 for ac_exec_ext in '' $ac_executable_extensions; do
11033 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11034 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
11035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11036 break 2
11037 fi
11038done
11039done
11040
11041 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11042 ;;
11043esac
11044fi
11045GMSGFMT=$ac_cv_path_GMSGFMT
252b5132 11046
d7040cdb
SE
11047if test -n "$GMSGFMT"; then
11048 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
11049echo "${ECHO_T}$GMSGFMT" >&6
11050else
11051 echo "$as_me:$LINENO: result: no" >&5
11052echo "${ECHO_T}no" >&6
20e95c23 11053fi
42ecbf5e 11054
20e95c23 11055
252b5132 11056
d7040cdb
SE
11057# Prepare PATH_SEPARATOR.
11058# The user is always right.
11059if test "${PATH_SEPARATOR+set}" != set; then
11060 echo "#! /bin/sh" >conf$$.sh
11061 echo "exit 0" >>conf$$.sh
11062 chmod +x conf$$.sh
11063 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11064 PATH_SEPARATOR=';'
11065 else
11066 PATH_SEPARATOR=:
11067 fi
11068 rm -f conf$$.sh
20e95c23 11069fi
252b5132 11070
d7040cdb
SE
11071# Find out how to test for executable files. Don't use a zero-byte file,
11072# as systems may use methods other than mode bits to determine executability.
11073cat >conf$$.file <<_ASEOF
11074#! /bin/sh
11075exit 0
11076_ASEOF
11077chmod +x conf$$.file
11078if test -x conf$$.file >/dev/null 2>&1; then
11079 ac_executable_p="test -x"
20e95c23 11080else
d7040cdb
SE
11081 ac_executable_p="test -f"
11082fi
11083rm -f conf$$.file
20e95c23 11084
d7040cdb
SE
11085# Extract the first word of "xgettext", so it can be a program name with args.
11086set dummy xgettext; ac_word=$2
11087echo "$as_me:$LINENO: checking for $ac_word" >&5
11088echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11089if test "${ac_cv_path_XGETTEXT+set}" = set; then
11090 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11091else
d7040cdb
SE
11092 case "$XGETTEXT" in
11093 [\\/]* | ?:[\\/]*)
11094 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11095 ;;
11096 *)
11097 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11098 for ac_dir in $PATH; do
11099 IFS="$ac_save_IFS"
11100 test -z "$ac_dir" && ac_dir=.
11101 for ac_exec_ext in '' $ac_executable_extensions; do
11102 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11103 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11104 (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
11105 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
11106 break 2
11107 fi
11108 fi
11109 done
11110 done
11111 IFS="$ac_save_IFS"
11112 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11113 ;;
11114esac
252b5132 11115fi
d7040cdb
SE
11116XGETTEXT="$ac_cv_path_XGETTEXT"
11117if test "$XGETTEXT" != ":"; then
11118 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
11119echo "${ECHO_T}$XGETTEXT" >&6
d5fbea21 11120else
d7040cdb
SE
11121 echo "$as_me:$LINENO: result: no" >&5
11122echo "${ECHO_T}no" >&6
d5fbea21
DJ
11123fi
11124
d7040cdb 11125 rm -f messages.po
d5fbea21 11126
20e95c23 11127
d7040cdb
SE
11128# Prepare PATH_SEPARATOR.
11129# The user is always right.
11130if test "${PATH_SEPARATOR+set}" != set; then
11131 echo "#! /bin/sh" >conf$$.sh
11132 echo "exit 0" >>conf$$.sh
11133 chmod +x conf$$.sh
11134 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11135 PATH_SEPARATOR=';'
11136 else
11137 PATH_SEPARATOR=:
11138 fi
11139 rm -f conf$$.sh
11140fi
20e95c23 11141
d7040cdb
SE
11142# Find out how to test for executable files. Don't use a zero-byte file,
11143# as systems may use methods other than mode bits to determine executability.
11144cat >conf$$.file <<_ASEOF
11145#! /bin/sh
11146exit 0
11147_ASEOF
11148chmod +x conf$$.file
11149if test -x conf$$.file >/dev/null 2>&1; then
11150 ac_executable_p="test -x"
11151else
11152 ac_executable_p="test -f"
11153fi
11154rm -f conf$$.file
20e95c23 11155
d7040cdb
SE
11156# Extract the first word of "msgmerge", so it can be a program name with args.
11157set dummy msgmerge; ac_word=$2
11158echo "$as_me:$LINENO: checking for $ac_word" >&5
11159echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11160if test "${ac_cv_path_MSGMERGE+set}" = set; then
11161 echo $ECHO_N "(cached) $ECHO_C" >&6
11162else
11163 case "$MSGMERGE" in
11164 [\\/]* | ?:[\\/]*)
11165 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11166 ;;
11167 *)
11168 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11169 for ac_dir in $PATH; do
11170 IFS="$ac_save_IFS"
11171 test -z "$ac_dir" && ac_dir=.
11172 for ac_exec_ext in '' $ac_executable_extensions; do
11173 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11174 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
11175 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11176 break 2
11177 fi
11178 fi
11179 done
11180 done
11181 IFS="$ac_save_IFS"
11182 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11183 ;;
11184esac
11185fi
11186MSGMERGE="$ac_cv_path_MSGMERGE"
11187if test "$MSGMERGE" != ":"; then
11188 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
11189echo "${ECHO_T}$MSGMERGE" >&6
11190else
11191 echo "$as_me:$LINENO: result: no" >&5
11192echo "${ECHO_T}no" >&6
11193fi
20e95c23
DJ
11194
11195
d7040cdb
SE
11196 if test "$GMSGFMT" != ":"; then
11197 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
11198 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11199 : ;
11200 else
11201 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
11202 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
11203echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
11204 GMSGFMT=":"
11205 fi
11206 fi
20e95c23 11207
d7040cdb
SE
11208 if test "$XGETTEXT" != ":"; then
11209 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11210 (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
11211 : ;
11212 else
11213 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
11214echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
11215 XGETTEXT=":"
11216 fi
11217 rm -f messages.po
20e95c23 11218 fi
42ecbf5e 11219
d7040cdb 11220 ac_config_commands="$ac_config_commands default-1"
252b5132 11221
42ecbf5e 11222
252b5132 11223
42ecbf5e
DJ
11224
11225
d7040cdb 11226for ac_prog in 'bison -y' byacc
20e95c23 11227do
d7040cdb
SE
11228 # Extract the first word of "$ac_prog", so it can be a program name with args.
11229set dummy $ac_prog; ac_word=$2
11230echo "$as_me:$LINENO: checking for $ac_word" >&5
11231echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11232if test "${ac_cv_prog_YACC+set}" = set; then
11233 echo $ECHO_N "(cached) $ECHO_C" >&6
20e95c23 11234else
d7040cdb
SE
11235 if test -n "$YACC"; then
11236 ac_cv_prog_YACC="$YACC" # Let the user override the test.
42ecbf5e 11237else
d7040cdb
SE
11238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11239for as_dir in $PATH
11240do
11241 IFS=$as_save_IFS
11242 test -z "$as_dir" && as_dir=.
11243 for ac_exec_ext in '' $ac_executable_extensions; do
11244 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11245 ac_cv_prog_YACC="$ac_prog"
11246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11247 break 2
11248 fi
11249done
11250done
42ecbf5e 11251
42ecbf5e 11252fi
e5a52504 11253fi
d7040cdb
SE
11254YACC=$ac_cv_prog_YACC
11255if test -n "$YACC"; then
11256 echo "$as_me:$LINENO: result: $YACC" >&5
11257echo "${ECHO_T}$YACC" >&6
42ecbf5e 11258else
d7040cdb
SE
11259 echo "$as_me:$LINENO: result: no" >&5
11260echo "${ECHO_T}no" >&6
42ecbf5e 11261fi
252b5132 11262
d7040cdb 11263 test -n "$YACC" && break
42ecbf5e 11264done
d7040cdb 11265test -n "$YACC" || YACC="yacc"
d15b04bd 11266
d7040cdb
SE
11267for ac_prog in flex lex
11268do
11269 # Extract the first word of "$ac_prog", so it can be a program name with args.
11270set dummy $ac_prog; ac_word=$2
11271echo "$as_me:$LINENO: checking for $ac_word" >&5
11272echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11273if test "${ac_cv_prog_LEX+set}" = set; then
20e95c23 11274 echo $ECHO_N "(cached) $ECHO_C" >&6
d15b04bd 11275else
d7040cdb
SE
11276 if test -n "$LEX"; then
11277 ac_cv_prog_LEX="$LEX" # Let the user override the test.
11278else
11279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11280for as_dir in $PATH
11281do
11282 IFS=$as_save_IFS
11283 test -z "$as_dir" && as_dir=.
11284 for ac_exec_ext in '' $ac_executable_extensions; do
11285 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11286 ac_cv_prog_LEX="$ac_prog"
11287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11288 break 2
11289 fi
11290done
11291done
11292
11293fi
11294fi
11295LEX=$ac_cv_prog_LEX
11296if test -n "$LEX"; then
11297 echo "$as_me:$LINENO: result: $LEX" >&5
11298echo "${ECHO_T}$LEX" >&6
11299else
11300 echo "$as_me:$LINENO: result: no" >&5
11301echo "${ECHO_T}no" >&6
d15b04bd 11302fi
e5a52504 11303
d7040cdb
SE
11304 test -n "$LEX" && break
11305done
11306test -n "$LEX" || LEX=":"
42ecbf5e 11307
d7040cdb
SE
11308if test -z "$LEXLIB"
11309then
11310 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
11311echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
11312if test "${ac_cv_lib_fl_yywrap+set}" = set; then
42ecbf5e
DJ
11313 echo $ECHO_N "(cached) $ECHO_C" >&6
11314else
d7040cdb
SE
11315 ac_check_lib_save_LIBS=$LIBS
11316LIBS="-lfl $LIBS"
11317cat >conftest.$ac_ext <<_ACEOF
42ecbf5e
DJ
11318/* confdefs.h. */
11319_ACEOF
11320cat confdefs.h >>conftest.$ac_ext
11321cat >>conftest.$ac_ext <<_ACEOF
11322/* end confdefs.h. */
11323
d7040cdb
SE
11324/* Override any gcc2 internal prototype to avoid an error. */
11325#ifdef __cplusplus
11326extern "C"
11327#endif
11328/* We use char because int might match the return type of a gcc2
11329 builtin and then its argument prototype would still apply. */
11330char yywrap ();
42ecbf5e
DJ
11331int
11332main ()
11333{
d7040cdb 11334yywrap ();
42ecbf5e
DJ
11335 ;
11336 return 0;
11337}
11338_ACEOF
d7040cdb
SE
11339rm -f conftest.$ac_objext conftest$ac_exeext
11340if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11341 (eval $ac_link) 2>conftest.er1
42ecbf5e
DJ
11342 ac_status=$?
11343 grep -v '^ *+' conftest.er1 >conftest.err
11344 rm -f conftest.er1
11345 cat conftest.err >&5
11346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11347 (exit $ac_status); } &&
7357c5b6
AM
11348 { ac_try='test -z "$ac_c_werror_flag"
11349 || test ! -s conftest.err'
42ecbf5e
DJ
11350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11351 (eval $ac_try) 2>&5
11352 ac_status=$?
11353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11354 (exit $ac_status); }; } &&
d7040cdb 11355 { ac_try='test -s conftest$ac_exeext'
42ecbf5e
DJ
11356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11357 (eval $ac_try) 2>&5
11358 ac_status=$?
11359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360 (exit $ac_status); }; }; then
d7040cdb 11361 ac_cv_lib_fl_yywrap=yes
42ecbf5e
DJ
11362else
11363 echo "$as_me: failed program was:" >&5
11364sed 's/^/| /' conftest.$ac_ext >&5
11365
d7040cdb 11366ac_cv_lib_fl_yywrap=no
42ecbf5e 11367fi
d7040cdb
SE
11368rm -f conftest.err conftest.$ac_objext \
11369 conftest$ac_exeext conftest.$ac_ext
11370LIBS=$ac_check_lib_save_LIBS
42ecbf5e 11371fi
d7040cdb
SE
11372echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
11373echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
11374if test $ac_cv_lib_fl_yywrap = yes; then
11375 LEXLIB="-lfl"
20e95c23 11376else
d7040cdb
SE
11377 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
11378echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
11379if test "${ac_cv_lib_l_yywrap+set}" = set; then
11380 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11381else
d7040cdb
SE
11382 ac_check_lib_save_LIBS=$LIBS
11383LIBS="-ll $LIBS"
11384cat >conftest.$ac_ext <<_ACEOF
20e95c23 11385/* confdefs.h. */
42ecbf5e 11386_ACEOF
20e95c23
DJ
11387cat confdefs.h >>conftest.$ac_ext
11388cat >>conftest.$ac_ext <<_ACEOF
11389/* end confdefs.h. */
20e95c23 11390
d7040cdb
SE
11391/* Override any gcc2 internal prototype to avoid an error. */
11392#ifdef __cplusplus
11393extern "C"
11394#endif
11395/* We use char because int might match the return type of a gcc2
11396 builtin and then its argument prototype would still apply. */
11397char yywrap ();
20e95c23
DJ
11398int
11399main ()
11400{
d7040cdb
SE
11401yywrap ();
11402 ;
11403 return 0;
20e95c23
DJ
11404}
11405_ACEOF
d7040cdb 11406rm -f conftest.$ac_objext conftest$ac_exeext
20e95c23 11407if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d7040cdb 11408 (eval $ac_link) 2>conftest.er1
42ecbf5e 11409 ac_status=$?
d7040cdb
SE
11410 grep -v '^ *+' conftest.er1 >conftest.err
11411 rm -f conftest.er1
11412 cat conftest.err >&5
42ecbf5e 11413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb 11414 (exit $ac_status); } &&
7357c5b6
AM
11415 { ac_try='test -z "$ac_c_werror_flag"
11416 || test ! -s conftest.err'
d7040cdb
SE
11417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11418 (eval $ac_try) 2>&5
11419 ac_status=$?
11420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11421 (exit $ac_status); }; } &&
11422 { ac_try='test -s conftest$ac_exeext'
20e95c23
DJ
11423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11424 (eval $ac_try) 2>&5
11425 ac_status=$?
11426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11427 (exit $ac_status); }; }; then
d7040cdb 11428 ac_cv_lib_l_yywrap=yes
252b5132 11429else
d7040cdb 11430 echo "$as_me: failed program was:" >&5
20e95c23
DJ
11431sed 's/^/| /' conftest.$ac_ext >&5
11432
d7040cdb 11433ac_cv_lib_l_yywrap=no
252b5132 11434fi
d7040cdb
SE
11435rm -f conftest.err conftest.$ac_objext \
11436 conftest$ac_exeext conftest.$ac_ext
11437LIBS=$ac_check_lib_save_LIBS
20e95c23 11438fi
d7040cdb
SE
11439echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
11440echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
11441if test $ac_cv_lib_l_yywrap = yes; then
11442 LEXLIB="-ll"
20e95c23 11443fi
20e95c23
DJ
11444
11445fi
11446
d7040cdb 11447fi
20e95c23 11448
d7040cdb
SE
11449if test "x$LEX" != "x:"; then
11450 echo "$as_me:$LINENO: checking lex output file root" >&5
11451echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
11452if test "${ac_cv_prog_lex_root+set}" = set; then
42ecbf5e 11453 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11454else
d7040cdb
SE
11455 # The minimal lex program is just a single line: %%. But some broken lexes
11456# (Solaris, I think it was) want two %% lines, so accommodate them.
11457cat >conftest.l <<_ACEOF
11458%%
11459%%
42ecbf5e 11460_ACEOF
d7040cdb
SE
11461{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
11462 (eval $LEX conftest.l) 2>&5
11463 ac_status=$?
11464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465 (exit $ac_status); }
11466if test -f lex.yy.c; then
11467 ac_cv_prog_lex_root=lex.yy
11468elif test -f lexyy.c; then
11469 ac_cv_prog_lex_root=lexyy
11470else
11471 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
11472echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
11473 { (exit 1); exit 1; }; }
11474fi
11475fi
11476echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
11477echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
11478rm -f conftest.l
11479LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
20e95c23 11480
d7040cdb
SE
11481echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
11482echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
11483if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
11484 echo $ECHO_N "(cached) $ECHO_C" >&6
11485else
11486 # POSIX says lex can declare yytext either as a pointer or an array; the
11487# default is implementation-dependent. Figure out which it is, since
11488# not all implementations provide the %pointer and %array declarations.
11489ac_cv_prog_lex_yytext_pointer=no
11490echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
11491ac_save_LIBS=$LIBS
11492LIBS="$LIBS $LEXLIB"
11493cat >conftest.$ac_ext <<_ACEOF
11494`cat $LEX_OUTPUT_ROOT.c`
20e95c23 11495_ACEOF
d7040cdb
SE
11496rm -f conftest.$ac_objext conftest$ac_exeext
11497if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11498 (eval $ac_link) 2>conftest.er1
42ecbf5e
DJ
11499 ac_status=$?
11500 grep -v '^ *+' conftest.er1 >conftest.err
11501 rm -f conftest.er1
11502 cat conftest.err >&5
11503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11504 (exit $ac_status); } &&
7357c5b6
AM
11505 { ac_try='test -z "$ac_c_werror_flag"
11506 || test ! -s conftest.err'
42ecbf5e
DJ
11507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11508 (eval $ac_try) 2>&5
11509 ac_status=$?
11510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11511 (exit $ac_status); }; } &&
d7040cdb 11512 { ac_try='test -s conftest$ac_exeext'
42ecbf5e
DJ
11513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11514 (eval $ac_try) 2>&5
11515 ac_status=$?
11516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517 (exit $ac_status); }; }; then
d7040cdb
SE
11518 ac_cv_prog_lex_yytext_pointer=yes
11519else
11520 echo "$as_me: failed program was:" >&5
11521sed 's/^/| /' conftest.$ac_ext >&5
11522
11523fi
11524rm -f conftest.err conftest.$ac_objext \
11525 conftest$ac_exeext conftest.$ac_ext
11526LIBS=$ac_save_LIBS
11527rm -f "${LEX_OUTPUT_ROOT}.c"
11528
11529fi
11530echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
11531echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
11532if test $ac_cv_prog_lex_yytext_pointer = yes; then
11533
11534cat >>confdefs.h <<\_ACEOF
11535#define YYTEXT_POINTER 1
11536_ACEOF
11537
11538fi
11539
11540fi
11541if test "$LEX" = :; then
11542 LEX=${am_missing_run}flex
11543fi
11544
11545echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11546echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11547 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11548if test "${enable_maintainer_mode+set}" = set; then
11549 enableval="$enable_maintainer_mode"
11550 USE_MAINTAINER_MODE=$enableval
252b5132 11551else
d7040cdb
SE
11552 USE_MAINTAINER_MODE=no
11553fi;
11554 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
11555echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
42ecbf5e 11556
d7040cdb
SE
11557
11558if test $USE_MAINTAINER_MODE = yes; then
11559 MAINTAINER_MODE_TRUE=
11560 MAINTAINER_MODE_FALSE='#'
11561else
11562 MAINTAINER_MODE_TRUE='#'
11563 MAINTAINER_MODE_FALSE=
252b5132 11564fi
252b5132 11565
d7040cdb
SE
11566 MAINT=$MAINTAINER_MODE_TRUE
11567
11568
11569
11570
11571if false; then
11572 GENINSRC_NEVER_TRUE=
11573 GENINSRC_NEVER_FALSE='#'
11574else
11575 GENINSRC_NEVER_TRUE='#'
11576 GENINSRC_NEVER_FALSE=
252b5132
RH
11577fi
11578
d7040cdb
SE
11579
11580. ${srcdir}/configure.host
11581
11582
11583
11584
252b5132
RH
11585
11586
42ecbf5e
DJ
11587
11588
11589
11590
ebe1fac1 11591
a3ffa599
L
11592
11593
11594for ac_header in string.h strings.h stdlib.h unistd.h elf-hints.h limits.h sys/param.h
252b5132 11595do
42ecbf5e
DJ
11596as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11597if eval "test \"\${$as_ac_Header+set}\" = set"; then
11598 echo "$as_me:$LINENO: checking for $ac_header" >&5
11599echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11600if eval "test \"\${$as_ac_Header+set}\" = set"; then
11601 echo $ECHO_N "(cached) $ECHO_C" >&6
11602fi
11603echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11604echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11605else
11606 # Is the header compilable?
11607echo "$as_me:$LINENO: checking $ac_header usability" >&5
11608echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11609cat >conftest.$ac_ext <<_ACEOF
11610/* confdefs.h. */
11611_ACEOF
11612cat confdefs.h >>conftest.$ac_ext
11613cat >>conftest.$ac_ext <<_ACEOF
11614/* end confdefs.h. */
11615$ac_includes_default
11616#include <$ac_header>
11617_ACEOF
11618rm -f conftest.$ac_objext
11619if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11620 (eval $ac_compile) 2>conftest.er1
11621 ac_status=$?
11622 grep -v '^ *+' conftest.er1 >conftest.err
11623 rm -f conftest.er1
11624 cat conftest.err >&5
11625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626 (exit $ac_status); } &&
7357c5b6
AM
11627 { ac_try='test -z "$ac_c_werror_flag"
11628 || test ! -s conftest.err'
42ecbf5e
DJ
11629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11630 (eval $ac_try) 2>&5
11631 ac_status=$?
11632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11633 (exit $ac_status); }; } &&
11634 { ac_try='test -s conftest.$ac_objext'
11635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11636 (eval $ac_try) 2>&5
11637 ac_status=$?
11638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11639 (exit $ac_status); }; }; then
11640 ac_header_compiler=yes
11641else
11642 echo "$as_me: failed program was:" >&5
11643sed 's/^/| /' conftest.$ac_ext >&5
11644
11645ac_header_compiler=no
11646fi
11647rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11648echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11649echo "${ECHO_T}$ac_header_compiler" >&6
11650
11651# Is the header present?
11652echo "$as_me:$LINENO: checking $ac_header presence" >&5
11653echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11654cat >conftest.$ac_ext <<_ACEOF
11655/* confdefs.h. */
11656_ACEOF
11657cat confdefs.h >>conftest.$ac_ext
11658cat >>conftest.$ac_ext <<_ACEOF
11659/* end confdefs.h. */
11660#include <$ac_header>
11661_ACEOF
11662if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11663 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11664 ac_status=$?
11665 grep -v '^ *+' conftest.er1 >conftest.err
11666 rm -f conftest.er1
11667 cat conftest.err >&5
11668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11669 (exit $ac_status); } >/dev/null; then
11670 if test -s conftest.err; then
11671 ac_cpp_err=$ac_c_preproc_warn_flag
11672 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11673 else
11674 ac_cpp_err=
11675 fi
252b5132 11676else
42ecbf5e 11677 ac_cpp_err=yes
252b5132 11678fi
42ecbf5e
DJ
11679if test -z "$ac_cpp_err"; then
11680 ac_header_preproc=yes
11681else
11682 echo "$as_me: failed program was:" >&5
11683sed 's/^/| /' conftest.$ac_ext >&5
11684
11685 ac_header_preproc=no
252b5132 11686fi
42ecbf5e
DJ
11687rm -f conftest.err conftest.$ac_ext
11688echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11689echo "${ECHO_T}$ac_header_preproc" >&6
11690
11691# So? What about this header?
11692case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11693 yes:no: )
11694 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11695echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11696 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11697echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11698 ac_header_preproc=yes
11699 ;;
11700 no:yes:* )
11701 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11702echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11703 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11704echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11705 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11706echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11707 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11708echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11709 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11710echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11711 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11712echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11713 (
11714 cat <<\_ASBOX
11715## ------------------------------------------ ##
11716## Report this to the AC_PACKAGE_NAME lists. ##
11717## ------------------------------------------ ##
11718_ASBOX
11719 ) |
11720 sed "s/^/$as_me: WARNING: /" >&2
11721 ;;
11722esac
11723echo "$as_me:$LINENO: checking for $ac_header" >&5
11724echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11725if eval "test \"\${$as_ac_Header+set}\" = set"; then
11726 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11727else
42ecbf5e
DJ
11728 eval "$as_ac_Header=\$ac_header_preproc"
11729fi
11730echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11731echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11732
252b5132 11733fi
42ecbf5e
DJ
11734if test `eval echo '${'$as_ac_Header'}'` = yes; then
11735 cat >>confdefs.h <<_ACEOF
11736#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11737_ACEOF
11738
11739fi
11740
252b5132
RH
11741done
11742
42ecbf5e
DJ
11743
11744
11745
dc27aea4
AM
11746
11747
11748for ac_func in glob mkstemp realpath sbrk waitpid
252b5132 11749do
42ecbf5e
DJ
11750as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11751echo "$as_me:$LINENO: checking for $ac_func" >&5
11752echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11753if eval "test \"\${$as_ac_var+set}\" = set"; then
11754 echo $ECHO_N "(cached) $ECHO_C" >&6
11755else
11756 cat >conftest.$ac_ext <<_ACEOF
11757/* confdefs.h. */
11758_ACEOF
11759cat confdefs.h >>conftest.$ac_ext
11760cat >>conftest.$ac_ext <<_ACEOF
11761/* end confdefs.h. */
11762/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11763 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11764#define $ac_func innocuous_$ac_func
11765
252b5132 11766/* System header to define __stub macros and hopefully few prototypes,
42ecbf5e
DJ
11767 which can conflict with char $ac_func (); below.
11768 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11769 <limits.h> exists even on freestanding compilers. */
11770
11771#ifdef __STDC__
11772# include <limits.h>
11773#else
11774# include <assert.h>
11775#endif
d15b04bd 11776
42ecbf5e 11777#undef $ac_func
d15b04bd 11778
42ecbf5e
DJ
11779/* Override any gcc2 internal prototype to avoid an error. */
11780#ifdef __cplusplus
11781extern "C"
11782{
11783#endif
11784/* We use char because int might match the return type of a gcc2
11785 builtin and then its argument prototype would still apply. */
11786char $ac_func ();
252b5132
RH
11787/* The GNU C library defines this for functions which it implements
11788 to always fail with ENOSYS. Some functions are actually named
11789 something starting with __ and the normal name is an alias. */
11790#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11791choke me
11792#else
42ecbf5e
DJ
11793char (*f) () = $ac_func;
11794#endif
11795#ifdef __cplusplus
11796}
252b5132
RH
11797#endif
11798
42ecbf5e
DJ
11799int
11800main ()
11801{
11802return f != $ac_func;
11803 ;
11804 return 0;
11805}
11806_ACEOF
11807rm -f conftest.$ac_objext conftest$ac_exeext
11808if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11809 (eval $ac_link) 2>conftest.er1
11810 ac_status=$?
11811 grep -v '^ *+' conftest.er1 >conftest.err
11812 rm -f conftest.er1
11813 cat conftest.err >&5
11814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815 (exit $ac_status); } &&
7357c5b6
AM
11816 { ac_try='test -z "$ac_c_werror_flag"
11817 || test ! -s conftest.err'
42ecbf5e
DJ
11818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11819 (eval $ac_try) 2>&5
11820 ac_status=$?
11821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822 (exit $ac_status); }; } &&
11823 { ac_try='test -s conftest$ac_exeext'
11824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11825 (eval $ac_try) 2>&5
11826 ac_status=$?
11827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11828 (exit $ac_status); }; }; then
11829 eval "$as_ac_var=yes"
11830else
11831 echo "$as_me: failed program was:" >&5
11832sed 's/^/| /' conftest.$ac_ext >&5
11833
11834eval "$as_ac_var=no"
11835fi
11836rm -f conftest.err conftest.$ac_objext \
11837 conftest$ac_exeext conftest.$ac_ext
11838fi
11839echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11840echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11841if test `eval echo '${'$as_ac_var'}'` = yes; then
11842 cat >>confdefs.h <<_ACEOF
11843#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11844_ACEOF
252b5132 11845
252b5132
RH
11846fi
11847done
11848
42ecbf5e
DJ
11849
11850
11851
11852
11853
252b5132 11854ac_header_dirent=no
42ecbf5e
DJ
11855for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11856 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11857echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
11858echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
11859if eval "test \"\${$as_ac_Header+set}\" = set"; then
11860 echo $ECHO_N "(cached) $ECHO_C" >&6
11861else
11862 cat >conftest.$ac_ext <<_ACEOF
11863/* confdefs.h. */
11864_ACEOF
11865cat confdefs.h >>conftest.$ac_ext
11866cat >>conftest.$ac_ext <<_ACEOF
11867/* end confdefs.h. */
252b5132
RH
11868#include <sys/types.h>
11869#include <$ac_hdr>
42ecbf5e
DJ
11870
11871int
11872main ()
11873{
11874if ((DIR *) 0)
11875return 0;
11876 ;
11877 return 0;
11878}
11879_ACEOF
11880rm -f conftest.$ac_objext
11881if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11882 (eval $ac_compile) 2>conftest.er1
11883 ac_status=$?
11884 grep -v '^ *+' conftest.er1 >conftest.err
11885 rm -f conftest.er1
11886 cat conftest.err >&5
11887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11888 (exit $ac_status); } &&
7357c5b6
AM
11889 { ac_try='test -z "$ac_c_werror_flag"
11890 || test ! -s conftest.err'
42ecbf5e
DJ
11891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11892 (eval $ac_try) 2>&5
11893 ac_status=$?
11894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11895 (exit $ac_status); }; } &&
11896 { ac_try='test -s conftest.$ac_objext'
11897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11898 (eval $ac_try) 2>&5
11899 ac_status=$?
11900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11901 (exit $ac_status); }; }; then
11902 eval "$as_ac_Header=yes"
11903else
11904 echo "$as_me: failed program was:" >&5
11905sed 's/^/| /' conftest.$ac_ext >&5
11906
11907eval "$as_ac_Header=no"
11908fi
11909rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11910fi
11911echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11912echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11913if test `eval echo '${'$as_ac_Header'}'` = yes; then
11914 cat >>confdefs.h <<_ACEOF
11915#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11916_ACEOF
11917
11918ac_header_dirent=$ac_hdr; break
d15b04bd 11919fi
42ecbf5e 11920
d15b04bd
L
11921done
11922# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11923if test $ac_header_dirent = dirent.h; then
42ecbf5e
DJ
11924 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11925echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11926if test "${ac_cv_search_opendir+set}" = set; then
11927 echo $ECHO_N "(cached) $ECHO_C" >&6
11928else
11929 ac_func_search_save_LIBS=$LIBS
11930ac_cv_search_opendir=no
11931cat >conftest.$ac_ext <<_ACEOF
11932/* confdefs.h. */
11933_ACEOF
11934cat confdefs.h >>conftest.$ac_ext
11935cat >>conftest.$ac_ext <<_ACEOF
11936/* end confdefs.h. */
11937
e5a52504 11938/* Override any gcc2 internal prototype to avoid an error. */
42ecbf5e
DJ
11939#ifdef __cplusplus
11940extern "C"
11941#endif
e5a52504 11942/* We use char because int might match the return type of a gcc2
42ecbf5e
DJ
11943 builtin and then its argument prototype would still apply. */
11944char opendir ();
11945int
11946main ()
11947{
11948opendir ();
11949 ;
11950 return 0;
11951}
11952_ACEOF
11953rm -f conftest.$ac_objext conftest$ac_exeext
11954if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11955 (eval $ac_link) 2>conftest.er1
11956 ac_status=$?
11957 grep -v '^ *+' conftest.er1 >conftest.err
11958 rm -f conftest.er1
11959 cat conftest.err >&5
11960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11961 (exit $ac_status); } &&
7357c5b6
AM
11962 { ac_try='test -z "$ac_c_werror_flag"
11963 || test ! -s conftest.err'
42ecbf5e
DJ
11964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11965 (eval $ac_try) 2>&5
11966 ac_status=$?
11967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968 (exit $ac_status); }; } &&
11969 { ac_try='test -s conftest$ac_exeext'
11970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11971 (eval $ac_try) 2>&5
11972 ac_status=$?
11973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974 (exit $ac_status); }; }; then
11975 ac_cv_search_opendir="none required"
11976else
11977 echo "$as_me: failed program was:" >&5
11978sed 's/^/| /' conftest.$ac_ext >&5
11979
11980fi
11981rm -f conftest.err conftest.$ac_objext \
11982 conftest$ac_exeext conftest.$ac_ext
11983if test "$ac_cv_search_opendir" = no; then
11984 for ac_lib in dir; do
11985 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11986 cat >conftest.$ac_ext <<_ACEOF
11987/* confdefs.h. */
11988_ACEOF
11989cat confdefs.h >>conftest.$ac_ext
11990cat >>conftest.$ac_ext <<_ACEOF
11991/* end confdefs.h. */
e5a52504 11992
42ecbf5e
DJ
11993/* Override any gcc2 internal prototype to avoid an error. */
11994#ifdef __cplusplus
11995extern "C"
11996#endif
11997/* We use char because int might match the return type of a gcc2
11998 builtin and then its argument prototype would still apply. */
11999char opendir ();
12000int
12001main ()
12002{
12003opendir ();
12004 ;
12005 return 0;
12006}
12007_ACEOF
12008rm -f conftest.$ac_objext conftest$ac_exeext
12009if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12010 (eval $ac_link) 2>conftest.er1
12011 ac_status=$?
12012 grep -v '^ *+' conftest.er1 >conftest.err
12013 rm -f conftest.er1
12014 cat conftest.err >&5
12015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12016 (exit $ac_status); } &&
7357c5b6
AM
12017 { ac_try='test -z "$ac_c_werror_flag"
12018 || test ! -s conftest.err'
42ecbf5e
DJ
12019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12020 (eval $ac_try) 2>&5
12021 ac_status=$?
12022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12023 (exit $ac_status); }; } &&
12024 { ac_try='test -s conftest$ac_exeext'
12025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12026 (eval $ac_try) 2>&5
12027 ac_status=$?
12028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029 (exit $ac_status); }; }; then
12030 ac_cv_search_opendir="-l$ac_lib"
12031break
12032else
12033 echo "$as_me: failed program was:" >&5
12034sed 's/^/| /' conftest.$ac_ext >&5
12035
12036fi
12037rm -f conftest.err conftest.$ac_objext \
12038 conftest$ac_exeext conftest.$ac_ext
12039 done
252b5132 12040fi
42ecbf5e
DJ
12041LIBS=$ac_func_search_save_LIBS
12042fi
12043echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
12044echo "${ECHO_T}$ac_cv_search_opendir" >&6
12045if test "$ac_cv_search_opendir" != no; then
12046 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
12047
d15b04bd 12048fi
252b5132
RH
12049
12050else
42ecbf5e
DJ
12051 echo "$as_me:$LINENO: checking for library containing opendir" >&5
12052echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
12053if test "${ac_cv_search_opendir+set}" = set; then
12054 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12055else
42ecbf5e
DJ
12056 ac_func_search_save_LIBS=$LIBS
12057ac_cv_search_opendir=no
12058cat >conftest.$ac_ext <<_ACEOF
12059/* confdefs.h. */
12060_ACEOF
12061cat confdefs.h >>conftest.$ac_ext
12062cat >>conftest.$ac_ext <<_ACEOF
12063/* end confdefs.h. */
12064
252b5132 12065/* Override any gcc2 internal prototype to avoid an error. */
42ecbf5e
DJ
12066#ifdef __cplusplus
12067extern "C"
12068#endif
252b5132 12069/* We use char because int might match the return type of a gcc2
42ecbf5e
DJ
12070 builtin and then its argument prototype would still apply. */
12071char opendir ();
12072int
12073main ()
12074{
12075opendir ();
12076 ;
12077 return 0;
12078}
12079_ACEOF
12080rm -f conftest.$ac_objext conftest$ac_exeext
12081if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12082 (eval $ac_link) 2>conftest.er1
12083 ac_status=$?
12084 grep -v '^ *+' conftest.er1 >conftest.err
12085 rm -f conftest.er1
12086 cat conftest.err >&5
12087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12088 (exit $ac_status); } &&
7357c5b6
AM
12089 { ac_try='test -z "$ac_c_werror_flag"
12090 || test ! -s conftest.err'
42ecbf5e
DJ
12091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12092 (eval $ac_try) 2>&5
12093 ac_status=$?
12094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12095 (exit $ac_status); }; } &&
12096 { ac_try='test -s conftest$ac_exeext'
12097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12098 (eval $ac_try) 2>&5
12099 ac_status=$?
12100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12101 (exit $ac_status); }; }; then
12102 ac_cv_search_opendir="none required"
12103else
12104 echo "$as_me: failed program was:" >&5
12105sed 's/^/| /' conftest.$ac_ext >&5
12106
12107fi
12108rm -f conftest.err conftest.$ac_objext \
12109 conftest$ac_exeext conftest.$ac_ext
12110if test "$ac_cv_search_opendir" = no; then
12111 for ac_lib in x; do
12112 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12113 cat >conftest.$ac_ext <<_ACEOF
12114/* confdefs.h. */
12115_ACEOF
12116cat confdefs.h >>conftest.$ac_ext
12117cat >>conftest.$ac_ext <<_ACEOF
12118/* end confdefs.h. */
252b5132 12119
42ecbf5e
DJ
12120/* Override any gcc2 internal prototype to avoid an error. */
12121#ifdef __cplusplus
12122extern "C"
12123#endif
12124/* We use char because int might match the return type of a gcc2
12125 builtin and then its argument prototype would still apply. */
12126char opendir ();
12127int
12128main ()
12129{
12130opendir ();
12131 ;
12132 return 0;
12133}
12134_ACEOF
12135rm -f conftest.$ac_objext conftest$ac_exeext
12136if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12137 (eval $ac_link) 2>conftest.er1
12138 ac_status=$?
12139 grep -v '^ *+' conftest.er1 >conftest.err
12140 rm -f conftest.er1
12141 cat conftest.err >&5
12142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12143 (exit $ac_status); } &&
7357c5b6
AM
12144 { ac_try='test -z "$ac_c_werror_flag"
12145 || test ! -s conftest.err'
42ecbf5e
DJ
12146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12147 (eval $ac_try) 2>&5
12148 ac_status=$?
12149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12150 (exit $ac_status); }; } &&
12151 { ac_try='test -s conftest$ac_exeext'
12152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12153 (eval $ac_try) 2>&5
12154 ac_status=$?
12155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12156 (exit $ac_status); }; }; then
12157 ac_cv_search_opendir="-l$ac_lib"
12158break
12159else
12160 echo "$as_me: failed program was:" >&5
12161sed 's/^/| /' conftest.$ac_ext >&5
12162
12163fi
12164rm -f conftest.err conftest.$ac_objext \
12165 conftest$ac_exeext conftest.$ac_ext
12166 done
252b5132 12167fi
42ecbf5e 12168LIBS=$ac_func_search_save_LIBS
252b5132 12169fi
42ecbf5e
DJ
12170echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
12171echo "${ECHO_T}$ac_cv_search_opendir" >&6
12172if test "$ac_cv_search_opendir" != no; then
12173 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
12174
d15b04bd 12175fi
252b5132
RH
12176
12177fi
12178
12179
42ecbf5e
DJ
12180echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
12181echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
12182if test "${ld_cv_decl_getopt_unistd_h+set}" = set; then
12183 echo $ECHO_N "(cached) $ECHO_C" >&6
34875e64 12184else
42ecbf5e
DJ
12185 cat >conftest.$ac_ext <<_ACEOF
12186/* confdefs.h. */
12187_ACEOF
12188cat confdefs.h >>conftest.$ac_ext
12189cat >>conftest.$ac_ext <<_ACEOF
12190/* end confdefs.h. */
34875e64 12191#include <unistd.h>
42ecbf5e
DJ
12192int
12193main ()
12194{
34875e64 12195extern int getopt (int, char *const*, const char *);
42ecbf5e
DJ
12196 ;
12197 return 0;
12198}
12199_ACEOF
12200rm -f conftest.$ac_objext
12201if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12202 (eval $ac_compile) 2>conftest.er1
12203 ac_status=$?
12204 grep -v '^ *+' conftest.er1 >conftest.err
12205 rm -f conftest.er1
12206 cat conftest.err >&5
12207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208 (exit $ac_status); } &&
7357c5b6
AM
12209 { ac_try='test -z "$ac_c_werror_flag"
12210 || test ! -s conftest.err'
42ecbf5e
DJ
12211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12212 (eval $ac_try) 2>&5
12213 ac_status=$?
12214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12215 (exit $ac_status); }; } &&
12216 { ac_try='test -s conftest.$ac_objext'
12217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12218 (eval $ac_try) 2>&5
12219 ac_status=$?
12220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12221 (exit $ac_status); }; }; then
34875e64
NC
12222 ld_cv_decl_getopt_unistd_h=yes
12223else
42ecbf5e
DJ
12224 echo "$as_me: failed program was:" >&5
12225sed 's/^/| /' conftest.$ac_ext >&5
12226
12227ld_cv_decl_getopt_unistd_h=no
34875e64 12228fi
42ecbf5e 12229rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34875e64
NC
12230fi
12231
42ecbf5e
DJ
12232echo "$as_me:$LINENO: result: $ld_cv_decl_getopt_unistd_h" >&5
12233echo "${ECHO_T}$ld_cv_decl_getopt_unistd_h" >&6
34875e64 12234if test $ld_cv_decl_getopt_unistd_h = yes; then
42ecbf5e
DJ
12235
12236cat >>confdefs.h <<\_ACEOF
34875e64 12237#define HAVE_DECL_GETOPT 1
42ecbf5e 12238_ACEOF
34875e64
NC
12239
12240fi
42ecbf5e 12241
252b5132
RH
12242
12243case "${host}" in
a8100d5b 12244*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
42ecbf5e
DJ
12245
12246cat >>confdefs.h <<\_ACEOF
252b5132 12247#define USE_BINARY_FOPEN 1
42ecbf5e 12248_ACEOF
252b5132
RH
12249 ;;
12250esac
12251
502bdb00
JW
12252echo "$as_me:$LINENO: checking whether strstr is declared" >&5
12253echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
12254if test "${ac_cv_have_decl_strstr+set}" = set; then
42ecbf5e 12255 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12256else
42ecbf5e
DJ
12257 cat >conftest.$ac_ext <<_ACEOF
12258/* confdefs.h. */
12259_ACEOF
12260cat confdefs.h >>conftest.$ac_ext
12261cat >>conftest.$ac_ext <<_ACEOF
12262/* end confdefs.h. */
502bdb00 12263$ac_includes_default
42ecbf5e
DJ
12264int
12265main ()
12266{
502bdb00
JW
12267#ifndef strstr
12268 char *p = (char *) strstr;
12269#endif
12270
42ecbf5e
DJ
12271 ;
12272 return 0;
12273}
12274_ACEOF
12275rm -f conftest.$ac_objext
12276if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12277 (eval $ac_compile) 2>conftest.er1
12278 ac_status=$?
12279 grep -v '^ *+' conftest.er1 >conftest.err
12280 rm -f conftest.er1
12281 cat conftest.err >&5
12282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283 (exit $ac_status); } &&
7357c5b6
AM
12284 { ac_try='test -z "$ac_c_werror_flag"
12285 || test ! -s conftest.err'
42ecbf5e
DJ
12286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12287 (eval $ac_try) 2>&5
12288 ac_status=$?
12289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290 (exit $ac_status); }; } &&
12291 { ac_try='test -s conftest.$ac_objext'
12292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12293 (eval $ac_try) 2>&5
12294 ac_status=$?
12295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296 (exit $ac_status); }; }; then
502bdb00 12297 ac_cv_have_decl_strstr=yes
252b5132 12298else
42ecbf5e
DJ
12299 echo "$as_me: failed program was:" >&5
12300sed 's/^/| /' conftest.$ac_ext >&5
12301
502bdb00 12302ac_cv_have_decl_strstr=no
252b5132 12303fi
42ecbf5e 12304rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 12305fi
502bdb00
JW
12306echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
12307echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
12308if test $ac_cv_have_decl_strstr = yes; then
252b5132 12309
502bdb00
JW
12310cat >>confdefs.h <<_ACEOF
12311#define HAVE_DECL_STRSTR 1
12312_ACEOF
42ecbf5e 12313
502bdb00
JW
12314
12315else
12316 cat >>confdefs.h <<_ACEOF
12317#define HAVE_DECL_STRSTR 0
42ecbf5e 12318_ACEOF
252b5132 12319
252b5132 12320
502bdb00
JW
12321fi
12322echo "$as_me:$LINENO: checking whether free is declared" >&5
12323echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
12324if test "${ac_cv_have_decl_free+set}" = set; then
42ecbf5e 12325 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12326else
42ecbf5e
DJ
12327 cat >conftest.$ac_ext <<_ACEOF
12328/* confdefs.h. */
12329_ACEOF
12330cat confdefs.h >>conftest.$ac_ext
12331cat >>conftest.$ac_ext <<_ACEOF
12332/* end confdefs.h. */
502bdb00 12333$ac_includes_default
42ecbf5e
DJ
12334int
12335main ()
12336{
502bdb00
JW
12337#ifndef free
12338 char *p = (char *) free;
12339#endif
12340
42ecbf5e
DJ
12341 ;
12342 return 0;
12343}
12344_ACEOF
12345rm -f conftest.$ac_objext
12346if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12347 (eval $ac_compile) 2>conftest.er1
12348 ac_status=$?
12349 grep -v '^ *+' conftest.er1 >conftest.err
12350 rm -f conftest.er1
12351 cat conftest.err >&5
12352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353 (exit $ac_status); } &&
7357c5b6
AM
12354 { ac_try='test -z "$ac_c_werror_flag"
12355 || test ! -s conftest.err'
42ecbf5e
DJ
12356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12357 (eval $ac_try) 2>&5
12358 ac_status=$?
12359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360 (exit $ac_status); }; } &&
12361 { ac_try='test -s conftest.$ac_objext'
12362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12363 (eval $ac_try) 2>&5
12364 ac_status=$?
12365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12366 (exit $ac_status); }; }; then
502bdb00 12367 ac_cv_have_decl_free=yes
252b5132 12368else
42ecbf5e
DJ
12369 echo "$as_me: failed program was:" >&5
12370sed 's/^/| /' conftest.$ac_ext >&5
12371
502bdb00 12372ac_cv_have_decl_free=no
252b5132 12373fi
42ecbf5e 12374rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 12375fi
502bdb00
JW
12376echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
12377echo "${ECHO_T}$ac_cv_have_decl_free" >&6
12378if test $ac_cv_have_decl_free = yes; then
252b5132 12379
502bdb00
JW
12380cat >>confdefs.h <<_ACEOF
12381#define HAVE_DECL_FREE 1
12382_ACEOF
42ecbf5e 12383
502bdb00
JW
12384
12385else
12386 cat >>confdefs.h <<_ACEOF
12387#define HAVE_DECL_FREE 0
42ecbf5e 12388_ACEOF
252b5132 12389
252b5132 12390
502bdb00
JW
12391fi
12392echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
12393echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
12394if test "${ac_cv_have_decl_sbrk+set}" = set; then
42ecbf5e 12395 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12396else
42ecbf5e
DJ
12397 cat >conftest.$ac_ext <<_ACEOF
12398/* confdefs.h. */
12399_ACEOF
12400cat confdefs.h >>conftest.$ac_ext
12401cat >>conftest.$ac_ext <<_ACEOF
12402/* end confdefs.h. */
502bdb00 12403$ac_includes_default
42ecbf5e
DJ
12404int
12405main ()
12406{
502bdb00
JW
12407#ifndef sbrk
12408 char *p = (char *) sbrk;
12409#endif
12410
42ecbf5e
DJ
12411 ;
12412 return 0;
12413}
12414_ACEOF
12415rm -f conftest.$ac_objext
12416if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12417 (eval $ac_compile) 2>conftest.er1
12418 ac_status=$?
12419 grep -v '^ *+' conftest.er1 >conftest.err
12420 rm -f conftest.er1
12421 cat conftest.err >&5
12422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423 (exit $ac_status); } &&
7357c5b6
AM
12424 { ac_try='test -z "$ac_c_werror_flag"
12425 || test ! -s conftest.err'
42ecbf5e
DJ
12426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12427 (eval $ac_try) 2>&5
12428 ac_status=$?
12429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12430 (exit $ac_status); }; } &&
12431 { ac_try='test -s conftest.$ac_objext'
12432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12433 (eval $ac_try) 2>&5
12434 ac_status=$?
12435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436 (exit $ac_status); }; }; then
502bdb00 12437 ac_cv_have_decl_sbrk=yes
252b5132 12438else
42ecbf5e
DJ
12439 echo "$as_me: failed program was:" >&5
12440sed 's/^/| /' conftest.$ac_ext >&5
12441
502bdb00 12442ac_cv_have_decl_sbrk=no
252b5132 12443fi
42ecbf5e 12444rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 12445fi
502bdb00
JW
12446echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
12447echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
12448if test $ac_cv_have_decl_sbrk = yes; then
12449
12450cat >>confdefs.h <<_ACEOF
12451#define HAVE_DECL_SBRK 1
12452_ACEOF
252b5132 12453
42ecbf5e 12454
502bdb00
JW
12455else
12456 cat >>confdefs.h <<_ACEOF
12457#define HAVE_DECL_SBRK 0
42ecbf5e 12458_ACEOF
252b5132 12459
252b5132 12460
502bdb00
JW
12461fi
12462echo "$as_me:$LINENO: checking whether getenv is declared" >&5
12463echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
12464if test "${ac_cv_have_decl_getenv+set}" = set; then
42ecbf5e 12465 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12466else
42ecbf5e
DJ
12467 cat >conftest.$ac_ext <<_ACEOF
12468/* confdefs.h. */
12469_ACEOF
12470cat confdefs.h >>conftest.$ac_ext
12471cat >>conftest.$ac_ext <<_ACEOF
12472/* end confdefs.h. */
502bdb00 12473$ac_includes_default
42ecbf5e
DJ
12474int
12475main ()
12476{
502bdb00
JW
12477#ifndef getenv
12478 char *p = (char *) getenv;
12479#endif
12480
42ecbf5e
DJ
12481 ;
12482 return 0;
12483}
12484_ACEOF
12485rm -f conftest.$ac_objext
12486if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12487 (eval $ac_compile) 2>conftest.er1
12488 ac_status=$?
12489 grep -v '^ *+' conftest.er1 >conftest.err
12490 rm -f conftest.er1
12491 cat conftest.err >&5
12492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12493 (exit $ac_status); } &&
7357c5b6
AM
12494 { ac_try='test -z "$ac_c_werror_flag"
12495 || test ! -s conftest.err'
42ecbf5e
DJ
12496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12497 (eval $ac_try) 2>&5
12498 ac_status=$?
12499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500 (exit $ac_status); }; } &&
12501 { ac_try='test -s conftest.$ac_objext'
12502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12503 (eval $ac_try) 2>&5
12504 ac_status=$?
12505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506 (exit $ac_status); }; }; then
502bdb00 12507 ac_cv_have_decl_getenv=yes
252b5132 12508else
42ecbf5e
DJ
12509 echo "$as_me: failed program was:" >&5
12510sed 's/^/| /' conftest.$ac_ext >&5
12511
502bdb00 12512ac_cv_have_decl_getenv=no
252b5132 12513fi
42ecbf5e 12514rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 12515fi
502bdb00
JW
12516echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
12517echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
12518if test $ac_cv_have_decl_getenv = yes; then
252b5132 12519
502bdb00
JW
12520cat >>confdefs.h <<_ACEOF
12521#define HAVE_DECL_GETENV 1
12522_ACEOF
42ecbf5e 12523
502bdb00
JW
12524
12525else
12526 cat >>confdefs.h <<_ACEOF
12527#define HAVE_DECL_GETENV 0
42ecbf5e 12528_ACEOF
252b5132 12529
252b5132 12530
502bdb00
JW
12531fi
12532echo "$as_me:$LINENO: checking whether environ is declared" >&5
12533echo $ECHO_N "checking whether environ is declared... $ECHO_C" >&6
12534if test "${ac_cv_have_decl_environ+set}" = set; then
42ecbf5e 12535 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12536else
42ecbf5e
DJ
12537 cat >conftest.$ac_ext <<_ACEOF
12538/* confdefs.h. */
12539_ACEOF
12540cat confdefs.h >>conftest.$ac_ext
12541cat >>conftest.$ac_ext <<_ACEOF
12542/* end confdefs.h. */
502bdb00 12543$ac_includes_default
42ecbf5e
DJ
12544int
12545main ()
12546{
502bdb00
JW
12547#ifndef environ
12548 char *p = (char *) environ;
12549#endif
12550
42ecbf5e
DJ
12551 ;
12552 return 0;
12553}
12554_ACEOF
12555rm -f conftest.$ac_objext
12556if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12557 (eval $ac_compile) 2>conftest.er1
12558 ac_status=$?
12559 grep -v '^ *+' conftest.er1 >conftest.err
12560 rm -f conftest.er1
12561 cat conftest.err >&5
12562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12563 (exit $ac_status); } &&
7357c5b6
AM
12564 { ac_try='test -z "$ac_c_werror_flag"
12565 || test ! -s conftest.err'
42ecbf5e
DJ
12566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12567 (eval $ac_try) 2>&5
12568 ac_status=$?
12569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570 (exit $ac_status); }; } &&
12571 { ac_try='test -s conftest.$ac_objext'
12572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12573 (eval $ac_try) 2>&5
12574 ac_status=$?
12575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12576 (exit $ac_status); }; }; then
502bdb00 12577 ac_cv_have_decl_environ=yes
252b5132 12578else
42ecbf5e
DJ
12579 echo "$as_me: failed program was:" >&5
12580sed 's/^/| /' conftest.$ac_ext >&5
12581
502bdb00 12582ac_cv_have_decl_environ=no
252b5132 12583fi
42ecbf5e 12584rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 12585fi
502bdb00
JW
12586echo "$as_me:$LINENO: result: $ac_cv_have_decl_environ" >&5
12587echo "${ECHO_T}$ac_cv_have_decl_environ" >&6
12588if test $ac_cv_have_decl_environ = yes; then
252b5132 12589
502bdb00
JW
12590cat >>confdefs.h <<_ACEOF
12591#define HAVE_DECL_ENVIRON 1
12592_ACEOF
42ecbf5e 12593
502bdb00
JW
12594
12595else
12596 cat >>confdefs.h <<_ACEOF
12597#define HAVE_DECL_ENVIRON 0
42ecbf5e 12598_ACEOF
252b5132 12599
502bdb00 12600
252b5132
RH
12601fi
12602
12603
502bdb00 12604
4474d12b
CS
12605# Link in zlib if we can. This is needed only for the bootstrap tests
12606# right now, since those tests use libbfd, which depends on zlib.
12607echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
12608echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
12609if test "${ac_cv_search_zlibVersion+set}" = set; then
12610 echo $ECHO_N "(cached) $ECHO_C" >&6
12611else
12612 ac_func_search_save_LIBS=$LIBS
12613ac_cv_search_zlibVersion=no
12614cat >conftest.$ac_ext <<_ACEOF
12615/* confdefs.h. */
12616_ACEOF
12617cat confdefs.h >>conftest.$ac_ext
12618cat >>conftest.$ac_ext <<_ACEOF
12619/* end confdefs.h. */
12620
12621/* Override any gcc2 internal prototype to avoid an error. */
12622#ifdef __cplusplus
12623extern "C"
12624#endif
12625/* We use char because int might match the return type of a gcc2
12626 builtin and then its argument prototype would still apply. */
12627char zlibVersion ();
12628int
12629main ()
12630{
12631zlibVersion ();
12632 ;
12633 return 0;
12634}
12635_ACEOF
12636rm -f conftest.$ac_objext conftest$ac_exeext
12637if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12638 (eval $ac_link) 2>conftest.er1
12639 ac_status=$?
12640 grep -v '^ *+' conftest.er1 >conftest.err
12641 rm -f conftest.er1
12642 cat conftest.err >&5
12643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644 (exit $ac_status); } &&
7357c5b6
AM
12645 { ac_try='test -z "$ac_c_werror_flag"
12646 || test ! -s conftest.err'
4474d12b
CS
12647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12648 (eval $ac_try) 2>&5
12649 ac_status=$?
12650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651 (exit $ac_status); }; } &&
12652 { ac_try='test -s conftest$ac_exeext'
12653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12654 (eval $ac_try) 2>&5
12655 ac_status=$?
12656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657 (exit $ac_status); }; }; then
12658 ac_cv_search_zlibVersion="none required"
12659else
12660 echo "$as_me: failed program was:" >&5
12661sed 's/^/| /' conftest.$ac_ext >&5
12662
12663fi
12664rm -f conftest.err conftest.$ac_objext \
12665 conftest$ac_exeext conftest.$ac_ext
12666if test "$ac_cv_search_zlibVersion" = no; then
12667 for ac_lib in z; do
12668 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12669 cat >conftest.$ac_ext <<_ACEOF
12670/* confdefs.h. */
12671_ACEOF
12672cat confdefs.h >>conftest.$ac_ext
12673cat >>conftest.$ac_ext <<_ACEOF
12674/* end confdefs.h. */
12675
12676/* Override any gcc2 internal prototype to avoid an error. */
12677#ifdef __cplusplus
12678extern "C"
12679#endif
12680/* We use char because int might match the return type of a gcc2
12681 builtin and then its argument prototype would still apply. */
12682char zlibVersion ();
12683int
12684main ()
12685{
12686zlibVersion ();
12687 ;
12688 return 0;
12689}
12690_ACEOF
12691rm -f conftest.$ac_objext conftest$ac_exeext
12692if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12693 (eval $ac_link) 2>conftest.er1
12694 ac_status=$?
12695 grep -v '^ *+' conftest.er1 >conftest.err
12696 rm -f conftest.er1
12697 cat conftest.err >&5
12698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12699 (exit $ac_status); } &&
7357c5b6
AM
12700 { ac_try='test -z "$ac_c_werror_flag"
12701 || test ! -s conftest.err'
4474d12b
CS
12702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12703 (eval $ac_try) 2>&5
12704 ac_status=$?
12705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12706 (exit $ac_status); }; } &&
12707 { ac_try='test -s conftest$ac_exeext'
12708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12709 (eval $ac_try) 2>&5
12710 ac_status=$?
12711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712 (exit $ac_status); }; }; then
12713 ac_cv_search_zlibVersion="-l$ac_lib"
12714break
12715else
12716 echo "$as_me: failed program was:" >&5
12717sed 's/^/| /' conftest.$ac_ext >&5
12718
12719fi
12720rm -f conftest.err conftest.$ac_objext \
12721 conftest$ac_exeext conftest.$ac_ext
12722 done
12723fi
12724LIBS=$ac_func_search_save_LIBS
12725fi
12726echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
12727echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
12728if test "$ac_cv_search_zlibVersion" != no; then
12729 test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS"
12730
12731for ac_header in zlib.h
12732do
12733as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12734if eval "test \"\${$as_ac_Header+set}\" = set"; then
12735 echo "$as_me:$LINENO: checking for $ac_header" >&5
12736echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12737if eval "test \"\${$as_ac_Header+set}\" = set"; then
12738 echo $ECHO_N "(cached) $ECHO_C" >&6
12739fi
12740echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12741echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12742else
12743 # Is the header compilable?
12744echo "$as_me:$LINENO: checking $ac_header usability" >&5
12745echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12746cat >conftest.$ac_ext <<_ACEOF
12747/* confdefs.h. */
12748_ACEOF
12749cat confdefs.h >>conftest.$ac_ext
12750cat >>conftest.$ac_ext <<_ACEOF
12751/* end confdefs.h. */
12752$ac_includes_default
12753#include <$ac_header>
12754_ACEOF
12755rm -f conftest.$ac_objext
12756if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12757 (eval $ac_compile) 2>conftest.er1
12758 ac_status=$?
12759 grep -v '^ *+' conftest.er1 >conftest.err
12760 rm -f conftest.er1
12761 cat conftest.err >&5
12762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12763 (exit $ac_status); } &&
7357c5b6
AM
12764 { ac_try='test -z "$ac_c_werror_flag"
12765 || test ! -s conftest.err'
4474d12b
CS
12766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12767 (eval $ac_try) 2>&5
12768 ac_status=$?
12769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12770 (exit $ac_status); }; } &&
12771 { ac_try='test -s conftest.$ac_objext'
12772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12773 (eval $ac_try) 2>&5
12774 ac_status=$?
12775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12776 (exit $ac_status); }; }; then
12777 ac_header_compiler=yes
12778else
12779 echo "$as_me: failed program was:" >&5
12780sed 's/^/| /' conftest.$ac_ext >&5
12781
12782ac_header_compiler=no
12783fi
12784rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12785echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12786echo "${ECHO_T}$ac_header_compiler" >&6
12787
12788# Is the header present?
12789echo "$as_me:$LINENO: checking $ac_header presence" >&5
12790echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12791cat >conftest.$ac_ext <<_ACEOF
12792/* confdefs.h. */
12793_ACEOF
12794cat confdefs.h >>conftest.$ac_ext
12795cat >>conftest.$ac_ext <<_ACEOF
12796/* end confdefs.h. */
12797#include <$ac_header>
12798_ACEOF
12799if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12800 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12801 ac_status=$?
12802 grep -v '^ *+' conftest.er1 >conftest.err
12803 rm -f conftest.er1
12804 cat conftest.err >&5
12805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12806 (exit $ac_status); } >/dev/null; then
12807 if test -s conftest.err; then
12808 ac_cpp_err=$ac_c_preproc_warn_flag
12809 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12810 else
12811 ac_cpp_err=
12812 fi
12813else
12814 ac_cpp_err=yes
12815fi
12816if test -z "$ac_cpp_err"; then
12817 ac_header_preproc=yes
12818else
12819 echo "$as_me: failed program was:" >&5
12820sed 's/^/| /' conftest.$ac_ext >&5
12821
12822 ac_header_preproc=no
12823fi
12824rm -f conftest.err conftest.$ac_ext
12825echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12826echo "${ECHO_T}$ac_header_preproc" >&6
12827
12828# So? What about this header?
12829case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12830 yes:no: )
12831 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12832echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12833 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12834echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12835 ac_header_preproc=yes
12836 ;;
12837 no:yes:* )
12838 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12839echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12840 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12841echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12842 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12843echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12844 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12845echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12846 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12847echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12848 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12849echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12850 (
12851 cat <<\_ASBOX
12852## ------------------------------------------ ##
12853## Report this to the AC_PACKAGE_NAME lists. ##
12854## ------------------------------------------ ##
12855_ASBOX
12856 ) |
12857 sed "s/^/$as_me: WARNING: /" >&2
12858 ;;
12859esac
12860echo "$as_me:$LINENO: checking for $ac_header" >&5
12861echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12862if eval "test \"\${$as_ac_Header+set}\" = set"; then
12863 echo $ECHO_N "(cached) $ECHO_C" >&6
12864else
12865 eval "$as_ac_Header=\$ac_header_preproc"
12866fi
12867echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12868echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12869
12870fi
12871if test `eval echo '${'$as_ac_Header'}'` = yes; then
12872 cat >>confdefs.h <<_ACEOF
12873#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12874_ACEOF
12875
12876fi
12877
12878done
12879
12880fi
12881
12882
597e2591
ILT
12883# When converting linker scripts into strings for use in emulation
12884# files, use astring.sed if the compiler supports ANSI string
12885# concatenation, or ostring.sed otherwise. This is to support the
12886# broken Microsoft MSVC compiler, which limits the length of string
12887# constants, while still supporting pre-ANSI compilers which do not
12888# support string concatenation.
42ecbf5e
DJ
12889echo "$as_me:$LINENO: checking whether ANSI C string concatenation works" >&5
12890echo $ECHO_N "checking whether ANSI C string concatenation works... $ECHO_C" >&6
12891if test "${ld_cv_string_concatenation+set}" = set; then
12892 echo $ECHO_N "(cached) $ECHO_C" >&6
12893else
12894 cat >conftest.$ac_ext <<_ACEOF
12895/* confdefs.h. */
12896_ACEOF
12897cat confdefs.h >>conftest.$ac_ext
12898cat >>conftest.$ac_ext <<_ACEOF
12899/* end confdefs.h. */
597e2591 12900
42ecbf5e
DJ
12901int
12902main ()
12903{
597e2591 12904char *a = "a" "a";
42ecbf5e
DJ
12905 ;
12906 return 0;
12907}
12908_ACEOF
12909rm -f conftest.$ac_objext
12910if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12911 (eval $ac_compile) 2>conftest.er1
12912 ac_status=$?
12913 grep -v '^ *+' conftest.er1 >conftest.err
12914 rm -f conftest.er1
12915 cat conftest.err >&5
12916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12917 (exit $ac_status); } &&
7357c5b6
AM
12918 { ac_try='test -z "$ac_c_werror_flag"
12919 || test ! -s conftest.err'
42ecbf5e
DJ
12920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12921 (eval $ac_try) 2>&5
12922 ac_status=$?
12923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12924 (exit $ac_status); }; } &&
12925 { ac_try='test -s conftest.$ac_objext'
12926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12927 (eval $ac_try) 2>&5
12928 ac_status=$?
12929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12930 (exit $ac_status); }; }; then
e4dabd0e 12931 ld_cv_string_concatenation=yes
597e2591 12932else
42ecbf5e
DJ
12933 echo "$as_me: failed program was:" >&5
12934sed 's/^/| /' conftest.$ac_ext >&5
12935
12936ld_cv_string_concatenation=no
597e2591 12937fi
42ecbf5e 12938rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
597e2591
ILT
12939fi
12940
42ecbf5e
DJ
12941echo "$as_me:$LINENO: result: $ld_cv_string_concatenation" >&5
12942echo "${ECHO_T}$ld_cv_string_concatenation" >&6
e4dabd0e 12943if test "$ld_cv_string_concatenation" = "yes"; then
597e2591
ILT
12944 STRINGIFY=astring.sed
12945else
12946 STRINGIFY=ostring.sed
12947fi
12948
12949
252b5132
RH
12950# target-specific stuff:
12951
12952all_targets=
12953EMUL=
12954all_emuls=
12955all_emul_extras=
ba2be581 12956all_libpath=
252b5132
RH
12957
12958rm -f tdirs
12959
12960for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
12961do
12962 if test "$targ_alias" = "all"; then
12963 all_targets=true
12964 else
12965 # Canonicalize the secondary target names.
42ecbf5e 12966 result=`$ac_config_sub $targ_alias 2>/dev/null`
252b5132
RH
12967 if test -n "$result"; then
12968 targ=$result
12969 else
12970 targ=$targ_alias
12971 fi
12972
12973 . ${srcdir}/configure.tgt
12974
12975 if test "$targ" = "$target"; then
12976 EMUL=$targ_emul
12977 fi
12978
314e9a4e
L
12979 if test x${want64} = xfalse; then
12980 . ${srcdir}/../bfd/config.bfd
12981 fi
12982
534d3119
L
12983 if test x${want64} = xtrue; then
12984 targ_extra_emuls="$targ_extra_emuls $targ64_extra_emuls"
12985 targ_extra_libpath="$targ_extra_libpath $targ64_extra_libpath"
12986 fi
12987
3336653a 12988 for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
252b5132
RH
12989 case " $all_emuls " in
12990 *" e${i}.o "*) ;;
12991 *)
12992 all_emuls="$all_emuls e${i}.o"
12993 eval result=\$tdir_$i
12994 test -z "$result" && result=$targ_alias
12995 echo tdir_$i=$result >> tdirs
12996 ;;
d15b04bd
L
12997 esac
12998 done
3336653a 12999
42ecbf5e
DJ
13000 for i in $targ_emul $targ_extra_libpath; do
13001 case " $all_libpath " in
13002 *" ${i} "*) ;;
13003 *)
13004 if test -z "$all_libpath"; then
13005 all_libpath=${i}
13006 else
13007 all_libpath="$all_libpath ${i}"
13008 fi
13009 ;;
13010 esac
13011 done
13012
13013 for i in $targ_extra_ofiles; do
13014 case " $all_emul_extras " in
13015 *" ${i} "*) ;;
13016 *)
13017 all_emul_extras="$all_emul_extras ${i}"
13018 ;;
13019 esac
13020 done
13021 fi
13022done
13023
13024
13025
13026TDIRS=tdirs
13027
13028
13029if test x${all_targets} = xtrue; then
314e9a4e
L
13030 if test x${want64} = xfalse; then
13031 echo "$as_me:$LINENO: checking for long" >&5
13032echo $ECHO_N "checking for long... $ECHO_C" >&6
13033if test "${ac_cv_type_long+set}" = set; then
13034 echo $ECHO_N "(cached) $ECHO_C" >&6
13035else
13036 cat >conftest.$ac_ext <<_ACEOF
13037/* confdefs.h. */
13038_ACEOF
13039cat confdefs.h >>conftest.$ac_ext
13040cat >>conftest.$ac_ext <<_ACEOF
13041/* end confdefs.h. */
13042$ac_includes_default
13043int
13044main ()
13045{
13046if ((long *) 0)
13047 return 0;
13048if (sizeof (long))
13049 return 0;
13050 ;
13051 return 0;
13052}
13053_ACEOF
13054rm -f conftest.$ac_objext
13055if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13056 (eval $ac_compile) 2>conftest.er1
13057 ac_status=$?
13058 grep -v '^ *+' conftest.er1 >conftest.err
13059 rm -f conftest.er1
13060 cat conftest.err >&5
13061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13062 (exit $ac_status); } &&
7357c5b6
AM
13063 { ac_try='test -z "$ac_c_werror_flag"
13064 || test ! -s conftest.err'
314e9a4e
L
13065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13066 (eval $ac_try) 2>&5
13067 ac_status=$?
13068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069 (exit $ac_status); }; } &&
13070 { ac_try='test -s conftest.$ac_objext'
13071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13072 (eval $ac_try) 2>&5
13073 ac_status=$?
13074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13075 (exit $ac_status); }; }; then
13076 ac_cv_type_long=yes
13077else
13078 echo "$as_me: failed program was:" >&5
13079sed 's/^/| /' conftest.$ac_ext >&5
13080
13081ac_cv_type_long=no
13082fi
13083rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13084fi
13085echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13086echo "${ECHO_T}$ac_cv_type_long" >&6
13087
13088echo "$as_me:$LINENO: checking size of long" >&5
13089echo $ECHO_N "checking size of long... $ECHO_C" >&6
13090if test "${ac_cv_sizeof_long+set}" = set; then
13091 echo $ECHO_N "(cached) $ECHO_C" >&6
13092else
13093 if test "$ac_cv_type_long" = yes; then
13094 # The cast to unsigned long works around a bug in the HP C Compiler
13095 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13096 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13097 # This bug is HP SR number 8606223364.
13098 if test "$cross_compiling" = yes; then
13099 # Depending upon the size, compute the lo and hi bounds.
13100cat >conftest.$ac_ext <<_ACEOF
13101/* confdefs.h. */
13102_ACEOF
13103cat confdefs.h >>conftest.$ac_ext
13104cat >>conftest.$ac_ext <<_ACEOF
13105/* end confdefs.h. */
13106$ac_includes_default
13107int
13108main ()
13109{
13110static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
13111test_array [0] = 0
13112
13113 ;
13114 return 0;
13115}
13116_ACEOF
13117rm -f conftest.$ac_objext
13118if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13119 (eval $ac_compile) 2>conftest.er1
13120 ac_status=$?
13121 grep -v '^ *+' conftest.er1 >conftest.err
13122 rm -f conftest.er1
13123 cat conftest.err >&5
13124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13125 (exit $ac_status); } &&
7357c5b6
AM
13126 { ac_try='test -z "$ac_c_werror_flag"
13127 || test ! -s conftest.err'
314e9a4e
L
13128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13129 (eval $ac_try) 2>&5
13130 ac_status=$?
13131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13132 (exit $ac_status); }; } &&
13133 { ac_try='test -s conftest.$ac_objext'
13134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13135 (eval $ac_try) 2>&5
13136 ac_status=$?
13137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13138 (exit $ac_status); }; }; then
13139 ac_lo=0 ac_mid=0
13140 while :; do
13141 cat >conftest.$ac_ext <<_ACEOF
13142/* confdefs.h. */
13143_ACEOF
13144cat confdefs.h >>conftest.$ac_ext
13145cat >>conftest.$ac_ext <<_ACEOF
13146/* end confdefs.h. */
13147$ac_includes_default
13148int
13149main ()
13150{
13151static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
13152test_array [0] = 0
13153
13154 ;
13155 return 0;
13156}
13157_ACEOF
13158rm -f conftest.$ac_objext
13159if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13160 (eval $ac_compile) 2>conftest.er1
13161 ac_status=$?
13162 grep -v '^ *+' conftest.er1 >conftest.err
13163 rm -f conftest.er1
13164 cat conftest.err >&5
13165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13166 (exit $ac_status); } &&
7357c5b6
AM
13167 { ac_try='test -z "$ac_c_werror_flag"
13168 || test ! -s conftest.err'
314e9a4e
L
13169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13170 (eval $ac_try) 2>&5
13171 ac_status=$?
13172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13173 (exit $ac_status); }; } &&
13174 { ac_try='test -s conftest.$ac_objext'
13175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13176 (eval $ac_try) 2>&5
13177 ac_status=$?
13178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13179 (exit $ac_status); }; }; then
13180 ac_hi=$ac_mid; break
13181else
13182 echo "$as_me: failed program was:" >&5
13183sed 's/^/| /' conftest.$ac_ext >&5
13184
13185ac_lo=`expr $ac_mid + 1`
13186 if test $ac_lo -le $ac_mid; then
13187 ac_lo= ac_hi=
13188 break
13189 fi
13190 ac_mid=`expr 2 '*' $ac_mid + 1`
13191fi
13192rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13193 done
13194else
13195 echo "$as_me: failed program was:" >&5
13196sed 's/^/| /' conftest.$ac_ext >&5
13197
13198cat >conftest.$ac_ext <<_ACEOF
13199/* confdefs.h. */
13200_ACEOF
13201cat confdefs.h >>conftest.$ac_ext
13202cat >>conftest.$ac_ext <<_ACEOF
13203/* end confdefs.h. */
13204$ac_includes_default
13205int
13206main ()
13207{
13208static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
13209test_array [0] = 0
13210
13211 ;
13212 return 0;
13213}
13214_ACEOF
13215rm -f conftest.$ac_objext
13216if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13217 (eval $ac_compile) 2>conftest.er1
13218 ac_status=$?
13219 grep -v '^ *+' conftest.er1 >conftest.err
13220 rm -f conftest.er1
13221 cat conftest.err >&5
13222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13223 (exit $ac_status); } &&
7357c5b6
AM
13224 { ac_try='test -z "$ac_c_werror_flag"
13225 || test ! -s conftest.err'
314e9a4e
L
13226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13227 (eval $ac_try) 2>&5
13228 ac_status=$?
13229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13230 (exit $ac_status); }; } &&
13231 { ac_try='test -s conftest.$ac_objext'
13232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13233 (eval $ac_try) 2>&5
13234 ac_status=$?
13235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13236 (exit $ac_status); }; }; then
13237 ac_hi=-1 ac_mid=-1
13238 while :; do
13239 cat >conftest.$ac_ext <<_ACEOF
13240/* confdefs.h. */
13241_ACEOF
13242cat confdefs.h >>conftest.$ac_ext
13243cat >>conftest.$ac_ext <<_ACEOF
13244/* end confdefs.h. */
13245$ac_includes_default
13246int
13247main ()
13248{
13249static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
13250test_array [0] = 0
13251
13252 ;
13253 return 0;
13254}
13255_ACEOF
13256rm -f conftest.$ac_objext
13257if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13258 (eval $ac_compile) 2>conftest.er1
13259 ac_status=$?
13260 grep -v '^ *+' conftest.er1 >conftest.err
13261 rm -f conftest.er1
13262 cat conftest.err >&5
13263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13264 (exit $ac_status); } &&
7357c5b6
AM
13265 { ac_try='test -z "$ac_c_werror_flag"
13266 || test ! -s conftest.err'
314e9a4e
L
13267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13268 (eval $ac_try) 2>&5
13269 ac_status=$?
13270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13271 (exit $ac_status); }; } &&
13272 { ac_try='test -s conftest.$ac_objext'
13273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13274 (eval $ac_try) 2>&5
13275 ac_status=$?
13276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13277 (exit $ac_status); }; }; then
13278 ac_lo=$ac_mid; break
13279else
13280 echo "$as_me: failed program was:" >&5
13281sed 's/^/| /' conftest.$ac_ext >&5
13282
13283ac_hi=`expr '(' $ac_mid ')' - 1`
13284 if test $ac_mid -le $ac_hi; then
13285 ac_lo= ac_hi=
13286 break
13287 fi
13288 ac_mid=`expr 2 '*' $ac_mid`
13289fi
13290rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13291 done
13292else
13293 echo "$as_me: failed program was:" >&5
13294sed 's/^/| /' conftest.$ac_ext >&5
13295
13296ac_lo= ac_hi=
13297fi
13298rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13299fi
13300rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13301# Binary search between lo and hi bounds.
13302while test "x$ac_lo" != "x$ac_hi"; do
13303 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13304 cat >conftest.$ac_ext <<_ACEOF
13305/* confdefs.h. */
13306_ACEOF
13307cat confdefs.h >>conftest.$ac_ext
13308cat >>conftest.$ac_ext <<_ACEOF
13309/* end confdefs.h. */
13310$ac_includes_default
13311int
13312main ()
13313{
13314static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
13315test_array [0] = 0
13316
13317 ;
13318 return 0;
13319}
13320_ACEOF
13321rm -f conftest.$ac_objext
13322if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13323 (eval $ac_compile) 2>conftest.er1
13324 ac_status=$?
13325 grep -v '^ *+' conftest.er1 >conftest.err
13326 rm -f conftest.er1
13327 cat conftest.err >&5
13328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13329 (exit $ac_status); } &&
7357c5b6
AM
13330 { ac_try='test -z "$ac_c_werror_flag"
13331 || test ! -s conftest.err'
314e9a4e
L
13332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13333 (eval $ac_try) 2>&5
13334 ac_status=$?
13335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13336 (exit $ac_status); }; } &&
13337 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
13343 ac_hi=$ac_mid
13344else
13345 echo "$as_me: failed program was:" >&5
13346sed 's/^/| /' conftest.$ac_ext >&5
13347
13348ac_lo=`expr '(' $ac_mid ')' + 1`
13349fi
13350rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13351done
13352case $ac_lo in
13353?*) ac_cv_sizeof_long=$ac_lo;;
7a283e07
RW
13354'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13355echo "$as_me: error: in \`$ac_pwd':" >&2;}
13356{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
314e9a4e
L
13357See \`config.log' for more details." >&5
13358echo "$as_me: error: cannot compute sizeof (long), 77
13359See \`config.log' for more details." >&2;}
7a283e07 13360 { (exit 1); exit 1; }; }; } ;;
314e9a4e
L
13361esac
13362else
13363 if test "$cross_compiling" = yes; then
7357c5b6
AM
13364 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13365echo "$as_me: error: in \`$ac_pwd':" >&2;}
13366{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13367See \`config.log' for more details." >&5
13368echo "$as_me: error: cannot run test program while cross compiling
13369See \`config.log' for more details." >&2;}
13370 { (exit 1); exit 1; }; }; }
314e9a4e
L
13371else
13372 cat >conftest.$ac_ext <<_ACEOF
13373/* confdefs.h. */
13374_ACEOF
13375cat confdefs.h >>conftest.$ac_ext
13376cat >>conftest.$ac_ext <<_ACEOF
13377/* end confdefs.h. */
13378$ac_includes_default
13379long longval () { return (long) (sizeof (long)); }
13380unsigned long ulongval () { return (long) (sizeof (long)); }
13381#include <stdio.h>
13382#include <stdlib.h>
13383int
13384main ()
13385{
13386
13387 FILE *f = fopen ("conftest.val", "w");
13388 if (! f)
13389 exit (1);
13390 if (((long) (sizeof (long))) < 0)
13391 {
13392 long i = longval ();
13393 if (i != ((long) (sizeof (long))))
13394 exit (1);
13395 fprintf (f, "%ld\n", i);
13396 }
13397 else
13398 {
13399 unsigned long i = ulongval ();
13400 if (i != ((long) (sizeof (long))))
13401 exit (1);
13402 fprintf (f, "%lu\n", i);
13403 }
13404 exit (ferror (f) || fclose (f) != 0);
13405
13406 ;
13407 return 0;
13408}
13409_ACEOF
13410rm -f conftest$ac_exeext
13411if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13412 (eval $ac_link) 2>&5
13413 ac_status=$?
13414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13415 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13417 (eval $ac_try) 2>&5
13418 ac_status=$?
13419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13420 (exit $ac_status); }; }; then
13421 ac_cv_sizeof_long=`cat conftest.val`
13422else
13423 echo "$as_me: program exited with status $ac_status" >&5
13424echo "$as_me: failed program was:" >&5
13425sed 's/^/| /' conftest.$ac_ext >&5
13426
13427( exit $ac_status )
7a283e07
RW
13428{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13429echo "$as_me: error: in \`$ac_pwd':" >&2;}
314e9a4e
L
13430{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13431See \`config.log' for more details." >&5
13432echo "$as_me: error: cannot compute sizeof (long), 77
13433See \`config.log' for more details." >&2;}
7a283e07 13434 { (exit 1); exit 1; }; }; }
314e9a4e
L
13435fi
13436rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13437fi
13438fi
13439rm -f conftest.val
13440else
13441 ac_cv_sizeof_long=0
13442fi
13443fi
13444echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13445echo "${ECHO_T}$ac_cv_sizeof_long" >&6
13446cat >>confdefs.h <<_ACEOF
13447#define SIZEOF_LONG $ac_cv_sizeof_long
13448_ACEOF
13449
13450
13451 if test "x${ac_cv_sizeof_long}" = "x8"; then
13452 want64=true
13453 fi
13454 fi
42ecbf5e
DJ
13455 if test x${want64} = xtrue; then
13456 EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
13457 else
13458 EMULATION_OFILES='$(ALL_EMULATIONS)'
13459 fi
13460 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)'
13461else
13462 EMULATION_OFILES=$all_emuls
13463 EMUL_EXTRA_OFILES=$all_emul_extras
13464fi
13465
13466
13467
13468
13469EMULATION_LIBPATH=$all_libpath
13470
13471
13472if test x${enable_static} = xno; then
13473 TESTBFDLIB="--rpath ../bfd/.libs ../bfd/.libs/libbfd.so"
13474else
13475 TESTBFDLIB="../bfd/.libs/libbfd.a"
13476fi
13477
13478
13479target_vendor=${target_vendor=$host_vendor}
13480case "$target_vendor" in
13481 hp) EXTRA_SHLIB_EXTENSION=".sl" ;;
13482 *) EXTRA_SHLIB_EXTENSION= ;;
13483esac
13484
13485case "$target_os" in
13486 lynxos) EXTRA_SHLIB_EXTENSION=".a" ;;
13487esac
13488
13489if test x${EXTRA_SHLIB_EXTENSION} != x ; then
13490
13491cat >>confdefs.h <<_ACEOF
13492#define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
13493_ACEOF
13494
13495fi
13496
108a6f8e
CD
13497
13498
13499
13500
42ecbf5e 13501 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
42ecbf5e
DJ
13502cat >confcache <<\_ACEOF
13503# This file is a shell script that caches the results of configure
13504# tests run on this system so they can be shared between configure
13505# scripts and configure runs, see configure's option --config-cache.
13506# It is not useful on other systems. If it contains results you don't
13507# want to keep, you may remove or edit it.
13508#
13509# config.status only pays attention to the cache file if you give it
13510# the --recheck option to rerun configure.
13511#
13512# `ac_cv_env_foo' variables (set or unset) will be overridden when
13513# loading this file, other *unset* `ac_cv_foo' will be assigned the
13514# following values.
13515
13516_ACEOF
13517
13518# The following way of writing the cache mishandles newlines in values,
13519# but we know of no workaround that is simple, portable, and efficient.
13520# So, don't put newlines in cache variables' values.
13521# Ultrix sh set writes to stderr and can't be redirected directly,
13522# and sets the high bit in the cache file unless we assign to the vars.
13523{
13524 (set) 2>&1 |
13525 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13526 *ac_space=\ *)
13527 # `set' does not quote correctly, so add quotes (double-quote
13528 # substitution turns \\\\ into \\, and sed turns \\ into \).
13529 sed -n \
13530 "s/'/'\\\\''/g;
13531 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13532 ;;
13533 *)
13534 # `set' quotes correctly as required by POSIX, so do not add quotes.
13535 sed -n \
13536 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13537 ;;
13538 esac;
13539} |
13540 sed '
13541 t clear
13542 : clear
13543 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13544 t end
13545 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13546 : end' >>confcache
13547if diff $cache_file confcache >/dev/null 2>&1; then :; else
13548 if test -w $cache_file; then
13549 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
13550 cat confcache >$cache_file
13551 else
13552 echo "not updating unwritable cache $cache_file"
13553 fi
13554fi
13555rm -f confcache
13556
13557test "x$prefix" = xNONE && prefix=$ac_default_prefix
13558# Let make expand exec_prefix.
13559test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13560
13561# VPATH may cause trouble with some makes, so we remove $(srcdir),
13562# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13563# trailing colons and then remove the whole line if VPATH becomes empty
13564# (actually we leave an empty line to preserve line numbers).
13565if test "x$srcdir" = x.; then
13566 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13567s/:*\$(srcdir):*/:/;
13568s/:*\${srcdir}:*/:/;
13569s/:*@srcdir@:*/:/;
13570s/^\([^=]*=[ ]*\):*/\1/;
13571s/:*$//;
13572s/^[^=]*=[ ]*$//;
13573}'
13574fi
13575
13576DEFS=-DHAVE_CONFIG_H
13577
13578ac_libobjs=
13579ac_ltlibobjs=
13580for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13581 # 1. Remove the extension, and $U if already installed.
13582 ac_i=`echo "$ac_i" |
13583 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
13584 # 2. Add them.
13585 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
13586 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
13587done
13588LIBOBJS=$ac_libobjs
13589
13590LTLIBOBJS=$ac_ltlibobjs
13591
13592
13593if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13594 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13595Usually this means the macro was only invoked conditionally." >&5
13596echo "$as_me: error: conditional \"AMDEP\" was never defined.
13597Usually this means the macro was only invoked conditionally." >&2;}
13598 { (exit 1); exit 1; }; }
13599fi
13600if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13601 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13602Usually this means the macro was only invoked conditionally." >&5
13603echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13604Usually this means the macro was only invoked conditionally." >&2;}
13605 { (exit 1); exit 1; }; }
13606fi
13607if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13608 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
13609Usually this means the macro was only invoked conditionally." >&5
13610echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
13611Usually this means the macro was only invoked conditionally." >&2;}
13612 { (exit 1); exit 1; }; }
13613fi
d5fbea21
DJ
13614if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
13615 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
13616Usually this means the macro was only invoked conditionally." >&5
13617echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
13618Usually this means the macro was only invoked conditionally." >&2;}
13619 { (exit 1); exit 1; }; }
13620fi
42ecbf5e
DJ
13621
13622: ${CONFIG_STATUS=./config.status}
13623ac_clean_files_save=$ac_clean_files
13624ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13625{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13626echo "$as_me: creating $CONFIG_STATUS" >&6;}
13627cat >$CONFIG_STATUS <<_ACEOF
13628#! $SHELL
13629# Generated by $as_me.
13630# Run this file to recreate the current configuration.
13631# Compiler output produced by configure, useful for debugging
13632# configure, is in config.log if it exists.
13633
13634debug=false
13635ac_cs_recheck=false
13636ac_cs_silent=false
13637SHELL=\${CONFIG_SHELL-$SHELL}
13638_ACEOF
13639
13640cat >>$CONFIG_STATUS <<\_ACEOF
13641## --------------------- ##
13642## M4sh Initialization. ##
13643## --------------------- ##
13644
13645# Be Bourne compatible
13646if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13647 emulate sh
13648 NULLCMD=:
13649 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13650 # is contrary to our usage. Disable this feature.
13651 alias -g '${1+"$@"}'='"$@"'
13652elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13653 set -o posix
13654fi
13655DUALCASE=1; export DUALCASE # for MKS sh
13656
13657# Support unset when possible.
13658if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13659 as_unset=unset
13660else
13661 as_unset=false
13662fi
13663
13664
13665# Work around bugs in pre-3.0 UWIN ksh.
13666$as_unset ENV MAIL MAILPATH
13667PS1='$ '
13668PS2='> '
13669PS4='+ '
13670
13671# NLS nuisances.
13672for as_var in \
13673 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13674 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13675 LC_TELEPHONE LC_TIME
13676do
13677 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13678 eval $as_var=C; export $as_var
13679 else
13680 $as_unset $as_var
13681 fi
13682done
13683
13684# Required to use basename.
13685if expr a : '\(a\)' >/dev/null 2>&1; then
13686 as_expr=expr
13687else
13688 as_expr=false
13689fi
13690
13691if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
13692 as_basename=basename
13693else
13694 as_basename=false
13695fi
13696
13697
13698# Name of the executable.
13699as_me=`$as_basename "$0" ||
13700$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13701 X"$0" : 'X\(//\)$' \| \
13702 X"$0" : 'X\(/\)$' \| \
13703 . : '\(.\)' 2>/dev/null ||
13704echo X/"$0" |
13705 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13706 /^X\/\(\/\/\)$/{ s//\1/; q; }
13707 /^X\/\(\/\).*/{ s//\1/; q; }
13708 s/.*/./; q'`
13709
13710
13711# PATH needs CR, and LINENO needs CR and PATH.
13712# Avoid depending upon Character Ranges.
13713as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13714as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13715as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13716as_cr_digits='0123456789'
13717as_cr_alnum=$as_cr_Letters$as_cr_digits
13718
13719# The user is always right.
13720if test "${PATH_SEPARATOR+set}" != set; then
13721 echo "#! /bin/sh" >conf$$.sh
13722 echo "exit 0" >>conf$$.sh
13723 chmod +x conf$$.sh
13724 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13725 PATH_SEPARATOR=';'
13726 else
13727 PATH_SEPARATOR=:
13728 fi
13729 rm -f conf$$.sh
13730fi
13731
e5a52504 13732
42ecbf5e
DJ
13733 as_lineno_1=$LINENO
13734 as_lineno_2=$LINENO
13735 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13736 test "x$as_lineno_1" != "x$as_lineno_2" &&
13737 test "x$as_lineno_3" = "x$as_lineno_2" || {
13738 # Find who we are. Look in the path if we contain no path at all
13739 # relative or not.
13740 case $0 in
13741 *[\\/]* ) as_myself=$0 ;;
13742 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13743for as_dir in $PATH
13744do
13745 IFS=$as_save_IFS
13746 test -z "$as_dir" && as_dir=.
13747 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13748done
13749
13750 ;;
13751 esac
13752 # We did not find ourselves, most probably we were run as `sh COMMAND'
13753 # in which case we are not to be found in the path.
13754 if test "x$as_myself" = x; then
13755 as_myself=$0
13756 fi
13757 if test ! -f "$as_myself"; then
13758 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13759echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13760 { (exit 1); exit 1; }; }
252b5132 13761 fi
42ecbf5e
DJ
13762 case $CONFIG_SHELL in
13763 '')
13764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13765for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13766do
13767 IFS=$as_save_IFS
13768 test -z "$as_dir" && as_dir=.
13769 for as_base in sh bash ksh sh5; do
13770 case $as_dir in
13771 /*)
13772 if ("$as_dir/$as_base" -c '
13773 as_lineno_1=$LINENO
13774 as_lineno_2=$LINENO
13775 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13776 test "x$as_lineno_1" != "x$as_lineno_2" &&
13777 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
13778 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
13779 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
13780 CONFIG_SHELL=$as_dir/$as_base
13781 export CONFIG_SHELL
13782 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
13783 fi;;
13784 esac
13785 done
252b5132 13786done
42ecbf5e
DJ
13787;;
13788 esac
252b5132 13789
42ecbf5e
DJ
13790 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13791 # uniformly replaced by the line number. The first 'sed' inserts a
13792 # line-number line before each line; the second 'sed' does the real
13793 # work. The second script uses 'N' to pair each line-number line
13794 # with the numbered line, and appends trailing '-' during
13795 # substitution so that $LINENO is not a special case at line end.
13796 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13797 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
13798 sed '=' <$as_myself |
13799 sed '
13800 N
13801 s,$,-,
13802 : loop
13803 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
13804 t loop
13805 s,-$,,
13806 s,^['$as_cr_digits']*\n,,
13807 ' >$as_me.lineno &&
13808 chmod +x $as_me.lineno ||
13809 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13810echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
13811 { (exit 1); exit 1; }; }
13812
13813 # Don't try to exec as it changes $[0], causing all sort of problems
13814 # (the dirname of $[0] is not the place where we might find the
13815 # original and so on. Autoconf is especially sensible to this).
13816 . ./$as_me.lineno
13817 # Exit status is that of the last command.
13818 exit
13819}
252b5132
RH
13820
13821
42ecbf5e
DJ
13822case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13823 *c*,-n*) ECHO_N= ECHO_C='
13824' ECHO_T=' ' ;;
13825 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
13826 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
13827esac
252b5132 13828
42ecbf5e
DJ
13829if expr a : '\(a\)' >/dev/null 2>&1; then
13830 as_expr=expr
13831else
13832 as_expr=false
13833fi
252b5132 13834
42ecbf5e
DJ
13835rm -f conf$$ conf$$.exe conf$$.file
13836echo >conf$$.file
13837if ln -s conf$$.file conf$$ 2>/dev/null; then
13838 # We could just check for DJGPP; but this test a) works b) is more generic
13839 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13840 if test -f conf$$.exe; then
13841 # Don't use ln at all; we don't have any links
13842 as_ln_s='cp -p'
252b5132 13843 else
42ecbf5e 13844 as_ln_s='ln -s'
252b5132 13845 fi
42ecbf5e
DJ
13846elif ln conf$$.file conf$$ 2>/dev/null; then
13847 as_ln_s=ln
e5a52504 13848else
42ecbf5e 13849 as_ln_s='cp -p'
e5a52504 13850fi
42ecbf5e 13851rm -f conf$$ conf$$.exe conf$$.file
252b5132 13852
42ecbf5e
DJ
13853if mkdir -p . 2>/dev/null; then
13854 as_mkdir_p=:
13855else
13856 test -d ./-p && rmdir ./-p
13857 as_mkdir_p=false
13858fi
252b5132 13859
42ecbf5e 13860as_executable_p="test -f"
252b5132 13861
42ecbf5e
DJ
13862# Sed expression to map a string onto a valid CPP name.
13863as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
f234d5fe 13864
42ecbf5e
DJ
13865# Sed expression to map a string onto a valid variable name.
13866as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
e5a52504 13867
e5a52504 13868
42ecbf5e
DJ
13869# IFS
13870# We need space, tab and new line, in precisely that order.
13871as_nl='
13872'
13873IFS=" $as_nl"
e5a52504 13874
42ecbf5e
DJ
13875# CDPATH.
13876$as_unset CDPATH
e5a52504 13877
42ecbf5e 13878exec 6>&1
e5a52504 13879
42ecbf5e
DJ
13880# Open the log real soon, to keep \$[0] and so on meaningful, and to
13881# report actual input values of CONFIG_FILES etc. instead of their
13882# values after options handling. Logging --version etc. is OK.
13883exec 5>>config.log
13884{
13885 echo
13886 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13887## Running $as_me. ##
13888_ASBOX
13889} >&5
13890cat >&5 <<_CSEOF
e5a52504 13891
42ecbf5e
DJ
13892This file was extended by $as_me, which was
13893generated by GNU Autoconf 2.59. Invocation command line was
13894
13895 CONFIG_FILES = $CONFIG_FILES
13896 CONFIG_HEADERS = $CONFIG_HEADERS
13897 CONFIG_LINKS = $CONFIG_LINKS
13898 CONFIG_COMMANDS = $CONFIG_COMMANDS
13899 $ $0 $@
e5a52504 13900
42ecbf5e
DJ
13901_CSEOF
13902echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
13903echo >&5
13904_ACEOF
13905
13906# Files that config.status was made for.
13907if test -n "$ac_config_files"; then
13908 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
d15b04bd 13909fi
e5a52504 13910
42ecbf5e
DJ
13911if test -n "$ac_config_headers"; then
13912 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13913fi
13914
13915if test -n "$ac_config_links"; then
13916 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13917fi
13918
13919if test -n "$ac_config_commands"; then
13920 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13921fi
13922
13923cat >>$CONFIG_STATUS <<\_ACEOF
13924
13925ac_cs_usage="\
13926\`$as_me' instantiates files from templates according to the
13927current configuration.
13928
13929Usage: $0 [OPTIONS] [FILE]...
13930
13931 -h, --help print this help, then exit
13932 -V, --version print version number, then exit
13933 -q, --quiet do not print progress messages
13934 -d, --debug don't remove temporary files
13935 --recheck update $as_me by reconfiguring in the same conditions
13936 --file=FILE[:TEMPLATE]
13937 instantiate the configuration file FILE
13938 --header=FILE[:TEMPLATE]
13939 instantiate the configuration header FILE
13940
13941Configuration files:
13942$config_files
13943
13944Configuration headers:
13945$config_headers
13946
13947Configuration commands:
13948$config_commands
13949
13950Report bugs to <bug-autoconf@gnu.org>."
13951_ACEOF
13952
13953cat >>$CONFIG_STATUS <<_ACEOF
13954ac_cs_version="\\
13955config.status
13956configured by $0, generated by GNU Autoconf 2.59,
13957 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13958
13959Copyright (C) 2003 Free Software Foundation, Inc.
13960This config.status script is free software; the Free Software Foundation
13961gives unlimited permission to copy, distribute and modify it."
13962srcdir=$srcdir
13963INSTALL="$INSTALL"
13964_ACEOF
13965
13966cat >>$CONFIG_STATUS <<\_ACEOF
13967# If no file are specified by the user, then we need to provide default
13968# value. By we need to know if files were specified by the user.
13969ac_need_defaults=:
13970while test $# != 0
13971do
13972 case $1 in
13973 --*=*)
13974 ac_option=`expr "x$1" : 'x\([^=]*\)='`
13975 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13976 ac_shift=:
252b5132 13977 ;;
42ecbf5e
DJ
13978 -*)
13979 ac_option=$1
13980 ac_optarg=$2
13981 ac_shift=shift
252b5132 13982 ;;
42ecbf5e
DJ
13983 *) # This is not an option, so the user has probably given explicit
13984 # arguments.
13985 ac_option=$1
13986 ac_need_defaults=false;;
13987 esac
252b5132 13988
42ecbf5e
DJ
13989 case $ac_option in
13990 # Handling of the options.
13991_ACEOF
13992cat >>$CONFIG_STATUS <<\_ACEOF
13993 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13994 ac_cs_recheck=: ;;
13995 --version | --vers* | -V )
13996 echo "$ac_cs_version"; exit 0 ;;
13997 --he | --h)
13998 # Conflict between --help and --header
13999 { { echo "$as_me:$LINENO: error: ambiguous option: $1
14000Try \`$0 --help' for more information." >&5
14001echo "$as_me: error: ambiguous option: $1
14002Try \`$0 --help' for more information." >&2;}
14003 { (exit 1); exit 1; }; };;
14004 --help | --hel | -h )
14005 echo "$ac_cs_usage"; exit 0 ;;
14006 --debug | --d* | -d )
14007 debug=: ;;
14008 --file | --fil | --fi | --f )
14009 $ac_shift
14010 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14011 ac_need_defaults=false;;
14012 --header | --heade | --head | --hea )
14013 $ac_shift
14014 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14015 ac_need_defaults=false;;
14016 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14017 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14018 ac_cs_silent=: ;;
252b5132 14019
42ecbf5e
DJ
14020 # This is an error.
14021 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
14022Try \`$0 --help' for more information." >&5
14023echo "$as_me: error: unrecognized option: $1
14024Try \`$0 --help' for more information." >&2;}
14025 { (exit 1); exit 1; }; } ;;
252b5132 14026
42ecbf5e 14027 *) ac_config_targets="$ac_config_targets $1" ;;
252b5132 14028
42ecbf5e
DJ
14029 esac
14030 shift
14031done
d15b04bd 14032
42ecbf5e 14033ac_configure_extra_args=
e5a52504 14034
42ecbf5e
DJ
14035if $ac_cs_silent; then
14036 exec 6>/dev/null
14037 ac_configure_extra_args="$ac_configure_extra_args --silent"
14038fi
e5a52504 14039
42ecbf5e
DJ
14040_ACEOF
14041cat >>$CONFIG_STATUS <<_ACEOF
14042if \$ac_cs_recheck; then
14043 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14044 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14045fi
14046
14047_ACEOF
14048
14049cat >>$CONFIG_STATUS <<_ACEOF
252b5132 14050#
42ecbf5e 14051# INIT-COMMANDS section.
252b5132 14052#
252b5132 14053
42ecbf5e 14054AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
14055
14056
14057# The HP-UX ksh and POSIX shell print the target directory to stdout
14058# if CDPATH is set.
14059(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14060
14061sed_quote_subst='$sed_quote_subst'
14062double_quote_subst='$double_quote_subst'
14063delay_variable_subst='$delay_variable_subst'
14064macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14065macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14066enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14067enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14068pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14069enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14070host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14071host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14072host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14073build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14074build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14075build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14076SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14077Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14078GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14079EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14080FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14081LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14082NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14083LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14084max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14085ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14086exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14087lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14088lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14089lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14090reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14091reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14092deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14093file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14094AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14095AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14096STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14097RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14098old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14099old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14100old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14101CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14102CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14103compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14104GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14105lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14106lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14107lt_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"`'
14108objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14109SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14110ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14111MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14112lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14113lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14114lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14115lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14116lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14117need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14118libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14119shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14120extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14121archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14122enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14123export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14124whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14125compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14126old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14127old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14128archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14129archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14130module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14131module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14132with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14133allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14134no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14135hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14136hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14137hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14138hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14139hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14140hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14141hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14142hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14143inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14144link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14145fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14146always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14147export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14148exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14149include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14150prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14151file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14152variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14153need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14154need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14155version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14156runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14157shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14158shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14159libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14160library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14161soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14162postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14163postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14164finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14165finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14166hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14167sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14168sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14169hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14170enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14171enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14172enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14173old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14174striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14175
14176LTCC='$LTCC'
14177LTCFLAGS='$LTCFLAGS'
14178compiler='$compiler_DEFAULT'
14179
14180# Quote evaled strings.
14181for var in SED \
14182GREP \
14183EGREP \
14184FGREP \
14185LD \
14186NM \
14187LN_S \
14188lt_SP2NL \
14189lt_NL2SP \
14190reload_flag \
14191deplibs_check_method \
14192file_magic_cmd \
14193AR \
14194AR_FLAGS \
14195STRIP \
14196RANLIB \
14197CC \
14198CFLAGS \
14199compiler \
14200lt_cv_sys_global_symbol_pipe \
14201lt_cv_sys_global_symbol_to_cdecl \
14202lt_cv_sys_global_symbol_to_c_name_address \
14203SHELL \
14204ECHO \
14205lt_prog_compiler_no_builtin_flag \
14206lt_prog_compiler_wl \
14207lt_prog_compiler_pic \
14208lt_prog_compiler_static \
14209lt_cv_prog_compiler_c_o \
14210need_locks \
14211shrext_cmds \
14212export_dynamic_flag_spec \
14213whole_archive_flag_spec \
14214compiler_needs_object \
14215with_gnu_ld \
14216allow_undefined_flag \
14217no_undefined_flag \
14218hardcode_libdir_flag_spec \
14219hardcode_libdir_flag_spec_ld \
14220hardcode_libdir_separator \
14221fix_srcfile_path \
14222exclude_expsyms \
14223include_expsyms \
14224file_list_spec \
14225variables_saved_for_relink \
14226libname_spec \
14227library_names_spec \
14228soname_spec \
14229finish_eval \
14230old_striplib \
14231striplib; do
14232 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14233 *[\\\\\\\`\\"\\\$]*)
14234 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14235 ;;
14236 *)
14237 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14238 ;;
14239 esac
14240done
14241
14242# Double-quote double-evaled strings.
14243for var in reload_cmds \
14244old_postinstall_cmds \
14245old_postuninstall_cmds \
14246old_archive_cmds \
14247extract_expsyms_cmds \
14248old_archive_from_new_cmds \
14249old_archive_from_expsyms_cmds \
14250archive_cmds \
14251archive_expsym_cmds \
14252module_cmds \
14253module_expsym_cmds \
14254export_symbols_cmds \
14255prelink_cmds \
14256postinstall_cmds \
14257postuninstall_cmds \
14258finish_cmds \
14259sys_lib_search_path_spec \
14260sys_lib_dlsearch_path_spec; do
14261 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14262 *[\\\\\\\`\\"\\\$]*)
14263 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14264 ;;
14265 *)
14266 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14267 ;;
14268 esac
14269done
14270
14271# Fix-up fallback echo if it was mangled by the above quoting rules.
14272case \$lt_ECHO in
14273*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14274 ;;
14275esac
14276
14277ac_aux_dir='$ac_aux_dir'
14278xsi_shell='$xsi_shell'
14279lt_shell_append='$lt_shell_append'
14280
14281# See if we are running on zsh, and set the options which allow our
14282# commands through without removal of \ escapes INIT.
14283if test -n "\${ZSH_VERSION+set}" ; then
14284 setopt NO_GLOB_SUBST
14285fi
14286
14287
14288 PACKAGE='$PACKAGE'
14289 VERSION='$VERSION'
14290 TIMESTAMP='$TIMESTAMP'
14291 RM='$RM'
14292 ofile='$ofile'
14293
14294
14295
20e95c23
DJ
14296# Capture the value of obsolete ALL_LINGUAS because we need it to compute
14297 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
14298 # from automake.
14299 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14300 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14301 LINGUAS="${LINGUAS-%UNSET%}"
14302
42ecbf5e
DJ
14303
14304_ACEOF
14305
14306
14307
14308cat >>$CONFIG_STATUS <<\_ACEOF
14309for ac_config_target in $ac_config_targets
252b5132 14310do
42ecbf5e
DJ
14311 case "$ac_config_target" in
14312 # Handling of arguments.
14313 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14314 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
14315 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
d7040cdb 14316 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20e95c23 14317 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
42ecbf5e
DJ
14318 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
14319 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14320echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14321 { (exit 1); exit 1; }; };;
252b5132
RH
14322 esac
14323done
14324
42ecbf5e
DJ
14325# If the user did not use the arguments to specify the items to instantiate,
14326# then the envvar interface is used. Set only those that are not.
14327# We use the long form for the default assignment because of an extremely
14328# bizarre bug on SunOS 4.1.3.
14329if $ac_need_defaults; then
14330 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14331 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14332 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14333fi
14334
14335# Have a temporary directory for convenience. Make it in the build tree
14336# simply because there is no reason to put it here, and in addition,
14337# creating and moving files from /tmp can sometimes cause problems.
14338# Create a temporary directory, and hook for its removal unless debugging.
14339$debug ||
14340{
14341 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14342 trap '{ (exit 1); exit 1; }' 1 2 13 15
14343}
14344
14345# Create a (secure) tmp directory for tmp files.
e5a52504 14346
42ecbf5e
DJ
14347{
14348 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
14349 test -n "$tmp" && test -d "$tmp"
14350} ||
14351{
14352 tmp=./confstat$$-$RANDOM
14353 (umask 077 && mkdir $tmp)
14354} ||
14355{
14356 echo "$me: cannot create a temporary directory in ." >&2
14357 { (exit 1); exit 1; }
14358}
e5a52504 14359
42ecbf5e 14360_ACEOF
d15b04bd 14361
42ecbf5e
DJ
14362cat >>$CONFIG_STATUS <<_ACEOF
14363
14364#
14365# CONFIG_FILES section.
14366#
14367
14368# No need to generate the scripts if there are no CONFIG_FILES.
14369# This happens for instance when ./config.status config.h
14370if test -n "\$CONFIG_FILES"; then
14371 # Protect against being on the right side of a sed subst in config.status.
14372 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
14373 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
14374s,@SHELL@,$SHELL,;t t
14375s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14376s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14377s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14378s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14379s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14380s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
14381s,@exec_prefix@,$exec_prefix,;t t
14382s,@prefix@,$prefix,;t t
14383s,@program_transform_name@,$program_transform_name,;t t
14384s,@bindir@,$bindir,;t t
14385s,@sbindir@,$sbindir,;t t
14386s,@libexecdir@,$libexecdir,;t t
14387s,@datadir@,$datadir,;t t
14388s,@sysconfdir@,$sysconfdir,;t t
14389s,@sharedstatedir@,$sharedstatedir,;t t
14390s,@localstatedir@,$localstatedir,;t t
14391s,@libdir@,$libdir,;t t
14392s,@includedir@,$includedir,;t t
14393s,@oldincludedir@,$oldincludedir,;t t
14394s,@infodir@,$infodir,;t t
14395s,@mandir@,$mandir,;t t
14396s,@build_alias@,$build_alias,;t t
14397s,@host_alias@,$host_alias,;t t
14398s,@target_alias@,$target_alias,;t t
14399s,@DEFS@,$DEFS,;t t
14400s,@ECHO_C@,$ECHO_C,;t t
14401s,@ECHO_N@,$ECHO_N,;t t
14402s,@ECHO_T@,$ECHO_T,;t t
14403s,@LIBS@,$LIBS,;t t
14404s,@build@,$build,;t t
14405s,@build_cpu@,$build_cpu,;t t
14406s,@build_vendor@,$build_vendor,;t t
14407s,@build_os@,$build_os,;t t
14408s,@host@,$host,;t t
14409s,@host_cpu@,$host_cpu,;t t
14410s,@host_vendor@,$host_vendor,;t t
14411s,@host_os@,$host_os,;t t
14412s,@target@,$target,;t t
14413s,@target_cpu@,$target_cpu,;t t
14414s,@target_vendor@,$target_vendor,;t t
14415s,@target_os@,$target_os,;t t
14416s,@CC@,$CC,;t t
14417s,@CFLAGS@,$CFLAGS,;t t
14418s,@LDFLAGS@,$LDFLAGS,;t t
14419s,@CPPFLAGS@,$CPPFLAGS,;t t
14420s,@ac_ct_CC@,$ac_ct_CC,;t t
14421s,@EXEEXT@,$EXEEXT,;t t
14422s,@OBJEXT@,$OBJEXT,;t t
14423s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
14424s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
14425s,@INSTALL_DATA@,$INSTALL_DATA,;t t
14426s,@CYGPATH_W@,$CYGPATH_W,;t t
14427s,@PACKAGE@,$PACKAGE,;t t
14428s,@VERSION@,$VERSION,;t t
14429s,@ACLOCAL@,$ACLOCAL,;t t
14430s,@AUTOCONF@,$AUTOCONF,;t t
14431s,@AUTOMAKE@,$AUTOMAKE,;t t
14432s,@AUTOHEADER@,$AUTOHEADER,;t t
14433s,@MAKEINFO@,$MAKEINFO,;t t
14434s,@install_sh@,$install_sh,;t t
14435s,@STRIP@,$STRIP,;t t
14436s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
14437s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
14438s,@mkdir_p@,$mkdir_p,;t t
14439s,@AWK@,$AWK,;t t
14440s,@SET_MAKE@,$SET_MAKE,;t t
14441s,@am__leading_dot@,$am__leading_dot,;t t
14442s,@AMTAR@,$AMTAR,;t t
14443s,@am__tar@,$am__tar,;t t
14444s,@am__untar@,$am__untar,;t t
14445s,@DEPDIR@,$DEPDIR,;t t
14446s,@am__include@,$am__include,;t t
14447s,@am__quote@,$am__quote,;t t
14448s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
14449s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
14450s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
14451s,@CCDEPMODE@,$CCDEPMODE,;t t
14452s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
14453s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
ce2cded5
L
14454s,@use_sysroot@,$use_sysroot,;t t
14455s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
14456s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
14457s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
14458s,@NO_WERROR@,$NO_WERROR,;t t
7357c5b6
AM
14459s,@CPP@,$CPP,;t t
14460s,@EGREP@,$EGREP,;t t
d7040cdb
SE
14461s,@LIBTOOL@,$LIBTOOL,;t t
14462s,@SED@,$SED,;t t
d7040cdb
SE
14463s,@FGREP@,$FGREP,;t t
14464s,@GREP@,$GREP,;t t
14465s,@LD@,$LD,;t t
14466s,@DUMPBIN@,$DUMPBIN,;t t
14467s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
14468s,@NM@,$NM,;t t
42ecbf5e 14469s,@LN_S@,$LN_S,;t t
d7040cdb
SE
14470s,@AR@,$AR,;t t
14471s,@ac_ct_AR@,$ac_ct_AR,;t t
42ecbf5e
DJ
14472s,@RANLIB@,$RANLIB,;t t
14473s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
d7040cdb 14474s,@lt_ECHO@,$lt_ECHO,;t t
42ecbf5e 14475s,@USE_NLS@,$USE_NLS,;t t
20e95c23
DJ
14476s,@LIBINTL@,$LIBINTL,;t t
14477s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
14478s,@INCINTL@,$INCINTL,;t t
42ecbf5e 14479s,@XGETTEXT@,$XGETTEXT,;t t
20e95c23
DJ
14480s,@GMSGFMT@,$GMSGFMT,;t t
14481s,@POSUB@,$POSUB,;t t
42ecbf5e 14482s,@CATALOGS@,$CATALOGS,;t t
42ecbf5e 14483s,@DATADIRNAME@,$DATADIRNAME,;t t
42ecbf5e 14484s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20e95c23
DJ
14485s,@GENCAT@,$GENCAT,;t t
14486s,@CATOBJEXT@,$CATOBJEXT,;t t
42ecbf5e 14487s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
20e95c23
DJ
14488s,@MSGFMT@,$MSGFMT,;t t
14489s,@MSGMERGE@,$MSGMERGE,;t t
42ecbf5e
DJ
14490s,@YACC@,$YACC,;t t
14491s,@LEX@,$LEX,;t t
14492s,@LEXLIB@,$LEXLIB,;t t
14493s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
14494s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
14495s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
14496s,@MAINT@,$MAINT,;t t
d5fbea21
DJ
14497s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
14498s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
42ecbf5e
DJ
14499s,@HDEFINES@,$HDEFINES,;t t
14500s,@HOSTING_CRT0@,$HOSTING_CRT0,;t t
14501s,@HOSTING_LIBS@,$HOSTING_LIBS,;t t
14502s,@NATIVE_LIB_DIRS@,$NATIVE_LIB_DIRS,;t t
14503s,@STRINGIFY@,$STRINGIFY,;t t
14504s,@EMUL@,$EMUL,;t t
14505s,@EMULATION_OFILES@,$EMULATION_OFILES,;t t
14506s,@EMUL_EXTRA_OFILES@,$EMUL_EXTRA_OFILES,;t t
14507s,@LIB_PATH@,$LIB_PATH,;t t
14508s,@EMULATION_LIBPATH@,$EMULATION_LIBPATH,;t t
14509s,@TESTBFDLIB@,$TESTBFDLIB,;t t
108a6f8e
CD
14510s,@datarootdir@,$datarootdir,;t t
14511s,@docdir@,$docdir,;t t
14512s,@htmldir@,$htmldir,;t t
42ecbf5e
DJ
14513s,@LIBOBJS@,$LIBOBJS,;t t
14514s,@LTLIBOBJS@,$LTLIBOBJS,;t t
14515/@TDIRS@/r $TDIRS
14516s,@TDIRS@,,;t t
252b5132 14517CEOF
252b5132 14518
42ecbf5e
DJ
14519_ACEOF
14520
14521 cat >>$CONFIG_STATUS <<\_ACEOF
14522 # Split the substitutions into bite-sized pieces for seds with
14523 # small command number limits, like on Digital OSF/1 and HP-UX.
14524 ac_max_sed_lines=48
14525 ac_sed_frag=1 # Number of current file.
14526 ac_beg=1 # First line for current file.
14527 ac_end=$ac_max_sed_lines # Line after last line for current file.
14528 ac_more_lines=:
14529 ac_sed_cmds=
14530 while $ac_more_lines; do
14531 if test $ac_beg -gt 1; then
14532 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14533 else
14534 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14535 fi
14536 if test ! -s $tmp/subs.frag; then
14537 ac_more_lines=false
252b5132 14538 else
42ecbf5e
DJ
14539 # The purpose of the label and of the branching condition is to
14540 # speed up the sed processing (if there are no `@' at all, there
14541 # is no need to browse any of the substitutions).
14542 # These are the two extra sed commands mentioned above.
14543 (echo ':t
14544 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
14545 if test -z "$ac_sed_cmds"; then
14546 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
14547 else
14548 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
14549 fi
14550 ac_sed_frag=`expr $ac_sed_frag + 1`
14551 ac_beg=$ac_end
14552 ac_end=`expr $ac_end + $ac_max_sed_lines`
252b5132 14553 fi
42ecbf5e
DJ
14554 done
14555 if test -z "$ac_sed_cmds"; then
14556 ac_sed_cmds=cat
252b5132 14557 fi
42ecbf5e 14558fi # test -n "$CONFIG_FILES"
252b5132 14559
42ecbf5e
DJ
14560_ACEOF
14561cat >>$CONFIG_STATUS <<\_ACEOF
14562for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
252b5132 14563 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42ecbf5e
DJ
14564 case $ac_file in
14565 - | *:- | *:-:* ) # input from stdin
14566 cat >$tmp/stdin
14567 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14568 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14569 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14570 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14571 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
14572 esac
14573
42ecbf5e
DJ
14574 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
14575 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14576$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14577 X"$ac_file" : 'X\(//\)[^/]' \| \
14578 X"$ac_file" : 'X\(//\)$' \| \
14579 X"$ac_file" : 'X\(/\)' \| \
14580 . : '\(.\)' 2>/dev/null ||
14581echo X"$ac_file" |
14582 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14583 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14584 /^X\(\/\/\)$/{ s//\1/; q; }
14585 /^X\(\/\).*/{ s//\1/; q; }
14586 s/.*/./; q'`
14587 { if $as_mkdir_p; then
14588 mkdir -p "$ac_dir"
d15b04bd 14589 else
42ecbf5e
DJ
14590 as_dir="$ac_dir"
14591 as_dirs=
14592 while test ! -d "$as_dir"; do
14593 as_dirs="$as_dir $as_dirs"
14594 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14595$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14596 X"$as_dir" : 'X\(//\)[^/]' \| \
14597 X"$as_dir" : 'X\(//\)$' \| \
14598 X"$as_dir" : 'X\(/\)' \| \
14599 . : '\(.\)' 2>/dev/null ||
14600echo X"$as_dir" |
14601 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14602 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14603 /^X\(\/\/\)$/{ s//\1/; q; }
14604 /^X\(\/\).*/{ s//\1/; q; }
14605 s/.*/./; q'`
14606 done
14607 test ! -n "$as_dirs" || mkdir $as_dirs
14608 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14609echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14610 { (exit 1); exit 1; }; }; }
14611
14612 ac_builddir=.
14613
14614if test "$ac_dir" != .; then
14615 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14616 # A "../" for each directory in $ac_dir_suffix.
14617 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14618else
14619 ac_dir_suffix= ac_top_builddir=
14620fi
252b5132 14621
42ecbf5e
DJ
14622case $srcdir in
14623 .) # No --srcdir option. We are building in place.
14624 ac_srcdir=.
14625 if test -z "$ac_top_builddir"; then
14626 ac_top_srcdir=.
14627 else
14628 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14629 fi ;;
14630 [\\/]* | ?:[\\/]* ) # Absolute path.
14631 ac_srcdir=$srcdir$ac_dir_suffix;
14632 ac_top_srcdir=$srcdir ;;
252b5132 14633 *) # Relative path.
42ecbf5e
DJ
14634 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14635 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14636esac
14637
14638# Do not use `cd foo && pwd` to compute absolute paths, because
14639# the directories may not exist.
14640case `pwd` in
14641.) ac_abs_builddir="$ac_dir";;
14642*)
14643 case "$ac_dir" in
14644 .) ac_abs_builddir=`pwd`;;
14645 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14646 *) ac_abs_builddir=`pwd`/"$ac_dir";;
14647 esac;;
14648esac
14649case $ac_abs_builddir in
14650.) ac_abs_top_builddir=${ac_top_builddir}.;;
14651*)
14652 case ${ac_top_builddir}. in
14653 .) ac_abs_top_builddir=$ac_abs_builddir;;
14654 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14655 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14656 esac;;
14657esac
14658case $ac_abs_builddir in
14659.) ac_abs_srcdir=$ac_srcdir;;
14660*)
14661 case $ac_srcdir in
14662 .) ac_abs_srcdir=$ac_abs_builddir;;
14663 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14664 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14665 esac;;
14666esac
14667case $ac_abs_builddir in
14668.) ac_abs_top_srcdir=$ac_top_srcdir;;
14669*)
14670 case $ac_top_srcdir in
14671 .) ac_abs_top_srcdir=$ac_abs_builddir;;
14672 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14673 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14674 esac;;
14675esac
252b5132 14676
e5a52504 14677
42ecbf5e
DJ
14678 case $INSTALL in
14679 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14680 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
d15b04bd 14681 esac
e5a52504 14682
7357c5b6
AM
14683 if test x"$ac_file" != x-; then
14684 { echo "$as_me:$LINENO: creating $ac_file" >&5
14685echo "$as_me: creating $ac_file" >&6;}
14686 rm -f "$ac_file"
14687 fi
42ecbf5e
DJ
14688 # Let's still pretend it is `configure' which instantiates (i.e., don't
14689 # use $as_me), people would be surprised to read:
14690 # /* config.h. Generated by config.status. */
14691 if test x"$ac_file" = x-; then
14692 configure_input=
14693 else
14694 configure_input="$ac_file. "
14695 fi
14696 configure_input=$configure_input"Generated from `echo $ac_file_in |
14697 sed 's,.*/,,'` by configure."
14698
14699 # First look for the input files in the build tree, otherwise in the
14700 # src tree.
14701 ac_file_inputs=`IFS=:
14702 for f in $ac_file_in; do
14703 case $f in
14704 -) echo $tmp/stdin ;;
14705 [\\/$]*)
14706 # Absolute (can't be DOS-style, as IFS=:)
14707 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14708echo "$as_me: error: cannot find input file: $f" >&2;}
14709 { (exit 1); exit 1; }; }
14710 echo "$f";;
14711 *) # Relative
14712 if test -f "$f"; then
14713 # Build tree
14714 echo "$f"
14715 elif test -f "$srcdir/$f"; then
14716 # Source tree
14717 echo "$srcdir/$f"
14718 else
14719 # /dev/null tree
14720 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14721echo "$as_me: error: cannot find input file: $f" >&2;}
14722 { (exit 1); exit 1; }; }
14723 fi;;
14724 esac
14725 done` || { (exit 1); exit 1; }
42ecbf5e
DJ
14726_ACEOF
14727cat >>$CONFIG_STATUS <<_ACEOF
14728 sed "$ac_vpsub
14729$extrasub
14730_ACEOF
14731cat >>$CONFIG_STATUS <<\_ACEOF
14732:t
14733/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14734s,@configure_input@,$configure_input,;t t
14735s,@srcdir@,$ac_srcdir,;t t
14736s,@abs_srcdir@,$ac_abs_srcdir,;t t
14737s,@top_srcdir@,$ac_top_srcdir,;t t
14738s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
14739s,@builddir@,$ac_builddir,;t t
14740s,@abs_builddir@,$ac_abs_builddir,;t t
14741s,@top_builddir@,$ac_top_builddir,;t t
14742s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
14743s,@INSTALL@,$ac_INSTALL,;t t
14744" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
14745 rm -f $tmp/stdin
14746 if test x"$ac_file" != x-; then
14747 mv $tmp/out $ac_file
14748 else
14749 cat $tmp/out
14750 rm -f $tmp/out
14751 fi
14752
14753done
14754_ACEOF
14755cat >>$CONFIG_STATUS <<\_ACEOF
14756
14757#
14758# CONFIG_HEADER section.
14759#
252b5132
RH
14760
14761# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14762# NAME is the cpp macro being defined and VALUE is the value it is being given.
14763#
14764# ac_d sets the value in "#define NAME VALUE" lines.
42ecbf5e
DJ
14765ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14766ac_dB='[ ].*$,\1#\2'
14767ac_dC=' '
14768ac_dD=',;t'
14769# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14770ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14771ac_uB='$,\1#\2define\3'
252b5132 14772ac_uC=' '
42ecbf5e
DJ
14773ac_uD=',;t'
14774
14775for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
252b5132 14776 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42ecbf5e
DJ
14777 case $ac_file in
14778 - | *:- | *:-:* ) # input from stdin
14779 cat >$tmp/stdin
14780 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14781 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14782 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14783 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14784 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
14785 esac
14786
42ecbf5e
DJ
14787 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
14788echo "$as_me: creating $ac_file" >&6;}
14789
14790 # First look for the input files in the build tree, otherwise in the
14791 # src tree.
14792 ac_file_inputs=`IFS=:
14793 for f in $ac_file_in; do
14794 case $f in
14795 -) echo $tmp/stdin ;;
14796 [\\/$]*)
14797 # Absolute (can't be DOS-style, as IFS=:)
14798 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14799echo "$as_me: error: cannot find input file: $f" >&2;}
14800 { (exit 1); exit 1; }; }
14801 # Do quote $f, to prevent DOS paths from being IFS'd.
14802 echo "$f";;
14803 *) # Relative
14804 if test -f "$f"; then
14805 # Build tree
14806 echo "$f"
14807 elif test -f "$srcdir/$f"; then
14808 # Source tree
14809 echo "$srcdir/$f"
14810 else
14811 # /dev/null tree
14812 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14813echo "$as_me: error: cannot find input file: $f" >&2;}
14814 { (exit 1); exit 1; }; }
14815 fi;;
14816 esac
14817 done` || { (exit 1); exit 1; }
14818 # Remove the trailing spaces.
14819 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
14820
14821_ACEOF
14822
14823# Transform confdefs.h into two sed scripts, `conftest.defines' and
14824# `conftest.undefs', that substitutes the proper values into
14825# config.h.in to produce config.h. The first handles `#define'
14826# templates, and the second `#undef' templates.
14827# And first: Protect against being on the right side of a sed subst in
14828# config.status. Protect against being in an unquoted here document
14829# in config.status.
14830rm -f conftest.defines conftest.undefs
14831# Using a here document instead of a string reduces the quoting nightmare.
14832# Putting comments in sed scripts is not portable.
14833#
14834# `end' is used to avoid that the second main sed command (meant for
14835# 0-ary CPP macros) applies to n-ary macro definitions.
14836# See the Autoconf documentation for `clear'.
14837cat >confdef2sed.sed <<\_ACEOF
14838s/[\\&,]/\\&/g
14839s,[\\$`],\\&,g
14840t clear
14841: clear
14842s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
14843t end
14844s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
14845: end
14846_ACEOF
14847# If some macros were called several times there might be several times
14848# the same #defines, which is useless. Nevertheless, we may not want to
14849# sort them, since we want the *last* AC-DEFINE to be honored.
14850uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
14851sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
14852rm -f confdef2sed.sed
252b5132
RH
14853
14854# This sed command replaces #undef with comments. This is necessary, for
14855# example, in the case of _POSIX_SOURCE, which is predefined and required
14856# on some systems where configure will not decide to define it.
42ecbf5e
DJ
14857cat >>conftest.undefs <<\_ACEOF
14858s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
14859_ACEOF
14860
14861# Break up conftest.defines because some shells have a limit on the size
14862# of here documents, and old seds have small limits too (100 cmds).
14863echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
14864echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
14865echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
14866echo ' :' >>$CONFIG_STATUS
14867rm -f conftest.tail
14868while grep . conftest.defines >/dev/null
14869do
14870 # Write a limited-size here document to $tmp/defines.sed.
14871 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
14872 # Speed up: don't consider the non `#define' lines.
14873 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
14874 # Work around the forget-to-reset-the-flag bug.
14875 echo 't clr' >>$CONFIG_STATUS
14876 echo ': clr' >>$CONFIG_STATUS
14877 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
14878 echo 'CEOF
14879 sed -f $tmp/defines.sed $tmp/in >$tmp/out
14880 rm -f $tmp/in
14881 mv $tmp/out $tmp/in
14882' >>$CONFIG_STATUS
14883 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
14884 rm -f conftest.defines
14885 mv conftest.tail conftest.defines
14886done
14887rm -f conftest.defines
14888echo ' fi # grep' >>$CONFIG_STATUS
14889echo >>$CONFIG_STATUS
252b5132 14890
42ecbf5e
DJ
14891# Break up conftest.undefs because some shells have a limit on the size
14892# of here documents, and old seds have small limits too (100 cmds).
14893echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
252b5132 14894rm -f conftest.tail
42ecbf5e 14895while grep . conftest.undefs >/dev/null
252b5132 14896do
42ecbf5e
DJ
14897 # Write a limited-size here document to $tmp/undefs.sed.
14898 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
14899 # Speed up: don't consider the non `#undef'
14900 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
14901 # Work around the forget-to-reset-the-flag bug.
14902 echo 't clr' >>$CONFIG_STATUS
14903 echo ': clr' >>$CONFIG_STATUS
14904 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
252b5132 14905 echo 'CEOF
42ecbf5e
DJ
14906 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
14907 rm -f $tmp/in
14908 mv $tmp/out $tmp/in
14909' >>$CONFIG_STATUS
14910 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
14911 rm -f conftest.undefs
14912 mv conftest.tail conftest.undefs
252b5132 14913done
42ecbf5e
DJ
14914rm -f conftest.undefs
14915
14916cat >>$CONFIG_STATUS <<\_ACEOF
14917 # Let's still pretend it is `configure' which instantiates (i.e., don't
14918 # use $as_me), people would be surprised to read:
14919 # /* config.h. Generated by config.status. */
14920 if test x"$ac_file" = x-; then
14921 echo "/* Generated by configure. */" >$tmp/config.h
252b5132 14922 else
42ecbf5e
DJ
14923 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
14924 fi
14925 cat $tmp/in >>$tmp/config.h
14926 rm -f $tmp/in
14927 if test x"$ac_file" != x-; then
14928 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
14929 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14930echo "$as_me: $ac_file is unchanged" >&6;}
14931 else
14932 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14933$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14934 X"$ac_file" : 'X\(//\)[^/]' \| \
14935 X"$ac_file" : 'X\(//\)$' \| \
14936 X"$ac_file" : 'X\(/\)' \| \
14937 . : '\(.\)' 2>/dev/null ||
14938echo X"$ac_file" |
14939 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14940 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14941 /^X\(\/\/\)$/{ s//\1/; q; }
14942 /^X\(\/\).*/{ s//\1/; q; }
14943 s/.*/./; q'`
14944 { if $as_mkdir_p; then
14945 mkdir -p "$ac_dir"
14946 else
14947 as_dir="$ac_dir"
14948 as_dirs=
14949 while test ! -d "$as_dir"; do
14950 as_dirs="$as_dir $as_dirs"
14951 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14952$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14953 X"$as_dir" : 'X\(//\)[^/]' \| \
14954 X"$as_dir" : 'X\(//\)$' \| \
14955 X"$as_dir" : 'X\(/\)' \| \
14956 . : '\(.\)' 2>/dev/null ||
14957echo X"$as_dir" |
14958 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14959 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14960 /^X\(\/\/\)$/{ s//\1/; q; }
14961 /^X\(\/\).*/{ s//\1/; q; }
14962 s/.*/./; q'`
14963 done
14964 test ! -n "$as_dirs" || mkdir $as_dirs
14965 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14966echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14967 { (exit 1); exit 1; }; }; }
14968
14969 rm -f $ac_file
14970 mv $tmp/config.h $ac_file
252b5132 14971 fi
42ecbf5e
DJ
14972 else
14973 cat $tmp/config.h
14974 rm -f $tmp/config.h
e5a52504 14975 fi
42ecbf5e
DJ
14976# Compute $ac_file's index in $config_headers.
14977_am_stamp_count=1
14978for _am_header in $config_headers :; do
14979 case $_am_header in
14980 $ac_file | $ac_file:* )
14981 break ;;
14982 * )
14983 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14984 esac
14985done
14986echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
14987$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14988 X$ac_file : 'X\(//\)[^/]' \| \
14989 X$ac_file : 'X\(//\)$' \| \
14990 X$ac_file : 'X\(/\)' \| \
14991 . : '\(.\)' 2>/dev/null ||
14992echo X$ac_file |
14993 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14994 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14995 /^X\(\/\/\)$/{ s//\1/; q; }
14996 /^X\(\/\).*/{ s//\1/; q; }
14997 s/.*/./; q'`/stamp-h$_am_stamp_count
14998done
14999_ACEOF
15000cat >>$CONFIG_STATUS <<\_ACEOF
e5a52504 15001
42ecbf5e
DJ
15002#
15003# CONFIG_COMMANDS section.
15004#
15005for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
15006 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
15007 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
15008 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
15009$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15010 X"$ac_dest" : 'X\(//\)[^/]' \| \
15011 X"$ac_dest" : 'X\(//\)$' \| \
15012 X"$ac_dest" : 'X\(/\)' \| \
15013 . : '\(.\)' 2>/dev/null ||
15014echo X"$ac_dest" |
15015 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15016 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15017 /^X\(\/\/\)$/{ s//\1/; q; }
15018 /^X\(\/\).*/{ s//\1/; q; }
15019 s/.*/./; q'`
15020 { if $as_mkdir_p; then
15021 mkdir -p "$ac_dir"
15022 else
15023 as_dir="$ac_dir"
15024 as_dirs=
15025 while test ! -d "$as_dir"; do
15026 as_dirs="$as_dir $as_dirs"
15027 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15028$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15029 X"$as_dir" : 'X\(//\)[^/]' \| \
15030 X"$as_dir" : 'X\(//\)$' \| \
15031 X"$as_dir" : 'X\(/\)' \| \
15032 . : '\(.\)' 2>/dev/null ||
15033echo X"$as_dir" |
15034 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15035 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15036 /^X\(\/\/\)$/{ s//\1/; q; }
15037 /^X\(\/\).*/{ s//\1/; q; }
15038 s/.*/./; q'`
15039 done
15040 test ! -n "$as_dirs" || mkdir $as_dirs
15041 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15042echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15043 { (exit 1); exit 1; }; }; }
e5a52504 15044
42ecbf5e 15045 ac_builddir=.
e5a52504 15046
42ecbf5e
DJ
15047if test "$ac_dir" != .; then
15048 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15049 # A "../" for each directory in $ac_dir_suffix.
15050 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15051else
15052 ac_dir_suffix= ac_top_builddir=
15053fi
15054
15055case $srcdir in
15056 .) # No --srcdir option. We are building in place.
15057 ac_srcdir=.
15058 if test -z "$ac_top_builddir"; then
15059 ac_top_srcdir=.
15060 else
15061 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15062 fi ;;
15063 [\\/]* | ?:[\\/]* ) # Absolute path.
15064 ac_srcdir=$srcdir$ac_dir_suffix;
15065 ac_top_srcdir=$srcdir ;;
15066 *) # Relative path.
15067 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15068 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15069esac
15070
15071# Do not use `cd foo && pwd` to compute absolute paths, because
15072# the directories may not exist.
15073case `pwd` in
15074.) ac_abs_builddir="$ac_dir";;
15075*)
15076 case "$ac_dir" in
15077 .) ac_abs_builddir=`pwd`;;
15078 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15079 *) ac_abs_builddir=`pwd`/"$ac_dir";;
15080 esac;;
15081esac
15082case $ac_abs_builddir in
15083.) ac_abs_top_builddir=${ac_top_builddir}.;;
15084*)
15085 case ${ac_top_builddir}. in
15086 .) ac_abs_top_builddir=$ac_abs_builddir;;
15087 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15088 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15089 esac;;
15090esac
15091case $ac_abs_builddir in
15092.) ac_abs_srcdir=$ac_srcdir;;
15093*)
15094 case $ac_srcdir in
15095 .) ac_abs_srcdir=$ac_abs_builddir;;
15096 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15097 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15098 esac;;
15099esac
15100case $ac_abs_builddir in
15101.) ac_abs_top_srcdir=$ac_top_srcdir;;
15102*)
15103 case $ac_top_srcdir in
15104 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15105 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15106 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15107 esac;;
15108esac
15109
15110
15111 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
15112echo "$as_me: executing $ac_dest commands" >&6;}
15113 case $ac_dest in
15114 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
15115 # Strip MF so we end up with the name of the file.
15116 mf=`echo "$mf" | sed -e 's/:.*$//'`
15117 # Check whether this is an Automake generated Makefile or not.
15118 # We used to match only the files named `Makefile.in', but
15119 # some people rename them; so instead we look at the file content.
15120 # Grep'ing the first line is not enough: some people post-process
15121 # each Makefile.in and add a new line on top of each file to say so.
15122 # So let's grep whole file.
15123 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
15124 dirpart=`(dirname "$mf") 2>/dev/null ||
15125$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15126 X"$mf" : 'X\(//\)[^/]' \| \
15127 X"$mf" : 'X\(//\)$' \| \
15128 X"$mf" : 'X\(/\)' \| \
15129 . : '\(.\)' 2>/dev/null ||
15130echo X"$mf" |
15131 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15132 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15133 /^X\(\/\/\)$/{ s//\1/; q; }
15134 /^X\(\/\).*/{ s//\1/; q; }
15135 s/.*/./; q'`
15136 else
15137 continue
15138 fi
15139 # Extract the definition of DEPDIR, am__include, and am__quote
15140 # from the Makefile without running `make'.
15141 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15142 test -z "$DEPDIR" && continue
15143 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15144 test -z "am__include" && continue
15145 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15146 # When using ansi2knr, U may be empty or an underscore; expand it
15147 U=`sed -n 's/^U = //p' < "$mf"`
15148 # Find all dependency output files, they are included files with
15149 # $(DEPDIR) in their names. We invoke sed twice because it is the
15150 # simplest approach to changing $(DEPDIR) to its actual value in the
15151 # expansion.
15152 for file in `sed -n "
15153 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15154 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15155 # Make sure the directory exists.
15156 test -f "$dirpart/$file" && continue
15157 fdir=`(dirname "$file") 2>/dev/null ||
15158$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15159 X"$file" : 'X\(//\)[^/]' \| \
15160 X"$file" : 'X\(//\)$' \| \
15161 X"$file" : 'X\(/\)' \| \
15162 . : '\(.\)' 2>/dev/null ||
15163echo X"$file" |
15164 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15165 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15166 /^X\(\/\/\)$/{ s//\1/; q; }
15167 /^X\(\/\).*/{ s//\1/; q; }
15168 s/.*/./; q'`
15169 { if $as_mkdir_p; then
15170 mkdir -p $dirpart/$fdir
15171 else
15172 as_dir=$dirpart/$fdir
15173 as_dirs=
15174 while test ! -d "$as_dir"; do
15175 as_dirs="$as_dir $as_dirs"
15176 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15177$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15178 X"$as_dir" : 'X\(//\)[^/]' \| \
15179 X"$as_dir" : 'X\(//\)$' \| \
15180 X"$as_dir" : 'X\(/\)' \| \
15181 . : '\(.\)' 2>/dev/null ||
15182echo X"$as_dir" |
15183 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15184 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15185 /^X\(\/\/\)$/{ s//\1/; q; }
15186 /^X\(\/\).*/{ s//\1/; q; }
15187 s/.*/./; q'`
15188 done
15189 test ! -n "$as_dirs" || mkdir $as_dirs
15190 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
15191echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
15192 { (exit 1); exit 1; }; }; }
15193
15194 # echo "creating $dirpart/$file"
15195 echo '# dummy' > "$dirpart/$file"
15196 done
15197done
d7040cdb
SE
15198 ;;
15199 libtool )
15200
15201 # See if we are running on zsh, and set the options which allow our
15202 # commands through without removal of \ escapes.
15203 if test -n "${ZSH_VERSION+set}" ; then
15204 setopt NO_GLOB_SUBST
15205 fi
15206
15207 cfgfile="${ofile}T"
15208 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15209 $RM "$cfgfile"
15210
15211 cat <<_LT_EOF >> "$cfgfile"
15212#! $SHELL
15213
15214# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15215# Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
15216# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15217# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15218#
15219# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15220# 2006, 2007 Free Software Foundation, Inc.
15221#
15222# This file is part of GNU Libtool:
15223# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
15224#
15225# This program is free software; you can redistribute it and/or modify
15226# it under the terms of the GNU General Public License as published by
67310ccd 15227# the Free Software Foundation; either version 2 of the License, or
d7040cdb
SE
15228# (at your option) any later version.
15229#
15230# This program is distributed in the hope that it will be useful, but
15231# WITHOUT ANY WARRANTY; without even the implied warranty of
15232# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15233# General Public License for more details.
15234#
15235# You should have received a copy of the GNU General Public License
15236# along with this program; if not, a copy can be downloaded from
15237# http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
15238# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
15239# MA 02110-1301, USA.
15240#
15241# As a special exception to the GNU General Public License, if you
15242# distribute this file as part of a program that contains a
15243# configuration script generated by Autoconf, you may include it under
15244# the same distribution terms that you use for the rest of that program.
15245
15246
15247# The names of the tagged configurations supported by this script.
15248available_tags=""
15249
15250# ### BEGIN LIBTOOL CONFIG
15251
15252# Which release of libtool.m4 was used?
15253macro_version=$macro_version
15254macro_revision=$macro_revision
15255
15256# Whether or not to build shared libraries.
15257build_libtool_libs=$enable_shared
15258
15259# Whether or not to build static libraries.
15260build_old_libs=$enable_static
15261
15262# What type of objects to build.
15263pic_mode=$pic_mode
15264
15265# Whether or not to optimize for fast installation.
15266fast_install=$enable_fast_install
15267
15268# The host system.
15269host_alias=$host_alias
15270host=$host
15271host_os=$host_os
15272
15273# The build system.
15274build_alias=$build_alias
15275build=$build
15276build_os=$build_os
15277
15278# A sed program that does not truncate output.
15279SED=$lt_SED
15280
15281# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15282Xsed="\$SED -e 1s/^X//"
15283
15284# A grep program that handles long lines.
15285GREP=$lt_GREP
15286
15287# An ERE matcher.
15288EGREP=$lt_EGREP
15289
15290# A literal string matcher.
15291FGREP=$lt_FGREP
15292
15293# A BSD- or MS-compatible name lister.
15294NM=$lt_NM
15295
15296# Whether we need soft or hard links.
15297LN_S=$lt_LN_S
15298
15299# What is the maximum length of a command?
15300max_cmd_len=$max_cmd_len
15301
15302# Object file suffix (normally "o").
15303objext=$ac_objext
15304
15305# Executable file suffix (normally "").
15306exeext=$exeext
15307
15308# whether the shell understands "unset".
15309lt_unset=$lt_unset
15310
15311# turn spaces into newlines.
15312SP2NL=$lt_lt_SP2NL
15313
15314# turn newlines into spaces.
15315NL2SP=$lt_lt_NL2SP
15316
15317# How to create reloadable object files.
15318reload_flag=$lt_reload_flag
15319reload_cmds=$lt_reload_cmds
15320
15321# Method to check whether dependent libraries are shared objects.
15322deplibs_check_method=$lt_deplibs_check_method
15323
15324# Command to use when deplibs_check_method == "file_magic".
15325file_magic_cmd=$lt_file_magic_cmd
15326
15327# The archiver.
15328AR=$lt_AR
15329AR_FLAGS=$lt_AR_FLAGS
15330
15331# A symbol stripping program.
15332STRIP=$lt_STRIP
15333
15334# Commands used to install an old-style archive.
15335RANLIB=$lt_RANLIB
15336old_postinstall_cmds=$lt_old_postinstall_cmds
15337old_postuninstall_cmds=$lt_old_postuninstall_cmds
15338
15339# A C compiler.
15340LTCC=$lt_CC
15341
15342# LTCC compiler flags.
15343LTCFLAGS=$lt_CFLAGS
15344
15345# Take the output of nm and produce a listing of raw symbols and C names.
15346global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15347
15348# Transform the output of nm in a proper C declaration.
15349global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15350
15351# Transform the output of nm in a C name address pair.
15352global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15353
15354# The name of the directory that contains temporary libtool files.
15355objdir=$objdir
15356
15357# Shell to use when invoking shell scripts.
15358SHELL=$lt_SHELL
15359
15360# An echo program that does not interpret backslashes.
15361ECHO=$lt_ECHO
15362
15363# Used to examine libraries when file_magic_cmd begins with "file".
15364MAGIC_CMD=$MAGIC_CMD
15365
15366# Must we lock files when doing compilation?
15367need_locks=$lt_need_locks
15368
15369# Old archive suffix (normally "a").
15370libext=$libext
15371
15372# Shared library suffix (normally ".so").
15373shrext_cmds=$lt_shrext_cmds
15374
15375# The commands to extract the exported symbol list from a shared archive.
15376extract_expsyms_cmds=$lt_extract_expsyms_cmds
15377
15378# Variables whose values should be saved in libtool wrapper scripts and
15379# restored at link time.
15380variables_saved_for_relink=$lt_variables_saved_for_relink
15381
15382# Do we need the "lib" prefix for modules?
15383need_lib_prefix=$need_lib_prefix
15384
15385# Do we need a version for libraries?
15386need_version=$need_version
15387
15388# Library versioning type.
15389version_type=$version_type
15390
15391# Shared library runtime path variable.
15392runpath_var=$runpath_var
15393
15394# Shared library path variable.
15395shlibpath_var=$shlibpath_var
15396
15397# Is shlibpath searched before the hard-coded library search path?
15398shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15399
15400# Format of library name prefix.
15401libname_spec=$lt_libname_spec
15402
15403# List of archive names. First name is the real one, the rest are links.
15404# The last name is the one that the linker finds with -lNAME
15405library_names_spec=$lt_library_names_spec
15406
15407# The coded name of the library, if different from the real name.
15408soname_spec=$lt_soname_spec
15409
15410# Command to use after installation of a shared archive.
15411postinstall_cmds=$lt_postinstall_cmds
15412
15413# Command to use after uninstallation of a shared archive.
15414postuninstall_cmds=$lt_postuninstall_cmds
15415
15416# Commands used to finish a libtool library installation in a directory.
15417finish_cmds=$lt_finish_cmds
15418
15419# As "finish_cmds", except a single script fragment to be evaled but
15420# not shown.
15421finish_eval=$lt_finish_eval
15422
15423# Whether we should hardcode library paths into libraries.
15424hardcode_into_libs=$hardcode_into_libs
15425
15426# Compile-time system search path for libraries.
15427sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15428
15429# Run-time system search path for libraries.
15430sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15431
15432# Whether dlopen is supported.
15433dlopen_support=$enable_dlopen
15434
15435# Whether dlopen of programs is supported.
15436dlopen_self=$enable_dlopen_self
15437
15438# Whether dlopen of statically linked programs is supported.
15439dlopen_self_static=$enable_dlopen_self_static
15440
15441# Commands to strip libraries.
15442old_striplib=$lt_old_striplib
15443striplib=$lt_striplib
15444
15445
15446# The linker used to build libraries.
15447LD=$lt_LD
15448
15449# Commands used to build an old-style archive.
15450old_archive_cmds=$lt_old_archive_cmds
15451
15452# A language specific compiler.
15453CC=$lt_compiler
15454
15455# Is the compiler the GNU compiler?
15456with_gcc=$GCC
15457
15458# Compiler flag to turn off builtin functions.
15459no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15460
15461# How to pass a linker flag through the compiler.
15462wl=$lt_lt_prog_compiler_wl
15463
15464# Additional compiler flags for building library objects.
15465pic_flag=$lt_lt_prog_compiler_pic
15466
15467# Compiler flag to prevent dynamic linking.
15468link_static_flag=$lt_lt_prog_compiler_static
15469
15470# Does compiler simultaneously support -c and -o options?
15471compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15472
15473# Whether or not to add -lc for building shared libraries.
15474build_libtool_need_lc=$archive_cmds_need_lc
15475
15476# Whether or not to disallow shared libs when runtime libs are static.
15477allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15478
15479# Compiler flag to allow reflexive dlopens.
15480export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15481
15482# Compiler flag to generate shared objects directly from archives.
15483whole_archive_flag_spec=$lt_whole_archive_flag_spec
15484
15485# Whether the compiler copes with passing no objects directly.
15486compiler_needs_object=$lt_compiler_needs_object
15487
15488# Create an old-style archive from a shared archive.
15489old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15490
15491# Create a temporary old-style archive to link instead of a shared archive.
15492old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15493
15494# Commands used to build a shared archive.
15495archive_cmds=$lt_archive_cmds
15496archive_expsym_cmds=$lt_archive_expsym_cmds
15497
15498# Commands used to build a loadable module if different from building
15499# a shared archive.
15500module_cmds=$lt_module_cmds
15501module_expsym_cmds=$lt_module_expsym_cmds
15502
15503# Whether we are building with GNU ld or not.
15504with_gnu_ld=$lt_with_gnu_ld
15505
15506# Flag that allows shared libraries with undefined symbols to be built.
15507allow_undefined_flag=$lt_allow_undefined_flag
15508
15509# Flag that enforces no undefined symbols.
15510no_undefined_flag=$lt_no_undefined_flag
15511
15512# Flag to hardcode \$libdir into a binary during linking.
15513# This must work even if \$libdir does not exist
15514hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15515
15516# If ld is used when linking, flag to hardcode \$libdir into a binary
15517# during linking. This must work even if \$libdir does not exist.
15518hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15519
15520# Whether we need a single "-rpath" flag with a separated argument.
15521hardcode_libdir_separator=$lt_hardcode_libdir_separator
15522
15523# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15524# DIR into the resulting binary.
15525hardcode_direct=$hardcode_direct
15526
15527# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15528# DIR into the resulting binary and the resulting library dependency is
15529# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15530# library is relocated.
15531hardcode_direct_absolute=$hardcode_direct_absolute
15532
15533# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15534# into the resulting binary.
15535hardcode_minus_L=$hardcode_minus_L
15536
15537# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15538# into the resulting binary.
15539hardcode_shlibpath_var=$hardcode_shlibpath_var
15540
15541# Set to "yes" if building a shared library automatically hardcodes DIR
15542# into the library and all subsequent libraries and executables linked
15543# against it.
15544hardcode_automatic=$hardcode_automatic
15545
15546# Set to yes if linker adds runtime paths of dependent libraries
15547# to runtime path list.
15548inherit_rpath=$inherit_rpath
15549
15550# Whether libtool must link a program against all its dependency libraries.
15551link_all_deplibs=$link_all_deplibs
15552
15553# Fix the shell variable \$srcfile for the compiler.
15554fix_srcfile_path=$lt_fix_srcfile_path
15555
15556# Set to "yes" if exported symbols are required.
15557always_export_symbols=$always_export_symbols
15558
15559# The commands to list exported symbols.
15560export_symbols_cmds=$lt_export_symbols_cmds
15561
15562# Symbols that should not be listed in the preloaded symbols.
15563exclude_expsyms=$lt_exclude_expsyms
15564
15565# Symbols that must always be exported.
15566include_expsyms=$lt_include_expsyms
15567
15568# Commands necessary for linking programs (against libraries) with templates.
15569prelink_cmds=$lt_prelink_cmds
15570
15571# Specify filename containing input files.
15572file_list_spec=$lt_file_list_spec
15573
15574# How to hardcode a shared library path into an executable.
15575hardcode_action=$hardcode_action
15576
15577# ### END LIBTOOL CONFIG
15578
15579_LT_EOF
15580
15581 case $host_os in
15582 aix3*)
15583 cat <<\_LT_EOF >> "$cfgfile"
15584# AIX sometimes has problems with the GCC collect2 program. For some
15585# reason, if we set the COLLECT_NAMES environment variable, the problems
15586# vanish in a puff of smoke.
15587if test "X${COLLECT_NAMES+set}" != Xset; then
15588 COLLECT_NAMES=
15589 export COLLECT_NAMES
15590fi
15591_LT_EOF
15592 ;;
15593 esac
15594
15595
15596ltmain="$ac_aux_dir/ltmain.sh"
15597
15598
15599 # We use sed instead of cat because bash on DJGPP gets confused if
15600 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15601 # text mode, it properly converts lines to CR/LF. This bash problem
15602 # is reportedly fixed, but why not run on old versions too?
15603 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15604 || (rm -f "$cfgfile"; exit 1)
15605
15606 case $xsi_shell in
15607 yes)
15608 cat << \_LT_EOF >> "$cfgfile"
15609# func_dirname file append nondir_replacement
15610# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15611# otherwise set result to NONDIR_REPLACEMENT.
15612func_dirname ()
15613{
15614 case ${1} in
15615 */*) func_dirname_result="${1%/*}${2}" ;;
15616 * ) func_dirname_result="${3}" ;;
15617 esac
15618}
15619
15620# func_basename file
15621func_basename ()
15622{
15623 func_basename_result="${1##*/}"
15624}
15625
15626# func_stripname prefix suffix name
15627# strip PREFIX and SUFFIX off of NAME.
15628# PREFIX and SUFFIX must not contain globbing or regex special
15629# characters, hashes, percent signs, but SUFFIX may contain a leading
15630# dot (in which case that matches only a dot).
15631func_stripname ()
15632{
15633 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15634 # positional parameters, so assign one to ordinary parameter first.
15635 func_stripname_result=${3}
15636 func_stripname_result=${func_stripname_result#"${1}"}
15637 func_stripname_result=${func_stripname_result%"${2}"}
15638}
15639
15640# func_opt_split
15641func_opt_split ()
15642{
15643 func_opt_split_opt=${1%%=*}
15644 func_opt_split_arg=${1#*=}
15645}
15646
15647# func_lo2o object
15648func_lo2o ()
15649{
15650 case ${1} in
15651 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15652 *) func_lo2o_result=${1} ;;
15653 esac
15654}
15655_LT_EOF
15656 ;;
15657 *) # Bourne compatible functions.
15658 cat << \_LT_EOF >> "$cfgfile"
15659# func_dirname file append nondir_replacement
15660# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15661# otherwise set result to NONDIR_REPLACEMENT.
15662func_dirname ()
15663{
15664 # Extract subdirectory from the argument.
15665 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15666 if test "X$func_dirname_result" = "X${1}"; then
15667 func_dirname_result="${3}"
15668 else
15669 func_dirname_result="$func_dirname_result${2}"
15670 fi
15671}
15672
15673# func_basename file
15674func_basename ()
15675{
15676 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15677}
15678
15679# func_stripname prefix suffix name
15680# strip PREFIX and SUFFIX off of NAME.
15681# PREFIX and SUFFIX must not contain globbing or regex special
15682# characters, hashes, percent signs, but SUFFIX may contain a leading
15683# dot (in which case that matches only a dot).
15684# func_strip_suffix prefix name
15685func_stripname ()
15686{
15687 case ${2} in
15688 .*) func_stripname_result=`$ECHO "X${3}" \
15689 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15690 *) func_stripname_result=`$ECHO "X${3}" \
15691 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15692 esac
15693}
15694
15695# sed scripts:
15696my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15697my_sed_long_arg='1s/^-[^=]*=//'
15698
15699# func_opt_split
15700func_opt_split ()
15701{
15702 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15703 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15704}
15705
15706# func_lo2o object
15707func_lo2o ()
15708{
15709 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15710}
15711_LT_EOF
15712esac
15713
15714case $lt_shell_append in
15715 yes)
15716 cat << \_LT_EOF >> "$cfgfile"
15717
15718# func_append var value
15719# Append VALUE to the end of shell variable VAR.
15720func_append ()
15721{
15722 eval "$1+=\$2"
15723}
15724_LT_EOF
15725 ;;
15726 *)
15727 cat << \_LT_EOF >> "$cfgfile"
15728
15729# func_append var value
15730# Append VALUE to the end of shell variable VAR.
15731func_append ()
15732{
15733 eval "$1=\$$1\$2"
15734}
15735_LT_EOF
15736 ;;
15737 esac
15738
15739
15740 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15741 || (rm -f "$cfgfile"; exit 1)
15742
15743 mv -f "$cfgfile" "$ofile" ||
15744 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15745 chmod +x "$ofile"
15746
42ecbf5e 15747 ;;
20e95c23
DJ
15748 default-1 )
15749 for ac_file in $CONFIG_FILES; do
15750 # Support "outfile[:infile[:infile...]]"
15751 case "$ac_file" in
15752 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15753 esac
15754 # PO directories have a Makefile.in generated from Makefile.in.in.
15755 case "$ac_file" in */Makefile.in)
15756 # Adjust a relative srcdir.
15757 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15758 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
15759 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15760 # In autoconf-2.13 it is called $ac_given_srcdir.
15761 # In autoconf-2.50 it is called $srcdir.
15762 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15763 case "$ac_given_srcdir" in
15764 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15765 /*) top_srcdir="$ac_given_srcdir" ;;
15766 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
15767 esac
15768 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15769 rm -f "$ac_dir/POTFILES"
15770 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15771 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
15772 POMAKEFILEDEPS="POTFILES.in"
15773 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
15774 # on $ac_dir but don't depend on user-specified configuration
15775 # parameters.
15776 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15777 # The LINGUAS file contains the set of available languages.
15778 if test -n "$OBSOLETE_ALL_LINGUAS"; then
15779 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15780 fi
15781 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15782 # Hide the ALL_LINGUAS assigment from automake.
15783 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15784 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15785 else
15786 # The set of available languages was given in configure.in.
15787 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15788 fi
15789 case "$ac_given_srcdir" in
15790 .) srcdirpre= ;;
15791 *) srcdirpre='$(srcdir)/' ;;
15792 esac
15793 POFILES=
15794 GMOFILES=
15795 UPDATEPOFILES=
15796 DUMMYPOFILES=
15797 for lang in $ALL_LINGUAS; do
15798 POFILES="$POFILES $srcdirpre$lang.po"
15799 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
15800 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15801 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
15802 done
15803 # CATALOGS depends on both $ac_dir and the user's LINGUAS
15804 # environment variable.
15805 INST_LINGUAS=
15806 if test -n "$ALL_LINGUAS"; then
15807 for presentlang in $ALL_LINGUAS; do
15808 useit=no
15809 if test "%UNSET%" != "$LINGUAS"; then
15810 desiredlanguages="$LINGUAS"
15811 else
15812 desiredlanguages="$ALL_LINGUAS"
15813 fi
15814 for desiredlang in $desiredlanguages; do
15815 # Use the presentlang catalog if desiredlang is
15816 # a. equal to presentlang, or
15817 # b. a variant of presentlang (because in this case,
15818 # presentlang can be used as a fallback for messages
15819 # which are not translated in the desiredlang catalog).
15820 case "$desiredlang" in
15821 "$presentlang"*) useit=yes;;
15822 esac
15823 done
15824 if test $useit = yes; then
15825 INST_LINGUAS="$INST_LINGUAS $presentlang"
15826 fi
15827 done
15828 fi
15829 CATALOGS=
15830 if test -n "$INST_LINGUAS"; then
15831 for lang in $INST_LINGUAS; do
15832 CATALOGS="$CATALOGS $lang.gmo"
15833 done
15834 fi
15835 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
15836 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"
15837 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15838 if test -f "$f"; then
15839 case "$f" in
15840 *.orig | *.bak | *~) ;;
15841 *) cat "$f" >> "$ac_dir/Makefile" ;;
15842 esac
15843 fi
15844 done
15845 fi
15846 ;;
15847 esac
15848 done ;;
42ecbf5e
DJ
15849 esac
15850done
15851_ACEOF
15852
15853cat >>$CONFIG_STATUS <<\_ACEOF
15854
15855{ (exit 0); exit 0; }
15856_ACEOF
252b5132 15857chmod +x $CONFIG_STATUS
42ecbf5e
DJ
15858ac_clean_files=$ac_clean_files_save
15859
15860
15861# configure is writing to config.log, and then calls config.status.
15862# config.status does its own redirection, appending to config.log.
15863# Unfortunately, on DOS this fails, as config.log is still kept open
15864# by configure, so config.status won't be able to write to it; its
15865# output is simply discarded. So we exec the FD to /dev/null,
15866# effectively closing config.log, so it can be properly (re)opened and
15867# appended to by config.status. When coming back to configure, we
15868# need to make the FD available again.
15869if test "$no_create" != yes; then
15870 ac_cs_success=:
15871 ac_config_status_args=
15872 test "$silent" = yes &&
15873 ac_config_status_args="$ac_config_status_args --quiet"
15874 exec 5>/dev/null
15875 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15876 exec 5>>config.log
15877 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15878 # would make configure fail if this is the last instruction.
15879 $ac_cs_success || { (exit 1); exit 1; }
15880fi
252b5132 15881
This page took 1.200267 seconds and 4 git commands to generate.