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