Remove get_view_and_size.
[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
537b5f51 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 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 WARN_CFLAGS NO_WERROR WARN_CXXFLAGS LFS_CXXFLAGS CXXCPP EGREP MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBOBJS 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.
1881for targ in $target $canon_targets; do
1882 targ_32_little=
1883 targ_32_big=
1884 targ_64_little=
1885 targ_64_big=
1886 if test "$targ" = "all"; then
1887 targ_32_little=yes
1888 targ_32_big=yes
1889 targ_64_little=yes
1890 targ_64_big=yes
1891 else
1892 case "$targ" in
1893 i?86-*) targ_32_little=yes ;;
1894 x86_64-*) targ_64_little=yes ;;
1895 *)
1896 { { echo "$as_me:$LINENO: error: \"target $targ: unknown size and endianness\"" >&5
1897echo "$as_me: error: \"target $targ: unknown size and endianness\"" >&2;}
1898 { (exit 1); exit 1; }; }
1899 ;;
1900 esac
1901 fi
1902done
1903
1904if test -n "$targ_32_little"; then
1905
1906cat >>confdefs.h <<\_ACEOF
1907#define HAVE_TARGET_32_LITTLE 1
1908_ACEOF
1909
1910fi
1911if test -n "$targ_32_big"; then
1912
1913cat >>confdefs.h <<\_ACEOF
1914#define HAVE_TARGET_32_BIG 1
1915_ACEOF
1916
1917fi
1918if test -n "$targ_64_little"; then
1919
1920cat >>confdefs.h <<\_ACEOF
1921#define HAVE_TARGET_64_LITTLE 1
1922_ACEOF
1923
1924fi
1925if test -n "$targ_64_big"; then
1926
1927cat >>confdefs.h <<\_ACEOF
1928#define HAVE_TARGET_64_BIG 1
1929_ACEOF
1930
1931fi
1932
bae7f79e
ILT
1933ac_ext=c
1934ac_cpp='$CPP $CPPFLAGS'
1935ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1936ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1937ac_compiler_gnu=$ac_cv_c_compiler_gnu
1938if test -n "$ac_tool_prefix"; then
1939 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1940set dummy ${ac_tool_prefix}gcc; ac_word=$2
1941echo "$as_me:$LINENO: checking for $ac_word" >&5
1942echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1943if test "${ac_cv_prog_CC+set}" = set; then
1944 echo $ECHO_N "(cached) $ECHO_C" >&6
1945else
1946 if test -n "$CC"; then
1947 ac_cv_prog_CC="$CC" # Let the user override the test.
1948else
1949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1950for as_dir in $PATH
1951do
1952 IFS=$as_save_IFS
1953 test -z "$as_dir" && as_dir=.
1954 for ac_exec_ext in '' $ac_executable_extensions; do
1955 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1956 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1958 break 2
1959 fi
1960done
1961done
1962
1963fi
1964fi
1965CC=$ac_cv_prog_CC
1966if test -n "$CC"; then
1967 echo "$as_me:$LINENO: result: $CC" >&5
1968echo "${ECHO_T}$CC" >&6
1969else
1970 echo "$as_me:$LINENO: result: no" >&5
1971echo "${ECHO_T}no" >&6
1972fi
1973
1974fi
1975if test -z "$ac_cv_prog_CC"; then
1976 ac_ct_CC=$CC
1977 # Extract the first word of "gcc", so it can be a program name with args.
1978set dummy gcc; ac_word=$2
1979echo "$as_me:$LINENO: checking for $ac_word" >&5
1980echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1981if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1982 echo $ECHO_N "(cached) $ECHO_C" >&6
1983else
1984 if test -n "$ac_ct_CC"; then
1985 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1986else
1987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1988for as_dir in $PATH
1989do
1990 IFS=$as_save_IFS
1991 test -z "$as_dir" && as_dir=.
1992 for ac_exec_ext in '' $ac_executable_extensions; do
1993 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1994 ac_cv_prog_ac_ct_CC="gcc"
1995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1996 break 2
1997 fi
1998done
1999done
2000
2001fi
2002fi
2003ac_ct_CC=$ac_cv_prog_ac_ct_CC
2004if test -n "$ac_ct_CC"; then
2005 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2006echo "${ECHO_T}$ac_ct_CC" >&6
2007else
2008 echo "$as_me:$LINENO: result: no" >&5
2009echo "${ECHO_T}no" >&6
2010fi
2011
2012 CC=$ac_ct_CC
2013else
2014 CC="$ac_cv_prog_CC"
2015fi
2016
2017if test -z "$CC"; then
2018 if test -n "$ac_tool_prefix"; then
2019 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2020set dummy ${ac_tool_prefix}cc; ac_word=$2
2021echo "$as_me:$LINENO: checking for $ac_word" >&5
2022echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2023if test "${ac_cv_prog_CC+set}" = set; then
2024 echo $ECHO_N "(cached) $ECHO_C" >&6
2025else
2026 if test -n "$CC"; then
2027 ac_cv_prog_CC="$CC" # Let the user override the test.
2028else
2029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2030for as_dir in $PATH
2031do
2032 IFS=$as_save_IFS
2033 test -z "$as_dir" && as_dir=.
2034 for ac_exec_ext in '' $ac_executable_extensions; do
2035 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2036 ac_cv_prog_CC="${ac_tool_prefix}cc"
2037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2038 break 2
2039 fi
2040done
2041done
2042
2043fi
2044fi
2045CC=$ac_cv_prog_CC
2046if test -n "$CC"; then
2047 echo "$as_me:$LINENO: result: $CC" >&5
2048echo "${ECHO_T}$CC" >&6
2049else
2050 echo "$as_me:$LINENO: result: no" >&5
2051echo "${ECHO_T}no" >&6
2052fi
2053
2054fi
2055if test -z "$ac_cv_prog_CC"; then
2056 ac_ct_CC=$CC
2057 # Extract the first word of "cc", so it can be a program name with args.
2058set dummy cc; ac_word=$2
2059echo "$as_me:$LINENO: checking for $ac_word" >&5
2060echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2061if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2062 echo $ECHO_N "(cached) $ECHO_C" >&6
2063else
2064 if test -n "$ac_ct_CC"; then
2065 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2066else
2067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2068for as_dir in $PATH
2069do
2070 IFS=$as_save_IFS
2071 test -z "$as_dir" && as_dir=.
2072 for ac_exec_ext in '' $ac_executable_extensions; do
2073 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2074 ac_cv_prog_ac_ct_CC="cc"
2075 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2076 break 2
2077 fi
2078done
2079done
2080
2081fi
2082fi
2083ac_ct_CC=$ac_cv_prog_ac_ct_CC
2084if test -n "$ac_ct_CC"; then
2085 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2086echo "${ECHO_T}$ac_ct_CC" >&6
2087else
2088 echo "$as_me:$LINENO: result: no" >&5
2089echo "${ECHO_T}no" >&6
2090fi
2091
2092 CC=$ac_ct_CC
2093else
2094 CC="$ac_cv_prog_CC"
2095fi
2096
2097fi
2098if test -z "$CC"; then
2099 # Extract the first word of "cc", so it can be a program name with args.
2100set dummy cc; ac_word=$2
2101echo "$as_me:$LINENO: checking for $ac_word" >&5
2102echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2103if test "${ac_cv_prog_CC+set}" = set; then
2104 echo $ECHO_N "(cached) $ECHO_C" >&6
2105else
2106 if test -n "$CC"; then
2107 ac_cv_prog_CC="$CC" # Let the user override the test.
2108else
2109 ac_prog_rejected=no
2110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2111for as_dir in $PATH
2112do
2113 IFS=$as_save_IFS
2114 test -z "$as_dir" && as_dir=.
2115 for ac_exec_ext in '' $ac_executable_extensions; do
2116 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2117 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2118 ac_prog_rejected=yes
2119 continue
2120 fi
2121 ac_cv_prog_CC="cc"
2122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2123 break 2
2124 fi
2125done
2126done
2127
2128if test $ac_prog_rejected = yes; then
2129 # We found a bogon in the path, so make sure we never use it.
2130 set dummy $ac_cv_prog_CC
2131 shift
2132 if test $# != 0; then
2133 # We chose a different compiler from the bogus one.
2134 # However, it has the same basename, so the bogon will be chosen
2135 # first if we set CC to just the basename; use the full file name.
2136 shift
2137 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2138 fi
2139fi
2140fi
2141fi
2142CC=$ac_cv_prog_CC
2143if test -n "$CC"; then
2144 echo "$as_me:$LINENO: result: $CC" >&5
2145echo "${ECHO_T}$CC" >&6
2146else
2147 echo "$as_me:$LINENO: result: no" >&5
2148echo "${ECHO_T}no" >&6
2149fi
2150
2151fi
2152if test -z "$CC"; then
2153 if test -n "$ac_tool_prefix"; then
2154 for ac_prog in cl
2155 do
2156 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2157set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2158echo "$as_me:$LINENO: checking for $ac_word" >&5
2159echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2160if test "${ac_cv_prog_CC+set}" = set; then
2161 echo $ECHO_N "(cached) $ECHO_C" >&6
2162else
2163 if test -n "$CC"; then
2164 ac_cv_prog_CC="$CC" # Let the user override the test.
2165else
2166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2167for as_dir in $PATH
2168do
2169 IFS=$as_save_IFS
2170 test -z "$as_dir" && as_dir=.
2171 for ac_exec_ext in '' $ac_executable_extensions; do
2172 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2173 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2175 break 2
2176 fi
2177done
2178done
2179
2180fi
2181fi
2182CC=$ac_cv_prog_CC
2183if test -n "$CC"; then
2184 echo "$as_me:$LINENO: result: $CC" >&5
2185echo "${ECHO_T}$CC" >&6
2186else
2187 echo "$as_me:$LINENO: result: no" >&5
2188echo "${ECHO_T}no" >&6
2189fi
2190
2191 test -n "$CC" && break
2192 done
2193fi
2194if test -z "$CC"; then
2195 ac_ct_CC=$CC
2196 for ac_prog in cl
2197do
2198 # Extract the first word of "$ac_prog", so it can be a program name with args.
2199set dummy $ac_prog; ac_word=$2
2200echo "$as_me:$LINENO: checking for $ac_word" >&5
2201echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2202if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2203 echo $ECHO_N "(cached) $ECHO_C" >&6
2204else
2205 if test -n "$ac_ct_CC"; then
2206 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2207else
2208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2209for as_dir in $PATH
2210do
2211 IFS=$as_save_IFS
2212 test -z "$as_dir" && as_dir=.
2213 for ac_exec_ext in '' $ac_executable_extensions; do
2214 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2215 ac_cv_prog_ac_ct_CC="$ac_prog"
2216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2217 break 2
2218 fi
2219done
2220done
2221
2222fi
2223fi
2224ac_ct_CC=$ac_cv_prog_ac_ct_CC
2225if test -n "$ac_ct_CC"; then
2226 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2227echo "${ECHO_T}$ac_ct_CC" >&6
2228else
2229 echo "$as_me:$LINENO: result: no" >&5
2230echo "${ECHO_T}no" >&6
2231fi
2232
2233 test -n "$ac_ct_CC" && break
2234done
2235
2236 CC=$ac_ct_CC
2237fi
2238
2239fi
2240
2241
2242test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2243See \`config.log' for more details." >&5
2244echo "$as_me: error: no acceptable C compiler found in \$PATH
2245See \`config.log' for more details." >&2;}
2246 { (exit 1); exit 1; }; }
2247
2248# Provide some information about the compiler.
2249echo "$as_me:$LINENO:" \
2250 "checking for C compiler version" >&5
2251ac_compiler=`set X $ac_compile; echo $2`
2252{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2253 (eval $ac_compiler --version </dev/null >&5) 2>&5
2254 ac_status=$?
2255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256 (exit $ac_status); }
2257{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2258 (eval $ac_compiler -v </dev/null >&5) 2>&5
2259 ac_status=$?
2260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261 (exit $ac_status); }
2262{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2263 (eval $ac_compiler -V </dev/null >&5) 2>&5
2264 ac_status=$?
2265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266 (exit $ac_status); }
2267
2268cat >conftest.$ac_ext <<_ACEOF
2269/* confdefs.h. */
2270_ACEOF
2271cat confdefs.h >>conftest.$ac_ext
2272cat >>conftest.$ac_ext <<_ACEOF
2273/* end confdefs.h. */
2274
2275int
2276main ()
2277{
2278
2279 ;
2280 return 0;
2281}
2282_ACEOF
2283ac_clean_files_save=$ac_clean_files
2284ac_clean_files="$ac_clean_files a.out a.exe b.out"
2285# Try to create an executable without -o first, disregard a.out.
2286# It will help us diagnose broken compilers, and finding out an intuition
2287# of exeext.
2288echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2289echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2290ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2291if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2292 (eval $ac_link_default) 2>&5
2293 ac_status=$?
2294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2295 (exit $ac_status); }; then
2296 # Find the output, starting from the most likely. This scheme is
2297# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2298# resort.
2299
2300# Be careful to initialize this variable, since it used to be cached.
2301# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2302ac_cv_exeext=
2303# b.out is created by i960 compilers.
2304for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2305do
2306 test -f "$ac_file" || continue
2307 case $ac_file in
2308 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2309 ;;
2310 conftest.$ac_ext )
2311 # This is the source file.
2312 ;;
2313 [ab].out )
2314 # We found the default executable, but exeext='' is most
2315 # certainly right.
2316 break;;
2317 *.* )
2318 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2319 # FIXME: I believe we export ac_cv_exeext for Libtool,
2320 # but it would be cool to find out if it's true. Does anybody
2321 # maintain Libtool? --akim.
2322 export ac_cv_exeext
2323 break;;
2324 * )
2325 break;;
2326 esac
2327done
2328else
2329 echo "$as_me: failed program was:" >&5
2330sed 's/^/| /' conftest.$ac_ext >&5
2331
2332{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2333See \`config.log' for more details." >&5
2334echo "$as_me: error: C compiler cannot create executables
2335See \`config.log' for more details." >&2;}
2336 { (exit 77); exit 77; }; }
2337fi
2338
2339ac_exeext=$ac_cv_exeext
2340echo "$as_me:$LINENO: result: $ac_file" >&5
2341echo "${ECHO_T}$ac_file" >&6
2342
2343# Check the compiler produces executables we can run. If not, either
2344# the compiler is broken, or we cross compile.
2345echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2346echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2347# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2348# If not cross compiling, check that we can run a simple program.
2349if test "$cross_compiling" != yes; then
2350 if { ac_try='./$ac_file'
2351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2352 (eval $ac_try) 2>&5
2353 ac_status=$?
2354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2355 (exit $ac_status); }; }; then
2356 cross_compiling=no
2357 else
2358 if test "$cross_compiling" = maybe; then
2359 cross_compiling=yes
2360 else
2361 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2362If you meant to cross compile, use \`--host'.
2363See \`config.log' for more details." >&5
2364echo "$as_me: error: cannot run C compiled programs.
2365If you meant to cross compile, use \`--host'.
2366See \`config.log' for more details." >&2;}
2367 { (exit 1); exit 1; }; }
2368 fi
2369 fi
2370fi
2371echo "$as_me:$LINENO: result: yes" >&5
2372echo "${ECHO_T}yes" >&6
2373
2374rm -f a.out a.exe conftest$ac_cv_exeext b.out
2375ac_clean_files=$ac_clean_files_save
2376# Check the compiler produces executables we can run. If not, either
2377# the compiler is broken, or we cross compile.
2378echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2379echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2380echo "$as_me:$LINENO: result: $cross_compiling" >&5
2381echo "${ECHO_T}$cross_compiling" >&6
2382
2383echo "$as_me:$LINENO: checking for suffix of executables" >&5
2384echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2385if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2386 (eval $ac_link) 2>&5
2387 ac_status=$?
2388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389 (exit $ac_status); }; then
2390 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2391# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2392# work properly (i.e., refer to `conftest.exe'), while it won't with
2393# `rm'.
2394for ac_file in conftest.exe conftest conftest.*; do
2395 test -f "$ac_file" || continue
2396 case $ac_file in
2397 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2398 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2399 export ac_cv_exeext
2400 break;;
2401 * ) break;;
2402 esac
2403done
2404else
2405 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2406See \`config.log' for more details." >&5
2407echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2408See \`config.log' for more details." >&2;}
2409 { (exit 1); exit 1; }; }
2410fi
2411
2412rm -f conftest$ac_cv_exeext
2413echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2414echo "${ECHO_T}$ac_cv_exeext" >&6
2415
2416rm -f conftest.$ac_ext
2417EXEEXT=$ac_cv_exeext
2418ac_exeext=$EXEEXT
2419echo "$as_me:$LINENO: checking for suffix of object files" >&5
2420echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2421if test "${ac_cv_objext+set}" = set; then
2422 echo $ECHO_N "(cached) $ECHO_C" >&6
2423else
2424 cat >conftest.$ac_ext <<_ACEOF
2425/* confdefs.h. */
2426_ACEOF
2427cat confdefs.h >>conftest.$ac_ext
2428cat >>conftest.$ac_ext <<_ACEOF
2429/* end confdefs.h. */
2430
2431int
2432main ()
2433{
2434
2435 ;
2436 return 0;
2437}
2438_ACEOF
2439rm -f conftest.o conftest.obj
2440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2441 (eval $ac_compile) 2>&5
2442 ac_status=$?
2443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444 (exit $ac_status); }; then
2445 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2446 case $ac_file in
2447 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2448 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2449 break;;
2450 esac
2451done
2452else
2453 echo "$as_me: failed program was:" >&5
2454sed 's/^/| /' conftest.$ac_ext >&5
2455
2456{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2457See \`config.log' for more details." >&5
2458echo "$as_me: error: cannot compute suffix of object files: cannot compile
2459See \`config.log' for more details." >&2;}
2460 { (exit 1); exit 1; }; }
2461fi
2462
2463rm -f conftest.$ac_cv_objext conftest.$ac_ext
2464fi
2465echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2466echo "${ECHO_T}$ac_cv_objext" >&6
2467OBJEXT=$ac_cv_objext
2468ac_objext=$OBJEXT
2469echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2470echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2471if test "${ac_cv_c_compiler_gnu+set}" = set; then
2472 echo $ECHO_N "(cached) $ECHO_C" >&6
2473else
2474 cat >conftest.$ac_ext <<_ACEOF
2475/* confdefs.h. */
2476_ACEOF
2477cat confdefs.h >>conftest.$ac_ext
2478cat >>conftest.$ac_ext <<_ACEOF
2479/* end confdefs.h. */
2480
2481int
2482main ()
2483{
2484#ifndef __GNUC__
2485 choke me
2486#endif
2487
2488 ;
2489 return 0;
2490}
2491_ACEOF
2492rm -f conftest.$ac_objext
2493if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2494 (eval $ac_compile) 2>conftest.er1
2495 ac_status=$?
2496 grep -v '^ *+' conftest.er1 >conftest.err
2497 rm -f conftest.er1
2498 cat conftest.err >&5
2499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500 (exit $ac_status); } &&
2501 { ac_try='test -z "$ac_c_werror_flag"
2502 || test ! -s conftest.err'
2503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2504 (eval $ac_try) 2>&5
2505 ac_status=$?
2506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507 (exit $ac_status); }; } &&
2508 { ac_try='test -s conftest.$ac_objext'
2509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2510 (eval $ac_try) 2>&5
2511 ac_status=$?
2512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513 (exit $ac_status); }; }; then
2514 ac_compiler_gnu=yes
2515else
2516 echo "$as_me: failed program was:" >&5
2517sed 's/^/| /' conftest.$ac_ext >&5
2518
2519ac_compiler_gnu=no
2520fi
2521rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2522ac_cv_c_compiler_gnu=$ac_compiler_gnu
2523
2524fi
2525echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2526echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2527GCC=`test $ac_compiler_gnu = yes && echo yes`
2528ac_test_CFLAGS=${CFLAGS+set}
2529ac_save_CFLAGS=$CFLAGS
2530CFLAGS="-g"
2531echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2532echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2533if test "${ac_cv_prog_cc_g+set}" = set; then
2534 echo $ECHO_N "(cached) $ECHO_C" >&6
2535else
2536 cat >conftest.$ac_ext <<_ACEOF
2537/* confdefs.h. */
2538_ACEOF
2539cat confdefs.h >>conftest.$ac_ext
2540cat >>conftest.$ac_ext <<_ACEOF
2541/* end confdefs.h. */
2542
2543int
2544main ()
2545{
2546
2547 ;
2548 return 0;
2549}
2550_ACEOF
2551rm -f conftest.$ac_objext
2552if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2553 (eval $ac_compile) 2>conftest.er1
2554 ac_status=$?
2555 grep -v '^ *+' conftest.er1 >conftest.err
2556 rm -f conftest.er1
2557 cat conftest.err >&5
2558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559 (exit $ac_status); } &&
2560 { ac_try='test -z "$ac_c_werror_flag"
2561 || test ! -s conftest.err'
2562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2563 (eval $ac_try) 2>&5
2564 ac_status=$?
2565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566 (exit $ac_status); }; } &&
2567 { ac_try='test -s conftest.$ac_objext'
2568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2569 (eval $ac_try) 2>&5
2570 ac_status=$?
2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572 (exit $ac_status); }; }; then
2573 ac_cv_prog_cc_g=yes
2574else
2575 echo "$as_me: failed program was:" >&5
2576sed 's/^/| /' conftest.$ac_ext >&5
2577
2578ac_cv_prog_cc_g=no
2579fi
2580rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2581fi
2582echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2583echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2584if test "$ac_test_CFLAGS" = set; then
2585 CFLAGS=$ac_save_CFLAGS
2586elif test $ac_cv_prog_cc_g = yes; then
2587 if test "$GCC" = yes; then
2588 CFLAGS="-g -O2"
2589 else
2590 CFLAGS="-g"
2591 fi
2592else
2593 if test "$GCC" = yes; then
2594 CFLAGS="-O2"
2595 else
2596 CFLAGS=
2597 fi
2598fi
2599echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2600echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2601if test "${ac_cv_prog_cc_stdc+set}" = set; then
2602 echo $ECHO_N "(cached) $ECHO_C" >&6
2603else
2604 ac_cv_prog_cc_stdc=no
2605ac_save_CC=$CC
2606cat >conftest.$ac_ext <<_ACEOF
2607/* confdefs.h. */
2608_ACEOF
2609cat confdefs.h >>conftest.$ac_ext
2610cat >>conftest.$ac_ext <<_ACEOF
2611/* end confdefs.h. */
2612#include <stdarg.h>
2613#include <stdio.h>
2614#include <sys/types.h>
2615#include <sys/stat.h>
2616/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2617struct buf { int x; };
2618FILE * (*rcsopen) (struct buf *, struct stat *, int);
2619static char *e (p, i)
2620 char **p;
2621 int i;
2622{
2623 return p[i];
2624}
2625static char *f (char * (*g) (char **, int), char **p, ...)
2626{
2627 char *s;
2628 va_list v;
2629 va_start (v,p);
2630 s = g (p, va_arg (v,int));
2631 va_end (v);
2632 return s;
2633}
2634
2635/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2636 function prototypes and stuff, but not '\xHH' hex character constants.
2637 These don't provoke an error unfortunately, instead are silently treated
2638 as 'x'. The following induces an error, until -std1 is added to get
2639 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2640 array size at least. It's necessary to write '\x00'==0 to get something
2641 that's true only with -std1. */
2642int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2643
2644int test (int i, double x);
2645struct s1 {int (*f) (int a);};
2646struct s2 {int (*f) (double a);};
2647int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2648int argc;
2649char **argv;
2650int
2651main ()
2652{
2653return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2654 ;
2655 return 0;
2656}
2657_ACEOF
2658# Don't try gcc -ansi; that turns off useful extensions and
2659# breaks some systems' header files.
2660# AIX -qlanglvl=ansi
2661# Ultrix and OSF/1 -std1
2662# HP-UX 10.20 and later -Ae
2663# HP-UX older versions -Aa -D_HPUX_SOURCE
2664# SVR4 -Xc -D__EXTENSIONS__
2665for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2666do
2667 CC="$ac_save_CC $ac_arg"
2668 rm -f conftest.$ac_objext
2669if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2670 (eval $ac_compile) 2>conftest.er1
2671 ac_status=$?
2672 grep -v '^ *+' conftest.er1 >conftest.err
2673 rm -f conftest.er1
2674 cat conftest.err >&5
2675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676 (exit $ac_status); } &&
2677 { ac_try='test -z "$ac_c_werror_flag"
2678 || test ! -s conftest.err'
2679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2680 (eval $ac_try) 2>&5
2681 ac_status=$?
2682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683 (exit $ac_status); }; } &&
2684 { ac_try='test -s conftest.$ac_objext'
2685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2686 (eval $ac_try) 2>&5
2687 ac_status=$?
2688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689 (exit $ac_status); }; }; then
2690 ac_cv_prog_cc_stdc=$ac_arg
2691break
2692else
2693 echo "$as_me: failed program was:" >&5
2694sed 's/^/| /' conftest.$ac_ext >&5
2695
2696fi
2697rm -f conftest.err conftest.$ac_objext
2698done
2699rm -f conftest.$ac_ext conftest.$ac_objext
2700CC=$ac_save_CC
2701
2702fi
2703
2704case "x$ac_cv_prog_cc_stdc" in
2705 x|xno)
2706 echo "$as_me:$LINENO: result: none needed" >&5
2707echo "${ECHO_T}none needed" >&6 ;;
2708 *)
2709 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2710echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2711 CC="$CC $ac_cv_prog_cc_stdc" ;;
2712esac
2713
2714# Some people use a C++ compiler to compile C. Since we use `exit',
2715# in C++ we need to declare it. In case someone uses the same compiler
2716# for both compiling C and C++ we need to have the C++ compiler decide
2717# the declaration of exit, since it's the most demanding environment.
2718cat >conftest.$ac_ext <<_ACEOF
2719#ifndef __cplusplus
2720 choke me
2721#endif
2722_ACEOF
2723rm -f conftest.$ac_objext
2724if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2725 (eval $ac_compile) 2>conftest.er1
2726 ac_status=$?
2727 grep -v '^ *+' conftest.er1 >conftest.err
2728 rm -f conftest.er1
2729 cat conftest.err >&5
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); } &&
2732 { ac_try='test -z "$ac_c_werror_flag"
2733 || test ! -s conftest.err'
2734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2735 (eval $ac_try) 2>&5
2736 ac_status=$?
2737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738 (exit $ac_status); }; } &&
2739 { ac_try='test -s conftest.$ac_objext'
2740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2741 (eval $ac_try) 2>&5
2742 ac_status=$?
2743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744 (exit $ac_status); }; }; then
2745 for ac_declaration in \
2746 '' \
2747 'extern "C" void std::exit (int) throw (); using std::exit;' \
2748 'extern "C" void std::exit (int); using std::exit;' \
2749 'extern "C" void exit (int) throw ();' \
2750 'extern "C" void exit (int);' \
2751 'void exit (int);'
2752do
2753 cat >conftest.$ac_ext <<_ACEOF
2754/* confdefs.h. */
2755_ACEOF
2756cat confdefs.h >>conftest.$ac_ext
2757cat >>conftest.$ac_ext <<_ACEOF
2758/* end confdefs.h. */
2759$ac_declaration
2760#include <stdlib.h>
2761int
2762main ()
2763{
2764exit (42);
2765 ;
2766 return 0;
2767}
2768_ACEOF
2769rm -f conftest.$ac_objext
2770if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2771 (eval $ac_compile) 2>conftest.er1
2772 ac_status=$?
2773 grep -v '^ *+' conftest.er1 >conftest.err
2774 rm -f conftest.er1
2775 cat conftest.err >&5
2776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777 (exit $ac_status); } &&
2778 { ac_try='test -z "$ac_c_werror_flag"
2779 || test ! -s conftest.err'
2780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2781 (eval $ac_try) 2>&5
2782 ac_status=$?
2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); }; } &&
2785 { ac_try='test -s conftest.$ac_objext'
2786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2787 (eval $ac_try) 2>&5
2788 ac_status=$?
2789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790 (exit $ac_status); }; }; then
2791 :
2792else
2793 echo "$as_me: failed program was:" >&5
2794sed 's/^/| /' conftest.$ac_ext >&5
2795
2796continue
2797fi
2798rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2799 cat >conftest.$ac_ext <<_ACEOF
2800/* confdefs.h. */
2801_ACEOF
2802cat confdefs.h >>conftest.$ac_ext
2803cat >>conftest.$ac_ext <<_ACEOF
2804/* end confdefs.h. */
2805$ac_declaration
2806int
2807main ()
2808{
2809exit (42);
2810 ;
2811 return 0;
2812}
2813_ACEOF
2814rm -f conftest.$ac_objext
2815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2816 (eval $ac_compile) 2>conftest.er1
2817 ac_status=$?
2818 grep -v '^ *+' conftest.er1 >conftest.err
2819 rm -f conftest.er1
2820 cat conftest.err >&5
2821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2822 (exit $ac_status); } &&
2823 { ac_try='test -z "$ac_c_werror_flag"
2824 || test ! -s conftest.err'
2825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2826 (eval $ac_try) 2>&5
2827 ac_status=$?
2828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829 (exit $ac_status); }; } &&
2830 { ac_try='test -s conftest.$ac_objext'
2831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2832 (eval $ac_try) 2>&5
2833 ac_status=$?
2834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835 (exit $ac_status); }; }; then
2836 break
2837else
2838 echo "$as_me: failed program was:" >&5
2839sed 's/^/| /' conftest.$ac_ext >&5
2840
2841fi
2842rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2843done
2844rm -f conftest*
2845if test -n "$ac_declaration"; then
2846 echo '#ifdef __cplusplus' >>confdefs.h
2847 echo $ac_declaration >>confdefs.h
2848 echo '#endif' >>confdefs.h
2849fi
2850
2851else
2852 echo "$as_me: failed program was:" >&5
2853sed 's/^/| /' conftest.$ac_ext >&5
2854
2855fi
2856rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2857ac_ext=c
2858ac_cpp='$CPP $CPPFLAGS'
2859ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2860ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2861ac_compiler_gnu=$ac_cv_c_compiler_gnu
2862DEPDIR="${am__leading_dot}deps"
2863
2864 ac_config_commands="$ac_config_commands depfiles"
2865
2866
2867am_make=${MAKE-make}
2868cat > confinc << 'END'
2869am__doit:
2870 @echo done
2871.PHONY: am__doit
2872END
2873# If we don't find an include directive, just comment out the code.
2874echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2875echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2876am__include="#"
2877am__quote=
2878_am_result=none
2879# First try GNU make style include.
2880echo "include confinc" > confmf
2881# We grep out `Entering directory' and `Leaving directory'
2882# messages which can occur if `w' ends up in MAKEFLAGS.
2883# In particular we don't look at `^make:' because GNU make might
2884# be invoked under some other name (usually "gmake"), in which
2885# case it prints its new name instead of `make'.
2886if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2887 am__include=include
2888 am__quote=
2889 _am_result=GNU
2890fi
2891# Now try BSD make style include.
2892if test "$am__include" = "#"; then
2893 echo '.include "confinc"' > confmf
2894 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2895 am__include=.include
2896 am__quote="\""
2897 _am_result=BSD
2898 fi
2899fi
2900
2901
2902echo "$as_me:$LINENO: result: $_am_result" >&5
2903echo "${ECHO_T}$_am_result" >&6
2904rm -f confinc confmf
2905
2906# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2907if test "${enable_dependency_tracking+set}" = set; then
2908 enableval="$enable_dependency_tracking"
2909
2910fi;
2911if test "x$enable_dependency_tracking" != xno; then
2912 am_depcomp="$ac_aux_dir/depcomp"
2913 AMDEPBACKSLASH='\'
2914fi
2915
2916
2917if test "x$enable_dependency_tracking" != xno; then
2918 AMDEP_TRUE=
2919 AMDEP_FALSE='#'
2920else
2921 AMDEP_TRUE='#'
2922 AMDEP_FALSE=
2923fi
2924
2925
2926
2927
2928depcc="$CC" am_compiler_list=
2929
2930echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2931echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2932if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2933 echo $ECHO_N "(cached) $ECHO_C" >&6
2934else
2935 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2936 # We make a subdir and do the tests there. Otherwise we can end up
2937 # making bogus files that we don't know about and never remove. For
2938 # instance it was reported that on HP-UX the gcc test will end up
2939 # making a dummy file named `D' -- because `-MD' means `put the output
2940 # in D'.
2941 mkdir conftest.dir
2942 # Copy depcomp to subdir because otherwise we won't find it if we're
2943 # using a relative directory.
2944 cp "$am_depcomp" conftest.dir
2945 cd conftest.dir
2946 # We will build objects and dependencies in a subdirectory because
2947 # it helps to detect inapplicable dependency modes. For instance
2948 # both Tru64's cc and ICC support -MD to output dependencies as a
2949 # side effect of compilation, but ICC will put the dependencies in
2950 # the current directory while Tru64 will put them in the object
2951 # directory.
2952 mkdir sub
2953
2954 am_cv_CC_dependencies_compiler_type=none
2955 if test "$am_compiler_list" = ""; then
2956 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2957 fi
2958 for depmode in $am_compiler_list; do
2959 # Setup a source with many dependencies, because some compilers
2960 # like to wrap large dependency lists on column 80 (with \), and
2961 # we should not choose a depcomp mode which is confused by this.
2962 #
2963 # We need to recreate these files for each test, as the compiler may
2964 # overwrite some of them when testing with obscure command lines.
2965 # This happens at least with the AIX C compiler.
2966 : > sub/conftest.c
2967 for i in 1 2 3 4 5 6; do
2968 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2969 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2970 # Solaris 8's {/usr,}/bin/sh.
2971 touch sub/conftst$i.h
2972 done
2973 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2974
2975 case $depmode in
2976 nosideeffect)
2977 # after this tag, mechanisms are not by side-effect, so they'll
2978 # only be used when explicitly requested
2979 if test "x$enable_dependency_tracking" = xyes; then
2980 continue
2981 else
2982 break
2983 fi
2984 ;;
2985 none) break ;;
2986 esac
2987 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2988 # mode. It turns out that the SunPro C++ compiler does not properly
2989 # handle `-M -o', and we need to detect this.
2990 if depmode=$depmode \
2991 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2992 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2993 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2994 >/dev/null 2>conftest.err &&
2995 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2996 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2997 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2998 # icc doesn't choke on unknown options, it will just issue warnings
2999 # or remarks (even with -Werror). So we grep stderr for any message
3000 # that says an option was ignored or not supported.
3001 # When given -MP, icc 7.0 and 7.1 complain thusly:
3002 # icc: Command line warning: ignoring option '-M'; no argument required
3003 # The diagnosis changed in icc 8.0:
3004 # icc: Command line remark: option '-MP' not supported
3005 if (grep 'ignoring option' conftest.err ||
3006 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3007 am_cv_CC_dependencies_compiler_type=$depmode
3008 break
3009 fi
3010 fi
3011 done
3012
3013 cd ..
3014 rm -rf conftest.dir
3015else
3016 am_cv_CC_dependencies_compiler_type=none
3017fi
3018
3019fi
3020echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3021echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3022CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3023
3024
3025
3026if
3027 test "x$enable_dependency_tracking" != xno \
3028 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3029 am__fastdepCC_TRUE=
3030 am__fastdepCC_FALSE='#'
3031else
3032 am__fastdepCC_TRUE='#'
3033 am__fastdepCC_FALSE=
3034fi
3035
3036
3037ac_ext=cc
3038ac_cpp='$CXXCPP $CPPFLAGS'
3039ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3040ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3041ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3042if test -n "$ac_tool_prefix"; then
3043 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3044 do
3045 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3046set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3047echo "$as_me:$LINENO: checking for $ac_word" >&5
3048echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3049if test "${ac_cv_prog_CXX+set}" = set; then
3050 echo $ECHO_N "(cached) $ECHO_C" >&6
3051else
3052 if test -n "$CXX"; then
3053 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3054else
3055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3056for as_dir in $PATH
3057do
3058 IFS=$as_save_IFS
3059 test -z "$as_dir" && as_dir=.
3060 for ac_exec_ext in '' $ac_executable_extensions; do
3061 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3062 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3064 break 2
3065 fi
3066done
3067done
3068
3069fi
3070fi
3071CXX=$ac_cv_prog_CXX
3072if test -n "$CXX"; then
3073 echo "$as_me:$LINENO: result: $CXX" >&5
3074echo "${ECHO_T}$CXX" >&6
3075else
3076 echo "$as_me:$LINENO: result: no" >&5
3077echo "${ECHO_T}no" >&6
3078fi
3079
3080 test -n "$CXX" && break
3081 done
3082fi
3083if test -z "$CXX"; then
3084 ac_ct_CXX=$CXX
3085 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3086do
3087 # Extract the first word of "$ac_prog", so it can be a program name with args.
3088set dummy $ac_prog; ac_word=$2
3089echo "$as_me:$LINENO: checking for $ac_word" >&5
3090echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3091if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3092 echo $ECHO_N "(cached) $ECHO_C" >&6
3093else
3094 if test -n "$ac_ct_CXX"; then
3095 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3096else
3097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3098for as_dir in $PATH
3099do
3100 IFS=$as_save_IFS
3101 test -z "$as_dir" && as_dir=.
3102 for ac_exec_ext in '' $ac_executable_extensions; do
3103 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3104 ac_cv_prog_ac_ct_CXX="$ac_prog"
3105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3106 break 2
3107 fi
3108done
3109done
3110
3111fi
3112fi
3113ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3114if test -n "$ac_ct_CXX"; then
3115 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3116echo "${ECHO_T}$ac_ct_CXX" >&6
3117else
3118 echo "$as_me:$LINENO: result: no" >&5
3119echo "${ECHO_T}no" >&6
3120fi
3121
3122 test -n "$ac_ct_CXX" && break
3123done
3124test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3125
3126 CXX=$ac_ct_CXX
3127fi
3128
3129
3130# Provide some information about the compiler.
3131echo "$as_me:$LINENO:" \
3132 "checking for C++ compiler version" >&5
3133ac_compiler=`set X $ac_compile; echo $2`
3134{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3135 (eval $ac_compiler --version </dev/null >&5) 2>&5
3136 ac_status=$?
3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138 (exit $ac_status); }
3139{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3140 (eval $ac_compiler -v </dev/null >&5) 2>&5
3141 ac_status=$?
3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143 (exit $ac_status); }
3144{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3145 (eval $ac_compiler -V </dev/null >&5) 2>&5
3146 ac_status=$?
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); }
3149
3150echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3151echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3152if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3153 echo $ECHO_N "(cached) $ECHO_C" >&6
3154else
3155 cat >conftest.$ac_ext <<_ACEOF
3156/* confdefs.h. */
3157_ACEOF
3158cat confdefs.h >>conftest.$ac_ext
3159cat >>conftest.$ac_ext <<_ACEOF
3160/* end confdefs.h. */
3161
3162int
3163main ()
3164{
3165#ifndef __GNUC__
3166 choke me
3167#endif
3168
3169 ;
3170 return 0;
3171}
3172_ACEOF
3173rm -f conftest.$ac_objext
3174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3175 (eval $ac_compile) 2>conftest.er1
3176 ac_status=$?
3177 grep -v '^ *+' conftest.er1 >conftest.err
3178 rm -f conftest.er1
3179 cat conftest.err >&5
3180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181 (exit $ac_status); } &&
3182 { ac_try='test -z "$ac_cxx_werror_flag"
3183 || test ! -s conftest.err'
3184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3185 (eval $ac_try) 2>&5
3186 ac_status=$?
3187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188 (exit $ac_status); }; } &&
3189 { ac_try='test -s conftest.$ac_objext'
3190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3191 (eval $ac_try) 2>&5
3192 ac_status=$?
3193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194 (exit $ac_status); }; }; then
3195 ac_compiler_gnu=yes
3196else
3197 echo "$as_me: failed program was:" >&5
3198sed 's/^/| /' conftest.$ac_ext >&5
3199
3200ac_compiler_gnu=no
3201fi
3202rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3203ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3204
3205fi
3206echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3207echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3208GXX=`test $ac_compiler_gnu = yes && echo yes`
3209ac_test_CXXFLAGS=${CXXFLAGS+set}
3210ac_save_CXXFLAGS=$CXXFLAGS
3211CXXFLAGS="-g"
3212echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3213echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3214if test "${ac_cv_prog_cxx_g+set}" = set; then
3215 echo $ECHO_N "(cached) $ECHO_C" >&6
3216else
3217 cat >conftest.$ac_ext <<_ACEOF
3218/* confdefs.h. */
3219_ACEOF
3220cat confdefs.h >>conftest.$ac_ext
3221cat >>conftest.$ac_ext <<_ACEOF
3222/* end confdefs.h. */
3223
3224int
3225main ()
3226{
3227
3228 ;
3229 return 0;
3230}
3231_ACEOF
3232rm -f conftest.$ac_objext
3233if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3234 (eval $ac_compile) 2>conftest.er1
3235 ac_status=$?
3236 grep -v '^ *+' conftest.er1 >conftest.err
3237 rm -f conftest.er1
3238 cat conftest.err >&5
3239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240 (exit $ac_status); } &&
3241 { ac_try='test -z "$ac_cxx_werror_flag"
3242 || test ! -s conftest.err'
3243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3244 (eval $ac_try) 2>&5
3245 ac_status=$?
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); }; } &&
3248 { ac_try='test -s conftest.$ac_objext'
3249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3250 (eval $ac_try) 2>&5
3251 ac_status=$?
3252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253 (exit $ac_status); }; }; then
3254 ac_cv_prog_cxx_g=yes
3255else
3256 echo "$as_me: failed program was:" >&5
3257sed 's/^/| /' conftest.$ac_ext >&5
3258
3259ac_cv_prog_cxx_g=no
3260fi
3261rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3262fi
3263echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3264echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3265if test "$ac_test_CXXFLAGS" = set; then
3266 CXXFLAGS=$ac_save_CXXFLAGS
3267elif test $ac_cv_prog_cxx_g = yes; then
3268 if test "$GXX" = yes; then
3269 CXXFLAGS="-g -O2"
3270 else
3271 CXXFLAGS="-g"
3272 fi
3273else
3274 if test "$GXX" = yes; then
3275 CXXFLAGS="-O2"
3276 else
3277 CXXFLAGS=
3278 fi
3279fi
3280for ac_declaration in \
3281 '' \
3282 'extern "C" void std::exit (int) throw (); using std::exit;' \
3283 'extern "C" void std::exit (int); using std::exit;' \
3284 'extern "C" void exit (int) throw ();' \
3285 'extern "C" void exit (int);' \
3286 'void exit (int);'
3287do
3288 cat >conftest.$ac_ext <<_ACEOF
3289/* confdefs.h. */
3290_ACEOF
3291cat confdefs.h >>conftest.$ac_ext
3292cat >>conftest.$ac_ext <<_ACEOF
3293/* end confdefs.h. */
3294$ac_declaration
3295#include <stdlib.h>
3296int
3297main ()
3298{
3299exit (42);
3300 ;
3301 return 0;
3302}
3303_ACEOF
3304rm -f conftest.$ac_objext
3305if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3306 (eval $ac_compile) 2>conftest.er1
3307 ac_status=$?
3308 grep -v '^ *+' conftest.er1 >conftest.err
3309 rm -f conftest.er1
3310 cat conftest.err >&5
3311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312 (exit $ac_status); } &&
3313 { ac_try='test -z "$ac_cxx_werror_flag"
3314 || test ! -s conftest.err'
3315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3316 (eval $ac_try) 2>&5
3317 ac_status=$?
3318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3319 (exit $ac_status); }; } &&
3320 { ac_try='test -s conftest.$ac_objext'
3321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3322 (eval $ac_try) 2>&5
3323 ac_status=$?
3324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325 (exit $ac_status); }; }; then
3326 :
3327else
3328 echo "$as_me: failed program was:" >&5
3329sed 's/^/| /' conftest.$ac_ext >&5
3330
3331continue
3332fi
3333rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3334 cat >conftest.$ac_ext <<_ACEOF
3335/* confdefs.h. */
3336_ACEOF
3337cat confdefs.h >>conftest.$ac_ext
3338cat >>conftest.$ac_ext <<_ACEOF
3339/* end confdefs.h. */
3340$ac_declaration
3341int
3342main ()
3343{
3344exit (42);
3345 ;
3346 return 0;
3347}
3348_ACEOF
3349rm -f conftest.$ac_objext
3350if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3351 (eval $ac_compile) 2>conftest.er1
3352 ac_status=$?
3353 grep -v '^ *+' conftest.er1 >conftest.err
3354 rm -f conftest.er1
3355 cat conftest.err >&5
3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); } &&
3358 { ac_try='test -z "$ac_cxx_werror_flag"
3359 || test ! -s conftest.err'
3360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3361 (eval $ac_try) 2>&5
3362 ac_status=$?
3363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3364 (exit $ac_status); }; } &&
3365 { ac_try='test -s conftest.$ac_objext'
3366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3367 (eval $ac_try) 2>&5
3368 ac_status=$?
3369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370 (exit $ac_status); }; }; then
3371 break
3372else
3373 echo "$as_me: failed program was:" >&5
3374sed 's/^/| /' conftest.$ac_ext >&5
3375
3376fi
3377rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3378done
3379rm -f conftest*
3380if test -n "$ac_declaration"; then
3381 echo '#ifdef __cplusplus' >>confdefs.h
3382 echo $ac_declaration >>confdefs.h
3383 echo '#endif' >>confdefs.h
3384fi
3385
3386ac_ext=c
3387ac_cpp='$CPP $CPPFLAGS'
3388ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3389ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3390ac_compiler_gnu=$ac_cv_c_compiler_gnu
3391
3392depcc="$CXX" am_compiler_list=
3393
3394echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3395echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3396if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3397 echo $ECHO_N "(cached) $ECHO_C" >&6
3398else
3399 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3400 # We make a subdir and do the tests there. Otherwise we can end up
3401 # making bogus files that we don't know about and never remove. For
3402 # instance it was reported that on HP-UX the gcc test will end up
3403 # making a dummy file named `D' -- because `-MD' means `put the output
3404 # in D'.
3405 mkdir conftest.dir
3406 # Copy depcomp to subdir because otherwise we won't find it if we're
3407 # using a relative directory.
3408 cp "$am_depcomp" conftest.dir
3409 cd conftest.dir
3410 # We will build objects and dependencies in a subdirectory because
3411 # it helps to detect inapplicable dependency modes. For instance
3412 # both Tru64's cc and ICC support -MD to output dependencies as a
3413 # side effect of compilation, but ICC will put the dependencies in
3414 # the current directory while Tru64 will put them in the object
3415 # directory.
3416 mkdir sub
3417
3418 am_cv_CXX_dependencies_compiler_type=none
3419 if test "$am_compiler_list" = ""; then
3420 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3421 fi
3422 for depmode in $am_compiler_list; do
3423 # Setup a source with many dependencies, because some compilers
3424 # like to wrap large dependency lists on column 80 (with \), and
3425 # we should not choose a depcomp mode which is confused by this.
3426 #
3427 # We need to recreate these files for each test, as the compiler may
3428 # overwrite some of them when testing with obscure command lines.
3429 # This happens at least with the AIX C compiler.
3430 : > sub/conftest.c
3431 for i in 1 2 3 4 5 6; do
3432 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3433 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3434 # Solaris 8's {/usr,}/bin/sh.
3435 touch sub/conftst$i.h
3436 done
3437 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3438
3439 case $depmode in
3440 nosideeffect)
3441 # after this tag, mechanisms are not by side-effect, so they'll
3442 # only be used when explicitly requested
3443 if test "x$enable_dependency_tracking" = xyes; then
3444 continue
3445 else
3446 break
3447 fi
3448 ;;
3449 none) break ;;
3450 esac
3451 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3452 # mode. It turns out that the SunPro C++ compiler does not properly
3453 # handle `-M -o', and we need to detect this.
3454 if depmode=$depmode \
3455 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3456 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3457 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3458 >/dev/null 2>conftest.err &&
3459 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3460 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3461 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3462 # icc doesn't choke on unknown options, it will just issue warnings
3463 # or remarks (even with -Werror). So we grep stderr for any message
3464 # that says an option was ignored or not supported.
3465 # When given -MP, icc 7.0 and 7.1 complain thusly:
3466 # icc: Command line warning: ignoring option '-M'; no argument required
3467 # The diagnosis changed in icc 8.0:
3468 # icc: Command line remark: option '-MP' not supported
3469 if (grep 'ignoring option' conftest.err ||
3470 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3471 am_cv_CXX_dependencies_compiler_type=$depmode
3472 break
3473 fi
3474 fi
3475 done
3476
3477 cd ..
3478 rm -rf conftest.dir
3479else
3480 am_cv_CXX_dependencies_compiler_type=none
3481fi
3482
3483fi
3484echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3485echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3486CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3487
3488
3489
3490if
3491 test "x$enable_dependency_tracking" != xno \
3492 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3493 am__fastdepCXX_TRUE=
3494 am__fastdepCXX_FALSE='#'
3495else
3496 am__fastdepCXX_TRUE='#'
3497 am__fastdepCXX_FALSE=
3498fi
3499
3500
dbe717ef
ILT
3501for ac_prog in 'bison -y' byacc
3502do
3503 # Extract the first word of "$ac_prog", so it can be a program name with args.
3504set dummy $ac_prog; ac_word=$2
3505echo "$as_me:$LINENO: checking for $ac_word" >&5
3506echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3507if test "${ac_cv_prog_YACC+set}" = set; then
3508 echo $ECHO_N "(cached) $ECHO_C" >&6
3509else
3510 if test -n "$YACC"; then
3511 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3512else
3513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3514for as_dir in $PATH
3515do
3516 IFS=$as_save_IFS
3517 test -z "$as_dir" && as_dir=.
3518 for ac_exec_ext in '' $ac_executable_extensions; do
3519 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3520 ac_cv_prog_YACC="$ac_prog"
3521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3522 break 2
3523 fi
3524done
3525done
3526
3527fi
3528fi
3529YACC=$ac_cv_prog_YACC
3530if test -n "$YACC"; then
3531 echo "$as_me:$LINENO: result: $YACC" >&5
3532echo "${ECHO_T}$YACC" >&6
3533else
3534 echo "$as_me:$LINENO: result: no" >&5
3535echo "${ECHO_T}no" >&6
3536fi
3537
3538 test -n "$YACC" && break
3539done
3540test -n "$YACC" || YACC="yacc"
3541
5a6f7e2d
ILT
3542if test -n "$ac_tool_prefix"; then
3543 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3544set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3545echo "$as_me:$LINENO: checking for $ac_word" >&5
3546echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3547if test "${ac_cv_prog_RANLIB+set}" = set; then
3548 echo $ECHO_N "(cached) $ECHO_C" >&6
3549else
3550 if test -n "$RANLIB"; then
3551 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3552else
3553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3554for as_dir in $PATH
3555do
3556 IFS=$as_save_IFS
3557 test -z "$as_dir" && as_dir=.
3558 for ac_exec_ext in '' $ac_executable_extensions; do
3559 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3560 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3562 break 2
3563 fi
3564done
3565done
3566
3567fi
3568fi
3569RANLIB=$ac_cv_prog_RANLIB
3570if test -n "$RANLIB"; then
3571 echo "$as_me:$LINENO: result: $RANLIB" >&5
3572echo "${ECHO_T}$RANLIB" >&6
3573else
3574 echo "$as_me:$LINENO: result: no" >&5
3575echo "${ECHO_T}no" >&6
3576fi
3577
3578fi
3579if test -z "$ac_cv_prog_RANLIB"; then
3580 ac_ct_RANLIB=$RANLIB
3581 # Extract the first word of "ranlib", so it can be a program name with args.
3582set dummy ranlib; ac_word=$2
3583echo "$as_me:$LINENO: checking for $ac_word" >&5
3584echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3585if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3586 echo $ECHO_N "(cached) $ECHO_C" >&6
3587else
3588 if test -n "$ac_ct_RANLIB"; then
3589 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3590else
3591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3592for as_dir in $PATH
3593do
3594 IFS=$as_save_IFS
3595 test -z "$as_dir" && as_dir=.
3596 for ac_exec_ext in '' $ac_executable_extensions; do
3597 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3598 ac_cv_prog_ac_ct_RANLIB="ranlib"
3599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3600 break 2
3601 fi
3602done
3603done
3604
3605 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3606fi
3607fi
3608ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3609if test -n "$ac_ct_RANLIB"; then
3610 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3611echo "${ECHO_T}$ac_ct_RANLIB" >&6
3612else
3613 echo "$as_me:$LINENO: result: no" >&5
3614echo "${ECHO_T}no" >&6
3615fi
3616
3617 RANLIB=$ac_ct_RANLIB
3618else
3619 RANLIB="$ac_cv_prog_RANLIB"
3620fi
3621
bae7f79e
ILT
3622# Find a good install program. We prefer a C program (faster),
3623# so one script is as good as another. But avoid the broken or
3624# incompatible versions:
3625# SysV /etc/install, /usr/sbin/install
3626# SunOS /usr/etc/install
3627# IRIX /sbin/install
3628# AIX /bin/install
3629# AmigaOS /C/install, which installs bootblocks on floppy discs
3630# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3631# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3632# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3633# OS/2's system install, which has a completely different semantic
3634# ./install, which can be erroneously created by make from ./install.sh.
3635echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3636echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3637if test -z "$INSTALL"; then
3638if test "${ac_cv_path_install+set}" = set; then
3639 echo $ECHO_N "(cached) $ECHO_C" >&6
3640else
3641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3642for as_dir in $PATH
3643do
3644 IFS=$as_save_IFS
3645 test -z "$as_dir" && as_dir=.
3646 # Account for people who put trailing slashes in PATH elements.
3647case $as_dir/ in
3648 ./ | .// | /cC/* | \
3649 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3650 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3651 /usr/ucb/* ) ;;
3652 *)
3653 # OSF1 and SCO ODT 3.0 have their own names for install.
3654 # Don't use installbsd from OSF since it installs stuff as root
3655 # by default.
3656 for ac_prog in ginstall scoinst install; do
3657 for ac_exec_ext in '' $ac_executable_extensions; do
3658 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3659 if test $ac_prog = install &&
3660 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3661 # AIX install. It has an incompatible calling convention.
3662 :
3663 elif test $ac_prog = install &&
3664 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3665 # program-specific install script used by HP pwplus--don't use.
3666 :
3667 else
3668 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3669 break 3
3670 fi
3671 fi
3672 done
3673 done
3674 ;;
3675esac
3676done
3677
3678
3679fi
3680 if test "${ac_cv_path_install+set}" = set; then
3681 INSTALL=$ac_cv_path_install
3682 else
3683 # As a last resort, use the slow shell script. We don't cache a
3684 # path for INSTALL within a source directory, because that will
3685 # break other packages using the cache if that directory is
3686 # removed, or if the path is relative.
3687 INSTALL=$ac_install_sh
3688 fi
3689fi
3690echo "$as_me:$LINENO: result: $INSTALL" >&5
3691echo "${ECHO_T}$INSTALL" >&6
3692
3693# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3694# It thinks the first close brace ends the variable substitution.
3695test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3696
3697test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3698
3699test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3700
537b5f51
ILT
3701echo "$as_me:$LINENO: checking whether ln -s works" >&5
3702echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3703LN_S=$as_ln_s
3704if test "$LN_S" = "ln -s"; then
3705 echo "$as_me:$LINENO: result: yes" >&5
3706echo "${ECHO_T}yes" >&6
3707else
3708 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3709echo "${ECHO_T}no, using $LN_S" >&6
3710fi
3711
bae7f79e
ILT
3712# If we haven't got the data from the intl directory,
3713# assume NLS is disabled.
3714USE_NLS=no
3715LIBINTL=
3716LIBINTL_DEP=
3717INCINTL=
3718XGETTEXT=
3719GMSGFMT=
3720POSUB=
3721
3722if test -f ../intl/config.intl; then
3723 . ../intl/config.intl
3724fi
3725echo "$as_me:$LINENO: checking whether NLS is requested" >&5
3726echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
3727if test x"$USE_NLS" != xyes; then
3728 echo "$as_me:$LINENO: result: no" >&5
3729echo "${ECHO_T}no" >&6
3730else
3731 echo "$as_me:$LINENO: result: yes" >&5
3732echo "${ECHO_T}yes" >&6
3733
3734cat >>confdefs.h <<\_ACEOF
3735#define ENABLE_NLS 1
3736_ACEOF
3737
3738
3739 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
3740echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
3741 # Look for .po and .gmo files in the source directory.
3742 CATALOGS=
3743 XLINGUAS=
3744 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
3745 # If there aren't any .gmo files the shell will give us the
3746 # literal string "../path/to/srcdir/po/*.gmo" which has to be
3747 # weeded out.
3748 case "$cat" in *\**)
3749 continue;;
3750 esac
3751 # The quadruple backslash is collapsed to a double backslash
3752 # by the backticks, then collapsed again by the double quotes,
3753 # leaving us with one backslash in the sed expression (right
3754 # before the dot that mustn't act as a wildcard).
3755 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
3756 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
3757 # The user is allowed to set LINGUAS to a list of languages to
3758 # install catalogs for. If it's empty that means "all of them."
3759 if test "x$LINGUAS" = x; then
3760 CATALOGS="$CATALOGS $cat"
3761 XLINGUAS="$XLINGUAS $lang"
3762 else
3763 case "$LINGUAS" in *$lang*)
3764 CATALOGS="$CATALOGS $cat"
3765 XLINGUAS="$XLINGUAS $lang"
3766 ;;
3767 esac
3768 fi
3769 done
3770 LINGUAS="$XLINGUAS"
3771 echo "$as_me:$LINENO: result: $LINGUAS" >&5
3772echo "${ECHO_T}$LINGUAS" >&6
3773
3774
3775 DATADIRNAME=share
3776
3777 INSTOBJEXT=.mo
3778
3779 GENCAT=gencat
3780
3781 CATOBJEXT=.gmo
3782
3783fi
3784
3785 MKINSTALLDIRS=
3786 if test -n "$ac_aux_dir"; then
3787 case "$ac_aux_dir" in
3788 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
3789 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
3790 esac
3791 fi
3792 if test -z "$MKINSTALLDIRS"; then
3793 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3794 fi
3795
3796
3797
3798 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
3799echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
3800 # Check whether --enable-nls or --disable-nls was given.
3801if test "${enable_nls+set}" = set; then
3802 enableval="$enable_nls"
3803 USE_NLS=$enableval
3804else
3805 USE_NLS=yes
3806fi;
3807 echo "$as_me:$LINENO: result: $USE_NLS" >&5
3808echo "${ECHO_T}$USE_NLS" >&6
3809
3810
3811
3812
3813
3814
3815# Prepare PATH_SEPARATOR.
3816# The user is always right.
3817if test "${PATH_SEPARATOR+set}" != set; then
3818 echo "#! /bin/sh" >conf$$.sh
3819 echo "exit 0" >>conf$$.sh
3820 chmod +x conf$$.sh
3821 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3822 PATH_SEPARATOR=';'
3823 else
3824 PATH_SEPARATOR=:
3825 fi
3826 rm -f conf$$.sh
3827fi
3828
3829# Find out how to test for executable files. Don't use a zero-byte file,
3830# as systems may use methods other than mode bits to determine executability.
3831cat >conf$$.file <<_ASEOF
3832#! /bin/sh
3833exit 0
3834_ASEOF
3835chmod +x conf$$.file
3836if test -x conf$$.file >/dev/null 2>&1; then
3837 ac_executable_p="test -x"
3838else
3839 ac_executable_p="test -f"
3840fi
3841rm -f conf$$.file
3842
3843# Extract the first word of "msgfmt", so it can be a program name with args.
3844set dummy msgfmt; ac_word=$2
3845echo "$as_me:$LINENO: checking for $ac_word" >&5
3846echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3847if test "${ac_cv_path_MSGFMT+set}" = set; then
3848 echo $ECHO_N "(cached) $ECHO_C" >&6
3849else
3850 case "$MSGFMT" in
3851 [\\/]* | ?:[\\/]*)
3852 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3853 ;;
3854 *)
3855 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3856 for ac_dir in $PATH; do
3857 IFS="$ac_save_IFS"
3858 test -z "$ac_dir" && ac_dir=.
3859 for ac_exec_ext in '' $ac_executable_extensions; do
3860 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3861 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
3862 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3863 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
3864 break 2
3865 fi
3866 fi
3867 done
3868 done
3869 IFS="$ac_save_IFS"
3870 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
3871 ;;
3872esac
3873fi
3874MSGFMT="$ac_cv_path_MSGFMT"
3875if test "$MSGFMT" != ":"; then
3876 echo "$as_me:$LINENO: result: $MSGFMT" >&5
3877echo "${ECHO_T}$MSGFMT" >&6
3878else
3879 echo "$as_me:$LINENO: result: no" >&5
3880echo "${ECHO_T}no" >&6
3881fi
3882
3883 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3884set dummy gmsgfmt; ac_word=$2
3885echo "$as_me:$LINENO: checking for $ac_word" >&5
3886echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3887if test "${ac_cv_path_GMSGFMT+set}" = set; then
3888 echo $ECHO_N "(cached) $ECHO_C" >&6
3889else
3890 case $GMSGFMT in
3891 [\\/]* | ?:[\\/]*)
3892 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3893 ;;
3894 *)
3895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3896for as_dir in $PATH
3897do
3898 IFS=$as_save_IFS
3899 test -z "$as_dir" && as_dir=.
3900 for ac_exec_ext in '' $ac_executable_extensions; do
3901 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3902 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
3903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3904 break 2
3905 fi
3906done
3907done
3908
3909 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3910 ;;
3911esac
3912fi
3913GMSGFMT=$ac_cv_path_GMSGFMT
3914
3915if test -n "$GMSGFMT"; then
3916 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
3917echo "${ECHO_T}$GMSGFMT" >&6
3918else
3919 echo "$as_me:$LINENO: result: no" >&5
3920echo "${ECHO_T}no" >&6
3921fi
3922
3923
3924
3925# Prepare PATH_SEPARATOR.
3926# The user is always right.
3927if test "${PATH_SEPARATOR+set}" != set; then
3928 echo "#! /bin/sh" >conf$$.sh
3929 echo "exit 0" >>conf$$.sh
3930 chmod +x conf$$.sh
3931 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3932 PATH_SEPARATOR=';'
3933 else
3934 PATH_SEPARATOR=:
3935 fi
3936 rm -f conf$$.sh
3937fi
3938
3939# Find out how to test for executable files. Don't use a zero-byte file,
3940# as systems may use methods other than mode bits to determine executability.
3941cat >conf$$.file <<_ASEOF
3942#! /bin/sh
3943exit 0
3944_ASEOF
3945chmod +x conf$$.file
3946if test -x conf$$.file >/dev/null 2>&1; then
3947 ac_executable_p="test -x"
3948else
3949 ac_executable_p="test -f"
3950fi
3951rm -f conf$$.file
3952
3953# Extract the first word of "xgettext", so it can be a program name with args.
3954set dummy xgettext; ac_word=$2
3955echo "$as_me:$LINENO: checking for $ac_word" >&5
3956echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3957if test "${ac_cv_path_XGETTEXT+set}" = set; then
3958 echo $ECHO_N "(cached) $ECHO_C" >&6
3959else
3960 case "$XGETTEXT" in
3961 [\\/]* | ?:[\\/]*)
3962 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3963 ;;
3964 *)
3965 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3966 for ac_dir in $PATH; do
3967 IFS="$ac_save_IFS"
3968 test -z "$ac_dir" && ac_dir=.
3969 for ac_exec_ext in '' $ac_executable_extensions; do
3970 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3971 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
3972 (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
3973 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
3974 break 2
3975 fi
3976 fi
3977 done
3978 done
3979 IFS="$ac_save_IFS"
3980 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3981 ;;
3982esac
3983fi
3984XGETTEXT="$ac_cv_path_XGETTEXT"
3985if test "$XGETTEXT" != ":"; then
3986 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
3987echo "${ECHO_T}$XGETTEXT" >&6
3988else
3989 echo "$as_me:$LINENO: result: no" >&5
3990echo "${ECHO_T}no" >&6
3991fi
3992
3993 rm -f messages.po
3994
3995
3996# Prepare PATH_SEPARATOR.
3997# The user is always right.
3998if test "${PATH_SEPARATOR+set}" != set; then
3999 echo "#! /bin/sh" >conf$$.sh
4000 echo "exit 0" >>conf$$.sh
4001 chmod +x conf$$.sh
4002 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4003 PATH_SEPARATOR=';'
4004 else
4005 PATH_SEPARATOR=:
4006 fi
4007 rm -f conf$$.sh
4008fi
4009
4010# Find out how to test for executable files. Don't use a zero-byte file,
4011# as systems may use methods other than mode bits to determine executability.
4012cat >conf$$.file <<_ASEOF
4013#! /bin/sh
4014exit 0
4015_ASEOF
4016chmod +x conf$$.file
4017if test -x conf$$.file >/dev/null 2>&1; then
4018 ac_executable_p="test -x"
4019else
4020 ac_executable_p="test -f"
4021fi
4022rm -f conf$$.file
4023
4024# Extract the first word of "msgmerge", so it can be a program name with args.
4025set dummy msgmerge; ac_word=$2
4026echo "$as_me:$LINENO: checking for $ac_word" >&5
4027echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4028if test "${ac_cv_path_MSGMERGE+set}" = set; then
4029 echo $ECHO_N "(cached) $ECHO_C" >&6
4030else
4031 case "$MSGMERGE" in
4032 [\\/]* | ?:[\\/]*)
4033 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4034 ;;
4035 *)
4036 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4037 for ac_dir in $PATH; do
4038 IFS="$ac_save_IFS"
4039 test -z "$ac_dir" && ac_dir=.
4040 for ac_exec_ext in '' $ac_executable_extensions; do
4041 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4042 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
4043 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4044 break 2
4045 fi
4046 fi
4047 done
4048 done
4049 IFS="$ac_save_IFS"
4050 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4051 ;;
4052esac
4053fi
4054MSGMERGE="$ac_cv_path_MSGMERGE"
4055if test "$MSGMERGE" != ":"; then
4056 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
4057echo "${ECHO_T}$MSGMERGE" >&6
4058else
4059 echo "$as_me:$LINENO: result: no" >&5
4060echo "${ECHO_T}no" >&6
4061fi
4062
4063
4064 if test "$GMSGFMT" != ":"; then
4065 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
4066 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4067 : ;
4068 else
4069 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
4070 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
4071echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
4072 GMSGFMT=":"
4073 fi
4074 fi
4075
4076 if test "$XGETTEXT" != ":"; then
4077 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4078 (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
4079 : ;
4080 else
4081 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
4082echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
4083 XGETTEXT=":"
4084 fi
4085 rm -f messages.po
4086 fi
4087
4088 ac_config_commands="$ac_config_commands default-1"
4089
4090
4091
4092
92e059d8
ILT
4093echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4094echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
4095if test "${ac_cv_c_bigendian+set}" = set; then
4096 echo $ECHO_N "(cached) $ECHO_C" >&6
4097else
4098 # See if sys/param.h defines the BYTE_ORDER macro.
4099cat >conftest.$ac_ext <<_ACEOF
4100/* confdefs.h. */
4101_ACEOF
4102cat confdefs.h >>conftest.$ac_ext
4103cat >>conftest.$ac_ext <<_ACEOF
4104/* end confdefs.h. */
4105#include <sys/types.h>
4106#include <sys/param.h>
4107
4108int
4109main ()
4110{
4111#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4112 bogus endian macros
4113#endif
4114
4115 ;
4116 return 0;
4117}
4118_ACEOF
4119rm -f conftest.$ac_objext
4120if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4121 (eval $ac_compile) 2>conftest.er1
4122 ac_status=$?
4123 grep -v '^ *+' conftest.er1 >conftest.err
4124 rm -f conftest.er1
4125 cat conftest.err >&5
4126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127 (exit $ac_status); } &&
4128 { ac_try='test -z "$ac_c_werror_flag"
4129 || test ! -s conftest.err'
4130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4131 (eval $ac_try) 2>&5
4132 ac_status=$?
4133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4134 (exit $ac_status); }; } &&
4135 { ac_try='test -s conftest.$ac_objext'
4136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4137 (eval $ac_try) 2>&5
4138 ac_status=$?
4139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4140 (exit $ac_status); }; }; then
4141 # It does; now see whether it defined to BIG_ENDIAN or not.
4142cat >conftest.$ac_ext <<_ACEOF
4143/* confdefs.h. */
4144_ACEOF
4145cat confdefs.h >>conftest.$ac_ext
4146cat >>conftest.$ac_ext <<_ACEOF
4147/* end confdefs.h. */
4148#include <sys/types.h>
4149#include <sys/param.h>
4150
4151int
4152main ()
4153{
4154#if BYTE_ORDER != BIG_ENDIAN
4155 not big endian
4156#endif
4157
4158 ;
4159 return 0;
4160}
4161_ACEOF
4162rm -f conftest.$ac_objext
4163if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4164 (eval $ac_compile) 2>conftest.er1
4165 ac_status=$?
4166 grep -v '^ *+' conftest.er1 >conftest.err
4167 rm -f conftest.er1
4168 cat conftest.err >&5
4169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170 (exit $ac_status); } &&
4171 { ac_try='test -z "$ac_c_werror_flag"
4172 || test ! -s conftest.err'
4173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4174 (eval $ac_try) 2>&5
4175 ac_status=$?
4176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177 (exit $ac_status); }; } &&
4178 { ac_try='test -s conftest.$ac_objext'
4179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4180 (eval $ac_try) 2>&5
4181 ac_status=$?
4182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183 (exit $ac_status); }; }; then
4184 ac_cv_c_bigendian=yes
4185else
4186 echo "$as_me: failed program was:" >&5
4187sed 's/^/| /' conftest.$ac_ext >&5
4188
4189ac_cv_c_bigendian=no
4190fi
4191rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4192else
4193 echo "$as_me: failed program was:" >&5
4194sed 's/^/| /' conftest.$ac_ext >&5
4195
4196# It does not; compile a test program.
4197if test "$cross_compiling" = yes; then
4198 # try to guess the endianness by grepping values into an object file
4199 ac_cv_c_bigendian=unknown
4200 cat >conftest.$ac_ext <<_ACEOF
4201/* confdefs.h. */
4202_ACEOF
4203cat confdefs.h >>conftest.$ac_ext
4204cat >>conftest.$ac_ext <<_ACEOF
4205/* end confdefs.h. */
4206short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4207short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4208void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4209short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4210short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4211void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4212int
4213main ()
4214{
4215 _ascii (); _ebcdic ();
4216 ;
4217 return 0;
4218}
4219_ACEOF
4220rm -f conftest.$ac_objext
4221if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4222 (eval $ac_compile) 2>conftest.er1
4223 ac_status=$?
4224 grep -v '^ *+' conftest.er1 >conftest.err
4225 rm -f conftest.er1
4226 cat conftest.err >&5
4227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228 (exit $ac_status); } &&
4229 { ac_try='test -z "$ac_c_werror_flag"
4230 || test ! -s conftest.err'
4231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4232 (eval $ac_try) 2>&5
4233 ac_status=$?
4234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235 (exit $ac_status); }; } &&
4236 { ac_try='test -s conftest.$ac_objext'
4237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4238 (eval $ac_try) 2>&5
4239 ac_status=$?
4240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4241 (exit $ac_status); }; }; then
4242 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4243 ac_cv_c_bigendian=yes
4244fi
4245if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4246 if test "$ac_cv_c_bigendian" = unknown; then
4247 ac_cv_c_bigendian=no
4248 else
4249 # finding both strings is unlikely to happen, but who knows?
4250 ac_cv_c_bigendian=unknown
4251 fi
4252fi
4253else
4254 echo "$as_me: failed program was:" >&5
4255sed 's/^/| /' conftest.$ac_ext >&5
4256
4257fi
4258rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4259else
4260 cat >conftest.$ac_ext <<_ACEOF
4261/* confdefs.h. */
4262_ACEOF
4263cat confdefs.h >>conftest.$ac_ext
4264cat >>conftest.$ac_ext <<_ACEOF
4265/* end confdefs.h. */
4266int
4267main ()
4268{
4269 /* Are we little or big endian? From Harbison&Steele. */
4270 union
4271 {
4272 long l;
4273 char c[sizeof (long)];
4274 } u;
4275 u.l = 1;
4276 exit (u.c[sizeof (long) - 1] == 1);
4277}
4278_ACEOF
4279rm -f conftest$ac_exeext
4280if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4281 (eval $ac_link) 2>&5
4282 ac_status=$?
4283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4286 (eval $ac_try) 2>&5
4287 ac_status=$?
4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289 (exit $ac_status); }; }; then
4290 ac_cv_c_bigendian=no
4291else
4292 echo "$as_me: program exited with status $ac_status" >&5
4293echo "$as_me: failed program was:" >&5
4294sed 's/^/| /' conftest.$ac_ext >&5
4295
4296( exit $ac_status )
4297ac_cv_c_bigendian=yes
4298fi
4299rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4300fi
4301fi
4302rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4303fi
4304echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4305echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4306case $ac_cv_c_bigendian in
4307 yes)
4308
4309cat >>confdefs.h <<\_ACEOF
4310#define WORDS_BIGENDIAN 1
4311_ACEOF
4312 ;;
4313 no)
4314 ;;
4315 *)
4316 { { echo "$as_me:$LINENO: error: unknown endianness
4317presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4318echo "$as_me: error: unknown endianness
4319presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4320 { (exit 1); exit 1; }; } ;;
4321esac
4322
4323
4324
bae7f79e
ILT
4325
4326
537b5f51
ILT
4327
4328if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias"; then
4329 NATIVE_LINKER_TRUE=
4330 NATIVE_LINKER_FALSE='#'
4331else
4332 NATIVE_LINKER_TRUE='#'
4333 NATIVE_LINKER_FALSE=
4334fi
4335
4336
4337
4338if test "$GCC" = yes; then
4339 GCC_TRUE=
4340 GCC_FALSE='#'
4341else
4342 GCC_TRUE='#'
4343 GCC_FALSE=
4344fi
4345
4346
4347
bae7f79e
ILT
4348GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
4349
4350# Check whether --enable-werror or --disable-werror was given.
4351if test "${enable_werror+set}" = set; then
4352 enableval="$enable_werror"
4353 case "${enableval}" in
4354 yes | y) ERROR_ON_WARNING="yes" ;;
4355 no | n) ERROR_ON_WARNING="no" ;;
4356 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
4357echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
4358 { (exit 1); exit 1; }; } ;;
4359 esac
4360fi;
4361
4362# Enable -Werror by default when using gcc
4363if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4364 ERROR_ON_WARNING=yes
4365fi
4366
4367NO_WERROR=
4368if test "${ERROR_ON_WARNING}" = yes ; then
4369 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
4370 NO_WERROR="-Wno-error"
4371fi
4372
4373if test "${GCC}" = yes ; then
4374 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
4375fi
4376
4377# Check whether --enable-build-warnings or --disable-build-warnings was given.
4378if test "${enable_build_warnings+set}" = set; then
4379 enableval="$enable_build_warnings"
4380 case "${enableval}" in
4381 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
4382 no) if test "${GCC}" = yes ; then
4383 WARN_CFLAGS="-w"
4384 fi;;
4385 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4386 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
4387 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4388 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
4389 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4390esac
4391fi;
4392
4393if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
4394 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
4395fi
4396
4397
4398
4399
4400
4401WARN_CXXFLAGS=`echo ${WARN_CFLAGS} | sed -e 's/-Wstrict-prototypes//' -e 's/-Wmissing-prototypes//'`
4402
4403
4404LFS_CXXFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
4405
4406
54dc6425
ILT
4407ac_ext=cc
4408ac_cpp='$CXXCPP $CPPFLAGS'
4409ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4410ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4411ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4412
4413
d288e464 4414
54dc6425
ILT
4415ac_ext=cc
4416ac_cpp='$CXXCPP $CPPFLAGS'
4417ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4418ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4419ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4420echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4421echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4422if test -z "$CXXCPP"; then
4423 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4424 echo $ECHO_N "(cached) $ECHO_C" >&6
4425else
4426 # Double quotes because CXXCPP needs to be expanded
4427 for CXXCPP in "$CXX -E" "/lib/cpp"
4428 do
4429 ac_preproc_ok=false
4430for ac_cxx_preproc_warn_flag in '' yes
4431do
4432 # Use a header file that comes with gcc, so configuring glibc
4433 # with a fresh cross-compiler works.
4434 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4435 # <limits.h> exists even on freestanding compilers.
4436 # On the NeXT, cc -E runs the code through the compiler's parser,
4437 # not just through cpp. "Syntax error" is here to catch this case.
4438 cat >conftest.$ac_ext <<_ACEOF
4439/* confdefs.h. */
4440_ACEOF
4441cat confdefs.h >>conftest.$ac_ext
4442cat >>conftest.$ac_ext <<_ACEOF
4443/* end confdefs.h. */
4444#ifdef __STDC__
4445# include <limits.h>
4446#else
4447# include <assert.h>
4448#endif
4449 Syntax error
4450_ACEOF
4451if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4452 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4453 ac_status=$?
4454 grep -v '^ *+' conftest.er1 >conftest.err
4455 rm -f conftest.er1
4456 cat conftest.err >&5
4457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458 (exit $ac_status); } >/dev/null; then
4459 if test -s conftest.err; then
4460 ac_cpp_err=$ac_cxx_preproc_warn_flag
4461 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4462 else
4463 ac_cpp_err=
4464 fi
4465else
4466 ac_cpp_err=yes
4467fi
4468if test -z "$ac_cpp_err"; then
4469 :
4470else
4471 echo "$as_me: failed program was:" >&5
4472sed 's/^/| /' conftest.$ac_ext >&5
4473
4474 # Broken: fails on valid input.
4475continue
4476fi
4477rm -f conftest.err conftest.$ac_ext
4478
4479 # OK, works on sane cases. Now check whether non-existent headers
4480 # can be detected and how.
4481 cat >conftest.$ac_ext <<_ACEOF
4482/* confdefs.h. */
4483_ACEOF
4484cat confdefs.h >>conftest.$ac_ext
4485cat >>conftest.$ac_ext <<_ACEOF
4486/* end confdefs.h. */
4487#include <ac_nonexistent.h>
4488_ACEOF
4489if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4490 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4491 ac_status=$?
4492 grep -v '^ *+' conftest.er1 >conftest.err
4493 rm -f conftest.er1
4494 cat conftest.err >&5
4495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496 (exit $ac_status); } >/dev/null; then
4497 if test -s conftest.err; then
4498 ac_cpp_err=$ac_cxx_preproc_warn_flag
4499 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4500 else
4501 ac_cpp_err=
4502 fi
4503else
4504 ac_cpp_err=yes
4505fi
4506if test -z "$ac_cpp_err"; then
4507 # Broken: success on invalid input.
4508continue
4509else
4510 echo "$as_me: failed program was:" >&5
4511sed 's/^/| /' conftest.$ac_ext >&5
4512
4513 # Passes both tests.
4514ac_preproc_ok=:
4515break
4516fi
4517rm -f conftest.err conftest.$ac_ext
4518
4519done
4520# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4521rm -f conftest.err conftest.$ac_ext
4522if $ac_preproc_ok; then
4523 break
4524fi
4525
4526 done
4527 ac_cv_prog_CXXCPP=$CXXCPP
4528
4529fi
4530 CXXCPP=$ac_cv_prog_CXXCPP
4531else
4532 ac_cv_prog_CXXCPP=$CXXCPP
4533fi
4534echo "$as_me:$LINENO: result: $CXXCPP" >&5
4535echo "${ECHO_T}$CXXCPP" >&6
4536ac_preproc_ok=false
4537for ac_cxx_preproc_warn_flag in '' yes
4538do
4539 # Use a header file that comes with gcc, so configuring glibc
4540 # with a fresh cross-compiler works.
4541 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4542 # <limits.h> exists even on freestanding compilers.
4543 # On the NeXT, cc -E runs the code through the compiler's parser,
4544 # not just through cpp. "Syntax error" is here to catch this case.
4545 cat >conftest.$ac_ext <<_ACEOF
4546/* confdefs.h. */
4547_ACEOF
4548cat confdefs.h >>conftest.$ac_ext
4549cat >>conftest.$ac_ext <<_ACEOF
4550/* end confdefs.h. */
4551#ifdef __STDC__
4552# include <limits.h>
4553#else
4554# include <assert.h>
4555#endif
4556 Syntax error
4557_ACEOF
4558if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4559 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4560 ac_status=$?
4561 grep -v '^ *+' conftest.er1 >conftest.err
4562 rm -f conftest.er1
4563 cat conftest.err >&5
4564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565 (exit $ac_status); } >/dev/null; then
4566 if test -s conftest.err; then
4567 ac_cpp_err=$ac_cxx_preproc_warn_flag
4568 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4569 else
4570 ac_cpp_err=
4571 fi
4572else
4573 ac_cpp_err=yes
4574fi
4575if test -z "$ac_cpp_err"; then
4576 :
4577else
4578 echo "$as_me: failed program was:" >&5
4579sed 's/^/| /' conftest.$ac_ext >&5
4580
4581 # Broken: fails on valid input.
4582continue
4583fi
4584rm -f conftest.err conftest.$ac_ext
4585
4586 # OK, works on sane cases. Now check whether non-existent headers
4587 # can be detected and how.
4588 cat >conftest.$ac_ext <<_ACEOF
4589/* confdefs.h. */
4590_ACEOF
4591cat confdefs.h >>conftest.$ac_ext
4592cat >>conftest.$ac_ext <<_ACEOF
4593/* end confdefs.h. */
4594#include <ac_nonexistent.h>
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 # Broken: success on invalid input.
4615continue
4616else
4617 echo "$as_me: failed program was:" >&5
4618sed 's/^/| /' conftest.$ac_ext >&5
4619
4620 # Passes both tests.
4621ac_preproc_ok=:
4622break
4623fi
4624rm -f conftest.err conftest.$ac_ext
4625
4626done
4627# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4628rm -f conftest.err conftest.$ac_ext
4629if $ac_preproc_ok; then
4630 :
4631else
4632 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4633See \`config.log' for more details." >&5
4634echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4635See \`config.log' for more details." >&2;}
4636 { (exit 1); exit 1; }; }
4637fi
4638
4639ac_ext=cc
4640ac_cpp='$CXXCPP $CPPFLAGS'
4641ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4642ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4643ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4644
4645
4646echo "$as_me:$LINENO: checking for egrep" >&5
4647echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4648if test "${ac_cv_prog_egrep+set}" = set; then
4649 echo $ECHO_N "(cached) $ECHO_C" >&6
4650else
4651 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4652 then ac_cv_prog_egrep='grep -E'
4653 else ac_cv_prog_egrep='egrep'
4654 fi
4655fi
4656echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4657echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4658 EGREP=$ac_cv_prog_egrep
4659
4660
4661echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4662echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4663if test "${ac_cv_header_stdc+set}" = set; then
4664 echo $ECHO_N "(cached) $ECHO_C" >&6
4665else
4666 cat >conftest.$ac_ext <<_ACEOF
4667/* confdefs.h. */
4668_ACEOF
4669cat confdefs.h >>conftest.$ac_ext
4670cat >>conftest.$ac_ext <<_ACEOF
4671/* end confdefs.h. */
4672#include <stdlib.h>
4673#include <stdarg.h>
4674#include <string.h>
4675#include <float.h>
4676
4677int
4678main ()
4679{
4680
4681 ;
4682 return 0;
4683}
4684_ACEOF
4685rm -f conftest.$ac_objext
4686if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4687 (eval $ac_compile) 2>conftest.er1
4688 ac_status=$?
4689 grep -v '^ *+' conftest.er1 >conftest.err
4690 rm -f conftest.er1
4691 cat conftest.err >&5
4692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693 (exit $ac_status); } &&
4694 { ac_try='test -z "$ac_cxx_werror_flag"
4695 || test ! -s conftest.err'
4696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4697 (eval $ac_try) 2>&5
4698 ac_status=$?
4699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700 (exit $ac_status); }; } &&
4701 { ac_try='test -s conftest.$ac_objext'
4702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4703 (eval $ac_try) 2>&5
4704 ac_status=$?
4705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4706 (exit $ac_status); }; }; then
4707 ac_cv_header_stdc=yes
4708else
4709 echo "$as_me: failed program was:" >&5
4710sed 's/^/| /' conftest.$ac_ext >&5
4711
4712ac_cv_header_stdc=no
4713fi
4714rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4715
4716if test $ac_cv_header_stdc = yes; then
4717 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4718 cat >conftest.$ac_ext <<_ACEOF
4719/* confdefs.h. */
4720_ACEOF
4721cat confdefs.h >>conftest.$ac_ext
4722cat >>conftest.$ac_ext <<_ACEOF
4723/* end confdefs.h. */
4724#include <string.h>
4725
4726_ACEOF
4727if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4728 $EGREP "memchr" >/dev/null 2>&1; then
4729 :
4730else
4731 ac_cv_header_stdc=no
4732fi
4733rm -f conftest*
4734
4735fi
4736
4737if test $ac_cv_header_stdc = yes; then
4738 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4739 cat >conftest.$ac_ext <<_ACEOF
4740/* confdefs.h. */
4741_ACEOF
4742cat confdefs.h >>conftest.$ac_ext
4743cat >>conftest.$ac_ext <<_ACEOF
4744/* end confdefs.h. */
4745#include <stdlib.h>
4746
4747_ACEOF
4748if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4749 $EGREP "free" >/dev/null 2>&1; then
4750 :
4751else
4752 ac_cv_header_stdc=no
4753fi
4754rm -f conftest*
4755
4756fi
4757
4758if test $ac_cv_header_stdc = yes; then
4759 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4760 if test "$cross_compiling" = yes; then
4761 :
4762else
4763 cat >conftest.$ac_ext <<_ACEOF
4764/* confdefs.h. */
4765_ACEOF
4766cat confdefs.h >>conftest.$ac_ext
4767cat >>conftest.$ac_ext <<_ACEOF
4768/* end confdefs.h. */
4769#include <ctype.h>
4770#if ((' ' & 0x0FF) == 0x020)
4771# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4772# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4773#else
4774# define ISLOWER(c) \
4775 (('a' <= (c) && (c) <= 'i') \
4776 || ('j' <= (c) && (c) <= 'r') \
4777 || ('s' <= (c) && (c) <= 'z'))
4778# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4779#endif
4780
4781#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4782int
4783main ()
4784{
4785 int i;
4786 for (i = 0; i < 256; i++)
4787 if (XOR (islower (i), ISLOWER (i))
4788 || toupper (i) != TOUPPER (i))
4789 exit(2);
4790 exit (0);
4791}
4792_ACEOF
4793rm -f conftest$ac_exeext
4794if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4795 (eval $ac_link) 2>&5
4796 ac_status=$?
4797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4798 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4800 (eval $ac_try) 2>&5
4801 ac_status=$?
4802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803 (exit $ac_status); }; }; then
4804 :
4805else
4806 echo "$as_me: program exited with status $ac_status" >&5
4807echo "$as_me: failed program was:" >&5
4808sed 's/^/| /' conftest.$ac_ext >&5
4809
4810( exit $ac_status )
4811ac_cv_header_stdc=no
4812fi
4813rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4814fi
4815fi
4816fi
4817echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4818echo "${ECHO_T}$ac_cv_header_stdc" >&6
4819if test $ac_cv_header_stdc = yes; then
4820
4821cat >>confdefs.h <<\_ACEOF
4822#define STDC_HEADERS 1
4823_ACEOF
4824
4825fi
4826
4827# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4838 inttypes.h stdint.h unistd.h
4839do
4840as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4841echo "$as_me:$LINENO: checking for $ac_header" >&5
4842echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4843if eval "test \"\${$as_ac_Header+set}\" = set"; then
4844 echo $ECHO_N "(cached) $ECHO_C" >&6
4845else
4846 cat >conftest.$ac_ext <<_ACEOF
4847/* confdefs.h. */
4848_ACEOF
4849cat confdefs.h >>conftest.$ac_ext
4850cat >>conftest.$ac_ext <<_ACEOF
4851/* end confdefs.h. */
4852$ac_includes_default
4853
4854#include <$ac_header>
4855_ACEOF
4856rm -f conftest.$ac_objext
4857if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4858 (eval $ac_compile) 2>conftest.er1
4859 ac_status=$?
4860 grep -v '^ *+' conftest.er1 >conftest.err
4861 rm -f conftest.er1
4862 cat conftest.err >&5
4863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864 (exit $ac_status); } &&
4865 { ac_try='test -z "$ac_cxx_werror_flag"
4866 || test ! -s conftest.err'
4867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4868 (eval $ac_try) 2>&5
4869 ac_status=$?
4870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871 (exit $ac_status); }; } &&
4872 { ac_try='test -s conftest.$ac_objext'
4873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4874 (eval $ac_try) 2>&5
4875 ac_status=$?
4876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877 (exit $ac_status); }; }; then
4878 eval "$as_ac_Header=yes"
4879else
4880 echo "$as_me: failed program was:" >&5
4881sed 's/^/| /' conftest.$ac_ext >&5
4882
4883eval "$as_ac_Header=no"
4884fi
4885rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4886fi
4887echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4888echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4889if test `eval echo '${'$as_ac_Header'}'` = yes; then
4890 cat >>confdefs.h <<_ACEOF
4891#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4892_ACEOF
4893
4894fi
4895
4896done
4897
4898
4899
4900
4901for ac_header in tr1/unordered_set tr1/unordered_map
4902do
4903as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4904if eval "test \"\${$as_ac_Header+set}\" = set"; then
4905 echo "$as_me:$LINENO: checking for $ac_header" >&5
4906echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4907if eval "test \"\${$as_ac_Header+set}\" = set"; then
4908 echo $ECHO_N "(cached) $ECHO_C" >&6
4909fi
4910echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4911echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4912else
4913 # Is the header compilable?
4914echo "$as_me:$LINENO: checking $ac_header usability" >&5
4915echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4916cat >conftest.$ac_ext <<_ACEOF
4917/* confdefs.h. */
4918_ACEOF
4919cat confdefs.h >>conftest.$ac_ext
4920cat >>conftest.$ac_ext <<_ACEOF
4921/* end confdefs.h. */
4922$ac_includes_default
4923#include <$ac_header>
4924_ACEOF
4925rm -f conftest.$ac_objext
4926if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4927 (eval $ac_compile) 2>conftest.er1
4928 ac_status=$?
4929 grep -v '^ *+' conftest.er1 >conftest.err
4930 rm -f conftest.er1
4931 cat conftest.err >&5
4932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933 (exit $ac_status); } &&
4934 { ac_try='test -z "$ac_cxx_werror_flag"
4935 || test ! -s conftest.err'
4936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4937 (eval $ac_try) 2>&5
4938 ac_status=$?
4939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940 (exit $ac_status); }; } &&
4941 { ac_try='test -s conftest.$ac_objext'
4942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4943 (eval $ac_try) 2>&5
4944 ac_status=$?
4945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946 (exit $ac_status); }; }; then
4947 ac_header_compiler=yes
4948else
4949 echo "$as_me: failed program was:" >&5
4950sed 's/^/| /' conftest.$ac_ext >&5
4951
4952ac_header_compiler=no
4953fi
4954rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4955echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4956echo "${ECHO_T}$ac_header_compiler" >&6
4957
4958# Is the header present?
4959echo "$as_me:$LINENO: checking $ac_header presence" >&5
4960echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4961cat >conftest.$ac_ext <<_ACEOF
4962/* confdefs.h. */
4963_ACEOF
4964cat confdefs.h >>conftest.$ac_ext
4965cat >>conftest.$ac_ext <<_ACEOF
4966/* end confdefs.h. */
4967#include <$ac_header>
4968_ACEOF
4969if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4970 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4971 ac_status=$?
4972 grep -v '^ *+' conftest.er1 >conftest.err
4973 rm -f conftest.er1
4974 cat conftest.err >&5
4975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976 (exit $ac_status); } >/dev/null; then
4977 if test -s conftest.err; then
4978 ac_cpp_err=$ac_cxx_preproc_warn_flag
4979 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4980 else
4981 ac_cpp_err=
4982 fi
4983else
4984 ac_cpp_err=yes
4985fi
4986if test -z "$ac_cpp_err"; then
4987 ac_header_preproc=yes
4988else
4989 echo "$as_me: failed program was:" >&5
4990sed 's/^/| /' conftest.$ac_ext >&5
4991
4992 ac_header_preproc=no
4993fi
4994rm -f conftest.err conftest.$ac_ext
4995echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4996echo "${ECHO_T}$ac_header_preproc" >&6
4997
4998# So? What about this header?
4999case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
5000 yes:no: )
5001 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5002echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5003 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5004echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5005 ac_header_preproc=yes
5006 ;;
5007 no:yes:* )
5008 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5009echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5010 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5011echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5012 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5013echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5014 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5015echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5016 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5017echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5018 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5019echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5020 (
5021 cat <<\_ASBOX
5022## ------------------------------------------ ##
5023## Report this to the AC_PACKAGE_NAME lists. ##
5024## ------------------------------------------ ##
5025_ASBOX
5026 ) |
5027 sed "s/^/$as_me: WARNING: /" >&2
5028 ;;
5029esac
5030echo "$as_me:$LINENO: checking for $ac_header" >&5
5031echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5032if eval "test \"\${$as_ac_Header+set}\" = set"; then
5033 echo $ECHO_N "(cached) $ECHO_C" >&6
5034else
5035 eval "$as_ac_Header=\$ac_header_preproc"
5036fi
5037echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5038echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5039
5040fi
5041if test `eval echo '${'$as_ac_Header'}'` = yes; then
5042 cat >>confdefs.h <<_ACEOF
5043#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5044_ACEOF
5045
5046fi
5047
5048done
5049
5050
5051
5052for ac_header in ext/hash_map ext/hash_set
5053do
5054as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5055if eval "test \"\${$as_ac_Header+set}\" = set"; then
5056 echo "$as_me:$LINENO: checking for $ac_header" >&5
5057echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5058if eval "test \"\${$as_ac_Header+set}\" = set"; then
5059 echo $ECHO_N "(cached) $ECHO_C" >&6
5060fi
5061echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5062echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5063else
5064 # Is the header compilable?
5065echo "$as_me:$LINENO: checking $ac_header usability" >&5
5066echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5067cat >conftest.$ac_ext <<_ACEOF
5068/* confdefs.h. */
5069_ACEOF
5070cat confdefs.h >>conftest.$ac_ext
5071cat >>conftest.$ac_ext <<_ACEOF
5072/* end confdefs.h. */
5073$ac_includes_default
5074#include <$ac_header>
5075_ACEOF
5076rm -f conftest.$ac_objext
5077if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5078 (eval $ac_compile) 2>conftest.er1
5079 ac_status=$?
5080 grep -v '^ *+' conftest.er1 >conftest.err
5081 rm -f conftest.er1
5082 cat conftest.err >&5
5083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084 (exit $ac_status); } &&
5085 { ac_try='test -z "$ac_cxx_werror_flag"
5086 || test ! -s conftest.err'
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); }; } &&
5092 { ac_try='test -s conftest.$ac_objext'
5093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5094 (eval $ac_try) 2>&5
5095 ac_status=$?
5096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097 (exit $ac_status); }; }; then
5098 ac_header_compiler=yes
5099else
5100 echo "$as_me: failed program was:" >&5
5101sed 's/^/| /' conftest.$ac_ext >&5
5102
5103ac_header_compiler=no
5104fi
5105rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5106echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5107echo "${ECHO_T}$ac_header_compiler" >&6
5108
5109# Is the header present?
5110echo "$as_me:$LINENO: checking $ac_header presence" >&5
5111echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5112cat >conftest.$ac_ext <<_ACEOF
5113/* confdefs.h. */
5114_ACEOF
5115cat confdefs.h >>conftest.$ac_ext
5116cat >>conftest.$ac_ext <<_ACEOF
5117/* end confdefs.h. */
5118#include <$ac_header>
5119_ACEOF
5120if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5121 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5122 ac_status=$?
5123 grep -v '^ *+' conftest.er1 >conftest.err
5124 rm -f conftest.er1
5125 cat conftest.err >&5
5126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127 (exit $ac_status); } >/dev/null; then
5128 if test -s conftest.err; then
5129 ac_cpp_err=$ac_cxx_preproc_warn_flag
5130 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5131 else
5132 ac_cpp_err=
5133 fi
5134else
5135 ac_cpp_err=yes
5136fi
5137if test -z "$ac_cpp_err"; then
5138 ac_header_preproc=yes
5139else
5140 echo "$as_me: failed program was:" >&5
5141sed 's/^/| /' conftest.$ac_ext >&5
5142
5143 ac_header_preproc=no
5144fi
5145rm -f conftest.err conftest.$ac_ext
5146echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5147echo "${ECHO_T}$ac_header_preproc" >&6
5148
5149# So? What about this header?
5150case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
5151 yes:no: )
5152 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5153echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5154 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5155echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5156 ac_header_preproc=yes
5157 ;;
5158 no:yes:* )
5159 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5160echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5161 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5162echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5163 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5164echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5165 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5166echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5167 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5168echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5169 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5170echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5171 (
5172 cat <<\_ASBOX
5173## ------------------------------------------ ##
5174## Report this to the AC_PACKAGE_NAME lists. ##
5175## ------------------------------------------ ##
5176_ASBOX
5177 ) |
5178 sed "s/^/$as_me: WARNING: /" >&2
5179 ;;
5180esac
5181echo "$as_me:$LINENO: checking for $ac_header" >&5
5182echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5183if eval "test \"\${$as_ac_Header+set}\" = set"; then
5184 echo $ECHO_N "(cached) $ECHO_C" >&6
5185else
5186 eval "$as_ac_Header=\$ac_header_preproc"
5187fi
5188echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5189echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5190
5191fi
5192if test `eval echo '${'$as_ac_Header'}'` = yes; then
5193 cat >>confdefs.h <<_ACEOF
5194#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5195_ACEOF
5196
5197fi
5198
5199done
5200
d288e464
ILT
5201
5202cat >conftest.$ac_ext <<_ACEOF
5203
5204class c { public: template<int i> void fn(); };
5205template<int i> void foo(c cv) { cv.fn<i>(); }
5206template void foo<1>(c cv);
5207_ACEOF
5208rm -f conftest.$ac_objext
5209if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5210 (eval $ac_compile) 2>conftest.er1
5211 ac_status=$?
5212 grep -v '^ *+' conftest.er1 >conftest.err
5213 rm -f conftest.er1
5214 cat conftest.err >&5
5215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5216 (exit $ac_status); } &&
5217 { ac_try='test -z "$ac_cxx_werror_flag"
5218 || test ! -s conftest.err'
5219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5220 (eval $ac_try) 2>&5
5221 ac_status=$?
5222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223 (exit $ac_status); }; } &&
5224 { ac_try='test -s conftest.$ac_objext'
5225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5226 (eval $ac_try) 2>&5
5227 ac_status=$?
5228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229 (exit $ac_status); }; }; then
5230
5231cat >>confdefs.h <<\_ACEOF
5232#define HAVE_MEMBER_TEMPLATE_SPECIFICATIONS
5233_ACEOF
5234
5235else
5236 echo "$as_me: failed program was:" >&5
5237sed 's/^/| /' conftest.$ac_ext >&5
5238
5239fi
5240rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5241
54dc6425
ILT
5242ac_ext=c
5243ac_cpp='$CPP $CPPFLAGS'
5244ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5245ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5246ac_compiler_gnu=$ac_cv_c_compiler_gnu
5247
5248
bae7f79e
ILT
5249echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5250echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5251 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5252if test "${enable_maintainer_mode+set}" = set; then
5253 enableval="$enable_maintainer_mode"
5254 USE_MAINTAINER_MODE=$enableval
5255else
5256 USE_MAINTAINER_MODE=no
5257fi;
5258 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5259echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5260
5261
5262if test $USE_MAINTAINER_MODE = yes; then
5263 MAINTAINER_MODE_TRUE=
5264 MAINTAINER_MODE_FALSE='#'
5265else
5266 MAINTAINER_MODE_TRUE='#'
5267 MAINTAINER_MODE_FALSE=
5268fi
5269
5270 MAINT=$MAINTAINER_MODE_TRUE
5271
5272
5273
5a6f7e2d 5274 ac_config_files="$ac_config_files Makefile testsuite/Makefile po/Makefile.in:po/Make-in"
bae7f79e
ILT
5275cat >confcache <<\_ACEOF
5276# This file is a shell script that caches the results of configure
5277# tests run on this system so they can be shared between configure
5278# scripts and configure runs, see configure's option --config-cache.
5279# It is not useful on other systems. If it contains results you don't
5280# want to keep, you may remove or edit it.
5281#
5282# config.status only pays attention to the cache file if you give it
5283# the --recheck option to rerun configure.
5284#
5285# `ac_cv_env_foo' variables (set or unset) will be overridden when
5286# loading this file, other *unset* `ac_cv_foo' will be assigned the
5287# following values.
5288
5289_ACEOF
5290
5291# The following way of writing the cache mishandles newlines in values,
5292# but we know of no workaround that is simple, portable, and efficient.
5293# So, don't put newlines in cache variables' values.
5294# Ultrix sh set writes to stderr and can't be redirected directly,
5295# and sets the high bit in the cache file unless we assign to the vars.
5296{
5297 (set) 2>&1 |
5298 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5299 *ac_space=\ *)
5300 # `set' does not quote correctly, so add quotes (double-quote
5301 # substitution turns \\\\ into \\, and sed turns \\ into \).
5302 sed -n \
5303 "s/'/'\\\\''/g;
5304 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5305 ;;
5306 *)
5307 # `set' quotes correctly as required by POSIX, so do not add quotes.
5308 sed -n \
5309 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5310 ;;
5311 esac;
5312} |
5313 sed '
5314 t clear
5315 : clear
5316 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5317 t end
5318 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5319 : end' >>confcache
5320if diff $cache_file confcache >/dev/null 2>&1; then :; else
5321 if test -w $cache_file; then
5322 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5323 cat confcache >$cache_file
5324 else
5325 echo "not updating unwritable cache $cache_file"
5326 fi
5327fi
5328rm -f confcache
5329
5330test "x$prefix" = xNONE && prefix=$ac_default_prefix
5331# Let make expand exec_prefix.
5332test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5333
5334# VPATH may cause trouble with some makes, so we remove $(srcdir),
5335# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5336# trailing colons and then remove the whole line if VPATH becomes empty
5337# (actually we leave an empty line to preserve line numbers).
5338if test "x$srcdir" = x.; then
5339 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5340s/:*\$(srcdir):*/:/;
5341s/:*\${srcdir}:*/:/;
5342s/:*@srcdir@:*/:/;
5343s/^\([^=]*=[ ]*\):*/\1/;
5344s/:*$//;
5345s/^[^=]*=[ ]*$//;
5346}'
5347fi
5348
5349DEFS=-DHAVE_CONFIG_H
5350
5351ac_libobjs=
5352ac_ltlibobjs=
5353for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5354 # 1. Remove the extension, and $U if already installed.
5355 ac_i=`echo "$ac_i" |
5356 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5357 # 2. Add them.
5358 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5359 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5360done
5361LIBOBJS=$ac_libobjs
5362
5363LTLIBOBJS=$ac_ltlibobjs
5364
5365
5366if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5367 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
5368Usually this means the macro was only invoked conditionally." >&5
5369echo "$as_me: error: conditional \"AMDEP\" was never defined.
5370Usually this means the macro was only invoked conditionally." >&2;}
5371 { (exit 1); exit 1; }; }
5372fi
5373if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5374 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
5375Usually this means the macro was only invoked conditionally." >&5
5376echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
5377Usually this means the macro was only invoked conditionally." >&2;}
5378 { (exit 1); exit 1; }; }
5379fi
5380if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
5381 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
5382Usually this means the macro was only invoked conditionally." >&5
5383echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
5384Usually this means the macro was only invoked conditionally." >&2;}
5385 { (exit 1); exit 1; }; }
5386fi
537b5f51
ILT
5387if test -z "${NATIVE_LINKER_TRUE}" && test -z "${NATIVE_LINKER_FALSE}"; then
5388 { { echo "$as_me:$LINENO: error: conditional \"NATIVE_LINKER\" was never defined.
5389Usually this means the macro was only invoked conditionally." >&5
5390echo "$as_me: error: conditional \"NATIVE_LINKER\" was never defined.
5391Usually this means the macro was only invoked conditionally." >&2;}
5392 { (exit 1); exit 1; }; }
5393fi
5394if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then
5395 { { echo "$as_me:$LINENO: error: conditional \"GCC\" was never defined.
5396Usually this means the macro was only invoked conditionally." >&5
5397echo "$as_me: error: conditional \"GCC\" was never defined.
5398Usually this means the macro was only invoked conditionally." >&2;}
5399 { (exit 1); exit 1; }; }
5400fi
bae7f79e
ILT
5401if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
5402 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
5403Usually this means the macro was only invoked conditionally." >&5
5404echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
5405Usually this means the macro was only invoked conditionally." >&2;}
5406 { (exit 1); exit 1; }; }
5407fi
5408
5409: ${CONFIG_STATUS=./config.status}
5410ac_clean_files_save=$ac_clean_files
5411ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5412{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5413echo "$as_me: creating $CONFIG_STATUS" >&6;}
5414cat >$CONFIG_STATUS <<_ACEOF
5415#! $SHELL
5416# Generated by $as_me.
5417# Run this file to recreate the current configuration.
5418# Compiler output produced by configure, useful for debugging
5419# configure, is in config.log if it exists.
5420
5421debug=false
5422ac_cs_recheck=false
5423ac_cs_silent=false
5424SHELL=\${CONFIG_SHELL-$SHELL}
5425_ACEOF
5426
5427cat >>$CONFIG_STATUS <<\_ACEOF
5428## --------------------- ##
5429## M4sh Initialization. ##
5430## --------------------- ##
5431
5432# Be Bourne compatible
5433if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5434 emulate sh
5435 NULLCMD=:
5436 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5437 # is contrary to our usage. Disable this feature.
5438 alias -g '${1+"$@"}'='"$@"'
5439elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5440 set -o posix
5441fi
5442DUALCASE=1; export DUALCASE # for MKS sh
5443
5444# Support unset when possible.
5445if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5446 as_unset=unset
5447else
5448 as_unset=false
5449fi
5450
5451
5452# Work around bugs in pre-3.0 UWIN ksh.
5453$as_unset ENV MAIL MAILPATH
5454PS1='$ '
5455PS2='> '
5456PS4='+ '
5457
5458# NLS nuisances.
5459for as_var in \
5460 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5461 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5462 LC_TELEPHONE LC_TIME
5463do
5464 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5465 eval $as_var=C; export $as_var
5466 else
5467 $as_unset $as_var
5468 fi
5469done
5470
5471# Required to use basename.
5472if expr a : '\(a\)' >/dev/null 2>&1; then
5473 as_expr=expr
5474else
5475 as_expr=false
5476fi
5477
5478if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5479 as_basename=basename
5480else
5481 as_basename=false
5482fi
5483
5484
5485# Name of the executable.
5486as_me=`$as_basename "$0" ||
5487$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5488 X"$0" : 'X\(//\)$' \| \
5489 X"$0" : 'X\(/\)$' \| \
5490 . : '\(.\)' 2>/dev/null ||
5491echo X/"$0" |
5492 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5493 /^X\/\(\/\/\)$/{ s//\1/; q; }
5494 /^X\/\(\/\).*/{ s//\1/; q; }
5495 s/.*/./; q'`
5496
5497
5498# PATH needs CR, and LINENO needs CR and PATH.
5499# Avoid depending upon Character Ranges.
5500as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5501as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5502as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5503as_cr_digits='0123456789'
5504as_cr_alnum=$as_cr_Letters$as_cr_digits
5505
5506# The user is always right.
5507if test "${PATH_SEPARATOR+set}" != set; then
5508 echo "#! /bin/sh" >conf$$.sh
5509 echo "exit 0" >>conf$$.sh
5510 chmod +x conf$$.sh
5511 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5512 PATH_SEPARATOR=';'
5513 else
5514 PATH_SEPARATOR=:
5515 fi
5516 rm -f conf$$.sh
5517fi
5518
5519
5520 as_lineno_1=$LINENO
5521 as_lineno_2=$LINENO
5522 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5523 test "x$as_lineno_1" != "x$as_lineno_2" &&
5524 test "x$as_lineno_3" = "x$as_lineno_2" || {
5525 # Find who we are. Look in the path if we contain no path at all
5526 # relative or not.
5527 case $0 in
5528 *[\\/]* ) as_myself=$0 ;;
5529 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5530for as_dir in $PATH
5531do
5532 IFS=$as_save_IFS
5533 test -z "$as_dir" && as_dir=.
5534 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5535done
5536
5537 ;;
5538 esac
5539 # We did not find ourselves, most probably we were run as `sh COMMAND'
5540 # in which case we are not to be found in the path.
5541 if test "x$as_myself" = x; then
5542 as_myself=$0
5543 fi
5544 if test ! -f "$as_myself"; then
5545 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5546echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5547 { (exit 1); exit 1; }; }
5548 fi
5549 case $CONFIG_SHELL in
5550 '')
5551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5552for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5553do
5554 IFS=$as_save_IFS
5555 test -z "$as_dir" && as_dir=.
5556 for as_base in sh bash ksh sh5; do
5557 case $as_dir in
5558 /*)
5559 if ("$as_dir/$as_base" -c '
5560 as_lineno_1=$LINENO
5561 as_lineno_2=$LINENO
5562 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5563 test "x$as_lineno_1" != "x$as_lineno_2" &&
5564 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
5565 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5566 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5567 CONFIG_SHELL=$as_dir/$as_base
5568 export CONFIG_SHELL
5569 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5570 fi;;
5571 esac
5572 done
5573done
5574;;
5575 esac
5576
5577 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5578 # uniformly replaced by the line number. The first 'sed' inserts a
5579 # line-number line before each line; the second 'sed' does the real
5580 # work. The second script uses 'N' to pair each line-number line
5581 # with the numbered line, and appends trailing '-' during
5582 # substitution so that $LINENO is not a special case at line end.
5583 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5584 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5585 sed '=' <$as_myself |
5586 sed '
5587 N
5588 s,$,-,
5589 : loop
5590 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5591 t loop
5592 s,-$,,
5593 s,^['$as_cr_digits']*\n,,
5594 ' >$as_me.lineno &&
5595 chmod +x $as_me.lineno ||
5596 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5597echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5598 { (exit 1); exit 1; }; }
5599
5600 # Don't try to exec as it changes $[0], causing all sort of problems
5601 # (the dirname of $[0] is not the place where we might find the
5602 # original and so on. Autoconf is especially sensible to this).
5603 . ./$as_me.lineno
5604 # Exit status is that of the last command.
5605 exit
5606}
5607
5608
5609case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5610 *c*,-n*) ECHO_N= ECHO_C='
5611' ECHO_T=' ' ;;
5612 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5613 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
5614esac
5615
5616if expr a : '\(a\)' >/dev/null 2>&1; then
5617 as_expr=expr
5618else
5619 as_expr=false
5620fi
5621
5622rm -f conf$$ conf$$.exe conf$$.file
5623echo >conf$$.file
5624if ln -s conf$$.file conf$$ 2>/dev/null; then
5625 # We could just check for DJGPP; but this test a) works b) is more generic
5626 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5627 if test -f conf$$.exe; then
5628 # Don't use ln at all; we don't have any links
5629 as_ln_s='cp -p'
5630 else
5631 as_ln_s='ln -s'
5632 fi
5633elif ln conf$$.file conf$$ 2>/dev/null; then
5634 as_ln_s=ln
5635else
5636 as_ln_s='cp -p'
5637fi
5638rm -f conf$$ conf$$.exe conf$$.file
5639
5640if mkdir -p . 2>/dev/null; then
5641 as_mkdir_p=:
5642else
5643 test -d ./-p && rmdir ./-p
5644 as_mkdir_p=false
5645fi
5646
5647as_executable_p="test -f"
5648
5649# Sed expression to map a string onto a valid CPP name.
5650as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5651
5652# Sed expression to map a string onto a valid variable name.
5653as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5654
5655
5656# IFS
5657# We need space, tab and new line, in precisely that order.
5658as_nl='
5659'
5660IFS=" $as_nl"
5661
5662# CDPATH.
5663$as_unset CDPATH
5664
5665exec 6>&1
5666
5667# Open the log real soon, to keep \$[0] and so on meaningful, and to
5668# report actual input values of CONFIG_FILES etc. instead of their
5669# values after options handling. Logging --version etc. is OK.
5670exec 5>>config.log
5671{
5672 echo
5673 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5674## Running $as_me. ##
5675_ASBOX
5676} >&5
5677cat >&5 <<_CSEOF
5678
5679This file was extended by $as_me, which was
5680generated by GNU Autoconf 2.59. Invocation command line was
5681
5682 CONFIG_FILES = $CONFIG_FILES
5683 CONFIG_HEADERS = $CONFIG_HEADERS
5684 CONFIG_LINKS = $CONFIG_LINKS
5685 CONFIG_COMMANDS = $CONFIG_COMMANDS
5686 $ $0 $@
5687
5688_CSEOF
5689echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5690echo >&5
5691_ACEOF
5692
5693# Files that config.status was made for.
5694if test -n "$ac_config_files"; then
5695 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5696fi
5697
5698if test -n "$ac_config_headers"; then
5699 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5700fi
5701
5702if test -n "$ac_config_links"; then
5703 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5704fi
5705
5706if test -n "$ac_config_commands"; then
5707 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5708fi
5709
5710cat >>$CONFIG_STATUS <<\_ACEOF
5711
5712ac_cs_usage="\
5713\`$as_me' instantiates files from templates according to the
5714current configuration.
5715
5716Usage: $0 [OPTIONS] [FILE]...
5717
5718 -h, --help print this help, then exit
5719 -V, --version print version number, then exit
5720 -q, --quiet do not print progress messages
5721 -d, --debug don't remove temporary files
5722 --recheck update $as_me by reconfiguring in the same conditions
5723 --file=FILE[:TEMPLATE]
5724 instantiate the configuration file FILE
5725 --header=FILE[:TEMPLATE]
5726 instantiate the configuration header FILE
5727
5728Configuration files:
5729$config_files
5730
5731Configuration headers:
5732$config_headers
5733
5734Configuration commands:
5735$config_commands
5736
5737Report bugs to <bug-autoconf@gnu.org>."
5738_ACEOF
5739
5740cat >>$CONFIG_STATUS <<_ACEOF
5741ac_cs_version="\\
5742config.status
5743configured by $0, generated by GNU Autoconf 2.59,
5744 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5745
5746Copyright (C) 2003 Free Software Foundation, Inc.
5747This config.status script is free software; the Free Software Foundation
5748gives unlimited permission to copy, distribute and modify it."
5749srcdir=$srcdir
5750INSTALL="$INSTALL"
5751_ACEOF
5752
5753cat >>$CONFIG_STATUS <<\_ACEOF
5754# If no file are specified by the user, then we need to provide default
5755# value. By we need to know if files were specified by the user.
5756ac_need_defaults=:
5757while test $# != 0
5758do
5759 case $1 in
5760 --*=*)
5761 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5762 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5763 ac_shift=:
5764 ;;
5765 -*)
5766 ac_option=$1
5767 ac_optarg=$2
5768 ac_shift=shift
5769 ;;
5770 *) # This is not an option, so the user has probably given explicit
5771 # arguments.
5772 ac_option=$1
5773 ac_need_defaults=false;;
5774 esac
5775
5776 case $ac_option in
5777 # Handling of the options.
5778_ACEOF
5779cat >>$CONFIG_STATUS <<\_ACEOF
5780 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5781 ac_cs_recheck=: ;;
5782 --version | --vers* | -V )
5783 echo "$ac_cs_version"; exit 0 ;;
5784 --he | --h)
5785 # Conflict between --help and --header
5786 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5787Try \`$0 --help' for more information." >&5
5788echo "$as_me: error: ambiguous option: $1
5789Try \`$0 --help' for more information." >&2;}
5790 { (exit 1); exit 1; }; };;
5791 --help | --hel | -h )
5792 echo "$ac_cs_usage"; exit 0 ;;
5793 --debug | --d* | -d )
5794 debug=: ;;
5795 --file | --fil | --fi | --f )
5796 $ac_shift
5797 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5798 ac_need_defaults=false;;
5799 --header | --heade | --head | --hea )
5800 $ac_shift
5801 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5802 ac_need_defaults=false;;
5803 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5804 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5805 ac_cs_silent=: ;;
5806
5807 # This is an error.
5808 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5809Try \`$0 --help' for more information." >&5
5810echo "$as_me: error: unrecognized option: $1
5811Try \`$0 --help' for more information." >&2;}
5812 { (exit 1); exit 1; }; } ;;
5813
5814 *) ac_config_targets="$ac_config_targets $1" ;;
5815
5816 esac
5817 shift
5818done
5819
5820ac_configure_extra_args=
5821
5822if $ac_cs_silent; then
5823 exec 6>/dev/null
5824 ac_configure_extra_args="$ac_configure_extra_args --silent"
5825fi
5826
5827_ACEOF
5828cat >>$CONFIG_STATUS <<_ACEOF
5829if \$ac_cs_recheck; then
5830 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5831 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5832fi
5833
5834_ACEOF
5835
5836cat >>$CONFIG_STATUS <<_ACEOF
5837#
5838# INIT-COMMANDS section.
5839#
5840
5841AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
5842# Capture the value of obsolete ALL_LINGUAS because we need it to compute
5843 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
5844 # from automake.
5845 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
5846 # Capture the value of LINGUAS because we need it to compute CATALOGS.
5847 LINGUAS="${LINGUAS-%UNSET%}"
5848
5849
5850_ACEOF
5851
5852
5853
5854cat >>$CONFIG_STATUS <<\_ACEOF
5855for ac_config_target in $ac_config_targets
5856do
5857 case "$ac_config_target" in
5858 # Handling of arguments.
5859 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5a6f7e2d 5860 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
bae7f79e
ILT
5861 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
5862 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5863 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
5864 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
5865 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5866echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5867 { (exit 1); exit 1; }; };;
5868 esac
5869done
5870
5871# If the user did not use the arguments to specify the items to instantiate,
5872# then the envvar interface is used. Set only those that are not.
5873# We use the long form for the default assignment because of an extremely
5874# bizarre bug on SunOS 4.1.3.
5875if $ac_need_defaults; then
5876 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5877 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5878 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5879fi
5880
5881# Have a temporary directory for convenience. Make it in the build tree
5882# simply because there is no reason to put it here, and in addition,
5883# creating and moving files from /tmp can sometimes cause problems.
5884# Create a temporary directory, and hook for its removal unless debugging.
5885$debug ||
5886{
5887 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5888 trap '{ (exit 1); exit 1; }' 1 2 13 15
5889}
5890
5891# Create a (secure) tmp directory for tmp files.
5892
5893{
5894 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5895 test -n "$tmp" && test -d "$tmp"
5896} ||
5897{
5898 tmp=./confstat$$-$RANDOM
5899 (umask 077 && mkdir $tmp)
5900} ||
5901{
5902 echo "$me: cannot create a temporary directory in ." >&2
5903 { (exit 1); exit 1; }
5904}
5905
5906_ACEOF
5907
5908cat >>$CONFIG_STATUS <<_ACEOF
5909
5910#
5911# CONFIG_FILES section.
5912#
5913
5914# No need to generate the scripts if there are no CONFIG_FILES.
5915# This happens for instance when ./config.status config.h
5916if test -n "\$CONFIG_FILES"; then
5917 # Protect against being on the right side of a sed subst in config.status.
5918 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5919 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5920s,@SHELL@,$SHELL,;t t
5921s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5922s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5923s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5924s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5925s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5926s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5927s,@exec_prefix@,$exec_prefix,;t t
5928s,@prefix@,$prefix,;t t
5929s,@program_transform_name@,$program_transform_name,;t t
5930s,@bindir@,$bindir,;t t
5931s,@sbindir@,$sbindir,;t t
5932s,@libexecdir@,$libexecdir,;t t
5933s,@datadir@,$datadir,;t t
5934s,@sysconfdir@,$sysconfdir,;t t
5935s,@sharedstatedir@,$sharedstatedir,;t t
5936s,@localstatedir@,$localstatedir,;t t
5937s,@libdir@,$libdir,;t t
5938s,@includedir@,$includedir,;t t
5939s,@oldincludedir@,$oldincludedir,;t t
5940s,@infodir@,$infodir,;t t
5941s,@mandir@,$mandir,;t t
5942s,@build_alias@,$build_alias,;t t
5943s,@host_alias@,$host_alias,;t t
5944s,@target_alias@,$target_alias,;t t
5945s,@DEFS@,$DEFS,;t t
5946s,@ECHO_C@,$ECHO_C,;t t
5947s,@ECHO_N@,$ECHO_N,;t t
5948s,@ECHO_T@,$ECHO_T,;t t
5949s,@LIBS@,$LIBS,;t t
5950s,@build@,$build,;t t
5951s,@build_cpu@,$build_cpu,;t t
5952s,@build_vendor@,$build_vendor,;t t
5953s,@build_os@,$build_os,;t t
5954s,@host@,$host,;t t
5955s,@host_cpu@,$host_cpu,;t t
5956s,@host_vendor@,$host_vendor,;t t
5957s,@host_os@,$host_os,;t t
5958s,@target@,$target,;t t
5959s,@target_cpu@,$target_cpu,;t t
5960s,@target_vendor@,$target_vendor,;t t
5961s,@target_os@,$target_os,;t t
5962s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5963s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5964s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5965s,@CYGPATH_W@,$CYGPATH_W,;t t
5966s,@PACKAGE@,$PACKAGE,;t t
5967s,@VERSION@,$VERSION,;t t
5968s,@ACLOCAL@,$ACLOCAL,;t t
5969s,@AUTOCONF@,$AUTOCONF,;t t
5970s,@AUTOMAKE@,$AUTOMAKE,;t t
5971s,@AUTOHEADER@,$AUTOHEADER,;t t
5972s,@MAKEINFO@,$MAKEINFO,;t t
5973s,@install_sh@,$install_sh,;t t
5974s,@STRIP@,$STRIP,;t t
5975s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
5976s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
5977s,@mkdir_p@,$mkdir_p,;t t
5978s,@AWK@,$AWK,;t t
5979s,@SET_MAKE@,$SET_MAKE,;t t
5980s,@am__leading_dot@,$am__leading_dot,;t t
5981s,@AMTAR@,$AMTAR,;t t
5982s,@am__tar@,$am__tar,;t t
5983s,@am__untar@,$am__untar,;t t
5984s,@CC@,$CC,;t t
5985s,@CFLAGS@,$CFLAGS,;t t
5986s,@LDFLAGS@,$LDFLAGS,;t t
5987s,@CPPFLAGS@,$CPPFLAGS,;t t
5988s,@ac_ct_CC@,$ac_ct_CC,;t t
5989s,@EXEEXT@,$EXEEXT,;t t
5990s,@OBJEXT@,$OBJEXT,;t t
5991s,@DEPDIR@,$DEPDIR,;t t
5992s,@am__include@,$am__include,;t t
5993s,@am__quote@,$am__quote,;t t
5994s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
5995s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
5996s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
5997s,@CCDEPMODE@,$CCDEPMODE,;t t
5998s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
5999s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
6000s,@CXX@,$CXX,;t t
6001s,@CXXFLAGS@,$CXXFLAGS,;t t
6002s,@ac_ct_CXX@,$ac_ct_CXX,;t t
6003s,@CXXDEPMODE@,$CXXDEPMODE,;t t
6004s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
6005s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
dbe717ef 6006s,@YACC@,$YACC,;t t
5a6f7e2d
ILT
6007s,@RANLIB@,$RANLIB,;t t
6008s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
537b5f51 6009s,@LN_S@,$LN_S,;t t
bae7f79e
ILT
6010s,@USE_NLS@,$USE_NLS,;t t
6011s,@LIBINTL@,$LIBINTL,;t t
6012s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
6013s,@INCINTL@,$INCINTL,;t t
6014s,@XGETTEXT@,$XGETTEXT,;t t
6015s,@GMSGFMT@,$GMSGFMT,;t t
6016s,@POSUB@,$POSUB,;t t
6017s,@CATALOGS@,$CATALOGS,;t t
6018s,@DATADIRNAME@,$DATADIRNAME,;t t
6019s,@INSTOBJEXT@,$INSTOBJEXT,;t t
6020s,@GENCAT@,$GENCAT,;t t
6021s,@CATOBJEXT@,$CATOBJEXT,;t t
6022s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
6023s,@MSGFMT@,$MSGFMT,;t t
6024s,@MSGMERGE@,$MSGMERGE,;t t
537b5f51
ILT
6025s,@NATIVE_LINKER_TRUE@,$NATIVE_LINKER_TRUE,;t t
6026s,@NATIVE_LINKER_FALSE@,$NATIVE_LINKER_FALSE,;t t
6027s,@GCC_TRUE@,$GCC_TRUE,;t t
6028s,@GCC_FALSE@,$GCC_FALSE,;t t
bae7f79e
ILT
6029s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
6030s,@NO_WERROR@,$NO_WERROR,;t t
6031s,@WARN_CXXFLAGS@,$WARN_CXXFLAGS,;t t
6032s,@LFS_CXXFLAGS@,$LFS_CXXFLAGS,;t t
54dc6425
ILT
6033s,@CXXCPP@,$CXXCPP,;t t
6034s,@EGREP@,$EGREP,;t t
bae7f79e
ILT
6035s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
6036s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
6037s,@MAINT@,$MAINT,;t t
6038s,@LIBOBJS@,$LIBOBJS,;t t
6039s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6040CEOF
6041
6042_ACEOF
6043
6044 cat >>$CONFIG_STATUS <<\_ACEOF
6045 # Split the substitutions into bite-sized pieces for seds with
6046 # small command number limits, like on Digital OSF/1 and HP-UX.
6047 ac_max_sed_lines=48
6048 ac_sed_frag=1 # Number of current file.
6049 ac_beg=1 # First line for current file.
6050 ac_end=$ac_max_sed_lines # Line after last line for current file.
6051 ac_more_lines=:
6052 ac_sed_cmds=
6053 while $ac_more_lines; do
6054 if test $ac_beg -gt 1; then
6055 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6056 else
6057 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6058 fi
6059 if test ! -s $tmp/subs.frag; then
6060 ac_more_lines=false
6061 else
6062 # The purpose of the label and of the branching condition is to
6063 # speed up the sed processing (if there are no `@' at all, there
6064 # is no need to browse any of the substitutions).
6065 # These are the two extra sed commands mentioned above.
6066 (echo ':t
6067 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6068 if test -z "$ac_sed_cmds"; then
6069 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6070 else
6071 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6072 fi
6073 ac_sed_frag=`expr $ac_sed_frag + 1`
6074 ac_beg=$ac_end
6075 ac_end=`expr $ac_end + $ac_max_sed_lines`
6076 fi
6077 done
6078 if test -z "$ac_sed_cmds"; then
6079 ac_sed_cmds=cat
6080 fi
6081fi # test -n "$CONFIG_FILES"
6082
6083_ACEOF
6084cat >>$CONFIG_STATUS <<\_ACEOF
6085for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6086 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6087 case $ac_file in
6088 - | *:- | *:-:* ) # input from stdin
6089 cat >$tmp/stdin
6090 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6091 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6092 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6093 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6094 * ) ac_file_in=$ac_file.in ;;
6095 esac
6096
6097 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6098 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6099$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6100 X"$ac_file" : 'X\(//\)[^/]' \| \
6101 X"$ac_file" : 'X\(//\)$' \| \
6102 X"$ac_file" : 'X\(/\)' \| \
6103 . : '\(.\)' 2>/dev/null ||
6104echo X"$ac_file" |
6105 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6106 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6107 /^X\(\/\/\)$/{ s//\1/; q; }
6108 /^X\(\/\).*/{ s//\1/; q; }
6109 s/.*/./; q'`
6110 { if $as_mkdir_p; then
6111 mkdir -p "$ac_dir"
6112 else
6113 as_dir="$ac_dir"
6114 as_dirs=
6115 while test ! -d "$as_dir"; do
6116 as_dirs="$as_dir $as_dirs"
6117 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6118$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6119 X"$as_dir" : 'X\(//\)[^/]' \| \
6120 X"$as_dir" : 'X\(//\)$' \| \
6121 X"$as_dir" : 'X\(/\)' \| \
6122 . : '\(.\)' 2>/dev/null ||
6123echo X"$as_dir" |
6124 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6125 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6126 /^X\(\/\/\)$/{ s//\1/; q; }
6127 /^X\(\/\).*/{ s//\1/; q; }
6128 s/.*/./; q'`
6129 done
6130 test ! -n "$as_dirs" || mkdir $as_dirs
6131 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6132echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6133 { (exit 1); exit 1; }; }; }
6134
6135 ac_builddir=.
6136
6137if test "$ac_dir" != .; then
6138 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6139 # A "../" for each directory in $ac_dir_suffix.
6140 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6141else
6142 ac_dir_suffix= ac_top_builddir=
6143fi
6144
6145case $srcdir in
6146 .) # No --srcdir option. We are building in place.
6147 ac_srcdir=.
6148 if test -z "$ac_top_builddir"; then
6149 ac_top_srcdir=.
6150 else
6151 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6152 fi ;;
6153 [\\/]* | ?:[\\/]* ) # Absolute path.
6154 ac_srcdir=$srcdir$ac_dir_suffix;
6155 ac_top_srcdir=$srcdir ;;
6156 *) # Relative path.
6157 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6158 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6159esac
6160
6161# Do not use `cd foo && pwd` to compute absolute paths, because
6162# the directories may not exist.
6163case `pwd` in
6164.) ac_abs_builddir="$ac_dir";;
6165*)
6166 case "$ac_dir" in
6167 .) ac_abs_builddir=`pwd`;;
6168 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6169 *) ac_abs_builddir=`pwd`/"$ac_dir";;
6170 esac;;
6171esac
6172case $ac_abs_builddir in
6173.) ac_abs_top_builddir=${ac_top_builddir}.;;
6174*)
6175 case ${ac_top_builddir}. in
6176 .) ac_abs_top_builddir=$ac_abs_builddir;;
6177 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6178 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6179 esac;;
6180esac
6181case $ac_abs_builddir in
6182.) ac_abs_srcdir=$ac_srcdir;;
6183*)
6184 case $ac_srcdir in
6185 .) ac_abs_srcdir=$ac_abs_builddir;;
6186 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6187 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6188 esac;;
6189esac
6190case $ac_abs_builddir in
6191.) ac_abs_top_srcdir=$ac_top_srcdir;;
6192*)
6193 case $ac_top_srcdir in
6194 .) ac_abs_top_srcdir=$ac_abs_builddir;;
6195 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6196 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6197 esac;;
6198esac
6199
6200
6201 case $INSTALL in
6202 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6203 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6204 esac
6205
6206 if test x"$ac_file" != x-; then
6207 { echo "$as_me:$LINENO: creating $ac_file" >&5
6208echo "$as_me: creating $ac_file" >&6;}
6209 rm -f "$ac_file"
6210 fi
6211 # Let's still pretend it is `configure' which instantiates (i.e., don't
6212 # use $as_me), people would be surprised to read:
6213 # /* config.h. Generated by config.status. */
6214 if test x"$ac_file" = x-; then
6215 configure_input=
6216 else
6217 configure_input="$ac_file. "
6218 fi
6219 configure_input=$configure_input"Generated from `echo $ac_file_in |
6220 sed 's,.*/,,'` by configure."
6221
6222 # First look for the input files in the build tree, otherwise in the
6223 # src tree.
6224 ac_file_inputs=`IFS=:
6225 for f in $ac_file_in; do
6226 case $f in
6227 -) echo $tmp/stdin ;;
6228 [\\/$]*)
6229 # Absolute (can't be DOS-style, as IFS=:)
6230 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6231echo "$as_me: error: cannot find input file: $f" >&2;}
6232 { (exit 1); exit 1; }; }
6233 echo "$f";;
6234 *) # Relative
6235 if test -f "$f"; then
6236 # Build tree
6237 echo "$f"
6238 elif test -f "$srcdir/$f"; then
6239 # Source tree
6240 echo "$srcdir/$f"
6241 else
6242 # /dev/null tree
6243 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6244echo "$as_me: error: cannot find input file: $f" >&2;}
6245 { (exit 1); exit 1; }; }
6246 fi;;
6247 esac
6248 done` || { (exit 1); exit 1; }
6249_ACEOF
6250cat >>$CONFIG_STATUS <<_ACEOF
6251 sed "$ac_vpsub
6252$extrasub
6253_ACEOF
6254cat >>$CONFIG_STATUS <<\_ACEOF
6255:t
6256/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6257s,@configure_input@,$configure_input,;t t
6258s,@srcdir@,$ac_srcdir,;t t
6259s,@abs_srcdir@,$ac_abs_srcdir,;t t
6260s,@top_srcdir@,$ac_top_srcdir,;t t
6261s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6262s,@builddir@,$ac_builddir,;t t
6263s,@abs_builddir@,$ac_abs_builddir,;t t
6264s,@top_builddir@,$ac_top_builddir,;t t
6265s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6266s,@INSTALL@,$ac_INSTALL,;t t
6267" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6268 rm -f $tmp/stdin
6269 if test x"$ac_file" != x-; then
6270 mv $tmp/out $ac_file
6271 else
6272 cat $tmp/out
6273 rm -f $tmp/out
6274 fi
6275
6276done
6277_ACEOF
6278cat >>$CONFIG_STATUS <<\_ACEOF
6279
6280#
6281# CONFIG_HEADER section.
6282#
6283
6284# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6285# NAME is the cpp macro being defined and VALUE is the value it is being given.
6286#
6287# ac_d sets the value in "#define NAME VALUE" lines.
6288ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6289ac_dB='[ ].*$,\1#\2'
6290ac_dC=' '
6291ac_dD=',;t'
6292# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6293ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6294ac_uB='$,\1#\2define\3'
6295ac_uC=' '
6296ac_uD=',;t'
6297
6298for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6299 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6300 case $ac_file in
6301 - | *:- | *:-:* ) # input from stdin
6302 cat >$tmp/stdin
6303 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6304 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6305 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6306 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6307 * ) ac_file_in=$ac_file.in ;;
6308 esac
6309
6310 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
6311echo "$as_me: creating $ac_file" >&6;}
6312
6313 # First look for the input files in the build tree, otherwise in the
6314 # src tree.
6315 ac_file_inputs=`IFS=:
6316 for f in $ac_file_in; do
6317 case $f in
6318 -) echo $tmp/stdin ;;
6319 [\\/$]*)
6320 # Absolute (can't be DOS-style, as IFS=:)
6321 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6322echo "$as_me: error: cannot find input file: $f" >&2;}
6323 { (exit 1); exit 1; }; }
6324 # Do quote $f, to prevent DOS paths from being IFS'd.
6325 echo "$f";;
6326 *) # Relative
6327 if test -f "$f"; then
6328 # Build tree
6329 echo "$f"
6330 elif test -f "$srcdir/$f"; then
6331 # Source tree
6332 echo "$srcdir/$f"
6333 else
6334 # /dev/null tree
6335 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6336echo "$as_me: error: cannot find input file: $f" >&2;}
6337 { (exit 1); exit 1; }; }
6338 fi;;
6339 esac
6340 done` || { (exit 1); exit 1; }
6341 # Remove the trailing spaces.
6342 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
6343
6344_ACEOF
6345
6346# Transform confdefs.h into two sed scripts, `conftest.defines' and
6347# `conftest.undefs', that substitutes the proper values into
6348# config.h.in to produce config.h. The first handles `#define'
6349# templates, and the second `#undef' templates.
6350# And first: Protect against being on the right side of a sed subst in
6351# config.status. Protect against being in an unquoted here document
6352# in config.status.
6353rm -f conftest.defines conftest.undefs
6354# Using a here document instead of a string reduces the quoting nightmare.
6355# Putting comments in sed scripts is not portable.
6356#
6357# `end' is used to avoid that the second main sed command (meant for
6358# 0-ary CPP macros) applies to n-ary macro definitions.
6359# See the Autoconf documentation for `clear'.
6360cat >confdef2sed.sed <<\_ACEOF
6361s/[\\&,]/\\&/g
6362s,[\\$`],\\&,g
6363t clear
6364: clear
6365s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6366t end
6367s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6368: end
6369_ACEOF
6370# If some macros were called several times there might be several times
6371# the same #defines, which is useless. Nevertheless, we may not want to
6372# sort them, since we want the *last* AC-DEFINE to be honored.
6373uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6374sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6375rm -f confdef2sed.sed
6376
6377# This sed command replaces #undef with comments. This is necessary, for
6378# example, in the case of _POSIX_SOURCE, which is predefined and required
6379# on some systems where configure will not decide to define it.
6380cat >>conftest.undefs <<\_ACEOF
6381s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6382_ACEOF
6383
6384# Break up conftest.defines because some shells have a limit on the size
6385# of here documents, and old seds have small limits too (100 cmds).
6386echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6387echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6388echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6389echo ' :' >>$CONFIG_STATUS
6390rm -f conftest.tail
6391while grep . conftest.defines >/dev/null
6392do
6393 # Write a limited-size here document to $tmp/defines.sed.
6394 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6395 # Speed up: don't consider the non `#define' lines.
6396 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
6397 # Work around the forget-to-reset-the-flag bug.
6398 echo 't clr' >>$CONFIG_STATUS
6399 echo ': clr' >>$CONFIG_STATUS
6400 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6401 echo 'CEOF
6402 sed -f $tmp/defines.sed $tmp/in >$tmp/out
6403 rm -f $tmp/in
6404 mv $tmp/out $tmp/in
6405' >>$CONFIG_STATUS
6406 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6407 rm -f conftest.defines
6408 mv conftest.tail conftest.defines
6409done
6410rm -f conftest.defines
6411echo ' fi # grep' >>$CONFIG_STATUS
6412echo >>$CONFIG_STATUS
6413
6414# Break up conftest.undefs because some shells have a limit on the size
6415# of here documents, and old seds have small limits too (100 cmds).
6416echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
6417rm -f conftest.tail
6418while grep . conftest.undefs >/dev/null
6419do
6420 # Write a limited-size here document to $tmp/undefs.sed.
6421 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6422 # Speed up: don't consider the non `#undef'
6423 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
6424 # Work around the forget-to-reset-the-flag bug.
6425 echo 't clr' >>$CONFIG_STATUS
6426 echo ': clr' >>$CONFIG_STATUS
6427 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6428 echo 'CEOF
6429 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6430 rm -f $tmp/in
6431 mv $tmp/out $tmp/in
6432' >>$CONFIG_STATUS
6433 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6434 rm -f conftest.undefs
6435 mv conftest.tail conftest.undefs
6436done
6437rm -f conftest.undefs
6438
6439cat >>$CONFIG_STATUS <<\_ACEOF
6440 # Let's still pretend it is `configure' which instantiates (i.e., don't
6441 # use $as_me), people would be surprised to read:
6442 # /* config.h. Generated by config.status. */
6443 if test x"$ac_file" = x-; then
6444 echo "/* Generated by configure. */" >$tmp/config.h
6445 else
6446 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
6447 fi
6448 cat $tmp/in >>$tmp/config.h
6449 rm -f $tmp/in
6450 if test x"$ac_file" != x-; then
6451 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
6452 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6453echo "$as_me: $ac_file is unchanged" >&6;}
6454 else
6455 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6456$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6457 X"$ac_file" : 'X\(//\)[^/]' \| \
6458 X"$ac_file" : 'X\(//\)$' \| \
6459 X"$ac_file" : 'X\(/\)' \| \
6460 . : '\(.\)' 2>/dev/null ||
6461echo X"$ac_file" |
6462 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6463 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6464 /^X\(\/\/\)$/{ s//\1/; q; }
6465 /^X\(\/\).*/{ s//\1/; q; }
6466 s/.*/./; q'`
6467 { if $as_mkdir_p; then
6468 mkdir -p "$ac_dir"
6469 else
6470 as_dir="$ac_dir"
6471 as_dirs=
6472 while test ! -d "$as_dir"; do
6473 as_dirs="$as_dir $as_dirs"
6474 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6475$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6476 X"$as_dir" : 'X\(//\)[^/]' \| \
6477 X"$as_dir" : 'X\(//\)$' \| \
6478 X"$as_dir" : 'X\(/\)' \| \
6479 . : '\(.\)' 2>/dev/null ||
6480echo X"$as_dir" |
6481 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6482 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6483 /^X\(\/\/\)$/{ s//\1/; q; }
6484 /^X\(\/\).*/{ s//\1/; q; }
6485 s/.*/./; q'`
6486 done
6487 test ! -n "$as_dirs" || mkdir $as_dirs
6488 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6489echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6490 { (exit 1); exit 1; }; }; }
6491
6492 rm -f $ac_file
6493 mv $tmp/config.h $ac_file
6494 fi
6495 else
6496 cat $tmp/config.h
6497 rm -f $tmp/config.h
6498 fi
6499# Compute $ac_file's index in $config_headers.
6500_am_stamp_count=1
6501for _am_header in $config_headers :; do
6502 case $_am_header in
6503 $ac_file | $ac_file:* )
6504 break ;;
6505 * )
6506 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
6507 esac
6508done
6509echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
6510$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6511 X$ac_file : 'X\(//\)[^/]' \| \
6512 X$ac_file : 'X\(//\)$' \| \
6513 X$ac_file : 'X\(/\)' \| \
6514 . : '\(.\)' 2>/dev/null ||
6515echo X$ac_file |
6516 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6517 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6518 /^X\(\/\/\)$/{ s//\1/; q; }
6519 /^X\(\/\).*/{ s//\1/; q; }
6520 s/.*/./; q'`/stamp-h$_am_stamp_count
6521done
6522_ACEOF
6523cat >>$CONFIG_STATUS <<\_ACEOF
6524
6525#
6526# CONFIG_COMMANDS section.
6527#
6528for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
6529 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
6530 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
6531 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
6532$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6533 X"$ac_dest" : 'X\(//\)[^/]' \| \
6534 X"$ac_dest" : 'X\(//\)$' \| \
6535 X"$ac_dest" : 'X\(/\)' \| \
6536 . : '\(.\)' 2>/dev/null ||
6537echo X"$ac_dest" |
6538 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6539 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6540 /^X\(\/\/\)$/{ s//\1/; q; }
6541 /^X\(\/\).*/{ s//\1/; q; }
6542 s/.*/./; q'`
6543 { if $as_mkdir_p; then
6544 mkdir -p "$ac_dir"
6545 else
6546 as_dir="$ac_dir"
6547 as_dirs=
6548 while test ! -d "$as_dir"; do
6549 as_dirs="$as_dir $as_dirs"
6550 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6551$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6552 X"$as_dir" : 'X\(//\)[^/]' \| \
6553 X"$as_dir" : 'X\(//\)$' \| \
6554 X"$as_dir" : 'X\(/\)' \| \
6555 . : '\(.\)' 2>/dev/null ||
6556echo X"$as_dir" |
6557 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6558 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6559 /^X\(\/\/\)$/{ s//\1/; q; }
6560 /^X\(\/\).*/{ s//\1/; q; }
6561 s/.*/./; q'`
6562 done
6563 test ! -n "$as_dirs" || mkdir $as_dirs
6564 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6565echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6566 { (exit 1); exit 1; }; }; }
6567
6568 ac_builddir=.
6569
6570if test "$ac_dir" != .; then
6571 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6572 # A "../" for each directory in $ac_dir_suffix.
6573 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6574else
6575 ac_dir_suffix= ac_top_builddir=
6576fi
6577
6578case $srcdir in
6579 .) # No --srcdir option. We are building in place.
6580 ac_srcdir=.
6581 if test -z "$ac_top_builddir"; then
6582 ac_top_srcdir=.
6583 else
6584 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6585 fi ;;
6586 [\\/]* | ?:[\\/]* ) # Absolute path.
6587 ac_srcdir=$srcdir$ac_dir_suffix;
6588 ac_top_srcdir=$srcdir ;;
6589 *) # Relative path.
6590 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6591 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6592esac
6593
6594# Do not use `cd foo && pwd` to compute absolute paths, because
6595# the directories may not exist.
6596case `pwd` in
6597.) ac_abs_builddir="$ac_dir";;
6598*)
6599 case "$ac_dir" in
6600 .) ac_abs_builddir=`pwd`;;
6601 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6602 *) ac_abs_builddir=`pwd`/"$ac_dir";;
6603 esac;;
6604esac
6605case $ac_abs_builddir in
6606.) ac_abs_top_builddir=${ac_top_builddir}.;;
6607*)
6608 case ${ac_top_builddir}. in
6609 .) ac_abs_top_builddir=$ac_abs_builddir;;
6610 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6611 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6612 esac;;
6613esac
6614case $ac_abs_builddir in
6615.) ac_abs_srcdir=$ac_srcdir;;
6616*)
6617 case $ac_srcdir in
6618 .) ac_abs_srcdir=$ac_abs_builddir;;
6619 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6620 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6621 esac;;
6622esac
6623case $ac_abs_builddir in
6624.) ac_abs_top_srcdir=$ac_top_srcdir;;
6625*)
6626 case $ac_top_srcdir in
6627 .) ac_abs_top_srcdir=$ac_abs_builddir;;
6628 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6629 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6630 esac;;
6631esac
6632
6633
6634 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
6635echo "$as_me: executing $ac_dest commands" >&6;}
6636 case $ac_dest in
6637 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
6638 # Strip MF so we end up with the name of the file.
6639 mf=`echo "$mf" | sed -e 's/:.*$//'`
6640 # Check whether this is an Automake generated Makefile or not.
6641 # We used to match only the files named `Makefile.in', but
6642 # some people rename them; so instead we look at the file content.
6643 # Grep'ing the first line is not enough: some people post-process
6644 # each Makefile.in and add a new line on top of each file to say so.
6645 # So let's grep whole file.
6646 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
6647 dirpart=`(dirname "$mf") 2>/dev/null ||
6648$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6649 X"$mf" : 'X\(//\)[^/]' \| \
6650 X"$mf" : 'X\(//\)$' \| \
6651 X"$mf" : 'X\(/\)' \| \
6652 . : '\(.\)' 2>/dev/null ||
6653echo X"$mf" |
6654 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6655 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6656 /^X\(\/\/\)$/{ s//\1/; q; }
6657 /^X\(\/\).*/{ s//\1/; q; }
6658 s/.*/./; q'`
6659 else
6660 continue
6661 fi
6662 # Extract the definition of DEPDIR, am__include, and am__quote
6663 # from the Makefile without running `make'.
6664 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6665 test -z "$DEPDIR" && continue
6666 am__include=`sed -n 's/^am__include = //p' < "$mf"`
6667 test -z "am__include" && continue
6668 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6669 # When using ansi2knr, U may be empty or an underscore; expand it
6670 U=`sed -n 's/^U = //p' < "$mf"`
6671 # Find all dependency output files, they are included files with
6672 # $(DEPDIR) in their names. We invoke sed twice because it is the
6673 # simplest approach to changing $(DEPDIR) to its actual value in the
6674 # expansion.
6675 for file in `sed -n "
6676 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6677 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6678 # Make sure the directory exists.
6679 test -f "$dirpart/$file" && continue
6680 fdir=`(dirname "$file") 2>/dev/null ||
6681$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6682 X"$file" : 'X\(//\)[^/]' \| \
6683 X"$file" : 'X\(//\)$' \| \
6684 X"$file" : 'X\(/\)' \| \
6685 . : '\(.\)' 2>/dev/null ||
6686echo X"$file" |
6687 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6688 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6689 /^X\(\/\/\)$/{ s//\1/; q; }
6690 /^X\(\/\).*/{ s//\1/; q; }
6691 s/.*/./; q'`
6692 { if $as_mkdir_p; then
6693 mkdir -p $dirpart/$fdir
6694 else
6695 as_dir=$dirpart/$fdir
6696 as_dirs=
6697 while test ! -d "$as_dir"; do
6698 as_dirs="$as_dir $as_dirs"
6699 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6700$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6701 X"$as_dir" : 'X\(//\)[^/]' \| \
6702 X"$as_dir" : 'X\(//\)$' \| \
6703 X"$as_dir" : 'X\(/\)' \| \
6704 . : '\(.\)' 2>/dev/null ||
6705echo X"$as_dir" |
6706 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6707 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6708 /^X\(\/\/\)$/{ s//\1/; q; }
6709 /^X\(\/\).*/{ s//\1/; q; }
6710 s/.*/./; q'`
6711 done
6712 test ! -n "$as_dirs" || mkdir $as_dirs
6713 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
6714echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
6715 { (exit 1); exit 1; }; }; }
6716
6717 # echo "creating $dirpart/$file"
6718 echo '# dummy' > "$dirpart/$file"
6719 done
6720done
6721 ;;
6722 default-1 )
6723 for ac_file in $CONFIG_FILES; do
6724 # Support "outfile[:infile[:infile...]]"
6725 case "$ac_file" in
6726 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6727 esac
6728 # PO directories have a Makefile.in generated from Makefile.in.in.
6729 case "$ac_file" in */Makefile.in)
6730 # Adjust a relative srcdir.
6731 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
6732 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
6733 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
6734 # In autoconf-2.13 it is called $ac_given_srcdir.
6735 # In autoconf-2.50 it is called $srcdir.
6736 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
6737 case "$ac_given_srcdir" in
6738 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
6739 /*) top_srcdir="$ac_given_srcdir" ;;
6740 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
6741 esac
6742 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
6743 rm -f "$ac_dir/POTFILES"
6744 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
6745 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
6746 POMAKEFILEDEPS="POTFILES.in"
6747 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
6748 # on $ac_dir but don't depend on user-specified configuration
6749 # parameters.
6750 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
6751 # The LINGUAS file contains the set of available languages.
6752 if test -n "$OBSOLETE_ALL_LINGUAS"; then
6753 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
6754 fi
6755 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
6756 # Hide the ALL_LINGUAS assigment from automake.
6757 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
6758 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
6759 else
6760 # The set of available languages was given in configure.in.
6761 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
6762 fi
6763 case "$ac_given_srcdir" in
6764 .) srcdirpre= ;;
6765 *) srcdirpre='$(srcdir)/' ;;
6766 esac
6767 POFILES=
6768 GMOFILES=
6769 UPDATEPOFILES=
6770 DUMMYPOFILES=
6771 for lang in $ALL_LINGUAS; do
6772 POFILES="$POFILES $srcdirpre$lang.po"
6773 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
6774 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
6775 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
6776 done
6777 # CATALOGS depends on both $ac_dir and the user's LINGUAS
6778 # environment variable.
6779 INST_LINGUAS=
6780 if test -n "$ALL_LINGUAS"; then
6781 for presentlang in $ALL_LINGUAS; do
6782 useit=no
6783 if test "%UNSET%" != "$LINGUAS"; then
6784 desiredlanguages="$LINGUAS"
6785 else
6786 desiredlanguages="$ALL_LINGUAS"
6787 fi
6788 for desiredlang in $desiredlanguages; do
6789 # Use the presentlang catalog if desiredlang is
6790 # a. equal to presentlang, or
6791 # b. a variant of presentlang (because in this case,
6792 # presentlang can be used as a fallback for messages
6793 # which are not translated in the desiredlang catalog).
6794 case "$desiredlang" in
6795 "$presentlang"*) useit=yes;;
6796 esac
6797 done
6798 if test $useit = yes; then
6799 INST_LINGUAS="$INST_LINGUAS $presentlang"
6800 fi
6801 done
6802 fi
6803 CATALOGS=
6804 if test -n "$INST_LINGUAS"; then
6805 for lang in $INST_LINGUAS; do
6806 CATALOGS="$CATALOGS $lang.gmo"
6807 done
6808 fi
6809 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
6810 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"
6811 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
6812 if test -f "$f"; then
6813 case "$f" in
6814 *.orig | *.bak | *~) ;;
6815 *) cat "$f" >> "$ac_dir/Makefile" ;;
6816 esac
6817 fi
6818 done
6819 fi
6820 ;;
6821 esac
6822 done ;;
6823 esac
6824done
6825_ACEOF
6826
6827cat >>$CONFIG_STATUS <<\_ACEOF
6828
6829{ (exit 0); exit 0; }
6830_ACEOF
6831chmod +x $CONFIG_STATUS
6832ac_clean_files=$ac_clean_files_save
6833
6834
6835# configure is writing to config.log, and then calls config.status.
6836# config.status does its own redirection, appending to config.log.
6837# Unfortunately, on DOS this fails, as config.log is still kept open
6838# by configure, so config.status won't be able to write to it; its
6839# output is simply discarded. So we exec the FD to /dev/null,
6840# effectively closing config.log, so it can be properly (re)opened and
6841# appended to by config.status. When coming back to configure, we
6842# need to make the FD available again.
6843if test "$no_create" != yes; then
6844 ac_cs_success=:
6845 ac_config_status_args=
6846 test "$silent" = yes &&
6847 ac_config_status_args="$ac_config_status_args --quiet"
6848 exec 5>/dev/null
6849 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6850 exec 5>>config.log
6851 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6852 # would make configure fail if this is the last instruction.
6853 $ac_cs_success || { (exit 1); exit 1; }
6854fi
6855
This page took 0.329995 seconds and 4 git commands to generate.