]> git.ipfire.org Git - thirdparty/gcc.git/blame - boehm-gc/configure
configure.ac: Bump AC_PREREQ to 2.59.
[thirdparty/gcc.git] / boehm-gc / configure
CommitLineData
1530be84 1#! /bin/sh
1530be84 2# Guess values for system-dependent variables and create Makefiles.
8ab705be 3# Generated by GNU Autoconf 2.59.
1530be84 4#
8ab705be 5# Copyright (C) 2003 Free Software Foundation, Inc.
1530be84
TT
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
47935194
NN
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
8ab705be 22DUALCASE=1; export DUALCASE # for MKS sh
47935194
NN
23
24# Support unset when possible.
8ab705be 25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
47935194
NN
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
8ab705be 44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47935194
NN
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
8ab705be 221 test -d ./-p && rmdir ./-p
47935194
NN
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.
8ab705be 228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
47935194
NN
229
230# Sed expression to map a string onto a valid variable name.
8ab705be 231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
47935194 232
1530be84 233
47935194
NN
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
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
1530be84 254ac_default_prefix=/usr/local
47935194
NN
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete. It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="gcj_mlc.c"
275# Factoring default headers for most tests.
276ac_includes_default="\
277#include <stdio.h>
278#if HAVE_SYS_TYPES_H
279# include <sys/types.h>
280#endif
281#if HAVE_SYS_STAT_H
282# include <sys/stat.h>
283#endif
284#if STDC_HEADERS
285# include <stdlib.h>
286# include <stddef.h>
287#else
288# if HAVE_STDLIB_H
289# include <stdlib.h>
290# endif
291#endif
292#if HAVE_STRING_H
293# if !STDC_HEADERS && HAVE_MEMORY_H
294# include <memory.h>
295# endif
296# include <string.h>
297#endif
298#if HAVE_STRINGS_H
299# include <strings.h>
300#endif
301#if HAVE_INTTYPES_H
302# include <inttypes.h>
303#else
304# if HAVE_STDINT_H
305# include <stdint.h>
306# endif
307#endif
308#if HAVE_UNISTD_H
309# include <unistd.h>
310#endif"
311
7664e6f8 312ac_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 gc_basedir build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os mkinstalldirs INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE CC ac_ct_CC EXEEXT OBJEXT CXX ac_ct_CXX CFLAGS CXXFLAGS CCAS CCASFLAGS AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GC_CFLAGS LN_S STRIP ac_ct_STRIP LIBTOOL CXXCPP CPPFLAGS THREADLIBS POWERPC_DARWIN_TRUE POWERPC_DARWIN_FALSE EXTRA_TEST_LIBS target_all target_noncanonical CPLUSPLUS_TRUE CPLUSPLUS_FALSE INCLUDES CXXINCLUDES addobjs addincludes addlibs addtests CPP EGREP MY_CFLAGS toolexecdir toolexeclibdir LIBOBJS LTLIBOBJS'
47935194 313ac_subst_files=''
1530be84
TT
314
315# Initialize some variables set by options.
47935194
NN
316ac_init_help=
317ac_init_version=false
1530be84
TT
318# The variables have the same names as the options, with
319# dashes changed to underlines.
47935194 320cache_file=/dev/null
1530be84 321exec_prefix=NONE
1530be84 322no_create=
1530be84
TT
323no_recursion=
324prefix=NONE
325program_prefix=NONE
326program_suffix=NONE
327program_transform_name=s,x,x,
328silent=
329site=
330srcdir=
1530be84
TT
331verbose=
332x_includes=NONE
333x_libraries=NONE
47935194
NN
334
335# Installation directory options.
336# These are left unexpanded so users can "make install exec_prefix=/foo"
337# and all the variables that are supposed to be based on exec_prefix
338# by default will actually change.
339# Use braces instead of parens because sh, perl, etc. also accept them.
1530be84
TT
340bindir='${exec_prefix}/bin'
341sbindir='${exec_prefix}/sbin'
342libexecdir='${exec_prefix}/libexec'
343datadir='${prefix}/share'
344sysconfdir='${prefix}/etc'
345sharedstatedir='${prefix}/com'
346localstatedir='${prefix}/var'
347libdir='${exec_prefix}/lib'
348includedir='${prefix}/include'
349oldincludedir='/usr/include'
350infodir='${prefix}/info'
351mandir='${prefix}/man'
352
1530be84
TT
353ac_prev=
354for ac_option
355do
1530be84
TT
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
361 fi
362
47935194 363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
1530be84
TT
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
47935194 367 case $ac_option in
1530be84
TT
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
47935194 372 bindir=$ac_optarg ;;
1530be84
TT
373
374 -build | --build | --buil | --bui | --bu)
47935194 375 ac_prev=build_alias ;;
1530be84 376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
47935194 377 build_alias=$ac_optarg ;;
1530be84
TT
378
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
47935194
NN
384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
1530be84
TT
388
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
47935194 393 datadir=$ac_optarg ;;
1530be84
TT
394
395 -disable-* | --disable-*)
47935194 396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1530be84 397 # Reject names that are not valid shell variable names.
47935194
NN
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
1530be84
TT
403
404 -enable-* | --enable-*)
47935194 405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1530be84 406 # Reject names that are not valid shell variable names.
47935194
NN
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
1530be84
TT
413 *) ac_optarg=yes ;;
414 esac
47935194 415 eval "enable_$ac_feature='$ac_optarg'" ;;
1530be84
TT
416
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
47935194 424 exec_prefix=$ac_optarg ;;
1530be84
TT
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
47935194
NN
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
1530be84
TT
436
437 -host | --host | --hos | --ho)
47935194 438 ac_prev=host_alias ;;
1530be84 439 -host=* | --host=* | --hos=* | --ho=*)
47935194 440 host_alias=$ac_optarg ;;
1530be84
TT
441
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
47935194 447 includedir=$ac_optarg ;;
1530be84
TT
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
47935194 452 infodir=$ac_optarg ;;
1530be84
TT
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
47935194 457 libdir=$ac_optarg ;;
1530be84
TT
458
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
47935194 464 libexecdir=$ac_optarg ;;
1530be84
TT
465
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
47935194 473 localstatedir=$ac_optarg ;;
1530be84
TT
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
47935194 478 mandir=$ac_optarg ;;
1530be84
TT
479
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
483
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
47935194 485 | --no-cr | --no-c | -n)
1530be84
TT
486 no_create=yes ;;
487
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
491
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
47935194 499 oldincludedir=$ac_optarg ;;
1530be84
TT
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
47935194 504 prefix=$ac_optarg ;;
1530be84
TT
505
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
47935194 511 program_prefix=$ac_optarg ;;
1530be84
TT
512
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
47935194 518 program_suffix=$ac_optarg ;;
1530be84
TT
519
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
47935194 535 program_transform_name=$ac_optarg ;;
1530be84
TT
536
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
540
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
47935194 545 sbindir=$ac_optarg ;;
1530be84
TT
546
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
47935194 556 sharedstatedir=$ac_optarg ;;
1530be84
TT
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
47935194 561 site=$ac_optarg ;;
1530be84
TT
562
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
47935194 566 srcdir=$ac_optarg ;;
1530be84
TT
567
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
47935194 573 sysconfdir=$ac_optarg ;;
1530be84
TT
574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
47935194 576 ac_prev=target_alias ;;
1530be84 577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
47935194 578 target_alias=$ac_optarg ;;
1530be84
TT
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
47935194
NN
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
1530be84
TT
585
586 -with-* | --with-*)
47935194 587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1530be84 588 # Reject names that are not valid shell variable names.
47935194
NN
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
1530be84 592 ac_package=`echo $ac_package| sed 's/-/_/g'`
47935194
NN
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
1530be84
TT
595 *) ac_optarg=yes ;;
596 esac
47935194 597 eval "with_$ac_package='$ac_optarg'" ;;
1530be84
TT
598
599 -without-* | --without-*)
47935194 600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1530be84 601 # Reject names that are not valid shell variable names.
47935194
NN
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
1530be84
TT
607
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
611
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
47935194 617 x_includes=$ac_optarg ;;
1530be84
TT
618
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
47935194 624 x_libraries=$ac_optarg ;;
1530be84 625
47935194
NN
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
1530be84
TT
629 ;;
630
47935194
NN
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
640
1530be84 641 *)
47935194
NN
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1530be84
TT
647 ;;
648
649 esac
650done
651
652if test -n "$ac_prev"; then
47935194
NN
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
1530be84 656fi
1530be84 657
47935194
NN
658# Be sure to have absolute paths.
659for ac_var in exec_prefix prefix
660do
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667done
1530be84 668
47935194
NN
669# Be sure to have absolute paths.
670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
8ab705be 671 localstatedir libdir includedir oldincludedir infodir mandir
1530be84 672do
47935194
NN
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
1530be84
TT
678 esac
679done
680
47935194
NN
681# There might be people who depend on the old broken behavior: `$host'
682# used to hold the argument of --host etc.
683# FIXME: To remove some day.
684build=$build_alias
685host=$host_alias
686target=$target_alias
687
688# FIXME: To remove some day.
689if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
696 fi
697fi
1530be84 698
47935194
NN
699ac_tool_prefix=
700test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702test "$silent" = yes && exec 6>/dev/null
1530be84 703
1530be84
TT
704
705# Find the source files, if location was not specified.
706if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
47935194
NN
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8ab705be
KC
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
47935194
NN
715echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
1530be84
TT
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
724 fi
725else
726 ac_srcdir_defaulted=no
727fi
728if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
47935194
NN
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
1530be84 732 else
47935194
NN
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
1530be84
TT
735 fi
736fi
47935194
NN
737(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741ac_env_build_alias_set=${build_alias+set}
742ac_env_build_alias_value=$build_alias
743ac_cv_env_build_alias_set=${build_alias+set}
744ac_cv_env_build_alias_value=$build_alias
745ac_env_host_alias_set=${host_alias+set}
746ac_env_host_alias_value=$host_alias
747ac_cv_env_host_alias_set=${host_alias+set}
748ac_cv_env_host_alias_value=$host_alias
749ac_env_target_alias_set=${target_alias+set}
750ac_env_target_alias_value=$target_alias
751ac_cv_env_target_alias_set=${target_alias+set}
752ac_cv_env_target_alias_value=$target_alias
47935194
NN
753ac_env_CXXCPP_set=${CXXCPP+set}
754ac_env_CXXCPP_value=$CXXCPP
755ac_cv_env_CXXCPP_set=${CXXCPP+set}
756ac_cv_env_CXXCPP_value=$CXXCPP
e22db4bf
NN
757ac_env_CPPFLAGS_set=${CPPFLAGS+set}
758ac_env_CPPFLAGS_value=$CPPFLAGS
759ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
760ac_cv_env_CPPFLAGS_value=$CPPFLAGS
47935194
NN
761ac_env_CPP_set=${CPP+set}
762ac_env_CPP_value=$CPP
763ac_cv_env_CPP_set=${CPP+set}
764ac_cv_env_CPP_value=$CPP
765
766#
767# Report the --help message.
768#
769if test "$ac_init_help" = "long"; then
770 # Omit some internal or obsolete options to make the list less imposing.
771 # This message is too long to be a string in the A/UX 3.1 sh.
772 cat <<_ACEOF
773\`configure' configures this package to adapt to many kinds of systems.
774
775Usage: $0 [OPTION]... [VAR=VALUE]...
776
777To assign environment variables (e.g., CC, CFLAGS...), specify them as
778VAR=VALUE. See below for descriptions of some of the useful variables.
779
780Defaults for the options are specified in brackets.
781
782Configuration:
783 -h, --help display this help and exit
784 --help=short display options specific to this package
785 --help=recursive display the short help of all the included packages
786 -V, --version display version information and exit
787 -q, --quiet, --silent do not print \`checking...' messages
788 --cache-file=FILE cache test results in FILE [disabled]
789 -C, --config-cache alias for \`--cache-file=config.cache'
790 -n, --no-create do not create output files
791 --srcdir=DIR find the sources in DIR [configure dir or \`..']
792
793_ACEOF
794
795 cat <<_ACEOF
796Installation directories:
797 --prefix=PREFIX install architecture-independent files in PREFIX
8ab705be 798 [$ac_default_prefix]
47935194 799 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
8ab705be 800 [PREFIX]
47935194
NN
801
802By default, \`make install' will install all the files in
803\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
804an installation prefix other than \`$ac_default_prefix' using \`--prefix',
805for instance \`--prefix=\$HOME'.
806
807For better control, use the options below.
808
809Fine tuning of the installation directories:
810 --bindir=DIR user executables [EPREFIX/bin]
811 --sbindir=DIR system admin executables [EPREFIX/sbin]
812 --libexecdir=DIR program executables [EPREFIX/libexec]
813 --datadir=DIR read-only architecture-independent data [PREFIX/share]
814 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
815 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
816 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
817 --libdir=DIR object code libraries [EPREFIX/lib]
818 --includedir=DIR C header files [PREFIX/include]
819 --oldincludedir=DIR C header files for non-gcc [/usr/include]
820 --infodir=DIR info documentation [PREFIX/info]
821 --mandir=DIR man documentation [PREFIX/man]
822_ACEOF
823
824 cat <<\_ACEOF
825
826Program names:
827 --program-prefix=PREFIX prepend PREFIX to installed program names
828 --program-suffix=SUFFIX append SUFFIX to installed program names
829 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
830
831System types:
832 --build=BUILD configure for building on BUILD [guessed]
833 --host=HOST cross-compile to build programs to run on HOST [BUILD]
834 --target=TARGET configure for building compilers for TARGET [HOST]
835_ACEOF
836fi
837
838if test -n "$ac_init_help"; then
839
840 cat <<\_ACEOF
841
842Optional Features:
843 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
844 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
845 --enable-multilib build many library versions (default)
846 --enable-maintainer-mode enable make rules and dependencies not useful
847 (and sometimes confusing) to the casual installer
848 --enable-shared=PKGS build shared libraries default=yes
849 --enable-static=PKGS build static libraries default=yes
850 --enable-fast-install=PKGS optimize for fast installation default=yes
851 --disable-libtool-lock avoid locking (might break parallel builds)
852 --enable-parallel-mark parallelize marking and free list construction
853 --enable-full-debug include full support for pointer backtracing etc.
854
855Optional Packages:
856 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
857 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
858 --with-gnu-ld assume the C compiler uses GNU ld default=no
859 --with-pic try to use only PIC/non-PIC objects default=use both
860 --with-target-subdir=SUBDIR
861 configuring with a cross compiler
862 --with-cross-host=HOST configuring with a cross compiler
863 --with-ecos enable runtime eCos target support
864
865Some influential environment variables:
866 CC C compiler command
867 CFLAGS C compiler flags
868 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
869 nonstandard directory <lib dir>
870 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
871 headers in a nonstandard directory <include dir>
872 CXX C++ compiler command
873 CXXFLAGS C++ compiler flags
874 CXXCPP C++ preprocessor
875 CPP C preprocessor
876
877Use these variables to override the choices made by `configure' or to help
878it to find libraries and programs with nonstandard names/locations.
879
880_ACEOF
881fi
882
883if test "$ac_init_help" = "recursive"; then
884 # If there are subdirs, report their specific --help.
885 ac_popdir=`pwd`
886 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
887 test -d $ac_dir || continue
888 ac_builddir=.
889
890if test "$ac_dir" != .; then
891 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
892 # A "../" for each directory in $ac_dir_suffix.
893 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
894else
895 ac_dir_suffix= ac_top_builddir=
896fi
897
898case $srcdir in
899 .) # No --srcdir option. We are building in place.
900 ac_srcdir=.
901 if test -z "$ac_top_builddir"; then
902 ac_top_srcdir=.
903 else
904 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
905 fi ;;
906 [\\/]* | ?:[\\/]* ) # Absolute path.
907 ac_srcdir=$srcdir$ac_dir_suffix;
908 ac_top_srcdir=$srcdir ;;
909 *) # Relative path.
910 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
911 ac_top_srcdir=$ac_top_builddir$srcdir ;;
912esac
8ab705be
KC
913
914# Do not use `cd foo && pwd` to compute absolute paths, because
915# the directories may not exist.
916case `pwd` in
917.) ac_abs_builddir="$ac_dir";;
918*)
919 case "$ac_dir" in
920 .) ac_abs_builddir=`pwd`;;
921 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
922 *) ac_abs_builddir=`pwd`/"$ac_dir";;
923 esac;;
924esac
925case $ac_abs_builddir in
926.) ac_abs_top_builddir=${ac_top_builddir}.;;
927*)
928 case ${ac_top_builddir}. in
929 .) ac_abs_top_builddir=$ac_abs_builddir;;
930 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
931 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
932 esac;;
933esac
934case $ac_abs_builddir in
935.) ac_abs_srcdir=$ac_srcdir;;
936*)
937 case $ac_srcdir in
938 .) ac_abs_srcdir=$ac_abs_builddir;;
939 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
940 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
941 esac;;
942esac
943case $ac_abs_builddir in
944.) ac_abs_top_srcdir=$ac_top_srcdir;;
945*)
946 case $ac_top_srcdir in
947 .) ac_abs_top_srcdir=$ac_abs_builddir;;
948 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
949 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
950 esac;;
951esac
47935194
NN
952
953 cd $ac_dir
954 # Check for guested configure; otherwise get Cygnus style configure.
955 if test -f $ac_srcdir/configure.gnu; then
956 echo
957 $SHELL $ac_srcdir/configure.gnu --help=recursive
958 elif test -f $ac_srcdir/configure; then
959 echo
960 $SHELL $ac_srcdir/configure --help=recursive
961 elif test -f $ac_srcdir/configure.ac ||
8ab705be 962 test -f $ac_srcdir/configure.in; then
47935194
NN
963 echo
964 $ac_configure --help
965 else
966 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
967 fi
8ab705be 968 cd $ac_popdir
47935194
NN
969 done
970fi
971
972test -n "$ac_init_help" && exit 0
973if $ac_init_version; then
974 cat <<\_ACEOF
975
8ab705be 976Copyright (C) 2003 Free Software Foundation, Inc.
47935194
NN
977This configure script is free software; the Free Software Foundation
978gives unlimited permission to copy, distribute and modify it.
979_ACEOF
980 exit 0
981fi
982exec 5>config.log
983cat >&5 <<_ACEOF
984This file contains any messages produced by compilers while
985running configure, to aid debugging if configure makes a mistake.
986
987It was created by $as_me, which was
8ab705be 988generated by GNU Autoconf 2.59. Invocation command line was
47935194
NN
989
990 $ $0 $@
991
992_ACEOF
993{
994cat <<_ASUNAME
995## --------- ##
996## Platform. ##
997## --------- ##
998
999hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1000uname -m = `(uname -m) 2>/dev/null || echo unknown`
1001uname -r = `(uname -r) 2>/dev/null || echo unknown`
1002uname -s = `(uname -s) 2>/dev/null || echo unknown`
1003uname -v = `(uname -v) 2>/dev/null || echo unknown`
1004
1005/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1006/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1007
1008/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1009/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1010/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1011hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1012/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1013/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1014/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1015
1016_ASUNAME
1017
1018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1019for as_dir in $PATH
1020do
1021 IFS=$as_save_IFS
1022 test -z "$as_dir" && as_dir=.
1023 echo "PATH: $as_dir"
1024done
1025
1026} >&5
1027
1028cat >&5 <<_ACEOF
1029
1030
1031## ----------- ##
1032## Core tests. ##
1033## ----------- ##
1034
1035_ACEOF
1036
1037
1038# Keep a trace of the command line.
1039# Strip out --no-create and --no-recursion so they do not pile up.
1040# Strip out --silent because we don't want to record it for future runs.
1041# Also quote any args containing shell meta-characters.
1042# Make two passes to allow for proper duplicate-argument suppression.
1043ac_configure_args=
1044ac_configure_args0=
1045ac_configure_args1=
1046ac_sep=
1047ac_must_keep_next=false
1048for ac_pass in 1 2
1049do
1050 for ac_arg
1051 do
1052 case $ac_arg in
1053 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1054 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1055 | -silent | --silent | --silen | --sile | --sil)
1056 continue ;;
1057 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1058 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1059 esac
1060 case $ac_pass in
1061 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1062 2)
1063 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1064 if test $ac_must_keep_next = true; then
8ab705be 1065 ac_must_keep_next=false # Got value, back to normal.
47935194 1066 else
8ab705be
KC
1067 case $ac_arg in
1068 *=* | --config-cache | -C | -disable-* | --disable-* \
1069 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1070 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1071 | -with-* | --with-* | -without-* | --without-* | --x)
1072 case "$ac_configure_args0 " in
1073 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1074 esac
1075 ;;
1076 -* ) ac_must_keep_next=true ;;
1077 esac
47935194
NN
1078 fi
1079 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1080 # Get rid of the leading space.
1081 ac_sep=" "
1082 ;;
1083 esac
1084 done
1085done
1086$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1087$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1088
1089# When interrupted or exit'd, cleanup temporary files, and complete
1090# config.log. We remove comments because anyway the quotes in there
1091# would cause problems or look ugly.
1092# WARNING: Be sure not to use single quotes in there, as some shells,
1093# such as our DU 5.0 friend, will then `close' the trap.
1094trap 'exit_status=$?
1095 # Save into config.log some information that might help in debugging.
1096 {
1097 echo
1098
1099 cat <<\_ASBOX
1100## ---------------- ##
1101## Cache variables. ##
1102## ---------------- ##
1103_ASBOX
1104 echo
1105 # The following way of writing the cache mishandles newlines in values,
1106{
1107 (set) 2>&1 |
1108 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1109 *ac_space=\ *)
1110 sed -n \
8ab705be
KC
1111 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1112 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
47935194
NN
1113 ;;
1114 *)
1115 sed -n \
8ab705be 1116 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
47935194
NN
1117 ;;
1118 esac;
1119}
1120 echo
1121
1122 cat <<\_ASBOX
1123## ----------------- ##
1124## Output variables. ##
1125## ----------------- ##
1126_ASBOX
1127 echo
1128 for ac_var in $ac_subst_vars
1129 do
1130 eval ac_val=$`echo $ac_var`
1131 echo "$ac_var='"'"'$ac_val'"'"'"
1132 done | sort
1133 echo
1134
1135 if test -n "$ac_subst_files"; then
1136 cat <<\_ASBOX
1137## ------------- ##
1138## Output files. ##
1139## ------------- ##
1140_ASBOX
1141 echo
1142 for ac_var in $ac_subst_files
1143 do
1144 eval ac_val=$`echo $ac_var`
8ab705be 1145 echo "$ac_var='"'"'$ac_val'"'"'"
47935194
NN
1146 done | sort
1147 echo
1148 fi
1149
1150 if test -s confdefs.h; then
1151 cat <<\_ASBOX
1152## ----------- ##
1153## confdefs.h. ##
1154## ----------- ##
1155_ASBOX
1156 echo
1157 sed "/^$/d" confdefs.h | sort
1158 echo
1159 fi
1160 test "$ac_signal" != 0 &&
1161 echo "$as_me: caught signal $ac_signal"
1162 echo "$as_me: exit $exit_status"
1163 } >&5
1164 rm -f core *.core &&
1165 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1166 exit $exit_status
1167 ' 0
1168for ac_signal in 1 2 13 15; do
1169 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1170done
1171ac_signal=0
1172
1173# confdefs.h avoids OS command line length limits that DEFS can exceed.
1174rm -rf conftest* confdefs.h
1175# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1176echo >confdefs.h
1177
1178# Predefined preprocessor variables.
1179
1180cat >>confdefs.h <<_ACEOF
1181#define PACKAGE_NAME "$PACKAGE_NAME"
1182_ACEOF
1183
1184
1185cat >>confdefs.h <<_ACEOF
1186#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1187_ACEOF
1188
1189
1190cat >>confdefs.h <<_ACEOF
1191#define PACKAGE_VERSION "$PACKAGE_VERSION"
1192_ACEOF
1193
1530be84 1194
47935194
NN
1195cat >>confdefs.h <<_ACEOF
1196#define PACKAGE_STRING "$PACKAGE_STRING"
1197_ACEOF
1198
1199
1200cat >>confdefs.h <<_ACEOF
1201#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1202_ACEOF
1203
1204
1205# Let the site file select an alternate cache file if it wants to.
1530be84 1206# Prefer explicitly selected file to automatically selected ones.
30c3de1f
JS
1207if test -z "$CONFIG_SITE"; then
1208 if test "x$prefix" != xNONE; then
1209 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1210 else
1211 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1530be84
TT
1212 fi
1213fi
1214for ac_site_file in $CONFIG_SITE; do
1215 if test -r "$ac_site_file"; then
47935194
NN
1216 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1217echo "$as_me: loading site script $ac_site_file" >&6;}
1218 sed 's/^/| /' "$ac_site_file" >&5
1530be84
TT
1219 . "$ac_site_file"
1220 fi
1221done
1222
1223if test -r "$cache_file"; then
47935194
NN
1224 # Some versions of bash will fail to source /dev/null (special
1225 # files actually), so we avoid doing that.
1226 if test -f "$cache_file"; then
1227 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1228echo "$as_me: loading cache $cache_file" >&6;}
1229 case $cache_file in
1230 [\\/]* | ?:[\\/]* ) . $cache_file;;
1231 *) . ./$cache_file;;
1232 esac
1233 fi
1530be84 1234else
47935194
NN
1235 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1236echo "$as_me: creating cache $cache_file" >&6;}
1237 >$cache_file
1238fi
1239
1240# Check that the precious variables saved in the cache have kept the same
1241# value.
1242ac_cache_corrupted=false
1243for ac_var in `(set) 2>&1 |
8ab705be 1244 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
47935194
NN
1245 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1246 eval ac_new_set=\$ac_env_${ac_var}_set
1247 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1248 eval ac_new_val="\$ac_env_${ac_var}_value"
1249 case $ac_old_set,$ac_new_set in
1250 set,)
1251 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1252echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1253 ac_cache_corrupted=: ;;
1254 ,set)
1255 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1256echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1257 ac_cache_corrupted=: ;;
1258 ,);;
1259 *)
1260 if test "x$ac_old_val" != "x$ac_new_val"; then
8ab705be 1261 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
47935194 1262echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
8ab705be 1263 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
47935194 1264echo "$as_me: former value: $ac_old_val" >&2;}
8ab705be 1265 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
47935194 1266echo "$as_me: current value: $ac_new_val" >&2;}
8ab705be 1267 ac_cache_corrupted=:
47935194
NN
1268 fi;;
1269 esac
1270 # Pass precious variables to config.status.
1271 if test "$ac_new_set" = set; then
1272 case $ac_new_val in
1273 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1274 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1275 *) ac_arg=$ac_var=$ac_new_val ;;
1276 esac
1277 case " $ac_configure_args " in
1278 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1279 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1280 esac
1281 fi
1282done
1283if $ac_cache_corrupted; then
1284 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1285echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1286 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1287echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1288 { (exit 1); exit 1; }; }
1530be84
TT
1289fi
1290
1291ac_ext=c
1530be84 1292ac_cpp='$CPP $CPPFLAGS'
47935194
NN
1293ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1294ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1295ac_compiler_gnu=$ac_cv_c_compiler_gnu
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1530be84
TT
1313
1314
1315
6706f116
AO
1316# This works around the fact that libtool configuration may change LD
1317# for this particular configuration, but some shells, instead of
1318# keeping the changes in LD private, export them just because LD is
1319# exported.
1320ORIGINAL_LD_FOR_MULTILIBS=$LD
1321
b1891e51
NN
1322# Check whether --enable-multilib or --disable-multilib was given.
1323if test "${enable_multilib+set}" = set; then
1324 enableval="$enable_multilib"
1325 case "${enableval}" in
1326 yes) multilib=yes ;;
1327 no) multilib=no ;;
47935194
NN
1328 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
1329echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
1330 { (exit 1); exit 1; }; } ;;
b1891e51
NN
1331 esac
1332else
1333 multilib=yes
47935194 1334fi;
b1891e51
NN
1335
1336if test "${srcdir}" = "."; then
1337 if test "${with_target_subdir}" != "." -a -n "${with_target_subdir}"; then
1338 gc_basedir="${srcdir}/${with_multisrctop}../."
1339 else
1340 gc_basedir="${srcdir}/${with_multisrctop}."
1341 fi
1342else
1343 gc_basedir="${srcdir}/."
1344fi
1345
1346ac_aux_dir=
1347for ac_dir in $gc_basedir/.. $srcdir/$gc_basedir/..; do
1348 if test -f $ac_dir/install-sh; then
1349 ac_aux_dir=$ac_dir
1350 ac_install_sh="$ac_aux_dir/install-sh -c"
1351 break
1352 elif test -f $ac_dir/install.sh; then
1353 ac_aux_dir=$ac_dir
1354 ac_install_sh="$ac_aux_dir/install.sh -c"
1355 break
47935194
NN
1356 elif test -f $ac_dir/shtool; then
1357 ac_aux_dir=$ac_dir
1358 ac_install_sh="$ac_aux_dir/shtool install -c"
1359 break
b1891e51
NN
1360 fi
1361done
1362if test -z "$ac_aux_dir"; then
47935194
NN
1363 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $gc_basedir/.. $srcdir/$gc_basedir/.." >&5
1364echo "$as_me: error: cannot find install-sh or install.sh in $gc_basedir/.. $srcdir/$gc_basedir/.." >&2;}
1365 { (exit 1); exit 1; }; }
b1891e51 1366fi
47935194
NN
1367ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1368ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1369ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
b1891e51
NN
1370
1371if :; then :; else
1372 # This overrides the previous occurrence for automake, but not for
1373 # autoconf, which is exactly what we want.
1374 ac_aux_dir=
1375for ac_dir in .. $srcdir/..; do
1376 if test -f $ac_dir/install-sh; then
1377 ac_aux_dir=$ac_dir
1378 ac_install_sh="$ac_aux_dir/install-sh -c"
1379 break
1380 elif test -f $ac_dir/install.sh; then
1381 ac_aux_dir=$ac_dir
1382 ac_install_sh="$ac_aux_dir/install.sh -c"
1383 break
47935194
NN
1384 elif test -f $ac_dir/shtool; then
1385 ac_aux_dir=$ac_dir
1386 ac_install_sh="$ac_aux_dir/shtool install -c"
1387 break
1388 fi
b1891e51
NN
1389done
1390if test -z "$ac_aux_dir"; then
47935194
NN
1391 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
1392echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
1393 { (exit 1); exit 1; }; }
b1891e51 1394fi
47935194
NN
1395ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1396ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1397ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
b1891e51
NN
1398
1399fi
1400
b1891e51 1401# Make sure we can run config.sub.
47935194
NN
1402$ac_config_sub sun4 >/dev/null 2>&1 ||
1403 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1404echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1405 { (exit 1); exit 1; }; }
1406
1407echo "$as_me:$LINENO: checking build system type" >&5
1408echo $ECHO_N "checking build system type... $ECHO_C" >&6
1409if test "${ac_cv_build+set}" = set; then
1410 echo $ECHO_N "(cached) $ECHO_C" >&6
1411else
1412 ac_cv_build_alias=$build_alias
1413test -z "$ac_cv_build_alias" &&
1414 ac_cv_build_alias=`$ac_config_guess`
1415test -z "$ac_cv_build_alias" &&
1416 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1417echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1418 { (exit 1); exit 1; }; }
1419ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1420 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1421echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1422 { (exit 1); exit 1; }; }
1423
1424fi
1425echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1426echo "${ECHO_T}$ac_cv_build" >&6
1427build=$ac_cv_build
1428build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1429build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1430build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1431
1432
1433echo "$as_me:$LINENO: checking host system type" >&5
1434echo $ECHO_N "checking host system type... $ECHO_C" >&6
1435if test "${ac_cv_host+set}" = set; then
1436 echo $ECHO_N "(cached) $ECHO_C" >&6
1437else
1438 ac_cv_host_alias=$host_alias
1439test -z "$ac_cv_host_alias" &&
1440 ac_cv_host_alias=$ac_cv_build_alias
1441ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1442 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1443echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1444 { (exit 1); exit 1; }; }
1445
1446fi
1447echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1448echo "${ECHO_T}$ac_cv_host" >&6
1449host=$ac_cv_host
1450host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1451host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1452host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1453
1454
1455echo "$as_me:$LINENO: checking target system type" >&5
1456echo $ECHO_N "checking target system type... $ECHO_C" >&6
1457if test "${ac_cv_target+set}" = set; then
1458 echo $ECHO_N "(cached) $ECHO_C" >&6
1459else
1460 ac_cv_target_alias=$target_alias
1461test "x$ac_cv_target_alias" = "x" &&
1462 ac_cv_target_alias=$ac_cv_host_alias
1463ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1464 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1465echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1466 { (exit 1); exit 1; }; }
b1891e51 1467
47935194
NN
1468fi
1469echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1470echo "${ECHO_T}$ac_cv_target" >&6
1471target=$ac_cv_target
1472target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1473target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1474target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
b1891e51 1475
b1891e51 1476
47935194
NN
1477# The aliases save the names the user supplied, while $host etc.
1478# will get canonicalized.
1479test -n "$target_alias" &&
b1891e51
NN
1480 test "$program_prefix$program_suffix$program_transform_name" = \
1481 NONENONEs,x,x, &&
1482 program_prefix=${target_alias}-
1483
d38d6003
NN
1484# Get the 'noncanonical' system names.
1485# Autoconf M4 include file defining utility macros for complex Canadian
1486# cross builds.
1487
47935194
NN
1488
1489
1490
1491
d38d6003
NN
1492
1493####
47935194 1494# _NCN_TOOL_PREFIXES: Some stuff that oughtta be done in AC_CANONICAL_SYSTEM
d38d6003
NN
1495# or AC_INIT.
1496# These demand that AC_CANONICAL_SYSTEM be called beforehand.
47935194 1497
d38d6003
NN
1498####
1499# NCN_CHECK_TARGET_TOOL(variable, prog-to-check-for,[value-if-not-found],[path])
1500# Like AC_CHECK_TOOL, but tries a prefix of the target, not the host.
1501# Code is pretty much lifted from autoconf2.53.
1502
47935194 1503
d38d6003
NN
1504
1505####
1506# NCN_STRICT_CHECK_TOOL(variable, prog-to-check-for,[value-if-not-found],[path])
1507# Like AC_CHECK_TOOL, but requires the prefix if build!=host.
1508
47935194 1509
d38d6003
NN
1510
1511####
1512# NCN_STRICT_CHECK_TARGET_TOOL(variable, prog-to-check-for,[value-if-not-found],[path])
1513# Like NCN_CHECK_TARGET_TOOL, but requires the prefix if build!=target.
1514
47935194 1515
d38d6003
NN
1516###
1517# AC_PROG_CPP_WERROR
1518# Used for autoconf 2.5x to force AC_PREPROC_IFELSE to reject code which
1519# triggers warnings from the preprocessor. Will be in autoconf 2.58.
1520# For now, using this also overrides header checks to use only the
1521# preprocessor (matches 2.13 behavior; matching 2.58's behavior is a
1522# bit harder from here).
1523# Eventually autoconf will default to checking headers with the compiler
1524# instead, and we'll have to do this differently.
1525
1526# AC_PROG_CPP_WERROR
1527
1528 case ${build_alias} in
1529 "") build_noncanonical=${build} ;;
1530 *) build_noncanonical=${build_alias} ;;
1531esac
1532
1533 case ${host_alias} in
1534 "") host_noncanonical=${build_noncanonical} ;;
1535 *) host_noncanonical=${host_alias} ;;
1536esac
1537
1538 case ${target_alias} in
1539 "") target_noncanonical=${host_noncanonical} ;;
1540 *) target_noncanonical=${target_alias} ;;
1541esac
1542
1543
b1891e51
NN
1544# This works around an automake problem.
1545mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1546
1547
1530be84
TT
1548# Find a good install program. We prefer a C program (faster),
1549# so one script is as good as another. But avoid the broken or
1550# incompatible versions:
1551# SysV /etc/install, /usr/sbin/install
1552# SunOS /usr/etc/install
1553# IRIX /sbin/install
1554# AIX /bin/install
47935194 1555# AmigaOS /C/install, which installs bootblocks on floppy discs
1530be84
TT
1556# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1557# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1558# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8ab705be 1559# OS/2's system install, which has a completely different semantic
1530be84 1560# ./install, which can be erroneously created by make from ./install.sh.
47935194
NN
1561echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1562echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1530be84 1563if test -z "$INSTALL"; then
47935194
NN
1564if test "${ac_cv_path_install+set}" = set; then
1565 echo $ECHO_N "(cached) $ECHO_C" >&6
1530be84 1566else
47935194
NN
1567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1568for as_dir in $PATH
1569do
1570 IFS=$as_save_IFS
1571 test -z "$as_dir" && as_dir=.
1572 # Account for people who put trailing slashes in PATH elements.
1573case $as_dir/ in
1574 ./ | .// | /cC/* | \
1575 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8ab705be 1576 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
47935194
NN
1577 /usr/ucb/* ) ;;
1578 *)
1579 # OSF1 and SCO ODT 3.0 have their own names for install.
1580 # Don't use installbsd from OSF since it installs stuff as root
1581 # by default.
1582 for ac_prog in ginstall scoinst install; do
1583 for ac_exec_ext in '' $ac_executable_extensions; do
8ab705be
KC
1584 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1585 if test $ac_prog = install &&
1586 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1587 # AIX install. It has an incompatible calling convention.
1588 :
1589 elif test $ac_prog = install &&
1590 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1591 # program-specific install script used by HP pwplus--don't use.
1592 :
1593 else
1594 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1595 break 3
1596 fi
1597 fi
1530be84 1598 done
47935194
NN
1599 done
1600 ;;
1601esac
1602done
1603
1530be84
TT
1604
1605fi
1606 if test "${ac_cv_path_install+set}" = set; then
47935194 1607 INSTALL=$ac_cv_path_install
1530be84
TT
1608 else
1609 # As a last resort, use the slow shell script. We don't cache a
1610 # path for INSTALL within a source directory, because that will
1611 # break other packages using the cache if that directory is
1612 # removed, or if the path is relative.
47935194 1613 INSTALL=$ac_install_sh
1530be84
TT
1614 fi
1615fi
47935194
NN
1616echo "$as_me:$LINENO: result: $INSTALL" >&5
1617echo "${ECHO_T}$INSTALL" >&6
1530be84
TT
1618
1619# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1620# It thinks the first close brace ends the variable substitution.
1621test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1622
47935194 1623test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1530be84
TT
1624
1625test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1626
47935194
NN
1627echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1628echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1530be84
TT
1629# Just in case
1630sleep 1
1631echo timestamp > conftestfile
1632# Do `set' in a subshell so we don't clobber the current shell's
1633# arguments. Must try -L first in case configure is actually a
1634# symlink; some systems play weird games with the mod time of symlinks
1635# (eg FreeBSD returns the mod time of the symlink's containing
1636# directory).
1637if (
1638 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1639 if test "$*" = "X"; then
1640 # -L didn't work.
1641 set X `ls -t $srcdir/configure conftestfile`
1642 fi
1643 if test "$*" != "X $srcdir/configure conftestfile" \
1644 && test "$*" != "X conftestfile $srcdir/configure"; then
1645
1646 # If neither matched, then we have a broken ls. This can happen
1647 # if, for instance, CONFIG_SHELL is bash and it inherits a
1648 # broken ls alias from the environment. This has actually
1649 # happened. Such a system could not be considered "sane".
47935194
NN
1650 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1651alias in your environment" >&5
1652echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1653alias in your environment" >&2;}
1654 { (exit 1); exit 1; }; }
1530be84
TT
1655 fi
1656
1657 test "$2" = conftestfile
1658 )
1659then
1660 # Ok.
1661 :
1662else
47935194
NN
1663 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1664Check your system clock" >&5
1665echo "$as_me: error: newly created file is older than distributed files!
1666Check your system clock" >&2;}
1667 { (exit 1); exit 1; }; }
1530be84
TT
1668fi
1669rm -f conftest*
47935194
NN
1670echo "$as_me:$LINENO: result: yes" >&5
1671echo "${ECHO_T}yes" >&6
1530be84 1672test "$program_prefix" != NONE &&
47935194 1673 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1530be84
TT
1674# Use a double $ so make ignores it.
1675test "$program_suffix" != NONE &&
47935194
NN
1676 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1677# Double any \ or $. echo might interpret backslashes.
1678# By default was `s,x,x', remove it if useless.
1679cat <<\_ACEOF >conftest.sed
1680s/[\\$]/&&/g;s/;s,x,x,$//
1681_ACEOF
1682program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1683rm conftest.sed
1684
1685echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1686echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8ab705be 1687set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
47935194
NN
1688if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1689 echo $ECHO_N "(cached) $ECHO_C" >&6
1530be84 1690else
47935194 1691 cat >conftest.make <<\_ACEOF
1530be84 1692all:
47935194
NN
1693 @echo 'ac_maketemp="$(MAKE)"'
1694_ACEOF
1530be84 1695# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
47935194 1696eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1530be84
TT
1697if test -n "$ac_maketemp"; then
1698 eval ac_cv_prog_make_${ac_make}_set=yes
1699else
1700 eval ac_cv_prog_make_${ac_make}_set=no
1701fi
47935194 1702rm -f conftest.make
1530be84
TT
1703fi
1704if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
47935194
NN
1705 echo "$as_me:$LINENO: result: yes" >&5
1706echo "${ECHO_T}yes" >&6
1530be84
TT
1707 SET_MAKE=
1708else
47935194
NN
1709 echo "$as_me:$LINENO: result: no" >&5
1710echo "${ECHO_T}no" >&6
1530be84
TT
1711 SET_MAKE="MAKE=${MAKE-make}"
1712fi
1713
1530be84 1714
5a2586cf 1715PACKAGE=gc
1530be84 1716
47935194 1717VERSION=6.1a1
1530be84
TT
1718
1719if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
47935194
NN
1720 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1721echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1722 { (exit 1); exit 1; }; }
1530be84
TT
1723fi
1724
1725
1726
1727missing_dir=`cd $ac_aux_dir && pwd`
47935194
NN
1728echo "$as_me:$LINENO: checking for working aclocal" >&5
1729echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6
1530be84
TT
1730# Run test in a subshell; some versions of sh will print an error if
1731# an executable is not found, even if stderr is redirected.
1732# Redirect stdin to placate older versions of autoconf. Sigh.
1733if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1734 ACLOCAL=aclocal
47935194
NN
1735 echo "$as_me:$LINENO: result: found" >&5
1736echo "${ECHO_T}found" >&6
1530be84
TT
1737else
1738 ACLOCAL="$missing_dir/missing aclocal"
47935194
NN
1739 echo "$as_me:$LINENO: result: missing" >&5
1740echo "${ECHO_T}missing" >&6
1530be84
TT
1741fi
1742
47935194
NN
1743echo "$as_me:$LINENO: checking for working autoconf" >&5
1744echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1530be84
TT
1745# Run test in a subshell; some versions of sh will print an error if
1746# an executable is not found, even if stderr is redirected.
1747# Redirect stdin to placate older versions of autoconf. Sigh.
1748if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1749 AUTOCONF=autoconf
47935194
NN
1750 echo "$as_me:$LINENO: result: found" >&5
1751echo "${ECHO_T}found" >&6
1530be84
TT
1752else
1753 AUTOCONF="$missing_dir/missing autoconf"
47935194
NN
1754 echo "$as_me:$LINENO: result: missing" >&5
1755echo "${ECHO_T}missing" >&6
1530be84
TT
1756fi
1757
47935194
NN
1758echo "$as_me:$LINENO: checking for working automake" >&5
1759echo $ECHO_N "checking for working automake... $ECHO_C" >&6
1530be84
TT
1760# Run test in a subshell; some versions of sh will print an error if
1761# an executable is not found, even if stderr is redirected.
1762# Redirect stdin to placate older versions of autoconf. Sigh.
1763if (automake --version) < /dev/null > /dev/null 2>&1; then
1764 AUTOMAKE=automake
47935194
NN
1765 echo "$as_me:$LINENO: result: found" >&5
1766echo "${ECHO_T}found" >&6
1530be84
TT
1767else
1768 AUTOMAKE="$missing_dir/missing automake"
47935194
NN
1769 echo "$as_me:$LINENO: result: missing" >&5
1770echo "${ECHO_T}missing" >&6
1530be84
TT
1771fi
1772
47935194
NN
1773echo "$as_me:$LINENO: checking for working autoheader" >&5
1774echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1530be84
TT
1775# Run test in a subshell; some versions of sh will print an error if
1776# an executable is not found, even if stderr is redirected.
1777# Redirect stdin to placate older versions of autoconf. Sigh.
1778if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1779 AUTOHEADER=autoheader
47935194
NN
1780 echo "$as_me:$LINENO: result: found" >&5
1781echo "${ECHO_T}found" >&6
1530be84
TT
1782else
1783 AUTOHEADER="$missing_dir/missing autoheader"
47935194
NN
1784 echo "$as_me:$LINENO: result: missing" >&5
1785echo "${ECHO_T}missing" >&6
1530be84
TT
1786fi
1787
47935194
NN
1788echo "$as_me:$LINENO: checking for working makeinfo" >&5
1789echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1530be84
TT
1790# Run test in a subshell; some versions of sh will print an error if
1791# an executable is not found, even if stderr is redirected.
1792# Redirect stdin to placate older versions of autoconf. Sigh.
1793if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1794 MAKEINFO=makeinfo
47935194
NN
1795 echo "$as_me:$LINENO: result: found" >&5
1796echo "${ECHO_T}found" >&6
1530be84
TT
1797else
1798 MAKEINFO="$missing_dir/missing makeinfo"
47935194
NN
1799 echo "$as_me:$LINENO: result: missing" >&5
1800echo "${ECHO_T}missing" >&6
1530be84
TT
1801fi
1802
1803
1804
47935194
NN
1805# The autoconf 2.5x version of the no-executables hack.
1806# GCC_NO_EXECUTABLES
1807# -----------------
1808# FIXME: The GCC team has specific needs which the current Autoconf
1809# framework cannot solve elegantly. This macro implements a dirty
1810# hack until Autoconf is able to provide the services its users
1811# need.
1812#
1813# Several of the support libraries that are often built with GCC can't
1814# assume the tool-chain is already capable of linking a program: the
1815# compiler often expects to be able to link with some of such
1816# libraries.
1817#
1818# In several of these libraries, workarounds have been introduced to
1819# avoid the AC_PROG_CC_WORKS test, that would just abort their
1820# configuration. The introduction of AC_EXEEXT, enabled either by
1821# libtool or by CVS autoconf, have just made matters worse.
1822#
1823# Unlike the previous AC_NO_EXECUTABLES, this test does not
1824# disable link tests at autoconf time, but at configure time.
1825# This allows AC_NO_EXECUTABLES to be invoked conditionally.
1826# GCC_NO_EXECUTABLES
1827
1530be84
TT
1828
1829
e22db4bf
NN
1830# Yak. We must force CC and CXX to /not/ be precious variables; otherwise
1831# the wrong, non-multilib-adjusted value will be used in multilibs.
1832# As a side effect, we have to subst CFLAGS and CXXFLAGS ourselves.
1833
1834
1835
47935194
NN
1836ac_ext=c
1837ac_cpp='$CPP $CPPFLAGS'
1838ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1839ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1840ac_compiler_gnu=$ac_cv_c_compiler_gnu
1841if test -n "$ac_tool_prefix"; then
1842 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1843set dummy ${ac_tool_prefix}gcc; ac_word=$2
1844echo "$as_me:$LINENO: checking for $ac_word" >&5
1845echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1846if test "${ac_cv_prog_CC+set}" = set; then
1847 echo $ECHO_N "(cached) $ECHO_C" >&6
1848else
1849 if test -n "$CC"; then
1850 ac_cv_prog_CC="$CC" # Let the user override the test.
1851else
1852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1853for as_dir in $PATH
1854do
1855 IFS=$as_save_IFS
1856 test -z "$as_dir" && as_dir=.
1857 for ac_exec_ext in '' $ac_executable_extensions; do
1858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1859 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1861 break 2
1862 fi
1863done
1864done
1530be84 1865
47935194
NN
1866fi
1867fi
1868CC=$ac_cv_prog_CC
1869if test -n "$CC"; then
1870 echo "$as_me:$LINENO: result: $CC" >&5
1871echo "${ECHO_T}$CC" >&6
1872else
1873 echo "$as_me:$LINENO: result: no" >&5
1874echo "${ECHO_T}no" >&6
1875fi
54ce7452 1876
47935194
NN
1877fi
1878if test -z "$ac_cv_prog_CC"; then
1879 ac_ct_CC=$CC
1880 # Extract the first word of "gcc", so it can be a program name with args.
1530be84 1881set dummy gcc; ac_word=$2
47935194
NN
1882echo "$as_me:$LINENO: checking for $ac_word" >&5
1883echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1884if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1885 echo $ECHO_N "(cached) $ECHO_C" >&6
1886else
1887 if test -n "$ac_ct_CC"; then
1888 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1889else
1890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1891for as_dir in $PATH
1892do
1893 IFS=$as_save_IFS
1894 test -z "$as_dir" && as_dir=.
1895 for ac_exec_ext in '' $ac_executable_extensions; do
1896 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1897 ac_cv_prog_ac_ct_CC="gcc"
1898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1899 break 2
1900 fi
1901done
1902done
1903
1904fi
1905fi
1906ac_ct_CC=$ac_cv_prog_ac_ct_CC
1907if test -n "$ac_ct_CC"; then
1908 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1909echo "${ECHO_T}$ac_ct_CC" >&6
1910else
1911 echo "$as_me:$LINENO: result: no" >&5
1912echo "${ECHO_T}no" >&6
1913fi
1914
1915 CC=$ac_ct_CC
1916else
1917 CC="$ac_cv_prog_CC"
1918fi
1919
1920if test -z "$CC"; then
1921 if test -n "$ac_tool_prefix"; then
1922 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1923set dummy ${ac_tool_prefix}cc; ac_word=$2
1924echo "$as_me:$LINENO: checking for $ac_word" >&5
1925echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1926if test "${ac_cv_prog_CC+set}" = set; then
1927 echo $ECHO_N "(cached) $ECHO_C" >&6
1530be84
TT
1928else
1929 if test -n "$CC"; then
1930 ac_cv_prog_CC="$CC" # Let the user override the test.
1931else
47935194
NN
1932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1933for as_dir in $PATH
1934do
1935 IFS=$as_save_IFS
1936 test -z "$as_dir" && as_dir=.
1937 for ac_exec_ext in '' $ac_executable_extensions; do
1938 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1939 ac_cv_prog_CC="${ac_tool_prefix}cc"
1940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1941 break 2
1942 fi
1943done
1944done
1945
1530be84
TT
1946fi
1947fi
47935194 1948CC=$ac_cv_prog_CC
1530be84 1949if test -n "$CC"; then
47935194
NN
1950 echo "$as_me:$LINENO: result: $CC" >&5
1951echo "${ECHO_T}$CC" >&6
1530be84 1952else
47935194
NN
1953 echo "$as_me:$LINENO: result: no" >&5
1954echo "${ECHO_T}no" >&6
1530be84
TT
1955fi
1956
47935194
NN
1957fi
1958if test -z "$ac_cv_prog_CC"; then
1959 ac_ct_CC=$CC
1960 # Extract the first word of "cc", so it can be a program name with args.
1961set dummy cc; ac_word=$2
1962echo "$as_me:$LINENO: checking for $ac_word" >&5
1963echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1964if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1965 echo $ECHO_N "(cached) $ECHO_C" >&6
1966else
1967 if test -n "$ac_ct_CC"; then
1968 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1969else
1970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1971for as_dir in $PATH
1972do
1973 IFS=$as_save_IFS
1974 test -z "$as_dir" && as_dir=.
1975 for ac_exec_ext in '' $ac_executable_extensions; do
1976 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1977 ac_cv_prog_ac_ct_CC="cc"
1978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1979 break 2
1980 fi
1981done
1982done
1983
1984fi
1985fi
1986ac_ct_CC=$ac_cv_prog_ac_ct_CC
1987if test -n "$ac_ct_CC"; then
1988 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1989echo "${ECHO_T}$ac_ct_CC" >&6
1990else
1991 echo "$as_me:$LINENO: result: no" >&5
1992echo "${ECHO_T}no" >&6
1993fi
1994
1995 CC=$ac_ct_CC
1996else
1997 CC="$ac_cv_prog_CC"
1998fi
1999
2000fi
1530be84
TT
2001if test -z "$CC"; then
2002 # Extract the first word of "cc", so it can be a program name with args.
2003set dummy cc; ac_word=$2
47935194
NN
2004echo "$as_me:$LINENO: checking for $ac_word" >&5
2005echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2006if test "${ac_cv_prog_CC+set}" = set; then
2007 echo $ECHO_N "(cached) $ECHO_C" >&6
1530be84
TT
2008else
2009 if test -n "$CC"; then
2010 ac_cv_prog_CC="$CC" # Let the user override the test.
2011else
1530be84 2012 ac_prog_rejected=no
47935194
NN
2013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2014for as_dir in $PATH
2015do
2016 IFS=$as_save_IFS
2017 test -z "$as_dir" && as_dir=.
2018 for ac_exec_ext in '' $ac_executable_extensions; do
2019 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2020 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2021 ac_prog_rejected=yes
2022 continue
2023 fi
2024 ac_cv_prog_CC="cc"
2025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2026 break 2
2027 fi
2028done
2029done
2030
1530be84
TT
2031if test $ac_prog_rejected = yes; then
2032 # We found a bogon in the path, so make sure we never use it.
2033 set dummy $ac_cv_prog_CC
2034 shift
47935194 2035 if test $# != 0; then
1530be84
TT
2036 # We chose a different compiler from the bogus one.
2037 # However, it has the same basename, so the bogon will be chosen
2038 # first if we set CC to just the basename; use the full file name.
2039 shift
47935194 2040 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1530be84
TT
2041 fi
2042fi
2043fi
2044fi
47935194 2045CC=$ac_cv_prog_CC
1530be84 2046if test -n "$CC"; then
47935194
NN
2047 echo "$as_me:$LINENO: result: $CC" >&5
2048echo "${ECHO_T}$CC" >&6
1530be84 2049else
47935194
NN
2050 echo "$as_me:$LINENO: result: no" >&5
2051echo "${ECHO_T}no" >&6
1530be84
TT
2052fi
2053
1530be84 2054fi
47935194
NN
2055if test -z "$CC"; then
2056 if test -n "$ac_tool_prefix"; then
2057 for ac_prog in cl
2058 do
2059 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2060set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2061echo "$as_me:$LINENO: checking for $ac_word" >&5
2062echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2063if test "${ac_cv_prog_CC+set}" = set; then
2064 echo $ECHO_N "(cached) $ECHO_C" >&6
1530be84 2065else
47935194
NN
2066 if test -n "$CC"; then
2067 ac_cv_prog_CC="$CC" # Let the user override the test.
1530be84 2068else
47935194
NN
2069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2070for as_dir in $PATH
2071do
2072 IFS=$as_save_IFS
2073 test -z "$as_dir" && as_dir=.
2074 for ac_exec_ext in '' $ac_executable_extensions; do
2075 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2076 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2078 break 2
2079 fi
2080done
2081done
1530be84 2082
1530be84 2083fi
1530be84 2084fi
47935194
NN
2085CC=$ac_cv_prog_CC
2086if test -n "$CC"; then
2087 echo "$as_me:$LINENO: result: $CC" >&5
2088echo "${ECHO_T}$CC" >&6
1530be84 2089else
47935194
NN
2090 echo "$as_me:$LINENO: result: no" >&5
2091echo "${ECHO_T}no" >&6
1530be84
TT
2092fi
2093
47935194
NN
2094 test -n "$CC" && break
2095 done
2096fi
2097if test -z "$CC"; then
2098 ac_ct_CC=$CC
2099 for ac_prog in cl
1530be84 2100do
47935194 2101 # Extract the first word of "$ac_prog", so it can be a program name with args.
1530be84 2102set dummy $ac_prog; ac_word=$2
47935194
NN
2103echo "$as_me:$LINENO: checking for $ac_word" >&5
2104echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2105if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2106 echo $ECHO_N "(cached) $ECHO_C" >&6
1530be84 2107else
47935194
NN
2108 if test -n "$ac_ct_CC"; then
2109 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1530be84 2110else
47935194
NN
2111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2112for as_dir in $PATH
2113do
2114 IFS=$as_save_IFS
2115 test -z "$as_dir" && as_dir=.
2116 for ac_exec_ext in '' $ac_executable_extensions; do
2117 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2118 ac_cv_prog_ac_ct_CC="$ac_prog"
2119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2120 break 2
2121 fi
2122done
2123done
2124
1530be84
TT
2125fi
2126fi
47935194
NN
2127ac_ct_CC=$ac_cv_prog_ac_ct_CC
2128if test -n "$ac_ct_CC"; then
2129 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2130echo "${ECHO_T}$ac_ct_CC" >&6
1530be84 2131else
47935194
NN
2132 echo "$as_me:$LINENO: result: no" >&5
2133echo "${ECHO_T}no" >&6
1530be84
TT
2134fi
2135
47935194 2136 test -n "$ac_ct_CC" && break
1530be84 2137done
1530be84 2138
47935194
NN
2139 CC=$ac_ct_CC
2140fi
2141
2142fi
2143
2144
2145test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2146See \`config.log' for more details." >&5
2147echo "$as_me: error: no acceptable C compiler found in \$PATH
2148See \`config.log' for more details." >&2;}
2149 { (exit 1); exit 1; }; }
2150
2151# Provide some information about the compiler.
2152echo "$as_me:$LINENO:" \
2153 "checking for C compiler version" >&5
2154ac_compiler=`set X $ac_compile; echo $2`
2155{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2156 (eval $ac_compiler --version </dev/null >&5) 2>&5
2157 ac_status=$?
2158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159 (exit $ac_status); }
2160{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2161 (eval $ac_compiler -v </dev/null >&5) 2>&5
2162 ac_status=$?
2163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164 (exit $ac_status); }
2165{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2166 (eval $ac_compiler -V </dev/null >&5) 2>&5
2167 ac_status=$?
2168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2169 (exit $ac_status); }
2170
2171cat >conftest.$ac_ext <<_ACEOF
2172/* confdefs.h. */
2173_ACEOF
2174cat confdefs.h >>conftest.$ac_ext
2175cat >>conftest.$ac_ext <<_ACEOF
2176/* end confdefs.h. */
2177
2178int
2179main ()
2180{
2181
2182 ;
2183 return 0;
2184}
2185_ACEOF
2186# FIXME: Cleanup?
2187if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2188 (eval $ac_link) 2>&5
2189 ac_status=$?
2190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191 (exit $ac_status); }; then
2192 gcc_no_link=no
1530be84 2193else
47935194 2194 gcc_no_link=yes
1530be84 2195fi
1530be84 2196
47935194
NN
2197if test x$gcc_no_link = xyes; then
2198 # Setting cross_compile will disable run tests; it will
2199 # also disable AC_CHECK_FILE but that's generally
2200 # correct if we can't link.
2201 cross_compiling=yes
2202 EXEEXT=
1530be84 2203else
47935194
NN
2204 cat >conftest.$ac_ext <<_ACEOF
2205/* confdefs.h. */
2206_ACEOF
2207cat confdefs.h >>conftest.$ac_ext
2208cat >>conftest.$ac_ext <<_ACEOF
2209/* end confdefs.h. */
2210
2211int
2212main ()
2213{
2214
2215 ;
2216 return 0;
2217}
2218_ACEOF
2219ac_clean_files_save=$ac_clean_files
2220ac_clean_files="$ac_clean_files a.out a.exe b.out"
2221# Try to create an executable without -o first, disregard a.out.
2222# It will help us diagnose broken compilers, and finding out an intuition
2223# of exeext.
8ab705be
KC
2224echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2225echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
47935194
NN
2226ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2227if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2228 (eval $ac_link_default) 2>&5
2229 ac_status=$?
2230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231 (exit $ac_status); }; then
2232 # Find the output, starting from the most likely. This scheme is
2233# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2234# resort.
2235
2236# Be careful to initialize this variable, since it used to be cached.
2237# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2238ac_cv_exeext=
2239# b.out is created by i960 compilers.
2240for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2241do
2242 test -f "$ac_file" || continue
2243 case $ac_file in
2244 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
8ab705be 2245 ;;
47935194 2246 conftest.$ac_ext )
8ab705be
KC
2247 # This is the source file.
2248 ;;
47935194 2249 [ab].out )
8ab705be
KC
2250 # We found the default executable, but exeext='' is most
2251 # certainly right.
2252 break;;
47935194 2253 *.* )
8ab705be
KC
2254 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2255 # FIXME: I believe we export ac_cv_exeext for Libtool,
2256 # but it would be cool to find out if it's true. Does anybody
2257 # maintain Libtool? --akim.
2258 export ac_cv_exeext
2259 break;;
47935194 2260 * )
8ab705be 2261 break;;
47935194
NN
2262 esac
2263done
1530be84 2264else
47935194
NN
2265 echo "$as_me: failed program was:" >&5
2266sed 's/^/| /' conftest.$ac_ext >&5
2267
2268{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2269See \`config.log' for more details." >&5
2270echo "$as_me: error: C compiler cannot create executables
2271See \`config.log' for more details." >&2;}
2272 { (exit 77); exit 77; }; }
2273fi
2274
2275ac_exeext=$ac_cv_exeext
2276echo "$as_me:$LINENO: result: $ac_file" >&5
2277echo "${ECHO_T}$ac_file" >&6
2278
2279# Check the compiler produces executables we can run. If not, either
2280# the compiler is broken, or we cross compile.
2281echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2282echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2283# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2284# If not cross compiling, check that we can run a simple program.
2285if test "$cross_compiling" != yes; then
2286 if { ac_try='./$ac_file'
2287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2288 (eval $ac_try) 2>&5
2289 ac_status=$?
2290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2291 (exit $ac_status); }; }; then
2292 cross_compiling=no
1530be84 2293 else
47935194
NN
2294 if test "$cross_compiling" = maybe; then
2295 cross_compiling=yes
2296 else
2297 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2298If you meant to cross compile, use \`--host'.
2299See \`config.log' for more details." >&5
2300echo "$as_me: error: cannot run C compiled programs.
2301If you meant to cross compile, use \`--host'.
2302See \`config.log' for more details." >&2;}
2303 { (exit 1); exit 1; }; }
2304 fi
1530be84 2305 fi
47935194
NN
2306fi
2307echo "$as_me:$LINENO: result: yes" >&5
2308echo "${ECHO_T}yes" >&6
2309
2310rm -f a.out a.exe conftest$ac_cv_exeext b.out
2311ac_clean_files=$ac_clean_files_save
2312# Check the compiler produces executables we can run. If not, either
2313# the compiler is broken, or we cross compile.
2314echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2315echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2316echo "$as_me:$LINENO: result: $cross_compiling" >&5
2317echo "${ECHO_T}$cross_compiling" >&6
2318
2319echo "$as_me:$LINENO: checking for suffix of executables" >&5
2320echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2321if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2322 (eval $ac_link) 2>&5
2323 ac_status=$?
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); }; then
2326 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2327# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2328# work properly (i.e., refer to `conftest.exe'), while it won't with
2329# `rm'.
2330for ac_file in conftest.exe conftest conftest.*; do
2331 test -f "$ac_file" || continue
2332 case $ac_file in
2333 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2334 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
8ab705be
KC
2335 export ac_cv_exeext
2336 break;;
47935194
NN
2337 * ) break;;
2338 esac
2339done
1530be84 2340else
47935194
NN
2341 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2342See \`config.log' for more details." >&5
2343echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2344See \`config.log' for more details." >&2;}
2345 { (exit 1); exit 1; }; }
1530be84
TT
2346fi
2347
47935194
NN
2348rm -f conftest$ac_cv_exeext
2349echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2350echo "${ECHO_T}$ac_cv_exeext" >&6
1530be84 2351
47935194
NN
2352rm -f conftest.$ac_ext
2353EXEEXT=$ac_cv_exeext
2354ac_exeext=$EXEEXT
2355fi
2356echo "$as_me:$LINENO: checking for suffix of object files" >&5
2357echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2358if test "${ac_cv_objext+set}" = set; then
2359 echo $ECHO_N "(cached) $ECHO_C" >&6
1530be84 2360else
47935194
NN
2361 cat >conftest.$ac_ext <<_ACEOF
2362/* confdefs.h. */
2363_ACEOF
2364cat confdefs.h >>conftest.$ac_ext
2365cat >>conftest.$ac_ext <<_ACEOF
2366/* end confdefs.h. */
2367
2368int
2369main ()
2370{
2371
2372 ;
2373 return 0;
2374}
2375_ACEOF
2376rm -f conftest.o conftest.obj
2377if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2378 (eval $ac_compile) 2>&5
2379 ac_status=$?
2380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381 (exit $ac_status); }; then
2382 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2383 case $ac_file in
2384 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2385 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2386 break;;
2387 esac
2388done
1530be84 2389else
47935194
NN
2390 echo "$as_me: failed program was:" >&5
2391sed 's/^/| /' conftest.$ac_ext >&5
2392
2393{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2394See \`config.log' for more details." >&5
2395echo "$as_me: error: cannot compute suffix of object files: cannot compile
2396See \`config.log' for more details." >&2;}
2397 { (exit 1); exit 1; }; }
1530be84 2398fi
47935194
NN
2399
2400rm -f conftest.$ac_cv_objext conftest.$ac_ext
1530be84 2401fi
47935194
NN
2402echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2403echo "${ECHO_T}$ac_cv_objext" >&6
2404OBJEXT=$ac_cv_objext
2405ac_objext=$OBJEXT
2406echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2407echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2408if test "${ac_cv_c_compiler_gnu+set}" = set; then
2409 echo $ECHO_N "(cached) $ECHO_C" >&6
1530be84 2410else
47935194
NN
2411 cat >conftest.$ac_ext <<_ACEOF
2412/* confdefs.h. */
2413_ACEOF
2414cat confdefs.h >>conftest.$ac_ext
2415cat >>conftest.$ac_ext <<_ACEOF
2416/* end confdefs.h. */
2417
2418int
2419main ()
2420{
2421#ifndef __GNUC__
2422 choke me
2423#endif
1530be84 2424
47935194
NN
2425 ;
2426 return 0;
2427}
2428_ACEOF
2429rm -f conftest.$ac_objext
2430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8ab705be 2431 (eval $ac_compile) 2>conftest.er1
47935194 2432 ac_status=$?
8ab705be
KC
2433 grep -v '^ *+' conftest.er1 >conftest.err
2434 rm -f conftest.er1
2435 cat conftest.err >&5
47935194
NN
2436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437 (exit $ac_status); } &&
8ab705be
KC
2438 { ac_try='test -z "$ac_c_werror_flag"
2439 || test ! -s conftest.err'
2440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2441 (eval $ac_try) 2>&5
2442 ac_status=$?
2443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444 (exit $ac_status); }; } &&
2445 { ac_try='test -s conftest.$ac_objext'
47935194
NN
2446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2447 (eval $ac_try) 2>&5
2448 ac_status=$?
2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450 (exit $ac_status); }; }; then
2451 ac_compiler_gnu=yes
2452else
2453 echo "$as_me: failed program was:" >&5
2454sed 's/^/| /' conftest.$ac_ext >&5
1530be84 2455
47935194
NN
2456ac_compiler_gnu=no
2457fi
8ab705be 2458rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47935194 2459ac_cv_c_compiler_gnu=$ac_compiler_gnu
1530be84 2460
47935194
NN
2461fi
2462echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2463echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2464GCC=`test $ac_compiler_gnu = yes && echo yes`
2465ac_test_CFLAGS=${CFLAGS+set}
2466ac_save_CFLAGS=$CFLAGS
2467CFLAGS="-g"
2468echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2469echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2470if test "${ac_cv_prog_cc_g+set}" = set; then
2471 echo $ECHO_N "(cached) $ECHO_C" >&6
1530be84 2472else
47935194
NN
2473 cat >conftest.$ac_ext <<_ACEOF
2474/* confdefs.h. */
2475_ACEOF
2476cat confdefs.h >>conftest.$ac_ext
2477cat >>conftest.$ac_ext <<_ACEOF
2478/* end confdefs.h. */
2479
2480int
2481main ()
2482{
2483
2484 ;
2485 return 0;
2486}
2487_ACEOF
2488rm -f conftest.$ac_objext
2489if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8ab705be 2490 (eval $ac_compile) 2>conftest.er1
47935194 2491 ac_status=$?
8ab705be
KC
2492 grep -v '^ *+' conftest.er1 >conftest.err
2493 rm -f conftest.er1
2494 cat conftest.err >&5
47935194
NN
2495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496 (exit $ac_status); } &&
8ab705be
KC
2497 { ac_try='test -z "$ac_c_werror_flag"
2498 || test ! -s conftest.err'
2499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2500 (eval $ac_try) 2>&5
2501 ac_status=$?
2502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503 (exit $ac_status); }; } &&
2504 { ac_try='test -s conftest.$ac_objext'
47935194
NN
2505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2506 (eval $ac_try) 2>&5
2507 ac_status=$?
2508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509 (exit $ac_status); }; }; then
2510 ac_cv_prog_cc_g=yes
1530be84 2511else
47935194
NN
2512 echo "$as_me: failed program was:" >&5
2513sed 's/^/| /' conftest.$ac_ext >&5
2514
2515ac_cv_prog_cc_g=no
2516fi
8ab705be 2517rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47935194
NN
2518fi
2519echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2520echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2521if test "$ac_test_CFLAGS" = set; then
2522 CFLAGS=$ac_save_CFLAGS
2523elif test $ac_cv_prog_cc_g = yes; then
2524 if test "$GCC" = yes; then
2525 CFLAGS="-g -O2"
2526 else
2527 CFLAGS="-g"
2528 fi
2529else
2530 if test "$GCC" = yes; then
2531 CFLAGS="-O2"
2532 else
2533 CFLAGS=
2534 fi
2535fi
2536echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2537echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2538if test "${ac_cv_prog_cc_stdc+set}" = set; then
2539 echo $ECHO_N "(cached) $ECHO_C" >&6
2540else
2541 ac_cv_prog_cc_stdc=no
2542ac_save_CC=$CC
2543cat >conftest.$ac_ext <<_ACEOF
2544/* confdefs.h. */
2545_ACEOF
2546cat confdefs.h >>conftest.$ac_ext
2547cat >>conftest.$ac_ext <<_ACEOF
2548/* end confdefs.h. */
2549#include <stdarg.h>
2550#include <stdio.h>
2551#include <sys/types.h>
2552#include <sys/stat.h>
2553/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2554struct buf { int x; };
2555FILE * (*rcsopen) (struct buf *, struct stat *, int);
2556static char *e (p, i)
2557 char **p;
2558 int i;
2559{
2560 return p[i];
2561}
2562static char *f (char * (*g) (char **, int), char **p, ...)
2563{
2564 char *s;
2565 va_list v;
2566 va_start (v,p);
2567 s = g (p, va_arg (v,int));
2568 va_end (v);
2569 return s;
2570}
8ab705be
KC
2571
2572/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2573 function prototypes and stuff, but not '\xHH' hex character constants.
2574 These don't provoke an error unfortunately, instead are silently treated
2575 as 'x'. The following induces an error, until -std1 is added to get
2576 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2577 array size at least. It's necessary to write '\x00'==0 to get something
2578 that's true only with -std1. */
2579int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2580
47935194
NN
2581int test (int i, double x);
2582struct s1 {int (*f) (int a);};
2583struct s2 {int (*f) (double a);};
2584int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2585int argc;
2586char **argv;
2587int
2588main ()
2589{
2590return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2591 ;
2592 return 0;
2593}
2594_ACEOF
2595# Don't try gcc -ansi; that turns off useful extensions and
2596# breaks some systems' header files.
2597# AIX -qlanglvl=ansi
2598# Ultrix and OSF/1 -std1
2599# HP-UX 10.20 and later -Ae
2600# HP-UX older versions -Aa -D_HPUX_SOURCE
2601# SVR4 -Xc -D__EXTENSIONS__
2602for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2603do
2604 CC="$ac_save_CC $ac_arg"
2605 rm -f conftest.$ac_objext
2606if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8ab705be 2607 (eval $ac_compile) 2>conftest.er1
47935194 2608 ac_status=$?
8ab705be
KC
2609 grep -v '^ *+' conftest.er1 >conftest.err
2610 rm -f conftest.er1
2611 cat conftest.err >&5
47935194
NN
2612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613 (exit $ac_status); } &&
8ab705be
KC
2614 { ac_try='test -z "$ac_c_werror_flag"
2615 || test ! -s conftest.err'
2616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2617 (eval $ac_try) 2>&5
2618 ac_status=$?
2619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620 (exit $ac_status); }; } &&
2621 { ac_try='test -s conftest.$ac_objext'
47935194
NN
2622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2623 (eval $ac_try) 2>&5
2624 ac_status=$?
2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); }; }; then
2627 ac_cv_prog_cc_stdc=$ac_arg
2628break
2629else
2630 echo "$as_me: failed program was:" >&5
2631sed 's/^/| /' conftest.$ac_ext >&5
2632
2633fi
8ab705be 2634rm -f conftest.err conftest.$ac_objext
47935194
NN
2635done
2636rm -f conftest.$ac_ext conftest.$ac_objext
2637CC=$ac_save_CC
2638
2639fi
2640
2641case "x$ac_cv_prog_cc_stdc" in
2642 x|xno)
2643 echo "$as_me:$LINENO: result: none needed" >&5
2644echo "${ECHO_T}none needed" >&6 ;;
2645 *)
2646 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2647echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2648 CC="$CC $ac_cv_prog_cc_stdc" ;;
2649esac
2650
2651# Some people use a C++ compiler to compile C. Since we use `exit',
2652# in C++ we need to declare it. In case someone uses the same compiler
2653# for both compiling C and C++ we need to have the C++ compiler decide
2654# the declaration of exit, since it's the most demanding environment.
2655cat >conftest.$ac_ext <<_ACEOF
2656#ifndef __cplusplus
2657 choke me
2658#endif
2659_ACEOF
2660rm -f conftest.$ac_objext
2661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8ab705be 2662 (eval $ac_compile) 2>conftest.er1
47935194 2663 ac_status=$?
8ab705be
KC
2664 grep -v '^ *+' conftest.er1 >conftest.err
2665 rm -f conftest.er1
2666 cat conftest.err >&5
47935194
NN
2667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668 (exit $ac_status); } &&
8ab705be
KC
2669 { ac_try='test -z "$ac_c_werror_flag"
2670 || test ! -s conftest.err'
2671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2672 (eval $ac_try) 2>&5
2673 ac_status=$?
2674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675 (exit $ac_status); }; } &&
2676 { ac_try='test -s conftest.$ac_objext'
47935194
NN
2677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2678 (eval $ac_try) 2>&5
2679 ac_status=$?
2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); }; }; then
2682 for ac_declaration in \
2683 '' \
2684 'extern "C" void std::exit (int) throw (); using std::exit;' \
2685 'extern "C" void std::exit (int); using std::exit;' \
2686 'extern "C" void exit (int) throw ();' \
2687 'extern "C" void exit (int);' \
2688 'void exit (int);'
2689do
2690 cat >conftest.$ac_ext <<_ACEOF
2691/* confdefs.h. */
2692_ACEOF
2693cat confdefs.h >>conftest.$ac_ext
2694cat >>conftest.$ac_ext <<_ACEOF
2695/* end confdefs.h. */
2696$ac_declaration
2697#include <stdlib.h>
2698int
2699main ()
2700{
2701exit (42);
2702 ;
2703 return 0;
2704}
2705_ACEOF
2706rm -f conftest.$ac_objext
2707if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8ab705be 2708 (eval $ac_compile) 2>conftest.er1
47935194 2709 ac_status=$?
8ab705be
KC
2710 grep -v '^ *+' conftest.er1 >conftest.err
2711 rm -f conftest.er1
2712 cat conftest.err >&5
47935194
NN
2713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714 (exit $ac_status); } &&
8ab705be
KC
2715 { ac_try='test -z "$ac_c_werror_flag"
2716 || test ! -s conftest.err'
2717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2718 (eval $ac_try) 2>&5
2719 ac_status=$?
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); }; } &&
2722 { ac_try='test -s conftest.$ac_objext'
47935194
NN
2723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2724 (eval $ac_try) 2>&5
2725 ac_status=$?
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); }; }; then
2728 :
2729else
2730 echo "$as_me: failed program was:" >&5
2731sed 's/^/| /' conftest.$ac_ext >&5
2732
2733continue
2734fi
8ab705be 2735rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47935194
NN
2736 cat >conftest.$ac_ext <<_ACEOF
2737/* confdefs.h. */
2738_ACEOF
2739cat confdefs.h >>conftest.$ac_ext
2740cat >>conftest.$ac_ext <<_ACEOF
2741/* end confdefs.h. */
2742$ac_declaration
2743int
2744main ()
2745{
2746exit (42);
2747 ;
2748 return 0;
2749}
2750_ACEOF
2751rm -f conftest.$ac_objext
2752if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8ab705be 2753 (eval $ac_compile) 2>conftest.er1
47935194 2754 ac_status=$?
8ab705be
KC
2755 grep -v '^ *+' conftest.er1 >conftest.err
2756 rm -f conftest.er1
2757 cat conftest.err >&5
47935194
NN
2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759 (exit $ac_status); } &&
8ab705be
KC
2760 { ac_try='test -z "$ac_c_werror_flag"
2761 || test ! -s conftest.err'
2762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2763 (eval $ac_try) 2>&5
2764 ac_status=$?
2765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766 (exit $ac_status); }; } &&
2767 { ac_try='test -s conftest.$ac_objext'
47935194
NN
2768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2769 (eval $ac_try) 2>&5
2770 ac_status=$?
2771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772 (exit $ac_status); }; }; then
2773 break
2774else
2775 echo "$as_me: failed program was:" >&5
2776sed 's/^/| /' conftest.$ac_ext >&5
2777
2778fi
8ab705be 2779rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47935194
NN
2780done
2781rm -f conftest*
2782if test -n "$ac_declaration"; then
2783 echo '#ifdef __cplusplus' >>confdefs.h
2784 echo $ac_declaration >>confdefs.h
2785 echo '#endif' >>confdefs.h
2786fi
2787
2788else
2789 echo "$as_me: failed program was:" >&5
2790sed 's/^/| /' conftest.$ac_ext >&5
2791
2792fi
8ab705be 2793rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47935194
NN
2794ac_ext=c
2795ac_cpp='$CPP $CPPFLAGS'
2796ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2797ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2798ac_compiler_gnu=$ac_cv_c_compiler_gnu
2799
2800ac_ext=cc
2801ac_cpp='$CXXCPP $CPPFLAGS'
2802ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2803ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2804ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2805if test -n "$ac_tool_prefix"; then
2806 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2807 do
2808 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2809set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2810echo "$as_me:$LINENO: checking for $ac_word" >&5
2811echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2812if test "${ac_cv_prog_CXX+set}" = set; then
2813 echo $ECHO_N "(cached) $ECHO_C" >&6
2814else
2815 if test -n "$CXX"; then
2816 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2817else
2818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2819for as_dir in $PATH
2820do
2821 IFS=$as_save_IFS
2822 test -z "$as_dir" && as_dir=.
2823 for ac_exec_ext in '' $ac_executable_extensions; do
2824 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2825 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2827 break 2
2828 fi
2829done
2830done
2831
2832fi
2833fi
2834CXX=$ac_cv_prog_CXX
2835if test -n "$CXX"; then
2836 echo "$as_me:$LINENO: result: $CXX" >&5
2837echo "${ECHO_T}$CXX" >&6
2838else
2839 echo "$as_me:$LINENO: result: no" >&5
2840echo "${ECHO_T}no" >&6
2841fi
2842
2843 test -n "$CXX" && break
1530be84 2844 done
47935194
NN
2845fi
2846if test -z "$CXX"; then
2847 ac_ct_CXX=$CXX
2848 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2849do
2850 # Extract the first word of "$ac_prog", so it can be a program name with args.
2851set dummy $ac_prog; ac_word=$2
2852echo "$as_me:$LINENO: checking for $ac_word" >&5
2853echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2854if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2855 echo $ECHO_N "(cached) $ECHO_C" >&6
2856else
2857 if test -n "$ac_ct_CXX"; then
2858 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2859else
2860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2861for as_dir in $PATH
2862do
2863 IFS=$as_save_IFS
2864 test -z "$as_dir" && as_dir=.
2865 for ac_exec_ext in '' $ac_executable_extensions; do
2866 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2867 ac_cv_prog_ac_ct_CXX="$ac_prog"
2868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2869 break 2
2870 fi
2871done
2872done
2873
2874fi
2875fi
2876ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2877if test -n "$ac_ct_CXX"; then
2878 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2879echo "${ECHO_T}$ac_ct_CXX" >&6
2880else
2881 echo "$as_me:$LINENO: result: no" >&5
2882echo "${ECHO_T}no" >&6
2883fi
2884
2885 test -n "$ac_ct_CXX" && break
2886done
2887test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2888
2889 CXX=$ac_ct_CXX
2890fi
2891
2892
2893# Provide some information about the compiler.
2894echo "$as_me:$LINENO:" \
2895 "checking for C++ compiler version" >&5
2896ac_compiler=`set X $ac_compile; echo $2`
2897{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2898 (eval $ac_compiler --version </dev/null >&5) 2>&5
2899 ac_status=$?
2900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901 (exit $ac_status); }
2902{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2903 (eval $ac_compiler -v </dev/null >&5) 2>&5
2904 ac_status=$?
2905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906 (exit $ac_status); }
2907{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2908 (eval $ac_compiler -V </dev/null >&5) 2>&5
2909 ac_status=$?
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); }
2912
2913echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2914echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2915if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2916 echo $ECHO_N "(cached) $ECHO_C" >&6
2917else
2918 cat >conftest.$ac_ext <<_ACEOF
2919/* confdefs.h. */
2920_ACEOF
2921cat confdefs.h >>conftest.$ac_ext
2922cat >>conftest.$ac_ext <<_ACEOF
2923/* end confdefs.h. */
2924
2925int
2926main ()
2927{
2928#ifndef __GNUC__
2929 choke me
2930#endif
2931
2932 ;
2933 return 0;
2934}
2935_ACEOF
2936rm -f conftest.$ac_objext
2937if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8ab705be 2938 (eval $ac_compile) 2>conftest.er1
47935194 2939 ac_status=$?
8ab705be
KC
2940 grep -v '^ *+' conftest.er1 >conftest.err
2941 rm -f conftest.er1
2942 cat conftest.err >&5
47935194
NN
2943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944 (exit $ac_status); } &&
8ab705be
KC
2945 { ac_try='test -z "$ac_cxx_werror_flag"
2946 || test ! -s conftest.err'
2947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2948 (eval $ac_try) 2>&5
2949 ac_status=$?
2950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951 (exit $ac_status); }; } &&
2952 { ac_try='test -s conftest.$ac_objext'
47935194
NN
2953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2954 (eval $ac_try) 2>&5
2955 ac_status=$?
2956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957 (exit $ac_status); }; }; then
2958 ac_compiler_gnu=yes
2959else
2960 echo "$as_me: failed program was:" >&5
2961sed 's/^/| /' conftest.$ac_ext >&5
2962
2963ac_compiler_gnu=no
2964fi
8ab705be 2965rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47935194
NN
2966ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2967
2968fi
2969echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2970echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2971GXX=`test $ac_compiler_gnu = yes && echo yes`
2972ac_test_CXXFLAGS=${CXXFLAGS+set}
2973ac_save_CXXFLAGS=$CXXFLAGS
2974CXXFLAGS="-g"
2975echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2976echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2977if test "${ac_cv_prog_cxx_g+set}" = set; then
2978 echo $ECHO_N "(cached) $ECHO_C" >&6
2979else
2980 cat >conftest.$ac_ext <<_ACEOF
2981/* confdefs.h. */
2982_ACEOF
2983cat confdefs.h >>conftest.$ac_ext
2984cat >>conftest.$ac_ext <<_ACEOF
2985/* end confdefs.h. */
2986
2987int
2988main ()
2989{
2990
2991 ;
2992 return 0;
2993}
2994_ACEOF
2995rm -f conftest.$ac_objext
2996if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8ab705be 2997 (eval $ac_compile) 2>conftest.er1
47935194 2998 ac_status=$?
8ab705be
KC
2999 grep -v '^ *+' conftest.er1 >conftest.err
3000 rm -f conftest.er1
3001 cat conftest.err >&5
47935194
NN
3002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003 (exit $ac_status); } &&
8ab705be
KC
3004 { ac_try='test -z "$ac_cxx_werror_flag"
3005 || test ! -s conftest.err'
3006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3007 (eval $ac_try) 2>&5
3008 ac_status=$?
3009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010 (exit $ac_status); }; } &&
3011 { ac_try='test -s conftest.$ac_objext'
47935194
NN
3012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3013 (eval $ac_try) 2>&5
3014 ac_status=$?
3015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016 (exit $ac_status); }; }; then
3017 ac_cv_prog_cxx_g=yes
3018else
3019 echo "$as_me: failed program was:" >&5
3020sed 's/^/| /' conftest.$ac_ext >&5
3021
3022ac_cv_prog_cxx_g=no
3023fi
8ab705be 3024rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47935194
NN
3025fi
3026echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3027echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3028if test "$ac_test_CXXFLAGS" = set; then
3029 CXXFLAGS=$ac_save_CXXFLAGS
3030elif test $ac_cv_prog_cxx_g = yes; then
3031 if test "$GXX" = yes; then
3032 CXXFLAGS="-g -O2"
3033 else
3034 CXXFLAGS="-g"
3035 fi
3036else
3037 if test "$GXX" = yes; then
3038 CXXFLAGS="-O2"
3039 else
3040 CXXFLAGS=
3041 fi
3042fi
3043for ac_declaration in \
3044 '' \
3045 'extern "C" void std::exit (int) throw (); using std::exit;' \
3046 'extern "C" void std::exit (int); using std::exit;' \
3047 'extern "C" void exit (int) throw ();' \
3048 'extern "C" void exit (int);' \
3049 'void exit (int);'
3050do
3051 cat >conftest.$ac_ext <<_ACEOF
3052/* confdefs.h. */
3053_ACEOF
3054cat confdefs.h >>conftest.$ac_ext
3055cat >>conftest.$ac_ext <<_ACEOF
3056/* end confdefs.h. */
3057$ac_declaration
3058#include <stdlib.h>
3059int
3060main ()
3061{
3062exit (42);
3063 ;
3064 return 0;
3065}
3066_ACEOF
3067rm -f conftest.$ac_objext
3068if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8ab705be 3069 (eval $ac_compile) 2>conftest.er1
47935194 3070 ac_status=$?
8ab705be
KC
3071 grep -v '^ *+' conftest.er1 >conftest.err
3072 rm -f conftest.er1
3073 cat conftest.err >&5
47935194
NN
3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075 (exit $ac_status); } &&
8ab705be
KC
3076 { ac_try='test -z "$ac_cxx_werror_flag"
3077 || test ! -s conftest.err'
3078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3079 (eval $ac_try) 2>&5
3080 ac_status=$?
3081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082 (exit $ac_status); }; } &&
3083 { ac_try='test -s conftest.$ac_objext'
47935194
NN
3084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3085 (eval $ac_try) 2>&5
3086 ac_status=$?
3087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088 (exit $ac_status); }; }; then
3089 :
3090else
3091 echo "$as_me: failed program was:" >&5
3092sed 's/^/| /' conftest.$ac_ext >&5
3093
3094continue
3095fi
8ab705be 3096rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47935194
NN
3097 cat >conftest.$ac_ext <<_ACEOF
3098/* confdefs.h. */
3099_ACEOF
3100cat confdefs.h >>conftest.$ac_ext
3101cat >>conftest.$ac_ext <<_ACEOF
3102/* end confdefs.h. */
3103$ac_declaration
3104int
3105main ()
3106{
3107exit (42);
3108 ;
3109 return 0;
3110}
3111_ACEOF
3112rm -f conftest.$ac_objext
3113if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8ab705be 3114 (eval $ac_compile) 2>conftest.er1
47935194 3115 ac_status=$?
8ab705be
KC
3116 grep -v '^ *+' conftest.er1 >conftest.err
3117 rm -f conftest.er1
3118 cat conftest.err >&5
47935194
NN
3119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120 (exit $ac_status); } &&
8ab705be
KC
3121 { ac_try='test -z "$ac_cxx_werror_flag"
3122 || test ! -s conftest.err'
3123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3124 (eval $ac_try) 2>&5
3125 ac_status=$?
3126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127 (exit $ac_status); }; } &&
3128 { ac_try='test -s conftest.$ac_objext'
47935194
NN
3129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3130 (eval $ac_try) 2>&5
3131 ac_status=$?
3132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133 (exit $ac_status); }; }; then
3134 break
3135else
3136 echo "$as_me: failed program was:" >&5
3137sed 's/^/| /' conftest.$ac_ext >&5
3138
3139fi
8ab705be 3140rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47935194
NN
3141done
3142rm -f conftest*
3143if test -n "$ac_declaration"; then
3144 echo '#ifdef __cplusplus' >>confdefs.h
3145 echo $ac_declaration >>confdefs.h
3146 echo '#endif' >>confdefs.h
3147fi
3148
3149ac_ext=c
3150ac_cpp='$CPP $CPPFLAGS'
3151ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3152ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3153ac_compiler_gnu=$ac_cv_c_compiler_gnu
3154
3155
e22db4bf
NN
3156
3157
3158
3159
7664e6f8
NN
3160# Newer automakes demand CCAS and CCASFLAGS.
3161: ${CCAS='$(CC)'}
3162: ${CCASFLAGS='$(CFLAGS)'}
3163
3164
3165
47935194
NN
3166if test -n "$ac_tool_prefix"; then
3167 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3168set dummy ${ac_tool_prefix}as; ac_word=$2
3169echo "$as_me:$LINENO: checking for $ac_word" >&5
3170echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3171if test "${ac_cv_prog_AS+set}" = set; then
3172 echo $ECHO_N "(cached) $ECHO_C" >&6
3173else
3174 if test -n "$AS"; then
3175 ac_cv_prog_AS="$AS" # Let the user override the test.
3176else
3177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3178for as_dir in $PATH
3179do
3180 IFS=$as_save_IFS
3181 test -z "$as_dir" && as_dir=.
3182 for ac_exec_ext in '' $ac_executable_extensions; do
3183 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3184 ac_cv_prog_AS="${ac_tool_prefix}as"
3185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3186 break 2
3187 fi
3188done
3189done
3190
3191fi
3192fi
3193AS=$ac_cv_prog_AS
3194if test -n "$AS"; then
3195 echo "$as_me:$LINENO: result: $AS" >&5
3196echo "${ECHO_T}$AS" >&6
3197else
3198 echo "$as_me:$LINENO: result: no" >&5
3199echo "${ECHO_T}no" >&6
3200fi
3201
3202fi
3203if test -z "$ac_cv_prog_AS"; then
3204 ac_ct_AS=$AS
3205 # Extract the first word of "as", so it can be a program name with args.
3206set dummy as; ac_word=$2
3207echo "$as_me:$LINENO: checking for $ac_word" >&5
3208echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3209if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3210 echo $ECHO_N "(cached) $ECHO_C" >&6
3211else
3212 if test -n "$ac_ct_AS"; then
3213 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3214else
3215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3216for as_dir in $PATH
3217do
3218 IFS=$as_save_IFS
3219 test -z "$as_dir" && as_dir=.
3220 for ac_exec_ext in '' $ac_executable_extensions; do
3221 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3222 ac_cv_prog_ac_ct_AS="as"
3223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3224 break 2
3225 fi
3226done
3227done
3228
3229fi
3230fi
3231ac_ct_AS=$ac_cv_prog_ac_ct_AS
3232if test -n "$ac_ct_AS"; then
3233 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3234echo "${ECHO_T}$ac_ct_AS" >&6
3235else
3236 echo "$as_me:$LINENO: result: no" >&5
3237echo "${ECHO_T}no" >&6
3238fi
3239
3240 AS=$ac_ct_AS
3241else
3242 AS="$ac_cv_prog_AS"
3243fi
3244
3245if test -n "$ac_tool_prefix"; then
3246 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3247set dummy ${ac_tool_prefix}ar; ac_word=$2
3248echo "$as_me:$LINENO: checking for $ac_word" >&5
3249echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3250if test "${ac_cv_prog_AR+set}" = set; then
3251 echo $ECHO_N "(cached) $ECHO_C" >&6
3252else
3253 if test -n "$AR"; then
3254 ac_cv_prog_AR="$AR" # Let the user override the test.
3255else
3256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3257for as_dir in $PATH
3258do
3259 IFS=$as_save_IFS
3260 test -z "$as_dir" && as_dir=.
3261 for ac_exec_ext in '' $ac_executable_extensions; do
3262 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3263 ac_cv_prog_AR="${ac_tool_prefix}ar"
3264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3265 break 2
3266 fi
3267done
3268done
3269
1530be84
TT
3270fi
3271fi
47935194 3272AR=$ac_cv_prog_AR
1530be84 3273if test -n "$AR"; then
47935194
NN
3274 echo "$as_me:$LINENO: result: $AR" >&5
3275echo "${ECHO_T}$AR" >&6
1530be84 3276else
47935194
NN
3277 echo "$as_me:$LINENO: result: no" >&5
3278echo "${ECHO_T}no" >&6
1530be84
TT
3279fi
3280
47935194
NN
3281fi
3282if test -z "$ac_cv_prog_AR"; then
3283 ac_ct_AR=$AR
3284 # Extract the first word of "ar", so it can be a program name with args.
3285set dummy ar; ac_word=$2
3286echo "$as_me:$LINENO: checking for $ac_word" >&5
3287echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3288if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3289 echo $ECHO_N "(cached) $ECHO_C" >&6
3290else
3291 if test -n "$ac_ct_AR"; then
3292 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3293else
3294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3295for as_dir in $PATH
3296do
3297 IFS=$as_save_IFS
3298 test -z "$as_dir" && as_dir=.
3299 for ac_exec_ext in '' $ac_executable_extensions; do
3300 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3301 ac_cv_prog_ac_ct_AR="ar"
3302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3303 break 2
3304 fi
3305done
3306done
3307
3308fi
3309fi
3310ac_ct_AR=$ac_cv_prog_ac_ct_AR
3311if test -n "$ac_ct_AR"; then
3312 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3313echo "${ECHO_T}$ac_ct_AR" >&6
3314else
3315 echo "$as_me:$LINENO: result: no" >&5
3316echo "${ECHO_T}no" >&6
3317fi
1530be84 3318
47935194
NN
3319 AR=$ac_ct_AR
3320else
3321 AR="$ac_cv_prog_AR"
3322fi
1530be84 3323
47935194
NN
3324if test -n "$ac_tool_prefix"; then
3325 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1530be84 3326set dummy ${ac_tool_prefix}ranlib; ac_word=$2
47935194
NN
3327echo "$as_me:$LINENO: checking for $ac_word" >&5
3328echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3329if test "${ac_cv_prog_RANLIB+set}" = set; then
3330 echo $ECHO_N "(cached) $ECHO_C" >&6
1530be84
TT
3331else
3332 if test -n "$RANLIB"; then
3333 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3334else
47935194
NN
3335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3336for as_dir in $PATH
3337do
3338 IFS=$as_save_IFS
3339 test -z "$as_dir" && as_dir=.
3340 for ac_exec_ext in '' $ac_executable_extensions; do
3341 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3342 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3344 break 2
3345 fi
3346done
3347done
3348
1530be84
TT
3349fi
3350fi
47935194 3351RANLIB=$ac_cv_prog_RANLIB
1530be84 3352if test -n "$RANLIB"; then
47935194
NN
3353 echo "$as_me:$LINENO: result: $RANLIB" >&5
3354echo "${ECHO_T}$RANLIB" >&6
1530be84 3355else
47935194
NN
3356 echo "$as_me:$LINENO: result: no" >&5
3357echo "${ECHO_T}no" >&6
1530be84
TT
3358fi
3359
47935194 3360fi
1530be84 3361if test -z "$ac_cv_prog_RANLIB"; then
47935194 3362 ac_ct_RANLIB=$RANLIB
1530be84
TT
3363 # Extract the first word of "ranlib", so it can be a program name with args.
3364set dummy ranlib; ac_word=$2
47935194
NN
3365echo "$as_me:$LINENO: checking for $ac_word" >&5
3366echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3367if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3368 echo $ECHO_N "(cached) $ECHO_C" >&6
1530be84 3369else
47935194
NN
3370 if test -n "$ac_ct_RANLIB"; then
3371 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1530be84 3372else
47935194
NN
3373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3374for as_dir in $PATH
3375do
3376 IFS=$as_save_IFS
3377 test -z "$as_dir" && as_dir=.
3378 for ac_exec_ext in '' $ac_executable_extensions; do
3379 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3380 ac_cv_prog_ac_ct_RANLIB="ranlib"
3381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3382 break 2
3383 fi
3384done
3385done
3386
3387 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
1530be84
TT
3388fi
3389fi
47935194
NN
3390ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3391if test -n "$ac_ct_RANLIB"; then
3392 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3393echo "${ECHO_T}$ac_ct_RANLIB" >&6
1530be84 3394else
47935194
NN
3395 echo "$as_me:$LINENO: result: no" >&5
3396echo "${ECHO_T}no" >&6
1530be84
TT
3397fi
3398
47935194 3399 RANLIB=$ac_ct_RANLIB
1530be84 3400else
47935194 3401 RANLIB="$ac_cv_prog_RANLIB"
1530be84
TT
3402fi
3403
3404
3405# Find a good install program. We prefer a C program (faster),
3406# so one script is as good as another. But avoid the broken or
3407# incompatible versions:
3408# SysV /etc/install, /usr/sbin/install
3409# SunOS /usr/etc/install
3410# IRIX /sbin/install
3411# AIX /bin/install
47935194 3412# AmigaOS /C/install, which installs bootblocks on floppy discs
1530be84
TT
3413# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3414# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3415# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8ab705be 3416# OS/2's system install, which has a completely different semantic
1530be84 3417# ./install, which can be erroneously created by make from ./install.sh.
47935194
NN
3418echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3419echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1530be84 3420if test -z "$INSTALL"; then
47935194
NN
3421if test "${ac_cv_path_install+set}" = set; then
3422 echo $ECHO_N "(cached) $ECHO_C" >&6
1530be84 3423else
47935194
NN
3424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3425for as_dir in $PATH
3426do
3427 IFS=$as_save_IFS
3428 test -z "$as_dir" && as_dir=.
3429 # Account for people who put trailing slashes in PATH elements.
3430case $as_dir/ in
3431 ./ | .// | /cC/* | \
3432 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8ab705be 3433 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
47935194
NN
3434 /usr/ucb/* ) ;;
3435 *)
3436 # OSF1 and SCO ODT 3.0 have their own names for install.
3437 # Don't use installbsd from OSF since it installs stuff as root
3438 # by default.
3439 for ac_prog in ginstall scoinst install; do
3440 for ac_exec_ext in '' $ac_executable_extensions; do
8ab705be
KC
3441 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3442 if test $ac_prog = install &&
3443 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3444 # AIX install. It has an incompatible calling convention.
3445 :
3446 elif test $ac_prog = install &&
3447 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3448 # program-specific install script used by HP pwplus--don't use.
3449 :
3450 else
3451 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3452 break 3
3453 fi
3454 fi
1530be84 3455 done
47935194
NN
3456 done
3457 ;;
3458esac
3459done
3460
1530be84
TT
3461
3462fi
3463 if test "${ac_cv_path_install+set}" = set; then
47935194 3464 INSTALL=$ac_cv_path_install
1530be84
TT
3465 else
3466 # As a last resort, use the slow shell script. We don't cache a
3467 # path for INSTALL within a source directory, because that will
3468 # break other packages using the cache if that directory is
3469 # removed, or if the path is relative.
47935194 3470 INSTALL=$ac_install_sh
1530be84
TT
3471 fi
3472fi
47935194
NN
3473echo "$as_me:$LINENO: result: $INSTALL" >&5
3474echo "${ECHO_T}$INSTALL" >&6
1530be84
TT
3475
3476# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3477# It thinks the first close brace ends the variable substitution.
3478test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3479
47935194 3480test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1530be84
TT
3481
3482test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3483
3484
47935194
NN
3485echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3486echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1530be84
TT
3487 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3488if test "${enable_maintainer_mode+set}" = set; then
3489 enableval="$enable_maintainer_mode"
3490 USE_MAINTAINER_MODE=$enableval
3491else
3492 USE_MAINTAINER_MODE=no
47935194
NN
3493fi;
3494 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3495echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1530be84 3496
1530be84
TT
3497
3498if test $USE_MAINTAINER_MODE = yes; then
3499 MAINTAINER_MODE_TRUE=
3500 MAINTAINER_MODE_FALSE='#'
3501else
3502 MAINTAINER_MODE_TRUE='#'
3503 MAINTAINER_MODE_FALSE=
3504fi
3505 MAINT=$MAINTAINER_MODE_TRUE
47935194 3506
1530be84
TT
3507
3508
c3b48847 3509. ${srcdir}/configure.host
1530be84 3510
5a2586cf
TT
3511case ${gc_basedir} in
3512/* | A-Za-z:/\\*) gc_flagbasedir=${gc_basedir} ;;
3513*) gc_flagbasedir='$(top_builddir)/'${gc_basedir} ;;
1530be84
TT
3514esac
3515
5a2586cf 3516gc_cflags="${gc_cflags} -I"'$(top_builddir)'"/./targ-include -I${gc_flagbasedir}/libc/include"
1530be84
TT
3517case "${host}" in
3518 *-*-cygwin32*)
5a2586cf 3519 gc_cflags="${gc_cflags} -I${gc_flagbasedir}/../winsup/include"
1530be84
TT
3520 ;;
3521esac
3522
1530be84 3523
5a2586cf 3524GC_CFLAGS=${gc_cflags}
1530be84
TT
3525
3526
66deb2be
TT
3527# Check whether --enable-shared or --disable-shared was given.
3528if test "${enable_shared+set}" = set; then
3529 enableval="$enable_shared"
3530 p=${PACKAGE-default}
2d65a52e 3531case $enableval in
66deb2be
TT
3532yes) enable_shared=yes ;;
3533no) enable_shared=no ;;
3534*)
3535 enable_shared=no
3536 # Look at the argument we got. We use all the common list separators.
3537 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3538 for pkg in $enableval; do
3539 if test "X$pkg" = "X$p"; then
3540 enable_shared=yes
3541 fi
3542 done
3543 IFS="$ac_save_ifs"
3544 ;;
3545esac
3546else
3547 enable_shared=yes
47935194 3548fi;
66deb2be
TT
3549# Check whether --enable-static or --disable-static was given.
3550if test "${enable_static+set}" = set; then
3551 enableval="$enable_static"
3552 p=${PACKAGE-default}
2d65a52e 3553case $enableval in
66deb2be
TT
3554yes) enable_static=yes ;;
3555no) enable_static=no ;;
3556*)
3557 enable_static=no
3558 # Look at the argument we got. We use all the common list separators.
3559 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3560 for pkg in $enableval; do
3561 if test "X$pkg" = "X$p"; then
3562 enable_static=yes
3563 fi
3564 done
3565 IFS="$ac_save_ifs"
3566 ;;
3567esac
3568else
3569 enable_static=yes
47935194 3570fi;
115dabb8
TT
3571# Check whether --enable-fast-install or --disable-fast-install was given.
3572if test "${enable_fast_install+set}" = set; then
3573 enableval="$enable_fast_install"
3574 p=${PACKAGE-default}
2d65a52e 3575case $enableval in
115dabb8
TT
3576yes) enable_fast_install=yes ;;
3577no) enable_fast_install=no ;;
3578*)
3579 enable_fast_install=no
3580 # Look at the argument we got. We use all the common list separators.
3581 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3582 for pkg in $enableval; do
3583 if test "X$pkg" = "X$p"; then
3584 enable_fast_install=yes
3585 fi
3586 done
3587 IFS="$ac_save_ifs"
3588 ;;
3589esac
3590else
3591 enable_fast_install=yes
47935194 3592fi;
115dabb8 3593
66deb2be
TT
3594# Check whether --with-gnu-ld or --without-gnu-ld was given.
3595if test "${with_gnu_ld+set}" = set; then
3596 withval="$with_gnu_ld"
3597 test "$withval" = no || with_gnu_ld=yes
3598else
3599 with_gnu_ld=no
47935194 3600fi;
66deb2be 3601ac_prog=ld
2d65a52e 3602if test "$GCC" = yes; then
66deb2be 3603 # Check if gcc -print-prog-name=ld gives a path.
47935194
NN
3604 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3605echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
2f7bf5b7
AO
3606 case $host in
3607 *-*-mingw*)
3608 # gcc leaves a trailing carriage return which upsets mingw
3609 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3610 *)
3611 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3612 esac
2d65a52e 3613 case $ac_prog in
115dabb8 3614 # Accept absolute paths.
20bbd3cd 3615 [\\/]* | [A-Za-z]:[\\/]*)
115dabb8
TT
3616 re_direlt='/[^/][^/]*/\.\./'
3617 # Canonicalize the path of ld
3618 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3619 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3620 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3621 done
3622 test -z "$LD" && LD="$ac_prog"
3623 ;;
66deb2be
TT
3624 "")
3625 # If it fails, then pretend we aren't using GCC.
3626 ac_prog=ld
3627 ;;
3628 *)
3629 # If it is relative, then search for the first ld in PATH.
3630 with_gnu_ld=unknown
3631 ;;
3632 esac
3633elif test "$with_gnu_ld" = yes; then
47935194
NN
3634 echo "$as_me:$LINENO: checking for GNU ld" >&5
3635echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
66deb2be 3636else
47935194
NN
3637 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3638echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
66deb2be 3639fi
47935194
NN
3640if test "${lt_cv_path_LD+set}" = set; then
3641 echo $ECHO_N "(cached) $ECHO_C" >&6
66deb2be
TT
3642else
3643 if test -z "$LD"; then
20bbd3cd 3644 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
66deb2be
TT
3645 for ac_dir in $PATH; do
3646 test -z "$ac_dir" && ac_dir=.
20bbd3cd 3647 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2d65a52e 3648 lt_cv_path_LD="$ac_dir/$ac_prog"
66deb2be
TT
3649 # Check to see if the program is GNU ld. I'd rather use --version,
3650 # but apparently some GNU ld's only accept -v.
3651 # Break only if it was the GNU/non-GNU ld that we prefer.
2d65a52e 3652 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
66deb2be
TT
3653 test "$with_gnu_ld" != no && break
3654 else
115dabb8 3655 test "$with_gnu_ld" != yes && break
66deb2be
TT
3656 fi
3657 fi
3658 done
3659 IFS="$ac_save_ifs"
3660else
2d65a52e 3661 lt_cv_path_LD="$LD" # Let the user override the test with a path.
66deb2be
TT
3662fi
3663fi
3664
2d65a52e 3665LD="$lt_cv_path_LD"
66deb2be 3666if test -n "$LD"; then
47935194
NN
3667 echo "$as_me:$LINENO: result: $LD" >&5
3668echo "${ECHO_T}$LD" >&6
66deb2be 3669else
47935194
NN
3670 echo "$as_me:$LINENO: result: no" >&5
3671echo "${ECHO_T}no" >&6
3672fi
3673test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3674echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3675 { (exit 1); exit 1; }; }
3676echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3677echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3678if test "${lt_cv_prog_gnu_ld+set}" = set; then
3679 echo $ECHO_N "(cached) $ECHO_C" >&6
66deb2be
TT
3680else
3681 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3682if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2d65a52e 3683 lt_cv_prog_gnu_ld=yes
66deb2be 3684else
2d65a52e 3685 lt_cv_prog_gnu_ld=no
66deb2be
TT
3686fi
3687fi
47935194
NN
3688echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3689echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2d65a52e 3690with_gnu_ld=$lt_cv_prog_gnu_ld
2f7bf5b7
AO
3691
3692
47935194
NN
3693echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3694echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3695if test "${lt_cv_ld_reload_flag+set}" = set; then
3696 echo $ECHO_N "(cached) $ECHO_C" >&6
2f7bf5b7
AO
3697else
3698 lt_cv_ld_reload_flag='-r'
3699fi
47935194
NN
3700echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3701echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2f7bf5b7
AO
3702reload_flag=$lt_cv_ld_reload_flag
3703test -n "$reload_flag" && reload_flag=" $reload_flag"
66deb2be 3704
47935194
NN
3705echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3706echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3707if test "${lt_cv_path_NM+set}" = set; then
3708 echo $ECHO_N "(cached) $ECHO_C" >&6
66deb2be
TT
3709else
3710 if test -n "$NM"; then
3711 # Let the user override the test.
2d65a52e 3712 lt_cv_path_NM="$NM"
66deb2be 3713else
20bbd3cd 3714 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
115dabb8 3715 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
66deb2be 3716 test -z "$ac_dir" && ac_dir=.
2f7bf5b7
AO
3717 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3718 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
66deb2be
TT
3719 # Check to see if the nm accepts a BSD-compat flag.
3720 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3721 # nm: unknown option "B" ignored
2f7bf5b7
AO
3722 # Tru64's nm complains that /dev/null is an invalid object file
3723 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
2d65a52e 3724 lt_cv_path_NM="$tmp_nm -B"
115dabb8 3725 break
2f7bf5b7 3726 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2d65a52e 3727 lt_cv_path_NM="$tmp_nm -p"
115dabb8 3728 break
66deb2be 3729 else
2d65a52e 3730 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
115dabb8 3731 continue # so that we can try to find one that supports BSD flags
66deb2be 3732 fi
66deb2be
TT
3733 fi
3734 done
3735 IFS="$ac_save_ifs"
2d65a52e 3736 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
66deb2be
TT
3737fi
3738fi
3739
2d65a52e 3740NM="$lt_cv_path_NM"
47935194
NN
3741echo "$as_me:$LINENO: result: $NM" >&5
3742echo "${ECHO_T}$NM" >&6
3743
3744echo "$as_me:$LINENO: checking whether ln -s works" >&5
3745echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3746LN_S=$as_ln_s
3747if test "$LN_S" = "ln -s"; then
3748 echo "$as_me:$LINENO: result: yes" >&5
3749echo "${ECHO_T}yes" >&6
66deb2be 3750else
47935194
NN
3751 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3752echo "${ECHO_T}no, using $LN_S" >&6
66deb2be
TT
3753fi
3754
47935194
NN
3755echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3756echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3757if test "${lt_cv_deplibs_check_method+set}" = set; then
3758 echo $ECHO_N "(cached) $ECHO_C" >&6
2f7bf5b7 3759else
5f527203 3760 lt_cv_file_magic_cmd='$MAGIC_CMD'
2f7bf5b7
AO
3761lt_cv_file_magic_test_file=
3762lt_cv_deplibs_check_method='unknown'
3763# Need to set the preceding variable on all platforms that support
3764# interlibrary dependencies.
3765# 'none' -- dependencies not supported.
3766# `unknown' -- same as none, but documents that we really don't know.
3767# 'pass_all' -- all dependencies passed with no checks.
3768# 'test_compile' -- check by making test program.
3769# 'file_magic [regex]' -- check by looking for files in library path
3770# which responds to the $file_magic_cmd with a given egrep regex.
3771# If you have `file' or equivalent on your system and you're not sure
3772# whether `pass_all' will *always* work, you probably want this one.
3773
2d65a52e
AO
3774case $host_os in
3775aix*)
2f7bf5b7
AO
3776 lt_cv_deplibs_check_method=pass_all
3777 ;;
3778
3779beos*)
3780 lt_cv_deplibs_check_method=pass_all
3781 ;;
3782
3783bsdi4*)
2d65a52e
AO
3784 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3785 lt_cv_file_magic_cmd='/usr/bin/file -L'
2f7bf5b7
AO
3786 lt_cv_file_magic_test_file=/shlib/libc.so
3787 ;;
3788
5f527203 3789cygwin* | mingw* |pw32*)
2f7bf5b7 3790 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5f527203 3791 lt_cv_file_magic_cmd='$OBJDUMP -f'
2f7bf5b7
AO
3792 ;;
3793
2d65a52e 3794darwin* | rhapsody*)
b27317b5 3795 # this will be overwritten by pass_all, but leave it in just in case
2d65a52e
AO
3796 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3797 lt_cv_file_magic_cmd='/usr/bin/file -L'
3798 case "$host_os" in
3799 rhapsody* | darwin1.012)
3800 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3801 ;;
3802 *) # Darwin 1.3 on
3803 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3804 ;;
3805 esac
b27317b5 3806 lt_cv_deplibs_check_method=pass_all
2d65a52e
AO
3807 ;;
3808
2f7bf5b7
AO
3809freebsd* )
3810 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2d65a52e 3811 case $host_cpu in
2f7bf5b7
AO
3812 i*86 )
3813 # Not sure whether the presence of OpenBSD here was a mistake.
3814 # Let's accept both of them until this is cleared up.
2d65a52e
AO
3815 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3816 lt_cv_file_magic_cmd=/usr/bin/file
2f7bf5b7
AO
3817 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3818 ;;
3819 esac
3820 else
3821 lt_cv_deplibs_check_method=pass_all
3822 fi
3823 ;;
3824
3825gnu*)
3826 lt_cv_deplibs_check_method=pass_all
3827 ;;
3828
2d65a52e 3829hpux10.20*|hpux11*)
f5cc59a7
AO
3830 case $host_cpu in
3831 hppa*)
3832 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3833 lt_cv_file_magic_cmd=/usr/bin/file
3834 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3835 ;;
3836 ia64*)
3837 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3838 lt_cv_file_magic_cmd=/usr/bin/file
3839 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3840 ;;
3841 esac
2f7bf5b7
AO
3842 ;;
3843
3844irix5* | irix6*)
2d65a52e 3845 case $host_os in
2f7bf5b7
AO
3846 irix5*)
3847 # this will be overridden with pass_all, but let us keep it just in case
3848 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3849 ;;
3850 *)
2d65a52e 3851 case $LD in
2f7bf5b7
AO
3852 *-32|*"-32 ") libmagic=32-bit;;
3853 *-n32|*"-n32 ") libmagic=N32;;
3854 *-64|*"-64 ") libmagic=64-bit;;
3855 *) libmagic=never-match;;
3856 esac
3857 # this will be overridden with pass_all, but let us keep it just in case
2d65a52e
AO
3858 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3859 ;;
2f7bf5b7
AO
3860 esac
3861 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3862 lt_cv_deplibs_check_method=pass_all
3863 ;;
3864
3865# This must be Linux ELF.
3866linux-gnu*)
2d65a52e 3867 case $host_cpu in
b1e0a93e 3868 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2f7bf5b7
AO
3869 lt_cv_deplibs_check_method=pass_all ;;
3870 *)
3871 # glibc up to 2.1.1 does not perform some relocations on ARM
2d65a52e
AO
3872 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3873 esac
2f7bf5b7
AO
3874 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3875 ;;
3876
3877netbsd*)
2d65a52e
AO
3878 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3879 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2f7bf5b7 3880 else
2d65a52e 3881 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2f7bf5b7
AO
3882 fi
3883 ;;
3884
2d65a52e
AO
3885newsos6)
3886 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3887 lt_cv_file_magic_cmd=/usr/bin/file
3888 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3889 ;;
3890
2f7bf5b7
AO
3891osf3* | osf4* | osf5*)
3892 # this will be overridden with pass_all, but let us keep it just in case
3893 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3894 lt_cv_file_magic_test_file=/shlib/libc.so
3895 lt_cv_deplibs_check_method=pass_all
3896 ;;
66deb2be 3897
2f7bf5b7
AO
3898sco3.2v5*)
3899 lt_cv_deplibs_check_method=pass_all
3900 ;;
3901
3902solaris*)
3903 lt_cv_deplibs_check_method=pass_all
3904 lt_cv_file_magic_test_file=/lib/libc.so
3905 ;;
3906
33456445
AO
3907sysv5uw[78]* | sysv4*uw2*)
3908 lt_cv_deplibs_check_method=pass_all
3909 ;;
3910
2f7bf5b7 3911sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2d65a52e 3912 case $host_vendor in
2f7bf5b7
AO
3913 ncr)
3914 lt_cv_deplibs_check_method=pass_all
3915 ;;
3916 motorola)
2d65a52e
AO
3917 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]'
3918 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2f7bf5b7
AO
3919 ;;
3920 esac
3921 ;;
3922esac
3923
3924fi
47935194
NN
3925echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3926echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
2f7bf5b7
AO
3927file_magic_cmd=$lt_cv_file_magic_cmd
3928deplibs_check_method=$lt_cv_deplibs_check_method
3929
2f7bf5b7 3930
47935194 3931
2f7bf5b7 3932
413580dc 3933
2f7bf5b7
AO
3934# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3935
3936# Only perform the check for file, if the check method requires it
2d65a52e 3937case $deplibs_check_method in
2f7bf5b7 3938file_magic*)
5f527203 3939 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
47935194
NN
3940 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3941echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3942if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3943 echo $ECHO_N "(cached) $ECHO_C" >&6
2f7bf5b7 3944else
2d65a52e 3945 case $MAGIC_CMD in
2f7bf5b7 3946 /*)
5f527203 3947 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2f7bf5b7
AO
3948 ;;
3949 ?:/*)
5f527203 3950 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2f7bf5b7
AO
3951 ;;
3952 *)
5f527203 3953 ac_save_MAGIC_CMD="$MAGIC_CMD"
2f7bf5b7
AO
3954 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3955 ac_dummy="/usr/bin:$PATH"
3956 for ac_dir in $ac_dummy; do
3957 test -z "$ac_dir" && ac_dir=.
3958 if test -f $ac_dir/${ac_tool_prefix}file; then
5f527203 3959 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2f7bf5b7 3960 if test -n "$file_magic_test_file"; then
2d65a52e 3961 case $deplibs_check_method in
2f7bf5b7
AO
3962 "file_magic "*)
3963 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5f527203 3964 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2f7bf5b7
AO
3965 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3966 egrep "$file_magic_regex" > /dev/null; then
3967 :
3968 else
3969 cat <<EOF 1>&2
3970
3971*** Warning: the command libtool uses to detect shared libraries,
3972*** $file_magic_cmd, produces output that libtool cannot recognize.
3973*** The result is that libtool may fail to recognize shared libraries
3974*** as such. This will affect the creation of libtool libraries that
3975*** depend on shared libraries, but programs linked with such libtool
3976*** libraries will work regardless of this problem. Nevertheless, you
3977*** may want to report the problem to your system manager and/or to
3978*** bug-libtool@gnu.org
3979
3980EOF
3981 fi ;;
3982 esac
3983 fi
3984 break
3985 fi
3986 done
3987 IFS="$ac_save_ifs"
5f527203 3988 MAGIC_CMD="$ac_save_MAGIC_CMD"
2f7bf5b7 3989 ;;
70635f1e 3990esac
2f7bf5b7
AO
3991fi
3992
5f527203
AO
3993MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3994if test -n "$MAGIC_CMD"; then
47935194
NN
3995 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3996echo "${ECHO_T}$MAGIC_CMD" >&6
2f7bf5b7 3997else
47935194
NN
3998 echo "$as_me:$LINENO: result: no" >&5
3999echo "${ECHO_T}no" >&6
2f7bf5b7
AO
4000fi
4001
5f527203 4002if test -z "$lt_cv_path_MAGIC_CMD"; then
2f7bf5b7 4003 if test -n "$ac_tool_prefix"; then
47935194
NN
4004 echo "$as_me:$LINENO: checking for file" >&5
4005echo $ECHO_N "checking for file... $ECHO_C" >&6
4006if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4007 echo $ECHO_N "(cached) $ECHO_C" >&6
2f7bf5b7 4008else
2d65a52e 4009 case $MAGIC_CMD in
2f7bf5b7 4010 /*)
5f527203 4011 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2f7bf5b7
AO
4012 ;;
4013 ?:/*)
5f527203 4014 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2f7bf5b7
AO
4015 ;;
4016 *)
5f527203 4017 ac_save_MAGIC_CMD="$MAGIC_CMD"
2f7bf5b7
AO
4018 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4019 ac_dummy="/usr/bin:$PATH"
4020 for ac_dir in $ac_dummy; do
4021 test -z "$ac_dir" && ac_dir=.
4022 if test -f $ac_dir/file; then
5f527203 4023 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2f7bf5b7 4024 if test -n "$file_magic_test_file"; then
2d65a52e 4025 case $deplibs_check_method in
2f7bf5b7
AO
4026 "file_magic "*)
4027 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5f527203 4028 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2f7bf5b7
AO
4029 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4030 egrep "$file_magic_regex" > /dev/null; then
4031 :
4032 else
4033 cat <<EOF 1>&2
4034
4035*** Warning: the command libtool uses to detect shared libraries,
4036*** $file_magic_cmd, produces output that libtool cannot recognize.
4037*** The result is that libtool may fail to recognize shared libraries
4038*** as such. This will affect the creation of libtool libraries that
4039*** depend on shared libraries, but programs linked with such libtool
4040*** libraries will work regardless of this problem. Nevertheless, you
4041*** may want to report the problem to your system manager and/or to
4042*** bug-libtool@gnu.org
4043
4044EOF
4045 fi ;;
4046 esac
4047 fi
4048 break
4049 fi
4050 done
4051 IFS="$ac_save_ifs"
5f527203 4052 MAGIC_CMD="$ac_save_MAGIC_CMD"
2f7bf5b7
AO
4053 ;;
4054esac
4055fi
4056
5f527203
AO
4057MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4058if test -n "$MAGIC_CMD"; then
47935194
NN
4059 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4060echo "${ECHO_T}$MAGIC_CMD" >&6
2f7bf5b7 4061else
47935194
NN
4062 echo "$as_me:$LINENO: result: no" >&5
4063echo "${ECHO_T}no" >&6
2f7bf5b7
AO
4064fi
4065
4066 else
5f527203 4067 MAGIC_CMD=:
2f7bf5b7
AO
4068 fi
4069fi
4070
4071 fi
4072 ;;
4073esac
4074
47935194
NN
4075if test -n "$ac_tool_prefix"; then
4076 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2f7bf5b7 4077set dummy ${ac_tool_prefix}ranlib; ac_word=$2
47935194
NN
4078echo "$as_me:$LINENO: checking for $ac_word" >&5
4079echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4080if test "${ac_cv_prog_RANLIB+set}" = set; then
4081 echo $ECHO_N "(cached) $ECHO_C" >&6
2f7bf5b7
AO
4082else
4083 if test -n "$RANLIB"; then
4084 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4085else
47935194
NN
4086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4087for as_dir in $PATH
4088do
4089 IFS=$as_save_IFS
4090 test -z "$as_dir" && as_dir=.
4091 for ac_exec_ext in '' $ac_executable_extensions; do
4092 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4093 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4095 break 2
4096 fi
4097done
4098done
4099
2f7bf5b7
AO
4100fi
4101fi
47935194 4102RANLIB=$ac_cv_prog_RANLIB
2f7bf5b7 4103if test -n "$RANLIB"; then
47935194
NN
4104 echo "$as_me:$LINENO: result: $RANLIB" >&5
4105echo "${ECHO_T}$RANLIB" >&6
2f7bf5b7 4106else
47935194
NN
4107 echo "$as_me:$LINENO: result: no" >&5
4108echo "${ECHO_T}no" >&6
2f7bf5b7
AO
4109fi
4110
47935194 4111fi
2f7bf5b7 4112if test -z "$ac_cv_prog_RANLIB"; then
47935194 4113 ac_ct_RANLIB=$RANLIB
2f7bf5b7
AO
4114 # Extract the first word of "ranlib", so it can be a program name with args.
4115set dummy ranlib; ac_word=$2
47935194
NN
4116echo "$as_me:$LINENO: checking for $ac_word" >&5
4117echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4118if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4119 echo $ECHO_N "(cached) $ECHO_C" >&6
2f7bf5b7 4120else
47935194
NN
4121 if test -n "$ac_ct_RANLIB"; then
4122 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2f7bf5b7 4123else
47935194
NN
4124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4125for as_dir in $PATH
4126do
4127 IFS=$as_save_IFS
4128 test -z "$as_dir" && as_dir=.
4129 for ac_exec_ext in '' $ac_executable_extensions; do
4130 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4131 ac_cv_prog_ac_ct_RANLIB="ranlib"
4132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4133 break 2
4134 fi
4135done
4136done
4137
4138 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2f7bf5b7
AO
4139fi
4140fi
47935194
NN
4141ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4142if test -n "$ac_ct_RANLIB"; then
4143 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4144echo "${ECHO_T}$ac_ct_RANLIB" >&6
2f7bf5b7 4145else
47935194
NN
4146 echo "$as_me:$LINENO: result: no" >&5
4147echo "${ECHO_T}no" >&6
2f7bf5b7
AO
4148fi
4149
47935194 4150 RANLIB=$ac_ct_RANLIB
2f7bf5b7 4151else
47935194 4152 RANLIB="$ac_cv_prog_RANLIB"
2f7bf5b7
AO
4153fi
4154
47935194
NN
4155if test -n "$ac_tool_prefix"; then
4156 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2f7bf5b7 4157set dummy ${ac_tool_prefix}strip; ac_word=$2
47935194
NN
4158echo "$as_me:$LINENO: checking for $ac_word" >&5
4159echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4160if test "${ac_cv_prog_STRIP+set}" = set; then
4161 echo $ECHO_N "(cached) $ECHO_C" >&6
2f7bf5b7
AO
4162else
4163 if test -n "$STRIP"; then
4164 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4165else
47935194
NN
4166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4167for as_dir in $PATH
4168do
4169 IFS=$as_save_IFS
4170 test -z "$as_dir" && as_dir=.
4171 for ac_exec_ext in '' $ac_executable_extensions; do
4172 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4173 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4175 break 2
4176 fi
4177done
4178done
4179
2f7bf5b7
AO
4180fi
4181fi
47935194 4182STRIP=$ac_cv_prog_STRIP
2f7bf5b7 4183if test -n "$STRIP"; then
47935194
NN
4184 echo "$as_me:$LINENO: result: $STRIP" >&5
4185echo "${ECHO_T}$STRIP" >&6
2f7bf5b7 4186else
47935194
NN
4187 echo "$as_me:$LINENO: result: no" >&5
4188echo "${ECHO_T}no" >&6
2f7bf5b7
AO
4189fi
4190
47935194 4191fi
2f7bf5b7 4192if test -z "$ac_cv_prog_STRIP"; then
47935194 4193 ac_ct_STRIP=$STRIP
2f7bf5b7
AO
4194 # Extract the first word of "strip", so it can be a program name with args.
4195set dummy strip; ac_word=$2
47935194
NN
4196echo "$as_me:$LINENO: checking for $ac_word" >&5
4197echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4198if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4199 echo $ECHO_N "(cached) $ECHO_C" >&6
2f7bf5b7 4200else
47935194
NN
4201 if test -n "$ac_ct_STRIP"; then
4202 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2f7bf5b7 4203else
47935194
NN
4204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4205for as_dir in $PATH
4206do
4207 IFS=$as_save_IFS
4208 test -z "$as_dir" && as_dir=.
4209 for ac_exec_ext in '' $ac_executable_extensions; do
4210 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4211 ac_cv_prog_ac_ct_STRIP="strip"
4212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4213 break 2
4214 fi
4215done
4216done
4217
4218 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2f7bf5b7
AO
4219fi
4220fi
47935194
NN
4221ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4222if test -n "$ac_ct_STRIP"; then
4223 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4224echo "${ECHO_T}$ac_ct_STRIP" >&6
2f7bf5b7 4225else
47935194
NN
4226 echo "$as_me:$LINENO: result: no" >&5
4227echo "${ECHO_T}no" >&6
2f7bf5b7
AO
4228fi
4229
47935194 4230 STRIP=$ac_ct_STRIP
2f7bf5b7 4231else
47935194 4232 STRIP="$ac_cv_prog_STRIP"
2f7bf5b7
AO
4233fi
4234
70635f1e 4235
66deb2be 4236# Check for any special flags to pass to ltconfig.
115dabb8 4237libtool_flags="--cache-file=$cache_file"
66deb2be
TT
4238test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4239test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
115dabb8 4240test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2d65a52e
AO
4241test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4242test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
66deb2be 4243
20bbd3cd
TT
4244
4245# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4246if test "${enable_libtool_lock+set}" = set; then
4247 enableval="$enable_libtool_lock"
20bbd3cd 4248
47935194 4249fi;
20bbd3cd
TT
4250test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4251test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4252
47935194 4253
2f7bf5b7
AO
4254# Check whether --with-pic or --without-pic was given.
4255if test "${with_pic+set}" = set; then
4256 withval="$with_pic"
4257 pic_mode="$withval"
4258else
4259 pic_mode=default
47935194 4260fi;
2f7bf5b7
AO
4261test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4262test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4263
66deb2be
TT
4264# Some flags need to be propagated to the compiler or linker for good
4265# libtool support.
2d65a52e 4266case $host in
66deb2be
TT
4267*-*-irix6*)
4268 # Find out which ABI we are using.
8ab705be 4269 echo '#line 4269 "configure"' > conftest.$ac_ext
47935194
NN
4270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4271 (eval $ac_compile) 2>&5
4272 ac_status=$?
4273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274 (exit $ac_status); }; then
3343fdd2
AO
4275 if test "$lt_cv_prog_gnu_ld" = yes; then
4276 case `/usr/bin/file conftest.$ac_objext` in
4277 *32-bit*)
4278 LD="${LD-ld} -melf32bsmip"
4279 ;;
4280 *N32*)
4281 LD="${LD-ld} -melf32bmipn32"
4282 ;;
4283 *64-bit*)
4284 LD="${LD-ld} -melf64bmip"
4285 ;;
4286 esac
4287 else
2d65a52e 4288 case `/usr/bin/file conftest.$ac_objext` in
66deb2be
TT
4289 *32-bit*)
4290 LD="${LD-ld} -32"
4291 ;;
4292 *N32*)
4293 LD="${LD-ld} -n32"
4294 ;;
4295 *64-bit*)
4296 LD="${LD-ld} -64"
4297 ;;
4298 esac
3343fdd2 4299 fi
66deb2be
TT
4300 fi
4301 rm -rf conftest*
4302 ;;
4303
f5cc59a7
AO
4304ia64-*-hpux*)
4305 # Find out which ABI we are using.
4306 echo 'int i;' > conftest.$ac_ext
47935194
NN
4307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4308 (eval $ac_compile) 2>&5
4309 ac_status=$?
4310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311 (exit $ac_status); }; then
f5cc59a7
AO
4312 case "`/usr/bin/file conftest.o`" in
4313 *ELF-32*)
4314 HPUX_IA64_MODE="32"
4315 ;;
4316 *ELF-64*)
4317 HPUX_IA64_MODE="64"
4318 ;;
4319 esac
4320 fi
4321 rm -rf conftest*
4322 ;;
4323
13b6e5b4
AO
4324x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4325 # Find out which ABI we are using.
4326 echo 'int i;' > conftest.$ac_ext
47935194
NN
4327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4328 (eval $ac_compile) 2>&5
4329 ac_status=$?
4330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4331 (exit $ac_status); }; then
13b6e5b4
AO
4332 case "`/usr/bin/file conftest.o`" in
4333 *32-bit*)
4334 case $host in
4335 x86_64-*linux*)
4336 LD="${LD-ld} -m elf_i386"
4337 ;;
e517f636 4338 ppc64-*linux*|powerpc64-*linux*)
13b6e5b4
AO
4339 LD="${LD-ld} -m elf32ppclinux"
4340 ;;
4341 s390x-*linux*)
4342 LD="${LD-ld} -m elf_s390"
4343 ;;
4344 sparc64-*linux*)
4345 LD="${LD-ld} -m elf32_sparc"
4346 ;;
4347 esac
4348 ;;
4349 *64-bit*)
4350 case $host in
4351 x86_64-*linux*)
4352 LD="${LD-ld} -m elf_x86_64"
4353 ;;
4354 ppc*-*linux*|powerpc*-*linux*)
4355 LD="${LD-ld} -m elf64ppc"
4356 ;;
4357 s390*-*linux*)
4358 LD="${LD-ld} -m elf64_s390"
4359 ;;
4360 sparc*-*linux*)
4361 LD="${LD-ld} -m elf64_sparc"
4362 ;;
4363 esac
4364 ;;
4365 esac
4366 fi
4367 rm -rf conftest*
4368 ;;
4369
66deb2be
TT
4370*-*-sco3.2v5*)
4371 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
115dabb8 4372 SAVE_CFLAGS="$CFLAGS"
66deb2be 4373 CFLAGS="$CFLAGS -belf"
47935194
NN
4374 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4375echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4376if test "${lt_cv_cc_needs_belf+set}" = set; then
4377 echo $ECHO_N "(cached) $ECHO_C" >&6
115dabb8 4378else
115dabb8 4379
115dabb8 4380
47935194
NN
4381 ac_ext=c
4382ac_cpp='$CPP $CPPFLAGS'
4383ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4384ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4385ac_compiler_gnu=$ac_cv_c_compiler_gnu
4386
4387 if test x$gcc_no_link = xyes; then
4388 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4389echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4390 { (exit 1); exit 1; }; }
4391fi
4392cat >conftest.$ac_ext <<_ACEOF
4393/* confdefs.h. */
4394_ACEOF
4395cat confdefs.h >>conftest.$ac_ext
4396cat >>conftest.$ac_ext <<_ACEOF
4397/* end confdefs.h. */
4398
4399int
4400main ()
4401{
4402
4403 ;
4404 return 0;
4405}
4406_ACEOF
4407rm -f conftest.$ac_objext conftest$ac_exeext
4408if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8ab705be 4409 (eval $ac_link) 2>conftest.er1
47935194 4410 ac_status=$?
8ab705be
KC
4411 grep -v '^ *+' conftest.er1 >conftest.err
4412 rm -f conftest.er1
4413 cat conftest.err >&5
47935194
NN
4414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415 (exit $ac_status); } &&
8ab705be
KC
4416 { ac_try='test -z "$ac_c_werror_flag"
4417 || test ! -s conftest.err'
4418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4419 (eval $ac_try) 2>&5
4420 ac_status=$?
4421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422 (exit $ac_status); }; } &&
4423 { ac_try='test -s conftest$ac_exeext'
47935194
NN
4424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4425 (eval $ac_try) 2>&5
4426 ac_status=$?
4427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428 (exit $ac_status); }; }; then
115dabb8
TT
4429 lt_cv_cc_needs_belf=yes
4430else
47935194
NN
4431 echo "$as_me: failed program was:" >&5
4432sed 's/^/| /' conftest.$ac_ext >&5
4433
4434lt_cv_cc_needs_belf=no
115dabb8 4435fi
8ab705be
KC
4436rm -f conftest.err conftest.$ac_objext \
4437 conftest$ac_exeext conftest.$ac_ext
2f7bf5b7 4438 ac_ext=c
2f7bf5b7 4439ac_cpp='$CPP $CPPFLAGS'
47935194
NN
4440ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4441ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4442ac_compiler_gnu=$ac_cv_c_compiler_gnu
2f7bf5b7 4443
115dabb8 4444fi
47935194
NN
4445echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4446echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
115dabb8
TT
4447 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4448 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4449 CFLAGS="$SAVE_CFLAGS"
4450 fi
66deb2be
TT
4451 ;;
4452
66deb2be
TT
4453
4454esac
4455
115dabb8
TT
4456
4457# Save cache, so that ltconfig can load it
47935194 4458cat >confcache <<\_ACEOF
115dabb8
TT
4459# This file is a shell script that caches the results of configure
4460# tests run on this system so they can be shared between configure
47935194
NN
4461# scripts and configure runs, see configure's option --config-cache.
4462# It is not useful on other systems. If it contains results you don't
4463# want to keep, you may remove or edit it.
115dabb8 4464#
47935194
NN
4465# config.status only pays attention to the cache file if you give it
4466# the --recheck option to rerun configure.
115dabb8 4467#
47935194
NN
4468# `ac_cv_env_foo' variables (set or unset) will be overridden when
4469# loading this file, other *unset* `ac_cv_foo' will be assigned the
4470# following values.
4471
4472_ACEOF
4473
115dabb8
TT
4474# The following way of writing the cache mishandles newlines in values,
4475# but we know of no workaround that is simple, portable, and efficient.
4476# So, don't put newlines in cache variables' values.
4477# Ultrix sh set writes to stderr and can't be redirected directly,
4478# and sets the high bit in the cache file unless we assign to the vars.
47935194
NN
4479{
4480 (set) 2>&1 |
4481 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4482 *ac_space=\ *)
4483 # `set' does not quote correctly, so add quotes (double-quote
4484 # substitution turns \\\\ into \\, and sed turns \\ into \).
4485 sed -n \
8ab705be
KC
4486 "s/'/'\\\\''/g;
4487 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
47935194
NN
4488 ;;
4489 *)
4490 # `set' quotes correctly as required by POSIX, so do not add quotes.
4491 sed -n \
8ab705be 4492 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
47935194
NN
4493 ;;
4494 esac;
4495} |
4496 sed '
4497 t clear
4498 : clear
4499 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4500 t end
4501 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4502 : end' >>confcache
4503if diff $cache_file confcache >/dev/null 2>&1; then :; else
115dabb8 4504 if test -w $cache_file; then
47935194
NN
4505 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4506 cat confcache >$cache_file
115dabb8
TT
4507 else
4508 echo "not updating unwritable cache $cache_file"
4509 fi
4510fi
4511rm -f confcache
4512
66deb2be 4513# Actually configure libtool. ac_aux_dir is where install-sh is found.
2f7bf5b7 4514AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
5f527203 4515MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2f7bf5b7
AO
4516LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4517AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4518objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4519deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
66deb2be 4520${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2f7bf5b7 4521$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
47935194
NN
4522|| { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4523echo "$as_me: error: libtool configure failed" >&2;}
4524 { (exit 1); exit 1; }; }
66deb2be 4525
115dabb8
TT
4526# Reload cache, that may have been modified by ltconfig
4527if test -r "$cache_file"; then
47935194
NN
4528 # Some versions of bash will fail to source /dev/null (special
4529 # files actually), so we avoid doing that.
4530 if test -f "$cache_file"; then
4531 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4532echo "$as_me: loading cache $cache_file" >&6;}
4533 case $cache_file in
4534 [\\/]* | ?:[\\/]* ) . $cache_file;;
4535 *) . ./$cache_file;;
4536 esac
4537 fi
115dabb8 4538else
47935194
NN
4539 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4540echo "$as_me: creating cache $cache_file" >&6;}
4541 >$cache_file
115dabb8
TT
4542fi
4543
4544
4545# This can be used to rebuild libtool when needed
2f7bf5b7 4546LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
115dabb8
TT
4547
4548# Always use our own libtool.
4549LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4550
66deb2be
TT
4551# Redirect the config.log output again, so that the ltconfig log is not
4552# clobbered by the next message.
4553exec 5>>./config.log
4554
47935194
NN
4555ac_ext=cc
4556ac_cpp='$CXXCPP $CPPFLAGS'
4557ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4558ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4559ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4560echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4561echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4562if test -z "$CXXCPP"; then
4563 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4564 echo $ECHO_N "(cached) $ECHO_C" >&6
4565else
4566 # Double quotes because CXXCPP needs to be expanded
4567 for CXXCPP in "$CXX -E" "/lib/cpp"
4568 do
4569 ac_preproc_ok=false
4570for ac_cxx_preproc_warn_flag in '' yes
4571do
4572 # Use a header file that comes with gcc, so configuring glibc
4573 # with a fresh cross-compiler works.
4574 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4575 # <limits.h> exists even on freestanding compilers.
4576 # On the NeXT, cc -E runs the code through the compiler's parser,
4577 # not just through cpp. "Syntax error" is here to catch this case.
4578 cat >conftest.$ac_ext <<_ACEOF
4579/* confdefs.h. */
4580_ACEOF
4581cat confdefs.h >>conftest.$ac_ext
4582cat >>conftest.$ac_ext <<_ACEOF
4583/* end confdefs.h. */
4584#ifdef __STDC__
4585# include <limits.h>
4586#else
4587# include <assert.h>
4588#endif
8ab705be 4589 Syntax error
47935194
NN
4590_ACEOF
4591if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4592 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4593 ac_status=$?
4594 grep -v '^ *+' conftest.er1 >conftest.err
4595 rm -f conftest.er1
4596 cat conftest.err >&5
4597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598 (exit $ac_status); } >/dev/null; then
4599 if test -s conftest.err; then
4600 ac_cpp_err=$ac_cxx_preproc_warn_flag
8ab705be 4601 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
47935194
NN
4602 else
4603 ac_cpp_err=
4604 fi
4605else
4606 ac_cpp_err=yes
4607fi
4608if test -z "$ac_cpp_err"; then
4609 :
4610else
4611 echo "$as_me: failed program was:" >&5
4612sed 's/^/| /' conftest.$ac_ext >&5
4613
4614 # Broken: fails on valid input.
4615continue
4616fi
4617rm -f conftest.err conftest.$ac_ext
4618
4619 # OK, works on sane cases. Now check whether non-existent headers
4620 # can be detected and how.
4621 cat >conftest.$ac_ext <<_ACEOF
4622/* confdefs.h. */
4623_ACEOF
4624cat confdefs.h >>conftest.$ac_ext
4625cat >>conftest.$ac_ext <<_ACEOF
4626/* end confdefs.h. */
4627#include <ac_nonexistent.h>
4628_ACEOF
4629if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4630 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4631 ac_status=$?
4632 grep -v '^ *+' conftest.er1 >conftest.err
4633 rm -f conftest.er1
4634 cat conftest.err >&5
4635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636 (exit $ac_status); } >/dev/null; then
4637 if test -s conftest.err; then
4638 ac_cpp_err=$ac_cxx_preproc_warn_flag
8ab705be 4639 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
47935194
NN
4640 else
4641 ac_cpp_err=
4642 fi
4643else
4644 ac_cpp_err=yes
4645fi
4646if test -z "$ac_cpp_err"; then
4647 # Broken: success on invalid input.
4648continue
4649else
4650 echo "$as_me: failed program was:" >&5
4651sed 's/^/| /' conftest.$ac_ext >&5
4652
4653 # Passes both tests.
4654ac_preproc_ok=:
4655break
4656fi
4657rm -f conftest.err conftest.$ac_ext
4658
4659done
4660# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4661rm -f conftest.err conftest.$ac_ext
4662if $ac_preproc_ok; then
4663 break
4664fi
4665
4666 done
4667 ac_cv_prog_CXXCPP=$CXXCPP
4668
4669fi
4670 CXXCPP=$ac_cv_prog_CXXCPP
4671else
4672 ac_cv_prog_CXXCPP=$CXXCPP
4673fi
4674echo "$as_me:$LINENO: result: $CXXCPP" >&5
4675echo "${ECHO_T}$CXXCPP" >&6
4676ac_preproc_ok=false
4677for ac_cxx_preproc_warn_flag in '' yes
4678do
4679 # Use a header file that comes with gcc, so configuring glibc
4680 # with a fresh cross-compiler works.
4681 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4682 # <limits.h> exists even on freestanding compilers.
4683 # On the NeXT, cc -E runs the code through the compiler's parser,
4684 # not just through cpp. "Syntax error" is here to catch this case.
4685 cat >conftest.$ac_ext <<_ACEOF
4686/* confdefs.h. */
4687_ACEOF
4688cat confdefs.h >>conftest.$ac_ext
4689cat >>conftest.$ac_ext <<_ACEOF
4690/* end confdefs.h. */
4691#ifdef __STDC__
4692# include <limits.h>
4693#else
4694# include <assert.h>
4695#endif
8ab705be 4696 Syntax error
47935194
NN
4697_ACEOF
4698if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4699 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4700 ac_status=$?
4701 grep -v '^ *+' conftest.er1 >conftest.err
4702 rm -f conftest.er1
4703 cat conftest.err >&5
4704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705 (exit $ac_status); } >/dev/null; then
4706 if test -s conftest.err; then
4707 ac_cpp_err=$ac_cxx_preproc_warn_flag
8ab705be 4708 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
47935194
NN
4709 else
4710 ac_cpp_err=
4711 fi
4712else
4713 ac_cpp_err=yes
4714fi
4715if test -z "$ac_cpp_err"; then
4716 :
4717else
4718 echo "$as_me: failed program was:" >&5
4719sed 's/^/| /' conftest.$ac_ext >&5
4720
4721 # Broken: fails on valid input.
4722continue
4723fi
4724rm -f conftest.err conftest.$ac_ext
4725
4726 # OK, works on sane cases. Now check whether non-existent headers
4727 # can be detected and how.
4728 cat >conftest.$ac_ext <<_ACEOF
4729/* confdefs.h. */
4730_ACEOF
4731cat confdefs.h >>conftest.$ac_ext
4732cat >>conftest.$ac_ext <<_ACEOF
4733/* end confdefs.h. */
4734#include <ac_nonexistent.h>
4735_ACEOF
4736if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4737 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4738 ac_status=$?
4739 grep -v '^ *+' conftest.er1 >conftest.err
4740 rm -f conftest.er1
4741 cat conftest.err >&5
4742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743 (exit $ac_status); } >/dev/null; then
4744 if test -s conftest.err; then
4745 ac_cpp_err=$ac_cxx_preproc_warn_flag
8ab705be 4746 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
47935194
NN
4747 else
4748 ac_cpp_err=
4749 fi
4750else
4751 ac_cpp_err=yes
4752fi
4753if test -z "$ac_cpp_err"; then
4754 # Broken: success on invalid input.
4755continue
4756else
4757 echo "$as_me: failed program was:" >&5
4758sed 's/^/| /' conftest.$ac_ext >&5
4759
4760 # Passes both tests.
4761ac_preproc_ok=:
4762break
4763fi
4764rm -f conftest.err conftest.$ac_ext
4765
4766done
4767# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4768rm -f conftest.err conftest.$ac_ext
4769if $ac_preproc_ok; then
4770 :
4771else
4772 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4773See \`config.log' for more details." >&5
4774echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4775See \`config.log' for more details." >&2;}
4776 { (exit 1); exit 1; }; }
4777fi
4778
4779ac_ext=c
4780ac_cpp='$CPP $CPPFLAGS'
4781ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4782ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4783ac_compiler_gnu=$ac_cv_c_compiler_gnu
4784
66deb2be 4785
2f7bf5b7 4786
2f7bf5b7
AO
4787LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
4788lt_save_CC="$CC"
4789lt_save_CFLAGS="$CFLAGS"
4790AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2d65a52e 4791MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2f7bf5b7
AO
4792LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4793AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4794objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4795deplibs_check_method="$deplibs_check_method" \
4796file_magic_cmd="$file_magic_cmd" \
4797${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
4798--build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
47935194
NN
4799|| { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
4800echo "$as_me: error: libtool tag configuration failed" >&2;}
4801 { (exit 1); exit 1; }; }
2f7bf5b7
AO
4802CC="$lt_save_CC"
4803CFLAGS="$lt_save_CFLAGS"
4804
4805# Redirect the config.log output again, so that the ltconfig log is not
4806# clobbered by the next message.
4807exec 5>>./config.log
4808
2f7bf5b7 4809
47935194
NN
4810
4811
4812
4813
4814
2f7bf5b7 4815
1530be84
TT
4816# Check whether --with-target-subdir or --without-target-subdir was given.
4817if test "${with_target_subdir+set}" = set; then
4818 withval="$with_target_subdir"
47935194
NN
4819
4820fi;
1530be84
TT
4821
4822# Check whether --with-cross-host or --without-cross-host was given.
4823if test "${with_cross_host+set}" = set; then
4824 withval="$with_cross_host"
1530be84 4825
47935194 4826fi;
1530be84 4827
47935194
NN
4828echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
4829echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
0ff95153
TT
4830THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
4831if test -z "$THREADS"; then
4832 THREADS=no
5a2586cf 4833fi
47935194
NN
4834echo "$as_me:$LINENO: result: $THREADS" >&5
4835echo "${ECHO_T}$THREADS" >&6
5a2586cf
TT
4836
4837# Check whether --enable-parallel-mark or --disable-parallel-mark was given.
4838if test "${enable_parallel_mark+set}" = set; then
4839 enableval="$enable_parallel_mark"
4840 case "$THREADS" in
4841 no | none | single)
47935194
NN
4842 { { echo "$as_me:$LINENO: error: Parallel mark requires --enable-threads=x spec" >&5
4843echo "$as_me: error: Parallel mark requires --enable-threads=x spec" >&2;}
4844 { (exit 1); exit 1; }; }
5a2586cf
TT
4845 ;;
4846 esac
4847
47935194 4848fi;
1530be84 4849
7160c99d 4850INCLUDES="-I`cd $srcdir && ${PWDCMD-pwd}`/include"
e301621d 4851THREADLIBS=
1530be84
TT
4852case "$THREADS" in
4853 no | none | single)
4854 THREADS=none
4855 ;;
4856 posix | pthreads)
4857 THREADS=posix
62aa6b06 4858 THREADLIBS=-lpthread
1530be84 4859 case "$host" in
30c3de1f 4860 x86-*-linux* | ia64-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* | alpha-*-linux*)
47935194 4861 cat >>confdefs.h <<\_ACEOF
5a2586cf 4862#define GC_LINUX_THREADS 1
47935194 4863_ACEOF
5a2586cf 4864
47935194 4865 cat >>confdefs.h <<\_ACEOF
5a2586cf 4866#define _REENTRANT 1
47935194 4867_ACEOF
5a2586cf 4868
30c3de1f 4869 if test "${enable_parallel_mark}" = yes; then
47935194 4870 cat >>confdefs.h <<\_ACEOF
5a2586cf 4871#define PARALLEL_MARK 1
47935194 4872_ACEOF
5a2586cf
TT
4873
4874 fi
47935194 4875 cat >>confdefs.h <<\_ACEOF
5a2586cf 4876#define THREAD_LOCAL_ALLOC 1
47935194 4877_ACEOF
5a2586cf
TT
4878
4879 ;;
1530be84 4880 *-*-linux*)
47935194 4881 cat >>confdefs.h <<\_ACEOF
5a2586cf 4882#define GC_LINUX_THREADS 1
47935194 4883_ACEOF
1530be84 4884
47935194 4885 cat >>confdefs.h <<\_ACEOF
1530be84 4886#define _REENTRANT 1
47935194 4887_ACEOF
30c3de1f
JS
4888
4889 ;;
4890 *-*-aix*)
47935194 4891 cat >>confdefs.h <<\_ACEOF
30c3de1f 4892#define GC_AIX_THREADS 1
47935194 4893_ACEOF
30c3de1f 4894
47935194 4895 cat >>confdefs.h <<\_ACEOF
30c3de1f 4896#define _REENTRANT 1
47935194 4897_ACEOF
1530be84 4898
5a2586cf
TT
4899 ;;
4900 *-*-hpux*)
47935194
NN
4901 { echo "$as_me:$LINENO: WARNING: \"Only HP/UX 11 threads are supported.\"" >&5
4902echo "$as_me: WARNING: \"Only HP/UX 11 threads are supported.\"" >&2;}
4903 cat >>confdefs.h <<\_ACEOF
5a2586cf 4904#define GC_HPUX_THREADS 1
47935194 4905_ACEOF
5a2586cf 4906
47935194 4907 cat >>confdefs.h <<\_ACEOF
5a2586cf 4908#define _POSIX_C_SOURCE 199506L
47935194 4909_ACEOF
5a2586cf
TT
4910
4911 if test "${enable_parallel_mark}" = yes; then
47935194 4912 cat >>confdefs.h <<\_ACEOF
5a2586cf 4913#define PARALLEL_MARK 1
47935194 4914_ACEOF
5a2586cf
TT
4915
4916 fi
47935194 4917 cat >>confdefs.h <<\_ACEOF
5a2586cf 4918#define THREAD_LOCAL_ALLOC 1
47935194 4919_ACEOF
5a2586cf
TT
4920
4921 THREADLIBS="-lpthread -lrt"
1530be84 4922 ;;
62aa6b06 4923 *-*-freebsd*)
47935194
NN
4924 { echo "$as_me:$LINENO: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&5
4925echo "$as_me: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&2;}
4926 cat >>confdefs.h <<\_ACEOF
4c7726b1 4927#define GC_FREEBSD_THREADS 1
47935194 4928_ACEOF
62aa6b06 4929
9110a741 4930 INCLUDES="$INCLUDES -pthread"
62aa6b06
LR
4931 THREADLIBS=-pthread
4932 ;;
1530be84 4933 *-*-solaris*)
47935194 4934 cat >>confdefs.h <<\_ACEOF
5a2586cf 4935#define GC_SOLARIS_THREADS 1
47935194 4936_ACEOF
1530be84 4937
47935194 4938 cat >>confdefs.h <<\_ACEOF
5a2586cf 4939#define GC_SOLARIS_PTHREADS 1
47935194 4940_ACEOF
14caa62f
GZ
4941
4942 ;;
4943 *-*-irix*)
47935194 4944 cat >>confdefs.h <<\_ACEOF
5a2586cf 4945#define GC_IRIX_THREADS 1
47935194 4946_ACEOF
1530be84 4947
a2d6e915
DB
4948 ;;
4949 *-*-cygwin*)
47935194 4950 cat >>confdefs.h <<\_ACEOF
30c3de1f 4951#define GC_WIN32_THREADS 1
47935194 4952_ACEOF
30c3de1f
JS
4953
4954 ;;
4955 *-*-darwin*)
47935194 4956 cat >>confdefs.h <<\_ACEOF
30c3de1f 4957#define GC_DARWIN_THREADS 1
47935194 4958_ACEOF
30c3de1f 4959
47935194 4960 cat >>confdefs.h <<\_ACEOF
30c3de1f 4961#define THREAD_LOCAL_ALLOC 1
47935194 4962_ACEOF
30c3de1f
JS
4963
4964 if test "${enable_parallel_mark}" = yes; then
47935194 4965 cat >>confdefs.h <<\_ACEOF
30c3de1f 4966#define PARALLEL_MARK 1
47935194 4967_ACEOF
30c3de1f
JS
4968
4969 fi
4970 ;;
4971 *-*-osf*)
47935194 4972 cat >>confdefs.h <<\_ACEOF
30c3de1f 4973#define GC_OSF1_THREADS 1
47935194 4974_ACEOF
30c3de1f
JS
4975
4976 if test "${enable_parallel_mark}" = yes; then
47935194 4977 cat >>confdefs.h <<\_ACEOF
30c3de1f 4978#define PARALLEL_MARK 1
47935194 4979_ACEOF
30c3de1f 4980
47935194 4981 cat >>confdefs.h <<\_ACEOF
30c3de1f 4982#define THREAD_LOCAL_ALLOC 1
47935194 4983_ACEOF
30c3de1f
JS
4984
4985 # May want to enable it in other cases, too.
4986 # Measurements havent yet been done.
4987 fi
4988 INCLUDES="$INCLUDES -pthread"
4989 THREADLIBS="-lpthread -lrt"
1530be84
TT
4990 ;;
4991 esac
4992 ;;
df61a3d2 4993 win32)
47935194 4994 cat >>confdefs.h <<\_ACEOF
df61a3d2 4995#define GC_WIN32_THREADS 1
47935194 4996_ACEOF
512e32d2 4997
a97386cd 4998 ;;
30c3de1f
JS
4999 dgux386)
5000 THREADS=dgux386
47935194
NN
5001echo "$as_me:$LINENO: result: $THREADLIBS" >&5
5002echo "${ECHO_T}$THREADLIBS" >&6
30c3de1f
JS
5003 # Use pthread GCC switch
5004 THREADLIBS=-pthread
5005 if test "${enable_parallel_mark}" = yes; then
47935194 5006 cat >>confdefs.h <<\_ACEOF
30c3de1f 5007#define PARALLEL_MARK 1
47935194 5008_ACEOF
e83a44d2
ME
5009
5010 fi
47935194 5011 cat >>confdefs.h <<\_ACEOF
30c3de1f 5012#define THREAD_LOCAL_ALLOC 1
47935194 5013_ACEOF
30c3de1f 5014
47935194 5015 cat >>confdefs.h <<\_ACEOF
30c3de1f 5016#define GC_DGUX386_THREADS 1
47935194 5017_ACEOF
30c3de1f 5018
47935194 5019 cat >>confdefs.h <<\_ACEOF
30c3de1f 5020#define DGUX_THREADS 1
47935194 5021_ACEOF
30c3de1f
JS
5022
5023 # Enable _POSIX4A_DRAFT10_SOURCE with flag -pthread
5024 INCLUDES="-pthread $INCLUDES"
5025 ;;
5026 aix)
5027 THREADS=posix
5028 THREADLIBS=-lpthread
47935194 5029 cat >>confdefs.h <<\_ACEOF
30c3de1f 5030#define GC_AIX_THREADS 1
47935194 5031_ACEOF
30c3de1f 5032
47935194 5033 cat >>confdefs.h <<\_ACEOF
30c3de1f 5034#define _REENTRANT 1
47935194 5035_ACEOF
30c3de1f 5036
df61a3d2
AM
5037 ;;
5038 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
47935194
NN
5039 { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
5040echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
5041 { (exit 1); exit 1; }; }
1530be84
TT
5042 ;;
5043 *)
47935194
NN
5044 { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
5045echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
5046 { (exit 1); exit 1; }; }
1530be84
TT
5047 ;;
5048esac
1530be84 5049
20bbd3cd 5050
47935194 5051case "$host" in
30c3de1f
JS
5052 powerpc-*-darwin*)
5053 powerpc_darwin=true
5054 ;;
5055esac
5056
5057
5058if test x$powerpc_darwin = xtrue; then
5059 POWERPC_DARWIN_TRUE=
5060 POWERPC_DARWIN_FALSE='#'
5061else
5062 POWERPC_DARWIN_TRUE='#'
5063 POWERPC_DARWIN_FALSE=
5064fi
5065
5066# We never want libdl on darwin. It is a fake libdl that just ends up making
5067# dyld calls anyway
5068case "$host" in
5069 *-*-darwin*) ;;
47935194
NN
5070 *)
5071 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
5072echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
5073if test "${ac_cv_lib_dl_dlopen+set}" = set; then
5074 echo $ECHO_N "(cached) $ECHO_C" >&6
5075else
5076 ac_check_lib_save_LIBS=$LIBS
f2beb7ef 5077LIBS="-ldl $LIBS"
47935194
NN
5078if test x$gcc_no_link = xyes; then
5079 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5080echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5081 { (exit 1); exit 1; }; }
5082fi
5083cat >conftest.$ac_ext <<_ACEOF
5084/* confdefs.h. */
5085_ACEOF
5086cat confdefs.h >>conftest.$ac_ext
5087cat >>conftest.$ac_ext <<_ACEOF
5088/* end confdefs.h. */
5089
f2beb7ef 5090/* Override any gcc2 internal prototype to avoid an error. */
47935194
NN
5091#ifdef __cplusplus
5092extern "C"
5093#endif
f2beb7ef 5094/* We use char because int might match the return type of a gcc2
47935194
NN
5095 builtin and then its argument prototype would still apply. */
5096char dlopen ();
5097int
5098main ()
5099{
5100dlopen ();
5101 ;
5102 return 0;
5103}
5104_ACEOF
5105rm -f conftest.$ac_objext conftest$ac_exeext
5106if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8ab705be 5107 (eval $ac_link) 2>conftest.er1
47935194 5108 ac_status=$?
8ab705be
KC
5109 grep -v '^ *+' conftest.er1 >conftest.err
5110 rm -f conftest.er1
5111 cat conftest.err >&5
47935194
NN
5112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5113 (exit $ac_status); } &&
8ab705be
KC
5114 { ac_try='test -z "$ac_c_werror_flag"
5115 || test ! -s conftest.err'
5116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5117 (eval $ac_try) 2>&5
5118 ac_status=$?
5119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120 (exit $ac_status); }; } &&
5121 { ac_try='test -s conftest$ac_exeext'
47935194
NN
5122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5123 (eval $ac_try) 2>&5
5124 ac_status=$?
5125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5126 (exit $ac_status); }; }; then
5127 ac_cv_lib_dl_dlopen=yes
f2beb7ef 5128else
47935194
NN
5129 echo "$as_me: failed program was:" >&5
5130sed 's/^/| /' conftest.$ac_ext >&5
f2beb7ef 5131
47935194
NN
5132ac_cv_lib_dl_dlopen=no
5133fi
8ab705be
KC
5134rm -f conftest.err conftest.$ac_objext \
5135 conftest$ac_exeext conftest.$ac_ext
47935194 5136LIBS=$ac_check_lib_save_LIBS
f2beb7ef 5137fi
47935194
NN
5138echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
5139echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
5140if test $ac_cv_lib_dl_dlopen = yes; then
f2beb7ef 5141 EXTRA_TEST_LIBS="$EXTRA_TEST_LIBS -ldl"
f2beb7ef
APB
5142fi
5143
30c3de1f
JS
5144 ;;
5145esac
5146
f2beb7ef
APB
5147
5148
5a2586cf 5149target_all=libgcjgc.la
1530be84
TT
5150
5151
f28c857f 5152
1530be84 5153TARGET_ECOS="no"
47935194 5154
1530be84
TT
5155# Check whether --with-ecos or --without-ecos was given.
5156if test "${with_ecos+set}" = set; then
5157 withval="$with_ecos"
5158 TARGET_ECOS="$with_ecos"
5159
47935194 5160fi;
1530be84
TT
5161
5162addobjs=
30c3de1f
JS
5163addlibs=
5164addincludes=
5165addtests=
1530be84
TT
5166CXXINCLUDES=
5167case "$TARGET_ECOS" in
5168 no)
5169 ;;
5170 *)
47935194 5171 cat >>confdefs.h <<\_ACEOF
1530be84 5172#define ECOS 1
47935194 5173_ACEOF
1530be84
TT
5174
5175 CXXINCLUDES="-I${TARGET_ECOS}/include"
66deb2be 5176 addobjs="$addobjs ecos.lo"
1530be84
TT
5177 ;;
5178esac
5179
30c3de1f
JS
5180if test "${enable_cplusplus}" = yes; then
5181 addincludes="$addincludes include/gc_cpp.h include/gc_allocator.h"
5182 addtests="$addtests test_cpp"
5183fi
1530be84
TT
5184
5185
5186
30c3de1f
JS
5187if test "${enable_cplusplus}" = yes; then
5188 CPLUSPLUS_TRUE=
5189 CPLUSPLUS_FALSE='#'
5190else
5191 CPLUSPLUS_TRUE='#'
5192 CPLUSPLUS_FALSE=
5193fi
1530be84 5194
30c3de1f
JS
5195
5196
5197
5198
5199
5200# Configuration of shared libraries
5201#
47935194
NN
5202echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
5203echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
30c3de1f 5204# Check whether --enable-shared or --disable-shared was given.
4c7726b1
BM
5205if test "${enable_shared+set}" = set; then
5206 enableval="$enable_shared"
5207 p=${PACKAGE-default}
5208case $enableval in
5209yes) enable_shared=yes ;;
5210no) enable_shared=no ;;
5211*)
5212 enable_shared=no
5213 # Look at the argument we got. We use all the common list separators.
5214 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5215 for pkg in $enableval; do
5216 if test "X$pkg" = "X$p"; then
5217 enable_shared=yes
5218 fi
5219 done
5220 IFS="$ac_save_ifs"
5221 ;;
5222esac
5223else
30c3de1f 5224 enable_shared=yes
47935194 5225fi;
30c3de1f
JS
5226
5227case "$host" in
5228 alpha-*-openbsd*)
5229 enable_shared=no
47935194
NN
5230 echo "$as_me:$LINENO: result: no" >&5
5231echo "${ECHO_T}no" >&6
30c3de1f
JS
5232 ;;
5233 *)
47935194
NN
5234 echo "$as_me:$LINENO: result: yes" >&5
5235echo "${ECHO_T}yes" >&6
30c3de1f
JS
5236 ;;
5237esac
5238
5239# Configuration of machine-dependent code
5240#
b27317b5
AH
5241# We don't set NO_EXECUTE_PERMISSION by default because gcj (and
5242# anything else that creates trampolines in gc-allocated memory)
b1891e51 5243# always needs exec permission. The exceptions to this are IA-64 and
b27317b5
AH
5244# some variations of Power PC, where trampolines don't contain
5245# executable code.
5246#
47935194
NN
5247echo "$as_me:$LINENO: checking which machine-dependent code should be used" >&5
5248echo $ECHO_N "checking which machine-dependent code should be used... $ECHO_C" >&6
30c3de1f
JS
5249machdep=
5250case "$host" in
5251 alpha*-*-openbsd*)
5252 machdep="alpha_mach_dep.lo"
5253 if test x"${ac_cv_lib_dl_dlopen}" != xyes ; then
47935194
NN
5254 { echo "$as_me:$LINENO: WARNING: OpenBSD/Alpha without dlopen(). Shared library support is disabled" >&5
5255echo "$as_me: WARNING: OpenBSD/Alpha without dlopen(). Shared library support is disabled" >&2;}
4c7726b1 5256 fi
adb60117 5257 ;;
30c3de1f 5258 alpha*-*-linux*)
adb60117
RH
5259 machdep="alpha_mach_dep.lo"
5260 ;;
51ac684e 5261 i?86-*-solaris2.[89] | i?86-*-solaris2.1?)
47935194 5262 cat >>confdefs.h <<\_ACEOF
adb60117 5263#define SOLARIS25_PROC_VDB_BUG_FIXED 1
47935194 5264_ACEOF
adb60117 5265
f6823cb5 5266 ;;
1530be84 5267 mipstx39-*-elf*)
66deb2be 5268 machdep="mips_ultrix_mach_dep.lo"
47935194 5269 cat >>confdefs.h <<\_ACEOF
1530be84 5270#define STACKBASE __stackbase
47935194 5271_ACEOF
1530be84 5272
47935194 5273 cat >>confdefs.h <<\_ACEOF
1530be84 5274#define DATASTART_IS_ETEXT 1
47935194 5275_ACEOF
1530be84
TT
5276
5277 ;;
276836f0
RO
5278 mips-dec-ultrix*)
5279 machdep="mips_ultrix_mach-dep.lo"
5280 ;;
30c3de1f 5281 mips-nec-sysv*|mips-unknown-sysv*)
5316699d 5282 ;;
47935194
NN
5283 mips*-*-linux*)
5284 ;;
276836f0
RO
5285 mips-*-*)
5286 machdep="mips_sgi_mach_dep.lo"
30c3de1f
JS
5287 ;;
5288 sparc-*-netbsd*)
5289 machdep="sparc_netbsd_mach_dep.lo"
d42058b1 5290 ;;
51ac684e 5291 sparc-sun-solaris2.3)
79f777fd 5292 machdep="sparc_mach_dep.lo"
47935194 5293 cat >>confdefs.h <<\_ACEOF
1530be84 5294#define SUNOS53_SHARED_LIB 1
47935194 5295_ACEOF
1530be84 5296
4c7726b1 5297 ;;
79f777fd
BM
5298 sparc-sun-solaris2.*)
5299 machdep="sparc_mach_dep.lo"
5300 ;;
5301 ia64-*-*)
47935194 5302 cat >>confdefs.h <<\_ACEOF
b27317b5 5303#define NO_EXECUTE_PERMISSION 1
47935194 5304_ACEOF
b27317b5 5305
4c7726b1 5306 machdep="mach_dep.lo ia64_save_regs_in_stack.lo"
1530be84
TT
5307 ;;
5308esac
5309if test x"$machdep" = x; then
47935194
NN
5310echo "$as_me:$LINENO: result: $machdep" >&5
5311echo "${ECHO_T}$machdep" >&6
66deb2be 5312 machdep="mach_dep.lo"
1530be84
TT
5313fi
5314addobjs="$addobjs $machdep"
5315
5316
30c3de1f
JS
5317
5318
5319
30c3de1f 5320
47935194
NN
5321
5322
5323
5324
30c3de1f
JS
5325
5326#
5327# Check for AViiON Machines running DGUX
5328#
47935194
NN
5329echo "$as_me:$LINENO: checking if host is AViiON running DGUX" >&5
5330echo $ECHO_N "checking if host is AViiON running DGUX... $ECHO_C" >&6
30c3de1f 5331ac_is_dgux=no
47935194
NN
5332ac_ext=c
5333ac_cpp='$CPP $CPPFLAGS'
5334ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5335ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5336ac_compiler_gnu=$ac_cv_c_compiler_gnu
5337echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5338echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
30c3de1f
JS
5339# On Suns, sometimes $CPP names a directory.
5340if test -n "$CPP" && test -d "$CPP"; then
5341 CPP=
5342fi
5343if test -z "$CPP"; then
47935194
NN
5344 if test "${ac_cv_prog_CPP+set}" = set; then
5345 echo $ECHO_N "(cached) $ECHO_C" >&6
30c3de1f 5346else
47935194
NN
5347 # Double quotes because CPP needs to be expanded
5348 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5349 do
5350 ac_preproc_ok=false
5351for ac_c_preproc_warn_flag in '' yes
5352do
5353 # Use a header file that comes with gcc, so configuring glibc
5354 # with a fresh cross-compiler works.
5355 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5356 # <limits.h> exists even on freestanding compilers.
30c3de1f 5357 # On the NeXT, cc -E runs the code through the compiler's parser,
47935194
NN
5358 # not just through cpp. "Syntax error" is here to catch this case.
5359 cat >conftest.$ac_ext <<_ACEOF
5360/* confdefs.h. */
5361_ACEOF
5362cat confdefs.h >>conftest.$ac_ext
5363cat >>conftest.$ac_ext <<_ACEOF
5364/* end confdefs.h. */
5365#ifdef __STDC__
5366# include <limits.h>
5367#else
5368# include <assert.h>
5369#endif
8ab705be 5370 Syntax error
47935194
NN
5371_ACEOF
5372if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5373 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5374 ac_status=$?
5375 grep -v '^ *+' conftest.er1 >conftest.err
5376 rm -f conftest.er1
5377 cat conftest.err >&5
5378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379 (exit $ac_status); } >/dev/null; then
5380 if test -s conftest.err; then
5381 ac_cpp_err=$ac_c_preproc_warn_flag
8ab705be 5382 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
47935194
NN
5383 else
5384 ac_cpp_err=
5385 fi
30c3de1f 5386else
47935194
NN
5387 ac_cpp_err=yes
5388fi
5389if test -z "$ac_cpp_err"; then
30c3de1f
JS
5390 :
5391else
47935194
NN
5392 echo "$as_me: failed program was:" >&5
5393sed 's/^/| /' conftest.$ac_ext >&5
5394
5395 # Broken: fails on valid input.
5396continue
5397fi
5398rm -f conftest.err conftest.$ac_ext
5399
5400 # OK, works on sane cases. Now check whether non-existent headers
5401 # can be detected and how.
5402 cat >conftest.$ac_ext <<_ACEOF
5403/* confdefs.h. */
5404_ACEOF
5405cat confdefs.h >>conftest.$ac_ext
5406cat >>conftest.$ac_ext <<_ACEOF
5407/* end confdefs.h. */
5408#include <ac_nonexistent.h>
5409_ACEOF
5410if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5411 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5412 ac_status=$?
5413 grep -v '^ *+' conftest.er1 >conftest.err
5414 rm -f conftest.er1
5415 cat conftest.err >&5
5416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417 (exit $ac_status); } >/dev/null; then
5418 if test -s conftest.err; then
5419 ac_cpp_err=$ac_c_preproc_warn_flag
8ab705be 5420 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
47935194
NN
5421 else
5422 ac_cpp_err=
5423 fi
30c3de1f 5424else
47935194 5425 ac_cpp_err=yes
30c3de1f 5426fi
47935194
NN
5427if test -z "$ac_cpp_err"; then
5428 # Broken: success on invalid input.
5429continue
5430else
5431 echo "$as_me: failed program was:" >&5
5432sed 's/^/| /' conftest.$ac_ext >&5
5433
5434 # Passes both tests.
5435ac_preproc_ok=:
5436break
30c3de1f 5437fi
47935194
NN
5438rm -f conftest.err conftest.$ac_ext
5439
5440done
5441# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5442rm -f conftest.err conftest.$ac_ext
5443if $ac_preproc_ok; then
5444 break
5445fi
5446
5447 done
5448 ac_cv_prog_CPP=$CPP
5449
5450fi
5451 CPP=$ac_cv_prog_CPP
5452else
5453 ac_cv_prog_CPP=$CPP
5454fi
5455echo "$as_me:$LINENO: result: $CPP" >&5
5456echo "${ECHO_T}$CPP" >&6
5457ac_preproc_ok=false
5458for ac_c_preproc_warn_flag in '' yes
5459do
5460 # Use a header file that comes with gcc, so configuring glibc
5461 # with a fresh cross-compiler works.
5462 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5463 # <limits.h> exists even on freestanding compilers.
5464 # On the NeXT, cc -E runs the code through the compiler's parser,
5465 # not just through cpp. "Syntax error" is here to catch this case.
5466 cat >conftest.$ac_ext <<_ACEOF
5467/* confdefs.h. */
5468_ACEOF
5469cat confdefs.h >>conftest.$ac_ext
5470cat >>conftest.$ac_ext <<_ACEOF
5471/* end confdefs.h. */
5472#ifdef __STDC__
5473# include <limits.h>
5474#else
5475# include <assert.h>
5476#endif
8ab705be 5477 Syntax error
47935194
NN
5478_ACEOF
5479if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5480 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5481 ac_status=$?
5482 grep -v '^ *+' conftest.er1 >conftest.err
5483 rm -f conftest.er1
5484 cat conftest.err >&5
5485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486 (exit $ac_status); } >/dev/null; then
5487 if test -s conftest.err; then
5488 ac_cpp_err=$ac_c_preproc_warn_flag
8ab705be 5489 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
47935194
NN
5490 else
5491 ac_cpp_err=
5492 fi
5493else
5494 ac_cpp_err=yes
5495fi
5496if test -z "$ac_cpp_err"; then
5497 :
5498else
5499 echo "$as_me: failed program was:" >&5
5500sed 's/^/| /' conftest.$ac_ext >&5
5501
5502 # Broken: fails on valid input.
5503continue
5504fi
5505rm -f conftest.err conftest.$ac_ext
5506
5507 # OK, works on sane cases. Now check whether non-existent headers
5508 # can be detected and how.
5509 cat >conftest.$ac_ext <<_ACEOF
5510/* confdefs.h. */
5511_ACEOF
5512cat confdefs.h >>conftest.$ac_ext
5513cat >>conftest.$ac_ext <<_ACEOF
5514/* end confdefs.h. */
5515#include <ac_nonexistent.h>
5516_ACEOF
5517if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5518 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5519 ac_status=$?
5520 grep -v '^ *+' conftest.er1 >conftest.err
5521 rm -f conftest.er1
5522 cat conftest.err >&5
5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524 (exit $ac_status); } >/dev/null; then
5525 if test -s conftest.err; then
5526 ac_cpp_err=$ac_c_preproc_warn_flag
8ab705be 5527 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
47935194
NN
5528 else
5529 ac_cpp_err=
5530 fi
5531else
5532 ac_cpp_err=yes
5533fi
5534if test -z "$ac_cpp_err"; then
5535 # Broken: success on invalid input.
5536continue
5537else
5538 echo "$as_me: failed program was:" >&5
5539sed 's/^/| /' conftest.$ac_ext >&5
5540
5541 # Passes both tests.
5542ac_preproc_ok=:
5543break
5544fi
5545rm -f conftest.err conftest.$ac_ext
5546
5547done
5548# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5549rm -f conftest.err conftest.$ac_ext
5550if $ac_preproc_ok; then
5551 :
5552else
5553 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5554See \`config.log' for more details." >&5
5555echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5556See \`config.log' for more details." >&2;}
5557 { (exit 1); exit 1; }; }
5558fi
5559
5560ac_ext=c
5561ac_cpp='$CPP $CPPFLAGS'
5562ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5563ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5564ac_compiler_gnu=$ac_cv_c_compiler_gnu
5565
5566
5567echo "$as_me:$LINENO: checking for egrep" >&5
5568echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5569if test "${ac_cv_prog_egrep+set}" = set; then
5570 echo $ECHO_N "(cached) $ECHO_C" >&6
5571else
5572 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5573 then ac_cv_prog_egrep='grep -E'
5574 else ac_cv_prog_egrep='egrep'
5575 fi
5576fi
5577echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5578echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5579 EGREP=$ac_cv_prog_egrep
5580
5581
5582echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5583echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5584if test "${ac_cv_header_stdc+set}" = set; then
5585 echo $ECHO_N "(cached) $ECHO_C" >&6
5586else
5587 cat >conftest.$ac_ext <<_ACEOF
5588/* confdefs.h. */
5589_ACEOF
5590cat confdefs.h >>conftest.$ac_ext
5591cat >>conftest.$ac_ext <<_ACEOF
5592/* end confdefs.h. */
5593#include <stdlib.h>
5594#include <stdarg.h>
5595#include <string.h>
5596#include <float.h>
5597
5598int
5599main ()
5600{
5601
5602 ;
5603 return 0;
5604}
5605_ACEOF
5606rm -f conftest.$ac_objext
5607if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8ab705be 5608 (eval $ac_compile) 2>conftest.er1
47935194 5609 ac_status=$?
8ab705be
KC
5610 grep -v '^ *+' conftest.er1 >conftest.err
5611 rm -f conftest.er1
5612 cat conftest.err >&5
47935194
NN
5613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614 (exit $ac_status); } &&
8ab705be
KC
5615 { ac_try='test -z "$ac_c_werror_flag"
5616 || test ! -s conftest.err'
5617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5618 (eval $ac_try) 2>&5
5619 ac_status=$?
5620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621 (exit $ac_status); }; } &&
5622 { ac_try='test -s conftest.$ac_objext'
47935194
NN
5623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5624 (eval $ac_try) 2>&5
5625 ac_status=$?
5626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627 (exit $ac_status); }; }; then
5628 ac_cv_header_stdc=yes
5629else
5630 echo "$as_me: failed program was:" >&5
5631sed 's/^/| /' conftest.$ac_ext >&5
5632
5633ac_cv_header_stdc=no
5634fi
8ab705be 5635rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47935194
NN
5636
5637if test $ac_cv_header_stdc = yes; then
5638 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5639 cat >conftest.$ac_ext <<_ACEOF
5640/* confdefs.h. */
5641_ACEOF
5642cat confdefs.h >>conftest.$ac_ext
5643cat >>conftest.$ac_ext <<_ACEOF
5644/* end confdefs.h. */
5645#include <string.h>
5646
5647_ACEOF
5648if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5649 $EGREP "memchr" >/dev/null 2>&1; then
5650 :
5651else
5652 ac_cv_header_stdc=no
30c3de1f
JS
5653fi
5654rm -f conftest*
47935194
NN
5655
5656fi
5657
5658if test $ac_cv_header_stdc = yes; then
5659 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5660 cat >conftest.$ac_ext <<_ACEOF
5661/* confdefs.h. */
5662_ACEOF
5663cat confdefs.h >>conftest.$ac_ext
5664cat >>conftest.$ac_ext <<_ACEOF
5665/* end confdefs.h. */
5666#include <stdlib.h>
5667
5668_ACEOF
5669if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5670 $EGREP "free" >/dev/null 2>&1; then
5671 :
5672else
5673 ac_cv_header_stdc=no
5674fi
5675rm -f conftest*
5676
30c3de1f 5677fi
47935194
NN
5678
5679if test $ac_cv_header_stdc = yes; then
5680 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5681 if test "$cross_compiling" = yes; then
5682 :
5683else
5684 cat >conftest.$ac_ext <<_ACEOF
5685/* confdefs.h. */
5686_ACEOF
5687cat confdefs.h >>conftest.$ac_ext
5688cat >>conftest.$ac_ext <<_ACEOF
5689/* end confdefs.h. */
5690#include <ctype.h>
5691#if ((' ' & 0x0FF) == 0x020)
5692# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5693# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5694#else
5695# define ISLOWER(c) \
8ab705be
KC
5696 (('a' <= (c) && (c) <= 'i') \
5697 || ('j' <= (c) && (c) <= 'r') \
5698 || ('s' <= (c) && (c) <= 'z'))
47935194
NN
5699# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5700#endif
5701
5702#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5703int
5704main ()
5705{
5706 int i;
5707 for (i = 0; i < 256; i++)
5708 if (XOR (islower (i), ISLOWER (i))
8ab705be 5709 || toupper (i) != TOUPPER (i))
47935194
NN
5710 exit(2);
5711 exit (0);
5712}
5713_ACEOF
5714rm -f conftest$ac_exeext
5715if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5716 (eval $ac_link) 2>&5
5717 ac_status=$?
5718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5721 (eval $ac_try) 2>&5
5722 ac_status=$?
5723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5724 (exit $ac_status); }; }; then
5725 :
30c3de1f 5726else
47935194
NN
5727 echo "$as_me: program exited with status $ac_status" >&5
5728echo "$as_me: failed program was:" >&5
5729sed 's/^/| /' conftest.$ac_ext >&5
5730
5731( exit $ac_status )
5732ac_cv_header_stdc=no
5733fi
5734rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5735fi
30c3de1f 5736fi
47935194
NN
5737fi
5738echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5739echo "${ECHO_T}$ac_cv_header_stdc" >&6
5740if test $ac_cv_header_stdc = yes; then
5741
5742cat >>confdefs.h <<\_ACEOF
5743#define STDC_HEADERS 1
5744_ACEOF
5745
5746fi
5747
5748# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8ab705be 5759 inttypes.h stdint.h unistd.h
47935194
NN
5760do
5761as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5762echo "$as_me:$LINENO: checking for $ac_header" >&5
5763echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5764if eval "test \"\${$as_ac_Header+set}\" = set"; then
5765 echo $ECHO_N "(cached) $ECHO_C" >&6
5766else
5767 cat >conftest.$ac_ext <<_ACEOF
5768/* confdefs.h. */
5769_ACEOF
5770cat confdefs.h >>conftest.$ac_ext
5771cat >>conftest.$ac_ext <<_ACEOF
5772/* end confdefs.h. */
5773$ac_includes_default
5774
5775#include <$ac_header>
5776_ACEOF
5777rm -f conftest.$ac_objext
5778if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8ab705be 5779 (eval $ac_compile) 2>conftest.er1
47935194 5780 ac_status=$?
8ab705be
KC
5781 grep -v '^ *+' conftest.er1 >conftest.err
5782 rm -f conftest.er1
5783 cat conftest.err >&5
47935194
NN
5784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785 (exit $ac_status); } &&
8ab705be
KC
5786 { ac_try='test -z "$ac_c_werror_flag"
5787 || test ! -s conftest.err'
5788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5789 (eval $ac_try) 2>&5
5790 ac_status=$?
5791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792 (exit $ac_status); }; } &&
5793 { ac_try='test -s conftest.$ac_objext'
47935194
NN
5794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5795 (eval $ac_try) 2>&5
5796 ac_status=$?
5797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798 (exit $ac_status); }; }; then
5799 eval "$as_ac_Header=yes"
5800else
5801 echo "$as_me: failed program was:" >&5
5802sed 's/^/| /' conftest.$ac_ext >&5
5803
5804eval "$as_ac_Header=no"
5805fi
8ab705be 5806rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47935194
NN
5807fi
5808echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5809echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5810if test `eval echo '${'$as_ac_Header'}'` = yes; then
5811 cat >>confdefs.h <<_ACEOF
5812#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5813_ACEOF
5814
5815fi
5816
5817done
5818
30c3de1f 5819
47935194
NN
5820if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
5821 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
5822echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
5823if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
5824 echo $ECHO_N "(cached) $ECHO_C" >&6
5825fi
5826echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
5827echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
30c3de1f 5828else
47935194
NN
5829 # Is the header compilable?
5830echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
5831echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
5832cat >conftest.$ac_ext <<_ACEOF
5833/* confdefs.h. */
5834_ACEOF
5835cat confdefs.h >>conftest.$ac_ext
5836cat >>conftest.$ac_ext <<_ACEOF
5837/* end confdefs.h. */
5838$ac_includes_default
30c3de1f 5839#include <sys/dg_sys_info.h>
47935194
NN
5840_ACEOF
5841rm -f conftest.$ac_objext
5842if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8ab705be 5843 (eval $ac_compile) 2>conftest.er1
47935194 5844 ac_status=$?
8ab705be
KC
5845 grep -v '^ *+' conftest.er1 >conftest.err
5846 rm -f conftest.er1
5847 cat conftest.err >&5
47935194
NN
5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849 (exit $ac_status); } &&
8ab705be
KC
5850 { ac_try='test -z "$ac_c_werror_flag"
5851 || test ! -s conftest.err'
5852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5853 (eval $ac_try) 2>&5
5854 ac_status=$?
5855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856 (exit $ac_status); }; } &&
5857 { ac_try='test -s conftest.$ac_objext'
47935194
NN
5858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5859 (eval $ac_try) 2>&5
5860 ac_status=$?
5861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); }; }; then
5863 ac_header_compiler=yes
30c3de1f 5864else
47935194
NN
5865 echo "$as_me: failed program was:" >&5
5866sed 's/^/| /' conftest.$ac_ext >&5
5867
5868ac_header_compiler=no
5869fi
8ab705be 5870rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47935194
NN
5871echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5872echo "${ECHO_T}$ac_header_compiler" >&6
5873
5874# Is the header present?
5875echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
5876echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
5877cat >conftest.$ac_ext <<_ACEOF
5878/* confdefs.h. */
5879_ACEOF
5880cat confdefs.h >>conftest.$ac_ext
5881cat >>conftest.$ac_ext <<_ACEOF
5882/* end confdefs.h. */
5883#include <sys/dg_sys_info.h>
5884_ACEOF
5885if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5886 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5887 ac_status=$?
5888 grep -v '^ *+' conftest.er1 >conftest.err
5889 rm -f conftest.er1
5890 cat conftest.err >&5
5891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892 (exit $ac_status); } >/dev/null; then
5893 if test -s conftest.err; then
5894 ac_cpp_err=$ac_c_preproc_warn_flag
8ab705be 5895 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
47935194
NN
5896 else
5897 ac_cpp_err=
5898 fi
5899else
5900 ac_cpp_err=yes
30c3de1f 5901fi
47935194
NN
5902if test -z "$ac_cpp_err"; then
5903 ac_header_preproc=yes
5904else
5905 echo "$as_me: failed program was:" >&5
5906sed 's/^/| /' conftest.$ac_ext >&5
5907
5908 ac_header_preproc=no
5909fi
5910rm -f conftest.err conftest.$ac_ext
5911echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5912echo "${ECHO_T}$ac_header_preproc" >&6
5913
5914# So? What about this header?
8ab705be
KC
5915case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5916 yes:no: )
47935194
NN
5917 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
5918echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8ab705be
KC
5919 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
5920echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
5921 ac_header_preproc=yes
47935194 5922 ;;
8ab705be 5923 no:yes:* )
47935194
NN
5924 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
5925echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
8ab705be
KC
5926 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
5927echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
5928 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
5929echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
5930 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
5931echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
47935194
NN
5932 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
5933echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
8ab705be
KC
5934 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
5935echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
47935194
NN
5936 (
5937 cat <<\_ASBOX
8ab705be
KC
5938## ------------------------------------------ ##
5939## Report this to the AC_PACKAGE_NAME lists. ##
5940## ------------------------------------------ ##
47935194
NN
5941_ASBOX
5942 ) |
5943 sed "s/^/$as_me: WARNING: /" >&2
5944 ;;
5945esac
5946echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
5947echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
5948if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
5949 echo $ECHO_N "(cached) $ECHO_C" >&6
5950else
5951 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
30c3de1f 5952fi
47935194
NN
5953echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
5954echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
5955
5956fi
5957if test $ac_cv_header_sys_dg_sys_info_h = yes; then
30c3de1f 5958 ac_is_dgux=yes;
30c3de1f
JS
5959fi
5960
5961
47935194
NN
5962
5963echo "$as_me:$LINENO: result: $ac_is_dgux" >&5
5964echo "${ECHO_T}$ac_is_dgux" >&6
30c3de1f
JS
5965 ## :GOTCHA: we do not check anything but sys/dg_sys_info.h
5966if test $ac_is_dgux = yes; then
5967 if test "$enable_full_debug" = "yes"; then
5968 CFLAGS="-g -mstandard -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
5969 CXXFLAGS="-g -mstandard -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
5970 else
5971 CFLAGS="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
5972 CXXFLAGS="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
5973 fi
47935194
NN
5974
5975
30c3de1f
JS
5976fi
5977
47935194 5978
30c3de1f
JS
5979# Check whether --with-target-subdir or --without-target-subdir was given.
5980if test "${with_target_subdir+set}" = set; then
5981 withval="$with_target_subdir"
47935194
NN
5982
5983fi;
30c3de1f
JS
5984
5985# Check whether --with-cross-host or --without-cross-host was given.
5986if test "${with_cross_host+set}" = set; then
5987 withval="$with_cross_host"
30c3de1f 5988
47935194 5989fi;
30c3de1f 5990
47935194
NN
5991echo "$as_me:$LINENO: checking whether Solaris gcc optimization fix is necessary" >&5
5992echo $ECHO_N "checking whether Solaris gcc optimization fix is necessary... $ECHO_C" >&6
1530be84 5993case "$host" in
30c3de1f 5994 sparc-sun-solaris2*|*aix*)
1530be84 5995 if test "$GCC" = yes; then
47935194
NN
5996 echo "$as_me:$LINENO: result: yes" >&5
5997echo "${ECHO_T}yes" >&6
1530be84
TT
5998 new_CFLAGS=
5999 for i in $CFLAGS; do
6000 case "$i" in
6001 -O*)
6002 ;;
6003 *)
6004 new_CFLAGS="$new_CFLAGS $i"
6005 ;;
6006 esac
6007 done
6008 CFLAGS="$new_CFLAGS"
30c3de1f 6009 else
47935194
NN
6010 echo "$as_me:$LINENO: result: no" >&5
6011echo "${ECHO_T}no" >&6
1530be84
TT
6012 fi
6013 ;;
47935194
NN
6014 *) echo "$as_me:$LINENO: result: no" >&5
6015echo "${ECHO_T}no" >&6 ;;
1530be84
TT
6016esac
6017
6018MY_CFLAGS="$CFLAGS"
6019
6020
47935194 6021cat >>confdefs.h <<\_ACEOF
1530be84 6022#define SILENT 1
47935194 6023_ACEOF
1530be84 6024
47935194 6025cat >>confdefs.h <<\_ACEOF
1530be84 6026#define NO_SIGNALS 1
47935194 6027_ACEOF
1530be84 6028
47935194 6029cat >>confdefs.h <<\_ACEOF
5a2586cf 6030#define ALL_INTERIOR_POINTERS 1
47935194 6031_ACEOF
5a2586cf
TT
6032
6033
47935194 6034cat >>confdefs.h <<\_ACEOF
0476f098 6035#define JAVA_FINALIZATION 1
47935194 6036_ACEOF
1530be84 6037
47935194 6038cat >>confdefs.h <<\_ACEOF
0476f098 6039#define GC_GCJ_SUPPORT 1
47935194 6040_ACEOF
1530be84 6041
47935194 6042cat >>confdefs.h <<\_ACEOF
5a2586cf 6043#define ATOMIC_UNCOLLECTABLE 1
47935194 6044_ACEOF
5a2586cf 6045
1530be84 6046
1530be84 6047if test -n "${with_cross_host}"; then
47935194 6048 cat >>confdefs.h <<\_ACEOF
1530be84 6049#define NO_SIGSET 1
47935194 6050_ACEOF
0476f098 6051
47935194 6052 cat >>confdefs.h <<\_ACEOF
0476f098 6053#define NO_DEBUGGING 1
47935194 6054_ACEOF
1530be84
TT
6055
6056fi
6057
5a2586cf
TT
6058# Check whether --enable-full-debug or --disable-full-debug was given.
6059if test "${enable_full_debug+set}" = set; then
6060 enableval="$enable_full_debug"
6061 if test "$enable_full_debug" = "yes"; then
47935194
NN
6062 { echo "$as_me:$LINENO: WARNING: \"Must define GC_DEBUG and use debug alloc. in clients.\"" >&5
6063echo "$as_me: WARNING: \"Must define GC_DEBUG and use debug alloc. in clients.\"" >&2;}
6064 cat >>confdefs.h <<\_ACEOF
5a2586cf 6065#define KEEP_BACK_PTRS 1
47935194 6066_ACEOF
5a2586cf 6067
47935194 6068 cat >>confdefs.h <<\_ACEOF
5a2586cf 6069#define DBG_HDRS_ALL 1
47935194 6070_ACEOF
5a2586cf
TT
6071
6072 case $host in
79f777fd 6073 ia64-*-linux* )
47935194 6074 cat >>confdefs.h <<\_ACEOF
79f777fd 6075#define MAKE_BACK_GRAPH 1
47935194 6076_ACEOF
79f777fd
BM
6077
6078 ;;
48528b67 6079 x86-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* )
47935194 6080 cat >>confdefs.h <<\_ACEOF
79f777fd 6081#define MAKE_BACK_GRAPH 1
47935194 6082_ACEOF
79f777fd 6083
47935194
NN
6084 { echo "$as_me:$LINENO: WARNING: \"Client must not use -fomit-frame-pointer.\"" >&5
6085echo "$as_me: WARNING: \"Client must not use -fomit-frame-pointer.\"" >&2;}
6086 cat >>confdefs.h <<\_ACEOF
5a2586cf 6087#define SAVE_CALL_COUNT 8
47935194 6088_ACEOF
30c3de1f
JS
6089
6090 ;;
6091 i345686-*-dgux*)
47935194 6092 cat >>confdefs.h <<\_ACEOF
30c3de1f 6093#define MAKE_BACK_GRAPH 1
47935194 6094_ACEOF
5a2586cf
TT
6095
6096 ;;
47935194 6097 esac
5a2586cf 6098 fi
47935194 6099fi;
5a2586cf 6100
13b6e5b4
AO
6101if test -n "$with_cross_host" &&
6102 test x"$with_cross_host" != x"no"; then
d38d6003 6103 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
13b6e5b4 6104 toolexeclibdir='$(toolexecdir)/lib'
b48ed568 6105else
d38d6003 6106 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
13b6e5b4 6107 toolexeclibdir='$(libdir)'
b48ed568 6108fi
ff8b9ca8
AS
6109multi_os_directory=`$CC -print-multi-os-directory`
6110case $multi_os_directory in
6111 .) ;; # Avoid trailing /.
6112 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
6113esac
13b6e5b4
AO
6114
6115
b48ed568 6116
1530be84
TT
6117if test "${multilib}" = "yes"; then
6118 multilib_arg="--enable-multilib"
6119else
6120 multilib_arg=
6121fi
6122
47935194
NN
6123 ac_config_files="$ac_config_files Makefile include/Makefile"
6124 ac_config_commands="$ac_config_commands default"
6125cat >confcache <<\_ACEOF
1530be84
TT
6126# This file is a shell script that caches the results of configure
6127# tests run on this system so they can be shared between configure
47935194
NN
6128# scripts and configure runs, see configure's option --config-cache.
6129# It is not useful on other systems. If it contains results you don't
6130# want to keep, you may remove or edit it.
1530be84 6131#
47935194
NN
6132# config.status only pays attention to the cache file if you give it
6133# the --recheck option to rerun configure.
1530be84 6134#
47935194
NN
6135# `ac_cv_env_foo' variables (set or unset) will be overridden when
6136# loading this file, other *unset* `ac_cv_foo' will be assigned the
6137# following values.
6138
6139_ACEOF
6140
1530be84
TT
6141# The following way of writing the cache mishandles newlines in values,
6142# but we know of no workaround that is simple, portable, and efficient.
6143# So, don't put newlines in cache variables' values.
6144# Ultrix sh set writes to stderr and can't be redirected directly,
6145# and sets the high bit in the cache file unless we assign to the vars.
47935194
NN
6146{
6147 (set) 2>&1 |
6148 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6149 *ac_space=\ *)
6150 # `set' does not quote correctly, so add quotes (double-quote
6151 # substitution turns \\\\ into \\, and sed turns \\ into \).
6152 sed -n \
8ab705be
KC
6153 "s/'/'\\\\''/g;
6154 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
47935194
NN
6155 ;;
6156 *)
6157 # `set' quotes correctly as required by POSIX, so do not add quotes.
6158 sed -n \
8ab705be 6159 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
47935194
NN
6160 ;;
6161 esac;
6162} |
6163 sed '
6164 t clear
6165 : clear
6166 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6167 t end
6168 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6169 : end' >>confcache
6170if diff $cache_file confcache >/dev/null 2>&1; then :; else
1530be84 6171 if test -w $cache_file; then
47935194
NN
6172 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6173 cat confcache >$cache_file
1530be84
TT
6174 else
6175 echo "not updating unwritable cache $cache_file"
6176 fi
6177fi
6178rm -f confcache
6179
1530be84
TT
6180test "x$prefix" = xNONE && prefix=$ac_default_prefix
6181# Let make expand exec_prefix.
6182test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6183
47935194
NN
6184# VPATH may cause trouble with some makes, so we remove $(srcdir),
6185# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6186# trailing colons and then remove the whole line if VPATH becomes empty
6187# (actually we leave an empty line to preserve line numbers).
1530be84 6188if test "x$srcdir" = x.; then
8ab705be 6189 ac_vpsub='/^[ ]*VPATH[ ]*=/{
47935194
NN
6190s/:*\$(srcdir):*/:/;
6191s/:*\${srcdir}:*/:/;
6192s/:*@srcdir@:*/:/;
8ab705be 6193s/^\([^=]*=[ ]*\):*/\1/;
47935194 6194s/:*$//;
8ab705be 6195s/^[^=]*=[ ]*$//;
47935194 6196}'
1530be84
TT
6197fi
6198
1530be84
TT
6199# Transform confdefs.h into DEFS.
6200# Protect against shell expansion while executing Makefile rules.
6201# Protect against Makefile macro expansion.
47935194
NN
6202#
6203# If the first sed substitution is executed (which looks for macros that
6204# take arguments), then we branch to the quote section. Otherwise,
6205# look for a macro that doesn't take arguments.
6206cat >confdef2opt.sed <<\_ACEOF
6207t clear
6208: clear
8ab705be 6209s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
47935194 6210t quote
8ab705be 6211s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
47935194
NN
6212t quote
6213d
6214: quote
8ab705be 6215s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
47935194
NN
6216s,\[,\\&,g
6217s,\],\\&,g
6218s,\$,$$,g
6219p
6220_ACEOF
6221# We use echo to avoid assuming a particular line-breaking character.
6222# The extra dot is to prevent the shell from consuming trailing
6223# line-breaks from the sub-command output. A line-break within
6224# single-quotes doesn't work because, if this script is created in a
6225# platform that uses two characters for line-breaks (e.g., DOS), tr
6226# would break.
6227ac_LF_and_DOT=`echo; echo .`
6228DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
6229rm -f confdef2opt.sed
6230
6231
6232ac_libobjs=
6233ac_ltlibobjs=
6234for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6235 # 1. Remove the extension, and $U if already installed.
6236 ac_i=`echo "$ac_i" |
8ab705be 6237 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
47935194
NN
6238 # 2. Add them.
6239 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6240 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6241done
6242LIBOBJS=$ac_libobjs
1530be84 6243
47935194 6244LTLIBOBJS=$ac_ltlibobjs
1530be84 6245
1530be84 6246
47935194
NN
6247
6248: ${CONFIG_STATUS=./config.status}
6249ac_clean_files_save=$ac_clean_files
6250ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6251{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6252echo "$as_me: creating $CONFIG_STATUS" >&6;}
6253cat >$CONFIG_STATUS <<_ACEOF
6254#! $SHELL
6255# Generated by $as_me.
1530be84 6256# Run this file to recreate the current configuration.
1530be84 6257# Compiler output produced by configure, useful for debugging
47935194
NN
6258# configure, is in config.log if it exists.
6259
6260debug=false
6261ac_cs_recheck=false
6262ac_cs_silent=false
6263SHELL=\${CONFIG_SHELL-$SHELL}
6264_ACEOF
6265
6266cat >>$CONFIG_STATUS <<\_ACEOF
6267## --------------------- ##
6268## M4sh Initialization. ##
6269## --------------------- ##
6270
6271# Be Bourne compatible
6272if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6273 emulate sh
6274 NULLCMD=:
6275 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6276 # is contrary to our usage. Disable this feature.
6277 alias -g '${1+"$@"}'='"$@"'
6278elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6279 set -o posix
6280fi
8ab705be 6281DUALCASE=1; export DUALCASE # for MKS sh
47935194
NN
6282
6283# Support unset when possible.
8ab705be 6284if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
47935194
NN
6285 as_unset=unset
6286else
6287 as_unset=false
6288fi
1530be84 6289
47935194
NN
6290
6291# Work around bugs in pre-3.0 UWIN ksh.
6292$as_unset ENV MAIL MAILPATH
6293PS1='$ '
6294PS2='> '
6295PS4='+ '
6296
6297# NLS nuisances.
6298for as_var in \
6299 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6300 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6301 LC_TELEPHONE LC_TIME
1530be84 6302do
8ab705be 6303 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47935194
NN
6304 eval $as_var=C; export $as_var
6305 else
6306 $as_unset $as_var
6307 fi
1530be84
TT
6308done
6309
47935194
NN
6310# Required to use basename.
6311if expr a : '\(a\)' >/dev/null 2>&1; then
6312 as_expr=expr
6313else
6314 as_expr=false
6315fi
1530be84 6316
47935194
NN
6317if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6318 as_basename=basename
6319else
6320 as_basename=false
6321fi
6322
6323
6324# Name of the executable.
6325as_me=`$as_basename "$0" ||
6326$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6327 X"$0" : 'X\(//\)$' \| \
6328 X"$0" : 'X\(/\)$' \| \
6329 . : '\(.\)' 2>/dev/null ||
6330echo X/"$0" |
6331 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6332 /^X\/\(\/\/\)$/{ s//\1/; q; }
6333 /^X\/\(\/\).*/{ s//\1/; q; }
6334 s/.*/./; q'`
6335
6336
6337# PATH needs CR, and LINENO needs CR and PATH.
6338# Avoid depending upon Character Ranges.
6339as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6340as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6341as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6342as_cr_digits='0123456789'
6343as_cr_alnum=$as_cr_Letters$as_cr_digits
6344
6345# The user is always right.
6346if test "${PATH_SEPARATOR+set}" != set; then
6347 echo "#! /bin/sh" >conf$$.sh
6348 echo "exit 0" >>conf$$.sh
6349 chmod +x conf$$.sh
6350 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6351 PATH_SEPARATOR=';'
6352 else
6353 PATH_SEPARATOR=:
6354 fi
6355 rm -f conf$$.sh
6356fi
1530be84 6357
1530be84 6358
47935194
NN
6359 as_lineno_1=$LINENO
6360 as_lineno_2=$LINENO
6361 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6362 test "x$as_lineno_1" != "x$as_lineno_2" &&
6363 test "x$as_lineno_3" = "x$as_lineno_2" || {
6364 # Find who we are. Look in the path if we contain no path at all
6365 # relative or not.
6366 case $0 in
6367 *[\\/]* ) as_myself=$0 ;;
6368 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6369for as_dir in $PATH
6370do
6371 IFS=$as_save_IFS
6372 test -z "$as_dir" && as_dir=.
6373 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6374done
1530be84 6375
47935194
NN
6376 ;;
6377 esac
6378 # We did not find ourselves, most probably we were run as `sh COMMAND'
6379 # in which case we are not to be found in the path.
6380 if test "x$as_myself" = x; then
6381 as_myself=$0
1530be84 6382 fi
47935194
NN
6383 if test ! -f "$as_myself"; then
6384 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6385echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6386 { (exit 1); exit 1; }; }
1530be84 6387 fi
47935194
NN
6388 case $CONFIG_SHELL in
6389 '')
6390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6391for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6392do
6393 IFS=$as_save_IFS
6394 test -z "$as_dir" && as_dir=.
6395 for as_base in sh bash ksh sh5; do
6396 case $as_dir in
6397 /*)
6398 if ("$as_dir/$as_base" -c '
6399 as_lineno_1=$LINENO
6400 as_lineno_2=$LINENO
6401 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6402 test "x$as_lineno_1" != "x$as_lineno_2" &&
6403 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6404 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6405 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6406 CONFIG_SHELL=$as_dir/$as_base
6407 export CONFIG_SHELL
6408 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6409 fi;;
6410 esac
6411 done
1530be84 6412done
47935194 6413;;
1530be84
TT
6414 esac
6415
47935194
NN
6416 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6417 # uniformly replaced by the line number. The first 'sed' inserts a
6418 # line-number line before each line; the second 'sed' does the real
6419 # work. The second script uses 'N' to pair each line-number line
6420 # with the numbered line, and appends trailing '-' during
6421 # substitution so that $LINENO is not a special case at line end.
6422 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6423 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6424 sed '=' <$as_myself |
6425 sed '
6426 N
6427 s,$,-,
6428 : loop
6429 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6430 t loop
6431 s,-$,,
6432 s,^['$as_cr_digits']*\n,,
6433 ' >$as_me.lineno &&
6434 chmod +x $as_me.lineno ||
6435 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6436echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6437 { (exit 1); exit 1; }; }
6438
6439 # Don't try to exec as it changes $[0], causing all sort of problems
6440 # (the dirname of $[0] is not the place where we might find the
6441 # original and so on. Autoconf is especially sensible to this).
6442 . ./$as_me.lineno
6443 # Exit status is that of the last command.
6444 exit
6445}
6446
6447
6448case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6449 *c*,-n*) ECHO_N= ECHO_C='
6450' ECHO_T=' ' ;;
6451 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6452 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6453esac
6454
6455if expr a : '\(a\)' >/dev/null 2>&1; then
6456 as_expr=expr
6457else
6458 as_expr=false
6459fi
1530be84 6460
47935194
NN
6461rm -f conf$$ conf$$.exe conf$$.file
6462echo >conf$$.file
6463if ln -s conf$$.file conf$$ 2>/dev/null; then
6464 # We could just check for DJGPP; but this test a) works b) is more generic
6465 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6466 if test -f conf$$.exe; then
6467 # Don't use ln at all; we don't have any links
6468 as_ln_s='cp -p'
1530be84 6469 else
47935194 6470 as_ln_s='ln -s'
1530be84 6471 fi
47935194
NN
6472elif ln conf$$.file conf$$ 2>/dev/null; then
6473 as_ln_s=ln
6474else
6475 as_ln_s='cp -p'
6476fi
6477rm -f conf$$ conf$$.exe conf$$.file
1530be84 6478
47935194
NN
6479if mkdir -p . 2>/dev/null; then
6480 as_mkdir_p=:
6481else
8ab705be 6482 test -d ./-p && rmdir ./-p
47935194
NN
6483 as_mkdir_p=false
6484fi
6485
6486as_executable_p="test -f"
6487
6488# Sed expression to map a string onto a valid CPP name.
8ab705be 6489as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
47935194
NN
6490
6491# Sed expression to map a string onto a valid variable name.
8ab705be 6492as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
47935194
NN
6493
6494
6495# IFS
6496# We need space, tab and new line, in precisely that order.
6497as_nl='
6498'
6499IFS=" $as_nl"
6500
6501# CDPATH.
6502$as_unset CDPATH
6503
6504exec 6>&1
6505
6506# Open the log real soon, to keep \$[0] and so on meaningful, and to
6507# report actual input values of CONFIG_FILES etc. instead of their
6508# values after options handling. Logging --version etc. is OK.
6509exec 5>>config.log
6510{
6511 echo
6512 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6513## Running $as_me. ##
6514_ASBOX
6515} >&5
6516cat >&5 <<_CSEOF
6517
6518This file was extended by $as_me, which was
8ab705be 6519generated by GNU Autoconf 2.59. Invocation command line was
47935194
NN
6520
6521 CONFIG_FILES = $CONFIG_FILES
6522 CONFIG_HEADERS = $CONFIG_HEADERS
6523 CONFIG_LINKS = $CONFIG_LINKS
6524 CONFIG_COMMANDS = $CONFIG_COMMANDS
6525 $ $0 $@
6526
6527_CSEOF
6528echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6529echo >&5
6530_ACEOF
1530be84 6531
47935194
NN
6532# Files that config.status was made for.
6533if test -n "$ac_config_files"; then
6534 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6535fi
6536
6537if test -n "$ac_config_headers"; then
6538 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6539fi
6540
6541if test -n "$ac_config_links"; then
6542 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6543fi
6544
6545if test -n "$ac_config_commands"; then
6546 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6547fi
6548
6549cat >>$CONFIG_STATUS <<\_ACEOF
6550
6551ac_cs_usage="\
6552\`$as_me' instantiates files from templates according to the
6553current configuration.
6554
6555Usage: $0 [OPTIONS] [FILE]...
6556
6557 -h, --help print this help, then exit
6558 -V, --version print version number, then exit
6559 -q, --quiet do not print progress messages
6560 -d, --debug don't remove temporary files
6561 --recheck update $as_me by reconfiguring in the same conditions
6562 --file=FILE[:TEMPLATE]
8ab705be 6563 instantiate the configuration file FILE
47935194
NN
6564
6565Configuration files:
6566$config_files
6567
6568Configuration commands:
6569$config_commands
6570
6571Report bugs to <bug-autoconf@gnu.org>."
6572_ACEOF
6573
6574cat >>$CONFIG_STATUS <<_ACEOF
6575ac_cs_version="\\
6576config.status
8ab705be 6577configured by $0, generated by GNU Autoconf 2.59,
47935194
NN
6578 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6579
8ab705be 6580Copyright (C) 2003 Free Software Foundation, Inc.
47935194
NN
6581This config.status script is free software; the Free Software Foundation
6582gives unlimited permission to copy, distribute and modify it."
6583srcdir=$srcdir
6584INSTALL="$INSTALL"
6585_ACEOF
6586
6587cat >>$CONFIG_STATUS <<\_ACEOF
6588# If no file are specified by the user, then we need to provide default
6589# value. By we need to know if files were specified by the user.
6590ac_need_defaults=:
6591while test $# != 0
6592do
6593 case $1 in
6594 --*=*)
6595 ac_option=`expr "x$1" : 'x\([^=]*\)='`
6596 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6597 ac_shift=:
6598 ;;
6599 -*)
6600 ac_option=$1
6601 ac_optarg=$2
6602 ac_shift=shift
6603 ;;
6604 *) # This is not an option, so the user has probably given explicit
6605 # arguments.
6606 ac_option=$1
6607 ac_need_defaults=false;;
1530be84
TT
6608 esac
6609
47935194
NN
6610 case $ac_option in
6611 # Handling of the options.
6612_ACEOF
6613cat >>$CONFIG_STATUS <<\_ACEOF
6614 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6615 ac_cs_recheck=: ;;
6616 --version | --vers* | -V )
6617 echo "$ac_cs_version"; exit 0 ;;
6618 --he | --h)
6619 # Conflict between --help and --header
6620 { { echo "$as_me:$LINENO: error: ambiguous option: $1
6621Try \`$0 --help' for more information." >&5
6622echo "$as_me: error: ambiguous option: $1
6623Try \`$0 --help' for more information." >&2;}
6624 { (exit 1); exit 1; }; };;
6625 --help | --hel | -h )
6626 echo "$ac_cs_usage"; exit 0 ;;
6627 --debug | --d* | -d )
6628 debug=: ;;
6629 --file | --fil | --fi | --f )
6630 $ac_shift
6631 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6632 ac_need_defaults=false;;
6633 --header | --heade | --head | --hea )
6634 $ac_shift
6635 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6636 ac_need_defaults=false;;
6637 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6638 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6639 ac_cs_silent=: ;;
6640
6641 # This is an error.
6642 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6643Try \`$0 --help' for more information." >&5
6644echo "$as_me: error: unrecognized option: $1
6645Try \`$0 --help' for more information." >&2;}
6646 { (exit 1); exit 1; }; } ;;
6647
6648 *) ac_config_targets="$ac_config_targets $1" ;;
6649
1530be84 6650 esac
47935194
NN
6651 shift
6652done
1530be84 6653
47935194
NN
6654ac_configure_extra_args=
6655
6656if $ac_cs_silent; then
6657 exec 6>/dev/null
6658 ac_configure_extra_args="$ac_configure_extra_args --silent"
6659fi
6660
6661_ACEOF
6662cat >>$CONFIG_STATUS <<_ACEOF
6663if \$ac_cs_recheck; then
6664 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6665 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6666fi
6667
6668_ACEOF
6669
6670cat >>$CONFIG_STATUS <<_ACEOF
6671#
6672# INIT-COMMANDS section.
6673#
1530be84 6674
1530be84
TT
6675srcdir=${srcdir}
6676host=${host}
6677target=${target}
6678with_multisubdir=${with_multisubdir}
6679ac_configure_args="${multilib_arg} ${ac_configure_args}"
6680CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
5a2586cf 6681gc_basedir=${gc_basedir}
1530be84 6682CC="${CC}"
3343fdd2 6683ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
1530be84 6684DEFS="$DEFS"
7160c99d 6685INCLUDES="$INCLUDES"
1530be84 6686
1530be84 6687
47935194
NN
6688_ACEOF
6689
6690
6691
6692cat >>$CONFIG_STATUS <<\_ACEOF
6693for ac_config_target in $ac_config_targets
6694do
6695 case "$ac_config_target" in
6696 # Handling of arguments.
6697 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6698 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
6699 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
6700 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6701echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6702 { (exit 1); exit 1; }; };;
6703 esac
6704done
6705
6706# If the user did not use the arguments to specify the items to instantiate,
6707# then the envvar interface is used. Set only those that are not.
6708# We use the long form for the default assignment because of an extremely
6709# bizarre bug on SunOS 4.1.3.
6710if $ac_need_defaults; then
6711 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6712 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6713fi
6714
6715# Have a temporary directory for convenience. Make it in the build tree
6716# simply because there is no reason to put it here, and in addition,
6717# creating and moving files from /tmp can sometimes cause problems.
6718# Create a temporary directory, and hook for its removal unless debugging.
6719$debug ||
6720{
6721 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6722 trap '{ (exit 1); exit 1; }' 1 2 13 15
6723}
6724
6725# Create a (secure) tmp directory for tmp files.
6726
6727{
6728 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6729 test -n "$tmp" && test -d "$tmp"
6730} ||
6731{
6732 tmp=./confstat$$-$RANDOM
6733 (umask 077 && mkdir $tmp)
6734} ||
6735{
6736 echo "$me: cannot create a temporary directory in ." >&2
6737 { (exit 1); exit 1; }
6738}
6739
6740_ACEOF
6741
6742cat >>$CONFIG_STATUS <<_ACEOF
6743
6744#
6745# CONFIG_FILES section.
6746#
6747
6748# No need to generate the scripts if there are no CONFIG_FILES.
6749# This happens for instance when ./config.status config.h
6750if test -n "\$CONFIG_FILES"; then
6751 # Protect against being on the right side of a sed subst in config.status.
6752 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6753 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6754s,@SHELL@,$SHELL,;t t
6755s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6756s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6757s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6758s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6759s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6760s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6761s,@exec_prefix@,$exec_prefix,;t t
6762s,@prefix@,$prefix,;t t
6763s,@program_transform_name@,$program_transform_name,;t t
6764s,@bindir@,$bindir,;t t
6765s,@sbindir@,$sbindir,;t t
6766s,@libexecdir@,$libexecdir,;t t
6767s,@datadir@,$datadir,;t t
6768s,@sysconfdir@,$sysconfdir,;t t
6769s,@sharedstatedir@,$sharedstatedir,;t t
6770s,@localstatedir@,$localstatedir,;t t
6771s,@libdir@,$libdir,;t t
6772s,@includedir@,$includedir,;t t
6773s,@oldincludedir@,$oldincludedir,;t t
6774s,@infodir@,$infodir,;t t
6775s,@mandir@,$mandir,;t t
6776s,@build_alias@,$build_alias,;t t
6777s,@host_alias@,$host_alias,;t t
6778s,@target_alias@,$target_alias,;t t
6779s,@DEFS@,$DEFS,;t t
6780s,@ECHO_C@,$ECHO_C,;t t
6781s,@ECHO_N@,$ECHO_N,;t t
6782s,@ECHO_T@,$ECHO_T,;t t
6783s,@LIBS@,$LIBS,;t t
6784s,@gc_basedir@,$gc_basedir,;t t
6785s,@build@,$build,;t t
6786s,@build_cpu@,$build_cpu,;t t
6787s,@build_vendor@,$build_vendor,;t t
6788s,@build_os@,$build_os,;t t
6789s,@host@,$host,;t t
6790s,@host_cpu@,$host_cpu,;t t
6791s,@host_vendor@,$host_vendor,;t t
6792s,@host_os@,$host_os,;t t
6793s,@target@,$target,;t t
6794s,@target_cpu@,$target_cpu,;t t
6795s,@target_vendor@,$target_vendor,;t t
6796s,@target_os@,$target_os,;t t
6797s,@mkinstalldirs@,$mkinstalldirs,;t t
6798s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6799s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6800s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6801s,@PACKAGE@,$PACKAGE,;t t
6802s,@VERSION@,$VERSION,;t t
6803s,@ACLOCAL@,$ACLOCAL,;t t
6804s,@AUTOCONF@,$AUTOCONF,;t t
6805s,@AUTOMAKE@,$AUTOMAKE,;t t
6806s,@AUTOHEADER@,$AUTOHEADER,;t t
6807s,@MAKEINFO@,$MAKEINFO,;t t
6808s,@SET_MAKE@,$SET_MAKE,;t t
6809s,@CC@,$CC,;t t
47935194
NN
6810s,@ac_ct_CC@,$ac_ct_CC,;t t
6811s,@EXEEXT@,$EXEEXT,;t t
6812s,@OBJEXT@,$OBJEXT,;t t
6813s,@CXX@,$CXX,;t t
47935194 6814s,@ac_ct_CXX@,$ac_ct_CXX,;t t
e22db4bf
NN
6815s,@CFLAGS@,$CFLAGS,;t t
6816s,@CXXFLAGS@,$CXXFLAGS,;t t
7664e6f8
NN
6817s,@CCAS@,$CCAS,;t t
6818s,@CCASFLAGS@,$CCASFLAGS,;t t
47935194
NN
6819s,@AS@,$AS,;t t
6820s,@ac_ct_AS@,$ac_ct_AS,;t t
6821s,@AR@,$AR,;t t
6822s,@ac_ct_AR@,$ac_ct_AR,;t t
6823s,@RANLIB@,$RANLIB,;t t
6824s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
6825s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
6826s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
6827s,@MAINT@,$MAINT,;t t
6828s,@GC_CFLAGS@,$GC_CFLAGS,;t t
6829s,@LN_S@,$LN_S,;t t
6830s,@STRIP@,$STRIP,;t t
6831s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
6832s,@LIBTOOL@,$LIBTOOL,;t t
6833s,@CXXCPP@,$CXXCPP,;t t
e22db4bf 6834s,@CPPFLAGS@,$CPPFLAGS,;t t
47935194
NN
6835s,@THREADLIBS@,$THREADLIBS,;t t
6836s,@POWERPC_DARWIN_TRUE@,$POWERPC_DARWIN_TRUE,;t t
6837s,@POWERPC_DARWIN_FALSE@,$POWERPC_DARWIN_FALSE,;t t
6838s,@EXTRA_TEST_LIBS@,$EXTRA_TEST_LIBS,;t t
6839s,@target_all@,$target_all,;t t
6840s,@target_noncanonical@,$target_noncanonical,;t t
6841s,@CPLUSPLUS_TRUE@,$CPLUSPLUS_TRUE,;t t
6842s,@CPLUSPLUS_FALSE@,$CPLUSPLUS_FALSE,;t t
6843s,@INCLUDES@,$INCLUDES,;t t
6844s,@CXXINCLUDES@,$CXXINCLUDES,;t t
6845s,@addobjs@,$addobjs,;t t
6846s,@addincludes@,$addincludes,;t t
6847s,@addlibs@,$addlibs,;t t
6848s,@addtests@,$addtests,;t t
6849s,@CPP@,$CPP,;t t
6850s,@EGREP@,$EGREP,;t t
6851s,@MY_CFLAGS@,$MY_CFLAGS,;t t
6852s,@toolexecdir@,$toolexecdir,;t t
6853s,@toolexeclibdir@,$toolexeclibdir,;t t
6854s,@LIBOBJS@,$LIBOBJS,;t t
6855s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6856CEOF
6857
6858_ACEOF
6859
6860 cat >>$CONFIG_STATUS <<\_ACEOF
6861 # Split the substitutions into bite-sized pieces for seds with
6862 # small command number limits, like on Digital OSF/1 and HP-UX.
6863 ac_max_sed_lines=48
6864 ac_sed_frag=1 # Number of current file.
6865 ac_beg=1 # First line for current file.
6866 ac_end=$ac_max_sed_lines # Line after last line for current file.
6867 ac_more_lines=:
6868 ac_sed_cmds=
6869 while $ac_more_lines; do
6870 if test $ac_beg -gt 1; then
6871 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6872 else
6873 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6874 fi
6875 if test ! -s $tmp/subs.frag; then
6876 ac_more_lines=false
6877 else
6878 # The purpose of the label and of the branching condition is to
6879 # speed up the sed processing (if there are no `@' at all, there
6880 # is no need to browse any of the substitutions).
6881 # These are the two extra sed commands mentioned above.
6882 (echo ':t
6883 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6884 if test -z "$ac_sed_cmds"; then
8ab705be 6885 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
47935194 6886 else
8ab705be 6887 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
47935194
NN
6888 fi
6889 ac_sed_frag=`expr $ac_sed_frag + 1`
6890 ac_beg=$ac_end
6891 ac_end=`expr $ac_end + $ac_max_sed_lines`
6892 fi
6893 done
6894 if test -z "$ac_sed_cmds"; then
6895 ac_sed_cmds=cat
6896 fi
6897fi # test -n "$CONFIG_FILES"
6898
6899_ACEOF
6900cat >>$CONFIG_STATUS <<\_ACEOF
6901for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6902 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6903 case $ac_file in
6904 - | *:- | *:-:* ) # input from stdin
8ab705be
KC
6905 cat >$tmp/stdin
6906 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6907 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
47935194 6908 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8ab705be 6909 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
47935194
NN
6910 * ) ac_file_in=$ac_file.in ;;
6911 esac
6912
6913 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6914 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6915$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8ab705be
KC
6916 X"$ac_file" : 'X\(//\)[^/]' \| \
6917 X"$ac_file" : 'X\(//\)$' \| \
6918 X"$ac_file" : 'X\(/\)' \| \
6919 . : '\(.\)' 2>/dev/null ||
47935194
NN
6920echo X"$ac_file" |
6921 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6922 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6923 /^X\(\/\/\)$/{ s//\1/; q; }
6924 /^X\(\/\).*/{ s//\1/; q; }
6925 s/.*/./; q'`
6926 { if $as_mkdir_p; then
6927 mkdir -p "$ac_dir"
6928 else
6929 as_dir="$ac_dir"
6930 as_dirs=
6931 while test ! -d "$as_dir"; do
6932 as_dirs="$as_dir $as_dirs"
6933 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6934$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8ab705be
KC
6935 X"$as_dir" : 'X\(//\)[^/]' \| \
6936 X"$as_dir" : 'X\(//\)$' \| \
6937 X"$as_dir" : 'X\(/\)' \| \
6938 . : '\(.\)' 2>/dev/null ||
47935194
NN
6939echo X"$as_dir" |
6940 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6941 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6942 /^X\(\/\/\)$/{ s//\1/; q; }
6943 /^X\(\/\).*/{ s//\1/; q; }
6944 s/.*/./; q'`
6945 done
6946 test ! -n "$as_dirs" || mkdir $as_dirs
6947 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6948echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6949 { (exit 1); exit 1; }; }; }
6950
6951 ac_builddir=.
6952
6953if test "$ac_dir" != .; then
6954 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6955 # A "../" for each directory in $ac_dir_suffix.
6956 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6957else
6958 ac_dir_suffix= ac_top_builddir=
6959fi
6960
6961case $srcdir in
6962 .) # No --srcdir option. We are building in place.
6963 ac_srcdir=.
6964 if test -z "$ac_top_builddir"; then
6965 ac_top_srcdir=.
6966 else
6967 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6968 fi ;;
6969 [\\/]* | ?:[\\/]* ) # Absolute path.
6970 ac_srcdir=$srcdir$ac_dir_suffix;
6971 ac_top_srcdir=$srcdir ;;
6972 *) # Relative path.
6973 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6974 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6975esac
8ab705be
KC
6976
6977# Do not use `cd foo && pwd` to compute absolute paths, because
6978# the directories may not exist.
6979case `pwd` in
6980.) ac_abs_builddir="$ac_dir";;
6981*)
6982 case "$ac_dir" in
6983 .) ac_abs_builddir=`pwd`;;
6984 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6985 *) ac_abs_builddir=`pwd`/"$ac_dir";;
6986 esac;;
6987esac
6988case $ac_abs_builddir in
6989.) ac_abs_top_builddir=${ac_top_builddir}.;;
6990*)
6991 case ${ac_top_builddir}. in
6992 .) ac_abs_top_builddir=$ac_abs_builddir;;
6993 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6994 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6995 esac;;
6996esac
6997case $ac_abs_builddir in
6998.) ac_abs_srcdir=$ac_srcdir;;
6999*)
7000 case $ac_srcdir in
7001 .) ac_abs_srcdir=$ac_abs_builddir;;
7002 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7003 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7004 esac;;
7005esac
7006case $ac_abs_builddir in
7007.) ac_abs_top_srcdir=$ac_top_srcdir;;
7008*)
7009 case $ac_top_srcdir in
7010 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7011 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7012 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7013 esac;;
7014esac
47935194
NN
7015
7016
7017 case $INSTALL in
7018 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7019 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7020 esac
7021
e22db4bf
NN
7022 if test x"$ac_file" != x-; then
7023 { echo "$as_me:$LINENO: creating $ac_file" >&5
7024echo "$as_me: creating $ac_file" >&6;}
7025 rm -f "$ac_file"
7026 fi
47935194
NN
7027 # Let's still pretend it is `configure' which instantiates (i.e., don't
7028 # use $as_me), people would be surprised to read:
7029 # /* config.h. Generated by config.status. */
7030 if test x"$ac_file" = x-; then
7031 configure_input=
7032 else
7033 configure_input="$ac_file. "
7034 fi
7035 configure_input=$configure_input"Generated from `echo $ac_file_in |
8ab705be 7036 sed 's,.*/,,'` by configure."
47935194
NN
7037
7038 # First look for the input files in the build tree, otherwise in the
7039 # src tree.
7040 ac_file_inputs=`IFS=:
7041 for f in $ac_file_in; do
7042 case $f in
7043 -) echo $tmp/stdin ;;
7044 [\\/$]*)
8ab705be
KC
7045 # Absolute (can't be DOS-style, as IFS=:)
7046 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
47935194
NN
7047echo "$as_me: error: cannot find input file: $f" >&2;}
7048 { (exit 1); exit 1; }; }
8ab705be 7049 echo "$f";;
47935194 7050 *) # Relative
8ab705be
KC
7051 if test -f "$f"; then
7052 # Build tree
7053 echo "$f"
7054 elif test -f "$srcdir/$f"; then
7055 # Source tree
7056 echo "$srcdir/$f"
7057 else
7058 # /dev/null tree
7059 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
47935194
NN
7060echo "$as_me: error: cannot find input file: $f" >&2;}
7061 { (exit 1); exit 1; }; }
8ab705be 7062 fi;;
47935194
NN
7063 esac
7064 done` || { (exit 1); exit 1; }
47935194
NN
7065_ACEOF
7066cat >>$CONFIG_STATUS <<_ACEOF
7067 sed "$ac_vpsub
7068$extrasub
7069_ACEOF
7070cat >>$CONFIG_STATUS <<\_ACEOF
7071:t
7072/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7073s,@configure_input@,$configure_input,;t t
7074s,@srcdir@,$ac_srcdir,;t t
7075s,@abs_srcdir@,$ac_abs_srcdir,;t t
7076s,@top_srcdir@,$ac_top_srcdir,;t t
7077s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7078s,@builddir@,$ac_builddir,;t t
7079s,@abs_builddir@,$ac_abs_builddir,;t t
7080s,@top_builddir@,$ac_top_builddir,;t t
7081s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7082s,@INSTALL@,$ac_INSTALL,;t t
7083" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7084 rm -f $tmp/stdin
7085 if test x"$ac_file" != x-; then
7086 mv $tmp/out $ac_file
7087 else
7088 cat $tmp/out
7089 rm -f $tmp/out
7090 fi
7091
7092done
7093_ACEOF
7094cat >>$CONFIG_STATUS <<\_ACEOF
7095
7096#
7097# CONFIG_COMMANDS section.
7098#
7099for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
7100 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7101 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7102 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
7103$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8ab705be
KC
7104 X"$ac_dest" : 'X\(//\)[^/]' \| \
7105 X"$ac_dest" : 'X\(//\)$' \| \
7106 X"$ac_dest" : 'X\(/\)' \| \
7107 . : '\(.\)' 2>/dev/null ||
47935194
NN
7108echo X"$ac_dest" |
7109 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7110 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7111 /^X\(\/\/\)$/{ s//\1/; q; }
7112 /^X\(\/\).*/{ s//\1/; q; }
7113 s/.*/./; q'`
8ab705be
KC
7114 { if $as_mkdir_p; then
7115 mkdir -p "$ac_dir"
7116 else
7117 as_dir="$ac_dir"
7118 as_dirs=
7119 while test ! -d "$as_dir"; do
7120 as_dirs="$as_dir $as_dirs"
7121 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7122$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7123 X"$as_dir" : 'X\(//\)[^/]' \| \
7124 X"$as_dir" : 'X\(//\)$' \| \
7125 X"$as_dir" : 'X\(/\)' \| \
7126 . : '\(.\)' 2>/dev/null ||
7127echo X"$as_dir" |
7128 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7129 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7130 /^X\(\/\/\)$/{ s//\1/; q; }
7131 /^X\(\/\).*/{ s//\1/; q; }
7132 s/.*/./; q'`
7133 done
7134 test ! -n "$as_dirs" || mkdir $as_dirs
7135 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7136echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7137 { (exit 1); exit 1; }; }; }
7138
47935194
NN
7139 ac_builddir=.
7140
7141if test "$ac_dir" != .; then
7142 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7143 # A "../" for each directory in $ac_dir_suffix.
7144 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7145else
7146 ac_dir_suffix= ac_top_builddir=
7147fi
7148
7149case $srcdir in
7150 .) # No --srcdir option. We are building in place.
7151 ac_srcdir=.
7152 if test -z "$ac_top_builddir"; then
7153 ac_top_srcdir=.
7154 else
7155 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7156 fi ;;
7157 [\\/]* | ?:[\\/]* ) # Absolute path.
7158 ac_srcdir=$srcdir$ac_dir_suffix;
7159 ac_top_srcdir=$srcdir ;;
7160 *) # Relative path.
7161 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7162 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7163esac
8ab705be
KC
7164
7165# Do not use `cd foo && pwd` to compute absolute paths, because
7166# the directories may not exist.
7167case `pwd` in
7168.) ac_abs_builddir="$ac_dir";;
7169*)
7170 case "$ac_dir" in
7171 .) ac_abs_builddir=`pwd`;;
7172 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7173 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7174 esac;;
7175esac
7176case $ac_abs_builddir in
7177.) ac_abs_top_builddir=${ac_top_builddir}.;;
7178*)
7179 case ${ac_top_builddir}. in
7180 .) ac_abs_top_builddir=$ac_abs_builddir;;
7181 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7182 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7183 esac;;
7184esac
7185case $ac_abs_builddir in
7186.) ac_abs_srcdir=$ac_srcdir;;
7187*)
7188 case $ac_srcdir in
7189 .) ac_abs_srcdir=$ac_abs_builddir;;
7190 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7191 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7192 esac;;
7193esac
7194case $ac_abs_builddir in
7195.) ac_abs_top_srcdir=$ac_top_srcdir;;
7196*)
7197 case $ac_top_srcdir in
7198 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7199 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7200 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7201 esac;;
7202esac
47935194
NN
7203
7204
7205 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
7206echo "$as_me: executing $ac_dest commands" >&6;}
7207 case $ac_dest in
7208 default )
7160c99d 7209echo "$INCLUDES $DEFS" > boehm-cflags
1530be84
TT
7210
7211if test -n "$CONFIG_FILES"; then
6706f116 7212 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
5a2586cf 7213 ac_file=Makefile . ${gc_basedir}/../config-ml.in
47935194
NN
7214fi ;;
7215 esac
7216done
7217_ACEOF
7218
7219cat >>$CONFIG_STATUS <<\_ACEOF
7220
7221{ (exit 0); exit 0; }
7222_ACEOF
1530be84 7223chmod +x $CONFIG_STATUS
47935194
NN
7224ac_clean_files=$ac_clean_files_save
7225
7226
7227# configure is writing to config.log, and then calls config.status.
7228# config.status does its own redirection, appending to config.log.
7229# Unfortunately, on DOS this fails, as config.log is still kept open
7230# by configure, so config.status won't be able to write to it; its
7231# output is simply discarded. So we exec the FD to /dev/null,
7232# effectively closing config.log, so it can be properly (re)opened and
7233# appended to by config.status. When coming back to configure, we
7234# need to make the FD available again.
7235if test "$no_create" != yes; then
7236 ac_cs_success=:
7237 ac_config_status_args=
7238 test "$silent" = yes &&
7239 ac_config_status_args="$ac_config_status_args --quiet"
7240 exec 5>/dev/null
7241 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7242 exec 5>>config.log
7243 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7244 # would make configure fail if this is the last instruction.
7245 $ac_cs_success || { (exit 1); exit 1; }
7246fi
1530be84 7247