]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - ld/configure
* ia64-linux.nat (_initialize_ia64_linux_nat): Don't
[thirdparty/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
ce2cded5 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 LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO CPP 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
4474d12b 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); } &&
4474d12b 2178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42ecbf5e
DJ
2179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2180 (eval $ac_try) 2>&5
2181 ac_status=$?
2182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183 (exit $ac_status); }; } &&
2184 { ac_try='test -s conftest.$ac_objext'
2185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2186 (eval $ac_try) 2>&5
2187 ac_status=$?
2188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189 (exit $ac_status); }; }; then
2190 ac_compiler_gnu=yes
2191else
2192 echo "$as_me: failed program was:" >&5
2193sed 's/^/| /' conftest.$ac_ext >&5
2194
2195ac_compiler_gnu=no
2196fi
2197rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2198ac_cv_c_compiler_gnu=$ac_compiler_gnu
2199
2200fi
2201echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2202echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2203GCC=`test $ac_compiler_gnu = yes && echo yes`
2204ac_test_CFLAGS=${CFLAGS+set}
2205ac_save_CFLAGS=$CFLAGS
2206CFLAGS="-g"
2207echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2208echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2209if test "${ac_cv_prog_cc_g+set}" = set; then
2210 echo $ECHO_N "(cached) $ECHO_C" >&6
2211else
2212 cat >conftest.$ac_ext <<_ACEOF
2213/* confdefs.h. */
2214_ACEOF
2215cat confdefs.h >>conftest.$ac_ext
2216cat >>conftest.$ac_ext <<_ACEOF
2217/* end confdefs.h. */
2218
2219int
2220main ()
2221{
2222
2223 ;
2224 return 0;
2225}
2226_ACEOF
2227rm -f conftest.$ac_objext
2228if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2229 (eval $ac_compile) 2>conftest.er1
2230 ac_status=$?
2231 grep -v '^ *+' conftest.er1 >conftest.err
2232 rm -f conftest.er1
2233 cat conftest.err >&5
2234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235 (exit $ac_status); } &&
4474d12b 2236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42ecbf5e
DJ
2237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2238 (eval $ac_try) 2>&5
2239 ac_status=$?
2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 (exit $ac_status); }; } &&
2242 { ac_try='test -s conftest.$ac_objext'
2243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2244 (eval $ac_try) 2>&5
2245 ac_status=$?
2246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247 (exit $ac_status); }; }; then
2248 ac_cv_prog_cc_g=yes
2249else
2250 echo "$as_me: failed program was:" >&5
2251sed 's/^/| /' conftest.$ac_ext >&5
2252
2253ac_cv_prog_cc_g=no
2254fi
2255rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2256fi
2257echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2258echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2259if test "$ac_test_CFLAGS" = set; then
2260 CFLAGS=$ac_save_CFLAGS
2261elif test $ac_cv_prog_cc_g = yes; then
2262 if test "$GCC" = yes; then
2263 CFLAGS="-g -O2"
2264 else
2265 CFLAGS="-g"
2266 fi
2267else
2268 if test "$GCC" = yes; then
2269 CFLAGS="-O2"
2270 else
2271 CFLAGS=
2272 fi
2273fi
2274echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2275echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2276if test "${ac_cv_prog_cc_stdc+set}" = set; then
2277 echo $ECHO_N "(cached) $ECHO_C" >&6
2278else
2279 ac_cv_prog_cc_stdc=no
2280ac_save_CC=$CC
2281cat >conftest.$ac_ext <<_ACEOF
2282/* confdefs.h. */
2283_ACEOF
2284cat confdefs.h >>conftest.$ac_ext
2285cat >>conftest.$ac_ext <<_ACEOF
2286/* end confdefs.h. */
2287#include <stdarg.h>
2288#include <stdio.h>
2289#include <sys/types.h>
2290#include <sys/stat.h>
2291/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2292struct buf { int x; };
2293FILE * (*rcsopen) (struct buf *, struct stat *, int);
2294static char *e (p, i)
2295 char **p;
2296 int i;
2297{
2298 return p[i];
2299}
2300static char *f (char * (*g) (char **, int), char **p, ...)
2301{
2302 char *s;
2303 va_list v;
2304 va_start (v,p);
2305 s = g (p, va_arg (v,int));
2306 va_end (v);
2307 return s;
2308}
2309
2310/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2311 function prototypes and stuff, but not '\xHH' hex character constants.
2312 These don't provoke an error unfortunately, instead are silently treated
2313 as 'x'. The following induces an error, until -std1 is added to get
2314 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2315 array size at least. It's necessary to write '\x00'==0 to get something
2316 that's true only with -std1. */
2317int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2318
2319int test (int i, double x);
2320struct s1 {int (*f) (int a);};
2321struct s2 {int (*f) (double a);};
2322int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2323int argc;
2324char **argv;
2325int
2326main ()
2327{
2328return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2329 ;
2330 return 0;
2331}
2332_ACEOF
2333# Don't try gcc -ansi; that turns off useful extensions and
2334# breaks some systems' header files.
2335# AIX -qlanglvl=ansi
2336# Ultrix and OSF/1 -std1
2337# HP-UX 10.20 and later -Ae
2338# HP-UX older versions -Aa -D_HPUX_SOURCE
2339# SVR4 -Xc -D__EXTENSIONS__
2340for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2341do
2342 CC="$ac_save_CC $ac_arg"
2343 rm -f conftest.$ac_objext
2344if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2345 (eval $ac_compile) 2>conftest.er1
2346 ac_status=$?
2347 grep -v '^ *+' conftest.er1 >conftest.err
2348 rm -f conftest.er1
2349 cat conftest.err >&5
2350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351 (exit $ac_status); } &&
4474d12b 2352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42ecbf5e
DJ
2353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2354 (eval $ac_try) 2>&5
2355 ac_status=$?
2356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357 (exit $ac_status); }; } &&
2358 { ac_try='test -s conftest.$ac_objext'
2359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2360 (eval $ac_try) 2>&5
2361 ac_status=$?
2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363 (exit $ac_status); }; }; then
2364 ac_cv_prog_cc_stdc=$ac_arg
2365break
2366else
2367 echo "$as_me: failed program was:" >&5
2368sed 's/^/| /' conftest.$ac_ext >&5
2369
2370fi
2371rm -f conftest.err conftest.$ac_objext
2372done
2373rm -f conftest.$ac_ext conftest.$ac_objext
2374CC=$ac_save_CC
2375
2376fi
2377
2378case "x$ac_cv_prog_cc_stdc" in
2379 x|xno)
2380 echo "$as_me:$LINENO: result: none needed" >&5
2381echo "${ECHO_T}none needed" >&6 ;;
2382 *)
2383 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2384echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2385 CC="$CC $ac_cv_prog_cc_stdc" ;;
2386esac
2387
2388# Some people use a C++ compiler to compile C. Since we use `exit',
2389# in C++ we need to declare it. In case someone uses the same compiler
2390# for both compiling C and C++ we need to have the C++ compiler decide
2391# the declaration of exit, since it's the most demanding environment.
2392cat >conftest.$ac_ext <<_ACEOF
2393#ifndef __cplusplus
2394 choke me
2395#endif
2396_ACEOF
2397rm -f conftest.$ac_objext
2398if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2399 (eval $ac_compile) 2>conftest.er1
2400 ac_status=$?
2401 grep -v '^ *+' conftest.er1 >conftest.err
2402 rm -f conftest.er1
2403 cat conftest.err >&5
2404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405 (exit $ac_status); } &&
4474d12b 2406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42ecbf5e
DJ
2407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2408 (eval $ac_try) 2>&5
2409 ac_status=$?
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); }; } &&
2412 { ac_try='test -s conftest.$ac_objext'
2413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2414 (eval $ac_try) 2>&5
2415 ac_status=$?
2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 (exit $ac_status); }; }; then
2418 for ac_declaration in \
2419 '' \
2420 'extern "C" void std::exit (int) throw (); using std::exit;' \
2421 'extern "C" void std::exit (int); using std::exit;' \
2422 'extern "C" void exit (int) throw ();' \
2423 'extern "C" void exit (int);' \
2424 'void exit (int);'
2425do
2426 cat >conftest.$ac_ext <<_ACEOF
2427/* confdefs.h. */
2428_ACEOF
2429cat confdefs.h >>conftest.$ac_ext
2430cat >>conftest.$ac_ext <<_ACEOF
2431/* end confdefs.h. */
2432$ac_declaration
2433#include <stdlib.h>
2434int
2435main ()
2436{
2437exit (42);
2438 ;
2439 return 0;
2440}
2441_ACEOF
2442rm -f conftest.$ac_objext
2443if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2444 (eval $ac_compile) 2>conftest.er1
2445 ac_status=$?
2446 grep -v '^ *+' conftest.er1 >conftest.err
2447 rm -f conftest.er1
2448 cat conftest.err >&5
2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450 (exit $ac_status); } &&
4474d12b 2451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42ecbf5e
DJ
2452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2453 (eval $ac_try) 2>&5
2454 ac_status=$?
2455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456 (exit $ac_status); }; } &&
2457 { ac_try='test -s conftest.$ac_objext'
2458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2459 (eval $ac_try) 2>&5
2460 ac_status=$?
2461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462 (exit $ac_status); }; }; then
2463 :
2464else
2465 echo "$as_me: failed program was:" >&5
2466sed 's/^/| /' conftest.$ac_ext >&5
2467
2468continue
2469fi
2470rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2471 cat >conftest.$ac_ext <<_ACEOF
2472/* confdefs.h. */
2473_ACEOF
2474cat confdefs.h >>conftest.$ac_ext
2475cat >>conftest.$ac_ext <<_ACEOF
2476/* end confdefs.h. */
2477$ac_declaration
2478int
2479main ()
2480{
2481exit (42);
2482 ;
2483 return 0;
2484}
2485_ACEOF
2486rm -f conftest.$ac_objext
2487if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2488 (eval $ac_compile) 2>conftest.er1
2489 ac_status=$?
2490 grep -v '^ *+' conftest.er1 >conftest.err
2491 rm -f conftest.er1
2492 cat conftest.err >&5
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); } &&
4474d12b 2495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42ecbf5e
DJ
2496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2497 (eval $ac_try) 2>&5
2498 ac_status=$?
2499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500 (exit $ac_status); }; } &&
2501 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2507 break
2508else
2509 echo "$as_me: failed program was:" >&5
2510sed 's/^/| /' conftest.$ac_ext >&5
2511
2512fi
2513rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2514done
2515rm -f conftest*
2516if test -n "$ac_declaration"; then
2517 echo '#ifdef __cplusplus' >>confdefs.h
2518 echo $ac_declaration >>confdefs.h
2519 echo '#endif' >>confdefs.h
2520fi
2521
2522else
2523 echo "$as_me: failed program was:" >&5
2524sed 's/^/| /' conftest.$ac_ext >&5
2525
2526fi
2527rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2528ac_ext=c
2529ac_cpp='$CPP $CPPFLAGS'
2530ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2531ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2532ac_compiler_gnu=$ac_cv_c_compiler_gnu
2533
2534
2535echo "$as_me:$LINENO: checking for library containing strerror" >&5
2536echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2537if test "${ac_cv_search_strerror+set}" = set; then
2538 echo $ECHO_N "(cached) $ECHO_C" >&6
2539else
2540 ac_func_search_save_LIBS=$LIBS
2541ac_cv_search_strerror=no
2542cat >conftest.$ac_ext <<_ACEOF
2543/* confdefs.h. */
2544_ACEOF
2545cat confdefs.h >>conftest.$ac_ext
2546cat >>conftest.$ac_ext <<_ACEOF
2547/* end confdefs.h. */
2548
2549/* Override any gcc2 internal prototype to avoid an error. */
2550#ifdef __cplusplus
2551extern "C"
2552#endif
2553/* We use char because int might match the return type of a gcc2
2554 builtin and then its argument prototype would still apply. */
2555char strerror ();
2556int
2557main ()
2558{
2559strerror ();
2560 ;
2561 return 0;
2562}
2563_ACEOF
2564rm -f conftest.$ac_objext conftest$ac_exeext
2565if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2566 (eval $ac_link) 2>conftest.er1
2567 ac_status=$?
2568 grep -v '^ *+' conftest.er1 >conftest.err
2569 rm -f conftest.er1
2570 cat conftest.err >&5
2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572 (exit $ac_status); } &&
4474d12b 2573 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42ecbf5e
DJ
2574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2575 (eval $ac_try) 2>&5
2576 ac_status=$?
2577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578 (exit $ac_status); }; } &&
2579 { ac_try='test -s conftest$ac_exeext'
2580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2581 (eval $ac_try) 2>&5
2582 ac_status=$?
2583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584 (exit $ac_status); }; }; then
2585 ac_cv_search_strerror="none required"
2586else
2587 echo "$as_me: failed program was:" >&5
2588sed 's/^/| /' conftest.$ac_ext >&5
2589
2590fi
2591rm -f conftest.err conftest.$ac_objext \
2592 conftest$ac_exeext conftest.$ac_ext
2593if test "$ac_cv_search_strerror" = no; then
2594 for ac_lib in cposix; do
2595 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2596 cat >conftest.$ac_ext <<_ACEOF
2597/* confdefs.h. */
2598_ACEOF
2599cat confdefs.h >>conftest.$ac_ext
2600cat >>conftest.$ac_ext <<_ACEOF
2601/* end confdefs.h. */
2602
2603/* Override any gcc2 internal prototype to avoid an error. */
2604#ifdef __cplusplus
2605extern "C"
2606#endif
2607/* We use char because int might match the return type of a gcc2
2608 builtin and then its argument prototype would still apply. */
2609char strerror ();
2610int
2611main ()
2612{
2613strerror ();
2614 ;
2615 return 0;
2616}
2617_ACEOF
2618rm -f conftest.$ac_objext conftest$ac_exeext
2619if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2620 (eval $ac_link) 2>conftest.er1
2621 ac_status=$?
2622 grep -v '^ *+' conftest.er1 >conftest.err
2623 rm -f conftest.er1
2624 cat conftest.err >&5
2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); } &&
4474d12b 2627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42ecbf5e
DJ
2628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2629 (eval $ac_try) 2>&5
2630 ac_status=$?
2631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632 (exit $ac_status); }; } &&
2633 { ac_try='test -s conftest$ac_exeext'
2634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2635 (eval $ac_try) 2>&5
2636 ac_status=$?
2637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638 (exit $ac_status); }; }; then
2639 ac_cv_search_strerror="-l$ac_lib"
2640break
2641else
2642 echo "$as_me: failed program was:" >&5
2643sed 's/^/| /' conftest.$ac_ext >&5
2644
2645fi
2646rm -f conftest.err conftest.$ac_objext \
2647 conftest$ac_exeext conftest.$ac_ext
2648 done
2649fi
2650LIBS=$ac_func_search_save_LIBS
2651fi
2652echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2653echo "${ECHO_T}$ac_cv_search_strerror" >&6
2654if test "$ac_cv_search_strerror" != no; then
2655 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2656
2657fi
e5a52504
MM
2658
2659
2660BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
42ecbf5e 2661am__api_version="1.9"
e5a52504
MM
2662# Find a good install program. We prefer a C program (faster),
2663# so one script is as good as another. But avoid the broken or
2664# incompatible versions:
2665# SysV /etc/install, /usr/sbin/install
2666# SunOS /usr/etc/install
2667# IRIX /sbin/install
2668# AIX /bin/install
42ecbf5e 2669# AmigaOS /C/install, which installs bootblocks on floppy discs
e5a52504
MM
2670# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2671# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2672# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
42ecbf5e 2673# OS/2's system install, which has a completely different semantic
e5a52504 2674# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 2675# Reject install programs that cannot install multiple files.
42ecbf5e
DJ
2676echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2677echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
e5a52504 2678if test -z "$INSTALL"; then
42ecbf5e
DJ
2679if test "${ac_cv_path_install+set}" = set; then
2680 echo $ECHO_N "(cached) $ECHO_C" >&6
e5a52504 2681else
42ecbf5e
DJ
2682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2683for as_dir in $PATH
2684do
2685 IFS=$as_save_IFS
2686 test -z "$as_dir" && as_dir=.
2687 # Account for people who put trailing slashes in PATH elements.
2688case $as_dir/ in
2689 ./ | .// | /cC/* | \
2690 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2691 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2692 /usr/ucb/* ) ;;
2693 *)
2694 # OSF1 and SCO ODT 3.0 have their own names for install.
2695 # Don't use installbsd from OSF since it installs stuff as root
2696 # by default.
2697 for ac_prog in ginstall scoinst install; do
2698 for ac_exec_ext in '' $ac_executable_extensions; do
2699 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
252b5132 2700 if test $ac_prog = install &&
42ecbf5e 2701 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
2702 # AIX install. It has an incompatible calling convention.
2703 :
42ecbf5e
DJ
2704 elif test $ac_prog = install &&
2705 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2706 # program-specific install script used by HP pwplus--don't use.
2707 :
252b5132 2708 else
58c85be7
RW
2709 rm -rf conftest.one conftest.two conftest.dir
2710 echo one > conftest.one
2711 echo two > conftest.two
2712 mkdir conftest.dir
2713 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2714 test -s conftest.one && test -s conftest.two &&
2715 test -s conftest.dir/conftest.one &&
2716 test -s conftest.dir/conftest.two
2717 then
2718 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2719 break 3
2720 fi
252b5132
RH
2721 fi
2722 fi
2723 done
42ecbf5e
DJ
2724 done
2725 ;;
2726esac
2727done
2728
58c85be7 2729rm -rf conftest.one conftest.two conftest.dir
252b5132
RH
2730
2731fi
2732 if test "${ac_cv_path_install+set}" = set; then
42ecbf5e 2733 INSTALL=$ac_cv_path_install
252b5132 2734 else
58c85be7
RW
2735 # As a last resort, use the slow shell script. Don't cache a
2736 # value for INSTALL within a source directory, because that will
252b5132 2737 # break other packages using the cache if that directory is
58c85be7 2738 # removed, or if the value is a relative name.
42ecbf5e 2739 INSTALL=$ac_install_sh
252b5132
RH
2740 fi
2741fi
42ecbf5e
DJ
2742echo "$as_me:$LINENO: result: $INSTALL" >&5
2743echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
2744
2745# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2746# It thinks the first close brace ends the variable substitution.
2747test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2748
42ecbf5e 2749test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
2750
2751test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2752
42ecbf5e
DJ
2753echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2754echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
252b5132
RH
2755# Just in case
2756sleep 1
42ecbf5e 2757echo timestamp > conftest.file
252b5132
RH
2758# Do `set' in a subshell so we don't clobber the current shell's
2759# arguments. Must try -L first in case configure is actually a
2760# symlink; some systems play weird games with the mod time of symlinks
2761# (eg FreeBSD returns the mod time of the symlink's containing
2762# directory).
2763if (
42ecbf5e 2764 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
252b5132
RH
2765 if test "$*" = "X"; then
2766 # -L didn't work.
42ecbf5e 2767 set X `ls -t $srcdir/configure conftest.file`
252b5132 2768 fi
42ecbf5e
DJ
2769 rm -f conftest.file
2770 if test "$*" != "X $srcdir/configure conftest.file" \
2771 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
2772
2773 # If neither matched, then we have a broken ls. This can happen
2774 # if, for instance, CONFIG_SHELL is bash and it inherits a
2775 # broken ls alias from the environment. This has actually
2776 # happened. Such a system could not be considered "sane".
42ecbf5e
DJ
2777 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2778alias in your environment" >&5
2779echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2780alias in your environment" >&2;}
2781 { (exit 1); exit 1; }; }
252b5132
RH
2782 fi
2783
42ecbf5e 2784 test "$2" = conftest.file
252b5132
RH
2785 )
2786then
2787 # Ok.
2788 :
2789else
42ecbf5e
DJ
2790 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2791Check your system clock" >&5
2792echo "$as_me: error: newly created file is older than distributed files!
2793Check your system clock" >&2;}
2794 { (exit 1); exit 1; }; }
252b5132 2795fi
42ecbf5e
DJ
2796echo "$as_me:$LINENO: result: yes" >&5
2797echo "${ECHO_T}yes" >&6
252b5132 2798test "$program_prefix" != NONE &&
42ecbf5e 2799 program_transform_name="s,^,$program_prefix,;$program_transform_name"
252b5132
RH
2800# Use a double $ so make ignores it.
2801test "$program_suffix" != NONE &&
42ecbf5e
DJ
2802 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2803# Double any \ or $. echo might interpret backslashes.
2804# By default was `s,x,x', remove it if useless.
2805cat <<\_ACEOF >conftest.sed
2806s/[\\$]/&&/g;s/;s,x,x,$//
2807_ACEOF
2808program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2809rm conftest.sed
2810
2811# expand $ac_aux_dir to an absolute path
2812am_aux_dir=`cd $ac_aux_dir && pwd`
2813
2814test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2815# Use eval to expand $SHELL
2816if eval "$MISSING --run true"; then
2817 am_missing_run="$MISSING --run "
2818else
2819 am_missing_run=
2820 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2821echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2822fi
2823
2824if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2825 # We used to keeping the `.' as first argument, in order to
2826 # allow $(mkdir_p) to be used without argument. As in
2827 # $(mkdir_p) $(somedir)
2828 # where $(somedir) is conditionally defined. However this is wrong
2829 # for two reasons:
2830 # 1. if the package is installed by a user who cannot write `.'
2831 # make install will fail,
2832 # 2. the above comment should most certainly read
2833 # $(mkdir_p) $(DESTDIR)$(somedir)
2834 # so it does not work when $(somedir) is undefined and
2835 # $(DESTDIR) is not.
2836 # To support the latter case, we have to write
2837 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2838 # so the `.' trick is pointless.
2839 mkdir_p='mkdir -p --'
2840else
2841 # On NextStep and OpenStep, the `mkdir' command does not
2842 # recognize any option. It will interpret all options as
2843 # directories to create, and then abort because `.' already
2844 # exists.
2845 for d in ./-p ./--version;
2846 do
2847 test -d $d && rmdir $d
2848 done
2849 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2850 if test -f "$ac_aux_dir/mkinstalldirs"; then
2851 mkdir_p='$(mkinstalldirs)'
2852 else
2853 mkdir_p='$(install_sh) -d'
2854 fi
2855fi
2856
2857for ac_prog in gawk mawk nawk awk
2858do
2859 # Extract the first word of "$ac_prog", so it can be a program name with args.
2860set dummy $ac_prog; ac_word=$2
2861echo "$as_me:$LINENO: checking for $ac_word" >&5
2862echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2863if test "${ac_cv_prog_AWK+set}" = set; then
2864 echo $ECHO_N "(cached) $ECHO_C" >&6
2865else
2866 if test -n "$AWK"; then
2867 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2868else
2869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2870for as_dir in $PATH
2871do
2872 IFS=$as_save_IFS
2873 test -z "$as_dir" && as_dir=.
2874 for ac_exec_ext in '' $ac_executable_extensions; do
2875 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2876 ac_cv_prog_AWK="$ac_prog"
2877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2878 break 2
2879 fi
2880done
2881done
2882
2883fi
2884fi
2885AWK=$ac_cv_prog_AWK
2886if test -n "$AWK"; then
2887 echo "$as_me:$LINENO: result: $AWK" >&5
2888echo "${ECHO_T}$AWK" >&6
2889else
2890 echo "$as_me:$LINENO: result: no" >&5
2891echo "${ECHO_T}no" >&6
2892fi
252b5132 2893
42ecbf5e
DJ
2894 test -n "$AWK" && break
2895done
252b5132 2896
42ecbf5e
DJ
2897echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2898echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2899set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2900if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2901 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 2902else
42ecbf5e 2903 cat >conftest.make <<\_ACEOF
252b5132 2904all:
42ecbf5e
DJ
2905 @echo 'ac_maketemp="$(MAKE)"'
2906_ACEOF
252b5132 2907# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
42ecbf5e 2908eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
252b5132
RH
2909if test -n "$ac_maketemp"; then
2910 eval ac_cv_prog_make_${ac_make}_set=yes
2911else
2912 eval ac_cv_prog_make_${ac_make}_set=no
2913fi
42ecbf5e 2914rm -f conftest.make
252b5132
RH
2915fi
2916if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
42ecbf5e
DJ
2917 echo "$as_me:$LINENO: result: yes" >&5
2918echo "${ECHO_T}yes" >&6
252b5132
RH
2919 SET_MAKE=
2920else
42ecbf5e
DJ
2921 echo "$as_me:$LINENO: result: no" >&5
2922echo "${ECHO_T}no" >&6
252b5132
RH
2923 SET_MAKE="MAKE=${MAKE-make}"
2924fi
2925
42ecbf5e
DJ
2926rm -rf .tst 2>/dev/null
2927mkdir .tst 2>/dev/null
2928if test -d .tst; then
2929 am__leading_dot=.
2930else
2931 am__leading_dot=_
2932fi
2933rmdir .tst 2>/dev/null
2934
2935DEPDIR="${am__leading_dot}deps"
2936
2937 ac_config_commands="$ac_config_commands depfiles"
2938
2939
2940am_make=${MAKE-make}
2941cat > confinc << 'END'
2942am__doit:
2943 @echo done
2944.PHONY: am__doit
2945END
2946# If we don't find an include directive, just comment out the code.
2947echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2948echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2949am__include="#"
2950am__quote=
2951_am_result=none
2952# First try GNU make style include.
2953echo "include confinc" > confmf
2954# We grep out `Entering directory' and `Leaving directory'
2955# messages which can occur if `w' ends up in MAKEFLAGS.
2956# In particular we don't look at `^make:' because GNU make might
2957# be invoked under some other name (usually "gmake"), in which
2958# case it prints its new name instead of `make'.
2959if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2960 am__include=include
2961 am__quote=
2962 _am_result=GNU
2963fi
2964# Now try BSD make style include.
2965if test "$am__include" = "#"; then
2966 echo '.include "confinc"' > confmf
2967 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2968 am__include=.include
2969 am__quote="\""
2970 _am_result=BSD
2971 fi
2972fi
2973
2974
2975echo "$as_me:$LINENO: result: $_am_result" >&5
2976echo "${ECHO_T}$_am_result" >&6
2977rm -f confinc confmf
2978
2979# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2980if test "${enable_dependency_tracking+set}" = set; then
2981 enableval="$enable_dependency_tracking"
2982
2983fi;
2984if test "x$enable_dependency_tracking" != xno; then
2985 am_depcomp="$ac_aux_dir/depcomp"
2986 AMDEPBACKSLASH='\'
2987fi
2988
2989
2990if test "x$enable_dependency_tracking" != xno; then
2991 AMDEP_TRUE=
2992 AMDEP_FALSE='#'
2993else
2994 AMDEP_TRUE='#'
2995 AMDEP_FALSE=
2996fi
2997
e5a52504
MM
2998
2999
42ecbf5e
DJ
3000# test to see if srcdir already configured
3001if test "`cd $srcdir && pwd`" != "`pwd`" &&
3002 test -f $srcdir/config.status; then
3003 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3004echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3005 { (exit 1); exit 1; }; }
3006fi
252b5132 3007
42ecbf5e
DJ
3008# test whether we have cygpath
3009if test -z "$CYGPATH_W"; then
3010 if (cygpath --version) >/dev/null 2>/dev/null; then
3011 CYGPATH_W='cygpath -w'
3012 else
3013 CYGPATH_W=echo
3014 fi
252b5132 3015fi
42ecbf5e
DJ
3016
3017
3018# Define the identity of the package.
3019 PACKAGE=ld
3020 VERSION=${BFD_VERSION}
3021
3022
3023cat >>confdefs.h <<_ACEOF
e5a52504 3024#define PACKAGE "$PACKAGE"
42ecbf5e
DJ
3025_ACEOF
3026
252b5132 3027
42ecbf5e 3028cat >>confdefs.h <<_ACEOF
e5a52504 3029#define VERSION "$VERSION"
42ecbf5e
DJ
3030_ACEOF
3031
3032# Some tools Automake needs.
3033
3034ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3035
3036
3037AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3038
3039
3040AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3041
3042
3043AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3044
e5a52504 3045
42ecbf5e 3046MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
e5a52504 3047
42ecbf5e 3048install_sh=${install_sh-"$am_aux_dir/install-sh"}
e5a52504 3049
42ecbf5e
DJ
3050# Installed binaries are usually stripped using `strip' when the user
3051# run `make install-strip'. However `strip' might not be the right
3052# tool to use in cross-compilation environments, therefore Automake
3053# will honor the `STRIP' environment variable to overrule this program.
3054if test "$cross_compiling" != no; then
3055 if test -n "$ac_tool_prefix"; then
3056 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3057set dummy ${ac_tool_prefix}strip; ac_word=$2
3058echo "$as_me:$LINENO: checking for $ac_word" >&5
3059echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3060if test "${ac_cv_prog_STRIP+set}" = set; then
3061 echo $ECHO_N "(cached) $ECHO_C" >&6
3062else
3063 if test -n "$STRIP"; then
3064 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3065else
3066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3067for as_dir in $PATH
3068do
3069 IFS=$as_save_IFS
3070 test -z "$as_dir" && as_dir=.
3071 for ac_exec_ext in '' $ac_executable_extensions; do
3072 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3073 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3075 break 2
3076 fi
3077done
3078done
3079
3080fi
3081fi
3082STRIP=$ac_cv_prog_STRIP
3083if test -n "$STRIP"; then
3084 echo "$as_me:$LINENO: result: $STRIP" >&5
3085echo "${ECHO_T}$STRIP" >&6
2469cfa2 3086else
42ecbf5e
DJ
3087 echo "$as_me:$LINENO: result: no" >&5
3088echo "${ECHO_T}no" >&6
3089fi
3090
e5a52504 3091fi
42ecbf5e
DJ
3092if test -z "$ac_cv_prog_STRIP"; then
3093 ac_ct_STRIP=$STRIP
3094 # Extract the first word of "strip", so it can be a program name with args.
3095set dummy strip; ac_word=$2
3096echo "$as_me:$LINENO: checking for $ac_word" >&5
3097echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3098if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3099 echo $ECHO_N "(cached) $ECHO_C" >&6
3100else
3101 if test -n "$ac_ct_STRIP"; then
3102 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3103else
3104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3105for as_dir in $PATH
3106do
3107 IFS=$as_save_IFS
3108 test -z "$as_dir" && as_dir=.
3109 for ac_exec_ext in '' $ac_executable_extensions; do
3110 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3111 ac_cv_prog_ac_ct_STRIP="strip"
3112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3113 break 2
3114 fi
3115done
3116done
e5a52504 3117
42ecbf5e
DJ
3118 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3119fi
3120fi
3121ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3122if test -n "$ac_ct_STRIP"; then
3123 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3124echo "${ECHO_T}$ac_ct_STRIP" >&6
2469cfa2 3125else
42ecbf5e
DJ
3126 echo "$as_me:$LINENO: result: no" >&5
3127echo "${ECHO_T}no" >&6
2469cfa2
NC
3128fi
3129
42ecbf5e 3130 STRIP=$ac_ct_STRIP
2469cfa2 3131else
42ecbf5e
DJ
3132 STRIP="$ac_cv_prog_STRIP"
3133fi
3134
2469cfa2 3135fi
42ecbf5e
DJ
3136INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3137
3138# We need awk for the "check" target. The system "awk" is bad on
3139# some platforms.
3140# Always define AMTAR for backward compatibility.
3141
3142AMTAR=${AMTAR-"${am_missing_run}tar"}
3143
3144am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3145
3146
3147
3148
3149depcc="$CC" am_compiler_list=
3150
3151echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3152echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3153if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3154 echo $ECHO_N "(cached) $ECHO_C" >&6
3155else
3156 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3157 # We make a subdir and do the tests there. Otherwise we can end up
3158 # making bogus files that we don't know about and never remove. For
3159 # instance it was reported that on HP-UX the gcc test will end up
3160 # making a dummy file named `D' -- because `-MD' means `put the output
3161 # in D'.
3162 mkdir conftest.dir
3163 # Copy depcomp to subdir because otherwise we won't find it if we're
3164 # using a relative directory.
3165 cp "$am_depcomp" conftest.dir
3166 cd conftest.dir
3167 # We will build objects and dependencies in a subdirectory because
3168 # it helps to detect inapplicable dependency modes. For instance
3169 # both Tru64's cc and ICC support -MD to output dependencies as a
3170 # side effect of compilation, but ICC will put the dependencies in
3171 # the current directory while Tru64 will put them in the object
3172 # directory.
3173 mkdir sub
3174
3175 am_cv_CC_dependencies_compiler_type=none
3176 if test "$am_compiler_list" = ""; then
3177 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3178 fi
3179 for depmode in $am_compiler_list; do
3180 # Setup a source with many dependencies, because some compilers
3181 # like to wrap large dependency lists on column 80 (with \), and
3182 # we should not choose a depcomp mode which is confused by this.
3183 #
3184 # We need to recreate these files for each test, as the compiler may
3185 # overwrite some of them when testing with obscure command lines.
3186 # This happens at least with the AIX C compiler.
3187 : > sub/conftest.c
3188 for i in 1 2 3 4 5 6; do
3189 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3190 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3191 # Solaris 8's {/usr,}/bin/sh.
3192 touch sub/conftst$i.h
3193 done
3194 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3195
3196 case $depmode in
3197 nosideeffect)
3198 # after this tag, mechanisms are not by side-effect, so they'll
3199 # only be used when explicitly requested
3200 if test "x$enable_dependency_tracking" = xyes; then
3201 continue
3202 else
3203 break
3204 fi
3205 ;;
3206 none) break ;;
3207 esac
3208 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3209 # mode. It turns out that the SunPro C++ compiler does not properly
3210 # handle `-M -o', and we need to detect this.
3211 if depmode=$depmode \
3212 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3213 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3214 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3215 >/dev/null 2>conftest.err &&
3216 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3217 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3218 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3219 # icc doesn't choke on unknown options, it will just issue warnings
3220 # or remarks (even with -Werror). So we grep stderr for any message
3221 # that says an option was ignored or not supported.
3222 # When given -MP, icc 7.0 and 7.1 complain thusly:
3223 # icc: Command line warning: ignoring option '-M'; no argument required
3224 # The diagnosis changed in icc 8.0:
3225 # icc: Command line remark: option '-MP' not supported
3226 if (grep 'ignoring option' conftest.err ||
3227 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3228 am_cv_CC_dependencies_compiler_type=$depmode
3229 break
3230 fi
3231 fi
3232 done
2469cfa2 3233
42ecbf5e
DJ
3234 cd ..
3235 rm -rf conftest.dir
2469cfa2 3236else
42ecbf5e
DJ
3237 am_cv_CC_dependencies_compiler_type=none
3238fi
3239
2469cfa2 3240fi
42ecbf5e
DJ
3241echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3242echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3243CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3244
2469cfa2 3245
42ecbf5e
DJ
3246
3247if
3248 test "x$enable_dependency_tracking" != xno \
3249 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3250 am__fastdepCC_TRUE=
3251 am__fastdepCC_FALSE='#'
2469cfa2 3252else
42ecbf5e
DJ
3253 am__fastdepCC_TRUE='#'
3254 am__fastdepCC_FALSE=
2469cfa2 3255fi
2469cfa2 3256
2469cfa2 3257
e5a52504 3258
42ecbf5e 3259
d7040cdb 3260
ce2cded5
L
3261# Check whether --with-lib-path or --without-lib-path was given.
3262if test "${with_lib_path+set}" = set; then
3263 withval="$with_lib_path"
3264 LIB_PATH=$withval
3265fi;
3266# Check whether --enable-targets or --disable-targets was given.
3267if test "${enable_targets+set}" = set; then
3268 enableval="$enable_targets"
3269 case "${enableval}" in
3270 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
3271echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
3272 { (exit 1); exit 1; }; }
3273 ;;
3274 no) enable_targets= ;;
3275 *) enable_targets=$enableval ;;
3276esac
3277fi; # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
3278if test "${enable_64_bit_bfd+set}" = set; then
3279 enableval="$enable_64_bit_bfd"
3280 case "${enableval}" in
3281 yes) want64=true ;;
3282 no) want64=false ;;
3283 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
3284echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
3285 { (exit 1); exit 1; }; } ;;
3286esac
2469cfa2 3287else
ce2cded5 3288 want64=false
42ecbf5e 3289fi;
d7040cdb 3290
ce2cded5
L
3291# Check whether --with-sysroot or --without-sysroot was given.
3292if test "${with_sysroot+set}" = set; then
3293 withval="$with_sysroot"
d7040cdb 3294
ce2cded5
L
3295 case ${with_sysroot} in
3296 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
3297 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3298 esac
d7040cdb 3299
ce2cded5
L
3300 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3301 use_sysroot=yes
d7040cdb 3302
ce2cded5
L
3303 if test "x$prefix" = xNONE; then
3304 test_prefix=/usr/local
3305 else
3306 test_prefix=$prefix
3307 fi
3308 if test "x$exec_prefix" = xNONE; then
3309 test_exec_prefix=$test_prefix
3310 else
3311 test_exec_prefix=$exec_prefix
3312 fi
3313 case ${TARGET_SYSTEM_ROOT} in
3314 "${test_prefix}"|"${test_prefix}/"*|\
3315 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3316 '${prefix}'|'${prefix}/'*|\
3317 '${exec_prefix}'|'${exec_prefix}/'*)
3318 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3319 TARGET_SYSTEM_ROOT_DEFINE="$t"
3320 ;;
3321 esac
d7040cdb 3322
e5a52504 3323else
d7040cdb 3324
ce2cded5
L
3325 use_sysroot=no
3326 TARGET_SYSTEM_ROOT=
3327 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
d7040cdb 3328
ce2cded5 3329fi;
d7040cdb
SE
3330
3331
3332
3333
7fb9f789
NC
3334# Check whether --enable-got or --disable-got was given.
3335if test "${enable_got+set}" = set; then
3336 enableval="$enable_got"
3337 case "${enableval}" in
3338 target | single | negative | multigot) got_handling=$enableval ;;
3339 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-got option" >&5
3340echo "$as_me: error: bad value ${enableval} for --enable-got option" >&2;}
3341 { (exit 1); exit 1; }; } ;;
3342esac
3343else
3344 got_handling=target
3345fi;
3346
3347case "${got_handling}" in
3348 target)
3349
3350cat >>confdefs.h <<\_ACEOF
3351#define GOT_HANDLING_DEFAULT GOT_HANDLING_TARGET_DEFAULT
3352_ACEOF
3353 ;;
3354 single)
3355
3356cat >>confdefs.h <<\_ACEOF
3357#define GOT_HANDLING_DEFAULT GOT_HANDLING_SINGLE
3358_ACEOF
3359 ;;
3360 negative)
3361
3362cat >>confdefs.h <<\_ACEOF
3363#define GOT_HANDLING_DEFAULT GOT_HANDLING_NEGATIVE
3364_ACEOF
3365 ;;
3366 multigot)
3367
3368cat >>confdefs.h <<\_ACEOF
3369#define GOT_HANDLING_DEFAULT GOT_HANDLING_MULTIGOT
3370_ACEOF
3371 ;;
3372 *) { { echo "$as_me:$LINENO: error: bad value ${got_handling} for --enable-got option" >&5
3373echo "$as_me: error: bad value ${got_handling} for --enable-got option" >&2;}
3374 { (exit 1); exit 1; }; } ;;
3375esac
3376
d7040cdb 3377
ce2cded5 3378GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
d7040cdb 3379
ce2cded5
L
3380# Check whether --enable-werror or --disable-werror was given.
3381if test "${enable_werror+set}" = set; then
3382 enableval="$enable_werror"
3383 case "${enableval}" in
3384 yes | y) ERROR_ON_WARNING="yes" ;;
3385 no | n) ERROR_ON_WARNING="no" ;;
3386 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
3387echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
3388 { (exit 1); exit 1; }; } ;;
3389 esac
d7040cdb
SE
3390fi;
3391
bb8541b9
L
3392# Enable -Wno-format by default when using gcc on mingw
3393case "${host}" in
3394 *-*-mingw32*)
3395 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
3396 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
3397 fi
3398 ;;
3399 *) ;;
3400esac
3401
ce2cded5
L
3402# Enable -Werror by default when using gcc
3403if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
3404 ERROR_ON_WARNING=yes
3405fi
d7040cdb 3406
ce2cded5
L
3407NO_WERROR=
3408if test "${ERROR_ON_WARNING}" = yes ; then
3409 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
3410 NO_WERROR="-Wno-error"
3411fi
d7040cdb 3412
ce2cded5
L
3413if test "${GCC}" = yes ; then
3414 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
3415fi
d7040cdb 3416
ce2cded5
L
3417# Check whether --enable-build-warnings or --disable-build-warnings was given.
3418if test "${enable_build_warnings+set}" = set; then
3419 enableval="$enable_build_warnings"
3420 case "${enableval}" in
3421 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
3422 no) if test "${GCC}" = yes ; then
3423 WARN_CFLAGS="-w"
3424 fi;;
3425 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
3426 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
3427 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
3428 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
3429 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3430esac
3431fi;
d7040cdb 3432
ce2cded5
L
3433if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
3434 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
3435fi
d7040cdb 3436
2469cfa2 3437
d7040cdb
SE
3438
3439
3440
ce2cded5 3441 ac_config_headers="$ac_config_headers config.h:config.in"
d7040cdb
SE
3442
3443
ce2cded5
L
3444if test -z "$target" ; then
3445 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
3446echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
3447 { (exit 1); exit 1; }; }
3448fi
3449if test -z "$host" ; then
3450 { { echo "$as_me:$LINENO: error: Unrecognized host system type; please check config.sub." >&5
3451echo "$as_me: error: Unrecognized host system type; please check config.sub." >&2;}
3452 { (exit 1); exit 1; }; }
3453fi
d7040cdb 3454
ce2cded5 3455# host-specific stuff:
d7040cdb 3456
ce2cded5
L
3457ac_ext=c
3458ac_cpp='$CPP $CPPFLAGS'
3459ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3460ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3461ac_compiler_gnu=$ac_cv_c_compiler_gnu
3462if test -n "$ac_tool_prefix"; then
3463 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3464set dummy ${ac_tool_prefix}gcc; ac_word=$2
3465echo "$as_me:$LINENO: checking for $ac_word" >&5
3466echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3467if test "${ac_cv_prog_CC+set}" = set; then
d7040cdb
SE
3468 echo $ECHO_N "(cached) $ECHO_C" >&6
3469else
ce2cded5
L
3470 if test -n "$CC"; then
3471 ac_cv_prog_CC="$CC" # Let the user override the test.
3472else
d7040cdb
SE
3473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3474for as_dir in $PATH
3475do
3476 IFS=$as_save_IFS
3477 test -z "$as_dir" && as_dir=.
ce2cded5
L
3478 for ac_exec_ext in '' $ac_executable_extensions; do
3479 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3480 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3482 break 2
d7040cdb 3483 fi
ce2cded5 3484done
d7040cdb
SE
3485done
3486
3487fi
d7040cdb 3488fi
ce2cded5
L
3489CC=$ac_cv_prog_CC
3490if test -n "$CC"; then
3491 echo "$as_me:$LINENO: result: $CC" >&5
3492echo "${ECHO_T}$CC" >&6
d7040cdb 3493else
ce2cded5
L
3494 echo "$as_me:$LINENO: result: no" >&5
3495echo "${ECHO_T}no" >&6
d7040cdb 3496fi
d7040cdb 3497
252b5132 3498fi
ce2cded5
L
3499if test -z "$ac_cv_prog_CC"; then
3500 ac_ct_CC=$CC
3501 # Extract the first word of "gcc", so it can be a program name with args.
3502set dummy gcc; ac_word=$2
3503echo "$as_me:$LINENO: checking for $ac_word" >&5
3504echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3505if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
42ecbf5e 3506 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3507else
ce2cded5
L
3508 if test -n "$ac_ct_CC"; then
3509 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
252b5132 3510else
ce2cded5
L
3511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3512for as_dir in $PATH
3513do
3514 IFS=$as_save_IFS
3515 test -z "$as_dir" && as_dir=.
3516 for ac_exec_ext in '' $ac_executable_extensions; do
3517 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3518 ac_cv_prog_ac_ct_CC="gcc"
3519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3520 break 2
3521 fi
3522done
3523done
3524
252b5132
RH
3525fi
3526fi
ce2cded5
L
3527ac_ct_CC=$ac_cv_prog_ac_ct_CC
3528if test -n "$ac_ct_CC"; then
3529 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3530echo "${ECHO_T}$ac_ct_CC" >&6
252b5132 3531else
42ecbf5e
DJ
3532 echo "$as_me:$LINENO: result: no" >&5
3533echo "${ECHO_T}no" >&6
252b5132 3534fi
ce2cded5
L
3535
3536 CC=$ac_ct_CC
252b5132 3537else
ce2cded5 3538 CC="$ac_cv_prog_CC"
252b5132 3539fi
d7040cdb 3540
ce2cded5
L
3541if test -z "$CC"; then
3542 if test -n "$ac_tool_prefix"; then
3543 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3544set dummy ${ac_tool_prefix}cc; ac_word=$2
3545echo "$as_me:$LINENO: checking for $ac_word" >&5
3546echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3547if test "${ac_cv_prog_CC+set}" = set; then
42ecbf5e 3548 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3549else
ce2cded5
L
3550 if test -n "$CC"; then
3551 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 3552else
ce2cded5
L
3553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3554for as_dir in $PATH
3555do
3556 IFS=$as_save_IFS
3557 test -z "$as_dir" && as_dir=.
3558 for ac_exec_ext in '' $ac_executable_extensions; do
3559 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3560 ac_cv_prog_CC="${ac_tool_prefix}cc"
3561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3562 break 2
3563 fi
3564done
3565done
3566
252b5132
RH
3567fi
3568fi
ce2cded5
L
3569CC=$ac_cv_prog_CC
3570if test -n "$CC"; then
3571 echo "$as_me:$LINENO: result: $CC" >&5
3572echo "${ECHO_T}$CC" >&6
d15b04bd 3573else
ce2cded5
L
3574 echo "$as_me:$LINENO: result: no" >&5
3575echo "${ECHO_T}no" >&6
3576fi
3577
3578fi
3579if test -z "$ac_cv_prog_CC"; then
3580 ac_ct_CC=$CC
3581 # Extract the first word of "cc", so it can be a program name with args.
3582set dummy cc; ac_word=$2
3583echo "$as_me:$LINENO: checking for $ac_word" >&5
3584echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3585if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3586 echo $ECHO_N "(cached) $ECHO_C" >&6
3587else
3588 if test -n "$ac_ct_CC"; then
3589 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3590else
3591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3592for as_dir in $PATH
3593do
3594 IFS=$as_save_IFS
3595 test -z "$as_dir" && as_dir=.
3596 for ac_exec_ext in '' $ac_executable_extensions; do
3597 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3598 ac_cv_prog_ac_ct_CC="cc"
3599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3600 break 2
3601 fi
3602done
3603done
3604
3605fi
3606fi
3607ac_ct_CC=$ac_cv_prog_ac_ct_CC
3608if test -n "$ac_ct_CC"; then
3609 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3610echo "${ECHO_T}$ac_ct_CC" >&6
3611else
3612 echo "$as_me:$LINENO: result: no" >&5
3613echo "${ECHO_T}no" >&6
3614fi
3615
3616 CC=$ac_ct_CC
3617else
3618 CC="$ac_cv_prog_CC"
3619fi
3620
3621fi
3622if test -z "$CC"; then
3623 # Extract the first word of "cc", so it can be a program name with args.
3624set dummy cc; ac_word=$2
3625echo "$as_me:$LINENO: checking for $ac_word" >&5
3626echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3627if test "${ac_cv_prog_CC+set}" = set; then
3628 echo $ECHO_N "(cached) $ECHO_C" >&6
3629else
3630 if test -n "$CC"; then
3631 ac_cv_prog_CC="$CC" # Let the user override the test.
3632else
3633 ac_prog_rejected=no
3634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3635for as_dir in $PATH
3636do
3637 IFS=$as_save_IFS
3638 test -z "$as_dir" && as_dir=.
3639 for ac_exec_ext in '' $ac_executable_extensions; do
3640 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3641 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3642 ac_prog_rejected=yes
3643 continue
3644 fi
3645 ac_cv_prog_CC="cc"
3646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3647 break 2
3648 fi
3649done
3650done
3651
3652if test $ac_prog_rejected = yes; then
3653 # We found a bogon in the path, so make sure we never use it.
3654 set dummy $ac_cv_prog_CC
3655 shift
3656 if test $# != 0; then
3657 # We chose a different compiler from the bogus one.
3658 # However, it has the same basename, so the bogon will be chosen
3659 # first if we set CC to just the basename; use the full file name.
3660 shift
3661 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3662 fi
3663fi
3664fi
3665fi
3666CC=$ac_cv_prog_CC
3667if test -n "$CC"; then
3668 echo "$as_me:$LINENO: result: $CC" >&5
3669echo "${ECHO_T}$CC" >&6
3670else
3671 echo "$as_me:$LINENO: result: no" >&5
3672echo "${ECHO_T}no" >&6
3673fi
3674
3675fi
3676if test -z "$CC"; then
d7040cdb 3677 if test -n "$ac_tool_prefix"; then
ce2cded5 3678 for ac_prog in cl
d7040cdb
SE
3679 do
3680 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3681set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3682echo "$as_me:$LINENO: checking for $ac_word" >&5
3683echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ce2cded5 3684if test "${ac_cv_prog_CC+set}" = set; then
d7040cdb
SE
3685 echo $ECHO_N "(cached) $ECHO_C" >&6
3686else
ce2cded5
L
3687 if test -n "$CC"; then
3688 ac_cv_prog_CC="$CC" # Let the user override the test.
d7040cdb
SE
3689else
3690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3691for as_dir in $PATH
3692do
3693 IFS=$as_save_IFS
3694 test -z "$as_dir" && as_dir=.
3695 for ac_exec_ext in '' $ac_executable_extensions; do
3696 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ce2cded5 3697 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
d7040cdb
SE
3698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3699 break 2
3700 fi
3701done
3702done
3703
3704fi
3705fi
ce2cded5
L
3706CC=$ac_cv_prog_CC
3707if test -n "$CC"; then
3708 echo "$as_me:$LINENO: result: $CC" >&5
3709echo "${ECHO_T}$CC" >&6
d7040cdb
SE
3710else
3711 echo "$as_me:$LINENO: result: no" >&5
3712echo "${ECHO_T}no" >&6
3713fi
3714
ce2cded5 3715 test -n "$CC" && break
d7040cdb
SE
3716 done
3717fi
ce2cded5
L
3718if test -z "$CC"; then
3719 ac_ct_CC=$CC
3720 for ac_prog in cl
d7040cdb
SE
3721do
3722 # Extract the first word of "$ac_prog", so it can be a program name with args.
3723set dummy $ac_prog; ac_word=$2
3724echo "$as_me:$LINENO: checking for $ac_word" >&5
3725echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ce2cded5 3726if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
d7040cdb
SE
3727 echo $ECHO_N "(cached) $ECHO_C" >&6
3728else
ce2cded5
L
3729 if test -n "$ac_ct_CC"; then
3730 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
d7040cdb
SE
3731else
3732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3733for as_dir in $PATH
3734do
3735 IFS=$as_save_IFS
3736 test -z "$as_dir" && as_dir=.
3737 for ac_exec_ext in '' $ac_executable_extensions; do
3738 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ce2cded5 3739 ac_cv_prog_ac_ct_CC="$ac_prog"
d7040cdb
SE
3740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3741 break 2
3742 fi
3743done
3744done
3745
3746fi
3747fi
ce2cded5
L
3748ac_ct_CC=$ac_cv_prog_ac_ct_CC
3749if test -n "$ac_ct_CC"; then
3750 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3751echo "${ECHO_T}$ac_ct_CC" >&6
d7040cdb
SE
3752else
3753 echo "$as_me:$LINENO: result: no" >&5
3754echo "${ECHO_T}no" >&6
3755fi
3756
ce2cded5 3757 test -n "$ac_ct_CC" && break
d7040cdb 3758done
d7040cdb 3759
ce2cded5 3760 CC=$ac_ct_CC
d7040cdb
SE
3761fi
3762
d7040cdb 3763fi
d7040cdb
SE
3764
3765
7a283e07
RW
3766test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3767echo "$as_me: error: in \`$ac_pwd':" >&2;}
3768{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
ce2cded5
L
3769See \`config.log' for more details." >&5
3770echo "$as_me: error: no acceptable C compiler found in \$PATH
3771See \`config.log' for more details." >&2;}
7a283e07 3772 { (exit 1); exit 1; }; }; }
d7040cdb 3773
ce2cded5
L
3774# Provide some information about the compiler.
3775echo "$as_me:$LINENO:" \
3776 "checking for C compiler version" >&5
3777ac_compiler=`set X $ac_compile; echo $2`
3778{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3779 (eval $ac_compiler --version </dev/null >&5) 2>&5
3780 ac_status=$?
3781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782 (exit $ac_status); }
3783{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3784 (eval $ac_compiler -v </dev/null >&5) 2>&5
3785 ac_status=$?
3786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3787 (exit $ac_status); }
3788{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3789 (eval $ac_compiler -V </dev/null >&5) 2>&5
3790 ac_status=$?
3791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792 (exit $ac_status); }
d7040cdb 3793
ce2cded5
L
3794echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3795echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3796if test "${ac_cv_c_compiler_gnu+set}" = set; then
d7040cdb
SE
3797 echo $ECHO_N "(cached) $ECHO_C" >&6
3798else
ce2cded5
L
3799 cat >conftest.$ac_ext <<_ACEOF
3800/* confdefs.h. */
3801_ACEOF
3802cat confdefs.h >>conftest.$ac_ext
3803cat >>conftest.$ac_ext <<_ACEOF
3804/* end confdefs.h. */
d7040cdb 3805
ce2cded5
L
3806int
3807main ()
3808{
3809#ifndef __GNUC__
3810 choke me
3811#endif
3812
3813 ;
3814 return 0;
3815}
3816_ACEOF
3817rm -f conftest.$ac_objext
3818if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3819 (eval $ac_compile) 2>conftest.er1
3820 ac_status=$?
3821 grep -v '^ *+' conftest.er1 >conftest.err
3822 rm -f conftest.er1
3823 cat conftest.err >&5
3824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825 (exit $ac_status); } &&
4474d12b 3826 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ce2cded5
L
3827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3828 (eval $ac_try) 2>&5
3829 ac_status=$?
3830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831 (exit $ac_status); }; } &&
3832 { ac_try='test -s conftest.$ac_objext'
3833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3834 (eval $ac_try) 2>&5
3835 ac_status=$?
3836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837 (exit $ac_status); }; }; then
3838 ac_compiler_gnu=yes
d7040cdb 3839else
ce2cded5
L
3840 echo "$as_me: failed program was:" >&5
3841sed 's/^/| /' conftest.$ac_ext >&5
3842
3843ac_compiler_gnu=no
d7040cdb 3844fi
ce2cded5
L
3845rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3846ac_cv_c_compiler_gnu=$ac_compiler_gnu
d7040cdb 3847
ce2cded5
L
3848fi
3849echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3850echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3851GCC=`test $ac_compiler_gnu = yes && echo yes`
3852ac_test_CFLAGS=${CFLAGS+set}
3853ac_save_CFLAGS=$CFLAGS
3854CFLAGS="-g"
3855echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3856echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3857if test "${ac_cv_prog_cc_g+set}" = set; then
d7040cdb
SE
3858 echo $ECHO_N "(cached) $ECHO_C" >&6
3859else
ce2cded5
L
3860 cat >conftest.$ac_ext <<_ACEOF
3861/* confdefs.h. */
3862_ACEOF
3863cat confdefs.h >>conftest.$ac_ext
3864cat >>conftest.$ac_ext <<_ACEOF
3865/* end confdefs.h. */
d7040cdb 3866
ce2cded5
L
3867int
3868main ()
3869{
d7040cdb 3870
ce2cded5
L
3871 ;
3872 return 0;
3873}
3874_ACEOF
3875rm -f conftest.$ac_objext
3876if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3877 (eval $ac_compile) 2>conftest.er1
3878 ac_status=$?
3879 grep -v '^ *+' conftest.er1 >conftest.err
3880 rm -f conftest.er1
3881 cat conftest.err >&5
3882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883 (exit $ac_status); } &&
4474d12b 3884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ce2cded5
L
3885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3886 (eval $ac_try) 2>&5
3887 ac_status=$?
3888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3889 (exit $ac_status); }; } &&
3890 { ac_try='test -s conftest.$ac_objext'
3891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3892 (eval $ac_try) 2>&5
3893 ac_status=$?
3894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895 (exit $ac_status); }; }; then
3896 ac_cv_prog_cc_g=yes
3897else
3898 echo "$as_me: failed program was:" >&5
3899sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 3900
ce2cded5 3901ac_cv_prog_cc_g=no
d7040cdb 3902fi
ce2cded5
L
3903rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3904fi
3905echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3906echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3907if test "$ac_test_CFLAGS" = set; then
3908 CFLAGS=$ac_save_CFLAGS
3909elif test $ac_cv_prog_cc_g = yes; then
3910 if test "$GCC" = yes; then
3911 CFLAGS="-g -O2"
3912 else
3913 CFLAGS="-g"
3914 fi
d7040cdb 3915else
ce2cded5
L
3916 if test "$GCC" = yes; then
3917 CFLAGS="-O2"
3918 else
3919 CFLAGS=
3920 fi
d7040cdb 3921fi
ce2cded5
L
3922echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3923echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3924if test "${ac_cv_prog_cc_stdc+set}" = set; then
3925 echo $ECHO_N "(cached) $ECHO_C" >&6
d7040cdb 3926else
ce2cded5
L
3927 ac_cv_prog_cc_stdc=no
3928ac_save_CC=$CC
3929cat >conftest.$ac_ext <<_ACEOF
3930/* confdefs.h. */
3931_ACEOF
3932cat confdefs.h >>conftest.$ac_ext
3933cat >>conftest.$ac_ext <<_ACEOF
3934/* end confdefs.h. */
3935#include <stdarg.h>
3936#include <stdio.h>
3937#include <sys/types.h>
3938#include <sys/stat.h>
3939/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3940struct buf { int x; };
3941FILE * (*rcsopen) (struct buf *, struct stat *, int);
3942static char *e (p, i)
3943 char **p;
3944 int i;
3945{
3946 return p[i];
3947}
3948static char *f (char * (*g) (char **, int), char **p, ...)
3949{
3950 char *s;
3951 va_list v;
3952 va_start (v,p);
3953 s = g (p, va_arg (v,int));
3954 va_end (v);
3955 return s;
3956}
d7040cdb 3957
ce2cded5
L
3958/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3959 function prototypes and stuff, but not '\xHH' hex character constants.
3960 These don't provoke an error unfortunately, instead are silently treated
3961 as 'x'. The following induces an error, until -std1 is added to get
3962 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3963 array size at least. It's necessary to write '\x00'==0 to get something
3964 that's true only with -std1. */
3965int osf4_cc_array ['\x00' == 0 ? 1 : -1];
d7040cdb 3966
ce2cded5
L
3967int test (int i, double x);
3968struct s1 {int (*f) (int a);};
3969struct s2 {int (*f) (double a);};
3970int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3971int argc;
3972char **argv;
3973int
3974main ()
3975{
3976return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3977 ;
3978 return 0;
3979}
3980_ACEOF
3981# Don't try gcc -ansi; that turns off useful extensions and
3982# breaks some systems' header files.
3983# AIX -qlanglvl=ansi
3984# Ultrix and OSF/1 -std1
3985# HP-UX 10.20 and later -Ae
3986# HP-UX older versions -Aa -D_HPUX_SOURCE
3987# SVR4 -Xc -D__EXTENSIONS__
3988for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3989do
3990 CC="$ac_save_CC $ac_arg"
3991 rm -f conftest.$ac_objext
3992if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3993 (eval $ac_compile) 2>conftest.er1
3994 ac_status=$?
3995 grep -v '^ *+' conftest.er1 >conftest.err
3996 rm -f conftest.er1
3997 cat conftest.err >&5
3998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999 (exit $ac_status); } &&
4474d12b 4000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ce2cded5
L
4001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4002 (eval $ac_try) 2>&5
4003 ac_status=$?
4004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005 (exit $ac_status); }; } &&
4006 { ac_try='test -s conftest.$ac_objext'
4007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4008 (eval $ac_try) 2>&5
4009 ac_status=$?
4010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011 (exit $ac_status); }; }; then
4012 ac_cv_prog_cc_stdc=$ac_arg
4013break
4014else
4015 echo "$as_me: failed program was:" >&5
4016sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4017
ce2cded5
L
4018fi
4019rm -f conftest.err conftest.$ac_objext
4020done
4021rm -f conftest.$ac_ext conftest.$ac_objext
4022CC=$ac_save_CC
d7040cdb 4023
ce2cded5 4024fi
d7040cdb 4025
ce2cded5
L
4026case "x$ac_cv_prog_cc_stdc" in
4027 x|xno)
4028 echo "$as_me:$LINENO: result: none needed" >&5
4029echo "${ECHO_T}none needed" >&6 ;;
4030 *)
4031 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4032echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4033 CC="$CC $ac_cv_prog_cc_stdc" ;;
d7040cdb
SE
4034esac
4035
ce2cded5
L
4036# Some people use a C++ compiler to compile C. Since we use `exit',
4037# in C++ we need to declare it. In case someone uses the same compiler
4038# for both compiling C and C++ we need to have the C++ compiler decide
4039# the declaration of exit, since it's the most demanding environment.
4040cat >conftest.$ac_ext <<_ACEOF
4041#ifndef __cplusplus
4042 choke me
4043#endif
4044_ACEOF
4045rm -f conftest.$ac_objext
4046if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4047 (eval $ac_compile) 2>conftest.er1
4048 ac_status=$?
4049 grep -v '^ *+' conftest.er1 >conftest.err
4050 rm -f conftest.er1
4051 cat conftest.err >&5
4052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053 (exit $ac_status); } &&
4474d12b 4054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ce2cded5
L
4055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4056 (eval $ac_try) 2>&5
4057 ac_status=$?
4058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4059 (exit $ac_status); }; } &&
4060 { ac_try='test -s conftest.$ac_objext'
4061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4062 (eval $ac_try) 2>&5
4063 ac_status=$?
4064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065 (exit $ac_status); }; }; then
4066 for ac_declaration in \
4067 '' \
4068 'extern "C" void std::exit (int) throw (); using std::exit;' \
4069 'extern "C" void std::exit (int); using std::exit;' \
4070 'extern "C" void exit (int) throw ();' \
4071 'extern "C" void exit (int);' \
4072 'void exit (int);'
4073do
4074 cat >conftest.$ac_ext <<_ACEOF
4075/* confdefs.h. */
4076_ACEOF
4077cat confdefs.h >>conftest.$ac_ext
4078cat >>conftest.$ac_ext <<_ACEOF
4079/* end confdefs.h. */
4080$ac_declaration
4081#include <stdlib.h>
4082int
4083main ()
4084{
4085exit (42);
4086 ;
4087 return 0;
4088}
4089_ACEOF
4090rm -f conftest.$ac_objext
4091if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4092 (eval $ac_compile) 2>conftest.er1
4093 ac_status=$?
4094 grep -v '^ *+' conftest.er1 >conftest.err
4095 rm -f conftest.er1
4096 cat conftest.err >&5
4097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098 (exit $ac_status); } &&
4474d12b 4099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ce2cded5
L
4100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4101 (eval $ac_try) 2>&5
4102 ac_status=$?
4103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104 (exit $ac_status); }; } &&
4105 { ac_try='test -s conftest.$ac_objext'
4106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4107 (eval $ac_try) 2>&5
4108 ac_status=$?
4109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110 (exit $ac_status); }; }; then
4111 :
d7040cdb 4112else
ce2cded5
L
4113 echo "$as_me: failed program was:" >&5
4114sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4115
ce2cded5
L
4116continue
4117fi
4118rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4119 cat >conftest.$ac_ext <<_ACEOF
4120/* confdefs.h. */
4121_ACEOF
4122cat confdefs.h >>conftest.$ac_ext
4123cat >>conftest.$ac_ext <<_ACEOF
4124/* end confdefs.h. */
4125$ac_declaration
4126int
4127main ()
4128{
4129exit (42);
4130 ;
4131 return 0;
4132}
4133_ACEOF
4134rm -f conftest.$ac_objext
4135if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4136 (eval $ac_compile) 2>conftest.er1
4137 ac_status=$?
4138 grep -v '^ *+' conftest.er1 >conftest.err
4139 rm -f conftest.er1
4140 cat conftest.err >&5
4141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142 (exit $ac_status); } &&
4474d12b 4143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ce2cded5
L
4144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4145 (eval $ac_try) 2>&5
4146 ac_status=$?
4147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148 (exit $ac_status); }; } &&
4149 { ac_try='test -s conftest.$ac_objext'
4150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4151 (eval $ac_try) 2>&5
4152 ac_status=$?
4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); }; }; then
4155 break
4156else
4157 echo "$as_me: failed program was:" >&5
4158sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4159
ce2cded5
L
4160fi
4161rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4162done
4163rm -f conftest*
4164if test -n "$ac_declaration"; then
4165 echo '#ifdef __cplusplus' >>confdefs.h
4166 echo $ac_declaration >>confdefs.h
4167 echo '#endif' >>confdefs.h
4168fi
d7040cdb 4169
ce2cded5
L
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
4176ac_ext=c
4177ac_cpp='$CPP $CPPFLAGS'
4178ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4179ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4180ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb
SE
4181
4182
ce2cded5
L
4183cat >>confdefs.h <<\_ACEOF
4184#define _GNU_SOURCE 1
4185_ACEOF
4186
4187
4188# Find a good install program. We prefer a C program (faster),
4189# so one script is as good as another. But avoid the broken or
4190# incompatible versions:
4191# SysV /etc/install, /usr/sbin/install
4192# SunOS /usr/etc/install
4193# IRIX /sbin/install
4194# AIX /bin/install
4195# AmigaOS /C/install, which installs bootblocks on floppy discs
4196# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4197# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4198# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4199# OS/2's system install, which has a completely different semantic
4200# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 4201# Reject install programs that cannot install multiple files.
ce2cded5
L
4202echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4203echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4204if test -z "$INSTALL"; then
4205if test "${ac_cv_path_install+set}" = set; then
42ecbf5e 4206 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 4207else
ce2cded5
L
4208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4209for as_dir in $PATH
4210do
4211 IFS=$as_save_IFS
4212 test -z "$as_dir" && as_dir=.
4213 # Account for people who put trailing slashes in PATH elements.
4214case $as_dir/ in
4215 ./ | .// | /cC/* | \
4216 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4217 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4218 /usr/ucb/* ) ;;
4219 *)
4220 # OSF1 and SCO ODT 3.0 have their own names for install.
4221 # Don't use installbsd from OSF since it installs stuff as root
4222 # by default.
4223 for ac_prog in ginstall scoinst install; do
4224 for ac_exec_ext in '' $ac_executable_extensions; do
4225 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4226 if test $ac_prog = install &&
4227 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4228 # AIX install. It has an incompatible calling convention.
4229 :
4230 elif test $ac_prog = install &&
4231 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4232 # program-specific install script used by HP pwplus--don't use.
4233 :
4234 else
58c85be7
RW
4235 rm -rf conftest.one conftest.two conftest.dir
4236 echo one > conftest.one
4237 echo two > conftest.two
4238 mkdir conftest.dir
4239 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4240 test -s conftest.one && test -s conftest.two &&
4241 test -s conftest.dir/conftest.one &&
4242 test -s conftest.dir/conftest.two
4243 then
4244 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4245 break 3
4246 fi
ce2cded5
L
4247 fi
4248 fi
4249 done
4250 done
4251 ;;
4252esac
4253done
ac48eca1 4254
58c85be7 4255rm -rf conftest.one conftest.two conftest.dir
ac48eca1 4256
ce2cded5
L
4257fi
4258 if test "${ac_cv_path_install+set}" = set; then
4259 INSTALL=$ac_cv_path_install
4260 else
58c85be7
RW
4261 # As a last resort, use the slow shell script. Don't cache a
4262 # value for INSTALL within a source directory, because that will
ce2cded5 4263 # break other packages using the cache if that directory is
58c85be7 4264 # removed, or if the value is a relative name.
ce2cded5
L
4265 INSTALL=$ac_install_sh
4266 fi
4267fi
4268echo "$as_me:$LINENO: result: $INSTALL" >&5
4269echo "${ECHO_T}$INSTALL" >&6
ac48eca1 4270
ce2cded5
L
4271# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4272# It thinks the first close brace ends the variable substitution.
4273test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
ac48eca1 4274
ce2cded5 4275test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
d7040cdb 4276
ce2cded5 4277test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
ac48eca1 4278
c7e40348 4279
ac48eca1 4280
ac48eca1 4281
ce2cded5
L
4282macro_version='2.1a'
4283macro_revision='1.2435'
d7040cdb 4284
d7040cdb 4285
ac48eca1 4286
ac48eca1 4287
ac48eca1 4288
c7e40348 4289
ac48eca1 4290
ac48eca1 4291
ac48eca1 4292
6be7c12c 4293
d7040cdb 4294
d7040cdb 4295
ce2cded5 4296ltmain="$ac_aux_dir/ltmain.sh"
d7040cdb 4297
ce2cded5 4298# Set options
ac48eca1 4299
ce2cded5 4300enable_dlopen=no
ac48eca1 4301
d15b04bd 4302
ce2cded5 4303enable_win32_dll=no
d15b04bd 4304
ac48eca1 4305
ce2cded5
L
4306# Check whether --enable-shared or --disable-shared was given.
4307if test "${enable_shared+set}" = set; then
4308 enableval="$enable_shared"
4309 p=${PACKAGE-default}
4310 case $enableval in
4311 yes) enable_shared=yes ;;
4312 no) enable_shared=no ;;
4313 *)
4314 enable_shared=no
4315 # Look at the argument we got. We use all the common list separators.
4316 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4317 for pkg in $enableval; do
4318 IFS="$lt_save_ifs"
4319 if test "X$pkg" = "X$p"; then
4320 enable_shared=yes
4321 fi
4322 done
4323 IFS="$lt_save_ifs"
4324 ;;
4325 esac
4326else
4327 enable_shared=yes
4328fi;
ac48eca1 4329
ac48eca1 4330
ac48eca1 4331
ac48eca1 4332
ac48eca1 4333
ac48eca1 4334
252b5132
RH
4335
4336
ce2cded5
L
4337# Check whether --enable-static or --disable-static was given.
4338if test "${enable_static+set}" = set; then
4339 enableval="$enable_static"
4340 p=${PACKAGE-default}
4341 case $enableval in
4342 yes) enable_static=yes ;;
4343 no) enable_static=no ;;
4344 *)
4345 enable_static=no
4346 # Look at the argument we got. We use all the common list separators.
4347 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4348 for pkg in $enableval; do
4349 IFS="$lt_save_ifs"
4350 if test "X$pkg" = "X$p"; then
4351 enable_static=yes
4352 fi
4353 done
4354 IFS="$lt_save_ifs"
4355 ;;
4356 esac
ac48eca1 4357else
ce2cded5
L
4358 enable_static=yes
4359fi;
42ecbf5e 4360
ac48eca1 4361
42ecbf5e 4362
ac48eca1 4363
ce2cded5
L
4364
4365
4366
4367
4368
4369# Check whether --with-pic or --without-pic was given.
4370if test "${with_pic+set}" = set; then
4371 withval="$with_pic"
4372 pic_mode="$withval"
ac48eca1 4373else
ce2cded5
L
4374 pic_mode=default
4375fi;
4376
4377test -z "$pic_mode" && pic_mode=default
ac48eca1 4378
d7040cdb
SE
4379
4380
4381
4382
4383
4384
ce2cded5
L
4385# Check whether --enable-fast-install or --disable-fast-install was given.
4386if test "${enable_fast_install+set}" = set; then
4387 enableval="$enable_fast_install"
4388 p=${PACKAGE-default}
4389 case $enableval in
4390 yes) enable_fast_install=yes ;;
4391 no) enable_fast_install=no ;;
4392 *)
4393 enable_fast_install=no
4394 # Look at the argument we got. We use all the common list separators.
4395 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4396 for pkg in $enableval; do
4397 IFS="$lt_save_ifs"
4398 if test "X$pkg" = "X$p"; then
4399 enable_fast_install=yes
4400 fi
4401 done
4402 IFS="$lt_save_ifs"
4403 ;;
4404 esac
4405else
4406 enable_fast_install=yes
4407fi;
d7040cdb
SE
4408
4409
4410
4411
4412
ce2cded5
L
4413
4414
4415
4416echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4417echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4418if test "${lt_cv_path_SED+set}" = set; then
42ecbf5e 4419 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 4420else
ce2cded5
L
4421 # Loop through the user's path and test for sed and gsed.
4422# Then use that list of sed's as ones to test for truncation.
42ecbf5e
DJ
4423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4424for as_dir in $PATH
4425do
4426 IFS=$as_save_IFS
4427 test -z "$as_dir" && as_dir=.
ce2cded5
L
4428 for lt_ac_prog in sed gsed; do
4429 for ac_exec_ext in '' $ac_executable_extensions; do
4430 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4431 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4432 fi
4433 done
4434 done
42ecbf5e 4435done
ce2cded5
L
4436IFS=$as_save_IFS
4437lt_ac_max=0
4438lt_ac_count=0
4439# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4440# along with /bin/sed that truncates output.
4441for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4442 test ! -f $lt_ac_sed && continue
4443 cat /dev/null > conftest.in
4444 lt_ac_count=0
4445 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4446 # Check for GNU sed and select it if it is found.
4447 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4448 lt_cv_path_SED=$lt_ac_sed
4449 break
42ecbf5e 4450 fi
ce2cded5
L
4451 while true; do
4452 cat conftest.in conftest.in >conftest.tmp
4453 mv conftest.tmp conftest.in
4454 cp conftest.in conftest.nl
4455 echo >>conftest.nl
4456 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4457 cmp -s conftest.out conftest.nl || break
4458 # 10000 chars as input seems more than enough
4459 test $lt_ac_count -gt 10 && break
4460 lt_ac_count=`expr $lt_ac_count + 1`
4461 if test $lt_ac_count -gt $lt_ac_max; then
4462 lt_ac_max=$lt_ac_count
4463 lt_cv_path_SED=$lt_ac_sed
4464 fi
4465 done
42ecbf5e 4466done
ac48eca1 4467
ac48eca1
AO
4468fi
4469
ce2cded5 4470SED=$lt_cv_path_SED
42ecbf5e 4471
ce2cded5
L
4472echo "$as_me:$LINENO: result: $SED" >&5
4473echo "${ECHO_T}$SED" >&6
252b5132 4474
ce2cded5
L
4475test -z "$SED" && SED=sed
4476Xsed="$SED -e 1s/^X//"
4867be41 4477
32fba81d 4478
42ecbf5e
DJ
4479
4480
ac48eca1 4481
252b5132 4482
252b5132 4483
42ecbf5e 4484
ac48eca1 4485
d7040cdb 4486
d7040cdb 4487
ce2cded5
L
4488echo "$as_me:$LINENO: checking for egrep" >&5
4489echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4490if test "${ac_cv_prog_egrep+set}" = set; then
4491 echo $ECHO_N "(cached) $ECHO_C" >&6
4492else
4493 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4494 then ac_cv_prog_egrep='grep -E'
4495 else ac_cv_prog_egrep='egrep'
4496 fi
252b5132 4497fi
ce2cded5
L
4498echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4499echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4500 EGREP=$ac_cv_prog_egrep
252b5132 4501
252b5132 4502
ce2cded5
L
4503echo "$as_me:$LINENO: checking for fgrep" >&5
4504echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4505if test "${ac_cv_prog_fgrep+set}" = set; then
4506 echo $ECHO_N "(cached) $ECHO_C" >&6
4507else
4508 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4509 then ac_cv_prog_fgrep='grep -F'
4510 else ac_cv_prog_fgrep='fgrep'
4511 fi
4512fi
4513echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4514echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4515 FGREP=$ac_cv_prog_fgrep
252b5132 4516
252b5132 4517
ce2cded5 4518test -z "$GREP" && GREP=grep
42ecbf5e 4519
42ecbf5e 4520
252b5132 4521
252b5132 4522
252b5132
RH
4523
4524
252b5132 4525
252b5132 4526
252b5132 4527
ac48eca1 4528
42ecbf5e
DJ
4529
4530
4531
4532
4533
ac48eca1 4534
252b5132 4535
42ecbf5e 4536
9c8ebd6a 4537
ce2cded5
L
4538# Check whether --with-gnu-ld or --without-gnu-ld was given.
4539if test "${with_gnu_ld+set}" = set; then
4540 withval="$with_gnu_ld"
4541 test "$withval" = no || with_gnu_ld=yes
d7040cdb 4542else
ce2cded5
L
4543 with_gnu_ld=no
4544fi;
4545ac_prog=ld
4546if test "$GCC" = yes; then
4547 # Check if gcc -print-prog-name=ld gives a path.
4548 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4549echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4550 case $host in
4551 *-*-mingw*)
4552 # gcc leaves a trailing carriage return which upsets mingw
4553 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4554 *)
4555 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4556 esac
4557 case $ac_prog in
4558 # Accept absolute paths.
4559 [\\/]* | ?:[\\/]*)
4560 re_direlt='/[^/][^/]*/\.\./'
4561 # Canonicalize the pathname of ld
4562 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4563 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4564 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4565 done
4566 test -z "$LD" && LD="$ac_prog"
4567 ;;
4568 "")
4569 # If it fails, then pretend we aren't using GCC.
4570 ac_prog=ld
4571 ;;
4572 *)
4573 # If it is relative, then search for the first ld in PATH.
4574 with_gnu_ld=unknown
4575 ;;
4576 esac
4577elif test "$with_gnu_ld" = yes; then
4578 echo "$as_me:$LINENO: checking for GNU ld" >&5
4579echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4580else
4581 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4582echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4583fi
4584if test "${lt_cv_path_LD+set}" = set; then
4585 echo $ECHO_N "(cached) $ECHO_C" >&6
4586else
4587 if test -z "$LD"; then
4588 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4589 for ac_dir in $PATH; do
4590 IFS="$lt_save_ifs"
4591 test -z "$ac_dir" && ac_dir=.
4592 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4593 lt_cv_path_LD="$ac_dir/$ac_prog"
4594 # Check to see if the program is GNU ld. I'd rather use --version,
4595 # but apparently some variants of GNU ld only accept -v.
4596 # Break only if it was the GNU/non-GNU ld that we prefer.
4597 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4598 *GNU* | *'with BFD'*)
4599 test "$with_gnu_ld" != no && break
4600 ;;
4601 *)
4602 test "$with_gnu_ld" != yes && break
4603 ;;
4604 esac
4605 fi
4606 done
4607 IFS="$lt_save_ifs"
4608else
4609 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4610fi
4611fi
9e9b66a9 4612
ce2cded5
L
4613LD="$lt_cv_path_LD"
4614if test -n "$LD"; then
4615 echo "$as_me:$LINENO: result: $LD" >&5
4616echo "${ECHO_T}$LD" >&6
4617else
4618 echo "$as_me:$LINENO: result: no" >&5
4619echo "${ECHO_T}no" >&6
4620fi
4621test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4622echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4623 { (exit 1); exit 1; }; }
4624echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4625echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4626if test "${lt_cv_prog_gnu_ld+set}" = set; then
4627 echo $ECHO_N "(cached) $ECHO_C" >&6
4628else
4629 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4630case `$LD -v 2>&1 </dev/null` in
d7040cdb 4631*GNU* | *'with BFD'*)
ce2cded5
L
4632 lt_cv_prog_gnu_ld=yes
4633 ;;
4634*)
4635 lt_cv_prog_gnu_ld=no
d7040cdb
SE
4636 ;;
4637esac
ce2cded5
L
4638fi
4639echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4640echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4641with_gnu_ld=$lt_cv_prog_gnu_ld
42ecbf5e 4642
e5a52504 4643
d7040cdb 4644
d7040cdb 4645
d7040cdb 4646
d7040cdb 4647
d7040cdb 4648
d7040cdb 4649
d7040cdb 4650
d7040cdb 4651
ce2cded5
L
4652echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4653echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
4654if test "${lt_cv_path_NM+set}" = set; then
4655 echo $ECHO_N "(cached) $ECHO_C" >&6
4656else
4657 if test -n "$NM"; then
4658 # Let the user override the test.
4659 lt_cv_path_NM="$NM"
4660else
4661 lt_nm_to_check="${ac_tool_prefix}nm"
4662 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4663 lt_nm_to_check="$lt_nm_to_check nm"
4664 fi
4665 for lt_tmp_nm in $lt_nm_to_check; do
4666 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4667 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4668 IFS="$lt_save_ifs"
4669 test -z "$ac_dir" && ac_dir=.
4670 tmp_nm="$ac_dir/$lt_tmp_nm"
4671 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4672 # Check to see if the nm accepts a BSD-compat flag.
4673 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4674 # nm: unknown option "B" ignored
4675 # Tru64's nm complains that /dev/null is an invalid object file
4676 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4677 */dev/null* | *'Invalid file or object type'*)
4678 lt_cv_path_NM="$tmp_nm -B"
4679 break
4680 ;;
4681 *)
4682 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4683 */dev/null*)
4684 lt_cv_path_NM="$tmp_nm -p"
4685 break
4686 ;;
4687 *)
4688 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4689 continue # so that we can try to find one that supports BSD flags
4690 ;;
4691 esac
4692 ;;
4693 esac
4694 fi
4695 done
4696 IFS="$lt_save_ifs"
4697 done
4698 : ${lt_cv_path_NM=no}
4699fi
4700fi
4701echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4702echo "${ECHO_T}$lt_cv_path_NM" >&6
4703if test "$lt_cv_path_NM" != "no"; then
4704 NM="$lt_cv_path_NM"
4705else
4706 # Didn't find any BSD compatible name lister, look for dumpbin.
4707 if test -n "$ac_tool_prefix"; then
4708 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4709 do
4710 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4711set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4712echo "$as_me:$LINENO: checking for $ac_word" >&5
4713echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4714if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4715 echo $ECHO_N "(cached) $ECHO_C" >&6
4716else
4717 if test -n "$DUMPBIN"; then
4718 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4719else
4720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4721for as_dir in $PATH
4722do
4723 IFS=$as_save_IFS
4724 test -z "$as_dir" && as_dir=.
4725 for ac_exec_ext in '' $ac_executable_extensions; do
4726 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4727 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4729 break 2
42ecbf5e 4730 fi
42ecbf5e 4731done
ce2cded5 4732done
d15b04bd 4733
ce2cded5
L
4734fi
4735fi
4736DUMPBIN=$ac_cv_prog_DUMPBIN
4737if test -n "$DUMPBIN"; then
4738 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4739echo "${ECHO_T}$DUMPBIN" >&6
4740else
4741 echo "$as_me:$LINENO: result: no" >&5
4742echo "${ECHO_T}no" >&6
252b5132 4743fi
d7040cdb 4744
ce2cded5
L
4745 test -n "$DUMPBIN" && break
4746 done
42ecbf5e 4747fi
ce2cded5
L
4748if test -z "$DUMPBIN"; then
4749 ac_ct_DUMPBIN=$DUMPBIN
4750 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4751do
4752 # Extract the first word of "$ac_prog", so it can be a program name with args.
4753set dummy $ac_prog; ac_word=$2
4754echo "$as_me:$LINENO: checking for $ac_word" >&5
4755echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4756if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4757 echo $ECHO_N "(cached) $ECHO_C" >&6
42ecbf5e 4758else
ce2cded5
L
4759 if test -n "$ac_ct_DUMPBIN"; then
4760 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4761else
4762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4763for as_dir in $PATH
4764do
4765 IFS=$as_save_IFS
4766 test -z "$as_dir" && as_dir=.
4767 for ac_exec_ext in '' $ac_executable_extensions; do
4768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4769 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4771 break 2
4772 fi
4773done
4774done
4775
4776fi
4777fi
4778ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4779if test -n "$ac_ct_DUMPBIN"; then
4780 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4781echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4782else
4783 echo "$as_me:$LINENO: result: no" >&5
4784echo "${ECHO_T}no" >&6
e5a52504
MM
4785fi
4786
ce2cded5
L
4787 test -n "$ac_ct_DUMPBIN" && break
4788done
4789test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
d15b04bd 4790
ce2cded5
L
4791 DUMPBIN=$ac_ct_DUMPBIN
4792fi
42ecbf5e 4793
42ecbf5e 4794
ce2cded5
L
4795 if test "$DUMPBIN" != ":"; then
4796 NM="$DUMPBIN"
4797 fi
4798fi
4799test -z "$NM" && NM=nm
42ecbf5e 4800
252b5132 4801
42ecbf5e 4802
42ecbf5e 4803
252b5132 4804
42ecbf5e 4805
ce2cded5
L
4806echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4807echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4808if test "${lt_cv_nm_interface+set}" = set; then
4809 echo $ECHO_N "(cached) $ECHO_C" >&6
4810else
4811 lt_cv_nm_interface="BSD nm"
4812 echo "int some_variable = 0;" > conftest.$ac_ext
4474d12b 4813 (eval echo "\"\$as_me:4813: $ac_compile\"" >&5)
ce2cded5
L
4814 (eval "$ac_compile" 2>conftest.err)
4815 cat conftest.err >&5
4474d12b 4816 (eval echo "\"\$as_me:4816: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
ce2cded5
L
4817 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4818 cat conftest.err >&5
4474d12b 4819 (eval echo "\"\$as_me:4819: output\"" >&5)
ce2cded5
L
4820 cat conftest.out >&5
4821 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4822 lt_cv_nm_interface="MS dumpbin"
4823 fi
4824 rm -f conftest*
4825fi
4826echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4827echo "${ECHO_T}$lt_cv_nm_interface" >&6
d15b04bd 4828
ce2cded5
L
4829echo "$as_me:$LINENO: checking whether ln -s works" >&5
4830echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4831LN_S=$as_ln_s
4832if test "$LN_S" = "ln -s"; then
4833 echo "$as_me:$LINENO: result: yes" >&5
4834echo "${ECHO_T}yes" >&6
4835else
4836 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4837echo "${ECHO_T}no, using $LN_S" >&6
4838fi
42ecbf5e 4839
ce2cded5
L
4840# find the maximum length of command line arguments
4841echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4842echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4843if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4844 echo $ECHO_N "(cached) $ECHO_C" >&6
4845else
4846 i=0
4847 teststring="ABCD"
252b5132 4848
ce2cded5
L
4849 case $build_os in
4850 msdosdjgpp*)
4851 # On DJGPP, this test can blow up pretty badly due to problems in libc
4852 # (any single argument exceeding 2000 bytes causes a buffer overrun
4853 # during glob expansion). Even if it were fixed, the result of this
4854 # check would be larger than it should be.
4855 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4856 ;;
e5a52504 4857
ce2cded5
L
4858 gnu*)
4859 # Under GNU Hurd, this test is not required because there is
4860 # no limit to the length of command line arguments.
4861 # Libtool will interpret -1 as no limit whatsoever
4862 lt_cv_sys_max_cmd_len=-1;
4863 ;;
42ecbf5e 4864
ce2cded5
L
4865 cygwin* | mingw*)
4866 # On Win9x/ME, this test blows up -- it succeeds, but takes
4867 # about 5 minutes as the teststring grows exponentially.
4868 # Worse, since 9x/ME are not pre-emptively multitasking,
4869 # you end up with a "frozen" computer, even though with patience
4870 # the test eventually succeeds (with a max line length of 256k).
4871 # Instead, let's just punt: use the minimum linelength reported by
4872 # all of the supported platforms: 8192 (on NT/2K/XP).
4873 lt_cv_sys_max_cmd_len=8192;
4874 ;;
42ecbf5e 4875
ce2cded5
L
4876 amigaos*)
4877 # On AmigaOS with pdksh, this test takes hours, literally.
4878 # So we just punt and use a minimum line length of 8192.
4879 lt_cv_sys_max_cmd_len=8192;
4880 ;;
42ecbf5e 4881
ce2cded5
L
4882 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4883 # This has been around since 386BSD, at least. Likely further.
4884 if test -x /sbin/sysctl; then
4885 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4886 elif test -x /usr/sbin/sysctl; then
4887 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4888 else
4889 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4890 fi
4891 # And add a safety zone
4892 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4893 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4894 ;;
42ecbf5e 4895
ce2cded5
L
4896 interix*)
4897 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4898 lt_cv_sys_max_cmd_len=196608
4899 ;;
d7040cdb 4900
ce2cded5
L
4901 osf*)
4902 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4903 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4904 # nice to cause kernel panics so lets avoid the loop below.
4905 # First set a reasonable default.
4906 lt_cv_sys_max_cmd_len=16384
4907 #
4908 if test -x /sbin/sysconfig; then
4909 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4910 *1*) lt_cv_sys_max_cmd_len=-1 ;;
d7040cdb 4911 esac
ce2cded5
L
4912 fi
4913 ;;
4914 sco3.2v5*)
4915 lt_cv_sys_max_cmd_len=102400
4916 ;;
4917 sysv5* | sco5v6* | sysv4.2uw2*)
4918 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4919 if test -n "$kargmax"; then
4920 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
d7040cdb 4921 else
ce2cded5 4922 lt_cv_sys_max_cmd_len=32768
d7040cdb 4923 fi
ce2cded5
L
4924 ;;
4925 *)
4926 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
4927 if test -n $lt_cv_sys_max_cmd_len; then
4928 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4929 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4930 else
4931 # Make teststring a little bigger before we do anything with it.
4932 # a 1K string should be a reasonable start.
4933 for i in 1 2 3 4 5 6 7 8 ; do
4934 teststring=$teststring$teststring
4935 done
4936 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4937 # If test is not a shell built-in, we'll probably end up computing a
4938 # maximum length that is only half of the actual maximum length, but
4939 # we can't tell.
4940 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4941 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4942 test $i != 17 # 1/2 MB should be enough
4943 do
4944 i=`expr $i + 1`
4945 teststring=$teststring$teststring
4946 done
4947 # Only check the string length outside the loop.
4948 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4949 teststring=
4950 # Add a significant safety factor because C++ compilers can tack on
4951 # massive amounts of additional arguments before passing them to the
4952 # linker. It appears as though 1/2 is a usable value.
4953 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4954 fi
4955 ;;
4956 esac
d7040cdb 4957
ce2cded5 4958fi
d7040cdb 4959
ce2cded5
L
4960if test -n $lt_cv_sys_max_cmd_len ; then
4961 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4962echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
42ecbf5e 4963else
ce2cded5
L
4964 echo "$as_me:$LINENO: result: none" >&5
4965echo "${ECHO_T}none" >&6
4966fi
4967max_cmd_len=$lt_cv_sys_max_cmd_len
d7040cdb 4968
42ecbf5e 4969
252b5132 4970
42ecbf5e 4971
42ecbf5e 4972
d7040cdb 4973
d7040cdb 4974
ce2cded5
L
4975: ${CP="cp -f"}
4976: ${MV="mv -f"}
4977: ${RM="rm -f"}
d7040cdb 4978
ce2cded5
L
4979echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4980echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4981# Try some XSI features
4982xsi_shell=no
4983( _lt_dummy="a/b/c"
4984 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4985 = c,a/b,, ) >/dev/null 2>&1 \
4986 && xsi_shell=yes
4987echo "$as_me:$LINENO: result: $xsi_shell" >&5
4988echo "${ECHO_T}$xsi_shell" >&6
d7040cdb 4989
ce2cded5
L
4990
4991echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4992echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4993lt_shell_append=no
4994( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4995 >/dev/null 2>&1 \
4996 && lt_shell_append=yes
4997echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4998echo "${ECHO_T}$lt_shell_append" >&6
4999
5000
5001if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5002 lt_unset=unset
d7040cdb 5003else
ce2cded5 5004 lt_unset=false
d7040cdb 5005fi
42ecbf5e 5006
42ecbf5e 5007
42ecbf5e 5008
42ecbf5e 5009
d7040cdb 5010
ce2cded5
L
5011# test EBCDIC or ASCII
5012case `echo X|tr X '\101'` in
5013 A) # ASCII based system
5014 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5015 lt_SP2NL='tr \040 \012'
5016 lt_NL2SP='tr \015\012 \040\040'
5017 ;;
5018 *) # EBCDIC based system
5019 lt_SP2NL='tr \100 \n'
5020 lt_NL2SP='tr \r\n \100\100'
5021 ;;
5022esac
d7040cdb 5023
42ecbf5e 5024
d7040cdb 5025
d7040cdb 5026
d7040cdb
SE
5027
5028
d7040cdb 5029
d7040cdb 5030
42ecbf5e 5031
ce2cded5
L
5032echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5033echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5034if test "${lt_cv_ld_reload_flag+set}" = set; then
5035 echo $ECHO_N "(cached) $ECHO_C" >&6
5036else
5037 lt_cv_ld_reload_flag='-r'
42ecbf5e 5038fi
ce2cded5
L
5039echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5040echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5041reload_flag=$lt_cv_ld_reload_flag
5042case $reload_flag in
5043"" | " "*) ;;
5044*) reload_flag=" $reload_flag" ;;
5045esac
5046reload_cmds='$LD$reload_flag -o $output$reload_objs'
5047case $host_os in
5048 darwin*)
5049 if test "$GCC" = yes; then
5050 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5051 else
5052 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5053 fi
5054 ;;
5055esac
42ecbf5e 5056
252b5132 5057
d7040cdb 5058
252b5132 5059
252b5132 5060
252b5132 5061
252b5132
RH
5062
5063
ce2cded5
L
5064
5065
5066echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5067echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
5068if test "${lt_cv_deplibs_check_method+set}" = set; then
5069 echo $ECHO_N "(cached) $ECHO_C" >&6
d7040cdb 5070else
ce2cded5
L
5071 lt_cv_file_magic_cmd='$MAGIC_CMD'
5072lt_cv_file_magic_test_file=
5073lt_cv_deplibs_check_method='unknown'
5074# Need to set the preceding variable on all platforms that support
5075# interlibrary dependencies.
5076# 'none' -- dependencies not supported.
5077# `unknown' -- same as none, but documents that we really don't know.
5078# 'pass_all' -- all dependencies passed with no checks.
5079# 'test_compile' -- check by making test program.
5080# 'file_magic [[regex]]' -- check by looking for files in library path
5081# which responds to the $file_magic_cmd with a given extended regex.
5082# If you have `file' or equivalent on your system and you're not sure
5083# whether `pass_all' will *always* work, you probably want this one.
b83ef3ee 5084
ce2cded5 5085case $host_os in
50e7d84b 5086aix[4-9]*)
ce2cded5
L
5087 lt_cv_deplibs_check_method=pass_all
5088 ;;
20e95c23 5089
ce2cded5
L
5090beos*)
5091 lt_cv_deplibs_check_method=pass_all
5092 ;;
20e95c23 5093
ce2cded5
L
5094bsdi[45]*)
5095 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5096 lt_cv_file_magic_cmd='/usr/bin/file -L'
5097 lt_cv_file_magic_test_file=/shlib/libc.so
5098 ;;
20e95c23 5099
ce2cded5
L
5100cygwin*)
5101 # func_win32_libid is a shell function defined in ltmain.sh
5102 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5103 lt_cv_file_magic_cmd='func_win32_libid'
5104 ;;
20e95c23 5105
ce2cded5
L
5106mingw* | pw32*)
5107 # Base MSYS/MinGW do not provide the 'file' command needed by
5108 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5109 # unless we find 'file', for example because we are cross-compiling.
5110 if ( file / ) >/dev/null 2>&1; then
5111 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5112 lt_cv_file_magic_cmd='func_win32_libid'
5113 else
5114 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5115 lt_cv_file_magic_cmd='$OBJDUMP -f'
5116 fi
5117 ;;
20e95c23 5118
ce2cded5
L
5119darwin* | rhapsody*)
5120 lt_cv_deplibs_check_method=pass_all
5121 ;;
20e95c23 5122
ce2cded5
L
5123freebsd* | dragonfly*)
5124 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5125 case $host_cpu in
5126 i*86 )
5127 # Not sure whether the presence of OpenBSD here was a mistake.
5128 # Let's accept both of them until this is cleared up.
5129 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5130 lt_cv_file_magic_cmd=/usr/bin/file
5131 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5132 ;;
5133 esac
5134 else
5135 lt_cv_deplibs_check_method=pass_all
5136 fi
5137 ;;
20e95c23 5138
ce2cded5
L
5139gnu*)
5140 lt_cv_deplibs_check_method=pass_all
5141 ;;
20e95c23 5142
ce2cded5
L
5143hpux10.20* | hpux11*)
5144 lt_cv_file_magic_cmd=/usr/bin/file
5145 case $host_cpu in
5146 ia64*)
5147 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5148 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5149 ;;
5150 hppa*64*)
5151 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]'
5152 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5153 ;;
5154 *)
5155 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5156 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5157 ;;
5158 esac
5159 ;;
20e95c23 5160
ce2cded5
L
5161interix[3-9]*)
5162 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5163 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5164 ;;
20e95c23 5165
ce2cded5
L
5166irix5* | irix6* | nonstopux*)
5167 case $LD in
5168 *-32|*"-32 ") libmagic=32-bit;;
5169 *-n32|*"-n32 ") libmagic=N32;;
5170 *-64|*"-64 ") libmagic=64-bit;;
5171 *) libmagic=never-match;;
5172 esac
5173 lt_cv_deplibs_check_method=pass_all
5174 ;;
20e95c23 5175
ce2cded5
L
5176# This must be Linux ELF.
5177linux* | k*bsd*-gnu)
5178 lt_cv_deplibs_check_method=pass_all
5179 ;;
20e95c23 5180
ce2cded5
L
5181netbsd*)
5182 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5183 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5184 else
5185 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5186 fi
5187 ;;
20e95c23 5188
ce2cded5
L
5189newos6*)
5190 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5191 lt_cv_file_magic_cmd=/usr/bin/file
5192 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5193 ;;
20e95c23 5194
ce2cded5
L
5195*nto* | *qnx*)
5196 lt_cv_deplibs_check_method=pass_all
5197 ;;
20e95c23 5198
ce2cded5
L
5199openbsd*)
5200 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5201 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5202 else
5203 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5204 fi
5205 ;;
20e95c23 5206
ce2cded5
L
5207osf3* | osf4* | osf5*)
5208 lt_cv_deplibs_check_method=pass_all
5209 ;;
20e95c23 5210
ce2cded5
L
5211rdos*)
5212 lt_cv_deplibs_check_method=pass_all
5213 ;;
20e95c23 5214
ce2cded5
L
5215solaris*)
5216 lt_cv_deplibs_check_method=pass_all
5217 ;;
20e95c23 5218
ce2cded5
L
5219sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5220 lt_cv_deplibs_check_method=pass_all
5221 ;;
20e95c23 5222
ce2cded5
L
5223sysv4 | sysv4.3*)
5224 case $host_vendor in
5225 motorola)
5226 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]'
5227 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5228 ;;
5229 ncr)
5230 lt_cv_deplibs_check_method=pass_all
5231 ;;
5232 sequent)
5233 lt_cv_file_magic_cmd='/bin/file'
5234 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5235 ;;
5236 sni)
5237 lt_cv_file_magic_cmd='/bin/file'
5238 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5239 lt_cv_file_magic_test_file=/lib/libc.so
5240 ;;
5241 siemens)
5242 lt_cv_deplibs_check_method=pass_all
5243 ;;
5244 pc)
5245 lt_cv_deplibs_check_method=pass_all
5246 ;;
5247 esac
5248 ;;
d7040cdb 5249
ce2cded5
L
5250tpf*)
5251 lt_cv_deplibs_check_method=pass_all
5252 ;;
5253esac
d7040cdb 5254
20e95c23 5255fi
ce2cded5
L
5256echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5257echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5258file_magic_cmd=$lt_cv_file_magic_cmd
5259deplibs_check_method=$lt_cv_deplibs_check_method
5260test -z "$deplibs_check_method" && deplibs_check_method=unknown
d7040cdb
SE
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
20e95c23 5272
ce2cded5
L
5273if test -n "$ac_tool_prefix"; then
5274 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5275set dummy ${ac_tool_prefix}ar; ac_word=$2
5276echo "$as_me:$LINENO: checking for $ac_word" >&5
5277echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5278if test "${ac_cv_prog_AR+set}" = set; then
d7040cdb 5279 echo $ECHO_N "(cached) $ECHO_C" >&6
20e95c23 5280else
ce2cded5
L
5281 if test -n "$AR"; then
5282 ac_cv_prog_AR="$AR" # Let the user override the test.
d7040cdb 5283else
ce2cded5
L
5284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5285for as_dir in $PATH
5286do
5287 IFS=$as_save_IFS
5288 test -z "$as_dir" && as_dir=.
5289 for ac_exec_ext in '' $ac_executable_extensions; do
5290 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5291 ac_cv_prog_AR="${ac_tool_prefix}ar"
5292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5293 break 2
5294 fi
5295done
5296done
5297
d7040cdb 5298fi
42ecbf5e 5299fi
ce2cded5
L
5300AR=$ac_cv_prog_AR
5301if test -n "$AR"; then
5302 echo "$as_me:$LINENO: result: $AR" >&5
5303echo "${ECHO_T}$AR" >&6
5304else
5305 echo "$as_me:$LINENO: result: no" >&5
5306echo "${ECHO_T}no" >&6
5307fi
d7040cdb 5308
ce2cded5
L
5309fi
5310if test -z "$ac_cv_prog_AR"; then
5311 ac_ct_AR=$AR
5312 # Extract the first word of "ar", so it can be a program name with args.
5313set dummy ar; ac_word=$2
5314echo "$as_me:$LINENO: checking for $ac_word" >&5
5315echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5316if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5317 echo $ECHO_N "(cached) $ECHO_C" >&6
5318else
5319 if test -n "$ac_ct_AR"; then
5320 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5321else
5322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5323for as_dir in $PATH
5324do
5325 IFS=$as_save_IFS
5326 test -z "$as_dir" && as_dir=.
5327 for ac_exec_ext in '' $ac_executable_extensions; do
5328 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5329 ac_cv_prog_ac_ct_AR="ar"
5330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5331 break 2
5332 fi
5333done
5334done
d7040cdb 5335
ce2cded5
L
5336 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5337fi
5338fi
5339ac_ct_AR=$ac_cv_prog_ac_ct_AR
5340if test -n "$ac_ct_AR"; then
5341 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5342echo "${ECHO_T}$ac_ct_AR" >&6
5343else
5344 echo "$as_me:$LINENO: result: no" >&5
5345echo "${ECHO_T}no" >&6
5346fi
d7040cdb 5347
ce2cded5
L
5348 AR=$ac_ct_AR
5349else
5350 AR="$ac_cv_prog_AR"
5351fi
d7040cdb 5352
ce2cded5
L
5353test -z "$AR" && AR=ar
5354test -z "$AR_FLAGS" && AR_FLAGS=cru
d7040cdb
SE
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
ce2cded5
L
5366if test -n "$ac_tool_prefix"; then
5367 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5368set dummy ${ac_tool_prefix}strip; ac_word=$2
5369echo "$as_me:$LINENO: checking for $ac_word" >&5
5370echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5371if test "${ac_cv_prog_STRIP+set}" = set; then
5372 echo $ECHO_N "(cached) $ECHO_C" >&6
5373else
5374 if test -n "$STRIP"; then
5375 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5376else
5377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5378for as_dir in $PATH
5379do
5380 IFS=$as_save_IFS
5381 test -z "$as_dir" && as_dir=.
5382 for ac_exec_ext in '' $ac_executable_extensions; do
5383 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5384 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5386 break 2
20e95c23 5387 fi
d7040cdb 5388done
ce2cded5 5389done
d7040cdb 5390
ce2cded5
L
5391fi
5392fi
5393STRIP=$ac_cv_prog_STRIP
5394if test -n "$STRIP"; then
5395 echo "$as_me:$LINENO: result: $STRIP" >&5
5396echo "${ECHO_T}$STRIP" >&6
5397else
5398 echo "$as_me:$LINENO: result: no" >&5
5399echo "${ECHO_T}no" >&6
5400fi
d7040cdb 5401
ce2cded5
L
5402fi
5403if test -z "$ac_cv_prog_STRIP"; then
5404 ac_ct_STRIP=$STRIP
5405 # Extract the first word of "strip", so it can be a program name with args.
5406set dummy strip; ac_word=$2
5407echo "$as_me:$LINENO: checking for $ac_word" >&5
5408echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5409if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
20e95c23
DJ
5410 echo $ECHO_N "(cached) $ECHO_C" >&6
5411else
ce2cded5
L
5412 if test -n "$ac_ct_STRIP"; then
5413 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5414else
5415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5416for as_dir in $PATH
5417do
5418 IFS=$as_save_IFS
5419 test -z "$as_dir" && as_dir=.
5420 for ac_exec_ext in '' $ac_executable_extensions; do
5421 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5422 ac_cv_prog_ac_ct_STRIP="strip"
5423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5424 break 2
5425 fi
5426done
5427done
d7040cdb 5428
ce2cded5 5429 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
20e95c23 5430fi
ce2cded5
L
5431fi
5432ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5433if test -n "$ac_ct_STRIP"; then
5434 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5435echo "${ECHO_T}$ac_ct_STRIP" >&6
42ecbf5e
DJ
5436else
5437 echo "$as_me:$LINENO: result: no" >&5
5438echo "${ECHO_T}no" >&6
5439fi
5440
ce2cded5
L
5441 STRIP=$ac_ct_STRIP
5442else
5443 STRIP="$ac_cv_prog_STRIP"
5444fi
20e95c23 5445
ce2cded5 5446test -z "$STRIP" && STRIP=:
20e95c23 5447
20e95c23 5448
20e95c23 5449
ce2cded5
L
5450
5451
5452
5453if test -n "$ac_tool_prefix"; then
5454 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5455set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5456echo "$as_me:$LINENO: checking for $ac_word" >&5
5457echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5458if test "${ac_cv_prog_RANLIB+set}" = set; then
42ecbf5e
DJ
5459 echo $ECHO_N "(cached) $ECHO_C" >&6
5460else
ce2cded5
L
5461 if test -n "$RANLIB"; then
5462 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5463else
5464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5465for as_dir in $PATH
5466do
5467 IFS=$as_save_IFS
5468 test -z "$as_dir" && as_dir=.
5469 for ac_exec_ext in '' $ac_executable_extensions; do
5470 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5471 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5473 break 2
5474 fi
5475done
5476done
d7040cdb 5477
ce2cded5
L
5478fi
5479fi
5480RANLIB=$ac_cv_prog_RANLIB
5481if test -n "$RANLIB"; then
5482 echo "$as_me:$LINENO: result: $RANLIB" >&5
5483echo "${ECHO_T}$RANLIB" >&6
5484else
5485 echo "$as_me:$LINENO: result: no" >&5
5486echo "${ECHO_T}no" >&6
5487fi
d7040cdb 5488
20e95c23 5489fi
ce2cded5
L
5490if test -z "$ac_cv_prog_RANLIB"; then
5491 ac_ct_RANLIB=$RANLIB
5492 # Extract the first word of "ranlib", so it can be a program name with args.
5493set dummy ranlib; ac_word=$2
5494echo "$as_me:$LINENO: checking for $ac_word" >&5
5495echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5496if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5497 echo $ECHO_N "(cached) $ECHO_C" >&6
5498else
5499 if test -n "$ac_ct_RANLIB"; then
5500 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5501else
5502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5503for as_dir in $PATH
5504do
5505 IFS=$as_save_IFS
5506 test -z "$as_dir" && as_dir=.
5507 for ac_exec_ext in '' $ac_executable_extensions; do
5508 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5509 ac_cv_prog_ac_ct_RANLIB="ranlib"
5510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5511 break 2
5512 fi
5513done
5514done
d7040cdb 5515
ce2cded5
L
5516 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5517fi
5518fi
5519ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5520if test -n "$ac_ct_RANLIB"; then
5521 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5522echo "${ECHO_T}$ac_ct_RANLIB" >&6
20e95c23
DJ
5523else
5524 echo "$as_me:$LINENO: result: no" >&5
5525echo "${ECHO_T}no" >&6
5526fi
5527
ce2cded5
L
5528 RANLIB=$ac_ct_RANLIB
5529else
5530 RANLIB="$ac_cv_prog_RANLIB"
d7040cdb 5531fi
20e95c23 5532
ce2cded5 5533test -z "$RANLIB" && RANLIB=:
20e95c23 5534
20e95c23
DJ
5535
5536
5537
5538
d7040cdb 5539
ce2cded5
L
5540# Determine commands to create old-style static archives.
5541old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5542old_postinstall_cmds='chmod 644 $oldlib'
5543old_postuninstall_cmds=
d7040cdb 5544
ce2cded5
L
5545if test -n "$RANLIB"; then
5546 case $host_os in
5547 openbsd*)
5548 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5549 ;;
5550 *)
5551 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5552 ;;
5553 esac
5554 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5555fi
d7040cdb
SE
5556
5557
5558
5559
5560
5561
5562
d7040cdb 5563
d7040cdb 5564
d7040cdb 5565
d7040cdb 5566
d7040cdb 5567
d7040cdb
SE
5568
5569
d7040cdb 5570
d7040cdb 5571
d7040cdb 5572
d7040cdb 5573
d7040cdb 5574
42ecbf5e 5575
d7040cdb
SE
5576
5577
5578
5579
5580
5581
d7040cdb 5582
d7040cdb 5583
d7040cdb 5584
d7040cdb 5585
d7040cdb 5586
d7040cdb 5587
d7040cdb 5588
d7040cdb 5589
ce2cded5
L
5590# If no C compiler was specified, use CC.
5591LTCC=${LTCC-"$CC"}
d7040cdb 5592
ce2cded5
L
5593# If no C compiler flags were specified, use CFLAGS.
5594LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d7040cdb 5595
ce2cded5
L
5596# Allow CC to be a program name with arguments.
5597compiler=$CC
d7040cdb 5598
d7040cdb 5599
ce2cded5
L
5600# Check for command to grab the raw symbol name followed by C symbol from nm.
5601echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5602echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5603if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5604 echo $ECHO_N "(cached) $ECHO_C" >&6
5605else
d7040cdb 5606
ce2cded5
L
5607# These are sane defaults that work on at least a few old systems.
5608# [They come from Ultrix. What could be older than Ultrix?!! ;)]
d7040cdb 5609
ce2cded5
L
5610# Character class describing NM global symbol codes.
5611symcode='[BCDEGRST]'
d7040cdb 5612
ce2cded5
L
5613# Regexp to match symbols that can be accessed directly from C.
5614sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
d7040cdb 5615
ce2cded5
L
5616# Define system-specific variables.
5617case $host_os in
5618aix*)
5619 symcode='[BCDT]'
5620 ;;
5621cygwin* | mingw* | pw32*)
5622 symcode='[ABCDGISTW]'
5623 ;;
5624hpux*)
5625 if test "$host_cpu" = ia64; then
5626 symcode='[ABCDEGRST]'
5627 fi
5628 ;;
5629irix* | nonstopux*)
5630 symcode='[BCDEGRST]'
5631 ;;
5632osf*)
5633 symcode='[BCDEGQRST]'
5634 ;;
5635solaris*)
5636 symcode='[BDRT]'
5637 ;;
5638sco3.2v5*)
5639 symcode='[DT]'
5640 ;;
5641sysv4.2uw2*)
5642 symcode='[DT]'
5643 ;;
5644sysv5* | sco5v6* | unixware* | OpenUNIX*)
5645 symcode='[ABDT]'
5646 ;;
5647sysv4)
5648 symcode='[DFNSTU]'
5649 ;;
5650esac
d7040cdb 5651
ce2cded5
L
5652# If we're using GNU nm, then use its standard symbol codes.
5653case `$NM -V 2>&1` in
5654*GNU* | *'with BFD'*)
5655 symcode='[ABCDGIRSTW]' ;;
5656esac
d7040cdb 5657
ce2cded5
L
5658# Transform an extracted symbol line into a proper C declaration.
5659# Some systems (esp. on ia64) link data and code symbols differently,
5660# so use this general approach.
5661lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
d7040cdb 5662
ce2cded5
L
5663# Transform an extracted symbol line into symbol name and symbol address
5664lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
d7040cdb 5665
ce2cded5
L
5666# Handle CRLF in mingw tool chain
5667opt_cr=
5668case $build_os in
5669mingw*)
5670 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5671 ;;
5672esac
d7040cdb 5673
ce2cded5
L
5674# Try without a prefix underscore, then with it.
5675for ac_symprfx in "" "_"; do
d7040cdb 5676
ce2cded5
L
5677 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5678 symxfrm="\\1 $ac_symprfx\\2 \\2"
d7040cdb 5679
ce2cded5
L
5680 # Write the raw and C identifiers.
5681 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5682 # Fake it for dumpbin and say T for any non-static function
5683 # and D for any global variable.
5684 # Also find C++ and __fastcall symbols from MSVC++,
5685 # which start with @ or ?.
5686 lt_cv_sys_global_symbol_pipe="$AWK '"\
5687" {last_section=section; section=\$ 3};"\
5688" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5689" \$ 0!~/External *\|/{next};"\
5690" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5691" {if(hide[section]) next};"\
5692" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5693" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5694" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5695" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5696" ' prfx=^$ac_symprfx"
5697 else
5698 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5699 fi
d7040cdb 5700
ce2cded5
L
5701 # Check to see that the pipe works correctly.
5702 pipe_works=no
d7040cdb 5703
ce2cded5
L
5704 rm -f conftest*
5705 cat > conftest.$ac_ext <<_LT_EOF
5706#ifdef __cplusplus
5707extern "C" {
5708#endif
5709char nm_test_var;
5710void nm_test_func(void);
5711void nm_test_func(void){}
5712#ifdef __cplusplus
5713}
5714#endif
5715int main(){nm_test_var='a';nm_test_func();return(0);}
5716_LT_EOF
d7040cdb 5717
ce2cded5
L
5718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5719 (eval $ac_compile) 2>&5
5720 ac_status=$?
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); }; then
5723 # Now try to grab the symbols.
5724 nlist=conftest.nm
5725 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5726 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5727 ac_status=$?
5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 (exit $ac_status); } && test -s "$nlist"; then
5730 # Try sorting and uniquifying the output.
5731 if sort "$nlist" | uniq > "$nlist"T; then
5732 mv -f "$nlist"T "$nlist"
5733 else
5734 rm -f "$nlist"T
5735 fi
d7040cdb 5736
ce2cded5
L
5737 # Make sure that we snagged all the symbols we need.
5738 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5739 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5740 cat <<_LT_EOF > conftest.$ac_ext
5741#ifdef __cplusplus
5742extern "C" {
5743#endif
d7040cdb 5744
ce2cded5
L
5745_LT_EOF
5746 # Now generate the symbol file.
5747 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
d7040cdb 5748
ce2cded5 5749 cat <<_LT_EOF >> conftest.$ac_ext
d7040cdb 5750
ce2cded5
L
5751/* The mapping between symbol names and symbols. */
5752const struct {
5753 const char *name;
5754 void *address;
5755}
5756lt__PROGRAM__LTX_preloaded_symbols[] =
5757{
5758 { "@PROGRAM@", (void *) 0 },
5759_LT_EOF
5760 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5761 cat <<\_LT_EOF >> conftest.$ac_ext
5762 {0, (void *) 0}
5763};
d7040cdb 5764
ce2cded5
L
5765/* This works around a problem in FreeBSD linker */
5766#ifdef FREEBSD_WORKAROUND
5767static const void *lt_preloaded_setup() {
5768 return lt__PROGRAM__LTX_preloaded_symbols;
5769}
5770#endif
d7040cdb 5771
ce2cded5
L
5772#ifdef __cplusplus
5773}
5774#endif
5775_LT_EOF
5776 # Now try linking the two files.
5777 mv conftest.$ac_objext conftstm.$ac_objext
5778 lt_save_LIBS="$LIBS"
5779 lt_save_CFLAGS="$CFLAGS"
5780 LIBS="conftstm.$ac_objext"
5781 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5783 (eval $ac_link) 2>&5
5784 ac_status=$?
5785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5787 pipe_works=yes
5788 fi
5789 LIBS="$lt_save_LIBS"
5790 CFLAGS="$lt_save_CFLAGS"
5791 else
5792 echo "cannot find nm_test_func in $nlist" >&5
5793 fi
5794 else
5795 echo "cannot find nm_test_var in $nlist" >&5
5796 fi
5797 else
5798 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5799 fi
5800 else
5801 echo "$progname: failed program was:" >&5
5802 cat conftest.$ac_ext >&5
5803 fi
5804 rm -f conftest* conftst*
d7040cdb 5805
ce2cded5
L
5806 # Do not use the global_symbol_pipe unless it works.
5807 if test "$pipe_works" = yes; then
5808 break
5809 else
5810 lt_cv_sys_global_symbol_pipe=
5811 fi
5812done
d7040cdb 5813
42ecbf5e 5814fi
d7040cdb 5815
ce2cded5
L
5816if test -z "$lt_cv_sys_global_symbol_pipe"; then
5817 lt_cv_sys_global_symbol_to_cdecl=
5818fi
5819if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5820 echo "$as_me:$LINENO: result: failed" >&5
5821echo "${ECHO_T}failed" >&6
42ecbf5e 5822else
ce2cded5
L
5823 echo "$as_me:$LINENO: result: ok" >&5
5824echo "${ECHO_T}ok" >&6
42ecbf5e
DJ
5825fi
5826
42ecbf5e 5827
d7040cdb
SE
5828
5829
5830
5831
5832
20e95c23 5833
d7040cdb 5834
d7040cdb
SE
5835
5836
5837
5838
5839
5840
5841
20e95c23 5842
ce2cded5
L
5843# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5844if test "${enable_libtool_lock+set}" = set; then
5845 enableval="$enable_libtool_lock"
d7040cdb 5846
ce2cded5
L
5847fi;
5848test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
d7040cdb 5849
ce2cded5
L
5850# Some flags need to be propagated to the compiler or linker for good
5851# libtool support.
5852case $host in
5853ia64-*-hpux*)
5854 # Find out which ABI we are using.
5855 echo 'int i;' > conftest.$ac_ext
5856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5857 (eval $ac_compile) 2>&5
5858 ac_status=$?
5859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860 (exit $ac_status); }; then
5861 case `/usr/bin/file conftest.$ac_objext` in
5862 *ELF-32*)
5863 HPUX_IA64_MODE="32"
5864 ;;
5865 *ELF-64*)
5866 HPUX_IA64_MODE="64"
5867 ;;
5868 esac
5869 fi
5870 rm -rf conftest*
5871 ;;
5872*-*-irix6*)
5873 # Find out which ABI we are using.
4474d12b 5874 echo '#line 5874 "configure"' > conftest.$ac_ext
ce2cded5
L
5875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5876 (eval $ac_compile) 2>&5
5877 ac_status=$?
5878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879 (exit $ac_status); }; then
5880 if test "$lt_cv_prog_gnu_ld" = yes; then
5881 case `/usr/bin/file conftest.$ac_objext` in
5882 *32-bit*)
5883 LD="${LD-ld} -melf32bsmip"
5884 ;;
5885 *N32*)
5886 LD="${LD-ld} -melf32bmipn32"
5887 ;;
5888 *64-bit*)
5889 LD="${LD-ld} -melf64bmip"
5890 ;;
5891 esac
5892 else
5893 case `/usr/bin/file conftest.$ac_objext` in
5894 *32-bit*)
5895 LD="${LD-ld} -32"
5896 ;;
5897 *N32*)
5898 LD="${LD-ld} -n32"
5899 ;;
5900 *64-bit*)
5901 LD="${LD-ld} -64"
5902 ;;
5903 esac
5904 fi
5905 fi
5906 rm -rf conftest*
5907 ;;
d7040cdb 5908
ce2cded5
L
5909x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5910s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5911 # Find out which ABI we are using.
5912 echo 'int i;' > conftest.$ac_ext
5913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5914 (eval $ac_compile) 2>&5
5915 ac_status=$?
5916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917 (exit $ac_status); }; then
5918 case `/usr/bin/file conftest.o` in
5919 *32-bit*)
5920 case $host in
5921 x86_64-*kfreebsd*-gnu)
5922 LD="${LD-ld} -m elf_i386_fbsd"
5923 ;;
5924 x86_64-*linux*)
5925 LD="${LD-ld} -m elf_i386"
5926 ;;
5927 ppc64-*linux*|powerpc64-*linux*)
5928 LD="${LD-ld} -m elf32ppclinux"
5929 ;;
5930 s390x-*linux*)
5931 LD="${LD-ld} -m elf_s390"
5932 ;;
5933 sparc64-*linux*)
5934 LD="${LD-ld} -m elf32_sparc"
5935 ;;
5936 esac
5937 ;;
5938 *64-bit*)
5939 case $host in
5940 x86_64-*kfreebsd*-gnu)
5941 LD="${LD-ld} -m elf_x86_64_fbsd"
5942 ;;
5943 x86_64-*linux*)
5944 LD="${LD-ld} -m elf_x86_64"
5945 ;;
5946 ppc*-*linux*|powerpc*-*linux*)
5947 LD="${LD-ld} -m elf64ppc"
5948 ;;
5949 s390*-*linux*|s390*-*tpf*)
5950 LD="${LD-ld} -m elf64_s390"
5951 ;;
5952 sparc*-*linux*)
5953 LD="${LD-ld} -m elf64_sparc"
5954 ;;
5955 esac
5956 ;;
5957 esac
5958 fi
5959 rm -rf conftest*
5960 ;;
d7040cdb 5961
ce2cded5
L
5962*-*-sco3.2v5*)
5963 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5964 SAVE_CFLAGS="$CFLAGS"
5965 CFLAGS="$CFLAGS -belf"
5966 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5967echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5968if test "${lt_cv_cc_needs_belf+set}" = set; then
20e95c23
DJ
5969 echo $ECHO_N "(cached) $ECHO_C" >&6
5970else
ce2cded5
L
5971 ac_ext=c
5972ac_cpp='$CPP $CPPFLAGS'
5973ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5974ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5975ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 5976
ce2cded5
L
5977 cat >conftest.$ac_ext <<_ACEOF
5978/* confdefs.h. */
5979_ACEOF
5980cat confdefs.h >>conftest.$ac_ext
5981cat >>conftest.$ac_ext <<_ACEOF
5982/* end confdefs.h. */
d7040cdb 5983
ce2cded5
L
5984int
5985main ()
5986{
d7040cdb 5987
ce2cded5
L
5988 ;
5989 return 0;
5990}
5991_ACEOF
5992rm -f conftest.$ac_objext conftest$ac_exeext
5993if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5994 (eval $ac_link) 2>conftest.er1
5995 ac_status=$?
5996 grep -v '^ *+' conftest.er1 >conftest.err
5997 rm -f conftest.er1
5998 cat conftest.err >&5
5999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000 (exit $ac_status); } &&
4474d12b 6001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ce2cded5
L
6002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6003 (eval $ac_try) 2>&5
6004 ac_status=$?
6005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006 (exit $ac_status); }; } &&
6007 { ac_try='test -s conftest$ac_exeext'
6008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6009 (eval $ac_try) 2>&5
6010 ac_status=$?
6011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012 (exit $ac_status); }; }; then
6013 lt_cv_cc_needs_belf=yes
d7040cdb 6014else
ce2cded5
L
6015 echo "$as_me: failed program was:" >&5
6016sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 6017
ce2cded5
L
6018lt_cv_cc_needs_belf=no
6019fi
6020rm -f conftest.err conftest.$ac_objext \
6021 conftest$ac_exeext conftest.$ac_ext
6022 ac_ext=c
6023ac_cpp='$CPP $CPPFLAGS'
6024ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6025ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6026ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 6027
ce2cded5
L
6028fi
6029echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6030echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6031 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6032 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6033 CFLAGS="$SAVE_CFLAGS"
6034 fi
6035 ;;
6036sparc*-*solaris*)
6037 # Find out which ABI we are using.
6038 echo 'int i;' > conftest.$ac_ext
6039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6040 (eval $ac_compile) 2>&5
6041 ac_status=$?
6042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043 (exit $ac_status); }; then
6044 case `/usr/bin/file conftest.o` in
6045 *64-bit*)
6046 case $lt_cv_prog_gnu_ld in
6047 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6048 *) LD="${LD-ld} -64" ;;
6049 esac
6050 ;;
6051 esac
6052 fi
6053 rm -rf conftest*
6054 ;;
6055esac
d7040cdb 6056
ce2cded5 6057need_locks="$enable_libtool_lock"
d7040cdb 6058
ce2cded5
L
6059ac_ext=c
6060ac_cpp='$CPP $CPPFLAGS'
6061ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6062ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6063ac_compiler_gnu=$ac_cv_c_compiler_gnu
6064echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6065echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6066# On Suns, sometimes $CPP names a directory.
6067if test -n "$CPP" && test -d "$CPP"; then
6068 CPP=
6069fi
6070if test -z "$CPP"; then
6071 if test "${ac_cv_prog_CPP+set}" = set; then
6072 echo $ECHO_N "(cached) $ECHO_C" >&6
6073else
6074 # Double quotes because CPP needs to be expanded
6075 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6076 do
6077 ac_preproc_ok=false
6078for ac_c_preproc_warn_flag in '' yes
6079do
6080 # Use a header file that comes with gcc, so configuring glibc
6081 # with a fresh cross-compiler works.
6082 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6083 # <limits.h> exists even on freestanding compilers.
6084 # On the NeXT, cc -E runs the code through the compiler's parser,
6085 # not just through cpp. "Syntax error" is here to catch this case.
6086 cat >conftest.$ac_ext <<_ACEOF
6087/* confdefs.h. */
6088_ACEOF
6089cat confdefs.h >>conftest.$ac_ext
6090cat >>conftest.$ac_ext <<_ACEOF
6091/* end confdefs.h. */
6092#ifdef __STDC__
6093# include <limits.h>
6094#else
6095# include <assert.h>
6096#endif
6097 Syntax error
6098_ACEOF
6099if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6100 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6101 ac_status=$?
6102 grep -v '^ *+' conftest.er1 >conftest.err
6103 rm -f conftest.er1
6104 cat conftest.err >&5
6105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6106 (exit $ac_status); } >/dev/null; then
6107 if test -s conftest.err; then
6108 ac_cpp_err=$ac_c_preproc_warn_flag
6109 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6110 else
6111 ac_cpp_err=
6112 fi
6113else
6114 ac_cpp_err=yes
6115fi
6116if test -z "$ac_cpp_err"; then
6117 :
6118else
6119 echo "$as_me: failed program was:" >&5
6120sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 6121
ce2cded5
L
6122 # Broken: fails on valid input.
6123continue
6124fi
6125rm -f conftest.err conftest.$ac_ext
d7040cdb 6126
ce2cded5
L
6127 # OK, works on sane cases. Now check whether non-existent headers
6128 # can be detected and how.
6129 cat >conftest.$ac_ext <<_ACEOF
6130/* confdefs.h. */
6131_ACEOF
6132cat confdefs.h >>conftest.$ac_ext
6133cat >>conftest.$ac_ext <<_ACEOF
6134/* end confdefs.h. */
6135#include <ac_nonexistent.h>
6136_ACEOF
6137if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6138 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6139 ac_status=$?
6140 grep -v '^ *+' conftest.er1 >conftest.err
6141 rm -f conftest.er1
6142 cat conftest.err >&5
6143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144 (exit $ac_status); } >/dev/null; then
6145 if test -s conftest.err; then
6146 ac_cpp_err=$ac_c_preproc_warn_flag
6147 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6148 else
6149 ac_cpp_err=
6150 fi
6151else
6152 ac_cpp_err=yes
6153fi
6154if test -z "$ac_cpp_err"; then
6155 # Broken: success on invalid input.
6156continue
6157else
6158 echo "$as_me: failed program was:" >&5
6159sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 6160
ce2cded5
L
6161 # Passes both tests.
6162ac_preproc_ok=:
6163break
6164fi
6165rm -f conftest.err conftest.$ac_ext
d7040cdb 6166
ce2cded5
L
6167done
6168# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6169rm -f conftest.err conftest.$ac_ext
6170if $ac_preproc_ok; then
6171 break
6172fi
d7040cdb 6173
ce2cded5
L
6174 done
6175 ac_cv_prog_CPP=$CPP
d7040cdb 6176
ce2cded5
L
6177fi
6178 CPP=$ac_cv_prog_CPP
6179else
6180 ac_cv_prog_CPP=$CPP
6181fi
6182echo "$as_me:$LINENO: result: $CPP" >&5
6183echo "${ECHO_T}$CPP" >&6
6184ac_preproc_ok=false
6185for ac_c_preproc_warn_flag in '' yes
6186do
6187 # Use a header file that comes with gcc, so configuring glibc
6188 # with a fresh cross-compiler works.
6189 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6190 # <limits.h> exists even on freestanding compilers.
6191 # On the NeXT, cc -E runs the code through the compiler's parser,
6192 # not just through cpp. "Syntax error" is here to catch this case.
6193 cat >conftest.$ac_ext <<_ACEOF
6194/* confdefs.h. */
6195_ACEOF
6196cat confdefs.h >>conftest.$ac_ext
6197cat >>conftest.$ac_ext <<_ACEOF
6198/* end confdefs.h. */
6199#ifdef __STDC__
6200# include <limits.h>
6201#else
6202# include <assert.h>
6203#endif
6204 Syntax error
6205_ACEOF
6206if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6207 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6208 ac_status=$?
6209 grep -v '^ *+' conftest.er1 >conftest.err
6210 rm -f conftest.er1
6211 cat conftest.err >&5
6212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213 (exit $ac_status); } >/dev/null; then
6214 if test -s conftest.err; then
6215 ac_cpp_err=$ac_c_preproc_warn_flag
6216 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6217 else
6218 ac_cpp_err=
6219 fi
6220else
6221 ac_cpp_err=yes
6222fi
6223if test -z "$ac_cpp_err"; then
6224 :
6225else
6226 echo "$as_me: failed program was:" >&5
6227sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 6228
ce2cded5
L
6229 # Broken: fails on valid input.
6230continue
6231fi
6232rm -f conftest.err conftest.$ac_ext
d7040cdb 6233
ce2cded5
L
6234 # OK, works on sane cases. Now check whether non-existent headers
6235 # can be detected and how.
6236 cat >conftest.$ac_ext <<_ACEOF
6237/* confdefs.h. */
6238_ACEOF
6239cat confdefs.h >>conftest.$ac_ext
6240cat >>conftest.$ac_ext <<_ACEOF
6241/* end confdefs.h. */
6242#include <ac_nonexistent.h>
6243_ACEOF
6244if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6245 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6246 ac_status=$?
6247 grep -v '^ *+' conftest.er1 >conftest.err
6248 rm -f conftest.er1
6249 cat conftest.err >&5
6250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251 (exit $ac_status); } >/dev/null; then
6252 if test -s conftest.err; then
6253 ac_cpp_err=$ac_c_preproc_warn_flag
6254 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6255 else
6256 ac_cpp_err=
6257 fi
6258else
6259 ac_cpp_err=yes
6260fi
6261if test -z "$ac_cpp_err"; then
6262 # Broken: success on invalid input.
6263continue
6264else
6265 echo "$as_me: failed program was:" >&5
6266sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 6267
ce2cded5
L
6268 # Passes both tests.
6269ac_preproc_ok=:
6270break
6271fi
6272rm -f conftest.err conftest.$ac_ext
d7040cdb 6273
ce2cded5
L
6274done
6275# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6276rm -f conftest.err conftest.$ac_ext
6277if $ac_preproc_ok; then
6278 :
6279else
7a283e07
RW
6280 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6281echo "$as_me: error: in \`$ac_pwd':" >&2;}
6282{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
ce2cded5
L
6283See \`config.log' for more details." >&5
6284echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6285See \`config.log' for more details." >&2;}
7a283e07 6286 { (exit 1); exit 1; }; }; }
ce2cded5 6287fi
d7040cdb 6288
ce2cded5
L
6289ac_ext=c
6290ac_cpp='$CPP $CPPFLAGS'
6291ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6292ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6293ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 6294
d7040cdb 6295
ce2cded5
L
6296echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6297echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6298if test "${ac_cv_header_stdc+set}" = set; then
6299 echo $ECHO_N "(cached) $ECHO_C" >&6
6300else
6301 cat >conftest.$ac_ext <<_ACEOF
6302/* confdefs.h. */
6303_ACEOF
6304cat confdefs.h >>conftest.$ac_ext
6305cat >>conftest.$ac_ext <<_ACEOF
6306/* end confdefs.h. */
6307#include <stdlib.h>
6308#include <stdarg.h>
6309#include <string.h>
6310#include <float.h>
d7040cdb 6311
ce2cded5
L
6312int
6313main ()
6314{
d7040cdb 6315
20e95c23
DJ
6316 ;
6317 return 0;
6318}
42ecbf5e 6319_ACEOF
ce2cded5
L
6320rm -f conftest.$ac_objext
6321if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6322 (eval $ac_compile) 2>conftest.er1
42ecbf5e
DJ
6323 ac_status=$?
6324 grep -v '^ *+' conftest.er1 >conftest.err
6325 rm -f conftest.er1
6326 cat conftest.err >&5
6327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20e95c23 6328 (exit $ac_status); } &&
4474d12b 6329 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20e95c23
DJ
6330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6331 (eval $ac_try) 2>&5
6332 ac_status=$?
6333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334 (exit $ac_status); }; } &&
ce2cded5 6335 { ac_try='test -s conftest.$ac_objext'
20e95c23
DJ
6336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6337 (eval $ac_try) 2>&5
6338 ac_status=$?
6339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340 (exit $ac_status); }; }; then
ce2cded5 6341 ac_cv_header_stdc=yes
42ecbf5e
DJ
6342else
6343 echo "$as_me: failed program was:" >&5
6344sed 's/^/| /' conftest.$ac_ext >&5
6345
ce2cded5 6346ac_cv_header_stdc=no
42ecbf5e 6347fi
ce2cded5 6348rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d7040cdb 6349
ce2cded5
L
6350if test $ac_cv_header_stdc = yes; then
6351 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6352 cat >conftest.$ac_ext <<_ACEOF
42ecbf5e
DJ
6353/* confdefs.h. */
6354_ACEOF
6355cat confdefs.h >>conftest.$ac_ext
6356cat >>conftest.$ac_ext <<_ACEOF
6357/* end confdefs.h. */
ce2cded5 6358#include <string.h>
20e95c23 6359
42ecbf5e 6360_ACEOF
ce2cded5
L
6361if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6362 $EGREP "memchr" >/dev/null 2>&1; then
6363 :
6364else
6365 ac_cv_header_stdc=no
6366fi
6367rm -f conftest*
d7040cdb 6368
d7040cdb 6369fi
ce2cded5
L
6370
6371if test $ac_cv_header_stdc = yes; then
6372 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6373 cat >conftest.$ac_ext <<_ACEOF
6374/* confdefs.h. */
6375_ACEOF
6376cat confdefs.h >>conftest.$ac_ext
6377cat >>conftest.$ac_ext <<_ACEOF
6378/* end confdefs.h. */
6379#include <stdlib.h>
6380
6381_ACEOF
6382if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6383 $EGREP "free" >/dev/null 2>&1; then
6384 :
252b5132 6385else
ce2cded5
L
6386 ac_cv_header_stdc=no
6387fi
6388rm -f conftest*
42ecbf5e 6389
20e95c23 6390fi
d7040cdb 6391
ce2cded5
L
6392if test $ac_cv_header_stdc = yes; then
6393 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6394 if test "$cross_compiling" = yes; then
6395 :
6396else
6397 cat >conftest.$ac_ext <<_ACEOF
6398/* confdefs.h. */
6399_ACEOF
6400cat confdefs.h >>conftest.$ac_ext
6401cat >>conftest.$ac_ext <<_ACEOF
6402/* end confdefs.h. */
6403#include <ctype.h>
6404#if ((' ' & 0x0FF) == 0x020)
6405# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6406# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6407#else
6408# define ISLOWER(c) \
6409 (('a' <= (c) && (c) <= 'i') \
6410 || ('j' <= (c) && (c) <= 'r') \
6411 || ('s' <= (c) && (c) <= 'z'))
6412# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6413#endif
42ecbf5e 6414
ce2cded5
L
6415#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6416int
6417main ()
6418{
6419 int i;
6420 for (i = 0; i < 256; i++)
6421 if (XOR (islower (i), ISLOWER (i))
6422 || toupper (i) != TOUPPER (i))
6423 exit(2);
6424 exit (0);
6425}
6426_ACEOF
6427rm -f conftest$ac_exeext
6428if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6429 (eval $ac_link) 2>&5
6430 ac_status=$?
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6434 (eval $ac_try) 2>&5
6435 ac_status=$?
6436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437 (exit $ac_status); }; }; then
6438 :
6439else
6440 echo "$as_me: program exited with status $ac_status" >&5
6441echo "$as_me: failed program was:" >&5
6442sed 's/^/| /' conftest.$ac_ext >&5
42ecbf5e 6443
ce2cded5
L
6444( exit $ac_status )
6445ac_cv_header_stdc=no
6446fi
6447rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6448fi
6449fi
6450fi
6451echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6452echo "${ECHO_T}$ac_cv_header_stdc" >&6
6453if test $ac_cv_header_stdc = yes; then
e5a52504 6454
ce2cded5
L
6455cat >>confdefs.h <<\_ACEOF
6456#define STDC_HEADERS 1
6457_ACEOF
d7040cdb 6458
ac48eca1 6459fi
e5a52504 6460
ce2cded5 6461# On IRIX 5.3, sys/types and inttypes.h are conflicting.
d7040cdb 6462
d7040cdb 6463
d7040cdb 6464
d7040cdb 6465
d7040cdb 6466
d7040cdb 6467
d7040cdb 6468
d7040cdb 6469
d7040cdb 6470
ce2cded5
L
6471for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6472 inttypes.h stdint.h unistd.h
6473do
6474as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6475echo "$as_me:$LINENO: checking for $ac_header" >&5
6476echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6477if eval "test \"\${$as_ac_Header+set}\" = set"; then
6478 echo $ECHO_N "(cached) $ECHO_C" >&6
6479else
6480 cat >conftest.$ac_ext <<_ACEOF
6481/* confdefs.h. */
6482_ACEOF
6483cat confdefs.h >>conftest.$ac_ext
6484cat >>conftest.$ac_ext <<_ACEOF
6485/* end confdefs.h. */
6486$ac_includes_default
d7040cdb 6487
ce2cded5
L
6488#include <$ac_header>
6489_ACEOF
6490rm -f conftest.$ac_objext
6491if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6492 (eval $ac_compile) 2>conftest.er1
6493 ac_status=$?
6494 grep -v '^ *+' conftest.er1 >conftest.err
6495 rm -f conftest.er1
6496 cat conftest.err >&5
6497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498 (exit $ac_status); } &&
4474d12b 6499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ce2cded5
L
6500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6501 (eval $ac_try) 2>&5
6502 ac_status=$?
6503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6504 (exit $ac_status); }; } &&
6505 { ac_try='test -s conftest.$ac_objext'
6506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6507 (eval $ac_try) 2>&5
6508 ac_status=$?
6509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6510 (exit $ac_status); }; }; then
6511 eval "$as_ac_Header=yes"
6512else
6513 echo "$as_me: failed program was:" >&5
6514sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 6515
ce2cded5
L
6516eval "$as_ac_Header=no"
6517fi
6518rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6519fi
6520echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6521echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6522if test `eval echo '${'$as_ac_Header'}'` = yes; then
6523 cat >>confdefs.h <<_ACEOF
6524#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6525_ACEOF
d7040cdb 6526
ce2cded5
L
6527fi
6528
6529done
6530
6531
6532
6533for ac_header in dlfcn.h
6534do
6535as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6536echo "$as_me:$LINENO: checking for $ac_header" >&5
6537echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6538if eval "test \"\${$as_ac_Header+set}\" = set"; then
6539 echo $ECHO_N "(cached) $ECHO_C" >&6
6540else
6541 cat >conftest.$ac_ext <<_ACEOF
6542/* confdefs.h. */
42ecbf5e 6543_ACEOF
ce2cded5
L
6544cat confdefs.h >>conftest.$ac_ext
6545cat >>conftest.$ac_ext <<_ACEOF
6546/* end confdefs.h. */
6547$ac_includes_default
6548
6549#include <$ac_header>
6550_ACEOF
6551rm -f conftest.$ac_objext
6552if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6553 (eval $ac_compile) 2>conftest.er1
42ecbf5e
DJ
6554 ac_status=$?
6555 grep -v '^ *+' conftest.er1 >conftest.err
6556 rm -f conftest.er1
6557 cat conftest.err >&5
6558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6559 (exit $ac_status); } &&
4474d12b 6560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42ecbf5e
DJ
6561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6562 (eval $ac_try) 2>&5
6563 ac_status=$?
6564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565 (exit $ac_status); }; } &&
ce2cded5 6566 { ac_try='test -s conftest.$ac_objext'
42ecbf5e
DJ
6567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6568 (eval $ac_try) 2>&5
6569 ac_status=$?
6570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6571 (exit $ac_status); }; }; then
ce2cded5 6572 eval "$as_ac_Header=yes"
252b5132 6573else
42ecbf5e
DJ
6574 echo "$as_me: failed program was:" >&5
6575sed 's/^/| /' conftest.$ac_ext >&5
6576
ce2cded5 6577eval "$as_ac_Header=no"
252b5132 6578fi
ce2cded5
L
6579rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6580fi
6581echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6582echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6583if test `eval echo '${'$as_ac_Header'}'` = yes; then
6584 cat >>confdefs.h <<_ACEOF
6585#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6586_ACEOF
d7040cdb 6587
ce2cded5 6588fi
d7040cdb 6589
ce2cded5 6590done
d7040cdb 6591
d7040cdb 6592
d7040cdb 6593
ce2cded5
L
6594# This can be used to rebuild libtool when needed
6595LIBTOOL_DEPS="$ltmain"
d7040cdb 6596
ce2cded5
L
6597# Always use our own libtool.
6598LIBTOOL='$(SHELL) $(top_builddir)/libtool'
d7040cdb 6599
d7040cdb 6600
d7040cdb 6601
d7040cdb 6602
d7040cdb 6603
d7040cdb 6604
d7040cdb 6605
d7040cdb 6606
d7040cdb 6607
d7040cdb 6608
d7040cdb 6609
d7040cdb 6610
d7040cdb 6611
d7040cdb 6612
d7040cdb 6613
d7040cdb 6614
d7040cdb
SE
6615
6616
6617
6618
6619
6620
6621
6622
6623
ce2cded5 6624test -z "$LN_S" && LN_S="ln -s"
d7040cdb
SE
6625
6626
6627
6628
6629
6630
d7040cdb
SE
6631
6632
6633
6634
6635
6636
6637
6638
ce2cded5
L
6639if test -n "${ZSH_VERSION+set}" ; then
6640 setopt NO_GLOB_SUBST
6641fi
d7040cdb 6642
ce2cded5
L
6643echo "$as_me:$LINENO: checking for objdir" >&5
6644echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6645if test "${lt_cv_objdir+set}" = set; then
6646 echo $ECHO_N "(cached) $ECHO_C" >&6
6647else
6648 rm -f .libs 2>/dev/null
6649mkdir .libs 2>/dev/null
6650if test -d .libs; then
6651 lt_cv_objdir=.libs
6652else
6653 # MS-DOS does not allow filenames that begin with a dot.
6654 lt_cv_objdir=_libs
6655fi
6656rmdir .libs 2>/dev/null
6657fi
6658echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6659echo "${ECHO_T}$lt_cv_objdir" >&6
6660objdir=$lt_cv_objdir
d7040cdb
SE
6661
6662
6663
6664
6665
ce2cded5
L
6666cat >>confdefs.h <<_ACEOF
6667#define LT_OBJDIR "$lt_cv_objdir/"
6668_ACEOF
d7040cdb
SE
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
ce2cded5
L
6686case $host_os in
6687aix3*)
6688 # AIX sometimes has problems with the GCC collect2 program. For some
6689 # reason, if we set the COLLECT_NAMES environment variable, the problems
6690 # vanish in a puff of smoke.
6691 if test "X${COLLECT_NAMES+set}" != Xset; then
6692 COLLECT_NAMES=
6693 export COLLECT_NAMES
6694 fi
6695 ;;
6696esac
d7040cdb 6697
ce2cded5
L
6698# Sed substitution that helps us do robust quoting. It backslashifies
6699# metacharacters that are still active within double-quoted strings.
6700sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
d7040cdb 6701
ce2cded5
L
6702# Same as above, but do not quote variable references.
6703double_quote_subst='s/\(["`\\]\)/\\\1/g'
d7040cdb 6704
ce2cded5
L
6705# Sed substitution to delay expansion of an escaped shell variable in a
6706# double_quote_subst'ed string.
6707delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
d7040cdb 6708
ce2cded5
L
6709# Sed substitution to delay expansion of an escaped single quote.
6710delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
d7040cdb 6711
ce2cded5
L
6712# Sed substitution to avoid accidental globbing in evaled expressions
6713no_glob_subst='s/\*/\\\*/g'
d7040cdb 6714
ce2cded5
L
6715# Global variables:
6716ofile=libtool
6717can_build_shared=yes
d7040cdb 6718
ce2cded5
L
6719# All known linkers require a `.a' archive for static linking (except MSVC,
6720# which needs '.lib').
6721libext=a
d7040cdb 6722
ce2cded5 6723with_gnu_ld="$lt_cv_prog_gnu_ld"
d7040cdb 6724
ce2cded5
L
6725old_CC="$CC"
6726old_CFLAGS="$CFLAGS"
d7040cdb 6727
ce2cded5
L
6728# Set sane defaults for various variables
6729test -z "$CC" && CC=cc
6730test -z "$LTCC" && LTCC=$CC
6731test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6732test -z "$LD" && LD=ld
6733test -z "$ac_objext" && ac_objext=o
d7040cdb 6734
ce2cded5
L
6735for cc_temp in $compiler""; do
6736 case $cc_temp in
6737 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6738 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6739 \-*) ;;
6740 *) break;;
6741 esac
6742done
6743cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
d7040cdb
SE
6744
6745
ce2cded5
L
6746# Only perform the check for file, if the check method requires it
6747test -z "$MAGIC_CMD" && MAGIC_CMD=file
6748case $deplibs_check_method in
6749file_magic*)
6750 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6751 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6752echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6753if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6754 echo $ECHO_N "(cached) $ECHO_C" >&6
6755else
6756 case $MAGIC_CMD in
6757[\\/*] | ?:[\\/]*)
6758 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6759 ;;
6760*)
6761 lt_save_MAGIC_CMD="$MAGIC_CMD"
6762 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6763 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6764 for ac_dir in $ac_dummy; do
6765 IFS="$lt_save_ifs"
6766 test -z "$ac_dir" && ac_dir=.
6767 if test -f $ac_dir/${ac_tool_prefix}file; then
6768 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6769 if test -n "$file_magic_test_file"; then
6770 case $deplibs_check_method in
6771 "file_magic "*)
6772 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6773 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6774 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6775 $EGREP "$file_magic_regex" > /dev/null; then
6776 :
6777 else
6778 cat <<_LT_EOF 1>&2
d7040cdb 6779
ce2cded5
L
6780*** Warning: the command libtool uses to detect shared libraries,
6781*** $file_magic_cmd, produces output that libtool cannot recognize.
6782*** The result is that libtool may fail to recognize shared libraries
6783*** as such. This will affect the creation of libtool libraries that
6784*** depend on shared libraries, but programs linked with such libtool
6785*** libraries will work regardless of this problem. Nevertheless, you
6786*** may want to report the problem to your system manager and/or to
6787*** bug-libtool@gnu.org
d7040cdb 6788
ce2cded5
L
6789_LT_EOF
6790 fi ;;
6791 esac
6792 fi
6793 break
6794 fi
6795 done
6796 IFS="$lt_save_ifs"
6797 MAGIC_CMD="$lt_save_MAGIC_CMD"
6798 ;;
6799esac
6800fi
d7040cdb 6801
ce2cded5
L
6802MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6803if test -n "$MAGIC_CMD"; then
6804 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6805echo "${ECHO_T}$MAGIC_CMD" >&6
6806else
6807 echo "$as_me:$LINENO: result: no" >&5
6808echo "${ECHO_T}no" >&6
6809fi
d7040cdb
SE
6810
6811
6812
6813
6814
ce2cded5
L
6815if test -z "$lt_cv_path_MAGIC_CMD"; then
6816 if test -n "$ac_tool_prefix"; then
6817 echo "$as_me:$LINENO: checking for file" >&5
6818echo $ECHO_N "checking for file... $ECHO_C" >&6
6819if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6820 echo $ECHO_N "(cached) $ECHO_C" >&6
6821else
6822 case $MAGIC_CMD in
6823[\\/*] | ?:[\\/]*)
6824 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6825 ;;
6826*)
6827 lt_save_MAGIC_CMD="$MAGIC_CMD"
6828 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6829 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6830 for ac_dir in $ac_dummy; do
6831 IFS="$lt_save_ifs"
6832 test -z "$ac_dir" && ac_dir=.
6833 if test -f $ac_dir/file; then
6834 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6835 if test -n "$file_magic_test_file"; then
6836 case $deplibs_check_method in
6837 "file_magic "*)
6838 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6839 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6840 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6841 $EGREP "$file_magic_regex" > /dev/null; then
6842 :
6843 else
6844 cat <<_LT_EOF 1>&2
d7040cdb 6845
ce2cded5
L
6846*** Warning: the command libtool uses to detect shared libraries,
6847*** $file_magic_cmd, produces output that libtool cannot recognize.
6848*** The result is that libtool may fail to recognize shared libraries
6849*** as such. This will affect the creation of libtool libraries that
6850*** depend on shared libraries, but programs linked with such libtool
6851*** libraries will work regardless of this problem. Nevertheless, you
6852*** may want to report the problem to your system manager and/or to
6853*** bug-libtool@gnu.org
d7040cdb 6854
ce2cded5
L
6855_LT_EOF
6856 fi ;;
6857 esac
6858 fi
6859 break
6860 fi
6861 done
6862 IFS="$lt_save_ifs"
6863 MAGIC_CMD="$lt_save_MAGIC_CMD"
6864 ;;
6865esac
6866fi
d7040cdb 6867
ce2cded5
L
6868MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6869if test -n "$MAGIC_CMD"; then
6870 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6871echo "${ECHO_T}$MAGIC_CMD" >&6
6872else
6873 echo "$as_me:$LINENO: result: no" >&5
6874echo "${ECHO_T}no" >&6
6875fi
d7040cdb
SE
6876
6877
ce2cded5
L
6878 else
6879 MAGIC_CMD=:
6880 fi
6881fi
d7040cdb 6882
ce2cded5
L
6883 fi
6884 ;;
6885esac
d7040cdb 6886
ce2cded5 6887# Use C for the default configuration in the libtool script
d7040cdb 6888
ce2cded5
L
6889lt_save_CC="$CC"
6890ac_ext=c
6891ac_cpp='$CPP $CPPFLAGS'
6892ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6893ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6894ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb
SE
6895
6896
ce2cded5
L
6897# Source file extension for C test sources.
6898ac_ext=c
d7040cdb 6899
ce2cded5
L
6900# Object file extension for compiled C test sources.
6901objext=o
6902objext=$objext
d7040cdb 6903
ce2cded5
L
6904# Code to be used in simple compile tests
6905lt_simple_compile_test_code="int some_variable = 0;"
d7040cdb 6906
ce2cded5
L
6907# Code to be used in simple link tests
6908lt_simple_link_test_code='int main(){return(0);}'
d7040cdb
SE
6909
6910
6911
6912
6913
6914
6915
ce2cded5
L
6916# If no C compiler was specified, use CC.
6917LTCC=${LTCC-"$CC"}
d7040cdb 6918
ce2cded5
L
6919# If no C compiler flags were specified, use CFLAGS.
6920LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d7040cdb 6921
ce2cded5
L
6922# Allow CC to be a program name with arguments.
6923compiler=$CC
d7040cdb 6924
ce2cded5
L
6925# Save the default compiler, since it gets overwritten when the other
6926# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6927compiler_DEFAULT=$CC
d7040cdb 6928
ce2cded5
L
6929# save warnings/boilerplate of simple test code
6930ac_outfile=conftest.$ac_objext
6931echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6932eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6933_lt_compiler_boilerplate=`cat conftest.err`
6934$RM conftest*
d7040cdb 6935
ce2cded5
L
6936ac_outfile=conftest.$ac_objext
6937echo "$lt_simple_link_test_code" >conftest.$ac_ext
6938eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6939_lt_linker_boilerplate=`cat conftest.err`
6940$RM conftest*
d7040cdb
SE
6941
6942
ce2cded5
L
6943## CAVEAT EMPTOR:
6944## There is no encapsulation within the following macros, do not change
6945## the running order or otherwise move them around unless you know exactly
6946## what you are doing...
6947if test -n "$compiler"; then
d7040cdb 6948
ce2cded5 6949lt_prog_compiler_no_builtin_flag=
d7040cdb 6950
ce2cded5
L
6951if test "$GCC" = yes; then
6952 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
d7040cdb 6953
ce2cded5
L
6954 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6955echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6956if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6957 echo $ECHO_N "(cached) $ECHO_C" >&6
6958else
6959 lt_cv_prog_compiler_rtti_exceptions=no
6960 ac_outfile=conftest.$ac_objext
6961 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6962 lt_compiler_flag="-fno-rtti -fno-exceptions"
6963 # Insert the option either (1) after the last *FLAGS variable, or
6964 # (2) before a word containing "conftest.", or (3) at the end.
6965 # Note that $ac_compile itself does not contain backslashes and begins
6966 # with a dollar sign (not a hyphen), so the echo should work correctly.
6967 # The option is referenced via a variable to avoid confusing sed.
6968 lt_compile=`echo "$ac_compile" | $SED \
6969 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6970 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6971 -e 's:$: $lt_compiler_flag:'`
4474d12b 6972 (eval echo "\"\$as_me:6972: $lt_compile\"" >&5)
ce2cded5
L
6973 (eval "$lt_compile" 2>conftest.err)
6974 ac_status=$?
6975 cat conftest.err >&5
4474d12b 6976 echo "$as_me:6976: \$? = $ac_status" >&5
ce2cded5
L
6977 if (exit $ac_status) && test -s "$ac_outfile"; then
6978 # The compiler can only warn and ignore the option if not recognized
6979 # So say no if there are warnings other than the usual output.
6980 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6981 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6982 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6983 lt_cv_prog_compiler_rtti_exceptions=yes
6984 fi
6985 fi
6986 $RM conftest*
d7040cdb 6987
ce2cded5
L
6988fi
6989echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6990echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
d7040cdb 6991
ce2cded5
L
6992if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6993 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6994else
6995 :
6996fi
d7040cdb 6997
ce2cded5 6998fi
d7040cdb
SE
6999
7000
7001
7002
7003
7004
ce2cded5
L
7005 lt_prog_compiler_wl=
7006lt_prog_compiler_pic=
7007lt_prog_compiler_static=
d7040cdb 7008
ce2cded5
L
7009echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7010echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
d7040cdb 7011
ce2cded5
L
7012 if test "$GCC" = yes; then
7013 lt_prog_compiler_wl='-Wl,'
7014 lt_prog_compiler_static='-static'
d7040cdb 7015
ce2cded5
L
7016 case $host_os in
7017 aix*)
7018 # All AIX code is PIC.
7019 if test "$host_cpu" = ia64; then
7020 # AIX 5 now supports IA64 processor
7021 lt_prog_compiler_static='-Bstatic'
7022 fi
7023 ;;
d7040cdb 7024
ce2cded5
L
7025 amigaos*)
7026 if test "$host_cpu" = m68k; then
7027 # FIXME: we need at least 68020 code to build shared libraries, but
7028 # adding the `-m68020' flag to GCC prevents building anything better,
7029 # like `-m68040'.
7030 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7031 fi
7032 ;;
d7040cdb 7033
ce2cded5
L
7034 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7035 # PIC is the default for these OSes.
7036 ;;
d7040cdb 7037
ce2cded5
L
7038 mingw* | cygwin* | pw32* | os2*)
7039 # This hack is so that the source file can tell whether it is being
7040 # built for inclusion in a dll (and should export symbols for example).
7041 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7042 # (--disable-auto-import) libraries
7043 lt_prog_compiler_pic='-DDLL_EXPORT'
7044 ;;
d7040cdb 7045
ce2cded5
L
7046 darwin* | rhapsody*)
7047 # PIC is the default on this platform
7048 # Common symbols not allowed in MH_DYLIB files
7049 lt_prog_compiler_pic='-fno-common'
7050 ;;
d7040cdb 7051
ce2cded5
L
7052 hpux*)
7053 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7054 # not for PA HP-UX.
7055 case $host_cpu in
7056 hppa*64*|ia64*)
7057 # +Z the default
7058 ;;
7059 *)
7060 lt_prog_compiler_pic='-fPIC'
7061 ;;
7062 esac
7063 ;;
d7040cdb 7064
ce2cded5
L
7065 interix[3-9]*)
7066 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7067 # Instead, we relocate shared libraries at runtime.
7068 ;;
d7040cdb 7069
ce2cded5
L
7070 msdosdjgpp*)
7071 # Just because we use GCC doesn't mean we suddenly get shared libraries
7072 # on systems that don't support them.
7073 lt_prog_compiler_can_build_shared=no
7074 enable_shared=no
7075 ;;
d7040cdb 7076
ce2cded5
L
7077 *nto* | *qnx*)
7078 # QNX uses GNU C++, but need to define -shared option too, otherwise
7079 # it will coredump.
7080 lt_prog_compiler_pic='-fPIC -shared'
7081 ;;
d7040cdb 7082
ce2cded5
L
7083 sysv4*MP*)
7084 if test -d /usr/nec; then
7085 lt_prog_compiler_pic=-Kconform_pic
7086 fi
7087 ;;
d7040cdb 7088
ce2cded5
L
7089 *)
7090 lt_prog_compiler_pic='-fPIC'
7091 ;;
7092 esac
7093 else
7094 # PORTME Check for flag to pass linker flags through the system compiler.
7095 case $host_os in
7096 aix*)
7097 lt_prog_compiler_wl='-Wl,'
7098 if test "$host_cpu" = ia64; then
7099 # AIX 5 now supports IA64 processor
7100 lt_prog_compiler_static='-Bstatic'
7101 else
7102 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7103 fi
7104 ;;
7105 darwin*)
7106 # PIC is the default on this platform
7107 # Common symbols not allowed in MH_DYLIB files
7108 case $cc_basename in
7109 xlc*)
7110 lt_prog_compiler_pic='-qnocommon'
7111 lt_prog_compiler_wl='-Wl,'
7112 ;;
7113 esac
7114 ;;
d7040cdb 7115
ce2cded5
L
7116 mingw* | cygwin* | pw32* | os2*)
7117 # This hack is so that the source file can tell whether it is being
7118 # built for inclusion in a dll (and should export symbols for example).
7119 lt_prog_compiler_pic='-DDLL_EXPORT'
7120 ;;
d7040cdb 7121
ce2cded5
L
7122 hpux9* | hpux10* | hpux11*)
7123 lt_prog_compiler_wl='-Wl,'
7124 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7125 # not for PA HP-UX.
7126 case $host_cpu in
7127 hppa*64*|ia64*)
7128 # +Z the default
7129 ;;
7130 *)
7131 lt_prog_compiler_pic='+Z'
7132 ;;
7133 esac
7134 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7135 lt_prog_compiler_static='${wl}-a ${wl}archive'
7136 ;;
d7040cdb 7137
ce2cded5
L
7138 irix5* | irix6* | nonstopux*)
7139 lt_prog_compiler_wl='-Wl,'
7140 # PIC (with -KPIC) is the default.
7141 lt_prog_compiler_static='-non_shared'
7142 ;;
d7040cdb 7143
ce2cded5
L
7144 linux* | k*bsd*-gnu)
7145 case $cc_basename in
7146 icc* | ecc*)
7147 lt_prog_compiler_wl='-Wl,'
7148 lt_prog_compiler_pic='-KPIC'
7149 lt_prog_compiler_static='-static'
7150 ;;
7151 pgcc* | pgf77* | pgf90* | pgf95*)
7152 # Portland Group compilers (*not* the Pentium gcc compiler,
7153 # which looks to be a dead project)
7154 lt_prog_compiler_wl='-Wl,'
7155 lt_prog_compiler_pic='-fpic'
7156 lt_prog_compiler_static='-Bstatic'
7157 ;;
7158 ccc*)
7159 lt_prog_compiler_wl='-Wl,'
7160 # All Alpha code is PIC.
7161 lt_prog_compiler_static='-non_shared'
7162 ;;
7163 *)
7164 case `$CC -V 2>&1 | sed 5q` in
7165 *Sun\ C*)
7166 # Sun C 5.9
7167 lt_prog_compiler_pic='-KPIC'
7168 lt_prog_compiler_static='-Bstatic'
7169 lt_prog_compiler_wl='-Wl,'
7170 ;;
7171 *Sun\ F*)
7172 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7173 lt_prog_compiler_pic='-KPIC'
7174 lt_prog_compiler_static='-Bstatic'
7175 lt_prog_compiler_wl=''
7176 ;;
7177 esac
7178 ;;
7179 esac
7180 ;;
d7040cdb 7181
ce2cded5
L
7182 newsos6)
7183 lt_prog_compiler_pic='-KPIC'
7184 lt_prog_compiler_static='-Bstatic'
7185 ;;
d7040cdb 7186
ce2cded5
L
7187 *nto* | *qnx*)
7188 # QNX uses GNU C++, but need to define -shared option too, otherwise
7189 # it will coredump.
7190 lt_prog_compiler_pic='-fPIC -shared'
7191 ;;
d7040cdb 7192
ce2cded5
L
7193 osf3* | osf4* | osf5*)
7194 lt_prog_compiler_wl='-Wl,'
7195 # All OSF/1 code is PIC.
7196 lt_prog_compiler_static='-non_shared'
7197 ;;
d7040cdb 7198
ce2cded5
L
7199 rdos*)
7200 lt_prog_compiler_static='-non_shared'
7201 ;;
d7040cdb 7202
ce2cded5
L
7203 solaris*)
7204 lt_prog_compiler_pic='-KPIC'
7205 lt_prog_compiler_static='-Bstatic'
7206 case $cc_basename in
7207 f77* | f90* | f95*)
7208 lt_prog_compiler_wl='-Qoption ld ';;
7209 *)
7210 lt_prog_compiler_wl='-Wl,';;
7211 esac
7212 ;;
d7040cdb 7213
ce2cded5
L
7214 sunos4*)
7215 lt_prog_compiler_wl='-Qoption ld '
7216 lt_prog_compiler_pic='-PIC'
7217 lt_prog_compiler_static='-Bstatic'
7218 ;;
d7040cdb 7219
ce2cded5
L
7220 sysv4 | sysv4.2uw2* | sysv4.3*)
7221 lt_prog_compiler_wl='-Wl,'
7222 lt_prog_compiler_pic='-KPIC'
7223 lt_prog_compiler_static='-Bstatic'
7224 ;;
d7040cdb 7225
ce2cded5
L
7226 sysv4*MP*)
7227 if test -d /usr/nec ;then
7228 lt_prog_compiler_pic='-Kconform_pic'
7229 lt_prog_compiler_static='-Bstatic'
7230 fi
7231 ;;
d7040cdb 7232
ce2cded5
L
7233 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7234 lt_prog_compiler_wl='-Wl,'
7235 lt_prog_compiler_pic='-KPIC'
7236 lt_prog_compiler_static='-Bstatic'
7237 ;;
d7040cdb 7238
ce2cded5
L
7239 unicos*)
7240 lt_prog_compiler_wl='-Wl,'
7241 lt_prog_compiler_can_build_shared=no
7242 ;;
d7040cdb 7243
ce2cded5
L
7244 uts4*)
7245 lt_prog_compiler_pic='-pic'
7246 lt_prog_compiler_static='-Bstatic'
7247 ;;
d7040cdb 7248
ce2cded5
L
7249 *)
7250 lt_prog_compiler_can_build_shared=no
7251 ;;
7252 esac
7253 fi
d7040cdb 7254
ce2cded5
L
7255case $host_os in
7256 # For platforms which do not support PIC, -DPIC is meaningless:
7257 *djgpp*)
7258 lt_prog_compiler_pic=
7259 ;;
7260 *)
7261 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7262 ;;
7263esac
7264echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7265echo "${ECHO_T}$lt_prog_compiler_pic" >&6
d7040cdb
SE
7266
7267
7268
7269
7270
7271
ce2cded5
L
7272#
7273# Check to make sure the PIC flag actually works.
7274#
7275if test -n "$lt_prog_compiler_pic"; then
7276 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7277echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7278if test "${lt_prog_compiler_pic_works+set}" = set; then
7279 echo $ECHO_N "(cached) $ECHO_C" >&6
7280else
7281 lt_prog_compiler_pic_works=no
7282 ac_outfile=conftest.$ac_objext
7283 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7284 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7285 # Insert the option either (1) after the last *FLAGS variable, or
7286 # (2) before a word containing "conftest.", or (3) at the end.
7287 # Note that $ac_compile itself does not contain backslashes and begins
7288 # with a dollar sign (not a hyphen), so the echo should work correctly.
7289 # The option is referenced via a variable to avoid confusing sed.
7290 lt_compile=`echo "$ac_compile" | $SED \
7291 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7292 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7293 -e 's:$: $lt_compiler_flag:'`
4474d12b 7294 (eval echo "\"\$as_me:7294: $lt_compile\"" >&5)
ce2cded5
L
7295 (eval "$lt_compile" 2>conftest.err)
7296 ac_status=$?
7297 cat conftest.err >&5
4474d12b 7298 echo "$as_me:7298: \$? = $ac_status" >&5
ce2cded5
L
7299 if (exit $ac_status) && test -s "$ac_outfile"; then
7300 # The compiler can only warn and ignore the option if not recognized
7301 # So say no if there are warnings other than the usual output.
7302 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7303 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7304 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7305 lt_prog_compiler_pic_works=yes
7306 fi
7307 fi
7308 $RM conftest*
d7040cdb 7309
ce2cded5
L
7310fi
7311echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7312echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7313
7314if test x"$lt_prog_compiler_pic_works" = xyes; then
7315 case $lt_prog_compiler_pic in
7316 "" | " "*) ;;
7317 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7318 esac
7319else
7320 lt_prog_compiler_pic=
7321 lt_prog_compiler_can_build_shared=no
7322fi
7323
7324fi
d7040cdb
SE
7325
7326
7327
7328
7329
7330
ce2cded5
L
7331#
7332# Check to make sure the static flag actually works.
7333#
7334wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7335echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7336echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7337if test "${lt_prog_compiler_static_works+set}" = set; then
7338 echo $ECHO_N "(cached) $ECHO_C" >&6
7339else
7340 lt_prog_compiler_static_works=no
7341 save_LDFLAGS="$LDFLAGS"
7342 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7343 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7344 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7345 # The linker can only warn and ignore the option if not recognized
7346 # So say no if there are warnings
7347 if test -s conftest.err; then
7348 # Append any errors to the config.log.
7349 cat conftest.err 1>&5
7350 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7351 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7352 if diff conftest.exp conftest.er2 >/dev/null; then
7353 lt_prog_compiler_static_works=yes
7354 fi
7355 else
7356 lt_prog_compiler_static_works=yes
7357 fi
7358 fi
7359 $RM conftest*
7360 LDFLAGS="$save_LDFLAGS"
d7040cdb 7361
ce2cded5
L
7362fi
7363echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7364echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
d7040cdb 7365
ce2cded5
L
7366if test x"$lt_prog_compiler_static_works" = xyes; then
7367 :
7368else
7369 lt_prog_compiler_static=
7370fi
d7040cdb
SE
7371
7372
7373
7374
7375
7376
7377
ce2cded5
L
7378 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7379echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7380if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7381 echo $ECHO_N "(cached) $ECHO_C" >&6
7382else
7383 lt_cv_prog_compiler_c_o=no
7384 $RM -r conftest 2>/dev/null
7385 mkdir conftest
7386 cd conftest
7387 mkdir out
7388 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 7389
ce2cded5
L
7390 lt_compiler_flag="-o out/conftest2.$ac_objext"
7391 # Insert the option either (1) after the last *FLAGS variable, or
7392 # (2) before a word containing "conftest.", or (3) at the end.
7393 # Note that $ac_compile itself does not contain backslashes and begins
7394 # with a dollar sign (not a hyphen), so the echo should work correctly.
7395 lt_compile=`echo "$ac_compile" | $SED \
7396 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7397 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7398 -e 's:$: $lt_compiler_flag:'`
4474d12b 7399 (eval echo "\"\$as_me:7399: $lt_compile\"" >&5)
ce2cded5
L
7400 (eval "$lt_compile" 2>out/conftest.err)
7401 ac_status=$?
7402 cat out/conftest.err >&5
4474d12b 7403 echo "$as_me:7403: \$? = $ac_status" >&5
ce2cded5
L
7404 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7405 then
7406 # The compiler can only warn and ignore the option if not recognized
7407 # So say no if there are warnings
7408 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7409 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7410 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7411 lt_cv_prog_compiler_c_o=yes
7412 fi
7413 fi
7414 chmod u+w . 2>&5
7415 $RM conftest*
7416 # SGI C++ compiler will create directory out/ii_files/ for
7417 # template instantiation
7418 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7419 $RM out/* && rmdir out
7420 cd ..
7421 $RM -r conftest
7422 $RM conftest*
d7040cdb 7423
ce2cded5
L
7424fi
7425echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7426echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
d7040cdb
SE
7427
7428
7429
7430
7431
7432
ce2cded5
L
7433 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7434echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7435if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7436 echo $ECHO_N "(cached) $ECHO_C" >&6
7437else
7438 lt_cv_prog_compiler_c_o=no
7439 $RM -r conftest 2>/dev/null
7440 mkdir conftest
7441 cd conftest
7442 mkdir out
7443 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 7444
ce2cded5
L
7445 lt_compiler_flag="-o out/conftest2.$ac_objext"
7446 # Insert the option either (1) after the last *FLAGS variable, or
7447 # (2) before a word containing "conftest.", or (3) at the end.
7448 # Note that $ac_compile itself does not contain backslashes and begins
7449 # with a dollar sign (not a hyphen), so the echo should work correctly.
7450 lt_compile=`echo "$ac_compile" | $SED \
7451 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7452 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7453 -e 's:$: $lt_compiler_flag:'`
4474d12b 7454 (eval echo "\"\$as_me:7454: $lt_compile\"" >&5)
ce2cded5
L
7455 (eval "$lt_compile" 2>out/conftest.err)
7456 ac_status=$?
7457 cat out/conftest.err >&5
4474d12b 7458 echo "$as_me:7458: \$? = $ac_status" >&5
ce2cded5
L
7459 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7460 then
7461 # The compiler can only warn and ignore the option if not recognized
7462 # So say no if there are warnings
7463 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7464 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7465 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7466 lt_cv_prog_compiler_c_o=yes
7467 fi
7468 fi
7469 chmod u+w . 2>&5
7470 $RM conftest*
7471 # SGI C++ compiler will create directory out/ii_files/ for
7472 # template instantiation
7473 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7474 $RM out/* && rmdir out
7475 cd ..
7476 $RM -r conftest
7477 $RM conftest*
7478
7479fi
7480echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7481echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7482
7483
7484
7485
7486hard_links="nottested"
7487if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7488 # do not overwrite the value of need_locks provided by the user
7489 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7490echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7491 hard_links=yes
7492 $RM conftest*
7493 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7494 touch conftest.a
7495 ln conftest.a conftest.b 2>&5 || hard_links=no
7496 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7497 echo "$as_me:$LINENO: result: $hard_links" >&5
7498echo "${ECHO_T}$hard_links" >&6
7499 if test "$hard_links" = no; then
7500 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7501echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7502 need_locks=warn
d7040cdb 7503 fi
d7040cdb 7504else
ce2cded5 7505 need_locks=no
d7040cdb 7506fi
d7040cdb 7507
d7040cdb 7508
d7040cdb 7509
d7040cdb 7510
d7040cdb 7511
d7040cdb 7512
ce2cded5
L
7513 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7514echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
d7040cdb 7515
ce2cded5
L
7516 runpath_var=
7517 allow_undefined_flag=
7518 always_export_symbols=no
7519 archive_cmds=
7520 archive_expsym_cmds=
7521 compiler_needs_object=no
7522 enable_shared_with_static_runtimes=no
7523 export_dynamic_flag_spec=
7524 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7525 hardcode_automatic=no
7526 hardcode_direct=no
7527 hardcode_direct_absolute=no
7528 hardcode_libdir_flag_spec=
7529 hardcode_libdir_flag_spec_ld=
7530 hardcode_libdir_separator=
7531 hardcode_minus_L=no
7532 hardcode_shlibpath_var=unsupported
7533 inherit_rpath=no
7534 link_all_deplibs=unknown
7535 module_cmds=
7536 module_expsym_cmds=
7537 old_archive_from_new_cmds=
7538 old_archive_from_expsyms_cmds=
7539 thread_safe_flag_spec=
7540 whole_archive_flag_spec=
7541 # include_expsyms should be a list of space-separated symbols to be *always*
7542 # included in the symbol list
7543 include_expsyms=
7544 # exclude_expsyms can be an extended regexp of symbols to exclude
7545 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7546 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7547 # as well as any symbol that contains `d'.
7548 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7549 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7550 # platforms (ab)use it in PIC code, but their linkers get confused if
7551 # the symbol is explicitly referenced. Since portable code cannot
7552 # rely on this symbol name, it's probably fine to never include it in
7553 # preloaded symbol tables.
7554 extract_expsyms_cmds=
d7040cdb 7555
ce2cded5
L
7556 case $host_os in
7557 cygwin* | mingw* | pw32*)
7558 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7559 # When not using gcc, we currently assume that we are using
7560 # Microsoft Visual C++.
7561 if test "$GCC" != yes; then
7562 with_gnu_ld=no
7563 fi
d7040cdb 7564 ;;
ce2cded5
L
7565 interix*)
7566 # we just hope/assume this is gcc and not c89 (= MSVC++)
7567 with_gnu_ld=yes
7568 ;;
7569 openbsd*)
7570 with_gnu_ld=no
d7040cdb
SE
7571 ;;
7572 esac
d7040cdb 7573
ce2cded5
L
7574 ld_shlibs=yes
7575 if test "$with_gnu_ld" = yes; then
7576 # If archive_cmds runs LD, not CC, wlarc should be empty
7577 wlarc='${wl}'
d7040cdb 7578
ce2cded5
L
7579 # Set some defaults for GNU ld with shared library support. These
7580 # are reset later if shared libraries are not supported. Putting them
7581 # here allows them to be overridden if necessary.
7582 runpath_var=LD_RUN_PATH
7583 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7584 export_dynamic_flag_spec='${wl}--export-dynamic'
7585 # ancient GNU ld didn't support --whole-archive et. al.
7586 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7587 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7588 else
7589 whole_archive_flag_spec=
7590 fi
7591 supports_anon_versioning=no
7592 case `$LD -v 2>&1` in
7593 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7594 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7595 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7596 *\ 2.11.*) ;; # other 2.11 versions
7597 *) supports_anon_versioning=yes ;;
7598 esac
d7040cdb 7599
ce2cded5
L
7600 # See if GNU ld supports shared libraries.
7601 case $host_os in
50e7d84b 7602 aix[3-9]*)
ce2cded5
L
7603 # On AIX/PPC, the GNU linker is very broken
7604 if test "$host_cpu" != ia64; then
7605 ld_shlibs=no
7606 cat <<_LT_EOF 1>&2
d7040cdb 7607
ce2cded5
L
7608*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7609*** to be unable to reliably create shared libraries on AIX.
7610*** Therefore, libtool is disabling shared libraries support. If you
7611*** really care for shared libraries, you may want to modify your PATH
7612*** so that a non-GNU linker is found, and then restart.
d7040cdb 7613
ce2cded5
L
7614_LT_EOF
7615 fi
d7040cdb 7616 ;;
d7040cdb 7617
ce2cded5
L
7618 amigaos*)
7619 if test "$host_cpu" = m68k; then
7620 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)'
7621 hardcode_libdir_flag_spec='-L$libdir'
7622 hardcode_minus_L=yes
7623 fi
d7040cdb 7624
ce2cded5
L
7625 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7626 # that the semantics of dynamic libraries on AmigaOS, at least up
7627 # to version 4, is to share data among multiple programs linked
7628 # with the same dynamic library. Since this doesn't match the
7629 # behavior of shared libraries on other platforms, we can't use
7630 # them.
7631 ld_shlibs=no
7632 ;;
d7040cdb 7633
ce2cded5
L
7634 beos*)
7635 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7636 allow_undefined_flag=unsupported
7637 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7638 # support --undefined. This deserves some investigation. FIXME
7639 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7640 else
7641 ld_shlibs=no
7642 fi
7643 ;;
d7040cdb 7644
ce2cded5
L
7645 cygwin* | mingw* | pw32*)
7646 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7647 # as there is no search path for DLLs.
7648 hardcode_libdir_flag_spec='-L$libdir'
7649 allow_undefined_flag=unsupported
7650 always_export_symbols=no
7651 enable_shared_with_static_runtimes=yes
7652 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7653
7654 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7655 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7656 # If the export-symbols file already is a .def file (1st line
7657 # is EXPORTS), use it as is; otherwise, prepend...
7658 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7659 cp $export_symbols $output_objdir/$soname.def;
d7040cdb 7660 else
ce2cded5
L
7661 echo EXPORTS > $output_objdir/$soname.def;
7662 cat $export_symbols >> $output_objdir/$soname.def;
7663 fi~
7664 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7665 else
7666 ld_shlibs=no
7667 fi
7668 ;;
d7040cdb 7669
ce2cded5
L
7670 interix[3-9]*)
7671 hardcode_direct=no
7672 hardcode_shlibpath_var=no
7673 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7674 export_dynamic_flag_spec='${wl}-E'
7675 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7676 # Instead, shared libraries are loaded at an image base (0x10000000 by
7677 # default) and relocated if they conflict, which is a slow very memory
7678 # consuming and fragmenting process. To avoid this, we pick a random,
7679 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7680 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7681 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7682 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'
7683 ;;
d7040cdb 7684
ce2cded5
L
7685 gnu* | linux* | tpf* | k*bsd*-gnu)
7686 tmp_diet=no
7687 if test "$host_os" = linux-dietlibc; then
7688 case $cc_basename in
7689 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7690 esac
7691 fi
7692 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7693 && test "$tmp_diet" = no
7694 then
7695 tmp_addflag=
7696 case $cc_basename,$host_cpu in
7697 pgcc*) # Portland Group C compiler
7698 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'
7699 tmp_addflag=' $pic_flag'
7700 ;;
7701 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7702 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'
7703 tmp_addflag=' $pic_flag -Mnomain' ;;
7704 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7705 tmp_addflag=' -i_dynamic' ;;
7706 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7707 tmp_addflag=' -i_dynamic -nofor_main' ;;
7708 ifc* | ifort*) # Intel Fortran compiler
7709 tmp_addflag=' -nofor_main' ;;
7710 esac
7711 case `$CC -V 2>&1 | sed 5q` in
7712 *Sun\ C*) # Sun C 5.9
7713 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'
7714 compiler_needs_object=yes
7715 tmp_sharedflag='-G' ;;
7716 *Sun\ F*) # Sun Fortran 8.3
7717 tmp_sharedflag='-G' ;;
7718 *)
7719 tmp_sharedflag='-shared' ;;
7720 esac
7721 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d7040cdb 7722
ce2cded5
L
7723 if test "x$supports_anon_versioning" = xyes; then
7724 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7725 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7726 echo "local: *; };" >> $output_objdir/$libname.ver~
7727 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7728 fi
7729 else
7730 ld_shlibs=no
7731 fi
7732 ;;
d7040cdb 7733
ce2cded5
L
7734 netbsd*)
7735 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7736 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7737 wlarc=
7738 else
7739 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7740 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7741 fi
7742 ;;
7743
7744 solaris*)
7745 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7746 ld_shlibs=no
7747 cat <<_LT_EOF 1>&2
7748
7749*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7750*** create shared libraries on Solaris systems. Therefore, libtool
7751*** is disabling shared libraries support. We urge you to upgrade GNU
7752*** binutils to release 2.9.1 or newer. Another option is to modify
7753*** your PATH or compiler configuration so that the native linker is
7754*** used, and then restart.
7755
7756_LT_EOF
7757 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7758 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7759 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7760 else
7761 ld_shlibs=no
7762 fi
7763 ;;
7764
7765 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7766 case `$LD -v 2>&1` in
7767 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7768 ld_shlibs=no
7769 cat <<_LT_EOF 1>&2
7770
7771*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7772*** reliably create shared libraries on SCO systems. Therefore, libtool
7773*** is disabling shared libraries support. We urge you to upgrade GNU
7774*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7775*** your PATH or compiler configuration so that the native linker is
7776*** used, and then restart.
7777
7778_LT_EOF
7779 ;;
7780 *)
7781 # For security reasons, it is highly recommended that you always
7782 # use absolute paths for naming shared libraries, and exclude the
7783 # DT_RUNPATH tag from executables and libraries. But doing so
7784 # requires that you compile everything twice, which is a pain.
7785 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7786 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7787 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7788 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7789 else
7790 ld_shlibs=no
7791 fi
7792 ;;
7793 esac
7794 ;;
7795
7796 sunos4*)
7797 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7798 wlarc=
7799 hardcode_direct=yes
7800 hardcode_shlibpath_var=no
7801 ;;
7802
7803 *)
7804 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7805 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7806 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7807 else
7808 ld_shlibs=no
7809 fi
7810 ;;
7811 esac
7812
7813 if test "$ld_shlibs" = no; then
7814 runpath_var=
7815 hardcode_libdir_flag_spec=
7816 export_dynamic_flag_spec=
7817 whole_archive_flag_spec=
7818 fi
7819 else
7820 # PORTME fill in a description of your system's linker (not GNU ld)
7821 case $host_os in
7822 aix3*)
7823 allow_undefined_flag=unsupported
7824 always_export_symbols=yes
7825 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'
7826 # Note: this linker hardcodes the directories in LIBPATH if there
7827 # are no directories specified by -L.
7828 hardcode_minus_L=yes
7829 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7830 # Neither direct hardcoding nor static linking is supported with a
7831 # broken collect2.
7832 hardcode_direct=unsupported
7833 fi
7834 ;;
7835
50e7d84b 7836 aix[4-9]*)
ce2cded5
L
7837 if test "$host_cpu" = ia64; then
7838 # On IA64, the linker does run time linking by default, so we don't
7839 # have to do anything special.
7840 aix_use_runtimelinking=no
7841 exp_sym_flag='-Bexport'
7842 no_entry_flag=""
7843 else
7844 # If we're using GNU nm, then we don't want the "-C" option.
7845 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7846 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7847 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'
7848 else
7849 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'
7850 fi
7851 aix_use_runtimelinking=no
7852
7853 # Test if we are trying to use run time linking or normal
7854 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7855 # need to do runtime linking.
50e7d84b 7856 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
ce2cded5
L
7857 for ld_flag in $LDFLAGS; do
7858 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7859 aix_use_runtimelinking=yes
7860 break
7861 fi
7862 done
7863 ;;
7864 esac
7865
7866 exp_sym_flag='-bexport'
7867 no_entry_flag='-bnoentry'
7868 fi
7869
7870 # When large executables or shared objects are built, AIX ld can
7871 # have problems creating the table of contents. If linking a library
7872 # or program results in "error TOC overflow" add -mminimal-toc to
7873 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7874 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7875
7876 archive_cmds=''
7877 hardcode_direct=yes
7878 hardcode_direct_absolute=yes
7879 hardcode_libdir_separator=':'
7880 link_all_deplibs=yes
7881 file_list_spec='${wl}-f,'
7882
7883 if test "$GCC" = yes; then
7884 case $host_os in aix4.[012]|aix4.[012].*)
7885 # We only want to do this on AIX 4.2 and lower, the check
7886 # below for broken collect2 doesn't work under 4.3+
7887 collect2name=`${CC} -print-prog-name=collect2`
7888 if test -f "$collect2name" &&
7889 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7890 then
7891 # We have reworked collect2
7892 :
7893 else
7894 # We have old collect2
7895 hardcode_direct=unsupported
7896 # It fails to find uninstalled libraries when the uninstalled
7897 # path is not listed in the libpath. Setting hardcode_minus_L
7898 # to unsupported forces relinking
7899 hardcode_minus_L=yes
7900 hardcode_libdir_flag_spec='-L$libdir'
7901 hardcode_libdir_separator=
7902 fi
7903 ;;
7904 esac
7905 shared_flag='-shared'
7906 if test "$aix_use_runtimelinking" = yes; then
7907 shared_flag="$shared_flag "'${wl}-G'
7908 fi
7909 else
7910 # not using gcc
7911 if test "$host_cpu" = ia64; then
7912 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7913 # chokes on -Wl,-G. The following line is correct:
7914 shared_flag='-G'
7915 else
7916 if test "$aix_use_runtimelinking" = yes; then
7917 shared_flag='${wl}-G'
7918 else
7919 shared_flag='${wl}-bM:SRE'
7920 fi
7921 fi
7922 fi
7923
7924 # It seems that -bexpall does not export symbols beginning with
7925 # underscore (_), so it is better to generate a list of symbols to export.
7926 always_export_symbols=yes
7927 if test "$aix_use_runtimelinking" = yes; then
7928 # Warning - without using the other runtime loading flags (-brtl),
7929 # -berok will link without error, but may produce a broken library.
7930 allow_undefined_flag='-berok'
7931 # Determine the default libpath from the value encoded in an
7932 # empty executable.
7933 cat >conftest.$ac_ext <<_ACEOF
7934/* confdefs.h. */
7935_ACEOF
7936cat confdefs.h >>conftest.$ac_ext
7937cat >>conftest.$ac_ext <<_ACEOF
7938/* end confdefs.h. */
7939
7940int
7941main ()
7942{
7943
7944 ;
7945 return 0;
7946}
7947_ACEOF
7948rm -f conftest.$ac_objext conftest$ac_exeext
d7040cdb
SE
7949if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7950 (eval $ac_link) 2>conftest.er1
7951 ac_status=$?
7952 grep -v '^ *+' conftest.er1 >conftest.err
7953 rm -f conftest.er1
7954 cat conftest.err >&5
7955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956 (exit $ac_status); } &&
4474d12b 7957 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d7040cdb
SE
7958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7959 (eval $ac_try) 2>&5
7960 ac_status=$?
7961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7962 (exit $ac_status); }; } &&
7963 { ac_try='test -s conftest$ac_exeext'
7964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7965 (eval $ac_try) 2>&5
7966 ac_status=$?
7967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968 (exit $ac_status); }; }; then
d7040cdb 7969
ce2cded5
L
7970lt_aix_libpath_sed='
7971 /Import File Strings/,/^$/ {
7972 /^0/ {
7973 s/^0 *\(.*\)$/\1/
7974 p
7975 }
7976 }'
7977aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7978# Check for a 64-bit object if we didn't find anything.
7979if test -z "$aix_libpath"; then
7980 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7981fi
d7040cdb
SE
7982else
7983 echo "$as_me: failed program was:" >&5
7984sed 's/^/| /' conftest.$ac_ext >&5
7985
7986fi
7987rm -f conftest.err conftest.$ac_objext \
7988 conftest$ac_exeext conftest.$ac_ext
ce2cded5 7989if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 7990
ce2cded5
L
7991 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7992 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"
7993 else
7994 if test "$host_cpu" = ia64; then
7995 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7996 allow_undefined_flag="-z nodefs"
7997 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"
7998 else
7999 # Determine the default libpath from the value encoded in an
8000 # empty executable.
8001 cat >conftest.$ac_ext <<_ACEOF
8002/* confdefs.h. */
8003_ACEOF
8004cat confdefs.h >>conftest.$ac_ext
8005cat >>conftest.$ac_ext <<_ACEOF
8006/* end confdefs.h. */
d7040cdb 8007
ce2cded5
L
8008int
8009main ()
8010{
d7040cdb 8011
ce2cded5
L
8012 ;
8013 return 0;
8014}
8015_ACEOF
8016rm -f conftest.$ac_objext conftest$ac_exeext
8017if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8018 (eval $ac_link) 2>conftest.er1
8019 ac_status=$?
8020 grep -v '^ *+' conftest.er1 >conftest.err
8021 rm -f conftest.er1
8022 cat conftest.err >&5
8023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8024 (exit $ac_status); } &&
4474d12b 8025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ce2cded5
L
8026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8027 (eval $ac_try) 2>&5
8028 ac_status=$?
8029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8030 (exit $ac_status); }; } &&
8031 { ac_try='test -s conftest$ac_exeext'
8032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8033 (eval $ac_try) 2>&5
8034 ac_status=$?
8035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036 (exit $ac_status); }; }; then
d7040cdb 8037
ce2cded5
L
8038lt_aix_libpath_sed='
8039 /Import File Strings/,/^$/ {
8040 /^0/ {
8041 s/^0 *\(.*\)$/\1/
8042 p
8043 }
8044 }'
8045aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8046# Check for a 64-bit object if we didn't find anything.
8047if test -z "$aix_libpath"; then
8048 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8049fi
8050else
8051 echo "$as_me: failed program was:" >&5
8052sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 8053
ce2cded5
L
8054fi
8055rm -f conftest.err conftest.$ac_objext \
8056 conftest$ac_exeext conftest.$ac_ext
8057if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 8058
ce2cded5
L
8059 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8060 # Warning - without using the other run time loading flags,
8061 # -berok will link without error, but may produce a broken library.
8062 no_undefined_flag=' ${wl}-bernotok'
8063 allow_undefined_flag=' ${wl}-berok'
8064 # Exported symbols can be pulled into shared objects from archives
8065 whole_archive_flag_spec='$convenience'
8066 archive_cmds_need_lc=yes
8067 # This is similar to how AIX traditionally builds its shared libraries.
8068 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'
8069 fi
8070 fi
8071 ;;
d7040cdb 8072
ce2cded5
L
8073 amigaos*)
8074 if test "$host_cpu" = m68k; then
8075 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)'
8076 hardcode_libdir_flag_spec='-L$libdir'
8077 hardcode_minus_L=yes
8078 fi
8079 # see comment about different semantics on the GNU ld section
8080 ld_shlibs=no
8081 ;;
8082
8083 bsdi[45]*)
8084 export_dynamic_flag_spec=-rdynamic
8085 ;;
8086
8087 cygwin* | mingw* | pw32*)
8088 # When not using gcc, we currently assume that we are using
8089 # Microsoft Visual C++.
8090 # hardcode_libdir_flag_spec is actually meaningless, as there is
8091 # no search path for DLLs.
8092 hardcode_libdir_flag_spec=' '
8093 allow_undefined_flag=unsupported
8094 # Tell ltmain to make .lib files, not .a files.
8095 libext=lib
8096 # Tell ltmain to make .dll files, not .so files.
8097 shrext_cmds=".dll"
8098 # FIXME: Setting linknames here is a bad hack.
8099 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8100 # The linker will automatically build a .lib file if we build a DLL.
8101 old_archive_from_new_cmds='true'
8102 # FIXME: Should let the user specify the lib program.
8103 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8104 fix_srcfile_path='`cygpath -w "$srcfile"`'
8105 enable_shared_with_static_runtimes=yes
8106 ;;
8107
8108 darwin* | rhapsody*)
8109 case $host_os in
8110 rhapsody* | darwin1.[012])
8111 allow_undefined_flag='${wl}-undefined ${wl}suppress'
d7040cdb 8112 ;;
ce2cded5
L
8113 *) # Darwin 1.3 on
8114 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
8115 10.[012])
8116 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8117 ;;
8118 10.*)
8119 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8120 ;;
8121 esac
d7040cdb
SE
8122 ;;
8123 esac
ce2cded5
L
8124 archive_cmds_need_lc=no
8125 hardcode_direct=no
8126 hardcode_automatic=yes
8127 hardcode_shlibpath_var=unsupported
8128 whole_archive_flag_spec=''
8129 link_all_deplibs=yes
8130 if test "$GCC" = yes ; then
8131 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8132 echo $ECHO_N "(cached) $ECHO_C" >&6
8133else
8134 lt_cv_apple_cc_single_mod=no
8135 if test -z "${LT_MULTI_MODULE}"; then
8136 # By default we will add the -single_module flag. You can override
8137 # by either setting the environment variable LT_MULTI_MODULE
8138 # non-empty at configure time, or by adding -multi-module to the
8139 # link flags.
8140 echo "int foo(void){return 1;}" > conftest.c
8141 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8142 -dynamiclib ${wl}-single_module conftest.c
8143 if test -f libconftest.dylib; then
8144 lt_cv_apple_cc_single_mod=yes
8145 rm libconftest.dylib
8146 fi
8147 rm conftest.$ac_ext
8148 fi
8149fi
d7040cdb 8150
ce2cded5
L
8151 output_verbose_link_cmd=echo
8152 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
8153 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8154 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}'
8155 else
8156 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8157 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}'
8158 fi
8159 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8160 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}'
8161 else
8162 case $cc_basename in
8163 xlc*)
8164 output_verbose_link_cmd=echo
8165 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
8166 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8167 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8168 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}'
8169 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}'
8170 ;;
8171 *)
8172 ld_shlibs=no
8173 ;;
8174 esac
8175 fi
8176 ;;
d7040cdb 8177
ce2cded5
L
8178 dgux*)
8179 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8180 hardcode_libdir_flag_spec='-L$libdir'
8181 hardcode_shlibpath_var=no
8182 ;;
d7040cdb 8183
ce2cded5
L
8184 freebsd1*)
8185 ld_shlibs=no
8186 ;;
d7040cdb 8187
ce2cded5
L
8188 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8189 # support. Future versions do this automatically, but an explicit c++rt0.o
8190 # does not break anything, and helps significantly (at the cost of a little
8191 # extra space).
8192 freebsd2.2*)
8193 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8194 hardcode_libdir_flag_spec='-R$libdir'
8195 hardcode_direct=yes
8196 hardcode_shlibpath_var=no
d7040cdb 8197 ;;
d7040cdb 8198
ce2cded5
L
8199 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8200 freebsd2*)
8201 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8202 hardcode_direct=yes
8203 hardcode_minus_L=yes
8204 hardcode_shlibpath_var=no
8205 ;;
d7040cdb 8206
ce2cded5
L
8207 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8208 freebsd* | dragonfly*)
8209 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8210 hardcode_libdir_flag_spec='-R$libdir'
8211 hardcode_direct=yes
8212 hardcode_shlibpath_var=no
8213 ;;
d7040cdb 8214
ce2cded5
L
8215 hpux9*)
8216 if test "$GCC" = yes; then
8217 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'
8218 else
8219 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'
8220 fi
8221 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8222 hardcode_libdir_separator=:
8223 hardcode_direct=yes
d7040cdb 8224
ce2cded5
L
8225 # hardcode_minus_L: Not really in the search PATH,
8226 # but as the default location of the library.
8227 hardcode_minus_L=yes
8228 export_dynamic_flag_spec='${wl}-E'
8229 ;;
d7040cdb 8230
ce2cded5
L
8231 hpux10*)
8232 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8233 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8234 else
8235 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8236 fi
8237 if test "$with_gnu_ld" = no; then
8238 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8239 hardcode_libdir_flag_spec_ld='+b $libdir'
8240 hardcode_libdir_separator=:
8241 hardcode_direct=yes
8242 hardcode_direct_absolute=yes
8243 export_dynamic_flag_spec='${wl}-E'
8244 # hardcode_minus_L: Not really in the search PATH,
8245 # but as the default location of the library.
8246 hardcode_minus_L=yes
8247 fi
8248 ;;
d7040cdb 8249
ce2cded5
L
8250 hpux11*)
8251 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8252 case $host_cpu in
8253 hppa*64*)
8254 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8255 ;;
8256 ia64*)
8257 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8258 ;;
8259 *)
8260 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8261 ;;
8262 esac
8263 else
8264 case $host_cpu in
8265 hppa*64*)
8266 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8267 ;;
8268 ia64*)
8269 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8270 ;;
8271 *)
8272 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8273 ;;
8274 esac
8275 fi
8276 if test "$with_gnu_ld" = no; then
8277 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8278 hardcode_libdir_separator=:
d7040cdb 8279
ce2cded5
L
8280 case $host_cpu in
8281 hppa*64*|ia64*)
8282 hardcode_direct=no
8283 hardcode_shlibpath_var=no
8284 ;;
8285 *)
8286 hardcode_direct=yes
8287 hardcode_direct_absolute=yes
8288 export_dynamic_flag_spec='${wl}-E'
d7040cdb 8289
ce2cded5
L
8290 # hardcode_minus_L: Not really in the search PATH,
8291 # but as the default location of the library.
8292 hardcode_minus_L=yes
8293 ;;
8294 esac
8295 fi
8296 ;;
d7040cdb 8297
ce2cded5
L
8298 irix5* | irix6* | nonstopux*)
8299 if test "$GCC" = yes; then
8300 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'
8301 # Try to use the -exported_symbol ld option, if it does not
8302 # work, assume that -exports_file does not work either and
8303 # implicitly export all symbols.
8304 save_LDFLAGS="$LDFLAGS"
8305 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8306 cat >conftest.$ac_ext <<_ACEOF
8307int foo(void) {}
8308_ACEOF
8309rm -f conftest.$ac_objext conftest$ac_exeext
8310if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8311 (eval $ac_link) 2>conftest.er1
8312 ac_status=$?
8313 grep -v '^ *+' conftest.er1 >conftest.err
8314 rm -f conftest.er1
8315 cat conftest.err >&5
8316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317 (exit $ac_status); } &&
4474d12b 8318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ce2cded5
L
8319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8320 (eval $ac_try) 2>&5
8321 ac_status=$?
8322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323 (exit $ac_status); }; } &&
8324 { ac_try='test -s conftest$ac_exeext'
8325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8326 (eval $ac_try) 2>&5
8327 ac_status=$?
8328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329 (exit $ac_status); }; }; then
8330 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 8331
ce2cded5
L
8332else
8333 echo "$as_me: failed program was:" >&5
8334sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 8335
ce2cded5
L
8336fi
8337rm -f conftest.err conftest.$ac_objext \
8338 conftest$ac_exeext conftest.$ac_ext
8339 LDFLAGS="$save_LDFLAGS"
8340 else
8341 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'
8342 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'
8343 fi
8344 archive_cmds_need_lc='no'
8345 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8346 hardcode_libdir_separator=:
8347 inherit_rpath=yes
8348 link_all_deplibs=yes
8349 ;;
d7040cdb 8350
ce2cded5
L
8351 netbsd*)
8352 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8353 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8354 else
8355 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8356 fi
8357 hardcode_libdir_flag_spec='-R$libdir'
8358 hardcode_direct=yes
8359 hardcode_shlibpath_var=no
8360 ;;
d7040cdb 8361
ce2cded5
L
8362 newsos6)
8363 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8364 hardcode_direct=yes
8365 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8366 hardcode_libdir_separator=:
8367 hardcode_shlibpath_var=no
8368 ;;
d7040cdb 8369
ce2cded5
L
8370 *nto* | *qnx*)
8371 ;;
d7040cdb 8372
ce2cded5
L
8373 openbsd*)
8374 hardcode_direct=yes
8375 hardcode_shlibpath_var=no
8376 hardcode_direct_absolute=yes
8377 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8378 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8379 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8380 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8381 export_dynamic_flag_spec='${wl}-E'
8382 else
8383 case $host_os in
8384 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8385 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8386 hardcode_libdir_flag_spec='-R$libdir'
8387 ;;
8388 *)
8389 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8390 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8391 ;;
8392 esac
8393 fi
8394 ;;
d7040cdb 8395
ce2cded5
L
8396 os2*)
8397 hardcode_libdir_flag_spec='-L$libdir'
8398 hardcode_minus_L=yes
8399 allow_undefined_flag=unsupported
8400 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'
8401 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8402 ;;
d7040cdb 8403
ce2cded5
L
8404 osf3*)
8405 if test "$GCC" = yes; then
8406 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8407 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'
8408 else
8409 allow_undefined_flag=' -expect_unresolved \*'
8410 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'
8411 fi
8412 archive_cmds_need_lc='no'
8413 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8414 hardcode_libdir_separator=:
8415 ;;
d7040cdb 8416
ce2cded5
L
8417 osf4* | osf5*) # as osf3* with the addition of -msym flag
8418 if test "$GCC" = yes; then
8419 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8420 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'
8421 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8422 else
8423 allow_undefined_flag=' -expect_unresolved \*'
8424 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'
8425 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~
8426 $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 8427
ce2cded5
L
8428 # Both c and cxx compiler support -rpath directly
8429 hardcode_libdir_flag_spec='-rpath $libdir'
8430 fi
8431 archive_cmds_need_lc='no'
8432 hardcode_libdir_separator=:
8433 ;;
d7040cdb 8434
ce2cded5
L
8435 solaris*)
8436 no_undefined_flag=' -z defs'
8437 if test "$GCC" = yes; then
8438 wlarc='${wl}'
8439 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8440 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8441 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8442 else
8443 case `$CC -V 2>&1` in
8444 *"Compilers 5.0"*)
8445 wlarc=''
8446 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8447 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8448 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8449 ;;
8450 *)
8451 wlarc='${wl}'
8452 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8453 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8454 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8455 ;;
8456 esac
8457 fi
8458 hardcode_libdir_flag_spec='-R$libdir'
8459 hardcode_shlibpath_var=no
8460 case $host_os in
8461 solaris2.[0-5] | solaris2.[0-5].*) ;;
8462 *)
8463 # The compiler driver will combine and reorder linker options,
8464 # but understands `-z linker_flag'. GCC discards it without `$wl',
8465 # but is careful enough not to reorder.
8466 # Supported since Solaris 2.6 (maybe 2.5.1?)
8467 if test "$GCC" = yes; then
8468 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8469 else
8470 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8471 fi
8472 ;;
8473 esac
8474 link_all_deplibs=yes
8475 ;;
d7040cdb 8476
ce2cded5
L
8477 sunos4*)
8478 if test "x$host_vendor" = xsequent; then
8479 # Use $CC to link under sequent, because it throws in some extra .o
8480 # files that make .init and .fini sections work.
8481 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8482 else
8483 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8484 fi
8485 hardcode_libdir_flag_spec='-L$libdir'
8486 hardcode_direct=yes
8487 hardcode_minus_L=yes
8488 hardcode_shlibpath_var=no
8489 ;;
d7040cdb 8490
ce2cded5
L
8491 sysv4)
8492 case $host_vendor in
8493 sni)
8494 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8495 hardcode_direct=yes # is this really true???
8496 ;;
8497 siemens)
8498 ## LD is ld it makes a PLAMLIB
8499 ## CC just makes a GrossModule.
8500 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8501 reload_cmds='$CC -r -o $output$reload_objs'
8502 hardcode_direct=no
8503 ;;
8504 motorola)
8505 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8506 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8507 ;;
8508 esac
8509 runpath_var='LD_RUN_PATH'
8510 hardcode_shlibpath_var=no
8511 ;;
d7040cdb 8512
ce2cded5
L
8513 sysv4.3*)
8514 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8515 hardcode_shlibpath_var=no
8516 export_dynamic_flag_spec='-Bexport'
8517 ;;
d7040cdb 8518
ce2cded5
L
8519 sysv4*MP*)
8520 if test -d /usr/nec; then
8521 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8522 hardcode_shlibpath_var=no
8523 runpath_var=LD_RUN_PATH
8524 hardcode_runpath_var=yes
8525 ld_shlibs=yes
8526 fi
8527 ;;
d7040cdb 8528
ce2cded5
L
8529 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8530 no_undefined_flag='${wl}-z,text'
8531 archive_cmds_need_lc=no
8532 hardcode_shlibpath_var=no
8533 runpath_var='LD_RUN_PATH'
d7040cdb 8534
ce2cded5
L
8535 if test "$GCC" = yes; then
8536 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8537 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8538 else
8539 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8540 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8541 fi
8542 ;;
d7040cdb 8543
ce2cded5
L
8544 sysv5* | sco3.2v5* | sco5v6*)
8545 # Note: We can NOT use -z defs as we might desire, because we do not
8546 # link with -lc, and that would cause any symbols used from libc to
8547 # always be unresolved, which means just about no library would
8548 # ever link correctly. If we're not using GNU ld we use -z text
8549 # though, which does catch some bad symbols but isn't as heavy-handed
8550 # as -z defs.
8551 no_undefined_flag='${wl}-z,text'
8552 allow_undefined_flag='${wl}-z,nodefs'
8553 archive_cmds_need_lc=no
8554 hardcode_shlibpath_var=no
8555 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8556 hardcode_libdir_separator=':'
8557 link_all_deplibs=yes
8558 export_dynamic_flag_spec='${wl}-Bexport'
8559 runpath_var='LD_RUN_PATH'
d7040cdb 8560
ce2cded5
L
8561 if test "$GCC" = yes; then
8562 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8563 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8564 else
8565 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8566 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8567 fi
8568 ;;
d7040cdb 8569
ce2cded5
L
8570 uts4*)
8571 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8572 hardcode_libdir_flag_spec='-L$libdir'
8573 hardcode_shlibpath_var=no
8574 ;;
d7040cdb 8575
ce2cded5
L
8576 *)
8577 ld_shlibs=no
8578 ;;
8579 esac
d7040cdb 8580
ce2cded5
L
8581 if test x$host_vendor = xsni; then
8582 case $host in
8583 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8584 export_dynamic_flag_spec='${wl}-Blargedynsym'
8585 ;;
8586 esac
8587 fi
8588 fi
d7040cdb 8589
ce2cded5
L
8590echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8591echo "${ECHO_T}$ld_shlibs" >&6
8592test "$ld_shlibs" = no && can_build_shared=no
d7040cdb 8593
ce2cded5 8594with_gnu_ld=$with_gnu_ld
d7040cdb
SE
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
ce2cded5
L
8610#
8611# Do we need to explicitly link libc?
8612#
8613case "x$archive_cmds_need_lc" in
8614x|xyes)
8615 # Assume -lc should be added
8616 archive_cmds_need_lc=yes
d7040cdb 8617
ce2cded5
L
8618 if test "$enable_shared" = yes && test "$GCC" = yes; then
8619 case $archive_cmds in
8620 *'~'*)
8621 # FIXME: we may have to deal with multi-command sequences.
8622 ;;
8623 '$CC '*)
8624 # Test whether the compiler implicitly links with -lc since on some
8625 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8626 # to ld, don't add -lc before -lgcc.
8627 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8628echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8629 $RM conftest*
8630 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 8631
ce2cded5
L
8632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8633 (eval $ac_compile) 2>&5
8634 ac_status=$?
8635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636 (exit $ac_status); } 2>conftest.err; then
8637 soname=conftest
8638 lib=conftest
8639 libobjs=conftest.$ac_objext
8640 deplibs=
8641 wl=$lt_prog_compiler_wl
8642 pic_flag=$lt_prog_compiler_pic
8643 compiler_flags=-v
8644 linker_flags=-v
8645 verstring=
8646 output_objdir=.
8647 libname=conftest
8648 lt_save_allow_undefined_flag=$allow_undefined_flag
8649 allow_undefined_flag=
8650 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8651 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8652 ac_status=$?
8653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654 (exit $ac_status); }
8655 then
8656 archive_cmds_need_lc=no
8657 else
8658 archive_cmds_need_lc=yes
8659 fi
8660 allow_undefined_flag=$lt_save_allow_undefined_flag
8661 else
8662 cat conftest.err 1>&5
8663 fi
8664 $RM conftest*
8665 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8666echo "${ECHO_T}$archive_cmds_need_lc" >&6
8667 ;;
8668 esac
8669 fi
8670 ;;
8671esac
d7040cdb
SE
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
d7040cdb 8699
d7040cdb 8700
d7040cdb
SE
8701
8702
8703
8704
8705
8706
d7040cdb 8707
d7040cdb 8708
d7040cdb 8709
d7040cdb 8710
d7040cdb 8711
d7040cdb 8712
d7040cdb 8713
d7040cdb 8714
d7040cdb 8715
d7040cdb 8716
d7040cdb 8717
d7040cdb 8718
d7040cdb 8719
d7040cdb 8720
d7040cdb 8721
d7040cdb 8722
d7040cdb 8723
d7040cdb 8724
d7040cdb 8725
d7040cdb 8726
d7040cdb 8727
d7040cdb 8728
d7040cdb 8729
d7040cdb 8730
d7040cdb 8731
d7040cdb 8732
d7040cdb 8733
d7040cdb 8734
ce2cded5
L
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8830echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8831withGCC=$GCC
8832if test "$withGCC" = yes; then
8833 case $host_os in
8834 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8835 *) lt_awk_arg="/^libraries:/" ;;
8836 esac
8837 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8838 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8839 # if the path contains ";" then we assume it to be the separator
8840 # otherwise default to the standard path separator (i.e. ":") - it is
8841 # assumed that no part of a normal pathname contains ";" but that should
8842 # okay in the real world where ";" in dirpaths is itself problematic.
8843 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8844 else
8845 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8846 fi
8847 # Ok, now we have the path, separated by spaces, we can step through it
8848 # and add multilib dir if necessary.
8849 lt_tmp_lt_search_path_spec=
8850 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8851 for lt_sys_path in $lt_search_path_spec; do
8852 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8853 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8854 else
8855 test -d "$lt_sys_path" && \
8856 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8857 fi
8858 done
8859 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8860BEGIN {RS=" "; FS="/|\n";} {
8861 lt_foo="";
8862 lt_count=0;
8863 for (lt_i = NF; lt_i > 0; lt_i--) {
8864 if ($lt_i != "" && $lt_i != ".") {
8865 if ($lt_i == "..") {
8866 lt_count++;
8867 } else {
8868 if (lt_count == 0) {
8869 lt_foo="/" $lt_i lt_foo;
8870 } else {
8871 lt_count--;
8872 }
8873 }
8874 }
8875 }
8876 if (lt_foo != "") { lt_freq[lt_foo]++; }
8877 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8878}'`
8879 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
d7040cdb 8880else
ce2cded5
L
8881 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8882fi
8883library_names_spec=
8884libname_spec='lib$name'
8885soname_spec=
8886shrext_cmds=".so"
8887postinstall_cmds=
8888postuninstall_cmds=
8889finish_cmds=
8890finish_eval=
8891shlibpath_var=
8892shlibpath_overrides_runpath=unknown
8893version_type=none
8894dynamic_linker="$host_os ld.so"
8895sys_lib_dlsearch_path_spec="/lib /usr/lib"
8896need_lib_prefix=unknown
8897hardcode_into_libs=no
8898
8899# when you set need_version to no, make sure it does not cause -set_version
8900# flags to be left without arguments
8901need_version=unknown
8902
8903case $host_os in
8904aix3*)
8905 version_type=linux
8906 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8907 shlibpath_var=LIBPATH
8908
8909 # AIX 3 has no versioning support, so we append a major version to the name.
8910 soname_spec='${libname}${release}${shared_ext}$major'
8911 ;;
8912
50e7d84b 8913aix[4-9]*)
ce2cded5
L
8914 version_type=linux
8915 need_lib_prefix=no
8916 need_version=no
8917 hardcode_into_libs=yes
8918 if test "$host_cpu" = ia64; then
8919 # AIX 5 supports IA64
8920 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8921 shlibpath_var=LD_LIBRARY_PATH
8922 else
8923 # With GCC up to 2.95.x, collect2 would create an import file
8924 # for dependence libraries. The import file would start with
8925 # the line `#! .'. This would cause the generated library to
8926 # depend on `.', always an invalid library. This was fixed in
8927 # development snapshots of GCC prior to 3.0.
8928 case $host_os in
8929 aix4 | aix4.[01] | aix4.[01].*)
8930 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8931 echo ' yes '
8932 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8933 :
8934 else
8935 can_build_shared=no
8936 fi
8937 ;;
8938 esac
8939 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8940 # soname into executable. Probably we can add versioning support to
8941 # collect2, so additional links can be useful in future.
8942 if test "$aix_use_runtimelinking" = yes; then
8943 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8944 # instead of lib<name>.a to let people know that these are not
8945 # typical AIX shared libraries.
8946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8947 else
8948 # We preserve .a as extension for shared libraries through AIX4.2
8949 # and later when we are not doing run time linking.
8950 library_names_spec='${libname}${release}.a $libname.a'
8951 soname_spec='${libname}${release}${shared_ext}$major'
8952 fi
8953 shlibpath_var=LIBPATH
8954 fi
8955 ;;
8956
8957amigaos*)
8958 if test "$host_cpu" = m68k; then
8959 library_names_spec='$libname.ixlibrary $libname.a'
8960 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8961 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'
8962 else
8963 dynamic_linker=no
8964 fi
8965 ;;
8966
8967beos*)
8968 library_names_spec='${libname}${shared_ext}'
8969 dynamic_linker="$host_os ld.so"
8970 shlibpath_var=LIBRARY_PATH
8971 ;;
8972
8973bsdi[45]*)
8974 version_type=linux
8975 need_version=no
8976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8977 soname_spec='${libname}${release}${shared_ext}$major'
8978 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8979 shlibpath_var=LD_LIBRARY_PATH
8980 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8981 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8982 # the default ld.so.conf also contains /usr/contrib/lib and
8983 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8984 # libtool to hard-code these into programs
8985 ;;
8986
8987cygwin* | mingw* | pw32*)
8988 version_type=windows
8989 shrext_cmds=".dll"
8990 need_version=no
8991 need_lib_prefix=no
8992
8993 case $withGCC,$host_os in
8994 yes,cygwin* | yes,mingw* | yes,pw32*)
8995 library_names_spec='$libname.dll.a'
8996 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8997 postinstall_cmds='base_file=`basename \${file}`~
8998 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8999 dldir=$destdir/`dirname \$dlpath`~
9000 test -d \$dldir || mkdir -p \$dldir~
9001 $install_prog $dir/$dlname \$dldir/$dlname~
9002 chmod a+x \$dldir/$dlname~
9003 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9004 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9005 fi'
9006 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9007 dlpath=$dir/\$dldll~
9008 $RM \$dlpath'
9009 shlibpath_overrides_runpath=yes
9010
9011 case $host_os in
9012 cygwin*)
9013 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9014 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9015 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9016 ;;
9017 mingw*)
9018 # MinGW DLLs use traditional 'lib' prefix
9019 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9020 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9021 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9022 # It is most probably a Windows format PATH printed by
9023 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9024 # path with ; separators, and with drive letters. We can handle the
9025 # drive letters (cygwin fileutils understands them), so leave them,
9026 # especially as we might pass files found there to a mingw objdump,
9027 # which wouldn't understand a cygwinified path. Ahh.
9028 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9029 else
9030 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9031 fi
9032 ;;
9033 pw32*)
9034 # pw32 DLLs use 'pw' prefix rather than 'lib'
9035 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9036 ;;
9037 esac
9038 ;;
9039
9040 *)
9041 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9042 ;;
9043 esac
9044 dynamic_linker='Win32 ld.exe'
9045 # FIXME: first we should search . and the directory the executable is in
9046 shlibpath_var=PATH
9047 ;;
9048
9049darwin* | rhapsody*)
9050 dynamic_linker="$host_os dyld"
9051 version_type=darwin
9052 need_lib_prefix=no
9053 need_version=no
9054 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9055 soname_spec='${libname}${release}${major}$shared_ext'
9056 shlibpath_overrides_runpath=yes
9057 shlibpath_var=DYLD_LIBRARY_PATH
9058 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9059
9060 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9061 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9062 ;;
9063
9064dgux*)
9065 version_type=linux
9066 need_lib_prefix=no
9067 need_version=no
9068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9069 soname_spec='${libname}${release}${shared_ext}$major'
9070 shlibpath_var=LD_LIBRARY_PATH
9071 ;;
9072
9073freebsd1*)
9074 dynamic_linker=no
9075 ;;
9076
9077freebsd* | dragonfly*)
9078 # DragonFly does not have aout. When/if they implement a new
9079 # versioning mechanism, adjust this.
9080 if test -x /usr/bin/objformat; then
9081 objformat=`/usr/bin/objformat`
9082 else
9083 case $host_os in
9084 freebsd[123]*) objformat=aout ;;
9085 *) objformat=elf ;;
9086 esac
9087 fi
9088 version_type=freebsd-$objformat
9089 case $version_type in
9090 freebsd-elf*)
9091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9092 need_version=no
9093 need_lib_prefix=no
9094 ;;
9095 freebsd-*)
9096 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9097 need_version=yes
9098 ;;
9099 esac
9100 shlibpath_var=LD_LIBRARY_PATH
9101 case $host_os in
9102 freebsd2*)
9103 shlibpath_overrides_runpath=yes
9104 ;;
9105 freebsd3.[01]* | freebsdelf3.[01]*)
9106 shlibpath_overrides_runpath=yes
9107 hardcode_into_libs=yes
9108 ;;
9109 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9110 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9111 shlibpath_overrides_runpath=no
9112 hardcode_into_libs=yes
9113 ;;
9114 *) # from 4.6 on, and DragonFly
9115 shlibpath_overrides_runpath=yes
9116 hardcode_into_libs=yes
9117 ;;
9118 esac
9119 ;;
9120
9121gnu*)
9122 version_type=linux
9123 need_lib_prefix=no
9124 need_version=no
9125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9126 soname_spec='${libname}${release}${shared_ext}$major'
9127 shlibpath_var=LD_LIBRARY_PATH
9128 hardcode_into_libs=yes
9129 ;;
9130
9131hpux9* | hpux10* | hpux11*)
9132 # Give a soname corresponding to the major version so that dld.sl refuses to
9133 # link against other versions.
9134 version_type=sunos
9135 need_lib_prefix=no
9136 need_version=no
9137 case $host_cpu in
9138 ia64*)
9139 shrext_cmds='.so'
9140 hardcode_into_libs=yes
9141 dynamic_linker="$host_os dld.so"
9142 shlibpath_var=LD_LIBRARY_PATH
9143 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9145 soname_spec='${libname}${release}${shared_ext}$major'
9146 if test "X$HPUX_IA64_MODE" = X32; then
9147 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9148 else
9149 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9150 fi
9151 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9152 ;;
9153 hppa*64*)
9154 shrext_cmds='.sl'
9155 hardcode_into_libs=yes
9156 dynamic_linker="$host_os dld.sl"
9157 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9158 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9160 soname_spec='${libname}${release}${shared_ext}$major'
9161 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9162 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9163 ;;
9164 *)
9165 shrext_cmds='.sl'
9166 dynamic_linker="$host_os dld.sl"
9167 shlibpath_var=SHLIB_PATH
9168 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9170 soname_spec='${libname}${release}${shared_ext}$major'
9171 ;;
9172 esac
9173 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9174 postinstall_cmds='chmod 555 $lib'
9175 ;;
9176
9177interix[3-9]*)
9178 version_type=linux
9179 need_lib_prefix=no
9180 need_version=no
9181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9182 soname_spec='${libname}${release}${shared_ext}$major'
9183 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9184 shlibpath_var=LD_LIBRARY_PATH
9185 shlibpath_overrides_runpath=no
9186 hardcode_into_libs=yes
9187 ;;
9188
9189irix5* | irix6* | nonstopux*)
9190 case $host_os in
9191 nonstopux*) version_type=nonstopux ;;
9192 *)
9193 if test "$lt_cv_prog_gnu_ld" = yes; then
9194 version_type=linux
9195 else
9196 version_type=irix
9197 fi ;;
9198 esac
9199 need_lib_prefix=no
9200 need_version=no
9201 soname_spec='${libname}${release}${shared_ext}$major'
9202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9203 case $host_os in
9204 irix5* | nonstopux*)
9205 libsuff= shlibsuff=
9206 ;;
9207 *)
9208 case $LD in # libtool.m4 will add one of these switches to LD
9209 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9210 libsuff= shlibsuff= libmagic=32-bit;;
9211 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9212 libsuff=32 shlibsuff=N32 libmagic=N32;;
9213 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9214 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9215 *) libsuff= shlibsuff= libmagic=never-match;;
9216 esac
9217 ;;
9218 esac
9219 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9220 shlibpath_overrides_runpath=no
9221 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9222 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9223 hardcode_into_libs=yes
9224 ;;
9225
9226# No shared lib support for Linux oldld, aout, or coff.
9227linux*oldld* | linux*aout* | linux*coff*)
9228 dynamic_linker=no
9229 ;;
9230
9231# This must be Linux ELF.
9232linux* | k*bsd*-gnu)
9233 version_type=linux
9234 need_lib_prefix=no
9235 need_version=no
9236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9237 soname_spec='${libname}${release}${shared_ext}$major'
9238 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9239 shlibpath_var=LD_LIBRARY_PATH
9240 shlibpath_overrides_runpath=no
9241 # Some binutils ld are patched to set DT_RUNPATH
9242 save_LDFLAGS=$LDFLAGS
9243 save_libdir=$libdir
9244 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9245 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9246 cat >conftest.$ac_ext <<_ACEOF
d7040cdb
SE
9247/* confdefs.h. */
9248_ACEOF
9249cat confdefs.h >>conftest.$ac_ext
9250cat >>conftest.$ac_ext <<_ACEOF
9251/* end confdefs.h. */
9252
d7040cdb
SE
9253int
9254main ()
9255{
ce2cded5 9256
d7040cdb
SE
9257 ;
9258 return 0;
9259}
9260_ACEOF
9261rm -f conftest.$ac_objext conftest$ac_exeext
9262if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9263 (eval $ac_link) 2>conftest.er1
9264 ac_status=$?
9265 grep -v '^ *+' conftest.er1 >conftest.err
9266 rm -f conftest.er1
9267 cat conftest.err >&5
9268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9269 (exit $ac_status); } &&
4474d12b 9270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d7040cdb
SE
9271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9272 (eval $ac_try) 2>&5
9273 ac_status=$?
9274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9275 (exit $ac_status); }; } &&
9276 { ac_try='test -s conftest$ac_exeext'
9277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9278 (eval $ac_try) 2>&5
9279 ac_status=$?
9280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281 (exit $ac_status); }; }; then
9282 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
9283 shlibpath_overrides_runpath=yes
d7040cdb 9284fi
d7040cdb 9285
ce2cded5
L
9286else
9287 echo "$as_me: failed program was:" >&5
9288sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb
SE
9289
9290fi
ce2cded5
L
9291rm -f conftest.err conftest.$ac_objext \
9292 conftest$ac_exeext conftest.$ac_ext
9293 LDFLAGS=$save_LDFLAGS
9294 libdir=$save_libdir
d7040cdb 9295
ce2cded5
L
9296 # This implies no fast_install, which is unacceptable.
9297 # Some rework will be needed to allow for fast_install
9298 # before this can be enabled.
9299 hardcode_into_libs=yes
d7040cdb 9300
ce2cded5
L
9301 # Append ld.so.conf contents to the search path
9302 if test -f /etc/ld.so.conf; then
9303 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' ' '`
9304 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9305 fi
d7040cdb 9306
ce2cded5
L
9307 # We used to test for /lib/ld.so.1 and disable shared libraries on
9308 # powerpc, because MkLinux only supported shared libraries with the
9309 # GNU dynamic linker. Since this was broken with cross compilers,
9310 # most powerpc-linux boxes support dynamic linking these days and
9311 # people can always --disable-shared, the test was removed, and we
9312 # assume the GNU/Linux dynamic linker is in use.
9313 dynamic_linker='GNU/Linux ld.so'
9314 ;;
d7040cdb 9315
ce2cded5
L
9316netbsd*)
9317 version_type=sunos
9318 need_lib_prefix=no
9319 need_version=no
9320 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9322 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9323 dynamic_linker='NetBSD (a.out) ld.so'
9324 else
9325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9326 soname_spec='${libname}${release}${shared_ext}$major'
9327 dynamic_linker='NetBSD ld.elf_so'
9328 fi
9329 shlibpath_var=LD_LIBRARY_PATH
9330 shlibpath_overrides_runpath=yes
9331 hardcode_into_libs=yes
9332 ;;
d7040cdb 9333
ce2cded5
L
9334newsos6)
9335 version_type=linux
9336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9337 shlibpath_var=LD_LIBRARY_PATH
9338 shlibpath_overrides_runpath=yes
9339 ;;
d7040cdb 9340
ce2cded5
L
9341*nto* | *qnx*)
9342 version_type=qnx
9343 need_lib_prefix=no
9344 need_version=no
9345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9346 soname_spec='${libname}${release}${shared_ext}$major'
9347 shlibpath_var=LD_LIBRARY_PATH
9348 shlibpath_overrides_runpath=no
9349 hardcode_into_libs=yes
9350 dynamic_linker='ldqnx.so'
9351 ;;
d7040cdb 9352
ce2cded5
L
9353openbsd*)
9354 version_type=sunos
9355 sys_lib_dlsearch_path_spec="/usr/lib"
9356 need_lib_prefix=no
9357 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9358 case $host_os in
9359 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9360 *) need_version=no ;;
9361 esac
9362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9363 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9364 shlibpath_var=LD_LIBRARY_PATH
9365 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9366 case $host_os in
9367 openbsd2.[89] | openbsd2.[89].*)
9368 shlibpath_overrides_runpath=no
9369 ;;
9370 *)
9371 shlibpath_overrides_runpath=yes
9372 ;;
9373 esac
9374 else
9375 shlibpath_overrides_runpath=yes
9376 fi
9377 ;;
d7040cdb 9378
ce2cded5
L
9379os2*)
9380 libname_spec='$name'
9381 shrext_cmds=".dll"
9382 need_lib_prefix=no
9383 library_names_spec='$libname${shared_ext} $libname.a'
9384 dynamic_linker='OS/2 ld.exe'
9385 shlibpath_var=LIBPATH
9386 ;;
d7040cdb 9387
ce2cded5
L
9388osf3* | osf4* | osf5*)
9389 version_type=osf
9390 need_lib_prefix=no
9391 need_version=no
9392 soname_spec='${libname}${release}${shared_ext}$major'
9393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9394 shlibpath_var=LD_LIBRARY_PATH
9395 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9396 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9397 ;;
d7040cdb 9398
ce2cded5
L
9399rdos*)
9400 dynamic_linker=no
9401 ;;
d7040cdb 9402
ce2cded5
L
9403solaris*)
9404 version_type=linux
9405 need_lib_prefix=no
9406 need_version=no
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 shlibpath_var=LD_LIBRARY_PATH
9410 shlibpath_overrides_runpath=yes
9411 hardcode_into_libs=yes
9412 # ldd complains unless libraries are executable
9413 postinstall_cmds='chmod +x $lib'
9414 ;;
d7040cdb 9415
ce2cded5
L
9416sunos4*)
9417 version_type=sunos
9418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9419 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9420 shlibpath_var=LD_LIBRARY_PATH
9421 shlibpath_overrides_runpath=yes
9422 if test "$with_gnu_ld" = yes; then
9423 need_lib_prefix=no
9424 fi
9425 need_version=yes
9426 ;;
d7040cdb 9427
ce2cded5
L
9428sysv4 | sysv4.3*)
9429 version_type=linux
9430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9431 soname_spec='${libname}${release}${shared_ext}$major'
9432 shlibpath_var=LD_LIBRARY_PATH
9433 case $host_vendor in
9434 sni)
9435 shlibpath_overrides_runpath=no
9436 need_lib_prefix=no
9437 runpath_var=LD_RUN_PATH
9438 ;;
9439 siemens)
9440 need_lib_prefix=no
9441 ;;
9442 motorola)
9443 need_lib_prefix=no
9444 need_version=no
9445 shlibpath_overrides_runpath=no
9446 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9447 ;;
9448 esac
9449 ;;
d7040cdb 9450
ce2cded5
L
9451sysv4*MP*)
9452 if test -d /usr/nec ;then
9453 version_type=linux
9454 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9455 soname_spec='$libname${shared_ext}.$major'
9456 shlibpath_var=LD_LIBRARY_PATH
9457 fi
9458 ;;
d7040cdb 9459
ce2cded5
L
9460sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9461 version_type=freebsd-elf
9462 need_lib_prefix=no
9463 need_version=no
9464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9465 soname_spec='${libname}${release}${shared_ext}$major'
9466 shlibpath_var=LD_LIBRARY_PATH
9467 shlibpath_overrides_runpath=yes
9468 hardcode_into_libs=yes
9469 if test "$with_gnu_ld" = yes; then
9470 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9471 else
9472 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9473 case $host_os in
9474 sco3.2v5*)
9475 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9476 ;;
9477 esac
9478 fi
9479 sys_lib_dlsearch_path_spec='/usr/lib'
9480 ;;
d7040cdb 9481
ce2cded5
L
9482tpf*)
9483 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9484 version_type=linux
9485 need_lib_prefix=no
9486 need_version=no
9487 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9488 shlibpath_var=LD_LIBRARY_PATH
9489 shlibpath_overrides_runpath=no
9490 hardcode_into_libs=yes
9491 ;;
d7040cdb 9492
ce2cded5
L
9493uts4*)
9494 version_type=linux
9495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9496 soname_spec='${libname}${release}${shared_ext}$major'
9497 shlibpath_var=LD_LIBRARY_PATH
9498 ;;
d7040cdb 9499
ce2cded5
L
9500*)
9501 dynamic_linker=no
9502 ;;
9503esac
9504echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9505echo "${ECHO_T}$dynamic_linker" >&6
9506test "$dynamic_linker" = no && can_build_shared=no
9507
9508variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9509if test "$GCC" = yes; then
9510 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
d7040cdb
SE
9511fi
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
d7040cdb 9524
d7040cdb 9525
d7040cdb 9526
d7040cdb 9527
d7040cdb
SE
9528
9529
9530
9531
d7040cdb 9532
d7040cdb
SE
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
d7040cdb
SE
9546
9547
9548
9549
d7040cdb
SE
9550
9551
9552
9553
d7040cdb 9554
d7040cdb 9555
d7040cdb 9556
d7040cdb 9557
d7040cdb 9558
d7040cdb 9559
d7040cdb 9560
d7040cdb
SE
9561
9562
9563
9564
9565
d7040cdb 9566
d7040cdb 9567
d7040cdb 9568
d7040cdb 9569
d7040cdb 9570
d7040cdb 9571
d7040cdb
SE
9572
9573
9574
9575
9576
d7040cdb
SE
9577
9578
d7040cdb 9579
d7040cdb 9580
d7040cdb 9581
d7040cdb 9582
ce2cded5
L
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9600echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9601hardcode_action=
9602if test -n "$hardcode_libdir_flag_spec" ||
9603 test -n "$runpath_var" ||
9604 test "X$hardcode_automatic" = "Xyes" ; then
9605
9606 # We can hardcode non-existent directories.
9607 if test "$hardcode_direct" != no &&
9608 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9609 # have to relink, otherwise we might link with an installed library
9610 # when we should be linking with a yet-to-be-installed one
9611 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9612 test "$hardcode_minus_L" != no; then
9613 # Linking always hardcodes the temporary library directory.
9614 hardcode_action=relink
9615 else
9616 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9617 hardcode_action=immediate
d7040cdb 9618 fi
d7040cdb 9619else
ce2cded5
L
9620 # We cannot hardcode anything, or else we can only hardcode existing
9621 # directories.
9622 hardcode_action=unsupported
d7040cdb 9623fi
ce2cded5
L
9624echo "$as_me:$LINENO: result: $hardcode_action" >&5
9625echo "${ECHO_T}$hardcode_action" >&6
d7040cdb 9626
ce2cded5
L
9627if test "$hardcode_action" = relink ||
9628 test "$inherit_rpath" = yes; then
9629 # Fast installation is not supported
9630 enable_fast_install=no
9631elif test "$shlibpath_overrides_runpath" = yes ||
9632 test "$enable_shared" = no; then
9633 # Fast installation is not necessary
9634 enable_fast_install=needless
d7040cdb
SE
9635fi
9636
d7040cdb 9637
d7040cdb 9638
d7040cdb 9639
d7040cdb 9640
d7040cdb 9641
ce2cded5
L
9642 if test "x$enable_dlopen" != xyes; then
9643 enable_dlopen=unknown
9644 enable_dlopen_self=unknown
9645 enable_dlopen_self_static=unknown
d7040cdb 9646else
ce2cded5
L
9647 lt_cv_dlopen=no
9648 lt_cv_dlopen_libs=
d7040cdb 9649
ce2cded5
L
9650 case $host_os in
9651 beos*)
9652 lt_cv_dlopen="load_add_on"
9653 lt_cv_dlopen_libs=
9654 lt_cv_dlopen_self=yes
9655 ;;
d7040cdb 9656
ce2cded5
L
9657 mingw* | pw32*)
9658 lt_cv_dlopen="LoadLibrary"
9659 lt_cv_dlopen_libs=
9660 ;;
9661
9662 cygwin*)
9663 lt_cv_dlopen="dlopen"
9664 lt_cv_dlopen_libs=
9665 ;;
9666
9667 darwin*)
9668 # if libdl is installed we need to link against it
9669 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9670echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9671if test "${ac_cv_lib_dl_dlopen+set}" = set; then
d7040cdb
SE
9672 echo $ECHO_N "(cached) $ECHO_C" >&6
9673else
ce2cded5
L
9674 ac_check_lib_save_LIBS=$LIBS
9675LIBS="-ldl $LIBS"
9676cat >conftest.$ac_ext <<_ACEOF
9677/* confdefs.h. */
9678_ACEOF
9679cat confdefs.h >>conftest.$ac_ext
9680cat >>conftest.$ac_ext <<_ACEOF
9681/* end confdefs.h. */
9682
9683/* Override any gcc2 internal prototype to avoid an error. */
9684#ifdef __cplusplus
9685extern "C"
9686#endif
9687/* We use char because int might match the return type of a gcc2
9688 builtin and then its argument prototype would still apply. */
9689char dlopen ();
9690int
9691main ()
9692{
9693dlopen ();
9694 ;
9695 return 0;
9696}
9697_ACEOF
9698rm -f conftest.$ac_objext conftest$ac_exeext
9699if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9700 (eval $ac_link) 2>conftest.er1
9701 ac_status=$?
9702 grep -v '^ *+' conftest.er1 >conftest.err
9703 rm -f conftest.er1
9704 cat conftest.err >&5
9705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9706 (exit $ac_status); } &&
4474d12b 9707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ce2cded5
L
9708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9709 (eval $ac_try) 2>&5
9710 ac_status=$?
9711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9712 (exit $ac_status); }; } &&
9713 { ac_try='test -s conftest$ac_exeext'
9714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9715 (eval $ac_try) 2>&5
9716 ac_status=$?
9717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718 (exit $ac_status); }; }; then
9719 ac_cv_lib_dl_dlopen=yes
9720else
9721 echo "$as_me: failed program was:" >&5
9722sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 9723
ce2cded5 9724ac_cv_lib_dl_dlopen=no
d7040cdb 9725fi
ce2cded5
L
9726rm -f conftest.err conftest.$ac_objext \
9727 conftest$ac_exeext conftest.$ac_ext
9728LIBS=$ac_check_lib_save_LIBS
d7040cdb 9729fi
ce2cded5
L
9730echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9731echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9732if test $ac_cv_lib_dl_dlopen = yes; then
9733 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d7040cdb 9734else
d7040cdb 9735
ce2cded5
L
9736 lt_cv_dlopen="dyld"
9737 lt_cv_dlopen_libs=
9738 lt_cv_dlopen_self=yes
9739
d7040cdb 9740fi
ce2cded5
L
9741
9742 ;;
9743
9744 *)
9745 echo "$as_me:$LINENO: checking for shl_load" >&5
9746echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9747if test "${ac_cv_func_shl_load+set}" = set; then
d7040cdb
SE
9748 echo $ECHO_N "(cached) $ECHO_C" >&6
9749else
ce2cded5
L
9750 cat >conftest.$ac_ext <<_ACEOF
9751/* confdefs.h. */
9752_ACEOF
9753cat confdefs.h >>conftest.$ac_ext
9754cat >>conftest.$ac_ext <<_ACEOF
9755/* end confdefs.h. */
9756/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9757 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9758#define shl_load innocuous_shl_load
d7040cdb 9759
ce2cded5
L
9760/* System header to define __stub macros and hopefully few prototypes,
9761 which can conflict with char shl_load (); below.
9762 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9763 <limits.h> exists even on freestanding compilers. */
d7040cdb 9764
ce2cded5
L
9765#ifdef __STDC__
9766# include <limits.h>
9767#else
9768# include <assert.h>
9769#endif
d7040cdb 9770
ce2cded5 9771#undef shl_load
d7040cdb 9772
ce2cded5
L
9773/* Override any gcc2 internal prototype to avoid an error. */
9774#ifdef __cplusplus
9775extern "C"
9776{
9777#endif
9778/* We use char because int might match the return type of a gcc2
9779 builtin and then its argument prototype would still apply. */
9780char shl_load ();
9781/* The GNU C library defines this for functions which it implements
9782 to always fail with ENOSYS. Some functions are actually named
9783 something starting with __ and the normal name is an alias. */
9784#if defined (__stub_shl_load) || defined (__stub___shl_load)
9785choke me
9786#else
9787char (*f) () = shl_load;
9788#endif
9789#ifdef __cplusplus
9790}
9791#endif
d7040cdb 9792
ce2cded5
L
9793int
9794main ()
9795{
9796return f != shl_load;
9797 ;
9798 return 0;
9799}
9800_ACEOF
9801rm -f conftest.$ac_objext conftest$ac_exeext
9802if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9803 (eval $ac_link) 2>conftest.er1
9804 ac_status=$?
9805 grep -v '^ *+' conftest.er1 >conftest.err
9806 rm -f conftest.er1
9807 cat conftest.err >&5
9808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809 (exit $ac_status); } &&
4474d12b 9810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ce2cded5
L
9811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9812 (eval $ac_try) 2>&5
9813 ac_status=$?
9814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9815 (exit $ac_status); }; } &&
9816 { ac_try='test -s conftest$ac_exeext'
9817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9818 (eval $ac_try) 2>&5
9819 ac_status=$?
9820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9821 (exit $ac_status); }; }; then
9822 ac_cv_func_shl_load=yes
9823else
9824 echo "$as_me: failed program was:" >&5
9825sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 9826
ce2cded5
L
9827ac_cv_func_shl_load=no
9828fi
9829rm -f conftest.err conftest.$ac_objext \
9830 conftest$ac_exeext conftest.$ac_ext
9831fi
9832echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9833echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9834if test $ac_cv_func_shl_load = yes; then
9835 lt_cv_dlopen="shl_load"
9836else
9837 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9838echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9839if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9840 echo $ECHO_N "(cached) $ECHO_C" >&6
9841else
9842 ac_check_lib_save_LIBS=$LIBS
9843LIBS="-ldld $LIBS"
9844cat >conftest.$ac_ext <<_ACEOF
9845/* confdefs.h. */
9846_ACEOF
9847cat confdefs.h >>conftest.$ac_ext
9848cat >>conftest.$ac_ext <<_ACEOF
9849/* end confdefs.h. */
d7040cdb 9850
ce2cded5
L
9851/* Override any gcc2 internal prototype to avoid an error. */
9852#ifdef __cplusplus
9853extern "C"
9854#endif
9855/* We use char because int might match the return type of a gcc2
9856 builtin and then its argument prototype would still apply. */
9857char shl_load ();
9858int
9859main ()
9860{
9861shl_load ();
9862 ;
9863 return 0;
9864}
9865_ACEOF
9866rm -f conftest.$ac_objext conftest$ac_exeext
9867if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9868 (eval $ac_link) 2>conftest.er1
d7040cdb 9869 ac_status=$?
ce2cded5
L
9870 grep -v '^ *+' conftest.er1 >conftest.err
9871 rm -f conftest.er1
9872 cat conftest.err >&5
d7040cdb 9873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5 9874 (exit $ac_status); } &&
4474d12b 9875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ce2cded5
L
9876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9877 (eval $ac_try) 2>&5
d7040cdb
SE
9878 ac_status=$?
9879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9880 (exit $ac_status); }; } &&
9881 { ac_try='test -s conftest$ac_exeext'
9882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9883 (eval $ac_try) 2>&5
d7040cdb
SE
9884 ac_status=$?
9885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9886 (exit $ac_status); }; }; then
9887 ac_cv_lib_dld_shl_load=yes
9888else
9889 echo "$as_me: failed program was:" >&5
9890sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 9891
ce2cded5
L
9892ac_cv_lib_dld_shl_load=no
9893fi
9894rm -f conftest.err conftest.$ac_objext \
9895 conftest$ac_exeext conftest.$ac_ext
9896LIBS=$ac_check_lib_save_LIBS
9897fi
9898echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9899echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9900if test $ac_cv_lib_dld_shl_load = yes; then
9901 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9902else
9903 echo "$as_me:$LINENO: checking for dlopen" >&5
9904echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9905if test "${ac_cv_func_dlopen+set}" = set; then
d7040cdb
SE
9906 echo $ECHO_N "(cached) $ECHO_C" >&6
9907else
9908 cat >conftest.$ac_ext <<_ACEOF
9909/* confdefs.h. */
9910_ACEOF
9911cat confdefs.h >>conftest.$ac_ext
9912cat >>conftest.$ac_ext <<_ACEOF
9913/* end confdefs.h. */
ce2cded5
L
9914/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9915 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9916#define dlopen innocuous_dlopen
9917
9918/* System header to define __stub macros and hopefully few prototypes,
9919 which can conflict with char dlopen (); below.
9920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9921 <limits.h> exists even on freestanding compilers. */
9922
9923#ifdef __STDC__
9924# include <limits.h>
9925#else
9926# include <assert.h>
9927#endif
9928
9929#undef dlopen
9930
9931/* Override any gcc2 internal prototype to avoid an error. */
9932#ifdef __cplusplus
9933extern "C"
9934{
9935#endif
9936/* We use char because int might match the return type of a gcc2
9937 builtin and then its argument prototype would still apply. */
9938char dlopen ();
9939/* The GNU C library defines this for functions which it implements
9940 to always fail with ENOSYS. Some functions are actually named
9941 something starting with __ and the normal name is an alias. */
9942#if defined (__stub_dlopen) || defined (__stub___dlopen)
9943choke me
9944#else
9945char (*f) () = dlopen;
9946#endif
9947#ifdef __cplusplus
9948}
9949#endif
d7040cdb
SE
9950
9951int
9952main ()
9953{
ce2cded5 9954return f != dlopen;
d7040cdb
SE
9955 ;
9956 return 0;
9957}
9958_ACEOF
ce2cded5
L
9959rm -f conftest.$ac_objext conftest$ac_exeext
9960if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9961 (eval $ac_link) 2>conftest.er1
d7040cdb
SE
9962 ac_status=$?
9963 grep -v '^ *+' conftest.er1 >conftest.err
9964 rm -f conftest.er1
9965 cat conftest.err >&5
9966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9967 (exit $ac_status); } &&
4474d12b 9968 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d7040cdb
SE
9969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9970 (eval $ac_try) 2>&5
9971 ac_status=$?
9972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973 (exit $ac_status); }; } &&
ce2cded5 9974 { ac_try='test -s conftest$ac_exeext'
d7040cdb
SE
9975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9976 (eval $ac_try) 2>&5
9977 ac_status=$?
9978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979 (exit $ac_status); }; }; then
ce2cded5 9980 ac_cv_func_dlopen=yes
d7040cdb
SE
9981else
9982 echo "$as_me: failed program was:" >&5
9983sed 's/^/| /' conftest.$ac_ext >&5
9984
ce2cded5 9985ac_cv_func_dlopen=no
d7040cdb 9986fi
ce2cded5
L
9987rm -f conftest.err conftest.$ac_objext \
9988 conftest$ac_exeext conftest.$ac_ext
d7040cdb 9989fi
ce2cded5
L
9990echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9991echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9992if test $ac_cv_func_dlopen = yes; then
9993 lt_cv_dlopen="dlopen"
9994else
9995 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9996echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9997if test "${ac_cv_lib_dl_dlopen+set}" = set; then
d7040cdb
SE
9998 echo $ECHO_N "(cached) $ECHO_C" >&6
9999else
ce2cded5
L
10000 ac_check_lib_save_LIBS=$LIBS
10001LIBS="-ldl $LIBS"
10002cat >conftest.$ac_ext <<_ACEOF
d7040cdb
SE
10003/* confdefs.h. */
10004_ACEOF
10005cat confdefs.h >>conftest.$ac_ext
10006cat >>conftest.$ac_ext <<_ACEOF
10007/* end confdefs.h. */
10008
ce2cded5
L
10009/* Override any gcc2 internal prototype to avoid an error. */
10010#ifdef __cplusplus
10011extern "C"
10012#endif
10013/* We use char because int might match the return type of a gcc2
10014 builtin and then its argument prototype would still apply. */
10015char dlopen ();
d7040cdb
SE
10016int
10017main ()
10018{
ce2cded5 10019dlopen ();
d7040cdb
SE
10020 ;
10021 return 0;
10022}
10023_ACEOF
ce2cded5
L
10024rm -f conftest.$ac_objext conftest$ac_exeext
10025if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10026 (eval $ac_link) 2>conftest.er1
d7040cdb
SE
10027 ac_status=$?
10028 grep -v '^ *+' conftest.er1 >conftest.err
10029 rm -f conftest.er1
10030 cat conftest.err >&5
10031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032 (exit $ac_status); } &&
4474d12b 10033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d7040cdb
SE
10034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10035 (eval $ac_try) 2>&5
10036 ac_status=$?
10037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038 (exit $ac_status); }; } &&
ce2cded5 10039 { ac_try='test -s conftest$ac_exeext'
d7040cdb
SE
10040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10041 (eval $ac_try) 2>&5
10042 ac_status=$?
10043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044 (exit $ac_status); }; }; then
ce2cded5 10045 ac_cv_lib_dl_dlopen=yes
d7040cdb
SE
10046else
10047 echo "$as_me: failed program was:" >&5
10048sed 's/^/| /' conftest.$ac_ext >&5
10049
ce2cded5 10050ac_cv_lib_dl_dlopen=no
d7040cdb 10051fi
ce2cded5
L
10052rm -f conftest.err conftest.$ac_objext \
10053 conftest$ac_exeext conftest.$ac_ext
10054LIBS=$ac_check_lib_save_LIBS
d7040cdb 10055fi
ce2cded5
L
10056echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10057echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10058if test $ac_cv_lib_dl_dlopen = yes; then
10059 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d7040cdb 10060else
ce2cded5
L
10061 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10062echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10063if test "${ac_cv_lib_svld_dlopen+set}" = set; then
d7040cdb
SE
10064 echo $ECHO_N "(cached) $ECHO_C" >&6
10065else
ce2cded5
L
10066 ac_check_lib_save_LIBS=$LIBS
10067LIBS="-lsvld $LIBS"
d7040cdb
SE
10068cat >conftest.$ac_ext <<_ACEOF
10069/* confdefs.h. */
10070_ACEOF
10071cat confdefs.h >>conftest.$ac_ext
10072cat >>conftest.$ac_ext <<_ACEOF
10073/* end confdefs.h. */
d7040cdb 10074
ce2cded5
L
10075/* Override any gcc2 internal prototype to avoid an error. */
10076#ifdef __cplusplus
10077extern "C"
10078#endif
10079/* We use char because int might match the return type of a gcc2
10080 builtin and then its argument prototype would still apply. */
10081char dlopen ();
d7040cdb
SE
10082int
10083main ()
10084{
ce2cded5 10085dlopen ();
d7040cdb
SE
10086 ;
10087 return 0;
10088}
10089_ACEOF
ce2cded5
L
10090rm -f conftest.$ac_objext conftest$ac_exeext
10091if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10092 (eval $ac_link) 2>conftest.er1
d7040cdb
SE
10093 ac_status=$?
10094 grep -v '^ *+' conftest.er1 >conftest.err
10095 rm -f conftest.er1
10096 cat conftest.err >&5
10097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098 (exit $ac_status); } &&
4474d12b 10099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d7040cdb
SE
10100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10101 (eval $ac_try) 2>&5
10102 ac_status=$?
10103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10104 (exit $ac_status); }; } &&
ce2cded5 10105 { ac_try='test -s conftest$ac_exeext'
d7040cdb
SE
10106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10107 (eval $ac_try) 2>&5
10108 ac_status=$?
10109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10110 (exit $ac_status); }; }; then
ce2cded5 10111 ac_cv_lib_svld_dlopen=yes
d7040cdb
SE
10112else
10113 echo "$as_me: failed program was:" >&5
10114sed 's/^/| /' conftest.$ac_ext >&5
10115
ce2cded5 10116ac_cv_lib_svld_dlopen=no
d7040cdb 10117fi
ce2cded5
L
10118rm -f conftest.err conftest.$ac_objext \
10119 conftest$ac_exeext conftest.$ac_ext
10120LIBS=$ac_check_lib_save_LIBS
d7040cdb 10121fi
ce2cded5
L
10122echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10123echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10124if test $ac_cv_lib_svld_dlopen = yes; then
10125 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10126else
10127 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10128echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10129if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10130 echo $ECHO_N "(cached) $ECHO_C" >&6
10131else
10132 ac_check_lib_save_LIBS=$LIBS
10133LIBS="-ldld $LIBS"
d7040cdb 10134cat >conftest.$ac_ext <<_ACEOF
d7040cdb
SE
10135/* confdefs.h. */
10136_ACEOF
10137cat confdefs.h >>conftest.$ac_ext
10138cat >>conftest.$ac_ext <<_ACEOF
ce2cded5
L
10139/* end confdefs.h. */
10140
10141/* Override any gcc2 internal prototype to avoid an error. */
10142#ifdef __cplusplus
10143extern "C"
10144#endif
10145/* We use char because int might match the return type of a gcc2
10146 builtin and then its argument prototype would still apply. */
10147char dld_link ();
d7040cdb
SE
10148int
10149main ()
10150{
ce2cded5 10151dld_link ();
d7040cdb
SE
10152 ;
10153 return 0;
10154}
10155_ACEOF
ce2cded5
L
10156rm -f conftest.$ac_objext conftest$ac_exeext
10157if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10158 (eval $ac_link) 2>conftest.er1
d7040cdb
SE
10159 ac_status=$?
10160 grep -v '^ *+' conftest.er1 >conftest.err
10161 rm -f conftest.er1
10162 cat conftest.err >&5
10163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164 (exit $ac_status); } &&
4474d12b 10165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d7040cdb
SE
10166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10167 (eval $ac_try) 2>&5
10168 ac_status=$?
10169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10170 (exit $ac_status); }; } &&
ce2cded5 10171 { ac_try='test -s conftest$ac_exeext'
d7040cdb
SE
10172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10173 (eval $ac_try) 2>&5
10174 ac_status=$?
10175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176 (exit $ac_status); }; }; then
ce2cded5 10177 ac_cv_lib_dld_dld_link=yes
d7040cdb
SE
10178else
10179 echo "$as_me: failed program was:" >&5
10180sed 's/^/| /' conftest.$ac_ext >&5
10181
ce2cded5 10182ac_cv_lib_dld_dld_link=no
d7040cdb 10183fi
ce2cded5
L
10184rm -f conftest.err conftest.$ac_objext \
10185 conftest$ac_exeext conftest.$ac_ext
10186LIBS=$ac_check_lib_save_LIBS
10187fi
10188echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10189echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10190if test $ac_cv_lib_dld_dld_link = yes; then
10191 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10192fi
10193
10194
10195fi
10196
10197
10198fi
10199
10200
10201fi
10202
10203
10204fi
10205
10206
10207fi
10208
10209 ;;
10210 esac
10211
10212 if test "x$lt_cv_dlopen" != xno; then
10213 enable_dlopen=yes
10214 else
10215 enable_dlopen=no
10216 fi
10217
10218 case $lt_cv_dlopen in
10219 dlopen)
10220 save_CPPFLAGS="$CPPFLAGS"
10221 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10222
10223 save_LDFLAGS="$LDFLAGS"
10224 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10225
10226 save_LIBS="$LIBS"
10227 LIBS="$lt_cv_dlopen_libs $LIBS"
10228
10229 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10230echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10231if test "${lt_cv_dlopen_self+set}" = set; then
10232 echo $ECHO_N "(cached) $ECHO_C" >&6
10233else
10234 if test "$cross_compiling" = yes; then :
10235 lt_cv_dlopen_self=cross
10236else
10237 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10238 lt_status=$lt_dlunknown
10239 cat > conftest.$ac_ext <<_LT_EOF
4474d12b 10240#line 10240 "configure"
ce2cded5
L
10241#include "confdefs.h"
10242
10243#if HAVE_DLFCN_H
10244#include <dlfcn.h>
10245#endif
10246
10247#include <stdio.h>
10248
10249#ifdef RTLD_GLOBAL
10250# define LT_DLGLOBAL RTLD_GLOBAL
10251#else
10252# ifdef DL_GLOBAL
10253# define LT_DLGLOBAL DL_GLOBAL
10254# else
10255# define LT_DLGLOBAL 0
10256# endif
10257#endif
10258
10259/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10260 find out it does not work in some platform. */
10261#ifndef LT_DLLAZY_OR_NOW
10262# ifdef RTLD_LAZY
10263# define LT_DLLAZY_OR_NOW RTLD_LAZY
10264# else
10265# ifdef DL_LAZY
10266# define LT_DLLAZY_OR_NOW DL_LAZY
10267# else
10268# ifdef RTLD_NOW
10269# define LT_DLLAZY_OR_NOW RTLD_NOW
10270# else
10271# ifdef DL_NOW
10272# define LT_DLLAZY_OR_NOW DL_NOW
10273# else
10274# define LT_DLLAZY_OR_NOW 0
10275# endif
10276# endif
10277# endif
10278# endif
10279#endif
10280
10281#ifdef __cplusplus
10282extern "C" void exit (int);
10283#endif
10284
10285void fnord() { int i=42;}
10286int main ()
d7040cdb 10287{
ce2cded5
L
10288 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10289 int status = $lt_dlunknown;
10290
10291 if (self)
10292 {
10293 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10294 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10295 /* dlclose (self); */
10296 }
10297 else
10298 puts (dlerror ());
10299
10300 exit (status);
d7040cdb 10301}
ce2cded5
L
10302_LT_EOF
10303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10304 (eval $ac_link) 2>&5
d7040cdb
SE
10305 ac_status=$?
10306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
10307 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10308 (./conftest; exit; ) >&5 2>/dev/null
10309 lt_status=$?
10310 case x$lt_status in
10311 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10312 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10313 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10314 esac
10315 else :
10316 # compilation failed
10317 lt_cv_dlopen_self=no
10318 fi
10319fi
10320rm -fr conftest*
10321
10322
10323fi
10324echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10325echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10326
10327 if test "x$lt_cv_dlopen_self" = xyes; then
10328 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10329 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10330echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10331if test "${lt_cv_dlopen_self_static+set}" = set; then
10332 echo $ECHO_N "(cached) $ECHO_C" >&6
10333else
10334 if test "$cross_compiling" = yes; then :
10335 lt_cv_dlopen_self_static=cross
10336else
10337 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10338 lt_status=$lt_dlunknown
10339 cat > conftest.$ac_ext <<_LT_EOF
4474d12b 10340#line 10340 "configure"
ce2cded5
L
10341#include "confdefs.h"
10342
10343#if HAVE_DLFCN_H
10344#include <dlfcn.h>
10345#endif
10346
10347#include <stdio.h>
10348
10349#ifdef RTLD_GLOBAL
10350# define LT_DLGLOBAL RTLD_GLOBAL
10351#else
10352# ifdef DL_GLOBAL
10353# define LT_DLGLOBAL DL_GLOBAL
10354# else
10355# define LT_DLGLOBAL 0
10356# endif
10357#endif
10358
10359/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10360 find out it does not work in some platform. */
10361#ifndef LT_DLLAZY_OR_NOW
10362# ifdef RTLD_LAZY
10363# define LT_DLLAZY_OR_NOW RTLD_LAZY
10364# else
10365# ifdef DL_LAZY
10366# define LT_DLLAZY_OR_NOW DL_LAZY
10367# else
10368# ifdef RTLD_NOW
10369# define LT_DLLAZY_OR_NOW RTLD_NOW
10370# else
10371# ifdef DL_NOW
10372# define LT_DLLAZY_OR_NOW DL_NOW
10373# else
10374# define LT_DLLAZY_OR_NOW 0
10375# endif
10376# endif
10377# endif
10378# endif
10379#endif
10380
10381#ifdef __cplusplus
10382extern "C" void exit (int);
10383#endif
10384
10385void fnord() { int i=42;}
10386int main ()
10387{
10388 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10389 int status = $lt_dlunknown;
10390
10391 if (self)
10392 {
10393 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10394 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10395 /* dlclose (self); */
10396 }
10397 else
10398 puts (dlerror ());
10399
10400 exit (status);
10401}
10402_LT_EOF
10403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10404 (eval $ac_link) 2>&5
d7040cdb
SE
10405 ac_status=$?
10406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
10407 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10408 (./conftest; exit; ) >&5 2>/dev/null
10409 lt_status=$?
10410 case x$lt_status in
10411 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10412 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10413 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10414 esac
10415 else :
10416 # compilation failed
10417 lt_cv_dlopen_self_static=no
10418 fi
10419fi
10420rm -fr conftest*
10421
d7040cdb
SE
10422
10423fi
ce2cded5
L
10424echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10425echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10426 fi
10427
10428 CPPFLAGS="$save_CPPFLAGS"
10429 LDFLAGS="$save_LDFLAGS"
10430 LIBS="$save_LIBS"
10431 ;;
10432 esac
10433
10434 case $lt_cv_dlopen_self in
10435 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10436 *) enable_dlopen_self=unknown ;;
10437 esac
10438
10439 case $lt_cv_dlopen_self_static in
10440 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10441 *) enable_dlopen_self_static=unknown ;;
10442 esac
d7040cdb
SE
10443fi
10444
ce2cded5
L
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461striplib=
10462old_striplib=
10463echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10464echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10465if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10466 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10467 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10468 echo "$as_me:$LINENO: result: yes" >&5
10469echo "${ECHO_T}yes" >&6
d7040cdb 10470else
ce2cded5
L
10471# FIXME - insert some real tests, host_os isn't really good enough
10472 case $host_os in
10473 darwin*)
10474 if test -n "$STRIP" ; then
10475 striplib="$STRIP -x"
10476 old_striplib="$STRIP -S"
10477 echo "$as_me:$LINENO: result: yes" >&5
10478echo "${ECHO_T}yes" >&6
10479 else
10480 echo "$as_me:$LINENO: result: no" >&5
10481echo "${ECHO_T}no" >&6
10482 fi
10483 ;;
10484 *)
10485 echo "$as_me:$LINENO: result: no" >&5
10486echo "${ECHO_T}no" >&6
10487 ;;
10488 esac
10489fi
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502 # Report which library types will actually be built
10503 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10504echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10505 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10506echo "${ECHO_T}$can_build_shared" >&6
10507
10508 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10509echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10510 test "$can_build_shared" = "no" && enable_shared=no
10511
10512 # On AIX, shared libraries and static libraries use the same namespace, and
10513 # are all built from PIC.
10514 case $host_os in
10515 aix3*)
10516 test "$enable_shared" = yes && enable_static=no
10517 if test -n "$RANLIB"; then
10518 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10519 postinstall_cmds='$RANLIB $lib'
10520 fi
10521 ;;
10522
50e7d84b 10523 aix[4-9]*)
ce2cded5
L
10524 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10525 test "$enable_shared" = yes && enable_static=no
10526 fi
10527 ;;
10528 esac
10529 echo "$as_me:$LINENO: result: $enable_shared" >&5
10530echo "${ECHO_T}$enable_shared" >&6
10531
10532 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10533echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10534 # Make sure either enable_shared or enable_static is yes.
10535 test "$enable_shared" = yes || enable_static=yes
10536 echo "$as_me:$LINENO: result: $enable_static" >&5
10537echo "${ECHO_T}$enable_static" >&6
10538
10539
10540
d7040cdb
SE
10541
10542fi
d7040cdb
SE
10543ac_ext=c
10544ac_cpp='$CPP $CPPFLAGS'
10545ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10546ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10547ac_compiler_gnu=$ac_cv_c_compiler_gnu
10548
ce2cded5 10549CC="$lt_save_CC"
67310ccd 10550
67310ccd
AM
10551
10552
d7040cdb
SE
10553
10554
d7040cdb 10555
d7040cdb 10556
d7040cdb 10557
ce2cded5
L
10558
10559
10560
10561
10562
10563 ac_config_commands="$ac_config_commands libtool"
10564
10565
10566
10567
10568# Only expand once:
10569
d7040cdb
SE
10570
10571
19aec961 10572ALL_LINGUAS="fr sv tr es da vi zh_CN zh_TW ga fi"
d7040cdb
SE
10573# If we haven't got the data from the intl directory,
10574# assume NLS is disabled.
10575USE_NLS=no
10576LIBINTL=
10577LIBINTL_DEP=
10578INCINTL=
10579XGETTEXT=
10580GMSGFMT=
10581POSUB=
10582
10583if test -f ../intl/config.intl; then
10584 . ../intl/config.intl
10585fi
10586echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10587echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10588if test x"$USE_NLS" != xyes; then
10589 echo "$as_me:$LINENO: result: no" >&5
10590echo "${ECHO_T}no" >&6
10591else
10592 echo "$as_me:$LINENO: result: yes" >&5
10593echo "${ECHO_T}yes" >&6
10594
10595cat >>confdefs.h <<\_ACEOF
10596#define ENABLE_NLS 1
10597_ACEOF
10598
10599
10600 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
10601echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
10602 # Look for .po and .gmo files in the source directory.
10603 CATALOGS=
10604 XLINGUAS=
10605 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
10606 # If there aren't any .gmo files the shell will give us the
10607 # literal string "../path/to/srcdir/po/*.gmo" which has to be
10608 # weeded out.
10609 case "$cat" in *\**)
10610 continue;;
10611 esac
10612 # The quadruple backslash is collapsed to a double backslash
10613 # by the backticks, then collapsed again by the double quotes,
10614 # leaving us with one backslash in the sed expression (right
10615 # before the dot that mustn't act as a wildcard).
10616 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10617 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
10618 # The user is allowed to set LINGUAS to a list of languages to
10619 # install catalogs for. If it's empty that means "all of them."
10620 if test "x$LINGUAS" = x; then
10621 CATALOGS="$CATALOGS $cat"
10622 XLINGUAS="$XLINGUAS $lang"
10623 else
10624 case "$LINGUAS" in *$lang*)
10625 CATALOGS="$CATALOGS $cat"
10626 XLINGUAS="$XLINGUAS $lang"
10627 ;;
10628 esac
10629 fi
10630 done
10631 LINGUAS="$XLINGUAS"
10632 echo "$as_me:$LINENO: result: $LINGUAS" >&5
10633echo "${ECHO_T}$LINGUAS" >&6
10634
10635
10636 DATADIRNAME=share
10637
10638 INSTOBJEXT=.mo
10639
10640 GENCAT=gencat
10641
10642 CATOBJEXT=.gmo
10643
10644fi
10645
10646 MKINSTALLDIRS=
10647 if test -n "$ac_aux_dir"; then
10648 case "$ac_aux_dir" in
10649 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
10650 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
10651 esac
10652 fi
10653 if test -z "$MKINSTALLDIRS"; then
10654 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
10655 fi
10656
10657
10658
10659 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10660echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10661 # Check whether --enable-nls or --disable-nls was given.
10662if test "${enable_nls+set}" = set; then
10663 enableval="$enable_nls"
10664 USE_NLS=$enableval
10665else
10666 USE_NLS=yes
10667fi;
10668 echo "$as_me:$LINENO: result: $USE_NLS" >&5
10669echo "${ECHO_T}$USE_NLS" >&6
10670
10671
10672
10673
10674
10675
10676# Prepare PATH_SEPARATOR.
10677# The user is always right.
10678if test "${PATH_SEPARATOR+set}" != set; then
10679 echo "#! /bin/sh" >conf$$.sh
10680 echo "exit 0" >>conf$$.sh
10681 chmod +x conf$$.sh
10682 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10683 PATH_SEPARATOR=';'
10684 else
10685 PATH_SEPARATOR=:
10686 fi
10687 rm -f conf$$.sh
10688fi
10689
10690# Find out how to test for executable files. Don't use a zero-byte file,
10691# as systems may use methods other than mode bits to determine executability.
10692cat >conf$$.file <<_ASEOF
10693#! /bin/sh
10694exit 0
10695_ASEOF
10696chmod +x conf$$.file
10697if test -x conf$$.file >/dev/null 2>&1; then
10698 ac_executable_p="test -x"
10699else
10700 ac_executable_p="test -f"
10701fi
10702rm -f conf$$.file
10703
10704# Extract the first word of "msgfmt", so it can be a program name with args.
10705set dummy msgfmt; ac_word=$2
10706echo "$as_me:$LINENO: checking for $ac_word" >&5
10707echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10708if test "${ac_cv_path_MSGFMT+set}" = set; then
10709 echo $ECHO_N "(cached) $ECHO_C" >&6
10710else
10711 case "$MSGFMT" in
10712 [\\/]* | ?:[\\/]*)
10713 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10714 ;;
10715 *)
10716 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10717 for ac_dir in $PATH; do
10718 IFS="$ac_save_IFS"
10719 test -z "$ac_dir" && ac_dir=.
10720 for ac_exec_ext in '' $ac_executable_extensions; do
10721 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10722 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
10723 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10724 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
10725 break 2
10726 fi
10727 fi
10728 done
10729 done
10730 IFS="$ac_save_IFS"
10731 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
10732 ;;
10733esac
10734fi
10735MSGFMT="$ac_cv_path_MSGFMT"
10736if test "$MSGFMT" != ":"; then
10737 echo "$as_me:$LINENO: result: $MSGFMT" >&5
10738echo "${ECHO_T}$MSGFMT" >&6
10739else
10740 echo "$as_me:$LINENO: result: no" >&5
10741echo "${ECHO_T}no" >&6
10742fi
10743
10744 # Extract the first word of "gmsgfmt", so it can be a program name with args.
10745set dummy gmsgfmt; ac_word=$2
10746echo "$as_me:$LINENO: checking for $ac_word" >&5
10747echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10748if test "${ac_cv_path_GMSGFMT+set}" = set; then
10749 echo $ECHO_N "(cached) $ECHO_C" >&6
10750else
10751 case $GMSGFMT in
10752 [\\/]* | ?:[\\/]*)
10753 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
10754 ;;
10755 *)
10756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10757for as_dir in $PATH
10758do
10759 IFS=$as_save_IFS
10760 test -z "$as_dir" && as_dir=.
10761 for ac_exec_ext in '' $ac_executable_extensions; do
10762 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10763 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
10764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10765 break 2
10766 fi
10767done
10768done
10769
10770 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
10771 ;;
10772esac
10773fi
10774GMSGFMT=$ac_cv_path_GMSGFMT
252b5132 10775
d7040cdb
SE
10776if test -n "$GMSGFMT"; then
10777 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
10778echo "${ECHO_T}$GMSGFMT" >&6
10779else
10780 echo "$as_me:$LINENO: result: no" >&5
10781echo "${ECHO_T}no" >&6
20e95c23 10782fi
42ecbf5e 10783
20e95c23 10784
252b5132 10785
d7040cdb
SE
10786# Prepare PATH_SEPARATOR.
10787# The user is always right.
10788if test "${PATH_SEPARATOR+set}" != set; then
10789 echo "#! /bin/sh" >conf$$.sh
10790 echo "exit 0" >>conf$$.sh
10791 chmod +x conf$$.sh
10792 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10793 PATH_SEPARATOR=';'
10794 else
10795 PATH_SEPARATOR=:
10796 fi
10797 rm -f conf$$.sh
20e95c23 10798fi
252b5132 10799
d7040cdb
SE
10800# Find out how to test for executable files. Don't use a zero-byte file,
10801# as systems may use methods other than mode bits to determine executability.
10802cat >conf$$.file <<_ASEOF
10803#! /bin/sh
10804exit 0
10805_ASEOF
10806chmod +x conf$$.file
10807if test -x conf$$.file >/dev/null 2>&1; then
10808 ac_executable_p="test -x"
20e95c23 10809else
d7040cdb
SE
10810 ac_executable_p="test -f"
10811fi
10812rm -f conf$$.file
20e95c23 10813
d7040cdb
SE
10814# Extract the first word of "xgettext", so it can be a program name with args.
10815set dummy xgettext; ac_word=$2
10816echo "$as_me:$LINENO: checking for $ac_word" >&5
10817echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10818if test "${ac_cv_path_XGETTEXT+set}" = set; then
10819 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10820else
d7040cdb
SE
10821 case "$XGETTEXT" in
10822 [\\/]* | ?:[\\/]*)
10823 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
10824 ;;
10825 *)
10826 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10827 for ac_dir in $PATH; do
10828 IFS="$ac_save_IFS"
10829 test -z "$ac_dir" && ac_dir=.
10830 for ac_exec_ext in '' $ac_executable_extensions; do
10831 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10832 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
10833 (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
10834 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
10835 break 2
10836 fi
10837 fi
10838 done
10839 done
10840 IFS="$ac_save_IFS"
10841 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
10842 ;;
10843esac
252b5132 10844fi
d7040cdb
SE
10845XGETTEXT="$ac_cv_path_XGETTEXT"
10846if test "$XGETTEXT" != ":"; then
10847 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
10848echo "${ECHO_T}$XGETTEXT" >&6
d5fbea21 10849else
d7040cdb
SE
10850 echo "$as_me:$LINENO: result: no" >&5
10851echo "${ECHO_T}no" >&6
d5fbea21
DJ
10852fi
10853
d7040cdb 10854 rm -f messages.po
d5fbea21 10855
20e95c23 10856
d7040cdb
SE
10857# Prepare PATH_SEPARATOR.
10858# The user is always right.
10859if test "${PATH_SEPARATOR+set}" != set; then
10860 echo "#! /bin/sh" >conf$$.sh
10861 echo "exit 0" >>conf$$.sh
10862 chmod +x conf$$.sh
10863 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10864 PATH_SEPARATOR=';'
10865 else
10866 PATH_SEPARATOR=:
10867 fi
10868 rm -f conf$$.sh
10869fi
20e95c23 10870
d7040cdb
SE
10871# Find out how to test for executable files. Don't use a zero-byte file,
10872# as systems may use methods other than mode bits to determine executability.
10873cat >conf$$.file <<_ASEOF
10874#! /bin/sh
10875exit 0
10876_ASEOF
10877chmod +x conf$$.file
10878if test -x conf$$.file >/dev/null 2>&1; then
10879 ac_executable_p="test -x"
10880else
10881 ac_executable_p="test -f"
10882fi
10883rm -f conf$$.file
20e95c23 10884
d7040cdb
SE
10885# Extract the first word of "msgmerge", so it can be a program name with args.
10886set dummy msgmerge; ac_word=$2
10887echo "$as_me:$LINENO: checking for $ac_word" >&5
10888echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10889if test "${ac_cv_path_MSGMERGE+set}" = set; then
10890 echo $ECHO_N "(cached) $ECHO_C" >&6
10891else
10892 case "$MSGMERGE" in
10893 [\\/]* | ?:[\\/]*)
10894 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
10895 ;;
10896 *)
10897 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10898 for ac_dir in $PATH; do
10899 IFS="$ac_save_IFS"
10900 test -z "$ac_dir" && ac_dir=.
10901 for ac_exec_ext in '' $ac_executable_extensions; do
10902 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10903 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
10904 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
10905 break 2
10906 fi
10907 fi
10908 done
10909 done
10910 IFS="$ac_save_IFS"
10911 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
10912 ;;
10913esac
10914fi
10915MSGMERGE="$ac_cv_path_MSGMERGE"
10916if test "$MSGMERGE" != ":"; then
10917 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
10918echo "${ECHO_T}$MSGMERGE" >&6
10919else
10920 echo "$as_me:$LINENO: result: no" >&5
10921echo "${ECHO_T}no" >&6
10922fi
20e95c23
DJ
10923
10924
d7040cdb
SE
10925 if test "$GMSGFMT" != ":"; then
10926 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
10927 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10928 : ;
10929 else
10930 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
10931 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
10932echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
10933 GMSGFMT=":"
10934 fi
10935 fi
20e95c23 10936
d7040cdb
SE
10937 if test "$XGETTEXT" != ":"; then
10938 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
10939 (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
10940 : ;
10941 else
10942 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
10943echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
10944 XGETTEXT=":"
10945 fi
10946 rm -f messages.po
20e95c23 10947 fi
42ecbf5e 10948
d7040cdb 10949 ac_config_commands="$ac_config_commands default-1"
252b5132 10950
42ecbf5e 10951
252b5132 10952
42ecbf5e
DJ
10953
10954
d7040cdb 10955for ac_prog in 'bison -y' byacc
20e95c23 10956do
d7040cdb
SE
10957 # Extract the first word of "$ac_prog", so it can be a program name with args.
10958set dummy $ac_prog; ac_word=$2
10959echo "$as_me:$LINENO: checking for $ac_word" >&5
10960echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10961if test "${ac_cv_prog_YACC+set}" = set; then
10962 echo $ECHO_N "(cached) $ECHO_C" >&6
20e95c23 10963else
d7040cdb
SE
10964 if test -n "$YACC"; then
10965 ac_cv_prog_YACC="$YACC" # Let the user override the test.
42ecbf5e 10966else
d7040cdb
SE
10967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10968for as_dir in $PATH
10969do
10970 IFS=$as_save_IFS
10971 test -z "$as_dir" && as_dir=.
10972 for ac_exec_ext in '' $ac_executable_extensions; do
10973 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10974 ac_cv_prog_YACC="$ac_prog"
10975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10976 break 2
10977 fi
10978done
10979done
42ecbf5e 10980
42ecbf5e 10981fi
e5a52504 10982fi
d7040cdb
SE
10983YACC=$ac_cv_prog_YACC
10984if test -n "$YACC"; then
10985 echo "$as_me:$LINENO: result: $YACC" >&5
10986echo "${ECHO_T}$YACC" >&6
42ecbf5e 10987else
d7040cdb
SE
10988 echo "$as_me:$LINENO: result: no" >&5
10989echo "${ECHO_T}no" >&6
42ecbf5e 10990fi
252b5132 10991
d7040cdb 10992 test -n "$YACC" && break
42ecbf5e 10993done
d7040cdb 10994test -n "$YACC" || YACC="yacc"
d15b04bd 10995
d7040cdb
SE
10996for ac_prog in flex lex
10997do
10998 # Extract the first word of "$ac_prog", so it can be a program name with args.
10999set dummy $ac_prog; ac_word=$2
11000echo "$as_me:$LINENO: checking for $ac_word" >&5
11001echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11002if test "${ac_cv_prog_LEX+set}" = set; then
20e95c23 11003 echo $ECHO_N "(cached) $ECHO_C" >&6
d15b04bd 11004else
d7040cdb
SE
11005 if test -n "$LEX"; then
11006 ac_cv_prog_LEX="$LEX" # Let the user override the test.
11007else
11008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11009for as_dir in $PATH
11010do
11011 IFS=$as_save_IFS
11012 test -z "$as_dir" && as_dir=.
11013 for ac_exec_ext in '' $ac_executable_extensions; do
11014 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11015 ac_cv_prog_LEX="$ac_prog"
11016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11017 break 2
11018 fi
11019done
11020done
11021
11022fi
11023fi
11024LEX=$ac_cv_prog_LEX
11025if test -n "$LEX"; then
11026 echo "$as_me:$LINENO: result: $LEX" >&5
11027echo "${ECHO_T}$LEX" >&6
11028else
11029 echo "$as_me:$LINENO: result: no" >&5
11030echo "${ECHO_T}no" >&6
d15b04bd 11031fi
e5a52504 11032
d7040cdb
SE
11033 test -n "$LEX" && break
11034done
11035test -n "$LEX" || LEX=":"
42ecbf5e 11036
d7040cdb
SE
11037if test -z "$LEXLIB"
11038then
11039 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
11040echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
11041if test "${ac_cv_lib_fl_yywrap+set}" = set; then
42ecbf5e
DJ
11042 echo $ECHO_N "(cached) $ECHO_C" >&6
11043else
d7040cdb
SE
11044 ac_check_lib_save_LIBS=$LIBS
11045LIBS="-lfl $LIBS"
11046cat >conftest.$ac_ext <<_ACEOF
42ecbf5e
DJ
11047/* confdefs.h. */
11048_ACEOF
11049cat confdefs.h >>conftest.$ac_ext
11050cat >>conftest.$ac_ext <<_ACEOF
11051/* end confdefs.h. */
11052
d7040cdb
SE
11053/* Override any gcc2 internal prototype to avoid an error. */
11054#ifdef __cplusplus
11055extern "C"
11056#endif
11057/* We use char because int might match the return type of a gcc2
11058 builtin and then its argument prototype would still apply. */
11059char yywrap ();
42ecbf5e
DJ
11060int
11061main ()
11062{
d7040cdb 11063yywrap ();
42ecbf5e
DJ
11064 ;
11065 return 0;
11066}
11067_ACEOF
d7040cdb
SE
11068rm -f conftest.$ac_objext conftest$ac_exeext
11069if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11070 (eval $ac_link) 2>conftest.er1
42ecbf5e
DJ
11071 ac_status=$?
11072 grep -v '^ *+' conftest.er1 >conftest.err
11073 rm -f conftest.er1
11074 cat conftest.err >&5
11075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076 (exit $ac_status); } &&
4474d12b 11077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42ecbf5e
DJ
11078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11079 (eval $ac_try) 2>&5
11080 ac_status=$?
11081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11082 (exit $ac_status); }; } &&
d7040cdb 11083 { ac_try='test -s conftest$ac_exeext'
42ecbf5e
DJ
11084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11085 (eval $ac_try) 2>&5
11086 ac_status=$?
11087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088 (exit $ac_status); }; }; then
d7040cdb 11089 ac_cv_lib_fl_yywrap=yes
42ecbf5e
DJ
11090else
11091 echo "$as_me: failed program was:" >&5
11092sed 's/^/| /' conftest.$ac_ext >&5
11093
d7040cdb 11094ac_cv_lib_fl_yywrap=no
42ecbf5e 11095fi
d7040cdb
SE
11096rm -f conftest.err conftest.$ac_objext \
11097 conftest$ac_exeext conftest.$ac_ext
11098LIBS=$ac_check_lib_save_LIBS
42ecbf5e 11099fi
d7040cdb
SE
11100echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
11101echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
11102if test $ac_cv_lib_fl_yywrap = yes; then
11103 LEXLIB="-lfl"
20e95c23 11104else
d7040cdb
SE
11105 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
11106echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
11107if test "${ac_cv_lib_l_yywrap+set}" = set; then
11108 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11109else
d7040cdb
SE
11110 ac_check_lib_save_LIBS=$LIBS
11111LIBS="-ll $LIBS"
11112cat >conftest.$ac_ext <<_ACEOF
20e95c23 11113/* confdefs.h. */
42ecbf5e 11114_ACEOF
20e95c23
DJ
11115cat confdefs.h >>conftest.$ac_ext
11116cat >>conftest.$ac_ext <<_ACEOF
11117/* end confdefs.h. */
20e95c23 11118
d7040cdb
SE
11119/* Override any gcc2 internal prototype to avoid an error. */
11120#ifdef __cplusplus
11121extern "C"
11122#endif
11123/* We use char because int might match the return type of a gcc2
11124 builtin and then its argument prototype would still apply. */
11125char yywrap ();
20e95c23
DJ
11126int
11127main ()
11128{
d7040cdb
SE
11129yywrap ();
11130 ;
11131 return 0;
20e95c23
DJ
11132}
11133_ACEOF
d7040cdb 11134rm -f conftest.$ac_objext conftest$ac_exeext
20e95c23 11135if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d7040cdb 11136 (eval $ac_link) 2>conftest.er1
42ecbf5e 11137 ac_status=$?
d7040cdb
SE
11138 grep -v '^ *+' conftest.er1 >conftest.err
11139 rm -f conftest.er1
11140 cat conftest.err >&5
42ecbf5e 11141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb 11142 (exit $ac_status); } &&
4474d12b 11143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d7040cdb
SE
11144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11145 (eval $ac_try) 2>&5
11146 ac_status=$?
11147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11148 (exit $ac_status); }; } &&
11149 { ac_try='test -s conftest$ac_exeext'
20e95c23
DJ
11150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11151 (eval $ac_try) 2>&5
11152 ac_status=$?
11153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11154 (exit $ac_status); }; }; then
d7040cdb 11155 ac_cv_lib_l_yywrap=yes
252b5132 11156else
d7040cdb 11157 echo "$as_me: failed program was:" >&5
20e95c23
DJ
11158sed 's/^/| /' conftest.$ac_ext >&5
11159
d7040cdb 11160ac_cv_lib_l_yywrap=no
252b5132 11161fi
d7040cdb
SE
11162rm -f conftest.err conftest.$ac_objext \
11163 conftest$ac_exeext conftest.$ac_ext
11164LIBS=$ac_check_lib_save_LIBS
20e95c23 11165fi
d7040cdb
SE
11166echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
11167echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
11168if test $ac_cv_lib_l_yywrap = yes; then
11169 LEXLIB="-ll"
20e95c23 11170fi
20e95c23
DJ
11171
11172fi
11173
d7040cdb 11174fi
20e95c23 11175
d7040cdb
SE
11176if test "x$LEX" != "x:"; then
11177 echo "$as_me:$LINENO: checking lex output file root" >&5
11178echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
11179if test "${ac_cv_prog_lex_root+set}" = set; then
42ecbf5e 11180 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11181else
d7040cdb
SE
11182 # The minimal lex program is just a single line: %%. But some broken lexes
11183# (Solaris, I think it was) want two %% lines, so accommodate them.
11184cat >conftest.l <<_ACEOF
11185%%
11186%%
42ecbf5e 11187_ACEOF
d7040cdb
SE
11188{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
11189 (eval $LEX conftest.l) 2>&5
11190 ac_status=$?
11191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11192 (exit $ac_status); }
11193if test -f lex.yy.c; then
11194 ac_cv_prog_lex_root=lex.yy
11195elif test -f lexyy.c; then
11196 ac_cv_prog_lex_root=lexyy
11197else
11198 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
11199echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
11200 { (exit 1); exit 1; }; }
11201fi
11202fi
11203echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
11204echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
11205rm -f conftest.l
11206LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
20e95c23 11207
d7040cdb
SE
11208echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
11209echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
11210if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
11211 echo $ECHO_N "(cached) $ECHO_C" >&6
11212else
11213 # POSIX says lex can declare yytext either as a pointer or an array; the
11214# default is implementation-dependent. Figure out which it is, since
11215# not all implementations provide the %pointer and %array declarations.
11216ac_cv_prog_lex_yytext_pointer=no
11217echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
11218ac_save_LIBS=$LIBS
11219LIBS="$LIBS $LEXLIB"
11220cat >conftest.$ac_ext <<_ACEOF
11221`cat $LEX_OUTPUT_ROOT.c`
20e95c23 11222_ACEOF
d7040cdb
SE
11223rm -f conftest.$ac_objext conftest$ac_exeext
11224if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11225 (eval $ac_link) 2>conftest.er1
42ecbf5e
DJ
11226 ac_status=$?
11227 grep -v '^ *+' conftest.er1 >conftest.err
11228 rm -f conftest.er1
11229 cat conftest.err >&5
11230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11231 (exit $ac_status); } &&
4474d12b 11232 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42ecbf5e
DJ
11233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11234 (eval $ac_try) 2>&5
11235 ac_status=$?
11236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11237 (exit $ac_status); }; } &&
d7040cdb 11238 { ac_try='test -s conftest$ac_exeext'
42ecbf5e
DJ
11239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11240 (eval $ac_try) 2>&5
11241 ac_status=$?
11242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11243 (exit $ac_status); }; }; then
d7040cdb
SE
11244 ac_cv_prog_lex_yytext_pointer=yes
11245else
11246 echo "$as_me: failed program was:" >&5
11247sed 's/^/| /' conftest.$ac_ext >&5
11248
11249fi
11250rm -f conftest.err conftest.$ac_objext \
11251 conftest$ac_exeext conftest.$ac_ext
11252LIBS=$ac_save_LIBS
11253rm -f "${LEX_OUTPUT_ROOT}.c"
11254
11255fi
11256echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
11257echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
11258if test $ac_cv_prog_lex_yytext_pointer = yes; then
11259
11260cat >>confdefs.h <<\_ACEOF
11261#define YYTEXT_POINTER 1
11262_ACEOF
11263
11264fi
11265
11266fi
11267if test "$LEX" = :; then
11268 LEX=${am_missing_run}flex
11269fi
11270
11271echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11272echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11273 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11274if test "${enable_maintainer_mode+set}" = set; then
11275 enableval="$enable_maintainer_mode"
11276 USE_MAINTAINER_MODE=$enableval
252b5132 11277else
d7040cdb
SE
11278 USE_MAINTAINER_MODE=no
11279fi;
11280 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
11281echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
42ecbf5e 11282
d7040cdb
SE
11283
11284if test $USE_MAINTAINER_MODE = yes; then
11285 MAINTAINER_MODE_TRUE=
11286 MAINTAINER_MODE_FALSE='#'
11287else
11288 MAINTAINER_MODE_TRUE='#'
11289 MAINTAINER_MODE_FALSE=
252b5132 11290fi
252b5132 11291
d7040cdb
SE
11292 MAINT=$MAINTAINER_MODE_TRUE
11293
11294
11295
11296
11297if false; then
11298 GENINSRC_NEVER_TRUE=
11299 GENINSRC_NEVER_FALSE='#'
11300else
11301 GENINSRC_NEVER_TRUE='#'
11302 GENINSRC_NEVER_FALSE=
252b5132
RH
11303fi
11304
d7040cdb
SE
11305
11306. ${srcdir}/configure.host
11307
11308
11309
11310
252b5132
RH
11311
11312
42ecbf5e
DJ
11313
11314
11315
11316
ebe1fac1 11317
a3ffa599
L
11318
11319
11320for ac_header in string.h strings.h stdlib.h unistd.h elf-hints.h limits.h sys/param.h
252b5132 11321do
42ecbf5e
DJ
11322as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11323if eval "test \"\${$as_ac_Header+set}\" = set"; then
11324 echo "$as_me:$LINENO: checking for $ac_header" >&5
11325echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11326if eval "test \"\${$as_ac_Header+set}\" = set"; then
11327 echo $ECHO_N "(cached) $ECHO_C" >&6
11328fi
11329echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11330echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11331else
11332 # Is the header compilable?
11333echo "$as_me:$LINENO: checking $ac_header usability" >&5
11334echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11335cat >conftest.$ac_ext <<_ACEOF
11336/* confdefs.h. */
11337_ACEOF
11338cat confdefs.h >>conftest.$ac_ext
11339cat >>conftest.$ac_ext <<_ACEOF
11340/* end confdefs.h. */
11341$ac_includes_default
11342#include <$ac_header>
11343_ACEOF
11344rm -f conftest.$ac_objext
11345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11346 (eval $ac_compile) 2>conftest.er1
11347 ac_status=$?
11348 grep -v '^ *+' conftest.er1 >conftest.err
11349 rm -f conftest.er1
11350 cat conftest.err >&5
11351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11352 (exit $ac_status); } &&
4474d12b 11353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42ecbf5e
DJ
11354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11355 (eval $ac_try) 2>&5
11356 ac_status=$?
11357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11358 (exit $ac_status); }; } &&
11359 { ac_try='test -s conftest.$ac_objext'
11360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11361 (eval $ac_try) 2>&5
11362 ac_status=$?
11363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11364 (exit $ac_status); }; }; then
11365 ac_header_compiler=yes
11366else
11367 echo "$as_me: failed program was:" >&5
11368sed 's/^/| /' conftest.$ac_ext >&5
11369
11370ac_header_compiler=no
11371fi
11372rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11373echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11374echo "${ECHO_T}$ac_header_compiler" >&6
11375
11376# Is the header present?
11377echo "$as_me:$LINENO: checking $ac_header presence" >&5
11378echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11379cat >conftest.$ac_ext <<_ACEOF
11380/* confdefs.h. */
11381_ACEOF
11382cat confdefs.h >>conftest.$ac_ext
11383cat >>conftest.$ac_ext <<_ACEOF
11384/* end confdefs.h. */
11385#include <$ac_header>
11386_ACEOF
11387if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11388 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11389 ac_status=$?
11390 grep -v '^ *+' conftest.er1 >conftest.err
11391 rm -f conftest.er1
11392 cat conftest.err >&5
11393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11394 (exit $ac_status); } >/dev/null; then
11395 if test -s conftest.err; then
11396 ac_cpp_err=$ac_c_preproc_warn_flag
11397 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11398 else
11399 ac_cpp_err=
11400 fi
252b5132 11401else
42ecbf5e 11402 ac_cpp_err=yes
252b5132 11403fi
42ecbf5e
DJ
11404if test -z "$ac_cpp_err"; then
11405 ac_header_preproc=yes
11406else
11407 echo "$as_me: failed program was:" >&5
11408sed 's/^/| /' conftest.$ac_ext >&5
11409
11410 ac_header_preproc=no
252b5132 11411fi
42ecbf5e
DJ
11412rm -f conftest.err conftest.$ac_ext
11413echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11414echo "${ECHO_T}$ac_header_preproc" >&6
11415
11416# So? What about this header?
11417case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11418 yes:no: )
11419 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11420echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11421 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11422echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11423 ac_header_preproc=yes
11424 ;;
11425 no:yes:* )
11426 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11427echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11428 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11429echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11430 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11431echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11432 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11433echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11434 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11435echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11436 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11437echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11438 (
11439 cat <<\_ASBOX
11440## ------------------------------------------ ##
11441## Report this to the AC_PACKAGE_NAME lists. ##
11442## ------------------------------------------ ##
11443_ASBOX
11444 ) |
11445 sed "s/^/$as_me: WARNING: /" >&2
11446 ;;
11447esac
11448echo "$as_me:$LINENO: checking for $ac_header" >&5
11449echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11450if eval "test \"\${$as_ac_Header+set}\" = set"; then
11451 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11452else
42ecbf5e
DJ
11453 eval "$as_ac_Header=\$ac_header_preproc"
11454fi
11455echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11456echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11457
252b5132 11458fi
42ecbf5e
DJ
11459if test `eval echo '${'$as_ac_Header'}'` = yes; then
11460 cat >>confdefs.h <<_ACEOF
11461#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11462_ACEOF
11463
11464fi
11465
252b5132
RH
11466done
11467
42ecbf5e
DJ
11468
11469
11470
dc27aea4
AM
11471
11472
11473for ac_func in glob mkstemp realpath sbrk waitpid
252b5132 11474do
42ecbf5e
DJ
11475as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11476echo "$as_me:$LINENO: checking for $ac_func" >&5
11477echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11478if eval "test \"\${$as_ac_var+set}\" = set"; then
11479 echo $ECHO_N "(cached) $ECHO_C" >&6
11480else
11481 cat >conftest.$ac_ext <<_ACEOF
11482/* confdefs.h. */
11483_ACEOF
11484cat confdefs.h >>conftest.$ac_ext
11485cat >>conftest.$ac_ext <<_ACEOF
11486/* end confdefs.h. */
11487/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11488 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11489#define $ac_func innocuous_$ac_func
11490
252b5132 11491/* System header to define __stub macros and hopefully few prototypes,
42ecbf5e
DJ
11492 which can conflict with char $ac_func (); below.
11493 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11494 <limits.h> exists even on freestanding compilers. */
11495
11496#ifdef __STDC__
11497# include <limits.h>
11498#else
11499# include <assert.h>
11500#endif
d15b04bd 11501
42ecbf5e 11502#undef $ac_func
d15b04bd 11503
42ecbf5e
DJ
11504/* Override any gcc2 internal prototype to avoid an error. */
11505#ifdef __cplusplus
11506extern "C"
11507{
11508#endif
11509/* We use char because int might match the return type of a gcc2
11510 builtin and then its argument prototype would still apply. */
11511char $ac_func ();
252b5132
RH
11512/* The GNU C library defines this for functions which it implements
11513 to always fail with ENOSYS. Some functions are actually named
11514 something starting with __ and the normal name is an alias. */
11515#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11516choke me
11517#else
42ecbf5e
DJ
11518char (*f) () = $ac_func;
11519#endif
11520#ifdef __cplusplus
11521}
252b5132
RH
11522#endif
11523
42ecbf5e
DJ
11524int
11525main ()
11526{
11527return f != $ac_func;
11528 ;
11529 return 0;
11530}
11531_ACEOF
11532rm -f conftest.$ac_objext conftest$ac_exeext
11533if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11534 (eval $ac_link) 2>conftest.er1
11535 ac_status=$?
11536 grep -v '^ *+' conftest.er1 >conftest.err
11537 rm -f conftest.er1
11538 cat conftest.err >&5
11539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11540 (exit $ac_status); } &&
4474d12b 11541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42ecbf5e
DJ
11542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11543 (eval $ac_try) 2>&5
11544 ac_status=$?
11545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546 (exit $ac_status); }; } &&
11547 { ac_try='test -s conftest$ac_exeext'
11548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11549 (eval $ac_try) 2>&5
11550 ac_status=$?
11551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11552 (exit $ac_status); }; }; then
11553 eval "$as_ac_var=yes"
11554else
11555 echo "$as_me: failed program was:" >&5
11556sed 's/^/| /' conftest.$ac_ext >&5
11557
11558eval "$as_ac_var=no"
11559fi
11560rm -f conftest.err conftest.$ac_objext \
11561 conftest$ac_exeext conftest.$ac_ext
11562fi
11563echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11564echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11565if test `eval echo '${'$as_ac_var'}'` = yes; then
11566 cat >>confdefs.h <<_ACEOF
11567#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11568_ACEOF
252b5132 11569
252b5132
RH
11570fi
11571done
11572
42ecbf5e
DJ
11573
11574
11575
11576
11577
252b5132 11578ac_header_dirent=no
42ecbf5e
DJ
11579for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11580 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11581echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
11582echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
11583if eval "test \"\${$as_ac_Header+set}\" = set"; then
11584 echo $ECHO_N "(cached) $ECHO_C" >&6
11585else
11586 cat >conftest.$ac_ext <<_ACEOF
11587/* confdefs.h. */
11588_ACEOF
11589cat confdefs.h >>conftest.$ac_ext
11590cat >>conftest.$ac_ext <<_ACEOF
11591/* end confdefs.h. */
252b5132
RH
11592#include <sys/types.h>
11593#include <$ac_hdr>
42ecbf5e
DJ
11594
11595int
11596main ()
11597{
11598if ((DIR *) 0)
11599return 0;
11600 ;
11601 return 0;
11602}
11603_ACEOF
11604rm -f conftest.$ac_objext
11605if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11606 (eval $ac_compile) 2>conftest.er1
11607 ac_status=$?
11608 grep -v '^ *+' conftest.er1 >conftest.err
11609 rm -f conftest.er1
11610 cat conftest.err >&5
11611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11612 (exit $ac_status); } &&
4474d12b 11613 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42ecbf5e
DJ
11614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11615 (eval $ac_try) 2>&5
11616 ac_status=$?
11617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618 (exit $ac_status); }; } &&
11619 { ac_try='test -s conftest.$ac_objext'
11620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11621 (eval $ac_try) 2>&5
11622 ac_status=$?
11623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624 (exit $ac_status); }; }; then
11625 eval "$as_ac_Header=yes"
11626else
11627 echo "$as_me: failed program was:" >&5
11628sed 's/^/| /' conftest.$ac_ext >&5
11629
11630eval "$as_ac_Header=no"
11631fi
11632rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11633fi
11634echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11635echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11636if test `eval echo '${'$as_ac_Header'}'` = yes; then
11637 cat >>confdefs.h <<_ACEOF
11638#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11639_ACEOF
11640
11641ac_header_dirent=$ac_hdr; break
d15b04bd 11642fi
42ecbf5e 11643
d15b04bd
L
11644done
11645# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11646if test $ac_header_dirent = dirent.h; then
42ecbf5e
DJ
11647 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11648echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11649if test "${ac_cv_search_opendir+set}" = set; then
11650 echo $ECHO_N "(cached) $ECHO_C" >&6
11651else
11652 ac_func_search_save_LIBS=$LIBS
11653ac_cv_search_opendir=no
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
e5a52504 11661/* Override any gcc2 internal prototype to avoid an error. */
42ecbf5e
DJ
11662#ifdef __cplusplus
11663extern "C"
11664#endif
e5a52504 11665/* We use char because int might match the return type of a gcc2
42ecbf5e
DJ
11666 builtin and then its argument prototype would still apply. */
11667char opendir ();
11668int
11669main ()
11670{
11671opendir ();
11672 ;
11673 return 0;
11674}
11675_ACEOF
11676rm -f conftest.$ac_objext conftest$ac_exeext
11677if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11678 (eval $ac_link) 2>conftest.er1
11679 ac_status=$?
11680 grep -v '^ *+' conftest.er1 >conftest.err
11681 rm -f conftest.er1
11682 cat conftest.err >&5
11683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11684 (exit $ac_status); } &&
4474d12b 11685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42ecbf5e
DJ
11686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11687 (eval $ac_try) 2>&5
11688 ac_status=$?
11689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11690 (exit $ac_status); }; } &&
11691 { ac_try='test -s conftest$ac_exeext'
11692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11693 (eval $ac_try) 2>&5
11694 ac_status=$?
11695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11696 (exit $ac_status); }; }; then
11697 ac_cv_search_opendir="none required"
11698else
11699 echo "$as_me: failed program was:" >&5
11700sed 's/^/| /' conftest.$ac_ext >&5
11701
11702fi
11703rm -f conftest.err conftest.$ac_objext \
11704 conftest$ac_exeext conftest.$ac_ext
11705if test "$ac_cv_search_opendir" = no; then
11706 for ac_lib in dir; do
11707 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11708 cat >conftest.$ac_ext <<_ACEOF
11709/* confdefs.h. */
11710_ACEOF
11711cat confdefs.h >>conftest.$ac_ext
11712cat >>conftest.$ac_ext <<_ACEOF
11713/* end confdefs.h. */
e5a52504 11714
42ecbf5e
DJ
11715/* Override any gcc2 internal prototype to avoid an error. */
11716#ifdef __cplusplus
11717extern "C"
11718#endif
11719/* We use char because int might match the return type of a gcc2
11720 builtin and then its argument prototype would still apply. */
11721char opendir ();
11722int
11723main ()
11724{
11725opendir ();
11726 ;
11727 return 0;
11728}
11729_ACEOF
11730rm -f conftest.$ac_objext conftest$ac_exeext
11731if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11732 (eval $ac_link) 2>conftest.er1
11733 ac_status=$?
11734 grep -v '^ *+' conftest.er1 >conftest.err
11735 rm -f conftest.er1
11736 cat conftest.err >&5
11737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11738 (exit $ac_status); } &&
4474d12b 11739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42ecbf5e
DJ
11740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11741 (eval $ac_try) 2>&5
11742 ac_status=$?
11743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11744 (exit $ac_status); }; } &&
11745 { ac_try='test -s conftest$ac_exeext'
11746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11747 (eval $ac_try) 2>&5
11748 ac_status=$?
11749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11750 (exit $ac_status); }; }; then
11751 ac_cv_search_opendir="-l$ac_lib"
11752break
11753else
11754 echo "$as_me: failed program was:" >&5
11755sed 's/^/| /' conftest.$ac_ext >&5
11756
11757fi
11758rm -f conftest.err conftest.$ac_objext \
11759 conftest$ac_exeext conftest.$ac_ext
11760 done
252b5132 11761fi
42ecbf5e
DJ
11762LIBS=$ac_func_search_save_LIBS
11763fi
11764echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11765echo "${ECHO_T}$ac_cv_search_opendir" >&6
11766if test "$ac_cv_search_opendir" != no; then
11767 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11768
d15b04bd 11769fi
252b5132
RH
11770
11771else
42ecbf5e
DJ
11772 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11773echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11774if test "${ac_cv_search_opendir+set}" = set; then
11775 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11776else
42ecbf5e
DJ
11777 ac_func_search_save_LIBS=$LIBS
11778ac_cv_search_opendir=no
11779cat >conftest.$ac_ext <<_ACEOF
11780/* confdefs.h. */
11781_ACEOF
11782cat confdefs.h >>conftest.$ac_ext
11783cat >>conftest.$ac_ext <<_ACEOF
11784/* end confdefs.h. */
11785
252b5132 11786/* Override any gcc2 internal prototype to avoid an error. */
42ecbf5e
DJ
11787#ifdef __cplusplus
11788extern "C"
11789#endif
252b5132 11790/* We use char because int might match the return type of a gcc2
42ecbf5e
DJ
11791 builtin and then its argument prototype would still apply. */
11792char opendir ();
11793int
11794main ()
11795{
11796opendir ();
11797 ;
11798 return 0;
11799}
11800_ACEOF
11801rm -f conftest.$ac_objext conftest$ac_exeext
11802if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11803 (eval $ac_link) 2>conftest.er1
11804 ac_status=$?
11805 grep -v '^ *+' conftest.er1 >conftest.err
11806 rm -f conftest.er1
11807 cat conftest.err >&5
11808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11809 (exit $ac_status); } &&
4474d12b 11810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42ecbf5e
DJ
11811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11812 (eval $ac_try) 2>&5
11813 ac_status=$?
11814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815 (exit $ac_status); }; } &&
11816 { ac_try='test -s conftest$ac_exeext'
11817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11818 (eval $ac_try) 2>&5
11819 ac_status=$?
11820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11821 (exit $ac_status); }; }; then
11822 ac_cv_search_opendir="none required"
11823else
11824 echo "$as_me: failed program was:" >&5
11825sed 's/^/| /' conftest.$ac_ext >&5
11826
11827fi
11828rm -f conftest.err conftest.$ac_objext \
11829 conftest$ac_exeext conftest.$ac_ext
11830if test "$ac_cv_search_opendir" = no; then
11831 for ac_lib in x; do
11832 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11833 cat >conftest.$ac_ext <<_ACEOF
11834/* confdefs.h. */
11835_ACEOF
11836cat confdefs.h >>conftest.$ac_ext
11837cat >>conftest.$ac_ext <<_ACEOF
11838/* end confdefs.h. */
252b5132 11839
42ecbf5e
DJ
11840/* Override any gcc2 internal prototype to avoid an error. */
11841#ifdef __cplusplus
11842extern "C"
11843#endif
11844/* We use char because int might match the return type of a gcc2
11845 builtin and then its argument prototype would still apply. */
11846char opendir ();
11847int
11848main ()
11849{
11850opendir ();
11851 ;
11852 return 0;
11853}
11854_ACEOF
11855rm -f conftest.$ac_objext conftest$ac_exeext
11856if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11857 (eval $ac_link) 2>conftest.er1
11858 ac_status=$?
11859 grep -v '^ *+' conftest.er1 >conftest.err
11860 rm -f conftest.er1
11861 cat conftest.err >&5
11862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11863 (exit $ac_status); } &&
4474d12b 11864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42ecbf5e
DJ
11865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11866 (eval $ac_try) 2>&5
11867 ac_status=$?
11868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869 (exit $ac_status); }; } &&
11870 { ac_try='test -s conftest$ac_exeext'
11871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11872 (eval $ac_try) 2>&5
11873 ac_status=$?
11874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11875 (exit $ac_status); }; }; then
11876 ac_cv_search_opendir="-l$ac_lib"
11877break
11878else
11879 echo "$as_me: failed program was:" >&5
11880sed 's/^/| /' conftest.$ac_ext >&5
11881
11882fi
11883rm -f conftest.err conftest.$ac_objext \
11884 conftest$ac_exeext conftest.$ac_ext
11885 done
252b5132 11886fi
42ecbf5e 11887LIBS=$ac_func_search_save_LIBS
252b5132 11888fi
42ecbf5e
DJ
11889echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11890echo "${ECHO_T}$ac_cv_search_opendir" >&6
11891if test "$ac_cv_search_opendir" != no; then
11892 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11893
d15b04bd 11894fi
252b5132
RH
11895
11896fi
11897
11898
42ecbf5e
DJ
11899echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
11900echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
11901if test "${ld_cv_decl_getopt_unistd_h+set}" = set; then
11902 echo $ECHO_N "(cached) $ECHO_C" >&6
34875e64 11903else
42ecbf5e
DJ
11904 cat >conftest.$ac_ext <<_ACEOF
11905/* confdefs.h. */
11906_ACEOF
11907cat confdefs.h >>conftest.$ac_ext
11908cat >>conftest.$ac_ext <<_ACEOF
11909/* end confdefs.h. */
34875e64 11910#include <unistd.h>
42ecbf5e
DJ
11911int
11912main ()
11913{
34875e64 11914extern int getopt (int, char *const*, const char *);
42ecbf5e
DJ
11915 ;
11916 return 0;
11917}
11918_ACEOF
11919rm -f conftest.$ac_objext
11920if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11921 (eval $ac_compile) 2>conftest.er1
11922 ac_status=$?
11923 grep -v '^ *+' conftest.er1 >conftest.err
11924 rm -f conftest.er1
11925 cat conftest.err >&5
11926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927 (exit $ac_status); } &&
4474d12b 11928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42ecbf5e
DJ
11929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11930 (eval $ac_try) 2>&5
11931 ac_status=$?
11932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11933 (exit $ac_status); }; } &&
11934 { ac_try='test -s conftest.$ac_objext'
11935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11936 (eval $ac_try) 2>&5
11937 ac_status=$?
11938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11939 (exit $ac_status); }; }; then
34875e64
NC
11940 ld_cv_decl_getopt_unistd_h=yes
11941else
42ecbf5e
DJ
11942 echo "$as_me: failed program was:" >&5
11943sed 's/^/| /' conftest.$ac_ext >&5
11944
11945ld_cv_decl_getopt_unistd_h=no
34875e64 11946fi
42ecbf5e 11947rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34875e64
NC
11948fi
11949
42ecbf5e
DJ
11950echo "$as_me:$LINENO: result: $ld_cv_decl_getopt_unistd_h" >&5
11951echo "${ECHO_T}$ld_cv_decl_getopt_unistd_h" >&6
34875e64 11952if test $ld_cv_decl_getopt_unistd_h = yes; then
42ecbf5e
DJ
11953
11954cat >>confdefs.h <<\_ACEOF
34875e64 11955#define HAVE_DECL_GETOPT 1
42ecbf5e 11956_ACEOF
34875e64
NC
11957
11958fi
42ecbf5e 11959
252b5132
RH
11960
11961case "${host}" in
a8100d5b 11962*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
42ecbf5e
DJ
11963
11964cat >>confdefs.h <<\_ACEOF
252b5132 11965#define USE_BINARY_FOPEN 1
42ecbf5e 11966_ACEOF
252b5132
RH
11967 ;;
11968esac
11969
502bdb00
JW
11970echo "$as_me:$LINENO: checking whether strstr is declared" >&5
11971echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
11972if test "${ac_cv_have_decl_strstr+set}" = set; then
42ecbf5e 11973 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11974else
42ecbf5e
DJ
11975 cat >conftest.$ac_ext <<_ACEOF
11976/* confdefs.h. */
11977_ACEOF
11978cat confdefs.h >>conftest.$ac_ext
11979cat >>conftest.$ac_ext <<_ACEOF
11980/* end confdefs.h. */
502bdb00 11981$ac_includes_default
42ecbf5e
DJ
11982int
11983main ()
11984{
502bdb00
JW
11985#ifndef strstr
11986 char *p = (char *) strstr;
11987#endif
11988
42ecbf5e
DJ
11989 ;
11990 return 0;
11991}
11992_ACEOF
11993rm -f conftest.$ac_objext
11994if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11995 (eval $ac_compile) 2>conftest.er1
11996 ac_status=$?
11997 grep -v '^ *+' conftest.er1 >conftest.err
11998 rm -f conftest.er1
11999 cat conftest.err >&5
12000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001 (exit $ac_status); } &&
4474d12b 12002 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42ecbf5e
DJ
12003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12004 (eval $ac_try) 2>&5
12005 ac_status=$?
12006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007 (exit $ac_status); }; } &&
12008 { ac_try='test -s conftest.$ac_objext'
12009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12010 (eval $ac_try) 2>&5
12011 ac_status=$?
12012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013 (exit $ac_status); }; }; then
502bdb00 12014 ac_cv_have_decl_strstr=yes
252b5132 12015else
42ecbf5e
DJ
12016 echo "$as_me: failed program was:" >&5
12017sed 's/^/| /' conftest.$ac_ext >&5
12018
502bdb00 12019ac_cv_have_decl_strstr=no
252b5132 12020fi
42ecbf5e 12021rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 12022fi
502bdb00
JW
12023echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
12024echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
12025if test $ac_cv_have_decl_strstr = yes; then
252b5132 12026
502bdb00
JW
12027cat >>confdefs.h <<_ACEOF
12028#define HAVE_DECL_STRSTR 1
12029_ACEOF
42ecbf5e 12030
502bdb00
JW
12031
12032else
12033 cat >>confdefs.h <<_ACEOF
12034#define HAVE_DECL_STRSTR 0
42ecbf5e 12035_ACEOF
252b5132 12036
252b5132 12037
502bdb00
JW
12038fi
12039echo "$as_me:$LINENO: checking whether free is declared" >&5
12040echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
12041if test "${ac_cv_have_decl_free+set}" = set; then
42ecbf5e 12042 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12043else
42ecbf5e
DJ
12044 cat >conftest.$ac_ext <<_ACEOF
12045/* confdefs.h. */
12046_ACEOF
12047cat confdefs.h >>conftest.$ac_ext
12048cat >>conftest.$ac_ext <<_ACEOF
12049/* end confdefs.h. */
502bdb00 12050$ac_includes_default
42ecbf5e
DJ
12051int
12052main ()
12053{
502bdb00
JW
12054#ifndef free
12055 char *p = (char *) free;
12056#endif
12057
42ecbf5e
DJ
12058 ;
12059 return 0;
12060}
12061_ACEOF
12062rm -f conftest.$ac_objext
12063if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12064 (eval $ac_compile) 2>conftest.er1
12065 ac_status=$?
12066 grep -v '^ *+' conftest.er1 >conftest.err
12067 rm -f conftest.er1
12068 cat conftest.err >&5
12069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12070 (exit $ac_status); } &&
4474d12b 12071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42ecbf5e
DJ
12072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12073 (eval $ac_try) 2>&5
12074 ac_status=$?
12075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076 (exit $ac_status); }; } &&
12077 { ac_try='test -s conftest.$ac_objext'
12078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12079 (eval $ac_try) 2>&5
12080 ac_status=$?
12081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082 (exit $ac_status); }; }; then
502bdb00 12083 ac_cv_have_decl_free=yes
252b5132 12084else
42ecbf5e
DJ
12085 echo "$as_me: failed program was:" >&5
12086sed 's/^/| /' conftest.$ac_ext >&5
12087
502bdb00 12088ac_cv_have_decl_free=no
252b5132 12089fi
42ecbf5e 12090rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 12091fi
502bdb00
JW
12092echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
12093echo "${ECHO_T}$ac_cv_have_decl_free" >&6
12094if test $ac_cv_have_decl_free = yes; then
252b5132 12095
502bdb00
JW
12096cat >>confdefs.h <<_ACEOF
12097#define HAVE_DECL_FREE 1
12098_ACEOF
42ecbf5e 12099
502bdb00
JW
12100
12101else
12102 cat >>confdefs.h <<_ACEOF
12103#define HAVE_DECL_FREE 0
42ecbf5e 12104_ACEOF
252b5132 12105
252b5132 12106
502bdb00
JW
12107fi
12108echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
12109echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
12110if test "${ac_cv_have_decl_sbrk+set}" = set; then
42ecbf5e 12111 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12112else
42ecbf5e
DJ
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. */
502bdb00 12119$ac_includes_default
42ecbf5e
DJ
12120int
12121main ()
12122{
502bdb00
JW
12123#ifndef sbrk
12124 char *p = (char *) sbrk;
12125#endif
12126
42ecbf5e
DJ
12127 ;
12128 return 0;
12129}
12130_ACEOF
12131rm -f conftest.$ac_objext
12132if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12133 (eval $ac_compile) 2>conftest.er1
12134 ac_status=$?
12135 grep -v '^ *+' conftest.er1 >conftest.err
12136 rm -f conftest.er1
12137 cat conftest.err >&5
12138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139 (exit $ac_status); } &&
4474d12b 12140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42ecbf5e
DJ
12141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12142 (eval $ac_try) 2>&5
12143 ac_status=$?
12144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145 (exit $ac_status); }; } &&
12146 { ac_try='test -s conftest.$ac_objext'
12147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12148 (eval $ac_try) 2>&5
12149 ac_status=$?
12150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12151 (exit $ac_status); }; }; then
502bdb00 12152 ac_cv_have_decl_sbrk=yes
252b5132 12153else
42ecbf5e
DJ
12154 echo "$as_me: failed program was:" >&5
12155sed 's/^/| /' conftest.$ac_ext >&5
12156
502bdb00 12157ac_cv_have_decl_sbrk=no
252b5132 12158fi
42ecbf5e 12159rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 12160fi
502bdb00
JW
12161echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
12162echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
12163if test $ac_cv_have_decl_sbrk = yes; then
12164
12165cat >>confdefs.h <<_ACEOF
12166#define HAVE_DECL_SBRK 1
12167_ACEOF
252b5132 12168
42ecbf5e 12169
502bdb00
JW
12170else
12171 cat >>confdefs.h <<_ACEOF
12172#define HAVE_DECL_SBRK 0
42ecbf5e 12173_ACEOF
252b5132 12174
252b5132 12175
502bdb00
JW
12176fi
12177echo "$as_me:$LINENO: checking whether getenv is declared" >&5
12178echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
12179if test "${ac_cv_have_decl_getenv+set}" = set; then
42ecbf5e 12180 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12181else
42ecbf5e
DJ
12182 cat >conftest.$ac_ext <<_ACEOF
12183/* confdefs.h. */
12184_ACEOF
12185cat confdefs.h >>conftest.$ac_ext
12186cat >>conftest.$ac_ext <<_ACEOF
12187/* end confdefs.h. */
502bdb00 12188$ac_includes_default
42ecbf5e
DJ
12189int
12190main ()
12191{
502bdb00
JW
12192#ifndef getenv
12193 char *p = (char *) getenv;
12194#endif
12195
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); } &&
4474d12b 12209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42ecbf5e
DJ
12210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12211 (eval $ac_try) 2>&5
12212 ac_status=$?
12213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214 (exit $ac_status); }; } &&
12215 { ac_try='test -s conftest.$ac_objext'
12216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12217 (eval $ac_try) 2>&5
12218 ac_status=$?
12219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220 (exit $ac_status); }; }; then
502bdb00 12221 ac_cv_have_decl_getenv=yes
252b5132 12222else
42ecbf5e
DJ
12223 echo "$as_me: failed program was:" >&5
12224sed 's/^/| /' conftest.$ac_ext >&5
12225
502bdb00 12226ac_cv_have_decl_getenv=no
252b5132 12227fi
42ecbf5e 12228rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 12229fi
502bdb00
JW
12230echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
12231echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
12232if test $ac_cv_have_decl_getenv = yes; then
252b5132 12233
502bdb00
JW
12234cat >>confdefs.h <<_ACEOF
12235#define HAVE_DECL_GETENV 1
12236_ACEOF
42ecbf5e 12237
502bdb00
JW
12238
12239else
12240 cat >>confdefs.h <<_ACEOF
12241#define HAVE_DECL_GETENV 0
42ecbf5e 12242_ACEOF
252b5132 12243
252b5132 12244
502bdb00
JW
12245fi
12246echo "$as_me:$LINENO: checking whether environ is declared" >&5
12247echo $ECHO_N "checking whether environ is declared... $ECHO_C" >&6
12248if test "${ac_cv_have_decl_environ+set}" = set; then
42ecbf5e 12249 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12250else
42ecbf5e
DJ
12251 cat >conftest.$ac_ext <<_ACEOF
12252/* confdefs.h. */
12253_ACEOF
12254cat confdefs.h >>conftest.$ac_ext
12255cat >>conftest.$ac_ext <<_ACEOF
12256/* end confdefs.h. */
502bdb00 12257$ac_includes_default
42ecbf5e
DJ
12258int
12259main ()
12260{
502bdb00
JW
12261#ifndef environ
12262 char *p = (char *) environ;
12263#endif
12264
42ecbf5e
DJ
12265 ;
12266 return 0;
12267}
12268_ACEOF
12269rm -f conftest.$ac_objext
12270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12271 (eval $ac_compile) 2>conftest.er1
12272 ac_status=$?
12273 grep -v '^ *+' conftest.er1 >conftest.err
12274 rm -f conftest.er1
12275 cat conftest.err >&5
12276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277 (exit $ac_status); } &&
4474d12b 12278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42ecbf5e
DJ
12279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12280 (eval $ac_try) 2>&5
12281 ac_status=$?
12282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283 (exit $ac_status); }; } &&
12284 { ac_try='test -s conftest.$ac_objext'
12285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12286 (eval $ac_try) 2>&5
12287 ac_status=$?
12288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289 (exit $ac_status); }; }; then
502bdb00 12290 ac_cv_have_decl_environ=yes
252b5132 12291else
42ecbf5e
DJ
12292 echo "$as_me: failed program was:" >&5
12293sed 's/^/| /' conftest.$ac_ext >&5
12294
502bdb00 12295ac_cv_have_decl_environ=no
252b5132 12296fi
42ecbf5e 12297rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 12298fi
502bdb00
JW
12299echo "$as_me:$LINENO: result: $ac_cv_have_decl_environ" >&5
12300echo "${ECHO_T}$ac_cv_have_decl_environ" >&6
12301if test $ac_cv_have_decl_environ = yes; then
252b5132 12302
502bdb00
JW
12303cat >>confdefs.h <<_ACEOF
12304#define HAVE_DECL_ENVIRON 1
12305_ACEOF
42ecbf5e 12306
502bdb00
JW
12307
12308else
12309 cat >>confdefs.h <<_ACEOF
12310#define HAVE_DECL_ENVIRON 0
42ecbf5e 12311_ACEOF
252b5132 12312
502bdb00 12313
252b5132
RH
12314fi
12315
12316
502bdb00 12317
4474d12b
CS
12318# Link in zlib if we can. This is needed only for the bootstrap tests
12319# right now, since those tests use libbfd, which depends on zlib.
12320echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
12321echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
12322if test "${ac_cv_search_zlibVersion+set}" = set; then
12323 echo $ECHO_N "(cached) $ECHO_C" >&6
12324else
12325 ac_func_search_save_LIBS=$LIBS
12326ac_cv_search_zlibVersion=no
12327cat >conftest.$ac_ext <<_ACEOF
12328/* confdefs.h. */
12329_ACEOF
12330cat confdefs.h >>conftest.$ac_ext
12331cat >>conftest.$ac_ext <<_ACEOF
12332/* end confdefs.h. */
12333
12334/* Override any gcc2 internal prototype to avoid an error. */
12335#ifdef __cplusplus
12336extern "C"
12337#endif
12338/* We use char because int might match the return type of a gcc2
12339 builtin and then its argument prototype would still apply. */
12340char zlibVersion ();
12341int
12342main ()
12343{
12344zlibVersion ();
12345 ;
12346 return 0;
12347}
12348_ACEOF
12349rm -f conftest.$ac_objext conftest$ac_exeext
12350if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12351 (eval $ac_link) 2>conftest.er1
12352 ac_status=$?
12353 grep -v '^ *+' conftest.er1 >conftest.err
12354 rm -f conftest.er1
12355 cat conftest.err >&5
12356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357 (exit $ac_status); } &&
12358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12360 (eval $ac_try) 2>&5
12361 ac_status=$?
12362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363 (exit $ac_status); }; } &&
12364 { ac_try='test -s conftest$ac_exeext'
12365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12366 (eval $ac_try) 2>&5
12367 ac_status=$?
12368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369 (exit $ac_status); }; }; then
12370 ac_cv_search_zlibVersion="none required"
12371else
12372 echo "$as_me: failed program was:" >&5
12373sed 's/^/| /' conftest.$ac_ext >&5
12374
12375fi
12376rm -f conftest.err conftest.$ac_objext \
12377 conftest$ac_exeext conftest.$ac_ext
12378if test "$ac_cv_search_zlibVersion" = no; then
12379 for ac_lib in z; do
12380 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12381 cat >conftest.$ac_ext <<_ACEOF
12382/* confdefs.h. */
12383_ACEOF
12384cat confdefs.h >>conftest.$ac_ext
12385cat >>conftest.$ac_ext <<_ACEOF
12386/* end confdefs.h. */
12387
12388/* Override any gcc2 internal prototype to avoid an error. */
12389#ifdef __cplusplus
12390extern "C"
12391#endif
12392/* We use char because int might match the return type of a gcc2
12393 builtin and then its argument prototype would still apply. */
12394char zlibVersion ();
12395int
12396main ()
12397{
12398zlibVersion ();
12399 ;
12400 return 0;
12401}
12402_ACEOF
12403rm -f conftest.$ac_objext conftest$ac_exeext
12404if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12405 (eval $ac_link) 2>conftest.er1
12406 ac_status=$?
12407 grep -v '^ *+' conftest.er1 >conftest.err
12408 rm -f conftest.er1
12409 cat conftest.err >&5
12410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411 (exit $ac_status); } &&
12412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12414 (eval $ac_try) 2>&5
12415 ac_status=$?
12416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12417 (exit $ac_status); }; } &&
12418 { ac_try='test -s conftest$ac_exeext'
12419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12420 (eval $ac_try) 2>&5
12421 ac_status=$?
12422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423 (exit $ac_status); }; }; then
12424 ac_cv_search_zlibVersion="-l$ac_lib"
12425break
12426else
12427 echo "$as_me: failed program was:" >&5
12428sed 's/^/| /' conftest.$ac_ext >&5
12429
12430fi
12431rm -f conftest.err conftest.$ac_objext \
12432 conftest$ac_exeext conftest.$ac_ext
12433 done
12434fi
12435LIBS=$ac_func_search_save_LIBS
12436fi
12437echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
12438echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
12439if test "$ac_cv_search_zlibVersion" != no; then
12440 test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS"
12441
12442for ac_header in zlib.h
12443do
12444as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12445if eval "test \"\${$as_ac_Header+set}\" = set"; then
12446 echo "$as_me:$LINENO: checking for $ac_header" >&5
12447echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12448if eval "test \"\${$as_ac_Header+set}\" = set"; then
12449 echo $ECHO_N "(cached) $ECHO_C" >&6
12450fi
12451echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12452echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12453else
12454 # Is the header compilable?
12455echo "$as_me:$LINENO: checking $ac_header usability" >&5
12456echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12457cat >conftest.$ac_ext <<_ACEOF
12458/* confdefs.h. */
12459_ACEOF
12460cat confdefs.h >>conftest.$ac_ext
12461cat >>conftest.$ac_ext <<_ACEOF
12462/* end confdefs.h. */
12463$ac_includes_default
12464#include <$ac_header>
12465_ACEOF
12466rm -f conftest.$ac_objext
12467if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12468 (eval $ac_compile) 2>conftest.er1
12469 ac_status=$?
12470 grep -v '^ *+' conftest.er1 >conftest.err
12471 rm -f conftest.er1
12472 cat conftest.err >&5
12473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474 (exit $ac_status); } &&
12475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12477 (eval $ac_try) 2>&5
12478 ac_status=$?
12479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12480 (exit $ac_status); }; } &&
12481 { ac_try='test -s conftest.$ac_objext'
12482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12483 (eval $ac_try) 2>&5
12484 ac_status=$?
12485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12486 (exit $ac_status); }; }; then
12487 ac_header_compiler=yes
12488else
12489 echo "$as_me: failed program was:" >&5
12490sed 's/^/| /' conftest.$ac_ext >&5
12491
12492ac_header_compiler=no
12493fi
12494rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12495echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12496echo "${ECHO_T}$ac_header_compiler" >&6
12497
12498# Is the header present?
12499echo "$as_me:$LINENO: checking $ac_header presence" >&5
12500echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12501cat >conftest.$ac_ext <<_ACEOF
12502/* confdefs.h. */
12503_ACEOF
12504cat confdefs.h >>conftest.$ac_ext
12505cat >>conftest.$ac_ext <<_ACEOF
12506/* end confdefs.h. */
12507#include <$ac_header>
12508_ACEOF
12509if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12510 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12511 ac_status=$?
12512 grep -v '^ *+' conftest.er1 >conftest.err
12513 rm -f conftest.er1
12514 cat conftest.err >&5
12515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516 (exit $ac_status); } >/dev/null; then
12517 if test -s conftest.err; then
12518 ac_cpp_err=$ac_c_preproc_warn_flag
12519 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12520 else
12521 ac_cpp_err=
12522 fi
12523else
12524 ac_cpp_err=yes
12525fi
12526if test -z "$ac_cpp_err"; then
12527 ac_header_preproc=yes
12528else
12529 echo "$as_me: failed program was:" >&5
12530sed 's/^/| /' conftest.$ac_ext >&5
12531
12532 ac_header_preproc=no
12533fi
12534rm -f conftest.err conftest.$ac_ext
12535echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12536echo "${ECHO_T}$ac_header_preproc" >&6
12537
12538# So? What about this header?
12539case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12540 yes:no: )
12541 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12542echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12543 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12544echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12545 ac_header_preproc=yes
12546 ;;
12547 no:yes:* )
12548 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12549echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12550 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12551echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12552 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12553echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12554 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12555echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12556 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12557echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12558 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12559echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12560 (
12561 cat <<\_ASBOX
12562## ------------------------------------------ ##
12563## Report this to the AC_PACKAGE_NAME lists. ##
12564## ------------------------------------------ ##
12565_ASBOX
12566 ) |
12567 sed "s/^/$as_me: WARNING: /" >&2
12568 ;;
12569esac
12570echo "$as_me:$LINENO: checking for $ac_header" >&5
12571echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12572if eval "test \"\${$as_ac_Header+set}\" = set"; then
12573 echo $ECHO_N "(cached) $ECHO_C" >&6
12574else
12575 eval "$as_ac_Header=\$ac_header_preproc"
12576fi
12577echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12578echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12579
12580fi
12581if test `eval echo '${'$as_ac_Header'}'` = yes; then
12582 cat >>confdefs.h <<_ACEOF
12583#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12584_ACEOF
12585
12586fi
12587
12588done
12589
12590fi
12591
12592
597e2591
ILT
12593# When converting linker scripts into strings for use in emulation
12594# files, use astring.sed if the compiler supports ANSI string
12595# concatenation, or ostring.sed otherwise. This is to support the
12596# broken Microsoft MSVC compiler, which limits the length of string
12597# constants, while still supporting pre-ANSI compilers which do not
12598# support string concatenation.
42ecbf5e
DJ
12599echo "$as_me:$LINENO: checking whether ANSI C string concatenation works" >&5
12600echo $ECHO_N "checking whether ANSI C string concatenation works... $ECHO_C" >&6
12601if test "${ld_cv_string_concatenation+set}" = set; then
12602 echo $ECHO_N "(cached) $ECHO_C" >&6
12603else
12604 cat >conftest.$ac_ext <<_ACEOF
12605/* confdefs.h. */
12606_ACEOF
12607cat confdefs.h >>conftest.$ac_ext
12608cat >>conftest.$ac_ext <<_ACEOF
12609/* end confdefs.h. */
597e2591 12610
42ecbf5e
DJ
12611int
12612main ()
12613{
597e2591 12614char *a = "a" "a";
42ecbf5e
DJ
12615 ;
12616 return 0;
12617}
12618_ACEOF
12619rm -f conftest.$ac_objext
12620if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12621 (eval $ac_compile) 2>conftest.er1
12622 ac_status=$?
12623 grep -v '^ *+' conftest.er1 >conftest.err
12624 rm -f conftest.er1
12625 cat conftest.err >&5
12626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12627 (exit $ac_status); } &&
4474d12b 12628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42ecbf5e
DJ
12629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12630 (eval $ac_try) 2>&5
12631 ac_status=$?
12632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12633 (exit $ac_status); }; } &&
12634 { ac_try='test -s conftest.$ac_objext'
12635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12636 (eval $ac_try) 2>&5
12637 ac_status=$?
12638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639 (exit $ac_status); }; }; then
e4dabd0e 12640 ld_cv_string_concatenation=yes
597e2591 12641else
42ecbf5e
DJ
12642 echo "$as_me: failed program was:" >&5
12643sed 's/^/| /' conftest.$ac_ext >&5
12644
12645ld_cv_string_concatenation=no
597e2591 12646fi
42ecbf5e 12647rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
597e2591
ILT
12648fi
12649
42ecbf5e
DJ
12650echo "$as_me:$LINENO: result: $ld_cv_string_concatenation" >&5
12651echo "${ECHO_T}$ld_cv_string_concatenation" >&6
e4dabd0e 12652if test "$ld_cv_string_concatenation" = "yes"; then
597e2591
ILT
12653 STRINGIFY=astring.sed
12654else
12655 STRINGIFY=ostring.sed
12656fi
12657
12658
252b5132
RH
12659# target-specific stuff:
12660
12661all_targets=
12662EMUL=
12663all_emuls=
12664all_emul_extras=
ba2be581 12665all_libpath=
252b5132
RH
12666
12667rm -f tdirs
12668
12669for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
12670do
12671 if test "$targ_alias" = "all"; then
12672 all_targets=true
12673 else
12674 # Canonicalize the secondary target names.
42ecbf5e 12675 result=`$ac_config_sub $targ_alias 2>/dev/null`
252b5132
RH
12676 if test -n "$result"; then
12677 targ=$result
12678 else
12679 targ=$targ_alias
12680 fi
12681
12682 . ${srcdir}/configure.tgt
12683
12684 if test "$targ" = "$target"; then
12685 EMUL=$targ_emul
12686 fi
12687
314e9a4e
L
12688 if test x${want64} = xfalse; then
12689 . ${srcdir}/../bfd/config.bfd
12690 fi
12691
534d3119
L
12692 if test x${want64} = xtrue; then
12693 targ_extra_emuls="$targ_extra_emuls $targ64_extra_emuls"
12694 targ_extra_libpath="$targ_extra_libpath $targ64_extra_libpath"
12695 fi
12696
3336653a 12697 for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
252b5132
RH
12698 case " $all_emuls " in
12699 *" e${i}.o "*) ;;
12700 *)
12701 all_emuls="$all_emuls e${i}.o"
12702 eval result=\$tdir_$i
12703 test -z "$result" && result=$targ_alias
12704 echo tdir_$i=$result >> tdirs
12705 ;;
d15b04bd
L
12706 esac
12707 done
3336653a 12708
42ecbf5e
DJ
12709 for i in $targ_emul $targ_extra_libpath; do
12710 case " $all_libpath " in
12711 *" ${i} "*) ;;
12712 *)
12713 if test -z "$all_libpath"; then
12714 all_libpath=${i}
12715 else
12716 all_libpath="$all_libpath ${i}"
12717 fi
12718 ;;
12719 esac
12720 done
12721
12722 for i in $targ_extra_ofiles; do
12723 case " $all_emul_extras " in
12724 *" ${i} "*) ;;
12725 *)
12726 all_emul_extras="$all_emul_extras ${i}"
12727 ;;
12728 esac
12729 done
12730 fi
12731done
12732
12733
12734
12735TDIRS=tdirs
12736
12737
12738if test x${all_targets} = xtrue; then
314e9a4e
L
12739 if test x${want64} = xfalse; then
12740 echo "$as_me:$LINENO: checking for long" >&5
12741echo $ECHO_N "checking for long... $ECHO_C" >&6
12742if test "${ac_cv_type_long+set}" = set; then
12743 echo $ECHO_N "(cached) $ECHO_C" >&6
12744else
12745 cat >conftest.$ac_ext <<_ACEOF
12746/* confdefs.h. */
12747_ACEOF
12748cat confdefs.h >>conftest.$ac_ext
12749cat >>conftest.$ac_ext <<_ACEOF
12750/* end confdefs.h. */
12751$ac_includes_default
12752int
12753main ()
12754{
12755if ((long *) 0)
12756 return 0;
12757if (sizeof (long))
12758 return 0;
12759 ;
12760 return 0;
12761}
12762_ACEOF
12763rm -f conftest.$ac_objext
12764if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12765 (eval $ac_compile) 2>conftest.er1
12766 ac_status=$?
12767 grep -v '^ *+' conftest.er1 >conftest.err
12768 rm -f conftest.er1
12769 cat conftest.err >&5
12770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771 (exit $ac_status); } &&
4474d12b 12772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
314e9a4e
L
12773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12774 (eval $ac_try) 2>&5
12775 ac_status=$?
12776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12777 (exit $ac_status); }; } &&
12778 { ac_try='test -s conftest.$ac_objext'
12779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12780 (eval $ac_try) 2>&5
12781 ac_status=$?
12782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783 (exit $ac_status); }; }; then
12784 ac_cv_type_long=yes
12785else
12786 echo "$as_me: failed program was:" >&5
12787sed 's/^/| /' conftest.$ac_ext >&5
12788
12789ac_cv_type_long=no
12790fi
12791rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12792fi
12793echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12794echo "${ECHO_T}$ac_cv_type_long" >&6
12795
12796echo "$as_me:$LINENO: checking size of long" >&5
12797echo $ECHO_N "checking size of long... $ECHO_C" >&6
12798if test "${ac_cv_sizeof_long+set}" = set; then
12799 echo $ECHO_N "(cached) $ECHO_C" >&6
12800else
12801 if test "$ac_cv_type_long" = yes; then
12802 # The cast to unsigned long works around a bug in the HP C Compiler
12803 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12804 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12805 # This bug is HP SR number 8606223364.
12806 if test "$cross_compiling" = yes; then
12807 # Depending upon the size, compute the lo and hi bounds.
12808cat >conftest.$ac_ext <<_ACEOF
12809/* confdefs.h. */
12810_ACEOF
12811cat confdefs.h >>conftest.$ac_ext
12812cat >>conftest.$ac_ext <<_ACEOF
12813/* end confdefs.h. */
12814$ac_includes_default
12815int
12816main ()
12817{
12818static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
12819test_array [0] = 0
12820
12821 ;
12822 return 0;
12823}
12824_ACEOF
12825rm -f conftest.$ac_objext
12826if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12827 (eval $ac_compile) 2>conftest.er1
12828 ac_status=$?
12829 grep -v '^ *+' conftest.er1 >conftest.err
12830 rm -f conftest.er1
12831 cat conftest.err >&5
12832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12833 (exit $ac_status); } &&
4474d12b 12834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
314e9a4e
L
12835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12836 (eval $ac_try) 2>&5
12837 ac_status=$?
12838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12839 (exit $ac_status); }; } &&
12840 { ac_try='test -s conftest.$ac_objext'
12841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12842 (eval $ac_try) 2>&5
12843 ac_status=$?
12844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12845 (exit $ac_status); }; }; then
12846 ac_lo=0 ac_mid=0
12847 while :; do
12848 cat >conftest.$ac_ext <<_ACEOF
12849/* confdefs.h. */
12850_ACEOF
12851cat confdefs.h >>conftest.$ac_ext
12852cat >>conftest.$ac_ext <<_ACEOF
12853/* end confdefs.h. */
12854$ac_includes_default
12855int
12856main ()
12857{
12858static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12859test_array [0] = 0
12860
12861 ;
12862 return 0;
12863}
12864_ACEOF
12865rm -f conftest.$ac_objext
12866if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12867 (eval $ac_compile) 2>conftest.er1
12868 ac_status=$?
12869 grep -v '^ *+' conftest.er1 >conftest.err
12870 rm -f conftest.er1
12871 cat conftest.err >&5
12872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12873 (exit $ac_status); } &&
4474d12b 12874 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
314e9a4e
L
12875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12876 (eval $ac_try) 2>&5
12877 ac_status=$?
12878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12879 (exit $ac_status); }; } &&
12880 { ac_try='test -s conftest.$ac_objext'
12881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12882 (eval $ac_try) 2>&5
12883 ac_status=$?
12884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12885 (exit $ac_status); }; }; then
12886 ac_hi=$ac_mid; break
12887else
12888 echo "$as_me: failed program was:" >&5
12889sed 's/^/| /' conftest.$ac_ext >&5
12890
12891ac_lo=`expr $ac_mid + 1`
12892 if test $ac_lo -le $ac_mid; then
12893 ac_lo= ac_hi=
12894 break
12895 fi
12896 ac_mid=`expr 2 '*' $ac_mid + 1`
12897fi
12898rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12899 done
12900else
12901 echo "$as_me: failed program was:" >&5
12902sed 's/^/| /' conftest.$ac_ext >&5
12903
12904cat >conftest.$ac_ext <<_ACEOF
12905/* confdefs.h. */
12906_ACEOF
12907cat confdefs.h >>conftest.$ac_ext
12908cat >>conftest.$ac_ext <<_ACEOF
12909/* end confdefs.h. */
12910$ac_includes_default
12911int
12912main ()
12913{
12914static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
12915test_array [0] = 0
12916
12917 ;
12918 return 0;
12919}
12920_ACEOF
12921rm -f conftest.$ac_objext
12922if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12923 (eval $ac_compile) 2>conftest.er1
12924 ac_status=$?
12925 grep -v '^ *+' conftest.er1 >conftest.err
12926 rm -f conftest.er1
12927 cat conftest.err >&5
12928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12929 (exit $ac_status); } &&
4474d12b 12930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
314e9a4e
L
12931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12932 (eval $ac_try) 2>&5
12933 ac_status=$?
12934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12935 (exit $ac_status); }; } &&
12936 { ac_try='test -s conftest.$ac_objext'
12937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12938 (eval $ac_try) 2>&5
12939 ac_status=$?
12940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12941 (exit $ac_status); }; }; then
12942 ac_hi=-1 ac_mid=-1
12943 while :; do
12944 cat >conftest.$ac_ext <<_ACEOF
12945/* confdefs.h. */
12946_ACEOF
12947cat confdefs.h >>conftest.$ac_ext
12948cat >>conftest.$ac_ext <<_ACEOF
12949/* end confdefs.h. */
12950$ac_includes_default
12951int
12952main ()
12953{
12954static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
12955test_array [0] = 0
12956
12957 ;
12958 return 0;
12959}
12960_ACEOF
12961rm -f conftest.$ac_objext
12962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12963 (eval $ac_compile) 2>conftest.er1
12964 ac_status=$?
12965 grep -v '^ *+' conftest.er1 >conftest.err
12966 rm -f conftest.er1
12967 cat conftest.err >&5
12968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12969 (exit $ac_status); } &&
4474d12b 12970 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
314e9a4e
L
12971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12972 (eval $ac_try) 2>&5
12973 ac_status=$?
12974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12975 (exit $ac_status); }; } &&
12976 { ac_try='test -s conftest.$ac_objext'
12977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12978 (eval $ac_try) 2>&5
12979 ac_status=$?
12980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12981 (exit $ac_status); }; }; then
12982 ac_lo=$ac_mid; break
12983else
12984 echo "$as_me: failed program was:" >&5
12985sed 's/^/| /' conftest.$ac_ext >&5
12986
12987ac_hi=`expr '(' $ac_mid ')' - 1`
12988 if test $ac_mid -le $ac_hi; then
12989 ac_lo= ac_hi=
12990 break
12991 fi
12992 ac_mid=`expr 2 '*' $ac_mid`
12993fi
12994rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12995 done
12996else
12997 echo "$as_me: failed program was:" >&5
12998sed 's/^/| /' conftest.$ac_ext >&5
12999
13000ac_lo= ac_hi=
13001fi
13002rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13003fi
13004rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13005# Binary search between lo and hi bounds.
13006while test "x$ac_lo" != "x$ac_hi"; do
13007 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13008 cat >conftest.$ac_ext <<_ACEOF
13009/* confdefs.h. */
13010_ACEOF
13011cat confdefs.h >>conftest.$ac_ext
13012cat >>conftest.$ac_ext <<_ACEOF
13013/* end confdefs.h. */
13014$ac_includes_default
13015int
13016main ()
13017{
13018static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
13019test_array [0] = 0
13020
13021 ;
13022 return 0;
13023}
13024_ACEOF
13025rm -f conftest.$ac_objext
13026if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13027 (eval $ac_compile) 2>conftest.er1
13028 ac_status=$?
13029 grep -v '^ *+' conftest.er1 >conftest.err
13030 rm -f conftest.er1
13031 cat conftest.err >&5
13032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13033 (exit $ac_status); } &&
4474d12b 13034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
314e9a4e
L
13035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13036 (eval $ac_try) 2>&5
13037 ac_status=$?
13038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13039 (exit $ac_status); }; } &&
13040 { ac_try='test -s conftest.$ac_objext'
13041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13042 (eval $ac_try) 2>&5
13043 ac_status=$?
13044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13045 (exit $ac_status); }; }; then
13046 ac_hi=$ac_mid
13047else
13048 echo "$as_me: failed program was:" >&5
13049sed 's/^/| /' conftest.$ac_ext >&5
13050
13051ac_lo=`expr '(' $ac_mid ')' + 1`
13052fi
13053rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13054done
13055case $ac_lo in
13056?*) ac_cv_sizeof_long=$ac_lo;;
7a283e07
RW
13057'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13058echo "$as_me: error: in \`$ac_pwd':" >&2;}
13059{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
314e9a4e
L
13060See \`config.log' for more details." >&5
13061echo "$as_me: error: cannot compute sizeof (long), 77
13062See \`config.log' for more details." >&2;}
7a283e07 13063 { (exit 1); exit 1; }; }; } ;;
314e9a4e
L
13064esac
13065else
13066 if test "$cross_compiling" = yes; then
4474d12b
CS
13067 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
13068echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
13069 { (exit 1); exit 1; }; }
314e9a4e
L
13070else
13071 cat >conftest.$ac_ext <<_ACEOF
13072/* confdefs.h. */
13073_ACEOF
13074cat confdefs.h >>conftest.$ac_ext
13075cat >>conftest.$ac_ext <<_ACEOF
13076/* end confdefs.h. */
13077$ac_includes_default
13078long longval () { return (long) (sizeof (long)); }
13079unsigned long ulongval () { return (long) (sizeof (long)); }
13080#include <stdio.h>
13081#include <stdlib.h>
13082int
13083main ()
13084{
13085
13086 FILE *f = fopen ("conftest.val", "w");
13087 if (! f)
13088 exit (1);
13089 if (((long) (sizeof (long))) < 0)
13090 {
13091 long i = longval ();
13092 if (i != ((long) (sizeof (long))))
13093 exit (1);
13094 fprintf (f, "%ld\n", i);
13095 }
13096 else
13097 {
13098 unsigned long i = ulongval ();
13099 if (i != ((long) (sizeof (long))))
13100 exit (1);
13101 fprintf (f, "%lu\n", i);
13102 }
13103 exit (ferror (f) || fclose (f) != 0);
13104
13105 ;
13106 return 0;
13107}
13108_ACEOF
13109rm -f conftest$ac_exeext
13110if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13111 (eval $ac_link) 2>&5
13112 ac_status=$?
13113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13114 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13116 (eval $ac_try) 2>&5
13117 ac_status=$?
13118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13119 (exit $ac_status); }; }; then
13120 ac_cv_sizeof_long=`cat conftest.val`
13121else
13122 echo "$as_me: program exited with status $ac_status" >&5
13123echo "$as_me: failed program was:" >&5
13124sed 's/^/| /' conftest.$ac_ext >&5
13125
13126( exit $ac_status )
7a283e07
RW
13127{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13128echo "$as_me: error: in \`$ac_pwd':" >&2;}
314e9a4e
L
13129{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13130See \`config.log' for more details." >&5
13131echo "$as_me: error: cannot compute sizeof (long), 77
13132See \`config.log' for more details." >&2;}
7a283e07 13133 { (exit 1); exit 1; }; }; }
314e9a4e
L
13134fi
13135rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13136fi
13137fi
13138rm -f conftest.val
13139else
13140 ac_cv_sizeof_long=0
13141fi
13142fi
13143echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13144echo "${ECHO_T}$ac_cv_sizeof_long" >&6
13145cat >>confdefs.h <<_ACEOF
13146#define SIZEOF_LONG $ac_cv_sizeof_long
13147_ACEOF
13148
13149
13150 if test "x${ac_cv_sizeof_long}" = "x8"; then
13151 want64=true
13152 fi
13153 fi
42ecbf5e
DJ
13154 if test x${want64} = xtrue; then
13155 EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
13156 else
13157 EMULATION_OFILES='$(ALL_EMULATIONS)'
13158 fi
13159 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)'
13160else
13161 EMULATION_OFILES=$all_emuls
13162 EMUL_EXTRA_OFILES=$all_emul_extras
13163fi
13164
13165
13166
13167
13168EMULATION_LIBPATH=$all_libpath
13169
13170
13171if test x${enable_static} = xno; then
13172 TESTBFDLIB="--rpath ../bfd/.libs ../bfd/.libs/libbfd.so"
13173else
13174 TESTBFDLIB="../bfd/.libs/libbfd.a"
13175fi
13176
13177
13178target_vendor=${target_vendor=$host_vendor}
13179case "$target_vendor" in
13180 hp) EXTRA_SHLIB_EXTENSION=".sl" ;;
13181 *) EXTRA_SHLIB_EXTENSION= ;;
13182esac
13183
13184case "$target_os" in
13185 lynxos) EXTRA_SHLIB_EXTENSION=".a" ;;
13186esac
13187
13188if test x${EXTRA_SHLIB_EXTENSION} != x ; then
13189
13190cat >>confdefs.h <<_ACEOF
13191#define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
13192_ACEOF
13193
13194fi
13195
108a6f8e
CD
13196
13197
13198
13199
42ecbf5e 13200 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
42ecbf5e
DJ
13201cat >confcache <<\_ACEOF
13202# This file is a shell script that caches the results of configure
13203# tests run on this system so they can be shared between configure
13204# scripts and configure runs, see configure's option --config-cache.
13205# It is not useful on other systems. If it contains results you don't
13206# want to keep, you may remove or edit it.
13207#
13208# config.status only pays attention to the cache file if you give it
13209# the --recheck option to rerun configure.
13210#
13211# `ac_cv_env_foo' variables (set or unset) will be overridden when
13212# loading this file, other *unset* `ac_cv_foo' will be assigned the
13213# following values.
13214
13215_ACEOF
13216
13217# The following way of writing the cache mishandles newlines in values,
13218# but we know of no workaround that is simple, portable, and efficient.
13219# So, don't put newlines in cache variables' values.
13220# Ultrix sh set writes to stderr and can't be redirected directly,
13221# and sets the high bit in the cache file unless we assign to the vars.
13222{
13223 (set) 2>&1 |
13224 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13225 *ac_space=\ *)
13226 # `set' does not quote correctly, so add quotes (double-quote
13227 # substitution turns \\\\ into \\, and sed turns \\ into \).
13228 sed -n \
13229 "s/'/'\\\\''/g;
13230 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13231 ;;
13232 *)
13233 # `set' quotes correctly as required by POSIX, so do not add quotes.
13234 sed -n \
13235 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13236 ;;
13237 esac;
13238} |
13239 sed '
13240 t clear
13241 : clear
13242 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13243 t end
13244 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13245 : end' >>confcache
13246if diff $cache_file confcache >/dev/null 2>&1; then :; else
13247 if test -w $cache_file; then
13248 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
13249 cat confcache >$cache_file
13250 else
13251 echo "not updating unwritable cache $cache_file"
13252 fi
13253fi
13254rm -f confcache
13255
13256test "x$prefix" = xNONE && prefix=$ac_default_prefix
13257# Let make expand exec_prefix.
13258test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13259
13260# VPATH may cause trouble with some makes, so we remove $(srcdir),
13261# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13262# trailing colons and then remove the whole line if VPATH becomes empty
13263# (actually we leave an empty line to preserve line numbers).
13264if test "x$srcdir" = x.; then
13265 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13266s/:*\$(srcdir):*/:/;
13267s/:*\${srcdir}:*/:/;
13268s/:*@srcdir@:*/:/;
13269s/^\([^=]*=[ ]*\):*/\1/;
13270s/:*$//;
13271s/^[^=]*=[ ]*$//;
13272}'
13273fi
13274
13275DEFS=-DHAVE_CONFIG_H
13276
13277ac_libobjs=
13278ac_ltlibobjs=
13279for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13280 # 1. Remove the extension, and $U if already installed.
13281 ac_i=`echo "$ac_i" |
13282 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
13283 # 2. Add them.
13284 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
13285 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
13286done
13287LIBOBJS=$ac_libobjs
13288
13289LTLIBOBJS=$ac_ltlibobjs
13290
13291
13292if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13293 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13294Usually this means the macro was only invoked conditionally." >&5
13295echo "$as_me: error: conditional \"AMDEP\" was never defined.
13296Usually this means the macro was only invoked conditionally." >&2;}
13297 { (exit 1); exit 1; }; }
13298fi
13299if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13300 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13301Usually this means the macro was only invoked conditionally." >&5
13302echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13303Usually this means the macro was only invoked conditionally." >&2;}
13304 { (exit 1); exit 1; }; }
13305fi
13306if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13307 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
13308Usually this means the macro was only invoked conditionally." >&5
13309echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
13310Usually this means the macro was only invoked conditionally." >&2;}
13311 { (exit 1); exit 1; }; }
13312fi
d5fbea21
DJ
13313if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
13314 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
13315Usually this means the macro was only invoked conditionally." >&5
13316echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
13317Usually this means the macro was only invoked conditionally." >&2;}
13318 { (exit 1); exit 1; }; }
13319fi
42ecbf5e
DJ
13320
13321: ${CONFIG_STATUS=./config.status}
13322ac_clean_files_save=$ac_clean_files
13323ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13324{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13325echo "$as_me: creating $CONFIG_STATUS" >&6;}
13326cat >$CONFIG_STATUS <<_ACEOF
13327#! $SHELL
13328# Generated by $as_me.
13329# Run this file to recreate the current configuration.
13330# Compiler output produced by configure, useful for debugging
13331# configure, is in config.log if it exists.
13332
13333debug=false
13334ac_cs_recheck=false
13335ac_cs_silent=false
13336SHELL=\${CONFIG_SHELL-$SHELL}
13337_ACEOF
13338
13339cat >>$CONFIG_STATUS <<\_ACEOF
13340## --------------------- ##
13341## M4sh Initialization. ##
13342## --------------------- ##
13343
13344# Be Bourne compatible
13345if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13346 emulate sh
13347 NULLCMD=:
13348 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13349 # is contrary to our usage. Disable this feature.
13350 alias -g '${1+"$@"}'='"$@"'
13351elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13352 set -o posix
13353fi
13354DUALCASE=1; export DUALCASE # for MKS sh
13355
13356# Support unset when possible.
13357if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13358 as_unset=unset
13359else
13360 as_unset=false
13361fi
13362
13363
13364# Work around bugs in pre-3.0 UWIN ksh.
13365$as_unset ENV MAIL MAILPATH
13366PS1='$ '
13367PS2='> '
13368PS4='+ '
13369
13370# NLS nuisances.
13371for as_var in \
13372 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13373 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13374 LC_TELEPHONE LC_TIME
13375do
13376 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13377 eval $as_var=C; export $as_var
13378 else
13379 $as_unset $as_var
13380 fi
13381done
13382
13383# Required to use basename.
13384if expr a : '\(a\)' >/dev/null 2>&1; then
13385 as_expr=expr
13386else
13387 as_expr=false
13388fi
13389
13390if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
13391 as_basename=basename
13392else
13393 as_basename=false
13394fi
13395
13396
13397# Name of the executable.
13398as_me=`$as_basename "$0" ||
13399$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13400 X"$0" : 'X\(//\)$' \| \
13401 X"$0" : 'X\(/\)$' \| \
13402 . : '\(.\)' 2>/dev/null ||
13403echo X/"$0" |
13404 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13405 /^X\/\(\/\/\)$/{ s//\1/; q; }
13406 /^X\/\(\/\).*/{ s//\1/; q; }
13407 s/.*/./; q'`
13408
13409
13410# PATH needs CR, and LINENO needs CR and PATH.
13411# Avoid depending upon Character Ranges.
13412as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13413as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13414as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13415as_cr_digits='0123456789'
13416as_cr_alnum=$as_cr_Letters$as_cr_digits
13417
13418# The user is always right.
13419if test "${PATH_SEPARATOR+set}" != set; then
13420 echo "#! /bin/sh" >conf$$.sh
13421 echo "exit 0" >>conf$$.sh
13422 chmod +x conf$$.sh
13423 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13424 PATH_SEPARATOR=';'
13425 else
13426 PATH_SEPARATOR=:
13427 fi
13428 rm -f conf$$.sh
13429fi
13430
e5a52504 13431
42ecbf5e
DJ
13432 as_lineno_1=$LINENO
13433 as_lineno_2=$LINENO
13434 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13435 test "x$as_lineno_1" != "x$as_lineno_2" &&
13436 test "x$as_lineno_3" = "x$as_lineno_2" || {
13437 # Find who we are. Look in the path if we contain no path at all
13438 # relative or not.
13439 case $0 in
13440 *[\\/]* ) as_myself=$0 ;;
13441 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13442for as_dir in $PATH
13443do
13444 IFS=$as_save_IFS
13445 test -z "$as_dir" && as_dir=.
13446 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13447done
13448
13449 ;;
13450 esac
13451 # We did not find ourselves, most probably we were run as `sh COMMAND'
13452 # in which case we are not to be found in the path.
13453 if test "x$as_myself" = x; then
13454 as_myself=$0
13455 fi
13456 if test ! -f "$as_myself"; then
13457 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13458echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13459 { (exit 1); exit 1; }; }
252b5132 13460 fi
42ecbf5e
DJ
13461 case $CONFIG_SHELL in
13462 '')
13463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13464for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13465do
13466 IFS=$as_save_IFS
13467 test -z "$as_dir" && as_dir=.
13468 for as_base in sh bash ksh sh5; do
13469 case $as_dir in
13470 /*)
13471 if ("$as_dir/$as_base" -c '
13472 as_lineno_1=$LINENO
13473 as_lineno_2=$LINENO
13474 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13475 test "x$as_lineno_1" != "x$as_lineno_2" &&
13476 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
13477 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
13478 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
13479 CONFIG_SHELL=$as_dir/$as_base
13480 export CONFIG_SHELL
13481 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
13482 fi;;
13483 esac
13484 done
252b5132 13485done
42ecbf5e
DJ
13486;;
13487 esac
252b5132 13488
42ecbf5e
DJ
13489 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13490 # uniformly replaced by the line number. The first 'sed' inserts a
13491 # line-number line before each line; the second 'sed' does the real
13492 # work. The second script uses 'N' to pair each line-number line
13493 # with the numbered line, and appends trailing '-' during
13494 # substitution so that $LINENO is not a special case at line end.
13495 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13496 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
13497 sed '=' <$as_myself |
13498 sed '
13499 N
13500 s,$,-,
13501 : loop
13502 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
13503 t loop
13504 s,-$,,
13505 s,^['$as_cr_digits']*\n,,
13506 ' >$as_me.lineno &&
13507 chmod +x $as_me.lineno ||
13508 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13509echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
13510 { (exit 1); exit 1; }; }
13511
13512 # Don't try to exec as it changes $[0], causing all sort of problems
13513 # (the dirname of $[0] is not the place where we might find the
13514 # original and so on. Autoconf is especially sensible to this).
13515 . ./$as_me.lineno
13516 # Exit status is that of the last command.
13517 exit
13518}
252b5132
RH
13519
13520
42ecbf5e
DJ
13521case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13522 *c*,-n*) ECHO_N= ECHO_C='
13523' ECHO_T=' ' ;;
13524 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
13525 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
13526esac
252b5132 13527
42ecbf5e
DJ
13528if expr a : '\(a\)' >/dev/null 2>&1; then
13529 as_expr=expr
13530else
13531 as_expr=false
13532fi
252b5132 13533
42ecbf5e
DJ
13534rm -f conf$$ conf$$.exe conf$$.file
13535echo >conf$$.file
13536if ln -s conf$$.file conf$$ 2>/dev/null; then
13537 # We could just check for DJGPP; but this test a) works b) is more generic
13538 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13539 if test -f conf$$.exe; then
13540 # Don't use ln at all; we don't have any links
13541 as_ln_s='cp -p'
252b5132 13542 else
42ecbf5e 13543 as_ln_s='ln -s'
252b5132 13544 fi
42ecbf5e
DJ
13545elif ln conf$$.file conf$$ 2>/dev/null; then
13546 as_ln_s=ln
e5a52504 13547else
42ecbf5e 13548 as_ln_s='cp -p'
e5a52504 13549fi
42ecbf5e 13550rm -f conf$$ conf$$.exe conf$$.file
252b5132 13551
42ecbf5e
DJ
13552if mkdir -p . 2>/dev/null; then
13553 as_mkdir_p=:
13554else
13555 test -d ./-p && rmdir ./-p
13556 as_mkdir_p=false
13557fi
252b5132 13558
42ecbf5e 13559as_executable_p="test -f"
252b5132 13560
42ecbf5e
DJ
13561# Sed expression to map a string onto a valid CPP name.
13562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
f234d5fe 13563
42ecbf5e
DJ
13564# Sed expression to map a string onto a valid variable name.
13565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
e5a52504 13566
e5a52504 13567
42ecbf5e
DJ
13568# IFS
13569# We need space, tab and new line, in precisely that order.
13570as_nl='
13571'
13572IFS=" $as_nl"
e5a52504 13573
42ecbf5e
DJ
13574# CDPATH.
13575$as_unset CDPATH
e5a52504 13576
42ecbf5e 13577exec 6>&1
e5a52504 13578
42ecbf5e
DJ
13579# Open the log real soon, to keep \$[0] and so on meaningful, and to
13580# report actual input values of CONFIG_FILES etc. instead of their
13581# values after options handling. Logging --version etc. is OK.
13582exec 5>>config.log
13583{
13584 echo
13585 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13586## Running $as_me. ##
13587_ASBOX
13588} >&5
13589cat >&5 <<_CSEOF
e5a52504 13590
42ecbf5e
DJ
13591This file was extended by $as_me, which was
13592generated by GNU Autoconf 2.59. Invocation command line was
13593
13594 CONFIG_FILES = $CONFIG_FILES
13595 CONFIG_HEADERS = $CONFIG_HEADERS
13596 CONFIG_LINKS = $CONFIG_LINKS
13597 CONFIG_COMMANDS = $CONFIG_COMMANDS
13598 $ $0 $@
e5a52504 13599
42ecbf5e
DJ
13600_CSEOF
13601echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
13602echo >&5
13603_ACEOF
13604
13605# Files that config.status was made for.
13606if test -n "$ac_config_files"; then
13607 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
d15b04bd 13608fi
e5a52504 13609
42ecbf5e
DJ
13610if test -n "$ac_config_headers"; then
13611 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13612fi
13613
13614if test -n "$ac_config_links"; then
13615 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13616fi
13617
13618if test -n "$ac_config_commands"; then
13619 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13620fi
13621
13622cat >>$CONFIG_STATUS <<\_ACEOF
13623
13624ac_cs_usage="\
13625\`$as_me' instantiates files from templates according to the
13626current configuration.
13627
13628Usage: $0 [OPTIONS] [FILE]...
13629
13630 -h, --help print this help, then exit
13631 -V, --version print version number, then exit
13632 -q, --quiet do not print progress messages
13633 -d, --debug don't remove temporary files
13634 --recheck update $as_me by reconfiguring in the same conditions
13635 --file=FILE[:TEMPLATE]
13636 instantiate the configuration file FILE
13637 --header=FILE[:TEMPLATE]
13638 instantiate the configuration header FILE
13639
13640Configuration files:
13641$config_files
13642
13643Configuration headers:
13644$config_headers
13645
13646Configuration commands:
13647$config_commands
13648
13649Report bugs to <bug-autoconf@gnu.org>."
13650_ACEOF
13651
13652cat >>$CONFIG_STATUS <<_ACEOF
13653ac_cs_version="\\
13654config.status
13655configured by $0, generated by GNU Autoconf 2.59,
13656 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13657
13658Copyright (C) 2003 Free Software Foundation, Inc.
13659This config.status script is free software; the Free Software Foundation
13660gives unlimited permission to copy, distribute and modify it."
13661srcdir=$srcdir
13662INSTALL="$INSTALL"
13663_ACEOF
13664
13665cat >>$CONFIG_STATUS <<\_ACEOF
13666# If no file are specified by the user, then we need to provide default
13667# value. By we need to know if files were specified by the user.
13668ac_need_defaults=:
13669while test $# != 0
13670do
13671 case $1 in
13672 --*=*)
13673 ac_option=`expr "x$1" : 'x\([^=]*\)='`
13674 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13675 ac_shift=:
252b5132 13676 ;;
42ecbf5e
DJ
13677 -*)
13678 ac_option=$1
13679 ac_optarg=$2
13680 ac_shift=shift
252b5132 13681 ;;
42ecbf5e
DJ
13682 *) # This is not an option, so the user has probably given explicit
13683 # arguments.
13684 ac_option=$1
13685 ac_need_defaults=false;;
13686 esac
252b5132 13687
42ecbf5e
DJ
13688 case $ac_option in
13689 # Handling of the options.
13690_ACEOF
13691cat >>$CONFIG_STATUS <<\_ACEOF
13692 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13693 ac_cs_recheck=: ;;
13694 --version | --vers* | -V )
13695 echo "$ac_cs_version"; exit 0 ;;
13696 --he | --h)
13697 # Conflict between --help and --header
13698 { { echo "$as_me:$LINENO: error: ambiguous option: $1
13699Try \`$0 --help' for more information." >&5
13700echo "$as_me: error: ambiguous option: $1
13701Try \`$0 --help' for more information." >&2;}
13702 { (exit 1); exit 1; }; };;
13703 --help | --hel | -h )
13704 echo "$ac_cs_usage"; exit 0 ;;
13705 --debug | --d* | -d )
13706 debug=: ;;
13707 --file | --fil | --fi | --f )
13708 $ac_shift
13709 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13710 ac_need_defaults=false;;
13711 --header | --heade | --head | --hea )
13712 $ac_shift
13713 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13714 ac_need_defaults=false;;
13715 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13716 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13717 ac_cs_silent=: ;;
252b5132 13718
42ecbf5e
DJ
13719 # This is an error.
13720 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13721Try \`$0 --help' for more information." >&5
13722echo "$as_me: error: unrecognized option: $1
13723Try \`$0 --help' for more information." >&2;}
13724 { (exit 1); exit 1; }; } ;;
252b5132 13725
42ecbf5e 13726 *) ac_config_targets="$ac_config_targets $1" ;;
252b5132 13727
42ecbf5e
DJ
13728 esac
13729 shift
13730done
d15b04bd 13731
42ecbf5e 13732ac_configure_extra_args=
e5a52504 13733
42ecbf5e
DJ
13734if $ac_cs_silent; then
13735 exec 6>/dev/null
13736 ac_configure_extra_args="$ac_configure_extra_args --silent"
13737fi
e5a52504 13738
42ecbf5e
DJ
13739_ACEOF
13740cat >>$CONFIG_STATUS <<_ACEOF
13741if \$ac_cs_recheck; then
13742 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13743 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13744fi
13745
13746_ACEOF
13747
13748cat >>$CONFIG_STATUS <<_ACEOF
252b5132 13749#
42ecbf5e 13750# INIT-COMMANDS section.
252b5132 13751#
252b5132 13752
42ecbf5e 13753AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
13754
13755
13756# The HP-UX ksh and POSIX shell print the target directory to stdout
13757# if CDPATH is set.
13758(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13759
13760sed_quote_subst='$sed_quote_subst'
13761double_quote_subst='$double_quote_subst'
13762delay_variable_subst='$delay_variable_subst'
13763macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13764macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13765enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13766enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13767pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13768enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13769host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13770host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13771host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13772build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13773build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13774build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13775SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13776Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13777GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13778EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13779FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13780LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13781NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13782LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13783max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13784ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13785exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13786lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13787lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13788lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13789reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13790reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13791deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13792file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13793AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13794AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13795STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13796RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13797old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13798old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13799old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13800CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13801CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13802compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13803GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13804lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13805lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13806lt_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"`'
13807objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13808SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13809ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13810MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13811lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13812lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13813lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13814lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13815lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13816need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13817libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13818shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13819extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13820archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13821enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13822export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13823whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13824compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13825old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13826old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13827archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13828archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13829module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13830module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13831with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13832allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13833no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13834hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13835hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13836hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13837hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13838hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13839hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13840hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13841hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13842inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13843link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13844fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13845always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13846export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13847exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13848include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13849prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13850file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13851variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13852need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13853need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13854version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13855runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13856shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13857shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13858libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13859library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13860soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13861postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13862postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13863finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13864finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13865hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13866sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13867sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13868hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13869enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13870enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13871enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13872old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13873striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13874
13875LTCC='$LTCC'
13876LTCFLAGS='$LTCFLAGS'
13877compiler='$compiler_DEFAULT'
13878
13879# Quote evaled strings.
13880for var in SED \
13881GREP \
13882EGREP \
13883FGREP \
13884LD \
13885NM \
13886LN_S \
13887lt_SP2NL \
13888lt_NL2SP \
13889reload_flag \
13890deplibs_check_method \
13891file_magic_cmd \
13892AR \
13893AR_FLAGS \
13894STRIP \
13895RANLIB \
13896CC \
13897CFLAGS \
13898compiler \
13899lt_cv_sys_global_symbol_pipe \
13900lt_cv_sys_global_symbol_to_cdecl \
13901lt_cv_sys_global_symbol_to_c_name_address \
13902SHELL \
13903ECHO \
13904lt_prog_compiler_no_builtin_flag \
13905lt_prog_compiler_wl \
13906lt_prog_compiler_pic \
13907lt_prog_compiler_static \
13908lt_cv_prog_compiler_c_o \
13909need_locks \
13910shrext_cmds \
13911export_dynamic_flag_spec \
13912whole_archive_flag_spec \
13913compiler_needs_object \
13914with_gnu_ld \
13915allow_undefined_flag \
13916no_undefined_flag \
13917hardcode_libdir_flag_spec \
13918hardcode_libdir_flag_spec_ld \
13919hardcode_libdir_separator \
13920fix_srcfile_path \
13921exclude_expsyms \
13922include_expsyms \
13923file_list_spec \
13924variables_saved_for_relink \
13925libname_spec \
13926library_names_spec \
13927soname_spec \
13928finish_eval \
13929old_striplib \
13930striplib; do
13931 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13932 *[\\\\\\\`\\"\\\$]*)
13933 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13934 ;;
13935 *)
13936 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13937 ;;
13938 esac
13939done
13940
13941# Double-quote double-evaled strings.
13942for var in reload_cmds \
13943old_postinstall_cmds \
13944old_postuninstall_cmds \
13945old_archive_cmds \
13946extract_expsyms_cmds \
13947old_archive_from_new_cmds \
13948old_archive_from_expsyms_cmds \
13949archive_cmds \
13950archive_expsym_cmds \
13951module_cmds \
13952module_expsym_cmds \
13953export_symbols_cmds \
13954prelink_cmds \
13955postinstall_cmds \
13956postuninstall_cmds \
13957finish_cmds \
13958sys_lib_search_path_spec \
13959sys_lib_dlsearch_path_spec; do
13960 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13961 *[\\\\\\\`\\"\\\$]*)
13962 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13963 ;;
13964 *)
13965 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13966 ;;
13967 esac
13968done
13969
13970# Fix-up fallback echo if it was mangled by the above quoting rules.
13971case \$lt_ECHO in
13972*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13973 ;;
13974esac
13975
13976ac_aux_dir='$ac_aux_dir'
13977xsi_shell='$xsi_shell'
13978lt_shell_append='$lt_shell_append'
13979
13980# See if we are running on zsh, and set the options which allow our
13981# commands through without removal of \ escapes INIT.
13982if test -n "\${ZSH_VERSION+set}" ; then
13983 setopt NO_GLOB_SUBST
13984fi
13985
13986
13987 PACKAGE='$PACKAGE'
13988 VERSION='$VERSION'
13989 TIMESTAMP='$TIMESTAMP'
13990 RM='$RM'
13991 ofile='$ofile'
13992
13993
13994
20e95c23
DJ
13995# Capture the value of obsolete ALL_LINGUAS because we need it to compute
13996 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
13997 # from automake.
13998 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
13999 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14000 LINGUAS="${LINGUAS-%UNSET%}"
14001
42ecbf5e
DJ
14002
14003_ACEOF
14004
14005
14006
14007cat >>$CONFIG_STATUS <<\_ACEOF
14008for ac_config_target in $ac_config_targets
252b5132 14009do
42ecbf5e
DJ
14010 case "$ac_config_target" in
14011 # Handling of arguments.
14012 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14013 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
14014 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
d7040cdb 14015 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20e95c23 14016 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
42ecbf5e
DJ
14017 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
14018 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14019echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14020 { (exit 1); exit 1; }; };;
252b5132
RH
14021 esac
14022done
14023
42ecbf5e
DJ
14024# If the user did not use the arguments to specify the items to instantiate,
14025# then the envvar interface is used. Set only those that are not.
14026# We use the long form for the default assignment because of an extremely
14027# bizarre bug on SunOS 4.1.3.
14028if $ac_need_defaults; then
14029 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14030 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14031 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14032fi
14033
14034# Have a temporary directory for convenience. Make it in the build tree
14035# simply because there is no reason to put it here, and in addition,
14036# creating and moving files from /tmp can sometimes cause problems.
14037# Create a temporary directory, and hook for its removal unless debugging.
14038$debug ||
14039{
14040 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14041 trap '{ (exit 1); exit 1; }' 1 2 13 15
14042}
14043
14044# Create a (secure) tmp directory for tmp files.
e5a52504 14045
42ecbf5e
DJ
14046{
14047 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
14048 test -n "$tmp" && test -d "$tmp"
14049} ||
14050{
14051 tmp=./confstat$$-$RANDOM
14052 (umask 077 && mkdir $tmp)
14053} ||
14054{
14055 echo "$me: cannot create a temporary directory in ." >&2
14056 { (exit 1); exit 1; }
14057}
e5a52504 14058
42ecbf5e 14059_ACEOF
d15b04bd 14060
42ecbf5e
DJ
14061cat >>$CONFIG_STATUS <<_ACEOF
14062
14063#
14064# CONFIG_FILES section.
14065#
14066
14067# No need to generate the scripts if there are no CONFIG_FILES.
14068# This happens for instance when ./config.status config.h
14069if test -n "\$CONFIG_FILES"; then
14070 # Protect against being on the right side of a sed subst in config.status.
14071 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
14072 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
14073s,@SHELL@,$SHELL,;t t
14074s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14075s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14076s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14077s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14078s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14079s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
14080s,@exec_prefix@,$exec_prefix,;t t
14081s,@prefix@,$prefix,;t t
14082s,@program_transform_name@,$program_transform_name,;t t
14083s,@bindir@,$bindir,;t t
14084s,@sbindir@,$sbindir,;t t
14085s,@libexecdir@,$libexecdir,;t t
14086s,@datadir@,$datadir,;t t
14087s,@sysconfdir@,$sysconfdir,;t t
14088s,@sharedstatedir@,$sharedstatedir,;t t
14089s,@localstatedir@,$localstatedir,;t t
14090s,@libdir@,$libdir,;t t
14091s,@includedir@,$includedir,;t t
14092s,@oldincludedir@,$oldincludedir,;t t
14093s,@infodir@,$infodir,;t t
14094s,@mandir@,$mandir,;t t
14095s,@build_alias@,$build_alias,;t t
14096s,@host_alias@,$host_alias,;t t
14097s,@target_alias@,$target_alias,;t t
14098s,@DEFS@,$DEFS,;t t
14099s,@ECHO_C@,$ECHO_C,;t t
14100s,@ECHO_N@,$ECHO_N,;t t
14101s,@ECHO_T@,$ECHO_T,;t t
14102s,@LIBS@,$LIBS,;t t
14103s,@build@,$build,;t t
14104s,@build_cpu@,$build_cpu,;t t
14105s,@build_vendor@,$build_vendor,;t t
14106s,@build_os@,$build_os,;t t
14107s,@host@,$host,;t t
14108s,@host_cpu@,$host_cpu,;t t
14109s,@host_vendor@,$host_vendor,;t t
14110s,@host_os@,$host_os,;t t
14111s,@target@,$target,;t t
14112s,@target_cpu@,$target_cpu,;t t
14113s,@target_vendor@,$target_vendor,;t t
14114s,@target_os@,$target_os,;t t
14115s,@CC@,$CC,;t t
14116s,@CFLAGS@,$CFLAGS,;t t
14117s,@LDFLAGS@,$LDFLAGS,;t t
14118s,@CPPFLAGS@,$CPPFLAGS,;t t
14119s,@ac_ct_CC@,$ac_ct_CC,;t t
14120s,@EXEEXT@,$EXEEXT,;t t
14121s,@OBJEXT@,$OBJEXT,;t t
14122s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
14123s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
14124s,@INSTALL_DATA@,$INSTALL_DATA,;t t
14125s,@CYGPATH_W@,$CYGPATH_W,;t t
14126s,@PACKAGE@,$PACKAGE,;t t
14127s,@VERSION@,$VERSION,;t t
14128s,@ACLOCAL@,$ACLOCAL,;t t
14129s,@AUTOCONF@,$AUTOCONF,;t t
14130s,@AUTOMAKE@,$AUTOMAKE,;t t
14131s,@AUTOHEADER@,$AUTOHEADER,;t t
14132s,@MAKEINFO@,$MAKEINFO,;t t
14133s,@install_sh@,$install_sh,;t t
14134s,@STRIP@,$STRIP,;t t
14135s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
14136s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
14137s,@mkdir_p@,$mkdir_p,;t t
14138s,@AWK@,$AWK,;t t
14139s,@SET_MAKE@,$SET_MAKE,;t t
14140s,@am__leading_dot@,$am__leading_dot,;t t
14141s,@AMTAR@,$AMTAR,;t t
14142s,@am__tar@,$am__tar,;t t
14143s,@am__untar@,$am__untar,;t t
14144s,@DEPDIR@,$DEPDIR,;t t
14145s,@am__include@,$am__include,;t t
14146s,@am__quote@,$am__quote,;t t
14147s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
14148s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
14149s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
14150s,@CCDEPMODE@,$CCDEPMODE,;t t
14151s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
14152s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
ce2cded5
L
14153s,@use_sysroot@,$use_sysroot,;t t
14154s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
14155s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
14156s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
14157s,@NO_WERROR@,$NO_WERROR,;t t
d7040cdb
SE
14158s,@LIBTOOL@,$LIBTOOL,;t t
14159s,@SED@,$SED,;t t
14160s,@EGREP@,$EGREP,;t t
14161s,@FGREP@,$FGREP,;t t
14162s,@GREP@,$GREP,;t t
14163s,@LD@,$LD,;t t
14164s,@DUMPBIN@,$DUMPBIN,;t t
14165s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
14166s,@NM@,$NM,;t t
42ecbf5e 14167s,@LN_S@,$LN_S,;t t
d7040cdb
SE
14168s,@AR@,$AR,;t t
14169s,@ac_ct_AR@,$ac_ct_AR,;t t
42ecbf5e
DJ
14170s,@RANLIB@,$RANLIB,;t t
14171s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
d7040cdb
SE
14172s,@lt_ECHO@,$lt_ECHO,;t t
14173s,@CPP@,$CPP,;t t
42ecbf5e 14174s,@USE_NLS@,$USE_NLS,;t t
20e95c23
DJ
14175s,@LIBINTL@,$LIBINTL,;t t
14176s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
14177s,@INCINTL@,$INCINTL,;t t
42ecbf5e 14178s,@XGETTEXT@,$XGETTEXT,;t t
20e95c23
DJ
14179s,@GMSGFMT@,$GMSGFMT,;t t
14180s,@POSUB@,$POSUB,;t t
42ecbf5e 14181s,@CATALOGS@,$CATALOGS,;t t
42ecbf5e 14182s,@DATADIRNAME@,$DATADIRNAME,;t t
42ecbf5e 14183s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20e95c23
DJ
14184s,@GENCAT@,$GENCAT,;t t
14185s,@CATOBJEXT@,$CATOBJEXT,;t t
42ecbf5e 14186s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
20e95c23
DJ
14187s,@MSGFMT@,$MSGFMT,;t t
14188s,@MSGMERGE@,$MSGMERGE,;t t
42ecbf5e
DJ
14189s,@YACC@,$YACC,;t t
14190s,@LEX@,$LEX,;t t
14191s,@LEXLIB@,$LEXLIB,;t t
14192s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
14193s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
14194s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
14195s,@MAINT@,$MAINT,;t t
d5fbea21
DJ
14196s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
14197s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
42ecbf5e
DJ
14198s,@HDEFINES@,$HDEFINES,;t t
14199s,@HOSTING_CRT0@,$HOSTING_CRT0,;t t
14200s,@HOSTING_LIBS@,$HOSTING_LIBS,;t t
14201s,@NATIVE_LIB_DIRS@,$NATIVE_LIB_DIRS,;t t
14202s,@STRINGIFY@,$STRINGIFY,;t t
14203s,@EMUL@,$EMUL,;t t
14204s,@EMULATION_OFILES@,$EMULATION_OFILES,;t t
14205s,@EMUL_EXTRA_OFILES@,$EMUL_EXTRA_OFILES,;t t
14206s,@LIB_PATH@,$LIB_PATH,;t t
14207s,@EMULATION_LIBPATH@,$EMULATION_LIBPATH,;t t
14208s,@TESTBFDLIB@,$TESTBFDLIB,;t t
108a6f8e
CD
14209s,@datarootdir@,$datarootdir,;t t
14210s,@docdir@,$docdir,;t t
14211s,@htmldir@,$htmldir,;t t
42ecbf5e
DJ
14212s,@LIBOBJS@,$LIBOBJS,;t t
14213s,@LTLIBOBJS@,$LTLIBOBJS,;t t
14214/@TDIRS@/r $TDIRS
14215s,@TDIRS@,,;t t
252b5132 14216CEOF
252b5132 14217
42ecbf5e
DJ
14218_ACEOF
14219
14220 cat >>$CONFIG_STATUS <<\_ACEOF
14221 # Split the substitutions into bite-sized pieces for seds with
14222 # small command number limits, like on Digital OSF/1 and HP-UX.
14223 ac_max_sed_lines=48
14224 ac_sed_frag=1 # Number of current file.
14225 ac_beg=1 # First line for current file.
14226 ac_end=$ac_max_sed_lines # Line after last line for current file.
14227 ac_more_lines=:
14228 ac_sed_cmds=
14229 while $ac_more_lines; do
14230 if test $ac_beg -gt 1; then
14231 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14232 else
14233 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14234 fi
14235 if test ! -s $tmp/subs.frag; then
14236 ac_more_lines=false
252b5132 14237 else
42ecbf5e
DJ
14238 # The purpose of the label and of the branching condition is to
14239 # speed up the sed processing (if there are no `@' at all, there
14240 # is no need to browse any of the substitutions).
14241 # These are the two extra sed commands mentioned above.
14242 (echo ':t
14243 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
14244 if test -z "$ac_sed_cmds"; then
14245 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
14246 else
14247 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
14248 fi
14249 ac_sed_frag=`expr $ac_sed_frag + 1`
14250 ac_beg=$ac_end
14251 ac_end=`expr $ac_end + $ac_max_sed_lines`
252b5132 14252 fi
42ecbf5e
DJ
14253 done
14254 if test -z "$ac_sed_cmds"; then
14255 ac_sed_cmds=cat
252b5132 14256 fi
42ecbf5e 14257fi # test -n "$CONFIG_FILES"
252b5132 14258
42ecbf5e
DJ
14259_ACEOF
14260cat >>$CONFIG_STATUS <<\_ACEOF
14261for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
252b5132 14262 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42ecbf5e
DJ
14263 case $ac_file in
14264 - | *:- | *:-:* ) # input from stdin
14265 cat >$tmp/stdin
14266 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14267 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14268 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14269 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14270 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
14271 esac
14272
42ecbf5e
DJ
14273 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
14274 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14275$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14276 X"$ac_file" : 'X\(//\)[^/]' \| \
14277 X"$ac_file" : 'X\(//\)$' \| \
14278 X"$ac_file" : 'X\(/\)' \| \
14279 . : '\(.\)' 2>/dev/null ||
14280echo X"$ac_file" |
14281 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14282 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14283 /^X\(\/\/\)$/{ s//\1/; q; }
14284 /^X\(\/\).*/{ s//\1/; q; }
14285 s/.*/./; q'`
14286 { if $as_mkdir_p; then
14287 mkdir -p "$ac_dir"
d15b04bd 14288 else
42ecbf5e
DJ
14289 as_dir="$ac_dir"
14290 as_dirs=
14291 while test ! -d "$as_dir"; do
14292 as_dirs="$as_dir $as_dirs"
14293 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14294$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14295 X"$as_dir" : 'X\(//\)[^/]' \| \
14296 X"$as_dir" : 'X\(//\)$' \| \
14297 X"$as_dir" : 'X\(/\)' \| \
14298 . : '\(.\)' 2>/dev/null ||
14299echo X"$as_dir" |
14300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14301 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14302 /^X\(\/\/\)$/{ s//\1/; q; }
14303 /^X\(\/\).*/{ s//\1/; q; }
14304 s/.*/./; q'`
14305 done
14306 test ! -n "$as_dirs" || mkdir $as_dirs
14307 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14308echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14309 { (exit 1); exit 1; }; }; }
14310
14311 ac_builddir=.
14312
14313if test "$ac_dir" != .; then
14314 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14315 # A "../" for each directory in $ac_dir_suffix.
14316 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14317else
14318 ac_dir_suffix= ac_top_builddir=
14319fi
252b5132 14320
42ecbf5e
DJ
14321case $srcdir in
14322 .) # No --srcdir option. We are building in place.
14323 ac_srcdir=.
14324 if test -z "$ac_top_builddir"; then
14325 ac_top_srcdir=.
14326 else
14327 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14328 fi ;;
14329 [\\/]* | ?:[\\/]* ) # Absolute path.
14330 ac_srcdir=$srcdir$ac_dir_suffix;
14331 ac_top_srcdir=$srcdir ;;
252b5132 14332 *) # Relative path.
42ecbf5e
DJ
14333 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14334 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14335esac
14336
14337# Do not use `cd foo && pwd` to compute absolute paths, because
14338# the directories may not exist.
14339case `pwd` in
14340.) ac_abs_builddir="$ac_dir";;
14341*)
14342 case "$ac_dir" in
14343 .) ac_abs_builddir=`pwd`;;
14344 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14345 *) ac_abs_builddir=`pwd`/"$ac_dir";;
14346 esac;;
14347esac
14348case $ac_abs_builddir in
14349.) ac_abs_top_builddir=${ac_top_builddir}.;;
14350*)
14351 case ${ac_top_builddir}. in
14352 .) ac_abs_top_builddir=$ac_abs_builddir;;
14353 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14354 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14355 esac;;
14356esac
14357case $ac_abs_builddir in
14358.) ac_abs_srcdir=$ac_srcdir;;
14359*)
14360 case $ac_srcdir in
14361 .) ac_abs_srcdir=$ac_abs_builddir;;
14362 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14363 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14364 esac;;
14365esac
14366case $ac_abs_builddir in
14367.) ac_abs_top_srcdir=$ac_top_srcdir;;
14368*)
14369 case $ac_top_srcdir in
14370 .) ac_abs_top_srcdir=$ac_abs_builddir;;
14371 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14372 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14373 esac;;
14374esac
252b5132 14375
e5a52504 14376
42ecbf5e
DJ
14377 case $INSTALL in
14378 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14379 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
d15b04bd 14380 esac
e5a52504 14381
42ecbf5e
DJ
14382 # Let's still pretend it is `configure' which instantiates (i.e., don't
14383 # use $as_me), people would be surprised to read:
14384 # /* config.h. Generated by config.status. */
14385 if test x"$ac_file" = x-; then
14386 configure_input=
14387 else
14388 configure_input="$ac_file. "
14389 fi
14390 configure_input=$configure_input"Generated from `echo $ac_file_in |
14391 sed 's,.*/,,'` by configure."
14392
14393 # First look for the input files in the build tree, otherwise in the
14394 # src tree.
14395 ac_file_inputs=`IFS=:
14396 for f in $ac_file_in; do
14397 case $f in
14398 -) echo $tmp/stdin ;;
14399 [\\/$]*)
14400 # Absolute (can't be DOS-style, as IFS=:)
14401 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14402echo "$as_me: error: cannot find input file: $f" >&2;}
14403 { (exit 1); exit 1; }; }
14404 echo "$f";;
14405 *) # Relative
14406 if test -f "$f"; then
14407 # Build tree
14408 echo "$f"
14409 elif test -f "$srcdir/$f"; then
14410 # Source tree
14411 echo "$srcdir/$f"
14412 else
14413 # /dev/null tree
14414 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14415echo "$as_me: error: cannot find input file: $f" >&2;}
14416 { (exit 1); exit 1; }; }
14417 fi;;
14418 esac
14419 done` || { (exit 1); exit 1; }
4474d12b
CS
14420
14421 if test x"$ac_file" != x-; then
14422 { echo "$as_me:$LINENO: creating $ac_file" >&5
14423echo "$as_me: creating $ac_file" >&6;}
14424 rm -f "$ac_file"
14425 fi
42ecbf5e
DJ
14426_ACEOF
14427cat >>$CONFIG_STATUS <<_ACEOF
14428 sed "$ac_vpsub
14429$extrasub
14430_ACEOF
14431cat >>$CONFIG_STATUS <<\_ACEOF
14432:t
14433/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14434s,@configure_input@,$configure_input,;t t
14435s,@srcdir@,$ac_srcdir,;t t
14436s,@abs_srcdir@,$ac_abs_srcdir,;t t
14437s,@top_srcdir@,$ac_top_srcdir,;t t
14438s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
14439s,@builddir@,$ac_builddir,;t t
14440s,@abs_builddir@,$ac_abs_builddir,;t t
14441s,@top_builddir@,$ac_top_builddir,;t t
14442s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
14443s,@INSTALL@,$ac_INSTALL,;t t
14444" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
14445 rm -f $tmp/stdin
14446 if test x"$ac_file" != x-; then
14447 mv $tmp/out $ac_file
14448 else
14449 cat $tmp/out
14450 rm -f $tmp/out
14451 fi
14452
14453done
14454_ACEOF
14455cat >>$CONFIG_STATUS <<\_ACEOF
14456
14457#
14458# CONFIG_HEADER section.
14459#
252b5132
RH
14460
14461# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14462# NAME is the cpp macro being defined and VALUE is the value it is being given.
14463#
14464# ac_d sets the value in "#define NAME VALUE" lines.
42ecbf5e
DJ
14465ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14466ac_dB='[ ].*$,\1#\2'
14467ac_dC=' '
14468ac_dD=',;t'
14469# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14470ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14471ac_uB='$,\1#\2define\3'
252b5132 14472ac_uC=' '
42ecbf5e
DJ
14473ac_uD=',;t'
14474
14475for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
252b5132 14476 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42ecbf5e
DJ
14477 case $ac_file in
14478 - | *:- | *:-:* ) # input from stdin
14479 cat >$tmp/stdin
14480 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14481 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14482 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14483 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14484 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
14485 esac
14486
42ecbf5e
DJ
14487 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
14488echo "$as_me: creating $ac_file" >&6;}
14489
14490 # First look for the input files in the build tree, otherwise in the
14491 # src tree.
14492 ac_file_inputs=`IFS=:
14493 for f in $ac_file_in; do
14494 case $f in
14495 -) echo $tmp/stdin ;;
14496 [\\/$]*)
14497 # Absolute (can't be DOS-style, as IFS=:)
14498 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14499echo "$as_me: error: cannot find input file: $f" >&2;}
14500 { (exit 1); exit 1; }; }
14501 # Do quote $f, to prevent DOS paths from being IFS'd.
14502 echo "$f";;
14503 *) # Relative
14504 if test -f "$f"; then
14505 # Build tree
14506 echo "$f"
14507 elif test -f "$srcdir/$f"; then
14508 # Source tree
14509 echo "$srcdir/$f"
14510 else
14511 # /dev/null tree
14512 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14513echo "$as_me: error: cannot find input file: $f" >&2;}
14514 { (exit 1); exit 1; }; }
14515 fi;;
14516 esac
14517 done` || { (exit 1); exit 1; }
14518 # Remove the trailing spaces.
14519 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
14520
14521_ACEOF
14522
14523# Transform confdefs.h into two sed scripts, `conftest.defines' and
14524# `conftest.undefs', that substitutes the proper values into
14525# config.h.in to produce config.h. The first handles `#define'
14526# templates, and the second `#undef' templates.
14527# And first: Protect against being on the right side of a sed subst in
14528# config.status. Protect against being in an unquoted here document
14529# in config.status.
14530rm -f conftest.defines conftest.undefs
14531# Using a here document instead of a string reduces the quoting nightmare.
14532# Putting comments in sed scripts is not portable.
14533#
14534# `end' is used to avoid that the second main sed command (meant for
14535# 0-ary CPP macros) applies to n-ary macro definitions.
14536# See the Autoconf documentation for `clear'.
14537cat >confdef2sed.sed <<\_ACEOF
14538s/[\\&,]/\\&/g
14539s,[\\$`],\\&,g
14540t clear
14541: clear
14542s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
14543t end
14544s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
14545: end
14546_ACEOF
14547# If some macros were called several times there might be several times
14548# the same #defines, which is useless. Nevertheless, we may not want to
14549# sort them, since we want the *last* AC-DEFINE to be honored.
14550uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
14551sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
14552rm -f confdef2sed.sed
252b5132
RH
14553
14554# This sed command replaces #undef with comments. This is necessary, for
14555# example, in the case of _POSIX_SOURCE, which is predefined and required
14556# on some systems where configure will not decide to define it.
42ecbf5e
DJ
14557cat >>conftest.undefs <<\_ACEOF
14558s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
14559_ACEOF
14560
14561# Break up conftest.defines because some shells have a limit on the size
14562# of here documents, and old seds have small limits too (100 cmds).
14563echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
14564echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
14565echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
14566echo ' :' >>$CONFIG_STATUS
14567rm -f conftest.tail
14568while grep . conftest.defines >/dev/null
14569do
14570 # Write a limited-size here document to $tmp/defines.sed.
14571 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
14572 # Speed up: don't consider the non `#define' lines.
14573 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
14574 # Work around the forget-to-reset-the-flag bug.
14575 echo 't clr' >>$CONFIG_STATUS
14576 echo ': clr' >>$CONFIG_STATUS
14577 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
14578 echo 'CEOF
14579 sed -f $tmp/defines.sed $tmp/in >$tmp/out
14580 rm -f $tmp/in
14581 mv $tmp/out $tmp/in
14582' >>$CONFIG_STATUS
14583 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
14584 rm -f conftest.defines
14585 mv conftest.tail conftest.defines
14586done
14587rm -f conftest.defines
14588echo ' fi # grep' >>$CONFIG_STATUS
14589echo >>$CONFIG_STATUS
252b5132 14590
42ecbf5e
DJ
14591# Break up conftest.undefs because some shells have a limit on the size
14592# of here documents, and old seds have small limits too (100 cmds).
14593echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
252b5132 14594rm -f conftest.tail
42ecbf5e 14595while grep . conftest.undefs >/dev/null
252b5132 14596do
42ecbf5e
DJ
14597 # Write a limited-size here document to $tmp/undefs.sed.
14598 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
14599 # Speed up: don't consider the non `#undef'
14600 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
14601 # Work around the forget-to-reset-the-flag bug.
14602 echo 't clr' >>$CONFIG_STATUS
14603 echo ': clr' >>$CONFIG_STATUS
14604 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
252b5132 14605 echo 'CEOF
42ecbf5e
DJ
14606 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
14607 rm -f $tmp/in
14608 mv $tmp/out $tmp/in
14609' >>$CONFIG_STATUS
14610 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
14611 rm -f conftest.undefs
14612 mv conftest.tail conftest.undefs
252b5132 14613done
42ecbf5e
DJ
14614rm -f conftest.undefs
14615
14616cat >>$CONFIG_STATUS <<\_ACEOF
14617 # Let's still pretend it is `configure' which instantiates (i.e., don't
14618 # use $as_me), people would be surprised to read:
14619 # /* config.h. Generated by config.status. */
14620 if test x"$ac_file" = x-; then
14621 echo "/* Generated by configure. */" >$tmp/config.h
252b5132 14622 else
42ecbf5e
DJ
14623 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
14624 fi
14625 cat $tmp/in >>$tmp/config.h
14626 rm -f $tmp/in
14627 if test x"$ac_file" != x-; then
14628 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
14629 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14630echo "$as_me: $ac_file is unchanged" >&6;}
14631 else
14632 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14633$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14634 X"$ac_file" : 'X\(//\)[^/]' \| \
14635 X"$ac_file" : 'X\(//\)$' \| \
14636 X"$ac_file" : 'X\(/\)' \| \
14637 . : '\(.\)' 2>/dev/null ||
14638echo X"$ac_file" |
14639 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14640 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14641 /^X\(\/\/\)$/{ s//\1/; q; }
14642 /^X\(\/\).*/{ s//\1/; q; }
14643 s/.*/./; q'`
14644 { if $as_mkdir_p; then
14645 mkdir -p "$ac_dir"
14646 else
14647 as_dir="$ac_dir"
14648 as_dirs=
14649 while test ! -d "$as_dir"; do
14650 as_dirs="$as_dir $as_dirs"
14651 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14652$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14653 X"$as_dir" : 'X\(//\)[^/]' \| \
14654 X"$as_dir" : 'X\(//\)$' \| \
14655 X"$as_dir" : 'X\(/\)' \| \
14656 . : '\(.\)' 2>/dev/null ||
14657echo X"$as_dir" |
14658 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14659 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14660 /^X\(\/\/\)$/{ s//\1/; q; }
14661 /^X\(\/\).*/{ s//\1/; q; }
14662 s/.*/./; q'`
14663 done
14664 test ! -n "$as_dirs" || mkdir $as_dirs
14665 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14666echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14667 { (exit 1); exit 1; }; }; }
14668
14669 rm -f $ac_file
14670 mv $tmp/config.h $ac_file
252b5132 14671 fi
42ecbf5e
DJ
14672 else
14673 cat $tmp/config.h
14674 rm -f $tmp/config.h
e5a52504 14675 fi
42ecbf5e
DJ
14676# Compute $ac_file's index in $config_headers.
14677_am_stamp_count=1
14678for _am_header in $config_headers :; do
14679 case $_am_header in
14680 $ac_file | $ac_file:* )
14681 break ;;
14682 * )
14683 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14684 esac
14685done
14686echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
14687$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14688 X$ac_file : 'X\(//\)[^/]' \| \
14689 X$ac_file : 'X\(//\)$' \| \
14690 X$ac_file : 'X\(/\)' \| \
14691 . : '\(.\)' 2>/dev/null ||
14692echo X$ac_file |
14693 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14694 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14695 /^X\(\/\/\)$/{ s//\1/; q; }
14696 /^X\(\/\).*/{ s//\1/; q; }
14697 s/.*/./; q'`/stamp-h$_am_stamp_count
14698done
14699_ACEOF
14700cat >>$CONFIG_STATUS <<\_ACEOF
e5a52504 14701
42ecbf5e
DJ
14702#
14703# CONFIG_COMMANDS section.
14704#
14705for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
14706 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
14707 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
14708 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
14709$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14710 X"$ac_dest" : 'X\(//\)[^/]' \| \
14711 X"$ac_dest" : 'X\(//\)$' \| \
14712 X"$ac_dest" : 'X\(/\)' \| \
14713 . : '\(.\)' 2>/dev/null ||
14714echo X"$ac_dest" |
14715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14717 /^X\(\/\/\)$/{ s//\1/; q; }
14718 /^X\(\/\).*/{ s//\1/; q; }
14719 s/.*/./; q'`
14720 { if $as_mkdir_p; then
14721 mkdir -p "$ac_dir"
14722 else
14723 as_dir="$ac_dir"
14724 as_dirs=
14725 while test ! -d "$as_dir"; do
14726 as_dirs="$as_dir $as_dirs"
14727 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14728$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14729 X"$as_dir" : 'X\(//\)[^/]' \| \
14730 X"$as_dir" : 'X\(//\)$' \| \
14731 X"$as_dir" : 'X\(/\)' \| \
14732 . : '\(.\)' 2>/dev/null ||
14733echo X"$as_dir" |
14734 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14735 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14736 /^X\(\/\/\)$/{ s//\1/; q; }
14737 /^X\(\/\).*/{ s//\1/; q; }
14738 s/.*/./; q'`
14739 done
14740 test ! -n "$as_dirs" || mkdir $as_dirs
14741 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14742echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14743 { (exit 1); exit 1; }; }; }
e5a52504 14744
42ecbf5e 14745 ac_builddir=.
e5a52504 14746
42ecbf5e
DJ
14747if test "$ac_dir" != .; then
14748 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14749 # A "../" for each directory in $ac_dir_suffix.
14750 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14751else
14752 ac_dir_suffix= ac_top_builddir=
14753fi
14754
14755case $srcdir in
14756 .) # No --srcdir option. We are building in place.
14757 ac_srcdir=.
14758 if test -z "$ac_top_builddir"; then
14759 ac_top_srcdir=.
14760 else
14761 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14762 fi ;;
14763 [\\/]* | ?:[\\/]* ) # Absolute path.
14764 ac_srcdir=$srcdir$ac_dir_suffix;
14765 ac_top_srcdir=$srcdir ;;
14766 *) # Relative path.
14767 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14768 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14769esac
14770
14771# Do not use `cd foo && pwd` to compute absolute paths, because
14772# the directories may not exist.
14773case `pwd` in
14774.) ac_abs_builddir="$ac_dir";;
14775*)
14776 case "$ac_dir" in
14777 .) ac_abs_builddir=`pwd`;;
14778 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14779 *) ac_abs_builddir=`pwd`/"$ac_dir";;
14780 esac;;
14781esac
14782case $ac_abs_builddir in
14783.) ac_abs_top_builddir=${ac_top_builddir}.;;
14784*)
14785 case ${ac_top_builddir}. in
14786 .) ac_abs_top_builddir=$ac_abs_builddir;;
14787 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14788 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14789 esac;;
14790esac
14791case $ac_abs_builddir in
14792.) ac_abs_srcdir=$ac_srcdir;;
14793*)
14794 case $ac_srcdir in
14795 .) ac_abs_srcdir=$ac_abs_builddir;;
14796 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14797 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14798 esac;;
14799esac
14800case $ac_abs_builddir in
14801.) ac_abs_top_srcdir=$ac_top_srcdir;;
14802*)
14803 case $ac_top_srcdir in
14804 .) ac_abs_top_srcdir=$ac_abs_builddir;;
14805 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14806 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14807 esac;;
14808esac
14809
14810
14811 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
14812echo "$as_me: executing $ac_dest commands" >&6;}
14813 case $ac_dest in
14814 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
14815 # Strip MF so we end up with the name of the file.
14816 mf=`echo "$mf" | sed -e 's/:.*$//'`
14817 # Check whether this is an Automake generated Makefile or not.
14818 # We used to match only the files named `Makefile.in', but
14819 # some people rename them; so instead we look at the file content.
14820 # Grep'ing the first line is not enough: some people post-process
14821 # each Makefile.in and add a new line on top of each file to say so.
14822 # So let's grep whole file.
14823 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
14824 dirpart=`(dirname "$mf") 2>/dev/null ||
14825$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14826 X"$mf" : 'X\(//\)[^/]' \| \
14827 X"$mf" : 'X\(//\)$' \| \
14828 X"$mf" : 'X\(/\)' \| \
14829 . : '\(.\)' 2>/dev/null ||
14830echo X"$mf" |
14831 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14832 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14833 /^X\(\/\/\)$/{ s//\1/; q; }
14834 /^X\(\/\).*/{ s//\1/; q; }
14835 s/.*/./; q'`
14836 else
14837 continue
14838 fi
14839 # Extract the definition of DEPDIR, am__include, and am__quote
14840 # from the Makefile without running `make'.
14841 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14842 test -z "$DEPDIR" && continue
14843 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14844 test -z "am__include" && continue
14845 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14846 # When using ansi2knr, U may be empty or an underscore; expand it
14847 U=`sed -n 's/^U = //p' < "$mf"`
14848 # Find all dependency output files, they are included files with
14849 # $(DEPDIR) in their names. We invoke sed twice because it is the
14850 # simplest approach to changing $(DEPDIR) to its actual value in the
14851 # expansion.
14852 for file in `sed -n "
14853 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14854 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14855 # Make sure the directory exists.
14856 test -f "$dirpart/$file" && continue
14857 fdir=`(dirname "$file") 2>/dev/null ||
14858$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14859 X"$file" : 'X\(//\)[^/]' \| \
14860 X"$file" : 'X\(//\)$' \| \
14861 X"$file" : 'X\(/\)' \| \
14862 . : '\(.\)' 2>/dev/null ||
14863echo X"$file" |
14864 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14865 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14866 /^X\(\/\/\)$/{ s//\1/; q; }
14867 /^X\(\/\).*/{ s//\1/; q; }
14868 s/.*/./; q'`
14869 { if $as_mkdir_p; then
14870 mkdir -p $dirpart/$fdir
14871 else
14872 as_dir=$dirpart/$fdir
14873 as_dirs=
14874 while test ! -d "$as_dir"; do
14875 as_dirs="$as_dir $as_dirs"
14876 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14877$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14878 X"$as_dir" : 'X\(//\)[^/]' \| \
14879 X"$as_dir" : 'X\(//\)$' \| \
14880 X"$as_dir" : 'X\(/\)' \| \
14881 . : '\(.\)' 2>/dev/null ||
14882echo X"$as_dir" |
14883 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14884 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14885 /^X\(\/\/\)$/{ s//\1/; q; }
14886 /^X\(\/\).*/{ s//\1/; q; }
14887 s/.*/./; q'`
14888 done
14889 test ! -n "$as_dirs" || mkdir $as_dirs
14890 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
14891echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
14892 { (exit 1); exit 1; }; }; }
14893
14894 # echo "creating $dirpart/$file"
14895 echo '# dummy' > "$dirpart/$file"
14896 done
14897done
d7040cdb
SE
14898 ;;
14899 libtool )
14900
14901 # See if we are running on zsh, and set the options which allow our
14902 # commands through without removal of \ escapes.
14903 if test -n "${ZSH_VERSION+set}" ; then
14904 setopt NO_GLOB_SUBST
14905 fi
14906
14907 cfgfile="${ofile}T"
14908 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14909 $RM "$cfgfile"
14910
14911 cat <<_LT_EOF >> "$cfgfile"
14912#! $SHELL
14913
14914# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14915# Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
14916# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14917# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14918#
14919# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14920# 2006, 2007 Free Software Foundation, Inc.
14921#
14922# This file is part of GNU Libtool:
14923# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14924#
14925# This program is free software; you can redistribute it and/or modify
14926# it under the terms of the GNU General Public License as published by
67310ccd 14927# the Free Software Foundation; either version 2 of the License, or
d7040cdb
SE
14928# (at your option) any later version.
14929#
14930# This program is distributed in the hope that it will be useful, but
14931# WITHOUT ANY WARRANTY; without even the implied warranty of
14932# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14933# General Public License for more details.
14934#
14935# You should have received a copy of the GNU General Public License
14936# along with this program; if not, a copy can be downloaded from
14937# http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
14938# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
14939# MA 02110-1301, USA.
14940#
14941# As a special exception to the GNU General Public License, if you
14942# distribute this file as part of a program that contains a
14943# configuration script generated by Autoconf, you may include it under
14944# the same distribution terms that you use for the rest of that program.
14945
14946
14947# The names of the tagged configurations supported by this script.
14948available_tags=""
14949
14950# ### BEGIN LIBTOOL CONFIG
14951
14952# Which release of libtool.m4 was used?
14953macro_version=$macro_version
14954macro_revision=$macro_revision
14955
14956# Whether or not to build shared libraries.
14957build_libtool_libs=$enable_shared
14958
14959# Whether or not to build static libraries.
14960build_old_libs=$enable_static
14961
14962# What type of objects to build.
14963pic_mode=$pic_mode
14964
14965# Whether or not to optimize for fast installation.
14966fast_install=$enable_fast_install
14967
14968# The host system.
14969host_alias=$host_alias
14970host=$host
14971host_os=$host_os
14972
14973# The build system.
14974build_alias=$build_alias
14975build=$build
14976build_os=$build_os
14977
14978# A sed program that does not truncate output.
14979SED=$lt_SED
14980
14981# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14982Xsed="\$SED -e 1s/^X//"
14983
14984# A grep program that handles long lines.
14985GREP=$lt_GREP
14986
14987# An ERE matcher.
14988EGREP=$lt_EGREP
14989
14990# A literal string matcher.
14991FGREP=$lt_FGREP
14992
14993# A BSD- or MS-compatible name lister.
14994NM=$lt_NM
14995
14996# Whether we need soft or hard links.
14997LN_S=$lt_LN_S
14998
14999# What is the maximum length of a command?
15000max_cmd_len=$max_cmd_len
15001
15002# Object file suffix (normally "o").
15003objext=$ac_objext
15004
15005# Executable file suffix (normally "").
15006exeext=$exeext
15007
15008# whether the shell understands "unset".
15009lt_unset=$lt_unset
15010
15011# turn spaces into newlines.
15012SP2NL=$lt_lt_SP2NL
15013
15014# turn newlines into spaces.
15015NL2SP=$lt_lt_NL2SP
15016
15017# How to create reloadable object files.
15018reload_flag=$lt_reload_flag
15019reload_cmds=$lt_reload_cmds
15020
15021# Method to check whether dependent libraries are shared objects.
15022deplibs_check_method=$lt_deplibs_check_method
15023
15024# Command to use when deplibs_check_method == "file_magic".
15025file_magic_cmd=$lt_file_magic_cmd
15026
15027# The archiver.
15028AR=$lt_AR
15029AR_FLAGS=$lt_AR_FLAGS
15030
15031# A symbol stripping program.
15032STRIP=$lt_STRIP
15033
15034# Commands used to install an old-style archive.
15035RANLIB=$lt_RANLIB
15036old_postinstall_cmds=$lt_old_postinstall_cmds
15037old_postuninstall_cmds=$lt_old_postuninstall_cmds
15038
15039# A C compiler.
15040LTCC=$lt_CC
15041
15042# LTCC compiler flags.
15043LTCFLAGS=$lt_CFLAGS
15044
15045# Take the output of nm and produce a listing of raw symbols and C names.
15046global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15047
15048# Transform the output of nm in a proper C declaration.
15049global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15050
15051# Transform the output of nm in a C name address pair.
15052global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15053
15054# The name of the directory that contains temporary libtool files.
15055objdir=$objdir
15056
15057# Shell to use when invoking shell scripts.
15058SHELL=$lt_SHELL
15059
15060# An echo program that does not interpret backslashes.
15061ECHO=$lt_ECHO
15062
15063# Used to examine libraries when file_magic_cmd begins with "file".
15064MAGIC_CMD=$MAGIC_CMD
15065
15066# Must we lock files when doing compilation?
15067need_locks=$lt_need_locks
15068
15069# Old archive suffix (normally "a").
15070libext=$libext
15071
15072# Shared library suffix (normally ".so").
15073shrext_cmds=$lt_shrext_cmds
15074
15075# The commands to extract the exported symbol list from a shared archive.
15076extract_expsyms_cmds=$lt_extract_expsyms_cmds
15077
15078# Variables whose values should be saved in libtool wrapper scripts and
15079# restored at link time.
15080variables_saved_for_relink=$lt_variables_saved_for_relink
15081
15082# Do we need the "lib" prefix for modules?
15083need_lib_prefix=$need_lib_prefix
15084
15085# Do we need a version for libraries?
15086need_version=$need_version
15087
15088# Library versioning type.
15089version_type=$version_type
15090
15091# Shared library runtime path variable.
15092runpath_var=$runpath_var
15093
15094# Shared library path variable.
15095shlibpath_var=$shlibpath_var
15096
15097# Is shlibpath searched before the hard-coded library search path?
15098shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15099
15100# Format of library name prefix.
15101libname_spec=$lt_libname_spec
15102
15103# List of archive names. First name is the real one, the rest are links.
15104# The last name is the one that the linker finds with -lNAME
15105library_names_spec=$lt_library_names_spec
15106
15107# The coded name of the library, if different from the real name.
15108soname_spec=$lt_soname_spec
15109
15110# Command to use after installation of a shared archive.
15111postinstall_cmds=$lt_postinstall_cmds
15112
15113# Command to use after uninstallation of a shared archive.
15114postuninstall_cmds=$lt_postuninstall_cmds
15115
15116# Commands used to finish a libtool library installation in a directory.
15117finish_cmds=$lt_finish_cmds
15118
15119# As "finish_cmds", except a single script fragment to be evaled but
15120# not shown.
15121finish_eval=$lt_finish_eval
15122
15123# Whether we should hardcode library paths into libraries.
15124hardcode_into_libs=$hardcode_into_libs
15125
15126# Compile-time system search path for libraries.
15127sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15128
15129# Run-time system search path for libraries.
15130sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15131
15132# Whether dlopen is supported.
15133dlopen_support=$enable_dlopen
15134
15135# Whether dlopen of programs is supported.
15136dlopen_self=$enable_dlopen_self
15137
15138# Whether dlopen of statically linked programs is supported.
15139dlopen_self_static=$enable_dlopen_self_static
15140
15141# Commands to strip libraries.
15142old_striplib=$lt_old_striplib
15143striplib=$lt_striplib
15144
15145
15146# The linker used to build libraries.
15147LD=$lt_LD
15148
15149# Commands used to build an old-style archive.
15150old_archive_cmds=$lt_old_archive_cmds
15151
15152# A language specific compiler.
15153CC=$lt_compiler
15154
15155# Is the compiler the GNU compiler?
15156with_gcc=$GCC
15157
15158# Compiler flag to turn off builtin functions.
15159no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15160
15161# How to pass a linker flag through the compiler.
15162wl=$lt_lt_prog_compiler_wl
15163
15164# Additional compiler flags for building library objects.
15165pic_flag=$lt_lt_prog_compiler_pic
15166
15167# Compiler flag to prevent dynamic linking.
15168link_static_flag=$lt_lt_prog_compiler_static
15169
15170# Does compiler simultaneously support -c and -o options?
15171compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15172
15173# Whether or not to add -lc for building shared libraries.
15174build_libtool_need_lc=$archive_cmds_need_lc
15175
15176# Whether or not to disallow shared libs when runtime libs are static.
15177allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15178
15179# Compiler flag to allow reflexive dlopens.
15180export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15181
15182# Compiler flag to generate shared objects directly from archives.
15183whole_archive_flag_spec=$lt_whole_archive_flag_spec
15184
15185# Whether the compiler copes with passing no objects directly.
15186compiler_needs_object=$lt_compiler_needs_object
15187
15188# Create an old-style archive from a shared archive.
15189old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15190
15191# Create a temporary old-style archive to link instead of a shared archive.
15192old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15193
15194# Commands used to build a shared archive.
15195archive_cmds=$lt_archive_cmds
15196archive_expsym_cmds=$lt_archive_expsym_cmds
15197
15198# Commands used to build a loadable module if different from building
15199# a shared archive.
15200module_cmds=$lt_module_cmds
15201module_expsym_cmds=$lt_module_expsym_cmds
15202
15203# Whether we are building with GNU ld or not.
15204with_gnu_ld=$lt_with_gnu_ld
15205
15206# Flag that allows shared libraries with undefined symbols to be built.
15207allow_undefined_flag=$lt_allow_undefined_flag
15208
15209# Flag that enforces no undefined symbols.
15210no_undefined_flag=$lt_no_undefined_flag
15211
15212# Flag to hardcode \$libdir into a binary during linking.
15213# This must work even if \$libdir does not exist
15214hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15215
15216# If ld is used when linking, flag to hardcode \$libdir into a binary
15217# during linking. This must work even if \$libdir does not exist.
15218hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15219
15220# Whether we need a single "-rpath" flag with a separated argument.
15221hardcode_libdir_separator=$lt_hardcode_libdir_separator
15222
15223# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15224# DIR into the resulting binary.
15225hardcode_direct=$hardcode_direct
15226
15227# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15228# DIR into the resulting binary and the resulting library dependency is
15229# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15230# library is relocated.
15231hardcode_direct_absolute=$hardcode_direct_absolute
15232
15233# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15234# into the resulting binary.
15235hardcode_minus_L=$hardcode_minus_L
15236
15237# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15238# into the resulting binary.
15239hardcode_shlibpath_var=$hardcode_shlibpath_var
15240
15241# Set to "yes" if building a shared library automatically hardcodes DIR
15242# into the library and all subsequent libraries and executables linked
15243# against it.
15244hardcode_automatic=$hardcode_automatic
15245
15246# Set to yes if linker adds runtime paths of dependent libraries
15247# to runtime path list.
15248inherit_rpath=$inherit_rpath
15249
15250# Whether libtool must link a program against all its dependency libraries.
15251link_all_deplibs=$link_all_deplibs
15252
15253# Fix the shell variable \$srcfile for the compiler.
15254fix_srcfile_path=$lt_fix_srcfile_path
15255
15256# Set to "yes" if exported symbols are required.
15257always_export_symbols=$always_export_symbols
15258
15259# The commands to list exported symbols.
15260export_symbols_cmds=$lt_export_symbols_cmds
15261
15262# Symbols that should not be listed in the preloaded symbols.
15263exclude_expsyms=$lt_exclude_expsyms
15264
15265# Symbols that must always be exported.
15266include_expsyms=$lt_include_expsyms
15267
15268# Commands necessary for linking programs (against libraries) with templates.
15269prelink_cmds=$lt_prelink_cmds
15270
15271# Specify filename containing input files.
15272file_list_spec=$lt_file_list_spec
15273
15274# How to hardcode a shared library path into an executable.
15275hardcode_action=$hardcode_action
15276
15277# ### END LIBTOOL CONFIG
15278
15279_LT_EOF
15280
15281 case $host_os in
15282 aix3*)
15283 cat <<\_LT_EOF >> "$cfgfile"
15284# AIX sometimes has problems with the GCC collect2 program. For some
15285# reason, if we set the COLLECT_NAMES environment variable, the problems
15286# vanish in a puff of smoke.
15287if test "X${COLLECT_NAMES+set}" != Xset; then
15288 COLLECT_NAMES=
15289 export COLLECT_NAMES
15290fi
15291_LT_EOF
15292 ;;
15293 esac
15294
15295
15296ltmain="$ac_aux_dir/ltmain.sh"
15297
15298
15299 # We use sed instead of cat because bash on DJGPP gets confused if
15300 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15301 # text mode, it properly converts lines to CR/LF. This bash problem
15302 # is reportedly fixed, but why not run on old versions too?
15303 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15304 || (rm -f "$cfgfile"; exit 1)
15305
15306 case $xsi_shell in
15307 yes)
15308 cat << \_LT_EOF >> "$cfgfile"
15309# func_dirname file append nondir_replacement
15310# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15311# otherwise set result to NONDIR_REPLACEMENT.
15312func_dirname ()
15313{
15314 case ${1} in
15315 */*) func_dirname_result="${1%/*}${2}" ;;
15316 * ) func_dirname_result="${3}" ;;
15317 esac
15318}
15319
15320# func_basename file
15321func_basename ()
15322{
15323 func_basename_result="${1##*/}"
15324}
15325
15326# func_stripname prefix suffix name
15327# strip PREFIX and SUFFIX off of NAME.
15328# PREFIX and SUFFIX must not contain globbing or regex special
15329# characters, hashes, percent signs, but SUFFIX may contain a leading
15330# dot (in which case that matches only a dot).
15331func_stripname ()
15332{
15333 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15334 # positional parameters, so assign one to ordinary parameter first.
15335 func_stripname_result=${3}
15336 func_stripname_result=${func_stripname_result#"${1}"}
15337 func_stripname_result=${func_stripname_result%"${2}"}
15338}
15339
15340# func_opt_split
15341func_opt_split ()
15342{
15343 func_opt_split_opt=${1%%=*}
15344 func_opt_split_arg=${1#*=}
15345}
15346
15347# func_lo2o object
15348func_lo2o ()
15349{
15350 case ${1} in
15351 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15352 *) func_lo2o_result=${1} ;;
15353 esac
15354}
15355_LT_EOF
15356 ;;
15357 *) # Bourne compatible functions.
15358 cat << \_LT_EOF >> "$cfgfile"
15359# func_dirname file append nondir_replacement
15360# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15361# otherwise set result to NONDIR_REPLACEMENT.
15362func_dirname ()
15363{
15364 # Extract subdirectory from the argument.
15365 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15366 if test "X$func_dirname_result" = "X${1}"; then
15367 func_dirname_result="${3}"
15368 else
15369 func_dirname_result="$func_dirname_result${2}"
15370 fi
15371}
15372
15373# func_basename file
15374func_basename ()
15375{
15376 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15377}
15378
15379# func_stripname prefix suffix name
15380# strip PREFIX and SUFFIX off of NAME.
15381# PREFIX and SUFFIX must not contain globbing or regex special
15382# characters, hashes, percent signs, but SUFFIX may contain a leading
15383# dot (in which case that matches only a dot).
15384# func_strip_suffix prefix name
15385func_stripname ()
15386{
15387 case ${2} in
15388 .*) func_stripname_result=`$ECHO "X${3}" \
15389 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15390 *) func_stripname_result=`$ECHO "X${3}" \
15391 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15392 esac
15393}
15394
15395# sed scripts:
15396my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15397my_sed_long_arg='1s/^-[^=]*=//'
15398
15399# func_opt_split
15400func_opt_split ()
15401{
15402 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15403 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15404}
15405
15406# func_lo2o object
15407func_lo2o ()
15408{
15409 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15410}
15411_LT_EOF
15412esac
15413
15414case $lt_shell_append in
15415 yes)
15416 cat << \_LT_EOF >> "$cfgfile"
15417
15418# func_append var value
15419# Append VALUE to the end of shell variable VAR.
15420func_append ()
15421{
15422 eval "$1+=\$2"
15423}
15424_LT_EOF
15425 ;;
15426 *)
15427 cat << \_LT_EOF >> "$cfgfile"
15428
15429# func_append var value
15430# Append VALUE to the end of shell variable VAR.
15431func_append ()
15432{
15433 eval "$1=\$$1\$2"
15434}
15435_LT_EOF
15436 ;;
15437 esac
15438
15439
15440 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15441 || (rm -f "$cfgfile"; exit 1)
15442
15443 mv -f "$cfgfile" "$ofile" ||
15444 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15445 chmod +x "$ofile"
15446
42ecbf5e 15447 ;;
20e95c23
DJ
15448 default-1 )
15449 for ac_file in $CONFIG_FILES; do
15450 # Support "outfile[:infile[:infile...]]"
15451 case "$ac_file" in
15452 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15453 esac
15454 # PO directories have a Makefile.in generated from Makefile.in.in.
15455 case "$ac_file" in */Makefile.in)
15456 # Adjust a relative srcdir.
15457 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15458 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
15459 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15460 # In autoconf-2.13 it is called $ac_given_srcdir.
15461 # In autoconf-2.50 it is called $srcdir.
15462 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15463 case "$ac_given_srcdir" in
15464 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15465 /*) top_srcdir="$ac_given_srcdir" ;;
15466 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
15467 esac
15468 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15469 rm -f "$ac_dir/POTFILES"
15470 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15471 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
15472 POMAKEFILEDEPS="POTFILES.in"
15473 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
15474 # on $ac_dir but don't depend on user-specified configuration
15475 # parameters.
15476 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15477 # The LINGUAS file contains the set of available languages.
15478 if test -n "$OBSOLETE_ALL_LINGUAS"; then
15479 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15480 fi
15481 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15482 # Hide the ALL_LINGUAS assigment from automake.
15483 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15484 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15485 else
15486 # The set of available languages was given in configure.in.
15487 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15488 fi
15489 case "$ac_given_srcdir" in
15490 .) srcdirpre= ;;
15491 *) srcdirpre='$(srcdir)/' ;;
15492 esac
15493 POFILES=
15494 GMOFILES=
15495 UPDATEPOFILES=
15496 DUMMYPOFILES=
15497 for lang in $ALL_LINGUAS; do
15498 POFILES="$POFILES $srcdirpre$lang.po"
15499 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
15500 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15501 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
15502 done
15503 # CATALOGS depends on both $ac_dir and the user's LINGUAS
15504 # environment variable.
15505 INST_LINGUAS=
15506 if test -n "$ALL_LINGUAS"; then
15507 for presentlang in $ALL_LINGUAS; do
15508 useit=no
15509 if test "%UNSET%" != "$LINGUAS"; then
15510 desiredlanguages="$LINGUAS"
15511 else
15512 desiredlanguages="$ALL_LINGUAS"
15513 fi
15514 for desiredlang in $desiredlanguages; do
15515 # Use the presentlang catalog if desiredlang is
15516 # a. equal to presentlang, or
15517 # b. a variant of presentlang (because in this case,
15518 # presentlang can be used as a fallback for messages
15519 # which are not translated in the desiredlang catalog).
15520 case "$desiredlang" in
15521 "$presentlang"*) useit=yes;;
15522 esac
15523 done
15524 if test $useit = yes; then
15525 INST_LINGUAS="$INST_LINGUAS $presentlang"
15526 fi
15527 done
15528 fi
15529 CATALOGS=
15530 if test -n "$INST_LINGUAS"; then
15531 for lang in $INST_LINGUAS; do
15532 CATALOGS="$CATALOGS $lang.gmo"
15533 done
15534 fi
15535 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
15536 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"
15537 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15538 if test -f "$f"; then
15539 case "$f" in
15540 *.orig | *.bak | *~) ;;
15541 *) cat "$f" >> "$ac_dir/Makefile" ;;
15542 esac
15543 fi
15544 done
15545 fi
15546 ;;
15547 esac
15548 done ;;
42ecbf5e
DJ
15549 esac
15550done
15551_ACEOF
15552
15553cat >>$CONFIG_STATUS <<\_ACEOF
15554
15555{ (exit 0); exit 0; }
15556_ACEOF
252b5132 15557chmod +x $CONFIG_STATUS
42ecbf5e
DJ
15558ac_clean_files=$ac_clean_files_save
15559
15560
15561# configure is writing to config.log, and then calls config.status.
15562# config.status does its own redirection, appending to config.log.
15563# Unfortunately, on DOS this fails, as config.log is still kept open
15564# by configure, so config.status won't be able to write to it; its
15565# output is simply discarded. So we exec the FD to /dev/null,
15566# effectively closing config.log, so it can be properly (re)opened and
15567# appended to by config.status. When coming back to configure, we
15568# need to make the FD available again.
15569if test "$no_create" != yes; then
15570 ac_cs_success=:
15571 ac_config_status_args=
15572 test "$silent" = yes &&
15573 ac_config_status_args="$ac_config_status_args --quiet"
15574 exec 5>/dev/null
15575 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15576 exec 5>>config.log
15577 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15578 # would make configure fail if this is the last instruction.
15579 $ac_cs_success || { (exit 1); exit 1; }
15580fi
252b5132 15581