* config/tc-hppa.h: Don't define DWARF2_EH_FRAME_READ_ONLY on Linux
[deliverable/binutils-gdb.git] / gas / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
ab509236 3# Generated by GNU Autoconf 2.59.
252b5132 4#
ab509236 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.
13b2be9c
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
ab509236 22DUALCASE=1; export DUALCASE # for MKS sh
13b2be9c
DJ
23
24# Support unset when possible.
ab509236 25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13b2be9c
DJ
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
ab509236 44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13b2be9c
DJ
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
ab509236 221 test -d ./-p && rmdir ./-p
13b2be9c
DJ
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.
ab509236 228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13b2be9c
DJ
229
230# Sed expression to map a string onto a valid variable name.
ab509236 231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13b2be9c
DJ
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
13b2be9c
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
13b2be9c
DJ
398exec 6>&1
399
400#
401# Initializations.
402#
252b5132 403ac_default_prefix=/usr/local
13b2be9c
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="as.h"
424# Factoring default headers for most tests.
425ac_includes_default="\
426#include <stdio.h>
427#if HAVE_SYS_TYPES_H
428# include <sys/types.h>
429#endif
430#if HAVE_SYS_STAT_H
431# include <sys/stat.h>
432#endif
433#if STDC_HEADERS
434# include <stdlib.h>
435# include <stddef.h>
436#else
437# if HAVE_STDLIB_H
438# include <stdlib.h>
439# endif
440#endif
441#if HAVE_STRING_H
442# if !STDC_HEADERS && HAVE_MEMORY_H
443# include <memory.h>
444# endif
445# include <string.h>
446#endif
447#if HAVE_STRINGS_H
448# include <strings.h>
449#endif
450#if HAVE_INTTYPES_H
451# include <inttypes.h>
452#else
453# if HAVE_STDINT_H
454# include <stdint.h>
455# endif
456#endif
457#if HAVE_UNISTD_H
458# include <unistd.h>
459#endif"
460
7357c5b6 461ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP LIBTOOL SED FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO WARN_CFLAGS NO_WERROR GDBINIT cgen_cpu_prefix extra_objects target_cpu_type obj_format te_file install_tooldir atof OPCODES_LIB YACC LEX LEXLIB LEX_OUTPUT_ROOT USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GENINSRC_NEVER_TRUE GENINSRC_NEVER_FALSE ALLOCA LIBM datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
13b2be9c 462ac_subst_files=''
7a283e07 463ac_pwd=`pwd`
252b5132
RH
464
465# Initialize some variables set by options.
13b2be9c
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.
13b2be9c 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
13b2be9c
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
13b2be9c 513 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
252b5132
RH
514
515 # Accept the important Cygnus configure options, so we can diagnose typos.
516
13b2be9c 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=*)
13b2be9c 522 bindir=$ac_optarg ;;
252b5132
RH
523
524 -build | --build | --buil | --bui | --bu)
13b2be9c 525 ac_prev=build_alias ;;
252b5132 526 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
13b2be9c 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=*)
13b2be9c
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=*)
13b2be9c 543 datadir=$ac_optarg ;;
252b5132
RH
544
545 -disable-* | --disable-*)
13b2be9c 546 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 547 # Reject names that are not valid shell variable names.
13b2be9c
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-*)
13b2be9c 555 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 556 # Reject names that are not valid shell variable names.
13b2be9c
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
13b2be9c 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=*)
13b2be9c 574 exec_prefix=$ac_optarg ;;
252b5132
RH
575
576 -gas | --gas | --ga | --g)
577 # Obsolete; use --with-gas.
578 with_gas=yes ;;
579
13b2be9c
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)
13b2be9c 588 ac_prev=host_alias ;;
252b5132 589 -host=* | --host=* | --hos=* | --ho=*)
13b2be9c 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=*)
13b2be9c 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=*)
13b2be9c 602 infodir=$ac_optarg ;;
252b5132
RH
603
604 -libdir | --libdir | --libdi | --libd)
605 ac_prev=libdir ;;
606 -libdir=* | --libdir=* | --libdi=* | --libd=*)
13b2be9c 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=*)
13b2be9c 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=*)
13b2be9c 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=*)
13b2be9c 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 \
13b2be9c 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=*)
13b2be9c 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=*)
13b2be9c 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=*)
13b2be9c 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=*)
13b2be9c 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=*)
13b2be9c 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=*)
13b2be9c 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=*)
13b2be9c 706 sharedstatedir=$ac_optarg ;;
252b5132
RH
707
708 -site | --site | --sit)
709 ac_prev=site ;;
710 -site=* | --site=* | --sit=*)
13b2be9c 711 site=$ac_optarg ;;
76bff705 712
252b5132
RH
713 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
714 ac_prev=srcdir ;;
715 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
13b2be9c 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=*)
13b2be9c 723 sysconfdir=$ac_optarg ;;
252b5132
RH
724
725 -target | --target | --targe | --targ | --tar | --ta | --t)
13b2be9c 726 ac_prev=target_alias ;;
252b5132 727 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
13b2be9c 728 target_alias=$ac_optarg ;;
252b5132
RH
729
730 -v | -verbose | --verbose | --verbos | --verbo | --verb)
731 verbose=yes ;;
732
13b2be9c
DJ
733 -version | --version | --versio | --versi | --vers | -V)
734 ac_init_version=: ;;
252b5132
RH
735
736 -with-* | --with-*)
13b2be9c 737 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 738 # Reject names that are not valid shell variable names.
13b2be9c
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'`
13b2be9c
DJ
743 case $ac_option in
744 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252b5132
RH
745 *) ac_optarg=yes ;;
746 esac
13b2be9c 747 eval "with_$ac_package='$ac_optarg'" ;;
252b5132
RH
748
749 -without-* | --without-*)
13b2be9c 750 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 751 # Reject names that are not valid shell variable names.
13b2be9c
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=*)
13b2be9c 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=*)
13b2be9c 774 x_libraries=$ac_optarg ;;
252b5132 775
13b2be9c
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
13b2be9c
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 *)
13b2be9c
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
13b2be9c
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; }; }
c8615825 806fi
c8615825 807
13b2be9c
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
13b2be9c
DJ
819# Be sure to have absolute paths.
820for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
ab509236 821 localstatedir libdir includedir oldincludedir infodir mandir
252b5132 822do
13b2be9c
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
13b2be9c
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
9b2b7d69 848
13b2be9c
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.
13b2be9c
DJ
859 ac_confdir=`(dirname "$0") 2>/dev/null ||
860$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
861 X"$0" : 'X\(//\)[^/]' \| \
862 X"$0" : 'X\(//\)$' \| \
863 X"$0" : 'X\(/\)' \| \
864 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
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
13b2be9c
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
13b2be9c
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
13b2be9c
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
d6d788bd 923
13b2be9c
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.
9b2b7d69 932
13b2be9c 933Usage: $0 [OPTION]... [VAR=VALUE]...
9b2b7d69 934
13b2be9c
DJ
935To assign environment variables (e.g., CC, CFLAGS...), specify them as
936VAR=VALUE. See below for descriptions of some of the useful variables.
9b2b7d69 937
13b2be9c 938Defaults for the options are specified in brackets.
9b2b7d69 939
13b2be9c
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
ab509236 956 [$ac_default_prefix]
13b2be9c 957 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ab509236 958 [PREFIX]
9b2b7d69 959
13b2be9c
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'.
9b2b7d69 964
13b2be9c 965For better control, use the options below.
9b2b7d69 966
13b2be9c
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
9b2b7d69 981
13b2be9c 982 cat <<\_ACEOF
9b2b7d69 983
13b2be9c
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
9b2b7d69 988
13b2be9c
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
9b2b7d69 994fi
9b2b7d69 995
13b2be9c 996if test -n "$ac_init_help"; then
9b2b7d69 997
13b2be9c 998 cat <<\_ACEOF
9b2b7d69 999
13b2be9c
DJ
1000Optional Features:
1001 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1002 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
ab509236
L
1003 --disable-dependency-tracking speeds up one-time build
1004 --enable-dependency-tracking do not reject slow dependency extractors
d7040cdb
SE
1005 --enable-shared[=PKGS]
1006 build shared libraries [default=yes]
1007 --enable-static[=PKGS]
1008 build static libraries [default=yes]
1009 --enable-fast-install[=PKGS]
1010 optimize for fast installation [default=yes]
13b2be9c 1011 --disable-libtool-lock avoid locking (might break parallel builds)
241a6c40 1012 --enable-targets alternative target configurations besides the primary
13b2be9c 1013 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
c43a438d 1014 --enable-checking enable run-time checks
241a6c40
AM
1015 --enable-werror treat compile warnings as errors
1016 --enable-build-warnings enable build-time compiler warnings
13b2be9c 1017 --disable-nls do not use Native Language Support
ab509236
L
1018 --enable-maintainer-mode enable make rules and dependencies not useful
1019 (and sometimes confusing) to the casual installer
9b2b7d69 1020
13b2be9c
DJ
1021Optional Packages:
1022 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1023 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d7040cdb
SE
1024 --with-pic try to use only PIC/non-PIC objects [default=use
1025 both]
1026 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
9b2b7d69 1027
13b2be9c
DJ
1028Some influential environment variables:
1029 CC C compiler command
1030 CFLAGS C compiler flags
1031 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1032 nonstandard directory <lib dir>
1033 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1034 headers in a nonstandard directory <include dir>
1035 CPP C preprocessor
1036
1037Use these variables to override the choices made by `configure' or to help
1038it to find libraries and programs with nonstandard names/locations.
1039
1040_ACEOF
9b2b7d69 1041fi
9b2b7d69 1042
13b2be9c
DJ
1043if test "$ac_init_help" = "recursive"; then
1044 # If there are subdirs, report their specific --help.
1045 ac_popdir=`pwd`
1046 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1047 test -d $ac_dir || continue
1048 ac_builddir=.
1049
1050if test "$ac_dir" != .; then
1051 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1052 # A "../" for each directory in $ac_dir_suffix.
1053 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1054else
1055 ac_dir_suffix= ac_top_builddir=
1056fi
9b2b7d69 1057
13b2be9c
DJ
1058case $srcdir in
1059 .) # No --srcdir option. We are building in place.
1060 ac_srcdir=.
1061 if test -z "$ac_top_builddir"; then
1062 ac_top_srcdir=.
1063 else
1064 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
c8615825 1065 fi ;;
13b2be9c
DJ
1066 [\\/]* | ?:[\\/]* ) # Absolute path.
1067 ac_srcdir=$srcdir$ac_dir_suffix;
1068 ac_top_srcdir=$srcdir ;;
1069 *) # Relative path.
1070 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1071 ac_top_srcdir=$ac_top_builddir$srcdir ;;
c8615825 1072esac
ab509236
L
1073
1074# Do not use `cd foo && pwd` to compute absolute paths, because
1075# the directories may not exist.
1076case `pwd` in
1077.) ac_abs_builddir="$ac_dir";;
1078*)
1079 case "$ac_dir" in
1080 .) ac_abs_builddir=`pwd`;;
1081 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1082 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1083 esac;;
1084esac
1085case $ac_abs_builddir in
1086.) ac_abs_top_builddir=${ac_top_builddir}.;;
1087*)
1088 case ${ac_top_builddir}. in
1089 .) ac_abs_top_builddir=$ac_abs_builddir;;
1090 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1091 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1092 esac;;
1093esac
1094case $ac_abs_builddir in
1095.) ac_abs_srcdir=$ac_srcdir;;
1096*)
1097 case $ac_srcdir in
1098 .) ac_abs_srcdir=$ac_abs_builddir;;
1099 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1100 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1101 esac;;
1102esac
1103case $ac_abs_builddir in
1104.) ac_abs_top_srcdir=$ac_top_srcdir;;
1105*)
1106 case $ac_top_srcdir in
1107 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1108 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1109 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1110 esac;;
1111esac
13b2be9c
DJ
1112
1113 cd $ac_dir
1114 # Check for guested configure; otherwise get Cygnus style configure.
1115 if test -f $ac_srcdir/configure.gnu; then
1116 echo
1117 $SHELL $ac_srcdir/configure.gnu --help=recursive
1118 elif test -f $ac_srcdir/configure; then
1119 echo
1120 $SHELL $ac_srcdir/configure --help=recursive
1121 elif test -f $ac_srcdir/configure.ac ||
ab509236 1122 test -f $ac_srcdir/configure.in; then
13b2be9c
DJ
1123 echo
1124 $ac_configure --help
1125 else
1126 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1127 fi
1ad12f97 1128 cd $ac_popdir
13b2be9c
DJ
1129 done
1130fi
6840198f 1131
13b2be9c
DJ
1132test -n "$ac_init_help" && exit 0
1133if $ac_init_version; then
1134 cat <<\_ACEOF
c8615825 1135
ab509236 1136Copyright (C) 2003 Free Software Foundation, Inc.
13b2be9c
DJ
1137This configure script is free software; the Free Software Foundation
1138gives unlimited permission to copy, distribute and modify it.
1139_ACEOF
1140 exit 0
1141fi
1142exec 5>config.log
1143cat >&5 <<_ACEOF
1144This file contains any messages produced by compilers while
1145running configure, to aid debugging if configure makes a mistake.
c8615825 1146
13b2be9c 1147It was created by $as_me, which was
ab509236 1148generated by GNU Autoconf 2.59. Invocation command line was
c8615825 1149
13b2be9c 1150 $ $0 $@
c8615825 1151
13b2be9c
DJ
1152_ACEOF
1153{
1154cat <<_ASUNAME
1155## --------- ##
1156## Platform. ##
1157## --------- ##
1158
1159hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1160uname -m = `(uname -m) 2>/dev/null || echo unknown`
1161uname -r = `(uname -r) 2>/dev/null || echo unknown`
1162uname -s = `(uname -s) 2>/dev/null || echo unknown`
1163uname -v = `(uname -v) 2>/dev/null || echo unknown`
1164
1165/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1166/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1167
1168/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1169/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1170/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1171hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1172/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1173/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1174/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1175
1176_ASUNAME
1177
1178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1179for as_dir in $PATH
1180do
1181 IFS=$as_save_IFS
1182 test -z "$as_dir" && as_dir=.
1183 echo "PATH: $as_dir"
1184done
9b2b7d69 1185
13b2be9c 1186} >&5
6840198f 1187
13b2be9c 1188cat >&5 <<_ACEOF
c8615825 1189
9b2b7d69 1190
13b2be9c
DJ
1191## ----------- ##
1192## Core tests. ##
1193## ----------- ##
87ccc1b0 1194
13b2be9c 1195_ACEOF
9b2b7d69 1196
13b2be9c
DJ
1197
1198# Keep a trace of the command line.
1199# Strip out --no-create and --no-recursion so they do not pile up.
1200# Strip out --silent because we don't want to record it for future runs.
1201# Also quote any args containing shell meta-characters.
1202# Make two passes to allow for proper duplicate-argument suppression.
1203ac_configure_args=
1204ac_configure_args0=
1205ac_configure_args1=
1206ac_sep=
1207ac_must_keep_next=false
1208for ac_pass in 1 2
1209do
1210 for ac_arg
1211 do
1212 case $ac_arg in
1213 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1214 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1215 | -silent | --silent | --silen | --sile | --sil)
1216 continue ;;
1217 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1218 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1219 esac
1220 case $ac_pass in
1221 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1222 2)
1223 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1224 if test $ac_must_keep_next = true; then
ab509236 1225 ac_must_keep_next=false # Got value, back to normal.
13b2be9c 1226 else
ab509236
L
1227 case $ac_arg in
1228 *=* | --config-cache | -C | -disable-* | --disable-* \
1229 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1230 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1231 | -with-* | --with-* | -without-* | --without-* | --x)
1232 case "$ac_configure_args0 " in
1233 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1234 esac
1235 ;;
1236 -* ) ac_must_keep_next=true ;;
1237 esac
13b2be9c
DJ
1238 fi
1239 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1240 # Get rid of the leading space.
1241 ac_sep=" "
c8615825
AM
1242 ;;
1243 esac
1244 done
13b2be9c
DJ
1245done
1246$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1247$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1248
1249# When interrupted or exit'd, cleanup temporary files, and complete
1250# config.log. We remove comments because anyway the quotes in there
1251# would cause problems or look ugly.
1252# WARNING: Be sure not to use single quotes in there, as some shells,
1253# such as our DU 5.0 friend, will then `close' the trap.
1254trap 'exit_status=$?
1255 # Save into config.log some information that might help in debugging.
1256 {
1257 echo
1258
1259 cat <<\_ASBOX
1260## ---------------- ##
1261## Cache variables. ##
1262## ---------------- ##
1263_ASBOX
1264 echo
1265 # The following way of writing the cache mishandles newlines in values,
1266{
1267 (set) 2>&1 |
1268 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1269 *ac_space=\ *)
1270 sed -n \
ab509236
L
1271 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1272 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
13b2be9c
DJ
1273 ;;
1274 *)
1275 sed -n \
ab509236 1276 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13b2be9c
DJ
1277 ;;
1278 esac;
1279}
1280 echo
1281
1282 cat <<\_ASBOX
1283## ----------------- ##
1284## Output variables. ##
1285## ----------------- ##
1286_ASBOX
1287 echo
1288 for ac_var in $ac_subst_vars
1289 do
1290 eval ac_val=$`echo $ac_var`
1291 echo "$ac_var='"'"'$ac_val'"'"'"
1292 done | sort
1293 echo
1294
1295 if test -n "$ac_subst_files"; then
1296 cat <<\_ASBOX
1297## ------------- ##
1298## Output files. ##
1299## ------------- ##
1300_ASBOX
1301 echo
1302 for ac_var in $ac_subst_files
1303 do
1304 eval ac_val=$`echo $ac_var`
ab509236 1305 echo "$ac_var='"'"'$ac_val'"'"'"
13b2be9c
DJ
1306 done | sort
1307 echo
1308 fi
1309
1310 if test -s confdefs.h; then
1311 cat <<\_ASBOX
1312## ----------- ##
1313## confdefs.h. ##
1314## ----------- ##
1315_ASBOX
1316 echo
1317 sed "/^$/d" confdefs.h | sort
1318 echo
1319 fi
1320 test "$ac_signal" != 0 &&
1321 echo "$as_me: caught signal $ac_signal"
1322 echo "$as_me: exit $exit_status"
1323 } >&5
ab509236 1324 rm -f core *.core &&
13b2be9c
DJ
1325 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1326 exit $exit_status
1327 ' 0
1328for ac_signal in 1 2 13 15; do
1329 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1330done
1331ac_signal=0
1332
1333# confdefs.h avoids OS command line length limits that DEFS can exceed.
1334rm -rf conftest* confdefs.h
1335# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1336echo >confdefs.h
1337
1338# Predefined preprocessor variables.
1339
1340cat >>confdefs.h <<_ACEOF
1341#define PACKAGE_NAME "$PACKAGE_NAME"
1342_ACEOF
1343
1344
1345cat >>confdefs.h <<_ACEOF
1346#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1347_ACEOF
1348
1349
1350cat >>confdefs.h <<_ACEOF
1351#define PACKAGE_VERSION "$PACKAGE_VERSION"
1352_ACEOF
1353
1354
1355cat >>confdefs.h <<_ACEOF
1356#define PACKAGE_STRING "$PACKAGE_STRING"
1357_ACEOF
1358
1359
1360cat >>confdefs.h <<_ACEOF
1361#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1362_ACEOF
1363
1364
1365# Let the site file select an alternate cache file if it wants to.
1366# Prefer explicitly selected file to automatically selected ones.
1367if test -z "$CONFIG_SITE"; then
1368 if test "x$prefix" != xNONE; then
1369 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1370 else
1371 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1372 fi
1373fi
1374for ac_site_file in $CONFIG_SITE; do
1375 if test -r "$ac_site_file"; then
1376 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1377echo "$as_me: loading site script $ac_site_file" >&6;}
1378 sed 's/^/| /' "$ac_site_file" >&5
1379 . "$ac_site_file"
1380 fi
1381done
1382
1383if test -r "$cache_file"; then
1384 # Some versions of bash will fail to source /dev/null (special
1385 # files actually), so we avoid doing that.
1386 if test -f "$cache_file"; then
1387 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1388echo "$as_me: loading cache $cache_file" >&6;}
1389 case $cache_file in
1390 [\\/]* | ?:[\\/]* ) . $cache_file;;
1391 *) . ./$cache_file;;
1392 esac
1393 fi
1394else
1395 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1396echo "$as_me: creating cache $cache_file" >&6;}
1397 >$cache_file
1398fi
1399
1400# Check that the precious variables saved in the cache have kept the same
1401# value.
1402ac_cache_corrupted=false
1403for ac_var in `(set) 2>&1 |
ab509236 1404 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
13b2be9c
DJ
1405 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1406 eval ac_new_set=\$ac_env_${ac_var}_set
1407 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1408 eval ac_new_val="\$ac_env_${ac_var}_value"
1409 case $ac_old_set,$ac_new_set in
1410 set,)
1411 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1412echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1413 ac_cache_corrupted=: ;;
1414 ,set)
1415 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1416echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1417 ac_cache_corrupted=: ;;
1418 ,);;
1419 *)
1420 if test "x$ac_old_val" != "x$ac_new_val"; then
6194aaab
L
1421 # differences in whitespace do not lead to failure.
1422 ac_old_val_w=`echo x $ac_old_val`
1423 ac_new_val_w=`echo x $ac_new_val`
1424 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1425 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
13b2be9c 1426echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
6194aaab
L
1427 ac_cache_corrupted=:
1428 else
1429 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1430echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1431 eval $ac_var=\$ac_old_val
1432 fi
1433 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1434echo "$as_me: former value: \`$ac_old_val'" >&2;}
1435 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1436echo "$as_me: current value: \`$ac_new_val'" >&2;}
13b2be9c
DJ
1437 fi;;
1438 esac
1439 # Pass precious variables to config.status.
1440 if test "$ac_new_set" = set; then
1441 case $ac_new_val in
1442 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1443 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1444 *) ac_arg=$ac_var=$ac_new_val ;;
1445 esac
1446 case " $ac_configure_args " in
1447 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1448 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1449 esac
1450 fi
1451done
1452if $ac_cache_corrupted; then
7a283e07
RW
1453 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1454echo "$as_me: error: in \`$ac_pwd':" >&2;}
13b2be9c
DJ
1455 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1456echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1457 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1458echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1459 { (exit 1); exit 1; }; }
1460fi
1461
1462ac_ext=c
1463ac_cpp='$CPP $CPPFLAGS'
1464ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1465ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1466ac_compiler_gnu=$ac_cv_c_compiler_gnu
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
7a283e07
RW
1484
1485
1486
13b2be9c 1487
da594c4a 1488
13b2be9c
DJ
1489
1490
1491ac_aux_dir=
1492for ac_dir in .. $srcdir/..; do
1493 if test -f $ac_dir/install-sh; then
1494 ac_aux_dir=$ac_dir
1495 ac_install_sh="$ac_aux_dir/install-sh -c"
1496 break
1497 elif test -f $ac_dir/install.sh; then
1498 ac_aux_dir=$ac_dir
1499 ac_install_sh="$ac_aux_dir/install.sh -c"
1500 break
1501 elif test -f $ac_dir/shtool; then
1502 ac_aux_dir=$ac_dir
1503 ac_install_sh="$ac_aux_dir/shtool install -c"
1504 break
1505 fi
1506done
1507if test -z "$ac_aux_dir"; then
1508 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
1509echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
1510 { (exit 1); exit 1; }; }
1511fi
1512ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1513ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1514ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1515
1516# Make sure we can run config.sub.
1517$ac_config_sub sun4 >/dev/null 2>&1 ||
1518 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1519echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1520 { (exit 1); exit 1; }; }
1521
1522echo "$as_me:$LINENO: checking build system type" >&5
1523echo $ECHO_N "checking build system type... $ECHO_C" >&6
1524if test "${ac_cv_build+set}" = set; then
1525 echo $ECHO_N "(cached) $ECHO_C" >&6
1526else
1527 ac_cv_build_alias=$build_alias
1528test -z "$ac_cv_build_alias" &&
1529 ac_cv_build_alias=`$ac_config_guess`
1530test -z "$ac_cv_build_alias" &&
1531 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1532echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1533 { (exit 1); exit 1; }; }
1534ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1535 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1536echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1537 { (exit 1); exit 1; }; }
1538
1539fi
1540echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1541echo "${ECHO_T}$ac_cv_build" >&6
1542build=$ac_cv_build
1543build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1544build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1545build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1546
1547
1548echo "$as_me:$LINENO: checking host system type" >&5
1549echo $ECHO_N "checking host system type... $ECHO_C" >&6
1550if test "${ac_cv_host+set}" = set; then
1551 echo $ECHO_N "(cached) $ECHO_C" >&6
1552else
1553 ac_cv_host_alias=$host_alias
1554test -z "$ac_cv_host_alias" &&
1555 ac_cv_host_alias=$ac_cv_build_alias
1556ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1557 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1558echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1559 { (exit 1); exit 1; }; }
1560
1561fi
1562echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1563echo "${ECHO_T}$ac_cv_host" >&6
1564host=$ac_cv_host
1565host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1566host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1567host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1568
1569
1570echo "$as_me:$LINENO: checking target system type" >&5
1571echo $ECHO_N "checking target system type... $ECHO_C" >&6
1572if test "${ac_cv_target+set}" = set; then
1573 echo $ECHO_N "(cached) $ECHO_C" >&6
1574else
1575 ac_cv_target_alias=$target_alias
1576test "x$ac_cv_target_alias" = "x" &&
1577 ac_cv_target_alias=$ac_cv_host_alias
1578ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1579 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1580echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1581 { (exit 1); exit 1; }; }
1582
1583fi
1584echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1585echo "${ECHO_T}$ac_cv_target" >&6
1586target=$ac_cv_target
1587target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1588target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1589target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1590
1591
1592# The aliases save the names the user supplied, while $host etc.
1593# will get canonicalized.
1594test -n "$target_alias" &&
1595 test "$program_prefix$program_suffix$program_transform_name" = \
1596 NONENONEs,x,x, &&
1597 program_prefix=${target_alias}-
1598ac_ext=c
1599ac_cpp='$CPP $CPPFLAGS'
1600ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1601ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1602ac_compiler_gnu=$ac_cv_c_compiler_gnu
1603if test -n "$ac_tool_prefix"; then
1604 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1605set dummy ${ac_tool_prefix}gcc; ac_word=$2
1606echo "$as_me:$LINENO: checking for $ac_word" >&5
1607echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1608if test "${ac_cv_prog_CC+set}" = set; then
1609 echo $ECHO_N "(cached) $ECHO_C" >&6
1610else
1611 if test -n "$CC"; then
1612 ac_cv_prog_CC="$CC" # Let the user override the test.
1613else
1614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1615for as_dir in $PATH
1616do
1617 IFS=$as_save_IFS
1618 test -z "$as_dir" && as_dir=.
1619 for ac_exec_ext in '' $ac_executable_extensions; do
1620 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1621 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1623 break 2
1624 fi
1625done
1626done
1627
1628fi
1629fi
1630CC=$ac_cv_prog_CC
1631if test -n "$CC"; then
1632 echo "$as_me:$LINENO: result: $CC" >&5
1633echo "${ECHO_T}$CC" >&6
1634else
1635 echo "$as_me:$LINENO: result: no" >&5
1636echo "${ECHO_T}no" >&6
1637fi
1638
1639fi
1640if test -z "$ac_cv_prog_CC"; then
1641 ac_ct_CC=$CC
1642 # Extract the first word of "gcc", so it can be a program name with args.
1643set dummy gcc; ac_word=$2
1644echo "$as_me:$LINENO: checking for $ac_word" >&5
1645echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1646if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1647 echo $ECHO_N "(cached) $ECHO_C" >&6
1648else
1649 if test -n "$ac_ct_CC"; then
1650 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1651else
1652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1653for as_dir in $PATH
1654do
1655 IFS=$as_save_IFS
1656 test -z "$as_dir" && as_dir=.
1657 for ac_exec_ext in '' $ac_executable_extensions; do
1658 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1659 ac_cv_prog_ac_ct_CC="gcc"
1660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1661 break 2
1662 fi
1663done
1664done
1665
1666fi
1667fi
1668ac_ct_CC=$ac_cv_prog_ac_ct_CC
1669if test -n "$ac_ct_CC"; then
1670 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1671echo "${ECHO_T}$ac_ct_CC" >&6
1672else
1673 echo "$as_me:$LINENO: result: no" >&5
1674echo "${ECHO_T}no" >&6
1675fi
1676
1677 CC=$ac_ct_CC
1678else
1679 CC="$ac_cv_prog_CC"
1680fi
1681
1682if test -z "$CC"; then
1683 if test -n "$ac_tool_prefix"; then
1684 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1685set dummy ${ac_tool_prefix}cc; ac_word=$2
1686echo "$as_me:$LINENO: checking for $ac_word" >&5
1687echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1688if test "${ac_cv_prog_CC+set}" = set; then
1689 echo $ECHO_N "(cached) $ECHO_C" >&6
1690else
1691 if test -n "$CC"; then
1692 ac_cv_prog_CC="$CC" # Let the user override the test.
1693else
1694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1695for as_dir in $PATH
1696do
1697 IFS=$as_save_IFS
1698 test -z "$as_dir" && as_dir=.
1699 for ac_exec_ext in '' $ac_executable_extensions; do
1700 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1701 ac_cv_prog_CC="${ac_tool_prefix}cc"
1702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1703 break 2
1704 fi
1705done
1706done
1707
1708fi
1709fi
1710CC=$ac_cv_prog_CC
1711if test -n "$CC"; then
1712 echo "$as_me:$LINENO: result: $CC" >&5
1713echo "${ECHO_T}$CC" >&6
1714else
1715 echo "$as_me:$LINENO: result: no" >&5
1716echo "${ECHO_T}no" >&6
1717fi
1718
1719fi
1720if test -z "$ac_cv_prog_CC"; then
1721 ac_ct_CC=$CC
1722 # Extract the first word of "cc", so it can be a program name with args.
1723set dummy cc; ac_word=$2
1724echo "$as_me:$LINENO: checking for $ac_word" >&5
1725echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1726if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1727 echo $ECHO_N "(cached) $ECHO_C" >&6
1728else
1729 if test -n "$ac_ct_CC"; then
1730 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1731else
1732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1733for as_dir in $PATH
1734do
1735 IFS=$as_save_IFS
1736 test -z "$as_dir" && as_dir=.
1737 for ac_exec_ext in '' $ac_executable_extensions; do
1738 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1739 ac_cv_prog_ac_ct_CC="cc"
1740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1741 break 2
1742 fi
1743done
1744done
1745
1746fi
1747fi
1748ac_ct_CC=$ac_cv_prog_ac_ct_CC
1749if test -n "$ac_ct_CC"; then
1750 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1751echo "${ECHO_T}$ac_ct_CC" >&6
1752else
1753 echo "$as_me:$LINENO: result: no" >&5
1754echo "${ECHO_T}no" >&6
1755fi
1756
1757 CC=$ac_ct_CC
1758else
1759 CC="$ac_cv_prog_CC"
1760fi
1761
1762fi
1763if test -z "$CC"; then
1764 # Extract the first word of "cc", so it can be a program name with args.
1765set dummy cc; ac_word=$2
1766echo "$as_me:$LINENO: checking for $ac_word" >&5
1767echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1768if test "${ac_cv_prog_CC+set}" = set; then
1769 echo $ECHO_N "(cached) $ECHO_C" >&6
1770else
1771 if test -n "$CC"; then
1772 ac_cv_prog_CC="$CC" # Let the user override the test.
1773else
1774 ac_prog_rejected=no
1775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1776for as_dir in $PATH
1777do
1778 IFS=$as_save_IFS
1779 test -z "$as_dir" && as_dir=.
1780 for ac_exec_ext in '' $ac_executable_extensions; do
1781 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1782 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1783 ac_prog_rejected=yes
1784 continue
1785 fi
1786 ac_cv_prog_CC="cc"
1787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1788 break 2
1789 fi
1790done
1791done
1792
1793if test $ac_prog_rejected = yes; then
1794 # We found a bogon in the path, so make sure we never use it.
1795 set dummy $ac_cv_prog_CC
1796 shift
1797 if test $# != 0; then
1798 # We chose a different compiler from the bogus one.
1799 # However, it has the same basename, so the bogon will be chosen
1800 # first if we set CC to just the basename; use the full file name.
1801 shift
1802 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1803 fi
1804fi
1805fi
1806fi
1807CC=$ac_cv_prog_CC
1808if test -n "$CC"; then
1809 echo "$as_me:$LINENO: result: $CC" >&5
1810echo "${ECHO_T}$CC" >&6
1811else
1812 echo "$as_me:$LINENO: result: no" >&5
1813echo "${ECHO_T}no" >&6
1814fi
1815
1816fi
1817if test -z "$CC"; then
1818 if test -n "$ac_tool_prefix"; then
1819 for ac_prog in cl
1820 do
1821 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1822set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1823echo "$as_me:$LINENO: checking for $ac_word" >&5
1824echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1825if test "${ac_cv_prog_CC+set}" = set; then
1826 echo $ECHO_N "(cached) $ECHO_C" >&6
1827else
1828 if test -n "$CC"; then
1829 ac_cv_prog_CC="$CC" # Let the user override the test.
1830else
1831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1832for as_dir in $PATH
1833do
1834 IFS=$as_save_IFS
1835 test -z "$as_dir" && as_dir=.
1836 for ac_exec_ext in '' $ac_executable_extensions; do
1837 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1838 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1840 break 2
1841 fi
1842done
1843done
1844
1845fi
1846fi
1847CC=$ac_cv_prog_CC
1848if test -n "$CC"; then
1849 echo "$as_me:$LINENO: result: $CC" >&5
1850echo "${ECHO_T}$CC" >&6
1851else
1852 echo "$as_me:$LINENO: result: no" >&5
1853echo "${ECHO_T}no" >&6
1854fi
1855
1856 test -n "$CC" && break
1857 done
1858fi
1859if test -z "$CC"; then
1860 ac_ct_CC=$CC
1861 for ac_prog in cl
1862do
1863 # Extract the first word of "$ac_prog", so it can be a program name with args.
1864set dummy $ac_prog; ac_word=$2
1865echo "$as_me:$LINENO: checking for $ac_word" >&5
1866echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1867if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1868 echo $ECHO_N "(cached) $ECHO_C" >&6
1869else
1870 if test -n "$ac_ct_CC"; then
1871 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1872else
1873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1874for as_dir in $PATH
1875do
1876 IFS=$as_save_IFS
1877 test -z "$as_dir" && as_dir=.
1878 for ac_exec_ext in '' $ac_executable_extensions; do
1879 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1880 ac_cv_prog_ac_ct_CC="$ac_prog"
1881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1882 break 2
1883 fi
1884done
1885done
1886
1887fi
1888fi
1889ac_ct_CC=$ac_cv_prog_ac_ct_CC
1890if test -n "$ac_ct_CC"; then
1891 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1892echo "${ECHO_T}$ac_ct_CC" >&6
1893else
1894 echo "$as_me:$LINENO: result: no" >&5
1895echo "${ECHO_T}no" >&6
1896fi
1897
1898 test -n "$ac_ct_CC" && break
1899done
1900
1901 CC=$ac_ct_CC
1902fi
1903
1904fi
1905
1906
7a283e07
RW
1907test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1908echo "$as_me: error: in \`$ac_pwd':" >&2;}
1909{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
13b2be9c
DJ
1910See \`config.log' for more details." >&5
1911echo "$as_me: error: no acceptable C compiler found in \$PATH
1912See \`config.log' for more details." >&2;}
7a283e07 1913 { (exit 1); exit 1; }; }; }
13b2be9c
DJ
1914
1915# Provide some information about the compiler.
1916echo "$as_me:$LINENO:" \
1917 "checking for C compiler version" >&5
1918ac_compiler=`set X $ac_compile; echo $2`
1919{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1920 (eval $ac_compiler --version </dev/null >&5) 2>&5
1921 ac_status=$?
1922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1923 (exit $ac_status); }
1924{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1925 (eval $ac_compiler -v </dev/null >&5) 2>&5
1926 ac_status=$?
1927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1928 (exit $ac_status); }
1929{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1930 (eval $ac_compiler -V </dev/null >&5) 2>&5
1931 ac_status=$?
1932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1933 (exit $ac_status); }
1934
1935cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
1936/* confdefs.h. */
1937_ACEOF
1938cat confdefs.h >>conftest.$ac_ext
1939cat >>conftest.$ac_ext <<_ACEOF
1940/* end confdefs.h. */
1941
1942int
1943main ()
1944{
1945
1946 ;
1947 return 0;
1948}
1949_ACEOF
1950ac_clean_files_save=$ac_clean_files
1951ac_clean_files="$ac_clean_files a.out a.exe b.out"
1952# Try to create an executable without -o first, disregard a.out.
1953# It will help us diagnose broken compilers, and finding out an intuition
1954# of exeext.
ab509236
L
1955echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1956echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
13b2be9c
DJ
1957ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1958if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1959 (eval $ac_link_default) 2>&5
1960 ac_status=$?
1961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1962 (exit $ac_status); }; then
1963 # Find the output, starting from the most likely. This scheme is
1964# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1965# resort.
1966
1967# Be careful to initialize this variable, since it used to be cached.
1968# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1969ac_cv_exeext=
1970# b.out is created by i960 compilers.
1971for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1972do
1973 test -f "$ac_file" || continue
1974 case $ac_file in
1975 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ab509236 1976 ;;
13b2be9c 1977 conftest.$ac_ext )
ab509236
L
1978 # This is the source file.
1979 ;;
13b2be9c 1980 [ab].out )
ab509236
L
1981 # We found the default executable, but exeext='' is most
1982 # certainly right.
1983 break;;
13b2be9c 1984 *.* )
ab509236
L
1985 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1986 # FIXME: I believe we export ac_cv_exeext for Libtool,
1987 # but it would be cool to find out if it's true. Does anybody
1988 # maintain Libtool? --akim.
1989 export ac_cv_exeext
1990 break;;
13b2be9c 1991 * )
ab509236 1992 break;;
13b2be9c
DJ
1993 esac
1994done
1995else
1996 echo "$as_me: failed program was:" >&5
1997sed 's/^/| /' conftest.$ac_ext >&5
1998
7a283e07
RW
1999{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2000echo "$as_me: error: in \`$ac_pwd':" >&2;}
13b2be9c
DJ
2001{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2002See \`config.log' for more details." >&5
2003echo "$as_me: error: C compiler cannot create executables
2004See \`config.log' for more details." >&2;}
7a283e07 2005 { (exit 77); exit 77; }; }; }
13b2be9c
DJ
2006fi
2007
2008ac_exeext=$ac_cv_exeext
2009echo "$as_me:$LINENO: result: $ac_file" >&5
2010echo "${ECHO_T}$ac_file" >&6
2011
2012# Check the compiler produces executables we can run. If not, either
2013# the compiler is broken, or we cross compile.
2014echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2015echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2016# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2017# If not cross compiling, check that we can run a simple program.
2018if test "$cross_compiling" != yes; then
2019 if { ac_try='./$ac_file'
2020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2021 (eval $ac_try) 2>&5
2022 ac_status=$?
2023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2024 (exit $ac_status); }; }; then
2025 cross_compiling=no
2026 else
2027 if test "$cross_compiling" = maybe; then
2028 cross_compiling=yes
2029 else
7a283e07
RW
2030 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2031echo "$as_me: error: in \`$ac_pwd':" >&2;}
2032{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
13b2be9c
DJ
2033If you meant to cross compile, use \`--host'.
2034See \`config.log' for more details." >&5
2035echo "$as_me: error: cannot run C compiled programs.
2036If you meant to cross compile, use \`--host'.
2037See \`config.log' for more details." >&2;}
7a283e07 2038 { (exit 1); exit 1; }; }; }
13b2be9c
DJ
2039 fi
2040 fi
2041fi
2042echo "$as_me:$LINENO: result: yes" >&5
2043echo "${ECHO_T}yes" >&6
2044
2045rm -f a.out a.exe conftest$ac_cv_exeext b.out
2046ac_clean_files=$ac_clean_files_save
2047# Check the compiler produces executables we can run. If not, either
2048# the compiler is broken, or we cross compile.
2049echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2050echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2051echo "$as_me:$LINENO: result: $cross_compiling" >&5
2052echo "${ECHO_T}$cross_compiling" >&6
2053
2054echo "$as_me:$LINENO: checking for suffix of executables" >&5
2055echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2056if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2057 (eval $ac_link) 2>&5
2058 ac_status=$?
2059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2060 (exit $ac_status); }; then
2061 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2062# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2063# work properly (i.e., refer to `conftest.exe'), while it won't with
2064# `rm'.
2065for ac_file in conftest.exe conftest conftest.*; do
2066 test -f "$ac_file" || continue
2067 case $ac_file in
2068 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2069 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ab509236
L
2070 export ac_cv_exeext
2071 break;;
13b2be9c
DJ
2072 * ) break;;
2073 esac
2074done
2075else
7a283e07
RW
2076 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2077echo "$as_me: error: in \`$ac_pwd':" >&2;}
2078{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
13b2be9c
DJ
2079See \`config.log' for more details." >&5
2080echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2081See \`config.log' for more details." >&2;}
7a283e07 2082 { (exit 1); exit 1; }; }; }
13b2be9c
DJ
2083fi
2084
2085rm -f conftest$ac_cv_exeext
2086echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2087echo "${ECHO_T}$ac_cv_exeext" >&6
2088
2089rm -f conftest.$ac_ext
2090EXEEXT=$ac_cv_exeext
2091ac_exeext=$EXEEXT
2092echo "$as_me:$LINENO: checking for suffix of object files" >&5
2093echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2094if test "${ac_cv_objext+set}" = set; then
2095 echo $ECHO_N "(cached) $ECHO_C" >&6
2096else
2097 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
2098/* confdefs.h. */
2099_ACEOF
2100cat confdefs.h >>conftest.$ac_ext
2101cat >>conftest.$ac_ext <<_ACEOF
2102/* end confdefs.h. */
2103
2104int
2105main ()
2106{
2107
2108 ;
2109 return 0;
2110}
2111_ACEOF
2112rm -f conftest.o conftest.obj
2113if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2114 (eval $ac_compile) 2>&5
2115 ac_status=$?
2116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2117 (exit $ac_status); }; then
2118 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2119 case $ac_file in
2120 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2121 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2122 break;;
2123 esac
2124done
2125else
2126 echo "$as_me: failed program was:" >&5
2127sed 's/^/| /' conftest.$ac_ext >&5
2128
7a283e07
RW
2129{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2130echo "$as_me: error: in \`$ac_pwd':" >&2;}
13b2be9c
DJ
2131{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2132See \`config.log' for more details." >&5
2133echo "$as_me: error: cannot compute suffix of object files: cannot compile
2134See \`config.log' for more details." >&2;}
7a283e07 2135 { (exit 1); exit 1; }; }; }
13b2be9c
DJ
2136fi
2137
2138rm -f conftest.$ac_cv_objext conftest.$ac_ext
2139fi
2140echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2141echo "${ECHO_T}$ac_cv_objext" >&6
2142OBJEXT=$ac_cv_objext
2143ac_objext=$OBJEXT
2144echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2145echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2146if test "${ac_cv_c_compiler_gnu+set}" = set; then
2147 echo $ECHO_N "(cached) $ECHO_C" >&6
2148else
2149 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
2150/* confdefs.h. */
2151_ACEOF
2152cat confdefs.h >>conftest.$ac_ext
2153cat >>conftest.$ac_ext <<_ACEOF
2154/* end confdefs.h. */
2155
2156int
2157main ()
2158{
2159#ifndef __GNUC__
2160 choke me
2161#endif
2162
2163 ;
2164 return 0;
2165}
2166_ACEOF
2167rm -f conftest.$ac_objext
2168if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 2169 (eval $ac_compile) 2>conftest.er1
13b2be9c 2170 ac_status=$?
ab509236
L
2171 grep -v '^ *+' conftest.er1 >conftest.err
2172 rm -f conftest.er1
2173 cat conftest.err >&5
13b2be9c
DJ
2174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175 (exit $ac_status); } &&
1ad12f97
NC
2176 { ac_try='test -z "$ac_c_werror_flag"
2177 || test ! -s conftest.err'
ab509236
L
2178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2179 (eval $ac_try) 2>&5
2180 ac_status=$?
2181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182 (exit $ac_status); }; } &&
2183 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
2184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2185 (eval $ac_try) 2>&5
2186 ac_status=$?
2187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2188 (exit $ac_status); }; }; then
2189 ac_compiler_gnu=yes
2190else
2191 echo "$as_me: failed program was:" >&5
2192sed 's/^/| /' conftest.$ac_ext >&5
2193
2194ac_compiler_gnu=no
2195fi
ab509236 2196rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
2197ac_cv_c_compiler_gnu=$ac_compiler_gnu
2198
2199fi
2200echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2201echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2202GCC=`test $ac_compiler_gnu = yes && echo yes`
2203ac_test_CFLAGS=${CFLAGS+set}
2204ac_save_CFLAGS=$CFLAGS
2205CFLAGS="-g"
2206echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2207echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2208if test "${ac_cv_prog_cc_g+set}" = set; then
2209 echo $ECHO_N "(cached) $ECHO_C" >&6
2210else
2211 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
2212/* confdefs.h. */
2213_ACEOF
2214cat confdefs.h >>conftest.$ac_ext
2215cat >>conftest.$ac_ext <<_ACEOF
2216/* end confdefs.h. */
2217
2218int
2219main ()
2220{
2221
2222 ;
2223 return 0;
2224}
2225_ACEOF
2226rm -f conftest.$ac_objext
2227if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 2228 (eval $ac_compile) 2>conftest.er1
13b2be9c 2229 ac_status=$?
ab509236
L
2230 grep -v '^ *+' conftest.er1 >conftest.err
2231 rm -f conftest.er1
2232 cat conftest.err >&5
13b2be9c
DJ
2233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234 (exit $ac_status); } &&
1ad12f97
NC
2235 { ac_try='test -z "$ac_c_werror_flag"
2236 || test ! -s conftest.err'
ab509236
L
2237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2238 (eval $ac_try) 2>&5
2239 ac_status=$?
2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 (exit $ac_status); }; } &&
2242 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
2243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2244 (eval $ac_try) 2>&5
2245 ac_status=$?
2246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247 (exit $ac_status); }; }; then
2248 ac_cv_prog_cc_g=yes
2249else
2250 echo "$as_me: failed program was:" >&5
2251sed 's/^/| /' conftest.$ac_ext >&5
2252
2253ac_cv_prog_cc_g=no
2254fi
ab509236 2255rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
2256fi
2257echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2258echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2259if test "$ac_test_CFLAGS" = set; then
2260 CFLAGS=$ac_save_CFLAGS
2261elif test $ac_cv_prog_cc_g = yes; then
2262 if test "$GCC" = yes; then
2263 CFLAGS="-g -O2"
2264 else
2265 CFLAGS="-g"
2266 fi
2267else
2268 if test "$GCC" = yes; then
2269 CFLAGS="-O2"
2270 else
2271 CFLAGS=
2272 fi
2273fi
2274echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2275echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2276if test "${ac_cv_prog_cc_stdc+set}" = set; then
2277 echo $ECHO_N "(cached) $ECHO_C" >&6
2278else
2279 ac_cv_prog_cc_stdc=no
2280ac_save_CC=$CC
2281cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
2282/* confdefs.h. */
2283_ACEOF
2284cat confdefs.h >>conftest.$ac_ext
2285cat >>conftest.$ac_ext <<_ACEOF
2286/* end confdefs.h. */
2287#include <stdarg.h>
2288#include <stdio.h>
2289#include <sys/types.h>
2290#include <sys/stat.h>
2291/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2292struct buf { int x; };
2293FILE * (*rcsopen) (struct buf *, struct stat *, int);
2294static char *e (p, i)
2295 char **p;
2296 int i;
2297{
2298 return p[i];
2299}
2300static char *f (char * (*g) (char **, int), char **p, ...)
2301{
2302 char *s;
2303 va_list v;
2304 va_start (v,p);
2305 s = g (p, va_arg (v,int));
2306 va_end (v);
2307 return s;
2308}
ab509236
L
2309
2310/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2311 function prototypes and stuff, but not '\xHH' hex character constants.
2312 These don't provoke an error unfortunately, instead are silently treated
2313 as 'x'. The following induces an error, until -std1 is added to get
2314 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2315 array size at least. It's necessary to write '\x00'==0 to get something
2316 that's true only with -std1. */
2317int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2318
13b2be9c
DJ
2319int test (int i, double x);
2320struct s1 {int (*f) (int a);};
2321struct s2 {int (*f) (double a);};
2322int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2323int argc;
2324char **argv;
2325int
2326main ()
2327{
2328return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2329 ;
2330 return 0;
2331}
2332_ACEOF
2333# Don't try gcc -ansi; that turns off useful extensions and
2334# breaks some systems' header files.
2335# AIX -qlanglvl=ansi
2336# Ultrix and OSF/1 -std1
2337# HP-UX 10.20 and later -Ae
2338# HP-UX older versions -Aa -D_HPUX_SOURCE
2339# SVR4 -Xc -D__EXTENSIONS__
2340for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2341do
2342 CC="$ac_save_CC $ac_arg"
2343 rm -f conftest.$ac_objext
2344if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 2345 (eval $ac_compile) 2>conftest.er1
13b2be9c 2346 ac_status=$?
ab509236
L
2347 grep -v '^ *+' conftest.er1 >conftest.err
2348 rm -f conftest.er1
2349 cat conftest.err >&5
13b2be9c
DJ
2350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351 (exit $ac_status); } &&
1ad12f97
NC
2352 { ac_try='test -z "$ac_c_werror_flag"
2353 || test ! -s conftest.err'
ab509236
L
2354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2355 (eval $ac_try) 2>&5
2356 ac_status=$?
2357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358 (exit $ac_status); }; } &&
2359 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
2360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2361 (eval $ac_try) 2>&5
2362 ac_status=$?
2363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2364 (exit $ac_status); }; }; then
2365 ac_cv_prog_cc_stdc=$ac_arg
2366break
2367else
2368 echo "$as_me: failed program was:" >&5
2369sed 's/^/| /' conftest.$ac_ext >&5
2370
2371fi
ab509236 2372rm -f conftest.err conftest.$ac_objext
13b2be9c
DJ
2373done
2374rm -f conftest.$ac_ext conftest.$ac_objext
2375CC=$ac_save_CC
2376
2377fi
2378
2379case "x$ac_cv_prog_cc_stdc" in
2380 x|xno)
2381 echo "$as_me:$LINENO: result: none needed" >&5
2382echo "${ECHO_T}none needed" >&6 ;;
2383 *)
2384 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2385echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2386 CC="$CC $ac_cv_prog_cc_stdc" ;;
2387esac
2388
2389# Some people use a C++ compiler to compile C. Since we use `exit',
2390# in C++ we need to declare it. In case someone uses the same compiler
2391# for both compiling C and C++ we need to have the C++ compiler decide
2392# the declaration of exit, since it's the most demanding environment.
2393cat >conftest.$ac_ext <<_ACEOF
2394#ifndef __cplusplus
2395 choke me
2396#endif
2397_ACEOF
2398rm -f conftest.$ac_objext
2399if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 2400 (eval $ac_compile) 2>conftest.er1
13b2be9c 2401 ac_status=$?
ab509236
L
2402 grep -v '^ *+' conftest.er1 >conftest.err
2403 rm -f conftest.er1
2404 cat conftest.err >&5
13b2be9c
DJ
2405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406 (exit $ac_status); } &&
1ad12f97
NC
2407 { ac_try='test -z "$ac_c_werror_flag"
2408 || test ! -s conftest.err'
ab509236
L
2409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2410 (eval $ac_try) 2>&5
2411 ac_status=$?
2412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413 (exit $ac_status); }; } &&
2414 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
2415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2416 (eval $ac_try) 2>&5
2417 ac_status=$?
2418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419 (exit $ac_status); }; }; then
2420 for ac_declaration in \
ab509236 2421 '' \
13b2be9c
DJ
2422 'extern "C" void std::exit (int) throw (); using std::exit;' \
2423 'extern "C" void std::exit (int); using std::exit;' \
2424 'extern "C" void exit (int) throw ();' \
2425 'extern "C" void exit (int);' \
2426 'void exit (int);'
2427do
2428 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
2429/* confdefs.h. */
2430_ACEOF
2431cat confdefs.h >>conftest.$ac_ext
2432cat >>conftest.$ac_ext <<_ACEOF
2433/* end confdefs.h. */
13dfd2d0 2434$ac_declaration
ab509236 2435#include <stdlib.h>
13b2be9c
DJ
2436int
2437main ()
2438{
2439exit (42);
2440 ;
2441 return 0;
2442}
2443_ACEOF
2444rm -f conftest.$ac_objext
2445if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 2446 (eval $ac_compile) 2>conftest.er1
13b2be9c 2447 ac_status=$?
ab509236
L
2448 grep -v '^ *+' conftest.er1 >conftest.err
2449 rm -f conftest.er1
2450 cat conftest.err >&5
13b2be9c
DJ
2451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452 (exit $ac_status); } &&
1ad12f97
NC
2453 { ac_try='test -z "$ac_c_werror_flag"
2454 || test ! -s conftest.err'
ab509236
L
2455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2456 (eval $ac_try) 2>&5
2457 ac_status=$?
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); }; } &&
2460 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
2461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2462 (eval $ac_try) 2>&5
2463 ac_status=$?
2464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465 (exit $ac_status); }; }; then
2466 :
2467else
2468 echo "$as_me: failed program was:" >&5
2469sed 's/^/| /' conftest.$ac_ext >&5
2470
2471continue
2472fi
ab509236 2473rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c 2474 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
2475/* confdefs.h. */
2476_ACEOF
2477cat confdefs.h >>conftest.$ac_ext
2478cat >>conftest.$ac_ext <<_ACEOF
2479/* end confdefs.h. */
2480$ac_declaration
2481int
2482main ()
2483{
2484exit (42);
2485 ;
2486 return 0;
2487}
2488_ACEOF
2489rm -f conftest.$ac_objext
2490if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 2491 (eval $ac_compile) 2>conftest.er1
13b2be9c 2492 ac_status=$?
ab509236
L
2493 grep -v '^ *+' conftest.er1 >conftest.err
2494 rm -f conftest.er1
2495 cat conftest.err >&5
13b2be9c
DJ
2496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497 (exit $ac_status); } &&
1ad12f97
NC
2498 { ac_try='test -z "$ac_c_werror_flag"
2499 || test ! -s conftest.err'
ab509236
L
2500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2501 (eval $ac_try) 2>&5
2502 ac_status=$?
2503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504 (exit $ac_status); }; } &&
2505 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
2506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2507 (eval $ac_try) 2>&5
2508 ac_status=$?
2509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510 (exit $ac_status); }; }; then
2511 break
2512else
2513 echo "$as_me: failed program was:" >&5
2514sed 's/^/| /' conftest.$ac_ext >&5
2515
2516fi
ab509236 2517rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
2518done
2519rm -f conftest*
2520if test -n "$ac_declaration"; then
2521 echo '#ifdef __cplusplus' >>confdefs.h
2522 echo $ac_declaration >>confdefs.h
2523 echo '#endif' >>confdefs.h
2524fi
2525
2526else
2527 echo "$as_me: failed program was:" >&5
2528sed 's/^/| /' conftest.$ac_ext >&5
2529
2530fi
ab509236 2531rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
2532ac_ext=c
2533ac_cpp='$CPP $CPPFLAGS'
2534ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2535ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2536ac_compiler_gnu=$ac_cv_c_compiler_gnu
2537
2538
ab509236
L
2539echo "$as_me:$LINENO: checking for library containing strerror" >&5
2540echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2541if test "${ac_cv_search_strerror+set}" = set; then
13b2be9c
DJ
2542 echo $ECHO_N "(cached) $ECHO_C" >&6
2543else
ab509236
L
2544 ac_func_search_save_LIBS=$LIBS
2545ac_cv_search_strerror=no
13b2be9c 2546cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
2547/* confdefs.h. */
2548_ACEOF
2549cat confdefs.h >>conftest.$ac_ext
2550cat >>conftest.$ac_ext <<_ACEOF
2551/* end confdefs.h. */
2552
2553/* Override any gcc2 internal prototype to avoid an error. */
2554#ifdef __cplusplus
2555extern "C"
2556#endif
2557/* We use char because int might match the return type of a gcc2
2558 builtin and then its argument prototype would still apply. */
2559char strerror ();
2560int
2561main ()
2562{
2563strerror ();
2564 ;
2565 return 0;
2566}
2567_ACEOF
2568rm -f conftest.$ac_objext conftest$ac_exeext
2569if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 2570 (eval $ac_link) 2>conftest.er1
13b2be9c 2571 ac_status=$?
ab509236
L
2572 grep -v '^ *+' conftest.er1 >conftest.err
2573 rm -f conftest.er1
2574 cat conftest.err >&5
13b2be9c
DJ
2575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576 (exit $ac_status); } &&
1ad12f97
NC
2577 { ac_try='test -z "$ac_c_werror_flag"
2578 || test ! -s conftest.err'
ab509236
L
2579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2580 (eval $ac_try) 2>&5
2581 ac_status=$?
2582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583 (exit $ac_status); }; } &&
2584 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
2585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2586 (eval $ac_try) 2>&5
2587 ac_status=$?
2588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589 (exit $ac_status); }; }; then
ab509236 2590 ac_cv_search_strerror="none required"
13b2be9c
DJ
2591else
2592 echo "$as_me: failed program was:" >&5
2593sed 's/^/| /' conftest.$ac_ext >&5
2594
13b2be9c 2595fi
ab509236
L
2596rm -f conftest.err conftest.$ac_objext \
2597 conftest$ac_exeext conftest.$ac_ext
2598if test "$ac_cv_search_strerror" = no; then
2599 for ac_lib in cposix; do
2600 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2601 cat >conftest.$ac_ext <<_ACEOF
2602/* confdefs.h. */
2603_ACEOF
2604cat confdefs.h >>conftest.$ac_ext
2605cat >>conftest.$ac_ext <<_ACEOF
2606/* end confdefs.h. */
2607
2608/* Override any gcc2 internal prototype to avoid an error. */
2609#ifdef __cplusplus
2610extern "C"
2611#endif
2612/* We use char because int might match the return type of a gcc2
2613 builtin and then its argument prototype would still apply. */
2614char strerror ();
2615int
2616main ()
2617{
2618strerror ();
2619 ;
2620 return 0;
2621}
2622_ACEOF
2623rm -f conftest.$ac_objext conftest$ac_exeext
2624if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2625 (eval $ac_link) 2>conftest.er1
2626 ac_status=$?
2627 grep -v '^ *+' conftest.er1 >conftest.err
2628 rm -f conftest.er1
2629 cat conftest.err >&5
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); } &&
1ad12f97
NC
2632 { ac_try='test -z "$ac_c_werror_flag"
2633 || test ! -s conftest.err'
ab509236
L
2634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2635 (eval $ac_try) 2>&5
2636 ac_status=$?
2637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638 (exit $ac_status); }; } &&
2639 { ac_try='test -s conftest$ac_exeext'
2640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2641 (eval $ac_try) 2>&5
2642 ac_status=$?
2643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644 (exit $ac_status); }; }; then
2645 ac_cv_search_strerror="-l$ac_lib"
2646break
2647else
2648 echo "$as_me: failed program was:" >&5
2649sed 's/^/| /' conftest.$ac_ext >&5
2650
13b2be9c 2651fi
ab509236
L
2652rm -f conftest.err conftest.$ac_objext \
2653 conftest$ac_exeext conftest.$ac_ext
2654 done
13b2be9c 2655fi
ab509236
L
2656LIBS=$ac_func_search_save_LIBS
2657fi
2658echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2659echo "${ECHO_T}$ac_cv_search_strerror" >&6
2660if test "$ac_cv_search_strerror" != no; then
2661 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
13b2be9c 2662
ab509236 2663fi
13b2be9c
DJ
2664
2665
2666BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
8ea2b00f 2667am__api_version="1.9"
13b2be9c
DJ
2668# Find a good install program. We prefer a C program (faster),
2669# so one script is as good as another. But avoid the broken or
2670# incompatible versions:
2671# SysV /etc/install, /usr/sbin/install
2672# SunOS /usr/etc/install
2673# IRIX /sbin/install
2674# AIX /bin/install
2675# AmigaOS /C/install, which installs bootblocks on floppy discs
2676# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2677# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2678# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ab509236 2679# OS/2's system install, which has a completely different semantic
13b2be9c 2680# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 2681# Reject install programs that cannot install multiple files.
13b2be9c
DJ
2682echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2683echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2684if test -z "$INSTALL"; then
2685if test "${ac_cv_path_install+set}" = set; then
2686 echo $ECHO_N "(cached) $ECHO_C" >&6
2687else
2688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2689for as_dir in $PATH
2690do
2691 IFS=$as_save_IFS
2692 test -z "$as_dir" && as_dir=.
2693 # Account for people who put trailing slashes in PATH elements.
2694case $as_dir/ in
2695 ./ | .// | /cC/* | \
2696 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ab509236 2697 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
13b2be9c
DJ
2698 /usr/ucb/* ) ;;
2699 *)
2700 # OSF1 and SCO ODT 3.0 have their own names for install.
2701 # Don't use installbsd from OSF since it installs stuff as root
2702 # by default.
2703 for ac_prog in ginstall scoinst install; do
2704 for ac_exec_ext in '' $ac_executable_extensions; do
ab509236
L
2705 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2706 if test $ac_prog = install &&
2707 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2708 # AIX install. It has an incompatible calling convention.
2709 :
2710 elif test $ac_prog = install &&
2711 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2712 # program-specific install script used by HP pwplus--don't use.
2713 :
2714 else
58c85be7
RW
2715 rm -rf conftest.one conftest.two conftest.dir
2716 echo one > conftest.one
2717 echo two > conftest.two
2718 mkdir conftest.dir
2719 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2720 test -s conftest.one && test -s conftest.two &&
2721 test -s conftest.dir/conftest.one &&
2722 test -s conftest.dir/conftest.two
2723 then
2724 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2725 break 3
2726 fi
ab509236
L
2727 fi
2728 fi
13b2be9c
DJ
2729 done
2730 done
2731 ;;
2732esac
2733done
2734
58c85be7 2735rm -rf conftest.one conftest.two conftest.dir
252b5132
RH
2736
2737fi
2738 if test "${ac_cv_path_install+set}" = set; then
13b2be9c 2739 INSTALL=$ac_cv_path_install
252b5132 2740 else
58c85be7
RW
2741 # As a last resort, use the slow shell script. Don't cache a
2742 # value for INSTALL within a source directory, because that will
252b5132 2743 # break other packages using the cache if that directory is
58c85be7 2744 # removed, or if the value is a relative name.
13b2be9c 2745 INSTALL=$ac_install_sh
252b5132
RH
2746 fi
2747fi
13b2be9c
DJ
2748echo "$as_me:$LINENO: result: $INSTALL" >&5
2749echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
2750
2751# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2752# It thinks the first close brace ends the variable substitution.
2753test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2754
13b2be9c 2755test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
2756
2757test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2758
13b2be9c
DJ
2759echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2760echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
252b5132
RH
2761# Just in case
2762sleep 1
13b2be9c 2763echo timestamp > conftest.file
252b5132
RH
2764# Do `set' in a subshell so we don't clobber the current shell's
2765# arguments. Must try -L first in case configure is actually a
2766# symlink; some systems play weird games with the mod time of symlinks
2767# (eg FreeBSD returns the mod time of the symlink's containing
2768# directory).
2769if (
13b2be9c 2770 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
252b5132
RH
2771 if test "$*" = "X"; then
2772 # -L didn't work.
13b2be9c 2773 set X `ls -t $srcdir/configure conftest.file`
252b5132 2774 fi
13b2be9c
DJ
2775 rm -f conftest.file
2776 if test "$*" != "X $srcdir/configure conftest.file" \
2777 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
2778
2779 # If neither matched, then we have a broken ls. This can happen
2780 # if, for instance, CONFIG_SHELL is bash and it inherits a
2781 # broken ls alias from the environment. This has actually
2782 # happened. Such a system could not be considered "sane".
13b2be9c
DJ
2783 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2784alias in your environment" >&5
2785echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2786alias in your environment" >&2;}
2787 { (exit 1); exit 1; }; }
252b5132
RH
2788 fi
2789
13b2be9c
DJ
2790 test "$2" = conftest.file
2791 )
2792then
2793 # Ok.
2794 :
2795else
2796 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2797Check your system clock" >&5
2798echo "$as_me: error: newly created file is older than distributed files!
2799Check your system clock" >&2;}
2800 { (exit 1); exit 1; }; }
2801fi
2802echo "$as_me:$LINENO: result: yes" >&5
2803echo "${ECHO_T}yes" >&6
2804test "$program_prefix" != NONE &&
2805 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2806# Use a double $ so make ignores it.
2807test "$program_suffix" != NONE &&
2808 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2809# Double any \ or $. echo might interpret backslashes.
2810# By default was `s,x,x', remove it if useless.
2811cat <<\_ACEOF >conftest.sed
2812s/[\\$]/&&/g;s/;s,x,x,$//
2813_ACEOF
2814program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2815rm conftest.sed
2816
13b2be9c
DJ
2817# expand $ac_aux_dir to an absolute path
2818am_aux_dir=`cd $ac_aux_dir && pwd`
2819
2820test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2821# Use eval to expand $SHELL
2822if eval "$MISSING --run true"; then
2823 am_missing_run="$MISSING --run "
2824else
2825 am_missing_run=
2826 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2827echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2828fi
2829
4b363073 2830if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
8ea2b00f
AM
2831 # We used to keeping the `.' as first argument, in order to
2832 # allow $(mkdir_p) to be used without argument. As in
ab509236 2833 # $(mkdir_p) $(somedir)
8ea2b00f
AM
2834 # where $(somedir) is conditionally defined. However this is wrong
2835 # for two reasons:
2836 # 1. if the package is installed by a user who cannot write `.'
2837 # make install will fail,
2838 # 2. the above comment should most certainly read
2839 # $(mkdir_p) $(DESTDIR)$(somedir)
2840 # so it does not work when $(somedir) is undefined and
2841 # $(DESTDIR) is not.
2842 # To support the latter case, we have to write
2843 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2844 # so the `.' trick is pointless.
2845 mkdir_p='mkdir -p --'
ab509236
L
2846else
2847 # On NextStep and OpenStep, the `mkdir' command does not
2848 # recognize any option. It will interpret all options as
2849 # directories to create, and then abort because `.' already
2850 # exists.
4b363073 2851 for d in ./-p ./--version;
ab509236
L
2852 do
2853 test -d $d && rmdir $d
2854 done
2855 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2856 if test -f "$ac_aux_dir/mkinstalldirs"; then
2857 mkdir_p='$(mkinstalldirs)'
2858 else
2859 mkdir_p='$(install_sh) -d'
2860 fi
2861fi
2862
13b2be9c
DJ
2863for ac_prog in gawk mawk nawk awk
2864do
2865 # Extract the first word of "$ac_prog", so it can be a program name with args.
2866set dummy $ac_prog; ac_word=$2
2867echo "$as_me:$LINENO: checking for $ac_word" >&5
2868echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2869if test "${ac_cv_prog_AWK+set}" = set; then
2870 echo $ECHO_N "(cached) $ECHO_C" >&6
2871else
2872 if test -n "$AWK"; then
2873 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2874else
2875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2876for as_dir in $PATH
2877do
2878 IFS=$as_save_IFS
2879 test -z "$as_dir" && as_dir=.
2880 for ac_exec_ext in '' $ac_executable_extensions; do
2881 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2882 ac_cv_prog_AWK="$ac_prog"
2883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2884 break 2
2885 fi
2886done
2887done
2888
2889fi
2890fi
2891AWK=$ac_cv_prog_AWK
2892if test -n "$AWK"; then
2893 echo "$as_me:$LINENO: result: $AWK" >&5
2894echo "${ECHO_T}$AWK" >&6
2895else
2896 echo "$as_me:$LINENO: result: no" >&5
2897echo "${ECHO_T}no" >&6
2898fi
2899
2900 test -n "$AWK" && break
2901done
2902
2903echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2904echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ab509236 2905set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
13b2be9c
DJ
2906if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2907 echo $ECHO_N "(cached) $ECHO_C" >&6
2908else
2909 cat >conftest.make <<\_ACEOF
2910all:
2911 @echo 'ac_maketemp="$(MAKE)"'
2912_ACEOF
2913# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2914eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2915if test -n "$ac_maketemp"; then
2916 eval ac_cv_prog_make_${ac_make}_set=yes
2917else
2918 eval ac_cv_prog_make_${ac_make}_set=no
2919fi
2920rm -f conftest.make
2921fi
2922if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2923 echo "$as_me:$LINENO: result: yes" >&5
2924echo "${ECHO_T}yes" >&6
2925 SET_MAKE=
2926else
2927 echo "$as_me:$LINENO: result: no" >&5
2928echo "${ECHO_T}no" >&6
2929 SET_MAKE="MAKE=${MAKE-make}"
2930fi
2931
2932rm -rf .tst 2>/dev/null
2933mkdir .tst 2>/dev/null
2934if test -d .tst; then
2935 am__leading_dot=.
2936else
2937 am__leading_dot=_
2938fi
2939rmdir .tst 2>/dev/null
2940
2941DEPDIR="${am__leading_dot}deps"
2942
2943 ac_config_commands="$ac_config_commands depfiles"
2944
2945
2946am_make=${MAKE-make}
2947cat > confinc << 'END'
2948am__doit:
2949 @echo done
2950.PHONY: am__doit
2951END
2952# If we don't find an include directive, just comment out the code.
2953echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2954echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2955am__include="#"
2956am__quote=
2957_am_result=none
2958# First try GNU make style include.
2959echo "include confinc" > confmf
2960# We grep out `Entering directory' and `Leaving directory'
2961# messages which can occur if `w' ends up in MAKEFLAGS.
2962# In particular we don't look at `^make:' because GNU make might
2963# be invoked under some other name (usually "gmake"), in which
2964# case it prints its new name instead of `make'.
2965if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2966 am__include=include
2967 am__quote=
2968 _am_result=GNU
2969fi
2970# Now try BSD make style include.
2971if test "$am__include" = "#"; then
2972 echo '.include "confinc"' > confmf
2973 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2974 am__include=.include
2975 am__quote="\""
2976 _am_result=BSD
2977 fi
2978fi
2979
2980
2981echo "$as_me:$LINENO: result: $_am_result" >&5
2982echo "${ECHO_T}$_am_result" >&6
2983rm -f confinc confmf
2984
2985# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2986if test "${enable_dependency_tracking+set}" = set; then
2987 enableval="$enable_dependency_tracking"
2988
2989fi;
2990if test "x$enable_dependency_tracking" != xno; then
2991 am_depcomp="$ac_aux_dir/depcomp"
2992 AMDEPBACKSLASH='\'
2993fi
2994
2995
2996if test "x$enable_dependency_tracking" != xno; then
2997 AMDEP_TRUE=
2998 AMDEP_FALSE='#'
2999else
3000 AMDEP_TRUE='#'
3001 AMDEP_FALSE=
3002fi
3003
3004
3005
ab509236 3006# test to see if srcdir already configured
13b2be9c
DJ
3007if test "`cd $srcdir && pwd`" != "`pwd`" &&
3008 test -f $srcdir/config.status; then
3009 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3010echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3011 { (exit 1); exit 1; }; }
3012fi
3013
3014# test whether we have cygpath
3015if test -z "$CYGPATH_W"; then
3016 if (cygpath --version) >/dev/null 2>/dev/null; then
3017 CYGPATH_W='cygpath -w'
3018 else
3019 CYGPATH_W=echo
3020 fi
3021fi
3022
3023
3024# Define the identity of the package.
3025 PACKAGE=gas
3026 VERSION=${BFD_VERSION}
3027
3028
3029cat >>confdefs.h <<_ACEOF
3030#define PACKAGE "$PACKAGE"
3031_ACEOF
3032
3033
3034cat >>confdefs.h <<_ACEOF
3035#define VERSION "$VERSION"
3036_ACEOF
3037
3038# Some tools Automake needs.
3039
3040ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3041
3042
3043AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3044
3045
3046AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3047
3048
3049AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3050
3051
3052MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3053
13b2be9c
DJ
3054install_sh=${install_sh-"$am_aux_dir/install-sh"}
3055
3056# Installed binaries are usually stripped using `strip' when the user
3057# run `make install-strip'. However `strip' might not be the right
3058# tool to use in cross-compilation environments, therefore Automake
3059# will honor the `STRIP' environment variable to overrule this program.
3060if test "$cross_compiling" != no; then
3061 if test -n "$ac_tool_prefix"; then
3062 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3063set dummy ${ac_tool_prefix}strip; ac_word=$2
3064echo "$as_me:$LINENO: checking for $ac_word" >&5
3065echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3066if test "${ac_cv_prog_STRIP+set}" = set; then
3067 echo $ECHO_N "(cached) $ECHO_C" >&6
3068else
3069 if test -n "$STRIP"; then
3070 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
252b5132 3071else
13b2be9c
DJ
3072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3073for as_dir in $PATH
3074do
3075 IFS=$as_save_IFS
3076 test -z "$as_dir" && as_dir=.
3077 for ac_exec_ext in '' $ac_executable_extensions; do
3078 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3079 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3081 break 2
3082 fi
3083done
3084done
3085
252b5132 3086fi
13b2be9c
DJ
3087fi
3088STRIP=$ac_cv_prog_STRIP
3089if test -n "$STRIP"; then
3090 echo "$as_me:$LINENO: result: $STRIP" >&5
3091echo "${ECHO_T}$STRIP" >&6
c8615825 3092else
13b2be9c
DJ
3093 echo "$as_me:$LINENO: result: no" >&5
3094echo "${ECHO_T}no" >&6
c8615825 3095fi
c8615825 3096
13b2be9c
DJ
3097fi
3098if test -z "$ac_cv_prog_STRIP"; then
3099 ac_ct_STRIP=$STRIP
3100 # Extract the first word of "strip", so it can be a program name with args.
3101set dummy strip; ac_word=$2
3102echo "$as_me:$LINENO: checking for $ac_word" >&5
3103echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3104if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3105 echo $ECHO_N "(cached) $ECHO_C" >&6
c8615825 3106else
13b2be9c
DJ
3107 if test -n "$ac_ct_STRIP"; then
3108 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
252b5132 3109else
13b2be9c
DJ
3110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3111for as_dir in $PATH
3112do
3113 IFS=$as_save_IFS
3114 test -z "$as_dir" && as_dir=.
3115 for ac_exec_ext in '' $ac_executable_extensions; do
3116 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3117 ac_cv_prog_ac_ct_STRIP="strip"
3118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3119 break 2
3120 fi
3121done
3122done
3123
3124 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
252b5132 3125fi
252b5132 3126fi
13b2be9c
DJ
3127ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3128if test -n "$ac_ct_STRIP"; then
3129 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3130echo "${ECHO_T}$ac_ct_STRIP" >&6
252b5132 3131else
13b2be9c
DJ
3132 echo "$as_me:$LINENO: result: no" >&5
3133echo "${ECHO_T}no" >&6
252b5132
RH
3134fi
3135
13b2be9c
DJ
3136 STRIP=$ac_ct_STRIP
3137else
3138 STRIP="$ac_cv_prog_STRIP"
3139fi
d6d788bd 3140
252b5132 3141fi
13b2be9c 3142INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
252b5132 3143
13b2be9c
DJ
3144# We need awk for the "check" target. The system "awk" is bad on
3145# some platforms.
8ea2b00f
AM
3146# Always define AMTAR for backward compatibility.
3147
3148AMTAR=${AMTAR-"${am_missing_run}tar"}
3149
3150am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3151
3152
252b5132 3153
d6d788bd 3154
13b2be9c 3155depcc="$CC" am_compiler_list=
d6d788bd 3156
13b2be9c
DJ
3157echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3158echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3159if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3160 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3161else
13b2be9c
DJ
3162 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3163 # We make a subdir and do the tests there. Otherwise we can end up
3164 # making bogus files that we don't know about and never remove. For
3165 # instance it was reported that on HP-UX the gcc test will end up
3166 # making a dummy file named `D' -- because `-MD' means `put the output
3167 # in D'.
3168 mkdir conftest.dir
3169 # Copy depcomp to subdir because otherwise we won't find it if we're
3170 # using a relative directory.
3171 cp "$am_depcomp" conftest.dir
3172 cd conftest.dir
3173 # We will build objects and dependencies in a subdirectory because
3174 # it helps to detect inapplicable dependency modes. For instance
3175 # both Tru64's cc and ICC support -MD to output dependencies as a
3176 # side effect of compilation, but ICC will put the dependencies in
3177 # the current directory while Tru64 will put them in the object
3178 # directory.
3179 mkdir sub
252b5132 3180
13b2be9c
DJ
3181 am_cv_CC_dependencies_compiler_type=none
3182 if test "$am_compiler_list" = ""; then
3183 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3184 fi
3185 for depmode in $am_compiler_list; do
3186 # Setup a source with many dependencies, because some compilers
3187 # like to wrap large dependency lists on column 80 (with \), and
3188 # we should not choose a depcomp mode which is confused by this.
3189 #
3190 # We need to recreate these files for each test, as the compiler may
3191 # overwrite some of them when testing with obscure command lines.
3192 # This happens at least with the AIX C compiler.
3193 : > sub/conftest.c
3194 for i in 1 2 3 4 5 6; do
3195 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4b363073
NC
3196 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3197 # Solaris 8's {/usr,}/bin/sh.
3198 touch sub/conftst$i.h
13b2be9c
DJ
3199 done
3200 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3201
3202 case $depmode in
3203 nosideeffect)
3204 # after this tag, mechanisms are not by side-effect, so they'll
3205 # only be used when explicitly requested
3206 if test "x$enable_dependency_tracking" = xyes; then
3207 continue
3208 else
3209 break
3210 fi
3211 ;;
3212 none) break ;;
3213 esac
3214 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3215 # mode. It turns out that the SunPro C++ compiler does not properly
3216 # handle `-M -o', and we need to detect this.
3217 if depmode=$depmode \
3218 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3219 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3220 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3221 >/dev/null 2>conftest.err &&
3222 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3223 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3224 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3225 # icc doesn't choke on unknown options, it will just issue warnings
4b363073
NC
3226 # or remarks (even with -Werror). So we grep stderr for any message
3227 # that says an option was ignored or not supported.
3228 # When given -MP, icc 7.0 and 7.1 complain thusly:
3229 # icc: Command line warning: ignoring option '-M'; no argument required
3230 # The diagnosis changed in icc 8.0:
3231 # icc: Command line remark: option '-MP' not supported
3232 if (grep 'ignoring option' conftest.err ||
3233 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13b2be9c
DJ
3234 am_cv_CC_dependencies_compiler_type=$depmode
3235 break
3236 fi
3237 fi
3238 done
252b5132 3239
13b2be9c
DJ
3240 cd ..
3241 rm -rf conftest.dir
252b5132 3242else
13b2be9c 3243 am_cv_CC_dependencies_compiler_type=none
252b5132
RH
3244fi
3245
252b5132 3246fi
13b2be9c
DJ
3247echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3248echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3249CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
252b5132 3250
13b2be9c
DJ
3251
3252
3253if
3254 test "x$enable_dependency_tracking" != xno \
3255 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3256 am__fastdepCC_TRUE=
3257 am__fastdepCC_FALSE='#'
252b5132 3258else
13b2be9c
DJ
3259 am__fastdepCC_TRUE='#'
3260 am__fastdepCC_FALSE=
252b5132
RH
3261fi
3262
d6d788bd
L
3263
3264
13b2be9c 3265
ce2cded5
L
3266ac_ext=c
3267ac_cpp='$CPP $CPPFLAGS'
3268ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3269ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3270ac_compiler_gnu=$ac_cv_c_compiler_gnu
3271if test -n "$ac_tool_prefix"; then
3272 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3273set dummy ${ac_tool_prefix}gcc; ac_word=$2
3274echo "$as_me:$LINENO: checking for $ac_word" >&5
3275echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3276if test "${ac_cv_prog_CC+set}" = set; then
3277 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3278else
ce2cded5
L
3279 if test -n "$CC"; then
3280 ac_cv_prog_CC="$CC" # Let the user override the test.
d7040cdb 3281else
ce2cded5
L
3282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3283for as_dir in $PATH
3284do
3285 IFS=$as_save_IFS
3286 test -z "$as_dir" && as_dir=.
3287 for ac_exec_ext in '' $ac_executable_extensions; do
3288 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3289 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3291 break 2
3292 fi
3293done
3294done
d7040cdb 3295
ce2cded5
L
3296fi
3297fi
3298CC=$ac_cv_prog_CC
3299if test -n "$CC"; then
3300 echo "$as_me:$LINENO: result: $CC" >&5
3301echo "${ECHO_T}$CC" >&6
bedf545c 3302else
ce2cded5
L
3303 echo "$as_me:$LINENO: result: no" >&5
3304echo "${ECHO_T}no" >&6
3305fi
d7040cdb 3306
ce2cded5
L
3307fi
3308if test -z "$ac_cv_prog_CC"; then
3309 ac_ct_CC=$CC
3310 # Extract the first word of "gcc", so it can be a program name with args.
3311set dummy gcc; ac_word=$2
3312echo "$as_me:$LINENO: checking for $ac_word" >&5
3313echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3314if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
d7040cdb
SE
3315 echo $ECHO_N "(cached) $ECHO_C" >&6
3316else
ce2cded5
L
3317 if test -n "$ac_ct_CC"; then
3318 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3319else
d7040cdb
SE
3320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3321for as_dir in $PATH
3322do
3323 IFS=$as_save_IFS
3324 test -z "$as_dir" && as_dir=.
ce2cded5
L
3325 for ac_exec_ext in '' $ac_executable_extensions; do
3326 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3327 ac_cv_prog_ac_ct_CC="gcc"
3328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3329 break 2
d7040cdb 3330 fi
ce2cded5 3331done
d7040cdb
SE
3332done
3333
ce2cded5
L
3334fi
3335fi
3336ac_ct_CC=$ac_cv_prog_ac_ct_CC
3337if test -n "$ac_ct_CC"; then
3338 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3339echo "${ECHO_T}$ac_ct_CC" >&6
3340else
3341 echo "$as_me:$LINENO: result: no" >&5
3342echo "${ECHO_T}no" >&6
d7040cdb
SE
3343fi
3344
ce2cded5
L
3345 CC=$ac_ct_CC
3346else
3347 CC="$ac_cv_prog_CC"
3348fi
d7040cdb 3349
ce2cded5
L
3350if test -z "$CC"; then
3351 if test -n "$ac_tool_prefix"; then
3352 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3353set dummy ${ac_tool_prefix}cc; ac_word=$2
3354echo "$as_me:$LINENO: checking for $ac_word" >&5
3355echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3356if test "${ac_cv_prog_CC+set}" = set; then
d7040cdb
SE
3357 echo $ECHO_N "(cached) $ECHO_C" >&6
3358else
ce2cded5
L
3359 if test -n "$CC"; then
3360 ac_cv_prog_CC="$CC" # Let the user override the test.
d7040cdb 3361else
ce2cded5
L
3362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3363for as_dir in $PATH
3364do
3365 IFS=$as_save_IFS
3366 test -z "$as_dir" && as_dir=.
3367 for ac_exec_ext in '' $ac_executable_extensions; do
3368 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3369 ac_cv_prog_CC="${ac_tool_prefix}cc"
3370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3371 break 2
3372 fi
3373done
3374done
d7040cdb 3375
252b5132
RH
3376fi
3377fi
ce2cded5
L
3378CC=$ac_cv_prog_CC
3379if test -n "$CC"; then
3380 echo "$as_me:$LINENO: result: $CC" >&5
3381echo "${ECHO_T}$CC" >&6
252b5132 3382else
13b2be9c
DJ
3383 echo "$as_me:$LINENO: result: no" >&5
3384echo "${ECHO_T}no" >&6
252b5132 3385fi
d7040cdb 3386
252b5132 3387fi
ce2cded5
L
3388if test -z "$ac_cv_prog_CC"; then
3389 ac_ct_CC=$CC
3390 # Extract the first word of "cc", so it can be a program name with args.
3391set dummy cc; ac_word=$2
d7040cdb
SE
3392echo "$as_me:$LINENO: checking for $ac_word" >&5
3393echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ce2cded5 3394if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
13b2be9c 3395 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3396else
ce2cded5
L
3397 if test -n "$ac_ct_CC"; then
3398 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
d7040cdb
SE
3399else
3400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3401for as_dir in $PATH
3402do
3403 IFS=$as_save_IFS
3404 test -z "$as_dir" && as_dir=.
3405 for ac_exec_ext in '' $ac_executable_extensions; do
3406 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ce2cded5 3407 ac_cv_prog_ac_ct_CC="cc"
d7040cdb
SE
3408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3409 break 2
3410 fi
3411done
3412done
ac48eca1 3413
d7040cdb
SE
3414fi
3415fi
ce2cded5
L
3416ac_ct_CC=$ac_cv_prog_ac_ct_CC
3417if test -n "$ac_ct_CC"; then
3418 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3419echo "${ECHO_T}$ac_ct_CC" >&6
3420else
3421 echo "$as_me:$LINENO: result: no" >&5
d7040cdb
SE
3422echo "${ECHO_T}no" >&6
3423fi
f9c19112 3424
ce2cded5
L
3425 CC=$ac_ct_CC
3426else
3427 CC="$ac_cv_prog_CC"
3428fi
3429
3430fi
3431if test -z "$CC"; then
3432 # Extract the first word of "cc", so it can be a program name with args.
3433set dummy cc; ac_word=$2
3434echo "$as_me:$LINENO: checking for $ac_word" >&5
3435echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3436if test "${ac_cv_prog_CC+set}" = set; then
3437 echo $ECHO_N "(cached) $ECHO_C" >&6
3438else
3439 if test -n "$CC"; then
3440 ac_cv_prog_CC="$CC" # Let the user override the test.
3441else
3442 ac_prog_rejected=no
3443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3444for as_dir in $PATH
3445do
3446 IFS=$as_save_IFS
3447 test -z "$as_dir" && as_dir=.
3448 for ac_exec_ext in '' $ac_executable_extensions; do
3449 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3450 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3451 ac_prog_rejected=yes
3452 continue
3453 fi
3454 ac_cv_prog_CC="cc"
3455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3456 break 2
3457 fi
3458done
3459done
3460
3461if test $ac_prog_rejected = yes; then
3462 # We found a bogon in the path, so make sure we never use it.
3463 set dummy $ac_cv_prog_CC
3464 shift
3465 if test $# != 0; then
3466 # We chose a different compiler from the bogus one.
3467 # However, it has the same basename, so the bogon will be chosen
3468 # first if we set CC to just the basename; use the full file name.
3469 shift
3470 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3471 fi
3472fi
3473fi
3474fi
3475CC=$ac_cv_prog_CC
3476if test -n "$CC"; then
3477 echo "$as_me:$LINENO: result: $CC" >&5
3478echo "${ECHO_T}$CC" >&6
3479else
3480 echo "$as_me:$LINENO: result: no" >&5
3481echo "${ECHO_T}no" >&6
3482fi
3483
3484fi
3485if test -z "$CC"; then
3486 if test -n "$ac_tool_prefix"; then
3487 for ac_prog in cl
3488 do
3489 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3490set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3491echo "$as_me:$LINENO: checking for $ac_word" >&5
3492echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3493if test "${ac_cv_prog_CC+set}" = set; then
3494 echo $ECHO_N "(cached) $ECHO_C" >&6
3495else
3496 if test -n "$CC"; then
3497 ac_cv_prog_CC="$CC" # Let the user override the test.
3498else
3499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3500for as_dir in $PATH
3501do
3502 IFS=$as_save_IFS
3503 test -z "$as_dir" && as_dir=.
3504 for ac_exec_ext in '' $ac_executable_extensions; do
3505 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3506 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3508 break 2
3509 fi
3510done
3511done
3512
3513fi
3514fi
3515CC=$ac_cv_prog_CC
3516if test -n "$CC"; then
3517 echo "$as_me:$LINENO: result: $CC" >&5
3518echo "${ECHO_T}$CC" >&6
3519else
3520 echo "$as_me:$LINENO: result: no" >&5
3521echo "${ECHO_T}no" >&6
3522fi
3523
3524 test -n "$CC" && break
d7040cdb
SE
3525 done
3526fi
ce2cded5
L
3527if test -z "$CC"; then
3528 ac_ct_CC=$CC
3529 for ac_prog in cl
d7040cdb
SE
3530do
3531 # Extract the first word of "$ac_prog", so it can be a program name with args.
3532set dummy $ac_prog; ac_word=$2
3533echo "$as_me:$LINENO: checking for $ac_word" >&5
3534echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ce2cded5 3535if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
d7040cdb
SE
3536 echo $ECHO_N "(cached) $ECHO_C" >&6
3537else
ce2cded5
L
3538 if test -n "$ac_ct_CC"; then
3539 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
d7040cdb
SE
3540else
3541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3542for as_dir in $PATH
3543do
3544 IFS=$as_save_IFS
3545 test -z "$as_dir" && as_dir=.
3546 for ac_exec_ext in '' $ac_executable_extensions; do
3547 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ce2cded5 3548 ac_cv_prog_ac_ct_CC="$ac_prog"
d7040cdb
SE
3549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3550 break 2
ac48eca1 3551 fi
d7040cdb
SE
3552done
3553done
ac48eca1 3554
d7040cdb
SE
3555fi
3556fi
ce2cded5
L
3557ac_ct_CC=$ac_cv_prog_ac_ct_CC
3558if test -n "$ac_ct_CC"; then
3559 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3560echo "${ECHO_T}$ac_ct_CC" >&6
d7040cdb
SE
3561else
3562 echo "$as_me:$LINENO: result: no" >&5
3563echo "${ECHO_T}no" >&6
3564fi
ac48eca1 3565
ce2cded5 3566 test -n "$ac_ct_CC" && break
d7040cdb 3567done
ac48eca1 3568
ce2cded5 3569 CC=$ac_ct_CC
d7040cdb 3570fi
ac48eca1 3571
d7040cdb 3572fi
ac48eca1 3573
ac48eca1 3574
7a283e07
RW
3575test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3576echo "$as_me: error: in \`$ac_pwd':" >&2;}
3577{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
ce2cded5
L
3578See \`config.log' for more details." >&5
3579echo "$as_me: error: no acceptable C compiler found in \$PATH
3580See \`config.log' for more details." >&2;}
7a283e07 3581 { (exit 1); exit 1; }; }; }
6be7c12c 3582
ce2cded5
L
3583# Provide some information about the compiler.
3584echo "$as_me:$LINENO:" \
3585 "checking for C compiler version" >&5
3586ac_compiler=`set X $ac_compile; echo $2`
3587{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3588 (eval $ac_compiler --version </dev/null >&5) 2>&5
3589 ac_status=$?
3590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3591 (exit $ac_status); }
3592{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3593 (eval $ac_compiler -v </dev/null >&5) 2>&5
3594 ac_status=$?
3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596 (exit $ac_status); }
3597{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3598 (eval $ac_compiler -V </dev/null >&5) 2>&5
3599 ac_status=$?
3600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601 (exit $ac_status); }
ac48eca1 3602
ce2cded5
L
3603echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3604echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3605if test "${ac_cv_c_compiler_gnu+set}" = set; then
d7040cdb
SE
3606 echo $ECHO_N "(cached) $ECHO_C" >&6
3607else
ce2cded5
L
3608 cat >conftest.$ac_ext <<_ACEOF
3609/* confdefs.h. */
3610_ACEOF
3611cat confdefs.h >>conftest.$ac_ext
3612cat >>conftest.$ac_ext <<_ACEOF
3613/* end confdefs.h. */
c8615825 3614
ce2cded5
L
3615int
3616main ()
3617{
3618#ifndef __GNUC__
3619 choke me
3620#endif
3621
3622 ;
3623 return 0;
3624}
3625_ACEOF
3626rm -f conftest.$ac_objext
3627if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3628 (eval $ac_compile) 2>conftest.er1
3629 ac_status=$?
3630 grep -v '^ *+' conftest.er1 >conftest.err
3631 rm -f conftest.er1
3632 cat conftest.err >&5
3633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634 (exit $ac_status); } &&
3635 { ac_try='test -z "$ac_c_werror_flag"
3636 || test ! -s conftest.err'
3637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3638 (eval $ac_try) 2>&5
3639 ac_status=$?
3640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641 (exit $ac_status); }; } &&
3642 { ac_try='test -s conftest.$ac_objext'
3643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3644 (eval $ac_try) 2>&5
3645 ac_status=$?
3646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3647 (exit $ac_status); }; }; then
3648 ac_compiler_gnu=yes
d7040cdb 3649else
ce2cded5
L
3650 echo "$as_me: failed program was:" >&5
3651sed 's/^/| /' conftest.$ac_ext >&5
3652
3653ac_compiler_gnu=no
d7040cdb 3654fi
ce2cded5
L
3655rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3656ac_cv_c_compiler_gnu=$ac_compiler_gnu
ac48eca1 3657
ce2cded5
L
3658fi
3659echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3660echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3661GCC=`test $ac_compiler_gnu = yes && echo yes`
3662ac_test_CFLAGS=${CFLAGS+set}
3663ac_save_CFLAGS=$CFLAGS
3664CFLAGS="-g"
3665echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3666echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3667if test "${ac_cv_prog_cc_g+set}" = set; then
d70c5fc7
NC
3668 echo $ECHO_N "(cached) $ECHO_C" >&6
3669else
ce2cded5
L
3670 cat >conftest.$ac_ext <<_ACEOF
3671/* confdefs.h. */
3672_ACEOF
3673cat confdefs.h >>conftest.$ac_ext
3674cat >>conftest.$ac_ext <<_ACEOF
3675/* end confdefs.h. */
d7040cdb 3676
ce2cded5
L
3677int
3678main ()
3679{
d7040cdb 3680
ce2cded5
L
3681 ;
3682 return 0;
3683}
3684_ACEOF
3685rm -f conftest.$ac_objext
3686if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3687 (eval $ac_compile) 2>conftest.er1
3688 ac_status=$?
3689 grep -v '^ *+' conftest.er1 >conftest.err
3690 rm -f conftest.er1
3691 cat conftest.err >&5
3692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693 (exit $ac_status); } &&
3694 { ac_try='test -z "$ac_c_werror_flag"
3695 || test ! -s conftest.err'
3696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3697 (eval $ac_try) 2>&5
3698 ac_status=$?
3699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700 (exit $ac_status); }; } &&
3701 { ac_try='test -s conftest.$ac_objext'
3702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3703 (eval $ac_try) 2>&5
3704 ac_status=$?
3705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706 (exit $ac_status); }; }; then
3707 ac_cv_prog_cc_g=yes
3708else
3709 echo "$as_me: failed program was:" >&5
3710sed 's/^/| /' conftest.$ac_ext >&5
d70c5fc7 3711
ce2cded5 3712ac_cv_prog_cc_g=no
d70c5fc7 3713fi
ce2cded5 3714rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d70c5fc7 3715fi
ce2cded5
L
3716echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3717echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3718if test "$ac_test_CFLAGS" = set; then
3719 CFLAGS=$ac_save_CFLAGS
3720elif test $ac_cv_prog_cc_g = yes; then
3721 if test "$GCC" = yes; then
3722 CFLAGS="-g -O2"
3723 else
3724 CFLAGS="-g"
3725 fi
ac48eca1 3726else
ce2cded5
L
3727 if test "$GCC" = yes; then
3728 CFLAGS="-O2"
3729 else
3730 CFLAGS=
3731 fi
ac48eca1 3732fi
ce2cded5
L
3733echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3734echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3735if test "${ac_cv_prog_cc_stdc+set}" = set; then
13b2be9c 3736 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3737else
ce2cded5
L
3738 ac_cv_prog_cc_stdc=no
3739ac_save_CC=$CC
3740cat >conftest.$ac_ext <<_ACEOF
3741/* confdefs.h. */
3742_ACEOF
3743cat confdefs.h >>conftest.$ac_ext
3744cat >>conftest.$ac_ext <<_ACEOF
3745/* end confdefs.h. */
3746#include <stdarg.h>
3747#include <stdio.h>
3748#include <sys/types.h>
3749#include <sys/stat.h>
3750/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3751struct buf { int x; };
3752FILE * (*rcsopen) (struct buf *, struct stat *, int);
3753static char *e (p, i)
3754 char **p;
3755 int i;
3756{
3757 return p[i];
3758}
3759static char *f (char * (*g) (char **, int), char **p, ...)
3760{
3761 char *s;
3762 va_list v;
3763 va_start (v,p);
3764 s = g (p, va_arg (v,int));
3765 va_end (v);
3766 return s;
3767}
3768
3769/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3770 function prototypes and stuff, but not '\xHH' hex character constants.
3771 These don't provoke an error unfortunately, instead are silently treated
3772 as 'x'. The following induces an error, until -std1 is added to get
3773 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3774 array size at least. It's necessary to write '\x00'==0 to get something
3775 that's true only with -std1. */
3776int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3777
3778int test (int i, double x);
3779struct s1 {int (*f) (int a);};
3780struct s2 {int (*f) (double a);};
3781int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3782int argc;
3783char **argv;
3784int
3785main ()
3786{
3787return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3788 ;
3789 return 0;
3790}
3791_ACEOF
3792# Don't try gcc -ansi; that turns off useful extensions and
3793# breaks some systems' header files.
3794# AIX -qlanglvl=ansi
3795# Ultrix and OSF/1 -std1
3796# HP-UX 10.20 and later -Ae
3797# HP-UX older versions -Aa -D_HPUX_SOURCE
3798# SVR4 -Xc -D__EXTENSIONS__
3799for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3800do
3801 CC="$ac_save_CC $ac_arg"
3802 rm -f conftest.$ac_objext
3803if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3804 (eval $ac_compile) 2>conftest.er1
3805 ac_status=$?
3806 grep -v '^ *+' conftest.er1 >conftest.err
3807 rm -f conftest.er1
3808 cat conftest.err >&5
3809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810 (exit $ac_status); } &&
3811 { ac_try='test -z "$ac_c_werror_flag"
3812 || test ! -s conftest.err'
3813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3814 (eval $ac_try) 2>&5
3815 ac_status=$?
3816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817 (exit $ac_status); }; } &&
3818 { ac_try='test -s conftest.$ac_objext'
3819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3820 (eval $ac_try) 2>&5
3821 ac_status=$?
3822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3823 (exit $ac_status); }; }; then
3824 ac_cv_prog_cc_stdc=$ac_arg
3825break
3826else
3827 echo "$as_me: failed program was:" >&5
3828sed 's/^/| /' conftest.$ac_ext >&5
3829
3830fi
3831rm -f conftest.err conftest.$ac_objext
3832done
3833rm -f conftest.$ac_ext conftest.$ac_objext
3834CC=$ac_save_CC
3835
3836fi
3837
3838case "x$ac_cv_prog_cc_stdc" in
3839 x|xno)
3840 echo "$as_me:$LINENO: result: none needed" >&5
3841echo "${ECHO_T}none needed" >&6 ;;
3842 *)
3843 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3844echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3845 CC="$CC $ac_cv_prog_cc_stdc" ;;
d7040cdb
SE
3846esac
3847
ce2cded5
L
3848# Some people use a C++ compiler to compile C. Since we use `exit',
3849# in C++ we need to declare it. In case someone uses the same compiler
3850# for both compiling C and C++ we need to have the C++ compiler decide
3851# the declaration of exit, since it's the most demanding environment.
3852cat >conftest.$ac_ext <<_ACEOF
3853#ifndef __cplusplus
3854 choke me
3855#endif
3856_ACEOF
3857rm -f conftest.$ac_objext
3858if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3859 (eval $ac_compile) 2>conftest.er1
3860 ac_status=$?
3861 grep -v '^ *+' conftest.er1 >conftest.err
3862 rm -f conftest.er1
3863 cat conftest.err >&5
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); } &&
3866 { ac_try='test -z "$ac_c_werror_flag"
3867 || test ! -s conftest.err'
3868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3869 (eval $ac_try) 2>&5
3870 ac_status=$?
3871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872 (exit $ac_status); }; } &&
3873 { ac_try='test -s conftest.$ac_objext'
3874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3875 (eval $ac_try) 2>&5
3876 ac_status=$?
3877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878 (exit $ac_status); }; }; then
3879 for ac_declaration in \
3880 '' \
3881 'extern "C" void std::exit (int) throw (); using std::exit;' \
3882 'extern "C" void std::exit (int); using std::exit;' \
3883 'extern "C" void exit (int) throw ();' \
3884 'extern "C" void exit (int);' \
3885 'void exit (int);'
3886do
3887 cat >conftest.$ac_ext <<_ACEOF
3888/* confdefs.h. */
3889_ACEOF
3890cat confdefs.h >>conftest.$ac_ext
3891cat >>conftest.$ac_ext <<_ACEOF
3892/* end confdefs.h. */
3893$ac_declaration
3894#include <stdlib.h>
3895int
3896main ()
3897{
3898exit (42);
3899 ;
3900 return 0;
3901}
3902_ACEOF
3903rm -f conftest.$ac_objext
3904if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3905 (eval $ac_compile) 2>conftest.er1
3906 ac_status=$?
3907 grep -v '^ *+' conftest.er1 >conftest.err
3908 rm -f conftest.er1
3909 cat conftest.err >&5
3910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911 (exit $ac_status); } &&
3912 { ac_try='test -z "$ac_c_werror_flag"
3913 || test ! -s conftest.err'
3914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3915 (eval $ac_try) 2>&5
3916 ac_status=$?
3917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3918 (exit $ac_status); }; } &&
3919 { ac_try='test -s conftest.$ac_objext'
3920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3921 (eval $ac_try) 2>&5
3922 ac_status=$?
3923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3924 (exit $ac_status); }; }; then
3925 :
3926else
3927 echo "$as_me: failed program was:" >&5
3928sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 3929
ce2cded5
L
3930continue
3931fi
3932rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3933 cat >conftest.$ac_ext <<_ACEOF
3934/* confdefs.h. */
3935_ACEOF
3936cat confdefs.h >>conftest.$ac_ext
3937cat >>conftest.$ac_ext <<_ACEOF
3938/* end confdefs.h. */
3939$ac_declaration
3940int
3941main ()
3942{
3943exit (42);
3944 ;
3945 return 0;
3946}
3947_ACEOF
3948rm -f conftest.$ac_objext
3949if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3950 (eval $ac_compile) 2>conftest.er1
3951 ac_status=$?
3952 grep -v '^ *+' conftest.er1 >conftest.err
3953 rm -f conftest.er1
3954 cat conftest.err >&5
3955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3956 (exit $ac_status); } &&
3957 { ac_try='test -z "$ac_c_werror_flag"
3958 || test ! -s conftest.err'
3959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3960 (eval $ac_try) 2>&5
3961 ac_status=$?
3962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963 (exit $ac_status); }; } &&
3964 { ac_try='test -s conftest.$ac_objext'
3965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3966 (eval $ac_try) 2>&5
3967 ac_status=$?
3968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969 (exit $ac_status); }; }; then
3970 break
3971else
3972 echo "$as_me: failed program was:" >&5
3973sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 3974
ce2cded5
L
3975fi
3976rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3977done
3978rm -f conftest*
3979if test -n "$ac_declaration"; then
3980 echo '#ifdef __cplusplus' >>confdefs.h
3981 echo $ac_declaration >>confdefs.h
3982 echo '#endif' >>confdefs.h
3983fi
d7040cdb 3984
ce2cded5
L
3985else
3986 echo "$as_me: failed program was:" >&5
3987sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 3988
ce2cded5
L
3989fi
3990rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3991ac_ext=c
3992ac_cpp='$CPP $CPPFLAGS'
3993ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3994ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3995ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb
SE
3996
3997
ce2cded5
L
3998cat >>confdefs.h <<\_ACEOF
3999#define _GNU_SOURCE 1
4000_ACEOF
d7040cdb
SE
4001
4002
7357c5b6
AM
4003ac_ext=c
4004ac_cpp='$CPP $CPPFLAGS'
4005ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4006ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4007ac_compiler_gnu=$ac_cv_c_compiler_gnu
4008echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4009echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4010# On Suns, sometimes $CPP names a directory.
4011if test -n "$CPP" && test -d "$CPP"; then
4012 CPP=
4013fi
4014if test -z "$CPP"; then
4015 if test "${ac_cv_prog_CPP+set}" = set; then
4016 echo $ECHO_N "(cached) $ECHO_C" >&6
4017else
4018 # Double quotes because CPP needs to be expanded
4019 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4020 do
4021 ac_preproc_ok=false
4022for ac_c_preproc_warn_flag in '' yes
4023do
4024 # Use a header file that comes with gcc, so configuring glibc
4025 # with a fresh cross-compiler works.
4026 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4027 # <limits.h> exists even on freestanding compilers.
4028 # On the NeXT, cc -E runs the code through the compiler's parser,
4029 # not just through cpp. "Syntax error" is here to catch this case.
4030 cat >conftest.$ac_ext <<_ACEOF
4031/* confdefs.h. */
4032_ACEOF
4033cat confdefs.h >>conftest.$ac_ext
4034cat >>conftest.$ac_ext <<_ACEOF
4035/* end confdefs.h. */
4036#ifdef __STDC__
4037# include <limits.h>
4038#else
4039# include <assert.h>
4040#endif
4041 Syntax error
4042_ACEOF
4043if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4044 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4045 ac_status=$?
4046 grep -v '^ *+' conftest.er1 >conftest.err
4047 rm -f conftest.er1
4048 cat conftest.err >&5
4049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050 (exit $ac_status); } >/dev/null; then
4051 if test -s conftest.err; then
4052 ac_cpp_err=$ac_c_preproc_warn_flag
4053 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4054 else
4055 ac_cpp_err=
4056 fi
4057else
4058 ac_cpp_err=yes
4059fi
4060if test -z "$ac_cpp_err"; then
4061 :
4062else
4063 echo "$as_me: failed program was:" >&5
4064sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4065
7357c5b6
AM
4066 # Broken: fails on valid input.
4067continue
4068fi
4069rm -f conftest.err conftest.$ac_ext
d7040cdb 4070
7357c5b6
AM
4071 # OK, works on sane cases. Now check whether non-existent headers
4072 # can be detected and how.
4073 cat >conftest.$ac_ext <<_ACEOF
4074/* confdefs.h. */
4075_ACEOF
4076cat confdefs.h >>conftest.$ac_ext
4077cat >>conftest.$ac_ext <<_ACEOF
4078/* end confdefs.h. */
4079#include <ac_nonexistent.h>
4080_ACEOF
4081if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4082 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4083 ac_status=$?
4084 grep -v '^ *+' conftest.er1 >conftest.err
4085 rm -f conftest.er1
4086 cat conftest.err >&5
4087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088 (exit $ac_status); } >/dev/null; then
4089 if test -s conftest.err; then
4090 ac_cpp_err=$ac_c_preproc_warn_flag
4091 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4092 else
4093 ac_cpp_err=
4094 fi
4095else
4096 ac_cpp_err=yes
4097fi
4098if test -z "$ac_cpp_err"; then
4099 # Broken: success on invalid input.
4100continue
4101else
4102 echo "$as_me: failed program was:" >&5
4103sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4104
7357c5b6
AM
4105 # Passes both tests.
4106ac_preproc_ok=:
4107break
4108fi
4109rm -f conftest.err conftest.$ac_ext
d7040cdb 4110
7357c5b6
AM
4111done
4112# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4113rm -f conftest.err conftest.$ac_ext
4114if $ac_preproc_ok; then
4115 break
4116fi
d7040cdb 4117
7357c5b6
AM
4118 done
4119 ac_cv_prog_CPP=$CPP
d7040cdb 4120
7357c5b6
AM
4121fi
4122 CPP=$ac_cv_prog_CPP
4123else
4124 ac_cv_prog_CPP=$CPP
4125fi
4126echo "$as_me:$LINENO: result: $CPP" >&5
4127echo "${ECHO_T}$CPP" >&6
4128ac_preproc_ok=false
4129for ac_c_preproc_warn_flag in '' yes
4130do
4131 # Use a header file that comes with gcc, so configuring glibc
4132 # with a fresh cross-compiler works.
4133 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4134 # <limits.h> exists even on freestanding compilers.
4135 # On the NeXT, cc -E runs the code through the compiler's parser,
4136 # not just through cpp. "Syntax error" is here to catch this case.
4137 cat >conftest.$ac_ext <<_ACEOF
4138/* confdefs.h. */
4139_ACEOF
4140cat confdefs.h >>conftest.$ac_ext
4141cat >>conftest.$ac_ext <<_ACEOF
4142/* end confdefs.h. */
4143#ifdef __STDC__
4144# include <limits.h>
4145#else
4146# include <assert.h>
4147#endif
4148 Syntax error
4149_ACEOF
4150if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4151 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4152 ac_status=$?
4153 grep -v '^ *+' conftest.er1 >conftest.err
4154 rm -f conftest.er1
4155 cat conftest.err >&5
4156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157 (exit $ac_status); } >/dev/null; then
4158 if test -s conftest.err; then
4159 ac_cpp_err=$ac_c_preproc_warn_flag
4160 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4161 else
4162 ac_cpp_err=
4163 fi
4164else
4165 ac_cpp_err=yes
4166fi
4167if test -z "$ac_cpp_err"; then
4168 :
4169else
4170 echo "$as_me: failed program was:" >&5
4171sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4172
7357c5b6
AM
4173 # Broken: fails on valid input.
4174continue
4175fi
4176rm -f conftest.err conftest.$ac_ext
d7040cdb 4177
7357c5b6
AM
4178 # OK, works on sane cases. Now check whether non-existent headers
4179 # can be detected and how.
4180 cat >conftest.$ac_ext <<_ACEOF
4181/* confdefs.h. */
4182_ACEOF
4183cat confdefs.h >>conftest.$ac_ext
4184cat >>conftest.$ac_ext <<_ACEOF
4185/* end confdefs.h. */
4186#include <ac_nonexistent.h>
4187_ACEOF
4188if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4189 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4190 ac_status=$?
4191 grep -v '^ *+' conftest.er1 >conftest.err
4192 rm -f conftest.er1
4193 cat conftest.err >&5
4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); } >/dev/null; then
4196 if test -s conftest.err; then
4197 ac_cpp_err=$ac_c_preproc_warn_flag
4198 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4199 else
4200 ac_cpp_err=
4201 fi
4202else
4203 ac_cpp_err=yes
4204fi
4205if test -z "$ac_cpp_err"; then
4206 # Broken: success on invalid input.
4207continue
4208else
4209 echo "$as_me: failed program was:" >&5
4210sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4211
7357c5b6
AM
4212 # Passes both tests.
4213ac_preproc_ok=:
4214break
4215fi
4216rm -f conftest.err conftest.$ac_ext
d7040cdb 4217
7357c5b6
AM
4218done
4219# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4220rm -f conftest.err conftest.$ac_ext
4221if $ac_preproc_ok; then
4222 :
4223else
4224 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4225echo "$as_me: error: in \`$ac_pwd':" >&2;}
4226{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4227See \`config.log' for more details." >&5
4228echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4229See \`config.log' for more details." >&2;}
4230 { (exit 1); exit 1; }; }; }
4231fi
ac48eca1 4232
7357c5b6
AM
4233ac_ext=c
4234ac_cpp='$CPP $CPPFLAGS'
4235ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4236ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4237ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac48eca1 4238
ac48eca1 4239
7357c5b6
AM
4240echo "$as_me:$LINENO: checking for egrep" >&5
4241echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4242if test "${ac_cv_prog_egrep+set}" = set; then
4243 echo $ECHO_N "(cached) $ECHO_C" >&6
4244else
4245 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4246 then ac_cv_prog_egrep='grep -E'
4247 else ac_cv_prog_egrep='egrep'
4248 fi
4249fi
4250echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4251echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4252 EGREP=$ac_cv_prog_egrep
ac48eca1 4253
d7040cdb 4254
7357c5b6
AM
4255echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4256echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4257if test "${ac_cv_header_stdc+set}" = set; then
4258 echo $ECHO_N "(cached) $ECHO_C" >&6
4259else
4260 cat >conftest.$ac_ext <<_ACEOF
4261/* confdefs.h. */
4262_ACEOF
4263cat confdefs.h >>conftest.$ac_ext
4264cat >>conftest.$ac_ext <<_ACEOF
4265/* end confdefs.h. */
4266#include <stdlib.h>
4267#include <stdarg.h>
4268#include <string.h>
4269#include <float.h>
d7040cdb 4270
7357c5b6
AM
4271int
4272main ()
4273{
d7040cdb 4274
7357c5b6
AM
4275 ;
4276 return 0;
4277}
4278_ACEOF
4279rm -f conftest.$ac_objext
4280if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4281 (eval $ac_compile) 2>conftest.er1
4282 ac_status=$?
4283 grep -v '^ *+' conftest.er1 >conftest.err
4284 rm -f conftest.er1
4285 cat conftest.err >&5
4286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287 (exit $ac_status); } &&
4288 { ac_try='test -z "$ac_c_werror_flag"
4289 || test ! -s conftest.err'
4290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4291 (eval $ac_try) 2>&5
4292 ac_status=$?
4293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294 (exit $ac_status); }; } &&
4295 { ac_try='test -s conftest.$ac_objext'
4296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4297 (eval $ac_try) 2>&5
4298 ac_status=$?
4299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300 (exit $ac_status); }; }; then
4301 ac_cv_header_stdc=yes
4302else
4303 echo "$as_me: failed program was:" >&5
4304sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4305
7357c5b6
AM
4306ac_cv_header_stdc=no
4307fi
4308rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d7040cdb 4309
7357c5b6
AM
4310if test $ac_cv_header_stdc = yes; then
4311 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4312 cat >conftest.$ac_ext <<_ACEOF
4313/* confdefs.h. */
4314_ACEOF
4315cat confdefs.h >>conftest.$ac_ext
4316cat >>conftest.$ac_ext <<_ACEOF
4317/* end confdefs.h. */
4318#include <string.h>
d7040cdb 4319
7357c5b6
AM
4320_ACEOF
4321if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4322 $EGREP "memchr" >/dev/null 2>&1; then
4323 :
ce2cded5 4324else
7357c5b6
AM
4325 ac_cv_header_stdc=no
4326fi
4327rm -f conftest*
d7040cdb 4328
7357c5b6 4329fi
d7040cdb 4330
7357c5b6
AM
4331if test $ac_cv_header_stdc = yes; then
4332 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4333 cat >conftest.$ac_ext <<_ACEOF
4334/* confdefs.h. */
4335_ACEOF
4336cat confdefs.h >>conftest.$ac_ext
4337cat >>conftest.$ac_ext <<_ACEOF
4338/* end confdefs.h. */
4339#include <stdlib.h>
ac48eca1 4340
7357c5b6
AM
4341_ACEOF
4342if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4343 $EGREP "free" >/dev/null 2>&1; then
4344 :
4345else
4346 ac_cv_header_stdc=no
4347fi
4348rm -f conftest*
d7040cdb 4349
7357c5b6 4350fi
d7040cdb 4351
7357c5b6
AM
4352if test $ac_cv_header_stdc = yes; then
4353 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4354 if test "$cross_compiling" = yes; then
4355 :
4356else
4357 cat >conftest.$ac_ext <<_ACEOF
4358/* confdefs.h. */
4359_ACEOF
4360cat confdefs.h >>conftest.$ac_ext
4361cat >>conftest.$ac_ext <<_ACEOF
4362/* end confdefs.h. */
4363#include <ctype.h>
4364#if ((' ' & 0x0FF) == 0x020)
4365# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4366# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4367#else
4368# define ISLOWER(c) \
4369 (('a' <= (c) && (c) <= 'i') \
4370 || ('j' <= (c) && (c) <= 'r') \
4371 || ('s' <= (c) && (c) <= 'z'))
4372# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4373#endif
d7040cdb 4374
7357c5b6
AM
4375#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4376int
4377main ()
4378{
4379 int i;
4380 for (i = 0; i < 256; i++)
4381 if (XOR (islower (i), ISLOWER (i))
4382 || toupper (i) != TOUPPER (i))
4383 exit(2);
4384 exit (0);
4385}
4386_ACEOF
4387rm -f conftest$ac_exeext
4388if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4389 (eval $ac_link) 2>&5
4390 ac_status=$?
4391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4394 (eval $ac_try) 2>&5
4395 ac_status=$?
4396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397 (exit $ac_status); }; }; then
4398 :
4399else
4400 echo "$as_me: program exited with status $ac_status" >&5
4401echo "$as_me: failed program was:" >&5
4402sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4403
7357c5b6
AM
4404( exit $ac_status )
4405ac_cv_header_stdc=no
4406fi
4407rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4408fi
4409fi
4410fi
4411echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4412echo "${ECHO_T}$ac_cv_header_stdc" >&6
4413if test $ac_cv_header_stdc = yes; then
d7040cdb 4414
7357c5b6
AM
4415cat >>confdefs.h <<\_ACEOF
4416#define STDC_HEADERS 1
4417_ACEOF
d7040cdb 4418
7357c5b6 4419fi
d7040cdb 4420
7357c5b6 4421# On IRIX 5.3, sys/types and inttypes.h are conflicting.
d7040cdb
SE
4422
4423
4424
4425
4426
ce2cded5
L
4427
4428
13b2be9c 4429
ce2cded5 4430
7357c5b6
AM
4431for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4432 inttypes.h stdint.h unistd.h
4433do
4434as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4435echo "$as_me:$LINENO: checking for $ac_header" >&5
4436echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4437if eval "test \"\${$as_ac_Header+set}\" = set"; then
4438 echo $ECHO_N "(cached) $ECHO_C" >&6
4439else
4440 cat >conftest.$ac_ext <<_ACEOF
4441/* confdefs.h. */
4442_ACEOF
4443cat confdefs.h >>conftest.$ac_ext
4444cat >>conftest.$ac_ext <<_ACEOF
4445/* end confdefs.h. */
4446$ac_includes_default
ce2cded5 4447
7357c5b6
AM
4448#include <$ac_header>
4449_ACEOF
4450rm -f conftest.$ac_objext
4451if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4452 (eval $ac_compile) 2>conftest.er1
4453 ac_status=$?
4454 grep -v '^ *+' conftest.er1 >conftest.err
4455 rm -f conftest.er1
4456 cat conftest.err >&5
4457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458 (exit $ac_status); } &&
4459 { ac_try='test -z "$ac_c_werror_flag"
4460 || test ! -s conftest.err'
4461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4462 (eval $ac_try) 2>&5
4463 ac_status=$?
4464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); }; } &&
4466 { ac_try='test -s conftest.$ac_objext'
4467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4468 (eval $ac_try) 2>&5
4469 ac_status=$?
4470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471 (exit $ac_status); }; }; then
4472 eval "$as_ac_Header=yes"
4473else
4474 echo "$as_me: failed program was:" >&5
4475sed 's/^/| /' conftest.$ac_ext >&5
ce2cded5 4476
7357c5b6
AM
4477eval "$as_ac_Header=no"
4478fi
4479rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4480fi
4481echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4482echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4483if test `eval echo '${'$as_ac_Header'}'` = yes; then
4484 cat >>confdefs.h <<_ACEOF
4485#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4486_ACEOF
ce2cded5 4487
7357c5b6 4488fi
ce2cded5 4489
7357c5b6 4490done
ce2cded5
L
4491
4492
4493
7357c5b6
AM
4494 if test "${ac_cv_header_minix_config_h+set}" = set; then
4495 echo "$as_me:$LINENO: checking for minix/config.h" >&5
4496echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4497if test "${ac_cv_header_minix_config_h+set}" = set; then
4498 echo $ECHO_N "(cached) $ECHO_C" >&6
4499fi
4500echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4501echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4502else
4503 # Is the header compilable?
4504echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4505echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
4506cat >conftest.$ac_ext <<_ACEOF
4507/* confdefs.h. */
4508_ACEOF
4509cat confdefs.h >>conftest.$ac_ext
4510cat >>conftest.$ac_ext <<_ACEOF
4511/* end confdefs.h. */
4512$ac_includes_default
4513#include <minix/config.h>
4514_ACEOF
4515rm -f conftest.$ac_objext
4516if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4517 (eval $ac_compile) 2>conftest.er1
4518 ac_status=$?
4519 grep -v '^ *+' conftest.er1 >conftest.err
4520 rm -f conftest.er1
4521 cat conftest.err >&5
4522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523 (exit $ac_status); } &&
4524 { ac_try='test -z "$ac_c_werror_flag"
4525 || test ! -s conftest.err'
4526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4527 (eval $ac_try) 2>&5
4528 ac_status=$?
4529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530 (exit $ac_status); }; } &&
4531 { ac_try='test -s conftest.$ac_objext'
4532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4533 (eval $ac_try) 2>&5
4534 ac_status=$?
4535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536 (exit $ac_status); }; }; then
4537 ac_header_compiler=yes
4538else
4539 echo "$as_me: failed program was:" >&5
4540sed 's/^/| /' conftest.$ac_ext >&5
ce2cded5 4541
7357c5b6
AM
4542ac_header_compiler=no
4543fi
4544rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4545echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4546echo "${ECHO_T}$ac_header_compiler" >&6
ce2cded5 4547
7357c5b6
AM
4548# Is the header present?
4549echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4550echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
4551cat >conftest.$ac_ext <<_ACEOF
4552/* confdefs.h. */
4553_ACEOF
4554cat confdefs.h >>conftest.$ac_ext
4555cat >>conftest.$ac_ext <<_ACEOF
4556/* end confdefs.h. */
4557#include <minix/config.h>
4558_ACEOF
4559if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4560 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4561 ac_status=$?
4562 grep -v '^ *+' conftest.er1 >conftest.err
4563 rm -f conftest.er1
4564 cat conftest.err >&5
4565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566 (exit $ac_status); } >/dev/null; then
4567 if test -s conftest.err; then
4568 ac_cpp_err=$ac_c_preproc_warn_flag
4569 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4570 else
4571 ac_cpp_err=
4572 fi
4573else
4574 ac_cpp_err=yes
4575fi
4576if test -z "$ac_cpp_err"; then
4577 ac_header_preproc=yes
4578else
4579 echo "$as_me: failed program was:" >&5
4580sed 's/^/| /' conftest.$ac_ext >&5
ce2cded5 4581
7357c5b6
AM
4582 ac_header_preproc=no
4583fi
4584rm -f conftest.err conftest.$ac_ext
4585echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4586echo "${ECHO_T}$ac_header_preproc" >&6
ce2cded5 4587
7357c5b6
AM
4588# So? What about this header?
4589case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4590 yes:no: )
4591 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4592echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4593 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4594echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4595 ac_header_preproc=yes
4596 ;;
4597 no:yes:* )
4598 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4599echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4600 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4601echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4602 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4603echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4604 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4605echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4606 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4607echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4608 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4609echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4610 (
4611 cat <<\_ASBOX
4612## ------------------------------------------ ##
4613## Report this to the AC_PACKAGE_NAME lists. ##
4614## ------------------------------------------ ##
4615_ASBOX
4616 ) |
4617 sed "s/^/$as_me: WARNING: /" >&2
4618 ;;
4619esac
4620echo "$as_me:$LINENO: checking for minix/config.h" >&5
4621echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4622if test "${ac_cv_header_minix_config_h+set}" = set; then
13b2be9c 4623 echo $ECHO_N "(cached) $ECHO_C" >&6
d6d788bd 4624else
7357c5b6 4625 ac_cv_header_minix_config_h=$ac_header_preproc
ac48eca1 4626fi
7357c5b6
AM
4627echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4628echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
ac48eca1 4629
7357c5b6
AM
4630fi
4631if test $ac_cv_header_minix_config_h = yes; then
4632 MINIX=yes
4633else
4634 MINIX=
4635fi
d7040cdb
SE
4636
4637
7357c5b6 4638 if test "$MINIX" = yes; then
d7040cdb 4639
7357c5b6
AM
4640cat >>confdefs.h <<\_ACEOF
4641#define _POSIX_SOURCE 1
4642_ACEOF
d7040cdb
SE
4643
4644
7357c5b6
AM
4645cat >>confdefs.h <<\_ACEOF
4646#define _POSIX_1_SOURCE 2
4647_ACEOF
d7040cdb
SE
4648
4649
7357c5b6
AM
4650cat >>confdefs.h <<\_ACEOF
4651#define _MINIX 1
4652_ACEOF
d7040cdb 4653
7357c5b6 4654 fi
d7040cdb
SE
4655
4656
13b2be9c 4657
7357c5b6
AM
4658 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4659echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
4660if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
ce2cded5 4661 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 4662else
7357c5b6
AM
4663 cat >conftest.$ac_ext <<_ACEOF
4664/* confdefs.h. */
4665_ACEOF
4666cat confdefs.h >>conftest.$ac_ext
4667cat >>conftest.$ac_ext <<_ACEOF
4668/* end confdefs.h. */
ac48eca1 4669
7357c5b6
AM
4670# define __EXTENSIONS__ 1
4671 $ac_includes_default
4672int
4673main ()
4674{
13b2be9c 4675
7357c5b6
AM
4676 ;
4677 return 0;
4678}
4679_ACEOF
4680rm -f conftest.$ac_objext
4681if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4682 (eval $ac_compile) 2>conftest.er1
4683 ac_status=$?
4684 grep -v '^ *+' conftest.er1 >conftest.err
4685 rm -f conftest.er1
4686 cat conftest.err >&5
4687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688 (exit $ac_status); } &&
4689 { ac_try='test -z "$ac_c_werror_flag"
4690 || test ! -s conftest.err'
4691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4692 (eval $ac_try) 2>&5
4693 ac_status=$?
4694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695 (exit $ac_status); }; } &&
4696 { ac_try='test -s conftest.$ac_objext'
4697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4698 (eval $ac_try) 2>&5
4699 ac_status=$?
4700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701 (exit $ac_status); }; }; then
4702 ac_cv_safe_to_define___extensions__=yes
d6d788bd 4703else
7357c5b6
AM
4704 echo "$as_me: failed program was:" >&5
4705sed 's/^/| /' conftest.$ac_ext >&5
4706
4707ac_cv_safe_to_define___extensions__=no
d6d788bd 4708fi
7357c5b6
AM
4709rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4710fi
4711echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4712echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
4713 test $ac_cv_safe_to_define___extensions__ = yes &&
4714 cat >>confdefs.h <<\_ACEOF
4715#define __EXTENSIONS__ 1
4716_ACEOF
d6d788bd 4717
7357c5b6
AM
4718 cat >>confdefs.h <<\_ACEOF
4719#define _ALL_SOURCE 1
4720_ACEOF
d6d788bd 4721
7357c5b6
AM
4722 cat >>confdefs.h <<\_ACEOF
4723#define _GNU_SOURCE 1
4724_ACEOF
252b5132 4725
7357c5b6
AM
4726 cat >>confdefs.h <<\_ACEOF
4727#define _POSIX_PTHREAD_SEMANTICS 1
4728_ACEOF
252b5132 4729
7357c5b6
AM
4730 cat >>confdefs.h <<\_ACEOF
4731#define _TANDEM_SOURCE 1
4732_ACEOF
d6d788bd 4733
a74801ba 4734
a74801ba 4735
13b2be9c 4736
252b5132 4737
7357c5b6
AM
4738macro_version='2.1a'
4739macro_revision='1.2435'
4867be41 4740
ce2cded5
L
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
7357c5b6
AM
4752ltmain="$ac_aux_dir/ltmain.sh"
4753
4754# Set options
4755
4756enable_dlopen=no
4757
4758
4759enable_win32_dll=no
4760
4761
4762# Check whether --enable-shared or --disable-shared was given.
4763if test "${enable_shared+set}" = set; then
4764 enableval="$enable_shared"
4765 p=${PACKAGE-default}
4766 case $enableval in
4767 yes) enable_shared=yes ;;
4768 no) enable_shared=no ;;
4769 *)
4770 enable_shared=no
4771 # Look at the argument we got. We use all the common list separators.
4772 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4773 for pkg in $enableval; do
4774 IFS="$lt_save_ifs"
4775 if test "X$pkg" = "X$p"; then
4776 enable_shared=yes
4777 fi
4778 done
4779 IFS="$lt_save_ifs"
4780 ;;
4781 esac
4782else
4783 enable_shared=yes
4784fi;
4785
4786
4787
4788
4789
4790
4791
4792
4793# Check whether --enable-static or --disable-static was given.
4794if test "${enable_static+set}" = set; then
4795 enableval="$enable_static"
4796 p=${PACKAGE-default}
4797 case $enableval in
4798 yes) enable_static=yes ;;
4799 no) enable_static=no ;;
4800 *)
4801 enable_static=no
4802 # Look at the argument we got. We use all the common list separators.
4803 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4804 for pkg in $enableval; do
4805 IFS="$lt_save_ifs"
4806 if test "X$pkg" = "X$p"; then
4807 enable_static=yes
4808 fi
4809 done
4810 IFS="$lt_save_ifs"
4811 ;;
4812 esac
4813else
4814 enable_static=yes
4815fi;
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825# Check whether --with-pic or --without-pic was given.
4826if test "${with_pic+set}" = set; then
4827 withval="$with_pic"
4828 pic_mode="$withval"
4829else
4830 pic_mode=default
4831fi;
4832
4833test -z "$pic_mode" && pic_mode=default
4834
4835
4836
4837
4838
4839
4840
4841# Check whether --enable-fast-install or --disable-fast-install was given.
4842if test "${enable_fast_install+set}" = set; then
4843 enableval="$enable_fast_install"
4844 p=${PACKAGE-default}
4845 case $enableval in
4846 yes) enable_fast_install=yes ;;
4847 no) enable_fast_install=no ;;
4848 *)
4849 enable_fast_install=no
4850 # Look at the argument we got. We use all the common list separators.
4851 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4852 for pkg in $enableval; do
4853 IFS="$lt_save_ifs"
4854 if test "X$pkg" = "X$p"; then
4855 enable_fast_install=yes
4856 fi
4857 done
4858 IFS="$lt_save_ifs"
4859 ;;
4860 esac
4861else
4862 enable_fast_install=yes
4863fi;
4864
4865
4866
4867
4868
4869
4870
4871
4872echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4873echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4874if test "${lt_cv_path_SED+set}" = set; then
4875 echo $ECHO_N "(cached) $ECHO_C" >&6
4876else
4877 # Loop through the user's path and test for sed and gsed.
4878# Then use that list of sed's as ones to test for truncation.
4879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4880for as_dir in $PATH
4881do
4882 IFS=$as_save_IFS
4883 test -z "$as_dir" && as_dir=.
4884 for lt_ac_prog in sed gsed; do
4885 for ac_exec_ext in '' $ac_executable_extensions; do
4886 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4887 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4888 fi
4889 done
4890 done
4891done
4892IFS=$as_save_IFS
4893lt_ac_max=0
4894lt_ac_count=0
4895# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4896# along with /bin/sed that truncates output.
4897for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4898 test ! -f $lt_ac_sed && continue
4899 cat /dev/null > conftest.in
4900 lt_ac_count=0
4901 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4902 # Check for GNU sed and select it if it is found.
4903 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4904 lt_cv_path_SED=$lt_ac_sed
4905 break
4906 fi
4907 while true; do
4908 cat conftest.in conftest.in >conftest.tmp
4909 mv conftest.tmp conftest.in
4910 cp conftest.in conftest.nl
4911 echo >>conftest.nl
4912 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4913 cmp -s conftest.out conftest.nl || break
4914 # 10000 chars as input seems more than enough
4915 test $lt_ac_count -gt 10 && break
4916 lt_ac_count=`expr $lt_ac_count + 1`
4917 if test $lt_ac_count -gt $lt_ac_max; then
4918 lt_ac_max=$lt_ac_count
4919 lt_cv_path_SED=$lt_ac_sed
4920 fi
4921 done
4922done
4923
4924fi
4925
4926SED=$lt_cv_path_SED
4927
4928echo "$as_me:$LINENO: result: $SED" >&5
4929echo "${ECHO_T}$SED" >&6
4930
4931test -z "$SED" && SED=sed
4932Xsed="$SED -e 1s/^X//"
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944echo "$as_me:$LINENO: checking for fgrep" >&5
4945echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4946if test "${ac_cv_prog_fgrep+set}" = set; then
4947 echo $ECHO_N "(cached) $ECHO_C" >&6
4948else
4949 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4950 then ac_cv_prog_fgrep='grep -F'
4951 else ac_cv_prog_fgrep='fgrep'
4952 fi
4953fi
4954echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4955echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4956 FGREP=$ac_cv_prog_fgrep
4957
4958
4959test -z "$GREP" && GREP=grep
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979# Check whether --with-gnu-ld or --without-gnu-ld was given.
4980if test "${with_gnu_ld+set}" = set; then
4981 withval="$with_gnu_ld"
4982 test "$withval" = no || with_gnu_ld=yes
4983else
4984 with_gnu_ld=no
ce2cded5
L
4985fi;
4986ac_prog=ld
4987if test "$GCC" = yes; then
4988 # Check if gcc -print-prog-name=ld gives a path.
4989 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4990echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4991 case $host in
4992 *-*-mingw*)
4993 # gcc leaves a trailing carriage return which upsets mingw
4994 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4995 *)
4996 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4997 esac
4998 case $ac_prog in
4999 # Accept absolute paths.
5000 [\\/]* | ?:[\\/]*)
5001 re_direlt='/[^/][^/]*/\.\./'
5002 # Canonicalize the pathname of ld
5003 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5004 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5005 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5006 done
5007 test -z "$LD" && LD="$ac_prog"
5008 ;;
5009 "")
5010 # If it fails, then pretend we aren't using GCC.
5011 ac_prog=ld
5012 ;;
5013 *)
5014 # If it is relative, then search for the first ld in PATH.
5015 with_gnu_ld=unknown
5016 ;;
5017 esac
5018elif test "$with_gnu_ld" = yes; then
5019 echo "$as_me:$LINENO: checking for GNU ld" >&5
5020echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5021else
5022 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5023echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5024fi
5025if test "${lt_cv_path_LD+set}" = set; then
5026 echo $ECHO_N "(cached) $ECHO_C" >&6
5027else
5028 if test -z "$LD"; then
5029 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5030 for ac_dir in $PATH; do
5031 IFS="$lt_save_ifs"
5032 test -z "$ac_dir" && ac_dir=.
5033 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5034 lt_cv_path_LD="$ac_dir/$ac_prog"
5035 # Check to see if the program is GNU ld. I'd rather use --version,
5036 # but apparently some variants of GNU ld only accept -v.
5037 # Break only if it was the GNU/non-GNU ld that we prefer.
5038 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5039 *GNU* | *'with BFD'*)
5040 test "$with_gnu_ld" != no && break
5041 ;;
5042 *)
5043 test "$with_gnu_ld" != yes && break
5044 ;;
5045 esac
5046 fi
5047 done
5048 IFS="$lt_save_ifs"
5049else
5050 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5051fi
5052fi
5053
5054LD="$lt_cv_path_LD"
5055if test -n "$LD"; then
5056 echo "$as_me:$LINENO: result: $LD" >&5
5057echo "${ECHO_T}$LD" >&6
5058else
5059 echo "$as_me:$LINENO: result: no" >&5
5060echo "${ECHO_T}no" >&6
5061fi
5062test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5063echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5064 { (exit 1); exit 1; }; }
5065echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5066echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5067if test "${lt_cv_prog_gnu_ld+set}" = set; then
5068 echo $ECHO_N "(cached) $ECHO_C" >&6
5069else
5070 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5071case `$LD -v 2>&1 </dev/null` in
5072*GNU* | *'with BFD'*)
5073 lt_cv_prog_gnu_ld=yes
5074 ;;
5075*)
5076 lt_cv_prog_gnu_ld=no
5077 ;;
5078esac
5079fi
5080echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5081echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5082with_gnu_ld=$lt_cv_prog_gnu_ld
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5094echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
5095if test "${lt_cv_path_NM+set}" = set; then
5096 echo $ECHO_N "(cached) $ECHO_C" >&6
5097else
5098 if test -n "$NM"; then
5099 # Let the user override the test.
5100 lt_cv_path_NM="$NM"
5101else
5102 lt_nm_to_check="${ac_tool_prefix}nm"
5103 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5104 lt_nm_to_check="$lt_nm_to_check nm"
5105 fi
5106 for lt_tmp_nm in $lt_nm_to_check; do
5107 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5108 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5109 IFS="$lt_save_ifs"
5110 test -z "$ac_dir" && ac_dir=.
5111 tmp_nm="$ac_dir/$lt_tmp_nm"
5112 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5113 # Check to see if the nm accepts a BSD-compat flag.
5114 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5115 # nm: unknown option "B" ignored
5116 # Tru64's nm complains that /dev/null is an invalid object file
5117 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5118 */dev/null* | *'Invalid file or object type'*)
5119 lt_cv_path_NM="$tmp_nm -B"
5120 break
5121 ;;
5122 *)
5123 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5124 */dev/null*)
5125 lt_cv_path_NM="$tmp_nm -p"
5126 break
5127 ;;
5128 *)
5129 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5130 continue # so that we can try to find one that supports BSD flags
5131 ;;
5132 esac
5133 ;;
5134 esac
5135 fi
5136 done
5137 IFS="$lt_save_ifs"
5138 done
5139 : ${lt_cv_path_NM=no}
5140fi
5141fi
5142echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5143echo "${ECHO_T}$lt_cv_path_NM" >&6
5144if test "$lt_cv_path_NM" != "no"; then
5145 NM="$lt_cv_path_NM"
5146else
5147 # Didn't find any BSD compatible name lister, look for dumpbin.
5148 if test -n "$ac_tool_prefix"; then
5149 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5150 do
5151 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5152set dummy $ac_tool_prefix$ac_prog; ac_word=$2
d7040cdb
SE
5153echo "$as_me:$LINENO: checking for $ac_word" >&5
5154echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ce2cded5 5155if test "${ac_cv_prog_DUMPBIN+set}" = set; then
d7040cdb
SE
5156 echo $ECHO_N "(cached) $ECHO_C" >&6
5157else
ce2cded5
L
5158 if test -n "$DUMPBIN"; then
5159 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
d7040cdb
SE
5160else
5161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5162for as_dir in $PATH
5163do
5164 IFS=$as_save_IFS
5165 test -z "$as_dir" && as_dir=.
5166 for ac_exec_ext in '' $ac_executable_extensions; do
5167 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ce2cded5 5168 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
d7040cdb
SE
5169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5170 break 2
d70c5fc7 5171 fi
d7040cdb
SE
5172done
5173done
d70c5fc7 5174
d7040cdb
SE
5175fi
5176fi
ce2cded5
L
5177DUMPBIN=$ac_cv_prog_DUMPBIN
5178if test -n "$DUMPBIN"; then
5179 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5180echo "${ECHO_T}$DUMPBIN" >&6
bedf545c 5181else
d7040cdb
SE
5182 echo "$as_me:$LINENO: result: no" >&5
5183echo "${ECHO_T}no" >&6
5184fi
13b2be9c 5185
ce2cded5
L
5186 test -n "$DUMPBIN" && break
5187 done
5188fi
5189if test -z "$DUMPBIN"; then
5190 ac_ct_DUMPBIN=$DUMPBIN
5191 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5192do
5193 # Extract the first word of "$ac_prog", so it can be a program name with args.
5194set dummy $ac_prog; ac_word=$2
5195echo "$as_me:$LINENO: checking for $ac_word" >&5
5196echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5197if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5198 echo $ECHO_N "(cached) $ECHO_C" >&6
d7040cdb 5199else
ce2cded5
L
5200 if test -n "$ac_ct_DUMPBIN"; then
5201 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5202else
5203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5204for as_dir in $PATH
5205do
5206 IFS=$as_save_IFS
5207 test -z "$as_dir" && as_dir=.
5208 for ac_exec_ext in '' $ac_executable_extensions; do
5209 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5210 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5212 break 2
5213 fi
5214done
5215done
5216
5217fi
5218fi
5219ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5220if test -n "$ac_ct_DUMPBIN"; then
5221 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5222echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
5223else
5224 echo "$as_me:$LINENO: result: no" >&5
5225echo "${ECHO_T}no" >&6
d7040cdb
SE
5226fi
5227
ce2cded5
L
5228 test -n "$ac_ct_DUMPBIN" && break
5229done
5230test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
13b2be9c 5231
ce2cded5
L
5232 DUMPBIN=$ac_ct_DUMPBIN
5233fi
13b2be9c 5234
bedf545c 5235
ce2cded5
L
5236 if test "$DUMPBIN" != ":"; then
5237 NM="$DUMPBIN"
5238 fi
5239fi
5240test -z "$NM" && NM=nm
6840198f 5241
13b2be9c 5242
ac48eca1 5243
d7040cdb 5244
ce2cded5
L
5245
5246
5247echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5248echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
5249if test "${lt_cv_nm_interface+set}" = set; then
5250 echo $ECHO_N "(cached) $ECHO_C" >&6
5251else
5252 lt_cv_nm_interface="BSD nm"
5253 echo "int some_variable = 0;" > conftest.$ac_ext
da594c4a 5254 (eval echo "\"\$as_me:5254: $ac_compile\"" >&5)
ce2cded5
L
5255 (eval "$ac_compile" 2>conftest.err)
5256 cat conftest.err >&5
da594c4a 5257 (eval echo "\"\$as_me:5257: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
ce2cded5
L
5258 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5259 cat conftest.err >&5
da594c4a 5260 (eval echo "\"\$as_me:5260: output\"" >&5)
ce2cded5
L
5261 cat conftest.out >&5
5262 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5263 lt_cv_nm_interface="MS dumpbin"
5264 fi
5265 rm -f conftest*
5266fi
5267echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5268echo "${ECHO_T}$lt_cv_nm_interface" >&6
5269
5270echo "$as_me:$LINENO: checking whether ln -s works" >&5
5271echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5272LN_S=$as_ln_s
5273if test "$LN_S" = "ln -s"; then
5274 echo "$as_me:$LINENO: result: yes" >&5
5275echo "${ECHO_T}yes" >&6
5276else
5277 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5278echo "${ECHO_T}no, using $LN_S" >&6
5279fi
5280
5281# find the maximum length of command line arguments
5282echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5283echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5284if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5285 echo $ECHO_N "(cached) $ECHO_C" >&6
5286else
5287 i=0
5288 teststring="ABCD"
5289
5290 case $build_os in
5291 msdosdjgpp*)
5292 # On DJGPP, this test can blow up pretty badly due to problems in libc
5293 # (any single argument exceeding 2000 bytes causes a buffer overrun
5294 # during glob expansion). Even if it were fixed, the result of this
5295 # check would be larger than it should be.
5296 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5297 ;;
5298
5299 gnu*)
5300 # Under GNU Hurd, this test is not required because there is
5301 # no limit to the length of command line arguments.
5302 # Libtool will interpret -1 as no limit whatsoever
5303 lt_cv_sys_max_cmd_len=-1;
5304 ;;
5305
5306 cygwin* | mingw*)
5307 # On Win9x/ME, this test blows up -- it succeeds, but takes
5308 # about 5 minutes as the teststring grows exponentially.
5309 # Worse, since 9x/ME are not pre-emptively multitasking,
5310 # you end up with a "frozen" computer, even though with patience
5311 # the test eventually succeeds (with a max line length of 256k).
5312 # Instead, let's just punt: use the minimum linelength reported by
5313 # all of the supported platforms: 8192 (on NT/2K/XP).
5314 lt_cv_sys_max_cmd_len=8192;
5315 ;;
5316
5317 amigaos*)
5318 # On AmigaOS with pdksh, this test takes hours, literally.
5319 # So we just punt and use a minimum line length of 8192.
5320 lt_cv_sys_max_cmd_len=8192;
5321 ;;
5322
5323 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5324 # This has been around since 386BSD, at least. Likely further.
5325 if test -x /sbin/sysctl; then
5326 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5327 elif test -x /usr/sbin/sysctl; then
5328 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5329 else
5330 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5331 fi
5332 # And add a safety zone
5333 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5334 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5335 ;;
5336
5337 interix*)
5338 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5339 lt_cv_sys_max_cmd_len=196608
5340 ;;
5341
5342 osf*)
5343 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5344 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5345 # nice to cause kernel panics so lets avoid the loop below.
5346 # First set a reasonable default.
5347 lt_cv_sys_max_cmd_len=16384
5348 #
5349 if test -x /sbin/sysconfig; then
5350 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5351 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5352 esac
5353 fi
5354 ;;
5355 sco3.2v5*)
5356 lt_cv_sys_max_cmd_len=102400
5357 ;;
5358 sysv5* | sco5v6* | sysv4.2uw2*)
5359 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5360 if test -n "$kargmax"; then
5361 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5362 else
5363 lt_cv_sys_max_cmd_len=32768
5364 fi
d7040cdb
SE
5365 ;;
5366 *)
ce2cded5
L
5367 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
5368 if test -n $lt_cv_sys_max_cmd_len; then
5369 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5370 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5371 else
5372 # Make teststring a little bigger before we do anything with it.
5373 # a 1K string should be a reasonable start.
5374 for i in 1 2 3 4 5 6 7 8 ; do
5375 teststring=$teststring$teststring
5376 done
5377 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5378 # If test is not a shell built-in, we'll probably end up computing a
5379 # maximum length that is only half of the actual maximum length, but
5380 # we can't tell.
5381 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5382 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5383 test $i != 17 # 1/2 MB should be enough
5384 do
5385 i=`expr $i + 1`
5386 teststring=$teststring$teststring
5387 done
5388 # Only check the string length outside the loop.
5389 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5390 teststring=
5391 # Add a significant safety factor because C++ compilers can tack on
5392 # massive amounts of additional arguments before passing them to the
5393 # linker. It appears as though 1/2 is a usable value.
5394 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5395 fi
d7040cdb
SE
5396 ;;
5397 esac
252b5132 5398
ce2cded5 5399fi
d6d788bd 5400
ce2cded5
L
5401if test -n $lt_cv_sys_max_cmd_len ; then
5402 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5403echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5404else
5405 echo "$as_me:$LINENO: result: none" >&5
5406echo "${ECHO_T}none" >&6
5407fi
5408max_cmd_len=$lt_cv_sys_max_cmd_len
252b5132 5409
d6d788bd 5410
13b2be9c 5411
13b2be9c 5412
bedf545c 5413
252b5132 5414
bedf545c 5415
ce2cded5
L
5416: ${CP="cp -f"}
5417: ${MV="mv -f"}
5418: ${RM="rm -f"}
d6d788bd 5419
ce2cded5
L
5420echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5421echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
5422# Try some XSI features
5423xsi_shell=no
5424( _lt_dummy="a/b/c"
5425 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5426 = c,a/b,, ) >/dev/null 2>&1 \
5427 && xsi_shell=yes
5428echo "$as_me:$LINENO: result: $xsi_shell" >&5
5429echo "${ECHO_T}$xsi_shell" >&6
bedf545c 5430
bedf545c 5431
ce2cded5
L
5432echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5433echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
5434lt_shell_append=no
5435( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5436 >/dev/null 2>&1 \
5437 && lt_shell_append=yes
5438echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5439echo "${ECHO_T}$lt_shell_append" >&6
252b5132 5440
d6d788bd 5441
ce2cded5
L
5442if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5443 lt_unset=unset
5444else
5445 lt_unset=false
5446fi
13b2be9c
DJ
5447
5448
5449
5450
d6d788bd 5451
ce2cded5
L
5452# test EBCDIC or ASCII
5453case `echo X|tr X '\101'` in
5454 A) # ASCII based system
5455 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5456 lt_SP2NL='tr \040 \012'
5457 lt_NL2SP='tr \015\012 \040\040'
5458 ;;
5459 *) # EBCDIC based system
5460 lt_SP2NL='tr \100 \n'
5461 lt_NL2SP='tr \r\n \100\100'
5462 ;;
5463esac
c43a438d 5464
c43a438d 5465
c43a438d 5466
252b5132 5467
ad22bfe8 5468
1ad12f97 5469
1ad12f97 5470
9e9b66a9 5471
1ad12f97 5472
ce2cded5
L
5473echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5474echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5475if test "${lt_cv_ld_reload_flag+set}" = set; then
5476 echo $ECHO_N "(cached) $ECHO_C" >&6
5477else
5478 lt_cv_ld_reload_flag='-r'
5479fi
5480echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5481echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5482reload_flag=$lt_cv_ld_reload_flag
5483case $reload_flag in
5484"" | " "*) ;;
5485*) reload_flag=" $reload_flag" ;;
5486esac
5487reload_cmds='$LD$reload_flag -o $output$reload_objs'
5488case $host_os in
5489 darwin*)
5490 if test "$GCC" = yes; then
5491 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5492 else
5493 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5494 fi
5495 ;;
5496esac
a541e3ce 5497
9e9b66a9 5498
a2d91340 5499
d6d788bd 5500
9e9b66a9
AM
5501
5502
5503
d6d788bd 5504
252b5132 5505
13b2be9c 5506
ce2cded5
L
5507echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5508echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
5509if test "${lt_cv_deplibs_check_method+set}" = set; then
d7040cdb
SE
5510 echo $ECHO_N "(cached) $ECHO_C" >&6
5511else
ce2cded5
L
5512 lt_cv_file_magic_cmd='$MAGIC_CMD'
5513lt_cv_file_magic_test_file=
5514lt_cv_deplibs_check_method='unknown'
5515# Need to set the preceding variable on all platforms that support
5516# interlibrary dependencies.
5517# 'none' -- dependencies not supported.
5518# `unknown' -- same as none, but documents that we really don't know.
5519# 'pass_all' -- all dependencies passed with no checks.
5520# 'test_compile' -- check by making test program.
5521# 'file_magic [[regex]]' -- check by looking for files in library path
5522# which responds to the $file_magic_cmd with a given extended regex.
5523# If you have `file' or equivalent on your system and you're not sure
5524# whether `pass_all' will *always* work, you probably want this one.
13b2be9c 5525
ce2cded5 5526case $host_os in
50e7d84b 5527aix[4-9]*)
ce2cded5
L
5528 lt_cv_deplibs_check_method=pass_all
5529 ;;
d7040cdb 5530
ce2cded5
L
5531beos*)
5532 lt_cv_deplibs_check_method=pass_all
5533 ;;
d7040cdb 5534
ce2cded5
L
5535bsdi[45]*)
5536 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5537 lt_cv_file_magic_cmd='/usr/bin/file -L'
5538 lt_cv_file_magic_test_file=/shlib/libc.so
5539 ;;
d7040cdb 5540
ce2cded5
L
5541cygwin*)
5542 # func_win32_libid is a shell function defined in ltmain.sh
5543 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5544 lt_cv_file_magic_cmd='func_win32_libid'
d7040cdb 5545 ;;
ce2cded5
L
5546
5547mingw* | pw32*)
5548 # Base MSYS/MinGW do not provide the 'file' command needed by
5549 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5550 # unless we find 'file', for example because we are cross-compiling.
5551 if ( file / ) >/dev/null 2>&1; then
5552 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5553 lt_cv_file_magic_cmd='func_win32_libid'
5554 else
5555 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5556 lt_cv_file_magic_cmd='$OBJDUMP -f'
5557 fi
d7040cdb 5558 ;;
ce2cded5
L
5559
5560darwin* | rhapsody*)
5561 lt_cv_deplibs_check_method=pass_all
5562 ;;
5563
5564freebsd* | dragonfly*)
5565 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5566 case $host_cpu in
5567 i*86 )
5568 # Not sure whether the presence of OpenBSD here was a mistake.
5569 # Let's accept both of them until this is cleared up.
5570 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5571 lt_cv_file_magic_cmd=/usr/bin/file
5572 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5573 ;;
5574 esac
5575 else
5576 lt_cv_deplibs_check_method=pass_all
d7040cdb
SE
5577 fi
5578 ;;
ce2cded5
L
5579
5580gnu*)
5581 lt_cv_deplibs_check_method=pass_all
d7040cdb 5582 ;;
ce2cded5
L
5583
5584hpux10.20* | hpux11*)
5585 lt_cv_file_magic_cmd=/usr/bin/file
5586 case $host_cpu in
5587 ia64*)
5588 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5589 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5590 ;;
5591 hppa*64*)
5592 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]'
5593 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5594 ;;
5595 *)
5596 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5597 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5598 ;;
5599 esac
d7040cdb 5600 ;;
ce2cded5
L
5601
5602interix[3-9]*)
5603 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5604 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
d7040cdb 5605 ;;
ce2cded5
L
5606
5607irix5* | irix6* | nonstopux*)
5608 case $LD in
5609 *-32|*"-32 ") libmagic=32-bit;;
5610 *-n32|*"-n32 ") libmagic=N32;;
5611 *-64|*"-64 ") libmagic=64-bit;;
5612 *) libmagic=never-match;;
5613 esac
5614 lt_cv_deplibs_check_method=pass_all
d7040cdb 5615 ;;
ce2cded5
L
5616
5617# This must be Linux ELF.
5618linux* | k*bsd*-gnu)
5619 lt_cv_deplibs_check_method=pass_all
d7040cdb 5620 ;;
ce2cded5
L
5621
5622netbsd*)
5623 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5624 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5625 else
5626 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5627 fi
d7040cdb 5628 ;;
ce2cded5
L
5629
5630newos6*)
5631 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5632 lt_cv_file_magic_cmd=/usr/bin/file
5633 lt_cv_file_magic_test_file=/usr/lib/libnls.so
d7040cdb 5634 ;;
76a27922 5635
ce2cded5
L
5636*nto* | *qnx*)
5637 lt_cv_deplibs_check_method=pass_all
5638 ;;
d6d788bd 5639
ce2cded5
L
5640openbsd*)
5641 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5642 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5643 else
5644 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5645 fi
5646 ;;
44f2f9d2 5647
ce2cded5
L
5648osf3* | osf4* | osf5*)
5649 lt_cv_deplibs_check_method=pass_all
5650 ;;
44f2f9d2 5651
ce2cded5
L
5652rdos*)
5653 lt_cv_deplibs_check_method=pass_all
5654 ;;
5655
5656solaris*)
5657 lt_cv_deplibs_check_method=pass_all
5658 ;;
5659
5660sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5661 lt_cv_deplibs_check_method=pass_all
5662 ;;
5663
5664sysv4 | sysv4.3*)
5665 case $host_vendor in
5666 motorola)
5667 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]'
5668 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5669 ;;
5670 ncr)
5671 lt_cv_deplibs_check_method=pass_all
5672 ;;
5673 sequent)
5674 lt_cv_file_magic_cmd='/bin/file'
5675 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5676 ;;
5677 sni)
5678 lt_cv_file_magic_cmd='/bin/file'
5679 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5680 lt_cv_file_magic_test_file=/lib/libc.so
5681 ;;
5682 siemens)
5683 lt_cv_deplibs_check_method=pass_all
5684 ;;
5685 pc)
5686 lt_cv_deplibs_check_method=pass_all
5687 ;;
5688 esac
5689 ;;
5690
5691tpf*)
5692 lt_cv_deplibs_check_method=pass_all
d7040cdb
SE
5693 ;;
5694esac
5695
ce2cded5
L
5696fi
5697echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5698echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5699file_magic_cmd=$lt_cv_file_magic_cmd
5700deplibs_check_method=$lt_cv_deplibs_check_method
5701test -z "$deplibs_check_method" && deplibs_check_method=unknown
d7040cdb 5702
d7040cdb 5703
d7040cdb 5704
d7040cdb 5705
d7040cdb 5706
44f2f9d2 5707
d7040cdb 5708
d7040cdb 5709
d7040cdb 5710
d7040cdb 5711
44f2f9d2 5712
d7040cdb 5713
ce2cded5
L
5714if test -n "$ac_tool_prefix"; then
5715 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5716set dummy ${ac_tool_prefix}ar; ac_word=$2
5717echo "$as_me:$LINENO: checking for $ac_word" >&5
5718echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5719if test "${ac_cv_prog_AR+set}" = set; then
5720 echo $ECHO_N "(cached) $ECHO_C" >&6
5721else
5722 if test -n "$AR"; then
5723 ac_cv_prog_AR="$AR" # Let the user override the test.
5724else
5725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5726for as_dir in $PATH
5727do
5728 IFS=$as_save_IFS
5729 test -z "$as_dir" && as_dir=.
5730 for ac_exec_ext in '' $ac_executable_extensions; do
5731 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5732 ac_cv_prog_AR="${ac_tool_prefix}ar"
5733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5734 break 2
d7040cdb
SE
5735 fi
5736done
ce2cded5 5737done
44f2f9d2 5738
ce2cded5
L
5739fi
5740fi
5741AR=$ac_cv_prog_AR
5742if test -n "$AR"; then
5743 echo "$as_me:$LINENO: result: $AR" >&5
5744echo "${ECHO_T}$AR" >&6
5745else
5746 echo "$as_me:$LINENO: result: no" >&5
5747echo "${ECHO_T}no" >&6
44f2f9d2 5748fi
d7040cdb 5749
d7040cdb 5750fi
ce2cded5
L
5751if test -z "$ac_cv_prog_AR"; then
5752 ac_ct_AR=$AR
5753 # Extract the first word of "ar", so it can be a program name with args.
5754set dummy ar; ac_word=$2
5755echo "$as_me:$LINENO: checking for $ac_word" >&5
5756echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5757if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5758 echo $ECHO_N "(cached) $ECHO_C" >&6
44f2f9d2 5759else
ce2cded5
L
5760 if test -n "$ac_ct_AR"; then
5761 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5762else
5763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5764for as_dir in $PATH
5765do
5766 IFS=$as_save_IFS
5767 test -z "$as_dir" && as_dir=.
5768 for ac_exec_ext in '' $ac_executable_extensions; do
5769 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5770 ac_cv_prog_ac_ct_AR="ar"
5771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5772 break 2
5773 fi
5774done
5775done
5776
5777 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5778fi
5779fi
5780ac_ct_AR=$ac_cv_prog_ac_ct_AR
5781if test -n "$ac_ct_AR"; then
5782 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5783echo "${ECHO_T}$ac_ct_AR" >&6
5784else
5785 echo "$as_me:$LINENO: result: no" >&5
5786echo "${ECHO_T}no" >&6
d7040cdb 5787fi
44f2f9d2 5788
ce2cded5
L
5789 AR=$ac_ct_AR
5790else
5791 AR="$ac_cv_prog_AR"
5792fi
d7040cdb 5793
ce2cded5
L
5794test -z "$AR" && AR=ar
5795test -z "$AR_FLAGS" && AR_FLAGS=cru
d7040cdb
SE
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
ce2cded5
L
5807if test -n "$ac_tool_prefix"; then
5808 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5809set dummy ${ac_tool_prefix}strip; ac_word=$2
5810echo "$as_me:$LINENO: checking for $ac_word" >&5
5811echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5812if test "${ac_cv_prog_STRIP+set}" = set; then
5813 echo $ECHO_N "(cached) $ECHO_C" >&6
5814else
5815 if test -n "$STRIP"; then
5816 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5817else
5818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5819for as_dir in $PATH
5820do
5821 IFS=$as_save_IFS
5822 test -z "$as_dir" && as_dir=.
5823 for ac_exec_ext in '' $ac_executable_extensions; do
5824 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5825 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5827 break 2
5828 fi
5829done
5830done
d7040cdb 5831
ce2cded5
L
5832fi
5833fi
5834STRIP=$ac_cv_prog_STRIP
5835if test -n "$STRIP"; then
5836 echo "$as_me:$LINENO: result: $STRIP" >&5
5837echo "${ECHO_T}$STRIP" >&6
5838else
5839 echo "$as_me:$LINENO: result: no" >&5
5840echo "${ECHO_T}no" >&6
5841fi
d7040cdb 5842
ce2cded5
L
5843fi
5844if test -z "$ac_cv_prog_STRIP"; then
5845 ac_ct_STRIP=$STRIP
5846 # Extract the first word of "strip", so it can be a program name with args.
5847set dummy strip; ac_word=$2
5848echo "$as_me:$LINENO: checking for $ac_word" >&5
5849echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5850if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5851 echo $ECHO_N "(cached) $ECHO_C" >&6
5852else
5853 if test -n "$ac_ct_STRIP"; then
5854 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5855else
5856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5857for as_dir in $PATH
5858do
5859 IFS=$as_save_IFS
5860 test -z "$as_dir" && as_dir=.
5861 for ac_exec_ext in '' $ac_executable_extensions; do
5862 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5863 ac_cv_prog_ac_ct_STRIP="strip"
5864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5865 break 2
5866 fi
5867done
5868done
d7040cdb 5869
ce2cded5
L
5870 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5871fi
5872fi
5873ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5874if test -n "$ac_ct_STRIP"; then
5875 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5876echo "${ECHO_T}$ac_ct_STRIP" >&6
5877else
5878 echo "$as_me:$LINENO: result: no" >&5
5879echo "${ECHO_T}no" >&6
5880fi
d7040cdb 5881
ce2cded5
L
5882 STRIP=$ac_ct_STRIP
5883else
5884 STRIP="$ac_cv_prog_STRIP"
5885fi
d7040cdb 5886
ce2cded5 5887test -z "$STRIP" && STRIP=:
d7040cdb 5888
d7040cdb 5889
d7040cdb 5890
d7040cdb 5891
d7040cdb 5892
d7040cdb 5893
ce2cded5
L
5894if test -n "$ac_tool_prefix"; then
5895 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5896set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5897echo "$as_me:$LINENO: checking for $ac_word" >&5
5898echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5899if test "${ac_cv_prog_RANLIB+set}" = set; then
5900 echo $ECHO_N "(cached) $ECHO_C" >&6
44f2f9d2 5901else
ce2cded5
L
5902 if test -n "$RANLIB"; then
5903 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5904else
5905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5906for as_dir in $PATH
5907do
5908 IFS=$as_save_IFS
5909 test -z "$as_dir" && as_dir=.
5910 for ac_exec_ext in '' $ac_executable_extensions; do
5911 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5912 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5914 break 2
5915 fi
5916done
5917done
44f2f9d2 5918
d7040cdb 5919fi
44f2f9d2 5920fi
ce2cded5
L
5921RANLIB=$ac_cv_prog_RANLIB
5922if test -n "$RANLIB"; then
5923 echo "$as_me:$LINENO: result: $RANLIB" >&5
5924echo "${ECHO_T}$RANLIB" >&6
5925else
5926 echo "$as_me:$LINENO: result: no" >&5
5927echo "${ECHO_T}no" >&6
5928fi
d7040cdb 5929
d7040cdb 5930fi
ce2cded5
L
5931if test -z "$ac_cv_prog_RANLIB"; then
5932 ac_ct_RANLIB=$RANLIB
5933 # Extract the first word of "ranlib", so it can be a program name with args.
5934set dummy ranlib; ac_word=$2
5935echo "$as_me:$LINENO: checking for $ac_word" >&5
5936echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5937if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
d7040cdb 5938 echo $ECHO_N "(cached) $ECHO_C" >&6
44f2f9d2 5939else
ce2cded5
L
5940 if test -n "$ac_ct_RANLIB"; then
5941 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5942else
5943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5944for as_dir in $PATH
d7040cdb 5945do
ce2cded5
L
5946 IFS=$as_save_IFS
5947 test -z "$as_dir" && as_dir=.
5948 for ac_exec_ext in '' $ac_executable_extensions; do
5949 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5950 ac_cv_prog_ac_ct_RANLIB="ranlib"
5951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5952 break 2
d7040cdb 5953 fi
ce2cded5
L
5954done
5955done
5956
5957 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
d7040cdb 5958fi
ce2cded5
L
5959fi
5960ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5961if test -n "$ac_ct_RANLIB"; then
5962 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5963echo "${ECHO_T}$ac_ct_RANLIB" >&6
d7040cdb 5964else
ce2cded5
L
5965 echo "$as_me:$LINENO: result: no" >&5
5966echo "${ECHO_T}no" >&6
44f2f9d2 5967fi
44f2f9d2 5968
ce2cded5 5969 RANLIB=$ac_ct_RANLIB
d7040cdb 5970else
ce2cded5 5971 RANLIB="$ac_cv_prog_RANLIB"
d7040cdb 5972fi
252b5132 5973
ce2cded5 5974test -z "$RANLIB" && RANLIB=:
252b5132 5975
252b5132 5976
ae57792d 5977
252b5132 5978
13b2be9c 5979
14ee9f48 5980
ce2cded5
L
5981# Determine commands to create old-style static archives.
5982old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5983old_postinstall_cmds='chmod 644 $oldlib'
5984old_postuninstall_cmds=
14ee9f48 5985
ce2cded5
L
5986if test -n "$RANLIB"; then
5987 case $host_os in
5988 openbsd*)
5989 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5990 ;;
5991 *)
5992 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5993 ;;
5994 esac
5995 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
d7040cdb 5996fi
14ee9f48 5997
f8fc3443 5998
f8fc3443 5999
252b5132 6000
85fbca6a 6001
85fbca6a 6002
13b2be9c 6003
13b2be9c 6004
d7040cdb 6005
d7040cdb
SE
6006
6007
6008
252b5132 6009
93fbbb04 6010
93fbbb04 6011
d70c5fc7 6012
e0001a05 6013
252b5132 6014
252b5132 6015
252b5132 6016
252b5132 6017
252b5132 6018
3bcbcc3d 6019
252b5132 6020
252b5132 6021
252b5132 6022
15886821 6023
252b5132 6024
252b5132 6025
13b2be9c
DJ
6026
6027
252b5132 6028
252b5132 6029
d6d788bd 6030
ce2cded5
L
6031# If no C compiler was specified, use CC.
6032LTCC=${LTCC-"$CC"}
252b5132 6033
ce2cded5
L
6034# If no C compiler flags were specified, use CFLAGS.
6035LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
252b5132 6036
ce2cded5
L
6037# Allow CC to be a program name with arguments.
6038compiler=$CC
252b5132 6039
252b5132 6040
ce2cded5
L
6041# Check for command to grab the raw symbol name followed by C symbol from nm.
6042echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6043echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6044if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6045 echo $ECHO_N "(cached) $ECHO_C" >&6
6046else
252b5132 6047
ce2cded5
L
6048# These are sane defaults that work on at least a few old systems.
6049# [They come from Ultrix. What could be older than Ultrix?!! ;)]
252b5132 6050
ce2cded5
L
6051# Character class describing NM global symbol codes.
6052symcode='[BCDEGRST]'
252b5132 6053
ce2cded5
L
6054# Regexp to match symbols that can be accessed directly from C.
6055sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13b2be9c 6056
ce2cded5
L
6057# Define system-specific variables.
6058case $host_os in
6059aix*)
6060 symcode='[BCDT]'
6061 ;;
6062cygwin* | mingw* | pw32*)
6063 symcode='[ABCDGISTW]'
6064 ;;
6065hpux*)
6066 if test "$host_cpu" = ia64; then
6067 symcode='[ABCDEGRST]'
6068 fi
6069 ;;
6070irix* | nonstopux*)
6071 symcode='[BCDEGRST]'
6072 ;;
6073osf*)
6074 symcode='[BCDEGQRST]'
6075 ;;
6076solaris*)
6077 symcode='[BDRT]'
6078 ;;
6079sco3.2v5*)
6080 symcode='[DT]'
6081 ;;
6082sysv4.2uw2*)
6083 symcode='[DT]'
6084 ;;
6085sysv5* | sco5v6* | unixware* | OpenUNIX*)
6086 symcode='[ABDT]'
6087 ;;
6088sysv4)
6089 symcode='[DFNSTU]'
6090 ;;
6091esac
6092
6093# If we're using GNU nm, then use its standard symbol codes.
6094case `$NM -V 2>&1` in
6095*GNU* | *'with BFD'*)
6096 symcode='[ABCDGIRSTW]' ;;
6097esac
252b5132 6098
ce2cded5
L
6099# Transform an extracted symbol line into a proper C declaration.
6100# Some systems (esp. on ia64) link data and code symbols differently,
6101# so use this general approach.
6102lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13b2be9c 6103
ce2cded5 6104# Transform an extracted symbol line into symbol name and symbol address
7357c5b6 6105lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
d7040cdb 6106
7357c5b6
AM
6107# Handle CRLF in mingw tool chain
6108opt_cr=
6109case $build_os in
6110mingw*)
6111 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6112 ;;
6113esac
d7040cdb 6114
7357c5b6
AM
6115# Try without a prefix underscore, then with it.
6116for ac_symprfx in "" "_"; do
d7040cdb 6117
7357c5b6
AM
6118 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6119 symxfrm="\\1 $ac_symprfx\\2 \\2"
d7040cdb 6120
7357c5b6
AM
6121 # Write the raw and C identifiers.
6122 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6123 # Fake it for dumpbin and say T for any non-static function
6124 # and D for any global variable.
6125 # Also find C++ and __fastcall symbols from MSVC++,
6126 # which start with @ or ?.
6127 lt_cv_sys_global_symbol_pipe="$AWK '"\
6128" {last_section=section; section=\$ 3};"\
6129" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6130" \$ 0!~/External *\|/{next};"\
6131" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6132" {if(hide[section]) next};"\
6133" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6134" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6135" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6136" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6137" ' prfx=^$ac_symprfx"
6138 else
6139 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6140 fi
d7040cdb 6141
7357c5b6
AM
6142 # Check to see that the pipe works correctly.
6143 pipe_works=no
d7040cdb 6144
7357c5b6
AM
6145 rm -f conftest*
6146 cat > conftest.$ac_ext <<_LT_EOF
6147#ifdef __cplusplus
6148extern "C" {
6149#endif
6150char nm_test_var;
6151void nm_test_func(void);
6152void nm_test_func(void){}
6153#ifdef __cplusplus
ce2cded5 6154}
7357c5b6
AM
6155#endif
6156int main(){nm_test_var='a';nm_test_func();return(0);}
6157_LT_EOF
6158
6159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6160 (eval $ac_compile) 2>&5
ce2cded5
L
6161 ac_status=$?
6162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357c5b6
AM
6163 (exit $ac_status); }; then
6164 # Now try to grab the symbols.
6165 nlist=conftest.nm
6166 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6167 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
ce2cded5
L
6168 ac_status=$?
6169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357c5b6
AM
6170 (exit $ac_status); } && test -s "$nlist"; then
6171 # Try sorting and uniquifying the output.
6172 if sort "$nlist" | uniq > "$nlist"T; then
6173 mv -f "$nlist"T "$nlist"
6174 else
6175 rm -f "$nlist"T
6176 fi
13b2be9c 6177
7357c5b6
AM
6178 # Make sure that we snagged all the symbols we need.
6179 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6180 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6181 cat <<_LT_EOF > conftest.$ac_ext
6182#ifdef __cplusplus
6183extern "C" {
6184#endif
13b2be9c 6185
7357c5b6
AM
6186_LT_EOF
6187 # Now generate the symbol file.
6188 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13b2be9c 6189
7357c5b6 6190 cat <<_LT_EOF >> conftest.$ac_ext
c8615825 6191
7357c5b6
AM
6192/* The mapping between symbol names and symbols. */
6193const struct {
6194 const char *name;
6195 void *address;
6196}
6197lt__PROGRAM__LTX_preloaded_symbols[] =
6198{
6199 { "@PROGRAM@", (void *) 0 },
6200_LT_EOF
6201 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6202 cat <<\_LT_EOF >> conftest.$ac_ext
6203 {0, (void *) 0}
6204};
d7040cdb 6205
7357c5b6
AM
6206/* This works around a problem in FreeBSD linker */
6207#ifdef FREEBSD_WORKAROUND
6208static const void *lt_preloaded_setup() {
6209 return lt__PROGRAM__LTX_preloaded_symbols;
6210}
ce2cded5 6211#endif
d7040cdb 6212
7357c5b6 6213#ifdef __cplusplus
ce2cded5 6214}
7357c5b6
AM
6215#endif
6216_LT_EOF
6217 # Now try linking the two files.
6218 mv conftest.$ac_objext conftstm.$ac_objext
6219 lt_save_LIBS="$LIBS"
6220 lt_save_CFLAGS="$CFLAGS"
6221 LIBS="conftstm.$ac_objext"
6222 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ce2cded5
L
6224 (eval $ac_link) 2>&5
6225 ac_status=$?
6226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357c5b6
AM
6227 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6228 pipe_works=yes
6229 fi
6230 LIBS="$lt_save_LIBS"
6231 CFLAGS="$lt_save_CFLAGS"
6232 else
6233 echo "cannot find nm_test_func in $nlist" >&5
6234 fi
6235 else
6236 echo "cannot find nm_test_var in $nlist" >&5
6237 fi
6238 else
6239 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6240 fi
6241 else
6242 echo "$progname: failed program was:" >&5
6243 cat conftest.$ac_ext >&5
6244 fi
6245 rm -f conftest* conftst*
6246
6247 # Do not use the global_symbol_pipe unless it works.
6248 if test "$pipe_works" = yes; then
6249 break
6250 else
6251 lt_cv_sys_global_symbol_pipe=
6252 fi
6253done
d7040cdb 6254
ce2cded5 6255fi
7357c5b6
AM
6256
6257if test -z "$lt_cv_sys_global_symbol_pipe"; then
6258 lt_cv_sys_global_symbol_to_cdecl=
ce2cded5 6259fi
7357c5b6
AM
6260if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6261 echo "$as_me:$LINENO: result: failed" >&5
6262echo "${ECHO_T}failed" >&6
6263else
6264 echo "$as_me:$LINENO: result: ok" >&5
6265echo "${ECHO_T}ok" >&6
ce2cded5 6266fi
d7040cdb 6267
d7040cdb 6268
d7040cdb 6269
d7040cdb 6270
d7040cdb 6271
d7040cdb 6272
d7040cdb 6273
d7040cdb 6274
d7040cdb 6275
d7040cdb 6276
d7040cdb 6277
d7040cdb 6278
7357c5b6
AM
6279
6280
6281
6282
6283
6284# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6285if test "${enable_libtool_lock+set}" = set; then
6286 enableval="$enable_libtool_lock"
6287
6288fi;
6289test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6290
6291# Some flags need to be propagated to the compiler or linker for good
6292# libtool support.
6293case $host in
6294ia64-*-hpux*)
6295 # Find out which ABI we are using.
6296 echo 'int i;' > conftest.$ac_ext
6297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6298 (eval $ac_compile) 2>&5
6299 ac_status=$?
6300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301 (exit $ac_status); }; then
6302 case `/usr/bin/file conftest.$ac_objext` in
6303 *ELF-32*)
6304 HPUX_IA64_MODE="32"
6305 ;;
6306 *ELF-64*)
6307 HPUX_IA64_MODE="64"
6308 ;;
6309 esac
6310 fi
6311 rm -rf conftest*
6312 ;;
6313*-*-irix6*)
6314 # Find out which ABI we are using.
da594c4a 6315 echo '#line 6315 "configure"' > conftest.$ac_ext
7357c5b6
AM
6316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6317 (eval $ac_compile) 2>&5
6318 ac_status=$?
6319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320 (exit $ac_status); }; then
6321 if test "$lt_cv_prog_gnu_ld" = yes; then
6322 case `/usr/bin/file conftest.$ac_objext` in
6323 *32-bit*)
6324 LD="${LD-ld} -melf32bsmip"
6325 ;;
6326 *N32*)
6327 LD="${LD-ld} -melf32bmipn32"
6328 ;;
6329 *64-bit*)
6330 LD="${LD-ld} -melf64bmip"
6331 ;;
6332 esac
6333 else
6334 case `/usr/bin/file conftest.$ac_objext` in
6335 *32-bit*)
6336 LD="${LD-ld} -32"
6337 ;;
6338 *N32*)
6339 LD="${LD-ld} -n32"
6340 ;;
6341 *64-bit*)
6342 LD="${LD-ld} -64"
6343 ;;
6344 esac
6345 fi
6346 fi
6347 rm -rf conftest*
6348 ;;
6349
6350x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6351s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6352 # Find out which ABI we are using.
6353 echo 'int i;' > conftest.$ac_ext
6354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6355 (eval $ac_compile) 2>&5
6356 ac_status=$?
6357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358 (exit $ac_status); }; then
6359 case `/usr/bin/file conftest.o` in
6360 *32-bit*)
6361 case $host in
6362 x86_64-*kfreebsd*-gnu)
6363 LD="${LD-ld} -m elf_i386_fbsd"
6364 ;;
6365 x86_64-*linux*)
6366 LD="${LD-ld} -m elf_i386"
6367 ;;
6368 ppc64-*linux*|powerpc64-*linux*)
6369 LD="${LD-ld} -m elf32ppclinux"
6370 ;;
6371 s390x-*linux*)
6372 LD="${LD-ld} -m elf_s390"
6373 ;;
6374 sparc64-*linux*)
6375 LD="${LD-ld} -m elf32_sparc"
6376 ;;
6377 esac
6378 ;;
6379 *64-bit*)
6380 case $host in
6381 x86_64-*kfreebsd*-gnu)
6382 LD="${LD-ld} -m elf_x86_64_fbsd"
6383 ;;
6384 x86_64-*linux*)
6385 LD="${LD-ld} -m elf_x86_64"
6386 ;;
6387 ppc*-*linux*|powerpc*-*linux*)
6388 LD="${LD-ld} -m elf64ppc"
6389 ;;
6390 s390*-*linux*|s390*-*tpf*)
6391 LD="${LD-ld} -m elf64_s390"
6392 ;;
6393 sparc*-*linux*)
6394 LD="${LD-ld} -m elf64_sparc"
6395 ;;
6396 esac
6397 ;;
6398 esac
6399 fi
6400 rm -rf conftest*
6401 ;;
6402
6403*-*-sco3.2v5*)
6404 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6405 SAVE_CFLAGS="$CFLAGS"
6406 CFLAGS="$CFLAGS -belf"
6407 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6408echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6409if test "${lt_cv_cc_needs_belf+set}" = set; then
ce2cded5
L
6410 echo $ECHO_N "(cached) $ECHO_C" >&6
6411else
7357c5b6
AM
6412 ac_ext=c
6413ac_cpp='$CPP $CPPFLAGS'
6414ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6415ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6416ac_compiler_gnu=$ac_cv_c_compiler_gnu
6417
6418 cat >conftest.$ac_ext <<_ACEOF
ce2cded5
L
6419/* confdefs.h. */
6420_ACEOF
6421cat confdefs.h >>conftest.$ac_ext
6422cat >>conftest.$ac_ext <<_ACEOF
6423/* end confdefs.h. */
d7040cdb 6424
7357c5b6
AM
6425int
6426main ()
6427{
6428
6429 ;
6430 return 0;
6431}
ce2cded5 6432_ACEOF
7357c5b6
AM
6433rm -f conftest.$ac_objext conftest$ac_exeext
6434if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6435 (eval $ac_link) 2>conftest.er1
ce2cded5
L
6436 ac_status=$?
6437 grep -v '^ *+' conftest.er1 >conftest.err
6438 rm -f conftest.er1
6439 cat conftest.err >&5
6440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441 (exit $ac_status); } &&
6442 { ac_try='test -z "$ac_c_werror_flag"
6443 || test ! -s conftest.err'
6444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6445 (eval $ac_try) 2>&5
6446 ac_status=$?
6447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448 (exit $ac_status); }; } &&
7357c5b6 6449 { ac_try='test -s conftest$ac_exeext'
ce2cded5
L
6450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6451 (eval $ac_try) 2>&5
6452 ac_status=$?
6453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454 (exit $ac_status); }; }; then
7357c5b6 6455 lt_cv_cc_needs_belf=yes
ce2cded5
L
6456else
6457 echo "$as_me: failed program was:" >&5
6458sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 6459
7357c5b6 6460lt_cv_cc_needs_belf=no
ce2cded5 6461fi
7357c5b6
AM
6462rm -f conftest.err conftest.$ac_objext \
6463 conftest$ac_exeext conftest.$ac_ext
6464 ac_ext=c
6465ac_cpp='$CPP $CPPFLAGS'
6466ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6467ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6468ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 6469
ce2cded5 6470fi
7357c5b6
AM
6471echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6472echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6473 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6474 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6475 CFLAGS="$SAVE_CFLAGS"
6476 fi
6477 ;;
6478sparc*-*solaris*)
6479 # Find out which ABI we are using.
6480 echo 'int i;' > conftest.$ac_ext
6481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6482 (eval $ac_compile) 2>&5
6483 ac_status=$?
6484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485 (exit $ac_status); }; then
6486 case `/usr/bin/file conftest.o` in
6487 *64-bit*)
6488 case $lt_cv_prog_gnu_ld in
6489 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6490 *) LD="${LD-ld} -64" ;;
6491 esac
6492 ;;
6493 esac
6494 fi
6495 rm -rf conftest*
6496 ;;
6497esac
d7040cdb 6498
7357c5b6 6499need_locks="$enable_libtool_lock"
d7040cdb 6500
d7040cdb 6501
ce2cded5
L
6502for ac_header in dlfcn.h
6503do
6504as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6505echo "$as_me:$LINENO: checking for $ac_header" >&5
6506echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6507if eval "test \"\${$as_ac_Header+set}\" = set"; then
6508 echo $ECHO_N "(cached) $ECHO_C" >&6
6509else
6510 cat >conftest.$ac_ext <<_ACEOF
6511/* confdefs.h. */
6512_ACEOF
6513cat confdefs.h >>conftest.$ac_ext
6514cat >>conftest.$ac_ext <<_ACEOF
6515/* end confdefs.h. */
6516$ac_includes_default
d7040cdb 6517
ce2cded5
L
6518#include <$ac_header>
6519_ACEOF
6520rm -f conftest.$ac_objext
6521if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6522 (eval $ac_compile) 2>conftest.er1
6523 ac_status=$?
6524 grep -v '^ *+' conftest.er1 >conftest.err
6525 rm -f conftest.er1
6526 cat conftest.err >&5
6527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6528 (exit $ac_status); } &&
6529 { ac_try='test -z "$ac_c_werror_flag"
6530 || test ! -s conftest.err'
6531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6532 (eval $ac_try) 2>&5
6533 ac_status=$?
6534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6535 (exit $ac_status); }; } &&
6536 { ac_try='test -s conftest.$ac_objext'
6537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6538 (eval $ac_try) 2>&5
6539 ac_status=$?
6540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6541 (exit $ac_status); }; }; then
6542 eval "$as_ac_Header=yes"
6543else
6544 echo "$as_me: failed program was:" >&5
6545sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 6546
ce2cded5
L
6547eval "$as_ac_Header=no"
6548fi
6549rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6550fi
6551echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6552echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6553if test `eval echo '${'$as_ac_Header'}'` = yes; then
6554 cat >>confdefs.h <<_ACEOF
6555#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6556_ACEOF
d7040cdb 6557
ce2cded5 6558fi
d7040cdb 6559
ce2cded5 6560done
d7040cdb 6561
d7040cdb 6562
d7040cdb 6563
ce2cded5
L
6564# This can be used to rebuild libtool when needed
6565LIBTOOL_DEPS="$ltmain"
d7040cdb 6566
ce2cded5
L
6567# Always use our own libtool.
6568LIBTOOL='$(SHELL) $(top_builddir)/libtool'
d7040cdb 6569
d7040cdb 6570
d7040cdb 6571
d7040cdb
SE
6572
6573
6574
6575
6576
6577
d7040cdb 6578
d7040cdb 6579
ab509236 6580
ab509236 6581
d7040cdb
SE
6582
6583
6584
6585
6586
13b2be9c 6587
13b2be9c 6588
13b2be9c 6589
13b2be9c 6590
d7040cdb
SE
6591
6592
6593
ce2cded5 6594test -z "$LN_S" && LN_S="ln -s"
d7040cdb
SE
6595
6596
d7040cdb 6597
d7040cdb 6598
d7040cdb
SE
6599
6600
6601
6602
6603
6604
ce2cded5
L
6605
6606
6607
6608
6609if test -n "${ZSH_VERSION+set}" ; then
6610 setopt NO_GLOB_SUBST
6611fi
6612
6613echo "$as_me:$LINENO: checking for objdir" >&5
6614echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6615if test "${lt_cv_objdir+set}" = set; then
d7040cdb
SE
6616 echo $ECHO_N "(cached) $ECHO_C" >&6
6617else
ce2cded5
L
6618 rm -f .libs 2>/dev/null
6619mkdir .libs 2>/dev/null
6620if test -d .libs; then
6621 lt_cv_objdir=.libs
6622else
6623 # MS-DOS does not allow filenames that begin with a dot.
6624 lt_cv_objdir=_libs
d7040cdb 6625fi
ce2cded5
L
6626rmdir .libs 2>/dev/null
6627fi
6628echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6629echo "${ECHO_T}$lt_cv_objdir" >&6
6630objdir=$lt_cv_objdir
d7040cdb
SE
6631
6632
6633
6634
d7040cdb 6635
ce2cded5
L
6636cat >>confdefs.h <<_ACEOF
6637#define LT_OBJDIR "$lt_cv_objdir/"
6638_ACEOF
d7040cdb
SE
6639
6640
6641
6642
6643
d7040cdb 6644
d7040cdb 6645
d7040cdb 6646
d7040cdb 6647
d7040cdb 6648
d7040cdb 6649
d7040cdb 6650
d7040cdb 6651
d7040cdb 6652
d7040cdb 6653
d7040cdb 6654
d7040cdb 6655
ce2cded5
L
6656case $host_os in
6657aix3*)
6658 # AIX sometimes has problems with the GCC collect2 program. For some
6659 # reason, if we set the COLLECT_NAMES environment variable, the problems
6660 # vanish in a puff of smoke.
6661 if test "X${COLLECT_NAMES+set}" != Xset; then
6662 COLLECT_NAMES=
6663 export COLLECT_NAMES
6664 fi
6665 ;;
6666esac
d7040cdb 6667
ce2cded5
L
6668# Sed substitution that helps us do robust quoting. It backslashifies
6669# metacharacters that are still active within double-quoted strings.
6670sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
d7040cdb 6671
ce2cded5
L
6672# Same as above, but do not quote variable references.
6673double_quote_subst='s/\(["`\\]\)/\\\1/g'
d7040cdb 6674
ce2cded5
L
6675# Sed substitution to delay expansion of an escaped shell variable in a
6676# double_quote_subst'ed string.
6677delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
d7040cdb 6678
ce2cded5
L
6679# Sed substitution to delay expansion of an escaped single quote.
6680delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
d7040cdb 6681
ce2cded5
L
6682# Sed substitution to avoid accidental globbing in evaled expressions
6683no_glob_subst='s/\*/\\\*/g'
d7040cdb 6684
ce2cded5
L
6685# Global variables:
6686ofile=libtool
6687can_build_shared=yes
d7040cdb 6688
ce2cded5
L
6689# All known linkers require a `.a' archive for static linking (except MSVC,
6690# which needs '.lib').
6691libext=a
d7040cdb 6692
ce2cded5 6693with_gnu_ld="$lt_cv_prog_gnu_ld"
d7040cdb 6694
ce2cded5
L
6695old_CC="$CC"
6696old_CFLAGS="$CFLAGS"
d7040cdb 6697
ce2cded5
L
6698# Set sane defaults for various variables
6699test -z "$CC" && CC=cc
6700test -z "$LTCC" && LTCC=$CC
6701test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6702test -z "$LD" && LD=ld
6703test -z "$ac_objext" && ac_objext=o
6704
6705for cc_temp in $compiler""; do
6706 case $cc_temp in
6707 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6708 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6709 \-*) ;;
6710 *) break;;
6711 esac
6712done
6713cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6714
6715
6716# Only perform the check for file, if the check method requires it
6717test -z "$MAGIC_CMD" && MAGIC_CMD=file
6718case $deplibs_check_method in
6719file_magic*)
6720 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6721 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6722echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6723if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6724 echo $ECHO_N "(cached) $ECHO_C" >&6
6725else
6726 case $MAGIC_CMD in
6727[\\/*] | ?:[\\/]*)
6728 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6729 ;;
6730*)
6731 lt_save_MAGIC_CMD="$MAGIC_CMD"
6732 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6733 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6734 for ac_dir in $ac_dummy; do
6735 IFS="$lt_save_ifs"
6736 test -z "$ac_dir" && ac_dir=.
6737 if test -f $ac_dir/${ac_tool_prefix}file; then
6738 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6739 if test -n "$file_magic_test_file"; then
6740 case $deplibs_check_method in
6741 "file_magic "*)
6742 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6743 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6744 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6745 $EGREP "$file_magic_regex" > /dev/null; then
6746 :
d7040cdb 6747 else
ce2cded5 6748 cat <<_LT_EOF 1>&2
d7040cdb 6749
ce2cded5
L
6750*** Warning: the command libtool uses to detect shared libraries,
6751*** $file_magic_cmd, produces output that libtool cannot recognize.
6752*** The result is that libtool may fail to recognize shared libraries
6753*** as such. This will affect the creation of libtool libraries that
6754*** depend on shared libraries, but programs linked with such libtool
6755*** libraries will work regardless of this problem. Nevertheless, you
6756*** may want to report the problem to your system manager and/or to
6757*** bug-libtool@gnu.org
d7040cdb 6758
ce2cded5
L
6759_LT_EOF
6760 fi ;;
6761 esac
d7040cdb 6762 fi
ce2cded5 6763 break
d7040cdb 6764 fi
ce2cded5
L
6765 done
6766 IFS="$lt_save_ifs"
6767 MAGIC_CMD="$lt_save_MAGIC_CMD"
6768 ;;
6769esac
6770fi
d7040cdb 6771
ce2cded5
L
6772MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6773if test -n "$MAGIC_CMD"; then
6774 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6775echo "${ECHO_T}$MAGIC_CMD" >&6
6776else
6777 echo "$as_me:$LINENO: result: no" >&5
6778echo "${ECHO_T}no" >&6
6779fi
d7040cdb 6780
d7040cdb 6781
d7040cdb 6782
d7040cdb 6783
d7040cdb 6784
ce2cded5
L
6785if test -z "$lt_cv_path_MAGIC_CMD"; then
6786 if test -n "$ac_tool_prefix"; then
6787 echo "$as_me:$LINENO: checking for file" >&5
6788echo $ECHO_N "checking for file... $ECHO_C" >&6
6789if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6790 echo $ECHO_N "(cached) $ECHO_C" >&6
6791else
6792 case $MAGIC_CMD in
6793[\\/*] | ?:[\\/]*)
6794 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6795 ;;
6796*)
6797 lt_save_MAGIC_CMD="$MAGIC_CMD"
6798 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6799 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6800 for ac_dir in $ac_dummy; do
6801 IFS="$lt_save_ifs"
6802 test -z "$ac_dir" && ac_dir=.
6803 if test -f $ac_dir/file; then
6804 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6805 if test -n "$file_magic_test_file"; then
6806 case $deplibs_check_method in
6807 "file_magic "*)
6808 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6809 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6810 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6811 $EGREP "$file_magic_regex" > /dev/null; then
6812 :
d7040cdb 6813 else
ce2cded5
L
6814 cat <<_LT_EOF 1>&2
6815
6816*** Warning: the command libtool uses to detect shared libraries,
6817*** $file_magic_cmd, produces output that libtool cannot recognize.
6818*** The result is that libtool may fail to recognize shared libraries
6819*** as such. This will affect the creation of libtool libraries that
6820*** depend on shared libraries, but programs linked with such libtool
6821*** libraries will work regardless of this problem. Nevertheless, you
6822*** may want to report the problem to your system manager and/or to
6823*** bug-libtool@gnu.org
6824
6825_LT_EOF
6826 fi ;;
d7040cdb 6827 esac
d7040cdb 6828 fi
ce2cded5
L
6829 break
6830 fi
6831 done
6832 IFS="$lt_save_ifs"
6833 MAGIC_CMD="$lt_save_MAGIC_CMD"
6834 ;;
6835esac
6836fi
d7040cdb 6837
ce2cded5
L
6838MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6839if test -n "$MAGIC_CMD"; then
6840 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6841echo "${ECHO_T}$MAGIC_CMD" >&6
6842else
6843 echo "$as_me:$LINENO: result: no" >&5
6844echo "${ECHO_T}no" >&6
6845fi
d7040cdb 6846
d7040cdb 6847
ce2cded5
L
6848 else
6849 MAGIC_CMD=:
6850 fi
d7040cdb 6851fi
d7040cdb 6852
ce2cded5
L
6853 fi
6854 ;;
6855esac
d7040cdb 6856
ce2cded5 6857# Use C for the default configuration in the libtool script
d7040cdb 6858
ce2cded5
L
6859lt_save_CC="$CC"
6860ac_ext=c
6861ac_cpp='$CPP $CPPFLAGS'
6862ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6863ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6864ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 6865
d7040cdb 6866
ce2cded5
L
6867# Source file extension for C test sources.
6868ac_ext=c
d7040cdb 6869
ce2cded5
L
6870# Object file extension for compiled C test sources.
6871objext=o
6872objext=$objext
d7040cdb 6873
ce2cded5
L
6874# Code to be used in simple compile tests
6875lt_simple_compile_test_code="int some_variable = 0;"
6876
6877# Code to be used in simple link tests
6878lt_simple_link_test_code='int main(){return(0);}'
6879
6880
6881
6882
6883
6884
6885
6886# If no C compiler was specified, use CC.
6887LTCC=${LTCC-"$CC"}
6888
6889# If no C compiler flags were specified, use CFLAGS.
6890LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6891
6892# Allow CC to be a program name with arguments.
6893compiler=$CC
6894
6895# Save the default compiler, since it gets overwritten when the other
6896# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6897compiler_DEFAULT=$CC
6898
6899# save warnings/boilerplate of simple test code
6900ac_outfile=conftest.$ac_objext
6901echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6902eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6903_lt_compiler_boilerplate=`cat conftest.err`
6904$RM conftest*
6905
6906ac_outfile=conftest.$ac_objext
6907echo "$lt_simple_link_test_code" >conftest.$ac_ext
6908eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6909_lt_linker_boilerplate=`cat conftest.err`
6910$RM conftest*
6911
6912
6913## CAVEAT EMPTOR:
6914## There is no encapsulation within the following macros, do not change
6915## the running order or otherwise move them around unless you know exactly
6916## what you are doing...
6917if test -n "$compiler"; then
6918
6919lt_prog_compiler_no_builtin_flag=
6920
6921if test "$GCC" = yes; then
6922 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6923
6924 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6925echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6926if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6927 echo $ECHO_N "(cached) $ECHO_C" >&6
6928else
6929 lt_cv_prog_compiler_rtti_exceptions=no
6930 ac_outfile=conftest.$ac_objext
6931 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6932 lt_compiler_flag="-fno-rtti -fno-exceptions"
6933 # Insert the option either (1) after the last *FLAGS variable, or
6934 # (2) before a word containing "conftest.", or (3) at the end.
6935 # Note that $ac_compile itself does not contain backslashes and begins
6936 # with a dollar sign (not a hyphen), so the echo should work correctly.
6937 # The option is referenced via a variable to avoid confusing sed.
6938 lt_compile=`echo "$ac_compile" | $SED \
6939 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6940 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6941 -e 's:$: $lt_compiler_flag:'`
da594c4a 6942 (eval echo "\"\$as_me:6942: $lt_compile\"" >&5)
ce2cded5
L
6943 (eval "$lt_compile" 2>conftest.err)
6944 ac_status=$?
6945 cat conftest.err >&5
da594c4a 6946 echo "$as_me:6946: \$? = $ac_status" >&5
ce2cded5
L
6947 if (exit $ac_status) && test -s "$ac_outfile"; then
6948 # The compiler can only warn and ignore the option if not recognized
6949 # So say no if there are warnings other than the usual output.
6950 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6951 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6952 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6953 lt_cv_prog_compiler_rtti_exceptions=yes
6954 fi
6955 fi
6956 $RM conftest*
6957
6958fi
6959echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6960echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6961
6962if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6963 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6964else
6965 :
6966fi
6967
6968fi
6969
6970
6971
6972
6973
6974
6975 lt_prog_compiler_wl=
6976lt_prog_compiler_pic=
6977lt_prog_compiler_static=
6978
6979echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6980echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6981
6982 if test "$GCC" = yes; then
6983 lt_prog_compiler_wl='-Wl,'
6984 lt_prog_compiler_static='-static'
6985
6986 case $host_os in
6987 aix*)
6988 # All AIX code is PIC.
6989 if test "$host_cpu" = ia64; then
6990 # AIX 5 now supports IA64 processor
6991 lt_prog_compiler_static='-Bstatic'
6992 fi
6993 ;;
d7040cdb
SE
6994
6995 amigaos*)
6996 if test "$host_cpu" = m68k; then
ce2cded5
L
6997 # FIXME: we need at least 68020 code to build shared libraries, but
6998 # adding the `-m68020' flag to GCC prevents building anything better,
6999 # like `-m68040'.
7000 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
d7040cdb 7001 fi
d7040cdb
SE
7002 ;;
7003
ce2cded5
L
7004 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7005 # PIC is the default for these OSes.
d7040cdb
SE
7006 ;;
7007
ce2cded5
L
7008 mingw* | cygwin* | pw32* | os2*)
7009 # This hack is so that the source file can tell whether it is being
7010 # built for inclusion in a dll (and should export symbols for example).
7011 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7012 # (--disable-auto-import) libraries
7013 lt_prog_compiler_pic='-DDLL_EXPORT'
d7040cdb
SE
7014 ;;
7015
7016 darwin* | rhapsody*)
ce2cded5
L
7017 # PIC is the default on this platform
7018 # Common symbols not allowed in MH_DYLIB files
7019 lt_prog_compiler_pic='-fno-common'
7020 ;;
7021
7022 hpux*)
7023 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7024 # not for PA HP-UX.
7025 case $host_cpu in
7026 hppa*64*|ia64*)
7027 # +Z the default
d7040cdb 7028 ;;
ce2cded5
L
7029 *)
7030 lt_prog_compiler_pic='-fPIC'
d7040cdb
SE
7031 ;;
7032 esac
ce2cded5 7033 ;;
d7040cdb 7034
ce2cded5
L
7035 interix[3-9]*)
7036 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7037 # Instead, we relocate shared libraries at runtime.
d7040cdb
SE
7038 ;;
7039
ce2cded5
L
7040 msdosdjgpp*)
7041 # Just because we use GCC doesn't mean we suddenly get shared libraries
7042 # on systems that don't support them.
7043 lt_prog_compiler_can_build_shared=no
7044 enable_shared=no
d7040cdb
SE
7045 ;;
7046
ce2cded5
L
7047 *nto* | *qnx*)
7048 # QNX uses GNU C++, but need to define -shared option too, otherwise
7049 # it will coredump.
7050 lt_prog_compiler_pic='-fPIC -shared'
d7040cdb
SE
7051 ;;
7052
ce2cded5
L
7053 sysv4*MP*)
7054 if test -d /usr/nec; then
7055 lt_prog_compiler_pic=-Kconform_pic
7056 fi
d7040cdb
SE
7057 ;;
7058
ce2cded5
L
7059 *)
7060 lt_prog_compiler_pic='-fPIC'
d7040cdb 7061 ;;
ce2cded5
L
7062 esac
7063 else
7064 # PORTME Check for flag to pass linker flags through the system compiler.
7065 case $host_os in
7066 aix*)
7067 lt_prog_compiler_wl='-Wl,'
7068 if test "$host_cpu" = ia64; then
7069 # AIX 5 now supports IA64 processor
7070 lt_prog_compiler_static='-Bstatic'
d7040cdb 7071 else
ce2cded5 7072 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
d7040cdb 7073 fi
ce2cded5
L
7074 ;;
7075 darwin*)
7076 # PIC is the default on this platform
7077 # Common symbols not allowed in MH_DYLIB files
7078 case $cc_basename in
7079 xlc*)
7080 lt_prog_compiler_pic='-qnocommon'
7081 lt_prog_compiler_wl='-Wl,'
7082 ;;
7083 esac
7084 ;;
d7040cdb 7085
ce2cded5
L
7086 mingw* | cygwin* | pw32* | os2*)
7087 # This hack is so that the source file can tell whether it is being
7088 # built for inclusion in a dll (and should export symbols for example).
7089 lt_prog_compiler_pic='-DDLL_EXPORT'
d7040cdb
SE
7090 ;;
7091
ce2cded5
L
7092 hpux9* | hpux10* | hpux11*)
7093 lt_prog_compiler_wl='-Wl,'
7094 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7095 # not for PA HP-UX.
7096 case $host_cpu in
7097 hppa*64*|ia64*)
7098 # +Z the default
7099 ;;
7100 *)
7101 lt_prog_compiler_pic='+Z'
7102 ;;
7103 esac
7104 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7105 lt_prog_compiler_static='${wl}-a ${wl}archive'
d7040cdb
SE
7106 ;;
7107
ce2cded5
L
7108 irix5* | irix6* | nonstopux*)
7109 lt_prog_compiler_wl='-Wl,'
7110 # PIC (with -KPIC) is the default.
7111 lt_prog_compiler_static='-non_shared'
7112 ;;
d7040cdb 7113
ce2cded5
L
7114 linux* | k*bsd*-gnu)
7115 case $cc_basename in
7116 icc* | ecc*)
7117 lt_prog_compiler_wl='-Wl,'
7118 lt_prog_compiler_pic='-KPIC'
7119 lt_prog_compiler_static='-static'
7120 ;;
7121 pgcc* | pgf77* | pgf90* | pgf95*)
7122 # Portland Group compilers (*not* the Pentium gcc compiler,
7123 # which looks to be a dead project)
7124 lt_prog_compiler_wl='-Wl,'
7125 lt_prog_compiler_pic='-fpic'
7126 lt_prog_compiler_static='-Bstatic'
7127 ;;
7128 ccc*)
7129 lt_prog_compiler_wl='-Wl,'
7130 # All Alpha code is PIC.
7131 lt_prog_compiler_static='-non_shared'
7132 ;;
7133 *)
7134 case `$CC -V 2>&1 | sed 5q` in
7135 *Sun\ C*)
7136 # Sun C 5.9
7137 lt_prog_compiler_pic='-KPIC'
7138 lt_prog_compiler_static='-Bstatic'
7139 lt_prog_compiler_wl='-Wl,'
d7040cdb 7140 ;;
ce2cded5
L
7141 *Sun\ F*)
7142 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7143 lt_prog_compiler_pic='-KPIC'
7144 lt_prog_compiler_static='-Bstatic'
7145 lt_prog_compiler_wl=''
d7040cdb
SE
7146 ;;
7147 esac
ce2cded5
L
7148 ;;
7149 esac
d7040cdb
SE
7150 ;;
7151
ce2cded5
L
7152 newsos6)
7153 lt_prog_compiler_pic='-KPIC'
7154 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
7155 ;;
7156
ce2cded5
L
7157 *nto* | *qnx*)
7158 # QNX uses GNU C++, but need to define -shared option too, otherwise
7159 # it will coredump.
7160 lt_prog_compiler_pic='-fPIC -shared'
d7040cdb
SE
7161 ;;
7162
ce2cded5
L
7163 osf3* | osf4* | osf5*)
7164 lt_prog_compiler_wl='-Wl,'
7165 # All OSF/1 code is PIC.
7166 lt_prog_compiler_static='-non_shared'
d7040cdb
SE
7167 ;;
7168
ce2cded5
L
7169 rdos*)
7170 lt_prog_compiler_static='-non_shared'
d7040cdb
SE
7171 ;;
7172
7173 solaris*)
ce2cded5
L
7174 lt_prog_compiler_pic='-KPIC'
7175 lt_prog_compiler_static='-Bstatic'
7176 case $cc_basename in
7177 f77* | f90* | f95*)
7178 lt_prog_compiler_wl='-Qoption ld ';;
d7040cdb 7179 *)
ce2cded5 7180 lt_prog_compiler_wl='-Wl,';;
d7040cdb 7181 esac
d7040cdb
SE
7182 ;;
7183
7184 sunos4*)
ce2cded5
L
7185 lt_prog_compiler_wl='-Qoption ld '
7186 lt_prog_compiler_pic='-PIC'
7187 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
7188 ;;
7189
ce2cded5
L
7190 sysv4 | sysv4.2uw2* | sysv4.3*)
7191 lt_prog_compiler_wl='-Wl,'
7192 lt_prog_compiler_pic='-KPIC'
7193 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
7194 ;;
7195
7196 sysv4*MP*)
ce2cded5
L
7197 if test -d /usr/nec ;then
7198 lt_prog_compiler_pic='-Kconform_pic'
7199 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
7200 fi
7201 ;;
7202
ce2cded5
L
7203 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7204 lt_prog_compiler_wl='-Wl,'
7205 lt_prog_compiler_pic='-KPIC'
7206 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
7207 ;;
7208
ce2cded5
L
7209 unicos*)
7210 lt_prog_compiler_wl='-Wl,'
7211 lt_prog_compiler_can_build_shared=no
d7040cdb
SE
7212 ;;
7213
7214 uts4*)
ce2cded5
L
7215 lt_prog_compiler_pic='-pic'
7216 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
7217 ;;
7218
7219 *)
ce2cded5 7220 lt_prog_compiler_can_build_shared=no
d7040cdb
SE
7221 ;;
7222 esac
d7040cdb
SE
7223 fi
7224
ce2cded5
L
7225case $host_os in
7226 # For platforms which do not support PIC, -DPIC is meaningless:
7227 *djgpp*)
7228 lt_prog_compiler_pic=
7229 ;;
7230 *)
7231 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7232 ;;
7233esac
7234echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7235echo "${ECHO_T}$lt_prog_compiler_pic" >&6
d7040cdb
SE
7236
7237
7238
7239
7240
7241
7242#
ce2cded5 7243# Check to make sure the PIC flag actually works.
d7040cdb 7244#
ce2cded5
L
7245if test -n "$lt_prog_compiler_pic"; then
7246 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7247echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7248if test "${lt_prog_compiler_pic_works+set}" = set; then
7249 echo $ECHO_N "(cached) $ECHO_C" >&6
7250else
7251 lt_prog_compiler_pic_works=no
7252 ac_outfile=conftest.$ac_objext
7253 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7254 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7255 # Insert the option either (1) after the last *FLAGS variable, or
7256 # (2) before a word containing "conftest.", or (3) at the end.
7257 # Note that $ac_compile itself does not contain backslashes and begins
7258 # with a dollar sign (not a hyphen), so the echo should work correctly.
7259 # The option is referenced via a variable to avoid confusing sed.
7260 lt_compile=`echo "$ac_compile" | $SED \
7261 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7262 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7263 -e 's:$: $lt_compiler_flag:'`
da594c4a 7264 (eval echo "\"\$as_me:7264: $lt_compile\"" >&5)
ce2cded5
L
7265 (eval "$lt_compile" 2>conftest.err)
7266 ac_status=$?
7267 cat conftest.err >&5
da594c4a 7268 echo "$as_me:7268: \$? = $ac_status" >&5
ce2cded5
L
7269 if (exit $ac_status) && test -s "$ac_outfile"; then
7270 # The compiler can only warn and ignore the option if not recognized
7271 # So say no if there are warnings other than the usual output.
7272 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7273 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7274 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7275 lt_prog_compiler_pic_works=yes
7276 fi
7277 fi
7278 $RM conftest*
d7040cdb 7279
ce2cded5
L
7280fi
7281echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7282echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
d7040cdb 7283
ce2cded5
L
7284if test x"$lt_prog_compiler_pic_works" = xyes; then
7285 case $lt_prog_compiler_pic in
7286 "" | " "*) ;;
7287 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7288 esac
7289else
7290 lt_prog_compiler_pic=
7291 lt_prog_compiler_can_build_shared=no
7292fi
d7040cdb 7293
ce2cded5 7294fi
d7040cdb
SE
7295
7296
7297
7298
7299
7300
ce2cded5
L
7301#
7302# Check to make sure the static flag actually works.
7303#
7304wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7305echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7306echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7307if test "${lt_prog_compiler_static_works+set}" = set; then
7308 echo $ECHO_N "(cached) $ECHO_C" >&6
7309else
7310 lt_prog_compiler_static_works=no
7311 save_LDFLAGS="$LDFLAGS"
7312 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7313 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7314 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7315 # The linker can only warn and ignore the option if not recognized
7316 # So say no if there are warnings
7317 if test -s conftest.err; then
7318 # Append any errors to the config.log.
7319 cat conftest.err 1>&5
7320 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7321 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7322 if diff conftest.exp conftest.er2 >/dev/null; then
7323 lt_prog_compiler_static_works=yes
7324 fi
7325 else
7326 lt_prog_compiler_static_works=yes
7327 fi
7328 fi
7329 $RM conftest*
7330 LDFLAGS="$save_LDFLAGS"
d7040cdb 7331
ce2cded5
L
7332fi
7333echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7334echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
d7040cdb 7335
ce2cded5
L
7336if test x"$lt_prog_compiler_static_works" = xyes; then
7337 :
7338else
7339 lt_prog_compiler_static=
7340fi
d7040cdb
SE
7341
7342
7343
7344
7345
7346
7347
ce2cded5
L
7348 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7349echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7350if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7351 echo $ECHO_N "(cached) $ECHO_C" >&6
7352else
7353 lt_cv_prog_compiler_c_o=no
7354 $RM -r conftest 2>/dev/null
7355 mkdir conftest
7356 cd conftest
7357 mkdir out
7358 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 7359
ce2cded5
L
7360 lt_compiler_flag="-o out/conftest2.$ac_objext"
7361 # Insert the option either (1) after the last *FLAGS variable, or
7362 # (2) before a word containing "conftest.", or (3) at the end.
7363 # Note that $ac_compile itself does not contain backslashes and begins
7364 # with a dollar sign (not a hyphen), so the echo should work correctly.
7365 lt_compile=`echo "$ac_compile" | $SED \
7366 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7367 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7368 -e 's:$: $lt_compiler_flag:'`
da594c4a 7369 (eval echo "\"\$as_me:7369: $lt_compile\"" >&5)
ce2cded5
L
7370 (eval "$lt_compile" 2>out/conftest.err)
7371 ac_status=$?
7372 cat out/conftest.err >&5
da594c4a 7373 echo "$as_me:7373: \$? = $ac_status" >&5
ce2cded5
L
7374 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7375 then
7376 # The compiler can only warn and ignore the option if not recognized
7377 # So say no if there are warnings
7378 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7379 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7380 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7381 lt_cv_prog_compiler_c_o=yes
7382 fi
7383 fi
7384 chmod u+w . 2>&5
7385 $RM conftest*
7386 # SGI C++ compiler will create directory out/ii_files/ for
7387 # template instantiation
7388 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7389 $RM out/* && rmdir out
7390 cd ..
7391 $RM -r conftest
7392 $RM conftest*
d7040cdb 7393
ce2cded5
L
7394fi
7395echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7396echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
d7040cdb
SE
7397
7398
7399
7400
7401
7402
ce2cded5
L
7403 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7404echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7405if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7406 echo $ECHO_N "(cached) $ECHO_C" >&6
7407else
7408 lt_cv_prog_compiler_c_o=no
7409 $RM -r conftest 2>/dev/null
7410 mkdir conftest
7411 cd conftest
7412 mkdir out
7413 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 7414
ce2cded5
L
7415 lt_compiler_flag="-o out/conftest2.$ac_objext"
7416 # Insert the option either (1) after the last *FLAGS variable, or
7417 # (2) before a word containing "conftest.", or (3) at the end.
7418 # Note that $ac_compile itself does not contain backslashes and begins
7419 # with a dollar sign (not a hyphen), so the echo should work correctly.
7420 lt_compile=`echo "$ac_compile" | $SED \
7421 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7422 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7423 -e 's:$: $lt_compiler_flag:'`
da594c4a 7424 (eval echo "\"\$as_me:7424: $lt_compile\"" >&5)
ce2cded5
L
7425 (eval "$lt_compile" 2>out/conftest.err)
7426 ac_status=$?
7427 cat out/conftest.err >&5
da594c4a 7428 echo "$as_me:7428: \$? = $ac_status" >&5
ce2cded5
L
7429 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7430 then
7431 # The compiler can only warn and ignore the option if not recognized
7432 # So say no if there are warnings
7433 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7434 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7435 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7436 lt_cv_prog_compiler_c_o=yes
7437 fi
7438 fi
7439 chmod u+w . 2>&5
7440 $RM conftest*
7441 # SGI C++ compiler will create directory out/ii_files/ for
7442 # template instantiation
7443 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7444 $RM out/* && rmdir out
7445 cd ..
7446 $RM -r conftest
7447 $RM conftest*
d7040cdb 7448
ce2cded5
L
7449fi
7450echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7451echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
d7040cdb
SE
7452
7453
7454
7455
ce2cded5
L
7456hard_links="nottested"
7457if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7458 # do not overwrite the value of need_locks provided by the user
7459 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7460echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7461 hard_links=yes
7462 $RM conftest*
7463 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7464 touch conftest.a
7465 ln conftest.a conftest.b 2>&5 || hard_links=no
7466 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7467 echo "$as_me:$LINENO: result: $hard_links" >&5
7468echo "${ECHO_T}$hard_links" >&6
7469 if test "$hard_links" = no; then
7470 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7471echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7472 need_locks=warn
7473 fi
7474else
7475 need_locks=no
7476fi
d7040cdb
SE
7477
7478
7479
7480
7481
7482
ce2cded5
L
7483 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7484echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
d7040cdb 7485
ce2cded5
L
7486 runpath_var=
7487 allow_undefined_flag=
7488 always_export_symbols=no
7489 archive_cmds=
7490 archive_expsym_cmds=
7491 compiler_needs_object=no
7492 enable_shared_with_static_runtimes=no
7493 export_dynamic_flag_spec=
7494 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7495 hardcode_automatic=no
7496 hardcode_direct=no
7497 hardcode_direct_absolute=no
7498 hardcode_libdir_flag_spec=
7499 hardcode_libdir_flag_spec_ld=
7500 hardcode_libdir_separator=
7501 hardcode_minus_L=no
7502 hardcode_shlibpath_var=unsupported
7503 inherit_rpath=no
7504 link_all_deplibs=unknown
7505 module_cmds=
7506 module_expsym_cmds=
7507 old_archive_from_new_cmds=
7508 old_archive_from_expsyms_cmds=
7509 thread_safe_flag_spec=
7510 whole_archive_flag_spec=
7511 # include_expsyms should be a list of space-separated symbols to be *always*
7512 # included in the symbol list
7513 include_expsyms=
7514 # exclude_expsyms can be an extended regexp of symbols to exclude
7515 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7516 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7517 # as well as any symbol that contains `d'.
7518 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7519 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7520 # platforms (ab)use it in PIC code, but their linkers get confused if
7521 # the symbol is explicitly referenced. Since portable code cannot
7522 # rely on this symbol name, it's probably fine to never include it in
7523 # preloaded symbol tables.
7524 extract_expsyms_cmds=
d7040cdb 7525
ce2cded5
L
7526 case $host_os in
7527 cygwin* | mingw* | pw32*)
7528 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7529 # When not using gcc, we currently assume that we are using
7530 # Microsoft Visual C++.
7531 if test "$GCC" != yes; then
7532 with_gnu_ld=no
7533 fi
7534 ;;
7535 interix*)
7536 # we just hope/assume this is gcc and not c89 (= MSVC++)
7537 with_gnu_ld=yes
7538 ;;
7539 openbsd*)
7540 with_gnu_ld=no
7541 ;;
7542 esac
d7040cdb 7543
ce2cded5
L
7544 ld_shlibs=yes
7545 if test "$with_gnu_ld" = yes; then
7546 # If archive_cmds runs LD, not CC, wlarc should be empty
7547 wlarc='${wl}'
d7040cdb 7548
ce2cded5
L
7549 # Set some defaults for GNU ld with shared library support. These
7550 # are reset later if shared libraries are not supported. Putting them
7551 # here allows them to be overridden if necessary.
7552 runpath_var=LD_RUN_PATH
7553 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7554 export_dynamic_flag_spec='${wl}--export-dynamic'
7555 # ancient GNU ld didn't support --whole-archive et. al.
7556 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7557 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7558 else
7559 whole_archive_flag_spec=
7560 fi
7561 supports_anon_versioning=no
7562 case `$LD -v 2>&1` in
7563 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7564 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7565 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7566 *\ 2.11.*) ;; # other 2.11 versions
7567 *) supports_anon_versioning=yes ;;
7568 esac
d7040cdb 7569
ce2cded5
L
7570 # See if GNU ld supports shared libraries.
7571 case $host_os in
50e7d84b 7572 aix[3-9]*)
ce2cded5
L
7573 # On AIX/PPC, the GNU linker is very broken
7574 if test "$host_cpu" != ia64; then
7575 ld_shlibs=no
7576 cat <<_LT_EOF 1>&2
d7040cdb 7577
ce2cded5
L
7578*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7579*** to be unable to reliably create shared libraries on AIX.
7580*** Therefore, libtool is disabling shared libraries support. If you
7581*** really care for shared libraries, you may want to modify your PATH
7582*** so that a non-GNU linker is found, and then restart.
d7040cdb 7583
ce2cded5
L
7584_LT_EOF
7585 fi
7586 ;;
d7040cdb 7587
ce2cded5
L
7588 amigaos*)
7589 if test "$host_cpu" = m68k; then
7590 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)'
7591 hardcode_libdir_flag_spec='-L$libdir'
7592 hardcode_minus_L=yes
7593 fi
d7040cdb 7594
ce2cded5
L
7595 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7596 # that the semantics of dynamic libraries on AmigaOS, at least up
7597 # to version 4, is to share data among multiple programs linked
7598 # with the same dynamic library. Since this doesn't match the
7599 # behavior of shared libraries on other platforms, we can't use
7600 # them.
7601 ld_shlibs=no
7602 ;;
d7040cdb 7603
ce2cded5
L
7604 beos*)
7605 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7606 allow_undefined_flag=unsupported
7607 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7608 # support --undefined. This deserves some investigation. FIXME
7609 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7610 else
7611 ld_shlibs=no
7612 fi
7613 ;;
d7040cdb 7614
ce2cded5
L
7615 cygwin* | mingw* | pw32*)
7616 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7617 # as there is no search path for DLLs.
7618 hardcode_libdir_flag_spec='-L$libdir'
7619 allow_undefined_flag=unsupported
7620 always_export_symbols=no
7621 enable_shared_with_static_runtimes=yes
7622 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
d7040cdb 7623
ce2cded5
L
7624 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7625 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7626 # If the export-symbols file already is a .def file (1st line
7627 # is EXPORTS), use it as is; otherwise, prepend...
7628 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7629 cp $export_symbols $output_objdir/$soname.def;
7630 else
7631 echo EXPORTS > $output_objdir/$soname.def;
7632 cat $export_symbols >> $output_objdir/$soname.def;
7633 fi~
7634 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7635 else
7636 ld_shlibs=no
7637 fi
7638 ;;
d7040cdb 7639
ce2cded5
L
7640 interix[3-9]*)
7641 hardcode_direct=no
7642 hardcode_shlibpath_var=no
7643 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7644 export_dynamic_flag_spec='${wl}-E'
7645 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7646 # Instead, shared libraries are loaded at an image base (0x10000000 by
7647 # default) and relocated if they conflict, which is a slow very memory
7648 # consuming and fragmenting process. To avoid this, we pick a random,
7649 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7650 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7651 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7652 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'
7653 ;;
d7040cdb 7654
ce2cded5
L
7655 gnu* | linux* | tpf* | k*bsd*-gnu)
7656 tmp_diet=no
7657 if test "$host_os" = linux-dietlibc; then
7658 case $cc_basename in
7659 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7660 esac
7661 fi
7662 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7663 && test "$tmp_diet" = no
7664 then
7665 tmp_addflag=
7666 case $cc_basename,$host_cpu in
7667 pgcc*) # Portland Group C compiler
7668 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'
7669 tmp_addflag=' $pic_flag'
7670 ;;
7671 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7672 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'
7673 tmp_addflag=' $pic_flag -Mnomain' ;;
7674 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7675 tmp_addflag=' -i_dynamic' ;;
7676 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7677 tmp_addflag=' -i_dynamic -nofor_main' ;;
7678 ifc* | ifort*) # Intel Fortran compiler
7679 tmp_addflag=' -nofor_main' ;;
7680 esac
7681 case `$CC -V 2>&1 | sed 5q` in
7682 *Sun\ C*) # Sun C 5.9
7683 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'
7684 compiler_needs_object=yes
7685 tmp_sharedflag='-G' ;;
7686 *Sun\ F*) # Sun Fortran 8.3
7687 tmp_sharedflag='-G' ;;
7688 *)
7689 tmp_sharedflag='-shared' ;;
7690 esac
7691 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d7040cdb 7692
ce2cded5
L
7693 if test "x$supports_anon_versioning" = xyes; then
7694 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7695 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7696 echo "local: *; };" >> $output_objdir/$libname.ver~
7697 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7698 fi
7699 else
7700 ld_shlibs=no
7701 fi
7702 ;;
d7040cdb 7703
ce2cded5
L
7704 netbsd*)
7705 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7706 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7707 wlarc=
7708 else
7709 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7710 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7711 fi
7712 ;;
d7040cdb 7713
ce2cded5
L
7714 solaris*)
7715 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7716 ld_shlibs=no
7717 cat <<_LT_EOF 1>&2
d7040cdb 7718
ce2cded5
L
7719*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7720*** create shared libraries on Solaris systems. Therefore, libtool
7721*** is disabling shared libraries support. We urge you to upgrade GNU
7722*** binutils to release 2.9.1 or newer. Another option is to modify
7723*** your PATH or compiler configuration so that the native linker is
7724*** used, and then restart.
d7040cdb 7725
ce2cded5
L
7726_LT_EOF
7727 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7728 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7729 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7730 else
7731 ld_shlibs=no
7732 fi
7733 ;;
d7040cdb 7734
ce2cded5
L
7735 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7736 case `$LD -v 2>&1` in
7737 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7738 ld_shlibs=no
7739 cat <<_LT_EOF 1>&2
d7040cdb 7740
ce2cded5
L
7741*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7742*** reliably create shared libraries on SCO systems. Therefore, libtool
7743*** is disabling shared libraries support. We urge you to upgrade GNU
7744*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7745*** your PATH or compiler configuration so that the native linker is
7746*** used, and then restart.
d7040cdb 7747
ce2cded5
L
7748_LT_EOF
7749 ;;
7750 *)
7751 # For security reasons, it is highly recommended that you always
7752 # use absolute paths for naming shared libraries, and exclude the
7753 # DT_RUNPATH tag from executables and libraries. But doing so
7754 # requires that you compile everything twice, which is a pain.
7755 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7756 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
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 else
7760 ld_shlibs=no
7761 fi
7762 ;;
7763 esac
7764 ;;
d7040cdb 7765
ce2cded5
L
7766 sunos4*)
7767 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7768 wlarc=
7769 hardcode_direct=yes
7770 hardcode_shlibpath_var=no
7771 ;;
d7040cdb 7772
ce2cded5
L
7773 *)
7774 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7775 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7776 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7777 else
7778 ld_shlibs=no
7779 fi
7780 ;;
7781 esac
d7040cdb 7782
ce2cded5
L
7783 if test "$ld_shlibs" = no; then
7784 runpath_var=
7785 hardcode_libdir_flag_spec=
7786 export_dynamic_flag_spec=
7787 whole_archive_flag_spec=
7788 fi
7789 else
7790 # PORTME fill in a description of your system's linker (not GNU ld)
7791 case $host_os in
7792 aix3*)
7793 allow_undefined_flag=unsupported
7794 always_export_symbols=yes
7795 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'
7796 # Note: this linker hardcodes the directories in LIBPATH if there
7797 # are no directories specified by -L.
7798 hardcode_minus_L=yes
7799 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7800 # Neither direct hardcoding nor static linking is supported with a
7801 # broken collect2.
7802 hardcode_direct=unsupported
7803 fi
7804 ;;
d7040cdb 7805
50e7d84b 7806 aix[4-9]*)
ce2cded5
L
7807 if test "$host_cpu" = ia64; then
7808 # On IA64, the linker does run time linking by default, so we don't
7809 # have to do anything special.
7810 aix_use_runtimelinking=no
7811 exp_sym_flag='-Bexport'
7812 no_entry_flag=""
7813 else
7814 # If we're using GNU nm, then we don't want the "-C" option.
7815 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7816 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7817 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'
7818 else
7819 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'
7820 fi
7821 aix_use_runtimelinking=no
d7040cdb 7822
ce2cded5
L
7823 # Test if we are trying to use run time linking or normal
7824 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7825 # need to do runtime linking.
50e7d84b 7826 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
ce2cded5
L
7827 for ld_flag in $LDFLAGS; do
7828 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7829 aix_use_runtimelinking=yes
7830 break
7831 fi
7832 done
7833 ;;
7834 esac
d7040cdb 7835
ce2cded5
L
7836 exp_sym_flag='-bexport'
7837 no_entry_flag='-bnoentry'
7838 fi
d7040cdb 7839
ce2cded5
L
7840 # When large executables or shared objects are built, AIX ld can
7841 # have problems creating the table of contents. If linking a library
7842 # or program results in "error TOC overflow" add -mminimal-toc to
7843 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7844 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
d7040cdb 7845
ce2cded5
L
7846 archive_cmds=''
7847 hardcode_direct=yes
7848 hardcode_direct_absolute=yes
7849 hardcode_libdir_separator=':'
7850 link_all_deplibs=yes
7851 file_list_spec='${wl}-f,'
d7040cdb 7852
ce2cded5
L
7853 if test "$GCC" = yes; then
7854 case $host_os in aix4.[012]|aix4.[012].*)
7855 # We only want to do this on AIX 4.2 and lower, the check
7856 # below for broken collect2 doesn't work under 4.3+
7857 collect2name=`${CC} -print-prog-name=collect2`
7858 if test -f "$collect2name" &&
7859 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7860 then
7861 # We have reworked collect2
7862 :
7863 else
7864 # We have old collect2
7865 hardcode_direct=unsupported
7866 # It fails to find uninstalled libraries when the uninstalled
7867 # path is not listed in the libpath. Setting hardcode_minus_L
7868 # to unsupported forces relinking
7869 hardcode_minus_L=yes
7870 hardcode_libdir_flag_spec='-L$libdir'
7871 hardcode_libdir_separator=
7872 fi
7873 ;;
7874 esac
7875 shared_flag='-shared'
7876 if test "$aix_use_runtimelinking" = yes; then
7877 shared_flag="$shared_flag "'${wl}-G'
7878 fi
7879 else
7880 # not using gcc
7881 if test "$host_cpu" = ia64; then
7882 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7883 # chokes on -Wl,-G. The following line is correct:
7884 shared_flag='-G'
7885 else
7886 if test "$aix_use_runtimelinking" = yes; then
7887 shared_flag='${wl}-G'
7888 else
7889 shared_flag='${wl}-bM:SRE'
7890 fi
7891 fi
7892 fi
d7040cdb 7893
ce2cded5
L
7894 # It seems that -bexpall does not export symbols beginning with
7895 # underscore (_), so it is better to generate a list of symbols to export.
7896 always_export_symbols=yes
7897 if test "$aix_use_runtimelinking" = yes; then
7898 # Warning - without using the other runtime loading flags (-brtl),
7899 # -berok will link without error, but may produce a broken library.
7900 allow_undefined_flag='-berok'
7901 # Determine the default libpath from the value encoded in an
7902 # empty executable.
7903 cat >conftest.$ac_ext <<_ACEOF
7904/* confdefs.h. */
7905_ACEOF
7906cat confdefs.h >>conftest.$ac_ext
7907cat >>conftest.$ac_ext <<_ACEOF
7908/* end confdefs.h. */
d7040cdb 7909
ce2cded5
L
7910int
7911main ()
7912{
d7040cdb 7913
ce2cded5
L
7914 ;
7915 return 0;
7916}
7917_ACEOF
7918rm -f conftest.$ac_objext conftest$ac_exeext
7919if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7920 (eval $ac_link) 2>conftest.er1
7921 ac_status=$?
7922 grep -v '^ *+' conftest.er1 >conftest.err
7923 rm -f conftest.er1
7924 cat conftest.err >&5
7925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7926 (exit $ac_status); } &&
7927 { ac_try='test -z "$ac_c_werror_flag"
7928 || test ! -s conftest.err'
7929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7930 (eval $ac_try) 2>&5
7931 ac_status=$?
7932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7933 (exit $ac_status); }; } &&
7934 { ac_try='test -s conftest$ac_exeext'
7935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7936 (eval $ac_try) 2>&5
7937 ac_status=$?
7938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7939 (exit $ac_status); }; }; then
d7040cdb 7940
ce2cded5
L
7941lt_aix_libpath_sed='
7942 /Import File Strings/,/^$/ {
7943 /^0/ {
7944 s/^0 *\(.*\)$/\1/
7945 p
7946 }
7947 }'
7948aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7949# Check for a 64-bit object if we didn't find anything.
7950if test -z "$aix_libpath"; then
7951 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7952fi
7953else
7954 echo "$as_me: failed program was:" >&5
7955sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 7956
ce2cded5
L
7957fi
7958rm -f conftest.err conftest.$ac_objext \
7959 conftest$ac_exeext conftest.$ac_ext
7960if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 7961
ce2cded5
L
7962 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7963 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"
7964 else
7965 if test "$host_cpu" = ia64; then
7966 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7967 allow_undefined_flag="-z nodefs"
7968 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"
7969 else
7970 # Determine the default libpath from the value encoded in an
7971 # empty executable.
7972 cat >conftest.$ac_ext <<_ACEOF
7973/* confdefs.h. */
7974_ACEOF
7975cat confdefs.h >>conftest.$ac_ext
7976cat >>conftest.$ac_ext <<_ACEOF
7977/* end confdefs.h. */
d7040cdb 7978
ce2cded5
L
7979int
7980main ()
7981{
d7040cdb 7982
ce2cded5
L
7983 ;
7984 return 0;
7985}
7986_ACEOF
7987rm -f conftest.$ac_objext conftest$ac_exeext
7988if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7989 (eval $ac_link) 2>conftest.er1
7990 ac_status=$?
7991 grep -v '^ *+' conftest.er1 >conftest.err
7992 rm -f conftest.er1
7993 cat conftest.err >&5
7994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7995 (exit $ac_status); } &&
7996 { ac_try='test -z "$ac_c_werror_flag"
7997 || test ! -s conftest.err'
7998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7999 (eval $ac_try) 2>&5
8000 ac_status=$?
8001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8002 (exit $ac_status); }; } &&
8003 { ac_try='test -s conftest$ac_exeext'
8004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8005 (eval $ac_try) 2>&5
8006 ac_status=$?
8007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8008 (exit $ac_status); }; }; then
d7040cdb 8009
ce2cded5
L
8010lt_aix_libpath_sed='
8011 /Import File Strings/,/^$/ {
8012 /^0/ {
8013 s/^0 *\(.*\)$/\1/
8014 p
8015 }
8016 }'
8017aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8018# Check for a 64-bit object if we didn't find anything.
8019if test -z "$aix_libpath"; then
8020 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8021fi
8022else
8023 echo "$as_me: failed program was:" >&5
8024sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 8025
ce2cded5
L
8026fi
8027rm -f conftest.err conftest.$ac_objext \
8028 conftest$ac_exeext conftest.$ac_ext
8029if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 8030
ce2cded5
L
8031 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8032 # Warning - without using the other run time loading flags,
8033 # -berok will link without error, but may produce a broken library.
8034 no_undefined_flag=' ${wl}-bernotok'
8035 allow_undefined_flag=' ${wl}-berok'
8036 # Exported symbols can be pulled into shared objects from archives
8037 whole_archive_flag_spec='$convenience'
8038 archive_cmds_need_lc=yes
8039 # This is similar to how AIX traditionally builds its shared libraries.
8040 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'
8041 fi
8042 fi
8043 ;;
d7040cdb 8044
ce2cded5
L
8045 amigaos*)
8046 if test "$host_cpu" = m68k; then
8047 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)'
8048 hardcode_libdir_flag_spec='-L$libdir'
8049 hardcode_minus_L=yes
8050 fi
8051 # see comment about different semantics on the GNU ld section
8052 ld_shlibs=no
8053 ;;
d7040cdb 8054
ce2cded5
L
8055 bsdi[45]*)
8056 export_dynamic_flag_spec=-rdynamic
8057 ;;
d7040cdb 8058
ce2cded5
L
8059 cygwin* | mingw* | pw32*)
8060 # When not using gcc, we currently assume that we are using
8061 # Microsoft Visual C++.
8062 # hardcode_libdir_flag_spec is actually meaningless, as there is
8063 # no search path for DLLs.
8064 hardcode_libdir_flag_spec=' '
8065 allow_undefined_flag=unsupported
8066 # Tell ltmain to make .lib files, not .a files.
8067 libext=lib
8068 # Tell ltmain to make .dll files, not .so files.
8069 shrext_cmds=".dll"
8070 # FIXME: Setting linknames here is a bad hack.
8071 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8072 # The linker will automatically build a .lib file if we build a DLL.
8073 old_archive_from_new_cmds='true'
8074 # FIXME: Should let the user specify the lib program.
8075 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8076 fix_srcfile_path='`cygpath -w "$srcfile"`'
8077 enable_shared_with_static_runtimes=yes
8078 ;;
d7040cdb 8079
ce2cded5
L
8080 darwin* | rhapsody*)
8081 case $host_os in
8082 rhapsody* | darwin1.[012])
8083 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8084 ;;
8085 *) # Darwin 1.3 on
8086 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
8087 10.[012])
8088 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8089 ;;
8090 10.*)
8091 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8092 ;;
8093 esac
8094 ;;
8095 esac
8096 archive_cmds_need_lc=no
8097 hardcode_direct=no
8098 hardcode_automatic=yes
8099 hardcode_shlibpath_var=unsupported
8100 whole_archive_flag_spec=''
8101 link_all_deplibs=yes
8102 if test "$GCC" = yes ; then
8103 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8104 echo $ECHO_N "(cached) $ECHO_C" >&6
8105else
8106 lt_cv_apple_cc_single_mod=no
8107 if test -z "${LT_MULTI_MODULE}"; then
8108 # By default we will add the -single_module flag. You can override
8109 # by either setting the environment variable LT_MULTI_MODULE
8110 # non-empty at configure time, or by adding -multi-module to the
8111 # link flags.
8112 echo "int foo(void){return 1;}" > conftest.c
8113 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8114 -dynamiclib ${wl}-single_module conftest.c
8115 if test -f libconftest.dylib; then
8116 lt_cv_apple_cc_single_mod=yes
8117 rm libconftest.dylib
8118 fi
8119 rm conftest.$ac_ext
8120 fi
8121fi
d7040cdb 8122
ce2cded5
L
8123 output_verbose_link_cmd=echo
8124 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
8125 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8126 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}'
8127 else
8128 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8129 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}'
8130 fi
8131 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8132 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}'
8133 else
8134 case $cc_basename in
8135 xlc*)
8136 output_verbose_link_cmd=echo
8137 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
8138 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8139 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8140 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}'
8141 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}'
8142 ;;
8143 *)
8144 ld_shlibs=no
8145 ;;
8146 esac
8147 fi
8148 ;;
d7040cdb 8149
ce2cded5
L
8150 dgux*)
8151 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8152 hardcode_libdir_flag_spec='-L$libdir'
8153 hardcode_shlibpath_var=no
8154 ;;
d7040cdb 8155
ce2cded5
L
8156 freebsd1*)
8157 ld_shlibs=no
8158 ;;
d7040cdb 8159
ce2cded5
L
8160 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8161 # support. Future versions do this automatically, but an explicit c++rt0.o
8162 # does not break anything, and helps significantly (at the cost of a little
8163 # extra space).
8164 freebsd2.2*)
8165 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8166 hardcode_libdir_flag_spec='-R$libdir'
8167 hardcode_direct=yes
8168 hardcode_shlibpath_var=no
8169 ;;
d7040cdb 8170
ce2cded5
L
8171 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8172 freebsd2*)
8173 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8174 hardcode_direct=yes
8175 hardcode_minus_L=yes
8176 hardcode_shlibpath_var=no
8177 ;;
d7040cdb 8178
ce2cded5
L
8179 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8180 freebsd* | dragonfly*)
8181 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8182 hardcode_libdir_flag_spec='-R$libdir'
8183 hardcode_direct=yes
8184 hardcode_shlibpath_var=no
8185 ;;
d7040cdb 8186
ce2cded5
L
8187 hpux9*)
8188 if test "$GCC" = yes; then
8189 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'
8190 else
8191 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'
8192 fi
8193 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8194 hardcode_libdir_separator=:
8195 hardcode_direct=yes
d7040cdb 8196
ce2cded5
L
8197 # hardcode_minus_L: Not really in the search PATH,
8198 # but as the default location of the library.
8199 hardcode_minus_L=yes
8200 export_dynamic_flag_spec='${wl}-E'
8201 ;;
d7040cdb 8202
ce2cded5
L
8203 hpux10*)
8204 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8205 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8206 else
8207 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8208 fi
8209 if test "$with_gnu_ld" = no; then
8210 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8211 hardcode_libdir_flag_spec_ld='+b $libdir'
8212 hardcode_libdir_separator=:
8213 hardcode_direct=yes
8214 hardcode_direct_absolute=yes
8215 export_dynamic_flag_spec='${wl}-E'
8216 # hardcode_minus_L: Not really in the search PATH,
8217 # but as the default location of the library.
8218 hardcode_minus_L=yes
8219 fi
8220 ;;
d7040cdb 8221
ce2cded5
L
8222 hpux11*)
8223 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8224 case $host_cpu in
8225 hppa*64*)
8226 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8227 ;;
8228 ia64*)
8229 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8230 ;;
8231 *)
8232 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8233 ;;
8234 esac
8235 else
8236 case $host_cpu in
8237 hppa*64*)
8238 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8239 ;;
8240 ia64*)
8241 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8242 ;;
8243 *)
8244 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8245 ;;
8246 esac
8247 fi
8248 if test "$with_gnu_ld" = no; then
8249 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8250 hardcode_libdir_separator=:
d7040cdb 8251
ce2cded5
L
8252 case $host_cpu in
8253 hppa*64*|ia64*)
8254 hardcode_direct=no
8255 hardcode_shlibpath_var=no
8256 ;;
8257 *)
8258 hardcode_direct=yes
8259 hardcode_direct_absolute=yes
8260 export_dynamic_flag_spec='${wl}-E'
d7040cdb 8261
ce2cded5
L
8262 # hardcode_minus_L: Not really in the search PATH,
8263 # but as the default location of the library.
8264 hardcode_minus_L=yes
8265 ;;
8266 esac
8267 fi
8268 ;;
8269
8270 irix5* | irix6* | nonstopux*)
8271 if test "$GCC" = yes; then
8272 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'
8273 # Try to use the -exported_symbol ld option, if it does not
8274 # work, assume that -exports_file does not work either and
8275 # implicitly export all symbols.
8276 save_LDFLAGS="$LDFLAGS"
8277 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8278 cat >conftest.$ac_ext <<_ACEOF
8279int foo(void) {}
8280_ACEOF
8281rm -f conftest.$ac_objext conftest$ac_exeext
8282if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8283 (eval $ac_link) 2>conftest.er1
8284 ac_status=$?
8285 grep -v '^ *+' conftest.er1 >conftest.err
8286 rm -f conftest.er1
8287 cat conftest.err >&5
8288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289 (exit $ac_status); } &&
8290 { ac_try='test -z "$ac_c_werror_flag"
8291 || test ! -s conftest.err'
8292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8293 (eval $ac_try) 2>&5
8294 ac_status=$?
8295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8296 (exit $ac_status); }; } &&
8297 { ac_try='test -s conftest$ac_exeext'
8298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8299 (eval $ac_try) 2>&5
8300 ac_status=$?
8301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302 (exit $ac_status); }; }; then
8303 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 8304
d7040cdb 8305else
ce2cded5
L
8306 echo "$as_me: failed program was:" >&5
8307sed 's/^/| /' conftest.$ac_ext >&5
8308
d7040cdb 8309fi
ce2cded5
L
8310rm -f conftest.err conftest.$ac_objext \
8311 conftest$ac_exeext conftest.$ac_ext
8312 LDFLAGS="$save_LDFLAGS"
8313 else
8314 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'
8315 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'
8316 fi
8317 archive_cmds_need_lc='no'
8318 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8319 hardcode_libdir_separator=:
8320 inherit_rpath=yes
8321 link_all_deplibs=yes
8322 ;;
d7040cdb 8323
ce2cded5
L
8324 netbsd*)
8325 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8326 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8327 else
8328 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8329 fi
8330 hardcode_libdir_flag_spec='-R$libdir'
8331 hardcode_direct=yes
8332 hardcode_shlibpath_var=no
8333 ;;
d7040cdb 8334
ce2cded5
L
8335 newsos6)
8336 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8337 hardcode_direct=yes
8338 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8339 hardcode_libdir_separator=:
8340 hardcode_shlibpath_var=no
8341 ;;
d7040cdb 8342
ce2cded5
L
8343 *nto* | *qnx*)
8344 ;;
d7040cdb 8345
ce2cded5
L
8346 openbsd*)
8347 hardcode_direct=yes
8348 hardcode_shlibpath_var=no
8349 hardcode_direct_absolute=yes
8350 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8351 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8352 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8353 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8354 export_dynamic_flag_spec='${wl}-E'
d7040cdb 8355 else
ce2cded5
L
8356 case $host_os in
8357 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8358 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8359 hardcode_libdir_flag_spec='-R$libdir'
8360 ;;
8361 *)
8362 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8363 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8364 ;;
8365 esac
d7040cdb
SE
8366 fi
8367 ;;
d7040cdb 8368
ce2cded5
L
8369 os2*)
8370 hardcode_libdir_flag_spec='-L$libdir'
8371 hardcode_minus_L=yes
8372 allow_undefined_flag=unsupported
8373 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'
8374 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8375 ;;
d7040cdb 8376
ce2cded5
L
8377 osf3*)
8378 if test "$GCC" = yes; then
8379 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8380 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'
8381 else
8382 allow_undefined_flag=' -expect_unresolved \*'
8383 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'
8384 fi
8385 archive_cmds_need_lc='no'
8386 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8387 hardcode_libdir_separator=:
8388 ;;
d7040cdb 8389
ce2cded5
L
8390 osf4* | osf5*) # as osf3* with the addition of -msym flag
8391 if test "$GCC" = yes; then
8392 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8393 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'
8394 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8395 else
8396 allow_undefined_flag=' -expect_unresolved \*'
8397 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'
8398 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~
8399 $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 8400
ce2cded5
L
8401 # Both c and cxx compiler support -rpath directly
8402 hardcode_libdir_flag_spec='-rpath $libdir'
8403 fi
8404 archive_cmds_need_lc='no'
8405 hardcode_libdir_separator=:
8406 ;;
d7040cdb 8407
ce2cded5
L
8408 solaris*)
8409 no_undefined_flag=' -z defs'
8410 if test "$GCC" = yes; then
8411 wlarc='${wl}'
8412 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8413 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8414 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8415 else
8416 case `$CC -V 2>&1` in
8417 *"Compilers 5.0"*)
8418 wlarc=''
8419 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8420 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8421 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8422 ;;
8423 *)
8424 wlarc='${wl}'
8425 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8426 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8427 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8428 ;;
8429 esac
8430 fi
8431 hardcode_libdir_flag_spec='-R$libdir'
8432 hardcode_shlibpath_var=no
8433 case $host_os in
8434 solaris2.[0-5] | solaris2.[0-5].*) ;;
8435 *)
8436 # The compiler driver will combine and reorder linker options,
8437 # but understands `-z linker_flag'. GCC discards it without `$wl',
8438 # but is careful enough not to reorder.
8439 # Supported since Solaris 2.6 (maybe 2.5.1?)
8440 if test "$GCC" = yes; then
8441 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8442 else
8443 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8444 fi
8445 ;;
8446 esac
8447 link_all_deplibs=yes
d7040cdb 8448 ;;
ce2cded5
L
8449
8450 sunos4*)
8451 if test "x$host_vendor" = xsequent; then
8452 # Use $CC to link under sequent, because it throws in some extra .o
8453 # files that make .init and .fini sections work.
8454 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
d7040cdb 8455 else
ce2cded5 8456 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
d7040cdb 8457 fi
ce2cded5
L
8458 hardcode_libdir_flag_spec='-L$libdir'
8459 hardcode_direct=yes
8460 hardcode_minus_L=yes
8461 hardcode_shlibpath_var=no
d7040cdb 8462 ;;
ce2cded5
L
8463
8464 sysv4)
8465 case $host_vendor in
8466 sni)
8467 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8468 hardcode_direct=yes # is this really true???
8469 ;;
8470 siemens)
8471 ## LD is ld it makes a PLAMLIB
8472 ## CC just makes a GrossModule.
8473 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8474 reload_cmds='$CC -r -o $output$reload_objs'
8475 hardcode_direct=no
8476 ;;
8477 motorola)
8478 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8479 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8480 ;;
8481 esac
8482 runpath_var='LD_RUN_PATH'
8483 hardcode_shlibpath_var=no
d7040cdb 8484 ;;
d7040cdb 8485
ce2cded5
L
8486 sysv4.3*)
8487 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8488 hardcode_shlibpath_var=no
8489 export_dynamic_flag_spec='-Bexport'
8490 ;;
d7040cdb 8491
ce2cded5
L
8492 sysv4*MP*)
8493 if test -d /usr/nec; then
8494 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8495 hardcode_shlibpath_var=no
8496 runpath_var=LD_RUN_PATH
8497 hardcode_runpath_var=yes
8498 ld_shlibs=yes
8499 fi
8500 ;;
d7040cdb 8501
ce2cded5
L
8502 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8503 no_undefined_flag='${wl}-z,text'
8504 archive_cmds_need_lc=no
8505 hardcode_shlibpath_var=no
8506 runpath_var='LD_RUN_PATH'
d7040cdb 8507
ce2cded5
L
8508 if test "$GCC" = yes; then
8509 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8510 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8511 else
8512 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8513 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8514 fi
8515 ;;
d7040cdb 8516
ce2cded5
L
8517 sysv5* | sco3.2v5* | sco5v6*)
8518 # Note: We can NOT use -z defs as we might desire, because we do not
8519 # link with -lc, and that would cause any symbols used from libc to
8520 # always be unresolved, which means just about no library would
8521 # ever link correctly. If we're not using GNU ld we use -z text
8522 # though, which does catch some bad symbols but isn't as heavy-handed
8523 # as -z defs.
8524 no_undefined_flag='${wl}-z,text'
8525 allow_undefined_flag='${wl}-z,nodefs'
8526 archive_cmds_need_lc=no
8527 hardcode_shlibpath_var=no
8528 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8529 hardcode_libdir_separator=':'
8530 link_all_deplibs=yes
8531 export_dynamic_flag_spec='${wl}-Bexport'
8532 runpath_var='LD_RUN_PATH'
d7040cdb 8533
ce2cded5
L
8534 if test "$GCC" = yes; then
8535 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8536 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8537 else
8538 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8539 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8540 fi
d7040cdb 8541 ;;
d7040cdb 8542
ce2cded5
L
8543 uts4*)
8544 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8545 hardcode_libdir_flag_spec='-L$libdir'
8546 hardcode_shlibpath_var=no
8547 ;;
d7040cdb 8548
ce2cded5
L
8549 *)
8550 ld_shlibs=no
8551 ;;
8552 esac
8553
8554 if test x$host_vendor = xsni; then
8555 case $host in
8556 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8557 export_dynamic_flag_spec='${wl}-Blargedynsym'
8558 ;;
8559 esac
d7040cdb 8560 fi
ce2cded5 8561 fi
d7040cdb 8562
ce2cded5
L
8563echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8564echo "${ECHO_T}$ld_shlibs" >&6
8565test "$ld_shlibs" = no && can_build_shared=no
d7040cdb 8566
ce2cded5 8567with_gnu_ld=$with_gnu_ld
d7040cdb 8568
d7040cdb 8569
d7040cdb 8570
d7040cdb 8571
d7040cdb 8572
d7040cdb 8573
d7040cdb 8574
d7040cdb 8575
d7040cdb 8576
d7040cdb 8577
d7040cdb 8578
d7040cdb 8579
d7040cdb 8580
d7040cdb 8581
d7040cdb 8582
ce2cded5
L
8583#
8584# Do we need to explicitly link libc?
8585#
8586case "x$archive_cmds_need_lc" in
8587x|xyes)
8588 # Assume -lc should be added
8589 archive_cmds_need_lc=yes
d7040cdb 8590
ce2cded5
L
8591 if test "$enable_shared" = yes && test "$GCC" = yes; then
8592 case $archive_cmds in
8593 *'~'*)
8594 # FIXME: we may have to deal with multi-command sequences.
8595 ;;
8596 '$CC '*)
8597 # Test whether the compiler implicitly links with -lc since on some
8598 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8599 # to ld, don't add -lc before -lgcc.
8600 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8601echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8602 $RM conftest*
8603 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 8604
ce2cded5
L
8605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8606 (eval $ac_compile) 2>&5
8607 ac_status=$?
8608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609 (exit $ac_status); } 2>conftest.err; then
8610 soname=conftest
8611 lib=conftest
8612 libobjs=conftest.$ac_objext
8613 deplibs=
8614 wl=$lt_prog_compiler_wl
8615 pic_flag=$lt_prog_compiler_pic
8616 compiler_flags=-v
8617 linker_flags=-v
8618 verstring=
8619 output_objdir=.
8620 libname=conftest
8621 lt_save_allow_undefined_flag=$allow_undefined_flag
8622 allow_undefined_flag=
8623 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8624 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8625 ac_status=$?
8626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627 (exit $ac_status); }
8628 then
8629 archive_cmds_need_lc=no
8630 else
8631 archive_cmds_need_lc=yes
8632 fi
8633 allow_undefined_flag=$lt_save_allow_undefined_flag
8634 else
8635 cat conftest.err 1>&5
8636 fi
8637 $RM conftest*
8638 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8639echo "${ECHO_T}$archive_cmds_need_lc" >&6
8640 ;;
8641 esac
d7040cdb 8642 fi
d7040cdb 8643 ;;
ce2cded5 8644esac
d7040cdb 8645
d7040cdb 8646
d7040cdb 8647
d7040cdb 8648
d7040cdb 8649
d7040cdb 8650
d7040cdb 8651
d7040cdb
SE
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
d7040cdb 8739
d7040cdb 8740
d7040cdb
SE
8741
8742
8743
8744
8745
8746
d7040cdb 8747
d7040cdb 8748
d7040cdb 8749
d7040cdb 8750
d7040cdb 8751
d7040cdb 8752
d7040cdb 8753
d7040cdb 8754
d7040cdb 8755
d7040cdb 8756
d7040cdb 8757
d7040cdb 8758
d7040cdb 8759
d7040cdb 8760
d7040cdb 8761
d7040cdb 8762
d7040cdb 8763
d7040cdb 8764
d7040cdb 8765
d7040cdb 8766
d7040cdb 8767
d7040cdb 8768
d7040cdb 8769
ce2cded5
L
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 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8803echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8804withGCC=$GCC
8805if test "$withGCC" = yes; then
8806 case $host_os in
8807 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8808 *) lt_awk_arg="/^libraries:/" ;;
8809 esac
8810 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8811 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8812 # if the path contains ";" then we assume it to be the separator
8813 # otherwise default to the standard path separator (i.e. ":") - it is
8814 # assumed that no part of a normal pathname contains ";" but that should
8815 # okay in the real world where ";" in dirpaths is itself problematic.
8816 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8817 else
8818 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8819 fi
8820 # Ok, now we have the path, separated by spaces, we can step through it
8821 # and add multilib dir if necessary.
8822 lt_tmp_lt_search_path_spec=
8823 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8824 for lt_sys_path in $lt_search_path_spec; do
8825 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8826 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8827 else
8828 test -d "$lt_sys_path" && \
8829 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8830 fi
8831 done
8832 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8833BEGIN {RS=" "; FS="/|\n";} {
8834 lt_foo="";
8835 lt_count=0;
8836 for (lt_i = NF; lt_i > 0; lt_i--) {
8837 if ($lt_i != "" && $lt_i != ".") {
8838 if ($lt_i == "..") {
8839 lt_count++;
8840 } else {
8841 if (lt_count == 0) {
8842 lt_foo="/" $lt_i lt_foo;
8843 } else {
8844 lt_count--;
8845 }
8846 }
8847 }
8848 }
8849 if (lt_foo != "") { lt_freq[lt_foo]++; }
8850 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8851}'`
8852 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
d7040cdb 8853else
ce2cded5
L
8854 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8855fi
8856library_names_spec=
8857libname_spec='lib$name'
8858soname_spec=
8859shrext_cmds=".so"
8860postinstall_cmds=
8861postuninstall_cmds=
8862finish_cmds=
8863finish_eval=
8864shlibpath_var=
8865shlibpath_overrides_runpath=unknown
8866version_type=none
8867dynamic_linker="$host_os ld.so"
8868sys_lib_dlsearch_path_spec="/lib /usr/lib"
8869need_lib_prefix=unknown
8870hardcode_into_libs=no
8871
8872# when you set need_version to no, make sure it does not cause -set_version
8873# flags to be left without arguments
8874need_version=unknown
8875
8876case $host_os in
8877aix3*)
8878 version_type=linux
8879 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8880 shlibpath_var=LIBPATH
8881
8882 # AIX 3 has no versioning support, so we append a major version to the name.
8883 soname_spec='${libname}${release}${shared_ext}$major'
8884 ;;
8885
50e7d84b 8886aix[4-9]*)
ce2cded5
L
8887 version_type=linux
8888 need_lib_prefix=no
8889 need_version=no
8890 hardcode_into_libs=yes
8891 if test "$host_cpu" = ia64; then
8892 # AIX 5 supports IA64
8893 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8894 shlibpath_var=LD_LIBRARY_PATH
8895 else
8896 # With GCC up to 2.95.x, collect2 would create an import file
8897 # for dependence libraries. The import file would start with
8898 # the line `#! .'. This would cause the generated library to
8899 # depend on `.', always an invalid library. This was fixed in
8900 # development snapshots of GCC prior to 3.0.
8901 case $host_os in
8902 aix4 | aix4.[01] | aix4.[01].*)
8903 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8904 echo ' yes '
8905 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8906 :
8907 else
8908 can_build_shared=no
8909 fi
8910 ;;
8911 esac
8912 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8913 # soname into executable. Probably we can add versioning support to
8914 # collect2, so additional links can be useful in future.
8915 if test "$aix_use_runtimelinking" = yes; then
8916 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8917 # instead of lib<name>.a to let people know that these are not
8918 # typical AIX shared libraries.
8919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8920 else
8921 # We preserve .a as extension for shared libraries through AIX4.2
8922 # and later when we are not doing run time linking.
8923 library_names_spec='${libname}${release}.a $libname.a'
8924 soname_spec='${libname}${release}${shared_ext}$major'
8925 fi
8926 shlibpath_var=LIBPATH
8927 fi
8928 ;;
8929
8930amigaos*)
8931 if test "$host_cpu" = m68k; then
8932 library_names_spec='$libname.ixlibrary $libname.a'
8933 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8934 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'
8935 else
8936 dynamic_linker=no
8937 fi
8938 ;;
8939
8940beos*)
8941 library_names_spec='${libname}${shared_ext}'
8942 dynamic_linker="$host_os ld.so"
8943 shlibpath_var=LIBRARY_PATH
8944 ;;
8945
8946bsdi[45]*)
8947 version_type=linux
8948 need_version=no
8949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8950 soname_spec='${libname}${release}${shared_ext}$major'
8951 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8952 shlibpath_var=LD_LIBRARY_PATH
8953 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8954 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8955 # the default ld.so.conf also contains /usr/contrib/lib and
8956 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8957 # libtool to hard-code these into programs
8958 ;;
8959
8960cygwin* | mingw* | pw32*)
8961 version_type=windows
8962 shrext_cmds=".dll"
8963 need_version=no
8964 need_lib_prefix=no
8965
8966 case $withGCC,$host_os in
8967 yes,cygwin* | yes,mingw* | yes,pw32*)
8968 library_names_spec='$libname.dll.a'
8969 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8970 postinstall_cmds='base_file=`basename \${file}`~
8971 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8972 dldir=$destdir/`dirname \$dlpath`~
8973 test -d \$dldir || mkdir -p \$dldir~
8974 $install_prog $dir/$dlname \$dldir/$dlname~
8975 chmod a+x \$dldir/$dlname~
8976 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8977 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8978 fi'
8979 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8980 dlpath=$dir/\$dldll~
8981 $RM \$dlpath'
8982 shlibpath_overrides_runpath=yes
8983
8984 case $host_os in
8985 cygwin*)
8986 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8987 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8988 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8989 ;;
8990 mingw*)
8991 # MinGW DLLs use traditional 'lib' prefix
8992 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8993 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8994 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8995 # It is most probably a Windows format PATH printed by
8996 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8997 # path with ; separators, and with drive letters. We can handle the
8998 # drive letters (cygwin fileutils understands them), so leave them,
8999 # especially as we might pass files found there to a mingw objdump,
9000 # which wouldn't understand a cygwinified path. Ahh.
9001 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9002 else
9003 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9004 fi
9005 ;;
9006 pw32*)
9007 # pw32 DLLs use 'pw' prefix rather than 'lib'
9008 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9009 ;;
9010 esac
9011 ;;
9012
9013 *)
9014 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9015 ;;
9016 esac
9017 dynamic_linker='Win32 ld.exe'
9018 # FIXME: first we should search . and the directory the executable is in
9019 shlibpath_var=PATH
9020 ;;
9021
9022darwin* | rhapsody*)
9023 dynamic_linker="$host_os dyld"
9024 version_type=darwin
9025 need_lib_prefix=no
9026 need_version=no
9027 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9028 soname_spec='${libname}${release}${major}$shared_ext'
9029 shlibpath_overrides_runpath=yes
9030 shlibpath_var=DYLD_LIBRARY_PATH
9031 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9032
9033 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9034 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9035 ;;
9036
9037dgux*)
9038 version_type=linux
9039 need_lib_prefix=no
9040 need_version=no
9041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9042 soname_spec='${libname}${release}${shared_ext}$major'
9043 shlibpath_var=LD_LIBRARY_PATH
9044 ;;
9045
9046freebsd1*)
9047 dynamic_linker=no
9048 ;;
9049
9050freebsd* | dragonfly*)
9051 # DragonFly does not have aout. When/if they implement a new
9052 # versioning mechanism, adjust this.
9053 if test -x /usr/bin/objformat; then
9054 objformat=`/usr/bin/objformat`
9055 else
9056 case $host_os in
9057 freebsd[123]*) objformat=aout ;;
9058 *) objformat=elf ;;
9059 esac
9060 fi
9061 version_type=freebsd-$objformat
9062 case $version_type in
9063 freebsd-elf*)
9064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9065 need_version=no
9066 need_lib_prefix=no
9067 ;;
9068 freebsd-*)
9069 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9070 need_version=yes
9071 ;;
9072 esac
9073 shlibpath_var=LD_LIBRARY_PATH
9074 case $host_os in
9075 freebsd2*)
9076 shlibpath_overrides_runpath=yes
9077 ;;
9078 freebsd3.[01]* | freebsdelf3.[01]*)
9079 shlibpath_overrides_runpath=yes
9080 hardcode_into_libs=yes
9081 ;;
9082 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9083 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9084 shlibpath_overrides_runpath=no
9085 hardcode_into_libs=yes
9086 ;;
9087 *) # from 4.6 on, and DragonFly
9088 shlibpath_overrides_runpath=yes
9089 hardcode_into_libs=yes
9090 ;;
9091 esac
9092 ;;
9093
9094gnu*)
9095 version_type=linux
9096 need_lib_prefix=no
9097 need_version=no
9098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9099 soname_spec='${libname}${release}${shared_ext}$major'
9100 shlibpath_var=LD_LIBRARY_PATH
9101 hardcode_into_libs=yes
9102 ;;
9103
9104hpux9* | hpux10* | hpux11*)
9105 # Give a soname corresponding to the major version so that dld.sl refuses to
9106 # link against other versions.
9107 version_type=sunos
9108 need_lib_prefix=no
9109 need_version=no
9110 case $host_cpu in
9111 ia64*)
9112 shrext_cmds='.so'
9113 hardcode_into_libs=yes
9114 dynamic_linker="$host_os dld.so"
9115 shlibpath_var=LD_LIBRARY_PATH
9116 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9118 soname_spec='${libname}${release}${shared_ext}$major'
9119 if test "X$HPUX_IA64_MODE" = X32; then
9120 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9121 else
9122 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9123 fi
9124 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9125 ;;
9126 hppa*64*)
9127 shrext_cmds='.sl'
9128 hardcode_into_libs=yes
9129 dynamic_linker="$host_os dld.sl"
9130 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9131 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9133 soname_spec='${libname}${release}${shared_ext}$major'
9134 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9135 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9136 ;;
9137 *)
9138 shrext_cmds='.sl'
9139 dynamic_linker="$host_os dld.sl"
9140 shlibpath_var=SHLIB_PATH
9141 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9143 soname_spec='${libname}${release}${shared_ext}$major'
9144 ;;
9145 esac
9146 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9147 postinstall_cmds='chmod 555 $lib'
9148 ;;
9149
9150interix[3-9]*)
9151 version_type=linux
9152 need_lib_prefix=no
9153 need_version=no
9154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9155 soname_spec='${libname}${release}${shared_ext}$major'
9156 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9157 shlibpath_var=LD_LIBRARY_PATH
9158 shlibpath_overrides_runpath=no
9159 hardcode_into_libs=yes
9160 ;;
9161
9162irix5* | irix6* | nonstopux*)
9163 case $host_os in
9164 nonstopux*) version_type=nonstopux ;;
9165 *)
9166 if test "$lt_cv_prog_gnu_ld" = yes; then
9167 version_type=linux
9168 else
9169 version_type=irix
9170 fi ;;
9171 esac
9172 need_lib_prefix=no
9173 need_version=no
9174 soname_spec='${libname}${release}${shared_ext}$major'
9175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9176 case $host_os in
9177 irix5* | nonstopux*)
9178 libsuff= shlibsuff=
9179 ;;
9180 *)
9181 case $LD in # libtool.m4 will add one of these switches to LD
9182 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9183 libsuff= shlibsuff= libmagic=32-bit;;
9184 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9185 libsuff=32 shlibsuff=N32 libmagic=N32;;
9186 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9187 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9188 *) libsuff= shlibsuff= libmagic=never-match;;
9189 esac
9190 ;;
9191 esac
9192 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9193 shlibpath_overrides_runpath=no
9194 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9195 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9196 hardcode_into_libs=yes
9197 ;;
d7040cdb 9198
ce2cded5
L
9199# No shared lib support for Linux oldld, aout, or coff.
9200linux*oldld* | linux*aout* | linux*coff*)
9201 dynamic_linker=no
9202 ;;
9203
9204# This must be Linux ELF.
9205linux* | k*bsd*-gnu)
9206 version_type=linux
9207 need_lib_prefix=no
9208 need_version=no
9209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9210 soname_spec='${libname}${release}${shared_ext}$major'
9211 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9212 shlibpath_var=LD_LIBRARY_PATH
9213 shlibpath_overrides_runpath=no
9214 # Some binutils ld are patched to set DT_RUNPATH
9215 save_LDFLAGS=$LDFLAGS
9216 save_libdir=$libdir
9217 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9218 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9219 cat >conftest.$ac_ext <<_ACEOF
d7040cdb
SE
9220/* confdefs.h. */
9221_ACEOF
9222cat confdefs.h >>conftest.$ac_ext
9223cat >>conftest.$ac_ext <<_ACEOF
9224/* end confdefs.h. */
9225
d7040cdb
SE
9226int
9227main ()
9228{
ce2cded5 9229
d7040cdb
SE
9230 ;
9231 return 0;
9232}
9233_ACEOF
9234rm -f conftest.$ac_objext conftest$ac_exeext
9235if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9236 (eval $ac_link) 2>conftest.er1
9237 ac_status=$?
9238 grep -v '^ *+' conftest.er1 >conftest.err
9239 rm -f conftest.er1
9240 cat conftest.err >&5
9241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242 (exit $ac_status); } &&
9243 { ac_try='test -z "$ac_c_werror_flag"
9244 || test ! -s conftest.err'
9245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9246 (eval $ac_try) 2>&5
9247 ac_status=$?
9248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249 (exit $ac_status); }; } &&
9250 { ac_try='test -s conftest$ac_exeext'
9251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9252 (eval $ac_try) 2>&5
9253 ac_status=$?
9254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255 (exit $ac_status); }; }; then
ce2cded5
L
9256 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
9257 shlibpath_overrides_runpath=yes
9258fi
9259
d7040cdb
SE
9260else
9261 echo "$as_me: failed program was:" >&5
9262sed 's/^/| /' conftest.$ac_ext >&5
9263
ce2cded5
L
9264fi
9265rm -f conftest.err conftest.$ac_objext \
9266 conftest$ac_exeext conftest.$ac_ext
9267 LDFLAGS=$save_LDFLAGS
9268 libdir=$save_libdir
9269
9270 # This implies no fast_install, which is unacceptable.
9271 # Some rework will be needed to allow for fast_install
9272 # before this can be enabled.
9273 hardcode_into_libs=yes
9274
9275 # Append ld.so.conf contents to the search path
9276 if test -f /etc/ld.so.conf; then
9277 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' ' '`
9278 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9279 fi
9280
9281 # We used to test for /lib/ld.so.1 and disable shared libraries on
9282 # powerpc, because MkLinux only supported shared libraries with the
9283 # GNU dynamic linker. Since this was broken with cross compilers,
9284 # most powerpc-linux boxes support dynamic linking these days and
9285 # people can always --disable-shared, the test was removed, and we
9286 # assume the GNU/Linux dynamic linker is in use.
9287 dynamic_linker='GNU/Linux ld.so'
9288 ;;
9289
9290netbsd*)
9291 version_type=sunos
9292 need_lib_prefix=no
9293 need_version=no
9294 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9296 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9297 dynamic_linker='NetBSD (a.out) ld.so'
9298 else
9299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9300 soname_spec='${libname}${release}${shared_ext}$major'
9301 dynamic_linker='NetBSD ld.elf_so'
9302 fi
9303 shlibpath_var=LD_LIBRARY_PATH
9304 shlibpath_overrides_runpath=yes
9305 hardcode_into_libs=yes
9306 ;;
9307
9308newsos6)
9309 version_type=linux
9310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9311 shlibpath_var=LD_LIBRARY_PATH
9312 shlibpath_overrides_runpath=yes
9313 ;;
9314
9315*nto* | *qnx*)
9316 version_type=qnx
9317 need_lib_prefix=no
9318 need_version=no
9319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9320 soname_spec='${libname}${release}${shared_ext}$major'
9321 shlibpath_var=LD_LIBRARY_PATH
9322 shlibpath_overrides_runpath=no
9323 hardcode_into_libs=yes
9324 dynamic_linker='ldqnx.so'
9325 ;;
9326
9327openbsd*)
9328 version_type=sunos
9329 sys_lib_dlsearch_path_spec="/usr/lib"
9330 need_lib_prefix=no
9331 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9332 case $host_os in
9333 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9334 *) need_version=no ;;
9335 esac
9336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9337 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9338 shlibpath_var=LD_LIBRARY_PATH
9339 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9340 case $host_os in
9341 openbsd2.[89] | openbsd2.[89].*)
9342 shlibpath_overrides_runpath=no
9343 ;;
9344 *)
9345 shlibpath_overrides_runpath=yes
9346 ;;
9347 esac
9348 else
9349 shlibpath_overrides_runpath=yes
9350 fi
9351 ;;
9352
9353os2*)
9354 libname_spec='$name'
9355 shrext_cmds=".dll"
9356 need_lib_prefix=no
9357 library_names_spec='$libname${shared_ext} $libname.a'
9358 dynamic_linker='OS/2 ld.exe'
9359 shlibpath_var=LIBPATH
9360 ;;
9361
9362osf3* | osf4* | osf5*)
9363 version_type=osf
9364 need_lib_prefix=no
9365 need_version=no
9366 soname_spec='${libname}${release}${shared_ext}$major'
9367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9368 shlibpath_var=LD_LIBRARY_PATH
9369 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9370 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9371 ;;
9372
9373rdos*)
9374 dynamic_linker=no
9375 ;;
9376
9377solaris*)
9378 version_type=linux
9379 need_lib_prefix=no
9380 need_version=no
9381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9382 soname_spec='${libname}${release}${shared_ext}$major'
9383 shlibpath_var=LD_LIBRARY_PATH
9384 shlibpath_overrides_runpath=yes
9385 hardcode_into_libs=yes
9386 # ldd complains unless libraries are executable
9387 postinstall_cmds='chmod +x $lib'
9388 ;;
9389
9390sunos4*)
9391 version_type=sunos
9392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9393 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9394 shlibpath_var=LD_LIBRARY_PATH
9395 shlibpath_overrides_runpath=yes
9396 if test "$with_gnu_ld" = yes; then
9397 need_lib_prefix=no
9398 fi
9399 need_version=yes
9400 ;;
9401
9402sysv4 | sysv4.3*)
9403 version_type=linux
9404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9405 soname_spec='${libname}${release}${shared_ext}$major'
9406 shlibpath_var=LD_LIBRARY_PATH
9407 case $host_vendor in
9408 sni)
9409 shlibpath_overrides_runpath=no
9410 need_lib_prefix=no
9411 runpath_var=LD_RUN_PATH
9412 ;;
9413 siemens)
9414 need_lib_prefix=no
9415 ;;
9416 motorola)
9417 need_lib_prefix=no
9418 need_version=no
9419 shlibpath_overrides_runpath=no
9420 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9421 ;;
9422 esac
9423 ;;
9424
9425sysv4*MP*)
9426 if test -d /usr/nec ;then
9427 version_type=linux
9428 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9429 soname_spec='$libname${shared_ext}.$major'
9430 shlibpath_var=LD_LIBRARY_PATH
9431 fi
9432 ;;
9433
9434sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9435 version_type=freebsd-elf
9436 need_lib_prefix=no
9437 need_version=no
9438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9439 soname_spec='${libname}${release}${shared_ext}$major'
9440 shlibpath_var=LD_LIBRARY_PATH
9441 shlibpath_overrides_runpath=yes
9442 hardcode_into_libs=yes
9443 if test "$with_gnu_ld" = yes; then
9444 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9445 else
9446 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9447 case $host_os in
9448 sco3.2v5*)
9449 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9450 ;;
9451 esac
9452 fi
9453 sys_lib_dlsearch_path_spec='/usr/lib'
9454 ;;
9455
9456tpf*)
9457 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9458 version_type=linux
9459 need_lib_prefix=no
9460 need_version=no
9461 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9462 shlibpath_var=LD_LIBRARY_PATH
9463 shlibpath_overrides_runpath=no
9464 hardcode_into_libs=yes
9465 ;;
d7040cdb 9466
ce2cded5
L
9467uts4*)
9468 version_type=linux
9469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9470 soname_spec='${libname}${release}${shared_ext}$major'
9471 shlibpath_var=LD_LIBRARY_PATH
9472 ;;
d7040cdb 9473
ce2cded5
L
9474*)
9475 dynamic_linker=no
9476 ;;
9477esac
9478echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9479echo "${ECHO_T}$dynamic_linker" >&6
9480test "$dynamic_linker" = no && can_build_shared=no
9481
9482variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9483if test "$GCC" = yes; then
9484 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
d7040cdb 9485fi
d7040cdb 9486
d7040cdb 9487
d7040cdb
SE
9488
9489
d7040cdb
SE
9490
9491
d7040cdb
SE
9492
9493
d7040cdb
SE
9494
9495
d7040cdb
SE
9496
9497
d7040cdb 9498
d7040cdb 9499
d7040cdb 9500
d7040cdb 9501
d7040cdb 9502
d7040cdb 9503
d7040cdb 9504
d7040cdb 9505
d7040cdb 9506
d7040cdb 9507
d7040cdb 9508
d7040cdb 9509
d7040cdb 9510
d7040cdb 9511
d7040cdb
SE
9512
9513
d7040cdb 9514
d7040cdb 9515
d7040cdb 9516
d7040cdb 9517
d7040cdb 9518
d7040cdb 9519
d7040cdb 9520
d7040cdb 9521
d7040cdb 9522
d7040cdb
SE
9523
9524
d7040cdb 9525
d7040cdb 9526
d7040cdb 9527
d7040cdb
SE
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
d7040cdb
SE
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
d7040cdb 9557
d7040cdb 9558
d7040cdb 9559
d7040cdb 9560
d7040cdb
SE
9561
9562
9563
9564
ce2cded5
L
9565
9566
9567
9568
9569
9570
9571
9572
9573 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9574echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9575hardcode_action=
9576if test -n "$hardcode_libdir_flag_spec" ||
9577 test -n "$runpath_var" ||
9578 test "X$hardcode_automatic" = "Xyes" ; then
9579
9580 # We can hardcode non-existent directories.
9581 if test "$hardcode_direct" != no &&
9582 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9583 # have to relink, otherwise we might link with an installed library
9584 # when we should be linking with a yet-to-be-installed one
9585 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9586 test "$hardcode_minus_L" != no; then
9587 # Linking always hardcodes the temporary library directory.
9588 hardcode_action=relink
9589 else
9590 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9591 hardcode_action=immediate
9592 fi
9593else
9594 # We cannot hardcode anything, or else we can only hardcode existing
9595 # directories.
9596 hardcode_action=unsupported
9597fi
9598echo "$as_me:$LINENO: result: $hardcode_action" >&5
9599echo "${ECHO_T}$hardcode_action" >&6
9600
9601if test "$hardcode_action" = relink ||
9602 test "$inherit_rpath" = yes; then
9603 # Fast installation is not supported
9604 enable_fast_install=no
9605elif test "$shlibpath_overrides_runpath" = yes ||
9606 test "$enable_shared" = no; then
9607 # Fast installation is not necessary
9608 enable_fast_install=needless
d7040cdb 9609fi
d7040cdb 9610
d7040cdb
SE
9611
9612
9613
9614
9615
ce2cded5
L
9616 if test "x$enable_dlopen" != xyes; then
9617 enable_dlopen=unknown
9618 enable_dlopen_self=unknown
9619 enable_dlopen_self_static=unknown
9620else
9621 lt_cv_dlopen=no
9622 lt_cv_dlopen_libs=
9623
9624 case $host_os in
9625 beos*)
9626 lt_cv_dlopen="load_add_on"
9627 lt_cv_dlopen_libs=
9628 lt_cv_dlopen_self=yes
9629 ;;
d7040cdb 9630
ce2cded5
L
9631 mingw* | pw32*)
9632 lt_cv_dlopen="LoadLibrary"
9633 lt_cv_dlopen_libs=
9634 ;;
d7040cdb 9635
ce2cded5
L
9636 cygwin*)
9637 lt_cv_dlopen="dlopen"
9638 lt_cv_dlopen_libs=
9639 ;;
d7040cdb 9640
ce2cded5
L
9641 darwin*)
9642 # if libdl is installed we need to link against it
9643 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9644echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9645if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9646 echo $ECHO_N "(cached) $ECHO_C" >&6
9647else
9648 ac_check_lib_save_LIBS=$LIBS
9649LIBS="-ldl $LIBS"
9650cat >conftest.$ac_ext <<_ACEOF
9651/* confdefs.h. */
9652_ACEOF
9653cat confdefs.h >>conftest.$ac_ext
9654cat >>conftest.$ac_ext <<_ACEOF
9655/* end confdefs.h. */
d7040cdb 9656
ce2cded5
L
9657/* Override any gcc2 internal prototype to avoid an error. */
9658#ifdef __cplusplus
9659extern "C"
9660#endif
9661/* We use char because int might match the return type of a gcc2
9662 builtin and then its argument prototype would still apply. */
9663char dlopen ();
9664int
9665main ()
9666{
9667dlopen ();
9668 ;
9669 return 0;
9670}
9671_ACEOF
9672rm -f conftest.$ac_objext conftest$ac_exeext
9673if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9674 (eval $ac_link) 2>conftest.er1
9675 ac_status=$?
9676 grep -v '^ *+' conftest.er1 >conftest.err
9677 rm -f conftest.er1
9678 cat conftest.err >&5
9679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680 (exit $ac_status); } &&
9681 { ac_try='test -z "$ac_c_werror_flag"
9682 || test ! -s conftest.err'
9683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9684 (eval $ac_try) 2>&5
9685 ac_status=$?
9686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9687 (exit $ac_status); }; } &&
9688 { ac_try='test -s conftest$ac_exeext'
9689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9690 (eval $ac_try) 2>&5
9691 ac_status=$?
9692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9693 (exit $ac_status); }; }; then
9694 ac_cv_lib_dl_dlopen=yes
9695else
9696 echo "$as_me: failed program was:" >&5
9697sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 9698
ce2cded5
L
9699ac_cv_lib_dl_dlopen=no
9700fi
9701rm -f conftest.err conftest.$ac_objext \
9702 conftest$ac_exeext conftest.$ac_ext
9703LIBS=$ac_check_lib_save_LIBS
9704fi
9705echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9706echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9707if test $ac_cv_lib_dl_dlopen = yes; then
9708 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9709else
d7040cdb 9710
ce2cded5
L
9711 lt_cv_dlopen="dyld"
9712 lt_cv_dlopen_libs=
9713 lt_cv_dlopen_self=yes
d7040cdb 9714
ce2cded5 9715fi
d7040cdb 9716
ce2cded5 9717 ;;
d7040cdb 9718
ce2cded5
L
9719 *)
9720 echo "$as_me:$LINENO: checking for shl_load" >&5
9721echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9722if test "${ac_cv_func_shl_load+set}" = set; then
9723 echo $ECHO_N "(cached) $ECHO_C" >&6
9724else
9725 cat >conftest.$ac_ext <<_ACEOF
9726/* confdefs.h. */
9727_ACEOF
9728cat confdefs.h >>conftest.$ac_ext
9729cat >>conftest.$ac_ext <<_ACEOF
9730/* end confdefs.h. */
9731/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9732 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9733#define shl_load innocuous_shl_load
d7040cdb 9734
ce2cded5
L
9735/* System header to define __stub macros and hopefully few prototypes,
9736 which can conflict with char shl_load (); below.
9737 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9738 <limits.h> exists even on freestanding compilers. */
d7040cdb 9739
ce2cded5
L
9740#ifdef __STDC__
9741# include <limits.h>
9742#else
9743# include <assert.h>
9744#endif
d7040cdb 9745
ce2cded5 9746#undef shl_load
d7040cdb 9747
ce2cded5
L
9748/* Override any gcc2 internal prototype to avoid an error. */
9749#ifdef __cplusplus
9750extern "C"
9751{
9752#endif
9753/* We use char because int might match the return type of a gcc2
9754 builtin and then its argument prototype would still apply. */
9755char shl_load ();
9756/* The GNU C library defines this for functions which it implements
9757 to always fail with ENOSYS. Some functions are actually named
9758 something starting with __ and the normal name is an alias. */
9759#if defined (__stub_shl_load) || defined (__stub___shl_load)
9760choke me
9761#else
9762char (*f) () = shl_load;
9763#endif
9764#ifdef __cplusplus
9765}
9766#endif
d7040cdb 9767
ce2cded5
L
9768int
9769main ()
9770{
9771return f != shl_load;
9772 ;
9773 return 0;
9774}
9775_ACEOF
9776rm -f conftest.$ac_objext conftest$ac_exeext
9777if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9778 (eval $ac_link) 2>conftest.er1
9779 ac_status=$?
9780 grep -v '^ *+' conftest.er1 >conftest.err
9781 rm -f conftest.er1
9782 cat conftest.err >&5
9783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9784 (exit $ac_status); } &&
9785 { ac_try='test -z "$ac_c_werror_flag"
9786 || test ! -s conftest.err'
9787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9788 (eval $ac_try) 2>&5
9789 ac_status=$?
9790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791 (exit $ac_status); }; } &&
9792 { ac_try='test -s conftest$ac_exeext'
9793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9794 (eval $ac_try) 2>&5
9795 ac_status=$?
9796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797 (exit $ac_status); }; }; then
9798 ac_cv_func_shl_load=yes
9799else
9800 echo "$as_me: failed program was:" >&5
9801sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 9802
ce2cded5 9803ac_cv_func_shl_load=no
d7040cdb 9804fi
ce2cded5
L
9805rm -f conftest.err conftest.$ac_objext \
9806 conftest$ac_exeext conftest.$ac_ext
9807fi
9808echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9809echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9810if test $ac_cv_func_shl_load = yes; then
9811 lt_cv_dlopen="shl_load"
9812else
9813 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9814echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9815if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9816 echo $ECHO_N "(cached) $ECHO_C" >&6
9817else
9818 ac_check_lib_save_LIBS=$LIBS
9819LIBS="-ldld $LIBS"
9820cat >conftest.$ac_ext <<_ACEOF
9821/* confdefs.h. */
9822_ACEOF
9823cat confdefs.h >>conftest.$ac_ext
9824cat >>conftest.$ac_ext <<_ACEOF
9825/* end confdefs.h. */
d7040cdb 9826
ce2cded5
L
9827/* Override any gcc2 internal prototype to avoid an error. */
9828#ifdef __cplusplus
9829extern "C"
9830#endif
9831/* We use char because int might match the return type of a gcc2
9832 builtin and then its argument prototype would still apply. */
9833char shl_load ();
9834int
9835main ()
9836{
9837shl_load ();
9838 ;
9839 return 0;
9840}
d7040cdb 9841_ACEOF
ce2cded5
L
9842rm -f conftest.$ac_objext conftest$ac_exeext
9843if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9844 (eval $ac_link) 2>conftest.er1
9845 ac_status=$?
9846 grep -v '^ *+' conftest.er1 >conftest.err
9847 rm -f conftest.er1
9848 cat conftest.err >&5
9849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9850 (exit $ac_status); } &&
9851 { ac_try='test -z "$ac_c_werror_flag"
9852 || test ! -s conftest.err'
9853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9854 (eval $ac_try) 2>&5
9855 ac_status=$?
9856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857 (exit $ac_status); }; } &&
9858 { ac_try='test -s conftest$ac_exeext'
9859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9860 (eval $ac_try) 2>&5
9861 ac_status=$?
9862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863 (exit $ac_status); }; }; then
9864 ac_cv_lib_dld_shl_load=yes
9865else
9866 echo "$as_me: failed program was:" >&5
9867sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 9868
ce2cded5 9869ac_cv_lib_dld_shl_load=no
d7040cdb 9870fi
ce2cded5
L
9871rm -f conftest.err conftest.$ac_objext \
9872 conftest$ac_exeext conftest.$ac_ext
9873LIBS=$ac_check_lib_save_LIBS
9874fi
9875echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9876echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9877if test $ac_cv_lib_dld_shl_load = yes; then
9878 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9879else
9880 echo "$as_me:$LINENO: checking for dlopen" >&5
9881echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9882if test "${ac_cv_func_dlopen+set}" = set; then
9883 echo $ECHO_N "(cached) $ECHO_C" >&6
9884else
9885 cat >conftest.$ac_ext <<_ACEOF
9886/* confdefs.h. */
9887_ACEOF
9888cat confdefs.h >>conftest.$ac_ext
9889cat >>conftest.$ac_ext <<_ACEOF
9890/* end confdefs.h. */
9891/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9892 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9893#define dlopen innocuous_dlopen
d7040cdb 9894
ce2cded5
L
9895/* System header to define __stub macros and hopefully few prototypes,
9896 which can conflict with char dlopen (); below.
9897 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9898 <limits.h> exists even on freestanding compilers. */
d7040cdb 9899
ce2cded5
L
9900#ifdef __STDC__
9901# include <limits.h>
9902#else
9903# include <assert.h>
9904#endif
d7040cdb 9905
ce2cded5 9906#undef dlopen
d7040cdb 9907
ce2cded5
L
9908/* Override any gcc2 internal prototype to avoid an error. */
9909#ifdef __cplusplus
9910extern "C"
9911{
9912#endif
9913/* We use char because int might match the return type of a gcc2
9914 builtin and then its argument prototype would still apply. */
9915char dlopen ();
9916/* The GNU C library defines this for functions which it implements
9917 to always fail with ENOSYS. Some functions are actually named
9918 something starting with __ and the normal name is an alias. */
9919#if defined (__stub_dlopen) || defined (__stub___dlopen)
9920choke me
9921#else
9922char (*f) () = dlopen;
9923#endif
9924#ifdef __cplusplus
9925}
9926#endif
d7040cdb 9927
ce2cded5
L
9928int
9929main ()
9930{
9931return f != dlopen;
9932 ;
9933 return 0;
9934}
9935_ACEOF
9936rm -f conftest.$ac_objext conftest$ac_exeext
9937if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9938 (eval $ac_link) 2>conftest.er1
9939 ac_status=$?
9940 grep -v '^ *+' conftest.er1 >conftest.err
9941 rm -f conftest.er1
9942 cat conftest.err >&5
9943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9944 (exit $ac_status); } &&
9945 { ac_try='test -z "$ac_c_werror_flag"
9946 || test ! -s conftest.err'
9947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9948 (eval $ac_try) 2>&5
9949 ac_status=$?
9950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951 (exit $ac_status); }; } &&
9952 { ac_try='test -s conftest$ac_exeext'
9953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9954 (eval $ac_try) 2>&5
9955 ac_status=$?
9956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957 (exit $ac_status); }; }; then
9958 ac_cv_func_dlopen=yes
9959else
9960 echo "$as_me: failed program was:" >&5
9961sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 9962
ce2cded5 9963ac_cv_func_dlopen=no
d7040cdb 9964fi
ce2cded5
L
9965rm -f conftest.err conftest.$ac_objext \
9966 conftest$ac_exeext conftest.$ac_ext
d7040cdb 9967fi
ce2cded5
L
9968echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9969echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9970if test $ac_cv_func_dlopen = yes; then
9971 lt_cv_dlopen="dlopen"
9972else
9973 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9974echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9975if test "${ac_cv_lib_dl_dlopen+set}" = set; then
d7040cdb
SE
9976 echo $ECHO_N "(cached) $ECHO_C" >&6
9977else
ce2cded5
L
9978 ac_check_lib_save_LIBS=$LIBS
9979LIBS="-ldl $LIBS"
d7040cdb
SE
9980cat >conftest.$ac_ext <<_ACEOF
9981/* confdefs.h. */
9982_ACEOF
9983cat confdefs.h >>conftest.$ac_ext
9984cat >>conftest.$ac_ext <<_ACEOF
9985/* end confdefs.h. */
d7040cdb 9986
ce2cded5
L
9987/* Override any gcc2 internal prototype to avoid an error. */
9988#ifdef __cplusplus
9989extern "C"
9990#endif
9991/* We use char because int might match the return type of a gcc2
9992 builtin and then its argument prototype would still apply. */
9993char dlopen ();
d7040cdb
SE
9994int
9995main ()
9996{
ce2cded5 9997dlopen ();
d7040cdb
SE
9998 ;
9999 return 0;
10000}
10001_ACEOF
ce2cded5
L
10002rm -f conftest.$ac_objext conftest$ac_exeext
10003if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10004 (eval $ac_link) 2>conftest.er1
d7040cdb
SE
10005 ac_status=$?
10006 grep -v '^ *+' conftest.er1 >conftest.err
10007 rm -f conftest.er1
10008 cat conftest.err >&5
10009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010 (exit $ac_status); } &&
10011 { ac_try='test -z "$ac_c_werror_flag"
10012 || test ! -s conftest.err'
10013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10014 (eval $ac_try) 2>&5
10015 ac_status=$?
10016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10017 (exit $ac_status); }; } &&
ce2cded5 10018 { ac_try='test -s conftest$ac_exeext'
d7040cdb
SE
10019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10020 (eval $ac_try) 2>&5
10021 ac_status=$?
10022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10023 (exit $ac_status); }; }; then
ce2cded5
L
10024 ac_cv_lib_dl_dlopen=yes
10025else
10026 echo "$as_me: failed program was:" >&5
10027sed 's/^/| /' conftest.$ac_ext >&5
10028
10029ac_cv_lib_dl_dlopen=no
10030fi
10031rm -f conftest.err conftest.$ac_objext \
10032 conftest$ac_exeext conftest.$ac_ext
10033LIBS=$ac_check_lib_save_LIBS
10034fi
10035echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10036echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10037if test $ac_cv_lib_dl_dlopen = yes; then
10038 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10039else
10040 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10041echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10042if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10043 echo $ECHO_N "(cached) $ECHO_C" >&6
10044else
10045 ac_check_lib_save_LIBS=$LIBS
10046LIBS="-lsvld $LIBS"
d7040cdb
SE
10047cat >conftest.$ac_ext <<_ACEOF
10048/* confdefs.h. */
10049_ACEOF
10050cat confdefs.h >>conftest.$ac_ext
10051cat >>conftest.$ac_ext <<_ACEOF
10052/* end confdefs.h. */
d7040cdb 10053
ce2cded5
L
10054/* Override any gcc2 internal prototype to avoid an error. */
10055#ifdef __cplusplus
10056extern "C"
10057#endif
10058/* We use char because int might match the return type of a gcc2
10059 builtin and then its argument prototype would still apply. */
10060char dlopen ();
d7040cdb
SE
10061int
10062main ()
10063{
ce2cded5 10064dlopen ();
d7040cdb
SE
10065 ;
10066 return 0;
10067}
10068_ACEOF
ce2cded5
L
10069rm -f conftest.$ac_objext conftest$ac_exeext
10070if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10071 (eval $ac_link) 2>conftest.er1
d7040cdb
SE
10072 ac_status=$?
10073 grep -v '^ *+' conftest.er1 >conftest.err
10074 rm -f conftest.er1
10075 cat conftest.err >&5
10076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077 (exit $ac_status); } &&
10078 { ac_try='test -z "$ac_c_werror_flag"
10079 || test ! -s conftest.err'
10080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10081 (eval $ac_try) 2>&5
10082 ac_status=$?
10083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084 (exit $ac_status); }; } &&
ce2cded5 10085 { ac_try='test -s conftest$ac_exeext'
d7040cdb
SE
10086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10087 (eval $ac_try) 2>&5
10088 ac_status=$?
10089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10090 (exit $ac_status); }; }; then
ce2cded5 10091 ac_cv_lib_svld_dlopen=yes
d7040cdb
SE
10092else
10093 echo "$as_me: failed program was:" >&5
10094sed 's/^/| /' conftest.$ac_ext >&5
10095
ce2cded5 10096ac_cv_lib_svld_dlopen=no
d7040cdb 10097fi
ce2cded5
L
10098rm -f conftest.err conftest.$ac_objext \
10099 conftest$ac_exeext conftest.$ac_ext
10100LIBS=$ac_check_lib_save_LIBS
10101fi
10102echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10103echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10104if test $ac_cv_lib_svld_dlopen = yes; then
10105 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10106else
10107 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10108echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10109if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10110 echo $ECHO_N "(cached) $ECHO_C" >&6
d7040cdb 10111else
ce2cded5
L
10112 ac_check_lib_save_LIBS=$LIBS
10113LIBS="-ldld $LIBS"
10114cat >conftest.$ac_ext <<_ACEOF
d7040cdb
SE
10115/* confdefs.h. */
10116_ACEOF
10117cat confdefs.h >>conftest.$ac_ext
10118cat >>conftest.$ac_ext <<_ACEOF
10119/* end confdefs.h. */
ce2cded5
L
10120
10121/* Override any gcc2 internal prototype to avoid an error. */
10122#ifdef __cplusplus
10123extern "C"
10124#endif
10125/* We use char because int might match the return type of a gcc2
10126 builtin and then its argument prototype would still apply. */
10127char dld_link ();
d7040cdb
SE
10128int
10129main ()
10130{
ce2cded5 10131dld_link ();
d7040cdb
SE
10132 ;
10133 return 0;
10134}
10135_ACEOF
ce2cded5
L
10136rm -f conftest.$ac_objext conftest$ac_exeext
10137if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10138 (eval $ac_link) 2>conftest.er1
d7040cdb
SE
10139 ac_status=$?
10140 grep -v '^ *+' conftest.er1 >conftest.err
10141 rm -f conftest.er1
10142 cat conftest.err >&5
10143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10144 (exit $ac_status); } &&
10145 { ac_try='test -z "$ac_c_werror_flag"
10146 || test ! -s conftest.err'
10147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10148 (eval $ac_try) 2>&5
10149 ac_status=$?
10150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151 (exit $ac_status); }; } &&
ce2cded5 10152 { ac_try='test -s conftest$ac_exeext'
d7040cdb
SE
10153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10154 (eval $ac_try) 2>&5
10155 ac_status=$?
10156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10157 (exit $ac_status); }; }; then
ce2cded5
L
10158 ac_cv_lib_dld_dld_link=yes
10159else
10160 echo "$as_me: failed program was:" >&5
10161sed 's/^/| /' conftest.$ac_ext >&5
10162
10163ac_cv_lib_dld_dld_link=no
d7040cdb 10164fi
ce2cded5
L
10165rm -f conftest.err conftest.$ac_objext \
10166 conftest$ac_exeext conftest.$ac_ext
10167LIBS=$ac_check_lib_save_LIBS
10168fi
10169echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10170echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10171if test $ac_cv_lib_dld_dld_link = yes; then
10172 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10173fi
10174
10175
10176fi
10177
10178
10179fi
10180
10181
10182fi
10183
10184
10185fi
10186
10187
10188fi
10189
10190 ;;
10191 esac
10192
10193 if test "x$lt_cv_dlopen" != xno; then
10194 enable_dlopen=yes
d7040cdb 10195 else
ce2cded5 10196 enable_dlopen=no
d7040cdb 10197 fi
ce2cded5
L
10198
10199 case $lt_cv_dlopen in
10200 dlopen)
10201 save_CPPFLAGS="$CPPFLAGS"
10202 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10203
10204 save_LDFLAGS="$LDFLAGS"
10205 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10206
10207 save_LIBS="$LIBS"
10208 LIBS="$lt_cv_dlopen_libs $LIBS"
10209
10210 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10211echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10212if test "${lt_cv_dlopen_self+set}" = set; then
10213 echo $ECHO_N "(cached) $ECHO_C" >&6
d7040cdb 10214else
ce2cded5
L
10215 if test "$cross_compiling" = yes; then :
10216 lt_cv_dlopen_self=cross
10217else
10218 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10219 lt_status=$lt_dlunknown
10220 cat > conftest.$ac_ext <<_LT_EOF
da594c4a 10221#line 10221 "configure"
ce2cded5
L
10222#include "confdefs.h"
10223
10224#if HAVE_DLFCN_H
10225#include <dlfcn.h>
10226#endif
10227
10228#include <stdio.h>
10229
10230#ifdef RTLD_GLOBAL
10231# define LT_DLGLOBAL RTLD_GLOBAL
10232#else
10233# ifdef DL_GLOBAL
10234# define LT_DLGLOBAL DL_GLOBAL
10235# else
10236# define LT_DLGLOBAL 0
10237# endif
10238#endif
10239
10240/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10241 find out it does not work in some platform. */
10242#ifndef LT_DLLAZY_OR_NOW
10243# ifdef RTLD_LAZY
10244# define LT_DLLAZY_OR_NOW RTLD_LAZY
10245# else
10246# ifdef DL_LAZY
10247# define LT_DLLAZY_OR_NOW DL_LAZY
10248# else
10249# ifdef RTLD_NOW
10250# define LT_DLLAZY_OR_NOW RTLD_NOW
10251# else
10252# ifdef DL_NOW
10253# define LT_DLLAZY_OR_NOW DL_NOW
10254# else
10255# define LT_DLLAZY_OR_NOW 0
10256# endif
10257# endif
10258# endif
10259# endif
10260#endif
10261
10262#ifdef __cplusplus
10263extern "C" void exit (int);
10264#endif
10265
10266void fnord() { int i=42;}
10267int main ()
10268{
10269 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10270 int status = $lt_dlunknown;
10271
10272 if (self)
10273 {
10274 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10275 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10276 /* dlclose (self); */
10277 }
10278 else
10279 puts (dlerror ());
10280
10281 exit (status);
10282}
10283_LT_EOF
10284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10285 (eval $ac_link) 2>&5
10286 ac_status=$?
10287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10288 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10289 (./conftest; exit; ) >&5 2>/dev/null
10290 lt_status=$?
10291 case x$lt_status in
10292 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10293 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10294 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10295 esac
10296 else :
10297 # compilation failed
10298 lt_cv_dlopen_self=no
10299 fi
10300fi
10301rm -fr conftest*
10302
d7040cdb
SE
10303
10304fi
ce2cded5
L
10305echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10306echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10307
10308 if test "x$lt_cv_dlopen_self" = xyes; then
10309 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10310 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10311echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10312if test "${lt_cv_dlopen_self_static+set}" = set; then
10313 echo $ECHO_N "(cached) $ECHO_C" >&6
d7040cdb 10314else
ce2cded5
L
10315 if test "$cross_compiling" = yes; then :
10316 lt_cv_dlopen_self_static=cross
10317else
10318 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10319 lt_status=$lt_dlunknown
10320 cat > conftest.$ac_ext <<_LT_EOF
da594c4a 10321#line 10321 "configure"
ce2cded5
L
10322#include "confdefs.h"
10323
10324#if HAVE_DLFCN_H
10325#include <dlfcn.h>
10326#endif
10327
10328#include <stdio.h>
10329
10330#ifdef RTLD_GLOBAL
10331# define LT_DLGLOBAL RTLD_GLOBAL
10332#else
10333# ifdef DL_GLOBAL
10334# define LT_DLGLOBAL DL_GLOBAL
10335# else
10336# define LT_DLGLOBAL 0
10337# endif
10338#endif
10339
10340/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10341 find out it does not work in some platform. */
10342#ifndef LT_DLLAZY_OR_NOW
10343# ifdef RTLD_LAZY
10344# define LT_DLLAZY_OR_NOW RTLD_LAZY
10345# else
10346# ifdef DL_LAZY
10347# define LT_DLLAZY_OR_NOW DL_LAZY
10348# else
10349# ifdef RTLD_NOW
10350# define LT_DLLAZY_OR_NOW RTLD_NOW
10351# else
10352# ifdef DL_NOW
10353# define LT_DLLAZY_OR_NOW DL_NOW
10354# else
10355# define LT_DLLAZY_OR_NOW 0
10356# endif
10357# endif
10358# endif
10359# endif
10360#endif
10361
10362#ifdef __cplusplus
10363extern "C" void exit (int);
10364#endif
10365
10366void fnord() { int i=42;}
10367int main ()
d7040cdb 10368{
ce2cded5
L
10369 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10370 int status = $lt_dlunknown;
10371
10372 if (self)
10373 {
10374 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10375 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10376 /* dlclose (self); */
10377 }
10378 else
10379 puts (dlerror ());
10380
10381 exit (status);
d7040cdb 10382}
ce2cded5
L
10383_LT_EOF
10384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d7040cdb
SE
10385 (eval $ac_link) 2>&5
10386 ac_status=$?
10387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
10388 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10389 (./conftest; exit; ) >&5 2>/dev/null
10390 lt_status=$?
10391 case x$lt_status in
10392 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10393 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10394 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10395 esac
10396 else :
10397 # compilation failed
10398 lt_cv_dlopen_self_static=no
10399 fi
d7040cdb 10400fi
ce2cded5
L
10401rm -fr conftest*
10402
10403
d7040cdb 10404fi
ce2cded5
L
10405echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10406echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10407 fi
10408
10409 CPPFLAGS="$save_CPPFLAGS"
10410 LDFLAGS="$save_LDFLAGS"
10411 LIBS="$save_LIBS"
10412 ;;
10413 esac
10414
10415 case $lt_cv_dlopen_self in
10416 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10417 *) enable_dlopen_self=unknown ;;
10418 esac
10419
10420 case $lt_cv_dlopen_self_static in
10421 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10422 *) enable_dlopen_self_static=unknown ;;
10423 esac
d7040cdb 10424fi
d7040cdb 10425
d7040cdb
SE
10426
10427
d7040cdb 10428
d7040cdb 10429
ce2cded5
L
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442striplib=
10443old_striplib=
10444echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10445echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10446if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10447 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10448 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10449 echo "$as_me:$LINENO: result: yes" >&5
10450echo "${ECHO_T}yes" >&6
10451else
10452# FIXME - insert some real tests, host_os isn't really good enough
10453 case $host_os in
10454 darwin*)
10455 if test -n "$STRIP" ; then
10456 striplib="$STRIP -x"
10457 old_striplib="$STRIP -S"
10458 echo "$as_me:$LINENO: result: yes" >&5
10459echo "${ECHO_T}yes" >&6
10460 else
10461 echo "$as_me:$LINENO: result: no" >&5
10462echo "${ECHO_T}no" >&6
d7040cdb 10463 fi
ce2cded5
L
10464 ;;
10465 *)
10466 echo "$as_me:$LINENO: result: no" >&5
10467echo "${ECHO_T}no" >&6
10468 ;;
d7040cdb 10469 esac
d7040cdb
SE
10470fi
10471
d7040cdb 10472
d7040cdb 10473
d7040cdb 10474
d7040cdb 10475
d7040cdb 10476
d7040cdb 10477
d7040cdb 10478
d7040cdb 10479
d7040cdb 10480
d7040cdb 10481
d7040cdb 10482
ce2cded5
L
10483 # Report which library types will actually be built
10484 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10485echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10486 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10487echo "${ECHO_T}$can_build_shared" >&6
d7040cdb 10488
ce2cded5
L
10489 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10490echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10491 test "$can_build_shared" = "no" && enable_shared=no
d7040cdb 10492
ce2cded5
L
10493 # On AIX, shared libraries and static libraries use the same namespace, and
10494 # are all built from PIC.
10495 case $host_os in
10496 aix3*)
10497 test "$enable_shared" = yes && enable_static=no
10498 if test -n "$RANLIB"; then
10499 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10500 postinstall_cmds='$RANLIB $lib'
10501 fi
10502 ;;
d7040cdb 10503
50e7d84b 10504 aix[4-9]*)
ce2cded5
L
10505 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10506 test "$enable_shared" = yes && enable_static=no
10507 fi
10508 ;;
10509 esac
10510 echo "$as_me:$LINENO: result: $enable_shared" >&5
10511echo "${ECHO_T}$enable_shared" >&6
10512
10513 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10514echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10515 # Make sure either enable_shared or enable_static is yes.
10516 test "$enable_shared" = yes || enable_static=yes
10517 echo "$as_me:$LINENO: result: $enable_static" >&5
10518echo "${ECHO_T}$enable_static" >&6
d7040cdb 10519
d7040cdb 10520
d7040cdb 10521
d7040cdb 10522
ce2cded5
L
10523fi
10524ac_ext=c
10525ac_cpp='$CPP $CPPFLAGS'
10526ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10527ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10528ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 10529
ce2cded5 10530CC="$lt_save_CC"
d7040cdb 10531
d7040cdb 10532
d7040cdb 10533
d7040cdb 10534
d7040cdb 10535
d7040cdb 10536
d7040cdb 10537
d7040cdb 10538
d7040cdb 10539
d7040cdb
SE
10540
10541
d7040cdb
SE
10542
10543
ce2cded5 10544 ac_config_commands="$ac_config_commands libtool"
d7040cdb
SE
10545
10546
d7040cdb 10547
d7040cdb 10548
ce2cded5 10549# Only expand once:
d7040cdb 10550
d7040cdb 10551
d7040cdb 10552
ce2cded5
L
10553# Check whether --enable-targets or --disable-targets was given.
10554if test "${enable_targets+set}" = set; then
10555 enableval="$enable_targets"
10556 case "${enableval}" in
10557 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
10558echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
10559 { (exit 1); exit 1; }; }
10560 ;;
10561 no) enable_targets= ;;
10562 *) enable_targets=$enableval ;;
10563esac
10564fi;
10565# Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
10566if test "${enable_commonbfdlib+set}" = set; then
10567 enableval="$enable_commonbfdlib"
10568 case "${enableval}" in
10569 yes) commonbfdlib=true ;;
10570 no) commonbfdlib=false ;;
10571 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
10572echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
10573 { (exit 1); exit 1; }; } ;;
10574esac
10575fi;
10576ac_checking=yes
10577if grep '^RELEASE=y' ${srcdir}/../bfd/Makefile.am >/dev/null 2>/dev/null ; then
10578 ac_checking=
10579fi
10580# Check whether --enable-checking or --disable-checking was given.
10581if test "${enable_checking+set}" = set; then
10582 enableval="$enable_checking"
10583 case "${enableval}" in
10584 no|none) ac_checking= ;;
10585 *) ac_checking=yes ;;
10586esac
10587fi; if test x$ac_checking != x ; then
d7040cdb 10588
ce2cded5
L
10589cat >>confdefs.h <<\_ACEOF
10590#define ENABLE_CHECKING 1
10591_ACEOF
d7040cdb 10592
ce2cded5 10593fi
d7040cdb 10594
ce2cded5 10595using_cgen=no
d7040cdb 10596
d7040cdb 10597
ce2cded5 10598GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
d7040cdb 10599
ce2cded5
L
10600# Check whether --enable-werror or --disable-werror was given.
10601if test "${enable_werror+set}" = set; then
10602 enableval="$enable_werror"
10603 case "${enableval}" in
10604 yes | y) ERROR_ON_WARNING="yes" ;;
10605 no | n) ERROR_ON_WARNING="no" ;;
10606 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
10607echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
10608 { (exit 1); exit 1; }; } ;;
10609 esac
10610fi;
d7040cdb 10611
bb8541b9
L
10612# Enable -Wno-format by default when using gcc on mingw
10613case "${host}" in
10614 *-*-mingw32*)
10615 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10616 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
10617 fi
10618 ;;
10619 *) ;;
10620esac
10621
ce2cded5
L
10622# Enable -Werror by default when using gcc
10623if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10624 ERROR_ON_WARNING=yes
10625fi
10626
10627NO_WERROR=
10628if test "${ERROR_ON_WARNING}" = yes ; then
10629 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
10630 NO_WERROR="-Wno-error"
10631fi
10632
10633if test "${GCC}" = yes ; then
10634 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
10635fi
10636
10637# Check whether --enable-build-warnings or --disable-build-warnings was given.
10638if test "${enable_build_warnings+set}" = set; then
10639 enableval="$enable_build_warnings"
10640 case "${enableval}" in
10641 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
10642 no) if test "${GCC}" = yes ; then
10643 WARN_CFLAGS="-w"
10644 fi;;
10645 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10646 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
10647 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10648 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
10649 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
10650esac
10651fi;
d7040cdb 10652
ce2cded5
L
10653if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
10654 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
10655fi
d7040cdb 10656
d7040cdb 10657
d7040cdb 10658
d7040cdb 10659
d7040cdb 10660
ce2cded5
L
10661# Generate a header file
10662 ac_config_headers="$ac_config_headers config.h:config.in"
d7040cdb 10663
d7040cdb 10664
ce2cded5
L
10665# If we are on a DOS filesystem, we must use gdb.ini rather than
10666# .gdbinit.
10667case "${host}" in
10668 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-windows*)
10669 GDBINIT="gdb.ini"
10670 ac_config_files="$ac_config_files gdb.ini:gdbinit.in"
d7040cdb 10671
ce2cded5
L
10672 ;;
10673 *)
10674 GDBINIT=".gdbinit"
10675 ac_config_files="$ac_config_files .gdbinit:gdbinit.in"
d7040cdb 10676
ce2cded5
L
10677 ;;
10678esac
d7040cdb 10679
d7040cdb 10680
ce2cded5
L
10681#We need this for the host. BOUT header is in host order.
10682echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
10683echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
10684if test "${ac_cv_c_bigendian+set}" = set; then
10685 echo $ECHO_N "(cached) $ECHO_C" >&6
10686else
10687 # See if sys/param.h defines the BYTE_ORDER macro.
10688cat >conftest.$ac_ext <<_ACEOF
10689/* confdefs.h. */
10690_ACEOF
10691cat confdefs.h >>conftest.$ac_ext
10692cat >>conftest.$ac_ext <<_ACEOF
10693/* end confdefs.h. */
10694#include <sys/types.h>
10695#include <sys/param.h>
d7040cdb 10696
ce2cded5
L
10697int
10698main ()
10699{
10700#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10701 bogus endian macros
10702#endif
d7040cdb 10703
ce2cded5
L
10704 ;
10705 return 0;
10706}
10707_ACEOF
10708rm -f conftest.$ac_objext
10709if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10710 (eval $ac_compile) 2>conftest.er1
10711 ac_status=$?
10712 grep -v '^ *+' conftest.er1 >conftest.err
10713 rm -f conftest.er1
10714 cat conftest.err >&5
10715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716 (exit $ac_status); } &&
10717 { ac_try='test -z "$ac_c_werror_flag"
10718 || test ! -s conftest.err'
10719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10720 (eval $ac_try) 2>&5
10721 ac_status=$?
10722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10723 (exit $ac_status); }; } &&
10724 { ac_try='test -s conftest.$ac_objext'
10725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10726 (eval $ac_try) 2>&5
10727 ac_status=$?
10728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729 (exit $ac_status); }; }; then
10730 # It does; now see whether it defined to BIG_ENDIAN or not.
10731cat >conftest.$ac_ext <<_ACEOF
10732/* confdefs.h. */
10733_ACEOF
10734cat confdefs.h >>conftest.$ac_ext
10735cat >>conftest.$ac_ext <<_ACEOF
10736/* end confdefs.h. */
10737#include <sys/types.h>
10738#include <sys/param.h>
d7040cdb 10739
ce2cded5
L
10740int
10741main ()
10742{
10743#if BYTE_ORDER != BIG_ENDIAN
10744 not big endian
10745#endif
d7040cdb 10746
ce2cded5
L
10747 ;
10748 return 0;
10749}
10750_ACEOF
10751rm -f conftest.$ac_objext
10752if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10753 (eval $ac_compile) 2>conftest.er1
10754 ac_status=$?
10755 grep -v '^ *+' conftest.er1 >conftest.err
10756 rm -f conftest.er1
10757 cat conftest.err >&5
10758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10759 (exit $ac_status); } &&
10760 { ac_try='test -z "$ac_c_werror_flag"
10761 || test ! -s conftest.err'
10762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10763 (eval $ac_try) 2>&5
10764 ac_status=$?
10765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10766 (exit $ac_status); }; } &&
10767 { ac_try='test -s conftest.$ac_objext'
10768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10769 (eval $ac_try) 2>&5
10770 ac_status=$?
10771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10772 (exit $ac_status); }; }; then
10773 ac_cv_c_bigendian=yes
10774else
10775 echo "$as_me: failed program was:" >&5
10776sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 10777
ce2cded5
L
10778ac_cv_c_bigendian=no
10779fi
10780rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10781else
10782 echo "$as_me: failed program was:" >&5
10783sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 10784
ce2cded5
L
10785# It does not; compile a test program.
10786if test "$cross_compiling" = yes; then
10787 # try to guess the endianness by grepping values into an object file
10788 ac_cv_c_bigendian=unknown
10789 cat >conftest.$ac_ext <<_ACEOF
10790/* confdefs.h. */
10791_ACEOF
10792cat confdefs.h >>conftest.$ac_ext
10793cat >>conftest.$ac_ext <<_ACEOF
10794/* end confdefs.h. */
10795short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10796short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10797void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
10798short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10799short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10800void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
10801int
10802main ()
10803{
10804 _ascii (); _ebcdic ();
10805 ;
10806 return 0;
10807}
10808_ACEOF
10809rm -f conftest.$ac_objext
10810if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10811 (eval $ac_compile) 2>conftest.er1
10812 ac_status=$?
10813 grep -v '^ *+' conftest.er1 >conftest.err
10814 rm -f conftest.er1
10815 cat conftest.err >&5
10816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10817 (exit $ac_status); } &&
10818 { ac_try='test -z "$ac_c_werror_flag"
10819 || test ! -s conftest.err'
10820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10821 (eval $ac_try) 2>&5
10822 ac_status=$?
10823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824 (exit $ac_status); }; } &&
10825 { ac_try='test -s conftest.$ac_objext'
10826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10827 (eval $ac_try) 2>&5
10828 ac_status=$?
10829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10830 (exit $ac_status); }; }; then
10831 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
10832 ac_cv_c_bigendian=yes
d7040cdb 10833fi
ce2cded5
L
10834if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10835 if test "$ac_cv_c_bigendian" = unknown; then
10836 ac_cv_c_bigendian=no
10837 else
10838 # finding both strings is unlikely to happen, but who knows?
10839 ac_cv_c_bigendian=unknown
10840 fi
10841fi
10842else
10843 echo "$as_me: failed program was:" >&5
10844sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 10845
ce2cded5
L
10846fi
10847rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10848else
10849 cat >conftest.$ac_ext <<_ACEOF
10850/* confdefs.h. */
10851_ACEOF
10852cat confdefs.h >>conftest.$ac_ext
10853cat >>conftest.$ac_ext <<_ACEOF
10854/* end confdefs.h. */
10855int
10856main ()
10857{
10858 /* Are we little or big endian? From Harbison&Steele. */
10859 union
10860 {
10861 long l;
10862 char c[sizeof (long)];
10863 } u;
10864 u.l = 1;
10865 exit (u.c[sizeof (long) - 1] == 1);
10866}
d7040cdb 10867_ACEOF
ce2cded5
L
10868rm -f conftest$ac_exeext
10869if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10870 (eval $ac_link) 2>&5
10871 ac_status=$?
10872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10875 (eval $ac_try) 2>&5
10876 ac_status=$?
10877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10878 (exit $ac_status); }; }; then
10879 ac_cv_c_bigendian=no
10880else
10881 echo "$as_me: program exited with status $ac_status" >&5
10882echo "$as_me: failed program was:" >&5
10883sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 10884
ce2cded5
L
10885( exit $ac_status )
10886ac_cv_c_bigendian=yes
d7040cdb 10887fi
ce2cded5 10888rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d7040cdb 10889fi
d7040cdb 10890fi
ce2cded5
L
10891rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10892fi
10893echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
10894echo "${ECHO_T}$ac_cv_c_bigendian" >&6
10895case $ac_cv_c_bigendian in
10896 yes)
d7040cdb 10897
d7040cdb 10898cat >>confdefs.h <<\_ACEOF
ce2cded5 10899#define WORDS_BIGENDIAN 1
d7040cdb
SE
10900_ACEOF
10901 ;;
ce2cded5
L
10902 no)
10903 ;;
10904 *)
10905 { { echo "$as_me:$LINENO: error: unknown endianness
10906presetting ac_cv_c_bigendian=no (or yes) will help" >&5
10907echo "$as_me: error: unknown endianness
10908presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
10909 { (exit 1); exit 1; }; } ;;
d7040cdb
SE
10910esac
10911
d7040cdb 10912
ce2cded5 10913te_file=generic
d7040cdb 10914
ce2cded5
L
10915# Makefile target for installing gas in $(tooldir)/bin.
10916install_tooldir=install-exec-tooldir
d7040cdb 10917
ce2cded5
L
10918canon_targets=""
10919all_targets=no
10920if test -n "$enable_targets" ; then
10921 for t in `echo $enable_targets | sed 's/,/ /g'`; do
10922 if test $t = "all"; then
10923 all_targets=yes
10924 continue
10925 fi
10926 result=`$ac_config_sub $t 2>/dev/null`
10927 if test -n "$result" ; then
10928 canon_targets="$canon_targets $result"
10929# else
10930# # Permit "all", etc. We don't support it yet though.
10931# canon_targets="$canon_targets $t"
10932 fi
10933 done
10934 _gas_uniq_list="$canon_targets"
d7040cdb
SE
10935_gas_uniq_newlist=""
10936for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
10937 case $_gas_uniq_i in
10938 _gas_uniq_dummy) ;;
10939 *) case " $_gas_uniq_newlist " in
10940 *" $_gas_uniq_i "*) ;;
10941 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
10942 esac ;;
10943 esac
10944done
ce2cded5 10945canon_targets=$_gas_uniq_newlist
d7040cdb 10946
ce2cded5
L
10947fi
10948
10949emulations=""
10950
10951for this_target in $target $canon_targets ; do
10952
10953 targ=${this_target}
10954 . ${srcdir}/configure.tgt
10955
10956 case ${target_cpu} in
10957 crisv32)
10958
10959cat >>confdefs.h <<_ACEOF
10960#define DEFAULT_CRIS_ARCH $arch
d7040cdb 10961_ACEOF
ce2cded5
L
10962
10963 ;;
10964 esac
10965
10966 if test ${this_target} = $target ; then
10967 target_cpu_type=${cpu_type}
10968 elif test ${target_cpu_type} != ${cpu_type} ; then
10969 continue
10970 fi
10971
10972 generic_target=${cpu_type}-${target_vendor}-${target_os}
10973 case ${generic_target} in
10974 i386-*-sco3.2v5*)
10975 if test ${this_target} = $target; then
10976
d7040cdb 10977cat >>confdefs.h <<\_ACEOF
ce2cded5 10978#define SCO_ELF 1
d7040cdb 10979_ACEOF
ce2cded5
L
10980
10981 fi
10982 ;;
10983
10984 i386-*-msdosdjgpp* \
10985 | i386-*-go32* \
10986 | i386-go32-rtems*)
10987
d7040cdb 10988cat >>confdefs.h <<\_ACEOF
ce2cded5 10989#define STRICTCOFF 1
d7040cdb 10990_ACEOF
ce2cded5
L
10991
10992 ;;
10993
10994 i860-*-*)
10995 { echo "$as_me:$LINENO: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&5
10996echo "$as_me: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&2;}
10997 ;;
10998
10999 mips-sony-bsd*)
11000 ;;
11001 mips-*-bsd*)
11002 { { echo "$as_me:$LINENO: error: Unknown vendor for mips-bsd configuration." >&5
11003echo "$as_me: error: Unknown vendor for mips-bsd configuration." >&2;}
11004 { (exit 1); exit 1; }; }
11005 ;;
11006
11007 ppc-*-aix5.*)
11008
d7040cdb 11009cat >>confdefs.h <<\_ACEOF
ce2cded5 11010#define AIX_WEAK_SUPPORT 1
d7040cdb 11011_ACEOF
ce2cded5
L
11012
11013 ;;
11014 ppc-*-linux-*)
11015 case "$endian" in
11016 big) ;;
11017 *) { { echo "$as_me:$LINENO: error: GNU/Linux must be configured big endian" >&5
11018echo "$as_me: error: GNU/Linux must be configured big endian" >&2;}
11019 { (exit 1); exit 1; }; } ;;
11020 esac
11021 ;;
11022 ppc-*-solaris*)
11023 if test ${this_target} = $target; then
11024
d7040cdb 11025cat >>confdefs.h <<\_ACEOF
ce2cded5 11026#define TARGET_SOLARIS_COMMENT 1
d7040cdb 11027_ACEOF
ce2cded5
L
11028
11029 fi
11030 if test x${endian} = xbig; then
11031 { { echo "$as_me:$LINENO: error: Solaris must be configured little endian" >&5
11032echo "$as_me: error: Solaris must be configured little endian" >&2;}
11033 { (exit 1); exit 1; }; }
11034 fi
11035 ;;
11036
11037 sh*-*-symbianelf*)
11038
d7040cdb 11039cat >>confdefs.h <<\_ACEOF
ce2cded5 11040#define TARGET_SYMBIAN 1
d7040cdb 11041_ACEOF
ce2cded5
L
11042
11043 ;;
d7040cdb 11044 esac
d7040cdb 11045
ce2cded5
L
11046 if test ${this_target} = $target ; then
11047 endian_def=
11048 if test x${endian} = xbig; then
11049 endian_def=1
11050 elif test x${endian} = xlittle; then
11051 endian_def=0
11052 fi
11053 if test x${endian_def} != x; then
11054
11055cat >>confdefs.h <<_ACEOF
11056#define TARGET_BYTES_BIG_ENDIAN $endian_def
11057_ACEOF
11058
11059 fi
11060 fi
11061
11062# Other random stuff.
11063
11064 case ${cpu_type} in
11065 mips)
11066 # Set mips_cpu to the name of the default CPU.
11067 case ${target_cpu} in
11068 mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el)
11069 mips_cpu=from-abi
11070 ;;
11071 mipsisa32 | mipsisa32el)
11072 mips_cpu=mips32
11073 ;;
11074 mipsisa32r2 | mipsisa32r2el)
11075 mips_cpu=mips32r2
11076 ;;
11077 mipsisa64 | mipsisa64el)
11078 mips_cpu=mips64
11079 ;;
11080 mipsisa64r2 | mipsisa64r2el)
11081 mips_cpu=mips64r2
11082 ;;
11083 mipstx39 | mipstx39el)
11084 mips_cpu=r3900
11085 ;;
11086 mips64vr | mips64vrel)
11087 mips_cpu=vr4100
11088 ;;
11089 mipsisa32r2* | mipsisa64r2*)
11090 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'`
11091 ;;
11092 mips64* | mipsisa64* | mipsisa32*)
11093 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..//' -e 's/el$//'`
11094 ;;
11095 *)
11096 { { echo "$as_me:$LINENO: error: $target_cpu isn't a supported MIPS CPU name" >&5
11097echo "$as_me: error: $target_cpu isn't a supported MIPS CPU name" >&2;}
11098 { (exit 1); exit 1; }; }
11099 ;;
11100 esac
11101 # See whether it's appropriate to set E_MIPS_ABI_O32 for o32
11102 # binaries. It's a GNU extension that some OSes don't understand.
11103 # The value only matters on ELF targets.
11104 case ${target} in
11105 *-*-irix*)
11106 use_e_mips_abi_o32=0
11107 ;;
11108 *)
11109 use_e_mips_abi_o32=1
11110 ;;
11111 esac
11112 # Decide whether to generate 32-bit or 64-bit code by default.
11113 # Used to resolve -march=from-abi when an embedded ABI is selected.
11114 case ${target} in
11115 mips64*-*-* | mipsisa64*-*-*)
11116 mips_default_64bit=1
11117 ;;
11118 *)
11119 mips_default_64bit=0
11120 ;;
11121 esac
11122 # Decide which ABI to target by default.
11123 case ${target} in
11124 mips64*-linux* | mips-sgi-irix6*)
11125 mips_default_abi=N32_ABI
11126 ;;
11127 mips*-linux*)
11128 mips_default_abi=O32_ABI
11129 ;;
11130 mips64*-openbsd*)
11131 mips_default_abi=N64_ABI
11132 ;;
11133 *)
11134 mips_default_abi=NO_ABI
11135 ;;
11136 esac
11137
11138cat >>confdefs.h <<_ACEOF
11139#define MIPS_CPU_STRING_DEFAULT "$mips_cpu"
d7040cdb 11140_ACEOF
d7040cdb
SE
11141
11142
11143cat >>confdefs.h <<_ACEOF
ce2cded5 11144#define USE_E_MIPS_ABI_O32 $use_e_mips_abi_o32
d7040cdb
SE
11145_ACEOF
11146
11147
11148cat >>confdefs.h <<_ACEOF
ce2cded5 11149#define MIPS_DEFAULT_64BIT $mips_default_64bit
d7040cdb
SE
11150_ACEOF
11151
11152
ce2cded5
L
11153cat >>confdefs.h <<_ACEOF
11154#define MIPS_DEFAULT_ABI $mips_default_abi
11155_ACEOF
d7040cdb 11156
ce2cded5
L
11157 ;;
11158 esac
d7040cdb 11159
ce2cded5
L
11160 # Do we need the opcodes library?
11161 case ${cpu_type} in
11162 vax | tic30)
11163 ;;
d7040cdb 11164
ce2cded5
L
11165 *)
11166 need_opcodes=yes
d7040cdb 11167
ce2cded5
L
11168 case "${enable_shared}" in
11169 yes) shared_opcodes=true ;;
11170 *opcodes*) shared_opcodes=true ;;
11171 *) shared_opcodes=false ;;
11172 esac
11173 ;;
11174 esac
d7040cdb 11175
ce2cded5
L
11176 # Any other special object files needed ?
11177 case ${cpu_type} in
d7040cdb 11178
ce2cded5
L
11179 bfin)
11180 echo ${extra_objects} | grep -s "bfin-parse.o"
11181 if test $? -ne 0 ; then
11182 extra_objects="$extra_objects bfin-parse.o"
11183 fi
d7040cdb 11184
ce2cded5
L
11185 echo ${extra_objects} | grep -s "bfin-lex.o"
11186 if test $? -ne 0 ; then
11187 extra_objects="$extra_objects bfin-lex.o"
11188 fi
11189 ;;
d7040cdb 11190
ce2cded5
L
11191 fr30 | ip2k | iq2000 | m32r | openrisc)
11192 using_cgen=yes
11193 ;;
d7040cdb 11194
ce2cded5
L
11195 m32c)
11196 using_cgen=yes
11197 ;;
11198 frv)
11199 using_cgen=yes
11200 ;;
11201 m68k)
11202 case ${extra_objects} in
11203 *m68k-parse.o*) ;;
11204 *) extra_objects="$extra_objects m68k-parse.o" ;;
11205 esac
11206 ;;
d7040cdb 11207
ce2cded5
L
11208 mep)
11209 using_cgen=yes
11210 ;;
d7040cdb 11211
ce2cded5
L
11212 mips)
11213 echo ${extra_objects} | grep -s "itbl-parse.o"
11214 if test $? -ne 0 ; then
11215 extra_objects="$extra_objects itbl-parse.o"
11216 fi
d7040cdb 11217
ce2cded5
L
11218 echo ${extra_objects} | grep -s "itbl-lex.o"
11219 if test $? -ne 0 ; then
11220 extra_objects="$extra_objects itbl-lex.o"
11221 fi
d7040cdb 11222
ce2cded5
L
11223 echo ${extra_objects} | grep -s "itbl-ops.o"
11224 if test $? -ne 0 ; then
11225 extra_objects="$extra_objects itbl-ops.o"
11226 fi
11227 ;;
d7040cdb 11228
ce2cded5
L
11229 mt)
11230 using_cgen=yes
11231 ;;
d7040cdb 11232
ce2cded5
L
11233 i386 | s390 | sparc)
11234 if test $this_target = $target ; then
d7040cdb
SE
11235
11236cat >>confdefs.h <<_ACEOF
ce2cded5 11237#define DEFAULT_ARCH "${arch}"
d7040cdb
SE
11238_ACEOF
11239
ce2cded5
L
11240 fi
11241 ;;
d7040cdb 11242
ce2cded5
L
11243 xstormy16)
11244 using_cgen=yes
11245 ;;
d7040cdb 11246
ce2cded5
L
11247 xc16x)
11248 using_cgen=yes
11249 ;;
d7040cdb 11250
ce2cded5
L
11251 xtensa)
11252 echo ${extra_objects} | grep -s "xtensa-relax.o"
11253 if test $? -ne 0 ; then
11254 extra_objects="$extra_objects xtensa-relax.o"
11255 fi
11256 ;;
d7040cdb 11257
ce2cded5
L
11258 *)
11259 ;;
11260 esac
d7040cdb 11261
ce2cded5
L
11262 if test $using_cgen = yes ; then
11263 case "x${extra_objects}" in
11264 *cgen.o*) ;;
11265 *) extra_objects="$extra_objects cgen.o" ;;
11266 esac
11267 fi
d7040cdb 11268
ce2cded5 11269# See if we really can support this configuration with the emulation code.
d7040cdb 11270
ce2cded5
L
11271 if test $this_target = $target ; then
11272 obj_format=$fmt
11273 te_file=$em
11274 fi
d7040cdb 11275
ce2cded5 11276# From target name and format, produce a list of supported emulations.
d7040cdb 11277
ce2cded5
L
11278 case ${generic_target}-${fmt} in
11279 mips-*-irix5*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
11280 mips*-*-linux*-*) case "$endian" in
11281 big) emulation="mipsbelf mipslelf mipself" ;;
11282 *) emulation="mipslelf mipsbelf mipself" ;;
11283 esac ;;
11284 mips-*-lnews*-ecoff) ;;
11285 mips-*-*-ecoff) case "$endian" in
11286 big) emulation="mipsbecoff mipslecoff mipsecoff" ;;
11287 *) emulation="mipslecoff mipsbecoff mipsecoff" ;;
11288 esac ;;
11289 mips-*-*-elf) case "$endian" in
11290 big) emulation="mipsbelf mipslelf mipself" ;;
11291 *) emulation="mipslelf mipsbelf mipself" ;;
11292 esac ;;
11293 mips-*-sysv4*MP*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
11294 # i386-pc-pe-coff != i386-pc-coff.
11295 i386-*-pe-coff) ;;
11296 # Uncommenting the next line will turn on support for i386 AOUT
11297 # for the default linux configuration
11298 # i386-*-linux*-elf) emulation="i386elf i386aout" ;;
11299 #
11300 i386-*-aout) emulation="i386aout" ;;
11301 i386-*-coff) emulation="i386coff" ;;
11302 i386-*-elf) emulation="i386elf" ;;
d7040cdb 11303
ce2cded5
L
11304 # Always all formats. The first stated emulation becomes the default.
11305 cris-*-*aout*) emulation="crisaout criself" ;;
11306 cris-*-*) emulation="criself crisaout" ;;
11307 esac
13b2be9c 11308
ce2cded5 11309 emulations="$emulations $emulation"
13b2be9c 11310
13b2be9c 11311done
13b2be9c 11312
ce2cded5
L
11313# Turn on all targets if possible
11314if test ${all_targets} = "yes"; then
11315 case ${target_cpu_type} in
11316 i386)
11317 case ${obj_format} in
11318 aout)
11319 emulations="$emulations i386coff i386elf"
11320 ;;
11321 coff)
11322 emulations="$emulations i386aout i386elf"
11323 ;;
11324 elf)
11325 emulations="$emulations i386aout i386coff"
11326 ;;
11327 esac
11328 ;;
11329 x86_64)
11330 case ${obj_format} in
11331 aout)
11332 emulations="$emulations i386coff i386elf"
11333 ;;
11334 coff)
11335 emulations="$emulations i386aout i386elf"
11336 ;;
11337 elf)
11338 emulations="$emulations i386aout i386coff"
11339 ;;
11340 esac
11341 ;;
11342 esac
13b2be9c 11343fi
c8615825 11344
ce2cded5
L
11345# Assign floating point type. Most processors with FP support
11346# IEEE FP. On those that don't support FP at all, usually IEEE
11347# is emulated.
11348case ${target_cpu} in
11349 vax | pdp11 ) atof=vax ;;
11350 *) atof=ieee ;;
11351esac
c8615825 11352
ce2cded5
L
11353case "${obj_format}" in
11354 "") { { echo "$as_me:$LINENO: error: GAS does not know what format to use for target ${target}" >&5
11355echo "$as_me: error: GAS does not know what format to use for target ${target}" >&2;}
11356 { (exit 1); exit 1; }; } ;;
11357esac
13b2be9c 11358
ce2cded5
L
11359# Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
11360cgen_cpu_prefix=""
11361if test $using_cgen = yes ; then
11362 case ${target_cpu} in
11363 *) cgen_cpu_prefix=${target_cpu} ;;
11364 esac
c8615825 11365
c8615825 11366
ce2cded5
L
11367cat >>confdefs.h <<\_ACEOF
11368#define USING_CGEN 1
11369_ACEOF
d7040cdb 11370
d7040cdb 11371fi
13b2be9c 11372
ce2cded5
L
11373
11374if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then
11375 { { echo "$as_me:$LINENO: error: GAS does not support target CPU ${target_cpu_type}" >&5
11376echo "$as_me: error: GAS does not support target CPU ${target_cpu_type}" >&2;}
11377 { (exit 1); exit 1; }; }
13b2be9c 11378fi
ce2cded5
L
11379
11380if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
11381 { { echo "$as_me:$LINENO: error: GAS does not have support for object file format ${obj_format}" >&5
11382echo "$as_me: error: GAS does not have support for object file format ${obj_format}" >&2;}
11383 { (exit 1); exit 1; }; }
13b2be9c
DJ
11384fi
11385
ce2cded5
L
11386# Some COFF configurations want these random other flags set.
11387case ${obj_format} in
11388 coff)
11389 case ${target_cpu_type} in
11390 i386)
11391cat >>confdefs.h <<\_ACEOF
11392#define I386COFF 1
11393_ACEOF
11394 ;;
11395 m68k)
11396cat >>confdefs.h <<\_ACEOF
11397#define M68KCOFF 1
11398_ACEOF
11399 ;;
11400 m88k)
11401cat >>confdefs.h <<\_ACEOF
11402#define M88KCOFF 1
11403_ACEOF
11404 ;;
11405 x86_64)
11406cat >>confdefs.h <<\_ACEOF
11407#define I386COFF 1
11408_ACEOF
11409 ;;
11410 esac
11411 ;;
11412esac
11413
11414# Getting this done right is going to be a bitch. Each configuration specified
11415# with --enable-targets=... should be checked for environment, format, cpu
11416# setting.
11417#
11418# For each configuration, the necessary object file support code must be linked
11419# in. This might be only one, it might be up to four. The necessary emulation
11420# code needs to be provided, too.
11421#
11422# And then there's "--enable-targets=all"....
11423#
11424# For now, just always do it for MIPS ELF or ECOFF configurations. Sigh.
11425
11426formats="${obj_format}"
11427emfiles=""
11428EMULATIONS=""
11429_gas_uniq_list="$emulations"
11430_gas_uniq_newlist=""
11431for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
11432 case $_gas_uniq_i in
11433 _gas_uniq_dummy) ;;
11434 *) case " $_gas_uniq_newlist " in
11435 *" $_gas_uniq_i "*) ;;
11436 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
11437 esac ;;
11438 esac
11439done
11440emulations=$_gas_uniq_newlist
11441
11442for em in . $emulations ; do
11443 case $em in
11444 .) continue ;;
11445 mipsbelf | mipslelf | mipself)
11446 fmt=elf file=mipself ;;
11447 mipsbecoff | mipslecoff | mipsecoff)
11448 fmt=ecoff file=mipsecoff ;;
11449 *coff)
11450 fmt=coff file=$em ;;
11451 *aout)
11452 fmt=aout file=$em ;;
11453 *elf)
11454 fmt=elf file=$em ;;
11455 esac
11456 formats="$formats $fmt"
11457 emfiles="$emfiles e-$file.o"
11458 EMULATIONS="$EMULATIONS &$em,"
11459done
11460_gas_uniq_list="$formats"
11461_gas_uniq_newlist=""
11462for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
11463 case $_gas_uniq_i in
11464 _gas_uniq_dummy) ;;
11465 *) case " $_gas_uniq_newlist " in
11466 *" $_gas_uniq_i "*) ;;
11467 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
11468 esac ;;
11469 esac
13b2be9c 11470done
ce2cded5 11471formats=$_gas_uniq_newlist
13b2be9c 11472
ce2cded5
L
11473_gas_uniq_list="$emfiles"
11474_gas_uniq_newlist=""
11475for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
11476 case $_gas_uniq_i in
11477 _gas_uniq_dummy) ;;
11478 *) case " $_gas_uniq_newlist " in
11479 *" $_gas_uniq_i "*) ;;
11480 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
11481 esac ;;
11482 esac
11483done
11484emfiles=$_gas_uniq_newlist
d7040cdb 11485
ce2cded5
L
11486if test `set . $formats ; shift ; echo $#` -gt 1 ; then
11487 for fmt in $formats ; do
11488 case $fmt in
11489 aout)
11490cat >>confdefs.h <<\_ACEOF
11491#define OBJ_MAYBE_AOUT 1
13b2be9c 11492_ACEOF
ce2cded5
L
11493 ;;
11494 bout)
11495cat >>confdefs.h <<\_ACEOF
11496#define OBJ_MAYBE_BOUT 1
13b2be9c 11497_ACEOF
ce2cded5
L
11498 ;;
11499 coff)
11500cat >>confdefs.h <<\_ACEOF
11501#define OBJ_MAYBE_COFF 1
11502_ACEOF
11503 ;;
11504 ecoff)
11505cat >>confdefs.h <<\_ACEOF
11506#define OBJ_MAYBE_ECOFF 1
11507_ACEOF
11508 ;;
11509 elf)
11510cat >>confdefs.h <<\_ACEOF
11511#define OBJ_MAYBE_ELF 1
11512_ACEOF
11513 ;;
11514 generic)
11515cat >>confdefs.h <<\_ACEOF
11516#define OBJ_MAYBE_GENERIC 1
11517_ACEOF
11518 ;;
11519 som)
11520cat >>confdefs.h <<\_ACEOF
11521#define OBJ_MAYBE_SOM 1
11522_ACEOF
11523 ;;
11524 esac
11525 extra_objects="$extra_objects obj-$fmt.o"
11526 done
11527 obj_format=multi
13b2be9c 11528fi
ce2cded5
L
11529if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
11530 DEFAULT_EMULATION=`set . $emulations ; echo $2`
11531 # e-mips* has more than one emulation per file, e-i386* has just one at the
11532 # moment. If only one emulation is specified, then don't define
11533 # USE_EMULATIONS or include any of the e-files as they will only be bloat.
11534 case "${obj_format}${emfiles}" in
11535 multi* | *mips*)
11536 extra_objects="$extra_objects $emfiles"
d7040cdb 11537
ce2cded5
L
11538cat >>confdefs.h <<\_ACEOF
11539#define USE_EMULATIONS 1
13b2be9c 11540_ACEOF
ce2cded5
L
11541 ;;
11542 esac
11543fi
d7040cdb 11544
13b2be9c 11545
ce2cded5
L
11546cat >>confdefs.h <<_ACEOF
11547#define EMULATIONS $EMULATIONS
13b2be9c 11548_ACEOF
d7040cdb 11549
d7040cdb 11550
ce2cded5
L
11551cat >>confdefs.h <<_ACEOF
11552#define DEFAULT_EMULATION "$DEFAULT_EMULATION"
d7040cdb 11553_ACEOF
d7040cdb 11554
d7040cdb 11555
ce2cded5 11556reject_dev_configs=yes
252b5132 11557
ce2cded5
L
11558case ${reject_dev_configs}-${dev} in
11559 yes-yes) # Oops.
11560 { { echo "$as_me:$LINENO: error: GAS does not support the ${generic_target} configuration." >&5
11561echo "$as_me: error: GAS does not support the ${generic_target} configuration." >&2;}
11562 { (exit 1); exit 1; }; }
11563 ;;
d7040cdb
SE
11564esac
11565
13b2be9c 11566
ce2cded5
L
11567
11568
11569
11570
11571
11572# do we need the opcodes library?
11573case "${need_opcodes}" in
11574yes)
11575 OPCODES_LIB=../opcodes/libopcodes.la
11576 ;;
11577esac
11578
11579
11580
11581
11582cat >>confdefs.h <<_ACEOF
11583#define TARGET_ALIAS "${target_alias}"
d7040cdb 11584_ACEOF
20e95c23 11585
20e95c23 11586
ce2cded5
L
11587cat >>confdefs.h <<_ACEOF
11588#define TARGET_CANONICAL "${target}"
11589_ACEOF
20e95c23 11590
d6d788bd 11591
ce2cded5
L
11592cat >>confdefs.h <<_ACEOF
11593#define TARGET_CPU "${target_cpu}"
11594_ACEOF
20e95c23 11595
ce2cded5
L
11596
11597cat >>confdefs.h <<_ACEOF
11598#define TARGET_VENDOR "${target_vendor}"
0efedc4c
AM
11599_ACEOF
11600
11601
ce2cded5
L
11602cat >>confdefs.h <<_ACEOF
11603#define TARGET_OS "${target_os}"
11604_ACEOF
11605
0efedc4c 11606
d7040cdb
SE
11607for ac_prog in 'bison -y' byacc
11608do
11609 # Extract the first word of "$ac_prog", so it can be a program name with args.
11610set dummy $ac_prog; ac_word=$2
20e95c23
DJ
11611echo "$as_me:$LINENO: checking for $ac_word" >&5
11612echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d7040cdb 11613if test "${ac_cv_prog_YACC+set}" = set; then
20e95c23
DJ
11614 echo $ECHO_N "(cached) $ECHO_C" >&6
11615else
d7040cdb
SE
11616 if test -n "$YACC"; then
11617 ac_cv_prog_YACC="$YACC" # Let the user override the test.
d6d788bd 11618else
d7040cdb
SE
11619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11620for as_dir in $PATH
11621do
11622 IFS=$as_save_IFS
11623 test -z "$as_dir" && as_dir=.
11624 for ac_exec_ext in '' $ac_executable_extensions; do
11625 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11626 ac_cv_prog_YACC="$ac_prog"
11627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11628 break 2
20e95c23 11629 fi
d7040cdb
SE
11630done
11631done
20e95c23 11632
d7040cdb
SE
11633fi
11634fi
11635YACC=$ac_cv_prog_YACC
11636if test -n "$YACC"; then
11637 echo "$as_me:$LINENO: result: $YACC" >&5
11638echo "${ECHO_T}$YACC" >&6
11639else
11640 echo "$as_me:$LINENO: result: no" >&5
11641echo "${ECHO_T}no" >&6
11642fi
20e95c23 11643
d7040cdb
SE
11644 test -n "$YACC" && break
11645done
11646test -n "$YACC" || YACC="yacc"
20e95c23 11647
d7040cdb
SE
11648for ac_prog in flex lex
11649do
11650 # Extract the first word of "$ac_prog", so it can be a program name with args.
11651set dummy $ac_prog; ac_word=$2
11652echo "$as_me:$LINENO: checking for $ac_word" >&5
11653echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11654if test "${ac_cv_prog_LEX+set}" = set; then
11655 echo $ECHO_N "(cached) $ECHO_C" >&6
d6d788bd 11656else
d7040cdb
SE
11657 if test -n "$LEX"; then
11658 ac_cv_prog_LEX="$LEX" # Let the user override the test.
11659else
11660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11661for as_dir in $PATH
11662do
11663 IFS=$as_save_IFS
11664 test -z "$as_dir" && as_dir=.
11665 for ac_exec_ext in '' $ac_executable_extensions; do
11666 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11667 ac_cv_prog_LEX="$ac_prog"
11668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11669 break 2
11670 fi
11671done
11672done
20e95c23 11673
d7040cdb
SE
11674fi
11675fi
11676LEX=$ac_cv_prog_LEX
11677if test -n "$LEX"; then
11678 echo "$as_me:$LINENO: result: $LEX" >&5
11679echo "${ECHO_T}$LEX" >&6
20e95c23 11680else
d7040cdb
SE
11681 echo "$as_me:$LINENO: result: no" >&5
11682echo "${ECHO_T}no" >&6
13b2be9c
DJ
11683fi
11684
d7040cdb
SE
11685 test -n "$LEX" && break
11686done
11687test -n "$LEX" || LEX=":"
20e95c23 11688
d7040cdb
SE
11689if test -z "$LEXLIB"
11690then
11691 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
11692echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
11693if test "${ac_cv_lib_fl_yywrap+set}" = set; then
11694 echo $ECHO_N "(cached) $ECHO_C" >&6
d5fbea21 11695else
d7040cdb
SE
11696 ac_check_lib_save_LIBS=$LIBS
11697LIBS="-lfl $LIBS"
11698cat >conftest.$ac_ext <<_ACEOF
11699/* confdefs.h. */
11700_ACEOF
11701cat confdefs.h >>conftest.$ac_ext
11702cat >>conftest.$ac_ext <<_ACEOF
11703/* end confdefs.h. */
d5fbea21 11704
d7040cdb
SE
11705/* Override any gcc2 internal prototype to avoid an error. */
11706#ifdef __cplusplus
11707extern "C"
11708#endif
11709/* We use char because int might match the return type of a gcc2
11710 builtin and then its argument prototype would still apply. */
11711char yywrap ();
11712int
11713main ()
11714{
11715yywrap ();
11716 ;
11717 return 0;
11718}
11719_ACEOF
11720rm -f conftest.$ac_objext conftest$ac_exeext
11721if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11722 (eval $ac_link) 2>conftest.er1
11723 ac_status=$?
11724 grep -v '^ *+' conftest.er1 >conftest.err
11725 rm -f conftest.er1
11726 cat conftest.err >&5
11727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728 (exit $ac_status); } &&
11729 { ac_try='test -z "$ac_c_werror_flag"
11730 || test ! -s conftest.err'
11731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11732 (eval $ac_try) 2>&5
11733 ac_status=$?
11734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735 (exit $ac_status); }; } &&
11736 { ac_try='test -s conftest$ac_exeext'
11737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11738 (eval $ac_try) 2>&5
11739 ac_status=$?
11740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11741 (exit $ac_status); }; }; then
11742 ac_cv_lib_fl_yywrap=yes
11743else
11744 echo "$as_me: failed program was:" >&5
11745sed 's/^/| /' conftest.$ac_ext >&5
d5fbea21 11746
d7040cdb 11747ac_cv_lib_fl_yywrap=no
d6d788bd 11748fi
d7040cdb
SE
11749rm -f conftest.err conftest.$ac_objext \
11750 conftest$ac_exeext conftest.$ac_ext
11751LIBS=$ac_check_lib_save_LIBS
11752fi
11753echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
11754echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
11755if test $ac_cv_lib_fl_yywrap = yes; then
11756 LEXLIB="-lfl"
11757else
11758 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
11759echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
11760if test "${ac_cv_lib_l_yywrap+set}" = set; then
13b2be9c
DJ
11761 echo $ECHO_N "(cached) $ECHO_C" >&6
11762else
d7040cdb
SE
11763 ac_check_lib_save_LIBS=$LIBS
11764LIBS="-ll $LIBS"
11765cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
11766/* confdefs.h. */
11767_ACEOF
11768cat confdefs.h >>conftest.$ac_ext
11769cat >>conftest.$ac_ext <<_ACEOF
11770/* end confdefs.h. */
d7040cdb
SE
11771
11772/* Override any gcc2 internal prototype to avoid an error. */
11773#ifdef __cplusplus
11774extern "C"
13b2be9c 11775#endif
d7040cdb
SE
11776/* We use char because int might match the return type of a gcc2
11777 builtin and then its argument prototype would still apply. */
11778char yywrap ();
11779int
11780main ()
11781{
11782yywrap ();
11783 ;
11784 return 0;
11785}
11786_ACEOF
11787rm -f conftest.$ac_objext conftest$ac_exeext
11788if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11789 (eval $ac_link) 2>conftest.er1
11790 ac_status=$?
11791 grep -v '^ *+' conftest.er1 >conftest.err
11792 rm -f conftest.er1
11793 cat conftest.err >&5
11794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795 (exit $ac_status); } &&
11796 { ac_try='test -z "$ac_c_werror_flag"
11797 || test ! -s conftest.err'
11798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11799 (eval $ac_try) 2>&5
11800 ac_status=$?
11801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11802 (exit $ac_status); }; } &&
11803 { ac_try='test -s conftest$ac_exeext'
11804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11805 (eval $ac_try) 2>&5
11806 ac_status=$?
11807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11808 (exit $ac_status); }; }; then
11809 ac_cv_lib_l_yywrap=yes
11810else
11811 echo "$as_me: failed program was:" >&5
11812sed 's/^/| /' conftest.$ac_ext >&5
11813
11814ac_cv_lib_l_yywrap=no
11815fi
11816rm -f conftest.err conftest.$ac_objext \
11817 conftest$ac_exeext conftest.$ac_ext
11818LIBS=$ac_check_lib_save_LIBS
11819fi
11820echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
11821echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
11822if test $ac_cv_lib_l_yywrap = yes; then
11823 LEXLIB="-ll"
11824fi
11825
11826fi
11827
11828fi
11829
11830if test "x$LEX" != "x:"; then
11831 echo "$as_me:$LINENO: checking lex output file root" >&5
11832echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
11833if test "${ac_cv_prog_lex_root+set}" = set; then
11834 echo $ECHO_N "(cached) $ECHO_C" >&6
11835else
11836 # The minimal lex program is just a single line: %%. But some broken lexes
11837# (Solaris, I think it was) want two %% lines, so accommodate them.
11838cat >conftest.l <<_ACEOF
11839%%
11840%%
13b2be9c 11841_ACEOF
d7040cdb
SE
11842{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
11843 (eval $LEX conftest.l) 2>&5
13b2be9c 11844 ac_status=$?
13b2be9c 11845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
11846 (exit $ac_status); }
11847if test -f lex.yy.c; then
11848 ac_cv_prog_lex_root=lex.yy
11849elif test -f lexyy.c; then
11850 ac_cv_prog_lex_root=lexyy
13b2be9c 11851else
d7040cdb
SE
11852 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
11853echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
11854 { (exit 1); exit 1; }; }
d6d788bd 11855fi
13b2be9c 11856fi
d7040cdb
SE
11857echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
11858echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
11859rm -f conftest.l
11860LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
13b2be9c 11861
d7040cdb
SE
11862echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
11863echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
11864if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
11865 echo $ECHO_N "(cached) $ECHO_C" >&6
11866else
11867 # POSIX says lex can declare yytext either as a pointer or an array; the
11868# default is implementation-dependent. Figure out which it is, since
11869# not all implementations provide the %pointer and %array declarations.
11870ac_cv_prog_lex_yytext_pointer=no
11871echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
11872ac_save_LIBS=$LIBS
11873LIBS="$LIBS $LEXLIB"
11874cat >conftest.$ac_ext <<_ACEOF
11875`cat $LEX_OUTPUT_ROOT.c`
13b2be9c 11876_ACEOF
d7040cdb
SE
11877rm -f conftest.$ac_objext conftest$ac_exeext
11878if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11879 (eval $ac_link) 2>conftest.er1
13b2be9c
DJ
11880 ac_status=$?
11881 grep -v '^ *+' conftest.er1 >conftest.err
11882 rm -f conftest.er1
11883 cat conftest.err >&5
11884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
11885 (exit $ac_status); } &&
11886 { ac_try='test -z "$ac_c_werror_flag"
11887 || test ! -s conftest.err'
11888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11889 (eval $ac_try) 2>&5
11890 ac_status=$?
11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892 (exit $ac_status); }; } &&
11893 { ac_try='test -s conftest$ac_exeext'
11894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11895 (eval $ac_try) 2>&5
11896 ac_status=$?
11897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898 (exit $ac_status); }; }; then
11899 ac_cv_prog_lex_yytext_pointer=yes
13b2be9c
DJ
11900else
11901 echo "$as_me: failed program was:" >&5
11902sed 's/^/| /' conftest.$ac_ext >&5
6840198f 11903
13b2be9c 11904fi
d7040cdb
SE
11905rm -f conftest.err conftest.$ac_objext \
11906 conftest$ac_exeext conftest.$ac_ext
11907LIBS=$ac_save_LIBS
11908rm -f "${LEX_OUTPUT_ROOT}.c"
252b5132 11909
9b2b7d69 11910fi
d7040cdb
SE
11911echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
11912echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
11913if test $ac_cv_prog_lex_yytext_pointer = yes; then
13b2be9c 11914
d7040cdb
SE
11915cat >>confdefs.h <<\_ACEOF
11916#define YYTEXT_POINTER 1
11917_ACEOF
9b2b7d69 11918
d6d788bd 11919fi
d7040cdb 11920
c8615825 11921fi
d7040cdb
SE
11922if test "$LEX" = :; then
11923 LEX=${am_missing_run}flex
11924fi
11925
11926ALL_LINGUAS="fr tr es rw"
11927# If we haven't got the data from the intl directory,
11928# assume NLS is disabled.
11929USE_NLS=no
11930LIBINTL=
11931LIBINTL_DEP=
11932INCINTL=
11933XGETTEXT=
11934GMSGFMT=
11935POSUB=
11936
11937if test -f ../intl/config.intl; then
11938 . ../intl/config.intl
11939fi
11940echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11941echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
11942if test x"$USE_NLS" != xyes; then
11943 echo "$as_me:$LINENO: result: no" >&5
11944echo "${ECHO_T}no" >&6
11945else
11946 echo "$as_me:$LINENO: result: yes" >&5
11947echo "${ECHO_T}yes" >&6
11948
11949cat >>confdefs.h <<\_ACEOF
11950#define ENABLE_NLS 1
13b2be9c 11951_ACEOF
d7040cdb
SE
11952
11953
11954 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
11955echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
11956 # Look for .po and .gmo files in the source directory.
11957 CATALOGS=
11958 XLINGUAS=
11959 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11960 # If there aren't any .gmo files the shell will give us the
11961 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11962 # weeded out.
11963 case "$cat" in *\**)
11964 continue;;
11965 esac
11966 # The quadruple backslash is collapsed to a double backslash
11967 # by the backticks, then collapsed again by the double quotes,
11968 # leaving us with one backslash in the sed expression (right
11969 # before the dot that mustn't act as a wildcard).
11970 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11971 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11972 # The user is allowed to set LINGUAS to a list of languages to
11973 # install catalogs for. If it's empty that means "all of them."
11974 if test "x$LINGUAS" = x; then
11975 CATALOGS="$CATALOGS $cat"
11976 XLINGUAS="$XLINGUAS $lang"
11977 else
11978 case "$LINGUAS" in *$lang*)
11979 CATALOGS="$CATALOGS $cat"
11980 XLINGUAS="$XLINGUAS $lang"
11981 ;;
11982 esac
11983 fi
11984 done
11985 LINGUAS="$XLINGUAS"
11986 echo "$as_me:$LINENO: result: $LINGUAS" >&5
11987echo "${ECHO_T}$LINGUAS" >&6
11988
11989
11990 DATADIRNAME=share
11991
11992 INSTOBJEXT=.mo
11993
11994 GENCAT=gencat
11995
11996 CATOBJEXT=.gmo
11997
11998fi
11999
12000 MKINSTALLDIRS=
12001 if test -n "$ac_aux_dir"; then
12002 case "$ac_aux_dir" in
12003 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
12004 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
12005 esac
12006 fi
12007 if test -z "$MKINSTALLDIRS"; then
12008 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12009 fi
12010
12011
12012
12013 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12014echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12015 # Check whether --enable-nls or --disable-nls was given.
12016if test "${enable_nls+set}" = set; then
12017 enableval="$enable_nls"
12018 USE_NLS=$enableval
12019else
12020 USE_NLS=yes
12021fi;
12022 echo "$as_me:$LINENO: result: $USE_NLS" >&5
12023echo "${ECHO_T}$USE_NLS" >&6
12024
12025
12026
12027
12028
12029
12030# Prepare PATH_SEPARATOR.
12031# The user is always right.
12032if test "${PATH_SEPARATOR+set}" != set; then
12033 echo "#! /bin/sh" >conf$$.sh
12034 echo "exit 0" >>conf$$.sh
12035 chmod +x conf$$.sh
12036 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12037 PATH_SEPARATOR=';'
13b2be9c 12038 else
d7040cdb 12039 PATH_SEPARATOR=:
13b2be9c 12040 fi
d7040cdb 12041 rm -f conf$$.sh
252b5132 12042fi
13b2be9c 12043
d7040cdb
SE
12044# Find out how to test for executable files. Don't use a zero-byte file,
12045# as systems may use methods other than mode bits to determine executability.
12046cat >conf$$.file <<_ASEOF
12047#! /bin/sh
12048exit 0
12049_ASEOF
12050chmod +x conf$$.file
12051if test -x conf$$.file >/dev/null 2>&1; then
12052 ac_executable_p="test -x"
12053else
12054 ac_executable_p="test -f"
13b2be9c 12055fi
d7040cdb 12056rm -f conf$$.file
13b2be9c 12057
d7040cdb
SE
12058# Extract the first word of "msgfmt", so it can be a program name with args.
12059set dummy msgfmt; ac_word=$2
12060echo "$as_me:$LINENO: checking for $ac_word" >&5
12061echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12062if test "${ac_cv_path_MSGFMT+set}" = set; then
12063 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12064else
d7040cdb
SE
12065 case "$MSGFMT" in
12066 [\\/]* | ?:[\\/]*)
12067 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12068 ;;
12069 *)
12070 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12071 for ac_dir in $PATH; do
12072 IFS="$ac_save_IFS"
12073 test -z "$ac_dir" && ac_dir=.
12074 for ac_exec_ext in '' $ac_executable_extensions; do
12075 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12076 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
12077 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12078 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12079 break 2
12080 fi
12081 fi
12082 done
12083 done
12084 IFS="$ac_save_IFS"
12085 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12086 ;;
12087esac
252b5132 12088fi
d7040cdb
SE
12089MSGFMT="$ac_cv_path_MSGFMT"
12090if test "$MSGFMT" != ":"; then
12091 echo "$as_me:$LINENO: result: $MSGFMT" >&5
12092echo "${ECHO_T}$MSGFMT" >&6
252b5132 12093else
d7040cdb
SE
12094 echo "$as_me:$LINENO: result: no" >&5
12095echo "${ECHO_T}no" >&6
252b5132 12096fi
252b5132 12097
d7040cdb
SE
12098 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12099set dummy gmsgfmt; ac_word=$2
12100echo "$as_me:$LINENO: checking for $ac_word" >&5
12101echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12102if test "${ac_cv_path_GMSGFMT+set}" = set; then
12103 echo $ECHO_N "(cached) $ECHO_C" >&6
13b2be9c 12104else
d7040cdb
SE
12105 case $GMSGFMT in
12106 [\\/]* | ?:[\\/]*)
12107 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12108 ;;
12109 *)
12110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12111for as_dir in $PATH
12112do
12113 IFS=$as_save_IFS
12114 test -z "$as_dir" && as_dir=.
12115 for ac_exec_ext in '' $ac_executable_extensions; do
12116 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12117 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12119 break 2
12120 fi
12121done
12122done
252b5132 12123
d7040cdb
SE
12124 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12125 ;;
12126esac
12127fi
12128GMSGFMT=$ac_cv_path_GMSGFMT
252b5132 12129
d7040cdb
SE
12130if test -n "$GMSGFMT"; then
12131 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
12132echo "${ECHO_T}$GMSGFMT" >&6
ac48eca1 12133else
d7040cdb
SE
12134 echo "$as_me:$LINENO: result: no" >&5
12135echo "${ECHO_T}no" >&6
6840198f 12136fi
6840198f 12137
13b2be9c 12138
20e95c23 12139
d7040cdb
SE
12140# Prepare PATH_SEPARATOR.
12141# The user is always right.
12142if test "${PATH_SEPARATOR+set}" != set; then
12143 echo "#! /bin/sh" >conf$$.sh
12144 echo "exit 0" >>conf$$.sh
12145 chmod +x conf$$.sh
12146 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12147 PATH_SEPARATOR=';'
12148 else
12149 PATH_SEPARATOR=:
12150 fi
12151 rm -f conf$$.sh
12152fi
20e95c23 12153
d7040cdb
SE
12154# Find out how to test for executable files. Don't use a zero-byte file,
12155# as systems may use methods other than mode bits to determine executability.
12156cat >conf$$.file <<_ASEOF
12157#! /bin/sh
12158exit 0
12159_ASEOF
12160chmod +x conf$$.file
12161if test -x conf$$.file >/dev/null 2>&1; then
12162 ac_executable_p="test -x"
13b2be9c 12163else
d7040cdb 12164 ac_executable_p="test -f"
13b2be9c 12165fi
d7040cdb 12166rm -f conf$$.file
20e95c23 12167
d7040cdb
SE
12168# Extract the first word of "xgettext", so it can be a program name with args.
12169set dummy xgettext; ac_word=$2
12170echo "$as_me:$LINENO: checking for $ac_word" >&5
12171echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12172if test "${ac_cv_path_XGETTEXT+set}" = set; then
12173 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12174else
d7040cdb
SE
12175 case "$XGETTEXT" in
12176 [\\/]* | ?:[\\/]*)
12177 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12178 ;;
12179 *)
12180 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12181 for ac_dir in $PATH; do
12182 IFS="$ac_save_IFS"
12183 test -z "$ac_dir" && ac_dir=.
12184 for ac_exec_ext in '' $ac_executable_extensions; do
12185 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12186 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12187 (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
12188 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12189 break 2
12190 fi
12191 fi
12192 done
12193 done
12194 IFS="$ac_save_IFS"
12195 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12196 ;;
12197esac
13b2be9c 12198fi
d7040cdb
SE
12199XGETTEXT="$ac_cv_path_XGETTEXT"
12200if test "$XGETTEXT" != ":"; then
12201 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
12202echo "${ECHO_T}$XGETTEXT" >&6
12203else
12204 echo "$as_me:$LINENO: result: no" >&5
12205echo "${ECHO_T}no" >&6
13b2be9c 12206fi
13b2be9c 12207
d7040cdb 12208 rm -f messages.po
20e95c23 12209
13b2be9c 12210
d7040cdb
SE
12211# Prepare PATH_SEPARATOR.
12212# The user is always right.
12213if test "${PATH_SEPARATOR+set}" != set; then
12214 echo "#! /bin/sh" >conf$$.sh
12215 echo "exit 0" >>conf$$.sh
12216 chmod +x conf$$.sh
12217 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12218 PATH_SEPARATOR=';'
12219 else
12220 PATH_SEPARATOR=:
12221 fi
12222 rm -f conf$$.sh
252b5132 12223fi
20e95c23 12224
d7040cdb
SE
12225# Find out how to test for executable files. Don't use a zero-byte file,
12226# as systems may use methods other than mode bits to determine executability.
12227cat >conf$$.file <<_ASEOF
12228#! /bin/sh
12229exit 0
12230_ASEOF
12231chmod +x conf$$.file
12232if test -x conf$$.file >/dev/null 2>&1; then
12233 ac_executable_p="test -x"
252b5132 12234else
d7040cdb
SE
12235 ac_executable_p="test -f"
12236fi
12237rm -f conf$$.file
20e95c23 12238
d7040cdb
SE
12239# Extract the first word of "msgmerge", so it can be a program name with args.
12240set dummy msgmerge; ac_word=$2
12241echo "$as_me:$LINENO: checking for $ac_word" >&5
12242echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12243if test "${ac_cv_path_MSGMERGE+set}" = set; then
12244 echo $ECHO_N "(cached) $ECHO_C" >&6
20e95c23 12245else
d7040cdb
SE
12246 case "$MSGMERGE" in
12247 [\\/]* | ?:[\\/]*)
12248 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12249 ;;
12250 *)
12251 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12252 for ac_dir in $PATH; do
12253 IFS="$ac_save_IFS"
12254 test -z "$ac_dir" && ac_dir=.
12255 for ac_exec_ext in '' $ac_executable_extensions; do
12256 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12257 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12258 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12259 break 2
12260 fi
12261 fi
12262 done
12263 done
12264 IFS="$ac_save_IFS"
12265 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12266 ;;
12267esac
20e95c23 12268fi
d7040cdb
SE
12269MSGMERGE="$ac_cv_path_MSGMERGE"
12270if test "$MSGMERGE" != ":"; then
12271 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
12272echo "${ECHO_T}$MSGMERGE" >&6
12273else
12274 echo "$as_me:$LINENO: result: no" >&5
12275echo "${ECHO_T}no" >&6
20e95c23 12276fi
252b5132 12277
252b5132 12278
d7040cdb
SE
12279 if test "$GMSGFMT" != ":"; then
12280 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12281 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12282 : ;
12283 else
12284 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
12285 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12286echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
12287 GMSGFMT=":"
12288 fi
12289 fi
13b2be9c 12290
d7040cdb
SE
12291 if test "$XGETTEXT" != ":"; then
12292 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12293 (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
12294 : ;
12295 else
12296 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
12297echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
12298 XGETTEXT=":"
12299 fi
12300 rm -f messages.po
12301 fi
252b5132 12302
d7040cdb 12303 ac_config_commands="$ac_config_commands default-1"
252b5132 12304
13b2be9c 12305
252b5132 12306
d7040cdb
SE
12307echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12308echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
12309 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
12310if test "${enable_maintainer_mode+set}" = set; then
12311 enableval="$enable_maintainer_mode"
12312 USE_MAINTAINER_MODE=$enableval
c8615825 12313else
d7040cdb
SE
12314 USE_MAINTAINER_MODE=no
12315fi;
12316 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
12317echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
13b2be9c 12318
d7040cdb
SE
12319
12320if test $USE_MAINTAINER_MODE = yes; then
12321 MAINTAINER_MODE_TRUE=
12322 MAINTAINER_MODE_FALSE='#'
12323else
12324 MAINTAINER_MODE_TRUE='#'
12325 MAINTAINER_MODE_FALSE=
20e95c23 12326fi
9b2b7d69 12327
d7040cdb
SE
12328 MAINT=$MAINTAINER_MODE_TRUE
12329
12330
12331
12332
12333if false; then
12334 GENINSRC_NEVER_TRUE=
12335 GENINSRC_NEVER_FALSE='#'
12336else
12337 GENINSRC_NEVER_TRUE='#'
12338 GENINSRC_NEVER_FALSE=
20e95c23 12339fi
9b2b7d69
MM
12340
12341
12342
12343
12344
13b2be9c
DJ
12345
12346
12347
12348
12349
12350
12351
40fb9820
L
12352
12353for ac_header in string.h stdlib.h memory.h strings.h unistd.h stdarg.h varargs.h errno.h sys/types.h limits.h
d6d788bd 12354do
13b2be9c
DJ
12355as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12356if eval "test \"\${$as_ac_Header+set}\" = set"; then
12357 echo "$as_me:$LINENO: checking for $ac_header" >&5
12358echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12359if eval "test \"\${$as_ac_Header+set}\" = set"; then
12360 echo $ECHO_N "(cached) $ECHO_C" >&6
12361fi
12362echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12363echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12364else
12365 # Is the header compilable?
12366echo "$as_me:$LINENO: checking $ac_header usability" >&5
12367echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12368cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
12369/* confdefs.h. */
12370_ACEOF
12371cat confdefs.h >>conftest.$ac_ext
12372cat >>conftest.$ac_ext <<_ACEOF
12373/* end confdefs.h. */
12374$ac_includes_default
12375#include <$ac_header>
12376_ACEOF
12377rm -f conftest.$ac_objext
12378if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 12379 (eval $ac_compile) 2>conftest.er1
13b2be9c 12380 ac_status=$?
ab509236
L
12381 grep -v '^ *+' conftest.er1 >conftest.err
12382 rm -f conftest.er1
12383 cat conftest.err >&5
13b2be9c
DJ
12384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12385 (exit $ac_status); } &&
1ad12f97
NC
12386 { ac_try='test -z "$ac_c_werror_flag"
12387 || test ! -s conftest.err'
ab509236
L
12388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12389 (eval $ac_try) 2>&5
12390 ac_status=$?
12391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392 (exit $ac_status); }; } &&
12393 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
12394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12395 (eval $ac_try) 2>&5
12396 ac_status=$?
12397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12398 (exit $ac_status); }; }; then
12399 ac_header_compiler=yes
12400else
12401 echo "$as_me: failed program was:" >&5
12402sed 's/^/| /' conftest.$ac_ext >&5
12403
12404ac_header_compiler=no
12405fi
ab509236 12406rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
12407echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12408echo "${ECHO_T}$ac_header_compiler" >&6
12409
12410# Is the header present?
12411echo "$as_me:$LINENO: checking $ac_header presence" >&5
12412echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12413cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
12414/* confdefs.h. */
12415_ACEOF
12416cat confdefs.h >>conftest.$ac_ext
12417cat >>conftest.$ac_ext <<_ACEOF
12418/* end confdefs.h. */
12419#include <$ac_header>
12420_ACEOF
12421if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12422 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12423 ac_status=$?
12424 grep -v '^ *+' conftest.er1 >conftest.err
12425 rm -f conftest.er1
12426 cat conftest.err >&5
12427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428 (exit $ac_status); } >/dev/null; then
12429 if test -s conftest.err; then
12430 ac_cpp_err=$ac_c_preproc_warn_flag
ab509236 12431 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13b2be9c
DJ
12432 else
12433 ac_cpp_err=
12434 fi
9b2b7d69 12435else
13b2be9c
DJ
12436 ac_cpp_err=yes
12437fi
12438if test -z "$ac_cpp_err"; then
12439 ac_header_preproc=yes
12440else
12441 echo "$as_me: failed program was:" >&5
12442sed 's/^/| /' conftest.$ac_ext >&5
12443
12444 ac_header_preproc=no
12445fi
12446rm -f conftest.err conftest.$ac_ext
12447echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12448echo "${ECHO_T}$ac_header_preproc" >&6
12449
12450# So? What about this header?
ab509236
L
12451case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12452 yes:no: )
13b2be9c
DJ
12453 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12454echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ab509236
L
12455 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12456echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12457 ac_header_preproc=yes
13b2be9c 12458 ;;
ab509236 12459 no:yes:* )
13b2be9c
DJ
12460 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12461echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ab509236
L
12462 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12463echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12464 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12465echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12466 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12467echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13b2be9c
DJ
12468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12469echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ab509236
L
12470 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12471echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13b2be9c
DJ
12472 (
12473 cat <<\_ASBOX
ab509236
L
12474## ------------------------------------------ ##
12475## Report this to the AC_PACKAGE_NAME lists. ##
12476## ------------------------------------------ ##
13b2be9c
DJ
12477_ASBOX
12478 ) |
12479 sed "s/^/$as_me: WARNING: /" >&2
12480 ;;
12481esac
12482echo "$as_me:$LINENO: checking for $ac_header" >&5
12483echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12484if eval "test \"\${$as_ac_Header+set}\" = set"; then
12485 echo $ECHO_N "(cached) $ECHO_C" >&6
12486else
ab509236 12487 eval "$as_ac_Header=\$ac_header_preproc"
252b5132 12488fi
13b2be9c
DJ
12489echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12490echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12491
252b5132 12492fi
13b2be9c
DJ
12493if test `eval echo '${'$as_ac_Header'}'` = yes; then
12494 cat >>confdefs.h <<_ACEOF
12495#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12496_ACEOF
12497
252b5132 12498fi
13b2be9c 12499
252b5132
RH
12500done
12501
d6d788bd 12502
252b5132
RH
12503# Put this here so that autoconf's "cross-compiling" message doesn't confuse
12504# people who are not cross-compiling but are compiling cross-assemblers.
13b2be9c
DJ
12505echo "$as_me:$LINENO: checking whether compiling a cross-assembler" >&5
12506echo $ECHO_N "checking whether compiling a cross-assembler... $ECHO_C" >&6
252b5132
RH
12507if test "${host}" = "${target}"; then
12508 cross_gas=no
12509else
12510 cross_gas=yes
13b2be9c
DJ
12511
12512cat >>confdefs.h <<\_ACEOF
252b5132 12513#define CROSS_COMPILE 1
13b2be9c 12514_ACEOF
252b5132
RH
12515
12516fi
13b2be9c
DJ
12517echo "$as_me:$LINENO: result: $cross_gas" >&5
12518echo "${ECHO_T}$cross_gas" >&6
252b5132
RH
12519
12520# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12521# for constant arguments. Useless!
13b2be9c
DJ
12522echo "$as_me:$LINENO: checking for working alloca.h" >&5
12523echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
12524if test "${ac_cv_working_alloca_h+set}" = set; then
12525 echo $ECHO_N "(cached) $ECHO_C" >&6
12526else
12527 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
12528/* confdefs.h. */
12529_ACEOF
12530cat confdefs.h >>conftest.$ac_ext
12531cat >>conftest.$ac_ext <<_ACEOF
12532/* end confdefs.h. */
252b5132 12533#include <alloca.h>
13b2be9c
DJ
12534int
12535main ()
12536{
12537char *p = (char *) alloca (2 * sizeof (int));
12538 ;
12539 return 0;
12540}
12541_ACEOF
12542rm -f conftest.$ac_objext conftest$ac_exeext
12543if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 12544 (eval $ac_link) 2>conftest.er1
13b2be9c 12545 ac_status=$?
ab509236
L
12546 grep -v '^ *+' conftest.er1 >conftest.err
12547 rm -f conftest.er1
12548 cat conftest.err >&5
13b2be9c
DJ
12549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550 (exit $ac_status); } &&
1ad12f97
NC
12551 { ac_try='test -z "$ac_c_werror_flag"
12552 || test ! -s conftest.err'
ab509236
L
12553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12554 (eval $ac_try) 2>&5
12555 ac_status=$?
12556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557 (exit $ac_status); }; } &&
12558 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
12559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12560 (eval $ac_try) 2>&5
12561 ac_status=$?
12562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12563 (exit $ac_status); }; }; then
12564 ac_cv_working_alloca_h=yes
12565else
12566 echo "$as_me: failed program was:" >&5
12567sed 's/^/| /' conftest.$ac_ext >&5
12568
12569ac_cv_working_alloca_h=no
12570fi
ab509236
L
12571rm -f conftest.err conftest.$ac_objext \
12572 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
12573fi
12574echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12575echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
12576if test $ac_cv_working_alloca_h = yes; then
12577
12578cat >>confdefs.h <<\_ACEOF
252b5132 12579#define HAVE_ALLOCA_H 1
13b2be9c 12580_ACEOF
252b5132
RH
12581
12582fi
12583
13b2be9c
DJ
12584echo "$as_me:$LINENO: checking for alloca" >&5
12585echo $ECHO_N "checking for alloca... $ECHO_C" >&6
12586if test "${ac_cv_func_alloca_works+set}" = set; then
12587 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12588else
13b2be9c 12589 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
12590/* confdefs.h. */
12591_ACEOF
12592cat confdefs.h >>conftest.$ac_ext
12593cat >>conftest.$ac_ext <<_ACEOF
12594/* end confdefs.h. */
252b5132
RH
12595#ifdef __GNUC__
12596# define alloca __builtin_alloca
12597#else
12598# ifdef _MSC_VER
12599# include <malloc.h>
12600# define alloca _alloca
12601# else
12602# if HAVE_ALLOCA_H
12603# include <alloca.h>
12604# else
12605# ifdef _AIX
12606 #pragma alloca
12607# else
12608# ifndef alloca /* predefined by HP cc +Olibcalls */
12609char *alloca ();
12610# endif
12611# endif
12612# endif
12613# endif
12614#endif
12615
13b2be9c
DJ
12616int
12617main ()
12618{
12619char *p = (char *) alloca (1);
12620 ;
12621 return 0;
12622}
12623_ACEOF
12624rm -f conftest.$ac_objext conftest$ac_exeext
12625if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 12626 (eval $ac_link) 2>conftest.er1
13b2be9c 12627 ac_status=$?
ab509236
L
12628 grep -v '^ *+' conftest.er1 >conftest.err
12629 rm -f conftest.er1
12630 cat conftest.err >&5
13b2be9c
DJ
12631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12632 (exit $ac_status); } &&
1ad12f97
NC
12633 { ac_try='test -z "$ac_c_werror_flag"
12634 || test ! -s conftest.err'
ab509236
L
12635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12636 (eval $ac_try) 2>&5
12637 ac_status=$?
12638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639 (exit $ac_status); }; } &&
12640 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
12641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12642 (eval $ac_try) 2>&5
12643 ac_status=$?
12644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645 (exit $ac_status); }; }; then
252b5132
RH
12646 ac_cv_func_alloca_works=yes
12647else
13b2be9c
DJ
12648 echo "$as_me: failed program was:" >&5
12649sed 's/^/| /' conftest.$ac_ext >&5
12650
12651ac_cv_func_alloca_works=no
252b5132 12652fi
ab509236
L
12653rm -f conftest.err conftest.$ac_objext \
12654 conftest$ac_exeext conftest.$ac_ext
252b5132 12655fi
13b2be9c
DJ
12656echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12657echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
252b5132 12658
252b5132 12659if test $ac_cv_func_alloca_works = yes; then
9b2b7d69 12660
13b2be9c
DJ
12661cat >>confdefs.h <<\_ACEOF
12662#define HAVE_ALLOCA 1
12663_ACEOF
9b2b7d69 12664
13b2be9c 12665else
c8615825 12666 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13b2be9c
DJ
12667# that cause trouble. Some versions do not even contain alloca or
12668# contain a buggy version. If you still want to use their alloca,
12669# use ar to extract alloca.o from them instead of compiling alloca.c.
12670
12671ALLOCA=alloca.$ac_objext
12672
12673cat >>confdefs.h <<\_ACEOF
252b5132 12674#define C_ALLOCA 1
13b2be9c 12675_ACEOF
252b5132 12676
d6d788bd 12677
13b2be9c
DJ
12678echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12679echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
12680if test "${ac_cv_os_cray+set}" = set; then
12681 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12682else
13b2be9c 12683 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
12684/* confdefs.h. */
12685_ACEOF
12686cat confdefs.h >>conftest.$ac_ext
12687cat >>conftest.$ac_ext <<_ACEOF
12688/* end confdefs.h. */
252b5132
RH
12689#if defined(CRAY) && ! defined(CRAY2)
12690webecray
12691#else
12692wenotbecray
12693#endif
12694
13b2be9c 12695_ACEOF
252b5132 12696if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13b2be9c 12697 $EGREP "webecray" >/dev/null 2>&1; then
252b5132
RH
12698 ac_cv_os_cray=yes
12699else
252b5132
RH
12700 ac_cv_os_cray=no
12701fi
12702rm -f conftest*
12703
12704fi
13b2be9c
DJ
12705echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12706echo "${ECHO_T}$ac_cv_os_cray" >&6
252b5132 12707if test $ac_cv_os_cray = yes; then
13b2be9c
DJ
12708 for ac_func in _getb67 GETB67 getb67; do
12709 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12710echo "$as_me:$LINENO: checking for $ac_func" >&5
12711echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12712if eval "test \"\${$as_ac_var+set}\" = set"; then
12713 echo $ECHO_N "(cached) $ECHO_C" >&6
12714else
12715 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
12716/* confdefs.h. */
12717_ACEOF
12718cat confdefs.h >>conftest.$ac_ext
12719cat >>conftest.$ac_ext <<_ACEOF
12720/* end confdefs.h. */
ab509236
L
12721/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12723#define $ac_func innocuous_$ac_func
12724
252b5132 12725/* System header to define __stub macros and hopefully few prototypes,
13b2be9c
DJ
12726 which can conflict with char $ac_func (); below.
12727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12728 <limits.h> exists even on freestanding compilers. */
ab509236 12729
13b2be9c
DJ
12730#ifdef __STDC__
12731# include <limits.h>
12732#else
12733# include <assert.h>
12734#endif
ab509236
L
12735
12736#undef $ac_func
12737
252b5132 12738/* Override any gcc2 internal prototype to avoid an error. */
13b2be9c
DJ
12739#ifdef __cplusplus
12740extern "C"
12741{
12742#endif
252b5132 12743/* We use char because int might match the return type of a gcc2
13b2be9c
DJ
12744 builtin and then its argument prototype would still apply. */
12745char $ac_func ();
252b5132
RH
12746/* The GNU C library defines this for functions which it implements
12747 to always fail with ENOSYS. Some functions are actually named
12748 something starting with __ and the normal name is an alias. */
12749#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12750choke me
12751#else
13b2be9c
DJ
12752char (*f) () = $ac_func;
12753#endif
12754#ifdef __cplusplus
12755}
252b5132
RH
12756#endif
12757
13b2be9c
DJ
12758int
12759main ()
12760{
12761return f != $ac_func;
12762 ;
12763 return 0;
12764}
12765_ACEOF
12766rm -f conftest.$ac_objext conftest$ac_exeext
12767if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 12768 (eval $ac_link) 2>conftest.er1
13b2be9c 12769 ac_status=$?
ab509236
L
12770 grep -v '^ *+' conftest.er1 >conftest.err
12771 rm -f conftest.er1
12772 cat conftest.err >&5
13b2be9c
DJ
12773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774 (exit $ac_status); } &&
1ad12f97
NC
12775 { ac_try='test -z "$ac_c_werror_flag"
12776 || test ! -s conftest.err'
ab509236
L
12777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12778 (eval $ac_try) 2>&5
12779 ac_status=$?
12780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12781 (exit $ac_status); }; } &&
12782 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
12783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12784 (eval $ac_try) 2>&5
12785 ac_status=$?
12786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12787 (exit $ac_status); }; }; then
12788 eval "$as_ac_var=yes"
12789else
12790 echo "$as_me: failed program was:" >&5
12791sed 's/^/| /' conftest.$ac_ext >&5
12792
12793eval "$as_ac_var=no"
12794fi
ab509236
L
12795rm -f conftest.err conftest.$ac_objext \
12796 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
12797fi
12798echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12799echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12800if test `eval echo '${'$as_ac_var'}'` = yes; then
12801
12802cat >>confdefs.h <<_ACEOF
252b5132 12803#define CRAY_STACKSEG_END $ac_func
13b2be9c 12804_ACEOF
252b5132 12805
13b2be9c 12806 break
252b5132
RH
12807fi
12808
13b2be9c 12809 done
252b5132
RH
12810fi
12811
13b2be9c
DJ
12812echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
12813echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
12814if test "${ac_cv_c_stack_direction+set}" = set; then
12815 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
12816else
12817 if test "$cross_compiling" = yes; then
12818 ac_cv_c_stack_direction=0
12819else
13b2be9c 12820 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
12821/* confdefs.h. */
12822_ACEOF
12823cat confdefs.h >>conftest.$ac_ext
12824cat >>conftest.$ac_ext <<_ACEOF
12825/* end confdefs.h. */
12826int
252b5132
RH
12827find_stack_direction ()
12828{
12829 static char *addr = 0;
12830 auto char dummy;
12831 if (addr == 0)
12832 {
12833 addr = &dummy;
12834 return find_stack_direction ();
12835 }
12836 else
12837 return (&dummy > addr) ? 1 : -1;
12838}
13b2be9c
DJ
12839
12840int
252b5132
RH
12841main ()
12842{
13b2be9c 12843 exit (find_stack_direction () < 0);
252b5132 12844}
13b2be9c
DJ
12845_ACEOF
12846rm -f conftest$ac_exeext
12847if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12848 (eval $ac_link) 2>&5
12849 ac_status=$?
12850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12853 (eval $ac_try) 2>&5
12854 ac_status=$?
12855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856 (exit $ac_status); }; }; then
252b5132
RH
12857 ac_cv_c_stack_direction=1
12858else
13b2be9c
DJ
12859 echo "$as_me: program exited with status $ac_status" >&5
12860echo "$as_me: failed program was:" >&5
12861sed 's/^/| /' conftest.$ac_ext >&5
12862
12863( exit $ac_status )
12864ac_cv_c_stack_direction=-1
252b5132 12865fi
ab509236 12866rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 12867fi
252b5132 12868fi
13b2be9c
DJ
12869echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
12870echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
252b5132 12871
13b2be9c 12872cat >>confdefs.h <<_ACEOF
252b5132 12873#define STACK_DIRECTION $ac_cv_c_stack_direction
13b2be9c
DJ
12874_ACEOF
12875
252b5132
RH
12876
12877fi
12878
13b2be9c
DJ
12879echo "$as_me:$LINENO: checking for inline" >&5
12880echo $ECHO_N "checking for inline... $ECHO_C" >&6
12881if test "${ac_cv_c_inline+set}" = set; then
12882 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
12883else
12884 ac_cv_c_inline=no
12885for ac_kw in inline __inline__ __inline; do
13b2be9c 12886 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
12887/* confdefs.h. */
12888_ACEOF
12889cat confdefs.h >>conftest.$ac_ext
12890cat >>conftest.$ac_ext <<_ACEOF
12891/* end confdefs.h. */
12892#ifndef __cplusplus
12893typedef int foo_t;
12894static $ac_kw foo_t static_foo () {return 0; }
12895$ac_kw foo_t foo () {return 0; }
12896#endif
252b5132 12897
13b2be9c
DJ
12898_ACEOF
12899rm -f conftest.$ac_objext
12900if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 12901 (eval $ac_compile) 2>conftest.er1
13b2be9c 12902 ac_status=$?
ab509236
L
12903 grep -v '^ *+' conftest.er1 >conftest.err
12904 rm -f conftest.er1
12905 cat conftest.err >&5
13b2be9c
DJ
12906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12907 (exit $ac_status); } &&
1ad12f97
NC
12908 { ac_try='test -z "$ac_c_werror_flag"
12909 || test ! -s conftest.err'
ab509236
L
12910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12911 (eval $ac_try) 2>&5
12912 ac_status=$?
12913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914 (exit $ac_status); }; } &&
12915 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
12916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12917 (eval $ac_try) 2>&5
12918 ac_status=$?
12919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920 (exit $ac_status); }; }; then
252b5132
RH
12921 ac_cv_c_inline=$ac_kw; break
12922else
13b2be9c
DJ
12923 echo "$as_me: failed program was:" >&5
12924sed 's/^/| /' conftest.$ac_ext >&5
12925
252b5132 12926fi
ab509236 12927rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
12928done
12929
12930fi
13b2be9c
DJ
12931echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
12932echo "${ECHO_T}$ac_cv_c_inline" >&6
ab509236
L
12933
12934
13b2be9c 12935case $ac_cv_c_inline in
252b5132 12936 inline | yes) ;;
ab509236
L
12937 *)
12938 case $ac_cv_c_inline in
12939 no) ac_val=;;
12940 *) ac_val=$ac_cv_c_inline;;
12941 esac
12942 cat >>confdefs.h <<_ACEOF
12943#ifndef __cplusplus
12944#define inline $ac_val
12945#endif
13b2be9c 12946_ACEOF
ab509236 12947 ;;
252b5132
RH
12948esac
12949
6840198f 12950
d6d788bd 12951# VMS doesn't have unlink.
13b2be9c
DJ
12952
12953
252b5132
RH
12954for ac_func in unlink remove
12955do
13b2be9c
DJ
12956as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12957echo "$as_me:$LINENO: checking for $ac_func" >&5
12958echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12959if eval "test \"\${$as_ac_var+set}\" = set"; then
12960 echo $ECHO_N "(cached) $ECHO_C" >&6
12961else
12962 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
12963/* confdefs.h. */
12964_ACEOF
12965cat confdefs.h >>conftest.$ac_ext
12966cat >>conftest.$ac_ext <<_ACEOF
12967/* end confdefs.h. */
ab509236
L
12968/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12969 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12970#define $ac_func innocuous_$ac_func
12971
252b5132 12972/* System header to define __stub macros and hopefully few prototypes,
13b2be9c
DJ
12973 which can conflict with char $ac_func (); below.
12974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12975 <limits.h> exists even on freestanding compilers. */
ab509236 12976
13b2be9c
DJ
12977#ifdef __STDC__
12978# include <limits.h>
12979#else
12980# include <assert.h>
12981#endif
ab509236
L
12982
12983#undef $ac_func
12984
252b5132 12985/* Override any gcc2 internal prototype to avoid an error. */
13b2be9c
DJ
12986#ifdef __cplusplus
12987extern "C"
12988{
12989#endif
252b5132 12990/* We use char because int might match the return type of a gcc2
13b2be9c
DJ
12991 builtin and then its argument prototype would still apply. */
12992char $ac_func ();
252b5132
RH
12993/* The GNU C library defines this for functions which it implements
12994 to always fail with ENOSYS. Some functions are actually named
12995 something starting with __ and the normal name is an alias. */
12996#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12997choke me
12998#else
13b2be9c
DJ
12999char (*f) () = $ac_func;
13000#endif
13001#ifdef __cplusplus
13002}
252b5132
RH
13003#endif
13004
13b2be9c
DJ
13005int
13006main ()
13007{
13008return f != $ac_func;
13009 ;
13010 return 0;
13011}
13012_ACEOF
13013rm -f conftest.$ac_objext conftest$ac_exeext
13014if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 13015 (eval $ac_link) 2>conftest.er1
13b2be9c 13016 ac_status=$?
ab509236
L
13017 grep -v '^ *+' conftest.er1 >conftest.err
13018 rm -f conftest.er1
13019 cat conftest.err >&5
13b2be9c
DJ
13020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13021 (exit $ac_status); } &&
1ad12f97
NC
13022 { ac_try='test -z "$ac_c_werror_flag"
13023 || test ! -s conftest.err'
ab509236
L
13024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13025 (eval $ac_try) 2>&5
13026 ac_status=$?
13027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13028 (exit $ac_status); }; } &&
13029 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
13030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13031 (eval $ac_try) 2>&5
13032 ac_status=$?
13033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13034 (exit $ac_status); }; }; then
13035 eval "$as_ac_var=yes"
13036else
13037 echo "$as_me: failed program was:" >&5
13038sed 's/^/| /' conftest.$ac_ext >&5
13039
13040eval "$as_ac_var=no"
13041fi
ab509236
L
13042rm -f conftest.err conftest.$ac_objext \
13043 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
13044fi
13045echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13046echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13047if test `eval echo '${'$as_ac_var'}'` = yes; then
13048 cat >>confdefs.h <<_ACEOF
13049#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13050_ACEOF
252b5132 13051 break
252b5132
RH
13052fi
13053done
13054
6840198f 13055
d6d788bd 13056# Some systems don't have sbrk().
13b2be9c 13057
252b5132
RH
13058for ac_func in sbrk
13059do
13b2be9c
DJ
13060as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13061echo "$as_me:$LINENO: checking for $ac_func" >&5
13062echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13063if eval "test \"\${$as_ac_var+set}\" = set"; then
13064 echo $ECHO_N "(cached) $ECHO_C" >&6
13065else
13066 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
13067/* confdefs.h. */
13068_ACEOF
13069cat confdefs.h >>conftest.$ac_ext
13070cat >>conftest.$ac_ext <<_ACEOF
13071/* end confdefs.h. */
ab509236
L
13072/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13073 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13074#define $ac_func innocuous_$ac_func
13075
252b5132 13076/* System header to define __stub macros and hopefully few prototypes,
13b2be9c
DJ
13077 which can conflict with char $ac_func (); below.
13078 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13079 <limits.h> exists even on freestanding compilers. */
ab509236 13080
13b2be9c
DJ
13081#ifdef __STDC__
13082# include <limits.h>
13083#else
13084# include <assert.h>
13085#endif
ab509236
L
13086
13087#undef $ac_func
13088
252b5132 13089/* Override any gcc2 internal prototype to avoid an error. */
13b2be9c
DJ
13090#ifdef __cplusplus
13091extern "C"
13092{
13093#endif
252b5132 13094/* We use char because int might match the return type of a gcc2
13b2be9c
DJ
13095 builtin and then its argument prototype would still apply. */
13096char $ac_func ();
252b5132
RH
13097/* The GNU C library defines this for functions which it implements
13098 to always fail with ENOSYS. Some functions are actually named
13099 something starting with __ and the normal name is an alias. */
13100#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13101choke me
13102#else
13b2be9c
DJ
13103char (*f) () = $ac_func;
13104#endif
13105#ifdef __cplusplus
13106}
252b5132
RH
13107#endif
13108
13b2be9c
DJ
13109int
13110main ()
13111{
13112return f != $ac_func;
13113 ;
13114 return 0;
13115}
13116_ACEOF
13117rm -f conftest.$ac_objext conftest$ac_exeext
13118if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 13119 (eval $ac_link) 2>conftest.er1
13b2be9c 13120 ac_status=$?
ab509236
L
13121 grep -v '^ *+' conftest.er1 >conftest.err
13122 rm -f conftest.er1
13123 cat conftest.err >&5
13b2be9c
DJ
13124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13125 (exit $ac_status); } &&
1ad12f97
NC
13126 { ac_try='test -z "$ac_c_werror_flag"
13127 || test ! -s conftest.err'
ab509236
L
13128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13129 (eval $ac_try) 2>&5
13130 ac_status=$?
13131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13132 (exit $ac_status); }; } &&
13133 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
13134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13135 (eval $ac_try) 2>&5
13136 ac_status=$?
13137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13138 (exit $ac_status); }; }; then
13139 eval "$as_ac_var=yes"
13140else
13141 echo "$as_me: failed program was:" >&5
13142sed 's/^/| /' conftest.$ac_ext >&5
13143
13144eval "$as_ac_var=no"
13145fi
ab509236
L
13146rm -f conftest.err conftest.$ac_objext \
13147 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
13148fi
13149echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13150echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13151if test `eval echo '${'$as_ac_var'}'` = yes; then
13152 cat >>confdefs.h <<_ACEOF
13153#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13154_ACEOF
252b5132 13155
252b5132
RH
13156fi
13157done
13158
d6d788bd 13159
39bec121
TW
13160# do we need the math library?
13161case "${need_libm}" in
13b2be9c 13162yes)
39bec121 13163 LIBM=
f9c19112 13164case $host in
d70c5fc7 13165*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
d7040cdb 13166 # These system don't have libm, or don't need it
39bec121
TW
13167 ;;
13168*-ncr-sysv4.3*)
13b2be9c
DJ
13169 echo "$as_me:$LINENO: checking for _mwvalidcheckl in -lmw" >&5
13170echo $ECHO_N "checking for _mwvalidcheckl in -lmw... $ECHO_C" >&6
13171if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then
13172 echo $ECHO_N "(cached) $ECHO_C" >&6
39bec121 13173else
13b2be9c 13174 ac_check_lib_save_LIBS=$LIBS
39bec121 13175LIBS="-lmw $LIBS"
13b2be9c 13176cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
13177/* confdefs.h. */
13178_ACEOF
13179cat confdefs.h >>conftest.$ac_ext
13180cat >>conftest.$ac_ext <<_ACEOF
13181/* end confdefs.h. */
13182
39bec121 13183/* Override any gcc2 internal prototype to avoid an error. */
13b2be9c
DJ
13184#ifdef __cplusplus
13185extern "C"
13186#endif
39bec121 13187/* We use char because int might match the return type of a gcc2
13b2be9c
DJ
13188 builtin and then its argument prototype would still apply. */
13189char _mwvalidcheckl ();
13190int
13191main ()
13192{
13193_mwvalidcheckl ();
13194 ;
13195 return 0;
13196}
13197_ACEOF
13198rm -f conftest.$ac_objext conftest$ac_exeext
13199if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 13200 (eval $ac_link) 2>conftest.er1
13b2be9c 13201 ac_status=$?
ab509236
L
13202 grep -v '^ *+' conftest.er1 >conftest.err
13203 rm -f conftest.er1
13204 cat conftest.err >&5
13b2be9c
DJ
13205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206 (exit $ac_status); } &&
1ad12f97
NC
13207 { ac_try='test -z "$ac_c_werror_flag"
13208 || test ! -s conftest.err'
ab509236
L
13209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13210 (eval $ac_try) 2>&5
13211 ac_status=$?
13212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13213 (exit $ac_status); }; } &&
13214 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
13215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13216 (eval $ac_try) 2>&5
13217 ac_status=$?
13218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13219 (exit $ac_status); }; }; then
13220 ac_cv_lib_mw__mwvalidcheckl=yes
13221else
13222 echo "$as_me: failed program was:" >&5
13223sed 's/^/| /' conftest.$ac_ext >&5
13224
13225ac_cv_lib_mw__mwvalidcheckl=no
13226fi
ab509236
L
13227rm -f conftest.err conftest.$ac_objext \
13228 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
13229LIBS=$ac_check_lib_save_LIBS
13230fi
13231echo "$as_me:$LINENO: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
13232echo "${ECHO_T}$ac_cv_lib_mw__mwvalidcheckl" >&6
13233if test $ac_cv_lib_mw__mwvalidcheckl = yes; then
39bec121 13234 LIBM="-lmw"
39bec121
TW
13235fi
13236
d7040cdb
SE
13237 echo "$as_me:$LINENO: checking for cos in -lm" >&5
13238echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6
13239if test "${ac_cv_lib_m_cos+set}" = set; then
13b2be9c 13240 echo $ECHO_N "(cached) $ECHO_C" >&6
39bec121 13241else
13b2be9c 13242 ac_check_lib_save_LIBS=$LIBS
39bec121 13243LIBS="-lm $LIBS"
13b2be9c 13244cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
13245/* confdefs.h. */
13246_ACEOF
13247cat confdefs.h >>conftest.$ac_ext
13248cat >>conftest.$ac_ext <<_ACEOF
13249/* end confdefs.h. */
39bec121 13250
d7040cdb
SE
13251/* Override any gcc2 internal prototype to avoid an error. */
13252#ifdef __cplusplus
13253extern "C"
13254#endif
13255/* We use char because int might match the return type of a gcc2
13256 builtin and then its argument prototype would still apply. */
13257char cos ();
13b2be9c
DJ
13258int
13259main ()
13260{
d7040cdb 13261cos ();
13b2be9c
DJ
13262 ;
13263 return 0;
13264}
13265_ACEOF
13266rm -f conftest.$ac_objext conftest$ac_exeext
13267if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 13268 (eval $ac_link) 2>conftest.er1
13b2be9c 13269 ac_status=$?
ab509236
L
13270 grep -v '^ *+' conftest.er1 >conftest.err
13271 rm -f conftest.er1
13272 cat conftest.err >&5
13b2be9c
DJ
13273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274 (exit $ac_status); } &&
1ad12f97
NC
13275 { ac_try='test -z "$ac_c_werror_flag"
13276 || test ! -s conftest.err'
ab509236
L
13277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13278 (eval $ac_try) 2>&5
13279 ac_status=$?
13280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13281 (exit $ac_status); }; } &&
13282 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
13283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13284 (eval $ac_try) 2>&5
13285 ac_status=$?
13286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13287 (exit $ac_status); }; }; then
d7040cdb 13288 ac_cv_lib_m_cos=yes
13b2be9c
DJ
13289else
13290 echo "$as_me: failed program was:" >&5
13291sed 's/^/| /' conftest.$ac_ext >&5
13292
d7040cdb 13293ac_cv_lib_m_cos=no
13b2be9c 13294fi
ab509236
L
13295rm -f conftest.err conftest.$ac_objext \
13296 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
13297LIBS=$ac_check_lib_save_LIBS
13298fi
d7040cdb
SE
13299echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
13300echo "${ECHO_T}$ac_cv_lib_m_cos" >&6
13301if test $ac_cv_lib_m_cos = yes; then
39bec121 13302 LIBM="$LIBM -lm"
39bec121
TW
13303fi
13304
13305 ;;
13306*)
d7040cdb
SE
13307 echo "$as_me:$LINENO: checking for cos in -lm" >&5
13308echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6
13309if test "${ac_cv_lib_m_cos+set}" = set; then
13b2be9c 13310 echo $ECHO_N "(cached) $ECHO_C" >&6
39bec121 13311else
13b2be9c 13312 ac_check_lib_save_LIBS=$LIBS
39bec121 13313LIBS="-lm $LIBS"
13b2be9c 13314cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
13315/* confdefs.h. */
13316_ACEOF
13317cat confdefs.h >>conftest.$ac_ext
13318cat >>conftest.$ac_ext <<_ACEOF
13319/* end confdefs.h. */
39bec121 13320
d7040cdb
SE
13321/* Override any gcc2 internal prototype to avoid an error. */
13322#ifdef __cplusplus
13323extern "C"
13324#endif
13325/* We use char because int might match the return type of a gcc2
13326 builtin and then its argument prototype would still apply. */
13327char cos ();
13b2be9c
DJ
13328int
13329main ()
13330{
d7040cdb 13331cos ();
13b2be9c
DJ
13332 ;
13333 return 0;
13334}
13335_ACEOF
13336rm -f conftest.$ac_objext conftest$ac_exeext
13337if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 13338 (eval $ac_link) 2>conftest.er1
13b2be9c 13339 ac_status=$?
ab509236
L
13340 grep -v '^ *+' conftest.er1 >conftest.err
13341 rm -f conftest.er1
13342 cat conftest.err >&5
13b2be9c
DJ
13343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13344 (exit $ac_status); } &&
1ad12f97
NC
13345 { ac_try='test -z "$ac_c_werror_flag"
13346 || test ! -s conftest.err'
ab509236
L
13347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13348 (eval $ac_try) 2>&5
13349 ac_status=$?
13350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13351 (exit $ac_status); }; } &&
13352 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
13353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13354 (eval $ac_try) 2>&5
13355 ac_status=$?
13356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13357 (exit $ac_status); }; }; then
d7040cdb 13358 ac_cv_lib_m_cos=yes
13b2be9c
DJ
13359else
13360 echo "$as_me: failed program was:" >&5
13361sed 's/^/| /' conftest.$ac_ext >&5
13362
d7040cdb 13363ac_cv_lib_m_cos=no
13b2be9c 13364fi
ab509236
L
13365rm -f conftest.err conftest.$ac_objext \
13366 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
13367LIBS=$ac_check_lib_save_LIBS
13368fi
d7040cdb
SE
13369echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
13370echo "${ECHO_T}$ac_cv_lib_m_cos" >&6
13371if test $ac_cv_lib_m_cos = yes; then
39bec121 13372 LIBM="-lm"
39bec121
TW
13373fi
13374
13375 ;;
13376esac
13377
13b2be9c 13378
d7040cdb 13379
39bec121
TW
13380 ;;
13381esac
13382
252b5132
RH
13383# Some non-ANSI preprocessors botch requoting inside strings. That's bad
13384# enough, but on some of those systems, the assert macro relies on requoting
13385# working properly!
13b2be9c
DJ
13386echo "$as_me:$LINENO: checking for working assert macro" >&5
13387echo $ECHO_N "checking for working assert macro... $ECHO_C" >&6
13388if test "${gas_cv_assert_ok+set}" = set; then
13389 echo $ECHO_N "(cached) $ECHO_C" >&6
13390else
13391 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
13392/* confdefs.h. */
13393_ACEOF
13394cat confdefs.h >>conftest.$ac_ext
13395cat >>conftest.$ac_ext <<_ACEOF
13396/* end confdefs.h. */
252b5132
RH
13397#include <assert.h>
13398#include <stdio.h>
13b2be9c
DJ
13399int
13400main ()
13401{
252b5132
RH
13402
13403/* check for requoting problems */
13404static int a, b, c, d;
13405static char *s;
13406assert (!strcmp(s, "foo bar baz quux"));
13407/* check for newline handling */
13408assert (a == b
13409 || c == d);
13410
13b2be9c
DJ
13411 ;
13412 return 0;
13413}
13414_ACEOF
13415rm -f conftest.$ac_objext conftest$ac_exeext
13416if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 13417 (eval $ac_link) 2>conftest.er1
13b2be9c 13418 ac_status=$?
ab509236
L
13419 grep -v '^ *+' conftest.er1 >conftest.err
13420 rm -f conftest.er1
13421 cat conftest.err >&5
13b2be9c
DJ
13422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13423 (exit $ac_status); } &&
1ad12f97
NC
13424 { ac_try='test -z "$ac_c_werror_flag"
13425 || test ! -s conftest.err'
ab509236
L
13426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13427 (eval $ac_try) 2>&5
13428 ac_status=$?
13429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13430 (exit $ac_status); }; } &&
13431 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
13432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13433 (eval $ac_try) 2>&5
13434 ac_status=$?
13435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13436 (exit $ac_status); }; }; then
252b5132
RH
13437 gas_cv_assert_ok=yes
13438else
13b2be9c
DJ
13439 echo "$as_me: failed program was:" >&5
13440sed 's/^/| /' conftest.$ac_ext >&5
13441
13442gas_cv_assert_ok=no
252b5132 13443fi
ab509236
L
13444rm -f conftest.err conftest.$ac_objext \
13445 conftest$ac_exeext conftest.$ac_ext
252b5132 13446fi
13b2be9c
DJ
13447echo "$as_me:$LINENO: result: $gas_cv_assert_ok" >&5
13448echo "${ECHO_T}$gas_cv_assert_ok" >&6
13449test $gas_cv_assert_ok = yes ||
13450cat >>confdefs.h <<\_ACEOF
252b5132 13451#define BROKEN_ASSERT 1
13b2be9c 13452_ACEOF
252b5132 13453
d6d788bd
L
13454
13455
252b5132
RH
13456# On some systems, the system header files may not declare malloc, realloc,
13457# and free. There are places where gas needs these functions to have been
13458# declared -- such as when taking their addresses.
13459gas_test_headers="
13460#ifdef HAVE_MEMORY_H
13461#include <memory.h>
13462#endif
13463#ifdef HAVE_STRING_H
13464#include <string.h>
13465#else
13466#ifdef HAVE_STRINGS_H
13467#include <strings.h>
13468#endif
13469#endif
13470#ifdef HAVE_STDLIB_H
13471#include <stdlib.h>
13472#endif
13473#ifdef HAVE_UNISTD_H
13474#include <unistd.h>
13475#endif
13476"
13477
e8a38df5
AL
13478# Does errno.h declare errno, or do we have to add a separate declaration
13479# for it?
13480
13481echo "$as_me:$LINENO: checking whether declaration is required for errno" >&5
13482echo $ECHO_N "checking whether declaration is required for errno... $ECHO_C" >&6
13483if test "${gas_cv_decl_needed_errno+set}" = set; then
13484 echo $ECHO_N "(cached) $ECHO_C" >&6
13485else
13486 cat >conftest.$ac_ext <<_ACEOF
13487/* confdefs.h. */
13488_ACEOF
13489cat confdefs.h >>conftest.$ac_ext
13490cat >>conftest.$ac_ext <<_ACEOF
13491/* end confdefs.h. */
13492
13493#ifdef HAVE_ERRNO_H
13494#include <errno.h>
13495#endif
13496
13497int
13498main ()
13499{
13500
13501typedef int f;
13502f x;
13503x = (f) errno;
13504
13505 ;
13506 return 0;
13507}
13508_ACEOF
13509rm -f conftest.$ac_objext conftest$ac_exeext
13510if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13511 (eval $ac_link) 2>conftest.er1
13512 ac_status=$?
13513 grep -v '^ *+' conftest.er1 >conftest.err
13514 rm -f conftest.er1
13515 cat conftest.err >&5
13516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517 (exit $ac_status); } &&
13518 { ac_try='test -z "$ac_c_werror_flag"
13519 || test ! -s conftest.err'
13520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13521 (eval $ac_try) 2>&5
13522 ac_status=$?
13523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524 (exit $ac_status); }; } &&
13525 { ac_try='test -s conftest$ac_exeext'
13526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13527 (eval $ac_try) 2>&5
13528 ac_status=$?
13529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530 (exit $ac_status); }; }; then
13531 gas_cv_decl_needed_errno=no
13532else
13533 echo "$as_me: failed program was:" >&5
13534sed 's/^/| /' conftest.$ac_ext >&5
13535
13536gas_cv_decl_needed_errno=yes
13537fi
13538rm -f conftest.err conftest.$ac_objext \
13539 conftest$ac_exeext conftest.$ac_ext
13540fi
13541echo "$as_me:$LINENO: result: $gas_cv_decl_needed_errno" >&5
13542echo "${ECHO_T}$gas_cv_decl_needed_errno" >&6
13543if test $gas_cv_decl_needed_errno = yes; then
13544
13545cat >>confdefs.h <<\_ACEOF
13546#define NEED_DECLARATION_ERRNO 1
13547_ACEOF
13548
13549fi
13550
13551
56f36663
NC
13552echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
13553echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
13554if test "${gas_cv_decl_getopt_unistd_h+set}" = set; then
13555 echo $ECHO_N "(cached) $ECHO_C" >&6
13556else
13557 cat >conftest.$ac_ext <<_ACEOF
13558/* confdefs.h. */
13559_ACEOF
13560cat confdefs.h >>conftest.$ac_ext
13561cat >>conftest.$ac_ext <<_ACEOF
13562/* end confdefs.h. */
13563#include <unistd.h>
13564int
13565main ()
13566{
13567extern int getopt (int, char *const*, const char *);
13568 ;
13569 return 0;
13570}
13571_ACEOF
13572rm -f conftest.$ac_objext
13573if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13574 (eval $ac_compile) 2>conftest.er1
13575 ac_status=$?
13576 grep -v '^ *+' conftest.er1 >conftest.err
13577 rm -f conftest.er1
13578 cat conftest.err >&5
13579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580 (exit $ac_status); } &&
13581 { ac_try='test -z "$ac_c_werror_flag"
13582 || test ! -s conftest.err'
13583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13584 (eval $ac_try) 2>&5
13585 ac_status=$?
13586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13587 (exit $ac_status); }; } &&
13588 { ac_try='test -s conftest.$ac_objext'
13589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13590 (eval $ac_try) 2>&5
13591 ac_status=$?
13592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13593 (exit $ac_status); }; }; then
13594 gas_cv_decl_getopt_unistd_h=yes
13595else
13596 echo "$as_me: failed program was:" >&5
13597sed 's/^/| /' conftest.$ac_ext >&5
13598
13599gas_cv_decl_getopt_unistd_h=no
13600fi
13601rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13602fi
13603
13604echo "$as_me:$LINENO: result: $gas_cv_decl_getopt_unistd_h" >&5
13605echo "${ECHO_T}$gas_cv_decl_getopt_unistd_h" >&6
13606if test $gas_cv_decl_getopt_unistd_h = yes; then
13607
13608cat >>confdefs.h <<\_ACEOF
13609#define HAVE_DECL_GETOPT 1
13610_ACEOF
13611
13612fi
13613
e8a38df5
AL
13614
13615echo "$as_me:$LINENO: checking whether declaration is required for environ" >&5
13616echo $ECHO_N "checking whether declaration is required for environ... $ECHO_C" >&6
13617if test "${gas_cv_decl_needed_environ+set}" = set; then
13b2be9c
DJ
13618 echo $ECHO_N "(cached) $ECHO_C" >&6
13619else
13620 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
13621/* confdefs.h. */
13622_ACEOF
13623cat confdefs.h >>conftest.$ac_ext
13624cat >>conftest.$ac_ext <<_ACEOF
13625/* end confdefs.h. */
252b5132 13626$gas_test_headers
13b2be9c
DJ
13627int
13628main ()
13629{
252b5132 13630
e8a38df5 13631typedef char **f;
252b5132 13632f x;
e8a38df5 13633x = (f) environ;
252b5132 13634
13b2be9c
DJ
13635 ;
13636 return 0;
13637}
13638_ACEOF
13639rm -f conftest.$ac_objext conftest$ac_exeext
13640if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 13641 (eval $ac_link) 2>conftest.er1
13b2be9c 13642 ac_status=$?
ab509236
L
13643 grep -v '^ *+' conftest.er1 >conftest.err
13644 rm -f conftest.er1
13645 cat conftest.err >&5
13b2be9c
DJ
13646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13647 (exit $ac_status); } &&
1ad12f97
NC
13648 { ac_try='test -z "$ac_c_werror_flag"
13649 || test ! -s conftest.err'
ab509236
L
13650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13651 (eval $ac_try) 2>&5
13652 ac_status=$?
13653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13654 (exit $ac_status); }; } &&
13655 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
13656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13657 (eval $ac_try) 2>&5
13658 ac_status=$?
13659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13660 (exit $ac_status); }; }; then
e8a38df5 13661 gas_cv_decl_needed_environ=no
252b5132 13662else
13b2be9c
DJ
13663 echo "$as_me: failed program was:" >&5
13664sed 's/^/| /' conftest.$ac_ext >&5
13665
e8a38df5 13666gas_cv_decl_needed_environ=yes
252b5132 13667fi
ab509236
L
13668rm -f conftest.err conftest.$ac_objext \
13669 conftest$ac_exeext conftest.$ac_ext
252b5132 13670fi
e8a38df5
AL
13671echo "$as_me:$LINENO: result: $gas_cv_decl_needed_environ" >&5
13672echo "${ECHO_T}$gas_cv_decl_needed_environ" >&6
13673if test $gas_cv_decl_needed_environ = yes; then
13b2be9c
DJ
13674
13675cat >>confdefs.h <<\_ACEOF
e8a38df5 13676#define NEED_DECLARATION_ENVIRON 1
13b2be9c
DJ
13677_ACEOF
13678
13679fi
13680
13681
e8a38df5
AL
13682echo "$as_me:$LINENO: checking whether declaration is required for ffs" >&5
13683echo $ECHO_N "checking whether declaration is required for ffs... $ECHO_C" >&6
13684if test "${gas_cv_decl_needed_ffs+set}" = set; then
13b2be9c
DJ
13685 echo $ECHO_N "(cached) $ECHO_C" >&6
13686else
13687 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
13688/* confdefs.h. */
13689_ACEOF
13690cat confdefs.h >>conftest.$ac_ext
13691cat >>conftest.$ac_ext <<_ACEOF
13692/* end confdefs.h. */
13693$gas_test_headers
13694int
13695main ()
13696{
13697
e8a38df5 13698typedef int (*f)(int);
13b2be9c 13699f x;
e8a38df5 13700x = (f) ffs;
13b2be9c
DJ
13701
13702 ;
13703 return 0;
13704}
13705_ACEOF
13706rm -f conftest.$ac_objext conftest$ac_exeext
13707if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 13708 (eval $ac_link) 2>conftest.er1
13b2be9c 13709 ac_status=$?
ab509236
L
13710 grep -v '^ *+' conftest.er1 >conftest.err
13711 rm -f conftest.er1
13712 cat conftest.err >&5
13b2be9c
DJ
13713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13714 (exit $ac_status); } &&
1ad12f97
NC
13715 { ac_try='test -z "$ac_c_werror_flag"
13716 || test ! -s conftest.err'
ab509236
L
13717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13718 (eval $ac_try) 2>&5
13719 ac_status=$?
13720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13721 (exit $ac_status); }; } &&
13722 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
13723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13724 (eval $ac_try) 2>&5
13725 ac_status=$?
13726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13727 (exit $ac_status); }; }; then
e8a38df5 13728 gas_cv_decl_needed_ffs=no
13b2be9c
DJ
13729else
13730 echo "$as_me: failed program was:" >&5
13731sed 's/^/| /' conftest.$ac_ext >&5
13732
e8a38df5 13733gas_cv_decl_needed_ffs=yes
13b2be9c 13734fi
ab509236
L
13735rm -f conftest.err conftest.$ac_objext \
13736 conftest$ac_exeext conftest.$ac_ext
13b2be9c 13737fi
e8a38df5
AL
13738echo "$as_me:$LINENO: result: $gas_cv_decl_needed_ffs" >&5
13739echo "${ECHO_T}$gas_cv_decl_needed_ffs" >&6
13740if test $gas_cv_decl_needed_ffs = yes; then
13b2be9c
DJ
13741
13742cat >>confdefs.h <<\_ACEOF
e8a38df5 13743#define NEED_DECLARATION_FFS 1
13b2be9c
DJ
13744_ACEOF
13745
13746fi
13747
13748
13749echo "$as_me:$LINENO: checking whether declaration is required for free" >&5
13750echo $ECHO_N "checking whether declaration is required for free... $ECHO_C" >&6
13751if test "${gas_cv_decl_needed_free+set}" = set; then
13752 echo $ECHO_N "(cached) $ECHO_C" >&6
13753else
13754 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
13755/* confdefs.h. */
13756_ACEOF
13757cat confdefs.h >>conftest.$ac_ext
13758cat >>conftest.$ac_ext <<_ACEOF
13759/* end confdefs.h. */
13760$gas_test_headers
13761int
13762main ()
13763{
13764
13765typedef void (*f)();
13766f x;
13767x = (f) free;
13768
13769 ;
13770 return 0;
13771}
13772_ACEOF
13773rm -f conftest.$ac_objext conftest$ac_exeext
13774if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 13775 (eval $ac_link) 2>conftest.er1
13b2be9c 13776 ac_status=$?
ab509236
L
13777 grep -v '^ *+' conftest.er1 >conftest.err
13778 rm -f conftest.er1
13779 cat conftest.err >&5
13b2be9c
DJ
13780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13781 (exit $ac_status); } &&
1ad12f97
NC
13782 { ac_try='test -z "$ac_c_werror_flag"
13783 || test ! -s conftest.err'
ab509236
L
13784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13785 (eval $ac_try) 2>&5
13786 ac_status=$?
13787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13788 (exit $ac_status); }; } &&
13789 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
13790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13791 (eval $ac_try) 2>&5
13792 ac_status=$?
13793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13794 (exit $ac_status); }; }; then
13795 gas_cv_decl_needed_free=no
13796else
13797 echo "$as_me: failed program was:" >&5
13798sed 's/^/| /' conftest.$ac_ext >&5
13799
13800gas_cv_decl_needed_free=yes
13801fi
ab509236
L
13802rm -f conftest.err conftest.$ac_objext \
13803 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
13804fi
13805echo "$as_me:$LINENO: result: $gas_cv_decl_needed_free" >&5
13806echo "${ECHO_T}$gas_cv_decl_needed_free" >&6
13807if test $gas_cv_decl_needed_free = yes; then
13808
13809cat >>confdefs.h <<\_ACEOF
13810#define NEED_DECLARATION_FREE 1
13811_ACEOF
13812
13813fi
13814
13815
e8a38df5
AL
13816echo "$as_me:$LINENO: checking whether declaration is required for malloc" >&5
13817echo $ECHO_N "checking whether declaration is required for malloc... $ECHO_C" >&6
13818if test "${gas_cv_decl_needed_malloc+set}" = set; then
13b2be9c
DJ
13819 echo $ECHO_N "(cached) $ECHO_C" >&6
13820else
13821 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
13822/* confdefs.h. */
13823_ACEOF
13824cat confdefs.h >>conftest.$ac_ext
13825cat >>conftest.$ac_ext <<_ACEOF
13826/* end confdefs.h. */
13827$gas_test_headers
13828int
13829main ()
13830{
13831
13832typedef char *(*f)();
13833f x;
e8a38df5 13834x = (f) malloc;
13b2be9c
DJ
13835
13836 ;
13837 return 0;
13838}
13839_ACEOF
13840rm -f conftest.$ac_objext conftest$ac_exeext
13841if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 13842 (eval $ac_link) 2>conftest.er1
13b2be9c 13843 ac_status=$?
ab509236
L
13844 grep -v '^ *+' conftest.er1 >conftest.err
13845 rm -f conftest.er1
13846 cat conftest.err >&5
13b2be9c
DJ
13847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13848 (exit $ac_status); } &&
1ad12f97
NC
13849 { ac_try='test -z "$ac_c_werror_flag"
13850 || test ! -s conftest.err'
ab509236
L
13851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13852 (eval $ac_try) 2>&5
13853 ac_status=$?
13854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13855 (exit $ac_status); }; } &&
13856 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
13857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13858 (eval $ac_try) 2>&5
13859 ac_status=$?
13860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13861 (exit $ac_status); }; }; then
e8a38df5 13862 gas_cv_decl_needed_malloc=no
13b2be9c
DJ
13863else
13864 echo "$as_me: failed program was:" >&5
13865sed 's/^/| /' conftest.$ac_ext >&5
13866
e8a38df5 13867gas_cv_decl_needed_malloc=yes
13b2be9c 13868fi
ab509236
L
13869rm -f conftest.err conftest.$ac_objext \
13870 conftest$ac_exeext conftest.$ac_ext
13b2be9c 13871fi
e8a38df5
AL
13872echo "$as_me:$LINENO: result: $gas_cv_decl_needed_malloc" >&5
13873echo "${ECHO_T}$gas_cv_decl_needed_malloc" >&6
13874if test $gas_cv_decl_needed_malloc = yes; then
13b2be9c
DJ
13875
13876cat >>confdefs.h <<\_ACEOF
e8a38df5 13877#define NEED_DECLARATION_MALLOC 1
13b2be9c
DJ
13878_ACEOF
13879
13880fi
13881
13882
e8a38df5
AL
13883echo "$as_me:$LINENO: checking whether declaration is required for sbrk" >&5
13884echo $ECHO_N "checking whether declaration is required for sbrk... $ECHO_C" >&6
13885if test "${gas_cv_decl_needed_sbrk+set}" = set; then
13b2be9c
DJ
13886 echo $ECHO_N "(cached) $ECHO_C" >&6
13887else
13888 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
13889/* confdefs.h. */
13890_ACEOF
13891cat confdefs.h >>conftest.$ac_ext
13892cat >>conftest.$ac_ext <<_ACEOF
13893/* end confdefs.h. */
13894$gas_test_headers
13895int
13896main ()
13897{
13898
e8a38df5 13899typedef char *(*f)();
13b2be9c 13900f x;
e8a38df5 13901x = (f) sbrk;
13b2be9c
DJ
13902
13903 ;
13904 return 0;
13905}
13906_ACEOF
13907rm -f conftest.$ac_objext conftest$ac_exeext
13908if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 13909 (eval $ac_link) 2>conftest.er1
13b2be9c 13910 ac_status=$?
ab509236
L
13911 grep -v '^ *+' conftest.er1 >conftest.err
13912 rm -f conftest.er1
13913 cat conftest.err >&5
13b2be9c
DJ
13914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13915 (exit $ac_status); } &&
1ad12f97
NC
13916 { ac_try='test -z "$ac_c_werror_flag"
13917 || test ! -s conftest.err'
ab509236
L
13918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13919 (eval $ac_try) 2>&5
13920 ac_status=$?
13921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13922 (exit $ac_status); }; } &&
13923 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
13924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13925 (eval $ac_try) 2>&5
13926 ac_status=$?
13927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13928 (exit $ac_status); }; }; then
e8a38df5 13929 gas_cv_decl_needed_sbrk=no
13b2be9c
DJ
13930else
13931 echo "$as_me: failed program was:" >&5
13932sed 's/^/| /' conftest.$ac_ext >&5
13933
e8a38df5 13934gas_cv_decl_needed_sbrk=yes
13b2be9c 13935fi
ab509236
L
13936rm -f conftest.err conftest.$ac_objext \
13937 conftest$ac_exeext conftest.$ac_ext
13b2be9c 13938fi
e8a38df5
AL
13939echo "$as_me:$LINENO: result: $gas_cv_decl_needed_sbrk" >&5
13940echo "${ECHO_T}$gas_cv_decl_needed_sbrk" >&6
13941if test $gas_cv_decl_needed_sbrk = yes; then
13b2be9c
DJ
13942
13943cat >>confdefs.h <<\_ACEOF
e8a38df5 13944#define NEED_DECLARATION_SBRK 1
13b2be9c
DJ
13945_ACEOF
13946
13947fi
13948
13949
e8a38df5
AL
13950echo "$as_me:$LINENO: checking whether declaration is required for strstr" >&5
13951echo $ECHO_N "checking whether declaration is required for strstr... $ECHO_C" >&6
13952if test "${gas_cv_decl_needed_strstr+set}" = set; then
13b2be9c
DJ
13953 echo $ECHO_N "(cached) $ECHO_C" >&6
13954else
13955 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
13956/* confdefs.h. */
13957_ACEOF
13958cat confdefs.h >>conftest.$ac_ext
13959cat >>conftest.$ac_ext <<_ACEOF
13960/* end confdefs.h. */
e8a38df5 13961$gas_test_headers
13b2be9c
DJ
13962int
13963main ()
13964{
13965
e8a38df5 13966typedef char *(*f)();
13b2be9c 13967f x;
e8a38df5 13968x = (f) strstr;
13b2be9c
DJ
13969
13970 ;
13971 return 0;
13972}
13973_ACEOF
13974rm -f conftest.$ac_objext conftest$ac_exeext
13975if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 13976 (eval $ac_link) 2>conftest.er1
13b2be9c 13977 ac_status=$?
ab509236
L
13978 grep -v '^ *+' conftest.er1 >conftest.err
13979 rm -f conftest.er1
13980 cat conftest.err >&5
13b2be9c
DJ
13981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13982 (exit $ac_status); } &&
1ad12f97
NC
13983 { ac_try='test -z "$ac_c_werror_flag"
13984 || test ! -s conftest.err'
ab509236
L
13985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13986 (eval $ac_try) 2>&5
13987 ac_status=$?
13988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989 (exit $ac_status); }; } &&
13990 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
13991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13992 (eval $ac_try) 2>&5
13993 ac_status=$?
13994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13995 (exit $ac_status); }; }; then
e8a38df5 13996 gas_cv_decl_needed_strstr=no
13b2be9c
DJ
13997else
13998 echo "$as_me: failed program was:" >&5
13999sed 's/^/| /' conftest.$ac_ext >&5
14000
e8a38df5 14001gas_cv_decl_needed_strstr=yes
13b2be9c 14002fi
ab509236
L
14003rm -f conftest.err conftest.$ac_objext \
14004 conftest$ac_exeext conftest.$ac_ext
13b2be9c 14005fi
e8a38df5
AL
14006echo "$as_me:$LINENO: result: $gas_cv_decl_needed_strstr" >&5
14007echo "${ECHO_T}$gas_cv_decl_needed_strstr" >&6
14008if test $gas_cv_decl_needed_strstr = yes; then
13b2be9c
DJ
14009
14010cat >>confdefs.h <<\_ACEOF
e8a38df5 14011#define NEED_DECLARATION_STRSTR 1
13b2be9c
DJ
14012_ACEOF
14013
14014fi
14015
14016
6d74f28b
EB
14017echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
14018echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
14019if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
14020 echo $ECHO_N "(cached) $ECHO_C" >&6
14021else
14022 cat >conftest.$ac_ext <<_ACEOF
14023/* confdefs.h. */
14024_ACEOF
14025cat confdefs.h >>conftest.$ac_ext
14026cat >>conftest.$ac_ext <<_ACEOF
14027/* end confdefs.h. */
14028$ac_includes_default
14029int
14030main ()
14031{
14032#ifndef vsnprintf
14033 char *p = (char *) vsnprintf;
14034#endif
14035
14036 ;
14037 return 0;
14038}
14039_ACEOF
14040rm -f conftest.$ac_objext
14041if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14042 (eval $ac_compile) 2>conftest.er1
14043 ac_status=$?
14044 grep -v '^ *+' conftest.er1 >conftest.err
14045 rm -f conftest.er1
14046 cat conftest.err >&5
14047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14048 (exit $ac_status); } &&
14049 { ac_try='test -z "$ac_c_werror_flag"
14050 || test ! -s conftest.err'
14051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14052 (eval $ac_try) 2>&5
14053 ac_status=$?
14054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055 (exit $ac_status); }; } &&
14056 { ac_try='test -s conftest.$ac_objext'
14057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14058 (eval $ac_try) 2>&5
14059 ac_status=$?
14060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14061 (exit $ac_status); }; }; then
14062 ac_cv_have_decl_vsnprintf=yes
14063else
14064 echo "$as_me: failed program was:" >&5
14065sed 's/^/| /' conftest.$ac_ext >&5
14066
14067ac_cv_have_decl_vsnprintf=no
14068fi
14069rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14070fi
14071echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
14072echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
14073if test $ac_cv_have_decl_vsnprintf = yes; then
14074
14075cat >>confdefs.h <<_ACEOF
14076#define HAVE_DECL_VSNPRINTF 1
14077_ACEOF
14078
14079
14080else
14081 cat >>confdefs.h <<_ACEOF
14082#define HAVE_DECL_VSNPRINTF 0
14083_ACEOF
14084
14085
14086fi
14087
14088
14089
13b2be9c 14090
c973bc5c
NC
14091case "${host}" in
14092*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
14093
14094cat >>confdefs.h <<\_ACEOF
14095#define USE_BINARY_FOPEN 1
14096_ACEOF
14097 ;;
14098esac
14099
14100
13b2be9c 14101
108a6f8e
CD
14102
14103
14104
14105
13b2be9c
DJ
14106 ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
14107
14108 ac_config_commands="$ac_config_commands default"
14109
14110
14111cat >confcache <<\_ACEOF
14112# This file is a shell script that caches the results of configure
14113# tests run on this system so they can be shared between configure
14114# scripts and configure runs, see configure's option --config-cache.
14115# It is not useful on other systems. If it contains results you don't
14116# want to keep, you may remove or edit it.
14117#
14118# config.status only pays attention to the cache file if you give it
14119# the --recheck option to rerun configure.
14120#
14121# `ac_cv_env_foo' variables (set or unset) will be overridden when
14122# loading this file, other *unset* `ac_cv_foo' will be assigned the
14123# following values.
14124
14125_ACEOF
14126
14127# The following way of writing the cache mishandles newlines in values,
14128# but we know of no workaround that is simple, portable, and efficient.
14129# So, don't put newlines in cache variables' values.
14130# Ultrix sh set writes to stderr and can't be redirected directly,
14131# and sets the high bit in the cache file unless we assign to the vars.
14132{
14133 (set) 2>&1 |
14134 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14135 *ac_space=\ *)
14136 # `set' does not quote correctly, so add quotes (double-quote
14137 # substitution turns \\\\ into \\, and sed turns \\ into \).
14138 sed -n \
ab509236
L
14139 "s/'/'\\\\''/g;
14140 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13b2be9c
DJ
14141 ;;
14142 *)
14143 # `set' quotes correctly as required by POSIX, so do not add quotes.
14144 sed -n \
ab509236 14145 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13b2be9c
DJ
14146 ;;
14147 esac;
14148} |
14149 sed '
14150 t clear
14151 : clear
14152 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14153 t end
14154 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14155 : end' >>confcache
14156if diff $cache_file confcache >/dev/null 2>&1; then :; else
14157 if test -w $cache_file; then
14158 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
14159 cat confcache >$cache_file
14160 else
14161 echo "not updating unwritable cache $cache_file"
14162 fi
14163fi
14164rm -f confcache
14165
14166test "x$prefix" = xNONE && prefix=$ac_default_prefix
14167# Let make expand exec_prefix.
14168test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14169
14170# VPATH may cause trouble with some makes, so we remove $(srcdir),
14171# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14172# trailing colons and then remove the whole line if VPATH becomes empty
14173# (actually we leave an empty line to preserve line numbers).
14174if test "x$srcdir" = x.; then
ab509236 14175 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13b2be9c
DJ
14176s/:*\$(srcdir):*/:/;
14177s/:*\${srcdir}:*/:/;
14178s/:*@srcdir@:*/:/;
ab509236 14179s/^\([^=]*=[ ]*\):*/\1/;
13b2be9c 14180s/:*$//;
ab509236 14181s/^[^=]*=[ ]*$//;
13b2be9c
DJ
14182}'
14183fi
14184
14185DEFS=-DHAVE_CONFIG_H
14186
14187ac_libobjs=
14188ac_ltlibobjs=
14189for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14190 # 1. Remove the extension, and $U if already installed.
14191 ac_i=`echo "$ac_i" |
ab509236 14192 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
13b2be9c
DJ
14193 # 2. Add them.
14194 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
14195 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
14196done
14197LIBOBJS=$ac_libobjs
14198
14199LTLIBOBJS=$ac_ltlibobjs
14200
14201
14202if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14203 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
14204Usually this means the macro was only invoked conditionally." >&5
14205echo "$as_me: error: conditional \"AMDEP\" was never defined.
14206Usually this means the macro was only invoked conditionally." >&2;}
14207 { (exit 1); exit 1; }; }
14208fi
14209if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14210 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
14211Usually this means the macro was only invoked conditionally." >&5
14212echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
14213Usually this means the macro was only invoked conditionally." >&2;}
14214 { (exit 1); exit 1; }; }
14215fi
14216if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14217 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
14218Usually this means the macro was only invoked conditionally." >&5
14219echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
14220Usually this means the macro was only invoked conditionally." >&2;}
14221 { (exit 1); exit 1; }; }
14222fi
d5fbea21
DJ
14223if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
14224 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
14225Usually this means the macro was only invoked conditionally." >&5
14226echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
14227Usually this means the macro was only invoked conditionally." >&2;}
14228 { (exit 1); exit 1; }; }
14229fi
13b2be9c
DJ
14230
14231: ${CONFIG_STATUS=./config.status}
14232ac_clean_files_save=$ac_clean_files
14233ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14234{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14235echo "$as_me: creating $CONFIG_STATUS" >&6;}
14236cat >$CONFIG_STATUS <<_ACEOF
14237#! $SHELL
14238# Generated by $as_me.
14239# Run this file to recreate the current configuration.
14240# Compiler output produced by configure, useful for debugging
14241# configure, is in config.log if it exists.
14242
14243debug=false
14244ac_cs_recheck=false
14245ac_cs_silent=false
14246SHELL=\${CONFIG_SHELL-$SHELL}
14247_ACEOF
14248
14249cat >>$CONFIG_STATUS <<\_ACEOF
14250## --------------------- ##
14251## M4sh Initialization. ##
14252## --------------------- ##
14253
14254# Be Bourne compatible
14255if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14256 emulate sh
14257 NULLCMD=:
14258 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14259 # is contrary to our usage. Disable this feature.
14260 alias -g '${1+"$@"}'='"$@"'
14261elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
14262 set -o posix
14263fi
ab509236 14264DUALCASE=1; export DUALCASE # for MKS sh
13b2be9c
DJ
14265
14266# Support unset when possible.
ab509236 14267if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13b2be9c
DJ
14268 as_unset=unset
14269else
14270 as_unset=false
14271fi
14272
14273
14274# Work around bugs in pre-3.0 UWIN ksh.
14275$as_unset ENV MAIL MAILPATH
14276PS1='$ '
14277PS2='> '
14278PS4='+ '
14279
14280# NLS nuisances.
14281for as_var in \
14282 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14283 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14284 LC_TELEPHONE LC_TIME
14285do
ab509236 14286 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13b2be9c
DJ
14287 eval $as_var=C; export $as_var
14288 else
14289 $as_unset $as_var
14290 fi
14291done
14292
14293# Required to use basename.
14294if expr a : '\(a\)' >/dev/null 2>&1; then
14295 as_expr=expr
14296else
14297 as_expr=false
14298fi
14299
14300if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
14301 as_basename=basename
14302else
14303 as_basename=false
14304fi
14305
14306
14307# Name of the executable.
14308as_me=`$as_basename "$0" ||
14309$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14310 X"$0" : 'X\(//\)$' \| \
14311 X"$0" : 'X\(/\)$' \| \
14312 . : '\(.\)' 2>/dev/null ||
14313echo X/"$0" |
14314 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14315 /^X\/\(\/\/\)$/{ s//\1/; q; }
14316 /^X\/\(\/\).*/{ s//\1/; q; }
14317 s/.*/./; q'`
14318
14319
14320# PATH needs CR, and LINENO needs CR and PATH.
14321# Avoid depending upon Character Ranges.
14322as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14323as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14324as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14325as_cr_digits='0123456789'
14326as_cr_alnum=$as_cr_Letters$as_cr_digits
14327
14328# The user is always right.
14329if test "${PATH_SEPARATOR+set}" != set; then
14330 echo "#! /bin/sh" >conf$$.sh
14331 echo "exit 0" >>conf$$.sh
14332 chmod +x conf$$.sh
14333 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14334 PATH_SEPARATOR=';'
14335 else
14336 PATH_SEPARATOR=:
14337 fi
14338 rm -f conf$$.sh
14339fi
14340
14341
14342 as_lineno_1=$LINENO
14343 as_lineno_2=$LINENO
14344 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14345 test "x$as_lineno_1" != "x$as_lineno_2" &&
14346 test "x$as_lineno_3" = "x$as_lineno_2" || {
14347 # Find who we are. Look in the path if we contain no path at all
14348 # relative or not.
14349 case $0 in
14350 *[\\/]* ) as_myself=$0 ;;
14351 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14352for as_dir in $PATH
14353do
14354 IFS=$as_save_IFS
14355 test -z "$as_dir" && as_dir=.
14356 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14357done
252b5132 14358
13b2be9c
DJ
14359 ;;
14360 esac
14361 # We did not find ourselves, most probably we were run as `sh COMMAND'
14362 # in which case we are not to be found in the path.
14363 if test "x$as_myself" = x; then
14364 as_myself=$0
14365 fi
14366 if test ! -f "$as_myself"; then
14367 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
14368echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
14369 { (exit 1); exit 1; }; }
14370 fi
14371 case $CONFIG_SHELL in
14372 '')
14373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14374for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
14375do
14376 IFS=$as_save_IFS
14377 test -z "$as_dir" && as_dir=.
14378 for as_base in sh bash ksh sh5; do
14379 case $as_dir in
14380 /*)
14381 if ("$as_dir/$as_base" -c '
14382 as_lineno_1=$LINENO
14383 as_lineno_2=$LINENO
14384 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14385 test "x$as_lineno_1" != "x$as_lineno_2" &&
14386 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
14387 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
14388 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
14389 CONFIG_SHELL=$as_dir/$as_base
14390 export CONFIG_SHELL
14391 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
14392 fi;;
14393 esac
14394 done
14395done
14396;;
14397 esac
252b5132 14398
13b2be9c
DJ
14399 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14400 # uniformly replaced by the line number. The first 'sed' inserts a
14401 # line-number line before each line; the second 'sed' does the real
14402 # work. The second script uses 'N' to pair each line-number line
14403 # with the numbered line, and appends trailing '-' during
14404 # substitution so that $LINENO is not a special case at line end.
14405 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14406 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
14407 sed '=' <$as_myself |
14408 sed '
14409 N
14410 s,$,-,
14411 : loop
14412 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
14413 t loop
14414 s,-$,,
14415 s,^['$as_cr_digits']*\n,,
14416 ' >$as_me.lineno &&
14417 chmod +x $as_me.lineno ||
14418 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
14419echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
14420 { (exit 1); exit 1; }; }
14421
14422 # Don't try to exec as it changes $[0], causing all sort of problems
14423 # (the dirname of $[0] is not the place where we might find the
14424 # original and so on. Autoconf is especially sensible to this).
14425 . ./$as_me.lineno
14426 # Exit status is that of the last command.
14427 exit
14428}
d6d788bd 14429
252b5132 14430
13b2be9c
DJ
14431case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
14432 *c*,-n*) ECHO_N= ECHO_C='
14433' ECHO_T=' ' ;;
14434 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
14435 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
14436esac
252b5132 14437
13b2be9c
DJ
14438if expr a : '\(a\)' >/dev/null 2>&1; then
14439 as_expr=expr
252b5132 14440else
13b2be9c 14441 as_expr=false
252b5132 14442fi
252b5132 14443
13b2be9c
DJ
14444rm -f conf$$ conf$$.exe conf$$.file
14445echo >conf$$.file
14446if ln -s conf$$.file conf$$ 2>/dev/null; then
14447 # We could just check for DJGPP; but this test a) works b) is more generic
14448 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
14449 if test -f conf$$.exe; then
14450 # Don't use ln at all; we don't have any links
14451 as_ln_s='cp -p'
14452 else
14453 as_ln_s='ln -s'
14454 fi
14455elif ln conf$$.file conf$$ 2>/dev/null; then
14456 as_ln_s=ln
14457else
14458 as_ln_s='cp -p'
252b5132 14459fi
13b2be9c 14460rm -f conf$$ conf$$.exe conf$$.file
252b5132 14461
13b2be9c
DJ
14462if mkdir -p . 2>/dev/null; then
14463 as_mkdir_p=:
252b5132 14464else
ab509236 14465 test -d ./-p && rmdir ./-p
13b2be9c
DJ
14466 as_mkdir_p=false
14467fi
252b5132 14468
13b2be9c 14469as_executable_p="test -f"
252b5132 14470
13b2be9c 14471# Sed expression to map a string onto a valid CPP name.
ab509236 14472as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
252b5132 14473
13b2be9c 14474# Sed expression to map a string onto a valid variable name.
ab509236 14475as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
252b5132 14476
d6d788bd 14477
13b2be9c
DJ
14478# IFS
14479# We need space, tab and new line, in precisely that order.
14480as_nl='
14481'
14482IFS=" $as_nl"
252b5132 14483
13b2be9c
DJ
14484# CDPATH.
14485$as_unset CDPATH
252b5132 14486
13b2be9c 14487exec 6>&1
252b5132 14488
13b2be9c
DJ
14489# Open the log real soon, to keep \$[0] and so on meaningful, and to
14490# report actual input values of CONFIG_FILES etc. instead of their
14491# values after options handling. Logging --version etc. is OK.
14492exec 5>>config.log
14493{
14494 echo
14495 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14496## Running $as_me. ##
14497_ASBOX
14498} >&5
14499cat >&5 <<_CSEOF
252b5132 14500
13b2be9c 14501This file was extended by $as_me, which was
ab509236 14502generated by GNU Autoconf 2.59. Invocation command line was
d6d788bd 14503
13b2be9c
DJ
14504 CONFIG_FILES = $CONFIG_FILES
14505 CONFIG_HEADERS = $CONFIG_HEADERS
14506 CONFIG_LINKS = $CONFIG_LINKS
14507 CONFIG_COMMANDS = $CONFIG_COMMANDS
14508 $ $0 $@
252b5132 14509
13b2be9c
DJ
14510_CSEOF
14511echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
14512echo >&5
14513_ACEOF
252b5132 14514
13b2be9c
DJ
14515# Files that config.status was made for.
14516if test -n "$ac_config_files"; then
14517 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
252b5132 14518fi
13b2be9c
DJ
14519
14520if test -n "$ac_config_headers"; then
14521 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
252b5132 14522fi
252b5132 14523
13b2be9c
DJ
14524if test -n "$ac_config_links"; then
14525 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
252b5132
RH
14526fi
14527
13b2be9c
DJ
14528if test -n "$ac_config_commands"; then
14529 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14530fi
d6d788bd 14531
13b2be9c 14532cat >>$CONFIG_STATUS <<\_ACEOF
252b5132 14533
13b2be9c
DJ
14534ac_cs_usage="\
14535\`$as_me' instantiates files from templates according to the
14536current configuration.
252b5132 14537
13b2be9c 14538Usage: $0 [OPTIONS] [FILE]...
252b5132 14539
13b2be9c
DJ
14540 -h, --help print this help, then exit
14541 -V, --version print version number, then exit
14542 -q, --quiet do not print progress messages
14543 -d, --debug don't remove temporary files
14544 --recheck update $as_me by reconfiguring in the same conditions
14545 --file=FILE[:TEMPLATE]
ab509236 14546 instantiate the configuration file FILE
13b2be9c 14547 --header=FILE[:TEMPLATE]
ab509236 14548 instantiate the configuration header FILE
252b5132 14549
13b2be9c
DJ
14550Configuration files:
14551$config_files
252b5132 14552
13b2be9c
DJ
14553Configuration headers:
14554$config_headers
252b5132 14555
13b2be9c
DJ
14556Configuration commands:
14557$config_commands
252b5132 14558
13b2be9c
DJ
14559Report bugs to <bug-autoconf@gnu.org>."
14560_ACEOF
d6d788bd 14561
13b2be9c
DJ
14562cat >>$CONFIG_STATUS <<_ACEOF
14563ac_cs_version="\\
14564config.status
ab509236 14565configured by $0, generated by GNU Autoconf 2.59,
13b2be9c 14566 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
d6d788bd 14567
ab509236 14568Copyright (C) 2003 Free Software Foundation, Inc.
13b2be9c
DJ
14569This config.status script is free software; the Free Software Foundation
14570gives unlimited permission to copy, distribute and modify it."
14571srcdir=$srcdir
14572INSTALL="$INSTALL"
14573_ACEOF
d6d788bd 14574
13b2be9c
DJ
14575cat >>$CONFIG_STATUS <<\_ACEOF
14576# If no file are specified by the user, then we need to provide default
14577# value. By we need to know if files were specified by the user.
14578ac_need_defaults=:
14579while test $# != 0
14580do
14581 case $1 in
14582 --*=*)
14583 ac_option=`expr "x$1" : 'x\([^=]*\)='`
14584 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
14585 ac_shift=:
c8615825 14586 ;;
13b2be9c
DJ
14587 -*)
14588 ac_option=$1
14589 ac_optarg=$2
14590 ac_shift=shift
c8615825 14591 ;;
13b2be9c
DJ
14592 *) # This is not an option, so the user has probably given explicit
14593 # arguments.
14594 ac_option=$1
14595 ac_need_defaults=false;;
14596 esac
252b5132 14597
13b2be9c
DJ
14598 case $ac_option in
14599 # Handling of the options.
14600_ACEOF
14601cat >>$CONFIG_STATUS <<\_ACEOF
14602 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14603 ac_cs_recheck=: ;;
14604 --version | --vers* | -V )
14605 echo "$ac_cs_version"; exit 0 ;;
14606 --he | --h)
14607 # Conflict between --help and --header
14608 { { echo "$as_me:$LINENO: error: ambiguous option: $1
14609Try \`$0 --help' for more information." >&5
14610echo "$as_me: error: ambiguous option: $1
14611Try \`$0 --help' for more information." >&2;}
14612 { (exit 1); exit 1; }; };;
14613 --help | --hel | -h )
14614 echo "$ac_cs_usage"; exit 0 ;;
14615 --debug | --d* | -d )
14616 debug=: ;;
14617 --file | --fil | --fi | --f )
14618 $ac_shift
14619 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14620 ac_need_defaults=false;;
14621 --header | --heade | --head | --hea )
14622 $ac_shift
14623 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14624 ac_need_defaults=false;;
14625 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14626 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14627 ac_cs_silent=: ;;
c8615825 14628
13b2be9c
DJ
14629 # This is an error.
14630 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
14631Try \`$0 --help' for more information." >&5
14632echo "$as_me: error: unrecognized option: $1
14633Try \`$0 --help' for more information." >&2;}
14634 { (exit 1); exit 1; }; } ;;
252b5132 14635
13b2be9c 14636 *) ac_config_targets="$ac_config_targets $1" ;;
252b5132 14637
13b2be9c
DJ
14638 esac
14639 shift
14640done
252b5132 14641
13b2be9c 14642ac_configure_extra_args=
d6d788bd 14643
13b2be9c
DJ
14644if $ac_cs_silent; then
14645 exec 6>/dev/null
14646 ac_configure_extra_args="$ac_configure_extra_args --silent"
14647fi
9b2b7d69 14648
13b2be9c
DJ
14649_ACEOF
14650cat >>$CONFIG_STATUS <<_ACEOF
14651if \$ac_cs_recheck; then
14652 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14653 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14654fi
14655
14656_ACEOF
14657
14658cat >>$CONFIG_STATUS <<_ACEOF
9b2b7d69 14659#
13b2be9c 14660# INIT-COMMANDS section.
9b2b7d69
MM
14661#
14662
13b2be9c 14663AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
14664
14665
14666# The HP-UX ksh and POSIX shell print the target directory to stdout
14667# if CDPATH is set.
14668(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14669
14670sed_quote_subst='$sed_quote_subst'
14671double_quote_subst='$double_quote_subst'
14672delay_variable_subst='$delay_variable_subst'
14673macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14674macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14675enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14676enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14677pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14678enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14679host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14680host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14681host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14682build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14683build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14684build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14685SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14686Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14687GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14688EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14689FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14690LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14691NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14692LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14693max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14694ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14695exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14696lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14697lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14698lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14699reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14700reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14701deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14702file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14703AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14704AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14705STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14706RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14707old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14708old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14709old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14710CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14711CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14712compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14713GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14714lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14715lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14716lt_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"`'
14717objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14718SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14719ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14720MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14721lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14722lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14723lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14724lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14725lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14726need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14727libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14728shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14729extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14730archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14731enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14732export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14733whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14734compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14735old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14736old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14737archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14738archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14739module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14740module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14741with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14742allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14743no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14744hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14745hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14746hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14747hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14748hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14749hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14750hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14751hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14752inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14753link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14754fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14755always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14756export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14757exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14758include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14759prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14760file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14761variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14762need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14763need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14764version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14765runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14766shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14767shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14768libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14769library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14770soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14771postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14772postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14773finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14774finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14775hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14776sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14777sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14778hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14779enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14780enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14781enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14782old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14783striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14784
14785LTCC='$LTCC'
14786LTCFLAGS='$LTCFLAGS'
14787compiler='$compiler_DEFAULT'
14788
14789# Quote evaled strings.
14790for var in SED \
14791GREP \
14792EGREP \
14793FGREP \
14794LD \
14795NM \
14796LN_S \
14797lt_SP2NL \
14798lt_NL2SP \
14799reload_flag \
14800deplibs_check_method \
14801file_magic_cmd \
14802AR \
14803AR_FLAGS \
14804STRIP \
14805RANLIB \
14806CC \
14807CFLAGS \
14808compiler \
14809lt_cv_sys_global_symbol_pipe \
14810lt_cv_sys_global_symbol_to_cdecl \
14811lt_cv_sys_global_symbol_to_c_name_address \
14812SHELL \
14813ECHO \
14814lt_prog_compiler_no_builtin_flag \
14815lt_prog_compiler_wl \
14816lt_prog_compiler_pic \
14817lt_prog_compiler_static \
14818lt_cv_prog_compiler_c_o \
14819need_locks \
14820shrext_cmds \
14821export_dynamic_flag_spec \
14822whole_archive_flag_spec \
14823compiler_needs_object \
14824with_gnu_ld \
14825allow_undefined_flag \
14826no_undefined_flag \
14827hardcode_libdir_flag_spec \
14828hardcode_libdir_flag_spec_ld \
14829hardcode_libdir_separator \
14830fix_srcfile_path \
14831exclude_expsyms \
14832include_expsyms \
14833file_list_spec \
14834variables_saved_for_relink \
14835libname_spec \
14836library_names_spec \
14837soname_spec \
14838finish_eval \
14839old_striplib \
14840striplib; do
14841 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14842 *[\\\\\\\`\\"\\\$]*)
14843 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14844 ;;
14845 *)
14846 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14847 ;;
14848 esac
14849done
14850
14851# Double-quote double-evaled strings.
14852for var in reload_cmds \
14853old_postinstall_cmds \
14854old_postuninstall_cmds \
14855old_archive_cmds \
14856extract_expsyms_cmds \
14857old_archive_from_new_cmds \
14858old_archive_from_expsyms_cmds \
14859archive_cmds \
14860archive_expsym_cmds \
14861module_cmds \
14862module_expsym_cmds \
14863export_symbols_cmds \
14864prelink_cmds \
14865postinstall_cmds \
14866postuninstall_cmds \
14867finish_cmds \
14868sys_lib_search_path_spec \
14869sys_lib_dlsearch_path_spec; do
14870 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14871 *[\\\\\\\`\\"\\\$]*)
14872 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14873 ;;
14874 *)
14875 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14876 ;;
14877 esac
14878done
14879
14880# Fix-up fallback echo if it was mangled by the above quoting rules.
14881case \$lt_ECHO in
14882*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14883 ;;
14884esac
14885
14886ac_aux_dir='$ac_aux_dir'
14887xsi_shell='$xsi_shell'
14888lt_shell_append='$lt_shell_append'
14889
14890# See if we are running on zsh, and set the options which allow our
14891# commands through without removal of \ escapes INIT.
14892if test -n "\${ZSH_VERSION+set}" ; then
14893 setopt NO_GLOB_SUBST
14894fi
14895
14896
14897 PACKAGE='$PACKAGE'
14898 VERSION='$VERSION'
14899 TIMESTAMP='$TIMESTAMP'
14900 RM='$RM'
14901 ofile='$ofile'
14902
14903
14904
20e95c23
DJ
14905# Capture the value of obsolete ALL_LINGUAS because we need it to compute
14906 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
14907 # from automake.
14908 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14909 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14910 LINGUAS="${LINGUAS-%UNSET%}"
14911
13b2be9c
DJ
14912target_cpu_type=${target_cpu_type}
14913 cgen_cpu_prefix=${cgen_cpu_prefix}
14914 obj_format=${obj_format}
14915 te_file=${te_file}
14916
14917_ACEOF
14918
14919
14920
14921cat >>$CONFIG_STATUS <<\_ACEOF
14922for ac_config_target in $ac_config_targets
9b2b7d69 14923do
13b2be9c
DJ
14924 case "$ac_config_target" in
14925 # Handling of arguments.
14926 "gdb.ini" ) CONFIG_FILES="$CONFIG_FILES gdb.ini:gdbinit.in" ;;
14927 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
14928 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14929 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14930 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
14931 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
d7040cdb 14932 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20e95c23 14933 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13b2be9c
DJ
14934 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
14935 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
14936 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14937echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14938 { (exit 1); exit 1; }; };;
9b2b7d69
MM
14939 esac
14940done
14941
13b2be9c
DJ
14942# If the user did not use the arguments to specify the items to instantiate,
14943# then the envvar interface is used. Set only those that are not.
14944# We use the long form for the default assignment because of an extremely
14945# bizarre bug on SunOS 4.1.3.
14946if $ac_need_defaults; then
14947 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14948 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14949 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14950fi
14951
14952# Have a temporary directory for convenience. Make it in the build tree
14953# simply because there is no reason to put it here, and in addition,
14954# creating and moving files from /tmp can sometimes cause problems.
14955# Create a temporary directory, and hook for its removal unless debugging.
14956$debug ||
14957{
14958 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14959 trap '{ (exit 1); exit 1; }' 1 2 13 15
14960}
9b2b7d69 14961
13b2be9c 14962# Create a (secure) tmp directory for tmp files.
9b2b7d69 14963
13b2be9c
DJ
14964{
14965 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
14966 test -n "$tmp" && test -d "$tmp"
14967} ||
14968{
14969 tmp=./confstat$$-$RANDOM
14970 (umask 077 && mkdir $tmp)
14971} ||
14972{
14973 echo "$me: cannot create a temporary directory in ." >&2
14974 { (exit 1); exit 1; }
14975}
9b2b7d69 14976
13b2be9c
DJ
14977_ACEOF
14978
14979cat >>$CONFIG_STATUS <<_ACEOF
14980
14981#
14982# CONFIG_FILES section.
14983#
14984
14985# No need to generate the scripts if there are no CONFIG_FILES.
14986# This happens for instance when ./config.status config.h
14987if test -n "\$CONFIG_FILES"; then
14988 # Protect against being on the right side of a sed subst in config.status.
14989 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
14990 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
14991s,@SHELL@,$SHELL,;t t
14992s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14993s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14994s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14995s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14996s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14997s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
14998s,@exec_prefix@,$exec_prefix,;t t
14999s,@prefix@,$prefix,;t t
15000s,@program_transform_name@,$program_transform_name,;t t
15001s,@bindir@,$bindir,;t t
15002s,@sbindir@,$sbindir,;t t
15003s,@libexecdir@,$libexecdir,;t t
15004s,@datadir@,$datadir,;t t
15005s,@sysconfdir@,$sysconfdir,;t t
15006s,@sharedstatedir@,$sharedstatedir,;t t
15007s,@localstatedir@,$localstatedir,;t t
15008s,@libdir@,$libdir,;t t
15009s,@includedir@,$includedir,;t t
15010s,@oldincludedir@,$oldincludedir,;t t
15011s,@infodir@,$infodir,;t t
15012s,@mandir@,$mandir,;t t
15013s,@build_alias@,$build_alias,;t t
15014s,@host_alias@,$host_alias,;t t
15015s,@target_alias@,$target_alias,;t t
15016s,@DEFS@,$DEFS,;t t
15017s,@ECHO_C@,$ECHO_C,;t t
15018s,@ECHO_N@,$ECHO_N,;t t
15019s,@ECHO_T@,$ECHO_T,;t t
15020s,@LIBS@,$LIBS,;t t
15021s,@build@,$build,;t t
15022s,@build_cpu@,$build_cpu,;t t
15023s,@build_vendor@,$build_vendor,;t t
15024s,@build_os@,$build_os,;t t
15025s,@host@,$host,;t t
15026s,@host_cpu@,$host_cpu,;t t
15027s,@host_vendor@,$host_vendor,;t t
15028s,@host_os@,$host_os,;t t
15029s,@target@,$target,;t t
15030s,@target_cpu@,$target_cpu,;t t
15031s,@target_vendor@,$target_vendor,;t t
15032s,@target_os@,$target_os,;t t
15033s,@CC@,$CC,;t t
15034s,@CFLAGS@,$CFLAGS,;t t
15035s,@LDFLAGS@,$LDFLAGS,;t t
15036s,@CPPFLAGS@,$CPPFLAGS,;t t
15037s,@ac_ct_CC@,$ac_ct_CC,;t t
15038s,@EXEEXT@,$EXEEXT,;t t
15039s,@OBJEXT@,$OBJEXT,;t t
15040s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
15041s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
15042s,@INSTALL_DATA@,$INSTALL_DATA,;t t
15043s,@CYGPATH_W@,$CYGPATH_W,;t t
15044s,@PACKAGE@,$PACKAGE,;t t
15045s,@VERSION@,$VERSION,;t t
15046s,@ACLOCAL@,$ACLOCAL,;t t
15047s,@AUTOCONF@,$AUTOCONF,;t t
15048s,@AUTOMAKE@,$AUTOMAKE,;t t
15049s,@AUTOHEADER@,$AUTOHEADER,;t t
15050s,@MAKEINFO@,$MAKEINFO,;t t
13b2be9c
DJ
15051s,@install_sh@,$install_sh,;t t
15052s,@STRIP@,$STRIP,;t t
15053s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
15054s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
ab509236 15055s,@mkdir_p@,$mkdir_p,;t t
13b2be9c
DJ
15056s,@AWK@,$AWK,;t t
15057s,@SET_MAKE@,$SET_MAKE,;t t
15058s,@am__leading_dot@,$am__leading_dot,;t t
8ea2b00f
AM
15059s,@AMTAR@,$AMTAR,;t t
15060s,@am__tar@,$am__tar,;t t
15061s,@am__untar@,$am__untar,;t t
13b2be9c
DJ
15062s,@DEPDIR@,$DEPDIR,;t t
15063s,@am__include@,$am__include,;t t
15064s,@am__quote@,$am__quote,;t t
15065s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
15066s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
15067s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
15068s,@CCDEPMODE@,$CCDEPMODE,;t t
15069s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
15070s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
7357c5b6
AM
15071s,@CPP@,$CPP,;t t
15072s,@EGREP@,$EGREP,;t t
d7040cdb
SE
15073s,@LIBTOOL@,$LIBTOOL,;t t
15074s,@SED@,$SED,;t t
d7040cdb
SE
15075s,@FGREP@,$FGREP,;t t
15076s,@GREP@,$GREP,;t t
15077s,@LD@,$LD,;t t
15078s,@DUMPBIN@,$DUMPBIN,;t t
15079s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
15080s,@NM@,$NM,;t t
13b2be9c 15081s,@LN_S@,$LN_S,;t t
d7040cdb
SE
15082s,@AR@,$AR,;t t
15083s,@ac_ct_AR@,$ac_ct_AR,;t t
13b2be9c
DJ
15084s,@RANLIB@,$RANLIB,;t t
15085s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
d7040cdb 15086s,@lt_ECHO@,$lt_ECHO,;t t
13b2be9c 15087s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
9e9b66a9 15088s,@NO_WERROR@,$NO_WERROR,;t t
13b2be9c
DJ
15089s,@GDBINIT@,$GDBINIT,;t t
15090s,@cgen_cpu_prefix@,$cgen_cpu_prefix,;t t
15091s,@extra_objects@,$extra_objects,;t t
15092s,@target_cpu_type@,$target_cpu_type,;t t
15093s,@obj_format@,$obj_format,;t t
15094s,@te_file@,$te_file,;t t
15095s,@install_tooldir@,$install_tooldir,;t t
15096s,@atof@,$atof,;t t
13b2be9c 15097s,@OPCODES_LIB@,$OPCODES_LIB,;t t
13b2be9c
DJ
15098s,@YACC@,$YACC,;t t
15099s,@LEX@,$LEX,;t t
15100s,@LEXLIB@,$LEXLIB,;t t
15101s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
13b2be9c 15102s,@USE_NLS@,$USE_NLS,;t t
20e95c23
DJ
15103s,@LIBINTL@,$LIBINTL,;t t
15104s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
15105s,@INCINTL@,$INCINTL,;t t
13b2be9c 15106s,@XGETTEXT@,$XGETTEXT,;t t
20e95c23
DJ
15107s,@GMSGFMT@,$GMSGFMT,;t t
15108s,@POSUB@,$POSUB,;t t
13b2be9c 15109s,@CATALOGS@,$CATALOGS,;t t
13b2be9c 15110s,@DATADIRNAME@,$DATADIRNAME,;t t
13b2be9c 15111s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20e95c23
DJ
15112s,@GENCAT@,$GENCAT,;t t
15113s,@CATOBJEXT@,$CATOBJEXT,;t t
13b2be9c 15114s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
20e95c23
DJ
15115s,@MSGFMT@,$MSGFMT,;t t
15116s,@MSGMERGE@,$MSGMERGE,;t t
13b2be9c
DJ
15117s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
15118s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
15119s,@MAINT@,$MAINT,;t t
d5fbea21
DJ
15120s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
15121s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
20e95c23 15122s,@ALLOCA@,$ALLOCA,;t t
13b2be9c 15123s,@LIBM@,$LIBM,;t t
108a6f8e
CD
15124s,@datarootdir@,$datarootdir,;t t
15125s,@docdir@,$docdir,;t t
15126s,@htmldir@,$htmldir,;t t
13b2be9c
DJ
15127s,@LIBOBJS@,$LIBOBJS,;t t
15128s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9b2b7d69
MM
15129CEOF
15130
13b2be9c
DJ
15131_ACEOF
15132
15133 cat >>$CONFIG_STATUS <<\_ACEOF
15134 # Split the substitutions into bite-sized pieces for seds with
15135 # small command number limits, like on Digital OSF/1 and HP-UX.
15136 ac_max_sed_lines=48
15137 ac_sed_frag=1 # Number of current file.
15138 ac_beg=1 # First line for current file.
15139 ac_end=$ac_max_sed_lines # Line after last line for current file.
15140 ac_more_lines=:
15141 ac_sed_cmds=
15142 while $ac_more_lines; do
15143 if test $ac_beg -gt 1; then
15144 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15145 else
15146 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15147 fi
15148 if test ! -s $tmp/subs.frag; then
15149 ac_more_lines=false
9b2b7d69 15150 else
13b2be9c
DJ
15151 # The purpose of the label and of the branching condition is to
15152 # speed up the sed processing (if there are no `@' at all, there
15153 # is no need to browse any of the substitutions).
15154 # These are the two extra sed commands mentioned above.
15155 (echo ':t
15156 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
15157 if test -z "$ac_sed_cmds"; then
ab509236 15158 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13b2be9c 15159 else
ab509236 15160 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13b2be9c
DJ
15161 fi
15162 ac_sed_frag=`expr $ac_sed_frag + 1`
15163 ac_beg=$ac_end
15164 ac_end=`expr $ac_end + $ac_max_sed_lines`
9b2b7d69 15165 fi
13b2be9c
DJ
15166 done
15167 if test -z "$ac_sed_cmds"; then
15168 ac_sed_cmds=cat
252b5132 15169 fi
13b2be9c 15170fi # test -n "$CONFIG_FILES"
252b5132 15171
13b2be9c
DJ
15172_ACEOF
15173cat >>$CONFIG_STATUS <<\_ACEOF
15174for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
c8615825 15175 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13b2be9c
DJ
15176 case $ac_file in
15177 - | *:- | *:-:* ) # input from stdin
ab509236
L
15178 cat >$tmp/stdin
15179 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15180 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13b2be9c 15181 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ab509236 15182 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13b2be9c 15183 * ) ac_file_in=$ac_file.in ;;
252b5132 15184 esac
9b2b7d69 15185
13b2be9c
DJ
15186 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
15187 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15188$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
15189 X"$ac_file" : 'X\(//\)[^/]' \| \
15190 X"$ac_file" : 'X\(//\)$' \| \
15191 X"$ac_file" : 'X\(/\)' \| \
15192 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
15193echo X"$ac_file" |
15194 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15195 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15196 /^X\(\/\/\)$/{ s//\1/; q; }
15197 /^X\(\/\).*/{ s//\1/; q; }
15198 s/.*/./; q'`
15199 { if $as_mkdir_p; then
15200 mkdir -p "$ac_dir"
c8615825 15201 else
13b2be9c
DJ
15202 as_dir="$ac_dir"
15203 as_dirs=
15204 while test ! -d "$as_dir"; do
15205 as_dirs="$as_dir $as_dirs"
15206 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15207$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
15208 X"$as_dir" : 'X\(//\)[^/]' \| \
15209 X"$as_dir" : 'X\(//\)$' \| \
15210 X"$as_dir" : 'X\(/\)' \| \
15211 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
15212echo X"$as_dir" |
15213 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15214 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15215 /^X\(\/\/\)$/{ s//\1/; q; }
15216 /^X\(\/\).*/{ s//\1/; q; }
15217 s/.*/./; q'`
15218 done
15219 test ! -n "$as_dirs" || mkdir $as_dirs
15220 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15221echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15222 { (exit 1); exit 1; }; }; }
15223
15224 ac_builddir=.
15225
15226if test "$ac_dir" != .; then
15227 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15228 # A "../" for each directory in $ac_dir_suffix.
15229 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15230else
15231 ac_dir_suffix= ac_top_builddir=
15232fi
9b2b7d69 15233
13b2be9c
DJ
15234case $srcdir in
15235 .) # No --srcdir option. We are building in place.
15236 ac_srcdir=.
15237 if test -z "$ac_top_builddir"; then
15238 ac_top_srcdir=.
15239 else
15240 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15241 fi ;;
15242 [\\/]* | ?:[\\/]* ) # Absolute path.
15243 ac_srcdir=$srcdir$ac_dir_suffix;
15244 ac_top_srcdir=$srcdir ;;
9b2b7d69 15245 *) # Relative path.
13b2be9c
DJ
15246 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15247 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15248esac
ab509236
L
15249
15250# Do not use `cd foo && pwd` to compute absolute paths, because
15251# the directories may not exist.
15252case `pwd` in
15253.) ac_abs_builddir="$ac_dir";;
15254*)
15255 case "$ac_dir" in
15256 .) ac_abs_builddir=`pwd`;;
15257 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15258 *) ac_abs_builddir=`pwd`/"$ac_dir";;
15259 esac;;
15260esac
15261case $ac_abs_builddir in
15262.) ac_abs_top_builddir=${ac_top_builddir}.;;
15263*)
15264 case ${ac_top_builddir}. in
15265 .) ac_abs_top_builddir=$ac_abs_builddir;;
15266 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15267 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15268 esac;;
15269esac
15270case $ac_abs_builddir in
15271.) ac_abs_srcdir=$ac_srcdir;;
15272*)
15273 case $ac_srcdir in
15274 .) ac_abs_srcdir=$ac_abs_builddir;;
15275 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15276 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15277 esac;;
15278esac
15279case $ac_abs_builddir in
15280.) ac_abs_top_srcdir=$ac_top_srcdir;;
15281*)
15282 case $ac_top_srcdir in
15283 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15284 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15285 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15286 esac;;
15287esac
252b5132 15288
9b2b7d69 15289
13b2be9c
DJ
15290 case $INSTALL in
15291 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15292 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
c8615825 15293 esac
9b2b7d69 15294
1ad12f97
NC
15295 if test x"$ac_file" != x-; then
15296 { echo "$as_me:$LINENO: creating $ac_file" >&5
15297echo "$as_me: creating $ac_file" >&6;}
15298 rm -f "$ac_file"
15299 fi
13b2be9c
DJ
15300 # Let's still pretend it is `configure' which instantiates (i.e., don't
15301 # use $as_me), people would be surprised to read:
15302 # /* config.h. Generated by config.status. */
15303 if test x"$ac_file" = x-; then
15304 configure_input=
15305 else
15306 configure_input="$ac_file. "
15307 fi
15308 configure_input=$configure_input"Generated from `echo $ac_file_in |
ab509236 15309 sed 's,.*/,,'` by configure."
13b2be9c
DJ
15310
15311 # First look for the input files in the build tree, otherwise in the
15312 # src tree.
15313 ac_file_inputs=`IFS=:
15314 for f in $ac_file_in; do
15315 case $f in
15316 -) echo $tmp/stdin ;;
15317 [\\/$]*)
ab509236
L
15318 # Absolute (can't be DOS-style, as IFS=:)
15319 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13b2be9c
DJ
15320echo "$as_me: error: cannot find input file: $f" >&2;}
15321 { (exit 1); exit 1; }; }
ab509236 15322 echo "$f";;
13b2be9c 15323 *) # Relative
ab509236
L
15324 if test -f "$f"; then
15325 # Build tree
15326 echo "$f"
15327 elif test -f "$srcdir/$f"; then
15328 # Source tree
15329 echo "$srcdir/$f"
15330 else
15331 # /dev/null tree
15332 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13b2be9c
DJ
15333echo "$as_me: error: cannot find input file: $f" >&2;}
15334 { (exit 1); exit 1; }; }
ab509236 15335 fi;;
13b2be9c
DJ
15336 esac
15337 done` || { (exit 1); exit 1; }
15338_ACEOF
15339cat >>$CONFIG_STATUS <<_ACEOF
15340 sed "$ac_vpsub
15341$extrasub
15342_ACEOF
15343cat >>$CONFIG_STATUS <<\_ACEOF
15344:t
15345/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15346s,@configure_input@,$configure_input,;t t
15347s,@srcdir@,$ac_srcdir,;t t
15348s,@abs_srcdir@,$ac_abs_srcdir,;t t
15349s,@top_srcdir@,$ac_top_srcdir,;t t
15350s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
15351s,@builddir@,$ac_builddir,;t t
15352s,@abs_builddir@,$ac_abs_builddir,;t t
15353s,@top_builddir@,$ac_top_builddir,;t t
15354s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
15355s,@INSTALL@,$ac_INSTALL,;t t
15356" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
15357 rm -f $tmp/stdin
15358 if test x"$ac_file" != x-; then
15359 mv $tmp/out $ac_file
15360 else
15361 cat $tmp/out
15362 rm -f $tmp/out
15363 fi
15364
15365done
15366_ACEOF
15367cat >>$CONFIG_STATUS <<\_ACEOF
15368
15369#
15370# CONFIG_HEADER section.
15371#
252b5132
RH
15372
15373# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15374# NAME is the cpp macro being defined and VALUE is the value it is being given.
15375#
15376# ac_d sets the value in "#define NAME VALUE" lines.
ab509236
L
15377ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
15378ac_dB='[ ].*$,\1#\2'
13b2be9c
DJ
15379ac_dC=' '
15380ac_dD=',;t'
15381# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ab509236 15382ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13b2be9c 15383ac_uB='$,\1#\2define\3'
252b5132 15384ac_uC=' '
13b2be9c
DJ
15385ac_uD=',;t'
15386
15387for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
252b5132 15388 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13b2be9c
DJ
15389 case $ac_file in
15390 - | *:- | *:-:* ) # input from stdin
ab509236
L
15391 cat >$tmp/stdin
15392 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15393 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13b2be9c 15394 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ab509236 15395 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13b2be9c 15396 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
15397 esac
15398
13b2be9c
DJ
15399 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
15400echo "$as_me: creating $ac_file" >&6;}
15401
15402 # First look for the input files in the build tree, otherwise in the
15403 # src tree.
15404 ac_file_inputs=`IFS=:
15405 for f in $ac_file_in; do
15406 case $f in
15407 -) echo $tmp/stdin ;;
15408 [\\/$]*)
ab509236
L
15409 # Absolute (can't be DOS-style, as IFS=:)
15410 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13b2be9c
DJ
15411echo "$as_me: error: cannot find input file: $f" >&2;}
15412 { (exit 1); exit 1; }; }
ab509236
L
15413 # Do quote $f, to prevent DOS paths from being IFS'd.
15414 echo "$f";;
13b2be9c 15415 *) # Relative
ab509236
L
15416 if test -f "$f"; then
15417 # Build tree
15418 echo "$f"
15419 elif test -f "$srcdir/$f"; then
15420 # Source tree
15421 echo "$srcdir/$f"
15422 else
15423 # /dev/null tree
15424 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13b2be9c
DJ
15425echo "$as_me: error: cannot find input file: $f" >&2;}
15426 { (exit 1); exit 1; }; }
ab509236 15427 fi;;
13b2be9c
DJ
15428 esac
15429 done` || { (exit 1); exit 1; }
15430 # Remove the trailing spaces.
ab509236 15431 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13b2be9c
DJ
15432
15433_ACEOF
15434
15435# Transform confdefs.h into two sed scripts, `conftest.defines' and
15436# `conftest.undefs', that substitutes the proper values into
15437# config.h.in to produce config.h. The first handles `#define'
15438# templates, and the second `#undef' templates.
15439# And first: Protect against being on the right side of a sed subst in
15440# config.status. Protect against being in an unquoted here document
15441# in config.status.
15442rm -f conftest.defines conftest.undefs
15443# Using a here document instead of a string reduces the quoting nightmare.
15444# Putting comments in sed scripts is not portable.
15445#
15446# `end' is used to avoid that the second main sed command (meant for
15447# 0-ary CPP macros) applies to n-ary macro definitions.
15448# See the Autoconf documentation for `clear'.
15449cat >confdef2sed.sed <<\_ACEOF
15450s/[\\&,]/\\&/g
15451s,[\\$`],\\&,g
15452t clear
15453: clear
ab509236 15454s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13b2be9c 15455t end
ab509236 15456s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13b2be9c
DJ
15457: end
15458_ACEOF
15459# If some macros were called several times there might be several times
15460# the same #defines, which is useless. Nevertheless, we may not want to
15461# sort them, since we want the *last* AC-DEFINE to be honored.
15462uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
15463sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
15464rm -f confdef2sed.sed
252b5132
RH
15465
15466# This sed command replaces #undef with comments. This is necessary, for
15467# example, in the case of _POSIX_SOURCE, which is predefined and required
15468# on some systems where configure will not decide to define it.
13b2be9c 15469cat >>conftest.undefs <<\_ACEOF
ab509236 15470s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13b2be9c
DJ
15471_ACEOF
15472
15473# Break up conftest.defines because some shells have a limit on the size
15474# of here documents, and old seds have small limits too (100 cmds).
15475echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ab509236 15476echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13b2be9c
DJ
15477echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
15478echo ' :' >>$CONFIG_STATUS
15479rm -f conftest.tail
15480while grep . conftest.defines >/dev/null
15481do
15482 # Write a limited-size here document to $tmp/defines.sed.
15483 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
15484 # Speed up: don't consider the non `#define' lines.
ab509236 15485 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13b2be9c
DJ
15486 # Work around the forget-to-reset-the-flag bug.
15487 echo 't clr' >>$CONFIG_STATUS
15488 echo ': clr' >>$CONFIG_STATUS
15489 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
15490 echo 'CEOF
15491 sed -f $tmp/defines.sed $tmp/in >$tmp/out
15492 rm -f $tmp/in
15493 mv $tmp/out $tmp/in
15494' >>$CONFIG_STATUS
15495 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
15496 rm -f conftest.defines
15497 mv conftest.tail conftest.defines
15498done
15499rm -f conftest.defines
15500echo ' fi # grep' >>$CONFIG_STATUS
15501echo >>$CONFIG_STATUS
252b5132 15502
13b2be9c
DJ
15503# Break up conftest.undefs because some shells have a limit on the size
15504# of here documents, and old seds have small limits too (100 cmds).
15505echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
252b5132 15506rm -f conftest.tail
13b2be9c 15507while grep . conftest.undefs >/dev/null
252b5132 15508do
13b2be9c
DJ
15509 # Write a limited-size here document to $tmp/undefs.sed.
15510 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
15511 # Speed up: don't consider the non `#undef'
ab509236 15512 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13b2be9c
DJ
15513 # Work around the forget-to-reset-the-flag bug.
15514 echo 't clr' >>$CONFIG_STATUS
15515 echo ': clr' >>$CONFIG_STATUS
15516 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
252b5132 15517 echo 'CEOF
13b2be9c
DJ
15518 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
15519 rm -f $tmp/in
15520 mv $tmp/out $tmp/in
15521' >>$CONFIG_STATUS
15522 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
15523 rm -f conftest.undefs
15524 mv conftest.tail conftest.undefs
252b5132 15525done
13b2be9c
DJ
15526rm -f conftest.undefs
15527
15528cat >>$CONFIG_STATUS <<\_ACEOF
15529 # Let's still pretend it is `configure' which instantiates (i.e., don't
15530 # use $as_me), people would be surprised to read:
15531 # /* config.h. Generated by config.status. */
15532 if test x"$ac_file" = x-; then
15533 echo "/* Generated by configure. */" >$tmp/config.h
252b5132 15534 else
13b2be9c
DJ
15535 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
15536 fi
15537 cat $tmp/in >>$tmp/config.h
15538 rm -f $tmp/in
15539 if test x"$ac_file" != x-; then
15540 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
15541 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15542echo "$as_me: $ac_file is unchanged" >&6;}
15543 else
15544 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15545$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
15546 X"$ac_file" : 'X\(//\)[^/]' \| \
15547 X"$ac_file" : 'X\(//\)$' \| \
15548 X"$ac_file" : 'X\(/\)' \| \
15549 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
15550echo X"$ac_file" |
15551 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15552 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15553 /^X\(\/\/\)$/{ s//\1/; q; }
15554 /^X\(\/\).*/{ s//\1/; q; }
15555 s/.*/./; q'`
15556 { if $as_mkdir_p; then
15557 mkdir -p "$ac_dir"
15558 else
15559 as_dir="$ac_dir"
15560 as_dirs=
15561 while test ! -d "$as_dir"; do
15562 as_dirs="$as_dir $as_dirs"
15563 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15564$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
15565 X"$as_dir" : 'X\(//\)[^/]' \| \
15566 X"$as_dir" : 'X\(//\)$' \| \
15567 X"$as_dir" : 'X\(/\)' \| \
15568 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
15569echo X"$as_dir" |
15570 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15571 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15572 /^X\(\/\/\)$/{ s//\1/; q; }
15573 /^X\(\/\).*/{ s//\1/; q; }
15574 s/.*/./; q'`
15575 done
15576 test ! -n "$as_dirs" || mkdir $as_dirs
15577 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15578echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15579 { (exit 1); exit 1; }; }; }
15580
15581 rm -f $ac_file
15582 mv $tmp/config.h $ac_file
9b2b7d69 15583 fi
13b2be9c
DJ
15584 else
15585 cat $tmp/config.h
15586 rm -f $tmp/config.h
9b2b7d69 15587 fi
13b2be9c
DJ
15588# Compute $ac_file's index in $config_headers.
15589_am_stamp_count=1
15590for _am_header in $config_headers :; do
15591 case $_am_header in
15592 $ac_file | $ac_file:* )
15593 break ;;
15594 * )
15595 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15596 esac
15597done
15598echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
15599$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
15600 X$ac_file : 'X\(//\)[^/]' \| \
15601 X$ac_file : 'X\(//\)$' \| \
15602 X$ac_file : 'X\(/\)' \| \
15603 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
15604echo X$ac_file |
15605 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15606 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15607 /^X\(\/\/\)$/{ s//\1/; q; }
15608 /^X\(\/\).*/{ s//\1/; q; }
15609 s/.*/./; q'`/stamp-h$_am_stamp_count
15610done
15611_ACEOF
15612cat >>$CONFIG_STATUS <<\_ACEOF
6840198f 15613
13b2be9c
DJ
15614#
15615# CONFIG_COMMANDS section.
15616#
15617for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
15618 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
15619 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
15620 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
15621$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
15622 X"$ac_dest" : 'X\(//\)[^/]' \| \
15623 X"$ac_dest" : 'X\(//\)$' \| \
15624 X"$ac_dest" : 'X\(/\)' \| \
15625 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
15626echo X"$ac_dest" |
15627 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15628 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15629 /^X\(\/\/\)$/{ s//\1/; q; }
15630 /^X\(\/\).*/{ s//\1/; q; }
15631 s/.*/./; q'`
ab509236
L
15632 { if $as_mkdir_p; then
15633 mkdir -p "$ac_dir"
15634 else
15635 as_dir="$ac_dir"
15636 as_dirs=
15637 while test ! -d "$as_dir"; do
15638 as_dirs="$as_dir $as_dirs"
15639 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15640$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15641 X"$as_dir" : 'X\(//\)[^/]' \| \
15642 X"$as_dir" : 'X\(//\)$' \| \
15643 X"$as_dir" : 'X\(/\)' \| \
15644 . : '\(.\)' 2>/dev/null ||
15645echo X"$as_dir" |
15646 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15647 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15648 /^X\(\/\/\)$/{ s//\1/; q; }
15649 /^X\(\/\).*/{ s//\1/; q; }
15650 s/.*/./; q'`
15651 done
15652 test ! -n "$as_dirs" || mkdir $as_dirs
15653 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15654echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15655 { (exit 1); exit 1; }; }; }
15656
13b2be9c
DJ
15657 ac_builddir=.
15658
15659if test "$ac_dir" != .; then
15660 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15661 # A "../" for each directory in $ac_dir_suffix.
15662 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15663else
15664 ac_dir_suffix= ac_top_builddir=
15665fi
15666
15667case $srcdir in
15668 .) # No --srcdir option. We are building in place.
15669 ac_srcdir=.
15670 if test -z "$ac_top_builddir"; then
15671 ac_top_srcdir=.
15672 else
15673 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15674 fi ;;
15675 [\\/]* | ?:[\\/]* ) # Absolute path.
15676 ac_srcdir=$srcdir$ac_dir_suffix;
15677 ac_top_srcdir=$srcdir ;;
15678 *) # Relative path.
15679 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15680 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15681esac
ab509236
L
15682
15683# Do not use `cd foo && pwd` to compute absolute paths, because
15684# the directories may not exist.
15685case `pwd` in
15686.) ac_abs_builddir="$ac_dir";;
15687*)
15688 case "$ac_dir" in
15689 .) ac_abs_builddir=`pwd`;;
15690 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15691 *) ac_abs_builddir=`pwd`/"$ac_dir";;
15692 esac;;
15693esac
15694case $ac_abs_builddir in
15695.) ac_abs_top_builddir=${ac_top_builddir}.;;
15696*)
15697 case ${ac_top_builddir}. in
15698 .) ac_abs_top_builddir=$ac_abs_builddir;;
15699 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15700 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15701 esac;;
15702esac
15703case $ac_abs_builddir in
15704.) ac_abs_srcdir=$ac_srcdir;;
15705*)
15706 case $ac_srcdir in
15707 .) ac_abs_srcdir=$ac_abs_builddir;;
15708 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15709 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15710 esac;;
15711esac
15712case $ac_abs_builddir in
15713.) ac_abs_top_srcdir=$ac_top_srcdir;;
15714*)
15715 case $ac_top_srcdir in
15716 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15717 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15718 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15719 esac;;
15720esac
13b2be9c
DJ
15721
15722
15723 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
15724echo "$as_me: executing $ac_dest commands" >&6;}
15725 case $ac_dest in
15726 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
15727 # Strip MF so we end up with the name of the file.
15728 mf=`echo "$mf" | sed -e 's/:.*$//'`
15729 # Check whether this is an Automake generated Makefile or not.
15730 # We used to match only the files named `Makefile.in', but
15731 # some people rename them; so instead we look at the file content.
15732 # Grep'ing the first line is not enough: some people post-process
15733 # each Makefile.in and add a new line on top of each file to say so.
15734 # So let's grep whole file.
15735 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
15736 dirpart=`(dirname "$mf") 2>/dev/null ||
15737$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
15738 X"$mf" : 'X\(//\)[^/]' \| \
15739 X"$mf" : 'X\(//\)$' \| \
15740 X"$mf" : 'X\(/\)' \| \
15741 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
15742echo X"$mf" |
15743 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15744 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15745 /^X\(\/\/\)$/{ s//\1/; q; }
15746 /^X\(\/\).*/{ s//\1/; q; }
15747 s/.*/./; q'`
15748 else
15749 continue
15750 fi
8ea2b00f
AM
15751 # Extract the definition of DEPDIR, am__include, and am__quote
15752 # from the Makefile without running `make'.
4b363073 15753 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13b2be9c 15754 test -z "$DEPDIR" && continue
8ea2b00f
AM
15755 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15756 test -z "am__include" && continue
15757 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13b2be9c 15758 # When using ansi2knr, U may be empty or an underscore; expand it
4b363073 15759 U=`sed -n 's/^U = //p' < "$mf"`
8ea2b00f
AM
15760 # Find all dependency output files, they are included files with
15761 # $(DEPDIR) in their names. We invoke sed twice because it is the
15762 # simplest approach to changing $(DEPDIR) to its actual value in the
15763 # expansion.
15764 for file in `sed -n "
15765 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13b2be9c
DJ
15766 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15767 # Make sure the directory exists.
15768 test -f "$dirpart/$file" && continue
15769 fdir=`(dirname "$file") 2>/dev/null ||
15770$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
15771 X"$file" : 'X\(//\)[^/]' \| \
15772 X"$file" : 'X\(//\)$' \| \
15773 X"$file" : 'X\(/\)' \| \
15774 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
15775echo X"$file" |
15776 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15777 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15778 /^X\(\/\/\)$/{ s//\1/; q; }
15779 /^X\(\/\).*/{ s//\1/; q; }
15780 s/.*/./; q'`
15781 { if $as_mkdir_p; then
15782 mkdir -p $dirpart/$fdir
15783 else
15784 as_dir=$dirpart/$fdir
15785 as_dirs=
15786 while test ! -d "$as_dir"; do
15787 as_dirs="$as_dir $as_dirs"
15788 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15789$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
15790 X"$as_dir" : 'X\(//\)[^/]' \| \
15791 X"$as_dir" : 'X\(//\)$' \| \
15792 X"$as_dir" : 'X\(/\)' \| \
15793 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
15794echo X"$as_dir" |
15795 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15796 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15797 /^X\(\/\/\)$/{ s//\1/; q; }
15798 /^X\(\/\).*/{ s//\1/; q; }
15799 s/.*/./; q'`
15800 done
15801 test ! -n "$as_dirs" || mkdir $as_dirs
15802 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
15803echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
15804 { (exit 1); exit 1; }; }; }
c8615825 15805
13b2be9c
DJ
15806 # echo "creating $dirpart/$file"
15807 echo '# dummy' > "$dirpart/$file"
15808 done
15809done
d7040cdb
SE
15810 ;;
15811 libtool )
15812
15813 # See if we are running on zsh, and set the options which allow our
15814 # commands through without removal of \ escapes.
15815 if test -n "${ZSH_VERSION+set}" ; then
15816 setopt NO_GLOB_SUBST
15817 fi
15818
15819 cfgfile="${ofile}T"
15820 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15821 $RM "$cfgfile"
15822
15823 cat <<_LT_EOF >> "$cfgfile"
15824#! $SHELL
15825
15826# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15827# Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
15828# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15829# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15830#
15831# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15832# 2006, 2007 Free Software Foundation, Inc.
15833#
15834# This file is part of GNU Libtool:
15835# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
15836#
15837# This program is free software; you can redistribute it and/or modify
15838# it under the terms of the GNU General Public License as published by
15839# the Free Software Foundation; either version 2 of the License, or
15840# (at your option) any later version.
15841#
15842# This program is distributed in the hope that it will be useful, but
15843# WITHOUT ANY WARRANTY; without even the implied warranty of
15844# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15845# General Public License for more details.
15846#
15847# You should have received a copy of the GNU General Public License
15848# along with this program; if not, a copy can be downloaded from
15849# http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
15850# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
15851# MA 02110-1301, USA.
15852#
15853# As a special exception to the GNU General Public License, if you
15854# distribute this file as part of a program that contains a
15855# configuration script generated by Autoconf, you may include it under
15856# the same distribution terms that you use for the rest of that program.
15857
15858
15859# The names of the tagged configurations supported by this script.
15860available_tags=""
15861
15862# ### BEGIN LIBTOOL CONFIG
15863
15864# Which release of libtool.m4 was used?
15865macro_version=$macro_version
15866macro_revision=$macro_revision
15867
15868# Whether or not to build shared libraries.
15869build_libtool_libs=$enable_shared
15870
15871# Whether or not to build static libraries.
15872build_old_libs=$enable_static
15873
15874# What type of objects to build.
15875pic_mode=$pic_mode
15876
15877# Whether or not to optimize for fast installation.
15878fast_install=$enable_fast_install
15879
15880# The host system.
15881host_alias=$host_alias
15882host=$host
15883host_os=$host_os
15884
15885# The build system.
15886build_alias=$build_alias
15887build=$build
15888build_os=$build_os
15889
15890# A sed program that does not truncate output.
15891SED=$lt_SED
15892
15893# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15894Xsed="\$SED -e 1s/^X//"
15895
15896# A grep program that handles long lines.
15897GREP=$lt_GREP
15898
15899# An ERE matcher.
15900EGREP=$lt_EGREP
15901
15902# A literal string matcher.
15903FGREP=$lt_FGREP
15904
15905# A BSD- or MS-compatible name lister.
15906NM=$lt_NM
15907
15908# Whether we need soft or hard links.
15909LN_S=$lt_LN_S
15910
15911# What is the maximum length of a command?
15912max_cmd_len=$max_cmd_len
15913
15914# Object file suffix (normally "o").
15915objext=$ac_objext
15916
15917# Executable file suffix (normally "").
15918exeext=$exeext
15919
15920# whether the shell understands "unset".
15921lt_unset=$lt_unset
15922
15923# turn spaces into newlines.
15924SP2NL=$lt_lt_SP2NL
15925
15926# turn newlines into spaces.
15927NL2SP=$lt_lt_NL2SP
15928
15929# How to create reloadable object files.
15930reload_flag=$lt_reload_flag
15931reload_cmds=$lt_reload_cmds
15932
15933# Method to check whether dependent libraries are shared objects.
15934deplibs_check_method=$lt_deplibs_check_method
15935
15936# Command to use when deplibs_check_method == "file_magic".
15937file_magic_cmd=$lt_file_magic_cmd
15938
15939# The archiver.
15940AR=$lt_AR
15941AR_FLAGS=$lt_AR_FLAGS
15942
15943# A symbol stripping program.
15944STRIP=$lt_STRIP
15945
15946# Commands used to install an old-style archive.
15947RANLIB=$lt_RANLIB
15948old_postinstall_cmds=$lt_old_postinstall_cmds
15949old_postuninstall_cmds=$lt_old_postuninstall_cmds
15950
15951# A C compiler.
15952LTCC=$lt_CC
15953
15954# LTCC compiler flags.
15955LTCFLAGS=$lt_CFLAGS
15956
15957# Take the output of nm and produce a listing of raw symbols and C names.
15958global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15959
15960# Transform the output of nm in a proper C declaration.
15961global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15962
15963# Transform the output of nm in a C name address pair.
15964global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15965
15966# The name of the directory that contains temporary libtool files.
15967objdir=$objdir
15968
15969# Shell to use when invoking shell scripts.
15970SHELL=$lt_SHELL
15971
15972# An echo program that does not interpret backslashes.
15973ECHO=$lt_ECHO
15974
15975# Used to examine libraries when file_magic_cmd begins with "file".
15976MAGIC_CMD=$MAGIC_CMD
15977
15978# Must we lock files when doing compilation?
15979need_locks=$lt_need_locks
15980
15981# Old archive suffix (normally "a").
15982libext=$libext
15983
15984# Shared library suffix (normally ".so").
15985shrext_cmds=$lt_shrext_cmds
15986
15987# The commands to extract the exported symbol list from a shared archive.
15988extract_expsyms_cmds=$lt_extract_expsyms_cmds
15989
15990# Variables whose values should be saved in libtool wrapper scripts and
15991# restored at link time.
15992variables_saved_for_relink=$lt_variables_saved_for_relink
15993
15994# Do we need the "lib" prefix for modules?
15995need_lib_prefix=$need_lib_prefix
15996
15997# Do we need a version for libraries?
15998need_version=$need_version
15999
16000# Library versioning type.
16001version_type=$version_type
16002
16003# Shared library runtime path variable.
16004runpath_var=$runpath_var
16005
16006# Shared library path variable.
16007shlibpath_var=$shlibpath_var
16008
16009# Is shlibpath searched before the hard-coded library search path?
16010shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16011
16012# Format of library name prefix.
16013libname_spec=$lt_libname_spec
16014
16015# List of archive names. First name is the real one, the rest are links.
16016# The last name is the one that the linker finds with -lNAME
16017library_names_spec=$lt_library_names_spec
16018
16019# The coded name of the library, if different from the real name.
16020soname_spec=$lt_soname_spec
16021
16022# Command to use after installation of a shared archive.
16023postinstall_cmds=$lt_postinstall_cmds
16024
16025# Command to use after uninstallation of a shared archive.
16026postuninstall_cmds=$lt_postuninstall_cmds
16027
16028# Commands used to finish a libtool library installation in a directory.
16029finish_cmds=$lt_finish_cmds
16030
16031# As "finish_cmds", except a single script fragment to be evaled but
16032# not shown.
16033finish_eval=$lt_finish_eval
16034
16035# Whether we should hardcode library paths into libraries.
16036hardcode_into_libs=$hardcode_into_libs
16037
16038# Compile-time system search path for libraries.
16039sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16040
16041# Run-time system search path for libraries.
16042sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16043
16044# Whether dlopen is supported.
16045dlopen_support=$enable_dlopen
16046
16047# Whether dlopen of programs is supported.
16048dlopen_self=$enable_dlopen_self
16049
16050# Whether dlopen of statically linked programs is supported.
16051dlopen_self_static=$enable_dlopen_self_static
16052
16053# Commands to strip libraries.
16054old_striplib=$lt_old_striplib
16055striplib=$lt_striplib
16056
16057
16058# The linker used to build libraries.
16059LD=$lt_LD
16060
16061# Commands used to build an old-style archive.
16062old_archive_cmds=$lt_old_archive_cmds
16063
16064# A language specific compiler.
16065CC=$lt_compiler
16066
16067# Is the compiler the GNU compiler?
16068with_gcc=$GCC
16069
16070# Compiler flag to turn off builtin functions.
16071no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16072
16073# How to pass a linker flag through the compiler.
16074wl=$lt_lt_prog_compiler_wl
16075
16076# Additional compiler flags for building library objects.
16077pic_flag=$lt_lt_prog_compiler_pic
16078
16079# Compiler flag to prevent dynamic linking.
16080link_static_flag=$lt_lt_prog_compiler_static
16081
16082# Does compiler simultaneously support -c and -o options?
16083compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16084
16085# Whether or not to add -lc for building shared libraries.
16086build_libtool_need_lc=$archive_cmds_need_lc
16087
16088# Whether or not to disallow shared libs when runtime libs are static.
16089allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16090
16091# Compiler flag to allow reflexive dlopens.
16092export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16093
16094# Compiler flag to generate shared objects directly from archives.
16095whole_archive_flag_spec=$lt_whole_archive_flag_spec
16096
16097# Whether the compiler copes with passing no objects directly.
16098compiler_needs_object=$lt_compiler_needs_object
16099
16100# Create an old-style archive from a shared archive.
16101old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16102
16103# Create a temporary old-style archive to link instead of a shared archive.
16104old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16105
16106# Commands used to build a shared archive.
16107archive_cmds=$lt_archive_cmds
16108archive_expsym_cmds=$lt_archive_expsym_cmds
16109
16110# Commands used to build a loadable module if different from building
16111# a shared archive.
16112module_cmds=$lt_module_cmds
16113module_expsym_cmds=$lt_module_expsym_cmds
16114
16115# Whether we are building with GNU ld or not.
16116with_gnu_ld=$lt_with_gnu_ld
16117
16118# Flag that allows shared libraries with undefined symbols to be built.
16119allow_undefined_flag=$lt_allow_undefined_flag
16120
16121# Flag that enforces no undefined symbols.
16122no_undefined_flag=$lt_no_undefined_flag
16123
16124# Flag to hardcode \$libdir into a binary during linking.
16125# This must work even if \$libdir does not exist
16126hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16127
16128# If ld is used when linking, flag to hardcode \$libdir into a binary
16129# during linking. This must work even if \$libdir does not exist.
16130hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16131
16132# Whether we need a single "-rpath" flag with a separated argument.
16133hardcode_libdir_separator=$lt_hardcode_libdir_separator
16134
16135# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16136# DIR into the resulting binary.
16137hardcode_direct=$hardcode_direct
16138
16139# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16140# DIR into the resulting binary and the resulting library dependency is
16141# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16142# library is relocated.
16143hardcode_direct_absolute=$hardcode_direct_absolute
16144
16145# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16146# into the resulting binary.
16147hardcode_minus_L=$hardcode_minus_L
16148
16149# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16150# into the resulting binary.
16151hardcode_shlibpath_var=$hardcode_shlibpath_var
16152
16153# Set to "yes" if building a shared library automatically hardcodes DIR
16154# into the library and all subsequent libraries and executables linked
16155# against it.
16156hardcode_automatic=$hardcode_automatic
16157
16158# Set to yes if linker adds runtime paths of dependent libraries
16159# to runtime path list.
16160inherit_rpath=$inherit_rpath
16161
16162# Whether libtool must link a program against all its dependency libraries.
16163link_all_deplibs=$link_all_deplibs
16164
16165# Fix the shell variable \$srcfile for the compiler.
16166fix_srcfile_path=$lt_fix_srcfile_path
16167
16168# Set to "yes" if exported symbols are required.
16169always_export_symbols=$always_export_symbols
16170
16171# The commands to list exported symbols.
16172export_symbols_cmds=$lt_export_symbols_cmds
16173
16174# Symbols that should not be listed in the preloaded symbols.
16175exclude_expsyms=$lt_exclude_expsyms
16176
16177# Symbols that must always be exported.
16178include_expsyms=$lt_include_expsyms
16179
16180# Commands necessary for linking programs (against libraries) with templates.
16181prelink_cmds=$lt_prelink_cmds
16182
16183# Specify filename containing input files.
16184file_list_spec=$lt_file_list_spec
16185
16186# How to hardcode a shared library path into an executable.
16187hardcode_action=$hardcode_action
16188
16189# ### END LIBTOOL CONFIG
16190
16191_LT_EOF
16192
16193 case $host_os in
16194 aix3*)
16195 cat <<\_LT_EOF >> "$cfgfile"
16196# AIX sometimes has problems with the GCC collect2 program. For some
16197# reason, if we set the COLLECT_NAMES environment variable, the problems
16198# vanish in a puff of smoke.
16199if test "X${COLLECT_NAMES+set}" != Xset; then
16200 COLLECT_NAMES=
16201 export COLLECT_NAMES
16202fi
16203_LT_EOF
16204 ;;
16205 esac
16206
16207
16208ltmain="$ac_aux_dir/ltmain.sh"
16209
16210
16211 # We use sed instead of cat because bash on DJGPP gets confused if
16212 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16213 # text mode, it properly converts lines to CR/LF. This bash problem
16214 # is reportedly fixed, but why not run on old versions too?
16215 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16216 || (rm -f "$cfgfile"; exit 1)
16217
16218 case $xsi_shell in
16219 yes)
16220 cat << \_LT_EOF >> "$cfgfile"
16221# func_dirname file append nondir_replacement
16222# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16223# otherwise set result to NONDIR_REPLACEMENT.
16224func_dirname ()
16225{
16226 case ${1} in
16227 */*) func_dirname_result="${1%/*}${2}" ;;
16228 * ) func_dirname_result="${3}" ;;
16229 esac
16230}
16231
16232# func_basename file
16233func_basename ()
16234{
16235 func_basename_result="${1##*/}"
16236}
16237
16238# func_stripname prefix suffix name
16239# strip PREFIX and SUFFIX off of NAME.
16240# PREFIX and SUFFIX must not contain globbing or regex special
16241# characters, hashes, percent signs, but SUFFIX may contain a leading
16242# dot (in which case that matches only a dot).
16243func_stripname ()
16244{
16245 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16246 # positional parameters, so assign one to ordinary parameter first.
16247 func_stripname_result=${3}
16248 func_stripname_result=${func_stripname_result#"${1}"}
16249 func_stripname_result=${func_stripname_result%"${2}"}
16250}
16251
16252# func_opt_split
16253func_opt_split ()
16254{
16255 func_opt_split_opt=${1%%=*}
16256 func_opt_split_arg=${1#*=}
16257}
16258
16259# func_lo2o object
16260func_lo2o ()
16261{
16262 case ${1} in
16263 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16264 *) func_lo2o_result=${1} ;;
16265 esac
16266}
16267_LT_EOF
16268 ;;
16269 *) # Bourne compatible functions.
16270 cat << \_LT_EOF >> "$cfgfile"
16271# func_dirname file append nondir_replacement
16272# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16273# otherwise set result to NONDIR_REPLACEMENT.
16274func_dirname ()
16275{
16276 # Extract subdirectory from the argument.
16277 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
16278 if test "X$func_dirname_result" = "X${1}"; then
16279 func_dirname_result="${3}"
16280 else
16281 func_dirname_result="$func_dirname_result${2}"
16282 fi
16283}
16284
16285# func_basename file
16286func_basename ()
16287{
16288 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
16289}
16290
16291# func_stripname prefix suffix name
16292# strip PREFIX and SUFFIX off of NAME.
16293# PREFIX and SUFFIX must not contain globbing or regex special
16294# characters, hashes, percent signs, but SUFFIX may contain a leading
16295# dot (in which case that matches only a dot).
16296# func_strip_suffix prefix name
16297func_stripname ()
16298{
16299 case ${2} in
16300 .*) func_stripname_result=`$ECHO "X${3}" \
16301 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
16302 *) func_stripname_result=`$ECHO "X${3}" \
16303 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
16304 esac
16305}
16306
16307# sed scripts:
16308my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16309my_sed_long_arg='1s/^-[^=]*=//'
16310
16311# func_opt_split
16312func_opt_split ()
16313{
16314 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
16315 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
16316}
16317
16318# func_lo2o object
16319func_lo2o ()
16320{
16321 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
16322}
16323_LT_EOF
16324esac
16325
16326case $lt_shell_append in
16327 yes)
16328 cat << \_LT_EOF >> "$cfgfile"
16329
16330# func_append var value
16331# Append VALUE to the end of shell variable VAR.
16332func_append ()
16333{
16334 eval "$1+=\$2"
16335}
16336_LT_EOF
16337 ;;
16338 *)
16339 cat << \_LT_EOF >> "$cfgfile"
16340
16341# func_append var value
16342# Append VALUE to the end of shell variable VAR.
16343func_append ()
16344{
16345 eval "$1=\$$1\$2"
16346}
16347_LT_EOF
16348 ;;
16349 esac
16350
16351
16352 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16353 || (rm -f "$cfgfile"; exit 1)
16354
16355 mv -f "$cfgfile" "$ofile" ||
16356 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16357 chmod +x "$ofile"
16358
13b2be9c 16359 ;;
20e95c23
DJ
16360 default-1 )
16361 for ac_file in $CONFIG_FILES; do
16362 # Support "outfile[:infile[:infile...]]"
16363 case "$ac_file" in
16364 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16365 esac
16366 # PO directories have a Makefile.in generated from Makefile.in.in.
16367 case "$ac_file" in */Makefile.in)
16368 # Adjust a relative srcdir.
16369 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16370 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16371 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16372 # In autoconf-2.13 it is called $ac_given_srcdir.
16373 # In autoconf-2.50 it is called $srcdir.
16374 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16375 case "$ac_given_srcdir" in
16376 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16377 /*) top_srcdir="$ac_given_srcdir" ;;
16378 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16379 esac
16380 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16381 rm -f "$ac_dir/POTFILES"
16382 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16383 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16384 POMAKEFILEDEPS="POTFILES.in"
16385 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
16386 # on $ac_dir but don't depend on user-specified configuration
16387 # parameters.
16388 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16389 # The LINGUAS file contains the set of available languages.
16390 if test -n "$OBSOLETE_ALL_LINGUAS"; then
16391 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16392 fi
16393 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16394 # Hide the ALL_LINGUAS assigment from automake.
16395 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16396 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16397 else
16398 # The set of available languages was given in configure.in.
16399 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16400 fi
16401 case "$ac_given_srcdir" in
16402 .) srcdirpre= ;;
16403 *) srcdirpre='$(srcdir)/' ;;
16404 esac
16405 POFILES=
16406 GMOFILES=
16407 UPDATEPOFILES=
16408 DUMMYPOFILES=
16409 for lang in $ALL_LINGUAS; do
16410 POFILES="$POFILES $srcdirpre$lang.po"
16411 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16412 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16413 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16414 done
16415 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16416 # environment variable.
16417 INST_LINGUAS=
16418 if test -n "$ALL_LINGUAS"; then
16419 for presentlang in $ALL_LINGUAS; do
16420 useit=no
16421 if test "%UNSET%" != "$LINGUAS"; then
16422 desiredlanguages="$LINGUAS"
16423 else
16424 desiredlanguages="$ALL_LINGUAS"
16425 fi
16426 for desiredlang in $desiredlanguages; do
16427 # Use the presentlang catalog if desiredlang is
16428 # a. equal to presentlang, or
16429 # b. a variant of presentlang (because in this case,
16430 # presentlang can be used as a fallback for messages
16431 # which are not translated in the desiredlang catalog).
16432 case "$desiredlang" in
16433 "$presentlang"*) useit=yes;;
16434 esac
16435 done
16436 if test $useit = yes; then
16437 INST_LINGUAS="$INST_LINGUAS $presentlang"
16438 fi
16439 done
16440 fi
16441 CATALOGS=
16442 if test -n "$INST_LINGUAS"; then
16443 for lang in $INST_LINGUAS; do
16444 CATALOGS="$CATALOGS $lang.gmo"
16445 done
16446 fi
16447 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16448 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"
16449 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16450 if test -f "$f"; then
16451 case "$f" in
16452 *.orig | *.bak | *~) ;;
16453 *) cat "$f" >> "$ac_dir/Makefile" ;;
16454 esac
16455 fi
16456 done
16457 fi
16458 ;;
16459 esac
16460 done ;;
13b2be9c 16461 default ) rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h
252b5132
RH
16462 echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
16463 echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
16464 echo '#include "te-'"${te_file}"'.h"' > targ-env.h
16465 echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
16466 if test "x$cgen_cpu_prefix" != x ; then
16467 echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h
20e95c23 16468 fi ;;
13b2be9c
DJ
16469 esac
16470done
16471_ACEOF
16472
16473cat >>$CONFIG_STATUS <<\_ACEOF
16474
16475{ (exit 0); exit 0; }
16476_ACEOF
252b5132 16477chmod +x $CONFIG_STATUS
13b2be9c
DJ
16478ac_clean_files=$ac_clean_files_save
16479
16480
16481# configure is writing to config.log, and then calls config.status.
16482# config.status does its own redirection, appending to config.log.
16483# Unfortunately, on DOS this fails, as config.log is still kept open
16484# by configure, so config.status won't be able to write to it; its
16485# output is simply discarded. So we exec the FD to /dev/null,
16486# effectively closing config.log, so it can be properly (re)opened and
16487# appended to by config.status. When coming back to configure, we
16488# need to make the FD available again.
16489if test "$no_create" != yes; then
16490 ac_cs_success=:
16491 ac_config_status_args=
16492 test "$silent" = yes &&
16493 ac_config_status_args="$ac_config_status_args --quiet"
16494 exec 5>/dev/null
16495 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16496 exec 5>>config.log
16497 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16498 # would make configure fail if this is the last instruction.
16499 $ac_cs_success || { (exit 1); exit 1; }
16500fi
252b5132 16501
This page took 1.324083 seconds and 4 git commands to generate.