cpu/
[deliverable/binutils-gdb.git] / gold / configure
CommitLineData
bae7f79e
ILT
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
8486ee48 3# Generated by GNU Autoconf 2.59 for gold 0.1.
bae7f79e
ILT
4#
5# Copyright (C) 2003 Free Software Foundation, Inc.
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
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#
254ac_default_prefix=/usr/local
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.
8486ee48
ILT
268PACKAGE_NAME='gold'
269PACKAGE_TARNAME='gold'
270PACKAGE_VERSION='0.1'
271PACKAGE_STRING='gold 0.1'
272PACKAGE_BUGREPORT=''
bae7f79e
ILT
273
274ac_unique_file="gold.cc"
54dc6425
ILT
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
89fc3421 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os 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 THREADS_TRUE THREADS_FALSE PLUGINS_TRUE PLUGINS_FALSE TARGETOBJS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE YACC RANLIB ac_ct_RANLIB LN_S USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE NATIVE_LINKER_TRUE NATIVE_LINKER_FALSE GCC_TRUE GCC_FALSE FN_PTRS_IN_SO_WITHOUT_PIC_TRUE FN_PTRS_IN_SO_WITHOUT_PIC_FALSE TLS_TRUE TLS_FALSE STATIC_TLS_TRUE STATIC_TLS_FALSE OMP_SUPPORT_TRUE OMP_SUPPORT_FALSE TLS_GNU2_DIALECT_TRUE TLS_GNU2_DIALECT_FALSE TLS_DESCRIPTORS_TRUE TLS_DESCRIPTORS_FALSE CONSTRUCTOR_PRIORITY_TRUE CONSTRUCTOR_PRIORITY_FALSE RANDOM_SEED_CFLAGS WARN_CFLAGS NO_WERROR WARN_CXXFLAGS LFS_CFLAGS LIBOBJS CPP EGREP HAVE_ZLIB_TRUE HAVE_ZLIB_FALSE CXXCPP MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LTLIBOBJS'
bae7f79e 313ac_subst_files=''
1d1f116d 314ac_pwd=`pwd`
bae7f79e
ILT
315
316# Initialize some variables set by options.
317ac_init_help=
318ac_init_version=false
319# The variables have the same names as the options, with
320# dashes changed to underlines.
321cache_file=/dev/null
322exec_prefix=NONE
323no_create=
324no_recursion=
325prefix=NONE
326program_prefix=NONE
327program_suffix=NONE
328program_transform_name=s,x,x,
329silent=
330site=
331srcdir=
332verbose=
333x_includes=NONE
334x_libraries=NONE
335
336# Installation directory options.
337# These are left unexpanded so users can "make install exec_prefix=/foo"
338# and all the variables that are supposed to be based on exec_prefix
339# by default will actually change.
340# Use braces instead of parens because sh, perl, etc. also accept them.
341bindir='${exec_prefix}/bin'
342sbindir='${exec_prefix}/sbin'
343libexecdir='${exec_prefix}/libexec'
344datadir='${prefix}/share'
345sysconfdir='${prefix}/etc'
346sharedstatedir='${prefix}/com'
347localstatedir='${prefix}/var'
348libdir='${exec_prefix}/lib'
349includedir='${prefix}/include'
350oldincludedir='/usr/include'
351infodir='${prefix}/info'
352mandir='${prefix}/man'
353
354ac_prev=
355for ac_option
356do
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
360 ac_prev=
361 continue
362 fi
363
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365
366 # Accept the important Cygnus configure options, so we can diagnose typos.
367
368 case $ac_option in
369
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 ac_prev=bindir ;;
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 bindir=$ac_optarg ;;
374
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
379
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file=$ac_optarg ;;
386
387 --config-cache | -C)
388 cache_file=config.cache ;;
389
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 ac_prev=datadir ;;
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 | --da=*)
394 datadir=$ac_optarg ;;
395
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
404
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 case $ac_option in
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 *) ac_optarg=yes ;;
415 esac
416 eval "enable_$ac_feature='$ac_optarg'" ;;
417
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix=$ac_optarg ;;
426
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
429 with_gas=yes ;;
430
431 -help | --help | --hel | --he | -h)
432 ac_init_help=long ;;
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
437
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
442
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
448 includedir=$ac_optarg ;;
449
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 ac_prev=infodir ;;
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
454
455 -libdir | --libdir | --libdi | --libd)
456 ac_prev=libdir ;;
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 libdir=$ac_optarg ;;
459
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
466
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 localstatedir=$ac_optarg ;;
475
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 ac_prev=mandir ;;
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479 mandir=$ac_optarg ;;
480
481 -nfp | --nfp | --nf)
482 # Obsolete; use --without-fp.
483 with_fp=no ;;
484
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
487 no_create=yes ;;
488
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 no_recursion=yes ;;
492
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 oldincludedir=$ac_optarg ;;
501
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 ac_prev=prefix ;;
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 prefix=$ac_optarg ;;
506
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 program_prefix=$ac_optarg ;;
513
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 program_suffix=$ac_optarg ;;
520
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
536 program_transform_name=$ac_optarg ;;
537
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
540 silent=yes ;;
541
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 ac_prev=sbindir ;;
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 | --sbi=* | --sb=*)
546 sbindir=$ac_optarg ;;
547
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
551 | --sha | --sh)
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 | --sha=* | --sh=*)
557 sharedstatedir=$ac_optarg ;;
558
559 -site | --site | --sit)
560 ac_prev=site ;;
561 -site=* | --site=* | --sit=*)
562 site=$ac_optarg ;;
563
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 ac_prev=srcdir ;;
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 srcdir=$ac_optarg ;;
568
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 sysconfdir=$ac_optarg ;;
575
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
580
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 verbose=yes ;;
583
584 -version | --version | --versio | --versi | --vers | -V)
585 ac_init_version=: ;;
586
587 -with-* | --with-*)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 case $ac_option in
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 *) ac_optarg=yes ;;
597 esac
598 eval "with_$ac_package='$ac_optarg'" ;;
599
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
608
609 --x)
610 # Obsolete; use --with-x.
611 with_x=yes ;;
612
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 x_includes=$ac_optarg ;;
619
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 x_libraries=$ac_optarg ;;
626
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
630 ;;
631
632 *=*)
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
640 export $ac_envvar ;;
641
642 *)
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648 ;;
649
650 esac
651done
652
653if test -n "$ac_prev"; then
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
657fi
658
659# Be sure to have absolute paths.
660for ac_var in exec_prefix prefix
661do
662 eval ac_val=$`echo $ac_var`
663 case $ac_val in
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
667 esac
668done
669
670# Be sure to have absolute paths.
671for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
673do
674 eval ac_val=$`echo $ac_var`
675 case $ac_val in
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
679 esac
680done
681
682# There might be people who depend on the old broken behavior: `$host'
683# used to hold the argument of --host etc.
684# FIXME: To remove some day.
685build=$build_alias
686host=$host_alias
687target=$target_alias
688
689# FIXME: To remove some day.
690if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
696 cross_compiling=yes
697 fi
698fi
699
700ac_tool_prefix=
701test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
703test "$silent" = yes && exec 6>/dev/null
704
705
706# Find the source files, if location was not specified.
707if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
716echo X"$0" |
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
721 s/.*/./; q'`
722 srcdir=$ac_confdir
723 if test ! -r $srcdir/$ac_unique_file; then
724 srcdir=..
725 fi
726else
727 ac_srcdir_defaulted=no
728fi
729if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
733 else
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
736 fi
737fi
738(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742ac_env_build_alias_set=${build_alias+set}
743ac_env_build_alias_value=$build_alias
744ac_cv_env_build_alias_set=${build_alias+set}
745ac_cv_env_build_alias_value=$build_alias
746ac_env_host_alias_set=${host_alias+set}
747ac_env_host_alias_value=$host_alias
748ac_cv_env_host_alias_set=${host_alias+set}
749ac_cv_env_host_alias_value=$host_alias
750ac_env_target_alias_set=${target_alias+set}
751ac_env_target_alias_value=$target_alias
752ac_cv_env_target_alias_set=${target_alias+set}
753ac_cv_env_target_alias_value=$target_alias
754ac_env_CC_set=${CC+set}
755ac_env_CC_value=$CC
756ac_cv_env_CC_set=${CC+set}
757ac_cv_env_CC_value=$CC
758ac_env_CFLAGS_set=${CFLAGS+set}
759ac_env_CFLAGS_value=$CFLAGS
760ac_cv_env_CFLAGS_set=${CFLAGS+set}
761ac_cv_env_CFLAGS_value=$CFLAGS
762ac_env_LDFLAGS_set=${LDFLAGS+set}
763ac_env_LDFLAGS_value=$LDFLAGS
764ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765ac_cv_env_LDFLAGS_value=$LDFLAGS
766ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767ac_env_CPPFLAGS_value=$CPPFLAGS
768ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770ac_env_CXX_set=${CXX+set}
771ac_env_CXX_value=$CXX
772ac_cv_env_CXX_set=${CXX+set}
773ac_cv_env_CXX_value=$CXX
774ac_env_CXXFLAGS_set=${CXXFLAGS+set}
775ac_env_CXXFLAGS_value=$CXXFLAGS
776ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
777ac_cv_env_CXXFLAGS_value=$CXXFLAGS
9a0910c3
ILT
778ac_env_CPP_set=${CPP+set}
779ac_env_CPP_value=$CPP
780ac_cv_env_CPP_set=${CPP+set}
781ac_cv_env_CPP_value=$CPP
54dc6425
ILT
782ac_env_CXXCPP_set=${CXXCPP+set}
783ac_env_CXXCPP_value=$CXXCPP
784ac_cv_env_CXXCPP_set=${CXXCPP+set}
785ac_cv_env_CXXCPP_value=$CXXCPP
bae7f79e
ILT
786
787#
788# Report the --help message.
789#
790if test "$ac_init_help" = "long"; then
791 # Omit some internal or obsolete options to make the list less imposing.
792 # This message is too long to be a string in the A/UX 3.1 sh.
793 cat <<_ACEOF
8486ee48 794\`configure' configures gold 0.1 to adapt to many kinds of systems.
bae7f79e
ILT
795
796Usage: $0 [OPTION]... [VAR=VALUE]...
797
798To assign environment variables (e.g., CC, CFLAGS...), specify them as
799VAR=VALUE. See below for descriptions of some of the useful variables.
800
801Defaults for the options are specified in brackets.
802
803Configuration:
804 -h, --help display this help and exit
805 --help=short display options specific to this package
806 --help=recursive display the short help of all the included packages
807 -V, --version display version information and exit
808 -q, --quiet, --silent do not print \`checking...' messages
809 --cache-file=FILE cache test results in FILE [disabled]
810 -C, --config-cache alias for \`--cache-file=config.cache'
811 -n, --no-create do not create output files
812 --srcdir=DIR find the sources in DIR [configure dir or \`..']
813
814_ACEOF
815
816 cat <<_ACEOF
817Installation directories:
818 --prefix=PREFIX install architecture-independent files in PREFIX
819 [$ac_default_prefix]
820 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
821 [PREFIX]
822
823By default, \`make install' will install all the files in
824\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
825an installation prefix other than \`$ac_default_prefix' using \`--prefix',
826for instance \`--prefix=\$HOME'.
827
828For better control, use the options below.
829
830Fine tuning of the installation directories:
831 --bindir=DIR user executables [EPREFIX/bin]
832 --sbindir=DIR system admin executables [EPREFIX/sbin]
833 --libexecdir=DIR program executables [EPREFIX/libexec]
834 --datadir=DIR read-only architecture-independent data [PREFIX/share]
835 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
836 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
837 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
838 --libdir=DIR object code libraries [EPREFIX/lib]
839 --includedir=DIR C header files [PREFIX/include]
840 --oldincludedir=DIR C header files for non-gcc [/usr/include]
841 --infodir=DIR info documentation [PREFIX/info]
842 --mandir=DIR man documentation [PREFIX/man]
843_ACEOF
844
845 cat <<\_ACEOF
846
847Program names:
848 --program-prefix=PREFIX prepend PREFIX to installed program names
849 --program-suffix=SUFFIX append SUFFIX to installed program names
850 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
851
852System types:
853 --build=BUILD configure for building on BUILD [guessed]
854 --host=HOST cross-compile to build programs to run on HOST [BUILD]
855 --target=TARGET configure for building compilers for TARGET [HOST]
856_ACEOF
857fi
858
859if test -n "$ac_init_help"; then
8486ee48
ILT
860 case $ac_init_help in
861 short | recursive ) echo "Configuration of gold 0.1:";;
862 esac
bae7f79e
ILT
863 cat <<\_ACEOF
864
865Optional Features:
866 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
867 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
fe9a4c12 868 --enable-threads multi-threaded linking
89fc3421 869 --enable-plugins linker plugins
193a53d9 870 --enable-targets alternative target configurations
bae7f79e
ILT
871 --disable-dependency-tracking speeds up one-time build
872 --enable-dependency-tracking do not reject slow dependency extractors
873 --disable-nls do not use Native Language Support
874 --enable-werror treat compile warnings as errors
875 --enable-build-warnings enable build-time compiler warnings
876 --enable-maintainer-mode enable make rules and dependencies not useful
877 (and sometimes confusing) to the casual installer
878
ad2d6943
ILT
879Optional Packages:
880 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
881 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
882 --with-sysroot=DIR search for usr/lib et al within DIR
883
bae7f79e
ILT
884Some influential environment variables:
885 CC C compiler command
886 CFLAGS C compiler flags
887 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
888 nonstandard directory <lib dir>
889 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
890 headers in a nonstandard directory <include dir>
891 CXX C++ compiler command
892 CXXFLAGS C++ compiler flags
9a0910c3 893 CPP C preprocessor
54dc6425 894 CXXCPP C++ preprocessor
bae7f79e
ILT
895
896Use these variables to override the choices made by `configure' or to help
897it to find libraries and programs with nonstandard names/locations.
898
899_ACEOF
900fi
901
902if test "$ac_init_help" = "recursive"; then
903 # If there are subdirs, report their specific --help.
904 ac_popdir=`pwd`
905 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
906 test -d $ac_dir || continue
907 ac_builddir=.
908
909if test "$ac_dir" != .; then
910 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
911 # A "../" for each directory in $ac_dir_suffix.
912 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
913else
914 ac_dir_suffix= ac_top_builddir=
915fi
916
917case $srcdir in
918 .) # No --srcdir option. We are building in place.
919 ac_srcdir=.
920 if test -z "$ac_top_builddir"; then
921 ac_top_srcdir=.
922 else
923 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
924 fi ;;
925 [\\/]* | ?:[\\/]* ) # Absolute path.
926 ac_srcdir=$srcdir$ac_dir_suffix;
927 ac_top_srcdir=$srcdir ;;
928 *) # Relative path.
929 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
930 ac_top_srcdir=$ac_top_builddir$srcdir ;;
931esac
932
933# Do not use `cd foo && pwd` to compute absolute paths, because
934# the directories may not exist.
935case `pwd` in
936.) ac_abs_builddir="$ac_dir";;
937*)
938 case "$ac_dir" in
939 .) ac_abs_builddir=`pwd`;;
940 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
941 *) ac_abs_builddir=`pwd`/"$ac_dir";;
942 esac;;
943esac
944case $ac_abs_builddir in
945.) ac_abs_top_builddir=${ac_top_builddir}.;;
946*)
947 case ${ac_top_builddir}. in
948 .) ac_abs_top_builddir=$ac_abs_builddir;;
949 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
950 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
951 esac;;
952esac
953case $ac_abs_builddir in
954.) ac_abs_srcdir=$ac_srcdir;;
955*)
956 case $ac_srcdir in
957 .) ac_abs_srcdir=$ac_abs_builddir;;
958 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
959 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
960 esac;;
961esac
962case $ac_abs_builddir in
963.) ac_abs_top_srcdir=$ac_top_srcdir;;
964*)
965 case $ac_top_srcdir in
966 .) ac_abs_top_srcdir=$ac_abs_builddir;;
967 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
968 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
969 esac;;
970esac
971
972 cd $ac_dir
973 # Check for guested configure; otherwise get Cygnus style configure.
974 if test -f $ac_srcdir/configure.gnu; then
975 echo
976 $SHELL $ac_srcdir/configure.gnu --help=recursive
977 elif test -f $ac_srcdir/configure; then
978 echo
979 $SHELL $ac_srcdir/configure --help=recursive
980 elif test -f $ac_srcdir/configure.ac ||
981 test -f $ac_srcdir/configure.in; then
982 echo
983 $ac_configure --help
984 else
985 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
986 fi
b0074644 987 cd $ac_popdir
bae7f79e
ILT
988 done
989fi
990
991test -n "$ac_init_help" && exit 0
992if $ac_init_version; then
993 cat <<\_ACEOF
8486ee48
ILT
994gold configure 0.1
995generated by GNU Autoconf 2.59
bae7f79e
ILT
996
997Copyright (C) 2003 Free Software Foundation, Inc.
998This configure script is free software; the Free Software Foundation
999gives unlimited permission to copy, distribute and modify it.
1000_ACEOF
1001 exit 0
1002fi
1003exec 5>config.log
1004cat >&5 <<_ACEOF
1005This file contains any messages produced by compilers while
1006running configure, to aid debugging if configure makes a mistake.
1007
8486ee48 1008It was created by gold $as_me 0.1, which was
bae7f79e
ILT
1009generated by GNU Autoconf 2.59. Invocation command line was
1010
1011 $ $0 $@
1012
1013_ACEOF
1014{
1015cat <<_ASUNAME
1016## --------- ##
1017## Platform. ##
1018## --------- ##
1019
1020hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1021uname -m = `(uname -m) 2>/dev/null || echo unknown`
1022uname -r = `(uname -r) 2>/dev/null || echo unknown`
1023uname -s = `(uname -s) 2>/dev/null || echo unknown`
1024uname -v = `(uname -v) 2>/dev/null || echo unknown`
1025
1026/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1027/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1028
1029/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1030/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1031/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1032hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1033/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1034/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1035/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1036
1037_ASUNAME
1038
1039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1040for as_dir in $PATH
1041do
1042 IFS=$as_save_IFS
1043 test -z "$as_dir" && as_dir=.
1044 echo "PATH: $as_dir"
1045done
1046
1047} >&5
1048
1049cat >&5 <<_ACEOF
1050
1051
1052## ----------- ##
1053## Core tests. ##
1054## ----------- ##
1055
1056_ACEOF
1057
1058
1059# Keep a trace of the command line.
1060# Strip out --no-create and --no-recursion so they do not pile up.
1061# Strip out --silent because we don't want to record it for future runs.
1062# Also quote any args containing shell meta-characters.
1063# Make two passes to allow for proper duplicate-argument suppression.
1064ac_configure_args=
1065ac_configure_args0=
1066ac_configure_args1=
1067ac_sep=
1068ac_must_keep_next=false
1069for ac_pass in 1 2
1070do
1071 for ac_arg
1072 do
1073 case $ac_arg in
1074 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1075 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1076 | -silent | --silent | --silen | --sile | --sil)
1077 continue ;;
1078 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1079 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1080 esac
1081 case $ac_pass in
1082 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1083 2)
1084 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1085 if test $ac_must_keep_next = true; then
1086 ac_must_keep_next=false # Got value, back to normal.
1087 else
1088 case $ac_arg in
1089 *=* | --config-cache | -C | -disable-* | --disable-* \
1090 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1091 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1092 | -with-* | --with-* | -without-* | --without-* | --x)
1093 case "$ac_configure_args0 " in
1094 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1095 esac
1096 ;;
1097 -* ) ac_must_keep_next=true ;;
1098 esac
1099 fi
1100 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1101 # Get rid of the leading space.
1102 ac_sep=" "
1103 ;;
1104 esac
1105 done
1106done
1107$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1108$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1109
1110# When interrupted or exit'd, cleanup temporary files, and complete
1111# config.log. We remove comments because anyway the quotes in there
1112# would cause problems or look ugly.
1113# WARNING: Be sure not to use single quotes in there, as some shells,
1114# such as our DU 5.0 friend, will then `close' the trap.
1115trap 'exit_status=$?
1116 # Save into config.log some information that might help in debugging.
1117 {
1118 echo
1119
1120 cat <<\_ASBOX
1121## ---------------- ##
1122## Cache variables. ##
1123## ---------------- ##
1124_ASBOX
1125 echo
1126 # The following way of writing the cache mishandles newlines in values,
1127{
1128 (set) 2>&1 |
1129 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1130 *ac_space=\ *)
1131 sed -n \
1132 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1133 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1134 ;;
1135 *)
1136 sed -n \
1137 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1138 ;;
1139 esac;
1140}
1141 echo
1142
1143 cat <<\_ASBOX
1144## ----------------- ##
1145## Output variables. ##
1146## ----------------- ##
1147_ASBOX
1148 echo
1149 for ac_var in $ac_subst_vars
1150 do
1151 eval ac_val=$`echo $ac_var`
1152 echo "$ac_var='"'"'$ac_val'"'"'"
1153 done | sort
1154 echo
1155
1156 if test -n "$ac_subst_files"; then
1157 cat <<\_ASBOX
1158## ------------- ##
1159## Output files. ##
1160## ------------- ##
1161_ASBOX
1162 echo
1163 for ac_var in $ac_subst_files
1164 do
1165 eval ac_val=$`echo $ac_var`
1166 echo "$ac_var='"'"'$ac_val'"'"'"
1167 done | sort
1168 echo
1169 fi
1170
1171 if test -s confdefs.h; then
1172 cat <<\_ASBOX
1173## ----------- ##
1174## confdefs.h. ##
1175## ----------- ##
1176_ASBOX
1177 echo
1178 sed "/^$/d" confdefs.h | sort
1179 echo
1180 fi
1181 test "$ac_signal" != 0 &&
1182 echo "$as_me: caught signal $ac_signal"
1183 echo "$as_me: exit $exit_status"
1184 } >&5
1185 rm -f core *.core &&
1186 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1187 exit $exit_status
1188 ' 0
1189for ac_signal in 1 2 13 15; do
1190 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1191done
1192ac_signal=0
1193
1194# confdefs.h avoids OS command line length limits that DEFS can exceed.
1195rm -rf conftest* confdefs.h
1196# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1197echo >confdefs.h
1198
1199# Predefined preprocessor variables.
1200
1201cat >>confdefs.h <<_ACEOF
1202#define PACKAGE_NAME "$PACKAGE_NAME"
1203_ACEOF
1204
1205
1206cat >>confdefs.h <<_ACEOF
1207#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1208_ACEOF
1209
1210
1211cat >>confdefs.h <<_ACEOF
1212#define PACKAGE_VERSION "$PACKAGE_VERSION"
1213_ACEOF
1214
1215
1216cat >>confdefs.h <<_ACEOF
1217#define PACKAGE_STRING "$PACKAGE_STRING"
1218_ACEOF
1219
1220
1221cat >>confdefs.h <<_ACEOF
1222#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1223_ACEOF
1224
1225
1226# Let the site file select an alternate cache file if it wants to.
1227# Prefer explicitly selected file to automatically selected ones.
1228if test -z "$CONFIG_SITE"; then
1229 if test "x$prefix" != xNONE; then
1230 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1231 else
1232 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1233 fi
1234fi
1235for ac_site_file in $CONFIG_SITE; do
1236 if test -r "$ac_site_file"; then
1237 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1238echo "$as_me: loading site script $ac_site_file" >&6;}
1239 sed 's/^/| /' "$ac_site_file" >&5
1240 . "$ac_site_file"
1241 fi
1242done
1243
1244if test -r "$cache_file"; then
1245 # Some versions of bash will fail to source /dev/null (special
1246 # files actually), so we avoid doing that.
1247 if test -f "$cache_file"; then
1248 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1249echo "$as_me: loading cache $cache_file" >&6;}
1250 case $cache_file in
1251 [\\/]* | ?:[\\/]* ) . $cache_file;;
1252 *) . ./$cache_file;;
1253 esac
1254 fi
1255else
1256 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1257echo "$as_me: creating cache $cache_file" >&6;}
1258 >$cache_file
1259fi
1260
1261# Check that the precious variables saved in the cache have kept the same
1262# value.
1263ac_cache_corrupted=false
1264for ac_var in `(set) 2>&1 |
1265 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1266 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1267 eval ac_new_set=\$ac_env_${ac_var}_set
1268 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1269 eval ac_new_val="\$ac_env_${ac_var}_value"
1270 case $ac_old_set,$ac_new_set in
1271 set,)
1272 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1273echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1274 ac_cache_corrupted=: ;;
1275 ,set)
1276 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1277echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1278 ac_cache_corrupted=: ;;
1279 ,);;
1280 *)
1281 if test "x$ac_old_val" != "x$ac_new_val"; then
6194aaab
L
1282 # differences in whitespace do not lead to failure.
1283 ac_old_val_w=`echo x $ac_old_val`
1284 ac_new_val_w=`echo x $ac_new_val`
1285 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1286 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
bae7f79e 1287echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
6194aaab
L
1288 ac_cache_corrupted=:
1289 else
1290 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1291echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1292 eval $ac_var=\$ac_old_val
1293 fi
1294 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1295echo "$as_me: former value: \`$ac_old_val'" >&2;}
1296 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1297echo "$as_me: current value: \`$ac_new_val'" >&2;}
bae7f79e
ILT
1298 fi;;
1299 esac
1300 # Pass precious variables to config.status.
1301 if test "$ac_new_set" = set; then
1302 case $ac_new_val in
1303 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1304 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1305 *) ac_arg=$ac_var=$ac_new_val ;;
1306 esac
1307 case " $ac_configure_args " in
1308 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1309 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1310 esac
1311 fi
1312done
1313if $ac_cache_corrupted; then
1d1f116d
CD
1314 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1315echo "$as_me: error: in \`$ac_pwd':" >&2;}
bae7f79e
ILT
1316 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1317echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1318 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1319echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1320 { (exit 1); exit 1; }; }
1321fi
1322
1323ac_ext=c
1324ac_cpp='$CPP $CPPFLAGS'
1325ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1326ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1327ac_compiler_gnu=$ac_cv_c_compiler_gnu
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
8486ee48
ILT
1340
1341
1342
1343
1344
1345
1346
1347
bae7f79e
ILT
1348
1349
1350
1351
1352
1d1f116d
CD
1353
1354
1355
bae7f79e
ILT
1356
1357
1358
1359
1360ac_aux_dir=
1361for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1362 if test -f $ac_dir/install-sh; then
1363 ac_aux_dir=$ac_dir
1364 ac_install_sh="$ac_aux_dir/install-sh -c"
1365 break
1366 elif test -f $ac_dir/install.sh; then
1367 ac_aux_dir=$ac_dir
1368 ac_install_sh="$ac_aux_dir/install.sh -c"
1369 break
1370 elif test -f $ac_dir/shtool; then
1371 ac_aux_dir=$ac_dir
1372 ac_install_sh="$ac_aux_dir/shtool install -c"
1373 break
1374 fi
1375done
1376if test -z "$ac_aux_dir"; then
1377 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1378echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1379 { (exit 1); exit 1; }; }
1380fi
1381ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1382ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1383ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1384
1385# Make sure we can run config.sub.
1386$ac_config_sub sun4 >/dev/null 2>&1 ||
1387 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1388echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1389 { (exit 1); exit 1; }; }
1390
1391echo "$as_me:$LINENO: checking build system type" >&5
1392echo $ECHO_N "checking build system type... $ECHO_C" >&6
1393if test "${ac_cv_build+set}" = set; then
1394 echo $ECHO_N "(cached) $ECHO_C" >&6
1395else
1396 ac_cv_build_alias=$build_alias
1397test -z "$ac_cv_build_alias" &&
1398 ac_cv_build_alias=`$ac_config_guess`
1399test -z "$ac_cv_build_alias" &&
1400 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1401echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1402 { (exit 1); exit 1; }; }
1403ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1404 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1405echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1406 { (exit 1); exit 1; }; }
1407
1408fi
1409echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1410echo "${ECHO_T}$ac_cv_build" >&6
1411build=$ac_cv_build
1412build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1413build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1414build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1415
1416
1417echo "$as_me:$LINENO: checking host system type" >&5
1418echo $ECHO_N "checking host system type... $ECHO_C" >&6
1419if test "${ac_cv_host+set}" = set; then
1420 echo $ECHO_N "(cached) $ECHO_C" >&6
1421else
1422 ac_cv_host_alias=$host_alias
1423test -z "$ac_cv_host_alias" &&
1424 ac_cv_host_alias=$ac_cv_build_alias
1425ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1426 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1427echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1428 { (exit 1); exit 1; }; }
1429
1430fi
1431echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1432echo "${ECHO_T}$ac_cv_host" >&6
1433host=$ac_cv_host
1434host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1435host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1436host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1437
1438
1439echo "$as_me:$LINENO: checking target system type" >&5
1440echo $ECHO_N "checking target system type... $ECHO_C" >&6
1441if test "${ac_cv_target+set}" = set; then
1442 echo $ECHO_N "(cached) $ECHO_C" >&6
1443else
1444 ac_cv_target_alias=$target_alias
1445test "x$ac_cv_target_alias" = "x" &&
1446 ac_cv_target_alias=$ac_cv_host_alias
1447ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1448 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1449echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1450 { (exit 1); exit 1; }; }
1451
1452fi
1453echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1454echo "${ECHO_T}$ac_cv_target" >&6
1455target=$ac_cv_target
1456target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1457target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1458target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1459
1460
1461# The aliases save the names the user supplied, while $host etc.
1462# will get canonicalized.
1463test -n "$target_alias" &&
1464 test "$program_prefix$program_suffix$program_transform_name" = \
1465 NONENONEs,x,x, &&
1466 program_prefix=${target_alias}-
1467
1468am__api_version="1.9"
1469# Find a good install program. We prefer a C program (faster),
1470# so one script is as good as another. But avoid the broken or
1471# incompatible versions:
1472# SysV /etc/install, /usr/sbin/install
1473# SunOS /usr/etc/install
1474# IRIX /sbin/install
1475# AIX /bin/install
1476# AmigaOS /C/install, which installs bootblocks on floppy discs
1477# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1478# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1479# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1480# OS/2's system install, which has a completely different semantic
1481# ./install, which can be erroneously created by make from ./install.sh.
f5314dd5 1482# Reject install programs that cannot install multiple files.
bae7f79e
ILT
1483echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1484echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1485if test -z "$INSTALL"; then
1486if test "${ac_cv_path_install+set}" = set; then
1487 echo $ECHO_N "(cached) $ECHO_C" >&6
1488else
1489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1490for as_dir in $PATH
1491do
1492 IFS=$as_save_IFS
1493 test -z "$as_dir" && as_dir=.
1494 # Account for people who put trailing slashes in PATH elements.
1495case $as_dir/ in
1496 ./ | .// | /cC/* | \
1497 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1498 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1499 /usr/ucb/* ) ;;
1500 *)
1501 # OSF1 and SCO ODT 3.0 have their own names for install.
1502 # Don't use installbsd from OSF since it installs stuff as root
1503 # by default.
1504 for ac_prog in ginstall scoinst install; do
1505 for ac_exec_ext in '' $ac_executable_extensions; do
1506 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1507 if test $ac_prog = install &&
1508 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1509 # AIX install. It has an incompatible calling convention.
1510 :
1511 elif test $ac_prog = install &&
1512 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1513 # program-specific install script used by HP pwplus--don't use.
1514 :
1515 else
f5314dd5
DM
1516 rm -rf conftest.one conftest.two conftest.dir
1517 echo one > conftest.one
1518 echo two > conftest.two
1519 mkdir conftest.dir
1520 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1521 test -s conftest.one && test -s conftest.two &&
1522 test -s conftest.dir/conftest.one &&
1523 test -s conftest.dir/conftest.two
1524 then
1525 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1526 break 3
1527 fi
bae7f79e
ILT
1528 fi
1529 fi
1530 done
1531 done
1532 ;;
1533esac
1534done
1535
f5314dd5 1536rm -rf conftest.one conftest.two conftest.dir
bae7f79e
ILT
1537
1538fi
1539 if test "${ac_cv_path_install+set}" = set; then
1540 INSTALL=$ac_cv_path_install
1541 else
f5314dd5
DM
1542 # As a last resort, use the slow shell script. Don't cache a
1543 # value for INSTALL within a source directory, because that will
bae7f79e 1544 # break other packages using the cache if that directory is
f5314dd5 1545 # removed, or if the value is a relative name.
bae7f79e
ILT
1546 INSTALL=$ac_install_sh
1547 fi
1548fi
1549echo "$as_me:$LINENO: result: $INSTALL" >&5
1550echo "${ECHO_T}$INSTALL" >&6
1551
1552# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1553# It thinks the first close brace ends the variable substitution.
1554test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1555
1556test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1557
1558test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1559
1560echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1561echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1562# Just in case
1563sleep 1
1564echo timestamp > conftest.file
1565# Do `set' in a subshell so we don't clobber the current shell's
1566# arguments. Must try -L first in case configure is actually a
1567# symlink; some systems play weird games with the mod time of symlinks
1568# (eg FreeBSD returns the mod time of the symlink's containing
1569# directory).
1570if (
1571 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1572 if test "$*" = "X"; then
1573 # -L didn't work.
1574 set X `ls -t $srcdir/configure conftest.file`
1575 fi
1576 rm -f conftest.file
1577 if test "$*" != "X $srcdir/configure conftest.file" \
1578 && test "$*" != "X conftest.file $srcdir/configure"; then
1579
1580 # If neither matched, then we have a broken ls. This can happen
1581 # if, for instance, CONFIG_SHELL is bash and it inherits a
1582 # broken ls alias from the environment. This has actually
1583 # happened. Such a system could not be considered "sane".
1584 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1585alias in your environment" >&5
1586echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1587alias in your environment" >&2;}
1588 { (exit 1); exit 1; }; }
1589 fi
1590
1591 test "$2" = conftest.file
1592 )
1593then
1594 # Ok.
1595 :
1596else
1597 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1598Check your system clock" >&5
1599echo "$as_me: error: newly created file is older than distributed files!
1600Check your system clock" >&2;}
1601 { (exit 1); exit 1; }; }
1602fi
1603echo "$as_me:$LINENO: result: yes" >&5
1604echo "${ECHO_T}yes" >&6
1605test "$program_prefix" != NONE &&
1606 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1607# Use a double $ so make ignores it.
1608test "$program_suffix" != NONE &&
1609 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1610# Double any \ or $. echo might interpret backslashes.
1611# By default was `s,x,x', remove it if useless.
1612cat <<\_ACEOF >conftest.sed
1613s/[\\$]/&&/g;s/;s,x,x,$//
1614_ACEOF
1615program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1616rm conftest.sed
1617
1618# expand $ac_aux_dir to an absolute path
1619am_aux_dir=`cd $ac_aux_dir && pwd`
1620
1621test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1622# Use eval to expand $SHELL
1623if eval "$MISSING --run true"; then
1624 am_missing_run="$MISSING --run "
1625else
1626 am_missing_run=
1627 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1628echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1629fi
1630
1631if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1632 # We used to keeping the `.' as first argument, in order to
1633 # allow $(mkdir_p) to be used without argument. As in
1634 # $(mkdir_p) $(somedir)
1635 # where $(somedir) is conditionally defined. However this is wrong
1636 # for two reasons:
1637 # 1. if the package is installed by a user who cannot write `.'
1638 # make install will fail,
1639 # 2. the above comment should most certainly read
1640 # $(mkdir_p) $(DESTDIR)$(somedir)
1641 # so it does not work when $(somedir) is undefined and
1642 # $(DESTDIR) is not.
1643 # To support the latter case, we have to write
1644 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1645 # so the `.' trick is pointless.
1646 mkdir_p='mkdir -p --'
1647else
1648 # On NextStep and OpenStep, the `mkdir' command does not
1649 # recognize any option. It will interpret all options as
1650 # directories to create, and then abort because `.' already
1651 # exists.
1652 for d in ./-p ./--version;
1653 do
1654 test -d $d && rmdir $d
1655 done
1656 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1657 if test -f "$ac_aux_dir/mkinstalldirs"; then
1658 mkdir_p='$(mkinstalldirs)'
1659 else
1660 mkdir_p='$(install_sh) -d'
1661 fi
1662fi
1663
1664for ac_prog in gawk mawk nawk awk
1665do
1666 # Extract the first word of "$ac_prog", so it can be a program name with args.
1667set dummy $ac_prog; ac_word=$2
1668echo "$as_me:$LINENO: checking for $ac_word" >&5
1669echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1670if test "${ac_cv_prog_AWK+set}" = set; then
1671 echo $ECHO_N "(cached) $ECHO_C" >&6
1672else
1673 if test -n "$AWK"; then
1674 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1675else
1676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1677for as_dir in $PATH
1678do
1679 IFS=$as_save_IFS
1680 test -z "$as_dir" && as_dir=.
1681 for ac_exec_ext in '' $ac_executable_extensions; do
1682 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1683 ac_cv_prog_AWK="$ac_prog"
1684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1685 break 2
1686 fi
1687done
1688done
1689
1690fi
1691fi
1692AWK=$ac_cv_prog_AWK
1693if test -n "$AWK"; then
1694 echo "$as_me:$LINENO: result: $AWK" >&5
1695echo "${ECHO_T}$AWK" >&6
1696else
1697 echo "$as_me:$LINENO: result: no" >&5
1698echo "${ECHO_T}no" >&6
1699fi
1700
1701 test -n "$AWK" && break
1702done
1703
1704echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1705echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1706set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1707if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1708 echo $ECHO_N "(cached) $ECHO_C" >&6
1709else
1710 cat >conftest.make <<\_ACEOF
1711all:
1712 @echo 'ac_maketemp="$(MAKE)"'
1713_ACEOF
1714# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1715eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1716if test -n "$ac_maketemp"; then
1717 eval ac_cv_prog_make_${ac_make}_set=yes
1718else
1719 eval ac_cv_prog_make_${ac_make}_set=no
1720fi
1721rm -f conftest.make
1722fi
1723if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1724 echo "$as_me:$LINENO: result: yes" >&5
1725echo "${ECHO_T}yes" >&6
1726 SET_MAKE=
1727else
1728 echo "$as_me:$LINENO: result: no" >&5
1729echo "${ECHO_T}no" >&6
1730 SET_MAKE="MAKE=${MAKE-make}"
1731fi
1732
1733rm -rf .tst 2>/dev/null
1734mkdir .tst 2>/dev/null
1735if test -d .tst; then
1736 am__leading_dot=.
1737else
1738 am__leading_dot=_
1739fi
1740rmdir .tst 2>/dev/null
1741
1742# test to see if srcdir already configured
1743if test "`cd $srcdir && pwd`" != "`pwd`" &&
1744 test -f $srcdir/config.status; then
1745 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1746echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1747 { (exit 1); exit 1; }; }
1748fi
1749
1750# test whether we have cygpath
1751if test -z "$CYGPATH_W"; then
1752 if (cygpath --version) >/dev/null 2>/dev/null; then
1753 CYGPATH_W='cygpath -w'
1754 else
1755 CYGPATH_W=echo
1756 fi
1757fi
1758
1759
1760# Define the identity of the package.
8486ee48
ILT
1761 PACKAGE='gold'
1762 VERSION='0.1'
bae7f79e
ILT
1763
1764
1765cat >>confdefs.h <<_ACEOF
1766#define PACKAGE "$PACKAGE"
1767_ACEOF
1768
1769
1770cat >>confdefs.h <<_ACEOF
1771#define VERSION "$VERSION"
1772_ACEOF
1773
1774# Some tools Automake needs.
1775
1776ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1777
1778
1779AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1780
1781
1782AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1783
1784
1785AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1786
1787
1788MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1789
1790install_sh=${install_sh-"$am_aux_dir/install-sh"}
1791
1792# Installed binaries are usually stripped using `strip' when the user
1793# run `make install-strip'. However `strip' might not be the right
1794# tool to use in cross-compilation environments, therefore Automake
1795# will honor the `STRIP' environment variable to overrule this program.
1796if test "$cross_compiling" != no; then
1797 if test -n "$ac_tool_prefix"; then
1798 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1799set dummy ${ac_tool_prefix}strip; ac_word=$2
1800echo "$as_me:$LINENO: checking for $ac_word" >&5
1801echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1802if test "${ac_cv_prog_STRIP+set}" = set; then
1803 echo $ECHO_N "(cached) $ECHO_C" >&6
1804else
1805 if test -n "$STRIP"; then
1806 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1807else
1808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1809for as_dir in $PATH
1810do
1811 IFS=$as_save_IFS
1812 test -z "$as_dir" && as_dir=.
1813 for ac_exec_ext in '' $ac_executable_extensions; do
1814 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1815 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1817 break 2
1818 fi
1819done
1820done
1821
1822fi
1823fi
1824STRIP=$ac_cv_prog_STRIP
1825if test -n "$STRIP"; then
1826 echo "$as_me:$LINENO: result: $STRIP" >&5
1827echo "${ECHO_T}$STRIP" >&6
1828else
1829 echo "$as_me:$LINENO: result: no" >&5
1830echo "${ECHO_T}no" >&6
1831fi
1832
1833fi
1834if test -z "$ac_cv_prog_STRIP"; then
1835 ac_ct_STRIP=$STRIP
1836 # Extract the first word of "strip", so it can be a program name with args.
1837set dummy strip; ac_word=$2
1838echo "$as_me:$LINENO: checking for $ac_word" >&5
1839echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1840if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1841 echo $ECHO_N "(cached) $ECHO_C" >&6
1842else
1843 if test -n "$ac_ct_STRIP"; then
1844 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1845else
1846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1847for as_dir in $PATH
1848do
1849 IFS=$as_save_IFS
1850 test -z "$as_dir" && as_dir=.
1851 for ac_exec_ext in '' $ac_executable_extensions; do
1852 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1853 ac_cv_prog_ac_ct_STRIP="strip"
1854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1855 break 2
1856 fi
1857done
1858done
1859
1860 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1861fi
1862fi
1863ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1864if test -n "$ac_ct_STRIP"; then
1865 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1866echo "${ECHO_T}$ac_ct_STRIP" >&6
1867else
1868 echo "$as_me:$LINENO: result: no" >&5
1869echo "${ECHO_T}no" >&6
1870fi
1871
1872 STRIP=$ac_ct_STRIP
1873else
1874 STRIP="$ac_cv_prog_STRIP"
1875fi
1876
1877fi
1878INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1879
1880# We need awk for the "check" target. The system "awk" is bad on
1881# some platforms.
1882# Always define AMTAR for backward compatibility.
1883
1884AMTAR=${AMTAR-"${am_missing_run}tar"}
1885
1886am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1887
1888
1889
1890
1891
1892
1893 ac_config_headers="$ac_config_headers config.h:config.in"
1894
1895
ad2d6943
ILT
1896
1897# Check whether --with-sysroot or --without-sysroot was given.
1898if test "${with_sysroot+set}" = set; then
1899 withval="$with_sysroot"
1900 sysroot=$withval
1901else
1902 sysroot=no
1903fi;
1904
1905if test "$sysroot" = "yes"; then
1906 sysroot='${exec_prefix}/${target_alias}/sys-root'
1907elif test "$sysroot" = "no"; then
1908 sysroot=
1909fi
1910
1911sysroot_relocatable=0
1912if test -n "$sysroot"; then
1913 case "sysroot" in
1914 "${prefix}" | "${prefix}/"* | \
1915 "${exec_prefix}" | "${exec_prefix}/"* | \
1916 '${prefix}' | '${prefix}/'*| \
1917 '${exec_prefix}' | '${exec_prefix}/'*)
1918 sysroot_relocatable=1
1919 ;;
1920 esac
1921fi
1922
1923
1924cat >>confdefs.h <<_ACEOF
1925#define TARGET_SYSTEM_ROOT "$sysroot"
1926_ACEOF
1927
1928
1929cat >>confdefs.h <<_ACEOF
1930#define TARGET_SYSTEM_ROOT_RELOCATABLE $sysroot_relocatable
1931_ACEOF
1932
1933
fe9a4c12
ILT
1934# Check whether --enable-threads or --disable-threads was given.
1935if test "${enable_threads+set}" = set; then
1936 enableval="$enable_threads"
1937 case "${enableval}" in
1938 yes | "") threads=yes ;;
1939 no) threads=no ;;
1940 *) threads=yes ;;
1941 esac
1942else
1943 threads=no
1944fi;
1945if test "$threads" = "yes"; then
1946
1947cat >>confdefs.h <<\_ACEOF
1948#define ENABLE_THREADS 1
1949_ACEOF
1950
1951fi
1952
1953
1954if test "$threads" = "yes"; then
1955 THREADS_TRUE=
1956 THREADS_FALSE='#'
1957else
1958 THREADS_TRUE='#'
1959 THREADS_FALSE=
1960fi
1961
1962
89fc3421
CC
1963# Check whether --enable-plugins or --disable-plugins was given.
1964if test "${enable_plugins+set}" = set; then
1965 enableval="$enable_plugins"
1966 case "${enableval}" in
1967 yes | "") plugins=yes ;;
1968 no) plugins=no ;;
1969 *) plugins=yes ;;
1970 esac
1971else
1972 plugins=no
1973fi;
1974if test "$plugins" = "yes"; then
1975
1976cat >>confdefs.h <<\_ACEOF
1977#define ENABLE_PLUGINS 1
1978_ACEOF
1979
1980fi
1981
1982
1983if test "$plugins" = "yes"; then
1984 PLUGINS_TRUE=
1985 PLUGINS_FALSE='#'
1986else
1987 PLUGINS_TRUE='#'
1988 PLUGINS_FALSE=
1989fi
1990
1991
193a53d9
ILT
1992# Check whether --enable-targets or --disable-targets was given.
1993if test "${enable_targets+set}" = set; then
1994 enableval="$enable_targets"
1995 case "${enableval}" in
1996 yes | "")
1997 { { echo "$as_me:$LINENO: error: --enable-targets option must specify target names or 'all'" >&5
1998echo "$as_me: error: --enable-targets option must specify target names or 'all'" >&2;}
1999 { (exit 1); exit 1; }; }
2000 ;;
2001 no)
2002 enable_targets=
2003 ;;
2004 *)
2005 enable_targets=$enableval
2006 ;;
2007esac
2008else
2009 # For now, enable all targets by default
2010 enable_targets=all
2011
2012fi;
2013
2014# Canonicalize the enabled targets.
2015if test -n "$enable_targets"; then
2016 for targ in `echo $enable_targets | sed -e 's/,/ /g'`; do
2017 result=`$ac_config_sub $targ 2>/dev/null`
2018 if test -n "$result"; then
2019 canon_targets="$canon_targets $result"
2020 else
2021 # Permit unrecognized target names, like "all".
2022 canon_targets="$canon_targets $targ"
2023 fi
2024 done
2025fi
2026
2027# See which specific instantiations we need.
6df6da4a
ILT
2028targetobjs=
2029all_targets=
fbfba508
ILT
2030default_machine=
2031default_size=
2032default_big_endian=
36959681 2033default_osabi=ELFOSABI_NONE
fbfba508
ILT
2034targ_32_little=
2035targ_32_big=
2036targ_64_little=
2037targ_64_big=
193a53d9 2038for targ in $target $canon_targets; do
193a53d9
ILT
2039 if test "$targ" = "all"; then
2040 targ_32_little=yes
2041 targ_32_big=yes
2042 targ_64_little=yes
2043 targ_64_big=yes
6df6da4a 2044 all_targets=yes
193a53d9 2045 else
fbfba508
ILT
2046 . ${srcdir}/configure.tgt
2047
2048 if test "$targ_obj" = "UNKNOWN"; then
6df6da4a
ILT
2049 { { echo "$as_me:$LINENO: error: \"unsupported target $targ\"" >&5
2050echo "$as_me: error: \"unsupported target $targ\"" >&2;}
193a53d9 2051 { (exit 1); exit 1; }; }
fbfba508
ILT
2052 else
2053 targetobjs="$targetobjs ${targ_obj}.\$(OBJEXT)"
60b2b4e7
ILT
2054 if test "$targ_extra_obj" != ""; then
2055 targetobjs="$targetobjs ${targ_extra_obj}.\$(OBJEXT)"
2056 fi
f5314dd5
DM
2057 if test "$targ_size" = "32" -o "$targ_extra_size" = "32"; then
2058 if test "$targ_big_endian" = "true" \
2059 -o "$targ_extra_big_endian" = "true"; then
2060 targ_32_big=yes
2061 fi
2062 if test "$targ_big_endian" = "false" \
2063 -o "$targ_extra_big_endian" = "false"; then
2064 targ_32_little=yes
2065 fi
2066 fi
2067 if test "$targ_size" = "64" -o "$targ_extra_size" = "64"; then
2068 if test "$targ_big_endian" = "true" \
2069 -o "$targ_extra_big_endian" = "true"; then
2070 targ_64_big=yes
2071 fi
2072 if test "$targ_big_endian" = "false" \
2073 -o "$targ_extra_big_endian" = "false"; then
2074 targ_64_little=yes
2075 fi
fbfba508
ILT
2076 fi
2077
2078 if test "$target" = "$targ"; then
2079 default_machine=$targ_machine
2080 default_size=$targ_size
2081 default_big_endian=$targ_big_endian
36959681 2082 default_osabi=$targ_osabi
fbfba508
ILT
2083 fi
2084 fi
193a53d9
ILT
2085 fi
2086done
2087
2088if test -n "$targ_32_little"; then
2089
2090cat >>confdefs.h <<\_ACEOF
2091#define HAVE_TARGET_32_LITTLE 1
2092_ACEOF
2093
2094fi
2095if test -n "$targ_32_big"; then
2096
2097cat >>confdefs.h <<\_ACEOF
2098#define HAVE_TARGET_32_BIG 1
2099_ACEOF
2100
2101fi
2102if test -n "$targ_64_little"; then
2103
2104cat >>confdefs.h <<\_ACEOF
2105#define HAVE_TARGET_64_LITTLE 1
2106_ACEOF
2107
2108fi
2109if test -n "$targ_64_big"; then
2110
2111cat >>confdefs.h <<\_ACEOF
2112#define HAVE_TARGET_64_BIG 1
2113_ACEOF
2114
2115fi
2116
6df6da4a
ILT
2117if test -n "$all_targets"; then
2118 TARGETOBJS='$(ALL_TARGETOBJS)'
2119else
2120 TARGETOBJS="$targetobjs"
2121fi
2122
2123
fbfba508
ILT
2124
2125cat >>confdefs.h <<_ACEOF
2126#define GOLD_DEFAULT_MACHINE $default_machine
2127_ACEOF
2128
2129
2130cat >>confdefs.h <<_ACEOF
2131#define GOLD_DEFAULT_SIZE $default_size
2132_ACEOF
2133
2134
2135cat >>confdefs.h <<_ACEOF
2136#define GOLD_DEFAULT_BIG_ENDIAN $default_big_endian
2137_ACEOF
2138
2139
36959681
ILT
2140cat >>confdefs.h <<_ACEOF
2141#define GOLD_DEFAULT_OSABI $default_osabi
2142_ACEOF
2143
2144
bae7f79e
ILT
2145ac_ext=c
2146ac_cpp='$CPP $CPPFLAGS'
2147ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2148ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2149ac_compiler_gnu=$ac_cv_c_compiler_gnu
2150if test -n "$ac_tool_prefix"; then
2151 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2152set dummy ${ac_tool_prefix}gcc; ac_word=$2
2153echo "$as_me:$LINENO: checking for $ac_word" >&5
2154echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2155if test "${ac_cv_prog_CC+set}" = set; then
2156 echo $ECHO_N "(cached) $ECHO_C" >&6
2157else
2158 if test -n "$CC"; then
2159 ac_cv_prog_CC="$CC" # Let the user override the test.
2160else
2161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2162for as_dir in $PATH
2163do
2164 IFS=$as_save_IFS
2165 test -z "$as_dir" && as_dir=.
2166 for ac_exec_ext in '' $ac_executable_extensions; do
2167 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2168 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2170 break 2
2171 fi
2172done
2173done
2174
2175fi
2176fi
2177CC=$ac_cv_prog_CC
2178if test -n "$CC"; then
2179 echo "$as_me:$LINENO: result: $CC" >&5
2180echo "${ECHO_T}$CC" >&6
2181else
2182 echo "$as_me:$LINENO: result: no" >&5
2183echo "${ECHO_T}no" >&6
2184fi
2185
2186fi
2187if test -z "$ac_cv_prog_CC"; then
2188 ac_ct_CC=$CC
2189 # Extract the first word of "gcc", so it can be a program name with args.
2190set dummy gcc; ac_word=$2
2191echo "$as_me:$LINENO: checking for $ac_word" >&5
2192echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2193if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2194 echo $ECHO_N "(cached) $ECHO_C" >&6
2195else
2196 if test -n "$ac_ct_CC"; then
2197 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2198else
2199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2200for as_dir in $PATH
2201do
2202 IFS=$as_save_IFS
2203 test -z "$as_dir" && as_dir=.
2204 for ac_exec_ext in '' $ac_executable_extensions; do
2205 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2206 ac_cv_prog_ac_ct_CC="gcc"
2207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2208 break 2
2209 fi
2210done
2211done
2212
2213fi
2214fi
2215ac_ct_CC=$ac_cv_prog_ac_ct_CC
2216if test -n "$ac_ct_CC"; then
2217 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2218echo "${ECHO_T}$ac_ct_CC" >&6
2219else
2220 echo "$as_me:$LINENO: result: no" >&5
2221echo "${ECHO_T}no" >&6
2222fi
2223
2224 CC=$ac_ct_CC
2225else
2226 CC="$ac_cv_prog_CC"
2227fi
2228
2229if test -z "$CC"; then
2230 if test -n "$ac_tool_prefix"; then
2231 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2232set dummy ${ac_tool_prefix}cc; ac_word=$2
2233echo "$as_me:$LINENO: checking for $ac_word" >&5
2234echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2235if test "${ac_cv_prog_CC+set}" = set; then
2236 echo $ECHO_N "(cached) $ECHO_C" >&6
2237else
2238 if test -n "$CC"; then
2239 ac_cv_prog_CC="$CC" # Let the user override the test.
2240else
2241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2242for as_dir in $PATH
2243do
2244 IFS=$as_save_IFS
2245 test -z "$as_dir" && as_dir=.
2246 for ac_exec_ext in '' $ac_executable_extensions; do
2247 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2248 ac_cv_prog_CC="${ac_tool_prefix}cc"
2249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2250 break 2
2251 fi
2252done
2253done
2254
2255fi
2256fi
2257CC=$ac_cv_prog_CC
2258if test -n "$CC"; then
2259 echo "$as_me:$LINENO: result: $CC" >&5
2260echo "${ECHO_T}$CC" >&6
2261else
2262 echo "$as_me:$LINENO: result: no" >&5
2263echo "${ECHO_T}no" >&6
2264fi
2265
2266fi
2267if test -z "$ac_cv_prog_CC"; then
2268 ac_ct_CC=$CC
2269 # Extract the first word of "cc", so it can be a program name with args.
2270set dummy cc; ac_word=$2
2271echo "$as_me:$LINENO: checking for $ac_word" >&5
2272echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2273if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2274 echo $ECHO_N "(cached) $ECHO_C" >&6
2275else
2276 if test -n "$ac_ct_CC"; then
2277 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2278else
2279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2280for as_dir in $PATH
2281do
2282 IFS=$as_save_IFS
2283 test -z "$as_dir" && as_dir=.
2284 for ac_exec_ext in '' $ac_executable_extensions; do
2285 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2286 ac_cv_prog_ac_ct_CC="cc"
2287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2288 break 2
2289 fi
2290done
2291done
2292
2293fi
2294fi
2295ac_ct_CC=$ac_cv_prog_ac_ct_CC
2296if test -n "$ac_ct_CC"; then
2297 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2298echo "${ECHO_T}$ac_ct_CC" >&6
2299else
2300 echo "$as_me:$LINENO: result: no" >&5
2301echo "${ECHO_T}no" >&6
2302fi
2303
2304 CC=$ac_ct_CC
2305else
2306 CC="$ac_cv_prog_CC"
2307fi
2308
2309fi
2310if test -z "$CC"; then
2311 # Extract the first word of "cc", so it can be a program name with args.
2312set dummy cc; ac_word=$2
2313echo "$as_me:$LINENO: checking for $ac_word" >&5
2314echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2315if test "${ac_cv_prog_CC+set}" = set; then
2316 echo $ECHO_N "(cached) $ECHO_C" >&6
2317else
2318 if test -n "$CC"; then
2319 ac_cv_prog_CC="$CC" # Let the user override the test.
2320else
2321 ac_prog_rejected=no
2322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2323for as_dir in $PATH
2324do
2325 IFS=$as_save_IFS
2326 test -z "$as_dir" && as_dir=.
2327 for ac_exec_ext in '' $ac_executable_extensions; do
2328 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2329 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2330 ac_prog_rejected=yes
2331 continue
2332 fi
2333 ac_cv_prog_CC="cc"
2334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2335 break 2
2336 fi
2337done
2338done
2339
2340if test $ac_prog_rejected = yes; then
2341 # We found a bogon in the path, so make sure we never use it.
2342 set dummy $ac_cv_prog_CC
2343 shift
2344 if test $# != 0; then
2345 # We chose a different compiler from the bogus one.
2346 # However, it has the same basename, so the bogon will be chosen
2347 # first if we set CC to just the basename; use the full file name.
2348 shift
2349 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2350 fi
2351fi
2352fi
2353fi
2354CC=$ac_cv_prog_CC
2355if test -n "$CC"; then
2356 echo "$as_me:$LINENO: result: $CC" >&5
2357echo "${ECHO_T}$CC" >&6
2358else
2359 echo "$as_me:$LINENO: result: no" >&5
2360echo "${ECHO_T}no" >&6
2361fi
2362
2363fi
2364if test -z "$CC"; then
2365 if test -n "$ac_tool_prefix"; then
2366 for ac_prog in cl
2367 do
2368 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2369set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2370echo "$as_me:$LINENO: checking for $ac_word" >&5
2371echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2372if test "${ac_cv_prog_CC+set}" = set; then
2373 echo $ECHO_N "(cached) $ECHO_C" >&6
2374else
2375 if test -n "$CC"; then
2376 ac_cv_prog_CC="$CC" # Let the user override the test.
2377else
2378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2379for as_dir in $PATH
2380do
2381 IFS=$as_save_IFS
2382 test -z "$as_dir" && as_dir=.
2383 for ac_exec_ext in '' $ac_executable_extensions; do
2384 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2385 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2387 break 2
2388 fi
2389done
2390done
2391
2392fi
2393fi
2394CC=$ac_cv_prog_CC
2395if test -n "$CC"; then
2396 echo "$as_me:$LINENO: result: $CC" >&5
2397echo "${ECHO_T}$CC" >&6
2398else
2399 echo "$as_me:$LINENO: result: no" >&5
2400echo "${ECHO_T}no" >&6
2401fi
2402
2403 test -n "$CC" && break
2404 done
2405fi
2406if test -z "$CC"; then
2407 ac_ct_CC=$CC
2408 for ac_prog in cl
2409do
2410 # Extract the first word of "$ac_prog", so it can be a program name with args.
2411set dummy $ac_prog; ac_word=$2
2412echo "$as_me:$LINENO: checking for $ac_word" >&5
2413echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2414if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2415 echo $ECHO_N "(cached) $ECHO_C" >&6
2416else
2417 if test -n "$ac_ct_CC"; then
2418 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2419else
2420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2421for as_dir in $PATH
2422do
2423 IFS=$as_save_IFS
2424 test -z "$as_dir" && as_dir=.
2425 for ac_exec_ext in '' $ac_executable_extensions; do
2426 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2427 ac_cv_prog_ac_ct_CC="$ac_prog"
2428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2429 break 2
2430 fi
2431done
2432done
2433
2434fi
2435fi
2436ac_ct_CC=$ac_cv_prog_ac_ct_CC
2437if test -n "$ac_ct_CC"; then
2438 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2439echo "${ECHO_T}$ac_ct_CC" >&6
2440else
2441 echo "$as_me:$LINENO: result: no" >&5
2442echo "${ECHO_T}no" >&6
2443fi
2444
2445 test -n "$ac_ct_CC" && break
2446done
2447
2448 CC=$ac_ct_CC
2449fi
2450
2451fi
2452
2453
1d1f116d
CD
2454test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2455echo "$as_me: error: in \`$ac_pwd':" >&2;}
2456{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
bae7f79e
ILT
2457See \`config.log' for more details." >&5
2458echo "$as_me: error: no acceptable C compiler found in \$PATH
2459See \`config.log' for more details." >&2;}
1d1f116d 2460 { (exit 1); exit 1; }; }; }
bae7f79e
ILT
2461
2462# Provide some information about the compiler.
2463echo "$as_me:$LINENO:" \
2464 "checking for C compiler version" >&5
2465ac_compiler=`set X $ac_compile; echo $2`
2466{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2467 (eval $ac_compiler --version </dev/null >&5) 2>&5
2468 ac_status=$?
2469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470 (exit $ac_status); }
2471{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2472 (eval $ac_compiler -v </dev/null >&5) 2>&5
2473 ac_status=$?
2474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475 (exit $ac_status); }
2476{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2477 (eval $ac_compiler -V </dev/null >&5) 2>&5
2478 ac_status=$?
2479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480 (exit $ac_status); }
2481
2482cat >conftest.$ac_ext <<_ACEOF
2483/* confdefs.h. */
2484_ACEOF
2485cat confdefs.h >>conftest.$ac_ext
2486cat >>conftest.$ac_ext <<_ACEOF
2487/* end confdefs.h. */
2488
2489int
2490main ()
2491{
2492
2493 ;
2494 return 0;
2495}
2496_ACEOF
2497ac_clean_files_save=$ac_clean_files
2498ac_clean_files="$ac_clean_files a.out a.exe b.out"
2499# Try to create an executable without -o first, disregard a.out.
2500# It will help us diagnose broken compilers, and finding out an intuition
2501# of exeext.
2502echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2503echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2504ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2505if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2506 (eval $ac_link_default) 2>&5
2507 ac_status=$?
2508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509 (exit $ac_status); }; then
2510 # Find the output, starting from the most likely. This scheme is
2511# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2512# resort.
2513
2514# Be careful to initialize this variable, since it used to be cached.
2515# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2516ac_cv_exeext=
2517# b.out is created by i960 compilers.
2518for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2519do
2520 test -f "$ac_file" || continue
2521 case $ac_file in
2522 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2523 ;;
2524 conftest.$ac_ext )
2525 # This is the source file.
2526 ;;
2527 [ab].out )
2528 # We found the default executable, but exeext='' is most
2529 # certainly right.
2530 break;;
2531 *.* )
2532 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2533 # FIXME: I believe we export ac_cv_exeext for Libtool,
2534 # but it would be cool to find out if it's true. Does anybody
2535 # maintain Libtool? --akim.
2536 export ac_cv_exeext
2537 break;;
2538 * )
2539 break;;
2540 esac
2541done
2542else
2543 echo "$as_me: failed program was:" >&5
2544sed 's/^/| /' conftest.$ac_ext >&5
2545
1d1f116d
CD
2546{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2547echo "$as_me: error: in \`$ac_pwd':" >&2;}
bae7f79e
ILT
2548{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2549See \`config.log' for more details." >&5
2550echo "$as_me: error: C compiler cannot create executables
2551See \`config.log' for more details." >&2;}
1d1f116d 2552 { (exit 77); exit 77; }; }; }
bae7f79e
ILT
2553fi
2554
2555ac_exeext=$ac_cv_exeext
2556echo "$as_me:$LINENO: result: $ac_file" >&5
2557echo "${ECHO_T}$ac_file" >&6
2558
2559# Check the compiler produces executables we can run. If not, either
2560# the compiler is broken, or we cross compile.
2561echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2562echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2563# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2564# If not cross compiling, check that we can run a simple program.
2565if test "$cross_compiling" != yes; then
2566 if { ac_try='./$ac_file'
2567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2568 (eval $ac_try) 2>&5
2569 ac_status=$?
2570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571 (exit $ac_status); }; }; then
2572 cross_compiling=no
2573 else
2574 if test "$cross_compiling" = maybe; then
2575 cross_compiling=yes
2576 else
1d1f116d
CD
2577 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2578echo "$as_me: error: in \`$ac_pwd':" >&2;}
2579{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
bae7f79e
ILT
2580If you meant to cross compile, use \`--host'.
2581See \`config.log' for more details." >&5
2582echo "$as_me: error: cannot run C compiled programs.
2583If you meant to cross compile, use \`--host'.
2584See \`config.log' for more details." >&2;}
1d1f116d 2585 { (exit 1); exit 1; }; }; }
bae7f79e
ILT
2586 fi
2587 fi
2588fi
2589echo "$as_me:$LINENO: result: yes" >&5
2590echo "${ECHO_T}yes" >&6
2591
2592rm -f a.out a.exe conftest$ac_cv_exeext b.out
2593ac_clean_files=$ac_clean_files_save
2594# Check the compiler produces executables we can run. If not, either
2595# the compiler is broken, or we cross compile.
2596echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2597echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2598echo "$as_me:$LINENO: result: $cross_compiling" >&5
2599echo "${ECHO_T}$cross_compiling" >&6
2600
2601echo "$as_me:$LINENO: checking for suffix of executables" >&5
2602echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2603if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2604 (eval $ac_link) 2>&5
2605 ac_status=$?
2606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607 (exit $ac_status); }; then
2608 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2609# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2610# work properly (i.e., refer to `conftest.exe'), while it won't with
2611# `rm'.
2612for ac_file in conftest.exe conftest conftest.*; do
2613 test -f "$ac_file" || continue
2614 case $ac_file in
2615 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2616 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2617 export ac_cv_exeext
2618 break;;
2619 * ) break;;
2620 esac
2621done
2622else
1d1f116d
CD
2623 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2624echo "$as_me: error: in \`$ac_pwd':" >&2;}
2625{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
bae7f79e
ILT
2626See \`config.log' for more details." >&5
2627echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2628See \`config.log' for more details." >&2;}
1d1f116d 2629 { (exit 1); exit 1; }; }; }
bae7f79e
ILT
2630fi
2631
2632rm -f conftest$ac_cv_exeext
2633echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2634echo "${ECHO_T}$ac_cv_exeext" >&6
2635
2636rm -f conftest.$ac_ext
2637EXEEXT=$ac_cv_exeext
2638ac_exeext=$EXEEXT
2639echo "$as_me:$LINENO: checking for suffix of object files" >&5
2640echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2641if test "${ac_cv_objext+set}" = set; then
2642 echo $ECHO_N "(cached) $ECHO_C" >&6
2643else
2644 cat >conftest.$ac_ext <<_ACEOF
2645/* confdefs.h. */
2646_ACEOF
2647cat confdefs.h >>conftest.$ac_ext
2648cat >>conftest.$ac_ext <<_ACEOF
2649/* end confdefs.h. */
2650
2651int
2652main ()
2653{
2654
2655 ;
2656 return 0;
2657}
2658_ACEOF
2659rm -f conftest.o conftest.obj
2660if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2661 (eval $ac_compile) 2>&5
2662 ac_status=$?
2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664 (exit $ac_status); }; then
2665 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2666 case $ac_file in
2667 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2668 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2669 break;;
2670 esac
2671done
2672else
2673 echo "$as_me: failed program was:" >&5
2674sed 's/^/| /' conftest.$ac_ext >&5
2675
1d1f116d
CD
2676{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2677echo "$as_me: error: in \`$ac_pwd':" >&2;}
bae7f79e
ILT
2678{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2679See \`config.log' for more details." >&5
2680echo "$as_me: error: cannot compute suffix of object files: cannot compile
2681See \`config.log' for more details." >&2;}
1d1f116d 2682 { (exit 1); exit 1; }; }; }
bae7f79e
ILT
2683fi
2684
2685rm -f conftest.$ac_cv_objext conftest.$ac_ext
2686fi
2687echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2688echo "${ECHO_T}$ac_cv_objext" >&6
2689OBJEXT=$ac_cv_objext
2690ac_objext=$OBJEXT
2691echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2692echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2693if test "${ac_cv_c_compiler_gnu+set}" = set; then
2694 echo $ECHO_N "(cached) $ECHO_C" >&6
2695else
2696 cat >conftest.$ac_ext <<_ACEOF
2697/* confdefs.h. */
2698_ACEOF
2699cat confdefs.h >>conftest.$ac_ext
2700cat >>conftest.$ac_ext <<_ACEOF
2701/* end confdefs.h. */
2702
2703int
2704main ()
2705{
2706#ifndef __GNUC__
2707 choke me
2708#endif
2709
2710 ;
2711 return 0;
2712}
2713_ACEOF
2714rm -f conftest.$ac_objext
2715if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2716 (eval $ac_compile) 2>conftest.er1
2717 ac_status=$?
2718 grep -v '^ *+' conftest.er1 >conftest.err
2719 rm -f conftest.er1
2720 cat conftest.err >&5
2721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722 (exit $ac_status); } &&
b0074644
ILT
2723 { ac_try='test -z "$ac_c_werror_flag"
2724 || test ! -s conftest.err'
bae7f79e
ILT
2725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2726 (eval $ac_try) 2>&5
2727 ac_status=$?
2728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729 (exit $ac_status); }; } &&
2730 { ac_try='test -s conftest.$ac_objext'
2731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2732 (eval $ac_try) 2>&5
2733 ac_status=$?
2734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735 (exit $ac_status); }; }; then
2736 ac_compiler_gnu=yes
2737else
2738 echo "$as_me: failed program was:" >&5
2739sed 's/^/| /' conftest.$ac_ext >&5
2740
2741ac_compiler_gnu=no
2742fi
2743rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2744ac_cv_c_compiler_gnu=$ac_compiler_gnu
2745
2746fi
2747echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2748echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2749GCC=`test $ac_compiler_gnu = yes && echo yes`
2750ac_test_CFLAGS=${CFLAGS+set}
2751ac_save_CFLAGS=$CFLAGS
2752CFLAGS="-g"
2753echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2754echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2755if test "${ac_cv_prog_cc_g+set}" = set; then
2756 echo $ECHO_N "(cached) $ECHO_C" >&6
2757else
2758 cat >conftest.$ac_ext <<_ACEOF
2759/* confdefs.h. */
2760_ACEOF
2761cat confdefs.h >>conftest.$ac_ext
2762cat >>conftest.$ac_ext <<_ACEOF
2763/* end confdefs.h. */
2764
2765int
2766main ()
2767{
2768
2769 ;
2770 return 0;
2771}
2772_ACEOF
2773rm -f conftest.$ac_objext
2774if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2775 (eval $ac_compile) 2>conftest.er1
2776 ac_status=$?
2777 grep -v '^ *+' conftest.er1 >conftest.err
2778 rm -f conftest.er1
2779 cat conftest.err >&5
2780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781 (exit $ac_status); } &&
b0074644
ILT
2782 { ac_try='test -z "$ac_c_werror_flag"
2783 || test ! -s conftest.err'
bae7f79e
ILT
2784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2785 (eval $ac_try) 2>&5
2786 ac_status=$?
2787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788 (exit $ac_status); }; } &&
2789 { ac_try='test -s conftest.$ac_objext'
2790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2791 (eval $ac_try) 2>&5
2792 ac_status=$?
2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); }; }; then
2795 ac_cv_prog_cc_g=yes
2796else
2797 echo "$as_me: failed program was:" >&5
2798sed 's/^/| /' conftest.$ac_ext >&5
2799
2800ac_cv_prog_cc_g=no
2801fi
2802rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2803fi
2804echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2805echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2806if test "$ac_test_CFLAGS" = set; then
2807 CFLAGS=$ac_save_CFLAGS
2808elif test $ac_cv_prog_cc_g = yes; then
2809 if test "$GCC" = yes; then
2810 CFLAGS="-g -O2"
2811 else
2812 CFLAGS="-g"
2813 fi
2814else
2815 if test "$GCC" = yes; then
2816 CFLAGS="-O2"
2817 else
2818 CFLAGS=
2819 fi
2820fi
2821echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2822echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2823if test "${ac_cv_prog_cc_stdc+set}" = set; then
2824 echo $ECHO_N "(cached) $ECHO_C" >&6
2825else
2826 ac_cv_prog_cc_stdc=no
2827ac_save_CC=$CC
2828cat >conftest.$ac_ext <<_ACEOF
2829/* confdefs.h. */
2830_ACEOF
2831cat confdefs.h >>conftest.$ac_ext
2832cat >>conftest.$ac_ext <<_ACEOF
2833/* end confdefs.h. */
2834#include <stdarg.h>
2835#include <stdio.h>
2836#include <sys/types.h>
2837#include <sys/stat.h>
2838/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2839struct buf { int x; };
2840FILE * (*rcsopen) (struct buf *, struct stat *, int);
2841static char *e (p, i)
2842 char **p;
2843 int i;
2844{
2845 return p[i];
2846}
2847static char *f (char * (*g) (char **, int), char **p, ...)
2848{
2849 char *s;
2850 va_list v;
2851 va_start (v,p);
2852 s = g (p, va_arg (v,int));
2853 va_end (v);
2854 return s;
2855}
2856
2857/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2858 function prototypes and stuff, but not '\xHH' hex character constants.
2859 These don't provoke an error unfortunately, instead are silently treated
2860 as 'x'. The following induces an error, until -std1 is added to get
2861 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2862 array size at least. It's necessary to write '\x00'==0 to get something
2863 that's true only with -std1. */
2864int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2865
2866int test (int i, double x);
2867struct s1 {int (*f) (int a);};
2868struct s2 {int (*f) (double a);};
2869int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2870int argc;
2871char **argv;
2872int
2873main ()
2874{
2875return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2876 ;
2877 return 0;
2878}
2879_ACEOF
2880# Don't try gcc -ansi; that turns off useful extensions and
2881# breaks some systems' header files.
2882# AIX -qlanglvl=ansi
2883# Ultrix and OSF/1 -std1
2884# HP-UX 10.20 and later -Ae
2885# HP-UX older versions -Aa -D_HPUX_SOURCE
2886# SVR4 -Xc -D__EXTENSIONS__
2887for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2888do
2889 CC="$ac_save_CC $ac_arg"
2890 rm -f conftest.$ac_objext
2891if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2892 (eval $ac_compile) 2>conftest.er1
2893 ac_status=$?
2894 grep -v '^ *+' conftest.er1 >conftest.err
2895 rm -f conftest.er1
2896 cat conftest.err >&5
2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); } &&
b0074644
ILT
2899 { ac_try='test -z "$ac_c_werror_flag"
2900 || test ! -s conftest.err'
bae7f79e
ILT
2901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2902 (eval $ac_try) 2>&5
2903 ac_status=$?
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); }; } &&
2906 { ac_try='test -s conftest.$ac_objext'
2907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2908 (eval $ac_try) 2>&5
2909 ac_status=$?
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); }; }; then
2912 ac_cv_prog_cc_stdc=$ac_arg
2913break
2914else
2915 echo "$as_me: failed program was:" >&5
2916sed 's/^/| /' conftest.$ac_ext >&5
2917
2918fi
2919rm -f conftest.err conftest.$ac_objext
2920done
2921rm -f conftest.$ac_ext conftest.$ac_objext
2922CC=$ac_save_CC
2923
2924fi
2925
2926case "x$ac_cv_prog_cc_stdc" in
2927 x|xno)
2928 echo "$as_me:$LINENO: result: none needed" >&5
2929echo "${ECHO_T}none needed" >&6 ;;
2930 *)
2931 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2932echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2933 CC="$CC $ac_cv_prog_cc_stdc" ;;
2934esac
2935
2936# Some people use a C++ compiler to compile C. Since we use `exit',
2937# in C++ we need to declare it. In case someone uses the same compiler
2938# for both compiling C and C++ we need to have the C++ compiler decide
2939# the declaration of exit, since it's the most demanding environment.
2940cat >conftest.$ac_ext <<_ACEOF
2941#ifndef __cplusplus
2942 choke me
2943#endif
2944_ACEOF
2945rm -f conftest.$ac_objext
2946if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2947 (eval $ac_compile) 2>conftest.er1
2948 ac_status=$?
2949 grep -v '^ *+' conftest.er1 >conftest.err
2950 rm -f conftest.er1
2951 cat conftest.err >&5
2952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953 (exit $ac_status); } &&
b0074644
ILT
2954 { ac_try='test -z "$ac_c_werror_flag"
2955 || test ! -s conftest.err'
bae7f79e
ILT
2956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2957 (eval $ac_try) 2>&5
2958 ac_status=$?
2959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960 (exit $ac_status); }; } &&
2961 { ac_try='test -s conftest.$ac_objext'
2962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2963 (eval $ac_try) 2>&5
2964 ac_status=$?
2965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966 (exit $ac_status); }; }; then
2967 for ac_declaration in \
2968 '' \
2969 'extern "C" void std::exit (int) throw (); using std::exit;' \
2970 'extern "C" void std::exit (int); using std::exit;' \
2971 'extern "C" void exit (int) throw ();' \
2972 'extern "C" void exit (int);' \
2973 'void exit (int);'
2974do
2975 cat >conftest.$ac_ext <<_ACEOF
2976/* confdefs.h. */
2977_ACEOF
2978cat confdefs.h >>conftest.$ac_ext
2979cat >>conftest.$ac_ext <<_ACEOF
2980/* end confdefs.h. */
2981$ac_declaration
2982#include <stdlib.h>
2983int
2984main ()
2985{
2986exit (42);
2987 ;
2988 return 0;
2989}
2990_ACEOF
2991rm -f conftest.$ac_objext
2992if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2993 (eval $ac_compile) 2>conftest.er1
2994 ac_status=$?
2995 grep -v '^ *+' conftest.er1 >conftest.err
2996 rm -f conftest.er1
2997 cat conftest.err >&5
2998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999 (exit $ac_status); } &&
b0074644
ILT
3000 { ac_try='test -z "$ac_c_werror_flag"
3001 || test ! -s conftest.err'
bae7f79e
ILT
3002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3003 (eval $ac_try) 2>&5
3004 ac_status=$?
3005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3006 (exit $ac_status); }; } &&
3007 { ac_try='test -s conftest.$ac_objext'
3008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3009 (eval $ac_try) 2>&5
3010 ac_status=$?
3011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012 (exit $ac_status); }; }; then
3013 :
3014else
3015 echo "$as_me: failed program was:" >&5
3016sed 's/^/| /' conftest.$ac_ext >&5
3017
3018continue
3019fi
3020rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3021 cat >conftest.$ac_ext <<_ACEOF
3022/* confdefs.h. */
3023_ACEOF
3024cat confdefs.h >>conftest.$ac_ext
3025cat >>conftest.$ac_ext <<_ACEOF
3026/* end confdefs.h. */
3027$ac_declaration
3028int
3029main ()
3030{
3031exit (42);
3032 ;
3033 return 0;
3034}
3035_ACEOF
3036rm -f conftest.$ac_objext
3037if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3038 (eval $ac_compile) 2>conftest.er1
3039 ac_status=$?
3040 grep -v '^ *+' conftest.er1 >conftest.err
3041 rm -f conftest.er1
3042 cat conftest.err >&5
3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 (exit $ac_status); } &&
b0074644
ILT
3045 { ac_try='test -z "$ac_c_werror_flag"
3046 || test ! -s conftest.err'
bae7f79e
ILT
3047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3048 (eval $ac_try) 2>&5
3049 ac_status=$?
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); }; } &&
3052 { ac_try='test -s conftest.$ac_objext'
3053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3054 (eval $ac_try) 2>&5
3055 ac_status=$?
3056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057 (exit $ac_status); }; }; then
3058 break
3059else
3060 echo "$as_me: failed program was:" >&5
3061sed 's/^/| /' conftest.$ac_ext >&5
3062
3063fi
3064rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3065done
3066rm -f conftest*
3067if test -n "$ac_declaration"; then
3068 echo '#ifdef __cplusplus' >>confdefs.h
3069 echo $ac_declaration >>confdefs.h
3070 echo '#endif' >>confdefs.h
3071fi
3072
3073else
3074 echo "$as_me: failed program was:" >&5
3075sed 's/^/| /' conftest.$ac_ext >&5
3076
3077fi
3078rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3079ac_ext=c
3080ac_cpp='$CPP $CPPFLAGS'
3081ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3082ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3083ac_compiler_gnu=$ac_cv_c_compiler_gnu
3084DEPDIR="${am__leading_dot}deps"
3085
3086 ac_config_commands="$ac_config_commands depfiles"
3087
3088
3089am_make=${MAKE-make}
3090cat > confinc << 'END'
3091am__doit:
3092 @echo done
3093.PHONY: am__doit
3094END
3095# If we don't find an include directive, just comment out the code.
3096echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3097echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3098am__include="#"
3099am__quote=
3100_am_result=none
3101# First try GNU make style include.
3102echo "include confinc" > confmf
3103# We grep out `Entering directory' and `Leaving directory'
3104# messages which can occur if `w' ends up in MAKEFLAGS.
3105# In particular we don't look at `^make:' because GNU make might
3106# be invoked under some other name (usually "gmake"), in which
3107# case it prints its new name instead of `make'.
3108if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3109 am__include=include
3110 am__quote=
3111 _am_result=GNU
3112fi
3113# Now try BSD make style include.
3114if test "$am__include" = "#"; then
3115 echo '.include "confinc"' > confmf
3116 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3117 am__include=.include
3118 am__quote="\""
3119 _am_result=BSD
3120 fi
3121fi
3122
3123
3124echo "$as_me:$LINENO: result: $_am_result" >&5
3125echo "${ECHO_T}$_am_result" >&6
3126rm -f confinc confmf
3127
3128# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3129if test "${enable_dependency_tracking+set}" = set; then
3130 enableval="$enable_dependency_tracking"
3131
3132fi;
3133if test "x$enable_dependency_tracking" != xno; then
3134 am_depcomp="$ac_aux_dir/depcomp"
3135 AMDEPBACKSLASH='\'
3136fi
3137
3138
3139if test "x$enable_dependency_tracking" != xno; then
3140 AMDEP_TRUE=
3141 AMDEP_FALSE='#'
3142else
3143 AMDEP_TRUE='#'
3144 AMDEP_FALSE=
3145fi
3146
3147
3148
3149
3150depcc="$CC" am_compiler_list=
3151
3152echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3153echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3154if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3155 echo $ECHO_N "(cached) $ECHO_C" >&6
3156else
3157 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3158 # We make a subdir and do the tests there. Otherwise we can end up
3159 # making bogus files that we don't know about and never remove. For
3160 # instance it was reported that on HP-UX the gcc test will end up
3161 # making a dummy file named `D' -- because `-MD' means `put the output
3162 # in D'.
3163 mkdir conftest.dir
3164 # Copy depcomp to subdir because otherwise we won't find it if we're
3165 # using a relative directory.
3166 cp "$am_depcomp" conftest.dir
3167 cd conftest.dir
3168 # We will build objects and dependencies in a subdirectory because
3169 # it helps to detect inapplicable dependency modes. For instance
3170 # both Tru64's cc and ICC support -MD to output dependencies as a
3171 # side effect of compilation, but ICC will put the dependencies in
3172 # the current directory while Tru64 will put them in the object
3173 # directory.
3174 mkdir sub
3175
3176 am_cv_CC_dependencies_compiler_type=none
3177 if test "$am_compiler_list" = ""; then
3178 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3179 fi
3180 for depmode in $am_compiler_list; do
3181 # Setup a source with many dependencies, because some compilers
3182 # like to wrap large dependency lists on column 80 (with \), and
3183 # we should not choose a depcomp mode which is confused by this.
3184 #
3185 # We need to recreate these files for each test, as the compiler may
3186 # overwrite some of them when testing with obscure command lines.
3187 # This happens at least with the AIX C compiler.
3188 : > sub/conftest.c
3189 for i in 1 2 3 4 5 6; do
3190 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3191 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3192 # Solaris 8's {/usr,}/bin/sh.
3193 touch sub/conftst$i.h
3194 done
3195 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3196
3197 case $depmode in
3198 nosideeffect)
3199 # after this tag, mechanisms are not by side-effect, so they'll
3200 # only be used when explicitly requested
3201 if test "x$enable_dependency_tracking" = xyes; then
3202 continue
3203 else
3204 break
3205 fi
3206 ;;
3207 none) break ;;
3208 esac
3209 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3210 # mode. It turns out that the SunPro C++ compiler does not properly
3211 # handle `-M -o', and we need to detect this.
3212 if depmode=$depmode \
3213 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3214 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3215 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3216 >/dev/null 2>conftest.err &&
3217 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3218 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3219 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3220 # icc doesn't choke on unknown options, it will just issue warnings
3221 # or remarks (even with -Werror). So we grep stderr for any message
3222 # that says an option was ignored or not supported.
3223 # When given -MP, icc 7.0 and 7.1 complain thusly:
3224 # icc: Command line warning: ignoring option '-M'; no argument required
3225 # The diagnosis changed in icc 8.0:
3226 # icc: Command line remark: option '-MP' not supported
3227 if (grep 'ignoring option' conftest.err ||
3228 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3229 am_cv_CC_dependencies_compiler_type=$depmode
3230 break
3231 fi
3232 fi
3233 done
3234
3235 cd ..
3236 rm -rf conftest.dir
3237else
3238 am_cv_CC_dependencies_compiler_type=none
3239fi
3240
3241fi
3242echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3243echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3244CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3245
3246
3247
3248if
3249 test "x$enable_dependency_tracking" != xno \
3250 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3251 am__fastdepCC_TRUE=
3252 am__fastdepCC_FALSE='#'
3253else
3254 am__fastdepCC_TRUE='#'
3255 am__fastdepCC_FALSE=
3256fi
3257
3258
3259ac_ext=cc
3260ac_cpp='$CXXCPP $CPPFLAGS'
3261ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3262ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3263ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3264if test -n "$ac_tool_prefix"; then
3265 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3266 do
3267 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3268set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3269echo "$as_me:$LINENO: checking for $ac_word" >&5
3270echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3271if test "${ac_cv_prog_CXX+set}" = set; then
3272 echo $ECHO_N "(cached) $ECHO_C" >&6
3273else
3274 if test -n "$CXX"; then
3275 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3276else
3277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3278for as_dir in $PATH
3279do
3280 IFS=$as_save_IFS
3281 test -z "$as_dir" && as_dir=.
3282 for ac_exec_ext in '' $ac_executable_extensions; do
3283 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3284 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3286 break 2
3287 fi
3288done
3289done
3290
3291fi
3292fi
3293CXX=$ac_cv_prog_CXX
3294if test -n "$CXX"; then
3295 echo "$as_me:$LINENO: result: $CXX" >&5
3296echo "${ECHO_T}$CXX" >&6
3297else
3298 echo "$as_me:$LINENO: result: no" >&5
3299echo "${ECHO_T}no" >&6
3300fi
3301
3302 test -n "$CXX" && break
3303 done
3304fi
3305if test -z "$CXX"; then
3306 ac_ct_CXX=$CXX
3307 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3308do
3309 # Extract the first word of "$ac_prog", so it can be a program name with args.
3310set dummy $ac_prog; ac_word=$2
3311echo "$as_me:$LINENO: checking for $ac_word" >&5
3312echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3313if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3314 echo $ECHO_N "(cached) $ECHO_C" >&6
3315else
3316 if test -n "$ac_ct_CXX"; then
3317 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3318else
3319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3320for as_dir in $PATH
3321do
3322 IFS=$as_save_IFS
3323 test -z "$as_dir" && as_dir=.
3324 for ac_exec_ext in '' $ac_executable_extensions; do
3325 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3326 ac_cv_prog_ac_ct_CXX="$ac_prog"
3327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3328 break 2
3329 fi
3330done
3331done
3332
3333fi
3334fi
3335ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3336if test -n "$ac_ct_CXX"; then
3337 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3338echo "${ECHO_T}$ac_ct_CXX" >&6
3339else
3340 echo "$as_me:$LINENO: result: no" >&5
3341echo "${ECHO_T}no" >&6
3342fi
3343
3344 test -n "$ac_ct_CXX" && break
3345done
3346test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3347
3348 CXX=$ac_ct_CXX
3349fi
3350
3351
3352# Provide some information about the compiler.
3353echo "$as_me:$LINENO:" \
3354 "checking for C++ compiler version" >&5
3355ac_compiler=`set X $ac_compile; echo $2`
3356{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3357 (eval $ac_compiler --version </dev/null >&5) 2>&5
3358 ac_status=$?
3359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360 (exit $ac_status); }
3361{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3362 (eval $ac_compiler -v </dev/null >&5) 2>&5
3363 ac_status=$?
3364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365 (exit $ac_status); }
3366{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3367 (eval $ac_compiler -V </dev/null >&5) 2>&5
3368 ac_status=$?
3369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370 (exit $ac_status); }
3371
3372echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3373echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3374if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3375 echo $ECHO_N "(cached) $ECHO_C" >&6
3376else
3377 cat >conftest.$ac_ext <<_ACEOF
3378/* confdefs.h. */
3379_ACEOF
3380cat confdefs.h >>conftest.$ac_ext
3381cat >>conftest.$ac_ext <<_ACEOF
3382/* end confdefs.h. */
3383
3384int
3385main ()
3386{
3387#ifndef __GNUC__
3388 choke me
3389#endif
3390
3391 ;
3392 return 0;
3393}
3394_ACEOF
3395rm -f conftest.$ac_objext
3396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3397 (eval $ac_compile) 2>conftest.er1
3398 ac_status=$?
3399 grep -v '^ *+' conftest.er1 >conftest.err
3400 rm -f conftest.er1
3401 cat conftest.err >&5
3402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403 (exit $ac_status); } &&
b0074644
ILT
3404 { ac_try='test -z "$ac_cxx_werror_flag"
3405 || test ! -s conftest.err'
bae7f79e
ILT
3406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3407 (eval $ac_try) 2>&5
3408 ac_status=$?
3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); }; } &&
3411 { ac_try='test -s conftest.$ac_objext'
3412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3413 (eval $ac_try) 2>&5
3414 ac_status=$?
3415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416 (exit $ac_status); }; }; then
3417 ac_compiler_gnu=yes
3418else
3419 echo "$as_me: failed program was:" >&5
3420sed 's/^/| /' conftest.$ac_ext >&5
3421
3422ac_compiler_gnu=no
3423fi
3424rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3425ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3426
3427fi
3428echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3429echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3430GXX=`test $ac_compiler_gnu = yes && echo yes`
3431ac_test_CXXFLAGS=${CXXFLAGS+set}
3432ac_save_CXXFLAGS=$CXXFLAGS
3433CXXFLAGS="-g"
3434echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3435echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3436if test "${ac_cv_prog_cxx_g+set}" = set; then
3437 echo $ECHO_N "(cached) $ECHO_C" >&6
3438else
3439 cat >conftest.$ac_ext <<_ACEOF
3440/* confdefs.h. */
3441_ACEOF
3442cat confdefs.h >>conftest.$ac_ext
3443cat >>conftest.$ac_ext <<_ACEOF
3444/* end confdefs.h. */
3445
3446int
3447main ()
3448{
3449
3450 ;
3451 return 0;
3452}
3453_ACEOF
3454rm -f conftest.$ac_objext
3455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3456 (eval $ac_compile) 2>conftest.er1
3457 ac_status=$?
3458 grep -v '^ *+' conftest.er1 >conftest.err
3459 rm -f conftest.er1
3460 cat conftest.err >&5
3461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3462 (exit $ac_status); } &&
b0074644
ILT
3463 { ac_try='test -z "$ac_cxx_werror_flag"
3464 || test ! -s conftest.err'
bae7f79e
ILT
3465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3466 (eval $ac_try) 2>&5
3467 ac_status=$?
3468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469 (exit $ac_status); }; } &&
3470 { ac_try='test -s conftest.$ac_objext'
3471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3472 (eval $ac_try) 2>&5
3473 ac_status=$?
3474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475 (exit $ac_status); }; }; then
3476 ac_cv_prog_cxx_g=yes
3477else
3478 echo "$as_me: failed program was:" >&5
3479sed 's/^/| /' conftest.$ac_ext >&5
3480
3481ac_cv_prog_cxx_g=no
3482fi
3483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3484fi
3485echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3486echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3487if test "$ac_test_CXXFLAGS" = set; then
3488 CXXFLAGS=$ac_save_CXXFLAGS
3489elif test $ac_cv_prog_cxx_g = yes; then
3490 if test "$GXX" = yes; then
3491 CXXFLAGS="-g -O2"
3492 else
3493 CXXFLAGS="-g"
3494 fi
3495else
3496 if test "$GXX" = yes; then
3497 CXXFLAGS="-O2"
3498 else
3499 CXXFLAGS=
3500 fi
3501fi
3502for ac_declaration in \
3503 '' \
3504 'extern "C" void std::exit (int) throw (); using std::exit;' \
3505 'extern "C" void std::exit (int); using std::exit;' \
3506 'extern "C" void exit (int) throw ();' \
3507 'extern "C" void exit (int);' \
3508 'void exit (int);'
3509do
3510 cat >conftest.$ac_ext <<_ACEOF
3511/* confdefs.h. */
3512_ACEOF
3513cat confdefs.h >>conftest.$ac_ext
3514cat >>conftest.$ac_ext <<_ACEOF
3515/* end confdefs.h. */
3516$ac_declaration
3517#include <stdlib.h>
3518int
3519main ()
3520{
3521exit (42);
3522 ;
3523 return 0;
3524}
3525_ACEOF
3526rm -f conftest.$ac_objext
3527if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3528 (eval $ac_compile) 2>conftest.er1
3529 ac_status=$?
3530 grep -v '^ *+' conftest.er1 >conftest.err
3531 rm -f conftest.er1
3532 cat conftest.err >&5
3533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534 (exit $ac_status); } &&
b0074644
ILT
3535 { ac_try='test -z "$ac_cxx_werror_flag"
3536 || test ! -s conftest.err'
bae7f79e
ILT
3537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3538 (eval $ac_try) 2>&5
3539 ac_status=$?
3540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541 (exit $ac_status); }; } &&
3542 { ac_try='test -s conftest.$ac_objext'
3543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3544 (eval $ac_try) 2>&5
3545 ac_status=$?
3546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547 (exit $ac_status); }; }; then
3548 :
3549else
3550 echo "$as_me: failed program was:" >&5
3551sed 's/^/| /' conftest.$ac_ext >&5
3552
3553continue
3554fi
3555rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3556 cat >conftest.$ac_ext <<_ACEOF
3557/* confdefs.h. */
3558_ACEOF
3559cat confdefs.h >>conftest.$ac_ext
3560cat >>conftest.$ac_ext <<_ACEOF
3561/* end confdefs.h. */
3562$ac_declaration
3563int
3564main ()
3565{
3566exit (42);
3567 ;
3568 return 0;
3569}
3570_ACEOF
3571rm -f conftest.$ac_objext
3572if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3573 (eval $ac_compile) 2>conftest.er1
3574 ac_status=$?
3575 grep -v '^ *+' conftest.er1 >conftest.err
3576 rm -f conftest.er1
3577 cat conftest.err >&5
3578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579 (exit $ac_status); } &&
b0074644
ILT
3580 { ac_try='test -z "$ac_cxx_werror_flag"
3581 || test ! -s conftest.err'
bae7f79e
ILT
3582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3583 (eval $ac_try) 2>&5
3584 ac_status=$?
3585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586 (exit $ac_status); }; } &&
3587 { ac_try='test -s conftest.$ac_objext'
3588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3589 (eval $ac_try) 2>&5
3590 ac_status=$?
3591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592 (exit $ac_status); }; }; then
3593 break
3594else
3595 echo "$as_me: failed program was:" >&5
3596sed 's/^/| /' conftest.$ac_ext >&5
3597
3598fi
3599rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3600done
3601rm -f conftest*
3602if test -n "$ac_declaration"; then
3603 echo '#ifdef __cplusplus' >>confdefs.h
3604 echo $ac_declaration >>confdefs.h
3605 echo '#endif' >>confdefs.h
3606fi
3607
3608ac_ext=c
3609ac_cpp='$CPP $CPPFLAGS'
3610ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3611ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3612ac_compiler_gnu=$ac_cv_c_compiler_gnu
3613
3614depcc="$CXX" am_compiler_list=
3615
3616echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3617echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3618if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3619 echo $ECHO_N "(cached) $ECHO_C" >&6
3620else
3621 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3622 # We make a subdir and do the tests there. Otherwise we can end up
3623 # making bogus files that we don't know about and never remove. For
3624 # instance it was reported that on HP-UX the gcc test will end up
3625 # making a dummy file named `D' -- because `-MD' means `put the output
3626 # in D'.
3627 mkdir conftest.dir
3628 # Copy depcomp to subdir because otherwise we won't find it if we're
3629 # using a relative directory.
3630 cp "$am_depcomp" conftest.dir
3631 cd conftest.dir
3632 # We will build objects and dependencies in a subdirectory because
3633 # it helps to detect inapplicable dependency modes. For instance
3634 # both Tru64's cc and ICC support -MD to output dependencies as a
3635 # side effect of compilation, but ICC will put the dependencies in
3636 # the current directory while Tru64 will put them in the object
3637 # directory.
3638 mkdir sub
3639
3640 am_cv_CXX_dependencies_compiler_type=none
3641 if test "$am_compiler_list" = ""; then
3642 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3643 fi
3644 for depmode in $am_compiler_list; do
3645 # Setup a source with many dependencies, because some compilers
3646 # like to wrap large dependency lists on column 80 (with \), and
3647 # we should not choose a depcomp mode which is confused by this.
3648 #
3649 # We need to recreate these files for each test, as the compiler may
3650 # overwrite some of them when testing with obscure command lines.
3651 # This happens at least with the AIX C compiler.
3652 : > sub/conftest.c
3653 for i in 1 2 3 4 5 6; do
3654 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3655 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3656 # Solaris 8's {/usr,}/bin/sh.
3657 touch sub/conftst$i.h
3658 done
3659 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3660
3661 case $depmode in
3662 nosideeffect)
3663 # after this tag, mechanisms are not by side-effect, so they'll
3664 # only be used when explicitly requested
3665 if test "x$enable_dependency_tracking" = xyes; then
3666 continue
3667 else
3668 break
3669 fi
3670 ;;
3671 none) break ;;
3672 esac
3673 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3674 # mode. It turns out that the SunPro C++ compiler does not properly
3675 # handle `-M -o', and we need to detect this.
3676 if depmode=$depmode \
3677 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3678 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3679 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3680 >/dev/null 2>conftest.err &&
3681 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3682 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3683 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3684 # icc doesn't choke on unknown options, it will just issue warnings
3685 # or remarks (even with -Werror). So we grep stderr for any message
3686 # that says an option was ignored or not supported.
3687 # When given -MP, icc 7.0 and 7.1 complain thusly:
3688 # icc: Command line warning: ignoring option '-M'; no argument required
3689 # The diagnosis changed in icc 8.0:
3690 # icc: Command line remark: option '-MP' not supported
3691 if (grep 'ignoring option' conftest.err ||
3692 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3693 am_cv_CXX_dependencies_compiler_type=$depmode
3694 break
3695 fi
3696 fi
3697 done
3698
3699 cd ..
3700 rm -rf conftest.dir
3701else
3702 am_cv_CXX_dependencies_compiler_type=none
3703fi
3704
3705fi
3706echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3707echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3708CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3709
3710
3711
3712if
3713 test "x$enable_dependency_tracking" != xno \
3714 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3715 am__fastdepCXX_TRUE=
3716 am__fastdepCXX_FALSE='#'
3717else
3718 am__fastdepCXX_TRUE='#'
3719 am__fastdepCXX_FALSE=
3720fi
3721
3722
dbe717ef
ILT
3723for ac_prog in 'bison -y' byacc
3724do
3725 # Extract the first word of "$ac_prog", so it can be a program name with args.
3726set dummy $ac_prog; ac_word=$2
3727echo "$as_me:$LINENO: checking for $ac_word" >&5
3728echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3729if test "${ac_cv_prog_YACC+set}" = set; then
3730 echo $ECHO_N "(cached) $ECHO_C" >&6
3731else
3732 if test -n "$YACC"; then
3733 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3734else
3735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3736for as_dir in $PATH
3737do
3738 IFS=$as_save_IFS
3739 test -z "$as_dir" && as_dir=.
3740 for ac_exec_ext in '' $ac_executable_extensions; do
3741 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3742 ac_cv_prog_YACC="$ac_prog"
3743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3744 break 2
3745 fi
3746done
3747done
3748
3749fi
3750fi
3751YACC=$ac_cv_prog_YACC
3752if test -n "$YACC"; then
3753 echo "$as_me:$LINENO: result: $YACC" >&5
3754echo "${ECHO_T}$YACC" >&6
3755else
3756 echo "$as_me:$LINENO: result: no" >&5
3757echo "${ECHO_T}no" >&6
3758fi
3759
3760 test -n "$YACC" && break
3761done
3762test -n "$YACC" || YACC="yacc"
3763
5a6f7e2d
ILT
3764if test -n "$ac_tool_prefix"; then
3765 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3766set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3767echo "$as_me:$LINENO: checking for $ac_word" >&5
3768echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3769if test "${ac_cv_prog_RANLIB+set}" = set; then
3770 echo $ECHO_N "(cached) $ECHO_C" >&6
3771else
3772 if test -n "$RANLIB"; then
3773 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3774else
3775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3776for as_dir in $PATH
3777do
3778 IFS=$as_save_IFS
3779 test -z "$as_dir" && as_dir=.
3780 for ac_exec_ext in '' $ac_executable_extensions; do
3781 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3782 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3784 break 2
3785 fi
3786done
3787done
3788
3789fi
3790fi
3791RANLIB=$ac_cv_prog_RANLIB
3792if test -n "$RANLIB"; then
3793 echo "$as_me:$LINENO: result: $RANLIB" >&5
3794echo "${ECHO_T}$RANLIB" >&6
3795else
3796 echo "$as_me:$LINENO: result: no" >&5
3797echo "${ECHO_T}no" >&6
3798fi
3799
3800fi
3801if test -z "$ac_cv_prog_RANLIB"; then
3802 ac_ct_RANLIB=$RANLIB
3803 # Extract the first word of "ranlib", so it can be a program name with args.
3804set dummy ranlib; ac_word=$2
3805echo "$as_me:$LINENO: checking for $ac_word" >&5
3806echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3807if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3808 echo $ECHO_N "(cached) $ECHO_C" >&6
3809else
3810 if test -n "$ac_ct_RANLIB"; then
3811 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3812else
3813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3814for as_dir in $PATH
3815do
3816 IFS=$as_save_IFS
3817 test -z "$as_dir" && as_dir=.
3818 for ac_exec_ext in '' $ac_executable_extensions; do
3819 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3820 ac_cv_prog_ac_ct_RANLIB="ranlib"
3821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3822 break 2
3823 fi
3824done
3825done
3826
3827 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3828fi
3829fi
3830ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3831if test -n "$ac_ct_RANLIB"; then
3832 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3833echo "${ECHO_T}$ac_ct_RANLIB" >&6
3834else
3835 echo "$as_me:$LINENO: result: no" >&5
3836echo "${ECHO_T}no" >&6
3837fi
3838
3839 RANLIB=$ac_ct_RANLIB
3840else
3841 RANLIB="$ac_cv_prog_RANLIB"
3842fi
3843
bae7f79e
ILT
3844# Find a good install program. We prefer a C program (faster),
3845# so one script is as good as another. But avoid the broken or
3846# incompatible versions:
3847# SysV /etc/install, /usr/sbin/install
3848# SunOS /usr/etc/install
3849# IRIX /sbin/install
3850# AIX /bin/install
3851# AmigaOS /C/install, which installs bootblocks on floppy discs
3852# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3853# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3854# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3855# OS/2's system install, which has a completely different semantic
3856# ./install, which can be erroneously created by make from ./install.sh.
f5314dd5 3857# Reject install programs that cannot install multiple files.
bae7f79e
ILT
3858echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3859echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3860if test -z "$INSTALL"; then
3861if test "${ac_cv_path_install+set}" = set; then
3862 echo $ECHO_N "(cached) $ECHO_C" >&6
3863else
3864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3865for as_dir in $PATH
3866do
3867 IFS=$as_save_IFS
3868 test -z "$as_dir" && as_dir=.
3869 # Account for people who put trailing slashes in PATH elements.
3870case $as_dir/ in
3871 ./ | .// | /cC/* | \
3872 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3873 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3874 /usr/ucb/* ) ;;
3875 *)
3876 # OSF1 and SCO ODT 3.0 have their own names for install.
3877 # Don't use installbsd from OSF since it installs stuff as root
3878 # by default.
3879 for ac_prog in ginstall scoinst install; do
3880 for ac_exec_ext in '' $ac_executable_extensions; do
3881 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3882 if test $ac_prog = install &&
3883 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3884 # AIX install. It has an incompatible calling convention.
3885 :
3886 elif test $ac_prog = install &&
3887 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3888 # program-specific install script used by HP pwplus--don't use.
3889 :
3890 else
f5314dd5
DM
3891 rm -rf conftest.one conftest.two conftest.dir
3892 echo one > conftest.one
3893 echo two > conftest.two
3894 mkdir conftest.dir
3895 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3896 test -s conftest.one && test -s conftest.two &&
3897 test -s conftest.dir/conftest.one &&
3898 test -s conftest.dir/conftest.two
3899 then
3900 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3901 break 3
3902 fi
bae7f79e
ILT
3903 fi
3904 fi
3905 done
3906 done
3907 ;;
3908esac
3909done
3910
f5314dd5 3911rm -rf conftest.one conftest.two conftest.dir
bae7f79e
ILT
3912
3913fi
3914 if test "${ac_cv_path_install+set}" = set; then
3915 INSTALL=$ac_cv_path_install
3916 else
f5314dd5
DM
3917 # As a last resort, use the slow shell script. Don't cache a
3918 # value for INSTALL within a source directory, because that will
bae7f79e 3919 # break other packages using the cache if that directory is
f5314dd5 3920 # removed, or if the value is a relative name.
bae7f79e
ILT
3921 INSTALL=$ac_install_sh
3922 fi
3923fi
3924echo "$as_me:$LINENO: result: $INSTALL" >&5
3925echo "${ECHO_T}$INSTALL" >&6
3926
3927# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3928# It thinks the first close brace ends the variable substitution.
3929test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3930
3931test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3932
3933test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3934
537b5f51
ILT
3935echo "$as_me:$LINENO: checking whether ln -s works" >&5
3936echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3937LN_S=$as_ln_s
3938if test "$LN_S" = "ln -s"; then
3939 echo "$as_me:$LINENO: result: yes" >&5
3940echo "${ECHO_T}yes" >&6
3941else
3942 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3943echo "${ECHO_T}no, using $LN_S" >&6
3944fi
3945
fa99aa09
ILT
3946
3947
3948cat >>confdefs.h <<\_ACEOF
3949#define _GNU_SOURCE 1
3950_ACEOF
3951
3952
3953
bae7f79e
ILT
3954# If we haven't got the data from the intl directory,
3955# assume NLS is disabled.
3956USE_NLS=no
3957LIBINTL=
3958LIBINTL_DEP=
3959INCINTL=
3960XGETTEXT=
3961GMSGFMT=
3962POSUB=
3963
3964if test -f ../intl/config.intl; then
3965 . ../intl/config.intl
3966fi
3967echo "$as_me:$LINENO: checking whether NLS is requested" >&5
3968echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
3969if test x"$USE_NLS" != xyes; then
3970 echo "$as_me:$LINENO: result: no" >&5
3971echo "${ECHO_T}no" >&6
3972else
3973 echo "$as_me:$LINENO: result: yes" >&5
3974echo "${ECHO_T}yes" >&6
3975
3976cat >>confdefs.h <<\_ACEOF
3977#define ENABLE_NLS 1
3978_ACEOF
3979
3980
3981 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
3982echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
3983 # Look for .po and .gmo files in the source directory.
3984 CATALOGS=
3985 XLINGUAS=
3986 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
3987 # If there aren't any .gmo files the shell will give us the
3988 # literal string "../path/to/srcdir/po/*.gmo" which has to be
3989 # weeded out.
3990 case "$cat" in *\**)
3991 continue;;
3992 esac
3993 # The quadruple backslash is collapsed to a double backslash
3994 # by the backticks, then collapsed again by the double quotes,
3995 # leaving us with one backslash in the sed expression (right
3996 # before the dot that mustn't act as a wildcard).
3997 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
3998 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
3999 # The user is allowed to set LINGUAS to a list of languages to
4000 # install catalogs for. If it's empty that means "all of them."
4001 if test "x$LINGUAS" = x; then
4002 CATALOGS="$CATALOGS $cat"
4003 XLINGUAS="$XLINGUAS $lang"
4004 else
4005 case "$LINGUAS" in *$lang*)
4006 CATALOGS="$CATALOGS $cat"
4007 XLINGUAS="$XLINGUAS $lang"
4008 ;;
4009 esac
4010 fi
4011 done
4012 LINGUAS="$XLINGUAS"
4013 echo "$as_me:$LINENO: result: $LINGUAS" >&5
4014echo "${ECHO_T}$LINGUAS" >&6
4015
4016
4017 DATADIRNAME=share
4018
4019 INSTOBJEXT=.mo
4020
4021 GENCAT=gencat
4022
4023 CATOBJEXT=.gmo
4024
4025fi
4026
4027 MKINSTALLDIRS=
4028 if test -n "$ac_aux_dir"; then
4029 case "$ac_aux_dir" in
4030 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4031 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4032 esac
4033 fi
4034 if test -z "$MKINSTALLDIRS"; then
4035 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4036 fi
4037
4038
4039
4040 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4041echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4042 # Check whether --enable-nls or --disable-nls was given.
4043if test "${enable_nls+set}" = set; then
4044 enableval="$enable_nls"
4045 USE_NLS=$enableval
4046else
4047 USE_NLS=yes
4048fi;
4049 echo "$as_me:$LINENO: result: $USE_NLS" >&5
4050echo "${ECHO_T}$USE_NLS" >&6
4051
4052
4053
4054
4055
4056
4057# Prepare PATH_SEPARATOR.
4058# The user is always right.
4059if test "${PATH_SEPARATOR+set}" != set; then
4060 echo "#! /bin/sh" >conf$$.sh
4061 echo "exit 0" >>conf$$.sh
4062 chmod +x conf$$.sh
4063 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4064 PATH_SEPARATOR=';'
4065 else
4066 PATH_SEPARATOR=:
4067 fi
4068 rm -f conf$$.sh
4069fi
4070
4071# Find out how to test for executable files. Don't use a zero-byte file,
4072# as systems may use methods other than mode bits to determine executability.
4073cat >conf$$.file <<_ASEOF
4074#! /bin/sh
4075exit 0
4076_ASEOF
4077chmod +x conf$$.file
4078if test -x conf$$.file >/dev/null 2>&1; then
4079 ac_executable_p="test -x"
4080else
4081 ac_executable_p="test -f"
4082fi
4083rm -f conf$$.file
4084
4085# Extract the first word of "msgfmt", so it can be a program name with args.
4086set dummy msgfmt; ac_word=$2
4087echo "$as_me:$LINENO: checking for $ac_word" >&5
4088echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4089if test "${ac_cv_path_MSGFMT+set}" = set; then
4090 echo $ECHO_N "(cached) $ECHO_C" >&6
4091else
4092 case "$MSGFMT" in
4093 [\\/]* | ?:[\\/]*)
4094 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4095 ;;
4096 *)
4097 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4098 for ac_dir in $PATH; do
4099 IFS="$ac_save_IFS"
4100 test -z "$ac_dir" && ac_dir=.
4101 for ac_exec_ext in '' $ac_executable_extensions; do
4102 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4103 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
4104 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4105 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4106 break 2
4107 fi
4108 fi
4109 done
4110 done
4111 IFS="$ac_save_IFS"
4112 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4113 ;;
4114esac
4115fi
4116MSGFMT="$ac_cv_path_MSGFMT"
4117if test "$MSGFMT" != ":"; then
4118 echo "$as_me:$LINENO: result: $MSGFMT" >&5
4119echo "${ECHO_T}$MSGFMT" >&6
4120else
4121 echo "$as_me:$LINENO: result: no" >&5
4122echo "${ECHO_T}no" >&6
4123fi
4124
4125 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4126set dummy gmsgfmt; ac_word=$2
4127echo "$as_me:$LINENO: checking for $ac_word" >&5
4128echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4129if test "${ac_cv_path_GMSGFMT+set}" = set; then
4130 echo $ECHO_N "(cached) $ECHO_C" >&6
4131else
4132 case $GMSGFMT in
4133 [\\/]* | ?:[\\/]*)
4134 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4135 ;;
4136 *)
4137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4138for as_dir in $PATH
4139do
4140 IFS=$as_save_IFS
4141 test -z "$as_dir" && as_dir=.
4142 for ac_exec_ext in '' $ac_executable_extensions; do
4143 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4144 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4146 break 2
4147 fi
4148done
4149done
4150
4151 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4152 ;;
4153esac
4154fi
4155GMSGFMT=$ac_cv_path_GMSGFMT
4156
4157if test -n "$GMSGFMT"; then
4158 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4159echo "${ECHO_T}$GMSGFMT" >&6
4160else
4161 echo "$as_me:$LINENO: result: no" >&5
4162echo "${ECHO_T}no" >&6
4163fi
4164
4165
4166
4167# Prepare PATH_SEPARATOR.
4168# The user is always right.
4169if test "${PATH_SEPARATOR+set}" != set; then
4170 echo "#! /bin/sh" >conf$$.sh
4171 echo "exit 0" >>conf$$.sh
4172 chmod +x conf$$.sh
4173 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4174 PATH_SEPARATOR=';'
4175 else
4176 PATH_SEPARATOR=:
4177 fi
4178 rm -f conf$$.sh
4179fi
4180
4181# Find out how to test for executable files. Don't use a zero-byte file,
4182# as systems may use methods other than mode bits to determine executability.
4183cat >conf$$.file <<_ASEOF
4184#! /bin/sh
4185exit 0
4186_ASEOF
4187chmod +x conf$$.file
4188if test -x conf$$.file >/dev/null 2>&1; then
4189 ac_executable_p="test -x"
4190else
4191 ac_executable_p="test -f"
4192fi
4193rm -f conf$$.file
4194
4195# Extract the first word of "xgettext", so it can be a program name with args.
4196set dummy xgettext; ac_word=$2
4197echo "$as_me:$LINENO: checking for $ac_word" >&5
4198echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4199if test "${ac_cv_path_XGETTEXT+set}" = set; then
4200 echo $ECHO_N "(cached) $ECHO_C" >&6
4201else
4202 case "$XGETTEXT" in
4203 [\\/]* | ?:[\\/]*)
4204 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4205 ;;
4206 *)
4207 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4208 for ac_dir in $PATH; do
4209 IFS="$ac_save_IFS"
4210 test -z "$ac_dir" && ac_dir=.
4211 for ac_exec_ext in '' $ac_executable_extensions; do
4212 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4213 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4214 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4215 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4216 break 2
4217 fi
4218 fi
4219 done
4220 done
4221 IFS="$ac_save_IFS"
4222 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4223 ;;
4224esac
4225fi
4226XGETTEXT="$ac_cv_path_XGETTEXT"
4227if test "$XGETTEXT" != ":"; then
4228 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4229echo "${ECHO_T}$XGETTEXT" >&6
4230else
4231 echo "$as_me:$LINENO: result: no" >&5
4232echo "${ECHO_T}no" >&6
4233fi
4234
4235 rm -f messages.po
4236
4237
4238# Prepare PATH_SEPARATOR.
4239# The user is always right.
4240if test "${PATH_SEPARATOR+set}" != set; then
4241 echo "#! /bin/sh" >conf$$.sh
4242 echo "exit 0" >>conf$$.sh
4243 chmod +x conf$$.sh
4244 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4245 PATH_SEPARATOR=';'
4246 else
4247 PATH_SEPARATOR=:
4248 fi
4249 rm -f conf$$.sh
4250fi
4251
4252# Find out how to test for executable files. Don't use a zero-byte file,
4253# as systems may use methods other than mode bits to determine executability.
4254cat >conf$$.file <<_ASEOF
4255#! /bin/sh
4256exit 0
4257_ASEOF
4258chmod +x conf$$.file
4259if test -x conf$$.file >/dev/null 2>&1; then
4260 ac_executable_p="test -x"
4261else
4262 ac_executable_p="test -f"
4263fi
4264rm -f conf$$.file
4265
4266# Extract the first word of "msgmerge", so it can be a program name with args.
4267set dummy msgmerge; ac_word=$2
4268echo "$as_me:$LINENO: checking for $ac_word" >&5
4269echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4270if test "${ac_cv_path_MSGMERGE+set}" = set; then
4271 echo $ECHO_N "(cached) $ECHO_C" >&6
4272else
4273 case "$MSGMERGE" in
4274 [\\/]* | ?:[\\/]*)
4275 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4276 ;;
4277 *)
4278 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4279 for ac_dir in $PATH; do
4280 IFS="$ac_save_IFS"
4281 test -z "$ac_dir" && ac_dir=.
4282 for ac_exec_ext in '' $ac_executable_extensions; do
4283 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4284 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
4285 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4286 break 2
4287 fi
4288 fi
4289 done
4290 done
4291 IFS="$ac_save_IFS"
4292 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4293 ;;
4294esac
4295fi
4296MSGMERGE="$ac_cv_path_MSGMERGE"
4297if test "$MSGMERGE" != ":"; then
4298 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
4299echo "${ECHO_T}$MSGMERGE" >&6
4300else
4301 echo "$as_me:$LINENO: result: no" >&5
4302echo "${ECHO_T}no" >&6
4303fi
4304
4305
4306 if test "$GMSGFMT" != ":"; then
4307 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
4308 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4309 : ;
4310 else
4311 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
4312 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
4313echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
4314 GMSGFMT=":"
4315 fi
4316 fi
4317
4318 if test "$XGETTEXT" != ":"; then
4319 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4320 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4321 : ;
4322 else
4323 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
4324echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
4325 XGETTEXT=":"
4326 fi
4327 rm -f messages.po
4328 fi
4329
4330 ac_config_commands="$ac_config_commands default-1"
4331
4332
4333
4334
92e059d8
ILT
4335echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4336echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
4337if test "${ac_cv_c_bigendian+set}" = set; then
4338 echo $ECHO_N "(cached) $ECHO_C" >&6
4339else
4340 # See if sys/param.h defines the BYTE_ORDER macro.
4341cat >conftest.$ac_ext <<_ACEOF
4342/* confdefs.h. */
4343_ACEOF
4344cat confdefs.h >>conftest.$ac_ext
4345cat >>conftest.$ac_ext <<_ACEOF
4346/* end confdefs.h. */
4347#include <sys/types.h>
4348#include <sys/param.h>
4349
4350int
4351main ()
4352{
4353#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4354 bogus endian macros
4355#endif
4356
4357 ;
4358 return 0;
4359}
4360_ACEOF
4361rm -f conftest.$ac_objext
4362if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4363 (eval $ac_compile) 2>conftest.er1
4364 ac_status=$?
4365 grep -v '^ *+' conftest.er1 >conftest.err
4366 rm -f conftest.er1
4367 cat conftest.err >&5
4368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4369 (exit $ac_status); } &&
b0074644
ILT
4370 { ac_try='test -z "$ac_c_werror_flag"
4371 || test ! -s conftest.err'
92e059d8
ILT
4372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4373 (eval $ac_try) 2>&5
4374 ac_status=$?
4375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376 (exit $ac_status); }; } &&
4377 { ac_try='test -s conftest.$ac_objext'
4378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4379 (eval $ac_try) 2>&5
4380 ac_status=$?
4381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382 (exit $ac_status); }; }; then
4383 # It does; now see whether it defined to BIG_ENDIAN or not.
4384cat >conftest.$ac_ext <<_ACEOF
4385/* confdefs.h. */
4386_ACEOF
4387cat confdefs.h >>conftest.$ac_ext
4388cat >>conftest.$ac_ext <<_ACEOF
4389/* end confdefs.h. */
4390#include <sys/types.h>
4391#include <sys/param.h>
4392
4393int
4394main ()
4395{
4396#if BYTE_ORDER != BIG_ENDIAN
4397 not big endian
4398#endif
4399
4400 ;
4401 return 0;
4402}
4403_ACEOF
4404rm -f conftest.$ac_objext
4405if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4406 (eval $ac_compile) 2>conftest.er1
4407 ac_status=$?
4408 grep -v '^ *+' conftest.er1 >conftest.err
4409 rm -f conftest.er1
4410 cat conftest.err >&5
4411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412 (exit $ac_status); } &&
b0074644
ILT
4413 { ac_try='test -z "$ac_c_werror_flag"
4414 || test ! -s conftest.err'
92e059d8
ILT
4415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4416 (eval $ac_try) 2>&5
4417 ac_status=$?
4418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4419 (exit $ac_status); }; } &&
4420 { ac_try='test -s conftest.$ac_objext'
4421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4422 (eval $ac_try) 2>&5
4423 ac_status=$?
4424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425 (exit $ac_status); }; }; then
4426 ac_cv_c_bigendian=yes
4427else
4428 echo "$as_me: failed program was:" >&5
4429sed 's/^/| /' conftest.$ac_ext >&5
4430
4431ac_cv_c_bigendian=no
4432fi
4433rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4434else
4435 echo "$as_me: failed program was:" >&5
4436sed 's/^/| /' conftest.$ac_ext >&5
4437
4438# It does not; compile a test program.
4439if test "$cross_compiling" = yes; then
4440 # try to guess the endianness by grepping values into an object file
4441 ac_cv_c_bigendian=unknown
4442 cat >conftest.$ac_ext <<_ACEOF
4443/* confdefs.h. */
4444_ACEOF
4445cat confdefs.h >>conftest.$ac_ext
4446cat >>conftest.$ac_ext <<_ACEOF
4447/* end confdefs.h. */
4448short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4449short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4450void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4451short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4452short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4453void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4454int
4455main ()
4456{
4457 _ascii (); _ebcdic ();
4458 ;
4459 return 0;
4460}
4461_ACEOF
4462rm -f conftest.$ac_objext
4463if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4464 (eval $ac_compile) 2>conftest.er1
4465 ac_status=$?
4466 grep -v '^ *+' conftest.er1 >conftest.err
4467 rm -f conftest.er1
4468 cat conftest.err >&5
4469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470 (exit $ac_status); } &&
b0074644
ILT
4471 { ac_try='test -z "$ac_c_werror_flag"
4472 || test ! -s conftest.err'
92e059d8
ILT
4473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4474 (eval $ac_try) 2>&5
4475 ac_status=$?
4476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477 (exit $ac_status); }; } &&
4478 { ac_try='test -s conftest.$ac_objext'
4479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4480 (eval $ac_try) 2>&5
4481 ac_status=$?
4482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483 (exit $ac_status); }; }; then
4484 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4485 ac_cv_c_bigendian=yes
4486fi
4487if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4488 if test "$ac_cv_c_bigendian" = unknown; then
4489 ac_cv_c_bigendian=no
4490 else
4491 # finding both strings is unlikely to happen, but who knows?
4492 ac_cv_c_bigendian=unknown
4493 fi
4494fi
4495else
4496 echo "$as_me: failed program was:" >&5
4497sed 's/^/| /' conftest.$ac_ext >&5
4498
4499fi
4500rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4501else
4502 cat >conftest.$ac_ext <<_ACEOF
4503/* confdefs.h. */
4504_ACEOF
4505cat confdefs.h >>conftest.$ac_ext
4506cat >>conftest.$ac_ext <<_ACEOF
4507/* end confdefs.h. */
4508int
4509main ()
4510{
4511 /* Are we little or big endian? From Harbison&Steele. */
4512 union
4513 {
4514 long l;
4515 char c[sizeof (long)];
4516 } u;
4517 u.l = 1;
4518 exit (u.c[sizeof (long) - 1] == 1);
4519}
4520_ACEOF
4521rm -f conftest$ac_exeext
4522if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4523 (eval $ac_link) 2>&5
4524 ac_status=$?
4525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4528 (eval $ac_try) 2>&5
4529 ac_status=$?
4530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531 (exit $ac_status); }; }; then
4532 ac_cv_c_bigendian=no
4533else
4534 echo "$as_me: program exited with status $ac_status" >&5
4535echo "$as_me: failed program was:" >&5
4536sed 's/^/| /' conftest.$ac_ext >&5
4537
4538( exit $ac_status )
4539ac_cv_c_bigendian=yes
4540fi
4541rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4542fi
4543fi
4544rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4545fi
4546echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4547echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4548case $ac_cv_c_bigendian in
4549 yes)
4550
4551cat >>confdefs.h <<\_ACEOF
4552#define WORDS_BIGENDIAN 1
4553_ACEOF
4554 ;;
4555 no)
4556 ;;
4557 *)
4558 { { echo "$as_me:$LINENO: error: unknown endianness
4559presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4560echo "$as_me: error: unknown endianness
4561presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4562 { (exit 1); exit 1; }; } ;;
4563esac
4564
4565
4566
bae7f79e
ILT
4567
4568
537b5f51
ILT
4569
4570if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias"; then
4571 NATIVE_LINKER_TRUE=
4572 NATIVE_LINKER_FALSE='#'
4573else
4574 NATIVE_LINKER_TRUE='#'
4575 NATIVE_LINKER_FALSE=
4576fi
4577
4578
4579
4580if test "$GCC" = yes; then
4581 GCC_TRUE=
4582 GCC_FALSE='#'
4583else
4584 GCC_TRUE='#'
4585 GCC_FALSE=
4586fi
4587
4588
4589
63402fe4
ILT
4590
4591if
4592 case $target_cpu in
4593 i?86) true;;
4594 x86_64) false;;
11936fb1 4595 sparc64) false;;
63402fe4
ILT
4596 *) true;;
4597 esac; then
4598 FN_PTRS_IN_SO_WITHOUT_PIC_TRUE=
4599 FN_PTRS_IN_SO_WITHOUT_PIC_FALSE='#'
4600else
4601 FN_PTRS_IN_SO_WITHOUT_PIC_TRUE='#'
4602 FN_PTRS_IN_SO_WITHOUT_PIC_FALSE=
4603fi
4604
4605
097ec620
ILT
4606echo "$as_me:$LINENO: checking for thread support" >&5
4607echo $ECHO_N "checking for thread support... $ECHO_C" >&6
4608if test "${gold_cv_c_thread+set}" = set; then
4609 echo $ECHO_N "(cached) $ECHO_C" >&6
4610else
4611 cat >conftest.$ac_ext <<_ACEOF
6eee141f
ILT
4612__thread int i = 1;
4613_ACEOF
4614rm -f conftest.$ac_objext
4615if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4616 (eval $ac_compile) 2>conftest.er1
4617 ac_status=$?
4618 grep -v '^ *+' conftest.er1 >conftest.err
4619 rm -f conftest.er1
4620 cat conftest.err >&5
4621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622 (exit $ac_status); } &&
b0074644
ILT
4623 { ac_try='test -z "$ac_c_werror_flag"
4624 || test ! -s conftest.err'
6eee141f
ILT
4625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4626 (eval $ac_try) 2>&5
4627 ac_status=$?
4628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629 (exit $ac_status); }; } &&
4630 { ac_try='test -s conftest.$ac_objext'
4631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4632 (eval $ac_try) 2>&5
4633 ac_status=$?
4634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635 (exit $ac_status); }; }; then
097ec620 4636 gold_cv_c_thread=yes
6eee141f
ILT
4637else
4638 echo "$as_me: failed program was:" >&5
4639sed 's/^/| /' conftest.$ac_ext >&5
4640
097ec620 4641gold_cv_c_thread=no
6eee141f
ILT
4642fi
4643rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
097ec620
ILT
4644fi
4645echo "$as_me:$LINENO: result: $gold_cv_c_thread" >&5
4646echo "${ECHO_T}$gold_cv_c_thread" >&6
6eee141f
ILT
4647
4648
097ec620
ILT
4649
4650if test "$gold_cv_c_thread" = "yes"; then
6eee141f
ILT
4651 TLS_TRUE=
4652 TLS_FALSE='#'
4653else
4654 TLS_TRUE='#'
4655 TLS_FALSE=
4656fi
4657
4658
097ec620
ILT
4659echo "$as_me:$LINENO: checking for glibc >= 2.4" >&5
4660echo $ECHO_N "checking for glibc >= 2.4... $ECHO_C" >&6
4661if test "${gold_cv_lib_glibc24+set}" = set; then
4662 echo $ECHO_N "(cached) $ECHO_C" >&6
4663else
4664 cat >conftest.$ac_ext <<_ACEOF
4665
4666#include <features.h>
4667#if !defined __GLIBC__
4668error
4669#elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 4)
4670error
4671#endif
4672
4673_ACEOF
4674rm -f conftest.$ac_objext
4675if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4676 (eval $ac_compile) 2>conftest.er1
4677 ac_status=$?
4678 grep -v '^ *+' conftest.er1 >conftest.err
4679 rm -f conftest.er1
4680 cat conftest.err >&5
4681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682 (exit $ac_status); } &&
b0074644
ILT
4683 { ac_try='test -z "$ac_c_werror_flag"
4684 || test ! -s conftest.err'
097ec620
ILT
4685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4686 (eval $ac_try) 2>&5
4687 ac_status=$?
4688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689 (exit $ac_status); }; } &&
4690 { ac_try='test -s conftest.$ac_objext'
4691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4692 (eval $ac_try) 2>&5
4693 ac_status=$?
4694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695 (exit $ac_status); }; }; then
4696 gold_cv_lib_glibc24=yes
4697else
4698 echo "$as_me: failed program was:" >&5
4699sed 's/^/| /' conftest.$ac_ext >&5
4700
4701gold_cv_lib_glibc24=no
4702fi
4703rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4704fi
4705echo "$as_me:$LINENO: result: $gold_cv_lib_glibc24" >&5
4706echo "${ECHO_T}$gold_cv_lib_glibc24" >&6
4707
4708
4709
4710if test "$gold_cv_lib_glibc24" = "yes"; then
4711 STATIC_TLS_TRUE=
4712 STATIC_TLS_FALSE='#'
4713else
4714 STATIC_TLS_TRUE='#'
4715 STATIC_TLS_FALSE=
4716fi
4717
4718
155a0dd7
ILT
4719echo "$as_me:$LINENO: checking for omp support" >&5
4720echo $ECHO_N "checking for omp support... $ECHO_C" >&6
4721if test "${gold_cv_c_threadprivate+set}" = set; then
4722 echo $ECHO_N "(cached) $ECHO_C" >&6
4723else
4724 save_CFLAGS="$CFLAGS"
4725CFLAGS="$CFLAGS -fopenmp"
4726cat >conftest.$ac_ext <<_ACEOF
4727
4728#include <omp.h>
4729int i;
4730#pragma omp threadprivate (i)
4731
4732_ACEOF
4733rm -f conftest.$ac_objext
4734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4735 (eval $ac_compile) 2>conftest.er1
4736 ac_status=$?
4737 grep -v '^ *+' conftest.er1 >conftest.err
4738 rm -f conftest.er1
4739 cat conftest.err >&5
4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); } &&
b0074644
ILT
4742 { ac_try='test -z "$ac_c_werror_flag"
4743 || test ! -s conftest.err'
155a0dd7
ILT
4744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4745 (eval $ac_try) 2>&5
4746 ac_status=$?
4747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748 (exit $ac_status); }; } &&
4749 { ac_try='test -s conftest.$ac_objext'
4750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4751 (eval $ac_try) 2>&5
4752 ac_status=$?
4753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754 (exit $ac_status); }; }; then
4755 gold_cv_c_threadprivate=yes
4756else
4757 echo "$as_me: failed program was:" >&5
4758sed 's/^/| /' conftest.$ac_ext >&5
4759
4760gold_cv_c_threadprivate=no
4761fi
4762rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4763CFLAGS="$save_CFLAGS"
4764fi
4765echo "$as_me:$LINENO: result: $gold_cv_c_threadprivate" >&5
4766echo "${ECHO_T}$gold_cv_c_threadprivate" >&6
4767if test "$gold_cv_c_threadprivate" = "yes"; then
4768
4769cat >>confdefs.h <<\_ACEOF
4770#define HAVE_OMP_SUPPORT 1
4771_ACEOF
4772
4773fi
4774
4775
4776if test "$gold_cv_c_threadprivate" = "yes"; then
4777 OMP_SUPPORT_TRUE=
4778 OMP_SUPPORT_FALSE='#'
4779else
4780 OMP_SUPPORT_TRUE='#'
4781 OMP_SUPPORT_FALSE=
4782fi
4783
4784
c2b45e22
CC
4785save_CFLAGS="$CFLAGS"
4786CFLAGS="$CFLAGS -mtls-dialect=gnu2"
4787cat >conftest.$ac_ext <<_ACEOF
4788int i;
4789_ACEOF
4790rm -f conftest.$ac_objext
4791if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4792 (eval $ac_compile) 2>conftest.er1
4793 ac_status=$?
4794 grep -v '^ *+' conftest.er1 >conftest.err
4795 rm -f conftest.er1
4796 cat conftest.err >&5
4797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4798 (exit $ac_status); } &&
b0074644
ILT
4799 { ac_try='test -z "$ac_c_werror_flag"
4800 || test ! -s conftest.err'
c2b45e22
CC
4801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4802 (eval $ac_try) 2>&5
4803 ac_status=$?
4804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4805 (exit $ac_status); }; } &&
4806 { ac_try='test -s conftest.$ac_objext'
4807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4808 (eval $ac_try) 2>&5
4809 ac_status=$?
4810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811 (exit $ac_status); }; }; then
4812 have_tls_gnu2=yes
4813else
4814 echo "$as_me: failed program was:" >&5
4815sed 's/^/| /' conftest.$ac_ext >&5
4816
4817have_tls_gnu2=no
4818fi
4819rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4820CFLAGS="$save_CFLAGS"
4821
4822
4823if test "$have_tls_gnu2" = "yes"; then
4824 TLS_GNU2_DIALECT_TRUE=
4825 TLS_GNU2_DIALECT_FALSE='#'
4826else
4827 TLS_GNU2_DIALECT_TRUE='#'
4828 TLS_GNU2_DIALECT_FALSE=
4829fi
4830
4831
b0074644
ILT
4832echo "$as_me:$LINENO: checking for glibc >= 2.9" >&5
4833echo $ECHO_N "checking for glibc >= 2.9... $ECHO_C" >&6
4834if test "${gold_cv_lib_glibc29+set}" = set; then
c2b45e22
CC
4835 echo $ECHO_N "(cached) $ECHO_C" >&6
4836else
4837 cat >conftest.$ac_ext <<_ACEOF
4838
4839#include <features.h>
4840#if !defined __GLIBC__
4841error
b0074644 4842#elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 9)
c2b45e22
CC
4843error
4844#endif
4845
4846_ACEOF
4847rm -f conftest.$ac_objext
4848if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4849 (eval $ac_compile) 2>conftest.er1
4850 ac_status=$?
4851 grep -v '^ *+' conftest.er1 >conftest.err
4852 rm -f conftest.er1
4853 cat conftest.err >&5
4854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4855 (exit $ac_status); } &&
b0074644
ILT
4856 { ac_try='test -z "$ac_c_werror_flag"
4857 || test ! -s conftest.err'
c2b45e22
CC
4858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4859 (eval $ac_try) 2>&5
4860 ac_status=$?
4861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862 (exit $ac_status); }; } &&
4863 { ac_try='test -s conftest.$ac_objext'
4864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4865 (eval $ac_try) 2>&5
4866 ac_status=$?
4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); }; }; then
b0074644 4869 gold_cv_lib_glibc29=yes
c2b45e22
CC
4870else
4871 echo "$as_me: failed program was:" >&5
4872sed 's/^/| /' conftest.$ac_ext >&5
4873
b0074644 4874gold_cv_lib_glibc29=no
c2b45e22
CC
4875fi
4876rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4877fi
b0074644
ILT
4878echo "$as_me:$LINENO: result: $gold_cv_lib_glibc29" >&5
4879echo "${ECHO_T}$gold_cv_lib_glibc29" >&6
c2b45e22
CC
4880
4881
4882
b0074644 4883if test "$gold_cv_lib_glibc29" = "yes"; then
c2b45e22
CC
4884 TLS_DESCRIPTORS_TRUE=
4885 TLS_DESCRIPTORS_FALSE='#'
4886else
4887 TLS_DESCRIPTORS_TRUE='#'
4888 TLS_DESCRIPTORS_FALSE=
4889fi
4890
4891
2fd32231
ILT
4892echo "$as_me:$LINENO: checking for constructor priorities" >&5
4893echo $ECHO_N "checking for constructor priorities... $ECHO_C" >&6
4894if test "${gold_cv_c_conprio+set}" = set; then
4895 echo $ECHO_N "(cached) $ECHO_C" >&6
4896else
4897 cat >conftest.$ac_ext <<_ACEOF
4898void f() __attribute__ ((constructor (1)));
4899_ACEOF
4900rm -f conftest.$ac_objext
4901if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4902 (eval $ac_compile) 2>conftest.er1
4903 ac_status=$?
4904 grep -v '^ *+' conftest.er1 >conftest.err
4905 rm -f conftest.er1
4906 cat conftest.err >&5
4907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908 (exit $ac_status); } &&
b0074644
ILT
4909 { ac_try='test -z "$ac_c_werror_flag"
4910 || test ! -s conftest.err'
2fd32231
ILT
4911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4912 (eval $ac_try) 2>&5
4913 ac_status=$?
4914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915 (exit $ac_status); }; } &&
4916 { ac_try='test -s conftest.$ac_objext'
4917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4918 (eval $ac_try) 2>&5
4919 ac_status=$?
4920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921 (exit $ac_status); }; }; then
4922 gold_cv_c_conprio=yes
4923else
4924 echo "$as_me: failed program was:" >&5
4925sed 's/^/| /' conftest.$ac_ext >&5
4926
4927gold_cv_c_conprio=no
4928fi
4929rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4930fi
4931echo "$as_me:$LINENO: result: $gold_cv_c_conprio" >&5
4932echo "${ECHO_T}$gold_cv_c_conprio" >&6
4933
4934
4935
4936if test "$gold_cv_c_conprio" = "yes"; then
4937 CONSTRUCTOR_PRIORITY_TRUE=
4938 CONSTRUCTOR_PRIORITY_FALSE='#'
4939else
4940 CONSTRUCTOR_PRIORITY_TRUE='#'
4941 CONSTRUCTOR_PRIORITY_FALSE=
4942fi
4943
4944
1d1f116d
CD
4945echo "$as_me:$LINENO: checking for -frandom-seed support" >&5
4946echo $ECHO_N "checking for -frandom-seed support... $ECHO_C" >&6
4947if test "${gold_cv_c_random_seed+set}" = set; then
4948 echo $ECHO_N "(cached) $ECHO_C" >&6
4949else
4950 save_CFLAGS="$CFLAGS"
4951CFLAGS="$CFLAGS -frandom-seed=foo"
4952cat >conftest.$ac_ext <<_ACEOF
4953int i;
4954_ACEOF
4955rm -f conftest.$ac_objext
4956if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4957 (eval $ac_compile) 2>conftest.er1
4958 ac_status=$?
4959 grep -v '^ *+' conftest.er1 >conftest.err
4960 rm -f conftest.er1
4961 cat conftest.err >&5
4962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4963 (exit $ac_status); } &&
b0074644
ILT
4964 { ac_try='test -z "$ac_c_werror_flag"
4965 || test ! -s conftest.err'
1d1f116d
CD
4966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4967 (eval $ac_try) 2>&5
4968 ac_status=$?
4969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970 (exit $ac_status); }; } &&
4971 { ac_try='test -s conftest.$ac_objext'
4972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4973 (eval $ac_try) 2>&5
4974 ac_status=$?
4975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976 (exit $ac_status); }; }; then
4977 gold_cv_c_random_seed=yes
4978else
4979 echo "$as_me: failed program was:" >&5
4980sed 's/^/| /' conftest.$ac_ext >&5
4981
4982gold_cv_c_random_seed=no
4983fi
4984rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4985CFLAGS="$save_CFLAGS"
4986fi
4987echo "$as_me:$LINENO: result: $gold_cv_c_random_seed" >&5
4988echo "${ECHO_T}$gold_cv_c_random_seed" >&6
4989if test "$gold_cv_c_random_seed" = "yes"; then
4990 # In Makefile, '$@' will be expanded to be the name of the file
4991 # being built, providing a unique seed for each file.
4992 RANDOM_SEED_CFLAGS=-frandom-seed=\$@
4993fi
4994
4995
63402fe4 4996
bae7f79e
ILT
4997GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
4998
4999# Check whether --enable-werror or --disable-werror was given.
5000if test "${enable_werror+set}" = set; then
5001 enableval="$enable_werror"
5002 case "${enableval}" in
5003 yes | y) ERROR_ON_WARNING="yes" ;;
5004 no | n) ERROR_ON_WARNING="no" ;;
5005 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
5006echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
5007 { (exit 1); exit 1; }; } ;;
5008 esac
5009fi;
5010
04bf7072
ILT
5011# Enable -Wno-format by default when using gcc on mingw
5012case "${host}" in
5013 *-*-mingw32*)
5014 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
5015 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
5016 fi
5017 ;;
5018 *) ;;
5019esac
5020
bae7f79e
ILT
5021# Enable -Werror by default when using gcc
5022if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
5023 ERROR_ON_WARNING=yes
5024fi
5025
5026NO_WERROR=
5027if test "${ERROR_ON_WARNING}" = yes ; then
5028 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
5029 NO_WERROR="-Wno-error"
5030fi
5031
5032if test "${GCC}" = yes ; then
5033 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
5034fi
5035
5036# Check whether --enable-build-warnings or --disable-build-warnings was given.
5037if test "${enable_build_warnings+set}" = set; then
5038 enableval="$enable_build_warnings"
5039 case "${enableval}" in
5040 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
5041 no) if test "${GCC}" = yes ; then
5042 WARN_CFLAGS="-w"
5043 fi;;
5044 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
5045 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
5046 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
5047 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
5048 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
5049esac
5050fi;
5051
5052if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
5053 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
5054fi
5055
5056
5057
5058
5059
5060WARN_CXXFLAGS=`echo ${WARN_CFLAGS} | sed -e 's/-Wstrict-prototypes//' -e 's/-Wmissing-prototypes//'`
5061
5062
494e05f4 5063LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
bae7f79e
ILT
5064
5065
82dcae9d 5066
9201d894
ILT
5067for ac_func in chsize
5068do
5069as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5070echo "$as_me:$LINENO: checking for $ac_func" >&5
5071echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5072if eval "test \"\${$as_ac_var+set}\" = set"; then
5073 echo $ECHO_N "(cached) $ECHO_C" >&6
5074else
5075 cat >conftest.$ac_ext <<_ACEOF
5076/* confdefs.h. */
5077_ACEOF
5078cat confdefs.h >>conftest.$ac_ext
5079cat >>conftest.$ac_ext <<_ACEOF
5080/* end confdefs.h. */
5081/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5082 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5083#define $ac_func innocuous_$ac_func
5084
5085/* System header to define __stub macros and hopefully few prototypes,
5086 which can conflict with char $ac_func (); below.
5087 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5088 <limits.h> exists even on freestanding compilers. */
5089
5090#ifdef __STDC__
5091# include <limits.h>
5092#else
5093# include <assert.h>
5094#endif
5095
5096#undef $ac_func
5097
5098/* Override any gcc2 internal prototype to avoid an error. */
5099#ifdef __cplusplus
5100extern "C"
5101{
5102#endif
5103/* We use char because int might match the return type of a gcc2
5104 builtin and then its argument prototype would still apply. */
5105char $ac_func ();
5106/* The GNU C library defines this for functions which it implements
5107 to always fail with ENOSYS. Some functions are actually named
5108 something starting with __ and the normal name is an alias. */
5109#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5110choke me
5111#else
5112char (*f) () = $ac_func;
5113#endif
5114#ifdef __cplusplus
5115}
5116#endif
5117
5118int
5119main ()
5120{
5121return f != $ac_func;
5122 ;
5123 return 0;
5124}
5125_ACEOF
5126rm -f conftest.$ac_objext conftest$ac_exeext
5127if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5128 (eval $ac_link) 2>conftest.er1
5129 ac_status=$?
5130 grep -v '^ *+' conftest.er1 >conftest.err
5131 rm -f conftest.er1
5132 cat conftest.err >&5
5133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134 (exit $ac_status); } &&
5135 { ac_try='test -z "$ac_c_werror_flag"
5136 || test ! -s conftest.err'
5137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5138 (eval $ac_try) 2>&5
5139 ac_status=$?
5140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141 (exit $ac_status); }; } &&
5142 { ac_try='test -s conftest$ac_exeext'
5143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5144 (eval $ac_try) 2>&5
5145 ac_status=$?
5146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147 (exit $ac_status); }; }; then
5148 eval "$as_ac_var=yes"
5149else
5150 echo "$as_me: failed program was:" >&5
5151sed 's/^/| /' conftest.$ac_ext >&5
5152
5153eval "$as_ac_var=no"
5154fi
5155rm -f conftest.err conftest.$ac_objext \
5156 conftest$ac_exeext conftest.$ac_ext
5157fi
5158echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5159echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5160if test `eval echo '${'$as_ac_var'}'` = yes; then
5161 cat >>confdefs.h <<_ACEOF
5162#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5163_ACEOF
5164
5165fi
5166done
5167
5168
5169
2f35ab9b 5170
fd03461a
ILT
5171
5172for ac_func in pread ftruncate mremap ffsll
82dcae9d
ILT
5173do
5174as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5175echo "$as_me:$LINENO: checking for $ac_func" >&5
5176echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5177if eval "test \"\${$as_ac_var+set}\" = set"; then
5178 echo $ECHO_N "(cached) $ECHO_C" >&6
5179else
5180 cat >conftest.$ac_ext <<_ACEOF
5181/* confdefs.h. */
5182_ACEOF
5183cat confdefs.h >>conftest.$ac_ext
5184cat >>conftest.$ac_ext <<_ACEOF
5185/* end confdefs.h. */
5186/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5187 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5188#define $ac_func innocuous_$ac_func
5189
5190/* System header to define __stub macros and hopefully few prototypes,
5191 which can conflict with char $ac_func (); below.
5192 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5193 <limits.h> exists even on freestanding compilers. */
5194
5195#ifdef __STDC__
5196# include <limits.h>
5197#else
5198# include <assert.h>
5199#endif
5200
5201#undef $ac_func
5202
5203/* Override any gcc2 internal prototype to avoid an error. */
5204#ifdef __cplusplus
5205extern "C"
5206{
5207#endif
5208/* We use char because int might match the return type of a gcc2
5209 builtin and then its argument prototype would still apply. */
5210char $ac_func ();
5211/* The GNU C library defines this for functions which it implements
5212 to always fail with ENOSYS. Some functions are actually named
5213 something starting with __ and the normal name is an alias. */
5214#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5215choke me
5216#else
5217char (*f) () = $ac_func;
5218#endif
5219#ifdef __cplusplus
5220}
5221#endif
5222
5223int
5224main ()
5225{
5226return f != $ac_func;
5227 ;
5228 return 0;
5229}
5230_ACEOF
5231rm -f conftest.$ac_objext conftest$ac_exeext
5232if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5233 (eval $ac_link) 2>conftest.er1
5234 ac_status=$?
5235 grep -v '^ *+' conftest.er1 >conftest.err
5236 rm -f conftest.er1
5237 cat conftest.err >&5
5238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5239 (exit $ac_status); } &&
b0074644
ILT
5240 { ac_try='test -z "$ac_c_werror_flag"
5241 || test ! -s conftest.err'
82dcae9d
ILT
5242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5243 (eval $ac_try) 2>&5
5244 ac_status=$?
5245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5246 (exit $ac_status); }; } &&
5247 { ac_try='test -s conftest$ac_exeext'
5248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5249 (eval $ac_try) 2>&5
5250 ac_status=$?
5251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5252 (exit $ac_status); }; }; then
5253 eval "$as_ac_var=yes"
5254else
5255 echo "$as_me: failed program was:" >&5
5256sed 's/^/| /' conftest.$ac_ext >&5
5257
5258eval "$as_ac_var=no"
5259fi
5260rm -f conftest.err conftest.$ac_objext \
5261 conftest$ac_exeext conftest.$ac_ext
5262fi
5263echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5264echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5265if test `eval echo '${'$as_ac_var'}'` = yes; then
5266 cat >>confdefs.h <<_ACEOF
5267#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5268_ACEOF
5269
5270else
5271 case $LIBOBJS in
5272 "$ac_func.$ac_objext" | \
5273 *" $ac_func.$ac_objext" | \
5274 "$ac_func.$ac_objext "* | \
5275 *" $ac_func.$ac_objext "* ) ;;
5276 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
5277esac
5278
5279fi
5280done
5281
5282
5283
9a0910c3
ILT
5284# Link in zlib if we can. This allows us to write compressed sections.
5285ac_ext=c
5286ac_cpp='$CPP $CPPFLAGS'
5287ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5288ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5289ac_compiler_gnu=$ac_cv_c_compiler_gnu
5290echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5291echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5292# On Suns, sometimes $CPP names a directory.
5293if test -n "$CPP" && test -d "$CPP"; then
5294 CPP=
5295fi
5296if test -z "$CPP"; then
5297 if test "${ac_cv_prog_CPP+set}" = set; then
5298 echo $ECHO_N "(cached) $ECHO_C" >&6
5299else
5300 # Double quotes because CPP needs to be expanded
5301 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5302 do
5303 ac_preproc_ok=false
5304for ac_c_preproc_warn_flag in '' yes
5305do
5306 # Use a header file that comes with gcc, so configuring glibc
5307 # with a fresh cross-compiler works.
5308 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5309 # <limits.h> exists even on freestanding compilers.
5310 # On the NeXT, cc -E runs the code through the compiler's parser,
5311 # not just through cpp. "Syntax error" is here to catch this case.
5312 cat >conftest.$ac_ext <<_ACEOF
5313/* confdefs.h. */
5314_ACEOF
5315cat confdefs.h >>conftest.$ac_ext
5316cat >>conftest.$ac_ext <<_ACEOF
5317/* end confdefs.h. */
5318#ifdef __STDC__
5319# include <limits.h>
5320#else
5321# include <assert.h>
5322#endif
5323 Syntax error
5324_ACEOF
5325if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5326 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5327 ac_status=$?
5328 grep -v '^ *+' conftest.er1 >conftest.err
5329 rm -f conftest.er1
5330 cat conftest.err >&5
5331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5332 (exit $ac_status); } >/dev/null; then
5333 if test -s conftest.err; then
5334 ac_cpp_err=$ac_c_preproc_warn_flag
5335 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5336 else
5337 ac_cpp_err=
5338 fi
5339else
5340 ac_cpp_err=yes
5341fi
5342if test -z "$ac_cpp_err"; then
5343 :
5344else
5345 echo "$as_me: failed program was:" >&5
5346sed 's/^/| /' conftest.$ac_ext >&5
5347
5348 # Broken: fails on valid input.
5349continue
5350fi
5351rm -f conftest.err conftest.$ac_ext
5352
5353 # OK, works on sane cases. Now check whether non-existent headers
5354 # can be detected and how.
5355 cat >conftest.$ac_ext <<_ACEOF
5356/* confdefs.h. */
5357_ACEOF
5358cat confdefs.h >>conftest.$ac_ext
5359cat >>conftest.$ac_ext <<_ACEOF
5360/* end confdefs.h. */
5361#include <ac_nonexistent.h>
5362_ACEOF
5363if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5364 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5365 ac_status=$?
5366 grep -v '^ *+' conftest.er1 >conftest.err
5367 rm -f conftest.er1
5368 cat conftest.err >&5
5369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370 (exit $ac_status); } >/dev/null; then
5371 if test -s conftest.err; then
5372 ac_cpp_err=$ac_c_preproc_warn_flag
5373 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5374 else
5375 ac_cpp_err=
5376 fi
5377else
5378 ac_cpp_err=yes
5379fi
5380if test -z "$ac_cpp_err"; then
5381 # Broken: success on invalid input.
5382continue
5383else
5384 echo "$as_me: failed program was:" >&5
5385sed 's/^/| /' conftest.$ac_ext >&5
5386
5387 # Passes both tests.
5388ac_preproc_ok=:
5389break
5390fi
5391rm -f conftest.err conftest.$ac_ext
5392
5393done
5394# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5395rm -f conftest.err conftest.$ac_ext
5396if $ac_preproc_ok; then
5397 break
5398fi
5399
5400 done
5401 ac_cv_prog_CPP=$CPP
5402
5403fi
5404 CPP=$ac_cv_prog_CPP
5405else
5406 ac_cv_prog_CPP=$CPP
5407fi
5408echo "$as_me:$LINENO: result: $CPP" >&5
5409echo "${ECHO_T}$CPP" >&6
5410ac_preproc_ok=false
5411for ac_c_preproc_warn_flag in '' yes
5412do
5413 # Use a header file that comes with gcc, so configuring glibc
5414 # with a fresh cross-compiler works.
5415 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5416 # <limits.h> exists even on freestanding compilers.
5417 # On the NeXT, cc -E runs the code through the compiler's parser,
5418 # not just through cpp. "Syntax error" is here to catch this case.
5419 cat >conftest.$ac_ext <<_ACEOF
5420/* confdefs.h. */
5421_ACEOF
5422cat confdefs.h >>conftest.$ac_ext
5423cat >>conftest.$ac_ext <<_ACEOF
5424/* end confdefs.h. */
5425#ifdef __STDC__
5426# include <limits.h>
5427#else
5428# include <assert.h>
5429#endif
5430 Syntax error
5431_ACEOF
5432if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5433 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5434 ac_status=$?
5435 grep -v '^ *+' conftest.er1 >conftest.err
5436 rm -f conftest.er1
5437 cat conftest.err >&5
5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439 (exit $ac_status); } >/dev/null; then
5440 if test -s conftest.err; then
5441 ac_cpp_err=$ac_c_preproc_warn_flag
5442 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5443 else
5444 ac_cpp_err=
5445 fi
5446else
5447 ac_cpp_err=yes
5448fi
5449if test -z "$ac_cpp_err"; then
5450 :
5451else
5452 echo "$as_me: failed program was:" >&5
5453sed 's/^/| /' conftest.$ac_ext >&5
5454
5455 # Broken: fails on valid input.
5456continue
5457fi
5458rm -f conftest.err conftest.$ac_ext
5459
5460 # OK, works on sane cases. Now check whether non-existent headers
5461 # can be detected and how.
5462 cat >conftest.$ac_ext <<_ACEOF
5463/* confdefs.h. */
5464_ACEOF
5465cat confdefs.h >>conftest.$ac_ext
5466cat >>conftest.$ac_ext <<_ACEOF
5467/* end confdefs.h. */
5468#include <ac_nonexistent.h>
5469_ACEOF
5470if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5471 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5472 ac_status=$?
5473 grep -v '^ *+' conftest.er1 >conftest.err
5474 rm -f conftest.er1
5475 cat conftest.err >&5
5476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477 (exit $ac_status); } >/dev/null; then
5478 if test -s conftest.err; then
5479 ac_cpp_err=$ac_c_preproc_warn_flag
5480 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5481 else
5482 ac_cpp_err=
5483 fi
5484else
5485 ac_cpp_err=yes
5486fi
5487if test -z "$ac_cpp_err"; then
5488 # Broken: success on invalid input.
5489continue
5490else
5491 echo "$as_me: failed program was:" >&5
5492sed 's/^/| /' conftest.$ac_ext >&5
5493
5494 # Passes both tests.
5495ac_preproc_ok=:
5496break
5497fi
5498rm -f conftest.err conftest.$ac_ext
5499
5500done
5501# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5502rm -f conftest.err conftest.$ac_ext
5503if $ac_preproc_ok; then
5504 :
5505else
1d1f116d
CD
5506 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5507echo "$as_me: error: in \`$ac_pwd':" >&2;}
5508{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
9a0910c3
ILT
5509See \`config.log' for more details." >&5
5510echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5511See \`config.log' for more details." >&2;}
1d1f116d 5512 { (exit 1); exit 1; }; }; }
9a0910c3
ILT
5513fi
5514
5515ac_ext=c
5516ac_cpp='$CPP $CPPFLAGS'
5517ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5518ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5519ac_compiler_gnu=$ac_cv_c_compiler_gnu
5520
5521
5522echo "$as_me:$LINENO: checking for egrep" >&5
5523echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5524if test "${ac_cv_prog_egrep+set}" = set; then
5525 echo $ECHO_N "(cached) $ECHO_C" >&6
5526else
5527 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5528 then ac_cv_prog_egrep='grep -E'
5529 else ac_cv_prog_egrep='egrep'
5530 fi
5531fi
5532echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5533echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5534 EGREP=$ac_cv_prog_egrep
5535
5536
5537echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5538echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5539if test "${ac_cv_header_stdc+set}" = set; then
5540 echo $ECHO_N "(cached) $ECHO_C" >&6
5541else
5542 cat >conftest.$ac_ext <<_ACEOF
5543/* confdefs.h. */
5544_ACEOF
5545cat confdefs.h >>conftest.$ac_ext
5546cat >>conftest.$ac_ext <<_ACEOF
5547/* end confdefs.h. */
5548#include <stdlib.h>
5549#include <stdarg.h>
5550#include <string.h>
5551#include <float.h>
5552
5553int
5554main ()
5555{
5556
5557 ;
5558 return 0;
5559}
5560_ACEOF
5561rm -f conftest.$ac_objext
5562if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5563 (eval $ac_compile) 2>conftest.er1
5564 ac_status=$?
5565 grep -v '^ *+' conftest.er1 >conftest.err
5566 rm -f conftest.er1
5567 cat conftest.err >&5
5568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569 (exit $ac_status); } &&
b0074644
ILT
5570 { ac_try='test -z "$ac_c_werror_flag"
5571 || test ! -s conftest.err'
9a0910c3
ILT
5572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5573 (eval $ac_try) 2>&5
5574 ac_status=$?
5575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5576 (exit $ac_status); }; } &&
5577 { ac_try='test -s conftest.$ac_objext'
5578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5579 (eval $ac_try) 2>&5
5580 ac_status=$?
5581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582 (exit $ac_status); }; }; then
5583 ac_cv_header_stdc=yes
5584else
5585 echo "$as_me: failed program was:" >&5
5586sed 's/^/| /' conftest.$ac_ext >&5
5587
5588ac_cv_header_stdc=no
5589fi
5590rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5591
5592if test $ac_cv_header_stdc = yes; then
5593 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5594 cat >conftest.$ac_ext <<_ACEOF
5595/* confdefs.h. */
5596_ACEOF
5597cat confdefs.h >>conftest.$ac_ext
5598cat >>conftest.$ac_ext <<_ACEOF
5599/* end confdefs.h. */
5600#include <string.h>
5601
5602_ACEOF
5603if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5604 $EGREP "memchr" >/dev/null 2>&1; then
5605 :
5606else
5607 ac_cv_header_stdc=no
5608fi
5609rm -f conftest*
5610
5611fi
5612
5613if test $ac_cv_header_stdc = yes; then
5614 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5615 cat >conftest.$ac_ext <<_ACEOF
5616/* confdefs.h. */
5617_ACEOF
5618cat confdefs.h >>conftest.$ac_ext
5619cat >>conftest.$ac_ext <<_ACEOF
5620/* end confdefs.h. */
5621#include <stdlib.h>
5622
5623_ACEOF
5624if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5625 $EGREP "free" >/dev/null 2>&1; then
5626 :
5627else
5628 ac_cv_header_stdc=no
5629fi
5630rm -f conftest*
5631
5632fi
5633
5634if test $ac_cv_header_stdc = yes; then
5635 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5636 if test "$cross_compiling" = yes; then
5637 :
5638else
5639 cat >conftest.$ac_ext <<_ACEOF
5640/* confdefs.h. */
5641_ACEOF
5642cat confdefs.h >>conftest.$ac_ext
5643cat >>conftest.$ac_ext <<_ACEOF
5644/* end confdefs.h. */
5645#include <ctype.h>
5646#if ((' ' & 0x0FF) == 0x020)
5647# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5648# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5649#else
5650# define ISLOWER(c) \
5651 (('a' <= (c) && (c) <= 'i') \
5652 || ('j' <= (c) && (c) <= 'r') \
5653 || ('s' <= (c) && (c) <= 'z'))
5654# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5655#endif
5656
5657#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5658int
5659main ()
5660{
5661 int i;
5662 for (i = 0; i < 256; i++)
5663 if (XOR (islower (i), ISLOWER (i))
5664 || toupper (i) != TOUPPER (i))
5665 exit(2);
5666 exit (0);
5667}
5668_ACEOF
5669rm -f conftest$ac_exeext
5670if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5671 (eval $ac_link) 2>&5
5672 ac_status=$?
5673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5676 (eval $ac_try) 2>&5
5677 ac_status=$?
5678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679 (exit $ac_status); }; }; then
5680 :
5681else
5682 echo "$as_me: program exited with status $ac_status" >&5
5683echo "$as_me: failed program was:" >&5
5684sed 's/^/| /' conftest.$ac_ext >&5
5685
5686( exit $ac_status )
5687ac_cv_header_stdc=no
5688fi
5689rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5690fi
5691fi
5692fi
5693echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5694echo "${ECHO_T}$ac_cv_header_stdc" >&6
5695if test $ac_cv_header_stdc = yes; then
5696
5697cat >>confdefs.h <<\_ACEOF
5698#define STDC_HEADERS 1
5699_ACEOF
5700
5701fi
5702
5703# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5714 inttypes.h stdint.h unistd.h
5715do
5716as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5717echo "$as_me:$LINENO: checking for $ac_header" >&5
5718echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5719if eval "test \"\${$as_ac_Header+set}\" = set"; then
5720 echo $ECHO_N "(cached) $ECHO_C" >&6
5721else
5722 cat >conftest.$ac_ext <<_ACEOF
5723/* confdefs.h. */
5724_ACEOF
5725cat confdefs.h >>conftest.$ac_ext
5726cat >>conftest.$ac_ext <<_ACEOF
5727/* end confdefs.h. */
5728$ac_includes_default
5729
5730#include <$ac_header>
5731_ACEOF
5732rm -f conftest.$ac_objext
5733if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5734 (eval $ac_compile) 2>conftest.er1
5735 ac_status=$?
5736 grep -v '^ *+' conftest.er1 >conftest.err
5737 rm -f conftest.er1
5738 cat conftest.err >&5
5739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740 (exit $ac_status); } &&
b0074644
ILT
5741 { ac_try='test -z "$ac_c_werror_flag"
5742 || test ! -s conftest.err'
9a0910c3
ILT
5743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5744 (eval $ac_try) 2>&5
5745 ac_status=$?
5746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747 (exit $ac_status); }; } &&
5748 { ac_try='test -s conftest.$ac_objext'
5749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5750 (eval $ac_try) 2>&5
5751 ac_status=$?
5752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753 (exit $ac_status); }; }; then
5754 eval "$as_ac_Header=yes"
5755else
5756 echo "$as_me: failed program was:" >&5
5757sed 's/^/| /' conftest.$ac_ext >&5
5758
5759eval "$as_ac_Header=no"
5760fi
5761rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5762fi
5763echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5764echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5765if test `eval echo '${'$as_ac_Header'}'` = yes; then
5766 cat >>confdefs.h <<_ACEOF
5767#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5768_ACEOF
5769
5770fi
5771
5772done
5773
5774
5775echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
5776echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
5777if test "${ac_cv_search_zlibVersion+set}" = set; then
5778 echo $ECHO_N "(cached) $ECHO_C" >&6
5779else
5780 ac_func_search_save_LIBS=$LIBS
5781ac_cv_search_zlibVersion=no
5782cat >conftest.$ac_ext <<_ACEOF
5783/* confdefs.h. */
5784_ACEOF
5785cat confdefs.h >>conftest.$ac_ext
5786cat >>conftest.$ac_ext <<_ACEOF
5787/* end confdefs.h. */
5788
5789/* Override any gcc2 internal prototype to avoid an error. */
5790#ifdef __cplusplus
5791extern "C"
5792#endif
5793/* We use char because int might match the return type of a gcc2
5794 builtin and then its argument prototype would still apply. */
5795char zlibVersion ();
5796int
5797main ()
5798{
5799zlibVersion ();
5800 ;
5801 return 0;
5802}
5803_ACEOF
5804rm -f conftest.$ac_objext conftest$ac_exeext
5805if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5806 (eval $ac_link) 2>conftest.er1
5807 ac_status=$?
5808 grep -v '^ *+' conftest.er1 >conftest.err
5809 rm -f conftest.er1
5810 cat conftest.err >&5
5811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812 (exit $ac_status); } &&
b0074644
ILT
5813 { ac_try='test -z "$ac_c_werror_flag"
5814 || test ! -s conftest.err'
9a0910c3
ILT
5815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5816 (eval $ac_try) 2>&5
5817 ac_status=$?
5818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819 (exit $ac_status); }; } &&
5820 { ac_try='test -s conftest$ac_exeext'
5821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5822 (eval $ac_try) 2>&5
5823 ac_status=$?
5824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825 (exit $ac_status); }; }; then
5826 ac_cv_search_zlibVersion="none required"
5827else
5828 echo "$as_me: failed program was:" >&5
5829sed 's/^/| /' conftest.$ac_ext >&5
5830
5831fi
5832rm -f conftest.err conftest.$ac_objext \
5833 conftest$ac_exeext conftest.$ac_ext
5834if test "$ac_cv_search_zlibVersion" = no; then
5835 for ac_lib in z; do
5836 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5837 cat >conftest.$ac_ext <<_ACEOF
5838/* confdefs.h. */
5839_ACEOF
5840cat confdefs.h >>conftest.$ac_ext
5841cat >>conftest.$ac_ext <<_ACEOF
5842/* end confdefs.h. */
5843
5844/* Override any gcc2 internal prototype to avoid an error. */
5845#ifdef __cplusplus
5846extern "C"
5847#endif
5848/* We use char because int might match the return type of a gcc2
5849 builtin and then its argument prototype would still apply. */
5850char zlibVersion ();
5851int
5852main ()
5853{
5854zlibVersion ();
5855 ;
5856 return 0;
5857}
5858_ACEOF
5859rm -f conftest.$ac_objext conftest$ac_exeext
5860if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5861 (eval $ac_link) 2>conftest.er1
5862 ac_status=$?
5863 grep -v '^ *+' conftest.er1 >conftest.err
5864 rm -f conftest.er1
5865 cat conftest.err >&5
5866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867 (exit $ac_status); } &&
b0074644
ILT
5868 { ac_try='test -z "$ac_c_werror_flag"
5869 || test ! -s conftest.err'
9a0910c3
ILT
5870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5871 (eval $ac_try) 2>&5
5872 ac_status=$?
5873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874 (exit $ac_status); }; } &&
5875 { ac_try='test -s conftest$ac_exeext'
5876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5877 (eval $ac_try) 2>&5
5878 ac_status=$?
5879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880 (exit $ac_status); }; }; then
5881 ac_cv_search_zlibVersion="-l$ac_lib"
5882break
5883else
5884 echo "$as_me: failed program was:" >&5
5885sed 's/^/| /' conftest.$ac_ext >&5
5886
5887fi
5888rm -f conftest.err conftest.$ac_objext \
5889 conftest$ac_exeext conftest.$ac_ext
5890 done
5891fi
5892LIBS=$ac_func_search_save_LIBS
5893fi
5894echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
5895echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
5896if test "$ac_cv_search_zlibVersion" != no; then
5897 test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS"
5898
5899for ac_header in zlib.h
5900do
5901as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5902if eval "test \"\${$as_ac_Header+set}\" = set"; then
5903 echo "$as_me:$LINENO: checking for $ac_header" >&5
5904echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5905if eval "test \"\${$as_ac_Header+set}\" = set"; then
5906 echo $ECHO_N "(cached) $ECHO_C" >&6
5907fi
5908echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5909echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5910else
5911 # Is the header compilable?
5912echo "$as_me:$LINENO: checking $ac_header usability" >&5
5913echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5914cat >conftest.$ac_ext <<_ACEOF
5915/* confdefs.h. */
5916_ACEOF
5917cat confdefs.h >>conftest.$ac_ext
5918cat >>conftest.$ac_ext <<_ACEOF
5919/* end confdefs.h. */
5920$ac_includes_default
5921#include <$ac_header>
5922_ACEOF
5923rm -f conftest.$ac_objext
5924if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5925 (eval $ac_compile) 2>conftest.er1
5926 ac_status=$?
5927 grep -v '^ *+' conftest.er1 >conftest.err
5928 rm -f conftest.er1
5929 cat conftest.err >&5
5930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931 (exit $ac_status); } &&
b0074644
ILT
5932 { ac_try='test -z "$ac_c_werror_flag"
5933 || test ! -s conftest.err'
9a0910c3
ILT
5934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5935 (eval $ac_try) 2>&5
5936 ac_status=$?
5937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938 (exit $ac_status); }; } &&
5939 { ac_try='test -s conftest.$ac_objext'
5940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5941 (eval $ac_try) 2>&5
5942 ac_status=$?
5943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944 (exit $ac_status); }; }; then
5945 ac_header_compiler=yes
5946else
5947 echo "$as_me: failed program was:" >&5
5948sed 's/^/| /' conftest.$ac_ext >&5
5949
5950ac_header_compiler=no
5951fi
5952rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5953echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5954echo "${ECHO_T}$ac_header_compiler" >&6
5955
5956# Is the header present?
5957echo "$as_me:$LINENO: checking $ac_header presence" >&5
5958echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5959cat >conftest.$ac_ext <<_ACEOF
5960/* confdefs.h. */
5961_ACEOF
5962cat confdefs.h >>conftest.$ac_ext
5963cat >>conftest.$ac_ext <<_ACEOF
5964/* end confdefs.h. */
5965#include <$ac_header>
5966_ACEOF
5967if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5968 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5969 ac_status=$?
5970 grep -v '^ *+' conftest.er1 >conftest.err
5971 rm -f conftest.er1
5972 cat conftest.err >&5
5973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5974 (exit $ac_status); } >/dev/null; then
5975 if test -s conftest.err; then
5976 ac_cpp_err=$ac_c_preproc_warn_flag
5977 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5978 else
5979 ac_cpp_err=
5980 fi
5981else
5982 ac_cpp_err=yes
5983fi
5984if test -z "$ac_cpp_err"; then
5985 ac_header_preproc=yes
5986else
5987 echo "$as_me: failed program was:" >&5
5988sed 's/^/| /' conftest.$ac_ext >&5
5989
5990 ac_header_preproc=no
5991fi
5992rm -f conftest.err conftest.$ac_ext
5993echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5994echo "${ECHO_T}$ac_header_preproc" >&6
5995
5996# So? What about this header?
5997case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5998 yes:no: )
5999 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6000echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6001 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6002echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6003 ac_header_preproc=yes
6004 ;;
6005 no:yes:* )
6006 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6007echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6008 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6009echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6010 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6011echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6012 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6013echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6014 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6015echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6016 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6017echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6018 (
6019 cat <<\_ASBOX
6020## ------------------------------- ##
6021## Report this to the gold lists. ##
6022## ------------------------------- ##
6023_ASBOX
6024 ) |
6025 sed "s/^/$as_me: WARNING: /" >&2
6026 ;;
6027esac
6028echo "$as_me:$LINENO: checking for $ac_header" >&5
6029echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6030if eval "test \"\${$as_ac_Header+set}\" = set"; then
6031 echo $ECHO_N "(cached) $ECHO_C" >&6
6032else
6033 eval "$as_ac_Header=\$ac_header_preproc"
6034fi
6035echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6036echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6037
6038fi
6039if test `eval echo '${'$as_ac_Header'}'` = yes; then
6040 cat >>confdefs.h <<_ACEOF
6041#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6042_ACEOF
6043
6044fi
6045
6046done
6047
6048fi
6049
6050
7fcd0256
ILT
6051
6052if test "$ac_cv_search_zlibVersion" != "no"; then
6053 HAVE_ZLIB_TRUE=
6054 HAVE_ZLIB_FALSE='#'
6055else
6056 HAVE_ZLIB_TRUE='#'
6057 HAVE_ZLIB_FALSE=
6058fi
6059
6060
54dc6425
ILT
6061ac_ext=cc
6062ac_cpp='$CXXCPP $CPPFLAGS'
6063ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6064ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6065ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6066
6067
d288e464 6068
54dc6425
ILT
6069ac_ext=cc
6070ac_cpp='$CXXCPP $CPPFLAGS'
6071ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6072ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6073ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6074echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6075echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6076if test -z "$CXXCPP"; then
6077 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6078 echo $ECHO_N "(cached) $ECHO_C" >&6
6079else
6080 # Double quotes because CXXCPP needs to be expanded
6081 for CXXCPP in "$CXX -E" "/lib/cpp"
6082 do
6083 ac_preproc_ok=false
6084for ac_cxx_preproc_warn_flag in '' yes
6085do
6086 # Use a header file that comes with gcc, so configuring glibc
6087 # with a fresh cross-compiler works.
6088 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6089 # <limits.h> exists even on freestanding compilers.
6090 # On the NeXT, cc -E runs the code through the compiler's parser,
6091 # not just through cpp. "Syntax error" is here to catch this case.
6092 cat >conftest.$ac_ext <<_ACEOF
6093/* confdefs.h. */
6094_ACEOF
6095cat confdefs.h >>conftest.$ac_ext
6096cat >>conftest.$ac_ext <<_ACEOF
6097/* end confdefs.h. */
6098#ifdef __STDC__
6099# include <limits.h>
6100#else
6101# include <assert.h>
6102#endif
6103 Syntax error
6104_ACEOF
6105if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6106 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6107 ac_status=$?
6108 grep -v '^ *+' conftest.er1 >conftest.err
6109 rm -f conftest.er1
6110 cat conftest.err >&5
6111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112 (exit $ac_status); } >/dev/null; then
6113 if test -s conftest.err; then
6114 ac_cpp_err=$ac_cxx_preproc_warn_flag
6115 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6116 else
6117 ac_cpp_err=
6118 fi
6119else
6120 ac_cpp_err=yes
6121fi
6122if test -z "$ac_cpp_err"; then
6123 :
6124else
6125 echo "$as_me: failed program was:" >&5
6126sed 's/^/| /' conftest.$ac_ext >&5
6127
6128 # Broken: fails on valid input.
6129continue
6130fi
6131rm -f conftest.err conftest.$ac_ext
6132
6133 # OK, works on sane cases. Now check whether non-existent headers
6134 # can be detected and how.
6135 cat >conftest.$ac_ext <<_ACEOF
6136/* confdefs.h. */
6137_ACEOF
6138cat confdefs.h >>conftest.$ac_ext
6139cat >>conftest.$ac_ext <<_ACEOF
6140/* end confdefs.h. */
6141#include <ac_nonexistent.h>
6142_ACEOF
6143if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6144 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6145 ac_status=$?
6146 grep -v '^ *+' conftest.er1 >conftest.err
6147 rm -f conftest.er1
6148 cat conftest.err >&5
6149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150 (exit $ac_status); } >/dev/null; then
6151 if test -s conftest.err; then
6152 ac_cpp_err=$ac_cxx_preproc_warn_flag
6153 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6154 else
6155 ac_cpp_err=
6156 fi
6157else
6158 ac_cpp_err=yes
6159fi
6160if test -z "$ac_cpp_err"; then
6161 # Broken: success on invalid input.
6162continue
6163else
6164 echo "$as_me: failed program was:" >&5
6165sed 's/^/| /' conftest.$ac_ext >&5
6166
6167 # Passes both tests.
6168ac_preproc_ok=:
6169break
6170fi
6171rm -f conftest.err conftest.$ac_ext
6172
6173done
6174# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6175rm -f conftest.err conftest.$ac_ext
6176if $ac_preproc_ok; then
6177 break
6178fi
6179
6180 done
6181 ac_cv_prog_CXXCPP=$CXXCPP
6182
6183fi
6184 CXXCPP=$ac_cv_prog_CXXCPP
6185else
6186 ac_cv_prog_CXXCPP=$CXXCPP
6187fi
6188echo "$as_me:$LINENO: result: $CXXCPP" >&5
6189echo "${ECHO_T}$CXXCPP" >&6
6190ac_preproc_ok=false
6191for ac_cxx_preproc_warn_flag in '' yes
6192do
6193 # Use a header file that comes with gcc, so configuring glibc
6194 # with a fresh cross-compiler works.
6195 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6196 # <limits.h> exists even on freestanding compilers.
6197 # On the NeXT, cc -E runs the code through the compiler's parser,
6198 # not just through cpp. "Syntax error" is here to catch this case.
6199 cat >conftest.$ac_ext <<_ACEOF
6200/* confdefs.h. */
6201_ACEOF
6202cat confdefs.h >>conftest.$ac_ext
6203cat >>conftest.$ac_ext <<_ACEOF
6204/* end confdefs.h. */
6205#ifdef __STDC__
6206# include <limits.h>
6207#else
6208# include <assert.h>
6209#endif
6210 Syntax error
6211_ACEOF
6212if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6213 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6214 ac_status=$?
6215 grep -v '^ *+' conftest.er1 >conftest.err
6216 rm -f conftest.er1
6217 cat conftest.err >&5
6218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219 (exit $ac_status); } >/dev/null; then
6220 if test -s conftest.err; then
6221 ac_cpp_err=$ac_cxx_preproc_warn_flag
6222 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6223 else
6224 ac_cpp_err=
6225 fi
6226else
6227 ac_cpp_err=yes
6228fi
6229if test -z "$ac_cpp_err"; then
6230 :
6231else
6232 echo "$as_me: failed program was:" >&5
6233sed 's/^/| /' conftest.$ac_ext >&5
6234
6235 # Broken: fails on valid input.
6236continue
6237fi
6238rm -f conftest.err conftest.$ac_ext
6239
6240 # OK, works on sane cases. Now check whether non-existent headers
6241 # can be detected and how.
6242 cat >conftest.$ac_ext <<_ACEOF
6243/* confdefs.h. */
6244_ACEOF
6245cat confdefs.h >>conftest.$ac_ext
6246cat >>conftest.$ac_ext <<_ACEOF
6247/* end confdefs.h. */
6248#include <ac_nonexistent.h>
6249_ACEOF
6250if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6251 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6252 ac_status=$?
6253 grep -v '^ *+' conftest.er1 >conftest.err
6254 rm -f conftest.er1
6255 cat conftest.err >&5
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); } >/dev/null; then
6258 if test -s conftest.err; then
6259 ac_cpp_err=$ac_cxx_preproc_warn_flag
6260 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6261 else
6262 ac_cpp_err=
6263 fi
6264else
6265 ac_cpp_err=yes
6266fi
6267if test -z "$ac_cpp_err"; then
6268 # Broken: success on invalid input.
6269continue
6270else
6271 echo "$as_me: failed program was:" >&5
6272sed 's/^/| /' conftest.$ac_ext >&5
6273
6274 # Passes both tests.
6275ac_preproc_ok=:
6276break
6277fi
6278rm -f conftest.err conftest.$ac_ext
6279
6280done
6281# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6282rm -f conftest.err conftest.$ac_ext
6283if $ac_preproc_ok; then
6284 :
6285else
1d1f116d
CD
6286 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6287echo "$as_me: error: in \`$ac_pwd':" >&2;}
6288{ { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
54dc6425
ILT
6289See \`config.log' for more details." >&5
6290echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6291See \`config.log' for more details." >&2;}
1d1f116d 6292 { (exit 1); exit 1; }; }; }
54dc6425
ILT
6293fi
6294
6295ac_ext=cc
6296ac_cpp='$CXXCPP $CPPFLAGS'
6297ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6298ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6299ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6300
6301
54dc6425
ILT
6302
6303
6304for ac_header in tr1/unordered_set tr1/unordered_map
6305do
6306as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6307if eval "test \"\${$as_ac_Header+set}\" = set"; then
6308 echo "$as_me:$LINENO: checking for $ac_header" >&5
6309echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6310if eval "test \"\${$as_ac_Header+set}\" = set"; then
6311 echo $ECHO_N "(cached) $ECHO_C" >&6
6312fi
6313echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6314echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6315else
6316 # Is the header compilable?
6317echo "$as_me:$LINENO: checking $ac_header usability" >&5
6318echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6319cat >conftest.$ac_ext <<_ACEOF
6320/* confdefs.h. */
6321_ACEOF
6322cat confdefs.h >>conftest.$ac_ext
6323cat >>conftest.$ac_ext <<_ACEOF
6324/* end confdefs.h. */
6325$ac_includes_default
6326#include <$ac_header>
6327_ACEOF
6328rm -f conftest.$ac_objext
6329if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6330 (eval $ac_compile) 2>conftest.er1
6331 ac_status=$?
6332 grep -v '^ *+' conftest.er1 >conftest.err
6333 rm -f conftest.er1
6334 cat conftest.err >&5
6335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336 (exit $ac_status); } &&
b0074644
ILT
6337 { ac_try='test -z "$ac_cxx_werror_flag"
6338 || test ! -s conftest.err'
54dc6425
ILT
6339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6340 (eval $ac_try) 2>&5
6341 ac_status=$?
6342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343 (exit $ac_status); }; } &&
6344 { ac_try='test -s conftest.$ac_objext'
6345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6346 (eval $ac_try) 2>&5
6347 ac_status=$?
6348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349 (exit $ac_status); }; }; then
6350 ac_header_compiler=yes
6351else
6352 echo "$as_me: failed program was:" >&5
6353sed 's/^/| /' conftest.$ac_ext >&5
6354
6355ac_header_compiler=no
6356fi
6357rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6358echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6359echo "${ECHO_T}$ac_header_compiler" >&6
6360
6361# Is the header present?
6362echo "$as_me:$LINENO: checking $ac_header presence" >&5
6363echo $ECHO_N "checking $ac_header presence... $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#include <$ac_header>
6371_ACEOF
6372if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6373 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6374 ac_status=$?
6375 grep -v '^ *+' conftest.er1 >conftest.err
6376 rm -f conftest.er1
6377 cat conftest.err >&5
6378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379 (exit $ac_status); } >/dev/null; then
6380 if test -s conftest.err; then
6381 ac_cpp_err=$ac_cxx_preproc_warn_flag
6382 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6383 else
6384 ac_cpp_err=
6385 fi
6386else
6387 ac_cpp_err=yes
6388fi
6389if test -z "$ac_cpp_err"; then
6390 ac_header_preproc=yes
6391else
6392 echo "$as_me: failed program was:" >&5
6393sed 's/^/| /' conftest.$ac_ext >&5
6394
6395 ac_header_preproc=no
6396fi
6397rm -f conftest.err conftest.$ac_ext
6398echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6399echo "${ECHO_T}$ac_header_preproc" >&6
6400
6401# So? What about this header?
6402case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
6403 yes:no: )
6404 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6405echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6406 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6407echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6408 ac_header_preproc=yes
6409 ;;
6410 no:yes:* )
6411 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6412echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6413 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6414echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6415 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6416echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6417 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6418echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6419 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6420echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6421 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6422echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6423 (
6424 cat <<\_ASBOX
8486ee48
ILT
6425## ------------------------------- ##
6426## Report this to the gold lists. ##
6427## ------------------------------- ##
54dc6425
ILT
6428_ASBOX
6429 ) |
6430 sed "s/^/$as_me: WARNING: /" >&2
6431 ;;
6432esac
6433echo "$as_me:$LINENO: checking for $ac_header" >&5
6434echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6435if eval "test \"\${$as_ac_Header+set}\" = set"; then
6436 echo $ECHO_N "(cached) $ECHO_C" >&6
6437else
6438 eval "$as_ac_Header=\$ac_header_preproc"
6439fi
6440echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6441echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6442
6443fi
6444if test `eval echo '${'$as_ac_Header'}'` = yes; then
6445 cat >>confdefs.h <<_ACEOF
6446#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6447_ACEOF
6448
6449fi
6450
6451done
6452
6453
6454
6455for ac_header in ext/hash_map ext/hash_set
6456do
6457as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6458if eval "test \"\${$as_ac_Header+set}\" = set"; then
6459 echo "$as_me:$LINENO: checking for $ac_header" >&5
15d5fa16
ILT
6460echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6461if eval "test \"\${$as_ac_Header+set}\" = set"; then
6462 echo $ECHO_N "(cached) $ECHO_C" >&6
6463fi
6464echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6465echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6466else
6467 # Is the header compilable?
6468echo "$as_me:$LINENO: checking $ac_header usability" >&5
6469echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6470cat >conftest.$ac_ext <<_ACEOF
6471/* confdefs.h. */
6472_ACEOF
6473cat confdefs.h >>conftest.$ac_ext
6474cat >>conftest.$ac_ext <<_ACEOF
6475/* end confdefs.h. */
6476$ac_includes_default
6477#include <$ac_header>
6478_ACEOF
6479rm -f conftest.$ac_objext
6480if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6481 (eval $ac_compile) 2>conftest.er1
6482 ac_status=$?
6483 grep -v '^ *+' conftest.er1 >conftest.err
6484 rm -f conftest.er1
6485 cat conftest.err >&5
6486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487 (exit $ac_status); } &&
6488 { ac_try='test -z "$ac_cxx_werror_flag"
6489 || test ! -s conftest.err'
6490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6491 (eval $ac_try) 2>&5
6492 ac_status=$?
6493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494 (exit $ac_status); }; } &&
6495 { ac_try='test -s conftest.$ac_objext'
6496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6497 (eval $ac_try) 2>&5
6498 ac_status=$?
6499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6500 (exit $ac_status); }; }; then
6501 ac_header_compiler=yes
6502else
6503 echo "$as_me: failed program was:" >&5
6504sed 's/^/| /' conftest.$ac_ext >&5
6505
6506ac_header_compiler=no
6507fi
6508rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6509echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6510echo "${ECHO_T}$ac_header_compiler" >&6
6511
6512# Is the header present?
6513echo "$as_me:$LINENO: checking $ac_header presence" >&5
6514echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6515cat >conftest.$ac_ext <<_ACEOF
6516/* confdefs.h. */
6517_ACEOF
6518cat confdefs.h >>conftest.$ac_ext
6519cat >>conftest.$ac_ext <<_ACEOF
6520/* end confdefs.h. */
6521#include <$ac_header>
6522_ACEOF
6523if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6524 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6525 ac_status=$?
6526 grep -v '^ *+' conftest.er1 >conftest.err
6527 rm -f conftest.er1
6528 cat conftest.err >&5
6529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530 (exit $ac_status); } >/dev/null; then
6531 if test -s conftest.err; then
6532 ac_cpp_err=$ac_cxx_preproc_warn_flag
6533 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6534 else
6535 ac_cpp_err=
6536 fi
6537else
6538 ac_cpp_err=yes
6539fi
6540if test -z "$ac_cpp_err"; then
6541 ac_header_preproc=yes
6542else
6543 echo "$as_me: failed program was:" >&5
6544sed 's/^/| /' conftest.$ac_ext >&5
6545
6546 ac_header_preproc=no
6547fi
6548rm -f conftest.err conftest.$ac_ext
6549echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6550echo "${ECHO_T}$ac_header_preproc" >&6
6551
6552# So? What about this header?
6553case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
6554 yes:no: )
6555 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6556echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6557 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6558echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6559 ac_header_preproc=yes
6560 ;;
6561 no:yes:* )
6562 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6563echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6564 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6565echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6566 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6567echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6568 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6569echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6570 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6571echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6572 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6573echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6574 (
6575 cat <<\_ASBOX
6576## ------------------------------- ##
6577## Report this to the gold lists. ##
6578## ------------------------------- ##
6579_ASBOX
6580 ) |
6581 sed "s/^/$as_me: WARNING: /" >&2
6582 ;;
6583esac
6584echo "$as_me:$LINENO: checking for $ac_header" >&5
6585echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6586if eval "test \"\${$as_ac_Header+set}\" = set"; then
6587 echo $ECHO_N "(cached) $ECHO_C" >&6
6588else
6589 eval "$as_ac_Header=\$ac_header_preproc"
6590fi
6591echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6592echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6593
6594fi
6595if test `eval echo '${'$as_ac_Header'}'` = yes; then
6596 cat >>confdefs.h <<_ACEOF
6597#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6598_ACEOF
6599
6600fi
6601
6602done
6603
6604
6605for ac_header in byteswap.h
6606do
6607as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6608if eval "test \"\${$as_ac_Header+set}\" = set"; then
6609 echo "$as_me:$LINENO: checking for $ac_header" >&5
54dc6425
ILT
6610echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6611if eval "test \"\${$as_ac_Header+set}\" = set"; then
6612 echo $ECHO_N "(cached) $ECHO_C" >&6
6613fi
6614echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6615echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6616else
6617 # Is the header compilable?
6618echo "$as_me:$LINENO: checking $ac_header usability" >&5
6619echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6620cat >conftest.$ac_ext <<_ACEOF
6621/* confdefs.h. */
6622_ACEOF
6623cat confdefs.h >>conftest.$ac_ext
6624cat >>conftest.$ac_ext <<_ACEOF
6625/* end confdefs.h. */
6626$ac_includes_default
6627#include <$ac_header>
6628_ACEOF
6629rm -f conftest.$ac_objext
6630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6631 (eval $ac_compile) 2>conftest.er1
6632 ac_status=$?
6633 grep -v '^ *+' conftest.er1 >conftest.err
6634 rm -f conftest.er1
6635 cat conftest.err >&5
6636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6637 (exit $ac_status); } &&
b0074644
ILT
6638 { ac_try='test -z "$ac_cxx_werror_flag"
6639 || test ! -s conftest.err'
54dc6425
ILT
6640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6641 (eval $ac_try) 2>&5
6642 ac_status=$?
6643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6644 (exit $ac_status); }; } &&
6645 { ac_try='test -s conftest.$ac_objext'
6646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6647 (eval $ac_try) 2>&5
6648 ac_status=$?
6649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6650 (exit $ac_status); }; }; then
6651 ac_header_compiler=yes
6652else
6653 echo "$as_me: failed program was:" >&5
6654sed 's/^/| /' conftest.$ac_ext >&5
6655
6656ac_header_compiler=no
6657fi
6658rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6659echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6660echo "${ECHO_T}$ac_header_compiler" >&6
6661
6662# Is the header present?
6663echo "$as_me:$LINENO: checking $ac_header presence" >&5
6664echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6665cat >conftest.$ac_ext <<_ACEOF
6666/* confdefs.h. */
6667_ACEOF
6668cat confdefs.h >>conftest.$ac_ext
6669cat >>conftest.$ac_ext <<_ACEOF
6670/* end confdefs.h. */
6671#include <$ac_header>
6672_ACEOF
6673if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6674 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6675 ac_status=$?
6676 grep -v '^ *+' conftest.er1 >conftest.err
6677 rm -f conftest.er1
6678 cat conftest.err >&5
6679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680 (exit $ac_status); } >/dev/null; then
6681 if test -s conftest.err; then
6682 ac_cpp_err=$ac_cxx_preproc_warn_flag
6683 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6684 else
6685 ac_cpp_err=
6686 fi
6687else
6688 ac_cpp_err=yes
6689fi
6690if test -z "$ac_cpp_err"; then
6691 ac_header_preproc=yes
6692else
6693 echo "$as_me: failed program was:" >&5
6694sed 's/^/| /' conftest.$ac_ext >&5
6695
6696 ac_header_preproc=no
6697fi
6698rm -f conftest.err conftest.$ac_ext
6699echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6700echo "${ECHO_T}$ac_header_preproc" >&6
6701
6702# So? What about this header?
6703case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
6704 yes:no: )
6705 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6706echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6707 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6708echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6709 ac_header_preproc=yes
6710 ;;
6711 no:yes:* )
6712 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6713echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6714 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6715echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6716 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6717echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6718 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6719echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6720 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6721echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6722 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6723echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6724 (
6725 cat <<\_ASBOX
8486ee48
ILT
6726## ------------------------------- ##
6727## Report this to the gold lists. ##
6728## ------------------------------- ##
54dc6425
ILT
6729_ASBOX
6730 ) |
6731 sed "s/^/$as_me: WARNING: /" >&2
6732 ;;
6733esac
6734echo "$as_me:$LINENO: checking for $ac_header" >&5
6735echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6736if eval "test \"\${$as_ac_Header+set}\" = set"; then
6737 echo $ECHO_N "(cached) $ECHO_C" >&6
6738else
6739 eval "$as_ac_Header=\$ac_header_preproc"
6740fi
6741echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6742echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6743
6744fi
6745if test `eval echo '${'$as_ac_Header'}'` = yes; then
6746 cat >>confdefs.h <<_ACEOF
6747#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6748_ACEOF
6749
6750fi
6751
6752done
6753
d288e464 6754
9201d894
ILT
6755
6756for ac_func in mallinfo posix_fallocate
e44fcf3b
ILT
6757do
6758as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6759echo "$as_me:$LINENO: checking for $ac_func" >&5
6760echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6761if eval "test \"\${$as_ac_var+set}\" = set"; then
6762 echo $ECHO_N "(cached) $ECHO_C" >&6
6763else
6764 cat >conftest.$ac_ext <<_ACEOF
6765/* confdefs.h. */
6766_ACEOF
6767cat confdefs.h >>conftest.$ac_ext
6768cat >>conftest.$ac_ext <<_ACEOF
6769/* end confdefs.h. */
6770/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6771 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6772#define $ac_func innocuous_$ac_func
6773
6774/* System header to define __stub macros and hopefully few prototypes,
6775 which can conflict with char $ac_func (); below.
6776 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6777 <limits.h> exists even on freestanding compilers. */
6778
6779#ifdef __STDC__
6780# include <limits.h>
6781#else
6782# include <assert.h>
6783#endif
6784
6785#undef $ac_func
6786
6787/* Override any gcc2 internal prototype to avoid an error. */
6788#ifdef __cplusplus
6789extern "C"
6790{
6791#endif
6792/* We use char because int might match the return type of a gcc2
6793 builtin and then its argument prototype would still apply. */
6794char $ac_func ();
6795/* The GNU C library defines this for functions which it implements
6796 to always fail with ENOSYS. Some functions are actually named
6797 something starting with __ and the normal name is an alias. */
6798#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6799choke me
6800#else
6801char (*f) () = $ac_func;
6802#endif
6803#ifdef __cplusplus
6804}
6805#endif
6806
6807int
6808main ()
6809{
6810return f != $ac_func;
6811 ;
6812 return 0;
6813}
6814_ACEOF
6815rm -f conftest.$ac_objext conftest$ac_exeext
6816if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6817 (eval $ac_link) 2>conftest.er1
6818 ac_status=$?
6819 grep -v '^ *+' conftest.er1 >conftest.err
6820 rm -f conftest.er1
6821 cat conftest.err >&5
6822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823 (exit $ac_status); } &&
b0074644
ILT
6824 { ac_try='test -z "$ac_cxx_werror_flag"
6825 || test ! -s conftest.err'
e44fcf3b
ILT
6826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6827 (eval $ac_try) 2>&5
6828 ac_status=$?
6829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830 (exit $ac_status); }; } &&
6831 { ac_try='test -s conftest$ac_exeext'
6832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6833 (eval $ac_try) 2>&5
6834 ac_status=$?
6835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836 (exit $ac_status); }; }; then
6837 eval "$as_ac_var=yes"
6838else
6839 echo "$as_me: failed program was:" >&5
6840sed 's/^/| /' conftest.$ac_ext >&5
6841
6842eval "$as_ac_var=no"
6843fi
6844rm -f conftest.err conftest.$ac_objext \
6845 conftest$ac_exeext conftest.$ac_ext
6846fi
6847echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6848echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6849if test `eval echo '${'$as_ac_var'}'` = yes; then
6850 cat >>confdefs.h <<_ACEOF
6851#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6852_ACEOF
6853
6854fi
6855done
6856
1b77ea50
ILT
6857echo "$as_me:$LINENO: checking whether basename is declared" >&5
6858echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
6859if test "${ac_cv_have_decl_basename+set}" = set; then
6860 echo $ECHO_N "(cached) $ECHO_C" >&6
6861else
6862 cat >conftest.$ac_ext <<_ACEOF
6863/* confdefs.h. */
6864_ACEOF
6865cat confdefs.h >>conftest.$ac_ext
6866cat >>conftest.$ac_ext <<_ACEOF
6867/* end confdefs.h. */
6868$ac_includes_default
6869int
6870main ()
6871{
6872#ifndef basename
6873 char *p = (char *) basename;
6874#endif
6875
6876 ;
6877 return 0;
6878}
6879_ACEOF
6880rm -f conftest.$ac_objext
6881if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6882 (eval $ac_compile) 2>conftest.er1
6883 ac_status=$?
6884 grep -v '^ *+' conftest.er1 >conftest.err
6885 rm -f conftest.er1
6886 cat conftest.err >&5
6887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6888 (exit $ac_status); } &&
6889 { ac_try='test -z "$ac_cxx_werror_flag"
6890 || test ! -s conftest.err'
6891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6892 (eval $ac_try) 2>&5
6893 ac_status=$?
6894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6895 (exit $ac_status); }; } &&
6896 { ac_try='test -s conftest.$ac_objext'
6897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6898 (eval $ac_try) 2>&5
6899 ac_status=$?
6900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6901 (exit $ac_status); }; }; then
6902 ac_cv_have_decl_basename=yes
6903else
6904 echo "$as_me: failed program was:" >&5
6905sed 's/^/| /' conftest.$ac_ext >&5
6906
6907ac_cv_have_decl_basename=no
6908fi
6909rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6910fi
6911echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
6912echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
6913if test $ac_cv_have_decl_basename = yes; then
6914
6915cat >>confdefs.h <<_ACEOF
6916#define HAVE_DECL_BASENAME 1
6917_ACEOF
6918
6919
6920else
6921 cat >>confdefs.h <<_ACEOF
6922#define HAVE_DECL_BASENAME 0
6923_ACEOF
6924
6925
6926fi
6927echo "$as_me:$LINENO: checking whether ffs is declared" >&5
6928echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
6929if test "${ac_cv_have_decl_ffs+set}" = set; then
6930 echo $ECHO_N "(cached) $ECHO_C" >&6
6931else
6932 cat >conftest.$ac_ext <<_ACEOF
6933/* confdefs.h. */
6934_ACEOF
6935cat confdefs.h >>conftest.$ac_ext
6936cat >>conftest.$ac_ext <<_ACEOF
6937/* end confdefs.h. */
6938$ac_includes_default
6939int
6940main ()
6941{
6942#ifndef ffs
6943 char *p = (char *) ffs;
6944#endif
6945
6946 ;
6947 return 0;
6948}
6949_ACEOF
6950rm -f conftest.$ac_objext
6951if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6952 (eval $ac_compile) 2>conftest.er1
6953 ac_status=$?
6954 grep -v '^ *+' conftest.er1 >conftest.err
6955 rm -f conftest.er1
6956 cat conftest.err >&5
6957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6958 (exit $ac_status); } &&
6959 { ac_try='test -z "$ac_cxx_werror_flag"
6960 || test ! -s conftest.err'
6961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6962 (eval $ac_try) 2>&5
6963 ac_status=$?
6964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6965 (exit $ac_status); }; } &&
6966 { ac_try='test -s conftest.$ac_objext'
6967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6968 (eval $ac_try) 2>&5
6969 ac_status=$?
6970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6971 (exit $ac_status); }; }; then
6972 ac_cv_have_decl_ffs=yes
6973else
6974 echo "$as_me: failed program was:" >&5
6975sed 's/^/| /' conftest.$ac_ext >&5
6976
6977ac_cv_have_decl_ffs=no
6978fi
6979rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6980fi
6981echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
6982echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
6983if test $ac_cv_have_decl_ffs = yes; then
6984
6985cat >>confdefs.h <<_ACEOF
6986#define HAVE_DECL_FFS 1
6987_ACEOF
6988
6989
6990else
6991 cat >>confdefs.h <<_ACEOF
6992#define HAVE_DECL_FFS 0
6993_ACEOF
6994
6995
6996fi
6997echo "$as_me:$LINENO: checking whether asprintf is declared" >&5
6998echo $ECHO_N "checking whether asprintf is declared... $ECHO_C" >&6
6999if test "${ac_cv_have_decl_asprintf+set}" = set; then
7000 echo $ECHO_N "(cached) $ECHO_C" >&6
7001else
7002 cat >conftest.$ac_ext <<_ACEOF
7003/* confdefs.h. */
7004_ACEOF
7005cat confdefs.h >>conftest.$ac_ext
7006cat >>conftest.$ac_ext <<_ACEOF
7007/* end confdefs.h. */
7008$ac_includes_default
7009int
7010main ()
7011{
7012#ifndef asprintf
7013 char *p = (char *) asprintf;
7014#endif
7015
7016 ;
7017 return 0;
7018}
7019_ACEOF
7020rm -f conftest.$ac_objext
7021if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7022 (eval $ac_compile) 2>conftest.er1
7023 ac_status=$?
7024 grep -v '^ *+' conftest.er1 >conftest.err
7025 rm -f conftest.er1
7026 cat conftest.err >&5
7027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028 (exit $ac_status); } &&
7029 { ac_try='test -z "$ac_cxx_werror_flag"
7030 || test ! -s conftest.err'
7031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7032 (eval $ac_try) 2>&5
7033 ac_status=$?
7034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7035 (exit $ac_status); }; } &&
7036 { ac_try='test -s conftest.$ac_objext'
7037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7038 (eval $ac_try) 2>&5
7039 ac_status=$?
7040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7041 (exit $ac_status); }; }; then
7042 ac_cv_have_decl_asprintf=yes
7043else
7044 echo "$as_me: failed program was:" >&5
7045sed 's/^/| /' conftest.$ac_ext >&5
7046
7047ac_cv_have_decl_asprintf=no
7048fi
7049rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7050fi
7051echo "$as_me:$LINENO: result: $ac_cv_have_decl_asprintf" >&5
7052echo "${ECHO_T}$ac_cv_have_decl_asprintf" >&6
7053if test $ac_cv_have_decl_asprintf = yes; then
7054
7055cat >>confdefs.h <<_ACEOF
7056#define HAVE_DECL_ASPRINTF 1
7057_ACEOF
7058
7059
7060else
7061 cat >>confdefs.h <<_ACEOF
7062#define HAVE_DECL_ASPRINTF 0
7063_ACEOF
7064
7065
7066fi
7067echo "$as_me:$LINENO: checking whether vasprintf is declared" >&5
7068echo $ECHO_N "checking whether vasprintf is declared... $ECHO_C" >&6
7069if test "${ac_cv_have_decl_vasprintf+set}" = set; then
7070 echo $ECHO_N "(cached) $ECHO_C" >&6
7071else
7072 cat >conftest.$ac_ext <<_ACEOF
7073/* confdefs.h. */
7074_ACEOF
7075cat confdefs.h >>conftest.$ac_ext
7076cat >>conftest.$ac_ext <<_ACEOF
7077/* end confdefs.h. */
7078$ac_includes_default
7079int
7080main ()
7081{
7082#ifndef vasprintf
7083 char *p = (char *) vasprintf;
7084#endif
7085
7086 ;
7087 return 0;
7088}
7089_ACEOF
7090rm -f conftest.$ac_objext
7091if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7092 (eval $ac_compile) 2>conftest.er1
7093 ac_status=$?
7094 grep -v '^ *+' conftest.er1 >conftest.err
7095 rm -f conftest.er1
7096 cat conftest.err >&5
7097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7098 (exit $ac_status); } &&
7099 { ac_try='test -z "$ac_cxx_werror_flag"
7100 || test ! -s conftest.err'
7101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7102 (eval $ac_try) 2>&5
7103 ac_status=$?
7104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7105 (exit $ac_status); }; } &&
7106 { ac_try='test -s conftest.$ac_objext'
7107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7108 (eval $ac_try) 2>&5
7109 ac_status=$?
7110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7111 (exit $ac_status); }; }; then
7112 ac_cv_have_decl_vasprintf=yes
7113else
7114 echo "$as_me: failed program was:" >&5
7115sed 's/^/| /' conftest.$ac_ext >&5
7116
7117ac_cv_have_decl_vasprintf=no
7118fi
7119rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7120fi
7121echo "$as_me:$LINENO: result: $ac_cv_have_decl_vasprintf" >&5
7122echo "${ECHO_T}$ac_cv_have_decl_vasprintf" >&6
7123if test $ac_cv_have_decl_vasprintf = yes; then
7124
7125cat >>confdefs.h <<_ACEOF
7126#define HAVE_DECL_VASPRINTF 1
7127_ACEOF
7128
7129
7130else
7131 cat >>confdefs.h <<_ACEOF
7132#define HAVE_DECL_VASPRINTF 0
7133_ACEOF
7134
7135
7136fi
7137echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
7138echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
7139if test "${ac_cv_have_decl_snprintf+set}" = set; then
7140 echo $ECHO_N "(cached) $ECHO_C" >&6
7141else
7142 cat >conftest.$ac_ext <<_ACEOF
7143/* confdefs.h. */
7144_ACEOF
7145cat confdefs.h >>conftest.$ac_ext
7146cat >>conftest.$ac_ext <<_ACEOF
7147/* end confdefs.h. */
7148$ac_includes_default
7149int
7150main ()
7151{
7152#ifndef snprintf
7153 char *p = (char *) snprintf;
7154#endif
7155
7156 ;
7157 return 0;
7158}
7159_ACEOF
7160rm -f conftest.$ac_objext
7161if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7162 (eval $ac_compile) 2>conftest.er1
7163 ac_status=$?
7164 grep -v '^ *+' conftest.er1 >conftest.err
7165 rm -f conftest.er1
7166 cat conftest.err >&5
7167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7168 (exit $ac_status); } &&
7169 { ac_try='test -z "$ac_cxx_werror_flag"
7170 || test ! -s conftest.err'
7171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7172 (eval $ac_try) 2>&5
7173 ac_status=$?
7174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7175 (exit $ac_status); }; } &&
7176 { ac_try='test -s conftest.$ac_objext'
7177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7178 (eval $ac_try) 2>&5
7179 ac_status=$?
7180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7181 (exit $ac_status); }; }; then
7182 ac_cv_have_decl_snprintf=yes
7183else
7184 echo "$as_me: failed program was:" >&5
7185sed 's/^/| /' conftest.$ac_ext >&5
7186
7187ac_cv_have_decl_snprintf=no
7188fi
7189rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7190fi
7191echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
7192echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
7193if test $ac_cv_have_decl_snprintf = yes; then
7194
7195cat >>confdefs.h <<_ACEOF
7196#define HAVE_DECL_SNPRINTF 1
7197_ACEOF
7198
7199
7200else
7201 cat >>confdefs.h <<_ACEOF
7202#define HAVE_DECL_SNPRINTF 0
7203_ACEOF
7204
7205
7206fi
7207echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
7208echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
7209if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
7210 echo $ECHO_N "(cached) $ECHO_C" >&6
7211else
7212 cat >conftest.$ac_ext <<_ACEOF
7213/* confdefs.h. */
7214_ACEOF
7215cat confdefs.h >>conftest.$ac_ext
7216cat >>conftest.$ac_ext <<_ACEOF
7217/* end confdefs.h. */
7218$ac_includes_default
7219int
7220main ()
7221{
7222#ifndef vsnprintf
7223 char *p = (char *) vsnprintf;
7224#endif
7225
7226 ;
7227 return 0;
7228}
7229_ACEOF
7230rm -f conftest.$ac_objext
7231if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7232 (eval $ac_compile) 2>conftest.er1
7233 ac_status=$?
7234 grep -v '^ *+' conftest.er1 >conftest.err
7235 rm -f conftest.er1
7236 cat conftest.err >&5
7237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7238 (exit $ac_status); } &&
7239 { ac_try='test -z "$ac_cxx_werror_flag"
7240 || test ! -s conftest.err'
7241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7242 (eval $ac_try) 2>&5
7243 ac_status=$?
7244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7245 (exit $ac_status); }; } &&
7246 { ac_try='test -s conftest.$ac_objext'
7247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7248 (eval $ac_try) 2>&5
7249 ac_status=$?
7250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7251 (exit $ac_status); }; }; then
7252 ac_cv_have_decl_vsnprintf=yes
7253else
7254 echo "$as_me: failed program was:" >&5
7255sed 's/^/| /' conftest.$ac_ext >&5
7256
7257ac_cv_have_decl_vsnprintf=no
7258fi
7259rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7260fi
7261echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
7262echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
7263if test $ac_cv_have_decl_vsnprintf = yes; then
7264
7265cat >>confdefs.h <<_ACEOF
7266#define HAVE_DECL_VSNPRINTF 1
7267_ACEOF
7268
7269
7270else
7271 cat >>confdefs.h <<_ACEOF
7272#define HAVE_DECL_VSNPRINTF 0
7273_ACEOF
7274
7275
7276fi
7277echo "$as_me:$LINENO: checking whether strverscmp is declared" >&5
7278echo $ECHO_N "checking whether strverscmp is declared... $ECHO_C" >&6
7279if test "${ac_cv_have_decl_strverscmp+set}" = set; then
7280 echo $ECHO_N "(cached) $ECHO_C" >&6
7281else
7282 cat >conftest.$ac_ext <<_ACEOF
7283/* confdefs.h. */
7284_ACEOF
7285cat confdefs.h >>conftest.$ac_ext
7286cat >>conftest.$ac_ext <<_ACEOF
7287/* end confdefs.h. */
7288$ac_includes_default
7289int
7290main ()
7291{
7292#ifndef strverscmp
7293 char *p = (char *) strverscmp;
7294#endif
7295
7296 ;
7297 return 0;
7298}
7299_ACEOF
7300rm -f conftest.$ac_objext
7301if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7302 (eval $ac_compile) 2>conftest.er1
7303 ac_status=$?
7304 grep -v '^ *+' conftest.er1 >conftest.err
7305 rm -f conftest.er1
7306 cat conftest.err >&5
7307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7308 (exit $ac_status); } &&
7309 { ac_try='test -z "$ac_cxx_werror_flag"
7310 || test ! -s conftest.err'
7311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7312 (eval $ac_try) 2>&5
7313 ac_status=$?
7314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7315 (exit $ac_status); }; } &&
7316 { ac_try='test -s conftest.$ac_objext'
7317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7318 (eval $ac_try) 2>&5
7319 ac_status=$?
7320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7321 (exit $ac_status); }; }; then
7322 ac_cv_have_decl_strverscmp=yes
7323else
7324 echo "$as_me: failed program was:" >&5
7325sed 's/^/| /' conftest.$ac_ext >&5
7326
7327ac_cv_have_decl_strverscmp=no
7328fi
7329rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7330fi
7331echo "$as_me:$LINENO: result: $ac_cv_have_decl_strverscmp" >&5
7332echo "${ECHO_T}$ac_cv_have_decl_strverscmp" >&6
7333if test $ac_cv_have_decl_strverscmp = yes; then
7334
7335cat >>confdefs.h <<_ACEOF
7336#define HAVE_DECL_STRVERSCMP 1
7337_ACEOF
7338
7339
7340else
7341 cat >>confdefs.h <<_ACEOF
7342#define HAVE_DECL_STRVERSCMP 0
7343_ACEOF
7344
7345
7346fi
7347
7348
e44fcf3b 7349
40fde488
CD
7350# Use of ::std::tr1::unordered_map::rehash causes undefined symbols
7351# at link time with some versions of GCC.
7352echo "$as_me:$LINENO: checking whether ::std::tr1::unordered_map::rehash is usable." >&5
7353echo $ECHO_N "checking whether ::std::tr1::unordered_map::rehash is usable.... $ECHO_C" >&6
7354if test "${gold_cv_unordered_map_rehash+set}" = set; then
7355 echo $ECHO_N "(cached) $ECHO_C" >&6
7356else
7357 cat >conftest.$ac_ext <<_ACEOF
7358/* confdefs.h. */
7359_ACEOF
7360cat confdefs.h >>conftest.$ac_ext
7361cat >>conftest.$ac_ext <<_ACEOF
7362/* end confdefs.h. */
7363
7364#include <tr1/unordered_map>
7365void bar() { ::std::tr1::unordered_map<int, int> x; x.rehash(10); }
7366
7367int
7368main ()
7369{
7370
7371 ;
7372 return 0;
7373}
7374_ACEOF
7375rm -f conftest.$ac_objext conftest$ac_exeext
7376if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7377 (eval $ac_link) 2>conftest.er1
7378 ac_status=$?
7379 grep -v '^ *+' conftest.er1 >conftest.err
7380 rm -f conftest.er1
7381 cat conftest.err >&5
7382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383 (exit $ac_status); } &&
7384 { ac_try='test -z "$ac_cxx_werror_flag"
7385 || test ! -s conftest.err'
7386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7387 (eval $ac_try) 2>&5
7388 ac_status=$?
7389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390 (exit $ac_status); }; } &&
7391 { ac_try='test -s conftest$ac_exeext'
7392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7393 (eval $ac_try) 2>&5
7394 ac_status=$?
7395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396 (exit $ac_status); }; }; then
7397 gold_cv_unordered_map_rehash=yes
7398else
7399 echo "$as_me: failed program was:" >&5
7400sed 's/^/| /' conftest.$ac_ext >&5
7401
7402gold_cv_unordered_map_rehash=no
7403fi
7404rm -f conftest.err conftest.$ac_objext \
7405 conftest$ac_exeext conftest.$ac_ext
7406fi
7407echo "$as_me:$LINENO: result: $gold_cv_unordered_map_rehash" >&5
7408echo "${ECHO_T}$gold_cv_unordered_map_rehash" >&6
7409if test "$gold_cv_unordered_map_rehash" = "yes"; then
7410
7411cat >>confdefs.h <<\_ACEOF
7412#define HAVE_TR1_UNORDERED_MAP_REHASH 1
7413_ACEOF
7414
7415fi
7416
04bf7072
ILT
7417# gcc 4.3.0 doesn't recognize the printf attribute on a template
7418# function. Check for that. This is gcc bug 35546. This test can
7419# probably be removed after the bug has been fixed for a while.
7420echo "$as_me:$LINENO: checking whether we can use attributes with template functions" >&5
7421echo $ECHO_N "checking whether we can use attributes with template functions... $ECHO_C" >&6
7422if test "${gold_cv_template_attribute+set}" = set; then
7423 echo $ECHO_N "(cached) $ECHO_C" >&6
7424else
7425 cat >conftest.$ac_ext <<_ACEOF
7426
7427template<typename T> extern void foo(const char*, ...)
7428 __attribute__ ((__format__ (__printf__, 1, 2)));
7429template<typename T> void foo(const char* format, ...) {}
7430void bar() { foo<int>("%s\n", "foo"); }
7431
7432_ACEOF
7433rm -f conftest.$ac_objext
7434if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7435 (eval $ac_compile) 2>conftest.er1
7436 ac_status=$?
7437 grep -v '^ *+' conftest.er1 >conftest.err
7438 rm -f conftest.er1
7439 cat conftest.err >&5
7440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7441 (exit $ac_status); } &&
b0074644
ILT
7442 { ac_try='test -z "$ac_cxx_werror_flag"
7443 || test ! -s conftest.err'
04bf7072
ILT
7444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7445 (eval $ac_try) 2>&5
7446 ac_status=$?
7447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7448 (exit $ac_status); }; } &&
7449 { ac_try='test -s conftest.$ac_objext'
7450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7451 (eval $ac_try) 2>&5
7452 ac_status=$?
7453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7454 (exit $ac_status); }; }; then
7455 gold_cv_template_attribute=yes
7456else
7457 echo "$as_me: failed program was:" >&5
7458sed 's/^/| /' conftest.$ac_ext >&5
7459
7460gold_cv_template_attribute=no
7461fi
7462rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7463fi
7464echo "$as_me:$LINENO: result: $gold_cv_template_attribute" >&5
7465echo "${ECHO_T}$gold_cv_template_attribute" >&6
7466if test "$gold_cv_template_attribute" = "yes"; then
7467
7468cat >>confdefs.h <<\_ACEOF
7469#define HAVE_TEMPLATE_ATTRIBUTES 1
7470_ACEOF
7471
7472fi
7473
54dc6425
ILT
7474ac_ext=c
7475ac_cpp='$CPP $CPPFLAGS'
7476ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7477ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7478ac_compiler_gnu=$ac_cv_c_compiler_gnu
7479
7480
bae7f79e
ILT
7481echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
7482echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
7483 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
7484if test "${enable_maintainer_mode+set}" = set; then
7485 enableval="$enable_maintainer_mode"
7486 USE_MAINTAINER_MODE=$enableval
7487else
7488 USE_MAINTAINER_MODE=no
7489fi;
7490 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
7491echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
7492
7493
7494if test $USE_MAINTAINER_MODE = yes; then
7495 MAINTAINER_MODE_TRUE=
7496 MAINTAINER_MODE_FALSE='#'
7497else
7498 MAINTAINER_MODE_TRUE='#'
7499 MAINTAINER_MODE_FALSE=
7500fi
7501
7502 MAINT=$MAINTAINER_MODE_TRUE
7503
7504
7505
5a6f7e2d 7506 ac_config_files="$ac_config_files Makefile testsuite/Makefile po/Makefile.in:po/Make-in"
bae7f79e
ILT
7507cat >confcache <<\_ACEOF
7508# This file is a shell script that caches the results of configure
7509# tests run on this system so they can be shared between configure
7510# scripts and configure runs, see configure's option --config-cache.
7511# It is not useful on other systems. If it contains results you don't
7512# want to keep, you may remove or edit it.
7513#
7514# config.status only pays attention to the cache file if you give it
7515# the --recheck option to rerun configure.
7516#
7517# `ac_cv_env_foo' variables (set or unset) will be overridden when
7518# loading this file, other *unset* `ac_cv_foo' will be assigned the
7519# following values.
7520
7521_ACEOF
7522
7523# The following way of writing the cache mishandles newlines in values,
7524# but we know of no workaround that is simple, portable, and efficient.
7525# So, don't put newlines in cache variables' values.
7526# Ultrix sh set writes to stderr and can't be redirected directly,
7527# and sets the high bit in the cache file unless we assign to the vars.
7528{
7529 (set) 2>&1 |
7530 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7531 *ac_space=\ *)
7532 # `set' does not quote correctly, so add quotes (double-quote
7533 # substitution turns \\\\ into \\, and sed turns \\ into \).
7534 sed -n \
7535 "s/'/'\\\\''/g;
7536 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7537 ;;
7538 *)
7539 # `set' quotes correctly as required by POSIX, so do not add quotes.
7540 sed -n \
7541 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7542 ;;
7543 esac;
7544} |
7545 sed '
7546 t clear
7547 : clear
7548 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7549 t end
7550 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7551 : end' >>confcache
7552if diff $cache_file confcache >/dev/null 2>&1; then :; else
7553 if test -w $cache_file; then
7554 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7555 cat confcache >$cache_file
7556 else
7557 echo "not updating unwritable cache $cache_file"
7558 fi
7559fi
7560rm -f confcache
7561
7562test "x$prefix" = xNONE && prefix=$ac_default_prefix
7563# Let make expand exec_prefix.
7564test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7565
7566# VPATH may cause trouble with some makes, so we remove $(srcdir),
7567# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7568# trailing colons and then remove the whole line if VPATH becomes empty
7569# (actually we leave an empty line to preserve line numbers).
7570if test "x$srcdir" = x.; then
7571 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7572s/:*\$(srcdir):*/:/;
7573s/:*\${srcdir}:*/:/;
7574s/:*@srcdir@:*/:/;
7575s/^\([^=]*=[ ]*\):*/\1/;
7576s/:*$//;
7577s/^[^=]*=[ ]*$//;
7578}'
7579fi
7580
7581DEFS=-DHAVE_CONFIG_H
7582
7583ac_libobjs=
7584ac_ltlibobjs=
7585for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7586 # 1. Remove the extension, and $U if already installed.
7587 ac_i=`echo "$ac_i" |
7588 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7589 # 2. Add them.
7590 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7591 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7592done
7593LIBOBJS=$ac_libobjs
7594
7595LTLIBOBJS=$ac_ltlibobjs
7596
7597
fe9a4c12
ILT
7598if test -z "${THREADS_TRUE}" && test -z "${THREADS_FALSE}"; then
7599 { { echo "$as_me:$LINENO: error: conditional \"THREADS\" was never defined.
7600Usually this means the macro was only invoked conditionally." >&5
7601echo "$as_me: error: conditional \"THREADS\" was never defined.
7602Usually this means the macro was only invoked conditionally." >&2;}
7603 { (exit 1); exit 1; }; }
7604fi
89fc3421
CC
7605if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
7606 { { echo "$as_me:$LINENO: error: conditional \"PLUGINS\" was never defined.
7607Usually this means the macro was only invoked conditionally." >&5
7608echo "$as_me: error: conditional \"PLUGINS\" was never defined.
7609Usually this means the macro was only invoked conditionally." >&2;}
7610 { (exit 1); exit 1; }; }
7611fi
bae7f79e
ILT
7612if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7613 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
7614Usually this means the macro was only invoked conditionally." >&5
7615echo "$as_me: error: conditional \"AMDEP\" was never defined.
7616Usually this means the macro was only invoked conditionally." >&2;}
7617 { (exit 1); exit 1; }; }
7618fi
7619if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7620 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
7621Usually this means the macro was only invoked conditionally." >&5
7622echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
7623Usually this means the macro was only invoked conditionally." >&2;}
7624 { (exit 1); exit 1; }; }
7625fi
7626if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
7627 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
7628Usually this means the macro was only invoked conditionally." >&5
7629echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
7630Usually this means the macro was only invoked conditionally." >&2;}
7631 { (exit 1); exit 1; }; }
7632fi
537b5f51
ILT
7633if test -z "${NATIVE_LINKER_TRUE}" && test -z "${NATIVE_LINKER_FALSE}"; then
7634 { { echo "$as_me:$LINENO: error: conditional \"NATIVE_LINKER\" was never defined.
7635Usually this means the macro was only invoked conditionally." >&5
7636echo "$as_me: error: conditional \"NATIVE_LINKER\" was never defined.
7637Usually this means the macro was only invoked conditionally." >&2;}
7638 { (exit 1); exit 1; }; }
7639fi
7640if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then
7641 { { echo "$as_me:$LINENO: error: conditional \"GCC\" was never defined.
7642Usually this means the macro was only invoked conditionally." >&5
7643echo "$as_me: error: conditional \"GCC\" was never defined.
7644Usually this means the macro was only invoked conditionally." >&2;}
7645 { (exit 1); exit 1; }; }
7646fi
63402fe4
ILT
7647if test -z "${FN_PTRS_IN_SO_WITHOUT_PIC_TRUE}" && test -z "${FN_PTRS_IN_SO_WITHOUT_PIC_FALSE}"; then
7648 { { echo "$as_me:$LINENO: error: conditional \"FN_PTRS_IN_SO_WITHOUT_PIC\" was never defined.
7649Usually this means the macro was only invoked conditionally." >&5
7650echo "$as_me: error: conditional \"FN_PTRS_IN_SO_WITHOUT_PIC\" was never defined.
7651Usually this means the macro was only invoked conditionally." >&2;}
7652 { (exit 1); exit 1; }; }
7653fi
6eee141f
ILT
7654if test -z "${TLS_TRUE}" && test -z "${TLS_FALSE}"; then
7655 { { echo "$as_me:$LINENO: error: conditional \"TLS\" was never defined.
7656Usually this means the macro was only invoked conditionally." >&5
7657echo "$as_me: error: conditional \"TLS\" was never defined.
7658Usually this means the macro was only invoked conditionally." >&2;}
7659 { (exit 1); exit 1; }; }
7660fi
097ec620
ILT
7661if test -z "${STATIC_TLS_TRUE}" && test -z "${STATIC_TLS_FALSE}"; then
7662 { { echo "$as_me:$LINENO: error: conditional \"STATIC_TLS\" was never defined.
7663Usually this means the macro was only invoked conditionally." >&5
7664echo "$as_me: error: conditional \"STATIC_TLS\" was never defined.
7665Usually this means the macro was only invoked conditionally." >&2;}
7666 { (exit 1); exit 1; }; }
7667fi
155a0dd7
ILT
7668if test -z "${OMP_SUPPORT_TRUE}" && test -z "${OMP_SUPPORT_FALSE}"; then
7669 { { echo "$as_me:$LINENO: error: conditional \"OMP_SUPPORT\" was never defined.
7670Usually this means the macro was only invoked conditionally." >&5
7671echo "$as_me: error: conditional \"OMP_SUPPORT\" was never defined.
7672Usually this means the macro was only invoked conditionally." >&2;}
7673 { (exit 1); exit 1; }; }
7674fi
c2b45e22
CC
7675if test -z "${TLS_GNU2_DIALECT_TRUE}" && test -z "${TLS_GNU2_DIALECT_FALSE}"; then
7676 { { echo "$as_me:$LINENO: error: conditional \"TLS_GNU2_DIALECT\" was never defined.
7677Usually this means the macro was only invoked conditionally." >&5
7678echo "$as_me: error: conditional \"TLS_GNU2_DIALECT\" was never defined.
7679Usually this means the macro was only invoked conditionally." >&2;}
7680 { (exit 1); exit 1; }; }
7681fi
7682if test -z "${TLS_DESCRIPTORS_TRUE}" && test -z "${TLS_DESCRIPTORS_FALSE}"; then
7683 { { echo "$as_me:$LINENO: error: conditional \"TLS_DESCRIPTORS\" was never defined.
7684Usually this means the macro was only invoked conditionally." >&5
7685echo "$as_me: error: conditional \"TLS_DESCRIPTORS\" was never defined.
7686Usually this means the macro was only invoked conditionally." >&2;}
7687 { (exit 1); exit 1; }; }
7688fi
2fd32231
ILT
7689if test -z "${CONSTRUCTOR_PRIORITY_TRUE}" && test -z "${CONSTRUCTOR_PRIORITY_FALSE}"; then
7690 { { echo "$as_me:$LINENO: error: conditional \"CONSTRUCTOR_PRIORITY\" was never defined.
7691Usually this means the macro was only invoked conditionally." >&5
7692echo "$as_me: error: conditional \"CONSTRUCTOR_PRIORITY\" was never defined.
7693Usually this means the macro was only invoked conditionally." >&2;}
7694 { (exit 1); exit 1; }; }
7695fi
7fcd0256
ILT
7696if test -z "${HAVE_ZLIB_TRUE}" && test -z "${HAVE_ZLIB_FALSE}"; then
7697 { { echo "$as_me:$LINENO: error: conditional \"HAVE_ZLIB\" was never defined.
7698Usually this means the macro was only invoked conditionally." >&5
7699echo "$as_me: error: conditional \"HAVE_ZLIB\" was never defined.
7700Usually this means the macro was only invoked conditionally." >&2;}
7701 { (exit 1); exit 1; }; }
7702fi
bae7f79e
ILT
7703if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
7704 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
7705Usually this means the macro was only invoked conditionally." >&5
7706echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
7707Usually this means the macro was only invoked conditionally." >&2;}
7708 { (exit 1); exit 1; }; }
7709fi
7710
7711: ${CONFIG_STATUS=./config.status}
7712ac_clean_files_save=$ac_clean_files
7713ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7714{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7715echo "$as_me: creating $CONFIG_STATUS" >&6;}
7716cat >$CONFIG_STATUS <<_ACEOF
7717#! $SHELL
7718# Generated by $as_me.
7719# Run this file to recreate the current configuration.
7720# Compiler output produced by configure, useful for debugging
7721# configure, is in config.log if it exists.
7722
7723debug=false
7724ac_cs_recheck=false
7725ac_cs_silent=false
7726SHELL=\${CONFIG_SHELL-$SHELL}
7727_ACEOF
7728
7729cat >>$CONFIG_STATUS <<\_ACEOF
7730## --------------------- ##
7731## M4sh Initialization. ##
7732## --------------------- ##
7733
7734# Be Bourne compatible
7735if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7736 emulate sh
7737 NULLCMD=:
7738 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7739 # is contrary to our usage. Disable this feature.
7740 alias -g '${1+"$@"}'='"$@"'
7741elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7742 set -o posix
7743fi
7744DUALCASE=1; export DUALCASE # for MKS sh
7745
7746# Support unset when possible.
7747if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7748 as_unset=unset
7749else
7750 as_unset=false
7751fi
7752
7753
7754# Work around bugs in pre-3.0 UWIN ksh.
7755$as_unset ENV MAIL MAILPATH
7756PS1='$ '
7757PS2='> '
7758PS4='+ '
7759
7760# NLS nuisances.
7761for as_var in \
7762 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7763 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7764 LC_TELEPHONE LC_TIME
7765do
7766 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7767 eval $as_var=C; export $as_var
7768 else
7769 $as_unset $as_var
7770 fi
7771done
7772
7773# Required to use basename.
7774if expr a : '\(a\)' >/dev/null 2>&1; then
7775 as_expr=expr
7776else
7777 as_expr=false
7778fi
7779
7780if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7781 as_basename=basename
7782else
7783 as_basename=false
7784fi
7785
7786
7787# Name of the executable.
7788as_me=`$as_basename "$0" ||
7789$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7790 X"$0" : 'X\(//\)$' \| \
7791 X"$0" : 'X\(/\)$' \| \
7792 . : '\(.\)' 2>/dev/null ||
7793echo X/"$0" |
7794 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7795 /^X\/\(\/\/\)$/{ s//\1/; q; }
7796 /^X\/\(\/\).*/{ s//\1/; q; }
7797 s/.*/./; q'`
7798
7799
7800# PATH needs CR, and LINENO needs CR and PATH.
7801# Avoid depending upon Character Ranges.
7802as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7803as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7804as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7805as_cr_digits='0123456789'
7806as_cr_alnum=$as_cr_Letters$as_cr_digits
7807
7808# The user is always right.
7809if test "${PATH_SEPARATOR+set}" != set; then
7810 echo "#! /bin/sh" >conf$$.sh
7811 echo "exit 0" >>conf$$.sh
7812 chmod +x conf$$.sh
7813 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7814 PATH_SEPARATOR=';'
7815 else
7816 PATH_SEPARATOR=:
7817 fi
7818 rm -f conf$$.sh
7819fi
7820
7821
7822 as_lineno_1=$LINENO
7823 as_lineno_2=$LINENO
7824 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7825 test "x$as_lineno_1" != "x$as_lineno_2" &&
7826 test "x$as_lineno_3" = "x$as_lineno_2" || {
7827 # Find who we are. Look in the path if we contain no path at all
7828 # relative or not.
7829 case $0 in
7830 *[\\/]* ) as_myself=$0 ;;
7831 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7832for as_dir in $PATH
7833do
7834 IFS=$as_save_IFS
7835 test -z "$as_dir" && as_dir=.
7836 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7837done
7838
7839 ;;
7840 esac
7841 # We did not find ourselves, most probably we were run as `sh COMMAND'
7842 # in which case we are not to be found in the path.
7843 if test "x$as_myself" = x; then
7844 as_myself=$0
7845 fi
7846 if test ! -f "$as_myself"; then
7847 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7848echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7849 { (exit 1); exit 1; }; }
7850 fi
7851 case $CONFIG_SHELL in
7852 '')
7853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7854for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7855do
7856 IFS=$as_save_IFS
7857 test -z "$as_dir" && as_dir=.
7858 for as_base in sh bash ksh sh5; do
7859 case $as_dir in
7860 /*)
7861 if ("$as_dir/$as_base" -c '
7862 as_lineno_1=$LINENO
7863 as_lineno_2=$LINENO
7864 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7865 test "x$as_lineno_1" != "x$as_lineno_2" &&
7866 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
7867 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7868 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7869 CONFIG_SHELL=$as_dir/$as_base
7870 export CONFIG_SHELL
7871 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7872 fi;;
7873 esac
7874 done
7875done
7876;;
7877 esac
7878
7879 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7880 # uniformly replaced by the line number. The first 'sed' inserts a
7881 # line-number line before each line; the second 'sed' does the real
7882 # work. The second script uses 'N' to pair each line-number line
7883 # with the numbered line, and appends trailing '-' during
7884 # substitution so that $LINENO is not a special case at line end.
7885 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7886 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7887 sed '=' <$as_myself |
7888 sed '
7889 N
7890 s,$,-,
7891 : loop
7892 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7893 t loop
7894 s,-$,,
7895 s,^['$as_cr_digits']*\n,,
7896 ' >$as_me.lineno &&
7897 chmod +x $as_me.lineno ||
7898 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7899echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7900 { (exit 1); exit 1; }; }
7901
7902 # Don't try to exec as it changes $[0], causing all sort of problems
7903 # (the dirname of $[0] is not the place where we might find the
7904 # original and so on. Autoconf is especially sensible to this).
7905 . ./$as_me.lineno
7906 # Exit status is that of the last command.
7907 exit
7908}
7909
7910
7911case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7912 *c*,-n*) ECHO_N= ECHO_C='
7913' ECHO_T=' ' ;;
7914 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7915 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
7916esac
7917
7918if expr a : '\(a\)' >/dev/null 2>&1; then
7919 as_expr=expr
7920else
7921 as_expr=false
7922fi
7923
7924rm -f conf$$ conf$$.exe conf$$.file
7925echo >conf$$.file
7926if ln -s conf$$.file conf$$ 2>/dev/null; then
7927 # We could just check for DJGPP; but this test a) works b) is more generic
7928 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7929 if test -f conf$$.exe; then
7930 # Don't use ln at all; we don't have any links
7931 as_ln_s='cp -p'
7932 else
7933 as_ln_s='ln -s'
7934 fi
7935elif ln conf$$.file conf$$ 2>/dev/null; then
7936 as_ln_s=ln
7937else
7938 as_ln_s='cp -p'
7939fi
7940rm -f conf$$ conf$$.exe conf$$.file
7941
7942if mkdir -p . 2>/dev/null; then
7943 as_mkdir_p=:
7944else
7945 test -d ./-p && rmdir ./-p
7946 as_mkdir_p=false
7947fi
7948
7949as_executable_p="test -f"
7950
7951# Sed expression to map a string onto a valid CPP name.
7952as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7953
7954# Sed expression to map a string onto a valid variable name.
7955as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7956
7957
7958# IFS
7959# We need space, tab and new line, in precisely that order.
7960as_nl='
7961'
7962IFS=" $as_nl"
7963
7964# CDPATH.
7965$as_unset CDPATH
7966
7967exec 6>&1
7968
7969# Open the log real soon, to keep \$[0] and so on meaningful, and to
7970# report actual input values of CONFIG_FILES etc. instead of their
7971# values after options handling. Logging --version etc. is OK.
7972exec 5>>config.log
7973{
7974 echo
7975 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7976## Running $as_me. ##
7977_ASBOX
7978} >&5
7979cat >&5 <<_CSEOF
7980
8486ee48 7981This file was extended by gold $as_me 0.1, which was
bae7f79e
ILT
7982generated by GNU Autoconf 2.59. Invocation command line was
7983
7984 CONFIG_FILES = $CONFIG_FILES
7985 CONFIG_HEADERS = $CONFIG_HEADERS
7986 CONFIG_LINKS = $CONFIG_LINKS
7987 CONFIG_COMMANDS = $CONFIG_COMMANDS
7988 $ $0 $@
7989
7990_CSEOF
7991echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7992echo >&5
7993_ACEOF
7994
7995# Files that config.status was made for.
7996if test -n "$ac_config_files"; then
7997 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7998fi
7999
8000if test -n "$ac_config_headers"; then
8001 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8002fi
8003
8004if test -n "$ac_config_links"; then
8005 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8006fi
8007
8008if test -n "$ac_config_commands"; then
8009 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8010fi
8011
8012cat >>$CONFIG_STATUS <<\_ACEOF
8013
8014ac_cs_usage="\
8015\`$as_me' instantiates files from templates according to the
8016current configuration.
8017
8018Usage: $0 [OPTIONS] [FILE]...
8019
8020 -h, --help print this help, then exit
8021 -V, --version print version number, then exit
8022 -q, --quiet do not print progress messages
8023 -d, --debug don't remove temporary files
8024 --recheck update $as_me by reconfiguring in the same conditions
8025 --file=FILE[:TEMPLATE]
8026 instantiate the configuration file FILE
8027 --header=FILE[:TEMPLATE]
8028 instantiate the configuration header FILE
8029
8030Configuration files:
8031$config_files
8032
8033Configuration headers:
8034$config_headers
8035
8036Configuration commands:
8037$config_commands
8038
8039Report bugs to <bug-autoconf@gnu.org>."
8040_ACEOF
8041
8042cat >>$CONFIG_STATUS <<_ACEOF
8043ac_cs_version="\\
8486ee48 8044gold config.status 0.1
bae7f79e
ILT
8045configured by $0, generated by GNU Autoconf 2.59,
8046 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8047
8048Copyright (C) 2003 Free Software Foundation, Inc.
8049This config.status script is free software; the Free Software Foundation
8050gives unlimited permission to copy, distribute and modify it."
8051srcdir=$srcdir
8052INSTALL="$INSTALL"
8053_ACEOF
8054
8055cat >>$CONFIG_STATUS <<\_ACEOF
8056# If no file are specified by the user, then we need to provide default
8057# value. By we need to know if files were specified by the user.
8058ac_need_defaults=:
8059while test $# != 0
8060do
8061 case $1 in
8062 --*=*)
8063 ac_option=`expr "x$1" : 'x\([^=]*\)='`
8064 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8065 ac_shift=:
8066 ;;
8067 -*)
8068 ac_option=$1
8069 ac_optarg=$2
8070 ac_shift=shift
8071 ;;
8072 *) # This is not an option, so the user has probably given explicit
8073 # arguments.
8074 ac_option=$1
8075 ac_need_defaults=false;;
8076 esac
8077
8078 case $ac_option in
8079 # Handling of the options.
8080_ACEOF
8081cat >>$CONFIG_STATUS <<\_ACEOF
8082 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8083 ac_cs_recheck=: ;;
8084 --version | --vers* | -V )
8085 echo "$ac_cs_version"; exit 0 ;;
8086 --he | --h)
8087 # Conflict between --help and --header
8088 { { echo "$as_me:$LINENO: error: ambiguous option: $1
8089Try \`$0 --help' for more information." >&5
8090echo "$as_me: error: ambiguous option: $1
8091Try \`$0 --help' for more information." >&2;}
8092 { (exit 1); exit 1; }; };;
8093 --help | --hel | -h )
8094 echo "$ac_cs_usage"; exit 0 ;;
8095 --debug | --d* | -d )
8096 debug=: ;;
8097 --file | --fil | --fi | --f )
8098 $ac_shift
8099 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8100 ac_need_defaults=false;;
8101 --header | --heade | --head | --hea )
8102 $ac_shift
8103 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8104 ac_need_defaults=false;;
8105 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8106 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8107 ac_cs_silent=: ;;
8108
8109 # This is an error.
8110 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8111Try \`$0 --help' for more information." >&5
8112echo "$as_me: error: unrecognized option: $1
8113Try \`$0 --help' for more information." >&2;}
8114 { (exit 1); exit 1; }; } ;;
8115
8116 *) ac_config_targets="$ac_config_targets $1" ;;
8117
8118 esac
8119 shift
8120done
8121
8122ac_configure_extra_args=
8123
8124if $ac_cs_silent; then
8125 exec 6>/dev/null
8126 ac_configure_extra_args="$ac_configure_extra_args --silent"
8127fi
8128
8129_ACEOF
8130cat >>$CONFIG_STATUS <<_ACEOF
8131if \$ac_cs_recheck; then
8132 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8133 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8134fi
8135
8136_ACEOF
8137
8138cat >>$CONFIG_STATUS <<_ACEOF
8139#
8140# INIT-COMMANDS section.
8141#
8142
8143AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8144# Capture the value of obsolete ALL_LINGUAS because we need it to compute
8145 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
8146 # from automake.
8147 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
8148 # Capture the value of LINGUAS because we need it to compute CATALOGS.
8149 LINGUAS="${LINGUAS-%UNSET%}"
8150
8151
8152_ACEOF
8153
8154
8155
8156cat >>$CONFIG_STATUS <<\_ACEOF
8157for ac_config_target in $ac_config_targets
8158do
8159 case "$ac_config_target" in
8160 # Handling of arguments.
8161 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5a6f7e2d 8162 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
bae7f79e
ILT
8163 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
8164 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8165 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
8166 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
8167 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8168echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8169 { (exit 1); exit 1; }; };;
8170 esac
8171done
8172
8173# If the user did not use the arguments to specify the items to instantiate,
8174# then the envvar interface is used. Set only those that are not.
8175# We use the long form for the default assignment because of an extremely
8176# bizarre bug on SunOS 4.1.3.
8177if $ac_need_defaults; then
8178 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8179 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8180 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8181fi
8182
8183# Have a temporary directory for convenience. Make it in the build tree
8184# simply because there is no reason to put it here, and in addition,
8185# creating and moving files from /tmp can sometimes cause problems.
8186# Create a temporary directory, and hook for its removal unless debugging.
8187$debug ||
8188{
8189 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8190 trap '{ (exit 1); exit 1; }' 1 2 13 15
8191}
8192
8193# Create a (secure) tmp directory for tmp files.
8194
8195{
8196 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8197 test -n "$tmp" && test -d "$tmp"
8198} ||
8199{
8200 tmp=./confstat$$-$RANDOM
8201 (umask 077 && mkdir $tmp)
8202} ||
8203{
8204 echo "$me: cannot create a temporary directory in ." >&2
8205 { (exit 1); exit 1; }
8206}
8207
8208_ACEOF
8209
8210cat >>$CONFIG_STATUS <<_ACEOF
8211
8212#
8213# CONFIG_FILES section.
8214#
8215
8216# No need to generate the scripts if there are no CONFIG_FILES.
8217# This happens for instance when ./config.status config.h
8218if test -n "\$CONFIG_FILES"; then
8219 # Protect against being on the right side of a sed subst in config.status.
8220 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8221 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8222s,@SHELL@,$SHELL,;t t
8223s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8224s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8225s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8226s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8227s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8228s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8229s,@exec_prefix@,$exec_prefix,;t t
8230s,@prefix@,$prefix,;t t
8231s,@program_transform_name@,$program_transform_name,;t t
8232s,@bindir@,$bindir,;t t
8233s,@sbindir@,$sbindir,;t t
8234s,@libexecdir@,$libexecdir,;t t
8235s,@datadir@,$datadir,;t t
8236s,@sysconfdir@,$sysconfdir,;t t
8237s,@sharedstatedir@,$sharedstatedir,;t t
8238s,@localstatedir@,$localstatedir,;t t
8239s,@libdir@,$libdir,;t t
8240s,@includedir@,$includedir,;t t
8241s,@oldincludedir@,$oldincludedir,;t t
8242s,@infodir@,$infodir,;t t
8243s,@mandir@,$mandir,;t t
8244s,@build_alias@,$build_alias,;t t
8245s,@host_alias@,$host_alias,;t t
8246s,@target_alias@,$target_alias,;t t
8247s,@DEFS@,$DEFS,;t t
8248s,@ECHO_C@,$ECHO_C,;t t
8249s,@ECHO_N@,$ECHO_N,;t t
8250s,@ECHO_T@,$ECHO_T,;t t
8251s,@LIBS@,$LIBS,;t t
8252s,@build@,$build,;t t
8253s,@build_cpu@,$build_cpu,;t t
8254s,@build_vendor@,$build_vendor,;t t
8255s,@build_os@,$build_os,;t t
8256s,@host@,$host,;t t
8257s,@host_cpu@,$host_cpu,;t t
8258s,@host_vendor@,$host_vendor,;t t
8259s,@host_os@,$host_os,;t t
8260s,@target@,$target,;t t
8261s,@target_cpu@,$target_cpu,;t t
8262s,@target_vendor@,$target_vendor,;t t
8263s,@target_os@,$target_os,;t t
8264s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8265s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8266s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8267s,@CYGPATH_W@,$CYGPATH_W,;t t
8268s,@PACKAGE@,$PACKAGE,;t t
8269s,@VERSION@,$VERSION,;t t
8270s,@ACLOCAL@,$ACLOCAL,;t t
8271s,@AUTOCONF@,$AUTOCONF,;t t
8272s,@AUTOMAKE@,$AUTOMAKE,;t t
8273s,@AUTOHEADER@,$AUTOHEADER,;t t
8274s,@MAKEINFO@,$MAKEINFO,;t t
8275s,@install_sh@,$install_sh,;t t
8276s,@STRIP@,$STRIP,;t t
8277s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
8278s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
8279s,@mkdir_p@,$mkdir_p,;t t
8280s,@AWK@,$AWK,;t t
8281s,@SET_MAKE@,$SET_MAKE,;t t
8282s,@am__leading_dot@,$am__leading_dot,;t t
8283s,@AMTAR@,$AMTAR,;t t
8284s,@am__tar@,$am__tar,;t t
8285s,@am__untar@,$am__untar,;t t
fe9a4c12
ILT
8286s,@THREADS_TRUE@,$THREADS_TRUE,;t t
8287s,@THREADS_FALSE@,$THREADS_FALSE,;t t
89fc3421
CC
8288s,@PLUGINS_TRUE@,$PLUGINS_TRUE,;t t
8289s,@PLUGINS_FALSE@,$PLUGINS_FALSE,;t t
6df6da4a 8290s,@TARGETOBJS@,$TARGETOBJS,;t t
bae7f79e
ILT
8291s,@CC@,$CC,;t t
8292s,@CFLAGS@,$CFLAGS,;t t
8293s,@LDFLAGS@,$LDFLAGS,;t t
8294s,@CPPFLAGS@,$CPPFLAGS,;t t
8295s,@ac_ct_CC@,$ac_ct_CC,;t t
8296s,@EXEEXT@,$EXEEXT,;t t
8297s,@OBJEXT@,$OBJEXT,;t t
8298s,@DEPDIR@,$DEPDIR,;t t
8299s,@am__include@,$am__include,;t t
8300s,@am__quote@,$am__quote,;t t
8301s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
8302s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
8303s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
8304s,@CCDEPMODE@,$CCDEPMODE,;t t
8305s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
8306s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
8307s,@CXX@,$CXX,;t t
8308s,@CXXFLAGS@,$CXXFLAGS,;t t
8309s,@ac_ct_CXX@,$ac_ct_CXX,;t t
8310s,@CXXDEPMODE@,$CXXDEPMODE,;t t
8311s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
8312s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
dbe717ef 8313s,@YACC@,$YACC,;t t
5a6f7e2d
ILT
8314s,@RANLIB@,$RANLIB,;t t
8315s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
537b5f51 8316s,@LN_S@,$LN_S,;t t
bae7f79e
ILT
8317s,@USE_NLS@,$USE_NLS,;t t
8318s,@LIBINTL@,$LIBINTL,;t t
8319s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
8320s,@INCINTL@,$INCINTL,;t t
8321s,@XGETTEXT@,$XGETTEXT,;t t
8322s,@GMSGFMT@,$GMSGFMT,;t t
8323s,@POSUB@,$POSUB,;t t
8324s,@CATALOGS@,$CATALOGS,;t t
8325s,@DATADIRNAME@,$DATADIRNAME,;t t
8326s,@INSTOBJEXT@,$INSTOBJEXT,;t t
8327s,@GENCAT@,$GENCAT,;t t
8328s,@CATOBJEXT@,$CATOBJEXT,;t t
8329s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
8330s,@MSGFMT@,$MSGFMT,;t t
8331s,@MSGMERGE@,$MSGMERGE,;t t
537b5f51
ILT
8332s,@NATIVE_LINKER_TRUE@,$NATIVE_LINKER_TRUE,;t t
8333s,@NATIVE_LINKER_FALSE@,$NATIVE_LINKER_FALSE,;t t
8334s,@GCC_TRUE@,$GCC_TRUE,;t t
8335s,@GCC_FALSE@,$GCC_FALSE,;t t
63402fe4
ILT
8336s,@FN_PTRS_IN_SO_WITHOUT_PIC_TRUE@,$FN_PTRS_IN_SO_WITHOUT_PIC_TRUE,;t t
8337s,@FN_PTRS_IN_SO_WITHOUT_PIC_FALSE@,$FN_PTRS_IN_SO_WITHOUT_PIC_FALSE,;t t
6eee141f
ILT
8338s,@TLS_TRUE@,$TLS_TRUE,;t t
8339s,@TLS_FALSE@,$TLS_FALSE,;t t
097ec620
ILT
8340s,@STATIC_TLS_TRUE@,$STATIC_TLS_TRUE,;t t
8341s,@STATIC_TLS_FALSE@,$STATIC_TLS_FALSE,;t t
155a0dd7
ILT
8342s,@OMP_SUPPORT_TRUE@,$OMP_SUPPORT_TRUE,;t t
8343s,@OMP_SUPPORT_FALSE@,$OMP_SUPPORT_FALSE,;t t
c2b45e22
CC
8344s,@TLS_GNU2_DIALECT_TRUE@,$TLS_GNU2_DIALECT_TRUE,;t t
8345s,@TLS_GNU2_DIALECT_FALSE@,$TLS_GNU2_DIALECT_FALSE,;t t
8346s,@TLS_DESCRIPTORS_TRUE@,$TLS_DESCRIPTORS_TRUE,;t t
8347s,@TLS_DESCRIPTORS_FALSE@,$TLS_DESCRIPTORS_FALSE,;t t
2fd32231
ILT
8348s,@CONSTRUCTOR_PRIORITY_TRUE@,$CONSTRUCTOR_PRIORITY_TRUE,;t t
8349s,@CONSTRUCTOR_PRIORITY_FALSE@,$CONSTRUCTOR_PRIORITY_FALSE,;t t
1d1f116d 8350s,@RANDOM_SEED_CFLAGS@,$RANDOM_SEED_CFLAGS,;t t
bae7f79e
ILT
8351s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
8352s,@NO_WERROR@,$NO_WERROR,;t t
8353s,@WARN_CXXFLAGS@,$WARN_CXXFLAGS,;t t
494e05f4 8354s,@LFS_CFLAGS@,$LFS_CFLAGS,;t t
82dcae9d 8355s,@LIBOBJS@,$LIBOBJS,;t t
9a0910c3 8356s,@CPP@,$CPP,;t t
54dc6425 8357s,@EGREP@,$EGREP,;t t
7fcd0256
ILT
8358s,@HAVE_ZLIB_TRUE@,$HAVE_ZLIB_TRUE,;t t
8359s,@HAVE_ZLIB_FALSE@,$HAVE_ZLIB_FALSE,;t t
9a0910c3 8360s,@CXXCPP@,$CXXCPP,;t t
bae7f79e
ILT
8361s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
8362s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
8363s,@MAINT@,$MAINT,;t t
bae7f79e
ILT
8364s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8365CEOF
8366
8367_ACEOF
8368
8369 cat >>$CONFIG_STATUS <<\_ACEOF
8370 # Split the substitutions into bite-sized pieces for seds with
8371 # small command number limits, like on Digital OSF/1 and HP-UX.
8372 ac_max_sed_lines=48
8373 ac_sed_frag=1 # Number of current file.
8374 ac_beg=1 # First line for current file.
8375 ac_end=$ac_max_sed_lines # Line after last line for current file.
8376 ac_more_lines=:
8377 ac_sed_cmds=
8378 while $ac_more_lines; do
8379 if test $ac_beg -gt 1; then
8380 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8381 else
8382 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8383 fi
8384 if test ! -s $tmp/subs.frag; then
8385 ac_more_lines=false
8386 else
8387 # The purpose of the label and of the branching condition is to
8388 # speed up the sed processing (if there are no `@' at all, there
8389 # is no need to browse any of the substitutions).
8390 # These are the two extra sed commands mentioned above.
8391 (echo ':t
8392 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8393 if test -z "$ac_sed_cmds"; then
8394 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8395 else
8396 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8397 fi
8398 ac_sed_frag=`expr $ac_sed_frag + 1`
8399 ac_beg=$ac_end
8400 ac_end=`expr $ac_end + $ac_max_sed_lines`
8401 fi
8402 done
8403 if test -z "$ac_sed_cmds"; then
8404 ac_sed_cmds=cat
8405 fi
8406fi # test -n "$CONFIG_FILES"
8407
8408_ACEOF
8409cat >>$CONFIG_STATUS <<\_ACEOF
8410for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8411 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8412 case $ac_file in
8413 - | *:- | *:-:* ) # input from stdin
8414 cat >$tmp/stdin
8415 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8416 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8417 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8418 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8419 * ) ac_file_in=$ac_file.in ;;
8420 esac
8421
8422 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8423 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8424$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8425 X"$ac_file" : 'X\(//\)[^/]' \| \
8426 X"$ac_file" : 'X\(//\)$' \| \
8427 X"$ac_file" : 'X\(/\)' \| \
8428 . : '\(.\)' 2>/dev/null ||
8429echo X"$ac_file" |
8430 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8431 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8432 /^X\(\/\/\)$/{ s//\1/; q; }
8433 /^X\(\/\).*/{ s//\1/; q; }
8434 s/.*/./; q'`
8435 { if $as_mkdir_p; then
8436 mkdir -p "$ac_dir"
8437 else
8438 as_dir="$ac_dir"
8439 as_dirs=
8440 while test ! -d "$as_dir"; do
8441 as_dirs="$as_dir $as_dirs"
8442 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8443$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8444 X"$as_dir" : 'X\(//\)[^/]' \| \
8445 X"$as_dir" : 'X\(//\)$' \| \
8446 X"$as_dir" : 'X\(/\)' \| \
8447 . : '\(.\)' 2>/dev/null ||
8448echo X"$as_dir" |
8449 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8450 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8451 /^X\(\/\/\)$/{ s//\1/; q; }
8452 /^X\(\/\).*/{ s//\1/; q; }
8453 s/.*/./; q'`
8454 done
8455 test ! -n "$as_dirs" || mkdir $as_dirs
8456 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8457echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8458 { (exit 1); exit 1; }; }; }
8459
8460 ac_builddir=.
8461
8462if test "$ac_dir" != .; then
8463 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8464 # A "../" for each directory in $ac_dir_suffix.
8465 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8466else
8467 ac_dir_suffix= ac_top_builddir=
8468fi
8469
8470case $srcdir in
8471 .) # No --srcdir option. We are building in place.
8472 ac_srcdir=.
8473 if test -z "$ac_top_builddir"; then
8474 ac_top_srcdir=.
8475 else
8476 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8477 fi ;;
8478 [\\/]* | ?:[\\/]* ) # Absolute path.
8479 ac_srcdir=$srcdir$ac_dir_suffix;
8480 ac_top_srcdir=$srcdir ;;
8481 *) # Relative path.
8482 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8483 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8484esac
8485
8486# Do not use `cd foo && pwd` to compute absolute paths, because
8487# the directories may not exist.
8488case `pwd` in
8489.) ac_abs_builddir="$ac_dir";;
8490*)
8491 case "$ac_dir" in
8492 .) ac_abs_builddir=`pwd`;;
8493 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8494 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8495 esac;;
8496esac
8497case $ac_abs_builddir in
8498.) ac_abs_top_builddir=${ac_top_builddir}.;;
8499*)
8500 case ${ac_top_builddir}. in
8501 .) ac_abs_top_builddir=$ac_abs_builddir;;
8502 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8503 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8504 esac;;
8505esac
8506case $ac_abs_builddir in
8507.) ac_abs_srcdir=$ac_srcdir;;
8508*)
8509 case $ac_srcdir in
8510 .) ac_abs_srcdir=$ac_abs_builddir;;
8511 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8512 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8513 esac;;
8514esac
8515case $ac_abs_builddir in
8516.) ac_abs_top_srcdir=$ac_top_srcdir;;
8517*)
8518 case $ac_top_srcdir in
8519 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8520 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8521 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8522 esac;;
8523esac
8524
8525
8526 case $INSTALL in
8527 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8528 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
8529 esac
8530
b0074644
ILT
8531 if test x"$ac_file" != x-; then
8532 { echo "$as_me:$LINENO: creating $ac_file" >&5
8533echo "$as_me: creating $ac_file" >&6;}
8534 rm -f "$ac_file"
8535 fi
bae7f79e
ILT
8536 # Let's still pretend it is `configure' which instantiates (i.e., don't
8537 # use $as_me), people would be surprised to read:
8538 # /* config.h. Generated by config.status. */
8539 if test x"$ac_file" = x-; then
8540 configure_input=
8541 else
8542 configure_input="$ac_file. "
8543 fi
8544 configure_input=$configure_input"Generated from `echo $ac_file_in |
8545 sed 's,.*/,,'` by configure."
8546
8547 # First look for the input files in the build tree, otherwise in the
8548 # src tree.
8549 ac_file_inputs=`IFS=:
8550 for f in $ac_file_in; do
8551 case $f in
8552 -) echo $tmp/stdin ;;
8553 [\\/$]*)
8554 # Absolute (can't be DOS-style, as IFS=:)
8555 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8556echo "$as_me: error: cannot find input file: $f" >&2;}
8557 { (exit 1); exit 1; }; }
8558 echo "$f";;
8559 *) # Relative
8560 if test -f "$f"; then
8561 # Build tree
8562 echo "$f"
8563 elif test -f "$srcdir/$f"; then
8564 # Source tree
8565 echo "$srcdir/$f"
8566 else
8567 # /dev/null tree
8568 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8569echo "$as_me: error: cannot find input file: $f" >&2;}
8570 { (exit 1); exit 1; }; }
8571 fi;;
8572 esac
8573 done` || { (exit 1); exit 1; }
8574_ACEOF
8575cat >>$CONFIG_STATUS <<_ACEOF
8576 sed "$ac_vpsub
8577$extrasub
8578_ACEOF
8579cat >>$CONFIG_STATUS <<\_ACEOF
8580:t
8581/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8582s,@configure_input@,$configure_input,;t t
8583s,@srcdir@,$ac_srcdir,;t t
8584s,@abs_srcdir@,$ac_abs_srcdir,;t t
8585s,@top_srcdir@,$ac_top_srcdir,;t t
8586s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8587s,@builddir@,$ac_builddir,;t t
8588s,@abs_builddir@,$ac_abs_builddir,;t t
8589s,@top_builddir@,$ac_top_builddir,;t t
8590s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8591s,@INSTALL@,$ac_INSTALL,;t t
8592" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8593 rm -f $tmp/stdin
8594 if test x"$ac_file" != x-; then
8595 mv $tmp/out $ac_file
8596 else
8597 cat $tmp/out
8598 rm -f $tmp/out
8599 fi
8600
8601done
8602_ACEOF
8603cat >>$CONFIG_STATUS <<\_ACEOF
8604
8605#
8606# CONFIG_HEADER section.
8607#
8608
8609# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8610# NAME is the cpp macro being defined and VALUE is the value it is being given.
8611#
8612# ac_d sets the value in "#define NAME VALUE" lines.
8613ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8614ac_dB='[ ].*$,\1#\2'
8615ac_dC=' '
8616ac_dD=',;t'
8617# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8618ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8619ac_uB='$,\1#\2define\3'
8620ac_uC=' '
8621ac_uD=',;t'
8622
8623for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8624 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8625 case $ac_file in
8626 - | *:- | *:-:* ) # input from stdin
8627 cat >$tmp/stdin
8628 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8629 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8630 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8631 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8632 * ) ac_file_in=$ac_file.in ;;
8633 esac
8634
8635 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8636echo "$as_me: creating $ac_file" >&6;}
8637
8638 # First look for the input files in the build tree, otherwise in the
8639 # src tree.
8640 ac_file_inputs=`IFS=:
8641 for f in $ac_file_in; do
8642 case $f in
8643 -) echo $tmp/stdin ;;
8644 [\\/$]*)
8645 # Absolute (can't be DOS-style, as IFS=:)
8646 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8647echo "$as_me: error: cannot find input file: $f" >&2;}
8648 { (exit 1); exit 1; }; }
8649 # Do quote $f, to prevent DOS paths from being IFS'd.
8650 echo "$f";;
8651 *) # Relative
8652 if test -f "$f"; then
8653 # Build tree
8654 echo "$f"
8655 elif test -f "$srcdir/$f"; then
8656 # Source tree
8657 echo "$srcdir/$f"
8658 else
8659 # /dev/null tree
8660 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8661echo "$as_me: error: cannot find input file: $f" >&2;}
8662 { (exit 1); exit 1; }; }
8663 fi;;
8664 esac
8665 done` || { (exit 1); exit 1; }
8666 # Remove the trailing spaces.
8667 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8668
8669_ACEOF
8670
8671# Transform confdefs.h into two sed scripts, `conftest.defines' and
8672# `conftest.undefs', that substitutes the proper values into
8673# config.h.in to produce config.h. The first handles `#define'
8674# templates, and the second `#undef' templates.
8675# And first: Protect against being on the right side of a sed subst in
8676# config.status. Protect against being in an unquoted here document
8677# in config.status.
8678rm -f conftest.defines conftest.undefs
8679# Using a here document instead of a string reduces the quoting nightmare.
8680# Putting comments in sed scripts is not portable.
8681#
8682# `end' is used to avoid that the second main sed command (meant for
8683# 0-ary CPP macros) applies to n-ary macro definitions.
8684# See the Autoconf documentation for `clear'.
8685cat >confdef2sed.sed <<\_ACEOF
8686s/[\\&,]/\\&/g
8687s,[\\$`],\\&,g
8688t clear
8689: clear
8690s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8691t end
8692s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8693: end
8694_ACEOF
8695# If some macros were called several times there might be several times
8696# the same #defines, which is useless. Nevertheless, we may not want to
8697# sort them, since we want the *last* AC-DEFINE to be honored.
8698uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8699sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8700rm -f confdef2sed.sed
8701
8702# This sed command replaces #undef with comments. This is necessary, for
8703# example, in the case of _POSIX_SOURCE, which is predefined and required
8704# on some systems where configure will not decide to define it.
8705cat >>conftest.undefs <<\_ACEOF
8706s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8707_ACEOF
8708
8709# Break up conftest.defines because some shells have a limit on the size
8710# of here documents, and old seds have small limits too (100 cmds).
8711echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8712echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8713echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8714echo ' :' >>$CONFIG_STATUS
8715rm -f conftest.tail
8716while grep . conftest.defines >/dev/null
8717do
8718 # Write a limited-size here document to $tmp/defines.sed.
8719 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8720 # Speed up: don't consider the non `#define' lines.
8721 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
8722 # Work around the forget-to-reset-the-flag bug.
8723 echo 't clr' >>$CONFIG_STATUS
8724 echo ': clr' >>$CONFIG_STATUS
8725 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8726 echo 'CEOF
8727 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8728 rm -f $tmp/in
8729 mv $tmp/out $tmp/in
8730' >>$CONFIG_STATUS
8731 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8732 rm -f conftest.defines
8733 mv conftest.tail conftest.defines
8734done
8735rm -f conftest.defines
8736echo ' fi # grep' >>$CONFIG_STATUS
8737echo >>$CONFIG_STATUS
8738
8739# Break up conftest.undefs because some shells have a limit on the size
8740# of here documents, and old seds have small limits too (100 cmds).
8741echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
8742rm -f conftest.tail
8743while grep . conftest.undefs >/dev/null
8744do
8745 # Write a limited-size here document to $tmp/undefs.sed.
8746 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8747 # Speed up: don't consider the non `#undef'
8748 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
8749 # Work around the forget-to-reset-the-flag bug.
8750 echo 't clr' >>$CONFIG_STATUS
8751 echo ': clr' >>$CONFIG_STATUS
8752 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8753 echo 'CEOF
8754 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8755 rm -f $tmp/in
8756 mv $tmp/out $tmp/in
8757' >>$CONFIG_STATUS
8758 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8759 rm -f conftest.undefs
8760 mv conftest.tail conftest.undefs
8761done
8762rm -f conftest.undefs
8763
8764cat >>$CONFIG_STATUS <<\_ACEOF
8765 # Let's still pretend it is `configure' which instantiates (i.e., don't
8766 # use $as_me), people would be surprised to read:
8767 # /* config.h. Generated by config.status. */
8768 if test x"$ac_file" = x-; then
8769 echo "/* Generated by configure. */" >$tmp/config.h
8770 else
8771 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
8772 fi
8773 cat $tmp/in >>$tmp/config.h
8774 rm -f $tmp/in
8775 if test x"$ac_file" != x-; then
8776 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8777 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8778echo "$as_me: $ac_file is unchanged" >&6;}
8779 else
8780 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8781$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8782 X"$ac_file" : 'X\(//\)[^/]' \| \
8783 X"$ac_file" : 'X\(//\)$' \| \
8784 X"$ac_file" : 'X\(/\)' \| \
8785 . : '\(.\)' 2>/dev/null ||
8786echo X"$ac_file" |
8787 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8788 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8789 /^X\(\/\/\)$/{ s//\1/; q; }
8790 /^X\(\/\).*/{ s//\1/; q; }
8791 s/.*/./; q'`
8792 { if $as_mkdir_p; then
8793 mkdir -p "$ac_dir"
8794 else
8795 as_dir="$ac_dir"
8796 as_dirs=
8797 while test ! -d "$as_dir"; do
8798 as_dirs="$as_dir $as_dirs"
8799 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8800$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8801 X"$as_dir" : 'X\(//\)[^/]' \| \
8802 X"$as_dir" : 'X\(//\)$' \| \
8803 X"$as_dir" : 'X\(/\)' \| \
8804 . : '\(.\)' 2>/dev/null ||
8805echo X"$as_dir" |
8806 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8807 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8808 /^X\(\/\/\)$/{ s//\1/; q; }
8809 /^X\(\/\).*/{ s//\1/; q; }
8810 s/.*/./; q'`
8811 done
8812 test ! -n "$as_dirs" || mkdir $as_dirs
8813 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8814echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8815 { (exit 1); exit 1; }; }; }
8816
8817 rm -f $ac_file
8818 mv $tmp/config.h $ac_file
8819 fi
8820 else
8821 cat $tmp/config.h
8822 rm -f $tmp/config.h
8823 fi
8824# Compute $ac_file's index in $config_headers.
8825_am_stamp_count=1
8826for _am_header in $config_headers :; do
8827 case $_am_header in
8828 $ac_file | $ac_file:* )
8829 break ;;
8830 * )
8831 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8832 esac
8833done
8834echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
8835$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8836 X$ac_file : 'X\(//\)[^/]' \| \
8837 X$ac_file : 'X\(//\)$' \| \
8838 X$ac_file : 'X\(/\)' \| \
8839 . : '\(.\)' 2>/dev/null ||
8840echo X$ac_file |
8841 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8842 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8843 /^X\(\/\/\)$/{ s//\1/; q; }
8844 /^X\(\/\).*/{ s//\1/; q; }
8845 s/.*/./; q'`/stamp-h$_am_stamp_count
8846done
8847_ACEOF
8848cat >>$CONFIG_STATUS <<\_ACEOF
8849
8850#
8851# CONFIG_COMMANDS section.
8852#
8853for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
8854 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
8855 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
8856 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
8857$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8858 X"$ac_dest" : 'X\(//\)[^/]' \| \
8859 X"$ac_dest" : 'X\(//\)$' \| \
8860 X"$ac_dest" : 'X\(/\)' \| \
8861 . : '\(.\)' 2>/dev/null ||
8862echo X"$ac_dest" |
8863 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8864 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8865 /^X\(\/\/\)$/{ s//\1/; q; }
8866 /^X\(\/\).*/{ s//\1/; q; }
8867 s/.*/./; q'`
8868 { if $as_mkdir_p; then
8869 mkdir -p "$ac_dir"
8870 else
8871 as_dir="$ac_dir"
8872 as_dirs=
8873 while test ! -d "$as_dir"; do
8874 as_dirs="$as_dir $as_dirs"
8875 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8876$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8877 X"$as_dir" : 'X\(//\)[^/]' \| \
8878 X"$as_dir" : 'X\(//\)$' \| \
8879 X"$as_dir" : 'X\(/\)' \| \
8880 . : '\(.\)' 2>/dev/null ||
8881echo X"$as_dir" |
8882 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8883 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8884 /^X\(\/\/\)$/{ s//\1/; q; }
8885 /^X\(\/\).*/{ s//\1/; q; }
8886 s/.*/./; q'`
8887 done
8888 test ! -n "$as_dirs" || mkdir $as_dirs
8889 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8890echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8891 { (exit 1); exit 1; }; }; }
8892
8893 ac_builddir=.
8894
8895if test "$ac_dir" != .; then
8896 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8897 # A "../" for each directory in $ac_dir_suffix.
8898 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8899else
8900 ac_dir_suffix= ac_top_builddir=
8901fi
8902
8903case $srcdir in
8904 .) # No --srcdir option. We are building in place.
8905 ac_srcdir=.
8906 if test -z "$ac_top_builddir"; then
8907 ac_top_srcdir=.
8908 else
8909 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8910 fi ;;
8911 [\\/]* | ?:[\\/]* ) # Absolute path.
8912 ac_srcdir=$srcdir$ac_dir_suffix;
8913 ac_top_srcdir=$srcdir ;;
8914 *) # Relative path.
8915 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8916 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8917esac
8918
8919# Do not use `cd foo && pwd` to compute absolute paths, because
8920# the directories may not exist.
8921case `pwd` in
8922.) ac_abs_builddir="$ac_dir";;
8923*)
8924 case "$ac_dir" in
8925 .) ac_abs_builddir=`pwd`;;
8926 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8927 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8928 esac;;
8929esac
8930case $ac_abs_builddir in
8931.) ac_abs_top_builddir=${ac_top_builddir}.;;
8932*)
8933 case ${ac_top_builddir}. in
8934 .) ac_abs_top_builddir=$ac_abs_builddir;;
8935 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8936 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8937 esac;;
8938esac
8939case $ac_abs_builddir in
8940.) ac_abs_srcdir=$ac_srcdir;;
8941*)
8942 case $ac_srcdir in
8943 .) ac_abs_srcdir=$ac_abs_builddir;;
8944 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8945 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8946 esac;;
8947esac
8948case $ac_abs_builddir in
8949.) ac_abs_top_srcdir=$ac_top_srcdir;;
8950*)
8951 case $ac_top_srcdir in
8952 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8953 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8954 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8955 esac;;
8956esac
8957
8958
8959 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
8960echo "$as_me: executing $ac_dest commands" >&6;}
8961 case $ac_dest in
8962 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
8963 # Strip MF so we end up with the name of the file.
8964 mf=`echo "$mf" | sed -e 's/:.*$//'`
8965 # Check whether this is an Automake generated Makefile or not.
8966 # We used to match only the files named `Makefile.in', but
8967 # some people rename them; so instead we look at the file content.
8968 # Grep'ing the first line is not enough: some people post-process
8969 # each Makefile.in and add a new line on top of each file to say so.
8970 # So let's grep whole file.
8971 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
8972 dirpart=`(dirname "$mf") 2>/dev/null ||
8973$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8974 X"$mf" : 'X\(//\)[^/]' \| \
8975 X"$mf" : 'X\(//\)$' \| \
8976 X"$mf" : 'X\(/\)' \| \
8977 . : '\(.\)' 2>/dev/null ||
8978echo X"$mf" |
8979 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8980 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8981 /^X\(\/\/\)$/{ s//\1/; q; }
8982 /^X\(\/\).*/{ s//\1/; q; }
8983 s/.*/./; q'`
8984 else
8985 continue
8986 fi
8987 # Extract the definition of DEPDIR, am__include, and am__quote
8988 # from the Makefile without running `make'.
8989 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8990 test -z "$DEPDIR" && continue
8991 am__include=`sed -n 's/^am__include = //p' < "$mf"`
8992 test -z "am__include" && continue
8993 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8994 # When using ansi2knr, U may be empty or an underscore; expand it
8995 U=`sed -n 's/^U = //p' < "$mf"`
8996 # Find all dependency output files, they are included files with
8997 # $(DEPDIR) in their names. We invoke sed twice because it is the
8998 # simplest approach to changing $(DEPDIR) to its actual value in the
8999 # expansion.
9000 for file in `sed -n "
9001 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9002 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9003 # Make sure the directory exists.
9004 test -f "$dirpart/$file" && continue
9005 fdir=`(dirname "$file") 2>/dev/null ||
9006$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9007 X"$file" : 'X\(//\)[^/]' \| \
9008 X"$file" : 'X\(//\)$' \| \
9009 X"$file" : 'X\(/\)' \| \
9010 . : '\(.\)' 2>/dev/null ||
9011echo X"$file" |
9012 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9013 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9014 /^X\(\/\/\)$/{ s//\1/; q; }
9015 /^X\(\/\).*/{ s//\1/; q; }
9016 s/.*/./; q'`
9017 { if $as_mkdir_p; then
9018 mkdir -p $dirpart/$fdir
9019 else
9020 as_dir=$dirpart/$fdir
9021 as_dirs=
9022 while test ! -d "$as_dir"; do
9023 as_dirs="$as_dir $as_dirs"
9024 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9025$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9026 X"$as_dir" : 'X\(//\)[^/]' \| \
9027 X"$as_dir" : 'X\(//\)$' \| \
9028 X"$as_dir" : 'X\(/\)' \| \
9029 . : '\(.\)' 2>/dev/null ||
9030echo X"$as_dir" |
9031 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9032 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9033 /^X\(\/\/\)$/{ s//\1/; q; }
9034 /^X\(\/\).*/{ s//\1/; q; }
9035 s/.*/./; q'`
9036 done
9037 test ! -n "$as_dirs" || mkdir $as_dirs
9038 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
9039echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
9040 { (exit 1); exit 1; }; }; }
9041
9042 # echo "creating $dirpart/$file"
9043 echo '# dummy' > "$dirpart/$file"
9044 done
9045done
9046 ;;
9047 default-1 )
9048 for ac_file in $CONFIG_FILES; do
9049 # Support "outfile[:infile[:infile...]]"
9050 case "$ac_file" in
9051 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9052 esac
9053 # PO directories have a Makefile.in generated from Makefile.in.in.
9054 case "$ac_file" in */Makefile.in)
9055 # Adjust a relative srcdir.
9056 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
9057 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
9058 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
9059 # In autoconf-2.13 it is called $ac_given_srcdir.
9060 # In autoconf-2.50 it is called $srcdir.
9061 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
9062 case "$ac_given_srcdir" in
9063 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
9064 /*) top_srcdir="$ac_given_srcdir" ;;
9065 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
9066 esac
9067 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9068 rm -f "$ac_dir/POTFILES"
9069 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9070 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
9071 POMAKEFILEDEPS="POTFILES.in"
9072 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
9073 # on $ac_dir but don't depend on user-specified configuration
9074 # parameters.
9075 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
9076 # The LINGUAS file contains the set of available languages.
9077 if test -n "$OBSOLETE_ALL_LINGUAS"; then
9078 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
9079 fi
9080 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
9081 # Hide the ALL_LINGUAS assigment from automake.
9082 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
9083 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
9084 else
9085 # The set of available languages was given in configure.in.
9086 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
9087 fi
9088 case "$ac_given_srcdir" in
9089 .) srcdirpre= ;;
9090 *) srcdirpre='$(srcdir)/' ;;
9091 esac
9092 POFILES=
9093 GMOFILES=
9094 UPDATEPOFILES=
9095 DUMMYPOFILES=
9096 for lang in $ALL_LINGUAS; do
9097 POFILES="$POFILES $srcdirpre$lang.po"
9098 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
9099 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
9100 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
9101 done
9102 # CATALOGS depends on both $ac_dir and the user's LINGUAS
9103 # environment variable.
9104 INST_LINGUAS=
9105 if test -n "$ALL_LINGUAS"; then
9106 for presentlang in $ALL_LINGUAS; do
9107 useit=no
9108 if test "%UNSET%" != "$LINGUAS"; then
9109 desiredlanguages="$LINGUAS"
9110 else
9111 desiredlanguages="$ALL_LINGUAS"
9112 fi
9113 for desiredlang in $desiredlanguages; do
9114 # Use the presentlang catalog if desiredlang is
9115 # a. equal to presentlang, or
9116 # b. a variant of presentlang (because in this case,
9117 # presentlang can be used as a fallback for messages
9118 # which are not translated in the desiredlang catalog).
9119 case "$desiredlang" in
9120 "$presentlang"*) useit=yes;;
9121 esac
9122 done
9123 if test $useit = yes; then
9124 INST_LINGUAS="$INST_LINGUAS $presentlang"
9125 fi
9126 done
9127 fi
9128 CATALOGS=
9129 if test -n "$INST_LINGUAS"; then
9130 for lang in $INST_LINGUAS; do
9131 CATALOGS="$CATALOGS $lang.gmo"
9132 done
9133 fi
9134 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9135 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
9136 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
9137 if test -f "$f"; then
9138 case "$f" in
9139 *.orig | *.bak | *~) ;;
9140 *) cat "$f" >> "$ac_dir/Makefile" ;;
9141 esac
9142 fi
9143 done
9144 fi
9145 ;;
9146 esac
9147 done ;;
9148 esac
9149done
9150_ACEOF
9151
9152cat >>$CONFIG_STATUS <<\_ACEOF
9153
9154{ (exit 0); exit 0; }
9155_ACEOF
9156chmod +x $CONFIG_STATUS
9157ac_clean_files=$ac_clean_files_save
9158
9159
9160# configure is writing to config.log, and then calls config.status.
9161# config.status does its own redirection, appending to config.log.
9162# Unfortunately, on DOS this fails, as config.log is still kept open
9163# by configure, so config.status won't be able to write to it; its
9164# output is simply discarded. So we exec the FD to /dev/null,
9165# effectively closing config.log, so it can be properly (re)opened and
9166# appended to by config.status. When coming back to configure, we
9167# need to make the FD available again.
9168if test "$no_create" != yes; then
9169 ac_cs_success=:
9170 ac_config_status_args=
9171 test "$silent" = yes &&
9172 ac_config_status_args="$ac_config_status_args --quiet"
9173 exec 5>/dev/null
9174 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9175 exec 5>>config.log
9176 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9177 # would make configure fail if this is the last instruction.
9178 $ac_cs_success || { (exit 1); exit 1; }
9179fi
9180
This page took 0.535019 seconds and 4 git commands to generate.