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