2008-07-11 H.J. Lu <hongjiu.lu@intel.com>
[deliverable/binutils-gdb.git] / ld / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
42ecbf5e 3# Generated by GNU Autoconf 2.59.
252b5132 4#
42ecbf5e 5# Copyright (C) 2003 Free Software Foundation, Inc.
252b5132
RH
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
42ecbf5e
DJ
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
d7040cdb
SE
244
245# Check that we are running under the correct shell.
246SHELL=${CONFIG_SHELL-/bin/sh}
247
248case X$lt_ECHO in
249X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
252 ;;
253esac
254
255ECHO=${lt_ECHO-echo}
256if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
258 shift
259elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
261 :
262elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $ECHO works!
264 :
265else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
268fi
269
270if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
272 shift
273 cat <<_LT_EOF
274$*
275_LT_EOF
276 exit 0
277fi
278
279# The HP-UX ksh and POSIX shell print the target directory to stdout
280# if CDPATH is set.
281(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
282
283if test -z "$lt_ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
289 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
290 then
291 break
292 fi
293 done
294 fi
295
296 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
297 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
298 test "X$echo_testing_string" = "X$echo_test_string"; then
299 :
300 else
301 # The Solaris, AIX, and Digital Unix default echo programs unquote
302 # backslashes. This makes it impossible to quote backslashes using
303 # echo "$something" | sed 's/\\/\\\\/g'
304 #
305 # So, first we look for a working echo in the user's PATH.
306
307 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
308 for dir in $PATH /usr/ucb; do
309 IFS="$lt_save_ifs"
310 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
311 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313 test "X$echo_testing_string" = "X$echo_test_string"; then
314 ECHO="$dir/echo"
315 break
316 fi
317 done
318 IFS="$lt_save_ifs"
319
320 if test "X$ECHO" = Xecho; then
321 # We didn't find a better echo, so look for alternatives.
322 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
323 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
324 test "X$echo_testing_string" = "X$echo_test_string"; then
325 # This shell has a builtin print -r that does the trick.
326 ECHO='print -r'
327 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
328 test "X$CONFIG_SHELL" != X/bin/ksh; then
329 # If we have ksh, try running configure again with it.
330 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
331 export ORIGINAL_CONFIG_SHELL
332 CONFIG_SHELL=/bin/ksh
333 export CONFIG_SHELL
334 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
335 else
336 # Try using printf.
337 ECHO='printf %s\n'
338 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
339 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
340 test "X$echo_testing_string" = "X$echo_test_string"; then
341 # Cool, printf works
342 :
343 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344 test "X$echo_testing_string" = 'X\t' &&
345 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346 test "X$echo_testing_string" = "X$echo_test_string"; then
347 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
348 export CONFIG_SHELL
349 SHELL="$CONFIG_SHELL"
350 export SHELL
351 ECHO="$CONFIG_SHELL $0 --fallback-echo"
352 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353 test "X$echo_testing_string" = 'X\t' &&
354 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355 test "X$echo_testing_string" = "X$echo_test_string"; then
356 ECHO="$CONFIG_SHELL $0 --fallback-echo"
357 else
358 # maybe with a smaller string...
359 prev=:
360
361 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
363 then
364 break
365 fi
366 prev="$cmd"
367 done
368
369 if test "$prev" != 'sed 50q "$0"'; then
370 echo_test_string=`eval $prev`
371 export echo_test_string
372 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
373 else
374 # Oops. We lost completely, so just stick with echo.
375 ECHO=echo
376 fi
377 fi
378 fi
379 fi
380 fi
381fi
382
383# Copy echo and quote the copy suitably for passing to libtool from
384# the Makefile, instead of quoting the original, which is used later.
385lt_ECHO=$ECHO
386if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
388fi
389
390
391
392
42ecbf5e
DJ
393# Name of the host.
394# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395# so uname gets run too.
396ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
252b5132 397
42ecbf5e
DJ
398exec 6>&1
399
400#
401# Initializations.
402#
252b5132 403ac_default_prefix=/usr/local
42ecbf5e
DJ
404ac_config_libobj_dir=.
405cross_compiling=no
406subdirs=
407MFLAGS=
408MAKEFLAGS=
409SHELL=${CONFIG_SHELL-/bin/sh}
410
411# Maximum number of lines to put in a shell here document.
412# This variable seems obsolete. It should probably be removed, and
413# only ac_max_sed_lines should be used.
414: ${ac_max_here_lines=38}
415
416# Identity of this package.
417PACKAGE_NAME=
418PACKAGE_TARNAME=
419PACKAGE_VERSION=
420PACKAGE_STRING=
421PACKAGE_BUGREPORT=
422
423ac_unique_file="ldmain.c"
424# Factoring default headers for most tests.
425ac_includes_default="\
426#include <stdio.h>
427#if HAVE_SYS_TYPES_H
428# include <sys/types.h>
429#endif
430#if HAVE_SYS_STAT_H
431# include <sys/stat.h>
432#endif
433#if STDC_HEADERS
434# include <stdlib.h>
435# include <stddef.h>
436#else
437# if HAVE_STDLIB_H
438# include <stdlib.h>
439# endif
440#endif
441#if HAVE_STRING_H
442# if !STDC_HEADERS && HAVE_MEMORY_H
443# include <memory.h>
444# endif
445# include <string.h>
446#endif
447#if HAVE_STRINGS_H
448# include <strings.h>
449#endif
450#if HAVE_INTTYPES_H
451# include <inttypes.h>
452#else
453# if HAVE_STDINT_H
454# include <stdint.h>
455# endif
456#endif
457#if HAVE_UNISTD_H
458# include <unistd.h>
459#endif"
460
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
502bdb00 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); } &&
502bdb00
JW
2178 { ac_try='test -z "$ac_c_werror_flag"
2179 || test ! -s conftest.err'
42ecbf5e
DJ
2180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2181 (eval $ac_try) 2>&5
2182 ac_status=$?
2183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184 (exit $ac_status); }; } &&
2185 { ac_try='test -s conftest.$ac_objext'
2186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2187 (eval $ac_try) 2>&5
2188 ac_status=$?
2189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190 (exit $ac_status); }; }; then
2191 ac_compiler_gnu=yes
2192else
2193 echo "$as_me: failed program was:" >&5
2194sed 's/^/| /' conftest.$ac_ext >&5
2195
2196ac_compiler_gnu=no
2197fi
2198rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2199ac_cv_c_compiler_gnu=$ac_compiler_gnu
2200
2201fi
2202echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2203echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2204GCC=`test $ac_compiler_gnu = yes && echo yes`
2205ac_test_CFLAGS=${CFLAGS+set}
2206ac_save_CFLAGS=$CFLAGS
2207CFLAGS="-g"
2208echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2209echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2210if test "${ac_cv_prog_cc_g+set}" = set; then
2211 echo $ECHO_N "(cached) $ECHO_C" >&6
2212else
2213 cat >conftest.$ac_ext <<_ACEOF
2214/* confdefs.h. */
2215_ACEOF
2216cat confdefs.h >>conftest.$ac_ext
2217cat >>conftest.$ac_ext <<_ACEOF
2218/* end confdefs.h. */
2219
2220int
2221main ()
2222{
2223
2224 ;
2225 return 0;
2226}
2227_ACEOF
2228rm -f conftest.$ac_objext
2229if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2230 (eval $ac_compile) 2>conftest.er1
2231 ac_status=$?
2232 grep -v '^ *+' conftest.er1 >conftest.err
2233 rm -f conftest.er1
2234 cat conftest.err >&5
2235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2236 (exit $ac_status); } &&
502bdb00
JW
2237 { ac_try='test -z "$ac_c_werror_flag"
2238 || test ! -s conftest.err'
42ecbf5e
DJ
2239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2240 (eval $ac_try) 2>&5
2241 ac_status=$?
2242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243 (exit $ac_status); }; } &&
2244 { ac_try='test -s conftest.$ac_objext'
2245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2246 (eval $ac_try) 2>&5
2247 ac_status=$?
2248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2249 (exit $ac_status); }; }; then
2250 ac_cv_prog_cc_g=yes
2251else
2252 echo "$as_me: failed program was:" >&5
2253sed 's/^/| /' conftest.$ac_ext >&5
2254
2255ac_cv_prog_cc_g=no
2256fi
2257rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2258fi
2259echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2260echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2261if test "$ac_test_CFLAGS" = set; then
2262 CFLAGS=$ac_save_CFLAGS
2263elif test $ac_cv_prog_cc_g = yes; then
2264 if test "$GCC" = yes; then
2265 CFLAGS="-g -O2"
2266 else
2267 CFLAGS="-g"
2268 fi
2269else
2270 if test "$GCC" = yes; then
2271 CFLAGS="-O2"
2272 else
2273 CFLAGS=
2274 fi
2275fi
2276echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2277echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2278if test "${ac_cv_prog_cc_stdc+set}" = set; then
2279 echo $ECHO_N "(cached) $ECHO_C" >&6
2280else
2281 ac_cv_prog_cc_stdc=no
2282ac_save_CC=$CC
2283cat >conftest.$ac_ext <<_ACEOF
2284/* confdefs.h. */
2285_ACEOF
2286cat confdefs.h >>conftest.$ac_ext
2287cat >>conftest.$ac_ext <<_ACEOF
2288/* end confdefs.h. */
2289#include <stdarg.h>
2290#include <stdio.h>
2291#include <sys/types.h>
2292#include <sys/stat.h>
2293/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2294struct buf { int x; };
2295FILE * (*rcsopen) (struct buf *, struct stat *, int);
2296static char *e (p, i)
2297 char **p;
2298 int i;
2299{
2300 return p[i];
2301}
2302static char *f (char * (*g) (char **, int), char **p, ...)
2303{
2304 char *s;
2305 va_list v;
2306 va_start (v,p);
2307 s = g (p, va_arg (v,int));
2308 va_end (v);
2309 return s;
2310}
2311
2312/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2313 function prototypes and stuff, but not '\xHH' hex character constants.
2314 These don't provoke an error unfortunately, instead are silently treated
2315 as 'x'. The following induces an error, until -std1 is added to get
2316 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2317 array size at least. It's necessary to write '\x00'==0 to get something
2318 that's true only with -std1. */
2319int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2320
2321int test (int i, double x);
2322struct s1 {int (*f) (int a);};
2323struct s2 {int (*f) (double a);};
2324int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2325int argc;
2326char **argv;
2327int
2328main ()
2329{
2330return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2331 ;
2332 return 0;
2333}
2334_ACEOF
2335# Don't try gcc -ansi; that turns off useful extensions and
2336# breaks some systems' header files.
2337# AIX -qlanglvl=ansi
2338# Ultrix and OSF/1 -std1
2339# HP-UX 10.20 and later -Ae
2340# HP-UX older versions -Aa -D_HPUX_SOURCE
2341# SVR4 -Xc -D__EXTENSIONS__
2342for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2343do
2344 CC="$ac_save_CC $ac_arg"
2345 rm -f conftest.$ac_objext
2346if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2347 (eval $ac_compile) 2>conftest.er1
2348 ac_status=$?
2349 grep -v '^ *+' conftest.er1 >conftest.err
2350 rm -f conftest.er1
2351 cat conftest.err >&5
2352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2353 (exit $ac_status); } &&
502bdb00
JW
2354 { ac_try='test -z "$ac_c_werror_flag"
2355 || test ! -s conftest.err'
42ecbf5e
DJ
2356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2357 (eval $ac_try) 2>&5
2358 ac_status=$?
2359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360 (exit $ac_status); }; } &&
2361 { ac_try='test -s conftest.$ac_objext'
2362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2363 (eval $ac_try) 2>&5
2364 ac_status=$?
2365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366 (exit $ac_status); }; }; then
2367 ac_cv_prog_cc_stdc=$ac_arg
2368break
2369else
2370 echo "$as_me: failed program was:" >&5
2371sed 's/^/| /' conftest.$ac_ext >&5
2372
2373fi
2374rm -f conftest.err conftest.$ac_objext
2375done
2376rm -f conftest.$ac_ext conftest.$ac_objext
2377CC=$ac_save_CC
2378
2379fi
2380
2381case "x$ac_cv_prog_cc_stdc" in
2382 x|xno)
2383 echo "$as_me:$LINENO: result: none needed" >&5
2384echo "${ECHO_T}none needed" >&6 ;;
2385 *)
2386 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2387echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2388 CC="$CC $ac_cv_prog_cc_stdc" ;;
2389esac
2390
2391# Some people use a C++ compiler to compile C. Since we use `exit',
2392# in C++ we need to declare it. In case someone uses the same compiler
2393# for both compiling C and C++ we need to have the C++ compiler decide
2394# the declaration of exit, since it's the most demanding environment.
2395cat >conftest.$ac_ext <<_ACEOF
2396#ifndef __cplusplus
2397 choke me
2398#endif
2399_ACEOF
2400rm -f conftest.$ac_objext
2401if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2402 (eval $ac_compile) 2>conftest.er1
2403 ac_status=$?
2404 grep -v '^ *+' conftest.er1 >conftest.err
2405 rm -f conftest.er1
2406 cat conftest.err >&5
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); } &&
502bdb00
JW
2409 { ac_try='test -z "$ac_c_werror_flag"
2410 || test ! -s conftest.err'
42ecbf5e
DJ
2411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2412 (eval $ac_try) 2>&5
2413 ac_status=$?
2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415 (exit $ac_status); }; } &&
2416 { ac_try='test -s conftest.$ac_objext'
2417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2418 (eval $ac_try) 2>&5
2419 ac_status=$?
2420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421 (exit $ac_status); }; }; then
2422 for ac_declaration in \
2423 '' \
2424 'extern "C" void std::exit (int) throw (); using std::exit;' \
2425 'extern "C" void std::exit (int); using std::exit;' \
2426 'extern "C" void exit (int) throw ();' \
2427 'extern "C" void exit (int);' \
2428 'void exit (int);'
2429do
2430 cat >conftest.$ac_ext <<_ACEOF
2431/* confdefs.h. */
2432_ACEOF
2433cat confdefs.h >>conftest.$ac_ext
2434cat >>conftest.$ac_ext <<_ACEOF
2435/* end confdefs.h. */
2436$ac_declaration
2437#include <stdlib.h>
2438int
2439main ()
2440{
2441exit (42);
2442 ;
2443 return 0;
2444}
2445_ACEOF
2446rm -f conftest.$ac_objext
2447if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2448 (eval $ac_compile) 2>conftest.er1
2449 ac_status=$?
2450 grep -v '^ *+' conftest.er1 >conftest.err
2451 rm -f conftest.er1
2452 cat conftest.err >&5
2453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454 (exit $ac_status); } &&
502bdb00
JW
2455 { ac_try='test -z "$ac_c_werror_flag"
2456 || test ! -s conftest.err'
42ecbf5e
DJ
2457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2458 (eval $ac_try) 2>&5
2459 ac_status=$?
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); }; } &&
2462 { ac_try='test -s conftest.$ac_objext'
2463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2464 (eval $ac_try) 2>&5
2465 ac_status=$?
2466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467 (exit $ac_status); }; }; then
2468 :
2469else
2470 echo "$as_me: failed program was:" >&5
2471sed 's/^/| /' conftest.$ac_ext >&5
2472
2473continue
2474fi
2475rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2476 cat >conftest.$ac_ext <<_ACEOF
2477/* confdefs.h. */
2478_ACEOF
2479cat confdefs.h >>conftest.$ac_ext
2480cat >>conftest.$ac_ext <<_ACEOF
2481/* end confdefs.h. */
2482$ac_declaration
2483int
2484main ()
2485{
2486exit (42);
2487 ;
2488 return 0;
2489}
2490_ACEOF
2491rm -f conftest.$ac_objext
2492if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2493 (eval $ac_compile) 2>conftest.er1
2494 ac_status=$?
2495 grep -v '^ *+' conftest.er1 >conftest.err
2496 rm -f conftest.er1
2497 cat conftest.err >&5
2498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499 (exit $ac_status); } &&
502bdb00
JW
2500 { ac_try='test -z "$ac_c_werror_flag"
2501 || test ! -s conftest.err'
42ecbf5e
DJ
2502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2503 (eval $ac_try) 2>&5
2504 ac_status=$?
2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506 (exit $ac_status); }; } &&
2507 { ac_try='test -s conftest.$ac_objext'
2508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2509 (eval $ac_try) 2>&5
2510 ac_status=$?
2511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512 (exit $ac_status); }; }; then
2513 break
2514else
2515 echo "$as_me: failed program was:" >&5
2516sed 's/^/| /' conftest.$ac_ext >&5
2517
2518fi
2519rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2520done
2521rm -f conftest*
2522if test -n "$ac_declaration"; then
2523 echo '#ifdef __cplusplus' >>confdefs.h
2524 echo $ac_declaration >>confdefs.h
2525 echo '#endif' >>confdefs.h
2526fi
2527
2528else
2529 echo "$as_me: failed program was:" >&5
2530sed 's/^/| /' conftest.$ac_ext >&5
2531
2532fi
2533rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2534ac_ext=c
2535ac_cpp='$CPP $CPPFLAGS'
2536ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2537ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2538ac_compiler_gnu=$ac_cv_c_compiler_gnu
2539
2540
2541echo "$as_me:$LINENO: checking for library containing strerror" >&5
2542echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2543if test "${ac_cv_search_strerror+set}" = set; then
2544 echo $ECHO_N "(cached) $ECHO_C" >&6
2545else
2546 ac_func_search_save_LIBS=$LIBS
2547ac_cv_search_strerror=no
2548cat >conftest.$ac_ext <<_ACEOF
2549/* confdefs.h. */
2550_ACEOF
2551cat confdefs.h >>conftest.$ac_ext
2552cat >>conftest.$ac_ext <<_ACEOF
2553/* end confdefs.h. */
2554
2555/* Override any gcc2 internal prototype to avoid an error. */
2556#ifdef __cplusplus
2557extern "C"
2558#endif
2559/* We use char because int might match the return type of a gcc2
2560 builtin and then its argument prototype would still apply. */
2561char strerror ();
2562int
2563main ()
2564{
2565strerror ();
2566 ;
2567 return 0;
2568}
2569_ACEOF
2570rm -f conftest.$ac_objext conftest$ac_exeext
2571if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2572 (eval $ac_link) 2>conftest.er1
2573 ac_status=$?
2574 grep -v '^ *+' conftest.er1 >conftest.err
2575 rm -f conftest.er1
2576 cat conftest.err >&5
2577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578 (exit $ac_status); } &&
502bdb00
JW
2579 { ac_try='test -z "$ac_c_werror_flag"
2580 || test ! -s conftest.err'
42ecbf5e
DJ
2581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2582 (eval $ac_try) 2>&5
2583 ac_status=$?
2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585 (exit $ac_status); }; } &&
2586 { ac_try='test -s conftest$ac_exeext'
2587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2588 (eval $ac_try) 2>&5
2589 ac_status=$?
2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591 (exit $ac_status); }; }; then
2592 ac_cv_search_strerror="none required"
2593else
2594 echo "$as_me: failed program was:" >&5
2595sed 's/^/| /' conftest.$ac_ext >&5
2596
2597fi
2598rm -f conftest.err conftest.$ac_objext \
2599 conftest$ac_exeext conftest.$ac_ext
2600if test "$ac_cv_search_strerror" = no; then
2601 for ac_lib in cposix; do
2602 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2603 cat >conftest.$ac_ext <<_ACEOF
2604/* confdefs.h. */
2605_ACEOF
2606cat confdefs.h >>conftest.$ac_ext
2607cat >>conftest.$ac_ext <<_ACEOF
2608/* end confdefs.h. */
2609
2610/* Override any gcc2 internal prototype to avoid an error. */
2611#ifdef __cplusplus
2612extern "C"
2613#endif
2614/* We use char because int might match the return type of a gcc2
2615 builtin and then its argument prototype would still apply. */
2616char strerror ();
2617int
2618main ()
2619{
2620strerror ();
2621 ;
2622 return 0;
2623}
2624_ACEOF
2625rm -f conftest.$ac_objext conftest$ac_exeext
2626if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2627 (eval $ac_link) 2>conftest.er1
2628 ac_status=$?
2629 grep -v '^ *+' conftest.er1 >conftest.err
2630 rm -f conftest.er1
2631 cat conftest.err >&5
2632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633 (exit $ac_status); } &&
502bdb00
JW
2634 { ac_try='test -z "$ac_c_werror_flag"
2635 || test ! -s conftest.err'
42ecbf5e
DJ
2636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2637 (eval $ac_try) 2>&5
2638 ac_status=$?
2639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640 (exit $ac_status); }; } &&
2641 { ac_try='test -s conftest$ac_exeext'
2642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2643 (eval $ac_try) 2>&5
2644 ac_status=$?
2645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646 (exit $ac_status); }; }; then
2647 ac_cv_search_strerror="-l$ac_lib"
2648break
2649else
2650 echo "$as_me: failed program was:" >&5
2651sed 's/^/| /' conftest.$ac_ext >&5
2652
2653fi
2654rm -f conftest.err conftest.$ac_objext \
2655 conftest$ac_exeext conftest.$ac_ext
2656 done
2657fi
2658LIBS=$ac_func_search_save_LIBS
2659fi
2660echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2661echo "${ECHO_T}$ac_cv_search_strerror" >&6
2662if test "$ac_cv_search_strerror" != no; then
2663 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2664
2665fi
e5a52504
MM
2666
2667
2668BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
42ecbf5e 2669am__api_version="1.9"
e5a52504
MM
2670# Find a good install program. We prefer a C program (faster),
2671# so one script is as good as another. But avoid the broken or
2672# incompatible versions:
2673# SysV /etc/install, /usr/sbin/install
2674# SunOS /usr/etc/install
2675# IRIX /sbin/install
2676# AIX /bin/install
42ecbf5e 2677# AmigaOS /C/install, which installs bootblocks on floppy discs
e5a52504
MM
2678# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2679# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2680# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
42ecbf5e 2681# OS/2's system install, which has a completely different semantic
e5a52504 2682# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 2683# Reject install programs that cannot install multiple files.
42ecbf5e
DJ
2684echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2685echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
e5a52504 2686if test -z "$INSTALL"; then
42ecbf5e
DJ
2687if test "${ac_cv_path_install+set}" = set; then
2688 echo $ECHO_N "(cached) $ECHO_C" >&6
e5a52504 2689else
42ecbf5e
DJ
2690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691for as_dir in $PATH
2692do
2693 IFS=$as_save_IFS
2694 test -z "$as_dir" && as_dir=.
2695 # Account for people who put trailing slashes in PATH elements.
2696case $as_dir/ in
2697 ./ | .// | /cC/* | \
2698 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2699 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2700 /usr/ucb/* ) ;;
2701 *)
2702 # OSF1 and SCO ODT 3.0 have their own names for install.
2703 # Don't use installbsd from OSF since it installs stuff as root
2704 # by default.
2705 for ac_prog in ginstall scoinst install; do
2706 for ac_exec_ext in '' $ac_executable_extensions; do
2707 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
252b5132 2708 if test $ac_prog = install &&
42ecbf5e 2709 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
2710 # AIX install. It has an incompatible calling convention.
2711 :
42ecbf5e
DJ
2712 elif test $ac_prog = install &&
2713 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2714 # program-specific install script used by HP pwplus--don't use.
2715 :
252b5132 2716 else
58c85be7
RW
2717 rm -rf conftest.one conftest.two conftest.dir
2718 echo one > conftest.one
2719 echo two > conftest.two
2720 mkdir conftest.dir
2721 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2722 test -s conftest.one && test -s conftest.two &&
2723 test -s conftest.dir/conftest.one &&
2724 test -s conftest.dir/conftest.two
2725 then
2726 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2727 break 3
2728 fi
252b5132
RH
2729 fi
2730 fi
2731 done
42ecbf5e
DJ
2732 done
2733 ;;
2734esac
2735done
2736
58c85be7 2737rm -rf conftest.one conftest.two conftest.dir
252b5132
RH
2738
2739fi
2740 if test "${ac_cv_path_install+set}" = set; then
42ecbf5e 2741 INSTALL=$ac_cv_path_install
252b5132 2742 else
58c85be7
RW
2743 # As a last resort, use the slow shell script. Don't cache a
2744 # value for INSTALL within a source directory, because that will
252b5132 2745 # break other packages using the cache if that directory is
58c85be7 2746 # removed, or if the value is a relative name.
42ecbf5e 2747 INSTALL=$ac_install_sh
252b5132
RH
2748 fi
2749fi
42ecbf5e
DJ
2750echo "$as_me:$LINENO: result: $INSTALL" >&5
2751echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
2752
2753# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2754# It thinks the first close brace ends the variable substitution.
2755test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2756
42ecbf5e 2757test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
2758
2759test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2760
42ecbf5e
DJ
2761echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2762echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
252b5132
RH
2763# Just in case
2764sleep 1
42ecbf5e 2765echo timestamp > conftest.file
252b5132
RH
2766# Do `set' in a subshell so we don't clobber the current shell's
2767# arguments. Must try -L first in case configure is actually a
2768# symlink; some systems play weird games with the mod time of symlinks
2769# (eg FreeBSD returns the mod time of the symlink's containing
2770# directory).
2771if (
42ecbf5e 2772 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
252b5132
RH
2773 if test "$*" = "X"; then
2774 # -L didn't work.
42ecbf5e 2775 set X `ls -t $srcdir/configure conftest.file`
252b5132 2776 fi
42ecbf5e
DJ
2777 rm -f conftest.file
2778 if test "$*" != "X $srcdir/configure conftest.file" \
2779 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
2780
2781 # If neither matched, then we have a broken ls. This can happen
2782 # if, for instance, CONFIG_SHELL is bash and it inherits a
2783 # broken ls alias from the environment. This has actually
2784 # happened. Such a system could not be considered "sane".
42ecbf5e
DJ
2785 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2786alias in your environment" >&5
2787echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2788alias in your environment" >&2;}
2789 { (exit 1); exit 1; }; }
252b5132
RH
2790 fi
2791
42ecbf5e 2792 test "$2" = conftest.file
252b5132
RH
2793 )
2794then
2795 # Ok.
2796 :
2797else
42ecbf5e
DJ
2798 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2799Check your system clock" >&5
2800echo "$as_me: error: newly created file is older than distributed files!
2801Check your system clock" >&2;}
2802 { (exit 1); exit 1; }; }
252b5132 2803fi
42ecbf5e
DJ
2804echo "$as_me:$LINENO: result: yes" >&5
2805echo "${ECHO_T}yes" >&6
252b5132 2806test "$program_prefix" != NONE &&
42ecbf5e 2807 program_transform_name="s,^,$program_prefix,;$program_transform_name"
252b5132
RH
2808# Use a double $ so make ignores it.
2809test "$program_suffix" != NONE &&
42ecbf5e
DJ
2810 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2811# Double any \ or $. echo might interpret backslashes.
2812# By default was `s,x,x', remove it if useless.
2813cat <<\_ACEOF >conftest.sed
2814s/[\\$]/&&/g;s/;s,x,x,$//
2815_ACEOF
2816program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2817rm conftest.sed
2818
2819# expand $ac_aux_dir to an absolute path
2820am_aux_dir=`cd $ac_aux_dir && pwd`
2821
2822test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2823# Use eval to expand $SHELL
2824if eval "$MISSING --run true"; then
2825 am_missing_run="$MISSING --run "
2826else
2827 am_missing_run=
2828 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2829echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2830fi
2831
2832if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2833 # We used to keeping the `.' as first argument, in order to
2834 # allow $(mkdir_p) to be used without argument. As in
2835 # $(mkdir_p) $(somedir)
2836 # where $(somedir) is conditionally defined. However this is wrong
2837 # for two reasons:
2838 # 1. if the package is installed by a user who cannot write `.'
2839 # make install will fail,
2840 # 2. the above comment should most certainly read
2841 # $(mkdir_p) $(DESTDIR)$(somedir)
2842 # so it does not work when $(somedir) is undefined and
2843 # $(DESTDIR) is not.
2844 # To support the latter case, we have to write
2845 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2846 # so the `.' trick is pointless.
2847 mkdir_p='mkdir -p --'
2848else
2849 # On NextStep and OpenStep, the `mkdir' command does not
2850 # recognize any option. It will interpret all options as
2851 # directories to create, and then abort because `.' already
2852 # exists.
2853 for d in ./-p ./--version;
2854 do
2855 test -d $d && rmdir $d
2856 done
2857 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2858 if test -f "$ac_aux_dir/mkinstalldirs"; then
2859 mkdir_p='$(mkinstalldirs)'
2860 else
2861 mkdir_p='$(install_sh) -d'
2862 fi
2863fi
2864
2865for ac_prog in gawk mawk nawk awk
2866do
2867 # Extract the first word of "$ac_prog", so it can be a program name with args.
2868set dummy $ac_prog; ac_word=$2
2869echo "$as_me:$LINENO: checking for $ac_word" >&5
2870echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2871if test "${ac_cv_prog_AWK+set}" = set; then
2872 echo $ECHO_N "(cached) $ECHO_C" >&6
2873else
2874 if test -n "$AWK"; then
2875 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2876else
2877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2878for as_dir in $PATH
2879do
2880 IFS=$as_save_IFS
2881 test -z "$as_dir" && as_dir=.
2882 for ac_exec_ext in '' $ac_executable_extensions; do
2883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2884 ac_cv_prog_AWK="$ac_prog"
2885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2886 break 2
2887 fi
2888done
2889done
2890
2891fi
2892fi
2893AWK=$ac_cv_prog_AWK
2894if test -n "$AWK"; then
2895 echo "$as_me:$LINENO: result: $AWK" >&5
2896echo "${ECHO_T}$AWK" >&6
2897else
2898 echo "$as_me:$LINENO: result: no" >&5
2899echo "${ECHO_T}no" >&6
2900fi
252b5132 2901
42ecbf5e
DJ
2902 test -n "$AWK" && break
2903done
252b5132 2904
42ecbf5e
DJ
2905echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2906echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2907set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2908if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2909 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 2910else
42ecbf5e 2911 cat >conftest.make <<\_ACEOF
252b5132 2912all:
42ecbf5e
DJ
2913 @echo 'ac_maketemp="$(MAKE)"'
2914_ACEOF
252b5132 2915# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
42ecbf5e 2916eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
252b5132
RH
2917if test -n "$ac_maketemp"; then
2918 eval ac_cv_prog_make_${ac_make}_set=yes
2919else
2920 eval ac_cv_prog_make_${ac_make}_set=no
2921fi
42ecbf5e 2922rm -f conftest.make
252b5132
RH
2923fi
2924if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
42ecbf5e
DJ
2925 echo "$as_me:$LINENO: result: yes" >&5
2926echo "${ECHO_T}yes" >&6
252b5132
RH
2927 SET_MAKE=
2928else
42ecbf5e
DJ
2929 echo "$as_me:$LINENO: result: no" >&5
2930echo "${ECHO_T}no" >&6
252b5132
RH
2931 SET_MAKE="MAKE=${MAKE-make}"
2932fi
2933
42ecbf5e
DJ
2934rm -rf .tst 2>/dev/null
2935mkdir .tst 2>/dev/null
2936if test -d .tst; then
2937 am__leading_dot=.
2938else
2939 am__leading_dot=_
2940fi
2941rmdir .tst 2>/dev/null
2942
2943DEPDIR="${am__leading_dot}deps"
2944
2945 ac_config_commands="$ac_config_commands depfiles"
2946
2947
2948am_make=${MAKE-make}
2949cat > confinc << 'END'
2950am__doit:
2951 @echo done
2952.PHONY: am__doit
2953END
2954# If we don't find an include directive, just comment out the code.
2955echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2956echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2957am__include="#"
2958am__quote=
2959_am_result=none
2960# First try GNU make style include.
2961echo "include confinc" > confmf
2962# We grep out `Entering directory' and `Leaving directory'
2963# messages which can occur if `w' ends up in MAKEFLAGS.
2964# In particular we don't look at `^make:' because GNU make might
2965# be invoked under some other name (usually "gmake"), in which
2966# case it prints its new name instead of `make'.
2967if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2968 am__include=include
2969 am__quote=
2970 _am_result=GNU
2971fi
2972# Now try BSD make style include.
2973if test "$am__include" = "#"; then
2974 echo '.include "confinc"' > confmf
2975 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2976 am__include=.include
2977 am__quote="\""
2978 _am_result=BSD
2979 fi
2980fi
2981
2982
2983echo "$as_me:$LINENO: result: $_am_result" >&5
2984echo "${ECHO_T}$_am_result" >&6
2985rm -f confinc confmf
2986
2987# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2988if test "${enable_dependency_tracking+set}" = set; then
2989 enableval="$enable_dependency_tracking"
2990
2991fi;
2992if test "x$enable_dependency_tracking" != xno; then
2993 am_depcomp="$ac_aux_dir/depcomp"
2994 AMDEPBACKSLASH='\'
2995fi
2996
2997
2998if test "x$enable_dependency_tracking" != xno; then
2999 AMDEP_TRUE=
3000 AMDEP_FALSE='#'
3001else
3002 AMDEP_TRUE='#'
3003 AMDEP_FALSE=
3004fi
3005
e5a52504
MM
3006
3007
42ecbf5e
DJ
3008# test to see if srcdir already configured
3009if test "`cd $srcdir && pwd`" != "`pwd`" &&
3010 test -f $srcdir/config.status; then
3011 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3012echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3013 { (exit 1); exit 1; }; }
3014fi
252b5132 3015
42ecbf5e
DJ
3016# test whether we have cygpath
3017if test -z "$CYGPATH_W"; then
3018 if (cygpath --version) >/dev/null 2>/dev/null; then
3019 CYGPATH_W='cygpath -w'
3020 else
3021 CYGPATH_W=echo
3022 fi
252b5132 3023fi
42ecbf5e
DJ
3024
3025
3026# Define the identity of the package.
3027 PACKAGE=ld
3028 VERSION=${BFD_VERSION}
3029
3030
3031cat >>confdefs.h <<_ACEOF
e5a52504 3032#define PACKAGE "$PACKAGE"
42ecbf5e
DJ
3033_ACEOF
3034
252b5132 3035
42ecbf5e 3036cat >>confdefs.h <<_ACEOF
e5a52504 3037#define VERSION "$VERSION"
42ecbf5e
DJ
3038_ACEOF
3039
3040# Some tools Automake needs.
3041
3042ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3043
3044
3045AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3046
3047
3048AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3049
3050
3051AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3052
e5a52504 3053
42ecbf5e 3054MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
e5a52504 3055
42ecbf5e 3056install_sh=${install_sh-"$am_aux_dir/install-sh"}
e5a52504 3057
42ecbf5e
DJ
3058# Installed binaries are usually stripped using `strip' when the user
3059# run `make install-strip'. However `strip' might not be the right
3060# tool to use in cross-compilation environments, therefore Automake
3061# will honor the `STRIP' environment variable to overrule this program.
3062if test "$cross_compiling" != no; then
3063 if test -n "$ac_tool_prefix"; then
3064 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3065set dummy ${ac_tool_prefix}strip; ac_word=$2
3066echo "$as_me:$LINENO: checking for $ac_word" >&5
3067echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3068if test "${ac_cv_prog_STRIP+set}" = set; then
3069 echo $ECHO_N "(cached) $ECHO_C" >&6
3070else
3071 if test -n "$STRIP"; then
3072 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3073else
3074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3075for as_dir in $PATH
3076do
3077 IFS=$as_save_IFS
3078 test -z "$as_dir" && as_dir=.
3079 for ac_exec_ext in '' $ac_executable_extensions; do
3080 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3081 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3083 break 2
3084 fi
3085done
3086done
3087
3088fi
3089fi
3090STRIP=$ac_cv_prog_STRIP
3091if test -n "$STRIP"; then
3092 echo "$as_me:$LINENO: result: $STRIP" >&5
3093echo "${ECHO_T}$STRIP" >&6
2469cfa2 3094else
42ecbf5e
DJ
3095 echo "$as_me:$LINENO: result: no" >&5
3096echo "${ECHO_T}no" >&6
3097fi
3098
e5a52504 3099fi
42ecbf5e
DJ
3100if test -z "$ac_cv_prog_STRIP"; then
3101 ac_ct_STRIP=$STRIP
3102 # Extract the first word of "strip", so it can be a program name with args.
3103set dummy strip; ac_word=$2
3104echo "$as_me:$LINENO: checking for $ac_word" >&5
3105echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3106if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3107 echo $ECHO_N "(cached) $ECHO_C" >&6
3108else
3109 if test -n "$ac_ct_STRIP"; then
3110 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3111else
3112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3113for as_dir in $PATH
3114do
3115 IFS=$as_save_IFS
3116 test -z "$as_dir" && as_dir=.
3117 for ac_exec_ext in '' $ac_executable_extensions; do
3118 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3119 ac_cv_prog_ac_ct_STRIP="strip"
3120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3121 break 2
3122 fi
3123done
3124done
e5a52504 3125
42ecbf5e
DJ
3126 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3127fi
3128fi
3129ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3130if test -n "$ac_ct_STRIP"; then
3131 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3132echo "${ECHO_T}$ac_ct_STRIP" >&6
2469cfa2 3133else
42ecbf5e
DJ
3134 echo "$as_me:$LINENO: result: no" >&5
3135echo "${ECHO_T}no" >&6
2469cfa2
NC
3136fi
3137
42ecbf5e 3138 STRIP=$ac_ct_STRIP
2469cfa2 3139else
42ecbf5e
DJ
3140 STRIP="$ac_cv_prog_STRIP"
3141fi
3142
2469cfa2 3143fi
42ecbf5e
DJ
3144INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3145
3146# We need awk for the "check" target. The system "awk" is bad on
3147# some platforms.
3148# Always define AMTAR for backward compatibility.
3149
3150AMTAR=${AMTAR-"${am_missing_run}tar"}
3151
3152am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3153
3154
3155
3156
3157depcc="$CC" am_compiler_list=
3158
3159echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3160echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3161if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3162 echo $ECHO_N "(cached) $ECHO_C" >&6
3163else
3164 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3165 # We make a subdir and do the tests there. Otherwise we can end up
3166 # making bogus files that we don't know about and never remove. For
3167 # instance it was reported that on HP-UX the gcc test will end up
3168 # making a dummy file named `D' -- because `-MD' means `put the output
3169 # in D'.
3170 mkdir conftest.dir
3171 # Copy depcomp to subdir because otherwise we won't find it if we're
3172 # using a relative directory.
3173 cp "$am_depcomp" conftest.dir
3174 cd conftest.dir
3175 # We will build objects and dependencies in a subdirectory because
3176 # it helps to detect inapplicable dependency modes. For instance
3177 # both Tru64's cc and ICC support -MD to output dependencies as a
3178 # side effect of compilation, but ICC will put the dependencies in
3179 # the current directory while Tru64 will put them in the object
3180 # directory.
3181 mkdir sub
3182
3183 am_cv_CC_dependencies_compiler_type=none
3184 if test "$am_compiler_list" = ""; then
3185 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3186 fi
3187 for depmode in $am_compiler_list; do
3188 # Setup a source with many dependencies, because some compilers
3189 # like to wrap large dependency lists on column 80 (with \), and
3190 # we should not choose a depcomp mode which is confused by this.
3191 #
3192 # We need to recreate these files for each test, as the compiler may
3193 # overwrite some of them when testing with obscure command lines.
3194 # This happens at least with the AIX C compiler.
3195 : > sub/conftest.c
3196 for i in 1 2 3 4 5 6; do
3197 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3198 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3199 # Solaris 8's {/usr,}/bin/sh.
3200 touch sub/conftst$i.h
3201 done
3202 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3203
3204 case $depmode in
3205 nosideeffect)
3206 # after this tag, mechanisms are not by side-effect, so they'll
3207 # only be used when explicitly requested
3208 if test "x$enable_dependency_tracking" = xyes; then
3209 continue
3210 else
3211 break
3212 fi
3213 ;;
3214 none) break ;;
3215 esac
3216 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3217 # mode. It turns out that the SunPro C++ compiler does not properly
3218 # handle `-M -o', and we need to detect this.
3219 if depmode=$depmode \
3220 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3221 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3222 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3223 >/dev/null 2>conftest.err &&
3224 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3225 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3226 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3227 # icc doesn't choke on unknown options, it will just issue warnings
3228 # or remarks (even with -Werror). So we grep stderr for any message
3229 # that says an option was ignored or not supported.
3230 # When given -MP, icc 7.0 and 7.1 complain thusly:
3231 # icc: Command line warning: ignoring option '-M'; no argument required
3232 # The diagnosis changed in icc 8.0:
3233 # icc: Command line remark: option '-MP' not supported
3234 if (grep 'ignoring option' conftest.err ||
3235 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3236 am_cv_CC_dependencies_compiler_type=$depmode
3237 break
3238 fi
3239 fi
3240 done
2469cfa2 3241
42ecbf5e
DJ
3242 cd ..
3243 rm -rf conftest.dir
2469cfa2 3244else
42ecbf5e
DJ
3245 am_cv_CC_dependencies_compiler_type=none
3246fi
3247
2469cfa2 3248fi
42ecbf5e
DJ
3249echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3250echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3251CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3252
2469cfa2 3253
42ecbf5e
DJ
3254
3255if
3256 test "x$enable_dependency_tracking" != xno \
3257 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3258 am__fastdepCC_TRUE=
3259 am__fastdepCC_FALSE='#'
2469cfa2 3260else
42ecbf5e
DJ
3261 am__fastdepCC_TRUE='#'
3262 am__fastdepCC_FALSE=
2469cfa2 3263fi
2469cfa2 3264
2469cfa2 3265
e5a52504 3266
42ecbf5e 3267
d7040cdb 3268
ce2cded5
L
3269# Check whether --with-lib-path or --without-lib-path was given.
3270if test "${with_lib_path+set}" = set; then
3271 withval="$with_lib_path"
3272 LIB_PATH=$withval
3273fi;
3274# Check whether --enable-targets or --disable-targets was given.
3275if test "${enable_targets+set}" = set; then
3276 enableval="$enable_targets"
3277 case "${enableval}" in
3278 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
3279echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
3280 { (exit 1); exit 1; }; }
3281 ;;
3282 no) enable_targets= ;;
3283 *) enable_targets=$enableval ;;
3284esac
3285fi; # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
3286if test "${enable_64_bit_bfd+set}" = set; then
3287 enableval="$enable_64_bit_bfd"
3288 case "${enableval}" in
3289 yes) want64=true ;;
3290 no) want64=false ;;
3291 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
3292echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
3293 { (exit 1); exit 1; }; } ;;
3294esac
2469cfa2 3295else
ce2cded5 3296 want64=false
42ecbf5e 3297fi;
d7040cdb 3298
ce2cded5
L
3299# Check whether --with-sysroot or --without-sysroot was given.
3300if test "${with_sysroot+set}" = set; then
3301 withval="$with_sysroot"
d7040cdb 3302
ce2cded5
L
3303 case ${with_sysroot} in
3304 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
3305 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3306 esac
d7040cdb 3307
ce2cded5
L
3308 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3309 use_sysroot=yes
d7040cdb 3310
ce2cded5
L
3311 if test "x$prefix" = xNONE; then
3312 test_prefix=/usr/local
3313 else
3314 test_prefix=$prefix
3315 fi
3316 if test "x$exec_prefix" = xNONE; then
3317 test_exec_prefix=$test_prefix
3318 else
3319 test_exec_prefix=$exec_prefix
3320 fi
3321 case ${TARGET_SYSTEM_ROOT} in
3322 "${test_prefix}"|"${test_prefix}/"*|\
3323 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3324 '${prefix}'|'${prefix}/'*|\
3325 '${exec_prefix}'|'${exec_prefix}/'*)
3326 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3327 TARGET_SYSTEM_ROOT_DEFINE="$t"
3328 ;;
3329 esac
d7040cdb 3330
e5a52504 3331else
d7040cdb 3332
ce2cded5
L
3333 use_sysroot=no
3334 TARGET_SYSTEM_ROOT=
3335 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
d7040cdb 3336
ce2cded5 3337fi;
d7040cdb
SE
3338
3339
3340
3341
7fb9f789
NC
3342# Check whether --enable-got or --disable-got was given.
3343if test "${enable_got+set}" = set; then
3344 enableval="$enable_got"
3345 case "${enableval}" in
3346 target | single | negative | multigot) got_handling=$enableval ;;
3347 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-got option" >&5
3348echo "$as_me: error: bad value ${enableval} for --enable-got option" >&2;}
3349 { (exit 1); exit 1; }; } ;;
3350esac
3351else
3352 got_handling=target
3353fi;
3354
3355case "${got_handling}" in
3356 target)
3357
3358cat >>confdefs.h <<\_ACEOF
3359#define GOT_HANDLING_DEFAULT GOT_HANDLING_TARGET_DEFAULT
3360_ACEOF
3361 ;;
3362 single)
3363
3364cat >>confdefs.h <<\_ACEOF
3365#define GOT_HANDLING_DEFAULT GOT_HANDLING_SINGLE
3366_ACEOF
3367 ;;
3368 negative)
3369
3370cat >>confdefs.h <<\_ACEOF
3371#define GOT_HANDLING_DEFAULT GOT_HANDLING_NEGATIVE
3372_ACEOF
3373 ;;
3374 multigot)
3375
3376cat >>confdefs.h <<\_ACEOF
3377#define GOT_HANDLING_DEFAULT GOT_HANDLING_MULTIGOT
3378_ACEOF
3379 ;;
3380 *) { { echo "$as_me:$LINENO: error: bad value ${got_handling} for --enable-got option" >&5
3381echo "$as_me: error: bad value ${got_handling} for --enable-got option" >&2;}
3382 { (exit 1); exit 1; }; } ;;
3383esac
3384
d7040cdb 3385
ce2cded5 3386GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
d7040cdb 3387
ce2cded5
L
3388# Check whether --enable-werror or --disable-werror was given.
3389if test "${enable_werror+set}" = set; then
3390 enableval="$enable_werror"
3391 case "${enableval}" in
3392 yes | y) ERROR_ON_WARNING="yes" ;;
3393 no | n) ERROR_ON_WARNING="no" ;;
3394 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
3395echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
3396 { (exit 1); exit 1; }; } ;;
3397 esac
d7040cdb
SE
3398fi;
3399
bb8541b9
L
3400# Enable -Wno-format by default when using gcc on mingw
3401case "${host}" in
3402 *-*-mingw32*)
3403 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
3404 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
3405 fi
3406 ;;
3407 *) ;;
3408esac
3409
ce2cded5
L
3410# Enable -Werror by default when using gcc
3411if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
3412 ERROR_ON_WARNING=yes
3413fi
d7040cdb 3414
ce2cded5
L
3415NO_WERROR=
3416if test "${ERROR_ON_WARNING}" = yes ; then
3417 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
3418 NO_WERROR="-Wno-error"
3419fi
d7040cdb 3420
ce2cded5
L
3421if test "${GCC}" = yes ; then
3422 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
3423fi
d7040cdb 3424
ce2cded5
L
3425# Check whether --enable-build-warnings or --disable-build-warnings was given.
3426if test "${enable_build_warnings+set}" = set; then
3427 enableval="$enable_build_warnings"
3428 case "${enableval}" in
3429 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
3430 no) if test "${GCC}" = yes ; then
3431 WARN_CFLAGS="-w"
3432 fi;;
3433 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
3434 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
3435 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
3436 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
3437 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3438esac
3439fi;
d7040cdb 3440
ce2cded5
L
3441if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
3442 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
3443fi
d7040cdb 3444
2469cfa2 3445
d7040cdb
SE
3446
3447
3448
ce2cded5 3449 ac_config_headers="$ac_config_headers config.h:config.in"
d7040cdb
SE
3450
3451
ce2cded5
L
3452if test -z "$target" ; then
3453 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
3454echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
3455 { (exit 1); exit 1; }; }
3456fi
3457if test -z "$host" ; then
3458 { { echo "$as_me:$LINENO: error: Unrecognized host system type; please check config.sub." >&5
3459echo "$as_me: error: Unrecognized host system type; please check config.sub." >&2;}
3460 { (exit 1); exit 1; }; }
3461fi
d7040cdb 3462
ce2cded5 3463# host-specific stuff:
d7040cdb 3464
ce2cded5
L
3465ac_ext=c
3466ac_cpp='$CPP $CPPFLAGS'
3467ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3468ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3469ac_compiler_gnu=$ac_cv_c_compiler_gnu
3470if test -n "$ac_tool_prefix"; then
3471 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3472set dummy ${ac_tool_prefix}gcc; ac_word=$2
3473echo "$as_me:$LINENO: checking for $ac_word" >&5
3474echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3475if test "${ac_cv_prog_CC+set}" = set; then
d7040cdb
SE
3476 echo $ECHO_N "(cached) $ECHO_C" >&6
3477else
ce2cded5
L
3478 if test -n "$CC"; then
3479 ac_cv_prog_CC="$CC" # Let the user override the test.
3480else
d7040cdb
SE
3481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3482for as_dir in $PATH
3483do
3484 IFS=$as_save_IFS
3485 test -z "$as_dir" && as_dir=.
ce2cded5
L
3486 for ac_exec_ext in '' $ac_executable_extensions; do
3487 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3488 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3490 break 2
d7040cdb 3491 fi
ce2cded5 3492done
d7040cdb
SE
3493done
3494
3495fi
d7040cdb 3496fi
ce2cded5
L
3497CC=$ac_cv_prog_CC
3498if test -n "$CC"; then
3499 echo "$as_me:$LINENO: result: $CC" >&5
3500echo "${ECHO_T}$CC" >&6
d7040cdb 3501else
ce2cded5
L
3502 echo "$as_me:$LINENO: result: no" >&5
3503echo "${ECHO_T}no" >&6
d7040cdb 3504fi
d7040cdb 3505
252b5132 3506fi
ce2cded5
L
3507if test -z "$ac_cv_prog_CC"; then
3508 ac_ct_CC=$CC
3509 # Extract the first word of "gcc", so it can be a program name with args.
3510set dummy gcc; ac_word=$2
3511echo "$as_me:$LINENO: checking for $ac_word" >&5
3512echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3513if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
42ecbf5e 3514 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3515else
ce2cded5
L
3516 if test -n "$ac_ct_CC"; then
3517 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
252b5132 3518else
ce2cded5
L
3519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3520for as_dir in $PATH
3521do
3522 IFS=$as_save_IFS
3523 test -z "$as_dir" && as_dir=.
3524 for ac_exec_ext in '' $ac_executable_extensions; do
3525 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3526 ac_cv_prog_ac_ct_CC="gcc"
3527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3528 break 2
3529 fi
3530done
3531done
3532
252b5132
RH
3533fi
3534fi
ce2cded5
L
3535ac_ct_CC=$ac_cv_prog_ac_ct_CC
3536if test -n "$ac_ct_CC"; then
3537 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3538echo "${ECHO_T}$ac_ct_CC" >&6
252b5132 3539else
42ecbf5e
DJ
3540 echo "$as_me:$LINENO: result: no" >&5
3541echo "${ECHO_T}no" >&6
252b5132 3542fi
ce2cded5
L
3543
3544 CC=$ac_ct_CC
252b5132 3545else
ce2cded5 3546 CC="$ac_cv_prog_CC"
252b5132 3547fi
d7040cdb 3548
ce2cded5
L
3549if test -z "$CC"; then
3550 if test -n "$ac_tool_prefix"; then
3551 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3552set dummy ${ac_tool_prefix}cc; ac_word=$2
3553echo "$as_me:$LINENO: checking for $ac_word" >&5
3554echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3555if test "${ac_cv_prog_CC+set}" = set; then
42ecbf5e 3556 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3557else
ce2cded5
L
3558 if test -n "$CC"; then
3559 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 3560else
ce2cded5
L
3561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3562for as_dir in $PATH
3563do
3564 IFS=$as_save_IFS
3565 test -z "$as_dir" && as_dir=.
3566 for ac_exec_ext in '' $ac_executable_extensions; do
3567 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3568 ac_cv_prog_CC="${ac_tool_prefix}cc"
3569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3570 break 2
3571 fi
3572done
3573done
3574
252b5132
RH
3575fi
3576fi
ce2cded5
L
3577CC=$ac_cv_prog_CC
3578if test -n "$CC"; then
3579 echo "$as_me:$LINENO: result: $CC" >&5
3580echo "${ECHO_T}$CC" >&6
d15b04bd 3581else
ce2cded5
L
3582 echo "$as_me:$LINENO: result: no" >&5
3583echo "${ECHO_T}no" >&6
3584fi
3585
3586fi
3587if test -z "$ac_cv_prog_CC"; then
3588 ac_ct_CC=$CC
3589 # Extract the first word of "cc", so it can be a program name with args.
3590set dummy cc; ac_word=$2
3591echo "$as_me:$LINENO: checking for $ac_word" >&5
3592echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3593if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3594 echo $ECHO_N "(cached) $ECHO_C" >&6
3595else
3596 if test -n "$ac_ct_CC"; then
3597 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3598else
3599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3600for as_dir in $PATH
3601do
3602 IFS=$as_save_IFS
3603 test -z "$as_dir" && as_dir=.
3604 for ac_exec_ext in '' $ac_executable_extensions; do
3605 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3606 ac_cv_prog_ac_ct_CC="cc"
3607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3608 break 2
3609 fi
3610done
3611done
3612
3613fi
3614fi
3615ac_ct_CC=$ac_cv_prog_ac_ct_CC
3616if test -n "$ac_ct_CC"; then
3617 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3618echo "${ECHO_T}$ac_ct_CC" >&6
3619else
3620 echo "$as_me:$LINENO: result: no" >&5
3621echo "${ECHO_T}no" >&6
3622fi
3623
3624 CC=$ac_ct_CC
3625else
3626 CC="$ac_cv_prog_CC"
3627fi
3628
3629fi
3630if test -z "$CC"; then
3631 # Extract the first word of "cc", so it can be a program name with args.
3632set dummy cc; ac_word=$2
3633echo "$as_me:$LINENO: checking for $ac_word" >&5
3634echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3635if test "${ac_cv_prog_CC+set}" = set; then
3636 echo $ECHO_N "(cached) $ECHO_C" >&6
3637else
3638 if test -n "$CC"; then
3639 ac_cv_prog_CC="$CC" # Let the user override the test.
3640else
3641 ac_prog_rejected=no
3642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3643for as_dir in $PATH
3644do
3645 IFS=$as_save_IFS
3646 test -z "$as_dir" && as_dir=.
3647 for ac_exec_ext in '' $ac_executable_extensions; do
3648 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3649 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3650 ac_prog_rejected=yes
3651 continue
3652 fi
3653 ac_cv_prog_CC="cc"
3654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3655 break 2
3656 fi
3657done
3658done
3659
3660if test $ac_prog_rejected = yes; then
3661 # We found a bogon in the path, so make sure we never use it.
3662 set dummy $ac_cv_prog_CC
3663 shift
3664 if test $# != 0; then
3665 # We chose a different compiler from the bogus one.
3666 # However, it has the same basename, so the bogon will be chosen
3667 # first if we set CC to just the basename; use the full file name.
3668 shift
3669 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3670 fi
3671fi
3672fi
3673fi
3674CC=$ac_cv_prog_CC
3675if test -n "$CC"; then
3676 echo "$as_me:$LINENO: result: $CC" >&5
3677echo "${ECHO_T}$CC" >&6
3678else
3679 echo "$as_me:$LINENO: result: no" >&5
3680echo "${ECHO_T}no" >&6
3681fi
3682
3683fi
3684if test -z "$CC"; then
d7040cdb 3685 if test -n "$ac_tool_prefix"; then
ce2cded5 3686 for ac_prog in cl
d7040cdb
SE
3687 do
3688 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3689set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3690echo "$as_me:$LINENO: checking for $ac_word" >&5
3691echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ce2cded5 3692if test "${ac_cv_prog_CC+set}" = set; then
d7040cdb
SE
3693 echo $ECHO_N "(cached) $ECHO_C" >&6
3694else
ce2cded5
L
3695 if test -n "$CC"; then
3696 ac_cv_prog_CC="$CC" # Let the user override the test.
d7040cdb
SE
3697else
3698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3699for as_dir in $PATH
3700do
3701 IFS=$as_save_IFS
3702 test -z "$as_dir" && as_dir=.
3703 for ac_exec_ext in '' $ac_executable_extensions; do
3704 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ce2cded5 3705 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
d7040cdb
SE
3706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3707 break 2
3708 fi
3709done
3710done
3711
3712fi
3713fi
ce2cded5
L
3714CC=$ac_cv_prog_CC
3715if test -n "$CC"; then
3716 echo "$as_me:$LINENO: result: $CC" >&5
3717echo "${ECHO_T}$CC" >&6
d7040cdb
SE
3718else
3719 echo "$as_me:$LINENO: result: no" >&5
3720echo "${ECHO_T}no" >&6
3721fi
3722
ce2cded5 3723 test -n "$CC" && break
d7040cdb
SE
3724 done
3725fi
ce2cded5
L
3726if test -z "$CC"; then
3727 ac_ct_CC=$CC
3728 for ac_prog in cl
d7040cdb
SE
3729do
3730 # Extract the first word of "$ac_prog", so it can be a program name with args.
3731set dummy $ac_prog; ac_word=$2
3732echo "$as_me:$LINENO: checking for $ac_word" >&5
3733echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ce2cded5 3734if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
d7040cdb
SE
3735 echo $ECHO_N "(cached) $ECHO_C" >&6
3736else
ce2cded5
L
3737 if test -n "$ac_ct_CC"; then
3738 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
d7040cdb
SE
3739else
3740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3741for as_dir in $PATH
3742do
3743 IFS=$as_save_IFS
3744 test -z "$as_dir" && as_dir=.
3745 for ac_exec_ext in '' $ac_executable_extensions; do
3746 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ce2cded5 3747 ac_cv_prog_ac_ct_CC="$ac_prog"
d7040cdb
SE
3748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3749 break 2
3750 fi
3751done
3752done
3753
3754fi
3755fi
ce2cded5
L
3756ac_ct_CC=$ac_cv_prog_ac_ct_CC
3757if test -n "$ac_ct_CC"; then
3758 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3759echo "${ECHO_T}$ac_ct_CC" >&6
d7040cdb
SE
3760else
3761 echo "$as_me:$LINENO: result: no" >&5
3762echo "${ECHO_T}no" >&6
3763fi
3764
ce2cded5 3765 test -n "$ac_ct_CC" && break
d7040cdb 3766done
d7040cdb 3767
ce2cded5 3768 CC=$ac_ct_CC
d7040cdb
SE
3769fi
3770
d7040cdb 3771fi
d7040cdb
SE
3772
3773
7a283e07
RW
3774test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3775echo "$as_me: error: in \`$ac_pwd':" >&2;}
3776{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
ce2cded5
L
3777See \`config.log' for more details." >&5
3778echo "$as_me: error: no acceptable C compiler found in \$PATH
3779See \`config.log' for more details." >&2;}
7a283e07 3780 { (exit 1); exit 1; }; }; }
d7040cdb 3781
ce2cded5
L
3782# Provide some information about the compiler.
3783echo "$as_me:$LINENO:" \
3784 "checking for C compiler version" >&5
3785ac_compiler=`set X $ac_compile; echo $2`
3786{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3787 (eval $ac_compiler --version </dev/null >&5) 2>&5
3788 ac_status=$?
3789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790 (exit $ac_status); }
3791{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3792 (eval $ac_compiler -v </dev/null >&5) 2>&5
3793 ac_status=$?
3794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795 (exit $ac_status); }
3796{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3797 (eval $ac_compiler -V </dev/null >&5) 2>&5
3798 ac_status=$?
3799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800 (exit $ac_status); }
d7040cdb 3801
ce2cded5
L
3802echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3803echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3804if test "${ac_cv_c_compiler_gnu+set}" = set; then
d7040cdb
SE
3805 echo $ECHO_N "(cached) $ECHO_C" >&6
3806else
ce2cded5
L
3807 cat >conftest.$ac_ext <<_ACEOF
3808/* confdefs.h. */
3809_ACEOF
3810cat confdefs.h >>conftest.$ac_ext
3811cat >>conftest.$ac_ext <<_ACEOF
3812/* end confdefs.h. */
d7040cdb 3813
ce2cded5
L
3814int
3815main ()
3816{
3817#ifndef __GNUC__
3818 choke me
3819#endif
3820
3821 ;
3822 return 0;
3823}
3824_ACEOF
3825rm -f conftest.$ac_objext
3826if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3827 (eval $ac_compile) 2>conftest.er1
3828 ac_status=$?
3829 grep -v '^ *+' conftest.er1 >conftest.err
3830 rm -f conftest.er1
3831 cat conftest.err >&5
3832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833 (exit $ac_status); } &&
3834 { ac_try='test -z "$ac_c_werror_flag"
3835 || test ! -s conftest.err'
3836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3837 (eval $ac_try) 2>&5
3838 ac_status=$?
3839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840 (exit $ac_status); }; } &&
3841 { ac_try='test -s conftest.$ac_objext'
3842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3843 (eval $ac_try) 2>&5
3844 ac_status=$?
3845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846 (exit $ac_status); }; }; then
3847 ac_compiler_gnu=yes
d7040cdb 3848else
ce2cded5
L
3849 echo "$as_me: failed program was:" >&5
3850sed 's/^/| /' conftest.$ac_ext >&5
3851
3852ac_compiler_gnu=no
d7040cdb 3853fi
ce2cded5
L
3854rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3855ac_cv_c_compiler_gnu=$ac_compiler_gnu
d7040cdb 3856
ce2cded5
L
3857fi
3858echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3859echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3860GCC=`test $ac_compiler_gnu = yes && echo yes`
3861ac_test_CFLAGS=${CFLAGS+set}
3862ac_save_CFLAGS=$CFLAGS
3863CFLAGS="-g"
3864echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3865echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3866if test "${ac_cv_prog_cc_g+set}" = set; then
d7040cdb
SE
3867 echo $ECHO_N "(cached) $ECHO_C" >&6
3868else
ce2cded5
L
3869 cat >conftest.$ac_ext <<_ACEOF
3870/* confdefs.h. */
3871_ACEOF
3872cat confdefs.h >>conftest.$ac_ext
3873cat >>conftest.$ac_ext <<_ACEOF
3874/* end confdefs.h. */
d7040cdb 3875
ce2cded5
L
3876int
3877main ()
3878{
d7040cdb 3879
ce2cded5
L
3880 ;
3881 return 0;
3882}
3883_ACEOF
3884rm -f conftest.$ac_objext
3885if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3886 (eval $ac_compile) 2>conftest.er1
3887 ac_status=$?
3888 grep -v '^ *+' conftest.er1 >conftest.err
3889 rm -f conftest.er1
3890 cat conftest.err >&5
3891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3892 (exit $ac_status); } &&
3893 { ac_try='test -z "$ac_c_werror_flag"
3894 || test ! -s conftest.err'
3895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3896 (eval $ac_try) 2>&5
3897 ac_status=$?
3898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899 (exit $ac_status); }; } &&
3900 { ac_try='test -s conftest.$ac_objext'
3901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3902 (eval $ac_try) 2>&5
3903 ac_status=$?
3904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3905 (exit $ac_status); }; }; then
3906 ac_cv_prog_cc_g=yes
3907else
3908 echo "$as_me: failed program was:" >&5
3909sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 3910
ce2cded5 3911ac_cv_prog_cc_g=no
d7040cdb 3912fi
ce2cded5
L
3913rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3914fi
3915echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3916echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3917if test "$ac_test_CFLAGS" = set; then
3918 CFLAGS=$ac_save_CFLAGS
3919elif test $ac_cv_prog_cc_g = yes; then
3920 if test "$GCC" = yes; then
3921 CFLAGS="-g -O2"
3922 else
3923 CFLAGS="-g"
3924 fi
d7040cdb 3925else
ce2cded5
L
3926 if test "$GCC" = yes; then
3927 CFLAGS="-O2"
3928 else
3929 CFLAGS=
3930 fi
d7040cdb 3931fi
ce2cded5
L
3932echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3933echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3934if test "${ac_cv_prog_cc_stdc+set}" = set; then
3935 echo $ECHO_N "(cached) $ECHO_C" >&6
d7040cdb 3936else
ce2cded5
L
3937 ac_cv_prog_cc_stdc=no
3938ac_save_CC=$CC
3939cat >conftest.$ac_ext <<_ACEOF
3940/* confdefs.h. */
3941_ACEOF
3942cat confdefs.h >>conftest.$ac_ext
3943cat >>conftest.$ac_ext <<_ACEOF
3944/* end confdefs.h. */
3945#include <stdarg.h>
3946#include <stdio.h>
3947#include <sys/types.h>
3948#include <sys/stat.h>
3949/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3950struct buf { int x; };
3951FILE * (*rcsopen) (struct buf *, struct stat *, int);
3952static char *e (p, i)
3953 char **p;
3954 int i;
3955{
3956 return p[i];
3957}
3958static char *f (char * (*g) (char **, int), char **p, ...)
3959{
3960 char *s;
3961 va_list v;
3962 va_start (v,p);
3963 s = g (p, va_arg (v,int));
3964 va_end (v);
3965 return s;
3966}
d7040cdb 3967
ce2cded5
L
3968/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3969 function prototypes and stuff, but not '\xHH' hex character constants.
3970 These don't provoke an error unfortunately, instead are silently treated
3971 as 'x'. The following induces an error, until -std1 is added to get
3972 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3973 array size at least. It's necessary to write '\x00'==0 to get something
3974 that's true only with -std1. */
3975int osf4_cc_array ['\x00' == 0 ? 1 : -1];
d7040cdb 3976
ce2cded5
L
3977int test (int i, double x);
3978struct s1 {int (*f) (int a);};
3979struct s2 {int (*f) (double a);};
3980int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3981int argc;
3982char **argv;
3983int
3984main ()
3985{
3986return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3987 ;
3988 return 0;
3989}
3990_ACEOF
3991# Don't try gcc -ansi; that turns off useful extensions and
3992# breaks some systems' header files.
3993# AIX -qlanglvl=ansi
3994# Ultrix and OSF/1 -std1
3995# HP-UX 10.20 and later -Ae
3996# HP-UX older versions -Aa -D_HPUX_SOURCE
3997# SVR4 -Xc -D__EXTENSIONS__
3998for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3999do
4000 CC="$ac_save_CC $ac_arg"
4001 rm -f conftest.$ac_objext
4002if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4003 (eval $ac_compile) 2>conftest.er1
4004 ac_status=$?
4005 grep -v '^ *+' conftest.er1 >conftest.err
4006 rm -f conftest.er1
4007 cat conftest.err >&5
4008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009 (exit $ac_status); } &&
4010 { ac_try='test -z "$ac_c_werror_flag"
4011 || test ! -s conftest.err'
4012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4013 (eval $ac_try) 2>&5
4014 ac_status=$?
4015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016 (exit $ac_status); }; } &&
4017 { ac_try='test -s conftest.$ac_objext'
4018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4019 (eval $ac_try) 2>&5
4020 ac_status=$?
4021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4022 (exit $ac_status); }; }; then
4023 ac_cv_prog_cc_stdc=$ac_arg
4024break
4025else
4026 echo "$as_me: failed program was:" >&5
4027sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4028
ce2cded5
L
4029fi
4030rm -f conftest.err conftest.$ac_objext
4031done
4032rm -f conftest.$ac_ext conftest.$ac_objext
4033CC=$ac_save_CC
d7040cdb 4034
ce2cded5 4035fi
d7040cdb 4036
ce2cded5
L
4037case "x$ac_cv_prog_cc_stdc" in
4038 x|xno)
4039 echo "$as_me:$LINENO: result: none needed" >&5
4040echo "${ECHO_T}none needed" >&6 ;;
4041 *)
4042 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4043echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4044 CC="$CC $ac_cv_prog_cc_stdc" ;;
d7040cdb
SE
4045esac
4046
ce2cded5
L
4047# Some people use a C++ compiler to compile C. Since we use `exit',
4048# in C++ we need to declare it. In case someone uses the same compiler
4049# for both compiling C and C++ we need to have the C++ compiler decide
4050# the declaration of exit, since it's the most demanding environment.
4051cat >conftest.$ac_ext <<_ACEOF
4052#ifndef __cplusplus
4053 choke me
4054#endif
4055_ACEOF
4056rm -f conftest.$ac_objext
4057if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4058 (eval $ac_compile) 2>conftest.er1
4059 ac_status=$?
4060 grep -v '^ *+' conftest.er1 >conftest.err
4061 rm -f conftest.er1
4062 cat conftest.err >&5
4063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064 (exit $ac_status); } &&
4065 { ac_try='test -z "$ac_c_werror_flag"
4066 || test ! -s conftest.err'
4067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4068 (eval $ac_try) 2>&5
4069 ac_status=$?
4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071 (exit $ac_status); }; } &&
4072 { ac_try='test -s conftest.$ac_objext'
4073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4074 (eval $ac_try) 2>&5
4075 ac_status=$?
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); }; }; then
4078 for ac_declaration in \
4079 '' \
4080 'extern "C" void std::exit (int) throw (); using std::exit;' \
4081 'extern "C" void std::exit (int); using std::exit;' \
4082 'extern "C" void exit (int) throw ();' \
4083 'extern "C" void exit (int);' \
4084 'void exit (int);'
4085do
4086 cat >conftest.$ac_ext <<_ACEOF
4087/* confdefs.h. */
4088_ACEOF
4089cat confdefs.h >>conftest.$ac_ext
4090cat >>conftest.$ac_ext <<_ACEOF
4091/* end confdefs.h. */
4092$ac_declaration
4093#include <stdlib.h>
4094int
4095main ()
4096{
4097exit (42);
4098 ;
4099 return 0;
4100}
4101_ACEOF
4102rm -f conftest.$ac_objext
4103if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4104 (eval $ac_compile) 2>conftest.er1
4105 ac_status=$?
4106 grep -v '^ *+' conftest.er1 >conftest.err
4107 rm -f conftest.er1
4108 cat conftest.err >&5
4109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110 (exit $ac_status); } &&
4111 { ac_try='test -z "$ac_c_werror_flag"
4112 || test ! -s conftest.err'
4113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4114 (eval $ac_try) 2>&5
4115 ac_status=$?
4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); }; } &&
4118 { ac_try='test -s conftest.$ac_objext'
4119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4120 (eval $ac_try) 2>&5
4121 ac_status=$?
4122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123 (exit $ac_status); }; }; then
4124 :
d7040cdb 4125else
ce2cded5
L
4126 echo "$as_me: failed program was:" >&5
4127sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4128
ce2cded5
L
4129continue
4130fi
4131rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4132 cat >conftest.$ac_ext <<_ACEOF
4133/* confdefs.h. */
4134_ACEOF
4135cat confdefs.h >>conftest.$ac_ext
4136cat >>conftest.$ac_ext <<_ACEOF
4137/* end confdefs.h. */
4138$ac_declaration
4139int
4140main ()
4141{
4142exit (42);
4143 ;
4144 return 0;
4145}
4146_ACEOF
4147rm -f conftest.$ac_objext
4148if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4149 (eval $ac_compile) 2>conftest.er1
4150 ac_status=$?
4151 grep -v '^ *+' conftest.er1 >conftest.err
4152 rm -f conftest.er1
4153 cat conftest.err >&5
4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); } &&
4156 { ac_try='test -z "$ac_c_werror_flag"
4157 || test ! -s conftest.err'
4158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4159 (eval $ac_try) 2>&5
4160 ac_status=$?
4161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162 (exit $ac_status); }; } &&
4163 { ac_try='test -s conftest.$ac_objext'
4164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4165 (eval $ac_try) 2>&5
4166 ac_status=$?
4167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168 (exit $ac_status); }; }; then
4169 break
4170else
4171 echo "$as_me: failed program was:" >&5
4172sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4173
ce2cded5
L
4174fi
4175rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4176done
4177rm -f conftest*
4178if test -n "$ac_declaration"; then
4179 echo '#ifdef __cplusplus' >>confdefs.h
4180 echo $ac_declaration >>confdefs.h
4181 echo '#endif' >>confdefs.h
4182fi
d7040cdb 4183
ce2cded5
L
4184else
4185 echo "$as_me: failed program was:" >&5
4186sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4187
ce2cded5
L
4188fi
4189rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4190ac_ext=c
4191ac_cpp='$CPP $CPPFLAGS'
4192ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4193ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4194ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb
SE
4195
4196
ce2cded5
L
4197cat >>confdefs.h <<\_ACEOF
4198#define _GNU_SOURCE 1
4199_ACEOF
4200
4201
4202# Find a good install program. We prefer a C program (faster),
4203# so one script is as good as another. But avoid the broken or
4204# incompatible versions:
4205# SysV /etc/install, /usr/sbin/install
4206# SunOS /usr/etc/install
4207# IRIX /sbin/install
4208# AIX /bin/install
4209# AmigaOS /C/install, which installs bootblocks on floppy discs
4210# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4211# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4212# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4213# OS/2's system install, which has a completely different semantic
4214# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 4215# Reject install programs that cannot install multiple files.
ce2cded5
L
4216echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4217echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4218if test -z "$INSTALL"; then
4219if test "${ac_cv_path_install+set}" = set; then
42ecbf5e 4220 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 4221else
ce2cded5
L
4222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4223for as_dir in $PATH
4224do
4225 IFS=$as_save_IFS
4226 test -z "$as_dir" && as_dir=.
4227 # Account for people who put trailing slashes in PATH elements.
4228case $as_dir/ in
4229 ./ | .// | /cC/* | \
4230 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4231 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4232 /usr/ucb/* ) ;;
4233 *)
4234 # OSF1 and SCO ODT 3.0 have their own names for install.
4235 # Don't use installbsd from OSF since it installs stuff as root
4236 # by default.
4237 for ac_prog in ginstall scoinst install; do
4238 for ac_exec_ext in '' $ac_executable_extensions; do
4239 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4240 if test $ac_prog = install &&
4241 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4242 # AIX install. It has an incompatible calling convention.
4243 :
4244 elif test $ac_prog = install &&
4245 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4246 # program-specific install script used by HP pwplus--don't use.
4247 :
4248 else
58c85be7
RW
4249 rm -rf conftest.one conftest.two conftest.dir
4250 echo one > conftest.one
4251 echo two > conftest.two
4252 mkdir conftest.dir
4253 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4254 test -s conftest.one && test -s conftest.two &&
4255 test -s conftest.dir/conftest.one &&
4256 test -s conftest.dir/conftest.two
4257 then
4258 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4259 break 3
4260 fi
ce2cded5
L
4261 fi
4262 fi
4263 done
4264 done
4265 ;;
4266esac
4267done
ac48eca1 4268
58c85be7 4269rm -rf conftest.one conftest.two conftest.dir
ac48eca1 4270
ce2cded5
L
4271fi
4272 if test "${ac_cv_path_install+set}" = set; then
4273 INSTALL=$ac_cv_path_install
4274 else
58c85be7
RW
4275 # As a last resort, use the slow shell script. Don't cache a
4276 # value for INSTALL within a source directory, because that will
ce2cded5 4277 # break other packages using the cache if that directory is
58c85be7 4278 # removed, or if the value is a relative name.
ce2cded5
L
4279 INSTALL=$ac_install_sh
4280 fi
4281fi
4282echo "$as_me:$LINENO: result: $INSTALL" >&5
4283echo "${ECHO_T}$INSTALL" >&6
ac48eca1 4284
ce2cded5
L
4285# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4286# It thinks the first close brace ends the variable substitution.
4287test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
ac48eca1 4288
ce2cded5 4289test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
d7040cdb 4290
ce2cded5 4291test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
ac48eca1 4292
c7e40348 4293
ac48eca1 4294
ac48eca1 4295
ce2cded5
L
4296macro_version='2.1a'
4297macro_revision='1.2435'
d7040cdb 4298
d7040cdb 4299
ac48eca1 4300
ac48eca1 4301
ac48eca1 4302
c7e40348 4303
ac48eca1 4304
ac48eca1 4305
ac48eca1 4306
6be7c12c 4307
d7040cdb 4308
d7040cdb 4309
ce2cded5 4310ltmain="$ac_aux_dir/ltmain.sh"
d7040cdb 4311
ce2cded5 4312# Set options
ac48eca1 4313
ce2cded5 4314enable_dlopen=no
ac48eca1 4315
d15b04bd 4316
ce2cded5 4317enable_win32_dll=no
d15b04bd 4318
ac48eca1 4319
ce2cded5
L
4320# Check whether --enable-shared or --disable-shared was given.
4321if test "${enable_shared+set}" = set; then
4322 enableval="$enable_shared"
4323 p=${PACKAGE-default}
4324 case $enableval in
4325 yes) enable_shared=yes ;;
4326 no) enable_shared=no ;;
4327 *)
4328 enable_shared=no
4329 # Look at the argument we got. We use all the common list separators.
4330 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4331 for pkg in $enableval; do
4332 IFS="$lt_save_ifs"
4333 if test "X$pkg" = "X$p"; then
4334 enable_shared=yes
4335 fi
4336 done
4337 IFS="$lt_save_ifs"
4338 ;;
4339 esac
4340else
4341 enable_shared=yes
4342fi;
ac48eca1 4343
ac48eca1 4344
ac48eca1 4345
ac48eca1 4346
ac48eca1 4347
ac48eca1 4348
252b5132
RH
4349
4350
ce2cded5
L
4351# Check whether --enable-static or --disable-static was given.
4352if test "${enable_static+set}" = set; then
4353 enableval="$enable_static"
4354 p=${PACKAGE-default}
4355 case $enableval in
4356 yes) enable_static=yes ;;
4357 no) enable_static=no ;;
4358 *)
4359 enable_static=no
4360 # Look at the argument we got. We use all the common list separators.
4361 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4362 for pkg in $enableval; do
4363 IFS="$lt_save_ifs"
4364 if test "X$pkg" = "X$p"; then
4365 enable_static=yes
4366 fi
4367 done
4368 IFS="$lt_save_ifs"
4369 ;;
4370 esac
ac48eca1 4371else
ce2cded5
L
4372 enable_static=yes
4373fi;
42ecbf5e 4374
ac48eca1 4375
42ecbf5e 4376
ac48eca1 4377
ce2cded5
L
4378
4379
4380
4381
4382
4383# Check whether --with-pic or --without-pic was given.
4384if test "${with_pic+set}" = set; then
4385 withval="$with_pic"
4386 pic_mode="$withval"
ac48eca1 4387else
ce2cded5
L
4388 pic_mode=default
4389fi;
4390
4391test -z "$pic_mode" && pic_mode=default
ac48eca1 4392
d7040cdb
SE
4393
4394
4395
4396
4397
4398
ce2cded5
L
4399# Check whether --enable-fast-install or --disable-fast-install was given.
4400if test "${enable_fast_install+set}" = set; then
4401 enableval="$enable_fast_install"
4402 p=${PACKAGE-default}
4403 case $enableval in
4404 yes) enable_fast_install=yes ;;
4405 no) enable_fast_install=no ;;
4406 *)
4407 enable_fast_install=no
4408 # Look at the argument we got. We use all the common list separators.
4409 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4410 for pkg in $enableval; do
4411 IFS="$lt_save_ifs"
4412 if test "X$pkg" = "X$p"; then
4413 enable_fast_install=yes
4414 fi
4415 done
4416 IFS="$lt_save_ifs"
4417 ;;
4418 esac
4419else
4420 enable_fast_install=yes
4421fi;
d7040cdb
SE
4422
4423
4424
4425
4426
ce2cded5
L
4427
4428
4429
4430echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4431echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4432if test "${lt_cv_path_SED+set}" = set; then
42ecbf5e 4433 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 4434else
ce2cded5
L
4435 # Loop through the user's path and test for sed and gsed.
4436# Then use that list of sed's as ones to test for truncation.
42ecbf5e
DJ
4437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4438for as_dir in $PATH
4439do
4440 IFS=$as_save_IFS
4441 test -z "$as_dir" && as_dir=.
ce2cded5
L
4442 for lt_ac_prog in sed gsed; do
4443 for ac_exec_ext in '' $ac_executable_extensions; do
4444 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4445 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4446 fi
4447 done
4448 done
42ecbf5e 4449done
ce2cded5
L
4450IFS=$as_save_IFS
4451lt_ac_max=0
4452lt_ac_count=0
4453# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4454# along with /bin/sed that truncates output.
4455for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4456 test ! -f $lt_ac_sed && continue
4457 cat /dev/null > conftest.in
4458 lt_ac_count=0
4459 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4460 # Check for GNU sed and select it if it is found.
4461 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4462 lt_cv_path_SED=$lt_ac_sed
4463 break
42ecbf5e 4464 fi
ce2cded5
L
4465 while true; do
4466 cat conftest.in conftest.in >conftest.tmp
4467 mv conftest.tmp conftest.in
4468 cp conftest.in conftest.nl
4469 echo >>conftest.nl
4470 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4471 cmp -s conftest.out conftest.nl || break
4472 # 10000 chars as input seems more than enough
4473 test $lt_ac_count -gt 10 && break
4474 lt_ac_count=`expr $lt_ac_count + 1`
4475 if test $lt_ac_count -gt $lt_ac_max; then
4476 lt_ac_max=$lt_ac_count
4477 lt_cv_path_SED=$lt_ac_sed
4478 fi
4479 done
42ecbf5e 4480done
ac48eca1 4481
ac48eca1
AO
4482fi
4483
ce2cded5 4484SED=$lt_cv_path_SED
42ecbf5e 4485
ce2cded5
L
4486echo "$as_me:$LINENO: result: $SED" >&5
4487echo "${ECHO_T}$SED" >&6
252b5132 4488
ce2cded5
L
4489test -z "$SED" && SED=sed
4490Xsed="$SED -e 1s/^X//"
4867be41 4491
32fba81d 4492
42ecbf5e
DJ
4493
4494
ac48eca1 4495
252b5132 4496
252b5132 4497
42ecbf5e 4498
ac48eca1 4499
d7040cdb 4500
d7040cdb 4501
ce2cded5
L
4502echo "$as_me:$LINENO: checking for egrep" >&5
4503echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4504if test "${ac_cv_prog_egrep+set}" = set; then
4505 echo $ECHO_N "(cached) $ECHO_C" >&6
4506else
4507 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4508 then ac_cv_prog_egrep='grep -E'
4509 else ac_cv_prog_egrep='egrep'
4510 fi
252b5132 4511fi
ce2cded5
L
4512echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4513echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4514 EGREP=$ac_cv_prog_egrep
252b5132 4515
252b5132 4516
ce2cded5
L
4517echo "$as_me:$LINENO: checking for fgrep" >&5
4518echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4519if test "${ac_cv_prog_fgrep+set}" = set; then
4520 echo $ECHO_N "(cached) $ECHO_C" >&6
4521else
4522 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4523 then ac_cv_prog_fgrep='grep -F'
4524 else ac_cv_prog_fgrep='fgrep'
4525 fi
4526fi
4527echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4528echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4529 FGREP=$ac_cv_prog_fgrep
252b5132 4530
252b5132 4531
ce2cded5 4532test -z "$GREP" && GREP=grep
42ecbf5e 4533
42ecbf5e 4534
252b5132 4535
252b5132 4536
252b5132
RH
4537
4538
252b5132 4539
252b5132 4540
252b5132 4541
ac48eca1 4542
42ecbf5e
DJ
4543
4544
4545
4546
4547
ac48eca1 4548
252b5132 4549
42ecbf5e 4550
9c8ebd6a 4551
ce2cded5
L
4552# Check whether --with-gnu-ld or --without-gnu-ld was given.
4553if test "${with_gnu_ld+set}" = set; then
4554 withval="$with_gnu_ld"
4555 test "$withval" = no || with_gnu_ld=yes
d7040cdb 4556else
ce2cded5
L
4557 with_gnu_ld=no
4558fi;
4559ac_prog=ld
4560if test "$GCC" = yes; then
4561 # Check if gcc -print-prog-name=ld gives a path.
4562 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4563echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4564 case $host in
4565 *-*-mingw*)
4566 # gcc leaves a trailing carriage return which upsets mingw
4567 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4568 *)
4569 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4570 esac
4571 case $ac_prog in
4572 # Accept absolute paths.
4573 [\\/]* | ?:[\\/]*)
4574 re_direlt='/[^/][^/]*/\.\./'
4575 # Canonicalize the pathname of ld
4576 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4577 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4578 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4579 done
4580 test -z "$LD" && LD="$ac_prog"
4581 ;;
4582 "")
4583 # If it fails, then pretend we aren't using GCC.
4584 ac_prog=ld
4585 ;;
4586 *)
4587 # If it is relative, then search for the first ld in PATH.
4588 with_gnu_ld=unknown
4589 ;;
4590 esac
4591elif test "$with_gnu_ld" = yes; then
4592 echo "$as_me:$LINENO: checking for GNU ld" >&5
4593echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4594else
4595 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4596echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4597fi
4598if test "${lt_cv_path_LD+set}" = set; then
4599 echo $ECHO_N "(cached) $ECHO_C" >&6
4600else
4601 if test -z "$LD"; then
4602 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4603 for ac_dir in $PATH; do
4604 IFS="$lt_save_ifs"
4605 test -z "$ac_dir" && ac_dir=.
4606 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4607 lt_cv_path_LD="$ac_dir/$ac_prog"
4608 # Check to see if the program is GNU ld. I'd rather use --version,
4609 # but apparently some variants of GNU ld only accept -v.
4610 # Break only if it was the GNU/non-GNU ld that we prefer.
4611 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4612 *GNU* | *'with BFD'*)
4613 test "$with_gnu_ld" != no && break
4614 ;;
4615 *)
4616 test "$with_gnu_ld" != yes && break
4617 ;;
4618 esac
4619 fi
4620 done
4621 IFS="$lt_save_ifs"
4622else
4623 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4624fi
4625fi
9e9b66a9 4626
ce2cded5
L
4627LD="$lt_cv_path_LD"
4628if test -n "$LD"; then
4629 echo "$as_me:$LINENO: result: $LD" >&5
4630echo "${ECHO_T}$LD" >&6
4631else
4632 echo "$as_me:$LINENO: result: no" >&5
4633echo "${ECHO_T}no" >&6
4634fi
4635test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4636echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4637 { (exit 1); exit 1; }; }
4638echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4639echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4640if test "${lt_cv_prog_gnu_ld+set}" = set; then
4641 echo $ECHO_N "(cached) $ECHO_C" >&6
4642else
4643 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4644case `$LD -v 2>&1 </dev/null` in
d7040cdb 4645*GNU* | *'with BFD'*)
ce2cded5
L
4646 lt_cv_prog_gnu_ld=yes
4647 ;;
4648*)
4649 lt_cv_prog_gnu_ld=no
d7040cdb
SE
4650 ;;
4651esac
ce2cded5
L
4652fi
4653echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4654echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4655with_gnu_ld=$lt_cv_prog_gnu_ld
42ecbf5e 4656
e5a52504 4657
d7040cdb 4658
d7040cdb 4659
d7040cdb 4660
d7040cdb 4661
d7040cdb 4662
d7040cdb 4663
d7040cdb 4664
d7040cdb 4665
ce2cded5
L
4666echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4667echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
4668if test "${lt_cv_path_NM+set}" = set; then
4669 echo $ECHO_N "(cached) $ECHO_C" >&6
4670else
4671 if test -n "$NM"; then
4672 # Let the user override the test.
4673 lt_cv_path_NM="$NM"
4674else
4675 lt_nm_to_check="${ac_tool_prefix}nm"
4676 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4677 lt_nm_to_check="$lt_nm_to_check nm"
4678 fi
4679 for lt_tmp_nm in $lt_nm_to_check; do
4680 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4681 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4682 IFS="$lt_save_ifs"
4683 test -z "$ac_dir" && ac_dir=.
4684 tmp_nm="$ac_dir/$lt_tmp_nm"
4685 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4686 # Check to see if the nm accepts a BSD-compat flag.
4687 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4688 # nm: unknown option "B" ignored
4689 # Tru64's nm complains that /dev/null is an invalid object file
4690 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4691 */dev/null* | *'Invalid file or object type'*)
4692 lt_cv_path_NM="$tmp_nm -B"
4693 break
4694 ;;
4695 *)
4696 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4697 */dev/null*)
4698 lt_cv_path_NM="$tmp_nm -p"
4699 break
4700 ;;
4701 *)
4702 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4703 continue # so that we can try to find one that supports BSD flags
4704 ;;
4705 esac
4706 ;;
4707 esac
4708 fi
4709 done
4710 IFS="$lt_save_ifs"
4711 done
4712 : ${lt_cv_path_NM=no}
4713fi
4714fi
4715echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4716echo "${ECHO_T}$lt_cv_path_NM" >&6
4717if test "$lt_cv_path_NM" != "no"; then
4718 NM="$lt_cv_path_NM"
4719else
4720 # Didn't find any BSD compatible name lister, look for dumpbin.
4721 if test -n "$ac_tool_prefix"; then
4722 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4723 do
4724 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4725set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4726echo "$as_me:$LINENO: checking for $ac_word" >&5
4727echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4728if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4729 echo $ECHO_N "(cached) $ECHO_C" >&6
4730else
4731 if test -n "$DUMPBIN"; then
4732 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4733else
4734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4735for as_dir in $PATH
4736do
4737 IFS=$as_save_IFS
4738 test -z "$as_dir" && as_dir=.
4739 for ac_exec_ext in '' $ac_executable_extensions; do
4740 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4741 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4743 break 2
42ecbf5e 4744 fi
42ecbf5e 4745done
ce2cded5 4746done
d15b04bd 4747
ce2cded5
L
4748fi
4749fi
4750DUMPBIN=$ac_cv_prog_DUMPBIN
4751if test -n "$DUMPBIN"; then
4752 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4753echo "${ECHO_T}$DUMPBIN" >&6
4754else
4755 echo "$as_me:$LINENO: result: no" >&5
4756echo "${ECHO_T}no" >&6
252b5132 4757fi
d7040cdb 4758
ce2cded5
L
4759 test -n "$DUMPBIN" && break
4760 done
42ecbf5e 4761fi
ce2cded5
L
4762if test -z "$DUMPBIN"; then
4763 ac_ct_DUMPBIN=$DUMPBIN
4764 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4765do
4766 # Extract the first word of "$ac_prog", so it can be a program name with args.
4767set dummy $ac_prog; ac_word=$2
4768echo "$as_me:$LINENO: checking for $ac_word" >&5
4769echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4770if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4771 echo $ECHO_N "(cached) $ECHO_C" >&6
42ecbf5e 4772else
ce2cded5
L
4773 if test -n "$ac_ct_DUMPBIN"; then
4774 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4775else
4776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4777for as_dir in $PATH
4778do
4779 IFS=$as_save_IFS
4780 test -z "$as_dir" && as_dir=.
4781 for ac_exec_ext in '' $ac_executable_extensions; do
4782 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4783 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4785 break 2
4786 fi
4787done
4788done
4789
4790fi
4791fi
4792ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4793if test -n "$ac_ct_DUMPBIN"; then
4794 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4795echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4796else
4797 echo "$as_me:$LINENO: result: no" >&5
4798echo "${ECHO_T}no" >&6
e5a52504
MM
4799fi
4800
ce2cded5
L
4801 test -n "$ac_ct_DUMPBIN" && break
4802done
4803test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
d15b04bd 4804
ce2cded5
L
4805 DUMPBIN=$ac_ct_DUMPBIN
4806fi
42ecbf5e 4807
42ecbf5e 4808
ce2cded5
L
4809 if test "$DUMPBIN" != ":"; then
4810 NM="$DUMPBIN"
4811 fi
4812fi
4813test -z "$NM" && NM=nm
42ecbf5e 4814
252b5132 4815
42ecbf5e 4816
42ecbf5e 4817
252b5132 4818
42ecbf5e 4819
ce2cded5
L
4820echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4821echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4822if test "${lt_cv_nm_interface+set}" = set; then
4823 echo $ECHO_N "(cached) $ECHO_C" >&6
4824else
4825 lt_cv_nm_interface="BSD nm"
4826 echo "int some_variable = 0;" > conftest.$ac_ext
7a283e07 4827 (eval echo "\"\$as_me:4827: $ac_compile\"" >&5)
ce2cded5
L
4828 (eval "$ac_compile" 2>conftest.err)
4829 cat conftest.err >&5
7a283e07 4830 (eval echo "\"\$as_me:4830: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
ce2cded5
L
4831 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4832 cat conftest.err >&5
7a283e07 4833 (eval echo "\"\$as_me:4833: output\"" >&5)
ce2cded5
L
4834 cat conftest.out >&5
4835 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4836 lt_cv_nm_interface="MS dumpbin"
4837 fi
4838 rm -f conftest*
4839fi
4840echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4841echo "${ECHO_T}$lt_cv_nm_interface" >&6
d15b04bd 4842
ce2cded5
L
4843echo "$as_me:$LINENO: checking whether ln -s works" >&5
4844echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4845LN_S=$as_ln_s
4846if test "$LN_S" = "ln -s"; then
4847 echo "$as_me:$LINENO: result: yes" >&5
4848echo "${ECHO_T}yes" >&6
4849else
4850 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4851echo "${ECHO_T}no, using $LN_S" >&6
4852fi
42ecbf5e 4853
ce2cded5
L
4854# find the maximum length of command line arguments
4855echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4856echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4857if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4858 echo $ECHO_N "(cached) $ECHO_C" >&6
4859else
4860 i=0
4861 teststring="ABCD"
252b5132 4862
ce2cded5
L
4863 case $build_os in
4864 msdosdjgpp*)
4865 # On DJGPP, this test can blow up pretty badly due to problems in libc
4866 # (any single argument exceeding 2000 bytes causes a buffer overrun
4867 # during glob expansion). Even if it were fixed, the result of this
4868 # check would be larger than it should be.
4869 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4870 ;;
e5a52504 4871
ce2cded5
L
4872 gnu*)
4873 # Under GNU Hurd, this test is not required because there is
4874 # no limit to the length of command line arguments.
4875 # Libtool will interpret -1 as no limit whatsoever
4876 lt_cv_sys_max_cmd_len=-1;
4877 ;;
42ecbf5e 4878
ce2cded5
L
4879 cygwin* | mingw*)
4880 # On Win9x/ME, this test blows up -- it succeeds, but takes
4881 # about 5 minutes as the teststring grows exponentially.
4882 # Worse, since 9x/ME are not pre-emptively multitasking,
4883 # you end up with a "frozen" computer, even though with patience
4884 # the test eventually succeeds (with a max line length of 256k).
4885 # Instead, let's just punt: use the minimum linelength reported by
4886 # all of the supported platforms: 8192 (on NT/2K/XP).
4887 lt_cv_sys_max_cmd_len=8192;
4888 ;;
42ecbf5e 4889
ce2cded5
L
4890 amigaos*)
4891 # On AmigaOS with pdksh, this test takes hours, literally.
4892 # So we just punt and use a minimum line length of 8192.
4893 lt_cv_sys_max_cmd_len=8192;
4894 ;;
42ecbf5e 4895
ce2cded5
L
4896 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4897 # This has been around since 386BSD, at least. Likely further.
4898 if test -x /sbin/sysctl; then
4899 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4900 elif test -x /usr/sbin/sysctl; then
4901 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4902 else
4903 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4904 fi
4905 # And add a safety zone
4906 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4907 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4908 ;;
42ecbf5e 4909
ce2cded5
L
4910 interix*)
4911 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4912 lt_cv_sys_max_cmd_len=196608
4913 ;;
d7040cdb 4914
ce2cded5
L
4915 osf*)
4916 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4917 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4918 # nice to cause kernel panics so lets avoid the loop below.
4919 # First set a reasonable default.
4920 lt_cv_sys_max_cmd_len=16384
4921 #
4922 if test -x /sbin/sysconfig; then
4923 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4924 *1*) lt_cv_sys_max_cmd_len=-1 ;;
d7040cdb 4925 esac
ce2cded5
L
4926 fi
4927 ;;
4928 sco3.2v5*)
4929 lt_cv_sys_max_cmd_len=102400
4930 ;;
4931 sysv5* | sco5v6* | sysv4.2uw2*)
4932 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4933 if test -n "$kargmax"; then
4934 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
d7040cdb 4935 else
ce2cded5 4936 lt_cv_sys_max_cmd_len=32768
d7040cdb 4937 fi
ce2cded5
L
4938 ;;
4939 *)
4940 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
4941 if test -n $lt_cv_sys_max_cmd_len; then
4942 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4943 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4944 else
4945 # Make teststring a little bigger before we do anything with it.
4946 # a 1K string should be a reasonable start.
4947 for i in 1 2 3 4 5 6 7 8 ; do
4948 teststring=$teststring$teststring
4949 done
4950 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4951 # If test is not a shell built-in, we'll probably end up computing a
4952 # maximum length that is only half of the actual maximum length, but
4953 # we can't tell.
4954 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4955 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4956 test $i != 17 # 1/2 MB should be enough
4957 do
4958 i=`expr $i + 1`
4959 teststring=$teststring$teststring
4960 done
4961 # Only check the string length outside the loop.
4962 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4963 teststring=
4964 # Add a significant safety factor because C++ compilers can tack on
4965 # massive amounts of additional arguments before passing them to the
4966 # linker. It appears as though 1/2 is a usable value.
4967 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4968 fi
4969 ;;
4970 esac
d7040cdb 4971
ce2cded5 4972fi
d7040cdb 4973
ce2cded5
L
4974if test -n $lt_cv_sys_max_cmd_len ; then
4975 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4976echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
42ecbf5e 4977else
ce2cded5
L
4978 echo "$as_me:$LINENO: result: none" >&5
4979echo "${ECHO_T}none" >&6
4980fi
4981max_cmd_len=$lt_cv_sys_max_cmd_len
d7040cdb 4982
42ecbf5e 4983
252b5132 4984
42ecbf5e 4985
42ecbf5e 4986
d7040cdb 4987
d7040cdb 4988
ce2cded5
L
4989: ${CP="cp -f"}
4990: ${MV="mv -f"}
4991: ${RM="rm -f"}
d7040cdb 4992
ce2cded5
L
4993echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4994echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4995# Try some XSI features
4996xsi_shell=no
4997( _lt_dummy="a/b/c"
4998 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4999 = c,a/b,, ) >/dev/null 2>&1 \
5000 && xsi_shell=yes
5001echo "$as_me:$LINENO: result: $xsi_shell" >&5
5002echo "${ECHO_T}$xsi_shell" >&6
d7040cdb 5003
ce2cded5
L
5004
5005echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5006echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
5007lt_shell_append=no
5008( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5009 >/dev/null 2>&1 \
5010 && lt_shell_append=yes
5011echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5012echo "${ECHO_T}$lt_shell_append" >&6
5013
5014
5015if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5016 lt_unset=unset
d7040cdb 5017else
ce2cded5 5018 lt_unset=false
d7040cdb 5019fi
42ecbf5e 5020
42ecbf5e 5021
42ecbf5e 5022
42ecbf5e 5023
d7040cdb 5024
ce2cded5
L
5025# test EBCDIC or ASCII
5026case `echo X|tr X '\101'` in
5027 A) # ASCII based system
5028 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5029 lt_SP2NL='tr \040 \012'
5030 lt_NL2SP='tr \015\012 \040\040'
5031 ;;
5032 *) # EBCDIC based system
5033 lt_SP2NL='tr \100 \n'
5034 lt_NL2SP='tr \r\n \100\100'
5035 ;;
5036esac
d7040cdb 5037
42ecbf5e 5038
d7040cdb 5039
d7040cdb 5040
d7040cdb
SE
5041
5042
d7040cdb 5043
d7040cdb 5044
42ecbf5e 5045
ce2cded5
L
5046echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5047echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5048if test "${lt_cv_ld_reload_flag+set}" = set; then
5049 echo $ECHO_N "(cached) $ECHO_C" >&6
5050else
5051 lt_cv_ld_reload_flag='-r'
42ecbf5e 5052fi
ce2cded5
L
5053echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5054echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5055reload_flag=$lt_cv_ld_reload_flag
5056case $reload_flag in
5057"" | " "*) ;;
5058*) reload_flag=" $reload_flag" ;;
5059esac
5060reload_cmds='$LD$reload_flag -o $output$reload_objs'
5061case $host_os in
5062 darwin*)
5063 if test "$GCC" = yes; then
5064 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5065 else
5066 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5067 fi
5068 ;;
5069esac
42ecbf5e 5070
252b5132 5071
d7040cdb 5072
252b5132 5073
252b5132 5074
252b5132 5075
252b5132
RH
5076
5077
ce2cded5
L
5078
5079
5080echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5081echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
5082if test "${lt_cv_deplibs_check_method+set}" = set; then
5083 echo $ECHO_N "(cached) $ECHO_C" >&6
d7040cdb 5084else
ce2cded5
L
5085 lt_cv_file_magic_cmd='$MAGIC_CMD'
5086lt_cv_file_magic_test_file=
5087lt_cv_deplibs_check_method='unknown'
5088# Need to set the preceding variable on all platforms that support
5089# interlibrary dependencies.
5090# 'none' -- dependencies not supported.
5091# `unknown' -- same as none, but documents that we really don't know.
5092# 'pass_all' -- all dependencies passed with no checks.
5093# 'test_compile' -- check by making test program.
5094# 'file_magic [[regex]]' -- check by looking for files in library path
5095# which responds to the $file_magic_cmd with a given extended regex.
5096# If you have `file' or equivalent on your system and you're not sure
5097# whether `pass_all' will *always* work, you probably want this one.
b83ef3ee 5098
ce2cded5 5099case $host_os in
50e7d84b 5100aix[4-9]*)
ce2cded5
L
5101 lt_cv_deplibs_check_method=pass_all
5102 ;;
20e95c23 5103
ce2cded5
L
5104beos*)
5105 lt_cv_deplibs_check_method=pass_all
5106 ;;
20e95c23 5107
ce2cded5
L
5108bsdi[45]*)
5109 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5110 lt_cv_file_magic_cmd='/usr/bin/file -L'
5111 lt_cv_file_magic_test_file=/shlib/libc.so
5112 ;;
20e95c23 5113
ce2cded5
L
5114cygwin*)
5115 # func_win32_libid is a shell function defined in ltmain.sh
5116 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5117 lt_cv_file_magic_cmd='func_win32_libid'
5118 ;;
20e95c23 5119
ce2cded5
L
5120mingw* | pw32*)
5121 # Base MSYS/MinGW do not provide the 'file' command needed by
5122 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5123 # unless we find 'file', for example because we are cross-compiling.
5124 if ( file / ) >/dev/null 2>&1; then
5125 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5126 lt_cv_file_magic_cmd='func_win32_libid'
5127 else
5128 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5129 lt_cv_file_magic_cmd='$OBJDUMP -f'
5130 fi
5131 ;;
20e95c23 5132
ce2cded5
L
5133darwin* | rhapsody*)
5134 lt_cv_deplibs_check_method=pass_all
5135 ;;
20e95c23 5136
ce2cded5
L
5137freebsd* | dragonfly*)
5138 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5139 case $host_cpu in
5140 i*86 )
5141 # Not sure whether the presence of OpenBSD here was a mistake.
5142 # Let's accept both of them until this is cleared up.
5143 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5144 lt_cv_file_magic_cmd=/usr/bin/file
5145 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5146 ;;
5147 esac
5148 else
5149 lt_cv_deplibs_check_method=pass_all
5150 fi
5151 ;;
20e95c23 5152
ce2cded5
L
5153gnu*)
5154 lt_cv_deplibs_check_method=pass_all
5155 ;;
20e95c23 5156
ce2cded5
L
5157hpux10.20* | hpux11*)
5158 lt_cv_file_magic_cmd=/usr/bin/file
5159 case $host_cpu in
5160 ia64*)
5161 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5162 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5163 ;;
5164 hppa*64*)
5165 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]'
5166 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5167 ;;
5168 *)
5169 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5170 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5171 ;;
5172 esac
5173 ;;
20e95c23 5174
ce2cded5
L
5175interix[3-9]*)
5176 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5177 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5178 ;;
20e95c23 5179
ce2cded5
L
5180irix5* | irix6* | nonstopux*)
5181 case $LD in
5182 *-32|*"-32 ") libmagic=32-bit;;
5183 *-n32|*"-n32 ") libmagic=N32;;
5184 *-64|*"-64 ") libmagic=64-bit;;
5185 *) libmagic=never-match;;
5186 esac
5187 lt_cv_deplibs_check_method=pass_all
5188 ;;
20e95c23 5189
ce2cded5
L
5190# This must be Linux ELF.
5191linux* | k*bsd*-gnu)
5192 lt_cv_deplibs_check_method=pass_all
5193 ;;
20e95c23 5194
ce2cded5
L
5195netbsd*)
5196 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5197 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5198 else
5199 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5200 fi
5201 ;;
20e95c23 5202
ce2cded5
L
5203newos6*)
5204 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5205 lt_cv_file_magic_cmd=/usr/bin/file
5206 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5207 ;;
20e95c23 5208
ce2cded5
L
5209*nto* | *qnx*)
5210 lt_cv_deplibs_check_method=pass_all
5211 ;;
20e95c23 5212
ce2cded5
L
5213openbsd*)
5214 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5215 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5216 else
5217 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5218 fi
5219 ;;
20e95c23 5220
ce2cded5
L
5221osf3* | osf4* | osf5*)
5222 lt_cv_deplibs_check_method=pass_all
5223 ;;
20e95c23 5224
ce2cded5
L
5225rdos*)
5226 lt_cv_deplibs_check_method=pass_all
5227 ;;
20e95c23 5228
ce2cded5
L
5229solaris*)
5230 lt_cv_deplibs_check_method=pass_all
5231 ;;
20e95c23 5232
ce2cded5
L
5233sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5234 lt_cv_deplibs_check_method=pass_all
5235 ;;
20e95c23 5236
ce2cded5
L
5237sysv4 | sysv4.3*)
5238 case $host_vendor in
5239 motorola)
5240 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]'
5241 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5242 ;;
5243 ncr)
5244 lt_cv_deplibs_check_method=pass_all
5245 ;;
5246 sequent)
5247 lt_cv_file_magic_cmd='/bin/file'
5248 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5249 ;;
5250 sni)
5251 lt_cv_file_magic_cmd='/bin/file'
5252 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5253 lt_cv_file_magic_test_file=/lib/libc.so
5254 ;;
5255 siemens)
5256 lt_cv_deplibs_check_method=pass_all
5257 ;;
5258 pc)
5259 lt_cv_deplibs_check_method=pass_all
5260 ;;
5261 esac
5262 ;;
d7040cdb 5263
ce2cded5
L
5264tpf*)
5265 lt_cv_deplibs_check_method=pass_all
5266 ;;
5267esac
d7040cdb 5268
20e95c23 5269fi
ce2cded5
L
5270echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5271echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5272file_magic_cmd=$lt_cv_file_magic_cmd
5273deplibs_check_method=$lt_cv_deplibs_check_method
5274test -z "$deplibs_check_method" && deplibs_check_method=unknown
d7040cdb
SE
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
20e95c23 5286
ce2cded5
L
5287if test -n "$ac_tool_prefix"; then
5288 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5289set dummy ${ac_tool_prefix}ar; ac_word=$2
5290echo "$as_me:$LINENO: checking for $ac_word" >&5
5291echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5292if test "${ac_cv_prog_AR+set}" = set; then
d7040cdb 5293 echo $ECHO_N "(cached) $ECHO_C" >&6
20e95c23 5294else
ce2cded5
L
5295 if test -n "$AR"; then
5296 ac_cv_prog_AR="$AR" # Let the user override the test.
d7040cdb 5297else
ce2cded5
L
5298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5299for as_dir in $PATH
5300do
5301 IFS=$as_save_IFS
5302 test -z "$as_dir" && as_dir=.
5303 for ac_exec_ext in '' $ac_executable_extensions; do
5304 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5305 ac_cv_prog_AR="${ac_tool_prefix}ar"
5306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5307 break 2
5308 fi
5309done
5310done
5311
d7040cdb 5312fi
42ecbf5e 5313fi
ce2cded5
L
5314AR=$ac_cv_prog_AR
5315if test -n "$AR"; then
5316 echo "$as_me:$LINENO: result: $AR" >&5
5317echo "${ECHO_T}$AR" >&6
5318else
5319 echo "$as_me:$LINENO: result: no" >&5
5320echo "${ECHO_T}no" >&6
5321fi
d7040cdb 5322
ce2cded5
L
5323fi
5324if test -z "$ac_cv_prog_AR"; then
5325 ac_ct_AR=$AR
5326 # Extract the first word of "ar", so it can be a program name with args.
5327set dummy ar; ac_word=$2
5328echo "$as_me:$LINENO: checking for $ac_word" >&5
5329echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5330if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5331 echo $ECHO_N "(cached) $ECHO_C" >&6
5332else
5333 if test -n "$ac_ct_AR"; then
5334 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5335else
5336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5337for as_dir in $PATH
5338do
5339 IFS=$as_save_IFS
5340 test -z "$as_dir" && as_dir=.
5341 for ac_exec_ext in '' $ac_executable_extensions; do
5342 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5343 ac_cv_prog_ac_ct_AR="ar"
5344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5345 break 2
5346 fi
5347done
5348done
d7040cdb 5349
ce2cded5
L
5350 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5351fi
5352fi
5353ac_ct_AR=$ac_cv_prog_ac_ct_AR
5354if test -n "$ac_ct_AR"; then
5355 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5356echo "${ECHO_T}$ac_ct_AR" >&6
5357else
5358 echo "$as_me:$LINENO: result: no" >&5
5359echo "${ECHO_T}no" >&6
5360fi
d7040cdb 5361
ce2cded5
L
5362 AR=$ac_ct_AR
5363else
5364 AR="$ac_cv_prog_AR"
5365fi
d7040cdb 5366
ce2cded5
L
5367test -z "$AR" && AR=ar
5368test -z "$AR_FLAGS" && AR_FLAGS=cru
d7040cdb
SE
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
ce2cded5
L
5380if test -n "$ac_tool_prefix"; then
5381 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5382set dummy ${ac_tool_prefix}strip; ac_word=$2
5383echo "$as_me:$LINENO: checking for $ac_word" >&5
5384echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5385if test "${ac_cv_prog_STRIP+set}" = set; then
5386 echo $ECHO_N "(cached) $ECHO_C" >&6
5387else
5388 if test -n "$STRIP"; then
5389 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5390else
5391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5392for as_dir in $PATH
5393do
5394 IFS=$as_save_IFS
5395 test -z "$as_dir" && as_dir=.
5396 for ac_exec_ext in '' $ac_executable_extensions; do
5397 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5398 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5400 break 2
20e95c23 5401 fi
d7040cdb 5402done
ce2cded5 5403done
d7040cdb 5404
ce2cded5
L
5405fi
5406fi
5407STRIP=$ac_cv_prog_STRIP
5408if test -n "$STRIP"; then
5409 echo "$as_me:$LINENO: result: $STRIP" >&5
5410echo "${ECHO_T}$STRIP" >&6
5411else
5412 echo "$as_me:$LINENO: result: no" >&5
5413echo "${ECHO_T}no" >&6
5414fi
d7040cdb 5415
ce2cded5
L
5416fi
5417if test -z "$ac_cv_prog_STRIP"; then
5418 ac_ct_STRIP=$STRIP
5419 # Extract the first word of "strip", so it can be a program name with args.
5420set dummy strip; ac_word=$2
5421echo "$as_me:$LINENO: checking for $ac_word" >&5
5422echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5423if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
20e95c23
DJ
5424 echo $ECHO_N "(cached) $ECHO_C" >&6
5425else
ce2cded5
L
5426 if test -n "$ac_ct_STRIP"; then
5427 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5428else
5429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5430for as_dir in $PATH
5431do
5432 IFS=$as_save_IFS
5433 test -z "$as_dir" && as_dir=.
5434 for ac_exec_ext in '' $ac_executable_extensions; do
5435 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5436 ac_cv_prog_ac_ct_STRIP="strip"
5437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5438 break 2
5439 fi
5440done
5441done
d7040cdb 5442
ce2cded5 5443 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
20e95c23 5444fi
ce2cded5
L
5445fi
5446ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5447if test -n "$ac_ct_STRIP"; then
5448 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5449echo "${ECHO_T}$ac_ct_STRIP" >&6
42ecbf5e
DJ
5450else
5451 echo "$as_me:$LINENO: result: no" >&5
5452echo "${ECHO_T}no" >&6
5453fi
5454
ce2cded5
L
5455 STRIP=$ac_ct_STRIP
5456else
5457 STRIP="$ac_cv_prog_STRIP"
5458fi
20e95c23 5459
ce2cded5 5460test -z "$STRIP" && STRIP=:
20e95c23 5461
20e95c23 5462
20e95c23 5463
ce2cded5
L
5464
5465
5466
5467if test -n "$ac_tool_prefix"; then
5468 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5469set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5470echo "$as_me:$LINENO: checking for $ac_word" >&5
5471echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5472if test "${ac_cv_prog_RANLIB+set}" = set; then
42ecbf5e
DJ
5473 echo $ECHO_N "(cached) $ECHO_C" >&6
5474else
ce2cded5
L
5475 if test -n "$RANLIB"; then
5476 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5477else
5478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5479for as_dir in $PATH
5480do
5481 IFS=$as_save_IFS
5482 test -z "$as_dir" && as_dir=.
5483 for ac_exec_ext in '' $ac_executable_extensions; do
5484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5485 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5487 break 2
5488 fi
5489done
5490done
d7040cdb 5491
ce2cded5
L
5492fi
5493fi
5494RANLIB=$ac_cv_prog_RANLIB
5495if test -n "$RANLIB"; then
5496 echo "$as_me:$LINENO: result: $RANLIB" >&5
5497echo "${ECHO_T}$RANLIB" >&6
5498else
5499 echo "$as_me:$LINENO: result: no" >&5
5500echo "${ECHO_T}no" >&6
5501fi
d7040cdb 5502
20e95c23 5503fi
ce2cded5
L
5504if test -z "$ac_cv_prog_RANLIB"; then
5505 ac_ct_RANLIB=$RANLIB
5506 # Extract the first word of "ranlib", so it can be a program name with args.
5507set dummy ranlib; ac_word=$2
5508echo "$as_me:$LINENO: checking for $ac_word" >&5
5509echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5510if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5511 echo $ECHO_N "(cached) $ECHO_C" >&6
5512else
5513 if test -n "$ac_ct_RANLIB"; then
5514 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5515else
5516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5517for as_dir in $PATH
5518do
5519 IFS=$as_save_IFS
5520 test -z "$as_dir" && as_dir=.
5521 for ac_exec_ext in '' $ac_executable_extensions; do
5522 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5523 ac_cv_prog_ac_ct_RANLIB="ranlib"
5524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5525 break 2
5526 fi
5527done
5528done
d7040cdb 5529
ce2cded5
L
5530 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5531fi
5532fi
5533ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5534if test -n "$ac_ct_RANLIB"; then
5535 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5536echo "${ECHO_T}$ac_ct_RANLIB" >&6
20e95c23
DJ
5537else
5538 echo "$as_me:$LINENO: result: no" >&5
5539echo "${ECHO_T}no" >&6
5540fi
5541
ce2cded5
L
5542 RANLIB=$ac_ct_RANLIB
5543else
5544 RANLIB="$ac_cv_prog_RANLIB"
d7040cdb 5545fi
20e95c23 5546
ce2cded5 5547test -z "$RANLIB" && RANLIB=:
20e95c23 5548
20e95c23
DJ
5549
5550
5551
5552
d7040cdb 5553
ce2cded5
L
5554# Determine commands to create old-style static archives.
5555old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5556old_postinstall_cmds='chmod 644 $oldlib'
5557old_postuninstall_cmds=
d7040cdb 5558
ce2cded5
L
5559if test -n "$RANLIB"; then
5560 case $host_os in
5561 openbsd*)
5562 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5563 ;;
5564 *)
5565 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5566 ;;
5567 esac
5568 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5569fi
d7040cdb
SE
5570
5571
5572
5573
5574
5575
5576
d7040cdb 5577
d7040cdb 5578
d7040cdb 5579
d7040cdb 5580
d7040cdb 5581
d7040cdb
SE
5582
5583
d7040cdb 5584
d7040cdb 5585
d7040cdb 5586
d7040cdb 5587
d7040cdb 5588
42ecbf5e 5589
d7040cdb
SE
5590
5591
5592
5593
5594
5595
d7040cdb 5596
d7040cdb 5597
d7040cdb 5598
d7040cdb 5599
d7040cdb 5600
d7040cdb 5601
d7040cdb 5602
d7040cdb 5603
ce2cded5
L
5604# If no C compiler was specified, use CC.
5605LTCC=${LTCC-"$CC"}
d7040cdb 5606
ce2cded5
L
5607# If no C compiler flags were specified, use CFLAGS.
5608LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d7040cdb 5609
ce2cded5
L
5610# Allow CC to be a program name with arguments.
5611compiler=$CC
d7040cdb 5612
d7040cdb 5613
ce2cded5
L
5614# Check for command to grab the raw symbol name followed by C symbol from nm.
5615echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5616echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5617if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5618 echo $ECHO_N "(cached) $ECHO_C" >&6
5619else
d7040cdb 5620
ce2cded5
L
5621# These are sane defaults that work on at least a few old systems.
5622# [They come from Ultrix. What could be older than Ultrix?!! ;)]
d7040cdb 5623
ce2cded5
L
5624# Character class describing NM global symbol codes.
5625symcode='[BCDEGRST]'
d7040cdb 5626
ce2cded5
L
5627# Regexp to match symbols that can be accessed directly from C.
5628sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
d7040cdb 5629
ce2cded5
L
5630# Define system-specific variables.
5631case $host_os in
5632aix*)
5633 symcode='[BCDT]'
5634 ;;
5635cygwin* | mingw* | pw32*)
5636 symcode='[ABCDGISTW]'
5637 ;;
5638hpux*)
5639 if test "$host_cpu" = ia64; then
5640 symcode='[ABCDEGRST]'
5641 fi
5642 ;;
5643irix* | nonstopux*)
5644 symcode='[BCDEGRST]'
5645 ;;
5646osf*)
5647 symcode='[BCDEGQRST]'
5648 ;;
5649solaris*)
5650 symcode='[BDRT]'
5651 ;;
5652sco3.2v5*)
5653 symcode='[DT]'
5654 ;;
5655sysv4.2uw2*)
5656 symcode='[DT]'
5657 ;;
5658sysv5* | sco5v6* | unixware* | OpenUNIX*)
5659 symcode='[ABDT]'
5660 ;;
5661sysv4)
5662 symcode='[DFNSTU]'
5663 ;;
5664esac
d7040cdb 5665
ce2cded5
L
5666# If we're using GNU nm, then use its standard symbol codes.
5667case `$NM -V 2>&1` in
5668*GNU* | *'with BFD'*)
5669 symcode='[ABCDGIRSTW]' ;;
5670esac
d7040cdb 5671
ce2cded5
L
5672# Transform an extracted symbol line into a proper C declaration.
5673# Some systems (esp. on ia64) link data and code symbols differently,
5674# so use this general approach.
5675lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
d7040cdb 5676
ce2cded5
L
5677# Transform an extracted symbol line into symbol name and symbol address
5678lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
d7040cdb 5679
ce2cded5
L
5680# Handle CRLF in mingw tool chain
5681opt_cr=
5682case $build_os in
5683mingw*)
5684 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5685 ;;
5686esac
d7040cdb 5687
ce2cded5
L
5688# Try without a prefix underscore, then with it.
5689for ac_symprfx in "" "_"; do
d7040cdb 5690
ce2cded5
L
5691 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5692 symxfrm="\\1 $ac_symprfx\\2 \\2"
d7040cdb 5693
ce2cded5
L
5694 # Write the raw and C identifiers.
5695 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5696 # Fake it for dumpbin and say T for any non-static function
5697 # and D for any global variable.
5698 # Also find C++ and __fastcall symbols from MSVC++,
5699 # which start with @ or ?.
5700 lt_cv_sys_global_symbol_pipe="$AWK '"\
5701" {last_section=section; section=\$ 3};"\
5702" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5703" \$ 0!~/External *\|/{next};"\
5704" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5705" {if(hide[section]) next};"\
5706" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5707" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5708" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5709" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5710" ' prfx=^$ac_symprfx"
5711 else
5712 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5713 fi
d7040cdb 5714
ce2cded5
L
5715 # Check to see that the pipe works correctly.
5716 pipe_works=no
d7040cdb 5717
ce2cded5
L
5718 rm -f conftest*
5719 cat > conftest.$ac_ext <<_LT_EOF
5720#ifdef __cplusplus
5721extern "C" {
5722#endif
5723char nm_test_var;
5724void nm_test_func(void);
5725void nm_test_func(void){}
5726#ifdef __cplusplus
5727}
5728#endif
5729int main(){nm_test_var='a';nm_test_func();return(0);}
5730_LT_EOF
d7040cdb 5731
ce2cded5
L
5732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5733 (eval $ac_compile) 2>&5
5734 ac_status=$?
5735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); }; then
5737 # Now try to grab the symbols.
5738 nlist=conftest.nm
5739 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5740 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5741 ac_status=$?
5742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743 (exit $ac_status); } && test -s "$nlist"; then
5744 # Try sorting and uniquifying the output.
5745 if sort "$nlist" | uniq > "$nlist"T; then
5746 mv -f "$nlist"T "$nlist"
5747 else
5748 rm -f "$nlist"T
5749 fi
d7040cdb 5750
ce2cded5
L
5751 # Make sure that we snagged all the symbols we need.
5752 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5753 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5754 cat <<_LT_EOF > conftest.$ac_ext
5755#ifdef __cplusplus
5756extern "C" {
5757#endif
d7040cdb 5758
ce2cded5
L
5759_LT_EOF
5760 # Now generate the symbol file.
5761 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
d7040cdb 5762
ce2cded5 5763 cat <<_LT_EOF >> conftest.$ac_ext
d7040cdb 5764
ce2cded5
L
5765/* The mapping between symbol names and symbols. */
5766const struct {
5767 const char *name;
5768 void *address;
5769}
5770lt__PROGRAM__LTX_preloaded_symbols[] =
5771{
5772 { "@PROGRAM@", (void *) 0 },
5773_LT_EOF
5774 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5775 cat <<\_LT_EOF >> conftest.$ac_ext
5776 {0, (void *) 0}
5777};
d7040cdb 5778
ce2cded5
L
5779/* This works around a problem in FreeBSD linker */
5780#ifdef FREEBSD_WORKAROUND
5781static const void *lt_preloaded_setup() {
5782 return lt__PROGRAM__LTX_preloaded_symbols;
5783}
5784#endif
d7040cdb 5785
ce2cded5
L
5786#ifdef __cplusplus
5787}
5788#endif
5789_LT_EOF
5790 # Now try linking the two files.
5791 mv conftest.$ac_objext conftstm.$ac_objext
5792 lt_save_LIBS="$LIBS"
5793 lt_save_CFLAGS="$CFLAGS"
5794 LIBS="conftstm.$ac_objext"
5795 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5797 (eval $ac_link) 2>&5
5798 ac_status=$?
5799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5801 pipe_works=yes
5802 fi
5803 LIBS="$lt_save_LIBS"
5804 CFLAGS="$lt_save_CFLAGS"
5805 else
5806 echo "cannot find nm_test_func in $nlist" >&5
5807 fi
5808 else
5809 echo "cannot find nm_test_var in $nlist" >&5
5810 fi
5811 else
5812 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5813 fi
5814 else
5815 echo "$progname: failed program was:" >&5
5816 cat conftest.$ac_ext >&5
5817 fi
5818 rm -f conftest* conftst*
d7040cdb 5819
ce2cded5
L
5820 # Do not use the global_symbol_pipe unless it works.
5821 if test "$pipe_works" = yes; then
5822 break
5823 else
5824 lt_cv_sys_global_symbol_pipe=
5825 fi
5826done
d7040cdb 5827
42ecbf5e 5828fi
d7040cdb 5829
ce2cded5
L
5830if test -z "$lt_cv_sys_global_symbol_pipe"; then
5831 lt_cv_sys_global_symbol_to_cdecl=
5832fi
5833if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5834 echo "$as_me:$LINENO: result: failed" >&5
5835echo "${ECHO_T}failed" >&6
42ecbf5e 5836else
ce2cded5
L
5837 echo "$as_me:$LINENO: result: ok" >&5
5838echo "${ECHO_T}ok" >&6
42ecbf5e
DJ
5839fi
5840
42ecbf5e 5841
d7040cdb
SE
5842
5843
5844
5845
5846
20e95c23 5847
d7040cdb 5848
d7040cdb
SE
5849
5850
5851
5852
5853
5854
5855
20e95c23 5856
ce2cded5
L
5857# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5858if test "${enable_libtool_lock+set}" = set; then
5859 enableval="$enable_libtool_lock"
d7040cdb 5860
ce2cded5
L
5861fi;
5862test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
d7040cdb 5863
ce2cded5
L
5864# Some flags need to be propagated to the compiler or linker for good
5865# libtool support.
5866case $host in
5867ia64-*-hpux*)
5868 # Find out which ABI we are using.
5869 echo 'int i;' > conftest.$ac_ext
5870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5871 (eval $ac_compile) 2>&5
5872 ac_status=$?
5873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874 (exit $ac_status); }; then
5875 case `/usr/bin/file conftest.$ac_objext` in
5876 *ELF-32*)
5877 HPUX_IA64_MODE="32"
5878 ;;
5879 *ELF-64*)
5880 HPUX_IA64_MODE="64"
5881 ;;
5882 esac
5883 fi
5884 rm -rf conftest*
5885 ;;
5886*-*-irix6*)
5887 # Find out which ABI we are using.
7a283e07 5888 echo '#line 5888 "configure"' > conftest.$ac_ext
ce2cded5
L
5889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5890 (eval $ac_compile) 2>&5
5891 ac_status=$?
5892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893 (exit $ac_status); }; then
5894 if test "$lt_cv_prog_gnu_ld" = yes; then
5895 case `/usr/bin/file conftest.$ac_objext` in
5896 *32-bit*)
5897 LD="${LD-ld} -melf32bsmip"
5898 ;;
5899 *N32*)
5900 LD="${LD-ld} -melf32bmipn32"
5901 ;;
5902 *64-bit*)
5903 LD="${LD-ld} -melf64bmip"
5904 ;;
5905 esac
5906 else
5907 case `/usr/bin/file conftest.$ac_objext` in
5908 *32-bit*)
5909 LD="${LD-ld} -32"
5910 ;;
5911 *N32*)
5912 LD="${LD-ld} -n32"
5913 ;;
5914 *64-bit*)
5915 LD="${LD-ld} -64"
5916 ;;
5917 esac
5918 fi
5919 fi
5920 rm -rf conftest*
5921 ;;
d7040cdb 5922
ce2cded5
L
5923x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5924s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5925 # Find out which ABI we are using.
5926 echo 'int i;' > conftest.$ac_ext
5927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5928 (eval $ac_compile) 2>&5
5929 ac_status=$?
5930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931 (exit $ac_status); }; then
5932 case `/usr/bin/file conftest.o` in
5933 *32-bit*)
5934 case $host in
5935 x86_64-*kfreebsd*-gnu)
5936 LD="${LD-ld} -m elf_i386_fbsd"
5937 ;;
5938 x86_64-*linux*)
5939 LD="${LD-ld} -m elf_i386"
5940 ;;
5941 ppc64-*linux*|powerpc64-*linux*)
5942 LD="${LD-ld} -m elf32ppclinux"
5943 ;;
5944 s390x-*linux*)
5945 LD="${LD-ld} -m elf_s390"
5946 ;;
5947 sparc64-*linux*)
5948 LD="${LD-ld} -m elf32_sparc"
5949 ;;
5950 esac
5951 ;;
5952 *64-bit*)
5953 case $host in
5954 x86_64-*kfreebsd*-gnu)
5955 LD="${LD-ld} -m elf_x86_64_fbsd"
5956 ;;
5957 x86_64-*linux*)
5958 LD="${LD-ld} -m elf_x86_64"
5959 ;;
5960 ppc*-*linux*|powerpc*-*linux*)
5961 LD="${LD-ld} -m elf64ppc"
5962 ;;
5963 s390*-*linux*|s390*-*tpf*)
5964 LD="${LD-ld} -m elf64_s390"
5965 ;;
5966 sparc*-*linux*)
5967 LD="${LD-ld} -m elf64_sparc"
5968 ;;
5969 esac
5970 ;;
5971 esac
5972 fi
5973 rm -rf conftest*
5974 ;;
d7040cdb 5975
ce2cded5
L
5976*-*-sco3.2v5*)
5977 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5978 SAVE_CFLAGS="$CFLAGS"
5979 CFLAGS="$CFLAGS -belf"
5980 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5981echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5982if test "${lt_cv_cc_needs_belf+set}" = set; then
20e95c23
DJ
5983 echo $ECHO_N "(cached) $ECHO_C" >&6
5984else
ce2cded5
L
5985 ac_ext=c
5986ac_cpp='$CPP $CPPFLAGS'
5987ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5988ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5989ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 5990
ce2cded5
L
5991 cat >conftest.$ac_ext <<_ACEOF
5992/* confdefs.h. */
5993_ACEOF
5994cat confdefs.h >>conftest.$ac_ext
5995cat >>conftest.$ac_ext <<_ACEOF
5996/* end confdefs.h. */
d7040cdb 5997
ce2cded5
L
5998int
5999main ()
6000{
d7040cdb 6001
ce2cded5
L
6002 ;
6003 return 0;
6004}
6005_ACEOF
6006rm -f conftest.$ac_objext conftest$ac_exeext
6007if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6008 (eval $ac_link) 2>conftest.er1
6009 ac_status=$?
6010 grep -v '^ *+' conftest.er1 >conftest.err
6011 rm -f conftest.er1
6012 cat conftest.err >&5
6013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014 (exit $ac_status); } &&
6015 { ac_try='test -z "$ac_c_werror_flag"
6016 || test ! -s conftest.err'
6017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6018 (eval $ac_try) 2>&5
6019 ac_status=$?
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); }; } &&
6022 { ac_try='test -s conftest$ac_exeext'
6023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6024 (eval $ac_try) 2>&5
6025 ac_status=$?
6026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027 (exit $ac_status); }; }; then
6028 lt_cv_cc_needs_belf=yes
d7040cdb 6029else
ce2cded5
L
6030 echo "$as_me: failed program was:" >&5
6031sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 6032
ce2cded5
L
6033lt_cv_cc_needs_belf=no
6034fi
6035rm -f conftest.err conftest.$ac_objext \
6036 conftest$ac_exeext conftest.$ac_ext
6037 ac_ext=c
6038ac_cpp='$CPP $CPPFLAGS'
6039ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6040ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6041ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 6042
ce2cded5
L
6043fi
6044echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6045echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6046 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6047 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6048 CFLAGS="$SAVE_CFLAGS"
6049 fi
6050 ;;
6051sparc*-*solaris*)
6052 # Find out which ABI we are using.
6053 echo 'int i;' > conftest.$ac_ext
6054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6055 (eval $ac_compile) 2>&5
6056 ac_status=$?
6057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058 (exit $ac_status); }; then
6059 case `/usr/bin/file conftest.o` in
6060 *64-bit*)
6061 case $lt_cv_prog_gnu_ld in
6062 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6063 *) LD="${LD-ld} -64" ;;
6064 esac
6065 ;;
6066 esac
6067 fi
6068 rm -rf conftest*
6069 ;;
6070esac
d7040cdb 6071
ce2cded5 6072need_locks="$enable_libtool_lock"
d7040cdb 6073
ce2cded5
L
6074ac_ext=c
6075ac_cpp='$CPP $CPPFLAGS'
6076ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6077ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6078ac_compiler_gnu=$ac_cv_c_compiler_gnu
6079echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6080echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6081# On Suns, sometimes $CPP names a directory.
6082if test -n "$CPP" && test -d "$CPP"; then
6083 CPP=
6084fi
6085if test -z "$CPP"; then
6086 if test "${ac_cv_prog_CPP+set}" = set; then
6087 echo $ECHO_N "(cached) $ECHO_C" >&6
6088else
6089 # Double quotes because CPP needs to be expanded
6090 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6091 do
6092 ac_preproc_ok=false
6093for ac_c_preproc_warn_flag in '' yes
6094do
6095 # Use a header file that comes with gcc, so configuring glibc
6096 # with a fresh cross-compiler works.
6097 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6098 # <limits.h> exists even on freestanding compilers.
6099 # On the NeXT, cc -E runs the code through the compiler's parser,
6100 # not just through cpp. "Syntax error" is here to catch this case.
6101 cat >conftest.$ac_ext <<_ACEOF
6102/* confdefs.h. */
6103_ACEOF
6104cat confdefs.h >>conftest.$ac_ext
6105cat >>conftest.$ac_ext <<_ACEOF
6106/* end confdefs.h. */
6107#ifdef __STDC__
6108# include <limits.h>
6109#else
6110# include <assert.h>
6111#endif
6112 Syntax error
6113_ACEOF
6114if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6115 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6116 ac_status=$?
6117 grep -v '^ *+' conftest.er1 >conftest.err
6118 rm -f conftest.er1
6119 cat conftest.err >&5
6120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6121 (exit $ac_status); } >/dev/null; then
6122 if test -s conftest.err; then
6123 ac_cpp_err=$ac_c_preproc_warn_flag
6124 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6125 else
6126 ac_cpp_err=
6127 fi
6128else
6129 ac_cpp_err=yes
6130fi
6131if test -z "$ac_cpp_err"; then
6132 :
6133else
6134 echo "$as_me: failed program was:" >&5
6135sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 6136
ce2cded5
L
6137 # Broken: fails on valid input.
6138continue
6139fi
6140rm -f conftest.err conftest.$ac_ext
d7040cdb 6141
ce2cded5
L
6142 # OK, works on sane cases. Now check whether non-existent headers
6143 # can be detected and how.
6144 cat >conftest.$ac_ext <<_ACEOF
6145/* confdefs.h. */
6146_ACEOF
6147cat confdefs.h >>conftest.$ac_ext
6148cat >>conftest.$ac_ext <<_ACEOF
6149/* end confdefs.h. */
6150#include <ac_nonexistent.h>
6151_ACEOF
6152if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6153 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6154 ac_status=$?
6155 grep -v '^ *+' conftest.er1 >conftest.err
6156 rm -f conftest.er1
6157 cat conftest.err >&5
6158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159 (exit $ac_status); } >/dev/null; then
6160 if test -s conftest.err; then
6161 ac_cpp_err=$ac_c_preproc_warn_flag
6162 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6163 else
6164 ac_cpp_err=
6165 fi
6166else
6167 ac_cpp_err=yes
6168fi
6169if test -z "$ac_cpp_err"; then
6170 # Broken: success on invalid input.
6171continue
6172else
6173 echo "$as_me: failed program was:" >&5
6174sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 6175
ce2cded5
L
6176 # Passes both tests.
6177ac_preproc_ok=:
6178break
6179fi
6180rm -f conftest.err conftest.$ac_ext
d7040cdb 6181
ce2cded5
L
6182done
6183# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6184rm -f conftest.err conftest.$ac_ext
6185if $ac_preproc_ok; then
6186 break
6187fi
d7040cdb 6188
ce2cded5
L
6189 done
6190 ac_cv_prog_CPP=$CPP
d7040cdb 6191
ce2cded5
L
6192fi
6193 CPP=$ac_cv_prog_CPP
6194else
6195 ac_cv_prog_CPP=$CPP
6196fi
6197echo "$as_me:$LINENO: result: $CPP" >&5
6198echo "${ECHO_T}$CPP" >&6
6199ac_preproc_ok=false
6200for ac_c_preproc_warn_flag in '' yes
6201do
6202 # Use a header file that comes with gcc, so configuring glibc
6203 # with a fresh cross-compiler works.
6204 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6205 # <limits.h> exists even on freestanding compilers.
6206 # On the NeXT, cc -E runs the code through the compiler's parser,
6207 # not just through cpp. "Syntax error" is here to catch this case.
6208 cat >conftest.$ac_ext <<_ACEOF
6209/* confdefs.h. */
6210_ACEOF
6211cat confdefs.h >>conftest.$ac_ext
6212cat >>conftest.$ac_ext <<_ACEOF
6213/* end confdefs.h. */
6214#ifdef __STDC__
6215# include <limits.h>
6216#else
6217# include <assert.h>
6218#endif
6219 Syntax error
6220_ACEOF
6221if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6222 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6223 ac_status=$?
6224 grep -v '^ *+' conftest.er1 >conftest.err
6225 rm -f conftest.er1
6226 cat conftest.err >&5
6227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6228 (exit $ac_status); } >/dev/null; then
6229 if test -s conftest.err; then
6230 ac_cpp_err=$ac_c_preproc_warn_flag
6231 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6232 else
6233 ac_cpp_err=
6234 fi
6235else
6236 ac_cpp_err=yes
6237fi
6238if test -z "$ac_cpp_err"; then
6239 :
6240else
6241 echo "$as_me: failed program was:" >&5
6242sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 6243
ce2cded5
L
6244 # Broken: fails on valid input.
6245continue
6246fi
6247rm -f conftest.err conftest.$ac_ext
d7040cdb 6248
ce2cded5
L
6249 # OK, works on sane cases. Now check whether non-existent headers
6250 # can be detected and how.
6251 cat >conftest.$ac_ext <<_ACEOF
6252/* confdefs.h. */
6253_ACEOF
6254cat confdefs.h >>conftest.$ac_ext
6255cat >>conftest.$ac_ext <<_ACEOF
6256/* end confdefs.h. */
6257#include <ac_nonexistent.h>
6258_ACEOF
6259if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6260 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6261 ac_status=$?
6262 grep -v '^ *+' conftest.er1 >conftest.err
6263 rm -f conftest.er1
6264 cat conftest.err >&5
6265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266 (exit $ac_status); } >/dev/null; then
6267 if test -s conftest.err; then
6268 ac_cpp_err=$ac_c_preproc_warn_flag
6269 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6270 else
6271 ac_cpp_err=
6272 fi
6273else
6274 ac_cpp_err=yes
6275fi
6276if test -z "$ac_cpp_err"; then
6277 # Broken: success on invalid input.
6278continue
6279else
6280 echo "$as_me: failed program was:" >&5
6281sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 6282
ce2cded5
L
6283 # Passes both tests.
6284ac_preproc_ok=:
6285break
6286fi
6287rm -f conftest.err conftest.$ac_ext
d7040cdb 6288
ce2cded5
L
6289done
6290# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6291rm -f conftest.err conftest.$ac_ext
6292if $ac_preproc_ok; then
6293 :
6294else
7a283e07
RW
6295 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6296echo "$as_me: error: in \`$ac_pwd':" >&2;}
6297{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
ce2cded5
L
6298See \`config.log' for more details." >&5
6299echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6300See \`config.log' for more details." >&2;}
7a283e07 6301 { (exit 1); exit 1; }; }; }
ce2cded5 6302fi
d7040cdb 6303
ce2cded5
L
6304ac_ext=c
6305ac_cpp='$CPP $CPPFLAGS'
6306ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6307ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6308ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 6309
d7040cdb 6310
ce2cded5
L
6311echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6312echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6313if test "${ac_cv_header_stdc+set}" = set; then
6314 echo $ECHO_N "(cached) $ECHO_C" >&6
6315else
6316 cat >conftest.$ac_ext <<_ACEOF
6317/* confdefs.h. */
6318_ACEOF
6319cat confdefs.h >>conftest.$ac_ext
6320cat >>conftest.$ac_ext <<_ACEOF
6321/* end confdefs.h. */
6322#include <stdlib.h>
6323#include <stdarg.h>
6324#include <string.h>
6325#include <float.h>
d7040cdb 6326
ce2cded5
L
6327int
6328main ()
6329{
d7040cdb 6330
20e95c23
DJ
6331 ;
6332 return 0;
6333}
42ecbf5e 6334_ACEOF
ce2cded5
L
6335rm -f conftest.$ac_objext
6336if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6337 (eval $ac_compile) 2>conftest.er1
42ecbf5e
DJ
6338 ac_status=$?
6339 grep -v '^ *+' conftest.er1 >conftest.err
6340 rm -f conftest.er1
6341 cat conftest.err >&5
6342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20e95c23
DJ
6343 (exit $ac_status); } &&
6344 { ac_try='test -z "$ac_c_werror_flag"
6345 || test ! -s conftest.err'
6346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6347 (eval $ac_try) 2>&5
6348 ac_status=$?
6349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6350 (exit $ac_status); }; } &&
ce2cded5 6351 { ac_try='test -s conftest.$ac_objext'
20e95c23
DJ
6352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6353 (eval $ac_try) 2>&5
6354 ac_status=$?
6355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356 (exit $ac_status); }; }; then
ce2cded5 6357 ac_cv_header_stdc=yes
42ecbf5e
DJ
6358else
6359 echo "$as_me: failed program was:" >&5
6360sed 's/^/| /' conftest.$ac_ext >&5
6361
ce2cded5 6362ac_cv_header_stdc=no
42ecbf5e 6363fi
ce2cded5 6364rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d7040cdb 6365
ce2cded5
L
6366if test $ac_cv_header_stdc = yes; then
6367 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6368 cat >conftest.$ac_ext <<_ACEOF
42ecbf5e
DJ
6369/* confdefs.h. */
6370_ACEOF
6371cat confdefs.h >>conftest.$ac_ext
6372cat >>conftest.$ac_ext <<_ACEOF
6373/* end confdefs.h. */
ce2cded5 6374#include <string.h>
20e95c23 6375
42ecbf5e 6376_ACEOF
ce2cded5
L
6377if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6378 $EGREP "memchr" >/dev/null 2>&1; then
6379 :
6380else
6381 ac_cv_header_stdc=no
6382fi
6383rm -f conftest*
d7040cdb 6384
d7040cdb 6385fi
ce2cded5
L
6386
6387if test $ac_cv_header_stdc = yes; then
6388 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6389 cat >conftest.$ac_ext <<_ACEOF
6390/* confdefs.h. */
6391_ACEOF
6392cat confdefs.h >>conftest.$ac_ext
6393cat >>conftest.$ac_ext <<_ACEOF
6394/* end confdefs.h. */
6395#include <stdlib.h>
6396
6397_ACEOF
6398if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6399 $EGREP "free" >/dev/null 2>&1; then
6400 :
252b5132 6401else
ce2cded5
L
6402 ac_cv_header_stdc=no
6403fi
6404rm -f conftest*
42ecbf5e 6405
20e95c23 6406fi
d7040cdb 6407
ce2cded5
L
6408if test $ac_cv_header_stdc = yes; then
6409 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6410 if test "$cross_compiling" = yes; then
6411 :
6412else
6413 cat >conftest.$ac_ext <<_ACEOF
6414/* confdefs.h. */
6415_ACEOF
6416cat confdefs.h >>conftest.$ac_ext
6417cat >>conftest.$ac_ext <<_ACEOF
6418/* end confdefs.h. */
6419#include <ctype.h>
6420#if ((' ' & 0x0FF) == 0x020)
6421# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6422# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6423#else
6424# define ISLOWER(c) \
6425 (('a' <= (c) && (c) <= 'i') \
6426 || ('j' <= (c) && (c) <= 'r') \
6427 || ('s' <= (c) && (c) <= 'z'))
6428# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6429#endif
42ecbf5e 6430
ce2cded5
L
6431#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6432int
6433main ()
6434{
6435 int i;
6436 for (i = 0; i < 256; i++)
6437 if (XOR (islower (i), ISLOWER (i))
6438 || toupper (i) != TOUPPER (i))
6439 exit(2);
6440 exit (0);
6441}
6442_ACEOF
6443rm -f conftest$ac_exeext
6444if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6445 (eval $ac_link) 2>&5
6446 ac_status=$?
6447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6450 (eval $ac_try) 2>&5
6451 ac_status=$?
6452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453 (exit $ac_status); }; }; then
6454 :
6455else
6456 echo "$as_me: program exited with status $ac_status" >&5
6457echo "$as_me: failed program was:" >&5
6458sed 's/^/| /' conftest.$ac_ext >&5
42ecbf5e 6459
ce2cded5
L
6460( exit $ac_status )
6461ac_cv_header_stdc=no
6462fi
6463rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6464fi
6465fi
6466fi
6467echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6468echo "${ECHO_T}$ac_cv_header_stdc" >&6
6469if test $ac_cv_header_stdc = yes; then
e5a52504 6470
ce2cded5
L
6471cat >>confdefs.h <<\_ACEOF
6472#define STDC_HEADERS 1
6473_ACEOF
d7040cdb 6474
ac48eca1 6475fi
e5a52504 6476
ce2cded5 6477# On IRIX 5.3, sys/types and inttypes.h are conflicting.
d7040cdb 6478
d7040cdb 6479
d7040cdb 6480
d7040cdb 6481
d7040cdb 6482
d7040cdb 6483
d7040cdb 6484
d7040cdb 6485
d7040cdb 6486
ce2cded5
L
6487for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6488 inttypes.h stdint.h unistd.h
6489do
6490as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6491echo "$as_me:$LINENO: checking for $ac_header" >&5
6492echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6493if eval "test \"\${$as_ac_Header+set}\" = set"; then
6494 echo $ECHO_N "(cached) $ECHO_C" >&6
6495else
6496 cat >conftest.$ac_ext <<_ACEOF
6497/* confdefs.h. */
6498_ACEOF
6499cat confdefs.h >>conftest.$ac_ext
6500cat >>conftest.$ac_ext <<_ACEOF
6501/* end confdefs.h. */
6502$ac_includes_default
d7040cdb 6503
ce2cded5
L
6504#include <$ac_header>
6505_ACEOF
6506rm -f conftest.$ac_objext
6507if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6508 (eval $ac_compile) 2>conftest.er1
6509 ac_status=$?
6510 grep -v '^ *+' conftest.er1 >conftest.err
6511 rm -f conftest.er1
6512 cat conftest.err >&5
6513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514 (exit $ac_status); } &&
6515 { ac_try='test -z "$ac_c_werror_flag"
6516 || test ! -s conftest.err'
6517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6518 (eval $ac_try) 2>&5
6519 ac_status=$?
6520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6521 (exit $ac_status); }; } &&
6522 { ac_try='test -s conftest.$ac_objext'
6523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6524 (eval $ac_try) 2>&5
6525 ac_status=$?
6526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6527 (exit $ac_status); }; }; then
6528 eval "$as_ac_Header=yes"
6529else
6530 echo "$as_me: failed program was:" >&5
6531sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 6532
ce2cded5
L
6533eval "$as_ac_Header=no"
6534fi
6535rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6536fi
6537echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6538echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6539if test `eval echo '${'$as_ac_Header'}'` = yes; then
6540 cat >>confdefs.h <<_ACEOF
6541#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6542_ACEOF
d7040cdb 6543
ce2cded5
L
6544fi
6545
6546done
6547
6548
6549
6550for ac_header in dlfcn.h
6551do
6552as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6553echo "$as_me:$LINENO: checking for $ac_header" >&5
6554echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6555if eval "test \"\${$as_ac_Header+set}\" = set"; then
6556 echo $ECHO_N "(cached) $ECHO_C" >&6
6557else
6558 cat >conftest.$ac_ext <<_ACEOF
6559/* confdefs.h. */
42ecbf5e 6560_ACEOF
ce2cded5
L
6561cat confdefs.h >>conftest.$ac_ext
6562cat >>conftest.$ac_ext <<_ACEOF
6563/* end confdefs.h. */
6564$ac_includes_default
6565
6566#include <$ac_header>
6567_ACEOF
6568rm -f conftest.$ac_objext
6569if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6570 (eval $ac_compile) 2>conftest.er1
42ecbf5e
DJ
6571 ac_status=$?
6572 grep -v '^ *+' conftest.er1 >conftest.err
6573 rm -f conftest.er1
6574 cat conftest.err >&5
6575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6576 (exit $ac_status); } &&
502bdb00
JW
6577 { ac_try='test -z "$ac_c_werror_flag"
6578 || test ! -s conftest.err'
42ecbf5e
DJ
6579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6580 (eval $ac_try) 2>&5
6581 ac_status=$?
6582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6583 (exit $ac_status); }; } &&
ce2cded5 6584 { ac_try='test -s conftest.$ac_objext'
42ecbf5e
DJ
6585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6586 (eval $ac_try) 2>&5
6587 ac_status=$?
6588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6589 (exit $ac_status); }; }; then
ce2cded5 6590 eval "$as_ac_Header=yes"
252b5132 6591else
42ecbf5e
DJ
6592 echo "$as_me: failed program was:" >&5
6593sed 's/^/| /' conftest.$ac_ext >&5
6594
ce2cded5 6595eval "$as_ac_Header=no"
252b5132 6596fi
ce2cded5
L
6597rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6598fi
6599echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6600echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6601if test `eval echo '${'$as_ac_Header'}'` = yes; then
6602 cat >>confdefs.h <<_ACEOF
6603#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6604_ACEOF
d7040cdb 6605
ce2cded5 6606fi
d7040cdb 6607
ce2cded5 6608done
d7040cdb 6609
d7040cdb 6610
d7040cdb 6611
ce2cded5
L
6612# This can be used to rebuild libtool when needed
6613LIBTOOL_DEPS="$ltmain"
d7040cdb 6614
ce2cded5
L
6615# Always use our own libtool.
6616LIBTOOL='$(SHELL) $(top_builddir)/libtool'
d7040cdb 6617
d7040cdb 6618
d7040cdb 6619
d7040cdb 6620
d7040cdb 6621
d7040cdb 6622
d7040cdb 6623
d7040cdb 6624
d7040cdb 6625
d7040cdb 6626
d7040cdb 6627
d7040cdb 6628
d7040cdb 6629
d7040cdb 6630
d7040cdb 6631
d7040cdb 6632
d7040cdb
SE
6633
6634
6635
6636
6637
6638
6639
6640
6641
ce2cded5 6642test -z "$LN_S" && LN_S="ln -s"
d7040cdb
SE
6643
6644
6645
6646
6647
6648
d7040cdb
SE
6649
6650
6651
6652
6653
6654
6655
6656
ce2cded5
L
6657if test -n "${ZSH_VERSION+set}" ; then
6658 setopt NO_GLOB_SUBST
6659fi
d7040cdb 6660
ce2cded5
L
6661echo "$as_me:$LINENO: checking for objdir" >&5
6662echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6663if test "${lt_cv_objdir+set}" = set; then
6664 echo $ECHO_N "(cached) $ECHO_C" >&6
6665else
6666 rm -f .libs 2>/dev/null
6667mkdir .libs 2>/dev/null
6668if test -d .libs; then
6669 lt_cv_objdir=.libs
6670else
6671 # MS-DOS does not allow filenames that begin with a dot.
6672 lt_cv_objdir=_libs
6673fi
6674rmdir .libs 2>/dev/null
6675fi
6676echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6677echo "${ECHO_T}$lt_cv_objdir" >&6
6678objdir=$lt_cv_objdir
d7040cdb
SE
6679
6680
6681
6682
6683
ce2cded5
L
6684cat >>confdefs.h <<_ACEOF
6685#define LT_OBJDIR "$lt_cv_objdir/"
6686_ACEOF
d7040cdb
SE
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
ce2cded5
L
6704case $host_os in
6705aix3*)
6706 # AIX sometimes has problems with the GCC collect2 program. For some
6707 # reason, if we set the COLLECT_NAMES environment variable, the problems
6708 # vanish in a puff of smoke.
6709 if test "X${COLLECT_NAMES+set}" != Xset; then
6710 COLLECT_NAMES=
6711 export COLLECT_NAMES
6712 fi
6713 ;;
6714esac
d7040cdb 6715
ce2cded5
L
6716# Sed substitution that helps us do robust quoting. It backslashifies
6717# metacharacters that are still active within double-quoted strings.
6718sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
d7040cdb 6719
ce2cded5
L
6720# Same as above, but do not quote variable references.
6721double_quote_subst='s/\(["`\\]\)/\\\1/g'
d7040cdb 6722
ce2cded5
L
6723# Sed substitution to delay expansion of an escaped shell variable in a
6724# double_quote_subst'ed string.
6725delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
d7040cdb 6726
ce2cded5
L
6727# Sed substitution to delay expansion of an escaped single quote.
6728delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
d7040cdb 6729
ce2cded5
L
6730# Sed substitution to avoid accidental globbing in evaled expressions
6731no_glob_subst='s/\*/\\\*/g'
d7040cdb 6732
ce2cded5
L
6733# Global variables:
6734ofile=libtool
6735can_build_shared=yes
d7040cdb 6736
ce2cded5
L
6737# All known linkers require a `.a' archive for static linking (except MSVC,
6738# which needs '.lib').
6739libext=a
d7040cdb 6740
ce2cded5 6741with_gnu_ld="$lt_cv_prog_gnu_ld"
d7040cdb 6742
ce2cded5
L
6743old_CC="$CC"
6744old_CFLAGS="$CFLAGS"
d7040cdb 6745
ce2cded5
L
6746# Set sane defaults for various variables
6747test -z "$CC" && CC=cc
6748test -z "$LTCC" && LTCC=$CC
6749test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6750test -z "$LD" && LD=ld
6751test -z "$ac_objext" && ac_objext=o
d7040cdb 6752
ce2cded5
L
6753for cc_temp in $compiler""; do
6754 case $cc_temp in
6755 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6756 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6757 \-*) ;;
6758 *) break;;
6759 esac
6760done
6761cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
d7040cdb
SE
6762
6763
ce2cded5
L
6764# Only perform the check for file, if the check method requires it
6765test -z "$MAGIC_CMD" && MAGIC_CMD=file
6766case $deplibs_check_method in
6767file_magic*)
6768 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6769 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6770echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6771if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6772 echo $ECHO_N "(cached) $ECHO_C" >&6
6773else
6774 case $MAGIC_CMD in
6775[\\/*] | ?:[\\/]*)
6776 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6777 ;;
6778*)
6779 lt_save_MAGIC_CMD="$MAGIC_CMD"
6780 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6781 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6782 for ac_dir in $ac_dummy; do
6783 IFS="$lt_save_ifs"
6784 test -z "$ac_dir" && ac_dir=.
6785 if test -f $ac_dir/${ac_tool_prefix}file; then
6786 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6787 if test -n "$file_magic_test_file"; then
6788 case $deplibs_check_method in
6789 "file_magic "*)
6790 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6791 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6792 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6793 $EGREP "$file_magic_regex" > /dev/null; then
6794 :
6795 else
6796 cat <<_LT_EOF 1>&2
d7040cdb 6797
ce2cded5
L
6798*** Warning: the command libtool uses to detect shared libraries,
6799*** $file_magic_cmd, produces output that libtool cannot recognize.
6800*** The result is that libtool may fail to recognize shared libraries
6801*** as such. This will affect the creation of libtool libraries that
6802*** depend on shared libraries, but programs linked with such libtool
6803*** libraries will work regardless of this problem. Nevertheless, you
6804*** may want to report the problem to your system manager and/or to
6805*** bug-libtool@gnu.org
d7040cdb 6806
ce2cded5
L
6807_LT_EOF
6808 fi ;;
6809 esac
6810 fi
6811 break
6812 fi
6813 done
6814 IFS="$lt_save_ifs"
6815 MAGIC_CMD="$lt_save_MAGIC_CMD"
6816 ;;
6817esac
6818fi
d7040cdb 6819
ce2cded5
L
6820MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6821if test -n "$MAGIC_CMD"; then
6822 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6823echo "${ECHO_T}$MAGIC_CMD" >&6
6824else
6825 echo "$as_me:$LINENO: result: no" >&5
6826echo "${ECHO_T}no" >&6
6827fi
d7040cdb
SE
6828
6829
6830
6831
6832
ce2cded5
L
6833if test -z "$lt_cv_path_MAGIC_CMD"; then
6834 if test -n "$ac_tool_prefix"; then
6835 echo "$as_me:$LINENO: checking for file" >&5
6836echo $ECHO_N "checking for file... $ECHO_C" >&6
6837if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6838 echo $ECHO_N "(cached) $ECHO_C" >&6
6839else
6840 case $MAGIC_CMD in
6841[\\/*] | ?:[\\/]*)
6842 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6843 ;;
6844*)
6845 lt_save_MAGIC_CMD="$MAGIC_CMD"
6846 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6847 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6848 for ac_dir in $ac_dummy; do
6849 IFS="$lt_save_ifs"
6850 test -z "$ac_dir" && ac_dir=.
6851 if test -f $ac_dir/file; then
6852 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6853 if test -n "$file_magic_test_file"; then
6854 case $deplibs_check_method in
6855 "file_magic "*)
6856 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6857 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6858 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6859 $EGREP "$file_magic_regex" > /dev/null; then
6860 :
6861 else
6862 cat <<_LT_EOF 1>&2
d7040cdb 6863
ce2cded5
L
6864*** Warning: the command libtool uses to detect shared libraries,
6865*** $file_magic_cmd, produces output that libtool cannot recognize.
6866*** The result is that libtool may fail to recognize shared libraries
6867*** as such. This will affect the creation of libtool libraries that
6868*** depend on shared libraries, but programs linked with such libtool
6869*** libraries will work regardless of this problem. Nevertheless, you
6870*** may want to report the problem to your system manager and/or to
6871*** bug-libtool@gnu.org
d7040cdb 6872
ce2cded5
L
6873_LT_EOF
6874 fi ;;
6875 esac
6876 fi
6877 break
6878 fi
6879 done
6880 IFS="$lt_save_ifs"
6881 MAGIC_CMD="$lt_save_MAGIC_CMD"
6882 ;;
6883esac
6884fi
d7040cdb 6885
ce2cded5
L
6886MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6887if test -n "$MAGIC_CMD"; then
6888 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6889echo "${ECHO_T}$MAGIC_CMD" >&6
6890else
6891 echo "$as_me:$LINENO: result: no" >&5
6892echo "${ECHO_T}no" >&6
6893fi
d7040cdb
SE
6894
6895
ce2cded5
L
6896 else
6897 MAGIC_CMD=:
6898 fi
6899fi
d7040cdb 6900
ce2cded5
L
6901 fi
6902 ;;
6903esac
d7040cdb 6904
ce2cded5 6905# Use C for the default configuration in the libtool script
d7040cdb 6906
ce2cded5
L
6907lt_save_CC="$CC"
6908ac_ext=c
6909ac_cpp='$CPP $CPPFLAGS'
6910ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6911ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6912ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb
SE
6913
6914
ce2cded5
L
6915# Source file extension for C test sources.
6916ac_ext=c
d7040cdb 6917
ce2cded5
L
6918# Object file extension for compiled C test sources.
6919objext=o
6920objext=$objext
d7040cdb 6921
ce2cded5
L
6922# Code to be used in simple compile tests
6923lt_simple_compile_test_code="int some_variable = 0;"
d7040cdb 6924
ce2cded5
L
6925# Code to be used in simple link tests
6926lt_simple_link_test_code='int main(){return(0);}'
d7040cdb
SE
6927
6928
6929
6930
6931
6932
6933
ce2cded5
L
6934# If no C compiler was specified, use CC.
6935LTCC=${LTCC-"$CC"}
d7040cdb 6936
ce2cded5
L
6937# If no C compiler flags were specified, use CFLAGS.
6938LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d7040cdb 6939
ce2cded5
L
6940# Allow CC to be a program name with arguments.
6941compiler=$CC
d7040cdb 6942
ce2cded5
L
6943# Save the default compiler, since it gets overwritten when the other
6944# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6945compiler_DEFAULT=$CC
d7040cdb 6946
ce2cded5
L
6947# save warnings/boilerplate of simple test code
6948ac_outfile=conftest.$ac_objext
6949echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6950eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6951_lt_compiler_boilerplate=`cat conftest.err`
6952$RM conftest*
d7040cdb 6953
ce2cded5
L
6954ac_outfile=conftest.$ac_objext
6955echo "$lt_simple_link_test_code" >conftest.$ac_ext
6956eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6957_lt_linker_boilerplate=`cat conftest.err`
6958$RM conftest*
d7040cdb
SE
6959
6960
ce2cded5
L
6961## CAVEAT EMPTOR:
6962## There is no encapsulation within the following macros, do not change
6963## the running order or otherwise move them around unless you know exactly
6964## what you are doing...
6965if test -n "$compiler"; then
d7040cdb 6966
ce2cded5 6967lt_prog_compiler_no_builtin_flag=
d7040cdb 6968
ce2cded5
L
6969if test "$GCC" = yes; then
6970 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
d7040cdb 6971
ce2cded5
L
6972 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6973echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6974if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6975 echo $ECHO_N "(cached) $ECHO_C" >&6
6976else
6977 lt_cv_prog_compiler_rtti_exceptions=no
6978 ac_outfile=conftest.$ac_objext
6979 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6980 lt_compiler_flag="-fno-rtti -fno-exceptions"
6981 # Insert the option either (1) after the last *FLAGS variable, or
6982 # (2) before a word containing "conftest.", or (3) at the end.
6983 # Note that $ac_compile itself does not contain backslashes and begins
6984 # with a dollar sign (not a hyphen), so the echo should work correctly.
6985 # The option is referenced via a variable to avoid confusing sed.
6986 lt_compile=`echo "$ac_compile" | $SED \
6987 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6988 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6989 -e 's:$: $lt_compiler_flag:'`
7a283e07 6990 (eval echo "\"\$as_me:6990: $lt_compile\"" >&5)
ce2cded5
L
6991 (eval "$lt_compile" 2>conftest.err)
6992 ac_status=$?
6993 cat conftest.err >&5
7a283e07 6994 echo "$as_me:6994: \$? = $ac_status" >&5
ce2cded5
L
6995 if (exit $ac_status) && test -s "$ac_outfile"; then
6996 # The compiler can only warn and ignore the option if not recognized
6997 # So say no if there are warnings other than the usual output.
6998 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6999 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7000 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7001 lt_cv_prog_compiler_rtti_exceptions=yes
7002 fi
7003 fi
7004 $RM conftest*
d7040cdb 7005
ce2cded5
L
7006fi
7007echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7008echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
d7040cdb 7009
ce2cded5
L
7010if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7011 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7012else
7013 :
7014fi
d7040cdb 7015
ce2cded5 7016fi
d7040cdb
SE
7017
7018
7019
7020
7021
7022
ce2cded5
L
7023 lt_prog_compiler_wl=
7024lt_prog_compiler_pic=
7025lt_prog_compiler_static=
d7040cdb 7026
ce2cded5
L
7027echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7028echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
d7040cdb 7029
ce2cded5
L
7030 if test "$GCC" = yes; then
7031 lt_prog_compiler_wl='-Wl,'
7032 lt_prog_compiler_static='-static'
d7040cdb 7033
ce2cded5
L
7034 case $host_os in
7035 aix*)
7036 # All AIX code is PIC.
7037 if test "$host_cpu" = ia64; then
7038 # AIX 5 now supports IA64 processor
7039 lt_prog_compiler_static='-Bstatic'
7040 fi
7041 ;;
d7040cdb 7042
ce2cded5
L
7043 amigaos*)
7044 if test "$host_cpu" = m68k; then
7045 # FIXME: we need at least 68020 code to build shared libraries, but
7046 # adding the `-m68020' flag to GCC prevents building anything better,
7047 # like `-m68040'.
7048 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7049 fi
7050 ;;
d7040cdb 7051
ce2cded5
L
7052 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7053 # PIC is the default for these OSes.
7054 ;;
d7040cdb 7055
ce2cded5
L
7056 mingw* | cygwin* | pw32* | os2*)
7057 # This hack is so that the source file can tell whether it is being
7058 # built for inclusion in a dll (and should export symbols for example).
7059 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7060 # (--disable-auto-import) libraries
7061 lt_prog_compiler_pic='-DDLL_EXPORT'
7062 ;;
d7040cdb 7063
ce2cded5
L
7064 darwin* | rhapsody*)
7065 # PIC is the default on this platform
7066 # Common symbols not allowed in MH_DYLIB files
7067 lt_prog_compiler_pic='-fno-common'
7068 ;;
d7040cdb 7069
ce2cded5
L
7070 hpux*)
7071 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7072 # not for PA HP-UX.
7073 case $host_cpu in
7074 hppa*64*|ia64*)
7075 # +Z the default
7076 ;;
7077 *)
7078 lt_prog_compiler_pic='-fPIC'
7079 ;;
7080 esac
7081 ;;
d7040cdb 7082
ce2cded5
L
7083 interix[3-9]*)
7084 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7085 # Instead, we relocate shared libraries at runtime.
7086 ;;
d7040cdb 7087
ce2cded5
L
7088 msdosdjgpp*)
7089 # Just because we use GCC doesn't mean we suddenly get shared libraries
7090 # on systems that don't support them.
7091 lt_prog_compiler_can_build_shared=no
7092 enable_shared=no
7093 ;;
d7040cdb 7094
ce2cded5
L
7095 *nto* | *qnx*)
7096 # QNX uses GNU C++, but need to define -shared option too, otherwise
7097 # it will coredump.
7098 lt_prog_compiler_pic='-fPIC -shared'
7099 ;;
d7040cdb 7100
ce2cded5
L
7101 sysv4*MP*)
7102 if test -d /usr/nec; then
7103 lt_prog_compiler_pic=-Kconform_pic
7104 fi
7105 ;;
d7040cdb 7106
ce2cded5
L
7107 *)
7108 lt_prog_compiler_pic='-fPIC'
7109 ;;
7110 esac
7111 else
7112 # PORTME Check for flag to pass linker flags through the system compiler.
7113 case $host_os in
7114 aix*)
7115 lt_prog_compiler_wl='-Wl,'
7116 if test "$host_cpu" = ia64; then
7117 # AIX 5 now supports IA64 processor
7118 lt_prog_compiler_static='-Bstatic'
7119 else
7120 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7121 fi
7122 ;;
7123 darwin*)
7124 # PIC is the default on this platform
7125 # Common symbols not allowed in MH_DYLIB files
7126 case $cc_basename in
7127 xlc*)
7128 lt_prog_compiler_pic='-qnocommon'
7129 lt_prog_compiler_wl='-Wl,'
7130 ;;
7131 esac
7132 ;;
d7040cdb 7133
ce2cded5
L
7134 mingw* | cygwin* | pw32* | os2*)
7135 # This hack is so that the source file can tell whether it is being
7136 # built for inclusion in a dll (and should export symbols for example).
7137 lt_prog_compiler_pic='-DDLL_EXPORT'
7138 ;;
d7040cdb 7139
ce2cded5
L
7140 hpux9* | hpux10* | hpux11*)
7141 lt_prog_compiler_wl='-Wl,'
7142 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7143 # not for PA HP-UX.
7144 case $host_cpu in
7145 hppa*64*|ia64*)
7146 # +Z the default
7147 ;;
7148 *)
7149 lt_prog_compiler_pic='+Z'
7150 ;;
7151 esac
7152 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7153 lt_prog_compiler_static='${wl}-a ${wl}archive'
7154 ;;
d7040cdb 7155
ce2cded5
L
7156 irix5* | irix6* | nonstopux*)
7157 lt_prog_compiler_wl='-Wl,'
7158 # PIC (with -KPIC) is the default.
7159 lt_prog_compiler_static='-non_shared'
7160 ;;
d7040cdb 7161
ce2cded5
L
7162 linux* | k*bsd*-gnu)
7163 case $cc_basename in
7164 icc* | ecc*)
7165 lt_prog_compiler_wl='-Wl,'
7166 lt_prog_compiler_pic='-KPIC'
7167 lt_prog_compiler_static='-static'
7168 ;;
7169 pgcc* | pgf77* | pgf90* | pgf95*)
7170 # Portland Group compilers (*not* the Pentium gcc compiler,
7171 # which looks to be a dead project)
7172 lt_prog_compiler_wl='-Wl,'
7173 lt_prog_compiler_pic='-fpic'
7174 lt_prog_compiler_static='-Bstatic'
7175 ;;
7176 ccc*)
7177 lt_prog_compiler_wl='-Wl,'
7178 # All Alpha code is PIC.
7179 lt_prog_compiler_static='-non_shared'
7180 ;;
7181 *)
7182 case `$CC -V 2>&1 | sed 5q` in
7183 *Sun\ C*)
7184 # Sun C 5.9
7185 lt_prog_compiler_pic='-KPIC'
7186 lt_prog_compiler_static='-Bstatic'
7187 lt_prog_compiler_wl='-Wl,'
7188 ;;
7189 *Sun\ F*)
7190 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7191 lt_prog_compiler_pic='-KPIC'
7192 lt_prog_compiler_static='-Bstatic'
7193 lt_prog_compiler_wl=''
7194 ;;
7195 esac
7196 ;;
7197 esac
7198 ;;
d7040cdb 7199
ce2cded5
L
7200 newsos6)
7201 lt_prog_compiler_pic='-KPIC'
7202 lt_prog_compiler_static='-Bstatic'
7203 ;;
d7040cdb 7204
ce2cded5
L
7205 *nto* | *qnx*)
7206 # QNX uses GNU C++, but need to define -shared option too, otherwise
7207 # it will coredump.
7208 lt_prog_compiler_pic='-fPIC -shared'
7209 ;;
d7040cdb 7210
ce2cded5
L
7211 osf3* | osf4* | osf5*)
7212 lt_prog_compiler_wl='-Wl,'
7213 # All OSF/1 code is PIC.
7214 lt_prog_compiler_static='-non_shared'
7215 ;;
d7040cdb 7216
ce2cded5
L
7217 rdos*)
7218 lt_prog_compiler_static='-non_shared'
7219 ;;
d7040cdb 7220
ce2cded5
L
7221 solaris*)
7222 lt_prog_compiler_pic='-KPIC'
7223 lt_prog_compiler_static='-Bstatic'
7224 case $cc_basename in
7225 f77* | f90* | f95*)
7226 lt_prog_compiler_wl='-Qoption ld ';;
7227 *)
7228 lt_prog_compiler_wl='-Wl,';;
7229 esac
7230 ;;
d7040cdb 7231
ce2cded5
L
7232 sunos4*)
7233 lt_prog_compiler_wl='-Qoption ld '
7234 lt_prog_compiler_pic='-PIC'
7235 lt_prog_compiler_static='-Bstatic'
7236 ;;
d7040cdb 7237
ce2cded5
L
7238 sysv4 | sysv4.2uw2* | sysv4.3*)
7239 lt_prog_compiler_wl='-Wl,'
7240 lt_prog_compiler_pic='-KPIC'
7241 lt_prog_compiler_static='-Bstatic'
7242 ;;
d7040cdb 7243
ce2cded5
L
7244 sysv4*MP*)
7245 if test -d /usr/nec ;then
7246 lt_prog_compiler_pic='-Kconform_pic'
7247 lt_prog_compiler_static='-Bstatic'
7248 fi
7249 ;;
d7040cdb 7250
ce2cded5
L
7251 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7252 lt_prog_compiler_wl='-Wl,'
7253 lt_prog_compiler_pic='-KPIC'
7254 lt_prog_compiler_static='-Bstatic'
7255 ;;
d7040cdb 7256
ce2cded5
L
7257 unicos*)
7258 lt_prog_compiler_wl='-Wl,'
7259 lt_prog_compiler_can_build_shared=no
7260 ;;
d7040cdb 7261
ce2cded5
L
7262 uts4*)
7263 lt_prog_compiler_pic='-pic'
7264 lt_prog_compiler_static='-Bstatic'
7265 ;;
d7040cdb 7266
ce2cded5
L
7267 *)
7268 lt_prog_compiler_can_build_shared=no
7269 ;;
7270 esac
7271 fi
d7040cdb 7272
ce2cded5
L
7273case $host_os in
7274 # For platforms which do not support PIC, -DPIC is meaningless:
7275 *djgpp*)
7276 lt_prog_compiler_pic=
7277 ;;
7278 *)
7279 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7280 ;;
7281esac
7282echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7283echo "${ECHO_T}$lt_prog_compiler_pic" >&6
d7040cdb
SE
7284
7285
7286
7287
7288
7289
ce2cded5
L
7290#
7291# Check to make sure the PIC flag actually works.
7292#
7293if test -n "$lt_prog_compiler_pic"; then
7294 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7295echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7296if test "${lt_prog_compiler_pic_works+set}" = set; then
7297 echo $ECHO_N "(cached) $ECHO_C" >&6
7298else
7299 lt_prog_compiler_pic_works=no
7300 ac_outfile=conftest.$ac_objext
7301 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7302 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7303 # Insert the option either (1) after the last *FLAGS variable, or
7304 # (2) before a word containing "conftest.", or (3) at the end.
7305 # Note that $ac_compile itself does not contain backslashes and begins
7306 # with a dollar sign (not a hyphen), so the echo should work correctly.
7307 # The option is referenced via a variable to avoid confusing sed.
7308 lt_compile=`echo "$ac_compile" | $SED \
7309 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7310 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7311 -e 's:$: $lt_compiler_flag:'`
7a283e07 7312 (eval echo "\"\$as_me:7312: $lt_compile\"" >&5)
ce2cded5
L
7313 (eval "$lt_compile" 2>conftest.err)
7314 ac_status=$?
7315 cat conftest.err >&5
7a283e07 7316 echo "$as_me:7316: \$? = $ac_status" >&5
ce2cded5
L
7317 if (exit $ac_status) && test -s "$ac_outfile"; then
7318 # The compiler can only warn and ignore the option if not recognized
7319 # So say no if there are warnings other than the usual output.
7320 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7321 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7322 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7323 lt_prog_compiler_pic_works=yes
7324 fi
7325 fi
7326 $RM conftest*
d7040cdb 7327
ce2cded5
L
7328fi
7329echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7330echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7331
7332if test x"$lt_prog_compiler_pic_works" = xyes; then
7333 case $lt_prog_compiler_pic in
7334 "" | " "*) ;;
7335 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7336 esac
7337else
7338 lt_prog_compiler_pic=
7339 lt_prog_compiler_can_build_shared=no
7340fi
7341
7342fi
d7040cdb
SE
7343
7344
7345
7346
7347
7348
ce2cded5
L
7349#
7350# Check to make sure the static flag actually works.
7351#
7352wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7353echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7354echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7355if test "${lt_prog_compiler_static_works+set}" = set; then
7356 echo $ECHO_N "(cached) $ECHO_C" >&6
7357else
7358 lt_prog_compiler_static_works=no
7359 save_LDFLAGS="$LDFLAGS"
7360 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7361 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7362 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7363 # The linker can only warn and ignore the option if not recognized
7364 # So say no if there are warnings
7365 if test -s conftest.err; then
7366 # Append any errors to the config.log.
7367 cat conftest.err 1>&5
7368 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7369 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7370 if diff conftest.exp conftest.er2 >/dev/null; then
7371 lt_prog_compiler_static_works=yes
7372 fi
7373 else
7374 lt_prog_compiler_static_works=yes
7375 fi
7376 fi
7377 $RM conftest*
7378 LDFLAGS="$save_LDFLAGS"
d7040cdb 7379
ce2cded5
L
7380fi
7381echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7382echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
d7040cdb 7383
ce2cded5
L
7384if test x"$lt_prog_compiler_static_works" = xyes; then
7385 :
7386else
7387 lt_prog_compiler_static=
7388fi
d7040cdb
SE
7389
7390
7391
7392
7393
7394
7395
ce2cded5
L
7396 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7397echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7398if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7399 echo $ECHO_N "(cached) $ECHO_C" >&6
7400else
7401 lt_cv_prog_compiler_c_o=no
7402 $RM -r conftest 2>/dev/null
7403 mkdir conftest
7404 cd conftest
7405 mkdir out
7406 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 7407
ce2cded5
L
7408 lt_compiler_flag="-o out/conftest2.$ac_objext"
7409 # Insert the option either (1) after the last *FLAGS variable, or
7410 # (2) before a word containing "conftest.", or (3) at the end.
7411 # Note that $ac_compile itself does not contain backslashes and begins
7412 # with a dollar sign (not a hyphen), so the echo should work correctly.
7413 lt_compile=`echo "$ac_compile" | $SED \
7414 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7415 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7416 -e 's:$: $lt_compiler_flag:'`
7a283e07 7417 (eval echo "\"\$as_me:7417: $lt_compile\"" >&5)
ce2cded5
L
7418 (eval "$lt_compile" 2>out/conftest.err)
7419 ac_status=$?
7420 cat out/conftest.err >&5
7a283e07 7421 echo "$as_me:7421: \$? = $ac_status" >&5
ce2cded5
L
7422 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7423 then
7424 # The compiler can only warn and ignore the option if not recognized
7425 # So say no if there are warnings
7426 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7427 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7428 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7429 lt_cv_prog_compiler_c_o=yes
7430 fi
7431 fi
7432 chmod u+w . 2>&5
7433 $RM conftest*
7434 # SGI C++ compiler will create directory out/ii_files/ for
7435 # template instantiation
7436 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7437 $RM out/* && rmdir out
7438 cd ..
7439 $RM -r conftest
7440 $RM conftest*
d7040cdb 7441
ce2cded5
L
7442fi
7443echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7444echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
d7040cdb
SE
7445
7446
7447
7448
7449
7450
ce2cded5
L
7451 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7452echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7453if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7454 echo $ECHO_N "(cached) $ECHO_C" >&6
7455else
7456 lt_cv_prog_compiler_c_o=no
7457 $RM -r conftest 2>/dev/null
7458 mkdir conftest
7459 cd conftest
7460 mkdir out
7461 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 7462
ce2cded5
L
7463 lt_compiler_flag="-o out/conftest2.$ac_objext"
7464 # Insert the option either (1) after the last *FLAGS variable, or
7465 # (2) before a word containing "conftest.", or (3) at the end.
7466 # Note that $ac_compile itself does not contain backslashes and begins
7467 # with a dollar sign (not a hyphen), so the echo should work correctly.
7468 lt_compile=`echo "$ac_compile" | $SED \
7469 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7470 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7471 -e 's:$: $lt_compiler_flag:'`
7a283e07 7472 (eval echo "\"\$as_me:7472: $lt_compile\"" >&5)
ce2cded5
L
7473 (eval "$lt_compile" 2>out/conftest.err)
7474 ac_status=$?
7475 cat out/conftest.err >&5
7a283e07 7476 echo "$as_me:7476: \$? = $ac_status" >&5
ce2cded5
L
7477 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7478 then
7479 # The compiler can only warn and ignore the option if not recognized
7480 # So say no if there are warnings
7481 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7482 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7483 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7484 lt_cv_prog_compiler_c_o=yes
7485 fi
7486 fi
7487 chmod u+w . 2>&5
7488 $RM conftest*
7489 # SGI C++ compiler will create directory out/ii_files/ for
7490 # template instantiation
7491 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7492 $RM out/* && rmdir out
7493 cd ..
7494 $RM -r conftest
7495 $RM conftest*
7496
7497fi
7498echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7499echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7500
7501
7502
7503
7504hard_links="nottested"
7505if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7506 # do not overwrite the value of need_locks provided by the user
7507 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7508echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7509 hard_links=yes
7510 $RM conftest*
7511 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7512 touch conftest.a
7513 ln conftest.a conftest.b 2>&5 || hard_links=no
7514 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7515 echo "$as_me:$LINENO: result: $hard_links" >&5
7516echo "${ECHO_T}$hard_links" >&6
7517 if test "$hard_links" = no; then
7518 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7519echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7520 need_locks=warn
d7040cdb 7521 fi
d7040cdb 7522else
ce2cded5 7523 need_locks=no
d7040cdb 7524fi
d7040cdb 7525
d7040cdb 7526
d7040cdb 7527
d7040cdb 7528
d7040cdb 7529
d7040cdb 7530
ce2cded5
L
7531 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7532echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
d7040cdb 7533
ce2cded5
L
7534 runpath_var=
7535 allow_undefined_flag=
7536 always_export_symbols=no
7537 archive_cmds=
7538 archive_expsym_cmds=
7539 compiler_needs_object=no
7540 enable_shared_with_static_runtimes=no
7541 export_dynamic_flag_spec=
7542 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7543 hardcode_automatic=no
7544 hardcode_direct=no
7545 hardcode_direct_absolute=no
7546 hardcode_libdir_flag_spec=
7547 hardcode_libdir_flag_spec_ld=
7548 hardcode_libdir_separator=
7549 hardcode_minus_L=no
7550 hardcode_shlibpath_var=unsupported
7551 inherit_rpath=no
7552 link_all_deplibs=unknown
7553 module_cmds=
7554 module_expsym_cmds=
7555 old_archive_from_new_cmds=
7556 old_archive_from_expsyms_cmds=
7557 thread_safe_flag_spec=
7558 whole_archive_flag_spec=
7559 # include_expsyms should be a list of space-separated symbols to be *always*
7560 # included in the symbol list
7561 include_expsyms=
7562 # exclude_expsyms can be an extended regexp of symbols to exclude
7563 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7564 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7565 # as well as any symbol that contains `d'.
7566 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7567 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7568 # platforms (ab)use it in PIC code, but their linkers get confused if
7569 # the symbol is explicitly referenced. Since portable code cannot
7570 # rely on this symbol name, it's probably fine to never include it in
7571 # preloaded symbol tables.
7572 extract_expsyms_cmds=
d7040cdb 7573
ce2cded5
L
7574 case $host_os in
7575 cygwin* | mingw* | pw32*)
7576 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7577 # When not using gcc, we currently assume that we are using
7578 # Microsoft Visual C++.
7579 if test "$GCC" != yes; then
7580 with_gnu_ld=no
7581 fi
d7040cdb 7582 ;;
ce2cded5
L
7583 interix*)
7584 # we just hope/assume this is gcc and not c89 (= MSVC++)
7585 with_gnu_ld=yes
7586 ;;
7587 openbsd*)
7588 with_gnu_ld=no
d7040cdb
SE
7589 ;;
7590 esac
d7040cdb 7591
ce2cded5
L
7592 ld_shlibs=yes
7593 if test "$with_gnu_ld" = yes; then
7594 # If archive_cmds runs LD, not CC, wlarc should be empty
7595 wlarc='${wl}'
d7040cdb 7596
ce2cded5
L
7597 # Set some defaults for GNU ld with shared library support. These
7598 # are reset later if shared libraries are not supported. Putting them
7599 # here allows them to be overridden if necessary.
7600 runpath_var=LD_RUN_PATH
7601 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7602 export_dynamic_flag_spec='${wl}--export-dynamic'
7603 # ancient GNU ld didn't support --whole-archive et. al.
7604 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7605 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7606 else
7607 whole_archive_flag_spec=
7608 fi
7609 supports_anon_versioning=no
7610 case `$LD -v 2>&1` in
7611 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7612 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7613 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7614 *\ 2.11.*) ;; # other 2.11 versions
7615 *) supports_anon_versioning=yes ;;
7616 esac
d7040cdb 7617
ce2cded5
L
7618 # See if GNU ld supports shared libraries.
7619 case $host_os in
50e7d84b 7620 aix[3-9]*)
ce2cded5
L
7621 # On AIX/PPC, the GNU linker is very broken
7622 if test "$host_cpu" != ia64; then
7623 ld_shlibs=no
7624 cat <<_LT_EOF 1>&2
d7040cdb 7625
ce2cded5
L
7626*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7627*** to be unable to reliably create shared libraries on AIX.
7628*** Therefore, libtool is disabling shared libraries support. If you
7629*** really care for shared libraries, you may want to modify your PATH
7630*** so that a non-GNU linker is found, and then restart.
d7040cdb 7631
ce2cded5
L
7632_LT_EOF
7633 fi
d7040cdb 7634 ;;
d7040cdb 7635
ce2cded5
L
7636 amigaos*)
7637 if test "$host_cpu" = m68k; then
7638 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)'
7639 hardcode_libdir_flag_spec='-L$libdir'
7640 hardcode_minus_L=yes
7641 fi
d7040cdb 7642
ce2cded5
L
7643 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7644 # that the semantics of dynamic libraries on AmigaOS, at least up
7645 # to version 4, is to share data among multiple programs linked
7646 # with the same dynamic library. Since this doesn't match the
7647 # behavior of shared libraries on other platforms, we can't use
7648 # them.
7649 ld_shlibs=no
7650 ;;
d7040cdb 7651
ce2cded5
L
7652 beos*)
7653 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7654 allow_undefined_flag=unsupported
7655 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7656 # support --undefined. This deserves some investigation. FIXME
7657 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7658 else
7659 ld_shlibs=no
7660 fi
7661 ;;
d7040cdb 7662
ce2cded5
L
7663 cygwin* | mingw* | pw32*)
7664 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7665 # as there is no search path for DLLs.
7666 hardcode_libdir_flag_spec='-L$libdir'
7667 allow_undefined_flag=unsupported
7668 always_export_symbols=no
7669 enable_shared_with_static_runtimes=yes
7670 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7671
7672 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7673 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7674 # If the export-symbols file already is a .def file (1st line
7675 # is EXPORTS), use it as is; otherwise, prepend...
7676 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7677 cp $export_symbols $output_objdir/$soname.def;
d7040cdb 7678 else
ce2cded5
L
7679 echo EXPORTS > $output_objdir/$soname.def;
7680 cat $export_symbols >> $output_objdir/$soname.def;
7681 fi~
7682 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7683 else
7684 ld_shlibs=no
7685 fi
7686 ;;
d7040cdb 7687
ce2cded5
L
7688 interix[3-9]*)
7689 hardcode_direct=no
7690 hardcode_shlibpath_var=no
7691 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7692 export_dynamic_flag_spec='${wl}-E'
7693 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7694 # Instead, shared libraries are loaded at an image base (0x10000000 by
7695 # default) and relocated if they conflict, which is a slow very memory
7696 # consuming and fragmenting process. To avoid this, we pick a random,
7697 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7698 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7699 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7700 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'
7701 ;;
d7040cdb 7702
ce2cded5
L
7703 gnu* | linux* | tpf* | k*bsd*-gnu)
7704 tmp_diet=no
7705 if test "$host_os" = linux-dietlibc; then
7706 case $cc_basename in
7707 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7708 esac
7709 fi
7710 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7711 && test "$tmp_diet" = no
7712 then
7713 tmp_addflag=
7714 case $cc_basename,$host_cpu in
7715 pgcc*) # Portland Group C compiler
7716 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'
7717 tmp_addflag=' $pic_flag'
7718 ;;
7719 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7720 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'
7721 tmp_addflag=' $pic_flag -Mnomain' ;;
7722 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7723 tmp_addflag=' -i_dynamic' ;;
7724 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7725 tmp_addflag=' -i_dynamic -nofor_main' ;;
7726 ifc* | ifort*) # Intel Fortran compiler
7727 tmp_addflag=' -nofor_main' ;;
7728 esac
7729 case `$CC -V 2>&1 | sed 5q` in
7730 *Sun\ C*) # Sun C 5.9
7731 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'
7732 compiler_needs_object=yes
7733 tmp_sharedflag='-G' ;;
7734 *Sun\ F*) # Sun Fortran 8.3
7735 tmp_sharedflag='-G' ;;
7736 *)
7737 tmp_sharedflag='-shared' ;;
7738 esac
7739 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d7040cdb 7740
ce2cded5
L
7741 if test "x$supports_anon_versioning" = xyes; then
7742 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7743 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7744 echo "local: *; };" >> $output_objdir/$libname.ver~
7745 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7746 fi
7747 else
7748 ld_shlibs=no
7749 fi
7750 ;;
d7040cdb 7751
ce2cded5
L
7752 netbsd*)
7753 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7754 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7755 wlarc=
7756 else
7757 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7758 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7759 fi
7760 ;;
7761
7762 solaris*)
7763 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7764 ld_shlibs=no
7765 cat <<_LT_EOF 1>&2
7766
7767*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7768*** create shared libraries on Solaris systems. Therefore, libtool
7769*** is disabling shared libraries support. We urge you to upgrade GNU
7770*** binutils to release 2.9.1 or newer. Another option is to modify
7771*** your PATH or compiler configuration so that the native linker is
7772*** used, and then restart.
7773
7774_LT_EOF
7775 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7776 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7777 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7778 else
7779 ld_shlibs=no
7780 fi
7781 ;;
7782
7783 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7784 case `$LD -v 2>&1` in
7785 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7786 ld_shlibs=no
7787 cat <<_LT_EOF 1>&2
7788
7789*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7790*** reliably create shared libraries on SCO systems. Therefore, libtool
7791*** is disabling shared libraries support. We urge you to upgrade GNU
7792*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7793*** your PATH or compiler configuration so that the native linker is
7794*** used, and then restart.
7795
7796_LT_EOF
7797 ;;
7798 *)
7799 # For security reasons, it is highly recommended that you always
7800 # use absolute paths for naming shared libraries, and exclude the
7801 # DT_RUNPATH tag from executables and libraries. But doing so
7802 # requires that you compile everything twice, which is a pain.
7803 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7804 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
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
7814 sunos4*)
7815 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7816 wlarc=
7817 hardcode_direct=yes
7818 hardcode_shlibpath_var=no
7819 ;;
7820
7821 *)
7822 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7823 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7824 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7825 else
7826 ld_shlibs=no
7827 fi
7828 ;;
7829 esac
7830
7831 if test "$ld_shlibs" = no; then
7832 runpath_var=
7833 hardcode_libdir_flag_spec=
7834 export_dynamic_flag_spec=
7835 whole_archive_flag_spec=
7836 fi
7837 else
7838 # PORTME fill in a description of your system's linker (not GNU ld)
7839 case $host_os in
7840 aix3*)
7841 allow_undefined_flag=unsupported
7842 always_export_symbols=yes
7843 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'
7844 # Note: this linker hardcodes the directories in LIBPATH if there
7845 # are no directories specified by -L.
7846 hardcode_minus_L=yes
7847 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7848 # Neither direct hardcoding nor static linking is supported with a
7849 # broken collect2.
7850 hardcode_direct=unsupported
7851 fi
7852 ;;
7853
50e7d84b 7854 aix[4-9]*)
ce2cded5
L
7855 if test "$host_cpu" = ia64; then
7856 # On IA64, the linker does run time linking by default, so we don't
7857 # have to do anything special.
7858 aix_use_runtimelinking=no
7859 exp_sym_flag='-Bexport'
7860 no_entry_flag=""
7861 else
7862 # If we're using GNU nm, then we don't want the "-C" option.
7863 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7864 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7865 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'
7866 else
7867 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'
7868 fi
7869 aix_use_runtimelinking=no
7870
7871 # Test if we are trying to use run time linking or normal
7872 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7873 # need to do runtime linking.
50e7d84b 7874 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
ce2cded5
L
7875 for ld_flag in $LDFLAGS; do
7876 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7877 aix_use_runtimelinking=yes
7878 break
7879 fi
7880 done
7881 ;;
7882 esac
7883
7884 exp_sym_flag='-bexport'
7885 no_entry_flag='-bnoentry'
7886 fi
7887
7888 # When large executables or shared objects are built, AIX ld can
7889 # have problems creating the table of contents. If linking a library
7890 # or program results in "error TOC overflow" add -mminimal-toc to
7891 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7892 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7893
7894 archive_cmds=''
7895 hardcode_direct=yes
7896 hardcode_direct_absolute=yes
7897 hardcode_libdir_separator=':'
7898 link_all_deplibs=yes
7899 file_list_spec='${wl}-f,'
7900
7901 if test "$GCC" = yes; then
7902 case $host_os in aix4.[012]|aix4.[012].*)
7903 # We only want to do this on AIX 4.2 and lower, the check
7904 # below for broken collect2 doesn't work under 4.3+
7905 collect2name=`${CC} -print-prog-name=collect2`
7906 if test -f "$collect2name" &&
7907 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7908 then
7909 # We have reworked collect2
7910 :
7911 else
7912 # We have old collect2
7913 hardcode_direct=unsupported
7914 # It fails to find uninstalled libraries when the uninstalled
7915 # path is not listed in the libpath. Setting hardcode_minus_L
7916 # to unsupported forces relinking
7917 hardcode_minus_L=yes
7918 hardcode_libdir_flag_spec='-L$libdir'
7919 hardcode_libdir_separator=
7920 fi
7921 ;;
7922 esac
7923 shared_flag='-shared'
7924 if test "$aix_use_runtimelinking" = yes; then
7925 shared_flag="$shared_flag "'${wl}-G'
7926 fi
7927 else
7928 # not using gcc
7929 if test "$host_cpu" = ia64; then
7930 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7931 # chokes on -Wl,-G. The following line is correct:
7932 shared_flag='-G'
7933 else
7934 if test "$aix_use_runtimelinking" = yes; then
7935 shared_flag='${wl}-G'
7936 else
7937 shared_flag='${wl}-bM:SRE'
7938 fi
7939 fi
7940 fi
7941
7942 # It seems that -bexpall does not export symbols beginning with
7943 # underscore (_), so it is better to generate a list of symbols to export.
7944 always_export_symbols=yes
7945 if test "$aix_use_runtimelinking" = yes; then
7946 # Warning - without using the other runtime loading flags (-brtl),
7947 # -berok will link without error, but may produce a broken library.
7948 allow_undefined_flag='-berok'
7949 # Determine the default libpath from the value encoded in an
7950 # empty executable.
7951 cat >conftest.$ac_ext <<_ACEOF
7952/* confdefs.h. */
7953_ACEOF
7954cat confdefs.h >>conftest.$ac_ext
7955cat >>conftest.$ac_ext <<_ACEOF
7956/* end confdefs.h. */
7957
7958int
7959main ()
7960{
7961
7962 ;
7963 return 0;
7964}
7965_ACEOF
7966rm -f conftest.$ac_objext conftest$ac_exeext
d7040cdb
SE
7967if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7968 (eval $ac_link) 2>conftest.er1
7969 ac_status=$?
7970 grep -v '^ *+' conftest.er1 >conftest.err
7971 rm -f conftest.er1
7972 cat conftest.err >&5
7973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974 (exit $ac_status); } &&
7975 { ac_try='test -z "$ac_c_werror_flag"
7976 || test ! -s conftest.err'
7977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7978 (eval $ac_try) 2>&5
7979 ac_status=$?
7980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7981 (exit $ac_status); }; } &&
7982 { ac_try='test -s conftest$ac_exeext'
7983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7984 (eval $ac_try) 2>&5
7985 ac_status=$?
7986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987 (exit $ac_status); }; }; then
d7040cdb 7988
ce2cded5
L
7989lt_aix_libpath_sed='
7990 /Import File Strings/,/^$/ {
7991 /^0/ {
7992 s/^0 *\(.*\)$/\1/
7993 p
7994 }
7995 }'
7996aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7997# Check for a 64-bit object if we didn't find anything.
7998if test -z "$aix_libpath"; then
7999 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8000fi
d7040cdb
SE
8001else
8002 echo "$as_me: failed program was:" >&5
8003sed 's/^/| /' conftest.$ac_ext >&5
8004
8005fi
8006rm -f conftest.err conftest.$ac_objext \
8007 conftest$ac_exeext conftest.$ac_ext
ce2cded5 8008if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 8009
ce2cded5
L
8010 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8011 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"
8012 else
8013 if test "$host_cpu" = ia64; then
8014 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8015 allow_undefined_flag="-z nodefs"
8016 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"
8017 else
8018 # Determine the default libpath from the value encoded in an
8019 # empty executable.
8020 cat >conftest.$ac_ext <<_ACEOF
8021/* confdefs.h. */
8022_ACEOF
8023cat confdefs.h >>conftest.$ac_ext
8024cat >>conftest.$ac_ext <<_ACEOF
8025/* end confdefs.h. */
d7040cdb 8026
ce2cded5
L
8027int
8028main ()
8029{
d7040cdb 8030
ce2cded5
L
8031 ;
8032 return 0;
8033}
8034_ACEOF
8035rm -f conftest.$ac_objext conftest$ac_exeext
8036if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8037 (eval $ac_link) 2>conftest.er1
8038 ac_status=$?
8039 grep -v '^ *+' conftest.er1 >conftest.err
8040 rm -f conftest.er1
8041 cat conftest.err >&5
8042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8043 (exit $ac_status); } &&
8044 { ac_try='test -z "$ac_c_werror_flag"
8045 || test ! -s conftest.err'
8046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8047 (eval $ac_try) 2>&5
8048 ac_status=$?
8049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050 (exit $ac_status); }; } &&
8051 { ac_try='test -s conftest$ac_exeext'
8052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8053 (eval $ac_try) 2>&5
8054 ac_status=$?
8055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8056 (exit $ac_status); }; }; then
d7040cdb 8057
ce2cded5
L
8058lt_aix_libpath_sed='
8059 /Import File Strings/,/^$/ {
8060 /^0/ {
8061 s/^0 *\(.*\)$/\1/
8062 p
8063 }
8064 }'
8065aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8066# Check for a 64-bit object if we didn't find anything.
8067if test -z "$aix_libpath"; then
8068 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8069fi
8070else
8071 echo "$as_me: failed program was:" >&5
8072sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 8073
ce2cded5
L
8074fi
8075rm -f conftest.err conftest.$ac_objext \
8076 conftest$ac_exeext conftest.$ac_ext
8077if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 8078
ce2cded5
L
8079 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8080 # Warning - without using the other run time loading flags,
8081 # -berok will link without error, but may produce a broken library.
8082 no_undefined_flag=' ${wl}-bernotok'
8083 allow_undefined_flag=' ${wl}-berok'
8084 # Exported symbols can be pulled into shared objects from archives
8085 whole_archive_flag_spec='$convenience'
8086 archive_cmds_need_lc=yes
8087 # This is similar to how AIX traditionally builds its shared libraries.
8088 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'
8089 fi
8090 fi
8091 ;;
d7040cdb 8092
ce2cded5
L
8093 amigaos*)
8094 if test "$host_cpu" = m68k; then
8095 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)'
8096 hardcode_libdir_flag_spec='-L$libdir'
8097 hardcode_minus_L=yes
8098 fi
8099 # see comment about different semantics on the GNU ld section
8100 ld_shlibs=no
8101 ;;
8102
8103 bsdi[45]*)
8104 export_dynamic_flag_spec=-rdynamic
8105 ;;
8106
8107 cygwin* | mingw* | pw32*)
8108 # When not using gcc, we currently assume that we are using
8109 # Microsoft Visual C++.
8110 # hardcode_libdir_flag_spec is actually meaningless, as there is
8111 # no search path for DLLs.
8112 hardcode_libdir_flag_spec=' '
8113 allow_undefined_flag=unsupported
8114 # Tell ltmain to make .lib files, not .a files.
8115 libext=lib
8116 # Tell ltmain to make .dll files, not .so files.
8117 shrext_cmds=".dll"
8118 # FIXME: Setting linknames here is a bad hack.
8119 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8120 # The linker will automatically build a .lib file if we build a DLL.
8121 old_archive_from_new_cmds='true'
8122 # FIXME: Should let the user specify the lib program.
8123 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8124 fix_srcfile_path='`cygpath -w "$srcfile"`'
8125 enable_shared_with_static_runtimes=yes
8126 ;;
8127
8128 darwin* | rhapsody*)
8129 case $host_os in
8130 rhapsody* | darwin1.[012])
8131 allow_undefined_flag='${wl}-undefined ${wl}suppress'
d7040cdb 8132 ;;
ce2cded5
L
8133 *) # Darwin 1.3 on
8134 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
8135 10.[012])
8136 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8137 ;;
8138 10.*)
8139 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8140 ;;
8141 esac
d7040cdb
SE
8142 ;;
8143 esac
ce2cded5
L
8144 archive_cmds_need_lc=no
8145 hardcode_direct=no
8146 hardcode_automatic=yes
8147 hardcode_shlibpath_var=unsupported
8148 whole_archive_flag_spec=''
8149 link_all_deplibs=yes
8150 if test "$GCC" = yes ; then
8151 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8152 echo $ECHO_N "(cached) $ECHO_C" >&6
8153else
8154 lt_cv_apple_cc_single_mod=no
8155 if test -z "${LT_MULTI_MODULE}"; then
8156 # By default we will add the -single_module flag. You can override
8157 # by either setting the environment variable LT_MULTI_MODULE
8158 # non-empty at configure time, or by adding -multi-module to the
8159 # link flags.
8160 echo "int foo(void){return 1;}" > conftest.c
8161 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8162 -dynamiclib ${wl}-single_module conftest.c
8163 if test -f libconftest.dylib; then
8164 lt_cv_apple_cc_single_mod=yes
8165 rm libconftest.dylib
8166 fi
8167 rm conftest.$ac_ext
8168 fi
8169fi
d7040cdb 8170
ce2cded5
L
8171 output_verbose_link_cmd=echo
8172 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
8173 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8174 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}'
8175 else
8176 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8177 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}'
8178 fi
8179 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8180 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}'
8181 else
8182 case $cc_basename in
8183 xlc*)
8184 output_verbose_link_cmd=echo
8185 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
8186 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8187 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8188 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}'
8189 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}'
8190 ;;
8191 *)
8192 ld_shlibs=no
8193 ;;
8194 esac
8195 fi
8196 ;;
d7040cdb 8197
ce2cded5
L
8198 dgux*)
8199 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8200 hardcode_libdir_flag_spec='-L$libdir'
8201 hardcode_shlibpath_var=no
8202 ;;
d7040cdb 8203
ce2cded5
L
8204 freebsd1*)
8205 ld_shlibs=no
8206 ;;
d7040cdb 8207
ce2cded5
L
8208 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8209 # support. Future versions do this automatically, but an explicit c++rt0.o
8210 # does not break anything, and helps significantly (at the cost of a little
8211 # extra space).
8212 freebsd2.2*)
8213 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8214 hardcode_libdir_flag_spec='-R$libdir'
8215 hardcode_direct=yes
8216 hardcode_shlibpath_var=no
d7040cdb 8217 ;;
d7040cdb 8218
ce2cded5
L
8219 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8220 freebsd2*)
8221 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8222 hardcode_direct=yes
8223 hardcode_minus_L=yes
8224 hardcode_shlibpath_var=no
8225 ;;
d7040cdb 8226
ce2cded5
L
8227 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8228 freebsd* | dragonfly*)
8229 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8230 hardcode_libdir_flag_spec='-R$libdir'
8231 hardcode_direct=yes
8232 hardcode_shlibpath_var=no
8233 ;;
d7040cdb 8234
ce2cded5
L
8235 hpux9*)
8236 if test "$GCC" = yes; then
8237 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'
8238 else
8239 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'
8240 fi
8241 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8242 hardcode_libdir_separator=:
8243 hardcode_direct=yes
d7040cdb 8244
ce2cded5
L
8245 # hardcode_minus_L: Not really in the search PATH,
8246 # but as the default location of the library.
8247 hardcode_minus_L=yes
8248 export_dynamic_flag_spec='${wl}-E'
8249 ;;
d7040cdb 8250
ce2cded5
L
8251 hpux10*)
8252 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8253 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8254 else
8255 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8256 fi
8257 if test "$with_gnu_ld" = no; then
8258 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8259 hardcode_libdir_flag_spec_ld='+b $libdir'
8260 hardcode_libdir_separator=:
8261 hardcode_direct=yes
8262 hardcode_direct_absolute=yes
8263 export_dynamic_flag_spec='${wl}-E'
8264 # hardcode_minus_L: Not really in the search PATH,
8265 # but as the default location of the library.
8266 hardcode_minus_L=yes
8267 fi
8268 ;;
d7040cdb 8269
ce2cded5
L
8270 hpux11*)
8271 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8272 case $host_cpu in
8273 hppa*64*)
8274 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8275 ;;
8276 ia64*)
8277 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8278 ;;
8279 *)
8280 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8281 ;;
8282 esac
8283 else
8284 case $host_cpu in
8285 hppa*64*)
8286 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8287 ;;
8288 ia64*)
8289 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8290 ;;
8291 *)
8292 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8293 ;;
8294 esac
8295 fi
8296 if test "$with_gnu_ld" = no; then
8297 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8298 hardcode_libdir_separator=:
d7040cdb 8299
ce2cded5
L
8300 case $host_cpu in
8301 hppa*64*|ia64*)
8302 hardcode_direct=no
8303 hardcode_shlibpath_var=no
8304 ;;
8305 *)
8306 hardcode_direct=yes
8307 hardcode_direct_absolute=yes
8308 export_dynamic_flag_spec='${wl}-E'
d7040cdb 8309
ce2cded5
L
8310 # hardcode_minus_L: Not really in the search PATH,
8311 # but as the default location of the library.
8312 hardcode_minus_L=yes
8313 ;;
8314 esac
8315 fi
8316 ;;
d7040cdb 8317
ce2cded5
L
8318 irix5* | irix6* | nonstopux*)
8319 if test "$GCC" = yes; then
8320 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'
8321 # Try to use the -exported_symbol ld option, if it does not
8322 # work, assume that -exports_file does not work either and
8323 # implicitly export all symbols.
8324 save_LDFLAGS="$LDFLAGS"
8325 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8326 cat >conftest.$ac_ext <<_ACEOF
8327int foo(void) {}
8328_ACEOF
8329rm -f conftest.$ac_objext conftest$ac_exeext
8330if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8331 (eval $ac_link) 2>conftest.er1
8332 ac_status=$?
8333 grep -v '^ *+' conftest.er1 >conftest.err
8334 rm -f conftest.er1
8335 cat conftest.err >&5
8336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337 (exit $ac_status); } &&
8338 { ac_try='test -z "$ac_c_werror_flag"
8339 || test ! -s conftest.err'
8340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8341 (eval $ac_try) 2>&5
8342 ac_status=$?
8343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344 (exit $ac_status); }; } &&
8345 { ac_try='test -s conftest$ac_exeext'
8346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8347 (eval $ac_try) 2>&5
8348 ac_status=$?
8349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8350 (exit $ac_status); }; }; then
8351 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 8352
ce2cded5
L
8353else
8354 echo "$as_me: failed program was:" >&5
8355sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 8356
ce2cded5
L
8357fi
8358rm -f conftest.err conftest.$ac_objext \
8359 conftest$ac_exeext conftest.$ac_ext
8360 LDFLAGS="$save_LDFLAGS"
8361 else
8362 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'
8363 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'
8364 fi
8365 archive_cmds_need_lc='no'
8366 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8367 hardcode_libdir_separator=:
8368 inherit_rpath=yes
8369 link_all_deplibs=yes
8370 ;;
d7040cdb 8371
ce2cded5
L
8372 netbsd*)
8373 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8374 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8375 else
8376 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8377 fi
8378 hardcode_libdir_flag_spec='-R$libdir'
8379 hardcode_direct=yes
8380 hardcode_shlibpath_var=no
8381 ;;
d7040cdb 8382
ce2cded5
L
8383 newsos6)
8384 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8385 hardcode_direct=yes
8386 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8387 hardcode_libdir_separator=:
8388 hardcode_shlibpath_var=no
8389 ;;
d7040cdb 8390
ce2cded5
L
8391 *nto* | *qnx*)
8392 ;;
d7040cdb 8393
ce2cded5
L
8394 openbsd*)
8395 hardcode_direct=yes
8396 hardcode_shlibpath_var=no
8397 hardcode_direct_absolute=yes
8398 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8399 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8400 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8401 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8402 export_dynamic_flag_spec='${wl}-E'
8403 else
8404 case $host_os in
8405 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8406 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8407 hardcode_libdir_flag_spec='-R$libdir'
8408 ;;
8409 *)
8410 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8411 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8412 ;;
8413 esac
8414 fi
8415 ;;
d7040cdb 8416
ce2cded5
L
8417 os2*)
8418 hardcode_libdir_flag_spec='-L$libdir'
8419 hardcode_minus_L=yes
8420 allow_undefined_flag=unsupported
8421 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'
8422 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8423 ;;
d7040cdb 8424
ce2cded5
L
8425 osf3*)
8426 if test "$GCC" = yes; then
8427 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8428 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'
8429 else
8430 allow_undefined_flag=' -expect_unresolved \*'
8431 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'
8432 fi
8433 archive_cmds_need_lc='no'
8434 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8435 hardcode_libdir_separator=:
8436 ;;
d7040cdb 8437
ce2cded5
L
8438 osf4* | osf5*) # as osf3* with the addition of -msym flag
8439 if test "$GCC" = yes; then
8440 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8441 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'
8442 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8443 else
8444 allow_undefined_flag=' -expect_unresolved \*'
8445 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'
8446 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~
8447 $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 8448
ce2cded5
L
8449 # Both c and cxx compiler support -rpath directly
8450 hardcode_libdir_flag_spec='-rpath $libdir'
8451 fi
8452 archive_cmds_need_lc='no'
8453 hardcode_libdir_separator=:
8454 ;;
d7040cdb 8455
ce2cded5
L
8456 solaris*)
8457 no_undefined_flag=' -z defs'
8458 if test "$GCC" = yes; then
8459 wlarc='${wl}'
8460 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8461 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8462 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8463 else
8464 case `$CC -V 2>&1` in
8465 *"Compilers 5.0"*)
8466 wlarc=''
8467 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8468 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8469 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8470 ;;
8471 *)
8472 wlarc='${wl}'
8473 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8474 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8475 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8476 ;;
8477 esac
8478 fi
8479 hardcode_libdir_flag_spec='-R$libdir'
8480 hardcode_shlibpath_var=no
8481 case $host_os in
8482 solaris2.[0-5] | solaris2.[0-5].*) ;;
8483 *)
8484 # The compiler driver will combine and reorder linker options,
8485 # but understands `-z linker_flag'. GCC discards it without `$wl',
8486 # but is careful enough not to reorder.
8487 # Supported since Solaris 2.6 (maybe 2.5.1?)
8488 if test "$GCC" = yes; then
8489 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8490 else
8491 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8492 fi
8493 ;;
8494 esac
8495 link_all_deplibs=yes
8496 ;;
d7040cdb 8497
ce2cded5
L
8498 sunos4*)
8499 if test "x$host_vendor" = xsequent; then
8500 # Use $CC to link under sequent, because it throws in some extra .o
8501 # files that make .init and .fini sections work.
8502 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8503 else
8504 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8505 fi
8506 hardcode_libdir_flag_spec='-L$libdir'
8507 hardcode_direct=yes
8508 hardcode_minus_L=yes
8509 hardcode_shlibpath_var=no
8510 ;;
d7040cdb 8511
ce2cded5
L
8512 sysv4)
8513 case $host_vendor in
8514 sni)
8515 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8516 hardcode_direct=yes # is this really true???
8517 ;;
8518 siemens)
8519 ## LD is ld it makes a PLAMLIB
8520 ## CC just makes a GrossModule.
8521 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8522 reload_cmds='$CC -r -o $output$reload_objs'
8523 hardcode_direct=no
8524 ;;
8525 motorola)
8526 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8527 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8528 ;;
8529 esac
8530 runpath_var='LD_RUN_PATH'
8531 hardcode_shlibpath_var=no
8532 ;;
d7040cdb 8533
ce2cded5
L
8534 sysv4.3*)
8535 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8536 hardcode_shlibpath_var=no
8537 export_dynamic_flag_spec='-Bexport'
8538 ;;
d7040cdb 8539
ce2cded5
L
8540 sysv4*MP*)
8541 if test -d /usr/nec; then
8542 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8543 hardcode_shlibpath_var=no
8544 runpath_var=LD_RUN_PATH
8545 hardcode_runpath_var=yes
8546 ld_shlibs=yes
8547 fi
8548 ;;
d7040cdb 8549
ce2cded5
L
8550 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8551 no_undefined_flag='${wl}-z,text'
8552 archive_cmds_need_lc=no
8553 hardcode_shlibpath_var=no
8554 runpath_var='LD_RUN_PATH'
d7040cdb 8555
ce2cded5
L
8556 if test "$GCC" = yes; then
8557 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8558 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8559 else
8560 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8561 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8562 fi
8563 ;;
d7040cdb 8564
ce2cded5
L
8565 sysv5* | sco3.2v5* | sco5v6*)
8566 # Note: We can NOT use -z defs as we might desire, because we do not
8567 # link with -lc, and that would cause any symbols used from libc to
8568 # always be unresolved, which means just about no library would
8569 # ever link correctly. If we're not using GNU ld we use -z text
8570 # though, which does catch some bad symbols but isn't as heavy-handed
8571 # as -z defs.
8572 no_undefined_flag='${wl}-z,text'
8573 allow_undefined_flag='${wl}-z,nodefs'
8574 archive_cmds_need_lc=no
8575 hardcode_shlibpath_var=no
8576 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8577 hardcode_libdir_separator=':'
8578 link_all_deplibs=yes
8579 export_dynamic_flag_spec='${wl}-Bexport'
8580 runpath_var='LD_RUN_PATH'
d7040cdb 8581
ce2cded5
L
8582 if test "$GCC" = yes; then
8583 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8584 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8585 else
8586 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8587 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8588 fi
8589 ;;
d7040cdb 8590
ce2cded5
L
8591 uts4*)
8592 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8593 hardcode_libdir_flag_spec='-L$libdir'
8594 hardcode_shlibpath_var=no
8595 ;;
d7040cdb 8596
ce2cded5
L
8597 *)
8598 ld_shlibs=no
8599 ;;
8600 esac
d7040cdb 8601
ce2cded5
L
8602 if test x$host_vendor = xsni; then
8603 case $host in
8604 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8605 export_dynamic_flag_spec='${wl}-Blargedynsym'
8606 ;;
8607 esac
8608 fi
8609 fi
d7040cdb 8610
ce2cded5
L
8611echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8612echo "${ECHO_T}$ld_shlibs" >&6
8613test "$ld_shlibs" = no && can_build_shared=no
d7040cdb 8614
ce2cded5 8615with_gnu_ld=$with_gnu_ld
d7040cdb
SE
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
ce2cded5
L
8631#
8632# Do we need to explicitly link libc?
8633#
8634case "x$archive_cmds_need_lc" in
8635x|xyes)
8636 # Assume -lc should be added
8637 archive_cmds_need_lc=yes
d7040cdb 8638
ce2cded5
L
8639 if test "$enable_shared" = yes && test "$GCC" = yes; then
8640 case $archive_cmds in
8641 *'~'*)
8642 # FIXME: we may have to deal with multi-command sequences.
8643 ;;
8644 '$CC '*)
8645 # Test whether the compiler implicitly links with -lc since on some
8646 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8647 # to ld, don't add -lc before -lgcc.
8648 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8649echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8650 $RM conftest*
8651 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 8652
ce2cded5
L
8653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8654 (eval $ac_compile) 2>&5
8655 ac_status=$?
8656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657 (exit $ac_status); } 2>conftest.err; then
8658 soname=conftest
8659 lib=conftest
8660 libobjs=conftest.$ac_objext
8661 deplibs=
8662 wl=$lt_prog_compiler_wl
8663 pic_flag=$lt_prog_compiler_pic
8664 compiler_flags=-v
8665 linker_flags=-v
8666 verstring=
8667 output_objdir=.
8668 libname=conftest
8669 lt_save_allow_undefined_flag=$allow_undefined_flag
8670 allow_undefined_flag=
8671 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8672 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8673 ac_status=$?
8674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8675 (exit $ac_status); }
8676 then
8677 archive_cmds_need_lc=no
8678 else
8679 archive_cmds_need_lc=yes
8680 fi
8681 allow_undefined_flag=$lt_save_allow_undefined_flag
8682 else
8683 cat conftest.err 1>&5
8684 fi
8685 $RM conftest*
8686 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8687echo "${ECHO_T}$archive_cmds_need_lc" >&6
8688 ;;
8689 esac
8690 fi
8691 ;;
8692esac
d7040cdb
SE
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
d7040cdb 8720
d7040cdb 8721
d7040cdb
SE
8722
8723
8724
8725
8726
8727
d7040cdb 8728
d7040cdb 8729
d7040cdb 8730
d7040cdb 8731
d7040cdb 8732
d7040cdb 8733
d7040cdb 8734
d7040cdb 8735
d7040cdb 8736
d7040cdb 8737
d7040cdb 8738
d7040cdb 8739
d7040cdb 8740
d7040cdb 8741
d7040cdb 8742
d7040cdb 8743
d7040cdb 8744
d7040cdb 8745
d7040cdb 8746
d7040cdb 8747
d7040cdb 8748
d7040cdb 8749
d7040cdb 8750
d7040cdb 8751
d7040cdb 8752
d7040cdb 8753
d7040cdb 8754
d7040cdb 8755
ce2cded5
L
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
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8851echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8852withGCC=$GCC
8853if test "$withGCC" = yes; then
8854 case $host_os in
8855 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8856 *) lt_awk_arg="/^libraries:/" ;;
8857 esac
8858 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8859 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8860 # if the path contains ";" then we assume it to be the separator
8861 # otherwise default to the standard path separator (i.e. ":") - it is
8862 # assumed that no part of a normal pathname contains ";" but that should
8863 # okay in the real world where ";" in dirpaths is itself problematic.
8864 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8865 else
8866 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8867 fi
8868 # Ok, now we have the path, separated by spaces, we can step through it
8869 # and add multilib dir if necessary.
8870 lt_tmp_lt_search_path_spec=
8871 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8872 for lt_sys_path in $lt_search_path_spec; do
8873 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8874 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8875 else
8876 test -d "$lt_sys_path" && \
8877 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8878 fi
8879 done
8880 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8881BEGIN {RS=" "; FS="/|\n";} {
8882 lt_foo="";
8883 lt_count=0;
8884 for (lt_i = NF; lt_i > 0; lt_i--) {
8885 if ($lt_i != "" && $lt_i != ".") {
8886 if ($lt_i == "..") {
8887 lt_count++;
8888 } else {
8889 if (lt_count == 0) {
8890 lt_foo="/" $lt_i lt_foo;
8891 } else {
8892 lt_count--;
8893 }
8894 }
8895 }
8896 }
8897 if (lt_foo != "") { lt_freq[lt_foo]++; }
8898 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8899}'`
8900 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
d7040cdb 8901else
ce2cded5
L
8902 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8903fi
8904library_names_spec=
8905libname_spec='lib$name'
8906soname_spec=
8907shrext_cmds=".so"
8908postinstall_cmds=
8909postuninstall_cmds=
8910finish_cmds=
8911finish_eval=
8912shlibpath_var=
8913shlibpath_overrides_runpath=unknown
8914version_type=none
8915dynamic_linker="$host_os ld.so"
8916sys_lib_dlsearch_path_spec="/lib /usr/lib"
8917need_lib_prefix=unknown
8918hardcode_into_libs=no
8919
8920# when you set need_version to no, make sure it does not cause -set_version
8921# flags to be left without arguments
8922need_version=unknown
8923
8924case $host_os in
8925aix3*)
8926 version_type=linux
8927 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8928 shlibpath_var=LIBPATH
8929
8930 # AIX 3 has no versioning support, so we append a major version to the name.
8931 soname_spec='${libname}${release}${shared_ext}$major'
8932 ;;
8933
50e7d84b 8934aix[4-9]*)
ce2cded5
L
8935 version_type=linux
8936 need_lib_prefix=no
8937 need_version=no
8938 hardcode_into_libs=yes
8939 if test "$host_cpu" = ia64; then
8940 # AIX 5 supports IA64
8941 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8942 shlibpath_var=LD_LIBRARY_PATH
8943 else
8944 # With GCC up to 2.95.x, collect2 would create an import file
8945 # for dependence libraries. The import file would start with
8946 # the line `#! .'. This would cause the generated library to
8947 # depend on `.', always an invalid library. This was fixed in
8948 # development snapshots of GCC prior to 3.0.
8949 case $host_os in
8950 aix4 | aix4.[01] | aix4.[01].*)
8951 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8952 echo ' yes '
8953 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8954 :
8955 else
8956 can_build_shared=no
8957 fi
8958 ;;
8959 esac
8960 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8961 # soname into executable. Probably we can add versioning support to
8962 # collect2, so additional links can be useful in future.
8963 if test "$aix_use_runtimelinking" = yes; then
8964 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8965 # instead of lib<name>.a to let people know that these are not
8966 # typical AIX shared libraries.
8967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8968 else
8969 # We preserve .a as extension for shared libraries through AIX4.2
8970 # and later when we are not doing run time linking.
8971 library_names_spec='${libname}${release}.a $libname.a'
8972 soname_spec='${libname}${release}${shared_ext}$major'
8973 fi
8974 shlibpath_var=LIBPATH
8975 fi
8976 ;;
8977
8978amigaos*)
8979 if test "$host_cpu" = m68k; then
8980 library_names_spec='$libname.ixlibrary $libname.a'
8981 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8982 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'
8983 else
8984 dynamic_linker=no
8985 fi
8986 ;;
8987
8988beos*)
8989 library_names_spec='${libname}${shared_ext}'
8990 dynamic_linker="$host_os ld.so"
8991 shlibpath_var=LIBRARY_PATH
8992 ;;
8993
8994bsdi[45]*)
8995 version_type=linux
8996 need_version=no
8997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8998 soname_spec='${libname}${release}${shared_ext}$major'
8999 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9000 shlibpath_var=LD_LIBRARY_PATH
9001 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9002 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9003 # the default ld.so.conf also contains /usr/contrib/lib and
9004 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9005 # libtool to hard-code these into programs
9006 ;;
9007
9008cygwin* | mingw* | pw32*)
9009 version_type=windows
9010 shrext_cmds=".dll"
9011 need_version=no
9012 need_lib_prefix=no
9013
9014 case $withGCC,$host_os in
9015 yes,cygwin* | yes,mingw* | yes,pw32*)
9016 library_names_spec='$libname.dll.a'
9017 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9018 postinstall_cmds='base_file=`basename \${file}`~
9019 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9020 dldir=$destdir/`dirname \$dlpath`~
9021 test -d \$dldir || mkdir -p \$dldir~
9022 $install_prog $dir/$dlname \$dldir/$dlname~
9023 chmod a+x \$dldir/$dlname~
9024 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9025 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9026 fi'
9027 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9028 dlpath=$dir/\$dldll~
9029 $RM \$dlpath'
9030 shlibpath_overrides_runpath=yes
9031
9032 case $host_os in
9033 cygwin*)
9034 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9035 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9036 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9037 ;;
9038 mingw*)
9039 # MinGW DLLs use traditional 'lib' prefix
9040 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9041 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9042 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9043 # It is most probably a Windows format PATH printed by
9044 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9045 # path with ; separators, and with drive letters. We can handle the
9046 # drive letters (cygwin fileutils understands them), so leave them,
9047 # especially as we might pass files found there to a mingw objdump,
9048 # which wouldn't understand a cygwinified path. Ahh.
9049 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9050 else
9051 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9052 fi
9053 ;;
9054 pw32*)
9055 # pw32 DLLs use 'pw' prefix rather than 'lib'
9056 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9057 ;;
9058 esac
9059 ;;
9060
9061 *)
9062 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9063 ;;
9064 esac
9065 dynamic_linker='Win32 ld.exe'
9066 # FIXME: first we should search . and the directory the executable is in
9067 shlibpath_var=PATH
9068 ;;
9069
9070darwin* | rhapsody*)
9071 dynamic_linker="$host_os dyld"
9072 version_type=darwin
9073 need_lib_prefix=no
9074 need_version=no
9075 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9076 soname_spec='${libname}${release}${major}$shared_ext'
9077 shlibpath_overrides_runpath=yes
9078 shlibpath_var=DYLD_LIBRARY_PATH
9079 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9080
9081 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9082 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9083 ;;
9084
9085dgux*)
9086 version_type=linux
9087 need_lib_prefix=no
9088 need_version=no
9089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9090 soname_spec='${libname}${release}${shared_ext}$major'
9091 shlibpath_var=LD_LIBRARY_PATH
9092 ;;
9093
9094freebsd1*)
9095 dynamic_linker=no
9096 ;;
9097
9098freebsd* | dragonfly*)
9099 # DragonFly does not have aout. When/if they implement a new
9100 # versioning mechanism, adjust this.
9101 if test -x /usr/bin/objformat; then
9102 objformat=`/usr/bin/objformat`
9103 else
9104 case $host_os in
9105 freebsd[123]*) objformat=aout ;;
9106 *) objformat=elf ;;
9107 esac
9108 fi
9109 version_type=freebsd-$objformat
9110 case $version_type in
9111 freebsd-elf*)
9112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9113 need_version=no
9114 need_lib_prefix=no
9115 ;;
9116 freebsd-*)
9117 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9118 need_version=yes
9119 ;;
9120 esac
9121 shlibpath_var=LD_LIBRARY_PATH
9122 case $host_os in
9123 freebsd2*)
9124 shlibpath_overrides_runpath=yes
9125 ;;
9126 freebsd3.[01]* | freebsdelf3.[01]*)
9127 shlibpath_overrides_runpath=yes
9128 hardcode_into_libs=yes
9129 ;;
9130 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9131 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9132 shlibpath_overrides_runpath=no
9133 hardcode_into_libs=yes
9134 ;;
9135 *) # from 4.6 on, and DragonFly
9136 shlibpath_overrides_runpath=yes
9137 hardcode_into_libs=yes
9138 ;;
9139 esac
9140 ;;
9141
9142gnu*)
9143 version_type=linux
9144 need_lib_prefix=no
9145 need_version=no
9146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9147 soname_spec='${libname}${release}${shared_ext}$major'
9148 shlibpath_var=LD_LIBRARY_PATH
9149 hardcode_into_libs=yes
9150 ;;
9151
9152hpux9* | hpux10* | hpux11*)
9153 # Give a soname corresponding to the major version so that dld.sl refuses to
9154 # link against other versions.
9155 version_type=sunos
9156 need_lib_prefix=no
9157 need_version=no
9158 case $host_cpu in
9159 ia64*)
9160 shrext_cmds='.so'
9161 hardcode_into_libs=yes
9162 dynamic_linker="$host_os dld.so"
9163 shlibpath_var=LD_LIBRARY_PATH
9164 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9166 soname_spec='${libname}${release}${shared_ext}$major'
9167 if test "X$HPUX_IA64_MODE" = X32; then
9168 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9169 else
9170 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9171 fi
9172 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9173 ;;
9174 hppa*64*)
9175 shrext_cmds='.sl'
9176 hardcode_into_libs=yes
9177 dynamic_linker="$host_os dld.sl"
9178 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9179 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9181 soname_spec='${libname}${release}${shared_ext}$major'
9182 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9183 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9184 ;;
9185 *)
9186 shrext_cmds='.sl'
9187 dynamic_linker="$host_os dld.sl"
9188 shlibpath_var=SHLIB_PATH
9189 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9191 soname_spec='${libname}${release}${shared_ext}$major'
9192 ;;
9193 esac
9194 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9195 postinstall_cmds='chmod 555 $lib'
9196 ;;
9197
9198interix[3-9]*)
9199 version_type=linux
9200 need_lib_prefix=no
9201 need_version=no
9202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9203 soname_spec='${libname}${release}${shared_ext}$major'
9204 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9205 shlibpath_var=LD_LIBRARY_PATH
9206 shlibpath_overrides_runpath=no
9207 hardcode_into_libs=yes
9208 ;;
9209
9210irix5* | irix6* | nonstopux*)
9211 case $host_os in
9212 nonstopux*) version_type=nonstopux ;;
9213 *)
9214 if test "$lt_cv_prog_gnu_ld" = yes; then
9215 version_type=linux
9216 else
9217 version_type=irix
9218 fi ;;
9219 esac
9220 need_lib_prefix=no
9221 need_version=no
9222 soname_spec='${libname}${release}${shared_ext}$major'
9223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9224 case $host_os in
9225 irix5* | nonstopux*)
9226 libsuff= shlibsuff=
9227 ;;
9228 *)
9229 case $LD in # libtool.m4 will add one of these switches to LD
9230 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9231 libsuff= shlibsuff= libmagic=32-bit;;
9232 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9233 libsuff=32 shlibsuff=N32 libmagic=N32;;
9234 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9235 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9236 *) libsuff= shlibsuff= libmagic=never-match;;
9237 esac
9238 ;;
9239 esac
9240 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9241 shlibpath_overrides_runpath=no
9242 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9243 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9244 hardcode_into_libs=yes
9245 ;;
9246
9247# No shared lib support for Linux oldld, aout, or coff.
9248linux*oldld* | linux*aout* | linux*coff*)
9249 dynamic_linker=no
9250 ;;
9251
9252# This must be Linux ELF.
9253linux* | k*bsd*-gnu)
9254 version_type=linux
9255 need_lib_prefix=no
9256 need_version=no
9257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9258 soname_spec='${libname}${release}${shared_ext}$major'
9259 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9260 shlibpath_var=LD_LIBRARY_PATH
9261 shlibpath_overrides_runpath=no
9262 # Some binutils ld are patched to set DT_RUNPATH
9263 save_LDFLAGS=$LDFLAGS
9264 save_libdir=$libdir
9265 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9266 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9267 cat >conftest.$ac_ext <<_ACEOF
d7040cdb
SE
9268/* confdefs.h. */
9269_ACEOF
9270cat confdefs.h >>conftest.$ac_ext
9271cat >>conftest.$ac_ext <<_ACEOF
9272/* end confdefs.h. */
9273
d7040cdb
SE
9274int
9275main ()
9276{
ce2cded5 9277
d7040cdb
SE
9278 ;
9279 return 0;
9280}
9281_ACEOF
9282rm -f conftest.$ac_objext conftest$ac_exeext
9283if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9284 (eval $ac_link) 2>conftest.er1
9285 ac_status=$?
9286 grep -v '^ *+' conftest.er1 >conftest.err
9287 rm -f conftest.er1
9288 cat conftest.err >&5
9289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9290 (exit $ac_status); } &&
9291 { ac_try='test -z "$ac_c_werror_flag"
9292 || test ! -s conftest.err'
9293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9294 (eval $ac_try) 2>&5
9295 ac_status=$?
9296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9297 (exit $ac_status); }; } &&
9298 { ac_try='test -s conftest$ac_exeext'
9299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9300 (eval $ac_try) 2>&5
9301 ac_status=$?
9302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303 (exit $ac_status); }; }; then
9304 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
9305 shlibpath_overrides_runpath=yes
d7040cdb 9306fi
d7040cdb 9307
ce2cded5
L
9308else
9309 echo "$as_me: failed program was:" >&5
9310sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb
SE
9311
9312fi
ce2cded5
L
9313rm -f conftest.err conftest.$ac_objext \
9314 conftest$ac_exeext conftest.$ac_ext
9315 LDFLAGS=$save_LDFLAGS
9316 libdir=$save_libdir
d7040cdb 9317
ce2cded5
L
9318 # This implies no fast_install, which is unacceptable.
9319 # Some rework will be needed to allow for fast_install
9320 # before this can be enabled.
9321 hardcode_into_libs=yes
d7040cdb 9322
ce2cded5
L
9323 # Append ld.so.conf contents to the search path
9324 if test -f /etc/ld.so.conf; then
9325 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' ' '`
9326 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9327 fi
d7040cdb 9328
ce2cded5
L
9329 # We used to test for /lib/ld.so.1 and disable shared libraries on
9330 # powerpc, because MkLinux only supported shared libraries with the
9331 # GNU dynamic linker. Since this was broken with cross compilers,
9332 # most powerpc-linux boxes support dynamic linking these days and
9333 # people can always --disable-shared, the test was removed, and we
9334 # assume the GNU/Linux dynamic linker is in use.
9335 dynamic_linker='GNU/Linux ld.so'
9336 ;;
d7040cdb 9337
ce2cded5
L
9338netbsd*)
9339 version_type=sunos
9340 need_lib_prefix=no
9341 need_version=no
9342 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9344 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9345 dynamic_linker='NetBSD (a.out) ld.so'
9346 else
9347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9348 soname_spec='${libname}${release}${shared_ext}$major'
9349 dynamic_linker='NetBSD ld.elf_so'
9350 fi
9351 shlibpath_var=LD_LIBRARY_PATH
9352 shlibpath_overrides_runpath=yes
9353 hardcode_into_libs=yes
9354 ;;
d7040cdb 9355
ce2cded5
L
9356newsos6)
9357 version_type=linux
9358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9359 shlibpath_var=LD_LIBRARY_PATH
9360 shlibpath_overrides_runpath=yes
9361 ;;
d7040cdb 9362
ce2cded5
L
9363*nto* | *qnx*)
9364 version_type=qnx
9365 need_lib_prefix=no
9366 need_version=no
9367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9368 soname_spec='${libname}${release}${shared_ext}$major'
9369 shlibpath_var=LD_LIBRARY_PATH
9370 shlibpath_overrides_runpath=no
9371 hardcode_into_libs=yes
9372 dynamic_linker='ldqnx.so'
9373 ;;
d7040cdb 9374
ce2cded5
L
9375openbsd*)
9376 version_type=sunos
9377 sys_lib_dlsearch_path_spec="/usr/lib"
9378 need_lib_prefix=no
9379 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9380 case $host_os in
9381 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9382 *) need_version=no ;;
9383 esac
9384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9385 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9386 shlibpath_var=LD_LIBRARY_PATH
9387 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9388 case $host_os in
9389 openbsd2.[89] | openbsd2.[89].*)
9390 shlibpath_overrides_runpath=no
9391 ;;
9392 *)
9393 shlibpath_overrides_runpath=yes
9394 ;;
9395 esac
9396 else
9397 shlibpath_overrides_runpath=yes
9398 fi
9399 ;;
d7040cdb 9400
ce2cded5
L
9401os2*)
9402 libname_spec='$name'
9403 shrext_cmds=".dll"
9404 need_lib_prefix=no
9405 library_names_spec='$libname${shared_ext} $libname.a'
9406 dynamic_linker='OS/2 ld.exe'
9407 shlibpath_var=LIBPATH
9408 ;;
d7040cdb 9409
ce2cded5
L
9410osf3* | osf4* | osf5*)
9411 version_type=osf
9412 need_lib_prefix=no
9413 need_version=no
9414 soname_spec='${libname}${release}${shared_ext}$major'
9415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9416 shlibpath_var=LD_LIBRARY_PATH
9417 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9418 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9419 ;;
d7040cdb 9420
ce2cded5
L
9421rdos*)
9422 dynamic_linker=no
9423 ;;
d7040cdb 9424
ce2cded5
L
9425solaris*)
9426 version_type=linux
9427 need_lib_prefix=no
9428 need_version=no
9429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9430 soname_spec='${libname}${release}${shared_ext}$major'
9431 shlibpath_var=LD_LIBRARY_PATH
9432 shlibpath_overrides_runpath=yes
9433 hardcode_into_libs=yes
9434 # ldd complains unless libraries are executable
9435 postinstall_cmds='chmod +x $lib'
9436 ;;
d7040cdb 9437
ce2cded5
L
9438sunos4*)
9439 version_type=sunos
9440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9441 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9442 shlibpath_var=LD_LIBRARY_PATH
9443 shlibpath_overrides_runpath=yes
9444 if test "$with_gnu_ld" = yes; then
9445 need_lib_prefix=no
9446 fi
9447 need_version=yes
9448 ;;
d7040cdb 9449
ce2cded5
L
9450sysv4 | sysv4.3*)
9451 version_type=linux
9452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9453 soname_spec='${libname}${release}${shared_ext}$major'
9454 shlibpath_var=LD_LIBRARY_PATH
9455 case $host_vendor in
9456 sni)
9457 shlibpath_overrides_runpath=no
9458 need_lib_prefix=no
9459 runpath_var=LD_RUN_PATH
9460 ;;
9461 siemens)
9462 need_lib_prefix=no
9463 ;;
9464 motorola)
9465 need_lib_prefix=no
9466 need_version=no
9467 shlibpath_overrides_runpath=no
9468 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9469 ;;
9470 esac
9471 ;;
d7040cdb 9472
ce2cded5
L
9473sysv4*MP*)
9474 if test -d /usr/nec ;then
9475 version_type=linux
9476 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9477 soname_spec='$libname${shared_ext}.$major'
9478 shlibpath_var=LD_LIBRARY_PATH
9479 fi
9480 ;;
d7040cdb 9481
ce2cded5
L
9482sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9483 version_type=freebsd-elf
9484 need_lib_prefix=no
9485 need_version=no
9486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9487 soname_spec='${libname}${release}${shared_ext}$major'
9488 shlibpath_var=LD_LIBRARY_PATH
9489 shlibpath_overrides_runpath=yes
9490 hardcode_into_libs=yes
9491 if test "$with_gnu_ld" = yes; then
9492 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9493 else
9494 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9495 case $host_os in
9496 sco3.2v5*)
9497 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9498 ;;
9499 esac
9500 fi
9501 sys_lib_dlsearch_path_spec='/usr/lib'
9502 ;;
d7040cdb 9503
ce2cded5
L
9504tpf*)
9505 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9506 version_type=linux
9507 need_lib_prefix=no
9508 need_version=no
9509 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9510 shlibpath_var=LD_LIBRARY_PATH
9511 shlibpath_overrides_runpath=no
9512 hardcode_into_libs=yes
9513 ;;
d7040cdb 9514
ce2cded5
L
9515uts4*)
9516 version_type=linux
9517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9518 soname_spec='${libname}${release}${shared_ext}$major'
9519 shlibpath_var=LD_LIBRARY_PATH
9520 ;;
d7040cdb 9521
ce2cded5
L
9522*)
9523 dynamic_linker=no
9524 ;;
9525esac
9526echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9527echo "${ECHO_T}$dynamic_linker" >&6
9528test "$dynamic_linker" = no && can_build_shared=no
9529
9530variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9531if test "$GCC" = yes; then
9532 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
d7040cdb
SE
9533fi
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
d7040cdb 9546
d7040cdb 9547
d7040cdb 9548
d7040cdb 9549
d7040cdb
SE
9550
9551
9552
9553
d7040cdb 9554
d7040cdb
SE
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
d7040cdb
SE
9568
9569
9570
9571
d7040cdb
SE
9572
9573
9574
9575
d7040cdb 9576
d7040cdb 9577
d7040cdb 9578
d7040cdb 9579
d7040cdb 9580
d7040cdb 9581
d7040cdb 9582
d7040cdb
SE
9583
9584
9585
9586
9587
d7040cdb 9588
d7040cdb 9589
d7040cdb 9590
d7040cdb 9591
d7040cdb 9592
d7040cdb 9593
d7040cdb
SE
9594
9595
9596
9597
9598
d7040cdb
SE
9599
9600
d7040cdb 9601
d7040cdb 9602
d7040cdb 9603
d7040cdb 9604
ce2cded5
L
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9622echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9623hardcode_action=
9624if test -n "$hardcode_libdir_flag_spec" ||
9625 test -n "$runpath_var" ||
9626 test "X$hardcode_automatic" = "Xyes" ; then
9627
9628 # We can hardcode non-existent directories.
9629 if test "$hardcode_direct" != no &&
9630 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9631 # have to relink, otherwise we might link with an installed library
9632 # when we should be linking with a yet-to-be-installed one
9633 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9634 test "$hardcode_minus_L" != no; then
9635 # Linking always hardcodes the temporary library directory.
9636 hardcode_action=relink
9637 else
9638 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9639 hardcode_action=immediate
d7040cdb 9640 fi
d7040cdb 9641else
ce2cded5
L
9642 # We cannot hardcode anything, or else we can only hardcode existing
9643 # directories.
9644 hardcode_action=unsupported
d7040cdb 9645fi
ce2cded5
L
9646echo "$as_me:$LINENO: result: $hardcode_action" >&5
9647echo "${ECHO_T}$hardcode_action" >&6
d7040cdb 9648
ce2cded5
L
9649if test "$hardcode_action" = relink ||
9650 test "$inherit_rpath" = yes; then
9651 # Fast installation is not supported
9652 enable_fast_install=no
9653elif test "$shlibpath_overrides_runpath" = yes ||
9654 test "$enable_shared" = no; then
9655 # Fast installation is not necessary
9656 enable_fast_install=needless
d7040cdb
SE
9657fi
9658
d7040cdb 9659
d7040cdb 9660
d7040cdb 9661
d7040cdb 9662
d7040cdb 9663
ce2cded5
L
9664 if test "x$enable_dlopen" != xyes; then
9665 enable_dlopen=unknown
9666 enable_dlopen_self=unknown
9667 enable_dlopen_self_static=unknown
d7040cdb 9668else
ce2cded5
L
9669 lt_cv_dlopen=no
9670 lt_cv_dlopen_libs=
d7040cdb 9671
ce2cded5
L
9672 case $host_os in
9673 beos*)
9674 lt_cv_dlopen="load_add_on"
9675 lt_cv_dlopen_libs=
9676 lt_cv_dlopen_self=yes
9677 ;;
d7040cdb 9678
ce2cded5
L
9679 mingw* | pw32*)
9680 lt_cv_dlopen="LoadLibrary"
9681 lt_cv_dlopen_libs=
9682 ;;
9683
9684 cygwin*)
9685 lt_cv_dlopen="dlopen"
9686 lt_cv_dlopen_libs=
9687 ;;
9688
9689 darwin*)
9690 # if libdl is installed we need to link against it
9691 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9692echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9693if test "${ac_cv_lib_dl_dlopen+set}" = set; then
d7040cdb
SE
9694 echo $ECHO_N "(cached) $ECHO_C" >&6
9695else
ce2cded5
L
9696 ac_check_lib_save_LIBS=$LIBS
9697LIBS="-ldl $LIBS"
9698cat >conftest.$ac_ext <<_ACEOF
9699/* confdefs.h. */
9700_ACEOF
9701cat confdefs.h >>conftest.$ac_ext
9702cat >>conftest.$ac_ext <<_ACEOF
9703/* end confdefs.h. */
9704
9705/* Override any gcc2 internal prototype to avoid an error. */
9706#ifdef __cplusplus
9707extern "C"
9708#endif
9709/* We use char because int might match the return type of a gcc2
9710 builtin and then its argument prototype would still apply. */
9711char dlopen ();
9712int
9713main ()
9714{
9715dlopen ();
9716 ;
9717 return 0;
9718}
9719_ACEOF
9720rm -f conftest.$ac_objext conftest$ac_exeext
9721if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9722 (eval $ac_link) 2>conftest.er1
9723 ac_status=$?
9724 grep -v '^ *+' conftest.er1 >conftest.err
9725 rm -f conftest.er1
9726 cat conftest.err >&5
9727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728 (exit $ac_status); } &&
9729 { ac_try='test -z "$ac_c_werror_flag"
9730 || test ! -s conftest.err'
9731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9732 (eval $ac_try) 2>&5
9733 ac_status=$?
9734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9735 (exit $ac_status); }; } &&
9736 { ac_try='test -s conftest$ac_exeext'
9737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9738 (eval $ac_try) 2>&5
9739 ac_status=$?
9740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741 (exit $ac_status); }; }; then
9742 ac_cv_lib_dl_dlopen=yes
9743else
9744 echo "$as_me: failed program was:" >&5
9745sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 9746
ce2cded5 9747ac_cv_lib_dl_dlopen=no
d7040cdb 9748fi
ce2cded5
L
9749rm -f conftest.err conftest.$ac_objext \
9750 conftest$ac_exeext conftest.$ac_ext
9751LIBS=$ac_check_lib_save_LIBS
d7040cdb 9752fi
ce2cded5
L
9753echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9754echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9755if test $ac_cv_lib_dl_dlopen = yes; then
9756 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d7040cdb 9757else
d7040cdb 9758
ce2cded5
L
9759 lt_cv_dlopen="dyld"
9760 lt_cv_dlopen_libs=
9761 lt_cv_dlopen_self=yes
9762
d7040cdb 9763fi
ce2cded5
L
9764
9765 ;;
9766
9767 *)
9768 echo "$as_me:$LINENO: checking for shl_load" >&5
9769echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9770if test "${ac_cv_func_shl_load+set}" = set; then
d7040cdb
SE
9771 echo $ECHO_N "(cached) $ECHO_C" >&6
9772else
ce2cded5
L
9773 cat >conftest.$ac_ext <<_ACEOF
9774/* confdefs.h. */
9775_ACEOF
9776cat confdefs.h >>conftest.$ac_ext
9777cat >>conftest.$ac_ext <<_ACEOF
9778/* end confdefs.h. */
9779/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9780 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9781#define shl_load innocuous_shl_load
d7040cdb 9782
ce2cded5
L
9783/* System header to define __stub macros and hopefully few prototypes,
9784 which can conflict with char shl_load (); below.
9785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9786 <limits.h> exists even on freestanding compilers. */
d7040cdb 9787
ce2cded5
L
9788#ifdef __STDC__
9789# include <limits.h>
9790#else
9791# include <assert.h>
9792#endif
d7040cdb 9793
ce2cded5 9794#undef shl_load
d7040cdb 9795
ce2cded5
L
9796/* Override any gcc2 internal prototype to avoid an error. */
9797#ifdef __cplusplus
9798extern "C"
9799{
9800#endif
9801/* We use char because int might match the return type of a gcc2
9802 builtin and then its argument prototype would still apply. */
9803char shl_load ();
9804/* The GNU C library defines this for functions which it implements
9805 to always fail with ENOSYS. Some functions are actually named
9806 something starting with __ and the normal name is an alias. */
9807#if defined (__stub_shl_load) || defined (__stub___shl_load)
9808choke me
9809#else
9810char (*f) () = shl_load;
9811#endif
9812#ifdef __cplusplus
9813}
9814#endif
d7040cdb 9815
ce2cded5
L
9816int
9817main ()
9818{
9819return f != shl_load;
9820 ;
9821 return 0;
9822}
9823_ACEOF
9824rm -f conftest.$ac_objext conftest$ac_exeext
9825if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9826 (eval $ac_link) 2>conftest.er1
9827 ac_status=$?
9828 grep -v '^ *+' conftest.er1 >conftest.err
9829 rm -f conftest.er1
9830 cat conftest.err >&5
9831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9832 (exit $ac_status); } &&
9833 { ac_try='test -z "$ac_c_werror_flag"
9834 || test ! -s conftest.err'
9835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9836 (eval $ac_try) 2>&5
9837 ac_status=$?
9838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839 (exit $ac_status); }; } &&
9840 { ac_try='test -s conftest$ac_exeext'
9841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9842 (eval $ac_try) 2>&5
9843 ac_status=$?
9844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845 (exit $ac_status); }; }; then
9846 ac_cv_func_shl_load=yes
9847else
9848 echo "$as_me: failed program was:" >&5
9849sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 9850
ce2cded5
L
9851ac_cv_func_shl_load=no
9852fi
9853rm -f conftest.err conftest.$ac_objext \
9854 conftest$ac_exeext conftest.$ac_ext
9855fi
9856echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9857echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9858if test $ac_cv_func_shl_load = yes; then
9859 lt_cv_dlopen="shl_load"
9860else
9861 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9862echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9863if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9864 echo $ECHO_N "(cached) $ECHO_C" >&6
9865else
9866 ac_check_lib_save_LIBS=$LIBS
9867LIBS="-ldld $LIBS"
9868cat >conftest.$ac_ext <<_ACEOF
9869/* confdefs.h. */
9870_ACEOF
9871cat confdefs.h >>conftest.$ac_ext
9872cat >>conftest.$ac_ext <<_ACEOF
9873/* end confdefs.h. */
d7040cdb 9874
ce2cded5
L
9875/* Override any gcc2 internal prototype to avoid an error. */
9876#ifdef __cplusplus
9877extern "C"
9878#endif
9879/* We use char because int might match the return type of a gcc2
9880 builtin and then its argument prototype would still apply. */
9881char shl_load ();
9882int
9883main ()
9884{
9885shl_load ();
9886 ;
9887 return 0;
9888}
9889_ACEOF
9890rm -f conftest.$ac_objext conftest$ac_exeext
9891if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9892 (eval $ac_link) 2>conftest.er1
d7040cdb 9893 ac_status=$?
ce2cded5
L
9894 grep -v '^ *+' conftest.er1 >conftest.err
9895 rm -f conftest.er1
9896 cat conftest.err >&5
d7040cdb 9897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9898 (exit $ac_status); } &&
9899 { ac_try='test -z "$ac_c_werror_flag"
9900 || test ! -s conftest.err'
9901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9902 (eval $ac_try) 2>&5
d7040cdb
SE
9903 ac_status=$?
9904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9905 (exit $ac_status); }; } &&
9906 { ac_try='test -s conftest$ac_exeext'
9907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9908 (eval $ac_try) 2>&5
d7040cdb
SE
9909 ac_status=$?
9910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9911 (exit $ac_status); }; }; then
9912 ac_cv_lib_dld_shl_load=yes
9913else
9914 echo "$as_me: failed program was:" >&5
9915sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 9916
ce2cded5
L
9917ac_cv_lib_dld_shl_load=no
9918fi
9919rm -f conftest.err conftest.$ac_objext \
9920 conftest$ac_exeext conftest.$ac_ext
9921LIBS=$ac_check_lib_save_LIBS
9922fi
9923echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9924echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9925if test $ac_cv_lib_dld_shl_load = yes; then
9926 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9927else
9928 echo "$as_me:$LINENO: checking for dlopen" >&5
9929echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9930if test "${ac_cv_func_dlopen+set}" = set; then
d7040cdb
SE
9931 echo $ECHO_N "(cached) $ECHO_C" >&6
9932else
9933 cat >conftest.$ac_ext <<_ACEOF
9934/* confdefs.h. */
9935_ACEOF
9936cat confdefs.h >>conftest.$ac_ext
9937cat >>conftest.$ac_ext <<_ACEOF
9938/* end confdefs.h. */
ce2cded5
L
9939/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9940 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9941#define dlopen innocuous_dlopen
9942
9943/* System header to define __stub macros and hopefully few prototypes,
9944 which can conflict with char dlopen (); below.
9945 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9946 <limits.h> exists even on freestanding compilers. */
9947
9948#ifdef __STDC__
9949# include <limits.h>
9950#else
9951# include <assert.h>
9952#endif
9953
9954#undef dlopen
9955
9956/* Override any gcc2 internal prototype to avoid an error. */
9957#ifdef __cplusplus
9958extern "C"
9959{
9960#endif
9961/* We use char because int might match the return type of a gcc2
9962 builtin and then its argument prototype would still apply. */
9963char dlopen ();
9964/* The GNU C library defines this for functions which it implements
9965 to always fail with ENOSYS. Some functions are actually named
9966 something starting with __ and the normal name is an alias. */
9967#if defined (__stub_dlopen) || defined (__stub___dlopen)
9968choke me
9969#else
9970char (*f) () = dlopen;
9971#endif
9972#ifdef __cplusplus
9973}
9974#endif
d7040cdb
SE
9975
9976int
9977main ()
9978{
ce2cded5 9979return f != dlopen;
d7040cdb
SE
9980 ;
9981 return 0;
9982}
9983_ACEOF
ce2cded5
L
9984rm -f conftest.$ac_objext conftest$ac_exeext
9985if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9986 (eval $ac_link) 2>conftest.er1
d7040cdb
SE
9987 ac_status=$?
9988 grep -v '^ *+' conftest.er1 >conftest.err
9989 rm -f conftest.er1
9990 cat conftest.err >&5
9991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9992 (exit $ac_status); } &&
9993 { ac_try='test -z "$ac_c_werror_flag"
9994 || test ! -s conftest.err'
9995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9996 (eval $ac_try) 2>&5
9997 ac_status=$?
9998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9999 (exit $ac_status); }; } &&
ce2cded5 10000 { ac_try='test -s conftest$ac_exeext'
d7040cdb
SE
10001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10002 (eval $ac_try) 2>&5
10003 ac_status=$?
10004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10005 (exit $ac_status); }; }; then
ce2cded5 10006 ac_cv_func_dlopen=yes
d7040cdb
SE
10007else
10008 echo "$as_me: failed program was:" >&5
10009sed 's/^/| /' conftest.$ac_ext >&5
10010
ce2cded5 10011ac_cv_func_dlopen=no
d7040cdb 10012fi
ce2cded5
L
10013rm -f conftest.err conftest.$ac_objext \
10014 conftest$ac_exeext conftest.$ac_ext
d7040cdb 10015fi
ce2cded5
L
10016echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10017echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10018if test $ac_cv_func_dlopen = yes; then
10019 lt_cv_dlopen="dlopen"
10020else
10021 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10022echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10023if test "${ac_cv_lib_dl_dlopen+set}" = set; then
d7040cdb
SE
10024 echo $ECHO_N "(cached) $ECHO_C" >&6
10025else
ce2cded5
L
10026 ac_check_lib_save_LIBS=$LIBS
10027LIBS="-ldl $LIBS"
10028cat >conftest.$ac_ext <<_ACEOF
d7040cdb
SE
10029/* confdefs.h. */
10030_ACEOF
10031cat confdefs.h >>conftest.$ac_ext
10032cat >>conftest.$ac_ext <<_ACEOF
10033/* end confdefs.h. */
10034
ce2cded5
L
10035/* Override any gcc2 internal prototype to avoid an error. */
10036#ifdef __cplusplus
10037extern "C"
10038#endif
10039/* We use char because int might match the return type of a gcc2
10040 builtin and then its argument prototype would still apply. */
10041char dlopen ();
d7040cdb
SE
10042int
10043main ()
10044{
ce2cded5 10045dlopen ();
d7040cdb
SE
10046 ;
10047 return 0;
10048}
10049_ACEOF
ce2cded5
L
10050rm -f conftest.$ac_objext conftest$ac_exeext
10051if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10052 (eval $ac_link) 2>conftest.er1
d7040cdb
SE
10053 ac_status=$?
10054 grep -v '^ *+' conftest.er1 >conftest.err
10055 rm -f conftest.er1
10056 cat conftest.err >&5
10057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10058 (exit $ac_status); } &&
10059 { ac_try='test -z "$ac_c_werror_flag"
10060 || test ! -s conftest.err'
10061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10062 (eval $ac_try) 2>&5
10063 ac_status=$?
10064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10065 (exit $ac_status); }; } &&
ce2cded5 10066 { ac_try='test -s conftest$ac_exeext'
d7040cdb
SE
10067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10068 (eval $ac_try) 2>&5
10069 ac_status=$?
10070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071 (exit $ac_status); }; }; then
ce2cded5 10072 ac_cv_lib_dl_dlopen=yes
d7040cdb
SE
10073else
10074 echo "$as_me: failed program was:" >&5
10075sed 's/^/| /' conftest.$ac_ext >&5
10076
ce2cded5 10077ac_cv_lib_dl_dlopen=no
d7040cdb 10078fi
ce2cded5
L
10079rm -f conftest.err conftest.$ac_objext \
10080 conftest$ac_exeext conftest.$ac_ext
10081LIBS=$ac_check_lib_save_LIBS
d7040cdb 10082fi
ce2cded5
L
10083echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10084echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10085if test $ac_cv_lib_dl_dlopen = yes; then
10086 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d7040cdb 10087else
ce2cded5
L
10088 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10089echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10090if test "${ac_cv_lib_svld_dlopen+set}" = set; then
d7040cdb
SE
10091 echo $ECHO_N "(cached) $ECHO_C" >&6
10092else
ce2cded5
L
10093 ac_check_lib_save_LIBS=$LIBS
10094LIBS="-lsvld $LIBS"
d7040cdb
SE
10095cat >conftest.$ac_ext <<_ACEOF
10096/* confdefs.h. */
10097_ACEOF
10098cat confdefs.h >>conftest.$ac_ext
10099cat >>conftest.$ac_ext <<_ACEOF
10100/* end confdefs.h. */
d7040cdb 10101
ce2cded5
L
10102/* Override any gcc2 internal prototype to avoid an error. */
10103#ifdef __cplusplus
10104extern "C"
10105#endif
10106/* We use char because int might match the return type of a gcc2
10107 builtin and then its argument prototype would still apply. */
10108char dlopen ();
d7040cdb
SE
10109int
10110main ()
10111{
ce2cded5 10112dlopen ();
d7040cdb
SE
10113 ;
10114 return 0;
10115}
10116_ACEOF
ce2cded5
L
10117rm -f conftest.$ac_objext conftest$ac_exeext
10118if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10119 (eval $ac_link) 2>conftest.er1
d7040cdb
SE
10120 ac_status=$?
10121 grep -v '^ *+' conftest.er1 >conftest.err
10122 rm -f conftest.er1
10123 cat conftest.err >&5
10124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125 (exit $ac_status); } &&
10126 { ac_try='test -z "$ac_c_werror_flag"
10127 || test ! -s conftest.err'
10128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10129 (eval $ac_try) 2>&5
10130 ac_status=$?
10131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10132 (exit $ac_status); }; } &&
ce2cded5 10133 { ac_try='test -s conftest$ac_exeext'
d7040cdb
SE
10134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10135 (eval $ac_try) 2>&5
10136 ac_status=$?
10137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10138 (exit $ac_status); }; }; then
ce2cded5 10139 ac_cv_lib_svld_dlopen=yes
d7040cdb
SE
10140else
10141 echo "$as_me: failed program was:" >&5
10142sed 's/^/| /' conftest.$ac_ext >&5
10143
ce2cded5 10144ac_cv_lib_svld_dlopen=no
d7040cdb 10145fi
ce2cded5
L
10146rm -f conftest.err conftest.$ac_objext \
10147 conftest$ac_exeext conftest.$ac_ext
10148LIBS=$ac_check_lib_save_LIBS
d7040cdb 10149fi
ce2cded5
L
10150echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10151echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10152if test $ac_cv_lib_svld_dlopen = yes; then
10153 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10154else
10155 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10156echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10157if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10158 echo $ECHO_N "(cached) $ECHO_C" >&6
10159else
10160 ac_check_lib_save_LIBS=$LIBS
10161LIBS="-ldld $LIBS"
d7040cdb 10162cat >conftest.$ac_ext <<_ACEOF
d7040cdb
SE
10163/* confdefs.h. */
10164_ACEOF
10165cat confdefs.h >>conftest.$ac_ext
10166cat >>conftest.$ac_ext <<_ACEOF
ce2cded5
L
10167/* end confdefs.h. */
10168
10169/* Override any gcc2 internal prototype to avoid an error. */
10170#ifdef __cplusplus
10171extern "C"
10172#endif
10173/* We use char because int might match the return type of a gcc2
10174 builtin and then its argument prototype would still apply. */
10175char dld_link ();
d7040cdb
SE
10176int
10177main ()
10178{
ce2cded5 10179dld_link ();
d7040cdb
SE
10180 ;
10181 return 0;
10182}
10183_ACEOF
ce2cded5
L
10184rm -f conftest.$ac_objext conftest$ac_exeext
10185if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10186 (eval $ac_link) 2>conftest.er1
d7040cdb
SE
10187 ac_status=$?
10188 grep -v '^ *+' conftest.er1 >conftest.err
10189 rm -f conftest.er1
10190 cat conftest.err >&5
10191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10192 (exit $ac_status); } &&
10193 { ac_try='test -z "$ac_c_werror_flag"
10194 || test ! -s conftest.err'
10195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10196 (eval $ac_try) 2>&5
10197 ac_status=$?
10198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10199 (exit $ac_status); }; } &&
ce2cded5 10200 { ac_try='test -s conftest$ac_exeext'
d7040cdb
SE
10201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10202 (eval $ac_try) 2>&5
10203 ac_status=$?
10204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205 (exit $ac_status); }; }; then
ce2cded5 10206 ac_cv_lib_dld_dld_link=yes
d7040cdb
SE
10207else
10208 echo "$as_me: failed program was:" >&5
10209sed 's/^/| /' conftest.$ac_ext >&5
10210
ce2cded5 10211ac_cv_lib_dld_dld_link=no
d7040cdb 10212fi
ce2cded5
L
10213rm -f conftest.err conftest.$ac_objext \
10214 conftest$ac_exeext conftest.$ac_ext
10215LIBS=$ac_check_lib_save_LIBS
10216fi
10217echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10218echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10219if test $ac_cv_lib_dld_dld_link = yes; then
10220 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10221fi
10222
10223
10224fi
10225
10226
10227fi
10228
10229
10230fi
10231
10232
10233fi
10234
10235
10236fi
10237
10238 ;;
10239 esac
10240
10241 if test "x$lt_cv_dlopen" != xno; then
10242 enable_dlopen=yes
10243 else
10244 enable_dlopen=no
10245 fi
10246
10247 case $lt_cv_dlopen in
10248 dlopen)
10249 save_CPPFLAGS="$CPPFLAGS"
10250 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10251
10252 save_LDFLAGS="$LDFLAGS"
10253 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10254
10255 save_LIBS="$LIBS"
10256 LIBS="$lt_cv_dlopen_libs $LIBS"
10257
10258 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10259echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10260if test "${lt_cv_dlopen_self+set}" = set; then
10261 echo $ECHO_N "(cached) $ECHO_C" >&6
10262else
10263 if test "$cross_compiling" = yes; then :
10264 lt_cv_dlopen_self=cross
10265else
10266 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10267 lt_status=$lt_dlunknown
10268 cat > conftest.$ac_ext <<_LT_EOF
7a283e07 10269#line 10269 "configure"
ce2cded5
L
10270#include "confdefs.h"
10271
10272#if HAVE_DLFCN_H
10273#include <dlfcn.h>
10274#endif
10275
10276#include <stdio.h>
10277
10278#ifdef RTLD_GLOBAL
10279# define LT_DLGLOBAL RTLD_GLOBAL
10280#else
10281# ifdef DL_GLOBAL
10282# define LT_DLGLOBAL DL_GLOBAL
10283# else
10284# define LT_DLGLOBAL 0
10285# endif
10286#endif
10287
10288/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10289 find out it does not work in some platform. */
10290#ifndef LT_DLLAZY_OR_NOW
10291# ifdef RTLD_LAZY
10292# define LT_DLLAZY_OR_NOW RTLD_LAZY
10293# else
10294# ifdef DL_LAZY
10295# define LT_DLLAZY_OR_NOW DL_LAZY
10296# else
10297# ifdef RTLD_NOW
10298# define LT_DLLAZY_OR_NOW RTLD_NOW
10299# else
10300# ifdef DL_NOW
10301# define LT_DLLAZY_OR_NOW DL_NOW
10302# else
10303# define LT_DLLAZY_OR_NOW 0
10304# endif
10305# endif
10306# endif
10307# endif
10308#endif
10309
10310#ifdef __cplusplus
10311extern "C" void exit (int);
10312#endif
10313
10314void fnord() { int i=42;}
10315int main ()
d7040cdb 10316{
ce2cded5
L
10317 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10318 int status = $lt_dlunknown;
10319
10320 if (self)
10321 {
10322 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10323 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10324 /* dlclose (self); */
10325 }
10326 else
10327 puts (dlerror ());
10328
10329 exit (status);
d7040cdb 10330}
ce2cded5
L
10331_LT_EOF
10332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10333 (eval $ac_link) 2>&5
d7040cdb
SE
10334 ac_status=$?
10335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
10336 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10337 (./conftest; exit; ) >&5 2>/dev/null
10338 lt_status=$?
10339 case x$lt_status in
10340 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10341 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10342 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10343 esac
10344 else :
10345 # compilation failed
10346 lt_cv_dlopen_self=no
10347 fi
10348fi
10349rm -fr conftest*
10350
10351
10352fi
10353echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10354echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10355
10356 if test "x$lt_cv_dlopen_self" = xyes; then
10357 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10358 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10359echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10360if test "${lt_cv_dlopen_self_static+set}" = set; then
10361 echo $ECHO_N "(cached) $ECHO_C" >&6
10362else
10363 if test "$cross_compiling" = yes; then :
10364 lt_cv_dlopen_self_static=cross
10365else
10366 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10367 lt_status=$lt_dlunknown
10368 cat > conftest.$ac_ext <<_LT_EOF
7a283e07 10369#line 10369 "configure"
ce2cded5
L
10370#include "confdefs.h"
10371
10372#if HAVE_DLFCN_H
10373#include <dlfcn.h>
10374#endif
10375
10376#include <stdio.h>
10377
10378#ifdef RTLD_GLOBAL
10379# define LT_DLGLOBAL RTLD_GLOBAL
10380#else
10381# ifdef DL_GLOBAL
10382# define LT_DLGLOBAL DL_GLOBAL
10383# else
10384# define LT_DLGLOBAL 0
10385# endif
10386#endif
10387
10388/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10389 find out it does not work in some platform. */
10390#ifndef LT_DLLAZY_OR_NOW
10391# ifdef RTLD_LAZY
10392# define LT_DLLAZY_OR_NOW RTLD_LAZY
10393# else
10394# ifdef DL_LAZY
10395# define LT_DLLAZY_OR_NOW DL_LAZY
10396# else
10397# ifdef RTLD_NOW
10398# define LT_DLLAZY_OR_NOW RTLD_NOW
10399# else
10400# ifdef DL_NOW
10401# define LT_DLLAZY_OR_NOW DL_NOW
10402# else
10403# define LT_DLLAZY_OR_NOW 0
10404# endif
10405# endif
10406# endif
10407# endif
10408#endif
10409
10410#ifdef __cplusplus
10411extern "C" void exit (int);
10412#endif
10413
10414void fnord() { int i=42;}
10415int main ()
10416{
10417 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10418 int status = $lt_dlunknown;
10419
10420 if (self)
10421 {
10422 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10423 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10424 /* dlclose (self); */
10425 }
10426 else
10427 puts (dlerror ());
10428
10429 exit (status);
10430}
10431_LT_EOF
10432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10433 (eval $ac_link) 2>&5
d7040cdb
SE
10434 ac_status=$?
10435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
10436 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10437 (./conftest; exit; ) >&5 2>/dev/null
10438 lt_status=$?
10439 case x$lt_status in
10440 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10441 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10442 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10443 esac
10444 else :
10445 # compilation failed
10446 lt_cv_dlopen_self_static=no
10447 fi
10448fi
10449rm -fr conftest*
10450
d7040cdb
SE
10451
10452fi
ce2cded5
L
10453echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10454echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10455 fi
10456
10457 CPPFLAGS="$save_CPPFLAGS"
10458 LDFLAGS="$save_LDFLAGS"
10459 LIBS="$save_LIBS"
10460 ;;
10461 esac
10462
10463 case $lt_cv_dlopen_self in
10464 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10465 *) enable_dlopen_self=unknown ;;
10466 esac
10467
10468 case $lt_cv_dlopen_self_static in
10469 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10470 *) enable_dlopen_self_static=unknown ;;
10471 esac
d7040cdb
SE
10472fi
10473
ce2cded5
L
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490striplib=
10491old_striplib=
10492echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10493echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10494if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10495 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10496 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10497 echo "$as_me:$LINENO: result: yes" >&5
10498echo "${ECHO_T}yes" >&6
d7040cdb 10499else
ce2cded5
L
10500# FIXME - insert some real tests, host_os isn't really good enough
10501 case $host_os in
10502 darwin*)
10503 if test -n "$STRIP" ; then
10504 striplib="$STRIP -x"
10505 old_striplib="$STRIP -S"
10506 echo "$as_me:$LINENO: result: yes" >&5
10507echo "${ECHO_T}yes" >&6
10508 else
10509 echo "$as_me:$LINENO: result: no" >&5
10510echo "${ECHO_T}no" >&6
10511 fi
10512 ;;
10513 *)
10514 echo "$as_me:$LINENO: result: no" >&5
10515echo "${ECHO_T}no" >&6
10516 ;;
10517 esac
10518fi
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531 # Report which library types will actually be built
10532 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10533echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10534 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10535echo "${ECHO_T}$can_build_shared" >&6
10536
10537 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10538echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10539 test "$can_build_shared" = "no" && enable_shared=no
10540
10541 # On AIX, shared libraries and static libraries use the same namespace, and
10542 # are all built from PIC.
10543 case $host_os in
10544 aix3*)
10545 test "$enable_shared" = yes && enable_static=no
10546 if test -n "$RANLIB"; then
10547 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10548 postinstall_cmds='$RANLIB $lib'
10549 fi
10550 ;;
10551
50e7d84b 10552 aix[4-9]*)
ce2cded5
L
10553 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10554 test "$enable_shared" = yes && enable_static=no
10555 fi
10556 ;;
10557 esac
10558 echo "$as_me:$LINENO: result: $enable_shared" >&5
10559echo "${ECHO_T}$enable_shared" >&6
10560
10561 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10562echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10563 # Make sure either enable_shared or enable_static is yes.
10564 test "$enable_shared" = yes || enable_static=yes
10565 echo "$as_me:$LINENO: result: $enable_static" >&5
10566echo "${ECHO_T}$enable_static" >&6
10567
10568
10569
d7040cdb
SE
10570
10571fi
d7040cdb
SE
10572ac_ext=c
10573ac_cpp='$CPP $CPPFLAGS'
10574ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10575ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10576ac_compiler_gnu=$ac_cv_c_compiler_gnu
10577
ce2cded5 10578CC="$lt_save_CC"
67310ccd 10579
67310ccd
AM
10580
10581
d7040cdb
SE
10582
10583
d7040cdb 10584
d7040cdb 10585
d7040cdb 10586
ce2cded5
L
10587
10588
10589
10590
10591
10592 ac_config_commands="$ac_config_commands libtool"
10593
10594
10595
10596
10597# Only expand once:
10598
d7040cdb
SE
10599
10600
19aec961 10601ALL_LINGUAS="fr sv tr es da vi zh_CN zh_TW ga fi"
d7040cdb
SE
10602# If we haven't got the data from the intl directory,
10603# assume NLS is disabled.
10604USE_NLS=no
10605LIBINTL=
10606LIBINTL_DEP=
10607INCINTL=
10608XGETTEXT=
10609GMSGFMT=
10610POSUB=
10611
10612if test -f ../intl/config.intl; then
10613 . ../intl/config.intl
10614fi
10615echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10616echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10617if test x"$USE_NLS" != xyes; then
10618 echo "$as_me:$LINENO: result: no" >&5
10619echo "${ECHO_T}no" >&6
10620else
10621 echo "$as_me:$LINENO: result: yes" >&5
10622echo "${ECHO_T}yes" >&6
10623
10624cat >>confdefs.h <<\_ACEOF
10625#define ENABLE_NLS 1
10626_ACEOF
10627
10628
10629 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
10630echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
10631 # Look for .po and .gmo files in the source directory.
10632 CATALOGS=
10633 XLINGUAS=
10634 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
10635 # If there aren't any .gmo files the shell will give us the
10636 # literal string "../path/to/srcdir/po/*.gmo" which has to be
10637 # weeded out.
10638 case "$cat" in *\**)
10639 continue;;
10640 esac
10641 # The quadruple backslash is collapsed to a double backslash
10642 # by the backticks, then collapsed again by the double quotes,
10643 # leaving us with one backslash in the sed expression (right
10644 # before the dot that mustn't act as a wildcard).
10645 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10646 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
10647 # The user is allowed to set LINGUAS to a list of languages to
10648 # install catalogs for. If it's empty that means "all of them."
10649 if test "x$LINGUAS" = x; then
10650 CATALOGS="$CATALOGS $cat"
10651 XLINGUAS="$XLINGUAS $lang"
10652 else
10653 case "$LINGUAS" in *$lang*)
10654 CATALOGS="$CATALOGS $cat"
10655 XLINGUAS="$XLINGUAS $lang"
10656 ;;
10657 esac
10658 fi
10659 done
10660 LINGUAS="$XLINGUAS"
10661 echo "$as_me:$LINENO: result: $LINGUAS" >&5
10662echo "${ECHO_T}$LINGUAS" >&6
10663
10664
10665 DATADIRNAME=share
10666
10667 INSTOBJEXT=.mo
10668
10669 GENCAT=gencat
10670
10671 CATOBJEXT=.gmo
10672
10673fi
10674
10675 MKINSTALLDIRS=
10676 if test -n "$ac_aux_dir"; then
10677 case "$ac_aux_dir" in
10678 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
10679 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
10680 esac
10681 fi
10682 if test -z "$MKINSTALLDIRS"; then
10683 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
10684 fi
10685
10686
10687
10688 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10689echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10690 # Check whether --enable-nls or --disable-nls was given.
10691if test "${enable_nls+set}" = set; then
10692 enableval="$enable_nls"
10693 USE_NLS=$enableval
10694else
10695 USE_NLS=yes
10696fi;
10697 echo "$as_me:$LINENO: result: $USE_NLS" >&5
10698echo "${ECHO_T}$USE_NLS" >&6
10699
10700
10701
10702
10703
10704
10705# Prepare PATH_SEPARATOR.
10706# The user is always right.
10707if test "${PATH_SEPARATOR+set}" != set; then
10708 echo "#! /bin/sh" >conf$$.sh
10709 echo "exit 0" >>conf$$.sh
10710 chmod +x conf$$.sh
10711 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10712 PATH_SEPARATOR=';'
10713 else
10714 PATH_SEPARATOR=:
10715 fi
10716 rm -f conf$$.sh
10717fi
10718
10719# Find out how to test for executable files. Don't use a zero-byte file,
10720# as systems may use methods other than mode bits to determine executability.
10721cat >conf$$.file <<_ASEOF
10722#! /bin/sh
10723exit 0
10724_ASEOF
10725chmod +x conf$$.file
10726if test -x conf$$.file >/dev/null 2>&1; then
10727 ac_executable_p="test -x"
10728else
10729 ac_executable_p="test -f"
10730fi
10731rm -f conf$$.file
10732
10733# Extract the first word of "msgfmt", so it can be a program name with args.
10734set dummy msgfmt; ac_word=$2
10735echo "$as_me:$LINENO: checking for $ac_word" >&5
10736echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10737if test "${ac_cv_path_MSGFMT+set}" = set; then
10738 echo $ECHO_N "(cached) $ECHO_C" >&6
10739else
10740 case "$MSGFMT" in
10741 [\\/]* | ?:[\\/]*)
10742 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10743 ;;
10744 *)
10745 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10746 for ac_dir in $PATH; do
10747 IFS="$ac_save_IFS"
10748 test -z "$ac_dir" && ac_dir=.
10749 for ac_exec_ext in '' $ac_executable_extensions; do
10750 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10751 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
10752 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10753 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
10754 break 2
10755 fi
10756 fi
10757 done
10758 done
10759 IFS="$ac_save_IFS"
10760 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
10761 ;;
10762esac
10763fi
10764MSGFMT="$ac_cv_path_MSGFMT"
10765if test "$MSGFMT" != ":"; then
10766 echo "$as_me:$LINENO: result: $MSGFMT" >&5
10767echo "${ECHO_T}$MSGFMT" >&6
10768else
10769 echo "$as_me:$LINENO: result: no" >&5
10770echo "${ECHO_T}no" >&6
10771fi
10772
10773 # Extract the first word of "gmsgfmt", so it can be a program name with args.
10774set dummy gmsgfmt; ac_word=$2
10775echo "$as_me:$LINENO: checking for $ac_word" >&5
10776echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10777if test "${ac_cv_path_GMSGFMT+set}" = set; then
10778 echo $ECHO_N "(cached) $ECHO_C" >&6
10779else
10780 case $GMSGFMT in
10781 [\\/]* | ?:[\\/]*)
10782 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
10783 ;;
10784 *)
10785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10786for as_dir in $PATH
10787do
10788 IFS=$as_save_IFS
10789 test -z "$as_dir" && as_dir=.
10790 for ac_exec_ext in '' $ac_executable_extensions; do
10791 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10792 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
10793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10794 break 2
10795 fi
10796done
10797done
10798
10799 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
10800 ;;
10801esac
10802fi
10803GMSGFMT=$ac_cv_path_GMSGFMT
252b5132 10804
d7040cdb
SE
10805if test -n "$GMSGFMT"; then
10806 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
10807echo "${ECHO_T}$GMSGFMT" >&6
10808else
10809 echo "$as_me:$LINENO: result: no" >&5
10810echo "${ECHO_T}no" >&6
20e95c23 10811fi
42ecbf5e 10812
20e95c23 10813
252b5132 10814
d7040cdb
SE
10815# Prepare PATH_SEPARATOR.
10816# The user is always right.
10817if test "${PATH_SEPARATOR+set}" != set; then
10818 echo "#! /bin/sh" >conf$$.sh
10819 echo "exit 0" >>conf$$.sh
10820 chmod +x conf$$.sh
10821 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10822 PATH_SEPARATOR=';'
10823 else
10824 PATH_SEPARATOR=:
10825 fi
10826 rm -f conf$$.sh
20e95c23 10827fi
252b5132 10828
d7040cdb
SE
10829# Find out how to test for executable files. Don't use a zero-byte file,
10830# as systems may use methods other than mode bits to determine executability.
10831cat >conf$$.file <<_ASEOF
10832#! /bin/sh
10833exit 0
10834_ASEOF
10835chmod +x conf$$.file
10836if test -x conf$$.file >/dev/null 2>&1; then
10837 ac_executable_p="test -x"
20e95c23 10838else
d7040cdb
SE
10839 ac_executable_p="test -f"
10840fi
10841rm -f conf$$.file
20e95c23 10842
d7040cdb
SE
10843# Extract the first word of "xgettext", so it can be a program name with args.
10844set dummy xgettext; ac_word=$2
10845echo "$as_me:$LINENO: checking for $ac_word" >&5
10846echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10847if test "${ac_cv_path_XGETTEXT+set}" = set; then
10848 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10849else
d7040cdb
SE
10850 case "$XGETTEXT" in
10851 [\\/]* | ?:[\\/]*)
10852 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
10853 ;;
10854 *)
10855 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10856 for ac_dir in $PATH; do
10857 IFS="$ac_save_IFS"
10858 test -z "$ac_dir" && ac_dir=.
10859 for ac_exec_ext in '' $ac_executable_extensions; do
10860 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10861 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
10862 (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
10863 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
10864 break 2
10865 fi
10866 fi
10867 done
10868 done
10869 IFS="$ac_save_IFS"
10870 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
10871 ;;
10872esac
252b5132 10873fi
d7040cdb
SE
10874XGETTEXT="$ac_cv_path_XGETTEXT"
10875if test "$XGETTEXT" != ":"; then
10876 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
10877echo "${ECHO_T}$XGETTEXT" >&6
d5fbea21 10878else
d7040cdb
SE
10879 echo "$as_me:$LINENO: result: no" >&5
10880echo "${ECHO_T}no" >&6
d5fbea21
DJ
10881fi
10882
d7040cdb 10883 rm -f messages.po
d5fbea21 10884
20e95c23 10885
d7040cdb
SE
10886# Prepare PATH_SEPARATOR.
10887# The user is always right.
10888if test "${PATH_SEPARATOR+set}" != set; then
10889 echo "#! /bin/sh" >conf$$.sh
10890 echo "exit 0" >>conf$$.sh
10891 chmod +x conf$$.sh
10892 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10893 PATH_SEPARATOR=';'
10894 else
10895 PATH_SEPARATOR=:
10896 fi
10897 rm -f conf$$.sh
10898fi
20e95c23 10899
d7040cdb
SE
10900# Find out how to test for executable files. Don't use a zero-byte file,
10901# as systems may use methods other than mode bits to determine executability.
10902cat >conf$$.file <<_ASEOF
10903#! /bin/sh
10904exit 0
10905_ASEOF
10906chmod +x conf$$.file
10907if test -x conf$$.file >/dev/null 2>&1; then
10908 ac_executable_p="test -x"
10909else
10910 ac_executable_p="test -f"
10911fi
10912rm -f conf$$.file
20e95c23 10913
d7040cdb
SE
10914# Extract the first word of "msgmerge", so it can be a program name with args.
10915set dummy msgmerge; ac_word=$2
10916echo "$as_me:$LINENO: checking for $ac_word" >&5
10917echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10918if test "${ac_cv_path_MSGMERGE+set}" = set; then
10919 echo $ECHO_N "(cached) $ECHO_C" >&6
10920else
10921 case "$MSGMERGE" in
10922 [\\/]* | ?:[\\/]*)
10923 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
10924 ;;
10925 *)
10926 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10927 for ac_dir in $PATH; do
10928 IFS="$ac_save_IFS"
10929 test -z "$ac_dir" && ac_dir=.
10930 for ac_exec_ext in '' $ac_executable_extensions; do
10931 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10932 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
10933 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
10934 break 2
10935 fi
10936 fi
10937 done
10938 done
10939 IFS="$ac_save_IFS"
10940 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
10941 ;;
10942esac
10943fi
10944MSGMERGE="$ac_cv_path_MSGMERGE"
10945if test "$MSGMERGE" != ":"; then
10946 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
10947echo "${ECHO_T}$MSGMERGE" >&6
10948else
10949 echo "$as_me:$LINENO: result: no" >&5
10950echo "${ECHO_T}no" >&6
10951fi
20e95c23
DJ
10952
10953
d7040cdb
SE
10954 if test "$GMSGFMT" != ":"; then
10955 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
10956 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10957 : ;
10958 else
10959 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
10960 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
10961echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
10962 GMSGFMT=":"
10963 fi
10964 fi
20e95c23 10965
d7040cdb
SE
10966 if test "$XGETTEXT" != ":"; then
10967 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
10968 (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
10969 : ;
10970 else
10971 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
10972echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
10973 XGETTEXT=":"
10974 fi
10975 rm -f messages.po
20e95c23 10976 fi
42ecbf5e 10977
d7040cdb 10978 ac_config_commands="$ac_config_commands default-1"
252b5132 10979
42ecbf5e 10980
252b5132 10981
42ecbf5e
DJ
10982
10983
d7040cdb 10984for ac_prog in 'bison -y' byacc
20e95c23 10985do
d7040cdb
SE
10986 # Extract the first word of "$ac_prog", so it can be a program name with args.
10987set dummy $ac_prog; ac_word=$2
10988echo "$as_me:$LINENO: checking for $ac_word" >&5
10989echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10990if test "${ac_cv_prog_YACC+set}" = set; then
10991 echo $ECHO_N "(cached) $ECHO_C" >&6
20e95c23 10992else
d7040cdb
SE
10993 if test -n "$YACC"; then
10994 ac_cv_prog_YACC="$YACC" # Let the user override the test.
42ecbf5e 10995else
d7040cdb
SE
10996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10997for as_dir in $PATH
10998do
10999 IFS=$as_save_IFS
11000 test -z "$as_dir" && as_dir=.
11001 for ac_exec_ext in '' $ac_executable_extensions; do
11002 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11003 ac_cv_prog_YACC="$ac_prog"
11004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11005 break 2
11006 fi
11007done
11008done
42ecbf5e 11009
42ecbf5e 11010fi
e5a52504 11011fi
d7040cdb
SE
11012YACC=$ac_cv_prog_YACC
11013if test -n "$YACC"; then
11014 echo "$as_me:$LINENO: result: $YACC" >&5
11015echo "${ECHO_T}$YACC" >&6
42ecbf5e 11016else
d7040cdb
SE
11017 echo "$as_me:$LINENO: result: no" >&5
11018echo "${ECHO_T}no" >&6
42ecbf5e 11019fi
252b5132 11020
d7040cdb 11021 test -n "$YACC" && break
42ecbf5e 11022done
d7040cdb 11023test -n "$YACC" || YACC="yacc"
d15b04bd 11024
d7040cdb
SE
11025for ac_prog in flex lex
11026do
11027 # Extract the first word of "$ac_prog", so it can be a program name with args.
11028set dummy $ac_prog; ac_word=$2
11029echo "$as_me:$LINENO: checking for $ac_word" >&5
11030echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11031if test "${ac_cv_prog_LEX+set}" = set; then
20e95c23 11032 echo $ECHO_N "(cached) $ECHO_C" >&6
d15b04bd 11033else
d7040cdb
SE
11034 if test -n "$LEX"; then
11035 ac_cv_prog_LEX="$LEX" # Let the user override the test.
11036else
11037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11038for as_dir in $PATH
11039do
11040 IFS=$as_save_IFS
11041 test -z "$as_dir" && as_dir=.
11042 for ac_exec_ext in '' $ac_executable_extensions; do
11043 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11044 ac_cv_prog_LEX="$ac_prog"
11045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11046 break 2
11047 fi
11048done
11049done
11050
11051fi
11052fi
11053LEX=$ac_cv_prog_LEX
11054if test -n "$LEX"; then
11055 echo "$as_me:$LINENO: result: $LEX" >&5
11056echo "${ECHO_T}$LEX" >&6
11057else
11058 echo "$as_me:$LINENO: result: no" >&5
11059echo "${ECHO_T}no" >&6
d15b04bd 11060fi
e5a52504 11061
d7040cdb
SE
11062 test -n "$LEX" && break
11063done
11064test -n "$LEX" || LEX=":"
42ecbf5e 11065
d7040cdb
SE
11066if test -z "$LEXLIB"
11067then
11068 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
11069echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
11070if test "${ac_cv_lib_fl_yywrap+set}" = set; then
42ecbf5e
DJ
11071 echo $ECHO_N "(cached) $ECHO_C" >&6
11072else
d7040cdb
SE
11073 ac_check_lib_save_LIBS=$LIBS
11074LIBS="-lfl $LIBS"
11075cat >conftest.$ac_ext <<_ACEOF
42ecbf5e
DJ
11076/* confdefs.h. */
11077_ACEOF
11078cat confdefs.h >>conftest.$ac_ext
11079cat >>conftest.$ac_ext <<_ACEOF
11080/* end confdefs.h. */
11081
d7040cdb
SE
11082/* Override any gcc2 internal prototype to avoid an error. */
11083#ifdef __cplusplus
11084extern "C"
11085#endif
11086/* We use char because int might match the return type of a gcc2
11087 builtin and then its argument prototype would still apply. */
11088char yywrap ();
42ecbf5e
DJ
11089int
11090main ()
11091{
d7040cdb 11092yywrap ();
42ecbf5e
DJ
11093 ;
11094 return 0;
11095}
11096_ACEOF
d7040cdb
SE
11097rm -f conftest.$ac_objext conftest$ac_exeext
11098if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11099 (eval $ac_link) 2>conftest.er1
42ecbf5e
DJ
11100 ac_status=$?
11101 grep -v '^ *+' conftest.er1 >conftest.err
11102 rm -f conftest.er1
11103 cat conftest.err >&5
11104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105 (exit $ac_status); } &&
502bdb00
JW
11106 { ac_try='test -z "$ac_c_werror_flag"
11107 || test ! -s conftest.err'
42ecbf5e
DJ
11108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11109 (eval $ac_try) 2>&5
11110 ac_status=$?
11111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112 (exit $ac_status); }; } &&
d7040cdb 11113 { ac_try='test -s conftest$ac_exeext'
42ecbf5e
DJ
11114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11115 (eval $ac_try) 2>&5
11116 ac_status=$?
11117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11118 (exit $ac_status); }; }; then
d7040cdb 11119 ac_cv_lib_fl_yywrap=yes
42ecbf5e
DJ
11120else
11121 echo "$as_me: failed program was:" >&5
11122sed 's/^/| /' conftest.$ac_ext >&5
11123
d7040cdb 11124ac_cv_lib_fl_yywrap=no
42ecbf5e 11125fi
d7040cdb
SE
11126rm -f conftest.err conftest.$ac_objext \
11127 conftest$ac_exeext conftest.$ac_ext
11128LIBS=$ac_check_lib_save_LIBS
42ecbf5e 11129fi
d7040cdb
SE
11130echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
11131echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
11132if test $ac_cv_lib_fl_yywrap = yes; then
11133 LEXLIB="-lfl"
20e95c23 11134else
d7040cdb
SE
11135 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
11136echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
11137if test "${ac_cv_lib_l_yywrap+set}" = set; then
11138 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11139else
d7040cdb
SE
11140 ac_check_lib_save_LIBS=$LIBS
11141LIBS="-ll $LIBS"
11142cat >conftest.$ac_ext <<_ACEOF
20e95c23 11143/* confdefs.h. */
42ecbf5e 11144_ACEOF
20e95c23
DJ
11145cat confdefs.h >>conftest.$ac_ext
11146cat >>conftest.$ac_ext <<_ACEOF
11147/* end confdefs.h. */
20e95c23 11148
d7040cdb
SE
11149/* Override any gcc2 internal prototype to avoid an error. */
11150#ifdef __cplusplus
11151extern "C"
11152#endif
11153/* We use char because int might match the return type of a gcc2
11154 builtin and then its argument prototype would still apply. */
11155char yywrap ();
20e95c23
DJ
11156int
11157main ()
11158{
d7040cdb
SE
11159yywrap ();
11160 ;
11161 return 0;
20e95c23
DJ
11162}
11163_ACEOF
d7040cdb 11164rm -f conftest.$ac_objext conftest$ac_exeext
20e95c23 11165if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d7040cdb 11166 (eval $ac_link) 2>conftest.er1
42ecbf5e 11167 ac_status=$?
d7040cdb
SE
11168 grep -v '^ *+' conftest.er1 >conftest.err
11169 rm -f conftest.er1
11170 cat conftest.err >&5
42ecbf5e 11171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
11172 (exit $ac_status); } &&
11173 { ac_try='test -z "$ac_c_werror_flag"
11174 || test ! -s conftest.err'
11175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11176 (eval $ac_try) 2>&5
11177 ac_status=$?
11178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11179 (exit $ac_status); }; } &&
11180 { ac_try='test -s conftest$ac_exeext'
20e95c23
DJ
11181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11182 (eval $ac_try) 2>&5
11183 ac_status=$?
11184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185 (exit $ac_status); }; }; then
d7040cdb 11186 ac_cv_lib_l_yywrap=yes
252b5132 11187else
d7040cdb 11188 echo "$as_me: failed program was:" >&5
20e95c23
DJ
11189sed 's/^/| /' conftest.$ac_ext >&5
11190
d7040cdb 11191ac_cv_lib_l_yywrap=no
252b5132 11192fi
d7040cdb
SE
11193rm -f conftest.err conftest.$ac_objext \
11194 conftest$ac_exeext conftest.$ac_ext
11195LIBS=$ac_check_lib_save_LIBS
20e95c23 11196fi
d7040cdb
SE
11197echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
11198echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
11199if test $ac_cv_lib_l_yywrap = yes; then
11200 LEXLIB="-ll"
20e95c23 11201fi
20e95c23
DJ
11202
11203fi
11204
d7040cdb 11205fi
20e95c23 11206
d7040cdb
SE
11207if test "x$LEX" != "x:"; then
11208 echo "$as_me:$LINENO: checking lex output file root" >&5
11209echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
11210if test "${ac_cv_prog_lex_root+set}" = set; then
42ecbf5e 11211 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11212else
d7040cdb
SE
11213 # The minimal lex program is just a single line: %%. But some broken lexes
11214# (Solaris, I think it was) want two %% lines, so accommodate them.
11215cat >conftest.l <<_ACEOF
11216%%
11217%%
42ecbf5e 11218_ACEOF
d7040cdb
SE
11219{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
11220 (eval $LEX conftest.l) 2>&5
11221 ac_status=$?
11222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11223 (exit $ac_status); }
11224if test -f lex.yy.c; then
11225 ac_cv_prog_lex_root=lex.yy
11226elif test -f lexyy.c; then
11227 ac_cv_prog_lex_root=lexyy
11228else
11229 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
11230echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
11231 { (exit 1); exit 1; }; }
11232fi
11233fi
11234echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
11235echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
11236rm -f conftest.l
11237LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
20e95c23 11238
d7040cdb
SE
11239echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
11240echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
11241if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
11242 echo $ECHO_N "(cached) $ECHO_C" >&6
11243else
11244 # POSIX says lex can declare yytext either as a pointer or an array; the
11245# default is implementation-dependent. Figure out which it is, since
11246# not all implementations provide the %pointer and %array declarations.
11247ac_cv_prog_lex_yytext_pointer=no
11248echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
11249ac_save_LIBS=$LIBS
11250LIBS="$LIBS $LEXLIB"
11251cat >conftest.$ac_ext <<_ACEOF
11252`cat $LEX_OUTPUT_ROOT.c`
20e95c23 11253_ACEOF
d7040cdb
SE
11254rm -f conftest.$ac_objext conftest$ac_exeext
11255if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11256 (eval $ac_link) 2>conftest.er1
42ecbf5e
DJ
11257 ac_status=$?
11258 grep -v '^ *+' conftest.er1 >conftest.err
11259 rm -f conftest.er1
11260 cat conftest.err >&5
11261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262 (exit $ac_status); } &&
502bdb00
JW
11263 { ac_try='test -z "$ac_c_werror_flag"
11264 || test ! -s conftest.err'
42ecbf5e
DJ
11265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11266 (eval $ac_try) 2>&5
11267 ac_status=$?
11268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11269 (exit $ac_status); }; } &&
d7040cdb 11270 { ac_try='test -s conftest$ac_exeext'
42ecbf5e
DJ
11271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11272 (eval $ac_try) 2>&5
11273 ac_status=$?
11274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275 (exit $ac_status); }; }; then
d7040cdb
SE
11276 ac_cv_prog_lex_yytext_pointer=yes
11277else
11278 echo "$as_me: failed program was:" >&5
11279sed 's/^/| /' conftest.$ac_ext >&5
11280
11281fi
11282rm -f conftest.err conftest.$ac_objext \
11283 conftest$ac_exeext conftest.$ac_ext
11284LIBS=$ac_save_LIBS
11285rm -f "${LEX_OUTPUT_ROOT}.c"
11286
11287fi
11288echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
11289echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
11290if test $ac_cv_prog_lex_yytext_pointer = yes; then
11291
11292cat >>confdefs.h <<\_ACEOF
11293#define YYTEXT_POINTER 1
11294_ACEOF
11295
11296fi
11297
11298fi
11299if test "$LEX" = :; then
11300 LEX=${am_missing_run}flex
11301fi
11302
11303echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11304echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11305 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11306if test "${enable_maintainer_mode+set}" = set; then
11307 enableval="$enable_maintainer_mode"
11308 USE_MAINTAINER_MODE=$enableval
252b5132 11309else
d7040cdb
SE
11310 USE_MAINTAINER_MODE=no
11311fi;
11312 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
11313echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
42ecbf5e 11314
d7040cdb
SE
11315
11316if test $USE_MAINTAINER_MODE = yes; then
11317 MAINTAINER_MODE_TRUE=
11318 MAINTAINER_MODE_FALSE='#'
11319else
11320 MAINTAINER_MODE_TRUE='#'
11321 MAINTAINER_MODE_FALSE=
252b5132 11322fi
252b5132 11323
d7040cdb
SE
11324 MAINT=$MAINTAINER_MODE_TRUE
11325
11326
11327
11328
11329if false; then
11330 GENINSRC_NEVER_TRUE=
11331 GENINSRC_NEVER_FALSE='#'
11332else
11333 GENINSRC_NEVER_TRUE='#'
11334 GENINSRC_NEVER_FALSE=
252b5132
RH
11335fi
11336
d7040cdb
SE
11337
11338. ${srcdir}/configure.host
11339
11340
11341
11342
252b5132
RH
11343
11344
42ecbf5e
DJ
11345
11346
11347
11348
ebe1fac1 11349
a3ffa599
L
11350
11351
11352for ac_header in string.h strings.h stdlib.h unistd.h elf-hints.h limits.h sys/param.h
252b5132 11353do
42ecbf5e
DJ
11354as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11355if eval "test \"\${$as_ac_Header+set}\" = set"; then
11356 echo "$as_me:$LINENO: checking for $ac_header" >&5
11357echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11358if eval "test \"\${$as_ac_Header+set}\" = set"; then
11359 echo $ECHO_N "(cached) $ECHO_C" >&6
11360fi
11361echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11362echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11363else
11364 # Is the header compilable?
11365echo "$as_me:$LINENO: checking $ac_header usability" >&5
11366echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11367cat >conftest.$ac_ext <<_ACEOF
11368/* confdefs.h. */
11369_ACEOF
11370cat confdefs.h >>conftest.$ac_ext
11371cat >>conftest.$ac_ext <<_ACEOF
11372/* end confdefs.h. */
11373$ac_includes_default
11374#include <$ac_header>
11375_ACEOF
11376rm -f conftest.$ac_objext
11377if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11378 (eval $ac_compile) 2>conftest.er1
11379 ac_status=$?
11380 grep -v '^ *+' conftest.er1 >conftest.err
11381 rm -f conftest.er1
11382 cat conftest.err >&5
11383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11384 (exit $ac_status); } &&
502bdb00
JW
11385 { ac_try='test -z "$ac_c_werror_flag"
11386 || test ! -s conftest.err'
42ecbf5e
DJ
11387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11388 (eval $ac_try) 2>&5
11389 ac_status=$?
11390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11391 (exit $ac_status); }; } &&
11392 { ac_try='test -s conftest.$ac_objext'
11393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11394 (eval $ac_try) 2>&5
11395 ac_status=$?
11396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11397 (exit $ac_status); }; }; then
11398 ac_header_compiler=yes
11399else
11400 echo "$as_me: failed program was:" >&5
11401sed 's/^/| /' conftest.$ac_ext >&5
11402
11403ac_header_compiler=no
11404fi
11405rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11406echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11407echo "${ECHO_T}$ac_header_compiler" >&6
11408
11409# Is the header present?
11410echo "$as_me:$LINENO: checking $ac_header presence" >&5
11411echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11412cat >conftest.$ac_ext <<_ACEOF
11413/* confdefs.h. */
11414_ACEOF
11415cat confdefs.h >>conftest.$ac_ext
11416cat >>conftest.$ac_ext <<_ACEOF
11417/* end confdefs.h. */
11418#include <$ac_header>
11419_ACEOF
11420if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11421 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11422 ac_status=$?
11423 grep -v '^ *+' conftest.er1 >conftest.err
11424 rm -f conftest.er1
11425 cat conftest.err >&5
11426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11427 (exit $ac_status); } >/dev/null; then
11428 if test -s conftest.err; then
11429 ac_cpp_err=$ac_c_preproc_warn_flag
11430 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11431 else
11432 ac_cpp_err=
11433 fi
252b5132 11434else
42ecbf5e 11435 ac_cpp_err=yes
252b5132 11436fi
42ecbf5e
DJ
11437if test -z "$ac_cpp_err"; then
11438 ac_header_preproc=yes
11439else
11440 echo "$as_me: failed program was:" >&5
11441sed 's/^/| /' conftest.$ac_ext >&5
11442
11443 ac_header_preproc=no
252b5132 11444fi
42ecbf5e
DJ
11445rm -f conftest.err conftest.$ac_ext
11446echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11447echo "${ECHO_T}$ac_header_preproc" >&6
11448
11449# So? What about this header?
11450case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11451 yes:no: )
11452 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11453echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11454 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11455echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11456 ac_header_preproc=yes
11457 ;;
11458 no:yes:* )
11459 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11460echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11461 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11462echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11463 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11464echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11465 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11466echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11467 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11468echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11469 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11470echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11471 (
11472 cat <<\_ASBOX
11473## ------------------------------------------ ##
11474## Report this to the AC_PACKAGE_NAME lists. ##
11475## ------------------------------------------ ##
11476_ASBOX
11477 ) |
11478 sed "s/^/$as_me: WARNING: /" >&2
11479 ;;
11480esac
11481echo "$as_me:$LINENO: checking for $ac_header" >&5
11482echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11483if eval "test \"\${$as_ac_Header+set}\" = set"; then
11484 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11485else
42ecbf5e
DJ
11486 eval "$as_ac_Header=\$ac_header_preproc"
11487fi
11488echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11489echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11490
252b5132 11491fi
42ecbf5e
DJ
11492if test `eval echo '${'$as_ac_Header'}'` = yes; then
11493 cat >>confdefs.h <<_ACEOF
11494#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11495_ACEOF
11496
11497fi
11498
252b5132
RH
11499done
11500
42ecbf5e
DJ
11501
11502
11503
dc27aea4
AM
11504
11505
11506for ac_func in glob mkstemp realpath sbrk waitpid
252b5132 11507do
42ecbf5e
DJ
11508as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11509echo "$as_me:$LINENO: checking for $ac_func" >&5
11510echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11511if eval "test \"\${$as_ac_var+set}\" = set"; then
11512 echo $ECHO_N "(cached) $ECHO_C" >&6
11513else
11514 cat >conftest.$ac_ext <<_ACEOF
11515/* confdefs.h. */
11516_ACEOF
11517cat confdefs.h >>conftest.$ac_ext
11518cat >>conftest.$ac_ext <<_ACEOF
11519/* end confdefs.h. */
11520/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11521 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11522#define $ac_func innocuous_$ac_func
11523
252b5132 11524/* System header to define __stub macros and hopefully few prototypes,
42ecbf5e
DJ
11525 which can conflict with char $ac_func (); below.
11526 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11527 <limits.h> exists even on freestanding compilers. */
11528
11529#ifdef __STDC__
11530# include <limits.h>
11531#else
11532# include <assert.h>
11533#endif
d15b04bd 11534
42ecbf5e 11535#undef $ac_func
d15b04bd 11536
42ecbf5e
DJ
11537/* Override any gcc2 internal prototype to avoid an error. */
11538#ifdef __cplusplus
11539extern "C"
11540{
11541#endif
11542/* We use char because int might match the return type of a gcc2
11543 builtin and then its argument prototype would still apply. */
11544char $ac_func ();
252b5132
RH
11545/* The GNU C library defines this for functions which it implements
11546 to always fail with ENOSYS. Some functions are actually named
11547 something starting with __ and the normal name is an alias. */
11548#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11549choke me
11550#else
42ecbf5e
DJ
11551char (*f) () = $ac_func;
11552#endif
11553#ifdef __cplusplus
11554}
252b5132
RH
11555#endif
11556
42ecbf5e
DJ
11557int
11558main ()
11559{
11560return f != $ac_func;
11561 ;
11562 return 0;
11563}
11564_ACEOF
11565rm -f conftest.$ac_objext conftest$ac_exeext
11566if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11567 (eval $ac_link) 2>conftest.er1
11568 ac_status=$?
11569 grep -v '^ *+' conftest.er1 >conftest.err
11570 rm -f conftest.er1
11571 cat conftest.err >&5
11572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573 (exit $ac_status); } &&
502bdb00
JW
11574 { ac_try='test -z "$ac_c_werror_flag"
11575 || test ! -s conftest.err'
42ecbf5e
DJ
11576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11577 (eval $ac_try) 2>&5
11578 ac_status=$?
11579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11580 (exit $ac_status); }; } &&
11581 { ac_try='test -s conftest$ac_exeext'
11582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11583 (eval $ac_try) 2>&5
11584 ac_status=$?
11585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11586 (exit $ac_status); }; }; then
11587 eval "$as_ac_var=yes"
11588else
11589 echo "$as_me: failed program was:" >&5
11590sed 's/^/| /' conftest.$ac_ext >&5
11591
11592eval "$as_ac_var=no"
11593fi
11594rm -f conftest.err conftest.$ac_objext \
11595 conftest$ac_exeext conftest.$ac_ext
11596fi
11597echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11598echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11599if test `eval echo '${'$as_ac_var'}'` = yes; then
11600 cat >>confdefs.h <<_ACEOF
11601#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11602_ACEOF
252b5132 11603
252b5132
RH
11604fi
11605done
11606
42ecbf5e
DJ
11607
11608
11609
11610
11611
252b5132 11612ac_header_dirent=no
42ecbf5e
DJ
11613for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11614 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11615echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
11616echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
11617if eval "test \"\${$as_ac_Header+set}\" = set"; then
11618 echo $ECHO_N "(cached) $ECHO_C" >&6
11619else
11620 cat >conftest.$ac_ext <<_ACEOF
11621/* confdefs.h. */
11622_ACEOF
11623cat confdefs.h >>conftest.$ac_ext
11624cat >>conftest.$ac_ext <<_ACEOF
11625/* end confdefs.h. */
252b5132
RH
11626#include <sys/types.h>
11627#include <$ac_hdr>
42ecbf5e
DJ
11628
11629int
11630main ()
11631{
11632if ((DIR *) 0)
11633return 0;
11634 ;
11635 return 0;
11636}
11637_ACEOF
11638rm -f conftest.$ac_objext
11639if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11640 (eval $ac_compile) 2>conftest.er1
11641 ac_status=$?
11642 grep -v '^ *+' conftest.er1 >conftest.err
11643 rm -f conftest.er1
11644 cat conftest.err >&5
11645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646 (exit $ac_status); } &&
502bdb00
JW
11647 { ac_try='test -z "$ac_c_werror_flag"
11648 || test ! -s conftest.err'
42ecbf5e
DJ
11649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11650 (eval $ac_try) 2>&5
11651 ac_status=$?
11652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11653 (exit $ac_status); }; } &&
11654 { ac_try='test -s conftest.$ac_objext'
11655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11656 (eval $ac_try) 2>&5
11657 ac_status=$?
11658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659 (exit $ac_status); }; }; then
11660 eval "$as_ac_Header=yes"
11661else
11662 echo "$as_me: failed program was:" >&5
11663sed 's/^/| /' conftest.$ac_ext >&5
11664
11665eval "$as_ac_Header=no"
11666fi
11667rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11668fi
11669echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11670echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11671if test `eval echo '${'$as_ac_Header'}'` = yes; then
11672 cat >>confdefs.h <<_ACEOF
11673#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11674_ACEOF
11675
11676ac_header_dirent=$ac_hdr; break
d15b04bd 11677fi
42ecbf5e 11678
d15b04bd
L
11679done
11680# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11681if test $ac_header_dirent = dirent.h; then
42ecbf5e
DJ
11682 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11683echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11684if test "${ac_cv_search_opendir+set}" = set; then
11685 echo $ECHO_N "(cached) $ECHO_C" >&6
11686else
11687 ac_func_search_save_LIBS=$LIBS
11688ac_cv_search_opendir=no
11689cat >conftest.$ac_ext <<_ACEOF
11690/* confdefs.h. */
11691_ACEOF
11692cat confdefs.h >>conftest.$ac_ext
11693cat >>conftest.$ac_ext <<_ACEOF
11694/* end confdefs.h. */
11695
e5a52504 11696/* Override any gcc2 internal prototype to avoid an error. */
42ecbf5e
DJ
11697#ifdef __cplusplus
11698extern "C"
11699#endif
e5a52504 11700/* We use char because int might match the return type of a gcc2
42ecbf5e
DJ
11701 builtin and then its argument prototype would still apply. */
11702char opendir ();
11703int
11704main ()
11705{
11706opendir ();
11707 ;
11708 return 0;
11709}
11710_ACEOF
11711rm -f conftest.$ac_objext conftest$ac_exeext
11712if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11713 (eval $ac_link) 2>conftest.er1
11714 ac_status=$?
11715 grep -v '^ *+' conftest.er1 >conftest.err
11716 rm -f conftest.er1
11717 cat conftest.err >&5
11718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719 (exit $ac_status); } &&
502bdb00
JW
11720 { ac_try='test -z "$ac_c_werror_flag"
11721 || test ! -s conftest.err'
42ecbf5e
DJ
11722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11723 (eval $ac_try) 2>&5
11724 ac_status=$?
11725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11726 (exit $ac_status); }; } &&
11727 { ac_try='test -s conftest$ac_exeext'
11728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11729 (eval $ac_try) 2>&5
11730 ac_status=$?
11731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11732 (exit $ac_status); }; }; then
11733 ac_cv_search_opendir="none required"
11734else
11735 echo "$as_me: failed program was:" >&5
11736sed 's/^/| /' conftest.$ac_ext >&5
11737
11738fi
11739rm -f conftest.err conftest.$ac_objext \
11740 conftest$ac_exeext conftest.$ac_ext
11741if test "$ac_cv_search_opendir" = no; then
11742 for ac_lib in dir; do
11743 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11744 cat >conftest.$ac_ext <<_ACEOF
11745/* confdefs.h. */
11746_ACEOF
11747cat confdefs.h >>conftest.$ac_ext
11748cat >>conftest.$ac_ext <<_ACEOF
11749/* end confdefs.h. */
e5a52504 11750
42ecbf5e
DJ
11751/* Override any gcc2 internal prototype to avoid an error. */
11752#ifdef __cplusplus
11753extern "C"
11754#endif
11755/* We use char because int might match the return type of a gcc2
11756 builtin and then its argument prototype would still apply. */
11757char opendir ();
11758int
11759main ()
11760{
11761opendir ();
11762 ;
11763 return 0;
11764}
11765_ACEOF
11766rm -f conftest.$ac_objext conftest$ac_exeext
11767if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11768 (eval $ac_link) 2>conftest.er1
11769 ac_status=$?
11770 grep -v '^ *+' conftest.er1 >conftest.err
11771 rm -f conftest.er1
11772 cat conftest.err >&5
11773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774 (exit $ac_status); } &&
502bdb00
JW
11775 { ac_try='test -z "$ac_c_werror_flag"
11776 || test ! -s conftest.err'
42ecbf5e
DJ
11777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11778 (eval $ac_try) 2>&5
11779 ac_status=$?
11780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781 (exit $ac_status); }; } &&
11782 { ac_try='test -s conftest$ac_exeext'
11783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11784 (eval $ac_try) 2>&5
11785 ac_status=$?
11786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11787 (exit $ac_status); }; }; then
11788 ac_cv_search_opendir="-l$ac_lib"
11789break
11790else
11791 echo "$as_me: failed program was:" >&5
11792sed 's/^/| /' conftest.$ac_ext >&5
11793
11794fi
11795rm -f conftest.err conftest.$ac_objext \
11796 conftest$ac_exeext conftest.$ac_ext
11797 done
252b5132 11798fi
42ecbf5e
DJ
11799LIBS=$ac_func_search_save_LIBS
11800fi
11801echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11802echo "${ECHO_T}$ac_cv_search_opendir" >&6
11803if test "$ac_cv_search_opendir" != no; then
11804 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11805
d15b04bd 11806fi
252b5132
RH
11807
11808else
42ecbf5e
DJ
11809 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11810echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11811if test "${ac_cv_search_opendir+set}" = set; then
11812 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11813else
42ecbf5e
DJ
11814 ac_func_search_save_LIBS=$LIBS
11815ac_cv_search_opendir=no
11816cat >conftest.$ac_ext <<_ACEOF
11817/* confdefs.h. */
11818_ACEOF
11819cat confdefs.h >>conftest.$ac_ext
11820cat >>conftest.$ac_ext <<_ACEOF
11821/* end confdefs.h. */
11822
252b5132 11823/* Override any gcc2 internal prototype to avoid an error. */
42ecbf5e
DJ
11824#ifdef __cplusplus
11825extern "C"
11826#endif
252b5132 11827/* We use char because int might match the return type of a gcc2
42ecbf5e
DJ
11828 builtin and then its argument prototype would still apply. */
11829char opendir ();
11830int
11831main ()
11832{
11833opendir ();
11834 ;
11835 return 0;
11836}
11837_ACEOF
11838rm -f conftest.$ac_objext conftest$ac_exeext
11839if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11840 (eval $ac_link) 2>conftest.er1
11841 ac_status=$?
11842 grep -v '^ *+' conftest.er1 >conftest.err
11843 rm -f conftest.er1
11844 cat conftest.err >&5
11845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11846 (exit $ac_status); } &&
502bdb00
JW
11847 { ac_try='test -z "$ac_c_werror_flag"
11848 || test ! -s conftest.err'
42ecbf5e
DJ
11849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11850 (eval $ac_try) 2>&5
11851 ac_status=$?
11852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11853 (exit $ac_status); }; } &&
11854 { ac_try='test -s conftest$ac_exeext'
11855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11856 (eval $ac_try) 2>&5
11857 ac_status=$?
11858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859 (exit $ac_status); }; }; then
11860 ac_cv_search_opendir="none required"
11861else
11862 echo "$as_me: failed program was:" >&5
11863sed 's/^/| /' conftest.$ac_ext >&5
11864
11865fi
11866rm -f conftest.err conftest.$ac_objext \
11867 conftest$ac_exeext conftest.$ac_ext
11868if test "$ac_cv_search_opendir" = no; then
11869 for ac_lib in x; do
11870 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11871 cat >conftest.$ac_ext <<_ACEOF
11872/* confdefs.h. */
11873_ACEOF
11874cat confdefs.h >>conftest.$ac_ext
11875cat >>conftest.$ac_ext <<_ACEOF
11876/* end confdefs.h. */
252b5132 11877
42ecbf5e
DJ
11878/* Override any gcc2 internal prototype to avoid an error. */
11879#ifdef __cplusplus
11880extern "C"
11881#endif
11882/* We use char because int might match the return type of a gcc2
11883 builtin and then its argument prototype would still apply. */
11884char opendir ();
11885int
11886main ()
11887{
11888opendir ();
11889 ;
11890 return 0;
11891}
11892_ACEOF
11893rm -f conftest.$ac_objext conftest$ac_exeext
11894if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11895 (eval $ac_link) 2>conftest.er1
11896 ac_status=$?
11897 grep -v '^ *+' conftest.er1 >conftest.err
11898 rm -f conftest.er1
11899 cat conftest.err >&5
11900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11901 (exit $ac_status); } &&
502bdb00
JW
11902 { ac_try='test -z "$ac_c_werror_flag"
11903 || test ! -s conftest.err'
42ecbf5e
DJ
11904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11905 (eval $ac_try) 2>&5
11906 ac_status=$?
11907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908 (exit $ac_status); }; } &&
11909 { ac_try='test -s conftest$ac_exeext'
11910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11911 (eval $ac_try) 2>&5
11912 ac_status=$?
11913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914 (exit $ac_status); }; }; then
11915 ac_cv_search_opendir="-l$ac_lib"
11916break
11917else
11918 echo "$as_me: failed program was:" >&5
11919sed 's/^/| /' conftest.$ac_ext >&5
11920
11921fi
11922rm -f conftest.err conftest.$ac_objext \
11923 conftest$ac_exeext conftest.$ac_ext
11924 done
252b5132 11925fi
42ecbf5e 11926LIBS=$ac_func_search_save_LIBS
252b5132 11927fi
42ecbf5e
DJ
11928echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11929echo "${ECHO_T}$ac_cv_search_opendir" >&6
11930if test "$ac_cv_search_opendir" != no; then
11931 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11932
d15b04bd 11933fi
252b5132
RH
11934
11935fi
11936
11937
42ecbf5e
DJ
11938echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
11939echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
11940if test "${ld_cv_decl_getopt_unistd_h+set}" = set; then
11941 echo $ECHO_N "(cached) $ECHO_C" >&6
34875e64 11942else
42ecbf5e
DJ
11943 cat >conftest.$ac_ext <<_ACEOF
11944/* confdefs.h. */
11945_ACEOF
11946cat confdefs.h >>conftest.$ac_ext
11947cat >>conftest.$ac_ext <<_ACEOF
11948/* end confdefs.h. */
34875e64 11949#include <unistd.h>
42ecbf5e
DJ
11950int
11951main ()
11952{
34875e64 11953extern int getopt (int, char *const*, const char *);
42ecbf5e
DJ
11954 ;
11955 return 0;
11956}
11957_ACEOF
11958rm -f conftest.$ac_objext
11959if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11960 (eval $ac_compile) 2>conftest.er1
11961 ac_status=$?
11962 grep -v '^ *+' conftest.er1 >conftest.err
11963 rm -f conftest.er1
11964 cat conftest.err >&5
11965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11966 (exit $ac_status); } &&
502bdb00
JW
11967 { ac_try='test -z "$ac_c_werror_flag"
11968 || test ! -s conftest.err'
42ecbf5e
DJ
11969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11970 (eval $ac_try) 2>&5
11971 ac_status=$?
11972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11973 (exit $ac_status); }; } &&
11974 { ac_try='test -s conftest.$ac_objext'
11975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11976 (eval $ac_try) 2>&5
11977 ac_status=$?
11978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979 (exit $ac_status); }; }; then
34875e64
NC
11980 ld_cv_decl_getopt_unistd_h=yes
11981else
42ecbf5e
DJ
11982 echo "$as_me: failed program was:" >&5
11983sed 's/^/| /' conftest.$ac_ext >&5
11984
11985ld_cv_decl_getopt_unistd_h=no
34875e64 11986fi
42ecbf5e 11987rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34875e64
NC
11988fi
11989
42ecbf5e
DJ
11990echo "$as_me:$LINENO: result: $ld_cv_decl_getopt_unistd_h" >&5
11991echo "${ECHO_T}$ld_cv_decl_getopt_unistd_h" >&6
34875e64 11992if test $ld_cv_decl_getopt_unistd_h = yes; then
42ecbf5e
DJ
11993
11994cat >>confdefs.h <<\_ACEOF
34875e64 11995#define HAVE_DECL_GETOPT 1
42ecbf5e 11996_ACEOF
34875e64
NC
11997
11998fi
42ecbf5e 11999
252b5132
RH
12000
12001case "${host}" in
a8100d5b 12002*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
42ecbf5e
DJ
12003
12004cat >>confdefs.h <<\_ACEOF
252b5132 12005#define USE_BINARY_FOPEN 1
42ecbf5e 12006_ACEOF
252b5132
RH
12007 ;;
12008esac
12009
502bdb00
JW
12010echo "$as_me:$LINENO: checking whether strstr is declared" >&5
12011echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
12012if test "${ac_cv_have_decl_strstr+set}" = set; then
42ecbf5e 12013 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12014else
42ecbf5e
DJ
12015 cat >conftest.$ac_ext <<_ACEOF
12016/* confdefs.h. */
12017_ACEOF
12018cat confdefs.h >>conftest.$ac_ext
12019cat >>conftest.$ac_ext <<_ACEOF
12020/* end confdefs.h. */
502bdb00 12021$ac_includes_default
42ecbf5e
DJ
12022int
12023main ()
12024{
502bdb00
JW
12025#ifndef strstr
12026 char *p = (char *) strstr;
12027#endif
12028
42ecbf5e
DJ
12029 ;
12030 return 0;
12031}
12032_ACEOF
12033rm -f conftest.$ac_objext
12034if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12035 (eval $ac_compile) 2>conftest.er1
12036 ac_status=$?
12037 grep -v '^ *+' conftest.er1 >conftest.err
12038 rm -f conftest.er1
12039 cat conftest.err >&5
12040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041 (exit $ac_status); } &&
502bdb00
JW
12042 { ac_try='test -z "$ac_c_werror_flag"
12043 || test ! -s conftest.err'
42ecbf5e
DJ
12044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12045 (eval $ac_try) 2>&5
12046 ac_status=$?
12047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12048 (exit $ac_status); }; } &&
12049 { ac_try='test -s conftest.$ac_objext'
12050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12051 (eval $ac_try) 2>&5
12052 ac_status=$?
12053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12054 (exit $ac_status); }; }; then
502bdb00 12055 ac_cv_have_decl_strstr=yes
252b5132 12056else
42ecbf5e
DJ
12057 echo "$as_me: failed program was:" >&5
12058sed 's/^/| /' conftest.$ac_ext >&5
12059
502bdb00 12060ac_cv_have_decl_strstr=no
252b5132 12061fi
42ecbf5e 12062rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 12063fi
502bdb00
JW
12064echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
12065echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
12066if test $ac_cv_have_decl_strstr = yes; then
252b5132 12067
502bdb00
JW
12068cat >>confdefs.h <<_ACEOF
12069#define HAVE_DECL_STRSTR 1
12070_ACEOF
42ecbf5e 12071
502bdb00
JW
12072
12073else
12074 cat >>confdefs.h <<_ACEOF
12075#define HAVE_DECL_STRSTR 0
42ecbf5e 12076_ACEOF
252b5132 12077
252b5132 12078
502bdb00
JW
12079fi
12080echo "$as_me:$LINENO: checking whether free is declared" >&5
12081echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
12082if test "${ac_cv_have_decl_free+set}" = set; then
42ecbf5e 12083 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12084else
42ecbf5e
DJ
12085 cat >conftest.$ac_ext <<_ACEOF
12086/* confdefs.h. */
12087_ACEOF
12088cat confdefs.h >>conftest.$ac_ext
12089cat >>conftest.$ac_ext <<_ACEOF
12090/* end confdefs.h. */
502bdb00 12091$ac_includes_default
42ecbf5e
DJ
12092int
12093main ()
12094{
502bdb00
JW
12095#ifndef free
12096 char *p = (char *) free;
12097#endif
12098
42ecbf5e
DJ
12099 ;
12100 return 0;
12101}
12102_ACEOF
12103rm -f conftest.$ac_objext
12104if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12105 (eval $ac_compile) 2>conftest.er1
12106 ac_status=$?
12107 grep -v '^ *+' conftest.er1 >conftest.err
12108 rm -f conftest.er1
12109 cat conftest.err >&5
12110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111 (exit $ac_status); } &&
502bdb00
JW
12112 { ac_try='test -z "$ac_c_werror_flag"
12113 || test ! -s conftest.err'
42ecbf5e
DJ
12114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12115 (eval $ac_try) 2>&5
12116 ac_status=$?
12117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118 (exit $ac_status); }; } &&
12119 { ac_try='test -s conftest.$ac_objext'
12120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12121 (eval $ac_try) 2>&5
12122 ac_status=$?
12123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124 (exit $ac_status); }; }; then
502bdb00 12125 ac_cv_have_decl_free=yes
252b5132 12126else
42ecbf5e
DJ
12127 echo "$as_me: failed program was:" >&5
12128sed 's/^/| /' conftest.$ac_ext >&5
12129
502bdb00 12130ac_cv_have_decl_free=no
252b5132 12131fi
42ecbf5e 12132rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 12133fi
502bdb00
JW
12134echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
12135echo "${ECHO_T}$ac_cv_have_decl_free" >&6
12136if test $ac_cv_have_decl_free = yes; then
252b5132 12137
502bdb00
JW
12138cat >>confdefs.h <<_ACEOF
12139#define HAVE_DECL_FREE 1
12140_ACEOF
42ecbf5e 12141
502bdb00
JW
12142
12143else
12144 cat >>confdefs.h <<_ACEOF
12145#define HAVE_DECL_FREE 0
42ecbf5e 12146_ACEOF
252b5132 12147
252b5132 12148
502bdb00
JW
12149fi
12150echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
12151echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
12152if test "${ac_cv_have_decl_sbrk+set}" = set; then
42ecbf5e 12153 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12154else
42ecbf5e
DJ
12155 cat >conftest.$ac_ext <<_ACEOF
12156/* confdefs.h. */
12157_ACEOF
12158cat confdefs.h >>conftest.$ac_ext
12159cat >>conftest.$ac_ext <<_ACEOF
12160/* end confdefs.h. */
502bdb00 12161$ac_includes_default
42ecbf5e
DJ
12162int
12163main ()
12164{
502bdb00
JW
12165#ifndef sbrk
12166 char *p = (char *) sbrk;
12167#endif
12168
42ecbf5e
DJ
12169 ;
12170 return 0;
12171}
12172_ACEOF
12173rm -f conftest.$ac_objext
12174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12175 (eval $ac_compile) 2>conftest.er1
12176 ac_status=$?
12177 grep -v '^ *+' conftest.er1 >conftest.err
12178 rm -f conftest.er1
12179 cat conftest.err >&5
12180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12181 (exit $ac_status); } &&
502bdb00
JW
12182 { ac_try='test -z "$ac_c_werror_flag"
12183 || test ! -s conftest.err'
42ecbf5e
DJ
12184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12185 (eval $ac_try) 2>&5
12186 ac_status=$?
12187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188 (exit $ac_status); }; } &&
12189 { ac_try='test -s conftest.$ac_objext'
12190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12191 (eval $ac_try) 2>&5
12192 ac_status=$?
12193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12194 (exit $ac_status); }; }; then
502bdb00 12195 ac_cv_have_decl_sbrk=yes
252b5132 12196else
42ecbf5e
DJ
12197 echo "$as_me: failed program was:" >&5
12198sed 's/^/| /' conftest.$ac_ext >&5
12199
502bdb00 12200ac_cv_have_decl_sbrk=no
252b5132 12201fi
42ecbf5e 12202rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 12203fi
502bdb00
JW
12204echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
12205echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
12206if test $ac_cv_have_decl_sbrk = yes; then
12207
12208cat >>confdefs.h <<_ACEOF
12209#define HAVE_DECL_SBRK 1
12210_ACEOF
252b5132 12211
42ecbf5e 12212
502bdb00
JW
12213else
12214 cat >>confdefs.h <<_ACEOF
12215#define HAVE_DECL_SBRK 0
42ecbf5e 12216_ACEOF
252b5132 12217
252b5132 12218
502bdb00
JW
12219fi
12220echo "$as_me:$LINENO: checking whether getenv is declared" >&5
12221echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
12222if test "${ac_cv_have_decl_getenv+set}" = set; then
42ecbf5e 12223 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12224else
42ecbf5e
DJ
12225 cat >conftest.$ac_ext <<_ACEOF
12226/* confdefs.h. */
12227_ACEOF
12228cat confdefs.h >>conftest.$ac_ext
12229cat >>conftest.$ac_ext <<_ACEOF
12230/* end confdefs.h. */
502bdb00 12231$ac_includes_default
42ecbf5e
DJ
12232int
12233main ()
12234{
502bdb00
JW
12235#ifndef getenv
12236 char *p = (char *) getenv;
12237#endif
12238
42ecbf5e
DJ
12239 ;
12240 return 0;
12241}
12242_ACEOF
12243rm -f conftest.$ac_objext
12244if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12245 (eval $ac_compile) 2>conftest.er1
12246 ac_status=$?
12247 grep -v '^ *+' conftest.er1 >conftest.err
12248 rm -f conftest.er1
12249 cat conftest.err >&5
12250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12251 (exit $ac_status); } &&
502bdb00
JW
12252 { ac_try='test -z "$ac_c_werror_flag"
12253 || test ! -s conftest.err'
42ecbf5e
DJ
12254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12255 (eval $ac_try) 2>&5
12256 ac_status=$?
12257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12258 (exit $ac_status); }; } &&
12259 { ac_try='test -s conftest.$ac_objext'
12260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12261 (eval $ac_try) 2>&5
12262 ac_status=$?
12263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12264 (exit $ac_status); }; }; then
502bdb00 12265 ac_cv_have_decl_getenv=yes
252b5132 12266else
42ecbf5e
DJ
12267 echo "$as_me: failed program was:" >&5
12268sed 's/^/| /' conftest.$ac_ext >&5
12269
502bdb00 12270ac_cv_have_decl_getenv=no
252b5132 12271fi
42ecbf5e 12272rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 12273fi
502bdb00
JW
12274echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
12275echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
12276if test $ac_cv_have_decl_getenv = yes; then
252b5132 12277
502bdb00
JW
12278cat >>confdefs.h <<_ACEOF
12279#define HAVE_DECL_GETENV 1
12280_ACEOF
42ecbf5e 12281
502bdb00
JW
12282
12283else
12284 cat >>confdefs.h <<_ACEOF
12285#define HAVE_DECL_GETENV 0
42ecbf5e 12286_ACEOF
252b5132 12287
252b5132 12288
502bdb00
JW
12289fi
12290echo "$as_me:$LINENO: checking whether environ is declared" >&5
12291echo $ECHO_N "checking whether environ is declared... $ECHO_C" >&6
12292if test "${ac_cv_have_decl_environ+set}" = set; then
42ecbf5e 12293 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12294else
42ecbf5e
DJ
12295 cat >conftest.$ac_ext <<_ACEOF
12296/* confdefs.h. */
12297_ACEOF
12298cat confdefs.h >>conftest.$ac_ext
12299cat >>conftest.$ac_ext <<_ACEOF
12300/* end confdefs.h. */
502bdb00 12301$ac_includes_default
42ecbf5e
DJ
12302int
12303main ()
12304{
502bdb00
JW
12305#ifndef environ
12306 char *p = (char *) environ;
12307#endif
12308
42ecbf5e
DJ
12309 ;
12310 return 0;
12311}
12312_ACEOF
12313rm -f conftest.$ac_objext
12314if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12315 (eval $ac_compile) 2>conftest.er1
12316 ac_status=$?
12317 grep -v '^ *+' conftest.er1 >conftest.err
12318 rm -f conftest.er1
12319 cat conftest.err >&5
12320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12321 (exit $ac_status); } &&
502bdb00
JW
12322 { ac_try='test -z "$ac_c_werror_flag"
12323 || test ! -s conftest.err'
42ecbf5e
DJ
12324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12325 (eval $ac_try) 2>&5
12326 ac_status=$?
12327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12328 (exit $ac_status); }; } &&
12329 { ac_try='test -s conftest.$ac_objext'
12330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12331 (eval $ac_try) 2>&5
12332 ac_status=$?
12333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12334 (exit $ac_status); }; }; then
502bdb00 12335 ac_cv_have_decl_environ=yes
252b5132 12336else
42ecbf5e
DJ
12337 echo "$as_me: failed program was:" >&5
12338sed 's/^/| /' conftest.$ac_ext >&5
12339
502bdb00 12340ac_cv_have_decl_environ=no
252b5132 12341fi
42ecbf5e 12342rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 12343fi
502bdb00
JW
12344echo "$as_me:$LINENO: result: $ac_cv_have_decl_environ" >&5
12345echo "${ECHO_T}$ac_cv_have_decl_environ" >&6
12346if test $ac_cv_have_decl_environ = yes; then
252b5132 12347
502bdb00
JW
12348cat >>confdefs.h <<_ACEOF
12349#define HAVE_DECL_ENVIRON 1
12350_ACEOF
42ecbf5e 12351
502bdb00
JW
12352
12353else
12354 cat >>confdefs.h <<_ACEOF
12355#define HAVE_DECL_ENVIRON 0
42ecbf5e 12356_ACEOF
252b5132 12357
502bdb00 12358
252b5132
RH
12359fi
12360
12361
502bdb00 12362
597e2591
ILT
12363# When converting linker scripts into strings for use in emulation
12364# files, use astring.sed if the compiler supports ANSI string
12365# concatenation, or ostring.sed otherwise. This is to support the
12366# broken Microsoft MSVC compiler, which limits the length of string
12367# constants, while still supporting pre-ANSI compilers which do not
12368# support string concatenation.
42ecbf5e
DJ
12369echo "$as_me:$LINENO: checking whether ANSI C string concatenation works" >&5
12370echo $ECHO_N "checking whether ANSI C string concatenation works... $ECHO_C" >&6
12371if test "${ld_cv_string_concatenation+set}" = set; then
12372 echo $ECHO_N "(cached) $ECHO_C" >&6
12373else
12374 cat >conftest.$ac_ext <<_ACEOF
12375/* confdefs.h. */
12376_ACEOF
12377cat confdefs.h >>conftest.$ac_ext
12378cat >>conftest.$ac_ext <<_ACEOF
12379/* end confdefs.h. */
597e2591 12380
42ecbf5e
DJ
12381int
12382main ()
12383{
597e2591 12384char *a = "a" "a";
42ecbf5e
DJ
12385 ;
12386 return 0;
12387}
12388_ACEOF
12389rm -f conftest.$ac_objext
12390if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12391 (eval $ac_compile) 2>conftest.er1
12392 ac_status=$?
12393 grep -v '^ *+' conftest.er1 >conftest.err
12394 rm -f conftest.er1
12395 cat conftest.err >&5
12396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12397 (exit $ac_status); } &&
502bdb00
JW
12398 { ac_try='test -z "$ac_c_werror_flag"
12399 || test ! -s conftest.err'
42ecbf5e
DJ
12400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12401 (eval $ac_try) 2>&5
12402 ac_status=$?
12403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12404 (exit $ac_status); }; } &&
12405 { ac_try='test -s conftest.$ac_objext'
12406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12407 (eval $ac_try) 2>&5
12408 ac_status=$?
12409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410 (exit $ac_status); }; }; then
e4dabd0e 12411 ld_cv_string_concatenation=yes
597e2591 12412else
42ecbf5e
DJ
12413 echo "$as_me: failed program was:" >&5
12414sed 's/^/| /' conftest.$ac_ext >&5
12415
12416ld_cv_string_concatenation=no
597e2591 12417fi
42ecbf5e 12418rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
597e2591
ILT
12419fi
12420
42ecbf5e
DJ
12421echo "$as_me:$LINENO: result: $ld_cv_string_concatenation" >&5
12422echo "${ECHO_T}$ld_cv_string_concatenation" >&6
e4dabd0e 12423if test "$ld_cv_string_concatenation" = "yes"; then
597e2591
ILT
12424 STRINGIFY=astring.sed
12425else
12426 STRINGIFY=ostring.sed
12427fi
12428
12429
252b5132
RH
12430# target-specific stuff:
12431
12432all_targets=
12433EMUL=
12434all_emuls=
12435all_emul_extras=
ba2be581 12436all_libpath=
252b5132
RH
12437
12438rm -f tdirs
12439
12440for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
12441do
12442 if test "$targ_alias" = "all"; then
12443 all_targets=true
12444 else
12445 # Canonicalize the secondary target names.
42ecbf5e 12446 result=`$ac_config_sub $targ_alias 2>/dev/null`
252b5132
RH
12447 if test -n "$result"; then
12448 targ=$result
12449 else
12450 targ=$targ_alias
12451 fi
12452
12453 . ${srcdir}/configure.tgt
12454
12455 if test "$targ" = "$target"; then
12456 EMUL=$targ_emul
12457 fi
12458
314e9a4e
L
12459 if test x${want64} = xfalse; then
12460 . ${srcdir}/../bfd/config.bfd
12461 fi
12462
534d3119
L
12463 if test x${want64} = xtrue; then
12464 targ_extra_emuls="$targ_extra_emuls $targ64_extra_emuls"
12465 targ_extra_libpath="$targ_extra_libpath $targ64_extra_libpath"
12466 fi
12467
3336653a 12468 for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
252b5132
RH
12469 case " $all_emuls " in
12470 *" e${i}.o "*) ;;
12471 *)
12472 all_emuls="$all_emuls e${i}.o"
12473 eval result=\$tdir_$i
12474 test -z "$result" && result=$targ_alias
12475 echo tdir_$i=$result >> tdirs
12476 ;;
d15b04bd
L
12477 esac
12478 done
3336653a 12479
42ecbf5e
DJ
12480 for i in $targ_emul $targ_extra_libpath; do
12481 case " $all_libpath " in
12482 *" ${i} "*) ;;
12483 *)
12484 if test -z "$all_libpath"; then
12485 all_libpath=${i}
12486 else
12487 all_libpath="$all_libpath ${i}"
12488 fi
12489 ;;
12490 esac
12491 done
12492
12493 for i in $targ_extra_ofiles; do
12494 case " $all_emul_extras " in
12495 *" ${i} "*) ;;
12496 *)
12497 all_emul_extras="$all_emul_extras ${i}"
12498 ;;
12499 esac
12500 done
12501 fi
12502done
12503
12504
12505
12506TDIRS=tdirs
12507
12508
12509if test x${all_targets} = xtrue; then
314e9a4e
L
12510 if test x${want64} = xfalse; then
12511 echo "$as_me:$LINENO: checking for long" >&5
12512echo $ECHO_N "checking for long... $ECHO_C" >&6
12513if test "${ac_cv_type_long+set}" = set; then
12514 echo $ECHO_N "(cached) $ECHO_C" >&6
12515else
12516 cat >conftest.$ac_ext <<_ACEOF
12517/* confdefs.h. */
12518_ACEOF
12519cat confdefs.h >>conftest.$ac_ext
12520cat >>conftest.$ac_ext <<_ACEOF
12521/* end confdefs.h. */
12522$ac_includes_default
12523int
12524main ()
12525{
12526if ((long *) 0)
12527 return 0;
12528if (sizeof (long))
12529 return 0;
12530 ;
12531 return 0;
12532}
12533_ACEOF
12534rm -f conftest.$ac_objext
12535if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12536 (eval $ac_compile) 2>conftest.er1
12537 ac_status=$?
12538 grep -v '^ *+' conftest.er1 >conftest.err
12539 rm -f conftest.er1
12540 cat conftest.err >&5
12541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542 (exit $ac_status); } &&
12543 { ac_try='test -z "$ac_c_werror_flag"
12544 || test ! -s conftest.err'
12545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12546 (eval $ac_try) 2>&5
12547 ac_status=$?
12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549 (exit $ac_status); }; } &&
12550 { ac_try='test -s conftest.$ac_objext'
12551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12552 (eval $ac_try) 2>&5
12553 ac_status=$?
12554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555 (exit $ac_status); }; }; then
12556 ac_cv_type_long=yes
12557else
12558 echo "$as_me: failed program was:" >&5
12559sed 's/^/| /' conftest.$ac_ext >&5
12560
12561ac_cv_type_long=no
12562fi
12563rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12564fi
12565echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12566echo "${ECHO_T}$ac_cv_type_long" >&6
12567
12568echo "$as_me:$LINENO: checking size of long" >&5
12569echo $ECHO_N "checking size of long... $ECHO_C" >&6
12570if test "${ac_cv_sizeof_long+set}" = set; then
12571 echo $ECHO_N "(cached) $ECHO_C" >&6
12572else
12573 if test "$ac_cv_type_long" = yes; then
12574 # The cast to unsigned long works around a bug in the HP C Compiler
12575 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12576 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12577 # This bug is HP SR number 8606223364.
12578 if test "$cross_compiling" = yes; then
12579 # Depending upon the size, compute the lo and hi bounds.
12580cat >conftest.$ac_ext <<_ACEOF
12581/* confdefs.h. */
12582_ACEOF
12583cat confdefs.h >>conftest.$ac_ext
12584cat >>conftest.$ac_ext <<_ACEOF
12585/* end confdefs.h. */
12586$ac_includes_default
12587int
12588main ()
12589{
12590static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
12591test_array [0] = 0
12592
12593 ;
12594 return 0;
12595}
12596_ACEOF
12597rm -f conftest.$ac_objext
12598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12599 (eval $ac_compile) 2>conftest.er1
12600 ac_status=$?
12601 grep -v '^ *+' conftest.er1 >conftest.err
12602 rm -f conftest.er1
12603 cat conftest.err >&5
12604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12605 (exit $ac_status); } &&
12606 { ac_try='test -z "$ac_c_werror_flag"
12607 || test ! -s conftest.err'
12608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12609 (eval $ac_try) 2>&5
12610 ac_status=$?
12611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612 (exit $ac_status); }; } &&
12613 { ac_try='test -s conftest.$ac_objext'
12614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12615 (eval $ac_try) 2>&5
12616 ac_status=$?
12617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618 (exit $ac_status); }; }; then
12619 ac_lo=0 ac_mid=0
12620 while :; do
12621 cat >conftest.$ac_ext <<_ACEOF
12622/* confdefs.h. */
12623_ACEOF
12624cat confdefs.h >>conftest.$ac_ext
12625cat >>conftest.$ac_ext <<_ACEOF
12626/* end confdefs.h. */
12627$ac_includes_default
12628int
12629main ()
12630{
12631static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12632test_array [0] = 0
12633
12634 ;
12635 return 0;
12636}
12637_ACEOF
12638rm -f conftest.$ac_objext
12639if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12640 (eval $ac_compile) 2>conftest.er1
12641 ac_status=$?
12642 grep -v '^ *+' conftest.er1 >conftest.err
12643 rm -f conftest.er1
12644 cat conftest.err >&5
12645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646 (exit $ac_status); } &&
12647 { ac_try='test -z "$ac_c_werror_flag"
12648 || test ! -s conftest.err'
12649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12650 (eval $ac_try) 2>&5
12651 ac_status=$?
12652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653 (exit $ac_status); }; } &&
12654 { ac_try='test -s conftest.$ac_objext'
12655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12656 (eval $ac_try) 2>&5
12657 ac_status=$?
12658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659 (exit $ac_status); }; }; then
12660 ac_hi=$ac_mid; break
12661else
12662 echo "$as_me: failed program was:" >&5
12663sed 's/^/| /' conftest.$ac_ext >&5
12664
12665ac_lo=`expr $ac_mid + 1`
12666 if test $ac_lo -le $ac_mid; then
12667 ac_lo= ac_hi=
12668 break
12669 fi
12670 ac_mid=`expr 2 '*' $ac_mid + 1`
12671fi
12672rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12673 done
12674else
12675 echo "$as_me: failed program was:" >&5
12676sed 's/^/| /' conftest.$ac_ext >&5
12677
12678cat >conftest.$ac_ext <<_ACEOF
12679/* confdefs.h. */
12680_ACEOF
12681cat confdefs.h >>conftest.$ac_ext
12682cat >>conftest.$ac_ext <<_ACEOF
12683/* end confdefs.h. */
12684$ac_includes_default
12685int
12686main ()
12687{
12688static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
12689test_array [0] = 0
12690
12691 ;
12692 return 0;
12693}
12694_ACEOF
12695rm -f conftest.$ac_objext
12696if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12697 (eval $ac_compile) 2>conftest.er1
12698 ac_status=$?
12699 grep -v '^ *+' conftest.er1 >conftest.err
12700 rm -f conftest.er1
12701 cat conftest.err >&5
12702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12703 (exit $ac_status); } &&
12704 { ac_try='test -z "$ac_c_werror_flag"
12705 || test ! -s conftest.err'
12706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12707 (eval $ac_try) 2>&5
12708 ac_status=$?
12709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710 (exit $ac_status); }; } &&
12711 { ac_try='test -s conftest.$ac_objext'
12712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12713 (eval $ac_try) 2>&5
12714 ac_status=$?
12715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12716 (exit $ac_status); }; }; then
12717 ac_hi=-1 ac_mid=-1
12718 while :; do
12719 cat >conftest.$ac_ext <<_ACEOF
12720/* confdefs.h. */
12721_ACEOF
12722cat confdefs.h >>conftest.$ac_ext
12723cat >>conftest.$ac_ext <<_ACEOF
12724/* end confdefs.h. */
12725$ac_includes_default
12726int
12727main ()
12728{
12729static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
12730test_array [0] = 0
12731
12732 ;
12733 return 0;
12734}
12735_ACEOF
12736rm -f conftest.$ac_objext
12737if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12738 (eval $ac_compile) 2>conftest.er1
12739 ac_status=$?
12740 grep -v '^ *+' conftest.er1 >conftest.err
12741 rm -f conftest.er1
12742 cat conftest.err >&5
12743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744 (exit $ac_status); } &&
12745 { ac_try='test -z "$ac_c_werror_flag"
12746 || test ! -s conftest.err'
12747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12748 (eval $ac_try) 2>&5
12749 ac_status=$?
12750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751 (exit $ac_status); }; } &&
12752 { ac_try='test -s conftest.$ac_objext'
12753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12754 (eval $ac_try) 2>&5
12755 ac_status=$?
12756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12757 (exit $ac_status); }; }; then
12758 ac_lo=$ac_mid; break
12759else
12760 echo "$as_me: failed program was:" >&5
12761sed 's/^/| /' conftest.$ac_ext >&5
12762
12763ac_hi=`expr '(' $ac_mid ')' - 1`
12764 if test $ac_mid -le $ac_hi; then
12765 ac_lo= ac_hi=
12766 break
12767 fi
12768 ac_mid=`expr 2 '*' $ac_mid`
12769fi
12770rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12771 done
12772else
12773 echo "$as_me: failed program was:" >&5
12774sed 's/^/| /' conftest.$ac_ext >&5
12775
12776ac_lo= ac_hi=
12777fi
12778rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12779fi
12780rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12781# Binary search between lo and hi bounds.
12782while test "x$ac_lo" != "x$ac_hi"; do
12783 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12784 cat >conftest.$ac_ext <<_ACEOF
12785/* confdefs.h. */
12786_ACEOF
12787cat confdefs.h >>conftest.$ac_ext
12788cat >>conftest.$ac_ext <<_ACEOF
12789/* end confdefs.h. */
12790$ac_includes_default
12791int
12792main ()
12793{
12794static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12795test_array [0] = 0
12796
12797 ;
12798 return 0;
12799}
12800_ACEOF
12801rm -f conftest.$ac_objext
12802if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12803 (eval $ac_compile) 2>conftest.er1
12804 ac_status=$?
12805 grep -v '^ *+' conftest.er1 >conftest.err
12806 rm -f conftest.er1
12807 cat conftest.err >&5
12808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12809 (exit $ac_status); } &&
12810 { ac_try='test -z "$ac_c_werror_flag"
12811 || test ! -s conftest.err'
12812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12813 (eval $ac_try) 2>&5
12814 ac_status=$?
12815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12816 (exit $ac_status); }; } &&
12817 { ac_try='test -s conftest.$ac_objext'
12818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12819 (eval $ac_try) 2>&5
12820 ac_status=$?
12821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12822 (exit $ac_status); }; }; then
12823 ac_hi=$ac_mid
12824else
12825 echo "$as_me: failed program was:" >&5
12826sed 's/^/| /' conftest.$ac_ext >&5
12827
12828ac_lo=`expr '(' $ac_mid ')' + 1`
12829fi
12830rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12831done
12832case $ac_lo in
12833?*) ac_cv_sizeof_long=$ac_lo;;
7a283e07
RW
12834'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12835echo "$as_me: error: in \`$ac_pwd':" >&2;}
12836{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
314e9a4e
L
12837See \`config.log' for more details." >&5
12838echo "$as_me: error: cannot compute sizeof (long), 77
12839See \`config.log' for more details." >&2;}
7a283e07 12840 { (exit 1); exit 1; }; }; } ;;
314e9a4e
L
12841esac
12842else
12843 if test "$cross_compiling" = yes; then
7a283e07
RW
12844 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12845echo "$as_me: error: in \`$ac_pwd':" >&2;}
12846{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
314e9a4e
L
12847See \`config.log' for more details." >&5
12848echo "$as_me: error: cannot run test program while cross compiling
12849See \`config.log' for more details." >&2;}
7a283e07 12850 { (exit 1); exit 1; }; }; }
314e9a4e
L
12851else
12852 cat >conftest.$ac_ext <<_ACEOF
12853/* confdefs.h. */
12854_ACEOF
12855cat confdefs.h >>conftest.$ac_ext
12856cat >>conftest.$ac_ext <<_ACEOF
12857/* end confdefs.h. */
12858$ac_includes_default
12859long longval () { return (long) (sizeof (long)); }
12860unsigned long ulongval () { return (long) (sizeof (long)); }
12861#include <stdio.h>
12862#include <stdlib.h>
12863int
12864main ()
12865{
12866
12867 FILE *f = fopen ("conftest.val", "w");
12868 if (! f)
12869 exit (1);
12870 if (((long) (sizeof (long))) < 0)
12871 {
12872 long i = longval ();
12873 if (i != ((long) (sizeof (long))))
12874 exit (1);
12875 fprintf (f, "%ld\n", i);
12876 }
12877 else
12878 {
12879 unsigned long i = ulongval ();
12880 if (i != ((long) (sizeof (long))))
12881 exit (1);
12882 fprintf (f, "%lu\n", i);
12883 }
12884 exit (ferror (f) || fclose (f) != 0);
12885
12886 ;
12887 return 0;
12888}
12889_ACEOF
12890rm -f conftest$ac_exeext
12891if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12892 (eval $ac_link) 2>&5
12893 ac_status=$?
12894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12897 (eval $ac_try) 2>&5
12898 ac_status=$?
12899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900 (exit $ac_status); }; }; then
12901 ac_cv_sizeof_long=`cat conftest.val`
12902else
12903 echo "$as_me: program exited with status $ac_status" >&5
12904echo "$as_me: failed program was:" >&5
12905sed 's/^/| /' conftest.$ac_ext >&5
12906
12907( exit $ac_status )
7a283e07
RW
12908{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12909echo "$as_me: error: in \`$ac_pwd':" >&2;}
314e9a4e
L
12910{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12911See \`config.log' for more details." >&5
12912echo "$as_me: error: cannot compute sizeof (long), 77
12913See \`config.log' for more details." >&2;}
7a283e07 12914 { (exit 1); exit 1; }; }; }
314e9a4e
L
12915fi
12916rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12917fi
12918fi
12919rm -f conftest.val
12920else
12921 ac_cv_sizeof_long=0
12922fi
12923fi
12924echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
12925echo "${ECHO_T}$ac_cv_sizeof_long" >&6
12926cat >>confdefs.h <<_ACEOF
12927#define SIZEOF_LONG $ac_cv_sizeof_long
12928_ACEOF
12929
12930
12931 if test "x${ac_cv_sizeof_long}" = "x8"; then
12932 want64=true
12933 fi
12934 fi
42ecbf5e
DJ
12935 if test x${want64} = xtrue; then
12936 EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
12937 else
12938 EMULATION_OFILES='$(ALL_EMULATIONS)'
12939 fi
12940 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)'
12941else
12942 EMULATION_OFILES=$all_emuls
12943 EMUL_EXTRA_OFILES=$all_emul_extras
12944fi
12945
12946
12947
12948
12949EMULATION_LIBPATH=$all_libpath
12950
12951
12952if test x${enable_static} = xno; then
12953 TESTBFDLIB="--rpath ../bfd/.libs ../bfd/.libs/libbfd.so"
12954else
12955 TESTBFDLIB="../bfd/.libs/libbfd.a"
12956fi
12957
12958
12959target_vendor=${target_vendor=$host_vendor}
12960case "$target_vendor" in
12961 hp) EXTRA_SHLIB_EXTENSION=".sl" ;;
12962 *) EXTRA_SHLIB_EXTENSION= ;;
12963esac
12964
12965case "$target_os" in
12966 lynxos) EXTRA_SHLIB_EXTENSION=".a" ;;
12967esac
12968
12969if test x${EXTRA_SHLIB_EXTENSION} != x ; then
12970
12971cat >>confdefs.h <<_ACEOF
12972#define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
12973_ACEOF
12974
12975fi
12976
108a6f8e
CD
12977
12978
12979
12980
42ecbf5e 12981 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
42ecbf5e
DJ
12982cat >confcache <<\_ACEOF
12983# This file is a shell script that caches the results of configure
12984# tests run on this system so they can be shared between configure
12985# scripts and configure runs, see configure's option --config-cache.
12986# It is not useful on other systems. If it contains results you don't
12987# want to keep, you may remove or edit it.
12988#
12989# config.status only pays attention to the cache file if you give it
12990# the --recheck option to rerun configure.
12991#
12992# `ac_cv_env_foo' variables (set or unset) will be overridden when
12993# loading this file, other *unset* `ac_cv_foo' will be assigned the
12994# following values.
12995
12996_ACEOF
12997
12998# The following way of writing the cache mishandles newlines in values,
12999# but we know of no workaround that is simple, portable, and efficient.
13000# So, don't put newlines in cache variables' values.
13001# Ultrix sh set writes to stderr and can't be redirected directly,
13002# and sets the high bit in the cache file unless we assign to the vars.
13003{
13004 (set) 2>&1 |
13005 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13006 *ac_space=\ *)
13007 # `set' does not quote correctly, so add quotes (double-quote
13008 # substitution turns \\\\ into \\, and sed turns \\ into \).
13009 sed -n \
13010 "s/'/'\\\\''/g;
13011 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13012 ;;
13013 *)
13014 # `set' quotes correctly as required by POSIX, so do not add quotes.
13015 sed -n \
13016 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13017 ;;
13018 esac;
13019} |
13020 sed '
13021 t clear
13022 : clear
13023 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13024 t end
13025 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13026 : end' >>confcache
13027if diff $cache_file confcache >/dev/null 2>&1; then :; else
13028 if test -w $cache_file; then
13029 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
13030 cat confcache >$cache_file
13031 else
13032 echo "not updating unwritable cache $cache_file"
13033 fi
13034fi
13035rm -f confcache
13036
13037test "x$prefix" = xNONE && prefix=$ac_default_prefix
13038# Let make expand exec_prefix.
13039test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13040
13041# VPATH may cause trouble with some makes, so we remove $(srcdir),
13042# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13043# trailing colons and then remove the whole line if VPATH becomes empty
13044# (actually we leave an empty line to preserve line numbers).
13045if test "x$srcdir" = x.; then
13046 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13047s/:*\$(srcdir):*/:/;
13048s/:*\${srcdir}:*/:/;
13049s/:*@srcdir@:*/:/;
13050s/^\([^=]*=[ ]*\):*/\1/;
13051s/:*$//;
13052s/^[^=]*=[ ]*$//;
13053}'
13054fi
13055
13056DEFS=-DHAVE_CONFIG_H
13057
13058ac_libobjs=
13059ac_ltlibobjs=
13060for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13061 # 1. Remove the extension, and $U if already installed.
13062 ac_i=`echo "$ac_i" |
13063 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
13064 # 2. Add them.
13065 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
13066 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
13067done
13068LIBOBJS=$ac_libobjs
13069
13070LTLIBOBJS=$ac_ltlibobjs
13071
13072
13073if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13074 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13075Usually this means the macro was only invoked conditionally." >&5
13076echo "$as_me: error: conditional \"AMDEP\" was never defined.
13077Usually this means the macro was only invoked conditionally." >&2;}
13078 { (exit 1); exit 1; }; }
13079fi
13080if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13081 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13082Usually this means the macro was only invoked conditionally." >&5
13083echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13084Usually this means the macro was only invoked conditionally." >&2;}
13085 { (exit 1); exit 1; }; }
13086fi
13087if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13088 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
13089Usually this means the macro was only invoked conditionally." >&5
13090echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
13091Usually this means the macro was only invoked conditionally." >&2;}
13092 { (exit 1); exit 1; }; }
13093fi
d5fbea21
DJ
13094if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
13095 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
13096Usually this means the macro was only invoked conditionally." >&5
13097echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
13098Usually this means the macro was only invoked conditionally." >&2;}
13099 { (exit 1); exit 1; }; }
13100fi
42ecbf5e
DJ
13101
13102: ${CONFIG_STATUS=./config.status}
13103ac_clean_files_save=$ac_clean_files
13104ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13105{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13106echo "$as_me: creating $CONFIG_STATUS" >&6;}
13107cat >$CONFIG_STATUS <<_ACEOF
13108#! $SHELL
13109# Generated by $as_me.
13110# Run this file to recreate the current configuration.
13111# Compiler output produced by configure, useful for debugging
13112# configure, is in config.log if it exists.
13113
13114debug=false
13115ac_cs_recheck=false
13116ac_cs_silent=false
13117SHELL=\${CONFIG_SHELL-$SHELL}
13118_ACEOF
13119
13120cat >>$CONFIG_STATUS <<\_ACEOF
13121## --------------------- ##
13122## M4sh Initialization. ##
13123## --------------------- ##
13124
13125# Be Bourne compatible
13126if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13127 emulate sh
13128 NULLCMD=:
13129 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13130 # is contrary to our usage. Disable this feature.
13131 alias -g '${1+"$@"}'='"$@"'
13132elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13133 set -o posix
13134fi
13135DUALCASE=1; export DUALCASE # for MKS sh
13136
13137# Support unset when possible.
13138if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13139 as_unset=unset
13140else
13141 as_unset=false
13142fi
13143
13144
13145# Work around bugs in pre-3.0 UWIN ksh.
13146$as_unset ENV MAIL MAILPATH
13147PS1='$ '
13148PS2='> '
13149PS4='+ '
13150
13151# NLS nuisances.
13152for as_var in \
13153 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13154 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13155 LC_TELEPHONE LC_TIME
13156do
13157 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13158 eval $as_var=C; export $as_var
13159 else
13160 $as_unset $as_var
13161 fi
13162done
13163
13164# Required to use basename.
13165if expr a : '\(a\)' >/dev/null 2>&1; then
13166 as_expr=expr
13167else
13168 as_expr=false
13169fi
13170
13171if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
13172 as_basename=basename
13173else
13174 as_basename=false
13175fi
13176
13177
13178# Name of the executable.
13179as_me=`$as_basename "$0" ||
13180$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13181 X"$0" : 'X\(//\)$' \| \
13182 X"$0" : 'X\(/\)$' \| \
13183 . : '\(.\)' 2>/dev/null ||
13184echo X/"$0" |
13185 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13186 /^X\/\(\/\/\)$/{ s//\1/; q; }
13187 /^X\/\(\/\).*/{ s//\1/; q; }
13188 s/.*/./; q'`
13189
13190
13191# PATH needs CR, and LINENO needs CR and PATH.
13192# Avoid depending upon Character Ranges.
13193as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13194as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13195as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13196as_cr_digits='0123456789'
13197as_cr_alnum=$as_cr_Letters$as_cr_digits
13198
13199# The user is always right.
13200if test "${PATH_SEPARATOR+set}" != set; then
13201 echo "#! /bin/sh" >conf$$.sh
13202 echo "exit 0" >>conf$$.sh
13203 chmod +x conf$$.sh
13204 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13205 PATH_SEPARATOR=';'
13206 else
13207 PATH_SEPARATOR=:
13208 fi
13209 rm -f conf$$.sh
13210fi
13211
e5a52504 13212
42ecbf5e
DJ
13213 as_lineno_1=$LINENO
13214 as_lineno_2=$LINENO
13215 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13216 test "x$as_lineno_1" != "x$as_lineno_2" &&
13217 test "x$as_lineno_3" = "x$as_lineno_2" || {
13218 # Find who we are. Look in the path if we contain no path at all
13219 # relative or not.
13220 case $0 in
13221 *[\\/]* ) as_myself=$0 ;;
13222 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13223for as_dir in $PATH
13224do
13225 IFS=$as_save_IFS
13226 test -z "$as_dir" && as_dir=.
13227 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13228done
13229
13230 ;;
13231 esac
13232 # We did not find ourselves, most probably we were run as `sh COMMAND'
13233 # in which case we are not to be found in the path.
13234 if test "x$as_myself" = x; then
13235 as_myself=$0
13236 fi
13237 if test ! -f "$as_myself"; then
13238 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13239echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13240 { (exit 1); exit 1; }; }
252b5132 13241 fi
42ecbf5e
DJ
13242 case $CONFIG_SHELL in
13243 '')
13244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13245for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13246do
13247 IFS=$as_save_IFS
13248 test -z "$as_dir" && as_dir=.
13249 for as_base in sh bash ksh sh5; do
13250 case $as_dir in
13251 /*)
13252 if ("$as_dir/$as_base" -c '
13253 as_lineno_1=$LINENO
13254 as_lineno_2=$LINENO
13255 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13256 test "x$as_lineno_1" != "x$as_lineno_2" &&
13257 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
13258 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
13259 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
13260 CONFIG_SHELL=$as_dir/$as_base
13261 export CONFIG_SHELL
13262 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
13263 fi;;
13264 esac
13265 done
252b5132 13266done
42ecbf5e
DJ
13267;;
13268 esac
252b5132 13269
42ecbf5e
DJ
13270 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13271 # uniformly replaced by the line number. The first 'sed' inserts a
13272 # line-number line before each line; the second 'sed' does the real
13273 # work. The second script uses 'N' to pair each line-number line
13274 # with the numbered line, and appends trailing '-' during
13275 # substitution so that $LINENO is not a special case at line end.
13276 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13277 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
13278 sed '=' <$as_myself |
13279 sed '
13280 N
13281 s,$,-,
13282 : loop
13283 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
13284 t loop
13285 s,-$,,
13286 s,^['$as_cr_digits']*\n,,
13287 ' >$as_me.lineno &&
13288 chmod +x $as_me.lineno ||
13289 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13290echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
13291 { (exit 1); exit 1; }; }
13292
13293 # Don't try to exec as it changes $[0], causing all sort of problems
13294 # (the dirname of $[0] is not the place where we might find the
13295 # original and so on. Autoconf is especially sensible to this).
13296 . ./$as_me.lineno
13297 # Exit status is that of the last command.
13298 exit
13299}
252b5132
RH
13300
13301
42ecbf5e
DJ
13302case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13303 *c*,-n*) ECHO_N= ECHO_C='
13304' ECHO_T=' ' ;;
13305 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
13306 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
13307esac
252b5132 13308
42ecbf5e
DJ
13309if expr a : '\(a\)' >/dev/null 2>&1; then
13310 as_expr=expr
13311else
13312 as_expr=false
13313fi
252b5132 13314
42ecbf5e
DJ
13315rm -f conf$$ conf$$.exe conf$$.file
13316echo >conf$$.file
13317if ln -s conf$$.file conf$$ 2>/dev/null; then
13318 # We could just check for DJGPP; but this test a) works b) is more generic
13319 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13320 if test -f conf$$.exe; then
13321 # Don't use ln at all; we don't have any links
13322 as_ln_s='cp -p'
252b5132 13323 else
42ecbf5e 13324 as_ln_s='ln -s'
252b5132 13325 fi
42ecbf5e
DJ
13326elif ln conf$$.file conf$$ 2>/dev/null; then
13327 as_ln_s=ln
e5a52504 13328else
42ecbf5e 13329 as_ln_s='cp -p'
e5a52504 13330fi
42ecbf5e 13331rm -f conf$$ conf$$.exe conf$$.file
252b5132 13332
42ecbf5e
DJ
13333if mkdir -p . 2>/dev/null; then
13334 as_mkdir_p=:
13335else
13336 test -d ./-p && rmdir ./-p
13337 as_mkdir_p=false
13338fi
252b5132 13339
42ecbf5e 13340as_executable_p="test -f"
252b5132 13341
42ecbf5e
DJ
13342# Sed expression to map a string onto a valid CPP name.
13343as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
f234d5fe 13344
42ecbf5e
DJ
13345# Sed expression to map a string onto a valid variable name.
13346as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
e5a52504 13347
e5a52504 13348
42ecbf5e
DJ
13349# IFS
13350# We need space, tab and new line, in precisely that order.
13351as_nl='
13352'
13353IFS=" $as_nl"
e5a52504 13354
42ecbf5e
DJ
13355# CDPATH.
13356$as_unset CDPATH
e5a52504 13357
42ecbf5e 13358exec 6>&1
e5a52504 13359
42ecbf5e
DJ
13360# Open the log real soon, to keep \$[0] and so on meaningful, and to
13361# report actual input values of CONFIG_FILES etc. instead of their
13362# values after options handling. Logging --version etc. is OK.
13363exec 5>>config.log
13364{
13365 echo
13366 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13367## Running $as_me. ##
13368_ASBOX
13369} >&5
13370cat >&5 <<_CSEOF
e5a52504 13371
42ecbf5e
DJ
13372This file was extended by $as_me, which was
13373generated by GNU Autoconf 2.59. Invocation command line was
13374
13375 CONFIG_FILES = $CONFIG_FILES
13376 CONFIG_HEADERS = $CONFIG_HEADERS
13377 CONFIG_LINKS = $CONFIG_LINKS
13378 CONFIG_COMMANDS = $CONFIG_COMMANDS
13379 $ $0 $@
e5a52504 13380
42ecbf5e
DJ
13381_CSEOF
13382echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
13383echo >&5
13384_ACEOF
13385
13386# Files that config.status was made for.
13387if test -n "$ac_config_files"; then
13388 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
d15b04bd 13389fi
e5a52504 13390
42ecbf5e
DJ
13391if test -n "$ac_config_headers"; then
13392 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13393fi
13394
13395if test -n "$ac_config_links"; then
13396 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13397fi
13398
13399if test -n "$ac_config_commands"; then
13400 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13401fi
13402
13403cat >>$CONFIG_STATUS <<\_ACEOF
13404
13405ac_cs_usage="\
13406\`$as_me' instantiates files from templates according to the
13407current configuration.
13408
13409Usage: $0 [OPTIONS] [FILE]...
13410
13411 -h, --help print this help, then exit
13412 -V, --version print version number, then exit
13413 -q, --quiet do not print progress messages
13414 -d, --debug don't remove temporary files
13415 --recheck update $as_me by reconfiguring in the same conditions
13416 --file=FILE[:TEMPLATE]
13417 instantiate the configuration file FILE
13418 --header=FILE[:TEMPLATE]
13419 instantiate the configuration header FILE
13420
13421Configuration files:
13422$config_files
13423
13424Configuration headers:
13425$config_headers
13426
13427Configuration commands:
13428$config_commands
13429
13430Report bugs to <bug-autoconf@gnu.org>."
13431_ACEOF
13432
13433cat >>$CONFIG_STATUS <<_ACEOF
13434ac_cs_version="\\
13435config.status
13436configured by $0, generated by GNU Autoconf 2.59,
13437 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13438
13439Copyright (C) 2003 Free Software Foundation, Inc.
13440This config.status script is free software; the Free Software Foundation
13441gives unlimited permission to copy, distribute and modify it."
13442srcdir=$srcdir
13443INSTALL="$INSTALL"
13444_ACEOF
13445
13446cat >>$CONFIG_STATUS <<\_ACEOF
13447# If no file are specified by the user, then we need to provide default
13448# value. By we need to know if files were specified by the user.
13449ac_need_defaults=:
13450while test $# != 0
13451do
13452 case $1 in
13453 --*=*)
13454 ac_option=`expr "x$1" : 'x\([^=]*\)='`
13455 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13456 ac_shift=:
252b5132 13457 ;;
42ecbf5e
DJ
13458 -*)
13459 ac_option=$1
13460 ac_optarg=$2
13461 ac_shift=shift
252b5132 13462 ;;
42ecbf5e
DJ
13463 *) # This is not an option, so the user has probably given explicit
13464 # arguments.
13465 ac_option=$1
13466 ac_need_defaults=false;;
13467 esac
252b5132 13468
42ecbf5e
DJ
13469 case $ac_option in
13470 # Handling of the options.
13471_ACEOF
13472cat >>$CONFIG_STATUS <<\_ACEOF
13473 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13474 ac_cs_recheck=: ;;
13475 --version | --vers* | -V )
13476 echo "$ac_cs_version"; exit 0 ;;
13477 --he | --h)
13478 # Conflict between --help and --header
13479 { { echo "$as_me:$LINENO: error: ambiguous option: $1
13480Try \`$0 --help' for more information." >&5
13481echo "$as_me: error: ambiguous option: $1
13482Try \`$0 --help' for more information." >&2;}
13483 { (exit 1); exit 1; }; };;
13484 --help | --hel | -h )
13485 echo "$ac_cs_usage"; exit 0 ;;
13486 --debug | --d* | -d )
13487 debug=: ;;
13488 --file | --fil | --fi | --f )
13489 $ac_shift
13490 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13491 ac_need_defaults=false;;
13492 --header | --heade | --head | --hea )
13493 $ac_shift
13494 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13495 ac_need_defaults=false;;
13496 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13497 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13498 ac_cs_silent=: ;;
252b5132 13499
42ecbf5e
DJ
13500 # This is an error.
13501 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13502Try \`$0 --help' for more information." >&5
13503echo "$as_me: error: unrecognized option: $1
13504Try \`$0 --help' for more information." >&2;}
13505 { (exit 1); exit 1; }; } ;;
252b5132 13506
42ecbf5e 13507 *) ac_config_targets="$ac_config_targets $1" ;;
252b5132 13508
42ecbf5e
DJ
13509 esac
13510 shift
13511done
d15b04bd 13512
42ecbf5e 13513ac_configure_extra_args=
e5a52504 13514
42ecbf5e
DJ
13515if $ac_cs_silent; then
13516 exec 6>/dev/null
13517 ac_configure_extra_args="$ac_configure_extra_args --silent"
13518fi
e5a52504 13519
42ecbf5e
DJ
13520_ACEOF
13521cat >>$CONFIG_STATUS <<_ACEOF
13522if \$ac_cs_recheck; then
13523 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13524 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13525fi
13526
13527_ACEOF
13528
13529cat >>$CONFIG_STATUS <<_ACEOF
252b5132 13530#
42ecbf5e 13531# INIT-COMMANDS section.
252b5132 13532#
252b5132 13533
42ecbf5e 13534AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
13535
13536
13537# The HP-UX ksh and POSIX shell print the target directory to stdout
13538# if CDPATH is set.
13539(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13540
13541sed_quote_subst='$sed_quote_subst'
13542double_quote_subst='$double_quote_subst'
13543delay_variable_subst='$delay_variable_subst'
13544macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13545macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13546enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13547enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13548pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13549enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13550host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13551host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13552host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13553build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13554build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13555build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13556SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13557Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13558GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13559EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13560FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13561LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13562NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13563LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13564max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13565ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13566exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13567lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13568lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13569lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13570reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13571reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13572deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13573file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13574AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13575AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13576STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13577RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13578old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13579old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13580old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13581CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13582CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13583compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13584GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13585lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13586lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13587lt_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"`'
13588objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13589SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13590ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13591MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13592lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13593lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13594lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13595lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13596lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13597need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13598libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13599shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13600extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13601archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13602enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13603export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13604whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13605compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13606old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13607old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13608archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13609archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13610module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13611module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13612with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13613allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13614no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13615hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13616hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13617hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13618hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13619hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13620hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13621hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13622hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13623inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13624link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13625fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13626always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13627export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13628exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13629include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13630prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13631file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13632variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13633need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13634need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13635version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13636runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13637shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13638shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13639libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13640library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13641soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13642postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13643postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13644finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13645finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13646hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13647sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13648sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13649hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13650enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13651enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13652enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13653old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13654striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13655
13656LTCC='$LTCC'
13657LTCFLAGS='$LTCFLAGS'
13658compiler='$compiler_DEFAULT'
13659
13660# Quote evaled strings.
13661for var in SED \
13662GREP \
13663EGREP \
13664FGREP \
13665LD \
13666NM \
13667LN_S \
13668lt_SP2NL \
13669lt_NL2SP \
13670reload_flag \
13671deplibs_check_method \
13672file_magic_cmd \
13673AR \
13674AR_FLAGS \
13675STRIP \
13676RANLIB \
13677CC \
13678CFLAGS \
13679compiler \
13680lt_cv_sys_global_symbol_pipe \
13681lt_cv_sys_global_symbol_to_cdecl \
13682lt_cv_sys_global_symbol_to_c_name_address \
13683SHELL \
13684ECHO \
13685lt_prog_compiler_no_builtin_flag \
13686lt_prog_compiler_wl \
13687lt_prog_compiler_pic \
13688lt_prog_compiler_static \
13689lt_cv_prog_compiler_c_o \
13690need_locks \
13691shrext_cmds \
13692export_dynamic_flag_spec \
13693whole_archive_flag_spec \
13694compiler_needs_object \
13695with_gnu_ld \
13696allow_undefined_flag \
13697no_undefined_flag \
13698hardcode_libdir_flag_spec \
13699hardcode_libdir_flag_spec_ld \
13700hardcode_libdir_separator \
13701fix_srcfile_path \
13702exclude_expsyms \
13703include_expsyms \
13704file_list_spec \
13705variables_saved_for_relink \
13706libname_spec \
13707library_names_spec \
13708soname_spec \
13709finish_eval \
13710old_striplib \
13711striplib; do
13712 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13713 *[\\\\\\\`\\"\\\$]*)
13714 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13715 ;;
13716 *)
13717 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13718 ;;
13719 esac
13720done
13721
13722# Double-quote double-evaled strings.
13723for var in reload_cmds \
13724old_postinstall_cmds \
13725old_postuninstall_cmds \
13726old_archive_cmds \
13727extract_expsyms_cmds \
13728old_archive_from_new_cmds \
13729old_archive_from_expsyms_cmds \
13730archive_cmds \
13731archive_expsym_cmds \
13732module_cmds \
13733module_expsym_cmds \
13734export_symbols_cmds \
13735prelink_cmds \
13736postinstall_cmds \
13737postuninstall_cmds \
13738finish_cmds \
13739sys_lib_search_path_spec \
13740sys_lib_dlsearch_path_spec; do
13741 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13742 *[\\\\\\\`\\"\\\$]*)
13743 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13744 ;;
13745 *)
13746 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13747 ;;
13748 esac
13749done
13750
13751# Fix-up fallback echo if it was mangled by the above quoting rules.
13752case \$lt_ECHO in
13753*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13754 ;;
13755esac
13756
13757ac_aux_dir='$ac_aux_dir'
13758xsi_shell='$xsi_shell'
13759lt_shell_append='$lt_shell_append'
13760
13761# See if we are running on zsh, and set the options which allow our
13762# commands through without removal of \ escapes INIT.
13763if test -n "\${ZSH_VERSION+set}" ; then
13764 setopt NO_GLOB_SUBST
13765fi
13766
13767
13768 PACKAGE='$PACKAGE'
13769 VERSION='$VERSION'
13770 TIMESTAMP='$TIMESTAMP'
13771 RM='$RM'
13772 ofile='$ofile'
13773
13774
13775
20e95c23
DJ
13776# Capture the value of obsolete ALL_LINGUAS because we need it to compute
13777 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
13778 # from automake.
13779 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
13780 # Capture the value of LINGUAS because we need it to compute CATALOGS.
13781 LINGUAS="${LINGUAS-%UNSET%}"
13782
42ecbf5e
DJ
13783
13784_ACEOF
13785
13786
13787
13788cat >>$CONFIG_STATUS <<\_ACEOF
13789for ac_config_target in $ac_config_targets
252b5132 13790do
42ecbf5e
DJ
13791 case "$ac_config_target" in
13792 # Handling of arguments.
13793 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13794 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
13795 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
d7040cdb 13796 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20e95c23 13797 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
42ecbf5e
DJ
13798 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
13799 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13800echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13801 { (exit 1); exit 1; }; };;
252b5132
RH
13802 esac
13803done
13804
42ecbf5e
DJ
13805# If the user did not use the arguments to specify the items to instantiate,
13806# then the envvar interface is used. Set only those that are not.
13807# We use the long form for the default assignment because of an extremely
13808# bizarre bug on SunOS 4.1.3.
13809if $ac_need_defaults; then
13810 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13811 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13812 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13813fi
13814
13815# Have a temporary directory for convenience. Make it in the build tree
13816# simply because there is no reason to put it here, and in addition,
13817# creating and moving files from /tmp can sometimes cause problems.
13818# Create a temporary directory, and hook for its removal unless debugging.
13819$debug ||
13820{
13821 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13822 trap '{ (exit 1); exit 1; }' 1 2 13 15
13823}
13824
13825# Create a (secure) tmp directory for tmp files.
e5a52504 13826
42ecbf5e
DJ
13827{
13828 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13829 test -n "$tmp" && test -d "$tmp"
13830} ||
13831{
13832 tmp=./confstat$$-$RANDOM
13833 (umask 077 && mkdir $tmp)
13834} ||
13835{
13836 echo "$me: cannot create a temporary directory in ." >&2
13837 { (exit 1); exit 1; }
13838}
e5a52504 13839
42ecbf5e 13840_ACEOF
d15b04bd 13841
42ecbf5e
DJ
13842cat >>$CONFIG_STATUS <<_ACEOF
13843
13844#
13845# CONFIG_FILES section.
13846#
13847
13848# No need to generate the scripts if there are no CONFIG_FILES.
13849# This happens for instance when ./config.status config.h
13850if test -n "\$CONFIG_FILES"; then
13851 # Protect against being on the right side of a sed subst in config.status.
13852 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13853 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13854s,@SHELL@,$SHELL,;t t
13855s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13856s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13857s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13858s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13859s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13860s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13861s,@exec_prefix@,$exec_prefix,;t t
13862s,@prefix@,$prefix,;t t
13863s,@program_transform_name@,$program_transform_name,;t t
13864s,@bindir@,$bindir,;t t
13865s,@sbindir@,$sbindir,;t t
13866s,@libexecdir@,$libexecdir,;t t
13867s,@datadir@,$datadir,;t t
13868s,@sysconfdir@,$sysconfdir,;t t
13869s,@sharedstatedir@,$sharedstatedir,;t t
13870s,@localstatedir@,$localstatedir,;t t
13871s,@libdir@,$libdir,;t t
13872s,@includedir@,$includedir,;t t
13873s,@oldincludedir@,$oldincludedir,;t t
13874s,@infodir@,$infodir,;t t
13875s,@mandir@,$mandir,;t t
13876s,@build_alias@,$build_alias,;t t
13877s,@host_alias@,$host_alias,;t t
13878s,@target_alias@,$target_alias,;t t
13879s,@DEFS@,$DEFS,;t t
13880s,@ECHO_C@,$ECHO_C,;t t
13881s,@ECHO_N@,$ECHO_N,;t t
13882s,@ECHO_T@,$ECHO_T,;t t
13883s,@LIBS@,$LIBS,;t t
13884s,@build@,$build,;t t
13885s,@build_cpu@,$build_cpu,;t t
13886s,@build_vendor@,$build_vendor,;t t
13887s,@build_os@,$build_os,;t t
13888s,@host@,$host,;t t
13889s,@host_cpu@,$host_cpu,;t t
13890s,@host_vendor@,$host_vendor,;t t
13891s,@host_os@,$host_os,;t t
13892s,@target@,$target,;t t
13893s,@target_cpu@,$target_cpu,;t t
13894s,@target_vendor@,$target_vendor,;t t
13895s,@target_os@,$target_os,;t t
13896s,@CC@,$CC,;t t
13897s,@CFLAGS@,$CFLAGS,;t t
13898s,@LDFLAGS@,$LDFLAGS,;t t
13899s,@CPPFLAGS@,$CPPFLAGS,;t t
13900s,@ac_ct_CC@,$ac_ct_CC,;t t
13901s,@EXEEXT@,$EXEEXT,;t t
13902s,@OBJEXT@,$OBJEXT,;t t
13903s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13904s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13905s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13906s,@CYGPATH_W@,$CYGPATH_W,;t t
13907s,@PACKAGE@,$PACKAGE,;t t
13908s,@VERSION@,$VERSION,;t t
13909s,@ACLOCAL@,$ACLOCAL,;t t
13910s,@AUTOCONF@,$AUTOCONF,;t t
13911s,@AUTOMAKE@,$AUTOMAKE,;t t
13912s,@AUTOHEADER@,$AUTOHEADER,;t t
13913s,@MAKEINFO@,$MAKEINFO,;t t
13914s,@install_sh@,$install_sh,;t t
13915s,@STRIP@,$STRIP,;t t
13916s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
13917s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
13918s,@mkdir_p@,$mkdir_p,;t t
13919s,@AWK@,$AWK,;t t
13920s,@SET_MAKE@,$SET_MAKE,;t t
13921s,@am__leading_dot@,$am__leading_dot,;t t
13922s,@AMTAR@,$AMTAR,;t t
13923s,@am__tar@,$am__tar,;t t
13924s,@am__untar@,$am__untar,;t t
13925s,@DEPDIR@,$DEPDIR,;t t
13926s,@am__include@,$am__include,;t t
13927s,@am__quote@,$am__quote,;t t
13928s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
13929s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
13930s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
13931s,@CCDEPMODE@,$CCDEPMODE,;t t
13932s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
13933s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
ce2cded5
L
13934s,@use_sysroot@,$use_sysroot,;t t
13935s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
13936s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
13937s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
13938s,@NO_WERROR@,$NO_WERROR,;t t
d7040cdb
SE
13939s,@LIBTOOL@,$LIBTOOL,;t t
13940s,@SED@,$SED,;t t
13941s,@EGREP@,$EGREP,;t t
13942s,@FGREP@,$FGREP,;t t
13943s,@GREP@,$GREP,;t t
13944s,@LD@,$LD,;t t
13945s,@DUMPBIN@,$DUMPBIN,;t t
13946s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
13947s,@NM@,$NM,;t t
42ecbf5e 13948s,@LN_S@,$LN_S,;t t
d7040cdb
SE
13949s,@AR@,$AR,;t t
13950s,@ac_ct_AR@,$ac_ct_AR,;t t
42ecbf5e
DJ
13951s,@RANLIB@,$RANLIB,;t t
13952s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
d7040cdb
SE
13953s,@lt_ECHO@,$lt_ECHO,;t t
13954s,@CPP@,$CPP,;t t
42ecbf5e 13955s,@USE_NLS@,$USE_NLS,;t t
20e95c23
DJ
13956s,@LIBINTL@,$LIBINTL,;t t
13957s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
13958s,@INCINTL@,$INCINTL,;t t
42ecbf5e 13959s,@XGETTEXT@,$XGETTEXT,;t t
20e95c23
DJ
13960s,@GMSGFMT@,$GMSGFMT,;t t
13961s,@POSUB@,$POSUB,;t t
42ecbf5e 13962s,@CATALOGS@,$CATALOGS,;t t
42ecbf5e 13963s,@DATADIRNAME@,$DATADIRNAME,;t t
42ecbf5e 13964s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20e95c23
DJ
13965s,@GENCAT@,$GENCAT,;t t
13966s,@CATOBJEXT@,$CATOBJEXT,;t t
42ecbf5e 13967s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
20e95c23
DJ
13968s,@MSGFMT@,$MSGFMT,;t t
13969s,@MSGMERGE@,$MSGMERGE,;t t
42ecbf5e
DJ
13970s,@YACC@,$YACC,;t t
13971s,@LEX@,$LEX,;t t
13972s,@LEXLIB@,$LEXLIB,;t t
13973s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
13974s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13975s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13976s,@MAINT@,$MAINT,;t t
d5fbea21
DJ
13977s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
13978s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
42ecbf5e
DJ
13979s,@HDEFINES@,$HDEFINES,;t t
13980s,@HOSTING_CRT0@,$HOSTING_CRT0,;t t
13981s,@HOSTING_LIBS@,$HOSTING_LIBS,;t t
13982s,@NATIVE_LIB_DIRS@,$NATIVE_LIB_DIRS,;t t
13983s,@STRINGIFY@,$STRINGIFY,;t t
13984s,@EMUL@,$EMUL,;t t
13985s,@EMULATION_OFILES@,$EMULATION_OFILES,;t t
13986s,@EMUL_EXTRA_OFILES@,$EMUL_EXTRA_OFILES,;t t
13987s,@LIB_PATH@,$LIB_PATH,;t t
13988s,@EMULATION_LIBPATH@,$EMULATION_LIBPATH,;t t
13989s,@TESTBFDLIB@,$TESTBFDLIB,;t t
108a6f8e
CD
13990s,@datarootdir@,$datarootdir,;t t
13991s,@docdir@,$docdir,;t t
13992s,@htmldir@,$htmldir,;t t
42ecbf5e
DJ
13993s,@LIBOBJS@,$LIBOBJS,;t t
13994s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13995/@TDIRS@/r $TDIRS
13996s,@TDIRS@,,;t t
252b5132 13997CEOF
252b5132 13998
42ecbf5e
DJ
13999_ACEOF
14000
14001 cat >>$CONFIG_STATUS <<\_ACEOF
14002 # Split the substitutions into bite-sized pieces for seds with
14003 # small command number limits, like on Digital OSF/1 and HP-UX.
14004 ac_max_sed_lines=48
14005 ac_sed_frag=1 # Number of current file.
14006 ac_beg=1 # First line for current file.
14007 ac_end=$ac_max_sed_lines # Line after last line for current file.
14008 ac_more_lines=:
14009 ac_sed_cmds=
14010 while $ac_more_lines; do
14011 if test $ac_beg -gt 1; then
14012 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14013 else
14014 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14015 fi
14016 if test ! -s $tmp/subs.frag; then
14017 ac_more_lines=false
252b5132 14018 else
42ecbf5e
DJ
14019 # The purpose of the label and of the branching condition is to
14020 # speed up the sed processing (if there are no `@' at all, there
14021 # is no need to browse any of the substitutions).
14022 # These are the two extra sed commands mentioned above.
14023 (echo ':t
14024 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
14025 if test -z "$ac_sed_cmds"; then
14026 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
14027 else
14028 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
14029 fi
14030 ac_sed_frag=`expr $ac_sed_frag + 1`
14031 ac_beg=$ac_end
14032 ac_end=`expr $ac_end + $ac_max_sed_lines`
252b5132 14033 fi
42ecbf5e
DJ
14034 done
14035 if test -z "$ac_sed_cmds"; then
14036 ac_sed_cmds=cat
252b5132 14037 fi
42ecbf5e 14038fi # test -n "$CONFIG_FILES"
252b5132 14039
42ecbf5e
DJ
14040_ACEOF
14041cat >>$CONFIG_STATUS <<\_ACEOF
14042for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
252b5132 14043 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42ecbf5e
DJ
14044 case $ac_file in
14045 - | *:- | *:-:* ) # input from stdin
14046 cat >$tmp/stdin
14047 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14048 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14049 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14050 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14051 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
14052 esac
14053
42ecbf5e
DJ
14054 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
14055 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14056$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14057 X"$ac_file" : 'X\(//\)[^/]' \| \
14058 X"$ac_file" : 'X\(//\)$' \| \
14059 X"$ac_file" : 'X\(/\)' \| \
14060 . : '\(.\)' 2>/dev/null ||
14061echo X"$ac_file" |
14062 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14063 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14064 /^X\(\/\/\)$/{ s//\1/; q; }
14065 /^X\(\/\).*/{ s//\1/; q; }
14066 s/.*/./; q'`
14067 { if $as_mkdir_p; then
14068 mkdir -p "$ac_dir"
d15b04bd 14069 else
42ecbf5e
DJ
14070 as_dir="$ac_dir"
14071 as_dirs=
14072 while test ! -d "$as_dir"; do
14073 as_dirs="$as_dir $as_dirs"
14074 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14075$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14076 X"$as_dir" : 'X\(//\)[^/]' \| \
14077 X"$as_dir" : 'X\(//\)$' \| \
14078 X"$as_dir" : 'X\(/\)' \| \
14079 . : '\(.\)' 2>/dev/null ||
14080echo X"$as_dir" |
14081 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14082 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14083 /^X\(\/\/\)$/{ s//\1/; q; }
14084 /^X\(\/\).*/{ s//\1/; q; }
14085 s/.*/./; q'`
14086 done
14087 test ! -n "$as_dirs" || mkdir $as_dirs
14088 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14089echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14090 { (exit 1); exit 1; }; }; }
14091
14092 ac_builddir=.
14093
14094if test "$ac_dir" != .; then
14095 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14096 # A "../" for each directory in $ac_dir_suffix.
14097 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14098else
14099 ac_dir_suffix= ac_top_builddir=
14100fi
252b5132 14101
42ecbf5e
DJ
14102case $srcdir in
14103 .) # No --srcdir option. We are building in place.
14104 ac_srcdir=.
14105 if test -z "$ac_top_builddir"; then
14106 ac_top_srcdir=.
14107 else
14108 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14109 fi ;;
14110 [\\/]* | ?:[\\/]* ) # Absolute path.
14111 ac_srcdir=$srcdir$ac_dir_suffix;
14112 ac_top_srcdir=$srcdir ;;
252b5132 14113 *) # Relative path.
42ecbf5e
DJ
14114 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14115 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14116esac
14117
14118# Do not use `cd foo && pwd` to compute absolute paths, because
14119# the directories may not exist.
14120case `pwd` in
14121.) ac_abs_builddir="$ac_dir";;
14122*)
14123 case "$ac_dir" in
14124 .) ac_abs_builddir=`pwd`;;
14125 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14126 *) ac_abs_builddir=`pwd`/"$ac_dir";;
14127 esac;;
14128esac
14129case $ac_abs_builddir in
14130.) ac_abs_top_builddir=${ac_top_builddir}.;;
14131*)
14132 case ${ac_top_builddir}. in
14133 .) ac_abs_top_builddir=$ac_abs_builddir;;
14134 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14135 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14136 esac;;
14137esac
14138case $ac_abs_builddir in
14139.) ac_abs_srcdir=$ac_srcdir;;
14140*)
14141 case $ac_srcdir in
14142 .) ac_abs_srcdir=$ac_abs_builddir;;
14143 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14144 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14145 esac;;
14146esac
14147case $ac_abs_builddir in
14148.) ac_abs_top_srcdir=$ac_top_srcdir;;
14149*)
14150 case $ac_top_srcdir in
14151 .) ac_abs_top_srcdir=$ac_abs_builddir;;
14152 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14153 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14154 esac;;
14155esac
252b5132 14156
e5a52504 14157
42ecbf5e
DJ
14158 case $INSTALL in
14159 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14160 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
d15b04bd 14161 esac
e5a52504 14162
502bdb00
JW
14163 if test x"$ac_file" != x-; then
14164 { echo "$as_me:$LINENO: creating $ac_file" >&5
14165echo "$as_me: creating $ac_file" >&6;}
14166 rm -f "$ac_file"
14167 fi
42ecbf5e
DJ
14168 # Let's still pretend it is `configure' which instantiates (i.e., don't
14169 # use $as_me), people would be surprised to read:
14170 # /* config.h. Generated by config.status. */
14171 if test x"$ac_file" = x-; then
14172 configure_input=
14173 else
14174 configure_input="$ac_file. "
14175 fi
14176 configure_input=$configure_input"Generated from `echo $ac_file_in |
14177 sed 's,.*/,,'` by configure."
14178
14179 # First look for the input files in the build tree, otherwise in the
14180 # src tree.
14181 ac_file_inputs=`IFS=:
14182 for f in $ac_file_in; do
14183 case $f in
14184 -) echo $tmp/stdin ;;
14185 [\\/$]*)
14186 # Absolute (can't be DOS-style, as IFS=:)
14187 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14188echo "$as_me: error: cannot find input file: $f" >&2;}
14189 { (exit 1); exit 1; }; }
14190 echo "$f";;
14191 *) # Relative
14192 if test -f "$f"; then
14193 # Build tree
14194 echo "$f"
14195 elif test -f "$srcdir/$f"; then
14196 # Source tree
14197 echo "$srcdir/$f"
14198 else
14199 # /dev/null tree
14200 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14201echo "$as_me: error: cannot find input file: $f" >&2;}
14202 { (exit 1); exit 1; }; }
14203 fi;;
14204 esac
14205 done` || { (exit 1); exit 1; }
42ecbf5e
DJ
14206_ACEOF
14207cat >>$CONFIG_STATUS <<_ACEOF
14208 sed "$ac_vpsub
14209$extrasub
14210_ACEOF
14211cat >>$CONFIG_STATUS <<\_ACEOF
14212:t
14213/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14214s,@configure_input@,$configure_input,;t t
14215s,@srcdir@,$ac_srcdir,;t t
14216s,@abs_srcdir@,$ac_abs_srcdir,;t t
14217s,@top_srcdir@,$ac_top_srcdir,;t t
14218s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
14219s,@builddir@,$ac_builddir,;t t
14220s,@abs_builddir@,$ac_abs_builddir,;t t
14221s,@top_builddir@,$ac_top_builddir,;t t
14222s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
14223s,@INSTALL@,$ac_INSTALL,;t t
14224" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
14225 rm -f $tmp/stdin
14226 if test x"$ac_file" != x-; then
14227 mv $tmp/out $ac_file
14228 else
14229 cat $tmp/out
14230 rm -f $tmp/out
14231 fi
14232
14233done
14234_ACEOF
14235cat >>$CONFIG_STATUS <<\_ACEOF
14236
14237#
14238# CONFIG_HEADER section.
14239#
252b5132
RH
14240
14241# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14242# NAME is the cpp macro being defined and VALUE is the value it is being given.
14243#
14244# ac_d sets the value in "#define NAME VALUE" lines.
42ecbf5e
DJ
14245ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14246ac_dB='[ ].*$,\1#\2'
14247ac_dC=' '
14248ac_dD=',;t'
14249# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14250ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14251ac_uB='$,\1#\2define\3'
252b5132 14252ac_uC=' '
42ecbf5e
DJ
14253ac_uD=',;t'
14254
14255for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
252b5132 14256 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42ecbf5e
DJ
14257 case $ac_file in
14258 - | *:- | *:-:* ) # input from stdin
14259 cat >$tmp/stdin
14260 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14261 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14262 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14263 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14264 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
14265 esac
14266
42ecbf5e
DJ
14267 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
14268echo "$as_me: creating $ac_file" >&6;}
14269
14270 # First look for the input files in the build tree, otherwise in the
14271 # src tree.
14272 ac_file_inputs=`IFS=:
14273 for f in $ac_file_in; do
14274 case $f in
14275 -) echo $tmp/stdin ;;
14276 [\\/$]*)
14277 # Absolute (can't be DOS-style, as IFS=:)
14278 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14279echo "$as_me: error: cannot find input file: $f" >&2;}
14280 { (exit 1); exit 1; }; }
14281 # Do quote $f, to prevent DOS paths from being IFS'd.
14282 echo "$f";;
14283 *) # Relative
14284 if test -f "$f"; then
14285 # Build tree
14286 echo "$f"
14287 elif test -f "$srcdir/$f"; then
14288 # Source tree
14289 echo "$srcdir/$f"
14290 else
14291 # /dev/null tree
14292 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14293echo "$as_me: error: cannot find input file: $f" >&2;}
14294 { (exit 1); exit 1; }; }
14295 fi;;
14296 esac
14297 done` || { (exit 1); exit 1; }
14298 # Remove the trailing spaces.
14299 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
14300
14301_ACEOF
14302
14303# Transform confdefs.h into two sed scripts, `conftest.defines' and
14304# `conftest.undefs', that substitutes the proper values into
14305# config.h.in to produce config.h. The first handles `#define'
14306# templates, and the second `#undef' templates.
14307# And first: Protect against being on the right side of a sed subst in
14308# config.status. Protect against being in an unquoted here document
14309# in config.status.
14310rm -f conftest.defines conftest.undefs
14311# Using a here document instead of a string reduces the quoting nightmare.
14312# Putting comments in sed scripts is not portable.
14313#
14314# `end' is used to avoid that the second main sed command (meant for
14315# 0-ary CPP macros) applies to n-ary macro definitions.
14316# See the Autoconf documentation for `clear'.
14317cat >confdef2sed.sed <<\_ACEOF
14318s/[\\&,]/\\&/g
14319s,[\\$`],\\&,g
14320t clear
14321: clear
14322s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
14323t end
14324s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
14325: end
14326_ACEOF
14327# If some macros were called several times there might be several times
14328# the same #defines, which is useless. Nevertheless, we may not want to
14329# sort them, since we want the *last* AC-DEFINE to be honored.
14330uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
14331sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
14332rm -f confdef2sed.sed
252b5132
RH
14333
14334# This sed command replaces #undef with comments. This is necessary, for
14335# example, in the case of _POSIX_SOURCE, which is predefined and required
14336# on some systems where configure will not decide to define it.
42ecbf5e
DJ
14337cat >>conftest.undefs <<\_ACEOF
14338s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
14339_ACEOF
14340
14341# Break up conftest.defines because some shells have a limit on the size
14342# of here documents, and old seds have small limits too (100 cmds).
14343echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
14344echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
14345echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
14346echo ' :' >>$CONFIG_STATUS
14347rm -f conftest.tail
14348while grep . conftest.defines >/dev/null
14349do
14350 # Write a limited-size here document to $tmp/defines.sed.
14351 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
14352 # Speed up: don't consider the non `#define' lines.
14353 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
14354 # Work around the forget-to-reset-the-flag bug.
14355 echo 't clr' >>$CONFIG_STATUS
14356 echo ': clr' >>$CONFIG_STATUS
14357 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
14358 echo 'CEOF
14359 sed -f $tmp/defines.sed $tmp/in >$tmp/out
14360 rm -f $tmp/in
14361 mv $tmp/out $tmp/in
14362' >>$CONFIG_STATUS
14363 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
14364 rm -f conftest.defines
14365 mv conftest.tail conftest.defines
14366done
14367rm -f conftest.defines
14368echo ' fi # grep' >>$CONFIG_STATUS
14369echo >>$CONFIG_STATUS
252b5132 14370
42ecbf5e
DJ
14371# Break up conftest.undefs because some shells have a limit on the size
14372# of here documents, and old seds have small limits too (100 cmds).
14373echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
252b5132 14374rm -f conftest.tail
42ecbf5e 14375while grep . conftest.undefs >/dev/null
252b5132 14376do
42ecbf5e
DJ
14377 # Write a limited-size here document to $tmp/undefs.sed.
14378 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
14379 # Speed up: don't consider the non `#undef'
14380 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
14381 # Work around the forget-to-reset-the-flag bug.
14382 echo 't clr' >>$CONFIG_STATUS
14383 echo ': clr' >>$CONFIG_STATUS
14384 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
252b5132 14385 echo 'CEOF
42ecbf5e
DJ
14386 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
14387 rm -f $tmp/in
14388 mv $tmp/out $tmp/in
14389' >>$CONFIG_STATUS
14390 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
14391 rm -f conftest.undefs
14392 mv conftest.tail conftest.undefs
252b5132 14393done
42ecbf5e
DJ
14394rm -f conftest.undefs
14395
14396cat >>$CONFIG_STATUS <<\_ACEOF
14397 # Let's still pretend it is `configure' which instantiates (i.e., don't
14398 # use $as_me), people would be surprised to read:
14399 # /* config.h. Generated by config.status. */
14400 if test x"$ac_file" = x-; then
14401 echo "/* Generated by configure. */" >$tmp/config.h
252b5132 14402 else
42ecbf5e
DJ
14403 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
14404 fi
14405 cat $tmp/in >>$tmp/config.h
14406 rm -f $tmp/in
14407 if test x"$ac_file" != x-; then
14408 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
14409 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14410echo "$as_me: $ac_file is unchanged" >&6;}
14411 else
14412 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14413$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14414 X"$ac_file" : 'X\(//\)[^/]' \| \
14415 X"$ac_file" : 'X\(//\)$' \| \
14416 X"$ac_file" : 'X\(/\)' \| \
14417 . : '\(.\)' 2>/dev/null ||
14418echo X"$ac_file" |
14419 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14420 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14421 /^X\(\/\/\)$/{ s//\1/; q; }
14422 /^X\(\/\).*/{ s//\1/; q; }
14423 s/.*/./; q'`
14424 { if $as_mkdir_p; then
14425 mkdir -p "$ac_dir"
14426 else
14427 as_dir="$ac_dir"
14428 as_dirs=
14429 while test ! -d "$as_dir"; do
14430 as_dirs="$as_dir $as_dirs"
14431 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14432$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14433 X"$as_dir" : 'X\(//\)[^/]' \| \
14434 X"$as_dir" : 'X\(//\)$' \| \
14435 X"$as_dir" : 'X\(/\)' \| \
14436 . : '\(.\)' 2>/dev/null ||
14437echo X"$as_dir" |
14438 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14439 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14440 /^X\(\/\/\)$/{ s//\1/; q; }
14441 /^X\(\/\).*/{ s//\1/; q; }
14442 s/.*/./; q'`
14443 done
14444 test ! -n "$as_dirs" || mkdir $as_dirs
14445 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14446echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14447 { (exit 1); exit 1; }; }; }
14448
14449 rm -f $ac_file
14450 mv $tmp/config.h $ac_file
252b5132 14451 fi
42ecbf5e
DJ
14452 else
14453 cat $tmp/config.h
14454 rm -f $tmp/config.h
e5a52504 14455 fi
42ecbf5e
DJ
14456# Compute $ac_file's index in $config_headers.
14457_am_stamp_count=1
14458for _am_header in $config_headers :; do
14459 case $_am_header in
14460 $ac_file | $ac_file:* )
14461 break ;;
14462 * )
14463 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14464 esac
14465done
14466echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
14467$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14468 X$ac_file : 'X\(//\)[^/]' \| \
14469 X$ac_file : 'X\(//\)$' \| \
14470 X$ac_file : 'X\(/\)' \| \
14471 . : '\(.\)' 2>/dev/null ||
14472echo X$ac_file |
14473 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14474 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14475 /^X\(\/\/\)$/{ s//\1/; q; }
14476 /^X\(\/\).*/{ s//\1/; q; }
14477 s/.*/./; q'`/stamp-h$_am_stamp_count
14478done
14479_ACEOF
14480cat >>$CONFIG_STATUS <<\_ACEOF
e5a52504 14481
42ecbf5e
DJ
14482#
14483# CONFIG_COMMANDS section.
14484#
14485for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
14486 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
14487 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
14488 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
14489$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14490 X"$ac_dest" : 'X\(//\)[^/]' \| \
14491 X"$ac_dest" : 'X\(//\)$' \| \
14492 X"$ac_dest" : 'X\(/\)' \| \
14493 . : '\(.\)' 2>/dev/null ||
14494echo X"$ac_dest" |
14495 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14496 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14497 /^X\(\/\/\)$/{ s//\1/; q; }
14498 /^X\(\/\).*/{ s//\1/; q; }
14499 s/.*/./; q'`
14500 { if $as_mkdir_p; then
14501 mkdir -p "$ac_dir"
14502 else
14503 as_dir="$ac_dir"
14504 as_dirs=
14505 while test ! -d "$as_dir"; do
14506 as_dirs="$as_dir $as_dirs"
14507 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14508$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14509 X"$as_dir" : 'X\(//\)[^/]' \| \
14510 X"$as_dir" : 'X\(//\)$' \| \
14511 X"$as_dir" : 'X\(/\)' \| \
14512 . : '\(.\)' 2>/dev/null ||
14513echo X"$as_dir" |
14514 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14515 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14516 /^X\(\/\/\)$/{ s//\1/; q; }
14517 /^X\(\/\).*/{ s//\1/; q; }
14518 s/.*/./; q'`
14519 done
14520 test ! -n "$as_dirs" || mkdir $as_dirs
14521 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14522echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14523 { (exit 1); exit 1; }; }; }
e5a52504 14524
42ecbf5e 14525 ac_builddir=.
e5a52504 14526
42ecbf5e
DJ
14527if test "$ac_dir" != .; then
14528 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14529 # A "../" for each directory in $ac_dir_suffix.
14530 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14531else
14532 ac_dir_suffix= ac_top_builddir=
14533fi
14534
14535case $srcdir in
14536 .) # No --srcdir option. We are building in place.
14537 ac_srcdir=.
14538 if test -z "$ac_top_builddir"; then
14539 ac_top_srcdir=.
14540 else
14541 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14542 fi ;;
14543 [\\/]* | ?:[\\/]* ) # Absolute path.
14544 ac_srcdir=$srcdir$ac_dir_suffix;
14545 ac_top_srcdir=$srcdir ;;
14546 *) # Relative path.
14547 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14548 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14549esac
14550
14551# Do not use `cd foo && pwd` to compute absolute paths, because
14552# the directories may not exist.
14553case `pwd` in
14554.) ac_abs_builddir="$ac_dir";;
14555*)
14556 case "$ac_dir" in
14557 .) ac_abs_builddir=`pwd`;;
14558 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14559 *) ac_abs_builddir=`pwd`/"$ac_dir";;
14560 esac;;
14561esac
14562case $ac_abs_builddir in
14563.) ac_abs_top_builddir=${ac_top_builddir}.;;
14564*)
14565 case ${ac_top_builddir}. in
14566 .) ac_abs_top_builddir=$ac_abs_builddir;;
14567 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14568 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14569 esac;;
14570esac
14571case $ac_abs_builddir in
14572.) ac_abs_srcdir=$ac_srcdir;;
14573*)
14574 case $ac_srcdir in
14575 .) ac_abs_srcdir=$ac_abs_builddir;;
14576 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14577 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14578 esac;;
14579esac
14580case $ac_abs_builddir in
14581.) ac_abs_top_srcdir=$ac_top_srcdir;;
14582*)
14583 case $ac_top_srcdir in
14584 .) ac_abs_top_srcdir=$ac_abs_builddir;;
14585 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14586 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14587 esac;;
14588esac
14589
14590
14591 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
14592echo "$as_me: executing $ac_dest commands" >&6;}
14593 case $ac_dest in
14594 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
14595 # Strip MF so we end up with the name of the file.
14596 mf=`echo "$mf" | sed -e 's/:.*$//'`
14597 # Check whether this is an Automake generated Makefile or not.
14598 # We used to match only the files named `Makefile.in', but
14599 # some people rename them; so instead we look at the file content.
14600 # Grep'ing the first line is not enough: some people post-process
14601 # each Makefile.in and add a new line on top of each file to say so.
14602 # So let's grep whole file.
14603 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
14604 dirpart=`(dirname "$mf") 2>/dev/null ||
14605$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14606 X"$mf" : 'X\(//\)[^/]' \| \
14607 X"$mf" : 'X\(//\)$' \| \
14608 X"$mf" : 'X\(/\)' \| \
14609 . : '\(.\)' 2>/dev/null ||
14610echo X"$mf" |
14611 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14612 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14613 /^X\(\/\/\)$/{ s//\1/; q; }
14614 /^X\(\/\).*/{ s//\1/; q; }
14615 s/.*/./; q'`
14616 else
14617 continue
14618 fi
14619 # Extract the definition of DEPDIR, am__include, and am__quote
14620 # from the Makefile without running `make'.
14621 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14622 test -z "$DEPDIR" && continue
14623 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14624 test -z "am__include" && continue
14625 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14626 # When using ansi2knr, U may be empty or an underscore; expand it
14627 U=`sed -n 's/^U = //p' < "$mf"`
14628 # Find all dependency output files, they are included files with
14629 # $(DEPDIR) in their names. We invoke sed twice because it is the
14630 # simplest approach to changing $(DEPDIR) to its actual value in the
14631 # expansion.
14632 for file in `sed -n "
14633 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14634 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14635 # Make sure the directory exists.
14636 test -f "$dirpart/$file" && continue
14637 fdir=`(dirname "$file") 2>/dev/null ||
14638$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14639 X"$file" : 'X\(//\)[^/]' \| \
14640 X"$file" : 'X\(//\)$' \| \
14641 X"$file" : 'X\(/\)' \| \
14642 . : '\(.\)' 2>/dev/null ||
14643echo X"$file" |
14644 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14645 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14646 /^X\(\/\/\)$/{ s//\1/; q; }
14647 /^X\(\/\).*/{ s//\1/; q; }
14648 s/.*/./; q'`
14649 { if $as_mkdir_p; then
14650 mkdir -p $dirpart/$fdir
14651 else
14652 as_dir=$dirpart/$fdir
14653 as_dirs=
14654 while test ! -d "$as_dir"; do
14655 as_dirs="$as_dir $as_dirs"
14656 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14657$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14658 X"$as_dir" : 'X\(//\)[^/]' \| \
14659 X"$as_dir" : 'X\(//\)$' \| \
14660 X"$as_dir" : 'X\(/\)' \| \
14661 . : '\(.\)' 2>/dev/null ||
14662echo X"$as_dir" |
14663 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14664 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14665 /^X\(\/\/\)$/{ s//\1/; q; }
14666 /^X\(\/\).*/{ s//\1/; q; }
14667 s/.*/./; q'`
14668 done
14669 test ! -n "$as_dirs" || mkdir $as_dirs
14670 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
14671echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
14672 { (exit 1); exit 1; }; }; }
14673
14674 # echo "creating $dirpart/$file"
14675 echo '# dummy' > "$dirpart/$file"
14676 done
14677done
d7040cdb
SE
14678 ;;
14679 libtool )
14680
14681 # See if we are running on zsh, and set the options which allow our
14682 # commands through without removal of \ escapes.
14683 if test -n "${ZSH_VERSION+set}" ; then
14684 setopt NO_GLOB_SUBST
14685 fi
14686
14687 cfgfile="${ofile}T"
14688 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14689 $RM "$cfgfile"
14690
14691 cat <<_LT_EOF >> "$cfgfile"
14692#! $SHELL
14693
14694# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14695# Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
14696# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14697# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14698#
14699# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14700# 2006, 2007 Free Software Foundation, Inc.
14701#
14702# This file is part of GNU Libtool:
14703# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14704#
14705# This program is free software; you can redistribute it and/or modify
14706# it under the terms of the GNU General Public License as published by
67310ccd 14707# the Free Software Foundation; either version 2 of the License, or
d7040cdb
SE
14708# (at your option) any later version.
14709#
14710# This program is distributed in the hope that it will be useful, but
14711# WITHOUT ANY WARRANTY; without even the implied warranty of
14712# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14713# General Public License for more details.
14714#
14715# You should have received a copy of the GNU General Public License
14716# along with this program; if not, a copy can be downloaded from
14717# http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
14718# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
14719# MA 02110-1301, USA.
14720#
14721# As a special exception to the GNU General Public License, if you
14722# distribute this file as part of a program that contains a
14723# configuration script generated by Autoconf, you may include it under
14724# the same distribution terms that you use for the rest of that program.
14725
14726
14727# The names of the tagged configurations supported by this script.
14728available_tags=""
14729
14730# ### BEGIN LIBTOOL CONFIG
14731
14732# Which release of libtool.m4 was used?
14733macro_version=$macro_version
14734macro_revision=$macro_revision
14735
14736# Whether or not to build shared libraries.
14737build_libtool_libs=$enable_shared
14738
14739# Whether or not to build static libraries.
14740build_old_libs=$enable_static
14741
14742# What type of objects to build.
14743pic_mode=$pic_mode
14744
14745# Whether or not to optimize for fast installation.
14746fast_install=$enable_fast_install
14747
14748# The host system.
14749host_alias=$host_alias
14750host=$host
14751host_os=$host_os
14752
14753# The build system.
14754build_alias=$build_alias
14755build=$build
14756build_os=$build_os
14757
14758# A sed program that does not truncate output.
14759SED=$lt_SED
14760
14761# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14762Xsed="\$SED -e 1s/^X//"
14763
14764# A grep program that handles long lines.
14765GREP=$lt_GREP
14766
14767# An ERE matcher.
14768EGREP=$lt_EGREP
14769
14770# A literal string matcher.
14771FGREP=$lt_FGREP
14772
14773# A BSD- or MS-compatible name lister.
14774NM=$lt_NM
14775
14776# Whether we need soft or hard links.
14777LN_S=$lt_LN_S
14778
14779# What is the maximum length of a command?
14780max_cmd_len=$max_cmd_len
14781
14782# Object file suffix (normally "o").
14783objext=$ac_objext
14784
14785# Executable file suffix (normally "").
14786exeext=$exeext
14787
14788# whether the shell understands "unset".
14789lt_unset=$lt_unset
14790
14791# turn spaces into newlines.
14792SP2NL=$lt_lt_SP2NL
14793
14794# turn newlines into spaces.
14795NL2SP=$lt_lt_NL2SP
14796
14797# How to create reloadable object files.
14798reload_flag=$lt_reload_flag
14799reload_cmds=$lt_reload_cmds
14800
14801# Method to check whether dependent libraries are shared objects.
14802deplibs_check_method=$lt_deplibs_check_method
14803
14804# Command to use when deplibs_check_method == "file_magic".
14805file_magic_cmd=$lt_file_magic_cmd
14806
14807# The archiver.
14808AR=$lt_AR
14809AR_FLAGS=$lt_AR_FLAGS
14810
14811# A symbol stripping program.
14812STRIP=$lt_STRIP
14813
14814# Commands used to install an old-style archive.
14815RANLIB=$lt_RANLIB
14816old_postinstall_cmds=$lt_old_postinstall_cmds
14817old_postuninstall_cmds=$lt_old_postuninstall_cmds
14818
14819# A C compiler.
14820LTCC=$lt_CC
14821
14822# LTCC compiler flags.
14823LTCFLAGS=$lt_CFLAGS
14824
14825# Take the output of nm and produce a listing of raw symbols and C names.
14826global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14827
14828# Transform the output of nm in a proper C declaration.
14829global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14830
14831# Transform the output of nm in a C name address pair.
14832global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14833
14834# The name of the directory that contains temporary libtool files.
14835objdir=$objdir
14836
14837# Shell to use when invoking shell scripts.
14838SHELL=$lt_SHELL
14839
14840# An echo program that does not interpret backslashes.
14841ECHO=$lt_ECHO
14842
14843# Used to examine libraries when file_magic_cmd begins with "file".
14844MAGIC_CMD=$MAGIC_CMD
14845
14846# Must we lock files when doing compilation?
14847need_locks=$lt_need_locks
14848
14849# Old archive suffix (normally "a").
14850libext=$libext
14851
14852# Shared library suffix (normally ".so").
14853shrext_cmds=$lt_shrext_cmds
14854
14855# The commands to extract the exported symbol list from a shared archive.
14856extract_expsyms_cmds=$lt_extract_expsyms_cmds
14857
14858# Variables whose values should be saved in libtool wrapper scripts and
14859# restored at link time.
14860variables_saved_for_relink=$lt_variables_saved_for_relink
14861
14862# Do we need the "lib" prefix for modules?
14863need_lib_prefix=$need_lib_prefix
14864
14865# Do we need a version for libraries?
14866need_version=$need_version
14867
14868# Library versioning type.
14869version_type=$version_type
14870
14871# Shared library runtime path variable.
14872runpath_var=$runpath_var
14873
14874# Shared library path variable.
14875shlibpath_var=$shlibpath_var
14876
14877# Is shlibpath searched before the hard-coded library search path?
14878shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14879
14880# Format of library name prefix.
14881libname_spec=$lt_libname_spec
14882
14883# List of archive names. First name is the real one, the rest are links.
14884# The last name is the one that the linker finds with -lNAME
14885library_names_spec=$lt_library_names_spec
14886
14887# The coded name of the library, if different from the real name.
14888soname_spec=$lt_soname_spec
14889
14890# Command to use after installation of a shared archive.
14891postinstall_cmds=$lt_postinstall_cmds
14892
14893# Command to use after uninstallation of a shared archive.
14894postuninstall_cmds=$lt_postuninstall_cmds
14895
14896# Commands used to finish a libtool library installation in a directory.
14897finish_cmds=$lt_finish_cmds
14898
14899# As "finish_cmds", except a single script fragment to be evaled but
14900# not shown.
14901finish_eval=$lt_finish_eval
14902
14903# Whether we should hardcode library paths into libraries.
14904hardcode_into_libs=$hardcode_into_libs
14905
14906# Compile-time system search path for libraries.
14907sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14908
14909# Run-time system search path for libraries.
14910sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14911
14912# Whether dlopen is supported.
14913dlopen_support=$enable_dlopen
14914
14915# Whether dlopen of programs is supported.
14916dlopen_self=$enable_dlopen_self
14917
14918# Whether dlopen of statically linked programs is supported.
14919dlopen_self_static=$enable_dlopen_self_static
14920
14921# Commands to strip libraries.
14922old_striplib=$lt_old_striplib
14923striplib=$lt_striplib
14924
14925
14926# The linker used to build libraries.
14927LD=$lt_LD
14928
14929# Commands used to build an old-style archive.
14930old_archive_cmds=$lt_old_archive_cmds
14931
14932# A language specific compiler.
14933CC=$lt_compiler
14934
14935# Is the compiler the GNU compiler?
14936with_gcc=$GCC
14937
14938# Compiler flag to turn off builtin functions.
14939no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14940
14941# How to pass a linker flag through the compiler.
14942wl=$lt_lt_prog_compiler_wl
14943
14944# Additional compiler flags for building library objects.
14945pic_flag=$lt_lt_prog_compiler_pic
14946
14947# Compiler flag to prevent dynamic linking.
14948link_static_flag=$lt_lt_prog_compiler_static
14949
14950# Does compiler simultaneously support -c and -o options?
14951compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14952
14953# Whether or not to add -lc for building shared libraries.
14954build_libtool_need_lc=$archive_cmds_need_lc
14955
14956# Whether or not to disallow shared libs when runtime libs are static.
14957allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14958
14959# Compiler flag to allow reflexive dlopens.
14960export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14961
14962# Compiler flag to generate shared objects directly from archives.
14963whole_archive_flag_spec=$lt_whole_archive_flag_spec
14964
14965# Whether the compiler copes with passing no objects directly.
14966compiler_needs_object=$lt_compiler_needs_object
14967
14968# Create an old-style archive from a shared archive.
14969old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14970
14971# Create a temporary old-style archive to link instead of a shared archive.
14972old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14973
14974# Commands used to build a shared archive.
14975archive_cmds=$lt_archive_cmds
14976archive_expsym_cmds=$lt_archive_expsym_cmds
14977
14978# Commands used to build a loadable module if different from building
14979# a shared archive.
14980module_cmds=$lt_module_cmds
14981module_expsym_cmds=$lt_module_expsym_cmds
14982
14983# Whether we are building with GNU ld or not.
14984with_gnu_ld=$lt_with_gnu_ld
14985
14986# Flag that allows shared libraries with undefined symbols to be built.
14987allow_undefined_flag=$lt_allow_undefined_flag
14988
14989# Flag that enforces no undefined symbols.
14990no_undefined_flag=$lt_no_undefined_flag
14991
14992# Flag to hardcode \$libdir into a binary during linking.
14993# This must work even if \$libdir does not exist
14994hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14995
14996# If ld is used when linking, flag to hardcode \$libdir into a binary
14997# during linking. This must work even if \$libdir does not exist.
14998hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14999
15000# Whether we need a single "-rpath" flag with a separated argument.
15001hardcode_libdir_separator=$lt_hardcode_libdir_separator
15002
15003# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15004# DIR into the resulting binary.
15005hardcode_direct=$hardcode_direct
15006
15007# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15008# DIR into the resulting binary and the resulting library dependency is
15009# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15010# library is relocated.
15011hardcode_direct_absolute=$hardcode_direct_absolute
15012
15013# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15014# into the resulting binary.
15015hardcode_minus_L=$hardcode_minus_L
15016
15017# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15018# into the resulting binary.
15019hardcode_shlibpath_var=$hardcode_shlibpath_var
15020
15021# Set to "yes" if building a shared library automatically hardcodes DIR
15022# into the library and all subsequent libraries and executables linked
15023# against it.
15024hardcode_automatic=$hardcode_automatic
15025
15026# Set to yes if linker adds runtime paths of dependent libraries
15027# to runtime path list.
15028inherit_rpath=$inherit_rpath
15029
15030# Whether libtool must link a program against all its dependency libraries.
15031link_all_deplibs=$link_all_deplibs
15032
15033# Fix the shell variable \$srcfile for the compiler.
15034fix_srcfile_path=$lt_fix_srcfile_path
15035
15036# Set to "yes" if exported symbols are required.
15037always_export_symbols=$always_export_symbols
15038
15039# The commands to list exported symbols.
15040export_symbols_cmds=$lt_export_symbols_cmds
15041
15042# Symbols that should not be listed in the preloaded symbols.
15043exclude_expsyms=$lt_exclude_expsyms
15044
15045# Symbols that must always be exported.
15046include_expsyms=$lt_include_expsyms
15047
15048# Commands necessary for linking programs (against libraries) with templates.
15049prelink_cmds=$lt_prelink_cmds
15050
15051# Specify filename containing input files.
15052file_list_spec=$lt_file_list_spec
15053
15054# How to hardcode a shared library path into an executable.
15055hardcode_action=$hardcode_action
15056
15057# ### END LIBTOOL CONFIG
15058
15059_LT_EOF
15060
15061 case $host_os in
15062 aix3*)
15063 cat <<\_LT_EOF >> "$cfgfile"
15064# AIX sometimes has problems with the GCC collect2 program. For some
15065# reason, if we set the COLLECT_NAMES environment variable, the problems
15066# vanish in a puff of smoke.
15067if test "X${COLLECT_NAMES+set}" != Xset; then
15068 COLLECT_NAMES=
15069 export COLLECT_NAMES
15070fi
15071_LT_EOF
15072 ;;
15073 esac
15074
15075
15076ltmain="$ac_aux_dir/ltmain.sh"
15077
15078
15079 # We use sed instead of cat because bash on DJGPP gets confused if
15080 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15081 # text mode, it properly converts lines to CR/LF. This bash problem
15082 # is reportedly fixed, but why not run on old versions too?
15083 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15084 || (rm -f "$cfgfile"; exit 1)
15085
15086 case $xsi_shell in
15087 yes)
15088 cat << \_LT_EOF >> "$cfgfile"
15089# func_dirname file append nondir_replacement
15090# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15091# otherwise set result to NONDIR_REPLACEMENT.
15092func_dirname ()
15093{
15094 case ${1} in
15095 */*) func_dirname_result="${1%/*}${2}" ;;
15096 * ) func_dirname_result="${3}" ;;
15097 esac
15098}
15099
15100# func_basename file
15101func_basename ()
15102{
15103 func_basename_result="${1##*/}"
15104}
15105
15106# func_stripname prefix suffix name
15107# strip PREFIX and SUFFIX off of NAME.
15108# PREFIX and SUFFIX must not contain globbing or regex special
15109# characters, hashes, percent signs, but SUFFIX may contain a leading
15110# dot (in which case that matches only a dot).
15111func_stripname ()
15112{
15113 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15114 # positional parameters, so assign one to ordinary parameter first.
15115 func_stripname_result=${3}
15116 func_stripname_result=${func_stripname_result#"${1}"}
15117 func_stripname_result=${func_stripname_result%"${2}"}
15118}
15119
15120# func_opt_split
15121func_opt_split ()
15122{
15123 func_opt_split_opt=${1%%=*}
15124 func_opt_split_arg=${1#*=}
15125}
15126
15127# func_lo2o object
15128func_lo2o ()
15129{
15130 case ${1} in
15131 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15132 *) func_lo2o_result=${1} ;;
15133 esac
15134}
15135_LT_EOF
15136 ;;
15137 *) # Bourne compatible functions.
15138 cat << \_LT_EOF >> "$cfgfile"
15139# func_dirname file append nondir_replacement
15140# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15141# otherwise set result to NONDIR_REPLACEMENT.
15142func_dirname ()
15143{
15144 # Extract subdirectory from the argument.
15145 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15146 if test "X$func_dirname_result" = "X${1}"; then
15147 func_dirname_result="${3}"
15148 else
15149 func_dirname_result="$func_dirname_result${2}"
15150 fi
15151}
15152
15153# func_basename file
15154func_basename ()
15155{
15156 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15157}
15158
15159# func_stripname prefix suffix name
15160# strip PREFIX and SUFFIX off of NAME.
15161# PREFIX and SUFFIX must not contain globbing or regex special
15162# characters, hashes, percent signs, but SUFFIX may contain a leading
15163# dot (in which case that matches only a dot).
15164# func_strip_suffix prefix name
15165func_stripname ()
15166{
15167 case ${2} in
15168 .*) func_stripname_result=`$ECHO "X${3}" \
15169 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15170 *) func_stripname_result=`$ECHO "X${3}" \
15171 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15172 esac
15173}
15174
15175# sed scripts:
15176my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15177my_sed_long_arg='1s/^-[^=]*=//'
15178
15179# func_opt_split
15180func_opt_split ()
15181{
15182 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15183 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15184}
15185
15186# func_lo2o object
15187func_lo2o ()
15188{
15189 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15190}
15191_LT_EOF
15192esac
15193
15194case $lt_shell_append in
15195 yes)
15196 cat << \_LT_EOF >> "$cfgfile"
15197
15198# func_append var value
15199# Append VALUE to the end of shell variable VAR.
15200func_append ()
15201{
15202 eval "$1+=\$2"
15203}
15204_LT_EOF
15205 ;;
15206 *)
15207 cat << \_LT_EOF >> "$cfgfile"
15208
15209# func_append var value
15210# Append VALUE to the end of shell variable VAR.
15211func_append ()
15212{
15213 eval "$1=\$$1\$2"
15214}
15215_LT_EOF
15216 ;;
15217 esac
15218
15219
15220 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15221 || (rm -f "$cfgfile"; exit 1)
15222
15223 mv -f "$cfgfile" "$ofile" ||
15224 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15225 chmod +x "$ofile"
15226
42ecbf5e 15227 ;;
20e95c23
DJ
15228 default-1 )
15229 for ac_file in $CONFIG_FILES; do
15230 # Support "outfile[:infile[:infile...]]"
15231 case "$ac_file" in
15232 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15233 esac
15234 # PO directories have a Makefile.in generated from Makefile.in.in.
15235 case "$ac_file" in */Makefile.in)
15236 # Adjust a relative srcdir.
15237 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15238 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
15239 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15240 # In autoconf-2.13 it is called $ac_given_srcdir.
15241 # In autoconf-2.50 it is called $srcdir.
15242 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15243 case "$ac_given_srcdir" in
15244 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15245 /*) top_srcdir="$ac_given_srcdir" ;;
15246 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
15247 esac
15248 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15249 rm -f "$ac_dir/POTFILES"
15250 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15251 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
15252 POMAKEFILEDEPS="POTFILES.in"
15253 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
15254 # on $ac_dir but don't depend on user-specified configuration
15255 # parameters.
15256 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15257 # The LINGUAS file contains the set of available languages.
15258 if test -n "$OBSOLETE_ALL_LINGUAS"; then
15259 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15260 fi
15261 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15262 # Hide the ALL_LINGUAS assigment from automake.
15263 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15264 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15265 else
15266 # The set of available languages was given in configure.in.
15267 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15268 fi
15269 case "$ac_given_srcdir" in
15270 .) srcdirpre= ;;
15271 *) srcdirpre='$(srcdir)/' ;;
15272 esac
15273 POFILES=
15274 GMOFILES=
15275 UPDATEPOFILES=
15276 DUMMYPOFILES=
15277 for lang in $ALL_LINGUAS; do
15278 POFILES="$POFILES $srcdirpre$lang.po"
15279 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
15280 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15281 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
15282 done
15283 # CATALOGS depends on both $ac_dir and the user's LINGUAS
15284 # environment variable.
15285 INST_LINGUAS=
15286 if test -n "$ALL_LINGUAS"; then
15287 for presentlang in $ALL_LINGUAS; do
15288 useit=no
15289 if test "%UNSET%" != "$LINGUAS"; then
15290 desiredlanguages="$LINGUAS"
15291 else
15292 desiredlanguages="$ALL_LINGUAS"
15293 fi
15294 for desiredlang in $desiredlanguages; do
15295 # Use the presentlang catalog if desiredlang is
15296 # a. equal to presentlang, or
15297 # b. a variant of presentlang (because in this case,
15298 # presentlang can be used as a fallback for messages
15299 # which are not translated in the desiredlang catalog).
15300 case "$desiredlang" in
15301 "$presentlang"*) useit=yes;;
15302 esac
15303 done
15304 if test $useit = yes; then
15305 INST_LINGUAS="$INST_LINGUAS $presentlang"
15306 fi
15307 done
15308 fi
15309 CATALOGS=
15310 if test -n "$INST_LINGUAS"; then
15311 for lang in $INST_LINGUAS; do
15312 CATALOGS="$CATALOGS $lang.gmo"
15313 done
15314 fi
15315 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
15316 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"
15317 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15318 if test -f "$f"; then
15319 case "$f" in
15320 *.orig | *.bak | *~) ;;
15321 *) cat "$f" >> "$ac_dir/Makefile" ;;
15322 esac
15323 fi
15324 done
15325 fi
15326 ;;
15327 esac
15328 done ;;
42ecbf5e
DJ
15329 esac
15330done
15331_ACEOF
15332
15333cat >>$CONFIG_STATUS <<\_ACEOF
15334
15335{ (exit 0); exit 0; }
15336_ACEOF
252b5132 15337chmod +x $CONFIG_STATUS
42ecbf5e
DJ
15338ac_clean_files=$ac_clean_files_save
15339
15340
15341# configure is writing to config.log, and then calls config.status.
15342# config.status does its own redirection, appending to config.log.
15343# Unfortunately, on DOS this fails, as config.log is still kept open
15344# by configure, so config.status won't be able to write to it; its
15345# output is simply discarded. So we exec the FD to /dev/null,
15346# effectively closing config.log, so it can be properly (re)opened and
15347# appended to by config.status. When coming back to configure, we
15348# need to make the FD available again.
15349if test "$no_create" != yes; then
15350 ac_cs_success=:
15351 ac_config_status_args=
15352 test "$silent" = yes &&
15353 ac_config_status_args="$ac_config_status_args --quiet"
15354 exec 5>/dev/null
15355 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15356 exec 5>>config.log
15357 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15358 # would make configure fail if this is the last instruction.
15359 $ac_cs_success || { (exit 1); exit 1; }
15360fi
252b5132 15361
This page took 1.160624 seconds and 4 git commands to generate.