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