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