]> git.ipfire.org Git - thirdparty/gcc.git/blame - boehm-gc/configure
20000804-1.c: Skip if i?86-darwin.
[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
13b040f1 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 multi_basedir build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical mkinstalldirs INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXX ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE 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 LIBTOOL CXXCPP CPPFLAGS THREADLIBS POWERPC_DARWIN_TRUE POWERPC_DARWIN_FALSE EXTRA_TEST_LIBS target_all CPLUSPLUS_TRUE CPLUSPLUS_FALSE AM_CPPFLAGS 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)
bf9a420e
PB
846 --disable-dependency-tracking speeds up one-time build
847 --enable-dependency-tracking do not reject slow dependency extractors
848 --enable-maintainer-mode enable make rules and dependencies not useful
849 (and sometimes confusing) to the casual installer
47935194
NN
850 --enable-shared=PKGS build shared libraries default=yes
851 --enable-static=PKGS build static libraries default=yes
852 --enable-fast-install=PKGS optimize for fast installation default=yes
853 --disable-libtool-lock avoid locking (might break parallel builds)
854 --enable-parallel-mark parallelize marking and free list construction
3c1cbf58 855 --enable-gc-debug include full support for pointer backtracing etc.
47935194
NN
856
857Optional Packages:
858 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
859 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
860 --with-gnu-ld assume the C compiler uses GNU ld default=no
861 --with-pic try to use only PIC/non-PIC objects default=use both
862 --with-target-subdir=SUBDIR
863 configuring with a cross compiler
864 --with-cross-host=HOST configuring with a cross compiler
865 --with-ecos enable runtime eCos target support
866
867Some influential environment variables:
868 CC C compiler command
869 CFLAGS C compiler flags
870 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
871 nonstandard directory <lib dir>
872 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
873 headers in a nonstandard directory <include dir>
874 CXX C++ compiler command
875 CXXFLAGS C++ compiler flags
876 CXXCPP C++ preprocessor
877 CPP C preprocessor
878
879Use these variables to override the choices made by `configure' or to help
880it to find libraries and programs with nonstandard names/locations.
881
882_ACEOF
883fi
884
885if test "$ac_init_help" = "recursive"; then
886 # If there are subdirs, report their specific --help.
887 ac_popdir=`pwd`
888 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
889 test -d $ac_dir || continue
890 ac_builddir=.
891
892if test "$ac_dir" != .; then
893 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
894 # A "../" for each directory in $ac_dir_suffix.
895 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
896else
897 ac_dir_suffix= ac_top_builddir=
898fi
899
900case $srcdir in
901 .) # No --srcdir option. We are building in place.
902 ac_srcdir=.
903 if test -z "$ac_top_builddir"; then
904 ac_top_srcdir=.
905 else
906 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
907 fi ;;
908 [\\/]* | ?:[\\/]* ) # Absolute path.
909 ac_srcdir=$srcdir$ac_dir_suffix;
910 ac_top_srcdir=$srcdir ;;
911 *) # Relative path.
912 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
913 ac_top_srcdir=$ac_top_builddir$srcdir ;;
914esac
8ab705be
KC
915
916# Do not use `cd foo && pwd` to compute absolute paths, because
917# the directories may not exist.
918case `pwd` in
919.) ac_abs_builddir="$ac_dir";;
920*)
921 case "$ac_dir" in
922 .) ac_abs_builddir=`pwd`;;
923 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
924 *) ac_abs_builddir=`pwd`/"$ac_dir";;
925 esac;;
926esac
927case $ac_abs_builddir in
928.) ac_abs_top_builddir=${ac_top_builddir}.;;
929*)
930 case ${ac_top_builddir}. in
931 .) ac_abs_top_builddir=$ac_abs_builddir;;
932 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
933 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
934 esac;;
935esac
936case $ac_abs_builddir in
937.) ac_abs_srcdir=$ac_srcdir;;
938*)
939 case $ac_srcdir in
940 .) ac_abs_srcdir=$ac_abs_builddir;;
941 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
942 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
943 esac;;
944esac
945case $ac_abs_builddir in
946.) ac_abs_top_srcdir=$ac_top_srcdir;;
947*)
948 case $ac_top_srcdir in
949 .) ac_abs_top_srcdir=$ac_abs_builddir;;
950 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
951 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
952 esac;;
953esac
47935194
NN
954
955 cd $ac_dir
956 # Check for guested configure; otherwise get Cygnus style configure.
957 if test -f $ac_srcdir/configure.gnu; then
958 echo
959 $SHELL $ac_srcdir/configure.gnu --help=recursive
960 elif test -f $ac_srcdir/configure; then
961 echo
962 $SHELL $ac_srcdir/configure --help=recursive
963 elif test -f $ac_srcdir/configure.ac ||
8ab705be 964 test -f $ac_srcdir/configure.in; then
47935194
NN
965 echo
966 $ac_configure --help
967 else
968 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
969 fi
5572488d 970 cd $ac_popdir
47935194
NN
971 done
972fi
973
974test -n "$ac_init_help" && exit 0
975if $ac_init_version; then
976 cat <<\_ACEOF
977
8ab705be 978Copyright (C) 2003 Free Software Foundation, Inc.
47935194
NN
979This configure script is free software; the Free Software Foundation
980gives unlimited permission to copy, distribute and modify it.
981_ACEOF
982 exit 0
983fi
984exec 5>config.log
985cat >&5 <<_ACEOF
986This file contains any messages produced by compilers while
987running configure, to aid debugging if configure makes a mistake.
988
989It was created by $as_me, which was
8ab705be 990generated by GNU Autoconf 2.59. Invocation command line was
47935194
NN
991
992 $ $0 $@
993
994_ACEOF
995{
996cat <<_ASUNAME
997## --------- ##
998## Platform. ##
999## --------- ##
1000
1001hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1002uname -m = `(uname -m) 2>/dev/null || echo unknown`
1003uname -r = `(uname -r) 2>/dev/null || echo unknown`
1004uname -s = `(uname -s) 2>/dev/null || echo unknown`
1005uname -v = `(uname -v) 2>/dev/null || echo unknown`
1006
1007/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1008/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1009
1010/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1011/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1012/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1013hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1014/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1015/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1016/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1017
1018_ASUNAME
1019
1020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1021for as_dir in $PATH
1022do
1023 IFS=$as_save_IFS
1024 test -z "$as_dir" && as_dir=.
1025 echo "PATH: $as_dir"
1026done
1027
1028} >&5
1029
1030cat >&5 <<_ACEOF
1031
1032
1033## ----------- ##
1034## Core tests. ##
1035## ----------- ##
1036
1037_ACEOF
1038
1039
1040# Keep a trace of the command line.
1041# Strip out --no-create and --no-recursion so they do not pile up.
1042# Strip out --silent because we don't want to record it for future runs.
1043# Also quote any args containing shell meta-characters.
1044# Make two passes to allow for proper duplicate-argument suppression.
1045ac_configure_args=
1046ac_configure_args0=
1047ac_configure_args1=
1048ac_sep=
1049ac_must_keep_next=false
1050for ac_pass in 1 2
1051do
1052 for ac_arg
1053 do
1054 case $ac_arg in
1055 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1056 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1057 | -silent | --silent | --silen | --sile | --sil)
1058 continue ;;
1059 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1060 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1061 esac
1062 case $ac_pass in
1063 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1064 2)
1065 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1066 if test $ac_must_keep_next = true; then
8ab705be 1067 ac_must_keep_next=false # Got value, back to normal.
47935194 1068 else
8ab705be
KC
1069 case $ac_arg in
1070 *=* | --config-cache | -C | -disable-* | --disable-* \
1071 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1072 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1073 | -with-* | --with-* | -without-* | --without-* | --x)
1074 case "$ac_configure_args0 " in
1075 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1076 esac
1077 ;;
1078 -* ) ac_must_keep_next=true ;;
1079 esac
47935194
NN
1080 fi
1081 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1082 # Get rid of the leading space.
1083 ac_sep=" "
1084 ;;
1085 esac
1086 done
1087done
1088$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1089$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1090
1091# When interrupted or exit'd, cleanup temporary files, and complete
1092# config.log. We remove comments because anyway the quotes in there
1093# would cause problems or look ugly.
1094# WARNING: Be sure not to use single quotes in there, as some shells,
1095# such as our DU 5.0 friend, will then `close' the trap.
1096trap 'exit_status=$?
1097 # Save into config.log some information that might help in debugging.
1098 {
1099 echo
1100
1101 cat <<\_ASBOX
1102## ---------------- ##
1103## Cache variables. ##
1104## ---------------- ##
1105_ASBOX
1106 echo
1107 # The following way of writing the cache mishandles newlines in values,
1108{
1109 (set) 2>&1 |
1110 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1111 *ac_space=\ *)
1112 sed -n \
8ab705be
KC
1113 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1114 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
47935194
NN
1115 ;;
1116 *)
1117 sed -n \
8ab705be 1118 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
47935194
NN
1119 ;;
1120 esac;
1121}
1122 echo
1123
1124 cat <<\_ASBOX
1125## ----------------- ##
1126## Output variables. ##
1127## ----------------- ##
1128_ASBOX
1129 echo
1130 for ac_var in $ac_subst_vars
1131 do
1132 eval ac_val=$`echo $ac_var`
1133 echo "$ac_var='"'"'$ac_val'"'"'"
1134 done | sort
1135 echo
1136
1137 if test -n "$ac_subst_files"; then
1138 cat <<\_ASBOX
1139## ------------- ##
1140## Output files. ##
1141## ------------- ##
1142_ASBOX
1143 echo
1144 for ac_var in $ac_subst_files
1145 do
1146 eval ac_val=$`echo $ac_var`
8ab705be 1147 echo "$ac_var='"'"'$ac_val'"'"'"
47935194
NN
1148 done | sort
1149 echo
1150 fi
1151
1152 if test -s confdefs.h; then
1153 cat <<\_ASBOX
1154## ----------- ##
1155## confdefs.h. ##
1156## ----------- ##
1157_ASBOX
1158 echo
1159 sed "/^$/d" confdefs.h | sort
1160 echo
1161 fi
1162 test "$ac_signal" != 0 &&
1163 echo "$as_me: caught signal $ac_signal"
1164 echo "$as_me: exit $exit_status"
1165 } >&5
1166 rm -f core *.core &&
1167 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1168 exit $exit_status
1169 ' 0
1170for ac_signal in 1 2 13 15; do
1171 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1172done
1173ac_signal=0
1174
1175# confdefs.h avoids OS command line length limits that DEFS can exceed.
1176rm -rf conftest* confdefs.h
1177# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1178echo >confdefs.h
1179
1180# Predefined preprocessor variables.
1181
1182cat >>confdefs.h <<_ACEOF
1183#define PACKAGE_NAME "$PACKAGE_NAME"
1184_ACEOF
1185
1186
1187cat >>confdefs.h <<_ACEOF
1188#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1189_ACEOF
1190
1191
1192cat >>confdefs.h <<_ACEOF
1193#define PACKAGE_VERSION "$PACKAGE_VERSION"
1194_ACEOF
1195
1530be84 1196
47935194
NN
1197cat >>confdefs.h <<_ACEOF
1198#define PACKAGE_STRING "$PACKAGE_STRING"
1199_ACEOF
1200
1201
1202cat >>confdefs.h <<_ACEOF
1203#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1204_ACEOF
1205
1206
1207# Let the site file select an alternate cache file if it wants to.
1530be84 1208# Prefer explicitly selected file to automatically selected ones.
30c3de1f
JS
1209if test -z "$CONFIG_SITE"; then
1210 if test "x$prefix" != xNONE; then
1211 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1212 else
1213 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1530be84
TT
1214 fi
1215fi
1216for ac_site_file in $CONFIG_SITE; do
1217 if test -r "$ac_site_file"; then
47935194
NN
1218 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1219echo "$as_me: loading site script $ac_site_file" >&6;}
1220 sed 's/^/| /' "$ac_site_file" >&5
1530be84
TT
1221 . "$ac_site_file"
1222 fi
1223done
1224
1225if test -r "$cache_file"; then
47935194
NN
1226 # Some versions of bash will fail to source /dev/null (special
1227 # files actually), so we avoid doing that.
1228 if test -f "$cache_file"; then
1229 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1230echo "$as_me: loading cache $cache_file" >&6;}
1231 case $cache_file in
1232 [\\/]* | ?:[\\/]* ) . $cache_file;;
1233 *) . ./$cache_file;;
1234 esac
1235 fi
1530be84 1236else
47935194
NN
1237 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1238echo "$as_me: creating cache $cache_file" >&6;}
1239 >$cache_file
1240fi
1241
1242# Check that the precious variables saved in the cache have kept the same
1243# value.
1244ac_cache_corrupted=false
1245for ac_var in `(set) 2>&1 |
8ab705be 1246 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
47935194
NN
1247 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1248 eval ac_new_set=\$ac_env_${ac_var}_set
1249 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1250 eval ac_new_val="\$ac_env_${ac_var}_value"
1251 case $ac_old_set,$ac_new_set in
1252 set,)
1253 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1254echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1255 ac_cache_corrupted=: ;;
1256 ,set)
1257 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1258echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1259 ac_cache_corrupted=: ;;
1260 ,);;
1261 *)
1262 if test "x$ac_old_val" != "x$ac_new_val"; then
8ab705be 1263 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
47935194 1264echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
8ab705be 1265 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
47935194 1266echo "$as_me: former value: $ac_old_val" >&2;}
8ab705be 1267 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
47935194 1268echo "$as_me: current value: $ac_new_val" >&2;}
8ab705be 1269 ac_cache_corrupted=:
47935194
NN
1270 fi;;
1271 esac
1272 # Pass precious variables to config.status.
1273 if test "$ac_new_set" = set; then
1274 case $ac_new_val in
1275 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1276 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1277 *) ac_arg=$ac_var=$ac_new_val ;;
1278 esac
1279 case " $ac_configure_args " in
1280 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1281 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1282 esac
1283 fi
1284done
1285if $ac_cache_corrupted; then
1286 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1287echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1288 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1289echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1290 { (exit 1); exit 1; }; }
1530be84
TT
1291fi
1292
1293ac_ext=c
1530be84 1294ac_cpp='$CPP $CPPFLAGS'
47935194
NN
1295ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1296ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1297ac_compiler_gnu=$ac_cv_c_compiler_gnu
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1530be84
TT
1315
1316
1317
6706f116
AO
1318# This works around the fact that libtool configuration may change LD
1319# for this particular configuration, but some shells, instead of
1320# keeping the changes in LD private, export them just because LD is
1321# exported.
1322ORIGINAL_LD_FOR_MULTILIBS=$LD
1323
bf9a420e 1324# Default to --enable-multilib
b1891e51
NN
1325# Check whether --enable-multilib or --disable-multilib was given.
1326if test "${enable_multilib+set}" = set; then
1327 enableval="$enable_multilib"
bf9a420e 1328 case "$enableval" in
b1891e51
NN
1329 yes) multilib=yes ;;
1330 no) multilib=no ;;
bf9a420e
PB
1331 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1332echo "$as_me: error: bad value $enableval for multilib option" >&2;}
47935194 1333 { (exit 1); exit 1; }; } ;;
b1891e51
NN
1334 esac
1335else
1336 multilib=yes
47935194 1337fi;
b1891e51 1338
bf9a420e
PB
1339# We may get other options which we leave undocumented:
1340# --with-target-subdir, --with-multisrctop, --with-multisubdir
1341# See config-ml.in if you want the gory details.
1342
1343if test "$srcdir" = "."; then
1344 if test "$with_target_subdir" != "."; then
1345 multi_basedir="$srcdir/$with_multisrctop../.."
b1891e51 1346 else
bf9a420e 1347 multi_basedir="$srcdir/$with_multisrctop.."
b1891e51
NN
1348 fi
1349else
bf9a420e 1350 multi_basedir="$srcdir/.."
b1891e51
NN
1351fi
1352
b1891e51 1353
bf9a420e
PB
1354 ac_config_commands="$ac_config_commands default-1"
1355
1356
1357ac_aux_dir=
1358for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
b1891e51
NN
1359 if test -f $ac_dir/install-sh; then
1360 ac_aux_dir=$ac_dir
1361 ac_install_sh="$ac_aux_dir/install-sh -c"
1362 break
1363 elif test -f $ac_dir/install.sh; then
1364 ac_aux_dir=$ac_dir
1365 ac_install_sh="$ac_aux_dir/install.sh -c"
1366 break
47935194
NN
1367 elif test -f $ac_dir/shtool; then
1368 ac_aux_dir=$ac_dir
1369 ac_install_sh="$ac_aux_dir/shtool install -c"
1370 break
1371 fi
b1891e51
NN
1372done
1373if test -z "$ac_aux_dir"; then
bf9a420e
PB
1374 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1375echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
47935194 1376 { (exit 1); exit 1; }; }
b1891e51 1377fi
47935194
NN
1378ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1379ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1380ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
b1891e51 1381
b1891e51 1382# Make sure we can run config.sub.
47935194
NN
1383$ac_config_sub sun4 >/dev/null 2>&1 ||
1384 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1385echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1386 { (exit 1); exit 1; }; }
1387
1388echo "$as_me:$LINENO: checking build system type" >&5
1389echo $ECHO_N "checking build system type... $ECHO_C" >&6
1390if test "${ac_cv_build+set}" = set; then
1391 echo $ECHO_N "(cached) $ECHO_C" >&6
1392else
1393 ac_cv_build_alias=$build_alias
1394test -z "$ac_cv_build_alias" &&
1395 ac_cv_build_alias=`$ac_config_guess`
1396test -z "$ac_cv_build_alias" &&
1397 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1398echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1399 { (exit 1); exit 1; }; }
1400ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1401 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1402echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1403 { (exit 1); exit 1; }; }
1404
1405fi
1406echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1407echo "${ECHO_T}$ac_cv_build" >&6
1408build=$ac_cv_build
1409build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1410build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1411build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1412
1413
1414echo "$as_me:$LINENO: checking host system type" >&5
1415echo $ECHO_N "checking host system type... $ECHO_C" >&6
1416if test "${ac_cv_host+set}" = set; then
1417 echo $ECHO_N "(cached) $ECHO_C" >&6
1418else
1419 ac_cv_host_alias=$host_alias
1420test -z "$ac_cv_host_alias" &&
1421 ac_cv_host_alias=$ac_cv_build_alias
1422ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1423 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1424echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1425 { (exit 1); exit 1; }; }
1426
1427fi
1428echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1429echo "${ECHO_T}$ac_cv_host" >&6
1430host=$ac_cv_host
1431host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1432host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1433host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1434
1435
1436echo "$as_me:$LINENO: checking target system type" >&5
1437echo $ECHO_N "checking target system type... $ECHO_C" >&6
1438if test "${ac_cv_target+set}" = set; then
1439 echo $ECHO_N "(cached) $ECHO_C" >&6
1440else
1441 ac_cv_target_alias=$target_alias
1442test "x$ac_cv_target_alias" = "x" &&
1443 ac_cv_target_alias=$ac_cv_host_alias
1444ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1445 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1446echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1447 { (exit 1); exit 1; }; }
b1891e51 1448
47935194
NN
1449fi
1450echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1451echo "${ECHO_T}$ac_cv_target" >&6
1452target=$ac_cv_target
1453target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1454target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1455target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
b1891e51 1456
b1891e51 1457
47935194
NN
1458# The aliases save the names the user supplied, while $host etc.
1459# will get canonicalized.
1460test -n "$target_alias" &&
b1891e51
NN
1461 test "$program_prefix$program_suffix$program_transform_name" = \
1462 NONENONEs,x,x, &&
1463 program_prefix=${target_alias}-
1464
d38d6003 1465# Get the 'noncanonical' system names.
d38d6003
NN
1466 case ${build_alias} in
1467 "") build_noncanonical=${build} ;;
1468 *) build_noncanonical=${build_alias} ;;
1469esac
1470
1471 case ${host_alias} in
1472 "") host_noncanonical=${build_noncanonical} ;;
1473 *) host_noncanonical=${host_alias} ;;
1474esac
1475
1476 case ${target_alias} in
1477 "") target_noncanonical=${host_noncanonical} ;;
1478 *) target_noncanonical=${target_alias} ;;
1479esac
1480
1481
13b040f1
NN
1482
1483
b1891e51
NN
1484# This works around an automake problem.
1485mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1486
1487
4109fe85 1488am__api_version="1.9"
1530be84
TT
1489# Find a good install program. We prefer a C program (faster),
1490# so one script is as good as another. But avoid the broken or
1491# incompatible versions:
1492# SysV /etc/install, /usr/sbin/install
1493# SunOS /usr/etc/install
1494# IRIX /sbin/install
1495# AIX /bin/install
47935194 1496# AmigaOS /C/install, which installs bootblocks on floppy discs
1530be84
TT
1497# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1498# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1499# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8ab705be 1500# OS/2's system install, which has a completely different semantic
1530be84 1501# ./install, which can be erroneously created by make from ./install.sh.
47935194
NN
1502echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1503echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1530be84 1504if test -z "$INSTALL"; then
47935194
NN
1505if test "${ac_cv_path_install+set}" = set; then
1506 echo $ECHO_N "(cached) $ECHO_C" >&6
1530be84 1507else
47935194
NN
1508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1509for as_dir in $PATH
1510do
1511 IFS=$as_save_IFS
1512 test -z "$as_dir" && as_dir=.
1513 # Account for people who put trailing slashes in PATH elements.
1514case $as_dir/ in
1515 ./ | .// | /cC/* | \
1516 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8ab705be 1517 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
47935194
NN
1518 /usr/ucb/* ) ;;
1519 *)
1520 # OSF1 and SCO ODT 3.0 have their own names for install.
1521 # Don't use installbsd from OSF since it installs stuff as root
1522 # by default.
1523 for ac_prog in ginstall scoinst install; do
1524 for ac_exec_ext in '' $ac_executable_extensions; do
8ab705be
KC
1525 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1526 if test $ac_prog = install &&
1527 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1528 # AIX install. It has an incompatible calling convention.
1529 :
1530 elif test $ac_prog = install &&
1531 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1532 # program-specific install script used by HP pwplus--don't use.
1533 :
1534 else
1535 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1536 break 3
1537 fi
1538 fi
1530be84 1539 done
47935194
NN
1540 done
1541 ;;
1542esac
1543done
1544
1530be84
TT
1545
1546fi
1547 if test "${ac_cv_path_install+set}" = set; then
47935194 1548 INSTALL=$ac_cv_path_install
1530be84
TT
1549 else
1550 # As a last resort, use the slow shell script. We don't cache a
1551 # path for INSTALL within a source directory, because that will
1552 # break other packages using the cache if that directory is
1553 # removed, or if the path is relative.
47935194 1554 INSTALL=$ac_install_sh
1530be84
TT
1555 fi
1556fi
47935194
NN
1557echo "$as_me:$LINENO: result: $INSTALL" >&5
1558echo "${ECHO_T}$INSTALL" >&6
1530be84
TT
1559
1560# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1561# It thinks the first close brace ends the variable substitution.
1562test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1563
47935194 1564test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1530be84
TT
1565
1566test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1567
47935194
NN
1568echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1569echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1530be84
TT
1570# Just in case
1571sleep 1
bf9a420e 1572echo timestamp > conftest.file
1530be84
TT
1573# Do `set' in a subshell so we don't clobber the current shell's
1574# arguments. Must try -L first in case configure is actually a
1575# symlink; some systems play weird games with the mod time of symlinks
1576# (eg FreeBSD returns the mod time of the symlink's containing
1577# directory).
1578if (
bf9a420e 1579 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1530be84
TT
1580 if test "$*" = "X"; then
1581 # -L didn't work.
bf9a420e 1582 set X `ls -t $srcdir/configure conftest.file`
1530be84 1583 fi
bf9a420e
PB
1584 rm -f conftest.file
1585 if test "$*" != "X $srcdir/configure conftest.file" \
1586 && test "$*" != "X conftest.file $srcdir/configure"; then
1530be84
TT
1587
1588 # If neither matched, then we have a broken ls. This can happen
1589 # if, for instance, CONFIG_SHELL is bash and it inherits a
1590 # broken ls alias from the environment. This has actually
1591 # happened. Such a system could not be considered "sane".
47935194
NN
1592 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1593alias in your environment" >&5
1594echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1595alias in your environment" >&2;}
1596 { (exit 1); exit 1; }; }
1530be84
TT
1597 fi
1598
bf9a420e 1599 test "$2" = conftest.file
1530be84
TT
1600 )
1601then
1602 # Ok.
1603 :
1604else
47935194
NN
1605 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1606Check your system clock" >&5
1607echo "$as_me: error: newly created file is older than distributed files!
1608Check your system clock" >&2;}
1609 { (exit 1); exit 1; }; }
1530be84 1610fi
47935194
NN
1611echo "$as_me:$LINENO: result: yes" >&5
1612echo "${ECHO_T}yes" >&6
1530be84 1613test "$program_prefix" != NONE &&
47935194 1614 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1530be84
TT
1615# Use a double $ so make ignores it.
1616test "$program_suffix" != NONE &&
47935194
NN
1617 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1618# Double any \ or $. echo might interpret backslashes.
1619# By default was `s,x,x', remove it if useless.
1620cat <<\_ACEOF >conftest.sed
1621s/[\\$]/&&/g;s/;s,x,x,$//
1622_ACEOF
1623program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1624rm conftest.sed
1625
bf9a420e
PB
1626# expand $ac_aux_dir to an absolute path
1627am_aux_dir=`cd $ac_aux_dir && pwd`
1628
1629test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1630# Use eval to expand $SHELL
1631if eval "$MISSING --run true"; then
1632 am_missing_run="$MISSING --run "
1633else
1634 am_missing_run=
1635 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1636echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1637fi
1638
1639if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4109fe85
BM
1640 # We used to keeping the `.' as first argument, in order to
1641 # allow $(mkdir_p) to be used without argument. As in
bf9a420e 1642 # $(mkdir_p) $(somedir)
4109fe85
BM
1643 # where $(somedir) is conditionally defined. However this is wrong
1644 # for two reasons:
1645 # 1. if the package is installed by a user who cannot write `.'
1646 # make install will fail,
1647 # 2. the above comment should most certainly read
1648 # $(mkdir_p) $(DESTDIR)$(somedir)
1649 # so it does not work when $(somedir) is undefined and
1650 # $(DESTDIR) is not.
1651 # To support the latter case, we have to write
1652 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1653 # so the `.' trick is pointless.
1654 mkdir_p='mkdir -p --'
bf9a420e
PB
1655else
1656 # On NextStep and OpenStep, the `mkdir' command does not
1657 # recognize any option. It will interpret all options as
1658 # directories to create, and then abort because `.' already
1659 # exists.
1660 for d in ./-p ./--version;
1661 do
1662 test -d $d && rmdir $d
1663 done
1664 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1665 if test -f "$ac_aux_dir/mkinstalldirs"; then
1666 mkdir_p='$(mkinstalldirs)'
1667 else
1668 mkdir_p='$(install_sh) -d'
1669 fi
1670fi
1671
1672for ac_prog in gawk mawk nawk awk
1673do
1674 # Extract the first word of "$ac_prog", so it can be a program name with args.
1675set dummy $ac_prog; ac_word=$2
1676echo "$as_me:$LINENO: checking for $ac_word" >&5
1677echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1678if test "${ac_cv_prog_AWK+set}" = set; then
1679 echo $ECHO_N "(cached) $ECHO_C" >&6
1680else
1681 if test -n "$AWK"; then
1682 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1683else
1684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1685for as_dir in $PATH
1686do
1687 IFS=$as_save_IFS
1688 test -z "$as_dir" && as_dir=.
1689 for ac_exec_ext in '' $ac_executable_extensions; do
1690 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1691 ac_cv_prog_AWK="$ac_prog"
1692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1693 break 2
1694 fi
1695done
1696done
1697
1698fi
1699fi
1700AWK=$ac_cv_prog_AWK
1701if test -n "$AWK"; then
1702 echo "$as_me:$LINENO: result: $AWK" >&5
1703echo "${ECHO_T}$AWK" >&6
1704else
1705 echo "$as_me:$LINENO: result: no" >&5
1706echo "${ECHO_T}no" >&6
1707fi
1708
1709 test -n "$AWK" && break
1710done
1711
47935194
NN
1712echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1713echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8ab705be 1714set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
47935194
NN
1715if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1716 echo $ECHO_N "(cached) $ECHO_C" >&6
1530be84 1717else
47935194 1718 cat >conftest.make <<\_ACEOF
1530be84 1719all:
47935194
NN
1720 @echo 'ac_maketemp="$(MAKE)"'
1721_ACEOF
1530be84 1722# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
47935194 1723eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1530be84
TT
1724if test -n "$ac_maketemp"; then
1725 eval ac_cv_prog_make_${ac_make}_set=yes
1726else
1727 eval ac_cv_prog_make_${ac_make}_set=no
1728fi
47935194 1729rm -f conftest.make
1530be84
TT
1730fi
1731if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
47935194
NN
1732 echo "$as_me:$LINENO: result: yes" >&5
1733echo "${ECHO_T}yes" >&6
1530be84
TT
1734 SET_MAKE=
1735else
47935194
NN
1736 echo "$as_me:$LINENO: result: no" >&5
1737echo "${ECHO_T}no" >&6
1530be84
TT
1738 SET_MAKE="MAKE=${MAKE-make}"
1739fi
1740
bf9a420e
PB
1741rm -rf .tst 2>/dev/null
1742mkdir .tst 2>/dev/null
1743if test -d .tst; then
1744 am__leading_dot=.
1745else
1746 am__leading_dot=_
1747fi
1748rmdir .tst 2>/dev/null
1530be84 1749
bf9a420e
PB
1750# test to see if srcdir already configured
1751if test "`cd $srcdir && pwd`" != "`pwd`" &&
1752 test -f $srcdir/config.status; then
47935194
NN
1753 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1754echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1755 { (exit 1); exit 1; }; }
1530be84
TT
1756fi
1757
bf9a420e
PB
1758# test whether we have cygpath
1759if test -z "$CYGPATH_W"; then
1760 if (cygpath --version) >/dev/null 2>/dev/null; then
1761 CYGPATH_W='cygpath -w'
1762 else
1763 CYGPATH_W=echo
1764 fi
1765fi
1766
1767
1768# Define the identity of the package.
1769 PACKAGE=gc
54f28c21 1770 VERSION=6.6
bf9a420e
PB
1771
1772
1773# Some tools Automake needs.
1774
1775ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1776
1530be84 1777
bf9a420e 1778AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1530be84 1779
bf9a420e
PB
1780
1781AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1782
1783
1784AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1785
1786
1787MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1788
bf9a420e
PB
1789install_sh=${install_sh-"$am_aux_dir/install-sh"}
1790
1791# Installed binaries are usually stripped using `strip' when the user
1792# run `make install-strip'. However `strip' might not be the right
1793# tool to use in cross-compilation environments, therefore Automake
1794# will honor the `STRIP' environment variable to overrule this program.
1795if test "$cross_compiling" != no; then
1796 if test -n "$ac_tool_prefix"; then
1797 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1798set dummy ${ac_tool_prefix}strip; ac_word=$2
1799echo "$as_me:$LINENO: checking for $ac_word" >&5
1800echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1801if test "${ac_cv_prog_STRIP+set}" = set; then
1802 echo $ECHO_N "(cached) $ECHO_C" >&6
1530be84 1803else
bf9a420e
PB
1804 if test -n "$STRIP"; then
1805 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1806else
1807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1808for as_dir in $PATH
1809do
1810 IFS=$as_save_IFS
1811 test -z "$as_dir" && as_dir=.
1812 for ac_exec_ext in '' $ac_executable_extensions; do
1813 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1814 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1816 break 2
1817 fi
1818done
1819done
1530be84 1820
bf9a420e
PB
1821fi
1822fi
1823STRIP=$ac_cv_prog_STRIP
1824if test -n "$STRIP"; then
1825 echo "$as_me:$LINENO: result: $STRIP" >&5
1826echo "${ECHO_T}$STRIP" >&6
1530be84 1827else
bf9a420e
PB
1828 echo "$as_me:$LINENO: result: no" >&5
1829echo "${ECHO_T}no" >&6
1530be84
TT
1830fi
1831
1530be84 1832fi
bf9a420e
PB
1833if test -z "$ac_cv_prog_STRIP"; then
1834 ac_ct_STRIP=$STRIP
1835 # Extract the first word of "strip", so it can be a program name with args.
1836set dummy strip; ac_word=$2
1837echo "$as_me:$LINENO: checking for $ac_word" >&5
1838echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1839if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1840 echo $ECHO_N "(cached) $ECHO_C" >&6
1841else
1842 if test -n "$ac_ct_STRIP"; then
1843 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1844else
1845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1846for as_dir in $PATH
1847do
1848 IFS=$as_save_IFS
1849 test -z "$as_dir" && as_dir=.
1850 for ac_exec_ext in '' $ac_executable_extensions; do
1851 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1852 ac_cv_prog_ac_ct_STRIP="strip"
1853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1854 break 2
1855 fi
1856done
1857done
1530be84 1858
bf9a420e
PB
1859 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1860fi
1861fi
1862ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1863if test -n "$ac_ct_STRIP"; then
1864 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1865echo "${ECHO_T}$ac_ct_STRIP" >&6
1530be84 1866else
bf9a420e
PB
1867 echo "$as_me:$LINENO: result: no" >&5
1868echo "${ECHO_T}no" >&6
1530be84
TT
1869fi
1870
bf9a420e 1871 STRIP=$ac_ct_STRIP
1530be84 1872else
bf9a420e
PB
1873 STRIP="$ac_cv_prog_STRIP"
1874fi
1875
1530be84 1876fi
bf9a420e
PB
1877INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1878
1879# We need awk for the "check" target. The system "awk" is bad on
1880# some platforms.
4109fe85
BM
1881# Always define AMTAR for backward compatibility.
1882
1883AMTAR=${AMTAR-"${am_missing_run}tar"}
1884
1885am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1886
1887
bf9a420e 1888
1530be84
TT
1889
1890
1891
47935194 1892# The autoconf 2.5x version of the no-executables hack.
1530be84
TT
1893
1894
e22db4bf
NN
1895# Yak. We must force CC and CXX to /not/ be precious variables; otherwise
1896# the wrong, non-multilib-adjusted value will be used in multilibs.
1897# As a side effect, we have to subst CFLAGS and CXXFLAGS ourselves.
1898
1899
1900
47935194
NN
1901ac_ext=c
1902ac_cpp='$CPP $CPPFLAGS'
1903ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1904ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1905ac_compiler_gnu=$ac_cv_c_compiler_gnu
1906if test -n "$ac_tool_prefix"; then
1907 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1908set dummy ${ac_tool_prefix}gcc; ac_word=$2
1909echo "$as_me:$LINENO: checking for $ac_word" >&5
1910echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1911if test "${ac_cv_prog_CC+set}" = set; then
1912 echo $ECHO_N "(cached) $ECHO_C" >&6
1913else
1914 if test -n "$CC"; then
1915 ac_cv_prog_CC="$CC" # Let the user override the test.
1916else
1917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1918for as_dir in $PATH
1919do
1920 IFS=$as_save_IFS
1921 test -z "$as_dir" && as_dir=.
1922 for ac_exec_ext in '' $ac_executable_extensions; do
1923 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1924 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1926 break 2
1927 fi
1928done
1929done
1530be84 1930
47935194
NN
1931fi
1932fi
1933CC=$ac_cv_prog_CC
1934if test -n "$CC"; then
1935 echo "$as_me:$LINENO: result: $CC" >&5
1936echo "${ECHO_T}$CC" >&6
1937else
1938 echo "$as_me:$LINENO: result: no" >&5
1939echo "${ECHO_T}no" >&6
1940fi
54ce7452 1941
47935194
NN
1942fi
1943if test -z "$ac_cv_prog_CC"; then
1944 ac_ct_CC=$CC
1945 # Extract the first word of "gcc", so it can be a program name with args.
1530be84 1946set dummy gcc; ac_word=$2
47935194
NN
1947echo "$as_me:$LINENO: checking for $ac_word" >&5
1948echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1949if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1950 echo $ECHO_N "(cached) $ECHO_C" >&6
1951else
1952 if test -n "$ac_ct_CC"; then
1953 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1954else
1955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1956for as_dir in $PATH
1957do
1958 IFS=$as_save_IFS
1959 test -z "$as_dir" && as_dir=.
1960 for ac_exec_ext in '' $ac_executable_extensions; do
1961 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1962 ac_cv_prog_ac_ct_CC="gcc"
1963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1964 break 2
1965 fi
1966done
1967done
1968
1969fi
1970fi
1971ac_ct_CC=$ac_cv_prog_ac_ct_CC
1972if test -n "$ac_ct_CC"; then
1973 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1974echo "${ECHO_T}$ac_ct_CC" >&6
1975else
1976 echo "$as_me:$LINENO: result: no" >&5
1977echo "${ECHO_T}no" >&6
1978fi
1979
1980 CC=$ac_ct_CC
1981else
1982 CC="$ac_cv_prog_CC"
1983fi
1984
1985if test -z "$CC"; then
1986 if test -n "$ac_tool_prefix"; then
1987 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1988set dummy ${ac_tool_prefix}cc; ac_word=$2
1989echo "$as_me:$LINENO: checking for $ac_word" >&5
1990echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1991if test "${ac_cv_prog_CC+set}" = set; then
1992 echo $ECHO_N "(cached) $ECHO_C" >&6
1530be84
TT
1993else
1994 if test -n "$CC"; then
1995 ac_cv_prog_CC="$CC" # Let the user override the test.
1996else
47935194
NN
1997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1998for as_dir in $PATH
1999do
2000 IFS=$as_save_IFS
2001 test -z "$as_dir" && as_dir=.
2002 for ac_exec_ext in '' $ac_executable_extensions; do
2003 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2004 ac_cv_prog_CC="${ac_tool_prefix}cc"
2005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2006 break 2
2007 fi
2008done
2009done
2010
1530be84
TT
2011fi
2012fi
47935194 2013CC=$ac_cv_prog_CC
1530be84 2014if test -n "$CC"; then
47935194
NN
2015 echo "$as_me:$LINENO: result: $CC" >&5
2016echo "${ECHO_T}$CC" >&6
1530be84 2017else
47935194
NN
2018 echo "$as_me:$LINENO: result: no" >&5
2019echo "${ECHO_T}no" >&6
1530be84
TT
2020fi
2021
47935194
NN
2022fi
2023if test -z "$ac_cv_prog_CC"; then
2024 ac_ct_CC=$CC
2025 # Extract the first word of "cc", so it can be a program name with args.
2026set dummy cc; ac_word=$2
2027echo "$as_me:$LINENO: checking for $ac_word" >&5
2028echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2029if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2030 echo $ECHO_N "(cached) $ECHO_C" >&6
2031else
2032 if test -n "$ac_ct_CC"; then
2033 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2034else
2035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2036for as_dir in $PATH
2037do
2038 IFS=$as_save_IFS
2039 test -z "$as_dir" && as_dir=.
2040 for ac_exec_ext in '' $ac_executable_extensions; do
2041 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2042 ac_cv_prog_ac_ct_CC="cc"
2043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2044 break 2
2045 fi
2046done
2047done
2048
2049fi
2050fi
2051ac_ct_CC=$ac_cv_prog_ac_ct_CC
2052if test -n "$ac_ct_CC"; then
2053 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2054echo "${ECHO_T}$ac_ct_CC" >&6
2055else
2056 echo "$as_me:$LINENO: result: no" >&5
2057echo "${ECHO_T}no" >&6
2058fi
2059
2060 CC=$ac_ct_CC
2061else
2062 CC="$ac_cv_prog_CC"
2063fi
2064
2065fi
1530be84
TT
2066if test -z "$CC"; then
2067 # Extract the first word of "cc", so it can be a program name with args.
2068set dummy cc; ac_word=$2
47935194
NN
2069echo "$as_me:$LINENO: checking for $ac_word" >&5
2070echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2071if test "${ac_cv_prog_CC+set}" = set; then
2072 echo $ECHO_N "(cached) $ECHO_C" >&6
1530be84
TT
2073else
2074 if test -n "$CC"; then
2075 ac_cv_prog_CC="$CC" # Let the user override the test.
2076else
1530be84 2077 ac_prog_rejected=no
47935194
NN
2078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2079for as_dir in $PATH
2080do
2081 IFS=$as_save_IFS
2082 test -z "$as_dir" && as_dir=.
2083 for ac_exec_ext in '' $ac_executable_extensions; do
2084 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2085 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2086 ac_prog_rejected=yes
2087 continue
2088 fi
2089 ac_cv_prog_CC="cc"
2090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2091 break 2
2092 fi
2093done
2094done
2095
1530be84
TT
2096if test $ac_prog_rejected = yes; then
2097 # We found a bogon in the path, so make sure we never use it.
2098 set dummy $ac_cv_prog_CC
2099 shift
47935194 2100 if test $# != 0; then
1530be84
TT
2101 # We chose a different compiler from the bogus one.
2102 # However, it has the same basename, so the bogon will be chosen
2103 # first if we set CC to just the basename; use the full file name.
2104 shift
47935194 2105 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1530be84
TT
2106 fi
2107fi
2108fi
2109fi
47935194 2110CC=$ac_cv_prog_CC
1530be84 2111if test -n "$CC"; then
47935194
NN
2112 echo "$as_me:$LINENO: result: $CC" >&5
2113echo "${ECHO_T}$CC" >&6
1530be84 2114else
47935194
NN
2115 echo "$as_me:$LINENO: result: no" >&5
2116echo "${ECHO_T}no" >&6
1530be84
TT
2117fi
2118
1530be84 2119fi
47935194
NN
2120if test -z "$CC"; then
2121 if test -n "$ac_tool_prefix"; then
2122 for ac_prog in cl
2123 do
2124 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2125set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2126echo "$as_me:$LINENO: checking for $ac_word" >&5
2127echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2128if test "${ac_cv_prog_CC+set}" = set; then
2129 echo $ECHO_N "(cached) $ECHO_C" >&6
1530be84 2130else
47935194
NN
2131 if test -n "$CC"; then
2132 ac_cv_prog_CC="$CC" # Let the user override the test.
1530be84 2133else
47935194
NN
2134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2135for as_dir in $PATH
2136do
2137 IFS=$as_save_IFS
2138 test -z "$as_dir" && as_dir=.
2139 for ac_exec_ext in '' $ac_executable_extensions; do
2140 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2141 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2143 break 2
2144 fi
2145done
2146done
1530be84 2147
1530be84 2148fi
1530be84 2149fi
47935194
NN
2150CC=$ac_cv_prog_CC
2151if test -n "$CC"; then
2152 echo "$as_me:$LINENO: result: $CC" >&5
2153echo "${ECHO_T}$CC" >&6
1530be84 2154else
47935194
NN
2155 echo "$as_me:$LINENO: result: no" >&5
2156echo "${ECHO_T}no" >&6
1530be84
TT
2157fi
2158
47935194
NN
2159 test -n "$CC" && break
2160 done
2161fi
2162if test -z "$CC"; then
2163 ac_ct_CC=$CC
2164 for ac_prog in cl
1530be84 2165do
47935194 2166 # Extract the first word of "$ac_prog", so it can be a program name with args.
1530be84 2167set dummy $ac_prog; ac_word=$2
47935194
NN
2168echo "$as_me:$LINENO: checking for $ac_word" >&5
2169echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2170if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2171 echo $ECHO_N "(cached) $ECHO_C" >&6
1530be84 2172else
47935194
NN
2173 if test -n "$ac_ct_CC"; then
2174 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1530be84 2175else
47935194
NN
2176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2177for as_dir in $PATH
2178do
2179 IFS=$as_save_IFS
2180 test -z "$as_dir" && as_dir=.
2181 for ac_exec_ext in '' $ac_executable_extensions; do
2182 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2183 ac_cv_prog_ac_ct_CC="$ac_prog"
2184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2185 break 2
2186 fi
2187done
2188done
2189
1530be84
TT
2190fi
2191fi
47935194
NN
2192ac_ct_CC=$ac_cv_prog_ac_ct_CC
2193if test -n "$ac_ct_CC"; then
2194 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2195echo "${ECHO_T}$ac_ct_CC" >&6
1530be84 2196else
47935194
NN
2197 echo "$as_me:$LINENO: result: no" >&5
2198echo "${ECHO_T}no" >&6
1530be84
TT
2199fi
2200
47935194 2201 test -n "$ac_ct_CC" && break
1530be84 2202done
1530be84 2203
47935194
NN
2204 CC=$ac_ct_CC
2205fi
2206
2207fi
2208
2209
2210test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2211See \`config.log' for more details." >&5
2212echo "$as_me: error: no acceptable C compiler found in \$PATH
2213See \`config.log' for more details." >&2;}
2214 { (exit 1); exit 1; }; }
2215
2216# Provide some information about the compiler.
2217echo "$as_me:$LINENO:" \
2218 "checking for C compiler version" >&5
2219ac_compiler=`set X $ac_compile; echo $2`
2220{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2221 (eval $ac_compiler --version </dev/null >&5) 2>&5
2222 ac_status=$?
2223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224 (exit $ac_status); }
2225{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2226 (eval $ac_compiler -v </dev/null >&5) 2>&5
2227 ac_status=$?
2228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229 (exit $ac_status); }
2230{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2231 (eval $ac_compiler -V </dev/null >&5) 2>&5
2232 ac_status=$?
2233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234 (exit $ac_status); }
2235
2236cat >conftest.$ac_ext <<_ACEOF
2237/* confdefs.h. */
2238_ACEOF
2239cat confdefs.h >>conftest.$ac_ext
2240cat >>conftest.$ac_ext <<_ACEOF
2241/* end confdefs.h. */
2242
2243int
2244main ()
2245{
2246
2247 ;
2248 return 0;
2249}
2250_ACEOF
2251# FIXME: Cleanup?
2252if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2253 (eval $ac_link) 2>&5
2254 ac_status=$?
2255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256 (exit $ac_status); }; then
2257 gcc_no_link=no
1530be84 2258else
47935194 2259 gcc_no_link=yes
1530be84 2260fi
1530be84 2261
47935194
NN
2262if test x$gcc_no_link = xyes; then
2263 # Setting cross_compile will disable run tests; it will
2264 # also disable AC_CHECK_FILE but that's generally
2265 # correct if we can't link.
2266 cross_compiling=yes
2267 EXEEXT=
1530be84 2268else
47935194
NN
2269 cat >conftest.$ac_ext <<_ACEOF
2270/* confdefs.h. */
2271_ACEOF
2272cat confdefs.h >>conftest.$ac_ext
2273cat >>conftest.$ac_ext <<_ACEOF
2274/* end confdefs.h. */
2275
2276int
2277main ()
2278{
2279
2280 ;
2281 return 0;
2282}
2283_ACEOF
2284ac_clean_files_save=$ac_clean_files
2285ac_clean_files="$ac_clean_files a.out a.exe b.out"
2286# Try to create an executable without -o first, disregard a.out.
2287# It will help us diagnose broken compilers, and finding out an intuition
2288# of exeext.
8ab705be
KC
2289echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2290echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
47935194
NN
2291ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2292if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2293 (eval $ac_link_default) 2>&5
2294 ac_status=$?
2295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2296 (exit $ac_status); }; then
2297 # Find the output, starting from the most likely. This scheme is
2298# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2299# resort.
2300
2301# Be careful to initialize this variable, since it used to be cached.
2302# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2303ac_cv_exeext=
2304# b.out is created by i960 compilers.
2305for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2306do
2307 test -f "$ac_file" || continue
2308 case $ac_file in
2309 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
8ab705be 2310 ;;
47935194 2311 conftest.$ac_ext )
8ab705be
KC
2312 # This is the source file.
2313 ;;
47935194 2314 [ab].out )
8ab705be
KC
2315 # We found the default executable, but exeext='' is most
2316 # certainly right.
2317 break;;
47935194 2318 *.* )
8ab705be
KC
2319 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2320 # FIXME: I believe we export ac_cv_exeext for Libtool,
2321 # but it would be cool to find out if it's true. Does anybody
2322 # maintain Libtool? --akim.
2323 export ac_cv_exeext
2324 break;;
47935194 2325 * )
8ab705be 2326 break;;
47935194
NN
2327 esac
2328done
1530be84 2329else
47935194
NN
2330 echo "$as_me: failed program was:" >&5
2331sed 's/^/| /' conftest.$ac_ext >&5
2332
2333{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2334See \`config.log' for more details." >&5
2335echo "$as_me: error: C compiler cannot create executables
2336See \`config.log' for more details." >&2;}
2337 { (exit 77); exit 77; }; }
2338fi
2339
2340ac_exeext=$ac_cv_exeext
2341echo "$as_me:$LINENO: result: $ac_file" >&5
2342echo "${ECHO_T}$ac_file" >&6
2343
2344# Check the compiler produces executables we can run. If not, either
2345# the compiler is broken, or we cross compile.
2346echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2347echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2348# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2349# If not cross compiling, check that we can run a simple program.
2350if test "$cross_compiling" != yes; then
2351 if { ac_try='./$ac_file'
2352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2353 (eval $ac_try) 2>&5
2354 ac_status=$?
2355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356 (exit $ac_status); }; }; then
2357 cross_compiling=no
1530be84 2358 else
47935194
NN
2359 if test "$cross_compiling" = maybe; then
2360 cross_compiling=yes
2361 else
2362 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2363If you meant to cross compile, use \`--host'.
2364See \`config.log' for more details." >&5
2365echo "$as_me: error: cannot run C compiled programs.
2366If you meant to cross compile, use \`--host'.
2367See \`config.log' for more details." >&2;}
2368 { (exit 1); exit 1; }; }
2369 fi
1530be84 2370 fi
47935194
NN
2371fi
2372echo "$as_me:$LINENO: result: yes" >&5
2373echo "${ECHO_T}yes" >&6
2374
2375rm -f a.out a.exe conftest$ac_cv_exeext b.out
2376ac_clean_files=$ac_clean_files_save
2377# Check the compiler produces executables we can run. If not, either
2378# the compiler is broken, or we cross compile.
2379echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2380echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2381echo "$as_me:$LINENO: result: $cross_compiling" >&5
2382echo "${ECHO_T}$cross_compiling" >&6
2383
2384echo "$as_me:$LINENO: checking for suffix of executables" >&5
2385echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2386if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2387 (eval $ac_link) 2>&5
2388 ac_status=$?
2389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390 (exit $ac_status); }; then
2391 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2392# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2393# work properly (i.e., refer to `conftest.exe'), while it won't with
2394# `rm'.
2395for ac_file in conftest.exe conftest conftest.*; do
2396 test -f "$ac_file" || continue
2397 case $ac_file in
2398 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2399 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
8ab705be
KC
2400 export ac_cv_exeext
2401 break;;
47935194
NN
2402 * ) break;;
2403 esac
2404done
1530be84 2405else
47935194
NN
2406 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2407See \`config.log' for more details." >&5
2408echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2409See \`config.log' for more details." >&2;}
2410 { (exit 1); exit 1; }; }
1530be84
TT
2411fi
2412
47935194
NN
2413rm -f conftest$ac_cv_exeext
2414echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2415echo "${ECHO_T}$ac_cv_exeext" >&6
1530be84 2416
47935194
NN
2417rm -f conftest.$ac_ext
2418EXEEXT=$ac_cv_exeext
2419ac_exeext=$EXEEXT
2420fi
2421echo "$as_me:$LINENO: checking for suffix of object files" >&5
2422echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2423if test "${ac_cv_objext+set}" = set; then
2424 echo $ECHO_N "(cached) $ECHO_C" >&6
1530be84 2425else
47935194
NN
2426 cat >conftest.$ac_ext <<_ACEOF
2427/* confdefs.h. */
2428_ACEOF
2429cat confdefs.h >>conftest.$ac_ext
2430cat >>conftest.$ac_ext <<_ACEOF
2431/* end confdefs.h. */
2432
2433int
2434main ()
2435{
2436
2437 ;
2438 return 0;
2439}
2440_ACEOF
2441rm -f conftest.o conftest.obj
2442if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2443 (eval $ac_compile) 2>&5
2444 ac_status=$?
2445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446 (exit $ac_status); }; then
2447 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2448 case $ac_file in
2449 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2450 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2451 break;;
2452 esac
2453done
1530be84 2454else
47935194
NN
2455 echo "$as_me: failed program was:" >&5
2456sed 's/^/| /' conftest.$ac_ext >&5
2457
2458{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2459See \`config.log' for more details." >&5
2460echo "$as_me: error: cannot compute suffix of object files: cannot compile
2461See \`config.log' for more details." >&2;}
2462 { (exit 1); exit 1; }; }
1530be84 2463fi
47935194
NN
2464
2465rm -f conftest.$ac_cv_objext conftest.$ac_ext
1530be84 2466fi
47935194
NN
2467echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2468echo "${ECHO_T}$ac_cv_objext" >&6
2469OBJEXT=$ac_cv_objext
2470ac_objext=$OBJEXT
2471echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2472echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2473if test "${ac_cv_c_compiler_gnu+set}" = set; then
2474 echo $ECHO_N "(cached) $ECHO_C" >&6
1530be84 2475else
47935194
NN
2476 cat >conftest.$ac_ext <<_ACEOF
2477/* confdefs.h. */
2478_ACEOF
2479cat confdefs.h >>conftest.$ac_ext
2480cat >>conftest.$ac_ext <<_ACEOF
2481/* end confdefs.h. */
2482
2483int
2484main ()
2485{
2486#ifndef __GNUC__
2487 choke me
2488#endif
1530be84 2489
47935194
NN
2490 ;
2491 return 0;
2492}
2493_ACEOF
2494rm -f conftest.$ac_objext
2495if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8ab705be 2496 (eval $ac_compile) 2>conftest.er1
47935194 2497 ac_status=$?
8ab705be
KC
2498 grep -v '^ *+' conftest.er1 >conftest.err
2499 rm -f conftest.er1
2500 cat conftest.err >&5
47935194
NN
2501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502 (exit $ac_status); } &&
5572488d
KC
2503 { ac_try='test -z "$ac_c_werror_flag"
2504 || test ! -s conftest.err'
8ab705be
KC
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); }; } &&
2510 { ac_try='test -s conftest.$ac_objext'
47935194
NN
2511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2512 (eval $ac_try) 2>&5
2513 ac_status=$?
2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515 (exit $ac_status); }; }; then
2516 ac_compiler_gnu=yes
2517else
2518 echo "$as_me: failed program was:" >&5
2519sed 's/^/| /' conftest.$ac_ext >&5
1530be84 2520
47935194
NN
2521ac_compiler_gnu=no
2522fi
8ab705be 2523rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47935194 2524ac_cv_c_compiler_gnu=$ac_compiler_gnu
1530be84 2525
47935194
NN
2526fi
2527echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2528echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2529GCC=`test $ac_compiler_gnu = yes && echo yes`
2530ac_test_CFLAGS=${CFLAGS+set}
2531ac_save_CFLAGS=$CFLAGS
2532CFLAGS="-g"
2533echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2534echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2535if test "${ac_cv_prog_cc_g+set}" = set; then
2536 echo $ECHO_N "(cached) $ECHO_C" >&6
1530be84 2537else
47935194
NN
2538 cat >conftest.$ac_ext <<_ACEOF
2539/* confdefs.h. */
2540_ACEOF
2541cat confdefs.h >>conftest.$ac_ext
2542cat >>conftest.$ac_ext <<_ACEOF
2543/* end confdefs.h. */
2544
2545int
2546main ()
2547{
2548
2549 ;
2550 return 0;
2551}
2552_ACEOF
2553rm -f conftest.$ac_objext
2554if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8ab705be 2555 (eval $ac_compile) 2>conftest.er1
47935194 2556 ac_status=$?
8ab705be
KC
2557 grep -v '^ *+' conftest.er1 >conftest.err
2558 rm -f conftest.er1
2559 cat conftest.err >&5
47935194
NN
2560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561 (exit $ac_status); } &&
5572488d
KC
2562 { ac_try='test -z "$ac_c_werror_flag"
2563 || test ! -s conftest.err'
8ab705be
KC
2564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2565 (eval $ac_try) 2>&5
2566 ac_status=$?
2567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568 (exit $ac_status); }; } &&
2569 { ac_try='test -s conftest.$ac_objext'
47935194
NN
2570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2571 (eval $ac_try) 2>&5
2572 ac_status=$?
2573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574 (exit $ac_status); }; }; then
2575 ac_cv_prog_cc_g=yes
1530be84 2576else
47935194
NN
2577 echo "$as_me: failed program was:" >&5
2578sed 's/^/| /' conftest.$ac_ext >&5
2579
2580ac_cv_prog_cc_g=no
2581fi
8ab705be 2582rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47935194
NN
2583fi
2584echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2585echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2586if test "$ac_test_CFLAGS" = set; then
2587 CFLAGS=$ac_save_CFLAGS
2588elif test $ac_cv_prog_cc_g = yes; then
2589 if test "$GCC" = yes; then
2590 CFLAGS="-g -O2"
2591 else
2592 CFLAGS="-g"
2593 fi
2594else
2595 if test "$GCC" = yes; then
2596 CFLAGS="-O2"
2597 else
2598 CFLAGS=
2599 fi
2600fi
2601echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2602echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2603if test "${ac_cv_prog_cc_stdc+set}" = set; then
2604 echo $ECHO_N "(cached) $ECHO_C" >&6
2605else
2606 ac_cv_prog_cc_stdc=no
2607ac_save_CC=$CC
2608cat >conftest.$ac_ext <<_ACEOF
2609/* confdefs.h. */
2610_ACEOF
2611cat confdefs.h >>conftest.$ac_ext
2612cat >>conftest.$ac_ext <<_ACEOF
2613/* end confdefs.h. */
2614#include <stdarg.h>
2615#include <stdio.h>
2616#include <sys/types.h>
2617#include <sys/stat.h>
2618/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2619struct buf { int x; };
2620FILE * (*rcsopen) (struct buf *, struct stat *, int);
2621static char *e (p, i)
2622 char **p;
2623 int i;
2624{
2625 return p[i];
2626}
2627static char *f (char * (*g) (char **, int), char **p, ...)
2628{
2629 char *s;
2630 va_list v;
2631 va_start (v,p);
2632 s = g (p, va_arg (v,int));
2633 va_end (v);
2634 return s;
2635}
8ab705be
KC
2636
2637/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2638 function prototypes and stuff, but not '\xHH' hex character constants.
2639 These don't provoke an error unfortunately, instead are silently treated
2640 as 'x'. The following induces an error, until -std1 is added to get
2641 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2642 array size at least. It's necessary to write '\x00'==0 to get something
2643 that's true only with -std1. */
2644int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2645
47935194
NN
2646int test (int i, double x);
2647struct s1 {int (*f) (int a);};
2648struct s2 {int (*f) (double a);};
2649int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2650int argc;
2651char **argv;
2652int
2653main ()
2654{
2655return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2656 ;
2657 return 0;
2658}
2659_ACEOF
2660# Don't try gcc -ansi; that turns off useful extensions and
2661# breaks some systems' header files.
2662# AIX -qlanglvl=ansi
2663# Ultrix and OSF/1 -std1
2664# HP-UX 10.20 and later -Ae
2665# HP-UX older versions -Aa -D_HPUX_SOURCE
2666# SVR4 -Xc -D__EXTENSIONS__
2667for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2668do
2669 CC="$ac_save_CC $ac_arg"
2670 rm -f conftest.$ac_objext
2671if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8ab705be 2672 (eval $ac_compile) 2>conftest.er1
47935194 2673 ac_status=$?
8ab705be
KC
2674 grep -v '^ *+' conftest.er1 >conftest.err
2675 rm -f conftest.er1
2676 cat conftest.err >&5
47935194
NN
2677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678 (exit $ac_status); } &&
5572488d
KC
2679 { ac_try='test -z "$ac_c_werror_flag"
2680 || test ! -s conftest.err'
8ab705be
KC
2681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2682 (eval $ac_try) 2>&5
2683 ac_status=$?
2684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685 (exit $ac_status); }; } &&
2686 { ac_try='test -s conftest.$ac_objext'
47935194
NN
2687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2688 (eval $ac_try) 2>&5
2689 ac_status=$?
2690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691 (exit $ac_status); }; }; then
2692 ac_cv_prog_cc_stdc=$ac_arg
2693break
2694else
2695 echo "$as_me: failed program was:" >&5
2696sed 's/^/| /' conftest.$ac_ext >&5
2697
2698fi
8ab705be 2699rm -f conftest.err conftest.$ac_objext
47935194
NN
2700done
2701rm -f conftest.$ac_ext conftest.$ac_objext
2702CC=$ac_save_CC
2703
2704fi
2705
2706case "x$ac_cv_prog_cc_stdc" in
2707 x|xno)
2708 echo "$as_me:$LINENO: result: none needed" >&5
2709echo "${ECHO_T}none needed" >&6 ;;
2710 *)
2711 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2712echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2713 CC="$CC $ac_cv_prog_cc_stdc" ;;
2714esac
2715
2716# Some people use a C++ compiler to compile C. Since we use `exit',
2717# in C++ we need to declare it. In case someone uses the same compiler
2718# for both compiling C and C++ we need to have the C++ compiler decide
2719# the declaration of exit, since it's the most demanding environment.
2720cat >conftest.$ac_ext <<_ACEOF
2721#ifndef __cplusplus
2722 choke me
2723#endif
2724_ACEOF
2725rm -f conftest.$ac_objext
2726if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8ab705be 2727 (eval $ac_compile) 2>conftest.er1
47935194 2728 ac_status=$?
8ab705be
KC
2729 grep -v '^ *+' conftest.er1 >conftest.err
2730 rm -f conftest.er1
2731 cat conftest.err >&5
47935194
NN
2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733 (exit $ac_status); } &&
5572488d
KC
2734 { ac_try='test -z "$ac_c_werror_flag"
2735 || test ! -s conftest.err'
8ab705be
KC
2736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2737 (eval $ac_try) 2>&5
2738 ac_status=$?
2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740 (exit $ac_status); }; } &&
2741 { ac_try='test -s conftest.$ac_objext'
47935194
NN
2742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2743 (eval $ac_try) 2>&5
2744 ac_status=$?
2745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746 (exit $ac_status); }; }; then
2747 for ac_declaration in \
2748 '' \
2749 'extern "C" void std::exit (int) throw (); using std::exit;' \
2750 'extern "C" void std::exit (int); using std::exit;' \
2751 'extern "C" void exit (int) throw ();' \
2752 'extern "C" void exit (int);' \
2753 'void exit (int);'
2754do
2755 cat >conftest.$ac_ext <<_ACEOF
2756/* confdefs.h. */
2757_ACEOF
2758cat confdefs.h >>conftest.$ac_ext
2759cat >>conftest.$ac_ext <<_ACEOF
2760/* end confdefs.h. */
2761$ac_declaration
2762#include <stdlib.h>
2763int
2764main ()
2765{
2766exit (42);
2767 ;
2768 return 0;
2769}
2770_ACEOF
2771rm -f conftest.$ac_objext
2772if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8ab705be 2773 (eval $ac_compile) 2>conftest.er1
47935194 2774 ac_status=$?
8ab705be
KC
2775 grep -v '^ *+' conftest.er1 >conftest.err
2776 rm -f conftest.er1
2777 cat conftest.err >&5
47935194
NN
2778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779 (exit $ac_status); } &&
5572488d
KC
2780 { ac_try='test -z "$ac_c_werror_flag"
2781 || test ! -s conftest.err'
8ab705be
KC
2782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2783 (eval $ac_try) 2>&5
2784 ac_status=$?
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); }; } &&
2787 { ac_try='test -s conftest.$ac_objext'
47935194
NN
2788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2789 (eval $ac_try) 2>&5
2790 ac_status=$?
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); }; }; then
2793 :
2794else
2795 echo "$as_me: failed program was:" >&5
2796sed 's/^/| /' conftest.$ac_ext >&5
2797
2798continue
2799fi
8ab705be 2800rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47935194
NN
2801 cat >conftest.$ac_ext <<_ACEOF
2802/* confdefs.h. */
2803_ACEOF
2804cat confdefs.h >>conftest.$ac_ext
2805cat >>conftest.$ac_ext <<_ACEOF
2806/* end confdefs.h. */
2807$ac_declaration
2808int
2809main ()
2810{
2811exit (42);
2812 ;
2813 return 0;
2814}
2815_ACEOF
2816rm -f conftest.$ac_objext
2817if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8ab705be 2818 (eval $ac_compile) 2>conftest.er1
47935194 2819 ac_status=$?
8ab705be
KC
2820 grep -v '^ *+' conftest.er1 >conftest.err
2821 rm -f conftest.er1
2822 cat conftest.err >&5
47935194
NN
2823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824 (exit $ac_status); } &&
5572488d
KC
2825 { ac_try='test -z "$ac_c_werror_flag"
2826 || test ! -s conftest.err'
8ab705be
KC
2827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2828 (eval $ac_try) 2>&5
2829 ac_status=$?
2830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831 (exit $ac_status); }; } &&
2832 { ac_try='test -s conftest.$ac_objext'
47935194
NN
2833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2834 (eval $ac_try) 2>&5
2835 ac_status=$?
2836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837 (exit $ac_status); }; }; then
2838 break
2839else
2840 echo "$as_me: failed program was:" >&5
2841sed 's/^/| /' conftest.$ac_ext >&5
2842
2843fi
8ab705be 2844rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47935194
NN
2845done
2846rm -f conftest*
2847if test -n "$ac_declaration"; then
2848 echo '#ifdef __cplusplus' >>confdefs.h
2849 echo $ac_declaration >>confdefs.h
2850 echo '#endif' >>confdefs.h
2851fi
2852
2853else
2854 echo "$as_me: failed program was:" >&5
2855sed 's/^/| /' conftest.$ac_ext >&5
2856
2857fi
8ab705be 2858rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47935194
NN
2859ac_ext=c
2860ac_cpp='$CPP $CPPFLAGS'
2861ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2862ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2863ac_compiler_gnu=$ac_cv_c_compiler_gnu
bf9a420e
PB
2864DEPDIR="${am__leading_dot}deps"
2865
2866 ac_config_commands="$ac_config_commands depfiles"
2867
2868
2869am_make=${MAKE-make}
2870cat > confinc << 'END'
2871am__doit:
2872 @echo done
2873.PHONY: am__doit
2874END
2875# If we don't find an include directive, just comment out the code.
2876echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2877echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2878am__include="#"
2879am__quote=
2880_am_result=none
2881# First try GNU make style include.
2882echo "include confinc" > confmf
2883# We grep out `Entering directory' and `Leaving directory'
2884# messages which can occur if `w' ends up in MAKEFLAGS.
2885# In particular we don't look at `^make:' because GNU make might
2886# be invoked under some other name (usually "gmake"), in which
2887# case it prints its new name instead of `make'.
2888if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2889 am__include=include
2890 am__quote=
2891 _am_result=GNU
2892fi
2893# Now try BSD make style include.
2894if test "$am__include" = "#"; then
2895 echo '.include "confinc"' > confmf
2896 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2897 am__include=.include
2898 am__quote="\""
2899 _am_result=BSD
2900 fi
2901fi
2902
2903
2904echo "$as_me:$LINENO: result: $_am_result" >&5
2905echo "${ECHO_T}$_am_result" >&6
2906rm -f confinc confmf
2907
2908# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2909if test "${enable_dependency_tracking+set}" = set; then
2910 enableval="$enable_dependency_tracking"
2911
2912fi;
2913if test "x$enable_dependency_tracking" != xno; then
2914 am_depcomp="$ac_aux_dir/depcomp"
2915 AMDEPBACKSLASH='\'
2916fi
2917
2918
2919if test "x$enable_dependency_tracking" != xno; then
2920 AMDEP_TRUE=
2921 AMDEP_FALSE='#'
2922else
2923 AMDEP_TRUE='#'
2924 AMDEP_FALSE=
2925fi
2926
2927
2928
2929
2930depcc="$CC" am_compiler_list=
2931
2932echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2933echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2934if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2935 echo $ECHO_N "(cached) $ECHO_C" >&6
2936else
2937 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2938 # We make a subdir and do the tests there. Otherwise we can end up
2939 # making bogus files that we don't know about and never remove. For
2940 # instance it was reported that on HP-UX the gcc test will end up
2941 # making a dummy file named `D' -- because `-MD' means `put the output
2942 # in D'.
2943 mkdir conftest.dir
2944 # Copy depcomp to subdir because otherwise we won't find it if we're
2945 # using a relative directory.
2946 cp "$am_depcomp" conftest.dir
2947 cd conftest.dir
2948 # We will build objects and dependencies in a subdirectory because
2949 # it helps to detect inapplicable dependency modes. For instance
2950 # both Tru64's cc and ICC support -MD to output dependencies as a
2951 # side effect of compilation, but ICC will put the dependencies in
2952 # the current directory while Tru64 will put them in the object
2953 # directory.
2954 mkdir sub
2955
2956 am_cv_CC_dependencies_compiler_type=none
2957 if test "$am_compiler_list" = ""; then
2958 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2959 fi
2960 for depmode in $am_compiler_list; do
2961 # Setup a source with many dependencies, because some compilers
2962 # like to wrap large dependency lists on column 80 (with \), and
2963 # we should not choose a depcomp mode which is confused by this.
2964 #
2965 # We need to recreate these files for each test, as the compiler may
2966 # overwrite some of them when testing with obscure command lines.
2967 # This happens at least with the AIX C compiler.
2968 : > sub/conftest.c
2969 for i in 1 2 3 4 5 6; do
2970 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2971 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2972 # Solaris 8's {/usr,}/bin/sh.
2973 touch sub/conftst$i.h
2974 done
2975 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2976
2977 case $depmode in
2978 nosideeffect)
2979 # after this tag, mechanisms are not by side-effect, so they'll
2980 # only be used when explicitly requested
2981 if test "x$enable_dependency_tracking" = xyes; then
2982 continue
2983 else
2984 break
2985 fi
2986 ;;
2987 none) break ;;
2988 esac
2989 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2990 # mode. It turns out that the SunPro C++ compiler does not properly
2991 # handle `-M -o', and we need to detect this.
2992 if depmode=$depmode \
2993 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2994 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2995 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2996 >/dev/null 2>conftest.err &&
2997 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2998 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2999 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3000 # icc doesn't choke on unknown options, it will just issue warnings
3001 # or remarks (even with -Werror). So we grep stderr for any message
3002 # that says an option was ignored or not supported.
3003 # When given -MP, icc 7.0 and 7.1 complain thusly:
3004 # icc: Command line warning: ignoring option '-M'; no argument required
3005 # The diagnosis changed in icc 8.0:
3006 # icc: Command line remark: option '-MP' not supported
3007 if (grep 'ignoring option' conftest.err ||
3008 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3009 am_cv_CC_dependencies_compiler_type=$depmode
3010 break
3011 fi
3012 fi
3013 done
3014
3015 cd ..
3016 rm -rf conftest.dir
3017else
3018 am_cv_CC_dependencies_compiler_type=none
3019fi
3020
3021fi
3022echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3023echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3024CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3025
3026
3027
3028if
3029 test "x$enable_dependency_tracking" != xno \
3030 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3031 am__fastdepCC_TRUE=
3032 am__fastdepCC_FALSE='#'
3033else
3034 am__fastdepCC_TRUE='#'
3035 am__fastdepCC_FALSE=
3036fi
3037
47935194
NN
3038
3039ac_ext=cc
3040ac_cpp='$CXXCPP $CPPFLAGS'
3041ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3042ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3043ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3044if test -n "$ac_tool_prefix"; then
3045 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3046 do
3047 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3048set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3049echo "$as_me:$LINENO: checking for $ac_word" >&5
3050echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3051if test "${ac_cv_prog_CXX+set}" = set; then
3052 echo $ECHO_N "(cached) $ECHO_C" >&6
3053else
3054 if test -n "$CXX"; then
3055 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3056else
3057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3058for as_dir in $PATH
3059do
3060 IFS=$as_save_IFS
3061 test -z "$as_dir" && as_dir=.
3062 for ac_exec_ext in '' $ac_executable_extensions; do
3063 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3064 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3066 break 2
3067 fi
3068done
3069done
3070
3071fi
3072fi
3073CXX=$ac_cv_prog_CXX
3074if test -n "$CXX"; then
3075 echo "$as_me:$LINENO: result: $CXX" >&5
3076echo "${ECHO_T}$CXX" >&6
3077else
3078 echo "$as_me:$LINENO: result: no" >&5
3079echo "${ECHO_T}no" >&6
3080fi
3081
3082 test -n "$CXX" && break
1530be84 3083 done
47935194
NN
3084fi
3085if test -z "$CXX"; then
3086 ac_ct_CXX=$CXX
3087 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3088do
3089 # Extract the first word of "$ac_prog", so it can be a program name with args.
3090set dummy $ac_prog; ac_word=$2
3091echo "$as_me:$LINENO: checking for $ac_word" >&5
3092echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3093if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3094 echo $ECHO_N "(cached) $ECHO_C" >&6
3095else
3096 if test -n "$ac_ct_CXX"; then
3097 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3098else
3099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3100for as_dir in $PATH
3101do
3102 IFS=$as_save_IFS
3103 test -z "$as_dir" && as_dir=.
3104 for ac_exec_ext in '' $ac_executable_extensions; do
3105 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3106 ac_cv_prog_ac_ct_CXX="$ac_prog"
3107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3108 break 2
3109 fi
3110done
3111done
3112
3113fi
3114fi
3115ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3116if test -n "$ac_ct_CXX"; then
3117 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3118echo "${ECHO_T}$ac_ct_CXX" >&6
3119else
3120 echo "$as_me:$LINENO: result: no" >&5
3121echo "${ECHO_T}no" >&6
3122fi
3123
3124 test -n "$ac_ct_CXX" && break
3125done
3126test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3127
3128 CXX=$ac_ct_CXX
3129fi
3130
3131
3132# Provide some information about the compiler.
3133echo "$as_me:$LINENO:" \
3134 "checking for C++ compiler version" >&5
3135ac_compiler=`set X $ac_compile; echo $2`
3136{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3137 (eval $ac_compiler --version </dev/null >&5) 2>&5
3138 ac_status=$?
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); }
3141{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3142 (eval $ac_compiler -v </dev/null >&5) 2>&5
3143 ac_status=$?
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); }
3146{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3147 (eval $ac_compiler -V </dev/null >&5) 2>&5
3148 ac_status=$?
3149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150 (exit $ac_status); }
3151
3152echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3153echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3154if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3155 echo $ECHO_N "(cached) $ECHO_C" >&6
3156else
3157 cat >conftest.$ac_ext <<_ACEOF
3158/* confdefs.h. */
3159_ACEOF
3160cat confdefs.h >>conftest.$ac_ext
3161cat >>conftest.$ac_ext <<_ACEOF
3162/* end confdefs.h. */
3163
3164int
3165main ()
3166{
3167#ifndef __GNUC__
3168 choke me
3169#endif
3170
3171 ;
3172 return 0;
3173}
3174_ACEOF
3175rm -f conftest.$ac_objext
3176if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8ab705be 3177 (eval $ac_compile) 2>conftest.er1
47935194 3178 ac_status=$?
8ab705be
KC
3179 grep -v '^ *+' conftest.er1 >conftest.err
3180 rm -f conftest.er1
3181 cat conftest.err >&5
47935194
NN
3182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183 (exit $ac_status); } &&
5572488d
KC
3184 { ac_try='test -z "$ac_cxx_werror_flag"
3185 || test ! -s conftest.err'
8ab705be
KC
3186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3187 (eval $ac_try) 2>&5
3188 ac_status=$?
3189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190 (exit $ac_status); }; } &&
3191 { ac_try='test -s conftest.$ac_objext'
47935194
NN
3192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3193 (eval $ac_try) 2>&5
3194 ac_status=$?
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); }; }; then
3197 ac_compiler_gnu=yes
3198else
3199 echo "$as_me: failed program was:" >&5
3200sed 's/^/| /' conftest.$ac_ext >&5
3201
3202ac_compiler_gnu=no
3203fi
8ab705be 3204rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47935194
NN
3205ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3206
3207fi
3208echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3209echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3210GXX=`test $ac_compiler_gnu = yes && echo yes`
3211ac_test_CXXFLAGS=${CXXFLAGS+set}
3212ac_save_CXXFLAGS=$CXXFLAGS
3213CXXFLAGS="-g"
3214echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3215echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3216if test "${ac_cv_prog_cxx_g+set}" = set; then
3217 echo $ECHO_N "(cached) $ECHO_C" >&6
3218else
3219 cat >conftest.$ac_ext <<_ACEOF
3220/* confdefs.h. */
3221_ACEOF
3222cat confdefs.h >>conftest.$ac_ext
3223cat >>conftest.$ac_ext <<_ACEOF
3224/* end confdefs.h. */
3225
3226int
3227main ()
3228{
3229
3230 ;
3231 return 0;
3232}
3233_ACEOF
3234rm -f conftest.$ac_objext
3235if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8ab705be 3236 (eval $ac_compile) 2>conftest.er1
47935194 3237 ac_status=$?
8ab705be
KC
3238 grep -v '^ *+' conftest.er1 >conftest.err
3239 rm -f conftest.er1
3240 cat conftest.err >&5
47935194
NN
3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 (exit $ac_status); } &&
5572488d
KC
3243 { ac_try='test -z "$ac_cxx_werror_flag"
3244 || test ! -s conftest.err'
8ab705be
KC
3245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3246 (eval $ac_try) 2>&5
3247 ac_status=$?
3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249 (exit $ac_status); }; } &&
3250 { ac_try='test -s conftest.$ac_objext'
47935194
NN
3251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3252 (eval $ac_try) 2>&5
3253 ac_status=$?
3254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255 (exit $ac_status); }; }; then
3256 ac_cv_prog_cxx_g=yes
3257else
3258 echo "$as_me: failed program was:" >&5
3259sed 's/^/| /' conftest.$ac_ext >&5
3260
3261ac_cv_prog_cxx_g=no
3262fi
8ab705be 3263rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47935194
NN
3264fi
3265echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3266echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3267if test "$ac_test_CXXFLAGS" = set; then
3268 CXXFLAGS=$ac_save_CXXFLAGS
3269elif test $ac_cv_prog_cxx_g = yes; then
3270 if test "$GXX" = yes; then
3271 CXXFLAGS="-g -O2"
3272 else
3273 CXXFLAGS="-g"
3274 fi
3275else
3276 if test "$GXX" = yes; then
3277 CXXFLAGS="-O2"
3278 else
3279 CXXFLAGS=
3280 fi
3281fi
3282for ac_declaration in \
3283 '' \
3284 'extern "C" void std::exit (int) throw (); using std::exit;' \
3285 'extern "C" void std::exit (int); using std::exit;' \
3286 'extern "C" void exit (int) throw ();' \
3287 'extern "C" void exit (int);' \
3288 'void exit (int);'
3289do
3290 cat >conftest.$ac_ext <<_ACEOF
3291/* confdefs.h. */
3292_ACEOF
3293cat confdefs.h >>conftest.$ac_ext
3294cat >>conftest.$ac_ext <<_ACEOF
3295/* end confdefs.h. */
3296$ac_declaration
3297#include <stdlib.h>
3298int
3299main ()
3300{
3301exit (42);
3302 ;
3303 return 0;
3304}
3305_ACEOF
3306rm -f conftest.$ac_objext
3307if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8ab705be 3308 (eval $ac_compile) 2>conftest.er1
47935194 3309 ac_status=$?
8ab705be
KC
3310 grep -v '^ *+' conftest.er1 >conftest.err
3311 rm -f conftest.er1
3312 cat conftest.err >&5
47935194
NN
3313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314 (exit $ac_status); } &&
5572488d
KC
3315 { ac_try='test -z "$ac_cxx_werror_flag"
3316 || test ! -s conftest.err'
8ab705be
KC
3317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3318 (eval $ac_try) 2>&5
3319 ac_status=$?
3320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3321 (exit $ac_status); }; } &&
3322 { ac_try='test -s conftest.$ac_objext'
47935194
NN
3323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3324 (eval $ac_try) 2>&5
3325 ac_status=$?
3326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327 (exit $ac_status); }; }; then
3328 :
3329else
3330 echo "$as_me: failed program was:" >&5
3331sed 's/^/| /' conftest.$ac_ext >&5
3332
3333continue
3334fi
8ab705be 3335rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47935194
NN
3336 cat >conftest.$ac_ext <<_ACEOF
3337/* confdefs.h. */
3338_ACEOF
3339cat confdefs.h >>conftest.$ac_ext
3340cat >>conftest.$ac_ext <<_ACEOF
3341/* end confdefs.h. */
3342$ac_declaration
3343int
3344main ()
3345{
3346exit (42);
3347 ;
3348 return 0;
3349}
3350_ACEOF
3351rm -f conftest.$ac_objext
3352if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8ab705be 3353 (eval $ac_compile) 2>conftest.er1
47935194 3354 ac_status=$?
8ab705be
KC
3355 grep -v '^ *+' conftest.er1 >conftest.err
3356 rm -f conftest.er1
3357 cat conftest.err >&5
47935194
NN
3358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359 (exit $ac_status); } &&
5572488d
KC
3360 { ac_try='test -z "$ac_cxx_werror_flag"
3361 || test ! -s conftest.err'
8ab705be
KC
3362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3363 (eval $ac_try) 2>&5
3364 ac_status=$?
3365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366 (exit $ac_status); }; } &&
3367 { ac_try='test -s conftest.$ac_objext'
47935194
NN
3368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3369 (eval $ac_try) 2>&5
3370 ac_status=$?
3371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372 (exit $ac_status); }; }; then
3373 break
3374else
3375 echo "$as_me: failed program was:" >&5
3376sed 's/^/| /' conftest.$ac_ext >&5
3377
3378fi
8ab705be 3379rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47935194
NN
3380done
3381rm -f conftest*
3382if test -n "$ac_declaration"; then
3383 echo '#ifdef __cplusplus' >>confdefs.h
3384 echo $ac_declaration >>confdefs.h
3385 echo '#endif' >>confdefs.h
3386fi
3387
3388ac_ext=c
3389ac_cpp='$CPP $CPPFLAGS'
3390ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3391ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3392ac_compiler_gnu=$ac_cv_c_compiler_gnu
3393
bf9a420e
PB
3394depcc="$CXX" am_compiler_list=
3395
3396echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3397echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3398if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3399 echo $ECHO_N "(cached) $ECHO_C" >&6
3400else
3401 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3402 # We make a subdir and do the tests there. Otherwise we can end up
3403 # making bogus files that we don't know about and never remove. For
3404 # instance it was reported that on HP-UX the gcc test will end up
3405 # making a dummy file named `D' -- because `-MD' means `put the output
3406 # in D'.
3407 mkdir conftest.dir
3408 # Copy depcomp to subdir because otherwise we won't find it if we're
3409 # using a relative directory.
3410 cp "$am_depcomp" conftest.dir
3411 cd conftest.dir
3412 # We will build objects and dependencies in a subdirectory because
3413 # it helps to detect inapplicable dependency modes. For instance
3414 # both Tru64's cc and ICC support -MD to output dependencies as a
3415 # side effect of compilation, but ICC will put the dependencies in
3416 # the current directory while Tru64 will put them in the object
3417 # directory.
3418 mkdir sub
3419
3420 am_cv_CXX_dependencies_compiler_type=none
3421 if test "$am_compiler_list" = ""; then
3422 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3423 fi
3424 for depmode in $am_compiler_list; do
3425 # Setup a source with many dependencies, because some compilers
3426 # like to wrap large dependency lists on column 80 (with \), and
3427 # we should not choose a depcomp mode which is confused by this.
3428 #
3429 # We need to recreate these files for each test, as the compiler may
3430 # overwrite some of them when testing with obscure command lines.
3431 # This happens at least with the AIX C compiler.
3432 : > sub/conftest.c
3433 for i in 1 2 3 4 5 6; do
3434 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3435 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3436 # Solaris 8's {/usr,}/bin/sh.
3437 touch sub/conftst$i.h
3438 done
3439 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3440
3441 case $depmode in
3442 nosideeffect)
3443 # after this tag, mechanisms are not by side-effect, so they'll
3444 # only be used when explicitly requested
3445 if test "x$enable_dependency_tracking" = xyes; then
3446 continue
3447 else
3448 break
3449 fi
3450 ;;
3451 none) break ;;
3452 esac
3453 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3454 # mode. It turns out that the SunPro C++ compiler does not properly
3455 # handle `-M -o', and we need to detect this.
3456 if depmode=$depmode \
3457 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3458 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3459 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3460 >/dev/null 2>conftest.err &&
3461 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3462 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3463 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3464 # icc doesn't choke on unknown options, it will just issue warnings
3465 # or remarks (even with -Werror). So we grep stderr for any message
3466 # that says an option was ignored or not supported.
3467 # When given -MP, icc 7.0 and 7.1 complain thusly:
3468 # icc: Command line warning: ignoring option '-M'; no argument required
3469 # The diagnosis changed in icc 8.0:
3470 # icc: Command line remark: option '-MP' not supported
3471 if (grep 'ignoring option' conftest.err ||
3472 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3473 am_cv_CXX_dependencies_compiler_type=$depmode
3474 break
3475 fi
3476 fi
3477 done
3478
3479 cd ..
3480 rm -rf conftest.dir
3481else
3482 am_cv_CXX_dependencies_compiler_type=none
3483fi
3484
3485fi
3486echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3487echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3488CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3489
3490
3491
3492if
3493 test "x$enable_dependency_tracking" != xno \
3494 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3495 am__fastdepCXX_TRUE=
3496 am__fastdepCXX_FALSE='#'
3497else
3498 am__fastdepCXX_TRUE='#'
3499 am__fastdepCXX_FALSE=
3500fi
3501
3502
3503
3504
3505if test "x$CC" != xcc; then
3506 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3507echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
3508else
3509 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3510echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
3511fi
3512set dummy $CC; ac_cc=`echo $2 |
3513 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3514if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
3515 echo $ECHO_N "(cached) $ECHO_C" >&6
3516else
3517 cat >conftest.$ac_ext <<_ACEOF
3518/* confdefs.h. */
3519_ACEOF
3520cat confdefs.h >>conftest.$ac_ext
3521cat >>conftest.$ac_ext <<_ACEOF
3522/* end confdefs.h. */
3523
3524int
3525main ()
3526{
3527
3528 ;
3529 return 0;
3530}
3531_ACEOF
3532# Make sure it works both with $CC and with simple cc.
3533# We do the test twice because some compilers refuse to overwrite an
3534# existing .o file with -o, though they will create one.
3535ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3536if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3537 (eval $ac_try) 2>&5
3538 ac_status=$?
3539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3540 (exit $ac_status); } &&
3541 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3542 (eval $ac_try) 2>&5
3543 ac_status=$?
3544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545 (exit $ac_status); };
3546then
3547 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3548 if test "x$CC" != xcc; then
3549 # Test first that cc exists at all.
3550 if { ac_try='cc -c conftest.$ac_ext >&5'
3551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3552 (eval $ac_try) 2>&5
3553 ac_status=$?
3554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555 (exit $ac_status); }; }; then
3556 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3557 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3558 (eval $ac_try) 2>&5
3559 ac_status=$?
3560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561 (exit $ac_status); } &&
3562 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3563 (eval $ac_try) 2>&5
3564 ac_status=$?
3565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3566 (exit $ac_status); };
3567 then
3568 # cc works too.
3569 :
3570 else
3571 # cc exists but doesn't like -o.
3572 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3573 fi
3574 fi
3575 fi
3576else
3577 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3578fi
3579rm -f conftest*
3580
3581fi
3582if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3583 echo "$as_me:$LINENO: result: yes" >&5
3584echo "${ECHO_T}yes" >&6
3585else
3586 echo "$as_me:$LINENO: result: no" >&5
3587echo "${ECHO_T}no" >&6
3588
3589cat >>confdefs.h <<\_ACEOF
3590#define NO_MINUS_C_MINUS_O 1
3591_ACEOF
3592
3593fi
3594
3595# FIXME: we rely on the cache variable name because
3596# there is no other way.
3597set dummy $CC
3598ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3599if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3600 # Losing compiler, so override with the script.
3601 # FIXME: It is wrong to rewrite CC.
3602 # But if we don't then we get into trouble of one sort or another.
3603 # A longer-term fix would be to have automake use am__CC in this case,
3604 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3605 CC="$am_aux_dir/compile $CC"
3606fi
47935194 3607
e22db4bf
NN
3608
3609
3610
3611
7664e6f8
NN
3612# Newer automakes demand CCAS and CCASFLAGS.
3613: ${CCAS='$(CC)'}
3614: ${CCASFLAGS='$(CFLAGS)'}
3615
3616
3617
47935194
NN
3618if test -n "$ac_tool_prefix"; then
3619 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3620set dummy ${ac_tool_prefix}as; ac_word=$2
3621echo "$as_me:$LINENO: checking for $ac_word" >&5
3622echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3623if test "${ac_cv_prog_AS+set}" = set; then
3624 echo $ECHO_N "(cached) $ECHO_C" >&6
3625else
3626 if test -n "$AS"; then
3627 ac_cv_prog_AS="$AS" # Let the user override the test.
3628else
3629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3630for as_dir in $PATH
3631do
3632 IFS=$as_save_IFS
3633 test -z "$as_dir" && as_dir=.
3634 for ac_exec_ext in '' $ac_executable_extensions; do
3635 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3636 ac_cv_prog_AS="${ac_tool_prefix}as"
3637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3638 break 2
3639 fi
3640done
3641done
3642
3643fi
3644fi
3645AS=$ac_cv_prog_AS
3646if test -n "$AS"; then
3647 echo "$as_me:$LINENO: result: $AS" >&5
3648echo "${ECHO_T}$AS" >&6
3649else
3650 echo "$as_me:$LINENO: result: no" >&5
3651echo "${ECHO_T}no" >&6
3652fi
3653
3654fi
3655if test -z "$ac_cv_prog_AS"; then
3656 ac_ct_AS=$AS
3657 # Extract the first word of "as", so it can be a program name with args.
3658set dummy as; ac_word=$2
3659echo "$as_me:$LINENO: checking for $ac_word" >&5
3660echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3661if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3662 echo $ECHO_N "(cached) $ECHO_C" >&6
3663else
3664 if test -n "$ac_ct_AS"; then
3665 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3666else
3667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3668for as_dir in $PATH
3669do
3670 IFS=$as_save_IFS
3671 test -z "$as_dir" && as_dir=.
3672 for ac_exec_ext in '' $ac_executable_extensions; do
3673 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3674 ac_cv_prog_ac_ct_AS="as"
3675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3676 break 2
3677 fi
3678done
3679done
3680
3681fi
3682fi
3683ac_ct_AS=$ac_cv_prog_ac_ct_AS
3684if test -n "$ac_ct_AS"; then
3685 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3686echo "${ECHO_T}$ac_ct_AS" >&6
3687else
3688 echo "$as_me:$LINENO: result: no" >&5
3689echo "${ECHO_T}no" >&6
3690fi
3691
3692 AS=$ac_ct_AS
3693else
3694 AS="$ac_cv_prog_AS"
3695fi
3696
3697if test -n "$ac_tool_prefix"; then
3698 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3699set dummy ${ac_tool_prefix}ar; ac_word=$2
3700echo "$as_me:$LINENO: checking for $ac_word" >&5
3701echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3702if test "${ac_cv_prog_AR+set}" = set; then
3703 echo $ECHO_N "(cached) $ECHO_C" >&6
3704else
3705 if test -n "$AR"; then
3706 ac_cv_prog_AR="$AR" # Let the user override the test.
3707else
3708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3709for as_dir in $PATH
3710do
3711 IFS=$as_save_IFS
3712 test -z "$as_dir" && as_dir=.
3713 for ac_exec_ext in '' $ac_executable_extensions; do
3714 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3715 ac_cv_prog_AR="${ac_tool_prefix}ar"
3716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3717 break 2
3718 fi
3719done
3720done
3721
1530be84
TT
3722fi
3723fi
47935194 3724AR=$ac_cv_prog_AR
1530be84 3725if test -n "$AR"; then
47935194
NN
3726 echo "$as_me:$LINENO: result: $AR" >&5
3727echo "${ECHO_T}$AR" >&6
1530be84 3728else
47935194
NN
3729 echo "$as_me:$LINENO: result: no" >&5
3730echo "${ECHO_T}no" >&6
1530be84
TT
3731fi
3732
47935194
NN
3733fi
3734if test -z "$ac_cv_prog_AR"; then
3735 ac_ct_AR=$AR
3736 # Extract the first word of "ar", so it can be a program name with args.
3737set dummy ar; ac_word=$2
3738echo "$as_me:$LINENO: checking for $ac_word" >&5
3739echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3740if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3741 echo $ECHO_N "(cached) $ECHO_C" >&6
3742else
3743 if test -n "$ac_ct_AR"; then
3744 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3745else
3746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3747for as_dir in $PATH
3748do
3749 IFS=$as_save_IFS
3750 test -z "$as_dir" && as_dir=.
3751 for ac_exec_ext in '' $ac_executable_extensions; do
3752 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3753 ac_cv_prog_ac_ct_AR="ar"
3754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3755 break 2
3756 fi
3757done
3758done
3759
3760fi
3761fi
3762ac_ct_AR=$ac_cv_prog_ac_ct_AR
3763if test -n "$ac_ct_AR"; then
3764 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3765echo "${ECHO_T}$ac_ct_AR" >&6
3766else
3767 echo "$as_me:$LINENO: result: no" >&5
3768echo "${ECHO_T}no" >&6
3769fi
1530be84 3770
47935194
NN
3771 AR=$ac_ct_AR
3772else
3773 AR="$ac_cv_prog_AR"
3774fi
1530be84 3775
47935194
NN
3776if test -n "$ac_tool_prefix"; then
3777 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1530be84 3778set dummy ${ac_tool_prefix}ranlib; ac_word=$2
47935194
NN
3779echo "$as_me:$LINENO: checking for $ac_word" >&5
3780echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3781if test "${ac_cv_prog_RANLIB+set}" = set; then
3782 echo $ECHO_N "(cached) $ECHO_C" >&6
1530be84
TT
3783else
3784 if test -n "$RANLIB"; then
3785 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3786else
47935194
NN
3787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3788for as_dir in $PATH
3789do
3790 IFS=$as_save_IFS
3791 test -z "$as_dir" && as_dir=.
3792 for ac_exec_ext in '' $ac_executable_extensions; do
3793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3794 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3796 break 2
3797 fi
3798done
3799done
3800
1530be84
TT
3801fi
3802fi
47935194 3803RANLIB=$ac_cv_prog_RANLIB
1530be84 3804if test -n "$RANLIB"; then
47935194
NN
3805 echo "$as_me:$LINENO: result: $RANLIB" >&5
3806echo "${ECHO_T}$RANLIB" >&6
1530be84 3807else
47935194
NN
3808 echo "$as_me:$LINENO: result: no" >&5
3809echo "${ECHO_T}no" >&6
1530be84
TT
3810fi
3811
47935194 3812fi
1530be84 3813if test -z "$ac_cv_prog_RANLIB"; then
47935194 3814 ac_ct_RANLIB=$RANLIB
1530be84
TT
3815 # Extract the first word of "ranlib", so it can be a program name with args.
3816set dummy ranlib; ac_word=$2
47935194
NN
3817echo "$as_me:$LINENO: checking for $ac_word" >&5
3818echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3819if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3820 echo $ECHO_N "(cached) $ECHO_C" >&6
1530be84 3821else
47935194
NN
3822 if test -n "$ac_ct_RANLIB"; then
3823 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1530be84 3824else
47935194
NN
3825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3826for as_dir in $PATH
3827do
3828 IFS=$as_save_IFS
3829 test -z "$as_dir" && as_dir=.
3830 for ac_exec_ext in '' $ac_executable_extensions; do
3831 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3832 ac_cv_prog_ac_ct_RANLIB="ranlib"
3833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3834 break 2
3835 fi
3836done
3837done
3838
3839 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
1530be84
TT
3840fi
3841fi
47935194
NN
3842ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3843if test -n "$ac_ct_RANLIB"; then
3844 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3845echo "${ECHO_T}$ac_ct_RANLIB" >&6
1530be84 3846else
47935194
NN
3847 echo "$as_me:$LINENO: result: no" >&5
3848echo "${ECHO_T}no" >&6
1530be84
TT
3849fi
3850
47935194 3851 RANLIB=$ac_ct_RANLIB
1530be84 3852else
47935194 3853 RANLIB="$ac_cv_prog_RANLIB"
1530be84
TT
3854fi
3855
3856
3857# Find a good install program. We prefer a C program (faster),
3858# so one script is as good as another. But avoid the broken or
3859# incompatible versions:
3860# SysV /etc/install, /usr/sbin/install
3861# SunOS /usr/etc/install
3862# IRIX /sbin/install
3863# AIX /bin/install
47935194 3864# AmigaOS /C/install, which installs bootblocks on floppy discs
1530be84
TT
3865# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3866# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3867# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8ab705be 3868# OS/2's system install, which has a completely different semantic
1530be84 3869# ./install, which can be erroneously created by make from ./install.sh.
47935194
NN
3870echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3871echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1530be84 3872if test -z "$INSTALL"; then
47935194
NN
3873if test "${ac_cv_path_install+set}" = set; then
3874 echo $ECHO_N "(cached) $ECHO_C" >&6
1530be84 3875else
47935194
NN
3876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3877for as_dir in $PATH
3878do
3879 IFS=$as_save_IFS
3880 test -z "$as_dir" && as_dir=.
3881 # Account for people who put trailing slashes in PATH elements.
3882case $as_dir/ in
3883 ./ | .// | /cC/* | \
3884 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8ab705be 3885 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
47935194
NN
3886 /usr/ucb/* ) ;;
3887 *)
3888 # OSF1 and SCO ODT 3.0 have their own names for install.
3889 # Don't use installbsd from OSF since it installs stuff as root
3890 # by default.
3891 for ac_prog in ginstall scoinst install; do
3892 for ac_exec_ext in '' $ac_executable_extensions; do
8ab705be
KC
3893 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3894 if test $ac_prog = install &&
3895 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3896 # AIX install. It has an incompatible calling convention.
3897 :
3898 elif test $ac_prog = install &&
3899 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3900 # program-specific install script used by HP pwplus--don't use.
3901 :
3902 else
3903 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3904 break 3
3905 fi
3906 fi
1530be84 3907 done
47935194
NN
3908 done
3909 ;;
3910esac
3911done
3912
1530be84
TT
3913
3914fi
3915 if test "${ac_cv_path_install+set}" = set; then
47935194 3916 INSTALL=$ac_cv_path_install
1530be84
TT
3917 else
3918 # As a last resort, use the slow shell script. We don't cache a
3919 # path for INSTALL within a source directory, because that will
3920 # break other packages using the cache if that directory is
3921 # removed, or if the path is relative.
47935194 3922 INSTALL=$ac_install_sh
1530be84
TT
3923 fi
3924fi
47935194
NN
3925echo "$as_me:$LINENO: result: $INSTALL" >&5
3926echo "${ECHO_T}$INSTALL" >&6
1530be84
TT
3927
3928# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3929# It thinks the first close brace ends the variable substitution.
3930test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3931
47935194 3932test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1530be84
TT
3933
3934test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3935
3936
47935194
NN
3937echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3938echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1530be84
TT
3939 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3940if test "${enable_maintainer_mode+set}" = set; then
3941 enableval="$enable_maintainer_mode"
3942 USE_MAINTAINER_MODE=$enableval
3943else
3944 USE_MAINTAINER_MODE=no
47935194
NN
3945fi;
3946 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3947echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1530be84 3948
1530be84
TT
3949
3950if test $USE_MAINTAINER_MODE = yes; then
3951 MAINTAINER_MODE_TRUE=
3952 MAINTAINER_MODE_FALSE='#'
3953else
3954 MAINTAINER_MODE_TRUE='#'
3955 MAINTAINER_MODE_FALSE=
3956fi
bf9a420e 3957
1530be84 3958 MAINT=$MAINTAINER_MODE_TRUE
47935194 3959
1530be84
TT
3960
3961
c3b48847 3962. ${srcdir}/configure.host
1530be84 3963
5a2586cf
TT
3964case ${gc_basedir} in
3965/* | A-Za-z:/\\*) gc_flagbasedir=${gc_basedir} ;;
3966*) gc_flagbasedir='$(top_builddir)/'${gc_basedir} ;;
1530be84
TT
3967esac
3968
4109fe85 3969gc_cflags="${gc_cflags} -Iinclude -I"'$(top_builddir)'"/./targ-include -I${gc_flagbasedir}/libc/include"
1530be84
TT
3970case "${host}" in
3971 *-*-cygwin32*)
5a2586cf 3972 gc_cflags="${gc_cflags} -I${gc_flagbasedir}/../winsup/include"
1530be84
TT
3973 ;;
3974esac
3975
1530be84 3976
5a2586cf 3977GC_CFLAGS=${gc_cflags}
1530be84
TT
3978
3979
66deb2be
TT
3980# Check whether --enable-shared or --disable-shared was given.
3981if test "${enable_shared+set}" = set; then
3982 enableval="$enable_shared"
3983 p=${PACKAGE-default}
2d65a52e 3984case $enableval in
66deb2be
TT
3985yes) enable_shared=yes ;;
3986no) enable_shared=no ;;
3987*)
3988 enable_shared=no
3989 # Look at the argument we got. We use all the common list separators.
3990 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3991 for pkg in $enableval; do
3992 if test "X$pkg" = "X$p"; then
3993 enable_shared=yes
3994 fi
3995 done
3996 IFS="$ac_save_ifs"
3997 ;;
3998esac
3999else
4000 enable_shared=yes
47935194 4001fi;
66deb2be
TT
4002# Check whether --enable-static or --disable-static was given.
4003if test "${enable_static+set}" = set; then
4004 enableval="$enable_static"
4005 p=${PACKAGE-default}
2d65a52e 4006case $enableval in
66deb2be
TT
4007yes) enable_static=yes ;;
4008no) enable_static=no ;;
4009*)
4010 enable_static=no
4011 # Look at the argument we got. We use all the common list separators.
4012 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4013 for pkg in $enableval; do
4014 if test "X$pkg" = "X$p"; then
4015 enable_static=yes
4016 fi
4017 done
4018 IFS="$ac_save_ifs"
4019 ;;
4020esac
4021else
4022 enable_static=yes
47935194 4023fi;
115dabb8
TT
4024# Check whether --enable-fast-install or --disable-fast-install was given.
4025if test "${enable_fast_install+set}" = set; then
4026 enableval="$enable_fast_install"
4027 p=${PACKAGE-default}
2d65a52e 4028case $enableval in
115dabb8
TT
4029yes) enable_fast_install=yes ;;
4030no) enable_fast_install=no ;;
4031*)
4032 enable_fast_install=no
4033 # Look at the argument we got. We use all the common list separators.
4034 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4035 for pkg in $enableval; do
4036 if test "X$pkg" = "X$p"; then
4037 enable_fast_install=yes
4038 fi
4039 done
4040 IFS="$ac_save_ifs"
4041 ;;
4042esac
4043else
4044 enable_fast_install=yes
47935194 4045fi;
115dabb8 4046
66deb2be
TT
4047# Check whether --with-gnu-ld or --without-gnu-ld was given.
4048if test "${with_gnu_ld+set}" = set; then
4049 withval="$with_gnu_ld"
4050 test "$withval" = no || with_gnu_ld=yes
4051else
4052 with_gnu_ld=no
47935194 4053fi;
66deb2be 4054ac_prog=ld
2d65a52e 4055if test "$GCC" = yes; then
66deb2be 4056 # Check if gcc -print-prog-name=ld gives a path.
47935194
NN
4057 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4058echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
2f7bf5b7
AO
4059 case $host in
4060 *-*-mingw*)
4061 # gcc leaves a trailing carriage return which upsets mingw
4062 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4063 *)
4064 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4065 esac
2d65a52e 4066 case $ac_prog in
115dabb8 4067 # Accept absolute paths.
20bbd3cd 4068 [\\/]* | [A-Za-z]:[\\/]*)
115dabb8
TT
4069 re_direlt='/[^/][^/]*/\.\./'
4070 # Canonicalize the path of ld
4071 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4072 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4073 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4074 done
4075 test -z "$LD" && LD="$ac_prog"
4076 ;;
66deb2be
TT
4077 "")
4078 # If it fails, then pretend we aren't using GCC.
4079 ac_prog=ld
4080 ;;
4081 *)
4082 # If it is relative, then search for the first ld in PATH.
4083 with_gnu_ld=unknown
4084 ;;
4085 esac
4086elif test "$with_gnu_ld" = yes; then
47935194
NN
4087 echo "$as_me:$LINENO: checking for GNU ld" >&5
4088echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
66deb2be 4089else
47935194
NN
4090 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4091echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
66deb2be 4092fi
47935194
NN
4093if test "${lt_cv_path_LD+set}" = set; then
4094 echo $ECHO_N "(cached) $ECHO_C" >&6
66deb2be
TT
4095else
4096 if test -z "$LD"; then
20bbd3cd 4097 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
66deb2be
TT
4098 for ac_dir in $PATH; do
4099 test -z "$ac_dir" && ac_dir=.
20bbd3cd 4100 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2d65a52e 4101 lt_cv_path_LD="$ac_dir/$ac_prog"
66deb2be
TT
4102 # Check to see if the program is GNU ld. I'd rather use --version,
4103 # but apparently some GNU ld's only accept -v.
4104 # Break only if it was the GNU/non-GNU ld that we prefer.
2d65a52e 4105 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
66deb2be
TT
4106 test "$with_gnu_ld" != no && break
4107 else
115dabb8 4108 test "$with_gnu_ld" != yes && break
66deb2be
TT
4109 fi
4110 fi
4111 done
4112 IFS="$ac_save_ifs"
4113else
2d65a52e 4114 lt_cv_path_LD="$LD" # Let the user override the test with a path.
66deb2be
TT
4115fi
4116fi
4117
2d65a52e 4118LD="$lt_cv_path_LD"
66deb2be 4119if test -n "$LD"; then
47935194
NN
4120 echo "$as_me:$LINENO: result: $LD" >&5
4121echo "${ECHO_T}$LD" >&6
66deb2be 4122else
47935194
NN
4123 echo "$as_me:$LINENO: result: no" >&5
4124echo "${ECHO_T}no" >&6
4125fi
4126test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4127echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4128 { (exit 1); exit 1; }; }
4129echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4130echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4131if test "${lt_cv_prog_gnu_ld+set}" = set; then
4132 echo $ECHO_N "(cached) $ECHO_C" >&6
66deb2be
TT
4133else
4134 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4135if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2d65a52e 4136 lt_cv_prog_gnu_ld=yes
66deb2be 4137else
2d65a52e 4138 lt_cv_prog_gnu_ld=no
66deb2be
TT
4139fi
4140fi
47935194
NN
4141echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4142echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2d65a52e 4143with_gnu_ld=$lt_cv_prog_gnu_ld
2f7bf5b7
AO
4144
4145
47935194
NN
4146echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4147echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4148if test "${lt_cv_ld_reload_flag+set}" = set; then
4149 echo $ECHO_N "(cached) $ECHO_C" >&6
2f7bf5b7
AO
4150else
4151 lt_cv_ld_reload_flag='-r'
4152fi
47935194
NN
4153echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4154echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2f7bf5b7
AO
4155reload_flag=$lt_cv_ld_reload_flag
4156test -n "$reload_flag" && reload_flag=" $reload_flag"
66deb2be 4157
47935194
NN
4158echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4159echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4160if test "${lt_cv_path_NM+set}" = set; then
4161 echo $ECHO_N "(cached) $ECHO_C" >&6
66deb2be
TT
4162else
4163 if test -n "$NM"; then
4164 # Let the user override the test.
2d65a52e 4165 lt_cv_path_NM="$NM"
66deb2be 4166else
20bbd3cd 4167 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
115dabb8 4168 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
66deb2be 4169 test -z "$ac_dir" && ac_dir=.
2f7bf5b7
AO
4170 tmp_nm=$ac_dir/${ac_tool_prefix}nm
4171 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
66deb2be
TT
4172 # Check to see if the nm accepts a BSD-compat flag.
4173 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4174 # nm: unknown option "B" ignored
2f7bf5b7
AO
4175 # Tru64's nm complains that /dev/null is an invalid object file
4176 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
2d65a52e 4177 lt_cv_path_NM="$tmp_nm -B"
115dabb8 4178 break
2f7bf5b7 4179 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2d65a52e 4180 lt_cv_path_NM="$tmp_nm -p"
115dabb8 4181 break
66deb2be 4182 else
2d65a52e 4183 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
115dabb8 4184 continue # so that we can try to find one that supports BSD flags
66deb2be 4185 fi
66deb2be
TT
4186 fi
4187 done
4188 IFS="$ac_save_ifs"
2d65a52e 4189 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
66deb2be
TT
4190fi
4191fi
4192
2d65a52e 4193NM="$lt_cv_path_NM"
47935194
NN
4194echo "$as_me:$LINENO: result: $NM" >&5
4195echo "${ECHO_T}$NM" >&6
4196
4197echo "$as_me:$LINENO: checking whether ln -s works" >&5
4198echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4199LN_S=$as_ln_s
4200if test "$LN_S" = "ln -s"; then
4201 echo "$as_me:$LINENO: result: yes" >&5
4202echo "${ECHO_T}yes" >&6
66deb2be 4203else
47935194
NN
4204 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4205echo "${ECHO_T}no, using $LN_S" >&6
66deb2be
TT
4206fi
4207
47935194
NN
4208echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
4209echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
4210if test "${lt_cv_deplibs_check_method+set}" = set; then
4211 echo $ECHO_N "(cached) $ECHO_C" >&6
2f7bf5b7 4212else
5f527203 4213 lt_cv_file_magic_cmd='$MAGIC_CMD'
2f7bf5b7
AO
4214lt_cv_file_magic_test_file=
4215lt_cv_deplibs_check_method='unknown'
4216# Need to set the preceding variable on all platforms that support
4217# interlibrary dependencies.
4218# 'none' -- dependencies not supported.
4219# `unknown' -- same as none, but documents that we really don't know.
4220# 'pass_all' -- all dependencies passed with no checks.
4221# 'test_compile' -- check by making test program.
4222# 'file_magic [regex]' -- check by looking for files in library path
4223# which responds to the $file_magic_cmd with a given egrep regex.
4224# If you have `file' or equivalent on your system and you're not sure
4225# whether `pass_all' will *always* work, you probably want this one.
4226
2d65a52e
AO
4227case $host_os in
4228aix*)
2f7bf5b7
AO
4229 lt_cv_deplibs_check_method=pass_all
4230 ;;
4231
4232beos*)
4233 lt_cv_deplibs_check_method=pass_all
4234 ;;
4235
4236bsdi4*)
2d65a52e
AO
4237 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4238 lt_cv_file_magic_cmd='/usr/bin/file -L'
2f7bf5b7
AO
4239 lt_cv_file_magic_test_file=/shlib/libc.so
4240 ;;
4241
5f527203 4242cygwin* | mingw* |pw32*)
2f7bf5b7 4243 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5f527203 4244 lt_cv_file_magic_cmd='$OBJDUMP -f'
2f7bf5b7
AO
4245 ;;
4246
2d65a52e 4247darwin* | rhapsody*)
b27317b5 4248 # this will be overwritten by pass_all, but leave it in just in case
2d65a52e
AO
4249 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4250 lt_cv_file_magic_cmd='/usr/bin/file -L'
4251 case "$host_os" in
4252 rhapsody* | darwin1.012)
4253 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
4254 ;;
4255 *) # Darwin 1.3 on
4256 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4257 ;;
4258 esac
b27317b5 4259 lt_cv_deplibs_check_method=pass_all
2d65a52e
AO
4260 ;;
4261
bf9a420e 4262freebsd* | kfreebsd*-gnu)
2f7bf5b7 4263 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2d65a52e 4264 case $host_cpu in
2f7bf5b7
AO
4265 i*86 )
4266 # Not sure whether the presence of OpenBSD here was a mistake.
4267 # Let's accept both of them until this is cleared up.
2d65a52e
AO
4268 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4269 lt_cv_file_magic_cmd=/usr/bin/file
2f7bf5b7
AO
4270 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4271 ;;
4272 esac
4273 else
4274 lt_cv_deplibs_check_method=pass_all
4275 fi
4276 ;;
4277
4278gnu*)
4279 lt_cv_deplibs_check_method=pass_all
4280 ;;
4281
2d65a52e 4282hpux10.20*|hpux11*)
f5cc59a7
AO
4283 case $host_cpu in
4284 hppa*)
4285 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4286 lt_cv_file_magic_cmd=/usr/bin/file
4287 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4288 ;;
4289 ia64*)
4290 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4291 lt_cv_file_magic_cmd=/usr/bin/file
4292 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4293 ;;
4294 esac
2f7bf5b7
AO
4295 ;;
4296
4297irix5* | irix6*)
2d65a52e 4298 case $host_os in
2f7bf5b7
AO
4299 irix5*)
4300 # this will be overridden with pass_all, but let us keep it just in case
4301 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4302 ;;
4303 *)
2d65a52e 4304 case $LD in
2f7bf5b7
AO
4305 *-32|*"-32 ") libmagic=32-bit;;
4306 *-n32|*"-n32 ") libmagic=N32;;
4307 *-64|*"-64 ") libmagic=64-bit;;
4308 *) libmagic=never-match;;
4309 esac
4310 # this will be overridden with pass_all, but let us keep it just in case
2d65a52e
AO
4311 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4312 ;;
2f7bf5b7
AO
4313 esac
4314 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4315 lt_cv_deplibs_check_method=pass_all
4316 ;;
4317
4318# This must be Linux ELF.
4319linux-gnu*)
76ecaf09 4320 lt_cv_deplibs_check_method=pass_all
2f7bf5b7
AO
4321 ;;
4322
bf9a420e 4323netbsd* | knetbsd*-gnu)
2d65a52e
AO
4324 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4325 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2f7bf5b7 4326 else
2d65a52e 4327 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2f7bf5b7
AO
4328 fi
4329 ;;
4330
2d65a52e
AO
4331newsos6)
4332 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4333 lt_cv_file_magic_cmd=/usr/bin/file
4334 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4335 ;;
4336
2f7bf5b7
AO
4337osf3* | osf4* | osf5*)
4338 # this will be overridden with pass_all, but let us keep it just in case
4339 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4340 lt_cv_file_magic_test_file=/shlib/libc.so
4341 lt_cv_deplibs_check_method=pass_all
4342 ;;
66deb2be 4343
2f7bf5b7
AO
4344sco3.2v5*)
4345 lt_cv_deplibs_check_method=pass_all
4346 ;;
4347
4348solaris*)
4349 lt_cv_deplibs_check_method=pass_all
4350 lt_cv_file_magic_test_file=/lib/libc.so
4351 ;;
4352
33456445
AO
4353sysv5uw[78]* | sysv4*uw2*)
4354 lt_cv_deplibs_check_method=pass_all
4355 ;;
4356
2f7bf5b7 4357sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2d65a52e 4358 case $host_vendor in
2f7bf5b7
AO
4359 ncr)
4360 lt_cv_deplibs_check_method=pass_all
4361 ;;
4362 motorola)
2d65a52e
AO
4363 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]'
4364 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2f7bf5b7
AO
4365 ;;
4366 esac
4367 ;;
4368esac
4369
4370fi
47935194
NN
4371echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4372echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
2f7bf5b7
AO
4373file_magic_cmd=$lt_cv_file_magic_cmd
4374deplibs_check_method=$lt_cv_deplibs_check_method
4375
2f7bf5b7 4376
47935194 4377
2f7bf5b7 4378
413580dc 4379
2f7bf5b7
AO
4380# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4381
6dab073b
MS
4382# find the maximum length of command line arguments
4383echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4384echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4385if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4386 echo $ECHO_N "(cached) $ECHO_C" >&6
4387else
4388 i=0
4389 teststring="ABCD"
4390
4391 case $build_os in
4392 msdosdjgpp*)
4393 # On DJGPP, this test can blow up pretty badly due to problems in libc
4394 # (any single argument exceeding 2000 bytes causes a buffer overrun
4395 # during glob expansion). Even if it were fixed, the result of this
4396 # check would be larger than it should be.
4397 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4398 ;;
4399
4400 cygwin* | mingw*)
4401 # On Win9x/ME, this test blows up -- it succeeds, but takes
4402 # about 5 minutes as the teststring grows exponentially.
4403 # Worse, since 9x/ME are not pre-emptively multitasking,
4404 # you end up with a "frozen" computer, even though with patience
4405 # the test eventually succeeds (with a max line length of 256k).
4406 # Instead, let's just punt: use the minimum linelength reported by
4407 # all of the supported platforms: 8192 (on NT/2K/XP).
4408 lt_cv_sys_max_cmd_len=8192;
4409 ;;
4410
4411 amigaos*)
4412 # On AmigaOS with pdksh, this test takes hours, literally.
4413 # So we just punt and use a minimum line length of 8192.
4414 lt_cv_sys_max_cmd_len=8192;
4415 ;;
4416
4417 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4418 # This has been around since 386BSD, at least. Likely further.
4419 if test -x /sbin/sysctl; then
4420 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4421 elif test -x /usr/sbin/sysctl; then
4422 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4423 else
4424 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
4425 fi
4426 # And add a safety zone
4427 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4428 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4429 ;;
4430 esac
4431
4432fi
4433
f4c767fd 4434if test -n "$lt_cv_sys_max_cmd_len" ; then
6dab073b
MS
4435 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4436echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4437else
4438 echo "$as_me:$LINENO: result: none" >&5
4439echo "${ECHO_T}none" >&6
4440fi
4441
4442
2f7bf5b7 4443# Only perform the check for file, if the check method requires it
2d65a52e 4444case $deplibs_check_method in
2f7bf5b7 4445file_magic*)
5f527203 4446 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
47935194
NN
4447 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4448echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4449if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4450 echo $ECHO_N "(cached) $ECHO_C" >&6
2f7bf5b7 4451else
2d65a52e 4452 case $MAGIC_CMD in
2f7bf5b7 4453 /*)
5f527203 4454 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2f7bf5b7
AO
4455 ;;
4456 ?:/*)
5f527203 4457 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2f7bf5b7
AO
4458 ;;
4459 *)
5f527203 4460 ac_save_MAGIC_CMD="$MAGIC_CMD"
2f7bf5b7
AO
4461 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4462 ac_dummy="/usr/bin:$PATH"
4463 for ac_dir in $ac_dummy; do
4464 test -z "$ac_dir" && ac_dir=.
4465 if test -f $ac_dir/${ac_tool_prefix}file; then
5f527203 4466 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2f7bf5b7 4467 if test -n "$file_magic_test_file"; then
2d65a52e 4468 case $deplibs_check_method in
2f7bf5b7
AO
4469 "file_magic "*)
4470 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5f527203 4471 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2f7bf5b7
AO
4472 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4473 egrep "$file_magic_regex" > /dev/null; then
4474 :
4475 else
4476 cat <<EOF 1>&2
4477
4478*** Warning: the command libtool uses to detect shared libraries,
4479*** $file_magic_cmd, produces output that libtool cannot recognize.
4480*** The result is that libtool may fail to recognize shared libraries
4481*** as such. This will affect the creation of libtool libraries that
4482*** depend on shared libraries, but programs linked with such libtool
4483*** libraries will work regardless of this problem. Nevertheless, you
4484*** may want to report the problem to your system manager and/or to
4485*** bug-libtool@gnu.org
4486
4487EOF
4488 fi ;;
4489 esac
4490 fi
4491 break
4492 fi
4493 done
4494 IFS="$ac_save_ifs"
5f527203 4495 MAGIC_CMD="$ac_save_MAGIC_CMD"
2f7bf5b7 4496 ;;
70635f1e 4497esac
2f7bf5b7
AO
4498fi
4499
5f527203
AO
4500MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4501if test -n "$MAGIC_CMD"; then
47935194
NN
4502 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4503echo "${ECHO_T}$MAGIC_CMD" >&6
2f7bf5b7 4504else
47935194
NN
4505 echo "$as_me:$LINENO: result: no" >&5
4506echo "${ECHO_T}no" >&6
2f7bf5b7
AO
4507fi
4508
5f527203 4509if test -z "$lt_cv_path_MAGIC_CMD"; then
2f7bf5b7 4510 if test -n "$ac_tool_prefix"; then
47935194
NN
4511 echo "$as_me:$LINENO: checking for file" >&5
4512echo $ECHO_N "checking for file... $ECHO_C" >&6
4513if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4514 echo $ECHO_N "(cached) $ECHO_C" >&6
2f7bf5b7 4515else
2d65a52e 4516 case $MAGIC_CMD in
2f7bf5b7 4517 /*)
5f527203 4518 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2f7bf5b7
AO
4519 ;;
4520 ?:/*)
5f527203 4521 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2f7bf5b7
AO
4522 ;;
4523 *)
5f527203 4524 ac_save_MAGIC_CMD="$MAGIC_CMD"
2f7bf5b7
AO
4525 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4526 ac_dummy="/usr/bin:$PATH"
4527 for ac_dir in $ac_dummy; do
4528 test -z "$ac_dir" && ac_dir=.
4529 if test -f $ac_dir/file; then
5f527203 4530 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2f7bf5b7 4531 if test -n "$file_magic_test_file"; then
2d65a52e 4532 case $deplibs_check_method in
2f7bf5b7
AO
4533 "file_magic "*)
4534 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5f527203 4535 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2f7bf5b7
AO
4536 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4537 egrep "$file_magic_regex" > /dev/null; then
4538 :
4539 else
4540 cat <<EOF 1>&2
4541
4542*** Warning: the command libtool uses to detect shared libraries,
4543*** $file_magic_cmd, produces output that libtool cannot recognize.
4544*** The result is that libtool may fail to recognize shared libraries
4545*** as such. This will affect the creation of libtool libraries that
4546*** depend on shared libraries, but programs linked with such libtool
4547*** libraries will work regardless of this problem. Nevertheless, you
4548*** may want to report the problem to your system manager and/or to
4549*** bug-libtool@gnu.org
4550
4551EOF
4552 fi ;;
4553 esac
4554 fi
4555 break
4556 fi
4557 done
4558 IFS="$ac_save_ifs"
5f527203 4559 MAGIC_CMD="$ac_save_MAGIC_CMD"
2f7bf5b7
AO
4560 ;;
4561esac
4562fi
4563
5f527203
AO
4564MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4565if test -n "$MAGIC_CMD"; then
47935194
NN
4566 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4567echo "${ECHO_T}$MAGIC_CMD" >&6
2f7bf5b7 4568else
47935194
NN
4569 echo "$as_me:$LINENO: result: no" >&5
4570echo "${ECHO_T}no" >&6
2f7bf5b7
AO
4571fi
4572
4573 else
5f527203 4574 MAGIC_CMD=:
2f7bf5b7
AO
4575 fi
4576fi
4577
4578 fi
4579 ;;
4580esac
4581
47935194
NN
4582if test -n "$ac_tool_prefix"; then
4583 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2f7bf5b7 4584set dummy ${ac_tool_prefix}ranlib; ac_word=$2
47935194
NN
4585echo "$as_me:$LINENO: checking for $ac_word" >&5
4586echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4587if test "${ac_cv_prog_RANLIB+set}" = set; then
4588 echo $ECHO_N "(cached) $ECHO_C" >&6
2f7bf5b7
AO
4589else
4590 if test -n "$RANLIB"; then
4591 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4592else
47935194
NN
4593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4594for as_dir in $PATH
4595do
4596 IFS=$as_save_IFS
4597 test -z "$as_dir" && as_dir=.
4598 for ac_exec_ext in '' $ac_executable_extensions; do
4599 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4600 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4602 break 2
4603 fi
4604done
4605done
4606
2f7bf5b7
AO
4607fi
4608fi
47935194 4609RANLIB=$ac_cv_prog_RANLIB
2f7bf5b7 4610if test -n "$RANLIB"; then
47935194
NN
4611 echo "$as_me:$LINENO: result: $RANLIB" >&5
4612echo "${ECHO_T}$RANLIB" >&6
2f7bf5b7 4613else
47935194
NN
4614 echo "$as_me:$LINENO: result: no" >&5
4615echo "${ECHO_T}no" >&6
2f7bf5b7
AO
4616fi
4617
47935194 4618fi
2f7bf5b7 4619if test -z "$ac_cv_prog_RANLIB"; then
47935194 4620 ac_ct_RANLIB=$RANLIB
2f7bf5b7
AO
4621 # Extract the first word of "ranlib", so it can be a program name with args.
4622set dummy ranlib; ac_word=$2
47935194
NN
4623echo "$as_me:$LINENO: checking for $ac_word" >&5
4624echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4625if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4626 echo $ECHO_N "(cached) $ECHO_C" >&6
2f7bf5b7 4627else
47935194
NN
4628 if test -n "$ac_ct_RANLIB"; then
4629 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2f7bf5b7 4630else
47935194
NN
4631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4632for as_dir in $PATH
4633do
4634 IFS=$as_save_IFS
4635 test -z "$as_dir" && as_dir=.
4636 for ac_exec_ext in '' $ac_executable_extensions; do
4637 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4638 ac_cv_prog_ac_ct_RANLIB="ranlib"
4639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4640 break 2
4641 fi
4642done
4643done
4644
4645 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2f7bf5b7
AO
4646fi
4647fi
47935194
NN
4648ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4649if test -n "$ac_ct_RANLIB"; then
4650 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4651echo "${ECHO_T}$ac_ct_RANLIB" >&6
2f7bf5b7 4652else
47935194
NN
4653 echo "$as_me:$LINENO: result: no" >&5
4654echo "${ECHO_T}no" >&6
2f7bf5b7
AO
4655fi
4656
47935194 4657 RANLIB=$ac_ct_RANLIB
2f7bf5b7 4658else
47935194 4659 RANLIB="$ac_cv_prog_RANLIB"
2f7bf5b7
AO
4660fi
4661
47935194
NN
4662if test -n "$ac_tool_prefix"; then
4663 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2f7bf5b7 4664set dummy ${ac_tool_prefix}strip; ac_word=$2
47935194
NN
4665echo "$as_me:$LINENO: checking for $ac_word" >&5
4666echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4667if test "${ac_cv_prog_STRIP+set}" = set; then
4668 echo $ECHO_N "(cached) $ECHO_C" >&6
2f7bf5b7
AO
4669else
4670 if test -n "$STRIP"; then
4671 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4672else
47935194
NN
4673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4674for as_dir in $PATH
4675do
4676 IFS=$as_save_IFS
4677 test -z "$as_dir" && as_dir=.
4678 for ac_exec_ext in '' $ac_executable_extensions; do
4679 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4680 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4682 break 2
4683 fi
4684done
4685done
4686
2f7bf5b7
AO
4687fi
4688fi
47935194 4689STRIP=$ac_cv_prog_STRIP
2f7bf5b7 4690if test -n "$STRIP"; then
47935194
NN
4691 echo "$as_me:$LINENO: result: $STRIP" >&5
4692echo "${ECHO_T}$STRIP" >&6
2f7bf5b7 4693else
47935194
NN
4694 echo "$as_me:$LINENO: result: no" >&5
4695echo "${ECHO_T}no" >&6
2f7bf5b7
AO
4696fi
4697
47935194 4698fi
2f7bf5b7 4699if test -z "$ac_cv_prog_STRIP"; then
47935194 4700 ac_ct_STRIP=$STRIP
2f7bf5b7
AO
4701 # Extract the first word of "strip", so it can be a program name with args.
4702set dummy strip; ac_word=$2
47935194
NN
4703echo "$as_me:$LINENO: checking for $ac_word" >&5
4704echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4705if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4706 echo $ECHO_N "(cached) $ECHO_C" >&6
2f7bf5b7 4707else
47935194
NN
4708 if test -n "$ac_ct_STRIP"; then
4709 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2f7bf5b7 4710else
47935194
NN
4711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4712for as_dir in $PATH
4713do
4714 IFS=$as_save_IFS
4715 test -z "$as_dir" && as_dir=.
4716 for ac_exec_ext in '' $ac_executable_extensions; do
4717 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4718 ac_cv_prog_ac_ct_STRIP="strip"
4719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4720 break 2
4721 fi
4722done
4723done
4724
4725 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2f7bf5b7
AO
4726fi
4727fi
47935194
NN
4728ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4729if test -n "$ac_ct_STRIP"; then
4730 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4731echo "${ECHO_T}$ac_ct_STRIP" >&6
2f7bf5b7 4732else
47935194
NN
4733 echo "$as_me:$LINENO: result: no" >&5
4734echo "${ECHO_T}no" >&6
2f7bf5b7
AO
4735fi
4736
47935194 4737 STRIP=$ac_ct_STRIP
2f7bf5b7 4738else
47935194 4739 STRIP="$ac_cv_prog_STRIP"
2f7bf5b7
AO
4740fi
4741
70635f1e 4742
66deb2be 4743# Check for any special flags to pass to ltconfig.
115dabb8 4744libtool_flags="--cache-file=$cache_file"
66deb2be
TT
4745test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4746test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
115dabb8 4747test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2d65a52e
AO
4748test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4749test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
66deb2be 4750
20bbd3cd
TT
4751
4752# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4753if test "${enable_libtool_lock+set}" = set; then
4754 enableval="$enable_libtool_lock"
20bbd3cd 4755
47935194 4756fi;
20bbd3cd
TT
4757test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4758test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4759
47935194 4760
2f7bf5b7
AO
4761# Check whether --with-pic or --without-pic was given.
4762if test "${with_pic+set}" = set; then
4763 withval="$with_pic"
4764 pic_mode="$withval"
4765else
4766 pic_mode=default
47935194 4767fi;
2f7bf5b7
AO
4768test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4769test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4770
66deb2be
TT
4771# Some flags need to be propagated to the compiler or linker for good
4772# libtool support.
2d65a52e 4773case $host in
66deb2be
TT
4774*-*-irix6*)
4775 # Find out which ABI we are using.
6dab073b 4776 echo '#line 4776 "configure"' > conftest.$ac_ext
47935194
NN
4777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4778 (eval $ac_compile) 2>&5
4779 ac_status=$?
4780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781 (exit $ac_status); }; then
3343fdd2
AO
4782 if test "$lt_cv_prog_gnu_ld" = yes; then
4783 case `/usr/bin/file conftest.$ac_objext` in
4784 *32-bit*)
4785 LD="${LD-ld} -melf32bsmip"
4786 ;;
4787 *N32*)
4788 LD="${LD-ld} -melf32bmipn32"
4789 ;;
4790 *64-bit*)
4791 LD="${LD-ld} -melf64bmip"
4792 ;;
4793 esac
4794 else
2d65a52e 4795 case `/usr/bin/file conftest.$ac_objext` in
66deb2be
TT
4796 *32-bit*)
4797 LD="${LD-ld} -32"
4798 ;;
4799 *N32*)
4800 LD="${LD-ld} -n32"
4801 ;;
4802 *64-bit*)
4803 LD="${LD-ld} -64"
4804 ;;
4805 esac
3343fdd2 4806 fi
66deb2be
TT
4807 fi
4808 rm -rf conftest*
4809 ;;
4810
f5cc59a7
AO
4811ia64-*-hpux*)
4812 # Find out which ABI we are using.
4813 echo 'int i;' > conftest.$ac_ext
47935194
NN
4814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4815 (eval $ac_compile) 2>&5
4816 ac_status=$?
4817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818 (exit $ac_status); }; then
f5cc59a7
AO
4819 case "`/usr/bin/file conftest.o`" in
4820 *ELF-32*)
4821 HPUX_IA64_MODE="32"
4822 ;;
4823 *ELF-64*)
4824 HPUX_IA64_MODE="64"
4825 ;;
4826 esac
4827 fi
4828 rm -rf conftest*
4829 ;;
4830
13b6e5b4
AO
4831x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4832 # Find out which ABI we are using.
4833 echo 'int i;' > conftest.$ac_ext
47935194
NN
4834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4835 (eval $ac_compile) 2>&5
4836 ac_status=$?
4837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838 (exit $ac_status); }; then
13b6e5b4
AO
4839 case "`/usr/bin/file conftest.o`" in
4840 *32-bit*)
4841 case $host in
4842 x86_64-*linux*)
4843 LD="${LD-ld} -m elf_i386"
4844 ;;
e517f636 4845 ppc64-*linux*|powerpc64-*linux*)
13b6e5b4
AO
4846 LD="${LD-ld} -m elf32ppclinux"
4847 ;;
4848 s390x-*linux*)
4849 LD="${LD-ld} -m elf_s390"
4850 ;;
4851 sparc64-*linux*)
4852 LD="${LD-ld} -m elf32_sparc"
4853 ;;
4854 esac
4855 ;;
4856 *64-bit*)
4857 case $host in
4858 x86_64-*linux*)
4859 LD="${LD-ld} -m elf_x86_64"
4860 ;;
4861 ppc*-*linux*|powerpc*-*linux*)
4862 LD="${LD-ld} -m elf64ppc"
4863 ;;
4864 s390*-*linux*)
4865 LD="${LD-ld} -m elf64_s390"
4866 ;;
4867 sparc*-*linux*)
4868 LD="${LD-ld} -m elf64_sparc"
4869 ;;
4870 esac
4871 ;;
4872 esac
4873 fi
4874 rm -rf conftest*
4875 ;;
4876
66deb2be
TT
4877*-*-sco3.2v5*)
4878 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
115dabb8 4879 SAVE_CFLAGS="$CFLAGS"
66deb2be 4880 CFLAGS="$CFLAGS -belf"
47935194
NN
4881 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4882echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4883if test "${lt_cv_cc_needs_belf+set}" = set; then
4884 echo $ECHO_N "(cached) $ECHO_C" >&6
115dabb8 4885else
115dabb8 4886
115dabb8 4887
47935194
NN
4888 ac_ext=c
4889ac_cpp='$CPP $CPPFLAGS'
4890ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4891ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4892ac_compiler_gnu=$ac_cv_c_compiler_gnu
4893
4894 if test x$gcc_no_link = xyes; then
4895 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4896echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4897 { (exit 1); exit 1; }; }
4898fi
4899cat >conftest.$ac_ext <<_ACEOF
4900/* confdefs.h. */
4901_ACEOF
4902cat confdefs.h >>conftest.$ac_ext
4903cat >>conftest.$ac_ext <<_ACEOF
4904/* end confdefs.h. */
4905
4906int
4907main ()
4908{
4909
4910 ;
4911 return 0;
4912}
4913_ACEOF
4914rm -f conftest.$ac_objext conftest$ac_exeext
4915if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8ab705be 4916 (eval $ac_link) 2>conftest.er1
47935194 4917 ac_status=$?
8ab705be
KC
4918 grep -v '^ *+' conftest.er1 >conftest.err
4919 rm -f conftest.er1
4920 cat conftest.err >&5
47935194
NN
4921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4922 (exit $ac_status); } &&
5572488d
KC
4923 { ac_try='test -z "$ac_c_werror_flag"
4924 || test ! -s conftest.err'
8ab705be
KC
4925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4926 (eval $ac_try) 2>&5
4927 ac_status=$?
4928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929 (exit $ac_status); }; } &&
4930 { ac_try='test -s conftest$ac_exeext'
47935194
NN
4931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4932 (eval $ac_try) 2>&5
4933 ac_status=$?
4934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4935 (exit $ac_status); }; }; then
115dabb8
TT
4936 lt_cv_cc_needs_belf=yes
4937else
47935194
NN
4938 echo "$as_me: failed program was:" >&5
4939sed 's/^/| /' conftest.$ac_ext >&5
4940
4941lt_cv_cc_needs_belf=no
115dabb8 4942fi
8ab705be
KC
4943rm -f conftest.err conftest.$ac_objext \
4944 conftest$ac_exeext conftest.$ac_ext
2f7bf5b7 4945 ac_ext=c
2f7bf5b7 4946ac_cpp='$CPP $CPPFLAGS'
47935194
NN
4947ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4948ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4949ac_compiler_gnu=$ac_cv_c_compiler_gnu
2f7bf5b7 4950
115dabb8 4951fi
47935194
NN
4952echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4953echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
115dabb8
TT
4954 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4955 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4956 CFLAGS="$SAVE_CFLAGS"
4957 fi
66deb2be
TT
4958 ;;
4959
66deb2be
TT
4960
4961esac
4962
115dabb8
TT
4963
4964# Save cache, so that ltconfig can load it
47935194 4965cat >confcache <<\_ACEOF
115dabb8
TT
4966# This file is a shell script that caches the results of configure
4967# tests run on this system so they can be shared between configure
47935194
NN
4968# scripts and configure runs, see configure's option --config-cache.
4969# It is not useful on other systems. If it contains results you don't
4970# want to keep, you may remove or edit it.
115dabb8 4971#
47935194
NN
4972# config.status only pays attention to the cache file if you give it
4973# the --recheck option to rerun configure.
115dabb8 4974#
47935194
NN
4975# `ac_cv_env_foo' variables (set or unset) will be overridden when
4976# loading this file, other *unset* `ac_cv_foo' will be assigned the
4977# following values.
4978
4979_ACEOF
4980
115dabb8
TT
4981# The following way of writing the cache mishandles newlines in values,
4982# but we know of no workaround that is simple, portable, and efficient.
4983# So, don't put newlines in cache variables' values.
4984# Ultrix sh set writes to stderr and can't be redirected directly,
4985# and sets the high bit in the cache file unless we assign to the vars.
47935194
NN
4986{
4987 (set) 2>&1 |
4988 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4989 *ac_space=\ *)
4990 # `set' does not quote correctly, so add quotes (double-quote
4991 # substitution turns \\\\ into \\, and sed turns \\ into \).
4992 sed -n \
8ab705be
KC
4993 "s/'/'\\\\''/g;
4994 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
47935194
NN
4995 ;;
4996 *)
4997 # `set' quotes correctly as required by POSIX, so do not add quotes.
4998 sed -n \
8ab705be 4999 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
47935194
NN
5000 ;;
5001 esac;
5002} |
5003 sed '
5004 t clear
5005 : clear
5006 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5007 t end
5008 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5009 : end' >>confcache
5010if diff $cache_file confcache >/dev/null 2>&1; then :; else
115dabb8 5011 if test -w $cache_file; then
47935194
NN
5012 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5013 cat confcache >$cache_file
115dabb8
TT
5014 else
5015 echo "not updating unwritable cache $cache_file"
5016 fi
5017fi
5018rm -f confcache
5019
66deb2be 5020# Actually configure libtool. ac_aux_dir is where install-sh is found.
2f7bf5b7 5021AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
5f527203 5022MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2f7bf5b7
AO
5023LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5024AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5025objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5026deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
66deb2be 5027${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2f7bf5b7 5028$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
47935194
NN
5029|| { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
5030echo "$as_me: error: libtool configure failed" >&2;}
5031 { (exit 1); exit 1; }; }
66deb2be 5032
115dabb8
TT
5033# Reload cache, that may have been modified by ltconfig
5034if test -r "$cache_file"; then
47935194
NN
5035 # Some versions of bash will fail to source /dev/null (special
5036 # files actually), so we avoid doing that.
5037 if test -f "$cache_file"; then
5038 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
5039echo "$as_me: loading cache $cache_file" >&6;}
5040 case $cache_file in
5041 [\\/]* | ?:[\\/]* ) . $cache_file;;
5042 *) . ./$cache_file;;
5043 esac
5044 fi
115dabb8 5045else
47935194
NN
5046 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
5047echo "$as_me: creating cache $cache_file" >&6;}
5048 >$cache_file
115dabb8
TT
5049fi
5050
5051
5052# This can be used to rebuild libtool when needed
2f7bf5b7 5053LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
115dabb8
TT
5054
5055# Always use our own libtool.
5056LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5057
66deb2be
TT
5058# Redirect the config.log output again, so that the ltconfig log is not
5059# clobbered by the next message.
5060exec 5>>./config.log
5061
47935194
NN
5062ac_ext=cc
5063ac_cpp='$CXXCPP $CPPFLAGS'
5064ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5065ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5066ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5067echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5068echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5069if test -z "$CXXCPP"; then
5070 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5071 echo $ECHO_N "(cached) $ECHO_C" >&6
5072else
5073 # Double quotes because CXXCPP needs to be expanded
5074 for CXXCPP in "$CXX -E" "/lib/cpp"
5075 do
5076 ac_preproc_ok=false
5077for ac_cxx_preproc_warn_flag in '' yes
5078do
5079 # Use a header file that comes with gcc, so configuring glibc
5080 # with a fresh cross-compiler works.
5081 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5082 # <limits.h> exists even on freestanding compilers.
5083 # On the NeXT, cc -E runs the code through the compiler's parser,
5084 # not just through cpp. "Syntax error" is here to catch this case.
5085 cat >conftest.$ac_ext <<_ACEOF
5086/* confdefs.h. */
5087_ACEOF
5088cat confdefs.h >>conftest.$ac_ext
5089cat >>conftest.$ac_ext <<_ACEOF
5090/* end confdefs.h. */
5091#ifdef __STDC__
5092# include <limits.h>
5093#else
5094# include <assert.h>
5095#endif
8ab705be 5096 Syntax error
47935194
NN
5097_ACEOF
5098if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5099 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5100 ac_status=$?
5101 grep -v '^ *+' conftest.er1 >conftest.err
5102 rm -f conftest.er1
5103 cat conftest.err >&5
5104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105 (exit $ac_status); } >/dev/null; then
5106 if test -s conftest.err; then
5107 ac_cpp_err=$ac_cxx_preproc_warn_flag
8ab705be 5108 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
47935194
NN
5109 else
5110 ac_cpp_err=
5111 fi
5112else
5113 ac_cpp_err=yes
5114fi
5115if test -z "$ac_cpp_err"; then
5116 :
5117else
5118 echo "$as_me: failed program was:" >&5
5119sed 's/^/| /' conftest.$ac_ext >&5
5120
5121 # Broken: fails on valid input.
5122continue
5123fi
5124rm -f conftest.err conftest.$ac_ext
5125
5126 # OK, works on sane cases. Now check whether non-existent headers
5127 # can be detected and how.
5128 cat >conftest.$ac_ext <<_ACEOF
5129/* confdefs.h. */
5130_ACEOF
5131cat confdefs.h >>conftest.$ac_ext
5132cat >>conftest.$ac_ext <<_ACEOF
5133/* end confdefs.h. */
5134#include <ac_nonexistent.h>
5135_ACEOF
5136if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5137 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5138 ac_status=$?
5139 grep -v '^ *+' conftest.er1 >conftest.err
5140 rm -f conftest.er1
5141 cat conftest.err >&5
5142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5143 (exit $ac_status); } >/dev/null; then
5144 if test -s conftest.err; then
5145 ac_cpp_err=$ac_cxx_preproc_warn_flag
8ab705be 5146 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
47935194
NN
5147 else
5148 ac_cpp_err=
5149 fi
5150else
5151 ac_cpp_err=yes
5152fi
5153if test -z "$ac_cpp_err"; then
5154 # Broken: success on invalid input.
5155continue
5156else
5157 echo "$as_me: failed program was:" >&5
5158sed 's/^/| /' conftest.$ac_ext >&5
5159
5160 # Passes both tests.
5161ac_preproc_ok=:
5162break
5163fi
5164rm -f conftest.err conftest.$ac_ext
5165
5166done
5167# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5168rm -f conftest.err conftest.$ac_ext
5169if $ac_preproc_ok; then
5170 break
5171fi
5172
5173 done
5174 ac_cv_prog_CXXCPP=$CXXCPP
5175
5176fi
5177 CXXCPP=$ac_cv_prog_CXXCPP
5178else
5179 ac_cv_prog_CXXCPP=$CXXCPP
5180fi
5181echo "$as_me:$LINENO: result: $CXXCPP" >&5
5182echo "${ECHO_T}$CXXCPP" >&6
5183ac_preproc_ok=false
5184for ac_cxx_preproc_warn_flag in '' yes
5185do
5186 # Use a header file that comes with gcc, so configuring glibc
5187 # with a fresh cross-compiler works.
5188 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5189 # <limits.h> exists even on freestanding compilers.
5190 # On the NeXT, cc -E runs the code through the compiler's parser,
5191 # not just through cpp. "Syntax error" is here to catch this case.
5192 cat >conftest.$ac_ext <<_ACEOF
5193/* confdefs.h. */
5194_ACEOF
5195cat confdefs.h >>conftest.$ac_ext
5196cat >>conftest.$ac_ext <<_ACEOF
5197/* end confdefs.h. */
5198#ifdef __STDC__
5199# include <limits.h>
5200#else
5201# include <assert.h>
5202#endif
8ab705be 5203 Syntax error
47935194
NN
5204_ACEOF
5205if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5206 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5207 ac_status=$?
5208 grep -v '^ *+' conftest.er1 >conftest.err
5209 rm -f conftest.er1
5210 cat conftest.err >&5
5211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212 (exit $ac_status); } >/dev/null; then
5213 if test -s conftest.err; then
5214 ac_cpp_err=$ac_cxx_preproc_warn_flag
8ab705be 5215 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
47935194
NN
5216 else
5217 ac_cpp_err=
5218 fi
5219else
5220 ac_cpp_err=yes
5221fi
5222if test -z "$ac_cpp_err"; then
5223 :
5224else
5225 echo "$as_me: failed program was:" >&5
5226sed 's/^/| /' conftest.$ac_ext >&5
5227
5228 # Broken: fails on valid input.
5229continue
5230fi
5231rm -f conftest.err conftest.$ac_ext
5232
5233 # OK, works on sane cases. Now check whether non-existent headers
5234 # can be detected and how.
5235 cat >conftest.$ac_ext <<_ACEOF
5236/* confdefs.h. */
5237_ACEOF
5238cat confdefs.h >>conftest.$ac_ext
5239cat >>conftest.$ac_ext <<_ACEOF
5240/* end confdefs.h. */
5241#include <ac_nonexistent.h>
5242_ACEOF
5243if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5244 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5245 ac_status=$?
5246 grep -v '^ *+' conftest.er1 >conftest.err
5247 rm -f conftest.er1
5248 cat conftest.err >&5
5249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250 (exit $ac_status); } >/dev/null; then
5251 if test -s conftest.err; then
5252 ac_cpp_err=$ac_cxx_preproc_warn_flag
8ab705be 5253 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
47935194
NN
5254 else
5255 ac_cpp_err=
5256 fi
5257else
5258 ac_cpp_err=yes
5259fi
5260if test -z "$ac_cpp_err"; then
5261 # Broken: success on invalid input.
5262continue
5263else
5264 echo "$as_me: failed program was:" >&5
5265sed 's/^/| /' conftest.$ac_ext >&5
5266
5267 # Passes both tests.
5268ac_preproc_ok=:
5269break
5270fi
5271rm -f conftest.err conftest.$ac_ext
5272
5273done
5274# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5275rm -f conftest.err conftest.$ac_ext
5276if $ac_preproc_ok; then
5277 :
5278else
5279 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5280See \`config.log' for more details." >&5
5281echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5282See \`config.log' for more details." >&2;}
5283 { (exit 1); exit 1; }; }
5284fi
5285
5286ac_ext=c
5287ac_cpp='$CPP $CPPFLAGS'
5288ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5289ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5290ac_compiler_gnu=$ac_cv_c_compiler_gnu
5291
66deb2be 5292
2f7bf5b7 5293
2f7bf5b7
AO
5294LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
5295lt_save_CC="$CC"
5296lt_save_CFLAGS="$CFLAGS"
5297AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2d65a52e 5298MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2f7bf5b7
AO
5299LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5300AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5301objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5302deplibs_check_method="$deplibs_check_method" \
5303file_magic_cmd="$file_magic_cmd" \
5304${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
5305--build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
47935194
NN
5306|| { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
5307echo "$as_me: error: libtool tag configuration failed" >&2;}
5308 { (exit 1); exit 1; }; }
2f7bf5b7
AO
5309CC="$lt_save_CC"
5310CFLAGS="$lt_save_CFLAGS"
5311
5312# Redirect the config.log output again, so that the ltconfig log is not
5313# clobbered by the next message.
5314exec 5>>./config.log
5315
2f7bf5b7 5316
47935194
NN
5317
5318
5319
5320
5321
2f7bf5b7 5322
1530be84
TT
5323# Check whether --with-target-subdir or --without-target-subdir was given.
5324if test "${with_target_subdir+set}" = set; then
5325 withval="$with_target_subdir"
47935194
NN
5326
5327fi;
1530be84
TT
5328
5329# Check whether --with-cross-host or --without-cross-host was given.
5330if test "${with_cross_host+set}" = set; then
5331 withval="$with_cross_host"
1530be84 5332
47935194 5333fi;
1530be84 5334
47935194
NN
5335echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
5336echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
0ff95153
TT
5337THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
5338if test -z "$THREADS"; then
5339 THREADS=no
5a2586cf 5340fi
47935194
NN
5341echo "$as_me:$LINENO: result: $THREADS" >&5
5342echo "${ECHO_T}$THREADS" >&6
5a2586cf
TT
5343
5344# Check whether --enable-parallel-mark or --disable-parallel-mark was given.
5345if test "${enable_parallel_mark+set}" = set; then
5346 enableval="$enable_parallel_mark"
5347 case "$THREADS" in
5348 no | none | single)
47935194
NN
5349 { { echo "$as_me:$LINENO: error: Parallel mark requires --enable-threads=x spec" >&5
5350echo "$as_me: error: Parallel mark requires --enable-threads=x spec" >&2;}
5351 { (exit 1); exit 1; }; }
5a2586cf
TT
5352 ;;
5353 esac
5354
47935194 5355fi;
1530be84 5356
bf9a420e 5357AM_CPPFLAGS="-I`cd $srcdir && ${PWDCMD-pwd}`/include"
e301621d 5358THREADLIBS=
1530be84
TT
5359case "$THREADS" in
5360 no | none | single)
5361 THREADS=none
5362 ;;
f3968b05 5363 posix | posix95 | pthreads)
1530be84 5364 THREADS=posix
62aa6b06 5365 THREADLIBS=-lpthread
1530be84 5366 case "$host" in
30c3de1f 5367 x86-*-linux* | ia64-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* | alpha-*-linux*)
5572488d
KC
5368
5369cat >>confdefs.h <<\_ACEOF
5a2586cf 5370#define GC_LINUX_THREADS 1
47935194 5371_ACEOF
5a2586cf 5372
5572488d
KC
5373
5374cat >>confdefs.h <<\_ACEOF
5a2586cf 5375#define _REENTRANT 1
47935194 5376_ACEOF
5a2586cf 5377
30c3de1f 5378 if test "${enable_parallel_mark}" = yes; then
5572488d
KC
5379
5380cat >>confdefs.h <<\_ACEOF
5a2586cf 5381#define PARALLEL_MARK 1
47935194 5382_ACEOF
5a2586cf
TT
5383
5384 fi
5572488d
KC
5385
5386cat >>confdefs.h <<\_ACEOF
5a2586cf 5387#define THREAD_LOCAL_ALLOC 1
47935194 5388_ACEOF
5a2586cf
TT
5389
5390 ;;
1530be84 5391 *-*-linux*)
47935194 5392 cat >>confdefs.h <<\_ACEOF
5a2586cf 5393#define GC_LINUX_THREADS 1
47935194 5394_ACEOF
1530be84 5395
47935194 5396 cat >>confdefs.h <<\_ACEOF
1530be84 5397#define _REENTRANT 1
47935194 5398_ACEOF
30c3de1f
JS
5399
5400 ;;
5401 *-*-aix*)
5572488d
KC
5402
5403cat >>confdefs.h <<\_ACEOF
30c3de1f 5404#define GC_AIX_THREADS 1
47935194 5405_ACEOF
30c3de1f 5406
47935194 5407 cat >>confdefs.h <<\_ACEOF
30c3de1f 5408#define _REENTRANT 1
47935194 5409_ACEOF
1530be84 5410
5a2586cf 5411 ;;
d0c03515
AT
5412 *-*-hpux11*)
5413 { echo "$as_me:$LINENO: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&5
5414echo "$as_me: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&2;}
5572488d
KC
5415
5416cat >>confdefs.h <<\_ACEOF
5a2586cf 5417#define GC_HPUX_THREADS 1
47935194 5418_ACEOF
5a2586cf 5419
5572488d
KC
5420
5421cat >>confdefs.h <<\_ACEOF
5a2586cf 5422#define _POSIX_C_SOURCE 199506L
47935194 5423_ACEOF
5a2586cf
TT
5424
5425 if test "${enable_parallel_mark}" = yes; then
47935194 5426 cat >>confdefs.h <<\_ACEOF
5a2586cf 5427#define PARALLEL_MARK 1
47935194 5428_ACEOF
5a2586cf
TT
5429
5430 fi
47935194 5431 cat >>confdefs.h <<\_ACEOF
5a2586cf 5432#define THREAD_LOCAL_ALLOC 1
47935194 5433_ACEOF
5a2586cf
TT
5434
5435 THREADLIBS="-lpthread -lrt"
d0c03515
AT
5436 # HPUX needs REENTRANT for the _r calls.
5437
5438cat >>confdefs.h <<\_ACEOF
5439#define _REENTRANT 1
5440_ACEOF
5441
5442 ;;
5443 *-*-hpux10*)
5444 { echo "$as_me:$LINENO: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&5
5445echo "$as_me: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&2;}
1530be84 5446 ;;
62aa6b06 5447 *-*-freebsd*)
47935194
NN
5448 { echo "$as_me:$LINENO: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&5
5449echo "$as_me: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&2;}
5572488d
KC
5450
5451cat >>confdefs.h <<\_ACEOF
4c7726b1 5452#define GC_FREEBSD_THREADS 1
47935194 5453_ACEOF
62aa6b06 5454
bf9a420e 5455 AM_CPPFLAGS="$AM_CPPFLAGS -pthread"
62aa6b06
LR
5456 THREADLIBS=-pthread
5457 ;;
1530be84 5458 *-*-solaris*)
5572488d
KC
5459
5460cat >>confdefs.h <<\_ACEOF
5a2586cf 5461#define GC_SOLARIS_THREADS 1
47935194 5462_ACEOF
1530be84 5463
5572488d
KC
5464
5465cat >>confdefs.h <<\_ACEOF
5a2586cf 5466#define GC_SOLARIS_PTHREADS 1
47935194 5467_ACEOF
14caa62f
GZ
5468
5469 ;;
5470 *-*-irix*)
5572488d
KC
5471
5472cat >>confdefs.h <<\_ACEOF
5a2586cf 5473#define GC_IRIX_THREADS 1
47935194 5474_ACEOF
1530be84 5475
a2d6e915
DB
5476 ;;
5477 *-*-cygwin*)
5572488d
KC
5478
5479cat >>confdefs.h <<\_ACEOF
30c3de1f 5480#define GC_WIN32_THREADS 1
47935194 5481_ACEOF
30c3de1f
JS
5482
5483 ;;
5484 *-*-darwin*)
5572488d
KC
5485
5486cat >>confdefs.h <<\_ACEOF
30c3de1f 5487#define GC_DARWIN_THREADS 1
47935194 5488_ACEOF
30c3de1f 5489
47935194 5490 cat >>confdefs.h <<\_ACEOF
30c3de1f 5491#define THREAD_LOCAL_ALLOC 1
47935194 5492_ACEOF
30c3de1f
JS
5493
5494 if test "${enable_parallel_mark}" = yes; then
47935194 5495 cat >>confdefs.h <<\_ACEOF
30c3de1f 5496#define PARALLEL_MARK 1
47935194 5497_ACEOF
30c3de1f
JS
5498
5499 fi
5500 ;;
5501 *-*-osf*)
5572488d
KC
5502
5503cat >>confdefs.h <<\_ACEOF
30c3de1f 5504#define GC_OSF1_THREADS 1
47935194 5505_ACEOF
30c3de1f
JS
5506
5507 if test "${enable_parallel_mark}" = yes; then
47935194 5508 cat >>confdefs.h <<\_ACEOF
30c3de1f 5509#define PARALLEL_MARK 1
47935194 5510_ACEOF
30c3de1f 5511
47935194 5512 cat >>confdefs.h <<\_ACEOF
30c3de1f 5513#define THREAD_LOCAL_ALLOC 1
47935194 5514_ACEOF
30c3de1f
JS
5515
5516 # May want to enable it in other cases, too.
5517 # Measurements havent yet been done.
5518 fi
bf9a420e 5519 AM_CPPFLAGS="$AM_CPPFLAGS -pthread"
30c3de1f 5520 THREADLIBS="-lpthread -lrt"
1530be84
TT
5521 ;;
5522 esac
5523 ;;
df61a3d2 5524 win32)
47935194 5525 cat >>confdefs.h <<\_ACEOF
df61a3d2 5526#define GC_WIN32_THREADS 1
47935194 5527_ACEOF
512e32d2 5528
a97386cd 5529 ;;
30c3de1f
JS
5530 dgux386)
5531 THREADS=dgux386
47935194
NN
5532echo "$as_me:$LINENO: result: $THREADLIBS" >&5
5533echo "${ECHO_T}$THREADLIBS" >&6
30c3de1f
JS
5534 # Use pthread GCC switch
5535 THREADLIBS=-pthread
5536 if test "${enable_parallel_mark}" = yes; then
47935194 5537 cat >>confdefs.h <<\_ACEOF
30c3de1f 5538#define PARALLEL_MARK 1
47935194 5539_ACEOF
e83a44d2
ME
5540
5541 fi
47935194 5542 cat >>confdefs.h <<\_ACEOF
30c3de1f 5543#define THREAD_LOCAL_ALLOC 1
47935194 5544_ACEOF
30c3de1f 5545
5572488d
KC
5546
5547cat >>confdefs.h <<\_ACEOF
30c3de1f 5548#define GC_DGUX386_THREADS 1
47935194 5549_ACEOF
30c3de1f 5550
5572488d
KC
5551
5552cat >>confdefs.h <<\_ACEOF
30c3de1f 5553#define DGUX_THREADS 1
47935194 5554_ACEOF
30c3de1f
JS
5555
5556 # Enable _POSIX4A_DRAFT10_SOURCE with flag -pthread
bf9a420e 5557 AM_CPPFLAGS="-pthread $AM_CPPFLAGS"
30c3de1f
JS
5558 ;;
5559 aix)
5560 THREADS=posix
5561 THREADLIBS=-lpthread
47935194 5562 cat >>confdefs.h <<\_ACEOF
30c3de1f 5563#define GC_AIX_THREADS 1
47935194 5564_ACEOF
30c3de1f 5565
47935194 5566 cat >>confdefs.h <<\_ACEOF
30c3de1f 5567#define _REENTRANT 1
47935194 5568_ACEOF
30c3de1f 5569
df61a3d2
AM
5570 ;;
5571 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
47935194
NN
5572 { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
5573echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
5574 { (exit 1); exit 1; }; }
1530be84
TT
5575 ;;
5576 *)
47935194
NN
5577 { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
5578echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
5579 { (exit 1); exit 1; }; }
1530be84
TT
5580 ;;
5581esac
1530be84 5582
20bbd3cd 5583
47935194 5584case "$host" in
30c3de1f
JS
5585 powerpc-*-darwin*)
5586 powerpc_darwin=true
5587 ;;
5588esac
5589
5590
5591if test x$powerpc_darwin = xtrue; then
5592 POWERPC_DARWIN_TRUE=
5593 POWERPC_DARWIN_FALSE='#'
5594else
5595 POWERPC_DARWIN_TRUE='#'
5596 POWERPC_DARWIN_FALSE=
5597fi
5598
bf9a420e 5599
30c3de1f
JS
5600# We never want libdl on darwin. It is a fake libdl that just ends up making
5601# dyld calls anyway
5602case "$host" in
5603 *-*-darwin*) ;;
47935194
NN
5604 *)
5605 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
5606echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
5607if test "${ac_cv_lib_dl_dlopen+set}" = set; then
5608 echo $ECHO_N "(cached) $ECHO_C" >&6
5609else
5610 ac_check_lib_save_LIBS=$LIBS
f2beb7ef 5611LIBS="-ldl $LIBS"
47935194
NN
5612if test x$gcc_no_link = xyes; then
5613 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5614echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5615 { (exit 1); exit 1; }; }
5616fi
5617cat >conftest.$ac_ext <<_ACEOF
5618/* confdefs.h. */
5619_ACEOF
5620cat confdefs.h >>conftest.$ac_ext
5621cat >>conftest.$ac_ext <<_ACEOF
5622/* end confdefs.h. */
5623
f2beb7ef 5624/* Override any gcc2 internal prototype to avoid an error. */
47935194
NN
5625#ifdef __cplusplus
5626extern "C"
5627#endif
f2beb7ef 5628/* We use char because int might match the return type of a gcc2
47935194
NN
5629 builtin and then its argument prototype would still apply. */
5630char dlopen ();
5631int
5632main ()
5633{
5634dlopen ();
5635 ;
5636 return 0;
5637}
5638_ACEOF
5639rm -f conftest.$ac_objext conftest$ac_exeext
5640if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8ab705be 5641 (eval $ac_link) 2>conftest.er1
47935194 5642 ac_status=$?
8ab705be
KC
5643 grep -v '^ *+' conftest.er1 >conftest.err
5644 rm -f conftest.er1
5645 cat conftest.err >&5
47935194
NN
5646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5647 (exit $ac_status); } &&
5572488d
KC
5648 { ac_try='test -z "$ac_c_werror_flag"
5649 || test ! -s conftest.err'
8ab705be
KC
5650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5651 (eval $ac_try) 2>&5
5652 ac_status=$?
5653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654 (exit $ac_status); }; } &&
5655 { ac_try='test -s conftest$ac_exeext'
47935194
NN
5656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5657 (eval $ac_try) 2>&5
5658 ac_status=$?
5659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5660 (exit $ac_status); }; }; then
5661 ac_cv_lib_dl_dlopen=yes
f2beb7ef 5662else
47935194
NN
5663 echo "$as_me: failed program was:" >&5
5664sed 's/^/| /' conftest.$ac_ext >&5
f2beb7ef 5665
47935194
NN
5666ac_cv_lib_dl_dlopen=no
5667fi
8ab705be
KC
5668rm -f conftest.err conftest.$ac_objext \
5669 conftest$ac_exeext conftest.$ac_ext
47935194 5670LIBS=$ac_check_lib_save_LIBS
f2beb7ef 5671fi
47935194
NN
5672echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
5673echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
5674if test $ac_cv_lib_dl_dlopen = yes; then
f2beb7ef 5675 EXTRA_TEST_LIBS="$EXTRA_TEST_LIBS -ldl"
f2beb7ef
APB
5676fi
5677
30c3de1f
JS
5678 ;;
5679esac
5680
f2beb7ef
APB
5681
5682
5a2586cf 5683target_all=libgcjgc.la
1530be84
TT
5684
5685
5686TARGET_ECOS="no"
47935194 5687
1530be84
TT
5688# Check whether --with-ecos or --without-ecos was given.
5689if test "${with_ecos+set}" = set; then
5690 withval="$with_ecos"
5691 TARGET_ECOS="$with_ecos"
5692
47935194 5693fi;
1530be84
TT
5694
5695addobjs=
30c3de1f
JS
5696addlibs=
5697addincludes=
5698addtests=
1530be84
TT
5699case "$TARGET_ECOS" in
5700 no)
5701 ;;
5702 *)
5572488d
KC
5703
5704cat >>confdefs.h <<\_ACEOF
1530be84 5705#define ECOS 1
47935194 5706_ACEOF
1530be84 5707
bf9a420e 5708 AM_CPPFLAGS="${AM_CPPFLAGS} -I${TARGET_ECOS}/include"
66deb2be 5709 addobjs="$addobjs ecos.lo"
1530be84
TT
5710 ;;
5711esac
5712
30c3de1f
JS
5713if test "${enable_cplusplus}" = yes; then
5714 addincludes="$addincludes include/gc_cpp.h include/gc_allocator.h"
5715 addtests="$addtests test_cpp"
5716fi
1530be84
TT
5717
5718
5719
30c3de1f
JS
5720if test "${enable_cplusplus}" = yes; then
5721 CPLUSPLUS_TRUE=
5722 CPLUSPLUS_FALSE='#'
5723else
5724 CPLUSPLUS_TRUE='#'
5725 CPLUSPLUS_FALSE=
5726fi
1530be84 5727
30c3de1f
JS
5728
5729
5730
5731
5732
5733# Configuration of shared libraries
5734#
47935194
NN
5735echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
5736echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
30c3de1f 5737# Check whether --enable-shared or --disable-shared was given.
4c7726b1
BM
5738if test "${enable_shared+set}" = set; then
5739 enableval="$enable_shared"
5740 p=${PACKAGE-default}
5741case $enableval in
5742yes) enable_shared=yes ;;
5743no) enable_shared=no ;;
5744*)
5745 enable_shared=no
5746 # Look at the argument we got. We use all the common list separators.
5747 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5748 for pkg in $enableval; do
5749 if test "X$pkg" = "X$p"; then
5750 enable_shared=yes
5751 fi
5752 done
5753 IFS="$ac_save_ifs"
5754 ;;
5755esac
5756else
30c3de1f 5757 enable_shared=yes
47935194 5758fi;
30c3de1f
JS
5759
5760case "$host" in
5761 alpha-*-openbsd*)
5762 enable_shared=no
47935194
NN
5763 echo "$as_me:$LINENO: result: no" >&5
5764echo "${ECHO_T}no" >&6
30c3de1f
JS
5765 ;;
5766 *)
47935194
NN
5767 echo "$as_me:$LINENO: result: yes" >&5
5768echo "${ECHO_T}yes" >&6
30c3de1f
JS
5769 ;;
5770esac
5771
5772# Configuration of machine-dependent code
5773#
b27317b5
AH
5774# We don't set NO_EXECUTE_PERMISSION by default because gcj (and
5775# anything else that creates trampolines in gc-allocated memory)
b1891e51 5776# always needs exec permission. The exceptions to this are IA-64 and
b27317b5
AH
5777# some variations of Power PC, where trampolines don't contain
5778# executable code.
5779#
47935194
NN
5780echo "$as_me:$LINENO: checking which machine-dependent code should be used" >&5
5781echo $ECHO_N "checking which machine-dependent code should be used... $ECHO_C" >&6
30c3de1f
JS
5782machdep=
5783case "$host" in
5784 alpha*-*-openbsd*)
5785 machdep="alpha_mach_dep.lo"
5786 if test x"${ac_cv_lib_dl_dlopen}" != xyes ; then
47935194
NN
5787 { echo "$as_me:$LINENO: WARNING: OpenBSD/Alpha without dlopen(). Shared library support is disabled" >&5
5788echo "$as_me: WARNING: OpenBSD/Alpha without dlopen(). Shared library support is disabled" >&2;}
4c7726b1 5789 fi
adb60117 5790 ;;
30c3de1f 5791 alpha*-*-linux*)
adb60117
RH
5792 machdep="alpha_mach_dep.lo"
5793 ;;
51ac684e 5794 i?86-*-solaris2.[89] | i?86-*-solaris2.1?)
5572488d
KC
5795
5796cat >>confdefs.h <<\_ACEOF
adb60117 5797#define SOLARIS25_PROC_VDB_BUG_FIXED 1
47935194 5798_ACEOF
adb60117 5799
f6823cb5 5800 ;;
1530be84 5801 mipstx39-*-elf*)
66deb2be 5802 machdep="mips_ultrix_mach_dep.lo"
5572488d
KC
5803
5804cat >>confdefs.h <<\_ACEOF
1530be84 5805#define STACKBASE __stackbase
47935194 5806_ACEOF
1530be84 5807
5572488d
KC
5808
5809cat >>confdefs.h <<\_ACEOF
1530be84 5810#define DATASTART_IS_ETEXT 1
47935194 5811_ACEOF
1530be84
TT
5812
5813 ;;
276836f0
RO
5814 mips-dec-ultrix*)
5815 machdep="mips_ultrix_mach-dep.lo"
5816 ;;
30c3de1f 5817 mips-nec-sysv*|mips-unknown-sysv*)
5316699d 5818 ;;
47935194
NN
5819 mips*-*-linux*)
5820 ;;
276836f0
RO
5821 mips-*-*)
5822 machdep="mips_sgi_mach_dep.lo"
30c3de1f
JS
5823 ;;
5824 sparc-*-netbsd*)
5825 machdep="sparc_netbsd_mach_dep.lo"
d42058b1 5826 ;;
51ac684e 5827 sparc-sun-solaris2.3)
79f777fd 5828 machdep="sparc_mach_dep.lo"
5572488d
KC
5829
5830cat >>confdefs.h <<\_ACEOF
1530be84 5831#define SUNOS53_SHARED_LIB 1
47935194 5832_ACEOF
1530be84 5833
4c7726b1 5834 ;;
ab52d207 5835 sparc*-sun-solaris2.*)
79f777fd
BM
5836 machdep="sparc_mach_dep.lo"
5837 ;;
5838 ia64-*-*)
5572488d
KC
5839
5840cat >>confdefs.h <<\_ACEOF
b27317b5 5841#define NO_EXECUTE_PERMISSION 1
47935194 5842_ACEOF
b27317b5 5843
4c7726b1 5844 machdep="mach_dep.lo ia64_save_regs_in_stack.lo"
1530be84
TT
5845 ;;
5846esac
5847if test x"$machdep" = x; then
47935194
NN
5848echo "$as_me:$LINENO: result: $machdep" >&5
5849echo "${ECHO_T}$machdep" >&6
66deb2be 5850 machdep="mach_dep.lo"
1530be84
TT
5851fi
5852addobjs="$addobjs $machdep"
5853
5854
30c3de1f
JS
5855
5856
5857
30c3de1f
JS
5858#
5859# Check for AViiON Machines running DGUX
5860#
47935194
NN
5861echo "$as_me:$LINENO: checking if host is AViiON running DGUX" >&5
5862echo $ECHO_N "checking if host is AViiON running DGUX... $ECHO_C" >&6
30c3de1f 5863ac_is_dgux=no
47935194
NN
5864ac_ext=c
5865ac_cpp='$CPP $CPPFLAGS'
5866ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5867ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5868ac_compiler_gnu=$ac_cv_c_compiler_gnu
5869echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5870echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
30c3de1f
JS
5871# On Suns, sometimes $CPP names a directory.
5872if test -n "$CPP" && test -d "$CPP"; then
5873 CPP=
5874fi
5875if test -z "$CPP"; then
47935194
NN
5876 if test "${ac_cv_prog_CPP+set}" = set; then
5877 echo $ECHO_N "(cached) $ECHO_C" >&6
30c3de1f 5878else
47935194
NN
5879 # Double quotes because CPP needs to be expanded
5880 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5881 do
5882 ac_preproc_ok=false
5883for ac_c_preproc_warn_flag in '' yes
5884do
5885 # Use a header file that comes with gcc, so configuring glibc
5886 # with a fresh cross-compiler works.
5887 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5888 # <limits.h> exists even on freestanding compilers.
30c3de1f 5889 # On the NeXT, cc -E runs the code through the compiler's parser,
47935194
NN
5890 # not just through cpp. "Syntax error" is here to catch this case.
5891 cat >conftest.$ac_ext <<_ACEOF
5892/* confdefs.h. */
5893_ACEOF
5894cat confdefs.h >>conftest.$ac_ext
5895cat >>conftest.$ac_ext <<_ACEOF
5896/* end confdefs.h. */
5897#ifdef __STDC__
5898# include <limits.h>
5899#else
5900# include <assert.h>
5901#endif
8ab705be 5902 Syntax error
47935194
NN
5903_ACEOF
5904if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5905 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5906 ac_status=$?
5907 grep -v '^ *+' conftest.er1 >conftest.err
5908 rm -f conftest.er1
5909 cat conftest.err >&5
5910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911 (exit $ac_status); } >/dev/null; then
5912 if test -s conftest.err; then
5913 ac_cpp_err=$ac_c_preproc_warn_flag
8ab705be 5914 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
47935194
NN
5915 else
5916 ac_cpp_err=
5917 fi
30c3de1f 5918else
47935194
NN
5919 ac_cpp_err=yes
5920fi
5921if test -z "$ac_cpp_err"; then
30c3de1f
JS
5922 :
5923else
47935194
NN
5924 echo "$as_me: failed program was:" >&5
5925sed 's/^/| /' conftest.$ac_ext >&5
5926
5927 # Broken: fails on valid input.
5928continue
5929fi
5930rm -f conftest.err conftest.$ac_ext
5931
5932 # OK, works on sane cases. Now check whether non-existent headers
5933 # can be detected and how.
5934 cat >conftest.$ac_ext <<_ACEOF
5935/* confdefs.h. */
5936_ACEOF
5937cat confdefs.h >>conftest.$ac_ext
5938cat >>conftest.$ac_ext <<_ACEOF
5939/* end confdefs.h. */
5940#include <ac_nonexistent.h>
5941_ACEOF
5942if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5943 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5944 ac_status=$?
5945 grep -v '^ *+' conftest.er1 >conftest.err
5946 rm -f conftest.er1
5947 cat conftest.err >&5
5948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 (exit $ac_status); } >/dev/null; then
5950 if test -s conftest.err; then
5951 ac_cpp_err=$ac_c_preproc_warn_flag
8ab705be 5952 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
47935194
NN
5953 else
5954 ac_cpp_err=
5955 fi
30c3de1f 5956else
47935194 5957 ac_cpp_err=yes
30c3de1f 5958fi
47935194
NN
5959if test -z "$ac_cpp_err"; then
5960 # Broken: success on invalid input.
5961continue
5962else
5963 echo "$as_me: failed program was:" >&5
5964sed 's/^/| /' conftest.$ac_ext >&5
5965
5966 # Passes both tests.
5967ac_preproc_ok=:
5968break
30c3de1f 5969fi
47935194
NN
5970rm -f conftest.err conftest.$ac_ext
5971
5972done
5973# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5974rm -f conftest.err conftest.$ac_ext
5975if $ac_preproc_ok; then
5976 break
5977fi
5978
5979 done
5980 ac_cv_prog_CPP=$CPP
5981
5982fi
5983 CPP=$ac_cv_prog_CPP
5984else
5985 ac_cv_prog_CPP=$CPP
5986fi
5987echo "$as_me:$LINENO: result: $CPP" >&5
5988echo "${ECHO_T}$CPP" >&6
5989ac_preproc_ok=false
5990for ac_c_preproc_warn_flag in '' yes
5991do
5992 # Use a header file that comes with gcc, so configuring glibc
5993 # with a fresh cross-compiler works.
5994 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5995 # <limits.h> exists even on freestanding compilers.
5996 # On the NeXT, cc -E runs the code through the compiler's parser,
5997 # not just through cpp. "Syntax error" is here to catch this case.
5998 cat >conftest.$ac_ext <<_ACEOF
5999/* confdefs.h. */
6000_ACEOF
6001cat confdefs.h >>conftest.$ac_ext
6002cat >>conftest.$ac_ext <<_ACEOF
6003/* end confdefs.h. */
6004#ifdef __STDC__
6005# include <limits.h>
6006#else
6007# include <assert.h>
6008#endif
8ab705be 6009 Syntax error
47935194
NN
6010_ACEOF
6011if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6012 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6013 ac_status=$?
6014 grep -v '^ *+' conftest.er1 >conftest.err
6015 rm -f conftest.er1
6016 cat conftest.err >&5
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); } >/dev/null; then
6019 if test -s conftest.err; then
6020 ac_cpp_err=$ac_c_preproc_warn_flag
8ab705be 6021 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
47935194
NN
6022 else
6023 ac_cpp_err=
6024 fi
6025else
6026 ac_cpp_err=yes
6027fi
6028if test -z "$ac_cpp_err"; then
6029 :
6030else
6031 echo "$as_me: failed program was:" >&5
6032sed 's/^/| /' conftest.$ac_ext >&5
6033
6034 # Broken: fails on valid input.
6035continue
6036fi
6037rm -f conftest.err conftest.$ac_ext
6038
6039 # OK, works on sane cases. Now check whether non-existent headers
6040 # can be detected and how.
6041 cat >conftest.$ac_ext <<_ACEOF
6042/* confdefs.h. */
6043_ACEOF
6044cat confdefs.h >>conftest.$ac_ext
6045cat >>conftest.$ac_ext <<_ACEOF
6046/* end confdefs.h. */
6047#include <ac_nonexistent.h>
6048_ACEOF
6049if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6050 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6051 ac_status=$?
6052 grep -v '^ *+' conftest.er1 >conftest.err
6053 rm -f conftest.er1
6054 cat conftest.err >&5
6055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056 (exit $ac_status); } >/dev/null; then
6057 if test -s conftest.err; then
6058 ac_cpp_err=$ac_c_preproc_warn_flag
8ab705be 6059 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
47935194
NN
6060 else
6061 ac_cpp_err=
6062 fi
6063else
6064 ac_cpp_err=yes
6065fi
6066if test -z "$ac_cpp_err"; then
6067 # Broken: success on invalid input.
6068continue
6069else
6070 echo "$as_me: failed program was:" >&5
6071sed 's/^/| /' conftest.$ac_ext >&5
6072
6073 # Passes both tests.
6074ac_preproc_ok=:
6075break
6076fi
6077rm -f conftest.err conftest.$ac_ext
6078
6079done
6080# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6081rm -f conftest.err conftest.$ac_ext
6082if $ac_preproc_ok; then
6083 :
6084else
6085 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6086See \`config.log' for more details." >&5
6087echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6088See \`config.log' for more details." >&2;}
6089 { (exit 1); exit 1; }; }
6090fi
6091
6092ac_ext=c
6093ac_cpp='$CPP $CPPFLAGS'
6094ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6095ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6096ac_compiler_gnu=$ac_cv_c_compiler_gnu
6097
6098
6099echo "$as_me:$LINENO: checking for egrep" >&5
6100echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6101if test "${ac_cv_prog_egrep+set}" = set; then
6102 echo $ECHO_N "(cached) $ECHO_C" >&6
6103else
6104 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6105 then ac_cv_prog_egrep='grep -E'
6106 else ac_cv_prog_egrep='egrep'
6107 fi
6108fi
6109echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6110echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6111 EGREP=$ac_cv_prog_egrep
6112
6113
6114echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6115echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6116if test "${ac_cv_header_stdc+set}" = set; then
6117 echo $ECHO_N "(cached) $ECHO_C" >&6
6118else
6119 cat >conftest.$ac_ext <<_ACEOF
6120/* confdefs.h. */
6121_ACEOF
6122cat confdefs.h >>conftest.$ac_ext
6123cat >>conftest.$ac_ext <<_ACEOF
6124/* end confdefs.h. */
6125#include <stdlib.h>
6126#include <stdarg.h>
6127#include <string.h>
6128#include <float.h>
6129
6130int
6131main ()
6132{
6133
6134 ;
6135 return 0;
6136}
6137_ACEOF
6138rm -f conftest.$ac_objext
6139if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8ab705be 6140 (eval $ac_compile) 2>conftest.er1
47935194 6141 ac_status=$?
8ab705be
KC
6142 grep -v '^ *+' conftest.er1 >conftest.err
6143 rm -f conftest.er1
6144 cat conftest.err >&5
47935194
NN
6145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146 (exit $ac_status); } &&
5572488d
KC
6147 { ac_try='test -z "$ac_c_werror_flag"
6148 || test ! -s conftest.err'
8ab705be
KC
6149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6150 (eval $ac_try) 2>&5
6151 ac_status=$?
6152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153 (exit $ac_status); }; } &&
6154 { ac_try='test -s conftest.$ac_objext'
47935194
NN
6155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6156 (eval $ac_try) 2>&5
6157 ac_status=$?
6158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159 (exit $ac_status); }; }; then
6160 ac_cv_header_stdc=yes
6161else
6162 echo "$as_me: failed program was:" >&5
6163sed 's/^/| /' conftest.$ac_ext >&5
6164
6165ac_cv_header_stdc=no
6166fi
8ab705be 6167rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47935194
NN
6168
6169if test $ac_cv_header_stdc = yes; then
6170 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6171 cat >conftest.$ac_ext <<_ACEOF
6172/* confdefs.h. */
6173_ACEOF
6174cat confdefs.h >>conftest.$ac_ext
6175cat >>conftest.$ac_ext <<_ACEOF
6176/* end confdefs.h. */
6177#include <string.h>
6178
6179_ACEOF
6180if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6181 $EGREP "memchr" >/dev/null 2>&1; then
6182 :
6183else
6184 ac_cv_header_stdc=no
30c3de1f
JS
6185fi
6186rm -f conftest*
47935194
NN
6187
6188fi
6189
6190if test $ac_cv_header_stdc = yes; then
6191 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6192 cat >conftest.$ac_ext <<_ACEOF
6193/* confdefs.h. */
6194_ACEOF
6195cat confdefs.h >>conftest.$ac_ext
6196cat >>conftest.$ac_ext <<_ACEOF
6197/* end confdefs.h. */
6198#include <stdlib.h>
6199
6200_ACEOF
6201if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6202 $EGREP "free" >/dev/null 2>&1; then
6203 :
6204else
6205 ac_cv_header_stdc=no
6206fi
6207rm -f conftest*
6208
30c3de1f 6209fi
47935194
NN
6210
6211if test $ac_cv_header_stdc = yes; then
6212 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6213 if test "$cross_compiling" = yes; then
6214 :
6215else
6216 cat >conftest.$ac_ext <<_ACEOF
6217/* confdefs.h. */
6218_ACEOF
6219cat confdefs.h >>conftest.$ac_ext
6220cat >>conftest.$ac_ext <<_ACEOF
6221/* end confdefs.h. */
6222#include <ctype.h>
6223#if ((' ' & 0x0FF) == 0x020)
6224# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6225# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6226#else
6227# define ISLOWER(c) \
8ab705be
KC
6228 (('a' <= (c) && (c) <= 'i') \
6229 || ('j' <= (c) && (c) <= 'r') \
6230 || ('s' <= (c) && (c) <= 'z'))
47935194
NN
6231# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6232#endif
6233
6234#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6235int
6236main ()
6237{
6238 int i;
6239 for (i = 0; i < 256; i++)
6240 if (XOR (islower (i), ISLOWER (i))
8ab705be 6241 || toupper (i) != TOUPPER (i))
47935194
NN
6242 exit(2);
6243 exit (0);
6244}
6245_ACEOF
6246rm -f conftest$ac_exeext
6247if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6248 (eval $ac_link) 2>&5
6249 ac_status=$?
6250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6253 (eval $ac_try) 2>&5
6254 ac_status=$?
6255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256 (exit $ac_status); }; }; then
6257 :
30c3de1f 6258else
47935194
NN
6259 echo "$as_me: program exited with status $ac_status" >&5
6260echo "$as_me: failed program was:" >&5
6261sed 's/^/| /' conftest.$ac_ext >&5
6262
6263( exit $ac_status )
6264ac_cv_header_stdc=no
6265fi
6266rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6267fi
30c3de1f 6268fi
47935194
NN
6269fi
6270echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6271echo "${ECHO_T}$ac_cv_header_stdc" >&6
6272if test $ac_cv_header_stdc = yes; then
6273
6274cat >>confdefs.h <<\_ACEOF
6275#define STDC_HEADERS 1
6276_ACEOF
6277
6278fi
6279
6280# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8ab705be 6291 inttypes.h stdint.h unistd.h
47935194
NN
6292do
6293as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6294echo "$as_me:$LINENO: checking for $ac_header" >&5
6295echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6296if eval "test \"\${$as_ac_Header+set}\" = set"; then
6297 echo $ECHO_N "(cached) $ECHO_C" >&6
6298else
6299 cat >conftest.$ac_ext <<_ACEOF
6300/* confdefs.h. */
6301_ACEOF
6302cat confdefs.h >>conftest.$ac_ext
6303cat >>conftest.$ac_ext <<_ACEOF
6304/* end confdefs.h. */
6305$ac_includes_default
6306
6307#include <$ac_header>
6308_ACEOF
6309rm -f conftest.$ac_objext
6310if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8ab705be 6311 (eval $ac_compile) 2>conftest.er1
47935194 6312 ac_status=$?
8ab705be
KC
6313 grep -v '^ *+' conftest.er1 >conftest.err
6314 rm -f conftest.er1
6315 cat conftest.err >&5
47935194
NN
6316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317 (exit $ac_status); } &&
5572488d
KC
6318 { ac_try='test -z "$ac_c_werror_flag"
6319 || test ! -s conftest.err'
8ab705be
KC
6320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6321 (eval $ac_try) 2>&5
6322 ac_status=$?
6323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6324 (exit $ac_status); }; } &&
6325 { ac_try='test -s conftest.$ac_objext'
47935194
NN
6326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6327 (eval $ac_try) 2>&5
6328 ac_status=$?
6329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6330 (exit $ac_status); }; }; then
6331 eval "$as_ac_Header=yes"
6332else
6333 echo "$as_me: failed program was:" >&5
6334sed 's/^/| /' conftest.$ac_ext >&5
6335
6336eval "$as_ac_Header=no"
6337fi
8ab705be 6338rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47935194
NN
6339fi
6340echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6341echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6342if test `eval echo '${'$as_ac_Header'}'` = yes; then
6343 cat >>confdefs.h <<_ACEOF
6344#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6345_ACEOF
6346
6347fi
6348
6349done
6350
30c3de1f 6351
47935194
NN
6352if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
6353 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
6354echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
6355if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
6356 echo $ECHO_N "(cached) $ECHO_C" >&6
6357fi
6358echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
6359echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
30c3de1f 6360else
47935194
NN
6361 # Is the header compilable?
6362echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
6363echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
6364cat >conftest.$ac_ext <<_ACEOF
6365/* confdefs.h. */
6366_ACEOF
6367cat confdefs.h >>conftest.$ac_ext
6368cat >>conftest.$ac_ext <<_ACEOF
6369/* end confdefs.h. */
6370$ac_includes_default
30c3de1f 6371#include <sys/dg_sys_info.h>
47935194
NN
6372_ACEOF
6373rm -f conftest.$ac_objext
6374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8ab705be 6375 (eval $ac_compile) 2>conftest.er1
47935194 6376 ac_status=$?
8ab705be
KC
6377 grep -v '^ *+' conftest.er1 >conftest.err
6378 rm -f conftest.er1
6379 cat conftest.err >&5
47935194
NN
6380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381 (exit $ac_status); } &&
5572488d
KC
6382 { ac_try='test -z "$ac_c_werror_flag"
6383 || test ! -s conftest.err'
8ab705be
KC
6384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6385 (eval $ac_try) 2>&5
6386 ac_status=$?
6387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6388 (exit $ac_status); }; } &&
6389 { ac_try='test -s conftest.$ac_objext'
47935194
NN
6390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6391 (eval $ac_try) 2>&5
6392 ac_status=$?
6393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6394 (exit $ac_status); }; }; then
6395 ac_header_compiler=yes
30c3de1f 6396else
47935194
NN
6397 echo "$as_me: failed program was:" >&5
6398sed 's/^/| /' conftest.$ac_ext >&5
6399
6400ac_header_compiler=no
6401fi
8ab705be 6402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47935194
NN
6403echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6404echo "${ECHO_T}$ac_header_compiler" >&6
6405
6406# Is the header present?
6407echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
6408echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
6409cat >conftest.$ac_ext <<_ACEOF
6410/* confdefs.h. */
6411_ACEOF
6412cat confdefs.h >>conftest.$ac_ext
6413cat >>conftest.$ac_ext <<_ACEOF
6414/* end confdefs.h. */
6415#include <sys/dg_sys_info.h>
6416_ACEOF
6417if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6418 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6419 ac_status=$?
6420 grep -v '^ *+' conftest.er1 >conftest.err
6421 rm -f conftest.er1
6422 cat conftest.err >&5
6423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6424 (exit $ac_status); } >/dev/null; then
6425 if test -s conftest.err; then
6426 ac_cpp_err=$ac_c_preproc_warn_flag
8ab705be 6427 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
47935194
NN
6428 else
6429 ac_cpp_err=
6430 fi
6431else
6432 ac_cpp_err=yes
30c3de1f 6433fi
47935194
NN
6434if test -z "$ac_cpp_err"; then
6435 ac_header_preproc=yes
6436else
6437 echo "$as_me: failed program was:" >&5
6438sed 's/^/| /' conftest.$ac_ext >&5
6439
6440 ac_header_preproc=no
6441fi
6442rm -f conftest.err conftest.$ac_ext
6443echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6444echo "${ECHO_T}$ac_header_preproc" >&6
6445
6446# So? What about this header?
8ab705be
KC
6447case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6448 yes:no: )
47935194
NN
6449 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
6450echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8ab705be
KC
6451 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
6452echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
6453 ac_header_preproc=yes
47935194 6454 ;;
8ab705be 6455 no:yes:* )
47935194
NN
6456 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
6457echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
8ab705be
KC
6458 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
6459echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
6460 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
6461echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
6462 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
6463echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
47935194
NN
6464 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
6465echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
8ab705be
KC
6466 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
6467echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
47935194
NN
6468 (
6469 cat <<\_ASBOX
8ab705be
KC
6470## ------------------------------------------ ##
6471## Report this to the AC_PACKAGE_NAME lists. ##
6472## ------------------------------------------ ##
47935194
NN
6473_ASBOX
6474 ) |
6475 sed "s/^/$as_me: WARNING: /" >&2
6476 ;;
6477esac
6478echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
6479echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
6480if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
6481 echo $ECHO_N "(cached) $ECHO_C" >&6
6482else
6483 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
30c3de1f 6484fi
47935194
NN
6485echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
6486echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
6487
6488fi
6489if test $ac_cv_header_sys_dg_sys_info_h = yes; then
30c3de1f 6490 ac_is_dgux=yes;
30c3de1f
JS
6491fi
6492
6493
47935194
NN
6494
6495echo "$as_me:$LINENO: result: $ac_is_dgux" >&5
6496echo "${ECHO_T}$ac_is_dgux" >&6
30c3de1f
JS
6497 ## :GOTCHA: we do not check anything but sys/dg_sys_info.h
6498if test $ac_is_dgux = yes; then
6499 if test "$enable_full_debug" = "yes"; then
6500 CFLAGS="-g -mstandard -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
6501 CXXFLAGS="-g -mstandard -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
6502 else
6503 CFLAGS="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
6504 CXXFLAGS="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
6505 fi
47935194
NN
6506
6507
30c3de1f
JS
6508fi
6509
47935194
NN
6510echo "$as_me:$LINENO: checking whether Solaris gcc optimization fix is necessary" >&5
6511echo $ECHO_N "checking whether Solaris gcc optimization fix is necessary... $ECHO_C" >&6
1530be84 6512case "$host" in
ab52d207 6513 *aix*)
1530be84 6514 if test "$GCC" = yes; then
47935194
NN
6515 echo "$as_me:$LINENO: result: yes" >&5
6516echo "${ECHO_T}yes" >&6
1530be84
TT
6517 new_CFLAGS=
6518 for i in $CFLAGS; do
6519 case "$i" in
6520 -O*)
6521 ;;
6522 *)
6523 new_CFLAGS="$new_CFLAGS $i"
6524 ;;
6525 esac
6526 done
6527 CFLAGS="$new_CFLAGS"
30c3de1f 6528 else
47935194
NN
6529 echo "$as_me:$LINENO: result: no" >&5
6530echo "${ECHO_T}no" >&6
1530be84
TT
6531 fi
6532 ;;
47935194
NN
6533 *) echo "$as_me:$LINENO: result: no" >&5
6534echo "${ECHO_T}no" >&6 ;;
1530be84
TT
6535esac
6536
6537MY_CFLAGS="$CFLAGS"
6538
6539
5572488d 6540
47935194 6541cat >>confdefs.h <<\_ACEOF
1530be84 6542#define SILENT 1
47935194 6543_ACEOF
1530be84 6544
5572488d 6545
47935194 6546cat >>confdefs.h <<\_ACEOF
1530be84 6547#define NO_SIGNALS 1
47935194 6548_ACEOF
1530be84 6549
5572488d 6550
47935194 6551cat >>confdefs.h <<\_ACEOF
5a2586cf 6552#define ALL_INTERIOR_POINTERS 1
47935194 6553_ACEOF
5a2586cf
TT
6554
6555
5572488d 6556
47935194 6557cat >>confdefs.h <<\_ACEOF
0476f098 6558#define JAVA_FINALIZATION 1
47935194 6559_ACEOF
1530be84 6560
5572488d 6561
47935194 6562cat >>confdefs.h <<\_ACEOF
0476f098 6563#define GC_GCJ_SUPPORT 1
47935194 6564_ACEOF
1530be84 6565
5572488d 6566
47935194 6567cat >>confdefs.h <<\_ACEOF
5a2586cf 6568#define ATOMIC_UNCOLLECTABLE 1
47935194 6569_ACEOF
5a2586cf 6570
1530be84 6571
1530be84 6572if test -n "${with_cross_host}"; then
5572488d
KC
6573
6574cat >>confdefs.h <<\_ACEOF
1530be84 6575#define NO_SIGSET 1
47935194 6576_ACEOF
0476f098 6577
5572488d
KC
6578
6579cat >>confdefs.h <<\_ACEOF
0476f098 6580#define NO_DEBUGGING 1
47935194 6581_ACEOF
1530be84
TT
6582
6583fi
6584
3c1cbf58
HB
6585# Check whether --enable-gc-debug or --disable-gc-debug was given.
6586if test "${enable_gc_debug+set}" = set; then
6587 enableval="$enable_gc_debug"
6588 if test "$enable_gc_debug" = "yes"; then
47935194
NN
6589 { echo "$as_me:$LINENO: WARNING: \"Must define GC_DEBUG and use debug alloc. in clients.\"" >&5
6590echo "$as_me: WARNING: \"Must define GC_DEBUG and use debug alloc. in clients.\"" >&2;}
5572488d
KC
6591
6592cat >>confdefs.h <<\_ACEOF
5a2586cf 6593#define KEEP_BACK_PTRS 1
47935194 6594_ACEOF
5a2586cf 6595
5572488d
KC
6596
6597cat >>confdefs.h <<\_ACEOF
5a2586cf 6598#define DBG_HDRS_ALL 1
47935194 6599_ACEOF
5a2586cf
TT
6600
6601 case $host in
79f777fd 6602 ia64-*-linux* )
5572488d
KC
6603
6604cat >>confdefs.h <<\_ACEOF
79f777fd 6605#define MAKE_BACK_GRAPH 1
47935194 6606_ACEOF
79f777fd
BM
6607
6608 ;;
48528b67 6609 x86-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* )
47935194 6610 cat >>confdefs.h <<\_ACEOF
79f777fd 6611#define MAKE_BACK_GRAPH 1
47935194 6612_ACEOF
79f777fd 6613
47935194
NN
6614 { echo "$as_me:$LINENO: WARNING: \"Client must not use -fomit-frame-pointer.\"" >&5
6615echo "$as_me: WARNING: \"Client must not use -fomit-frame-pointer.\"" >&2;}
5572488d
KC
6616
6617cat >>confdefs.h <<\_ACEOF
5a2586cf 6618#define SAVE_CALL_COUNT 8
47935194 6619_ACEOF
30c3de1f
JS
6620
6621 ;;
6622 i345686-*-dgux*)
47935194 6623 cat >>confdefs.h <<\_ACEOF
30c3de1f 6624#define MAKE_BACK_GRAPH 1
47935194 6625_ACEOF
5a2586cf
TT
6626
6627 ;;
47935194 6628 esac
5a2586cf 6629 fi
47935194 6630fi;
5a2586cf 6631
5909b034
BM
6632if test "${gc_use_mmap}" = "yes"; then
6633
6634cat >>confdefs.h <<\_ACEOF
6635#define USE_MMAP 1
6636_ACEOF
6637
6638fi
6639
5fd231d2
JJ
6640symver=
6641case "$target" in
6642 *-*-linux* )
6643 cat > conftest.c <<EOF
6644#include <pthread.h>
6645void *tf (void *arg) { (void) arg; return NULL; }
6646int main (void) { pthread_t th; pthread_create (&th, NULL, tf, NULL); return 0; }
6647EOF
6648 if $CC $CFLAGS -pthread -o conftest conftest.c > /dev/null 2>&1; then
6649 symver=`readelf -s conftest 2> /dev/null | sed -n '/UND pthread_create@/{s/^.*@//;s/ .*$//;p;q}'`
6650 fi
6651 rm -f conftest conftest.c
6652 ;;
6653esac
6654if test -n "$symver"; then
6655
6656cat >>confdefs.h <<_ACEOF
6657#define GC_PTHREAD_SYM_VERSION "$symver"
6658_ACEOF
6659
6660fi
6661
6662
13b6e5b4
AO
6663if test -n "$with_cross_host" &&
6664 test x"$with_cross_host" != x"no"; then
d38d6003 6665 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
13b6e5b4 6666 toolexeclibdir='$(toolexecdir)/lib'
b48ed568 6667else
d38d6003 6668 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
13b6e5b4 6669 toolexeclibdir='$(libdir)'
b48ed568 6670fi
ff8b9ca8
AS
6671multi_os_directory=`$CC -print-multi-os-directory`
6672case $multi_os_directory in
6673 .) ;; # Avoid trailing /.
6674 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
6675esac
13b6e5b4
AO
6676
6677
b48ed568 6678
1530be84
TT
6679if test "${multilib}" = "yes"; then
6680 multilib_arg="--enable-multilib"
6681else
6682 multilib_arg=
6683fi
6684
9a060b37 6685 ac_config_headers="$ac_config_headers include/gc_config.h include/gc_ext_config.h"
4109fe85 6686
bf9a420e 6687
47935194 6688 ac_config_files="$ac_config_files Makefile include/Makefile"
bf9a420e 6689
47935194 6690cat >confcache <<\_ACEOF
1530be84
TT
6691# This file is a shell script that caches the results of configure
6692# tests run on this system so they can be shared between configure
47935194
NN
6693# scripts and configure runs, see configure's option --config-cache.
6694# It is not useful on other systems. If it contains results you don't
6695# want to keep, you may remove or edit it.
1530be84 6696#
47935194
NN
6697# config.status only pays attention to the cache file if you give it
6698# the --recheck option to rerun configure.
1530be84 6699#
47935194
NN
6700# `ac_cv_env_foo' variables (set or unset) will be overridden when
6701# loading this file, other *unset* `ac_cv_foo' will be assigned the
6702# following values.
6703
6704_ACEOF
6705
1530be84
TT
6706# The following way of writing the cache mishandles newlines in values,
6707# but we know of no workaround that is simple, portable, and efficient.
6708# So, don't put newlines in cache variables' values.
6709# Ultrix sh set writes to stderr and can't be redirected directly,
6710# and sets the high bit in the cache file unless we assign to the vars.
47935194
NN
6711{
6712 (set) 2>&1 |
6713 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6714 *ac_space=\ *)
6715 # `set' does not quote correctly, so add quotes (double-quote
6716 # substitution turns \\\\ into \\, and sed turns \\ into \).
6717 sed -n \
8ab705be
KC
6718 "s/'/'\\\\''/g;
6719 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
47935194
NN
6720 ;;
6721 *)
6722 # `set' quotes correctly as required by POSIX, so do not add quotes.
6723 sed -n \
8ab705be 6724 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
47935194
NN
6725 ;;
6726 esac;
6727} |
6728 sed '
6729 t clear
6730 : clear
6731 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6732 t end
6733 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6734 : end' >>confcache
6735if diff $cache_file confcache >/dev/null 2>&1; then :; else
1530be84 6736 if test -w $cache_file; then
47935194
NN
6737 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6738 cat confcache >$cache_file
1530be84
TT
6739 else
6740 echo "not updating unwritable cache $cache_file"
6741 fi
6742fi
6743rm -f confcache
6744
1530be84
TT
6745test "x$prefix" = xNONE && prefix=$ac_default_prefix
6746# Let make expand exec_prefix.
6747test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6748
47935194
NN
6749# VPATH may cause trouble with some makes, so we remove $(srcdir),
6750# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6751# trailing colons and then remove the whole line if VPATH becomes empty
6752# (actually we leave an empty line to preserve line numbers).
1530be84 6753if test "x$srcdir" = x.; then
8ab705be 6754 ac_vpsub='/^[ ]*VPATH[ ]*=/{
47935194
NN
6755s/:*\$(srcdir):*/:/;
6756s/:*\${srcdir}:*/:/;
6757s/:*@srcdir@:*/:/;
8ab705be 6758s/^\([^=]*=[ ]*\):*/\1/;
47935194 6759s/:*$//;
8ab705be 6760s/^[^=]*=[ ]*$//;
47935194 6761}'
1530be84
TT
6762fi
6763
4109fe85 6764DEFS=-DHAVE_CONFIG_H
47935194
NN
6765
6766ac_libobjs=
6767ac_ltlibobjs=
6768for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6769 # 1. Remove the extension, and $U if already installed.
6770 ac_i=`echo "$ac_i" |
8ab705be 6771 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
47935194
NN
6772 # 2. Add them.
6773 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6774 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6775done
6776LIBOBJS=$ac_libobjs
1530be84 6777
47935194 6778LTLIBOBJS=$ac_ltlibobjs
1530be84 6779
1530be84 6780
bf9a420e
PB
6781if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6782 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
6783Usually this means the macro was only invoked conditionally." >&5
6784echo "$as_me: error: conditional \"AMDEP\" was never defined.
6785Usually this means the macro was only invoked conditionally." >&2;}
6786 { (exit 1); exit 1; }; }
6787fi
6788if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6789 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
6790Usually this means the macro was only invoked conditionally." >&5
6791echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
6792Usually this means the macro was only invoked conditionally." >&2;}
6793 { (exit 1); exit 1; }; }
6794fi
6795if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
6796 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
6797Usually this means the macro was only invoked conditionally." >&5
6798echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
6799Usually this means the macro was only invoked conditionally." >&2;}
6800 { (exit 1); exit 1; }; }
6801fi
6802if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
6803 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
6804Usually this means the macro was only invoked conditionally." >&5
6805echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
6806Usually this means the macro was only invoked conditionally." >&2;}
6807 { (exit 1); exit 1; }; }
6808fi
6809if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
6810 { { echo "$as_me:$LINENO: error: conditional \"POWERPC_DARWIN\" was never defined.
6811Usually this means the macro was only invoked conditionally." >&5
6812echo "$as_me: error: conditional \"POWERPC_DARWIN\" was never defined.
6813Usually this means the macro was only invoked conditionally." >&2;}
6814 { (exit 1); exit 1; }; }
6815fi
6816if test -z "${CPLUSPLUS_TRUE}" && test -z "${CPLUSPLUS_FALSE}"; then
6817 { { echo "$as_me:$LINENO: error: conditional \"CPLUSPLUS\" was never defined.
6818Usually this means the macro was only invoked conditionally." >&5
6819echo "$as_me: error: conditional \"CPLUSPLUS\" was never defined.
6820Usually this means the macro was only invoked conditionally." >&2;}
6821 { (exit 1); exit 1; }; }
6822fi
47935194
NN
6823
6824: ${CONFIG_STATUS=./config.status}
6825ac_clean_files_save=$ac_clean_files
6826ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6827{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6828echo "$as_me: creating $CONFIG_STATUS" >&6;}
6829cat >$CONFIG_STATUS <<_ACEOF
6830#! $SHELL
6831# Generated by $as_me.
1530be84 6832# Run this file to recreate the current configuration.
1530be84 6833# Compiler output produced by configure, useful for debugging
47935194
NN
6834# configure, is in config.log if it exists.
6835
6836debug=false
6837ac_cs_recheck=false
6838ac_cs_silent=false
6839SHELL=\${CONFIG_SHELL-$SHELL}
6840_ACEOF
6841
6842cat >>$CONFIG_STATUS <<\_ACEOF
6843## --------------------- ##
6844## M4sh Initialization. ##
6845## --------------------- ##
6846
6847# Be Bourne compatible
6848if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6849 emulate sh
6850 NULLCMD=:
6851 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6852 # is contrary to our usage. Disable this feature.
6853 alias -g '${1+"$@"}'='"$@"'
6854elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6855 set -o posix
6856fi
8ab705be 6857DUALCASE=1; export DUALCASE # for MKS sh
47935194
NN
6858
6859# Support unset when possible.
8ab705be 6860if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
47935194
NN
6861 as_unset=unset
6862else
6863 as_unset=false
6864fi
1530be84 6865
47935194
NN
6866
6867# Work around bugs in pre-3.0 UWIN ksh.
6868$as_unset ENV MAIL MAILPATH
6869PS1='$ '
6870PS2='> '
6871PS4='+ '
6872
6873# NLS nuisances.
6874for as_var in \
6875 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6876 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6877 LC_TELEPHONE LC_TIME
1530be84 6878do
8ab705be 6879 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47935194
NN
6880 eval $as_var=C; export $as_var
6881 else
6882 $as_unset $as_var
6883 fi
1530be84
TT
6884done
6885
47935194
NN
6886# Required to use basename.
6887if expr a : '\(a\)' >/dev/null 2>&1; then
6888 as_expr=expr
6889else
6890 as_expr=false
6891fi
1530be84 6892
47935194
NN
6893if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6894 as_basename=basename
6895else
6896 as_basename=false
6897fi
6898
6899
6900# Name of the executable.
6901as_me=`$as_basename "$0" ||
6902$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6903 X"$0" : 'X\(//\)$' \| \
6904 X"$0" : 'X\(/\)$' \| \
6905 . : '\(.\)' 2>/dev/null ||
6906echo X/"$0" |
6907 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6908 /^X\/\(\/\/\)$/{ s//\1/; q; }
6909 /^X\/\(\/\).*/{ s//\1/; q; }
6910 s/.*/./; q'`
6911
6912
6913# PATH needs CR, and LINENO needs CR and PATH.
6914# Avoid depending upon Character Ranges.
6915as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6916as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6917as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6918as_cr_digits='0123456789'
6919as_cr_alnum=$as_cr_Letters$as_cr_digits
6920
6921# The user is always right.
6922if test "${PATH_SEPARATOR+set}" != set; then
6923 echo "#! /bin/sh" >conf$$.sh
6924 echo "exit 0" >>conf$$.sh
6925 chmod +x conf$$.sh
6926 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6927 PATH_SEPARATOR=';'
6928 else
6929 PATH_SEPARATOR=:
6930 fi
6931 rm -f conf$$.sh
6932fi
1530be84 6933
1530be84 6934
47935194
NN
6935 as_lineno_1=$LINENO
6936 as_lineno_2=$LINENO
6937 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6938 test "x$as_lineno_1" != "x$as_lineno_2" &&
6939 test "x$as_lineno_3" = "x$as_lineno_2" || {
6940 # Find who we are. Look in the path if we contain no path at all
6941 # relative or not.
6942 case $0 in
6943 *[\\/]* ) as_myself=$0 ;;
6944 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6945for as_dir in $PATH
6946do
6947 IFS=$as_save_IFS
6948 test -z "$as_dir" && as_dir=.
6949 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6950done
1530be84 6951
47935194
NN
6952 ;;
6953 esac
6954 # We did not find ourselves, most probably we were run as `sh COMMAND'
6955 # in which case we are not to be found in the path.
6956 if test "x$as_myself" = x; then
6957 as_myself=$0
1530be84 6958 fi
47935194
NN
6959 if test ! -f "$as_myself"; then
6960 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6961echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6962 { (exit 1); exit 1; }; }
1530be84 6963 fi
47935194
NN
6964 case $CONFIG_SHELL in
6965 '')
6966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6967for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6968do
6969 IFS=$as_save_IFS
6970 test -z "$as_dir" && as_dir=.
6971 for as_base in sh bash ksh sh5; do
6972 case $as_dir in
6973 /*)
6974 if ("$as_dir/$as_base" -c '
6975 as_lineno_1=$LINENO
6976 as_lineno_2=$LINENO
6977 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6978 test "x$as_lineno_1" != "x$as_lineno_2" &&
6979 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6980 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6981 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6982 CONFIG_SHELL=$as_dir/$as_base
6983 export CONFIG_SHELL
6984 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6985 fi;;
6986 esac
6987 done
1530be84 6988done
47935194 6989;;
1530be84
TT
6990 esac
6991
47935194
NN
6992 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6993 # uniformly replaced by the line number. The first 'sed' inserts a
6994 # line-number line before each line; the second 'sed' does the real
6995 # work. The second script uses 'N' to pair each line-number line
6996 # with the numbered line, and appends trailing '-' during
6997 # substitution so that $LINENO is not a special case at line end.
6998 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6999 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7000 sed '=' <$as_myself |
7001 sed '
7002 N
7003 s,$,-,
7004 : loop
7005 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7006 t loop
7007 s,-$,,
7008 s,^['$as_cr_digits']*\n,,
7009 ' >$as_me.lineno &&
7010 chmod +x $as_me.lineno ||
7011 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7012echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7013 { (exit 1); exit 1; }; }
7014
7015 # Don't try to exec as it changes $[0], causing all sort of problems
7016 # (the dirname of $[0] is not the place where we might find the
7017 # original and so on. Autoconf is especially sensible to this).
7018 . ./$as_me.lineno
7019 # Exit status is that of the last command.
7020 exit
7021}
7022
7023
7024case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7025 *c*,-n*) ECHO_N= ECHO_C='
7026' ECHO_T=' ' ;;
7027 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7028 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
7029esac
7030
7031if expr a : '\(a\)' >/dev/null 2>&1; then
7032 as_expr=expr
7033else
7034 as_expr=false
7035fi
1530be84 7036
47935194
NN
7037rm -f conf$$ conf$$.exe conf$$.file
7038echo >conf$$.file
7039if ln -s conf$$.file conf$$ 2>/dev/null; then
7040 # We could just check for DJGPP; but this test a) works b) is more generic
7041 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7042 if test -f conf$$.exe; then
7043 # Don't use ln at all; we don't have any links
7044 as_ln_s='cp -p'
1530be84 7045 else
47935194 7046 as_ln_s='ln -s'
1530be84 7047 fi
47935194
NN
7048elif ln conf$$.file conf$$ 2>/dev/null; then
7049 as_ln_s=ln
7050else
7051 as_ln_s='cp -p'
7052fi
7053rm -f conf$$ conf$$.exe conf$$.file
1530be84 7054
47935194
NN
7055if mkdir -p . 2>/dev/null; then
7056 as_mkdir_p=:
7057else
8ab705be 7058 test -d ./-p && rmdir ./-p
47935194
NN
7059 as_mkdir_p=false
7060fi
7061
7062as_executable_p="test -f"
7063
7064# Sed expression to map a string onto a valid CPP name.
8ab705be 7065as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
47935194
NN
7066
7067# Sed expression to map a string onto a valid variable name.
8ab705be 7068as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
47935194
NN
7069
7070
7071# IFS
7072# We need space, tab and new line, in precisely that order.
7073as_nl='
7074'
7075IFS=" $as_nl"
7076
7077# CDPATH.
7078$as_unset CDPATH
7079
7080exec 6>&1
7081
7082# Open the log real soon, to keep \$[0] and so on meaningful, and to
7083# report actual input values of CONFIG_FILES etc. instead of their
7084# values after options handling. Logging --version etc. is OK.
7085exec 5>>config.log
7086{
7087 echo
7088 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7089## Running $as_me. ##
7090_ASBOX
7091} >&5
7092cat >&5 <<_CSEOF
7093
7094This file was extended by $as_me, which was
8ab705be 7095generated by GNU Autoconf 2.59. Invocation command line was
47935194
NN
7096
7097 CONFIG_FILES = $CONFIG_FILES
7098 CONFIG_HEADERS = $CONFIG_HEADERS
7099 CONFIG_LINKS = $CONFIG_LINKS
7100 CONFIG_COMMANDS = $CONFIG_COMMANDS
7101 $ $0 $@
7102
7103_CSEOF
7104echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7105echo >&5
7106_ACEOF
1530be84 7107
47935194
NN
7108# Files that config.status was made for.
7109if test -n "$ac_config_files"; then
7110 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7111fi
7112
7113if test -n "$ac_config_headers"; then
7114 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7115fi
7116
7117if test -n "$ac_config_links"; then
7118 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7119fi
7120
7121if test -n "$ac_config_commands"; then
7122 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7123fi
7124
7125cat >>$CONFIG_STATUS <<\_ACEOF
7126
7127ac_cs_usage="\
7128\`$as_me' instantiates files from templates according to the
7129current configuration.
7130
7131Usage: $0 [OPTIONS] [FILE]...
7132
7133 -h, --help print this help, then exit
7134 -V, --version print version number, then exit
7135 -q, --quiet do not print progress messages
7136 -d, --debug don't remove temporary files
7137 --recheck update $as_me by reconfiguring in the same conditions
7138 --file=FILE[:TEMPLATE]
8ab705be 7139 instantiate the configuration file FILE
4109fe85
BM
7140 --header=FILE[:TEMPLATE]
7141 instantiate the configuration header FILE
47935194
NN
7142
7143Configuration files:
7144$config_files
7145
4109fe85
BM
7146Configuration headers:
7147$config_headers
7148
47935194
NN
7149Configuration commands:
7150$config_commands
7151
7152Report bugs to <bug-autoconf@gnu.org>."
7153_ACEOF
7154
7155cat >>$CONFIG_STATUS <<_ACEOF
7156ac_cs_version="\\
7157config.status
8ab705be 7158configured by $0, generated by GNU Autoconf 2.59,
47935194
NN
7159 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7160
8ab705be 7161Copyright (C) 2003 Free Software Foundation, Inc.
47935194
NN
7162This config.status script is free software; the Free Software Foundation
7163gives unlimited permission to copy, distribute and modify it."
7164srcdir=$srcdir
7165INSTALL="$INSTALL"
7166_ACEOF
7167
7168cat >>$CONFIG_STATUS <<\_ACEOF
7169# If no file are specified by the user, then we need to provide default
7170# value. By we need to know if files were specified by the user.
7171ac_need_defaults=:
7172while test $# != 0
7173do
7174 case $1 in
7175 --*=*)
7176 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7177 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7178 ac_shift=:
7179 ;;
7180 -*)
7181 ac_option=$1
7182 ac_optarg=$2
7183 ac_shift=shift
7184 ;;
7185 *) # This is not an option, so the user has probably given explicit
7186 # arguments.
7187 ac_option=$1
7188 ac_need_defaults=false;;
1530be84
TT
7189 esac
7190
47935194
NN
7191 case $ac_option in
7192 # Handling of the options.
7193_ACEOF
7194cat >>$CONFIG_STATUS <<\_ACEOF
7195 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7196 ac_cs_recheck=: ;;
7197 --version | --vers* | -V )
7198 echo "$ac_cs_version"; exit 0 ;;
7199 --he | --h)
7200 # Conflict between --help and --header
7201 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7202Try \`$0 --help' for more information." >&5
7203echo "$as_me: error: ambiguous option: $1
7204Try \`$0 --help' for more information." >&2;}
7205 { (exit 1); exit 1; }; };;
7206 --help | --hel | -h )
7207 echo "$ac_cs_usage"; exit 0 ;;
7208 --debug | --d* | -d )
7209 debug=: ;;
7210 --file | --fil | --fi | --f )
7211 $ac_shift
7212 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7213 ac_need_defaults=false;;
7214 --header | --heade | --head | --hea )
7215 $ac_shift
7216 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7217 ac_need_defaults=false;;
7218 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7219 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7220 ac_cs_silent=: ;;
7221
7222 # This is an error.
7223 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7224Try \`$0 --help' for more information." >&5
7225echo "$as_me: error: unrecognized option: $1
7226Try \`$0 --help' for more information." >&2;}
7227 { (exit 1); exit 1; }; } ;;
7228
7229 *) ac_config_targets="$ac_config_targets $1" ;;
7230
1530be84 7231 esac
47935194
NN
7232 shift
7233done
1530be84 7234
47935194
NN
7235ac_configure_extra_args=
7236
7237if $ac_cs_silent; then
7238 exec 6>/dev/null
7239 ac_configure_extra_args="$ac_configure_extra_args --silent"
7240fi
7241
7242_ACEOF
7243cat >>$CONFIG_STATUS <<_ACEOF
7244if \$ac_cs_recheck; then
7245 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7246 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7247fi
7248
7249_ACEOF
7250
7251cat >>$CONFIG_STATUS <<_ACEOF
7252#
7253# INIT-COMMANDS section.
7254#
1530be84 7255
bf9a420e
PB
7256
7257srcdir="$srcdir"
7258host="$host"
7259target="$target"
7260with_multisubdir="$with_multisubdir"
7261with_multisrctop="$with_multisrctop"
7262with_target_subdir="$with_target_subdir"
1530be84 7263ac_configure_args="${multilib_arg} ${ac_configure_args}"
bf9a420e 7264multi_basedir="$multi_basedir"
1530be84 7265CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
bf9a420e
PB
7266CC="$CC"
7267AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
1530be84 7268
47935194
NN
7269_ACEOF
7270
7271
7272
7273cat >>$CONFIG_STATUS <<\_ACEOF
7274for ac_config_target in $ac_config_targets
7275do
7276 case "$ac_config_target" in
7277 # Handling of arguments.
7278 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7279 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
bf9a420e
PB
7280 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
7281 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
4109fe85 7282 "include/gc_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/gc_config.h" ;;
9a060b37 7283 "include/gc_ext_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/gc_ext_config.h" ;;
47935194
NN
7284 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7285echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7286 { (exit 1); exit 1; }; };;
7287 esac
7288done
7289
7290# If the user did not use the arguments to specify the items to instantiate,
7291# then the envvar interface is used. Set only those that are not.
7292# We use the long form for the default assignment because of an extremely
7293# bizarre bug on SunOS 4.1.3.
7294if $ac_need_defaults; then
7295 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4109fe85 7296 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
47935194
NN
7297 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7298fi
7299
7300# Have a temporary directory for convenience. Make it in the build tree
7301# simply because there is no reason to put it here, and in addition,
7302# creating and moving files from /tmp can sometimes cause problems.
7303# Create a temporary directory, and hook for its removal unless debugging.
7304$debug ||
7305{
7306 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7307 trap '{ (exit 1); exit 1; }' 1 2 13 15
7308}
7309
7310# Create a (secure) tmp directory for tmp files.
7311
7312{
7313 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7314 test -n "$tmp" && test -d "$tmp"
7315} ||
7316{
7317 tmp=./confstat$$-$RANDOM
7318 (umask 077 && mkdir $tmp)
7319} ||
7320{
7321 echo "$me: cannot create a temporary directory in ." >&2
7322 { (exit 1); exit 1; }
7323}
7324
7325_ACEOF
7326
7327cat >>$CONFIG_STATUS <<_ACEOF
7328
7329#
7330# CONFIG_FILES section.
7331#
7332
7333# No need to generate the scripts if there are no CONFIG_FILES.
7334# This happens for instance when ./config.status config.h
7335if test -n "\$CONFIG_FILES"; then
7336 # Protect against being on the right side of a sed subst in config.status.
7337 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7338 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7339s,@SHELL@,$SHELL,;t t
7340s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7341s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7342s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7343s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7344s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7345s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7346s,@exec_prefix@,$exec_prefix,;t t
7347s,@prefix@,$prefix,;t t
7348s,@program_transform_name@,$program_transform_name,;t t
7349s,@bindir@,$bindir,;t t
7350s,@sbindir@,$sbindir,;t t
7351s,@libexecdir@,$libexecdir,;t t
7352s,@datadir@,$datadir,;t t
7353s,@sysconfdir@,$sysconfdir,;t t
7354s,@sharedstatedir@,$sharedstatedir,;t t
7355s,@localstatedir@,$localstatedir,;t t
7356s,@libdir@,$libdir,;t t
7357s,@includedir@,$includedir,;t t
7358s,@oldincludedir@,$oldincludedir,;t t
7359s,@infodir@,$infodir,;t t
7360s,@mandir@,$mandir,;t t
7361s,@build_alias@,$build_alias,;t t
7362s,@host_alias@,$host_alias,;t t
7363s,@target_alias@,$target_alias,;t t
7364s,@DEFS@,$DEFS,;t t
7365s,@ECHO_C@,$ECHO_C,;t t
7366s,@ECHO_N@,$ECHO_N,;t t
7367s,@ECHO_T@,$ECHO_T,;t t
7368s,@LIBS@,$LIBS,;t t
bf9a420e 7369s,@multi_basedir@,$multi_basedir,;t t
47935194
NN
7370s,@build@,$build,;t t
7371s,@build_cpu@,$build_cpu,;t t
7372s,@build_vendor@,$build_vendor,;t t
7373s,@build_os@,$build_os,;t t
7374s,@host@,$host,;t t
7375s,@host_cpu@,$host_cpu,;t t
7376s,@host_vendor@,$host_vendor,;t t
7377s,@host_os@,$host_os,;t t
7378s,@target@,$target,;t t
7379s,@target_cpu@,$target_cpu,;t t
7380s,@target_vendor@,$target_vendor,;t t
7381s,@target_os@,$target_os,;t t
13b040f1 7382s,@target_noncanonical@,$target_noncanonical,;t t
47935194
NN
7383s,@mkinstalldirs@,$mkinstalldirs,;t t
7384s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7385s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7386s,@INSTALL_DATA@,$INSTALL_DATA,;t t
bf9a420e 7387s,@CYGPATH_W@,$CYGPATH_W,;t t
47935194
NN
7388s,@PACKAGE@,$PACKAGE,;t t
7389s,@VERSION@,$VERSION,;t t
7390s,@ACLOCAL@,$ACLOCAL,;t t
7391s,@AUTOCONF@,$AUTOCONF,;t t
7392s,@AUTOMAKE@,$AUTOMAKE,;t t
7393s,@AUTOHEADER@,$AUTOHEADER,;t t
7394s,@MAKEINFO@,$MAKEINFO,;t t
bf9a420e
PB
7395s,@install_sh@,$install_sh,;t t
7396s,@STRIP@,$STRIP,;t t
7397s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
7398s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
7399s,@mkdir_p@,$mkdir_p,;t t
7400s,@AWK@,$AWK,;t t
47935194 7401s,@SET_MAKE@,$SET_MAKE,;t t
bf9a420e 7402s,@am__leading_dot@,$am__leading_dot,;t t
4109fe85
BM
7403s,@AMTAR@,$AMTAR,;t t
7404s,@am__tar@,$am__tar,;t t
7405s,@am__untar@,$am__untar,;t t
47935194 7406s,@CC@,$CC,;t t
47935194
NN
7407s,@ac_ct_CC@,$ac_ct_CC,;t t
7408s,@EXEEXT@,$EXEEXT,;t t
7409s,@OBJEXT@,$OBJEXT,;t t
bf9a420e
PB
7410s,@DEPDIR@,$DEPDIR,;t t
7411s,@am__include@,$am__include,;t t
7412s,@am__quote@,$am__quote,;t t
7413s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
7414s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
7415s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
7416s,@CCDEPMODE@,$CCDEPMODE,;t t
7417s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
7418s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
47935194 7419s,@CXX@,$CXX,;t t
47935194 7420s,@ac_ct_CXX@,$ac_ct_CXX,;t t
bf9a420e
PB
7421s,@CXXDEPMODE@,$CXXDEPMODE,;t t
7422s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
7423s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
e22db4bf
NN
7424s,@CFLAGS@,$CFLAGS,;t t
7425s,@CXXFLAGS@,$CXXFLAGS,;t t
7664e6f8
NN
7426s,@CCAS@,$CCAS,;t t
7427s,@CCASFLAGS@,$CCASFLAGS,;t t
47935194
NN
7428s,@AS@,$AS,;t t
7429s,@ac_ct_AS@,$ac_ct_AS,;t t
7430s,@AR@,$AR,;t t
7431s,@ac_ct_AR@,$ac_ct_AR,;t t
7432s,@RANLIB@,$RANLIB,;t t
7433s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7434s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
7435s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
7436s,@MAINT@,$MAINT,;t t
7437s,@GC_CFLAGS@,$GC_CFLAGS,;t t
7438s,@LN_S@,$LN_S,;t t
47935194
NN
7439s,@LIBTOOL@,$LIBTOOL,;t t
7440s,@CXXCPP@,$CXXCPP,;t t
e22db4bf 7441s,@CPPFLAGS@,$CPPFLAGS,;t t
47935194
NN
7442s,@THREADLIBS@,$THREADLIBS,;t t
7443s,@POWERPC_DARWIN_TRUE@,$POWERPC_DARWIN_TRUE,;t t
7444s,@POWERPC_DARWIN_FALSE@,$POWERPC_DARWIN_FALSE,;t t
7445s,@EXTRA_TEST_LIBS@,$EXTRA_TEST_LIBS,;t t
7446s,@target_all@,$target_all,;t t
47935194
NN
7447s,@CPLUSPLUS_TRUE@,$CPLUSPLUS_TRUE,;t t
7448s,@CPLUSPLUS_FALSE@,$CPLUSPLUS_FALSE,;t t
bf9a420e 7449s,@AM_CPPFLAGS@,$AM_CPPFLAGS,;t t
47935194
NN
7450s,@addobjs@,$addobjs,;t t
7451s,@addincludes@,$addincludes,;t t
7452s,@addlibs@,$addlibs,;t t
7453s,@addtests@,$addtests,;t t
7454s,@CPP@,$CPP,;t t
7455s,@EGREP@,$EGREP,;t t
7456s,@MY_CFLAGS@,$MY_CFLAGS,;t t
7457s,@toolexecdir@,$toolexecdir,;t t
7458s,@toolexeclibdir@,$toolexeclibdir,;t t
7459s,@LIBOBJS@,$LIBOBJS,;t t
7460s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7461CEOF
7462
7463_ACEOF
7464
7465 cat >>$CONFIG_STATUS <<\_ACEOF
7466 # Split the substitutions into bite-sized pieces for seds with
7467 # small command number limits, like on Digital OSF/1 and HP-UX.
7468 ac_max_sed_lines=48
7469 ac_sed_frag=1 # Number of current file.
7470 ac_beg=1 # First line for current file.
7471 ac_end=$ac_max_sed_lines # Line after last line for current file.
7472 ac_more_lines=:
7473 ac_sed_cmds=
7474 while $ac_more_lines; do
7475 if test $ac_beg -gt 1; then
7476 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7477 else
7478 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7479 fi
7480 if test ! -s $tmp/subs.frag; then
7481 ac_more_lines=false
7482 else
7483 # The purpose of the label and of the branching condition is to
7484 # speed up the sed processing (if there are no `@' at all, there
7485 # is no need to browse any of the substitutions).
7486 # These are the two extra sed commands mentioned above.
7487 (echo ':t
7488 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7489 if test -z "$ac_sed_cmds"; then
8ab705be 7490 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
47935194 7491 else
8ab705be 7492 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
47935194
NN
7493 fi
7494 ac_sed_frag=`expr $ac_sed_frag + 1`
7495 ac_beg=$ac_end
7496 ac_end=`expr $ac_end + $ac_max_sed_lines`
7497 fi
7498 done
7499 if test -z "$ac_sed_cmds"; then
7500 ac_sed_cmds=cat
7501 fi
7502fi # test -n "$CONFIG_FILES"
7503
7504_ACEOF
7505cat >>$CONFIG_STATUS <<\_ACEOF
7506for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7507 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7508 case $ac_file in
7509 - | *:- | *:-:* ) # input from stdin
8ab705be
KC
7510 cat >$tmp/stdin
7511 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7512 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
47935194 7513 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8ab705be 7514 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
47935194
NN
7515 * ) ac_file_in=$ac_file.in ;;
7516 esac
7517
7518 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7519 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7520$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8ab705be
KC
7521 X"$ac_file" : 'X\(//\)[^/]' \| \
7522 X"$ac_file" : 'X\(//\)$' \| \
7523 X"$ac_file" : 'X\(/\)' \| \
7524 . : '\(.\)' 2>/dev/null ||
47935194
NN
7525echo X"$ac_file" |
7526 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7527 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7528 /^X\(\/\/\)$/{ s//\1/; q; }
7529 /^X\(\/\).*/{ s//\1/; q; }
7530 s/.*/./; q'`
7531 { if $as_mkdir_p; then
7532 mkdir -p "$ac_dir"
7533 else
7534 as_dir="$ac_dir"
7535 as_dirs=
7536 while test ! -d "$as_dir"; do
7537 as_dirs="$as_dir $as_dirs"
7538 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7539$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8ab705be
KC
7540 X"$as_dir" : 'X\(//\)[^/]' \| \
7541 X"$as_dir" : 'X\(//\)$' \| \
7542 X"$as_dir" : 'X\(/\)' \| \
7543 . : '\(.\)' 2>/dev/null ||
47935194
NN
7544echo X"$as_dir" |
7545 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7546 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7547 /^X\(\/\/\)$/{ s//\1/; q; }
7548 /^X\(\/\).*/{ s//\1/; q; }
7549 s/.*/./; q'`
7550 done
7551 test ! -n "$as_dirs" || mkdir $as_dirs
7552 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7553echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7554 { (exit 1); exit 1; }; }; }
7555
7556 ac_builddir=.
7557
7558if test "$ac_dir" != .; then
7559 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7560 # A "../" for each directory in $ac_dir_suffix.
7561 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7562else
7563 ac_dir_suffix= ac_top_builddir=
7564fi
7565
7566case $srcdir in
7567 .) # No --srcdir option. We are building in place.
7568 ac_srcdir=.
7569 if test -z "$ac_top_builddir"; then
7570 ac_top_srcdir=.
7571 else
7572 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7573 fi ;;
7574 [\\/]* | ?:[\\/]* ) # Absolute path.
7575 ac_srcdir=$srcdir$ac_dir_suffix;
7576 ac_top_srcdir=$srcdir ;;
7577 *) # Relative path.
7578 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7579 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7580esac
8ab705be
KC
7581
7582# Do not use `cd foo && pwd` to compute absolute paths, because
7583# the directories may not exist.
7584case `pwd` in
7585.) ac_abs_builddir="$ac_dir";;
7586*)
7587 case "$ac_dir" in
7588 .) ac_abs_builddir=`pwd`;;
7589 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7590 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7591 esac;;
7592esac
7593case $ac_abs_builddir in
7594.) ac_abs_top_builddir=${ac_top_builddir}.;;
7595*)
7596 case ${ac_top_builddir}. in
7597 .) ac_abs_top_builddir=$ac_abs_builddir;;
7598 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7599 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7600 esac;;
7601esac
7602case $ac_abs_builddir in
7603.) ac_abs_srcdir=$ac_srcdir;;
7604*)
7605 case $ac_srcdir in
7606 .) ac_abs_srcdir=$ac_abs_builddir;;
7607 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7608 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7609 esac;;
7610esac
7611case $ac_abs_builddir in
7612.) ac_abs_top_srcdir=$ac_top_srcdir;;
7613*)
7614 case $ac_top_srcdir in
7615 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7616 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7617 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7618 esac;;
7619esac
47935194
NN
7620
7621
7622 case $INSTALL in
7623 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7624 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7625 esac
7626
5572488d
KC
7627 if test x"$ac_file" != x-; then
7628 { echo "$as_me:$LINENO: creating $ac_file" >&5
7629echo "$as_me: creating $ac_file" >&6;}
7630 rm -f "$ac_file"
7631 fi
47935194
NN
7632 # Let's still pretend it is `configure' which instantiates (i.e., don't
7633 # use $as_me), people would be surprised to read:
7634 # /* config.h. Generated by config.status. */
7635 if test x"$ac_file" = x-; then
7636 configure_input=
7637 else
7638 configure_input="$ac_file. "
7639 fi
7640 configure_input=$configure_input"Generated from `echo $ac_file_in |
8ab705be 7641 sed 's,.*/,,'` by configure."
47935194
NN
7642
7643 # First look for the input files in the build tree, otherwise in the
7644 # src tree.
7645 ac_file_inputs=`IFS=:
7646 for f in $ac_file_in; do
7647 case $f in
7648 -) echo $tmp/stdin ;;
7649 [\\/$]*)
8ab705be
KC
7650 # Absolute (can't be DOS-style, as IFS=:)
7651 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
47935194
NN
7652echo "$as_me: error: cannot find input file: $f" >&2;}
7653 { (exit 1); exit 1; }; }
8ab705be 7654 echo "$f";;
47935194 7655 *) # Relative
8ab705be
KC
7656 if test -f "$f"; then
7657 # Build tree
7658 echo "$f"
7659 elif test -f "$srcdir/$f"; then
7660 # Source tree
7661 echo "$srcdir/$f"
7662 else
7663 # /dev/null tree
7664 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
47935194
NN
7665echo "$as_me: error: cannot find input file: $f" >&2;}
7666 { (exit 1); exit 1; }; }
8ab705be 7667 fi;;
47935194
NN
7668 esac
7669 done` || { (exit 1); exit 1; }
47935194
NN
7670_ACEOF
7671cat >>$CONFIG_STATUS <<_ACEOF
7672 sed "$ac_vpsub
7673$extrasub
7674_ACEOF
7675cat >>$CONFIG_STATUS <<\_ACEOF
7676:t
7677/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7678s,@configure_input@,$configure_input,;t t
7679s,@srcdir@,$ac_srcdir,;t t
7680s,@abs_srcdir@,$ac_abs_srcdir,;t t
7681s,@top_srcdir@,$ac_top_srcdir,;t t
7682s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7683s,@builddir@,$ac_builddir,;t t
7684s,@abs_builddir@,$ac_abs_builddir,;t t
7685s,@top_builddir@,$ac_top_builddir,;t t
7686s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7687s,@INSTALL@,$ac_INSTALL,;t t
7688" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7689 rm -f $tmp/stdin
7690 if test x"$ac_file" != x-; then
7691 mv $tmp/out $ac_file
7692 else
7693 cat $tmp/out
7694 rm -f $tmp/out
7695 fi
7696
7697done
7698_ACEOF
7699cat >>$CONFIG_STATUS <<\_ACEOF
7700
4109fe85
BM
7701#
7702# CONFIG_HEADER section.
7703#
7704
7705# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7706# NAME is the cpp macro being defined and VALUE is the value it is being given.
7707#
7708# ac_d sets the value in "#define NAME VALUE" lines.
7709ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7710ac_dB='[ ].*$,\1#\2'
7711ac_dC=' '
7712ac_dD=',;t'
7713# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7714ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7715ac_uB='$,\1#\2define\3'
7716ac_uC=' '
7717ac_uD=',;t'
7718
7719for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7720 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7721 case $ac_file in
7722 - | *:- | *:-:* ) # input from stdin
7723 cat >$tmp/stdin
7724 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7725 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7726 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7727 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7728 * ) ac_file_in=$ac_file.in ;;
7729 esac
7730
7731 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7732echo "$as_me: creating $ac_file" >&6;}
7733
7734 # First look for the input files in the build tree, otherwise in the
7735 # src tree.
7736 ac_file_inputs=`IFS=:
7737 for f in $ac_file_in; do
7738 case $f in
7739 -) echo $tmp/stdin ;;
7740 [\\/$]*)
7741 # Absolute (can't be DOS-style, as IFS=:)
7742 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7743echo "$as_me: error: cannot find input file: $f" >&2;}
7744 { (exit 1); exit 1; }; }
7745 # Do quote $f, to prevent DOS paths from being IFS'd.
7746 echo "$f";;
7747 *) # Relative
7748 if test -f "$f"; then
7749 # Build tree
7750 echo "$f"
7751 elif test -f "$srcdir/$f"; then
7752 # Source tree
7753 echo "$srcdir/$f"
7754 else
7755 # /dev/null tree
7756 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7757echo "$as_me: error: cannot find input file: $f" >&2;}
7758 { (exit 1); exit 1; }; }
7759 fi;;
7760 esac
7761 done` || { (exit 1); exit 1; }
7762 # Remove the trailing spaces.
7763 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7764
7765_ACEOF
7766
7767# Transform confdefs.h into two sed scripts, `conftest.defines' and
7768# `conftest.undefs', that substitutes the proper values into
7769# config.h.in to produce config.h. The first handles `#define'
7770# templates, and the second `#undef' templates.
7771# And first: Protect against being on the right side of a sed subst in
7772# config.status. Protect against being in an unquoted here document
7773# in config.status.
7774rm -f conftest.defines conftest.undefs
7775# Using a here document instead of a string reduces the quoting nightmare.
7776# Putting comments in sed scripts is not portable.
7777#
7778# `end' is used to avoid that the second main sed command (meant for
7779# 0-ary CPP macros) applies to n-ary macro definitions.
7780# See the Autoconf documentation for `clear'.
7781cat >confdef2sed.sed <<\_ACEOF
7782s/[\\&,]/\\&/g
7783s,[\\$`],\\&,g
7784t clear
7785: clear
7786s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7787t end
7788s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7789: end
7790_ACEOF
7791# If some macros were called several times there might be several times
7792# the same #defines, which is useless. Nevertheless, we may not want to
7793# sort them, since we want the *last* AC-DEFINE to be honored.
7794uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7795sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7796rm -f confdef2sed.sed
7797
7798# This sed command replaces #undef with comments. This is necessary, for
7799# example, in the case of _POSIX_SOURCE, which is predefined and required
7800# on some systems where configure will not decide to define it.
7801cat >>conftest.undefs <<\_ACEOF
7802s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7803_ACEOF
7804
7805# Break up conftest.defines because some shells have a limit on the size
7806# of here documents, and old seds have small limits too (100 cmds).
7807echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7808echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7809echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7810echo ' :' >>$CONFIG_STATUS
7811rm -f conftest.tail
7812while grep . conftest.defines >/dev/null
7813do
7814 # Write a limited-size here document to $tmp/defines.sed.
7815 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7816 # Speed up: don't consider the non `#define' lines.
7817 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7818 # Work around the forget-to-reset-the-flag bug.
7819 echo 't clr' >>$CONFIG_STATUS
7820 echo ': clr' >>$CONFIG_STATUS
7821 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7822 echo 'CEOF
7823 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7824 rm -f $tmp/in
7825 mv $tmp/out $tmp/in
7826' >>$CONFIG_STATUS
7827 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7828 rm -f conftest.defines
7829 mv conftest.tail conftest.defines
7830done
7831rm -f conftest.defines
7832echo ' fi # grep' >>$CONFIG_STATUS
7833echo >>$CONFIG_STATUS
7834
7835# Break up conftest.undefs because some shells have a limit on the size
7836# of here documents, and old seds have small limits too (100 cmds).
7837echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7838rm -f conftest.tail
7839while grep . conftest.undefs >/dev/null
7840do
7841 # Write a limited-size here document to $tmp/undefs.sed.
7842 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7843 # Speed up: don't consider the non `#undef'
7844 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7845 # Work around the forget-to-reset-the-flag bug.
7846 echo 't clr' >>$CONFIG_STATUS
7847 echo ': clr' >>$CONFIG_STATUS
7848 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7849 echo 'CEOF
7850 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7851 rm -f $tmp/in
7852 mv $tmp/out $tmp/in
7853' >>$CONFIG_STATUS
7854 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7855 rm -f conftest.undefs
7856 mv conftest.tail conftest.undefs
7857done
7858rm -f conftest.undefs
7859
7860cat >>$CONFIG_STATUS <<\_ACEOF
7861 # Let's still pretend it is `configure' which instantiates (i.e., don't
7862 # use $as_me), people would be surprised to read:
7863 # /* config.h. Generated by config.status. */
7864 if test x"$ac_file" = x-; then
7865 echo "/* Generated by configure. */" >$tmp/config.h
7866 else
7867 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7868 fi
7869 cat $tmp/in >>$tmp/config.h
7870 rm -f $tmp/in
7871 if test x"$ac_file" != x-; then
7872 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7873 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7874echo "$as_me: $ac_file is unchanged" >&6;}
7875 else
7876 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7877$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7878 X"$ac_file" : 'X\(//\)[^/]' \| \
7879 X"$ac_file" : 'X\(//\)$' \| \
7880 X"$ac_file" : 'X\(/\)' \| \
7881 . : '\(.\)' 2>/dev/null ||
7882echo X"$ac_file" |
7883 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7884 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7885 /^X\(\/\/\)$/{ s//\1/; q; }
7886 /^X\(\/\).*/{ s//\1/; q; }
7887 s/.*/./; q'`
7888 { if $as_mkdir_p; then
7889 mkdir -p "$ac_dir"
7890 else
7891 as_dir="$ac_dir"
7892 as_dirs=
7893 while test ! -d "$as_dir"; do
7894 as_dirs="$as_dir $as_dirs"
7895 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7896$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7897 X"$as_dir" : 'X\(//\)[^/]' \| \
7898 X"$as_dir" : 'X\(//\)$' \| \
7899 X"$as_dir" : 'X\(/\)' \| \
7900 . : '\(.\)' 2>/dev/null ||
7901echo X"$as_dir" |
7902 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7903 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7904 /^X\(\/\/\)$/{ s//\1/; q; }
7905 /^X\(\/\).*/{ s//\1/; q; }
7906 s/.*/./; q'`
7907 done
7908 test ! -n "$as_dirs" || mkdir $as_dirs
7909 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7910echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7911 { (exit 1); exit 1; }; }; }
7912
7913 rm -f $ac_file
7914 mv $tmp/config.h $ac_file
7915 fi
7916 else
7917 cat $tmp/config.h
7918 rm -f $tmp/config.h
7919 fi
7920# Compute $ac_file's index in $config_headers.
7921_am_stamp_count=1
7922for _am_header in $config_headers :; do
7923 case $_am_header in
7924 $ac_file | $ac_file:* )
7925 break ;;
7926 * )
7927 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7928 esac
7929done
7930echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
7931$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7932 X$ac_file : 'X\(//\)[^/]' \| \
7933 X$ac_file : 'X\(//\)$' \| \
7934 X$ac_file : 'X\(/\)' \| \
7935 . : '\(.\)' 2>/dev/null ||
7936echo X$ac_file |
7937 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7938 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7939 /^X\(\/\/\)$/{ s//\1/; q; }
7940 /^X\(\/\).*/{ s//\1/; q; }
7941 s/.*/./; q'`/stamp-h$_am_stamp_count
7942done
7943_ACEOF
7944cat >>$CONFIG_STATUS <<\_ACEOF
7945
47935194
NN
7946#
7947# CONFIG_COMMANDS section.
7948#
7949for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
7950 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7951 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7952 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
7953$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8ab705be
KC
7954 X"$ac_dest" : 'X\(//\)[^/]' \| \
7955 X"$ac_dest" : 'X\(//\)$' \| \
7956 X"$ac_dest" : 'X\(/\)' \| \
7957 . : '\(.\)' 2>/dev/null ||
47935194
NN
7958echo X"$ac_dest" |
7959 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7960 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7961 /^X\(\/\/\)$/{ s//\1/; q; }
7962 /^X\(\/\).*/{ s//\1/; q; }
7963 s/.*/./; q'`
8ab705be
KC
7964 { if $as_mkdir_p; then
7965 mkdir -p "$ac_dir"
7966 else
7967 as_dir="$ac_dir"
7968 as_dirs=
7969 while test ! -d "$as_dir"; do
7970 as_dirs="$as_dir $as_dirs"
7971 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7972$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7973 X"$as_dir" : 'X\(//\)[^/]' \| \
7974 X"$as_dir" : 'X\(//\)$' \| \
7975 X"$as_dir" : 'X\(/\)' \| \
7976 . : '\(.\)' 2>/dev/null ||
7977echo X"$as_dir" |
7978 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7979 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7980 /^X\(\/\/\)$/{ s//\1/; q; }
7981 /^X\(\/\).*/{ s//\1/; q; }
7982 s/.*/./; q'`
7983 done
7984 test ! -n "$as_dirs" || mkdir $as_dirs
7985 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7986echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7987 { (exit 1); exit 1; }; }; }
7988
47935194
NN
7989 ac_builddir=.
7990
7991if test "$ac_dir" != .; then
7992 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7993 # A "../" for each directory in $ac_dir_suffix.
7994 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7995else
7996 ac_dir_suffix= ac_top_builddir=
7997fi
7998
7999case $srcdir in
8000 .) # No --srcdir option. We are building in place.
8001 ac_srcdir=.
8002 if test -z "$ac_top_builddir"; then
8003 ac_top_srcdir=.
8004 else
8005 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8006 fi ;;
8007 [\\/]* | ?:[\\/]* ) # Absolute path.
8008 ac_srcdir=$srcdir$ac_dir_suffix;
8009 ac_top_srcdir=$srcdir ;;
8010 *) # Relative path.
8011 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8012 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8013esac
8ab705be
KC
8014
8015# Do not use `cd foo && pwd` to compute absolute paths, because
8016# the directories may not exist.
8017case `pwd` in
8018.) ac_abs_builddir="$ac_dir";;
8019*)
8020 case "$ac_dir" in
8021 .) ac_abs_builddir=`pwd`;;
8022 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8023 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8024 esac;;
8025esac
8026case $ac_abs_builddir in
8027.) ac_abs_top_builddir=${ac_top_builddir}.;;
8028*)
8029 case ${ac_top_builddir}. in
8030 .) ac_abs_top_builddir=$ac_abs_builddir;;
8031 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8032 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8033 esac;;
8034esac
8035case $ac_abs_builddir in
8036.) ac_abs_srcdir=$ac_srcdir;;
8037*)
8038 case $ac_srcdir in
8039 .) ac_abs_srcdir=$ac_abs_builddir;;
8040 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8041 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8042 esac;;
8043esac
8044case $ac_abs_builddir in
8045.) ac_abs_top_srcdir=$ac_top_srcdir;;
8046*)
8047 case $ac_top_srcdir in
8048 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8049 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8050 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8051 esac;;
8052esac
47935194
NN
8053
8054
8055 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
8056echo "$as_me: executing $ac_dest commands" >&6;}
8057 case $ac_dest in
bf9a420e
PB
8058 default-1 )
8059# Only add multilib support code if we just rebuilt the top-level
8060# Makefile.
8061case " $CONFIG_FILES " in
8062 *" Makefile "*)
8063 ac_file=Makefile . ${multi_basedir}/config-ml.in
8064 ;;
8065esac ;;
8066 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
8067 # Strip MF so we end up with the name of the file.
8068 mf=`echo "$mf" | sed -e 's/:.*$//'`
8069 # Check whether this is an Automake generated Makefile or not.
8070 # We used to match only the files named `Makefile.in', but
8071 # some people rename them; so instead we look at the file content.
8072 # Grep'ing the first line is not enough: some people post-process
8073 # each Makefile.in and add a new line on top of each file to say so.
8074 # So let's grep whole file.
8075 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
8076 dirpart=`(dirname "$mf") 2>/dev/null ||
8077$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8078 X"$mf" : 'X\(//\)[^/]' \| \
8079 X"$mf" : 'X\(//\)$' \| \
8080 X"$mf" : 'X\(/\)' \| \
8081 . : '\(.\)' 2>/dev/null ||
8082echo X"$mf" |
8083 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8084 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8085 /^X\(\/\/\)$/{ s//\1/; q; }
8086 /^X\(\/\).*/{ s//\1/; q; }
8087 s/.*/./; q'`
8088 else
8089 continue
8090 fi
4109fe85
BM
8091 # Extract the definition of DEPDIR, am__include, and am__quote
8092 # from the Makefile without running `make'.
bf9a420e
PB
8093 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8094 test -z "$DEPDIR" && continue
4109fe85
BM
8095 am__include=`sed -n 's/^am__include = //p' < "$mf"`
8096 test -z "am__include" && continue
8097 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
bf9a420e
PB
8098 # When using ansi2knr, U may be empty or an underscore; expand it
8099 U=`sed -n 's/^U = //p' < "$mf"`
4109fe85
BM
8100 # Find all dependency output files, they are included files with
8101 # $(DEPDIR) in their names. We invoke sed twice because it is the
8102 # simplest approach to changing $(DEPDIR) to its actual value in the
8103 # expansion.
8104 for file in `sed -n "
8105 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
bf9a420e
PB
8106 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8107 # Make sure the directory exists.
8108 test -f "$dirpart/$file" && continue
8109 fdir=`(dirname "$file") 2>/dev/null ||
8110$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8111 X"$file" : 'X\(//\)[^/]' \| \
8112 X"$file" : 'X\(//\)$' \| \
8113 X"$file" : 'X\(/\)' \| \
8114 . : '\(.\)' 2>/dev/null ||
8115echo X"$file" |
8116 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8117 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8118 /^X\(\/\/\)$/{ s//\1/; q; }
8119 /^X\(\/\).*/{ s//\1/; q; }
8120 s/.*/./; q'`
8121 { if $as_mkdir_p; then
8122 mkdir -p $dirpart/$fdir
8123 else
8124 as_dir=$dirpart/$fdir
8125 as_dirs=
8126 while test ! -d "$as_dir"; do
8127 as_dirs="$as_dir $as_dirs"
8128 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8129$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8130 X"$as_dir" : 'X\(//\)[^/]' \| \
8131 X"$as_dir" : 'X\(//\)$' \| \
8132 X"$as_dir" : 'X\(/\)' \| \
8133 . : '\(.\)' 2>/dev/null ||
8134echo X"$as_dir" |
8135 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8136 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8137 /^X\(\/\/\)$/{ s//\1/; q; }
8138 /^X\(\/\).*/{ s//\1/; q; }
8139 s/.*/./; q'`
8140 done
8141 test ! -n "$as_dirs" || mkdir $as_dirs
8142 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
8143echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
8144 { (exit 1); exit 1; }; }; }
1530be84 8145
bf9a420e
PB
8146 # echo "creating $dirpart/$file"
8147 echo '# dummy' > "$dirpart/$file"
8148 done
8149done
8150 ;;
47935194
NN
8151 esac
8152done
8153_ACEOF
8154
8155cat >>$CONFIG_STATUS <<\_ACEOF
8156
8157{ (exit 0); exit 0; }
8158_ACEOF
1530be84 8159chmod +x $CONFIG_STATUS
47935194
NN
8160ac_clean_files=$ac_clean_files_save
8161
8162
8163# configure is writing to config.log, and then calls config.status.
8164# config.status does its own redirection, appending to config.log.
8165# Unfortunately, on DOS this fails, as config.log is still kept open
8166# by configure, so config.status won't be able to write to it; its
8167# output is simply discarded. So we exec the FD to /dev/null,
8168# effectively closing config.log, so it can be properly (re)opened and
8169# appended to by config.status. When coming back to configure, we
8170# need to make the FD available again.
8171if test "$no_create" != yes; then
8172 ac_cs_success=:
8173 ac_config_status_args=
8174 test "$silent" = yes &&
8175 ac_config_status_args="$ac_config_status_args --quiet"
8176 exec 5>/dev/null
8177 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8178 exec 5>>config.log
8179 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8180 # would make configure fail if this is the last instruction.
8181 $ac_cs_success || { (exit 1); exit 1; }
8182fi
1530be84 8183