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