Add LM32 port.
[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
718a6fd8 461ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP LIBTOOL SED FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S OBJDUMP ac_ct_OBJDUMP AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT LIPO ac_ct_LIPO OTOOL ac_ct_OTOOL OTOOL64 ac_ct_OTOOL64 WARN_CFLAGS NO_WERROR 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
d053aef8 1005 --disable-largefile omit support for large files
d7040cdb
SE
1006 --enable-shared[=PKGS]
1007 build shared libraries [default=yes]
1008 --enable-static[=PKGS]
1009 build static libraries [default=yes]
1010 --enable-fast-install[=PKGS]
1011 optimize for fast installation [default=yes]
13b2be9c 1012 --disable-libtool-lock avoid locking (might break parallel builds)
241a6c40 1013 --enable-targets alternative target configurations besides the primary
13b2be9c 1014 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
c43a438d 1015 --enable-checking enable run-time checks
241a6c40
AM
1016 --enable-werror treat compile warnings as errors
1017 --enable-build-warnings enable build-time compiler warnings
13b2be9c 1018 --disable-nls do not use Native Language Support
ab509236
L
1019 --enable-maintainer-mode enable make rules and dependencies not useful
1020 (and sometimes confusing) to the casual installer
9b2b7d69 1021
13b2be9c
DJ
1022Optional Packages:
1023 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1024 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d7040cdb
SE
1025 --with-pic try to use only PIC/non-PIC objects [default=use
1026 both]
1027 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
9b2b7d69 1028
13b2be9c
DJ
1029Some influential environment variables:
1030 CC C compiler command
1031 CFLAGS C compiler flags
1032 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1033 nonstandard directory <lib dir>
1034 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1035 headers in a nonstandard directory <include dir>
1036 CPP C preprocessor
1037
1038Use these variables to override the choices made by `configure' or to help
1039it to find libraries and programs with nonstandard names/locations.
1040
1041_ACEOF
9b2b7d69 1042fi
9b2b7d69 1043
13b2be9c
DJ
1044if test "$ac_init_help" = "recursive"; then
1045 # If there are subdirs, report their specific --help.
1046 ac_popdir=`pwd`
1047 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1048 test -d $ac_dir || continue
1049 ac_builddir=.
1050
1051if test "$ac_dir" != .; then
1052 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1053 # A "../" for each directory in $ac_dir_suffix.
1054 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1055else
1056 ac_dir_suffix= ac_top_builddir=
1057fi
9b2b7d69 1058
13b2be9c
DJ
1059case $srcdir in
1060 .) # No --srcdir option. We are building in place.
1061 ac_srcdir=.
1062 if test -z "$ac_top_builddir"; then
1063 ac_top_srcdir=.
1064 else
1065 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
c8615825 1066 fi ;;
13b2be9c
DJ
1067 [\\/]* | ?:[\\/]* ) # Absolute path.
1068 ac_srcdir=$srcdir$ac_dir_suffix;
1069 ac_top_srcdir=$srcdir ;;
1070 *) # Relative path.
1071 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1072 ac_top_srcdir=$ac_top_builddir$srcdir ;;
c8615825 1073esac
ab509236
L
1074
1075# Do not use `cd foo && pwd` to compute absolute paths, because
1076# the directories may not exist.
1077case `pwd` in
1078.) ac_abs_builddir="$ac_dir";;
1079*)
1080 case "$ac_dir" in
1081 .) ac_abs_builddir=`pwd`;;
1082 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1083 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1084 esac;;
1085esac
1086case $ac_abs_builddir in
1087.) ac_abs_top_builddir=${ac_top_builddir}.;;
1088*)
1089 case ${ac_top_builddir}. in
1090 .) ac_abs_top_builddir=$ac_abs_builddir;;
1091 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1092 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1093 esac;;
1094esac
1095case $ac_abs_builddir in
1096.) ac_abs_srcdir=$ac_srcdir;;
1097*)
1098 case $ac_srcdir in
1099 .) ac_abs_srcdir=$ac_abs_builddir;;
1100 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1101 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1102 esac;;
1103esac
1104case $ac_abs_builddir in
1105.) ac_abs_top_srcdir=$ac_top_srcdir;;
1106*)
1107 case $ac_top_srcdir in
1108 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1109 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1110 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1111 esac;;
1112esac
13b2be9c
DJ
1113
1114 cd $ac_dir
1115 # Check for guested configure; otherwise get Cygnus style configure.
1116 if test -f $ac_srcdir/configure.gnu; then
1117 echo
1118 $SHELL $ac_srcdir/configure.gnu --help=recursive
1119 elif test -f $ac_srcdir/configure; then
1120 echo
1121 $SHELL $ac_srcdir/configure --help=recursive
1122 elif test -f $ac_srcdir/configure.ac ||
ab509236 1123 test -f $ac_srcdir/configure.in; then
13b2be9c
DJ
1124 echo
1125 $ac_configure --help
1126 else
1127 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1128 fi
1ad12f97 1129 cd $ac_popdir
13b2be9c
DJ
1130 done
1131fi
6840198f 1132
13b2be9c
DJ
1133test -n "$ac_init_help" && exit 0
1134if $ac_init_version; then
1135 cat <<\_ACEOF
c8615825 1136
ab509236 1137Copyright (C) 2003 Free Software Foundation, Inc.
13b2be9c
DJ
1138This configure script is free software; the Free Software Foundation
1139gives unlimited permission to copy, distribute and modify it.
1140_ACEOF
1141 exit 0
1142fi
1143exec 5>config.log
1144cat >&5 <<_ACEOF
1145This file contains any messages produced by compilers while
1146running configure, to aid debugging if configure makes a mistake.
c8615825 1147
13b2be9c 1148It was created by $as_me, which was
ab509236 1149generated by GNU Autoconf 2.59. Invocation command line was
c8615825 1150
13b2be9c 1151 $ $0 $@
c8615825 1152
13b2be9c
DJ
1153_ACEOF
1154{
1155cat <<_ASUNAME
1156## --------- ##
1157## Platform. ##
1158## --------- ##
1159
1160hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1161uname -m = `(uname -m) 2>/dev/null || echo unknown`
1162uname -r = `(uname -r) 2>/dev/null || echo unknown`
1163uname -s = `(uname -s) 2>/dev/null || echo unknown`
1164uname -v = `(uname -v) 2>/dev/null || echo unknown`
1165
1166/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1167/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1168
1169/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1170/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1171/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1172hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1173/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1174/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1175/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1176
1177_ASUNAME
1178
1179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1180for as_dir in $PATH
1181do
1182 IFS=$as_save_IFS
1183 test -z "$as_dir" && as_dir=.
1184 echo "PATH: $as_dir"
1185done
9b2b7d69 1186
13b2be9c 1187} >&5
6840198f 1188
13b2be9c 1189cat >&5 <<_ACEOF
c8615825 1190
9b2b7d69 1191
13b2be9c
DJ
1192## ----------- ##
1193## Core tests. ##
1194## ----------- ##
87ccc1b0 1195
13b2be9c 1196_ACEOF
9b2b7d69 1197
13b2be9c
DJ
1198
1199# Keep a trace of the command line.
1200# Strip out --no-create and --no-recursion so they do not pile up.
1201# Strip out --silent because we don't want to record it for future runs.
1202# Also quote any args containing shell meta-characters.
1203# Make two passes to allow for proper duplicate-argument suppression.
1204ac_configure_args=
1205ac_configure_args0=
1206ac_configure_args1=
1207ac_sep=
1208ac_must_keep_next=false
1209for ac_pass in 1 2
1210do
1211 for ac_arg
1212 do
1213 case $ac_arg in
1214 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1215 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1216 | -silent | --silent | --silen | --sile | --sil)
1217 continue ;;
1218 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1219 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1220 esac
1221 case $ac_pass in
1222 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1223 2)
1224 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1225 if test $ac_must_keep_next = true; then
ab509236 1226 ac_must_keep_next=false # Got value, back to normal.
13b2be9c 1227 else
ab509236
L
1228 case $ac_arg in
1229 *=* | --config-cache | -C | -disable-* | --disable-* \
1230 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1231 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1232 | -with-* | --with-* | -without-* | --without-* | --x)
1233 case "$ac_configure_args0 " in
1234 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1235 esac
1236 ;;
1237 -* ) ac_must_keep_next=true ;;
1238 esac
13b2be9c
DJ
1239 fi
1240 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1241 # Get rid of the leading space.
1242 ac_sep=" "
c8615825
AM
1243 ;;
1244 esac
1245 done
13b2be9c
DJ
1246done
1247$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1248$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1249
1250# When interrupted or exit'd, cleanup temporary files, and complete
1251# config.log. We remove comments because anyway the quotes in there
1252# would cause problems or look ugly.
1253# WARNING: Be sure not to use single quotes in there, as some shells,
1254# such as our DU 5.0 friend, will then `close' the trap.
1255trap 'exit_status=$?
1256 # Save into config.log some information that might help in debugging.
1257 {
1258 echo
1259
1260 cat <<\_ASBOX
1261## ---------------- ##
1262## Cache variables. ##
1263## ---------------- ##
1264_ASBOX
1265 echo
1266 # The following way of writing the cache mishandles newlines in values,
1267{
1268 (set) 2>&1 |
1269 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1270 *ac_space=\ *)
1271 sed -n \
ab509236
L
1272 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1273 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
13b2be9c
DJ
1274 ;;
1275 *)
1276 sed -n \
ab509236 1277 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13b2be9c
DJ
1278 ;;
1279 esac;
1280}
1281 echo
1282
1283 cat <<\_ASBOX
1284## ----------------- ##
1285## Output variables. ##
1286## ----------------- ##
1287_ASBOX
1288 echo
1289 for ac_var in $ac_subst_vars
1290 do
1291 eval ac_val=$`echo $ac_var`
1292 echo "$ac_var='"'"'$ac_val'"'"'"
1293 done | sort
1294 echo
1295
1296 if test -n "$ac_subst_files"; then
1297 cat <<\_ASBOX
1298## ------------- ##
1299## Output files. ##
1300## ------------- ##
1301_ASBOX
1302 echo
1303 for ac_var in $ac_subst_files
1304 do
1305 eval ac_val=$`echo $ac_var`
ab509236 1306 echo "$ac_var='"'"'$ac_val'"'"'"
13b2be9c
DJ
1307 done | sort
1308 echo
1309 fi
1310
1311 if test -s confdefs.h; then
1312 cat <<\_ASBOX
1313## ----------- ##
1314## confdefs.h. ##
1315## ----------- ##
1316_ASBOX
1317 echo
1318 sed "/^$/d" confdefs.h | sort
1319 echo
1320 fi
1321 test "$ac_signal" != 0 &&
1322 echo "$as_me: caught signal $ac_signal"
1323 echo "$as_me: exit $exit_status"
1324 } >&5
ab509236 1325 rm -f core *.core &&
13b2be9c
DJ
1326 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1327 exit $exit_status
1328 ' 0
1329for ac_signal in 1 2 13 15; do
1330 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1331done
1332ac_signal=0
1333
1334# confdefs.h avoids OS command line length limits that DEFS can exceed.
1335rm -rf conftest* confdefs.h
1336# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1337echo >confdefs.h
1338
1339# Predefined preprocessor variables.
1340
1341cat >>confdefs.h <<_ACEOF
1342#define PACKAGE_NAME "$PACKAGE_NAME"
1343_ACEOF
1344
1345
1346cat >>confdefs.h <<_ACEOF
1347#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1348_ACEOF
1349
1350
1351cat >>confdefs.h <<_ACEOF
1352#define PACKAGE_VERSION "$PACKAGE_VERSION"
1353_ACEOF
1354
1355
1356cat >>confdefs.h <<_ACEOF
1357#define PACKAGE_STRING "$PACKAGE_STRING"
1358_ACEOF
1359
1360
1361cat >>confdefs.h <<_ACEOF
1362#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1363_ACEOF
1364
1365
1366# Let the site file select an alternate cache file if it wants to.
1367# Prefer explicitly selected file to automatically selected ones.
1368if test -z "$CONFIG_SITE"; then
1369 if test "x$prefix" != xNONE; then
1370 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1371 else
1372 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1373 fi
1374fi
1375for ac_site_file in $CONFIG_SITE; do
1376 if test -r "$ac_site_file"; then
1377 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1378echo "$as_me: loading site script $ac_site_file" >&6;}
1379 sed 's/^/| /' "$ac_site_file" >&5
1380 . "$ac_site_file"
1381 fi
1382done
1383
1384if test -r "$cache_file"; then
1385 # Some versions of bash will fail to source /dev/null (special
1386 # files actually), so we avoid doing that.
1387 if test -f "$cache_file"; then
1388 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1389echo "$as_me: loading cache $cache_file" >&6;}
1390 case $cache_file in
1391 [\\/]* | ?:[\\/]* ) . $cache_file;;
1392 *) . ./$cache_file;;
1393 esac
1394 fi
1395else
1396 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1397echo "$as_me: creating cache $cache_file" >&6;}
1398 >$cache_file
1399fi
1400
1401# Check that the precious variables saved in the cache have kept the same
1402# value.
1403ac_cache_corrupted=false
1404for ac_var in `(set) 2>&1 |
ab509236 1405 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
13b2be9c
DJ
1406 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1407 eval ac_new_set=\$ac_env_${ac_var}_set
1408 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1409 eval ac_new_val="\$ac_env_${ac_var}_value"
1410 case $ac_old_set,$ac_new_set in
1411 set,)
1412 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1413echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1414 ac_cache_corrupted=: ;;
1415 ,set)
1416 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1417echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1418 ac_cache_corrupted=: ;;
1419 ,);;
1420 *)
1421 if test "x$ac_old_val" != "x$ac_new_val"; then
6194aaab
L
1422 # differences in whitespace do not lead to failure.
1423 ac_old_val_w=`echo x $ac_old_val`
1424 ac_new_val_w=`echo x $ac_new_val`
1425 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1426 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
13b2be9c 1427echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
6194aaab
L
1428 ac_cache_corrupted=:
1429 else
1430 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1431echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1432 eval $ac_var=\$ac_old_val
1433 fi
1434 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1435echo "$as_me: former value: \`$ac_old_val'" >&2;}
1436 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1437echo "$as_me: current value: \`$ac_new_val'" >&2;}
13b2be9c
DJ
1438 fi;;
1439 esac
1440 # Pass precious variables to config.status.
1441 if test "$ac_new_set" = set; then
1442 case $ac_new_val in
1443 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1444 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1445 *) ac_arg=$ac_var=$ac_new_val ;;
1446 esac
1447 case " $ac_configure_args " in
1448 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1449 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1450 esac
1451 fi
1452done
1453if $ac_cache_corrupted; then
7a283e07
RW
1454 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1455echo "$as_me: error: in \`$ac_pwd':" >&2;}
13b2be9c
DJ
1456 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1457echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1458 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1459echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1460 { (exit 1); exit 1; }; }
1461fi
1462
1463ac_ext=c
1464ac_cpp='$CPP $CPPFLAGS'
1465ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1466ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1467ac_compiler_gnu=$ac_cv_c_compiler_gnu
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
7a283e07
RW
1485
1486
1487
13b2be9c 1488
da594c4a 1489
13b2be9c
DJ
1490
1491
1492ac_aux_dir=
1493for ac_dir in .. $srcdir/..; do
1494 if test -f $ac_dir/install-sh; then
1495 ac_aux_dir=$ac_dir
1496 ac_install_sh="$ac_aux_dir/install-sh -c"
1497 break
1498 elif test -f $ac_dir/install.sh; then
1499 ac_aux_dir=$ac_dir
1500 ac_install_sh="$ac_aux_dir/install.sh -c"
1501 break
1502 elif test -f $ac_dir/shtool; then
1503 ac_aux_dir=$ac_dir
1504 ac_install_sh="$ac_aux_dir/shtool install -c"
1505 break
1506 fi
1507done
1508if test -z "$ac_aux_dir"; then
1509 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
1510echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
1511 { (exit 1); exit 1; }; }
1512fi
1513ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1514ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1515ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1516
1517# Make sure we can run config.sub.
1518$ac_config_sub sun4 >/dev/null 2>&1 ||
1519 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1520echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1521 { (exit 1); exit 1; }; }
1522
1523echo "$as_me:$LINENO: checking build system type" >&5
1524echo $ECHO_N "checking build system type... $ECHO_C" >&6
1525if test "${ac_cv_build+set}" = set; then
1526 echo $ECHO_N "(cached) $ECHO_C" >&6
1527else
1528 ac_cv_build_alias=$build_alias
1529test -z "$ac_cv_build_alias" &&
1530 ac_cv_build_alias=`$ac_config_guess`
1531test -z "$ac_cv_build_alias" &&
1532 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1533echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1534 { (exit 1); exit 1; }; }
1535ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1536 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1537echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1538 { (exit 1); exit 1; }; }
1539
1540fi
1541echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1542echo "${ECHO_T}$ac_cv_build" >&6
1543build=$ac_cv_build
1544build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1545build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1546build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1547
1548
1549echo "$as_me:$LINENO: checking host system type" >&5
1550echo $ECHO_N "checking host system type... $ECHO_C" >&6
1551if test "${ac_cv_host+set}" = set; then
1552 echo $ECHO_N "(cached) $ECHO_C" >&6
1553else
1554 ac_cv_host_alias=$host_alias
1555test -z "$ac_cv_host_alias" &&
1556 ac_cv_host_alias=$ac_cv_build_alias
1557ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1558 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1559echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1560 { (exit 1); exit 1; }; }
1561
1562fi
1563echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1564echo "${ECHO_T}$ac_cv_host" >&6
1565host=$ac_cv_host
1566host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1567host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1568host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1569
1570
1571echo "$as_me:$LINENO: checking target system type" >&5
1572echo $ECHO_N "checking target system type... $ECHO_C" >&6
1573if test "${ac_cv_target+set}" = set; then
1574 echo $ECHO_N "(cached) $ECHO_C" >&6
1575else
1576 ac_cv_target_alias=$target_alias
1577test "x$ac_cv_target_alias" = "x" &&
1578 ac_cv_target_alias=$ac_cv_host_alias
1579ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1580 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1581echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1582 { (exit 1); exit 1; }; }
1583
1584fi
1585echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1586echo "${ECHO_T}$ac_cv_target" >&6
1587target=$ac_cv_target
1588target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1589target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1590target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1591
1592
1593# The aliases save the names the user supplied, while $host etc.
1594# will get canonicalized.
1595test -n "$target_alias" &&
1596 test "$program_prefix$program_suffix$program_transform_name" = \
1597 NONENONEs,x,x, &&
1598 program_prefix=${target_alias}-
1599ac_ext=c
1600ac_cpp='$CPP $CPPFLAGS'
1601ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1602ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1603ac_compiler_gnu=$ac_cv_c_compiler_gnu
1604if test -n "$ac_tool_prefix"; then
1605 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1606set dummy ${ac_tool_prefix}gcc; ac_word=$2
1607echo "$as_me:$LINENO: checking for $ac_word" >&5
1608echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1609if test "${ac_cv_prog_CC+set}" = set; then
1610 echo $ECHO_N "(cached) $ECHO_C" >&6
1611else
1612 if test -n "$CC"; then
1613 ac_cv_prog_CC="$CC" # Let the user override the test.
1614else
1615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1616for as_dir in $PATH
1617do
1618 IFS=$as_save_IFS
1619 test -z "$as_dir" && as_dir=.
1620 for ac_exec_ext in '' $ac_executable_extensions; do
1621 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1622 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1624 break 2
1625 fi
1626done
1627done
1628
1629fi
1630fi
1631CC=$ac_cv_prog_CC
1632if test -n "$CC"; then
1633 echo "$as_me:$LINENO: result: $CC" >&5
1634echo "${ECHO_T}$CC" >&6
1635else
1636 echo "$as_me:$LINENO: result: no" >&5
1637echo "${ECHO_T}no" >&6
1638fi
1639
1640fi
1641if test -z "$ac_cv_prog_CC"; then
1642 ac_ct_CC=$CC
1643 # Extract the first word of "gcc", so it can be a program name with args.
1644set dummy gcc; ac_word=$2
1645echo "$as_me:$LINENO: checking for $ac_word" >&5
1646echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1647if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1648 echo $ECHO_N "(cached) $ECHO_C" >&6
1649else
1650 if test -n "$ac_ct_CC"; then
1651 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1652else
1653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1654for as_dir in $PATH
1655do
1656 IFS=$as_save_IFS
1657 test -z "$as_dir" && as_dir=.
1658 for ac_exec_ext in '' $ac_executable_extensions; do
1659 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1660 ac_cv_prog_ac_ct_CC="gcc"
1661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1662 break 2
1663 fi
1664done
1665done
1666
1667fi
1668fi
1669ac_ct_CC=$ac_cv_prog_ac_ct_CC
1670if test -n "$ac_ct_CC"; then
1671 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1672echo "${ECHO_T}$ac_ct_CC" >&6
1673else
1674 echo "$as_me:$LINENO: result: no" >&5
1675echo "${ECHO_T}no" >&6
1676fi
1677
1678 CC=$ac_ct_CC
1679else
1680 CC="$ac_cv_prog_CC"
1681fi
1682
1683if test -z "$CC"; then
1684 if test -n "$ac_tool_prefix"; then
1685 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1686set dummy ${ac_tool_prefix}cc; ac_word=$2
1687echo "$as_me:$LINENO: checking for $ac_word" >&5
1688echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1689if test "${ac_cv_prog_CC+set}" = set; then
1690 echo $ECHO_N "(cached) $ECHO_C" >&6
1691else
1692 if test -n "$CC"; then
1693 ac_cv_prog_CC="$CC" # Let the user override the test.
1694else
1695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1696for as_dir in $PATH
1697do
1698 IFS=$as_save_IFS
1699 test -z "$as_dir" && as_dir=.
1700 for ac_exec_ext in '' $ac_executable_extensions; do
1701 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1702 ac_cv_prog_CC="${ac_tool_prefix}cc"
1703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1704 break 2
1705 fi
1706done
1707done
1708
1709fi
1710fi
1711CC=$ac_cv_prog_CC
1712if test -n "$CC"; then
1713 echo "$as_me:$LINENO: result: $CC" >&5
1714echo "${ECHO_T}$CC" >&6
1715else
1716 echo "$as_me:$LINENO: result: no" >&5
1717echo "${ECHO_T}no" >&6
1718fi
1719
1720fi
1721if test -z "$ac_cv_prog_CC"; then
1722 ac_ct_CC=$CC
1723 # Extract the first word of "cc", so it can be a program name with args.
1724set dummy cc; ac_word=$2
1725echo "$as_me:$LINENO: checking for $ac_word" >&5
1726echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1727if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1728 echo $ECHO_N "(cached) $ECHO_C" >&6
1729else
1730 if test -n "$ac_ct_CC"; then
1731 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1732else
1733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1734for as_dir in $PATH
1735do
1736 IFS=$as_save_IFS
1737 test -z "$as_dir" && as_dir=.
1738 for ac_exec_ext in '' $ac_executable_extensions; do
1739 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1740 ac_cv_prog_ac_ct_CC="cc"
1741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1742 break 2
1743 fi
1744done
1745done
1746
1747fi
1748fi
1749ac_ct_CC=$ac_cv_prog_ac_ct_CC
1750if test -n "$ac_ct_CC"; then
1751 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1752echo "${ECHO_T}$ac_ct_CC" >&6
1753else
1754 echo "$as_me:$LINENO: result: no" >&5
1755echo "${ECHO_T}no" >&6
1756fi
1757
1758 CC=$ac_ct_CC
1759else
1760 CC="$ac_cv_prog_CC"
1761fi
1762
1763fi
1764if test -z "$CC"; then
1765 # Extract the first word of "cc", so it can be a program name with args.
1766set dummy cc; ac_word=$2
1767echo "$as_me:$LINENO: checking for $ac_word" >&5
1768echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1769if test "${ac_cv_prog_CC+set}" = set; then
1770 echo $ECHO_N "(cached) $ECHO_C" >&6
1771else
1772 if test -n "$CC"; then
1773 ac_cv_prog_CC="$CC" # Let the user override the test.
1774else
1775 ac_prog_rejected=no
1776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1777for as_dir in $PATH
1778do
1779 IFS=$as_save_IFS
1780 test -z "$as_dir" && as_dir=.
1781 for ac_exec_ext in '' $ac_executable_extensions; do
1782 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1783 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1784 ac_prog_rejected=yes
1785 continue
1786 fi
1787 ac_cv_prog_CC="cc"
1788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1789 break 2
1790 fi
1791done
1792done
1793
1794if test $ac_prog_rejected = yes; then
1795 # We found a bogon in the path, so make sure we never use it.
1796 set dummy $ac_cv_prog_CC
1797 shift
1798 if test $# != 0; then
1799 # We chose a different compiler from the bogus one.
1800 # However, it has the same basename, so the bogon will be chosen
1801 # first if we set CC to just the basename; use the full file name.
1802 shift
1803 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1804 fi
1805fi
1806fi
1807fi
1808CC=$ac_cv_prog_CC
1809if test -n "$CC"; then
1810 echo "$as_me:$LINENO: result: $CC" >&5
1811echo "${ECHO_T}$CC" >&6
1812else
1813 echo "$as_me:$LINENO: result: no" >&5
1814echo "${ECHO_T}no" >&6
1815fi
1816
1817fi
1818if test -z "$CC"; then
1819 if test -n "$ac_tool_prefix"; then
1820 for ac_prog in cl
1821 do
1822 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1823set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1824echo "$as_me:$LINENO: checking for $ac_word" >&5
1825echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1826if test "${ac_cv_prog_CC+set}" = set; then
1827 echo $ECHO_N "(cached) $ECHO_C" >&6
1828else
1829 if test -n "$CC"; then
1830 ac_cv_prog_CC="$CC" # Let the user override the test.
1831else
1832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1833for as_dir in $PATH
1834do
1835 IFS=$as_save_IFS
1836 test -z "$as_dir" && as_dir=.
1837 for ac_exec_ext in '' $ac_executable_extensions; do
1838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1839 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1841 break 2
1842 fi
1843done
1844done
1845
1846fi
1847fi
1848CC=$ac_cv_prog_CC
1849if test -n "$CC"; then
1850 echo "$as_me:$LINENO: result: $CC" >&5
1851echo "${ECHO_T}$CC" >&6
1852else
1853 echo "$as_me:$LINENO: result: no" >&5
1854echo "${ECHO_T}no" >&6
1855fi
1856
1857 test -n "$CC" && break
1858 done
1859fi
1860if test -z "$CC"; then
1861 ac_ct_CC=$CC
1862 for ac_prog in cl
1863do
1864 # Extract the first word of "$ac_prog", so it can be a program name with args.
1865set dummy $ac_prog; ac_word=$2
1866echo "$as_me:$LINENO: checking for $ac_word" >&5
1867echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1868if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1869 echo $ECHO_N "(cached) $ECHO_C" >&6
1870else
1871 if test -n "$ac_ct_CC"; then
1872 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1873else
1874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1875for as_dir in $PATH
1876do
1877 IFS=$as_save_IFS
1878 test -z "$as_dir" && as_dir=.
1879 for ac_exec_ext in '' $ac_executable_extensions; do
1880 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1881 ac_cv_prog_ac_ct_CC="$ac_prog"
1882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1883 break 2
1884 fi
1885done
1886done
1887
1888fi
1889fi
1890ac_ct_CC=$ac_cv_prog_ac_ct_CC
1891if test -n "$ac_ct_CC"; then
1892 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1893echo "${ECHO_T}$ac_ct_CC" >&6
1894else
1895 echo "$as_me:$LINENO: result: no" >&5
1896echo "${ECHO_T}no" >&6
1897fi
1898
1899 test -n "$ac_ct_CC" && break
1900done
1901
1902 CC=$ac_ct_CC
1903fi
1904
1905fi
1906
1907
7a283e07
RW
1908test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1909echo "$as_me: error: in \`$ac_pwd':" >&2;}
1910{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
13b2be9c
DJ
1911See \`config.log' for more details." >&5
1912echo "$as_me: error: no acceptable C compiler found in \$PATH
1913See \`config.log' for more details." >&2;}
7a283e07 1914 { (exit 1); exit 1; }; }; }
13b2be9c
DJ
1915
1916# Provide some information about the compiler.
1917echo "$as_me:$LINENO:" \
1918 "checking for C compiler version" >&5
1919ac_compiler=`set X $ac_compile; echo $2`
1920{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1921 (eval $ac_compiler --version </dev/null >&5) 2>&5
1922 ac_status=$?
1923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1924 (exit $ac_status); }
1925{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1926 (eval $ac_compiler -v </dev/null >&5) 2>&5
1927 ac_status=$?
1928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1929 (exit $ac_status); }
1930{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1931 (eval $ac_compiler -V </dev/null >&5) 2>&5
1932 ac_status=$?
1933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1934 (exit $ac_status); }
1935
1936cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
1937/* confdefs.h. */
1938_ACEOF
1939cat confdefs.h >>conftest.$ac_ext
1940cat >>conftest.$ac_ext <<_ACEOF
1941/* end confdefs.h. */
1942
1943int
1944main ()
1945{
1946
1947 ;
1948 return 0;
1949}
1950_ACEOF
1951ac_clean_files_save=$ac_clean_files
1952ac_clean_files="$ac_clean_files a.out a.exe b.out"
1953# Try to create an executable without -o first, disregard a.out.
1954# It will help us diagnose broken compilers, and finding out an intuition
1955# of exeext.
ab509236
L
1956echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1957echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
13b2be9c
DJ
1958ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1959if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1960 (eval $ac_link_default) 2>&5
1961 ac_status=$?
1962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1963 (exit $ac_status); }; then
1964 # Find the output, starting from the most likely. This scheme is
1965# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1966# resort.
1967
1968# Be careful to initialize this variable, since it used to be cached.
1969# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1970ac_cv_exeext=
1971# b.out is created by i960 compilers.
1972for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1973do
1974 test -f "$ac_file" || continue
1975 case $ac_file in
1976 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ab509236 1977 ;;
13b2be9c 1978 conftest.$ac_ext )
ab509236
L
1979 # This is the source file.
1980 ;;
13b2be9c 1981 [ab].out )
ab509236
L
1982 # We found the default executable, but exeext='' is most
1983 # certainly right.
1984 break;;
13b2be9c 1985 *.* )
ab509236
L
1986 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1987 # FIXME: I believe we export ac_cv_exeext for Libtool,
1988 # but it would be cool to find out if it's true. Does anybody
1989 # maintain Libtool? --akim.
1990 export ac_cv_exeext
1991 break;;
13b2be9c 1992 * )
ab509236 1993 break;;
13b2be9c
DJ
1994 esac
1995done
1996else
1997 echo "$as_me: failed program was:" >&5
1998sed 's/^/| /' conftest.$ac_ext >&5
1999
7a283e07
RW
2000{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2001echo "$as_me: error: in \`$ac_pwd':" >&2;}
13b2be9c
DJ
2002{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2003See \`config.log' for more details." >&5
2004echo "$as_me: error: C compiler cannot create executables
2005See \`config.log' for more details." >&2;}
7a283e07 2006 { (exit 77); exit 77; }; }; }
13b2be9c
DJ
2007fi
2008
2009ac_exeext=$ac_cv_exeext
2010echo "$as_me:$LINENO: result: $ac_file" >&5
2011echo "${ECHO_T}$ac_file" >&6
2012
2013# Check the compiler produces executables we can run. If not, either
2014# the compiler is broken, or we cross compile.
2015echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2016echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2017# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2018# If not cross compiling, check that we can run a simple program.
2019if test "$cross_compiling" != yes; then
2020 if { ac_try='./$ac_file'
2021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2022 (eval $ac_try) 2>&5
2023 ac_status=$?
2024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2025 (exit $ac_status); }; }; then
2026 cross_compiling=no
2027 else
2028 if test "$cross_compiling" = maybe; then
2029 cross_compiling=yes
2030 else
7a283e07
RW
2031 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2032echo "$as_me: error: in \`$ac_pwd':" >&2;}
2033{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
13b2be9c
DJ
2034If you meant to cross compile, use \`--host'.
2035See \`config.log' for more details." >&5
2036echo "$as_me: error: cannot run C compiled programs.
2037If you meant to cross compile, use \`--host'.
2038See \`config.log' for more details." >&2;}
7a283e07 2039 { (exit 1); exit 1; }; }; }
13b2be9c
DJ
2040 fi
2041 fi
2042fi
2043echo "$as_me:$LINENO: result: yes" >&5
2044echo "${ECHO_T}yes" >&6
2045
2046rm -f a.out a.exe conftest$ac_cv_exeext b.out
2047ac_clean_files=$ac_clean_files_save
2048# Check the compiler produces executables we can run. If not, either
2049# the compiler is broken, or we cross compile.
2050echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2051echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2052echo "$as_me:$LINENO: result: $cross_compiling" >&5
2053echo "${ECHO_T}$cross_compiling" >&6
2054
2055echo "$as_me:$LINENO: checking for suffix of executables" >&5
2056echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2057if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2058 (eval $ac_link) 2>&5
2059 ac_status=$?
2060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2061 (exit $ac_status); }; then
2062 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2063# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2064# work properly (i.e., refer to `conftest.exe'), while it won't with
2065# `rm'.
2066for ac_file in conftest.exe conftest conftest.*; do
2067 test -f "$ac_file" || continue
2068 case $ac_file in
2069 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2070 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ab509236
L
2071 export ac_cv_exeext
2072 break;;
13b2be9c
DJ
2073 * ) break;;
2074 esac
2075done
2076else
7a283e07
RW
2077 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2078echo "$as_me: error: in \`$ac_pwd':" >&2;}
2079{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
13b2be9c
DJ
2080See \`config.log' for more details." >&5
2081echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2082See \`config.log' for more details." >&2;}
7a283e07 2083 { (exit 1); exit 1; }; }; }
13b2be9c
DJ
2084fi
2085
2086rm -f conftest$ac_cv_exeext
2087echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2088echo "${ECHO_T}$ac_cv_exeext" >&6
2089
2090rm -f conftest.$ac_ext
2091EXEEXT=$ac_cv_exeext
2092ac_exeext=$EXEEXT
2093echo "$as_me:$LINENO: checking for suffix of object files" >&5
2094echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2095if test "${ac_cv_objext+set}" = set; then
2096 echo $ECHO_N "(cached) $ECHO_C" >&6
2097else
2098 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
2099/* confdefs.h. */
2100_ACEOF
2101cat confdefs.h >>conftest.$ac_ext
2102cat >>conftest.$ac_ext <<_ACEOF
2103/* end confdefs.h. */
2104
2105int
2106main ()
2107{
2108
2109 ;
2110 return 0;
2111}
2112_ACEOF
2113rm -f conftest.o conftest.obj
2114if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2115 (eval $ac_compile) 2>&5
2116 ac_status=$?
2117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118 (exit $ac_status); }; then
2119 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2120 case $ac_file in
2121 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2122 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2123 break;;
2124 esac
2125done
2126else
2127 echo "$as_me: failed program was:" >&5
2128sed 's/^/| /' conftest.$ac_ext >&5
2129
7a283e07
RW
2130{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2131echo "$as_me: error: in \`$ac_pwd':" >&2;}
13b2be9c
DJ
2132{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2133See \`config.log' for more details." >&5
2134echo "$as_me: error: cannot compute suffix of object files: cannot compile
2135See \`config.log' for more details." >&2;}
7a283e07 2136 { (exit 1); exit 1; }; }; }
13b2be9c
DJ
2137fi
2138
2139rm -f conftest.$ac_cv_objext conftest.$ac_ext
2140fi
2141echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2142echo "${ECHO_T}$ac_cv_objext" >&6
2143OBJEXT=$ac_cv_objext
2144ac_objext=$OBJEXT
2145echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2146echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2147if test "${ac_cv_c_compiler_gnu+set}" = set; then
2148 echo $ECHO_N "(cached) $ECHO_C" >&6
2149else
2150 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
2151/* confdefs.h. */
2152_ACEOF
2153cat confdefs.h >>conftest.$ac_ext
2154cat >>conftest.$ac_ext <<_ACEOF
2155/* end confdefs.h. */
2156
2157int
2158main ()
2159{
2160#ifndef __GNUC__
2161 choke me
2162#endif
2163
2164 ;
2165 return 0;
2166}
2167_ACEOF
2168rm -f conftest.$ac_objext
2169if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 2170 (eval $ac_compile) 2>conftest.er1
13b2be9c 2171 ac_status=$?
ab509236
L
2172 grep -v '^ *+' conftest.er1 >conftest.err
2173 rm -f conftest.er1
2174 cat conftest.err >&5
13b2be9c
DJ
2175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176 (exit $ac_status); } &&
1ad12f97
NC
2177 { ac_try='test -z "$ac_c_werror_flag"
2178 || test ! -s conftest.err'
ab509236
L
2179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2180 (eval $ac_try) 2>&5
2181 ac_status=$?
2182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183 (exit $ac_status); }; } &&
2184 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
2185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2186 (eval $ac_try) 2>&5
2187 ac_status=$?
2188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189 (exit $ac_status); }; }; then
2190 ac_compiler_gnu=yes
2191else
2192 echo "$as_me: failed program was:" >&5
2193sed 's/^/| /' conftest.$ac_ext >&5
2194
2195ac_compiler_gnu=no
2196fi
ab509236 2197rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
2198ac_cv_c_compiler_gnu=$ac_compiler_gnu
2199
2200fi
2201echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2202echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2203GCC=`test $ac_compiler_gnu = yes && echo yes`
2204ac_test_CFLAGS=${CFLAGS+set}
2205ac_save_CFLAGS=$CFLAGS
2206CFLAGS="-g"
2207echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2208echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2209if test "${ac_cv_prog_cc_g+set}" = set; then
2210 echo $ECHO_N "(cached) $ECHO_C" >&6
2211else
2212 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
2213/* confdefs.h. */
2214_ACEOF
2215cat confdefs.h >>conftest.$ac_ext
2216cat >>conftest.$ac_ext <<_ACEOF
2217/* end confdefs.h. */
2218
2219int
2220main ()
2221{
2222
2223 ;
2224 return 0;
2225}
2226_ACEOF
2227rm -f conftest.$ac_objext
2228if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 2229 (eval $ac_compile) 2>conftest.er1
13b2be9c 2230 ac_status=$?
ab509236
L
2231 grep -v '^ *+' conftest.er1 >conftest.err
2232 rm -f conftest.er1
2233 cat conftest.err >&5
13b2be9c
DJ
2234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235 (exit $ac_status); } &&
1ad12f97
NC
2236 { ac_try='test -z "$ac_c_werror_flag"
2237 || test ! -s conftest.err'
ab509236
L
2238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2239 (eval $ac_try) 2>&5
2240 ac_status=$?
2241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242 (exit $ac_status); }; } &&
2243 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
2244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2245 (eval $ac_try) 2>&5
2246 ac_status=$?
2247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248 (exit $ac_status); }; }; then
2249 ac_cv_prog_cc_g=yes
2250else
2251 echo "$as_me: failed program was:" >&5
2252sed 's/^/| /' conftest.$ac_ext >&5
2253
2254ac_cv_prog_cc_g=no
2255fi
ab509236 2256rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
2257fi
2258echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2259echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2260if test "$ac_test_CFLAGS" = set; then
2261 CFLAGS=$ac_save_CFLAGS
2262elif test $ac_cv_prog_cc_g = yes; then
2263 if test "$GCC" = yes; then
2264 CFLAGS="-g -O2"
2265 else
2266 CFLAGS="-g"
2267 fi
2268else
2269 if test "$GCC" = yes; then
2270 CFLAGS="-O2"
2271 else
2272 CFLAGS=
2273 fi
2274fi
2275echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2276echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2277if test "${ac_cv_prog_cc_stdc+set}" = set; then
2278 echo $ECHO_N "(cached) $ECHO_C" >&6
2279else
2280 ac_cv_prog_cc_stdc=no
2281ac_save_CC=$CC
2282cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
2283/* confdefs.h. */
2284_ACEOF
2285cat confdefs.h >>conftest.$ac_ext
2286cat >>conftest.$ac_ext <<_ACEOF
2287/* end confdefs.h. */
2288#include <stdarg.h>
2289#include <stdio.h>
2290#include <sys/types.h>
2291#include <sys/stat.h>
2292/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2293struct buf { int x; };
2294FILE * (*rcsopen) (struct buf *, struct stat *, int);
2295static char *e (p, i)
2296 char **p;
2297 int i;
2298{
2299 return p[i];
2300}
2301static char *f (char * (*g) (char **, int), char **p, ...)
2302{
2303 char *s;
2304 va_list v;
2305 va_start (v,p);
2306 s = g (p, va_arg (v,int));
2307 va_end (v);
2308 return s;
2309}
ab509236
L
2310
2311/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2312 function prototypes and stuff, but not '\xHH' hex character constants.
2313 These don't provoke an error unfortunately, instead are silently treated
2314 as 'x'. The following induces an error, until -std1 is added to get
2315 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2316 array size at least. It's necessary to write '\x00'==0 to get something
2317 that's true only with -std1. */
2318int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2319
13b2be9c
DJ
2320int test (int i, double x);
2321struct s1 {int (*f) (int a);};
2322struct s2 {int (*f) (double a);};
2323int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2324int argc;
2325char **argv;
2326int
2327main ()
2328{
2329return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2330 ;
2331 return 0;
2332}
2333_ACEOF
2334# Don't try gcc -ansi; that turns off useful extensions and
2335# breaks some systems' header files.
2336# AIX -qlanglvl=ansi
2337# Ultrix and OSF/1 -std1
2338# HP-UX 10.20 and later -Ae
2339# HP-UX older versions -Aa -D_HPUX_SOURCE
2340# SVR4 -Xc -D__EXTENSIONS__
2341for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2342do
2343 CC="$ac_save_CC $ac_arg"
2344 rm -f conftest.$ac_objext
2345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 2346 (eval $ac_compile) 2>conftest.er1
13b2be9c 2347 ac_status=$?
ab509236
L
2348 grep -v '^ *+' conftest.er1 >conftest.err
2349 rm -f conftest.er1
2350 cat conftest.err >&5
13b2be9c
DJ
2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352 (exit $ac_status); } &&
1ad12f97
NC
2353 { ac_try='test -z "$ac_c_werror_flag"
2354 || test ! -s conftest.err'
ab509236
L
2355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2356 (eval $ac_try) 2>&5
2357 ac_status=$?
2358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359 (exit $ac_status); }; } &&
2360 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
2361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2362 (eval $ac_try) 2>&5
2363 ac_status=$?
2364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365 (exit $ac_status); }; }; then
2366 ac_cv_prog_cc_stdc=$ac_arg
2367break
2368else
2369 echo "$as_me: failed program was:" >&5
2370sed 's/^/| /' conftest.$ac_ext >&5
2371
2372fi
ab509236 2373rm -f conftest.err conftest.$ac_objext
13b2be9c
DJ
2374done
2375rm -f conftest.$ac_ext conftest.$ac_objext
2376CC=$ac_save_CC
2377
2378fi
2379
2380case "x$ac_cv_prog_cc_stdc" in
2381 x|xno)
2382 echo "$as_me:$LINENO: result: none needed" >&5
2383echo "${ECHO_T}none needed" >&6 ;;
2384 *)
2385 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2386echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2387 CC="$CC $ac_cv_prog_cc_stdc" ;;
2388esac
2389
2390# Some people use a C++ compiler to compile C. Since we use `exit',
2391# in C++ we need to declare it. In case someone uses the same compiler
2392# for both compiling C and C++ we need to have the C++ compiler decide
2393# the declaration of exit, since it's the most demanding environment.
2394cat >conftest.$ac_ext <<_ACEOF
2395#ifndef __cplusplus
2396 choke me
2397#endif
2398_ACEOF
2399rm -f conftest.$ac_objext
2400if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 2401 (eval $ac_compile) 2>conftest.er1
13b2be9c 2402 ac_status=$?
ab509236
L
2403 grep -v '^ *+' conftest.er1 >conftest.err
2404 rm -f conftest.er1
2405 cat conftest.err >&5
13b2be9c
DJ
2406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407 (exit $ac_status); } &&
1ad12f97
NC
2408 { ac_try='test -z "$ac_c_werror_flag"
2409 || test ! -s conftest.err'
ab509236
L
2410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2411 (eval $ac_try) 2>&5
2412 ac_status=$?
2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 (exit $ac_status); }; } &&
2415 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
2416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2417 (eval $ac_try) 2>&5
2418 ac_status=$?
2419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420 (exit $ac_status); }; }; then
2421 for ac_declaration in \
ab509236 2422 '' \
13b2be9c
DJ
2423 'extern "C" void std::exit (int) throw (); using std::exit;' \
2424 'extern "C" void std::exit (int); using std::exit;' \
2425 'extern "C" void exit (int) throw ();' \
2426 'extern "C" void exit (int);' \
2427 'void exit (int);'
2428do
2429 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
2430/* confdefs.h. */
2431_ACEOF
2432cat confdefs.h >>conftest.$ac_ext
2433cat >>conftest.$ac_ext <<_ACEOF
2434/* end confdefs.h. */
13dfd2d0 2435$ac_declaration
ab509236 2436#include <stdlib.h>
13b2be9c
DJ
2437int
2438main ()
2439{
2440exit (42);
2441 ;
2442 return 0;
2443}
2444_ACEOF
2445rm -f conftest.$ac_objext
2446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 2447 (eval $ac_compile) 2>conftest.er1
13b2be9c 2448 ac_status=$?
ab509236
L
2449 grep -v '^ *+' conftest.er1 >conftest.err
2450 rm -f conftest.er1
2451 cat conftest.err >&5
13b2be9c
DJ
2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); } &&
1ad12f97
NC
2454 { ac_try='test -z "$ac_c_werror_flag"
2455 || test ! -s conftest.err'
ab509236
L
2456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2457 (eval $ac_try) 2>&5
2458 ac_status=$?
2459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460 (exit $ac_status); }; } &&
2461 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
2462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2463 (eval $ac_try) 2>&5
2464 ac_status=$?
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); }; }; then
2467 :
2468else
2469 echo "$as_me: failed program was:" >&5
2470sed 's/^/| /' conftest.$ac_ext >&5
2471
2472continue
2473fi
ab509236 2474rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c 2475 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
2476/* confdefs.h. */
2477_ACEOF
2478cat confdefs.h >>conftest.$ac_ext
2479cat >>conftest.$ac_ext <<_ACEOF
2480/* end confdefs.h. */
2481$ac_declaration
2482int
2483main ()
2484{
2485exit (42);
2486 ;
2487 return 0;
2488}
2489_ACEOF
2490rm -f conftest.$ac_objext
2491if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 2492 (eval $ac_compile) 2>conftest.er1
13b2be9c 2493 ac_status=$?
ab509236
L
2494 grep -v '^ *+' conftest.er1 >conftest.err
2495 rm -f conftest.er1
2496 cat conftest.err >&5
13b2be9c
DJ
2497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498 (exit $ac_status); } &&
1ad12f97
NC
2499 { ac_try='test -z "$ac_c_werror_flag"
2500 || test ! -s conftest.err'
ab509236
L
2501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2502 (eval $ac_try) 2>&5
2503 ac_status=$?
2504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505 (exit $ac_status); }; } &&
2506 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
2507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2508 (eval $ac_try) 2>&5
2509 ac_status=$?
2510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511 (exit $ac_status); }; }; then
2512 break
2513else
2514 echo "$as_me: failed program was:" >&5
2515sed 's/^/| /' conftest.$ac_ext >&5
2516
2517fi
ab509236 2518rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
2519done
2520rm -f conftest*
2521if test -n "$ac_declaration"; then
2522 echo '#ifdef __cplusplus' >>confdefs.h
2523 echo $ac_declaration >>confdefs.h
2524 echo '#endif' >>confdefs.h
2525fi
2526
2527else
2528 echo "$as_me: failed program was:" >&5
2529sed 's/^/| /' conftest.$ac_ext >&5
2530
2531fi
ab509236 2532rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
2533ac_ext=c
2534ac_cpp='$CPP $CPPFLAGS'
2535ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2536ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2537ac_compiler_gnu=$ac_cv_c_compiler_gnu
2538
2539
ab509236
L
2540echo "$as_me:$LINENO: checking for library containing strerror" >&5
2541echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2542if test "${ac_cv_search_strerror+set}" = set; then
13b2be9c
DJ
2543 echo $ECHO_N "(cached) $ECHO_C" >&6
2544else
ab509236
L
2545 ac_func_search_save_LIBS=$LIBS
2546ac_cv_search_strerror=no
13b2be9c 2547cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
2548/* confdefs.h. */
2549_ACEOF
2550cat confdefs.h >>conftest.$ac_ext
2551cat >>conftest.$ac_ext <<_ACEOF
2552/* end confdefs.h. */
2553
2554/* Override any gcc2 internal prototype to avoid an error. */
2555#ifdef __cplusplus
2556extern "C"
2557#endif
2558/* We use char because int might match the return type of a gcc2
2559 builtin and then its argument prototype would still apply. */
2560char strerror ();
2561int
2562main ()
2563{
2564strerror ();
2565 ;
2566 return 0;
2567}
2568_ACEOF
2569rm -f conftest.$ac_objext conftest$ac_exeext
2570if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 2571 (eval $ac_link) 2>conftest.er1
13b2be9c 2572 ac_status=$?
ab509236
L
2573 grep -v '^ *+' conftest.er1 >conftest.err
2574 rm -f conftest.er1
2575 cat conftest.err >&5
13b2be9c
DJ
2576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577 (exit $ac_status); } &&
1ad12f97
NC
2578 { ac_try='test -z "$ac_c_werror_flag"
2579 || test ! -s conftest.err'
ab509236
L
2580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2581 (eval $ac_try) 2>&5
2582 ac_status=$?
2583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584 (exit $ac_status); }; } &&
2585 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
2586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2587 (eval $ac_try) 2>&5
2588 ac_status=$?
2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 (exit $ac_status); }; }; then
ab509236 2591 ac_cv_search_strerror="none required"
13b2be9c
DJ
2592else
2593 echo "$as_me: failed program was:" >&5
2594sed 's/^/| /' conftest.$ac_ext >&5
2595
13b2be9c 2596fi
ab509236
L
2597rm -f conftest.err conftest.$ac_objext \
2598 conftest$ac_exeext conftest.$ac_ext
2599if test "$ac_cv_search_strerror" = no; then
2600 for ac_lib in cposix; do
2601 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2602 cat >conftest.$ac_ext <<_ACEOF
2603/* confdefs.h. */
2604_ACEOF
2605cat confdefs.h >>conftest.$ac_ext
2606cat >>conftest.$ac_ext <<_ACEOF
2607/* end confdefs.h. */
2608
2609/* Override any gcc2 internal prototype to avoid an error. */
2610#ifdef __cplusplus
2611extern "C"
2612#endif
2613/* We use char because int might match the return type of a gcc2
2614 builtin and then its argument prototype would still apply. */
2615char strerror ();
2616int
2617main ()
2618{
2619strerror ();
2620 ;
2621 return 0;
2622}
2623_ACEOF
2624rm -f conftest.$ac_objext conftest$ac_exeext
2625if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2626 (eval $ac_link) 2>conftest.er1
2627 ac_status=$?
2628 grep -v '^ *+' conftest.er1 >conftest.err
2629 rm -f conftest.er1
2630 cat conftest.err >&5
2631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632 (exit $ac_status); } &&
1ad12f97
NC
2633 { ac_try='test -z "$ac_c_werror_flag"
2634 || test ! -s conftest.err'
ab509236
L
2635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2636 (eval $ac_try) 2>&5
2637 ac_status=$?
2638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639 (exit $ac_status); }; } &&
2640 { ac_try='test -s conftest$ac_exeext'
2641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2642 (eval $ac_try) 2>&5
2643 ac_status=$?
2644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2645 (exit $ac_status); }; }; then
2646 ac_cv_search_strerror="-l$ac_lib"
2647break
2648else
2649 echo "$as_me: failed program was:" >&5
2650sed 's/^/| /' conftest.$ac_ext >&5
2651
13b2be9c 2652fi
ab509236
L
2653rm -f conftest.err conftest.$ac_objext \
2654 conftest$ac_exeext conftest.$ac_ext
2655 done
13b2be9c 2656fi
ab509236
L
2657LIBS=$ac_func_search_save_LIBS
2658fi
2659echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2660echo "${ECHO_T}$ac_cv_search_strerror" >&6
2661if test "$ac_cv_search_strerror" != no; then
2662 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
13b2be9c 2663
ab509236 2664fi
13b2be9c
DJ
2665
2666
2667BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
8ea2b00f 2668am__api_version="1.9"
13b2be9c
DJ
2669# Find a good install program. We prefer a C program (faster),
2670# so one script is as good as another. But avoid the broken or
2671# incompatible versions:
2672# SysV /etc/install, /usr/sbin/install
2673# SunOS /usr/etc/install
2674# IRIX /sbin/install
2675# AIX /bin/install
2676# AmigaOS /C/install, which installs bootblocks on floppy discs
2677# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2678# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2679# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ab509236 2680# OS/2's system install, which has a completely different semantic
13b2be9c 2681# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 2682# Reject install programs that cannot install multiple files.
13b2be9c
DJ
2683echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2684echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2685if test -z "$INSTALL"; then
2686if test "${ac_cv_path_install+set}" = set; then
2687 echo $ECHO_N "(cached) $ECHO_C" >&6
2688else
2689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2690for as_dir in $PATH
2691do
2692 IFS=$as_save_IFS
2693 test -z "$as_dir" && as_dir=.
2694 # Account for people who put trailing slashes in PATH elements.
2695case $as_dir/ in
2696 ./ | .// | /cC/* | \
2697 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ab509236 2698 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
13b2be9c
DJ
2699 /usr/ucb/* ) ;;
2700 *)
2701 # OSF1 and SCO ODT 3.0 have their own names for install.
2702 # Don't use installbsd from OSF since it installs stuff as root
2703 # by default.
2704 for ac_prog in ginstall scoinst install; do
2705 for ac_exec_ext in '' $ac_executable_extensions; do
ab509236
L
2706 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2707 if test $ac_prog = install &&
2708 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2709 # AIX install. It has an incompatible calling convention.
2710 :
2711 elif test $ac_prog = install &&
2712 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2713 # program-specific install script used by HP pwplus--don't use.
2714 :
2715 else
58c85be7
RW
2716 rm -rf conftest.one conftest.two conftest.dir
2717 echo one > conftest.one
2718 echo two > conftest.two
2719 mkdir conftest.dir
2720 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2721 test -s conftest.one && test -s conftest.two &&
2722 test -s conftest.dir/conftest.one &&
2723 test -s conftest.dir/conftest.two
2724 then
2725 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2726 break 3
2727 fi
ab509236
L
2728 fi
2729 fi
13b2be9c
DJ
2730 done
2731 done
2732 ;;
2733esac
2734done
2735
58c85be7 2736rm -rf conftest.one conftest.two conftest.dir
252b5132
RH
2737
2738fi
2739 if test "${ac_cv_path_install+set}" = set; then
13b2be9c 2740 INSTALL=$ac_cv_path_install
252b5132 2741 else
58c85be7
RW
2742 # As a last resort, use the slow shell script. Don't cache a
2743 # value for INSTALL within a source directory, because that will
252b5132 2744 # break other packages using the cache if that directory is
58c85be7 2745 # removed, or if the value is a relative name.
13b2be9c 2746 INSTALL=$ac_install_sh
252b5132
RH
2747 fi
2748fi
13b2be9c
DJ
2749echo "$as_me:$LINENO: result: $INSTALL" >&5
2750echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
2751
2752# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2753# It thinks the first close brace ends the variable substitution.
2754test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2755
13b2be9c 2756test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
2757
2758test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2759
13b2be9c
DJ
2760echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2761echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
252b5132
RH
2762# Just in case
2763sleep 1
13b2be9c 2764echo timestamp > conftest.file
252b5132
RH
2765# Do `set' in a subshell so we don't clobber the current shell's
2766# arguments. Must try -L first in case configure is actually a
2767# symlink; some systems play weird games with the mod time of symlinks
2768# (eg FreeBSD returns the mod time of the symlink's containing
2769# directory).
2770if (
13b2be9c 2771 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
252b5132
RH
2772 if test "$*" = "X"; then
2773 # -L didn't work.
13b2be9c 2774 set X `ls -t $srcdir/configure conftest.file`
252b5132 2775 fi
13b2be9c
DJ
2776 rm -f conftest.file
2777 if test "$*" != "X $srcdir/configure conftest.file" \
2778 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
2779
2780 # If neither matched, then we have a broken ls. This can happen
2781 # if, for instance, CONFIG_SHELL is bash and it inherits a
2782 # broken ls alias from the environment. This has actually
2783 # happened. Such a system could not be considered "sane".
13b2be9c
DJ
2784 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2785alias in your environment" >&5
2786echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2787alias in your environment" >&2;}
2788 { (exit 1); exit 1; }; }
252b5132
RH
2789 fi
2790
13b2be9c
DJ
2791 test "$2" = conftest.file
2792 )
2793then
2794 # Ok.
2795 :
2796else
2797 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2798Check your system clock" >&5
2799echo "$as_me: error: newly created file is older than distributed files!
2800Check your system clock" >&2;}
2801 { (exit 1); exit 1; }; }
2802fi
2803echo "$as_me:$LINENO: result: yes" >&5
2804echo "${ECHO_T}yes" >&6
2805test "$program_prefix" != NONE &&
2806 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2807# Use a double $ so make ignores it.
2808test "$program_suffix" != NONE &&
2809 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2810# Double any \ or $. echo might interpret backslashes.
2811# By default was `s,x,x', remove it if useless.
2812cat <<\_ACEOF >conftest.sed
2813s/[\\$]/&&/g;s/;s,x,x,$//
2814_ACEOF
2815program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2816rm conftest.sed
2817
13b2be9c
DJ
2818# expand $ac_aux_dir to an absolute path
2819am_aux_dir=`cd $ac_aux_dir && pwd`
2820
2821test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2822# Use eval to expand $SHELL
2823if eval "$MISSING --run true"; then
2824 am_missing_run="$MISSING --run "
2825else
2826 am_missing_run=
2827 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2828echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2829fi
2830
4b363073 2831if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
8ea2b00f
AM
2832 # We used to keeping the `.' as first argument, in order to
2833 # allow $(mkdir_p) to be used without argument. As in
ab509236 2834 # $(mkdir_p) $(somedir)
8ea2b00f
AM
2835 # where $(somedir) is conditionally defined. However this is wrong
2836 # for two reasons:
2837 # 1. if the package is installed by a user who cannot write `.'
2838 # make install will fail,
2839 # 2. the above comment should most certainly read
2840 # $(mkdir_p) $(DESTDIR)$(somedir)
2841 # so it does not work when $(somedir) is undefined and
2842 # $(DESTDIR) is not.
2843 # To support the latter case, we have to write
2844 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2845 # so the `.' trick is pointless.
2846 mkdir_p='mkdir -p --'
ab509236
L
2847else
2848 # On NextStep and OpenStep, the `mkdir' command does not
2849 # recognize any option. It will interpret all options as
2850 # directories to create, and then abort because `.' already
2851 # exists.
4b363073 2852 for d in ./-p ./--version;
ab509236
L
2853 do
2854 test -d $d && rmdir $d
2855 done
2856 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2857 if test -f "$ac_aux_dir/mkinstalldirs"; then
2858 mkdir_p='$(mkinstalldirs)'
2859 else
2860 mkdir_p='$(install_sh) -d'
2861 fi
2862fi
2863
13b2be9c
DJ
2864for ac_prog in gawk mawk nawk awk
2865do
2866 # Extract the first word of "$ac_prog", so it can be a program name with args.
2867set dummy $ac_prog; ac_word=$2
2868echo "$as_me:$LINENO: checking for $ac_word" >&5
2869echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2870if test "${ac_cv_prog_AWK+set}" = set; then
2871 echo $ECHO_N "(cached) $ECHO_C" >&6
2872else
2873 if test -n "$AWK"; then
2874 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2875else
2876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2877for as_dir in $PATH
2878do
2879 IFS=$as_save_IFS
2880 test -z "$as_dir" && as_dir=.
2881 for ac_exec_ext in '' $ac_executable_extensions; do
2882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2883 ac_cv_prog_AWK="$ac_prog"
2884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2885 break 2
2886 fi
2887done
2888done
2889
2890fi
2891fi
2892AWK=$ac_cv_prog_AWK
2893if test -n "$AWK"; then
2894 echo "$as_me:$LINENO: result: $AWK" >&5
2895echo "${ECHO_T}$AWK" >&6
2896else
2897 echo "$as_me:$LINENO: result: no" >&5
2898echo "${ECHO_T}no" >&6
2899fi
2900
2901 test -n "$AWK" && break
2902done
2903
2904echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2905echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ab509236 2906set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
13b2be9c
DJ
2907if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2908 echo $ECHO_N "(cached) $ECHO_C" >&6
2909else
2910 cat >conftest.make <<\_ACEOF
2911all:
2912 @echo 'ac_maketemp="$(MAKE)"'
2913_ACEOF
2914# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2915eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2916if test -n "$ac_maketemp"; then
2917 eval ac_cv_prog_make_${ac_make}_set=yes
2918else
2919 eval ac_cv_prog_make_${ac_make}_set=no
2920fi
2921rm -f conftest.make
2922fi
2923if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2924 echo "$as_me:$LINENO: result: yes" >&5
2925echo "${ECHO_T}yes" >&6
2926 SET_MAKE=
2927else
2928 echo "$as_me:$LINENO: result: no" >&5
2929echo "${ECHO_T}no" >&6
2930 SET_MAKE="MAKE=${MAKE-make}"
2931fi
2932
2933rm -rf .tst 2>/dev/null
2934mkdir .tst 2>/dev/null
2935if test -d .tst; then
2936 am__leading_dot=.
2937else
2938 am__leading_dot=_
2939fi
2940rmdir .tst 2>/dev/null
2941
2942DEPDIR="${am__leading_dot}deps"
2943
2944 ac_config_commands="$ac_config_commands depfiles"
2945
2946
2947am_make=${MAKE-make}
2948cat > confinc << 'END'
2949am__doit:
2950 @echo done
2951.PHONY: am__doit
2952END
2953# If we don't find an include directive, just comment out the code.
2954echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2955echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2956am__include="#"
2957am__quote=
2958_am_result=none
2959# First try GNU make style include.
2960echo "include confinc" > confmf
2961# We grep out `Entering directory' and `Leaving directory'
2962# messages which can occur if `w' ends up in MAKEFLAGS.
2963# In particular we don't look at `^make:' because GNU make might
2964# be invoked under some other name (usually "gmake"), in which
2965# case it prints its new name instead of `make'.
2966if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2967 am__include=include
2968 am__quote=
2969 _am_result=GNU
2970fi
2971# Now try BSD make style include.
2972if test "$am__include" = "#"; then
2973 echo '.include "confinc"' > confmf
2974 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2975 am__include=.include
2976 am__quote="\""
2977 _am_result=BSD
2978 fi
2979fi
2980
2981
2982echo "$as_me:$LINENO: result: $_am_result" >&5
2983echo "${ECHO_T}$_am_result" >&6
2984rm -f confinc confmf
2985
2986# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2987if test "${enable_dependency_tracking+set}" = set; then
2988 enableval="$enable_dependency_tracking"
2989
2990fi;
2991if test "x$enable_dependency_tracking" != xno; then
2992 am_depcomp="$ac_aux_dir/depcomp"
2993 AMDEPBACKSLASH='\'
2994fi
2995
2996
2997if test "x$enable_dependency_tracking" != xno; then
2998 AMDEP_TRUE=
2999 AMDEP_FALSE='#'
3000else
3001 AMDEP_TRUE='#'
3002 AMDEP_FALSE=
3003fi
3004
3005
3006
ab509236 3007# test to see if srcdir already configured
13b2be9c
DJ
3008if test "`cd $srcdir && pwd`" != "`pwd`" &&
3009 test -f $srcdir/config.status; then
3010 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3011echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3012 { (exit 1); exit 1; }; }
3013fi
3014
3015# test whether we have cygpath
3016if test -z "$CYGPATH_W"; then
3017 if (cygpath --version) >/dev/null 2>/dev/null; then
3018 CYGPATH_W='cygpath -w'
3019 else
3020 CYGPATH_W=echo
3021 fi
3022fi
3023
3024
3025# Define the identity of the package.
3026 PACKAGE=gas
3027 VERSION=${BFD_VERSION}
3028
3029
3030cat >>confdefs.h <<_ACEOF
3031#define PACKAGE "$PACKAGE"
3032_ACEOF
3033
3034
3035cat >>confdefs.h <<_ACEOF
3036#define VERSION "$VERSION"
3037_ACEOF
3038
3039# Some tools Automake needs.
3040
3041ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3042
3043
3044AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3045
3046
3047AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3048
3049
3050AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3051
3052
3053MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3054
13b2be9c
DJ
3055install_sh=${install_sh-"$am_aux_dir/install-sh"}
3056
3057# Installed binaries are usually stripped using `strip' when the user
3058# run `make install-strip'. However `strip' might not be the right
3059# tool to use in cross-compilation environments, therefore Automake
3060# will honor the `STRIP' environment variable to overrule this program.
3061if test "$cross_compiling" != no; then
3062 if test -n "$ac_tool_prefix"; then
3063 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3064set dummy ${ac_tool_prefix}strip; ac_word=$2
3065echo "$as_me:$LINENO: checking for $ac_word" >&5
3066echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3067if test "${ac_cv_prog_STRIP+set}" = set; then
3068 echo $ECHO_N "(cached) $ECHO_C" >&6
3069else
3070 if test -n "$STRIP"; then
3071 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
252b5132 3072else
13b2be9c
DJ
3073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3074for as_dir in $PATH
3075do
3076 IFS=$as_save_IFS
3077 test -z "$as_dir" && as_dir=.
3078 for ac_exec_ext in '' $ac_executable_extensions; do
3079 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3080 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3082 break 2
3083 fi
3084done
3085done
3086
252b5132 3087fi
13b2be9c
DJ
3088fi
3089STRIP=$ac_cv_prog_STRIP
3090if test -n "$STRIP"; then
3091 echo "$as_me:$LINENO: result: $STRIP" >&5
3092echo "${ECHO_T}$STRIP" >&6
c8615825 3093else
13b2be9c
DJ
3094 echo "$as_me:$LINENO: result: no" >&5
3095echo "${ECHO_T}no" >&6
c8615825 3096fi
c8615825 3097
13b2be9c
DJ
3098fi
3099if test -z "$ac_cv_prog_STRIP"; then
3100 ac_ct_STRIP=$STRIP
3101 # Extract the first word of "strip", so it can be a program name with args.
3102set dummy strip; ac_word=$2
3103echo "$as_me:$LINENO: checking for $ac_word" >&5
3104echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3105if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3106 echo $ECHO_N "(cached) $ECHO_C" >&6
c8615825 3107else
13b2be9c
DJ
3108 if test -n "$ac_ct_STRIP"; then
3109 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
252b5132 3110else
13b2be9c
DJ
3111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3112for as_dir in $PATH
3113do
3114 IFS=$as_save_IFS
3115 test -z "$as_dir" && as_dir=.
3116 for ac_exec_ext in '' $ac_executable_extensions; do
3117 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3118 ac_cv_prog_ac_ct_STRIP="strip"
3119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3120 break 2
3121 fi
3122done
3123done
3124
3125 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
252b5132 3126fi
252b5132 3127fi
13b2be9c
DJ
3128ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3129if test -n "$ac_ct_STRIP"; then
3130 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3131echo "${ECHO_T}$ac_ct_STRIP" >&6
252b5132 3132else
13b2be9c
DJ
3133 echo "$as_me:$LINENO: result: no" >&5
3134echo "${ECHO_T}no" >&6
252b5132
RH
3135fi
3136
13b2be9c
DJ
3137 STRIP=$ac_ct_STRIP
3138else
3139 STRIP="$ac_cv_prog_STRIP"
3140fi
d6d788bd 3141
252b5132 3142fi
13b2be9c 3143INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
252b5132 3144
13b2be9c
DJ
3145# We need awk for the "check" target. The system "awk" is bad on
3146# some platforms.
8ea2b00f
AM
3147# Always define AMTAR for backward compatibility.
3148
3149AMTAR=${AMTAR-"${am_missing_run}tar"}
3150
3151am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3152
3153
252b5132 3154
d6d788bd 3155
13b2be9c 3156depcc="$CC" am_compiler_list=
d6d788bd 3157
13b2be9c
DJ
3158echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3159echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3160if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3161 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3162else
13b2be9c
DJ
3163 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3164 # We make a subdir and do the tests there. Otherwise we can end up
3165 # making bogus files that we don't know about and never remove. For
3166 # instance it was reported that on HP-UX the gcc test will end up
3167 # making a dummy file named `D' -- because `-MD' means `put the output
3168 # in D'.
3169 mkdir conftest.dir
3170 # Copy depcomp to subdir because otherwise we won't find it if we're
3171 # using a relative directory.
3172 cp "$am_depcomp" conftest.dir
3173 cd conftest.dir
3174 # We will build objects and dependencies in a subdirectory because
3175 # it helps to detect inapplicable dependency modes. For instance
3176 # both Tru64's cc and ICC support -MD to output dependencies as a
3177 # side effect of compilation, but ICC will put the dependencies in
3178 # the current directory while Tru64 will put them in the object
3179 # directory.
3180 mkdir sub
252b5132 3181
13b2be9c
DJ
3182 am_cv_CC_dependencies_compiler_type=none
3183 if test "$am_compiler_list" = ""; then
3184 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3185 fi
3186 for depmode in $am_compiler_list; do
3187 # Setup a source with many dependencies, because some compilers
3188 # like to wrap large dependency lists on column 80 (with \), and
3189 # we should not choose a depcomp mode which is confused by this.
3190 #
3191 # We need to recreate these files for each test, as the compiler may
3192 # overwrite some of them when testing with obscure command lines.
3193 # This happens at least with the AIX C compiler.
3194 : > sub/conftest.c
3195 for i in 1 2 3 4 5 6; do
3196 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4b363073
NC
3197 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3198 # Solaris 8's {/usr,}/bin/sh.
3199 touch sub/conftst$i.h
13b2be9c
DJ
3200 done
3201 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3202
3203 case $depmode in
3204 nosideeffect)
3205 # after this tag, mechanisms are not by side-effect, so they'll
3206 # only be used when explicitly requested
3207 if test "x$enable_dependency_tracking" = xyes; then
3208 continue
3209 else
3210 break
3211 fi
3212 ;;
3213 none) break ;;
3214 esac
3215 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3216 # mode. It turns out that the SunPro C++ compiler does not properly
3217 # handle `-M -o', and we need to detect this.
3218 if depmode=$depmode \
3219 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3220 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3221 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3222 >/dev/null 2>conftest.err &&
3223 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3224 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3225 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3226 # icc doesn't choke on unknown options, it will just issue warnings
4b363073
NC
3227 # or remarks (even with -Werror). So we grep stderr for any message
3228 # that says an option was ignored or not supported.
3229 # When given -MP, icc 7.0 and 7.1 complain thusly:
3230 # icc: Command line warning: ignoring option '-M'; no argument required
3231 # The diagnosis changed in icc 8.0:
3232 # icc: Command line remark: option '-MP' not supported
3233 if (grep 'ignoring option' conftest.err ||
3234 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13b2be9c
DJ
3235 am_cv_CC_dependencies_compiler_type=$depmode
3236 break
3237 fi
3238 fi
3239 done
252b5132 3240
13b2be9c
DJ
3241 cd ..
3242 rm -rf conftest.dir
252b5132 3243else
13b2be9c 3244 am_cv_CC_dependencies_compiler_type=none
252b5132
RH
3245fi
3246
252b5132 3247fi
13b2be9c
DJ
3248echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3249echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3250CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
252b5132 3251
13b2be9c
DJ
3252
3253
3254if
3255 test "x$enable_dependency_tracking" != xno \
3256 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3257 am__fastdepCC_TRUE=
3258 am__fastdepCC_FALSE='#'
252b5132 3259else
13b2be9c
DJ
3260 am__fastdepCC_TRUE='#'
3261 am__fastdepCC_FALSE=
252b5132
RH
3262fi
3263
d6d788bd
L
3264
3265
13b2be9c 3266
ce2cded5
L
3267ac_ext=c
3268ac_cpp='$CPP $CPPFLAGS'
3269ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3270ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3271ac_compiler_gnu=$ac_cv_c_compiler_gnu
3272if test -n "$ac_tool_prefix"; then
3273 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3274set dummy ${ac_tool_prefix}gcc; ac_word=$2
3275echo "$as_me:$LINENO: checking for $ac_word" >&5
3276echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3277if test "${ac_cv_prog_CC+set}" = set; then
3278 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3279else
ce2cded5
L
3280 if test -n "$CC"; then
3281 ac_cv_prog_CC="$CC" # Let the user override the test.
d7040cdb 3282else
ce2cded5
L
3283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3284for as_dir in $PATH
3285do
3286 IFS=$as_save_IFS
3287 test -z "$as_dir" && as_dir=.
3288 for ac_exec_ext in '' $ac_executable_extensions; do
3289 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3290 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3292 break 2
3293 fi
3294done
3295done
d7040cdb 3296
ce2cded5
L
3297fi
3298fi
3299CC=$ac_cv_prog_CC
3300if test -n "$CC"; then
3301 echo "$as_me:$LINENO: result: $CC" >&5
3302echo "${ECHO_T}$CC" >&6
bedf545c 3303else
ce2cded5
L
3304 echo "$as_me:$LINENO: result: no" >&5
3305echo "${ECHO_T}no" >&6
3306fi
d7040cdb 3307
ce2cded5
L
3308fi
3309if test -z "$ac_cv_prog_CC"; then
3310 ac_ct_CC=$CC
3311 # Extract the first word of "gcc", so it can be a program name with args.
3312set dummy gcc; ac_word=$2
3313echo "$as_me:$LINENO: checking for $ac_word" >&5
3314echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3315if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
d7040cdb
SE
3316 echo $ECHO_N "(cached) $ECHO_C" >&6
3317else
ce2cded5
L
3318 if test -n "$ac_ct_CC"; then
3319 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3320else
d7040cdb
SE
3321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3322for as_dir in $PATH
3323do
3324 IFS=$as_save_IFS
3325 test -z "$as_dir" && as_dir=.
ce2cded5
L
3326 for ac_exec_ext in '' $ac_executable_extensions; do
3327 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3328 ac_cv_prog_ac_ct_CC="gcc"
3329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3330 break 2
d7040cdb 3331 fi
ce2cded5 3332done
d7040cdb
SE
3333done
3334
ce2cded5
L
3335fi
3336fi
3337ac_ct_CC=$ac_cv_prog_ac_ct_CC
3338if test -n "$ac_ct_CC"; then
3339 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3340echo "${ECHO_T}$ac_ct_CC" >&6
3341else
3342 echo "$as_me:$LINENO: result: no" >&5
3343echo "${ECHO_T}no" >&6
d7040cdb
SE
3344fi
3345
ce2cded5
L
3346 CC=$ac_ct_CC
3347else
3348 CC="$ac_cv_prog_CC"
3349fi
d7040cdb 3350
ce2cded5
L
3351if test -z "$CC"; then
3352 if test -n "$ac_tool_prefix"; then
3353 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3354set dummy ${ac_tool_prefix}cc; ac_word=$2
3355echo "$as_me:$LINENO: checking for $ac_word" >&5
3356echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3357if test "${ac_cv_prog_CC+set}" = set; then
d7040cdb
SE
3358 echo $ECHO_N "(cached) $ECHO_C" >&6
3359else
ce2cded5
L
3360 if test -n "$CC"; then
3361 ac_cv_prog_CC="$CC" # Let the user override the test.
d7040cdb 3362else
ce2cded5
L
3363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3364for as_dir in $PATH
3365do
3366 IFS=$as_save_IFS
3367 test -z "$as_dir" && as_dir=.
3368 for ac_exec_ext in '' $ac_executable_extensions; do
3369 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3370 ac_cv_prog_CC="${ac_tool_prefix}cc"
3371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3372 break 2
3373 fi
3374done
3375done
d7040cdb 3376
252b5132
RH
3377fi
3378fi
ce2cded5
L
3379CC=$ac_cv_prog_CC
3380if test -n "$CC"; then
3381 echo "$as_me:$LINENO: result: $CC" >&5
3382echo "${ECHO_T}$CC" >&6
252b5132 3383else
13b2be9c
DJ
3384 echo "$as_me:$LINENO: result: no" >&5
3385echo "${ECHO_T}no" >&6
252b5132 3386fi
d7040cdb 3387
252b5132 3388fi
ce2cded5
L
3389if test -z "$ac_cv_prog_CC"; then
3390 ac_ct_CC=$CC
3391 # Extract the first word of "cc", so it can be a program name with args.
3392set dummy cc; ac_word=$2
d7040cdb
SE
3393echo "$as_me:$LINENO: checking for $ac_word" >&5
3394echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ce2cded5 3395if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
13b2be9c 3396 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3397else
ce2cded5
L
3398 if test -n "$ac_ct_CC"; then
3399 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
d7040cdb
SE
3400else
3401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3402for as_dir in $PATH
3403do
3404 IFS=$as_save_IFS
3405 test -z "$as_dir" && as_dir=.
3406 for ac_exec_ext in '' $ac_executable_extensions; do
3407 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ce2cded5 3408 ac_cv_prog_ac_ct_CC="cc"
d7040cdb
SE
3409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3410 break 2
3411 fi
3412done
3413done
ac48eca1 3414
d7040cdb
SE
3415fi
3416fi
ce2cded5
L
3417ac_ct_CC=$ac_cv_prog_ac_ct_CC
3418if test -n "$ac_ct_CC"; then
3419 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3420echo "${ECHO_T}$ac_ct_CC" >&6
3421else
3422 echo "$as_me:$LINENO: result: no" >&5
d7040cdb
SE
3423echo "${ECHO_T}no" >&6
3424fi
f9c19112 3425
ce2cded5
L
3426 CC=$ac_ct_CC
3427else
3428 CC="$ac_cv_prog_CC"
3429fi
3430
3431fi
3432if test -z "$CC"; then
3433 # Extract the first word of "cc", so it can be a program name with args.
3434set dummy cc; ac_word=$2
3435echo "$as_me:$LINENO: checking for $ac_word" >&5
3436echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3437if test "${ac_cv_prog_CC+set}" = set; then
3438 echo $ECHO_N "(cached) $ECHO_C" >&6
3439else
3440 if test -n "$CC"; then
3441 ac_cv_prog_CC="$CC" # Let the user override the test.
3442else
3443 ac_prog_rejected=no
3444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3445for as_dir in $PATH
3446do
3447 IFS=$as_save_IFS
3448 test -z "$as_dir" && as_dir=.
3449 for ac_exec_ext in '' $ac_executable_extensions; do
3450 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3451 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3452 ac_prog_rejected=yes
3453 continue
3454 fi
3455 ac_cv_prog_CC="cc"
3456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3457 break 2
3458 fi
3459done
3460done
3461
3462if test $ac_prog_rejected = yes; then
3463 # We found a bogon in the path, so make sure we never use it.
3464 set dummy $ac_cv_prog_CC
3465 shift
3466 if test $# != 0; then
3467 # We chose a different compiler from the bogus one.
3468 # However, it has the same basename, so the bogon will be chosen
3469 # first if we set CC to just the basename; use the full file name.
3470 shift
3471 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3472 fi
3473fi
3474fi
3475fi
3476CC=$ac_cv_prog_CC
3477if test -n "$CC"; then
3478 echo "$as_me:$LINENO: result: $CC" >&5
3479echo "${ECHO_T}$CC" >&6
3480else
3481 echo "$as_me:$LINENO: result: no" >&5
3482echo "${ECHO_T}no" >&6
3483fi
3484
3485fi
3486if test -z "$CC"; then
3487 if test -n "$ac_tool_prefix"; then
3488 for ac_prog in cl
3489 do
3490 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3491set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3492echo "$as_me:$LINENO: checking for $ac_word" >&5
3493echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3494if test "${ac_cv_prog_CC+set}" = set; then
3495 echo $ECHO_N "(cached) $ECHO_C" >&6
3496else
3497 if test -n "$CC"; then
3498 ac_cv_prog_CC="$CC" # Let the user override the test.
3499else
3500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3501for as_dir in $PATH
3502do
3503 IFS=$as_save_IFS
3504 test -z "$as_dir" && as_dir=.
3505 for ac_exec_ext in '' $ac_executable_extensions; do
3506 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3507 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3509 break 2
3510 fi
3511done
3512done
3513
3514fi
3515fi
3516CC=$ac_cv_prog_CC
3517if test -n "$CC"; then
3518 echo "$as_me:$LINENO: result: $CC" >&5
3519echo "${ECHO_T}$CC" >&6
3520else
3521 echo "$as_me:$LINENO: result: no" >&5
3522echo "${ECHO_T}no" >&6
3523fi
3524
3525 test -n "$CC" && break
d7040cdb
SE
3526 done
3527fi
ce2cded5
L
3528if test -z "$CC"; then
3529 ac_ct_CC=$CC
3530 for ac_prog in cl
d7040cdb
SE
3531do
3532 # Extract the first word of "$ac_prog", so it can be a program name with args.
3533set dummy $ac_prog; ac_word=$2
3534echo "$as_me:$LINENO: checking for $ac_word" >&5
3535echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ce2cded5 3536if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
d7040cdb
SE
3537 echo $ECHO_N "(cached) $ECHO_C" >&6
3538else
ce2cded5
L
3539 if test -n "$ac_ct_CC"; then
3540 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
d7040cdb
SE
3541else
3542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3543for as_dir in $PATH
3544do
3545 IFS=$as_save_IFS
3546 test -z "$as_dir" && as_dir=.
3547 for ac_exec_ext in '' $ac_executable_extensions; do
3548 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ce2cded5 3549 ac_cv_prog_ac_ct_CC="$ac_prog"
d7040cdb
SE
3550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3551 break 2
ac48eca1 3552 fi
d7040cdb
SE
3553done
3554done
ac48eca1 3555
d7040cdb
SE
3556fi
3557fi
ce2cded5
L
3558ac_ct_CC=$ac_cv_prog_ac_ct_CC
3559if test -n "$ac_ct_CC"; then
3560 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3561echo "${ECHO_T}$ac_ct_CC" >&6
d7040cdb
SE
3562else
3563 echo "$as_me:$LINENO: result: no" >&5
3564echo "${ECHO_T}no" >&6
3565fi
ac48eca1 3566
ce2cded5 3567 test -n "$ac_ct_CC" && break
d7040cdb 3568done
ac48eca1 3569
ce2cded5 3570 CC=$ac_ct_CC
d7040cdb 3571fi
ac48eca1 3572
d7040cdb 3573fi
ac48eca1 3574
ac48eca1 3575
7a283e07
RW
3576test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3577echo "$as_me: error: in \`$ac_pwd':" >&2;}
3578{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
ce2cded5
L
3579See \`config.log' for more details." >&5
3580echo "$as_me: error: no acceptable C compiler found in \$PATH
3581See \`config.log' for more details." >&2;}
7a283e07 3582 { (exit 1); exit 1; }; }; }
6be7c12c 3583
ce2cded5
L
3584# Provide some information about the compiler.
3585echo "$as_me:$LINENO:" \
3586 "checking for C compiler version" >&5
3587ac_compiler=`set X $ac_compile; echo $2`
3588{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3589 (eval $ac_compiler --version </dev/null >&5) 2>&5
3590 ac_status=$?
3591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592 (exit $ac_status); }
3593{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3594 (eval $ac_compiler -v </dev/null >&5) 2>&5
3595 ac_status=$?
3596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597 (exit $ac_status); }
3598{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3599 (eval $ac_compiler -V </dev/null >&5) 2>&5
3600 ac_status=$?
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); }
ac48eca1 3603
ce2cded5
L
3604echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3605echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3606if test "${ac_cv_c_compiler_gnu+set}" = set; then
d7040cdb
SE
3607 echo $ECHO_N "(cached) $ECHO_C" >&6
3608else
ce2cded5
L
3609 cat >conftest.$ac_ext <<_ACEOF
3610/* confdefs.h. */
3611_ACEOF
3612cat confdefs.h >>conftest.$ac_ext
3613cat >>conftest.$ac_ext <<_ACEOF
3614/* end confdefs.h. */
c8615825 3615
ce2cded5
L
3616int
3617main ()
3618{
3619#ifndef __GNUC__
3620 choke me
3621#endif
3622
3623 ;
3624 return 0;
3625}
3626_ACEOF
3627rm -f conftest.$ac_objext
3628if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3629 (eval $ac_compile) 2>conftest.er1
3630 ac_status=$?
3631 grep -v '^ *+' conftest.er1 >conftest.err
3632 rm -f conftest.er1
3633 cat conftest.err >&5
3634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635 (exit $ac_status); } &&
3636 { ac_try='test -z "$ac_c_werror_flag"
3637 || test ! -s conftest.err'
3638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3639 (eval $ac_try) 2>&5
3640 ac_status=$?
3641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642 (exit $ac_status); }; } &&
3643 { ac_try='test -s conftest.$ac_objext'
3644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3645 (eval $ac_try) 2>&5
3646 ac_status=$?
3647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648 (exit $ac_status); }; }; then
3649 ac_compiler_gnu=yes
d7040cdb 3650else
ce2cded5
L
3651 echo "$as_me: failed program was:" >&5
3652sed 's/^/| /' conftest.$ac_ext >&5
3653
3654ac_compiler_gnu=no
d7040cdb 3655fi
ce2cded5
L
3656rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3657ac_cv_c_compiler_gnu=$ac_compiler_gnu
ac48eca1 3658
ce2cded5
L
3659fi
3660echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3661echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3662GCC=`test $ac_compiler_gnu = yes && echo yes`
3663ac_test_CFLAGS=${CFLAGS+set}
3664ac_save_CFLAGS=$CFLAGS
3665CFLAGS="-g"
3666echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3667echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3668if test "${ac_cv_prog_cc_g+set}" = set; then
d70c5fc7
NC
3669 echo $ECHO_N "(cached) $ECHO_C" >&6
3670else
ce2cded5
L
3671 cat >conftest.$ac_ext <<_ACEOF
3672/* confdefs.h. */
3673_ACEOF
3674cat confdefs.h >>conftest.$ac_ext
3675cat >>conftest.$ac_ext <<_ACEOF
3676/* end confdefs.h. */
d7040cdb 3677
ce2cded5
L
3678int
3679main ()
3680{
d7040cdb 3681
ce2cded5
L
3682 ;
3683 return 0;
3684}
3685_ACEOF
3686rm -f conftest.$ac_objext
3687if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3688 (eval $ac_compile) 2>conftest.er1
3689 ac_status=$?
3690 grep -v '^ *+' conftest.er1 >conftest.err
3691 rm -f conftest.er1
3692 cat conftest.err >&5
3693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694 (exit $ac_status); } &&
3695 { ac_try='test -z "$ac_c_werror_flag"
3696 || test ! -s conftest.err'
3697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3698 (eval $ac_try) 2>&5
3699 ac_status=$?
3700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3701 (exit $ac_status); }; } &&
3702 { ac_try='test -s conftest.$ac_objext'
3703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3704 (eval $ac_try) 2>&5
3705 ac_status=$?
3706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707 (exit $ac_status); }; }; then
3708 ac_cv_prog_cc_g=yes
3709else
3710 echo "$as_me: failed program was:" >&5
3711sed 's/^/| /' conftest.$ac_ext >&5
d70c5fc7 3712
ce2cded5 3713ac_cv_prog_cc_g=no
d70c5fc7 3714fi
ce2cded5 3715rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d70c5fc7 3716fi
ce2cded5
L
3717echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3718echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3719if test "$ac_test_CFLAGS" = set; then
3720 CFLAGS=$ac_save_CFLAGS
3721elif test $ac_cv_prog_cc_g = yes; then
3722 if test "$GCC" = yes; then
3723 CFLAGS="-g -O2"
3724 else
3725 CFLAGS="-g"
3726 fi
ac48eca1 3727else
ce2cded5
L
3728 if test "$GCC" = yes; then
3729 CFLAGS="-O2"
3730 else
3731 CFLAGS=
3732 fi
ac48eca1 3733fi
ce2cded5
L
3734echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3735echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3736if test "${ac_cv_prog_cc_stdc+set}" = set; then
13b2be9c 3737 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3738else
ce2cded5
L
3739 ac_cv_prog_cc_stdc=no
3740ac_save_CC=$CC
3741cat >conftest.$ac_ext <<_ACEOF
3742/* confdefs.h. */
3743_ACEOF
3744cat confdefs.h >>conftest.$ac_ext
3745cat >>conftest.$ac_ext <<_ACEOF
3746/* end confdefs.h. */
3747#include <stdarg.h>
3748#include <stdio.h>
3749#include <sys/types.h>
3750#include <sys/stat.h>
3751/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3752struct buf { int x; };
3753FILE * (*rcsopen) (struct buf *, struct stat *, int);
3754static char *e (p, i)
3755 char **p;
3756 int i;
3757{
3758 return p[i];
3759}
3760static char *f (char * (*g) (char **, int), char **p, ...)
3761{
3762 char *s;
3763 va_list v;
3764 va_start (v,p);
3765 s = g (p, va_arg (v,int));
3766 va_end (v);
3767 return s;
3768}
3769
3770/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3771 function prototypes and stuff, but not '\xHH' hex character constants.
3772 These don't provoke an error unfortunately, instead are silently treated
3773 as 'x'. The following induces an error, until -std1 is added to get
3774 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3775 array size at least. It's necessary to write '\x00'==0 to get something
3776 that's true only with -std1. */
3777int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3778
3779int test (int i, double x);
3780struct s1 {int (*f) (int a);};
3781struct s2 {int (*f) (double a);};
3782int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3783int argc;
3784char **argv;
3785int
3786main ()
3787{
3788return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3789 ;
3790 return 0;
3791}
3792_ACEOF
3793# Don't try gcc -ansi; that turns off useful extensions and
3794# breaks some systems' header files.
3795# AIX -qlanglvl=ansi
3796# Ultrix and OSF/1 -std1
3797# HP-UX 10.20 and later -Ae
3798# HP-UX older versions -Aa -D_HPUX_SOURCE
3799# SVR4 -Xc -D__EXTENSIONS__
3800for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3801do
3802 CC="$ac_save_CC $ac_arg"
3803 rm -f conftest.$ac_objext
3804if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3805 (eval $ac_compile) 2>conftest.er1
3806 ac_status=$?
3807 grep -v '^ *+' conftest.er1 >conftest.err
3808 rm -f conftest.er1
3809 cat conftest.err >&5
3810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3811 (exit $ac_status); } &&
3812 { ac_try='test -z "$ac_c_werror_flag"
3813 || test ! -s conftest.err'
3814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3815 (eval $ac_try) 2>&5
3816 ac_status=$?
3817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818 (exit $ac_status); }; } &&
3819 { ac_try='test -s conftest.$ac_objext'
3820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3821 (eval $ac_try) 2>&5
3822 ac_status=$?
3823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3824 (exit $ac_status); }; }; then
3825 ac_cv_prog_cc_stdc=$ac_arg
3826break
3827else
3828 echo "$as_me: failed program was:" >&5
3829sed 's/^/| /' conftest.$ac_ext >&5
3830
3831fi
3832rm -f conftest.err conftest.$ac_objext
3833done
3834rm -f conftest.$ac_ext conftest.$ac_objext
3835CC=$ac_save_CC
3836
3837fi
3838
3839case "x$ac_cv_prog_cc_stdc" in
3840 x|xno)
3841 echo "$as_me:$LINENO: result: none needed" >&5
3842echo "${ECHO_T}none needed" >&6 ;;
3843 *)
3844 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3845echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3846 CC="$CC $ac_cv_prog_cc_stdc" ;;
d7040cdb
SE
3847esac
3848
ce2cded5
L
3849# Some people use a C++ compiler to compile C. Since we use `exit',
3850# in C++ we need to declare it. In case someone uses the same compiler
3851# for both compiling C and C++ we need to have the C++ compiler decide
3852# the declaration of exit, since it's the most demanding environment.
3853cat >conftest.$ac_ext <<_ACEOF
3854#ifndef __cplusplus
3855 choke me
3856#endif
3857_ACEOF
3858rm -f conftest.$ac_objext
3859if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3860 (eval $ac_compile) 2>conftest.er1
3861 ac_status=$?
3862 grep -v '^ *+' conftest.er1 >conftest.err
3863 rm -f conftest.er1
3864 cat conftest.err >&5
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); } &&
3867 { ac_try='test -z "$ac_c_werror_flag"
3868 || test ! -s conftest.err'
3869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3870 (eval $ac_try) 2>&5
3871 ac_status=$?
3872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3873 (exit $ac_status); }; } &&
3874 { ac_try='test -s conftest.$ac_objext'
3875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3876 (eval $ac_try) 2>&5
3877 ac_status=$?
3878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879 (exit $ac_status); }; }; then
3880 for ac_declaration in \
3881 '' \
3882 'extern "C" void std::exit (int) throw (); using std::exit;' \
3883 'extern "C" void std::exit (int); using std::exit;' \
3884 'extern "C" void exit (int) throw ();' \
3885 'extern "C" void exit (int);' \
3886 'void exit (int);'
3887do
3888 cat >conftest.$ac_ext <<_ACEOF
3889/* confdefs.h. */
3890_ACEOF
3891cat confdefs.h >>conftest.$ac_ext
3892cat >>conftest.$ac_ext <<_ACEOF
3893/* end confdefs.h. */
3894$ac_declaration
3895#include <stdlib.h>
3896int
3897main ()
3898{
3899exit (42);
3900 ;
3901 return 0;
3902}
3903_ACEOF
3904rm -f conftest.$ac_objext
3905if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3906 (eval $ac_compile) 2>conftest.er1
3907 ac_status=$?
3908 grep -v '^ *+' conftest.er1 >conftest.err
3909 rm -f conftest.er1
3910 cat conftest.err >&5
3911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912 (exit $ac_status); } &&
3913 { ac_try='test -z "$ac_c_werror_flag"
3914 || test ! -s conftest.err'
3915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3916 (eval $ac_try) 2>&5
3917 ac_status=$?
3918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919 (exit $ac_status); }; } &&
3920 { ac_try='test -s conftest.$ac_objext'
3921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3922 (eval $ac_try) 2>&5
3923 ac_status=$?
3924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925 (exit $ac_status); }; }; then
3926 :
3927else
3928 echo "$as_me: failed program was:" >&5
3929sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 3930
ce2cded5
L
3931continue
3932fi
3933rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3934 cat >conftest.$ac_ext <<_ACEOF
3935/* confdefs.h. */
3936_ACEOF
3937cat confdefs.h >>conftest.$ac_ext
3938cat >>conftest.$ac_ext <<_ACEOF
3939/* end confdefs.h. */
3940$ac_declaration
3941int
3942main ()
3943{
3944exit (42);
3945 ;
3946 return 0;
3947}
3948_ACEOF
3949rm -f conftest.$ac_objext
3950if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3951 (eval $ac_compile) 2>conftest.er1
3952 ac_status=$?
3953 grep -v '^ *+' conftest.er1 >conftest.err
3954 rm -f conftest.er1
3955 cat conftest.err >&5
3956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957 (exit $ac_status); } &&
3958 { ac_try='test -z "$ac_c_werror_flag"
3959 || test ! -s conftest.err'
3960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3961 (eval $ac_try) 2>&5
3962 ac_status=$?
3963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3964 (exit $ac_status); }; } &&
3965 { ac_try='test -s conftest.$ac_objext'
3966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3967 (eval $ac_try) 2>&5
3968 ac_status=$?
3969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970 (exit $ac_status); }; }; then
3971 break
3972else
3973 echo "$as_me: failed program was:" >&5
3974sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 3975
ce2cded5
L
3976fi
3977rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3978done
3979rm -f conftest*
3980if test -n "$ac_declaration"; then
3981 echo '#ifdef __cplusplus' >>confdefs.h
3982 echo $ac_declaration >>confdefs.h
3983 echo '#endif' >>confdefs.h
3984fi
d7040cdb 3985
ce2cded5
L
3986else
3987 echo "$as_me: failed program was:" >&5
3988sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 3989
ce2cded5
L
3990fi
3991rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3992ac_ext=c
3993ac_cpp='$CPP $CPPFLAGS'
3994ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3995ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3996ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb
SE
3997
3998
ce2cded5
L
3999cat >>confdefs.h <<\_ACEOF
4000#define _GNU_SOURCE 1
4001_ACEOF
d7040cdb
SE
4002
4003
7357c5b6
AM
4004ac_ext=c
4005ac_cpp='$CPP $CPPFLAGS'
4006ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4007ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4008ac_compiler_gnu=$ac_cv_c_compiler_gnu
4009echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4010echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4011# On Suns, sometimes $CPP names a directory.
4012if test -n "$CPP" && test -d "$CPP"; then
4013 CPP=
4014fi
4015if test -z "$CPP"; then
4016 if test "${ac_cv_prog_CPP+set}" = set; then
4017 echo $ECHO_N "(cached) $ECHO_C" >&6
4018else
4019 # Double quotes because CPP needs to be expanded
4020 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4021 do
4022 ac_preproc_ok=false
4023for ac_c_preproc_warn_flag in '' yes
4024do
4025 # Use a header file that comes with gcc, so configuring glibc
4026 # with a fresh cross-compiler works.
4027 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4028 # <limits.h> exists even on freestanding compilers.
4029 # On the NeXT, cc -E runs the code through the compiler's parser,
4030 # not just through cpp. "Syntax error" is here to catch this case.
4031 cat >conftest.$ac_ext <<_ACEOF
4032/* confdefs.h. */
4033_ACEOF
4034cat confdefs.h >>conftest.$ac_ext
4035cat >>conftest.$ac_ext <<_ACEOF
4036/* end confdefs.h. */
4037#ifdef __STDC__
4038# include <limits.h>
4039#else
4040# include <assert.h>
4041#endif
4042 Syntax error
4043_ACEOF
4044if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4045 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4046 ac_status=$?
4047 grep -v '^ *+' conftest.er1 >conftest.err
4048 rm -f conftest.er1
4049 cat conftest.err >&5
4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051 (exit $ac_status); } >/dev/null; then
4052 if test -s conftest.err; then
4053 ac_cpp_err=$ac_c_preproc_warn_flag
4054 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4055 else
4056 ac_cpp_err=
4057 fi
4058else
4059 ac_cpp_err=yes
4060fi
4061if test -z "$ac_cpp_err"; then
4062 :
4063else
4064 echo "$as_me: failed program was:" >&5
4065sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4066
7357c5b6
AM
4067 # Broken: fails on valid input.
4068continue
4069fi
4070rm -f conftest.err conftest.$ac_ext
d7040cdb 4071
7357c5b6
AM
4072 # OK, works on sane cases. Now check whether non-existent headers
4073 # can be detected and how.
4074 cat >conftest.$ac_ext <<_ACEOF
4075/* confdefs.h. */
4076_ACEOF
4077cat confdefs.h >>conftest.$ac_ext
4078cat >>conftest.$ac_ext <<_ACEOF
4079/* end confdefs.h. */
4080#include <ac_nonexistent.h>
4081_ACEOF
4082if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4083 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4084 ac_status=$?
4085 grep -v '^ *+' conftest.er1 >conftest.err
4086 rm -f conftest.er1
4087 cat conftest.err >&5
4088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089 (exit $ac_status); } >/dev/null; then
4090 if test -s conftest.err; then
4091 ac_cpp_err=$ac_c_preproc_warn_flag
4092 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4093 else
4094 ac_cpp_err=
4095 fi
4096else
4097 ac_cpp_err=yes
4098fi
4099if test -z "$ac_cpp_err"; then
4100 # Broken: success on invalid input.
4101continue
4102else
4103 echo "$as_me: failed program was:" >&5
4104sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4105
7357c5b6
AM
4106 # Passes both tests.
4107ac_preproc_ok=:
4108break
4109fi
4110rm -f conftest.err conftest.$ac_ext
d7040cdb 4111
7357c5b6
AM
4112done
4113# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4114rm -f conftest.err conftest.$ac_ext
4115if $ac_preproc_ok; then
4116 break
4117fi
d7040cdb 4118
7357c5b6
AM
4119 done
4120 ac_cv_prog_CPP=$CPP
d7040cdb 4121
7357c5b6
AM
4122fi
4123 CPP=$ac_cv_prog_CPP
4124else
4125 ac_cv_prog_CPP=$CPP
4126fi
4127echo "$as_me:$LINENO: result: $CPP" >&5
4128echo "${ECHO_T}$CPP" >&6
4129ac_preproc_ok=false
4130for ac_c_preproc_warn_flag in '' yes
4131do
4132 # Use a header file that comes with gcc, so configuring glibc
4133 # with a fresh cross-compiler works.
4134 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4135 # <limits.h> exists even on freestanding compilers.
4136 # On the NeXT, cc -E runs the code through the compiler's parser,
4137 # not just through cpp. "Syntax error" is here to catch this case.
4138 cat >conftest.$ac_ext <<_ACEOF
4139/* confdefs.h. */
4140_ACEOF
4141cat confdefs.h >>conftest.$ac_ext
4142cat >>conftest.$ac_ext <<_ACEOF
4143/* end confdefs.h. */
4144#ifdef __STDC__
4145# include <limits.h>
4146#else
4147# include <assert.h>
4148#endif
4149 Syntax error
4150_ACEOF
4151if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4152 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4153 ac_status=$?
4154 grep -v '^ *+' conftest.er1 >conftest.err
4155 rm -f conftest.er1
4156 cat conftest.err >&5
4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158 (exit $ac_status); } >/dev/null; then
4159 if test -s conftest.err; then
4160 ac_cpp_err=$ac_c_preproc_warn_flag
4161 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4162 else
4163 ac_cpp_err=
4164 fi
4165else
4166 ac_cpp_err=yes
4167fi
4168if test -z "$ac_cpp_err"; then
4169 :
4170else
4171 echo "$as_me: failed program was:" >&5
4172sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4173
7357c5b6
AM
4174 # Broken: fails on valid input.
4175continue
4176fi
4177rm -f conftest.err conftest.$ac_ext
d7040cdb 4178
7357c5b6
AM
4179 # OK, works on sane cases. Now check whether non-existent headers
4180 # can be detected and how.
4181 cat >conftest.$ac_ext <<_ACEOF
4182/* confdefs.h. */
4183_ACEOF
4184cat confdefs.h >>conftest.$ac_ext
4185cat >>conftest.$ac_ext <<_ACEOF
4186/* end confdefs.h. */
4187#include <ac_nonexistent.h>
4188_ACEOF
4189if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4190 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4191 ac_status=$?
4192 grep -v '^ *+' conftest.er1 >conftest.err
4193 rm -f conftest.er1
4194 cat conftest.err >&5
4195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196 (exit $ac_status); } >/dev/null; then
4197 if test -s conftest.err; then
4198 ac_cpp_err=$ac_c_preproc_warn_flag
4199 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4200 else
4201 ac_cpp_err=
4202 fi
4203else
4204 ac_cpp_err=yes
4205fi
4206if test -z "$ac_cpp_err"; then
4207 # Broken: success on invalid input.
4208continue
4209else
4210 echo "$as_me: failed program was:" >&5
4211sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4212
7357c5b6
AM
4213 # Passes both tests.
4214ac_preproc_ok=:
4215break
4216fi
4217rm -f conftest.err conftest.$ac_ext
d7040cdb 4218
7357c5b6
AM
4219done
4220# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4221rm -f conftest.err conftest.$ac_ext
4222if $ac_preproc_ok; then
4223 :
4224else
4225 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4226echo "$as_me: error: in \`$ac_pwd':" >&2;}
4227{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4228See \`config.log' for more details." >&5
4229echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4230See \`config.log' for more details." >&2;}
4231 { (exit 1); exit 1; }; }; }
4232fi
ac48eca1 4233
7357c5b6
AM
4234ac_ext=c
4235ac_cpp='$CPP $CPPFLAGS'
4236ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4237ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4238ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac48eca1 4239
ac48eca1 4240
7357c5b6
AM
4241echo "$as_me:$LINENO: checking for egrep" >&5
4242echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4243if test "${ac_cv_prog_egrep+set}" = set; then
4244 echo $ECHO_N "(cached) $ECHO_C" >&6
4245else
4246 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4247 then ac_cv_prog_egrep='grep -E'
4248 else ac_cv_prog_egrep='egrep'
4249 fi
4250fi
4251echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4252echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4253 EGREP=$ac_cv_prog_egrep
ac48eca1 4254
d7040cdb 4255
7357c5b6
AM
4256echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4257echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4258if test "${ac_cv_header_stdc+set}" = set; then
4259 echo $ECHO_N "(cached) $ECHO_C" >&6
4260else
4261 cat >conftest.$ac_ext <<_ACEOF
4262/* confdefs.h. */
4263_ACEOF
4264cat confdefs.h >>conftest.$ac_ext
4265cat >>conftest.$ac_ext <<_ACEOF
4266/* end confdefs.h. */
4267#include <stdlib.h>
4268#include <stdarg.h>
4269#include <string.h>
4270#include <float.h>
d7040cdb 4271
7357c5b6
AM
4272int
4273main ()
4274{
d7040cdb 4275
7357c5b6
AM
4276 ;
4277 return 0;
4278}
4279_ACEOF
4280rm -f conftest.$ac_objext
4281if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4282 (eval $ac_compile) 2>conftest.er1
4283 ac_status=$?
4284 grep -v '^ *+' conftest.er1 >conftest.err
4285 rm -f conftest.er1
4286 cat conftest.err >&5
4287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288 (exit $ac_status); } &&
4289 { ac_try='test -z "$ac_c_werror_flag"
4290 || test ! -s conftest.err'
4291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4292 (eval $ac_try) 2>&5
4293 ac_status=$?
4294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295 (exit $ac_status); }; } &&
4296 { ac_try='test -s conftest.$ac_objext'
4297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4298 (eval $ac_try) 2>&5
4299 ac_status=$?
4300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301 (exit $ac_status); }; }; then
4302 ac_cv_header_stdc=yes
4303else
4304 echo "$as_me: failed program was:" >&5
4305sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4306
7357c5b6
AM
4307ac_cv_header_stdc=no
4308fi
4309rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d7040cdb 4310
7357c5b6
AM
4311if test $ac_cv_header_stdc = yes; then
4312 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4313 cat >conftest.$ac_ext <<_ACEOF
4314/* confdefs.h. */
4315_ACEOF
4316cat confdefs.h >>conftest.$ac_ext
4317cat >>conftest.$ac_ext <<_ACEOF
4318/* end confdefs.h. */
4319#include <string.h>
d7040cdb 4320
7357c5b6
AM
4321_ACEOF
4322if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4323 $EGREP "memchr" >/dev/null 2>&1; then
4324 :
ce2cded5 4325else
7357c5b6
AM
4326 ac_cv_header_stdc=no
4327fi
4328rm -f conftest*
d7040cdb 4329
7357c5b6 4330fi
d7040cdb 4331
7357c5b6
AM
4332if test $ac_cv_header_stdc = yes; then
4333 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4334 cat >conftest.$ac_ext <<_ACEOF
4335/* confdefs.h. */
4336_ACEOF
4337cat confdefs.h >>conftest.$ac_ext
4338cat >>conftest.$ac_ext <<_ACEOF
4339/* end confdefs.h. */
4340#include <stdlib.h>
ac48eca1 4341
7357c5b6
AM
4342_ACEOF
4343if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4344 $EGREP "free" >/dev/null 2>&1; then
4345 :
4346else
4347 ac_cv_header_stdc=no
4348fi
4349rm -f conftest*
d7040cdb 4350
7357c5b6 4351fi
d7040cdb 4352
7357c5b6
AM
4353if test $ac_cv_header_stdc = yes; then
4354 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4355 if test "$cross_compiling" = yes; then
4356 :
4357else
4358 cat >conftest.$ac_ext <<_ACEOF
4359/* confdefs.h. */
4360_ACEOF
4361cat confdefs.h >>conftest.$ac_ext
4362cat >>conftest.$ac_ext <<_ACEOF
4363/* end confdefs.h. */
4364#include <ctype.h>
4365#if ((' ' & 0x0FF) == 0x020)
4366# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4367# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4368#else
4369# define ISLOWER(c) \
4370 (('a' <= (c) && (c) <= 'i') \
4371 || ('j' <= (c) && (c) <= 'r') \
4372 || ('s' <= (c) && (c) <= 'z'))
4373# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4374#endif
d7040cdb 4375
7357c5b6
AM
4376#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4377int
4378main ()
4379{
4380 int i;
4381 for (i = 0; i < 256; i++)
4382 if (XOR (islower (i), ISLOWER (i))
4383 || toupper (i) != TOUPPER (i))
4384 exit(2);
4385 exit (0);
4386}
4387_ACEOF
4388rm -f conftest$ac_exeext
4389if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4390 (eval $ac_link) 2>&5
4391 ac_status=$?
4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4395 (eval $ac_try) 2>&5
4396 ac_status=$?
4397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398 (exit $ac_status); }; }; then
4399 :
4400else
4401 echo "$as_me: program exited with status $ac_status" >&5
4402echo "$as_me: failed program was:" >&5
4403sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4404
7357c5b6
AM
4405( exit $ac_status )
4406ac_cv_header_stdc=no
4407fi
4408rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4409fi
4410fi
4411fi
4412echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4413echo "${ECHO_T}$ac_cv_header_stdc" >&6
4414if test $ac_cv_header_stdc = yes; then
d7040cdb 4415
7357c5b6
AM
4416cat >>confdefs.h <<\_ACEOF
4417#define STDC_HEADERS 1
4418_ACEOF
d7040cdb 4419
7357c5b6 4420fi
d7040cdb 4421
7357c5b6 4422# On IRIX 5.3, sys/types and inttypes.h are conflicting.
d7040cdb
SE
4423
4424
4425
4426
4427
ce2cded5
L
4428
4429
13b2be9c 4430
ce2cded5 4431
7357c5b6
AM
4432for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4433 inttypes.h stdint.h unistd.h
4434do
4435as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4436echo "$as_me:$LINENO: checking for $ac_header" >&5
4437echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4438if eval "test \"\${$as_ac_Header+set}\" = set"; then
4439 echo $ECHO_N "(cached) $ECHO_C" >&6
4440else
4441 cat >conftest.$ac_ext <<_ACEOF
4442/* confdefs.h. */
4443_ACEOF
4444cat confdefs.h >>conftest.$ac_ext
4445cat >>conftest.$ac_ext <<_ACEOF
4446/* end confdefs.h. */
4447$ac_includes_default
ce2cded5 4448
7357c5b6
AM
4449#include <$ac_header>
4450_ACEOF
4451rm -f conftest.$ac_objext
4452if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4453 (eval $ac_compile) 2>conftest.er1
4454 ac_status=$?
4455 grep -v '^ *+' conftest.er1 >conftest.err
4456 rm -f conftest.er1
4457 cat conftest.err >&5
4458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459 (exit $ac_status); } &&
4460 { ac_try='test -z "$ac_c_werror_flag"
4461 || test ! -s conftest.err'
4462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4463 (eval $ac_try) 2>&5
4464 ac_status=$?
4465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466 (exit $ac_status); }; } &&
4467 { ac_try='test -s conftest.$ac_objext'
4468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4469 (eval $ac_try) 2>&5
4470 ac_status=$?
4471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472 (exit $ac_status); }; }; then
4473 eval "$as_ac_Header=yes"
4474else
4475 echo "$as_me: failed program was:" >&5
4476sed 's/^/| /' conftest.$ac_ext >&5
ce2cded5 4477
7357c5b6
AM
4478eval "$as_ac_Header=no"
4479fi
4480rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4481fi
4482echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4483echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4484if test `eval echo '${'$as_ac_Header'}'` = yes; then
4485 cat >>confdefs.h <<_ACEOF
4486#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4487_ACEOF
ce2cded5 4488
7357c5b6 4489fi
ce2cded5 4490
7357c5b6 4491done
ce2cded5
L
4492
4493
4494
7357c5b6
AM
4495 if test "${ac_cv_header_minix_config_h+set}" = set; then
4496 echo "$as_me:$LINENO: checking for minix/config.h" >&5
4497echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4498if test "${ac_cv_header_minix_config_h+set}" = set; then
4499 echo $ECHO_N "(cached) $ECHO_C" >&6
4500fi
4501echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4502echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4503else
4504 # Is the header compilable?
4505echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4506echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
4507cat >conftest.$ac_ext <<_ACEOF
4508/* confdefs.h. */
4509_ACEOF
4510cat confdefs.h >>conftest.$ac_ext
4511cat >>conftest.$ac_ext <<_ACEOF
4512/* end confdefs.h. */
4513$ac_includes_default
4514#include <minix/config.h>
4515_ACEOF
4516rm -f conftest.$ac_objext
4517if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4518 (eval $ac_compile) 2>conftest.er1
4519 ac_status=$?
4520 grep -v '^ *+' conftest.er1 >conftest.err
4521 rm -f conftest.er1
4522 cat conftest.err >&5
4523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524 (exit $ac_status); } &&
4525 { ac_try='test -z "$ac_c_werror_flag"
4526 || test ! -s conftest.err'
4527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4528 (eval $ac_try) 2>&5
4529 ac_status=$?
4530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531 (exit $ac_status); }; } &&
4532 { ac_try='test -s conftest.$ac_objext'
4533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4534 (eval $ac_try) 2>&5
4535 ac_status=$?
4536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537 (exit $ac_status); }; }; then
4538 ac_header_compiler=yes
4539else
4540 echo "$as_me: failed program was:" >&5
4541sed 's/^/| /' conftest.$ac_ext >&5
ce2cded5 4542
7357c5b6
AM
4543ac_header_compiler=no
4544fi
4545rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4546echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4547echo "${ECHO_T}$ac_header_compiler" >&6
ce2cded5 4548
7357c5b6
AM
4549# Is the header present?
4550echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4551echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
4552cat >conftest.$ac_ext <<_ACEOF
4553/* confdefs.h. */
4554_ACEOF
4555cat confdefs.h >>conftest.$ac_ext
4556cat >>conftest.$ac_ext <<_ACEOF
4557/* end confdefs.h. */
4558#include <minix/config.h>
4559_ACEOF
4560if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4561 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4562 ac_status=$?
4563 grep -v '^ *+' conftest.er1 >conftest.err
4564 rm -f conftest.er1
4565 cat conftest.err >&5
4566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4567 (exit $ac_status); } >/dev/null; then
4568 if test -s conftest.err; then
4569 ac_cpp_err=$ac_c_preproc_warn_flag
4570 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4571 else
4572 ac_cpp_err=
4573 fi
4574else
4575 ac_cpp_err=yes
4576fi
4577if test -z "$ac_cpp_err"; then
4578 ac_header_preproc=yes
4579else
4580 echo "$as_me: failed program was:" >&5
4581sed 's/^/| /' conftest.$ac_ext >&5
ce2cded5 4582
7357c5b6
AM
4583 ac_header_preproc=no
4584fi
4585rm -f conftest.err conftest.$ac_ext
4586echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4587echo "${ECHO_T}$ac_header_preproc" >&6
ce2cded5 4588
7357c5b6
AM
4589# So? What about this header?
4590case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4591 yes:no: )
4592 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4593echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4594 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4595echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4596 ac_header_preproc=yes
4597 ;;
4598 no:yes:* )
4599 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4600echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4601 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4602echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4603 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4604echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4605 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4606echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4607 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4608echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4609 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4610echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4611 (
4612 cat <<\_ASBOX
4613## ------------------------------------------ ##
4614## Report this to the AC_PACKAGE_NAME lists. ##
4615## ------------------------------------------ ##
4616_ASBOX
4617 ) |
4618 sed "s/^/$as_me: WARNING: /" >&2
4619 ;;
4620esac
4621echo "$as_me:$LINENO: checking for minix/config.h" >&5
4622echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4623if test "${ac_cv_header_minix_config_h+set}" = set; then
13b2be9c 4624 echo $ECHO_N "(cached) $ECHO_C" >&6
d6d788bd 4625else
7357c5b6 4626 ac_cv_header_minix_config_h=$ac_header_preproc
ac48eca1 4627fi
7357c5b6
AM
4628echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4629echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
ac48eca1 4630
7357c5b6
AM
4631fi
4632if test $ac_cv_header_minix_config_h = yes; then
4633 MINIX=yes
4634else
4635 MINIX=
4636fi
d7040cdb
SE
4637
4638
7357c5b6 4639 if test "$MINIX" = yes; then
d7040cdb 4640
7357c5b6
AM
4641cat >>confdefs.h <<\_ACEOF
4642#define _POSIX_SOURCE 1
4643_ACEOF
d7040cdb
SE
4644
4645
7357c5b6
AM
4646cat >>confdefs.h <<\_ACEOF
4647#define _POSIX_1_SOURCE 2
4648_ACEOF
d7040cdb
SE
4649
4650
7357c5b6
AM
4651cat >>confdefs.h <<\_ACEOF
4652#define _MINIX 1
4653_ACEOF
d7040cdb 4654
7357c5b6 4655 fi
d7040cdb
SE
4656
4657
13b2be9c 4658
7357c5b6
AM
4659 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4660echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
4661if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
ce2cded5 4662 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 4663else
7357c5b6
AM
4664 cat >conftest.$ac_ext <<_ACEOF
4665/* confdefs.h. */
4666_ACEOF
4667cat confdefs.h >>conftest.$ac_ext
4668cat >>conftest.$ac_ext <<_ACEOF
4669/* end confdefs.h. */
ac48eca1 4670
7357c5b6
AM
4671# define __EXTENSIONS__ 1
4672 $ac_includes_default
4673int
4674main ()
4675{
13b2be9c 4676
7357c5b6
AM
4677 ;
4678 return 0;
4679}
4680_ACEOF
4681rm -f conftest.$ac_objext
4682if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4683 (eval $ac_compile) 2>conftest.er1
4684 ac_status=$?
4685 grep -v '^ *+' conftest.er1 >conftest.err
4686 rm -f conftest.er1
4687 cat conftest.err >&5
4688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689 (exit $ac_status); } &&
4690 { ac_try='test -z "$ac_c_werror_flag"
4691 || test ! -s conftest.err'
4692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4693 (eval $ac_try) 2>&5
4694 ac_status=$?
4695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696 (exit $ac_status); }; } &&
4697 { ac_try='test -s conftest.$ac_objext'
4698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4699 (eval $ac_try) 2>&5
4700 ac_status=$?
4701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4702 (exit $ac_status); }; }; then
4703 ac_cv_safe_to_define___extensions__=yes
d6d788bd 4704else
7357c5b6
AM
4705 echo "$as_me: failed program was:" >&5
4706sed 's/^/| /' conftest.$ac_ext >&5
4707
4708ac_cv_safe_to_define___extensions__=no
d6d788bd 4709fi
7357c5b6
AM
4710rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4711fi
4712echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4713echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
4714 test $ac_cv_safe_to_define___extensions__ = yes &&
4715 cat >>confdefs.h <<\_ACEOF
4716#define __EXTENSIONS__ 1
4717_ACEOF
d6d788bd 4718
7357c5b6
AM
4719 cat >>confdefs.h <<\_ACEOF
4720#define _ALL_SOURCE 1
4721_ACEOF
d6d788bd 4722
7357c5b6
AM
4723 cat >>confdefs.h <<\_ACEOF
4724#define _GNU_SOURCE 1
4725_ACEOF
252b5132 4726
7357c5b6
AM
4727 cat >>confdefs.h <<\_ACEOF
4728#define _POSIX_PTHREAD_SEMANTICS 1
4729_ACEOF
252b5132 4730
7357c5b6
AM
4731 cat >>confdefs.h <<\_ACEOF
4732#define _TANDEM_SOURCE 1
4733_ACEOF
d6d788bd 4734
a74801ba 4735
d053aef8
JK
4736# Check whether --enable-largefile or --disable-largefile was given.
4737if test "${enable_largefile+set}" = set; then
4738 enableval="$enable_largefile"
4739
4740fi;
4741if test "$enable_largefile" != no; then
4742
4743 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4744echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4745if test "${ac_cv_sys_largefile_CC+set}" = set; then
4746 echo $ECHO_N "(cached) $ECHO_C" >&6
4747else
4748 ac_cv_sys_largefile_CC=no
4749 if test "$GCC" != yes; then
4750 ac_save_CC=$CC
4751 while :; do
4752 # IRIX 6.2 and later do not support large files by default,
4753 # so use the C compiler's -n32 option if that helps.
4754 cat >conftest.$ac_ext <<_ACEOF
4755/* confdefs.h. */
4756_ACEOF
4757cat confdefs.h >>conftest.$ac_ext
4758cat >>conftest.$ac_ext <<_ACEOF
4759/* end confdefs.h. */
4760#include <sys/types.h>
4761 /* Check that off_t can represent 2**63 - 1 correctly.
4762 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4763 since some C++ compilers masquerading as C compilers
4764 incorrectly reject 9223372036854775807. */
4765#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4766 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4767 && LARGE_OFF_T % 2147483647 == 1)
4768 ? 1 : -1];
4769int
4770main ()
4771{
4772
4773 ;
4774 return 0;
4775}
4776_ACEOF
4777 rm -f conftest.$ac_objext
4778if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4779 (eval $ac_compile) 2>conftest.er1
4780 ac_status=$?
4781 grep -v '^ *+' conftest.er1 >conftest.err
4782 rm -f conftest.er1
4783 cat conftest.err >&5
4784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4785 (exit $ac_status); } &&
4786 { ac_try='test -z "$ac_c_werror_flag"
4787 || test ! -s conftest.err'
4788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4789 (eval $ac_try) 2>&5
4790 ac_status=$?
4791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792 (exit $ac_status); }; } &&
4793 { ac_try='test -s conftest.$ac_objext'
4794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4795 (eval $ac_try) 2>&5
4796 ac_status=$?
4797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4798 (exit $ac_status); }; }; then
4799 break
4800else
4801 echo "$as_me: failed program was:" >&5
4802sed 's/^/| /' conftest.$ac_ext >&5
4803
4804fi
4805rm -f conftest.err conftest.$ac_objext
4806 CC="$CC -n32"
4807 rm -f conftest.$ac_objext
4808if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4809 (eval $ac_compile) 2>conftest.er1
4810 ac_status=$?
4811 grep -v '^ *+' conftest.er1 >conftest.err
4812 rm -f conftest.er1
4813 cat conftest.err >&5
4814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815 (exit $ac_status); } &&
4816 { ac_try='test -z "$ac_c_werror_flag"
4817 || test ! -s conftest.err'
4818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4819 (eval $ac_try) 2>&5
4820 ac_status=$?
4821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822 (exit $ac_status); }; } &&
4823 { ac_try='test -s conftest.$ac_objext'
4824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4825 (eval $ac_try) 2>&5
4826 ac_status=$?
4827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828 (exit $ac_status); }; }; then
4829 ac_cv_sys_largefile_CC=' -n32'; break
4830else
4831 echo "$as_me: failed program was:" >&5
4832sed 's/^/| /' conftest.$ac_ext >&5
4833
4834fi
4835rm -f conftest.err conftest.$ac_objext
4836 break
4837 done
4838 CC=$ac_save_CC
4839 rm -f conftest.$ac_ext
4840 fi
4841fi
4842echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4843echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4844 if test "$ac_cv_sys_largefile_CC" != no; then
4845 CC=$CC$ac_cv_sys_largefile_CC
4846 fi
4847
4848 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4849echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4850if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4851 echo $ECHO_N "(cached) $ECHO_C" >&6
4852else
4853 while :; do
4854 ac_cv_sys_file_offset_bits=no
4855 cat >conftest.$ac_ext <<_ACEOF
4856/* confdefs.h. */
4857_ACEOF
4858cat confdefs.h >>conftest.$ac_ext
4859cat >>conftest.$ac_ext <<_ACEOF
4860/* end confdefs.h. */
4861#include <sys/types.h>
4862 /* Check that off_t can represent 2**63 - 1 correctly.
4863 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4864 since some C++ compilers masquerading as C compilers
4865 incorrectly reject 9223372036854775807. */
4866#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4867 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4868 && LARGE_OFF_T % 2147483647 == 1)
4869 ? 1 : -1];
4870int
4871main ()
4872{
4873
4874 ;
4875 return 0;
4876}
4877_ACEOF
4878rm -f conftest.$ac_objext
4879if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4880 (eval $ac_compile) 2>conftest.er1
4881 ac_status=$?
4882 grep -v '^ *+' conftest.er1 >conftest.err
4883 rm -f conftest.er1
4884 cat conftest.err >&5
4885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886 (exit $ac_status); } &&
4887 { ac_try='test -z "$ac_c_werror_flag"
4888 || test ! -s conftest.err'
4889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4890 (eval $ac_try) 2>&5
4891 ac_status=$?
4892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893 (exit $ac_status); }; } &&
4894 { ac_try='test -s conftest.$ac_objext'
4895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4896 (eval $ac_try) 2>&5
4897 ac_status=$?
4898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899 (exit $ac_status); }; }; then
4900 break
4901else
4902 echo "$as_me: failed program was:" >&5
4903sed 's/^/| /' conftest.$ac_ext >&5
4904
4905fi
4906rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4907 cat >conftest.$ac_ext <<_ACEOF
4908/* confdefs.h. */
4909_ACEOF
4910cat confdefs.h >>conftest.$ac_ext
4911cat >>conftest.$ac_ext <<_ACEOF
4912/* end confdefs.h. */
4913#define _FILE_OFFSET_BITS 64
4914#include <sys/types.h>
4915 /* Check that off_t can represent 2**63 - 1 correctly.
4916 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4917 since some C++ compilers masquerading as C compilers
4918 incorrectly reject 9223372036854775807. */
4919#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4920 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4921 && LARGE_OFF_T % 2147483647 == 1)
4922 ? 1 : -1];
4923int
4924main ()
4925{
4926
4927 ;
4928 return 0;
4929}
4930_ACEOF
4931rm -f conftest.$ac_objext
4932if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4933 (eval $ac_compile) 2>conftest.er1
4934 ac_status=$?
4935 grep -v '^ *+' conftest.er1 >conftest.err
4936 rm -f conftest.er1
4937 cat conftest.err >&5
4938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939 (exit $ac_status); } &&
4940 { ac_try='test -z "$ac_c_werror_flag"
4941 || test ! -s conftest.err'
4942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4943 (eval $ac_try) 2>&5
4944 ac_status=$?
4945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946 (exit $ac_status); }; } &&
4947 { ac_try='test -s conftest.$ac_objext'
4948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4949 (eval $ac_try) 2>&5
4950 ac_status=$?
4951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4952 (exit $ac_status); }; }; then
4953 ac_cv_sys_file_offset_bits=64; break
4954else
4955 echo "$as_me: failed program was:" >&5
4956sed 's/^/| /' conftest.$ac_ext >&5
4957
4958fi
4959rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4960 break
4961done
4962fi
4963echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4964echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4965if test "$ac_cv_sys_file_offset_bits" != no; then
4966
4967cat >>confdefs.h <<_ACEOF
4968#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4969_ACEOF
4970
4971fi
4972rm -f conftest*
4973 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4974echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4975if test "${ac_cv_sys_large_files+set}" = set; then
4976 echo $ECHO_N "(cached) $ECHO_C" >&6
4977else
4978 while :; do
4979 ac_cv_sys_large_files=no
4980 cat >conftest.$ac_ext <<_ACEOF
4981/* confdefs.h. */
4982_ACEOF
4983cat confdefs.h >>conftest.$ac_ext
4984cat >>conftest.$ac_ext <<_ACEOF
4985/* end confdefs.h. */
4986#include <sys/types.h>
4987 /* Check that off_t can represent 2**63 - 1 correctly.
4988 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4989 since some C++ compilers masquerading as C compilers
4990 incorrectly reject 9223372036854775807. */
4991#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4992 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4993 && LARGE_OFF_T % 2147483647 == 1)
4994 ? 1 : -1];
4995int
4996main ()
4997{
4998
4999 ;
5000 return 0;
5001}
5002_ACEOF
5003rm -f conftest.$ac_objext
5004if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5005 (eval $ac_compile) 2>conftest.er1
5006 ac_status=$?
5007 grep -v '^ *+' conftest.er1 >conftest.err
5008 rm -f conftest.er1
5009 cat conftest.err >&5
5010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011 (exit $ac_status); } &&
5012 { ac_try='test -z "$ac_c_werror_flag"
5013 || test ! -s conftest.err'
5014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5015 (eval $ac_try) 2>&5
5016 ac_status=$?
5017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5018 (exit $ac_status); }; } &&
5019 { ac_try='test -s conftest.$ac_objext'
5020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5021 (eval $ac_try) 2>&5
5022 ac_status=$?
5023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5024 (exit $ac_status); }; }; then
5025 break
5026else
5027 echo "$as_me: failed program was:" >&5
5028sed 's/^/| /' conftest.$ac_ext >&5
5029
5030fi
5031rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5032 cat >conftest.$ac_ext <<_ACEOF
5033/* confdefs.h. */
5034_ACEOF
5035cat confdefs.h >>conftest.$ac_ext
5036cat >>conftest.$ac_ext <<_ACEOF
5037/* end confdefs.h. */
5038#define _LARGE_FILES 1
5039#include <sys/types.h>
5040 /* Check that off_t can represent 2**63 - 1 correctly.
5041 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5042 since some C++ compilers masquerading as C compilers
5043 incorrectly reject 9223372036854775807. */
5044#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5045 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5046 && LARGE_OFF_T % 2147483647 == 1)
5047 ? 1 : -1];
5048int
5049main ()
5050{
5051
5052 ;
5053 return 0;
5054}
5055_ACEOF
5056rm -f conftest.$ac_objext
5057if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5058 (eval $ac_compile) 2>conftest.er1
5059 ac_status=$?
5060 grep -v '^ *+' conftest.er1 >conftest.err
5061 rm -f conftest.er1
5062 cat conftest.err >&5
5063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064 (exit $ac_status); } &&
5065 { ac_try='test -z "$ac_c_werror_flag"
5066 || test ! -s conftest.err'
5067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5068 (eval $ac_try) 2>&5
5069 ac_status=$?
5070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071 (exit $ac_status); }; } &&
5072 { ac_try='test -s conftest.$ac_objext'
5073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5074 (eval $ac_try) 2>&5
5075 ac_status=$?
5076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5077 (exit $ac_status); }; }; then
5078 ac_cv_sys_large_files=1; break
5079else
5080 echo "$as_me: failed program was:" >&5
5081sed 's/^/| /' conftest.$ac_ext >&5
5082
5083fi
5084rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5085 break
5086done
5087fi
5088echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5089echo "${ECHO_T}$ac_cv_sys_large_files" >&6
5090if test "$ac_cv_sys_large_files" != no; then
5091
5092cat >>confdefs.h <<_ACEOF
5093#define _LARGE_FILES $ac_cv_sys_large_files
5094_ACEOF
5095
5096fi
5097rm -f conftest*
5098fi
5099
a74801ba 5100
718a6fd8
SE
5101case `pwd` in
5102 *\ * | *\ *)
5103 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5104echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5105esac
13b2be9c 5106
252b5132 5107
7357c5b6 5108
718a6fd8
SE
5109macro_version='2.2.6'
5110macro_revision='1.3012'
7357c5b6
AM
5111
5112
5113
5114
5115
5116
7357c5b6
AM
5117
5118
5119
5120
5121
5122
5123
718a6fd8 5124ltmain="$ac_aux_dir/ltmain.sh"
7357c5b6
AM
5125
5126echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5127echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5128if test "${lt_cv_path_SED+set}" = set; then
5129 echo $ECHO_N "(cached) $ECHO_C" >&6
5130else
5131 # Loop through the user's path and test for sed and gsed.
5132# Then use that list of sed's as ones to test for truncation.
5133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5134for as_dir in $PATH
5135do
5136 IFS=$as_save_IFS
5137 test -z "$as_dir" && as_dir=.
5138 for lt_ac_prog in sed gsed; do
5139 for ac_exec_ext in '' $ac_executable_extensions; do
5140 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5141 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5142 fi
5143 done
5144 done
5145done
5146IFS=$as_save_IFS
5147lt_ac_max=0
5148lt_ac_count=0
5149# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5150# along with /bin/sed that truncates output.
5151for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5152 test ! -f $lt_ac_sed && continue
5153 cat /dev/null > conftest.in
5154 lt_ac_count=0
5155 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5156 # Check for GNU sed and select it if it is found.
5157 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5158 lt_cv_path_SED=$lt_ac_sed
5159 break
5160 fi
5161 while true; do
5162 cat conftest.in conftest.in >conftest.tmp
5163 mv conftest.tmp conftest.in
5164 cp conftest.in conftest.nl
5165 echo >>conftest.nl
5166 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5167 cmp -s conftest.out conftest.nl || break
5168 # 10000 chars as input seems more than enough
5169 test $lt_ac_count -gt 10 && break
5170 lt_ac_count=`expr $lt_ac_count + 1`
5171 if test $lt_ac_count -gt $lt_ac_max; then
5172 lt_ac_max=$lt_ac_count
5173 lt_cv_path_SED=$lt_ac_sed
5174 fi
5175 done
5176done
5177
5178fi
5179
5180SED=$lt_cv_path_SED
5181
5182echo "$as_me:$LINENO: result: $SED" >&5
5183echo "${ECHO_T}$SED" >&6
5184
5185test -z "$SED" && SED=sed
5186Xsed="$SED -e 1s/^X//"
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198echo "$as_me:$LINENO: checking for fgrep" >&5
5199echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
5200if test "${ac_cv_prog_fgrep+set}" = set; then
5201 echo $ECHO_N "(cached) $ECHO_C" >&6
5202else
5203 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
5204 then ac_cv_prog_fgrep='grep -F'
5205 else ac_cv_prog_fgrep='fgrep'
5206 fi
5207fi
5208echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
5209echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
5210 FGREP=$ac_cv_prog_fgrep
5211
5212
5213test -z "$GREP" && GREP=grep
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233# Check whether --with-gnu-ld or --without-gnu-ld was given.
5234if test "${with_gnu_ld+set}" = set; then
5235 withval="$with_gnu_ld"
5236 test "$withval" = no || with_gnu_ld=yes
5237else
5238 with_gnu_ld=no
ce2cded5
L
5239fi;
5240ac_prog=ld
5241if test "$GCC" = yes; then
5242 # Check if gcc -print-prog-name=ld gives a path.
5243 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5244echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5245 case $host in
5246 *-*-mingw*)
5247 # gcc leaves a trailing carriage return which upsets mingw
5248 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5249 *)
5250 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5251 esac
5252 case $ac_prog in
5253 # Accept absolute paths.
5254 [\\/]* | ?:[\\/]*)
5255 re_direlt='/[^/][^/]*/\.\./'
5256 # Canonicalize the pathname of ld
5257 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5258 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5259 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5260 done
5261 test -z "$LD" && LD="$ac_prog"
5262 ;;
5263 "")
5264 # If it fails, then pretend we aren't using GCC.
5265 ac_prog=ld
5266 ;;
5267 *)
5268 # If it is relative, then search for the first ld in PATH.
5269 with_gnu_ld=unknown
5270 ;;
5271 esac
5272elif test "$with_gnu_ld" = yes; then
5273 echo "$as_me:$LINENO: checking for GNU ld" >&5
5274echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5275else
5276 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5277echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5278fi
5279if test "${lt_cv_path_LD+set}" = set; then
5280 echo $ECHO_N "(cached) $ECHO_C" >&6
5281else
5282 if test -z "$LD"; then
5283 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5284 for ac_dir in $PATH; do
5285 IFS="$lt_save_ifs"
5286 test -z "$ac_dir" && ac_dir=.
5287 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5288 lt_cv_path_LD="$ac_dir/$ac_prog"
5289 # Check to see if the program is GNU ld. I'd rather use --version,
5290 # but apparently some variants of GNU ld only accept -v.
5291 # Break only if it was the GNU/non-GNU ld that we prefer.
5292 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5293 *GNU* | *'with BFD'*)
5294 test "$with_gnu_ld" != no && break
5295 ;;
5296 *)
5297 test "$with_gnu_ld" != yes && break
5298 ;;
5299 esac
5300 fi
5301 done
5302 IFS="$lt_save_ifs"
5303else
5304 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5305fi
5306fi
5307
5308LD="$lt_cv_path_LD"
5309if test -n "$LD"; then
5310 echo "$as_me:$LINENO: result: $LD" >&5
5311echo "${ECHO_T}$LD" >&6
5312else
5313 echo "$as_me:$LINENO: result: no" >&5
5314echo "${ECHO_T}no" >&6
5315fi
5316test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5317echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5318 { (exit 1); exit 1; }; }
5319echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5320echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5321if test "${lt_cv_prog_gnu_ld+set}" = set; then
5322 echo $ECHO_N "(cached) $ECHO_C" >&6
5323else
5324 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5325case `$LD -v 2>&1 </dev/null` in
5326*GNU* | *'with BFD'*)
5327 lt_cv_prog_gnu_ld=yes
5328 ;;
5329*)
5330 lt_cv_prog_gnu_ld=no
5331 ;;
5332esac
5333fi
5334echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5335echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5336with_gnu_ld=$lt_cv_prog_gnu_ld
5337
5338
5339
5340
5341
5342
5343
5344
5345
ce2cded5
L
5346echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5347echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
5348if test "${lt_cv_path_NM+set}" = set; then
5349 echo $ECHO_N "(cached) $ECHO_C" >&6
5350else
5351 if test -n "$NM"; then
5352 # Let the user override the test.
5353 lt_cv_path_NM="$NM"
5354else
5355 lt_nm_to_check="${ac_tool_prefix}nm"
5356 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5357 lt_nm_to_check="$lt_nm_to_check nm"
5358 fi
5359 for lt_tmp_nm in $lt_nm_to_check; do
5360 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5361 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5362 IFS="$lt_save_ifs"
5363 test -z "$ac_dir" && ac_dir=.
5364 tmp_nm="$ac_dir/$lt_tmp_nm"
5365 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5366 # Check to see if the nm accepts a BSD-compat flag.
5367 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5368 # nm: unknown option "B" ignored
5369 # Tru64's nm complains that /dev/null is an invalid object file
5370 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5371 */dev/null* | *'Invalid file or object type'*)
5372 lt_cv_path_NM="$tmp_nm -B"
5373 break
5374 ;;
5375 *)
5376 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5377 */dev/null*)
5378 lt_cv_path_NM="$tmp_nm -p"
5379 break
5380 ;;
5381 *)
5382 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5383 continue # so that we can try to find one that supports BSD flags
5384 ;;
5385 esac
5386 ;;
5387 esac
5388 fi
5389 done
5390 IFS="$lt_save_ifs"
5391 done
5392 : ${lt_cv_path_NM=no}
5393fi
5394fi
5395echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5396echo "${ECHO_T}$lt_cv_path_NM" >&6
5397if test "$lt_cv_path_NM" != "no"; then
5398 NM="$lt_cv_path_NM"
5399else
5400 # Didn't find any BSD compatible name lister, look for dumpbin.
5401 if test -n "$ac_tool_prefix"; then
5402 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5403 do
5404 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5405set dummy $ac_tool_prefix$ac_prog; ac_word=$2
d7040cdb
SE
5406echo "$as_me:$LINENO: checking for $ac_word" >&5
5407echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ce2cded5 5408if test "${ac_cv_prog_DUMPBIN+set}" = set; then
d7040cdb
SE
5409 echo $ECHO_N "(cached) $ECHO_C" >&6
5410else
ce2cded5
L
5411 if test -n "$DUMPBIN"; then
5412 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
d7040cdb
SE
5413else
5414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5415for as_dir in $PATH
5416do
5417 IFS=$as_save_IFS
5418 test -z "$as_dir" && as_dir=.
5419 for ac_exec_ext in '' $ac_executable_extensions; do
5420 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ce2cded5 5421 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
d7040cdb
SE
5422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5423 break 2
d70c5fc7 5424 fi
d7040cdb
SE
5425done
5426done
d70c5fc7 5427
d7040cdb
SE
5428fi
5429fi
ce2cded5
L
5430DUMPBIN=$ac_cv_prog_DUMPBIN
5431if test -n "$DUMPBIN"; then
5432 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5433echo "${ECHO_T}$DUMPBIN" >&6
bedf545c 5434else
d7040cdb
SE
5435 echo "$as_me:$LINENO: result: no" >&5
5436echo "${ECHO_T}no" >&6
5437fi
13b2be9c 5438
ce2cded5
L
5439 test -n "$DUMPBIN" && break
5440 done
5441fi
5442if test -z "$DUMPBIN"; then
5443 ac_ct_DUMPBIN=$DUMPBIN
5444 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5445do
5446 # Extract the first word of "$ac_prog", so it can be a program name with args.
5447set dummy $ac_prog; ac_word=$2
5448echo "$as_me:$LINENO: checking for $ac_word" >&5
5449echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5450if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5451 echo $ECHO_N "(cached) $ECHO_C" >&6
d7040cdb 5452else
ce2cded5
L
5453 if test -n "$ac_ct_DUMPBIN"; then
5454 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5455else
5456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5457for as_dir in $PATH
5458do
5459 IFS=$as_save_IFS
5460 test -z "$as_dir" && as_dir=.
5461 for ac_exec_ext in '' $ac_executable_extensions; do
5462 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5463 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5465 break 2
5466 fi
5467done
5468done
5469
5470fi
5471fi
5472ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5473if test -n "$ac_ct_DUMPBIN"; then
5474 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5475echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
5476else
5477 echo "$as_me:$LINENO: result: no" >&5
5478echo "${ECHO_T}no" >&6
d7040cdb
SE
5479fi
5480
ce2cded5
L
5481 test -n "$ac_ct_DUMPBIN" && break
5482done
5483test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
13b2be9c 5484
ce2cded5
L
5485 DUMPBIN=$ac_ct_DUMPBIN
5486fi
13b2be9c 5487
bedf545c 5488
ce2cded5
L
5489 if test "$DUMPBIN" != ":"; then
5490 NM="$DUMPBIN"
5491 fi
5492fi
5493test -z "$NM" && NM=nm
6840198f 5494
13b2be9c 5495
ac48eca1 5496
d7040cdb 5497
ce2cded5
L
5498
5499
5500echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5501echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
5502if test "${lt_cv_nm_interface+set}" = set; then
5503 echo $ECHO_N "(cached) $ECHO_C" >&6
5504else
5505 lt_cv_nm_interface="BSD nm"
5506 echo "int some_variable = 0;" > conftest.$ac_ext
718a6fd8 5507 (eval echo "\"\$as_me:5507: $ac_compile\"" >&5)
ce2cded5
L
5508 (eval "$ac_compile" 2>conftest.err)
5509 cat conftest.err >&5
718a6fd8 5510 (eval echo "\"\$as_me:5510: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
ce2cded5
L
5511 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5512 cat conftest.err >&5
718a6fd8 5513 (eval echo "\"\$as_me:5513: output\"" >&5)
ce2cded5
L
5514 cat conftest.out >&5
5515 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5516 lt_cv_nm_interface="MS dumpbin"
5517 fi
5518 rm -f conftest*
5519fi
5520echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5521echo "${ECHO_T}$lt_cv_nm_interface" >&6
5522
5523echo "$as_me:$LINENO: checking whether ln -s works" >&5
5524echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5525LN_S=$as_ln_s
5526if test "$LN_S" = "ln -s"; then
5527 echo "$as_me:$LINENO: result: yes" >&5
5528echo "${ECHO_T}yes" >&6
5529else
5530 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5531echo "${ECHO_T}no, using $LN_S" >&6
5532fi
5533
5534# find the maximum length of command line arguments
5535echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5536echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5537if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5538 echo $ECHO_N "(cached) $ECHO_C" >&6
5539else
5540 i=0
5541 teststring="ABCD"
5542
5543 case $build_os in
5544 msdosdjgpp*)
5545 # On DJGPP, this test can blow up pretty badly due to problems in libc
5546 # (any single argument exceeding 2000 bytes causes a buffer overrun
5547 # during glob expansion). Even if it were fixed, the result of this
5548 # check would be larger than it should be.
5549 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5550 ;;
5551
5552 gnu*)
5553 # Under GNU Hurd, this test is not required because there is
5554 # no limit to the length of command line arguments.
5555 # Libtool will interpret -1 as no limit whatsoever
5556 lt_cv_sys_max_cmd_len=-1;
5557 ;;
5558
718a6fd8 5559 cygwin* | mingw* | cegcc*)
ce2cded5
L
5560 # On Win9x/ME, this test blows up -- it succeeds, but takes
5561 # about 5 minutes as the teststring grows exponentially.
5562 # Worse, since 9x/ME are not pre-emptively multitasking,
5563 # you end up with a "frozen" computer, even though with patience
5564 # the test eventually succeeds (with a max line length of 256k).
5565 # Instead, let's just punt: use the minimum linelength reported by
5566 # all of the supported platforms: 8192 (on NT/2K/XP).
5567 lt_cv_sys_max_cmd_len=8192;
5568 ;;
5569
5570 amigaos*)
5571 # On AmigaOS with pdksh, this test takes hours, literally.
5572 # So we just punt and use a minimum line length of 8192.
5573 lt_cv_sys_max_cmd_len=8192;
5574 ;;
5575
5576 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5577 # This has been around since 386BSD, at least. Likely further.
5578 if test -x /sbin/sysctl; then
5579 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5580 elif test -x /usr/sbin/sysctl; then
5581 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5582 else
5583 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5584 fi
5585 # And add a safety zone
5586 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5587 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5588 ;;
5589
5590 interix*)
5591 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5592 lt_cv_sys_max_cmd_len=196608
5593 ;;
5594
5595 osf*)
5596 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5597 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5598 # nice to cause kernel panics so lets avoid the loop below.
5599 # First set a reasonable default.
5600 lt_cv_sys_max_cmd_len=16384
5601 #
5602 if test -x /sbin/sysconfig; then
5603 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5604 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5605 esac
5606 fi
5607 ;;
5608 sco3.2v5*)
5609 lt_cv_sys_max_cmd_len=102400
5610 ;;
5611 sysv5* | sco5v6* | sysv4.2uw2*)
5612 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5613 if test -n "$kargmax"; then
5614 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5615 else
5616 lt_cv_sys_max_cmd_len=32768
5617 fi
d7040cdb
SE
5618 ;;
5619 *)
718a6fd8
SE
5620 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5621 if test -n "$lt_cv_sys_max_cmd_len"; then
ce2cded5
L
5622 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5623 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5624 else
5625 # Make teststring a little bigger before we do anything with it.
5626 # a 1K string should be a reasonable start.
5627 for i in 1 2 3 4 5 6 7 8 ; do
5628 teststring=$teststring$teststring
5629 done
5630 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5631 # If test is not a shell built-in, we'll probably end up computing a
5632 # maximum length that is only half of the actual maximum length, but
5633 # we can't tell.
5634 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5635 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5636 test $i != 17 # 1/2 MB should be enough
5637 do
5638 i=`expr $i + 1`
5639 teststring=$teststring$teststring
5640 done
5641 # Only check the string length outside the loop.
5642 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5643 teststring=
5644 # Add a significant safety factor because C++ compilers can tack on
5645 # massive amounts of additional arguments before passing them to the
5646 # linker. It appears as though 1/2 is a usable value.
5647 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5648 fi
d7040cdb
SE
5649 ;;
5650 esac
252b5132 5651
ce2cded5 5652fi
d6d788bd 5653
ce2cded5
L
5654if test -n $lt_cv_sys_max_cmd_len ; then
5655 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5656echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5657else
5658 echo "$as_me:$LINENO: result: none" >&5
5659echo "${ECHO_T}none" >&6
5660fi
5661max_cmd_len=$lt_cv_sys_max_cmd_len
252b5132 5662
d6d788bd 5663
13b2be9c 5664
13b2be9c 5665
bedf545c 5666
252b5132 5667
ce2cded5
L
5668: ${CP="cp -f"}
5669: ${MV="mv -f"}
5670: ${RM="rm -f"}
d6d788bd 5671
ce2cded5
L
5672echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5673echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
5674# Try some XSI features
5675xsi_shell=no
5676( _lt_dummy="a/b/c"
5677 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
718a6fd8
SE
5678 = c,a/b,, \
5679 && eval 'test $(( 1 + 1 )) -eq 2 \
5680 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
ce2cded5
L
5681 && xsi_shell=yes
5682echo "$as_me:$LINENO: result: $xsi_shell" >&5
5683echo "${ECHO_T}$xsi_shell" >&6
bedf545c 5684
bedf545c 5685
ce2cded5
L
5686echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5687echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
5688lt_shell_append=no
5689( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5690 >/dev/null 2>&1 \
5691 && lt_shell_append=yes
5692echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5693echo "${ECHO_T}$lt_shell_append" >&6
252b5132 5694
d6d788bd 5695
ce2cded5
L
5696if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5697 lt_unset=unset
5698else
5699 lt_unset=false
5700fi
13b2be9c
DJ
5701
5702
5703
5704
d6d788bd 5705
ce2cded5
L
5706# test EBCDIC or ASCII
5707case `echo X|tr X '\101'` in
5708 A) # ASCII based system
5709 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5710 lt_SP2NL='tr \040 \012'
5711 lt_NL2SP='tr \015\012 \040\040'
5712 ;;
5713 *) # EBCDIC based system
5714 lt_SP2NL='tr \100 \n'
5715 lt_NL2SP='tr \r\n \100\100'
5716 ;;
5717esac
c43a438d 5718
c43a438d 5719
c43a438d 5720
252b5132 5721
ad22bfe8 5722
1ad12f97 5723
1ad12f97 5724
9e9b66a9 5725
1ad12f97 5726
ce2cded5
L
5727echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5728echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5729if test "${lt_cv_ld_reload_flag+set}" = set; then
5730 echo $ECHO_N "(cached) $ECHO_C" >&6
5731else
5732 lt_cv_ld_reload_flag='-r'
5733fi
5734echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5735echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5736reload_flag=$lt_cv_ld_reload_flag
5737case $reload_flag in
5738"" | " "*) ;;
5739*) reload_flag=" $reload_flag" ;;
5740esac
5741reload_cmds='$LD$reload_flag -o $output$reload_objs'
5742case $host_os in
5743 darwin*)
5744 if test "$GCC" = yes; then
5745 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5746 else
5747 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5748 fi
5749 ;;
5750esac
a541e3ce 5751
9e9b66a9 5752
a2d91340 5753
d6d788bd 5754
9e9b66a9
AM
5755
5756
5757
d6d788bd 5758
252b5132 5759
718a6fd8
SE
5760if test -n "$ac_tool_prefix"; then
5761 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5762set dummy ${ac_tool_prefix}objdump; ac_word=$2
5763echo "$as_me:$LINENO: checking for $ac_word" >&5
5764echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5765if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5766 echo $ECHO_N "(cached) $ECHO_C" >&6
5767else
5768 if test -n "$OBJDUMP"; then
5769 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5770else
5771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5772for as_dir in $PATH
5773do
5774 IFS=$as_save_IFS
5775 test -z "$as_dir" && as_dir=.
5776 for ac_exec_ext in '' $ac_executable_extensions; do
5777 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5778 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5780 break 2
5781 fi
5782done
5783done
5784
5785fi
5786fi
5787OBJDUMP=$ac_cv_prog_OBJDUMP
5788if test -n "$OBJDUMP"; then
5789 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5790echo "${ECHO_T}$OBJDUMP" >&6
5791else
5792 echo "$as_me:$LINENO: result: no" >&5
5793echo "${ECHO_T}no" >&6
5794fi
5795
5796fi
5797if test -z "$ac_cv_prog_OBJDUMP"; then
5798 ac_ct_OBJDUMP=$OBJDUMP
5799 # Extract the first word of "objdump", so it can be a program name with args.
5800set dummy objdump; ac_word=$2
5801echo "$as_me:$LINENO: checking for $ac_word" >&5
5802echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5803if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5804 echo $ECHO_N "(cached) $ECHO_C" >&6
5805else
5806 if test -n "$ac_ct_OBJDUMP"; then
5807 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5808else
5809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5810for as_dir in $PATH
5811do
5812 IFS=$as_save_IFS
5813 test -z "$as_dir" && as_dir=.
5814 for ac_exec_ext in '' $ac_executable_extensions; do
5815 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5816 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5818 break 2
5819 fi
5820done
5821done
5822
5823 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
5824fi
5825fi
5826ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5827if test -n "$ac_ct_OBJDUMP"; then
5828 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5829echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
5830else
5831 echo "$as_me:$LINENO: result: no" >&5
5832echo "${ECHO_T}no" >&6
5833fi
5834
5835 OBJDUMP=$ac_ct_OBJDUMP
5836else
5837 OBJDUMP="$ac_cv_prog_OBJDUMP"
5838fi
5839
5840test -z "$OBJDUMP" && OBJDUMP=objdump
5841
5842
5843
5844
5845
5846
5847
5848
13b2be9c 5849
ce2cded5
L
5850echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5851echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
5852if test "${lt_cv_deplibs_check_method+set}" = set; then
d7040cdb
SE
5853 echo $ECHO_N "(cached) $ECHO_C" >&6
5854else
ce2cded5
L
5855 lt_cv_file_magic_cmd='$MAGIC_CMD'
5856lt_cv_file_magic_test_file=
5857lt_cv_deplibs_check_method='unknown'
5858# Need to set the preceding variable on all platforms that support
5859# interlibrary dependencies.
5860# 'none' -- dependencies not supported.
5861# `unknown' -- same as none, but documents that we really don't know.
5862# 'pass_all' -- all dependencies passed with no checks.
5863# 'test_compile' -- check by making test program.
5864# 'file_magic [[regex]]' -- check by looking for files in library path
5865# which responds to the $file_magic_cmd with a given extended regex.
5866# If you have `file' or equivalent on your system and you're not sure
5867# whether `pass_all' will *always* work, you probably want this one.
13b2be9c 5868
ce2cded5 5869case $host_os in
50e7d84b 5870aix[4-9]*)
ce2cded5
L
5871 lt_cv_deplibs_check_method=pass_all
5872 ;;
d7040cdb 5873
ce2cded5
L
5874beos*)
5875 lt_cv_deplibs_check_method=pass_all
5876 ;;
d7040cdb 5877
ce2cded5
L
5878bsdi[45]*)
5879 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5880 lt_cv_file_magic_cmd='/usr/bin/file -L'
5881 lt_cv_file_magic_test_file=/shlib/libc.so
5882 ;;
d7040cdb 5883
ce2cded5
L
5884cygwin*)
5885 # func_win32_libid is a shell function defined in ltmain.sh
5886 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5887 lt_cv_file_magic_cmd='func_win32_libid'
d7040cdb 5888 ;;
ce2cded5
L
5889
5890mingw* | pw32*)
5891 # Base MSYS/MinGW do not provide the 'file' command needed by
5892 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5893 # unless we find 'file', for example because we are cross-compiling.
5894 if ( file / ) >/dev/null 2>&1; then
5895 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5896 lt_cv_file_magic_cmd='func_win32_libid'
5897 else
5898 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5899 lt_cv_file_magic_cmd='$OBJDUMP -f'
5900 fi
d7040cdb 5901 ;;
ce2cded5 5902
718a6fd8
SE
5903cegcc)
5904 # use the weaker test based on 'objdump'. See mingw*.
5905 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5906 lt_cv_file_magic_cmd='$OBJDUMP -f'
5907 ;;
5908
ce2cded5
L
5909darwin* | rhapsody*)
5910 lt_cv_deplibs_check_method=pass_all
5911 ;;
5912
5913freebsd* | dragonfly*)
5914 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5915 case $host_cpu in
5916 i*86 )
5917 # Not sure whether the presence of OpenBSD here was a mistake.
5918 # Let's accept both of them until this is cleared up.
5919 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5920 lt_cv_file_magic_cmd=/usr/bin/file
5921 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5922 ;;
5923 esac
5924 else
5925 lt_cv_deplibs_check_method=pass_all
d7040cdb
SE
5926 fi
5927 ;;
ce2cded5
L
5928
5929gnu*)
5930 lt_cv_deplibs_check_method=pass_all
d7040cdb 5931 ;;
ce2cded5
L
5932
5933hpux10.20* | hpux11*)
5934 lt_cv_file_magic_cmd=/usr/bin/file
5935 case $host_cpu in
5936 ia64*)
5937 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5938 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5939 ;;
5940 hppa*64*)
5941 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]'
5942 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5943 ;;
5944 *)
5945 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5946 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5947 ;;
5948 esac
d7040cdb 5949 ;;
ce2cded5
L
5950
5951interix[3-9]*)
5952 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5953 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
d7040cdb 5954 ;;
ce2cded5
L
5955
5956irix5* | irix6* | nonstopux*)
5957 case $LD in
5958 *-32|*"-32 ") libmagic=32-bit;;
5959 *-n32|*"-n32 ") libmagic=N32;;
5960 *-64|*"-64 ") libmagic=64-bit;;
5961 *) libmagic=never-match;;
5962 esac
5963 lt_cv_deplibs_check_method=pass_all
d7040cdb 5964 ;;
ce2cded5
L
5965
5966# This must be Linux ELF.
5967linux* | k*bsd*-gnu)
5968 lt_cv_deplibs_check_method=pass_all
d7040cdb 5969 ;;
ce2cded5
L
5970
5971netbsd*)
5972 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5973 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5974 else
5975 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5976 fi
d7040cdb 5977 ;;
ce2cded5
L
5978
5979newos6*)
5980 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5981 lt_cv_file_magic_cmd=/usr/bin/file
5982 lt_cv_file_magic_test_file=/usr/lib/libnls.so
d7040cdb 5983 ;;
76a27922 5984
ce2cded5
L
5985*nto* | *qnx*)
5986 lt_cv_deplibs_check_method=pass_all
5987 ;;
d6d788bd 5988
ce2cded5
L
5989openbsd*)
5990 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5991 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5992 else
5993 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5994 fi
5995 ;;
44f2f9d2 5996
ce2cded5
L
5997osf3* | osf4* | osf5*)
5998 lt_cv_deplibs_check_method=pass_all
5999 ;;
44f2f9d2 6000
ce2cded5
L
6001rdos*)
6002 lt_cv_deplibs_check_method=pass_all
6003 ;;
6004
6005solaris*)
6006 lt_cv_deplibs_check_method=pass_all
6007 ;;
6008
6009sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6010 lt_cv_deplibs_check_method=pass_all
6011 ;;
6012
6013sysv4 | sysv4.3*)
6014 case $host_vendor in
6015 motorola)
6016 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]'
6017 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6018 ;;
6019 ncr)
6020 lt_cv_deplibs_check_method=pass_all
6021 ;;
6022 sequent)
6023 lt_cv_file_magic_cmd='/bin/file'
6024 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6025 ;;
6026 sni)
6027 lt_cv_file_magic_cmd='/bin/file'
6028 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6029 lt_cv_file_magic_test_file=/lib/libc.so
6030 ;;
6031 siemens)
6032 lt_cv_deplibs_check_method=pass_all
6033 ;;
6034 pc)
6035 lt_cv_deplibs_check_method=pass_all
6036 ;;
6037 esac
6038 ;;
6039
6040tpf*)
6041 lt_cv_deplibs_check_method=pass_all
d7040cdb
SE
6042 ;;
6043esac
6044
ce2cded5
L
6045fi
6046echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6047echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6048file_magic_cmd=$lt_cv_file_magic_cmd
6049deplibs_check_method=$lt_cv_deplibs_check_method
6050test -z "$deplibs_check_method" && deplibs_check_method=unknown
d7040cdb 6051
d7040cdb 6052
d7040cdb 6053
d7040cdb 6054
d7040cdb 6055
44f2f9d2 6056
d7040cdb 6057
d7040cdb 6058
d7040cdb 6059
d7040cdb 6060
44f2f9d2 6061
d7040cdb 6062
ce2cded5
L
6063if test -n "$ac_tool_prefix"; then
6064 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6065set dummy ${ac_tool_prefix}ar; ac_word=$2
6066echo "$as_me:$LINENO: checking for $ac_word" >&5
6067echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6068if test "${ac_cv_prog_AR+set}" = set; then
6069 echo $ECHO_N "(cached) $ECHO_C" >&6
6070else
6071 if test -n "$AR"; then
6072 ac_cv_prog_AR="$AR" # Let the user override the test.
6073else
6074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6075for as_dir in $PATH
6076do
6077 IFS=$as_save_IFS
6078 test -z "$as_dir" && as_dir=.
6079 for ac_exec_ext in '' $ac_executable_extensions; do
6080 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6081 ac_cv_prog_AR="${ac_tool_prefix}ar"
6082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6083 break 2
d7040cdb
SE
6084 fi
6085done
ce2cded5 6086done
44f2f9d2 6087
ce2cded5
L
6088fi
6089fi
6090AR=$ac_cv_prog_AR
6091if test -n "$AR"; then
6092 echo "$as_me:$LINENO: result: $AR" >&5
6093echo "${ECHO_T}$AR" >&6
6094else
6095 echo "$as_me:$LINENO: result: no" >&5
6096echo "${ECHO_T}no" >&6
44f2f9d2 6097fi
d7040cdb 6098
d7040cdb 6099fi
ce2cded5
L
6100if test -z "$ac_cv_prog_AR"; then
6101 ac_ct_AR=$AR
6102 # Extract the first word of "ar", so it can be a program name with args.
6103set dummy ar; ac_word=$2
6104echo "$as_me:$LINENO: checking for $ac_word" >&5
6105echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6106if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6107 echo $ECHO_N "(cached) $ECHO_C" >&6
44f2f9d2 6108else
ce2cded5
L
6109 if test -n "$ac_ct_AR"; then
6110 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6111else
6112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6113for as_dir in $PATH
6114do
6115 IFS=$as_save_IFS
6116 test -z "$as_dir" && as_dir=.
6117 for ac_exec_ext in '' $ac_executable_extensions; do
6118 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6119 ac_cv_prog_ac_ct_AR="ar"
6120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6121 break 2
6122 fi
6123done
6124done
6125
6126 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6127fi
6128fi
6129ac_ct_AR=$ac_cv_prog_ac_ct_AR
6130if test -n "$ac_ct_AR"; then
6131 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6132echo "${ECHO_T}$ac_ct_AR" >&6
6133else
6134 echo "$as_me:$LINENO: result: no" >&5
6135echo "${ECHO_T}no" >&6
d7040cdb 6136fi
44f2f9d2 6137
ce2cded5
L
6138 AR=$ac_ct_AR
6139else
6140 AR="$ac_cv_prog_AR"
6141fi
d7040cdb 6142
ce2cded5
L
6143test -z "$AR" && AR=ar
6144test -z "$AR_FLAGS" && AR_FLAGS=cru
d7040cdb
SE
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
ce2cded5
L
6156if test -n "$ac_tool_prefix"; then
6157 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6158set dummy ${ac_tool_prefix}strip; ac_word=$2
6159echo "$as_me:$LINENO: checking for $ac_word" >&5
6160echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6161if test "${ac_cv_prog_STRIP+set}" = set; then
6162 echo $ECHO_N "(cached) $ECHO_C" >&6
6163else
6164 if test -n "$STRIP"; then
6165 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6166else
6167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6168for as_dir in $PATH
6169do
6170 IFS=$as_save_IFS
6171 test -z "$as_dir" && as_dir=.
6172 for ac_exec_ext in '' $ac_executable_extensions; do
6173 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6174 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6176 break 2
6177 fi
6178done
6179done
d7040cdb 6180
ce2cded5
L
6181fi
6182fi
6183STRIP=$ac_cv_prog_STRIP
6184if test -n "$STRIP"; then
6185 echo "$as_me:$LINENO: result: $STRIP" >&5
6186echo "${ECHO_T}$STRIP" >&6
6187else
6188 echo "$as_me:$LINENO: result: no" >&5
6189echo "${ECHO_T}no" >&6
6190fi
d7040cdb 6191
ce2cded5
L
6192fi
6193if test -z "$ac_cv_prog_STRIP"; then
6194 ac_ct_STRIP=$STRIP
6195 # Extract the first word of "strip", so it can be a program name with args.
6196set dummy strip; ac_word=$2
6197echo "$as_me:$LINENO: checking for $ac_word" >&5
6198echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6199if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6200 echo $ECHO_N "(cached) $ECHO_C" >&6
6201else
6202 if test -n "$ac_ct_STRIP"; then
6203 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6204else
6205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6206for as_dir in $PATH
6207do
6208 IFS=$as_save_IFS
6209 test -z "$as_dir" && as_dir=.
6210 for ac_exec_ext in '' $ac_executable_extensions; do
6211 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6212 ac_cv_prog_ac_ct_STRIP="strip"
6213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6214 break 2
6215 fi
6216done
6217done
d7040cdb 6218
ce2cded5
L
6219 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6220fi
6221fi
6222ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6223if test -n "$ac_ct_STRIP"; then
6224 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6225echo "${ECHO_T}$ac_ct_STRIP" >&6
6226else
6227 echo "$as_me:$LINENO: result: no" >&5
6228echo "${ECHO_T}no" >&6
6229fi
d7040cdb 6230
ce2cded5
L
6231 STRIP=$ac_ct_STRIP
6232else
6233 STRIP="$ac_cv_prog_STRIP"
6234fi
d7040cdb 6235
ce2cded5 6236test -z "$STRIP" && STRIP=:
d7040cdb 6237
d7040cdb 6238
d7040cdb 6239
d7040cdb 6240
d7040cdb 6241
d7040cdb 6242
ce2cded5
L
6243if test -n "$ac_tool_prefix"; then
6244 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6245set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6246echo "$as_me:$LINENO: checking for $ac_word" >&5
6247echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6248if test "${ac_cv_prog_RANLIB+set}" = set; then
6249 echo $ECHO_N "(cached) $ECHO_C" >&6
44f2f9d2 6250else
ce2cded5
L
6251 if test -n "$RANLIB"; then
6252 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6253else
6254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6255for as_dir in $PATH
6256do
6257 IFS=$as_save_IFS
6258 test -z "$as_dir" && as_dir=.
6259 for ac_exec_ext in '' $ac_executable_extensions; do
6260 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6261 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6263 break 2
6264 fi
6265done
6266done
44f2f9d2 6267
d7040cdb 6268fi
44f2f9d2 6269fi
ce2cded5
L
6270RANLIB=$ac_cv_prog_RANLIB
6271if test -n "$RANLIB"; then
6272 echo "$as_me:$LINENO: result: $RANLIB" >&5
6273echo "${ECHO_T}$RANLIB" >&6
6274else
6275 echo "$as_me:$LINENO: result: no" >&5
6276echo "${ECHO_T}no" >&6
6277fi
d7040cdb 6278
d7040cdb 6279fi
ce2cded5
L
6280if test -z "$ac_cv_prog_RANLIB"; then
6281 ac_ct_RANLIB=$RANLIB
6282 # Extract the first word of "ranlib", so it can be a program name with args.
6283set dummy ranlib; ac_word=$2
6284echo "$as_me:$LINENO: checking for $ac_word" >&5
6285echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6286if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
d7040cdb 6287 echo $ECHO_N "(cached) $ECHO_C" >&6
44f2f9d2 6288else
ce2cded5
L
6289 if test -n "$ac_ct_RANLIB"; then
6290 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6291else
6292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6293for as_dir in $PATH
d7040cdb 6294do
ce2cded5
L
6295 IFS=$as_save_IFS
6296 test -z "$as_dir" && as_dir=.
6297 for ac_exec_ext in '' $ac_executable_extensions; do
6298 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6299 ac_cv_prog_ac_ct_RANLIB="ranlib"
6300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6301 break 2
d7040cdb 6302 fi
ce2cded5
L
6303done
6304done
6305
6306 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
d7040cdb 6307fi
ce2cded5
L
6308fi
6309ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6310if test -n "$ac_ct_RANLIB"; then
6311 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6312echo "${ECHO_T}$ac_ct_RANLIB" >&6
d7040cdb 6313else
ce2cded5
L
6314 echo "$as_me:$LINENO: result: no" >&5
6315echo "${ECHO_T}no" >&6
44f2f9d2 6316fi
44f2f9d2 6317
ce2cded5 6318 RANLIB=$ac_ct_RANLIB
d7040cdb 6319else
ce2cded5 6320 RANLIB="$ac_cv_prog_RANLIB"
d7040cdb 6321fi
252b5132 6322
ce2cded5 6323test -z "$RANLIB" && RANLIB=:
252b5132 6324
252b5132 6325
ae57792d 6326
252b5132 6327
13b2be9c 6328
14ee9f48 6329
ce2cded5 6330# Determine commands to create old-style static archives.
718a6fd8 6331old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
ce2cded5
L
6332old_postinstall_cmds='chmod 644 $oldlib'
6333old_postuninstall_cmds=
14ee9f48 6334
ce2cded5
L
6335if test -n "$RANLIB"; then
6336 case $host_os in
6337 openbsd*)
6338 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6339 ;;
6340 *)
6341 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6342 ;;
6343 esac
6344 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
d7040cdb 6345fi
14ee9f48 6346
f8fc3443 6347
f8fc3443 6348
252b5132 6349
85fbca6a 6350
85fbca6a 6351
13b2be9c 6352
13b2be9c 6353
d7040cdb 6354
d7040cdb
SE
6355
6356
6357
252b5132 6358
93fbbb04 6359
93fbbb04 6360
d70c5fc7 6361
e0001a05 6362
252b5132 6363
252b5132 6364
252b5132 6365
252b5132 6366
252b5132 6367
3bcbcc3d 6368
252b5132 6369
252b5132 6370
252b5132 6371
15886821 6372
252b5132 6373
252b5132 6374
13b2be9c
DJ
6375
6376
252b5132 6377
252b5132 6378
d6d788bd 6379
ce2cded5
L
6380# If no C compiler was specified, use CC.
6381LTCC=${LTCC-"$CC"}
252b5132 6382
ce2cded5
L
6383# If no C compiler flags were specified, use CFLAGS.
6384LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
252b5132 6385
ce2cded5
L
6386# Allow CC to be a program name with arguments.
6387compiler=$CC
252b5132 6388
252b5132 6389
ce2cded5
L
6390# Check for command to grab the raw symbol name followed by C symbol from nm.
6391echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6392echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6393if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6394 echo $ECHO_N "(cached) $ECHO_C" >&6
6395else
252b5132 6396
ce2cded5
L
6397# These are sane defaults that work on at least a few old systems.
6398# [They come from Ultrix. What could be older than Ultrix?!! ;)]
252b5132 6399
ce2cded5
L
6400# Character class describing NM global symbol codes.
6401symcode='[BCDEGRST]'
252b5132 6402
ce2cded5
L
6403# Regexp to match symbols that can be accessed directly from C.
6404sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13b2be9c 6405
ce2cded5
L
6406# Define system-specific variables.
6407case $host_os in
6408aix*)
6409 symcode='[BCDT]'
6410 ;;
718a6fd8 6411cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
6412 symcode='[ABCDGISTW]'
6413 ;;
6414hpux*)
6415 if test "$host_cpu" = ia64; then
6416 symcode='[ABCDEGRST]'
6417 fi
6418 ;;
6419irix* | nonstopux*)
6420 symcode='[BCDEGRST]'
6421 ;;
6422osf*)
6423 symcode='[BCDEGQRST]'
6424 ;;
6425solaris*)
6426 symcode='[BDRT]'
6427 ;;
6428sco3.2v5*)
6429 symcode='[DT]'
6430 ;;
6431sysv4.2uw2*)
6432 symcode='[DT]'
6433 ;;
6434sysv5* | sco5v6* | unixware* | OpenUNIX*)
6435 symcode='[ABDT]'
6436 ;;
6437sysv4)
6438 symcode='[DFNSTU]'
6439 ;;
6440esac
6441
6442# If we're using GNU nm, then use its standard symbol codes.
6443case `$NM -V 2>&1` in
6444*GNU* | *'with BFD'*)
6445 symcode='[ABCDGIRSTW]' ;;
6446esac
252b5132 6447
ce2cded5
L
6448# Transform an extracted symbol line into a proper C declaration.
6449# Some systems (esp. on ia64) link data and code symbols differently,
6450# so use this general approach.
6451lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13b2be9c 6452
ce2cded5 6453# Transform an extracted symbol line into symbol name and symbol address
7357c5b6 6454lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
718a6fd8 6455lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
d7040cdb 6456
7357c5b6
AM
6457# Handle CRLF in mingw tool chain
6458opt_cr=
6459case $build_os in
6460mingw*)
6461 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6462 ;;
6463esac
d7040cdb 6464
7357c5b6
AM
6465# Try without a prefix underscore, then with it.
6466for ac_symprfx in "" "_"; do
d7040cdb 6467
7357c5b6
AM
6468 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6469 symxfrm="\\1 $ac_symprfx\\2 \\2"
d7040cdb 6470
7357c5b6
AM
6471 # Write the raw and C identifiers.
6472 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6473 # Fake it for dumpbin and say T for any non-static function
6474 # and D for any global variable.
6475 # Also find C++ and __fastcall symbols from MSVC++,
6476 # which start with @ or ?.
6477 lt_cv_sys_global_symbol_pipe="$AWK '"\
6478" {last_section=section; section=\$ 3};"\
6479" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6480" \$ 0!~/External *\|/{next};"\
6481" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6482" {if(hide[section]) next};"\
6483" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6484" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6485" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6486" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6487" ' prfx=^$ac_symprfx"
6488 else
6489 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6490 fi
d7040cdb 6491
7357c5b6
AM
6492 # Check to see that the pipe works correctly.
6493 pipe_works=no
d7040cdb 6494
7357c5b6
AM
6495 rm -f conftest*
6496 cat > conftest.$ac_ext <<_LT_EOF
6497#ifdef __cplusplus
6498extern "C" {
6499#endif
6500char nm_test_var;
6501void nm_test_func(void);
6502void nm_test_func(void){}
6503#ifdef __cplusplus
ce2cded5 6504}
7357c5b6
AM
6505#endif
6506int main(){nm_test_var='a';nm_test_func();return(0);}
6507_LT_EOF
6508
6509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6510 (eval $ac_compile) 2>&5
ce2cded5
L
6511 ac_status=$?
6512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357c5b6
AM
6513 (exit $ac_status); }; then
6514 # Now try to grab the symbols.
6515 nlist=conftest.nm
6516 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6517 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
ce2cded5
L
6518 ac_status=$?
6519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357c5b6
AM
6520 (exit $ac_status); } && test -s "$nlist"; then
6521 # Try sorting and uniquifying the output.
6522 if sort "$nlist" | uniq > "$nlist"T; then
6523 mv -f "$nlist"T "$nlist"
6524 else
6525 rm -f "$nlist"T
6526 fi
13b2be9c 6527
7357c5b6
AM
6528 # Make sure that we snagged all the symbols we need.
6529 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6530 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6531 cat <<_LT_EOF > conftest.$ac_ext
6532#ifdef __cplusplus
6533extern "C" {
6534#endif
13b2be9c 6535
7357c5b6
AM
6536_LT_EOF
6537 # Now generate the symbol file.
6538 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13b2be9c 6539
7357c5b6 6540 cat <<_LT_EOF >> conftest.$ac_ext
c8615825 6541
7357c5b6
AM
6542/* The mapping between symbol names and symbols. */
6543const struct {
6544 const char *name;
6545 void *address;
6546}
6547lt__PROGRAM__LTX_preloaded_symbols[] =
6548{
6549 { "@PROGRAM@", (void *) 0 },
6550_LT_EOF
6551 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6552 cat <<\_LT_EOF >> conftest.$ac_ext
6553 {0, (void *) 0}
6554};
d7040cdb 6555
7357c5b6
AM
6556/* This works around a problem in FreeBSD linker */
6557#ifdef FREEBSD_WORKAROUND
6558static const void *lt_preloaded_setup() {
6559 return lt__PROGRAM__LTX_preloaded_symbols;
6560}
ce2cded5 6561#endif
d7040cdb 6562
7357c5b6 6563#ifdef __cplusplus
ce2cded5 6564}
7357c5b6
AM
6565#endif
6566_LT_EOF
6567 # Now try linking the two files.
6568 mv conftest.$ac_objext conftstm.$ac_objext
6569 lt_save_LIBS="$LIBS"
6570 lt_save_CFLAGS="$CFLAGS"
6571 LIBS="conftstm.$ac_objext"
6572 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ce2cded5
L
6574 (eval $ac_link) 2>&5
6575 ac_status=$?
6576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357c5b6
AM
6577 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6578 pipe_works=yes
6579 fi
6580 LIBS="$lt_save_LIBS"
6581 CFLAGS="$lt_save_CFLAGS"
6582 else
6583 echo "cannot find nm_test_func in $nlist" >&5
6584 fi
6585 else
6586 echo "cannot find nm_test_var in $nlist" >&5
6587 fi
6588 else
6589 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6590 fi
6591 else
6592 echo "$progname: failed program was:" >&5
6593 cat conftest.$ac_ext >&5
6594 fi
718a6fd8 6595 rm -rf conftest* conftst*
7357c5b6
AM
6596
6597 # Do not use the global_symbol_pipe unless it works.
6598 if test "$pipe_works" = yes; then
6599 break
6600 else
6601 lt_cv_sys_global_symbol_pipe=
6602 fi
6603done
d7040cdb 6604
ce2cded5 6605fi
7357c5b6
AM
6606
6607if test -z "$lt_cv_sys_global_symbol_pipe"; then
6608 lt_cv_sys_global_symbol_to_cdecl=
ce2cded5 6609fi
7357c5b6
AM
6610if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6611 echo "$as_me:$LINENO: result: failed" >&5
6612echo "${ECHO_T}failed" >&6
6613else
6614 echo "$as_me:$LINENO: result: ok" >&5
6615echo "${ECHO_T}ok" >&6
ce2cded5 6616fi
d7040cdb 6617
d7040cdb 6618
d7040cdb 6619
d7040cdb 6620
d7040cdb 6621
d7040cdb 6622
d7040cdb 6623
d7040cdb 6624
d7040cdb 6625
d7040cdb 6626
d7040cdb 6627
d7040cdb 6628
7357c5b6
AM
6629
6630
6631
718a6fd8
SE
6632
6633
6634
6635
6636
7357c5b6
AM
6637
6638
6639# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6640if test "${enable_libtool_lock+set}" = set; then
6641 enableval="$enable_libtool_lock"
6642
6643fi;
6644test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6645
6646# Some flags need to be propagated to the compiler or linker for good
6647# libtool support.
6648case $host in
6649ia64-*-hpux*)
6650 # Find out which ABI we are using.
6651 echo 'int i;' > conftest.$ac_ext
6652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6653 (eval $ac_compile) 2>&5
6654 ac_status=$?
6655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6656 (exit $ac_status); }; then
6657 case `/usr/bin/file conftest.$ac_objext` in
6658 *ELF-32*)
6659 HPUX_IA64_MODE="32"
6660 ;;
6661 *ELF-64*)
6662 HPUX_IA64_MODE="64"
6663 ;;
6664 esac
6665 fi
6666 rm -rf conftest*
6667 ;;
6668*-*-irix6*)
6669 # Find out which ABI we are using.
718a6fd8 6670 echo '#line 6670 "configure"' > conftest.$ac_ext
7357c5b6
AM
6671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6672 (eval $ac_compile) 2>&5
6673 ac_status=$?
6674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675 (exit $ac_status); }; then
6676 if test "$lt_cv_prog_gnu_ld" = yes; then
6677 case `/usr/bin/file conftest.$ac_objext` in
6678 *32-bit*)
6679 LD="${LD-ld} -melf32bsmip"
6680 ;;
6681 *N32*)
6682 LD="${LD-ld} -melf32bmipn32"
6683 ;;
6684 *64-bit*)
6685 LD="${LD-ld} -melf64bmip"
6686 ;;
6687 esac
6688 else
6689 case `/usr/bin/file conftest.$ac_objext` in
6690 *32-bit*)
6691 LD="${LD-ld} -32"
6692 ;;
6693 *N32*)
6694 LD="${LD-ld} -n32"
6695 ;;
6696 *64-bit*)
6697 LD="${LD-ld} -64"
6698 ;;
6699 esac
6700 fi
6701 fi
6702 rm -rf conftest*
6703 ;;
6704
6705x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6706s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6707 # Find out which ABI we are using.
6708 echo 'int i;' > conftest.$ac_ext
6709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6710 (eval $ac_compile) 2>&5
6711 ac_status=$?
6712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6713 (exit $ac_status); }; then
6714 case `/usr/bin/file conftest.o` in
6715 *32-bit*)
6716 case $host in
6717 x86_64-*kfreebsd*-gnu)
6718 LD="${LD-ld} -m elf_i386_fbsd"
6719 ;;
6720 x86_64-*linux*)
6721 LD="${LD-ld} -m elf_i386"
6722 ;;
6723 ppc64-*linux*|powerpc64-*linux*)
6724 LD="${LD-ld} -m elf32ppclinux"
6725 ;;
6726 s390x-*linux*)
6727 LD="${LD-ld} -m elf_s390"
6728 ;;
6729 sparc64-*linux*)
6730 LD="${LD-ld} -m elf32_sparc"
6731 ;;
6732 esac
6733 ;;
6734 *64-bit*)
6735 case $host in
6736 x86_64-*kfreebsd*-gnu)
6737 LD="${LD-ld} -m elf_x86_64_fbsd"
6738 ;;
6739 x86_64-*linux*)
6740 LD="${LD-ld} -m elf_x86_64"
6741 ;;
6742 ppc*-*linux*|powerpc*-*linux*)
6743 LD="${LD-ld} -m elf64ppc"
6744 ;;
6745 s390*-*linux*|s390*-*tpf*)
6746 LD="${LD-ld} -m elf64_s390"
6747 ;;
6748 sparc*-*linux*)
6749 LD="${LD-ld} -m elf64_sparc"
6750 ;;
6751 esac
6752 ;;
6753 esac
6754 fi
6755 rm -rf conftest*
6756 ;;
6757
6758*-*-sco3.2v5*)
6759 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6760 SAVE_CFLAGS="$CFLAGS"
6761 CFLAGS="$CFLAGS -belf"
6762 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6763echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6764if test "${lt_cv_cc_needs_belf+set}" = set; then
ce2cded5
L
6765 echo $ECHO_N "(cached) $ECHO_C" >&6
6766else
7357c5b6
AM
6767 ac_ext=c
6768ac_cpp='$CPP $CPPFLAGS'
6769ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6770ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6771ac_compiler_gnu=$ac_cv_c_compiler_gnu
6772
6773 cat >conftest.$ac_ext <<_ACEOF
ce2cded5
L
6774/* confdefs.h. */
6775_ACEOF
6776cat confdefs.h >>conftest.$ac_ext
6777cat >>conftest.$ac_ext <<_ACEOF
6778/* end confdefs.h. */
d7040cdb 6779
7357c5b6
AM
6780int
6781main ()
6782{
6783
6784 ;
6785 return 0;
6786}
ce2cded5 6787_ACEOF
7357c5b6
AM
6788rm -f conftest.$ac_objext conftest$ac_exeext
6789if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6790 (eval $ac_link) 2>conftest.er1
ce2cded5
L
6791 ac_status=$?
6792 grep -v '^ *+' conftest.er1 >conftest.err
6793 rm -f conftest.er1
6794 cat conftest.err >&5
6795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6796 (exit $ac_status); } &&
6797 { ac_try='test -z "$ac_c_werror_flag"
6798 || test ! -s conftest.err'
6799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6800 (eval $ac_try) 2>&5
6801 ac_status=$?
6802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6803 (exit $ac_status); }; } &&
7357c5b6 6804 { ac_try='test -s conftest$ac_exeext'
ce2cded5
L
6805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6806 (eval $ac_try) 2>&5
6807 ac_status=$?
6808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6809 (exit $ac_status); }; }; then
7357c5b6 6810 lt_cv_cc_needs_belf=yes
ce2cded5
L
6811else
6812 echo "$as_me: failed program was:" >&5
6813sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 6814
7357c5b6 6815lt_cv_cc_needs_belf=no
ce2cded5 6816fi
7357c5b6
AM
6817rm -f conftest.err conftest.$ac_objext \
6818 conftest$ac_exeext conftest.$ac_ext
6819 ac_ext=c
6820ac_cpp='$CPP $CPPFLAGS'
6821ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6822ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6823ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 6824
ce2cded5 6825fi
7357c5b6
AM
6826echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6827echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6828 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6829 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6830 CFLAGS="$SAVE_CFLAGS"
6831 fi
6832 ;;
6833sparc*-*solaris*)
6834 # Find out which ABI we are using.
6835 echo 'int i;' > conftest.$ac_ext
6836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6837 (eval $ac_compile) 2>&5
6838 ac_status=$?
6839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6840 (exit $ac_status); }; then
6841 case `/usr/bin/file conftest.o` in
6842 *64-bit*)
6843 case $lt_cv_prog_gnu_ld in
6844 yes*) LD="${LD-ld} -m elf64_sparc" ;;
718a6fd8
SE
6845 *)
6846 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6847 LD="${LD-ld} -64"
6848 fi
6849 ;;
7357c5b6
AM
6850 esac
6851 ;;
6852 esac
6853 fi
6854 rm -rf conftest*
6855 ;;
6856esac
d7040cdb 6857
718a6fd8
SE
6858need_locks="$enable_libtool_lock"
6859
6860
6861 case $host_os in
6862 rhapsody* | darwin*)
6863 if test -n "$ac_tool_prefix"; then
6864 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6865set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6866echo "$as_me:$LINENO: checking for $ac_word" >&5
6867echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6868if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6869 echo $ECHO_N "(cached) $ECHO_C" >&6
6870else
6871 if test -n "$DSYMUTIL"; then
6872 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6873else
6874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6875for as_dir in $PATH
6876do
6877 IFS=$as_save_IFS
6878 test -z "$as_dir" && as_dir=.
6879 for ac_exec_ext in '' $ac_executable_extensions; do
6880 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6881 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6883 break 2
6884 fi
6885done
6886done
6887
6888fi
6889fi
6890DSYMUTIL=$ac_cv_prog_DSYMUTIL
6891if test -n "$DSYMUTIL"; then
6892 echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6893echo "${ECHO_T}$DSYMUTIL" >&6
6894else
6895 echo "$as_me:$LINENO: result: no" >&5
6896echo "${ECHO_T}no" >&6
6897fi
6898
6899fi
6900if test -z "$ac_cv_prog_DSYMUTIL"; then
6901 ac_ct_DSYMUTIL=$DSYMUTIL
6902 # Extract the first word of "dsymutil", so it can be a program name with args.
6903set dummy dsymutil; ac_word=$2
6904echo "$as_me:$LINENO: checking for $ac_word" >&5
6905echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6906if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6907 echo $ECHO_N "(cached) $ECHO_C" >&6
6908else
6909 if test -n "$ac_ct_DSYMUTIL"; then
6910 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6911else
6912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6913for as_dir in $PATH
6914do
6915 IFS=$as_save_IFS
6916 test -z "$as_dir" && as_dir=.
6917 for ac_exec_ext in '' $ac_executable_extensions; do
6918 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6919 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6921 break 2
6922 fi
6923done
6924done
6925
6926 test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
6927fi
6928fi
6929ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6930if test -n "$ac_ct_DSYMUTIL"; then
6931 echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6932echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
6933else
6934 echo "$as_me:$LINENO: result: no" >&5
6935echo "${ECHO_T}no" >&6
6936fi
6937
6938 DSYMUTIL=$ac_ct_DSYMUTIL
6939else
6940 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6941fi
6942
6943 if test -n "$ac_tool_prefix"; then
6944 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6945set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6946echo "$as_me:$LINENO: checking for $ac_word" >&5
6947echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6948if test "${ac_cv_prog_NMEDIT+set}" = set; then
6949 echo $ECHO_N "(cached) $ECHO_C" >&6
6950else
6951 if test -n "$NMEDIT"; then
6952 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6953else
6954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6955for as_dir in $PATH
6956do
6957 IFS=$as_save_IFS
6958 test -z "$as_dir" && as_dir=.
6959 for ac_exec_ext in '' $ac_executable_extensions; do
6960 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6961 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6963 break 2
6964 fi
6965done
6966done
6967
6968fi
6969fi
6970NMEDIT=$ac_cv_prog_NMEDIT
6971if test -n "$NMEDIT"; then
6972 echo "$as_me:$LINENO: result: $NMEDIT" >&5
6973echo "${ECHO_T}$NMEDIT" >&6
6974else
6975 echo "$as_me:$LINENO: result: no" >&5
6976echo "${ECHO_T}no" >&6
6977fi
6978
6979fi
6980if test -z "$ac_cv_prog_NMEDIT"; then
6981 ac_ct_NMEDIT=$NMEDIT
6982 # Extract the first word of "nmedit", so it can be a program name with args.
6983set dummy nmedit; ac_word=$2
6984echo "$as_me:$LINENO: checking for $ac_word" >&5
6985echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6986if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6987 echo $ECHO_N "(cached) $ECHO_C" >&6
6988else
6989 if test -n "$ac_ct_NMEDIT"; then
6990 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6991else
6992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6993for as_dir in $PATH
6994do
6995 IFS=$as_save_IFS
6996 test -z "$as_dir" && as_dir=.
6997 for ac_exec_ext in '' $ac_executable_extensions; do
6998 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6999 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7001 break 2
7002 fi
7003done
7004done
7005
7006 test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
7007fi
7008fi
7009ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7010if test -n "$ac_ct_NMEDIT"; then
7011 echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7012echo "${ECHO_T}$ac_ct_NMEDIT" >&6
7013else
7014 echo "$as_me:$LINENO: result: no" >&5
7015echo "${ECHO_T}no" >&6
7016fi
7017
7018 NMEDIT=$ac_ct_NMEDIT
7019else
7020 NMEDIT="$ac_cv_prog_NMEDIT"
7021fi
7022
7023 if test -n "$ac_tool_prefix"; then
7024 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7025set dummy ${ac_tool_prefix}lipo; ac_word=$2
7026echo "$as_me:$LINENO: checking for $ac_word" >&5
7027echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7028if test "${ac_cv_prog_LIPO+set}" = set; then
7029 echo $ECHO_N "(cached) $ECHO_C" >&6
7030else
7031 if test -n "$LIPO"; then
7032 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7033else
7034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7035for as_dir in $PATH
7036do
7037 IFS=$as_save_IFS
7038 test -z "$as_dir" && as_dir=.
7039 for ac_exec_ext in '' $ac_executable_extensions; do
7040 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7041 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7043 break 2
7044 fi
7045done
7046done
7047
7048fi
7049fi
7050LIPO=$ac_cv_prog_LIPO
7051if test -n "$LIPO"; then
7052 echo "$as_me:$LINENO: result: $LIPO" >&5
7053echo "${ECHO_T}$LIPO" >&6
7054else
7055 echo "$as_me:$LINENO: result: no" >&5
7056echo "${ECHO_T}no" >&6
7057fi
7058
7059fi
7060if test -z "$ac_cv_prog_LIPO"; then
7061 ac_ct_LIPO=$LIPO
7062 # Extract the first word of "lipo", so it can be a program name with args.
7063set dummy lipo; ac_word=$2
7064echo "$as_me:$LINENO: checking for $ac_word" >&5
7065echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7066if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7067 echo $ECHO_N "(cached) $ECHO_C" >&6
7068else
7069 if test -n "$ac_ct_LIPO"; then
7070 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7071else
7072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7073for as_dir in $PATH
7074do
7075 IFS=$as_save_IFS
7076 test -z "$as_dir" && as_dir=.
7077 for ac_exec_ext in '' $ac_executable_extensions; do
7078 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7079 ac_cv_prog_ac_ct_LIPO="lipo"
7080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7081 break 2
7082 fi
7083done
7084done
7085
7086 test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
7087fi
7088fi
7089ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7090if test -n "$ac_ct_LIPO"; then
7091 echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7092echo "${ECHO_T}$ac_ct_LIPO" >&6
7093else
7094 echo "$as_me:$LINENO: result: no" >&5
7095echo "${ECHO_T}no" >&6
7096fi
7097
7098 LIPO=$ac_ct_LIPO
7099else
7100 LIPO="$ac_cv_prog_LIPO"
7101fi
7102
7103 if test -n "$ac_tool_prefix"; then
7104 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7105set dummy ${ac_tool_prefix}otool; ac_word=$2
7106echo "$as_me:$LINENO: checking for $ac_word" >&5
7107echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7108if test "${ac_cv_prog_OTOOL+set}" = set; then
7109 echo $ECHO_N "(cached) $ECHO_C" >&6
7110else
7111 if test -n "$OTOOL"; then
7112 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7113else
7114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7115for as_dir in $PATH
7116do
7117 IFS=$as_save_IFS
7118 test -z "$as_dir" && as_dir=.
7119 for ac_exec_ext in '' $ac_executable_extensions; do
7120 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7121 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7123 break 2
7124 fi
7125done
7126done
7127
7128fi
7129fi
7130OTOOL=$ac_cv_prog_OTOOL
7131if test -n "$OTOOL"; then
7132 echo "$as_me:$LINENO: result: $OTOOL" >&5
7133echo "${ECHO_T}$OTOOL" >&6
7134else
7135 echo "$as_me:$LINENO: result: no" >&5
7136echo "${ECHO_T}no" >&6
7137fi
7138
7139fi
7140if test -z "$ac_cv_prog_OTOOL"; then
7141 ac_ct_OTOOL=$OTOOL
7142 # Extract the first word of "otool", so it can be a program name with args.
7143set dummy otool; ac_word=$2
7144echo "$as_me:$LINENO: checking for $ac_word" >&5
7145echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7146if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7147 echo $ECHO_N "(cached) $ECHO_C" >&6
7148else
7149 if test -n "$ac_ct_OTOOL"; then
7150 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7151else
7152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7153for as_dir in $PATH
7154do
7155 IFS=$as_save_IFS
7156 test -z "$as_dir" && as_dir=.
7157 for ac_exec_ext in '' $ac_executable_extensions; do
7158 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7159 ac_cv_prog_ac_ct_OTOOL="otool"
7160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7161 break 2
7162 fi
7163done
7164done
7165
7166 test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
7167fi
7168fi
7169ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7170if test -n "$ac_ct_OTOOL"; then
7171 echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7172echo "${ECHO_T}$ac_ct_OTOOL" >&6
7173else
7174 echo "$as_me:$LINENO: result: no" >&5
7175echo "${ECHO_T}no" >&6
7176fi
7177
7178 OTOOL=$ac_ct_OTOOL
7179else
7180 OTOOL="$ac_cv_prog_OTOOL"
7181fi
7182
7183 if test -n "$ac_tool_prefix"; then
7184 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7185set dummy ${ac_tool_prefix}otool64; ac_word=$2
7186echo "$as_me:$LINENO: checking for $ac_word" >&5
7187echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7188if test "${ac_cv_prog_OTOOL64+set}" = set; then
7189 echo $ECHO_N "(cached) $ECHO_C" >&6
7190else
7191 if test -n "$OTOOL64"; then
7192 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7193else
7194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7195for as_dir in $PATH
7196do
7197 IFS=$as_save_IFS
7198 test -z "$as_dir" && as_dir=.
7199 for ac_exec_ext in '' $ac_executable_extensions; do
7200 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7201 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7203 break 2
7204 fi
7205done
7206done
7207
7208fi
7209fi
7210OTOOL64=$ac_cv_prog_OTOOL64
7211if test -n "$OTOOL64"; then
7212 echo "$as_me:$LINENO: result: $OTOOL64" >&5
7213echo "${ECHO_T}$OTOOL64" >&6
7214else
7215 echo "$as_me:$LINENO: result: no" >&5
7216echo "${ECHO_T}no" >&6
7217fi
7218
7219fi
7220if test -z "$ac_cv_prog_OTOOL64"; then
7221 ac_ct_OTOOL64=$OTOOL64
7222 # Extract the first word of "otool64", so it can be a program name with args.
7223set dummy otool64; ac_word=$2
7224echo "$as_me:$LINENO: checking for $ac_word" >&5
7225echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7226if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7227 echo $ECHO_N "(cached) $ECHO_C" >&6
7228else
7229 if test -n "$ac_ct_OTOOL64"; then
7230 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7231else
7232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7233for as_dir in $PATH
7234do
7235 IFS=$as_save_IFS
7236 test -z "$as_dir" && as_dir=.
7237 for ac_exec_ext in '' $ac_executable_extensions; do
7238 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7239 ac_cv_prog_ac_ct_OTOOL64="otool64"
7240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7241 break 2
7242 fi
7243done
7244done
7245
7246 test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
7247fi
7248fi
7249ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7250if test -n "$ac_ct_OTOOL64"; then
7251 echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7252echo "${ECHO_T}$ac_ct_OTOOL64" >&6
7253else
7254 echo "$as_me:$LINENO: result: no" >&5
7255echo "${ECHO_T}no" >&6
7256fi
7257
7258 OTOOL64=$ac_ct_OTOOL64
7259else
7260 OTOOL64="$ac_cv_prog_OTOOL64"
7261fi
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289 echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7290echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
7291if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7292 echo $ECHO_N "(cached) $ECHO_C" >&6
7293else
7294 lt_cv_apple_cc_single_mod=no
7295 if test -z "${LT_MULTI_MODULE}"; then
7296 # By default we will add the -single_module flag. You can override
7297 # by either setting the environment variable LT_MULTI_MODULE
7298 # non-empty at configure time, or by adding -multi_module to the
7299 # link flags.
7300 rm -rf libconftest.dylib*
7301 echo "int foo(void){return 1;}" > conftest.c
7302 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7303-dynamiclib -Wl,-single_module conftest.c" >&5
7304 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7305 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7306 _lt_result=$?
7307 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7308 lt_cv_apple_cc_single_mod=yes
7309 else
7310 cat conftest.err >&5
7311 fi
7312 rm -rf libconftest.dylib*
7313 rm -f conftest.*
7314 fi
7315fi
7316echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7317echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
7318 echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7319echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
7320if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7321 echo $ECHO_N "(cached) $ECHO_C" >&6
7322else
7323 lt_cv_ld_exported_symbols_list=no
7324 save_LDFLAGS=$LDFLAGS
7325 echo "_main" > conftest.sym
7326 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7327 cat >conftest.$ac_ext <<_ACEOF
7328/* confdefs.h. */
7329_ACEOF
7330cat confdefs.h >>conftest.$ac_ext
7331cat >>conftest.$ac_ext <<_ACEOF
7332/* end confdefs.h. */
7333
7334int
7335main ()
7336{
7337
7338 ;
7339 return 0;
7340}
7341_ACEOF
7342rm -f conftest.$ac_objext conftest$ac_exeext
7343if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7344 (eval $ac_link) 2>conftest.er1
7345 ac_status=$?
7346 grep -v '^ *+' conftest.er1 >conftest.err
7347 rm -f conftest.er1
7348 cat conftest.err >&5
7349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7350 (exit $ac_status); } &&
7351 { ac_try='test -z "$ac_c_werror_flag"
7352 || test ! -s conftest.err'
7353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7354 (eval $ac_try) 2>&5
7355 ac_status=$?
7356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357 (exit $ac_status); }; } &&
7358 { ac_try='test -s conftest$ac_exeext'
7359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7360 (eval $ac_try) 2>&5
7361 ac_status=$?
7362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7363 (exit $ac_status); }; }; then
7364 lt_cv_ld_exported_symbols_list=yes
7365else
7366 echo "$as_me: failed program was:" >&5
7367sed 's/^/| /' conftest.$ac_ext >&5
7368
7369lt_cv_ld_exported_symbols_list=no
7370fi
7371rm -f conftest.err conftest.$ac_objext \
7372 conftest$ac_exeext conftest.$ac_ext
7373 LDFLAGS="$save_LDFLAGS"
7374
7375fi
7376echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7377echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
7378 case $host_os in
7379 rhapsody* | darwin1.[012])
7380 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7381 darwin1.*)
7382 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7383 darwin*) # darwin 5.x on
7384 # if running on 10.5 or later, the deployment target defaults
7385 # to the OS version, if on x86, and 10.4, the deployment
7386 # target defaults to 10.4. Don't you love it?
7387 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7388 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7389 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7390 10.[012]*)
7391 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7392 10.*)
7393 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7394 esac
7395 ;;
7396 esac
7397 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7398 _lt_dar_single_mod='$single_module'
7399 fi
7400 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7401 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7402 else
7403 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7404 fi
7405 if test "$DSYMUTIL" != ":"; then
7406 _lt_dsymutil='~$DSYMUTIL $lib || :'
7407 else
7408 _lt_dsymutil=
7409 fi
7410 ;;
7411 esac
7412
7413
7414for ac_header in dlfcn.h
7415do
7416as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7417echo "$as_me:$LINENO: checking for $ac_header" >&5
7418echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7419if eval "test \"\${$as_ac_Header+set}\" = set"; then
7420 echo $ECHO_N "(cached) $ECHO_C" >&6
7421else
7422 cat >conftest.$ac_ext <<_ACEOF
7423/* confdefs.h. */
7424_ACEOF
7425cat confdefs.h >>conftest.$ac_ext
7426cat >>conftest.$ac_ext <<_ACEOF
7427/* end confdefs.h. */
7428$ac_includes_default
7429
7430#include <$ac_header>
7431_ACEOF
7432rm -f conftest.$ac_objext
7433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7434 (eval $ac_compile) 2>conftest.er1
7435 ac_status=$?
7436 grep -v '^ *+' conftest.er1 >conftest.err
7437 rm -f conftest.er1
7438 cat conftest.err >&5
7439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7440 (exit $ac_status); } &&
7441 { ac_try='test -z "$ac_c_werror_flag"
7442 || test ! -s conftest.err'
7443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7444 (eval $ac_try) 2>&5
7445 ac_status=$?
7446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7447 (exit $ac_status); }; } &&
7448 { ac_try='test -s conftest.$ac_objext'
7449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7450 (eval $ac_try) 2>&5
7451 ac_status=$?
7452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7453 (exit $ac_status); }; }; then
7454 eval "$as_ac_Header=yes"
7455else
7456 echo "$as_me: failed program was:" >&5
7457sed 's/^/| /' conftest.$ac_ext >&5
7458
7459eval "$as_ac_Header=no"
7460fi
7461rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7462fi
7463echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7464echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7465if test `eval echo '${'$as_ac_Header'}'` = yes; then
7466 cat >>confdefs.h <<_ACEOF
7467#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7468_ACEOF
7469
7470fi
7471
7472done
7473
7474
7475
7476# Set options
7477
7478
7479
7480 enable_dlopen=no
7481
7482
7483 enable_win32_dll=no
7484
7485
7486 # Check whether --enable-shared or --disable-shared was given.
7487if test "${enable_shared+set}" = set; then
7488 enableval="$enable_shared"
7489 p=${PACKAGE-default}
7490 case $enableval in
7491 yes) enable_shared=yes ;;
7492 no) enable_shared=no ;;
7493 *)
7494 enable_shared=no
7495 # Look at the argument we got. We use all the common list separators.
7496 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7497 for pkg in $enableval; do
7498 IFS="$lt_save_ifs"
7499 if test "X$pkg" = "X$p"; then
7500 enable_shared=yes
7501 fi
7502 done
7503 IFS="$lt_save_ifs"
7504 ;;
7505 esac
7506else
7507 enable_shared=yes
7508fi;
7509
7510
7511
7512
7513
7514
7515
7516
7517 # Check whether --enable-static or --disable-static was given.
7518if test "${enable_static+set}" = set; then
7519 enableval="$enable_static"
7520 p=${PACKAGE-default}
7521 case $enableval in
7522 yes) enable_static=yes ;;
7523 no) enable_static=no ;;
7524 *)
7525 enable_static=no
7526 # Look at the argument we got. We use all the common list separators.
7527 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7528 for pkg in $enableval; do
7529 IFS="$lt_save_ifs"
7530 if test "X$pkg" = "X$p"; then
7531 enable_static=yes
7532 fi
7533 done
7534 IFS="$lt_save_ifs"
7535 ;;
7536 esac
7537else
7538 enable_static=yes
7539fi;
7540
7541
d7040cdb 7542
d7040cdb 7543
718a6fd8
SE
7544
7545
7546
7547
7548
7549# Check whether --with-pic or --without-pic was given.
7550if test "${with_pic+set}" = set; then
7551 withval="$with_pic"
7552 pic_mode="$withval"
ce2cded5 7553else
718a6fd8
SE
7554 pic_mode=default
7555fi;
d7040cdb 7556
718a6fd8
SE
7557test -z "$pic_mode" && pic_mode=default
7558
7559
7560
7561
7562
7563
7564
7565 # Check whether --enable-fast-install or --disable-fast-install was given.
7566if test "${enable_fast_install+set}" = set; then
7567 enableval="$enable_fast_install"
7568 p=${PACKAGE-default}
7569 case $enableval in
7570 yes) enable_fast_install=yes ;;
7571 no) enable_fast_install=no ;;
7572 *)
7573 enable_fast_install=no
7574 # Look at the argument we got. We use all the common list separators.
7575 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7576 for pkg in $enableval; do
7577 IFS="$lt_save_ifs"
7578 if test "X$pkg" = "X$p"; then
7579 enable_fast_install=yes
7580 fi
7581 done
7582 IFS="$lt_save_ifs"
7583 ;;
7584 esac
ce2cded5 7585else
718a6fd8
SE
7586 enable_fast_install=yes
7587fi;
7588
7589
7590
7591
d7040cdb 7592
d7040cdb 7593
d7040cdb 7594
d7040cdb 7595
d7040cdb 7596
d7040cdb 7597
ce2cded5
L
7598# This can be used to rebuild libtool when needed
7599LIBTOOL_DEPS="$ltmain"
d7040cdb 7600
ce2cded5
L
7601# Always use our own libtool.
7602LIBTOOL='$(SHELL) $(top_builddir)/libtool'
d7040cdb 7603
d7040cdb 7604
d7040cdb 7605
d7040cdb
SE
7606
7607
7608
7609
7610
7611
d7040cdb 7612
d7040cdb 7613
ab509236 7614
ab509236 7615
d7040cdb
SE
7616
7617
7618
7619
7620
13b2be9c 7621
13b2be9c 7622
13b2be9c 7623
13b2be9c 7624
d7040cdb
SE
7625
7626
7627
ce2cded5 7628test -z "$LN_S" && LN_S="ln -s"
d7040cdb
SE
7629
7630
d7040cdb 7631
d7040cdb 7632
d7040cdb
SE
7633
7634
7635
7636
7637
7638
ce2cded5
L
7639
7640
7641
7642
7643if test -n "${ZSH_VERSION+set}" ; then
7644 setopt NO_GLOB_SUBST
7645fi
7646
7647echo "$as_me:$LINENO: checking for objdir" >&5
7648echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7649if test "${lt_cv_objdir+set}" = set; then
d7040cdb
SE
7650 echo $ECHO_N "(cached) $ECHO_C" >&6
7651else
ce2cded5
L
7652 rm -f .libs 2>/dev/null
7653mkdir .libs 2>/dev/null
7654if test -d .libs; then
7655 lt_cv_objdir=.libs
7656else
7657 # MS-DOS does not allow filenames that begin with a dot.
7658 lt_cv_objdir=_libs
d7040cdb 7659fi
ce2cded5
L
7660rmdir .libs 2>/dev/null
7661fi
7662echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7663echo "${ECHO_T}$lt_cv_objdir" >&6
7664objdir=$lt_cv_objdir
d7040cdb
SE
7665
7666
7667
7668
d7040cdb 7669
ce2cded5
L
7670cat >>confdefs.h <<_ACEOF
7671#define LT_OBJDIR "$lt_cv_objdir/"
7672_ACEOF
d7040cdb
SE
7673
7674
7675
7676
7677
d7040cdb 7678
d7040cdb 7679
d7040cdb 7680
d7040cdb 7681
d7040cdb 7682
d7040cdb 7683
d7040cdb 7684
d7040cdb 7685
d7040cdb 7686
d7040cdb 7687
d7040cdb 7688
d7040cdb 7689
ce2cded5
L
7690case $host_os in
7691aix3*)
7692 # AIX sometimes has problems with the GCC collect2 program. For some
7693 # reason, if we set the COLLECT_NAMES environment variable, the problems
7694 # vanish in a puff of smoke.
7695 if test "X${COLLECT_NAMES+set}" != Xset; then
7696 COLLECT_NAMES=
7697 export COLLECT_NAMES
7698 fi
7699 ;;
7700esac
d7040cdb 7701
ce2cded5
L
7702# Sed substitution that helps us do robust quoting. It backslashifies
7703# metacharacters that are still active within double-quoted strings.
7704sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
d7040cdb 7705
ce2cded5
L
7706# Same as above, but do not quote variable references.
7707double_quote_subst='s/\(["`\\]\)/\\\1/g'
d7040cdb 7708
ce2cded5
L
7709# Sed substitution to delay expansion of an escaped shell variable in a
7710# double_quote_subst'ed string.
7711delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
d7040cdb 7712
ce2cded5
L
7713# Sed substitution to delay expansion of an escaped single quote.
7714delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
d7040cdb 7715
ce2cded5
L
7716# Sed substitution to avoid accidental globbing in evaled expressions
7717no_glob_subst='s/\*/\\\*/g'
d7040cdb 7718
ce2cded5
L
7719# Global variables:
7720ofile=libtool
7721can_build_shared=yes
d7040cdb 7722
ce2cded5
L
7723# All known linkers require a `.a' archive for static linking (except MSVC,
7724# which needs '.lib').
7725libext=a
d7040cdb 7726
ce2cded5 7727with_gnu_ld="$lt_cv_prog_gnu_ld"
d7040cdb 7728
ce2cded5
L
7729old_CC="$CC"
7730old_CFLAGS="$CFLAGS"
d7040cdb 7731
ce2cded5
L
7732# Set sane defaults for various variables
7733test -z "$CC" && CC=cc
7734test -z "$LTCC" && LTCC=$CC
7735test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7736test -z "$LD" && LD=ld
7737test -z "$ac_objext" && ac_objext=o
7738
7739for cc_temp in $compiler""; do
7740 case $cc_temp in
7741 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7742 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7743 \-*) ;;
7744 *) break;;
7745 esac
7746done
7747cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7748
7749
7750# Only perform the check for file, if the check method requires it
7751test -z "$MAGIC_CMD" && MAGIC_CMD=file
7752case $deplibs_check_method in
7753file_magic*)
7754 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7755 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7756echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7757if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7758 echo $ECHO_N "(cached) $ECHO_C" >&6
7759else
7760 case $MAGIC_CMD in
7761[\\/*] | ?:[\\/]*)
7762 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7763 ;;
7764*)
7765 lt_save_MAGIC_CMD="$MAGIC_CMD"
7766 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7767 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7768 for ac_dir in $ac_dummy; do
7769 IFS="$lt_save_ifs"
7770 test -z "$ac_dir" && ac_dir=.
7771 if test -f $ac_dir/${ac_tool_prefix}file; then
7772 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7773 if test -n "$file_magic_test_file"; then
7774 case $deplibs_check_method in
7775 "file_magic "*)
7776 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7777 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7778 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7779 $EGREP "$file_magic_regex" > /dev/null; then
7780 :
d7040cdb 7781 else
ce2cded5 7782 cat <<_LT_EOF 1>&2
d7040cdb 7783
ce2cded5
L
7784*** Warning: the command libtool uses to detect shared libraries,
7785*** $file_magic_cmd, produces output that libtool cannot recognize.
7786*** The result is that libtool may fail to recognize shared libraries
7787*** as such. This will affect the creation of libtool libraries that
7788*** depend on shared libraries, but programs linked with such libtool
7789*** libraries will work regardless of this problem. Nevertheless, you
7790*** may want to report the problem to your system manager and/or to
7791*** bug-libtool@gnu.org
d7040cdb 7792
ce2cded5
L
7793_LT_EOF
7794 fi ;;
7795 esac
d7040cdb 7796 fi
ce2cded5 7797 break
d7040cdb 7798 fi
ce2cded5
L
7799 done
7800 IFS="$lt_save_ifs"
7801 MAGIC_CMD="$lt_save_MAGIC_CMD"
7802 ;;
7803esac
7804fi
d7040cdb 7805
ce2cded5
L
7806MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7807if test -n "$MAGIC_CMD"; then
7808 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7809echo "${ECHO_T}$MAGIC_CMD" >&6
7810else
7811 echo "$as_me:$LINENO: result: no" >&5
7812echo "${ECHO_T}no" >&6
7813fi
d7040cdb 7814
d7040cdb 7815
d7040cdb 7816
d7040cdb 7817
d7040cdb 7818
ce2cded5
L
7819if test -z "$lt_cv_path_MAGIC_CMD"; then
7820 if test -n "$ac_tool_prefix"; then
7821 echo "$as_me:$LINENO: checking for file" >&5
7822echo $ECHO_N "checking for file... $ECHO_C" >&6
7823if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7824 echo $ECHO_N "(cached) $ECHO_C" >&6
7825else
7826 case $MAGIC_CMD in
7827[\\/*] | ?:[\\/]*)
7828 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7829 ;;
7830*)
7831 lt_save_MAGIC_CMD="$MAGIC_CMD"
7832 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7833 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7834 for ac_dir in $ac_dummy; do
7835 IFS="$lt_save_ifs"
7836 test -z "$ac_dir" && ac_dir=.
7837 if test -f $ac_dir/file; then
7838 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7839 if test -n "$file_magic_test_file"; then
7840 case $deplibs_check_method in
7841 "file_magic "*)
7842 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7843 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7844 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7845 $EGREP "$file_magic_regex" > /dev/null; then
7846 :
d7040cdb 7847 else
ce2cded5
L
7848 cat <<_LT_EOF 1>&2
7849
7850*** Warning: the command libtool uses to detect shared libraries,
7851*** $file_magic_cmd, produces output that libtool cannot recognize.
7852*** The result is that libtool may fail to recognize shared libraries
7853*** as such. This will affect the creation of libtool libraries that
7854*** depend on shared libraries, but programs linked with such libtool
7855*** libraries will work regardless of this problem. Nevertheless, you
7856*** may want to report the problem to your system manager and/or to
7857*** bug-libtool@gnu.org
7858
7859_LT_EOF
7860 fi ;;
d7040cdb 7861 esac
d7040cdb 7862 fi
ce2cded5
L
7863 break
7864 fi
7865 done
7866 IFS="$lt_save_ifs"
7867 MAGIC_CMD="$lt_save_MAGIC_CMD"
7868 ;;
7869esac
7870fi
d7040cdb 7871
ce2cded5
L
7872MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7873if test -n "$MAGIC_CMD"; then
7874 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7875echo "${ECHO_T}$MAGIC_CMD" >&6
7876else
7877 echo "$as_me:$LINENO: result: no" >&5
7878echo "${ECHO_T}no" >&6
7879fi
d7040cdb 7880
d7040cdb 7881
ce2cded5
L
7882 else
7883 MAGIC_CMD=:
7884 fi
d7040cdb 7885fi
d7040cdb 7886
ce2cded5
L
7887 fi
7888 ;;
7889esac
d7040cdb 7890
ce2cded5 7891# Use C for the default configuration in the libtool script
d7040cdb 7892
ce2cded5
L
7893lt_save_CC="$CC"
7894ac_ext=c
7895ac_cpp='$CPP $CPPFLAGS'
7896ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7897ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7898ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 7899
d7040cdb 7900
ce2cded5
L
7901# Source file extension for C test sources.
7902ac_ext=c
d7040cdb 7903
ce2cded5
L
7904# Object file extension for compiled C test sources.
7905objext=o
7906objext=$objext
d7040cdb 7907
ce2cded5
L
7908# Code to be used in simple compile tests
7909lt_simple_compile_test_code="int some_variable = 0;"
7910
7911# Code to be used in simple link tests
7912lt_simple_link_test_code='int main(){return(0);}'
7913
7914
7915
7916
7917
7918
7919
7920# If no C compiler was specified, use CC.
7921LTCC=${LTCC-"$CC"}
7922
7923# If no C compiler flags were specified, use CFLAGS.
7924LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7925
7926# Allow CC to be a program name with arguments.
7927compiler=$CC
7928
7929# Save the default compiler, since it gets overwritten when the other
7930# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7931compiler_DEFAULT=$CC
7932
7933# save warnings/boilerplate of simple test code
7934ac_outfile=conftest.$ac_objext
7935echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7936eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7937_lt_compiler_boilerplate=`cat conftest.err`
7938$RM conftest*
7939
7940ac_outfile=conftest.$ac_objext
7941echo "$lt_simple_link_test_code" >conftest.$ac_ext
7942eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7943_lt_linker_boilerplate=`cat conftest.err`
718a6fd8 7944$RM -r conftest*
ce2cded5
L
7945
7946
7947## CAVEAT EMPTOR:
7948## There is no encapsulation within the following macros, do not change
7949## the running order or otherwise move them around unless you know exactly
7950## what you are doing...
7951if test -n "$compiler"; then
7952
7953lt_prog_compiler_no_builtin_flag=
7954
7955if test "$GCC" = yes; then
7956 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7957
7958 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7959echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7960if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7961 echo $ECHO_N "(cached) $ECHO_C" >&6
7962else
7963 lt_cv_prog_compiler_rtti_exceptions=no
7964 ac_outfile=conftest.$ac_objext
7965 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7966 lt_compiler_flag="-fno-rtti -fno-exceptions"
7967 # Insert the option either (1) after the last *FLAGS variable, or
7968 # (2) before a word containing "conftest.", or (3) at the end.
7969 # Note that $ac_compile itself does not contain backslashes and begins
7970 # with a dollar sign (not a hyphen), so the echo should work correctly.
7971 # The option is referenced via a variable to avoid confusing sed.
7972 lt_compile=`echo "$ac_compile" | $SED \
7973 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7974 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7975 -e 's:$: $lt_compiler_flag:'`
718a6fd8 7976 (eval echo "\"\$as_me:7976: $lt_compile\"" >&5)
ce2cded5
L
7977 (eval "$lt_compile" 2>conftest.err)
7978 ac_status=$?
7979 cat conftest.err >&5
718a6fd8 7980 echo "$as_me:7980: \$? = $ac_status" >&5
ce2cded5
L
7981 if (exit $ac_status) && test -s "$ac_outfile"; then
7982 # The compiler can only warn and ignore the option if not recognized
7983 # So say no if there are warnings other than the usual output.
7984 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7985 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7986 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7987 lt_cv_prog_compiler_rtti_exceptions=yes
7988 fi
7989 fi
7990 $RM conftest*
7991
7992fi
7993echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7994echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7995
7996if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7997 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7998else
7999 :
8000fi
8001
8002fi
8003
8004
8005
8006
8007
8008
8009 lt_prog_compiler_wl=
8010lt_prog_compiler_pic=
8011lt_prog_compiler_static=
8012
8013echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8014echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8015
8016 if test "$GCC" = yes; then
8017 lt_prog_compiler_wl='-Wl,'
8018 lt_prog_compiler_static='-static'
8019
8020 case $host_os in
8021 aix*)
8022 # All AIX code is PIC.
8023 if test "$host_cpu" = ia64; then
8024 # AIX 5 now supports IA64 processor
8025 lt_prog_compiler_static='-Bstatic'
8026 fi
8027 ;;
d7040cdb
SE
8028
8029 amigaos*)
718a6fd8
SE
8030 case $host_cpu in
8031 powerpc)
8032 # see comment about AmigaOS4 .so support
8033 lt_prog_compiler_pic='-fPIC'
8034 ;;
8035 m68k)
8036 # FIXME: we need at least 68020 code to build shared libraries, but
8037 # adding the `-m68020' flag to GCC prevents building anything better,
8038 # like `-m68040'.
8039 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8040 ;;
8041 esac
d7040cdb
SE
8042 ;;
8043
ce2cded5
L
8044 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8045 # PIC is the default for these OSes.
d7040cdb
SE
8046 ;;
8047
718a6fd8 8048 mingw* | cygwin* | pw32* | os2* | cegcc*)
ce2cded5
L
8049 # This hack is so that the source file can tell whether it is being
8050 # built for inclusion in a dll (and should export symbols for example).
8051 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8052 # (--disable-auto-import) libraries
8053 lt_prog_compiler_pic='-DDLL_EXPORT'
d7040cdb
SE
8054 ;;
8055
8056 darwin* | rhapsody*)
ce2cded5
L
8057 # PIC is the default on this platform
8058 # Common symbols not allowed in MH_DYLIB files
8059 lt_prog_compiler_pic='-fno-common'
8060 ;;
8061
8062 hpux*)
718a6fd8
SE
8063 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8064 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8065 # sets the default TLS model and affects inlining.
ce2cded5 8066 case $host_cpu in
718a6fd8 8067 hppa*64*)
ce2cded5 8068 # +Z the default
d7040cdb 8069 ;;
ce2cded5
L
8070 *)
8071 lt_prog_compiler_pic='-fPIC'
d7040cdb
SE
8072 ;;
8073 esac
ce2cded5 8074 ;;
d7040cdb 8075
ce2cded5
L
8076 interix[3-9]*)
8077 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8078 # Instead, we relocate shared libraries at runtime.
d7040cdb
SE
8079 ;;
8080
ce2cded5
L
8081 msdosdjgpp*)
8082 # Just because we use GCC doesn't mean we suddenly get shared libraries
8083 # on systems that don't support them.
8084 lt_prog_compiler_can_build_shared=no
8085 enable_shared=no
d7040cdb
SE
8086 ;;
8087
ce2cded5
L
8088 *nto* | *qnx*)
8089 # QNX uses GNU C++, but need to define -shared option too, otherwise
8090 # it will coredump.
8091 lt_prog_compiler_pic='-fPIC -shared'
d7040cdb
SE
8092 ;;
8093
ce2cded5
L
8094 sysv4*MP*)
8095 if test -d /usr/nec; then
8096 lt_prog_compiler_pic=-Kconform_pic
8097 fi
d7040cdb
SE
8098 ;;
8099
ce2cded5
L
8100 *)
8101 lt_prog_compiler_pic='-fPIC'
d7040cdb 8102 ;;
ce2cded5
L
8103 esac
8104 else
8105 # PORTME Check for flag to pass linker flags through the system compiler.
8106 case $host_os in
8107 aix*)
8108 lt_prog_compiler_wl='-Wl,'
8109 if test "$host_cpu" = ia64; then
8110 # AIX 5 now supports IA64 processor
8111 lt_prog_compiler_static='-Bstatic'
d7040cdb 8112 else
ce2cded5 8113 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
d7040cdb 8114 fi
ce2cded5 8115 ;;
d7040cdb 8116
718a6fd8 8117 mingw* | cygwin* | pw32* | os2* | cegcc*)
ce2cded5
L
8118 # This hack is so that the source file can tell whether it is being
8119 # built for inclusion in a dll (and should export symbols for example).
8120 lt_prog_compiler_pic='-DDLL_EXPORT'
d7040cdb
SE
8121 ;;
8122
ce2cded5
L
8123 hpux9* | hpux10* | hpux11*)
8124 lt_prog_compiler_wl='-Wl,'
8125 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8126 # not for PA HP-UX.
8127 case $host_cpu in
8128 hppa*64*|ia64*)
8129 # +Z the default
8130 ;;
8131 *)
8132 lt_prog_compiler_pic='+Z'
8133 ;;
8134 esac
8135 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8136 lt_prog_compiler_static='${wl}-a ${wl}archive'
d7040cdb
SE
8137 ;;
8138
ce2cded5
L
8139 irix5* | irix6* | nonstopux*)
8140 lt_prog_compiler_wl='-Wl,'
8141 # PIC (with -KPIC) is the default.
8142 lt_prog_compiler_static='-non_shared'
8143 ;;
d7040cdb 8144
ce2cded5
L
8145 linux* | k*bsd*-gnu)
8146 case $cc_basename in
718a6fd8
SE
8147 # old Intel for x86_64 which still supported -KPIC.
8148 ecc*)
ce2cded5
L
8149 lt_prog_compiler_wl='-Wl,'
8150 lt_prog_compiler_pic='-KPIC'
8151 lt_prog_compiler_static='-static'
8152 ;;
718a6fd8
SE
8153 # icc used to be incompatible with GCC.
8154 # ICC 10 doesn't accept -KPIC any more.
8155 icc* | ifort*)
8156 lt_prog_compiler_wl='-Wl,'
8157 lt_prog_compiler_pic='-fPIC'
8158 lt_prog_compiler_static='-static'
8159 ;;
8160 # Lahey Fortran 8.1.
8161 lf95*)
8162 lt_prog_compiler_wl='-Wl,'
8163 lt_prog_compiler_pic='--shared'
8164 lt_prog_compiler_static='--static'
8165 ;;
ce2cded5
L
8166 pgcc* | pgf77* | pgf90* | pgf95*)
8167 # Portland Group compilers (*not* the Pentium gcc compiler,
8168 # which looks to be a dead project)
8169 lt_prog_compiler_wl='-Wl,'
8170 lt_prog_compiler_pic='-fpic'
8171 lt_prog_compiler_static='-Bstatic'
8172 ;;
8173 ccc*)
8174 lt_prog_compiler_wl='-Wl,'
8175 # All Alpha code is PIC.
8176 lt_prog_compiler_static='-non_shared'
8177 ;;
718a6fd8
SE
8178 xl*)
8179 # IBM XL C 8.0/Fortran 10.1 on PPC
8180 lt_prog_compiler_wl='-Wl,'
8181 lt_prog_compiler_pic='-qpic'
8182 lt_prog_compiler_static='-qstaticlink'
8183 ;;
ce2cded5
L
8184 *)
8185 case `$CC -V 2>&1 | sed 5q` in
8186 *Sun\ C*)
8187 # Sun C 5.9
8188 lt_prog_compiler_pic='-KPIC'
8189 lt_prog_compiler_static='-Bstatic'
8190 lt_prog_compiler_wl='-Wl,'
d7040cdb 8191 ;;
ce2cded5
L
8192 *Sun\ F*)
8193 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8194 lt_prog_compiler_pic='-KPIC'
8195 lt_prog_compiler_static='-Bstatic'
8196 lt_prog_compiler_wl=''
d7040cdb
SE
8197 ;;
8198 esac
ce2cded5
L
8199 ;;
8200 esac
d7040cdb
SE
8201 ;;
8202
ce2cded5
L
8203 newsos6)
8204 lt_prog_compiler_pic='-KPIC'
8205 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8206 ;;
8207
ce2cded5
L
8208 *nto* | *qnx*)
8209 # QNX uses GNU C++, but need to define -shared option too, otherwise
8210 # it will coredump.
8211 lt_prog_compiler_pic='-fPIC -shared'
d7040cdb
SE
8212 ;;
8213
ce2cded5
L
8214 osf3* | osf4* | osf5*)
8215 lt_prog_compiler_wl='-Wl,'
8216 # All OSF/1 code is PIC.
8217 lt_prog_compiler_static='-non_shared'
d7040cdb
SE
8218 ;;
8219
ce2cded5
L
8220 rdos*)
8221 lt_prog_compiler_static='-non_shared'
d7040cdb
SE
8222 ;;
8223
8224 solaris*)
ce2cded5
L
8225 lt_prog_compiler_pic='-KPIC'
8226 lt_prog_compiler_static='-Bstatic'
8227 case $cc_basename in
8228 f77* | f90* | f95*)
8229 lt_prog_compiler_wl='-Qoption ld ';;
d7040cdb 8230 *)
ce2cded5 8231 lt_prog_compiler_wl='-Wl,';;
d7040cdb 8232 esac
d7040cdb
SE
8233 ;;
8234
8235 sunos4*)
ce2cded5
L
8236 lt_prog_compiler_wl='-Qoption ld '
8237 lt_prog_compiler_pic='-PIC'
8238 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8239 ;;
8240
ce2cded5
L
8241 sysv4 | sysv4.2uw2* | sysv4.3*)
8242 lt_prog_compiler_wl='-Wl,'
8243 lt_prog_compiler_pic='-KPIC'
8244 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8245 ;;
8246
8247 sysv4*MP*)
ce2cded5
L
8248 if test -d /usr/nec ;then
8249 lt_prog_compiler_pic='-Kconform_pic'
8250 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8251 fi
8252 ;;
8253
ce2cded5
L
8254 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8255 lt_prog_compiler_wl='-Wl,'
8256 lt_prog_compiler_pic='-KPIC'
8257 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8258 ;;
8259
ce2cded5
L
8260 unicos*)
8261 lt_prog_compiler_wl='-Wl,'
8262 lt_prog_compiler_can_build_shared=no
d7040cdb
SE
8263 ;;
8264
8265 uts4*)
ce2cded5
L
8266 lt_prog_compiler_pic='-pic'
8267 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8268 ;;
8269
8270 *)
ce2cded5 8271 lt_prog_compiler_can_build_shared=no
d7040cdb
SE
8272 ;;
8273 esac
d7040cdb
SE
8274 fi
8275
ce2cded5
L
8276case $host_os in
8277 # For platforms which do not support PIC, -DPIC is meaningless:
8278 *djgpp*)
8279 lt_prog_compiler_pic=
8280 ;;
8281 *)
8282 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8283 ;;
8284esac
8285echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8286echo "${ECHO_T}$lt_prog_compiler_pic" >&6
d7040cdb
SE
8287
8288
8289
8290
8291
8292
8293#
ce2cded5 8294# Check to make sure the PIC flag actually works.
d7040cdb 8295#
ce2cded5
L
8296if test -n "$lt_prog_compiler_pic"; then
8297 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8298echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
718a6fd8 8299if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
ce2cded5
L
8300 echo $ECHO_N "(cached) $ECHO_C" >&6
8301else
718a6fd8 8302 lt_cv_prog_compiler_pic_works=no
ce2cded5
L
8303 ac_outfile=conftest.$ac_objext
8304 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8305 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8306 # Insert the option either (1) after the last *FLAGS variable, or
8307 # (2) before a word containing "conftest.", or (3) at the end.
8308 # Note that $ac_compile itself does not contain backslashes and begins
8309 # with a dollar sign (not a hyphen), so the echo should work correctly.
8310 # The option is referenced via a variable to avoid confusing sed.
8311 lt_compile=`echo "$ac_compile" | $SED \
8312 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8313 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8314 -e 's:$: $lt_compiler_flag:'`
718a6fd8 8315 (eval echo "\"\$as_me:8315: $lt_compile\"" >&5)
ce2cded5
L
8316 (eval "$lt_compile" 2>conftest.err)
8317 ac_status=$?
8318 cat conftest.err >&5
718a6fd8 8319 echo "$as_me:8319: \$? = $ac_status" >&5
ce2cded5
L
8320 if (exit $ac_status) && test -s "$ac_outfile"; then
8321 # The compiler can only warn and ignore the option if not recognized
8322 # So say no if there are warnings other than the usual output.
8323 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8324 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8325 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
718a6fd8 8326 lt_cv_prog_compiler_pic_works=yes
ce2cded5
L
8327 fi
8328 fi
8329 $RM conftest*
d7040cdb 8330
ce2cded5 8331fi
718a6fd8
SE
8332echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8333echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
d7040cdb 8334
718a6fd8 8335if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
ce2cded5
L
8336 case $lt_prog_compiler_pic in
8337 "" | " "*) ;;
8338 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8339 esac
8340else
8341 lt_prog_compiler_pic=
8342 lt_prog_compiler_can_build_shared=no
8343fi
d7040cdb 8344
ce2cded5 8345fi
d7040cdb
SE
8346
8347
8348
8349
8350
8351
ce2cded5
L
8352#
8353# Check to make sure the static flag actually works.
8354#
8355wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8356echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8357echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
718a6fd8 8358if test "${lt_cv_prog_compiler_static_works+set}" = set; then
ce2cded5
L
8359 echo $ECHO_N "(cached) $ECHO_C" >&6
8360else
718a6fd8 8361 lt_cv_prog_compiler_static_works=no
ce2cded5
L
8362 save_LDFLAGS="$LDFLAGS"
8363 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8364 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8365 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8366 # The linker can only warn and ignore the option if not recognized
8367 # So say no if there are warnings
8368 if test -s conftest.err; then
8369 # Append any errors to the config.log.
8370 cat conftest.err 1>&5
8371 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8372 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8373 if diff conftest.exp conftest.er2 >/dev/null; then
718a6fd8 8374 lt_cv_prog_compiler_static_works=yes
ce2cded5
L
8375 fi
8376 else
718a6fd8 8377 lt_cv_prog_compiler_static_works=yes
ce2cded5
L
8378 fi
8379 fi
718a6fd8 8380 $RM -r conftest*
ce2cded5 8381 LDFLAGS="$save_LDFLAGS"
d7040cdb 8382
ce2cded5 8383fi
718a6fd8
SE
8384echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8385echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
d7040cdb 8386
718a6fd8 8387if test x"$lt_cv_prog_compiler_static_works" = xyes; then
ce2cded5
L
8388 :
8389else
8390 lt_prog_compiler_static=
8391fi
d7040cdb
SE
8392
8393
8394
8395
8396
8397
8398
ce2cded5
L
8399 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8400echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8401if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8402 echo $ECHO_N "(cached) $ECHO_C" >&6
8403else
8404 lt_cv_prog_compiler_c_o=no
8405 $RM -r conftest 2>/dev/null
8406 mkdir conftest
8407 cd conftest
8408 mkdir out
8409 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 8410
ce2cded5
L
8411 lt_compiler_flag="-o out/conftest2.$ac_objext"
8412 # Insert the option either (1) after the last *FLAGS variable, or
8413 # (2) before a word containing "conftest.", or (3) at the end.
8414 # Note that $ac_compile itself does not contain backslashes and begins
8415 # with a dollar sign (not a hyphen), so the echo should work correctly.
8416 lt_compile=`echo "$ac_compile" | $SED \
8417 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8418 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8419 -e 's:$: $lt_compiler_flag:'`
718a6fd8 8420 (eval echo "\"\$as_me:8420: $lt_compile\"" >&5)
ce2cded5
L
8421 (eval "$lt_compile" 2>out/conftest.err)
8422 ac_status=$?
8423 cat out/conftest.err >&5
718a6fd8 8424 echo "$as_me:8424: \$? = $ac_status" >&5
ce2cded5
L
8425 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8426 then
8427 # The compiler can only warn and ignore the option if not recognized
8428 # So say no if there are warnings
8429 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8430 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8431 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8432 lt_cv_prog_compiler_c_o=yes
8433 fi
8434 fi
8435 chmod u+w . 2>&5
8436 $RM conftest*
8437 # SGI C++ compiler will create directory out/ii_files/ for
8438 # template instantiation
8439 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8440 $RM out/* && rmdir out
8441 cd ..
8442 $RM -r conftest
8443 $RM conftest*
d7040cdb 8444
ce2cded5
L
8445fi
8446echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8447echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
d7040cdb
SE
8448
8449
8450
8451
8452
8453
ce2cded5
L
8454 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8455echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8456if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8457 echo $ECHO_N "(cached) $ECHO_C" >&6
8458else
8459 lt_cv_prog_compiler_c_o=no
8460 $RM -r conftest 2>/dev/null
8461 mkdir conftest
8462 cd conftest
8463 mkdir out
8464 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 8465
ce2cded5
L
8466 lt_compiler_flag="-o out/conftest2.$ac_objext"
8467 # Insert the option either (1) after the last *FLAGS variable, or
8468 # (2) before a word containing "conftest.", or (3) at the end.
8469 # Note that $ac_compile itself does not contain backslashes and begins
8470 # with a dollar sign (not a hyphen), so the echo should work correctly.
8471 lt_compile=`echo "$ac_compile" | $SED \
8472 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8473 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8474 -e 's:$: $lt_compiler_flag:'`
718a6fd8 8475 (eval echo "\"\$as_me:8475: $lt_compile\"" >&5)
ce2cded5
L
8476 (eval "$lt_compile" 2>out/conftest.err)
8477 ac_status=$?
8478 cat out/conftest.err >&5
718a6fd8 8479 echo "$as_me:8479: \$? = $ac_status" >&5
ce2cded5
L
8480 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8481 then
8482 # The compiler can only warn and ignore the option if not recognized
8483 # So say no if there are warnings
8484 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8485 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8486 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8487 lt_cv_prog_compiler_c_o=yes
8488 fi
8489 fi
8490 chmod u+w . 2>&5
8491 $RM conftest*
8492 # SGI C++ compiler will create directory out/ii_files/ for
8493 # template instantiation
8494 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8495 $RM out/* && rmdir out
8496 cd ..
8497 $RM -r conftest
8498 $RM conftest*
d7040cdb 8499
ce2cded5
L
8500fi
8501echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8502echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
d7040cdb
SE
8503
8504
8505
8506
ce2cded5
L
8507hard_links="nottested"
8508if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8509 # do not overwrite the value of need_locks provided by the user
8510 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8511echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8512 hard_links=yes
8513 $RM conftest*
8514 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8515 touch conftest.a
8516 ln conftest.a conftest.b 2>&5 || hard_links=no
8517 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8518 echo "$as_me:$LINENO: result: $hard_links" >&5
8519echo "${ECHO_T}$hard_links" >&6
8520 if test "$hard_links" = no; then
8521 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8522echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8523 need_locks=warn
8524 fi
8525else
8526 need_locks=no
8527fi
d7040cdb
SE
8528
8529
8530
8531
8532
8533
ce2cded5
L
8534 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8535echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
d7040cdb 8536
ce2cded5
L
8537 runpath_var=
8538 allow_undefined_flag=
8539 always_export_symbols=no
8540 archive_cmds=
8541 archive_expsym_cmds=
8542 compiler_needs_object=no
8543 enable_shared_with_static_runtimes=no
8544 export_dynamic_flag_spec=
8545 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8546 hardcode_automatic=no
8547 hardcode_direct=no
8548 hardcode_direct_absolute=no
8549 hardcode_libdir_flag_spec=
8550 hardcode_libdir_flag_spec_ld=
8551 hardcode_libdir_separator=
8552 hardcode_minus_L=no
8553 hardcode_shlibpath_var=unsupported
8554 inherit_rpath=no
8555 link_all_deplibs=unknown
8556 module_cmds=
8557 module_expsym_cmds=
8558 old_archive_from_new_cmds=
8559 old_archive_from_expsyms_cmds=
8560 thread_safe_flag_spec=
8561 whole_archive_flag_spec=
8562 # include_expsyms should be a list of space-separated symbols to be *always*
8563 # included in the symbol list
8564 include_expsyms=
8565 # exclude_expsyms can be an extended regexp of symbols to exclude
8566 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8567 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8568 # as well as any symbol that contains `d'.
718a6fd8 8569 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
ce2cded5
L
8570 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8571 # platforms (ab)use it in PIC code, but their linkers get confused if
8572 # the symbol is explicitly referenced. Since portable code cannot
8573 # rely on this symbol name, it's probably fine to never include it in
8574 # preloaded symbol tables.
718a6fd8 8575 # Exclude shared library initialization/finalization symbols.
ce2cded5 8576 extract_expsyms_cmds=
d7040cdb 8577
ce2cded5 8578 case $host_os in
718a6fd8 8579 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
8580 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8581 # When not using gcc, we currently assume that we are using
8582 # Microsoft Visual C++.
8583 if test "$GCC" != yes; then
8584 with_gnu_ld=no
8585 fi
8586 ;;
8587 interix*)
8588 # we just hope/assume this is gcc and not c89 (= MSVC++)
8589 with_gnu_ld=yes
8590 ;;
8591 openbsd*)
8592 with_gnu_ld=no
8593 ;;
8594 esac
d7040cdb 8595
ce2cded5
L
8596 ld_shlibs=yes
8597 if test "$with_gnu_ld" = yes; then
8598 # If archive_cmds runs LD, not CC, wlarc should be empty
8599 wlarc='${wl}'
d7040cdb 8600
ce2cded5
L
8601 # Set some defaults for GNU ld with shared library support. These
8602 # are reset later if shared libraries are not supported. Putting them
8603 # here allows them to be overridden if necessary.
8604 runpath_var=LD_RUN_PATH
8605 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8606 export_dynamic_flag_spec='${wl}--export-dynamic'
8607 # ancient GNU ld didn't support --whole-archive et. al.
8608 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8609 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8610 else
8611 whole_archive_flag_spec=
8612 fi
8613 supports_anon_versioning=no
8614 case `$LD -v 2>&1` in
8615 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8616 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8617 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8618 *\ 2.11.*) ;; # other 2.11 versions
8619 *) supports_anon_versioning=yes ;;
8620 esac
d7040cdb 8621
ce2cded5
L
8622 # See if GNU ld supports shared libraries.
8623 case $host_os in
50e7d84b 8624 aix[3-9]*)
ce2cded5
L
8625 # On AIX/PPC, the GNU linker is very broken
8626 if test "$host_cpu" != ia64; then
8627 ld_shlibs=no
8628 cat <<_LT_EOF 1>&2
d7040cdb 8629
ce2cded5
L
8630*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8631*** to be unable to reliably create shared libraries on AIX.
8632*** Therefore, libtool is disabling shared libraries support. If you
8633*** really care for shared libraries, you may want to modify your PATH
8634*** so that a non-GNU linker is found, and then restart.
d7040cdb 8635
ce2cded5
L
8636_LT_EOF
8637 fi
8638 ;;
d7040cdb 8639
ce2cded5 8640 amigaos*)
718a6fd8
SE
8641 case $host_cpu in
8642 powerpc)
8643 # see comment about AmigaOS4 .so support
8644 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8645 archive_expsym_cmds=''
8646 ;;
8647 m68k)
8648 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)'
8649 hardcode_libdir_flag_spec='-L$libdir'
8650 hardcode_minus_L=yes
8651 ;;
8652 esac
ce2cded5 8653 ;;
d7040cdb 8654
ce2cded5
L
8655 beos*)
8656 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8657 allow_undefined_flag=unsupported
8658 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8659 # support --undefined. This deserves some investigation. FIXME
8660 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8661 else
8662 ld_shlibs=no
8663 fi
8664 ;;
d7040cdb 8665
718a6fd8 8666 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
8667 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8668 # as there is no search path for DLLs.
8669 hardcode_libdir_flag_spec='-L$libdir'
8670 allow_undefined_flag=unsupported
8671 always_export_symbols=no
8672 enable_shared_with_static_runtimes=yes
8673 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
d7040cdb 8674
ce2cded5
L
8675 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8676 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8677 # If the export-symbols file already is a .def file (1st line
8678 # is EXPORTS), use it as is; otherwise, prepend...
8679 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8680 cp $export_symbols $output_objdir/$soname.def;
8681 else
8682 echo EXPORTS > $output_objdir/$soname.def;
8683 cat $export_symbols >> $output_objdir/$soname.def;
8684 fi~
8685 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8686 else
8687 ld_shlibs=no
8688 fi
8689 ;;
d7040cdb 8690
ce2cded5
L
8691 interix[3-9]*)
8692 hardcode_direct=no
8693 hardcode_shlibpath_var=no
8694 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8695 export_dynamic_flag_spec='${wl}-E'
8696 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8697 # Instead, shared libraries are loaded at an image base (0x10000000 by
8698 # default) and relocated if they conflict, which is a slow very memory
8699 # consuming and fragmenting process. To avoid this, we pick a random,
8700 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8701 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8702 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8703 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'
8704 ;;
d7040cdb 8705
ce2cded5
L
8706 gnu* | linux* | tpf* | k*bsd*-gnu)
8707 tmp_diet=no
8708 if test "$host_os" = linux-dietlibc; then
8709 case $cc_basename in
8710 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8711 esac
8712 fi
8713 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8714 && test "$tmp_diet" = no
8715 then
8716 tmp_addflag=
718a6fd8 8717 tmp_sharedflag='-shared'
ce2cded5
L
8718 case $cc_basename,$host_cpu in
8719 pgcc*) # Portland Group C compiler
8720 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'
8721 tmp_addflag=' $pic_flag'
8722 ;;
8723 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8724 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'
8725 tmp_addflag=' $pic_flag -Mnomain' ;;
8726 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8727 tmp_addflag=' -i_dynamic' ;;
8728 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8729 tmp_addflag=' -i_dynamic -nofor_main' ;;
8730 ifc* | ifort*) # Intel Fortran compiler
8731 tmp_addflag=' -nofor_main' ;;
718a6fd8
SE
8732 lf95*) # Lahey Fortran 8.1
8733 whole_archive_flag_spec=
8734 tmp_sharedflag='--shared' ;;
8735 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8736 tmp_sharedflag='-qmkshrobj'
8737 tmp_addflag= ;;
ce2cded5
L
8738 esac
8739 case `$CC -V 2>&1 | sed 5q` in
8740 *Sun\ C*) # Sun C 5.9
8741 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'
8742 compiler_needs_object=yes
8743 tmp_sharedflag='-G' ;;
8744 *Sun\ F*) # Sun Fortran 8.3
8745 tmp_sharedflag='-G' ;;
ce2cded5
L
8746 esac
8747 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d7040cdb 8748
ce2cded5
L
8749 if test "x$supports_anon_versioning" = xyes; then
8750 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8751 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8752 echo "local: *; };" >> $output_objdir/$libname.ver~
8753 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8754 fi
718a6fd8
SE
8755
8756 case $cc_basename in
8757 xlf*)
8758 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8759 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8760 hardcode_libdir_flag_spec=
8761 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8762 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8763 if test "x$supports_anon_versioning" = xyes; then
8764 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8765 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8766 echo "local: *; };" >> $output_objdir/$libname.ver~
8767 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8768 fi
8769 ;;
8770 esac
ce2cded5
L
8771 else
8772 ld_shlibs=no
8773 fi
8774 ;;
d7040cdb 8775
ce2cded5
L
8776 netbsd*)
8777 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8778 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8779 wlarc=
8780 else
8781 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8782 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8783 fi
8784 ;;
d7040cdb 8785
ce2cded5
L
8786 solaris*)
8787 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8788 ld_shlibs=no
8789 cat <<_LT_EOF 1>&2
d7040cdb 8790
ce2cded5
L
8791*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8792*** create shared libraries on Solaris systems. Therefore, libtool
8793*** is disabling shared libraries support. We urge you to upgrade GNU
8794*** binutils to release 2.9.1 or newer. Another option is to modify
8795*** your PATH or compiler configuration so that the native linker is
8796*** used, and then restart.
d7040cdb 8797
ce2cded5
L
8798_LT_EOF
8799 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8800 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8801 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8802 else
8803 ld_shlibs=no
8804 fi
8805 ;;
d7040cdb 8806
ce2cded5
L
8807 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8808 case `$LD -v 2>&1` in
8809 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8810 ld_shlibs=no
8811 cat <<_LT_EOF 1>&2
d7040cdb 8812
ce2cded5
L
8813*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8814*** reliably create shared libraries on SCO systems. Therefore, libtool
8815*** is disabling shared libraries support. We urge you to upgrade GNU
8816*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8817*** your PATH or compiler configuration so that the native linker is
8818*** used, and then restart.
d7040cdb 8819
ce2cded5
L
8820_LT_EOF
8821 ;;
8822 *)
8823 # For security reasons, it is highly recommended that you always
8824 # use absolute paths for naming shared libraries, and exclude the
8825 # DT_RUNPATH tag from executables and libraries. But doing so
8826 # requires that you compile everything twice, which is a pain.
8827 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8828 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8829 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8830 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8831 else
8832 ld_shlibs=no
8833 fi
8834 ;;
8835 esac
8836 ;;
d7040cdb 8837
ce2cded5
L
8838 sunos4*)
8839 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8840 wlarc=
8841 hardcode_direct=yes
8842 hardcode_shlibpath_var=no
8843 ;;
d7040cdb 8844
ce2cded5
L
8845 *)
8846 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8847 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8848 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8849 else
8850 ld_shlibs=no
8851 fi
8852 ;;
8853 esac
d7040cdb 8854
ce2cded5
L
8855 if test "$ld_shlibs" = no; then
8856 runpath_var=
8857 hardcode_libdir_flag_spec=
8858 export_dynamic_flag_spec=
8859 whole_archive_flag_spec=
8860 fi
8861 else
8862 # PORTME fill in a description of your system's linker (not GNU ld)
8863 case $host_os in
8864 aix3*)
8865 allow_undefined_flag=unsupported
8866 always_export_symbols=yes
8867 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'
8868 # Note: this linker hardcodes the directories in LIBPATH if there
8869 # are no directories specified by -L.
8870 hardcode_minus_L=yes
8871 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8872 # Neither direct hardcoding nor static linking is supported with a
8873 # broken collect2.
8874 hardcode_direct=unsupported
8875 fi
8876 ;;
d7040cdb 8877
50e7d84b 8878 aix[4-9]*)
ce2cded5
L
8879 if test "$host_cpu" = ia64; then
8880 # On IA64, the linker does run time linking by default, so we don't
8881 # have to do anything special.
8882 aix_use_runtimelinking=no
8883 exp_sym_flag='-Bexport'
8884 no_entry_flag=""
8885 else
8886 # If we're using GNU nm, then we don't want the "-C" option.
8887 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8888 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8889 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'
8890 else
8891 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'
8892 fi
8893 aix_use_runtimelinking=no
d7040cdb 8894
ce2cded5
L
8895 # Test if we are trying to use run time linking or normal
8896 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8897 # need to do runtime linking.
50e7d84b 8898 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
ce2cded5
L
8899 for ld_flag in $LDFLAGS; do
8900 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8901 aix_use_runtimelinking=yes
8902 break
8903 fi
8904 done
8905 ;;
8906 esac
d7040cdb 8907
ce2cded5
L
8908 exp_sym_flag='-bexport'
8909 no_entry_flag='-bnoentry'
8910 fi
d7040cdb 8911
ce2cded5
L
8912 # When large executables or shared objects are built, AIX ld can
8913 # have problems creating the table of contents. If linking a library
8914 # or program results in "error TOC overflow" add -mminimal-toc to
8915 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8916 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
d7040cdb 8917
ce2cded5
L
8918 archive_cmds=''
8919 hardcode_direct=yes
8920 hardcode_direct_absolute=yes
8921 hardcode_libdir_separator=':'
8922 link_all_deplibs=yes
8923 file_list_spec='${wl}-f,'
d7040cdb 8924
ce2cded5
L
8925 if test "$GCC" = yes; then
8926 case $host_os in aix4.[012]|aix4.[012].*)
8927 # We only want to do this on AIX 4.2 and lower, the check
8928 # below for broken collect2 doesn't work under 4.3+
8929 collect2name=`${CC} -print-prog-name=collect2`
8930 if test -f "$collect2name" &&
8931 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8932 then
8933 # We have reworked collect2
8934 :
8935 else
8936 # We have old collect2
8937 hardcode_direct=unsupported
8938 # It fails to find uninstalled libraries when the uninstalled
8939 # path is not listed in the libpath. Setting hardcode_minus_L
8940 # to unsupported forces relinking
8941 hardcode_minus_L=yes
8942 hardcode_libdir_flag_spec='-L$libdir'
8943 hardcode_libdir_separator=
8944 fi
8945 ;;
8946 esac
8947 shared_flag='-shared'
8948 if test "$aix_use_runtimelinking" = yes; then
8949 shared_flag="$shared_flag "'${wl}-G'
8950 fi
8951 else
8952 # not using gcc
8953 if test "$host_cpu" = ia64; then
8954 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8955 # chokes on -Wl,-G. The following line is correct:
8956 shared_flag='-G'
8957 else
8958 if test "$aix_use_runtimelinking" = yes; then
8959 shared_flag='${wl}-G'
8960 else
8961 shared_flag='${wl}-bM:SRE'
8962 fi
8963 fi
8964 fi
d7040cdb 8965
718a6fd8 8966 export_dynamic_flag_spec='${wl}-bexpall'
ce2cded5
L
8967 # It seems that -bexpall does not export symbols beginning with
8968 # underscore (_), so it is better to generate a list of symbols to export.
8969 always_export_symbols=yes
8970 if test "$aix_use_runtimelinking" = yes; then
8971 # Warning - without using the other runtime loading flags (-brtl),
8972 # -berok will link without error, but may produce a broken library.
8973 allow_undefined_flag='-berok'
8974 # Determine the default libpath from the value encoded in an
8975 # empty executable.
8976 cat >conftest.$ac_ext <<_ACEOF
8977/* confdefs.h. */
8978_ACEOF
8979cat confdefs.h >>conftest.$ac_ext
8980cat >>conftest.$ac_ext <<_ACEOF
8981/* end confdefs.h. */
d7040cdb 8982
ce2cded5
L
8983int
8984main ()
8985{
d7040cdb 8986
ce2cded5
L
8987 ;
8988 return 0;
8989}
8990_ACEOF
8991rm -f conftest.$ac_objext conftest$ac_exeext
8992if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8993 (eval $ac_link) 2>conftest.er1
8994 ac_status=$?
8995 grep -v '^ *+' conftest.er1 >conftest.err
8996 rm -f conftest.er1
8997 cat conftest.err >&5
8998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8999 (exit $ac_status); } &&
9000 { ac_try='test -z "$ac_c_werror_flag"
9001 || test ! -s conftest.err'
9002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9003 (eval $ac_try) 2>&5
9004 ac_status=$?
9005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9006 (exit $ac_status); }; } &&
9007 { ac_try='test -s conftest$ac_exeext'
9008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9009 (eval $ac_try) 2>&5
9010 ac_status=$?
9011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012 (exit $ac_status); }; }; then
d7040cdb 9013
ce2cded5
L
9014lt_aix_libpath_sed='
9015 /Import File Strings/,/^$/ {
9016 /^0/ {
9017 s/^0 *\(.*\)$/\1/
9018 p
9019 }
9020 }'
9021aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9022# Check for a 64-bit object if we didn't find anything.
9023if test -z "$aix_libpath"; then
9024 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9025fi
9026else
9027 echo "$as_me: failed program was:" >&5
9028sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 9029
ce2cded5
L
9030fi
9031rm -f conftest.err conftest.$ac_objext \
9032 conftest$ac_exeext conftest.$ac_ext
9033if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 9034
ce2cded5
L
9035 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9036 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"
9037 else
9038 if test "$host_cpu" = ia64; then
9039 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9040 allow_undefined_flag="-z nodefs"
9041 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"
9042 else
9043 # Determine the default libpath from the value encoded in an
9044 # empty executable.
9045 cat >conftest.$ac_ext <<_ACEOF
9046/* confdefs.h. */
9047_ACEOF
9048cat confdefs.h >>conftest.$ac_ext
9049cat >>conftest.$ac_ext <<_ACEOF
9050/* end confdefs.h. */
d7040cdb 9051
ce2cded5
L
9052int
9053main ()
9054{
d7040cdb 9055
ce2cded5
L
9056 ;
9057 return 0;
9058}
9059_ACEOF
9060rm -f conftest.$ac_objext conftest$ac_exeext
9061if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9062 (eval $ac_link) 2>conftest.er1
9063 ac_status=$?
9064 grep -v '^ *+' conftest.er1 >conftest.err
9065 rm -f conftest.er1
9066 cat conftest.err >&5
9067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068 (exit $ac_status); } &&
9069 { ac_try='test -z "$ac_c_werror_flag"
9070 || test ! -s conftest.err'
9071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9072 (eval $ac_try) 2>&5
9073 ac_status=$?
9074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075 (exit $ac_status); }; } &&
9076 { ac_try='test -s conftest$ac_exeext'
9077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9078 (eval $ac_try) 2>&5
9079 ac_status=$?
9080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9081 (exit $ac_status); }; }; then
d7040cdb 9082
ce2cded5
L
9083lt_aix_libpath_sed='
9084 /Import File Strings/,/^$/ {
9085 /^0/ {
9086 s/^0 *\(.*\)$/\1/
9087 p
9088 }
9089 }'
9090aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9091# Check for a 64-bit object if we didn't find anything.
9092if test -z "$aix_libpath"; then
9093 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9094fi
9095else
9096 echo "$as_me: failed program was:" >&5
9097sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 9098
ce2cded5
L
9099fi
9100rm -f conftest.err conftest.$ac_objext \
9101 conftest$ac_exeext conftest.$ac_ext
9102if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 9103
ce2cded5
L
9104 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9105 # Warning - without using the other run time loading flags,
9106 # -berok will link without error, but may produce a broken library.
9107 no_undefined_flag=' ${wl}-bernotok'
9108 allow_undefined_flag=' ${wl}-berok'
9109 # Exported symbols can be pulled into shared objects from archives
9110 whole_archive_flag_spec='$convenience'
9111 archive_cmds_need_lc=yes
9112 # This is similar to how AIX traditionally builds its shared libraries.
9113 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'
9114 fi
9115 fi
9116 ;;
d7040cdb 9117
ce2cded5 9118 amigaos*)
718a6fd8
SE
9119 case $host_cpu in
9120 powerpc)
9121 # see comment about AmigaOS4 .so support
9122 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9123 archive_expsym_cmds=''
9124 ;;
9125 m68k)
9126 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)'
9127 hardcode_libdir_flag_spec='-L$libdir'
9128 hardcode_minus_L=yes
9129 ;;
9130 esac
ce2cded5 9131 ;;
d7040cdb 9132
ce2cded5
L
9133 bsdi[45]*)
9134 export_dynamic_flag_spec=-rdynamic
9135 ;;
d7040cdb 9136
718a6fd8 9137 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
9138 # When not using gcc, we currently assume that we are using
9139 # Microsoft Visual C++.
9140 # hardcode_libdir_flag_spec is actually meaningless, as there is
9141 # no search path for DLLs.
9142 hardcode_libdir_flag_spec=' '
9143 allow_undefined_flag=unsupported
9144 # Tell ltmain to make .lib files, not .a files.
9145 libext=lib
9146 # Tell ltmain to make .dll files, not .so files.
9147 shrext_cmds=".dll"
9148 # FIXME: Setting linknames here is a bad hack.
9149 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9150 # The linker will automatically build a .lib file if we build a DLL.
9151 old_archive_from_new_cmds='true'
9152 # FIXME: Should let the user specify the lib program.
9153 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9154 fix_srcfile_path='`cygpath -w "$srcfile"`'
9155 enable_shared_with_static_runtimes=yes
9156 ;;
d7040cdb 9157
ce2cded5 9158 darwin* | rhapsody*)
d7040cdb 9159
718a6fd8
SE
9160
9161 archive_cmds_need_lc=no
9162 hardcode_direct=no
9163 hardcode_automatic=yes
9164 hardcode_shlibpath_var=unsupported
9165 whole_archive_flag_spec=''
9166 link_all_deplibs=yes
9167 allow_undefined_flag="$_lt_dar_allow_undefined"
9168 case $cc_basename in
9169 ifort*) _lt_dar_can_shared=yes ;;
9170 *) _lt_dar_can_shared=$GCC ;;
9171 esac
9172 if test "$_lt_dar_can_shared" = "yes"; then
9173 output_verbose_link_cmd=echo
9174 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9175 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9176 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9177 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9178
9179 else
9180 ld_shlibs=no
9181 fi
9182
ce2cded5 9183 ;;
d7040cdb 9184
ce2cded5
L
9185 dgux*)
9186 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9187 hardcode_libdir_flag_spec='-L$libdir'
9188 hardcode_shlibpath_var=no
9189 ;;
d7040cdb 9190
ce2cded5
L
9191 freebsd1*)
9192 ld_shlibs=no
9193 ;;
d7040cdb 9194
ce2cded5
L
9195 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9196 # support. Future versions do this automatically, but an explicit c++rt0.o
9197 # does not break anything, and helps significantly (at the cost of a little
9198 # extra space).
9199 freebsd2.2*)
9200 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9201 hardcode_libdir_flag_spec='-R$libdir'
9202 hardcode_direct=yes
9203 hardcode_shlibpath_var=no
9204 ;;
d7040cdb 9205
ce2cded5
L
9206 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9207 freebsd2*)
9208 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9209 hardcode_direct=yes
9210 hardcode_minus_L=yes
9211 hardcode_shlibpath_var=no
9212 ;;
d7040cdb 9213
ce2cded5
L
9214 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9215 freebsd* | dragonfly*)
9216 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9217 hardcode_libdir_flag_spec='-R$libdir'
9218 hardcode_direct=yes
9219 hardcode_shlibpath_var=no
9220 ;;
d7040cdb 9221
ce2cded5
L
9222 hpux9*)
9223 if test "$GCC" = yes; then
9224 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'
9225 else
9226 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'
9227 fi
9228 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9229 hardcode_libdir_separator=:
9230 hardcode_direct=yes
d7040cdb 9231
ce2cded5
L
9232 # hardcode_minus_L: Not really in the search PATH,
9233 # but as the default location of the library.
9234 hardcode_minus_L=yes
9235 export_dynamic_flag_spec='${wl}-E'
9236 ;;
d7040cdb 9237
ce2cded5
L
9238 hpux10*)
9239 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9240 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9241 else
9242 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9243 fi
9244 if test "$with_gnu_ld" = no; then
9245 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9246 hardcode_libdir_flag_spec_ld='+b $libdir'
9247 hardcode_libdir_separator=:
9248 hardcode_direct=yes
9249 hardcode_direct_absolute=yes
9250 export_dynamic_flag_spec='${wl}-E'
9251 # hardcode_minus_L: Not really in the search PATH,
9252 # but as the default location of the library.
9253 hardcode_minus_L=yes
9254 fi
9255 ;;
d7040cdb 9256
ce2cded5
L
9257 hpux11*)
9258 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9259 case $host_cpu in
9260 hppa*64*)
9261 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9262 ;;
9263 ia64*)
718a6fd8 9264 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
ce2cded5
L
9265 ;;
9266 *)
9267 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9268 ;;
9269 esac
9270 else
9271 case $host_cpu in
9272 hppa*64*)
9273 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9274 ;;
9275 ia64*)
9276 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9277 ;;
9278 *)
9279 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9280 ;;
9281 esac
9282 fi
9283 if test "$with_gnu_ld" = no; then
9284 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9285 hardcode_libdir_separator=:
d7040cdb 9286
ce2cded5
L
9287 case $host_cpu in
9288 hppa*64*|ia64*)
9289 hardcode_direct=no
9290 hardcode_shlibpath_var=no
9291 ;;
9292 *)
9293 hardcode_direct=yes
9294 hardcode_direct_absolute=yes
9295 export_dynamic_flag_spec='${wl}-E'
d7040cdb 9296
ce2cded5
L
9297 # hardcode_minus_L: Not really in the search PATH,
9298 # but as the default location of the library.
9299 hardcode_minus_L=yes
9300 ;;
9301 esac
9302 fi
9303 ;;
9304
9305 irix5* | irix6* | nonstopux*)
9306 if test "$GCC" = yes; then
9307 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'
9308 # Try to use the -exported_symbol ld option, if it does not
9309 # work, assume that -exports_file does not work either and
9310 # implicitly export all symbols.
9311 save_LDFLAGS="$LDFLAGS"
9312 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9313 cat >conftest.$ac_ext <<_ACEOF
9314int foo(void) {}
9315_ACEOF
9316rm -f conftest.$ac_objext conftest$ac_exeext
9317if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9318 (eval $ac_link) 2>conftest.er1
9319 ac_status=$?
9320 grep -v '^ *+' conftest.er1 >conftest.err
9321 rm -f conftest.er1
9322 cat conftest.err >&5
9323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9324 (exit $ac_status); } &&
9325 { ac_try='test -z "$ac_c_werror_flag"
9326 || test ! -s conftest.err'
9327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9328 (eval $ac_try) 2>&5
9329 ac_status=$?
9330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9331 (exit $ac_status); }; } &&
9332 { ac_try='test -s conftest$ac_exeext'
9333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9334 (eval $ac_try) 2>&5
9335 ac_status=$?
9336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9337 (exit $ac_status); }; }; then
9338 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 9339
d7040cdb 9340else
ce2cded5
L
9341 echo "$as_me: failed program was:" >&5
9342sed 's/^/| /' conftest.$ac_ext >&5
9343
d7040cdb 9344fi
ce2cded5
L
9345rm -f conftest.err conftest.$ac_objext \
9346 conftest$ac_exeext conftest.$ac_ext
9347 LDFLAGS="$save_LDFLAGS"
9348 else
9349 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'
9350 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'
9351 fi
9352 archive_cmds_need_lc='no'
9353 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9354 hardcode_libdir_separator=:
9355 inherit_rpath=yes
9356 link_all_deplibs=yes
9357 ;;
d7040cdb 9358
ce2cded5
L
9359 netbsd*)
9360 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9361 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9362 else
9363 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9364 fi
9365 hardcode_libdir_flag_spec='-R$libdir'
9366 hardcode_direct=yes
9367 hardcode_shlibpath_var=no
9368 ;;
d7040cdb 9369
ce2cded5
L
9370 newsos6)
9371 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9372 hardcode_direct=yes
9373 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9374 hardcode_libdir_separator=:
9375 hardcode_shlibpath_var=no
9376 ;;
d7040cdb 9377
ce2cded5
L
9378 *nto* | *qnx*)
9379 ;;
d7040cdb 9380
ce2cded5 9381 openbsd*)
718a6fd8
SE
9382 if test -f /usr/libexec/ld.so; then
9383 hardcode_direct=yes
9384 hardcode_shlibpath_var=no
9385 hardcode_direct_absolute=yes
9386 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
ce2cded5 9387 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
718a6fd8 9388 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
ce2cded5 9389 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
718a6fd8
SE
9390 export_dynamic_flag_spec='${wl}-E'
9391 else
9392 case $host_os in
9393 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9394 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9395 hardcode_libdir_flag_spec='-R$libdir'
9396 ;;
9397 *)
9398 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9399 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9400 ;;
9401 esac
9402 fi
9403 else
9404 ld_shlibs=no
d7040cdb
SE
9405 fi
9406 ;;
d7040cdb 9407
ce2cded5
L
9408 os2*)
9409 hardcode_libdir_flag_spec='-L$libdir'
9410 hardcode_minus_L=yes
9411 allow_undefined_flag=unsupported
9412 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'
9413 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9414 ;;
d7040cdb 9415
ce2cded5
L
9416 osf3*)
9417 if test "$GCC" = yes; then
9418 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9419 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'
9420 else
9421 allow_undefined_flag=' -expect_unresolved \*'
9422 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'
9423 fi
9424 archive_cmds_need_lc='no'
9425 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9426 hardcode_libdir_separator=:
9427 ;;
d7040cdb 9428
ce2cded5
L
9429 osf4* | osf5*) # as osf3* with the addition of -msym flag
9430 if test "$GCC" = yes; then
9431 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9432 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'
9433 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9434 else
9435 allow_undefined_flag=' -expect_unresolved \*'
9436 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'
9437 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~
9438 $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 9439
ce2cded5
L
9440 # Both c and cxx compiler support -rpath directly
9441 hardcode_libdir_flag_spec='-rpath $libdir'
9442 fi
9443 archive_cmds_need_lc='no'
9444 hardcode_libdir_separator=:
9445 ;;
d7040cdb 9446
ce2cded5
L
9447 solaris*)
9448 no_undefined_flag=' -z defs'
9449 if test "$GCC" = yes; then
9450 wlarc='${wl}'
9451 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9452 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9453 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9454 else
9455 case `$CC -V 2>&1` in
9456 *"Compilers 5.0"*)
9457 wlarc=''
9458 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9459 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9460 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9461 ;;
9462 *)
9463 wlarc='${wl}'
9464 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9465 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9466 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9467 ;;
9468 esac
9469 fi
9470 hardcode_libdir_flag_spec='-R$libdir'
9471 hardcode_shlibpath_var=no
9472 case $host_os in
9473 solaris2.[0-5] | solaris2.[0-5].*) ;;
9474 *)
9475 # The compiler driver will combine and reorder linker options,
9476 # but understands `-z linker_flag'. GCC discards it without `$wl',
9477 # but is careful enough not to reorder.
9478 # Supported since Solaris 2.6 (maybe 2.5.1?)
9479 if test "$GCC" = yes; then
9480 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9481 else
9482 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9483 fi
9484 ;;
9485 esac
9486 link_all_deplibs=yes
d7040cdb 9487 ;;
ce2cded5
L
9488
9489 sunos4*)
9490 if test "x$host_vendor" = xsequent; then
9491 # Use $CC to link under sequent, because it throws in some extra .o
9492 # files that make .init and .fini sections work.
9493 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
d7040cdb 9494 else
ce2cded5 9495 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
d7040cdb 9496 fi
ce2cded5
L
9497 hardcode_libdir_flag_spec='-L$libdir'
9498 hardcode_direct=yes
9499 hardcode_minus_L=yes
9500 hardcode_shlibpath_var=no
d7040cdb 9501 ;;
ce2cded5
L
9502
9503 sysv4)
9504 case $host_vendor in
9505 sni)
9506 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9507 hardcode_direct=yes # is this really true???
9508 ;;
9509 siemens)
9510 ## LD is ld it makes a PLAMLIB
9511 ## CC just makes a GrossModule.
9512 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9513 reload_cmds='$CC -r -o $output$reload_objs'
9514 hardcode_direct=no
9515 ;;
9516 motorola)
9517 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9518 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9519 ;;
9520 esac
9521 runpath_var='LD_RUN_PATH'
9522 hardcode_shlibpath_var=no
d7040cdb 9523 ;;
d7040cdb 9524
ce2cded5
L
9525 sysv4.3*)
9526 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9527 hardcode_shlibpath_var=no
9528 export_dynamic_flag_spec='-Bexport'
9529 ;;
d7040cdb 9530
ce2cded5
L
9531 sysv4*MP*)
9532 if test -d /usr/nec; then
9533 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9534 hardcode_shlibpath_var=no
9535 runpath_var=LD_RUN_PATH
9536 hardcode_runpath_var=yes
9537 ld_shlibs=yes
9538 fi
9539 ;;
d7040cdb 9540
ce2cded5
L
9541 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9542 no_undefined_flag='${wl}-z,text'
9543 archive_cmds_need_lc=no
9544 hardcode_shlibpath_var=no
9545 runpath_var='LD_RUN_PATH'
d7040cdb 9546
ce2cded5
L
9547 if test "$GCC" = yes; then
9548 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9549 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9550 else
9551 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9552 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9553 fi
9554 ;;
d7040cdb 9555
ce2cded5
L
9556 sysv5* | sco3.2v5* | sco5v6*)
9557 # Note: We can NOT use -z defs as we might desire, because we do not
9558 # link with -lc, and that would cause any symbols used from libc to
9559 # always be unresolved, which means just about no library would
9560 # ever link correctly. If we're not using GNU ld we use -z text
9561 # though, which does catch some bad symbols but isn't as heavy-handed
9562 # as -z defs.
9563 no_undefined_flag='${wl}-z,text'
9564 allow_undefined_flag='${wl}-z,nodefs'
9565 archive_cmds_need_lc=no
9566 hardcode_shlibpath_var=no
9567 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9568 hardcode_libdir_separator=':'
9569 link_all_deplibs=yes
9570 export_dynamic_flag_spec='${wl}-Bexport'
9571 runpath_var='LD_RUN_PATH'
d7040cdb 9572
ce2cded5
L
9573 if test "$GCC" = yes; then
9574 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9575 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9576 else
9577 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9578 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9579 fi
d7040cdb 9580 ;;
d7040cdb 9581
ce2cded5
L
9582 uts4*)
9583 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9584 hardcode_libdir_flag_spec='-L$libdir'
9585 hardcode_shlibpath_var=no
9586 ;;
d7040cdb 9587
ce2cded5
L
9588 *)
9589 ld_shlibs=no
9590 ;;
9591 esac
9592
9593 if test x$host_vendor = xsni; then
9594 case $host in
9595 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9596 export_dynamic_flag_spec='${wl}-Blargedynsym'
9597 ;;
9598 esac
d7040cdb 9599 fi
ce2cded5 9600 fi
d7040cdb 9601
ce2cded5
L
9602echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9603echo "${ECHO_T}$ld_shlibs" >&6
9604test "$ld_shlibs" = no && can_build_shared=no
d7040cdb 9605
ce2cded5 9606with_gnu_ld=$with_gnu_ld
d7040cdb 9607
d7040cdb 9608
d7040cdb 9609
d7040cdb 9610
d7040cdb 9611
d7040cdb 9612
d7040cdb 9613
d7040cdb 9614
d7040cdb 9615
d7040cdb 9616
d7040cdb 9617
d7040cdb 9618
d7040cdb 9619
d7040cdb 9620
d7040cdb 9621
ce2cded5
L
9622#
9623# Do we need to explicitly link libc?
9624#
9625case "x$archive_cmds_need_lc" in
9626x|xyes)
9627 # Assume -lc should be added
9628 archive_cmds_need_lc=yes
d7040cdb 9629
ce2cded5
L
9630 if test "$enable_shared" = yes && test "$GCC" = yes; then
9631 case $archive_cmds in
9632 *'~'*)
9633 # FIXME: we may have to deal with multi-command sequences.
9634 ;;
9635 '$CC '*)
9636 # Test whether the compiler implicitly links with -lc since on some
9637 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9638 # to ld, don't add -lc before -lgcc.
9639 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9640echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
39144654
RW
9641if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
9642 echo $ECHO_N "(cached) $ECHO_C" >&6
9643else
9644 $RM conftest*
9645 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 9646
39144654 9647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ce2cded5
L
9648 (eval $ac_compile) 2>&5
9649 ac_status=$?
9650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9651 (exit $ac_status); } 2>conftest.err; then
39144654
RW
9652 soname=conftest
9653 lib=conftest
9654 libobjs=conftest.$ac_objext
9655 deplibs=
9656 wl=$lt_prog_compiler_wl
9657 pic_flag=$lt_prog_compiler_pic
9658 compiler_flags=-v
9659 linker_flags=-v
9660 verstring=
9661 output_objdir=.
9662 libname=conftest
9663 lt_save_allow_undefined_flag=$allow_undefined_flag
9664 allow_undefined_flag=
9665 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
ce2cded5
L
9666 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9667 ac_status=$?
9668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669 (exit $ac_status); }
39144654
RW
9670 then
9671 lt_cv_archive_cmds_need_lc=no
9672 else
9673 lt_cv_archive_cmds_need_lc=yes
9674 fi
9675 allow_undefined_flag=$lt_save_allow_undefined_flag
9676 else
9677 cat conftest.err 1>&5
9678 fi
9679 $RM conftest*
9680
9681fi
9682echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
9683echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
9684 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
ce2cded5
L
9685 ;;
9686 esac
d7040cdb 9687 fi
d7040cdb 9688 ;;
ce2cded5 9689esac
d7040cdb 9690
d7040cdb 9691
d7040cdb 9692
d7040cdb 9693
d7040cdb 9694
d7040cdb 9695
d7040cdb 9696
d7040cdb
SE
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
d7040cdb 9784
d7040cdb 9785
d7040cdb
SE
9786
9787
9788
9789
9790
9791
d7040cdb 9792
d7040cdb 9793
d7040cdb 9794
d7040cdb 9795
d7040cdb 9796
d7040cdb 9797
d7040cdb 9798
d7040cdb 9799
d7040cdb 9800
d7040cdb 9801
d7040cdb 9802
d7040cdb 9803
d7040cdb 9804
d7040cdb 9805
d7040cdb 9806
d7040cdb 9807
d7040cdb 9808
d7040cdb 9809
d7040cdb 9810
d7040cdb 9811
d7040cdb 9812
d7040cdb 9813
d7040cdb 9814
ce2cded5
L
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9848echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
718a6fd8
SE
9849
9850if test "$GCC" = yes; then
ce2cded5
L
9851 case $host_os in
9852 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9853 *) lt_awk_arg="/^libraries:/" ;;
9854 esac
9855 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9856 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9857 # if the path contains ";" then we assume it to be the separator
9858 # otherwise default to the standard path separator (i.e. ":") - it is
9859 # assumed that no part of a normal pathname contains ";" but that should
9860 # okay in the real world where ";" in dirpaths is itself problematic.
9861 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9862 else
9863 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9864 fi
9865 # Ok, now we have the path, separated by spaces, we can step through it
9866 # and add multilib dir if necessary.
9867 lt_tmp_lt_search_path_spec=
9868 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9869 for lt_sys_path in $lt_search_path_spec; do
9870 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9871 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9872 else
9873 test -d "$lt_sys_path" && \
9874 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9875 fi
9876 done
9877 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9878BEGIN {RS=" "; FS="/|\n";} {
9879 lt_foo="";
9880 lt_count=0;
9881 for (lt_i = NF; lt_i > 0; lt_i--) {
9882 if ($lt_i != "" && $lt_i != ".") {
9883 if ($lt_i == "..") {
9884 lt_count++;
9885 } else {
9886 if (lt_count == 0) {
9887 lt_foo="/" $lt_i lt_foo;
9888 } else {
9889 lt_count--;
9890 }
9891 }
9892 }
9893 }
9894 if (lt_foo != "") { lt_freq[lt_foo]++; }
9895 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9896}'`
9897 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
d7040cdb 9898else
ce2cded5
L
9899 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9900fi
9901library_names_spec=
9902libname_spec='lib$name'
9903soname_spec=
9904shrext_cmds=".so"
9905postinstall_cmds=
9906postuninstall_cmds=
9907finish_cmds=
9908finish_eval=
9909shlibpath_var=
9910shlibpath_overrides_runpath=unknown
9911version_type=none
9912dynamic_linker="$host_os ld.so"
9913sys_lib_dlsearch_path_spec="/lib /usr/lib"
9914need_lib_prefix=unknown
9915hardcode_into_libs=no
9916
9917# when you set need_version to no, make sure it does not cause -set_version
9918# flags to be left without arguments
9919need_version=unknown
9920
9921case $host_os in
9922aix3*)
9923 version_type=linux
9924 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9925 shlibpath_var=LIBPATH
9926
9927 # AIX 3 has no versioning support, so we append a major version to the name.
9928 soname_spec='${libname}${release}${shared_ext}$major'
9929 ;;
9930
50e7d84b 9931aix[4-9]*)
ce2cded5
L
9932 version_type=linux
9933 need_lib_prefix=no
9934 need_version=no
9935 hardcode_into_libs=yes
9936 if test "$host_cpu" = ia64; then
9937 # AIX 5 supports IA64
9938 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9939 shlibpath_var=LD_LIBRARY_PATH
9940 else
9941 # With GCC up to 2.95.x, collect2 would create an import file
9942 # for dependence libraries. The import file would start with
9943 # the line `#! .'. This would cause the generated library to
9944 # depend on `.', always an invalid library. This was fixed in
9945 # development snapshots of GCC prior to 3.0.
9946 case $host_os in
9947 aix4 | aix4.[01] | aix4.[01].*)
9948 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9949 echo ' yes '
9950 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9951 :
9952 else
9953 can_build_shared=no
9954 fi
9955 ;;
9956 esac
9957 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9958 # soname into executable. Probably we can add versioning support to
9959 # collect2, so additional links can be useful in future.
9960 if test "$aix_use_runtimelinking" = yes; then
9961 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9962 # instead of lib<name>.a to let people know that these are not
9963 # typical AIX shared libraries.
9964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9965 else
9966 # We preserve .a as extension for shared libraries through AIX4.2
9967 # and later when we are not doing run time linking.
9968 library_names_spec='${libname}${release}.a $libname.a'
9969 soname_spec='${libname}${release}${shared_ext}$major'
9970 fi
9971 shlibpath_var=LIBPATH
9972 fi
9973 ;;
9974
9975amigaos*)
718a6fd8
SE
9976 case $host_cpu in
9977 powerpc)
9978 # Since July 2007 AmigaOS4 officially supports .so libraries.
9979 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9981 ;;
9982 m68k)
ce2cded5
L
9983 library_names_spec='$libname.ixlibrary $libname.a'
9984 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9985 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
718a6fd8
SE
9986 ;;
9987 esac
ce2cded5
L
9988 ;;
9989
9990beos*)
9991 library_names_spec='${libname}${shared_ext}'
9992 dynamic_linker="$host_os ld.so"
9993 shlibpath_var=LIBRARY_PATH
9994 ;;
9995
9996bsdi[45]*)
9997 version_type=linux
9998 need_version=no
9999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10000 soname_spec='${libname}${release}${shared_ext}$major'
10001 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10002 shlibpath_var=LD_LIBRARY_PATH
10003 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10004 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10005 # the default ld.so.conf also contains /usr/contrib/lib and
10006 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10007 # libtool to hard-code these into programs
10008 ;;
10009
718a6fd8 10010cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
10011 version_type=windows
10012 shrext_cmds=".dll"
10013 need_version=no
10014 need_lib_prefix=no
10015
718a6fd8
SE
10016 case $GCC,$host_os in
10017 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
ce2cded5
L
10018 library_names_spec='$libname.dll.a'
10019 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10020 postinstall_cmds='base_file=`basename \${file}`~
10021 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10022 dldir=$destdir/`dirname \$dlpath`~
10023 test -d \$dldir || mkdir -p \$dldir~
10024 $install_prog $dir/$dlname \$dldir/$dlname~
10025 chmod a+x \$dldir/$dlname~
10026 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10027 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10028 fi'
10029 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10030 dlpath=$dir/\$dldll~
10031 $RM \$dlpath'
10032 shlibpath_overrides_runpath=yes
10033
10034 case $host_os in
10035 cygwin*)
10036 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10037 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10038 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10039 ;;
718a6fd8 10040 mingw* | cegcc*)
ce2cded5
L
10041 # MinGW DLLs use traditional 'lib' prefix
10042 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10043 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10044 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10045 # It is most probably a Windows format PATH printed by
10046 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10047 # path with ; separators, and with drive letters. We can handle the
10048 # drive letters (cygwin fileutils understands them), so leave them,
10049 # especially as we might pass files found there to a mingw objdump,
10050 # which wouldn't understand a cygwinified path. Ahh.
10051 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10052 else
10053 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10054 fi
10055 ;;
10056 pw32*)
10057 # pw32 DLLs use 'pw' prefix rather than 'lib'
10058 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10059 ;;
10060 esac
10061 ;;
10062
10063 *)
10064 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10065 ;;
10066 esac
10067 dynamic_linker='Win32 ld.exe'
10068 # FIXME: first we should search . and the directory the executable is in
10069 shlibpath_var=PATH
10070 ;;
10071
10072darwin* | rhapsody*)
10073 dynamic_linker="$host_os dyld"
10074 version_type=darwin
10075 need_lib_prefix=no
10076 need_version=no
10077 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10078 soname_spec='${libname}${release}${major}$shared_ext'
10079 shlibpath_overrides_runpath=yes
10080 shlibpath_var=DYLD_LIBRARY_PATH
10081 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10082
10083 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10084 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10085 ;;
10086
10087dgux*)
10088 version_type=linux
10089 need_lib_prefix=no
10090 need_version=no
10091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10092 soname_spec='${libname}${release}${shared_ext}$major'
10093 shlibpath_var=LD_LIBRARY_PATH
10094 ;;
10095
10096freebsd1*)
10097 dynamic_linker=no
10098 ;;
10099
10100freebsd* | dragonfly*)
10101 # DragonFly does not have aout. When/if they implement a new
10102 # versioning mechanism, adjust this.
10103 if test -x /usr/bin/objformat; then
10104 objformat=`/usr/bin/objformat`
10105 else
10106 case $host_os in
10107 freebsd[123]*) objformat=aout ;;
10108 *) objformat=elf ;;
10109 esac
10110 fi
10111 version_type=freebsd-$objformat
10112 case $version_type in
10113 freebsd-elf*)
10114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10115 need_version=no
10116 need_lib_prefix=no
10117 ;;
10118 freebsd-*)
10119 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10120 need_version=yes
10121 ;;
10122 esac
10123 shlibpath_var=LD_LIBRARY_PATH
10124 case $host_os in
10125 freebsd2*)
10126 shlibpath_overrides_runpath=yes
10127 ;;
10128 freebsd3.[01]* | freebsdelf3.[01]*)
10129 shlibpath_overrides_runpath=yes
10130 hardcode_into_libs=yes
10131 ;;
10132 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10133 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10134 shlibpath_overrides_runpath=no
10135 hardcode_into_libs=yes
10136 ;;
10137 *) # from 4.6 on, and DragonFly
10138 shlibpath_overrides_runpath=yes
10139 hardcode_into_libs=yes
10140 ;;
10141 esac
10142 ;;
10143
10144gnu*)
10145 version_type=linux
10146 need_lib_prefix=no
10147 need_version=no
10148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10149 soname_spec='${libname}${release}${shared_ext}$major'
10150 shlibpath_var=LD_LIBRARY_PATH
10151 hardcode_into_libs=yes
10152 ;;
10153
10154hpux9* | hpux10* | hpux11*)
10155 # Give a soname corresponding to the major version so that dld.sl refuses to
10156 # link against other versions.
10157 version_type=sunos
10158 need_lib_prefix=no
10159 need_version=no
10160 case $host_cpu in
10161 ia64*)
10162 shrext_cmds='.so'
10163 hardcode_into_libs=yes
10164 dynamic_linker="$host_os dld.so"
10165 shlibpath_var=LD_LIBRARY_PATH
10166 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10168 soname_spec='${libname}${release}${shared_ext}$major'
10169 if test "X$HPUX_IA64_MODE" = X32; then
10170 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10171 else
10172 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10173 fi
10174 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10175 ;;
10176 hppa*64*)
10177 shrext_cmds='.sl'
10178 hardcode_into_libs=yes
10179 dynamic_linker="$host_os dld.sl"
10180 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10181 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10183 soname_spec='${libname}${release}${shared_ext}$major'
10184 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10185 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10186 ;;
10187 *)
10188 shrext_cmds='.sl'
10189 dynamic_linker="$host_os dld.sl"
10190 shlibpath_var=SHLIB_PATH
10191 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10193 soname_spec='${libname}${release}${shared_ext}$major'
10194 ;;
10195 esac
10196 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10197 postinstall_cmds='chmod 555 $lib'
10198 ;;
10199
10200interix[3-9]*)
10201 version_type=linux
10202 need_lib_prefix=no
10203 need_version=no
10204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10205 soname_spec='${libname}${release}${shared_ext}$major'
10206 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10207 shlibpath_var=LD_LIBRARY_PATH
10208 shlibpath_overrides_runpath=no
10209 hardcode_into_libs=yes
10210 ;;
10211
10212irix5* | irix6* | nonstopux*)
10213 case $host_os in
10214 nonstopux*) version_type=nonstopux ;;
10215 *)
10216 if test "$lt_cv_prog_gnu_ld" = yes; then
10217 version_type=linux
10218 else
10219 version_type=irix
10220 fi ;;
10221 esac
10222 need_lib_prefix=no
10223 need_version=no
10224 soname_spec='${libname}${release}${shared_ext}$major'
10225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10226 case $host_os in
10227 irix5* | nonstopux*)
10228 libsuff= shlibsuff=
10229 ;;
10230 *)
10231 case $LD in # libtool.m4 will add one of these switches to LD
10232 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10233 libsuff= shlibsuff= libmagic=32-bit;;
10234 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10235 libsuff=32 shlibsuff=N32 libmagic=N32;;
10236 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10237 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10238 *) libsuff= shlibsuff= libmagic=never-match;;
10239 esac
10240 ;;
10241 esac
10242 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10243 shlibpath_overrides_runpath=no
10244 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10245 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10246 hardcode_into_libs=yes
10247 ;;
d7040cdb 10248
ce2cded5
L
10249# No shared lib support for Linux oldld, aout, or coff.
10250linux*oldld* | linux*aout* | linux*coff*)
10251 dynamic_linker=no
10252 ;;
10253
10254# This must be Linux ELF.
10255linux* | k*bsd*-gnu)
10256 version_type=linux
10257 need_lib_prefix=no
10258 need_version=no
10259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10260 soname_spec='${libname}${release}${shared_ext}$major'
10261 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10262 shlibpath_var=LD_LIBRARY_PATH
10263 shlibpath_overrides_runpath=no
39144654 10264
ce2cded5 10265 # Some binutils ld are patched to set DT_RUNPATH
39144654
RW
10266 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
10267 echo $ECHO_N "(cached) $ECHO_C" >&6
10268else
10269 lt_cv_shlibpath_overrides_runpath=no
10270 save_LDFLAGS=$LDFLAGS
10271 save_libdir=$libdir
10272 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10273 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10274 cat >conftest.$ac_ext <<_ACEOF
d7040cdb
SE
10275/* confdefs.h. */
10276_ACEOF
10277cat confdefs.h >>conftest.$ac_ext
10278cat >>conftest.$ac_ext <<_ACEOF
10279/* end confdefs.h. */
10280
d7040cdb
SE
10281int
10282main ()
10283{
ce2cded5 10284
d7040cdb
SE
10285 ;
10286 return 0;
10287}
10288_ACEOF
10289rm -f conftest.$ac_objext conftest$ac_exeext
10290if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10291 (eval $ac_link) 2>conftest.er1
10292 ac_status=$?
10293 grep -v '^ *+' conftest.er1 >conftest.err
10294 rm -f conftest.er1
10295 cat conftest.err >&5
10296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10297 (exit $ac_status); } &&
10298 { ac_try='test -z "$ac_c_werror_flag"
10299 || test ! -s conftest.err'
10300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10301 (eval $ac_try) 2>&5
10302 ac_status=$?
10303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304 (exit $ac_status); }; } &&
10305 { ac_try='test -s conftest$ac_exeext'
10306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10307 (eval $ac_try) 2>&5
10308 ac_status=$?
10309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310 (exit $ac_status); }; }; then
718a6fd8 10311 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
39144654 10312 lt_cv_shlibpath_overrides_runpath=yes
ce2cded5
L
10313fi
10314
d7040cdb
SE
10315else
10316 echo "$as_me: failed program was:" >&5
10317sed 's/^/| /' conftest.$ac_ext >&5
10318
ce2cded5
L
10319fi
10320rm -f conftest.err conftest.$ac_objext \
10321 conftest$ac_exeext conftest.$ac_ext
39144654
RW
10322 LDFLAGS=$save_LDFLAGS
10323 libdir=$save_libdir
10324
10325fi
10326
10327 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
ce2cded5
L
10328
10329 # This implies no fast_install, which is unacceptable.
10330 # Some rework will be needed to allow for fast_install
10331 # before this can be enabled.
10332 hardcode_into_libs=yes
10333
10334 # Append ld.so.conf contents to the search path
10335 if test -f /etc/ld.so.conf; then
718a6fd8 10336 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
ce2cded5
L
10337 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10338 fi
10339
10340 # We used to test for /lib/ld.so.1 and disable shared libraries on
10341 # powerpc, because MkLinux only supported shared libraries with the
10342 # GNU dynamic linker. Since this was broken with cross compilers,
10343 # most powerpc-linux boxes support dynamic linking these days and
10344 # people can always --disable-shared, the test was removed, and we
10345 # assume the GNU/Linux dynamic linker is in use.
10346 dynamic_linker='GNU/Linux ld.so'
10347 ;;
10348
10349netbsd*)
10350 version_type=sunos
10351 need_lib_prefix=no
10352 need_version=no
10353 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10355 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10356 dynamic_linker='NetBSD (a.out) ld.so'
10357 else
10358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10359 soname_spec='${libname}${release}${shared_ext}$major'
10360 dynamic_linker='NetBSD ld.elf_so'
10361 fi
10362 shlibpath_var=LD_LIBRARY_PATH
10363 shlibpath_overrides_runpath=yes
10364 hardcode_into_libs=yes
10365 ;;
10366
10367newsos6)
10368 version_type=linux
10369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10370 shlibpath_var=LD_LIBRARY_PATH
10371 shlibpath_overrides_runpath=yes
10372 ;;
10373
10374*nto* | *qnx*)
10375 version_type=qnx
10376 need_lib_prefix=no
10377 need_version=no
10378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10379 soname_spec='${libname}${release}${shared_ext}$major'
10380 shlibpath_var=LD_LIBRARY_PATH
10381 shlibpath_overrides_runpath=no
10382 hardcode_into_libs=yes
10383 dynamic_linker='ldqnx.so'
10384 ;;
10385
10386openbsd*)
10387 version_type=sunos
10388 sys_lib_dlsearch_path_spec="/usr/lib"
10389 need_lib_prefix=no
10390 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10391 case $host_os in
10392 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10393 *) need_version=no ;;
10394 esac
10395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10396 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10397 shlibpath_var=LD_LIBRARY_PATH
10398 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10399 case $host_os in
10400 openbsd2.[89] | openbsd2.[89].*)
10401 shlibpath_overrides_runpath=no
10402 ;;
10403 *)
10404 shlibpath_overrides_runpath=yes
10405 ;;
10406 esac
10407 else
10408 shlibpath_overrides_runpath=yes
10409 fi
10410 ;;
10411
10412os2*)
10413 libname_spec='$name'
10414 shrext_cmds=".dll"
10415 need_lib_prefix=no
10416 library_names_spec='$libname${shared_ext} $libname.a'
10417 dynamic_linker='OS/2 ld.exe'
10418 shlibpath_var=LIBPATH
10419 ;;
10420
10421osf3* | osf4* | osf5*)
10422 version_type=osf
10423 need_lib_prefix=no
10424 need_version=no
10425 soname_spec='${libname}${release}${shared_ext}$major'
10426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10427 shlibpath_var=LD_LIBRARY_PATH
10428 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10429 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10430 ;;
10431
10432rdos*)
10433 dynamic_linker=no
10434 ;;
10435
10436solaris*)
10437 version_type=linux
10438 need_lib_prefix=no
10439 need_version=no
10440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10441 soname_spec='${libname}${release}${shared_ext}$major'
10442 shlibpath_var=LD_LIBRARY_PATH
10443 shlibpath_overrides_runpath=yes
10444 hardcode_into_libs=yes
10445 # ldd complains unless libraries are executable
10446 postinstall_cmds='chmod +x $lib'
10447 ;;
10448
10449sunos4*)
10450 version_type=sunos
10451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10452 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10453 shlibpath_var=LD_LIBRARY_PATH
10454 shlibpath_overrides_runpath=yes
10455 if test "$with_gnu_ld" = yes; then
10456 need_lib_prefix=no
10457 fi
10458 need_version=yes
10459 ;;
10460
10461sysv4 | sysv4.3*)
10462 version_type=linux
10463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10464 soname_spec='${libname}${release}${shared_ext}$major'
10465 shlibpath_var=LD_LIBRARY_PATH
10466 case $host_vendor in
10467 sni)
10468 shlibpath_overrides_runpath=no
10469 need_lib_prefix=no
10470 runpath_var=LD_RUN_PATH
10471 ;;
10472 siemens)
10473 need_lib_prefix=no
10474 ;;
10475 motorola)
10476 need_lib_prefix=no
10477 need_version=no
10478 shlibpath_overrides_runpath=no
10479 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10480 ;;
10481 esac
10482 ;;
10483
10484sysv4*MP*)
10485 if test -d /usr/nec ;then
10486 version_type=linux
10487 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10488 soname_spec='$libname${shared_ext}.$major'
10489 shlibpath_var=LD_LIBRARY_PATH
10490 fi
10491 ;;
10492
10493sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10494 version_type=freebsd-elf
10495 need_lib_prefix=no
10496 need_version=no
10497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10498 soname_spec='${libname}${release}${shared_ext}$major'
10499 shlibpath_var=LD_LIBRARY_PATH
10500 shlibpath_overrides_runpath=yes
10501 hardcode_into_libs=yes
10502 if test "$with_gnu_ld" = yes; then
10503 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10504 else
10505 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10506 case $host_os in
10507 sco3.2v5*)
10508 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10509 ;;
10510 esac
10511 fi
10512 sys_lib_dlsearch_path_spec='/usr/lib'
10513 ;;
10514
10515tpf*)
10516 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10517 version_type=linux
10518 need_lib_prefix=no
10519 need_version=no
718a6fd8 10520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
ce2cded5
L
10521 shlibpath_var=LD_LIBRARY_PATH
10522 shlibpath_overrides_runpath=no
10523 hardcode_into_libs=yes
10524 ;;
d7040cdb 10525
ce2cded5
L
10526uts4*)
10527 version_type=linux
10528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10529 soname_spec='${libname}${release}${shared_ext}$major'
10530 shlibpath_var=LD_LIBRARY_PATH
10531 ;;
d7040cdb 10532
ce2cded5
L
10533*)
10534 dynamic_linker=no
10535 ;;
10536esac
10537echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10538echo "${ECHO_T}$dynamic_linker" >&6
10539test "$dynamic_linker" = no && can_build_shared=no
10540
10541variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10542if test "$GCC" = yes; then
10543 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
d7040cdb 10544fi
d7040cdb 10545
718a6fd8
SE
10546if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10547 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10548fi
10549if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10550 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10551fi
10552
d7040cdb 10553
d7040cdb
SE
10554
10555
d7040cdb
SE
10556
10557
d7040cdb
SE
10558
10559
d7040cdb
SE
10560
10561
d7040cdb
SE
10562
10563
d7040cdb 10564
d7040cdb 10565
d7040cdb 10566
d7040cdb 10567
d7040cdb 10568
d7040cdb 10569
d7040cdb 10570
d7040cdb 10571
d7040cdb 10572
d7040cdb 10573
d7040cdb 10574
d7040cdb 10575
d7040cdb 10576
d7040cdb 10577
d7040cdb
SE
10578
10579
d7040cdb 10580
d7040cdb 10581
d7040cdb 10582
d7040cdb 10583
d7040cdb 10584
d7040cdb 10585
d7040cdb 10586
d7040cdb 10587
d7040cdb 10588
d7040cdb
SE
10589
10590
d7040cdb 10591
d7040cdb 10592
d7040cdb 10593
d7040cdb
SE
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
d7040cdb
SE
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
d7040cdb 10623
d7040cdb 10624
d7040cdb 10625
d7040cdb 10626
d7040cdb
SE
10627
10628
10629
10630
ce2cded5
L
10631
10632
10633
10634
10635
10636
10637
10638
10639 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10640echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10641hardcode_action=
10642if test -n "$hardcode_libdir_flag_spec" ||
10643 test -n "$runpath_var" ||
10644 test "X$hardcode_automatic" = "Xyes" ; then
10645
10646 # We can hardcode non-existent directories.
10647 if test "$hardcode_direct" != no &&
10648 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10649 # have to relink, otherwise we might link with an installed library
10650 # when we should be linking with a yet-to-be-installed one
10651 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10652 test "$hardcode_minus_L" != no; then
10653 # Linking always hardcodes the temporary library directory.
10654 hardcode_action=relink
10655 else
10656 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10657 hardcode_action=immediate
10658 fi
10659else
10660 # We cannot hardcode anything, or else we can only hardcode existing
10661 # directories.
10662 hardcode_action=unsupported
10663fi
10664echo "$as_me:$LINENO: result: $hardcode_action" >&5
10665echo "${ECHO_T}$hardcode_action" >&6
10666
10667if test "$hardcode_action" = relink ||
10668 test "$inherit_rpath" = yes; then
10669 # Fast installation is not supported
10670 enable_fast_install=no
10671elif test "$shlibpath_overrides_runpath" = yes ||
10672 test "$enable_shared" = no; then
10673 # Fast installation is not necessary
10674 enable_fast_install=needless
d7040cdb 10675fi
d7040cdb 10676
d7040cdb
SE
10677
10678
10679
10680
10681
ce2cded5
L
10682 if test "x$enable_dlopen" != xyes; then
10683 enable_dlopen=unknown
10684 enable_dlopen_self=unknown
10685 enable_dlopen_self_static=unknown
10686else
10687 lt_cv_dlopen=no
10688 lt_cv_dlopen_libs=
10689
10690 case $host_os in
10691 beos*)
10692 lt_cv_dlopen="load_add_on"
10693 lt_cv_dlopen_libs=
10694 lt_cv_dlopen_self=yes
10695 ;;
d7040cdb 10696
718a6fd8 10697 mingw* | pw32* | cegcc*)
ce2cded5
L
10698 lt_cv_dlopen="LoadLibrary"
10699 lt_cv_dlopen_libs=
10700 ;;
d7040cdb 10701
ce2cded5
L
10702 cygwin*)
10703 lt_cv_dlopen="dlopen"
10704 lt_cv_dlopen_libs=
10705 ;;
d7040cdb 10706
ce2cded5
L
10707 darwin*)
10708 # if libdl is installed we need to link against it
10709 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10710echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10711if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10712 echo $ECHO_N "(cached) $ECHO_C" >&6
10713else
10714 ac_check_lib_save_LIBS=$LIBS
10715LIBS="-ldl $LIBS"
10716cat >conftest.$ac_ext <<_ACEOF
10717/* confdefs.h. */
10718_ACEOF
10719cat confdefs.h >>conftest.$ac_ext
10720cat >>conftest.$ac_ext <<_ACEOF
10721/* end confdefs.h. */
d7040cdb 10722
ce2cded5
L
10723/* Override any gcc2 internal prototype to avoid an error. */
10724#ifdef __cplusplus
10725extern "C"
10726#endif
10727/* We use char because int might match the return type of a gcc2
10728 builtin and then its argument prototype would still apply. */
10729char dlopen ();
10730int
10731main ()
10732{
10733dlopen ();
10734 ;
10735 return 0;
10736}
10737_ACEOF
10738rm -f conftest.$ac_objext conftest$ac_exeext
10739if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10740 (eval $ac_link) 2>conftest.er1
10741 ac_status=$?
10742 grep -v '^ *+' conftest.er1 >conftest.err
10743 rm -f conftest.er1
10744 cat conftest.err >&5
10745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10746 (exit $ac_status); } &&
10747 { ac_try='test -z "$ac_c_werror_flag"
10748 || test ! -s conftest.err'
10749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10750 (eval $ac_try) 2>&5
10751 ac_status=$?
10752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10753 (exit $ac_status); }; } &&
10754 { ac_try='test -s conftest$ac_exeext'
10755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10756 (eval $ac_try) 2>&5
10757 ac_status=$?
10758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10759 (exit $ac_status); }; }; then
10760 ac_cv_lib_dl_dlopen=yes
10761else
10762 echo "$as_me: failed program was:" >&5
10763sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 10764
ce2cded5
L
10765ac_cv_lib_dl_dlopen=no
10766fi
10767rm -f conftest.err conftest.$ac_objext \
10768 conftest$ac_exeext conftest.$ac_ext
10769LIBS=$ac_check_lib_save_LIBS
10770fi
10771echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10772echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10773if test $ac_cv_lib_dl_dlopen = yes; then
10774 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10775else
d7040cdb 10776
ce2cded5
L
10777 lt_cv_dlopen="dyld"
10778 lt_cv_dlopen_libs=
10779 lt_cv_dlopen_self=yes
d7040cdb 10780
ce2cded5 10781fi
d7040cdb 10782
ce2cded5 10783 ;;
d7040cdb 10784
ce2cded5
L
10785 *)
10786 echo "$as_me:$LINENO: checking for shl_load" >&5
10787echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10788if test "${ac_cv_func_shl_load+set}" = set; then
10789 echo $ECHO_N "(cached) $ECHO_C" >&6
10790else
10791 cat >conftest.$ac_ext <<_ACEOF
10792/* confdefs.h. */
10793_ACEOF
10794cat confdefs.h >>conftest.$ac_ext
10795cat >>conftest.$ac_ext <<_ACEOF
10796/* end confdefs.h. */
10797/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10798 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10799#define shl_load innocuous_shl_load
d7040cdb 10800
ce2cded5
L
10801/* System header to define __stub macros and hopefully few prototypes,
10802 which can conflict with char shl_load (); below.
10803 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10804 <limits.h> exists even on freestanding compilers. */
d7040cdb 10805
ce2cded5
L
10806#ifdef __STDC__
10807# include <limits.h>
10808#else
10809# include <assert.h>
10810#endif
d7040cdb 10811
ce2cded5 10812#undef shl_load
d7040cdb 10813
ce2cded5
L
10814/* Override any gcc2 internal prototype to avoid an error. */
10815#ifdef __cplusplus
10816extern "C"
10817{
10818#endif
10819/* We use char because int might match the return type of a gcc2
10820 builtin and then its argument prototype would still apply. */
10821char shl_load ();
10822/* The GNU C library defines this for functions which it implements
10823 to always fail with ENOSYS. Some functions are actually named
10824 something starting with __ and the normal name is an alias. */
10825#if defined (__stub_shl_load) || defined (__stub___shl_load)
10826choke me
10827#else
10828char (*f) () = shl_load;
10829#endif
10830#ifdef __cplusplus
10831}
10832#endif
d7040cdb 10833
ce2cded5
L
10834int
10835main ()
10836{
10837return f != shl_load;
10838 ;
10839 return 0;
10840}
10841_ACEOF
10842rm -f conftest.$ac_objext conftest$ac_exeext
10843if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10844 (eval $ac_link) 2>conftest.er1
10845 ac_status=$?
10846 grep -v '^ *+' conftest.er1 >conftest.err
10847 rm -f conftest.er1
10848 cat conftest.err >&5
10849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850 (exit $ac_status); } &&
10851 { ac_try='test -z "$ac_c_werror_flag"
10852 || test ! -s conftest.err'
10853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10854 (eval $ac_try) 2>&5
10855 ac_status=$?
10856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857 (exit $ac_status); }; } &&
10858 { ac_try='test -s conftest$ac_exeext'
10859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10860 (eval $ac_try) 2>&5
10861 ac_status=$?
10862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863 (exit $ac_status); }; }; then
10864 ac_cv_func_shl_load=yes
10865else
10866 echo "$as_me: failed program was:" >&5
10867sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 10868
ce2cded5 10869ac_cv_func_shl_load=no
d7040cdb 10870fi
ce2cded5
L
10871rm -f conftest.err conftest.$ac_objext \
10872 conftest$ac_exeext conftest.$ac_ext
10873fi
10874echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10875echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10876if test $ac_cv_func_shl_load = yes; then
10877 lt_cv_dlopen="shl_load"
10878else
10879 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10880echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10881if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10882 echo $ECHO_N "(cached) $ECHO_C" >&6
10883else
10884 ac_check_lib_save_LIBS=$LIBS
10885LIBS="-ldld $LIBS"
10886cat >conftest.$ac_ext <<_ACEOF
10887/* confdefs.h. */
10888_ACEOF
10889cat confdefs.h >>conftest.$ac_ext
10890cat >>conftest.$ac_ext <<_ACEOF
10891/* end confdefs.h. */
d7040cdb 10892
ce2cded5
L
10893/* Override any gcc2 internal prototype to avoid an error. */
10894#ifdef __cplusplus
10895extern "C"
10896#endif
10897/* We use char because int might match the return type of a gcc2
10898 builtin and then its argument prototype would still apply. */
10899char shl_load ();
10900int
10901main ()
10902{
10903shl_load ();
10904 ;
10905 return 0;
10906}
d7040cdb 10907_ACEOF
ce2cded5
L
10908rm -f conftest.$ac_objext conftest$ac_exeext
10909if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10910 (eval $ac_link) 2>conftest.er1
10911 ac_status=$?
10912 grep -v '^ *+' conftest.er1 >conftest.err
10913 rm -f conftest.er1
10914 cat conftest.err >&5
10915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10916 (exit $ac_status); } &&
10917 { ac_try='test -z "$ac_c_werror_flag"
10918 || test ! -s conftest.err'
10919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10920 (eval $ac_try) 2>&5
10921 ac_status=$?
10922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10923 (exit $ac_status); }; } &&
10924 { ac_try='test -s conftest$ac_exeext'
10925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10926 (eval $ac_try) 2>&5
10927 ac_status=$?
10928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929 (exit $ac_status); }; }; then
10930 ac_cv_lib_dld_shl_load=yes
10931else
10932 echo "$as_me: failed program was:" >&5
10933sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 10934
ce2cded5 10935ac_cv_lib_dld_shl_load=no
d7040cdb 10936fi
ce2cded5
L
10937rm -f conftest.err conftest.$ac_objext \
10938 conftest$ac_exeext conftest.$ac_ext
10939LIBS=$ac_check_lib_save_LIBS
10940fi
10941echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10942echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10943if test $ac_cv_lib_dld_shl_load = yes; then
718a6fd8 10944 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
ce2cded5
L
10945else
10946 echo "$as_me:$LINENO: checking for dlopen" >&5
10947echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10948if test "${ac_cv_func_dlopen+set}" = set; then
10949 echo $ECHO_N "(cached) $ECHO_C" >&6
10950else
10951 cat >conftest.$ac_ext <<_ACEOF
10952/* confdefs.h. */
10953_ACEOF
10954cat confdefs.h >>conftest.$ac_ext
10955cat >>conftest.$ac_ext <<_ACEOF
10956/* end confdefs.h. */
10957/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10958 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10959#define dlopen innocuous_dlopen
d7040cdb 10960
ce2cded5
L
10961/* System header to define __stub macros and hopefully few prototypes,
10962 which can conflict with char dlopen (); below.
10963 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10964 <limits.h> exists even on freestanding compilers. */
d7040cdb 10965
ce2cded5
L
10966#ifdef __STDC__
10967# include <limits.h>
10968#else
10969# include <assert.h>
10970#endif
d7040cdb 10971
ce2cded5 10972#undef dlopen
d7040cdb 10973
ce2cded5
L
10974/* Override any gcc2 internal prototype to avoid an error. */
10975#ifdef __cplusplus
10976extern "C"
10977{
10978#endif
10979/* We use char because int might match the return type of a gcc2
10980 builtin and then its argument prototype would still apply. */
10981char dlopen ();
10982/* The GNU C library defines this for functions which it implements
10983 to always fail with ENOSYS. Some functions are actually named
10984 something starting with __ and the normal name is an alias. */
10985#if defined (__stub_dlopen) || defined (__stub___dlopen)
10986choke me
10987#else
10988char (*f) () = dlopen;
10989#endif
10990#ifdef __cplusplus
10991}
10992#endif
d7040cdb 10993
ce2cded5
L
10994int
10995main ()
10996{
10997return f != dlopen;
10998 ;
10999 return 0;
11000}
11001_ACEOF
11002rm -f conftest.$ac_objext conftest$ac_exeext
11003if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11004 (eval $ac_link) 2>conftest.er1
11005 ac_status=$?
11006 grep -v '^ *+' conftest.er1 >conftest.err
11007 rm -f conftest.er1
11008 cat conftest.err >&5
11009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11010 (exit $ac_status); } &&
11011 { ac_try='test -z "$ac_c_werror_flag"
11012 || test ! -s conftest.err'
11013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11014 (eval $ac_try) 2>&5
11015 ac_status=$?
11016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11017 (exit $ac_status); }; } &&
11018 { ac_try='test -s conftest$ac_exeext'
11019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11020 (eval $ac_try) 2>&5
11021 ac_status=$?
11022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11023 (exit $ac_status); }; }; then
11024 ac_cv_func_dlopen=yes
11025else
11026 echo "$as_me: failed program was:" >&5
11027sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 11028
ce2cded5 11029ac_cv_func_dlopen=no
d7040cdb 11030fi
ce2cded5
L
11031rm -f conftest.err conftest.$ac_objext \
11032 conftest$ac_exeext conftest.$ac_ext
d7040cdb 11033fi
ce2cded5
L
11034echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11035echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11036if test $ac_cv_func_dlopen = yes; then
11037 lt_cv_dlopen="dlopen"
11038else
11039 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11040echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11041if test "${ac_cv_lib_dl_dlopen+set}" = set; then
d7040cdb
SE
11042 echo $ECHO_N "(cached) $ECHO_C" >&6
11043else
ce2cded5
L
11044 ac_check_lib_save_LIBS=$LIBS
11045LIBS="-ldl $LIBS"
d7040cdb
SE
11046cat >conftest.$ac_ext <<_ACEOF
11047/* confdefs.h. */
11048_ACEOF
11049cat confdefs.h >>conftest.$ac_ext
11050cat >>conftest.$ac_ext <<_ACEOF
11051/* end confdefs.h. */
d7040cdb 11052
ce2cded5
L
11053/* Override any gcc2 internal prototype to avoid an error. */
11054#ifdef __cplusplus
11055extern "C"
11056#endif
11057/* We use char because int might match the return type of a gcc2
11058 builtin and then its argument prototype would still apply. */
11059char dlopen ();
d7040cdb
SE
11060int
11061main ()
11062{
ce2cded5 11063dlopen ();
d7040cdb
SE
11064 ;
11065 return 0;
11066}
11067_ACEOF
ce2cded5
L
11068rm -f conftest.$ac_objext conftest$ac_exeext
11069if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11070 (eval $ac_link) 2>conftest.er1
d7040cdb
SE
11071 ac_status=$?
11072 grep -v '^ *+' conftest.er1 >conftest.err
11073 rm -f conftest.er1
11074 cat conftest.err >&5
11075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076 (exit $ac_status); } &&
11077 { ac_try='test -z "$ac_c_werror_flag"
11078 || test ! -s conftest.err'
11079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11080 (eval $ac_try) 2>&5
11081 ac_status=$?
11082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11083 (exit $ac_status); }; } &&
ce2cded5 11084 { ac_try='test -s conftest$ac_exeext'
d7040cdb
SE
11085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11086 (eval $ac_try) 2>&5
11087 ac_status=$?
11088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11089 (exit $ac_status); }; }; then
ce2cded5
L
11090 ac_cv_lib_dl_dlopen=yes
11091else
11092 echo "$as_me: failed program was:" >&5
11093sed 's/^/| /' conftest.$ac_ext >&5
11094
11095ac_cv_lib_dl_dlopen=no
11096fi
11097rm -f conftest.err conftest.$ac_objext \
11098 conftest$ac_exeext conftest.$ac_ext
11099LIBS=$ac_check_lib_save_LIBS
11100fi
11101echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11102echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11103if test $ac_cv_lib_dl_dlopen = yes; then
11104 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11105else
11106 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11107echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11108if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11109 echo $ECHO_N "(cached) $ECHO_C" >&6
11110else
11111 ac_check_lib_save_LIBS=$LIBS
11112LIBS="-lsvld $LIBS"
d7040cdb
SE
11113cat >conftest.$ac_ext <<_ACEOF
11114/* confdefs.h. */
11115_ACEOF
11116cat confdefs.h >>conftest.$ac_ext
11117cat >>conftest.$ac_ext <<_ACEOF
11118/* end confdefs.h. */
d7040cdb 11119
ce2cded5
L
11120/* Override any gcc2 internal prototype to avoid an error. */
11121#ifdef __cplusplus
11122extern "C"
11123#endif
11124/* We use char because int might match the return type of a gcc2
11125 builtin and then its argument prototype would still apply. */
11126char dlopen ();
d7040cdb
SE
11127int
11128main ()
11129{
ce2cded5 11130dlopen ();
d7040cdb
SE
11131 ;
11132 return 0;
11133}
11134_ACEOF
ce2cded5
L
11135rm -f conftest.$ac_objext conftest$ac_exeext
11136if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11137 (eval $ac_link) 2>conftest.er1
d7040cdb
SE
11138 ac_status=$?
11139 grep -v '^ *+' conftest.er1 >conftest.err
11140 rm -f conftest.er1
11141 cat conftest.err >&5
11142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11143 (exit $ac_status); } &&
11144 { ac_try='test -z "$ac_c_werror_flag"
11145 || test ! -s conftest.err'
11146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11147 (eval $ac_try) 2>&5
11148 ac_status=$?
11149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11150 (exit $ac_status); }; } &&
ce2cded5 11151 { ac_try='test -s conftest$ac_exeext'
d7040cdb
SE
11152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11153 (eval $ac_try) 2>&5
11154 ac_status=$?
11155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11156 (exit $ac_status); }; }; then
ce2cded5 11157 ac_cv_lib_svld_dlopen=yes
d7040cdb
SE
11158else
11159 echo "$as_me: failed program was:" >&5
11160sed 's/^/| /' conftest.$ac_ext >&5
11161
ce2cded5 11162ac_cv_lib_svld_dlopen=no
d7040cdb 11163fi
ce2cded5
L
11164rm -f conftest.err conftest.$ac_objext \
11165 conftest$ac_exeext conftest.$ac_ext
11166LIBS=$ac_check_lib_save_LIBS
11167fi
11168echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11169echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11170if test $ac_cv_lib_svld_dlopen = yes; then
11171 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11172else
11173 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11174echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11175if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11176 echo $ECHO_N "(cached) $ECHO_C" >&6
d7040cdb 11177else
ce2cded5
L
11178 ac_check_lib_save_LIBS=$LIBS
11179LIBS="-ldld $LIBS"
11180cat >conftest.$ac_ext <<_ACEOF
d7040cdb
SE
11181/* confdefs.h. */
11182_ACEOF
11183cat confdefs.h >>conftest.$ac_ext
11184cat >>conftest.$ac_ext <<_ACEOF
11185/* end confdefs.h. */
ce2cded5
L
11186
11187/* Override any gcc2 internal prototype to avoid an error. */
11188#ifdef __cplusplus
11189extern "C"
11190#endif
11191/* We use char because int might match the return type of a gcc2
11192 builtin and then its argument prototype would still apply. */
11193char dld_link ();
d7040cdb
SE
11194int
11195main ()
11196{
ce2cded5 11197dld_link ();
d7040cdb
SE
11198 ;
11199 return 0;
11200}
11201_ACEOF
ce2cded5
L
11202rm -f conftest.$ac_objext conftest$ac_exeext
11203if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11204 (eval $ac_link) 2>conftest.er1
d7040cdb
SE
11205 ac_status=$?
11206 grep -v '^ *+' conftest.er1 >conftest.err
11207 rm -f conftest.er1
11208 cat conftest.err >&5
11209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11210 (exit $ac_status); } &&
11211 { ac_try='test -z "$ac_c_werror_flag"
11212 || test ! -s conftest.err'
11213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11214 (eval $ac_try) 2>&5
11215 ac_status=$?
11216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11217 (exit $ac_status); }; } &&
ce2cded5 11218 { ac_try='test -s conftest$ac_exeext'
d7040cdb
SE
11219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11220 (eval $ac_try) 2>&5
11221 ac_status=$?
11222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11223 (exit $ac_status); }; }; then
ce2cded5
L
11224 ac_cv_lib_dld_dld_link=yes
11225else
11226 echo "$as_me: failed program was:" >&5
11227sed 's/^/| /' conftest.$ac_ext >&5
11228
11229ac_cv_lib_dld_dld_link=no
d7040cdb 11230fi
ce2cded5
L
11231rm -f conftest.err conftest.$ac_objext \
11232 conftest$ac_exeext conftest.$ac_ext
11233LIBS=$ac_check_lib_save_LIBS
11234fi
11235echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11236echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11237if test $ac_cv_lib_dld_dld_link = yes; then
718a6fd8 11238 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
ce2cded5
L
11239fi
11240
11241
11242fi
11243
11244
11245fi
11246
11247
11248fi
11249
11250
11251fi
11252
11253
11254fi
11255
11256 ;;
11257 esac
11258
11259 if test "x$lt_cv_dlopen" != xno; then
11260 enable_dlopen=yes
d7040cdb 11261 else
ce2cded5 11262 enable_dlopen=no
d7040cdb 11263 fi
ce2cded5
L
11264
11265 case $lt_cv_dlopen in
11266 dlopen)
11267 save_CPPFLAGS="$CPPFLAGS"
11268 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11269
11270 save_LDFLAGS="$LDFLAGS"
11271 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11272
11273 save_LIBS="$LIBS"
11274 LIBS="$lt_cv_dlopen_libs $LIBS"
11275
11276 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11277echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11278if test "${lt_cv_dlopen_self+set}" = set; then
11279 echo $ECHO_N "(cached) $ECHO_C" >&6
d7040cdb 11280else
ce2cded5
L
11281 if test "$cross_compiling" = yes; then :
11282 lt_cv_dlopen_self=cross
11283else
11284 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11285 lt_status=$lt_dlunknown
11286 cat > conftest.$ac_ext <<_LT_EOF
39144654 11287#line 11287 "configure"
ce2cded5
L
11288#include "confdefs.h"
11289
11290#if HAVE_DLFCN_H
11291#include <dlfcn.h>
11292#endif
11293
11294#include <stdio.h>
11295
11296#ifdef RTLD_GLOBAL
11297# define LT_DLGLOBAL RTLD_GLOBAL
11298#else
11299# ifdef DL_GLOBAL
11300# define LT_DLGLOBAL DL_GLOBAL
11301# else
11302# define LT_DLGLOBAL 0
11303# endif
11304#endif
11305
11306/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11307 find out it does not work in some platform. */
11308#ifndef LT_DLLAZY_OR_NOW
11309# ifdef RTLD_LAZY
11310# define LT_DLLAZY_OR_NOW RTLD_LAZY
11311# else
11312# ifdef DL_LAZY
11313# define LT_DLLAZY_OR_NOW DL_LAZY
11314# else
11315# ifdef RTLD_NOW
11316# define LT_DLLAZY_OR_NOW RTLD_NOW
11317# else
11318# ifdef DL_NOW
11319# define LT_DLLAZY_OR_NOW DL_NOW
11320# else
11321# define LT_DLLAZY_OR_NOW 0
11322# endif
11323# endif
11324# endif
11325# endif
11326#endif
11327
ce2cded5
L
11328void fnord() { int i=42;}
11329int main ()
11330{
11331 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11332 int status = $lt_dlunknown;
11333
11334 if (self)
11335 {
11336 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11337 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11338 /* dlclose (self); */
11339 }
11340 else
11341 puts (dlerror ());
11342
718a6fd8 11343 return status;
ce2cded5
L
11344}
11345_LT_EOF
11346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11347 (eval $ac_link) 2>&5
11348 ac_status=$?
11349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11351 (./conftest; exit; ) >&5 2>/dev/null
11352 lt_status=$?
11353 case x$lt_status in
11354 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11355 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11356 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11357 esac
11358 else :
11359 # compilation failed
11360 lt_cv_dlopen_self=no
11361 fi
11362fi
11363rm -fr conftest*
11364
d7040cdb
SE
11365
11366fi
ce2cded5
L
11367echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11368echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11369
11370 if test "x$lt_cv_dlopen_self" = xyes; then
11371 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11372 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11373echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11374if test "${lt_cv_dlopen_self_static+set}" = set; then
11375 echo $ECHO_N "(cached) $ECHO_C" >&6
d7040cdb 11376else
ce2cded5
L
11377 if test "$cross_compiling" = yes; then :
11378 lt_cv_dlopen_self_static=cross
11379else
11380 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11381 lt_status=$lt_dlunknown
11382 cat > conftest.$ac_ext <<_LT_EOF
39144654 11383#line 11383 "configure"
ce2cded5
L
11384#include "confdefs.h"
11385
11386#if HAVE_DLFCN_H
11387#include <dlfcn.h>
11388#endif
11389
11390#include <stdio.h>
11391
11392#ifdef RTLD_GLOBAL
11393# define LT_DLGLOBAL RTLD_GLOBAL
11394#else
11395# ifdef DL_GLOBAL
11396# define LT_DLGLOBAL DL_GLOBAL
11397# else
11398# define LT_DLGLOBAL 0
11399# endif
11400#endif
11401
11402/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11403 find out it does not work in some platform. */
11404#ifndef LT_DLLAZY_OR_NOW
11405# ifdef RTLD_LAZY
11406# define LT_DLLAZY_OR_NOW RTLD_LAZY
11407# else
11408# ifdef DL_LAZY
11409# define LT_DLLAZY_OR_NOW DL_LAZY
11410# else
11411# ifdef RTLD_NOW
11412# define LT_DLLAZY_OR_NOW RTLD_NOW
11413# else
11414# ifdef DL_NOW
11415# define LT_DLLAZY_OR_NOW DL_NOW
11416# else
11417# define LT_DLLAZY_OR_NOW 0
11418# endif
11419# endif
11420# endif
11421# endif
11422#endif
11423
ce2cded5
L
11424void fnord() { int i=42;}
11425int main ()
d7040cdb 11426{
ce2cded5
L
11427 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11428 int status = $lt_dlunknown;
11429
11430 if (self)
11431 {
11432 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11433 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11434 /* dlclose (self); */
11435 }
11436 else
11437 puts (dlerror ());
11438
718a6fd8 11439 return status;
d7040cdb 11440}
ce2cded5
L
11441_LT_EOF
11442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d7040cdb
SE
11443 (eval $ac_link) 2>&5
11444 ac_status=$?
11445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
11446 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11447 (./conftest; exit; ) >&5 2>/dev/null
11448 lt_status=$?
11449 case x$lt_status in
11450 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11451 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11452 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11453 esac
11454 else :
11455 # compilation failed
11456 lt_cv_dlopen_self_static=no
11457 fi
d7040cdb 11458fi
ce2cded5
L
11459rm -fr conftest*
11460
11461
d7040cdb 11462fi
ce2cded5
L
11463echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11464echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11465 fi
11466
11467 CPPFLAGS="$save_CPPFLAGS"
11468 LDFLAGS="$save_LDFLAGS"
11469 LIBS="$save_LIBS"
11470 ;;
11471 esac
11472
11473 case $lt_cv_dlopen_self in
11474 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11475 *) enable_dlopen_self=unknown ;;
11476 esac
11477
11478 case $lt_cv_dlopen_self_static in
11479 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11480 *) enable_dlopen_self_static=unknown ;;
11481 esac
d7040cdb 11482fi
d7040cdb 11483
d7040cdb
SE
11484
11485
d7040cdb 11486
d7040cdb 11487
ce2cded5
L
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500striplib=
11501old_striplib=
11502echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11503echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11504if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11505 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11506 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11507 echo "$as_me:$LINENO: result: yes" >&5
11508echo "${ECHO_T}yes" >&6
11509else
11510# FIXME - insert some real tests, host_os isn't really good enough
11511 case $host_os in
11512 darwin*)
11513 if test -n "$STRIP" ; then
11514 striplib="$STRIP -x"
11515 old_striplib="$STRIP -S"
11516 echo "$as_me:$LINENO: result: yes" >&5
11517echo "${ECHO_T}yes" >&6
11518 else
11519 echo "$as_me:$LINENO: result: no" >&5
11520echo "${ECHO_T}no" >&6
d7040cdb 11521 fi
ce2cded5
L
11522 ;;
11523 *)
11524 echo "$as_me:$LINENO: result: no" >&5
11525echo "${ECHO_T}no" >&6
11526 ;;
d7040cdb 11527 esac
d7040cdb
SE
11528fi
11529
d7040cdb 11530
d7040cdb 11531
d7040cdb 11532
d7040cdb 11533
d7040cdb 11534
d7040cdb 11535
d7040cdb 11536
d7040cdb 11537
d7040cdb 11538
d7040cdb 11539
d7040cdb 11540
ce2cded5
L
11541 # Report which library types will actually be built
11542 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11543echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11544 echo "$as_me:$LINENO: result: $can_build_shared" >&5
11545echo "${ECHO_T}$can_build_shared" >&6
d7040cdb 11546
ce2cded5
L
11547 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11548echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11549 test "$can_build_shared" = "no" && enable_shared=no
d7040cdb 11550
ce2cded5
L
11551 # On AIX, shared libraries and static libraries use the same namespace, and
11552 # are all built from PIC.
11553 case $host_os in
11554 aix3*)
11555 test "$enable_shared" = yes && enable_static=no
11556 if test -n "$RANLIB"; then
11557 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11558 postinstall_cmds='$RANLIB $lib'
11559 fi
11560 ;;
d7040cdb 11561
50e7d84b 11562 aix[4-9]*)
ce2cded5
L
11563 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11564 test "$enable_shared" = yes && enable_static=no
11565 fi
11566 ;;
11567 esac
11568 echo "$as_me:$LINENO: result: $enable_shared" >&5
11569echo "${ECHO_T}$enable_shared" >&6
11570
11571 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11572echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11573 # Make sure either enable_shared or enable_static is yes.
11574 test "$enable_shared" = yes || enable_static=yes
11575 echo "$as_me:$LINENO: result: $enable_static" >&5
11576echo "${ECHO_T}$enable_static" >&6
d7040cdb 11577
d7040cdb 11578
d7040cdb 11579
d7040cdb 11580
ce2cded5
L
11581fi
11582ac_ext=c
11583ac_cpp='$CPP $CPPFLAGS'
11584ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11585ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11586ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 11587
ce2cded5 11588CC="$lt_save_CC"
d7040cdb 11589
d7040cdb 11590
d7040cdb 11591
d7040cdb 11592
d7040cdb 11593
d7040cdb 11594
d7040cdb 11595
d7040cdb 11596
d7040cdb 11597
d7040cdb
SE
11598
11599
d7040cdb
SE
11600
11601
ce2cded5 11602 ac_config_commands="$ac_config_commands libtool"
d7040cdb
SE
11603
11604
d7040cdb 11605
d7040cdb 11606
ce2cded5 11607# Only expand once:
d7040cdb 11608
d7040cdb 11609
d7040cdb 11610
ce2cded5
L
11611# Check whether --enable-targets or --disable-targets was given.
11612if test "${enable_targets+set}" = set; then
11613 enableval="$enable_targets"
11614 case "${enableval}" in
11615 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
11616echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
11617 { (exit 1); exit 1; }; }
11618 ;;
11619 no) enable_targets= ;;
11620 *) enable_targets=$enableval ;;
11621esac
11622fi;
11623# Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
11624if test "${enable_commonbfdlib+set}" = set; then
11625 enableval="$enable_commonbfdlib"
11626 case "${enableval}" in
11627 yes) commonbfdlib=true ;;
11628 no) commonbfdlib=false ;;
11629 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
11630echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
11631 { (exit 1); exit 1; }; } ;;
11632esac
11633fi;
11634ac_checking=yes
11635if grep '^RELEASE=y' ${srcdir}/../bfd/Makefile.am >/dev/null 2>/dev/null ; then
11636 ac_checking=
11637fi
11638# Check whether --enable-checking or --disable-checking was given.
11639if test "${enable_checking+set}" = set; then
11640 enableval="$enable_checking"
11641 case "${enableval}" in
11642 no|none) ac_checking= ;;
11643 *) ac_checking=yes ;;
11644esac
11645fi; if test x$ac_checking != x ; then
d7040cdb 11646
ce2cded5
L
11647cat >>confdefs.h <<\_ACEOF
11648#define ENABLE_CHECKING 1
11649_ACEOF
d7040cdb 11650
ce2cded5 11651fi
d7040cdb 11652
ce2cded5 11653using_cgen=no
d7040cdb 11654
d7040cdb 11655
ce2cded5 11656GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
d7040cdb 11657
ce2cded5
L
11658# Check whether --enable-werror or --disable-werror was given.
11659if test "${enable_werror+set}" = set; then
11660 enableval="$enable_werror"
11661 case "${enableval}" in
11662 yes | y) ERROR_ON_WARNING="yes" ;;
11663 no | n) ERROR_ON_WARNING="no" ;;
11664 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
11665echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
11666 { (exit 1); exit 1; }; } ;;
11667 esac
11668fi;
d7040cdb 11669
bb8541b9
L
11670# Enable -Wno-format by default when using gcc on mingw
11671case "${host}" in
11672 *-*-mingw32*)
11673 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11674 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
11675 fi
11676 ;;
11677 *) ;;
11678esac
11679
ce2cded5
L
11680# Enable -Werror by default when using gcc
11681if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11682 ERROR_ON_WARNING=yes
11683fi
11684
11685NO_WERROR=
11686if test "${ERROR_ON_WARNING}" = yes ; then
11687 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
11688 NO_WERROR="-Wno-error"
11689fi
11690
11691if test "${GCC}" = yes ; then
11692 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
11693fi
11694
11695# Check whether --enable-build-warnings or --disable-build-warnings was given.
11696if test "${enable_build_warnings+set}" = set; then
11697 enableval="$enable_build_warnings"
11698 case "${enableval}" in
11699 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
11700 no) if test "${GCC}" = yes ; then
11701 WARN_CFLAGS="-w"
11702 fi;;
11703 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11704 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
11705 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11706 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
11707 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
11708esac
11709fi;
d7040cdb 11710
ce2cded5
L
11711if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
11712 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
11713fi
d7040cdb 11714
d7040cdb 11715
d7040cdb 11716
d7040cdb 11717
d7040cdb 11718
ce2cded5
L
11719# Generate a header file
11720 ac_config_headers="$ac_config_headers config.h:config.in"
d7040cdb 11721
d7040cdb 11722
ce2cded5
L
11723# If we are on a DOS filesystem, we must use gdb.ini rather than
11724# .gdbinit.
11725case "${host}" in
11726 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-windows*)
11727 GDBINIT="gdb.ini"
11728 ac_config_files="$ac_config_files gdb.ini:gdbinit.in"
d7040cdb 11729
ce2cded5
L
11730 ;;
11731 *)
11732 GDBINIT=".gdbinit"
11733 ac_config_files="$ac_config_files .gdbinit:gdbinit.in"
d7040cdb 11734
ce2cded5
L
11735 ;;
11736esac
d7040cdb 11737
d7040cdb 11738
ce2cded5
L
11739#We need this for the host. BOUT header is in host order.
11740echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
11741echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
11742if test "${ac_cv_c_bigendian+set}" = set; then
11743 echo $ECHO_N "(cached) $ECHO_C" >&6
11744else
11745 # See if sys/param.h defines the BYTE_ORDER macro.
11746cat >conftest.$ac_ext <<_ACEOF
11747/* confdefs.h. */
11748_ACEOF
11749cat confdefs.h >>conftest.$ac_ext
11750cat >>conftest.$ac_ext <<_ACEOF
11751/* end confdefs.h. */
11752#include <sys/types.h>
11753#include <sys/param.h>
d7040cdb 11754
ce2cded5
L
11755int
11756main ()
11757{
11758#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
11759 bogus endian macros
11760#endif
d7040cdb 11761
ce2cded5
L
11762 ;
11763 return 0;
11764}
11765_ACEOF
11766rm -f conftest.$ac_objext
11767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11768 (eval $ac_compile) 2>conftest.er1
11769 ac_status=$?
11770 grep -v '^ *+' conftest.er1 >conftest.err
11771 rm -f conftest.er1
11772 cat conftest.err >&5
11773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774 (exit $ac_status); } &&
11775 { ac_try='test -z "$ac_c_werror_flag"
11776 || test ! -s conftest.err'
11777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11778 (eval $ac_try) 2>&5
11779 ac_status=$?
11780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781 (exit $ac_status); }; } &&
11782 { ac_try='test -s conftest.$ac_objext'
11783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11784 (eval $ac_try) 2>&5
11785 ac_status=$?
11786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11787 (exit $ac_status); }; }; then
11788 # It does; now see whether it defined to BIG_ENDIAN or not.
11789cat >conftest.$ac_ext <<_ACEOF
11790/* confdefs.h. */
11791_ACEOF
11792cat confdefs.h >>conftest.$ac_ext
11793cat >>conftest.$ac_ext <<_ACEOF
11794/* end confdefs.h. */
11795#include <sys/types.h>
11796#include <sys/param.h>
d7040cdb 11797
ce2cded5
L
11798int
11799main ()
11800{
11801#if BYTE_ORDER != BIG_ENDIAN
11802 not big endian
11803#endif
d7040cdb 11804
ce2cded5
L
11805 ;
11806 return 0;
11807}
11808_ACEOF
11809rm -f conftest.$ac_objext
11810if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11811 (eval $ac_compile) 2>conftest.er1
11812 ac_status=$?
11813 grep -v '^ *+' conftest.er1 >conftest.err
11814 rm -f conftest.er1
11815 cat conftest.err >&5
11816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11817 (exit $ac_status); } &&
11818 { ac_try='test -z "$ac_c_werror_flag"
11819 || test ! -s conftest.err'
11820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11821 (eval $ac_try) 2>&5
11822 ac_status=$?
11823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824 (exit $ac_status); }; } &&
11825 { ac_try='test -s conftest.$ac_objext'
11826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11827 (eval $ac_try) 2>&5
11828 ac_status=$?
11829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830 (exit $ac_status); }; }; then
11831 ac_cv_c_bigendian=yes
11832else
11833 echo "$as_me: failed program was:" >&5
11834sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 11835
ce2cded5
L
11836ac_cv_c_bigendian=no
11837fi
11838rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11839else
11840 echo "$as_me: failed program was:" >&5
11841sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 11842
ce2cded5
L
11843# It does not; compile a test program.
11844if test "$cross_compiling" = yes; then
11845 # try to guess the endianness by grepping values into an object file
11846 ac_cv_c_bigendian=unknown
11847 cat >conftest.$ac_ext <<_ACEOF
11848/* confdefs.h. */
11849_ACEOF
11850cat confdefs.h >>conftest.$ac_ext
11851cat >>conftest.$ac_ext <<_ACEOF
11852/* end confdefs.h. */
11853short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11854short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11855void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
11856short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11857short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11858void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
11859int
11860main ()
11861{
11862 _ascii (); _ebcdic ();
11863 ;
11864 return 0;
11865}
11866_ACEOF
11867rm -f conftest.$ac_objext
11868if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11869 (eval $ac_compile) 2>conftest.er1
11870 ac_status=$?
11871 grep -v '^ *+' conftest.er1 >conftest.err
11872 rm -f conftest.er1
11873 cat conftest.err >&5
11874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11875 (exit $ac_status); } &&
11876 { ac_try='test -z "$ac_c_werror_flag"
11877 || test ! -s conftest.err'
11878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11879 (eval $ac_try) 2>&5
11880 ac_status=$?
11881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882 (exit $ac_status); }; } &&
11883 { ac_try='test -s conftest.$ac_objext'
11884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11885 (eval $ac_try) 2>&5
11886 ac_status=$?
11887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11888 (exit $ac_status); }; }; then
11889 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
11890 ac_cv_c_bigendian=yes
d7040cdb 11891fi
ce2cded5
L
11892if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11893 if test "$ac_cv_c_bigendian" = unknown; then
11894 ac_cv_c_bigendian=no
11895 else
11896 # finding both strings is unlikely to happen, but who knows?
11897 ac_cv_c_bigendian=unknown
11898 fi
11899fi
11900else
11901 echo "$as_me: failed program was:" >&5
11902sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 11903
ce2cded5
L
11904fi
11905rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11906else
11907 cat >conftest.$ac_ext <<_ACEOF
11908/* confdefs.h. */
11909_ACEOF
11910cat confdefs.h >>conftest.$ac_ext
11911cat >>conftest.$ac_ext <<_ACEOF
11912/* end confdefs.h. */
11913int
11914main ()
11915{
11916 /* Are we little or big endian? From Harbison&Steele. */
11917 union
11918 {
11919 long l;
11920 char c[sizeof (long)];
11921 } u;
11922 u.l = 1;
11923 exit (u.c[sizeof (long) - 1] == 1);
11924}
d7040cdb 11925_ACEOF
ce2cded5
L
11926rm -f conftest$ac_exeext
11927if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11928 (eval $ac_link) 2>&5
11929 ac_status=$?
11930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11933 (eval $ac_try) 2>&5
11934 ac_status=$?
11935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11936 (exit $ac_status); }; }; then
11937 ac_cv_c_bigendian=no
11938else
11939 echo "$as_me: program exited with status $ac_status" >&5
11940echo "$as_me: failed program was:" >&5
11941sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 11942
ce2cded5
L
11943( exit $ac_status )
11944ac_cv_c_bigendian=yes
d7040cdb 11945fi
ce2cded5 11946rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d7040cdb 11947fi
d7040cdb 11948fi
ce2cded5
L
11949rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11950fi
11951echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
11952echo "${ECHO_T}$ac_cv_c_bigendian" >&6
11953case $ac_cv_c_bigendian in
11954 yes)
d7040cdb 11955
d7040cdb 11956cat >>confdefs.h <<\_ACEOF
ce2cded5 11957#define WORDS_BIGENDIAN 1
d7040cdb
SE
11958_ACEOF
11959 ;;
ce2cded5
L
11960 no)
11961 ;;
11962 *)
11963 { { echo "$as_me:$LINENO: error: unknown endianness
11964presetting ac_cv_c_bigendian=no (or yes) will help" >&5
11965echo "$as_me: error: unknown endianness
11966presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
11967 { (exit 1); exit 1; }; } ;;
d7040cdb
SE
11968esac
11969
d7040cdb 11970
ce2cded5 11971te_file=generic
d7040cdb 11972
ce2cded5
L
11973# Makefile target for installing gas in $(tooldir)/bin.
11974install_tooldir=install-exec-tooldir
d7040cdb 11975
ce2cded5
L
11976canon_targets=""
11977all_targets=no
11978if test -n "$enable_targets" ; then
11979 for t in `echo $enable_targets | sed 's/,/ /g'`; do
11980 if test $t = "all"; then
11981 all_targets=yes
11982 continue
11983 fi
11984 result=`$ac_config_sub $t 2>/dev/null`
11985 if test -n "$result" ; then
11986 canon_targets="$canon_targets $result"
11987# else
11988# # Permit "all", etc. We don't support it yet though.
11989# canon_targets="$canon_targets $t"
11990 fi
11991 done
11992 _gas_uniq_list="$canon_targets"
d7040cdb
SE
11993_gas_uniq_newlist=""
11994for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
11995 case $_gas_uniq_i in
11996 _gas_uniq_dummy) ;;
11997 *) case " $_gas_uniq_newlist " in
11998 *" $_gas_uniq_i "*) ;;
11999 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12000 esac ;;
12001 esac
12002done
ce2cded5 12003canon_targets=$_gas_uniq_newlist
d7040cdb 12004
ce2cded5
L
12005fi
12006
12007emulations=""
12008
12009for this_target in $target $canon_targets ; do
12010
12011 targ=${this_target}
12012 . ${srcdir}/configure.tgt
12013
12014 case ${target_cpu} in
12015 crisv32)
12016
12017cat >>confdefs.h <<_ACEOF
12018#define DEFAULT_CRIS_ARCH $arch
d7040cdb 12019_ACEOF
ce2cded5
L
12020
12021 ;;
12022 esac
12023
12024 if test ${this_target} = $target ; then
12025 target_cpu_type=${cpu_type}
12026 elif test ${target_cpu_type} != ${cpu_type} ; then
12027 continue
12028 fi
12029
12030 generic_target=${cpu_type}-${target_vendor}-${target_os}
12031 case ${generic_target} in
12032 i386-*-sco3.2v5*)
12033 if test ${this_target} = $target; then
12034
d7040cdb 12035cat >>confdefs.h <<\_ACEOF
ce2cded5 12036#define SCO_ELF 1
d7040cdb 12037_ACEOF
ce2cded5
L
12038
12039 fi
12040 ;;
12041
12042 i386-*-msdosdjgpp* \
12043 | i386-*-go32* \
12044 | i386-go32-rtems*)
12045
d7040cdb 12046cat >>confdefs.h <<\_ACEOF
ce2cded5 12047#define STRICTCOFF 1
d7040cdb 12048_ACEOF
ce2cded5
L
12049
12050 ;;
12051
12052 i860-*-*)
12053 { echo "$as_me:$LINENO: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&5
12054echo "$as_me: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&2;}
12055 ;;
12056
12057 mips-sony-bsd*)
12058 ;;
12059 mips-*-bsd*)
12060 { { echo "$as_me:$LINENO: error: Unknown vendor for mips-bsd configuration." >&5
12061echo "$as_me: error: Unknown vendor for mips-bsd configuration." >&2;}
12062 { (exit 1); exit 1; }; }
12063 ;;
12064
12065 ppc-*-aix5.*)
12066
d7040cdb 12067cat >>confdefs.h <<\_ACEOF
ce2cded5 12068#define AIX_WEAK_SUPPORT 1
d7040cdb 12069_ACEOF
ce2cded5
L
12070
12071 ;;
12072 ppc-*-linux-*)
12073 case "$endian" in
12074 big) ;;
12075 *) { { echo "$as_me:$LINENO: error: GNU/Linux must be configured big endian" >&5
12076echo "$as_me: error: GNU/Linux must be configured big endian" >&2;}
12077 { (exit 1); exit 1; }; } ;;
12078 esac
12079 ;;
12080 ppc-*-solaris*)
12081 if test ${this_target} = $target; then
12082
d7040cdb 12083cat >>confdefs.h <<\_ACEOF
ce2cded5 12084#define TARGET_SOLARIS_COMMENT 1
d7040cdb 12085_ACEOF
ce2cded5
L
12086
12087 fi
12088 if test x${endian} = xbig; then
12089 { { echo "$as_me:$LINENO: error: Solaris must be configured little endian" >&5
12090echo "$as_me: error: Solaris must be configured little endian" >&2;}
12091 { (exit 1); exit 1; }; }
12092 fi
12093 ;;
12094
12095 sh*-*-symbianelf*)
12096
d7040cdb 12097cat >>confdefs.h <<\_ACEOF
ce2cded5 12098#define TARGET_SYMBIAN 1
d7040cdb 12099_ACEOF
ce2cded5
L
12100
12101 ;;
d7040cdb 12102 esac
d7040cdb 12103
ce2cded5
L
12104 if test ${this_target} = $target ; then
12105 endian_def=
12106 if test x${endian} = xbig; then
12107 endian_def=1
12108 elif test x${endian} = xlittle; then
12109 endian_def=0
12110 fi
12111 if test x${endian_def} != x; then
12112
12113cat >>confdefs.h <<_ACEOF
12114#define TARGET_BYTES_BIG_ENDIAN $endian_def
12115_ACEOF
12116
12117 fi
12118 fi
12119
12120# Other random stuff.
12121
12122 case ${cpu_type} in
12123 mips)
12124 # Set mips_cpu to the name of the default CPU.
12125 case ${target_cpu} in
12126 mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el)
12127 mips_cpu=from-abi
12128 ;;
12129 mipsisa32 | mipsisa32el)
12130 mips_cpu=mips32
12131 ;;
12132 mipsisa32r2 | mipsisa32r2el)
12133 mips_cpu=mips32r2
12134 ;;
12135 mipsisa64 | mipsisa64el)
12136 mips_cpu=mips64
12137 ;;
12138 mipsisa64r2 | mipsisa64r2el)
12139 mips_cpu=mips64r2
12140 ;;
12141 mipstx39 | mipstx39el)
12142 mips_cpu=r3900
12143 ;;
12144 mips64vr | mips64vrel)
12145 mips_cpu=vr4100
12146 ;;
12147 mipsisa32r2* | mipsisa64r2*)
12148 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'`
12149 ;;
12150 mips64* | mipsisa64* | mipsisa32*)
12151 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..//' -e 's/el$//'`
12152 ;;
12153 *)
12154 { { echo "$as_me:$LINENO: error: $target_cpu isn't a supported MIPS CPU name" >&5
12155echo "$as_me: error: $target_cpu isn't a supported MIPS CPU name" >&2;}
12156 { (exit 1); exit 1; }; }
12157 ;;
12158 esac
12159 # See whether it's appropriate to set E_MIPS_ABI_O32 for o32
12160 # binaries. It's a GNU extension that some OSes don't understand.
12161 # The value only matters on ELF targets.
12162 case ${target} in
12163 *-*-irix*)
12164 use_e_mips_abi_o32=0
12165 ;;
12166 *)
12167 use_e_mips_abi_o32=1
12168 ;;
12169 esac
12170 # Decide whether to generate 32-bit or 64-bit code by default.
12171 # Used to resolve -march=from-abi when an embedded ABI is selected.
12172 case ${target} in
12173 mips64*-*-* | mipsisa64*-*-*)
12174 mips_default_64bit=1
12175 ;;
12176 *)
12177 mips_default_64bit=0
12178 ;;
12179 esac
12180 # Decide which ABI to target by default.
12181 case ${target} in
12182 mips64*-linux* | mips-sgi-irix6*)
12183 mips_default_abi=N32_ABI
12184 ;;
12185 mips*-linux*)
12186 mips_default_abi=O32_ABI
12187 ;;
12188 mips64*-openbsd*)
12189 mips_default_abi=N64_ABI
12190 ;;
12191 *)
12192 mips_default_abi=NO_ABI
12193 ;;
12194 esac
12195
12196cat >>confdefs.h <<_ACEOF
12197#define MIPS_CPU_STRING_DEFAULT "$mips_cpu"
d7040cdb 12198_ACEOF
d7040cdb
SE
12199
12200
12201cat >>confdefs.h <<_ACEOF
ce2cded5 12202#define USE_E_MIPS_ABI_O32 $use_e_mips_abi_o32
d7040cdb
SE
12203_ACEOF
12204
12205
12206cat >>confdefs.h <<_ACEOF
ce2cded5 12207#define MIPS_DEFAULT_64BIT $mips_default_64bit
d7040cdb
SE
12208_ACEOF
12209
12210
ce2cded5
L
12211cat >>confdefs.h <<_ACEOF
12212#define MIPS_DEFAULT_ABI $mips_default_abi
12213_ACEOF
d7040cdb 12214
ce2cded5
L
12215 ;;
12216 esac
d7040cdb 12217
ce2cded5
L
12218 # Do we need the opcodes library?
12219 case ${cpu_type} in
12220 vax | tic30)
12221 ;;
d7040cdb 12222
ce2cded5
L
12223 *)
12224 need_opcodes=yes
d7040cdb 12225
ce2cded5
L
12226 case "${enable_shared}" in
12227 yes) shared_opcodes=true ;;
12228 *opcodes*) shared_opcodes=true ;;
12229 *) shared_opcodes=false ;;
12230 esac
12231 ;;
12232 esac
d7040cdb 12233
ce2cded5
L
12234 # Any other special object files needed ?
12235 case ${cpu_type} in
d7040cdb 12236
ce2cded5
L
12237 bfin)
12238 echo ${extra_objects} | grep -s "bfin-parse.o"
12239 if test $? -ne 0 ; then
12240 extra_objects="$extra_objects bfin-parse.o"
12241 fi
d7040cdb 12242
ce2cded5
L
12243 echo ${extra_objects} | grep -s "bfin-lex.o"
12244 if test $? -ne 0 ; then
12245 extra_objects="$extra_objects bfin-lex.o"
12246 fi
12247 ;;
d7040cdb 12248
84e94c90 12249 fr30 | ip2k | iq2000 | lm32 | m32r | openrisc)
ce2cded5
L
12250 using_cgen=yes
12251 ;;
d7040cdb 12252
ce2cded5
L
12253 m32c)
12254 using_cgen=yes
12255 ;;
12256 frv)
12257 using_cgen=yes
12258 ;;
12259 m68k)
12260 case ${extra_objects} in
12261 *m68k-parse.o*) ;;
12262 *) extra_objects="$extra_objects m68k-parse.o" ;;
12263 esac
12264 ;;
d7040cdb 12265
ce2cded5
L
12266 mep)
12267 using_cgen=yes
12268 ;;
d7040cdb 12269
ce2cded5
L
12270 mips)
12271 echo ${extra_objects} | grep -s "itbl-parse.o"
12272 if test $? -ne 0 ; then
12273 extra_objects="$extra_objects itbl-parse.o"
12274 fi
d7040cdb 12275
ce2cded5
L
12276 echo ${extra_objects} | grep -s "itbl-lex.o"
12277 if test $? -ne 0 ; then
12278 extra_objects="$extra_objects itbl-lex.o"
12279 fi
d7040cdb 12280
ce2cded5
L
12281 echo ${extra_objects} | grep -s "itbl-ops.o"
12282 if test $? -ne 0 ; then
12283 extra_objects="$extra_objects itbl-ops.o"
12284 fi
12285 ;;
d7040cdb 12286
ce2cded5
L
12287 mt)
12288 using_cgen=yes
12289 ;;
d7040cdb 12290
ce2cded5
L
12291 i386 | s390 | sparc)
12292 if test $this_target = $target ; then
d7040cdb
SE
12293
12294cat >>confdefs.h <<_ACEOF
ce2cded5 12295#define DEFAULT_ARCH "${arch}"
d7040cdb
SE
12296_ACEOF
12297
ce2cded5
L
12298 fi
12299 ;;
d7040cdb 12300
ce2cded5
L
12301 xstormy16)
12302 using_cgen=yes
12303 ;;
d7040cdb 12304
ce2cded5
L
12305 xc16x)
12306 using_cgen=yes
12307 ;;
d7040cdb 12308
ce2cded5
L
12309 xtensa)
12310 echo ${extra_objects} | grep -s "xtensa-relax.o"
12311 if test $? -ne 0 ; then
12312 extra_objects="$extra_objects xtensa-relax.o"
12313 fi
12314 ;;
d7040cdb 12315
ce2cded5
L
12316 *)
12317 ;;
12318 esac
d7040cdb 12319
ce2cded5
L
12320 if test $using_cgen = yes ; then
12321 case "x${extra_objects}" in
12322 *cgen.o*) ;;
12323 *) extra_objects="$extra_objects cgen.o" ;;
12324 esac
12325 fi
d7040cdb 12326
ce2cded5 12327# See if we really can support this configuration with the emulation code.
d7040cdb 12328
ce2cded5
L
12329 if test $this_target = $target ; then
12330 obj_format=$fmt
12331 te_file=$em
12332 fi
d7040cdb 12333
ce2cded5 12334# From target name and format, produce a list of supported emulations.
d7040cdb 12335
ce2cded5
L
12336 case ${generic_target}-${fmt} in
12337 mips-*-irix5*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
12338 mips*-*-linux*-*) case "$endian" in
12339 big) emulation="mipsbelf mipslelf mipself" ;;
12340 *) emulation="mipslelf mipsbelf mipself" ;;
12341 esac ;;
12342 mips-*-lnews*-ecoff) ;;
12343 mips-*-*-ecoff) case "$endian" in
12344 big) emulation="mipsbecoff mipslecoff mipsecoff" ;;
12345 *) emulation="mipslecoff mipsbecoff mipsecoff" ;;
12346 esac ;;
12347 mips-*-*-elf) case "$endian" in
12348 big) emulation="mipsbelf mipslelf mipself" ;;
12349 *) emulation="mipslelf mipsbelf mipself" ;;
12350 esac ;;
12351 mips-*-sysv4*MP*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
12352 # i386-pc-pe-coff != i386-pc-coff.
12353 i386-*-pe-coff) ;;
12354 # Uncommenting the next line will turn on support for i386 AOUT
12355 # for the default linux configuration
12356 # i386-*-linux*-elf) emulation="i386elf i386aout" ;;
12357 #
12358 i386-*-aout) emulation="i386aout" ;;
12359 i386-*-coff) emulation="i386coff" ;;
12360 i386-*-elf) emulation="i386elf" ;;
d7040cdb 12361
ce2cded5
L
12362 # Always all formats. The first stated emulation becomes the default.
12363 cris-*-*aout*) emulation="crisaout criself" ;;
12364 cris-*-*) emulation="criself crisaout" ;;
12365 esac
13b2be9c 12366
ce2cded5 12367 emulations="$emulations $emulation"
13b2be9c 12368
13b2be9c 12369done
13b2be9c 12370
ce2cded5
L
12371# Turn on all targets if possible
12372if test ${all_targets} = "yes"; then
12373 case ${target_cpu_type} in
12374 i386)
12375 case ${obj_format} in
12376 aout)
12377 emulations="$emulations i386coff i386elf"
12378 ;;
12379 coff)
12380 emulations="$emulations i386aout i386elf"
12381 ;;
12382 elf)
12383 emulations="$emulations i386aout i386coff"
12384 ;;
12385 esac
12386 ;;
12387 x86_64)
12388 case ${obj_format} in
12389 aout)
12390 emulations="$emulations i386coff i386elf"
12391 ;;
12392 coff)
12393 emulations="$emulations i386aout i386elf"
12394 ;;
12395 elf)
12396 emulations="$emulations i386aout i386coff"
12397 ;;
12398 esac
12399 ;;
12400 esac
13b2be9c 12401fi
c8615825 12402
ce2cded5
L
12403# Assign floating point type. Most processors with FP support
12404# IEEE FP. On those that don't support FP at all, usually IEEE
12405# is emulated.
12406case ${target_cpu} in
12407 vax | pdp11 ) atof=vax ;;
12408 *) atof=ieee ;;
12409esac
c8615825 12410
ce2cded5
L
12411case "${obj_format}" in
12412 "") { { echo "$as_me:$LINENO: error: GAS does not know what format to use for target ${target}" >&5
12413echo "$as_me: error: GAS does not know what format to use for target ${target}" >&2;}
12414 { (exit 1); exit 1; }; } ;;
12415esac
13b2be9c 12416
ce2cded5
L
12417# Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
12418cgen_cpu_prefix=""
12419if test $using_cgen = yes ; then
12420 case ${target_cpu} in
12421 *) cgen_cpu_prefix=${target_cpu} ;;
12422 esac
c8615825 12423
c8615825 12424
ce2cded5
L
12425cat >>confdefs.h <<\_ACEOF
12426#define USING_CGEN 1
12427_ACEOF
d7040cdb 12428
d7040cdb 12429fi
13b2be9c 12430
ce2cded5
L
12431
12432if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then
12433 { { echo "$as_me:$LINENO: error: GAS does not support target CPU ${target_cpu_type}" >&5
12434echo "$as_me: error: GAS does not support target CPU ${target_cpu_type}" >&2;}
12435 { (exit 1); exit 1; }; }
13b2be9c 12436fi
ce2cded5
L
12437
12438if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
12439 { { echo "$as_me:$LINENO: error: GAS does not have support for object file format ${obj_format}" >&5
12440echo "$as_me: error: GAS does not have support for object file format ${obj_format}" >&2;}
12441 { (exit 1); exit 1; }; }
13b2be9c
DJ
12442fi
12443
ce2cded5
L
12444# Some COFF configurations want these random other flags set.
12445case ${obj_format} in
12446 coff)
12447 case ${target_cpu_type} in
12448 i386)
12449cat >>confdefs.h <<\_ACEOF
12450#define I386COFF 1
12451_ACEOF
12452 ;;
12453 m68k)
12454cat >>confdefs.h <<\_ACEOF
12455#define M68KCOFF 1
12456_ACEOF
12457 ;;
12458 m88k)
12459cat >>confdefs.h <<\_ACEOF
12460#define M88KCOFF 1
12461_ACEOF
12462 ;;
12463 x86_64)
12464cat >>confdefs.h <<\_ACEOF
12465#define I386COFF 1
12466_ACEOF
12467 ;;
12468 esac
12469 ;;
12470esac
12471
12472# Getting this done right is going to be a bitch. Each configuration specified
12473# with --enable-targets=... should be checked for environment, format, cpu
12474# setting.
12475#
12476# For each configuration, the necessary object file support code must be linked
12477# in. This might be only one, it might be up to four. The necessary emulation
12478# code needs to be provided, too.
12479#
12480# And then there's "--enable-targets=all"....
12481#
12482# For now, just always do it for MIPS ELF or ECOFF configurations. Sigh.
12483
12484formats="${obj_format}"
12485emfiles=""
12486EMULATIONS=""
12487_gas_uniq_list="$emulations"
12488_gas_uniq_newlist=""
12489for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12490 case $_gas_uniq_i in
12491 _gas_uniq_dummy) ;;
12492 *) case " $_gas_uniq_newlist " in
12493 *" $_gas_uniq_i "*) ;;
12494 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12495 esac ;;
12496 esac
12497done
12498emulations=$_gas_uniq_newlist
12499
12500for em in . $emulations ; do
12501 case $em in
12502 .) continue ;;
12503 mipsbelf | mipslelf | mipself)
12504 fmt=elf file=mipself ;;
12505 mipsbecoff | mipslecoff | mipsecoff)
12506 fmt=ecoff file=mipsecoff ;;
12507 *coff)
12508 fmt=coff file=$em ;;
12509 *aout)
12510 fmt=aout file=$em ;;
12511 *elf)
12512 fmt=elf file=$em ;;
12513 esac
12514 formats="$formats $fmt"
12515 emfiles="$emfiles e-$file.o"
12516 EMULATIONS="$EMULATIONS &$em,"
12517done
12518_gas_uniq_list="$formats"
12519_gas_uniq_newlist=""
12520for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12521 case $_gas_uniq_i in
12522 _gas_uniq_dummy) ;;
12523 *) case " $_gas_uniq_newlist " in
12524 *" $_gas_uniq_i "*) ;;
12525 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12526 esac ;;
12527 esac
13b2be9c 12528done
ce2cded5 12529formats=$_gas_uniq_newlist
13b2be9c 12530
ce2cded5
L
12531_gas_uniq_list="$emfiles"
12532_gas_uniq_newlist=""
12533for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12534 case $_gas_uniq_i in
12535 _gas_uniq_dummy) ;;
12536 *) case " $_gas_uniq_newlist " in
12537 *" $_gas_uniq_i "*) ;;
12538 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12539 esac ;;
12540 esac
12541done
12542emfiles=$_gas_uniq_newlist
d7040cdb 12543
ce2cded5
L
12544if test `set . $formats ; shift ; echo $#` -gt 1 ; then
12545 for fmt in $formats ; do
12546 case $fmt in
12547 aout)
12548cat >>confdefs.h <<\_ACEOF
12549#define OBJ_MAYBE_AOUT 1
13b2be9c 12550_ACEOF
ce2cded5
L
12551 ;;
12552 bout)
12553cat >>confdefs.h <<\_ACEOF
12554#define OBJ_MAYBE_BOUT 1
13b2be9c 12555_ACEOF
ce2cded5
L
12556 ;;
12557 coff)
12558cat >>confdefs.h <<\_ACEOF
12559#define OBJ_MAYBE_COFF 1
12560_ACEOF
12561 ;;
12562 ecoff)
12563cat >>confdefs.h <<\_ACEOF
12564#define OBJ_MAYBE_ECOFF 1
12565_ACEOF
12566 ;;
12567 elf)
12568cat >>confdefs.h <<\_ACEOF
12569#define OBJ_MAYBE_ELF 1
12570_ACEOF
12571 ;;
12572 generic)
12573cat >>confdefs.h <<\_ACEOF
12574#define OBJ_MAYBE_GENERIC 1
12575_ACEOF
12576 ;;
12577 som)
12578cat >>confdefs.h <<\_ACEOF
12579#define OBJ_MAYBE_SOM 1
12580_ACEOF
12581 ;;
12582 esac
12583 extra_objects="$extra_objects obj-$fmt.o"
12584 done
12585 obj_format=multi
13b2be9c 12586fi
ce2cded5
L
12587if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
12588 DEFAULT_EMULATION=`set . $emulations ; echo $2`
12589 # e-mips* has more than one emulation per file, e-i386* has just one at the
12590 # moment. If only one emulation is specified, then don't define
12591 # USE_EMULATIONS or include any of the e-files as they will only be bloat.
12592 case "${obj_format}${emfiles}" in
12593 multi* | *mips*)
12594 extra_objects="$extra_objects $emfiles"
d7040cdb 12595
ce2cded5
L
12596cat >>confdefs.h <<\_ACEOF
12597#define USE_EMULATIONS 1
13b2be9c 12598_ACEOF
ce2cded5
L
12599 ;;
12600 esac
12601fi
d7040cdb 12602
13b2be9c 12603
ce2cded5
L
12604cat >>confdefs.h <<_ACEOF
12605#define EMULATIONS $EMULATIONS
13b2be9c 12606_ACEOF
d7040cdb 12607
d7040cdb 12608
ce2cded5
L
12609cat >>confdefs.h <<_ACEOF
12610#define DEFAULT_EMULATION "$DEFAULT_EMULATION"
d7040cdb 12611_ACEOF
d7040cdb 12612
d7040cdb 12613
ce2cded5 12614reject_dev_configs=yes
252b5132 12615
ce2cded5
L
12616case ${reject_dev_configs}-${dev} in
12617 yes-yes) # Oops.
12618 { { echo "$as_me:$LINENO: error: GAS does not support the ${generic_target} configuration." >&5
12619echo "$as_me: error: GAS does not support the ${generic_target} configuration." >&2;}
12620 { (exit 1); exit 1; }; }
12621 ;;
d7040cdb
SE
12622esac
12623
13b2be9c 12624
ce2cded5
L
12625
12626
12627
12628
12629
12630# do we need the opcodes library?
12631case "${need_opcodes}" in
12632yes)
12633 OPCODES_LIB=../opcodes/libopcodes.la
12634 ;;
12635esac
12636
12637
12638
12639
12640cat >>confdefs.h <<_ACEOF
12641#define TARGET_ALIAS "${target_alias}"
d7040cdb 12642_ACEOF
20e95c23 12643
20e95c23 12644
ce2cded5
L
12645cat >>confdefs.h <<_ACEOF
12646#define TARGET_CANONICAL "${target}"
12647_ACEOF
20e95c23 12648
d6d788bd 12649
ce2cded5
L
12650cat >>confdefs.h <<_ACEOF
12651#define TARGET_CPU "${target_cpu}"
12652_ACEOF
20e95c23 12653
ce2cded5
L
12654
12655cat >>confdefs.h <<_ACEOF
12656#define TARGET_VENDOR "${target_vendor}"
0efedc4c
AM
12657_ACEOF
12658
12659
ce2cded5
L
12660cat >>confdefs.h <<_ACEOF
12661#define TARGET_OS "${target_os}"
12662_ACEOF
12663
0efedc4c 12664
d7040cdb
SE
12665for ac_prog in 'bison -y' byacc
12666do
12667 # Extract the first word of "$ac_prog", so it can be a program name with args.
12668set dummy $ac_prog; ac_word=$2
20e95c23
DJ
12669echo "$as_me:$LINENO: checking for $ac_word" >&5
12670echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d7040cdb 12671if test "${ac_cv_prog_YACC+set}" = set; then
20e95c23
DJ
12672 echo $ECHO_N "(cached) $ECHO_C" >&6
12673else
d7040cdb
SE
12674 if test -n "$YACC"; then
12675 ac_cv_prog_YACC="$YACC" # Let the user override the test.
d6d788bd 12676else
d7040cdb
SE
12677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12678for as_dir in $PATH
12679do
12680 IFS=$as_save_IFS
12681 test -z "$as_dir" && as_dir=.
12682 for ac_exec_ext in '' $ac_executable_extensions; do
12683 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12684 ac_cv_prog_YACC="$ac_prog"
12685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12686 break 2
20e95c23 12687 fi
d7040cdb
SE
12688done
12689done
20e95c23 12690
d7040cdb
SE
12691fi
12692fi
12693YACC=$ac_cv_prog_YACC
12694if test -n "$YACC"; then
12695 echo "$as_me:$LINENO: result: $YACC" >&5
12696echo "${ECHO_T}$YACC" >&6
12697else
12698 echo "$as_me:$LINENO: result: no" >&5
12699echo "${ECHO_T}no" >&6
12700fi
20e95c23 12701
d7040cdb
SE
12702 test -n "$YACC" && break
12703done
12704test -n "$YACC" || YACC="yacc"
20e95c23 12705
d7040cdb
SE
12706for ac_prog in flex lex
12707do
12708 # Extract the first word of "$ac_prog", so it can be a program name with args.
12709set dummy $ac_prog; ac_word=$2
12710echo "$as_me:$LINENO: checking for $ac_word" >&5
12711echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12712if test "${ac_cv_prog_LEX+set}" = set; then
12713 echo $ECHO_N "(cached) $ECHO_C" >&6
d6d788bd 12714else
d7040cdb
SE
12715 if test -n "$LEX"; then
12716 ac_cv_prog_LEX="$LEX" # Let the user override the test.
12717else
12718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12719for as_dir in $PATH
12720do
12721 IFS=$as_save_IFS
12722 test -z "$as_dir" && as_dir=.
12723 for ac_exec_ext in '' $ac_executable_extensions; do
12724 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12725 ac_cv_prog_LEX="$ac_prog"
12726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12727 break 2
12728 fi
12729done
12730done
20e95c23 12731
d7040cdb
SE
12732fi
12733fi
12734LEX=$ac_cv_prog_LEX
12735if test -n "$LEX"; then
12736 echo "$as_me:$LINENO: result: $LEX" >&5
12737echo "${ECHO_T}$LEX" >&6
20e95c23 12738else
d7040cdb
SE
12739 echo "$as_me:$LINENO: result: no" >&5
12740echo "${ECHO_T}no" >&6
13b2be9c
DJ
12741fi
12742
d7040cdb
SE
12743 test -n "$LEX" && break
12744done
12745test -n "$LEX" || LEX=":"
20e95c23 12746
d7040cdb
SE
12747if test -z "$LEXLIB"
12748then
12749 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
12750echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
12751if test "${ac_cv_lib_fl_yywrap+set}" = set; then
12752 echo $ECHO_N "(cached) $ECHO_C" >&6
d5fbea21 12753else
d7040cdb
SE
12754 ac_check_lib_save_LIBS=$LIBS
12755LIBS="-lfl $LIBS"
12756cat >conftest.$ac_ext <<_ACEOF
12757/* confdefs.h. */
12758_ACEOF
12759cat confdefs.h >>conftest.$ac_ext
12760cat >>conftest.$ac_ext <<_ACEOF
12761/* end confdefs.h. */
d5fbea21 12762
d7040cdb
SE
12763/* Override any gcc2 internal prototype to avoid an error. */
12764#ifdef __cplusplus
12765extern "C"
12766#endif
12767/* We use char because int might match the return type of a gcc2
12768 builtin and then its argument prototype would still apply. */
12769char yywrap ();
12770int
12771main ()
12772{
12773yywrap ();
12774 ;
12775 return 0;
12776}
12777_ACEOF
12778rm -f conftest.$ac_objext conftest$ac_exeext
12779if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12780 (eval $ac_link) 2>conftest.er1
12781 ac_status=$?
12782 grep -v '^ *+' conftest.er1 >conftest.err
12783 rm -f conftest.er1
12784 cat conftest.err >&5
12785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12786 (exit $ac_status); } &&
12787 { ac_try='test -z "$ac_c_werror_flag"
12788 || test ! -s conftest.err'
12789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12790 (eval $ac_try) 2>&5
12791 ac_status=$?
12792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12793 (exit $ac_status); }; } &&
12794 { ac_try='test -s conftest$ac_exeext'
12795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12796 (eval $ac_try) 2>&5
12797 ac_status=$?
12798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12799 (exit $ac_status); }; }; then
12800 ac_cv_lib_fl_yywrap=yes
12801else
12802 echo "$as_me: failed program was:" >&5
12803sed 's/^/| /' conftest.$ac_ext >&5
d5fbea21 12804
d7040cdb 12805ac_cv_lib_fl_yywrap=no
d6d788bd 12806fi
d7040cdb
SE
12807rm -f conftest.err conftest.$ac_objext \
12808 conftest$ac_exeext conftest.$ac_ext
12809LIBS=$ac_check_lib_save_LIBS
12810fi
12811echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
12812echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
12813if test $ac_cv_lib_fl_yywrap = yes; then
12814 LEXLIB="-lfl"
12815else
12816 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
12817echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
12818if test "${ac_cv_lib_l_yywrap+set}" = set; then
13b2be9c
DJ
12819 echo $ECHO_N "(cached) $ECHO_C" >&6
12820else
d7040cdb
SE
12821 ac_check_lib_save_LIBS=$LIBS
12822LIBS="-ll $LIBS"
12823cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
12824/* confdefs.h. */
12825_ACEOF
12826cat confdefs.h >>conftest.$ac_ext
12827cat >>conftest.$ac_ext <<_ACEOF
12828/* end confdefs.h. */
d7040cdb
SE
12829
12830/* Override any gcc2 internal prototype to avoid an error. */
12831#ifdef __cplusplus
12832extern "C"
13b2be9c 12833#endif
d7040cdb
SE
12834/* We use char because int might match the return type of a gcc2
12835 builtin and then its argument prototype would still apply. */
12836char yywrap ();
12837int
12838main ()
12839{
12840yywrap ();
12841 ;
12842 return 0;
12843}
12844_ACEOF
12845rm -f conftest.$ac_objext conftest$ac_exeext
12846if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12847 (eval $ac_link) 2>conftest.er1
12848 ac_status=$?
12849 grep -v '^ *+' conftest.er1 >conftest.err
12850 rm -f conftest.er1
12851 cat conftest.err >&5
12852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12853 (exit $ac_status); } &&
12854 { ac_try='test -z "$ac_c_werror_flag"
12855 || test ! -s conftest.err'
12856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12857 (eval $ac_try) 2>&5
12858 ac_status=$?
12859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12860 (exit $ac_status); }; } &&
12861 { ac_try='test -s conftest$ac_exeext'
12862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12863 (eval $ac_try) 2>&5
12864 ac_status=$?
12865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12866 (exit $ac_status); }; }; then
12867 ac_cv_lib_l_yywrap=yes
12868else
12869 echo "$as_me: failed program was:" >&5
12870sed 's/^/| /' conftest.$ac_ext >&5
12871
12872ac_cv_lib_l_yywrap=no
12873fi
12874rm -f conftest.err conftest.$ac_objext \
12875 conftest$ac_exeext conftest.$ac_ext
12876LIBS=$ac_check_lib_save_LIBS
12877fi
12878echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
12879echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
12880if test $ac_cv_lib_l_yywrap = yes; then
12881 LEXLIB="-ll"
12882fi
12883
12884fi
12885
12886fi
12887
12888if test "x$LEX" != "x:"; then
12889 echo "$as_me:$LINENO: checking lex output file root" >&5
12890echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
12891if test "${ac_cv_prog_lex_root+set}" = set; then
12892 echo $ECHO_N "(cached) $ECHO_C" >&6
12893else
12894 # The minimal lex program is just a single line: %%. But some broken lexes
12895# (Solaris, I think it was) want two %% lines, so accommodate them.
12896cat >conftest.l <<_ACEOF
12897%%
12898%%
13b2be9c 12899_ACEOF
d7040cdb
SE
12900{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
12901 (eval $LEX conftest.l) 2>&5
13b2be9c 12902 ac_status=$?
13b2be9c 12903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
12904 (exit $ac_status); }
12905if test -f lex.yy.c; then
12906 ac_cv_prog_lex_root=lex.yy
12907elif test -f lexyy.c; then
12908 ac_cv_prog_lex_root=lexyy
13b2be9c 12909else
d7040cdb
SE
12910 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
12911echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
12912 { (exit 1); exit 1; }; }
d6d788bd 12913fi
13b2be9c 12914fi
d7040cdb
SE
12915echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
12916echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
12917rm -f conftest.l
12918LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
13b2be9c 12919
d7040cdb
SE
12920echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
12921echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
12922if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
12923 echo $ECHO_N "(cached) $ECHO_C" >&6
12924else
12925 # POSIX says lex can declare yytext either as a pointer or an array; the
12926# default is implementation-dependent. Figure out which it is, since
12927# not all implementations provide the %pointer and %array declarations.
12928ac_cv_prog_lex_yytext_pointer=no
12929echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
12930ac_save_LIBS=$LIBS
12931LIBS="$LIBS $LEXLIB"
12932cat >conftest.$ac_ext <<_ACEOF
12933`cat $LEX_OUTPUT_ROOT.c`
13b2be9c 12934_ACEOF
d7040cdb
SE
12935rm -f conftest.$ac_objext conftest$ac_exeext
12936if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12937 (eval $ac_link) 2>conftest.er1
13b2be9c
DJ
12938 ac_status=$?
12939 grep -v '^ *+' conftest.er1 >conftest.err
12940 rm -f conftest.er1
12941 cat conftest.err >&5
12942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
12943 (exit $ac_status); } &&
12944 { ac_try='test -z "$ac_c_werror_flag"
12945 || test ! -s conftest.err'
12946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12947 (eval $ac_try) 2>&5
12948 ac_status=$?
12949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12950 (exit $ac_status); }; } &&
12951 { ac_try='test -s conftest$ac_exeext'
12952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12953 (eval $ac_try) 2>&5
12954 ac_status=$?
12955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12956 (exit $ac_status); }; }; then
12957 ac_cv_prog_lex_yytext_pointer=yes
13b2be9c
DJ
12958else
12959 echo "$as_me: failed program was:" >&5
12960sed 's/^/| /' conftest.$ac_ext >&5
6840198f 12961
13b2be9c 12962fi
d7040cdb
SE
12963rm -f conftest.err conftest.$ac_objext \
12964 conftest$ac_exeext conftest.$ac_ext
12965LIBS=$ac_save_LIBS
12966rm -f "${LEX_OUTPUT_ROOT}.c"
252b5132 12967
9b2b7d69 12968fi
d7040cdb
SE
12969echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
12970echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
12971if test $ac_cv_prog_lex_yytext_pointer = yes; then
13b2be9c 12972
d7040cdb
SE
12973cat >>confdefs.h <<\_ACEOF
12974#define YYTEXT_POINTER 1
12975_ACEOF
9b2b7d69 12976
d6d788bd 12977fi
d7040cdb 12978
c8615825 12979fi
d7040cdb
SE
12980if test "$LEX" = :; then
12981 LEX=${am_missing_run}flex
12982fi
12983
8cc9115f 12984ALL_LINGUAS="fr tr es rw id"
d7040cdb
SE
12985# If we haven't got the data from the intl directory,
12986# assume NLS is disabled.
12987USE_NLS=no
12988LIBINTL=
12989LIBINTL_DEP=
12990INCINTL=
12991XGETTEXT=
12992GMSGFMT=
12993POSUB=
12994
12995if test -f ../intl/config.intl; then
12996 . ../intl/config.intl
12997fi
12998echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12999echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
13000if test x"$USE_NLS" != xyes; then
13001 echo "$as_me:$LINENO: result: no" >&5
13002echo "${ECHO_T}no" >&6
13003else
13004 echo "$as_me:$LINENO: result: yes" >&5
13005echo "${ECHO_T}yes" >&6
13006
13007cat >>confdefs.h <<\_ACEOF
13008#define ENABLE_NLS 1
13b2be9c 13009_ACEOF
d7040cdb
SE
13010
13011
13012 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
13013echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
13014 # Look for .po and .gmo files in the source directory.
13015 CATALOGS=
13016 XLINGUAS=
13017 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
13018 # If there aren't any .gmo files the shell will give us the
13019 # literal string "../path/to/srcdir/po/*.gmo" which has to be
13020 # weeded out.
13021 case "$cat" in *\**)
13022 continue;;
13023 esac
13024 # The quadruple backslash is collapsed to a double backslash
13025 # by the backticks, then collapsed again by the double quotes,
13026 # leaving us with one backslash in the sed expression (right
13027 # before the dot that mustn't act as a wildcard).
13028 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
13029 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
13030 # The user is allowed to set LINGUAS to a list of languages to
13031 # install catalogs for. If it's empty that means "all of them."
13032 if test "x$LINGUAS" = x; then
13033 CATALOGS="$CATALOGS $cat"
13034 XLINGUAS="$XLINGUAS $lang"
13035 else
13036 case "$LINGUAS" in *$lang*)
13037 CATALOGS="$CATALOGS $cat"
13038 XLINGUAS="$XLINGUAS $lang"
13039 ;;
13040 esac
13041 fi
13042 done
13043 LINGUAS="$XLINGUAS"
13044 echo "$as_me:$LINENO: result: $LINGUAS" >&5
13045echo "${ECHO_T}$LINGUAS" >&6
13046
13047
13048 DATADIRNAME=share
13049
13050 INSTOBJEXT=.mo
13051
13052 GENCAT=gencat
13053
13054 CATOBJEXT=.gmo
13055
13056fi
13057
13058 MKINSTALLDIRS=
13059 if test -n "$ac_aux_dir"; then
13060 case "$ac_aux_dir" in
13061 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
13062 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
13063 esac
13064 fi
13065 if test -z "$MKINSTALLDIRS"; then
13066 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13067 fi
13068
13069
13070
13071 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
13072echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
13073 # Check whether --enable-nls or --disable-nls was given.
13074if test "${enable_nls+set}" = set; then
13075 enableval="$enable_nls"
13076 USE_NLS=$enableval
13077else
13078 USE_NLS=yes
13079fi;
13080 echo "$as_me:$LINENO: result: $USE_NLS" >&5
13081echo "${ECHO_T}$USE_NLS" >&6
13082
13083
13084
13085
13086
13087
13088# Prepare PATH_SEPARATOR.
13089# The user is always right.
13090if test "${PATH_SEPARATOR+set}" != set; then
13091 echo "#! /bin/sh" >conf$$.sh
13092 echo "exit 0" >>conf$$.sh
13093 chmod +x conf$$.sh
13094 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13095 PATH_SEPARATOR=';'
13b2be9c 13096 else
d7040cdb 13097 PATH_SEPARATOR=:
13b2be9c 13098 fi
d7040cdb 13099 rm -f conf$$.sh
252b5132 13100fi
13b2be9c 13101
d7040cdb
SE
13102# Find out how to test for executable files. Don't use a zero-byte file,
13103# as systems may use methods other than mode bits to determine executability.
13104cat >conf$$.file <<_ASEOF
13105#! /bin/sh
13106exit 0
13107_ASEOF
13108chmod +x conf$$.file
13109if test -x conf$$.file >/dev/null 2>&1; then
13110 ac_executable_p="test -x"
13111else
13112 ac_executable_p="test -f"
13b2be9c 13113fi
d7040cdb 13114rm -f conf$$.file
13b2be9c 13115
d7040cdb
SE
13116# Extract the first word of "msgfmt", so it can be a program name with args.
13117set dummy msgfmt; ac_word=$2
13118echo "$as_me:$LINENO: checking for $ac_word" >&5
13119echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13120if test "${ac_cv_path_MSGFMT+set}" = set; then
13121 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 13122else
d7040cdb
SE
13123 case "$MSGFMT" in
13124 [\\/]* | ?:[\\/]*)
13125 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13126 ;;
13127 *)
13128 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13129 for ac_dir in $PATH; do
13130 IFS="$ac_save_IFS"
13131 test -z "$ac_dir" && ac_dir=.
13132 for ac_exec_ext in '' $ac_executable_extensions; do
13133 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13134 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
13135 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13136 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
13137 break 2
13138 fi
13139 fi
13140 done
13141 done
13142 IFS="$ac_save_IFS"
13143 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13144 ;;
13145esac
252b5132 13146fi
d7040cdb
SE
13147MSGFMT="$ac_cv_path_MSGFMT"
13148if test "$MSGFMT" != ":"; then
13149 echo "$as_me:$LINENO: result: $MSGFMT" >&5
13150echo "${ECHO_T}$MSGFMT" >&6
252b5132 13151else
d7040cdb
SE
13152 echo "$as_me:$LINENO: result: no" >&5
13153echo "${ECHO_T}no" >&6
252b5132 13154fi
252b5132 13155
d7040cdb
SE
13156 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13157set dummy gmsgfmt; ac_word=$2
13158echo "$as_me:$LINENO: checking for $ac_word" >&5
13159echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13160if test "${ac_cv_path_GMSGFMT+set}" = set; then
13161 echo $ECHO_N "(cached) $ECHO_C" >&6
13b2be9c 13162else
d7040cdb
SE
13163 case $GMSGFMT in
13164 [\\/]* | ?:[\\/]*)
13165 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13166 ;;
13167 *)
13168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13169for as_dir in $PATH
13170do
13171 IFS=$as_save_IFS
13172 test -z "$as_dir" && as_dir=.
13173 for ac_exec_ext in '' $ac_executable_extensions; do
13174 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13175 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13177 break 2
13178 fi
13179done
13180done
252b5132 13181
d7040cdb
SE
13182 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13183 ;;
13184esac
13185fi
13186GMSGFMT=$ac_cv_path_GMSGFMT
252b5132 13187
d7040cdb
SE
13188if test -n "$GMSGFMT"; then
13189 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
13190echo "${ECHO_T}$GMSGFMT" >&6
ac48eca1 13191else
d7040cdb
SE
13192 echo "$as_me:$LINENO: result: no" >&5
13193echo "${ECHO_T}no" >&6
6840198f 13194fi
6840198f 13195
13b2be9c 13196
20e95c23 13197
d7040cdb
SE
13198# Prepare PATH_SEPARATOR.
13199# The user is always right.
13200if test "${PATH_SEPARATOR+set}" != set; then
13201 echo "#! /bin/sh" >conf$$.sh
13202 echo "exit 0" >>conf$$.sh
13203 chmod +x conf$$.sh
13204 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13205 PATH_SEPARATOR=';'
13206 else
13207 PATH_SEPARATOR=:
13208 fi
13209 rm -f conf$$.sh
13210fi
20e95c23 13211
d7040cdb
SE
13212# Find out how to test for executable files. Don't use a zero-byte file,
13213# as systems may use methods other than mode bits to determine executability.
13214cat >conf$$.file <<_ASEOF
13215#! /bin/sh
13216exit 0
13217_ASEOF
13218chmod +x conf$$.file
13219if test -x conf$$.file >/dev/null 2>&1; then
13220 ac_executable_p="test -x"
13b2be9c 13221else
d7040cdb 13222 ac_executable_p="test -f"
13b2be9c 13223fi
d7040cdb 13224rm -f conf$$.file
20e95c23 13225
d7040cdb
SE
13226# Extract the first word of "xgettext", so it can be a program name with args.
13227set dummy xgettext; ac_word=$2
13228echo "$as_me:$LINENO: checking for $ac_word" >&5
13229echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13230if test "${ac_cv_path_XGETTEXT+set}" = set; then
13231 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 13232else
d7040cdb
SE
13233 case "$XGETTEXT" in
13234 [\\/]* | ?:[\\/]*)
13235 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13236 ;;
13237 *)
13238 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13239 for ac_dir in $PATH; do
13240 IFS="$ac_save_IFS"
13241 test -z "$ac_dir" && ac_dir=.
13242 for ac_exec_ext in '' $ac_executable_extensions; do
13243 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13244 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
13245 (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
13246 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
13247 break 2
13248 fi
13249 fi
13250 done
13251 done
13252 IFS="$ac_save_IFS"
13253 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13254 ;;
13255esac
13b2be9c 13256fi
d7040cdb
SE
13257XGETTEXT="$ac_cv_path_XGETTEXT"
13258if test "$XGETTEXT" != ":"; then
13259 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
13260echo "${ECHO_T}$XGETTEXT" >&6
13261else
13262 echo "$as_me:$LINENO: result: no" >&5
13263echo "${ECHO_T}no" >&6
13b2be9c 13264fi
13b2be9c 13265
d7040cdb 13266 rm -f messages.po
20e95c23 13267
13b2be9c 13268
d7040cdb
SE
13269# Prepare PATH_SEPARATOR.
13270# The user is always right.
13271if test "${PATH_SEPARATOR+set}" != set; then
13272 echo "#! /bin/sh" >conf$$.sh
13273 echo "exit 0" >>conf$$.sh
13274 chmod +x conf$$.sh
13275 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13276 PATH_SEPARATOR=';'
13277 else
13278 PATH_SEPARATOR=:
13279 fi
13280 rm -f conf$$.sh
252b5132 13281fi
20e95c23 13282
d7040cdb
SE
13283# Find out how to test for executable files. Don't use a zero-byte file,
13284# as systems may use methods other than mode bits to determine executability.
13285cat >conf$$.file <<_ASEOF
13286#! /bin/sh
13287exit 0
13288_ASEOF
13289chmod +x conf$$.file
13290if test -x conf$$.file >/dev/null 2>&1; then
13291 ac_executable_p="test -x"
252b5132 13292else
d7040cdb
SE
13293 ac_executable_p="test -f"
13294fi
13295rm -f conf$$.file
20e95c23 13296
d7040cdb
SE
13297# Extract the first word of "msgmerge", so it can be a program name with args.
13298set dummy msgmerge; ac_word=$2
13299echo "$as_me:$LINENO: checking for $ac_word" >&5
13300echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13301if test "${ac_cv_path_MSGMERGE+set}" = set; then
13302 echo $ECHO_N "(cached) $ECHO_C" >&6
20e95c23 13303else
d7040cdb
SE
13304 case "$MSGMERGE" in
13305 [\\/]* | ?:[\\/]*)
13306 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
13307 ;;
13308 *)
13309 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13310 for ac_dir in $PATH; do
13311 IFS="$ac_save_IFS"
13312 test -z "$ac_dir" && ac_dir=.
13313 for ac_exec_ext in '' $ac_executable_extensions; do
13314 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13315 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
13316 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
13317 break 2
13318 fi
13319 fi
13320 done
13321 done
13322 IFS="$ac_save_IFS"
13323 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
13324 ;;
13325esac
20e95c23 13326fi
d7040cdb
SE
13327MSGMERGE="$ac_cv_path_MSGMERGE"
13328if test "$MSGMERGE" != ":"; then
13329 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
13330echo "${ECHO_T}$MSGMERGE" >&6
13331else
13332 echo "$as_me:$LINENO: result: no" >&5
13333echo "${ECHO_T}no" >&6
20e95c23 13334fi
252b5132 13335
252b5132 13336
d7040cdb
SE
13337 if test "$GMSGFMT" != ":"; then
13338 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
13339 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13340 : ;
13341 else
13342 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
13343 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
13344echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
13345 GMSGFMT=":"
13346 fi
13347 fi
13b2be9c 13348
d7040cdb
SE
13349 if test "$XGETTEXT" != ":"; then
13350 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
13351 (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
13352 : ;
13353 else
13354 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
13355echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
13356 XGETTEXT=":"
13357 fi
13358 rm -f messages.po
13359 fi
252b5132 13360
d7040cdb 13361 ac_config_commands="$ac_config_commands default-1"
252b5132 13362
13b2be9c 13363
252b5132 13364
d7040cdb
SE
13365echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
13366echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
13367 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
13368if test "${enable_maintainer_mode+set}" = set; then
13369 enableval="$enable_maintainer_mode"
13370 USE_MAINTAINER_MODE=$enableval
c8615825 13371else
d7040cdb
SE
13372 USE_MAINTAINER_MODE=no
13373fi;
13374 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
13375echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
13b2be9c 13376
d7040cdb
SE
13377
13378if test $USE_MAINTAINER_MODE = yes; then
13379 MAINTAINER_MODE_TRUE=
13380 MAINTAINER_MODE_FALSE='#'
13381else
13382 MAINTAINER_MODE_TRUE='#'
13383 MAINTAINER_MODE_FALSE=
20e95c23 13384fi
9b2b7d69 13385
d7040cdb
SE
13386 MAINT=$MAINTAINER_MODE_TRUE
13387
13388
13389
13390
13391if false; then
13392 GENINSRC_NEVER_TRUE=
13393 GENINSRC_NEVER_FALSE='#'
13394else
13395 GENINSRC_NEVER_TRUE='#'
13396 GENINSRC_NEVER_FALSE=
20e95c23 13397fi
9b2b7d69
MM
13398
13399
13400
13401
13402
13b2be9c
DJ
13403
13404
13405
13406
13407
13408
13409
40fb9820
L
13410
13411for 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 13412do
13b2be9c
DJ
13413as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13414if eval "test \"\${$as_ac_Header+set}\" = set"; then
13415 echo "$as_me:$LINENO: checking for $ac_header" >&5
13416echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13417if eval "test \"\${$as_ac_Header+set}\" = set"; then
13418 echo $ECHO_N "(cached) $ECHO_C" >&6
13419fi
13420echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13421echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13422else
13423 # Is the header compilable?
13424echo "$as_me:$LINENO: checking $ac_header usability" >&5
13425echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13426cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
13427/* confdefs.h. */
13428_ACEOF
13429cat confdefs.h >>conftest.$ac_ext
13430cat >>conftest.$ac_ext <<_ACEOF
13431/* end confdefs.h. */
13432$ac_includes_default
13433#include <$ac_header>
13434_ACEOF
13435rm -f conftest.$ac_objext
13436if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 13437 (eval $ac_compile) 2>conftest.er1
13b2be9c 13438 ac_status=$?
ab509236
L
13439 grep -v '^ *+' conftest.er1 >conftest.err
13440 rm -f conftest.er1
13441 cat conftest.err >&5
13b2be9c
DJ
13442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13443 (exit $ac_status); } &&
1ad12f97
NC
13444 { ac_try='test -z "$ac_c_werror_flag"
13445 || test ! -s conftest.err'
ab509236
L
13446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13447 (eval $ac_try) 2>&5
13448 ac_status=$?
13449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13450 (exit $ac_status); }; } &&
13451 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
13452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13453 (eval $ac_try) 2>&5
13454 ac_status=$?
13455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13456 (exit $ac_status); }; }; then
13457 ac_header_compiler=yes
13458else
13459 echo "$as_me: failed program was:" >&5
13460sed 's/^/| /' conftest.$ac_ext >&5
13461
13462ac_header_compiler=no
13463fi
ab509236 13464rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
13465echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13466echo "${ECHO_T}$ac_header_compiler" >&6
13467
13468# Is the header present?
13469echo "$as_me:$LINENO: checking $ac_header presence" >&5
13470echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13471cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
13472/* confdefs.h. */
13473_ACEOF
13474cat confdefs.h >>conftest.$ac_ext
13475cat >>conftest.$ac_ext <<_ACEOF
13476/* end confdefs.h. */
13477#include <$ac_header>
13478_ACEOF
13479if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13480 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13481 ac_status=$?
13482 grep -v '^ *+' conftest.er1 >conftest.err
13483 rm -f conftest.er1
13484 cat conftest.err >&5
13485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13486 (exit $ac_status); } >/dev/null; then
13487 if test -s conftest.err; then
13488 ac_cpp_err=$ac_c_preproc_warn_flag
ab509236 13489 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13b2be9c
DJ
13490 else
13491 ac_cpp_err=
13492 fi
9b2b7d69 13493else
13b2be9c
DJ
13494 ac_cpp_err=yes
13495fi
13496if test -z "$ac_cpp_err"; then
13497 ac_header_preproc=yes
13498else
13499 echo "$as_me: failed program was:" >&5
13500sed 's/^/| /' conftest.$ac_ext >&5
13501
13502 ac_header_preproc=no
13503fi
13504rm -f conftest.err conftest.$ac_ext
13505echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13506echo "${ECHO_T}$ac_header_preproc" >&6
13507
13508# So? What about this header?
ab509236
L
13509case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13510 yes:no: )
13b2be9c
DJ
13511 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13512echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ab509236
L
13513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13514echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13515 ac_header_preproc=yes
13b2be9c 13516 ;;
ab509236 13517 no:yes:* )
13b2be9c
DJ
13518 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13519echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ab509236
L
13520 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13521echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13522 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13523echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13524 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13525echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13b2be9c
DJ
13526 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13527echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ab509236
L
13528 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13529echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13b2be9c
DJ
13530 (
13531 cat <<\_ASBOX
ab509236
L
13532## ------------------------------------------ ##
13533## Report this to the AC_PACKAGE_NAME lists. ##
13534## ------------------------------------------ ##
13b2be9c
DJ
13535_ASBOX
13536 ) |
13537 sed "s/^/$as_me: WARNING: /" >&2
13538 ;;
13539esac
13540echo "$as_me:$LINENO: checking for $ac_header" >&5
13541echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13542if eval "test \"\${$as_ac_Header+set}\" = set"; then
13543 echo $ECHO_N "(cached) $ECHO_C" >&6
13544else
ab509236 13545 eval "$as_ac_Header=\$ac_header_preproc"
252b5132 13546fi
13b2be9c
DJ
13547echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13548echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13549
252b5132 13550fi
13b2be9c
DJ
13551if test `eval echo '${'$as_ac_Header'}'` = yes; then
13552 cat >>confdefs.h <<_ACEOF
13553#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13554_ACEOF
13555
252b5132 13556fi
13b2be9c 13557
252b5132
RH
13558done
13559
d6d788bd 13560
252b5132
RH
13561# Put this here so that autoconf's "cross-compiling" message doesn't confuse
13562# people who are not cross-compiling but are compiling cross-assemblers.
13b2be9c
DJ
13563echo "$as_me:$LINENO: checking whether compiling a cross-assembler" >&5
13564echo $ECHO_N "checking whether compiling a cross-assembler... $ECHO_C" >&6
252b5132
RH
13565if test "${host}" = "${target}"; then
13566 cross_gas=no
13567else
13568 cross_gas=yes
13b2be9c
DJ
13569
13570cat >>confdefs.h <<\_ACEOF
252b5132 13571#define CROSS_COMPILE 1
13b2be9c 13572_ACEOF
252b5132
RH
13573
13574fi
13b2be9c
DJ
13575echo "$as_me:$LINENO: result: $cross_gas" >&5
13576echo "${ECHO_T}$cross_gas" >&6
252b5132
RH
13577
13578# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13579# for constant arguments. Useless!
13b2be9c
DJ
13580echo "$as_me:$LINENO: checking for working alloca.h" >&5
13581echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
13582if test "${ac_cv_working_alloca_h+set}" = set; then
13583 echo $ECHO_N "(cached) $ECHO_C" >&6
13584else
13585 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
13586/* confdefs.h. */
13587_ACEOF
13588cat confdefs.h >>conftest.$ac_ext
13589cat >>conftest.$ac_ext <<_ACEOF
13590/* end confdefs.h. */
252b5132 13591#include <alloca.h>
13b2be9c
DJ
13592int
13593main ()
13594{
13595char *p = (char *) alloca (2 * sizeof (int));
13596 ;
13597 return 0;
13598}
13599_ACEOF
13600rm -f conftest.$ac_objext conftest$ac_exeext
13601if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 13602 (eval $ac_link) 2>conftest.er1
13b2be9c 13603 ac_status=$?
ab509236
L
13604 grep -v '^ *+' conftest.er1 >conftest.err
13605 rm -f conftest.er1
13606 cat conftest.err >&5
13b2be9c
DJ
13607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13608 (exit $ac_status); } &&
1ad12f97
NC
13609 { ac_try='test -z "$ac_c_werror_flag"
13610 || test ! -s conftest.err'
ab509236
L
13611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13612 (eval $ac_try) 2>&5
13613 ac_status=$?
13614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615 (exit $ac_status); }; } &&
13616 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
13617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13618 (eval $ac_try) 2>&5
13619 ac_status=$?
13620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13621 (exit $ac_status); }; }; then
13622 ac_cv_working_alloca_h=yes
13623else
13624 echo "$as_me: failed program was:" >&5
13625sed 's/^/| /' conftest.$ac_ext >&5
13626
13627ac_cv_working_alloca_h=no
13628fi
ab509236
L
13629rm -f conftest.err conftest.$ac_objext \
13630 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
13631fi
13632echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13633echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13634if test $ac_cv_working_alloca_h = yes; then
13635
13636cat >>confdefs.h <<\_ACEOF
252b5132 13637#define HAVE_ALLOCA_H 1
13b2be9c 13638_ACEOF
252b5132
RH
13639
13640fi
13641
13b2be9c
DJ
13642echo "$as_me:$LINENO: checking for alloca" >&5
13643echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13644if test "${ac_cv_func_alloca_works+set}" = set; then
13645 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 13646else
13b2be9c 13647 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
13648/* confdefs.h. */
13649_ACEOF
13650cat confdefs.h >>conftest.$ac_ext
13651cat >>conftest.$ac_ext <<_ACEOF
13652/* end confdefs.h. */
252b5132
RH
13653#ifdef __GNUC__
13654# define alloca __builtin_alloca
13655#else
13656# ifdef _MSC_VER
13657# include <malloc.h>
13658# define alloca _alloca
13659# else
13660# if HAVE_ALLOCA_H
13661# include <alloca.h>
13662# else
13663# ifdef _AIX
13664 #pragma alloca
13665# else
13666# ifndef alloca /* predefined by HP cc +Olibcalls */
13667char *alloca ();
13668# endif
13669# endif
13670# endif
13671# endif
13672#endif
13673
13b2be9c
DJ
13674int
13675main ()
13676{
13677char *p = (char *) alloca (1);
13678 ;
13679 return 0;
13680}
13681_ACEOF
13682rm -f conftest.$ac_objext conftest$ac_exeext
13683if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 13684 (eval $ac_link) 2>conftest.er1
13b2be9c 13685 ac_status=$?
ab509236
L
13686 grep -v '^ *+' conftest.er1 >conftest.err
13687 rm -f conftest.er1
13688 cat conftest.err >&5
13b2be9c
DJ
13689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13690 (exit $ac_status); } &&
1ad12f97
NC
13691 { ac_try='test -z "$ac_c_werror_flag"
13692 || test ! -s conftest.err'
ab509236
L
13693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13694 (eval $ac_try) 2>&5
13695 ac_status=$?
13696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13697 (exit $ac_status); }; } &&
13698 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
13699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13700 (eval $ac_try) 2>&5
13701 ac_status=$?
13702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13703 (exit $ac_status); }; }; then
252b5132
RH
13704 ac_cv_func_alloca_works=yes
13705else
13b2be9c
DJ
13706 echo "$as_me: failed program was:" >&5
13707sed 's/^/| /' conftest.$ac_ext >&5
13708
13709ac_cv_func_alloca_works=no
252b5132 13710fi
ab509236
L
13711rm -f conftest.err conftest.$ac_objext \
13712 conftest$ac_exeext conftest.$ac_ext
252b5132 13713fi
13b2be9c
DJ
13714echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13715echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
252b5132 13716
252b5132 13717if test $ac_cv_func_alloca_works = yes; then
9b2b7d69 13718
13b2be9c
DJ
13719cat >>confdefs.h <<\_ACEOF
13720#define HAVE_ALLOCA 1
13721_ACEOF
9b2b7d69 13722
13b2be9c 13723else
c8615825 13724 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13b2be9c
DJ
13725# that cause trouble. Some versions do not even contain alloca or
13726# contain a buggy version. If you still want to use their alloca,
13727# use ar to extract alloca.o from them instead of compiling alloca.c.
13728
13729ALLOCA=alloca.$ac_objext
13730
13731cat >>confdefs.h <<\_ACEOF
252b5132 13732#define C_ALLOCA 1
13b2be9c 13733_ACEOF
252b5132 13734
d6d788bd 13735
13b2be9c
DJ
13736echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13737echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13738if test "${ac_cv_os_cray+set}" = set; then
13739 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 13740else
13b2be9c 13741 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
13742/* confdefs.h. */
13743_ACEOF
13744cat confdefs.h >>conftest.$ac_ext
13745cat >>conftest.$ac_ext <<_ACEOF
13746/* end confdefs.h. */
252b5132
RH
13747#if defined(CRAY) && ! defined(CRAY2)
13748webecray
13749#else
13750wenotbecray
13751#endif
13752
13b2be9c 13753_ACEOF
252b5132 13754if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13b2be9c 13755 $EGREP "webecray" >/dev/null 2>&1; then
252b5132
RH
13756 ac_cv_os_cray=yes
13757else
252b5132
RH
13758 ac_cv_os_cray=no
13759fi
13760rm -f conftest*
13761
13762fi
13b2be9c
DJ
13763echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13764echo "${ECHO_T}$ac_cv_os_cray" >&6
252b5132 13765if test $ac_cv_os_cray = yes; then
13b2be9c
DJ
13766 for ac_func in _getb67 GETB67 getb67; do
13767 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13768echo "$as_me:$LINENO: checking for $ac_func" >&5
13769echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13770if eval "test \"\${$as_ac_var+set}\" = set"; then
13771 echo $ECHO_N "(cached) $ECHO_C" >&6
13772else
13773 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
13774/* confdefs.h. */
13775_ACEOF
13776cat confdefs.h >>conftest.$ac_ext
13777cat >>conftest.$ac_ext <<_ACEOF
13778/* end confdefs.h. */
ab509236
L
13779/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13780 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13781#define $ac_func innocuous_$ac_func
13782
252b5132 13783/* System header to define __stub macros and hopefully few prototypes,
13b2be9c
DJ
13784 which can conflict with char $ac_func (); below.
13785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13786 <limits.h> exists even on freestanding compilers. */
ab509236 13787
13b2be9c
DJ
13788#ifdef __STDC__
13789# include <limits.h>
13790#else
13791# include <assert.h>
13792#endif
ab509236
L
13793
13794#undef $ac_func
13795
252b5132 13796/* Override any gcc2 internal prototype to avoid an error. */
13b2be9c
DJ
13797#ifdef __cplusplus
13798extern "C"
13799{
13800#endif
252b5132 13801/* We use char because int might match the return type of a gcc2
13b2be9c
DJ
13802 builtin and then its argument prototype would still apply. */
13803char $ac_func ();
252b5132
RH
13804/* The GNU C library defines this for functions which it implements
13805 to always fail with ENOSYS. Some functions are actually named
13806 something starting with __ and the normal name is an alias. */
13807#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13808choke me
13809#else
13b2be9c
DJ
13810char (*f) () = $ac_func;
13811#endif
13812#ifdef __cplusplus
13813}
252b5132
RH
13814#endif
13815
13b2be9c
DJ
13816int
13817main ()
13818{
13819return f != $ac_func;
13820 ;
13821 return 0;
13822}
13823_ACEOF
13824rm -f conftest.$ac_objext conftest$ac_exeext
13825if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 13826 (eval $ac_link) 2>conftest.er1
13b2be9c 13827 ac_status=$?
ab509236
L
13828 grep -v '^ *+' conftest.er1 >conftest.err
13829 rm -f conftest.er1
13830 cat conftest.err >&5
13b2be9c
DJ
13831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13832 (exit $ac_status); } &&
1ad12f97
NC
13833 { ac_try='test -z "$ac_c_werror_flag"
13834 || test ! -s conftest.err'
ab509236
L
13835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13836 (eval $ac_try) 2>&5
13837 ac_status=$?
13838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13839 (exit $ac_status); }; } &&
13840 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
13841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13842 (eval $ac_try) 2>&5
13843 ac_status=$?
13844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13845 (exit $ac_status); }; }; then
13846 eval "$as_ac_var=yes"
13847else
13848 echo "$as_me: failed program was:" >&5
13849sed 's/^/| /' conftest.$ac_ext >&5
13850
13851eval "$as_ac_var=no"
13852fi
ab509236
L
13853rm -f conftest.err conftest.$ac_objext \
13854 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
13855fi
13856echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13857echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13858if test `eval echo '${'$as_ac_var'}'` = yes; then
13859
13860cat >>confdefs.h <<_ACEOF
252b5132 13861#define CRAY_STACKSEG_END $ac_func
13b2be9c 13862_ACEOF
252b5132 13863
13b2be9c 13864 break
252b5132
RH
13865fi
13866
13b2be9c 13867 done
252b5132
RH
13868fi
13869
13b2be9c
DJ
13870echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13871echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13872if test "${ac_cv_c_stack_direction+set}" = set; then
13873 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
13874else
13875 if test "$cross_compiling" = yes; then
13876 ac_cv_c_stack_direction=0
13877else
13b2be9c 13878 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
13879/* confdefs.h. */
13880_ACEOF
13881cat confdefs.h >>conftest.$ac_ext
13882cat >>conftest.$ac_ext <<_ACEOF
13883/* end confdefs.h. */
13884int
252b5132
RH
13885find_stack_direction ()
13886{
13887 static char *addr = 0;
13888 auto char dummy;
13889 if (addr == 0)
13890 {
13891 addr = &dummy;
13892 return find_stack_direction ();
13893 }
13894 else
13895 return (&dummy > addr) ? 1 : -1;
13896}
13b2be9c
DJ
13897
13898int
252b5132
RH
13899main ()
13900{
13b2be9c 13901 exit (find_stack_direction () < 0);
252b5132 13902}
13b2be9c
DJ
13903_ACEOF
13904rm -f conftest$ac_exeext
13905if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13906 (eval $ac_link) 2>&5
13907 ac_status=$?
13908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13909 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13911 (eval $ac_try) 2>&5
13912 ac_status=$?
13913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13914 (exit $ac_status); }; }; then
252b5132
RH
13915 ac_cv_c_stack_direction=1
13916else
13b2be9c
DJ
13917 echo "$as_me: program exited with status $ac_status" >&5
13918echo "$as_me: failed program was:" >&5
13919sed 's/^/| /' conftest.$ac_ext >&5
13920
13921( exit $ac_status )
13922ac_cv_c_stack_direction=-1
252b5132 13923fi
ab509236 13924rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 13925fi
252b5132 13926fi
13b2be9c
DJ
13927echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13928echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
252b5132 13929
13b2be9c 13930cat >>confdefs.h <<_ACEOF
252b5132 13931#define STACK_DIRECTION $ac_cv_c_stack_direction
13b2be9c
DJ
13932_ACEOF
13933
252b5132
RH
13934
13935fi
13936
13b2be9c
DJ
13937echo "$as_me:$LINENO: checking for inline" >&5
13938echo $ECHO_N "checking for inline... $ECHO_C" >&6
13939if test "${ac_cv_c_inline+set}" = set; then
13940 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
13941else
13942 ac_cv_c_inline=no
13943for ac_kw in inline __inline__ __inline; do
13b2be9c 13944 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
13945/* confdefs.h. */
13946_ACEOF
13947cat confdefs.h >>conftest.$ac_ext
13948cat >>conftest.$ac_ext <<_ACEOF
13949/* end confdefs.h. */
13950#ifndef __cplusplus
13951typedef int foo_t;
13952static $ac_kw foo_t static_foo () {return 0; }
13953$ac_kw foo_t foo () {return 0; }
13954#endif
252b5132 13955
13b2be9c
DJ
13956_ACEOF
13957rm -f conftest.$ac_objext
13958if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ab509236 13959 (eval $ac_compile) 2>conftest.er1
13b2be9c 13960 ac_status=$?
ab509236
L
13961 grep -v '^ *+' conftest.er1 >conftest.err
13962 rm -f conftest.er1
13963 cat conftest.err >&5
13b2be9c
DJ
13964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13965 (exit $ac_status); } &&
1ad12f97
NC
13966 { ac_try='test -z "$ac_c_werror_flag"
13967 || test ! -s conftest.err'
ab509236
L
13968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13969 (eval $ac_try) 2>&5
13970 ac_status=$?
13971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13972 (exit $ac_status); }; } &&
13973 { ac_try='test -s conftest.$ac_objext'
13b2be9c
DJ
13974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13975 (eval $ac_try) 2>&5
13976 ac_status=$?
13977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13978 (exit $ac_status); }; }; then
252b5132
RH
13979 ac_cv_c_inline=$ac_kw; break
13980else
13b2be9c
DJ
13981 echo "$as_me: failed program was:" >&5
13982sed 's/^/| /' conftest.$ac_ext >&5
13983
252b5132 13984fi
ab509236 13985rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
13986done
13987
13988fi
13b2be9c
DJ
13989echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
13990echo "${ECHO_T}$ac_cv_c_inline" >&6
ab509236
L
13991
13992
13b2be9c 13993case $ac_cv_c_inline in
252b5132 13994 inline | yes) ;;
ab509236
L
13995 *)
13996 case $ac_cv_c_inline in
13997 no) ac_val=;;
13998 *) ac_val=$ac_cv_c_inline;;
13999 esac
14000 cat >>confdefs.h <<_ACEOF
14001#ifndef __cplusplus
14002#define inline $ac_val
14003#endif
13b2be9c 14004_ACEOF
ab509236 14005 ;;
252b5132
RH
14006esac
14007
6840198f 14008
d6d788bd 14009# VMS doesn't have unlink.
13b2be9c
DJ
14010
14011
252b5132
RH
14012for ac_func in unlink remove
14013do
13b2be9c
DJ
14014as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14015echo "$as_me:$LINENO: checking for $ac_func" >&5
14016echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14017if eval "test \"\${$as_ac_var+set}\" = set"; then
14018 echo $ECHO_N "(cached) $ECHO_C" >&6
14019else
14020 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
14021/* confdefs.h. */
14022_ACEOF
14023cat confdefs.h >>conftest.$ac_ext
14024cat >>conftest.$ac_ext <<_ACEOF
14025/* end confdefs.h. */
ab509236
L
14026/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14027 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14028#define $ac_func innocuous_$ac_func
14029
252b5132 14030/* System header to define __stub macros and hopefully few prototypes,
13b2be9c
DJ
14031 which can conflict with char $ac_func (); below.
14032 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14033 <limits.h> exists even on freestanding compilers. */
ab509236 14034
13b2be9c
DJ
14035#ifdef __STDC__
14036# include <limits.h>
14037#else
14038# include <assert.h>
14039#endif
ab509236
L
14040
14041#undef $ac_func
14042
252b5132 14043/* Override any gcc2 internal prototype to avoid an error. */
13b2be9c
DJ
14044#ifdef __cplusplus
14045extern "C"
14046{
14047#endif
252b5132 14048/* We use char because int might match the return type of a gcc2
13b2be9c
DJ
14049 builtin and then its argument prototype would still apply. */
14050char $ac_func ();
252b5132
RH
14051/* The GNU C library defines this for functions which it implements
14052 to always fail with ENOSYS. Some functions are actually named
14053 something starting with __ and the normal name is an alias. */
14054#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14055choke me
14056#else
13b2be9c
DJ
14057char (*f) () = $ac_func;
14058#endif
14059#ifdef __cplusplus
14060}
252b5132
RH
14061#endif
14062
13b2be9c
DJ
14063int
14064main ()
14065{
14066return f != $ac_func;
14067 ;
14068 return 0;
14069}
14070_ACEOF
14071rm -f conftest.$ac_objext conftest$ac_exeext
14072if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 14073 (eval $ac_link) 2>conftest.er1
13b2be9c 14074 ac_status=$?
ab509236
L
14075 grep -v '^ *+' conftest.er1 >conftest.err
14076 rm -f conftest.er1
14077 cat conftest.err >&5
13b2be9c
DJ
14078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14079 (exit $ac_status); } &&
1ad12f97
NC
14080 { ac_try='test -z "$ac_c_werror_flag"
14081 || test ! -s conftest.err'
ab509236
L
14082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14083 (eval $ac_try) 2>&5
14084 ac_status=$?
14085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14086 (exit $ac_status); }; } &&
14087 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
14088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14089 (eval $ac_try) 2>&5
14090 ac_status=$?
14091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14092 (exit $ac_status); }; }; then
14093 eval "$as_ac_var=yes"
14094else
14095 echo "$as_me: failed program was:" >&5
14096sed 's/^/| /' conftest.$ac_ext >&5
14097
14098eval "$as_ac_var=no"
14099fi
ab509236
L
14100rm -f conftest.err conftest.$ac_objext \
14101 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
14102fi
14103echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14104echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14105if test `eval echo '${'$as_ac_var'}'` = yes; then
14106 cat >>confdefs.h <<_ACEOF
14107#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14108_ACEOF
252b5132 14109 break
252b5132
RH
14110fi
14111done
14112
6840198f 14113
d6d788bd 14114# Some systems don't have sbrk().
13b2be9c 14115
252b5132
RH
14116for ac_func in sbrk
14117do
13b2be9c
DJ
14118as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14119echo "$as_me:$LINENO: checking for $ac_func" >&5
14120echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14121if eval "test \"\${$as_ac_var+set}\" = set"; then
14122 echo $ECHO_N "(cached) $ECHO_C" >&6
14123else
14124 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
14125/* confdefs.h. */
14126_ACEOF
14127cat confdefs.h >>conftest.$ac_ext
14128cat >>conftest.$ac_ext <<_ACEOF
14129/* end confdefs.h. */
ab509236
L
14130/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14131 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14132#define $ac_func innocuous_$ac_func
14133
252b5132 14134/* System header to define __stub macros and hopefully few prototypes,
13b2be9c
DJ
14135 which can conflict with char $ac_func (); below.
14136 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14137 <limits.h> exists even on freestanding compilers. */
ab509236 14138
13b2be9c
DJ
14139#ifdef __STDC__
14140# include <limits.h>
14141#else
14142# include <assert.h>
14143#endif
ab509236
L
14144
14145#undef $ac_func
14146
252b5132 14147/* Override any gcc2 internal prototype to avoid an error. */
13b2be9c
DJ
14148#ifdef __cplusplus
14149extern "C"
14150{
14151#endif
252b5132 14152/* We use char because int might match the return type of a gcc2
13b2be9c
DJ
14153 builtin and then its argument prototype would still apply. */
14154char $ac_func ();
252b5132
RH
14155/* The GNU C library defines this for functions which it implements
14156 to always fail with ENOSYS. Some functions are actually named
14157 something starting with __ and the normal name is an alias. */
14158#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14159choke me
14160#else
13b2be9c
DJ
14161char (*f) () = $ac_func;
14162#endif
14163#ifdef __cplusplus
14164}
252b5132
RH
14165#endif
14166
13b2be9c
DJ
14167int
14168main ()
14169{
14170return f != $ac_func;
14171 ;
14172 return 0;
14173}
14174_ACEOF
14175rm -f conftest.$ac_objext conftest$ac_exeext
14176if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 14177 (eval $ac_link) 2>conftest.er1
13b2be9c 14178 ac_status=$?
ab509236
L
14179 grep -v '^ *+' conftest.er1 >conftest.err
14180 rm -f conftest.er1
14181 cat conftest.err >&5
13b2be9c
DJ
14182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14183 (exit $ac_status); } &&
1ad12f97
NC
14184 { ac_try='test -z "$ac_c_werror_flag"
14185 || test ! -s conftest.err'
ab509236
L
14186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14187 (eval $ac_try) 2>&5
14188 ac_status=$?
14189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14190 (exit $ac_status); }; } &&
14191 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
14192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14193 (eval $ac_try) 2>&5
14194 ac_status=$?
14195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14196 (exit $ac_status); }; }; then
14197 eval "$as_ac_var=yes"
14198else
14199 echo "$as_me: failed program was:" >&5
14200sed 's/^/| /' conftest.$ac_ext >&5
14201
14202eval "$as_ac_var=no"
14203fi
ab509236
L
14204rm -f conftest.err conftest.$ac_objext \
14205 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
14206fi
14207echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14208echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14209if test `eval echo '${'$as_ac_var'}'` = yes; then
14210 cat >>confdefs.h <<_ACEOF
14211#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14212_ACEOF
252b5132 14213
252b5132
RH
14214fi
14215done
14216
d6d788bd 14217
39bec121
TW
14218# do we need the math library?
14219case "${need_libm}" in
13b2be9c 14220yes)
39bec121 14221 LIBM=
f9c19112 14222case $host in
d70c5fc7 14223*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
d7040cdb 14224 # These system don't have libm, or don't need it
39bec121
TW
14225 ;;
14226*-ncr-sysv4.3*)
13b2be9c
DJ
14227 echo "$as_me:$LINENO: checking for _mwvalidcheckl in -lmw" >&5
14228echo $ECHO_N "checking for _mwvalidcheckl in -lmw... $ECHO_C" >&6
14229if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then
14230 echo $ECHO_N "(cached) $ECHO_C" >&6
39bec121 14231else
13b2be9c 14232 ac_check_lib_save_LIBS=$LIBS
39bec121 14233LIBS="-lmw $LIBS"
13b2be9c 14234cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
14235/* confdefs.h. */
14236_ACEOF
14237cat confdefs.h >>conftest.$ac_ext
14238cat >>conftest.$ac_ext <<_ACEOF
14239/* end confdefs.h. */
14240
39bec121 14241/* Override any gcc2 internal prototype to avoid an error. */
13b2be9c
DJ
14242#ifdef __cplusplus
14243extern "C"
14244#endif
39bec121 14245/* We use char because int might match the return type of a gcc2
13b2be9c
DJ
14246 builtin and then its argument prototype would still apply. */
14247char _mwvalidcheckl ();
14248int
14249main ()
14250{
14251_mwvalidcheckl ();
14252 ;
14253 return 0;
14254}
14255_ACEOF
14256rm -f conftest.$ac_objext conftest$ac_exeext
14257if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 14258 (eval $ac_link) 2>conftest.er1
13b2be9c 14259 ac_status=$?
ab509236
L
14260 grep -v '^ *+' conftest.er1 >conftest.err
14261 rm -f conftest.er1
14262 cat conftest.err >&5
13b2be9c
DJ
14263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14264 (exit $ac_status); } &&
1ad12f97
NC
14265 { ac_try='test -z "$ac_c_werror_flag"
14266 || test ! -s conftest.err'
ab509236
L
14267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14268 (eval $ac_try) 2>&5
14269 ac_status=$?
14270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14271 (exit $ac_status); }; } &&
14272 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
14273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14274 (eval $ac_try) 2>&5
14275 ac_status=$?
14276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14277 (exit $ac_status); }; }; then
14278 ac_cv_lib_mw__mwvalidcheckl=yes
14279else
14280 echo "$as_me: failed program was:" >&5
14281sed 's/^/| /' conftest.$ac_ext >&5
14282
14283ac_cv_lib_mw__mwvalidcheckl=no
14284fi
ab509236
L
14285rm -f conftest.err conftest.$ac_objext \
14286 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
14287LIBS=$ac_check_lib_save_LIBS
14288fi
14289echo "$as_me:$LINENO: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
14290echo "${ECHO_T}$ac_cv_lib_mw__mwvalidcheckl" >&6
14291if test $ac_cv_lib_mw__mwvalidcheckl = yes; then
39bec121 14292 LIBM="-lmw"
39bec121
TW
14293fi
14294
d7040cdb
SE
14295 echo "$as_me:$LINENO: checking for cos in -lm" >&5
14296echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6
14297if test "${ac_cv_lib_m_cos+set}" = set; then
13b2be9c 14298 echo $ECHO_N "(cached) $ECHO_C" >&6
39bec121 14299else
13b2be9c 14300 ac_check_lib_save_LIBS=$LIBS
39bec121 14301LIBS="-lm $LIBS"
13b2be9c 14302cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
14303/* confdefs.h. */
14304_ACEOF
14305cat confdefs.h >>conftest.$ac_ext
14306cat >>conftest.$ac_ext <<_ACEOF
14307/* end confdefs.h. */
39bec121 14308
d7040cdb
SE
14309/* Override any gcc2 internal prototype to avoid an error. */
14310#ifdef __cplusplus
14311extern "C"
14312#endif
14313/* We use char because int might match the return type of a gcc2
14314 builtin and then its argument prototype would still apply. */
14315char cos ();
13b2be9c
DJ
14316int
14317main ()
14318{
d7040cdb 14319cos ();
13b2be9c
DJ
14320 ;
14321 return 0;
14322}
14323_ACEOF
14324rm -f conftest.$ac_objext conftest$ac_exeext
14325if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 14326 (eval $ac_link) 2>conftest.er1
13b2be9c 14327 ac_status=$?
ab509236
L
14328 grep -v '^ *+' conftest.er1 >conftest.err
14329 rm -f conftest.er1
14330 cat conftest.err >&5
13b2be9c
DJ
14331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14332 (exit $ac_status); } &&
1ad12f97
NC
14333 { ac_try='test -z "$ac_c_werror_flag"
14334 || test ! -s conftest.err'
ab509236
L
14335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14336 (eval $ac_try) 2>&5
14337 ac_status=$?
14338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14339 (exit $ac_status); }; } &&
14340 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
14341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14342 (eval $ac_try) 2>&5
14343 ac_status=$?
14344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14345 (exit $ac_status); }; }; then
d7040cdb 14346 ac_cv_lib_m_cos=yes
13b2be9c
DJ
14347else
14348 echo "$as_me: failed program was:" >&5
14349sed 's/^/| /' conftest.$ac_ext >&5
14350
d7040cdb 14351ac_cv_lib_m_cos=no
13b2be9c 14352fi
ab509236
L
14353rm -f conftest.err conftest.$ac_objext \
14354 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
14355LIBS=$ac_check_lib_save_LIBS
14356fi
d7040cdb
SE
14357echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
14358echo "${ECHO_T}$ac_cv_lib_m_cos" >&6
14359if test $ac_cv_lib_m_cos = yes; then
39bec121 14360 LIBM="$LIBM -lm"
39bec121
TW
14361fi
14362
14363 ;;
14364*)
d7040cdb
SE
14365 echo "$as_me:$LINENO: checking for cos in -lm" >&5
14366echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6
14367if test "${ac_cv_lib_m_cos+set}" = set; then
13b2be9c 14368 echo $ECHO_N "(cached) $ECHO_C" >&6
39bec121 14369else
13b2be9c 14370 ac_check_lib_save_LIBS=$LIBS
39bec121 14371LIBS="-lm $LIBS"
13b2be9c 14372cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
14373/* confdefs.h. */
14374_ACEOF
14375cat confdefs.h >>conftest.$ac_ext
14376cat >>conftest.$ac_ext <<_ACEOF
14377/* end confdefs.h. */
39bec121 14378
d7040cdb
SE
14379/* Override any gcc2 internal prototype to avoid an error. */
14380#ifdef __cplusplus
14381extern "C"
14382#endif
14383/* We use char because int might match the return type of a gcc2
14384 builtin and then its argument prototype would still apply. */
14385char cos ();
13b2be9c
DJ
14386int
14387main ()
14388{
d7040cdb 14389cos ();
13b2be9c
DJ
14390 ;
14391 return 0;
14392}
14393_ACEOF
14394rm -f conftest.$ac_objext conftest$ac_exeext
14395if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 14396 (eval $ac_link) 2>conftest.er1
13b2be9c 14397 ac_status=$?
ab509236
L
14398 grep -v '^ *+' conftest.er1 >conftest.err
14399 rm -f conftest.er1
14400 cat conftest.err >&5
13b2be9c
DJ
14401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402 (exit $ac_status); } &&
1ad12f97
NC
14403 { ac_try='test -z "$ac_c_werror_flag"
14404 || test ! -s conftest.err'
ab509236
L
14405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14406 (eval $ac_try) 2>&5
14407 ac_status=$?
14408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14409 (exit $ac_status); }; } &&
14410 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
14411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14412 (eval $ac_try) 2>&5
14413 ac_status=$?
14414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14415 (exit $ac_status); }; }; then
d7040cdb 14416 ac_cv_lib_m_cos=yes
13b2be9c
DJ
14417else
14418 echo "$as_me: failed program was:" >&5
14419sed 's/^/| /' conftest.$ac_ext >&5
14420
d7040cdb 14421ac_cv_lib_m_cos=no
13b2be9c 14422fi
ab509236
L
14423rm -f conftest.err conftest.$ac_objext \
14424 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
14425LIBS=$ac_check_lib_save_LIBS
14426fi
d7040cdb
SE
14427echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
14428echo "${ECHO_T}$ac_cv_lib_m_cos" >&6
14429if test $ac_cv_lib_m_cos = yes; then
39bec121 14430 LIBM="-lm"
39bec121
TW
14431fi
14432
14433 ;;
14434esac
14435
13b2be9c 14436
d7040cdb 14437
39bec121
TW
14438 ;;
14439esac
14440
252b5132
RH
14441# Some non-ANSI preprocessors botch requoting inside strings. That's bad
14442# enough, but on some of those systems, the assert macro relies on requoting
14443# working properly!
13b2be9c
DJ
14444echo "$as_me:$LINENO: checking for working assert macro" >&5
14445echo $ECHO_N "checking for working assert macro... $ECHO_C" >&6
14446if test "${gas_cv_assert_ok+set}" = set; then
14447 echo $ECHO_N "(cached) $ECHO_C" >&6
14448else
14449 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
14450/* confdefs.h. */
14451_ACEOF
14452cat confdefs.h >>conftest.$ac_ext
14453cat >>conftest.$ac_ext <<_ACEOF
14454/* end confdefs.h. */
252b5132
RH
14455#include <assert.h>
14456#include <stdio.h>
13b2be9c
DJ
14457int
14458main ()
14459{
252b5132
RH
14460
14461/* check for requoting problems */
14462static int a, b, c, d;
14463static char *s;
14464assert (!strcmp(s, "foo bar baz quux"));
14465/* check for newline handling */
14466assert (a == b
14467 || c == d);
14468
13b2be9c
DJ
14469 ;
14470 return 0;
14471}
14472_ACEOF
14473rm -f conftest.$ac_objext conftest$ac_exeext
14474if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 14475 (eval $ac_link) 2>conftest.er1
13b2be9c 14476 ac_status=$?
ab509236
L
14477 grep -v '^ *+' conftest.er1 >conftest.err
14478 rm -f conftest.er1
14479 cat conftest.err >&5
13b2be9c
DJ
14480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14481 (exit $ac_status); } &&
1ad12f97
NC
14482 { ac_try='test -z "$ac_c_werror_flag"
14483 || test ! -s conftest.err'
ab509236
L
14484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14485 (eval $ac_try) 2>&5
14486 ac_status=$?
14487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14488 (exit $ac_status); }; } &&
14489 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
14490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14491 (eval $ac_try) 2>&5
14492 ac_status=$?
14493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14494 (exit $ac_status); }; }; then
252b5132
RH
14495 gas_cv_assert_ok=yes
14496else
13b2be9c
DJ
14497 echo "$as_me: failed program was:" >&5
14498sed 's/^/| /' conftest.$ac_ext >&5
14499
14500gas_cv_assert_ok=no
252b5132 14501fi
ab509236
L
14502rm -f conftest.err conftest.$ac_objext \
14503 conftest$ac_exeext conftest.$ac_ext
252b5132 14504fi
13b2be9c
DJ
14505echo "$as_me:$LINENO: result: $gas_cv_assert_ok" >&5
14506echo "${ECHO_T}$gas_cv_assert_ok" >&6
14507test $gas_cv_assert_ok = yes ||
14508cat >>confdefs.h <<\_ACEOF
252b5132 14509#define BROKEN_ASSERT 1
13b2be9c 14510_ACEOF
252b5132 14511
d6d788bd
L
14512
14513
252b5132
RH
14514# On some systems, the system header files may not declare malloc, realloc,
14515# and free. There are places where gas needs these functions to have been
14516# declared -- such as when taking their addresses.
14517gas_test_headers="
14518#ifdef HAVE_MEMORY_H
14519#include <memory.h>
14520#endif
14521#ifdef HAVE_STRING_H
14522#include <string.h>
14523#else
14524#ifdef HAVE_STRINGS_H
14525#include <strings.h>
14526#endif
14527#endif
14528#ifdef HAVE_STDLIB_H
14529#include <stdlib.h>
14530#endif
14531#ifdef HAVE_UNISTD_H
14532#include <unistd.h>
14533#endif
14534"
14535
e8a38df5
AL
14536# Does errno.h declare errno, or do we have to add a separate declaration
14537# for it?
14538
14539echo "$as_me:$LINENO: checking whether declaration is required for errno" >&5
14540echo $ECHO_N "checking whether declaration is required for errno... $ECHO_C" >&6
14541if test "${gas_cv_decl_needed_errno+set}" = set; then
14542 echo $ECHO_N "(cached) $ECHO_C" >&6
14543else
14544 cat >conftest.$ac_ext <<_ACEOF
14545/* confdefs.h. */
14546_ACEOF
14547cat confdefs.h >>conftest.$ac_ext
14548cat >>conftest.$ac_ext <<_ACEOF
14549/* end confdefs.h. */
14550
14551#ifdef HAVE_ERRNO_H
14552#include <errno.h>
14553#endif
14554
14555int
14556main ()
14557{
14558
14559typedef int f;
14560f x;
14561x = (f) errno;
14562
14563 ;
14564 return 0;
14565}
14566_ACEOF
14567rm -f conftest.$ac_objext conftest$ac_exeext
14568if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14569 (eval $ac_link) 2>conftest.er1
14570 ac_status=$?
14571 grep -v '^ *+' conftest.er1 >conftest.err
14572 rm -f conftest.er1
14573 cat conftest.err >&5
14574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14575 (exit $ac_status); } &&
14576 { ac_try='test -z "$ac_c_werror_flag"
14577 || test ! -s conftest.err'
14578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14579 (eval $ac_try) 2>&5
14580 ac_status=$?
14581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14582 (exit $ac_status); }; } &&
14583 { ac_try='test -s conftest$ac_exeext'
14584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14585 (eval $ac_try) 2>&5
14586 ac_status=$?
14587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14588 (exit $ac_status); }; }; then
14589 gas_cv_decl_needed_errno=no
14590else
14591 echo "$as_me: failed program was:" >&5
14592sed 's/^/| /' conftest.$ac_ext >&5
14593
14594gas_cv_decl_needed_errno=yes
14595fi
14596rm -f conftest.err conftest.$ac_objext \
14597 conftest$ac_exeext conftest.$ac_ext
14598fi
14599echo "$as_me:$LINENO: result: $gas_cv_decl_needed_errno" >&5
14600echo "${ECHO_T}$gas_cv_decl_needed_errno" >&6
14601if test $gas_cv_decl_needed_errno = yes; then
14602
14603cat >>confdefs.h <<\_ACEOF
14604#define NEED_DECLARATION_ERRNO 1
14605_ACEOF
14606
14607fi
14608
14609
56f36663
NC
14610echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
14611echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
14612if test "${gas_cv_decl_getopt_unistd_h+set}" = set; then
14613 echo $ECHO_N "(cached) $ECHO_C" >&6
14614else
14615 cat >conftest.$ac_ext <<_ACEOF
14616/* confdefs.h. */
14617_ACEOF
14618cat confdefs.h >>conftest.$ac_ext
14619cat >>conftest.$ac_ext <<_ACEOF
14620/* end confdefs.h. */
14621#include <unistd.h>
14622int
14623main ()
14624{
14625extern int getopt (int, char *const*, const char *);
14626 ;
14627 return 0;
14628}
14629_ACEOF
14630rm -f conftest.$ac_objext
14631if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14632 (eval $ac_compile) 2>conftest.er1
14633 ac_status=$?
14634 grep -v '^ *+' conftest.er1 >conftest.err
14635 rm -f conftest.er1
14636 cat conftest.err >&5
14637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14638 (exit $ac_status); } &&
14639 { ac_try='test -z "$ac_c_werror_flag"
14640 || test ! -s conftest.err'
14641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14642 (eval $ac_try) 2>&5
14643 ac_status=$?
14644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14645 (exit $ac_status); }; } &&
14646 { ac_try='test -s conftest.$ac_objext'
14647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14648 (eval $ac_try) 2>&5
14649 ac_status=$?
14650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14651 (exit $ac_status); }; }; then
14652 gas_cv_decl_getopt_unistd_h=yes
14653else
14654 echo "$as_me: failed program was:" >&5
14655sed 's/^/| /' conftest.$ac_ext >&5
14656
14657gas_cv_decl_getopt_unistd_h=no
14658fi
14659rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14660fi
14661
14662echo "$as_me:$LINENO: result: $gas_cv_decl_getopt_unistd_h" >&5
14663echo "${ECHO_T}$gas_cv_decl_getopt_unistd_h" >&6
14664if test $gas_cv_decl_getopt_unistd_h = yes; then
14665
14666cat >>confdefs.h <<\_ACEOF
14667#define HAVE_DECL_GETOPT 1
14668_ACEOF
14669
14670fi
14671
e8a38df5
AL
14672
14673echo "$as_me:$LINENO: checking whether declaration is required for environ" >&5
14674echo $ECHO_N "checking whether declaration is required for environ... $ECHO_C" >&6
14675if test "${gas_cv_decl_needed_environ+set}" = set; then
13b2be9c
DJ
14676 echo $ECHO_N "(cached) $ECHO_C" >&6
14677else
14678 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
14679/* confdefs.h. */
14680_ACEOF
14681cat confdefs.h >>conftest.$ac_ext
14682cat >>conftest.$ac_ext <<_ACEOF
14683/* end confdefs.h. */
252b5132 14684$gas_test_headers
13b2be9c
DJ
14685int
14686main ()
14687{
252b5132 14688
e8a38df5 14689typedef char **f;
252b5132 14690f x;
e8a38df5 14691x = (f) environ;
252b5132 14692
13b2be9c
DJ
14693 ;
14694 return 0;
14695}
14696_ACEOF
14697rm -f conftest.$ac_objext conftest$ac_exeext
14698if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 14699 (eval $ac_link) 2>conftest.er1
13b2be9c 14700 ac_status=$?
ab509236
L
14701 grep -v '^ *+' conftest.er1 >conftest.err
14702 rm -f conftest.er1
14703 cat conftest.err >&5
13b2be9c
DJ
14704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14705 (exit $ac_status); } &&
1ad12f97
NC
14706 { ac_try='test -z "$ac_c_werror_flag"
14707 || test ! -s conftest.err'
ab509236
L
14708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14709 (eval $ac_try) 2>&5
14710 ac_status=$?
14711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14712 (exit $ac_status); }; } &&
14713 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
14714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14715 (eval $ac_try) 2>&5
14716 ac_status=$?
14717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14718 (exit $ac_status); }; }; then
e8a38df5 14719 gas_cv_decl_needed_environ=no
252b5132 14720else
13b2be9c
DJ
14721 echo "$as_me: failed program was:" >&5
14722sed 's/^/| /' conftest.$ac_ext >&5
14723
e8a38df5 14724gas_cv_decl_needed_environ=yes
252b5132 14725fi
ab509236
L
14726rm -f conftest.err conftest.$ac_objext \
14727 conftest$ac_exeext conftest.$ac_ext
252b5132 14728fi
e8a38df5
AL
14729echo "$as_me:$LINENO: result: $gas_cv_decl_needed_environ" >&5
14730echo "${ECHO_T}$gas_cv_decl_needed_environ" >&6
14731if test $gas_cv_decl_needed_environ = yes; then
13b2be9c
DJ
14732
14733cat >>confdefs.h <<\_ACEOF
e8a38df5 14734#define NEED_DECLARATION_ENVIRON 1
13b2be9c
DJ
14735_ACEOF
14736
14737fi
14738
14739
e8a38df5
AL
14740echo "$as_me:$LINENO: checking whether declaration is required for ffs" >&5
14741echo $ECHO_N "checking whether declaration is required for ffs... $ECHO_C" >&6
14742if test "${gas_cv_decl_needed_ffs+set}" = set; then
13b2be9c
DJ
14743 echo $ECHO_N "(cached) $ECHO_C" >&6
14744else
14745 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
14746/* confdefs.h. */
14747_ACEOF
14748cat confdefs.h >>conftest.$ac_ext
14749cat >>conftest.$ac_ext <<_ACEOF
14750/* end confdefs.h. */
14751$gas_test_headers
14752int
14753main ()
14754{
14755
e8a38df5 14756typedef int (*f)(int);
13b2be9c 14757f x;
e8a38df5 14758x = (f) ffs;
13b2be9c
DJ
14759
14760 ;
14761 return 0;
14762}
14763_ACEOF
14764rm -f conftest.$ac_objext conftest$ac_exeext
14765if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 14766 (eval $ac_link) 2>conftest.er1
13b2be9c 14767 ac_status=$?
ab509236
L
14768 grep -v '^ *+' conftest.er1 >conftest.err
14769 rm -f conftest.er1
14770 cat conftest.err >&5
13b2be9c
DJ
14771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14772 (exit $ac_status); } &&
1ad12f97
NC
14773 { ac_try='test -z "$ac_c_werror_flag"
14774 || test ! -s conftest.err'
ab509236
L
14775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14776 (eval $ac_try) 2>&5
14777 ac_status=$?
14778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14779 (exit $ac_status); }; } &&
14780 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
14781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14782 (eval $ac_try) 2>&5
14783 ac_status=$?
14784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14785 (exit $ac_status); }; }; then
e8a38df5 14786 gas_cv_decl_needed_ffs=no
13b2be9c
DJ
14787else
14788 echo "$as_me: failed program was:" >&5
14789sed 's/^/| /' conftest.$ac_ext >&5
14790
e8a38df5 14791gas_cv_decl_needed_ffs=yes
13b2be9c 14792fi
ab509236
L
14793rm -f conftest.err conftest.$ac_objext \
14794 conftest$ac_exeext conftest.$ac_ext
13b2be9c 14795fi
e8a38df5
AL
14796echo "$as_me:$LINENO: result: $gas_cv_decl_needed_ffs" >&5
14797echo "${ECHO_T}$gas_cv_decl_needed_ffs" >&6
14798if test $gas_cv_decl_needed_ffs = yes; then
13b2be9c
DJ
14799
14800cat >>confdefs.h <<\_ACEOF
e8a38df5 14801#define NEED_DECLARATION_FFS 1
13b2be9c
DJ
14802_ACEOF
14803
14804fi
14805
14806
14807echo "$as_me:$LINENO: checking whether declaration is required for free" >&5
14808echo $ECHO_N "checking whether declaration is required for free... $ECHO_C" >&6
14809if test "${gas_cv_decl_needed_free+set}" = set; then
14810 echo $ECHO_N "(cached) $ECHO_C" >&6
14811else
14812 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
14813/* confdefs.h. */
14814_ACEOF
14815cat confdefs.h >>conftest.$ac_ext
14816cat >>conftest.$ac_ext <<_ACEOF
14817/* end confdefs.h. */
14818$gas_test_headers
14819int
14820main ()
14821{
14822
14823typedef void (*f)();
14824f x;
14825x = (f) free;
14826
14827 ;
14828 return 0;
14829}
14830_ACEOF
14831rm -f conftest.$ac_objext conftest$ac_exeext
14832if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 14833 (eval $ac_link) 2>conftest.er1
13b2be9c 14834 ac_status=$?
ab509236
L
14835 grep -v '^ *+' conftest.er1 >conftest.err
14836 rm -f conftest.er1
14837 cat conftest.err >&5
13b2be9c
DJ
14838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14839 (exit $ac_status); } &&
1ad12f97
NC
14840 { ac_try='test -z "$ac_c_werror_flag"
14841 || test ! -s conftest.err'
ab509236
L
14842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14843 (eval $ac_try) 2>&5
14844 ac_status=$?
14845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14846 (exit $ac_status); }; } &&
14847 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
14848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14849 (eval $ac_try) 2>&5
14850 ac_status=$?
14851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14852 (exit $ac_status); }; }; then
14853 gas_cv_decl_needed_free=no
14854else
14855 echo "$as_me: failed program was:" >&5
14856sed 's/^/| /' conftest.$ac_ext >&5
14857
14858gas_cv_decl_needed_free=yes
14859fi
ab509236
L
14860rm -f conftest.err conftest.$ac_objext \
14861 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
14862fi
14863echo "$as_me:$LINENO: result: $gas_cv_decl_needed_free" >&5
14864echo "${ECHO_T}$gas_cv_decl_needed_free" >&6
14865if test $gas_cv_decl_needed_free = yes; then
14866
14867cat >>confdefs.h <<\_ACEOF
14868#define NEED_DECLARATION_FREE 1
14869_ACEOF
14870
14871fi
14872
14873
e8a38df5
AL
14874echo "$as_me:$LINENO: checking whether declaration is required for malloc" >&5
14875echo $ECHO_N "checking whether declaration is required for malloc... $ECHO_C" >&6
14876if test "${gas_cv_decl_needed_malloc+set}" = set; then
13b2be9c
DJ
14877 echo $ECHO_N "(cached) $ECHO_C" >&6
14878else
14879 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
14880/* confdefs.h. */
14881_ACEOF
14882cat confdefs.h >>conftest.$ac_ext
14883cat >>conftest.$ac_ext <<_ACEOF
14884/* end confdefs.h. */
14885$gas_test_headers
14886int
14887main ()
14888{
14889
14890typedef char *(*f)();
14891f x;
e8a38df5 14892x = (f) malloc;
13b2be9c
DJ
14893
14894 ;
14895 return 0;
14896}
14897_ACEOF
14898rm -f conftest.$ac_objext conftest$ac_exeext
14899if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 14900 (eval $ac_link) 2>conftest.er1
13b2be9c 14901 ac_status=$?
ab509236
L
14902 grep -v '^ *+' conftest.er1 >conftest.err
14903 rm -f conftest.er1
14904 cat conftest.err >&5
13b2be9c
DJ
14905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14906 (exit $ac_status); } &&
1ad12f97
NC
14907 { ac_try='test -z "$ac_c_werror_flag"
14908 || test ! -s conftest.err'
ab509236
L
14909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14910 (eval $ac_try) 2>&5
14911 ac_status=$?
14912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14913 (exit $ac_status); }; } &&
14914 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
14915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14916 (eval $ac_try) 2>&5
14917 ac_status=$?
14918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14919 (exit $ac_status); }; }; then
e8a38df5 14920 gas_cv_decl_needed_malloc=no
13b2be9c
DJ
14921else
14922 echo "$as_me: failed program was:" >&5
14923sed 's/^/| /' conftest.$ac_ext >&5
14924
e8a38df5 14925gas_cv_decl_needed_malloc=yes
13b2be9c 14926fi
ab509236
L
14927rm -f conftest.err conftest.$ac_objext \
14928 conftest$ac_exeext conftest.$ac_ext
13b2be9c 14929fi
e8a38df5
AL
14930echo "$as_me:$LINENO: result: $gas_cv_decl_needed_malloc" >&5
14931echo "${ECHO_T}$gas_cv_decl_needed_malloc" >&6
14932if test $gas_cv_decl_needed_malloc = yes; then
13b2be9c
DJ
14933
14934cat >>confdefs.h <<\_ACEOF
e8a38df5 14935#define NEED_DECLARATION_MALLOC 1
13b2be9c
DJ
14936_ACEOF
14937
14938fi
14939
14940
e8a38df5
AL
14941echo "$as_me:$LINENO: checking whether declaration is required for sbrk" >&5
14942echo $ECHO_N "checking whether declaration is required for sbrk... $ECHO_C" >&6
14943if test "${gas_cv_decl_needed_sbrk+set}" = set; then
13b2be9c
DJ
14944 echo $ECHO_N "(cached) $ECHO_C" >&6
14945else
14946 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
14947/* confdefs.h. */
14948_ACEOF
14949cat confdefs.h >>conftest.$ac_ext
14950cat >>conftest.$ac_ext <<_ACEOF
14951/* end confdefs.h. */
14952$gas_test_headers
14953int
14954main ()
14955{
14956
e8a38df5 14957typedef char *(*f)();
13b2be9c 14958f x;
e8a38df5 14959x = (f) sbrk;
13b2be9c
DJ
14960
14961 ;
14962 return 0;
14963}
14964_ACEOF
14965rm -f conftest.$ac_objext conftest$ac_exeext
14966if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 14967 (eval $ac_link) 2>conftest.er1
13b2be9c 14968 ac_status=$?
ab509236
L
14969 grep -v '^ *+' conftest.er1 >conftest.err
14970 rm -f conftest.er1
14971 cat conftest.err >&5
13b2be9c
DJ
14972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14973 (exit $ac_status); } &&
1ad12f97
NC
14974 { ac_try='test -z "$ac_c_werror_flag"
14975 || test ! -s conftest.err'
ab509236
L
14976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14977 (eval $ac_try) 2>&5
14978 ac_status=$?
14979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14980 (exit $ac_status); }; } &&
14981 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
14982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14983 (eval $ac_try) 2>&5
14984 ac_status=$?
14985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14986 (exit $ac_status); }; }; then
e8a38df5 14987 gas_cv_decl_needed_sbrk=no
13b2be9c
DJ
14988else
14989 echo "$as_me: failed program was:" >&5
14990sed 's/^/| /' conftest.$ac_ext >&5
14991
e8a38df5 14992gas_cv_decl_needed_sbrk=yes
13b2be9c 14993fi
ab509236
L
14994rm -f conftest.err conftest.$ac_objext \
14995 conftest$ac_exeext conftest.$ac_ext
13b2be9c 14996fi
e8a38df5
AL
14997echo "$as_me:$LINENO: result: $gas_cv_decl_needed_sbrk" >&5
14998echo "${ECHO_T}$gas_cv_decl_needed_sbrk" >&6
14999if test $gas_cv_decl_needed_sbrk = yes; then
13b2be9c
DJ
15000
15001cat >>confdefs.h <<\_ACEOF
e8a38df5 15002#define NEED_DECLARATION_SBRK 1
13b2be9c
DJ
15003_ACEOF
15004
15005fi
15006
15007
e8a38df5
AL
15008echo "$as_me:$LINENO: checking whether declaration is required for strstr" >&5
15009echo $ECHO_N "checking whether declaration is required for strstr... $ECHO_C" >&6
15010if test "${gas_cv_decl_needed_strstr+set}" = set; then
13b2be9c
DJ
15011 echo $ECHO_N "(cached) $ECHO_C" >&6
15012else
15013 cat >conftest.$ac_ext <<_ACEOF
13b2be9c
DJ
15014/* confdefs.h. */
15015_ACEOF
15016cat confdefs.h >>conftest.$ac_ext
15017cat >>conftest.$ac_ext <<_ACEOF
15018/* end confdefs.h. */
e8a38df5 15019$gas_test_headers
13b2be9c
DJ
15020int
15021main ()
15022{
15023
e8a38df5 15024typedef char *(*f)();
13b2be9c 15025f x;
e8a38df5 15026x = (f) strstr;
13b2be9c
DJ
15027
15028 ;
15029 return 0;
15030}
15031_ACEOF
15032rm -f conftest.$ac_objext conftest$ac_exeext
15033if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ab509236 15034 (eval $ac_link) 2>conftest.er1
13b2be9c 15035 ac_status=$?
ab509236
L
15036 grep -v '^ *+' conftest.er1 >conftest.err
15037 rm -f conftest.er1
15038 cat conftest.err >&5
13b2be9c
DJ
15039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15040 (exit $ac_status); } &&
1ad12f97
NC
15041 { ac_try='test -z "$ac_c_werror_flag"
15042 || test ! -s conftest.err'
ab509236
L
15043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15044 (eval $ac_try) 2>&5
15045 ac_status=$?
15046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15047 (exit $ac_status); }; } &&
15048 { ac_try='test -s conftest$ac_exeext'
13b2be9c
DJ
15049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15050 (eval $ac_try) 2>&5
15051 ac_status=$?
15052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15053 (exit $ac_status); }; }; then
e8a38df5 15054 gas_cv_decl_needed_strstr=no
13b2be9c
DJ
15055else
15056 echo "$as_me: failed program was:" >&5
15057sed 's/^/| /' conftest.$ac_ext >&5
15058
e8a38df5 15059gas_cv_decl_needed_strstr=yes
13b2be9c 15060fi
ab509236
L
15061rm -f conftest.err conftest.$ac_objext \
15062 conftest$ac_exeext conftest.$ac_ext
13b2be9c 15063fi
e8a38df5
AL
15064echo "$as_me:$LINENO: result: $gas_cv_decl_needed_strstr" >&5
15065echo "${ECHO_T}$gas_cv_decl_needed_strstr" >&6
15066if test $gas_cv_decl_needed_strstr = yes; then
13b2be9c
DJ
15067
15068cat >>confdefs.h <<\_ACEOF
e8a38df5 15069#define NEED_DECLARATION_STRSTR 1
13b2be9c
DJ
15070_ACEOF
15071
15072fi
15073
15074
6d74f28b
EB
15075echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
15076echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
15077if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
15078 echo $ECHO_N "(cached) $ECHO_C" >&6
15079else
15080 cat >conftest.$ac_ext <<_ACEOF
15081/* confdefs.h. */
15082_ACEOF
15083cat confdefs.h >>conftest.$ac_ext
15084cat >>conftest.$ac_ext <<_ACEOF
15085/* end confdefs.h. */
15086$ac_includes_default
15087int
15088main ()
15089{
15090#ifndef vsnprintf
15091 char *p = (char *) vsnprintf;
15092#endif
15093
15094 ;
15095 return 0;
15096}
15097_ACEOF
15098rm -f conftest.$ac_objext
15099if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15100 (eval $ac_compile) 2>conftest.er1
15101 ac_status=$?
15102 grep -v '^ *+' conftest.er1 >conftest.err
15103 rm -f conftest.er1
15104 cat conftest.err >&5
15105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15106 (exit $ac_status); } &&
15107 { ac_try='test -z "$ac_c_werror_flag"
15108 || test ! -s conftest.err'
15109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15110 (eval $ac_try) 2>&5
15111 ac_status=$?
15112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15113 (exit $ac_status); }; } &&
15114 { ac_try='test -s conftest.$ac_objext'
15115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15116 (eval $ac_try) 2>&5
15117 ac_status=$?
15118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15119 (exit $ac_status); }; }; then
15120 ac_cv_have_decl_vsnprintf=yes
15121else
15122 echo "$as_me: failed program was:" >&5
15123sed 's/^/| /' conftest.$ac_ext >&5
15124
15125ac_cv_have_decl_vsnprintf=no
15126fi
15127rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15128fi
15129echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
15130echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
15131if test $ac_cv_have_decl_vsnprintf = yes; then
15132
15133cat >>confdefs.h <<_ACEOF
15134#define HAVE_DECL_VSNPRINTF 1
15135_ACEOF
15136
15137
15138else
15139 cat >>confdefs.h <<_ACEOF
15140#define HAVE_DECL_VSNPRINTF 0
15141_ACEOF
15142
15143
15144fi
15145
15146
15147
13b2be9c 15148
c973bc5c
NC
15149case "${host}" in
15150*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
15151
15152cat >>confdefs.h <<\_ACEOF
15153#define USE_BINARY_FOPEN 1
15154_ACEOF
15155 ;;
15156esac
15157
15158
13b2be9c 15159
108a6f8e
CD
15160
15161
15162
15163
13b2be9c
DJ
15164 ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
15165
15166 ac_config_commands="$ac_config_commands default"
15167
15168
15169cat >confcache <<\_ACEOF
15170# This file is a shell script that caches the results of configure
15171# tests run on this system so they can be shared between configure
15172# scripts and configure runs, see configure's option --config-cache.
15173# It is not useful on other systems. If it contains results you don't
15174# want to keep, you may remove or edit it.
15175#
15176# config.status only pays attention to the cache file if you give it
15177# the --recheck option to rerun configure.
15178#
15179# `ac_cv_env_foo' variables (set or unset) will be overridden when
15180# loading this file, other *unset* `ac_cv_foo' will be assigned the
15181# following values.
15182
15183_ACEOF
15184
15185# The following way of writing the cache mishandles newlines in values,
15186# but we know of no workaround that is simple, portable, and efficient.
15187# So, don't put newlines in cache variables' values.
15188# Ultrix sh set writes to stderr and can't be redirected directly,
15189# and sets the high bit in the cache file unless we assign to the vars.
15190{
15191 (set) 2>&1 |
15192 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15193 *ac_space=\ *)
15194 # `set' does not quote correctly, so add quotes (double-quote
15195 # substitution turns \\\\ into \\, and sed turns \\ into \).
15196 sed -n \
ab509236
L
15197 "s/'/'\\\\''/g;
15198 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13b2be9c
DJ
15199 ;;
15200 *)
15201 # `set' quotes correctly as required by POSIX, so do not add quotes.
15202 sed -n \
ab509236 15203 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13b2be9c
DJ
15204 ;;
15205 esac;
15206} |
15207 sed '
15208 t clear
15209 : clear
15210 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15211 t end
15212 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15213 : end' >>confcache
15214if diff $cache_file confcache >/dev/null 2>&1; then :; else
15215 if test -w $cache_file; then
15216 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15217 cat confcache >$cache_file
15218 else
15219 echo "not updating unwritable cache $cache_file"
15220 fi
15221fi
15222rm -f confcache
15223
15224test "x$prefix" = xNONE && prefix=$ac_default_prefix
15225# Let make expand exec_prefix.
15226test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15227
15228# VPATH may cause trouble with some makes, so we remove $(srcdir),
15229# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15230# trailing colons and then remove the whole line if VPATH becomes empty
15231# (actually we leave an empty line to preserve line numbers).
15232if test "x$srcdir" = x.; then
ab509236 15233 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13b2be9c
DJ
15234s/:*\$(srcdir):*/:/;
15235s/:*\${srcdir}:*/:/;
15236s/:*@srcdir@:*/:/;
ab509236 15237s/^\([^=]*=[ ]*\):*/\1/;
13b2be9c 15238s/:*$//;
ab509236 15239s/^[^=]*=[ ]*$//;
13b2be9c
DJ
15240}'
15241fi
15242
15243DEFS=-DHAVE_CONFIG_H
15244
15245ac_libobjs=
15246ac_ltlibobjs=
15247for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15248 # 1. Remove the extension, and $U if already installed.
15249 ac_i=`echo "$ac_i" |
ab509236 15250 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
13b2be9c
DJ
15251 # 2. Add them.
15252 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15253 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15254done
15255LIBOBJS=$ac_libobjs
15256
15257LTLIBOBJS=$ac_ltlibobjs
15258
15259
15260if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15261 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
15262Usually this means the macro was only invoked conditionally." >&5
15263echo "$as_me: error: conditional \"AMDEP\" was never defined.
15264Usually this means the macro was only invoked conditionally." >&2;}
15265 { (exit 1); exit 1; }; }
15266fi
15267if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15268 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
15269Usually this means the macro was only invoked conditionally." >&5
15270echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
15271Usually this means the macro was only invoked conditionally." >&2;}
15272 { (exit 1); exit 1; }; }
15273fi
15274if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15275 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
15276Usually this means the macro was only invoked conditionally." >&5
15277echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
15278Usually this means the macro was only invoked conditionally." >&2;}
15279 { (exit 1); exit 1; }; }
15280fi
d5fbea21
DJ
15281if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
15282 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
15283Usually this means the macro was only invoked conditionally." >&5
15284echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
15285Usually this means the macro was only invoked conditionally." >&2;}
15286 { (exit 1); exit 1; }; }
15287fi
13b2be9c
DJ
15288
15289: ${CONFIG_STATUS=./config.status}
15290ac_clean_files_save=$ac_clean_files
15291ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15292{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15293echo "$as_me: creating $CONFIG_STATUS" >&6;}
15294cat >$CONFIG_STATUS <<_ACEOF
15295#! $SHELL
15296# Generated by $as_me.
15297# Run this file to recreate the current configuration.
15298# Compiler output produced by configure, useful for debugging
15299# configure, is in config.log if it exists.
15300
15301debug=false
15302ac_cs_recheck=false
15303ac_cs_silent=false
15304SHELL=\${CONFIG_SHELL-$SHELL}
15305_ACEOF
15306
15307cat >>$CONFIG_STATUS <<\_ACEOF
15308## --------------------- ##
15309## M4sh Initialization. ##
15310## --------------------- ##
15311
15312# Be Bourne compatible
15313if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15314 emulate sh
15315 NULLCMD=:
15316 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15317 # is contrary to our usage. Disable this feature.
15318 alias -g '${1+"$@"}'='"$@"'
15319elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15320 set -o posix
15321fi
ab509236 15322DUALCASE=1; export DUALCASE # for MKS sh
13b2be9c
DJ
15323
15324# Support unset when possible.
ab509236 15325if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13b2be9c
DJ
15326 as_unset=unset
15327else
15328 as_unset=false
15329fi
15330
15331
15332# Work around bugs in pre-3.0 UWIN ksh.
15333$as_unset ENV MAIL MAILPATH
15334PS1='$ '
15335PS2='> '
15336PS4='+ '
15337
15338# NLS nuisances.
15339for as_var in \
15340 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15341 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15342 LC_TELEPHONE LC_TIME
15343do
ab509236 15344 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13b2be9c
DJ
15345 eval $as_var=C; export $as_var
15346 else
15347 $as_unset $as_var
15348 fi
15349done
15350
15351# Required to use basename.
15352if expr a : '\(a\)' >/dev/null 2>&1; then
15353 as_expr=expr
15354else
15355 as_expr=false
15356fi
15357
15358if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
15359 as_basename=basename
15360else
15361 as_basename=false
15362fi
15363
15364
15365# Name of the executable.
15366as_me=`$as_basename "$0" ||
15367$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15368 X"$0" : 'X\(//\)$' \| \
15369 X"$0" : 'X\(/\)$' \| \
15370 . : '\(.\)' 2>/dev/null ||
15371echo X/"$0" |
15372 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15373 /^X\/\(\/\/\)$/{ s//\1/; q; }
15374 /^X\/\(\/\).*/{ s//\1/; q; }
15375 s/.*/./; q'`
15376
15377
15378# PATH needs CR, and LINENO needs CR and PATH.
15379# Avoid depending upon Character Ranges.
15380as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15381as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15382as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15383as_cr_digits='0123456789'
15384as_cr_alnum=$as_cr_Letters$as_cr_digits
15385
15386# The user is always right.
15387if test "${PATH_SEPARATOR+set}" != set; then
15388 echo "#! /bin/sh" >conf$$.sh
15389 echo "exit 0" >>conf$$.sh
15390 chmod +x conf$$.sh
15391 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15392 PATH_SEPARATOR=';'
15393 else
15394 PATH_SEPARATOR=:
15395 fi
15396 rm -f conf$$.sh
15397fi
15398
15399
15400 as_lineno_1=$LINENO
15401 as_lineno_2=$LINENO
15402 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15403 test "x$as_lineno_1" != "x$as_lineno_2" &&
15404 test "x$as_lineno_3" = "x$as_lineno_2" || {
15405 # Find who we are. Look in the path if we contain no path at all
15406 # relative or not.
15407 case $0 in
15408 *[\\/]* ) as_myself=$0 ;;
15409 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15410for as_dir in $PATH
15411do
15412 IFS=$as_save_IFS
15413 test -z "$as_dir" && as_dir=.
15414 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15415done
252b5132 15416
13b2be9c
DJ
15417 ;;
15418 esac
15419 # We did not find ourselves, most probably we were run as `sh COMMAND'
15420 # in which case we are not to be found in the path.
15421 if test "x$as_myself" = x; then
15422 as_myself=$0
15423 fi
15424 if test ! -f "$as_myself"; then
15425 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15426echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15427 { (exit 1); exit 1; }; }
15428 fi
15429 case $CONFIG_SHELL in
15430 '')
15431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15432for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15433do
15434 IFS=$as_save_IFS
15435 test -z "$as_dir" && as_dir=.
15436 for as_base in sh bash ksh sh5; do
15437 case $as_dir in
15438 /*)
15439 if ("$as_dir/$as_base" -c '
15440 as_lineno_1=$LINENO
15441 as_lineno_2=$LINENO
15442 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15443 test "x$as_lineno_1" != "x$as_lineno_2" &&
15444 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
15445 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
15446 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
15447 CONFIG_SHELL=$as_dir/$as_base
15448 export CONFIG_SHELL
15449 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15450 fi;;
15451 esac
15452 done
15453done
15454;;
15455 esac
252b5132 15456
13b2be9c
DJ
15457 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15458 # uniformly replaced by the line number. The first 'sed' inserts a
15459 # line-number line before each line; the second 'sed' does the real
15460 # work. The second script uses 'N' to pair each line-number line
15461 # with the numbered line, and appends trailing '-' during
15462 # substitution so that $LINENO is not a special case at line end.
15463 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15464 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
15465 sed '=' <$as_myself |
15466 sed '
15467 N
15468 s,$,-,
15469 : loop
15470 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15471 t loop
15472 s,-$,,
15473 s,^['$as_cr_digits']*\n,,
15474 ' >$as_me.lineno &&
15475 chmod +x $as_me.lineno ||
15476 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15477echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15478 { (exit 1); exit 1; }; }
15479
15480 # Don't try to exec as it changes $[0], causing all sort of problems
15481 # (the dirname of $[0] is not the place where we might find the
15482 # original and so on. Autoconf is especially sensible to this).
15483 . ./$as_me.lineno
15484 # Exit status is that of the last command.
15485 exit
15486}
d6d788bd 15487
252b5132 15488
13b2be9c
DJ
15489case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15490 *c*,-n*) ECHO_N= ECHO_C='
15491' ECHO_T=' ' ;;
15492 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15493 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
15494esac
252b5132 15495
13b2be9c
DJ
15496if expr a : '\(a\)' >/dev/null 2>&1; then
15497 as_expr=expr
252b5132 15498else
13b2be9c 15499 as_expr=false
252b5132 15500fi
252b5132 15501
13b2be9c
DJ
15502rm -f conf$$ conf$$.exe conf$$.file
15503echo >conf$$.file
15504if ln -s conf$$.file conf$$ 2>/dev/null; then
15505 # We could just check for DJGPP; but this test a) works b) is more generic
15506 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15507 if test -f conf$$.exe; then
15508 # Don't use ln at all; we don't have any links
15509 as_ln_s='cp -p'
15510 else
15511 as_ln_s='ln -s'
15512 fi
15513elif ln conf$$.file conf$$ 2>/dev/null; then
15514 as_ln_s=ln
15515else
15516 as_ln_s='cp -p'
252b5132 15517fi
13b2be9c 15518rm -f conf$$ conf$$.exe conf$$.file
252b5132 15519
13b2be9c
DJ
15520if mkdir -p . 2>/dev/null; then
15521 as_mkdir_p=:
252b5132 15522else
ab509236 15523 test -d ./-p && rmdir ./-p
13b2be9c
DJ
15524 as_mkdir_p=false
15525fi
252b5132 15526
13b2be9c 15527as_executable_p="test -f"
252b5132 15528
13b2be9c 15529# Sed expression to map a string onto a valid CPP name.
ab509236 15530as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
252b5132 15531
13b2be9c 15532# Sed expression to map a string onto a valid variable name.
ab509236 15533as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
252b5132 15534
d6d788bd 15535
13b2be9c
DJ
15536# IFS
15537# We need space, tab and new line, in precisely that order.
15538as_nl='
15539'
15540IFS=" $as_nl"
252b5132 15541
13b2be9c
DJ
15542# CDPATH.
15543$as_unset CDPATH
252b5132 15544
13b2be9c 15545exec 6>&1
252b5132 15546
13b2be9c
DJ
15547# Open the log real soon, to keep \$[0] and so on meaningful, and to
15548# report actual input values of CONFIG_FILES etc. instead of their
15549# values after options handling. Logging --version etc. is OK.
15550exec 5>>config.log
15551{
15552 echo
15553 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15554## Running $as_me. ##
15555_ASBOX
15556} >&5
15557cat >&5 <<_CSEOF
252b5132 15558
13b2be9c 15559This file was extended by $as_me, which was
ab509236 15560generated by GNU Autoconf 2.59. Invocation command line was
d6d788bd 15561
13b2be9c
DJ
15562 CONFIG_FILES = $CONFIG_FILES
15563 CONFIG_HEADERS = $CONFIG_HEADERS
15564 CONFIG_LINKS = $CONFIG_LINKS
15565 CONFIG_COMMANDS = $CONFIG_COMMANDS
15566 $ $0 $@
252b5132 15567
13b2be9c
DJ
15568_CSEOF
15569echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15570echo >&5
15571_ACEOF
252b5132 15572
13b2be9c
DJ
15573# Files that config.status was made for.
15574if test -n "$ac_config_files"; then
15575 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
252b5132 15576fi
13b2be9c
DJ
15577
15578if test -n "$ac_config_headers"; then
15579 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
252b5132 15580fi
252b5132 15581
13b2be9c
DJ
15582if test -n "$ac_config_links"; then
15583 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
252b5132
RH
15584fi
15585
13b2be9c
DJ
15586if test -n "$ac_config_commands"; then
15587 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15588fi
d6d788bd 15589
13b2be9c 15590cat >>$CONFIG_STATUS <<\_ACEOF
252b5132 15591
13b2be9c
DJ
15592ac_cs_usage="\
15593\`$as_me' instantiates files from templates according to the
15594current configuration.
252b5132 15595
13b2be9c 15596Usage: $0 [OPTIONS] [FILE]...
252b5132 15597
13b2be9c
DJ
15598 -h, --help print this help, then exit
15599 -V, --version print version number, then exit
15600 -q, --quiet do not print progress messages
15601 -d, --debug don't remove temporary files
15602 --recheck update $as_me by reconfiguring in the same conditions
15603 --file=FILE[:TEMPLATE]
ab509236 15604 instantiate the configuration file FILE
13b2be9c 15605 --header=FILE[:TEMPLATE]
ab509236 15606 instantiate the configuration header FILE
252b5132 15607
13b2be9c
DJ
15608Configuration files:
15609$config_files
252b5132 15610
13b2be9c
DJ
15611Configuration headers:
15612$config_headers
252b5132 15613
13b2be9c
DJ
15614Configuration commands:
15615$config_commands
252b5132 15616
13b2be9c
DJ
15617Report bugs to <bug-autoconf@gnu.org>."
15618_ACEOF
d6d788bd 15619
13b2be9c
DJ
15620cat >>$CONFIG_STATUS <<_ACEOF
15621ac_cs_version="\\
15622config.status
ab509236 15623configured by $0, generated by GNU Autoconf 2.59,
13b2be9c 15624 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
d6d788bd 15625
ab509236 15626Copyright (C) 2003 Free Software Foundation, Inc.
13b2be9c
DJ
15627This config.status script is free software; the Free Software Foundation
15628gives unlimited permission to copy, distribute and modify it."
15629srcdir=$srcdir
15630INSTALL="$INSTALL"
15631_ACEOF
d6d788bd 15632
13b2be9c
DJ
15633cat >>$CONFIG_STATUS <<\_ACEOF
15634# If no file are specified by the user, then we need to provide default
15635# value. By we need to know if files were specified by the user.
15636ac_need_defaults=:
15637while test $# != 0
15638do
15639 case $1 in
15640 --*=*)
15641 ac_option=`expr "x$1" : 'x\([^=]*\)='`
15642 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15643 ac_shift=:
c8615825 15644 ;;
13b2be9c
DJ
15645 -*)
15646 ac_option=$1
15647 ac_optarg=$2
15648 ac_shift=shift
c8615825 15649 ;;
13b2be9c
DJ
15650 *) # This is not an option, so the user has probably given explicit
15651 # arguments.
15652 ac_option=$1
15653 ac_need_defaults=false;;
15654 esac
252b5132 15655
13b2be9c
DJ
15656 case $ac_option in
15657 # Handling of the options.
15658_ACEOF
15659cat >>$CONFIG_STATUS <<\_ACEOF
15660 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15661 ac_cs_recheck=: ;;
15662 --version | --vers* | -V )
15663 echo "$ac_cs_version"; exit 0 ;;
15664 --he | --h)
15665 # Conflict between --help and --header
15666 { { echo "$as_me:$LINENO: error: ambiguous option: $1
15667Try \`$0 --help' for more information." >&5
15668echo "$as_me: error: ambiguous option: $1
15669Try \`$0 --help' for more information." >&2;}
15670 { (exit 1); exit 1; }; };;
15671 --help | --hel | -h )
15672 echo "$ac_cs_usage"; exit 0 ;;
15673 --debug | --d* | -d )
15674 debug=: ;;
15675 --file | --fil | --fi | --f )
15676 $ac_shift
15677 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15678 ac_need_defaults=false;;
15679 --header | --heade | --head | --hea )
15680 $ac_shift
15681 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15682 ac_need_defaults=false;;
15683 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15684 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15685 ac_cs_silent=: ;;
c8615825 15686
13b2be9c
DJ
15687 # This is an error.
15688 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15689Try \`$0 --help' for more information." >&5
15690echo "$as_me: error: unrecognized option: $1
15691Try \`$0 --help' for more information." >&2;}
15692 { (exit 1); exit 1; }; } ;;
252b5132 15693
13b2be9c 15694 *) ac_config_targets="$ac_config_targets $1" ;;
252b5132 15695
13b2be9c
DJ
15696 esac
15697 shift
15698done
252b5132 15699
13b2be9c 15700ac_configure_extra_args=
d6d788bd 15701
13b2be9c
DJ
15702if $ac_cs_silent; then
15703 exec 6>/dev/null
15704 ac_configure_extra_args="$ac_configure_extra_args --silent"
15705fi
9b2b7d69 15706
13b2be9c
DJ
15707_ACEOF
15708cat >>$CONFIG_STATUS <<_ACEOF
15709if \$ac_cs_recheck; then
15710 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15711 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15712fi
15713
15714_ACEOF
15715
15716cat >>$CONFIG_STATUS <<_ACEOF
9b2b7d69 15717#
13b2be9c 15718# INIT-COMMANDS section.
9b2b7d69
MM
15719#
15720
13b2be9c 15721AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
15722
15723
15724# The HP-UX ksh and POSIX shell print the target directory to stdout
15725# if CDPATH is set.
15726(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15727
15728sed_quote_subst='$sed_quote_subst'
15729double_quote_subst='$double_quote_subst'
15730delay_variable_subst='$delay_variable_subst'
15731macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
15732macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
15733enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
15734enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
15735pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
15736enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
15737host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
15738host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
15739host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
15740build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
15741build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
15742build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
15743SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
15744Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
15745GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
15746EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
15747FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
15748LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
15749NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
15750LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
15751max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
15752ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
15753exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
15754lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
15755lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
15756lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
15757reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
15758reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
718a6fd8 15759OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
d7040cdb
SE
15760deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
15761file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
15762AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
15763AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15764STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
15765RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
15766old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15767old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15768old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15769CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
15770CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15771compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
15772GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
15773lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
15774lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
15775lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
718a6fd8 15776lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
d7040cdb
SE
15777objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
15778SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
15779ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
15780MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
15781lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
15782lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
15783lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
15784lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
15785lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
15786need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
718a6fd8
SE
15787DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
15788NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
15789LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
15790OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
15791OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
d7040cdb
SE
15792libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
15793shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15794extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15795archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
15796enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
15797export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15798whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15799compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
15800old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15801old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15802archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15803archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15804module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15805module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15806with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
15807allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15808no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15809hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15810hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
15811hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
15812hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
15813hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
15814hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
15815hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15816hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
15817inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
15818link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
15819fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
15820always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
15821export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15822exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15823include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15824prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15825file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
15826variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
15827need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15828need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
15829version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
15830runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15831shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15832shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
15833libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15834library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
15835soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15836postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15837postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15838finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15839finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
15840hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
15841sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15842sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15843hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
15844enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
15845enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
15846enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
15847old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
15848striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
15849
15850LTCC='$LTCC'
15851LTCFLAGS='$LTCFLAGS'
15852compiler='$compiler_DEFAULT'
15853
15854# Quote evaled strings.
15855for var in SED \
15856GREP \
15857EGREP \
15858FGREP \
15859LD \
15860NM \
15861LN_S \
15862lt_SP2NL \
15863lt_NL2SP \
15864reload_flag \
718a6fd8 15865OBJDUMP \
d7040cdb
SE
15866deplibs_check_method \
15867file_magic_cmd \
15868AR \
15869AR_FLAGS \
15870STRIP \
15871RANLIB \
15872CC \
15873CFLAGS \
15874compiler \
15875lt_cv_sys_global_symbol_pipe \
15876lt_cv_sys_global_symbol_to_cdecl \
15877lt_cv_sys_global_symbol_to_c_name_address \
718a6fd8 15878lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
d7040cdb
SE
15879SHELL \
15880ECHO \
15881lt_prog_compiler_no_builtin_flag \
15882lt_prog_compiler_wl \
15883lt_prog_compiler_pic \
15884lt_prog_compiler_static \
15885lt_cv_prog_compiler_c_o \
15886need_locks \
718a6fd8
SE
15887DSYMUTIL \
15888NMEDIT \
15889LIPO \
15890OTOOL \
15891OTOOL64 \
d7040cdb
SE
15892shrext_cmds \
15893export_dynamic_flag_spec \
15894whole_archive_flag_spec \
15895compiler_needs_object \
15896with_gnu_ld \
15897allow_undefined_flag \
15898no_undefined_flag \
15899hardcode_libdir_flag_spec \
15900hardcode_libdir_flag_spec_ld \
15901hardcode_libdir_separator \
15902fix_srcfile_path \
15903exclude_expsyms \
15904include_expsyms \
15905file_list_spec \
15906variables_saved_for_relink \
15907libname_spec \
15908library_names_spec \
15909soname_spec \
15910finish_eval \
15911old_striplib \
15912striplib; do
15913 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15914 *[\\\\\\\`\\"\\\$]*)
15915 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15916 ;;
15917 *)
15918 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15919 ;;
15920 esac
15921done
15922
15923# Double-quote double-evaled strings.
15924for var in reload_cmds \
15925old_postinstall_cmds \
15926old_postuninstall_cmds \
15927old_archive_cmds \
15928extract_expsyms_cmds \
15929old_archive_from_new_cmds \
15930old_archive_from_expsyms_cmds \
15931archive_cmds \
15932archive_expsym_cmds \
15933module_cmds \
15934module_expsym_cmds \
15935export_symbols_cmds \
15936prelink_cmds \
15937postinstall_cmds \
15938postuninstall_cmds \
15939finish_cmds \
15940sys_lib_search_path_spec \
15941sys_lib_dlsearch_path_spec; do
15942 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15943 *[\\\\\\\`\\"\\\$]*)
15944 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15945 ;;
15946 *)
15947 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15948 ;;
15949 esac
15950done
15951
15952# Fix-up fallback echo if it was mangled by the above quoting rules.
15953case \$lt_ECHO in
15954*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
15955 ;;
15956esac
15957
15958ac_aux_dir='$ac_aux_dir'
15959xsi_shell='$xsi_shell'
15960lt_shell_append='$lt_shell_append'
15961
15962# See if we are running on zsh, and set the options which allow our
15963# commands through without removal of \ escapes INIT.
15964if test -n "\${ZSH_VERSION+set}" ; then
15965 setopt NO_GLOB_SUBST
15966fi
15967
15968
15969 PACKAGE='$PACKAGE'
15970 VERSION='$VERSION'
15971 TIMESTAMP='$TIMESTAMP'
15972 RM='$RM'
15973 ofile='$ofile'
15974
15975
15976
20e95c23
DJ
15977# Capture the value of obsolete ALL_LINGUAS because we need it to compute
15978 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
15979 # from automake.
15980 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15981 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15982 LINGUAS="${LINGUAS-%UNSET%}"
15983
13b2be9c
DJ
15984target_cpu_type=${target_cpu_type}
15985 cgen_cpu_prefix=${cgen_cpu_prefix}
15986 obj_format=${obj_format}
15987 te_file=${te_file}
15988
15989_ACEOF
15990
15991
15992
15993cat >>$CONFIG_STATUS <<\_ACEOF
15994for ac_config_target in $ac_config_targets
9b2b7d69 15995do
13b2be9c
DJ
15996 case "$ac_config_target" in
15997 # Handling of arguments.
15998 "gdb.ini" ) CONFIG_FILES="$CONFIG_FILES gdb.ini:gdbinit.in" ;;
15999 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
16000 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16001 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16002 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
16003 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
d7040cdb 16004 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20e95c23 16005 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13b2be9c
DJ
16006 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16007 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
16008 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16009echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16010 { (exit 1); exit 1; }; };;
9b2b7d69
MM
16011 esac
16012done
16013
13b2be9c
DJ
16014# If the user did not use the arguments to specify the items to instantiate,
16015# then the envvar interface is used. Set only those that are not.
16016# We use the long form for the default assignment because of an extremely
16017# bizarre bug on SunOS 4.1.3.
16018if $ac_need_defaults; then
16019 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16020 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16021 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16022fi
16023
16024# Have a temporary directory for convenience. Make it in the build tree
16025# simply because there is no reason to put it here, and in addition,
16026# creating and moving files from /tmp can sometimes cause problems.
16027# Create a temporary directory, and hook for its removal unless debugging.
16028$debug ||
16029{
16030 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16031 trap '{ (exit 1); exit 1; }' 1 2 13 15
16032}
9b2b7d69 16033
13b2be9c 16034# Create a (secure) tmp directory for tmp files.
9b2b7d69 16035
13b2be9c
DJ
16036{
16037 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
16038 test -n "$tmp" && test -d "$tmp"
16039} ||
16040{
16041 tmp=./confstat$$-$RANDOM
16042 (umask 077 && mkdir $tmp)
16043} ||
16044{
16045 echo "$me: cannot create a temporary directory in ." >&2
16046 { (exit 1); exit 1; }
16047}
9b2b7d69 16048
13b2be9c
DJ
16049_ACEOF
16050
16051cat >>$CONFIG_STATUS <<_ACEOF
16052
16053#
16054# CONFIG_FILES section.
16055#
16056
16057# No need to generate the scripts if there are no CONFIG_FILES.
16058# This happens for instance when ./config.status config.h
16059if test -n "\$CONFIG_FILES"; then
16060 # Protect against being on the right side of a sed subst in config.status.
16061 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16062 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16063s,@SHELL@,$SHELL,;t t
16064s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16065s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16066s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16067s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16068s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16069s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16070s,@exec_prefix@,$exec_prefix,;t t
16071s,@prefix@,$prefix,;t t
16072s,@program_transform_name@,$program_transform_name,;t t
16073s,@bindir@,$bindir,;t t
16074s,@sbindir@,$sbindir,;t t
16075s,@libexecdir@,$libexecdir,;t t
16076s,@datadir@,$datadir,;t t
16077s,@sysconfdir@,$sysconfdir,;t t
16078s,@sharedstatedir@,$sharedstatedir,;t t
16079s,@localstatedir@,$localstatedir,;t t
16080s,@libdir@,$libdir,;t t
16081s,@includedir@,$includedir,;t t
16082s,@oldincludedir@,$oldincludedir,;t t
16083s,@infodir@,$infodir,;t t
16084s,@mandir@,$mandir,;t t
16085s,@build_alias@,$build_alias,;t t
16086s,@host_alias@,$host_alias,;t t
16087s,@target_alias@,$target_alias,;t t
16088s,@DEFS@,$DEFS,;t t
16089s,@ECHO_C@,$ECHO_C,;t t
16090s,@ECHO_N@,$ECHO_N,;t t
16091s,@ECHO_T@,$ECHO_T,;t t
16092s,@LIBS@,$LIBS,;t t
16093s,@build@,$build,;t t
16094s,@build_cpu@,$build_cpu,;t t
16095s,@build_vendor@,$build_vendor,;t t
16096s,@build_os@,$build_os,;t t
16097s,@host@,$host,;t t
16098s,@host_cpu@,$host_cpu,;t t
16099s,@host_vendor@,$host_vendor,;t t
16100s,@host_os@,$host_os,;t t
16101s,@target@,$target,;t t
16102s,@target_cpu@,$target_cpu,;t t
16103s,@target_vendor@,$target_vendor,;t t
16104s,@target_os@,$target_os,;t t
16105s,@CC@,$CC,;t t
16106s,@CFLAGS@,$CFLAGS,;t t
16107s,@LDFLAGS@,$LDFLAGS,;t t
16108s,@CPPFLAGS@,$CPPFLAGS,;t t
16109s,@ac_ct_CC@,$ac_ct_CC,;t t
16110s,@EXEEXT@,$EXEEXT,;t t
16111s,@OBJEXT@,$OBJEXT,;t t
16112s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16113s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
16114s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16115s,@CYGPATH_W@,$CYGPATH_W,;t t
16116s,@PACKAGE@,$PACKAGE,;t t
16117s,@VERSION@,$VERSION,;t t
16118s,@ACLOCAL@,$ACLOCAL,;t t
16119s,@AUTOCONF@,$AUTOCONF,;t t
16120s,@AUTOMAKE@,$AUTOMAKE,;t t
16121s,@AUTOHEADER@,$AUTOHEADER,;t t
16122s,@MAKEINFO@,$MAKEINFO,;t t
13b2be9c
DJ
16123s,@install_sh@,$install_sh,;t t
16124s,@STRIP@,$STRIP,;t t
16125s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
16126s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
ab509236 16127s,@mkdir_p@,$mkdir_p,;t t
13b2be9c
DJ
16128s,@AWK@,$AWK,;t t
16129s,@SET_MAKE@,$SET_MAKE,;t t
16130s,@am__leading_dot@,$am__leading_dot,;t t
8ea2b00f
AM
16131s,@AMTAR@,$AMTAR,;t t
16132s,@am__tar@,$am__tar,;t t
16133s,@am__untar@,$am__untar,;t t
13b2be9c
DJ
16134s,@DEPDIR@,$DEPDIR,;t t
16135s,@am__include@,$am__include,;t t
16136s,@am__quote@,$am__quote,;t t
16137s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
16138s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
16139s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
16140s,@CCDEPMODE@,$CCDEPMODE,;t t
16141s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
16142s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
7357c5b6
AM
16143s,@CPP@,$CPP,;t t
16144s,@EGREP@,$EGREP,;t t
d7040cdb
SE
16145s,@LIBTOOL@,$LIBTOOL,;t t
16146s,@SED@,$SED,;t t
d7040cdb
SE
16147s,@FGREP@,$FGREP,;t t
16148s,@GREP@,$GREP,;t t
16149s,@LD@,$LD,;t t
16150s,@DUMPBIN@,$DUMPBIN,;t t
16151s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
16152s,@NM@,$NM,;t t
13b2be9c 16153s,@LN_S@,$LN_S,;t t
718a6fd8
SE
16154s,@OBJDUMP@,$OBJDUMP,;t t
16155s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
d7040cdb
SE
16156s,@AR@,$AR,;t t
16157s,@ac_ct_AR@,$ac_ct_AR,;t t
13b2be9c
DJ
16158s,@RANLIB@,$RANLIB,;t t
16159s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
d7040cdb 16160s,@lt_ECHO@,$lt_ECHO,;t t
718a6fd8
SE
16161s,@DSYMUTIL@,$DSYMUTIL,;t t
16162s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
16163s,@NMEDIT@,$NMEDIT,;t t
16164s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
16165s,@LIPO@,$LIPO,;t t
16166s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
16167s,@OTOOL@,$OTOOL,;t t
16168s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
16169s,@OTOOL64@,$OTOOL64,;t t
16170s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
13b2be9c 16171s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
9e9b66a9 16172s,@NO_WERROR@,$NO_WERROR,;t t
13b2be9c
DJ
16173s,@GDBINIT@,$GDBINIT,;t t
16174s,@cgen_cpu_prefix@,$cgen_cpu_prefix,;t t
16175s,@extra_objects@,$extra_objects,;t t
16176s,@target_cpu_type@,$target_cpu_type,;t t
16177s,@obj_format@,$obj_format,;t t
16178s,@te_file@,$te_file,;t t
16179s,@install_tooldir@,$install_tooldir,;t t
16180s,@atof@,$atof,;t t
13b2be9c 16181s,@OPCODES_LIB@,$OPCODES_LIB,;t t
13b2be9c
DJ
16182s,@YACC@,$YACC,;t t
16183s,@LEX@,$LEX,;t t
16184s,@LEXLIB@,$LEXLIB,;t t
16185s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
13b2be9c 16186s,@USE_NLS@,$USE_NLS,;t t
20e95c23
DJ
16187s,@LIBINTL@,$LIBINTL,;t t
16188s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
16189s,@INCINTL@,$INCINTL,;t t
13b2be9c 16190s,@XGETTEXT@,$XGETTEXT,;t t
20e95c23
DJ
16191s,@GMSGFMT@,$GMSGFMT,;t t
16192s,@POSUB@,$POSUB,;t t
13b2be9c 16193s,@CATALOGS@,$CATALOGS,;t t
13b2be9c 16194s,@DATADIRNAME@,$DATADIRNAME,;t t
13b2be9c 16195s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20e95c23
DJ
16196s,@GENCAT@,$GENCAT,;t t
16197s,@CATOBJEXT@,$CATOBJEXT,;t t
13b2be9c 16198s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
20e95c23
DJ
16199s,@MSGFMT@,$MSGFMT,;t t
16200s,@MSGMERGE@,$MSGMERGE,;t t
13b2be9c
DJ
16201s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
16202s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
16203s,@MAINT@,$MAINT,;t t
d5fbea21
DJ
16204s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
16205s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
20e95c23 16206s,@ALLOCA@,$ALLOCA,;t t
13b2be9c 16207s,@LIBM@,$LIBM,;t t
108a6f8e
CD
16208s,@datarootdir@,$datarootdir,;t t
16209s,@docdir@,$docdir,;t t
16210s,@htmldir@,$htmldir,;t t
13b2be9c
DJ
16211s,@LIBOBJS@,$LIBOBJS,;t t
16212s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9b2b7d69
MM
16213CEOF
16214
13b2be9c
DJ
16215_ACEOF
16216
16217 cat >>$CONFIG_STATUS <<\_ACEOF
16218 # Split the substitutions into bite-sized pieces for seds with
16219 # small command number limits, like on Digital OSF/1 and HP-UX.
16220 ac_max_sed_lines=48
16221 ac_sed_frag=1 # Number of current file.
16222 ac_beg=1 # First line for current file.
16223 ac_end=$ac_max_sed_lines # Line after last line for current file.
16224 ac_more_lines=:
16225 ac_sed_cmds=
16226 while $ac_more_lines; do
16227 if test $ac_beg -gt 1; then
16228 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16229 else
16230 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16231 fi
16232 if test ! -s $tmp/subs.frag; then
16233 ac_more_lines=false
9b2b7d69 16234 else
13b2be9c
DJ
16235 # The purpose of the label and of the branching condition is to
16236 # speed up the sed processing (if there are no `@' at all, there
16237 # is no need to browse any of the substitutions).
16238 # These are the two extra sed commands mentioned above.
16239 (echo ':t
16240 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16241 if test -z "$ac_sed_cmds"; then
ab509236 16242 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13b2be9c 16243 else
ab509236 16244 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13b2be9c
DJ
16245 fi
16246 ac_sed_frag=`expr $ac_sed_frag + 1`
16247 ac_beg=$ac_end
16248 ac_end=`expr $ac_end + $ac_max_sed_lines`
9b2b7d69 16249 fi
13b2be9c
DJ
16250 done
16251 if test -z "$ac_sed_cmds"; then
16252 ac_sed_cmds=cat
252b5132 16253 fi
13b2be9c 16254fi # test -n "$CONFIG_FILES"
252b5132 16255
13b2be9c
DJ
16256_ACEOF
16257cat >>$CONFIG_STATUS <<\_ACEOF
16258for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
c8615825 16259 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13b2be9c
DJ
16260 case $ac_file in
16261 - | *:- | *:-:* ) # input from stdin
ab509236
L
16262 cat >$tmp/stdin
16263 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16264 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13b2be9c 16265 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ab509236 16266 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13b2be9c 16267 * ) ac_file_in=$ac_file.in ;;
252b5132 16268 esac
9b2b7d69 16269
13b2be9c
DJ
16270 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16271 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16272$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
16273 X"$ac_file" : 'X\(//\)[^/]' \| \
16274 X"$ac_file" : 'X\(//\)$' \| \
16275 X"$ac_file" : 'X\(/\)' \| \
16276 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
16277echo X"$ac_file" |
16278 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16279 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16280 /^X\(\/\/\)$/{ s//\1/; q; }
16281 /^X\(\/\).*/{ s//\1/; q; }
16282 s/.*/./; q'`
16283 { if $as_mkdir_p; then
16284 mkdir -p "$ac_dir"
c8615825 16285 else
13b2be9c
DJ
16286 as_dir="$ac_dir"
16287 as_dirs=
16288 while test ! -d "$as_dir"; do
16289 as_dirs="$as_dir $as_dirs"
16290 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16291$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
16292 X"$as_dir" : 'X\(//\)[^/]' \| \
16293 X"$as_dir" : 'X\(//\)$' \| \
16294 X"$as_dir" : 'X\(/\)' \| \
16295 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
16296echo X"$as_dir" |
16297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16298 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16299 /^X\(\/\/\)$/{ s//\1/; q; }
16300 /^X\(\/\).*/{ s//\1/; q; }
16301 s/.*/./; q'`
16302 done
16303 test ! -n "$as_dirs" || mkdir $as_dirs
16304 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16305echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16306 { (exit 1); exit 1; }; }; }
16307
16308 ac_builddir=.
16309
16310if test "$ac_dir" != .; then
16311 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16312 # A "../" for each directory in $ac_dir_suffix.
16313 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16314else
16315 ac_dir_suffix= ac_top_builddir=
16316fi
9b2b7d69 16317
13b2be9c
DJ
16318case $srcdir in
16319 .) # No --srcdir option. We are building in place.
16320 ac_srcdir=.
16321 if test -z "$ac_top_builddir"; then
16322 ac_top_srcdir=.
16323 else
16324 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16325 fi ;;
16326 [\\/]* | ?:[\\/]* ) # Absolute path.
16327 ac_srcdir=$srcdir$ac_dir_suffix;
16328 ac_top_srcdir=$srcdir ;;
9b2b7d69 16329 *) # Relative path.
13b2be9c
DJ
16330 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16331 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16332esac
ab509236
L
16333
16334# Do not use `cd foo && pwd` to compute absolute paths, because
16335# the directories may not exist.
16336case `pwd` in
16337.) ac_abs_builddir="$ac_dir";;
16338*)
16339 case "$ac_dir" in
16340 .) ac_abs_builddir=`pwd`;;
16341 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16342 *) ac_abs_builddir=`pwd`/"$ac_dir";;
16343 esac;;
16344esac
16345case $ac_abs_builddir in
16346.) ac_abs_top_builddir=${ac_top_builddir}.;;
16347*)
16348 case ${ac_top_builddir}. in
16349 .) ac_abs_top_builddir=$ac_abs_builddir;;
16350 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16351 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16352 esac;;
16353esac
16354case $ac_abs_builddir in
16355.) ac_abs_srcdir=$ac_srcdir;;
16356*)
16357 case $ac_srcdir in
16358 .) ac_abs_srcdir=$ac_abs_builddir;;
16359 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16360 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16361 esac;;
16362esac
16363case $ac_abs_builddir in
16364.) ac_abs_top_srcdir=$ac_top_srcdir;;
16365*)
16366 case $ac_top_srcdir in
16367 .) ac_abs_top_srcdir=$ac_abs_builddir;;
16368 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16369 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16370 esac;;
16371esac
252b5132 16372
9b2b7d69 16373
13b2be9c
DJ
16374 case $INSTALL in
16375 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16376 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
c8615825 16377 esac
9b2b7d69 16378
1ad12f97
NC
16379 if test x"$ac_file" != x-; then
16380 { echo "$as_me:$LINENO: creating $ac_file" >&5
16381echo "$as_me: creating $ac_file" >&6;}
16382 rm -f "$ac_file"
16383 fi
13b2be9c
DJ
16384 # Let's still pretend it is `configure' which instantiates (i.e., don't
16385 # use $as_me), people would be surprised to read:
16386 # /* config.h. Generated by config.status. */
16387 if test x"$ac_file" = x-; then
16388 configure_input=
16389 else
16390 configure_input="$ac_file. "
16391 fi
16392 configure_input=$configure_input"Generated from `echo $ac_file_in |
ab509236 16393 sed 's,.*/,,'` by configure."
13b2be9c
DJ
16394
16395 # First look for the input files in the build tree, otherwise in the
16396 # src tree.
16397 ac_file_inputs=`IFS=:
16398 for f in $ac_file_in; do
16399 case $f in
16400 -) echo $tmp/stdin ;;
16401 [\\/$]*)
ab509236
L
16402 # Absolute (can't be DOS-style, as IFS=:)
16403 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13b2be9c
DJ
16404echo "$as_me: error: cannot find input file: $f" >&2;}
16405 { (exit 1); exit 1; }; }
ab509236 16406 echo "$f";;
13b2be9c 16407 *) # Relative
ab509236
L
16408 if test -f "$f"; then
16409 # Build tree
16410 echo "$f"
16411 elif test -f "$srcdir/$f"; then
16412 # Source tree
16413 echo "$srcdir/$f"
16414 else
16415 # /dev/null tree
16416 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13b2be9c
DJ
16417echo "$as_me: error: cannot find input file: $f" >&2;}
16418 { (exit 1); exit 1; }; }
ab509236 16419 fi;;
13b2be9c
DJ
16420 esac
16421 done` || { (exit 1); exit 1; }
16422_ACEOF
16423cat >>$CONFIG_STATUS <<_ACEOF
16424 sed "$ac_vpsub
16425$extrasub
16426_ACEOF
16427cat >>$CONFIG_STATUS <<\_ACEOF
16428:t
16429/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16430s,@configure_input@,$configure_input,;t t
16431s,@srcdir@,$ac_srcdir,;t t
16432s,@abs_srcdir@,$ac_abs_srcdir,;t t
16433s,@top_srcdir@,$ac_top_srcdir,;t t
16434s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16435s,@builddir@,$ac_builddir,;t t
16436s,@abs_builddir@,$ac_abs_builddir,;t t
16437s,@top_builddir@,$ac_top_builddir,;t t
16438s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16439s,@INSTALL@,$ac_INSTALL,;t t
16440" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16441 rm -f $tmp/stdin
16442 if test x"$ac_file" != x-; then
16443 mv $tmp/out $ac_file
16444 else
16445 cat $tmp/out
16446 rm -f $tmp/out
16447 fi
16448
16449done
16450_ACEOF
16451cat >>$CONFIG_STATUS <<\_ACEOF
16452
16453#
16454# CONFIG_HEADER section.
16455#
252b5132
RH
16456
16457# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16458# NAME is the cpp macro being defined and VALUE is the value it is being given.
16459#
16460# ac_d sets the value in "#define NAME VALUE" lines.
ab509236
L
16461ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16462ac_dB='[ ].*$,\1#\2'
13b2be9c
DJ
16463ac_dC=' '
16464ac_dD=',;t'
16465# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ab509236 16466ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13b2be9c 16467ac_uB='$,\1#\2define\3'
252b5132 16468ac_uC=' '
13b2be9c
DJ
16469ac_uD=',;t'
16470
16471for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
252b5132 16472 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13b2be9c
DJ
16473 case $ac_file in
16474 - | *:- | *:-:* ) # input from stdin
ab509236
L
16475 cat >$tmp/stdin
16476 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16477 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13b2be9c 16478 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ab509236 16479 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13b2be9c 16480 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
16481 esac
16482
13b2be9c
DJ
16483 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16484echo "$as_me: creating $ac_file" >&6;}
16485
16486 # First look for the input files in the build tree, otherwise in the
16487 # src tree.
16488 ac_file_inputs=`IFS=:
16489 for f in $ac_file_in; do
16490 case $f in
16491 -) echo $tmp/stdin ;;
16492 [\\/$]*)
ab509236
L
16493 # Absolute (can't be DOS-style, as IFS=:)
16494 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13b2be9c
DJ
16495echo "$as_me: error: cannot find input file: $f" >&2;}
16496 { (exit 1); exit 1; }; }
ab509236
L
16497 # Do quote $f, to prevent DOS paths from being IFS'd.
16498 echo "$f";;
13b2be9c 16499 *) # Relative
ab509236
L
16500 if test -f "$f"; then
16501 # Build tree
16502 echo "$f"
16503 elif test -f "$srcdir/$f"; then
16504 # Source tree
16505 echo "$srcdir/$f"
16506 else
16507 # /dev/null tree
16508 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13b2be9c
DJ
16509echo "$as_me: error: cannot find input file: $f" >&2;}
16510 { (exit 1); exit 1; }; }
ab509236 16511 fi;;
13b2be9c
DJ
16512 esac
16513 done` || { (exit 1); exit 1; }
16514 # Remove the trailing spaces.
ab509236 16515 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13b2be9c
DJ
16516
16517_ACEOF
16518
16519# Transform confdefs.h into two sed scripts, `conftest.defines' and
16520# `conftest.undefs', that substitutes the proper values into
16521# config.h.in to produce config.h. The first handles `#define'
16522# templates, and the second `#undef' templates.
16523# And first: Protect against being on the right side of a sed subst in
16524# config.status. Protect against being in an unquoted here document
16525# in config.status.
16526rm -f conftest.defines conftest.undefs
16527# Using a here document instead of a string reduces the quoting nightmare.
16528# Putting comments in sed scripts is not portable.
16529#
16530# `end' is used to avoid that the second main sed command (meant for
16531# 0-ary CPP macros) applies to n-ary macro definitions.
16532# See the Autoconf documentation for `clear'.
16533cat >confdef2sed.sed <<\_ACEOF
16534s/[\\&,]/\\&/g
16535s,[\\$`],\\&,g
16536t clear
16537: clear
ab509236 16538s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13b2be9c 16539t end
ab509236 16540s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13b2be9c
DJ
16541: end
16542_ACEOF
16543# If some macros were called several times there might be several times
16544# the same #defines, which is useless. Nevertheless, we may not want to
16545# sort them, since we want the *last* AC-DEFINE to be honored.
16546uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16547sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16548rm -f confdef2sed.sed
252b5132
RH
16549
16550# This sed command replaces #undef with comments. This is necessary, for
16551# example, in the case of _POSIX_SOURCE, which is predefined and required
16552# on some systems where configure will not decide to define it.
13b2be9c 16553cat >>conftest.undefs <<\_ACEOF
ab509236 16554s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13b2be9c
DJ
16555_ACEOF
16556
16557# Break up conftest.defines because some shells have a limit on the size
16558# of here documents, and old seds have small limits too (100 cmds).
16559echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ab509236 16560echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13b2be9c
DJ
16561echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16562echo ' :' >>$CONFIG_STATUS
16563rm -f conftest.tail
16564while grep . conftest.defines >/dev/null
16565do
16566 # Write a limited-size here document to $tmp/defines.sed.
16567 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16568 # Speed up: don't consider the non `#define' lines.
ab509236 16569 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13b2be9c
DJ
16570 # Work around the forget-to-reset-the-flag bug.
16571 echo 't clr' >>$CONFIG_STATUS
16572 echo ': clr' >>$CONFIG_STATUS
16573 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16574 echo 'CEOF
16575 sed -f $tmp/defines.sed $tmp/in >$tmp/out
16576 rm -f $tmp/in
16577 mv $tmp/out $tmp/in
16578' >>$CONFIG_STATUS
16579 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16580 rm -f conftest.defines
16581 mv conftest.tail conftest.defines
16582done
16583rm -f conftest.defines
16584echo ' fi # grep' >>$CONFIG_STATUS
16585echo >>$CONFIG_STATUS
252b5132 16586
13b2be9c
DJ
16587# Break up conftest.undefs because some shells have a limit on the size
16588# of here documents, and old seds have small limits too (100 cmds).
16589echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
252b5132 16590rm -f conftest.tail
13b2be9c 16591while grep . conftest.undefs >/dev/null
252b5132 16592do
13b2be9c
DJ
16593 # Write a limited-size here document to $tmp/undefs.sed.
16594 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16595 # Speed up: don't consider the non `#undef'
ab509236 16596 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13b2be9c
DJ
16597 # Work around the forget-to-reset-the-flag bug.
16598 echo 't clr' >>$CONFIG_STATUS
16599 echo ': clr' >>$CONFIG_STATUS
16600 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
252b5132 16601 echo 'CEOF
13b2be9c
DJ
16602 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16603 rm -f $tmp/in
16604 mv $tmp/out $tmp/in
16605' >>$CONFIG_STATUS
16606 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16607 rm -f conftest.undefs
16608 mv conftest.tail conftest.undefs
252b5132 16609done
13b2be9c
DJ
16610rm -f conftest.undefs
16611
16612cat >>$CONFIG_STATUS <<\_ACEOF
16613 # Let's still pretend it is `configure' which instantiates (i.e., don't
16614 # use $as_me), people would be surprised to read:
16615 # /* config.h. Generated by config.status. */
16616 if test x"$ac_file" = x-; then
16617 echo "/* Generated by configure. */" >$tmp/config.h
252b5132 16618 else
13b2be9c
DJ
16619 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
16620 fi
16621 cat $tmp/in >>$tmp/config.h
16622 rm -f $tmp/in
16623 if test x"$ac_file" != x-; then
16624 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
16625 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16626echo "$as_me: $ac_file is unchanged" >&6;}
16627 else
16628 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16629$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
16630 X"$ac_file" : 'X\(//\)[^/]' \| \
16631 X"$ac_file" : 'X\(//\)$' \| \
16632 X"$ac_file" : 'X\(/\)' \| \
16633 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
16634echo X"$ac_file" |
16635 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16636 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16637 /^X\(\/\/\)$/{ s//\1/; q; }
16638 /^X\(\/\).*/{ s//\1/; q; }
16639 s/.*/./; q'`
16640 { if $as_mkdir_p; then
16641 mkdir -p "$ac_dir"
16642 else
16643 as_dir="$ac_dir"
16644 as_dirs=
16645 while test ! -d "$as_dir"; do
16646 as_dirs="$as_dir $as_dirs"
16647 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16648$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
16649 X"$as_dir" : 'X\(//\)[^/]' \| \
16650 X"$as_dir" : 'X\(//\)$' \| \
16651 X"$as_dir" : 'X\(/\)' \| \
16652 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
16653echo X"$as_dir" |
16654 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16655 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16656 /^X\(\/\/\)$/{ s//\1/; q; }
16657 /^X\(\/\).*/{ s//\1/; q; }
16658 s/.*/./; q'`
16659 done
16660 test ! -n "$as_dirs" || mkdir $as_dirs
16661 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16662echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16663 { (exit 1); exit 1; }; }; }
16664
16665 rm -f $ac_file
16666 mv $tmp/config.h $ac_file
9b2b7d69 16667 fi
13b2be9c
DJ
16668 else
16669 cat $tmp/config.h
16670 rm -f $tmp/config.h
9b2b7d69 16671 fi
13b2be9c
DJ
16672# Compute $ac_file's index in $config_headers.
16673_am_stamp_count=1
16674for _am_header in $config_headers :; do
16675 case $_am_header in
16676 $ac_file | $ac_file:* )
16677 break ;;
16678 * )
16679 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16680 esac
16681done
16682echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
16683$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
16684 X$ac_file : 'X\(//\)[^/]' \| \
16685 X$ac_file : 'X\(//\)$' \| \
16686 X$ac_file : 'X\(/\)' \| \
16687 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
16688echo X$ac_file |
16689 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16690 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16691 /^X\(\/\/\)$/{ s//\1/; q; }
16692 /^X\(\/\).*/{ s//\1/; q; }
16693 s/.*/./; q'`/stamp-h$_am_stamp_count
16694done
16695_ACEOF
16696cat >>$CONFIG_STATUS <<\_ACEOF
6840198f 16697
13b2be9c
DJ
16698#
16699# CONFIG_COMMANDS section.
16700#
16701for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
16702 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
16703 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
16704 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
16705$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
16706 X"$ac_dest" : 'X\(//\)[^/]' \| \
16707 X"$ac_dest" : 'X\(//\)$' \| \
16708 X"$ac_dest" : 'X\(/\)' \| \
16709 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
16710echo X"$ac_dest" |
16711 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16712 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16713 /^X\(\/\/\)$/{ s//\1/; q; }
16714 /^X\(\/\).*/{ s//\1/; q; }
16715 s/.*/./; q'`
ab509236
L
16716 { if $as_mkdir_p; then
16717 mkdir -p "$ac_dir"
16718 else
16719 as_dir="$ac_dir"
16720 as_dirs=
16721 while test ! -d "$as_dir"; do
16722 as_dirs="$as_dir $as_dirs"
16723 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16724$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16725 X"$as_dir" : 'X\(//\)[^/]' \| \
16726 X"$as_dir" : 'X\(//\)$' \| \
16727 X"$as_dir" : 'X\(/\)' \| \
16728 . : '\(.\)' 2>/dev/null ||
16729echo X"$as_dir" |
16730 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16731 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16732 /^X\(\/\/\)$/{ s//\1/; q; }
16733 /^X\(\/\).*/{ s//\1/; q; }
16734 s/.*/./; q'`
16735 done
16736 test ! -n "$as_dirs" || mkdir $as_dirs
16737 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16738echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16739 { (exit 1); exit 1; }; }; }
16740
13b2be9c
DJ
16741 ac_builddir=.
16742
16743if test "$ac_dir" != .; then
16744 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16745 # A "../" for each directory in $ac_dir_suffix.
16746 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16747else
16748 ac_dir_suffix= ac_top_builddir=
16749fi
16750
16751case $srcdir in
16752 .) # No --srcdir option. We are building in place.
16753 ac_srcdir=.
16754 if test -z "$ac_top_builddir"; then
16755 ac_top_srcdir=.
16756 else
16757 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16758 fi ;;
16759 [\\/]* | ?:[\\/]* ) # Absolute path.
16760 ac_srcdir=$srcdir$ac_dir_suffix;
16761 ac_top_srcdir=$srcdir ;;
16762 *) # Relative path.
16763 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16764 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16765esac
ab509236
L
16766
16767# Do not use `cd foo && pwd` to compute absolute paths, because
16768# the directories may not exist.
16769case `pwd` in
16770.) ac_abs_builddir="$ac_dir";;
16771*)
16772 case "$ac_dir" in
16773 .) ac_abs_builddir=`pwd`;;
16774 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16775 *) ac_abs_builddir=`pwd`/"$ac_dir";;
16776 esac;;
16777esac
16778case $ac_abs_builddir in
16779.) ac_abs_top_builddir=${ac_top_builddir}.;;
16780*)
16781 case ${ac_top_builddir}. in
16782 .) ac_abs_top_builddir=$ac_abs_builddir;;
16783 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16784 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16785 esac;;
16786esac
16787case $ac_abs_builddir in
16788.) ac_abs_srcdir=$ac_srcdir;;
16789*)
16790 case $ac_srcdir in
16791 .) ac_abs_srcdir=$ac_abs_builddir;;
16792 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16793 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16794 esac;;
16795esac
16796case $ac_abs_builddir in
16797.) ac_abs_top_srcdir=$ac_top_srcdir;;
16798*)
16799 case $ac_top_srcdir in
16800 .) ac_abs_top_srcdir=$ac_abs_builddir;;
16801 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16802 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16803 esac;;
16804esac
13b2be9c
DJ
16805
16806
16807 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
16808echo "$as_me: executing $ac_dest commands" >&6;}
16809 case $ac_dest in
16810 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
16811 # Strip MF so we end up with the name of the file.
16812 mf=`echo "$mf" | sed -e 's/:.*$//'`
16813 # Check whether this is an Automake generated Makefile or not.
16814 # We used to match only the files named `Makefile.in', but
16815 # some people rename them; so instead we look at the file content.
16816 # Grep'ing the first line is not enough: some people post-process
16817 # each Makefile.in and add a new line on top of each file to say so.
16818 # So let's grep whole file.
16819 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
16820 dirpart=`(dirname "$mf") 2>/dev/null ||
16821$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
16822 X"$mf" : 'X\(//\)[^/]' \| \
16823 X"$mf" : 'X\(//\)$' \| \
16824 X"$mf" : 'X\(/\)' \| \
16825 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
16826echo X"$mf" |
16827 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16828 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16829 /^X\(\/\/\)$/{ s//\1/; q; }
16830 /^X\(\/\).*/{ s//\1/; q; }
16831 s/.*/./; q'`
16832 else
16833 continue
16834 fi
8ea2b00f
AM
16835 # Extract the definition of DEPDIR, am__include, and am__quote
16836 # from the Makefile without running `make'.
4b363073 16837 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13b2be9c 16838 test -z "$DEPDIR" && continue
8ea2b00f
AM
16839 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16840 test -z "am__include" && continue
16841 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13b2be9c 16842 # When using ansi2knr, U may be empty or an underscore; expand it
4b363073 16843 U=`sed -n 's/^U = //p' < "$mf"`
8ea2b00f
AM
16844 # Find all dependency output files, they are included files with
16845 # $(DEPDIR) in their names. We invoke sed twice because it is the
16846 # simplest approach to changing $(DEPDIR) to its actual value in the
16847 # expansion.
16848 for file in `sed -n "
16849 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13b2be9c
DJ
16850 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16851 # Make sure the directory exists.
16852 test -f "$dirpart/$file" && continue
16853 fdir=`(dirname "$file") 2>/dev/null ||
16854$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
16855 X"$file" : 'X\(//\)[^/]' \| \
16856 X"$file" : 'X\(//\)$' \| \
16857 X"$file" : 'X\(/\)' \| \
16858 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
16859echo X"$file" |
16860 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16861 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16862 /^X\(\/\/\)$/{ s//\1/; q; }
16863 /^X\(\/\).*/{ s//\1/; q; }
16864 s/.*/./; q'`
16865 { if $as_mkdir_p; then
16866 mkdir -p $dirpart/$fdir
16867 else
16868 as_dir=$dirpart/$fdir
16869 as_dirs=
16870 while test ! -d "$as_dir"; do
16871 as_dirs="$as_dir $as_dirs"
16872 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16873$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
16874 X"$as_dir" : 'X\(//\)[^/]' \| \
16875 X"$as_dir" : 'X\(//\)$' \| \
16876 X"$as_dir" : 'X\(/\)' \| \
16877 . : '\(.\)' 2>/dev/null ||
13b2be9c
DJ
16878echo X"$as_dir" |
16879 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16880 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16881 /^X\(\/\/\)$/{ s//\1/; q; }
16882 /^X\(\/\).*/{ s//\1/; q; }
16883 s/.*/./; q'`
16884 done
16885 test ! -n "$as_dirs" || mkdir $as_dirs
16886 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
16887echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
16888 { (exit 1); exit 1; }; }; }
c8615825 16889
13b2be9c
DJ
16890 # echo "creating $dirpart/$file"
16891 echo '# dummy' > "$dirpart/$file"
16892 done
16893done
d7040cdb
SE
16894 ;;
16895 libtool )
16896
16897 # See if we are running on zsh, and set the options which allow our
16898 # commands through without removal of \ escapes.
16899 if test -n "${ZSH_VERSION+set}" ; then
16900 setopt NO_GLOB_SUBST
16901 fi
16902
16903 cfgfile="${ofile}T"
16904 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16905 $RM "$cfgfile"
16906
16907 cat <<_LT_EOF >> "$cfgfile"
16908#! $SHELL
16909
16910# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
718a6fd8 16911# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
d7040cdb
SE
16912# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16913# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16914#
718a6fd8
SE
16915# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16916# 2006, 2007, 2008 Free Software Foundation, Inc.
16917# Written by Gordon Matzigkeit, 1996
d7040cdb 16918#
718a6fd8 16919# This file is part of GNU Libtool.
d7040cdb 16920#
718a6fd8
SE
16921# GNU Libtool is free software; you can redistribute it and/or
16922# modify it under the terms of the GNU General Public License as
16923# published by the Free Software Foundation; either version 2 of
16924# the License, or (at your option) any later version.
d7040cdb 16925#
718a6fd8
SE
16926# As a special exception to the GNU General Public License,
16927# if you distribute this file as part of a program or library that
16928# is built using GNU Libtool, you may include this file under the
16929# same distribution terms that you use for the rest of that program.
d7040cdb 16930#
718a6fd8
SE
16931# GNU Libtool is distributed in the hope that it will be useful,
16932# but WITHOUT ANY WARRANTY; without even the implied warranty of
16933# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16934# GNU General Public License for more details.
d7040cdb 16935#
718a6fd8
SE
16936# You should have received a copy of the GNU General Public License
16937# along with GNU Libtool; see the file COPYING. If not, a copy
16938# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16939# obtained by writing to the Free Software Foundation, Inc.,
16940# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
d7040cdb
SE
16941
16942
16943# The names of the tagged configurations supported by this script.
16944available_tags=""
16945
16946# ### BEGIN LIBTOOL CONFIG
16947
16948# Which release of libtool.m4 was used?
16949macro_version=$macro_version
16950macro_revision=$macro_revision
16951
16952# Whether or not to build shared libraries.
16953build_libtool_libs=$enable_shared
16954
16955# Whether or not to build static libraries.
16956build_old_libs=$enable_static
16957
16958# What type of objects to build.
16959pic_mode=$pic_mode
16960
16961# Whether or not to optimize for fast installation.
16962fast_install=$enable_fast_install
16963
16964# The host system.
16965host_alias=$host_alias
16966host=$host
16967host_os=$host_os
16968
16969# The build system.
16970build_alias=$build_alias
16971build=$build
16972build_os=$build_os
16973
16974# A sed program that does not truncate output.
16975SED=$lt_SED
16976
16977# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16978Xsed="\$SED -e 1s/^X//"
16979
16980# A grep program that handles long lines.
16981GREP=$lt_GREP
16982
16983# An ERE matcher.
16984EGREP=$lt_EGREP
16985
16986# A literal string matcher.
16987FGREP=$lt_FGREP
16988
16989# A BSD- or MS-compatible name lister.
16990NM=$lt_NM
16991
16992# Whether we need soft or hard links.
16993LN_S=$lt_LN_S
16994
16995# What is the maximum length of a command?
16996max_cmd_len=$max_cmd_len
16997
16998# Object file suffix (normally "o").
16999objext=$ac_objext
17000
17001# Executable file suffix (normally "").
17002exeext=$exeext
17003
17004# whether the shell understands "unset".
17005lt_unset=$lt_unset
17006
17007# turn spaces into newlines.
17008SP2NL=$lt_lt_SP2NL
17009
17010# turn newlines into spaces.
17011NL2SP=$lt_lt_NL2SP
17012
17013# How to create reloadable object files.
17014reload_flag=$lt_reload_flag
17015reload_cmds=$lt_reload_cmds
17016
718a6fd8
SE
17017# An object symbol dumper.
17018OBJDUMP=$lt_OBJDUMP
17019
d7040cdb
SE
17020# Method to check whether dependent libraries are shared objects.
17021deplibs_check_method=$lt_deplibs_check_method
17022
17023# Command to use when deplibs_check_method == "file_magic".
17024file_magic_cmd=$lt_file_magic_cmd
17025
17026# The archiver.
17027AR=$lt_AR
17028AR_FLAGS=$lt_AR_FLAGS
17029
17030# A symbol stripping program.
17031STRIP=$lt_STRIP
17032
17033# Commands used to install an old-style archive.
17034RANLIB=$lt_RANLIB
17035old_postinstall_cmds=$lt_old_postinstall_cmds
17036old_postuninstall_cmds=$lt_old_postuninstall_cmds
17037
17038# A C compiler.
17039LTCC=$lt_CC
17040
17041# LTCC compiler flags.
17042LTCFLAGS=$lt_CFLAGS
17043
17044# Take the output of nm and produce a listing of raw symbols and C names.
17045global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17046
17047# Transform the output of nm in a proper C declaration.
17048global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17049
17050# Transform the output of nm in a C name address pair.
17051global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17052
718a6fd8
SE
17053# Transform the output of nm in a C name address pair when lib prefix is needed.
17054global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17055
d7040cdb
SE
17056# The name of the directory that contains temporary libtool files.
17057objdir=$objdir
17058
17059# Shell to use when invoking shell scripts.
17060SHELL=$lt_SHELL
17061
17062# An echo program that does not interpret backslashes.
17063ECHO=$lt_ECHO
17064
17065# Used to examine libraries when file_magic_cmd begins with "file".
17066MAGIC_CMD=$MAGIC_CMD
17067
17068# Must we lock files when doing compilation?
17069need_locks=$lt_need_locks
17070
718a6fd8
SE
17071# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17072DSYMUTIL=$lt_DSYMUTIL
17073
17074# Tool to change global to local symbols on Mac OS X.
17075NMEDIT=$lt_NMEDIT
17076
17077# Tool to manipulate fat objects and archives on Mac OS X.
17078LIPO=$lt_LIPO
17079
17080# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17081OTOOL=$lt_OTOOL
17082
17083# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17084OTOOL64=$lt_OTOOL64
17085
d7040cdb
SE
17086# Old archive suffix (normally "a").
17087libext=$libext
17088
17089# Shared library suffix (normally ".so").
17090shrext_cmds=$lt_shrext_cmds
17091
17092# The commands to extract the exported symbol list from a shared archive.
17093extract_expsyms_cmds=$lt_extract_expsyms_cmds
17094
17095# Variables whose values should be saved in libtool wrapper scripts and
17096# restored at link time.
17097variables_saved_for_relink=$lt_variables_saved_for_relink
17098
17099# Do we need the "lib" prefix for modules?
17100need_lib_prefix=$need_lib_prefix
17101
17102# Do we need a version for libraries?
17103need_version=$need_version
17104
17105# Library versioning type.
17106version_type=$version_type
17107
17108# Shared library runtime path variable.
17109runpath_var=$runpath_var
17110
17111# Shared library path variable.
17112shlibpath_var=$shlibpath_var
17113
17114# Is shlibpath searched before the hard-coded library search path?
17115shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17116
17117# Format of library name prefix.
17118libname_spec=$lt_libname_spec
17119
17120# List of archive names. First name is the real one, the rest are links.
17121# The last name is the one that the linker finds with -lNAME
17122library_names_spec=$lt_library_names_spec
17123
17124# The coded name of the library, if different from the real name.
17125soname_spec=$lt_soname_spec
17126
17127# Command to use after installation of a shared archive.
17128postinstall_cmds=$lt_postinstall_cmds
17129
17130# Command to use after uninstallation of a shared archive.
17131postuninstall_cmds=$lt_postuninstall_cmds
17132
17133# Commands used to finish a libtool library installation in a directory.
17134finish_cmds=$lt_finish_cmds
17135
17136# As "finish_cmds", except a single script fragment to be evaled but
17137# not shown.
17138finish_eval=$lt_finish_eval
17139
17140# Whether we should hardcode library paths into libraries.
17141hardcode_into_libs=$hardcode_into_libs
17142
17143# Compile-time system search path for libraries.
17144sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17145
17146# Run-time system search path for libraries.
17147sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17148
17149# Whether dlopen is supported.
17150dlopen_support=$enable_dlopen
17151
17152# Whether dlopen of programs is supported.
17153dlopen_self=$enable_dlopen_self
17154
17155# Whether dlopen of statically linked programs is supported.
17156dlopen_self_static=$enable_dlopen_self_static
17157
17158# Commands to strip libraries.
17159old_striplib=$lt_old_striplib
17160striplib=$lt_striplib
17161
17162
17163# The linker used to build libraries.
17164LD=$lt_LD
17165
17166# Commands used to build an old-style archive.
17167old_archive_cmds=$lt_old_archive_cmds
17168
17169# A language specific compiler.
17170CC=$lt_compiler
17171
17172# Is the compiler the GNU compiler?
17173with_gcc=$GCC
17174
17175# Compiler flag to turn off builtin functions.
17176no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17177
17178# How to pass a linker flag through the compiler.
17179wl=$lt_lt_prog_compiler_wl
17180
17181# Additional compiler flags for building library objects.
17182pic_flag=$lt_lt_prog_compiler_pic
17183
17184# Compiler flag to prevent dynamic linking.
17185link_static_flag=$lt_lt_prog_compiler_static
17186
17187# Does compiler simultaneously support -c and -o options?
17188compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17189
17190# Whether or not to add -lc for building shared libraries.
17191build_libtool_need_lc=$archive_cmds_need_lc
17192
17193# Whether or not to disallow shared libs when runtime libs are static.
17194allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17195
17196# Compiler flag to allow reflexive dlopens.
17197export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17198
17199# Compiler flag to generate shared objects directly from archives.
17200whole_archive_flag_spec=$lt_whole_archive_flag_spec
17201
17202# Whether the compiler copes with passing no objects directly.
17203compiler_needs_object=$lt_compiler_needs_object
17204
17205# Create an old-style archive from a shared archive.
17206old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17207
17208# Create a temporary old-style archive to link instead of a shared archive.
17209old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17210
17211# Commands used to build a shared archive.
17212archive_cmds=$lt_archive_cmds
17213archive_expsym_cmds=$lt_archive_expsym_cmds
17214
17215# Commands used to build a loadable module if different from building
17216# a shared archive.
17217module_cmds=$lt_module_cmds
17218module_expsym_cmds=$lt_module_expsym_cmds
17219
17220# Whether we are building with GNU ld or not.
17221with_gnu_ld=$lt_with_gnu_ld
17222
17223# Flag that allows shared libraries with undefined symbols to be built.
17224allow_undefined_flag=$lt_allow_undefined_flag
17225
17226# Flag that enforces no undefined symbols.
17227no_undefined_flag=$lt_no_undefined_flag
17228
17229# Flag to hardcode \$libdir into a binary during linking.
17230# This must work even if \$libdir does not exist
17231hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17232
17233# If ld is used when linking, flag to hardcode \$libdir into a binary
17234# during linking. This must work even if \$libdir does not exist.
17235hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17236
17237# Whether we need a single "-rpath" flag with a separated argument.
17238hardcode_libdir_separator=$lt_hardcode_libdir_separator
17239
17240# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17241# DIR into the resulting binary.
17242hardcode_direct=$hardcode_direct
17243
17244# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17245# DIR into the resulting binary and the resulting library dependency is
17246# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17247# library is relocated.
17248hardcode_direct_absolute=$hardcode_direct_absolute
17249
17250# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17251# into the resulting binary.
17252hardcode_minus_L=$hardcode_minus_L
17253
17254# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17255# into the resulting binary.
17256hardcode_shlibpath_var=$hardcode_shlibpath_var
17257
17258# Set to "yes" if building a shared library automatically hardcodes DIR
17259# into the library and all subsequent libraries and executables linked
17260# against it.
17261hardcode_automatic=$hardcode_automatic
17262
17263# Set to yes if linker adds runtime paths of dependent libraries
17264# to runtime path list.
17265inherit_rpath=$inherit_rpath
17266
17267# Whether libtool must link a program against all its dependency libraries.
17268link_all_deplibs=$link_all_deplibs
17269
17270# Fix the shell variable \$srcfile for the compiler.
17271fix_srcfile_path=$lt_fix_srcfile_path
17272
17273# Set to "yes" if exported symbols are required.
17274always_export_symbols=$always_export_symbols
17275
17276# The commands to list exported symbols.
17277export_symbols_cmds=$lt_export_symbols_cmds
17278
17279# Symbols that should not be listed in the preloaded symbols.
17280exclude_expsyms=$lt_exclude_expsyms
17281
17282# Symbols that must always be exported.
17283include_expsyms=$lt_include_expsyms
17284
17285# Commands necessary for linking programs (against libraries) with templates.
17286prelink_cmds=$lt_prelink_cmds
17287
17288# Specify filename containing input files.
17289file_list_spec=$lt_file_list_spec
17290
17291# How to hardcode a shared library path into an executable.
17292hardcode_action=$hardcode_action
17293
17294# ### END LIBTOOL CONFIG
17295
17296_LT_EOF
17297
17298 case $host_os in
17299 aix3*)
17300 cat <<\_LT_EOF >> "$cfgfile"
17301# AIX sometimes has problems with the GCC collect2 program. For some
17302# reason, if we set the COLLECT_NAMES environment variable, the problems
17303# vanish in a puff of smoke.
17304if test "X${COLLECT_NAMES+set}" != Xset; then
17305 COLLECT_NAMES=
17306 export COLLECT_NAMES
17307fi
17308_LT_EOF
17309 ;;
17310 esac
17311
17312
17313ltmain="$ac_aux_dir/ltmain.sh"
17314
17315
17316 # We use sed instead of cat because bash on DJGPP gets confused if
17317 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17318 # text mode, it properly converts lines to CR/LF. This bash problem
17319 # is reportedly fixed, but why not run on old versions too?
17320 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17321 || (rm -f "$cfgfile"; exit 1)
17322
17323 case $xsi_shell in
17324 yes)
17325 cat << \_LT_EOF >> "$cfgfile"
718a6fd8 17326
d7040cdb
SE
17327# func_dirname file append nondir_replacement
17328# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17329# otherwise set result to NONDIR_REPLACEMENT.
17330func_dirname ()
17331{
17332 case ${1} in
17333 */*) func_dirname_result="${1%/*}${2}" ;;
17334 * ) func_dirname_result="${3}" ;;
17335 esac
17336}
17337
17338# func_basename file
17339func_basename ()
17340{
17341 func_basename_result="${1##*/}"
17342}
17343
718a6fd8
SE
17344# func_dirname_and_basename file append nondir_replacement
17345# perform func_basename and func_dirname in a single function
17346# call:
17347# dirname: Compute the dirname of FILE. If nonempty,
17348# add APPEND to the result, otherwise set result
17349# to NONDIR_REPLACEMENT.
17350# value returned in "$func_dirname_result"
17351# basename: Compute filename of FILE.
17352# value retuned in "$func_basename_result"
17353# Implementation must be kept synchronized with func_dirname
17354# and func_basename. For efficiency, we do not delegate to
17355# those functions but instead duplicate the functionality here.
17356func_dirname_and_basename ()
17357{
17358 case ${1} in
17359 */*) func_dirname_result="${1%/*}${2}" ;;
17360 * ) func_dirname_result="${3}" ;;
17361 esac
17362 func_basename_result="${1##*/}"
17363}
17364
d7040cdb
SE
17365# func_stripname prefix suffix name
17366# strip PREFIX and SUFFIX off of NAME.
17367# PREFIX and SUFFIX must not contain globbing or regex special
17368# characters, hashes, percent signs, but SUFFIX may contain a leading
17369# dot (in which case that matches only a dot).
17370func_stripname ()
17371{
17372 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17373 # positional parameters, so assign one to ordinary parameter first.
17374 func_stripname_result=${3}
17375 func_stripname_result=${func_stripname_result#"${1}"}
17376 func_stripname_result=${func_stripname_result%"${2}"}
17377}
17378
17379# func_opt_split
17380func_opt_split ()
17381{
17382 func_opt_split_opt=${1%%=*}
17383 func_opt_split_arg=${1#*=}
17384}
17385
17386# func_lo2o object
17387func_lo2o ()
17388{
17389 case ${1} in
17390 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17391 *) func_lo2o_result=${1} ;;
17392 esac
17393}
718a6fd8
SE
17394
17395# func_xform libobj-or-source
17396func_xform ()
17397{
17398 func_xform_result=${1%.*}.lo
17399}
17400
17401# func_arith arithmetic-term...
17402func_arith ()
17403{
17404 func_arith_result=$(( $* ))
17405}
17406
17407# func_len string
17408# STRING may not start with a hyphen.
17409func_len ()
17410{
17411 func_len_result=${#1}
17412}
17413
d7040cdb
SE
17414_LT_EOF
17415 ;;
17416 *) # Bourne compatible functions.
17417 cat << \_LT_EOF >> "$cfgfile"
718a6fd8 17418
d7040cdb
SE
17419# func_dirname file append nondir_replacement
17420# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17421# otherwise set result to NONDIR_REPLACEMENT.
17422func_dirname ()
17423{
17424 # Extract subdirectory from the argument.
17425 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
17426 if test "X$func_dirname_result" = "X${1}"; then
17427 func_dirname_result="${3}"
17428 else
17429 func_dirname_result="$func_dirname_result${2}"
17430 fi
17431}
17432
17433# func_basename file
17434func_basename ()
17435{
17436 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
17437}
17438
718a6fd8 17439
d7040cdb
SE
17440# func_stripname prefix suffix name
17441# strip PREFIX and SUFFIX off of NAME.
17442# PREFIX and SUFFIX must not contain globbing or regex special
17443# characters, hashes, percent signs, but SUFFIX may contain a leading
17444# dot (in which case that matches only a dot).
17445# func_strip_suffix prefix name
17446func_stripname ()
17447{
17448 case ${2} in
17449 .*) func_stripname_result=`$ECHO "X${3}" \
17450 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
17451 *) func_stripname_result=`$ECHO "X${3}" \
17452 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
17453 esac
17454}
17455
17456# sed scripts:
17457my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17458my_sed_long_arg='1s/^-[^=]*=//'
17459
17460# func_opt_split
17461func_opt_split ()
17462{
17463 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
17464 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
17465}
17466
17467# func_lo2o object
17468func_lo2o ()
17469{
17470 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
17471}
718a6fd8
SE
17472
17473# func_xform libobj-or-source
17474func_xform ()
17475{
17476 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
17477}
17478
17479# func_arith arithmetic-term...
17480func_arith ()
17481{
17482 func_arith_result=`expr "$@"`
17483}
17484
17485# func_len string
17486# STRING may not start with a hyphen.
17487func_len ()
17488{
17489 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17490}
17491
d7040cdb
SE
17492_LT_EOF
17493esac
17494
17495case $lt_shell_append in
17496 yes)
17497 cat << \_LT_EOF >> "$cfgfile"
17498
17499# func_append var value
17500# Append VALUE to the end of shell variable VAR.
17501func_append ()
17502{
17503 eval "$1+=\$2"
17504}
17505_LT_EOF
17506 ;;
17507 *)
17508 cat << \_LT_EOF >> "$cfgfile"
17509
17510# func_append var value
17511# Append VALUE to the end of shell variable VAR.
17512func_append ()
17513{
17514 eval "$1=\$$1\$2"
17515}
718a6fd8 17516
d7040cdb
SE
17517_LT_EOF
17518 ;;
17519 esac
17520
17521
17522 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17523 || (rm -f "$cfgfile"; exit 1)
17524
17525 mv -f "$cfgfile" "$ofile" ||
17526 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17527 chmod +x "$ofile"
17528
13b2be9c 17529 ;;
20e95c23
DJ
17530 default-1 )
17531 for ac_file in $CONFIG_FILES; do
17532 # Support "outfile[:infile[:infile...]]"
17533 case "$ac_file" in
17534 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17535 esac
17536 # PO directories have a Makefile.in generated from Makefile.in.in.
17537 case "$ac_file" in */Makefile.in)
17538 # Adjust a relative srcdir.
17539 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17540 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
17541 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17542 # In autoconf-2.13 it is called $ac_given_srcdir.
17543 # In autoconf-2.50 it is called $srcdir.
17544 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17545 case "$ac_given_srcdir" in
17546 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17547 /*) top_srcdir="$ac_given_srcdir" ;;
17548 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
17549 esac
17550 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17551 rm -f "$ac_dir/POTFILES"
17552 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17553 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17554 POMAKEFILEDEPS="POTFILES.in"
17555 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
17556 # on $ac_dir but don't depend on user-specified configuration
17557 # parameters.
17558 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17559 # The LINGUAS file contains the set of available languages.
17560 if test -n "$OBSOLETE_ALL_LINGUAS"; then
17561 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
17562 fi
17563 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17564 # Hide the ALL_LINGUAS assigment from automake.
17565 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17566 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
17567 else
17568 # The set of available languages was given in configure.in.
17569 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
17570 fi
17571 case "$ac_given_srcdir" in
17572 .) srcdirpre= ;;
17573 *) srcdirpre='$(srcdir)/' ;;
17574 esac
17575 POFILES=
17576 GMOFILES=
17577 UPDATEPOFILES=
17578 DUMMYPOFILES=
17579 for lang in $ALL_LINGUAS; do
17580 POFILES="$POFILES $srcdirpre$lang.po"
17581 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17582 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17583 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17584 done
17585 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17586 # environment variable.
17587 INST_LINGUAS=
17588 if test -n "$ALL_LINGUAS"; then
17589 for presentlang in $ALL_LINGUAS; do
17590 useit=no
17591 if test "%UNSET%" != "$LINGUAS"; then
17592 desiredlanguages="$LINGUAS"
17593 else
17594 desiredlanguages="$ALL_LINGUAS"
17595 fi
17596 for desiredlang in $desiredlanguages; do
17597 # Use the presentlang catalog if desiredlang is
17598 # a. equal to presentlang, or
17599 # b. a variant of presentlang (because in this case,
17600 # presentlang can be used as a fallback for messages
17601 # which are not translated in the desiredlang catalog).
17602 case "$desiredlang" in
17603 "$presentlang"*) useit=yes;;
17604 esac
17605 done
17606 if test $useit = yes; then
17607 INST_LINGUAS="$INST_LINGUAS $presentlang"
17608 fi
17609 done
17610 fi
17611 CATALOGS=
17612 if test -n "$INST_LINGUAS"; then
17613 for lang in $INST_LINGUAS; do
17614 CATALOGS="$CATALOGS $lang.gmo"
17615 done
17616 fi
17617 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17618 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"
17619 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17620 if test -f "$f"; then
17621 case "$f" in
17622 *.orig | *.bak | *~) ;;
17623 *) cat "$f" >> "$ac_dir/Makefile" ;;
17624 esac
17625 fi
17626 done
17627 fi
17628 ;;
17629 esac
17630 done ;;
13b2be9c 17631 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
17632 echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
17633 echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
17634 echo '#include "te-'"${te_file}"'.h"' > targ-env.h
17635 echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
17636 if test "x$cgen_cpu_prefix" != x ; then
17637 echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h
20e95c23 17638 fi ;;
13b2be9c
DJ
17639 esac
17640done
17641_ACEOF
17642
17643cat >>$CONFIG_STATUS <<\_ACEOF
17644
17645{ (exit 0); exit 0; }
17646_ACEOF
252b5132 17647chmod +x $CONFIG_STATUS
13b2be9c
DJ
17648ac_clean_files=$ac_clean_files_save
17649
17650
17651# configure is writing to config.log, and then calls config.status.
17652# config.status does its own redirection, appending to config.log.
17653# Unfortunately, on DOS this fails, as config.log is still kept open
17654# by configure, so config.status won't be able to write to it; its
17655# output is simply discarded. So we exec the FD to /dev/null,
17656# effectively closing config.log, so it can be properly (re)opened and
17657# appended to by config.status. When coming back to configure, we
17658# need to make the FD available again.
17659if test "$no_create" != yes; then
17660 ac_cs_success=:
17661 ac_config_status_args=
17662 test "$silent" = yes &&
17663 ac_config_status_args="$ac_config_status_args --quiet"
17664 exec 5>/dev/null
17665 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17666 exec 5>>config.log
17667 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17668 # would make configure fail if this is the last instruction.
17669 $ac_cs_success || { (exit 1); exit 1; }
17670fi
252b5132 17671
This page took 1.41884 seconds and 4 git commands to generate.