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