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